PageSourceSearch

https://dreamlusive.com/_nuxt/Dpn0qzlS.js

js dreamlusive.com collected 2026-10-02 01:27:58 UTC 328,605 bytes, 25 lines download raw bytes

1import{_ as kn,a as Hf}from"./C_krEWVk.js";import{_ as Wf,a as Uf}from"./CnWX_Kmp.js";import{f as ke,g as Br,q as $f,s as Ht,c as ue,v as zt,x as Yf,y as Xf,z as se,A as M,V as Zl,B as F,C as j,D as oe,E as ge,G as J,H as Kf,I as q,J as $e,K as ql,L as Zf,M as qf,N as Ao,S as jf,O as Jf,P as yi,Q as H,R as te,T as me,U as Ke,W as Qf,X as re,Y as ev,Z as ae,$ as On,a0 as tv,a1 as rv,a2 as Co,a3 as fe,a4 as av,a5 as iv,a6 as Pn,a7 as Xe,a8 as ne,a9 as nv,aa as ov,ab as sv,ac as lv,ad as Wt,ae as Ut,af as Ta,ag as $t,ah as he,ai as En,aj as St,ak as Ia,al as uv,am as ee,an as jl,ao as To,ap as G,aq as He,ar as Rn,as as Jl,at as Nn,au as cv,av as Ql,aw as Io,ax as fv,ay as da,az as vv,aA as De,aB as Da,aC as hv,aD as dv,aE as pv,aF as Ct,aG as _i,aH as gv,aI as Oe,aJ as eu,aK as tu,aL as pa,aM as Do,aN as Qi,aO as Vn,aP as mv,aQ as yv,aR as _v,aS as bv,aT as xv,aU as Sv,aV as wv,aW as Av,aX as Cv,aY as Tv,aZ as Iv,a_ as Dv,a$ as Mv,b0 as Lv,b1 as Ee,b2 as ti,b3 as kv,b4 as ar,b5 as ru,b6 as Ov,b7 as au,b8 as iu,b9 as Pv,ba as Ma,bb as Ev,bc as La,bd as Rv,be as en,bf as Nv,bg as Ar,bh as ri,bi as nu,bj as wt,bk as Yt,bl as We,bm as Pe,bn as Vv,bo as Bv,bp as zv,bq as Gv,br as Fv,bs as Hv,bt as Wv,bu as Uv,bv as $v,bw as Yv,bx as Xv,by as Kv,bz as Zv,bA as qv,bB as jv,bC as ou,bD as Jv,bE as ai,bF as tt,bG as su,bH as ka,bI as lu,bJ as Kr,bK as tn,bL as Qv,o as ve,a as L,n as ye,u as X,d as At,bM as uu,b as K,t as je,r as ct,_ as at,bN as ga,bO as eh,e as ma,bP as Bn,bQ as th,bR as rh,bS as ah,bT as ih,bU as nh,bV as oh,l as Me,bW as bi,bX as sh,bY as cu,bZ as ya,b_ as ft,b$ as zr,c0 as Cr,c1 as lh,c2 as Mo,c3 as fu,c4 as uh,c5 as ch,c6 as rn,c7 as vu,c8 as hu,c9 as du,ca as fh,cb as ir,cc as vh,cd as ii,ce as hh,cf as dh,cg as ph,ch as gh,ci as mh,cj as yh,ck as _h,cl as bh,cm as xh,cn as Sh,co as wh,cp as an,cq as Ah,cr as Ch,cs as pu,ct as zn,cu as Th,cv as Ih,cw as Dh,cx as Lo,cy as Mh,cz as le,cA as Ue,cB as W,cC as ko,cD as gu,cE as mu,cF as xe,cG as Oa,cH as Re,cI as Dt,cJ as ni,cK as nr,cL as Xt,cM as ie,cN as Oo,cO as oi,cP as Gn,cQ as yu,cR as Po,cS as _u,cT as Eo,cU as Ro,cV as Ce,cW as Fn,cX as Kt,cY as Tr,cZ as nn,c_ as No,c$ as Ae,d0 as Lh,d1 as bu,d2 as Hn,d3 as Pa,d4 as kh,d5 as xu,d6 as Oh,d7 as Ir,d8 as Su,d9 as Zt,da as Je,db as Wn,dc as qt,dd as Ea,de as Dr,df as Ra,dg as wu,dh as Un,di as Au,dj as Ph,dk as Eh,dl as xt,dm as Na,dn as Rh,dp as Nh,dq as $n,dr as Va,ds as Se,dt as Vh,du as si,dv as Vo,dw as xi,dx as Bh,dy as zh,dz as Yn,dA as _e,dB as Gh,dC as Fh,dD as Hh,dE as li,dF as jt,dG as Wh,dH as Xn,dI as Nt,dJ as Ba,dK as Bo,dL as Uh,dM as $h,dN as Jt,dO as Kn,dP as Cu,dQ as Tu,dR as Yh,dS as Xh,dT as Kh,dU as zo,dV as Zh,dW as _a,dX as Si,dY as Iu,dZ as qh,d_ as wi,d$ as jh,e0 as Du,e1 as Jh,e2 as kt,e3 as Mu,e4 as za,e5 as Lu,e6 as on,e7 as Qh,e8 as ba,e9 as ui,ea as be,eb as ku,ec as Go,ed,ee as td,ef as rd,eg as Ou,eh as ad,ei as id,ej as Pu,ek as nd,el as Ai,em as Fo,en as Ho,eo as od,ep as sd,eq as Eu,er as ld,es as ud,et as Ru,eu as cd,ev as Wo,ew as fd,ex as vd,ey as hd,ez as dd,eA as Nu,eB as pd,eC as Uo,eD as Gt,eE as gd,eF as md,eG as yd,eH as _d,eI as Ci,eJ as bd,eK as xd,eL as $o,eM as Yo,w as Ie,eN as Sd,eO as wd,eP as Ad,k as Cd,F as Xo,h as Td}from"./B6aOMzEP.js";import{u as rt}from"./Cjn5J3Zf.js";import{_ as Id,a as Dd}from"./BcuxESFw.js";import{u as Md}from"./C4rkglUW.js";import"./DBWla1A8.js";const Ld=Symbol.for("nuxt:client-only"),Gr=ke({name:"ClientOnly",inheritAttrs:!1,props:["fallback","placeholder","placeholderTag","fallbackTag"],setup(r,{slots:t,attrs:e}){const a=zt(!1);Br(()=>{a.value=!0});const i=Yf();return i&&(i._nuxtClientOnly=!0),Xf(Ld,!0),()=>{if(a.value){const l=t.default?.();return l&&l.length===1?[$f(l[0],e)]:l}const n=t.fallback||t.placeholder;if(n)return Ht(n);const o=r.fallback||r.placeholder||"",s=r.fallbackTag||r.placeholderTag||"span";return ue(s,e,o)}}});function lr(r){return r==null?0:r.length||1}function Ko(r){return r}var kd=(function(){function r(t,e,a,i,n,o){this._old=t,this._new=e,this._oldKeyGetter=a||Ko,this._newKeyGetter=i||Ko,this.context=n,this._diffModeMultiple=o==="multiple"}return r.prototype.add=function(t){return this._add=t,this},r.prototype.update=function(t){return this._update=t,this},r.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},r.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},r.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},r.prototype.remove=function(t){return this._remove=t,this},r.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},r.prototype._executeOneToOne=function(){var t=this._old,e=this._new,a={},i=new Array(t.length),n=new Array(e.length);this._initIndexMap(t,null,i,"_oldKeyGetter"),this._initIndexMap(e,a,n,"_newKeyGetter");for(var o=0;o<t.length;o++){var s=i[o],l=a[s],u=lr(l);if(u>1){var c=l.shift();l.length===1&&(a[s]=l[0]),this._update&&this._update(c,o)}else u===1?(a[s]=null,this._update&&this._update(l,o)):this._remove&&this._remove(o)}this._performRestAdd(n,a)},r.prototype._executeMultiple=function(){var t=this._old,e=this._new,a={},i={},n=[],o=[];this._initIndexMap(t,a,n,"_oldKeyGetter"),this._initIndexMap(e,i,o,"_newKeyGetter");for(var s=0;s<n.length;s++){var l=n[s],u=a[l],c=i[l],f=lr(u),v=lr(c);if(f>1&&v===1)this._updateManyToOne&&this._updateManyToOne(c,u),i[l]=null;else if(f===1&&v>1)this._updateOneToMany&&this._updateOneToMany(c,u),i[l]=null;else if(f===1&&v===1)this._update&&this._update(c,u),i[l]=null;else if(f>1&&v>1)this._updateManyToMany&&this._updateManyToMany(c,u),i[l]=null;else if(f>1)for(var h=0;h<f;h++)this._remove&&this._remove(u[h]);else this._remove&&this._remove(u)}this._performRestAdd(o,i)},r.prototype._performRestAdd=function(t,e){for(var a=0;a<t.length;a++){var i=t[a],n=e[i],o=lr(n);if(o>1)for(var s=0;s<o;s++)this._add&&this._add(n[s]);else o===1&&this._add&&this._add(n);e[i]=null}},r.prototype._initIndexMap=function(t,e,a,i){for(var n=this._diffModeMultiple,o=0;o<t.length;o++){var s="_ec_"+this[i](t[o],o);if(n||(a[o]=s),!!e){var l=e[s],u=lr(l);u===0?(e[s]=o,n&&a.push(s)):u===1?e[s]=[l,o]:l.push(o)}}},r})(),Od=(function(){function r(t,e){this._encode=t,this._schema=e}return r.prototype.get=function(){return{fullDimensions:this._getFullDimensionNames(),encode:this._encode}},r.prototype._getFullDimensionNames=function(){return this._cachedDimNames||(this._cachedDimNames=this._schema?this._schema.makeOutputDimensionNames():[]),this._cachedDimNames},r})();function Pd(r,t){var e={},a=e.encode={},i=se(),n=[],o=[],s={};M(r.dimensions,function(v){var h=r.getDimensionInfo(v),d=h.coordDim;if(d){var p=h.coordDimIndex;Ti(a,d)[p]=v,h.isExtraCoord||(i.set(d,1),Rd(h.type)&&(n[0]=v),Ti(s,d)[p]=r.getDimensionIndex(h.name)),h.defaultTooltip&&o.push(v)}Zl.each(function(m,g){var y=Ti(a,g),_=h.otherDims[g];_!=null&&_!==!1&&(y[_]=h.name)})});var l=[],u={};i.each(function(v,h){var d=a[h];u[h]=d[0],l=l.concat(d)}),e.dataDimsOnCoord=l,e.dataDimIndicesOnCoord=F(l,function(v){return r.getDimensionInfo(v).storeDimIndex}),e.encodeFirstDimNotExtra=u;var c=a.label;c&&c.length&&(n=c.slice());var f=a.tooltip;return f&&f.length?o=f.slice():o.length||(o=n.slice()),a.defaultedLabel=n,a.defaultedTooltip=o,e.userOutput=new Od(s,t),e}function Ti(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function Ed(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function Rd(r){return!(r==="ordinal"||r==="time")}var xa=(function(){function r(t){this.otherDims={},t!=null&&j(this,t)}return r})(),Nd=ge(),Vd={float:"f",int:"i",ordinal:"o",number:"n",time:"t"},Vu=(function(){function r(t){this.dimensions=t.dimensions,this._dimOmitted=t.dimensionOmitted,this.source=t.source,this._fullDimCount=t.fullDimensionCount,this._updateDimOmitted(t.dimensionOmitted)}return r.prototype.isDimensionOmitted=function(){return this._dimOmitted},r.prototype._updateDimOmitted=function(t){this._dimOmitted=t,t&&(this._dimNameMap||(this._dimNameMap=zu(this.source)))},r.prototype.getSourceDimensionIndex=function(t){return J(this._dimNameMap.get(t),-1)},r.prototype.getSourceDimension=function(t){var e=this.source.dimensionsDefine;if(e)return e[t]},r.prototype.makeStoreSchema=function(){for(var t=this._fullDimCount,e=Kf(this.source),a=!Gu(t),i="",n=[],o=0,s=0;o<t;o++){var l=void 0,u=void 0,c=void 0,f=this.dimensions[s];if(f&&f.storeDimIndex===o)l=e?f.name:null,u=f.type,c=f.ordinalMeta,s++;else{var v=this.getSourceDimension(o);v&&(l=e?v.name:null,u=v.type)}n.push({property:l,type:u,ordinalMeta:c}),e&&l!=null&&(!f||!f.isCalculationCoord)&&(i+=a?l.replace(/\`/g,"`1").replace(/\$/g,"`2"):l),i+="$",i+=Vd[u]||"f",c&&(i+=c.uid),i+="$"}var h=this.source,d=[h.seriesLayoutBy,h.startIndex,i].join("$$");return{dimensions:n,hash:d}},r.prototype.makeOutputDimensionNames=function(){for(var t=[],e=0,a=0;e<this._fullDimCount;e++){var i=void 0,n=this.dimensions[a];if(n&&n.storeDimIndex===e)n.isCalculationCoord||(i=n.name),a++;else{var o=this.getSourceDimension(e);o&&(i=o.name)}t.push(i)}return t},r.prototype.appendCalculationDimension=function(t){this.dimensions.push(t),t.isCalculationCoord=!0,this._fullDimCount++,this._updateDimOmitted(!0)},r})();function Bu(r){return r instanceof Vu}function Zn(r){for(var t=se(),e=0;e<(r||[]).length;e++){var a=r[e],i=oe(a)?a.name:a;i!=null&&t.get(i)==null&&t.set(i,e)}return t}function zu(r){var t=Nd(r);return t.dimNameMap||(t.dimNameMap=Zn(r.dimensionsDefine))}function Gu(r){return r>30}var ur=oe,it=F,Bd=typeof Int32Array>"u"?Array:Int32Array,zd="e\0\0",Zo=-1,Gd=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],Fd=["_approximateExtent"],qo,Zr,cr,fr,Ii,vr,Di,xr=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual
1={},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 a,i=!1;Bu(t)?(a=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,a=t),a=a||["x","y"];for(var n={},o=[],s={},l=!1,u={},c=0;c<a.length;c++){var f=a[c],v=q(f)?new xa({name:f}):f instanceof xa?f:new xa(f),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),n[h]=v,u[h]!=null&&(l=!0),v.createInvertedIndices&&(s[h]=[]),i&&(v.storeDimIndex=c),d.itemName===0&&(this._nameDimIdx=v.storeDimIndex),d.itemId===0&&(this._idDimIdx=v.storeDimIndex)}if(this.dimensions=o,this._dimInfos=n,this._initGetDimensionInfo(l),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var p=this._dimIdxToName=se();M(o,function(m){p.set(n[m].storeDimIndex,m)})}}return r.prototype.getDimension=function(t){var e=this._recognizeDimIndex(t);if(e==null)return t;if(e=t,!this._dimOmitted)return this.dimensions[e];var a=this._dimIdxToName.get(e);if(a!=null)return a;var i=this._schema.getSourceDimension(e);if(i)return i.name},r.prototype.getDimensionIndex=function(t){var e=this._recognizeDimIndex(t);if(e!=null)return e;if(t==null)return-1;var a=this._getDimInfo(t);return a?a.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if($e(t)||t!=null&&!isNaN(t)&&!this._getDimInfo(t)&&(!this._dimOmitted||this._schema.getSourceDimensionIndex(t)<0))return+t},r.prototype._getStoreDimIndex=function(t){var e=this.getDimensionIndex(t);return e},r.prototype.getDimensionInfo=function(t){return this._getDimInfo(this.getDimension(t))},r.prototype._initGetDimensionInfo=function(t){var e=this._dimInfos;this._getDimInfo=t?function(a){return e.hasOwnProperty(a)?e[a]:void 0}:function(a){return e[a]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var a=this._dimSummary;if(e==null)return a.encodeFirstDimNotExtra[t];var i=a.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,a=e.encode[t];return(a||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,a){var i=this,n;if(t instanceof Ao&&(n=t),!n){var o=this.dimensions,s=ql(t)||Zf(t)?new qf(t,o.length):t;n=new Ao;var l=it(o,function(u){return{type:i._dimInfos[u].type,property:u}});n.initData(s,l,a)}this._store=n,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,n.count()),this._dimSummary=Pd(this,this._schema),this.userOutput=this._dimSummary.userOutput},r.prototype.appendData=function(t){var e=this._store.appendData(t);this._doInit(e[0],e[1])},r.prototype.appendValues=function(t,e){var a=this._store.appendValues(t,e&&e.length),i=a.start,n=a.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<n;s++){var l=s-i;this._nameList[s]=e[l],o&&Di(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,a=0;a<e.length;a++){var i=this._dimInfos[e[a]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==jf&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var a=this._store,i=a.getProvider();this._updateOrdinalMeta();var n=this._nameList,o=this._idList,s=i.getSource().sourceFormat,l=s===On;if(l&&!i.pure)for(var u=[],c=t;c<e;c++){var f=i.getItem(c,u);if(!this.hasItemOption&&Jf(f)&&(this.hasItemOption=!0),f){var v=f.name;n[c]==null&&v!=null&&(n[c]=yi(v,null));var h=f.id;o[c]==null&&h!=null&&(o[c]=yi(h,null))}}if(this._shouldMakeIdFromName())for(var c=t;c<e;c++)Di(this,c);qo(this)}},r.prototype.getApproximateExtent=function(t,e){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t),e)},r.prototype.setApproximateExtent=function(t,e){e=this.getDimension(e),this._approximateExtent[e]=t.slice()},r.prototype.getCalculationInfo=function(t){return this._calculationInfo[t]},r.prototype.setCalculationInfo=function(t,e){ur(t)?j(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),a=this._nameList[e];return a==null&&this._nameDimIdx!=null&&(a=cr(this,this._nameDimIdx,e)),a==null&&(a=""),a},r.prototype._getCategory=function(t,e){var a=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[a]:a},r.prototype.getId=function(t){return Zr(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var a=this._store,i=this._dimInfos[t];if(i)return a.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var a=this._store,i=this._dimInfos[t];if(i)return a.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t),null)},r.prototype.getSum=function(t){return this._store.getSum(this._getStoreDimIndex(t))},r.prototype.getMedian=function(t){return this._store.getMedian(this._getStoreDimIndex(t))},r.prototype.getValues=function(t,e){var a=this,i=this._store;return H(t)?i.getValues(it(t,function(n){return a._getStoreDimIndex(n)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,a=0,i=e.length;a<i;a++)if(isNaN(this._store.get(e[a],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,a=this._store.count();e<a;e++)if(this.getName(e)===t)return e;return-1},r.prototype.getRawIndex=function(t){return this._store.getRawIndex(t)},r.prototype.indexOfRawIndex=function(t){return this._store.indexOfRawIndex(t)},r.prototype.rawIndexOf=function(t,e){var a=t&&this._invertedIndicesMap[t],i=a&&a[e];return i==null||isNaN(i)?Zo:i},r.prototype.each=function(t,e,a){re(t)&&(a=e,e=t,t=[]);var i=a||this,n=it(fr(t),this._getStoreDimIndex,this);this._store.each(n,i?te(e,i):e)},r.prototype.filterSelf=function(t,e,a){re(t)&&(a=e,e=t,t=[]);var i=a||this,n=it(fr(t),this._getStoreDimIndex,this);return this._store=this._store.filter(n,i?te(e,i):e),this},r.prototype.selectRange=function(t){var e=this,a={},i=me(t);
1return M(i,function(n){var o=e._getStoreDimIndex(n);a[o]=t[n]}),this._store=this._store.selectRange(a),this},r.prototype.mapArray=function(t,e,a){re(t)&&(a=e,e=t,t=[]),a=a||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},a),i},r.prototype.map=function(t,e,a,i){var n=a||i||this,o=it(fr(t),this._getStoreDimIndex,this),s=vr(this);return s._store=this._store.map(o,n?te(e,n):e),s},r.prototype.modify=function(t,e,a,i){var n=a||i||this,o=it(fr(t),this._getStoreDimIndex,this);this._store.modify(o,n?te(e,n):e)},r.prototype.downSample=function(t,e,a,i){var n=vr(this);return n._store=this._store.downSample(this._getStoreDimIndex(t),e,a,i),n},r.prototype.minmaxDownSample=function(t,e){var a=vr(this);return a._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),a},r.prototype.lttbDownSample=function(t,e){var a=vr(this);return a._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),a},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,a=this.getRawDataItem(t);return new Ke(a,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new kd(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(a){return Zr(t,a)},function(a){return Zr(e,a)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},ur(t)?j(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var a=this._itemVisuals[t],i=a&&a[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var a=this._itemVisuals,i=a[t];i||(i=a[t]={});var n=i[e];return n==null&&(n=this.getVisual(e),H(n)?n=n.slice():ur(n)&&(n=j({},n)),i[e]=n),n},r.prototype.setItemVisual=function(t,e,a){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,ur(e)?j(i,e):i[e]=a},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){ur(t)?j(this._layout,t):this._layout[t]=e},r.prototype.getLayout=function(t){return this._layout[t]},r.prototype.getItemLayout=function(t){return this._itemLayouts[t]},r.prototype.setItemLayout=function(t,e,a){this._itemLayouts[t]=a?j(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var a=this.hostModel&&this.hostModel.seriesIndex;Qf(a,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){M(this._graphicEls,function(a,i){a&&t&&t.call(e,a,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:it(this.dimensions,this._getDimInfo,this),this.hostModel)),Ii(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var a=this[t];re(a)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=a.apply(this,arguments);return e.apply(this,[i].concat(ev(arguments)))})},r.internalField=(function(){qo=function(t){var e=t._invertedIndicesMap;M(e,function(a,i){var n=t._dimInfos[i],o=n.ordinalMeta,s=t._store;if(o){a=e[i]=new Bd(o.categories.length);for(var l=0;l<a.length;l++)a[l]=Zo;for(var l=0;l<s.count();l++)a[s.get(n.storeDimIndex,l)]=l}})},cr=function(t,e,a){return yi(t._getCategory(e,a),null)},Zr=function(t,e){var a=t._idList[e];return a==null&&t._idDimIdx!=null&&(a=cr(t,t._idDimIdx,e)),a==null&&(a=zd+e),a},fr=function(t){return H(t)||(t=t!=null?[t]:[]),t},vr=function(t){var e=new r(t._schema?t._schema:it(t.dimensions,t._getDimInfo,t),t.hostModel);return Ii(e,t),e},Ii=function(t,e){M(Gd.concat(e.__wrappedMethods||[]),function(a){e.hasOwnProperty(a)&&(t[a]=e[a])}),t.__wrappedMethods=e.__wrappedMethods,M(Fd,function(a){t[a]=ae(e[a])}),t._calculationInfo=j({},e._calculationInfo)},Di=function(t,e){var a=t._nameList,i=t._idList,n=t._nameDimIdx,o=t._idDimIdx,s=a[e],l=i[e];if(s==null&&n!=null&&(a[e]=s=cr(t,n,e)),l==null&&o!=null&&(i[e]=l=cr(t,o,e)),l==null&&s!=null){var u=t._nameRepeatCount,c=u[s]=(u[s]||0)+1;l=s,c>1&&(l+="__ec__"+c),i[e]=l}}})(),r})();function Fu(r,t){ql(r)||(r=tv(r)),t=t||{};var e=t.coordDimensions||[],a=t.dimensionsDefine||r.dimensionsDefine||[],i=se(),n=[],o=Hd(r,e,a,t.dimensionsCount),s=t.canOmitUnusedDimensions&&Gu(o),l=a===r.dimensionsDefine,u=l?zu(r):Zn(a),c=t.encodeDefine;!c&&t.encodeDefaulter&&(c=t.encodeDefaulter(r,o));for(var f=se(c),v=new rv(o),h=0;h<v.length;h++)v[h]=-1;
1function d(T){var C=v[T];if(C<0){var A=a[T],k=oe(A)?A:{name:A},D=new xa,R=k.name;R!=null&&u.get(R)!=null&&(D.name=D.displayName=R),k.type!=null&&(D.type=k.type),k.displayName!=null&&(D.displayName=k.displayName);var E=n.length;return v[T]=E,D.storeDimIndex=T,n.push(D),D}return n[C]}if(!s)for(var h=0;h<o;h++)d(h);f.each(function(T,C){var A=Co(T).slice();if(A.length===1&&!q(A[0])&&A[0]<0){f.set(C,!1);return}var k=f.set(C,[]);M(A,function(D,R){var E=q(D)?u.get(D):D;E!=null&&E<o&&(k[R]=E,m(d(E),C,R))})});var p=0;M(e,function(T){var C,A,k,D;if(q(T))C=T,D={};else{D=T,C=D.name;var R=D.ordinalMeta;D.ordinalMeta=null,D=j({},D),D.ordinalMeta=R,A=D.dimsDef,k=D.otherDims,D.name=D.coordDim=D.coordDimIndex=D.dimsDef=D.otherDims=null}var E=f.get(C);if(E!==!1){if(E=Co(E),!E.length)for(var N=0;N<(A&&A.length||1);N++){for(;p<o&&d(p).coordDim!=null;)p++;p<o&&E.push(p++)}M(E,function(P,O){var V=d(P);if(l&&D.type!=null&&(V.type=D.type),m(fe(V,D),C,O),V.name==null&&A){var U=A[O];!oe(U)&&(U={name:U}),V.name=V.displayName=U.name,V.defaultTooltip=U.defaultTooltip}k&&fe(V.otherDims,k)})}});function m(T,C,A){Zl.get(C)!=null?T.otherDims[C]=A:(T.coordDim=C,T.coordDimIndex=A,i.set(C,!0))}var g=t.generateCoord,y=t.generateCoordCount,_=y!=null;y=g?y||1:0;var b=g||"value";function S(T){T.name==null&&(T.name=T.coordDim)}if(s)M(n,function(T){S(T)}),n.sort(function(T,C){return T.storeDimIndex-C.storeDimIndex});else for(var w=0;w<o;w++){var x=d(w),I=x.coordDim;I==null&&(x.coordDim=Wd(b,i,_),x.coordDimIndex=0,(!g||y<=0)&&(x.isExtraCoord=!0),y--),S(x),x.type==null&&(av(r,w)===iv.Must||x.isExtraCoord&&(x.otherDims.itemName!=null||x.otherDims.seriesName!=null))&&(x.type="ordinal")}return Pn(n,function(T){return T.name},function(T,C){C>0&&(T.name=T.name+(C-1))}),new Vu({source:r,dimensions:n,fullDimensionCount:o,dimensionOmitted:s})}function Hd(r,t,e,a){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,a||0);return M(t,function(n){var o;oe(n)&&(o=n.dimsDef)&&(i=Math.max(i,o.length))}),i}function Wd(r,t,e){if(e||t.hasKey(r)){for(var a=0;t.hasKey(r+a);)a++;r+=a}return t.set(r,!0),r}var Ud=(function(){function r(t){this.coordSysDims=[],this.axisMap=se(),this.categoryAxisMap=se(),this.coordSysName=t}return r})();function $d(r){var t=r.get("coordinateSystem"),e=new Ud(t),a=Yd[t];if(a)return a(r,e,e.axisMap,e.categoryAxisMap),e}var Yd={cartesian2d:function(r,t,e,a){var i=r.getReferringComponents("xAxis",Xe).models[0],n=r.getReferringComponents("yAxis",Xe).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",n),Ot(i)&&(a.set("x",i),t.firstCategoryDimIndex=0),Ot(n)&&(a.set("y",n),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,a){var i=r.getReferringComponents("singleAxis",Xe).models[0];t.coordSysDims=["single"],e.set("single",i),Ot(i)&&(a.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,a){var i=r.getReferringComponents("polar",Xe).models[0],n=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",n),e.set("angle",o),Ot(n)&&(a.set("radius",n),t.firstCategoryDimIndex=0),Ot(o)&&(a.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,a){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,a){var i=r.ecModel,n=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=n.dimensions.slice();M(n.parallelAxisIndex,function(s,l){var u=i.getComponent("parallelAxis",s),c=o[l];e.set(c,u),Ot(u)&&(a.set(c,u),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=l))})},matrix:function(r,t,e,a){var i=r.getReferringComponents("matrix",Xe).models[0];t.coordSysDims=["x","y"];var n=i.getDimensionModel("x"),o=i.getDimensionModel("y");e.set("x",n),e.set("y",o),a.set("x",n),a.set("y",o)}};function Ot(r){return r.get("type")==="category"}function Xd(r,t,e){e=e||{};var a=e.byIndex,i=e.stackedCoordDimension,n,o,s;Kd(t)?n=t:(o=t.schema,n=o.dimensions,s=t.store);var l=!!(r&&r.get("stack")),u,c,f,v,h=!0;function d(b){return b.type!=="ordinal"&&b.type!=="time"}if(M(n,function(b,S){q(b)&&(n[S]=b={name:b}),d(b)||(h=!1)}),M(n,function(b,S){l&&!b.isExtraCoord&&(!a&&!u&&b.ordinalMeta&&(u=b),!c&&d(b)&&(!h||b.coordDim!=="x"&&b.coordDim!=="angle")&&(!i||i===b.coordDim)&&(c=b))}),c&&!a&&!u&&(a=!0),c){f="__\0ecstackresult_"+r.id,v="__\0ecstackedover_"+r.id,u&&(u.createInvertedIndices=!0);var p=c.coordDim,m=c.type,g=0;M(n,function(b){b.coordDim===p&&g++});var y={name:f,coordDim:p,coordDimIndex:g,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length},_={name:v,coordDim:v,coordDimIndex:g+1,type:m,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:n.length+1};o?(s&&(y.storeDimIndex=s.ensureCalculationDimension(v,m),_.storeDimIndex=s.ensureCalculationDimension(f,m)),o.appendCalculationDimension(y),o.appendCalculationDimension(_)):(n.push(y),n.push(_))}return{stackedDimension:c&&c.name,stackedByDimension:u&&u.name,isStackedByIndex:a,stackedOverDimension:v,stackResultDimension:f}}function Kd(r){return!Bu(r.schema)}function Tt(r,t){return!!t&&t===r.getCalculationInfo("stackedDimension")}function Hu(r,t){return Tt(r,t)?r.getCalculationInfo("stackResultDimension"):t}function Zd(r,t){var e=r.get("coordinateSystem"),a=ov.get(e),i;return t&&t.coordSysDims&&(i=F(t.coordSysDims,function(n){var o={name:n},s=t.axisMap.get(n);if(s){var l=s.get("type");o.type=Ed(l)}return o}
1)),i||(i=a&&(a.getDimensionsInfo?a.getDimensionsInfo():a.dimensions.slice())||["x","y"]),i}function qd(r,t,e){var a,i;return e&&M(r,function(n,o){var s=n.coordDim,l=e.categoryAxisMap.get(s);l&&(a==null&&(a=o),n.ordinalMeta=l.getOrdinalMeta(),t&&(n.createInvertedIndices=!0)),n.otherDims.itemName!=null&&(i=!0)}),!i&&a!=null&&(r[a].otherDims.itemName=0),a}function qn(r,t,e){e=e||{};var a=t.getSourceManager(),i,n=!1;i=a.getSource(),n=i.sourceFormat===On;var o=$d(t),s=Zd(t,o),l=e.useEncodeDefaulter,u=re(l)?l:l?ne(nv,s,t):null,c={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:u,canOmitUnusedDimensions:!n},f=Fu(i,c),v=qd(f.dimensions,e.createInvertedIndices,o),h=n?null:a.getSharedDataStore(f),d=Xd(t,{schema:f,store:h}),p=new xr(f,t);p.setCalculationInfo(d);var m=v!=null&&jd(i)?function(g,y,_,b){return b===v?_:this.defaultDimValueGetter(g,y,_,b)}:null;return p.hasItemOption=!1,p.initData(n?i:h,null,m),p}function jd(r){if(r.sourceFormat===On){var t=Jd(r.data||[]);return!H(sv(t))}}function Jd(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}var Be=(function(){function r(){}return r.prototype.isBlank=function(){return this._isBlank},r.prototype.setBlank=function(t){this._isBlank=t},r})();lv(Be);var Qd=0,sn=(function(){function r(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++Qd,this._onCollect=t.onCollect}return r.createByAxisModel=function(t){var e=t.option,a=e.data,i=a&&F(a,ep);return new r({categories:i,needCollect:!i,deduplication:e.dedplication!==!1})},r.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},r.prototype.parseAndCollect=function(t){var e,a=this._needCollect;if(!q(t)&&!a)return t;if(a&&!this._deduplication)return e=this.categories.length,this.categories[e]=t,this._onCollect&&this._onCollect(t,e),e;var i=this._getOrCreateMap();return e=i.get(t),e==null&&(a?(e=this.categories.length,this.categories[e]=t,i.set(t,e),this._onCollect&&this._onCollect(t,e)):e=NaN),e},r.prototype._getOrCreateMap=function(){return this._map||(this._map=se(this.categories))},r})();function ep(r){return oe(r)&&r.value!=null?r.value:r+""}var Te=0,Mr=1,tp={needTransform:1,normalize:1,scale:1,transformIn:1,transformOut:1,contain:1,getExtent:1,getExtentUnsafe:1,setExtent:1,setExtent2:1,getFilter:1,sanitize:1,getDefaultStartValue:1,freeze:1},rp=me(tp),Ga=2,Wu=3;function jn(r,t,e){var a;return r=r||{},ip(r,e),{brk:a,mapper:r}}function Uu(r,t){M(rp,function(e){r[e]=t[e]})}function $u(r,t){r.freeze=Ut}function Lr(r){return r.getExtentUnsafe(Te,Ga)}function Fa(r,t){return r.getExtentUnsafe(Mr,t)||r.getExtentUnsafe(Te,t)}function ap(r){var t=Fa(r,Wu);return t[1]-t[0]}function ci(r){var t=r.getExtentUnsafe(Te,Wu);return t[1]-t[0]}function ip(r,t){var e=r||{},a=[];return e._extents=a,a[Te]=t?t.slice():Wt(),j(e,np),e}var np={needTransform:function(){return!1},normalize:function(r){var t=this._extents[Mr]||this._extents[Te];return t[1]===t[0]?.5:(r-t[0])/(t[1]-t[0])},scale:function(r){var t=this._extents[Mr]||this._extents[Te];return r*(t[1]-t[0])+t[0]},transformIn:function(r){return r},transformOut:function(r){return r},contain:function(r){var t=Fa(this,null);return r>=t[0]&&r<=t[1]},getExtent:function(){return this._extents[Te].slice()},getExtentUnsafe:function(r){return this._extents[r]},setExtent:function(r,t){jo(this._extents,Te,r,t)},setExtent2:function(r,t,e){var a=this._extents;a[r]||(a[r]=a[Te].slice()),jo(a,r,t,e)},freeze:function(){}};function jo(r,t,e,a){Ta(e,a)&&(r[t][0]=e,r[t][1]=a)}function Yu(r){return Ha(r)||Qt(r)}function Ha(r){return r.type==="interval"}function Jn(r){return r.type==="time"}function Qt(r){return r.type==="log"}function ze(r){return r.type==="ordinal"}function op(r){var t=uv(r),e=jl(10,t),a=$t(r/e);return a?a===2?a=3:a===3?a=5:a*=2:a=1,ee(a*e,-t)}function It(r){return En(r)+2}function qr(r,t){return To(r)/To(t)}function Mi(r,t,e){var a=e&&e.lookup;if(a){for(var i=0;i<a.from.length;i++)if(r===a.from[i])return a.to[i]}return jl(t,r)}function Xu(r,t,e){var a=r.slice();if(a[0]===a[1]){var i=e&&e.ctnShp;if(a[0]!==0){var n=St(a[0]);t[1]||(a[1]+=n/2),a[0]-=n/2}else i&&(a[0]=-1),a[1]=1}return(!Ia(a[0])||!Ia(a[1]))&&(a[0]=0,a[1]=1),a[1]<a[0]&&a.reverse(),a}function sp(r,t){return[r[0]!==t[0],r[1]!==t[1]]}function fi(r,t){return r=r||t,$t(he(r,1))}function Ku(r,t,e){var a=Lr(r),i=a[0],n=r.count(),o=Math.max((t||0)+1,1);i!==0&&o>1&&n/o>2&&(i=Math.round(Math.ceil(i/o)*o)),i!==a[0]&&l(a[0],!0,!0);for(var s=i;s<=a[1];s+=o)l(s,!1,s===a[0]||s===a[1]);s-o!==a[1]&&l(a[1],!0,!0);function l(u,c,f){e({value:u,offInterval:c},f)}}var Zu=(function(r){G(t,r);function t(e){var a=r.call(this)||this;a.type="ordinal",a.parse=t.parse,Uu(a,t.decoratedMethods);var i=e.ordinalMeta;i||(i=new sn({})),H(i)&&(i=new sn({categories:F(i,function(o){return oe(o)?o.value:o})})),a._ordinalMeta=i;var n=jn(null,null,e.extent||[0,i.categories.length-1]);return a._mapper=n.mapper,$u(a),a}return t.parse=function(e){return e==null?e=NaN:q(e)?(e=this._ordinalMeta.getOrdinal(e),e==null&&(e=NaN)):e=$t(e),e},t.prototype.getTicks=function(){var e=[];return Ku(this,0,function(a){e.push(a)}),e},t.prototype.getMinorTicks=function(e){},t.prototype.setSortInfo=function(e){if(e==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var a=e.ordinalNumbers,i=this._ordinalNumbersByTick=[],n=this._ticksByOrdinalNumber=[],o=0,s=this._ordinalMeta.categories.length,l=He(s,a.length);o<l;++o){var u=i[o]=a[o];n[u]=o}for(var c=0;o<s;++o){for(;n[c]!=null;)c++;i[o]=c,n[c]=o}},t.prototype._getTickNumber=function(e){var a=this._ticksByOrdinalNumber;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getRawOrdinalNumber=function(e){var a=this._ordinalNumbersByTick;return a&&e>=0&&e<a.length?a[e]:e},t.prototype.getLabel=function(e){if(!this.isBlank()){var a=this.getRawOrdinalNumber(e.value),i=this._ordinalMeta.categories[a];return i==null?"":i+""}},t.prototype.count=function(){var e=Lr(this._mapper);return e[1]-e[0]+1},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.type="ordinal",t.decoratedMethods={needTransform:function(){return this._mapper.needTransform()},contain:function(e){return this._mapper.contain(this._getTickNumber(e))&&e>=0&&e<this._ordinalMeta.categories.length},normalize:function(e){return this._mapper.normalize(this._getTickNumber(e))},scale:function(e){return this.getRawOrdinalNumber($t(this._mapper.scale(e)))},transformIn:function(e,a){return this._mapper.transformIn(this._getTickNumber(e),a)},transformOut:function(e,a){return this.getRawOrdinalNumber(this._mapper.transformOut(e,a))},getExtent:function(){return this._mapper.getExtent()},getExtentUnsafe:function(e,a){return this._mapper.getExtentUnsafe(e,a)},setExtent:function(e,a){return this._mapper.setExtent(e,a)},setExtent2:function(e,a,i){return this._mapper.setExtent2(e,a,i)}},t})(Be);Be.registerClass(Zu);function Qn(r,t,e,a){for(var i=r.getTicks({expandToNicedExtent:!0}),n=[],o=r.getExtent(),s=1;s<i.length;s++){var l=i[s],u=i[s-1];if(!(u.break||l.break)){for(var c=0,f=[],v=l.value-u.value,h=v/t,d=It(h);c<t-1;){var p=ee(u.value+(c+1)*h,d);p>o[0]&&p<o[1]&&f.push(p),c++}var m=Rn();m&&m.pruneTicksByBreak("auto",f,e,function(g){return g},a,o),n.push(f)}}return n}var ht=(function(r){G(t,r);function t(e){var a=r.call(this)||this;a.type="interval",a.parse=t.parse,e=e||{};var i=Jl(a,e),n=jn(a,i,null);return a.brk=n.brk,a._cfg={interval:0,intervalPrecision:2,intervalCount:void 0,niceExtent:void 0},a}return t.parse=function(e){return e==null||e===""?NaN:Number(e)},t.prototype.getConfig=function(){return ae(this._cfg)},t.prototype.setConfig=function(e){var a=Lr(this);this._cfg=e=ae(e),e.niceExtent==null&&(e.niceExtent=a.slice()),e.intervalPrecision==null&&(e.intervalPrecision=It(e.interval))},t.prototype.getTicks=function(e){e=e||{};var a=this._cfg,i=a.interval,n=Lr(this),o=a.niceExtent,s=a.intervalPrecision,l=Rn(),u=this.brk,c=l,f=[];if(!i)return f;e.breakTicks;var v=3e3;n[0]<o[0]&&f.push({value:e.expandToNicedExtent?ee(o[0]-i,s):n[0]});for(var h=function(_,b){return $t((b-_)/i)},d=a.intervalCount,p=o[0],m=0;;m++){if(d==null){if(p>o[1]||!isFinite(p)||!isFinite(o[1]))break}else{if(m>d)break;p=He(p,o[1]),m===d&&(p=o[1])}if(f.push({value:p}),p=ee(p+i,s),u){var g=u.calcNiceTickMultiple(p,h);g>=0&&(p=ee(p+g*i,s))}if(f.length>0&&p===f[f.length-1].value)break;
1if(f.length>v)return[]}var y=f.length?f[f.length-1].value:o[1];return n[1]>y&&f.push({value:e.expandToNicedExtent?ee(y+i,s):n[1]}),f},t.prototype.getMinorTicks=function(e){return Qn(this,e,Nn(this),this._cfg.interval)},t.prototype.getLabel=function(e,a){if(e==null)return"";var i=a&&a.precision;i==null?i=En(e.value)||0:i==="auto"&&(i=this._cfg.intervalPrecision);var n=ee(e.value,i,!0);return cv(n)},t.type="interval",t})(Be);Be.registerClass(ht);var lp=function(r,t,e,a){for(;e<a;){var i=e+a>>>1;r[i][1]<t?e=i+1:a=i}return e},qu=(function(r){G(t,r);function t(e){var a=r.call(this)||this;a.type="time",a.parse=t.parse,a._locale=e.locale,a._useUTC=e.useUTC,a._interval=0;var i=Jl(a,e),n=jn(a,i,null);return a.brk=n.brk,a}return t.prototype.getLabel=function(e){return Ql(e.value,Io[fv(da(this._minLevelUnit))]||Io.second,this._useUTC,this._locale)},t.prototype.getFormattedLabel=function(e,a,i){return vv(e,a,i,this._locale,this._useUTC)},t.prototype.getTicks=function(e){var a=this._interval,i=Lr(this),n=this.brk,o=[];if(!a)return o;var s=this._useUTC;o=gp(this._minLevelUnit,this._approxInterval,s,i,ci(this),n);var l=Da.length-1,u=0;return M(o,function(c){c.time&&(l=Math.min(l,De(Da,c.time.upperTimeUnit)),u=Math.max(u,c.time.level))}),o},t.prototype.getMinorTicks=function(e){return Qn(this,e,Nn(this),this._interval)},t.prototype.setTimeInterval=function(e){this._interval=e.interval,this._approxInterval=e.approxInterval,this._minLevelUnit=e.minLevelUnit},t.parse=function(e){return $e(e)?Math.round(e):+hv(e)},t.type="time",t})(Be),jr=[["second",eu],["minute",tu],["hour",pa],["quarter-day",pa*6],["half-day",pa*12],["day",Oe*1.2],["half-week",Oe*3.5],["week",Oe*7],["month",Oe*31],["quarter",Oe*95],["half-year",Do/2],["year",Do]];function up(r,t,e,a){return Qi(new Date(t),r,a).getTime()===Qi(new Date(e),r,a).getTime()}function cp(r,t){return r/=Oe,r>16?16:r>7.5?7:r>3.5?4:r>1.5?2:1}function fp(r){var t=30*Oe;return r/=t,r>6?6:r>3?3:r>2?2:1}function vp(r){return r/=pa,r>12?12:r>6?6:r>3.5?4:r>2?2:1}function Jo(r,t){return r/=t?tu:eu,r>30?30:r>20?20:r>15?15:r>10?10:r>5?5:r>2?2:1}function hp(r){return he(Vn(r,!0),1)}function dp(r,t,e){var a=Math.max(0,De(Da,t)-1);return Qi(new Date(r),Da[a],e).getTime()}function pp(r,t){var e=new Date(0);e[r](1);var a=e.getTime();e[r](1+t);var i=e.getTime()-a;return function(n,o){return Math.max(0,Math.round((o-n)/i))}}function gp(r,t,e,a,i,n){var o=3e3,s=dv,l=0;function u(N,P,O,V,U,B,$){for(var Y=pp(U,N),z=P,Z=new Date(z);z<O&&z<=a[1]&&($.push({value:z}),!(l++>o));)if(Z[U](Z[V]()+N),z=Z.getTime(),n){var Q=n.calcNiceTickMultiple(z,Y);Q>0&&(Z[U](Z[V]()+Q*N),z=Z.getTime())}$.push({value:z,notAdd:z>a[1]})}function c(N,P,O){var V=[],U=!P.length;if(!up(da(N),a[0],a[1],e)){U&&(P=[{value:dp(a[0],N,e)},{value:a[1]}]);for(var B=0;B<P.length-1;B++){var $=P[B].value,Y=P[B+1].value;if($!==Y){var z=void 0,Z=void 0,Q=void 0,Mt=!1;switch(N){case"year":z=Math.max(1,Math.round(t/Oe/365)),Z=Mv(e),Q=Lv(e);break;case"half-year":case"quarter":case"month":z=fp(t),Z=Iv(e),Q=Dv(e);break;case"week":case"half-week":case"day":z=cp(t),Z=Cv(e),Q=Tv(e),Mt=!0;break;case"half-day":case"quarter-day":case"hour":z=vp(t),Z=wv(e),Q=Av(e);break;case"minute":z=Jo(t,!0),Z=xv(e),Q=Sv(e);break;case"second":z=Jo(t,!1),Z=_v(e),Q=bv(e);break;case"millisecond":z=hp(t),Z=mv(e),Q=yv(e);break}Y>=a[0]&&$<=a[1]&&u(z,$,Y,Z,Q,Mt,V),N==="year"&&O.length>1&&B===0&&O.unshift({value:O[0].value-z})}}for(var B=0;B<V.length;B++)O.push(V[B])}}for(var f=[],v=[],h=0,d=0,p=0;p<s.length;++p){var m=da(s[p]);if(pv(s[p])){c(s[p],f[f.length-1]||[],v);var g=s[p+1]?da(s[p+1]):null;if(m!==g){if(v.length){d=h,v.sort(function(N,P){return N.value-P.value});for(var y=[],_=0;_<v.length;++_){var b=v[_].value;(_===0||v[_-1].value!==b)&&(y.push(v[_]),b>=a[0]&&b<=a[1]&&h++)}var S=i/t;if(h>S*1.5&&d>S/1.5||(f.push(y),h>S||r===s[p]))break}v=[]}}}for(var w=Ct(F(f,function(N){return Ct(N,function(P){return P.value>=a[0]&&P.value<=a[1]&&!P.notAdd})}),function(N){return N.length>0}),x=w.length-1,I=[],p=0;p<w.length;++p)for(var T=w[p],C=0;C<T.length;++C){var A=_i(T[C].value,e);I.push({value:T[C].value,time:{level:x-p,upperTimeUnit:A,lowerTimeUnit:A}})}Pn(I,gv,null),I.sort(function(N,P){return N.value-P.value});var k=I[0],D=I[I.length-1],R=_i(a[0],e),E=_i(a[1],e);return(!k||k.value>a[0])&&I.unshift({value:a[0],time:{level:0,upperTimeUnit:R,lowerTimeUnit:R},notNice:!0}),(!D||D.value<a[1])&&I.push({value:a[1],time:{level:0,upperTimeUnit:E,lowerTimeUnit:E},notNice:!0}),I}var mp=function(r,t){var e=r.getExtent();if(e[0]===e[1]&&(e[0]-=Oe,e[1]+=Oe),e[1]===-1/0&&e[0]===1/0){var a=new Date;e[1]=+new Date(a.getFullYear(),a.getMonth(),a.getDate()),e[0]=e[1]-Oe}r.setExtent(e[0],e[1]);var i=fi(t.splitNumber,10),n=ci(r)/i,o=t.minInterval,s=t.maxInterval;o!=null&&n<o&&(n=o),s!=null&&n>s&&(n=s);var l=jr.length,u=Math.min(lp(jr,n,0,l),l-1),c=jr[u][1],f=jr[Math.max(u-1,0)][0];r.setTimeInterval({approxInterval:n,interval:c,minLevelUnit:f})};Be.registerClass(qu);var Jr=0,Qr=1,ju=(function(r){G(t,r);function t(e){var a=r.call(this)||this;a.type="log",a.parse=ht.parse,a.base=e.logBase||10;var i=[],n=[];a._lookup={from:i,to:n},i[Jr]=i[Qr]=n[Jr]=n[Qr]=NaN,Uu(a,t.mapperMethods),e.breakOption;var o={};return a.powStub=new ht({breakParsed:o.original}),a.intervalStub=new ht({breakParsed:o.transformed}),$u(a,a.intervalStub),a}return t.prototype.getTicks=function(e){var a=this.base,i=this.powStub,n=this.intervalStub,o=n.getExtent(),s=i.getExtent(),l={lookup:{from:o,to:s}};return F(n.getTicks(e||{}),function(u){var c=u.value,f=Mi(c,a,l),v;return{value:f,break:v}},this)},t.prototype.getMinorTicks=function(e){return Qn(this,e,Nn(this.powStub),this.intervalStub.getConfig().interval)},t.prototype.getLabel=function(e,a){return this.intervalStub.getLabel(e,a)},t.type="log",t.mapperMethods={needTransform:function(){return!0},normalize:function(e){return this.intervalStub.normalize(qr(e,this.base))},scale:function(e){return Mi(this.intervalStub.scale(e),this.base,null)},transformIn:function(e,a){return e=qr(e,this.base),a&&a.depth===Ga?e:this.intervalStub.transformIn(e,a)},transformOut:function(e,a){var i=a?a.depth:null;return Qo.depth=i,es.lookup=this._lookup,Mi(i===Ga?e:this.intervalStub.transformOut(e,Qo),this.base,es)},contain:function(e){return this.powStub.contain(e)},setExtent:function(e,a){this.setExtent2(Te,e,a)}
1,setExtent2:function(e,a,i){if(!(!Ta(a,i)||a<=0||i<=0)){var n=ts,o=ts;if(e===Te){var s=this._lookup;n=s.to,o=s.from}this.powStub.setExtent2(e,n[Jr]=a,n[Qr]=i);var l=this.base;this.intervalStub.setExtent2(e,o[Jr]=qr(a,l),o[Qr]=qr(i,l))}},getFilter:function(){return{g:0}},sanitize:function(e,a){return Ta(a[0],a[1])&&Ee(e)&&e<=0&&(e=a[0]),e},getDefaultStartValue:function(){return 1},getExtent:function(){return this.powStub.getExtent()},getExtentUnsafe:function(e,a){return a===null?this.powStub.getExtentUnsafe(e,null):this.intervalStub.getExtentUnsafe(e,a)}},t})(Be);Be.registerClass(ju);var Qo={},es={},ts=[],Ju={value:1,category:1,time:1,log:1},Qu=ge();function yp(r){var t=r.get("type");return(t==null||!ti(Ju,t)&&!Be.getClass(t))&&(t="value"),t}function _p(r,t,e){var a;switch(t){case"category":return new Zu({ordinalMeta:r.getOrdinalMeta?r.getOrdinalMeta():r.getCategories(),extent:Wt()});case"time":return new qu({locale:r.ecModel.getLocaleModel(),useUTC:r.ecModel.get("useUTC"),breakOption:a});case"log":return new ju({logBase:r.get("logBase"),breakOption:a});case"value":return new ht({breakOption:a});default:return new(Be.getClass(t)||ht)({})}}function bp(r,t,e){var a=r.getExtentUnsafe(Te,null),i=a[0],n=a[1];return Ta(i,n)?i===t||n===t?Sp:i<t&&n>t?xp:ln:ln}var xp=1,Sp=2,ln=3;function wp(r){Qu(r).noOnMyZero=!0}function Ap(r){return Qu(r).noOnMyZero}function vi(r){var t=r.getLabelModel().get("formatter");if(r.type==="time"){var e=kv(t);return function(i,n){return r.scale.getFormattedLabel(i,n,e)}}else{if(q(t))return function(i){var n=r.scale.getLabel(i),o=t.replace("{value}",n??"");return o};if(re(t)){if(r.type==="category")return function(i,n){return t(Wa(r,i),i.value-r.scale.getExtent()[0],null)};var a=Rn();return function(i,n){var o=null;return a&&(o=a.makeAxisLabelFormatterParamBreak(o,i.break)),t(Wa(r,i),n,o)}}else return function(i){return r.scale.getLabel(i)}}}function Wa(r,t){var e=r.scale;return ze(e)?e.getLabel(t):t.value}function eo(r){var t=r.get("interval");return t??"auto"}function Cp(r){return r.type==="category"&&eo(r.getLabelModel())===0}function Tp(r,t){var e={};return M(r.mapDimensionsAll(t),function(a){e[Hu(r,a)]=!0}),me(e)}function er(r){return r==="middle"||r==="center"}function kr(r){return r.getShallow("show")}function Ip(r,t,e){var a=r.get("breaks",!0);a==null}function ec(r,t,e,a,i,n){var o=Qt(r),s=o?r.intervalStub:r;if(s.setExtent(a[0],a[1]),o){var l=r.powStub,u={depth:Ga},c=r.transformOut(a[0],u),f=r.transformOut(a[1],u),v=sp(e,a);t[0]&&!v[0]&&(c=i[0]),t[1]&&!v[1]&&(f=i[1]),l.setExtent(c,f)}s.setConfig(n)}function Fr(r,t){return ze(r)?r.getRawOrdinalNumber(t.value):t.value}function tc(r,t){return ze(r)&&!!t.get("boundaryGap")}var rc=(function(){function r(){}return r.prototype.needIncludeZero=function(){return!this.option.scale},r.prototype.getCoordSysModel=function(){},r})(),Dp=ru(),un="|&",or=ge(),ac=-2,Mp=-1,Lp=ge();function ic(r,t){var e=r.model,a=or(ar(e.ecModel)).keyed,i=a&&a.get(t);return i&&i.get(e.uid)}function kp(r,t){return oc(ic(r,t))}function Op(r,t){var e=[];return nc(r.model.ecModel,function(a){for(var i=0;i<t.length;i++)t[i]&&a.serByIdx[t[i].seriesIndex]&&e.push(oc(a))}),e}function nc(r,t){var e=or(ar(r)).keyed;e&&e.each(function(a,i){a.each(function(n,o){t(n,i,o)})})}function oc(r){return{liPosMinGap:r?r.liPosMinGap:void 0}}function Pp(r,t){var e=r.model.ecModel,a=or(ar(e)).axSer;a&&to(e,a.get(r.model.uid),t)}function sc(r,t,e){var a=ic(r,t);a&&to(r.model.ecModel,a.sers,e)}function to(r,t,e){if(t)for(var a=0;a<t.length;a++){var i=t[a];r.isSeriesFiltered(i)||e(i)}}function Ep(r,t,e){var a=or(ar(r)).keyed,i=a&&a.get(t);i&&i.each(function(n){e(n.axis)})}function lc(r,t){var e=r.model,a=or(ar(e.ecModel)).keys;a&&M(a.get(e.uid),function(i){t(i)})}function Rp(r){var t=Lp(Ov(r)),e=t.keyed||(t.keyed=se());nc(r,function(a,i,n){var o=e.get(i)||e.set(i,se()),s=o.get(n)||o.set(n,{});a.metrics.liPosMinGap&&uc.liPosMinGap(r,a,s)})}function Np(r,t){uc[r]=t}var uc={};function cn(r,t,e){if(r){var a=t.ecModel,i=or(ar(a)),n=r.model.uid,o=i.axSer||(i.axSer=se()),s=o.get(n)||o.set(n,[]);s.push(t);var l=t.subType,u=t.getBaseAxis()===r,c=vn.get(fn(l,u,e))||vn.get(fn(l,u,null));if(c){var f=i.keyed||(i.keyed=se()),v=i.keys||(i.keys=se()),h=c.key,d=f.get(h)||f.set(h,se()),p=d.get(n);p||(p=d.set(n,{axis:r,sers:[],serByIdx:[]}),p.metrics=c.getMetrics(r),(v.get(n)||v.set(n,[])).push(h)),p.sers.push(t),p.serByIdx[t.seriesIndex]=t}}}function fn(r,t,e){return r+un+J(t,!0)+un+(e||"")}function Vp(r,t){var e=fn(t.seriesType,t.baseAxis,t.coordSysType);vn.set(e,t),Dp(r,function(){r.registerProcessor(r.PRIORITY.PROCESSOR.AXIS_STATISTICS,{overallReset:Rp})})}var vn=se(),Bp=ge(),cc=1,zp=3,fc=(function(){function r(t,e,a,i,n){var o=ze(t),s=o?e.getCategories().length:null,l;if(o){var u=e.getCategories(!0);l=u&&!u.length}var c=a.slice();(Ha(t)||Qt(t)||Jn(t))&&(au(c,hr(t,e.get("dataMin",!0))),iu(c,hr(t,e.get("dataMax",!0)))),Pv(c)||(c[0]=c[1]=NaN);
1var f=[],v=[!1,!1],h=e.get("min",!0);h==="dataMin"?(f[0]=c[0],v[0]=!0):(f[0]=hr(t,re(h)?h({min:c[0],max:c[1]}):h),v[0]=f[0]!=null);var d=e.get("max",!0);d==="dataMax"?(f[1]=c[1],v[1]=!0):(f[1]=hr(t,re(d)?d({min:c[0],max:c[1]}):d),v[1]=f[1]!=null);var p=Gp(t,e),m=o?null:c[1]-c[0]||Math.abs(c[0]);f[0]==null&&(f[0]=o?l?c[0]:s?0:NaN:c[0]-p[0]*m),f[1]==null&&(f[1]=o?l?c[1]:s?s-1:NaN:c[1]+p[1]*m),!Ia(f[0])&&(f[0]=NaN),!Ia(f[1])&&(f[1]=NaN);var g=l||Ma(f[0])||Ma(f[1])||o&&!s,y=Ha(t),_=y&&e.needIncludeZero&&e.needIncludeZero();_&&(f[0]>0&&f[1]>0&&!v[0]&&(f[0]=0),f[0]<0&&f[1]<0&&!v[1]&&(f[1]=0));var b=!1;f[0]>f[1]&&(f.reverse(),b=!0);var S=hr(t,e.get("startValue",!0)),w=S!=null;!Ee(S)&&i&&(S=t.getDefaultStartValue?t.getDefaultStartValue():0),Ee(S)&&(w||!y||_)&&(S<f[0]&&!v[0]?(f[0]=S,v[0]=!0):S>f[1]&&!v[1]&&(f[1]=S,v[1]=!0));var x=this._i={scale:t,dataMM:c,noZoomEffMM:f,zoomMM:[],fixMM:v,zoomFixMM:[!1,!1],startValue:S,isBlank:g,incl0:_,tggAxInv:b,ctnShp:n};rs(x,f)}return r.prototype.makeNoZoom=function(){return this._i.noZoomEffMM.slice()},r.prototype.makeFinal=function(){var t=this._i,e=t.zoomMM,a=t.noZoomEffMM,i=t.zoomFixMM,n=t.fixMM,o={fixMM:n,zoomFixMM:i,isBlank:t.isBlank,incl0:t.incl0,tggAxInv:t.tggAxInv,ctnShp:t.ctnShp,effMM:a.slice()},s=o.effMM;return e[0]!=null&&(s[0]=e[0],n[0]=i[0]=!0),e[1]!=null&&(s[1]=e[1],n[1]=i[1]=!0),rs(t,s),o},r.prototype.makeRenderInfo=function(){return{startValue:this._i.startValue}},r.prototype.setZoomMM=function(t,e){this._i.zoomMM[t]=e},r})();function rs(r,t){var e=r.scale,a=r.dataMM;e.sanitize&&(t[0]=e.sanitize(t[0],a),t[1]=e.sanitize(t[1],a),Ev(t))}function hr(r,t){return t==null?null:Ma(t)?NaN:r.parse(t)}function Gp(r,t){var e;if(ze(r))e=[0,0];else{var a=t.get("boundaryGap");typeof a=="boolean"&&(a=null),e=H(a)?a:[a,a]}return[as(e[0]),as(e[1])]}function as(r){return La(typeof r=="boolean"?0:r,1)||0}function vc(r){var t=Bp(r.scale);return t.extent||(t.extent=Wt()),t}function Fp(r,t){vc(r).dimIdxInCoord=t.get(r.dim)}function hc(r,t){var e=r.scale,a=r.model,i=r.dim;e.rawExtentInfo||Hp(e,r,i,a,t)}function Hp(r,t,e,a,i){var n=vc(t),o=n.extent,s=!1;Pp(t,function(c){if(c.boxCoordinateSystem){var f=Rv(c).coord,v=n.dimIdxInCoord;if(v>=0){if(H(f)){var h=f[v];h!=null&&!H(h)&&en(o,r.parse(h))}}}else if(c.coordinateSystem){var d=c.getData();if(d){var p=r.getFilter?r.getFilter():null;M(Tp(d,e),function(m){Nv(o,d.getApproximateExtent(m,p))})}c.__requireStartValue&&c.__requireStartValue(t)&&(s=!0)}});var l=$p(r,t,a),u=new fc(r,a,o,s,l);dc(r,u,i),n.extent=null}function Wp(r,t){var e=r.scale;dc(e,new fc(e,r.model,t,!1,!1),zp)}function dc(r,t,e){r.rawExtentInfo=t,t.from=e}function Up(r,t){ro.set(r,t)}var ro=se();function pc(r,t,e,a,i){r.rawExtentInfo||Wp({scale:r,model:t},Wt());var n=r.rawExtentInfo.makeFinal(),o=n.effMM;return r.setExtent(o[0],o[1]),r.setBlank(n.isBlank),a&&n.tggAxInv&&e&&!e.get("legacyMinMaxDontInverseAxis")&&(a.inverse=!a.inverse),n}
1function $p(r,t,e){var a=tc(r,e),i=e.get("containShape",!0);if(i==null&&!a&&(i=!0),!i)return!1;var n=!1;return lc(t,function(o){n=!!ro.get(o)||n}),n}function Yp(r,t,e,a){if(e.ctnShp){var i;if(lc(r,function(s){var l=ro.get(s);if(l){var u=l(r,a);u&&(i=i||[0,0],au(i,u[0]),iu(i,u[1]),wp(r))}}),!!i){var n=t.getExtent();if(ze(t))r.onBand||t.setExtent2(Mr,He(n[0],n[0]+i[0]),he(n[1],n[1]+i[1]));else{var o=n.slice();e.zoomFixMM[0]||(o[0]=He(o[0],t.transformOut(t.transformIn(o[0],null)+i[0],null))),e.zoomFixMM[1]||(o[1]=he(o[1],t.transformOut(t.transformIn(o[1],null)+i[1],null))),(o[0]<n[0]||o[1]>n[1])&&t.setExtent2(Mr,o[0],o[1])}}}}function is(r,t){var e=Qt(r),a=e?r.intervalStub:r,i=t.fixMinMax||[],n=e?r.getExtent():null,o=a.getExtent(),s=Xu(o,i,t.rawExtentResult);a.setExtent(s[0],s[1]),s=a.getExtent();var l=e?Kp(a,t):Xp(a,t),u=l.intervalPrecision,c=l.interval,f=t.userInterval;f!=null&&(l.interval=f,l.intervalPrecision=It(f)),i[0]||(s[0]=ee(Ar(s[0]/c)*c,u)),i[1]||(s[1]=ee(ri(s[1]/c)*c,u)),f!=null&&(l.niceExtent=s.slice()),ec(r,i,o,s,n,l)}function Xp(r,t){var e=fi(t.splitNumber,5),a=ci(r),i=t.minInterval,n=t.maxInterval,o=Vn(a/e,!0);i!=null&&o<i&&(o=i),n!=null&&o>n&&(o=n);var s=It(o),l=r.getExtent(),u=[ee(ri(l[0]/o)*o,s),ee(Ar(l[1]/o)*o,s)];return{interval:o,intervalPrecision:s,niceExtent:u}}function Kp(r,t){var e=fi(t.splitNumber,10),a=r.getExtent(),i=ci(r),n=he(nu(i),1),o=e/i*n;o<=.5&&(n*=10);var s=It(n),l=[ee(ri(a[0]/n)*n,s),ee(Ar(a[1]/n)*n,s)];return{intervalPrecision:s,interval:n,niceExtent:l}}function ns(r){var t=r.scale,e=r.model,a=e.axis,i=e.ecModel;Zp(t,e,a,i)}function Zp(r,t,e,a,i){var n=pc(r,t,a,e),o=Ha(r)||Jn(r);qp(r,{splitNumber:t.get("splitNumber"),fixMinMax:n.fixMM,userInterval:t.get("interval"),minInterval:o?t.get("minInterval"):null,maxInterval:o?t.get("maxInterval"):null,rawExtentResult:n}),e&&a&&Yp(e,r,n,a)}function qp(r,t){jp[r.type](r,t)}var jp={interval:is,log:is,time:mp,ordinal:Ut},os=[],Jp={registerPreprocessor:qv,registerProcessor:Zv,registerPostInit:Kv,registerPostUpdate:Xv,registerUpdateLifecycle:Yv,registerAction:$v,registerCoordinateSystem:Uv,registerLayout:Wv,registerVisual:Hv,registerTransform:Fv,registerLoading:Gv,registerMap:zv,registerImpl:Bv,PRIORITY:Vv,ComponentModel:Pe,ComponentView:We,SeriesModel:Yt,ChartView:wt,registerComponentModel:function(r){Pe.registerClass(r)},registerComponentView:function(r){We.registerClass(r)},registerSeriesModel:function(r){Yt.registerClass(r)},registerChartView:function(r){wt.registerClass(r)},registerCustomSeries:function(r,t){},registerSubTypeDefaulter:function(r,t){Pe.registerSubTypeDefaulter(r,t)},registerPainter:function(r,t){jv(r,t)}};function Ne(r){if(H(r)){M(r,function(t){Ne(t)});return}De(os,r)>=0||(os.push(r),re(r)&&(r={install:r}),r.install(Jp))}var Qp=ge(),Sr=ge(),Ve={estimate:1,determine:2};function Ua(r){return{out:{noPxChangeTryDetermine:[]},kind:r}}function eg(r,t){var e=r.getLabelModel().get("customValues");if(e){var a=r.scale;return{labels:F(gc(e,a),function(i,n){return{formattedLabel:vi(r)(i,n),rawLabel:a.getLabel(i),tick:i}})}}return r.type==="category"?rg(r,t):ig(r)}function tg(r,t,e){var a=r.scale,i=r.getTickModel().get("customValues");return i?{ticks:gc(i,a)}:r.type==="category"?ag(r,t):{ticks:a.getTicks(e)}}function gc(r,t){var e=t.getExtent(),a=[];return M(r,function(i){i=t.parse(i),i>=e[0]&&i<=e[1]&&a.push(i)}),Pn(a,Jv,null),ai(a),F(a,function(i){return{value:i}})}function rg(r,t){var e=r.getLabelModel(),a=mc(r,e,t);return!e.get("show")||r.scale.isBlank()?{labels:[]}:a}function mc(r,t,e){var a=og(r),i=eo(t),n=e.kind===Ve.estimate;if(!n){var o=_c(a,i);if(o)return o}var s,l;re(i)?s=$a(r,i,!1):(l=i==="auto"?sg(r,e):i,s=$a(r,l,!1));var u={labels:s,labelCategoryInterval:l};return n?e.out.noPxChangeTryDetermine.push(function(){return hn(a,i,u),!0}):hn(a,i,u),u}function ag(r,t){var e=ng(r),a=eo(t),i=_c(e,a);if(i)return i;var n,o;if((!t.get("show")||r.scale.isBlank())&&(n=[]),re(a))n=$a(r,a,!0);else if(a==="auto"){var s=mc(r,r.getLabelModel(),Ua(Ve.determine));o=s.labelCategoryInterval,n=F(s.labels,function(l){return l.tick})}else o=a,n=$a(r,o,!0);return hn(e,a,{ticks:n,tickCategoryInterval:o})}function ig(r){var t=r.scale.getTicks(),e=vi(r);return{labels:F(t,function(a,i){return{formattedLabel:e(a,i),rawLabel:r.scale.getLabel(a),tick:a}})}}var ng=yc("axisTick"),og=yc("axisLabel");function yc(r){return function(e){return Sr(e)[r]||(Sr(e)[r]={list:[]})}}function _c(r,t){for(var e=0;e<r.list.length;e++)if(r.list[e].key===t)return r.list[e].value}function hn(r,t,e){return r.list.push({key:t,value:e}),e}function sg(r,t){if(t.kind===Ve.estimate){var e=r.calculateCategoryInterval(t);return t.out.noPxChangeTryDetermine.push(function(){return Sr(r).autoInterval=e,!0}),e}var a=Sr(r).autoInterval;return a??(Sr(r).autoInterval=r.calculateCategoryInterval(t))}function lg(r,t){var e=t.kind,a=cg(r),i=vi(r),n=(a.axisRotate-a.labelRotate)/180*Math.PI,o=r.scale,s=o.getExtent(),l=o.count();if(s[1]-s[0]<1)return 0;var u=1,c=40;l>c&&(u=Math.max(1,Math.floor(l/c)));for(var f=s[0],v=r.dataToCoord(f+1)-r.dataToCoord(f),h=Math.abs(v*Math.cos(n)),d=Math.abs(v*Math.sin(n)),p=0,m=0;f<=s[1];f+=u){var g=0,y=0,_=ou(i({value:f}),a.font,"center","top");g=_.width*1.3,y=_.height*1.3,p=Math.max(p,g,7),m=Math.max(m,y,7)}var b=p/h,S=m/d;isNaN(b)&&(b=1/0),isNaN(S)&&(S=1/0);var w=Math.max(0,Math.floor(Math.min(b,S)));if(e===Ve.estimate)return t.out.noPxChangeTryDetermine.push(te(ug,null,r,w,l)),w;var x=bc(r,w,l);return x??w}function ug(r,t,e){return bc(r,t,e)==null}function bc(r,t,e){var a=Qp(r.model),i=r.getExtent(),n=a.lastAutoInterval,o=a.lastTickCount;if(n!=null&&o!=null&&Math.abs(n-t)<=1&&Math.abs(o-e)<=1&&n>t&&a.axisExtent0===i[0]&&a.axisExtent1===i[1])return n;a.lastTickCount=e,a.lastAutoInterval=t,a.axisExtent0=i[0],a.axisExtent1=i[1]}function cg(r){var t=r.getLabelModel();return{axisRotate:r.getRotate?r.getRotate():r.isHorizontal&&!r.isHorizontal()?90:0,labelRotate:t.get("rotate")||0,font:t.getFont()}}function $a(r,t,e){var a=vi(r),i=r.scale,n=[],o=re(t);return Ku(i,o?0:t,function(s,l){var u=i.getLabel(s);if(o){var c=!!t(s.value,u);if(s.offInterval=!c,!c&&!l)return}n.push(e?s:{formattedLabel:a(s),rawLabel:u,tick:s})}),n}var fg=.8;function sr(r,t){t=t||{};
1var e={w:NaN,w2:NaN},a=r.scale,i=t.fromStat,n=t.min,o=ap(a);Ee(o)||(o=NaN);var s=r.getExtent(),l=St(s[1]-s[0]);return ze(a)?vg(e,r,o,l):i&&hg(e,r,o,l,i),n!=null&&(e.w=Ee(e.w)?he(n,e.w):n),e}function vg(r,t,e,a){var i=t.onBand,n=e+(i?1:0);n===0&&(n=1),r.w=a/n,!i&&e&&a&&(r.w2=r.w*e/a)}function hg(r,t,e,a,i){var n=!1,o=-1/0;M(i.key?[kp(t,i.key)]:Op(t,i.sers||[]),function(s){var l=s.liPosMinGap;l!=null&&(l>0?(l>o&&(o=l),n=!1):l===ac&&(n=!0))}),Ee(e)&&e>0&&Ee(o)?(r.w=a/e*o,r.w2=o):n&&(r.w=a*fg,r.w2=r.w*e/a)}var ss=[0,1],xc=(function(){function r(t,e,a){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=e,this._extent=a||[0,0]}return r.prototype.contain=function(t){var e=this._extent,a=Math.min(e[0],e[1]),i=Math.max(e[0],e[1]);return t>=a&&t<=i},r.prototype.containData=function(t){return this.scale.contain(this.scale.parse(t))},r.prototype.getExtent=function(){return this._extent.slice()},r.prototype.setExtent=function(t,e){var a=this._extent;a[0]=t,a[1]=e},r.prototype.dataToCoord=function(t,e){var a=this.scale;return t=a.normalize(a.parse(t)),tt(t,ss,ls(this),e)},r.prototype.coordToData=function(t,e){var a=tt(t,ls(this),ss,e);return this.scale.scale(a)},r.prototype.pointToData=function(t,e){},r.prototype.getTicksCoords=function(t){t=t||{};var e=t.tickModel||this.getTickModel(),a=tg(this,e,{breakTicks:t.breakTicks,pruneByBreak:t.pruneByBreak}),i=F(a.ticks,function(s){return{coord:this.dataToCoord(Fr(this.scale,s)),tick:s}},this),n=e.get("alignWithLabel"),o=dg(this,i,n);return F(i,function(s){return{coord:s.coord,tickValue:s.tick.value,onBand:o}})},r.prototype.getMinorTicksCoords=function(){if(ze(this.scale))return[];var t=this.model.getModel("minorTick"),e=t.get("splitNumber");e>0&&e<100||(e=5);var a=this.scale.getMinorTicks(e),i=F(a,function(n){return F(n,function(o){return{coord:this.dataToCoord(o),tickValue:o}},this)},this);return i},r.prototype.getViewLabels=function(t){return t=t||Ua(Ve.determine),eg(this,t).labels},r.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},r.prototype.getTickModel=function(){return this.model.getModel("axisTick")},r.prototype.getBandWidth=function(){return sr(this,{min:1}).w},r.prototype.calculateCategoryInterval=function(t){return t=t||Ua(Ve.determine),lg(this,t)},r})();function ls(r){var t=r.getExtent();if(r.onBand){var e=t[1]-t[0],a=e/r.scale.count()/2;t[0]+=a,t[1]-=a}return t}function dg(r,t,e){var a=t.length;if(!r.onBand||e||!a)return!1;var i=sr(r).w;if(!i)return!1;M(t,function(s){s.coord-=i/2});var n=r.scale.getExtent(),o=t[a-1];return o.tick.offInterval&&t.pop(),t.push({coord:o.coord+i,tick:{value:n[1]+1}}),!0}var us=["label","labelLine","layoutOption","priority","defaultAttr","marginForce","minMarginForce","marginDefault","suggestIgnore"],pg=1,Ya=2,Sc=pg|Ya;function Xa(r,t,e){e=e||Sc,t?r.dirty|=e:r.dirty&=~e}function wc(r,t){return t=t||Sc,r.dirty==null||!!(r.dirty&t)}function dt(r){if(r)return wc(r)&&gg(r,r.label,r),r}function gg(r,t,e){var a=t.getComputedTransform();r.transform=su(r.transform,a);var i=r.localRect=ka(r.localRect,t.getBoundingRect()),n=t.style,o=n.margin,s=e&&e.marginForce,l=e&&e.minMarginForce,u=e&&e.marginDefault,c=n.__marginType;c==null&&u&&(o=u,c=Kr.textMargin);for(var f=0;f<4;f++)Li[f]=c===Kr.minMargin&&l&&l[f]!=null?l[f]:s&&s[f]!=null?s[f]:o?o[f]:0;c===Kr.textMargin&&tn(i,Li,!1,!1);var v=r.rect=ka(r.rect,i);return a&&v.applyTransform(a),c===Kr.minMargin&&tn(v,Li,!1,!1),r.axisAligned=lu(a),(r.label=r.label||{}).ignore=t.ignore,Xa(r,!1),Xa(r,!0,Ya),r}var Li=[0,0,0,0];function mg(r,t,e){return r.transform=su(r.transform,e),r.localRect=ka(r.localRect,t),r.rect=ka(r.rect,t),e&&r.rect.applyTransform(e),r.axisAligned=lu(e),r.obb=void 0,(r.label=r.label||{}).ignore=!1,r}function yg(r,t){if(r){r.label.x+=t.x,r.label.y+=t.y,r.label.markRedraw();var e=r.transform;e&&(e[4]+=t.x,e[5]+=t.y);var a=r.rect;a&&(a.x+=t.x,a.y+=t.y);var i=r.obb;i&&i.fromBoundingRect(r.localRect,e)}}function cs(r,t){for(var e=0;e<us.length;e++){var a=us[e];r[a]==null&&(r[a]=t[a])}return dt(r)}function fs(r){var t=r.obb;
1return(!t||wc(r,Ya))&&(r.obb=t=t||new Qv,t.fromBoundingRect(r.localRect,r.transform),Xa(r,!1,Ya)),t}function _g(r){var t=[];r.sort(function(u,c){return(c.suggestIgnore?1:0)-(u.suggestIgnore?1:0)||c.priority-u.priority});function e(u){if(!u.ignore){var c=u.ensureState("emphasis");c.ignore==null&&(c.ignore=!1)}u.ignore=!0}for(var a=0;a<r.length;a++){var i=dt(r[a]);if(!i.label.ignore){for(var n=i.label,o=i.labelLine,s=!1,l=0;l<t.length;l++)if(ao(i,t[l],null,{touchThreshold:.05})){s=!0;break}s?(e(n),o&&e(o)):t.push(i)}}}function ao(r,t,e,a){return!r||!t||r.label&&r.label.ignore||t.label&&t.label.ignore||!r.rect.intersect(t.rect,e,a)?!1:r.axisAligned&&t.axisAligned?!0:fs(r).intersect(fs(t),e,a)}const bg={class:"experiment-hero section"},xg={class:"container"},Sg={class:"stat-card glass-card accent stagger-1"},wg={class:"stat-icon"},Ag={class:"stat-value"},Cg=ke({__name:"ExperimentHero",setup(r){const{elementRef:t,isVisible:e}=rt({threshold:.1}),{elementRef:a,isVisible:i}=rt({threshold:.2}),n=ct(0);Br(async()=>{try{const s=await $fetch("/api/waitlist");n.value=s.count}catch{}});function o(){document.getElementById("join")?.scrollIntoView({behavior:"smooth"})}return(s,l)=>{const u=kn;return ve(),ue("section",bg,[L("div",xg,[L("div",{ref_key:"heroRef",ref:t,class:ye(["hero-content","reveal",{revealed:X(e)}])},[l[1]||(l[1]=L("span",{class:"section-label stagger-1"},"Community Experiment",-1)),l[2]||(l[2]=L("h1",{class:"hero-title stagger-2"},[At(" What Actually"),L("br"),L("span",{class:"gradient-text"},"Predicts Lucid Dreams?")],-1)),l[3]||(l[3]=L("p",{class:"hero-subtitle stagger-3"}," Tracking how journaling frequency, consistency, and nightly practice correlate with lucid dreaming, with real data from real dreamers. ",-1)),L("a",{href:"#join",class:"hero-cta stagger-4",onClick:uu(o,["prevent"])},[l[0]||(l[0]=At(" Join the experiment ",-1)),K(u,{name:"arrow-down",size:"16"})])],2),L("div",{ref_key:"statsRef",ref:a,class:ye(["stats-grid","reveal",{revealed:X(i)}])},[L("div",Sg,[L("div",wg,[K(u,{name:"users",size:"22"})]),L("div",Ag,je(X(n)>0?X(n):": "),1),l[4]||(l[4]=L("div",{class:"stat-label"},"Dreamers Signed Up",-1)),l[5]||(l[5]=L("div",{class:"stat-sublabel"},"Waiting for launch",-1))])],2)])])}}}),Tg=at(Cg,[["__scopeId","data-v-d64a3521"]]);function io(){return typeof window<"u"&&typeof document<"u"}const Ig=/^on[^a-z]/,Ac=r=>Ig.test(r);function Cc(r){if(!Ac(r))return null;let t=r.charAt(2).toLowerCase()+r.slice(3);const e=t.endsWith("Once");return e&&(t=t.slice(0,-4)),{event:t,once:e}}function Dg(r){const t=Number(r);return Number.isInteger(t)&&t>=0&&t<Math.pow(2,32)-1&&String(t)===r}function Mg(r,t){const e=new Set(r),a=new Set(t);if(e.size!==a.size)return!1;for(const i of e)if(!a.has(i))return!1;return!0}function no(r){return r!=null&&typeof r=="object"&&!Array.isArray(r)}const Lg=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function kg(r){function t(e){return function(...i){if(!r.value)throw new Error("ECharts is not initialized yet.");return Reflect.apply(r.value[e],r.value,i)}}return Lg.reduce((e,a)=>(e[a]=t(a),e),{})}function Og(r,t,e){ma([e,r,t],([a,i,n],o,s)=>{let l=null;if(a&&i&&n){const{offsetWidth:u,offsetHeight:c}=a,{throttle:f=100,onResize:v}=n===!0?{}:n;let h=!1;const d=()=>{i.resize(),v?.()},p=f?cu(d,f):d;l=new ResizeObserver(()=>{!h&&(h=!0,a.offsetWidth===u&&a.offsetHeight===c)||a.offsetWidth===0||a.offsetHeight===0||p()}),l.observe(a)}s(()=>{l&&(l.disconnect(),l=null)})})}const Pg={autoresize:[Boolean,Object]},Eg=Symbol();function Rg(r,t,e){const a=ga(Eg,{}),i=Me(()=>({...ya(a),...e.value??{}}));Bn(()=>{const n=r.value;n&&(t.value?n.showLoading(i.value):n.hideLoading())})}const Ng={loading:Boolean,loadingOptions:Object},Vg={tooltip:["tooltip","formatter"],dataView:["toolbox","feature","dataView","optionToContent"]},Bg=["tooltip","dataView"];function zg(r){return Bg.some(t=>r===t||r.startsWith(t+"-"))}function Gg(r,t,e){const a=Fg(r,t);if(Array.isArray(a)){const i=[...a];return Sa(r,t,i),i}if(no(a)){const i={...a};return Sa(r,t,i),i}if(a===void 0){const i=e&&Dg(e)?[]:{};return Sa(r,t,i),i}}function Fg(r,t){return Array.isArray(r)?r[Number(t)]:r[t]}function Sa(r,t,e){if(Array.isArray(r)){r[Number(t)]=e;return}r[t]=e}function Hg(r,t){const e=io()?document.createElement("div"):void 0,a=bi({}),i=bi({}),n=bi({}),o=zt(!1),s=new Set,l=v=>{const h=[];
1for(const d of Object.keys(r))d!=="graphic"&&(zg(d)?h.push(d):v&&!s.has(d)&&s.add(d));return h};let u=l(!1);const c=()=>{const v=l(!1);if(!(v.length===0||!o.value||!e))return Ht(sh,{to:e},v.map(h=>{const d=r[h],p=i[h]?d?.(n[h]):void 0;return Ht("div",{key:h,ref:m=>{m instanceof HTMLElement&&(a[h]=m)},style:{display:"contents"}},p)}))};function f(v){const h={...v},d=l(!0);for(const p of d){const m=p.startsWith("tooltip")?"tooltip":"dataView",g=p.slice(m.length),y=g?g.slice(1).split("-"):[],_=Vg[m],b=[...y,..._];let S=h;for(let I=0;I<b.length-1&&(S=Gg(S,b[I],b[I+1]),!!S);I++);if(!S)continue;const w=b[b.length-1];Sa(S,w,I=>(i[p]=!0,n[p]=I,a[p]))}return h}return ih(()=>{const v=l(!1);if(!Mg(v,u)){const h=new Set(v);for(const d of u)h.has(d)||(delete n[d],delete i[d],delete a[d]);u=v,t()}}),Br(()=>{o.value=!0}),nh(()=>{e?.remove()}),{render:c,patchOption:f}}let nt=null;const Tc="x-vue-echarts";function Wg(){if(nt!=null)return nt;const r=globalThis.customElements;if(!io()||!r?.get)return nt=!1,nt;if(!r.get("x-vue-echarts"))try{class t extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}r.define(Tc,t)}catch{return nt=!1,nt}return nt=!0,nt}function Ug(r,t){return t?r.getZr():r}function $g(r){if(typeof r=="function")return[r];if(!Array.isArray(r))return[];const t=[];for(const e of r)typeof e=="function"&&t.push(e);return t}function Yg(r,t,e,a){const i=$g(e);if(i.length===0)return;const n=(...l)=>{for(const u of i)u(...l)};if(!a)return n;let o=!1;const s=(...l)=>{o||(o=!0,n(...l),r.off(t,s))};return s}function Xg(r,t){if(!r.startsWith("native:"))return null;const e=r.slice(7);return e?`on${e.charAt(0).toUpperCase()}${e.slice(1)}${t?"Once":""}`:null}function Kg(r,t){const e=new Map;let a;function i(){for(const n of e.values())n.emitter.off(n.event,n.handler);e.clear()}Bn(()=>{const n=r.value;if(!n){i(),a=void 0;return}a&&a!==n&&i(),a=n;const o=new Set;for(const s in t){const l=Cc(s);if(!l||l.event.startsWith("native:"))continue;const u=l.event.startsWith("zr:"),c=u?l.event.slice(3):l.event,f=t[s],v=Ug(n,u),h=e.get(s);if(h&&h.source===f&&h.event===c&&h.once===l.once){o.add(s);continue}h&&(h.emitter.off(h.event,h.handler),e.delete(s));const d=Yg(v,c,f,l.once);d&&(v.on(c,d),e.set(s,{emitter:v,event:c,source:f,once:l.once,handler:d}),o.add(s))}for(const[s,l]of e)o.has(s)||(l.emitter.off(l.event,l.handler),e.delete(s))}),oh(i)}function Zg(r){return{nonEventAttrs:Me(()=>{const t={};for(const e in r)Ac(e)||(t[e]=r[e]);return t}),nativeListeners:Me(()=>{const t={};for(const e in r){const a=Cc(e);if(!a)continue;const i=Xg(a.event,a.once);i&&(t[i]=r[e])}return t})}}function qg(r){if(!no(r))return;const t=r.id;if(typeof t=="string")return t;if(typeof t=="number"&&Number.isFinite(t))return String(t)}function jg(r){const t=new Set;let e=0;for(let a=0;a<r.length;a++){const i=qg(r[a]);if(i===void 0){e++;continue}t.add(i)}return{idsSorted:t.size>0?Array.from(t).sort():[],noIdCount:e}}function Ic(r){const t=r,e=Array.isArray(t.options)?t.options.length:0,a=Array.isArray(t.media)?t.media.length:0,i=Object.create(null),n=[],o=[];for(const s of Object.keys(t)){if(s==="options"||s==="media")continue;const l=t[s];if(Array.isArray(l)){i[s]=jg(l);continue}if(no(l)){n.push(s);continue}l!==void 0&&o.push(s)}return n.length>1&&n.sort(),o.length>1&&o.sort(),{optionsLength:e,mediaLength:a,arrays:i,objects:n,scalars:o}}function Dc(r,t){if(r.length===0)return[];if(t.length===0)return r.slice();const e=new Set(t),a=[];for(let i=0;i<r.length;i++){const n=r[i];e.has(n)||a.push(n)}return a}function Jg(r,t){if(r.length===0)return!1;if(t.length===0)return!0;const e=new Set(t);for(let a=0;a<r.length;a++)if(!e.has(r[a]))return!0;return!1}function Qg(r,t){return t.optionsLength<r.optionsLength||t.mediaLength<r.mediaLength?!0:Dc(r.scalars,t.scalars).length>0}function em(r,t){const e=new Map,a=Dc(r.objects,t.objects);for(let i=0;i<a.length;i++){const n=a[i],o=t.arrays[n]!==void 0,s=t.scalars.includes(n);!o&&!s&&e.set(n,null)}return e}function tm(r,t,e){const a=new Set;for(const i of Object.keys(r.arrays)){const n=r.arrays[i];if(!n)continue;const o=t.arrays[i];if(!o){(n.idsSorted.length>0||n.noIdCount>0)&&(e.set(i,[]),a.add(i));continue}if(Jg(n.idsSorted,o.idsSorted)){a.add(i);continue}o.noIdCount<n.noIdCount&&a.add(i)}return a}function rm(r,t,e){if(e.size===0)return{option:r,signature:t};const a={...r};return e.forEach((i,n)=>{a[n]=i}),{option:a,signature:Ic(a)}}function vs(r,t){const e=Ic(t);if(!r)return{option:t,signature:e,plan:{notMerge:!1}};if(Qg(r,e))return{option:t,signature:e,plan:{notMerge:!0}};const a=em(r,e),i=tm(r,e,a),n=rm(t,e,a),o=i.size>0?Array.from(i).sort():void 0;return{option:n.option,signature:n.signature,plan:o?{notMerge:!1,replaceMerge:o}:{notMerge:!1}}}var hs=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0;}
2x-vue-echarts>.echarts-host{display:block;width:100%;height:100%;min-width:0;}
3x-vue-echarts>.echarts-host>:first-child,x-vue-echarts>.echarts-host>:first-child>canvas{border-radius:inherit;}
4`;if(io())if(Array.isArray(document.adoptedStyleSheets)&&"replaceSync"in CSSStyleSheet.prototype){const r=new CSSStyleSheet;r.replaceSync(hs),document.adoptedStyleSheets=[...document.adoptedStyleSheets,r]}else{const r=document.createElement("style");r.textContent=hs,document.head.appendChild(r)}const am=Wg(),im=Symbol(),nm=Symbol(),om=Symbol();var sm=ke({name:"Echarts",inheritAttrs:!1,props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...Pg,...Ng},emits:{},slots:Object,setup(r,{attrs:t,expose:e,slots:a}){const i=t,n=zt(),o=zt(),s=zt(),l=zt(!1),u=ga(im,null),c=ga(nm,null),f=ga(om,null),{autoresize:v,manualUpdate:h,loading:d,loadingOptions:p}=eh(r),m=Me(()=>r.theme||ya(u)),g=Me(()=>r.initOptions||ya(c)||void 0),y=Me(()=>r.updateOptions||ya(f)),{nonEventAttrs:_,nativeListeners:b}=Zg(i),{render:S,patchOption:w}=Hg(a,k),{patchOption:x,render:I}={};let T;function C(P){if(!a.graphic||!x)return P;const O=[...P?.replaceMerge??[],"graphic"];return{...P,replaceMerge:[...new Set(O)]}}function A(P,O,V,U=!1){const B=w(O),$=x?x(B):B;if(U){P.setOption($,C(V)??{}),T=void 0;return}if(V){const Q=vs(T,$);P.setOption($,C(V)),T=Q.signature;return}if(y.value){P.setOption($,C(y.value)),T=void 0;return}const Y=vs(T,$),z={notMerge:Y.plan.notMerge},Z=(Y.plan.replaceMerge??[]).filter(Q=>Q!=null);Z.length>0&&(z.replaceMerge=[...new Set(Z)]),P.setOption(Y.option,C(z)),T=Y.signature}function k(P){const O=s.value,V=r.option;return!O||!V||h.value?!1:(A(O,V,P),!0)}a.graphic,Kg(s,i);function D(){const P=s.value;P&&(P.dispose(),s.value=void 0),l.value=!1,T=void 0}function R(){l.value=!1;const P=o.value,O=s.value=rh(P,m.value,g.value);r.group&&(O.group=r.group);function V(){O.isDisposed()||O.resize()}function U(){const B=r.option;if(B){if(h.value){A(O,B,void 0,!0);return}A(O,B)}}if(v.value){ah(()=>{V(),U(),l.value=!0});return}U(),l.value=!0}const E=(P,O,V)=>{if(!r.manualUpdate)return;const U=typeof O=="boolean"?{notMerge:O,lazyUpdate:V}:O,B=s.value;B&&A(B,P,U??void 0,!0)};ma(()=>r.option,P=>{if(!P){T=void 0;return}if(h.value)return;const O=s.value;O&&A(O,P)},{deep:!0}),ma([h,g],()=>{D(),R()},{deep:!0}
4),ma(m,P=>{const O=s.value;O&&(O.setTheme(P||{}),r.option&&!h.value&&A(O,r.option))},{deep:!0}),Bn(()=>{const P=s.value;r.group&&P&&(P.group=r.group)});const N=kg(s);return Rg(s,d,p),Og(s,v,n),Br(R),th(()=>{if(am&&n.value){n.value.__dispose=D;return}D()}),e({setOption:E,root:n,chart:s,...N}),(()=>{const P=[Ht("div",{ref:o,class:"echarts-host"})];if(l.value){const O=S();O&&P.push(O)}if(I){const O=I();O&&P.push(O)}return Ht(Tc,{..._.value,...b.value,ref:n,class:["echarts",_.value.class]},P)})}}),ki=Math.sin,Oi=Math.cos,Mc=Math.PI,pt=Math.PI*2,lm=180/Mc,Lc=(function(){function r(){}return r.prototype.reset=function(t){this._start=!0,this._d=[],this._str="",this._p=Math.pow(10,t||4)},r.prototype.moveTo=function(t,e){this._add("M",t,e)},r.prototype.lineTo=function(t,e){this._add("L",t,e)},r.prototype.bezierCurveTo=function(t,e,a,i,n,o){this._add("C",t,e,a,i,n,o)},r.prototype.quadraticCurveTo=function(t,e,a,i){this._add("Q",t,e,a,i)},r.prototype.arc=function(t,e,a,i,n,o){this.ellipse(t,e,a,a,0,i,n,o)},r.prototype.ellipse=function(t,e,a,i,n,o,s,l){var u=s-o,c=!l,f=Math.abs(u),v=ft(f-pt)||(c?u>=pt:-u>=pt),h=u>0?u%pt:u%pt+pt,d=!1;v?d=!0:ft(f)?d=!1:d=h>=Mc==!!c;var p=t+a*Oi(o),m=e+i*ki(o);this._start&&this._add("M",p,m);var g=Math.round(n*lm);if(v){var y=1/this._p,_=(c?1:-1)*(pt-y);this._add("A",a,i,g,1,+c,t+a*Oi(o+_),e+i*ki(o+_)),y>.01&&this._add("A",a,i,g,0,+c,p,m)}else{var b=t+a*Oi(s),S=e+i*ki(s);this._add("A",a,i,g,+d,+c,b,S)}},r.prototype.rect=function(t,e,a,i){this._add("M",t,e),this._add("l",a,0),this._add("l",0,i),this._add("l",-a,0),this._add("Z")},r.prototype.closePath=function(){this._d.length>0&&this._add("Z")},r.prototype._add=function(t,e,a,i,n,o,s,l,u){for(var c=[],f=this._p,v=1;v<arguments.length;v++){var h=arguments[v];if(isNaN(h)){this._invalid=!0;return}c.push(Math.round(h*f)/f)}this._d.push(t+c.join(" ")),this._start=t==="Z"},r.prototype.generateStr=function(){this._str=this._invalid?"":this._d.join(""),this._d=[]},r.prototype.getStr=function(){return this._str},r})(),oo="none",um=Math.round;function cm(r){var t=r.fill;return t!=null&&t!==oo}function fm(r){var t=r.stroke;return t!=null&&t!==oo}var dn=["lineCap","miterLimit","lineJoin"],vm=F(dn,function(r){return"stroke-"+r.toLowerCase()});function hm(r,t,e,a){var i=t.opacity==null?1:t.opacity;if(e instanceof zr){r("opacity",i);return}if(cm(t)){var n=Cr(t.fill);r("fill",n.color);var o=t.fillOpacity!=null?t.fillOpacity*n.opacity*i:n.opacity*i;o<1&&r("fill-opacity",o)}else r("fill",oo);if(fm(t)){var s=Cr(t.stroke);r("stroke",s.color);var l=t.strokeNoScale?e.getLineScale():1,u=l?(t.lineWidth||0)/l:0,c=t.strokeOpacity!=null?t.strokeOpacity*s.opacity*i:s.opacity*i,f=t.strokeFirst;if(u!==1&&r("stroke-width",u),f&&r("paint-order",f?"stroke":"fill"),c<1&&r("stroke-opacity",c),t.lineDash){var v=lh(e),h=v[0],d=v[1];h&&(d=um(d||0),r("stroke-dasharray",h.join(",")),(d||a)&&r("stroke-dashoffset",d))}for(var p=0;p<dn.length;p++){var m=dn[p];if(t[m]!==Mo[m]){var g=t[m]||Mo[m];g&&r(vm[p],g)}}}}var kc="http://www.w3.org/2000/svg",Oc="http://www.w3.org/1999/xlink",dm="http://www.w3.org/2000/xmlns/",pm="http://www.w3.org/XML/1998/namespace",ds="ecmeta_";function Pc(r){return document.createElementNS(kc,r)}function ce(r,t,e,a,i){return{tag:r,attrs:e||{},children:a,text:i,key:t}}function gm(r,t){var e=[];if(t)for(var a in t){var i=t[a],n=a;i!==!1&&(i!==!0&&i!=null&&(n+='="'+i+'"'),e.push(n))}return"<"+r+" "+e.join(" ")+">"}function mm(r){return"</"+r+">"}function so(r,t){t=t||{};var e=t.newline?`
5`:"";function a(i){var n=i.children,o=i.tag,s=i.attrs,l=i.text;return gm(o,s)+(o!=="style"?fu(l):l||"")+(n?""+e+F(n,function(u){return a(u)}).join(e)+e:"")+mm(o)}return a(r)}function ym(r,t,e){e=e||{};var a=e.newline?`
6`:"",i=" {"+a,n=a+"}",o=F(me(r),function(l){return l+i+F(me(r[l]),function(u){return u+":"+r[l][u]+";"}).join(a)+n}).join(a),s=F(me(t),function(l){return"@keyframes "+l+i+F(me(t[l]),function(u){return u+i+F(me(t[l][u]),function(c){var f=t[l][u][c];return c==="d"&&(f='path("'+f+'")'),c+":"+f+";"}).join(a)+n}).join(a)+n}).join(a);return!o&&!s?"":["<![CDATA[",o,s,"]]>"].join(a)}function pn(r){return{zrId:r,shadowCache:{},patternCache:{},gradientCache:{}
6,clipPathCache:{},defs:{},cssNodes:{},cssAnims:{},cssStyleCache:{},cssAnimIdx:0,shadowIdx:0,gradientIdx:0,patternIdx:0,clipPathIdx:0}}function ps(r,t,e,a){return ce("svg","root",{width:r,height:t,xmlns:kc,"xmlns:xlink":Oc,version:"1.1",baseProfile:"full",viewBox:a?"0 0 "+r+" "+t:!1},e)}var _m=0;function Ec(){return _m++}var gs={cubicIn:"0.32,0,0.67,0",cubicOut:"0.33,1,0.68,1",cubicInOut:"0.65,0,0.35,1",quadraticIn:"0.11,0,0.5,0",quadraticOut:"0.5,1,0.89,1",quadraticInOut:"0.45,0,0.55,1",quarticIn:"0.5,0,0.75,0",quarticOut:"0.25,1,0.5,1",quarticInOut:"0.76,0,0.24,1",quinticIn:"0.64,0,0.78,0",quinticOut:"0.22,1,0.36,1",quinticInOut:"0.83,0,0.17,1",sinusoidalIn:"0.12,0,0.39,0",sinusoidalOut:"0.61,1,0.88,1",sinusoidalInOut:"0.37,0,0.63,1",exponentialIn:"0.7,0,0.84,0",exponentialOut:"0.16,1,0.3,1",exponentialInOut:"0.87,0,0.13,1",circularIn:"0.55,0,1,0.45",circularOut:"0,0.55,0.45,1",circularInOut:"0.85,0,0.15,1"},mt="transform-origin";function bm(r,t,e){var a=j({},r.shape);j(a,t),r.buildPath(e,a);var i=new Lc;return i.reset(hu(r)),e.rebuildPath(i,1),i.generateStr(),i.getStr()}function xm(r,t){var e=t.originX,a=t.originY;(e||a)&&(r[mt]=e+"px "+a+"px")}var Sm={fill:"fill",opacity:"opacity",lineWidth:"stroke-width",lineDashOffset:"stroke-dashoffset"};function Rc(r,t){var e=t.zrId+"-ani-"+t.cssAnimIdx++;return t.cssAnims[e]=r,e}function wm(r,t,e){var a=r.shape.paths,i={},n,o;if(M(a,function(l){var u=pn(e.zrId);u.animation=!0,hi(l,{},u,!0);var c=u.cssAnims,f=u.cssNodes,v=me(c),h=v.length;if(h){o=v[h-1];var d=c[o];for(var p in d){var m=d[p];i[p]=i[p]||{d:""},i[p].d+=m.d||""}for(var g in f){var y=f[g].animation;y.indexOf(o)>=0&&(n=y)}}}),!!n){t.d=!1;var s=Rc(i,e);return n.replace(o,s)}}function ms(r){return q(r)?gs[r]?"cubic-bezier("+gs[r]+")":ch(r)?r:"":""}function hi(r,t,e,a){var i=r.animators,n=i.length,o=[];if(r instanceof uh){var s=wm(r,t,e);if(s)o.push(s);else if(!n)return}else if(!n)return;for(var l={},u=0;u<n;u++){var c=i[u],f=[c.getMaxTime()/1e3+"s"],v=ms(c.getClip().easing),h=c.getDelay();v?f.push(v):f.push("linear"),h&&f.push(h/1e3+"s"),c.getLoop()&&f.push("infinite");var d=f.join(" ");l[d]=l[d]||[d,[]],l[d][1].push(c)}function p(y){var _=y[1],b=_.length,S={},w={},x={},I="animation-timing-function";function T(Lt,de,Wr){for(var Ur=Lt.getTracks(),Ff=Lt.getMaxTime(),pi=0;pi<Ur.length;pi++){var gi=Ur[pi];if(gi.needsAnimate()){var xo=gi.keyframes,$r=gi.propName;if(Wr&&($r=Wr($r)),$r)for(var mi=0;mi<xo.length;mi++){var Yr=xo[mi],Xr=Math.round(Yr.time/Ff*100)+"%",So=ms(Yr.easing),wo=Yr.rawValue;(q(wo)||$e(wo))&&(de[Xr]=de[Xr]||{},de[Xr][$r]=Yr.rawValue,So&&(de[Xr][I]=So))}}}}for(var C=0;C<b;C++){var A=_[C],k=A.targetName;k?k==="shape"&&T(A,w):!a&&T(A,S)}for(var D in S){var R={};rn(R,r),j(R,S[D]);var E=vu(R),N=S[D][I];x[D]=E?{transform:E}:{},xm(x[D],R),N&&(x[D][I]=N)}var P,O=!0;for(var D in w){x[D]=x[D]||{};var V=!P,N=w[D][I];V&&(P=new du);var U=P.len();P.reset(),x[D].d=bm(r,w[D],P);var B=P.len();if(!V&&U!==B){O=!1;break}N&&(x[D][I]=N)}if(!O)for(var D in x)delete x[D].d;if(!a)for(var C=0;C<b;C++){var A=_[C],k=A.targetName;k==="style"&&T(A,x,function(Ur){return Sm[Ur]})}for(var $=me(x),Y=!0,z,C=1;C<$.length;C++){var Z=$[C-1],Q=$[C];if(x[Z][mt]!==x[Q][mt]){Y=!1;break}z=x[Z][mt]}if(Y&&z){for(var D in x)x[D][mt]&&delete x[D][mt];t[mt]=z}if(Ct($,function(Lt){return me(x[Lt]).length>0}).length){var Mt=Rc(x,e);return Mt+" "+y[0]+" both"}}for(var m in l){var s=p(l[m]);s&&o.push(s)}if(o.length){var g=e.zrId+"-cls-"+Ec();e.cssNodes["."+g]={animation:o.join(",")},t.class=g}}function Am(r,t,e){if(!r.ignore)if(r.isSilent()){var a={"pointer-events":"none"};ys(a,t,e)}else{var i=r.states.emphasis&&r.states.emphasis.style?r.states.emphasis.style:{},n=i.fill;if(!n){var o=r.style&&r.style.fill,s=r.states.select&&r.states.select.style&&r.states.select.style.fill,l=r.currentStates.indexOf("select")>=0&&s||o;l&&(n=fh(l))}var u=i.lineWidth;if(u){var c=!i.strokeNoScale&&r.transform?r.transform[0]:1;u=u/c}var a={cursor:"pointer"};n&&(a.fill=n),i.stroke&&(a.stroke=i.stroke),u&&(a["stroke-width"]=u),ys(a,t,e)}}function ys(r,t,e,a){var i=JSON.stringify(r),n=e.cssStyleCache[i];n||(n=e.zrId+"-cls-"+Ec(),e.cssStyleCache[i]=n,e.cssNodes["."+n+":hover"]=r),t.class=t.class?t.class+" "+n:n}var Or=Math.round;function Nc(r){return r&&q(r.src)}function Vc(r){return r&&re(r.toDataURL)}function lo(r,t,e,a){hm(function(i,n){var o=i==="fill"||i==="stroke";o&&pu(n)?zc(t,r,i,a):o&&zn(n)?Gc(e,r,i,a):r[i]=n,o&&a.ssr&&n==="none"&&(r["pointer-events"]="visible")},t,e,!1),km(e,r,a)}function uo(r,t){var e=Th(t);e&&(e.each(function(a,i){a!=null&&(r[(ds+i).toLowerCase()]=a+"")}),t.isSilent()&&(r[ds+"silent"]="true"))}function _s(r){return ft(r[0]-1)&&ft(r[1])&&ft(r[2])&&ft(r[3]-1)}function Cm(r){return ft(r[4])&&ft(r[5])}function co(r,t,e){if(t&&!(Cm(t)&&_s(t))){var a=1e4;
6r.transform=_s(t)?"translate("+Or(t[4]*a)/a+" "+Or(t[5]*a)/a+")":Ch(t)}}function bs(r,t,e){for(var a=r.points,i=[],n=0;n<a.length;n++)i.push(Or(a[n][0]*e)/e),i.push(Or(a[n][1]*e)/e);t.points=i.join(" ")}function xs(r){return!r.smooth}function Tm(r){var t=F(r,function(e){return typeof e=="string"?[e,e]:e});return function(e,a,i){for(var n=0;n<t.length;n++){var o=t[n],s=e[o[0]];s!=null&&(a[o[1]]=Or(s*i)/i)}}}var Im={circle:[Tm(["cx","cy","r"])],polyline:[bs,xs],polygon:[bs,xs]};function Dm(r){for(var t=r.animators,e=0;e<t.length;e++)if(t[e].targetName==="shape")return!0;return!1}function Bc(r,t){var e=r.style,a=r.shape,i=Im[r.type],n={},o=t.animation,s="path",l=r.style.strokePercent,u=t.compress&&hu(r)||4;if(i&&!t.willUpdate&&!(i[1]&&!i[1](a))&&!(o&&Dm(r))&&!(l<1)){s=r.type;var c=Math.pow(10,u);i[0](a,n,c)}else{var f=!r.path||r.shapeChanged();r.path||r.createPathProxy();var v=r.path;f&&(v.beginPath(),r.buildPath(v,r.shape),r.pathUpdated());var h=v.getVersion(),d=r,p=d.__svgPathBuilder;(d.__svgPathVersion!==h||!p||l!==d.__svgPathStrokePercent)&&(p||(p=d.__svgPathBuilder=new Lc),p.reset(u),v.rebuildPath(p,l),p.generateStr(),d.__svgPathVersion=h,d.__svgPathStrokePercent=l),n.d=p.getStr()}return co(n,r.transform),lo(n,e,r,t),uo(n,r),t.animation&&hi(r,n,t),t.emphasis&&Am(r,n,t),ce(s,r.id+"",n)}function Mm(r,t){var e=r.style,a=e.image;if(a&&!q(a)&&(Nc(a)?a=a.src:Vc(a)&&(a=a.toDataURL())),!!a){var i=e.x||0,n=e.y||0,o=e.width,s=e.height,l={href:a,width:o,height:s};return i&&(l.x=i),n&&(l.y=n),co(l,r.transform),lo(l,e,r,t),uo(l,r),t.animation&&hi(r,l,t),ce("image",r.id+"",l)}}function Lm(r,t){var e=r.style,a=e.text;if(a!=null&&(a+=""),!(!a||isNaN(e.x)||isNaN(e.y))){var i=e.font||hh,n=e.x||0,o=dh(e.y||0,ph(i),e.textBaseline),s=gh[e.textAlign]||e.textAlign,l={"dominant-baseline":"central","text-anchor":s};if(mh(e)){var u="",c=e.fontStyle,f=yh(e.fontSize);if(!parseFloat(f))return;var v=e.fontFamily||_h,h=e.fontWeight;u+="font-size:"+f+";font-family:"+v+";",c&&c!=="normal"&&(u+="font-style:"+c+";"),h&&h!=="normal"&&(u+="font-weight:"+h+";"),l.style=u}else l.style="font: "+i;return a.match(/\s/)&&(l["xml:space"]="preserve"),n&&(l.x=n),o&&(l.y=o),co(l,r.transform),lo(l,e,r,t),uo(l,r),t.animation&&hi(r,l,t),ce("text",r.id+"",l,void 0,a)}}function Ss(r,t){if(r instanceof ir)return Bc(r,t);if(r instanceof zr)return Mm(r,t);if(r instanceof vh)return Lm(r,t)}function km(r,t,e){var a=r.style;if(Ih(a)){var i=Dh(r),n=e.shadowCache,o=n[i];if(!o){var s=r.getGlobalScale(),l=s[0],u=s[1];if(!l||!u)return;var c=a.shadowOffsetX||0,f=a.shadowOffsetY||0,v=a.shadowBlur,h=Cr(a.shadowColor),d=h.opacity,p=h.color,m=v/2/l,g=v/2/u,y=m+" "+g;o=e.zrId+"-s"+e.shadowIdx++,e.defs[o]=ce("filter",o,{id:o,x:"-100%",y:"-100%",width:"300%",height:"300%"},[ce("feDropShadow","",{dx:c/l,dy:f/u,stdDeviation:y,"flood-color":p,"flood-opacity":d})]),n[i]=o}t.filter=ii(o)}}function zc(r,t,e,a){var i=r[e],n,o={gradientUnits:i.global?"userSpaceOnUse":"objectBoundingBox"};if(bh(i))n="linearGradient",o.x1=i.x,o.y1=i.y,o.x2=i.x2,o.y2=i.y2;else if(xh(i))n="radialGradient",o.cx=J(i.x,.5),o.cy=J(i.y,.5),o.r=J(i.r,.5);else return;for(var s=i.colorStops,l=[],u=0,c=s.length;u<c;++u){var f=Sh(s[u].offset)*100+"%",v=s[u].color,h=Cr(v),d=h.color,p=h.opacity,m={offset:f};m["stop-color"]=d,p<1&&(m["stop-opacity"]=p),l.push(ce("stop",u+"",m))}var g=ce(n,"",o,l),y=so(g),_=a.gradientCache,b=_[y];b||(b=a.zrId+"-g"+a.gradientIdx++,_[y]=b,o.id=b,a.defs[b]=ce(n,b,o,l)),t[e]=ii(b)}function Gc(r,t,e,a){var i=r.style[e],n=r.getBoundingRect(),o={},s=i.repeat,l=s==="no-repeat",u=s==="repeat-x",c=s==="repeat-y",f;if(wh(i)){var v=i.imageWidth,h=i.imageHeight,d=void 0,p=i.image;if(q(p)?d=p:Nc(p)?d=p.src:Vc(p)&&(d=p.toDataURL()),typeof Image>"u"){var m="Image width/height must been given explictly in svg-ssr renderer.";an(v,m),an(h,m)}else if(v==null||h==null){var g=function(C,A){if(C){var k=C.elm,D=v||A.width,R=h||A.height;C.tag==="pattern"&&(u?(R=1,D/=n.width):c&&(D=1,R/=n.height)),C.attrs.width=D,C.attrs.height=R,k&&(k.setAttribute("width",D),k.setAttribute("height",R))}},y=Ah(d,null,r,function(C){l||g(w,C),g(f,C)});y&&y.width&&y.height&&(v=v||y.width,h=h||y.height)}f=ce("image","img",{href:d,width:v,height:h}),o.width=v,o.height=h}else i.svgElement&&(f=ae(i.svgElement),o.width=i.svgWidth,o.height=i.svgHeight);if(f){var _,b;l?_=b=1:u?(b=1,_=o.width/n.width):c?(_=1,b=o.height/n.height):o.patternUnits="userSpaceOnUse",_!=null&&!isNaN(_)&&(o.width=_),b!=null&&!isNaN(b)&&(o.height=b);var S=vu(i);S&&(o.patternTransform=S);var w=ce("pattern","",o,[f]),x=so(w),I=a.patternCache,T=I[x];T||(T=a.zrId+"-p"+a.patternIdx++,I[x]=T,o.id=T,w=a.defs[T]=ce("pattern",T,o,[f])),t[e]=ii(T)}}
6function Om(r,t,e){var a=e.clipPathCache,i=e.defs,n=a[r.id];if(!n){n=e.zrId+"-c"+e.clipPathIdx++;var o={id:n};a[r.id]=n,i[n]=ce("clipPath",n,o,[Bc(r,e)])}t["clip-path"]=ii(n)}function ws(r){return document.createTextNode(r)}function _t(r,t,e){r.insertBefore(t,e)}function As(r,t){r.removeChild(t)}function Cs(r,t){r.appendChild(t)}function Fc(r){return r.parentNode}function Hc(r){return r.nextSibling}function Pi(r,t){r.textContent=t}var Ts=58,Pm=120,Em=ce("","");function gn(r){return r===void 0}function Fe(r){return r!==void 0}function Rm(r,t,e){for(var a={},i=t;i<=e;++i){var n=r[i].key;n!==void 0&&(a[n]=i)}return a}function _r(r,t){var e=r.key===t.key,a=r.tag===t.tag;return a&&e}function Pr(r){var t,e=r.children,a=r.tag;if(Fe(a)){var i=r.elm=Pc(a);if(fo(Em,r),H(e))for(t=0;t<e.length;++t){var n=e[t];n!=null&&Cs(i,Pr(n))}else Fe(r.text)&&!oe(r.text)&&Cs(i,ws(r.text))}else r.elm=ws(r.text);return r.elm}function Wc(r,t,e,a,i){for(;a<=i;++a){var n=e[a];n!=null&&_t(r,Pr(n),t)}}function Ka(r,t,e,a){for(;e<=a;++e){var i=t[e];if(i!=null)if(Fe(i.tag)){var n=Fc(i.elm);As(n,i.elm)}else As(r,i.elm)}}function fo(r,t){var e,a=t.elm,i=r&&r.attrs||{},n=t.attrs||{};if(i!==n){for(e in n){var o=n[e],s=i[e];s!==o&&(o===!0?a.setAttribute(e,""):o===!1?a.removeAttribute(e):e==="style"?a.style.cssText=o:e.charCodeAt(0)!==Pm?a.setAttribute(e,o):e==="xmlns:xlink"||e==="xmlns"?a.setAttributeNS(dm,e,o):e.charCodeAt(3)===Ts?a.setAttributeNS(pm,e,o):e.charCodeAt(5)===Ts?a.setAttributeNS(Oc,e,o):a.setAttribute(e,o))}for(e in i)e in n||a.removeAttribute(e)}}function Nm(r,t,e){for(var a=0,i=0,n=t.length-1,o=t[0],s=t[n],l=e.length-1,u=e[0],c=e[l],f,v,h,d;a<=n&&i<=l;)o==null?o=t[++a]:s==null?s=t[--n]:u==null?u=e[++i]:c==null?c=e[--l]:_r(o,u)?(Vt(o,u),o=t[++a],u=e[++i]):_r(s,c)?(Vt(s,c),s=t[--n],c=e[--l]):_r(o,c)?(Vt(o,c),_t(r,o.elm,Hc(s.elm)),o=t[++a],c=e[--l]):_r(s,u)?(Vt(s,u),_t(r,s.elm,o.elm),s=t[--n],u=e[++i]):(gn(f)&&(f=Rm(t,a,n)),v=f[u.key],gn(v)?_t(r,Pr(u),o.elm):(h=t[v],h.tag!==u.tag?_t(r,Pr(u),o.elm):(Vt(h,u),t[v]=void 0,_t(r,h.elm,o.elm))),u=e[++i]);(a<=n||i<=l)&&(a>n?(d=e[l+1]==null?null:e[l+1].elm,Wc(r,d,e,i,l)):Ka(r,t,a,n))}function Vt(r,t){var e=t.elm=r.elm,a=r.children,i=t.children;r!==t&&(fo(r,t),gn(t.text)?Fe(a)&&Fe(i)?a!==i&&Nm(e,a,i):Fe(i)?(Fe(r.text)&&Pi(e,""),Wc(e,null,i,0,i.length-1)):Fe(a)?Ka(e,a,0,a.length-1):Fe(r.text)&&Pi(e,""):r.text!==t.text&&(Fe(a)&&Ka(e,a,0,a.length-1),Pi(e,t.text)))}function Vm(r,t){if(_r(r,t))Vt(r,t);else{var e=r.elm,a=Fc(e);Pr(t),a!==null&&(_t(a,t.elm,Hc(e)),Ka(a,[r],0,0))}return t}var Bm=0,zm=(function(){function r(t,e,a){if(this.type="svg",this.configLayer=Gm(),this.storage=e,this._opts=a=j({},a),this.root=t,this._id="zr"+Bm++,this._oldVNode=ps(a.width,a.height),t&&!a.ssr){var i=this._viewport=document.createElement("div");i.style.cssText="position:relative;overflow:hidden";var n=this._svgDom=this._oldVNode.elm=Pc("svg");fo(null,this._oldVNode),i.appendChild(n),t.appendChild(i)}this.resize(a.width,a.height)}return r.prototype.getType=function(){return this.type},r.prototype.getViewportRoot=function(){return this._viewport},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.getSvgDom=function(){return this._svgDom},r.prototype.refresh=function(){if(this.root){var t=this.renderToVNode({willUpdate:!0});t.attrs.style="position:absolute;left:0;top:0;user-select:none",Vm(this._oldVNode,t),this._oldVNode=t}},r.prototype.renderOneToVNode=function(t){return Ss(t,pn(this._id))},r.prototype.renderToVNode=function(t){t=t||{};var e=this.storage.getDisplayList(!0),a=this._width,i=this._height,n=pn(this._id);n.animation=t.animation,n.willUpdate=t.willUpdate,n.compress=t.compress,n.emphasis=t.emphasis,n.ssr=this._opts.ssr;var o=[],s=this._bgVNode=Fm(a,i,this._backgroundColor,n);s&&o.push(s);var l=t.compress?null:this._mainVNode=ce("g","main",{},[]);this._paintList(e,n,l?l.children:o),l&&o.push(l);var u=F(me(n.defs),function(v){return n.defs[v]});if(u.length&&o.push(ce("defs","defs",{},u)),t.animation){var c=ym(n.cssNodes,n.cssAnims,{newline:!0});if(c){var f=ce("style","stl",{},[],c);o.push(f)}}return ps(a,i,o,t.useViewBox)},r.prototype.renderToString=function(t){return t=t||{},so(this.renderToVNode({animation:J(t.cssAnimation,!0),emphasis:J(t.cssEmphasis,!0),willUpdate:!1,compress:!0,useViewBox:J(t.useViewBox,!0)}),{newline:!0})}
6,r.prototype.setBackgroundColor=function(t){this._backgroundColor=t},r.prototype.getSvgRoot=function(){return this._mainVNode&&this._mainVNode.elm},r.prototype._paintList=function(t,e,a){for(var i=t.length,n=[],o=0,s,l,u=0,c=0;c<i;c++){var f=t[c];if(!f.invisible){var v=f.__clipPaths,h=v&&v.length||0,d=l&&l.length||0,p=void 0;for(p=Math.max(h-1,d-1);p>=0&&!(v&&l&&v[p]===l[p]);p--);for(var m=d-1;m>p;m--)o--,s=n[o-1];for(var g=p+1;g<h;g++){var y={};Om(v[g],y,e);var _=ce("g","clip-g-"+u++,y,[]);(s?s.children:a).push(_),n[o++]=_,s=_}l=v;var b=Ss(f,e);b&&(s?s.children:a).push(b)}}},r.prototype.resize=function(t,e){var a=this._opts,i=this.root,n=this._viewport;if(t!=null&&(a.width=t),e!=null&&(a.height=e),i&&n&&(n.style.display="none",t=Lo(i,0,a),e=Lo(i,1,a),n.style.display=""),this._width!==t||this._height!==e){if(this._width=t,this._height=e,n){var o=n.style;o.width=t+"px",o.height=e+"px"}if(zn(this._backgroundColor))this.refresh();else{var s=this._svgDom;s&&(s.setAttribute("width",t),s.setAttribute("height",e));var l=this._bgVNode&&this._bgVNode.elm;l&&(l.setAttribute("width",t),l.setAttribute("height",e))}}},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r.prototype.dispose=function(){this.root&&(this.root.innerHTML=""),this._svgDom=this._viewport=this.storage=this._oldVNode=this._bgVNode=this._mainVNode=null},r.prototype.clear=function(){this._svgDom&&(this._svgDom.innerHTML=null),this._oldVNode=null},r.prototype.toDataURL=function(t){var e=this.renderToString(),a="data:image/svg+xml;";return t?(e=Mh(e),e&&a+"base64,"+e):a+"charset=UTF-8,"+encodeURIComponent(e)},r})();function Gm(r){return function(){}}function Fm(r,t,e,a){var i;if(e&&e!=="none")if(i=ce("rect","bg",{width:r,height:t,x:"0",y:"0"}),pu(e))zc({fill:e},i.attrs,"fill",a);else if(zn(e))Gc({style:{fill:e},dirty:Ut,getBoundingRect:function(){return{width:r,height:t}}},i.attrs,"fill",a);else{var n=Cr(e),o=n.color,s=n.opacity;i.attrs.fill=o,s<1&&(i.attrs["fill-opacity"]=s)}return i}function Hm(r){r.registerPainter("svg",zm)}var Wm=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.getInitialData=function(e){return qn(null,this,{useEncodeDefaulter:!0})},t.prototype.getLegendIcon=function(e){var a=new le,i=Ue("line",0,e.itemHeight/2,e.itemWidth,0,e.lineStyle.stroke,!1);a.add(i),i.setStyle(e.lineStyle);var n=this.getData().getVisual("symbol"),o=this.getData().getVisual("symbolRotate"),s=n==="none"?"circle":n,l=e.itemHeight*.8,u=Ue(s,(e.itemWidth-l)/2,(e.itemHeight-l)/2,l,l,e.itemStyle.fill);a.add(u),u.setStyle(e.itemStyle);var c=e.iconRotate==="inherit"?o:e.iconRotate||0;return u.rotation=c*Math.PI/180,u.setOrigin([e.itemWidth/2,e.itemHeight/2]),s.indexOf("empty")>-1&&(u.style.stroke=u.style.fill,u.style.fill=W.color.neutral00,u.style.lineWidth=2),a},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:6,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1,triggerEvent:!1},t})(Yt);function vo(r,t){var e=r.mapDimensionsAll("defaultedLabel"),a=e.length;if(a===1){var i=ko(r,t,e[0]);return i!=null?i+"":null}else if(a){for(var n=[],o=0;o<e.length;o++)n.push(ko(r,t,e[o]));return n.join(" ")}}function Uc(r,t){var e=r.mapDimensionsAll("defaultedLabel");if(!H(t))return t+"";for(var a=[],i=0;i<e.length;i++){var n=r.getDimensionIndex(e[i]);n>=0&&a.push(t[n])}return a.join(" ")}var ho=(function(r){G(t,r);function t(e,a,i,n){var o=r.call(this)||this;return o.updateData(e,a,i,n),o}return t.prototype._createSymbol=function(e,a,i,n,o,s){this.removeAll();var l=Ue(e,-1,-1,2,2,null,s);l.attr({z2:J(o,100),culling:!0,scaleX:n[0]/2,scaleY:n[1]/2}),l.drift=Um,this._symbolType=e,this.add(l)},t.prototype.stopSymbolAnimation=function(e){this.childAt(0).stopAnimation(null,e)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){gu(this.childAt(0))},t.prototype.downplay=function(){mu(this.childAt(0))},t.prototype.setZ=function(e,a){var i=this.childAt(0);i.zlevel=e,i.z=a},t.prototype.setDraggable=function(e,a){var i=this.childAt(0);i.draggable=e,i.cursor=!a&&e?"move":i.cursor},t.prototype.updateData=function(e,a,i,n){this.silent=!1;var o=e.getItemVisual(a,"symbol")||"circle",s=e.hostModel,l=t.getSymbolSize(e,a),u=t.getSymbolZ2(e,a),c=o!==this._symbolType,f=n&&n.disableAnimation;if(c){var v=e.getItemVisual(a,"symbolKeepAspect");this._createSymbol(o,e,a,l,u,v)}else{var h=this.childAt(0);h.silent=!1;var d={scaleX:l[0]/2,scaleY:l[1]/2};f?h.attr(d):xe(h,d,s,a),Oa(h)}if(this._updateCommon(e,a,l,i,n),c){var h=this.childAt(0);if(!f){var d={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:h.style.opacity}};h.scaleX=h.scaleY=0,h.style.opacity=0,Re(h,d,s,a)}}f&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(e,a,i,n,o){var s=this.childAt(0),l=e.hostModel,u,c,f,v,h,d,p,m,g;if(n&&(u=n.emphasisItemStyle,c=n.blurItemStyle,f=n.selectItemStyle,v=n.focus,h=n.blurScope,p=n.labelStatesModels,m=n.hoverScale,g=n.cursorStyle,d=n.emphasisDisabled),!n||e.hasItemOption){var y=n&&n.itemModel?n.itemModel:e.getItemModel(a),_=y.getModel("emphasis");u=_.getModel("itemStyle").getItemStyle(),f=y.getModel(["select","itemStyle"]).getItemStyle(),c=y.getModel(["blur","itemStyle"]).getItemStyle(),v=_.get("focus"),h=_.get("blurScope"),d=_.get("disabled"),p=Dt(y),m=_.getShallow("scale"),g=y.getShallow("cursor")}var b=e.getItemVisual(a,"symbolRotate");s.attr("rotation",(b||0)*Math.PI/180||0);var S=ni(e.getItemVisual(a,"symbolOffset"),i);S&&(s.x=S[0],s.y=S[1]),g&&s.attr("cursor",g);var w=e.getItemVisual(a,"style"),x=w.fill;if(s instanceof zr){var I=s.style;s.useStyle(j({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},w))}else s.__isEmptyBrush?s.useStyle(j({},w)):s.useStyle(w),s.style.decal=null,s.setColor(x,o&&o.symbolInnerColor),s.style.strokeNoScale=!0;var T=e.getItemVisual(a,"liftZ"),C=this._z2;T!=null?C==null&&(this._z2=s.z2,s.z2+=T):C!=null&&(s.z2=C,this._z2=null);var A=o&&o.useNameLabel;nr(s,p,{labelFetcher:l,labelDataIndex:a,defaultText:k,inheritColor:x,defaultOpacity:w.opacity});function k(E){return A?e.getName(E):vo(e,E)}this._sizeX=i[0]/2,this._sizeY=i[1]/2;var D=s.ensureState("emphasis");D.style=u,s.ensureState("select").style=f,s.ensureState("blur").style=c;var R=m==null||m===!0?Math.max(1.1,3/this._sizeY):isFinite(m)&&m>0?+m:1;D.scaleX=this._sizeX*R,D.scaleY=this._sizeY*R,this.setSymbolScale(1),Xt(this,v,h,d)},t.prototype.setSymbolScale=function(e){this.scaleX=this.scaleY=e},t.prototype.fadeOut=function(e,a,i){var n=this.childAt(0),o=ie(this).dataIndex,s=i&&i.animation;if(this.silent=n.silent=!0,i&&i.fadeLabel){var l=n.getTextContent();l&&Oo(l,{style:{opacity:0}
6},a,{dataIndex:o,removeOpt:s,cb:function(){n.removeTextContent()}})}else n.removeTextContent();Oo(n,{style:{opacity:0},scaleX:0,scaleY:0},a,{dataIndex:o,cb:e,removeOpt:s})},t.getSymbolSize=function(e,a){return oi(e.getItemVisual(a,"symbolSize"))},t.getSymbolZ2=function(e,a){return e.getItemVisual(a,"z2")},t})(le);function Um(r,t){this.parent.drift(r,t)}function ea(r,t,e,a){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(a&&a.isIgnore&&a.isIgnore(e))&&!(a&&a.clipShape&&!a.clipShape.contain(t[0],t[1]))&&r.getItemVisual(e,"symbol")!=="none"}function Is(r){return r!=null&&!oe(r)&&(r={isIgnore:r}),r||{}}function Ds(r){var t=r.hostModel,e=t.getModel("emphasis");return{emphasisItemStyle:e.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:e.get("focus"),blurScope:e.get("blurScope"),emphasisDisabled:e.get("disabled"),hoverScale:e.get("scale"),labelStatesModels:Dt(t),cursorStyle:t.get("cursor")}}function Ms(r,t,e,a,i,n,o){var s=new r(t,e,a,i);return s.setPosition(n),t.setItemGraphicEl(e,s),o.add(s),s}var $m=(function(){function r(t){this.group=new le,this._SymbolCtor=t||ho}return r.prototype.updateData=function(t,e){this._progressiveEls=null,e=Is(e);var a=this.group,i=t.hostModel,n=this._data,o=this._SymbolCtor,s=e.disableAnimation,l=this._seriesScope=Ds(t),u={disableAnimation:s},c=e.getSymbolPoint||function(f){return t.getItemLayout(f)};n||a.removeAll(),t.diff(n).add(function(f){var v=c(f);ea(t,v,f,e)&&Ms(o,t,f,l,u,v,a)}).update(function(f,v){var h=n.getItemGraphicEl(v),d=c(f);if(!ea(t,d,f,e)){a.remove(h);return}var p=t.getItemVisual(f,"symbol")||"circle",m=h&&h.getSymbolType&&h.getSymbolType();if(!h||m&&m!==p)a.remove(h),h=new o(t,f,l,u),h.setPosition(d);else{h.updateData(t,f,l,u);var g={x:d[0],y:d[1]};s?h.attr(g):xe(h,g,i)}a.add(h),t.setItemGraphicEl(f,h)}).remove(function(f){var v=n.getItemGraphicEl(f);v&&v.fadeOut(function(){a.remove(v)},i)}).execute(),this._getSymbolPoint=c,this._data=t},r.prototype.updateLayout=function(t){var e=this._data;if(e)for(var a=this,i=e.getStore(),n=0,o=i.count();n<o;n++){var s=e.getItemGraphicEl(n),l=a._getSymbolPoint(n);ea(e,l,n,t)?(s=s||Ms(a._SymbolCtor,e,n,a._seriesScope,{disableAnimation:!0},l,a.group),s.stopAnimation(),s.setPosition(l),s.markRedraw()):s&&(a.group.remove(s),e.setItemGraphicEl(n,null))}},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ds(t),this._data=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a,i){this._progressiveEls=[],i=Is(i);function n(u){u.isGroup||(u.incremental=a,u.ensureState("emphasis").hoverLayer=yu)}for(var o=t.start;o<t.end;o++){var s=e.getItemLayout(o);if(ea(e,s,o,i)){var l=new this._SymbolCtor(e,o,this._seriesScope);l.traverse(n),l.setPosition(s),this.group.add(l),e.setItemGraphicEl(o,l),this._progressiveEls.push(l)}}},r.prototype.eachRendered=function(t){Gn(this._progressiveEls||this.group,t)},r.prototype.remove=function(t){var e=this.group,a=this._data;a&&t?a.eachItemGraphicEl(function(i){i.fadeOut(function(){e.remove(i)},a.hostModel)}):e.removeAll()},r})();function $c(r,t,e){var a=r.getBaseAxis(),i=r.getOtherAxis(a),n=Ym(i,e),o=a.dim,s=i.dim,l=t.mapDimension(s),u=t.mapDimension(o),c=s==="x"||s==="radius"?1:0,f=F(r.dimensions,function(d){return t.mapDimension(d)}),v=!1,h=t.getCalculationInfo("stackResultDimension");return Tt(t,f[0])&&(v=!0,f[0]=h),Tt(t,f[1])&&(v=!0,f[1]=h),{dataDimsForPoint:f,valueStart:n,valueAxisDim:s,baseAxisDim:o,stacked:!!v,valueDim:l,baseDim:u,baseDataOffset:c,stackedOverDimension:t.getCalculationInfo("stackedOverDimension")}}function Ym(r,t){var e=0,a=r.scale.getExtent();return t==="start"?e=a[0]:t==="end"?e=a[1]:$e(t)&&!isNaN(t)?e=t:a[0]>0?e=a[0]:a[1]<0&&(e=a[1]),e}function Yc(r,t,e,a){var i=NaN;r.stacked&&(i=e.get(e.getCalculationInfo("stackedOverDimension"),a)),isNaN(i)&&(i=r.valueStart);var n=r.baseDataOffset,o=[];return o[n]=e.get(r.baseDim,a),o[1-n]=i,t.dataToPoint(o)}function Le(r,t){return!isFinite(r)||!isFinite(t)}var Xm=typeof Float32Array!==_u?Float32Array:void 0,Km=typeof Float64Array!==_u?Float64Array:void 0;function Ze(r){return po({ctor:Xm},r).arr}function po(r,t){var e=r.arr,a=r.ctor;if(t>Po&&(t=Po),!e||r.typed&&e.length<t){var i=void 0;if(a)try{i=new a(t),r.typed=!0,e&&i.set(e)}catch{}if(!i&&(i=[],r.typed=!1,e))for(var n=0,o=e.length;n<o;n++)i[n]=e[n];r.arr=i}return r}function Zm(r,t){var e=[];return t.diff(r).add(function(a){e.push({cmd:"+",idx:a})}).update(function(a,i){e.push({cmd:"=",idx:i,idx1:a})}).remove(function(a){e.push({cmd:"-",idx:a})}).execute(),e}function qm(r,t,e,a,i,n,o,s){for(var l=Zm(r,t),u=[],c=[],f=[],v=[],h=[],d=[],p=[],m=$c(i,t,o),g=r.getLayout("points")||[],y=t.getLayout("points")||[],_=0;_<l.length;_++){var b=l[_],S=!0,w=void 0,x=void 0;
6switch(b.cmd){case"=":w=b.idx*2,x=b.idx1*2;var I=g[w],T=g[w+1],C=y[x],A=y[x+1];(isNaN(I)||isNaN(T))&&(I=C,T=A),u.push(I,T),c.push(C,A),f.push(e[w],e[w+1]),v.push(a[x],a[x+1]),p.push(t.getRawIndex(b.idx1));break;case"+":var k=b.idx,D=m.dataDimsForPoint,R=i.dataToPoint([t.get(D[0],k),t.get(D[1],k)]);x=k*2,u.push(R[0],R[1]),c.push(y[x],y[x+1]);var E=Yc(m,i,t,k);f.push(E[0],E[1]),v.push(a[x],a[x+1]),p.push(t.getRawIndex(k));break;case"-":S=!1}S&&(h.push(b),d.push(d.length))}d.sort(function(Z,Q){return p[Z]-p[Q]});for(var N=u.length,P=Ze(N),O=Ze(N),V=Ze(N),U=Ze(N),B=[],_=0;_<d.length;_++){var $=d[_],Y=_*2,z=$*2;P[Y]=u[z],P[Y+1]=u[z+1],O[Y]=c[z],O[Y+1]=c[z+1],V[Y]=f[z],V[Y+1]=f[z+1],U[Y]=v[z],U[Y+1]=v[z+1],B[_]=h[$]}return{current:P,next:O,stackedOnCurrent:V,stackedOnNext:U,status:B}}var ot=Math.min,st=Math.max;function mn(r,t,e,a,i,n,o,s,l){for(var u,c,f,v,h,d,p=e,m=0;m<a;m++){var g=t[p*2],y=t[p*2+1];if(p>=i||p<0)break;if(Le(g,y)){if(l){p+=n;continue}break}if(p===e)r[n>0?"moveTo":"lineTo"](g,y),f=g,v=y;else{var _=g-u,b=y-c;if(_*_+b*b<.5){p+=n;continue}if(o>0){for(var S=p+n,w=t[S*2],x=t[S*2+1];w===g&&x===y&&m<a;)m++,S+=n,p+=n,w=t[S*2],x=t[S*2+1],g=t[p*2],y=t[p*2+1],_=g-u,b=y-c;var I=m+1;if(l)for(;Le(w,x)&&I<a;)I++,S+=n,w=t[S*2],x=t[S*2+1];var T=.5,C=0,A=0,k=void 0,D=void 0;if(I>=a||Le(w,x))h=g,d=y;else{C=w-u,A=x-c;var R=g-u,E=w-g,N=y-c,P=x-y,O=void 0,V=void 0;if(s==="x"){O=Math.abs(R),V=Math.abs(E);var U=C>0?1:-1;h=g-U*O*o,d=y,k=g+U*V*o,D=y}else if(s==="y"){O=Math.abs(N),V=Math.abs(P);var B=A>0?1:-1;h=g,d=y-B*O*o,k=g,D=y+B*V*o}else O=Math.sqrt(R*R+N*N),V=Math.sqrt(E*E+P*P),T=V/(V+O),h=g-C*o*(1-T),d=y-A*o*(1-T),k=g+C*o*T,D=y+A*o*T,k=ot(k,st(w,g)),D=ot(D,st(x,y)),k=st(k,ot(w,g)),D=st(D,ot(x,y)),C=k-g,A=D-y,h=g-C*O/V,d=y-A*O/V,h=ot(h,st(u,g)),d=ot(d,st(c,y)),h=st(h,ot(u,g)),d=st(d,ot(c,y)),C=g-h,A=y-d,k=g+C*V/O,D=y+A*V/O}r.bezierCurveTo(f,v,h,d,g,y),f=k,v=D}else r.lineTo(g,y)}u=g,c=y,p+=n}return m}var Xc=(function(){function r(){this.smooth=0,this.smoothConstraint=!0}return r})(),jm=(function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polyline",a}return t.prototype.getDefaultStyle=function(){return{stroke:W.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new Xc},t.prototype.buildPath=function(e,a){var i=a.points,n=0,o=i.length/2;if(a.connectNulls){for(;o>0&&Le(i[o*2-2],i[o*2-1]);o--);for(;n<o&&Le(i[n*2],i[n*2+1]);n++);}for(;n<o;)n+=mn(e,i,n,o,o,1,a.smooth,a.smoothMonotone,a.connectNulls)+1},t.prototype.getPointOn=function(e,a){this.path||(this.createPathProxy(),this.buildPath(this.path,this.shape));for(var i=this.path,n=i.data,o=du.CMD,s,l,u=a==="x",c=[],f=0;f<n.length;){var v=n[f++],h=void 0,d=void 0,p=void 0,m=void 0,g=void 0,y=void 0,_=void 0;switch(v){case o.M:s=n[f++],l=n[f++];break;case o.L:if(h=n[f++],d=n[f++],_=u?(e-s)/(h-s):(e-l)/(d-l),_<=1&&_>=0){var b=u?(d-l)*_+l:(h-s)*_+s;return u?[e,b]:[b,e]}s=h,l=d;break;case o.C:h=n[f++],d=n[f++],p=n[f++],m=n[f++],g=n[f++],y=n[f++];var S=u?Eo(s,h,p,g,e,c):Eo(l,d,m,y,e,c);if(S>0)for(var w=0;w<S;w++){var x=c[w];if(x<=1&&x>=0){var b=u?Ro(l,d,m,y,x):Ro(s,h,p,g,x);return u?[e,b]:[b,e]}}s=g,l=y;break}}},t})(ir),Jm=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(Xc),Qm=(function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="ec-polygon",a}return t.prototype.getDefaultShape=function(){return new Jm},t.prototype.buildPath=function(e,a){var i=a.points,n=a.stackedOnPoints,o=0,s=i.length/2,l=a.smoothMonotone;if(a.connectNulls){for(;s>0&&Le(i[s*2-2],i[s*2-1]);s--);for(;o<s&&Le(i[o*2],i[o*2+1]);o++);}for(;o<s;){var u=mn(e,i,o,s,s,1,a.smooth,l,a.connectNulls);mn(e,n,o+u-1,u,s,-1,a.stackedOnSmooth,l,a.connectNulls),o+=u+1,e.closePath()}},t})(ir);function Kc(r,t,e,a,i){var n=r.getArea(),o=n.x,s=n.y,l=n.width,u=n.height,c=e.get(["lineStyle","width"])||0;o-=c/2,s-=c/2,l+=c,u+=c,l=Math.ceil(l),o!==Math.floor(o)&&(o=Math.floor(o),l++);var f=new Ce({shape:{x:o,y:s,width:l,height:u}});if(t){var v=r.getBaseAxis(),h=v.isHorizontal(),d=v.inverse;h?(d&&(f.shape.x+=l),f.shape.width=0):(d||(f.shape.y+=u),f.shape.height=0);var p=re(i)?function(m){i(m,f)}:null;Re(f,{shape:{width:l,height:u,x:o,y:s}},e,null,a,p)}return f}function Zc(r,t,e){var a=r.getArea(),i=ee(a.r0,1),n=ee(a.r,1),o=new Fn({shape:{cx:ee(r.cx,1),cy:ee(r.cy,1),r0:i,r:n,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}});if(t){var s=r.getBaseAxis().dim==="angle";s?o.shape.endAngle=a.startAngle:o.shape.r=i,Re(o,{shape:{endAngle:a.endAngle,r:n}},e)}return o}
6function ey(r,t,e,a,i){if(r){if(r.type==="polar")return Zc(r,t,e);if(r.type==="cartesian2d")return Kc(r,t,e,a,i)}else return null;return null}function go(r,t){return r.type===t}function Ls(r,t){if(r.length===t.length){for(var e=0;e<r.length;e++)if(r[e]!==t[e])return;return!0}}function ks(r){for(var t=Wt(),e=Wt(),a=0;a<r.length;){var i=r[a++],n=r[a++];Le(i,n)||(en(t,i),en(e,n))}return[t,e]}function Os(r,t){var e=ks(r),a=e[0],i=e[1],n=ks(t),o=n[0],s=n[1];return Math.max(Math.abs(a[0]-o[0]),Math.abs(i[0]-s[0]),Math.abs(a[1]-o[1]),Math.abs(i[1]-s[1]))}function Ps(r){return $e(r)?r:r?.5:0}function ty(r,t,e){if(e.valueDim==null)return[];for(var a=t.count(),i=Ze(a*2),n=0;n<a;n++){var o=Yc(e,r,t,n);i[n*2]=o[0],i[n*2+1]=o[1]}return i}function lt(r,t,e,a,i){var n=e.getBaseAxis(),o=n.dim==="x"||n.dim==="radius"?0:1,s=[],l=0,u=[],c=[],f=[],v=[];if(i){for(l=0;l<r.length;l+=2){var h=t||r;Le(h[l],h[l+1])||v.push(r[l],r[l+1])}r=v}for(l=0;l<r.length-2;l+=2)switch(f[0]=r[l+2],f[1]=r[l+3],c[0]=r[l],c[1]=r[l+1],s.push(c[0],c[1]),a){case"end":u[o]=f[o],u[1-o]=c[1-o],s.push(u[0],u[1]);break;case"middle":var d=(c[o]+f[o])/2,p=[];u[o]=p[o]=d,u[1-o]=c[1-o],p[1-o]=f[1-o],s.push(u[0],u[1]),s.push(p[0],p[1]);break;default:u[o]=c[o],u[1-o]=f[1-o],s.push(u[0],u[1])}return s.push(r[l++],r[l++]),s}function ry(r,t){var e=[],a=r.length,i,n;function o(c,f,v){var h=c.coord,d=(v-h)/(f.coord-h),p=kh(d,[c.color,f.color]);return{coord:v,color:p}}for(var s=0;s<a;s++){var l=r[s],u=l.coord;if(u<0)i=l;else if(u>t){n?e.push(o(n,l,t)):i&&e.push(o(i,l,0),o(i,l,t));break}else i&&(e.push(o(i,l,0)),i=null),e.push(l),n=l}return e}function ay(r,t,e){var a=r.getVisual("visualMeta");if(!(!a||!a.length||!r.count())&&t.type==="cartesian2d"){for(var i,n,o=a.length-1;o>=0;o--){var s=r.getDimensionInfo(a[o].dimension);if(i=s&&s.coordDim,i==="x"||i==="y"){n=a[o];break}}if(n){var l=t.getAxis(i),u=F(n.stops,function(_){return{coord:l.toGlobalCoord(l.dataToCoord(_.value)),color:_.color}}),c=u.length,f=n.outerColors.slice();c&&u[0].coord>u[c-1].coord&&(u.reverse(),f.reverse());var v=ry(u,i==="x"?e.getWidth():e.getHeight()),h=v.length;if(!h&&c)return u[0].coord<0?f[1]?f[1]:u[c-1].color:f[0]?f[0]:u[0].color;var d=10,p=v[0].coord-d,m=v[h-1].coord+d,g=m-p;if(g<.001)return"transparent";M(v,function(_){_.offset=(_.coord-p)/g}),v.push({offset:h?v[h-1].offset:.5,color:f[1]||"transparent"}),v.unshift({offset:h?v[0].offset:.5,color:f[0]||"transparent"});var y=new Hn(0,0,0,0,v,!0);return y[i]=p,y[i+"2"]=m,y}}}function iy(r,t,e){var a=r.get("showAllSymbol"),i=a==="auto";if(!(a&&!i)){var n=e.getAxesByScale("ordinal")[0];if(n&&!(i&&ny(n,t))){var o=t.mapDimension(n.dim),s={};return M(n.getViewLabels(),function(l){l.tick.offInterval||(s[Fr(n.scale,l.tick)]=1)}),function(l){return!s.hasOwnProperty(t.get(o,l))}}}}function ny(r,t){var e=r.getExtent(),a=Math.abs(e[1]-e[0])/r.scale.count();isNaN(a)&&(a=0);for(var i=t.count(),n=Math.max(1,Math.round(i/5)),o=0;o<i;o+=n)if(ho.getSymbolSize(t,o)[r.isHorizontal()?1:0]*1.5>a)return!1;return!0}function oy(r){for(var t=r.length/2;t>0&&Le(r[t*2-2],r[t*2-1]);t--);return t-1}function Es(r,t){return[r[t*2],r[t*2+1]]}function sy(r,t,e){for(var a=r.length/2,i=e==="x"?0:1,n,o,s=0,l=-1,u=0;u<a;u++)if(o=r[u*2+i],!Le(o,r[u*2+1-i])){if(u===0){n=o;continue}if(n<=t&&o>=t||n>=t&&o<=t){l=u;break}s=u,n=o}return{range:[s,l],t:(t-n)/(o-n)}}function qc(r){if(r.get(["endLabel","show"]))return!0;for(var t=0;t<Pa.length;t++)if(r.get([Pa[t],"endLabel","show"]))return!0;return!1}function Ei(r,t,e,a){if(go(t,"cartesian2d")){var i=a.getModel("endLabel"),n=i.get("valueAnimation"),o=a.getData(),s={lastFrameIndex:0},l=qc(a)?function(h,d){r._endLabelOnDuring(h,d,o,s,n,i,t)}:null,u=t.getBaseAxis().isHorizontal(),c=Kc(t,e,a,function(){var h=r._endLabel;h&&e&&s.originalX!=null&&h.attr({x:s.originalX,y:s.originalY})},l);if(!a.get("clip",!0)){var f=c.shape,v=Math.max(f.width,f.height);u?(f.y-=v,f.height+=v*2):(f.x-=v,f.width+=v*2)}return l&&l(1,c),c}else return Zc(t,e,a)}function ly(r,t){var e=t.getBaseAxis(),a=e.isHorizontal(),i=e.inverse,n=a?i?"right":"left":"center",o=a?"middle":i?"top":"bottom";return{normal:{align:r.get("align")||n,verticalAlign:r.get("verticalAlign")||o}}}var uy=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.init=function(){var e=new le,a=new $m;this.group.add(a.group),this._symbolDraw=a,this._lineGroup=e,this._changePolyState=te(this._changePolyState,this)},t.prototype.render=function(e,a,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),l=e.getModel("lineStyle"),u=e.getModel("areaStyle"),c=s.getLayout("points")||[],f=n.type==="polar",v=this._coordSys,h=this._symbolDraw,d=this._polyline,p=this._polygon,m=this._lineGroup,g=!a.ssr&&e.get("animation"),y=!u.isEmpty(),_=u.get("origin"),b=$c(n,s,_),S=y&&ty(n,s,b),w=e.get("showSymbol"),x=e.get("
6connectNulls"),I=w&&!f&&iy(e,s,n),T=this._data;T&&T.eachItemGraphicEl(function(de,Wr){de.__temp&&(o.remove(de),T.setItemGraphicEl(Wr,null))}),w||h.remove(),o.add(m);var C=f?!1:e.get("step"),A;n&&n.getArea&&e.get("clip",!0)&&(A=n.getArea(),A.width!=null?(A.x-=.1,A.y-=.1,A.width+=.2,A.height+=.2):A.r0&&(A.r0-=.5,A.r+=.5)),this._clipShapeForSymbol=A;var k=ay(s,n,i)||s.getVisual("style")[s.getVisual("drawType")];if(!(d&&v.type===n.type&&C===this._step))w&&h.updateData(s,{isIgnore:I,clipShape:A,disableAnimation:!0,getSymbolPoint:function(de){return[c[de*2],c[de*2+1]]}}),g&&this._initSymbolLabelAnimation(s,n,A),C&&(S&&(S=lt(S,c,n,C,x)),c=lt(c,null,n,C,x)),d=this._newPolyline(c),y?p=this._newPolygon(c,S):p&&(m.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(e,n,Kt(k)),m.setClipPath(Ei(this,n,!0,e));else{y&&!p?p=this._newPolygon(c,S):p&&!y&&(m.remove(p),p=this._polygon=null),f||this._initOrUpdateEndLabel(e,n,Kt(k));var D=m.getClipPath();if(D){var R=Ei(this,n,!1,e);Re(D,{shape:R.shape},e)}else m.setClipPath(Ei(this,n,!0,e));w&&h.updateData(s,{isIgnore:I,clipShape:A,disableAnimation:!0,getSymbolPoint:function(de){return[c[de*2],c[de*2+1]]}}),(!Ls(this._stackedOnPoints,S)||!Ls(this._points,c))&&(g?this._doUpdateAnimation(s,S,n,i,C,_,x):(C&&(S&&(S=lt(S,c,n,C,x)),c=lt(c,null,n,C,x)),d.setShape({points:c}),p&&p.setShape({points:c,stackedOnPoints:S})))}var E=e.getModel("emphasis"),N=E.get("focus"),P=E.get("blurScope"),O=E.get("disabled");if(d.useStyle(fe(l.getLineStyle(),{fill:"none",stroke:k,lineJoin:"bevel"})),Tr(d,e,"lineStyle"),d.style.lineWidth>
60&&e.get(["emphasis","lineStyle","width"])==="bolder"){var V=d.getState("emphasis").style;V.lineWidth=+d.style.lineWidth+1}ie(d).seriesIndex=e.seriesIndex,Xt(d,N,P,O);var U=Ps(e.get("smooth")),B=e.get("smoothMonotone");if(d.setShape({smooth:U,smoothMonotone:B,connectNulls:x}),p){var $=s.getCalculationInfo("stackedOnSeries"),Y=0;p.useStyle(fe(u.getAreaStyle(),{fill:k,opacity:.7,lineJoin:"bevel",decal:s.getVisual("style").decal})),$&&(Y=Ps($.get("smooth"))),p.setShape({smooth:U,stackedOnSmooth:Y,smoothMonotone:B,connectNulls:x}),Tr(p,e,"areaStyle"),ie(p).seriesIndex=e.seriesIndex,Xt(p,N,P,O)}var z=this._changePolyState;s.eachItemGraphicEl(function(de){de&&(de.onHoverStateChange=z)}),this._polyline.onHoverStateChange=z,this._data=s,this._coordSys=n,this._stackedOnPoints=S,this._points=c,this._step=C,this._valueOrigin=_;var Z=e.get("triggerEvent"),Q=e.get("triggerLineEvent"),Mt=Q===!0||Z===!0||Z==="line",Lt=Q===!0||Z===!0||Z==="area";this.packEventData(e,d,Mt),p&&this.packEventData(e,p,Lt)},t.prototype.packEventData=function(e,a,i){ie(a).eventData=i?{componentType:"series",componentSubType:"line",componentIndex:e.componentIndex,seriesIndex:e.seriesIndex,seriesName:e.name,seriesType:"line",selfType:a===this._polygon?"area":"line"}:null},t.prototype.highlight=function(e,a,i,n){var o=e.getData(),s=nn(o,n);if(this._changePolyState("emphasis"),!(s instanceof Array)&&s!=null&&s>=0){var l=o.getLayout("points"),u=o.getItemGraphicEl(s);if(!u){var c=l[s*2],f=l[s*2+1];if(Le(c,f)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(c,f))return;var v=e.get("zlevel")||0,h=e.get("z")||0;u=new ho(o,s),u.x=c,u.y=f,u.setZ(v,h);var d=u.getSymbolPath().getTextContent();d&&(d.zlevel=v,d.z=h,d.z2=this._polyline.z2+1),u.__temp=!0,o.setItemGraphicEl(s,u),u.stopSymbolAnimation(!0),this.group.add(u)}u.highlight()}else wt.prototype.highlight.call(this,e,a,i,n)},t.prototype.downplay=function(e,a,i,n){var o=e.getData(),s=nn(o,n);if(this._changePolyState("normal"),s!=null&&s>=0){var l=o.getItemGraphicEl(s);l&&(l.__temp?(o.setItemGraphicEl(s,null),this.group.remove(l)):l.downplay())}else wt.prototype.downplay.call(this,e,a,i,n)},t.prototype._changePolyState=function(e){var a=this._polygon;No(this._polyline,e),a&&No(a,e)},t.prototype._newPolyline=function(e){var a=this._polyline;return a&&this._lineGroup.remove(a),a=new jm({shape:{points:e},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(a),this._polyline=a,a},t.prototype._newPolygon=function(e,a){var i=this._polygon;return i&&this._lineGroup.remove(i),i=new Qm({shape:{points:e,stackedOnPoints:a},segmentIgnoreThreshold:2}),this._lineGroup.add(i),this._polygon=i,i},t.prototype._initSymbolLabelAnimation=function(e,a,i){var n,o,s=a.getBaseAxis(),l=s.inverse;a.type==="cartesian2d"?(n=s.isHorizontal(),o=!1):a.type==="polar"&&(n=s.dim==="angle",o=!0);var u=e.hostModel,c=u.get("animationDuration");re(c)&&(c=c(null));var f=u.get("animationDelay")||0,v=re(f)?f(null):f;e.eachItemGraphicEl(function(h,d){var p=h;if(p){var m=[h.x,h.y],g=void 0,y=void 0,_=void 0;if(i)if(o){var b=i,S=a.pointToCoord(m);n?(g=b.startAngle,y=b.endAngle,_=-S[1]/180*Math.PI):(g=b.r0,y=b.r,_=S[0])}else{var w=i;n?(g=w.x,y=w.x+w.width,_=h.x):(g=w.y+w.height,y=w.y,_=h.y)}var x=y===g?0:(_-g)/(y-g);l&&(x=1-x);var I=re(f)?f(d):c*x+v,T=p.getSymbolPath(),C=T.getTextContent();p.attr({scaleX:0,scaleY:0}),p.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:I}),C&&C.animateFrom({style:{opacity:0}},{duration:300,delay:I}),T.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(e,a,i){var n=e.getModel("endLabel");if(qc(e)){var o=e.getData(),s=this._polyline,l=o.getLayout("points");if(!l){s.removeTextContent(),this._endLabel=null;return}var u=this._endLabel;u||(u=this._endLabel=new Ae({z2:200}),u.ignoreClip=!0,s.setTextContent(this._endLabel),s.disableLabelAnimation=!0);var c=oy(l);c>=0&&(nr(s,Dt(e,"endLabel"),{inheritColor:i,labelFetcher:e,labelDataIndex:c,defaultText:function(f,v,h){return h!=null?Uc(o,h):vo(o,f)},enableTextSetter:!0},ly(n,a)),s.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(e,a,i,n,o,s,l){var u=this._endLabel,c=this._polyline;if(u){e<1&&n.originalX==null&&(n.originalX=u.x,n.originalY=u.y);
6var f=i.getLayout("points"),v=i.hostModel,h=v.get("connectNulls"),d=s.get("precision"),p=s.get("distance")||0,m=l.getBaseAxis(),g=m.isHorizontal(),y=m.inverse,_=a.shape,b=y?g?_.x:_.y+_.height:g?_.x+_.width:_.y,S=(g?p:0)*(y?-1:1),w=(g?0:-p)*(y?-1:1),x=g?"x":"y",I=sy(f,b,x),T=I.range,C=T[1]-T[0],A=void 0;if(C>=1){if(C>1&&!h){var k=Es(f,T[0]);u.attr({x:k[0]+S,y:k[1]+w}),o&&(A=v.getRawValue(T[0]))}else{var k=c.getPointOn(b,x);k&&u.attr({x:k[0]+S,y:k[1]+w});var D=v.getRawValue(T[0]),R=v.getRawValue(T[1]);o&&(A=Lh(i,d,D,R,I.t))}n.lastFrameIndex=T[0]}else{var E=e===1||n.lastFrameIndex>0?T[0]:0,k=Es(f,E);o&&(A=v.getRawValue(E)),u.attr({x:k[0]+S,y:k[1]+w})}if(o){var N=bu(u);typeof N.setLabelText=="function"&&N.setLabelText(A)}}},t.prototype._doUpdateAnimation=function(e,a,i,n,o,s,l){var u=this._polyline,c=this._polygon,f=e.hostModel,v=qm(this._data,e,this._stackedOnPoints,a,this._coordSys,i,this._valueOrigin),h=v.current,d=v.stackedOnCurrent,p=v.next,m=v.stackedOnNext;if(o&&(d=lt(v.stackedOnCurrent,v.current,i,o,l),h=lt(v.current,null,i,o,l),m=lt(v.stackedOnNext,v.next,i,o,l),p=lt(v.next,null,i,o,l)),Os(h,p)>3e3||c&&Os(d,m)>3e3){u.stopAnimation(),u.setShape({points:p}),c&&(c.stopAnimation(),c.setShape({points:p,stackedOnPoints:m}));return}u.shape.__points=v.current,u.shape.points=h;var g={shape:{points:p}};v.current!==h&&(g.shape.__points=v.next),u.stopAnimation(),xe(u,g,f),c&&(c.setShape({points:h,stackedOnPoints:d}),c.stopAnimation(),xe(c,{shape:{stackedOnPoints:m}},f),u.shape.points!==c.shape.points&&(c.shape.points=u.shape.points));for(var y=[],_=v.status,b=0;b<_.length;b++){var S=_[b].cmd;if(S==="="){var w=e.getItemGraphicEl(_[b].idx1);w&&y.push({el:w,ptIdx:b})}}u.animators&&u.animators.length&&u.animators[0].during(function(){c&&c.dirtyShape();for(var x=u.shape.__points,I=0;I<y.length;I++){var T=y[I].el,C=y[I].ptIdx*2;T.x=x[C],T.y=x[C+1],T.markRedraw()}})},t.prototype.remove=function(e){var a=this.group,i=this._data;this._lineGroup.removeAll(),this._symbolDraw.remove(!0),i&&i.eachItemGraphicEl(function(n,o){n.__temp&&(a.remove(n),i.setItemGraphicEl(o,null))}),this._polyline=this._polygon=this._coordSys=this._points=this._stackedOnPoints=this._endLabel=this._data=null},t.type="line",t})(wt);function cy(r,t){return{seriesType:r,plan:xu(),reset:function(e){var a=e.getData(),i=e.coordinateSystem;if(e.pipelineContext,!!i){var n=F(i.dimensions,function(f){return a.mapDimension(f)}).slice(0,2),o=n.length,s=a.getCalculationInfo("stackResultDimension");Tt(a,n[0])&&(n[0]=s),Tt(a,n[1])&&(n[1]=s);var l=a.getStore(),u=a.getDimensionIndex(n[0]),c=a.getDimensionIndex(n[1]);return o&&{progress:function(f,v){for(var h=f.end-f.start,d=Ze(h*o),p=[],m=[],g=f.start,y=0;g<f.end;g++){var _=void 0;if(o===1){var b=l.get(u,g);_=i.dataToPoint(b,null,m)}else p[0]=l.get(u,g),p[1]=l.get(c,g),_=i.dataToPoint(p,null,m);d[y++]=_[0],d[y++]=_[1]}v.setLayout("points",d),v.setLayout("pointsRange",{start:f.start,end:f.end})}}}}}}var fy={average:function(r){for(var t=0,e=0,a=0;a<r.length;a++)isNaN(r[a])||(t+=r[a],e++);return e===0?NaN:t/e},sum:function(r){for(var t=0,e=0;e<r.length;e++)t+=r[e]||0;return t},max:function(r){for(var t=-1/0,e=0;e<r.length;e++)r[e]>t&&(t=r[e]);return isFinite(t)?t:NaN},min:function(r){for(var t=1/0,e=0;e<r.length;e++)r[e]<t&&(t=r[e]);return isFinite(t)?t:NaN},nearest:function(r){return r[0]}},vy=function(r){return Math.round(r.length/2)};function jc(r){return{seriesType:r,reset:function(t,e,a){var i=t.getData(),n=t.get("sampling"),o=t.coordinateSystem,s=i.count();if(s>10&&o.type==="cartesian2d"&&n){var l=o.getBaseAxis(),u=o.getOtherAxis(l),c=l.getExtent(),f=a.getDevicePixelRatio(),v=Math.abs(c[1]-c[0])*(f||1),h=Math.round(s/v);if(isFinite(h)&&h>1){n==="lttb"?t.setData(i.lttbDownSample(i.mapDimension(u.dim),1/h)):n==="minmax"&&t.setData(i.minmaxDownSample(i.mapDimension(u.dim),1/h));var d=void 0;q(n)?d=fy[n]:re(n)&&(d=n),d&&t.setData(i.downSample(i.mapDimension(u.dim),1/h,d,vy))}}}}}function hy(r){r.registerChartView(uy),r.registerSeriesModel(Wm),r.registerLayout(cy("line")),r.registerVisual({seriesType:"line",reset:function(t){var e=t.getData(),a=t.getModel("lineStyle").getLineStyle();a&&!a.stroke&&(a.stroke=e.getVisual("style").fill),e.setVisual("legendLineStyle",a)}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jc("line"))}var dy=(function(r){G(t,r);function t(e,a,i,n,o){var s=r.call(this,e,a,i)||this;return s.index=0,s.type=n||"value",s.position=o||"bottom",s}return t.prototype.isHorizontal=function(){var e=this.position;return e==="top"||e==="bottom"},t.prototype.getGlobalExtent=function(e){var a=this.getExtent();return a[0]=this.toGlobalCoord(a[0]),a[1]=this.toGlobalCoord(a[1]),e&&a[0]>a[1]&&a.reverse(),a},t.prototype.pointToData=function(e,a){return this.coordToData(this.toLocalCoord(e[this.dim==="x"?0:1]),a)}
6,t.prototype.setCategorySortInfo=function(e){if(this.type!=="category")return!1;this.model.option.categorySortInfo=e,this.scale.setSortInfo(e)},t})(xc),py=null;function gy(){return py}var my="expandAxisBreak",vt=Math.PI,yy=[[1,2,1,2],[5,3,5,3],[8,3,8,3]],_y=[[0,1,0,1],[0,3,0,3],[0,3,0,3]],tr=ge(),Jc=ge(),Qc=(function(){function r(t){this.recordMap={},this.resolveAxisNameOverlap=t}return r.prototype.ensureRecord=function(t){var e=t.axis.dim,a=t.componentIndex,i=this.recordMap,n=i[e]||(i[e]=[]);return n[a]||(n[a]={ready:{}})},r})();function by(r,t,e,a){var i=e.axis,n=t.ensureRecord(e),o=[],s,l=mo(r.axisName)&&er(r.nameLocation);M(a,function(d){var p=dt(d);if(!(!p||p.label.ignore)){o.push(p);var m=n.transGroup;l&&(m.transform?Au(dr,m.transform):Ph(dr),p.transform&&Eh(dr,dr,p.transform),xt.copy(ta,p.localRect),ta.applyTransform(dr),s?s.union(ta):xt.copy(s=new xt(0,0,0,0),ta))}});var u=Math.abs(n.dirVec.x)>.1?"x":"y",c=n.transGroup[u];if(o.sort(function(d,p){return Math.abs(d.label[u]-c)-Math.abs(p.label[u]-c)}),l&&s){var f=i.getExtent(),v=Math.min(f[0],f[1]),h=Math.max(f[0],f[1])-v;s.union(new xt(v,0,h,1))}n.stOccupiedRect=s,n.labelInfoList=o}var dr=Un(),ta=new xt(0,0,0,0),ef=function(r,t,e,a,i,n){if(er(r.nameLocation)){var o=n.stOccupiedRect;o&&tf(mg({},o,n.transGroup.transform),a,i)}else rf(n.labelInfoList,n.dirVec,a,i)};function tf(r,t,e){var a=new Ir;ao(r,t,a,{direction:Math.atan2(e.y,e.x),bidirectional:!1,touchThreshold:.05})&&yg(t,a)}function rf(r,t,e,a){for(var i=Ir.dot(a,t)>=0,n=0,o=r.length;n<o;n++){var s=r[i?n:o-1-n];s.label.ignore||tf(s,e,a)}}var Qe=(function(){function r(t,e,a,i){this.group=new le,this._axisModel=t,this._api=e,this._local={},this._shared=i||new Qc(ef),this._resetCfgDetermined(a)}return r.prototype.updateCfg=function(t){var e=this._cfg.raw;e.position=t.position,e.labelOffset=t.labelOffset,this._resetCfgDetermined(e)},r.prototype.__getRawCfg=function(){return this._cfg.raw},r.prototype._resetCfgDetermined=function(t){var e=this._axisModel,a=e.getDefaultOption?e.getDefaultOption():{},i=J(t.axisName,e.get("name")),n=e.get("nameMoveOverlap");(n==null||n==="auto")&&(n=J(t.defaultNameMoveOverlap,!0));var o={raw:t,position:t.position,rotation:t.rotation,nameDirection:J(t.nameDirection,1),tickDirection:J(t.tickDirection,1),labelDirection:J(t.labelDirection,1),labelOffset:J(t.labelOffset,0),silent:J(t.silent,!0),axisName:i,nameLocation:Oh(e.get("nameLocation"),a.nameLocation,"end"),shouldNameMoveOverlap:mo(i)&&n,optionHideOverlap:e.get(["axisLabel","hideOverlap"]),showMinorTicks:e.get(["minorTick","show"])};this._cfg=o;var s=new le({x:o.position[0],y:o.position[1],rotation:o.rotation});s.updateTransform(),this._transformGroup=s;var l=this._shared.ensureRecord(e);l.transGroup=this._transformGroup,l.dirVec=new Ir(Math.cos(-o.rotation),Math.sin(-o.rotation))},r.prototype.build=function(t,e){var a=this;return t||(t={axisLine:!0,axisTickLabelEstimate:!1,axisTickLabelDetermine:!0,axisName:!0}),M(xy,function(i){t[i]&&Sy[i](a._cfg,a._local,a._shared,a._axisModel,a.group,a._transformGroup,a._api,e||{})}),this},r.innerTextLayout=function(t,e,a){var i=wu(e-t),n,o;return Na(i)?(o=a>0?"top":"bottom",n="center"):Na(i-vt)?(o=a>0?"bottom":"top",n="center"):(o="middle",i>0&&i<vt?n=a>0?"right":"left":n=a>0?"left":"right"),{rotation:i,textAlign:n,textVerticalAlign:o}},r.makeAxisEventDataBase=function(t){var e={componentType:t.mainType,componentIndex:t.componentIndex};return e[t.mainType+"Index"]=t.componentIndex,e},r.isLabelSilent=function(t){var e=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||e&&e.show)},r})(),xy=["axisLine","axisTickLabelEstimate","axisTickLabelDetermine","axisName"],Sy={axisLine:function(r,t,e,a,i,n,o){var s=a.get(["axisLine","show"]);if(s==="auto"&&(s=!0,r.raw.axisLineAutoShow!=null&&(s=!!r.raw.axisLineAutoShow)),!!s){var l=a.axis.getExtent(),u=n.transform,c=[l[0],0],f=[l[1],0],v=c[0]>f[0];u&&(qt(c,c,u),qt(f,f,u));var h=j({lineCap:"round"},a.getModel(["axisLine","lineStyle"]).getLineStyle()),d={strokeContainThreshold:r.raw.strokeContainThreshold||5,silent:!0,z2:1,style:h};if(a.get(["axisLine","breakLine"])&&Ea(a.axis.scale))gy().buildAxisBreakLine(a,i,n,d);else{var p=new Dr(j({shape:{x1:c[0],y1:c[1],x2:f[0],y2:f[1]}},d));Ra(p.shape,p.style.lineWidth),p.anid="line",i.add(p)}var m=a.get(["axisLine","symbol"]);if(m!=null){var g=a.get(["axisLine","symbolSize"]);q(m)&&(m=[m,m]),(q(g)||$e(g))&&(g=[g,g]);var y=ni(a.get(["axisLine","symbolOffset"])||0,g),_=g[0],b=g[1];M([{rotate:r.rotation+Math.PI/2,offset:y[0],r:0},{rotate:r.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((c[0]-f[0])*(c[0]-f[0])+(c[1]-f[1])*(c[1]-f[1]))}
6],function(S,w){if(m[w]!=="none"&&m[w]!=null){var x=Ue(m[w],-_/2,-b/2,_,b,h.stroke,!0),I=S.r+S.offset,T=v?f:c;x.attr({rotation:S.rotate,x:T[0]+I*Math.cos(r.rotation),y:T[1]-I*Math.sin(r.rotation),silent:!0,z2:11}),i.add(x)}})}}},axisTickLabelEstimate:function(r,t,e,a,i,n,o,s){var l=Ns(t,i,s);l&&Rs(r,t,e,a,i,n,o,Ve.estimate)},axisTickLabelDetermine:function(r,t,e,a,i,n,o,s){var l=Ns(t,i,s);l&&Rs(r,t,e,a,i,n,o,Ve.determine);var u=Ty(r,i,n,a);Cy(r,t.labelLayoutList,u),Iy(r,i,n,a,r.tickDirection)},axisName:function(r,t,e,a,i,n,o,s){var l=e.ensureRecord(a);t.nameEl&&(i.remove(t.nameEl),t.nameEl=l.nameLayout=l.nameLocation=null);var u=r.axisName;if(mo(u)){var c=r.nameLocation,f=r.nameDirection,v=a.getModel("nameTextStyle"),h=a.get("nameGap")||0,d=a.axis.getExtent(),p=a.axis.inverse?-1:1,m=new Ir(0,0),g=new Ir(0,0);c==="start"?(m.x=d[0]-p*h,g.x=-p):c==="end"?(m.x=d[1]+p*h,g.x=p):(m.x=(d[0]+d[1])/2,m.y=r.labelOffset+f*h,g.y=f);var y=Un();g.transform(Su(y,y,r.rotation));var _=a.get("nameRotate");_!=null&&(_=_*vt/180);var b,S;er(c)?b=Qe.innerTextLayout(r.rotation,_??r.rotation,f):(b=wy(r.rotation,c,_||0,d),S=r.raw.axisNameAvailableWidth,S!=null&&(S=Math.abs(S/Math.sin(b.rotation)),!isFinite(S)&&(S=null)));var w=v.getFont(),x=a.get("nameTruncate",!0)||{},I=x.ellipsis,T=Zt(r.raw.nameTruncateMaxWidth,x.maxWidth,S),C=s.nameMarginLevel||0,A=new Ae({x:m.x,y:m.y,rotation:b.rotation,silent:Qe.isLabelSilent(a),style:Je(v,{text:u,font:w,overflow:"truncate",width:T,ellipsis:I,fill:v.getTextColor()||a.get(["axisLine","lineStyle","color"]),align:v.get("align")||b.textAlign,verticalAlign:v.get("verticalAlign")||b.textVerticalAlign}),z2:1});if(Wn({el:A,componentModel:a,itemName:u}),A.__fullText=u,A.anid="name",a.get("triggerEvent")){var k=Qe.makeAxisEventDataBase(a);k.targetType="axisName",k.name=u,ie(A).eventData=k}n.add(A),A.updateTransform(),t.nameEl=A;var D=l.nameLayout=dt({label:A,priority:A.z2,defaultAttr:{ignore:A.ignore},marginDefault:er(c)?yy[C]:_y[C]});if(l.nameLocation=c,i.add(A),A.decomposeTransform(),r.shouldNameMoveOverlap&&D){var R=e.ensureRecord(a);e.resolveAxisNameOverlap(r,e,a,D,g,R)}}}};function Rs(r,t,e,a,i,n,o,s){nf(t)||Dy(r,t,i,s,a,o);var l=t.labelLayoutList;My(r,a,l,n),r.rotation;var u=r.optionHideOverlap;Ay(a,l,u),u&&_g(Ct(l,function(c){return c&&!c.label.ignore})),by(r,e,a,l)}function wy(r,t,e,a){var i=wu(e-r),n,o,s=a[0]>a[1],l=t==="start"&&!s||t!=="start"&&s;return Na(i-vt/2)?(o=l?"bottom":"top",n="center"):Na(i-vt*1.5)?(o=l?"top":"bottom",n="center"):(o="middle",i<vt*1.5&&i>vt/2?n=l?"left":"right":n=l?"right":"left"),{rotation:i,textAlign:n,textVerticalAlign:o}}function Ay(r,t,e){var a=r.axis,i=r.get(["axisLabel","customValues"]);if(Cp(a))return;function n(u,c,f){var v=dt(t[c]),h=dt(t[f]),d=a.scale;if(!(!v||!h)){if(u==null){if(!e&&i)return;var p=tr(v.label).labelInfo.tick;if(Jn(d)&&p.notNice||ze(d)&&p.offInterval){Bt(v.label);return}}if(u===!1||v.suggestIgnore){Bt(v.label);return}if(h.suggestIgnore){Bt(h.label);return}var m=.1;if(!e){var g=[0,0,0,0];v=cs({marginForce:g},v),h=cs({marginForce:g},h)}ao(v,h,null,{touchThreshold:m})&&Bt(u?h.label:v.label)}}var o=r.get(["axisLabel","showMinLabel"]),s=r.get(["axisLabel","showMaxLabel"]),l=t.length;n(o,0,1),n(s,l-1,l-2)}function Cy(r,t,e){r.showMinorTicks||M(t,function(a){if(a&&a.label.ignore)for(var i=0;i<e.length;i++){var n=e[i],o=Jc(n),s=tr(a.label);if(o.tickValue!=null&&!o.onBand&&o.tickValue===s.labelInfo.tick.value){Bt(n);return}}})}function Bt(r){r&&(r.ignore=!0)}function af(r,t,e,a,i){for(var n=[],o=[],s=[],l=0;l<r.length;l++){var u=r[l].coord;
6o[0]=u,o[1]=0,s[0]=u,s[1]=e,t&&(qt(o,o,t),qt(s,s,t));var c=new Dr({shape:{x1:o[0],y1:o[1],x2:s[0],y2:s[1]},style:a,z2:2,autoBatch:!0,silent:!0});Ra(c.shape,c.style.lineWidth),c.anid=i+"_"+r[l].tickValue,n.push(c);var f=Jc(c);f.onBand=!!r[l].onBand,f.tickValue=r[l].tickValue}return n}function Ty(r,t,e,a){var i=a.axis,n=a.getModel("axisTick"),o=n.get("show");if(o==="auto"&&(o=!0,r.raw.axisTickAutoShow!=null&&(o=!!r.raw.axisTickAutoShow)),!o||i.scale.isBlank())return[];for(var s=n.getModel("lineStyle"),l=r.tickDirection*n.get("length"),u=i.getTicksCoords(),c=af(u,e.transform,l,fe(s.getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])}),"ticks"),f=0;f<c.length;f++)t.add(c[f]);return c}function Iy(r,t,e,a,i){var n=a.axis,o=a.getModel("minorTick");if(!(!r.showMinorTicks||n.scale.isBlank())){var s=n.getMinorTicksCoords();if(s.length)for(var l=o.getModel("lineStyle"),u=i*o.get("length"),c=fe(l.getLineStyle(),fe(a.getModel("axisTick").getLineStyle(),{stroke:a.get(["axisLine","lineStyle","color"])})),f=0;f<s.length;f++)for(var v=af(s[f],e.transform,u,c,"minorticks_"+f),h=0;h<v.length;h++)t.add(v[h])}}function Ns(r,t,e){if(nf(r)){var a=r.axisLabelsCreationContext,i=a.out.noPxChangeTryDetermine;if(e.noPxChange){for(var n=!0,o=0;o<i.length;o++)n=n&&i[o]();if(n)return!1}i.length&&(t.remove(r.labelGroup),yn(r,null,null,null))}return!0}function Dy(r,t,e,a,i,n){var o=i.axis,s=Zt(r.raw.axisLabelShow,i.get(["axisLabel","show"])),l=new le;e.add(l);var u=Ua(a);if(!s||o.scale.isBlank()){yn(t,[],l,u);return}var c=i.getModel("axisLabel"),f=o.getViewLabels(u),v=(Zt(r.raw.labelRotate,c.get("rotate"))||0)*vt/180,h=Qe.innerTextLayout(r.rotation,v,r.labelDirection),d=i.getCategories&&i.getCategories(!0),p=[],m=i.get("triggerEvent"),g=1/0,y=-1/0;M(f,function(b,S){var w,x=b.tick,I=b.formattedLabel,T=b.rawLabel,C=c,A=Fr(o.scale,x);if(d&&d[A]){var k=d[A];oe(k)&&k.textStyle&&(C=new Ke(k.textStyle,c,i.ecModel))}var D=C.getTextColor()||i.get(["axisLine","lineStyle","color"]),R=C.getShallow("align",!0)||h.textAlign,E=J(C.getShallow("alignMinLabel",!0),R),N=J(C.getShallow("alignMaxLabel",!0),R),P=C.getShallow("verticalAlign",!0)||C.getShallow("baseline",!0)||h.textVerticalAlign,O=J(C.getShallow("verticalAlignMinLabel",!0),P),V=J(C.get
6Shallow("verticalAlignMaxLabel",!0),P),U=10+(((w=x.time)===null||w===void 0?void 0:w.level)||0);g=Math.min(g,U),y=Math.max(y,U);var B=new Ae({x:0,y:0,rotation:0,silent:Qe.isLabelSilent(i),z2:U,style:Je(C,{text:I,align:S===0?E:S===f.length-1?N:R,verticalAlign:S===0?O:S===f.length-1?V:P,fill:re(D)?D(o.type==="category"?T:o.type==="value"?A+"":A,S):D})});B.anid="label_"+A;var $=tr(B);if($.labelInfo=b,$.layoutRotation=h.rotation,Wn({el:B,componentModel:i,itemName:I,formatterParamsExtra:{isTruncated:function(){return B.isTruncated},value:T,tickIndex:S}}),m){var Y=Qe.makeAxisEventDataBase(i);Y.targetType="axisLabel",Y.value=T,Y.tickIndex=S;var z=b.tick.break;if(z){var Z=z.parsedBreak;Y.break={start:Z.vmin,end:Z.vmax}}o.type==="category"&&(Y.dataIndex=A),ie(B).eventData=Y,z&&ky(i,n,B,z)}p.push(B),l.add(B)});var _=F(p,function(b){return{label:b,priority:tr(b).labelInfo.tick.break?b.z2+(y-g+1):b.z2,defaultAttr:{ignore:b.ignore}}});yn(t,_,l,u)}function nf(r){return!!r.labelLayoutList}function yn(r,t,e,a){r.labelLayoutList=t,r.labelGroup=e,r.axisLabelsCreationContext=a}function My(r,t,e,a){var i=t.get(["axisLabel","margin"]);M(e,function(n,o){var s=dt(n);if(s){var l=s.label,u=tr(l);s.suggestIgnore=l.ignore,l.ignore=!1,rn(Ye,Ly);var c=t.axis;Ye.x=c.dataToCoord(Fr(c.scale,u.labelInfo.tick)),Ye.y=r.labelOffset+r.labelDirection*i,Ye.rotation=u.layoutRotation,a.add(Ye),Ye.updateTransform(),a.remove(Ye),Ye.decomposeTransform(),rn(l,Ye),l.markRedraw(),Xa(s,!0),dt(s)}})}var Ye=new Ce,Ly=new Ce;function mo(r){return!!r}function ky(r,t,e,a){e.on("click",function(i){var n={type:my,breaks:[{start:a.parsedBreak.breakOption.start,end:a.parsedBreak.breakOption.end}]};n[r.axis.dim+"AxisIndex"]=r.componentIndex,t.dispatchAction(n)})}function Za(r,t,e){e=e||{};var a=t.axis,i={},n=a.getAxesOnZeroOf()[0],o=a.position,s=n?"onZero":o,l=a.dim,u=[r.x,r.x+r.width,r.y,r.y+r.height],c={left:0,right:1,top:0,bottom:1,onZero:2},f=t.get("offset")||0,v=l==="x"?[u[2]-f,u[3]+f]:[u[0]-f,u[1]+f];if(n){var h=n.toGlobalCoord(n.dataToCoord(0));v[c.onZero]=Math.max(Math.min(h,v[1]),v[0])}i.position=[l==="y"?v[c[s]]:u[0],l==="x"?v[c[s]]:u[3]],i.rotation=Math.PI/2*(l==="x"?0:1);var d={top:-1,bottom:1,left:-1,right:1};i.labelDirection=i.tickDirection=i.nameDirection=d[o],i.labelOffset=n?v[c[o]]-v[c.onZero]:0,t.get(["axisTick","inside"])&&(i.tickDirection=-i.tickDirection),Zt(e.labelInside,t.get(["axisLabel","inside"]))&&(i.labelDirection=-i.labelDirection);var p=t.get(["axisLabel","rotate"]);return i.labelRotate=s==="top"?-p:p,i.z2=1,i}function Oy(r){return r.coordinateSystem&&r.coordinateSystem.type==="cartesian2d"}function Py(r){var t={xAxisModel:null,yAxisModel:null};return M(t,function(e,a){var i=a.replace(/Model$/,""),n=r.getReferringComponents(i,Xe).models[0];t[a]=n}),t}function Ey(r,t,e,a,i,n){for(var o=Za(r,e),s=!1,l=!1,u=0;u<t.length;u++)Yu(t[u].getOtherAxis(e.axis).scale)&&(s=l=!0,e.axis.type==="category"&&e.axis.onBand&&(l=!1));return o.axisLineAutoShow=s,o.axisTickAutoShow=l,o.defaultNameMoveOverlap=n,new Qe(e,a,o,i)}function Ry(r,t,e){var a=Za(t,e);r.updateCfg(a)}function Ny(){Np("liPosMinGap",Vy)}function Vy(r,t,e){var a=se(),i=e.serUids,n=e.liPosMinGap,o,s=t.axis,l=s.scale,u=l.needTransform(),c=l.getFilter?l.getFilter():null,f=Rh(c);function v(_){to(r,t.sers,function(b){var S=b.getRawData(),w=S.getDimensionIndex(S.mapDimension(s.dim));w>=0&&_(w,b,S.getStore())})}var h=0;if(v(function(_,b,S){a.set(b.uid,1),(!i||!i.hasKey(b.uid))&&(o=!0),h+=S.count()}),(!i||i.keys().length!==a.keys().length)&&(o=!0),!o&&n!=null){t.liPosMinGap=n;return}po(gt,h);var d=0;v(function(_,b,S){for(var w=0,x=S.count();w<x;++w){var I=S.get(_,w);isFinite(I)&&(!c||Nh(f,I))&&(u&&(I=l.transformIn(I,null)),gt.arr[d++]=I)}});var p=gt.typed?gt.arr.subarray(0,d):(gt.arr.length=d,gt.arr);gt.typed?p.sort():ai(p);for(var m=1/0,g=1;g<d;++g){var y=p[g]-p[g-1];y>0&&y<m&&(m=y)}e.liPosMinGap=t.liPosMinGap=Ee(m)?m:d>0?ac:Mp,e.serUids=a}var gt=po({ctor:Km},50);function By(r){return function(t,e){var a=sr(t,{fromStat:{key:r}});if(Ee(a.w2))return[-a.w2/2,a.w2/2]}}function di(r,t){return r+un+t}function zy(r){return Ny(),{liPosMinGap:!ze(r.scale)}}var Ft="bar";
6function Gy(r,t,e,a){Vp(r,{key:t,seriesType:e,coordSysType:a,getMetrics:zy})}function Fy(r){var t=r.scale.rawExtentInfo.makeRenderInfo().startValue;return t}var of={left:0,right:0,top:0,bottom:0},qa=["25%","25%"],et="cartesian2d",Hy=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.mergeDefaultAndTheme=function(e,a){var i=$n(e.outerBounds);r.prototype.mergeDefaultAndTheme.apply(this,arguments),i&&e.outerBounds&&Va(e.outerBounds,i)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.apply(this,arguments),this.option.outerBounds&&e.outerBounds&&Va(this.option.outerBounds,e.outerBounds)},t.type="grid",t.dependencies=["xAxis","yAxis"],t.layoutMode="box",t.defaultOption={show:!1,z:0,left:"15%",top:65,right:"10%",bottom:80,containLabel:!1,outerBoundsMode:"auto",outerBounds:of,outerBoundsContain:"all",outerBoundsClampWidth:qa[0],outerBoundsClampHeight:qa[1],backgroundColor:W.color.transparent,borderWidth:1,borderColor:W.color.neutral30},t})(Pe),Wy=ru(),Uy="__ec_stack_";function sf(r){return r.get("stack")||Uy+r.seriesIndex}function $y(r,t){var e=Yy(r,t);return e.columnMap=Xy(e),e}function Yy(r,t){var e=di(t,et),a=[],i=sr(r,{fromStat:{key:e},min:1});return sc(r,e,function(n){a.push({barWidth:Se(n.get("barWidth"),i.w),barMaxWidth:Se(n.get("barMaxWidth"),i.w),barMinWidth:Se(n.get("barMinWidth")||(lf(n)?.5:1),i.w),barGap:n.get("barGap"),barCategoryGap:n.get("barCategoryGap"),defaultBarGap:n.get("defaultBarGap"),stackId:sf(n)})}),{bandWidthResult:i,seriesInfo:a}}function Xy(r){var t=r.bandWidthResult.w,e=t,a=0,i,n,o=[],s={};M(r.seriesInfo,function(p,m){m||(n=p.defaultBarGap||0);var g=p.stackId;ti(s,g)||a++;var y=s[g];y||(y=s[g]={width:0,maxWidth:0},o.push(g));var _=p.barWidth;_&&!y.width&&(y.width=_,_=He(e,_),e-=_);var b=p.barMaxWidth;b&&(y.maxWidth=b);var S=p.barMinWidth;S&&(y.minWidth=S);var w=p.barGap;w!=null&&(n=w);var x=p.barCategoryGap;x!=null&&(i=x)}),i==null&&(i=he(35-o.length*4,15)+"%");var l=Se(i,t),u=Se(n,1),c=(e-l)/(a+(a-1)*u);c=he(c,0),M(o,function(p){var m=s[p],g=m.maxWidth,y=m.minWidth;if(m.width){var _=m.width;g&&(_=He(_,g)),y&&(_=he(_,y)),m.width=_,e-=_+u*_,a--}else{var _=c;g&&g<_&&(_=He(g,e)),y&&y>_&&(_=y),_!==c&&(m.width=_,e-=_+u*_,a--)}}),c=(e-l)/(a+(a-1)*u),c=he(c,0);var f=0,v;M(o,function(p){var m=s[p];m.width||(m.width=c),v=m,f+=m.width*(1+u)}),v&&(f-=v.width*u);var h={},d=-f/2;return M(o,function(p){var m=s[p];h[p]=h[p]||{bandWidth:t,offset:d,width:m.width},d+=m.width*(1+u)}),h}function Ky(r){return{seriesType:r,overallReset:function(t){var e=di(r,et);Ep(t,e,function(a){var i=$y(a,r);sc(a,e,function(n){var o=i.columnMap[sf(n)];n.getData().setLayout({bandWidth:o.bandWidth,offset:o.offset,size:o.width})})})}}}function Zy(r){return{seriesType:r,plan:xu(),reset:function(t){if(Oy(t)){var e=t.getData(),a=t.coordinateSystem,i=a.getBaseAxis(),n=a.getOtherAxis(i),o=e.getDimensionIndex(e.mapDimension(n.dim)),s=e.getDimensionIndex(e.mapDimension(i.dim)),l=t.get("showBackground",!0),u=e.mapDimension(n.dim),c=e.getCalculationInfo("stackResultDimension"),f=Tt(e,u)&&!!e.getCalculationInfo("stackedOnSeries"),v=n.isHorizontal(),h=n.toGlobalCoord(n.dataToCoord(Fy(n))),d=lf(t),p=t.get("barMinHeight")||0,m=c&&e.getDimensionIndex(c),g=e.getLayout("size"),y=e.getLayout("offset");return{progress:function(_,b){for(var S=_.count,w=d&&Ze(S*3),x=d&&l&&Ze(S*3),I=d&&Ze(S),T=a.master.getRect(),C=v?T.width:T.height,A,k=b.getStore(),D=0;(A=_.next())!=null;){var R=k.get(f?m:o,A),E=k.get(s,A),N=h,P=void 0;f&&(P=+R-k.get(o,A));var O=void 0,V=void 0,U=void 0,B=void 0;if(v){var $=a.dataToPoint([R,E]);f&&(N=a.dataToPoint([P,E])[0]),O=N,V=$[1]+y,U=$[0]-N,B=g,St(U)<p&&(U=(U<0?-1:1)*p)}else{var $=a.dataToPoint([E,R]);f&&(N=a.dataToPoint([E,P])[1]),O=$[0]+y,V=N,U=g,B=$[1]-N,St(B)<p&&(B=(B<=0?-1:1)*p)}d?(w[D]=O,w[D+1]=V,w[D+2]=v?U:B,x&&(x[D]=v?T.x:O,x[D+1]=v?V:T.y,x[D+2]=C),I[A]=A):b.setItemLayout(A,{x:O,y:V,width:U,height:B}),D+=3}d&&b.setLayout({largePoints:w,largeDataIndices:I,largeBackgroundPoints:x,valueAxisHorizontal:v})}}}}}}function lf(r){return r.pipelineContext&&r.pipelineContext.large}function qy(r){return By(di(r,et))}function jy(r){Wy(r,function(){function t(e){var a=di(e,et);Gy(r,a,e,et),Up(a,qy(e))}t("bar"),t("pictorialBar")})}var _n=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,a){return qn(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(e,a,i){var n=this.coordinateSystem;if(n&&n.clampData){var o=n.clampData(e),s=n.dataToPoint(o);if(i)M(n.getAxes(),function(v,h){if(v.type==="category"&&a!=null){var d=v.getTicksCoords(),p=v.getTickModel().get("alignWithLabel"),m=o[h],g=a[h]==="x1"||a[h]==="y1";if(g&&!p&&(m+=1),d.length<2)return;if(d.length===2){s[h]=v.toGlobalCoord(v.getExtent()[g?1:0]);return}for(var y=void 0,_=void 0,b=1,S=0;S<d.length;S++){var w=d[S].coord,x=S===d.length-1?d[S-1].tickValue+b:d[S].tickValue;if(x===m){_=w;break}else if(x<m)y=w;else if(y!=null&&x>m){_=(w+y)/2;break}S===1&&(b=x-d[0].tickValue)}_==null&&(y?y&&(_=d[d.length-1].coord):_=d[0].coord),s[h]=v.toGlobalCoord(_)}});else{var l=this.getData(),u=l.getLayout("offset"),c=l.getLayout("size"),f=n.getBaseAxis().isHorizontal()?0:1;s[f]+=u+c/2}return s}return[NaN,NaN]},t.prototype.__requireStartValue=function(e){return this.getBaseAxis()!==e},t.type="series.__base_bar__",t.defaultOption={z:2,coordinateSystem:"cartesian2d",legendHoverLink:!0,barMinHeight:0,barMinAngle:0,large:!1,largeThreshold:400,progressive:3e3,progressiveChunkMode:"mod",defaultBarGap:"10%"},t})(Yt);Yt.registerClass(_n);var Jy=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(){return qn(null,this,{useEncodeDefaulter:!0,createInvertedIndices:!!this.get("realtimeSort",!0)||null})},t.prototype.getProgressive=function(){return this.get("large")?this.get("progressive"):!1},t.prototype.__preparePipelineContext=function(e,a){var i=Vh(this,e,a);
6return i.progressiveRender&&(i.large=!0),i},t.prototype.brushSelector=function(e,a,i){return i.rect(a.getItemLayout(e))},t.type="series."+Ft,t.dependencies=["grid","polar"],t.defaultOption=si(_n.defaultOption,{clip:!0,roundCap:!1,showBackground:!1,backgroundStyle:{color:"rgba(180, 180, 180, 0.2)",borderColor:null,borderWidth:0,borderType:"solid",borderRadius:0,shadowBlur:0,shadowColor:null,shadowOffsetX:0,shadowOffsetY:0,opacity:1},select:{itemStyle:{borderColor:W.color.primary,borderWidth:2}},realtimeSort:!1}),t})(_n),Qy=(function(){function r(){this.cx=0,this.cy=0,this.r0=0,this.r=0,this.startAngle=0,this.endAngle=Math.PI*2,this.clockwise=!0}return r})(),Vs=(function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="sausage",a}return t.prototype.getDefaultShape=function(){return new Qy},t.prototype.buildPath=function(e,a){var i=a.cx,n=a.cy,o=Math.max(a.r0||0,0),s=Math.max(a.r,0),l=(s-o)*.5,u=o+l,c=a.startAngle,f=a.endAngle,v=a.clockwise,h=Math.PI*2,d=v?f-c<h:c-f<h;d||(c=f-(v?h:-h));var p=Math.cos(c),m=Math.sin(c),g=Math.cos(f),y=Math.sin(f);d?(e.moveTo(p*o+i,m*o+n),e.arc(p*u+i,m*u+n,l,-Math.PI+c,c,!v)):e.moveTo(p*s+i,m*s+n),e.arc(i,n,s,c,f,!v),e.arc(g*u+i,y*u+n,l,f-Math.PI*2,f-Math.PI,!v),o!==0&&e.arc(i,n,o,f,c,v)},t})(ir);function e0(r,t){t=t||{};var e=t.isRoundCap;return function(a,i,n){var o=i.position;if(!o||o instanceof Array)return Vo(a,i,n);var s=r(o),l=i.distance!=null?i.distance:5,u=this.shape,c=u.cx,f=u.cy,v=u.r,h=u.r0,d=(v+h)/2,p=u.startAngle,m=u.endAngle,g=(p+m)/2,y=e?Math.abs(v-h)/2:0,_=Math.cos,b=Math.sin,S=c+v*_(p),w=f+v*b(p),x="left",I="top";switch(s){case"startArc":S=c+(h-l)*_(g),w=f+(h-l)*b(g),x="center",I="top";break;case"insideStartArc":S=c+(h+l)*_(g),w=f+(h+l)*b(g),x="center",I="bottom";break;case"startAngle":S=c+d*_(p)+ra(p,l+y,!1),w=f+d*b(p)+aa(p,l+y,!1),x="right",I="middle";break;case"insideStartAngle":S=c+d*_(p)+ra(p,-l+y,!1),w=f+d*b(p)+aa(p,-l+y,!1),x="left",I="middle";break;case"middle":S=c+d*_(g),w=f+d*b(g),x="center",I="middle";break;case"endArc":S=c+(v+l)*_(g),w=f+(v+l)*b(g),x="center",I="bottom";break;case"insideEndArc":S=c+(v-l)*_(g),w=f+(v-l)*b(g),x="center",I="top";break;case"endAngle":S=c+d*_(m)+ra(m,l+y,!0),w=f+d*b(m)+aa(m,l+y,!0),x="left",I="middle";break;case"insideEndAngle":S=c+d*_(m)+ra(m,-l+y,!0),w=f+d*b(m)+aa(m,-l+y,!0),x="right",I="middle";break;default:return Vo(a,i,n)}return a=a||{},a.x=S,a.y=w,a.align=x,a.verticalAlign=I,a}}function t0(r,t,e,a){if($e(a)){r.setTextConfig({rotation:a});return}else if(H(t)){r.setTextConfig({rotation:0});return}var i=r.shape,n=i.clockwise?i.startAngle:i.endAngle,o=i.clockwise?i.endAngle:i.startAngle,s=(n+o)/2,l,u=e(t);switch(u){case"startArc":case"insideStartArc":case"middle":case"insideEndArc":case"endArc":l=s;break;case"startAngle":case"insideStartAngle":l=n;break;case"endAngle":case"insideEndAngle":l=o;break;default:r.setTextConfig({rotation:0});return}var c=Math.PI*1.5-l;u==="middle"&&c>Math.PI/2&&c<Math.PI*1.5&&(c-=Math.PI),r.setTextConfig({rotation:c})}function ra(r,t,e){return t*Math.sin(r)*(e?-1:1)}function aa(r,t,e){return t*Math.cos(r)*(e?1:-1)}function r0(r,t,e){var a=r.get("borderRadius");if(a==null)return{cornerRadius:0};H(a)||(a=[a,a,a,a]);var i=Math.abs(t.r||0-t.r0||0);return{cornerRadius:F(a,function(n){return La(n,i)})}}var Ri=Math.max,Ni=Math.min,a0=(function(r){G(t,r);function t(){var e=r.call(this)||this;return e.type=Ft,e._isFirstFrame=!0,e}return t.prototype.render=function(e,a,i,n){this._model=e,this._removeOnRenderedListener(i),this._updateDrawMode(e);var o=e.get("coordinateSystem");(o==="cartesian2d"||o==="polar")&&(this._progressiveEls=null,this._isLargeDraw?this._renderLarge(e,a,i):this._renderNormal(e,a,i,n))},t.prototype.incrementalPrepareRender=function(e){this._clear(),this._updateDrawMode(e),this._updateLargeClip(e)},t.prototype.incrementalRender=function(e,a){this._progressiveEls=[],this._incrementalRenderLarge(e,a)},t.prototype.eachRendered=function(e){Gn(this._progressiveEls||this.group,e)},t.prototype._updateDrawMode=function(e){var a=e.pipelineContext.large;(this._isLargeDraw==null||a!==this._isLargeDraw)&&(this._isLargeDraw=a,this._clear())},t.prototype._renderNormal=function(e,a,i,n){var o=this.group,s=e.getData(),l=this._data,u=e.co
6ordinateSystem,c=u.getBaseAxis(),f;u.type==="cartesian2d"?f=c.isHorizontal():u.type==="polar"&&(f=c.dim==="angle");var v=e.isAnimationEnabled()?e:null,h=i0(e,u);h&&this._enableRealtimeSort(h,s,i);var d=e.get("clip",!0)||h,p=u.getArea();o.removeClipPath();var m=e.get("roundCap",!0),g=e.get("showBackground",!0),y=e.getModel("backgroundStyle"),_=y.get("borderRadius")||0,b=[],S=this._backgroundEls,w=n&&n.isInitSort,x=n&&n.type==="changeAxisOrder";function I(A){var k=ia[u.type](s,A);if(!k)return null;var D=f0(u,f,k);return D.useStyle(y.getItemStyle()),u.type==="cartesian2d"?D.setShape("r",_):D.setShape("cornerRadius",_),b[A]=D,D}s.diff(l).add(function(A){var k=s.getItemModel(A),D=ia[u.type](s,A,k);if(D&&(g&&I(A),!(!s.hasValue(A)||!Hs[u.type](D)))){var R=!1;d&&(R=Bs[u.type](p,D));var E=zs[u.type](e,s,A,D,f,v,c.model,!1,m);h&&(E.forceLabelAnimation=!0),Ws(E,s,A,k,D,e,f,u.type==="polar"),w?E.attr({shape:D}):h?Gs(h,v,E,D,A,f,!1,!1):Re(E,{shape:D},e,A),s.setItemGraphicEl(A,E),o.add(E),E.ignore=R}}).update(function(A,k){var D=s.getItemModel(A),R=ia[u.type](s,A,D);if(R){if(g){var E=void 0;S.length===0?E=I(k):(E=S[k],E.useStyle(y.getItemStyle()),u.type==="cartesian2d"?E.setShape("r",_):E.setShape("cornerRadius",_),b[A]=E);var N=ia[u.type](s,A),P=cf(f,N,u);xe(E,{shape:P},v,A)}var O=l.getItemGraphicEl(k);if(!s.hasValue(A)||!Hs[u.type](R)){o.remove(O);return}var V=!1;d&&(V=Bs[u.type](p,R),V&&o.remove(O));var U=O&&(O.type==="sector"&&m||O.type==="sausage"&&!m);if(U&&(O&&xi(O,e,k),O=null),O?Oa(O):O=zs[u.type](e,s,A,R,f,v,c.model,!0,m),h&&(O.forceLabelAnimation=!0),x){var B=O.getTextContent();if(B){var $=bu(B);$.prevValue!=null&&($.prevValue=$.value)}}else Ws(O,s,A,D,R,e,f,u.type==="polar");w?O.attr({shape:R}):h?Gs(h,v,O,R,A,f,!0,x):xe(O,{shape:R},e,A,null),s.setItemGraphicEl(A,O),O.ignore=V,o.add(O)}}).remove(function(A){var k=l.getItemGraphicEl(A);k&&xi(k,e,A)}).execute();var T=this._backgroundGroup||(this._backgroundGroup=new le);T.removeAll();for(var C=0;C<b.length;++C)T.add(b[C]);o.add(T),this._backgroundEls=b,this._data=s},t.prototype._renderLarge=function(e,a,i){this._clear(),$s(e,this.group),this._updateLargeClip(e)},t.prototype._incrementalRenderLarge=function(e,a){this._removeBackground(),$s(a,this.group,this._progressiveEls,!0)},t.prototype._updateLargeClip=function(e){var a=e.get("clip",!0)&&ey(e.coordinateSystem,!1,e),i=this.group;a?i.setClipPath(a):i.removeClipPath()},t.prototype._enableRealtimeSort=function(e,a,i){var n=this;if(a.count()){var o=e.baseAxis;if(this._isFirstFrame)this._dispatchInitSort(a,e,i),this._isFirstFrame=!1;else{var s=function(l){var u=a.getItemGraphicEl(l),c=u&&u.shape;return c&&Math.abs(o.isHorizontal()?c.height:c.width)||0};this._onRendered=function(){n._updateSortWithinSameData(a,s,o,i)},i.getZr().on("rendered",this._onRendered)}}},t.prototype._dataSort=function(e,a,i){var n=[];return e.each(e.mapDimension(a.dim),function(o,s){var l=i(s);l=l??NaN,n.push({dataIndex:s,mappedValue:l,ordinalNumber:o})}),n.sort(function(o,s){return s.mappedValue-o.mappedValue}),{ordinalNumbers:F(n,function(o){return o.ordinalNumber})}},t.prototype._isOrderChangedWithinSameData=function(e,a,i){for(var n=i.scale,o=e.mapDimension(i.dim),s=Number.MAX_VALUE,l=0,u=n.getOrdinalMeta().categories.length;l<u;++l){var c=e.rawIndexOf(o,n.getRawOrdinalNumber(l)),f=c<0?Number.MIN_VALUE:a(e.indexOfRawIndex(c));if(f>s)return!0;s=f}return!1},t.prototype._isOrderDifferentInView=function(e,a){for(var i=a.scale,n=i.getExtent(),o=Math.max(0,n[0]),s=Math.min(n[1],i.getOrdinalMeta().categories.length-1);o<=s;++o)if(e.ordinalNumbers[o]!==i.getRawOrdinalNumber(o))return!0},t.prototype._updateSortWithinSameData=function(e,a,i,n){if(this._isOrderChangedWithinSameData(e,a,i)){var o=this._dataSort(e,i,a);this._isOrderDifferentInView(o,i)&&(this._removeOnRenderedListener(n),n.dispatchAction({type:"changeAxisOrder",componentType:i.dim+"Axis",axisId:i.index,sortInfo:o}))}},t.prototype._dispatchInitSort=function(e,a,i){var n=a.baseAxis,o=this._dataSort(e,n,function(s){return e.get(e.mapDimension(a.otherAxis.dim),s)});i.dispatchAction({type:"changeAxisOrder",componentType:n.dim+"Axis",isInitSort:!0,axisId:n.index,sortInfo:o})},t.prototype.remove=function(e,a){this._clear(this._model),this._removeOnRenderedListener(a)},t.prototype.dispose=function(e,a){this._removeOnRenderedListener(a)},t.prototype._removeOnRenderedListener=function(e){this._onRendered&&(e.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(e){var a=this.group,i=this._data;
6e&&e.isAnimationEnabled()&&i&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],i.eachItemGraphicEl(function(n){xi(n,e,ie(n).dataIndex)})):a.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type=Ft,t})(wt),Bs={cartesian2d:function(r,t){var e=t.width<0?-1:1,a=t.height<0?-1:1;e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height);var i=r.x+r.width,n=r.y+r.height,o=Ri(t.x,r.x),s=Ni(t.x+t.width,i),l=Ri(t.y,r.y),u=Ni(t.y+t.height,n),c=s<o,f=u<l;return t.x=c&&o>i?s:o,t.y=f&&l>n?u:l,t.width=c?0:s-o,t.height=f?0:u-l,e<0&&(t.x+=t.width,t.width=-t.width),a<0&&(t.y+=t.height,t.height=-t.height),c||f},polar:function(r,t){var e=t.r0<=t.r?1:-1;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}var i=Ni(t.r,r.r),n=Ri(t.r0,r.r0);t.r=i,t.r0=n;var o=i-n<0;if(e<0){var a=t.r;t.r=t.r0,t.r0=a}return o}},zs={cartesian2d:function(r,t,e,a,i,n,o,s,l){var u=new Ce({shape:j({},a),z2:1});if(u.__dataIndex=e,u.name="item",n){var c=u.shape,f=i?"height":"width";c[f]=0}return u},polar:function(r,t,e,a,i,n,o,s,l){var u=!i&&l?Vs:Fn,c=new u({shape:a,z2:1});c.name="item";var f=uf(i);if(c.calculateTextPosition=e0(f,{isRoundCap:u===Vs}),n){var v=c.shape,h=i?"r":"endAngle",d={};v[h]=i?a.r0:a.startAngle,d[h]=a[h],(s?xe:Re)(c,{shape:d},n)}return c}};function i0(r,t){var e=r.get("realtimeSort",!0),a=t.getBaseAxis();if(e&&a.type==="category"&&t.type==="cartesian2d")return{baseAxis:a,otherAxis:t.getOtherAxis(a)}}function Gs(r,t,e,a,i,n,o,s){var l,u;n?(u={x:a.x,width:a.width},l={y:a.y,height:a.height}):(u={y:a.y,height:a.height},l={x:a.x,width:a.width}),s||(o?xe:Re)(e,{shape:l},t,i,null);var c=t?r.baseAxis.model:null;(o?xe:Re)(e,{shape:u},c,i)}function Fs(r,t){for(var e=0;e<t.length;e++)if(!isFinite(r[t[e]]))return!0;return!1}var n0=["x","y","width","height"],o0=["cx","cy","r","startAngle","endAngle"],Hs={cartesian2d:function(r){return!Fs(r,n0)},polar:function(r){return!Fs(r,o0)}},ia={cartesian2d:function(r,t,e){var a=r.getItemLayout(t);if(!a)return null;var i=e?l0(e,a):0,n=a.width>0?1:-1,o=a.height>0?1:-1;return{x:a.x+n*i/2,y:a.y+o*i/2,width:a.width-n*i,height:a.height-o*i}},polar:function(r,t,e){var a=r.getItemLayout(t);return{cx:a.cx,cy:a.cy,r0:a.r0,r:a.r,startAngle:a.startAngle,endAngle:a.endAngle,clockwise:a.clockwise}}};function s0(r){return r.startAngle!=null&&r.endAngle!=null&&r.startAngle===r.endAngle}function uf(r){return(function(t){var e=t?"Arc":"Angle";return function(a){switch(a){case"start":case"insideStart":case"end":case"insideEnd":return a+e;default:return a}}})(r)}function Ws(r,t,e,a,i,n,o,s){var l=t.getItemVisual(e,"style");if(s){if(!n.get("roundCap")){var c=r.shape,f=r0(a.getModel("itemStyle"),c);j(c,f),r.setShape(c)}}else{var u=a.get(["itemStyle","borderRadius"])||0;r.setShape("r",u)}r.useStyle(l);var v=a.getShallow("cursor");v&&r.attr("cursor",v);var h=s?o?i.r>=i.r0?"endArc":"startArc":i.endAngle>=i.startAngle?"endAngle":"startAngle":o?v0(i,n.coordinateSystem):h0(i,n.coordinateSystem),d=Dt(a);nr(r,d,{labelFetcher:n,labelDataIndex:e,defaultText:vo(n.getData(),e),inheritColor:l.fill,defaultOpacity:l.opacity,defaultOutsidePosition:h});var p=r.getTextContent();if(s&&p){var m=a.get(["label","position"]);r.textConfig.inside=m==="middle"?!0:null,t0(r,m==="outside"?h:m,uf(o),a.get(["label","rotate"]))}Bh(p,d,n.getRawValue(e),function(y){return Uc(t,y)});var g=a.getModel(["emphasis"]);Xt(r,g.get("focus"),g.get("blurScope"),g.get("disabled")),Tr(r,a),s0(i)&&(r.style.fill="none",r.style.stroke="none",M(r.states,function(y){y.style&&(y.style.fill=y.style.stroke="none")}))}function l0(r,t){var e=r.get(["itemStyle","borderColor"]);if(!e||e==="none")return 0;var a=r.get(["itemStyle","borderWidth"])||0,i=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),n=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(a,i,n)}var u0=(function(){function r(){}return r})(),Us=(function(r){G(t,r);function t(e){var a=r.call(this,e)||this;return a.type="largeBar",a}return t.prototype.getDefaultShape=function(){return new u0},t.prototype.buildPath=function(e,a){for(var i=a.points,n=this.baseDimIdx,o=1-this.baseDimIdx,s=[],l=[],u=this.barWidth,c=0;c<i.length;c+=3)l[n]=u,l[o]=i[c+2],s[n]=i[c+n],s[o]=i[c+o],e.rect(s[0],s[1],l[0],l[1])},t})(ir);function $s(r,t,e,a){var i=r.getData(),n=i.getLayout("valueAxisHorizontal")?1:0,o=i.getLayout("largeDataIndices"),s=i.getLayout("size"),l=r.getModel("backgroundStyle"),u=i.getLayout("largeBackgroun
6dPoints"),c=a?zh(r):0;if(u){var f=new Us({shape:{points:u},incremental:c,silent:!0,z2:0});f.baseDimIdx=n,f.largeDataIndices=o,f.barWidth=s,f.useStyle(l.getItemStyle()),t.add(f),e&&e.push(f)}var v=new Us({shape:{points:i.getLayout("largePoints")},incremental:c,ignoreCoarsePointer:!0,z2:1});v.baseDimIdx=n,v.largeDataIndices=o,v.barWidth=s,t.add(v),v.useStyle(i.getVisual("style")),v.style.stroke=null,ie(v).seriesIndex=r.seriesIndex,r.get("silent")||(v.on("mousedown",Ys),v.on("mousemove",Ys)),e&&e.push(v)}var Ys=cu(function(r){var t=this,e=c0(t,r.offsetX,r.offsetY);ie(t).dataIndex=e>=0?e:null},30,!1);function c0(r,t,e){for(var a=r.baseDimIdx,i=1-a,n=r.shape.points,o=r.largeDataIndices,s=[],l=[],u=r.barWidth,c=0,f=n.length/3;c<f;c++){var v=c*3;if(l[a]=u,l[i]=n[v+2],s[a]=n[v+a],s[i]=n[v+i],l[i]<0&&(s[i]+=l[i],l[i]=-l[i]),t>=s[0]&&t<=s[0]+l[0]&&e>=s[1]&&e<=s[1]+l[1])return o[c]}return-1}function cf(r,t,e){if(go(e,"cartesian2d")){var a=t,i=e.getArea();return{x:r?a.x:i.x,y:r?i.y:a.y,width:r?a.width:i.width,height:r?i.height:a.height}}else{var i=e.getArea(),n=t;return{cx:i.cx,cy:i.cy,r0:r?i.r0:n.r0,r:r?i.r:n.r,startAngle:r?n.startAngle:0,endAngle:r?n.endAngle:Math.PI*2}}}function f0(r,t,e){var a=r.type==="polar"?Fn:Ce;return new a({shape:cf(t,e,r),silent:!0,z2:0})}function v0(r,t){if(r.height===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"bottom":"top"}return r.height>0?"bottom":"top"}function h0(r,t){if(r.width===0){var e=t.getOtherAxis(t.getBaseAxis());return e.inverse?"left":"right"}return r.width>=0?"right":"left"}function d0(r){r.registerChartView(a0),r.registerSeriesModel(Jy),r.registerLayout(r.PRIORITY.VISUAL.LAYOUT,Ky(Ft)),r.registerLayout(r.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,Zy(Ft)),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,jc(Ft)),r.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,e){var a=t.componentType||"series";e.eachComponent({mainType:a,query:t},function(i){t.sortInfo&&i.axis.setCategorySortInfo(t.sortInfo)})}),jy(r)}function p0(r){return{seriesType:r,reset:function(t,e){var a=e.findComponents({mainType:"legend"});if(!(!a||!a.length)){var i=t.getData();i.filterSelf(function(n){for(var o=i.getName(n),s=0;s<a.length;s++)if(!a[s].isSelected(o))return!1;return!0})}}}}function g0(r,t,e){t=H(t)&&{coordDimensions:t}||j({encodeDefine:r.getEncode()},t);var a=r.getSource(),i=Fu(a,t).dimensions,n=new xr(i,r);return n.initData(a,e),n}var m0=(function(){function r(t,e){this._getDataWithEncodedVisual=t,this._getRawData=e}return r.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},r.prototype.containName=function(t){var e=this._getRawData();return e.indexOfName(t)>=0},r.prototype.indexOfName=function(t){var e=this._getDataWithEncodedVisual();return e.indexOfName(t)},r.prototype.getItemVisual=function(t,e){var a=this._getDataWithEncodedVisual();return a.getItemVisual(t,e)},r})(),bn=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Xe).models[0]},t.type="cartesian2dAxis",t})(Pe);Yn(bn,rc);var ff={show:!0,z:0,inverse:!1,name:"",nameLocation:"end",nameRotate:null,nameTruncate:{maxWidth:null,ellipsis:"...",placeholder:"."},nameTextStyle:{},nameGap:15,silent:!1,triggerEvent:!1,tooltip:{show:!1},axisPointer:{},axisLine:{show:!0,onZero:"auto",onZeroAxisIndex:null,lineStyle:{color:W.color.axisLine,width:1,type:"solid"},symbol:["none","none"],symbolSize:[10,15],breakLine:!0},axisTick:{show:!0,inside:!1,length:5,lineStyle:{width:1}},axisLabel:{show:!0,inside:!1,rotate:0,showMinLabel:null,showMaxLabel:null,margin:8,fontSize:12,color:W.color.axisLabel,textMargin:[0,3]},splitLine:{show:!0,showMinLine:!0,showMaxLine:!0,lineStyle:{color:W.color.axisSplitLine,width:1,type:"solid"}},splitArea:{show:!1,areaStyle:{color:[W.color.backgroundTint,W.color.backgroundTransparent]}},breakArea:{show:!0,itemStyle:{color:W.color.neutral00,borderColor:W.color.border,borderWidth:1,borderType:[3,3],opacity:.6},zigzagAmplitude:4,zigzagMinSpan:4,zigzagMaxSpan:20,zigzagZ:100,expandOnClick:!0},breakLabelLayout:{moveOverlap:"auto"}}
6,y0=_e({boundaryGap:!0,deduplication:null,jitter:0,jitterOverlap:!0,jitterMargin:2,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto",show:"auto"},axisLabel:{interval:"auto"}},ff),yo=_e({boundaryGap:[0,0],axisLine:{show:"auto"},axisTick:{show:"auto"},splitNumber:5,minorTick:{show:!1,splitNumber:5,length:3,lineStyle:{}},minorSplitLine:{show:!1,lineStyle:{color:W.color.axisMinorSplitLine,width:1}}},ff),_0=_e({splitNumber:6,axisLabel:{rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},yo),b0=fe({logBase:10},yo);const vf={category:y0,value:yo,time:_0,log:b0};function Xs(r,t,e,a){M(Ju,function(i,n){var o=_e(_e({},vf[n],!0),a,!0),s=(function(l){G(u,l);function u(){var c=l!==null&&l.apply(this,arguments)||this;return c.type=t+"Axis."+n,c}return u.prototype.mergeDefaultAndTheme=function(c,f){var v=Gh(this),h=v?$n(c):{},d=f.getTheme();_e(c,d.get(n+"Axis")),_e(c,this.getDefaultOption()),c.type=Ks(c),v&&Va(c,h,v)},u.prototype.optionUpdated=function(){var c=this.option;c.type==="category"&&(this.__ordinalMeta=sn.createByAxisModel(this))},u.prototype.getCategories=function(c){var f=this.option;if(f.type==="category")return c?f.data:this.__ordinalMeta.categories},u.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},u.prototype.updateAxisBreaks=function(c){return{breaks:[]}},u.type=t+"Axis."+n,u.defaultOption=o,u})(e);r.registerComponentModel(s)}),r.registerSubTypeDefaulter(t+"Axis",Ks)}function Ks(r){return r.type||(r.data?"category":"value")}var x0=(function(){function r(t){this.type="cartesian",this._dimList=[],this._axes={},this.name=t||""}return r.prototype.getAxis=function(t){return this._axes[t]},r.prototype.getAxes=function(){return F(this._dimList,function(t){return this._axes[t]},this)},r.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),Ct(this.getAxes(),function(e){return e.scale.type===t})},r.prototype.addAxis=function(t){var e=t.dim;this._axes[e]=t,this._dimList.push(e)},r})(),wa=["x","y"];function Zs(r){return(r.type==="interval"||r.type==="time")&&!Ea(r)}var S0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=et,e.dimensions=wa,e}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var e=this.getAxis("x").scale,a=this.getAxis("y").scale;if(!(!Zs(e)||!Zs(a))){var i=Fa(e,null),n=Fa(a,null),o=this.dataToPoint([i[0],n[0]]),s=this.dataToPoint([i[1],n[1]]),l=i[1]-i[0],u=n[1]-n[0];if(!(!l||!u)){var c=(s[0]-o[0])/l,f=(s[1]-o[1])/u,v=o[0]-i[0]*c,h=o[1]-n[0]*f,d=this._transform=[c,0,0,f,v,h];this._invTransform=Au([],d)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(e){var a=this.getAxis("x"),i=this.getAxis("y");return a.contain(a.toLocalCoord(e[0]))&&i.contain(i.toLocalCoord(e[1]))},t.prototype.containData=function(e){return this.getAxis("x").containData(e[0])&&this.getAxis("y").containData(e[1])},t.prototype.containZone=function(e,a){var i=this.dataToPoint(e),n=this.dataToPoint(a),o=this.getArea(),s=new xt(i[0],i[1],n[0]-i[0],n[1]-i[1]);return o.intersect(s)},t.prototype.dataToPoint=function(e,a,i){i=i||[];var n=e[0],o=e[1];if(this._transform&&n!=null&&isFinite(n)&&o!=null&&isFinite(o))return qt(i,e,this._transform);var s=this.getAxis("x"),l=this.getAxis("y");return i[0]=s.toGlobalCoord(s.dataToCoord(n,a)),i[1]=l.toGlobalCoord(l.dataToCoord(o,a)),i},t.prototype.clampData=function(e,a){var i=this.getAxis("x").scale,n=this.getAxis("y").scale,o=i.getExtent(),s=n.getExtent(),l=i.parse(e[0]),u=n.parse(e[1]);return a=a||[],a[0]=Math.min(Math.max(Math.min(o[0],o[1]),l),Math.max(o[0],o[1])),a[1]=Math.min(Math.max(Math.min(s[0],s[1]),u),Math.max(s[0],s[1])),a},t.prototype.pointToData=function(e,a,i){if(i=i||[],this._invTransform)return qt(i,e,this._invTransform);var n=this.getAxis("x"),o=this.getAxis("y");return i[0]=n.coordToData(n.toLocalCoord(e[0]),a),i[1]=o.coordToData(o.toLocalCoord(e[1]),a),i},t.prototype.getOtherAxis=function(e){return this.getAxis(e.dim==="x"?"y":"x")},t.prototype.getArea=function(e){e=e||0;var a=this.getAxis("x").getGlobalExtent(),i=this.getAxis("y").getGlobalExtent(),n=Math.min(a[0],a[1])-e,o=Math.min(i[0],i[1])-e,s=Math.max(a[0],a[1])-n+e,l=Math.max(i[0],i[1])-o+e;return new xt(n,o,s,l)},t})(x0);function hf(r,t){var e=r.scale,a=r.model,i=pc(e,a,a.ecModel,r),n=Qt(e),o=Qt(t)?t.intervalStub:t,s=n?e.intervalStub:e,l=e.base,u=o.getTicks(),c=o.getTicks({expandToNicedExtent:!0}),f=u.length-1,v,h,d;if(f===1)v=h=0,d=1;else if(f===2){var p=St(u[0].value-u[1].value),m=St(u[1].value-u[2].value);v=h=0,p===m?d=2:(d=1,p<m?v=p/m:h=m/p)}else{var g=o.getConfig().interval;v=(1-(u[0].value-c[0].value)/g)%1,h=(1-(c[f].value-u[f].value)/g)%1,d=f-(v?1:0)-(h?1:0)}var y=i.zoomFixMM,_=y[0]||y[1],b=[i.fixMM[0]||_,i.fixMM[1]||_],S=e.getExtent(),w=s.getExtent(),x=Xu(w,b),I,T,C,A,k,D;function R($){for(var Y=50,z=0;z<Y&&!$();z++)C=n?C*he(l,2):op(C),A=It(C)}function E(){I=ee(D-C*v,A)}function N(){T=ee(k+C*h,A)}function P(){D=v?ee(I+C*v,A):I}function O(){k=h?ee(T-C*h,A):T}if(b[0]&&b[1]){I=x[0],T=x[1],C=(T-I)/(d+v+h);var V=r.getExtent(),U=St(V[1]-V[0]);A=Fh([T,I],U,.5/d),P(),O(),Ee(A)&&(C=ee(C,A))}else{var B=x[1]-x[0];C=n?he(nu(B),1):Vn(B/d,Hh),A=It(C),b[0]?(I=x[0],R(function(){if(P(),k=ee(D+C*d,A),N(),T>=x[1])return!0})):b[1]?(T=x[1],R(function(){if(O(),D=ee(k-C*d,A),E(),I<=x[0])return!0}
6)):R(function(){D=ee(ri(x[0]/C)*C,A),k=ee(Ar(x[1]/C)*C,A);var $=$t((k-D)/C);if($<=d){var Y=d-$,z=void 0,Z=i.incl0||n;if(Z&&x[0]===0)z=[0,Y];else if(Z&&x[1]===0)z=[Y,0];else{var Q=Ar(Y/2);z=Y%2===0?[Q,Q]:I+T<x[0]+x[1]?[Q,Q+1]:[Q+1,Q]}if(D=ee(D-C*z[0],A),k=ee(k+C*z[1],A),E(),N(),I<=x[0]&&T>=x[1])return!0}})}ec(e,b,w,[I,T],S,{interval:C,intervalCount:d,intervalPrecision:A,niceExtent:[D,k]})}var qs=[[3,1],[0,2]],w0=(function(){function r(t,e,a){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=wa,this._initCartesian(t,e,a),this.model=t}return r.prototype.getRect=function(){return this._rect},r.prototype.update=function(t,e){var a=this._axesMap;M(this._axesList,function(o){hc(o,cc);var s=o.scale;ze(s)&&s.setSortInfo(o.model.get("categorySortInfo"))});function i(o){for(var s=me(o),l=[],u=s.length-1;u>=0;u--){var c=o[+s[u]];c.__alignTo?l.push(c):ns(c)}M(l,function(f){C0(f,f.__alignTo)?ns(f):hf(f,f.__alignTo.scale)})}i(a.x),i(a.y);var n={};M(a.x,function(o){js(a,"y",o,n)}),M(a.y,function(o){js(a,"x",o,n)}),this.resize(this.model,e)},r.prototype.resize=function(t,e,a){var i=li(t,e),n=this._rect=jt(t.getBoxLayoutParams(),i.refContainer),o=this._axesMap,s=this._coordsList,l=t.get("containLabel");if(df(o,n),!a){var u=I0(n,s,o,l,e),c=void 0;if(l)c=tl(n.clone(),"axisLabel",null,n,o,u,i);else{var f=D0(t,n,i),v=f.outerBoundsRect,h=f.parsedOuterBoundsContain,d=f.outerBoundsClamp;v&&(c=tl(v,h,d,n,o,u,i))}pf(n,o,Ve.determine,null,c,i),M(this._coordsList,function(p){p.calcAffineTransform()})}},r.prototype.getAxis=function(t,e){var a=this._axesMap[t];if(a!=null)return a[e||0]},r.prototype.getAxes=function(){return this._axesList.slice()},r.prototype.getCartesian=function(t,e){if(t!=null&&e!=null){var a="x"+t+"y"+e;return this._coordsMap[a]}oe(t)&&(e=t.yAxisIndex,t=t.xAxisIndex);for(var i=0,n=this._coordsList;i<n.length;i++)if(n[i].getAxis("x").index===t||n[i].getAxis("y").index===e)return n[i]},r.prototype.getCartesians=function(){return this._coordsList.slice()},r.prototype.convertToPixel=function(t,e,a){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.dataToPoint(a):i.axis?i.axis.toGlobalCoord(i.axis.dataToCoord(a)):null},r.prototype.convertFromPixel=function(t,e,a){var i=this._findConvertTarget(e);return i.cartesian?i.cartesian.pointToData(a):i.axis?i.axis.coordToData(i.axis.toLocalCoord(a)):null},r.prototype._findConvertTarget=function(t){var e=t.seriesModel,a=t.xAxisModel||e&&e.getReferringComponents("xAxis",Xe).models[0],i=t.yAxisModel||e&&e.getReferringComponents("yAxis",Xe).models[0],n=t.gridModel,o=this._coordsList,s,l;if(e)s=e.coordinateSystem,De(o,s)<0&&(s=null);else if(a&&i)s=this.getCartesian(a.componentIndex,i.componentIndex);else if(a)l=this.getAxis("x",a.componentIndex);else if(i)l=this.getAxis("y",i.componentIndex);else if(n){var u=n.coordinateSystem;u===this&&(s=this._coordsList[0])}return{cartesian:s,axis:l}},r.prototype.containPoint=function(t){var e=this._coordsList[0];if(e)return e.containPoint(t)},r.prototype._initCartesian=function(t,e,a){var i=this,n=this,o={left:!1,right:!1,top:!1,bottom:!1},s={x:{},y:{}},l={x:0,y:0};if(e.eachComponent("xAxis",u("x"),this),e.eachComponent("yAxis",u("y"),this),!l.x||!l.y){this._axesMap={},this._axesList=[];return}this._axesMap=s,M(s.x,function(c,f){M(s.y,function(v,h){var d="x"+f+"y"+h,p=new S0(d);p.master=i,p.model=t,i._coordsMap[d]=p,i._coordsList.push(p),p.addAxis(c),p.addAxis(v)})}),Qs(s.x),Qs(s.y);function u(c){return function(f,v){if(A0(f,t)){var h=f.get("position");c==="x"?h!=="top"&&h!=="bottom"&&(h=o.bottom?"top":"bottom"):h!=="left"&&h!=="right"&&(h=o.left?"right":"left"),o[h]=!0;var d=yp(f),p=new dy(c,_p(f,d),[0,0],d,h);p.onBand=tc(p.scale,f),p.inverse=f.get("inverse"),f.axis=p,p.model=f,p.grid=n,p.index=v,n._axesList.push(p),s[c][v]=
6p,l[c]++}}}},r.prototype.getTooltipAxes=function(t){var e=[],a=[];return M(this.getCartesians(),function(i){var n=t!=null&&t!=="auto"?i.getAxis(t):i.getBaseAxis(),o=i.getOtherAxis(n);De(e,n)<0&&e.push(n),De(a,o)<0&&a.push(o)}),{baseAxes:e,otherAxes:a}},r.create=function(t,e){var a=[];return t.eachComponent("grid",function(i,n){var o=new r(i,t,e);o.name="grid_"+n,o.resize(i,e,!0),i.coordinateSystem=o,a.push(o),M(o._axesList,function(s){Fp(s,r.dimIdxMap)})}),t.eachSeries(function(i){var n,o;Wh({targetModel:i,coordSysType:et,coordSysProvider:s});function s(){var l=Py(i),u=l.xAxisModel,c=l.yAxisModel;n=u.axis,o=c.axis;var f=u.getCoordSysModel(),v=f.coordinateSystem;return v.getCartesian(u.componentIndex,c.componentIndex)}n&&o&&(cn(n,i,et),cn(o,i,et))},this),a},r.dimensions=wa,r.dimIdxMap=Zn(wa),r})();function A0(r,t){return r.getCoordSysModel()===t}function js(r,t,e,a){e.getAxesOnZeroOf=function(){return n?[n]:[]};var i=r[t],n,o=e.model,s=o.get(["axisLine","onZero"]),l=o.get(["axisLine","onZeroAxisIndex"]);if(!s)return;if(l!=null)Js(s,i[l])&&(n=i[l]);else for(var u in i)if(ti(i,u)&&Js(s,i[u])&&!a[c(i[u])]){n=i[u];break}n&&(a[c(n)]=!0);function c(f){return f.dim+"_"+f.index}}function Js(r,t){if(!t)return!1;var e=t.scale,a=bp(e,0),i=t&&t.type!=="category"&&t.type!=="time"&&a!==ln;return i&&r==="auto"&&Ap(t)&&(i=!1),i}function Qs(r){for(var t=me(r),e,a=[],i=t.length-1;i>=0;i--){var n=r[+t[i]];Yu(n.scale)&&Ip(n.model,n.type)==null&&(n.model.get("alignTicks")&&n.model.get("interval")==null?a.push(n):e=n)}e||(e=a.pop()),e&&M(a,function(o){o.__alignTo=e})}function C0(r,t){return Ea(r.scale)||Ea(t.scale)||t.scale.getTicks().length<2}function T0(r,t){var e=r.getExtent(),a=e[0]+e[1];r.toGlobalCoord=r.dim==="x"?function(i){return i+t}:function(i){return a-i+t},r.toLocalCoord=r.dim==="x"?function(i){return i-t}:function(i){return a-i+t}}function df(r,t){M(r.x,function(e){return el(e,t.x,t.width)}),M(r.y,function(e){return el(e,t.y,t.height)})}function el(r,t,e){var a=[0,e],i=r.inverse?1:0;r.setExtent(a[i],a[1-i]),T0(r,t)}function tl(r,t,e,a,i,n,o){pf(a,i,Ve.estimate,t,!1,o);var s=[0,0,0,0];u(0),u(1),c(a,0,NaN),c(a,1,NaN);var l=Xn(s,function(v){return v>0})==null;return tn(a,s,!0,!0,e),df(i,a),l;function u(v){M(i[Nt[v]],function(h){if(kr(h.model)){var d=n.ensureRecord(h.model),p=d.labelInfoList;if(p)for(var m=0;m<p.length;m++){var g=p[m],y=h.scale.normalize(Fr(h.scale,tr(g.label).labelInfo.tick));y=v===1?1-y:y,c(g.rect,v,y),c(g.rect,1-v,NaN)}var _=d.nameLayout;if(_){var y=er(d.nameLocation)?.5:NaN;c(_.rect,v,y),c(_.rect,1-v,NaN)}}})}function c(v,h,d){var p=r[Nt[h]]-v[Nt[h]],m=v[Ba[h]]+v[Nt[h]]-(r[Ba[h]]+r[Nt[h]]);p=f(p,1-d),m=f(m,d);var g=qs[h][0],y=qs[h][1];s[g]=he(s[g],p),s[y]=he(s[y],m)}function f(v,h){return v>0&&!Ma(h)&&h>1e-4&&(v/=h),v}}function I0(r,t,e,a,i){var n=new Qc(M0);return M(e,function(o){return M(o,function(s){if(kr(s.model)){var l=!a;s.axisBuilder=Ey(r,t,s.model,i,n,l)}})}),n}function pf(r,t,e,a,i,n){var o=e===Ve.determine;M(t,function(u){return M(u,function(c){kr(c.model)&&(Ry(c.axisBuilder,r,c.model),c.axisBuilder.build(o?{axisTickLabelDetermine:!0}:{axisTickLabelEstimate:!0},{noPxChange:i}))})});var s={x:0,y:0};l(0),l(1);function l(u){s[Nt[1-u]]=r[Ba[u]]<=n.refContainer[Ba[u]]*.5?0:1-u===1?2:1}M(t,function(u,c){return M(u,function(f){kr(f.model)&&((a==="all"||o)&&f.axisBuilder.build({axisName:!0},{nameMarginLevel:s[c]}),o&&f.axisBuilder.build({axisLine:!0}))})})}function D0(r,t,e){var a,i=r.get("outerBoundsMode",!0);i==="same"?a=t.clone():(i==null||i==="auto")&&(a=jt(r.get("outerBounds",!0)||of,e.refContainer));var n=r.get("outerBoundsContain",!0),o;n==null||n==="auto"||De(["all","axisLabel"],n)<0?o="all":o=n;var s=[Bo(J(r.get("outerBoundsClampWidth",!0),qa[0]),t.width),Bo(J(r.get("outerBoundsClampHeight",!0),qa[1]),t.height)];return{outerBoundsRect:a,parsedOuterBoundsContain:o,outerBoundsClamp:s}}var M0=function(r,t,e,a,i,n){var o=e.axis.dim==="x"?"y":"x";ef(r,t,e,a,i,n),er(r.nameLocation)||M(t.recordMap[o],function(s){s&&s.labelInfoList&&s.dirVec&&rf(s.labelInfoList,s.dirVec,a,i)})};function L0(r,t){var e={axesInfo:{},seriesInvolved:!1,coordSysAxesInfo:{},coordSysMap:{}};return k0(e,r,t),e.seriesInvolved&&P0(e,r),e}function k0(r,t,e){var a=t.getComponent("tooltip"),i=t.getComponent("axisPointer"),n=i.get("link",!0)||[],o=[];M(e.getCoordinateSystems(),function(s){if(!s.axisPointerEnabled)return;var l=Er(s.model),u=r.coordSysAxesInfo[l]={};r.coordSysMap[l]=s;var c=s.model,f=c.getModel("tooltip",a);if(M(s.getAxes(),ne(p,!1,null)),s.getTooltipAxes&&a&&f.get("show")){var v=f.get("trigger")==="axis",h=f.get(["axisPointer","type"])==="cross",d=s.getTooltipAxes(f.get(["axisPointer","axis"]));(v||h)&&M(d.baseAxes,ne(p,h?"cross":!0,v)),h&&M(d.otherAxes,ne(p,"cross",!1))}function p(m,g,y){var _=y.model.getModel("axisPointer",i),b=_.get("show");if(!(!b||b==="auto"&&!m&&!xn(_))){g==null&&(g=_.get("triggerTooltip")),_=m?O0(y,f,i,t,m,g):_;var S=_.get("snap"),w=_.get("triggerEmphasis"),x=Er(y.model),I=g||S||y.type==="category",T=r.axesInfo[x]={key:x,axis:y,coordSys:s,axisPointerModel:_,triggerTooltip:g,triggerEmphasis:w,involveSeries:I,snap:S,useHandle:xn(_),seriesModels:[],linkGroup:null};u[x]=T,r.seriesInvolved=r.seriesInvolved||I;var C=E0(n,y);if(C!=null){var A=o[C]||(o[C]={axesInfo:{}});A.axesInfo[x]=T,A.mapper=n[C].mapper,T.linkGroup=A}}}})}function O0(r,t,e,a,i,n){var o=t.getModel("axisPointer"),s=["type","snap","lineStyle","shadowStyle","label","animation","animationDurationUpdate","animationEasingUpdate","z"],l={};M(s,function(v){l[v]=ae(o.get(v))}),l.snap=r.type!=="category"&&!!n,o.get("type")==="cross"&&(l.type="line");var u=l.label||(l.label={});if(u.show==null&&(u.show=!1),i==="cross"){var c=o.get(["label","show"]);if(u.show=c??!0,!n){var f=l.lineStyle=o.get("crossStyle");f&&fe(u,f.textStyle)}}return r.model.getModel("axisPointer",new Ke(l,e,a))}function P0(r,t){t.eachSeries(function(e){var a=e.coordinateSystem,i=e.get(["tooltip","trigger"],!0),n=e.get(["tooltip","show"],!0);!a||!a.model||i==="none"||i===!1||i==="item"||n===!1||e.get(["axisPointer","show"],!0)===!1||M(r.coordSysAxesInfo[Er(a.model)],function(o){var s=o.axis;a.getAxis(s.dim)===s&&(o.seriesModels.push(e),o.seriesDataCount==null&&(o.seriesDataCount=0),o.seriesDataCount+=e.getData().count())})})}function E0(r,t){for(var e=t.model,a=t.dim,i=0;i<r.length;i++){var n=r[i]||{};
6if(Vi(n[a+"AxisId"],e.id)||Vi(n[a+"AxisIndex"],e.componentIndex)||Vi(n[a+"AxisName"],e.name))return i}}function Vi(r,t){return r==="all"||H(r)&&De(r,t)>=0||r===t}function R0(r){var t=_o(r);if(t){var e=t.axisPointerModel,a=t.axis.scale,i=e.option,n=e.get("status"),o=e.get("value");o!=null&&(o=a.parse(o));var s=xn(e);n==null&&(i.status=s?"show":"hide");var l=a.getExtent();(o==null||o>l[1])&&(o=l[1]),o<l[0]&&(o=l[0]),i.value=o,s&&(i.status=t.axis.scale.isBlank()?"hide":"show")}}function _o(r){var t=(r.ecModel.getComponent("axisPointer")||{}).coordSysAxesInfo;return t&&t.axesInfo[Er(r)]}function N0(r){var t=_o(r);return t&&t.axisPointerModel}function xn(r){return!!r.get(["handle","show"])}function Er(r){return r.type+"||"+r.id}var rl={},gf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i,n){this.axisPointerClass&&R0(e),r.prototype.render.apply(this,arguments),this._doUpdateAxisPointerClass(e,i,!0)},t.prototype.updateAxisPointer=function(e,a,i,n){this._doUpdateAxisPointerClass(e,i,!1)},t.prototype.remove=function(e,a){var i=this._axisPointer;i&&i.remove(a)},t.prototype.dispose=function(e,a){this._disposeAxisPointer(a),r.prototype.dispose.apply(this,arguments)},t.prototype._doUpdateAxisPointerClass=function(e,a,i){var n=t.getAxisPointerClass(this.axisPointerClass);if(n){var o=N0(e);o?(this._axisPointer||(this._axisPointer=new n)).render(e,o,a,i):this._disposeAxisPointer(a)}},t.prototype._disposeAxisPointer=function(e){this._axisPointer&&this._axisPointer.dispose(e),this._axisPointer=null},t.registerAxisPointerClass=function(e,a){rl[e]=a},t.getAxisPointerClass=function(e){return e&&rl[e]},t.type="axis",t})(We),Sn=ge();function V0(r,t,e,a){var i=e.axis;if(!i.scale.isBlank()){var n=e.getModel("splitArea"),o=n.getModel("areaStyle"),s=o.get("color"),l=a.coordinateSystem.getRect(),u=i.getTicksCoords({tickModel:n,breakTicks:"none",pruneByBreak:"preserve_extent_bound"});if(u.length){var c=s.length,f=Sn(r).splitAreaColors,v=se(),h=0;if(f)for(var d=0;d<u.length;d++){var p=f.get(u[d].tickValue);if(p!=null){h=(p+(c-1)*d)%c;break}}var m=i.toGlobalCoord(u[0].coord),g=o.getAreaStyle();s=H(s)?s:[s];for(var d=1;d<u.length;d++){var y=i.toGlobalCoord(u[d].coord),_=void 0,b=void 0,S=void 0,w=void 0;i.isHorizontal()?(_=m,b=l.y,S=y-_,w=l.height,m=_+S):(_=l.x,b=m,S=l.width,w=y-b,m=b+w);var x=u[d-1].tickValue;x!=null&&v.set(x,h),t.add(new Ce({anid:x!=null?"area_"+x:null,shape:{x:_,y:b,width:S,height:w},style:fe({fill:s[h]},g),autoBatch:!0,silent:!0})),h=(h+1)%c}Sn(r).splitAreaColors=v}}}function B0(r){Sn(r).splitAreaColors=null}var z0=["splitArea","splitLine","minorSplitLine","breakArea"],mf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.axisPointerClass="CartesianAxisPointer",e}return t.prototype.render=function(e,a,i,n){this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new le,this.group.add(this._axisGroup),!!kr(e)){this._axisGroup.add(e.axis.axisBuilder.group),M(z0,function(l){e.get([l,"show"])&&G0[l](this,this._axisGroup,e,e.getCoordSysModel(),i)},this);var s=n&&n.type==="changeAxisOrder"&&n.isInitSort;s||Uh(o,this._axisGroup,e),r.prototype.render.call(this,e,a,i,n)}},t.prototype.remove=function(){B0(this)},t.type="cartesianAxis",t})(gf),G0={splitLine:function(r,t,e,a,i){var n=e.axis;if(!n.scale.isBlank()){var o=e.getModel("splitLine"),s=o.getModel("lineStyle"),l=s.get("color"),u=o.get("showMinLine")!==!1,c=o.get("showMaxLine")!==!1;l=H(l)?l:[l];for(var f=a.coordinateSystem.getRect(),v=n.isHorizontal(),h=0,d=n.getTicksCoords({tickModel:o,breakTicks:"none",pruneByBreak:"preserve_extent_bound"}),p=[],m=[],g=s.getLineStyle(),y=0;y<d.length;y++){var _=n.toGlobalCoord(d[y].coord);if(!(y===0&&!u||y===d.length-1&&!c)){var b=d[y].tickValue;v?(p[0]=_,p[1]=f.y,m[0]=_,m[1]=f.y+f.height):(p[0]=f.x,p[1]=_,m[0]=f.x+f.width,m[1]=_);var S=h++%l.length,w=new Dr({anid:b!=null?"line_"+b:null,autoBatch:!0,shape:{x1:p[0],y1:p[1],x2:m[0],y2:m[1]},style:fe({stroke:l[S]},g),silent:!0});Ra(w.shape,g.lineWidth),t.add(w)}}}},minorSplitLine:function(r,t,e,a,i){var n=e.axis,o=e.getModel("minorSplitLine"),s=o.getModel("lineStyle"),l=a.coordinateSystem.getRect(),u=n.isHorizontal(),c=n.getMinorTicksCoords();if(c.length)for(var f=[],v=[],h=s.getLineStyle(),d=0;d<c.length;d++)for(var p=0;p<c[d].length;p++){var m=n.toGlobalCoord(c[d][p].coord);u?(f[0]=m,f[1]=l.y,v[0]=m,v[1]=l.y+l.height):(f[0]=l.x,f[1]=m,v[0]=l.x+l.width,v[1]=m);var g=new Dr({anid:"minor_line_"+c[d][p].tickValue,autoBatch:!0,shape:{x1:f[0],y1:f[1],x2:v[0],y2:v[1]},style:h,silent:!0});Ra(g.shape,h.lineWidth),t.add(g)}},splitArea:function(r,t,e,a,i){V0(r,t,e,a)},breakArea:function(r,t,e,a,i){e.axis.scale}},yf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="xAxis",t})(mf),F0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=yf.type,e}return t.type="yAxis",t})(mf),H0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="grid",e}return t.prototype.render=function(e,a){this.group.removeAll(),e.get("show")&&this.group.add(new Ce({shape:e.coordinateSystem.getRect(),style:fe({fill:e.get("backgroundColor")},e.getItemStyle()),silent:!0,z2:-1}
6))},t.type="grid",t})(We),al={offset:0};function W0(r){r.registerComponentView(H0),r.registerComponentModel(Hy),r.registerCoordinateSystem("cartesian2d",w0),Xs(r,"x",bn,al),Xs(r,"y",bn,al),r.registerComponentView(yf),r.registerComponentView(F0),r.registerPreprocessor(function(t){t.xAxis&&t.yAxis&&!t.grid&&(t.grid={})})}function U0(r){var t=r.polar;if(t){H(t)||(t=[t]);var e=[];M(t,function(a,i){a.indicator?(a.type&&!a.shape&&(a.shape=a.type),r.radar=r.radar||[],H(r.radar)||(r.radar=[r.radar]),r.radar.push(a)):e.push(a)}),r.polar=e}M(r.series,function(a){a&&a.type==="radar"&&a.polarIndex&&(a.radarIndex=a.polarIndex)})}var Rr="radar",$0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.hasSymbolVisual=!0,e}return t.prototype.init=function(e){r.prototype.init.apply(this,arguments),this.legendVisualProvider=new m0(te(this.getData,this),te(this.getRawData,this))},t.prototype.getInitialData=function(e,a){return g0(this,{generateCoord:"indicator_",generateCoordCount:1/0})},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.coordinateSystem,s=o.getIndicatorAxes(),l=this.getData().getName(e),u=l===""?this.name:l,c=$h(this,e);return Jt("section",{header:u,sortBlocks:!0,blocks:F(s,function(f){var v=n.get(n.mapDimension(f.dim),e);return Jt("nameValue",{markerType:"subItem",markerColor:c,name:f.name,value:v,sortParam:v})})})},t.prototype.getTooltipPosition=function(e){if(e!=null){for(var a=this.getData(),i=this.coordinateSystem,n=a.getValues(F(i.dimensions,function(u){return a.mapDimension(u)}),e),o=0,s=n.length;o<s;o++)if(!isNaN(n[o])){var l=i.getIndicatorAxes();return i.coordToPoint(l[o].dataToCoord(n[o]),o)}}},t.type="series."+Rr,t.dependencies=["radar"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"radar",legendHoverLink:!0,radarIndex:0,lineStyle:{width:2,type:"solid",join:"round"},label:{position:"top"},symbolSize:8},t})(Yt),Y0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=Rr,e}return t.prototype.render=function(e,a,i){var n=e.coordinateSystem,o=this.group,s=e.getData(),l=this._data;function u(v,h){var d=v.getItemVisual(h,"symbol")||"circle";if(d!=="none"){var p=oi(v.getItemVisual(h,"symbolSize")),m=Ue(d,-1,-1,2,2),g=v.getItemVisual(h,"symbolRotate")||0;return m.attr({style:{strokeNoScale:!0},z2:100,scaleX:p[0]/2,scaleY:p[1]/2,rotation:g*Math.PI/180||0}),m}}function c(v,h,d,p,m,g){d.removeAll();for(var y=0;y<h.length-1;y++){var _=u(p,m);_&&(_.__dimIdx=y,v[y]?(_.setPosition(v[y]),Tu[g?"initProps":"updateProps"](_,{x:h[y][0],y:h[y][1]},e,m)):_.setPosition(h[y]),d.add(_))}}function f(v){return F(v,function(h){return[n.cx,n.cy]})}s.diff(l).add(function(v){var h=s.getItemLayout(v);if(h){var d=new Kn,p=new Cu,m={shape:{points:h}};d.shape.points=f(h),p.shape.points=f(h),Re(d,m,e,v),Re(p,m,e,v);var g=new le,y=new le;g.add(p),g.add(d),g.add(y),c(p.shape.points,h,y,s,v,!0),s.setItemGraphicEl(v,g)}}).update(function(v,h){var d=l.getItemGraphicEl(h),p=d.childAt(0),m=d.childAt(1),g=d.childAt(2),y={shape:{points:s.getItemLayout(v)}};y.shape.points&&(c(p.shape.points,y.shape.points,g,s,v,!1),Oa(m),Oa(p),xe(p,y,e),xe(m,y,e),s.setItemGraphicEl(v,d))}).remove(function(v){o.remove(l.getItemGraphicEl(v))}).execute(),s.eachItemGraphicEl(function(v,h){var d=s.getItemModel(h),p=v.childAt(0),m=v.childAt(1),g=v.childAt(2),y=s.getItemVisual(h,"style"),_=y.fill;o.add(v),p.useStyle(fe(d.getModel("lineStyle").getLineStyle(),{fill:"none",stroke:_})),Tr(p,d,"lineStyle"),Tr(m,d,"areaStyle");var b=d.getModel("areaStyle"),S=b.isEmpty()&&b.parentModel.isEmpty();m.ignore=S,M(["emphasis","select","blur"],function(x){var I=d.getModel([x,"areaStyle"]),T=I.isEmpty()&&I.parentModel.isEmpty();m.ensureState(x).ignore=T&&S;var C=d.getModel([x,"lineStyle"]).getLineStyle();p.ensureState(x).style=C;var A=I.getAreaStyle();m.ensureState(x).style=A;var k=d.getModel([x,"itemStyle"]).getItemStyle();g.eachChild(function(D){D.ensureState(x).style=ae(k)})}),m.useStyle(fe(d.getModel("areaStyle").getAreaStyle(),{fill:_,opacity:.7,decal:y.decal}));var w=d.getModel("emphasis");g.eachChild(function(x){if(x instanceof zr){var I=x.style;x.useStyle(j({image:I.image,x:I.x,y:I.y,width:I.width,height:I.height},y))}else x.useStyle(y),x.setColor(_),x.style.strokeNoScale=!0;var T=s.getStore().get(s.getDimensionIndex(x.__dimIdx),h);(T==null||isNaN(T))&&(T=""),nr(x,Dt(d),{labelFetcher:s.hostModel,labelDataIndex:h,labelDimIndex:x.__dimIdx,defaultText:T,inheritColor:_,defaultOpacity:y.opacity})}),Xt(v,w.get("focus"),w.get("blurScope"),w.get("disabled"))}),this._data=s},t.prototype.remove=function(){this.group.removeAll(),this._data=null},t.type=Rr,t})(wt),pr=vf.value,wr="radar",_f=wr,X0=wr,bf=5;function na(r,t){return fe({show:t},r)}var K0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){var e=this.get("boundaryGap"),a=this.get("splitNumber"),i=this.get("clockwise"),n=this.get("scale"),o=this.get("axisLine"),s=this.get("axisTick"),l=this.get("axisLabel"),u=this.get("axisName"),c=this.get(["axisName","show"]),f=this.get(["axisName","formatter"]),v=this.get("axisNameGap"),h=this.get("triggerEvent"),d=F(this.get("indicator")||[],function(p){p.max!=null&&p.max>0&&!p.min?p.min=0:p.min!=null&&p.min<0&&!p.max&&(p.max=0);var m=u;p.color!=null&&(m=fe({color:p.color},u));var g=_e(ae(p),{boundaryGap:e,splitNumber:a,clockwise:i,scale:n,axisLine
6:o,axisTick:s,axisLabel:l,name:p.text,showName:c,nameLocation:"end",nameGap:v,nameTextStyle:m,triggerEvent:h},!1);if(q(f)){var y=g.name;g.name=f.replace("{value}",y??"")}else re(f)&&(g.name=f(g.name,g));var _=new Ke(g,null,this.ecModel);return Yn(_,rc.prototype),_.mainType="radar",_.componentIndex=this.componentIndex,_.uid=Yh("ec_radar"),_},this);this._indicatorModels=d},t.prototype.getIndicatorModels=function(){return this._indicatorModels},t.type=_f,t.defaultOption={z:0,center:["50%","50%"],radius:"50%",startAngle:90,clockwise:!1,axisName:{show:!0,color:W.color.axisLabel},boundaryGap:[0,0],splitNumber:bf,axisNameGap:15,scale:!1,shape:"polygon",axisLine:_e({lineStyle:{color:W.color.neutral20}},pr.axisLine),axisLabel:na(pr.axisLabel,!1),axisTick:na(pr.axisTick,!1),splitLine:na(pr.splitLine,!0),splitArea:na(pr.splitArea,!0),indicator:[]},t})(Pe),Z0=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=this.group;n.removeAll(),this._buildAxes(e,i),this._buildSplitLineAndArea(e)},t.prototype._buildAxes=function(e,a){var i=e.coordinateSystem,n=i.getIndicatorAxes(),o=F(n,function(s){var l=s.model.get("showName")?s.name:"",u=new Qe(s.model,a,{axisName:l,position:[i.cx,i.cy],rotation:s.angle,labelDirection:-1,tickDirection:-1,nameDirection:1});return u});M(o,function(s){s.build(),this.group.add(s.group)},this)},t.prototype._buildSplitLineAndArea=function(e){var a=e.coordinateSystem,i=a.getIndicatorAxes();if(!i.length)return;var n=e.get("shape"),o=e.getModel("splitLine"),s=e.getModel("splitArea"),l=o.getModel("lineStyle"),u=s.getModel("areaStyle"),c=o.get("show"),f=s.get("show"),v=l.get("color"),h=u.get("color"),d=H(v)?v:[v],p=H(h)?h:[h],m=[],g=[];function y(E,N,P){var O=P%N.length;return E[O]=E[O]||[],O}if(n==="circle")for(var _=i[0].getTicksCoords(),b=a.cx,S=a.cy,w=0;w<_.length;w++){if(c){var x=y(m,d,w);m[x].push(new Xh({shape:{cx:b,cy:S,r:_[w].coord}}))}if(f&&w<_.length-1){var x=y(g,p,w);g[x].push(new Kh({shape:{cx:b,cy:S,r0:_[w].coord,r:_[w+1].coord}}))}}else for(var I,T=F(i,function(E,N){var P=E.getTicksCoords();return I=I==null?P.length-1:Math.min(P.length-1,I),F(P,function(O){return a.coordToPoint(O.coord,N)})}),C=[],w=0;w<=I;w++){for(var A=[],k=0;k<i.length;k++)A.push(T[k][w]);if(A[0]&&A.push(A[0].slice()),c){var x=y(m,d,w);m[x].push(new Cu({shape:{points:A}}))}if(f&&C){var x=y(g,p,w-1);g[x].push(new Kn({shape:{points:A.concat(C)}}))}C=A.slice().reverse()}var D=l.getLineStyle(),R=u.getAreaStyle();M(g,function(E,N){this.group.add(zo(E,{style:fe({stroke:"none",fill:p[N%p.length]},R),silent:!0}))},this),M(m,function(E,N){this.group.add(zo(E,{style:fe({fill:"none",stroke:d[N%d.length]},D),silent:!0}))},this)},t.type="radar",t})(We),q0=(function(r){G(t,r);function t(e,a,i){var n=r.call(this,e,a,i)||this;return n.type="value",n.angle=0,n.name="",n}return t})(xc),j0=(function(){function r(t,e,a){this.type=wr,this.dimensions=[],this._model=t,this._indicatorAxes=F(t.getIndicatorModels(),function(i,n){var o="indicator_"+n,s=new q0(o,new ht);return s.name=i.get("name"),s.model=i,i.axis=s,this.dimensions.push(o),s},this),this.resize(t,a)}return r.prototype.getIndicatorAxes=function(){return this._indicatorAxes},r.prototype.dataToPoint=function(t,e){var a=this._indicatorAxes[e];return this.coordToPoint(a.dataToCoord(t),e)},r.prototype.coordToPoint=function(t,e){var a=this._indicatorAxes[e],i=a.angle,n=this.cx+t*Math.cos(i),o=this.cy-t*Math.sin(i);return[n,o]},r.prototype.pointToData=function(t){var e=t[0]-this.cx,a=t[1]-this.cy,i=Math.sqrt(e*e+a*a);e/=i,a/=i;for(var n=Math.atan2(-a,e),o=1/0,s,l=-1,u=0;u<this._indicatorAxes.length;u++){var c=this._indicatorAxes[u],f=Math.abs(n-c.angle);f<o&&(s=c,l=u,o=f)}return[l,+(s&&s.coordToData(i))]},r.prototype.resize=function(t,e){var a=li(t,e).refContainer,i=t.get("center"),n=t.get("clockwise")||!1,o=Math.min(a.width,a.height)/2;this.cx=Se(i[0],a.width)+a.x,this.cy=Se(i[1],a.height)+a.y,this.startAngle=t.get("startAngle")*Math.PI/180;var s=t.get("radius");(q(s)||$e(s))&&(s=[0,s]),this.r0=Se(s[0],o),this.r=Se(s[1],o);var l=n?-1:1;M(this._indicatorAxes,function(u,c){u.setExtent(this.r0,this.r);var f=this.startAngle+l*c*Math.PI*2/this._indicatorAxes.length;f=Math.atan2(Math.sin(f),Math.cos(f)),u.angle=f},this)},r.prototype.update=function(t,e){var a=this._indicatorAxes,i=this._model,n=fi(i.get("splitNumber"),bf),o=new ht;o.setExtent(0,n),o.setConfig({interval:1}),M(a,function(s){hc(s,cc),hf(s,o)})},r.prototype.convertToPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.convertFromPixel=function(t,e,a){return console.warn("Not implemented."),null},r.prototype.containPoint=function(t){return console.warn("Not implemented."),!1},r.create=function(t,e){var a=[];return t.eachComponent(_f,function(i){var n=new r(i,t,e);a.push(n),i.coordinateSystem=n}),t.eachSeriesByType(X0,function(i){if(i.get("coordinateSystem")===wr){var n=i.coordinateSystem=a[i.get("radarIndex")||0];n&&M(n.getIndicatorAxes(),function(o){cn(o,i,wr)})}}),a},r.dimensions=[],r})();function xf(r){r.registerCoordinateSystem("radar",j0),r.registerComponentModel(K0),r.registerComponentView(Z0),r.registerVisual({seriesType:"radar",reset:function(t){var e=t.getData();e.each(function(a){e.setItemVisual(a,"legendIcon","roundRect")}),e.setVisual("legendIcon","roundRect")}})}var J0=Zh(Rr,Q0);function Q0(r){r.eachSeriesByType(Rr,function(t){var e=t.getData(),a=[],i=t.coordinateSystem;if(i){var n=i.getIndicatorAxes();M(n,function(o,s){e.each(e.mapDimension(n[s].dim),function(l,u){a[u]=a[u]||[];var c=i.dataToPoint(l,s);a[u][s]=il(c)?c:nl(i)})}),e.each(function(o){var s=Xn(a[o],function(l){return il(l)})||nl(i);a[o].push(s.slice()),e.setItemLayout(o,a[o])})}})}function il(r){return!isNaN(r[0])&&!isNaN(r[1])}function nl(r){return[r.cx,r.cy]}function e_(r){Ne(xf),r.registerChartView(Y0),r.registerSeriesModel($0),r.registerLayout(J0),r.registerProcessor(p0("radar")),r.registerPreprocessor(U0)}var Nr=M,t_=oe,ja=-1,pe=(function(){function r(t){var e=t.mappingMethod,a=t.type,i=this.option=ae(t);this.type=a,this.mappingMethod=e,this._normalizeData=i_[e];var n=r.visualHandlers[a];this.applyVisual=n.applyVisual,this.getColorMapper=n.getColorMapper,this._normalizedToVisual=n._normalizedToVisual[e],e==="piecewise"?(Bi(i),r_(i)):e==="category"?i.categories?a_(i):Bi(i,!0):(an(e!=="linear"||i.dataExtent),Bi(i))}return r.prototype.mapValueToVisual=function(t){var e=this._normalizeData(t);return this._normalizedToVisual(e,t)},r.prototype.getNormalizer=function(){return te(this._normalizeData,this)},r.listVisualTypes=function(){return me(r.visualHandlers)},r.isValidType=function(t){return r.visualHandlers.hasOwnProperty(t)},r.eachVisual=function(t,e,a){oe(t)?M(t,e,a):e.call(a,t)},r.mapVisual=function(t,e,a){var i,n=H(t)?[]:oe(t)?{}:(i=!0,null);return r.eachVisual(t,function(o,s){var l=e.call(a,o,s);i?n=l:n[s]=l}),n},r.retrieveVisuals=function(t){var e={},a;return t&&Nr(r.visualHandlers,function(i,n){t.hasOwnProperty(n)&&(e[n]=t[n],a=!0)}),a?e:null},r.prepareVisualTypes=function(t){if(H(t))t=t.slice();else if(t_(t)){var e=[];Nr(t,function(a,i){e.push(i)}),t=e}else return[];return t.sort(function(a,i){return i==="color"&&a!=="color"&&a.indexOf("color")===0?1:-1}),t},r.dependsOn=function(t,e){return e==="color"?!!(t&&t.indexOf(e)===0):t===e},r.findPieceIndex=function(t,e,a){for(var i,n=1/0,o=0,s=e.length;o<s;o++){var l=e[o].value;if(l!=null){if(l===t||q(l)&&l===t+"")return o;a&&v(l,o)}}for(var o=0,s=e.length;o<s;o++){var u=e[o],c=u.interval,f=u.close;if(c){if(c[0]===-1/0){if(sa(f[1],t,c[1]))return o}else if(c[1]===1/0){if(sa(f[0],c[0],t))return o}else if(sa(f[0],c[0],t)&&sa(f[1],t,c[1]))return o;a&&v(c[0],o),a&&v(c[1],o)}}if(a)return t===1/0?e.length-1:t===-1/0?0:i;function v(h,d){var p=Math.abs(h-t);p<n&&(n=p,i=d)}},r.visualHandlers={color:{applyVisual:gr("color"),getColorMapper:function(){var t=this.option;return te(t.mappingMethod==="category"?function(e,a){return!a&&(e=this._normalizeData(e)),br.call(this,e)}:function(e,a,i){var n=!!i;return!a&&(e=this._normalizeData(e)),i=Si(e,t.parsedVisual,i),n?i:_a(i,"rgba")},this)},_normalizedToVisual:{linear:function(t){return _a(Si(t,this.option.parsedVisual),"rgba")},category:br,piecewise:function(t,e){var a=An.call(this,e);return a==null&&(a=_a(Si(t,this.option.parsedVisual),"rgba")),a},fixed:yt}},colorHue:oa(function(t,e){return wi(t,e)}),colorSaturation:oa(function(t,e){return wi(t,null,e)}),colorLightness:oa(function(t,e){return wi(t,null,null,e)}),colorAlpha:oa(function(t,e){return qh(t,e)}),decal:{applyVisual:gr("decal"),_normalizedToVisual:{linear:null,category:br,piecewise:null,fixed:null}},opacity:{applyVisual:gr("opacity"),_normalizedToVisual:wn([0,1])},liftZ:{applyVisual:gr("liftZ"),_normalizedToVisual:{linear:yt,category:yt,piecewise:yt,fixed:yt}},symbol:{applyVisual:function(t,e,a){var i=this.mapValueToVisual(t);a("symbol",i)},_normalizedToVisual:{linear:ol,category:br,piecewise:function(t,e){var a=An.call(this,e);return a==null&&(a=ol.call(this,t)),a},fixed:yt}},symbolSize:{applyVisual:gr("symbolSize"),_normalizedToVisual:wn([0,1])}},r})();function r_(r){var t=r.pieceList;r.hasSpecialVisual=!1,M(t,function(e,a){e.originIndex=a,e.visual!=null&&(r.hasSpecialVisual=!0)})}function a_(r){var t=r.categories,e=r.categoryMap={},a=r.visual;if(Nr(t,function(o,s){e[o]=s}),!H(a)){var i=[];oe(a)?Nr(a,function(o,s){var l=e[s];i[l??ja]=o}):i[ja]=a,a=Sf(r,i)}for(var n=t.length-1;n>=0;n--)a[n]==null&&(delete e[t[n]],t.pop())}function Bi(r,t){var e=r.visual,a=[];oe(e)?Nr(e,function(n){a.push(n)}):e!=null&&a.push(e);var i={color:1,symbol:1};!t&&a.length===1&&!i.hasOwnProperty(r.type)&&(a[1]=a[0]),Sf(r,a)}function oa(r){return{applyVisual:function(t,e,a){var i=this.mapValueToVisual(t);a("color",r(e("color"),i))},_normalizedToVisual:wn([0,1])}}function ol(r){var t=this.option.visual;return t[Math.round(tt(r,[0,1],[0,t.length-1],!0))]||{}}function gr(r){return function(t,e,a){a(r,this.mapValueToVisual(t))}}function br(r){var t=this.option.visual;return t[this.option.loop&&r!==ja?r%t.length:r]}function yt(){return this.option.visual[0]}function wn(r){return{linear:function(t){return tt(t,r,this.option.visual,!0)},category:br,piecewise:function(t,e){var a=An.call(this,e);return a==null&&(a=tt(t,r,this.option.visual,!0)),a},fixed:yt}}function An(r){var t=this.option,e=t.pieceList;if(t.hasSpecialVisual){var a=pe.findPieceIndex(r,e),i=e[a];if(i&&i.visual)return i.visual[this.type]}}function Sf(r,t){return r.visual=t,r.type==="color"&&(r.parsedVisual=F(t,function(e){var a=Iu(e);return a||[0,0,0,1]})),t}var i_={linear:function(r){return tt(r,this.option.dataExtent,[0,1],!0)},piecewise:function(r){var t=this.option.pieceList,e=pe.findPieceIndex(r,t,!0);if(e!=null)return tt(e,[0,t.length-1],[0,1],!0)},category:function(r){var t=this.option.categories?this.option.categoryMap[r]:r;return t??ja},fixed:Ut};function sa(r,t,e){return r?t<=e:t<e}var sl=Dr.prototype,zi=jh.prototype,wf=(function(){function r(){this.x1=0,this.y1=0,this.x2=0,this.y2=0,this.percent=1}return r})();(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t})(wf);function Gi(r){return isNaN(+r.cpx1)||isNaN(+r.cpy1)}var n_=(function(r){G(t,r);function t(e){var a=r.call(this,e)||this;
6return a.type="ec-line",a}return t.prototype.getDefaultStyle=function(){return{stroke:W.color.neutral99,fill:null}},t.prototype.getDefaultShape=function(){return new wf},t.prototype.buildPath=function(e,a){Gi(a)?sl.buildPath.call(this,e,a):zi.buildPath.call(this,e,a)},t.prototype.pointAt=function(e){return Gi(this.shape)?sl.pointAt.call(this,e):zi.pointAt.call(this,e)},t.prototype.tangentAt=function(e){var a=this.shape,i=Gi(a)?[a.x2-a.x1,a.y2-a.y1]:zi.tangentAt.call(this,e);return Du(i,i)},t})(ir),Fi=["fromSymbol","toSymbol"];function ll(r){return"_"+r+"Type"}function ul(r,t,e){var a=t.getItemVisual(e,r);if(!a||a==="none")return a;var i=t.getItemVisual(e,r+"Size"),n=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=oi(i),u=ni(o||0,l);return a+l+u+(n||"")+(s||"")}function cl(r,t,e){var a=t.getItemVisual(e,r);if(!(!a||a==="none")){var i=t.getItemVisual(e,r+"Size"),n=t.getItemVisual(e,r+"Rotate"),o=t.getItemVisual(e,r+"Offset"),s=t.getItemVisual(e,r+"KeepAspect"),l=oi(i),u=ni(o||0,l),c=Ue(a,-l[0]/2+u[0],-l[1]/2+u[1],l[0],l[1],null,s);return c.__specifiedRotation=n==null||isNaN(n)?void 0:+n*Math.PI/180||0,c.name=r,c}}function o_(r){var t=new n_({name:"line",subPixelOptimize:!0});return Cn(t.shape,r),t}function Cn(r,t){r.x1=t[0][0],r.y1=t[0][1],r.x2=t[1][0],r.y2=t[1][1],r.percent=1;var e=t[2];e?(r.cpx1=e[0],r.cpy1=e[1]):(r.cpx1=NaN,r.cpy1=NaN)}var s_=(function(r){G(t,r);function t(e,a,i){var n=r.call(this)||this;return n._createLine(e,a,i),n}return t.prototype._createLine=function(e,a,i){var n=e.hostModel,o=e.getItemLayout(a),s=e.getItemVisual(a,"z2"),l=o_(o);l.shape.percent=0,Re(l,{z2:J(s,0),shape:{percent:1}},n,a),this.add(l),M(Fi,function(u){var c=cl(u,e,a);this.add(c),this[ll(u)]=ul(u,e,a)},this),this._updateCommonStl(e,a,i)},t.prototype.updateData=function(e,a,i){var n=e.hostModel,o=this.childOfName("line"),s=e.getItemLayout(a),l={shape:{}};Cn(l.shape,s),xe(o,l,n,a),M(Fi,function(u){var c=ul(u,e,a),f=ll(u);if(this[f]!==c){this.remove(this.childOfName(u));var v=cl(u,e,a);this.add(v)}this[f]=c},this),this._updateCommonStl(e,a,i)},t.prototype.getLinePath=function(){return this.childAt(0)},t.prototype._updateCommonStl=function(e,a,i){var n=e.hostModel,o=this.childOfName("line"),s=i&&i.emphasisLineStyle,l=i&&i.blurLineStyle,u=i&&i.selectLineStyle,c=i&&i.labelStatesModels,f=i&&i.emphasisDisabled,v=i&&i.focus,h=i&&i.blurScope;if(!i||e.hasItemOption){var d=e.getItemModel(a),p=d.getModel("emphasis");s=p.getModel("lineStyle").getLineStyle(),l=d.getModel(["blur","lineStyle"]).getLineStyle(),u=d.getModel(["select","lineStyle"]).getLineStyle(),f=p.get("disabled"),v=p.get("focus"),h=p.get("blurScope"),c=Dt(d)}var m=e.getItemVisual(a,"style"),g=m.stroke;o.useStyle(m),o.style.fill=null,o.style.strokeNoScale=!0,o.ensureState("emphasis").style=s,o.ensureState("blur").style=l,o.ensureState("select").style=u,M(Fi,function(w){var x=this.childOfName(w);if(x){x.setColor(g),x.style.opacity=m.opacity;for(var I=0;I<Pa.length;I++){var T=Pa[I],C=o.getState(T);if(C){var A=C.style||{},k=x.ensureState(T),D=k.style||(k.style={});A.stroke!=null&&(D[x.__isEmptyBrush?"stroke":"fill"]=A.stroke),A.opacity!=null&&(D.opacity=A.opacity)}}x.markRedraw()}},this);var y=n.getRawValue(a);nr(this,c,{labelDataIndex:a,labelFetcher:{getFormattedLabel:function(w,x){return n.getFormattedLabel(w,x,e.dataType)}},inheritColor:g||W.color.neutral99,defaultOpacity:m.opacity,defaultText:(y==null?e.getName(a):isFinite(y)?ee(y,10):y)+""});var _=this.getTextContent();if(_){var b=c.normal;_.__align=_.style.align,_.__verticalAlign=_.style.verticalAlign,_.__position=b.get("position")||"middle";var S=b.get("distance");H(S)||(S=[S,S]),_.__labelDistance=S}this.setTextConfig({position:null,local:!0,inside:!1}),Xt(this,v,h,f)},t.prototype.highlight=function(){gu(this)},t.prototype.downplay=function(){mu(this)},t.prototype.updateLayout=function(e,a){this.childOfName("line").stopAnimation(),this.setLinePoints(e.getItemLayout(a))},t.prototype.setLinePoints=function(e){var a=this.childOfName("line");Cn(a.shape,e),a.dirty()},t.prototype.beforeUpdate=function(){var e=this,a=e.childOfName("fromSymbol"),i=e.childOfName("toSymbol"),n=e.getTextContent();if(!a&&!i&&(!n||n.ignore))return;for(var o=1,s=this.parent;s;)s.scaleX&&(o/=s.scaleX),s=s.parent;var l=e.childOfName("line");if(!this.__dirty&&!l.__dirty)return;var u=l.shape.percent,c=l.pointAt(0),f=l.pointAt(u),v=Jh([],f,c);Du(v,v);function h(C,A){var k=C.__specifiedRotation;if(k==null){var D=l.tangentAt(A);C.attr("rotation",(A===1?-1:1)*Math.PI/2-Math.atan2(D[1],D[0]))}else C.attr("rotation",k)}if(a&&(a.setPosition(c),h(a,0),a.scaleX=a.scaleY=o*u,a.markRedraw()),i&&(i.setPosition(f),h(i,1),i.scaleX=i.scaleY=o*u,i.markRedraw()),n&&!n.ignore){n.x=n.y=0,n.originX=n.originY=0;var d=void 0,p=void 0,m=n.__labelDistance,g=m[0]*o,y=m[1]*o,_=u/2,b=l.tangentAt(_),S=[b[1],-b[0]],w=l.pointAt(_);S[1]>0&&(S[0]=-S[0],S[1]=-S[1]);var x=b[0]<0?-1:1;if(n.__position!=="start"&&n.__position!=="end"){var I=-Math.atan2(b[1],b[0]);f[0]<c[0]&&(I=Math.PI+I),n.rotation=I}var T=void 0;switch(n.__position){case"insideStartTop":case"insideMiddleTop":case"insideEndTop":case"middle":T=-y,p="bottom";break;case"insideStartBottom":case"insideMiddleBottom":case"insideEndBottom":T=y,p="top";break;default:T=0,p="middle"}switch(n.__position){case"end":n.x=v[0]*g+f[0],n.y=v[1]*y+f[1],d=v[0]>.8?"left":v[0]<-.8?"right":"center",p=v[1]>.8?"top":v[1]<-.8?"bottom":"middle";break;case"start":n.x=-v[0]*g+c[0],n.y=-v[1]*y+c[1],d=v[0]>.8?"right":v[0]<-.8?"left":"center",p=v[1]>.8?"bottom":v[1]<-.8?"top":"middle";break;case"insideStartTop":case"insideStart":case"insideStartBottom":n.x=g*x+c[0],n.y=c[1]+T,d=b[0]<0?"right":"left",n.originX=-g*x,n.originY=-T;break;case"insideMiddleTop":case"insideMiddle":case"insideMiddleBottom":case"middle":n.x=w[0],n.y=w[1]+T,d="center",n.originY=-T;break;case"insideEndTop":case"insideEnd":case"insideEndBottom":n.x=-g*x+f[0],n.y=f[1]+T,d=b[0]>=0?"right":"left",n.originX=g*x,n.originY=-T;break}n.scaleX=n.scaleY=o,n.setStyle({verticalAlign:n.__verticalAlign||p,align:n.__align||d})}},t})(le),l_=(function(){function r(t){this.group=new le,this._LineCtor=t||s_}return r.prototype.updateData=function(t){var e=this;this._progressiveEls=null;var a=this,i=a.group,n=a._lineData;a._lineData=t,n||i.removeAll();var o=fl(t);t.diff(n).add(function(s){e._doAdd(t,s,o)}).update(function(s,l){e._doUpdate(n,t,l,s,o)}).remove(function(s){i.remove(n.getItemGraphicEl(s))}).execute()},r.prototype.updateLayout=function(){var t=this._lineData;t&&t.eachItemGraphicEl(function(e,a){e.updateLayout(t,a)},this)},r.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=fl(t),this._lineData=null,this.group.removeAll()},r.prototype.incrementalUpdate=function(t,e,a){this._progressiveEls=[];function i(l){!l.isGroup&&!u_(l)&&(l.incremental=a,l.ensureState("emphasis").hoverLayer=yu)}for(var n=t.start;n<t.end;n++){var o=e.getItemLayout(n);if(Hi(o)){var s=new this._LineCtor(e,n,this._seriesScope);s.traverse(i),this.group.add(s),e.setItemGraphicEl(n,s),this._progressiveEls.push(s)}}},r.prototype.remove=function(){this.group.removeAll()},r.prototype.eachRendered=function(t){Gn(this._progressiveEls||this.group,t)},r.prototype._doAdd=function(t,e,a){var i=t.getItemLayout(e);if(Hi(i)){var n=new this._LineCtor(t,e,a);t.setItemGraphicEl(e,n),this.group.add(n)}},r.prototype._doUpdate=function(t,e,a,i,n){var o=t.getItemGraphicEl(a);if(!Hi(e.getItemLayout(i))){this.group.remove(o);return}o?o.updateData(e,i,n):o=new this._LineCtor(e,i,n),e.setItemGraphicEl(i,o),this.group.add(o)},r})();function u_(r){return r.animators&&r.animators.length>0}function fl(r){var t=r.hostModel,e=t.getModel("emphasis");return{lineStyle:t.getModel("lineStyle").getLineStyle(),emphasisLineStyle:e.getModel(["lineStyle"]).getLineStyle(),blurLineStyle:t.getModel(["blur","lineStyle"]).getLineStyle(),selectLineStyle:t.getModel(["select","lineStyle"]).getLineStyle(),emphasisDisabled:e.get("disabled"),blurScope:e.get("blurScope"),focus:e.get("focus"),labelStatesModels:Dt(t)}}function vl(r){return isNaN(r[0])||isNaN(r[1])}function Hi(r){return r&&!vl(r[0])&&!vl(r[1])}function c_(r,t,e,a,i,n){r=r||0;var o=kt(e[1],-e[0]);if(i!=null&&(i=Pt(i,[0,o])),n!=null&&(n=Math.max(n,i??0)),a==="all"){var s=Math.abs(kt(t[1],-t[0]));s=Pt(s,[0,o]),i=n=Pt(s,[i,n]),a=0}t[0]=Pt(t[0],e),t[1]=Pt(t[1],e);var l=Wi(t,a);t[a]+=r;var u=i||0,c=e.slice();l.sign<0?c[0]=kt(c[0],u):c[1]=kt(c[1],-u),t[a]=Pt(t[a],c);var f;return f=Wi(t,a),i!=null&&(f.sign!==l.sign||f.span<i)&&(t[1-a]=kt(t[a],l.sign*i)),f=Wi(t,a),n!=null&&f.span>n&&(t[1-a]=kt(t[a],f.sign*n)),t}function Wi(r,t){var e=r[t]-r[1-t];return{span:Math.abs(e),sign:e>0?-1:e<0?1:t?-1:1}}function Pt(r,t){return Math.min(t[1]!=null?t[1]:1/0,Math.max(t[0]!=null?t[0]:-1/0,r))}var bt=ge(),hl=ae,Ui=te,f_=(function(){function r(){this._dragging=!1,this.animationThreshold=15}return r.prototype.render=function(t,e,a,i){var n=e.get("value"),o=e.get("status");if(this._axisModel=t,this._axisPointerModel=e,this._api=a,!(!i&&this._lastValue===n&&this._lastStatus===o)){this._lastValue=n,this._lastStatus=o;var s=this._group,l=this._handle;if(!o||o==="hide"){s&&s.hide(),l&&l.hide();return}s&&s.show(),l&&l.show();var u={};this.makeElOption(u,n,t,e,a);var c=u.graphicKey;c!==this._lastGraphicKey&&this.clear(a),this._lastGraphicKey=c;var f=this._moveAnimation=this.determineAnimation(t,e);if(!s)s=this._group=new le,this.createPointerEl(s,u,t,e),this.createLabelEl(s,u,t,e),a.getZr().add(s);else{var v=ne(dl,e,f);this.updatePointerEl(s,u,v),this.updateLabelEl(s,u,v,e)}gl(s,e,!0),this._renderHandle(n)}},r.prototype.remove=function(t){this.clear(t)},r.prototype.dispose=function(t){this.clear(t)},r.prototype.determineAnimation=function(t,e){var a=e.get("animation"),i=t.axis,n=i.type==="category",o=e.get("snap");if(!o&&!n)return!1;if(a==="auto"||a==null){var s=this.animationThreshold;if(n&&sr(i).w>s)return!0;
6if(o){var l=_o(t).seriesDataCount,u=i.getExtent();return Math.abs(u[0]-u[1])/l>s}return!1}return a===!0},r.prototype.makeElOption=function(t,e,a,i,n){},r.prototype.createPointerEl=function(t,e,a,i){var n=e.pointer;if(n){var o=bt(t).pointerEl=new Tu[n.type](hl(e.pointer));t.add(o)}},r.prototype.createLabelEl=function(t,e,a,i){if(e.label){var n=bt(t).labelEl=new Ae(hl(e.label));t.add(n),pl(n,i)}},r.prototype.updatePointerEl=function(t,e,a){var i=bt(t).pointerEl;i&&e.pointer&&(i.setStyle(e.pointer.style),a(i,{shape:e.pointer.shape}))},r.prototype.updateLabelEl=function(t,e,a,i){var n=bt(t).labelEl;n&&(n.setStyle(e.label.style),a(n,{x:e.label.x,y:e.label.y}),pl(n,i))},r.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var e=this._axisPointerModel,a=this._api.getZr(),i=this._handle,n=e.getModel("handle"),o=e.get("status");if(!n.get("show")||!o||o==="hide"){i&&a.remove(i),this._handle=null;return}var s;this._handle||(s=!0,i=this._handle=Mu(n.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(u){za(u.event)},onmousedown:Ui(this._onHandleDragMove,this,0,0),drift:Ui(this._onHandleDragMove,this),ondragend:Ui(this._onHandleDragEnd,this)}),a.add(i)),gl(i,e,!1),i.setStyle(n.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var l=n.get("size");H(l)||(l=[l,l]),i.scaleX=l[0]/2,i.scaleY=l[1]/2,Lu(this,"_doDispatchAxisPointer",n.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,s)}},r.prototype._moveHandleToValue=function(t,e){dl(this._axisPointerModel,!e&&this._moveAnimation,this._handle,$i(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},r.prototype._onHandleDragMove=function(t,e){var a=this._handle;if(a){this._dragging=!0;var i=this.updateHandleTransform($i(a),[t,e],this._axisModel,this._axisPointerModel);this._payloadInfo=i,a.stopAnimation(),a.attr($i(i)),bt(a).lastProp=null,this._doDispatchAxisPointer()}},r.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var e=this._payloadInfo,a=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:e.cursorPoint[0],y:e.cursorPoint[1],tooltipOption:e.tooltipOption,axesInfo:[{axisDim:a.axis.dim,axisIndex:a.componentIndex}]})}},r.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var e=this._axisPointerModel.get("value");this._moveHandleToValue(e),this._api.dispatchAction({type:"hideTip"})}},r.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var e=t.getZr(),a=this._group,i=this._handle;e&&a&&(this._lastGraphicKey=null,a&&e.remove(a),i&&e.remove(i),this._group=null,this._handle=null,this._payloadInfo=null),on(this,"_doDispatchAxisPointer")},r.prototype.doClear=function(){},r.prototype.buildLabel=function(t,e,a){return a=a||0,{x:t[a],y:t[1-a],width:e[a],height:e[1-a]}},r})();function dl(r,t,e,a){Af(bt(e).lastProp,a)||(bt(e).lastProp=a,t?xe(e,a,r):(e.stopAnimation(),e.attr(a)))}function Af(r,t){if(oe(r)&&oe(t)){var e=!0;return M(t,function(a,i){e=e&&Af(r[i],a)}),!!e}else return r===t}function pl(r,t){r[t.get(["label","show"])?"show":"hide"]()}function $i(r){return{x:r.x||0,y:r.y||0,rotation:r.rotation||0}}function gl(r,t,e){var a=t.get("z"),i=t.get("zlevel");r&&r.traverse(function(n){n.type!=="group"&&(a!=null&&(n.z=a),i!=null&&(n.zlevel=i),n.silent=e)})}function v_(r){var t=r.get("type"),e=r.getModel(t+"Style"),a;return t==="line"?(a=e.getLineStyle(),a.fill=null):t==="shadow"&&(a=e.getAreaStyle(),a.stroke=null),a}function h_(r,t,e,a,i){var n=e.get("value"),o=Cf(n,t.axis,t.ecModel,e.get("seriesDataIndices"),{precision:e.get(["label","precision"]),formatter:e.get(["label","formatter"])}),s=e.getModel("label"),l=ui(s.get("padding")||0),u=s.getFont(),c=ou(o,u),f=i.position,v=c.width+l[1]+l[3],h=c.height+l[0]+l[2],d=i.align;d==="right"&&(f[0]-=v),d==="center"&&(f[0]-=v/2);var p=i.verticalAlign;p==="bottom"&&(f[1]-=h),p==="middle"&&(f[1]-=h/2),d_(f,v,h,a);var m=s.get("backgroundColor");(!m||m==="auto")&&(m=t.get(["axisLine","lineStyle","color"])),r.label={x:f[0],y:f[1],style:Je(s,{text:o,font:u,fill:s.getTextColor(),padding:l,backgroundColor:m}),z2:10}}function d_(r,t,e,a){var i=a.getWidth(),n=a.getHeight();r[0]=Math.min(r[0]+t,i)-t,r[1]=Math.min(r[1]+e,n)-e,r[0]=Math.max(r[0],0),r[1]=Math.max(r[1],0)}function Cf(r,t,e,a,i){r=t.scale.parse(r);var n=t.scale.getLabel({value:r},{precision:i.precision}),o=i.formatter;if(o){var s={value:Wa(t,{value:r}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};M(a,function(l){var u=e.getSeriesByIndex(l.seriesIndex),c=l.dataIndexInside,f=u&&u.getDataParams(c);f&&s.seriesData.push(f)}),q(o)?n=o.replace("{value}",n):re(o)&&(n=o(s))}return n}function Tf(r,t,e){var a=Un();return Su(a,a,e.rotation),Qh(a,a,e.position),ba([r.dataToCoord(t),(e.labelOffset||0)+(e.labelDirection||1)*(e.labelMargin||0)],a)}function p_(r,t,e,a,i,n){var o=Qe.innerTextLayout(e.rotation,0,e.labelDirection);e.labelMargin=i.get(["label","margin"]),h_(t,a,i,n,{position:Tf(a.axis,r,e),align:o.textAlign,verticalAlign:o.textVerticalAlign})}function g_(r,t,e){return e=e||0,{x1:r[e],y1:r[1-e],x2:t[e],y2:t[1-e]}}function m_(r,t,e){return e=e||0,{x:r[e],y:r[1-e],width:t[e],height:t[1-e]}}function y_(r,t,e){return sr(r,{fromStat:{sers:F(t,function(a){return e.getSeriesByIndex(a.seriesIndex)})},min:1}).w}function __(r,t,e){return[he(He(t[0],t[1]),r-e/2),He(r+e/2,he(t[0],t[1]))]}var b_=(function(r){G(t,r);function t(){return r!==null&&r.apply(this,arguments)||this}return t.prototype.makeElOption=function(e,a,i,n,o){var s=i.axis,l=s.grid,u=n.get("type"),c=s.getGlobalExtent(),f=ml(l,s).getOtherAxis(s).getGlobalExtent(),v=s.toGlobalCoord(s.dataToCoord(a,!0));if(u&&u!=="none"){var h=v_(n),d=x_[u](s,v,c,f,n.get("seriesDataIndices"),n.ecModel);d.style=h,e.graphicKey=d.type,e.pointer=d}var p=Za(l.getRect(),i);p_(a,e,p,i,n,o)},t.prototype.getHandleTransform=function(e,a,i){var n=Za(a.axis.grid.getRect(),a,{labelInside:!1});n.labelMargin=i.get(["handle","margin"]);var o=Tf(a.axis,e,n);return{x:o[0],y:o[1],rotation:n.rotation+(n.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(e,a,i,n){var o=i.axis,s=o.grid,l=o.getGlobalExtent(!0),u=ml(s,o).getOtherAxis(o).getGlobalExtent(),c=o.dim==="x"?0:1,f=[e.x,e.y];f[c]+=a[c],f[c]=He(l[1],f[c]),f[c]=he(l[0],f[c]);var v=(u[1]+u[0])/2,h=[v,v];h[c]=f[c];var d=[{verticalAlign:"middle"},{align:"center"}];return{x:f[0],y:f[1],rotation:e.rotation,cursorPoint:h,tooltipOption:d[c]}},t})(f_);function ml(r,t){var e={};return e[t.dim+"AxisIndex"]=t.index,r.getCartesian(e)}var x_={line:function(r,t,e,a){var i=g_([t,a[0]],[t,a[1]],yl(r));return{type:"Line",subPixelOptimize:!0,shape:i}},shadow:function(r,t,e,a,i,n){var o=y_(r,i,n),s=a[1]-a[0],l=__(t,e,o),u=l[0],c=l[1];return{type:"Rect",shape:m_([u,a[0]],[c-u,s],yl(r))}}};function yl(r){return r.dim==="x"?0:1}var S_=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:W.color.border,width:1,type:"dashed"},shadowStyle:{color:W.color.shadowTint},label:{show:!0,formatter:null,precision:"auto",margin:3,color:W.color.neutral00,padding:[5,7,5,7],backgroundColor:W.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:W.color.accent40,throttle:40}},t})(Pe),qe=ge(),w_=M;function If(r,t,e){if(!be.node){var a=t.getZr();qe(a).records||(qe(a).records={}),A_(a,t);
6var i=qe(a).records[r]||(qe(a).records[r]={});i.handler=e}}function A_(r,t){if(qe(r).initialized)return;qe(r).initialized=!0,e("click",ne(Yi,"click")),e("mousemove",ne(Yi,"mousemove")),e("mousewheel",ne(Yi,"mousewheel")),e("globalout",T_);function e(a,i){r.on(a,function(n){var o=I_(t);w_(qe(r).records,function(s){s&&i(s,n,o.dispatchAction)}),C_(o.pendings,t)})}}function C_(r,t){var e=r.showTip.length,a=r.hideTip.length,i;e?i=r.showTip[e-1]:a&&(i=r.hideTip[a-1]),i&&(i.dispatchAction=null,t.dispatchAction(i))}function T_(r,t,e){r.handler("leave",null,e)}function Yi(r,t,e,a){t.handler(r,e,a)}function I_(r){var t={showTip:[],hideTip:[]},e=function(a){var i=t[a.type];i?i.push(a):(a.dispatchAction=e,r.dispatchAction(a))};return{dispatchAction:e,pendings:t}}function Tn(r,t){if(!be.node){var e=t.getZr(),a=(qe(e).records||{})[r];a&&(qe(e).records[r]=null)}}var D_=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,a,i){var n=a.getComponent("tooltip"),o=e.get("triggerOn")||n&&n.get("triggerOn")||"mousemove|click|mousewheel";If("axisPointer",i,function(s,l,u){o!=="none"&&(s==="leave"||o.indexOf(s)>=0)&&u({type:"updateAxisPointer",currTrigger:s,x:l&&l.offsetX,y:l&&l.offsetY})})},t.prototype.remove=function(e,a){Tn("axisPointer",a)},t.prototype.dispose=function(e,a){Tn("axisPointer",a)},t.type="axisPointer",t})(We);function Df(r,t){var e=[],a=r.seriesIndex,i;if(a==null||!(i=t.getSeriesByIndex(a)))return{point:[]};var n=i.getData(),o=nn(n,r);if(o==null||o<0||H(o))return{point:[]};var s=n.getItemGraphicEl(o),l=i.coordinateSystem;if(i.getTooltipPosition)e=i.getTooltipPosition(o)||[];else if(l&&l.dataToPoint)if(r.isStacked){var u=l.getBaseAxis(),c=l.getOtherAxis(u),f=c.dim,v=u.dim,h=f==="x"||f==="radius"?1:0,d=n.mapDimension(v),p=[];p[h]=n.get(d,o),p[1-h]=n.get(n.getCalculationInfo("stackResultDimension"),o),e=l.dataToPoint(p)||[]}else e=l.dataToPoint(n.getValues(F(l.dimensions,function(g){return n.mapDimension(g)}),o))||[];else if(s){var m=s.getBoundingRect().clone();m.applyTransform(s.transform),e=[m.x+m.width/2,m.y+m.height/2]}return{point:e,el:s}}var _l=ge();function M_(r,t,e){var a=r.currTrigger,i=[r.x,r.y],n=r,o=r.dispatchAction||te(e.dispatchAction,e),s=t.getComponent("axisPointer").coordSysAxesInfo;if(s){Aa(i)&&(i=Df({seriesIndex:n.seriesIndex,dataIndex:n.dataIndex},t).point);var l=Aa(i),u=n.axesInfo,c=s.axesInfo,f=a==="leave"||Aa(i),v={},h={},d={list:[],map:{}},p={showPointer:ne(k_,h),showTooltip:ne(O_,d)};M(s.coordSysMap,function(g,y){var _=l||g.containPoint(i);M(s.coordSysAxesInfo[y],function(b,S){var w=b.axis,x=N_(u,b);if(!f&&_&&(!u||x)){var I=x&&x.value;I==null&&!l&&(I=w.pointToData(i)),I!=null&&bl(b,I,p,!1,v)}})});var m={};return M(c,function(g,y){var _=g.linkGroup;_&&!h[y]&&M(_.axesInfo,function(b,S){var w=h[S];if(b!==g&&w){var x=w.value;_.mapper&&(x=g.axis.scale.parse(_.mapper(x,xl(b),xl(g)))),m[g.key]=x}})}),M(m,function(g,y){bl(c[y],g,p,!0,v)}),P_(h,c,v),E_(d,i,r,o),R_(c,o,e),v}}function bl(r,t,e,a,i){var n=r.axis;if(!(n.scale.isBlank()||!n.containData(t))){if(!r.involveSeries){e.showPointer(r,t);return}var o=L_(t,r),s=o.payloadBatch,l=o.snapToValue;s[0]&&i.seriesIndex==null&&j(i,s[0]),!a&&r.snap&&n.containData(l)&&l!=null&&(t=l),e.showPointer(r,t,s),e.showTooltip(r,o,l)}}function L_(r,t){var e=t.axis,a=e.dim,i=r,n=[],o=Number.MAX_VALUE,s=-1;return M(t.seriesModels,function(l,u){var c=l.getData().mapDimensionsAll(a),f,v;if(l.getAxisTooltipData){var h=l.getAxisTooltipData(c,r,e);v=h.dataIndices,f=h.nestestValue}else{if(v=l.indicesOfNearest(a,c[0],r,e.type==="category"?.5:null),!v.length)return;f=l.getData().get(c[0],v[0])}if(Ee(f)){var d=r-f,p=Math.abs(d);p<=o&&((p<o||d>=0&&s<0)&&(o=p,s=d,i=f,n.length=0),M(v,function(m){n.push({seriesIndex:l.seriesIndex,dataIndexInside:m,dataIndex:l.getData().getRawIndex(m)})}))}}),{payloadBatch:n,snapToValue:i}}function k_(r,t,e,a){r[t.key]={value:e,payloadBatch:a}}function O_(r,t,e,a){var i=e.payloadBatch,n=t.axis,o=n.model,s=t.axisPointerModel;if(!(!t.triggerTooltip||!i.length)){var l=t.coordSys.model,u=Er(l),c=r.map[u];c||(c=r.map[u]={coordSysId:l.id,coordSysIndex:l.componentIndex,coordSysType:l.type,coordSysMainType:l.mainType,dataByAxis:[]},r.list.push(c)),c.dataByAxis.push({axisDim:n.dim,axisIndex:o.componentIndex,axisType:o.type,axisId:o.id,value:a,valueLabelOpt:{precision:s.get(["label","precision"]),formatter:s.get(["label","formatter"])},seriesDataIndices:i.slice()})}}function P_(r,t,e){var a=e.axesInfo=[];M(t,function(i,n){var o=i.axisPointerModel.option,s=r[n];s?(!i.useHandle&&(o.status="show"),o.value=s.value,o.seriesDataIndices=(s.payloadBatch||[]).slice()):!i.useHandle&&(o.status="hide"),o.status==="show"&&a.push({axisDim:i.axis.dim,axisIndex:i.axis.model.componentIndex,value:o.value})})}function E_(r,t,e,a){if(Aa(t)||!r.list.length){a({type:"hideTip"});return}var i=((r.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};a({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:e.tooltipOption,position:e.position,dataIndexInside:i.dataIndexInside,dataIndex:i.dataIndex,seriesIndex:i.seriesIndex,dataByCoordSys:r.list})}function R_(r,t,e){var a=e.getZr(),i="axisPointerLastHighlights",n=_l(a)[i]||{}
6,o=_l(a)[i]={};M(r,function(c,f){var v=c.axisPointerModel.option;v.status==="show"&&c.triggerEmphasis&&M(v.seriesDataIndices,function(h){o[h.seriesIndex+"|"+h.dataIndex]=h})});var s=[],l=[];function u(c){return{seriesIndex:c.seriesIndex,dataIndex:c.dataIndex}}M(n,function(c,f){!o[f]&&l.push(u(c))}),M(o,function(c,f){!n[f]&&s.push(u(c))}),l.length&&e.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:l}),s.length&&e.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:s})}function N_(r,t){for(var e=0;e<(r||[]).length;e++){var a=r[e];if(t.axis.dim===a.axisDim&&t.axis.model.componentIndex===a.axisIndex)return a}}function xl(r){var t=r.axis.model,e={},a=e.axisDim=r.axis.dim;return e.axisIndex=e[a+"AxisIndex"]=t.componentIndex,e.axisName=e[a+"AxisName"]=t.name,e.axisId=e[a+"AxisId"]=t.id,e}function Aa(r){return!r||r[0]==null||isNaN(r[0])||r[1]==null||isNaN(r[1])}function Mf(r){gf.registerAxisPointerClass("CartesianAxisPointer",b_),r.registerComponentModel(S_),r.registerComponentView(D_),r.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var e=t.axisPointer.link;e&&!H(e)&&(t.axisPointer.link=[e])}}),r.registerProcessor(r.PRIORITY.PROCESSOR.STATISTIC,{overallReset:function(t,e){t.getComponent("axisPointer").coordSysAxesInfo=L0(t,e)}}),r.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},M_)}function V_(r){Ne(W0),Ne(Mf)}function B_(r,t){var e=ui(t.get("padding")),a=t.getItemStyle(["color","opacity"]);a.fill=t.get("backgroundColor");var i=new Ce({shape:{x:r.x-e[3],y:r.y-e[0],width:r.width+e[1]+e[3],height:r.height+e[0]+e[2],r:t.get("borderRadius")},style:a,silent:!0,z2:-1});return i}var z_=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click|mousewheel",alwaysShowContent:!1,renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,displayTransition:!0,enterable:!1,backgroundColor:W.color.neutral00,shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,defaultBorderColor:W.color.border,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:W.color.borderShade,width:1,type:"dashed",textStyle:{}}},textStyle:{color:W.color.tertiary,fontSize:14}},t})(Pe);function Lf(r){var t=r.get("confine");return t!=null?!!t:r.get("renderMode")==="richText"}function kf(r){if(be.domSupported){for(var t=document.documentElement.style,e=0,a=r.length;e<a;e++)if(r[e]in t)return r[e]}}var Of=kf(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),G_=kf(["webkitTransition","transition","OTransition","MozTransition","msTransition"]);function Pf(r,t){if(!r)return t;t=ku(t,!0);var e=r.indexOf(t);return r=e===-1?t:"-"+r.slice(0,e)+"-"+t,r.toLowerCase()}function F_(r,t){var e=r.currentStyle||document.defaultView&&document.defaultView.getComputedStyle(r);return e?e[t]:null}var H_=Pf(G_,"transition"),bo=Pf(Of,"transform"),W_="position:absolute;display:block;border-style:solid;white-space:nowrap;z-index:9999999;"+(be.transform3dSupported?"will-change:transform;":"");function U_(r){return r=r==="left"?"right":r==="right"?"left":r==="top"?"bottom":"top",r}function $_(r,t,e){if(!q(e)||e==="inside")return"";var a=r.get("backgroundColor"),i=r.get("borderWidth");t=Kt(t);var n=U_(e),o=Math.max(Math.round(i)*1.5,6),s="",l=bo+":",u;De(["left","right"],n)>-1?(s+="top:50%",l+="translateY(-50%) rotate("+(u=n==="left"?-225:-45)+"deg)"):(s+="left:50%",l+="translateX(-50%) rotate("+(u=n==="top"?225:45)+"deg)");var c=u*Math.PI/180,f=o+i,v=f*Math.abs(Math.cos(c))+f*Math.abs(Math.sin(c)),h=Math.round(((v-Math.SQRT2*i)/2+Math.SQRT2*i-(v-f)/2)*100)/100;s+=";"+n+":-"+h+"px";var d=t+" solid "+i+"px;",p=["position:absolute;width:"+o+"px;height:"+o+"px;z-index:-1;",s+";"+l+";","border-bottom:"+d,"border-right:"+d,"background-color:"+a+";"];return'<div style="'+p.join("")+'"></div>'}function Y_(r,t,e){var a="cubic-bezier(0.23,1,0.32,1)",i="",n="";return e&&(i=" "+r/2+"s "+a,n="opacity"+i+",visibility"+i),t||(i=" "+r+"s "+a,n+=(n.length?",":"")+(be.transformSupported?""+bo+i:",left"+i+",top"+i)),H_+":"+n}function Sl(r,t,e){var a=r.toFixed(0)+"px",i=t.toFixed(0)+"px";if(!be.transformSupported)return e?"top:"+i+";left:"+a+";":[["top",i],["left",a]];var n=be.transform3dSupported,o="translate"+(n?"3d":"")+"("+a+","+i+(n?",0":"")+")";return e?"top:0;left:0;"+bo+":"+o+";":[["top",0],["left",0],[Of,o]]}function X_(r){var t=[],e=r.get("fontSize"),a=r.getTextColor();a&&t.push("color:"+a),t.push("font:"+r.getFont());var i=J(r.get("lineHeight"),Math.round(e*3/2));e&&t.push("line-height:"+i+"px");var n=r.get("textShadowColor"),o=r.get("textShadowBlur")||0,s=r.get("textShadowOffsetX")||0,l=r.get("textShadowOffsetY")||0;return n&&o&&t.push("text-shadow:"+s+"px "+l+"px "+o+"px "+n),M(["decoration","align"],function(u){var c=r.get(u);c&&t.push("text-"+u+":"+c)}),t.join(";")}function K_(r,t,e,a){var i=[],n=r.get("transitionDuration"),o=r.get("backgroundColor"),s=r.get("shadowBlur"),l=r.get("shadowColor"),u=r.get("shadowOffsetX"),c=r.get("shadowOffsetY"),f=r.getModel("textStyle"),v=Ou(r,"html"),h=u+"px "+c+"px "+s+"px "+l;return i.push("box-shadow:"+h),t&&n>0&&i.push(Y_(n,e,a)),o&&i.push("background-color:"+o),M(["width","color","radius"],function(d){var p="border-"+d,m=ku(p),g=r.get(m);g!=null&&i.push(p+":"+g+(d==="color"?"":"px"))}),i.push(X_(f)),v!=null&&i.push("padding:"+ui(v).join("px ")+"px"),i.join(";")+";"}function wl(r,t,e,a,i){var n=t&&t.painter;if(e){var o=n&&n.getViewportRoot();o&&td(r,o,e,a,i)}else{r[0]=a,r[1]=i;var s=n&&n.getViewportRootOffset();s&&(r[0]+=s.offsetLeft,r[1]+=s.offsetTop)}
6r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var Z_=(function(){function r(t,e){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,be.wxa)return null;var a=document.createElement("div");a.domBelongToZr=!0,this.el=a;var i=this._zr=t.getZr(),n=e.appendTo,o=n&&(q(n)?document.querySelector(n):Go(n)?n:re(n)&&n(t.getDom()));wl(this._styleCoord,i,o,t.getWidth()/2,t.getHeight()/2),(o||t.getDom()).appendChild(a),this._api=t,this._container=o;var s=this;a.onmouseenter=function(){s._enterable&&(clearTimeout(s._hideTimeout),s._show=!0),s._inContent=!0},a.onmousemove=function(l){if(l=l||window.event,!s._enterable){var u=i.handler,c=i.painter.getViewportRoot();ed(c,l,!0),u.dispatch("mousemove",l)}},a.onmouseleave=function(){s._inContent=!1,s._enterable&&s._show&&s.hideLater(s._hideDelay)}}return r.prototype.update=function(t){if(!this._container){var e=this._api.getDom(),a=F_(e,"position"),i=e.style;i.position!=="absolute"&&a!=="absolute"&&(i.position="relative")}var n=t.get("alwaysShowContent");n&&this._moveIfResized(),this._alwaysShowContent=n,this._enableDisplayTransition=t.get("displayTransition")&&t.get("transitionDuration")>0,this.el.className=t.get("className")||""},r.prototype.show=function(t,e){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var a=this.el,i=a.style,n=this._styleCoord;a.innerHTML?i.cssText=W_+K_(t,!this._firstShow,this._longHide,this._enableDisplayTransition)+Sl(n[0],n[1],!0)+("border-color:"+Kt(e)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):i.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},r.prototype.setContent=function(t,e,a,i,n){var o=this.el;if(t==null){o.innerHTML="";return}var s="";if(q(n)&&a.get("trigger")==="item"&&!Lf(a)&&(s=$_(a,i,n)),q(t))o.innerHTML=t+s;else if(t){o.innerHTML="",H(t)||(t=[t]);for(var l=0;l<t.length;l++)Go(t[l])&&t[l].parentNode!==o&&o.appendChild(t[l]);if(s&&o.childNodes.length){var u=document.createElement("div");u.innerHTML=s,o.appendChild(u)}}},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el;return t?[t.offsetWidth,t.offsetHeight]:[0,0]},r.prototype.moveTo=function(t,e){if(this.el){var a=this._styleCoord;if(wl(a,this._zr,this._container,t,e),a[0]!=null&&a[1]!=null){var i=this.el.style,n=Sl(a[0],a[1]);M(n,function(o){i[o[0]]=o[1]})}}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){var t=this,e=this.el.style;this._enableDisplayTransition?(e.visibility="hidden",e.opacity="0"):e.display="none",be.transform3dSupported&&(e.willChange=""),this._show=!1,this._longHideTimeout=setTimeout(function(){return t._longHide=!0},500)},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(te(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var t=this._zr;rd(t&&t.painter&&t.painter.getViewportRoot(),this._container);var e=this.el;if(e){e.onmouseenter=e.onmousemove=e.onmouseleave=null;var a=e.parentNode;a&&a.removeChild(e)}this.el=this._container=null},r})(),q_=(function(){function r(t){this._show=!1,this._styleCoord=[0,0,0,0],this._alwaysShowContent=!1,this._enterable=!0,this._zr=t.getZr(),Cl(this._styleCoord,this._zr,t.getWidth()/2,t.getHeight()/2)}return r.prototype.update=function(t){var e=t.get("alwaysShowContent");e&&this._moveIfResized(),this._alwaysShowContent=e},r.prototype.show=function(){this._hideTimeout&&clearTimeout(this._hideTimeout),this.el.show(),this._show=!0},r.prototype.setContent=function(t,e,a,i,n){var o=this;oe(t)&&ad(""),this.el&&this._zr.remove(this.el);var s=a.getModel("textStyle");this.el=new Ae({style:{rich:e.richTextStyles,text:t,lineHeight:22,borderWidth:1,borderColor:i,textShadowColor:s.get("textShadowColor"),fill:a.get(["textStyle","color"]),padding:Ou(a,"richText"),verticalAlign:"top",align:"left"},z:a.get("z")}),M(["backgroundColor","borderRadius","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"],function(u){o.el.style[u]=a.get(u)}),M(["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})},r.prototype.setEnterable=function(t){this._enterable=t},r.prototype.getSize=function(){var t=this.el,e=this.el.getBoundingRect
6(),a=Al(t.style);return[e.width+a.left+a.right,e.height+a.top+a.bottom]},r.prototype.moveTo=function(t,e){var a=this.el;if(a){var i=this._styleCoord;Cl(i,this._zr,t,e),t=i[0],e=i[1];var n=a.style,o=ut(n.borderWidth||0),s=Al(n);a.x=t+o+s.left,a.y=e+o+s.top,a.markRedraw()}},r.prototype._moveIfResized=function(){var t=this._styleCoord[2],e=this._styleCoord[3];this.moveTo(t*this._zr.getWidth(),e*this._zr.getHeight())},r.prototype.hide=function(){this.el&&this.el.hide(),this._show=!1},r.prototype.hideLater=function(t){this._show&&!(this._inContent&&this._enterable)&&!this._alwaysShowContent&&(t?(this._hideDelay=t,this._show=!1,this._hideTimeout=setTimeout(te(this.hide,this),t)):this.hide())},r.prototype.isShow=function(){return this._show},r.prototype.dispose=function(){this._zr.remove(this.el)},r})();function ut(r){return Math.max(0,r)}function Al(r){var t=ut(r.shadowBlur||0),e=ut(r.shadowOffsetX||0),a=ut(r.shadowOffsetY||0);return{left:ut(t-e),right:ut(t+e),top:ut(t-a),bottom:ut(t+a)}}function Cl(r,t,e,a){r[0]=e,r[1]=a,r[2]=r[0]/t.getWidth(),r[3]=r[1]/t.getHeight()}var j_=new Ce({shape:{x:-1,y:-1,width:2,height:2}}),J_=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e,a){if(!(be.node||!a.getDom())){var i=e.getComponent("tooltip"),n=this._renderMode=id(i.get("renderMode"));this._tooltipContent=n==="richText"?new q_(a):new Z_(a,{appendTo:i.get("appendToBody",!0)?"body":i.get("appendTo",!0)})}},t.prototype.render=function(e,a,i){if(!(be.node||!i.getDom())){this.group.removeAll(),this._tooltipModel=e,this._ecModel=a,this._api=i;var n=this._tooltipContent;n.update(e),n.setEnterable(e.get("enterable")),this._initGlobalListener(),this._keepShow(),this._renderMode!=="richText"&&e.get("transitionDuration")?Lu(this,"_updatePosition",50,"fixRate"):on(this,"_updatePosition")}},t.prototype._initGlobalListener=function(){var e=this._tooltipModel,a=e.get("triggerOn");If("itemTooltip",this._api,te(function(i,n,o){a!=="none"&&(a.indexOf(i)>=0?this._tryShow(n,o):i==="leave"&&this._hide(o))},this))},t.prototype._keepShow=function(){var e=this._tooltipModel,a=this._ecModel,i=this._api,n=e.get("triggerOn");if(e.get("trigger")!=="axis"&&(this._lastDataByCoordSys=null,this._cbParamsList=null),this._lastX!=null&&this._lastY!=null&&n!=="none"&&n!=="click"){var o=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!i.isDisposed()&&o.manuallyShowTip(e,a,i,{x:o._lastX,y:o._lastY,dataByCoordSys:o._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(e,a,i,n){if(!(n.from===this.uid||be.node||!i.getDom())){var o=Tl(n,i);this._ticket="";var s=n.dataByCoordSys,l=rb(n,a,i);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:n.position,positionDefault:"bottom"},o)}else if(n.tooltip&&n.x!=null&&n.y!=null){var c=j_;c.x=n.x,c.y=n.y,c.update(),ie(c).tooltipConfig={name:null,option:n.tooltip},this._tryShow({offsetX:n.x,offsetY:n.y,target:c},o)}else if(s)this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,dataByCoordSys:s,tooltipOption:n.tooltipOption},o);else if(n.seriesIndex!=null){if(this._manuallyAxisShowTip(e,a,i,n))return;var f=Df(n,a),v=f.point[0],h=f.point[1];v!=null&&h!=null&&this._tryShow({offsetX:v,offsetY:h,target:f.el,position:n.position,positionDefault:"bottom"},o)}else n.x!=null&&n.y!=null&&(i.dispatchAction({type:"updateAxisPointer",x:n.x,y:n.y}),this._tryShow({offsetX:n.x,offsetY:n.y,position:n.position,target:i.getZr().findHover(n.x,n.y).target},o))}},t.prototype.manuallyHideTip=function(e,a,i,n){var o=this._tooltipContent;this._tooltipModel&&o.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,this._cbParamsList=null,n.from!==this.uid&&this._hide(Tl(n,i))},t.prototype._manuallyAxisShowTip=function(e,a,i,n){var o=n.seriesIndex,s=n.dataIndex,l=a.getComponent("axisPointer").coordSysAxesInfo;if(!(o==null||s==null||l==null)){var u=a.getSeriesByIndex(o);if(u){var c=u.getData(),f=mr([c.getItemModel(s),u,(u.coordinateSystem||{}).model],this._tooltipModel);if(f.get("trigger")==="axis")return i.dispatchAction({type:"updateAxisPointer",seriesIndex:o,dataIndex:s,position:n.position}),!0}}},t.prototype._tryShow=function(e,a){var i=e.target,n=this._tooltipModel;if(n){this._lastX=e.offsetX,this._lastY=e.offsetY;var o=e.dataByCoordSys;if(o&&o.length)this._showAxisTooltip(o,e);else if(i){var s=ie(i);if(s.ssrType==="legend")return;
6this._lastDataByCoordSys=null,this._cbParamsList=null;var l,u;Pu(i,function(c){if(c.tooltipDisabled)return l=u=null,!0;l||u||(ie(c).dataIndex!=null?l=c:ie(c).tooltipConfig!=null&&(u=c))},!0),l?this._showSeriesItemTooltip(e,l,a):u?this._showComponentItemTooltip(e,u,a):this._hide(a)}else this._lastDataByCoordSys=null,this._cbParamsList=null,this._hide(a)}},t.prototype._showOrMove=function(e,a){var i=e.get("showDelay");a=te(a,this),clearTimeout(this._showTimout),i>0?this._showTimout=setTimeout(a,i):a()},t.prototype._showAxisTooltip=function(e,a){var i=this._ecModel,n=this._tooltipModel,o=[a.offsetX,a.offsetY],s=mr([a.tooltipOption],n),l=this._renderMode,u=[],c=Jt("section",{blocks:[],noHeader:!0}),f=[],v=new Ai;M(e,function(y){M(y.dataByAxis,function(_){var b=i.getComponent(_.axisDim+"Axis",_.axisIndex),S=_.value,w=b.axis,x=w.scale.parse(S);if(!(!b||S==null)){var I=Cf(S,w,i,_.seriesDataIndices,_.valueLabelOpt),T=Jt("section",{header:I,noHeader:!nd(I),sortBlocks:!0,blocks:[]});c.blocks.push(T),M(_.seriesDataIndices,function(C){var A=i.getSeriesByIndex(C.seriesIndex),k=C.dataIndexInside,D=A.getDataParams(k);if(!(D.dataIndex<0)){D.axisDim=_.axisDim,D.axisIndex=_.axisIndex,D.axisType=_.axisType,D.axisId=_.axisId,D.axisValue=Wa(b.axis,{value:x}),D.axisValueLabel=I,D.marker=v.makeTooltipMarker("item",Kt(D.color),l);var R=Fo(A.formatTooltip(k,!0,null)),E=R.frag;if(E){var N=mr([A],n).get("valueFormatter");T.blocks.push(N?j({valueFormatter:N},E):E)}R.text&&f.push(R.text),u.push(D)}})}})}),c.blocks.reverse(),f.reverse();var h=a.position,d=s.get("order"),p=Ho(c,v,l,d,i.get("useUTC"),s.get("textStyle"));p&&f.unshift(p);var m=l==="richText"?`
7
8`:"<br/>",g=f.join(m);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,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)})},t.prototype._showSeriesItemTooltip=function(e,a,i){var n=this._ecModel,o=ie(a),s=o.seriesIndex,l=n.getSeriesByIndex(s),u=o.dataModel||l,c=o.dataIndex,f=o.dataType,v=u.getData(f),h=this._renderMode,d=e.positionDefault,p=mr([v.getItemModel(c),u,l&&(l.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),m=p.get("trigger");if(!(m!=null&&m!=="item")){var g=u.getDataParams(c,f),y=new Ai;g.marker=y.makeTooltipMarker("item",Kt(g.color),h);var _=Fo(u.formatTooltip(c,!1,f)),b=p.get("order"),S=p.get("valueFormatter"),w=_.frag,x=w?Ho(S?j({valueFormatter:S},w):w,y,h,b,n.get("useUTC"),p.get("textStyle")):_.text,I="item_"+u.name+"_"+c;this._showOrMove(p,function(){this._showTooltipContent(p,x,g,I,e.offsetX,e.offsetY,e.position,e.target,y)}),i({type:"showTip",dataIndexInside:c,dataIndex:v.getRawIndex(c),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,a,i){var n=this._renderMode==="html",o=ie(a),s=o.tooltipConfig,l=s.option||{},u=l.encodeHTMLContent;if(q(l)){var c=l;l={content:c,formatter:c},u=!0}u&&n&&l.content&&(l=ae(l),l.content=fu(l.content));var f=[l],v=this._ecModel.getComponent(o.componentMainType,o.componentIndex);v&&f.push(v),f.push({formatter:l.content});var h=e.positionDefault,d=mr(f,this._tooltipModel,h?{position:h}:null),p=d.get("content"),m=Math.random()+"",g=new Ai;this._showOrMove(d,function(){var y=ae(d.get("formatterParams")||{});this._showTooltipContent(d,p,y,m,e.offsetX,e.offsetY,e.position,a,g)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,a,i,n,o,s,l,u,c){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var f=this._tooltipContent;f.setEnterable(e.get("enterable"));var v=e.get("formatter");l=l||e.get("position");var h=a,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor"),e.get("defaultBorderColor",!0)),p=d.color;if(v)if(q(v)){var m=e.ecModel.get("useUTC"),g=H(i)?i[0]:i,y=g&&g.axisType&&g.axisType.indexOf("time")>=0;h=v,y&&(h=Ql(g.axisValue,h,m)),h=od(h,i,!0)}else if(re(v)){var _=te(function(b,S){b===this._ticket&&(f.setContent(S,c,e,p,l),this._updatePosition(e,l,o,s,f,i,u))},this);this._ticket=n,h=v(i,n,_)}else h=v;f.setContent(h,c,e,p,l),f.show(e,p),this._updatePosition(e,l,o,s,f,i,u)}},t.prototype._getNearestPoint=function(e,a,i,n,o){if(i==="axis"||H(a))return{color:n||o};if(!H(a))return{color:n||a.color||a.borderColor}},t.prototype._updatePosition=function(e,a,i,n,o,s,l){var u=this._api.getWidth(),c=this._api.getHeight();a=a||e.get("position");var f=o.getSize(),v=e.get("align"),h=e.get("verticalAlign"),d=l&&l.getBoundingRect
8().clone();if(l&&d.applyTransform(l.transform),re(a)&&(a=a([i,n],s,o.el,d,{viewSize:[u,c],contentSize:f.slice()})),H(a))i=Se(a[0],u),n=Se(a[1],c);else if(oe(a)){var p=a;p.width=f[0],p.height=f[1];var m=jt(p,{width:u,height:c});i=m.x,n=m.y,v=null,h=null}else if(q(a)&&l){var g=tb(a,d,f,e.get("borderWidth"));i=g[0],n=g[1]}else{var g=Q_(i,n,o,u,c,v?null:20,h?null:20);i=g[0],n=g[1]}if(v&&(i-=Il(v)?f[0]/2:v==="right"?f[0]:0),h&&(n-=Il(h)?f[1]/2:h==="bottom"?f[1]:0),Lf(e)){var g=eb(i,n,o,u,c);i=g[0],n=g[1]}o.moveTo(i,n)},t.prototype._updateContentNotChangedOnAxis=function(e,a){var i=this._lastDataByCoordSys,n=this._cbParamsList,o=!!i&&i.length===e.length;return o&&M(i,function(s,l){var u=s.dataByAxis||[],c=e[l]||{},f=c.dataByAxis||[];o=o&&u.length===f.length,o&&M(u,function(v,h){var d=f[h]||{},p=v.seriesDataIndices||[],m=d.seriesDataIndices||[];o=o&&v.value===d.value&&v.axisType===d.axisType&&v.axisId===d.axisId&&p.length===m.length,o&&M(p,function(g,y){var _=m[y];o=o&&g.seriesIndex===_.seriesIndex&&g.dataIndex===_.dataIndex}),n&&M(v.seriesDataIndices,function(g){var y=g.seriesIndex,_=a[y],b=n[y];_&&b&&b.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=a,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,this._cbParamsList=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,a){be.node||!a.getDom()||(on(this,"_updatePosition"),this._tooltipContent.dispose(),Tn("itemTooltip",a),this._tooltipContent=null,this._tooltipModel=null,this._lastDataByCoordSys=null,this._cbParamsList=null)},t.type="tooltip",t})(We);function mr(r,t,e){var a=t.ecModel,i;e?(i=new Ke(e,a,a),i=new Ke(t.option,i,a)):i=t;for(var n=r.length-1;n>=0;n--){var o=r[n];o&&(o instanceof Ke&&(o=o.get("tooltip",!0)),q(o)&&(o={formatter:o}),o&&(i=new Ke(o,i,a)))}return i}function Tl(r,t){return r.dispatchAction||te(t.dispatchAction,t)}function Q_(r,t,e,a,i,n,o){var s=e.getSize(),l=s[0],u=s[1];return n!=null&&(r+l+n+2>a?r-=l+n:r+=n),o!=null&&(t+u+o>i?t-=u+o:t+=o),[r,t]}function eb(r,t,e,a,i){var n=e.getSize(),o=n[0],s=n[1];return r=Math.min(r+o,a)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function tb(r,t,e,a){var i=e[0],n=e[1],o=Math.ceil(Math.SQRT2*a)+8,s=0,l=0,u=t.width,c=t.height;switch(r){case"inside":s=t.x+u/2-i/2,l=t.y+c/2-n/2;break;case"top":s=t.x+u/2-i/2,l=t.y-n-o;break;case"bottom":s=t.x+u/2-i/2,l=t.y+c+o;break;case"left":s=t.x-i-o,l=t.y+c/2-n/2;break;case"right":s=t.x+u+o,l=t.y+c/2-n/2}return[s,l]}function Il(r){return r==="center"||r==="middle"}function rb(r,t,e){var a=sd(r).queryOptionMap,i=a.keys()[0];if(!(!i||i==="series")){var n=Eu(t,i,a.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=n.models[0];if(o){var s=e.getViewOfComponentModel(o),l;if(s.group.traverse(function(u){var c=ie(u).tooltipConfig;if(c&&c.name===r.name)return l=u,!0}),l)return{componentMainType:i,componentIndex:o.componentIndex,el:l}}}}function ab(r){Ne(Mf),r.registerComponentModel(z_),r.registerComponentView(J_),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Ut),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Ut)}var Dl=M;function Ml(r){if(r){for(var t in r)if(r.hasOwnProperty(t))return!0}}function Ll(r,t,e){var a={};return Dl(t,function(n){var o=a[n]=i();Dl(r[n],function(s,l){if(pe.isValidType(l)){var u={type:l,visual:s};e&&e(u,n),o[l]=new pe(u),l==="opacity"&&(u=ae(u),u.type="colorAlpha",o.__hidden.__alphaForOpacity=new pe(u))}})}),a;function i(){var n=function(){};n.prototype.__hidden=n.prototype;var o=new n;return o}}function ib(r,t,e){var a;M(e,function(i){t.hasOwnProperty(i)&&Ml(t[i])&&(a=!0)}),a&&M(e,function(i){t.hasOwnProperty(i)&&Ml(t[i])?r[i]=ae(t[i]):delete r[i]})}function nb(r,t,e,a){var i={};return M(r,function(n){var o=pe.prepareVisualTypes(t[n]);i[n]=o}),{progress:function(o,s){var l;a!=null&&(l=s.getDimensionIndex(a));function u(S){return ld(s,f,S)}function c(S,w){ud(s,f,S,w)}for(var f,v=s.getStore();(f=o.next())!=null;){var h=s.getRawDataItem(f);if(!(h&&h.visualMap===!1))for(var d=a!=null?v.get(l,f):f,p=e(d),m=t[p],g=i[p],y=0,_=g.length;y<_;y++){var b=g[y];m[b]&&m[b].applyVisual(d,u,c)}}}}}function ob(r,t){if(!r)return!1;for(var e=H(r)?r:[r],a=0;a<e.length;a++)if(e[a]&&e[a][t])return!0;return!1}function la(r){cd(r,"label",["show"])}var ua=ge(),rr=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.createdBySelf=!1,e.preventAutoZ=!0,e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),this._mergeOption(e,i,!1,!0)},t.prototype.isAnimationEnabled=function(){if(be.node)return!1;var e=this.__hostSeries;
8return this.getShallow("animation")&&e&&e.isAnimationEnabled()},t.prototype.mergeOption=function(e,a){this._mergeOption(e,a,!1,!1)},t.prototype._mergeOption=function(e,a,i,n){var o=this.mainType;i||a.eachSeries(function(s){var l=s.get(this.mainType,!0),u=ua(s)[o];if(!l||!l.data){ua(s)[o]=null;return}u?u._mergeOption(l,a,!0):(n&&la(l),M(l.data,function(c){c instanceof Array?(la(c[0]),la(c[1])):la(c)}),u=this.createMarkerModelFromSeries(l,this,a),j(u,{mainType:this.mainType,seriesIndex:s.seriesIndex,name:s.name,createdBySelf:!0}),u.__hostSeries=s),ua(s)[o]=u},this)},t.prototype.formatTooltip=function(e,a,i){var n=this.getData(),o=this.getRawValue(e),s=n.getName(e);return Jt("section",{header:this.name,blocks:[Jt("nameValue",{name:s,value:o,noName:!s,noValue:o==null})]})},t.prototype.getData=function(){return this._data},t.prototype.setData=function(e){this._data=e},t.prototype.getDataParams=function(e,a){var i=Ru.prototype.getDataParams.call(this,e,a),n=this.__hostSeries;return n&&(i.seriesId=n.id,i.seriesName=n.name,i.seriesType=n.subType),i},t.getMarkerModelFromSeries=function(e,a){return ua(e)[a]},t.type="marker",t.dependencies=["series","grid","polar","geo"],t})(Pe);Yn(rr,Ru.prototype);function sb(r){return!(isNaN(parseFloat(r.x))&&isNaN(parseFloat(r.y)))}function lb(r){return!isNaN(parseFloat(r.x))&&!isNaN(parseFloat(r.y))}function ca(r,t,e,a,i,n,o){var s=[],l=Tt(t,i),u=l?t.getCalculationInfo("stackResultDimension"):i,c=Ja(t,u,r),f=t.hostModel,v=f.indicesOfNearest(e,u,c)[0];s[n]=t.get(a,v),s[o]=t.get(u,v);var h=t.get(i,v),d=En(t.get(i,v));return d=Math.min(d,20),d>=0&&(s[o]=+s[o].toFixed(d)),[s,h]}var fa={min:ne(ca,"min"),max:ne(ca,"max"),average:ne(ca,"average"),median:ne(ca,"median")};function kl(r,t){if(t){var e=r.getData(),a=r.coordinateSystem,i=a&&a.dimensions;if(!lb(t)&&!H(t.coord)&&H(i)){var n=Ef(t,e,a,r);if(t=ae(t),t.type&&fa[t.type]&&n.baseAxis&&n.valueAxis){var o=De(i,n.baseAxis.dim),s=De(i,n.valueAxis.dim),l=fa[t.type](e,n.valueAxis.dim,n.baseDataDim,n.valueDataDim,o,s);t.coord=l[0],t.value=l[1]}else t.coord=[t.xAxis!=null?t.xAxis:t.radiusAxis,t.yAxis!=null?t.yAxis:t.angleAxis]}if(t.coord==null||!H(i)){t.coord=[];var u=r.getBaseAxis();if(u&&t.type&&fa[t.type]){var c=a.getOtherAxis(u);c&&(t.value=Ja(e,e.mapDimension(c.dim),t.type))}}else for(var f=t.coord,v=0;v<2;v++)fa[f[v]]&&(f[v]=Ja(e,e.mapDimension(i[v]),f[v]));return t}}function Ef(r,t,e,a){var i={};return r.valueIndex!=null||r.valueDim!=null?(i.valueDataDim=r.valueIndex!=null?t.getDimension(r.valueIndex):r.valueDim,i.valueAxis=e.getAxis(ub(a,i.valueDataDim)),i.baseAxis=e.getOtherAxis(i.valueAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim)):(i.baseAxis=a.getBaseAxis(),i.valueAxis=e.getOtherAxis(i.baseAxis),i.baseDataDim=t.mapDimension(i.baseAxis.dim),i.valueDataDim=t.mapDimension(i.valueAxis.dim)),i}function ub(r,t){var e=r.getData().getDimensionInfo(t);return e&&e.coordDim}function Ol(r,t){return r&&r.containData&&t.coord&&!sb(t)?r.containData(t.coord):!0}function cb(r,t){return r?function(e,a,i,n){var o=n<2?e.coord&&e.coord[n]:e.value;return Wo(o,t[n])}:function(e,a,i,n){return Wo(e.value,t[n])}}function Ja(r,t,e){if(e==="average"){var a=0,i=0;return r.each(t,function(n,o){isNaN(n)||(a+=n,i++)}),a/i}else return e==="median"?r.getMedian(t):r.getDataExtent(t)[e==="max"?1:0]}var Xi=ge(),fb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(){this.markerGroupMap=se()},t.prototype.render=function(e,a,i){var n=this,o=this.markerGroupMap;o.each(function(s){Xi(s).keep=!1}),a.eachSeries(function(s){var l=rr.getMarkerModelFromSeries(s,n.type);l&&n.renderSeries(s,l,a,i)}),o.each(function(s){!Xi(s).keep&&n.group.remove(s.group)}),vb(a,o,this.type)},t.prototype.markKeep=function(e){Xi(e).keep=!0},t.prototype.toggleBlurSeries=function(e,a){var i=this;M(e,function(n){var o=rr.getMarkerModelFromSeries(n,i.type);if(o){var s=o.getData();s.eachItemGraphicEl(function(l){l&&(a?fd(l):vd(l))})}})},t.type="marker",t})(We);function vb(r,t,e){r.eachSeries(function(a){var i=rr.getMarkerModelFromSeries(a,e),n=t.get(a.id);if(i&&n&&n.group){var o=hd(i),s=o.z,l=o.zlevel;dd(n.group,s,l)}})}var hb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.createMarkerModelFromSeries=function(e,a,i){return new t(e,a,i)},t.type="markLine",t.defaultOption={z:5,symbol:["circle","arrow"],symbolSize:[8,16],symbolOffset:0,precision:2,tooltip:{trigger:"item"},label:{show:!0,position:"end",distance:5},lineStyle:{type:"dashed"},emphasis:{label:{show:!0},lineStyle:{width:3}},animationEasing:"linear"},t})(rr),va=ge(),db=function(r,t,e,a){var i=r.getData(),n;if(H(a))n=a;else{var o=a.type;if(o==="min"||o==="max"||o==="average"||o==="median"||a.xAxis!=null||a.yAxis!=null){var s=void 0,l=void 0;if(a.yAxis!=null||a.xAxis!=null)s=t.getAxis(a.yAxis!=null?"y":"x"),l=Zt(a.yAxis,a.xAxis);else{var u=Ef(a,i,t,r);s=u.valueAxis;var c=Hu(i,u.valueDataDim);l=Ja(i,c,o)}var f=s.dim==="x"?0:1,v=1-f,h=ae(a),d={coord:[]};h.type=null,h.coord=[],h.coord[v]=-1/0,d.coord[v]=1/0;var p=e.get("precision");p>=0&&$e(l)&&(l=+l.toFixed(Math.min(p,20))),h.coord[f]=d.coord[f]=l,n=[h,d,{type:o,valueIndex:a.valueIndex,value:l}]}else n=[]}var m=[kl(r,n[0]),kl(r,n[1]),j({},n[2])];return m[2].type=m[2].type||null,_e(m[2],m[0]),_e(m[2],m[1]),m};function Qa(r){return!isNaN(r)&&!isFinite(r)}function Pl(r,t,e,a){var i=1-r,n=a.dimensions[r];return Qa(t[i])&&Qa(e[i])&&t[r]===e[r]&&a.getAxis(n).containData(t[r])}function pb(r,t){if(r.type==="cartesian2d"){var e=t[0].coord,a=t[1].coord;if(e&&a&&(Pl(1,e,a,r)||Pl(0,e,a,r)))return!0}return Ol(r,t[0])&&Ol(r,t[1])}function Ki(r,t,e,a,i){var n=a.coordinateSystem,o=r.getItemModel(t),s,l=Se(o.get("x"),i.getWidth()),u=Se(o.get("y"),i.getHeight());if(!isNaN(l)&&!isNaN(u))s=[l,u];else{if(a.getMarkerPosition)s=a.getMarkerPosition(r.getValues(r.dimensions,t));else{var c=n.dimensions,f=r.get(c[0],t),v=r.get(c[1],t);s=n.dataToPoint([f,v])}if(go(n,"cartesian2d")){var h=n.getAxis("x"),d=n.getAxis("y"),c=n.dimensions;Qa(r.get(c[0],t))?s[0]=h.toGlobalCoord(h.getExtent()[e?0:1]):Qa(r.get(c[1],t))&&(s[1]=d.toGlobalCoord(d.getExtent()[e?0:1]))}isNaN(l)||(s[0]=l),isNaN(u)||(s[1]=u)}r.setItemLayout(t,s)}var gb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.updateTransform=function(e,a,i){a.eachSeries(function(n){var o=rr.getMarkerModelFromSeries(n,"markLine");if(o){var s=o.getData(),l=va(o).from,u=va(o).to;l.each(function(c){Ki(l,c,!0,n,i),Ki(u,c,!1,n,i)}),s.each(function(c){s.setItemLayout(c,[l.getItemLayout(c),u.getItemLayout(c)])}),this.markerGroupMap.get(n.id).updateLayout()}},this)},t.prototype.renderSeries=function(e,a,i,n){var o=e.coordinateSystem,s=e.id,l=e.getData(),u=this.markerGroupMap,c=u.get(s)||u.set(s,new l_);this.group.add(c.group);var f=mb(o,e,a),v=f.from,h=f.to,d=f.line;va(a).from=v,va(a).to=h,a.setData(d);var p=a.get("symbol"),m=a.get("symbolSize"),g=a.get("symbolRotate"),y=a.get("symbolOffset");H(p)||(p=[p,p]),H(m)||(m=[m,m]),H(g)||(g=[g,g]),H(y)||(y=[y,y]),f.from.each(function(b){_(v,b,!0),_(h,b,!1)}),d.each(function(b){var S=d.getItemModel(b),w=S.getModel("lineStyle").getLineStyle();d.setItemLayout(b,[v.getItemLayout(b),h.getItemLayout(b)]);var x=S.get("z2");w.stroke==null&&(w.stroke=v.getItemVisual(b,"style").fill),d.setItemVisual(b,{z2:J(x,0),fromSymbolKeepAspect:v.getItemVisual(b,"symbolKeepAspect"),fromSymbolOffset:v.getItemVisual(b,"symbolOffset"),fromSymbolRotate:v.getItemVisual(b,"symbolRotate"),fromSymbolSize:v.getItemVisual(b,"symbolSize"),fromSymbol
8:v.getItemVisual(b,"symbol"),toSymbolKeepAspect:h.getItemVisual(b,"symbolKeepAspect"),toSymbolOffset:h.getItemVisual(b,"symbolOffset"),toSymbolRotate:h.getItemVisual(b,"symbolRotate"),toSymbolSize:h.getItemVisual(b,"symbolSize"),toSymbol:h.getItemVisual(b,"symbol"),style:w})}),c.updateData(d),f.line.eachItemGraphicEl(function(b){ie(b).dataModel=a,b.traverse(function(S){ie(S).dataModel=a})});function _(b,S,w){var x=b.getItemModel(S);Ki(b,S,w,e,n);var I=x.getModel("itemStyle").getItemStyle();I.fill==null&&(I.fill=Nu(l,"color")),b.setItemVisual(S,{symbolKeepAspect:x.get("symbolKeepAspect"),symbolOffset:J(x.get("symbolOffset",!0),y[w?0:1]),symbolRotate:J(x.get("symbolRotate",!0),g[w?0:1]),symbolSize:J(x.get("symbolSize"),m[w?0:1]),symbol:J(x.get("symbol",!0),p[w?0:1]),style:I})}this.markKeep(c),c.group.silent=a.get("silent")||e.get("silent")},t.type="markLine",t})(fb);function mb(r,t,e){var a;r?a=F(r&&r.dimensions,function(u){var c=t.getData(),f=c.getDimensionInfo(c.mapDimension(u))||{};return j(j({},f),{name:u,ordinalMeta:null})}):a=[{name:"value",type:"float"}];var i=new xr(a,e),n=new xr(a,e),o=new xr([],e),s=F(e.get("data"),ne(db,t,r,e));r&&(s=Ct(s,ne(pb,r)));var l=cb(!!r,a);return i.initData(F(s,function(u){return u[0]}),null,l),n.initData(F(s,function(u){return u[1]}),null,l),o.initData(F(s,function(u){return u[2]})),o.hasItemOption=!0,{from:i,to:n,line:o}}function yb(r){r.registerComponentModel(hb),r.registerComponentView(gb),r.registerPreprocessor(function(t){ob(t.series,"markLine")&&(t.markLine=t.markLine||{})})}var _b=function(r,t){if(t==="all")return{type:"all",title:r.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:r.getLocaleModel().get(["legend","selector","inverse"])}},In=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.layoutMode={type:"box",ignoreSize:!0},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),this._updateSelector(e)},t.prototype._updateSelector=function(e){var a=e.selector,i=this.ecModel;a===!0&&(a=e.selector=["all","inverse"]),H(a)&&M(a,function(n,o){q(n)&&(n={type:n}),a[o]=_e(n,_b(i,n.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var a=!1,i=0;i<e.length;i++){var n=e[i].get("name");if(this.isSelected(n)){this.select(n),a=!0;break}}!a&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var a=[],i=[];e.eachRawSeries(function(l){var u=l.name;i.push(u);var c;if(l.legendVisualProvider){var f=l.legendVisualProvider,v=f.getAllNames();e.isSeriesFiltered(l)||(i=i.concat(v)),v.length?a=a.concat(v):c=!0}else c=!0;c&&pd(l)&&a.push(l.name)}),this._availableNames=i;var n=this.get("data")||a,o=se(),s=F(n,function(l){return(q(l)||$e(l))&&(l={name:l}),o.get(l.name)?null:(o.set(l.name,!0),new Ke(l,this,this.ecModel))},this);this._data=Ct(s,function(l){return!!l})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var a=this.option.selected,i=this.get("selectedMode");if(i==="single"){var n=this._data;M(n,function(o){a[o.get("name")]=!1})}a[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var a=this.option.selected;a.hasOwnProperty(e)||(a[e]=!0),this[a[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,a=this.option.selected;M(e,function(i){a[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,a=this.option.selected;M(e,function(i){var n=i.get("name",!0);a.hasOwnProperty(n)||(a[n]=!0),a[n]=!a[n]})},t.prototype.isSelected=function(e){var a=this.option.selected;return!(a.hasOwnProperty(e)&&!a[e])&&De(this._availableNames,e)>=0},t.prototype.getOrient=function(){return this.get("orient")==="vertical"?{index:1,name:"vertical"}:{index:0,name:"horizontal"}},t.type="legend.plain",t.dependencies=["series"],t.defaultOption={z:4,show:!0,orient:"horizontal",left:"center",bottom:W.size.m,align:"auto",backgroundColor:W.color.transparent,borderColor:W.color.border,borderRadius:0,borderWidth:0,padding:5,itemGap:8,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:W.color.disabled,inactiveBorderColor:W.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:W.color.disabled,inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miter
8Limit:"inherit"},textStyle:{color:W.color.secondary},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:W.color.tertiary,borderWidth:1,borderColor:W.color.border},emphasis:{selectorLabel:{show:!0,color:W.color.quaternary}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1},triggerEvent:!1},t})(Pe),Et=ne,Dn=M,ha=le,Rf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!1,e}return t.prototype.init=function(){this.group.add(this._contentGroup=new ha),this.group.add(this._selectorGroup=new ha),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,a,i){var n=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!e.get("show",!0)){var o=e.get("align"),s=e.get("orient");(!o||o==="auto")&&(o=e.get("left")==="right"&&s==="vertical"?"right":"left");var l=e.get("selector",!0),u=e.get("selectorPosition",!0);l&&(!u||u==="auto")&&(u=s==="horizontal"?"end":"start"),this.renderInner(o,e,a,i,l,s,u);var c=li(e,i).refContainer,f=e.getBoxLayoutParams(),v=e.get("padding"),h=jt(f,c,v),d=this.layoutInner(e,o,h,n,l,u),p=jt(fe({width:d.width,height:d.height},f),c,v);this.group.x=p.x-d.x,this.group.y=p.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=B_(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,a,i,n,o,s,l){var u=this.getContentGroup(),c=se(),f=a.get("selectedMode"),v=a.get("triggerEvent"),h=[];i.eachRawSeries(function(d){!d.get("legendHoverLink")&&h.push(d.id)}),Dn(a.getData(),function(d,p){var m=this,g=d.get("name");if(!this.newlineDisabled&&(g===""||g===`
9`)){var y=new ha;y.newline=!0,u.add(y);return}var _=i.getSeriesByName(g)[0];if(!c.get(g))if(_){var b=_.getData(),S=b.getVisual("legendLineStyle")||{},w=b.getVisual("legendIcon"),x=b.getVisual("style"),I=this._createItem(_,g,p,d,a,e,S,x,w,f,n);I.on("click",Et(El,g,null,n,h)).on("mouseover",Et(Mn,_.name,null,n,h)).on("mouseout",Et(Ln,_.name,null,n,h)),i.ssr&&I.eachChild(function(T){var C=ie(T);C.seriesIndex=_.seriesIndex,C.dataIndex=p,C.ssrType="legend"}),v&&I.eachChild(function(T){m.packEventData(T,a,_,p,g)}
9),c.set(g,!0)}else i.eachRawSeries(function(T){var C=this;if(!c.get(g)&&T.legendVisualProvider){var A=T.legendVisualProvider;if(!A.containName(g))return;var k=A.indexOfName(g),D=A.getItemVisual(k,"style"),R=A.getItemVisual(k,"legendIcon"),E=Iu(D.fill);E&&E[3]===0&&(E[3]=.2,D=j(j({},D),{fill:_a(E,"rgba")}));var N=this._createItem(T,g,p,d,a,e,{},D,R,f,n);N.on("click",Et(El,null,g,n,h)).on("mouseover",Et(Mn,null,g,n,h)).on("mouseout",Et(Ln,null,g,n,h)),i.ssr&&N.eachChild(function(P){var O=ie(P);O.seriesIndex=T.seriesIndex,O.dataIndex=p,O.ssrType="legend"}),v&&N.eachChild(function(P){C.packEventData(P,a,T,p,g)}),c.set(g,!0)}},this)},this),o&&this._createSelector(o,a,n,s,l)},t.prototype.packEventData=function(e,a,i,n,o){var s={componentType:"legend",componentIndex:a.componentIndex,dataIndex:n,value:o,seriesIndex:i.seriesIndex};ie(e).eventData=s},t.prototype._createSelector=function(e,a,i,n,o){var s=this.getSelectorGroup();Dn(e,function(u){var c=u.type,f=new Ae({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:c==="all"?"legendAllSelect":"legendInverseSelect",legendId:a.id})}});s.add(f);var v=a.getModel("selectorLabel"),h=a.getModel(["emphasis","selectorLabel"]);nr(f,{normal:v,emphasis:h},{defaultText:u.title}),Uo(f)})},t.prototype._createItem=function(e,a,i,n,o,s,l,u,c,f,v){var h=e.visualDrawType,d=o.get("itemWidth"),p=o.get("itemHeight"),m=o.isSelected(a),g=n.get("symbolRotate"),y=n.get("symbolKeepAspect"),_=n.get("icon");c=_||c||"roundRect";var b=bb(c,n,l,u,h,m,v),S=new ha,w=n.getModel("textStyle");if(re(e.getLegendIcon)&&(!_||_==="inherit"))S.add(e.getLegendIcon({itemWidth:d,itemHeight:p,icon:c,iconRotate:g,itemStyle:b.itemStyle,lineStyle:b.lineStyle,symbolKeepAspect:y}));else{var x=_==="inherit"&&e.getData().getVisual("symbol")?g==="inherit"?e.getData().getVisual("symbolRotate"):g:0;S.add(xb({itemWidth:d,itemHeight:p,icon:c,iconRotate:x,itemStyle:b.itemStyle,symbolKeepAspect:y}))}var I=s==="left"?d+5:-5,T=s,C=o.get("formatter"),A=a;q(C)&&C?A=C.replace("{name}",a??""):re(C)&&(A=C(a));var k=m?w.getTextColor():n.get("inactiveColor");S.add(new Ae({style:Je(w,{text:A,x:I,y:p/2,fill:k,align:T,verticalAlign:"middle"},{inheritColor:k})}));var D=new Ce({shape:S.getBoundingRect(),style:{fill:"transparent"}}),R=n.getModel("tooltip");return R.get("show")&&Wn({el:D,componentModel:o,itemName:a,itemTooltipOption:R.option}),S.add(D),S.eachChild(function(E){E.silent=!0}),D.silent=!f,this.getContentGroup().add(S),Uo(S),S.__legendDataIndex=i,S},t.prototype.layoutInner=function(e,a,i,n,o,s){var l=this.getContentGroup(),u=this.getSelectorGroup();Gt(e.get("orient"),l,e.get("itemGap"),i.width,i.height);var c=l.getBoundingRect(),f=[-c.x,-c.y];if(u.markRedraw(),l.markRedraw(),o){Gt("horizontal",u,e.get("selectorItemGap",!0));var v=u.getBoundingRect(),h=[-v.x,-v.y],d=e.get("selectorButtonGap",!0),p=e.getOrient().index,m=p===0?"width":"height",g=p===0?"height":"width",y=p===0?"y":"x";s==="end"?h[p]+=c[m]+d:f[p]+=v[m]+d,h[1-p]+=c[g]/2-v[g]/2,u.x=h[0],u.y=h[1],l.x=f[0],l.y=f[1];var _={x:0,y:0};return _[m]=c[m]+d+v[m],_[g]=Math.max(c[g],v[g]),_[y]=Math.min(0,v[y]+h[1-p]),_}else return l.x=f[0],l.y=f[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(We);function bb(r,t,e,a,i,n,o){function s(m,g){m.lineWidth==="auto"&&(m.lineWidth=g.lineWidth>0?2:0),Dn(m,function(y,_){m[_]==="inherit"&&(m[_]=g[_])})}var l=t.getModel("itemStyle"),u=l.getItemStyle(),c=r.lastIndexOf("empty",0)===0?"fill":"stroke",f=l.getShallow("decal");u.decal=!f||f==="inherit"?a.decal:gd(f,o),u.fill==="inherit"&&(u.fill=a[i]),u.stroke==="inherit"&&(u.stroke=a[c]),u.opacity==="inherit"&&(u.opacity=(i==="fill"?a:e).opacity),s(u,a);var v=t.getModel("lineStyle"),h=v.getLineStyle();if(s(h,e),u.fill==="auto"&&(u.fill=a.fill),u.stroke==="auto"&&(u.stroke=a.fill),h.stroke==="auto"&&(h.stroke=a.fill),!n){var d=t.get("inactiveBorderWidth"),p=u[c];u.lineWidth=d==="auto"?a.lineWidth>0&&p?2:0:u.lineWidth,u.fill=t.get("inactiveColor"),u.stroke=t.get("inactiveBorderColor"),h.stroke=v.get("inactiveColor"),h.lineWidth=v.get("inactiveWidth")}return{itemStyle:u,lineStyle:h}}function xb(r){var t=r.icon||"roundRect",e=Ue(t,0,0,r.itemWidth,r.itemHeight,r.itemStyle.fill,r.symbolKeepAspect);return e.setStyle(r.itemStyle),e.rotation=(r.iconRotate||0)*Math.PI/180,e.setOrigin([r.itemWidth/2,r.itemHeight/2]),t.indexOf("empty")>-1&&(e.style.stroke=e.style.fill,e.style.fill=W.color.neutral00,e.style.lineWidth=2),e}function El(r,t,e,a){Ln(r,t,e,a),e.dispatchAction({type:"legendToggleSelect",name:r??t}),Mn(r,t,e,a)}function Mn(r,t,e,a){e.usingTHL()||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:a})}function Ln(r,t,e,a){e.usingTHL()||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:a})}function yr(r,t,e){var a=r==="allSelect"||r==="inverseSelect",i={},n=[];e.eachComponent({mainType:"legend",query:t},function(s){a?s[r]():s[r](t.name),Rl(s,i),n.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){M(i,function(l,u){s[l?"select":"unSelect"](u)}),Rl(s,o)}),a?{selected:o,legendIndex:n}:{name:t.name,selected:o}}function Rl(r,t){var e=t||{};return M(r.getData(),function(a){var i=a.get("name");if(!(i===`
10`||i==="")){var n=r.isSelected(i);ti(e,i)?e[i]=e[i]&&n:e[i]=n}}),e}function Sb(r){r.registerAction("legendToggleSelect","legendselectchanged",ne(yr,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",ne(yr,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",ne(yr,"inverseSelect")),r.registerAction("legendSelect","legendselected",ne(yr,"select")),r.registerAction("legendUnSelect","legendunselected",ne(yr,"unSelect"))}var wb=md(Ab);function Ab(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var a=0;a<t.length;a++)if(!t[a].isSelected(e.name))return!1;return!0})}function Nf(r){r.registerComponentModel(In),r.registerComponentView(Rf),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,wb),r.registerSubTypeDefaulter("legend",function(){return"plain"}),Sb(r)}var Cb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.setScrollDataIndex=function(e){this.option.scrollDataIndex=e},t.prototype.init=function(e,a,i){var n=$n(e);r.prototype.init.call(this,e,a,i),Nl(this,e,n)},t.prototype.mergeOption=function(e,a){r.prototype.mergeOption.call(this,e,a),Nl(this,this.option,e)},t.type="legend.scroll",t.defaultOption=si(In.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:W.color.accent50,pageIconInactiveColor:W.color.accent10,pageIconSize:15,pageTextStyle:{color:W.color.tert
10iary},animationDurationUpdate:800}),t})(In);function Nl(r,t,e){var a=r.getOrient(),i=[1,1];i[a.index]=0,Va(t,e,{type:"box",ignoreSize:!!i})}var Vl=le,Zi=["width","height"],qi=["x","y"],Tb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.newlineDisabled=!0,e._currentIndex=0,e}return t.prototype.init=function(){r.prototype.init.call(this),this.group.add(this._containerGroup=new Vl),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new Vl)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,a,i,n,o,s,l){var u=this;r.prototype.renderInner.call(this,e,a,i,n,o,s,l);var c=this._controllerGroup,f=a.get("pageIconSize",!0),v=H(f)?f:[f,f];d("pagePrev",0);var h=a.getModel("pageTextStyle");c.add(new Ae({name:"pageText",style:{text:"xx/xx",fill:h.getTextColor(),font:h.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(p,m){var g=p+"DataIndex",y=Mu(a.get("pageIcons",!0)[a.getOrient().name][m],{onclick:te(u._pageGo,u,g,a,n)},{x:-v[0]/2,y:-v[1]/2,width:v[0],height:v[1]});y.name=p,c.add(y)}},t.prototype.layoutInner=function(e,a,i,n,o,s){var l=this.getSelectorGroup(),u=e.getOrient().index,c=Zi[u],f=qi[u],v=Zi[1-u],h=qi[1-u];o&&Gt("horizontal",l,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),p=l.getBoundingRect(),m=[-p.x,-p.y],g=ae(i);o&&(g[c]=i[c]-p[c]-d);var y=this._layoutContentAndController(e,n,g,u,c,v,h,f);if(o){if(s==="end")m[u]+=y[c]+d;else{var _=p[c]+d;m[u]-=_,y[f]-=_}y[c]+=p[c]+d,m[1-u]+=y[h]+y[v]/2-p[v]/2,y[v]=Math.max(y[v],p[v]),y[h]=Math.min(y[h],p[h]+m[1-u]),l.x=m[0],l.y=m[1],l.markRedraw()}return y},t.prototype._layoutContentAndController=function(e,a,i,n,o,s,l,u){var c=this.getContentGroup(),f=this._containerGroup,v=this._controllerGroup;Gt(e.get("orient"),c,e.get("itemGap"),n?i.width:null,n?null:i.height),Gt("horizontal",v,e.get("pageButtonItemGap",!0));var h=c.getBoundingRect(),d=v.getBoundingRect(),p=this._showController=h[o]>i[o],m=[-h.x,-h.y];a||(m[n]=c[u]);var g=[0,0],y=[-d.x,-d.y],_=J(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(p){var b=e.get("pageButtonPosition",!0);b==="end"?y[n]+=i[o]-d[o]:g[n]+=d[o]+_}y[1-n]+=h[s]/2-d[s]/2,c.setPosition(m),f.setPosition(g),v.setPosition(y);var S={x:0,y:0};if(S[o]=p?i[o]:h[o],S[s]=Math.max(h[s],d[s]),S[l]=Math.min(0,d[l]+y[1-n]),f.__rectSize=i[o],p){var w={x:0,y:0};w[o]=Math.max(i[o]-d[o]-_,0),w[s]=S[s],f.setClipPath(new Ce({shape:w})),f.__rectSize=w[o]}else v.eachChild(function(I){I.attr({invisible:!0,silent:!0})});var x=this._getPageInfo(e);return x.pageIndex!=null&&xe(c,{x:x.contentPosition[0],y:x.contentPosition[1]},p?e:null),this._updatePageInfoView(e,x),S},t.prototype._pageGo=function(e,a,i){var n=this._getPageInfo(a)[e];n!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:n,legendId:a.id})},t.prototype._updatePageInfoView=function(e,a){var i=this._controllerGroup;M(["pagePrev","pageNext"],function(c){var f=c+"DataIndex",v=a[f]!=null,h=i.childOfName(c);h&&(h.setStyle("fill",v?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),h.cursor=v?"pointer":"default")});var n=i.childOfName("pageText"),o=e.get("pageFormatter"),s=a.pageIndex,l=s!=null?s+1:0,u=a.pageCount;n&&o&&n.setStyle("text",q(o)?o.replace("{current}",l==null?"":l+"").replace("{total}",u==null?"":u+""):o({current:l,total:u}))},t.prototype._getPageInfo=function(e){var a=e.get("scrollDataIndex",!0),i=this.getContentGroup(),n=this._containerGroup.__rectSize,o=e.getOrient().index,s=Zi[o],l=qi[o],u=this._findTargetItemIndex(a),c=i.children(),f=c[u],v=c.length,h=v?1:0,d={contentPosition:[i.x,i.y],pageCount:h,pageIndex:h-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!f)return d;var p=b(f);d.contentPosition[o]=-p.s;for(var m=u+1,g=p,y=p,_=null;m<=v;++m)_=b(c[m]),(!_&&y.e>g.s+n||_&&!S(_,g.s))&&(y.i>g.i?g=y:g=_,g&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=g.i),++d.pageCount)),y=_;for(var m=u-1,g=p,y=p,_=null;m>=-1;--m)_=b(c[m]),(!_||!S(y,_.s))&&g.i<y.i&&(y=g,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=g.i),++d.pageCount,++d.pageIndex),g=_;return d;
10function b(w){if(w){var x=w.getBoundingRect(),I=x[l]+w[l];return{s:I,e:I+x[s],i:w.__legendDataIndex}}}function S(w,x){return w.e>=x&&w.s<=x+n}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var a,i=this.getContentGroup(),n;return i.eachChild(function(o,s){var l=o.__legendDataIndex;n==null&&l!=null&&(n=s),l===e&&(a=s)}),a??n},t.type="legend.scroll",t})(Rf);function Ib(r){r.registerAction("legendScroll","legendscroll",function(t,e){var a=t.scrollDataIndex;a!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(a)})})}function Db(r){Ne(Nf),r.registerComponentModel(Cb),r.registerComponentView(Tb),Ib(r)}function Mb(r){Ne(Nf),Ne(Db)}var Vf={get:function(r,t,e){var a=ae((Lb[r]||{})[t]);return e&&H(a)?a[a.length-1]:a}},Lb={color:{active:["#006edd","#e0ffff"],inactive:[W.color.transparent]},colorHue:{active:[0,360],inactive:[0,0]},colorSaturation:{active:[.3,1],inactive:[0,0]},colorLightness:{active:[.9,.5],inactive:[0,0]},colorAlpha:{active:[.3,1],inactive:[0,0]},opacity:{active:[.3,1],inactive:[0,0]},symbol:{active:["circle","roundRect","diamond"],inactive:["none"]},symbolSize:{active:[10,50],inactive:[0,0]}},Bl=pe.mapVisual,kb=pe.eachVisual,Ob=H,ji=M,Pb=ai,Eb=tt,ei=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.stateList=["inRange","outOfRange"],e.replacableOptionKeys=["inRange","outOfRange","target","controller","color"],e.layoutMode={type:"box",ignoreSize:!0},e.dataBound=[-1/0,1/0],e.targetVisuals={},e.controllerVisuals={},e}return t.prototype.init=function(e,a,i){this.mergeDefaultAndTheme(e,i)},t.prototype.optionUpdated=function(e,a){var i=this.option;!a&&ib(i,e,this.replacableOptionKeys),this.textStyleModel=this.getModel("textStyle"),this.resetItemSize(),this.completeVisualOption()},t.prototype.resetVisual=function(e){var a=this.stateList;e=te(e,this),this.controllerVisuals=Ll(this.option.controller,a,e),this.targetVisuals=Ll(this.option.target,a,e)},t.prototype.getItemSymbol=function(){return null},t.prototype.getTargetSeriesIndices=function(){var e=this,a=this.option.seriesTargets;if(a){var i=[];return ji(a,function(l){if(l.seriesIndex!=null)i.push(l.seriesIndex);else if(l.seriesId!=null){var u;e.ecModel.eachSeries(function(c){c.id===l.seriesId&&(u=c)}),u&&i.push(u.componentIndex)}}),i}var n=this.option.seriesId,o=this.option.seriesIndex;o==null&&n==null&&(o="all");var s=Eu(this.ecModel,"series",{index:o,id:n},{useDefault:!1,enableAll:!0,enableNone:!1}).models;return F(s,function(l){return l.componentIndex})},t.prototype.eachTargetSeries=function(e,a){M(this.getTargetSeriesIndices(),function(i){var n=this.ecModel.getSeriesByIndex(i);n&&e.call(a,n)},this)},t.prototype.isTargetSeries=function(e){var a=!1;return this.eachTargetSeries(function(i){i===e&&(a=!0)}),a},t.prototype.formatValueText=function(e,a,i){var n=this.option,o=n.precision,s=this.dataBound,l=n.formatter,u;i=i||["<",">"],H(e)&&(e=e.slice(),u=!0);var c=a?e:u?[f(e[0]),f(e[1])]:f(e);if(q(l))return l.replace("{value}",u?c[0]:c).replace("{value2}",u?c[1]:c);if(re(l))return u?l(e[0],e[1]):l(e);if(u)return e[0]===s[0]?i[0]+" "+c[1]:e[1]===s[1]?i[1]+" "+c[0]:c[0]+" - "+c[1];return c;function f(v){return v===s[0]?"min":v===s[1]?"max":(+v).toFixed(Math.min(o,20))}},t.prototype.resetExtent=function(){var e=this.option,a=Pb([e.min,e.max]);this._dataExtent=a},t.prototype.getDimension=function(e){var a=this,i=this.option.seriesTargets;if(i){var n=Xn(i,function(o){return o.seriesIndex!=null&&o.seriesIndex===e||o.seriesId!=null&&o.seriesId===a.ecModel.getSeriesByIndex(e).id});if(n)return n.dimension}return this.option.dimension},t.prototype.getDataDimensionIndex=function(e){var a=e.hostModel.seriesIndex,i=this.getDimension(a);if(i!=null)return e.getDimensionIndex(i);for(var n=e.dimensions,o=n.length-1;o>=0;o--){var s=n[o],l=e.getDimensionInfo(s);if(!l.isCalculationCoord)return l.storeDimIndex}},t.prototype.getExtent=function(){return this._dataExtent.slice()},t.prototype.completeVisualOption=function(){var e=this.ecModel,a=this.option,i={inRange:a.inRange,outOfRange:a.outOfRange},n=a.target||(a.target={}),o=a.controller||(a.controller={});_e(n,i),_e(o,i);var s=this.isCategory();l.call(this,n),l.call(this,o),u.call(this,n,"inRange","outOfRange"),c.call(this,o);function l(f){Ob(a.color)&&!f.inRange&&(f.inRange={color:a.color.slice().reverse()}),f.inRange=f.inRange||{color:e.get("gradientColor")}}function u(f,v,h){var d=f[v],p=f[h];d&&!p&&(p=f[h]={},ji(d,function(m,g){if(pe.isValidType(g)){var y=Vf.get(g,"inactive",s);y!=null&&(p[g]=y,g==="color"&&!p.hasOwnProperty("opacity")&&!p.hasOwnProperty("colorAlpha")&&(p.opacity=[0,0]))}}))}function c(f){var v=(f.inRange||{}).symbol||(f.outOfRange||{}).symbol,h=(f.inRange||{}).symbolSize||(f.outOfRange||{}).symbolSize,d=this.get("inactiveColor"),p=this.getItemSymbol(),m=p||"roundRect";ji(this.stateList,function(g){var y=this.itemSize,_=f[g];_||(_=f[g]={color:s?d:[d]}),_.symbol==null&&(_.symbol=v&&ae(v)||(s?m:[m])),_.symbolSize==null&&(_.symbolSize=h&&ae(h)||(s?y[0]:[y[0],y[0]])),_.symbol=Bl(_.symbol,function(w){return w==="none"?m:w});var b=_.symbolSize;if(b!=null){var S=-1/0;
10kb(b,function(w){w>S&&(S=w)}),_.symbolSize=Bl(b,function(w){return Eb(w,[0,S],[0,y[0]],!0)})}},this)}},t.prototype.resetItemSize=function(){this.itemSize=[parseFloat(this.get("itemWidth")),parseFloat(this.get("itemHeight"))]},t.prototype.isCategory=function(){return!!this.option.categories},t.prototype.setSelected=function(e){},t.prototype.getSelected=function(){return null},t.prototype.getValueState=function(e){return null},t.prototype.getVisualMeta=function(e){return null},t.type="visualMap",t.dependencies=["series"],t.defaultOption={show:!0,z:4,min:0,max:200,left:0,right:null,top:null,bottom:0,itemWidth:null,itemHeight:null,inverse:!1,orient:"vertical",backgroundColor:W.color.transparent,borderColor:W.color.borderTint,contentColor:W.color.theme[0],inactiveColor:W.color.disabled,borderWidth:0,padding:W.size.m,textGap:10,precision:0,textStyle:{color:W.color.secondary}},t})(Pe),zl=[20,140],Rb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent(),this.resetVisual(function(i){i.mappingMethod="linear",i.dataExtent=this.getExtent()}),this._resetRange()},t.prototype.resetItemSize=function(){r.prototype.resetItemSize.apply(this,arguments);var e=this.itemSize;(e[0]==null||isNaN(e[0]))&&(e[0]=zl[0]),(e[1]==null||isNaN(e[1]))&&(e[1]=zl[1])},t.prototype._resetRange=function(){var e=this.getExtent(),a=this.option.range;!a||a.auto?(e.auto=1,this.option.range=e):H(a)&&(a[0]>a[1]&&a.reverse(),a[0]=Math.max(a[0],e[0]),a[1]=Math.min(a[1],e[1]))},t.prototype.completeVisualOption=function(){r.prototype.completeVisualOption.apply(this,arguments),M(this.stateList,function(e){var a=this.option.controller[e].symbolSize;a&&a[0]!==a[1]&&(a[0]=a[1]/3)},this)},t.prototype.setSelected=function(e){this.option.range=e.slice(),this._resetRange()},t.prototype.getSelected=function(){var e=this.getExtent(),a=ai((this.get("range")||[]).slice());return a[0]>e[1]&&(a[0]=e[1]),a[1]>e[1]&&(a[1]=e[1]),a[0]<e[0]&&(a[0]=e[0]),a[1]<e[0]&&(a[1]=e[0]),a},t.prototype.getValueState=function(e){var a=this.option.range,i=this.getExtent(),n=J(this.option.unboundedRange,!0);return(n&&a[0]<=i[0]||a[0]<=e)&&(n&&a[1]>=i[1]||e<=a[1])?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[];return this.eachTargetSeries(function(i){var n=[],o=i.getData();o.each(this.getDataDimensionIndex(o),function(s,l){e[0]<=s&&s<=e[1]&&n.push(l)},this),a.push({seriesId:i.id,dataIndex:n})},this),a},t.prototype.getVisualMeta=function(e){var a=Gl(this,"outOfRange",this.getExtent()),i=Gl(this,"inRange",this.option.range.slice()),n=[];function o(h,d){n.push({value:h,color:e(h,d)})}for(var s=0,l=0,u=i.length,c=a.length;l<c&&(!i.length||a[l]<=i[0]);l++)a[l]<i[s]&&o(a[l],"outOfRange");for(var f=1;s<u;s++,f=0)f&&n.length&&o(i[s],"outOfRange"),o(i[s],"inRange");for(var f=1;l<c;l++)(!i.length||i[i.length-1]<a[l])&&(f&&(n.length&&o(n[n.length-1].value,"outOfRange"),f=0),o(a[l],"outOfRange"));var v=n.length;return{stops:n,outerColors:[v?n[0].color:"transparent",v?n[v-1].color:"transparent"]}},t.type="visualMap.continuous",t.defaultOption=si(ei.defaultOption,{align:"auto",calculable:!1,hoverLink:!0,realtime:!0,handleIcon:"path://M-11.39,9.77h0a3.5,3.5,0,0,1-3.5,3.5h-22a3.5,3.5,0,0,1-3.5-3.5h0a3.5,3.5,0,0,1,3.5-3.5h22A3.5,3.5,0,0,1-11.39,9.77Z",handleSize:"120%",handleStyle:{borderColor:W.color.neutral00,borderWidth:1},indicatorIcon:"circle",indicatorSize:"50%",indicatorStyle:{borderColor:W.color.neutral00,borderWidth:2,shadowBlur:2,shadowOffsetX:1,shadowOffsetY:1,shadowColor:W.color.shadow}}),t})(ei);function Gl(r,t,e){if(e[0]===e[1])return e.slice();for(var a=200,i=(e[1]-e[0])/a,n=e[0],o=[],s=0;s<=a&&n<e[1];s++)o.push(n),n+=i;return o.push(e[1]),o}var Bf=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e.autoPositionValues={left:1,right:1,top:1,bottom:1},e}return t.prototype.init=function(e,a){this.ecModel=e,this.api=a},t.prototype.render=function(e,a,i,n){if(this.visualMapModel=e,e.get("show")===!1){this.group.removeAll();return}this.doRender(e,a,i,n)}
10,t.prototype.renderBackground=function(e){var a=this.visualMapModel,i=ui(a.get("padding")||0),n=e.getBoundingRect();e.add(new Ce({z2:-1,silent:!0,shape:{x:n.x-i[3],y:n.y-i[0],width:n.width+i[3]+i[1],height:n.height+i[0]+i[2]},style:{fill:a.get("backgroundColor"),stroke:a.get("borderColor"),lineWidth:a.get("borderWidth")}}))},t.prototype.getControllerVisual=function(e,a,i){i=i||{};var n=i.forceState,o=this.visualMapModel,s={};if(a==="color"){var l=o.get("contentColor");s.color=l}function u(h){return s[h]}function c(h,d){s[h]=d}var f=o.controllerVisuals[n||o.getValueState(e)],v=pe.prepareVisualTypes(f);return M(v,function(h){var d=f[h];i.convertOpacityToAlpha&&h==="opacity"&&(h="colorAlpha",d=f.__alphaForOpacity),pe.dependsOn(h,a)&&d&&d.applyVisual(e,u,c)}),s[a]},t.prototype.positionGroup=function(e){var a=this.visualMapModel,i=this.api,n=li(a,i).refContainer;yd(e,a.getBoxLayoutParams(),n)},t.prototype.doRender=function(e,a,i,n){},t.type="visualMap",t})(We),Fl=[["left","right","width"],["top","bottom","height"]];function zf(r,t,e){var a=r.option,i=a.align;if(i!=null&&i!=="auto")return i;for(var n={width:t.getWidth(),height:t.getHeight()},o=a.orient==="horizontal"?1:0,s=Fl[o],l=[0,null,10],u={},c=0;c<3;c++)u[Fl[1-o][c]]=l[c],u[s[c]]=c===2?e[0]:a[s[c]];var f=[["x","width",3],["y","height",0]][o],v=jt(u,n,a.padding);return s[(v.margin[f[2]]||0)+v[f[0]]+v[f[1]]*.5<n[f[1]]*.5?0:1]}function Ca(r,t){return M(r||[],function(e){e.dataIndex!=null&&(e.dataIndexInside=e.dataIndex,e.dataIndex=null),e.highlightKey="visualMap"+(t?t.componentIndex:"")}),r}var Ge=tt,Nb=M,Hl=Math.min,Ji=Math.max,Vb=12,Bb=6,zb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._shapes={},e._dataInterval=[],e._handleEnds=[],e._hoverLinkDataIndices=[],e}return t.prototype.init=function(e,a){r.prototype.init.call(this,e,a),this._hoverLinkFromSeriesMouseOver=te(this._hoverLinkFromSeriesMouseOver,this),this._hideIndicator=te(this._hideIndicator,this)},t.prototype.doRender=function(e,a,i,n){(!n||n.type!=="selectDataRange"||n.from!==this.uid)&&this._buildView()},t.prototype._buildView=function(){this.group.removeAll();var e=this.visualMapModel,a=this.group;this._orient=e.get("orient"),this._useHandle=e.get("calculable"),this._resetInterval(),this._renderBar(a);var i=e.get("text");this._renderEndsText(a,i,0),this._renderEndsText(a,i,1),this._updateView(!0),this.renderBackground(a),this._updateView(),this._enableHoverLinkToSeries(),this._enableHoverLinkFromSeries(),this.positionGroup(a)},t.prototype._renderEndsText=function(e,a,i){if(a){var n=a[1-i];n=n!=null?n+"":"";var o=this.visualMapModel,s=o.get("textGap"),l=o.itemSize,u=this._shapes.mainGroup,c=this._applyTransform([l[0]/2,i===0?-s:l[1]+s],u),f=this._applyTransform(i===0?"bottom":"top",u),v=this._orient,h=this.visualMapModel.textStyleModel;this.group.add(new Ae({style:Je(h,{x:c[0],y:c[1],verticalAlign:h.get("verticalAlign")||(v==="horizontal"?"middle":f),align:h.get("align")||(v==="horizontal"?f:"center"),text:n})}))}},t.prototype._renderBar=function(e){var a=this.visualMapModel,i=this._shapes,n=a.itemSize,o=this._orient,s=this._useHandle,l=zf(a,this.api,n),u=i.mainGroup=this._createBarGroup(l),c=new le;u.add(c),c.add(i.outOfRange=Wl()),c.add(i.inRange=Wl(null,s?$l(this._orient):null,te(this._dragHandle,this,"all",!1),te(this._dragHandle,this,"all",!0))),c.setClipPath(new Ce({shape:{x:0,y:0,width:n[0],height:n[1],r:3}}));var f=a.textStyleModel.getTextRect("国"),v=Ji(f.width,f.height);s&&(i.handleThumbs=[],i.handleLabels=[],i.handleLabelPoints=[],this._createHandle(a,u,0,n,v,o),this._createHandle(a,u,1,n,v,o)),this._createIndicator(a,u,n,v,o),e.add(u)},t.prototype._createHandle=function(e,a,i,n,o,s){var l=te(this._dragHandle,this,i,!1),u=te(this._dragHandle,this,i,!0),c=La(e.get("handleSize"),n[0]),f=Ue(e.get("handleIcon"),-c/2,-c/2,c,c,null,!0),v=$l(this._orient);f.attr({cursor:v,draggable:!0,drift:l,ondragend:u,onmousemove:function(g){za(g.event)}}),f.x=n[0]/2,f.useStyle(e.getModel("handleStyle").getItemStyle()),f.setStyle({strokeNoScale:!0,strokeFirst:!0}),f.style.lineWidth*=2,f.ensureState("emphasis").style=e.getModel(["emphasis","handleStyle"]).getItemStyle(),_d(f,!0),a.add(f);var h=this.visualMapModel.textStyleModel,d=new Ae({cursor:v,draggable:!0,drift:l,onmousemove:function(g){za(g.event)},ondragend:u,style:Je(h,{x:0,y:0,text:""})});d.ensureState("blur").style={opacity:.1},d.stateTransition={duration:200},this.group.add(d);var p=[c,0],m=this._shapes;m.handleThumbs[i]=f,m.handleLabelPoints[i]=p,m.handleLabels[i]=d},t.prototype._createIndicator=function(e,a,i,n,o){var s=La(e.get("indicatorSize"),i[0]),l=Ue(e.get("indicatorIcon"),-s/2,-s/2,s,s,null,!0);l.attr({cursor:"move",invisible:!0,silent:!0,x:i[0]/2});var u=e.getModel("indicatorStyle").getItemStyle();if(l instanceof zr){var c=l.style;l.useStyle(j({image:c.image,x:c.x,y:c.y,width:c.width,height:c.height},u))}else l.useStyle(u);a.add(l);
10var f=this.visualMapModel.textStyleModel,v=new Ae({silent:!0,invisible:!0,style:Je(f,{x:0,y:0,text:""})});this.group.add(v);var h=[(o==="horizontal"?n/2:Bb)+i[0]/2,0],d=this._shapes;d.indicator=l,d.indicatorLabel=v,d.indicatorLabelPoint=h,this._firstShowIndicator=!0},t.prototype._dragHandle=function(e,a,i,n){if(this._useHandle){if(this._dragging=!a,!a){var o=this._applyTransform([i,n],this._shapes.mainGroup,!0);this._updateInterval(e,o[1]),this._hideIndicator(),this._updateView()}a===!this.visualMapModel.get("realtime")&&this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:this._dataInterval.slice()}),a?!this._hovering&&this._clearHoverLinkToSeries():Ul(this.visualMapModel)&&this._doHoverLinkToSeries(this._handleEnds[e],!1)}},t.prototype._resetInterval=function(){var e=this.visualMapModel,a=this._dataInterval=e.getSelected(),i=e.getExtent(),n=[0,e.itemSize[1]];this._handleEnds=[Ge(a[0],i,n,!0),Ge(a[1],i,n,!0)]},t.prototype._updateInterval=function(e,a){a=a||0;var i=this.visualMapModel,n=this._handleEnds,o=[0,i.itemSize[1]];c_(a,n,o,e,0);var s=i.getExtent();this._dataInterval=[Ge(n[0],o,s,!0),Ge(n[1],o,s,!0)]},t.prototype._updateView=function(e){var a=this.visualMapModel,i=a.getExtent(),n=this._shapes,o=[0,a.itemSize[1]],s=e?o:this._handleEnds,l=this._createBarVisual(this._dataInterval,i,s,"inRange"),u=this._createBarVisual(i,i,o,"outOfRange");n.inRange.setStyle({fill:l.barColor}).setShape("points",l.barPoints),n.outOfRange.setStyle({fill:u.barColor}).setShape("points",u.barPoints),this._updateHandle(s,l)},t.prototype._createBarVisual=function(e,a,i,n){var o={forceState:n,convertOpacityToAlpha:!0},s=this._makeColorGradient(e,o),l=[this.getControllerVisual(e[0],"symbolSize",o),this.getControllerVisual(e[1],"symbolSize",o)],u=this._createBarPoints(i,l);return{barColor:new Hn(0,0,0,1,s),barPoints:u,handlesColor:[s[0].color,s[s.length-1].color]}},t.prototype._makeColorGradient=function(e,a){var i=100,n=[],o=(e[1]-e[0])/i;n.push({color:this.getControllerVisual(e[0],"color",a),offset:0});for(var s=1;s<i;s++){var l=e[0]+o*s;if(l>e[1])break;n.push({color:this.getControllerVisual(l,"color",a),offset:s/i})}return n.push({color:this.getControllerVisual(e[1],"color",a),offset:1}),n},t.prototype._createBarPoints=function(e,a){var i=this.visualMapModel.itemSize;return[[i[0]-a[0],e[0]],[i[0],e[0]],[i[0],e[1]],[i[0]-a[1],e[1]]]},t.prototype._createBarGroup=function(e){var a=this._orient,i=this.visualMapModel.get("inverse");return new le(a==="horizontal"&&!i?{scaleX:e==="bottom"?1:-1,rotation:Math.PI/2}:a==="horizontal"&&i?{scaleX:e==="bottom"?-1:1,rotation:-Math.PI/2}:a==="vertical"&&!i?{scaleX:e==="left"?1:-1,scaleY:-1}:{scaleX:e==="left"?1:-1})},t.prototype._updateHandle=function(e,a){if(this._useHandle){var i=this._shapes,n=this.visualMapModel,o=i.handleThumbs,s=i.handleLabels,l=n.itemSize,u=n.getExtent(),c=this._applyTransform("left",i.mainGroup);Nb([0,1],function(f){var v=o[f];v.setStyle("fill",a.handlesColor[f]),v.y=e[f];var h=Ge(e[f],[0,l[1]],u,!0),d=this.getControllerVisual(h,"symbolSize");v.scaleX=v.scaleY=d/l[0],v.x=l[0]-d/2;var p=ba(i.handleLabelPoints[f],Ci(v,this.group));if(this._orient==="horizontal"){var m=c==="left"||c==="top"?(l[0]-d)/2:(l[0]-d)/-2;p[1]+=m}s[f].setStyle({x:p[0],y:p[1],text:n.formatValueText(this._dataInterval[f]),verticalAlign:"middle",align:this._orient==="vertical"?this._applyTransform("left",i.mainGroup):"center"})},this)}},t.prototype._showIndicator=function(e,a,i,n){var o=this.visualMapModel,s=o.getExtent(),l=o.itemSize,u=[0,l[1]],c=this._shapes,f=c.indicator;if(f){f.attr("invisible",!1);var v={convertOpacityToAlpha:!0},h=this.getControllerVisual(e,"color",v),d=this.getControllerVisual(e,"symbolSize"),p=Ge(e,s,u,!0),m=l[0]-d/2,g={x:f.x,y:f.y};f.y=p,f.x=m;var y=ba(c.indicatorLabelPoint,Ci(f,this.group)),_=c.indicatorLabel;_.attr("invisible",!1);var b=this._applyTransform("left",c.mainGroup),S=this._orient,w=S==="horizontal";_.setStyle({text:(i||"")+o.formatValueText(a),verticalAlign:w?b:"middle",align:w?"center":b});var x={x:m,y:p,style:{fill:h}},I={style:{x:y[0],y:y[1]}};if(o.ecModel.isAnimationEnabled()&&!this._firstShowIndicator){var T={duration:100,easing:"cubicInOut",additive:!0};f.x=g.x,f.y=g.y,f.animateTo(x,T),_.animateTo(I,T)}else f.attr(x),_.attr(I);this._firstShowIndicator=!1;var C=this._shapes.handleLabels;if(C)for(var A=0;A<C.length;A++)this.api.enterBlur(C[A])}},t.prototype._enableHoverLinkToSeries=function(){var e=this;
10this._shapes.mainGroup.on("mousemove",function(a){if(e._hovering=!0,!e._dragging){var i=e.visualMapModel.itemSize,n=e._applyTransform([a.offsetX,a.offsetY],e._shapes.mainGroup,!0,!0);n[1]=Hl(Ji(0,n[1]),i[1]),e._doHoverLinkToSeries(n[1],0<=n[0]&&n[0]<=i[0])}}).on("mouseout",function(){e._hovering=!1,!e._dragging&&e._clearHoverLinkToSeries()})},t.prototype._enableHoverLinkFromSeries=function(){var e=this.api.getZr();this.visualMapModel.option.hoverLink?(e.on("mouseover",this._hoverLinkFromSeriesMouseOver,this),e.on("mouseout",this._hideIndicator,this)):this._clearHoverLinkFromSeries()},t.prototype._doHoverLinkToSeries=function(e,a){var i=this.visualMapModel,n=i.itemSize;if(i.option.hoverLink){var o=[0,n[1]],s=i.getExtent();e=Hl(Ji(o[0],e),o[1]);var l=Gb(i,s,o),u=[e-l,e+l],c=Ge(e,o,s,!0),f=[Ge(u[0],o,s,!0),Ge(u[1],o,s,!0)];u[0]<o[0]&&(f[0]=-1/0),u[1]>o[1]&&(f[1]=1/0),a&&(f[0]===-1/0?this._showIndicator(c,f[1],"< ",l):f[1]===1/0?this._showIndicator(c,f[0],"> ",l):this._showIndicator(c,c,"≈ ",l));var v=this._hoverLinkDataIndices,h=[];(a||Ul(i))&&(h=this._hoverLinkDataIndices=i.findTargetDataIndices(f));var d=bd(v,h);this._dispatchHighDown("downplay",Ca(d[0],i)),this._dispatchHighDown("highlight",Ca(d[1],i))}},t.prototype._hoverLinkFromSeriesMouseOver=function(e){var a;if(Pu(e.target,function(l){var u=ie(l);if(u.dataIndex!=null)return a=u,!0},!0),!!a){var i=this.ecModel.getSeriesByIndex(a.seriesIndex),n=this.visualMapModel;if(n.isTargetSeries(i)){var o=i.getData(a.dataType),s=o.getStore().get(n.getDataDimensionIndex(o),a.dataIndex);isNaN(s)||this._showIndicator(s,s)}}},t.prototype._hideIndicator=function(){var e=this._shapes;e.indicator&&e.indicator.attr("invisible",!0),e.indicatorLabel&&e.indicatorLabel.attr("invisible",!0);var a=this._shapes.handleLabels;if(a)for(var i=0;i<a.length;i++)this.api.leaveBlur(a[i])},t.prototype._clearHoverLinkToSeries=function(){this._hideIndicator();var e=this._hoverLinkDataIndices;this._dispatchHighDown("downplay",Ca(e,this.visualMapModel)),e.length=0},t.prototype._clearHoverLinkFromSeries=function(){this._hideIndicator();var e=this.api.getZr();e.off("mouseover",this._hoverLinkFromSeriesMouseOver),e.off("mouseout",this._hideIndicator)},t.prototype._applyTransform=function(e,a,i,n){var o=Ci(a,n?null:this.group);return H(e)?ba(e,o,i):xd(e,o,i)},t.prototype._dispatchHighDown=function(e,a){a&&a.length&&this.api.dispatchAction({type:e,batch:a})},t.prototype.dispose=function(){this._clearHoverLinkFromSeries(),this._clearHoverLinkToSeries()},t.type="visualMap.continuous",t})(Bf);function Wl(r,t,e,a){return new Kn({shape:{points:r},draggable:!!e,cursor:t,drift:e,onmousemove:function(i){za(i.event)},ondragend:a})}function Gb(r,t,e){var a=Vb/2,i=r.get("hoverLinkDataSize");return i&&(a=Ge(i,t,e,!0)/2),a}function Ul(r){var t=r.get("hoverLinkOnHandle");return!!(t??r.get("realtime"))}function $l(r){return r==="vertical"?"ns-resize":"ew-resize"}var Fb={type:"selectDataRange",event:"dataRangeSelected",update:"update"},Hb=function(r,t){t.eachComponent({mainType:"visualMap",query:r},function(e){e.setSelected(r.selected)})},Wb=[{createOnAllSeries:!0,reset:function(r,t){var e=[];return t.eachComponent("visualMap",function(a){var i=r.pipelineContext;!a.isTargetSeries(r)||i&&i.large||e.push(nb(a.stateList,a.targetVisuals,te(a.getValueState,a),a.getDataDimensionIndex(r.getData())))}),e}},{createOnAllSeries:!0,reset:function(r,t){var e=r.getData(),a=[];t.eachComponent("visualMap",function(i){if(i.isTargetSeries(r)){var n=i.getVisualMeta(te(Ub,null,r,i))||{stops:[],outerColors:[]},o=i.getDataDimensionIndex(e);o>=0&&(n.dimension=o,a.push(n))}}),r.getData().setVisual("visualMeta",a)}}];function Ub(r,t,e,a){for(var i=t.targetVisuals[a],n=pe.prepareVisualTypes(i),o={color:Nu(r.getData(),"color")},s=0,l=n.length;s<l;s++){var u=n[s],c=i[u==="opacity"?"__alphaForOpacity":u];c&&c.applyVisual(e,f,v)}return o.color;function f(h){return o[h]}function v(h,d){o[h]=d}}var Yl=M;function $b(r){var t=r&&r.visualMap;H(t)||(t=t?[t]:[]),Yl(t,function(e){if(e){Rt(e,"splitList")&&!Rt(e,"pieces")&&(e.pieces=e.splitList,delete e.splitList);var a=e.pieces;a&&H(a)&&Yl(a,function(i){oe(i)&&(Rt(i,"start")&&!Rt(i,"min")&&(i.min=i.start),Rt(i,"end")&&!Rt(i,"max")&&(i.max=i.end))})}})}function Rt(r,t){return r&&r.hasOwnProperty&&r.hasOwnProperty(t)}var Xl=!1;function Gf(r){Xl||(Xl=!0,r.registerSubTypeDefaulter("visualMap",function(t){return!t.categories&&(!(t.pieces?t.pieces.length>0:t.splitNumber>0)||t.calculable)?"continuous":"piecewise"}),r.registerAction(Fb,Hb),M(Wb,function(t){r.registerVisual(r.PRIORITY.VISUAL.COMPONENT,t)}),r.registerPreprocessor($b))}
10function Yb(r){r.registerComponentModel(Rb),r.registerComponentView(zb),Gf(r)}var Xb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e._pieceList=[],e}return t.prototype.optionUpdated=function(e,a){r.prototype.optionUpdated.apply(this,arguments),this.resetExtent();var i=this._mode=this._determineMode();this._pieceList=[],Kb[this._mode].call(this,this._pieceList),this._resetSelected(e,a);var n=this.option.categories;this.resetVisual(function(o,s){i==="categories"?(o.mappingMethod="category",o.categories=ae(n)):(o.dataExtent=this.getExtent(),o.mappingMethod="piecewise",o.pieceList=F(this._pieceList,function(l){return l=ae(l),s!=="inRange"&&(l.visual=null),l}))})},t.prototype.completeVisualOption=function(){var e=this.option,a={},i=pe.listVisualTypes(),n=this.isCategory();M(e.pieces,function(s){M(i,function(l){s.hasOwnProperty(l)&&(a[l]=1)})}),M(a,function(s,l){var u=!1;M(this.stateList,function(c){u=u||o(e,c,l)||o(e.target,c,l)},this),!u&&M(this.stateList,function(c){(e[c]||(e[c]={}))[l]=Vf.get(l,c==="inRange"?"active":"inactive",n)})},this);function o(s,l,u){return s&&s[l]&&s[l].hasOwnProperty(u)}r.prototype.completeVisualOption.apply(this,arguments)},t.prototype._resetSelected=function(e,a){var i=this.option,n=this._pieceList,o=(a?i:e).selected||{};if(i.selected=o,M(n,function(l,u){var c=this.getSelectedMapKey(l);o.hasOwnProperty(c)||(o[c]=!0)},this),i.selectedMode==="single"){var s=!1;M(n,function(l,u){var c=this.getSelectedMapKey(l);o[c]&&(s?o[c]=!1:s=!0)},this)}},t.prototype.getItemSymbol=function(){return this.get("itemSymbol")},t.prototype.getSelectedMapKey=function(e){return this._mode==="categories"?e.value+"":e.index+""},t.prototype.getPieceList=function(){return this._pieceList},t.prototype._determineMode=function(){var e=this.option;return e.pieces&&e.pieces.length>0?"pieces":this.option.categories?"categories":"splitNumber"},t.prototype.setSelected=function(e){this.option.selected=ae(e)},t.prototype.getValueState=function(e){var a=pe.findPieceIndex(e,this._pieceList);return a!=null&&this.option.selected[this.getSelectedMapKey(this._pieceList[a])]?"inRange":"outOfRange"},t.prototype.findTargetDataIndices=function(e){var a=[],i=this._pieceList;return this.eachTargetSeries(function(n){var o=[],s=n.getData();s.each(this.getDataDimensionIndex(s),function(l,u){var c=pe.findPieceIndex(l,i);c===e&&o.push(u)},this),a.push({seriesId:n.id,dataIndex:o})},this),a},t.prototype.getRepresentValue=function(e){var a;if(this.isCategory())a=e.value;else if(e.value!=null)a=e.value;else{var i=e.interval||[];a=i[0]===-1/0&&i[1]===1/0?0:(i[0]+i[1])/2}return a},t.prototype.getVisualMeta=function(e){if(this.isCategory())return;var a=[],i=["",""],n=this;function o(c,f){var v=n.getRepresentValue({interval:c});f||(f=n.getValueState(v));var h=e(v,f);c[0]===-1/0?i[0]=h:c[1]===1/0?i[1]=h:a.push({value:c[0],color:h},{value:c[1],color:h})}var s=this._pieceList.slice();if(!s.length)s.push({interval:[-1/0,1/0]});else{var l=s[0].interval[0];l!==-1/0&&s.unshift({interval:[-1/0,l]}),l=s[s.length-1].interval[1],l!==1/0&&s.push({interval:[l,1/0]})}var u=-1/0;return M(s,function(c){var f=c.interval;f&&(f[0]>u&&o([u,f[0]],"outOfRange"),o(f.slice()),u=f[1])},this),{stops:a,outerColors:i}},t.type="visualMap.piecewise",t.defaultOption=si(ei.defaultOption,{selected:null,minOpen:!1,maxOpen:!1,align:"auto",itemWidth:20,itemHeight:14,itemSymbol:"roundRect",pieces:null,categories:null,splitNumber:5,selectedMode:"multiple",itemGap:10,hoverLink:!0}),t})(ei),Kb={splitNumber:function(r){var t=this.option,e=Math.min(t.precision,20),a=this.getExtent(),i=t.splitNumber;i=Math.max(parseInt(i,10),1),t.splitNumber=i;for(var n=(a[1]-a[0])/i;+n.toFixed(e)!==n&&e<5;)e++;t.precision=e,n=+n.toFixed(e),t.minOpen&&r.push({interval:[-1/0,a[0]],close:[0,0]});for(var o=0,s=a[0];o<i;s+=n,o++){var l=o===i-1?a[1]:s+n;r.push({interval:[s,l],close:[1,1]})}t.maxOpen&&r.push({interval:[a[1],1/0],close:[0,0]}),$o(r),M(r,function(u,c){u.index=c,u.text=this.formatValueText(u.interval)},this)},categories:function(r){var t=this.option;M(t.categories,function(e){r.push({text:this.formatValueText(e,!0),value:e})},this),Kl(t,r)},pieces:function(r){var t=this.option;M(t.pieces,function(e,a){oe(e)||(e={value:e});var i={text:"",index:a};if(e.label!=null&&(i.text=e.label),e.hasOwnProperty("value")){var n=i.value=e.value;i.interval=[n,n],i.close=[1,1]}else{for(var o=i.interval=[],s=i.close=[0,0],l=[1,0,1],u=[-1/0,1/0],c=[],f=0;f<2;f++){for(var v=[["gte","gt","min"],["lte","lt","max"]][f],h=0;h<3&&o[f]==null;h++)o[f]=e[v[h]],s[f]=l[h],c[f]=h===2;o[f]==null&&(o[f]=u[f])}c[0]&&o[1]===1/0&&(s[0]=0),c[1]&&o[0]===-1/0&&(s[1]=0),o[0]===o[1]&&s[0]&&s[1]&&(i.value=o[0])}i.visual=pe.retrieveVisuals(e),r.push(i)},this),Kl(t,r),$o(r),M(r,function(e){var a=e.close,i=[["<","≤"][a[1]],[">","≥"][a[0]]];e.text=e.text||this.formatValueText(e.value!=null?e.value:e.interval,!1,i)},this)}};function Kl(r,t){var e=r.inverse;(r.orient==="vertical"?!e:e)&&t.reverse()}var Zb=(function(r){G(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.doRender=function(){var e=this.group;e.removeAll();var a=this.visualMapModel,i=a.get("textGap"),n=a.textStyleModel,o=this._getItemAlign(),s=a.itemSize,l=this._getViewData(),u=l.endsText,c=Zt(a.get("showLabel",!0),!u),f=!a.get("selectedMode");u&&this._renderEndsText(e,u[0],s,c,o),M(l.viewPieceList,function(v){var h=v.piece,d=new le;d.onclick=te(this._onItemClick,this,h),this._enableHoverLink(d,v.indexInModelPieceList);var p=a.getRepresentValue(h);if(this._createItemSymbol(d,p,[0,0,s[0],s[1]],f),c){var m=this.visualMapModel.getValueState(p),g=n.get("align")||o;d.add(new Ae({style:Je(n,{x:g==="right"?-i:s[0]+i,y:s[1]/2,text:h.text,verticalAlign:n.get("verticalAlign")||"middle",align:g,opacity:J(n.get("opacity"),m==="outOfRange"?.5:1)}),silent:f}))}e.add(d)},this),u&&this._renderEndsText(e,u[1],s,c,o),Gt(a.get("orient"),e,a.get("itemGap")),this.renderBackgroun
10d(e),this.positionGroup(e)},t.prototype._enableHoverLink=function(e,a){var i=this;e.on("mouseover",function(){return n("highlight")}).on("mouseout",function(){return n("downplay")});var n=function(o){var s=i.visualMapModel;s.option.hoverLink&&i.api.dispatchAction({type:o,batch:Ca(s.findTargetDataIndices(a),s)})}},t.prototype._getItemAlign=function(){var e=this.visualMapModel,a=e.option;if(a.orient==="vertical")return zf(e,this.api,e.itemSize);var i=a.align;return(!i||i==="auto")&&(i="left"),i},t.prototype._renderEndsText=function(e,a,i,n,o){if(a){var s=new le,l=this.visualMapModel.textStyleModel;s.add(new Ae({style:Je(l,{x:n?o==="right"?i[0]:0:i[0]/2,y:i[1]/2,verticalAlign:"middle",align:n?o:"center",text:a})})),e.add(s)}},t.prototype._getViewData=function(){var e=this.visualMapModel,a=F(e.getPieceList(),function(s,l){return{piece:s,indexInModelPieceList:l}}),i=e.get("text"),n=e.get("orient"),o=e.get("inverse");return(n==="horizontal"?o:!o)?a.reverse():i&&(i=i.slice().reverse()),{viewPieceList:a,endsText:i}},t.prototype._createItemSymbol=function(e,a,i,n){var o=Ue(this.getControllerVisual(a,"symbol"),i[0],i[1],i[2],i[3],this.getControllerVisual(a,"color"));o.silent=n,e.add(o)},t.prototype._onItemClick=function(e){var a=this.visualMapModel,i=a.option,n=i.selectedMode;if(n){var o=ae(i.selected),s=a.getSelectedMapKey(e);n==="single"||n===!0?(o[s]=!0,M(o,function(l,u){o[u]=u===s})):o[s]=!o[s],this.api.dispatchAction({type:"selectDataRange",from:this.uid,visualMapId:this.visualMapModel.id,selected:o})}},t.type="visualMap.piecewise",t})(Bf);function qb(r){r.registerComponentModel(Xb),r.registerComponentView(Zb),Gf(r)}function jb(r){Ne(Yb),Ne(qb)}Ne([Hm,hy,d0,e_,V_,ab,Mb,xf,jb,yb]);const Jb=["setOption","getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"],Hr=ke({inheritAttrs:!1,setup(r,{attrs:t,slots:e,expose:a}){const i=ct(null),n=Object.fromEntries(Jb.map(o=>[o,(...s)=>(i.value?.[o])(...s)]));return a({...n,root:Yo(()=>i.value?.root),chart:Yo(()=>i.value?.chart)}),()=>Ht(sm,{...t,ref:i},e)}}),we={recallCurve:[{week:1,avgWordCount:87,dreamsPerWeek:2.9,dreamCount:892},{week:2,avgWordCount:102,dreamsPerWeek:3.2,dreamCount:864},{week:3,avgWordCount:121,dreamsPerWeek:3.5,dreamCount:831},{week:4,avgWordCount:145,dreamsPerWeek:3.8,dreamCount:795},{week:5,avgWordCount:163,dreamsPerWeek:4,dreamCount:748},{week:6,avgWordCount:178,dreamsPerWeek:4.1,dreamCount:712},{week:7,avgWordCount:188,dreamsPerWeek:4.2,dreamCount:680},{week:8,avgWordCount:196,dreamsPerWeek:4.2,dreamCount:651},{week:9,avgWordCount:201,dreamsPerWeek:4.3,dreamCount:623},{week:10,avgWordCount:205,dreamsPerWeek:4.3,dreamCount:598},{week:11,avgWordCount:208,dreamsPerWeek:4.3,dreamCount:572},{week:12,avgWordCount:210,dreamsPerWeek:4.3,dreamCount:549}],lucidityByFrequency:[{bracket:"0–1/wk",lucidPercent:1.4,sampleSize:298},{bracket:"2–3/wk",lucidPercent:4.9,sampleSize:1187},{bracket:"4–5/wk",lucidPercent:11.3,sampleSize:1842},{bracket:"6–7/wk",lucidPercent:19.8,sampleSize:1402}],practiceImpact:{byIntention:[{group:"No Intention",lucidPercent:4.2,sampleSize:1893},{group:"Occasional",lucidPercent:9.1,sampleSize:1241},{group:"Nightly",lucidPercent:18.7,sampleSize:1595}],byIntentionStreak:[{bracket:"0 days",lucidPercent:4.2,sampleSize:1893},{bracket:"1–3 days",lucidPercent:7.8,sampleSize:987},{bracket:"4–7 days",lucidPercent:13.4,sampleSize:1102},{bracket:"8+ days",lucidPercent:21.3,sampleSize:747}]},dreamTypeTrends:[{week:1,lucid:2.1,nightmare:18.4,recurring:14.2,vivid:31.5},{week:2,lucid:3,nightmare:16.8,recurring:13.1,vivid:35.2},{week:3,lucid:4.2,nightmare:15.1,recurring:11.8,vivid:39.1},{week:4,lucid:5.8,nightmare:13.7,recurring:10.6,vivid:43.8},{week:5,lucid:7.1,nightmare:12.4,recurring:9.5,vivid:47.2},{week:6,lucid:8.9,nightmare:11.2,recurring:8.8,vivid:50.6},{week:7,lucid:10.2,nightmare:10.5,recurring:8.2,vivid:53.1},{week:8,lucid:11.8,nightmare:9.8,recurring:7.7,vivid:55.8},{week:9,lucid:12.4,nightmare:9.4,recurring:7.3,vivid:57.2},{week:10,lucid:13.1,nightmare:9.1,recurring:7,vivid:58.4},{week:11,lucid:13.5,nightmare:8.8,recurring:6.8,vivid:59.1},{week:12,lucid:13.8,nightmare:8.6,recurring:6.5,vivid:59.7}],timeToLucid:[{weeks:1,fast:2,moderate:0,slow:0},{weeks:2,fast:5,moderate:1,slow:0},{weeks:3,fast:9,moderate:3,slow:1},{weeks:4,fast:12,moderate:7,slow:2},{weeks:5,fast:8,moderate:11,slow:4},{weeks:6,fast:5,moderate:14,slow:7},{weeks:7,fast:3,moderate:10,slow:9},{weeks:8,fast:1,moderate:7,slow:11},{weeks:9,fast:0,moderate:4,slow:8},{weeks:10,fast:0,moderate:2,slow:6},{weeks:11,fast:0,moderate:1,slow:4},{weeks:12,fast:0,moderate:0,slow:3}]},Vr={frequencyLucidMultiplier:"14x",peakImprovementWeek:"Weeks 1–4",medianTimeToLucid:"~6 weeks",frequencyGain:"+48%",wordCountGain:"+14
101%",intentionLucidMultiplier:"4.5x",intentionStreakMultiplier:"5.1x",nightmareReduction:"-53%",vividIncrease:"+90%"},Qb={class:"recall-curve section",id:"recall-curve"},ex={class:"container"},tx={class:"chart-card glass-card stagger-4"},rx=ke({__name:"RecallCurveChart",setup(r){const{elementRef:t,isVisible:e}=rt(),a=we.recallCurve.map(n=>`Week ${n.week}`),i=Me(()=>({tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(139, 92, 246, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(n){const o=n[0].axisValue,s=we.recallCurve[n[0].dataIndex]?.dreamCount;let l=`<div style="font-weight:600;color:#fff;margin-bottom:8px">${o}</div>`;for(const u of n)l+=`<div style="display:flex;align-items:center;gap:8px;margin:4px 0">
11          <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${u.color}"></span>
12          <span>${u.seriesName}: <b style="color:#fff">${u.value}</b></span>
13        </div>`;return s&&(l+=`<div style="margin-top:6px;font-size:11px;color:#71717a">n = ${s.toLocaleString()} dreams</div>`),l}},legend:{data:["Dreams/Week","Avg Word Count"],bottom:0,textStyle:{color:"#71717a",fontFamily:"Plus Jakarta Sans"},icon:"circle",itemWidth:8,itemHeight:8},grid:{top:20,left:50,right:30,bottom:80},xAxis:{type:"category",data:a,axisLabel:{color:"#71717a",fontSize:11,formatter(n){return n.replace("Week ","W")}},axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:[{type:"value",name:"Dreams/Week",nameTextStyle:{color:"#71717a",fontSize:11},min:0,max:6,splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11}},{type:"value",name:"Word Count",nameTextStyle:{color:"#71717a",fontSize:11},min:0,max:250,splitLine:{show:!1},axisLabel:{color:"#71717a",fontSize:11}}],series:[{name:"Dreams/Week",type:"line",smooth:!0,data:we.recallCurve.map(n=>n.dreamsPerWeek),lineStyle:{width:3,shadowBlur:10,shadowColor:"rgba(139, 92, 246, 0.4)"},itemStyle:{color:"#8B5CF6"},areaStyle:{color:new Hn(0,0,0,1,[{offset:0,color:"rgba(139, 92, 246, 0.35)"},{offset:1,color:"rgba(139, 92, 246, 0.02)"}])},symbol:"circle",symbolSize:6,showSymbol:!1},{name:"Avg Word Count",type:"line",smooth:!0,yAxisIndex:1,data:we.recallCurve.map(n=>n.avgWordCount),lineStyle:{width:2,type:"solid"},itemStyle:{color:"#06B6D4"},symbol:"circle",symbolSize:5,showSymbol:!1}]}));return(n,o)=>{const s=Hr,l=Gr;return ve(),ue("section",Qb,[L("div",ex,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...o[0]||(o[0]=[L("span",{class:"section-label stagger-1"},"The Recall Curve",-1),L("h2",{class:"section-title stagger-2"},"Journaling Makes You Remember More",-1),L("p",{class:"section-desc stagger-3"}," Average journaling frequency and word count both climb steadily with consistent practice. Most improvement happens in weeks 2–6. ",-1)])],2),L("div",{class:ye(["chart-wrapper","reveal",{revealed:X(e)}])},[L("div",tx,[K(l,null,{fallback:Ie(()=>[...o[1]||(o[1]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(s,{option:X(i),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1})])],2)])])}}}),ax=at(rx,[["__scopeId","data-v-915d4c44"]]),ix={class:"lucid-correlation section",id:"lucid-correlation"},nx={class:"container"},ox={class:"chart-card glass-card stagger-4"},sx={class:"callout"},lx={class:"callout-value"},ux=ke({__name:"LucidCorrelationChart",setup(r){const{elementRef:t,isVisible:e}=rt(),a=["#4C1D95","#6D28D9","#8B5CF6","#A78BFA"],i=[4,8,14,22];function n(s){return{tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(139, 92, 246, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(l){const u=s[l[0].dataIndex];return`<div style="font-weight:600;color:#fff;margin-bottom:6px">${u.bracket}</div>
14          <div>Lucid: <b style="color:#A78BFA">${u.lucidPercent}%</b></div>
15          <div style="margin-top:4px;font-size:11px;color:#71717a">
15n = ${u.sampleSize.toLocaleString()} dreams</div>`}},grid:{top:15,left:48,right:15,bottom:30},xAxis:{type:"category",data:s.map(l=>l.bracket),axisLabel:{color:"#71717a",fontSize:11},axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:{type:"value",name:"% Lucid",nameTextStyle:{color:"#71717a",fontSize:11},splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11,formatter:"{value}%"}},series:[{type:"bar",data:s.map((l,u)=>({value:l.lucidPercent,itemStyle:{color:a[u],borderRadius:[6,6,0,0],shadowBlur:i[u],shadowColor:"rgba(139, 92, 246, 0.5)"}})),barWidth:"55%"}]}}const o=Me(()=>n(we.lucidityByFrequency));return(s,l)=>{const u=Hr,c=Gr;return ve(),ue("section",ix,[L("div",nx,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...l[0]||(l[0]=[L("span",{class:"section-label stagger-1"},"The Lucidity Connection",-1),L("h2",{class:"section-title stagger-2"},"Journal More, Dream Lucid More",-1),L("p",{class:"section-desc stagger-3"}," Does journaling frequency predict lucid dreaming? Research says yes, and the data backs it up. Daily journalers report dramatically more lucid dreams. ",-1)])],2),L("div",{class:ye(["chart-wrapper","reveal",{revealed:X(e)}])},[L("div",ox,[K(c,null,{fallback:Ie(()=>[...l[1]||(l[1]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(u,{option:X(o),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1}),L("div",sx,[L("span",lx,je(X(Vr).frequencyLucidMultiplier),1),l[2]||(l[2]=L("span",{class:"callout-text"},"more lucid dreams for daily journalers",-1))])])],2)])])}}}),cx=at(ux,[["__scopeId","data-v-011379e1"]]),fx={class:"practice-correlation section",id:"practice-effect"},vx={class:"container"},hx={class:"chart-card glass-card stagger-4"},dx={class:"callout"},px={class:"callout-value"},gx={class:"chart-card glass-card stagger-5"},mx={class:"callout"},yx={class:"callout-value"},_x=ke({__name:"PracticeCorrelationChart",setup(r){const{elementRef:t,isVisible:e}=rt(),a=["#164E63","#0E7490","#06B6D4"],i=[4,10,20];function n(f,v){const h=f[v];return`<div style="font-weight:600;color:#fff;margin-bottom:6px">${h.group||h.bracket}</div>
16    <div>Lucid: <b style="color:#06B6D4">${h.lucidPercent}%</b></div>
17    <div style="margin-top:4px;font-size:11px;color:#71717a">n = ${h.sampleSize.toLocaleString()} dreams</div>`}function o(f,v){return{tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(6, 182, 212, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(h){return n(f,h[0].dataIndex)}},grid:{top:15,left:48,right:15,bottom:30},xAxis:{type:"category",data:f.map(h=>h[v]),axisLabel:{color:"#71717a",fontSize:11},axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:{type:"value",name:"% Lucid",nameTextStyle:{color:"#71717a",fontSize:11},splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11,formatter:"{value}%"}},series:[{type:"bar",data:f.map((h,d)=>({value:h.lucidPercent,itemStyle:{color:a[Math.min(d,a.length-1)],borderRadius:[6,6,0,0],shadowBlur:i[Math.min(d,i.length-1)],shadowColor:"rgba(6, 182, 212, 0.5)"}})),barWidth:"50%"}]}}const s=Me(()=>o(we.practiceImpact.byIntention,"group")),l=["#164E63","#0891B2","#06B6D4","#22D3EE"],u=[4,8,14,22],c=Me(()=>({tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(6, 182, 212, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(f){const v=we.practiceImpact.byIntentionStreak[f[0].dataIndex];return`<div style="font-weight:600;color:#fff;margin-bottom:6px">${v.bracket}</div>
18        <div>Lucid: <b style="color:#06B6D4">${v.lucidPercent}%</b></div>
19        <div style="margin-top:4px;font-size:11px;color:#71717a">n = ${v.sampleSize.toLocaleString()} dreams</div>`}},grid:{top:15,left:48,right:15,bottom:30},xAxis:{type:"category",data:we.practiceImpact.byIntentionStreak.map(f=>f.bracket),axisLabel:{color:"#71717a",fontSize:11}
19,axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:{type:"value",name:"% Lucid",nameTextStyle:{color:"#71717a",fontSize:11},splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11,formatter:"{value}%"}},series:[{type:"bar",data:we.practiceImpact.byIntentionStreak.map((f,v)=>({value:f.lucidPercent,itemStyle:{color:l[v],borderRadius:[6,6,0,0],shadowBlur:u[v],shadowColor:"rgba(6, 182, 212, 0.5)"}})),barWidth:"50%"}]}));return(f,v)=>{const h=Hr,d=Gr;return ve(),ue("section",fx,[L("div",vx,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...v[0]||(v[0]=[L("span",{class:"section-label stagger-1"},"The Practice Effect",-1),L("h2",{class:"section-title stagger-2"},"Intention-Setting Predicts Lucidity",-1),L("p",{class:"section-desc stagger-3"}," MILD: the most evidence-backed lucid dreaming technique, is built on intention-setting before sleep. Users who set nightly intentions in the app report dramatically more lucid dreams. ",-1)])],2),L("div",{class:ye(["charts-row","reveal",{revealed:X(e)}])},[L("div",hx,[v[3]||(v[3]=L("h3",{class:"chart-title"},"By Intention Frequency",-1)),v[4]||(v[4]=L("p",{class:"chart-subtitle"},"How often do they set bedtime intentions?",-1)),K(d,null,{fallback:Ie(()=>[...v[1]||(v[1]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(h,{option:X(s),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1}),L("div",dx,[L("span",px,je(X(Vr).intentionLucidMultiplier),1),v[2]||(v[2]=L("span",{class:"callout-text"},"more lucid dreams for nightly intention-setters",-1))])]),L("div",gx,[v[7]||(v[7]=L("h3",{class:"chart-title"},"By Intention Streak",-1)),v[8]||(v[8]=L("p",{class:"chart-subtitle"},"Does consistency compound the effect?",-1)),K(d,null,{fallback:Ie(()=>[...v[5]||(v[5]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(h,{option:X(c),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1}),L("div",mx,[L("span",yx,je(X(Vr).intentionStreakMultiplier),1),v[6]||(v[6]=L("span",{class:"callout-text"},"more lucid dreams with 8+ day intention streaks",-1))])])],2)])])}}}),bx=at(_x,[["__scopeId","data-v-00be4a03"]]),xx={class:"dream-type-breakdown section",id:"dream-types"},Sx={class:"container"},wx={class:"chart-card glass-card stagger-4"},Ax={class:"callout-row"},Cx={class:"callout-item"},Tx={class:"callout-value negative"},Ix={class:"callout-item"},Dx={class:"callout-value positive"},Mx=ke({__name:"DreamTypeBreakdownChart",setup(r){const{elementRef:t,isVisible:e}=rt(),a=we.dreamTypeTrends.map(o=>`Week ${o.week}`),i=[{key:"vivid",name:"Vivid",color:"#8B5CF6"},{key:"lucid",name:"Lucid",color:"#06B6D4"},{key:"nightmare",name:"Nightmare",color:"#EF4444"},{key:"recurring",name:"Recurring",color:"#F59E0B"}],n=Me(()=>({tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(139, 92, 246, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(o){let s=`<div style="font-weight:600;color:#fff;margin-bottom:8px">${o[0].axisValue}</div>`;for(const l of o)s+=`<div style="display:flex;align-items:center;gap:8px;margin:3px 0">
20          <span style="display:inline-block;width:8px;height:8px;border-radius:50%;background:${l.color}"></span>
21          <span>${l.seriesName}: <b style="color:#fff">${l.value}%</b></span>
22        </div>`;return s}},legend:{data:i.map(o=>o.name),bottom:0,textStyle:{color:"#71717a",fontFamily:"Plus Jakarta Sans",fontSize:11},icon:"circle",itemWidth:8,itemHeight:8},grid:{top:20,left:48,right:20,bottom:50},xAxis:{type:"category",data:a,boundaryGap:!1,axisLabel:{color:"#71717a",fontSize:11,formatter(o){return o.replace("Week ","W")}},axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:{type:"value",name:"% of Dreams",nameTextStyle:{color:"#71717a",fontSize:11},splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11,formatter:"{value}%"}},series:i.map(o=>({name:o.name,type:"line",smooth:!0,data:we.dreamTypeTrends.map(s=>s[o.key]),lineStyle:{width:2.5,color:o.color,shadowBlur:o.key==="lucid"||o.key==="vivid"?8:0,shadowColor:o.key==="lucid"?"rgba(6, 182, 212, 0.4)":o.key==="vivid"?"rgba(139, 92, 246, 0.4)":void 0},itemStyle:{color:o.color},symbol:"circle",symbolSize:4,showSymbol:!1,emphasis:{focus:"series"}}))}));return(o,s)=>{const l=Hr,u=Gr;return ve(),ue("section",xx,[L("div",Sx,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...s[0]||(s[0]=[L("span",{class:"section-label stagger-1"},"Dream Type Trends",-1),L("h2",{class:"section-title stagger-2"},"Nightmares Fade, Lucidity Grows",-1),L("p",{class:"section-desc stagger-3"}," As recall improves, dream types shift. Vivid and lucid dreams increase while nightmares and recurring dreams decrease: a pattern consistent with increased dream awareness and emotional processing. ",-1)])],2),L("div",{class:ye(["chart-wrapper","reveal",{revealed:X(e)}])},[L("div",wx,[K(u,null,{fallback:Ie(()=>[...s[1]||(s[1]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(l,{option:X(n),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1}),L("div",Ax,[L("div",Cx,[L("span",Tx,je(X(Vr).nightmareReduction),1),s[2]||(s[2]=L("span",{class:"callout-label"},"Nightmares",-1))]),L("div",Ix,[L("span",Dx,je(X(Vr).vividIncrease),1),s[3]||(s[3]=L("span",{class:"callout-label"},"Vivid Dreams",-1))])])])],2)])])}}}),Lx=at(Mx,[["__scopeId","data-v-52ff34b5"]]),kx={class:"time-to-lucid section",id:"time-to-lucid"},Ox={class:"container"},Px={class:"chart-card glass-card stagger-4"},Ex=ke({__name:"TimeToLucidChart",setup(r){const{elementRef:t,isVisible:e}=rt(),a=we.timeToLucid.map(o=>`Week ${o.weeks}`),i=[{key:"fast",name:"Fast Improvers",color:"#A78BFA"},{key:"moderate",name:"Moderate Improvers",color:"#6D28D9"},{key:"slow",name:"Slow Improvers",color:"#3B0764"}],n=Me(()=>({tooltip:{trigger:"axis",backgroundColor:"rgba(10, 10, 11, 0.9)",borderColor:"rgba(139, 92, 246, 0.3)",textStyle:{color:"#B4B4BD",fontFamily:"Plus Jakarta Sans"},extraCssText:"backdrop-filter: blur(20px); border-radius: 12px; padding: 14px 18px;",formatter(o){let l=`<div style="font-weight:600;color:#fff;margin-bottom:8px">${o[0].axisValue}</div>`,u=0;for(const c of o)u+=c.value,l+=`<div style="display:flex;align-items:center;gap:8px;margin:3px 0">
23          <span style="display:inline-block;width:8px;height:8px;border-radius:2px;background:${c.color}"></span>
24          <span>${c.seriesName}: <b style="color:#fff">${c.value}</b></span>
25        </div>`;return l+=`<div style="margin-top:6px;font-size:11px;color:#71717a">Total: ${u} participants</div>`,l}},legend:{data:i.map(o=>o.name),bottom:0,textStyle:{color:"#71717a",fontFamily:"Plus Jakarta Sans",fontSize:11},icon:"roundRect",itemWidth:12,itemHeight:8},grid:{top:20,left:48,right:20,bottom:80},xAxis:{type:"category",data:a,axisLabel:{color:"#71717a",fontSize:11,formatter(o){return o.replace("Week ","W")}},axisLine:{lineStyle:{color:"rgba(255,255,255,0.06)"}},axisTick:{show:!1}},yAxis:{type:"value",name:"Participants",nameTextStyle:{color:"#71717a",fontSize:11},splitLine:{lineStyle:{color:"rgba(255,255,255,0.04)"}},axisLabel:{color:"#71717a",fontSize:11}},series:i.map(o=>({name:o.name,type:"bar",stack:"total",data:we.timeToLucid.map(s=>s[o.key]),itemStyle:{color:o.color,borderRadius:o.key==="fast"?[4,4,0,0]:0},barWidth:"50%",emphasis:{focus:"series"}}))}));return(o,s)=>{const l=Hr,u=Gr;return ve(),ue("section",kx,[L("div",Ox,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...s[0]||(s[0]=[L("span",{class:"section-label stagger-1"},"Time to First Lucid Dream",-1),L("h2",{class:"section-title stagger-2"},"How Long Does It Take?",-1),L("p",{class:"section-desc stagger-3"}," Faster recall improvers reach lucidity sooner. Median time is about 6 weeks of consistent journaling, but some get there in 2–3. ",-1)])],2),L("div",{class:ye(["chart-wrapper","reveal",{revealed:X(e)}])},[L("div",Px,[K(u,null,{fallback:Ie(()=>[...s[1]||(s[1]=[L("div",{class:"chart-skeleton"},null,-1)])]),default:Ie(()=>[K(l,{option:X(n),theme:"dream",autoresize:"",class:"chart"},null,8,["option"])]),_:1})])],2)])])}}}),Rx=at(Ex,[["__scopeId","data-v-165ef7ec"]]),Nx={class:"methodology section",id:"methodology"},Vx={class:"container"},Bx={class:"metrics-card glass-card stagger-4"},zx={class:"metric-list"},Gx={class:"transparency-note"},Fx=ke({__name:"MethodologySection",setup(r){const{elementRef:t,isVisible:e}=rt();return(a,i)=>{const n=kn;return ve(),ue("section",Nx,[L("div",Vx,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["reveal",{revealed:X(e)}])},[...i[0]||(i[0]=[L("span",{class:"section-label stagger-1"},"Methodology",-1),L("h2",{class:"section-title stagger-2"},"What Gets Measured",-1),L("p",{class:"section-desc stagger-3"}," Every metric is backed by published sleep research: simple, validated, and available to all participants for free. ",-1)])],2),L("div",{class:ye(["metrics-wrapper","reveal",{revealed:X(e)}])},[L("div",Bx,[L("ul",zx,[L("li",null,[K(n,{name:"calendar",size:"16"}),i[1]||(i[1]=L("div",null,[L("strong",null,"Journaling Frequency"),L("span",null,"Dreams per week, the strongest known predictor of lucidity")],-1))]),L("li",null,[K(n,{name:"flame",size:"16"}),i[2]||(i[2]=L("div",null,[L("strong",null,"Consistency"),L("span",null,"Active streak days, habit formation matters more than volume")],-1))]),L("li",null,[K(n,{name:"file-text",size:"16"}),i[3]||(i[3]=L("div",null,[L("strong",null,"Word Count"),L("span",null,"Raw length per entry, crude but honest proxy for recall depth")],-1))]),L("li",null,[K(n,{name:"clock",size:"16"}),i[4]||(i[4]=L("div",null,[L("strong",null,"Recording Delay"),L("span",null,"Time from waking to writing, dream memories decay in minutes")],-1))]),L("li",null,[K(n,{name:"sparkles",size:"16"}),i[5]||(i[5]=L("div",null,[L("strong",null,"Dream Types"),L("span",null,"Lucid, nightmare, recurring, vivid, how the mix shifts over time")],-1))]),L("li",null,[K(n,{name:"moon",size:"16"}),i[6]||(i[6]=L("div",null,[L("strong",null,"Nightly Intentions"),L("span",null,"MILD-style intention-setting, the most validated lucid dreaming technique")],-1))]),L("li",null,[K(n,{name:"mic",size:"16"}),i[7]||(i[7]=L("div",null,[L("strong",null,"Recording Method"),L("span",null,"Voice vs typed, does how you record affect what you remember?")],-1))])]),L("p",Gx,[K(n,{name:"shield",size:"14"}),i[8]||(i[8]=At(" No dream text is ever shared. Only anonymous aggregate statistics. ",-1))])])],2)])])}}}),Hx=at(Fx,[["__scopeId","data-v-612537d3"]]),Wx={class:"experiment-cta section",id:"join"},Ux={class:"container"},$x={class:"cta-reassurances stagger-2"},Yx={class:"waitlist-section stagger-3"},Xx={class:"input-group"},Kx=["disabled"],Zx=["disabled"],qx={key:0},jx={key:1,class:"loading-dots"},Jx={key:0,class:"form-error"},Qx={key:1,class:"success-message"},e1={key:0},t1={key:1},r1={class:"waitlist-count"},a1=ke({__name:"ExperimentCTA",setup(r){const{elementRef:t,isVisible:e}=rt(),a=ct(""),i=ct(!1),n=ct(!1),o=ct(!1),s=ct(""),l=ct(0);Br(async()=>{try{const c=await $fetch("/api/waitlist");l.value=c.count}catch{}});async function u(){s.value="",i.value=!0;try{const c=await $fetch("/api/waitlist",{method:"POST",body:{email:a.value}});l.value=c.count,o.value=!!c.alreadySignedUp,n.value=!0}catch(c){s.value=c?.data?.message||"Something went wrong. Try again."}finally{i.value=!1}}return(c,f)=>{const v=kn;return ve(),ue("section",Wx,[L("div",Ux,[L("div",{ref_key:"sectionRef",ref:t,class:ye(["cta-card","glass-card","reveal",{revealed:X(e)}])},[f[5]||(f[5]=L("h2",{class:"cta-title stagger-1"},[At(" Your Dreams Could Be"),L("br"),L("span",{class:"gradient-text"},"Part of This")],-1)),L("ul",$x,[L("li",null,[K(v,{name:"shield",size:"16"}),f[1]||(f[1]=L("span",null,"Completely anonymous, no dream text ever leaves your device",-1))]),L("li",null,[K(v,{name:"eye-off",size:"16"}),f[2]||(f[2]=L("span",null,"Only aggregate scores and statistics are shared",-1))]),L("li",null,[K(v,{name:"gift",size:"16"}),f[3]||(f[3]=L("span",null,"Free to participate, no premium required",-1))])]),L("div",Yx,[f[4]||(f[4]=L("p",{class:"waitlist-desc"}," The experiment launches once enough dreamers sign up. Leave your email to be notified when it goes live. ",-1)),X(n)?(ve(),ue("div",Qx,[K(v,{name:"check-circle",size:"18"}),X(o)?(ve(),ue("span",e1,"You're already on the list!")):(ve(),ue("span",t1,"You're in! You'll hear from me when it goes live."))])):(ve(),ue("form",{key:0,class:"waitlist-form",onSubmit:uu(u,["prevent"])},[L("div",Xx,[Sd(L("input",{"onUpdate:modelValue":f[0]||(f[0]=h=>Ad(a)?a.value=h:null),type:"email",placeholder:"[email protected]",required:"",disabled:X(i),class:"email-input"},null,8,Kx),[[wd,X(a)]]),L("button",{type:"submit",disabled:X(i),class:"submit-btn"},[X(i)?(ve(),ue("span",jx,"...")):(ve(),ue("span",qx,"Count me in"))],8,Zx)]),X(s)?(ve(),ue("p",Jx,je(X(s)),1)):Cd("",!0)],32)),L("p",r1,[X(l)>0?(ve(),ue(Xo,{key:0},[L("strong",null,je(X(l)),1),At(" "+je(X(l)===1?"dreamer":"dreamers")+" waiting ",1)],64)):(ve(),ue(Xo,{key:1},[At(" Be the first to sign up ")],64))])]),f[6]||(f[6]=Td('<div class="divider stagger-4" data-v-d95508ff><span data-v-d95508ff>
25Already journal your dreams?</span></div><div class="store-buttons stagger-4" data-v-d95508ff><a href="https://apps.apple.com/app/dreamlusive-ai-dream-journal/id6753315857" target="_blank" rel="noopener" class="store-badge" data-v-d95508ff><img src="'+Id+'" alt="Download on the App Store" height="44" data-v-d95508ff></a><a href="https://play.google.com/store/apps/details?id=com.jasuplix.dreamlusive" target="_blank" rel="noopener" class="store-badge" data-v-d95508ff><img src="'+Dd+'" alt="Get it on Google Play" height="44" data-v-d95508ff></a></div>',2))],2)])])}}}),i1=at(a1,[["__scopeId","data-v-d95508ff"]]),n1={class:"experiment-page"},o1=ke({__name:"experiment",setup(r){return Md({title:"Dream Recall & Lucidity: Live Experiment | Dreamlusive",meta:[{name:"description",content:"Can improving dream recall predict lucid dreaming? A community experiment exploring how journaling frequency and recall quality correlate with lucid dreaming."},{property:"og:title",content:"Dream Recall & Lucidity Experiment: Dreamlusive"},{property:"og:description",content:"See how dream recall quality correlates with lucid dreaming frequency. Research-based projections from an upcoming community study."},{property:"og:type",content:"website"}]}),(t,e)=>{const a=Hf,i=Wf,n=Tg,o=ax,s=cx,l=bx,u=Lx,c=Rx,f=Hx,v=i1,h=Uf;return ve(),ue("div",n1,[K(a),K(i),L("main",null,[e[0]||(e[0]=L("div",{class:"author-note"},[L("div",{class:"note-content"},[L("p",null,[L("strong",null,"A note from the developer"),At(". I built this experiment because I wanted to answer a question nobody's tested at scale: does tracking your dreams actually lead to lucid dreaming? The charts below use simulated data modeled on published sleep research while I collect real participant data. The trends and patterns reflect what studies suggest, but the specific numbers are projections, not real measurements yet. The whole point is to replace these projections with real numbers from real dreamers. If you journal your dreams, you can help. ")])])],-1)),K(n),K(o),K(s),K(l),K(u),K(c),K(f),K(v)]),K(h)])}}}),d1=at(o1,[["__scopeId","data-v-616b0459"]]);export{d1 as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.