@nocobase/portal-template-default 1.0.17 → 1.0.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.env.example +0 -4
  2. package/AGENTS.md +2 -0
  3. package/dist/assets/{LineDraw-BBB5hwuJ.js → LineDraw-B3HsIvjF.js} +1 -1
  4. package/dist/assets/{SymbolDraw-CKS3uUb_.js → SymbolDraw-C5oA6gYo.js} +1 -1
  5. package/dist/assets/{VisualMapping-BCwaW3TD.js → VisualMapping-CjyVXYl-.js} +1 -1
  6. package/dist/assets/{auth-method-demo-BdCCvEEz.js → auth-method-demo-B4sxmO2B.js} +1 -1
  7. package/dist/assets/auto-login-provider-DPtJmWC-.js +1 -0
  8. package/dist/assets/{auto-login-provider-DO5Il6Dp.js → auto-login-provider-pxf3kSYY.js} +2 -2
  9. package/dist/assets/auto-redirect-provider-B51i6R_U.js +1 -0
  10. package/dist/assets/auto-redirect-provider-CDA_97es.js +1 -0
  11. package/dist/assets/{auto-redirect-provider-ja-vFPaF.js → auto-redirect-provider-CeJOAYfx.js} +1 -1
  12. package/dist/assets/{calendar-C7xnRgOT.js → calendar-B41MfAkB.js} +1 -1
  13. package/dist/assets/{cas-sign-in-button-BZCa4lR6.js → cas-sign-in-button-DmkMYnGb.js} +1 -1
  14. package/dist/assets/{components-_g-GjQeV.js → components-DLLYm5Qd.js} +1 -1
  15. package/dist/assets/{configuration-gate-B4XVz7tS.js → configuration-gate-CdktspSj.js} +1 -1
  16. package/dist/assets/{createClipPathFromCoordSys-z9Kmh-tu.js → createClipPathFromCoordSys-BKzf1iWj.js} +1 -1
  17. package/dist/assets/createSeriesDataSimply-Dcpkokbc.js +1 -0
  18. package/dist/assets/{customGraphicKeyframeAnimation-DMU5crAu.js → customGraphicKeyframeAnimation-BYcy-PGj.js} +1 -1
  19. package/dist/assets/{demo-Bj_Y0RrW.js → demo-BpC2e3zt.js} +1 -1
  20. package/dist/assets/{demo-DUmWU7ik.js → demo-CEA7jJM2.js} +1 -1
  21. package/dist/assets/{demo-CXRTPvIx.js → demo-CX_Zf30k.js} +1 -1
  22. package/dist/assets/{demo-DJuVDu1n.js → demo-CyvGiwq2.js} +1 -1
  23. package/dist/assets/{demo-NhIzFRE1.js → demo-DJgGXOii.js} +1 -1
  24. package/dist/assets/{demo-CKPAQOib.js → demo-GTMcYVzl.js} +1 -1
  25. package/dist/assets/{demo-BPlae2bp.js → demo-O2QwJ70o.js} +1 -1
  26. package/dist/assets/{dingtalk-sign-in-button-DMPgE5kT.js → dingtalk-sign-in-button-K_2ZYQNC.js} +1 -1
  27. package/dist/assets/{echarts-preview-R96Pbqmz.js → echarts-preview-CTj0x24f.js} +1 -1
  28. package/dist/assets/{echarts-runtime-Ce_z2eX_.js → echarts-runtime-BTfAtt-4.js} +3 -3
  29. package/dist/assets/{echarts-runtime-advanced-Dr80KHJR.js → echarts-runtime-advanced-Xg4WXsLl.js} +1 -1
  30. package/dist/assets/{echarts-runtime-common-DB95Yfc1.js → echarts-runtime-common-Dfe5ONoi.js} +1 -1
  31. package/dist/assets/{echarts-runtime-components-DCJEaTJk.js → echarts-runtime-components-BNoMvPY0.js} +1 -1
  32. package/dist/assets/{echarts-runtime-hierarchy-CezgZs9O.js → echarts-runtime-hierarchy-bEvX8V8l.js} +1 -1
  33. package/dist/assets/{floating-O9WmiDXk.js → floating-CVEm6jgD.js} +1 -1
  34. package/dist/assets/{index-WKvygTBp.js → index-0O4dSmNz.js} +1 -1
  35. package/dist/assets/{index-DgB7uTMs.js → index-Bliz6Sy2.js} +1 -1
  36. package/dist/assets/{index-Cc6awvdg.js → index-CMoFG_fD.js} +210 -210
  37. package/dist/assets/{index-CPzehPGe.js → index-N5q0Lo-n.js} +1 -1
  38. package/dist/assets/{index-DroUAK80.js → index-dDkRfkPI.js} +1 -1
  39. package/dist/assets/{index-ChA0z9ke.js → index-s-Gc7krA.js} +1 -1
  40. package/dist/assets/{labelHelper-Dk5jkiD-.js → labelHelper-CSRwI3Ku.js} +1 -1
  41. package/dist/assets/{ldap-sign-in-form-CKN4l7qM.js → ldap-sign-in-form-BoVMVmwm.js} +1 -1
  42. package/dist/assets/{oidc-sign-in-button-BIRonrpC.js → oidc-sign-in-button-5pd4bZSW.js} +1 -1
  43. package/dist/assets/{page-context-DAiW_dId.js → page-context-o6ISleo3.js} +1 -1
  44. package/dist/assets/prompt-card-xoH-b2hL.js +1 -0
  45. package/dist/assets/{prompt-output-B4h3uLWf.js → prompt-output-7ZS2-d1_.js} +1 -1
  46. package/dist/assets/{saml-sign-in-button-B4ugaLIb.js → saml-sign-in-button-CN2l8pSN.js} +1 -1
  47. package/dist/assets/{sectorHelper-BuxrrJrA.js → sectorHelper-D1jHcZDN.js} +1 -1
  48. package/dist/assets/{shortcut-BhKXxJLs.js → shortcut-DUGrhOUX.js} +1 -1
  49. package/dist/assets/{sms-sign-in-form-DKpxRDdZ.js → sms-sign-in-form-ajsTToFF.js} +1 -1
  50. package/dist/assets/{static.browser-kzzpH0Xt.js → static.browser-exfE5oYi.js} +1 -1
  51. package/dist/assets/{switch-BdVxPIVU.js → switch-BVTKHDeA.js} +1 -1
  52. package/dist/assets/{tool-cards-CpczIke-.js → tool-cards-CQklNnUU.js} +1 -1
  53. package/dist/assets/{use-authenticator-sign-in-CIj210ry.js → use-authenticator-sign-in-B8OPLh-w.js} +1 -1
  54. package/dist/assets/{use-dingtalk-sign-in-BW4kkXD3.js → use-dingtalk-sign-in-DsX00uPU.js} +1 -1
  55. package/dist/assets/{use-wecom-sign-in-dIqMtcN9.js → use-wecom-sign-in-Di3WFrU1.js} +1 -1
  56. package/dist/assets/{wecom-sign-in-button-Dn_2zDab.js → wecom-sign-in-button-BO8h0tS8.js} +1 -1
  57. package/dist/index.html +1 -1
  58. package/dist/index.raw.html +1 -1
  59. package/package.json +1 -1
  60. package/src/app/route-runtime.ts +29 -2
  61. package/src/components/data-table/data-table-filter.tsx +7 -4
  62. package/src/extensions/nocobase-users-example/app-routes.tsx +6 -2
  63. package/src/extensions/nocobase-users-example/index.ts +0 -1
  64. package/dist/assets/auto-login-provider-TQ08B6-i.js +0 -1
  65. package/dist/assets/auto-redirect-provider-ButXp0A3.js +0 -1
  66. package/dist/assets/auto-redirect-provider-DnGGP2Vn.js +0 -1
  67. package/dist/assets/createSeriesDataSimply-CPqysF0K.js +0 -1
  68. package/dist/assets/prompt-card-rGZqpqkF.js +0 -1
  69. package/src/extensions/nocobase-users-example/layout.tsx +0 -16
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/echarts-runtime-common-DB95Yfc1.js","assets/createClipPathFromCoordSys-z9Kmh-tu.js","assets/sectorHelper-BuxrrJrA.js","assets/CoordinateSystem-C8P-Cleg.js","assets/labelHelper-Dk5jkiD-.js","assets/createSeriesDataSimply-CPqysF0K.js","assets/SymbolDraw-CKS3uUb_.js","assets/index-Cc6awvdg.js","assets/index-BBKV6O5d.css","assets/echarts-runtime-hierarchy-CezgZs9O.js","assets/LegendVisualProvider-Bdgkckq-.js","assets/LineDraw-BBB5hwuJ.js","assets/VisualMapping-BCwaW3TD.js","assets/echarts-runtime-advanced-Dr80KHJR.js","assets/customGraphicKeyframeAnimation-DMU5crAu.js","assets/echarts-runtime-components-DCJEaTJk.js"])))=>i.map(i=>d[i]);
2
- import{bc as ma}from"./index-Cc6awvdg.js";/*! *****************************************************************************
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/echarts-runtime-common-Dfe5ONoi.js","assets/createClipPathFromCoordSys-BKzf1iWj.js","assets/sectorHelper-D1jHcZDN.js","assets/CoordinateSystem-C8P-Cleg.js","assets/labelHelper-CSRwI3Ku.js","assets/createSeriesDataSimply-Dcpkokbc.js","assets/SymbolDraw-C5oA6gYo.js","assets/index-CMoFG_fD.js","assets/index-BBKV6O5d.css","assets/echarts-runtime-hierarchy-bEvX8V8l.js","assets/LegendVisualProvider-Bdgkckq-.js","assets/LineDraw-B3HsIvjF.js","assets/VisualMapping-CjyVXYl-.js","assets/echarts-runtime-advanced-Xg4WXsLl.js","assets/customGraphicKeyframeAnimation-BYcy-PGj.js","assets/echarts-runtime-components-BNoMvPY0.js"])))=>i.map(i=>d[i]);
2
+ import{bc as ma}from"./index-CMoFG_fD.js";/*! *****************************************************************************
3
3
  Copyright (c) Microsoft Corporation.
4
4
 
5
5
  Permission to use, copy, modify, and/or distribute this software for any
@@ -55,4 +55,4 @@ yyyy`);var n=se(t),i=e?"getUTC":"get",a=n[i+"FullYear"](),o=n[i+"Month"]()+1,s=n
55
55
 
56
56
  `:"<br/>",y=h.join(p);this._showOrMove(s,function(){this._updateContentNotChangedOnAxis(e,l)?this._updatePosition(s,v,o[0],o[1],this._tooltipContent,l):this._showTooltipContent(s,y,l,Math.random()+"",o[0],o[1],v,null,c)})},t.prototype._showSeriesItemTooltip=function(e,n,i){var a=this._ecModel,o=st(n),s=o.seriesIndex,u=a.getSeriesByIndex(s),l=o.dataModel||u,f=o.dataIndex,h=o.dataType,c=l.getData(h),v=this._renderMode,d=e.positionDefault,g=li([c.getItemModel(f),l,u&&(u.coordinateSystem||{}).model],this._tooltipModel,d?{position:d}:null),p=g.get("trigger");if(!(p!=null&&p!=="item")){var y=l.getDataParams(f,h),m=new xu;y.marker=m.makeTooltipMarker("item",Xi(y.color),v);var _=Vc(l.formatTooltip(f,!1,h)),x=g.get("order"),w=g.get("valueFormatter"),S=_.frag,T=S?Zc(w?R({valueFormatter:w},S):S,m,v,x,a.get("useUTC"),g.get("textStyle")):_.text,C="item_"+l.name+"_"+f;this._showOrMove(g,function(){this._showTooltipContent(g,T,y,C,e.offsetX,e.offsetY,e.position,e.target,m)}),i({type:"showTip",dataIndexInside:f,dataIndex:c.getRawIndex(f),seriesIndex:s,from:this.uid})}},t.prototype._showComponentItemTooltip=function(e,n,i){var a=this._renderMode==="html",o=st(n),s=o.tooltipConfig,u=s.option||{},l=u.encodeHTMLContent;if(N(u)){var f=u;u={content:f,formatter:f},l=!0}l&&a&&u.content&&(u=U(u),u.content=Nt(u.content));var h=[u],c=this._ecModel.getComponent(o.componentMainType,o.componentIndex);c&&h.push(c),h.push({formatter:u.content});var v=e.positionDefault,d=li(h,this._tooltipModel,v?{position:v}:null),g=d.get("content"),p=Math.random()+"",y=new xu;this._showOrMove(d,function(){var m=U(d.get("formatterParams")||{});this._showTooltipContent(d,g,m,p,e.offsetX,e.offsetY,e.position,n,y)}),i({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(e,n,i,a,o,s,u,l,f){if(this._ticket="",!(!e.get("showContent")||!e.get("show"))){var h=this._tooltipContent;h.setEnterable(e.get("enterable"));var c=e.get("formatter");u=u||e.get("position");var v=n,d=this._getNearestPoint([o,s],i,e.get("trigger"),e.get("borderColor")),g=d.color;if(c)if(N(c)){var p=e.ecModel.get("useUTC"),y=B(i)?i[0]:i,m=y&&y.axisType&&y.axisType.indexOf("time")>=0;v=c,m&&(v=ya(y.axisValue,v,p)),v=Hf(v,i,!0)}else if(X(c)){var _=ut(function(x,w){x===this._ticket&&(h.setContent(w,f,e,g,u),this._updatePosition(e,u,o,s,h,i,l))},this);this._ticket=a,v=c(i,a,_)}else v=c;h.setContent(v,f,e,g,u),h.show(e,g),this._updatePosition(e,u,o,s,h,i,l)}},t.prototype._getNearestPoint=function(e,n,i,a){if(i==="axis"||B(n))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!B(n))return{color:a||n.color||n.borderColor}},t.prototype._updatePosition=function(e,n,i,a,o,s,u){var l=this._api.getWidth(),f=this._api.getHeight();n=n||e.get("position");var h=o.getSize(),c=e.get("align"),v=e.get("verticalAlign"),d=u&&u.getBoundingRect().clone();if(u&&d.applyTransform(u.transform),X(n)&&(n=n([i,a],s,o.el,d,{viewSize:[l,f],contentSize:h.slice()})),B(n))i=mt(n[0],l),a=mt(n[1],f);else if(z(n)){var g=n;g.width=h[0],g.height=h[1];var p=gr(g,{width:l,height:f});i=p.x,a=p.y,c=null,v=null}else if(N(n)&&u){var y=i2(n,d,h,e.get("borderWidth"));i=y[0],a=y[1]}else{var y=r2(i,a,o,l,f,c?null:20,v?null:20);i=y[0],a=y[1]}if(c&&(i-=np(c)?h[0]/2:c==="right"?h[0]:0),v&&(a-=np(v)?h[1]/2:v==="bottom"?h[1]:0),E0(e)){var y=n2(i,a,o,l,f);i=y[0],a=y[1]}o.moveTo(i,a)},t.prototype._updateContentNotChangedOnAxis=function(e,n){var i=this._lastDataByCoordSys,a=this._cbParamsList,o=!!i&&i.length===e.length;return o&&b(i,function(s,u){var l=s.dataByAxis||[],f=e[u]||{},h=f.dataByAxis||[];o=o&&l.length===h.length,o&&b(l,function(c,v){var d=h[v]||{},g=c.seriesDataIndices||[],p=d.seriesDataIndices||[];o=o&&c.value===d.value&&c.axisType===d.axisType&&c.axisId===d.axisId&&g.length===p.length,o&&b(g,function(y,m){var _=p[m];o=o&&y.seriesIndex===_.seriesIndex&&y.dataIndex===_.dataIndex}),a&&b(c.seriesDataIndices,function(y){var m=y.seriesIndex,_=n[m],x=a[m];_&&x&&x.data!==_.data&&(o=!1)})})}),this._lastDataByCoordSys=e,this._cbParamsList=n,!!o},t.prototype._hide=function(e){this._lastDataByCoordSys=null,e({type:"hideTip",from:this.uid})},t.prototype.dispose=function(e,n){W.node||!n.getDom()||(Cl(this,"_updatePosition"),this._tooltipContent.dispose(),Ml("itemTooltip",n))},t.type="tooltip",t})(Ct);function li(r,t,e){var n=t.ecModel,i;e?(i=new ft(e,n,n),i=new ft(t.option,i,n)):i=t;for(var a=r.length-1;a>=0;a--){var o=r[a];o&&(o instanceof ft&&(o=o.get("tooltip",!0)),N(o)&&(o={formatter:o}),o&&(i=new ft(o,i,n)))}return i}function rp(r,t){return r.dispatchAction||ut(t.dispatchAction,t)}function r2(r,t,e,n,i,a,o){var s=e.getSize(),u=s[0],l=s[1];return a!=null&&(r+u+a+2>n?r-=u+a:r+=a),o!=null&&(t+l+o>i?t-=l+o:t+=o),[r,t]}function n2(r,t,e,n,i){var a=e.getSize(),o=a[0],s=a[1];return r=Math.min(r+o,n)-o,t=Math.min(t+s,i)-s,r=Math.max(r,0),t=Math.max(t,0),[r,t]}function i2(r,t,e,n){var i=e[0],a=e[1],o=Math.ceil(Math.SQRT2*n)+8,s=0,u=0,l=t.width,f=t.height;switch(r){case"inside":s=t.x+l/2-i/2,u=t.y+f/2-a/2;break;case"top":s=t.x+l/2-i/2,u=t.y-a-o;break;case"bottom":s=t.x+l/2-i/2,u=t.y+f+o;break;case"left":s=t.x-i-o,u=t.y+f/2-a/2;break;case"right":s=t.x+l+o,u=t.y+f/2-a/2}return[s,u]}function np(r){return r==="center"||r==="middle"}function a2(r,t,e){var n=xf(r).queryOptionMap,i=n.keys()[0];if(!(!i||i==="series")){var a=fa(t,i,n.get(i),{useDefault:!1,enableAll:!1,enableNone:!1}),o=a.models[0];if(o){var s=e.getViewOfComponentModel(o),u;if(s.group.traverse(function(l){var f=st(l).tooltipConfig;if(f&&f.name===r.name)return u=l,!0}),u)return{componentMainType:i,componentIndex:o.componentIndex,el:u}}}}function o2(r){Be(nm),r.registerComponentModel(GA),r.registerComponentView(e2),r.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},It),r.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},It)}var s2=(function(r){O(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.type="title",t.defaultOption={z:6,show:!0,text:"",target:"blank",subtext:"",subtarget:"blank",left:0,top:0,backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderWidth:0,padding:5,itemGap:10,textStyle:{fontSize:18,fontWeight:"bold",color:"#464646"},subtextStyle:{fontSize:12,color:"#6E7079"}},t})(j),u2=(function(r){O(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,n,i){if(this.group.removeAll(),!!e.get("show")){var a=this.group,o=e.getModel("textStyle"),s=e.getModel("subtextStyle"),u=e.get("textAlign"),l=K(e.get("textBaseline"),e.get("textVerticalAlign")),f=new _t({style:$e(o,{text:e.get("text"),fill:o.getTextColor()},{disableBox:!0}),z2:10}),h=f.getBoundingRect(),c=e.get("subtext"),v=new _t({style:$e(s,{text:c,fill:s.getTextColor(),y:h.height+e.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),d=e.get("link"),g=e.get("sublink"),p=e.get("triggerEvent",!0);f.silent=!d&&!p,v.silent=!g&&!p,d&&f.on("click",function(){Nv(d,"_"+e.get("target"))}),g&&v.on("click",function(){Nv(g,"_"+e.get("subtarget"))}),st(f).eventData=st(v).eventData=p?{componentType:"title",componentIndex:e.componentIndex}:null,a.add(f),c&&a.add(v);var y=a.getBoundingRect(),m=e.getBoxLayoutParams();m.width=y.width,m.height=y.height;var _=gr(m,{width:i.getWidth(),height:i.getHeight()},e.get("padding"));u||(u=e.get("left")||e.get("right"),u==="middle"&&(u="center"),u==="right"?_.x+=_.width:u==="center"&&(_.x+=_.width/2)),l||(l=e.get("top")||e.get("bottom"),l==="center"&&(l="middle"),l==="bottom"?_.y+=_.height:l==="middle"&&(_.y+=_.height/2),l=l||"top"),a.x=_.x,a.y=_.y,a.markRedraw();var x={align:u,verticalAlign:l};f.setStyle(x),v.setStyle(x),y=a.getBoundingRect();var w=_.margin,S=e.getItemStyle(["color","opacity"]);S.fill=e.get("backgroundColor");var T=new yt({shape:{x:y.x-w[3],y:y.y-w[0],width:y.width+w[1]+w[3],height:y.height+w[0]+w[2],r:e.get("borderRadius")},style:S,subPixelOptimize:!0,silent:!0});a.add(T)}},t.type="title",t})(Ct);function l2(r){r.registerComponentModel(s2),r.registerComponentView(u2)}var f2=(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 h2(r,t){var e={},n=e.encode={},i=V(),a=[],o=[],s={};b(r.dimensions,function(c){var v=r.getDimensionInfo(c),d=v.coordDim;if(d){var g=v.coordDimIndex;Ou(n,d)[g]=c,v.isExtraCoord||(i.set(d,1),c2(v.type)&&(a[0]=c),Ou(s,d)[g]=r.getDimensionIndex(v.name)),v.defaultTooltip&&o.push(c)}ly.each(function(p,y){var m=Ou(n,y),_=v.otherDims[y];_!=null&&_!==!1&&(m[_]=v.name)})});var u=[],l={};i.each(function(c,v){var d=n[v];l[v]=d[0],u=u.concat(d)}),e.dataDimsOnCoord=u,e.dataDimIndicesOnCoord=F(u,function(c){return r.getDimensionInfo(c).storeDimIndex}),e.encodeFirstDimNotExtra=l;var f=n.label;f&&f.length&&(a=f.slice());var h=n.tooltip;return h&&h.length?o=h.slice():o.length||(o=a.slice()),n.defaultedLabel=a,n.defaultedTooltip=o,e.userOutput=new f2(s,t),e}function Ou(r,t){return r.hasOwnProperty(t)||(r[t]=[]),r[t]}function v2(r){return r==="category"?"ordinal":r==="time"?"time":"float"}function c2(r){return!(r==="ordinal"||r==="time")}var co=(function(){function r(t){this.otherDims={},t!=null&&R(this,t)}return r})(),fi=z,er=F,d2=typeof Int32Array>"u"?Array:Int32Array,p2="e\0\0",ip=-1,g2=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],y2=["_approximateExtent"],ap,Qa,hi,vi,ku,ci,Bu,N0=(function(){function r(t,e){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var n,i=!1;yy(t)?(n=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(i=!0,n=t),n=n||["x","y"];for(var a={},o=[],s={},u=!1,l={},f=0;f<n.length;f++){var h=n[f],c=N(h)?new co({name:h}):h instanceof co?h:new co(h),v=c.name;c.type=c.type||"float",c.coordDim||(c.coordDim=v,c.coordDimIndex=0);var d=c.otherDims=c.otherDims||{};o.push(v),a[v]=c,l[v]!=null&&(u=!0),c.createInvertedIndices&&(s[v]=[]),d.itemName===0&&(this._nameDimIdx=f),d.itemId===0&&(this._idDimIdx=f),i&&(c.storeDimIndex=f)}if(this.dimensions=o,this._dimInfos=a,this._initGetDimensionInfo(u),this.hostModel=e,this._invertedIndicesMap=s,this._dimOmitted){var g=this._dimIdxToName=V();b(o,function(p){g.set(a[p].storeDimIndex,p)})}}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 n=this._dimIdxToName.get(e);if(n!=null)return n;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 n=this._getDimInfo(t);return n?n.storeDimIndex:this._dimOmitted?this._schema.getSourceDimensionIndex(t):-1},r.prototype._recognizeDimIndex=function(t){if(vt(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(n){return e.hasOwnProperty(n)?e[n]:void 0}:function(n){return e[n]}},r.prototype.getDimensionsOnCoord=function(){return this._dimSummary.dataDimsOnCoord.slice()},r.prototype.mapDimension=function(t,e){var n=this._dimSummary;if(e==null)return n.encodeFirstDimNotExtra[t];var i=n.encode[t];return i?i[e]:null},r.prototype.mapDimensionsAll=function(t){var e=this._dimSummary,n=e.encode[t];return(n||[]).slice()},r.prototype.getStore=function(){return this._store},r.prototype.initData=function(t,e,n){var i=this,a;if(t instanceof Rl&&(a=t),!a){var o=this.dimensions,s=Yf(t)||Pt(t)?new gm(t,o.length):t;a=new Rl;var u=er(o,function(l){return{type:i._dimInfos[l].type,property:l}});a.initData(s,u,n)}this._store=a,this._nameList=(e||[]).slice(),this._idList=[],this._nameRepeatCount={},this._doInit(0,a.count()),this._dimSummary=h2(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 n=this._store.appendValues(t,e&&e.length),i=n.start,a=n.end,o=this._shouldMakeIdFromName();if(this._updateOrdinalMeta(),e)for(var s=i;s<a;s++){var u=s-i;this._nameList[s]=e[u],o&&Bu(this,s)}},r.prototype._updateOrdinalMeta=function(){for(var t=this._store,e=this.dimensions,n=0;n<e.length;n++){var i=this._dimInfos[e[n]];i.ordinalMeta&&t.collectOrdinalMeta(i.storeDimIndex,i.ordinalMeta)}},r.prototype._shouldMakeIdFromName=function(){var t=this._store.getProvider();return this._idDimIdx==null&&t.getSource().sourceFormat!==cr&&!t.fillStorage},r.prototype._doInit=function(t,e){if(!(t>=e)){var n=this._store,i=n.getProvider();this._updateOrdinalMeta();var a=this._nameList,o=this._idList,s=i.getSource().sourceFormat,u=s===fe;if(u&&!i.pure)for(var l=[],f=t;f<e;f++){var h=i.getItem(f,l);if(!this.hasItemOption&&vx(h)&&(this.hasItemOption=!0),h){var c=h.name;a[f]==null&&c!=null&&(a[f]=xe(c,null));var v=h.id;o[f]==null&&v!=null&&(o[f]=xe(v,null))}}if(this._shouldMakeIdFromName())for(var f=t;f<e;f++)Bu(this,f);ap(this)}},r.prototype.getApproximateExtent=function(t){return this._approximateExtent[t]||this._store.getDataExtent(this._getStoreDimIndex(t))},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){fi(t)?R(this._calculationInfo,t):this._calculationInfo[t]=e},r.prototype.getName=function(t){var e=this.getRawIndex(t),n=this._nameList[e];return n==null&&this._nameDimIdx!=null&&(n=hi(this,this._nameDimIdx,e)),n==null&&(n=""),n},r.prototype._getCategory=function(t,e){var n=this._store.get(t,e),i=this._store.getOrdinalMeta(t);return i?i.categories[n]:n},r.prototype.getId=function(t){return Qa(this,this.getRawIndex(t))},r.prototype.count=function(){return this._store.count()},r.prototype.get=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.get(i.storeDimIndex,e)},r.prototype.getByRawIndex=function(t,e){var n=this._store,i=this._dimInfos[t];if(i)return n.getByRawIndex(i.storeDimIndex,e)},r.prototype.getIndices=function(){return this._store.getIndices()},r.prototype.getDataExtent=function(t){return this._store.getDataExtent(this._getStoreDimIndex(t))},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 n=this,i=this._store;return B(t)?i.getValues(er(t,function(a){return n._getStoreDimIndex(a)}),e):i.getValues(t)},r.prototype.hasValue=function(t){for(var e=this._dimSummary.dataDimIndicesOnCoord,n=0,i=e.length;n<i;n++)if(isNaN(this._store.get(e[n],t)))return!1;return!0},r.prototype.indexOfName=function(t){for(var e=0,n=this._store.count();e<n;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 n=t&&this._invertedIndicesMap[t],i=n&&n[e];return i==null||isNaN(i)?ip:i},r.prototype.indicesOfNearest=function(t,e,n){return this._store.indicesOfNearest(this._getStoreDimIndex(t),e,n)},r.prototype.each=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var i=n||this,a=er(vi(t),this._getStoreDimIndex,this);this._store.each(a,i?ut(e,i):e)},r.prototype.filterSelf=function(t,e,n){X(t)&&(n=e,e=t,t=[]);var i=n||this,a=er(vi(t),this._getStoreDimIndex,this);return this._store=this._store.filter(a,i?ut(e,i):e),this},r.prototype.selectRange=function(t){var e=this,n={},i=ht(t);return b(i,function(a){var o=e._getStoreDimIndex(a);n[o]=t[a]}),this._store=this._store.selectRange(n),this},r.prototype.mapArray=function(t,e,n){X(t)&&(n=e,e=t,t=[]),n=n||this;var i=[];return this.each(t,function(){i.push(e&&e.apply(this,arguments))},n),i},r.prototype.map=function(t,e,n,i){var a=n||i||this,o=er(vi(t),this._getStoreDimIndex,this),s=ci(this);return s._store=this._store.map(o,a?ut(e,a):e),s},r.prototype.modify=function(t,e,n,i){var a=n||i||this,o=er(vi(t),this._getStoreDimIndex,this);this._store.modify(o,a?ut(e,a):e)},r.prototype.downSample=function(t,e,n,i){var a=ci(this);return a._store=this._store.downSample(this._getStoreDimIndex(t),e,n,i),a},r.prototype.minmaxDownSample=function(t,e){var n=ci(this);return n._store=this._store.minmaxDownSample(this._getStoreDimIndex(t),e),n},r.prototype.lttbDownSample=function(t,e){var n=ci(this);return n._store=this._store.lttbDownSample(this._getStoreDimIndex(t),e),n},r.prototype.getRawDataItem=function(t){return this._store.getRawDataItem(t)},r.prototype.getItemModel=function(t){var e=this.hostModel,n=this.getRawDataItem(t);return new ft(n,e,e&&e.ecModel)},r.prototype.diff=function(t){var e=this;return new ph(t?t.getStore().getIndices():[],this.getStore().getIndices(),function(n){return Qa(t,n)},function(n){return Qa(e,n)})},r.prototype.getVisual=function(t){var e=this._visual;return e&&e[t]},r.prototype.setVisual=function(t,e){this._visual=this._visual||{},fi(t)?R(this._visual,t):this._visual[t]=e},r.prototype.getItemVisual=function(t,e){var n=this._itemVisuals[t],i=n&&n[e];return i??this.getVisual(e)},r.prototype.hasItemVisual=function(){return this._itemVisuals.length>0},r.prototype.ensureUniqueItemVisual=function(t,e){var n=this._itemVisuals,i=n[t];i||(i=n[t]={});var a=i[e];return a==null&&(a=this.getVisual(e),B(a)?a=a.slice():fi(a)&&(a=R({},a)),i[e]=a),a},r.prototype.setItemVisual=function(t,e,n){var i=this._itemVisuals[t]||{};this._itemVisuals[t]=i,fi(e)?R(i,e):i[e]=n},r.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},r.prototype.setLayout=function(t,e){fi(t)?R(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,n){this._itemLayouts[t]=n?R(this._itemLayouts[t]||{},e):e},r.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},r.prototype.setItemGraphicEl=function(t,e){var n=this.hostModel&&this.hostModel.seriesIndex;Lx(n,this.dataType,t,e),this._graphicEls[t]=e},r.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},r.prototype.eachItemGraphicEl=function(t,e){b(this._graphicEls,function(n,i){n&&t&&t.call(e,n,i)})},r.prototype.cloneShallow=function(t){return t||(t=new r(this._schema?this._schema:er(this.dimensions,this._getDimInfo,this),this.hostModel)),ku(t,this),t._store=this._store,t},r.prototype.wrapMethod=function(t,e){var n=this[t];X(n)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var i=n.apply(this,arguments);return e.apply(this,[i].concat(Vo(arguments)))})},r.internalField=(function(){ap=function(t){var e=t._invertedIndicesMap;b(e,function(n,i){var a=t._dimInfos[i],o=a.ordinalMeta,s=t._store;if(o){n=e[i]=new d2(o.categories.length);for(var u=0;u<n.length;u++)n[u]=ip;for(var u=0;u<s.count();u++)n[s.get(a.storeDimIndex,u)]=u}})},hi=function(t,e,n){return xe(t._getCategory(e,n),null)},Qa=function(t,e){var n=t._idList[e];return n==null&&t._idDimIdx!=null&&(n=hi(t,t._idDimIdx,e)),n==null&&(n=p2+e),n},vi=function(t){return B(t)||(t=t!=null?[t]:[]),t},ci=function(t){var e=new r(t._schema?t._schema:er(t.dimensions,t._getDimInfo,t),t.hostModel);return ku(e,t),e},ku=function(t,e){b(g2.concat(e.__wrappedMethods||[]),function(n){e.hasOwnProperty(n)&&(t[n]=e[n])}),t.__wrappedMethods=e.__wrappedMethods,b(y2,function(n){t[n]=U(e[n])}),t._calculationInfo=R({},e._calculationInfo)},Bu=function(t,e){var n=t._nameList,i=t._idList,a=t._nameDimIdx,o=t._idDimIdx,s=n[e],u=i[e];if(s==null&&a!=null&&(n[e]=s=hi(t,a,e)),u==null&&o!=null&&(i[e]=u=hi(t,o,e)),u==null&&s!=null){var l=t._nameRepeatCount,f=l[s]=(l[s]||0)+1;u=s,f>1&&(u+="__ec__"+f),i[e]=u}}})(),r})(),m2=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"])}},Ql=(function(r){O(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,n,i){this.mergeDefaultAndTheme(e,i),e.selected=e.selected||{},this._updateSelector(e)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),this._updateSelector(e)},t.prototype._updateSelector=function(e){var n=e.selector,i=this.ecModel;n===!0&&(n=e.selector=["all","inverse"]),B(n)&&b(n,function(a,o){N(a)&&(a={type:a}),n[o]=Y(a,m2(i,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var e=this._data;if(e[0]&&this.get("selectedMode")==="single"){for(var n=!1,i=0;i<e.length;i++){var a=e[i].get("name");if(this.isSelected(a)){this.select(a),n=!0;break}}!n&&this.select(e[0].get("name"))}},t.prototype._updateData=function(e){var n=[],i=[];e.eachRawSeries(function(u){var l=u.name;i.push(l);var f;if(u.legendVisualProvider){var h=u.legendVisualProvider,c=h.getAllNames();e.isSeriesFiltered(u)||(i=i.concat(c)),c.length?n=n.concat(c):f=!0}else f=!0;f&&_f(u)&&n.push(u.name)}),this._availableNames=i;var a=this.get("data")||n,o=V(),s=F(a,function(u){return(N(u)||vt(u))&&(u={name:u}),o.get(u.name)?null:(o.set(u.name,!0),new ft(u,this,this.ecModel))},this);this._data=dt(s,function(u){return!!u})},t.prototype.getData=function(){return this._data},t.prototype.select=function(e){var n=this.option.selected,i=this.get("selectedMode");if(i==="single"){var a=this._data;b(a,function(o){n[o.get("name")]=!1})}n[e]=!0},t.prototype.unSelect=function(e){this.get("selectedMode")!=="single"&&(this.option.selected[e]=!1)},t.prototype.toggleSelected=function(e){var n=this.option.selected;n.hasOwnProperty(e)||(n[e]=!0),this[n[e]?"unSelect":"select"](e)},t.prototype.allSelect=function(){var e=this._data,n=this.option.selected;b(e,function(i){n[i.get("name",!0)]=!0})},t.prototype.inverseSelect=function(){var e=this._data,n=this.option.selected;b(e,function(i){var a=i.get("name",!0);n.hasOwnProperty(a)||(n[a]=!0),n[a]=!n[a]})},t.prototype.isSelected=function(e){var n=this.option.selected;return!(n.hasOwnProperty(e)&&!n[e])&&Q(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",top:0,align:"auto",backgroundColor:"rgba(0,0,0,0)",borderColor:"#ccc",borderRadius:0,borderWidth:0,padding:5,itemGap:10,itemWidth:25,itemHeight:14,symbolRotate:"inherit",symbolKeepAspect:!0,inactiveColor:"#ccc",inactiveBorderColor:"#ccc",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:"#ccc",inactiveWidth:2,opacity:"inherit",type:"inherit",cap:"inherit",join:"inherit",dashOffset:"inherit",miterLimit:"inherit"},textStyle:{color:"#333"},selectedMode:!0,selector:!1,selectorLabel:{show:!0,borderRadius:10,padding:[3,5,3,5],fontSize:12,fontFamily:"sans-serif",color:"#666",borderWidth:1,borderColor:"#666"},emphasis:{selectorLabel:{show:!0,color:"#eee",backgroundColor:"#666"}},selectorPosition:"auto",selectorItemGap:7,selectorButtonGap:10,tooltip:{show:!1}},t})(j),Tn=nt,Jl=b,Ja=Rt,F0=(function(r){O(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 Ja),this.group.add(this._selectorGroup=new Ja),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(e,n,i){var a=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 u=e.get("selector",!0),l=e.get("selectorPosition",!0);u&&(!l||l==="auto")&&(l=s==="horizontal"?"end":"start"),this.renderInner(o,e,n,i,u,s,l);var f=e.getBoxLayoutParams(),h={width:i.getWidth(),height:i.getHeight()},c=e.get("padding"),v=gr(f,h,c),d=this.layoutInner(e,o,v,a,u,l),g=gr(J({width:d.width,height:d.height},f),h,c);this.group.x=g.x-d.x,this.group.y=g.y-d.y,this.group.markRedraw(),this.group.add(this._backgroundEl=L0(d,e))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this.getContentGroup(),f=V(),h=n.get("selectedMode"),c=[];i.eachRawSeries(function(v){!v.get("legendHoverLink")&&c.push(v.id)}),Jl(n.getData(),function(v,d){var g=v.get("name");if(!this.newlineDisabled&&(g===""||g===`
57
57
  `)){var p=new Ja;p.newline=!0,l.add(p);return}var y=i.getSeriesByName(g)[0];if(!f.get(g))if(y){var m=y.getData(),_=m.getVisual("legendLineStyle")||{},x=m.getVisual("legendIcon"),w=m.getVisual("style"),S=this._createItem(y,g,d,v,n,e,_,w,x,h,a);S.on("click",Tn(op,g,null,a,c)).on("mouseover",Tn(jl,y.name,null,a,c)).on("mouseout",Tn(tf,y.name,null,a,c)),i.ssr&&S.eachChild(function(T){var C=st(T);C.seriesIndex=y.seriesIndex,C.dataIndex=d,C.ssrType="legend"}),f.set(g,!0)}else i.eachRawSeries(function(T){if(!f.get(g)&&T.legendVisualProvider){var C=T.legendVisualProvider;if(!C.containName(g))return;var M=C.indexOfName(g),D=C.getItemVisual(M,"style"),A=C.getItemVisual(M,"legendIcon"),L=Qt(D.fill);L&&L[3]===0&&(L[3]=.2,D=R(R({},D),{fill:yr(L,"rgba")}));var P=this._createItem(T,g,d,v,n,e,{},D,A,h,a);P.on("click",Tn(op,null,g,a,c)).on("mouseover",Tn(jl,null,g,a,c)).on("mouseout",Tn(tf,null,g,a,c)),i.ssr&&P.eachChild(function(I){var E=st(I);E.seriesIndex=T.seriesIndex,E.dataIndex=d,E.ssrType="legend"}),f.set(g,!0)}},this)},this),o&&this._createSelector(o,n,a,s,u)},t.prototype._createSelector=function(e,n,i,a,o){var s=this.getSelectorGroup();Jl(e,function(l){var f=l.type,h=new _t({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){i.dispatchAction({type:f==="all"?"legendAllSelect":"legendInverseSelect",legendId:n.id})}});s.add(h);var c=n.getModel("selectorLabel"),v=n.getModel(["emphasis","selectorLabel"]);PS(h,{normal:c,emphasis:v},{defaultText:l.title}),bo(h)})},t.prototype._createItem=function(e,n,i,a,o,s,u,l,f,h,c){var v=e.visualDrawType,d=o.get("itemWidth"),g=o.get("itemHeight"),p=o.isSelected(n),y=a.get("symbolRotate"),m=a.get("symbolKeepAspect"),_=a.get("icon");f=_||f||"roundRect";var x=_2(f,a,u,l,v,p,c),w=new Ja,S=a.getModel("textStyle");if(X(e.getLegendIcon)&&(!_||_==="inherit"))w.add(e.getLegendIcon({itemWidth:d,itemHeight:g,icon:f,iconRotate:y,itemStyle:x.itemStyle,lineStyle:x.lineStyle,symbolKeepAspect:m}));else{var T=_==="inherit"&&e.getData().getVisual("symbol")?y==="inherit"?e.getData().getVisual("symbolRotate"):y:0;w.add(x2({itemWidth:d,itemHeight:g,icon:f,iconRotate:T,itemStyle:x.itemStyle,symbolKeepAspect:m}))}var C=s==="left"?d+5:-5,M=s,D=o.get("formatter"),A=n;N(D)&&D?A=D.replace("{name}",n??""):X(D)&&(A=D(n));var L=p?S.getTextColor():a.get("inactiveColor");w.add(new _t({style:$e(S,{text:A,x:C,y:g/2,fill:L,align:M,verticalAlign:"middle"},{inheritColor:L})}));var P=new yt({shape:w.getBoundingRect(),style:{fill:"transparent"}}),I=a.getModel("tooltip");return I.get("show")&&ga({el:P,componentModel:o,itemName:n,itemTooltipOption:I.option}),w.add(P),w.eachChild(function(E){E.silent=!0}),P.silent=!h,this.getContentGroup().add(w),bo(w),w.__legendDataIndex=i,w},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getContentGroup(),l=this.getSelectorGroup();Bn(e.get("orient"),u,e.get("itemGap"),i.width,i.height);var f=u.getBoundingRect(),h=[-f.x,-f.y];if(l.markRedraw(),u.markRedraw(),o){Bn("horizontal",l,e.get("selectorItemGap",!0));var c=l.getBoundingRect(),v=[-c.x,-c.y],d=e.get("selectorButtonGap",!0),g=e.getOrient().index,p=g===0?"width":"height",y=g===0?"height":"width",m=g===0?"y":"x";s==="end"?v[g]+=f[p]+d:h[g]+=c[p]+d,v[1-g]+=f[y]/2-c[y]/2,l.x=v[0],l.y=v[1],u.x=h[0],u.y=h[1];var _={x:0,y:0};return _[p]=f[p]+d+c[p],_[y]=Math.max(f[y],c[y]),_[m]=Math.min(0,c[m]+v[1-g]),_}else return u.x=h[0],u.y=h[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Ct);function _2(r,t,e,n,i,a,o){function s(p,y){p.lineWidth==="auto"&&(p.lineWidth=y.lineWidth>0?2:0),Jl(p,function(m,_){p[_]==="inherit"&&(p[_]=y[_])})}var u=t.getModel("itemStyle"),l=u.getItemStyle(),f=r.lastIndexOf("empty",0)===0?"fill":"stroke",h=u.getShallow("decal");l.decal=!h||h==="inherit"?n.decal:zl(h,o),l.fill==="inherit"&&(l.fill=n[i]),l.stroke==="inherit"&&(l.stroke=n[f]),l.opacity==="inherit"&&(l.opacity=(i==="fill"?n:e).opacity),s(l,n);var c=t.getModel("lineStyle"),v=c.getLineStyle();if(s(v,e),l.fill==="auto"&&(l.fill=n.fill),l.stroke==="auto"&&(l.stroke=n.fill),v.stroke==="auto"&&(v.stroke=n.fill),!a){var d=t.get("inactiveBorderWidth"),g=l[f];l.lineWidth=d==="auto"?n.lineWidth>0&&g?2:0:l.lineWidth,l.fill=t.get("inactiveColor"),l.stroke=t.get("inactiveBorderColor"),v.stroke=c.get("inactiveColor"),v.lineWidth=c.get("inactiveWidth")}return{itemStyle:l,lineStyle:v}}function x2(r){var t=r.icon||"roundRect",e=ds(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="#fff",e.style.lineWidth=2),e}function op(r,t,e,n){tf(r,t,e,n),e.dispatchAction({type:"legendToggleSelect",name:r??t}),jl(r,t,e,n)}function z0(r){for(var t=r.getZr().storage.getDisplayList(),e,n=0,i=t.length;n<i&&!(e=t[n].states.emphasis);)n++;return e&&e.hoverLayer}function jl(r,t,e,n){z0(e)||e.dispatchAction({type:"highlight",seriesName:r,name:t,excludeSeriesId:n})}function tf(r,t,e,n){z0(e)||e.dispatchAction({type:"downplay",seriesName:r,name:t,excludeSeriesId:n})}function S2(r){var t=r.findComponents({mainType:"legend"});t&&t.length&&r.filterSeries(function(e){for(var n=0;n<t.length;n++)if(!t[n].isSelected(e.name))return!1;return!0})}function di(r,t,e){var n=r==="allSelect"||r==="inverseSelect",i={},a=[];e.eachComponent({mainType:"legend",query:t},function(s){n?s[r]():s[r](t.name),sp(s,i),a.push(s.componentIndex)});var o={};return e.eachComponent("legend",function(s){b(i,function(u,l){s[u?"select":"unSelect"](l)}),sp(s,o)}),n?{selected:o,legendIndex:a}:{name:t.name,selected:o}}function sp(r,t){var e=t||{};return b(r.getData(),function(n){var i=n.get("name");if(!(i===`
58
- `||i==="")){var a=r.isSelected(i);we(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function w2(r){r.registerAction("legendToggleSelect","legendselectchanged",nt(di,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",nt(di,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",nt(di,"inverseSelect")),r.registerAction("legendSelect","legendselected",nt(di,"select")),r.registerAction("legendUnSelect","legendunselected",nt(di,"unSelect"))}function H0(r){r.registerComponentModel(Ql),r.registerComponentView(F0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,S2),r.registerSubTypeDefaulter("legend",function(){return"plain"}),w2(r)}var b2=(function(r){O(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,n,i){var a=ls(e);r.prototype.init.call(this,e,n,i),up(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),up(this,this.option,e)},t.type="legend.scroll",t.defaultOption=c1(Ql.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Ql);function up(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,zn(t,e,{type:"box",ignoreSize:!!i})}var lp=Rt,Nu=["width","height"],Fu=["x","y"],T2=(function(r){O(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 lp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lp)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=B(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new _t({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=pa(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ut(l._pageGo,l,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Nu[l],h=Fu[l],c=Nu[1-l],v=Fu[1-l];o&&Bn("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],y=U(i);o&&(y[f]=i[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,l,f,c,v,h);if(o){if(s==="end")p[l]+=m[f]+d;else{var _=g[f]+d;p[l]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-l]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Bn(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Bn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=K(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new yt({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Wn(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?e:null),this._updatePageInfoView(e,T),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",N(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Nu[o],u=Fu[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=x(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=x(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=x(f[p]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(S){if(S){var T=S.getBoundingRect(),C=T[u]+S[u];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function w(S,T){return S.e>=T&&S.s<=T+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n??a},t.type="legend.scroll",t})(F0);function C2(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function M2(r){Be(H0),r.registerComponentModel(b2),r.registerComponentView(T2),C2(r)}function D2(r){Be(H0),Be(M2)}var A2={label:{enabled:!0},decal:{show:!1}},fp=gt(),L2={};function I2(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=U(A2);Y(n.label,r.getLocaleModel().get("aria"),!1),Y(e.option,n,!1),i(),a();function i(){var l=e.getModel("decal"),f=l.get("show");if(f){var h=V();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),fp(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(X(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Mc(c.ecModel,c.name,L2,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",x(_,m))}else{var d=c.getRawData(),g={},p=fp(c).scope;v.each(function(w){var S=v.getRawIndex(w);g[S]=w});var y=d.count();d.each(function(w){var S=g[w],T=d.getName(w)||w+"",C=Mc(c.ecModel,T,p,y),M=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",x(M,C))})}function x(w,S){var T=w?R(R({},S),w):S;return T.dirty=!0,T}})}}function a(){var l=t.getZr().dom;if(l){var f=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=J(h.option,f),!!h.get("enabled")){if(l.setAttribute("role","img"),h.get("description")){l.setAttribute("aria-label",h.get("description"));return}var c=r.getSeriesCount(),v=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,g=Math.min(c,d),p;if(!(c<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);p=o(m,{title:y})}else p=h.get(["general","withoutTitle"]);var _=[],x=c>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);p+=o(x,{seriesCount:c}),r.eachSeries(function(C,M){if(M<g){var D=void 0,A=C.get("name"),L=A?"withName":"withoutName";D=c>1?h.get(["series","multiple",L]):h.get(["series","single",L]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>v){var I=h.get(["data","partialData"]);D+=o(I,{displayCnt:v})}else D+=h.get(["data","allData"]);for(var E=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),$=h.get(["data","excludeDimensionId"]),G=[],H=0;H<P.count();H++)if(H<v){var q=P.getName(H),ot=$?dt(P.getValues(H),function(St,Gt){return Q($,Gt)===-1}):P.getValues(H),it=h.get(["data",q?"withName":"withoutName"]);G.push(o(it,{name:q,value:ot.join(E)}))}D+=G.join(E)+k,_.push(D)}});var w=h.getModel(["series","multiple","separator"]),S=w.get("middle"),T=w.get("end");p+=_.join(S)+T,l.setAttribute("aria-label",p)}}}}function o(l,f){if(!N(l))return l;var h=l;return b(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var l=r.get("title");return l&&l.length&&(l=l[0]),l&&l.text}function u(l){var f=r.getLocaleModel().get(["series","typeNames"]);return f[l]||f.chart}}function P2(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},b(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function R2(r){r.registerPreprocessor(P2),r.registerVisual(r.PRIORITY.VISUAL.ARIA,I2)}var hp={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},E2=(function(){function r(t){var e=this._condVal=N(t)?new RegExp(t):xp(t)?t:null;if(e==null){var n="";rt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return N(e)?this._condVal.test(t):vt(e)?this._condVal.test(t+""):!1},r})(),O2=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),k2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),B2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),N2=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),F2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r})();function Ch(r,t){if(r===!0||r===!1){var e=new O2;return e.value=r,e}var n="";return V0(r)||rt(n),r.and?vp("and",r,t):r.or?vp("or",r,t):r.not?z2(r,t):H2(r,t)}function vp(r,t,e){var n=t[r],i="";B(n)||rt(i),n.length||rt(i);var a=r==="and"?new k2:new B2;return a.children=F(n,function(o){return Ch(o,e)}),a.children.length||rt(i),a}function z2(r,t){var e=r.not,n="";V0(e)||rt(n);var i=new N2;return i.child=Ch(e,t),i.child||rt(n),i}function H2(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=ht(r),o=r.parser,s=o?xm(o):null,u=0;u<a.length;u++){var l=a[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=we(hp,l)?hp[l]:l,h=r[l],c=s?s(h):h,v=DC(f,c)||f==="reg"&&new E2(c);v||rt(e),i.push(v)}}i.length||rt(e);var d=new F2;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function V0(r){return z(r)&&!Pt(r)}var V2=(function(){function r(t,e){this._cond=Ch(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function G2(r,t){return new V2(r,t)}var W2={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=G2(r.config,{valueGetterAttrMap:V({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;we(s,"dimension")||rt(u);var f=t.getDimensionInfo(l);return f||rt(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},U2={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=xt(e);i.length||rt(n);var a=[];b(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&rt(n),c!=="asc"&&c!=="desc"&&rt(n),d&&d!=="min"&&d!=="max"){var g="";rt(g)}if(c!=="asc"&&c!=="desc"){var p="";rt(p)}var y=t.getDimensionInfo(h);y||rt(n);var m=v?xm(v):null;v&&!m&&rt(n),a.push({dimIdx:y.index,parser:m,comparator:new wm(c,d)})});var o=t.sourceFormat;o!==Vt&&o!==he&&rt(n);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function Y2(r){r.registerTransform(W2),r.registerTransform(U2)}var X2=(function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new Mm(this),Yc(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Yc(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Re},t})(j),Z2=(function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Ct);function $2(r){r.registerComponentModel(X2),r.registerComponentView(Z2)}function q2(r,t){return G0(r,t).dimensions}function G0(r,t){Yf(r)||(r=Xf(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=V(),a=[],o=Q2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xy(o),u=n===r.dimensionsDefine,l=u?_y(r):my(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=V(f),c=new Tm(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var D=c[M];if(D<0){var A=n[M],L=z(A)?A:{name:A},P=new co,I=L.name;I!=null&&l.get(I)!=null&&(P.name=P.displayName=I),L.type!=null&&(P.type=L.type),L.displayName!=null&&(P.displayName=L.displayName);var E=a.length;return c[M]=E,P.storeDimIndex=M,a.push(P),P}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,D){var A=xt(M).slice();if(A.length===1&&!N(A[0])&&A[0]<0){h.set(D,!1);return}var L=h.set(D,[]);b(A,function(P,I){var E=N(P)?l.get(P):P;E!=null&&E<o&&(L[I]=E,p(d(E),D,I))})});var g=0;b(e,function(M){var D,A,L,P;if(N(M))D=M,P={};else{P=M,D=P.name;var I=P.ordinalMeta;P.ordinalMeta=null,P=R({},P),P.ordinalMeta=I,A=P.dimsDef,L=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var E=h.get(D);if(E!==!1){if(E=xt(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}b(E,function($,G){var H=d($);if(u&&P.type!=null&&(H.type=P.type),p(J(H,P),D,G),H.name==null&&A){var q=A[G];!z(q)&&(q={name:q}),H.name=H.displayName=q.name,H.defaultTooltip=q.defaultTooltip}L&&J(H.otherDims,L)})}});function p(M,D,A){ly.get(D)!=null?M.otherDims[D]=A:(M.coordDim=D,M.coordDimIndex=A,i.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(M){M.name==null&&(M.name=M.coordDim)}if(s)b(a,function(M){w(M)}),a.sort(function(M,D){return M.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var T=d(S),C=T.coordDim;C==null&&(T.coordDim=J2(x,i,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(vy(r,S)===bt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return K2(a),new gy({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function K2(r){for(var t=V(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Q2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return b(t,function(a){var o;z(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function J2(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var j2=(function(){function r(t){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=t}return r})();function tL(r){var t=r.get("coordinateSystem"),e=new j2(t),n=eL[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var eL={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ft).models[0],a=r.getReferringComponents("yAxis",Ft).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Cn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Cn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ft).models[0];t.coordSysDims=["single"],e.set("single",i),Cn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ft).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Cn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Cn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Cn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Cn(r){return r.get("type")==="category"}function rL(r,t){var e=r.get("coordinateSystem"),n=ps.get(e),i;return t&&t.coordSysDims&&(i=F(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=v2(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nL(r,t,e){var n,i;return e&&b(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function iL(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Xf(r)):(i=n.getSource(),a=i.sourceFormat===fe);var o=tL(t),s=rL(t,o),u=e.useEncodeDefaulter,l=X(u)?u:u?nt(xw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=G0(i,f),c=nL(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=Sy(t,{schema:h,store:v}),g=new N0(h,t);g.setCalculationInfo(d);var p=c!=null&&aL(i)?function(y,m,_,x){return x===c?_:this.defaultDimValueGetter(y,m,_,x)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function aL(r){if(r.sourceFormat===fe){var t=oL(r.data||[]);return!B(ua(t))}}function oL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function sL(r){return iL(null,r)}var uL={isDimensionStacked:Zf,enableDataStack:Sy,getStackedDimension:wy};function lL(r,t){var e=t;t instanceof ft||(e=new ft(t));var n=ky(e);return n.setExtent(r[0],r[1]),yl(n,e),n}function fL(r){ue(r,oy)}function hL(r,t){return t=t||{},$e(r,null,null,t.state!=="normal")}const vL=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:q2,createList:sL,createScale:lL,createSymbol:ds,createTextStyle:hL,dataStack:uL,enableHoverEmphasis:bo,getECData:st,getLayoutRect:gr,mixinAxisModelCommonMethods:fL},Symbol.toStringTag,{value:"Module"})),cL=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ux,asc:ig,getPercentWithPrecision:ax,getPixelPrecision:gf,getPrecision:Pe,getPrecisionSafe:ag,isNumeric:sg,isRadianAroundZero:Hi,linearMap:ir,nice:mf,numericToNumber:Xe,parseDate:se,quantile:fx,quantity:og,quantityExponent:$o,reformIntervals:hx,remRadian:yf,round:Tt},Symbol.toStringTag,{value:"Module"})),dL=Object.freeze(Object.defineProperty({__proto__:null,format:ya,parse:se},Symbol.toStringTag,{value:"Module"})),pL=Object.freeze(Object.defineProperty({__proto__:null,Arc:da,BezierCurve:es,BoundingRect:tt,Circle:ha,CompoundPath:Lg,Ellipse:Jo,Group:Rt,Image:mr,IncrementalDisplayable:Eg,Line:Ze,LinearGradient:Pg,Polygon:va,Polyline:ca,RadialGradient:Rg,Rect:yt,Ring:ts,Sector:jo,Text:_t,clipPointsByRect:If,clipRectByRect:Gg,createIcon:pa,extendPath:Bg,extendShape:kg,getShapeClass:Ng,getTransform:ns,initProps:Mf,makeImage:Df,makePath:rs,mergePath:zg,registerShape:le,resizePath:Af,updateProps:Wn},Symbol.toStringTag,{value:"Module"})),gL=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Ff,capitalFirst:nw,encodeHTML:Nt,formatTime:rw,formatTpl:Hf,getTextRect:ew,getTooltipMarker:ay,normalizeCssArray:Un,toCamelCase:zf,truncateText:m1},Symbol.toStringTag,{value:"Module"})),yL=Object.freeze(Object.defineProperty({__proto__:null,bind:ut,clone:U,curry:nt,defaults:J,each:b,extend:R,filter:dt,indexOf:Q,inherits:of,isArray:B,isFunction:X,isObject:z,isString:N,map:F,merge:Y,reduce:Oe},Symbol.toStringTag,{value:"Module"}));function mL(r){var t=j.extend(r);return j.registerClass(t),t}function _L(r){var t=Ct.extend(r);return Ct.registerClass(t),t}function xL(r){var t=ke.extend(r);return ke.registerClass(t),t}function SL(r){var t=Ee.extend(r);return Ee.registerClass(t),t}const W0=Object.freeze(Object.defineProperty({__proto__:null,Axis:Yy,ChartView:Ee,ComponentModel:j,ComponentView:Ct,List:N0,Model:ft,PRIORITY:Jm,SeriesModel:ke,color:F_,connect:dD,dataTool:SD,dependencies:KM,disConnect:pD,disconnect:o0,dispose:gD,env:W,extendChartView:SL,extendComponentModel:mL,extendComponentView:_L,extendSeriesModel:xL,format:gL,getCoordinateSystemDimensions:mD,getInstanceByDom:lh,getInstanceById:yD,getMap:xD,graphic:pL,helper:vL,init:cD,innerDrawElementOnCanvas:ah,matrix:l_,number:cL,parseGeoJSON:Id,parseGeoJson:Id,registerAction:Te,registerCoordinateSystem:l0,registerLayout:f0,registerLoading:ch,registerLocale:Of,registerMap:h0,registerPostInit:s0,registerPostUpdate:u0,registerPreprocessor:fh,registerProcessor:hh,registerTheme:ms,registerTransform:v0,registerUpdateLifecycle:_s,registerVisual:_r,setCanvasCreator:_D,setPlatformAPI:gp,throttle:th,time:dL,use:Be,util:yL,vector:x_,version:qM,zrUtil:s_,zrender:XT},Symbol.toStringTag,{value:"Module"}));function cp(r,t,e){var n=Ye.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var zu=(function(r){O(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||So,typeof e=="string"?o=cp(e,n,i):z(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(uf(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=cp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new tt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(m)){var M=new tt(0,0,0,0);M.copy(C),M.union(m),o[T]=M,x=!0;break}else if(u){l.copy(m),l.union(C);var D=m.width*m.height,A=C.width*C.height,L=l.width*l.height,P=L-D-A;P<w&&(w=P,S=T)}}if(u&&(o[S].union(m),x=!0),!x){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Kt||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&Kt||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(ea(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Nl(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else _p(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Fl(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!i||l?d(0,0,s,u):i.length&&b(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(be),dp=1e5,Wr=314159,ja=.01,wL=.001;function bL(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function TL(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var CL=(function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=R({},n||{}),this.dpr=n.devicePixelRatio||So,this._singleCanvas=a,this.root=t;var o=t.style;o&&(uf(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new zu(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Wr]=v,v.zlevel=Wr,s.push(Wr),this._domRoot=t}else{this._width=$a(t,0,n),this._height=$a(t,1,n);var l=this._domRoot=TL(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(dp)),a||(a=n.ctx,a.save()),qr(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(dp)},r.prototype.paintOne=function(t,e){ah(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Lo(function(){u._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Wr).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,x=!n&&p.incremental&&Date.now,w=x&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,m);else if(_===p.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&p.clear(!1,S,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var C,M=function(P){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<p.__endIndex;C++){var E=t[C];if(E.__inHover&&(h=!0),i._doPaintEl(E,p,o,P,I,C===p.__endIndex-1),x){var k=Date.now()-w;if(k>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=p.__endIndex;else for(var D=v.dpr,A=0;A<m.length;++A){var L=m[A];y.save(),y.beginPath(),y.rect(L.x*D,L.y*D,L.width*D,L.height*D),y.clip(),M(L),y.restore()}else y.save(),M(),y.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return W.wxa&&b(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(qr(s,t,a,o),t.setPrevPaintRect(u))}else qr(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wr);var n=this._layers[t];return n||(n=new zu("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Y(n,this._layerConfig[t],!0):this._layerConfig[t-ja]&&Y(n,this._layerConfig[t-ja],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&bL(e)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+wL,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?ja:0),this._needsManuallyCompositing),f.__builtin__||Ho("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&Kt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,b(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Y(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+ja){var o=this._layers[a];Y(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Q(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=$a(a,0,i),e=$a(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Wr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wr].dom;var e=new zu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];qr(n,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function ML(r){r.registerPainter("canvas",CL)}Be([R2,$2,bD,D2,l2,VA,o2,Y2,ML]);ms("nocobase-dark",{darkMode:!0,backgroundColor:"transparent",textStyle:{color:"#d4d4d8"},title:{textStyle:{color:"#f4f4f5"}},legend:{textStyle:{color:"#d4d4d8"}},categoryAxis:{axisLine:{lineStyle:{color:"#52525b"}},axisLabel:{color:"#a1a1aa"},splitLine:{lineStyle:{color:"#27272a"}}},valueAxis:{axisLine:{lineStyle:{color:"#52525b"}},axisLabel:{color:"#a1a1aa"},splitLine:{lineStyle:{color:"#27272a"}}}});const DL=new Set(["bar","boxplot","candlestick","effectScatter","line","pictorialBar","scatter"]),AL=new Set(["funnel","gauge","graph","pie","radar","sankey","sunburst","tree","treemap"]),LL=new Set(["custom","heatmap","lines","map","parallel","themeRiver"]),pp=r=>!!r&&typeof r=="object"&&!Array.isArray(r),IL=r=>{const t=r.series;return Array.isArray(t)?t.filter(pp):pp(t)?[t]:[]},U0=r=>{const t=new Set,e=IL(r);for(const i of e){const a=typeof i.type=="string"?i.type:"line";DL.has(a)?t.add("common"):AL.has(a)?t.add("hierarchy"):LL.has(a)&&t.add("advanced")}return(["brush","calendar","dataZoom","geo","graphic","parallel","polar","radar","singleAxis","timeline","visualMap"].some(i=>r[i]!==void 0)||e.some(i=>["lines","map","parallel","radar"].includes(typeof i.type=="string"?i.type:"")||i.markArea!==void 0||i.markLine!==void 0||i.markPoint!==void 0))&&t.add("components"),[...t].sort()},PL={common:()=>ma(()=>import("./echarts-runtime-common-DB95Yfc1.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),hierarchy:()=>ma(()=>import("./echarts-runtime-hierarchy-CezgZs9O.js"),__vite__mapDeps([9,5,10,2,11,6,4,12,7,8])),advanced:()=>ma(()=>import("./echarts-runtime-advanced-Dr80KHJR.js"),__vite__mapDeps([13,4,1,14,11,3,5,10,7,8])),components:()=>ma(()=>import("./echarts-runtime-components-DCJEaTJk.js"),__vite__mapDeps([15,12,11,14,3,6,4,7,8]))},RL=r=>U0(r).join(":");async function EL(r){return await Promise.all(U0(r).map(t=>PL[t]())),W0}const uI=Object.freeze(Object.defineProperty({__proto__:null,default:W0,getEChartsRuntimeSignature:RL,prepareEChartsRuntime:EL},Symbol.toStringTag,{value:"Module"}));export{v2 as $,Vp as A,by as B,Ee as C,N as D,c1 as E,Wp as F,Rt as G,B as H,Ug as I,GL as J,bS as K,Pg as L,jo as M,R as N,UL as O,ct as P,th as Q,yt as R,ke as S,nt as T,QL as U,JL as V,tt as W,Be as X,Wb as Y,_t as Z,O as _,ds as a,xt as a$,xw as a0,ue as a1,IS as a2,Q as a3,mt as a4,ig as a5,fx as a6,Vt as a7,rt as a8,z as a9,ir as aA,gr as aB,gt as aC,tI as aD,wi as aE,qL as aF,ox as aG,ov as aH,iI as aI,n_ as aJ,va as aK,U as aL,qC as aM,Qi as aN,kL as aO,RD as aP,Tp as aQ,qo as aR,es as aS,Fx as aT,Se as aU,ht as aV,xe as aW,ft as aX,It as aY,Mc as aZ,V as a_,MS as aa,K as ab,Gi as ac,Wi as ad,jL as ae,xb as af,u_ as ag,Og as ah,ha as ai,Nn as aj,sg as ak,mr as al,Fn as am,Op as an,Bt as ao,Tt as ap,an as aq,Io as ar,G0 as as,N0 as at,lt as au,fv as av,ca as aw,Ip as ax,__ as ay,R1 as az,vt as b,Xe as b$,aw as b0,ZL as b1,Ix as b2,$e as b3,ph as b4,go as b5,Mp as b6,Nv as b7,il as b8,bg as b9,NL as bA,zl as bB,Pa as bC,Hi as bD,Yu as bE,vf as bF,zt as bG,lf as bH,ia as bI,eI as bJ,oI as bK,Ky as bL,be as bM,Y as bN,oy as bO,cw as bP,j as bQ,dr as bR,ts as bS,zg as bT,Ct as bU,Yy as bV,Yn as bW,lb as bX,Qt as bY,yr as bZ,Hp as b_,Xx as ba,sf as bb,sa as bc,zi as bd,fr as be,k_ as bf,B_ as bg,dt as bh,ux as bi,Dp as bj,Lp as bk,to as bl,un as bm,Ap as bn,ff as bo,h_ as bp,f_ as bq,v_ as br,xo as bs,Yt as bt,Qr as bu,ps as bv,KC as bw,Ze as bx,Lx as by,YL as bz,iL as c,$L as c$,Oi as c0,Eh as c1,cn as c2,O1 as c3,e_ as c4,Ye as c5,Ft as c6,Mv as c7,we as c8,KL as c9,p0 as cA,HD as cB,Vg as cC,KD as cD,QD as cE,qD as cF,Fv as cG,wS as cH,Bi as cI,eo as cJ,Pt as cK,qb as cL,Kb as cM,$b as cN,rI as cO,jb as cP,Wo as cQ,Ny as cR,Zy as cS,nm as cT,Nb as cU,Bb as cV,Ui as cW,Jb as cX,tm as cY,tT as cZ,ls as c_,Xg as ca,rs as cb,Ng as cc,wo as cd,rS as ce,Jo as cf,Rg as cg,me as ch,hr as ci,Go as cj,aI as ck,DD as cl,Id as cm,ar as cn,or as co,Oe as cp,oa as cq,Lg as cr,ga as cs,VL as ct,Si as cu,Qy as cv,Cl as cw,ky as cx,yl as cy,Lf as cz,js as d,zn as d0,XL as d1,qS as d2,se as d3,cx as d4,ow as d5,iw as d6,MM as d7,nI as d8,Md as d9,Un as dA,BL as dB,hx as dC,Bn as dD,uI as dE,AS as da,R0 as db,ye as dc,ui as dd,ua as de,wC as df,bo as dg,Py as dh,Wf as di,pa as dj,W as dk,vo as dl,Pe as dm,zx as dn,mg as dp,DM as dq,wy as dr,eA as ds,sI as dt,nA as du,lA as dv,Kr as dw,xl as dx,ns as dy,Hg as dz,W0 as e,ut as f,RL as g,Xi as h,Zf as i,Mf as j,J as k,st as l,F as m,FL as n,X as o,EL as p,la as q,PS as r,HL as s,zL as t,WL as u,Ax as v,Pf as w,Wn as x,b as y,pr as z};
58
+ `||i==="")){var a=r.isSelected(i);we(e,i)?e[i]=e[i]&&a:e[i]=a}}),e}function w2(r){r.registerAction("legendToggleSelect","legendselectchanged",nt(di,"toggleSelected")),r.registerAction("legendAllSelect","legendselectall",nt(di,"allSelect")),r.registerAction("legendInverseSelect","legendinverseselect",nt(di,"inverseSelect")),r.registerAction("legendSelect","legendselected",nt(di,"select")),r.registerAction("legendUnSelect","legendunselected",nt(di,"unSelect"))}function H0(r){r.registerComponentModel(Ql),r.registerComponentView(F0),r.registerProcessor(r.PRIORITY.PROCESSOR.SERIES_FILTER,S2),r.registerSubTypeDefaulter("legend",function(){return"plain"}),w2(r)}var b2=(function(r){O(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,n,i){var a=ls(e);r.prototype.init.call(this,e,n,i),up(this,e,a)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),up(this,this.option,e)},t.type="legend.scroll",t.defaultOption=c1(Ql.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:"#2f4554",pageIconInactiveColor:"#aaa",pageIconSize:15,pageTextStyle:{color:"#333"},animationDurationUpdate:800}),t})(Ql);function up(r,t,e){var n=r.getOrient(),i=[1,1];i[n.index]=0,zn(t,e,{type:"box",ignoreSize:!!i})}var lp=Rt,Nu=["width","height"],Fu=["x","y"],T2=(function(r){O(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 lp),this._containerGroup.add(this.getContentGroup()),this.group.add(this._controllerGroup=new lp)},t.prototype.resetInner=function(){r.prototype.resetInner.call(this),this._controllerGroup.removeAll(),this._containerGroup.removeClipPath(),this._containerGroup.__rectSize=null},t.prototype.renderInner=function(e,n,i,a,o,s,u){var l=this;r.prototype.renderInner.call(this,e,n,i,a,o,s,u);var f=this._controllerGroup,h=n.get("pageIconSize",!0),c=B(h)?h:[h,h];d("pagePrev",0);var v=n.getModel("pageTextStyle");f.add(new _t({name:"pageText",style:{text:"xx/xx",fill:v.getTextColor(),font:v.getFont(),verticalAlign:"middle",align:"center"},silent:!0})),d("pageNext",1);function d(g,p){var y=g+"DataIndex",m=pa(n.get("pageIcons",!0)[n.getOrient().name][p],{onclick:ut(l._pageGo,l,y,n,a)},{x:-c[0]/2,y:-c[1]/2,width:c[0],height:c[1]});m.name=g,f.add(m)}},t.prototype.layoutInner=function(e,n,i,a,o,s){var u=this.getSelectorGroup(),l=e.getOrient().index,f=Nu[l],h=Fu[l],c=Nu[1-l],v=Fu[1-l];o&&Bn("horizontal",u,e.get("selectorItemGap",!0));var d=e.get("selectorButtonGap",!0),g=u.getBoundingRect(),p=[-g.x,-g.y],y=U(i);o&&(y[f]=i[f]-g[f]-d);var m=this._layoutContentAndController(e,a,y,l,f,c,v,h);if(o){if(s==="end")p[l]+=m[f]+d;else{var _=g[f]+d;p[l]-=_,m[h]-=_}m[f]+=g[f]+d,p[1-l]+=m[v]+m[c]/2-g[c]/2,m[c]=Math.max(m[c],g[c]),m[v]=Math.min(m[v],g[v]+p[1-l]),u.x=p[0],u.y=p[1],u.markRedraw()}return m},t.prototype._layoutContentAndController=function(e,n,i,a,o,s,u,l){var f=this.getContentGroup(),h=this._containerGroup,c=this._controllerGroup;Bn(e.get("orient"),f,e.get("itemGap"),a?i.width:null,a?null:i.height),Bn("horizontal",c,e.get("pageButtonItemGap",!0));var v=f.getBoundingRect(),d=c.getBoundingRect(),g=this._showController=v[o]>i[o],p=[-v.x,-v.y];n||(p[a]=f[l]);var y=[0,0],m=[-d.x,-d.y],_=K(e.get("pageButtonGap",!0),e.get("itemGap",!0));if(g){var x=e.get("pageButtonPosition",!0);x==="end"?m[a]+=i[o]-d[o]:y[a]+=d[o]+_}m[1-a]+=v[s]/2-d[s]/2,f.setPosition(p),h.setPosition(y),c.setPosition(m);var w={x:0,y:0};if(w[o]=g?i[o]:v[o],w[s]=Math.max(v[s],d[s]),w[u]=Math.min(0,d[u]+m[1-a]),h.__rectSize=i[o],g){var S={x:0,y:0};S[o]=Math.max(i[o]-d[o]-_,0),S[s]=w[s],h.setClipPath(new yt({shape:S})),h.__rectSize=S[o]}else c.eachChild(function(C){C.attr({invisible:!0,silent:!0})});var T=this._getPageInfo(e);return T.pageIndex!=null&&Wn(f,{x:T.contentPosition[0],y:T.contentPosition[1]},g?e:null),this._updatePageInfoView(e,T),w},t.prototype._pageGo=function(e,n,i){var a=this._getPageInfo(n)[e];a!=null&&i.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:n.id})},t.prototype._updatePageInfoView=function(e,n){var i=this._controllerGroup;b(["pagePrev","pageNext"],function(f){var h=f+"DataIndex",c=n[h]!=null,v=i.childOfName(f);v&&(v.setStyle("fill",c?e.get("pageIconColor",!0):e.get("pageIconInactiveColor",!0)),v.cursor=c?"pointer":"default")});var a=i.childOfName("pageText"),o=e.get("pageFormatter"),s=n.pageIndex,u=s!=null?s+1:0,l=n.pageCount;a&&o&&a.setStyle("text",N(o)?o.replace("{current}",u==null?"":u+"").replace("{total}",l==null?"":l+""):o({current:u,total:l}))},t.prototype._getPageInfo=function(e){var n=e.get("scrollDataIndex",!0),i=this.getContentGroup(),a=this._containerGroup.__rectSize,o=e.getOrient().index,s=Nu[o],u=Fu[o],l=this._findTargetItemIndex(n),f=i.children(),h=f[l],c=f.length,v=c?1:0,d={contentPosition:[i.x,i.y],pageCount:v,pageIndex:v-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!h)return d;var g=x(h);d.contentPosition[o]=-g.s;for(var p=l+1,y=g,m=g,_=null;p<=c;++p)_=x(f[p]),(!_&&m.e>y.s+a||_&&!w(_,y.s))&&(m.i>y.i?y=m:y=_,y&&(d.pageNextDataIndex==null&&(d.pageNextDataIndex=y.i),++d.pageCount)),m=_;for(var p=l-1,y=g,m=g,_=null;p>=-1;--p)_=x(f[p]),(!_||!w(m,_.s))&&y.i<m.i&&(m=y,d.pagePrevDataIndex==null&&(d.pagePrevDataIndex=y.i),++d.pageCount,++d.pageIndex),y=_;return d;function x(S){if(S){var T=S.getBoundingRect(),C=T[u]+S[u];return{s:C,e:C+T[s],i:S.__legendDataIndex}}}function w(S,T){return S.e>=T&&S.s<=T+a}},t.prototype._findTargetItemIndex=function(e){if(!this._showController)return 0;var n,i=this.getContentGroup(),a;return i.eachChild(function(o,s){var u=o.__legendDataIndex;a==null&&u!=null&&(a=s),u===e&&(n=s)}),n??a},t.type="legend.scroll",t})(F0);function C2(r){r.registerAction("legendScroll","legendscroll",function(t,e){var n=t.scrollDataIndex;n!=null&&e.eachComponent({mainType:"legend",subType:"scroll",query:t},function(i){i.setScrollDataIndex(n)})})}function M2(r){Be(H0),r.registerComponentModel(b2),r.registerComponentView(T2),C2(r)}function D2(r){Be(H0),Be(M2)}var A2={label:{enabled:!0},decal:{show:!1}},fp=gt(),L2={};function I2(r,t){var e=r.getModel("aria");if(!e.get("enabled"))return;var n=U(A2);Y(n.label,r.getLocaleModel().get("aria"),!1),Y(e.option,n,!1),i(),a();function i(){var l=e.getModel("decal"),f=l.get("show");if(f){var h=V();r.eachSeries(function(c){if(!c.isColorBySeries()){var v=h.get(c.type);v||(v={},h.set(c.type,v)),fp(c).scope=v}}),r.eachRawSeries(function(c){if(r.isSeriesFiltered(c))return;if(X(c.enableAriaDecal)){c.enableAriaDecal();return}var v=c.getData();if(c.isColorBySeries()){var m=Mc(c.ecModel,c.name,L2,r.getSeriesCount()),_=v.getVisual("decal");v.setVisual("decal",x(_,m))}else{var d=c.getRawData(),g={},p=fp(c).scope;v.each(function(w){var S=v.getRawIndex(w);g[S]=w});var y=d.count();d.each(function(w){var S=g[w],T=d.getName(w)||w+"",C=Mc(c.ecModel,T,p,y),M=v.getItemVisual(S,"decal");v.setItemVisual(S,"decal",x(M,C))})}function x(w,S){var T=w?R(R({},S),w):S;return T.dirty=!0,T}})}}function a(){var l=t.getZr().dom;if(l){var f=r.getLocaleModel().get("aria"),h=e.getModel("label");if(h.option=J(h.option,f),!!h.get("enabled")){if(l.setAttribute("role","img"),h.get("description")){l.setAttribute("aria-label",h.get("description"));return}var c=r.getSeriesCount(),v=h.get(["data","maxCount"])||10,d=h.get(["series","maxCount"])||10,g=Math.min(c,d),p;if(!(c<1)){var y=s();if(y){var m=h.get(["general","withTitle"]);p=o(m,{title:y})}else p=h.get(["general","withoutTitle"]);var _=[],x=c>1?h.get(["series","multiple","prefix"]):h.get(["series","single","prefix"]);p+=o(x,{seriesCount:c}),r.eachSeries(function(C,M){if(M<g){var D=void 0,A=C.get("name"),L=A?"withName":"withoutName";D=c>1?h.get(["series","multiple",L]):h.get(["series","single",L]),D=o(D,{seriesId:C.seriesIndex,seriesName:C.get("name"),seriesType:u(C.subType)});var P=C.getData();if(P.count()>v){var I=h.get(["data","partialData"]);D+=o(I,{displayCnt:v})}else D+=h.get(["data","allData"]);for(var E=h.get(["data","separator","middle"]),k=h.get(["data","separator","end"]),$=h.get(["data","excludeDimensionId"]),G=[],H=0;H<P.count();H++)if(H<v){var q=P.getName(H),ot=$?dt(P.getValues(H),function(St,Gt){return Q($,Gt)===-1}):P.getValues(H),it=h.get(["data",q?"withName":"withoutName"]);G.push(o(it,{name:q,value:ot.join(E)}))}D+=G.join(E)+k,_.push(D)}});var w=h.getModel(["series","multiple","separator"]),S=w.get("middle"),T=w.get("end");p+=_.join(S)+T,l.setAttribute("aria-label",p)}}}}function o(l,f){if(!N(l))return l;var h=l;return b(f,function(c,v){h=h.replace(new RegExp("\\{\\s*"+v+"\\s*\\}","g"),c)}),h}function s(){var l=r.get("title");return l&&l.length&&(l=l[0]),l&&l.text}function u(l){var f=r.getLocaleModel().get(["series","typeNames"]);return f[l]||f.chart}}function P2(r){if(!(!r||!r.aria)){var t=r.aria;t.show!=null&&(t.enabled=t.show),t.label=t.label||{},b(["description","general","series","data"],function(e){t[e]!=null&&(t.label[e]=t[e])})}}function R2(r){r.registerPreprocessor(P2),r.registerVisual(r.PRIORITY.VISUAL.ARIA,I2)}var hp={value:"eq","<":"lt","<=":"lte",">":"gt",">=":"gte","=":"eq","!=":"ne","<>":"ne"},E2=(function(){function r(t){var e=this._condVal=N(t)?new RegExp(t):xp(t)?t:null;if(e==null){var n="";rt(n)}}return r.prototype.evaluate=function(t){var e=typeof t;return N(e)?this._condVal.test(t):vt(e)?this._condVal.test(t+""):!1},r})(),O2=(function(){function r(){}return r.prototype.evaluate=function(){return this.value},r})(),k2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(!t[e].evaluate())return!1;return!0},r})(),B2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=this.children,e=0;e<t.length;e++)if(t[e].evaluate())return!0;return!1},r})(),N2=(function(){function r(){}return r.prototype.evaluate=function(){return!this.child.evaluate()},r})(),F2=(function(){function r(){}return r.prototype.evaluate=function(){for(var t=!!this.valueParser,e=this.getValue,n=e(this.valueGetterParam),i=t?this.valueParser(n):null,a=0;a<this.subCondList.length;a++)if(!this.subCondList[a].evaluate(t?i:n))return!1;return!0},r})();function Ch(r,t){if(r===!0||r===!1){var e=new O2;return e.value=r,e}var n="";return V0(r)||rt(n),r.and?vp("and",r,t):r.or?vp("or",r,t):r.not?z2(r,t):H2(r,t)}function vp(r,t,e){var n=t[r],i="";B(n)||rt(i),n.length||rt(i);var a=r==="and"?new k2:new B2;return a.children=F(n,function(o){return Ch(o,e)}),a.children.length||rt(i),a}function z2(r,t){var e=r.not,n="";V0(e)||rt(n);var i=new N2;return i.child=Ch(e,t),i.child||rt(n),i}function H2(r,t){for(var e="",n=t.prepareGetValue(r),i=[],a=ht(r),o=r.parser,s=o?xm(o):null,u=0;u<a.length;u++){var l=a[u];if(!(l==="parser"||t.valueGetterAttrMap.get(l))){var f=we(hp,l)?hp[l]:l,h=r[l],c=s?s(h):h,v=DC(f,c)||f==="reg"&&new E2(c);v||rt(e),i.push(v)}}i.length||rt(e);var d=new F2;return d.valueGetterParam=n,d.valueParser=s,d.getValue=t.getValue,d.subCondList=i,d}function V0(r){return z(r)&&!Pt(r)}var V2=(function(){function r(t,e){this._cond=Ch(t,e)}return r.prototype.evaluate=function(){return this._cond.evaluate()},r})();function G2(r,t){return new V2(r,t)}var W2={type:"echarts:filter",transform:function(r){for(var t=r.upstream,e,n=G2(r.config,{valueGetterAttrMap:V({dimension:!0}),prepareGetValue:function(s){var u="",l=s.dimension;we(s,"dimension")||rt(u);var f=t.getDimensionInfo(l);return f||rt(u),{dimIdx:f.index}},getValue:function(s){return t.retrieveValueFromItem(e,s.dimIdx)}}),i=[],a=0,o=t.count();a<o;a++)e=t.getRawDataItem(a),n.evaluate()&&i.push(e);return{data:i}}},U2={type:"echarts:sort",transform:function(r){var t=r.upstream,e=r.config,n="",i=xt(e);i.length||rt(n);var a=[];b(i,function(f){var h=f.dimension,c=f.order,v=f.parser,d=f.incomparable;if(h==null&&rt(n),c!=="asc"&&c!=="desc"&&rt(n),d&&d!=="min"&&d!=="max"){var g="";rt(g)}if(c!=="asc"&&c!=="desc"){var p="";rt(p)}var y=t.getDimensionInfo(h);y||rt(n);var m=v?xm(v):null;v&&!m&&rt(n),a.push({dimIdx:y.index,parser:m,comparator:new wm(c,d)})});var o=t.sourceFormat;o!==Vt&&o!==he&&rt(n);for(var s=[],u=0,l=t.count();u<l;u++)s.push(t.getRawDataItem(u));return s.sort(function(f,h){for(var c=0;c<a.length;c++){var v=a[c],d=t.retrieveValueFromItem(f,v.dimIdx),g=t.retrieveValueFromItem(h,v.dimIdx);v.parser&&(d=v.parser(d),g=v.parser(g));var p=v.comparator.evaluate(d,g);if(p!==0)return p}return 0}),{data:s}}};function Y2(r){r.registerTransform(W2),r.registerTransform(U2)}var X2=(function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.prototype.init=function(e,n,i){r.prototype.init.call(this,e,n,i),this._sourceManager=new Mm(this),Yc(this)},t.prototype.mergeOption=function(e,n){r.prototype.mergeOption.call(this,e,n),Yc(this)},t.prototype.optionUpdated=function(){this._sourceManager.dirty()},t.prototype.getSourceManager=function(){return this._sourceManager},t.type="dataset",t.defaultOption={seriesLayoutBy:Re},t})(j),Z2=(function(r){O(t,r);function t(){var e=r!==null&&r.apply(this,arguments)||this;return e.type="dataset",e}return t.type="dataset",t})(Ct);function $2(r){r.registerComponentModel(X2),r.registerComponentView(Z2)}function q2(r,t){return G0(r,t).dimensions}function G0(r,t){Yf(r)||(r=Xf(r)),t=t||{};var e=t.coordDimensions||[],n=t.dimensionsDefine||r.dimensionsDefine||[],i=V(),a=[],o=Q2(r,e,n,t.dimensionsCount),s=t.canOmitUnusedDimensions&&xy(o),u=n===r.dimensionsDefine,l=u?_y(r):my(n),f=t.encodeDefine;!f&&t.encodeDefaulter&&(f=t.encodeDefaulter(r,o));for(var h=V(f),c=new Tm(o),v=0;v<c.length;v++)c[v]=-1;function d(M){var D=c[M];if(D<0){var A=n[M],L=z(A)?A:{name:A},P=new co,I=L.name;I!=null&&l.get(I)!=null&&(P.name=P.displayName=I),L.type!=null&&(P.type=L.type),L.displayName!=null&&(P.displayName=L.displayName);var E=a.length;return c[M]=E,P.storeDimIndex=M,a.push(P),P}return a[D]}if(!s)for(var v=0;v<o;v++)d(v);h.each(function(M,D){var A=xt(M).slice();if(A.length===1&&!N(A[0])&&A[0]<0){h.set(D,!1);return}var L=h.set(D,[]);b(A,function(P,I){var E=N(P)?l.get(P):P;E!=null&&E<o&&(L[I]=E,p(d(E),D,I))})});var g=0;b(e,function(M){var D,A,L,P;if(N(M))D=M,P={};else{P=M,D=P.name;var I=P.ordinalMeta;P.ordinalMeta=null,P=R({},P),P.ordinalMeta=I,A=P.dimsDef,L=P.otherDims,P.name=P.coordDim=P.coordDimIndex=P.dimsDef=P.otherDims=null}var E=h.get(D);if(E!==!1){if(E=xt(E),!E.length)for(var k=0;k<(A&&A.length||1);k++){for(;g<o&&d(g).coordDim!=null;)g++;g<o&&E.push(g++)}b(E,function($,G){var H=d($);if(u&&P.type!=null&&(H.type=P.type),p(J(H,P),D,G),H.name==null&&A){var q=A[G];!z(q)&&(q={name:q}),H.name=H.displayName=q.name,H.defaultTooltip=q.defaultTooltip}L&&J(H.otherDims,L)})}});function p(M,D,A){ly.get(D)!=null?M.otherDims[D]=A:(M.coordDim=D,M.coordDimIndex=A,i.set(D,!0))}var y=t.generateCoord,m=t.generateCoordCount,_=m!=null;m=y?m||1:0;var x=y||"value";function w(M){M.name==null&&(M.name=M.coordDim)}if(s)b(a,function(M){w(M)}),a.sort(function(M,D){return M.storeDimIndex-D.storeDimIndex});else for(var S=0;S<o;S++){var T=d(S),C=T.coordDim;C==null&&(T.coordDim=J2(x,i,_),T.coordDimIndex=0,(!y||m<=0)&&(T.isExtraCoord=!0),m--),w(T),T.type==null&&(vy(r,S)===bt.Must||T.isExtraCoord&&(T.otherDims.itemName!=null||T.otherDims.seriesName!=null))&&(T.type="ordinal")}return K2(a),new gy({source:r,dimensions:a,fullDimensionCount:o,dimensionOmitted:s})}function K2(r){for(var t=V(),e=0;e<r.length;e++){var n=r[e],i=n.name,a=t.get(i)||0;a>0&&(n.name=i+(a-1)),a++,t.set(i,a)}}function Q2(r,t,e,n){var i=Math.max(r.dimensionsDetectedCount||1,t.length,e.length,n||0);return b(t,function(a){var o;z(a)&&(o=a.dimsDef)&&(i=Math.max(i,o.length))}),i}function J2(r,t,e){if(e||t.hasKey(r)){for(var n=0;t.hasKey(r+n);)n++;r+=n}return t.set(r,!0),r}var j2=(function(){function r(t){this.coordSysDims=[],this.axisMap=V(),this.categoryAxisMap=V(),this.coordSysName=t}return r})();function tL(r){var t=r.get("coordinateSystem"),e=new j2(t),n=eL[t];if(n)return n(r,e,e.axisMap,e.categoryAxisMap),e}var eL={cartesian2d:function(r,t,e,n){var i=r.getReferringComponents("xAxis",Ft).models[0],a=r.getReferringComponents("yAxis",Ft).models[0];t.coordSysDims=["x","y"],e.set("x",i),e.set("y",a),Cn(i)&&(n.set("x",i),t.firstCategoryDimIndex=0),Cn(a)&&(n.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(r,t,e,n){var i=r.getReferringComponents("singleAxis",Ft).models[0];t.coordSysDims=["single"],e.set("single",i),Cn(i)&&(n.set("single",i),t.firstCategoryDimIndex=0)},polar:function(r,t,e,n){var i=r.getReferringComponents("polar",Ft).models[0],a=i.findAxisModel("radiusAxis"),o=i.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],e.set("radius",a),e.set("angle",o),Cn(a)&&(n.set("radius",a),t.firstCategoryDimIndex=0),Cn(o)&&(n.set("angle",o),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(r,t,e,n){t.coordSysDims=["lng","lat"]},parallel:function(r,t,e,n){var i=r.ecModel,a=i.getComponent("parallel",r.get("parallelIndex")),o=t.coordSysDims=a.dimensions.slice();b(a.parallelAxisIndex,function(s,u){var l=i.getComponent("parallelAxis",s),f=o[u];e.set(f,l),Cn(l)&&(n.set(f,l),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=u))})}};function Cn(r){return r.get("type")==="category"}function rL(r,t){var e=r.get("coordinateSystem"),n=ps.get(e),i;return t&&t.coordSysDims&&(i=F(t.coordSysDims,function(a){var o={name:a},s=t.axisMap.get(a);if(s){var u=s.get("type");o.type=v2(u)}return o})),i||(i=n&&(n.getDimensionsInfo?n.getDimensionsInfo():n.dimensions.slice())||["x","y"]),i}function nL(r,t,e){var n,i;return e&&b(r,function(a,o){var s=a.coordDim,u=e.categoryAxisMap.get(s);u&&(n==null&&(n=o),a.ordinalMeta=u.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(i=!0)}),!i&&n!=null&&(r[n].otherDims.itemName=0),n}function iL(r,t,e){e=e||{};var n=t.getSourceManager(),i,a=!1;r?(a=!0,i=Xf(r)):(i=n.getSource(),a=i.sourceFormat===fe);var o=tL(t),s=rL(t,o),u=e.useEncodeDefaulter,l=X(u)?u:u?nt(xw,s,t):null,f={coordDimensions:s,generateCoord:e.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:l,canOmitUnusedDimensions:!a},h=G0(i,f),c=nL(h.dimensions,e.createInvertedIndices,o),v=a?null:n.getSharedDataStore(h),d=Sy(t,{schema:h,store:v}),g=new N0(h,t);g.setCalculationInfo(d);var p=c!=null&&aL(i)?function(y,m,_,x){return x===c?_:this.defaultDimValueGetter(y,m,_,x)}:null;return g.hasItemOption=!1,g.initData(a?i:v,null,p),g}function aL(r){if(r.sourceFormat===fe){var t=oL(r.data||[]);return!B(ua(t))}}function oL(r){for(var t=0;t<r.length&&r[t]==null;)t++;return r[t]}function sL(r){return iL(null,r)}var uL={isDimensionStacked:Zf,enableDataStack:Sy,getStackedDimension:wy};function lL(r,t){var e=t;t instanceof ft||(e=new ft(t));var n=ky(e);return n.setExtent(r[0],r[1]),yl(n,e),n}function fL(r){ue(r,oy)}function hL(r,t){return t=t||{},$e(r,null,null,t.state!=="normal")}const vL=Object.freeze(Object.defineProperty({__proto__:null,createDimensions:q2,createList:sL,createScale:lL,createSymbol:ds,createTextStyle:hL,dataStack:uL,enableHoverEmphasis:bo,getECData:st,getLayoutRect:gr,mixinAxisModelCommonMethods:fL},Symbol.toStringTag,{value:"Module"})),cL=Object.freeze(Object.defineProperty({__proto__:null,MAX_SAFE_INTEGER:ux,asc:ig,getPercentWithPrecision:ax,getPixelPrecision:gf,getPrecision:Pe,getPrecisionSafe:ag,isNumeric:sg,isRadianAroundZero:Hi,linearMap:ir,nice:mf,numericToNumber:Xe,parseDate:se,quantile:fx,quantity:og,quantityExponent:$o,reformIntervals:hx,remRadian:yf,round:Tt},Symbol.toStringTag,{value:"Module"})),dL=Object.freeze(Object.defineProperty({__proto__:null,format:ya,parse:se},Symbol.toStringTag,{value:"Module"})),pL=Object.freeze(Object.defineProperty({__proto__:null,Arc:da,BezierCurve:es,BoundingRect:tt,Circle:ha,CompoundPath:Lg,Ellipse:Jo,Group:Rt,Image:mr,IncrementalDisplayable:Eg,Line:Ze,LinearGradient:Pg,Polygon:va,Polyline:ca,RadialGradient:Rg,Rect:yt,Ring:ts,Sector:jo,Text:_t,clipPointsByRect:If,clipRectByRect:Gg,createIcon:pa,extendPath:Bg,extendShape:kg,getShapeClass:Ng,getTransform:ns,initProps:Mf,makeImage:Df,makePath:rs,mergePath:zg,registerShape:le,resizePath:Af,updateProps:Wn},Symbol.toStringTag,{value:"Module"})),gL=Object.freeze(Object.defineProperty({__proto__:null,addCommas:Ff,capitalFirst:nw,encodeHTML:Nt,formatTime:rw,formatTpl:Hf,getTextRect:ew,getTooltipMarker:ay,normalizeCssArray:Un,toCamelCase:zf,truncateText:m1},Symbol.toStringTag,{value:"Module"})),yL=Object.freeze(Object.defineProperty({__proto__:null,bind:ut,clone:U,curry:nt,defaults:J,each:b,extend:R,filter:dt,indexOf:Q,inherits:of,isArray:B,isFunction:X,isObject:z,isString:N,map:F,merge:Y,reduce:Oe},Symbol.toStringTag,{value:"Module"}));function mL(r){var t=j.extend(r);return j.registerClass(t),t}function _L(r){var t=Ct.extend(r);return Ct.registerClass(t),t}function xL(r){var t=ke.extend(r);return ke.registerClass(t),t}function SL(r){var t=Ee.extend(r);return Ee.registerClass(t),t}const W0=Object.freeze(Object.defineProperty({__proto__:null,Axis:Yy,ChartView:Ee,ComponentModel:j,ComponentView:Ct,List:N0,Model:ft,PRIORITY:Jm,SeriesModel:ke,color:F_,connect:dD,dataTool:SD,dependencies:KM,disConnect:pD,disconnect:o0,dispose:gD,env:W,extendChartView:SL,extendComponentModel:mL,extendComponentView:_L,extendSeriesModel:xL,format:gL,getCoordinateSystemDimensions:mD,getInstanceByDom:lh,getInstanceById:yD,getMap:xD,graphic:pL,helper:vL,init:cD,innerDrawElementOnCanvas:ah,matrix:l_,number:cL,parseGeoJSON:Id,parseGeoJson:Id,registerAction:Te,registerCoordinateSystem:l0,registerLayout:f0,registerLoading:ch,registerLocale:Of,registerMap:h0,registerPostInit:s0,registerPostUpdate:u0,registerPreprocessor:fh,registerProcessor:hh,registerTheme:ms,registerTransform:v0,registerUpdateLifecycle:_s,registerVisual:_r,setCanvasCreator:_D,setPlatformAPI:gp,throttle:th,time:dL,use:Be,util:yL,vector:x_,version:qM,zrUtil:s_,zrender:XT},Symbol.toStringTag,{value:"Module"}));function cp(r,t,e){var n=Ye.createCanvas(),i=t.getWidth(),a=t.getHeight(),o=n.style;return o&&(o.position="absolute",o.left="0",o.top="0",o.width=i+"px",o.height=a+"px",n.setAttribute("data-zr-dom-id",r)),n.width=i*e,n.height=a*e,n}var zu=(function(r){O(t,r);function t(e,n,i){var a=r.call(this)||this;a.motionBlur=!1,a.lastFrameAlpha=.7,a.dpr=1,a.virtual=!1,a.config={},a.incremental=!1,a.zlevel=0,a.maxRepaintRectCount=5,a.__dirty=!0,a.__firstTimePaint=!0,a.__used=!1,a.__drawIndex=0,a.__startIndex=0,a.__endIndex=0,a.__prevStartIndex=null,a.__prevEndIndex=null;var o;i=i||So,typeof e=="string"?o=cp(e,n,i):z(e)&&(o=e,e=o.id),a.id=e,a.dom=o;var s=o.style;return s&&(uf(o),o.onselectstart=function(){return!1},s.padding="0",s.margin="0",s.borderWidth="0"),a.painter=n,a.dpr=i,a}return t.prototype.getElementCount=function(){return this.__endIndex-this.__startIndex},t.prototype.afterBrush=function(){this.__prevStartIndex=this.__startIndex,this.__prevEndIndex=this.__endIndex},t.prototype.initContext=function(){this.ctx=this.dom.getContext("2d"),this.ctx.dpr=this.dpr},t.prototype.setUnpainted=function(){this.__firstTimePaint=!0},t.prototype.createBackBuffer=function(){var e=this.dpr;this.domBack=cp("back-"+this.id,this.painter,e),this.ctxBack=this.domBack.getContext("2d"),e!==1&&this.ctxBack.scale(e,e)},t.prototype.createRepaintRects=function(e,n,i,a){if(this.__firstTimePaint)return this.__firstTimePaint=!1,null;var o=[],s=this.maxRepaintRectCount,u=!1,l=new tt(0,0,0,0);function f(m){if(!(!m.isFinite()||m.isZero()))if(o.length===0){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}else{for(var x=!1,w=1/0,S=0,T=0;T<o.length;++T){var C=o[T];if(C.intersect(m)){var M=new tt(0,0,0,0);M.copy(C),M.union(m),o[T]=M,x=!0;break}else if(u){l.copy(m),l.union(C);var D=m.width*m.height,A=C.width*C.height,L=l.width*l.height,P=L-D-A;P<w&&(w=P,S=T)}}if(u&&(o[S].union(m),x=!0),!x){var _=new tt(0,0,0,0);_.copy(m),o.push(_)}u||(u=o.length>=s)}}for(var h=this.__startIndex;h<this.__endIndex;++h){var c=e[h];if(c){var v=c.shouldBePainted(i,a,!0,!0),d=c.__isRendered&&(c.__dirty&Kt||!v)?c.getPrevPaintRect():null;d&&f(d);var g=v&&(c.__dirty&Kt||!c.__isRendered)?c.getPaintRect():null;g&&f(g)}}for(var h=this.__prevStartIndex;h<this.__prevEndIndex;++h){var c=n[h],v=c&&c.shouldBePainted(i,a,!0,!0);if(c&&(!v||!c.__zr)&&c.__isRendered){var d=c.getPrevPaintRect();d&&f(d)}}var p;do{p=!1;for(var h=0;h<o.length;){if(o[h].isZero()){o.splice(h,1);continue}for(var y=h+1;y<o.length;)o[h].intersect(o[y])?(p=!0,o[h].union(o[y]),o.splice(y,1)):y++;h++}}while(p);return this._paintRects=o,o},t.prototype.debugGetPaintRects=function(){return(this._paintRects||[]).slice()},t.prototype.resize=function(e,n){var i=this.dpr,a=this.dom,o=a.style,s=this.domBack;o&&(o.width=e+"px",o.height=n+"px"),a.width=e*i,a.height=n*i,s&&(s.width=e*i,s.height=n*i,i!==1&&this.ctxBack.scale(i,i))},t.prototype.clear=function(e,n,i){var a=this.dom,o=this.ctx,s=a.width,u=a.height;n=n||this.clearColor;var l=this.motionBlur&&!e,f=this.lastFrameAlpha,h=this.dpr,c=this;l&&(this.domBack||this.createBackBuffer(),this.ctxBack.globalCompositeOperation="copy",this.ctxBack.drawImage(a,0,0,s/h,u/h));var v=this.domBack;function d(g,p,y,m){if(o.clearRect(g,p,y,m),n&&n!=="transparent"){var _=void 0;if(ea(n)){var x=n.global||n.__width===y&&n.__height===m;_=x&&n.__canvasGradient||Nl(o,n,{x:0,y:0,width:y,height:m}),n.__canvasGradient=_,n.__width=y,n.__height=m}else _p(n)&&(n.scaleX=n.scaleX||h,n.scaleY=n.scaleY||h,_=Fl(o,n,{dirty:function(){c.setUnpainted(),c.painter.refresh()}}));o.save(),o.fillStyle=_||n,o.fillRect(g,p,y,m),o.restore()}l&&(o.save(),o.globalAlpha=f,o.drawImage(v,g,p,y,m),o.restore())}!i||l?d(0,0,s,u):i.length&&b(i,function(g){d(g.x*h,g.y*h,g.width*h,g.height*h)})},t})(be),dp=1e5,Wr=314159,ja=.01,wL=.001;function bL(r){return r?r.__builtin__?!0:!(typeof r.resize!="function"||typeof r.refresh!="function"):!1}function TL(r,t){var e=document.createElement("div");return e.style.cssText=["position:relative","width:"+r+"px","height:"+t+"px","padding:0","margin:0","border-width:0"].join(";")+";",e}var CL=(function(){function r(t,e,n,i){this.type="canvas",this._zlevelList=[],this._prevDisplayList=[],this._layers={},this._layerConfig={},this._needsManuallyCompositing=!1,this.type="canvas";var a=!t.nodeName||t.nodeName.toUpperCase()==="CANVAS";this._opts=n=R({},n||{}),this.dpr=n.devicePixelRatio||So,this._singleCanvas=a,this.root=t;var o=t.style;o&&(uf(t),t.innerHTML=""),this.storage=e;var s=this._zlevelList;this._prevDisplayList=[];var u=this._layers;if(a){var f=t,h=f.width,c=f.height;n.width!=null&&(h=n.width),n.height!=null&&(c=n.height),this.dpr=n.devicePixelRatio||1,f.width=h*this.dpr,f.height=c*this.dpr,this._width=h,this._height=c;var v=new zu(f,this,this.dpr);v.__builtin__=!0,v.initContext(),u[Wr]=v,v.zlevel=Wr,s.push(Wr),this._domRoot=t}else{this._width=$a(t,0,n),this._height=$a(t,1,n);var l=this._domRoot=TL(this._width,this._height);t.appendChild(l)}}return r.prototype.getType=function(){return"canvas"},r.prototype.isSingleCanvas=function(){return this._singleCanvas},r.prototype.getViewportRoot=function(){return this._domRoot},r.prototype.getViewportRootOffset=function(){var t=this.getViewportRoot();if(t)return{offsetLeft:t.offsetLeft||0,offsetTop:t.offsetTop||0}},r.prototype.refresh=function(t){var e=this.storage.getDisplayList(!0),n=this._prevDisplayList,i=this._zlevelList;this._redrawId=Math.random(),this._paintList(e,n,t,this._redrawId);for(var a=0;a<i.length;a++){var o=i[a],s=this._layers[o];if(!s.__builtin__&&s.refresh){var u=a===0?this._backgroundColor:null;s.refresh(u)}}return this._opts.useDirtyRect&&(this._prevDisplayList=e.slice()),this},r.prototype.refreshHover=function(){this._paintHoverList(this.storage.getDisplayList(!1))},r.prototype._paintHoverList=function(t){var e=t.length,n=this._hoverlayer;if(n&&n.clear(),!!e){for(var i={inHover:!0,viewWidth:this._width,viewHeight:this._height},a,o=0;o<e;o++){var s=t[o];s.__inHover&&(n||(n=this._hoverlayer=this.getLayer(dp)),a||(a=n.ctx,a.save()),qr(a,s,i,o===e-1))}a&&a.restore()}},r.prototype.getHoverLayer=function(){return this.getLayer(dp)},r.prototype.paintOne=function(t,e){ah(t,e)},r.prototype._paintList=function(t,e,n,i){if(this._redrawId===i){n=n||!1,this._updateLayerStatus(t);var a=this._doPaintList(t,e,n),o=a.finished,s=a.needsRefreshHover;if(this._needsManuallyCompositing&&this._compositeManually(),s&&this._paintHoverList(t),o)this.eachLayer(function(l){l.afterBrush&&l.afterBrush()});else{var u=this;Lo(function(){u._paintList(t,e,n,i)})}}},r.prototype._compositeManually=function(){var t=this.getLayer(Wr).ctx,e=this._domRoot.width,n=this._domRoot.height;t.clearRect(0,0,e,n),this.eachBuiltinLayer(function(i){i.virtual&&t.drawImage(i.dom,0,0,e,n)})},r.prototype._doPaintList=function(t,e,n){for(var i=this,a=[],o=this._opts.useDirtyRect,s=0;s<this._zlevelList.length;s++){var u=this._zlevelList[s],l=this._layers[u];l.__builtin__&&l!==this._hoverlayer&&(l.__dirty||n)&&a.push(l)}for(var f=!0,h=!1,c=function(g){var p=a[g],y=p.ctx,m=o&&p.createRepaintRects(t,e,v._width,v._height),_=n?p.__startIndex:p.__drawIndex,x=!n&&p.incremental&&Date.now,w=x&&Date.now(),S=p.zlevel===v._zlevelList[0]?v._backgroundColor:null;if(p.__startIndex===p.__endIndex)p.clear(!1,S,m);else if(_===p.__startIndex){var T=t[_];(!T.incremental||!T.notClear||n)&&p.clear(!1,S,m)}_===-1&&(console.error("For some unknown reason. drawIndex is -1"),_=p.__startIndex);var C,M=function(P){var I={inHover:!1,allClipped:!1,prevEl:null,viewWidth:i._width,viewHeight:i._height};for(C=_;C<p.__endIndex;C++){var E=t[C];if(E.__inHover&&(h=!0),i._doPaintEl(E,p,o,P,I,C===p.__endIndex-1),x){var k=Date.now()-w;if(k>15)break}}I.prevElClipPaths&&y.restore()};if(m)if(m.length===0)C=p.__endIndex;else for(var D=v.dpr,A=0;A<m.length;++A){var L=m[A];y.save(),y.beginPath(),y.rect(L.x*D,L.y*D,L.width*D,L.height*D),y.clip(),M(L),y.restore()}else y.save(),M(),y.restore();p.__drawIndex=C,p.__drawIndex<p.__endIndex&&(f=!1)},v=this,d=0;d<a.length;d++)c(d);return W.wxa&&b(this._layers,function(g){g&&g.ctx&&g.ctx.draw&&g.ctx.draw()}),{finished:f,needsRefreshHover:h}},r.prototype._doPaintEl=function(t,e,n,i,a,o){var s=e.ctx;if(n){var u=t.getPaintRect();(!i||u&&u.intersect(i))&&(qr(s,t,a,o),t.setPrevPaintRect(u))}else qr(s,t,a,o)},r.prototype.getLayer=function(t,e){this._singleCanvas&&!this._needsManuallyCompositing&&(t=Wr);var n=this._layers[t];return n||(n=new zu("zr_"+t,this,this.dpr),n.zlevel=t,n.__builtin__=!0,this._layerConfig[t]?Y(n,this._layerConfig[t],!0):this._layerConfig[t-ja]&&Y(n,this._layerConfig[t-ja],!0),e&&(n.virtual=e),this.insertLayer(t,n),n.initContext()),n},r.prototype.insertLayer=function(t,e){var n=this._layers,i=this._zlevelList,a=i.length,o=this._domRoot,s=null,u=-1;if(!n[t]&&bL(e)){if(a>0&&t>i[0]){for(u=0;u<a-1&&!(i[u]<t&&i[u+1]>t);u++);s=n[i[u]]}if(i.splice(u+1,0,t),n[t]=e,!e.virtual)if(s){var l=s.dom;l.nextSibling?o.insertBefore(e.dom,l.nextSibling):o.appendChild(e.dom)}else o.firstChild?o.insertBefore(e.dom,o.firstChild):o.appendChild(e.dom);e.painter||(e.painter=this)}},r.prototype.eachLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i];t.call(e,this._layers[a],a)}},r.prototype.eachBuiltinLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__&&t.call(e,o,a)}},r.prototype.eachOtherLayer=function(t,e){for(var n=this._zlevelList,i=0;i<n.length;i++){var a=n[i],o=this._layers[a];o.__builtin__||t.call(e,o,a)}},r.prototype.getLayers=function(){return this._layers},r.prototype._updateLayerStatus=function(t){this.eachBuiltinLayer(function(h,c){h.__dirty=h.__used=!1});function e(h){a&&(a.__endIndex!==h&&(a.__dirty=!0),a.__endIndex=h)}if(this._singleCanvas)for(var n=1;n<t.length;n++){var i=t[n];if(i.zlevel!==t[n-1].zlevel||i.incremental){this._needsManuallyCompositing=!0;break}}var a=null,o=0,s,u;for(u=0;u<t.length;u++){var i=t[u],l=i.zlevel,f=void 0;s!==l&&(s=l,o=0),i.incremental?(f=this.getLayer(l+wL,this._needsManuallyCompositing),f.incremental=!0,o=1):f=this.getLayer(l+(o>0?ja:0),this._needsManuallyCompositing),f.__builtin__||Ho("ZLevel "+l+" has been used by unkown layer "+f.id),f!==a&&(f.__used=!0,f.__startIndex!==u&&(f.__dirty=!0),f.__startIndex=u,f.incremental?f.__drawIndex=-1:f.__drawIndex=u,e(u),a=f),i.__dirty&Kt&&!i.__inHover&&(f.__dirty=!0,f.incremental&&f.__drawIndex<0&&(f.__drawIndex=u))}e(u),this.eachBuiltinLayer(function(h,c){!h.__used&&h.getElementCount()>0&&(h.__dirty=!0,h.__startIndex=h.__endIndex=h.__drawIndex=0),h.__dirty&&h.__drawIndex<0&&(h.__drawIndex=h.__startIndex)})},r.prototype.clear=function(){return this.eachBuiltinLayer(this._clearLayer),this},r.prototype._clearLayer=function(t){t.clear()},r.prototype.setBackgroundColor=function(t){this._backgroundColor=t,b(this._layers,function(e){e.setUnpainted()})},r.prototype.configLayer=function(t,e){if(e){var n=this._layerConfig;n[t]?Y(n[t],e,!0):n[t]=e;for(var i=0;i<this._zlevelList.length;i++){var a=this._zlevelList[i];if(a===t||a===t+ja){var o=this._layers[a];Y(o,n[t],!0)}}}},r.prototype.delLayer=function(t){var e=this._layers,n=this._zlevelList,i=e[t];i&&(i.dom.parentNode.removeChild(i.dom),delete e[t],n.splice(Q(n,t),1))},r.prototype.resize=function(t,e){if(this._domRoot.style){var n=this._domRoot;n.style.display="none";var i=this._opts,a=this.root;if(t!=null&&(i.width=t),e!=null&&(i.height=e),t=$a(a,0,i),e=$a(a,1,i),n.style.display="",this._width!==t||e!==this._height){n.style.width=t+"px",n.style.height=e+"px";for(var o in this._layers)this._layers.hasOwnProperty(o)&&this._layers[o].resize(t,e);this.refresh(!0)}this._width=t,this._height=e}else{if(t==null||e==null)return;this._width=t,this._height=e,this.getLayer(Wr).resize(t,e)}return this},r.prototype.clearLayer=function(t){var e=this._layers[t];e&&e.clear()},r.prototype.dispose=function(){this.root.innerHTML="",this.root=this.storage=this._domRoot=this._layers=null},r.prototype.getRenderedCanvas=function(t){if(t=t||{},this._singleCanvas&&!this._compositeManually)return this._layers[Wr].dom;var e=new zu("image",this,t.pixelRatio||this.dpr);e.initContext(),e.clear(!1,t.backgroundColor||this._backgroundColor);var n=e.ctx;if(t.pixelRatio<=this.dpr){this.refresh();var i=e.dom.width,a=e.dom.height;this.eachLayer(function(h){h.__builtin__?n.drawImage(h.dom,0,0,i,a):h.renderToCanvas&&(n.save(),h.renderToCanvas(n),n.restore())})}else for(var o={inHover:!1,viewWidth:this._width,viewHeight:this._height},s=this.storage.getDisplayList(!0),u=0,l=s.length;u<l;u++){var f=s[u];qr(n,f,o,u===l-1)}return e.dom},r.prototype.getWidth=function(){return this._width},r.prototype.getHeight=function(){return this._height},r})();function ML(r){r.registerPainter("canvas",CL)}Be([R2,$2,bD,D2,l2,VA,o2,Y2,ML]);ms("nocobase-dark",{darkMode:!0,backgroundColor:"transparent",textStyle:{color:"#d4d4d8"},title:{textStyle:{color:"#f4f4f5"}},legend:{textStyle:{color:"#d4d4d8"}},categoryAxis:{axisLine:{lineStyle:{color:"#52525b"}},axisLabel:{color:"#a1a1aa"},splitLine:{lineStyle:{color:"#27272a"}}},valueAxis:{axisLine:{lineStyle:{color:"#52525b"}},axisLabel:{color:"#a1a1aa"},splitLine:{lineStyle:{color:"#27272a"}}}});const DL=new Set(["bar","boxplot","candlestick","effectScatter","line","pictorialBar","scatter"]),AL=new Set(["funnel","gauge","graph","pie","radar","sankey","sunburst","tree","treemap"]),LL=new Set(["custom","heatmap","lines","map","parallel","themeRiver"]),pp=r=>!!r&&typeof r=="object"&&!Array.isArray(r),IL=r=>{const t=r.series;return Array.isArray(t)?t.filter(pp):pp(t)?[t]:[]},U0=r=>{const t=new Set,e=IL(r);for(const i of e){const a=typeof i.type=="string"?i.type:"line";DL.has(a)?t.add("common"):AL.has(a)?t.add("hierarchy"):LL.has(a)&&t.add("advanced")}return(["brush","calendar","dataZoom","geo","graphic","parallel","polar","radar","singleAxis","timeline","visualMap"].some(i=>r[i]!==void 0)||e.some(i=>["lines","map","parallel","radar"].includes(typeof i.type=="string"?i.type:"")||i.markArea!==void 0||i.markLine!==void 0||i.markPoint!==void 0))&&t.add("components"),[...t].sort()},PL={common:()=>ma(()=>import("./echarts-runtime-common-Dfe5ONoi.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),hierarchy:()=>ma(()=>import("./echarts-runtime-hierarchy-bEvX8V8l.js"),__vite__mapDeps([9,5,10,2,11,6,4,12,7,8])),advanced:()=>ma(()=>import("./echarts-runtime-advanced-Xg4WXsLl.js"),__vite__mapDeps([13,4,1,14,11,3,5,10,7,8])),components:()=>ma(()=>import("./echarts-runtime-components-BNoMvPY0.js"),__vite__mapDeps([15,12,11,14,3,6,4,7,8]))},RL=r=>U0(r).join(":");async function EL(r){return await Promise.all(U0(r).map(t=>PL[t]())),W0}const uI=Object.freeze(Object.defineProperty({__proto__:null,default:W0,getEChartsRuntimeSignature:RL,prepareEChartsRuntime:EL},Symbol.toStringTag,{value:"Module"}));export{v2 as $,Vp as A,by as B,Ee as C,N as D,c1 as E,Wp as F,Rt as G,B as H,Ug as I,GL as J,bS as K,Pg as L,jo as M,R as N,UL as O,ct as P,th as Q,yt as R,ke as S,nt as T,QL as U,JL as V,tt as W,Be as X,Wb as Y,_t as Z,O as _,ds as a,xt as a$,xw as a0,ue as a1,IS as a2,Q as a3,mt as a4,ig as a5,fx as a6,Vt as a7,rt as a8,z as a9,ir as aA,gr as aB,gt as aC,tI as aD,wi as aE,qL as aF,ox as aG,ov as aH,iI as aI,n_ as aJ,va as aK,U as aL,qC as aM,Qi as aN,kL as aO,RD as aP,Tp as aQ,qo as aR,es as aS,Fx as aT,Se as aU,ht as aV,xe as aW,ft as aX,It as aY,Mc as aZ,V as a_,MS as aa,K as ab,Gi as ac,Wi as ad,jL as ae,xb as af,u_ as ag,Og as ah,ha as ai,Nn as aj,sg as ak,mr as al,Fn as am,Op as an,Bt as ao,Tt as ap,an as aq,Io as ar,G0 as as,N0 as at,lt as au,fv as av,ca as aw,Ip as ax,__ as ay,R1 as az,vt as b,Xe as b$,aw as b0,ZL as b1,Ix as b2,$e as b3,ph as b4,go as b5,Mp as b6,Nv as b7,il as b8,bg as b9,NL as bA,zl as bB,Pa as bC,Hi as bD,Yu as bE,vf as bF,zt as bG,lf as bH,ia as bI,eI as bJ,oI as bK,Ky as bL,be as bM,Y as bN,oy as bO,cw as bP,j as bQ,dr as bR,ts as bS,zg as bT,Ct as bU,Yy as bV,Yn as bW,lb as bX,Qt as bY,yr as bZ,Hp as b_,Xx as ba,sf as bb,sa as bc,zi as bd,fr as be,k_ as bf,B_ as bg,dt as bh,ux as bi,Dp as bj,Lp as bk,to as bl,un as bm,Ap as bn,ff as bo,h_ as bp,f_ as bq,v_ as br,xo as bs,Yt as bt,Qr as bu,ps as bv,KC as bw,Ze as bx,Lx as by,YL as bz,iL as c,$L as c$,Oi as c0,Eh as c1,cn as c2,O1 as c3,e_ as c4,Ye as c5,Ft as c6,Mv as c7,we as c8,KL as c9,p0 as cA,HD as cB,Vg as cC,KD as cD,QD as cE,qD as cF,Fv as cG,wS as cH,Bi as cI,eo as cJ,Pt as cK,qb as cL,Kb as cM,$b as cN,rI as cO,jb as cP,Wo as cQ,Ny as cR,Zy as cS,nm as cT,Nb as cU,Bb as cV,Ui as cW,Jb as cX,tm as cY,tT as cZ,ls as c_,Xg as ca,rs as cb,Ng as cc,wo as cd,rS as ce,Jo as cf,Rg as cg,me as ch,hr as ci,Go as cj,aI as ck,DD as cl,Id as cm,ar as cn,or as co,Oe as cp,oa as cq,Lg as cr,ga as cs,VL as ct,Si as cu,Qy as cv,Cl as cw,ky as cx,yl as cy,Lf as cz,js as d,zn as d0,XL as d1,qS as d2,se as d3,cx as d4,ow as d5,iw as d6,MM as d7,nI as d8,Md as d9,Un as dA,BL as dB,hx as dC,Bn as dD,uI as dE,AS as da,R0 as db,ye as dc,ui as dd,ua as de,wC as df,bo as dg,Py as dh,Wf as di,pa as dj,W as dk,vo as dl,Pe as dm,zx as dn,mg as dp,DM as dq,wy as dr,eA as ds,sI as dt,nA as du,lA as dv,Kr as dw,xl as dx,ns as dy,Hg as dz,W0 as e,ut as f,RL as g,Xi as h,Zf as i,Mf as j,J as k,st as l,F as m,FL as n,X as o,EL as p,la as q,PS as r,HL as s,zL as t,WL as u,Ax as v,Pf as w,Wn as x,b as y,pr as z};
@@ -1 +1 @@
1
- import{_ as N,ai as ft,b2 as pt,r as he,u as ee,n as ht,C as $,T as ct,aF as gt,a_ as ke,y as W,bN as yt,aN as te,a as Ze,S as K,m as k,X as ce,aI as mt,G as q,x as ge,J as $e,b$ as dt,c0 as St,aw as We,s as Ke,t as Q,R as re,j as qe,c as ye,f as x,H as Ye,aj as _t,o as Ct,ax as J,bt as wt,c1 as Dt,c2 as Le,c3 as bt,W as Lt,P as Je,l as At,B as Pt,aQ as Ae,b as Tt,at as Qe,c4 as Rt,c5 as Pe,I as Xe,al as je,bv as It,b4 as et,bA as Te,c6 as zt,bh as Mt,as as Et,$ as Nt,a4 as X,aC as Vt,k as ie,b3 as Re,ab as Gt,c7 as Ie,aE as Ot,c8 as F,c9 as xt,ca as Ft,D as Bt,a3 as Ht,cb as Ut,Z as kt,cc as Zt,a8 as $t,bB as Wt,aT as Kt,bc as qt}from"./echarts-runtime-Ce_z2eX_.js";import{a as ze}from"./labelHelper-Dk5jkiD-.js";import{d as tt,a as Yt}from"./createClipPathFromCoordSys-z9Kmh-tu.js";import{M as Jt,g as Qt,i as Xt,a as jt,b as me,c as Me,s as er,d as tr,e as rr,f as ar,h as nr}from"./customGraphicKeyframeAnimation-DMU5crAu.js";import{i as ir}from"./CoordinateSystem-C8P-Cleg.js";import{c as rt,L as or}from"./LineDraw-BBB5hwuJ.js";import{c as lr}from"./createSeriesDataSimply-CPqysF0K.js";import{L as sr,d as ur}from"./LegendVisualProvider-Bdgkckq-.js";import"./index-Cc6awvdg.js";var vr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===e.id){var l=this._mapDraw;l&&o.add(l.group)}else if(e.needsDrawMap){var l=this._mapDraw||new Jt(i);o.add(l.group),l.draw(e,r,i,this,n),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(e,r,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,r,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),function(l,s){if(!isNaN(l)){var v=n.getItemLayout(s);if(!(!v||!v.point)){var u=v.point,f=v.offset,p=new ft({style:{fill:e.getData().getVisual("style").fill},shape:{cx:u[0]+f*9,cy:u[1],r:3},silent:!0,z2:8+(f?0:pt+1)});if(!f){var h=e.mainSeries.getData(),c=n.getName(s),d=h.indexOfName(c),g=n.getItemModel(s),S=g.getModel("label"),C=h.getItemGraphicEl(d);he(p,ee(g),{labelFetcher:{getFormattedLabel:function(w,E){return e.getFormattedLabel(d,E)}},defaultText:c}),p.disableLabelAnimation=!0,S.get("position")||p.setTextConfig({position:"bottom"}),C.onHoverStateChange=function(w){ht(p,w)}}o.add(p)}}})},t.type="map",t})($),fr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var r=lr(this,{coordDimensions:["value"],encodeDefaulter:ct(gt,this)}),i=ke(),n=[],o=0,l=r.count();o<l;o++){var s=r.getName(o);i.set(s,o)}var v=Qt.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return W(v.regions,function(u){var f=u.name,p=i.get(f),h=u.properties&&u.properties.echartsStyle,c;p==null?(c={name:f},n.push(c)):c=r.getRawDataItem(p),h&&yt(c,h)}),r.appendData(n),r},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var r=this.getData();return r.get(r.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var r=this.getData();return r.getItemModel(r.indexOfName(e))},t.prototype.formatTooltip=function(e,r,i){for(var n=this.getData(),o=this.getRawValue(e),l=n.getName(e),s=this.seriesGroup,v=[],u=0;u<s.length;u++){var f=s[u].originalData.indexOfName(l),p=n.mapDimension("value");isNaN(s[u].originalData.get(p,f))||v.push(s[u].name)}return te("section",{header:v.join(", "),noHeader:!v.length,blocks:[te("nameValue",{name:l,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var r=e.icon||"roundRect",i=Ze(r,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(K);function pr(a,t){var e={};return W(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,l=1/0,s=-1/0,v=e[n].length,u=0;u<v;u++)l=Math.min(l,e[n][u]),s=Math.max(s,e[n][u]),o+=e[n][u];var f;return t==="min"?f=l:t==="max"?f=s:t==="average"?f=o/v:f=o,v===0?NaN:f})}function hr(a){var t={};a.eachSeriesByType("map",function(e){var r=e.getHostGeoModel(),i=r?"o"+r.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),W(t,function(e,r){for(var i=pr(k(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),n=0;n<e.length;n++)e[n].originalData=e[n].getData();for(var n=0;n<e.length;n++)e[n].seriesGroup=e,e[n].needsDrawMap=n===0&&!e[n].getHostGeoModel(),e[n].setData(i.cloneShallow()),e[n].mainSeries=e[0]})}function cr(a){var t={};a.eachSeriesByType("map",function(e){var r=e.getMapType();if(!(e.getHostGeoModel()||t[r])){var i={};W(e.seriesGroup,function(o){var l=o.coordinateSystem,s=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&s.each(s.mapDimension("value"),function(v,u){var f=s.getName(u),p=l.getRegion(f);if(!(!p||isNaN(v))){var h=i[f]||0,c=l.dataToPoint(p.getCenter());i[f]=h+1,s.setItemLayout(u,{point:c,offset:h})}})});var n=e.getData();n.each(function(o){var l=n.getName(o),s=n.getItemLayout(o)||{};s.showLabel=!i[l],n.setItemLayout(o,s)}),t[r]=!0}})}function gr(a){ce(Xt),a.registerChartView(vr),a.registerSeriesModel(fr),a.registerLayout(cr),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hr),mt("map",a.registerAction)}var yr=.3,mr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new q,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,r,i,n){this._progressiveEls=null;var o=this._dataGroup,l=e.getData(),s=this._data,v=e.coordinateSystem,u=v.dimensions,f=Ne(e);l.diff(s).add(p).update(h).remove(c).execute();function p(g){var S=Ee(l,o,g,u,v);oe(S,l,g,f)}function h(g,S){var C=s.getItemGraphicEl(S),w=at(l,g,u,v);l.setItemGraphicEl(g,C),ge(C,{shape:{points:w}},e,g),$e(C),oe(C,l,g,f)}function c(g){var S=s.getItemGraphicEl(g);o.remove(S)}if(!this._initialized){this._initialized=!0;var d=dr(v,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=l},t.prototype.incrementalPrepareRender=function(e,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,r,i){for(var n=r.getData(),o=r.coordinateSystem,l=o.dimensions,s=Ne(r),v=this._progressiveEls=[],u=e.start;u<e.end;u++){var f=Ee(n,this._dataGroup,u,l,o);f.incremental=!0,oe(f,n,u,s),v.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})($);function dr(a,t,e){var r=a.model,i=a.getRect(),n=new re({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),qe(n,{shape:{width:i.width,height:i.height}},t,e),n}function at(a,t,e,r){for(var i=[],n=0;n<e.length;n++){var o=e[n],l=a.get(a.mapDimension(o),t);Sr(l,r.getAxis(o).type)||i.push(r.dataToPoint(l,o))}return i}function Ee(a,t,e,r,i){var n=at(a,e,r,i),o=new We({shape:{points:n},z2:10});return t.add(o),a.setItemGraphicEl(e,o),o}function Ne(a){var t=a.get("smooth",!0);return t===!0&&(t=yr),t=dt(t),St(t)&&(t=0),{smooth:t}}function oe(a,t,e,r){a.useStyle(t.getItemVisual(e,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var i=t.getItemModel(e),n=i.getModel("emphasis");Ke(a,i,"lineStyle"),Q(a,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function Sr(a,t){return t==="category"?a==null:a==null||isNaN(a)}var _r=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,r){return ye(null,this,{useEncodeDefaulter:x(Cr,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(o,l){e===o&&n.push(i.getRawIndex(l))}),n},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t})(K);function Cr(a){var t=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(t){var e={};return W(t.dimensions,function(r){var i=wr(r);e[r]=i}),e}}function wr(a){return+a.replace("dim","")}var Dr=["lineStyle","opacity"],br={seriesType:"parallel",reset:function(a,t){var e=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(i,n){e.eachActiveState(n,function(o,l){var s=r[o];if(o==="normal"&&n.hasItemOption){var v=n.getItemModel(l).get(Dr,!0);v!=null&&(s=v)}var u=n.ensureUniqueItemVisual(l,"style");u.opacity=s},i.start,i.end)}}}};function Lr(a){ce(jt),a.registerChartView(mr),a.registerSeriesModel(_r),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,br)}var nt=(function(a){N(t,a);function t(e,r,i){var n=a.call(this)||this;return n.add(n.createLine(e,r,i)),n._updateEffectSymbol(e,r),n}return t.prototype.createLine=function(e,r,i){return new rt(e,r,i)},t.prototype._updateEffectSymbol=function(e,r){var i=e.getItemModel(r),n=i.getModel("effect"),o=n.get("symbolSize"),l=n.get("symbol");Ye(o)||(o=[o,o]);var s=e.getItemVisual(r,"style"),v=n.get("color")||s&&s.stroke,u=this.childAt(1);this._symbolType!==l&&(this.remove(u),u=Ze(l,-.5,-.5,1,1,v),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",v),u.setStyle(n.getItemStyle(["color"])),u.scaleX=o[0],u.scaleY=o[1],u.setColor(v),this._symbolType=l,this._symbolScale=o,this._updateEffectAnimation(e,n,r))},t.prototype._updateEffectAnimation=function(e,r,i){var n=this.childAt(1);if(n){var o=e.getItemLayout(i),l=r.get("period")*1e3,s=r.get("loop"),v=r.get("roundTrip"),u=r.get("constantSpeed"),f=_t(r.get("delay"),function(h){return h/e.count()*l/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),u>0&&(l=this._getLineLength(n)/u*1e3),l!==this._period||s!==this._loop||v!==this._roundTrip){n.stopAnimation();var p=void 0;Ct(f)?p=f(i):p=f,n.__t>0&&(p=-l*n.__t),this._animateSymbol(n,l,p,s,v)}this._period=l,this._loop=s,this._roundTrip=v}},t.prototype._animateSymbol=function(e,r,i,n,o){if(r>0){e.__t=0;var l=this,s=e.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){l._updateSymbolPosition(e)});n||s.done(function(){l.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return J(e.__p1,e.__cp1)+J(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,r){e.__p1=r[0],e.__p2=r[1],e.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(e,r,i){this.childAt(0).updateData(e,r,i),this._updateEffectSymbol(e,r)},t.prototype._updateSymbolPosition=function(e){var r=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t<1?e.__t:2-e.__t,l=[e.x,e.y],s=l.slice(),v=wt,u=Dt;l[0]=v(r[0],n[0],i[0],o),l[1]=v(r[1],n[1],i[1],o);var f=e.__t<1?u(r[0],n[0],i[0],o):u(i[0],n[0],r[0],1-o),p=e.__t<1?u(r[1],n[1],i[1],o):u(i[1],n[1],r[1],1-o);e.rotation=-Math.atan2(p,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=J(s,l)*1.05,o===1&&(l[0]=s[0]+(l[0]-s[0])/2,l[1]=s[1]+(l[1]-s[1])/2)):e.__lastT===1?e.scaleY=2*J(r,l):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=l[0],e.y=l[1]},t.prototype.updateLayout=function(e,r){this.childAt(0).updateLayout(e,r);var i=e.getItemModel(r).getModel("effect");this._updateEffectAnimation(e,i,r)},t})(q),it=(function(a){N(t,a);function t(e,r,i){var n=a.call(this)||this;return n._createPolyline(e,r,i),n}return t.prototype._createPolyline=function(e,r,i){var n=e.getItemLayout(r),o=new We({shape:{points:n}});this.add(o),this._updateCommonStl(e,r,i)},t.prototype.updateData=function(e,r,i){var n=e.hostModel,o=this.childAt(0),l={shape:{points:e.getItemLayout(r)}};ge(o,l,n,r),this._updateCommonStl(e,r,i)},t.prototype._updateCommonStl=function(e,r,i){var n=this.childAt(0),o=e.getItemModel(r),l=i&&i.emphasisLineStyle,s=i&&i.focus,v=i&&i.blurScope,u=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var f=o.getModel("emphasis");l=f.getModel("lineStyle").getLineStyle(),u=f.get("disabled"),s=f.get("focus"),v=f.get("blurScope")}n.useStyle(e.getItemVisual(r,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var p=n.ensureState("emphasis");p.style=l,Q(this,s,v,u)},t.prototype.updateLayout=function(e,r){var i=this.childAt(0);i.setShape("points",e.getItemLayout(r))},t})(q),Ar=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,r,i){return new it(e,r,i)},t.prototype._updateAnimationPoints=function(e,r){this._points=r;for(var i=[0],n=0,o=1;o<r.length;o++){var l=r[o-1],s=r[o];n+=J(l,s),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var r=e.__t<1?e.__t:2-e.__t,i=this._points,n=this._offsets,o=i.length;if(n){var l=this._lastFrame,s;if(r<this._lastFramePercent){var v=Math.min(l+1,o-1);for(s=v;s>=0&&!(n[s]<=r);s--);s=Math.min(s,o-2)}else{for(s=l;s<o&&!(n[s]>r);s++);s=Math.min(s-1,o-2)}var u=(r-n[s])/(n[s+1]-n[s]),f=i[s],p=i[s+1];e.x=f[0]*(1-u)+u*p[0],e.y=f[1]*(1-u)+u*p[1];var h=e.__t<1?p[0]-f[0]:f[0]-p[0],c=e.__t<1?p[1]-f[1]:f[1]-p[1];e.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=r,e.ignore=!1}},t})(nt),Pr=(function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a})(),Tr=(function(a){N(t,a);function t(e){var r=a.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pr},t.prototype.buildPath=function(e,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var l=i[o++];if(l>0){e.moveTo(i[o++],i[o++]);for(var s=1;s<l;s++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var v=i[o++],u=i[o++],f=i[o++],p=i[o++];if(e.moveTo(v,u),n>0){var h=(v+f)/2-(u-p)*n,c=(u+p)/2-(f-v)*n;e.quadraticCurveTo(h,c,f,p)}else e.lineTo(f,p)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,r){var i=this.shape,n=i.segs,o=i.curveness,l=this.style.lineWidth;if(i.polyline)for(var s=0,v=0;v<n.length;){var u=n[v++];if(u>0)for(var f=n[v++],p=n[v++],h=1;h<u;h++){var c=n[v++],d=n[v++];if(Le(f,p,c,d,l,e,r))return s}s++}else for(var s=0,v=0;v<n.length;){var f=n[v++],p=n[v++],c=n[v++],d=n[v++];if(o>0){var g=(f+c)/2-(p-d)*o,S=(p+d)/2-(c-f)*o;if(bt(f,p,g,S,c,d,l,e,r))return s}else if(Le(f,p,c,d,l,e,r))return s;s++}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),n=this.getBoundingRect();if(e=i[0],r=i[1],n.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,l=-1/0,s=-1/0,v=0;v<i.length;){var u=i[v++],f=i[v++];n=Math.min(u,n),l=Math.max(u,l),o=Math.min(f,o),s=Math.max(f,s)}e=this._rect=new Lt(n,o,l,s)}return e},t})(Je),Rr=(function(){function a(){this.group=new q}return a.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},a.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(t,e){var r=this._newAdded[0],i=e.getLayout("linesPoints"),n=r&&r.shape.segs;if(n&&n.length<2e4){var o=n.length,l=new Float32Array(o+i.length);l.set(n),l.set(i,o),r.setShape({segs:l})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},a.prototype._create=function(){var t=new Tr({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},a.prototype._setCommon=function(t,e,r){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var n=e.getVisual("style");n&&n.stroke&&t.setStyle("stroke",n.stroke),t.setStyle("fill",null);var o=At(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(l){o.dataIndex=null;var s=t.hoverDataIdx;s>0&&(o.dataIndex=s+t.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),ot={seriesType:"lines",plan:Pt(),reset:function(a){var t=a.coordinateSystem;if(t){var e=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var l=void 0,s=i.end-i.start;if(e){for(var v=0,u=i.start;u<i.end;u++)v+=a.getLineCoordsCount(u);l=new Float32Array(s+v*2)}else l=new Float32Array(s*4);for(var f=0,p=[],u=i.start;u<i.end;u++){var h=a.getLineCoords(u,o);e&&(l[f++]=h);for(var c=0;c<h;c++)p=t.dataToPoint(o[c],!1,p),l[f++]=p[0],l[f++]=p[1]}n.setLayout("linesPoints",l)}else for(var u=i.start;u<i.end;u++){var d=n.getItemModel(u),h=a.getLineCoords(u,o),g=[];if(e)for(var S=0;S<h;S++)g.push(t.dataToPoint(o[S]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var C=d.get(["lineStyle","curveness"]);+C&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*C,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*C])}n.setItemLayout(u,g)}}}}}},Ir=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this._updateLineDraw(n,e),l=e.get("zlevel"),s=e.get(["effect","trailLength"]),v=i.getZr(),u=v.painter.getType()==="svg";u||v.painter.getLayer(l).clear(!0),this._lastZlevel!=null&&!u&&v.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s>0&&(u||v.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),o.updateData(n);var f=e.get("clip",!0)&&tt(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var n=e.getData(),o=this._updateLineDraw(n,e);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._lineDraw.incrementalUpdate(e,r.getData()),this._finished=e.end===r.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,r,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var l=ot.reset(e,r,i);l.progress&&l.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),l=r.pipelineContext,s=l.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||s!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=s?new Rr:new or(o?n?Ar:it:n?nt:rt),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=s),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var r=e.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(e,r){this.remove(e,r)},t.type="lines",t})($),zr=typeof Uint32Array>"u"?Array:Uint32Array,Mr=typeof Float64Array>"u"?Array:Float64Array;function Ve(a){var t=a.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(a.data=k(t,function(e){var r=[e[0].coord,e[1].coord],i={coords:r};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),Rt([i,e[0],e[1]])}))}var Er=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Ve(e);var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Ve(e),e.data){var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var r=this._processFlatCoordsArray(e.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Ae(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Ae(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),e.data=new Float32Array(r.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var r=this.getData().getItemModel(e),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],o=0;o<n;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var l=this._getCoordsFromItemModel(e),o=0;o<l.length;o++)r[o]=r[o]||[],r[o][0]=l[o][0],r[o][1]=l[o][1];return l.length}},t.prototype._processFlatCoordsArray=function(e){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Tt(e[0])){for(var i=e.length,n=new zr(i),o=new Mr(i),l=0,s=0,v=0,u=0;u<i;){v++;var f=e[u++];n[s++]=l+r,n[s++]=f;for(var p=0;p<f;p++){var h=e[u++],c=e[u++];o[l++]=h,o[l++]=c}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,s),flatCoords:o,count:v}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,r){var i=new Qe(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(n,o,l,s){if(n instanceof Array)return NaN;i.hasItemOption=!0;var v=n.value;if(v!=null)return v instanceof Array?v[s]:v}),i},t.prototype.formatTooltip=function(e,r,i){var n=this.getData(),o=n.getItemModel(e),l=o.get("name");if(l)return l;var s=o.get("fromName"),v=o.get("toName"),u=[];return s!=null&&u.push(s),v!=null&&u.push(v),te("nameValue",{name:u.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),r=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(K);function j(a){return a instanceof Array||(a=[a,a]),a}var Nr={seriesType:"lines",reset:function(a){var t=j(a.get("symbol")),e=j(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",e&&e[0]),r.setVisual("toSymbolSize",e&&e[1]);function i(n,o){var l=n.getItemModel(o),s=j(l.getShallow("symbol",!0)),v=j(l.getShallow("symbolSize",!0));s[0]&&n.setItemVisual(o,"fromSymbol",s[0]),s[1]&&n.setItemVisual(o,"toSymbol",s[1]),v[0]&&n.setItemVisual(o,"fromSymbolSize",v[0]),v[1]&&n.setItemVisual(o,"toSymbolSize",v[1])}return{dataEach:r.hasItemOption?i:null}}};function Vr(a){a.registerChartView(Ir),a.registerSeriesModel(Er),a.registerLayout(ot),a.registerVisual(Nr)}var Gr=256,Or=(function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Pe.createCanvas();this.canvas=t}return a.prototype.update=function(t,e,r,i,n,o){var l=this._getBrush(),s=this._getGradient(n,"inRange"),v=this._getGradient(n,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,p=f.getContext("2d"),h=t.length;f.width=e,f.height=r;for(var c=0;c<h;++c){var d=t[c],g=d[0],S=d[1],C=d[2],w=i(C);p.globalAlpha=w,p.drawImage(l,g-u,S-u)}if(!f.width||!f.height)return f;for(var E=p.getImageData(0,0,f.width,f.height),I=E.data,R=0,V=I.length,z=this.minOpacity,G=this.maxOpacity,M=G-z;R<V;){var w=I[R+3]/256,D=Math.floor(w*(Gr-1))*4;if(w>0){var b=o(w)?s:v;w>0&&(w=w*M+z),I[R++]=b[D],I[R++]=b[D+1],I[R++]=b[D+2],I[R++]=b[D+3]*w*256}else R+=4}return p.putImageData(E,0,0),f},a.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Pe.createCanvas()),e=this.pointSize+this.blurSize,r=e*2;t.width=r,t.height=r;var i=t.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},a.prototype._getGradient=function(t,e){for(var r=this._gradientPixels,i=r[e]||(r[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,l=0;l<256;l++)t[e](l/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a})();function xr(a,t,e){var r=a[1]-a[0];t=k(t,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=t.length,n=0;return function(o){var l;for(l=n;l<i;l++){var s=t[l].interval;if(s[0]<=o&&o<=s[1]){n=l;break}}if(l===i)for(l=n-1;l>=0;l--){var s=t[l].interval;if(s[0]<=o&&o<=s[1]){n=l;break}}return l>=0&&l<i&&e[l]}}function Fr(a,t){var e=a[1]-a[0];return t=[(t[0]-a[0])/e,(t[1]-a[0])/e],function(r){return r>=t[0]&&r<=t[1]}}function Ge(a){var t=a.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Br=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n;r.eachComponent("visualMap",function(l){l.eachTargetSeries(function(s){s===e&&(n=l)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):Ge(o)&&this._renderOnGeo(o,e,n,i)},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,r,i,n){var o=r.coordinateSystem;o&&(Ge(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Xe(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,r,i,n,o){var l=e.coordinateSystem,s=ir(l,"cartesian2d"),v,u,f,p;if(s){var h=l.getAxis("x"),c=l.getAxis("y");v=h.getBandWidth()+.5,u=c.getBandWidth()+.5,f=h.scale.getExtent(),p=c.scale.getExtent()}for(var d=this.group,g=e.getData(),S=e.getModel(["emphasis","itemStyle"]).getItemStyle(),C=e.getModel(["blur","itemStyle"]).getItemStyle(),w=e.getModel(["select","itemStyle"]).getItemStyle(),E=e.get(["itemStyle","borderRadius"]),I=ee(e),R=e.getModel("emphasis"),V=R.get("focus"),z=R.get("blurScope"),G=R.get("disabled"),M=s?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;D<n;D++){var b=void 0,L=g.getItemVisual(D,"style");if(s){var m=g.get(M[0],D),y=g.get(M[1],D);if(isNaN(g.get(M[2],D))||isNaN(m)||isNaN(y)||m<f[0]||m>f[1]||y<p[0]||y>p[1])continue;var _=l.dataToPoint([m,y]);b=new re({shape:{x:_[0]-v/2,y:_[1]-u/2,width:v,height:u},style:L})}else{if(isNaN(g.get(M[1],D)))continue;b=new re({z2:1,shape:l.dataToRect([g.get(M[0],D)]).contentShape,style:L})}if(g.hasItemOption){var A=g.getItemModel(D),T=A.getModel("emphasis");S=T.getModel("itemStyle").getItemStyle(),C=A.getModel(["blur","itemStyle"]).getItemStyle(),w=A.getModel(["select","itemStyle"]).getItemStyle(),E=A.get(["itemStyle","borderRadius"]),V=T.get("focus"),z=T.get("blurScope"),G=T.get("disabled"),I=ee(A)}b.shape.r=E;var P=e.getRawValue(D),Y="-";P&&P[2]!=null&&(Y=P[2]+""),he(b,I,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:Y}),b.ensureState("emphasis").style=S,b.ensureState("blur").style=C,b.ensureState("select").style=w,Q(b,V,z,G),b.incremental=o,o&&(b.states.emphasis.hoverLayer=!0),d.add(b),g.setItemGraphicEl(D,b),this._progressiveEls&&this._progressiveEls.push(b)}},t.prototype._renderOnGeo=function(e,r,i,n){var o=i.targetVisuals.inRange,l=i.targetVisuals.outOfRange,s=r.getData(),v=this._hmLayer||this._hmLayer||new Or;v.blurSize=r.get("blurSize"),v.pointSize=r.get("pointSize"),v.minOpacity=r.get("minOpacity"),v.maxOpacity=r.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var p=Math.max(u.x,0),h=Math.max(u.y,0),c=Math.min(u.width+u.x,n.getWidth()),d=Math.min(u.height+u.y,n.getHeight()),g=c-p,S=d-h,C=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],w=s.mapArray(C,function(V,z,G){var M=e.dataToPoint([V,z]);return M[0]-=p,M[1]-=h,M.push(G),M}),E=i.getExtent(),I=i.type==="visualMap.continuous"?Fr(E,i.option.range):xr(E,i.getPieceList(),i.option.selected);v.update(w,g,S,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},I);var R=new je({style:{width:g,height:S,x:p,y:h,image:v.canvas},silent:!0});this.group.add(R)},t.type="heatmap",t})($),Hr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return ye(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=It.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(K);function Ur(a){a.registerChartView(Br),a.registerSeriesModel(Hr)}var kr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this,l=this.group,s=e.getLayerSeries(),v=n.getLayout("layoutInfo"),u=v.rect,f=v.boundaryGap;l.x=0,l.y=u.y+f[0];function p(g){return g.name}var h=new et(this._layersSeries||[],s,p,p),c=[];h.add(x(d,this,"add")).update(x(d,this,"update")).remove(x(d,this,"remove")).execute();function d(g,S,C){var w=o._layers;if(g==="remove"){l.remove(w[S]);return}for(var E=[],I=[],R,V=s[S].indices,z=0;z<V.length;z++){var G=n.getItemLayout(V[z]),M=G.x,D=G.y0,b=G.y;E.push(M,D),I.push(M,D+b),R=n.getItemVisual(V[z],"style")}var L,m=n.getItemLayout(V[0]),y=e.getModel("label"),_=y.get("margin"),A=e.getModel("emphasis");if(g==="add"){var T=c[S]=new q;L=new Yt({shape:{points:E,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),T.add(L),l.add(T),e.isAnimationEnabled()&&L.setClipPath(Zr(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var T=w[C];L=T.childAt(0),l.add(T),c[S]=T,ge(L,{shape:{points:E,stackedOnPoints:I}},e),$e(L)}he(L,ee(e),{labelDataIndex:V[z-1],defaultText:n.getName(V[z-1]),inheritColor:R.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var P=L.getTextContent();P&&(P.x=m.x-_,P.y=m.y0+m.y/2),L.useStyle(R),n.setItemGraphicEl(S,L),Ke(L,e),Q(L,A.get("focus"),A.get("blurScope"),A.get("disabled"))}this._layersSeries=s,this._layers=c},t.type="themeRiver",t})($);function Zr(a,t,e){var r=new re({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return qe(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},t,e),r}var le=2,$r=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new sr(x(this.getData,this),x(this.getRawData,this))},t.prototype.fixData=function(e){var r=e.length,i={},n=Te(e,function(p){return i.hasOwnProperty(p[0]+"")||(i[p[0]+""]=-1),p[2]}),o=[];n.buckets.each(function(p,h){o.push({name:h,dataList:p})});for(var l=o.length,s=0;s<l;++s){for(var v=o[s].name,u=0;u<o[s].dataList.length;++u){var f=o[s].dataList[u][0]+"";i[f]=s}for(var f in i)i.hasOwnProperty(f)&&i[f]!==s&&(i[f]=s,e[r]=[f,0,v],r++)}return e},t.prototype.getInitialData=function(e,r){for(var i=this.getReferringComponents("singleAxis",zt).models[0],n=i.get("type"),o=Mt(e.data,function(c){return c[2]!==void 0}),l=this.fixData(o||[]),s=[],v=this.nameMap=ke(),u=0,f=0;f<l.length;++f)s.push(l[f][le]),v.get(l[f][le])||(v.set(l[f][le],u),u++);var p=Et(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Nt(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Qe(p,this);return h.initData(l),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),r=e.count(),i=[],n=0;n<r;++n)i[n]=n;var o=e.mapDimension("single"),l=Te(i,function(v){return e.get("name",v)}),s=[];return l.buckets.each(function(v,u){v.sort(function(f,p){return e.get(o,f)-e.get(o,p)}),s.push({name:u,indices:v})}),s},t.prototype.getAxisTooltipData=function(e,r,i){Ye(e)||(e=e?[e]:[]);for(var n=this.getData(),o=this.getLayerSeries(),l=[],s=o.length,v,u=0;u<s;++u){for(var f=Number.MAX_VALUE,p=-1,h=o[u].indices.length,c=0;c<h;++c){var d=n.get(e[0],o[u].indices[c]),g=Math.abs(d-r);g<=f&&(v=d,f=g,p=o[u].indices[c])}l.push(p)}return{dataIndices:l,nestestValue:v}},t.prototype.formatTooltip=function(e,r,i){var n=this.getData(),o=n.getName(e),l=n.get(n.mapDimension("value"),e);return te("nameValue",{name:o,value:l})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(K);function Wr(a,t){a.eachSeriesByType("themeRiver",function(e){var r=e.getData(),i=e.coordinateSystem,n={},o=i.getRect();n.rect=o;var l=e.get("boundaryGap"),s=i.getAxis();if(n.boundaryGap=l,s.orient==="horizontal"){l[0]=X(l[0],o.height),l[1]=X(l[1],o.height);var v=o.height-l[0]-l[1];Oe(r,e,v)}else{l[0]=X(l[0],o.width),l[1]=X(l[1],o.width);var u=o.width-l[0]-l[1];Oe(r,e,u)}r.setLayout("layoutInfo",n)})}function Oe(a,t,e){if(a.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),n=a.mapDimension("single"),o=a.mapDimension("value"),l=k(i,function(g){return k(g.indices,function(S){var C=r.dataToPoint(a.get(n,S));return C[1]=a.get(o,S),C})}),s=Kr(l),v=s.y0,u=e/s.max,f=i.length,p=i[0].indices.length,h,c=0;c<p;++c){h=v[c]*u,a.setItemLayout(i[0].indices[c],{layerIndex:0,x:l[0][c][0],y0:h,y:l[0][c][1]*u});for(var d=1;d<f;++d)h+=l[d-1][c][1]*u,a.setItemLayout(i[d].indices[c],{layerIndex:d,x:l[d][c][0],y0:h,y:l[d][c][1]*u})}}function Kr(a){for(var t=a.length,e=a[0].length,r=[],i=[],n=0,o=0;o<e;++o){for(var l=0,s=0;s<t;++s)l+=a[s][o][1];l>n&&(n=l),r.push(l)}for(var v=0;v<e;++v)i[v]=(n-r[v])/2;n=0;for(var u=0;u<e;++u){var f=r[u]+i[u];f>n&&(n=f)}return{y0:i,max:n}}function qr(a){a.registerChartView(kr),a.registerSeriesModel($r),a.registerLayout(Wr),a.registerProcessor(ur("themeRiver"))}var xe={color:"fill",borderColor:"stroke"},Yr={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},B=Vt(),Jr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,r){return ye(null,this)},t.prototype.getDataParams=function(e,r,i){var n=a.prototype.getDataParams.call(this,e,r);return i&&(n.info=B(i).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(K);function Qr(a,t){return t=t||[0,0],k(["x","y"],function(e,r){var i=this.getAxis(e),n=t[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function Xr(a){var t=a.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return a.dataToPoint(e)},size:x(Qr,a)}}}function jr(a,t){return t=t||[0,0],k([0,1],function(e){var r=t[e],i=a[e]/2,n=[],o=[];return n[e]=r-i,o[e]=r+i,n[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(n)[e]-this.dataToPoint(o)[e])},this)}function ea(a){var t=a.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:a.getZoom()},api:{coord:function(e){return a.dataToPoint(e)},size:x(jr,a)}}}function ta(a,t){var e=this.getAxis(),r=t instanceof Array?t[0]:t,i=(a instanceof Array?a[0]:a)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(r-i)-e.dataToCoord(r+i))}function ra(a){var t=a.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return a.dataToPoint(e)},size:x(ta,a)}}}function aa(a,t){return t=t||[0,0],k(["Radius","Angle"],function(e,r){var i="get"+e+"Axis",n=this[i](),o=t[r],l=a[r]/2,s=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-l)-n.dataToCoord(o+l));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function na(a){var t=a.getRadiusAxis(),e=a.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),l=a.coordToPoint([n,o]);return l.push(n,o*Math.PI/180),l},size:x(aa,a)}}}function ia(a){var t=a.getRect(),e=a.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}var H="emphasis",U="normal",de="blur",Se="select",Z=[U,H,de,Se],se={normal:["itemStyle"],emphasis:[H,"itemStyle"],blur:[de,"itemStyle"],select:[Se,"itemStyle"]},ue={normal:["label"],emphasis:[H,"label"],blur:[de,"label"],select:[Se,"label"]},oa=["x","y"],la="e\0\0",O={normal:{},emphasis:{},blur:{},select:{}},sa={cartesian2d:Xr,geo:ea,single:ra,polar:na,calendar:ia};function fe(a){return a instanceof Je}function pe(a){return a instanceof qt}function ua(a,t){t.copyTransform(a),pe(t)&&pe(a)&&(t.setStyle(a.style),t.z=a.z,t.z2=a.z2,t.zlevel=a.zlevel,t.invisible=a.invisible,t.ignore=a.ignore,fe(t)&&fe(a)&&t.setShape(a.shape))}var va=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,n){this._progressiveEls=null;var o=this._data,l=e.getData(),s=this.group,v=Fe(e,l,r,i);o||s.removeAll(),l.diff(o).add(function(f){ve(i,null,f,v(f,n),e,s,l)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&me(p,B(p).option,e)}).update(function(f,p){var h=o.getItemGraphicEl(p);ve(i,h,f,v(f,n),e,s,l)}).execute();var u=e.get("clip",!0)?tt(e.coordinateSystem,!1,e):null;u?s.setClipPath(u):s.removeClipPath(),this._data=l},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,r,i,n,o){var l=r.getData(),s=Fe(r,l,i,n),v=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=e.start;f<e.end;f++){var p=ve(null,null,f,s(f,o),r,this.group,l);p&&(p.traverse(u),v.push(p))}},t.prototype.eachRendered=function(e){Xe(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,r,i,n){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t})($);function _e(a){var t=a.type,e;if(t==="path"){var r=a.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,n=ut(r);e=Ut(n,null,i,r.layout||"center"),B(e).customPathData=n}else if(t==="image")e=new je({}),B(e).customImagePath=a.style.image;else if(t==="text")e=new kt({});else if(t==="group")e=new q;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Zt(t);if(!o){var l="";$t(l)}e=new o}return B(e).customGraphicType=t,e.name=a.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Ce(a,t,e,r,i,n,o){er(t);var l=i&&i.normal.cfg;l&&t.setTextConfig(l),r&&r.transition==null&&(r.transition=oa);var s=r&&r.style;if(s){if(t.type==="text"){var v=s;F(v,"textFill")&&(v.fill=v.textFill),F(v,"textStroke")&&(v.stroke=v.textStroke)}var u=void 0,f=fe(t)?s.decal:null;a&&f&&(f.dirty=!0,u=Wt(f,a)),s.__decalPattern=u}if(pe(t)&&s){var u=s.__decalPattern;u&&(s.decal=u)}tr(t,r,n,{dataIndex:e,isInit:o,clearStyle:!0}),rr(t,r.keyframeAnimation,n)}function lt(a,t,e,r,i){var n=t.isGroup?null:t,o=i&&i[a].cfg;if(n){var l=n.ensureState(a);if(r===!1){var s=n.getState(a);s&&(s.style=null)}else l.style=r||null;o&&(l.textConfig=o),Kt(n)}}function fa(a,t,e){if(!a.isGroup){var r=a,i=e.currentZ,n=e.currentZLevel;r.z=i,r.zlevel=n;var o=t.z2;o!=null&&(r.z2=o||0);for(var l=0;l<Z.length;l++)pa(r,t,Z[l])}}function pa(a,t,e){var r=e===U,i=r?t:ae(t,e),n=i?i.z2:null,o;n!=null&&(o=r?a:a.ensureState(e),o.z2=n||0)}function Fe(a,t,e,r){var i=a.get("renderItem"),n=a.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):sa[n.type](n));for(var l=ie({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:E,style:R,ordinalRawValue:I,styleEmphasis:V,visual:M,barLayout:D,currentSeriesIndices:b,font:L},o.api||{}),s={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:ha(a.getData())},v,u,f={},p={},h={},c={},d=0;d<Z.length;d++){var g=Z[d];h[g]=a.getModel(se[g]),c[g]=a.getModel(ue[g])}function S(m){return m===v?u||(u=t.getItemModel(m)):t.getItemModel(m)}function C(m,y){return t.hasItemOption?m===v?f[y]||(f[y]=S(m).getModel(se[y])):S(m).getModel(se[y]):h[y]}function w(m,y){return t.hasItemOption?m===v?p[y]||(p[y]=S(m).getModel(ue[y])):S(m).getModel(ue[y]):c[y]}return function(m,y){return v=m,u=null,f={},p={},i&&i(ie({dataIndexInside:m,dataIndex:t.getRawIndex(m),actionType:y?y.type:null},s),l)};function E(m,y){return y==null&&(y=v),t.getStore().get(t.getDimensionIndex(m||0),y)}function I(m,y){y==null&&(y=v),m=m||0;var _=t.getDimensionInfo(m);if(!_){var A=t.getDimensionIndex(m);return A>=0?t.getStore().get(A,y):void 0}var T=t.get(_.name,y),P=_&&_.ordinalMeta;return P?P.categories[T]:T}function R(m,y){y==null&&(y=v);var _=t.getItemVisual(y,"style"),A=_&&_.fill,T=_&&_.opacity,P=C(y,U).getItemStyle();A!=null&&(P.fill=A),T!=null&&(P.opacity=T);var Y={inheritColor:Bt(A)?A:"#000"},ne=w(y,U),be=Re(ne,null,Y,!1,!0);be.text=ne.getShallow("show")?Gt(a.getFormattedLabel(y,U),ze(t,y)):null;var vt=Ie(ne,Y,!1);return G(m,P),P=Me(P,be,vt),m&&z(P,m),P.legacy=!0,P}function V(m,y){y==null&&(y=v);var _=C(y,H).getItemStyle(),A=w(y,H),T=Re(A,null,null,!0,!0);T.text=A.getShallow("show")?Ot(a.getFormattedLabel(y,H),a.getFormattedLabel(y,U),ze(t,y)):null;var P=Ie(A,null,!0);return G(m,_),_=Me(_,T,P),m&&z(_,m),_.legacy=!0,_}function z(m,y){for(var _ in y)F(y,_)&&(m[_]=y[_])}function G(m,y){m&&(m.textFill&&(y.textFill=m.textFill),m.textPosition&&(y.textPosition=m.textPosition))}function M(m,y){if(y==null&&(y=v),F(xe,m)){var _=t.getItemVisual(y,"style");return _?_[xe[m]]:null}if(F(Yr,m))return t.getItemVisual(y,m)}function D(m){if(n.type==="cartesian2d"){var y=n.getBaseAxis();return xt(ie({axis:y},m))}}function b(){return e.getCurrentSeriesIndices()}function L(m){return Ft(m,e)}}function ha(a){var t={};return W(a.dimensions,function(e){var r=a.getDimensionInfo(e);if(!r.isExtraCoord){var i=r.coordDim,n=t[i]=t[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(e)}}),t}function ve(a,t,e,r,i,n,o){if(!r){n.remove(t);return}var l=we(a,t,e,r,i,n);return l&&o.setItemGraphicEl(e,l),l&&Q(l,r.focus,r.blurScope,r.emphasisDisabled),l}function we(a,t,e,r,i,n){var o=-1,l=t;t&&st(t,r,i)&&(o=Ht(n.childrenRef(),t),t=null);var s=!t,v=t;v?v.clearStates():(v=_e(r),l&&ua(l,v)),r.morph===!1?v.disableMorphing=!0:v.disableMorphing&&(v.disableMorphing=!1),O.normal.cfg=O.normal.conOpt=O.emphasis.cfg=O.emphasis.conOpt=O.blur.cfg=O.blur.conOpt=O.select.cfg=O.select.conOpt=null,O.isLegacy=!1,ga(v,e,r,i,s,O),ca(v,e,r,i,s),Ce(a,v,e,r,O,i,s),F(r,"info")&&(B(v).info=r.info);for(var u=0;u<Z.length;u++){var f=Z[u];if(f!==U){var p=ae(r,f),h=De(r,p,f);lt(f,v,p,h,O)}}return fa(v,r,i),r.type==="group"&&ya(a,v,e,r,i),o>=0?n.replaceAt(v,o):n.add(v),v}function st(a,t,e){var r=B(a),i=t.type,n=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&_a(n)&&ut(n)!==r.customPathData||i==="image"&&F(o,"image")&&o.image!==r.customImagePath}function ca(a,t,e,r,i){var n=e.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&st(o,n,r)&&(o=null),o||(o=_e(n),a.setClipPath(o)),Ce(null,o,t,n,null,r,i)}}function ga(a,t,e,r,i,n){if(!a.isGroup){Be(e,null,n),Be(e,H,n);var o=n.normal.conOpt,l=n.emphasis.conOpt,s=n.blur.conOpt,v=n.select.conOpt;if(o!=null||l!=null||v!=null||s!=null){var u=a.getTextContent();if(o===!1)u&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=_e(o),a.setTextContent(u)),Ce(null,u,t,o,null,r,i);for(var f=o&&o.style,p=0;p<Z.length;p++){var h=Z[p];if(h!==U){var c=n[h].conOpt;lt(h,u,c,De(o,c,h),null)}}f?u.dirty():u.markRedraw()}}}}function Be(a,t,e){var r=t?ae(a,t):a,i=t?De(a,r,H):a.style,n=a.type,o=r?r.textConfig:null,l=a.textContent,s=l?t?ae(l,t):l:null;if(i&&(e.isLegacy||ar(i,n,!!o,!!s))){e.isLegacy=!0;var v=nr(i,n,!t);!o&&v.textConfig&&(o=v.textConfig),!s&&v.textContent&&(s=v.textContent)}if(!t&&s){var u=s;!u.type&&(u.type="text")}var f=t?e[t]:e.normal;f.cfg=o,f.conOpt=s}function ae(a,t){return t?a?a[t]:null:a}function De(a,t,e){var r=t&&t.style;return r==null&&e===H&&a&&(r=a.styleEmphasis),r}function ya(a,t,e,r,i){var n=r.children,o=n?n.length:0,l=r.$mergeChildren,s=l==="byName"||r.diffChildrenByName,v=l===!1;if(!(!o&&!s&&!v)){if(s){da({api:a,oldChildren:t.children()||[],newChildren:n||[],dataIndex:e,seriesModel:i,group:t});return}v&&t.removeAll();for(var u=0;u<o;u++){var f=n[u],p=t.childAt(u);f?(f.ignore==null&&(f.ignore=!1),we(a,p,e,f,i,t)):p.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var c=t.childAt(h);ma(t,c,i)}}}function ma(a,t,e){t&&me(t,B(a).option,e)}function da(a){new et(a.oldChildren,a.newChildren,He,He,a).add(Ue).update(Ue).remove(Sa).execute()}function He(a,t){var e=a&&a.name;return e??la+t}function Ue(a,t){var e=this.context,r=a!=null?e.newChildren[a]:null,i=t!=null?e.oldChildren[t]:null;we(e.api,i,e.dataIndex,r,e.seriesModel,e.group)}function Sa(a){var t=this.context,e=t.oldChildren[a];e&&me(e,B(e).option,t.seriesModel)}function ut(a){return a&&(a.pathData||a.d)}function _a(a){return a&&(F(a,"pathData")||F(a,"d"))}function Ca(a){a.registerChartView(va),a.registerSeriesModel(Jr)}ce([Ca,Ur,Vr,gr,Lr,qr]);
1
+ import{_ as N,ai as ft,b2 as pt,r as he,u as ee,n as ht,C as $,T as ct,aF as gt,a_ as ke,y as W,bN as yt,aN as te,a as Ze,S as K,m as k,X as ce,aI as mt,G as q,x as ge,J as $e,b$ as dt,c0 as St,aw as We,s as Ke,t as Q,R as re,j as qe,c as ye,f as x,H as Ye,aj as _t,o as Ct,ax as J,bt as wt,c1 as Dt,c2 as Le,c3 as bt,W as Lt,P as Je,l as At,B as Pt,aQ as Ae,b as Tt,at as Qe,c4 as Rt,c5 as Pe,I as Xe,al as je,bv as It,b4 as et,bA as Te,c6 as zt,bh as Mt,as as Et,$ as Nt,a4 as X,aC as Vt,k as ie,b3 as Re,ab as Gt,c7 as Ie,aE as Ot,c8 as F,c9 as xt,ca as Ft,D as Bt,a3 as Ht,cb as Ut,Z as kt,cc as Zt,a8 as $t,bB as Wt,aT as Kt,bc as qt}from"./echarts-runtime-BTfAtt-4.js";import{a as ze}from"./labelHelper-CSRwI3Ku.js";import{d as tt,a as Yt}from"./createClipPathFromCoordSys-BKzf1iWj.js";import{M as Jt,g as Qt,i as Xt,a as jt,b as me,c as Me,s as er,d as tr,e as rr,f as ar,h as nr}from"./customGraphicKeyframeAnimation-BYcy-PGj.js";import{i as ir}from"./CoordinateSystem-C8P-Cleg.js";import{c as rt,L as or}from"./LineDraw-B3HsIvjF.js";import{c as lr}from"./createSeriesDataSimply-Dcpkokbc.js";import{L as sr,d as ur}from"./LegendVisualProvider-Bdgkckq-.js";import"./index-CMoFG_fD.js";var vr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,n){if(!(n&&n.type==="mapToggleSelect"&&n.from===this.uid)){var o=this.group;if(o.removeAll(),!e.getHostGeoModel()){if(this._mapDraw&&n&&n.type==="geoRoam"&&this._mapDraw.resetForLabelLayout(),n&&n.type==="geoRoam"&&n.componentType==="series"&&n.seriesId===e.id){var l=this._mapDraw;l&&o.add(l.group)}else if(e.needsDrawMap){var l=this._mapDraw||new Jt(i);o.add(l.group),l.draw(e,r,i,this,n),this._mapDraw=l}else this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;e.get("showLegendSymbol")&&r.getComponent("legend")&&this._renderSymbols(e,r,i)}}},t.prototype.remove=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null,this.group.removeAll()},t.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null},t.prototype._renderSymbols=function(e,r,i){var n=e.originalData,o=this.group;n.each(n.mapDimension("value"),function(l,s){if(!isNaN(l)){var v=n.getItemLayout(s);if(!(!v||!v.point)){var u=v.point,f=v.offset,p=new ft({style:{fill:e.getData().getVisual("style").fill},shape:{cx:u[0]+f*9,cy:u[1],r:3},silent:!0,z2:8+(f?0:pt+1)});if(!f){var h=e.mainSeries.getData(),c=n.getName(s),d=h.indexOfName(c),g=n.getItemModel(s),S=g.getModel("label"),C=h.getItemGraphicEl(d);he(p,ee(g),{labelFetcher:{getFormattedLabel:function(w,E){return e.getFormattedLabel(d,E)}},defaultText:c}),p.disableLabelAnimation=!0,S.get("position")||p.setTextConfig({position:"bottom"}),C.onHoverStateChange=function(w){ht(p,w)}}o.add(p)}}})},t.type="map",t})($),fr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.needsDrawMap=!1,e.seriesGroup=[],e.getTooltipPosition=function(r){if(r!=null){var i=this.getData().getName(r),n=this.coordinateSystem,o=n.getRegion(i);return o&&n.dataToPoint(o.getCenter())}},e}return t.prototype.getInitialData=function(e){for(var r=lr(this,{coordDimensions:["value"],encodeDefaulter:ct(gt,this)}),i=ke(),n=[],o=0,l=r.count();o<l;o++){var s=r.getName(o);i.set(s,o)}var v=Qt.load(this.getMapType(),this.option.nameMap,this.option.nameProperty);return W(v.regions,function(u){var f=u.name,p=i.get(f),h=u.properties&&u.properties.echartsStyle,c;p==null?(c={name:f},n.push(c)):c=r.getRawDataItem(p),h&&yt(c,h)}),r.appendData(n),r},t.prototype.getHostGeoModel=function(){var e=this.option.geoIndex;return e!=null?this.ecModel.getComponent("geo",e):null},t.prototype.getMapType=function(){return(this.getHostGeoModel()||this).option.map},t.prototype.getRawValue=function(e){var r=this.getData();return r.get(r.mapDimension("value"),e)},t.prototype.getRegionModel=function(e){var r=this.getData();return r.getItemModel(r.indexOfName(e))},t.prototype.formatTooltip=function(e,r,i){for(var n=this.getData(),o=this.getRawValue(e),l=n.getName(e),s=this.seriesGroup,v=[],u=0;u<s.length;u++){var f=s[u].originalData.indexOfName(l),p=n.mapDimension("value");isNaN(s[u].originalData.get(p,f))||v.push(s[u].name)}return te("section",{header:v.join(", "),noHeader:!v.length,blocks:[te("nameValue",{name:l,value:o})]})},t.prototype.setZoom=function(e){this.option.zoom=e},t.prototype.setCenter=function(e){this.option.center=e},t.prototype.getLegendIcon=function(e){var r=e.icon||"roundRect",i=Ze(r,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill);return i.setStyle(e.itemStyle),i.style.stroke="none",r.indexOf("empty")>-1&&(i.style.stroke=i.style.fill,i.style.fill="#fff",i.style.lineWidth=2),i},t.type="series.map",t.dependencies=["geo"],t.layoutMode="box",t.defaultOption={z:2,coordinateSystem:"geo",map:"",left:"center",top:"center",aspectScale:null,showLegendSymbol:!0,boundingCoords:null,center:null,zoom:1,scaleLimit:null,selectedMode:!0,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444",areaColor:"#eee"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{areaColor:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},nameProperty:"name"},t})(K);function pr(a,t){var e={};return W(a,function(r){r.each(r.mapDimension("value"),function(i,n){var o="ec-"+r.getName(n);e[o]=e[o]||[],isNaN(i)||e[o].push(i)})}),a[0].map(a[0].mapDimension("value"),function(r,i){for(var n="ec-"+a[0].getName(i),o=0,l=1/0,s=-1/0,v=e[n].length,u=0;u<v;u++)l=Math.min(l,e[n][u]),s=Math.max(s,e[n][u]),o+=e[n][u];var f;return t==="min"?f=l:t==="max"?f=s:t==="average"?f=o/v:f=o,v===0?NaN:f})}function hr(a){var t={};a.eachSeriesByType("map",function(e){var r=e.getHostGeoModel(),i=r?"o"+r.id:"i"+e.getMapType();(t[i]=t[i]||[]).push(e)}),W(t,function(e,r){for(var i=pr(k(e,function(o){return o.getData()}),e[0].get("mapValueCalculation")),n=0;n<e.length;n++)e[n].originalData=e[n].getData();for(var n=0;n<e.length;n++)e[n].seriesGroup=e,e[n].needsDrawMap=n===0&&!e[n].getHostGeoModel(),e[n].setData(i.cloneShallow()),e[n].mainSeries=e[0]})}function cr(a){var t={};a.eachSeriesByType("map",function(e){var r=e.getMapType();if(!(e.getHostGeoModel()||t[r])){var i={};W(e.seriesGroup,function(o){var l=o.coordinateSystem,s=o.originalData;o.get("showLegendSymbol")&&a.getComponent("legend")&&s.each(s.mapDimension("value"),function(v,u){var f=s.getName(u),p=l.getRegion(f);if(!(!p||isNaN(v))){var h=i[f]||0,c=l.dataToPoint(p.getCenter());i[f]=h+1,s.setItemLayout(u,{point:c,offset:h})}})});var n=e.getData();n.each(function(o){var l=n.getName(o),s=n.getItemLayout(o)||{};s.showLabel=!i[l],n.setItemLayout(o,s)}),t[r]=!0}})}function gr(a){ce(Xt),a.registerChartView(vr),a.registerSeriesModel(fr),a.registerLayout(cr),a.registerProcessor(a.PRIORITY.PROCESSOR.STATISTIC,hr),mt("map",a.registerAction)}var yr=.3,mr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e._dataGroup=new q,e._initialized=!1,e}return t.prototype.init=function(){this.group.add(this._dataGroup)},t.prototype.render=function(e,r,i,n){this._progressiveEls=null;var o=this._dataGroup,l=e.getData(),s=this._data,v=e.coordinateSystem,u=v.dimensions,f=Ne(e);l.diff(s).add(p).update(h).remove(c).execute();function p(g){var S=Ee(l,o,g,u,v);oe(S,l,g,f)}function h(g,S){var C=s.getItemGraphicEl(S),w=at(l,g,u,v);l.setItemGraphicEl(g,C),ge(C,{shape:{points:w}},e,g),$e(C),oe(C,l,g,f)}function c(g){var S=s.getItemGraphicEl(g);o.remove(S)}if(!this._initialized){this._initialized=!0;var d=dr(v,e,function(){setTimeout(function(){o.removeClipPath()})});o.setClipPath(d)}this._data=l},t.prototype.incrementalPrepareRender=function(e,r,i){this._initialized=!0,this._data=null,this._dataGroup.removeAll()},t.prototype.incrementalRender=function(e,r,i){for(var n=r.getData(),o=r.coordinateSystem,l=o.dimensions,s=Ne(r),v=this._progressiveEls=[],u=e.start;u<e.end;u++){var f=Ee(n,this._dataGroup,u,l,o);f.incremental=!0,oe(f,n,u,s),v.push(f)}},t.prototype.remove=function(){this._dataGroup&&this._dataGroup.removeAll(),this._data=null},t.type="parallel",t})($);function dr(a,t,e){var r=a.model,i=a.getRect(),n=new re({shape:{x:i.x,y:i.y,width:i.width,height:i.height}}),o=r.get("layout")==="horizontal"?"width":"height";return n.setShape(o,0),qe(n,{shape:{width:i.width,height:i.height}},t,e),n}function at(a,t,e,r){for(var i=[],n=0;n<e.length;n++){var o=e[n],l=a.get(a.mapDimension(o),t);Sr(l,r.getAxis(o).type)||i.push(r.dataToPoint(l,o))}return i}function Ee(a,t,e,r,i){var n=at(a,e,r,i),o=new We({shape:{points:n},z2:10});return t.add(o),a.setItemGraphicEl(e,o),o}function Ne(a){var t=a.get("smooth",!0);return t===!0&&(t=yr),t=dt(t),St(t)&&(t=0),{smooth:t}}function oe(a,t,e,r){a.useStyle(t.getItemVisual(e,"style")),a.style.fill=null,a.setShape("smooth",r.smooth);var i=t.getItemModel(e),n=i.getModel("emphasis");Ke(a,i,"lineStyle"),Q(a,n.get("focus"),n.get("blurScope"),n.get("disabled"))}function Sr(a,t){return t==="category"?a==null:a==null||isNaN(a)}var _r=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.getInitialData=function(e,r){return ye(null,this,{useEncodeDefaulter:x(Cr,null,this)})},t.prototype.getRawIndicesByActiveState=function(e){var r=this.coordinateSystem,i=this.getData(),n=[];return r.eachActiveState(i,function(o,l){e===o&&n.push(i.getRawIndex(l))}),n},t.type="series.parallel",t.dependencies=["parallel"],t.defaultOption={z:2,coordinateSystem:"parallel",parallelIndex:0,label:{show:!1},inactiveOpacity:.05,activeOpacity:1,lineStyle:{width:1,opacity:.45,type:"solid"},emphasis:{label:{show:!1}},progressive:500,smooth:!1,animationEasing:"linear"},t})(K);function Cr(a){var t=a.ecModel.getComponent("parallel",a.get("parallelIndex"));if(t){var e={};return W(t.dimensions,function(r){var i=wr(r);e[r]=i}),e}}function wr(a){return+a.replace("dim","")}var Dr=["lineStyle","opacity"],br={seriesType:"parallel",reset:function(a,t){var e=a.coordinateSystem,r={normal:a.get(["lineStyle","opacity"]),active:a.get("activeOpacity"),inactive:a.get("inactiveOpacity")};return{progress:function(i,n){e.eachActiveState(n,function(o,l){var s=r[o];if(o==="normal"&&n.hasItemOption){var v=n.getItemModel(l).get(Dr,!0);v!=null&&(s=v)}var u=n.ensureUniqueItemVisual(l,"style");u.opacity=s},i.start,i.end)}}}};function Lr(a){ce(jt),a.registerChartView(mr),a.registerSeriesModel(_r),a.registerVisual(a.PRIORITY.VISUAL.BRUSH,br)}var nt=(function(a){N(t,a);function t(e,r,i){var n=a.call(this)||this;return n.add(n.createLine(e,r,i)),n._updateEffectSymbol(e,r),n}return t.prototype.createLine=function(e,r,i){return new rt(e,r,i)},t.prototype._updateEffectSymbol=function(e,r){var i=e.getItemModel(r),n=i.getModel("effect"),o=n.get("symbolSize"),l=n.get("symbol");Ye(o)||(o=[o,o]);var s=e.getItemVisual(r,"style"),v=n.get("color")||s&&s.stroke,u=this.childAt(1);this._symbolType!==l&&(this.remove(u),u=Ze(l,-.5,-.5,1,1,v),u.z2=100,u.culling=!0,this.add(u)),u&&(u.setStyle("shadowColor",v),u.setStyle(n.getItemStyle(["color"])),u.scaleX=o[0],u.scaleY=o[1],u.setColor(v),this._symbolType=l,this._symbolScale=o,this._updateEffectAnimation(e,n,r))},t.prototype._updateEffectAnimation=function(e,r,i){var n=this.childAt(1);if(n){var o=e.getItemLayout(i),l=r.get("period")*1e3,s=r.get("loop"),v=r.get("roundTrip"),u=r.get("constantSpeed"),f=_t(r.get("delay"),function(h){return h/e.count()*l/3});if(n.ignore=!0,this._updateAnimationPoints(n,o),u>0&&(l=this._getLineLength(n)/u*1e3),l!==this._period||s!==this._loop||v!==this._roundTrip){n.stopAnimation();var p=void 0;Ct(f)?p=f(i):p=f,n.__t>0&&(p=-l*n.__t),this._animateSymbol(n,l,p,s,v)}this._period=l,this._loop=s,this._roundTrip=v}},t.prototype._animateSymbol=function(e,r,i,n,o){if(r>0){e.__t=0;var l=this,s=e.animate("",n).when(o?r*2:r,{__t:o?2:1}).delay(i).during(function(){l._updateSymbolPosition(e)});n||s.done(function(){l.remove(e)}),s.start()}},t.prototype._getLineLength=function(e){return J(e.__p1,e.__cp1)+J(e.__cp1,e.__p2)},t.prototype._updateAnimationPoints=function(e,r){e.__p1=r[0],e.__p2=r[1],e.__cp1=r[2]||[(r[0][0]+r[1][0])/2,(r[0][1]+r[1][1])/2]},t.prototype.updateData=function(e,r,i){this.childAt(0).updateData(e,r,i),this._updateEffectSymbol(e,r)},t.prototype._updateSymbolPosition=function(e){var r=e.__p1,i=e.__p2,n=e.__cp1,o=e.__t<1?e.__t:2-e.__t,l=[e.x,e.y],s=l.slice(),v=wt,u=Dt;l[0]=v(r[0],n[0],i[0],o),l[1]=v(r[1],n[1],i[1],o);var f=e.__t<1?u(r[0],n[0],i[0],o):u(i[0],n[0],r[0],1-o),p=e.__t<1?u(r[1],n[1],i[1],o):u(i[1],n[1],r[1],1-o);e.rotation=-Math.atan2(p,f)-Math.PI/2,(this._symbolType==="line"||this._symbolType==="rect"||this._symbolType==="roundRect")&&(e.__lastT!==void 0&&e.__lastT<e.__t?(e.scaleY=J(s,l)*1.05,o===1&&(l[0]=s[0]+(l[0]-s[0])/2,l[1]=s[1]+(l[1]-s[1])/2)):e.__lastT===1?e.scaleY=2*J(r,l):e.scaleY=this._symbolScale[1]),e.__lastT=e.__t,e.ignore=!1,e.x=l[0],e.y=l[1]},t.prototype.updateLayout=function(e,r){this.childAt(0).updateLayout(e,r);var i=e.getItemModel(r).getModel("effect");this._updateEffectAnimation(e,i,r)},t})(q),it=(function(a){N(t,a);function t(e,r,i){var n=a.call(this)||this;return n._createPolyline(e,r,i),n}return t.prototype._createPolyline=function(e,r,i){var n=e.getItemLayout(r),o=new We({shape:{points:n}});this.add(o),this._updateCommonStl(e,r,i)},t.prototype.updateData=function(e,r,i){var n=e.hostModel,o=this.childAt(0),l={shape:{points:e.getItemLayout(r)}};ge(o,l,n,r),this._updateCommonStl(e,r,i)},t.prototype._updateCommonStl=function(e,r,i){var n=this.childAt(0),o=e.getItemModel(r),l=i&&i.emphasisLineStyle,s=i&&i.focus,v=i&&i.blurScope,u=i&&i.emphasisDisabled;if(!i||e.hasItemOption){var f=o.getModel("emphasis");l=f.getModel("lineStyle").getLineStyle(),u=f.get("disabled"),s=f.get("focus"),v=f.get("blurScope")}n.useStyle(e.getItemVisual(r,"style")),n.style.fill=null,n.style.strokeNoScale=!0;var p=n.ensureState("emphasis");p.style=l,Q(this,s,v,u)},t.prototype.updateLayout=function(e,r){var i=this.childAt(0);i.setShape("points",e.getItemLayout(r))},t})(q),Ar=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e._lastFrame=0,e._lastFramePercent=0,e}return t.prototype.createLine=function(e,r,i){return new it(e,r,i)},t.prototype._updateAnimationPoints=function(e,r){this._points=r;for(var i=[0],n=0,o=1;o<r.length;o++){var l=r[o-1],s=r[o];n+=J(l,s),i.push(n)}if(n===0){this._length=0;return}for(var o=0;o<i.length;o++)i[o]/=n;this._offsets=i,this._length=n},t.prototype._getLineLength=function(){return this._length},t.prototype._updateSymbolPosition=function(e){var r=e.__t<1?e.__t:2-e.__t,i=this._points,n=this._offsets,o=i.length;if(n){var l=this._lastFrame,s;if(r<this._lastFramePercent){var v=Math.min(l+1,o-1);for(s=v;s>=0&&!(n[s]<=r);s--);s=Math.min(s,o-2)}else{for(s=l;s<o&&!(n[s]>r);s++);s=Math.min(s-1,o-2)}var u=(r-n[s])/(n[s+1]-n[s]),f=i[s],p=i[s+1];e.x=f[0]*(1-u)+u*p[0],e.y=f[1]*(1-u)+u*p[1];var h=e.__t<1?p[0]-f[0]:f[0]-p[0],c=e.__t<1?p[1]-f[1]:f[1]-p[1];e.rotation=-Math.atan2(c,h)-Math.PI/2,this._lastFrame=s,this._lastFramePercent=r,e.ignore=!1}},t})(nt),Pr=(function(){function a(){this.polyline=!1,this.curveness=0,this.segs=[]}return a})(),Tr=(function(a){N(t,a);function t(e){var r=a.call(this,e)||this;return r._off=0,r.hoverDataIdx=-1,r}return t.prototype.reset=function(){this.notClear=!1,this._off=0},t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new Pr},t.prototype.buildPath=function(e,r){var i=r.segs,n=r.curveness,o;if(r.polyline)for(o=this._off;o<i.length;){var l=i[o++];if(l>0){e.moveTo(i[o++],i[o++]);for(var s=1;s<l;s++)e.lineTo(i[o++],i[o++])}}else for(o=this._off;o<i.length;){var v=i[o++],u=i[o++],f=i[o++],p=i[o++];if(e.moveTo(v,u),n>0){var h=(v+f)/2-(u-p)*n,c=(u+p)/2-(f-v)*n;e.quadraticCurveTo(h,c,f,p)}else e.lineTo(f,p)}this.incremental&&(this._off=o,this.notClear=!0)},t.prototype.findDataIndex=function(e,r){var i=this.shape,n=i.segs,o=i.curveness,l=this.style.lineWidth;if(i.polyline)for(var s=0,v=0;v<n.length;){var u=n[v++];if(u>0)for(var f=n[v++],p=n[v++],h=1;h<u;h++){var c=n[v++],d=n[v++];if(Le(f,p,c,d,l,e,r))return s}s++}else for(var s=0,v=0;v<n.length;){var f=n[v++],p=n[v++],c=n[v++],d=n[v++];if(o>0){var g=(f+c)/2-(p-d)*o,S=(p+d)/2-(c-f)*o;if(bt(f,p,g,S,c,d,l,e,r))return s}else if(Le(f,p,c,d,l,e,r))return s;s++}return-1},t.prototype.contain=function(e,r){var i=this.transformCoordToLocal(e,r),n=this.getBoundingRect();if(e=i[0],r=i[1],n.contain(e,r)){var o=this.hoverDataIdx=this.findDataIndex(e,r);return o>=0}return this.hoverDataIdx=-1,!1},t.prototype.getBoundingRect=function(){var e=this._rect;if(!e){for(var r=this.shape,i=r.segs,n=1/0,o=1/0,l=-1/0,s=-1/0,v=0;v<i.length;){var u=i[v++],f=i[v++];n=Math.min(u,n),l=Math.max(u,l),o=Math.min(f,o),s=Math.max(f,s)}e=this._rect=new Lt(n,o,l,s)}return e},t})(Je),Rr=(function(){function a(){this.group=new q}return a.prototype.updateData=function(t){this._clear();var e=this._create();e.setShape({segs:t.getLayout("linesPoints")}),this._setCommon(e,t)},a.prototype.incrementalPrepareUpdate=function(t){this.group.removeAll(),this._clear()},a.prototype.incrementalUpdate=function(t,e){var r=this._newAdded[0],i=e.getLayout("linesPoints"),n=r&&r.shape.segs;if(n&&n.length<2e4){var o=n.length,l=new Float32Array(o+i.length);l.set(n),l.set(i,o),r.setShape({segs:l})}else{this._newAdded=[];var s=this._create();s.incremental=!0,s.setShape({segs:i}),this._setCommon(s,e),s.__startIndex=t.start}},a.prototype.remove=function(){this._clear()},a.prototype.eachRendered=function(t){this._newAdded[0]&&t(this._newAdded[0])},a.prototype._create=function(){var t=new Tr({cursor:"default",ignoreCoarsePointer:!0});return this._newAdded.push(t),this.group.add(t),t},a.prototype._setCommon=function(t,e,r){var i=e.hostModel;t.setShape({polyline:i.get("polyline"),curveness:i.get(["lineStyle","curveness"])}),t.useStyle(i.getModel("lineStyle").getLineStyle()),t.style.strokeNoScale=!0;var n=e.getVisual("style");n&&n.stroke&&t.setStyle("stroke",n.stroke),t.setStyle("fill",null);var o=At(t);o.seriesIndex=i.seriesIndex,t.on("mousemove",function(l){o.dataIndex=null;var s=t.hoverDataIdx;s>0&&(o.dataIndex=s+t.__startIndex)})},a.prototype._clear=function(){this._newAdded=[],this.group.removeAll()},a})(),ot={seriesType:"lines",plan:Pt(),reset:function(a){var t=a.coordinateSystem;if(t){var e=a.get("polyline"),r=a.pipelineContext.large;return{progress:function(i,n){var o=[];if(r){var l=void 0,s=i.end-i.start;if(e){for(var v=0,u=i.start;u<i.end;u++)v+=a.getLineCoordsCount(u);l=new Float32Array(s+v*2)}else l=new Float32Array(s*4);for(var f=0,p=[],u=i.start;u<i.end;u++){var h=a.getLineCoords(u,o);e&&(l[f++]=h);for(var c=0;c<h;c++)p=t.dataToPoint(o[c],!1,p),l[f++]=p[0],l[f++]=p[1]}n.setLayout("linesPoints",l)}else for(var u=i.start;u<i.end;u++){var d=n.getItemModel(u),h=a.getLineCoords(u,o),g=[];if(e)for(var S=0;S<h;S++)g.push(t.dataToPoint(o[S]));else{g[0]=t.dataToPoint(o[0]),g[1]=t.dataToPoint(o[1]);var C=d.get(["lineStyle","curveness"]);+C&&(g[2]=[(g[0][0]+g[1][0])/2-(g[0][1]-g[1][1])*C,(g[0][1]+g[1][1])/2-(g[1][0]-g[0][0])*C])}n.setItemLayout(u,g)}}}}}},Ir=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this._updateLineDraw(n,e),l=e.get("zlevel"),s=e.get(["effect","trailLength"]),v=i.getZr(),u=v.painter.getType()==="svg";u||v.painter.getLayer(l).clear(!0),this._lastZlevel!=null&&!u&&v.configLayer(this._lastZlevel,{motionBlur:!1}),this._showEffect(e)&&s>0&&(u||v.configLayer(l,{motionBlur:!0,lastFrameAlpha:Math.max(Math.min(s/10+.9,1),0)})),o.updateData(n);var f=e.get("clip",!0)&&tt(e.coordinateSystem,!1,e);f?this.group.setClipPath(f):this.group.removeClipPath(),this._lastZlevel=l,this._finished=!0},t.prototype.incrementalPrepareRender=function(e,r,i){var n=e.getData(),o=this._updateLineDraw(n,e);o.incrementalPrepareUpdate(n),this._clearLayer(i),this._finished=!1},t.prototype.incrementalRender=function(e,r,i){this._lineDraw.incrementalUpdate(e,r.getData()),this._finished=e.end===r.getData().count()},t.prototype.eachRendered=function(e){this._lineDraw&&this._lineDraw.eachRendered(e)},t.prototype.updateTransform=function(e,r,i){var n=e.getData(),o=e.pipelineContext;if(!this._finished||o.large||o.progressiveRender)return{update:!0};var l=ot.reset(e,r,i);l.progress&&l.progress({start:0,end:n.count(),count:n.count()},n),this._lineDraw.updateLayout(),this._clearLayer(i)},t.prototype._updateLineDraw=function(e,r){var i=this._lineDraw,n=this._showEffect(r),o=!!r.get("polyline"),l=r.pipelineContext,s=l.large;return(!i||n!==this._hasEffet||o!==this._isPolyline||s!==this._isLargeDraw)&&(i&&i.remove(),i=this._lineDraw=s?new Rr:new or(o?n?Ar:it:n?nt:rt),this._hasEffet=n,this._isPolyline=o,this._isLargeDraw=s),this.group.add(i.group),i},t.prototype._showEffect=function(e){return!!e.get(["effect","show"])},t.prototype._clearLayer=function(e){var r=e.getZr(),i=r.painter.getType()==="svg";!i&&this._lastZlevel!=null&&r.painter.getLayer(this._lastZlevel).clear(!0)},t.prototype.remove=function(e,r){this._lineDraw&&this._lineDraw.remove(),this._lineDraw=null,this._clearLayer(r)},t.prototype.dispose=function(e,r){this.remove(e,r)},t.type="lines",t})($),zr=typeof Uint32Array>"u"?Array:Uint32Array,Mr=typeof Float64Array>"u"?Array:Float64Array;function Ve(a){var t=a.data;t&&t[0]&&t[0][0]&&t[0][0].coord&&(a.data=k(t,function(e){var r=[e[0].coord,e[1].coord],i={coords:r};return e[0].name&&(i.fromName=e[0].name),e[1].name&&(i.toName=e[1].name),Rt([i,e[0],e[1]])}))}var Er=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e.visualStyleAccessPath="lineStyle",e.visualDrawType="stroke",e}return t.prototype.init=function(e){e.data=e.data||[],Ve(e);var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count)),a.prototype.init.apply(this,arguments)},t.prototype.mergeOption=function(e){if(Ve(e),e.data){var r=this._processFlatCoordsArray(e.data);this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset,r.flatCoords&&(e.data=new Float32Array(r.count))}a.prototype.mergeOption.apply(this,arguments)},t.prototype.appendData=function(e){var r=this._processFlatCoordsArray(e.data);r.flatCoords&&(this._flatCoords?(this._flatCoords=Ae(this._flatCoords,r.flatCoords),this._flatCoordsOffset=Ae(this._flatCoordsOffset,r.flatCoordsOffset)):(this._flatCoords=r.flatCoords,this._flatCoordsOffset=r.flatCoordsOffset),e.data=new Float32Array(r.count)),this.getRawData().appendData(e.data)},t.prototype._getCoordsFromItemModel=function(e){var r=this.getData().getItemModel(e),i=r.option instanceof Array?r.option:r.getShallow("coords");return i},t.prototype.getLineCoordsCount=function(e){return this._flatCoordsOffset?this._flatCoordsOffset[e*2+1]:this._getCoordsFromItemModel(e).length},t.prototype.getLineCoords=function(e,r){if(this._flatCoordsOffset){for(var i=this._flatCoordsOffset[e*2],n=this._flatCoordsOffset[e*2+1],o=0;o<n;o++)r[o]=r[o]||[],r[o][0]=this._flatCoords[i+o*2],r[o][1]=this._flatCoords[i+o*2+1];return n}else{for(var l=this._getCoordsFromItemModel(e),o=0;o<l.length;o++)r[o]=r[o]||[],r[o][0]=l[o][0],r[o][1]=l[o][1];return l.length}},t.prototype._processFlatCoordsArray=function(e){var r=0;if(this._flatCoords&&(r=this._flatCoords.length),Tt(e[0])){for(var i=e.length,n=new zr(i),o=new Mr(i),l=0,s=0,v=0,u=0;u<i;){v++;var f=e[u++];n[s++]=l+r,n[s++]=f;for(var p=0;p<f;p++){var h=e[u++],c=e[u++];o[l++]=h,o[l++]=c}}return{flatCoordsOffset:new Uint32Array(n.buffer,0,s),flatCoords:o,count:v}}return{flatCoordsOffset:null,flatCoords:null,count:e.length}},t.prototype.getInitialData=function(e,r){var i=new Qe(["value"],this);return i.hasItemOption=!1,i.initData(e.data,[],function(n,o,l,s){if(n instanceof Array)return NaN;i.hasItemOption=!0;var v=n.value;if(v!=null)return v instanceof Array?v[s]:v}),i},t.prototype.formatTooltip=function(e,r,i){var n=this.getData(),o=n.getItemModel(e),l=o.get("name");if(l)return l;var s=o.get("fromName"),v=o.get("toName"),u=[];return s!=null&&u.push(s),v!=null&&u.push(v),te("nameValue",{name:u.join(" > ")})},t.prototype.preventIncremental=function(){return!!this.get(["effect","show"])},t.prototype.getProgressive=function(){var e=this.option.progressive;return e??(this.option.large?1e4:this.get("progressive"))},t.prototype.getProgressiveThreshold=function(){var e=this.option.progressiveThreshold;return e??(this.option.large?2e4:this.get("progressiveThreshold"))},t.prototype.getZLevelKey=function(){var e=this.getModel("effect"),r=e.get("trailLength");return this.getData().count()>this.getProgressiveThreshold()?this.id:e.get("show")&&r>0?r+"":""},t.type="series.lines",t.dependencies=["grid","polar","geo","calendar"],t.defaultOption={coordinateSystem:"geo",z:2,legendHoverLink:!0,xAxisIndex:0,yAxisIndex:0,symbol:["none","none"],symbolSize:[10,10],geoIndex:0,effect:{show:!1,period:4,constantSpeed:0,symbol:"circle",symbolSize:3,loop:!0,trailLength:.2},large:!1,largeThreshold:2e3,polyline:!1,clip:!0,label:{show:!1,position:"end"},lineStyle:{opacity:.5}},t})(K);function j(a){return a instanceof Array||(a=[a,a]),a}var Nr={seriesType:"lines",reset:function(a){var t=j(a.get("symbol")),e=j(a.get("symbolSize")),r=a.getData();r.setVisual("fromSymbol",t&&t[0]),r.setVisual("toSymbol",t&&t[1]),r.setVisual("fromSymbolSize",e&&e[0]),r.setVisual("toSymbolSize",e&&e[1]);function i(n,o){var l=n.getItemModel(o),s=j(l.getShallow("symbol",!0)),v=j(l.getShallow("symbolSize",!0));s[0]&&n.setItemVisual(o,"fromSymbol",s[0]),s[1]&&n.setItemVisual(o,"toSymbol",s[1]),v[0]&&n.setItemVisual(o,"fromSymbolSize",v[0]),v[1]&&n.setItemVisual(o,"toSymbolSize",v[1])}return{dataEach:r.hasItemOption?i:null}}};function Vr(a){a.registerChartView(Ir),a.registerSeriesModel(Er),a.registerLayout(ot),a.registerVisual(Nr)}var Gr=256,Or=(function(){function a(){this.blurSize=30,this.pointSize=20,this.maxOpacity=1,this.minOpacity=0,this._gradientPixels={inRange:null,outOfRange:null};var t=Pe.createCanvas();this.canvas=t}return a.prototype.update=function(t,e,r,i,n,o){var l=this._getBrush(),s=this._getGradient(n,"inRange"),v=this._getGradient(n,"outOfRange"),u=this.pointSize+this.blurSize,f=this.canvas,p=f.getContext("2d"),h=t.length;f.width=e,f.height=r;for(var c=0;c<h;++c){var d=t[c],g=d[0],S=d[1],C=d[2],w=i(C);p.globalAlpha=w,p.drawImage(l,g-u,S-u)}if(!f.width||!f.height)return f;for(var E=p.getImageData(0,0,f.width,f.height),I=E.data,R=0,V=I.length,z=this.minOpacity,G=this.maxOpacity,M=G-z;R<V;){var w=I[R+3]/256,D=Math.floor(w*(Gr-1))*4;if(w>0){var b=o(w)?s:v;w>0&&(w=w*M+z),I[R++]=b[D],I[R++]=b[D+1],I[R++]=b[D+2],I[R++]=b[D+3]*w*256}else R+=4}return p.putImageData(E,0,0),f},a.prototype._getBrush=function(){var t=this._brushCanvas||(this._brushCanvas=Pe.createCanvas()),e=this.pointSize+this.blurSize,r=e*2;t.width=r,t.height=r;var i=t.getContext("2d");return i.clearRect(0,0,r,r),i.shadowOffsetX=r,i.shadowBlur=this.blurSize,i.shadowColor="#000",i.beginPath(),i.arc(-e,e,this.pointSize,0,Math.PI*2,!0),i.closePath(),i.fill(),t},a.prototype._getGradient=function(t,e){for(var r=this._gradientPixels,i=r[e]||(r[e]=new Uint8ClampedArray(256*4)),n=[0,0,0,0],o=0,l=0;l<256;l++)t[e](l/255,!0,n),i[o++]=n[0],i[o++]=n[1],i[o++]=n[2],i[o++]=n[3];return i},a})();function xr(a,t,e){var r=a[1]-a[0];t=k(t,function(o){return{interval:[(o.interval[0]-a[0])/r,(o.interval[1]-a[0])/r]}});var i=t.length,n=0;return function(o){var l;for(l=n;l<i;l++){var s=t[l].interval;if(s[0]<=o&&o<=s[1]){n=l;break}}if(l===i)for(l=n-1;l>=0;l--){var s=t[l].interval;if(s[0]<=o&&o<=s[1]){n=l;break}}return l>=0&&l<i&&e[l]}}function Fr(a,t){var e=a[1]-a[0];return t=[(t[0]-a[0])/e,(t[1]-a[0])/e],function(r){return r>=t[0]&&r<=t[1]}}function Ge(a){var t=a.dimensions;return t[0]==="lng"&&t[1]==="lat"}var Br=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i){var n;r.eachComponent("visualMap",function(l){l.eachTargetSeries(function(s){s===e&&(n=l)})}),this._progressiveEls=null,this.group.removeAll();var o=e.coordinateSystem;o.type==="cartesian2d"||o.type==="calendar"?this._renderOnCartesianAndCalendar(e,i,0,e.getData().count()):Ge(o)&&this._renderOnGeo(o,e,n,i)},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll()},t.prototype.incrementalRender=function(e,r,i,n){var o=r.coordinateSystem;o&&(Ge(o)?this.render(r,i,n):(this._progressiveEls=[],this._renderOnCartesianAndCalendar(r,n,e.start,e.end,!0)))},t.prototype.eachRendered=function(e){Xe(this._progressiveEls||this.group,e)},t.prototype._renderOnCartesianAndCalendar=function(e,r,i,n,o){var l=e.coordinateSystem,s=ir(l,"cartesian2d"),v,u,f,p;if(s){var h=l.getAxis("x"),c=l.getAxis("y");v=h.getBandWidth()+.5,u=c.getBandWidth()+.5,f=h.scale.getExtent(),p=c.scale.getExtent()}for(var d=this.group,g=e.getData(),S=e.getModel(["emphasis","itemStyle"]).getItemStyle(),C=e.getModel(["blur","itemStyle"]).getItemStyle(),w=e.getModel(["select","itemStyle"]).getItemStyle(),E=e.get(["itemStyle","borderRadius"]),I=ee(e),R=e.getModel("emphasis"),V=R.get("focus"),z=R.get("blurScope"),G=R.get("disabled"),M=s?[g.mapDimension("x"),g.mapDimension("y"),g.mapDimension("value")]:[g.mapDimension("time"),g.mapDimension("value")],D=i;D<n;D++){var b=void 0,L=g.getItemVisual(D,"style");if(s){var m=g.get(M[0],D),y=g.get(M[1],D);if(isNaN(g.get(M[2],D))||isNaN(m)||isNaN(y)||m<f[0]||m>f[1]||y<p[0]||y>p[1])continue;var _=l.dataToPoint([m,y]);b=new re({shape:{x:_[0]-v/2,y:_[1]-u/2,width:v,height:u},style:L})}else{if(isNaN(g.get(M[1],D)))continue;b=new re({z2:1,shape:l.dataToRect([g.get(M[0],D)]).contentShape,style:L})}if(g.hasItemOption){var A=g.getItemModel(D),T=A.getModel("emphasis");S=T.getModel("itemStyle").getItemStyle(),C=A.getModel(["blur","itemStyle"]).getItemStyle(),w=A.getModel(["select","itemStyle"]).getItemStyle(),E=A.get(["itemStyle","borderRadius"]),V=T.get("focus"),z=T.get("blurScope"),G=T.get("disabled"),I=ee(A)}b.shape.r=E;var P=e.getRawValue(D),Y="-";P&&P[2]!=null&&(Y=P[2]+""),he(b,I,{labelFetcher:e,labelDataIndex:D,defaultOpacity:L.opacity,defaultText:Y}),b.ensureState("emphasis").style=S,b.ensureState("blur").style=C,b.ensureState("select").style=w,Q(b,V,z,G),b.incremental=o,o&&(b.states.emphasis.hoverLayer=!0),d.add(b),g.setItemGraphicEl(D,b),this._progressiveEls&&this._progressiveEls.push(b)}},t.prototype._renderOnGeo=function(e,r,i,n){var o=i.targetVisuals.inRange,l=i.targetVisuals.outOfRange,s=r.getData(),v=this._hmLayer||this._hmLayer||new Or;v.blurSize=r.get("blurSize"),v.pointSize=r.get("pointSize"),v.minOpacity=r.get("minOpacity"),v.maxOpacity=r.get("maxOpacity");var u=e.getViewRect().clone(),f=e.getRoamTransform();u.applyTransform(f);var p=Math.max(u.x,0),h=Math.max(u.y,0),c=Math.min(u.width+u.x,n.getWidth()),d=Math.min(u.height+u.y,n.getHeight()),g=c-p,S=d-h,C=[s.mapDimension("lng"),s.mapDimension("lat"),s.mapDimension("value")],w=s.mapArray(C,function(V,z,G){var M=e.dataToPoint([V,z]);return M[0]-=p,M[1]-=h,M.push(G),M}),E=i.getExtent(),I=i.type==="visualMap.continuous"?Fr(E,i.option.range):xr(E,i.getPieceList(),i.option.selected);v.update(w,g,S,o.color.getNormalizer(),{inRange:o.color.getColorMapper(),outOfRange:l.color.getColorMapper()},I);var R=new je({style:{width:g,height:S,x:p,y:h,image:v.canvas},silent:!0});this.group.add(R)},t.type="heatmap",t})($),Hr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.getInitialData=function(e,r){return ye(null,this,{generateCoord:"value"})},t.prototype.preventIncremental=function(){var e=It.get(this.get("coordinateSystem"));if(e&&e.dimensions)return e.dimensions[0]==="lng"&&e.dimensions[1]==="lat"},t.type="series.heatmap",t.dependencies=["grid","geo","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,geoIndex:0,blurSize:30,pointSize:20,maxOpacity:1,minOpacity:0,select:{itemStyle:{borderColor:"#212121"}}},t})(K);function Ur(a){a.registerChartView(Br),a.registerSeriesModel(Hr)}var kr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e._layers=[],e}return t.prototype.render=function(e,r,i){var n=e.getData(),o=this,l=this.group,s=e.getLayerSeries(),v=n.getLayout("layoutInfo"),u=v.rect,f=v.boundaryGap;l.x=0,l.y=u.y+f[0];function p(g){return g.name}var h=new et(this._layersSeries||[],s,p,p),c=[];h.add(x(d,this,"add")).update(x(d,this,"update")).remove(x(d,this,"remove")).execute();function d(g,S,C){var w=o._layers;if(g==="remove"){l.remove(w[S]);return}for(var E=[],I=[],R,V=s[S].indices,z=0;z<V.length;z++){var G=n.getItemLayout(V[z]),M=G.x,D=G.y0,b=G.y;E.push(M,D),I.push(M,D+b),R=n.getItemVisual(V[z],"style")}var L,m=n.getItemLayout(V[0]),y=e.getModel("label"),_=y.get("margin"),A=e.getModel("emphasis");if(g==="add"){var T=c[S]=new q;L=new Yt({shape:{points:E,stackedOnPoints:I,smooth:.4,stackedOnSmooth:.4,smoothConstraint:!1},z2:0}),T.add(L),l.add(T),e.isAnimationEnabled()&&L.setClipPath(Zr(L.getBoundingRect(),e,function(){L.removeClipPath()}))}else{var T=w[C];L=T.childAt(0),l.add(T),c[S]=T,ge(L,{shape:{points:E,stackedOnPoints:I}},e),$e(L)}he(L,ee(e),{labelDataIndex:V[z-1],defaultText:n.getName(V[z-1]),inheritColor:R.fill},{normal:{verticalAlign:"middle"}}),L.setTextConfig({position:null,local:!0});var P=L.getTextContent();P&&(P.x=m.x-_,P.y=m.y0+m.y/2),L.useStyle(R),n.setItemGraphicEl(S,L),Ke(L,e),Q(L,A.get("focus"),A.get("blurScope"),A.get("disabled"))}this._layersSeries=s,this._layers=c},t.type="themeRiver",t})($);function Zr(a,t,e){var r=new re({shape:{x:a.x-10,y:a.y-10,width:0,height:a.height+20}});return qe(r,{shape:{x:a.x-50,width:a.width+100,height:a.height+20}},t,e),r}var le=2,$r=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.init=function(e){a.prototype.init.apply(this,arguments),this.legendVisualProvider=new sr(x(this.getData,this),x(this.getRawData,this))},t.prototype.fixData=function(e){var r=e.length,i={},n=Te(e,function(p){return i.hasOwnProperty(p[0]+"")||(i[p[0]+""]=-1),p[2]}),o=[];n.buckets.each(function(p,h){o.push({name:h,dataList:p})});for(var l=o.length,s=0;s<l;++s){for(var v=o[s].name,u=0;u<o[s].dataList.length;++u){var f=o[s].dataList[u][0]+"";i[f]=s}for(var f in i)i.hasOwnProperty(f)&&i[f]!==s&&(i[f]=s,e[r]=[f,0,v],r++)}return e},t.prototype.getInitialData=function(e,r){for(var i=this.getReferringComponents("singleAxis",zt).models[0],n=i.get("type"),o=Mt(e.data,function(c){return c[2]!==void 0}),l=this.fixData(o||[]),s=[],v=this.nameMap=ke(),u=0,f=0;f<l.length;++f)s.push(l[f][le]),v.get(l[f][le])||(v.set(l[f][le],u),u++);var p=Et(l,{coordDimensions:["single"],dimensionsDefine:[{name:"time",type:Nt(n)},{name:"value",type:"float"},{name:"name",type:"ordinal"}],encodeDefine:{single:0,value:1,itemName:2}}).dimensions,h=new Qe(p,this);return h.initData(l),h},t.prototype.getLayerSeries=function(){for(var e=this.getData(),r=e.count(),i=[],n=0;n<r;++n)i[n]=n;var o=e.mapDimension("single"),l=Te(i,function(v){return e.get("name",v)}),s=[];return l.buckets.each(function(v,u){v.sort(function(f,p){return e.get(o,f)-e.get(o,p)}),s.push({name:u,indices:v})}),s},t.prototype.getAxisTooltipData=function(e,r,i){Ye(e)||(e=e?[e]:[]);for(var n=this.getData(),o=this.getLayerSeries(),l=[],s=o.length,v,u=0;u<s;++u){for(var f=Number.MAX_VALUE,p=-1,h=o[u].indices.length,c=0;c<h;++c){var d=n.get(e[0],o[u].indices[c]),g=Math.abs(d-r);g<=f&&(v=d,f=g,p=o[u].indices[c])}l.push(p)}return{dataIndices:l,nestestValue:v}},t.prototype.formatTooltip=function(e,r,i){var n=this.getData(),o=n.getName(e),l=n.get(n.mapDimension("value"),e);return te("nameValue",{name:o,value:l})},t.type="series.themeRiver",t.dependencies=["singleAxis"],t.defaultOption={z:2,colorBy:"data",coordinateSystem:"singleAxis",boundaryGap:["10%","10%"],singleAxisIndex:0,animationEasing:"linear",label:{margin:4,show:!0,position:"left",fontSize:11},emphasis:{label:{show:!0}}},t})(K);function Wr(a,t){a.eachSeriesByType("themeRiver",function(e){var r=e.getData(),i=e.coordinateSystem,n={},o=i.getRect();n.rect=o;var l=e.get("boundaryGap"),s=i.getAxis();if(n.boundaryGap=l,s.orient==="horizontal"){l[0]=X(l[0],o.height),l[1]=X(l[1],o.height);var v=o.height-l[0]-l[1];Oe(r,e,v)}else{l[0]=X(l[0],o.width),l[1]=X(l[1],o.width);var u=o.width-l[0]-l[1];Oe(r,e,u)}r.setLayout("layoutInfo",n)})}function Oe(a,t,e){if(a.count())for(var r=t.coordinateSystem,i=t.getLayerSeries(),n=a.mapDimension("single"),o=a.mapDimension("value"),l=k(i,function(g){return k(g.indices,function(S){var C=r.dataToPoint(a.get(n,S));return C[1]=a.get(o,S),C})}),s=Kr(l),v=s.y0,u=e/s.max,f=i.length,p=i[0].indices.length,h,c=0;c<p;++c){h=v[c]*u,a.setItemLayout(i[0].indices[c],{layerIndex:0,x:l[0][c][0],y0:h,y:l[0][c][1]*u});for(var d=1;d<f;++d)h+=l[d-1][c][1]*u,a.setItemLayout(i[d].indices[c],{layerIndex:d,x:l[d][c][0],y0:h,y:l[d][c][1]*u})}}function Kr(a){for(var t=a.length,e=a[0].length,r=[],i=[],n=0,o=0;o<e;++o){for(var l=0,s=0;s<t;++s)l+=a[s][o][1];l>n&&(n=l),r.push(l)}for(var v=0;v<e;++v)i[v]=(n-r[v])/2;n=0;for(var u=0;u<e;++u){var f=r[u]+i[u];f>n&&(n=f)}return{y0:i,max:n}}function qr(a){a.registerChartView(kr),a.registerSeriesModel($r),a.registerLayout(Wr),a.registerProcessor(ur("themeRiver"))}var xe={color:"fill",borderColor:"stroke"},Yr={symbol:1,symbolSize:1,symbolKeepAspect:1,legendIcon:1,visualMeta:1,liftZ:1,decal:1},B=Vt(),Jr=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.optionUpdated=function(){this.currentZLevel=this.get("zlevel",!0),this.currentZ=this.get("z",!0)},t.prototype.getInitialData=function(e,r){return ye(null,this)},t.prototype.getDataParams=function(e,r,i){var n=a.prototype.getDataParams.call(this,e,r);return i&&(n.info=B(i).info),n},t.type="series.custom",t.dependencies=["grid","polar","geo","singleAxis","calendar"],t.defaultOption={coordinateSystem:"cartesian2d",z:2,legendHoverLink:!0,clip:!1},t})(K);function Qr(a,t){return t=t||[0,0],k(["x","y"],function(e,r){var i=this.getAxis(e),n=t[r],o=a[r]/2;return i.type==="category"?i.getBandWidth():Math.abs(i.dataToCoord(n-o)-i.dataToCoord(n+o))},this)}function Xr(a){var t=a.master.getRect();return{coordSys:{type:"cartesian2d",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return a.dataToPoint(e)},size:x(Qr,a)}}}function jr(a,t){return t=t||[0,0],k([0,1],function(e){var r=t[e],i=a[e]/2,n=[],o=[];return n[e]=r-i,o[e]=r+i,n[1-e]=o[1-e]=t[1-e],Math.abs(this.dataToPoint(n)[e]-this.dataToPoint(o)[e])},this)}function ea(a){var t=a.getBoundingRect();return{coordSys:{type:"geo",x:t.x,y:t.y,width:t.width,height:t.height,zoom:a.getZoom()},api:{coord:function(e){return a.dataToPoint(e)},size:x(jr,a)}}}function ta(a,t){var e=this.getAxis(),r=t instanceof Array?t[0]:t,i=(a instanceof Array?a[0]:a)/2;return e.type==="category"?e.getBandWidth():Math.abs(e.dataToCoord(r-i)-e.dataToCoord(r+i))}function ra(a){var t=a.getRect();return{coordSys:{type:"singleAxis",x:t.x,y:t.y,width:t.width,height:t.height},api:{coord:function(e){return a.dataToPoint(e)},size:x(ta,a)}}}function aa(a,t){return t=t||[0,0],k(["Radius","Angle"],function(e,r){var i="get"+e+"Axis",n=this[i](),o=t[r],l=a[r]/2,s=n.type==="category"?n.getBandWidth():Math.abs(n.dataToCoord(o-l)-n.dataToCoord(o+l));return e==="Angle"&&(s=s*Math.PI/180),s},this)}function na(a){var t=a.getRadiusAxis(),e=a.getAngleAxis(),r=t.getExtent();return r[0]>r[1]&&r.reverse(),{coordSys:{type:"polar",cx:a.cx,cy:a.cy,r:r[1],r0:r[0]},api:{coord:function(i){var n=t.dataToRadius(i[0]),o=e.dataToAngle(i[1]),l=a.coordToPoint([n,o]);return l.push(n,o*Math.PI/180),l},size:x(aa,a)}}}function ia(a){var t=a.getRect(),e=a.getRangeInfo();return{coordSys:{type:"calendar",x:t.x,y:t.y,width:t.width,height:t.height,cellWidth:a.getCellWidth(),cellHeight:a.getCellHeight(),rangeInfo:{start:e.start,end:e.end,weeks:e.weeks,dayCount:e.allDay}},api:{coord:function(r,i){return a.dataToPoint(r,i)}}}}var H="emphasis",U="normal",de="blur",Se="select",Z=[U,H,de,Se],se={normal:["itemStyle"],emphasis:[H,"itemStyle"],blur:[de,"itemStyle"],select:[Se,"itemStyle"]},ue={normal:["label"],emphasis:[H,"label"],blur:[de,"label"],select:[Se,"label"]},oa=["x","y"],la="e\0\0",O={normal:{},emphasis:{},blur:{},select:{}},sa={cartesian2d:Xr,geo:ea,single:ra,polar:na,calendar:ia};function fe(a){return a instanceof Je}function pe(a){return a instanceof qt}function ua(a,t){t.copyTransform(a),pe(t)&&pe(a)&&(t.setStyle(a.style),t.z=a.z,t.z2=a.z2,t.zlevel=a.zlevel,t.invisible=a.invisible,t.ignore=a.ignore,fe(t)&&fe(a)&&t.setShape(a.shape))}var va=(function(a){N(t,a);function t(){var e=a!==null&&a.apply(this,arguments)||this;return e.type=t.type,e}return t.prototype.render=function(e,r,i,n){this._progressiveEls=null;var o=this._data,l=e.getData(),s=this.group,v=Fe(e,l,r,i);o||s.removeAll(),l.diff(o).add(function(f){ve(i,null,f,v(f,n),e,s,l)}).remove(function(f){var p=o.getItemGraphicEl(f);p&&me(p,B(p).option,e)}).update(function(f,p){var h=o.getItemGraphicEl(p);ve(i,h,f,v(f,n),e,s,l)}).execute();var u=e.get("clip",!0)?tt(e.coordinateSystem,!1,e):null;u?s.setClipPath(u):s.removeClipPath(),this._data=l},t.prototype.incrementalPrepareRender=function(e,r,i){this.group.removeAll(),this._data=null},t.prototype.incrementalRender=function(e,r,i,n,o){var l=r.getData(),s=Fe(r,l,i,n),v=this._progressiveEls=[];function u(h){h.isGroup||(h.incremental=!0,h.ensureState("emphasis").hoverLayer=!0)}for(var f=e.start;f<e.end;f++){var p=ve(null,null,f,s(f,o),r,this.group,l);p&&(p.traverse(u),v.push(p))}},t.prototype.eachRendered=function(e){Xe(this._progressiveEls||this.group,e)},t.prototype.filterForExposedEvent=function(e,r,i,n){var o=r.element;if(o==null||i.name===o)return!0;for(;(i=i.__hostTarget||i.parent)&&i!==this.group;)if(i.name===o)return!0;return!1},t.type="custom",t})($);function _e(a){var t=a.type,e;if(t==="path"){var r=a.shape,i=r.width!=null&&r.height!=null?{x:r.x||0,y:r.y||0,width:r.width,height:r.height}:null,n=ut(r);e=Ut(n,null,i,r.layout||"center"),B(e).customPathData=n}else if(t==="image")e=new je({}),B(e).customImagePath=a.style.image;else if(t==="text")e=new kt({});else if(t==="group")e=new q;else{if(t==="compoundPath")throw new Error('"compoundPath" is not supported yet.');var o=Zt(t);if(!o){var l="";$t(l)}e=new o}return B(e).customGraphicType=t,e.name=a.name,e.z2EmphasisLift=1,e.z2SelectLift=1,e}function Ce(a,t,e,r,i,n,o){er(t);var l=i&&i.normal.cfg;l&&t.setTextConfig(l),r&&r.transition==null&&(r.transition=oa);var s=r&&r.style;if(s){if(t.type==="text"){var v=s;F(v,"textFill")&&(v.fill=v.textFill),F(v,"textStroke")&&(v.stroke=v.textStroke)}var u=void 0,f=fe(t)?s.decal:null;a&&f&&(f.dirty=!0,u=Wt(f,a)),s.__decalPattern=u}if(pe(t)&&s){var u=s.__decalPattern;u&&(s.decal=u)}tr(t,r,n,{dataIndex:e,isInit:o,clearStyle:!0}),rr(t,r.keyframeAnimation,n)}function lt(a,t,e,r,i){var n=t.isGroup?null:t,o=i&&i[a].cfg;if(n){var l=n.ensureState(a);if(r===!1){var s=n.getState(a);s&&(s.style=null)}else l.style=r||null;o&&(l.textConfig=o),Kt(n)}}function fa(a,t,e){if(!a.isGroup){var r=a,i=e.currentZ,n=e.currentZLevel;r.z=i,r.zlevel=n;var o=t.z2;o!=null&&(r.z2=o||0);for(var l=0;l<Z.length;l++)pa(r,t,Z[l])}}function pa(a,t,e){var r=e===U,i=r?t:ae(t,e),n=i?i.z2:null,o;n!=null&&(o=r?a:a.ensureState(e),o.z2=n||0)}function Fe(a,t,e,r){var i=a.get("renderItem"),n=a.coordinateSystem,o={};n&&(o=n.prepareCustoms?n.prepareCustoms(n):sa[n.type](n));for(var l=ie({getWidth:r.getWidth,getHeight:r.getHeight,getZr:r.getZr,getDevicePixelRatio:r.getDevicePixelRatio,value:E,style:R,ordinalRawValue:I,styleEmphasis:V,visual:M,barLayout:D,currentSeriesIndices:b,font:L},o.api||{}),s={context:{},seriesId:a.id,seriesName:a.name,seriesIndex:a.seriesIndex,coordSys:o.coordSys,dataInsideLength:t.count(),encode:ha(a.getData())},v,u,f={},p={},h={},c={},d=0;d<Z.length;d++){var g=Z[d];h[g]=a.getModel(se[g]),c[g]=a.getModel(ue[g])}function S(m){return m===v?u||(u=t.getItemModel(m)):t.getItemModel(m)}function C(m,y){return t.hasItemOption?m===v?f[y]||(f[y]=S(m).getModel(se[y])):S(m).getModel(se[y]):h[y]}function w(m,y){return t.hasItemOption?m===v?p[y]||(p[y]=S(m).getModel(ue[y])):S(m).getModel(ue[y]):c[y]}return function(m,y){return v=m,u=null,f={},p={},i&&i(ie({dataIndexInside:m,dataIndex:t.getRawIndex(m),actionType:y?y.type:null},s),l)};function E(m,y){return y==null&&(y=v),t.getStore().get(t.getDimensionIndex(m||0),y)}function I(m,y){y==null&&(y=v),m=m||0;var _=t.getDimensionInfo(m);if(!_){var A=t.getDimensionIndex(m);return A>=0?t.getStore().get(A,y):void 0}var T=t.get(_.name,y),P=_&&_.ordinalMeta;return P?P.categories[T]:T}function R(m,y){y==null&&(y=v);var _=t.getItemVisual(y,"style"),A=_&&_.fill,T=_&&_.opacity,P=C(y,U).getItemStyle();A!=null&&(P.fill=A),T!=null&&(P.opacity=T);var Y={inheritColor:Bt(A)?A:"#000"},ne=w(y,U),be=Re(ne,null,Y,!1,!0);be.text=ne.getShallow("show")?Gt(a.getFormattedLabel(y,U),ze(t,y)):null;var vt=Ie(ne,Y,!1);return G(m,P),P=Me(P,be,vt),m&&z(P,m),P.legacy=!0,P}function V(m,y){y==null&&(y=v);var _=C(y,H).getItemStyle(),A=w(y,H),T=Re(A,null,null,!0,!0);T.text=A.getShallow("show")?Ot(a.getFormattedLabel(y,H),a.getFormattedLabel(y,U),ze(t,y)):null;var P=Ie(A,null,!0);return G(m,_),_=Me(_,T,P),m&&z(_,m),_.legacy=!0,_}function z(m,y){for(var _ in y)F(y,_)&&(m[_]=y[_])}function G(m,y){m&&(m.textFill&&(y.textFill=m.textFill),m.textPosition&&(y.textPosition=m.textPosition))}function M(m,y){if(y==null&&(y=v),F(xe,m)){var _=t.getItemVisual(y,"style");return _?_[xe[m]]:null}if(F(Yr,m))return t.getItemVisual(y,m)}function D(m){if(n.type==="cartesian2d"){var y=n.getBaseAxis();return xt(ie({axis:y},m))}}function b(){return e.getCurrentSeriesIndices()}function L(m){return Ft(m,e)}}function ha(a){var t={};return W(a.dimensions,function(e){var r=a.getDimensionInfo(e);if(!r.isExtraCoord){var i=r.coordDim,n=t[i]=t[i]||[];n[r.coordDimIndex]=a.getDimensionIndex(e)}}),t}function ve(a,t,e,r,i,n,o){if(!r){n.remove(t);return}var l=we(a,t,e,r,i,n);return l&&o.setItemGraphicEl(e,l),l&&Q(l,r.focus,r.blurScope,r.emphasisDisabled),l}function we(a,t,e,r,i,n){var o=-1,l=t;t&&st(t,r,i)&&(o=Ht(n.childrenRef(),t),t=null);var s=!t,v=t;v?v.clearStates():(v=_e(r),l&&ua(l,v)),r.morph===!1?v.disableMorphing=!0:v.disableMorphing&&(v.disableMorphing=!1),O.normal.cfg=O.normal.conOpt=O.emphasis.cfg=O.emphasis.conOpt=O.blur.cfg=O.blur.conOpt=O.select.cfg=O.select.conOpt=null,O.isLegacy=!1,ga(v,e,r,i,s,O),ca(v,e,r,i,s),Ce(a,v,e,r,O,i,s),F(r,"info")&&(B(v).info=r.info);for(var u=0;u<Z.length;u++){var f=Z[u];if(f!==U){var p=ae(r,f),h=De(r,p,f);lt(f,v,p,h,O)}}return fa(v,r,i),r.type==="group"&&ya(a,v,e,r,i),o>=0?n.replaceAt(v,o):n.add(v),v}function st(a,t,e){var r=B(a),i=t.type,n=t.shape,o=t.style;return e.isUniversalTransitionEnabled()||i!=null&&i!==r.customGraphicType||i==="path"&&_a(n)&&ut(n)!==r.customPathData||i==="image"&&F(o,"image")&&o.image!==r.customImagePath}function ca(a,t,e,r,i){var n=e.clipPath;if(n===!1)a&&a.getClipPath()&&a.removeClipPath();else if(n){var o=a.getClipPath();o&&st(o,n,r)&&(o=null),o||(o=_e(n),a.setClipPath(o)),Ce(null,o,t,n,null,r,i)}}function ga(a,t,e,r,i,n){if(!a.isGroup){Be(e,null,n),Be(e,H,n);var o=n.normal.conOpt,l=n.emphasis.conOpt,s=n.blur.conOpt,v=n.select.conOpt;if(o!=null||l!=null||v!=null||s!=null){var u=a.getTextContent();if(o===!1)u&&a.removeTextContent();else{o=n.normal.conOpt=o||{type:"text"},u?u.clearStates():(u=_e(o),a.setTextContent(u)),Ce(null,u,t,o,null,r,i);for(var f=o&&o.style,p=0;p<Z.length;p++){var h=Z[p];if(h!==U){var c=n[h].conOpt;lt(h,u,c,De(o,c,h),null)}}f?u.dirty():u.markRedraw()}}}}function Be(a,t,e){var r=t?ae(a,t):a,i=t?De(a,r,H):a.style,n=a.type,o=r?r.textConfig:null,l=a.textContent,s=l?t?ae(l,t):l:null;if(i&&(e.isLegacy||ar(i,n,!!o,!!s))){e.isLegacy=!0;var v=nr(i,n,!t);!o&&v.textConfig&&(o=v.textConfig),!s&&v.textContent&&(s=v.textContent)}if(!t&&s){var u=s;!u.type&&(u.type="text")}var f=t?e[t]:e.normal;f.cfg=o,f.conOpt=s}function ae(a,t){return t?a?a[t]:null:a}function De(a,t,e){var r=t&&t.style;return r==null&&e===H&&a&&(r=a.styleEmphasis),r}function ya(a,t,e,r,i){var n=r.children,o=n?n.length:0,l=r.$mergeChildren,s=l==="byName"||r.diffChildrenByName,v=l===!1;if(!(!o&&!s&&!v)){if(s){da({api:a,oldChildren:t.children()||[],newChildren:n||[],dataIndex:e,seriesModel:i,group:t});return}v&&t.removeAll();for(var u=0;u<o;u++){var f=n[u],p=t.childAt(u);f?(f.ignore==null&&(f.ignore=!1),we(a,p,e,f,i,t)):p.ignore=!0}for(var h=t.childCount()-1;h>=u;h--){var c=t.childAt(h);ma(t,c,i)}}}function ma(a,t,e){t&&me(t,B(a).option,e)}function da(a){new et(a.oldChildren,a.newChildren,He,He,a).add(Ue).update(Ue).remove(Sa).execute()}function He(a,t){var e=a&&a.name;return e??la+t}function Ue(a,t){var e=this.context,r=a!=null?e.newChildren[a]:null,i=t!=null?e.oldChildren[t]:null;we(e.api,i,e.dataIndex,r,e.seriesModel,e.group)}function Sa(a){var t=this.context,e=t.oldChildren[a];e&&me(e,B(e).option,t.seriesModel)}function ut(a){return a&&(a.pathData||a.d)}function _a(a){return a&&(F(a,"pathData")||F(a,"d"))}function Ca(a){a.registerChartView(va),a.registerSeriesModel(Jr)}ce([Ca,Ur,Vr,gr,Lr,qr]);