@nocobase/portal-template-default 1.0.14 → 1.0.16

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 (70) hide show
  1. package/dist/assets/{LineDraw-iG-ADes-.js → LineDraw-vPRTWiQ5.js} +1 -1
  2. package/dist/assets/{SymbolDraw-DXoSw1tM.js → SymbolDraw-DOl_Tss3.js} +1 -1
  3. package/dist/assets/{VisualMapping-C_ee4Eht.js → VisualMapping-j08W3KBm.js} +1 -1
  4. package/dist/assets/{auth-method-demo-DaOCuvsq.js → auth-method-demo-B2qcpY8z.js} +1 -1
  5. package/dist/assets/auto-login-provider-BMtzvdxG.js +1 -0
  6. package/dist/assets/{auto-login-provider-5Uxza9Ms.js → auto-login-provider-Bukw7zEe.js} +2 -2
  7. package/dist/assets/auto-redirect-provider-C6GNPg5r.js +1 -0
  8. package/dist/assets/auto-redirect-provider-D5c6kN2R.js +1 -0
  9. package/dist/assets/{auto-redirect-provider-CfwRvYOI.js → auto-redirect-provider-iTzGEDpU.js} +1 -1
  10. package/dist/assets/{calendar-DjDRfD5t.js → calendar-Dv2RNnsr.js} +1 -1
  11. package/dist/assets/{card-DuQBOS6A.js → card-C9Hpeq1c.js} +1 -1
  12. package/dist/assets/{cas-sign-in-button-CyqG1QME.js → cas-sign-in-button-BQn3Mttx.js} +1 -1
  13. package/dist/assets/{components-D-ptYjX_.js → components-BT5mL9gW.js} +1 -1
  14. package/dist/assets/{configuration-gate-C08mkkiX.js → configuration-gate-BJoadoA6.js} +1 -1
  15. package/dist/assets/{createClipPathFromCoordSys-wj34-b1B.js → createClipPathFromCoordSys-m8IbnJ1z.js} +1 -1
  16. package/dist/assets/createSeriesDataSimply-DKUV5b5e.js +1 -0
  17. package/dist/assets/{customGraphicKeyframeAnimation-DWrhrHL_.js → customGraphicKeyframeAnimation-CYLPurwK.js} +1 -1
  18. package/dist/assets/{demo-DkIhyiRK.js → demo-BWGOwqtJ.js} +1 -1
  19. package/dist/assets/{demo-D4OiKplc.js → demo-BWbcvkya.js} +1 -1
  20. package/dist/assets/{demo-BYWHeKUe.js → demo-DIASSPgn.js} +1 -1
  21. package/dist/assets/{demo-DBueJg0m.js → demo-DuZ6asUU.js} +1 -1
  22. package/dist/assets/{demo-CPWoNtx8.js → demo-Dxcy4bDE.js} +1 -1
  23. package/dist/assets/{demo-CyvJk5zV.js → demo-YpEC76uw.js} +1 -1
  24. package/dist/assets/{demo-tpTjO0sC.js → demo-wzkoR8T2.js} +1 -1
  25. package/dist/assets/{dingtalk-sign-in-button-DSWsSruv.js → dingtalk-sign-in-button-DSluFaP9.js} +1 -1
  26. package/dist/assets/{echarts-preview-DxHNfq1C.js → echarts-preview-mRXoEciY.js} +1 -1
  27. package/dist/assets/{echarts-runtime-D8kXn6ME.js → echarts-runtime-CvLr4Slh.js} +3 -3
  28. package/dist/assets/{echarts-runtime-advanced-QY8v95qK.js → echarts-runtime-advanced-BC1tvfQ0.js} +1 -1
  29. package/dist/assets/{echarts-runtime-common-D-yqAK-r.js → echarts-runtime-common-DhNaV5B8.js} +1 -1
  30. package/dist/assets/{echarts-runtime-components-P4-i8jPU.js → echarts-runtime-components-BiioS8t1.js} +1 -1
  31. package/dist/assets/{echarts-runtime-hierarchy-ByQZ-DbP.js → echarts-runtime-hierarchy-CAWqYvFh.js} +1 -1
  32. package/dist/assets/{floating-BFVEyPEp.js → floating-RVbHvIiD.js} +1 -1
  33. package/dist/assets/{index-um5hdKdZ.js → index-BysibBZu.js} +1 -1
  34. package/dist/assets/{index-CwNxd66J.js → index-C-tdHirk.js} +1 -1
  35. package/dist/assets/{index-gFtCXH3o.js → index-CBZbj45X.js} +1 -1
  36. package/dist/assets/index-CgkdZ6Oc.js +686 -0
  37. package/dist/assets/{index-Btk35Nx-.js → index-Dw20Lzpp.js} +3 -3
  38. package/dist/assets/{index-BgCbGDMc.js → index-hSBzW-VA.js} +1 -1
  39. package/dist/assets/{labelHelper-DQqRy3a_.js → labelHelper-DbITmOUW.js} +1 -1
  40. package/dist/assets/{ldap-sign-in-form--6Gt3yGq.js → ldap-sign-in-form-BOMNDTkK.js} +1 -1
  41. package/dist/assets/{oidc-sign-in-button-CQdRcR_p.js → oidc-sign-in-button-Cgpa8Qzj.js} +1 -1
  42. package/dist/assets/{page-context-CnQ4GYM7.js → page-context-AU6RU0Qi.js} +4 -4
  43. package/dist/assets/prompt-card-FWugRgi-.js +1 -0
  44. package/dist/assets/{prompt-output-DZHRM2ft.js → prompt-output-DMTuTNab.js} +1 -1
  45. package/dist/assets/{saml-sign-in-button-BHL5a0JV.js → saml-sign-in-button-qt8bMeoQ.js} +1 -1
  46. package/dist/assets/{sectorHelper-DN_Vv6OL.js → sectorHelper-C6L782Ue.js} +1 -1
  47. package/dist/assets/shortcut-Bu7jT_-w.js +47 -0
  48. package/dist/assets/{sms-sign-in-form-DTX9GV2I.js → sms-sign-in-form-Bo2WLZuP.js} +1 -1
  49. package/dist/assets/{static.browser-jI1psK0d.js → static.browser-CoPxsICt.js} +8 -8
  50. package/dist/assets/switch-DQkkIE7G.js +1 -0
  51. package/dist/assets/{tool-cards-DFttLAfo.js → tool-cards-ipgJ_3Ec.js} +1 -1
  52. package/dist/assets/{use-authenticator-sign-in-CRGjzXju.js → use-authenticator-sign-in-BzFeh7qe.js} +1 -1
  53. package/dist/assets/{use-dingtalk-sign-in-8WYzJ2jf.js → use-dingtalk-sign-in-mrq6K5Yx.js} +1 -1
  54. package/dist/assets/{use-wecom-sign-in-C9j8wfCD.js → use-wecom-sign-in-PPIMLvGa.js} +1 -1
  55. package/dist/assets/wecom-sign-in-button-rUq9RW8R.js +1 -0
  56. package/dist/index.html +1 -1
  57. package/dist/index.raw.html +1 -1
  58. package/package.json +1 -1
  59. package/scripts/build-html.mjs +59 -2
  60. package/src/components/auth/sign-up-form.tsx +287 -59
  61. package/src/components/auth/types.ts +23 -1
  62. package/dist/assets/auto-login-provider-DyaPGK2D.js +0 -1
  63. package/dist/assets/auto-redirect-provider-Cr3jmYts.js +0 -1
  64. package/dist/assets/auto-redirect-provider-QkJQRBbG.js +0 -1
  65. package/dist/assets/createSeriesDataSimply-D0A6SAVQ.js +0 -1
  66. package/dist/assets/index-MB-jfQld.js +0 -686
  67. package/dist/assets/prompt-card-B2RS4nt2.js +0 -1
  68. package/dist/assets/shortcut-C5x5LQWU.js +0 -47
  69. package/dist/assets/switch-CRL8PmRI.js +0 -1
  70. package/dist/assets/wecom-sign-in-button-mIS1zGSU.js +0 -1
@@ -1,3 +1,3 @@
1
- import{D as Q,aV as W,G as C,R as le,c8 as d,cd as mt,ce as wt,al as bt,aw as Ke,aK as $e,cf as At,bx as Et,ai as Ct,cg as Tt,L as Ft,k as Gt,y as x,m as O,ch as Pt,ci as Ae,cj as Qe,b6 as Lt,b5 as et,be as tt,a_ as m,aU as Mt,W as ee,ck as Rt,cl as Dt,cm as kt,_ as M,ab as Wt,a1 as at,c6 as rt,N as F,c4 as Vt,aj as Bt,bN as ve,a4 as re,aB as nt,cn as Ot,co as zt,aH as Yt,cp as it,aX as Ee,o as Ut,bQ as de,cq as Ht,aC as ge,x as Xt,cr as Jt,bc as ue,aT as ot,aP as jt,bB as It,r as Nt,u as Zt,l as fe,cs as qt,t as Kt,ct as $t,cu as Qt,bU as ye,a$ as J,a9 as ea,f as xe,cv as ta,cw as aa,bh as st,bV as ra,cx as na,cy as ia,cz as oa,aL as lt,cA as sa,ap as la,bd as ua,a5 as fa,bO as pa,cB as ca,bR as ha,cC as va,cD as da,cE as ga,cF as ya,cG as xa,cH as ut,cI as j,cJ as Sa,a3 as Se,P as _a,cK as ma,H as wa}from"./echarts-runtime-D8kXn6ME.js";import{V as ft,R as ba,u as Aa,a as Ea,b as Ca}from"./LineDraw-iG-ADes-.js";function pt(r){if(Q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ne,q={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ce=W(q),K={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Te=W(K),Ta=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=pt(e);this._defsUsePending=[];var n=new C;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),b(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Pa(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var h=te(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(p=ht(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new C,n.add(c),c.scaleX=c.scaleY=p.scale,c.x=p.x,c.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=ne[s];if(f&&d(ne,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var h={name:p,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=Fe[s];if(c&&d(Fe,s)){var v=c.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,a,u,i,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},r.prototype._parseText=function(e,t){var a=new mt({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});A(t,a),b(e,a,this._defsUsePending,!1,!1),Fa(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){ne={g:function(e,t){var a=new C;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Ct;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Et;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new At;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new $e({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new Ke({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new bt;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=wt(a);return A(t,n),b(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Fe={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Ft(e,t,a,n);return Ge(r,i),Pe(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Tt(e,t,a);return Ge(r,n),Pe(r,n),n}};function Ge(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Pe(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};ct(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function A(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Gt(e.__inheritedStyle,r.__inheritedStyle))}function Le(r){for(var e=te(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function b(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(Ra(r,e),ct(r,o,s),a||Da(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Me(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Me(i,"stroke",o.stroke,t)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=O(te(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Fa(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Ga=/^url\(\s*#(.*?)\)/;function Me(r,e,t,a){var n=t&&t.match(Ga);if(n){var i=Pt(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Pa(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var La=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function te(r){return r.match(La)||[]}var Ma=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ie=Math.PI/180;function Ra(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Ma,function(p,h,c){return a.push(h,c),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=te(o);switch(n=n||tt(),s){case"translate":et(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qe(n,n,-parseFloat(l[0])*ie,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Re=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ct(r,e,t){var a=r.getAttribute("style");if(a){Re.lastIndex=0;for(var n;(n=Re.exec(a))!=null;){var i=n[1],o=d(q,i)?q[i]:null;o&&(e[o]=n[2]);var s=d(K,i)?K[i]:null;s&&(t[s]=n[2])}}}function Da(r,e,t){for(var a=0;a<Ce.length;a++){var n=Ce[a],i=r.getAttribute(n);i!=null&&(e[q[n]]=i)}for(var a=0;a<Te.length;a++){var n=Te[a],i=r.getAttribute(n);i!=null&&(t[K[n]]=i)}}function ht(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function ka(r,e){var t=new Ta;return t.parse(r,e)}var Wa=m(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Va=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=m(),this._freedGraphics=[],this._mapName=e,this._parsedXML=pt(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Oa(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&ka(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Mt(a!=null)}catch(y){throw new Error(`Invalid svg format
1
+ import{D as Q,aV as W,G as C,R as le,c8 as d,cd as mt,ce as wt,al as bt,aw as Ke,aK as $e,cf as At,bx as Et,ai as Ct,cg as Tt,L as Ft,k as Gt,y as x,m as O,ch as Pt,ci as Ae,cj as Qe,b6 as Lt,b5 as et,be as tt,a_ as m,aU as Mt,W as ee,ck as Rt,cl as Dt,cm as kt,_ as M,ab as Wt,a1 as at,c6 as rt,N as F,c4 as Vt,aj as Bt,bN as ve,a4 as re,aB as nt,cn as Ot,co as zt,aH as Yt,cp as it,aX as Ee,o as Ut,bQ as de,cq as Ht,aC as ge,x as Xt,cr as Jt,bc as ue,aT as ot,aP as jt,bB as It,r as Nt,u as Zt,l as fe,cs as qt,t as Kt,ct as $t,cu as Qt,bU as ye,a$ as J,a9 as ea,f as xe,cv as ta,cw as aa,bh as st,bV as ra,cx as na,cy as ia,cz as oa,aL as lt,cA as sa,ap as la,bd as ua,a5 as fa,bO as pa,cB as ca,bR as ha,cC as va,cD as da,cE as ga,cF as ya,cG as xa,cH as ut,cI as j,cJ as Sa,a3 as Se,P as _a,cK as ma,H as wa}from"./echarts-runtime-CvLr4Slh.js";import{V as ft,R as ba,u as Aa,a as Ea,b as Ca}from"./LineDraw-vPRTWiQ5.js";function pt(r){if(Q(r)){var e=new DOMParser;r=e.parseFromString(r,"text/xml")}var t=r;for(t.nodeType===9&&(t=t.firstChild);t.nodeName.toLowerCase()!=="svg"||t.nodeType!==1;)t=t.nextSibling;return t}var ne,q={fill:"fill",stroke:"stroke","stroke-width":"lineWidth",opacity:"opacity","fill-opacity":"fillOpacity","stroke-opacity":"strokeOpacity","stroke-dasharray":"lineDash","stroke-dashoffset":"lineDashOffset","stroke-linecap":"lineCap","stroke-linejoin":"lineJoin","stroke-miterlimit":"miterLimit","font-family":"fontFamily","font-size":"fontSize","font-style":"fontStyle","font-weight":"fontWeight","text-anchor":"textAlign",visibility:"visibility",display:"display"},Ce=W(q),K={"alignment-baseline":"textBaseline","stop-color":"stopColor"},Te=W(K),Ta=(function(){function r(){this._defs={},this._root=null}return r.prototype.parse=function(e,t){t=t||{};var a=pt(e);this._defsUsePending=[];var n=new C;this._root=n;var i=[],o=a.getAttribute("viewBox")||"",s=parseFloat(a.getAttribute("width")||t.width),l=parseFloat(a.getAttribute("height")||t.height);isNaN(s)&&(s=null),isNaN(l)&&(l=null),b(a,n,null,!0,!1);for(var u=a.firstChild;u;)this._parseNode(u,n,i,null,!1,!1),u=u.nextSibling;Pa(this._defs,this._defsUsePending),this._defsUsePending=[];var f,p;if(o){var h=te(o);h.length>=4&&(f={x:parseFloat(h[0]||0),y:parseFloat(h[1]||0),width:parseFloat(h[2]),height:parseFloat(h[3])})}if(f&&s!=null&&l!=null&&(p=ht(f,{x:0,y:0,width:s,height:l}),!t.ignoreViewBox)){var c=n;n=new C,n.add(c),c.scaleX=c.scaleY=p.scale,c.x=p.x,c.y=p.y}return!t.ignoreRootClip&&s!=null&&l!=null&&n.setClipPath(new le({shape:{x:0,y:0,width:s,height:l}})),{root:n,width:s,height:l,viewBoxRect:f,viewBoxTransform:p,named:i}},r.prototype._parseNode=function(e,t,a,n,i,o){var s=e.nodeName.toLowerCase(),l,u=n;if(s==="defs"&&(i=!0),s==="text"&&(o=!0),s==="defs"||s==="switch")l=t;else{if(!i){var f=ne[s];if(f&&d(ne,s)){l=f.call(this,e,t);var p=e.getAttribute("name");if(p){var h={name:p,namedFrom:null,svgNodeTagLower:s,el:l};a.push(h),s==="g"&&(u=h)}else n&&a.push({name:n.name,namedFrom:n,svgNodeTagLower:s,el:l});t.add(l)}}var c=Fe[s];if(c&&d(Fe,s)){var v=c.call(this,e),g=e.getAttribute("id");g&&(this._defs[g]=v)}}if(l&&l.isGroup)for(var y=e.firstChild;y;)y.nodeType===1?this._parseNode(y,l,a,u,i,o):y.nodeType===3&&o&&this._parseText(y,l),y=y.nextSibling},r.prototype._parseText=function(e,t){var a=new mt({style:{text:e.textContent},silent:!0,x:this._textX||0,y:this._textY||0});A(t,a),b(e,a,this._defsUsePending,!1,!1),Fa(a,t);var n=a.style,i=n.fontSize;i&&i<9&&(n.fontSize=9,a.scaleX*=i/9,a.scaleY*=i/9);var o=(n.fontSize||n.fontFamily)&&[n.fontStyle,n.fontWeight,(n.fontSize||12)+"px",n.fontFamily||"sans-serif"].join(" ");n.font=o;var s=a.getBoundingRect();return this._textX+=s.width,t.add(a),a},r.internalField=(function(){ne={g:function(e,t){var a=new C;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a},rect:function(e,t){var a=new le;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x:parseFloat(e.getAttribute("x")||"0"),y:parseFloat(e.getAttribute("y")||"0"),width:parseFloat(e.getAttribute("width")||"0"),height:parseFloat(e.getAttribute("height")||"0")}),a.silent=!0,a},circle:function(e,t){var a=new Ct;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),r:parseFloat(e.getAttribute("r")||"0")}),a.silent=!0,a},line:function(e,t){var a=new Et;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({x1:parseFloat(e.getAttribute("x1")||"0"),y1:parseFloat(e.getAttribute("y1")||"0"),x2:parseFloat(e.getAttribute("x2")||"0"),y2:parseFloat(e.getAttribute("y2")||"0")}),a.silent=!0,a},ellipse:function(e,t){var a=new At;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setShape({cx:parseFloat(e.getAttribute("cx")||"0"),cy:parseFloat(e.getAttribute("cy")||"0"),rx:parseFloat(e.getAttribute("rx")||"0"),ry:parseFloat(e.getAttribute("ry")||"0")}),a.silent=!0,a},polygon:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new $e({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},polyline:function(e,t){var a=e.getAttribute("points"),n;a&&(n=Le(a));var i=new Ke({shape:{points:n||[]},silent:!0});return A(t,i),b(e,i,this._defsUsePending,!1,!1),i},image:function(e,t){var a=new bt;return A(t,a),b(e,a,this._defsUsePending,!1,!1),a.setStyle({image:e.getAttribute("xlink:href")||e.getAttribute("href"),x:+e.getAttribute("x"),y:+e.getAttribute("y"),width:+e.getAttribute("width"),height:+e.getAttribute("height")}),a.silent=!0,a},text:function(e,t){var a=e.getAttribute("x")||"0",n=e.getAttribute("y")||"0",i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0";this._textX=parseFloat(a)+parseFloat(i),this._textY=parseFloat(n)+parseFloat(o);var s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),s},tspan:function(e,t){var a=e.getAttribute("x"),n=e.getAttribute("y");a!=null&&(this._textX=parseFloat(a)),n!=null&&(this._textY=parseFloat(n));var i=e.getAttribute("dx")||"0",o=e.getAttribute("dy")||"0",s=new C;return A(t,s),b(e,s,this._defsUsePending,!1,!0),this._textX+=parseFloat(i),this._textY+=parseFloat(o),s},path:function(e,t){var a=e.getAttribute("d")||"",n=wt(a);return A(t,n),b(e,n,this._defsUsePending,!1,!1),n.silent=!0,n}}})(),r})(),Fe={lineargradient:function(r){var e=parseInt(r.getAttribute("x1")||"0",10),t=parseInt(r.getAttribute("y1")||"0",10),a=parseInt(r.getAttribute("x2")||"10",10),n=parseInt(r.getAttribute("y2")||"0",10),i=new Ft(e,t,a,n);return Ge(r,i),Pe(r,i),i},radialgradient:function(r){var e=parseInt(r.getAttribute("cx")||"0",10),t=parseInt(r.getAttribute("cy")||"0",10),a=parseInt(r.getAttribute("r")||"0",10),n=new Tt(e,t,a);return Ge(r,n),Pe(r,n),n}};function Ge(r,e){var t=r.getAttribute("gradientUnits");t==="userSpaceOnUse"&&(e.global=!0)}function Pe(r,e){for(var t=r.firstChild;t;){if(t.nodeType===1&&t.nodeName.toLocaleLowerCase()==="stop"){var a=t.getAttribute("offset"),n=void 0;a&&a.indexOf("%")>0?n=parseInt(a,10)/100:a?n=parseFloat(a):n=0;var i={};ct(t,i,i);var o=i.stopColor||t.getAttribute("stop-color")||"#000000";e.colorStops.push({offset:n,color:o})}t=t.nextSibling}}function A(r,e){r&&r.__inheritedStyle&&(e.__inheritedStyle||(e.__inheritedStyle={}),Gt(e.__inheritedStyle,r.__inheritedStyle))}function Le(r){for(var e=te(r),t=[],a=0;a<e.length;a+=2){var n=parseFloat(e[a]),i=parseFloat(e[a+1]);t.push([n,i])}return t}function b(r,e,t,a,n){var i=e,o=i.__inheritedStyle=i.__inheritedStyle||{},s={};r.nodeType===1&&(Ra(r,e),ct(r,o,s),a||Da(r,o,s)),i.style=i.style||{},o.fill!=null&&(i.style.fill=Me(i,"fill",o.fill,t)),o.stroke!=null&&(i.style.stroke=Me(i,"stroke",o.stroke,t)),x(["lineWidth","opacity","fillOpacity","strokeOpacity","miterLimit","fontSize"],function(l){o[l]!=null&&(i.style[l]=parseFloat(o[l]))}),x(["lineDashOffset","lineCap","lineJoin","fontWeight","fontFamily","fontStyle","textAlign"],function(l){o[l]!=null&&(i.style[l]=o[l])}),n&&(i.__selfStyle=s),o.lineDash&&(i.style.lineDash=O(te(o.lineDash),function(l){return parseFloat(l)})),(o.visibility==="hidden"||o.visibility==="collapse")&&(i.invisible=!0),o.display==="none"&&(i.ignore=!0)}function Fa(r,e){var t=e.__selfStyle;if(t){var a=t.textBaseline,n=a;!a||a==="auto"||a==="baseline"?n="alphabetic":a==="before-edge"||a==="text-before-edge"?n="top":a==="after-edge"||a==="text-after-edge"?n="bottom":(a==="central"||a==="mathematical")&&(n="middle"),r.style.textBaseline=n}var i=e.__inheritedStyle;if(i){var o=i.textAlign,s=o;o&&(o==="middle"&&(s="center"),r.style.textAlign=s)}}var Ga=/^url\(\s*#(.*?)\)/;function Me(r,e,t,a){var n=t&&t.match(Ga);if(n){var i=Pt(n[1]);a.push([r,e,i]);return}return t==="none"&&(t=null),t}function Pa(r,e){for(var t=0;t<e.length;t++){var a=e[t];a[0].style[a[1]]=r[a[2]]}}var La=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function te(r){return r.match(La)||[]}var Ma=/(translate|scale|rotate|skewX|skewY|matrix)\(([\-\s0-9\.eE,]*)\)/g,ie=Math.PI/180;function Ra(r,e){var t=r.getAttribute("transform");if(t){t=t.replace(/,/g," ");var a=[],n=null;t.replace(Ma,function(p,h,c){return a.push(h,c),""});for(var i=a.length-1;i>0;i-=2){var o=a[i],s=a[i-1],l=te(o);switch(n=n||tt(),s){case"translate":et(n,n,[parseFloat(l[0]),parseFloat(l[1]||"0")]);break;case"scale":Lt(n,n,[parseFloat(l[0]),parseFloat(l[1]||l[0])]);break;case"rotate":Qe(n,n,-parseFloat(l[0])*ie,[parseFloat(l[1]||"0"),parseFloat(l[2]||"0")]);break;case"skewX":var u=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,0,u,1,0,0],n);break;case"skewY":var f=Math.tan(parseFloat(l[0])*ie);Ae(n,[1,f,0,1,0,0],n);break;case"matrix":n[0]=parseFloat(l[0]),n[1]=parseFloat(l[1]),n[2]=parseFloat(l[2]),n[3]=parseFloat(l[3]),n[4]=parseFloat(l[4]),n[5]=parseFloat(l[5]);break}}e.setLocalTransform(n)}}var Re=/([^\s:;]+)\s*:\s*([^:;]+)/g;function ct(r,e,t){var a=r.getAttribute("style");if(a){Re.lastIndex=0;for(var n;(n=Re.exec(a))!=null;){var i=n[1],o=d(q,i)?q[i]:null;o&&(e[o]=n[2]);var s=d(K,i)?K[i]:null;s&&(t[s]=n[2])}}}function Da(r,e,t){for(var a=0;a<Ce.length;a++){var n=Ce[a],i=r.getAttribute(n);i!=null&&(e[q[n]]=i)}for(var a=0;a<Te.length;a++){var n=Te[a],i=r.getAttribute(n);i!=null&&(t[K[n]]=i)}}function ht(r,e){var t=e.width/r.width,a=e.height/r.height,n=Math.min(t,a);return{scale:n,x:-(r.x+r.width/2)*n+(e.x+e.width/2),y:-(r.y+r.height/2)*n+(e.y+e.height/2)}}function ka(r,e){var t=new Ta;return t.parse(r,e)}var Wa=m(["rect","circle","line","ellipse","polygon","polyline","path","text","tspan","g"]),Va=(function(){function r(e,t){this.type="geoSVG",this._usedGraphicMap=m(),this._freedGraphics=[],this._mapName=e,this._parsedXML=pt(t)}return r.prototype.load=function(){var e=this._firstGraphic;if(!e){e=this._firstGraphic=this._buildGraphic(this._parsedXML),this._freedGraphics.push(e),this._boundingRect=this._firstGraphic.boundingRect.clone();var t=Oa(e.named),a=t.regions,n=t.regionsMap;this._regions=a,this._regionsMap=n}return{boundingRect:this._boundingRect,regions:this._regions,regionsMap:this._regionsMap}},r.prototype._buildGraphic=function(e){var t,a;try{t=e&&ka(e,{ignoreViewBox:!0,ignoreRootClip:!0})||{},a=t.root,Mt(a!=null)}catch(y){throw new Error(`Invalid svg format
2
2
  `+y.message)}var n=new C;n.add(a),n.isGeoSVGGraphicRoot=!0;var i=t.width,o=t.height,s=t.viewBoxRect,l=this._boundingRect;if(!l){var u=void 0,f=void 0,p=void 0,h=void 0;if(i!=null?(u=0,p=i):s&&(u=s.x,p=s.width),o!=null?(f=0,h=o):s&&(f=s.y,h=s.height),u==null||f==null){var c=a.getBoundingRect();u==null&&(u=c.x,p=c.width),f==null&&(f=c.y,h=c.height)}l=this._boundingRect=new ee(u,f,p,h)}if(s){var v=ht(s,l);a.scaleX=a.scaleY=v.scale,a.x=v.x,a.y=v.y}n.setClipPath(new le({shape:l.plain()}));var g=[];return x(t.named,function(y){Wa.get(y.svgNodeTagLower)!=null&&(g.push(y),Ba(y.el))}),{root:n,boundingRect:l,named:g}},r.prototype.useGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);return a||(a=this._freedGraphics.pop()||this._buildGraphic(this._parsedXML),t.set(e,a),a)},r.prototype.freeGraphic=function(e){var t=this._usedGraphicMap,a=t.get(e);a&&(t.removeKey(e),this._freedGraphics.push(a))},r})();function Ba(r){r.silent=!1,r.isGroup&&r.traverse(function(e){e.silent=!1})}function Oa(r){var e=[],t=m();return x(r,function(a){if(a.namedFrom==null){var n=new Rt(a.name,a.el);e.push(n),t.set(a.name,n)}}),{regions:e,regionsMap:t}}var pe=[126,25],De="南海诸岛",k=[[[0,3.5],[7,11.2],[15,11.9],[30,7],[42,.7],[52,.7],[56,7.7],[59,.7],[64,.7],[64,0],[5,0],[0,3.5]],[[13,16.1],[19,14.7],[16,21.7],[11,23.1],[13,16.1]],[[12,32.2],[14,38.5],[15,38.5],[13,32.2],[12,32.2]],[[16,47.6],[12,53.2],[13,53.2],[18,47.6],[16,47.6]],[[6,64.4],[8,70],[9,70],[8,64.4],[6,64.4]],[[23,82.6],[29,79.8],[30,79.8],[25,82.6],[23,82.6]],[[37,70.7],[43,62.3],[44,62.3],[39,70.7],[37,70.7]],[[48,51.1],[51,45.5],[53,45.5],[50,51.1],[48,51.1]],[[51,35],[51,28.7],[53,28.7],[53,35],[51,35]],[[52,22.4],[55,17.5],[56,17.5],[53,22.4],[52,22.4]],[[58,12.6],[62,7],[63,7],[60,12.6],[58,12.6]],[[0,3.5],[0,93.1],[64,93.1],[64,0],[63,0],[63,92.4],[1,92.4],[1,3.5],[0,3.5]]];for(var D=0;D<k.length;D++)for(var V=0;V<k[D].length;V++)k[D][V][0]/=10.5,k[D][V][1]/=-10.5/.75,k[D][V][0]+=pe[0],k[D][V][1]+=pe[1];function za(r,e){if(r==="china"){for(var t=0;t<e.length;t++)if(e[t].name===De)return;e.push(new Dt(De,O(k,function(a){return{type:"polygon",exterior:a}}),pe))}}var Ya={南海诸岛:[32,80],广东:[0,-10],香港:[10,5],澳门:[-10,10],天津:[5,5]};function Ua(r,e){if(r==="china"){var t=Ya[e.name];if(t){var a=e.getCenter();a[0]+=t[0]/10.5,a[1]+=-t[1]/(10.5/.75),e.setCenter(a)}}}var Ha=[[[123.45165252685547,25.73527164402261],[123.49731445312499,25.73527164402261],[123.49731445312499,25.750734064600884],[123.45165252685547,25.750734064600884],[123.45165252685547,25.73527164402261]]];function Xa(r,e){r==="china"&&e.name==="台湾"&&e.geometries.push({type:"polygon",exterior:Ha[0]})}var Ja="name",ja=(function(){function r(e,t,a){this.type="geoJSON",this._parsedMap=m(),this._mapName=e,this._specialAreas=a,this._geoJSON=Na(t)}return r.prototype.load=function(e,t){t=t||Ja;var a=this._parsedMap.get(t);if(!a){var n=this._parseToRegions(t);a=this._parsedMap.set(t,{regions:n,boundingRect:Ia(n)})}var i=m(),o=[];return x(a.regions,function(s){var l=s.name;e&&d(e,l)&&(s=s.cloneShallow(l=e[l])),o.push(s),i.set(l,s)}),{regions:o,boundingRect:a.boundingRect||new ee(0,0,0,0),regionsMap:i}},r.prototype._parseToRegions=function(e){var t=this._mapName,a=this._geoJSON,n;try{n=a?kt(a,e):[]}catch(i){throw new Error(`Invalid geoJson format
3
3
  `+i.message)}return za(t,n),x(n,function(i){var o=i.name;Ua(t,i),Xa(t,i);var s=this._specialAreas&&this._specialAreas[o];s&&i.transformTo(s.left,s.top,s.width,s.height)},this),n},r.prototype.getMapForUser=function(){return{geoJson:this._geoJSON,geoJSON:this._geoJSON,specialAreas:this._specialAreas}},r})();function Ia(r){for(var e,t=0;t<r.length;t++){var a=r[t].getBoundingRect();e=e||a.clone(),e.union(a)}return e}function Na(r){return Q(r)?typeof JSON<"u"&&JSON.parse?JSON.parse(r):new Function("return ("+r+");")():r}var X=m();const L={registerMap:function(r,e,t){if(e.svg){var a=new Va(r,e.svg);X.set(r,a)}else{var n=e.geoJson||e.geoJSON;n&&!e.features?t=e.specialAreas:n=e;var a=new ja(r,n,t);X.set(r,a)}},getGeoResource:function(r){return X.get(r)},getMapForUser:function(r){var e=X.get(r);return e&&e.type==="geoJSON"&&e.getMapForUser()},load:function(r,e,t){var a=X.get(r);if(a)return a.load(e,t)}};var Za={geoJSON:{aspectScale:.75,invertLongitute:!0},geoSVG:{aspectScale:1,invertLongitute:!1}},vt=["lng","lat"],ce=(function(r){M(e,r);function e(t,a,n){var i=r.call(this,t)||this;i.dimensions=vt,i.type="geo",i._nameCoordMap=m(),i.map=a;var o=n.projection,s=L.load(a,n.nameMap,n.nameProperty),l=L.getGeoResource(a);i.resourceType=l?l.type:null;var u=i.regions=s.regions,f=Za[l.type];i._regionsMap=s.regionsMap,i.regions=s.regions,i.projection=o;var p;if(o)for(var h=0;h<u.length;h++){var c=u[h].getBoundingRect(o);p=p||c.clone(),p.union(c)}else p=s.boundingRect;return i.setBoundingRect(p.x,p.y,p.width,p.height),i.aspectScale=o?1:Wt(n.aspectScale,f.aspectScale),i._invertLongitute=o?!1:f.invertLongitute,i}return e.prototype._transformTo=function(t,a,n,i){var o=this.getBoundingRect(),s=this._invertLongitute;o=o.clone(),s&&(o.y=-o.y-o.height);var l=this._rawTransformable;l.transform=o.calculateTransform(new ee(t,a,n,i));var u=l.parent;l.parent=null,l.decomposeTransform(),l.parent=u,s&&(l.scaleY=-l.scaleY),this._updateTransform()},e.prototype.getRegion=function(t){return this._regionsMap.get(t)},e.prototype.getRegionByCoord=function(t){for(var a=this.regions,n=0;n<a.length;n++){var i=a[n];if(i.type==="geoJSON"&&i.contain(t))return a[n]}},e.prototype.addGeoCoord=function(t,a){this._nameCoordMap.set(t,a)},e.prototype.getGeoCoord=function(t){var a=this._regionsMap.get(t);return this._nameCoordMap.get(t)||a&&a.getCenter()},e.prototype.dataToPoint=function(t,a,n){if(Q(t)&&(t=this.getGeoCoord(t)),t){var i=this.projection;return i&&(t=i.project(t)),t&&this.projectedToPoint(t,a,n)}},e.prototype.pointToData=function(t){var a=this.projection;return a&&(t=a.unproject(t)),t&&this.pointToProjected(t)},e.prototype.pointToProjected=function(t){return r.prototype.pointToData.call(this,t)},e.prototype.projectedToPoint=function(t,a,n){return r.prototype.dataToPoint.call(this,t,a,n)},e.prototype.convertToPixel=function(t,a,n){var i=ke(a);return i===this?i.dataToPoint(n):null},e.prototype.convertFromPixel=function(t,a,n){var i=ke(a);return i===this?i.pointToData(n):null},e})(ft);at(ce,ft);function ke(r){var e=r.geoModel,t=r.seriesModel;return e?e.coordinateSystem:t?t.coordinateSystem||(t.getReferringComponents("geo",rt).models[0]||{}).coordinateSystem:null}function We(r,e){var t=r.get("boundingCoords");if(t!=null){var a=t[0],n=t[1];if(isFinite(a[0])&&isFinite(a[1])&&isFinite(n[0])&&isFinite(n[1])){var i=this.projection;if(i){var o=a[0],s=a[1],l=n[0],u=n[1];a=[1/0,1/0],n=[-1/0,-1/0];var f=function(I,U,P,R){for(var E=P-I,H=R-U,ae=0;ae<=100;ae++){var we=ae/100,be=i.project([I+E*we,U+H*we]);Ot(a,a,be),zt(n,n,be)}};f(o,s,l,s),f(l,s,l,u),f(l,u,o,u),f(o,u,l,s)}this.setBoundingRect(a[0],a[1],n[0]-a[0],n[1]-a[1])}}var p=this.getBoundingRect(),h=r.get("layoutCenter"),c=r.get("layoutSize"),v=e.getWidth(),g=e.getHeight(),y=p.width/p.height*this.aspectScale,S=!1,w,G;h&&c&&(w=[re(h[0],v),re(h[1],g)],G=re(c,Math.min(v,g)),!isNaN(w[0])&&!isNaN(w[1])&&!isNaN(G)&&(S=!0));var _;if(S)_={},y>1?(_.width=G,_.height=G/y):(_.height=G,_.width=G*y),_.y=w[1]-_.height/2,_.x=w[0]-_.width/2;else{var Y=r.getBoxLayoutParams();Y.aspect=y,_=nt(Y,{width:v,height:g})}this.setViewRect(_.x,_.y,_.width,_.height),this.setCenter(r.get("center"),e),this.setZoom(r.get("zoom"))}function qa(r,e){x(e.get("geoCoord"),function(t,a){r.addGeoCoord(a,t)})}var Ka=(function(){function r(){this.dimensions=vt}return r.prototype.create=function(e,t){var a=[];function n(o){return{nameProperty:o.get("nameProperty"),aspectScale:o.get("aspectScale"),projection:o.get("projection")}}e.eachComponent("geo",function(o,s){var l=o.get("map"),u=new ce(l+s,l,F({nameMap:o.get("nameMap")},n(o)));u.zoomLimit=o.get("scaleLimit"),a.push(u),o.coordinateSystem=u,u.model=o,u.resize=We,u.resize(o,t)}),e.eachSeries(function(o){var s=o.get("coordinateSystem");if(s==="geo"){var l=o.get("geoIndex")||0;o.coordinateSystem=a[l]}});var i={};return e.eachSeriesByType("map",function(o){if(!o.getHostGeoModel()){var s=o.getMapType();i[s]=i[s]||[],i[s].push(o)}}),x(i,function(o,s){var l=O(o,function(f){return f.get("nameMap")}),u=new ce(s,s,F({nameMap:Vt(l)},n(o[0])));u.zoomLimit=Bt.apply(null,O(o,function(f){return f.get("scaleLimit")})),a.push(u),u.resize=We,u.resize(o[0],t),x(o,function(f){f.coordinateSystem=u,qa(u,f)})}),a},r.prototype.getFilledRegions=function(e,t,a,n){for(var i=(e||[]).slice(),o=m(),s=0;s<i.length;s++)o.set(i[s].name,i[s]);var l=L.load(t,a,n);return x(l.regions,function(u){var f=u.name,p=o.get(f),h=u.properties&&u.properties.echartsStyle;p||(p={name:f},i.push(p)),h&&ve(p,h)}),i},r})(),dt=new Ka,$a=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a,n){var i=L.getGeoResource(t.map);if(i&&i.type==="geoJSON"){var o=t.itemStyle=t.itemStyle||{};"color"in o||(o.color="#eee")}this.mergeDefaultAndTheme(t,n),Yt(t,"label",["show"])},e.prototype.optionUpdated=function(){var t=this,a=this.option;a.regions=dt.getFilledRegions(a.regions,a.map,a.nameMap,a.nameProperty);var n={};this._optionModelMap=it(a.regions||[],function(i,o){var s=o.name;return s&&(i.set(s,new Ee(o,t,t.ecModel)),o.selected&&(n[s]=!0)),i},m()),a.selectedMap||(a.selectedMap=n)},e.prototype.getRegionModel=function(t){return this._optionModelMap.get(t)||new Ee(null,this,this.ecModel)},e.prototype.getFormattedLabel=function(t,a){var n=this.getRegionModel(t),i=a==="normal"?n.get(["label","formatter"]):n.get(["emphasis","label","formatter"]),o={name:t};if(Ut(i))return o.status=a,i(o);if(Q(i))return i.replace("{a}",t??"")},e.prototype.setZoom=function(t){this.option.zoom=t},e.prototype.setCenter=function(t){this.option.center=t},e.prototype.select=function(t){var a=this.option,n=a.selectedMode;if(n){n!=="multiple"&&(a.selectedMap=null);var i=a.selectedMap||(a.selectedMap={});i[t]=!0}},e.prototype.unSelect=function(t){var a=this.option.selectedMap;a&&(a[t]=!1)},e.prototype.toggleSelected=function(t){this[this.isSelected(t)?"unSelect":"select"](t)},e.prototype.isSelected=function(t){var a=this.option.selectedMap;return!!(a&&a[t])},e.type="geo",e.layoutMode="box",e.defaultOption={z:0,show:!0,left:"center",top:"center",aspectScale:null,silent:!1,map:"",boundingCoords:null,center:null,zoom:1,scaleLimit:null,label:{show:!1,color:"#000"},itemStyle:{borderWidth:.5,borderColor:"#444"},emphasis:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},select:{label:{show:!0,color:"rgb(100,0,0)"},itemStyle:{color:"rgba(255,215,0,0.8)"}},regions:[]},e})(de),_e=["rect","circle","line","ellipse","polygon","polyline","path"],Qa=m(_e),er=m(_e.concat(["g"])),tr=m(_e.concat(["g"])),gt=ge();function N(r){var e=r.getItemStyle(),t=r.get("areaColor");return t!=null&&(e.fill=t),e}function Ve(r){var e=r.style;e&&(e.stroke=e.stroke||e.fill,e.fill=null)}var ar=(function(){function r(e){var t=new C;this.uid=Ht("ec_map_draw"),this._controller=new ba(e.getZr()),this._controllerHost={target:t},this.group=t,t.add(this._regionsGroup=new C),t.add(this._svgGroup=new C)}return r.prototype.draw=function(e,t,a,n,i){var o=e.mainType==="geo",s=e.getData&&e.getData();o&&t.eachComponent({mainType:"series",subType:"map"},function(S){!s&&S.getHostGeoModel()===e&&(s=S.getData())});var l=e.coordinateSystem,u=this._regionsGroup,f=this.group,p=l.getTransformInfo(),h=p.raw,c=p.roam,v=!u.childAt(0)||i;v?(f.x=c.x,f.y=c.y,f.scaleX=c.scaleX,f.scaleY=c.scaleY,f.dirty()):Xt(f,c,e);var g=s&&s.getVisual("visualMeta")&&s.getVisual("visualMeta").length>0,y={api:a,geo:l,mapOrGeoModel:e,data:s,isVisualEncodedByVisualMap:g,isGeo:o,transformInfoRaw:h};l.resourceType==="geoJSON"?this._buildGeoJSON(y):l.resourceType==="geoSVG"&&this._buildSVG(y),this._updateController(e,t,a),this._updateMapSelectHandler(e,u,a,n)},r.prototype._buildGeoJSON=function(e){var t=this._regionsGroupByName=m(),a=m(),n=this._regionsGroup,i=e.transformInfoRaw,o=e.mapOrGeoModel,s=e.data,l=e.geo.projection,u=l&&l.stream;function f(c,v){return v&&(c=v(c)),c&&[c[0]*i.scaleX+i.x,c[1]*i.scaleY+i.y]}function p(c){for(var v=[],g=!u&&l&&l.project,y=0;y<c.length;++y){var S=f(c[y],g);S&&v.push(S)}return v}function h(c){return{shape:{points:p(c)}}}n.removeAll(),x(e.geo.regions,function(c){var v=c.name,g=t.get(v),y=a.get(v)||{},S=y.dataIdx,w=y.regionModel;if(!g){g=t.set(v,new C),n.add(g),S=s?s.indexOfName(v):null,w=e.isGeo?o.getRegionModel(v):s?s.getItemModel(S):null;var G=w.get("silent",!0);G!=null&&(g.silent=G),a.set(v,{dataIdx:S,regionModel:w})}var _=[],Y=[];x(c.geometries,function(P){if(P.type==="polygon"){var R=[P.exterior].concat(P.interiors||[]);u&&(R=He(R,u)),x(R,function(H){_.push(new $e(h(H)))})}else{var E=P.points;u&&(E=He(E,u,!0)),x(E,function(H){Y.push(new Ke(h(H)))})}});var I=f(c.getCenter(),l&&l.project);function U(P,R){if(P.length){var E=new Jt({culling:!0,segmentIgnoreThreshold:1,shape:{paths:P}});g.add(E),Be(e,E,S,w),Oe(e,E,v,w,o,S,I),R&&(Ve(E),x(E.states,Ve))}}U(_),U(Y,!0)}),t.each(function(c,v){var g=a.get(v),y=g.dataIdx,S=g.regionModel;ze(e,c,v,S,o,y),Ye(e,c,v,S,o),Ue(e,c,v,S,o)},this)},r.prototype._buildSVG=function(e){var t=e.geo.map,a=e.transformInfoRaw;this._svgGroup.x=a.x,this._svgGroup.y=a.y,this._svgGroup.scaleX=a.scaleX,this._svgGroup.scaleY=a.scaleY,this._svgResourceChanged(t)&&(this._freeSVG(),this._useSVG(t));var n=this._svgDispatcherMap=m(),i=!1;x(this._svgGraphicRecord.named,function(o){var s=o.name,l=e.mapOrGeoModel,u=e.data,f=o.svgNodeTagLower,p=o.el,h=u?u.indexOfName(s):null,c=l.getRegionModel(s);Qa.get(f)!=null&&p instanceof ue&&Be(e,p,h,c),p instanceof ue&&(p.culling=!0);var v=c.get("silent",!0);if(v!=null&&(p.silent=v),p.z2EmphasisLift=0,!o.namedFrom&&(tr.get(f)!=null&&Oe(e,p,s,c,l,h,null),ze(e,p,s,c,l,h),Ye(e,p,s,c,l),er.get(f)!=null)){var g=Ue(e,p,s,c,l);g==="self"&&(i=!0);var y=n.get(s)||n.set(s,[]);y.push(p)}},this),this._enableBlurEntireSVG(i,e)},r.prototype._enableBlurEntireSVG=function(e,t){if(e&&t.isGeo){var a=t.mapOrGeoModel.getModel(["blur","itemStyle"]).getItemStyle(),n=a.opacity;this._svgGraphicRecord.root.traverse(function(i){if(!i.isGroup){ot(i);var o=i.ensureState("blur").style||{};o.opacity==null&&n!=null&&(o.opacity=n),i.ensureState("emphasis")}})}},r.prototype.remove=function(){this._regionsGroup.removeAll(),this._regionsGroupByName=null,this._svgGroup.removeAll(),this._freeSVG(),this._controller.dispose(),this._controllerHost=null},r.prototype.findHighDownDispatchers=function(e,t){if(e==null)return[];var a=t.coordinateSystem;if(a.resourceType==="geoJSON"){var n=this._regionsGroupByName;if(n){var i=n.get(e);return i?[i]:[]}}else if(a.resourceType==="geoSVG")return this._svgDispatcherMap&&this._svgDispatcherMap.get(e)||[]},r.prototype._svgResourceChanged=function(e){return this._svgMapName!==e},r.prototype._useSVG=function(e){var t=L.getGeoResource(e);if(t&&t.type==="geoSVG"){var a=t.useGraphic(this.uid);this._svgGroup.add(a.root),this._svgGraphicRecord=a,this._svgMapName=e}},r.prototype._freeSVG=function(){var e=this._svgMapName;if(e!=null){var t=L.getGeoResource(e);t&&t.type==="geoSVG"&&t.freeGraphic(this.uid),this._svgGraphicRecord=null,this._svgDispatcherMap=null,this._svgGroup.removeAll(),this._svgMapName=null}},r.prototype._updateController=function(e,t,a){var n=e.coordinateSystem,i=this._controller,o=this._controllerHost;o.zoomLimit=e.get("scaleLimit"),o.zoom=n.getZoom(),i.enable(e.get("roam")||!1);var s=e.mainType;function l(){var u={type:"geoRoam",componentType:s};return u[s+"Id"]=e.id,u}i.off("pan").on("pan",function(u){this._mouseDownFlag=!1,Aa(o,u.dx,u.dy),a.dispatchAction(F(l(),{dx:u.dx,dy:u.dy,animation:{duration:0}}))},this),i.off("zoom").on("zoom",function(u){this._mouseDownFlag=!1,Ea(o,u.scale,u.originX,u.originY),a.dispatchAction(F(l(),{totalZoom:o.zoom,zoom:u.scale,originX:u.originX,originY:u.originY,animation:{duration:0}}))},this),i.setPointerChecker(function(u,f,p){return n.containPoint([f,p])&&!jt(u,a,e)})},r.prototype.resetForLabelLayout=function(){this.group.traverse(function(e){var t=e.getTextContent();t&&(t.ignore=gt(t).ignore)})},r.prototype._updateMapSelectHandler=function(e,t,a,n){var i=this;t.off("mousedown"),t.off("click"),e.get("selectedMode")&&(t.on("mousedown",function(){i._mouseDownFlag=!0}),t.on("click",function(o){i._mouseDownFlag&&(i._mouseDownFlag=!1)}))},r})();function Be(r,e,t,a){var n=a.getModel("itemStyle"),i=a.getModel(["emphasis","itemStyle"]),o=a.getModel(["blur","itemStyle"]),s=a.getModel(["select","itemStyle"]),l=N(n),u=N(i),f=N(s),p=N(o),h=r.data;if(h){var c=h.getItemVisual(t,"style"),v=h.getItemVisual(t,"decal");r.isVisualEncodedByVisualMap&&c.fill&&(l.fill=c.fill),v&&(l.decal=It(v,r.api))}e.setStyle(l),e.style.strokeNoScale=!0,e.ensureState("emphasis").style=u,e.ensureState("select").style=f,e.ensureState("blur").style=p,ot(e)}function Oe(r,e,t,a,n,i,o){var s=r.data,l=r.isGeo,u=s&&isNaN(s.get(s.mapDimension("value"),i)),f=s&&s.getItemLayout(i);if(l||u||f&&f.showLabel){var p=l?t:i,h=void 0;(!s||i>=0)&&(h=n);var c=o?{normal:{align:"center",verticalAlign:"middle"}}:null;Nt(e,Zt(a),{labelFetcher:h,labelDataIndex:p,defaultText:t},c);var v=e.getTextContent();if(v&&(gt(v).ignore=v.ignore,e.textConfig&&o)){var g=e.getBoundingRect().clone();e.textConfig.layoutRect=g,e.textConfig.position=[(o[0]-g.x)/g.width*100+"%",(o[1]-g.y)/g.height*100+"%"]}e.disableLabelAnimation=!0}else e.removeTextContent(),e.removeTextConfig(),e.disableLabelAnimation=null}function ze(r,e,t,a,n,i){r.data?r.data.setItemGraphicEl(i,e):fe(e).eventData={componentType:"geo",componentIndex:n.componentIndex,geoIndex:n.componentIndex,name:t,region:a&&a.option||{}}}function Ye(r,e,t,a,n){r.data||qt({el:e,componentModel:n,itemName:t,itemTooltipOption:a.get("tooltip")})}function Ue(r,e,t,a,n){e.highDownSilentOnTouch=!!n.get("selectedMode");var i=a.getModel("emphasis"),o=i.get("focus");return Kt(e,o,i.get("blurScope"),i.get("disabled")),r.isGeo&&$t(e,n,t),o}function He(r,e,t){var a=[],n;function i(){n=[]}function o(){n.length&&(a.push(n),n=[])}var s=e({polygonStart:i,polygonEnd:o,lineStart:i,lineEnd:o,point:function(l,u){isFinite(l)&&isFinite(u)&&n.push([l,u])},sphere:function(){}});return!t&&s.polygonStart(),x(r,function(l){s.lineStart();for(var u=0;u<l.length;u++)s.point(l[u][0],l[u][1]);s.lineEnd()}),!t&&s.polygonEnd(),a}var rr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.focusBlurEnabled=!0,t}return e.prototype.init=function(t,a){this._api=a},e.prototype.render=function(t,a,n,i){if(this._model=t,!t.get("show")){this._mapDraw&&this._mapDraw.remove(),this._mapDraw=null;return}this._mapDraw||(this._mapDraw=new ar(n));var o=this._mapDraw;o.draw(t,a,n,this,i),o.group.on("click",this._handleRegionClick,this),o.group.silent=t.get("silent"),this.group.add(o.group),this.updateSelectStatus(t,a,n)},e.prototype._handleRegionClick=function(t){var a;Qt(t.target,function(n){return(a=fe(n).eventData)!=null},!0),a&&this._api.dispatchAction({type:"geoToggleSelect",geoId:this._model.id,name:a.name})},e.prototype.updateSelectStatus=function(t,a,n){var i=this;this._mapDraw.group.traverse(function(o){var s=fe(o).eventData;if(s)return i._model.isSelected(s.name)?n.enterSelect(o):n.leaveSelect(o),!0})},e.prototype.findHighDownDispatchers=function(t){return this._mapDraw&&this._mapDraw.findHighDownDispatchers(t,this._model)},e.prototype.dispose=function(){this._mapDraw&&this._mapDraw.remove()},e.type="geo",e})(ye);function nr(r,e,t){L.registerMap(r,e,t)}function Ur(r){r.registerCoordinateSystem("geo",dt),r.registerComponentModel($a),r.registerComponentView(rr),r.registerImpl("registerMap",nr),r.registerImpl("getMap",function(t){return L.getMapForUser(t)});function e(t,a){a.update="geo:updateSelectStatus",r.registerAction(a,function(n,i){var o={},s=[];return i.eachComponent({mainType:"geo",query:n},function(l){l[t](n.name);var u=l.coordinateSystem;x(u.regions,function(p){o[p.name]=l.isSelected(p.name)||!1});var f=[];x(o,function(p,h){o[h]&&f.push(h)}),s.push({geoIndex:l.componentIndex,name:f})}),{selected:o,allSelected:s,name:n.name}})}e("toggleSelected",{type:"geoToggleSelect",event:"geoselectchanged"}),e("select",{type:"geoSelect",event:"geoselected"}),e("unSelect",{type:"geoUnSelect",event:"geounselected"}),r.registerAction({type:"geoRoam",event:"geoRoam",update:"updateTransform"},function(t,a,n){var i=t.componentType||"series";a.eachComponent({mainType:i,query:t},function(o){var s=o.coordinateSystem;if(s.type==="geo"){var l=Ca(s,t,o.get("scaleLimit"),n);o.setCenter&&o.setCenter(l.center),o.setZoom&&o.setZoom(l.zoom),i==="series"&&x(o.seriesGroup,function(u){u.setCenter(l.center),u.setZoom(l.zoom)})}})})}function ir(r){or(r),sr(r)}function or(r){if(!r.parallel){var e=!1;x(r.series,function(t){t&&t.type==="parallel"&&(e=!0)}),e&&(r.parallel=[{}])}}function sr(r){var e=J(r.parallelAxis);x(e,function(t){if(ea(t)){var a=t.parallelIndex||0,n=J(r.parallel)[a];n&&n.parallelAxisDefault&&ve(t,n.parallelAxisDefault,!1)}})}var lr=5,ur=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.render=function(t,a,n){this._model=t,this._api=n,this._handlers||(this._handlers={},x(fr,function(i,o){n.getZr().on(o,this._handlers[o]=xe(i,this))},this)),ta(this,"_throttledDispatchExpand",t.get("axisExpandRate"),"fixRate")},e.prototype.dispose=function(t,a){aa(this,"_throttledDispatchExpand"),x(this._handlers,function(n,i){a.getZr().off(i,n)}),this._handlers=null},e.prototype._throttledDispatchExpand=function(t){this._dispatchExpand(t)},e.prototype._dispatchExpand=function(t){t&&this._api.dispatchAction(F({type:"parallelAxisExpand"},t))},e.type="parallel",e})(ye),fr={mousedown:function(r){oe(this,"click")&&(this._mouseDownPoint=[r.offsetX,r.offsetY])},mouseup:function(r){var e=this._mouseDownPoint;if(oe(this,"click")&&e){var t=[r.offsetX,r.offsetY],a=Math.pow(e[0]-t[0],2)+Math.pow(e[1]-t[1],2);if(a>lr)return;var n=this._model.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]);n.behavior!=="none"&&this._dispatchExpand({axisExpandWindow:n.axisExpandWindow})}this._mouseDownPoint=null},mousemove:function(r){if(!(this._mouseDownPoint||!oe(this,"mousemove"))){var e=this._model,t=e.coordinateSystem.getSlidedAxisExpandWindow([r.offsetX,r.offsetY]),a=t.behavior;a==="jump"&&this._throttledDispatchExpand.debounceNextCall(e.get("axisExpandDebounce")),this._throttledDispatchExpand(a==="none"?null:{axisExpandWindow:t.axisExpandWindow,animation:a==="jump"?null:{duration:0}})}}};function oe(r,e){var t=r._model;return t.get("axisExpandable")&&t.get("axisExpandTriggerOn")===e}var pr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(){r.prototype.init.apply(this,arguments),this.mergeOption({})},e.prototype.mergeOption=function(t){var a=this.option;t&&ve(a,t,!0),this._initDimensions()},e.prototype.contains=function(t,a){var n=t.get("parallelIndex");return n!=null&&a.getComponent("parallel",n)===this},e.prototype.setAxisExpand=function(t){x(["axisExpandable","axisExpandCenter","axisExpandCount","axisExpandWidth","axisExpandWindow"],function(a){t.hasOwnProperty(a)&&(this.option[a]=t[a])},this)},e.prototype._initDimensions=function(){var t=this.dimensions=[],a=this.parallelAxisIndex=[],n=st(this.ecModel.queryComponents({mainType:"parallelAxis"}),function(i){return(i.get("parallelIndex")||0)===this.componentIndex},this);x(n,function(i){t.push("dim"+i.get("dim")),a.push(i.componentIndex)})},e.type="parallel",e.dependencies=["parallelAxis"],e.layoutMode="box",e.defaultOption={z:0,left:80,top:60,right:80,bottom:60,layout:"horizontal",axisExpandable:!1,axisExpandCenter:null,axisExpandCount:0,axisExpandWidth:50,axisExpandRate:17,axisExpandDebounce:50,axisExpandSlideTriggerArea:[-.15,.05,.4],axisExpandTriggerOn:"click",parallelAxisDefault:null},e})(de),cr=(function(r){M(e,r);function e(t,a,n,i,o){var s=r.call(this,t,a,n)||this;return s.type=i||"value",s.axisIndex=o,s}return e.prototype.isHorizontal=function(){return this.coordinateSystem.getModel().get("layout")!=="horizontal"},e})(ra),se=x,yt=Math.min,xt=Math.max,Xe=Math.floor,hr=Math.ceil,Je=la,vr=Math.PI,dr=(function(){function r(e,t,a){this.type="parallel",this._axesMap=m(),this._axesLayout={},this.dimensions=e.dimensions,this._model=e,this._init(e,t,a)}return r.prototype._init=function(e,t,a){var n=e.dimensions,i=e.parallelAxisIndex;se(n,function(o,s){var l=i[s],u=t.getComponent("parallelAxis",l),f=this._axesMap.set(o,new cr(o,na(u),[0,0],u.get("type"),l)),p=f.type==="category";f.onBand=p&&u.get("boundaryGap"),f.inverse=u.get("inverse"),u.axis=f,f.model=u,f.coordinateSystem=u.coordinateSystem=this},this)},r.prototype.update=function(e,t){this._updateAxesFromSeries(this._model,e)},r.prototype.containPoint=function(e){var t=this._makeLayoutInfo(),a=t.axisBase,n=t.layoutBase,i=t.pixelDimIndex,o=e[1-i],s=e[i];return o>=a&&o<=a+t.axisLength&&s>=n&&s<=n+t.layoutLength},r.prototype.getModel=function(){return this._model},r.prototype._updateAxesFromSeries=function(e,t){t.eachSeries(function(a){if(e.contains(a,t)){var n=a.getData();se(this.dimensions,function(i){var o=this._axesMap.get(i);o.scale.unionExtentFromData(n,n.mapDimension(i)),ia(o.scale,o.model)},this)}},this)},r.prototype.resize=function(e,t){this._rect=nt(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()}),this._layoutAxes()},r.prototype.getRect=function(){return this._rect},r.prototype._makeLayoutInfo=function(){var e=this._model,t=this._rect,a=["x","y"],n=["width","height"],i=e.get("layout"),o=i==="horizontal"?0:1,s=t[n[o]],l=[0,s],u=this.dimensions.length,f=Z(e.get("axisExpandWidth"),l),p=Z(e.get("axisExpandCount")||0,[0,u]),h=e.get("axisExpandable")&&u>3&&u>p&&p>1&&f>0&&s>0,c=e.get("axisExpandWindow"),v;if(c)v=Z(c[1]-c[0],l),c[1]=c[0]+v;else{v=Z(f*(p-1),l);var g=e.get("axisExpandCenter")||Xe(u/2);c=[f*g-v/2],c[1]=c[0]+v}var y=(s-v)/(u-p);y<3&&(y=0);var S=[Xe(Je(c[0]/f,1))+1,hr(Je(c[1]/f,1))-1],w=y/f*c[0];return{layout:i,pixelDimIndex:o,layoutBase:t[a[o]],layoutLength:s,axisBase:t[a[1-o]],axisLength:t[n[1-o]],axisExpandable:h,axisExpandWidth:f,axisCollapseWidth:y,axisExpandWindow:c,axisCount:u,winInnerIndices:S,axisExpandWindow0Pos:w}},r.prototype._layoutAxes=function(){var e=this._rect,t=this._axesMap,a=this.dimensions,n=this._makeLayoutInfo(),i=n.layout;t.each(function(o){var s=[0,n.axisLength],l=o.inverse?1:0;o.setExtent(s[l],s[1-l])}),se(a,function(o,s){var l=(n.axisExpandable?yr:gr)(s,n),u={horizontal:{x:l.position,y:n.axisLength},vertical:{x:0,y:l.position}},f={horizontal:vr/2,vertical:0},p=[u[i].x+e.x,u[i].y+e.y],h=f[i],c=tt();Qe(c,c,h),et(c,c,p),this._axesLayout[o]={position:p,rotation:h,transform:c,axisNameAvailableWidth:l.axisNameAvailableWidth,axisLabelShow:l.axisLabelShow,nameTruncateMaxWidth:l.nameTruncateMaxWidth,tickDirection:1,labelDirection:1}},this)},r.prototype.getAxis=function(e){return this._axesMap.get(e)},r.prototype.dataToPoint=function(e,t){return this.axisCoordToPoint(this._axesMap.get(t).dataToCoord(e),t)},r.prototype.eachActiveState=function(e,t,a,n){a==null&&(a=0),n==null&&(n=e.count());var i=this._axesMap,o=this.dimensions,s=[],l=[];x(o,function(y){s.push(e.mapDimension(y)),l.push(i.get(y).model)});for(var u=this.hasAxisBrushed(),f=a;f<n;f++){var p=void 0;if(!u)p="normal";else{p="active";for(var h=e.getValues(s,f),c=0,v=o.length;c<v;c++){var g=l[c].getActiveState(h[c]);if(g==="inactive"){p="inactive";break}}}t(p,f)}},r.prototype.hasAxisBrushed=function(){for(var e=this.dimensions,t=this._axesMap,a=!1,n=0,i=e.length;n<i;n++)t.get(e[n]).model.getActiveState()!=="normal"&&(a=!0);return a},r.prototype.axisCoordToPoint=function(e,t){var a=this._axesLayout[t];return oa([e,0],a.transform)},r.prototype.getAxisLayout=function(e){return lt(this._axesLayout[e])},r.prototype.getSlidedAxisExpandWindow=function(e){var t=this._makeLayoutInfo(),a=t.pixelDimIndex,n=t.axisExpandWindow.slice(),i=n[1]-n[0],o=[0,t.axisExpandWidth*(t.axisCount-1)];if(!this.containPoint(e))return{behavior:"none",axisExpandWindow:n};var s=e[a]-t.layoutBase-t.axisExpandWindow0Pos,l,u="slide",f=t.axisCollapseWidth,p=this._model.get("axisExpandSlideTriggerArea"),h=p[0]!=null;if(f)h&&f&&s<i*p[0]?(u="jump",l=s-i*p[2]):h&&f&&s>i*(1-p[0])?(u="jump",l=s-i*(1-p[2])):(l=s-i*p[1])>=0&&(l=s-i*(1-p[1]))<=0&&(l=0),l*=t.axisExpandWidth/f,l?sa(l,n,o,"all"):u="none";else{var c=n[1]-n[0],v=o[1]*s/c;n=[xt(0,v-c/2)],n[1]=yt(o[1],n[0]+c),n[0]=n[1]-c}return{axisExpandWindow:n,behavior:u}},r})();function Z(r,e){return yt(xt(r,e[0]),e[1])}function gr(r,e){var t=e.layoutLength/(e.axisCount-1);return{position:t*r,axisNameAvailableWidth:t,axisLabelShow:!0}}function yr(r,e){var t=e.layoutLength,a=e.axisExpandWidth,n=e.axisCount,i=e.axisCollapseWidth,o=e.winInnerIndices,s,l=i,u=!1,f;return r<o[0]?(s=r*i,f=i):r<=o[1]?(s=e.axisExpandWindow0Pos+r*a-e.axisExpandWindow[0],l=a,u=!0):(s=t-(n-1-r)*i,f=i),{position:s,axisNameAvailableWidth:l,axisLabelShow:u,nameTruncateMaxWidth:f}}function xr(r,e){var t=[];return r.eachComponent("parallel",function(a,n){var i=new dr(a,r,e);i.name="parallel_"+n,i.resize(a,e),a.coordinateSystem=i,i.model=a,t.push(i)}),r.eachSeries(function(a){if(a.get("coordinateSystem")==="parallel"){var n=a.getReferringComponents("parallel",rt).models[0];a.coordinateSystem=n.coordinateSystem}}),t}var Sr={create:xr},he=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t.activeIntervals=[],t}return e.prototype.getAreaSelectStyle=function(){return ua([["fill","color"],["lineWidth","borderWidth"],["stroke","borderColor"],["width","width"],["opacity","opacity"]])(this.getModel("areaSelectStyle"))},e.prototype.setActiveIntervals=function(t){var a=this.activeIntervals=lt(t);if(a)for(var n=a.length-1;n>=0;n--)fa(a[n])},e.prototype.getActiveState=function(t){var a=this.activeIntervals;if(!a.length)return"normal";if(t==null||isNaN(+t))return"inactive";if(a.length===1){var n=a[0];if(n[0]<=t&&t<=n[1])return"active"}else for(var i=0,o=a.length;i<o;i++)if(a[i][0]<=t&&t<=a[i][1])return"active";return"inactive"},e})(de);at(he,pa);var _r=["axisLine","axisTickLabel","axisName"],mr=(function(r){M(e,r);function e(){var t=r!==null&&r.apply(this,arguments)||this;return t.type=e.type,t}return e.prototype.init=function(t,a){r.prototype.init.apply(this,arguments),(this._brushController=new ca(a.getZr())).on("brush",xe(this._onBrush,this))},e.prototype.render=function(t,a,n,i){if(!wr(t,a,i)){this.axisModel=t,this.api=n,this.group.removeAll();var o=this._axisGroup;if(this._axisGroup=new C,this.group.add(this._axisGroup),!!t.get("show")){var s=Ar(t,a),l=s.coordinateSystem,u=t.getAreaSelectStyle(),f=u.width,p=t.axis.dim,h=l.getAxisLayout(p),c=F({strokeContainThreshold:f},h),v=new ha(t,c);x(_r,v.add,v),this._axisGroup.add(v.getGroup()),this._refreshBrushController(c,u,t,s,f,n),va(o,this._axisGroup,t)}}},e.prototype._refreshBrushController=function(t,a,n,i,o,s){var l=n.axis.getExtent(),u=l[1]-l[0],f=Math.min(30,Math.abs(u)*.1),p=ee.create({x:l[0],y:-o/2,width:u,height:o});p.x-=f,p.width+=2*f,this._brushController.mount({enableGlobalPan:!0,rotation:t.rotation,x:t.position[0],y:t.position[1]}).setPanels([{panelId:"pl",clipPath:ya(p),isTargetByCursor:ga(p,s,i),getLinearBrushOtherExtent:da(p,0)}]).enableBrush({brushType:"lineX",brushStyle:a,removeOnClick:!0}).updateCovers(br(n))},e.prototype._onBrush=function(t){var a=t.areas,n=this.axisModel,i=n.axis,o=O(a,function(s){return[i.coordToData(s.range[0],!0),i.coordToData(s.range[1],!0)]});(!n.option.realtime===t.isEnd||t.removeOnClick)&&this.api.dispatchAction({type:"axisAreaSelect",parallelAxisId:n.id,intervals:o})},e.prototype.dispose=function(){this._brushController.dispose()},e.type="parallelAxis",e})(ye);function wr(r,e,t){return t&&t.type==="axisAreaSelect"&&e.findComponents({mainType:"parallelAxis",query:t})[0]===r}function br(r){var e=r.axis;return O(r.activeIntervals,function(t){return{brushType:"lineX",panelId:"pl",range:[e.dataToCoord(t[0],!0),e.dataToCoord(t[1],!0)]}})}function Ar(r,e){return e.getComponent("parallel",r.get("parallelIndex"))}var Er={type:"axisAreaSelect",event:"axisAreaSelected"};function Cr(r){r.registerAction(Er,function(e,t){t.eachComponent({mainType:"parallelAxis",query:e},function(a){a.axis.model.setActiveIntervals(e.intervals)})}),r.registerAction("parallelAxisExpand",function(e,t){t.eachComponent({mainType:"parallel",query:e},function(a){a.setAxisExpand(e)})})}var Tr={type:"value",areaSelectStyle:{width:20,borderWidth:1,borderColor:"rgba(160,197,232)",color:"rgba(160,197,232)",opacity:.3},realtime:!0,z:10};function Hr(r){r.registerComponentView(ur),r.registerComponentModel(pr),r.registerCoordinateSystem("parallel",Sr),r.registerPreprocessor(ir),r.registerComponentModel(he),r.registerComponentView(mr),xa(r,"parallel",he,Tr),Cr(r)}function Xr(r,e,t,a){return r&&(r.legacy||r.legacy!==!1&&!t&&!a&&e!=="tspan"&&(e==="text"||d(r,"text")))}function Jr(r,e,t){var a=r,n,i,o;if(e==="text")o=a;else{o={},d(a,"text")&&(o.text=a.text),d(a,"rich")&&(o.rich=a.rich),d(a,"textFill")&&(o.fill=a.textFill),d(a,"textStroke")&&(o.stroke=a.textStroke),d(a,"fontFamily")&&(o.fontFamily=a.fontFamily),d(a,"fontSize")&&(o.fontSize=a.fontSize),d(a,"fontStyle")&&(o.fontStyle=a.fontStyle),d(a,"fontWeight")&&(o.fontWeight=a.fontWeight),i={type:"text",style:o,silent:!0},n={};var s=d(a,"textPosition");t?n.position=s?a.textPosition:"inside":s&&(n.position=a.textPosition),d(a,"textPosition")&&(n.position=a.textPosition),d(a,"textOffset")&&(n.offset=a.textOffset),d(a,"textRotation")&&(n.rotation=a.textRotation),d(a,"textDistance")&&(n.distance=a.textDistance)}return je(o,r),x(o.rich,function(l){je(l,l)}),{textConfig:n,textContent:i}}function je(r,e){e&&(e.font=e.textFont||e.font,d(e,"textStrokeWidth")&&(r.lineWidth=e.textStrokeWidth),d(e,"textAlign")&&(r.align=e.textAlign),d(e,"textVerticalAlign")&&(r.verticalAlign=e.textVerticalAlign),d(e,"textLineHeight")&&(r.lineHeight=e.textLineHeight),d(e,"textWidth")&&(r.width=e.textWidth),d(e,"textHeight")&&(r.height=e.textHeight),d(e,"textBackgroundColor")&&(r.backgroundColor=e.textBackgroundColor),d(e,"textPadding")&&(r.padding=e.textPadding),d(e,"textBorderColor")&&(r.borderColor=e.textBorderColor),d(e,"textBorderWidth")&&(r.borderWidth=e.textBorderWidth),d(e,"textBorderRadius")&&(r.borderRadius=e.textBorderRadius),d(e,"textBoxShadowColor")&&(r.shadowColor=e.textBoxShadowColor),d(e,"textBoxShadowBlur")&&(r.shadowBlur=e.textBoxShadowBlur),d(e,"textBoxShadowOffsetX")&&(r.shadowOffsetX=e.textBoxShadowOffsetX),d(e,"textBoxShadowOffsetY")&&(r.shadowOffsetY=e.textBoxShadowOffsetY))}function jr(r,e,t){var a=r;a.textPosition=a.textPosition||t.position||"inside",t.offset!=null&&(a.textOffset=t.offset),t.rotation!=null&&(a.textRotation=t.rotation),t.distance!=null&&(a.textDistance=t.distance);var n=a.textPosition.indexOf("inside")>=0,i=r.fill||"#000";Ie(a,e);var o=a.textFill==null;return n?o&&(a.textFill=t.insideFill||"#fff",!a.textStroke&&t.insideStroke&&(a.textStroke=t.insideStroke),!a.textStroke&&(a.textStroke=i),a.textStrokeWidth==null&&(a.textStrokeWidth=2)):(o&&(a.textFill=r.fill||t.outsideFill||"#000"),!a.textStroke&&t.outsideStroke&&(a.textStroke=t.outsideStroke)),a.text=e.text,a.rich=e.rich,x(e.rich,function(s){Ie(s,s)}),a}function Ie(r,e){e&&(d(e,"fill")&&(r.textFill=e.fill),d(e,"stroke")&&(r.textStroke=e.fill),d(e,"lineWidth")&&(r.textStrokeWidth=e.lineWidth),d(e,"font")&&(r.font=e.font),d(e,"fontStyle")&&(r.fontStyle=e.fontStyle),d(e,"fontWeight")&&(r.fontWeight=e.fontWeight),d(e,"fontSize")&&(r.fontSize=e.fontSize),d(e,"fontFamily")&&(r.fontFamily=e.fontFamily),d(e,"align")&&(r.textAlign=e.align),d(e,"verticalAlign")&&(r.textVerticalAlign=e.verticalAlign),d(e,"lineHeight")&&(r.textLineHeight=e.lineHeight),d(e,"width")&&(r.textWidth=e.width),d(e,"height")&&(r.textHeight=e.height),d(e,"backgroundColor")&&(r.textBackgroundColor=e.backgroundColor),d(e,"padding")&&(r.textPadding=e.padding),d(e,"borderColor")&&(r.textBorderColor=e.borderColor),d(e,"borderWidth")&&(r.textBorderWidth=e.borderWidth),d(e,"borderRadius")&&(r.textBorderRadius=e.borderRadius),d(e,"shadowColor")&&(r.textBoxShadowColor=e.shadowColor),d(e,"shadowBlur")&&(r.textBoxShadowBlur=e.shadowBlur),d(e,"shadowOffsetX")&&(r.textBoxShadowOffsetX=e.shadowOffsetX),d(e,"shadowOffsetY")&&(r.textBoxShadowOffsetY=e.shadowOffsetY),d(e,"textShadowColor")&&(r.textShadowColor=e.textShadowColor),d(e,"textShadowBlur")&&(r.textShadowBlur=e.textShadowBlur),d(e,"textShadowOffsetX")&&(r.textShadowOffsetX=e.textShadowOffsetX),d(e,"textShadowOffsetY")&&(r.textShadowOffsetY=e.textShadowOffsetY))}var St={position:["x","y"],scale:["scaleX","scaleY"],origin:["originX","originY"]},Ne=W(St);it(j,function(r,e){return r[e]=1,r},{});j.join(", ");var $=["","style","shape","extra"],z=ge();function me(r,e,t,a,n){var i=r+"Animation",o=ut(r,a,n)||{},s=z(e).userDuring;return o.duration>0&&(o.during=s?xe(Rr,{el:e,userDuring:s}):null,o.setToFinal=!0,o.scope=r),F(o,t[i]),o}function Ir(r,e,t,a){a=a||{};var n=a.dataIndex,i=a.isInit,o=a.clearStyle,s=t.isAnimationEnabled(),l=z(r),u=e.style;l.userDuring=e.during;var f={},p={};if(kr(r,e,p),qe("shape",e,p),qe("extra",e,p),!i&&s&&(Dr(r,e,f),Ze("shape",r,e,f),Ze("extra",r,e,f),Wr(r,e,u,f)),p.style=u,Gr(r,p,o),Lr(r,e),s)if(i){var h={};x($,function(v){var g=v?e[v]:e;g&&g.enterFrom&&(v&&(h[v]=h[v]||{}),F(v?h[v]:h,g.enterFrom))});var c=me("enter",r,e,t,n);c.duration>0&&r.animateFrom(h,c)}else Pr(r,e,n||0,t,f);Fr(r,e),u?r.dirty():r.markRedraw()}function Fr(r,e){for(var t=z(r).leaveToProps,a=0;a<$.length;a++){var n=$[a],i=n?e[n]:e;i&&i.leaveTo&&(t||(t=z(r).leaveToProps={}),n&&(t[n]=t[n]||{}),F(n?t[n]:t,i.leaveTo))}}function Nr(r,e,t,a){if(r){var n=r.parent,i=z(r).leaveToProps;if(i){var o=me("update",r,e,t,0);o.done=function(){n.remove(r)},r.animateTo(i,o)}else n.remove(r)}}function B(r){return r==="all"}function Gr(r,e,t){var a=e.style;if(!r.isGroup&&a){if(t){r.useStyle({});for(var n=r.animators,i=0;i<n.length;i++){var o=n[i];o.targetName==="style"&&o.changeTarget(r.style)}}r.setStyle(a)}e&&(e.style=null,e&&r.attr(e),e.style=a)}function Pr(r,e,t,a,n){if(n){var i=me("update",r,e,a,t);i.duration>0&&r.animateFrom(n,i)}}function Lr(r,e){d(e,"silent")&&(r.silent=e.silent),d(e,"ignore")&&(r.ignore=e.ignore),r instanceof ue&&d(e,"invisible")&&(r.invisible=e.invisible),r instanceof _a&&d(e,"autoBatch")&&(r.autoBatch=e.autoBatch)}var T={},Mr={setTransform:function(r,e){return T.el[r]=e,this},getTransform:function(r){return T.el[r]},setShape:function(r,e){var t=T.el,a=t.shape||(t.shape={});return a[r]=e,t.dirtyShape&&t.dirtyShape(),this},getShape:function(r){var e=T.el.shape;if(e)return e[r]},setStyle:function(r,e){var t=T.el,a=t.style;return a&&(a[r]=e,t.dirtyStyle&&t.dirtyStyle()),this},getStyle:function(r){var e=T.el.style;if(e)return e[r]},setExtra:function(r,e){var t=T.el.extra||(T.el.extra={});return t[r]=e,this},getExtra:function(r){var e=T.el.extra;if(e)return e[r]}};function Rr(){var r=this,e=r.el;if(e){var t=z(e).userDuring,a=r.userDuring;if(t!==a){r.el=r.userDuring=null;return}T.el=e,a(Mr)}}function Ze(r,e,t,a){var n=t[r];if(n){var i=e[r],o;if(i){var s=t.transition,l=n.transition;if(l)if(!o&&(o=a[r]={}),B(l))F(o,i);else for(var u=J(l),f=0;f<u.length;f++){var p=u[f],h=i[p];o[p]=h}else if(B(s)||Se(s,r)>=0){!o&&(o=a[r]={});for(var c=W(i),f=0;f<c.length;f++){var p=c[f],h=i[p];Vr(n[p],h)&&(o[p]=h)}}}}}function qe(r,e,t){var a=e[r];if(a)for(var n=t[r]={},i=W(a),o=0;o<i.length;o++){var s=i[o];n[s]=Sa(a[s])}}function Dr(r,e,t){for(var a=e.transition,n=B(a)?j:J(a||[]),i=0;i<n.length;i++){var o=n[i];if(!(o==="style"||o==="shape"||o==="extra")){var s=r[o];t[o]=s}}}function kr(r,e,t){for(var a=0;a<Ne.length;a++){var n=Ne[a],i=St[n],o=e[n];o&&(t[i[0]]=o[0],t[i[1]]=o[1])}for(var a=0;a<j.length;a++){var s=j[a];e[s]!=null&&(t[s]=e[s])}}function Wr(r,e,t,a){if(t){var n=r.style,i;if(n){var o=t.transition,s=e.transition;if(o&&!B(o)){var l=J(o);!i&&(i=a.style={});for(var u=0;u<l.length;u++){var f=l[u],p=n[f];i[f]=p}}else if(r.getAnimationStyleProps&&(B(s)||B(o)||Se(s,"style")>=0)){var h=r.getAnimationStyleProps(),c=h?h.style:null;if(c){!i&&(i=a.style={});for(var v=W(t),u=0;u<v.length;u++){var f=v[u];if(c[f]){var p=n[f];i[f]=p}}}}}}}function Vr(r,e){return ma(r)?r!==e:r!=null&&isFinite(r)}var _t=ge(),Br=["percent","easing","shape","style","extra"];function Zr(r){r.stopAnimation("keyframe"),r.attr(_t(r))}function Or(r,e,t){if(!(!t.isAnimationEnabled()||!e)){if(wa(e)){x(e,function(s){Or(r,s,t)});return}var a=e.keyframes,n=e.duration;if(t&&n==null){var i=ut("enter",t,0);n=i&&i.duration}if(!(!a||!n)){var o=_t(r);x($,function(s){if(!(s&&!r[s])){var l;a.sort(function(u,f){return u.percent-f.percent}),x(a,function(u){var f=r.animators,p=s?u[s]:u;if(p){var h=W(p);if(s||(h=st(h,function(g){return Se(Br,g)<0})),!!h.length){l||(l=r.animate(s,e.loop,!0),l.scope="keyframe");for(var c=0;c<f.length;c++)f[c]!==l&&f[c].targetName===l.targetName&&f[c].stopTracks(h);s&&(o[s]=o[s]||{});var v=s?o[s]:o;x(h,function(g){v[g]=((s?r[s]:r)||{})[g]}),l.whenWithKeys(n*u.percent,p,h,u.easing)}}}),l&&l.delay(e.delay||0).duration(n).start(e.easing)}})}}}export{ar as M,Hr as a,Nr as b,jr as c,Ir as d,Or as e,Xr as f,L as g,Jr as h,Ur as i,B as j,Zr as s,Fr as u};
@@ -1 +1 @@
1
- import{j as t}from"./index-MB-jfQld.js";import{A as e}from"./auth-method-demo-DaOCuvsq.js";import o from"./cas-sign-in-button-CyqG1QME.js";import"./card-DuQBOS6A.js";const n={name:"company-cas",authType:"CAS",title:"Company CAS"};function s(){return t.jsx(e,{authType:"CAS",methodName:"Central Authentication Service",description:"Redirect users to a CAS server and capture the returned NocoBase token without coupling the page UI to CAS.",children:t.jsx(o,{authenticator:n,onSignIn:()=>{}})})}export{s as CasAuthDemoPage};
1
+ import{j as t}from"./index-CgkdZ6Oc.js";import{A as e}from"./auth-method-demo-B2qcpY8z.js";import o from"./cas-sign-in-button-BQn3Mttx.js";import"./card-C9Hpeq1c.js";const n={name:"company-cas",authType:"CAS",title:"Company CAS"};function s(){return t.jsx(e,{authType:"CAS",methodName:"Central Authentication Service",description:"Redirect users to a CAS server and capture the returned NocoBase token without coupling the page UI to CAS.",children:t.jsx(o,{authenticator:n,onSignIn:()=>{}})})}export{s as CasAuthDemoPage};
@@ -1 +1 @@
1
- import{j as t}from"./index-MB-jfQld.js";import{A as e}from"./auth-method-demo-DaOCuvsq.js";import r from"./saml-sign-in-button-BHL5a0JV.js";import"./card-DuQBOS6A.js";const o={name:"company-saml",authType:"SAML",title:"Company SAML"};function h(){return t.jsx(e,{authType:"SAML",methodName:"SAML",description:"Start an identity-provider redirect and return through the Starter's shared authentication callback.",children:t.jsx(r,{authenticator:o,onSignIn:()=>{}})})}export{h as SamlAuthDemoPage};
1
+ import{j as t}from"./index-CgkdZ6Oc.js";import{A as e}from"./auth-method-demo-B2qcpY8z.js";import r from"./saml-sign-in-button-qt8bMeoQ.js";import"./card-C9Hpeq1c.js";const o={name:"company-saml",authType:"SAML",title:"Company SAML"};function h(){return t.jsx(e,{authType:"SAML",methodName:"SAML",description:"Start an identity-provider redirect and return through the Starter's shared authentication callback.",children:t.jsx(r,{authenticator:o,onSignIn:()=>{}})})}export{h as SamlAuthDemoPage};
@@ -1 +1 @@
1
- import{j as o}from"./index-MB-jfQld.js";import{A as t}from"./auth-method-demo-DaOCuvsq.js";import e from"./wecom-sign-in-button-mIS1zGSU.js";import"./card-DuQBOS6A.js";import"./use-wecom-sign-in-C9j8wfCD.js";const i={name:"company-wecom",authType:"wecom",title:"Sign in via WeCom",options:{btnTooltip:"Use the account associated with your company directory."}};function c(){return o.jsx(t,{authType:"wecom",methodName:"WeCom",description:"Provide a WeCom sign-in button and support automatic login when the application is opened inside WeCom.",children:o.jsx(e,{authenticator:i,onSignIn:()=>{}})})}export{c as WecomAuthDemoPage};
1
+ import{j as o}from"./index-CgkdZ6Oc.js";import{A as t}from"./auth-method-demo-B2qcpY8z.js";import e from"./wecom-sign-in-button-rUq9RW8R.js";import"./card-C9Hpeq1c.js";import"./use-wecom-sign-in-PPIMLvGa.js";const i={name:"company-wecom",authType:"wecom",title:"Sign in via WeCom",options:{btnTooltip:"Use the account associated with your company directory."}};function c(){return o.jsx(t,{authType:"wecom",methodName:"WeCom",description:"Provide a WeCom sign-in button and support automatic login when the application is opened inside WeCom.",children:o.jsx(e,{authenticator:i,onSignIn:()=>{}})})}export{c as WecomAuthDemoPage};
@@ -1 +1 @@
1
- import{j as t}from"./index-MB-jfQld.js";import{A as e}from"./auth-method-demo-DaOCuvsq.js";import n from"./oidc-sign-in-button-CQdRcR_p.js";import"./card-DuQBOS6A.js";const o={name:"company-oidc",authType:"OIDC",title:"Company OIDC"};function m(){return t.jsx(e,{authType:"OIDC",methodName:"OpenID Connect",description:"Redirect users to an OpenID Connect provider while the Starter handles callback tokens and the active authenticator.",children:t.jsx(n,{authenticator:o,onSignIn:()=>{}})})}export{m as OidcAuthDemoPage};
1
+ import{j as t}from"./index-CgkdZ6Oc.js";import{A as e}from"./auth-method-demo-B2qcpY8z.js";import n from"./oidc-sign-in-button-Cgpa8Qzj.js";import"./card-C9Hpeq1c.js";const o={name:"company-oidc",authType:"OIDC",title:"Company OIDC"};function m(){return t.jsx(e,{authType:"OIDC",methodName:"OpenID Connect",description:"Redirect users to an OpenID Connect provider while the Starter handles callback tokens and the active authenticator.",children:t.jsx(n,{authenticator:o,onSignIn:()=>{}})})}export{m as OidcAuthDemoPage};
@@ -1 +1 @@
1
- import{j as t}from"./index-MB-jfQld.js";import{A as o}from"./auth-method-demo-DaOCuvsq.js";import e from"./ldap-sign-in-form--6Gt3yGq.js";import"./card-DuQBOS6A.js";import"./use-authenticator-sign-in-CRGjzXju.js";const r={name:"company-ldap",authType:"LDAP",title:"Company directory",options:{autoSignup:!0}};function s(){return t.jsx(o,{authType:"LDAP",methodName:"LDAP directory",description:"Use the familiar account and password form while sending credentials through the selected LDAP authenticator.",children:t.jsx(e,{authenticator:r,onSignIn:()=>{}})})}export{s as LdapAuthDemoPage};
1
+ import{j as t}from"./index-CgkdZ6Oc.js";import{A as o}from"./auth-method-demo-B2qcpY8z.js";import e from"./ldap-sign-in-form-BOMNDTkK.js";import"./card-C9Hpeq1c.js";import"./use-authenticator-sign-in-BzFeh7qe.js";const r={name:"company-ldap",authType:"LDAP",title:"Company directory",options:{autoSignup:!0}};function s(){return t.jsx(o,{authType:"LDAP",methodName:"LDAP directory",description:"Use the familiar account and password form while sending credentials through the selected LDAP authenticator.",children:t.jsx(e,{authenticator:r,onSignIn:()=>{}})})}export{s as LdapAuthDemoPage};
@@ -1 +1 @@
1
- import{j as t}from"./index-MB-jfQld.js";import{A as i}from"./auth-method-demo-DaOCuvsq.js";import n from"./dingtalk-sign-in-button-DSWsSruv.js";import"./card-DuQBOS6A.js";import"./use-dingtalk-sign-in-8WYzJ2jf.js";const o={name:"company-dingtalk",authType:"dingtalk",title:"Sign in via DingTalk"};function p(){return t.jsx(i,{authType:"dingtalk",methodName:"DingTalk",description:"Provide DingTalk OAuth login and support internal micro-app automatic login through DingTalk JSAPI.",children:t.jsx(n,{authenticator:o,onSignIn:()=>{}})})}export{p as DingtalkAuthDemoPage};
1
+ import{j as t}from"./index-CgkdZ6Oc.js";import{A as i}from"./auth-method-demo-B2qcpY8z.js";import n from"./dingtalk-sign-in-button-DSluFaP9.js";import"./card-C9Hpeq1c.js";import"./use-dingtalk-sign-in-mrq6K5Yx.js";const o={name:"company-dingtalk",authType:"dingtalk",title:"Sign in via DingTalk"};function p(){return t.jsx(i,{authType:"dingtalk",methodName:"DingTalk",description:"Provide DingTalk OAuth login and support internal micro-app automatic login through DingTalk JSAPI.",children:t.jsx(n,{authenticator:o,onSignIn:()=>{}})})}export{p as DingtalkAuthDemoPage};
@@ -1 +1 @@
1
- import{j as e}from"./index-MB-jfQld.js";import{A as o}from"./auth-method-demo-DaOCuvsq.js";import i from"./sms-sign-in-form-DTX9GV2I.js";import"./card-DuQBOS6A.js";import"./use-authenticator-sign-in-CRGjzXju.js";const n={name:"company-sms",authType:"SMS",title:"SMS verification code",options:{autoSignup:!0,verifier:"login-sms"}};function p(){return e.jsx(o,{authType:"SMS",methodName:"SMS verification code",description:"Collect a phone number and one-time code while keeping delivery and sign-in bound to the configured verifier.",children:e.jsx(i,{authenticator:n,onSendCode:()=>{},onSignIn:()=>{}})})}export{p as SmsAuthDemoPage};
1
+ import{j as e}from"./index-CgkdZ6Oc.js";import{A as o}from"./auth-method-demo-B2qcpY8z.js";import i from"./sms-sign-in-form-Bo2WLZuP.js";import"./card-C9Hpeq1c.js";import"./use-authenticator-sign-in-BzFeh7qe.js";const n={name:"company-sms",authType:"SMS",title:"SMS verification code",options:{autoSignup:!0,verifier:"login-sms"}};function p(){return e.jsx(o,{authType:"SMS",methodName:"SMS verification code",description:"Collect a phone number and one-time code while keeping delivery and sign-in bound to the configured verifier.",children:e.jsx(i,{authenticator:n,onSendCode:()=>{},onSignIn:()=>{}})})}export{p as SmsAuthDemoPage};
@@ -1 +1 @@
1
- import{j as s,aT as l,aV as r,aW as d,D as c,b5 as o,r as u}from"./index-MB-jfQld.js";import{u as g}from"./use-dingtalk-sign-in-8WYzJ2jf.js";function m({authenticator:e,onSignIn:i}){const{signIn:n,isPending:a,error:t}=g(e);return s.jsxs("div",{className:"space-y-3",children:[t&&s.jsxs(l,{variant:"destructive",children:[s.jsx(r,{children:"DingTalk sign-in failed"}),s.jsx(d,{children:t.message})]}),s.jsxs(c,{type:"button",variant:"outline",className:"w-full",disabled:!i&&a,onClick:i??n,children:[s.jsx(o,{}),!i&&a?"Redirecting…":u(e.title||e.authTypeTitle||"Sign in via DingTalk")]})]})}export{m as default};
1
+ import{j as s,aD as l,aF as r,aG as d,D as c,b3 as o,r as u}from"./index-CgkdZ6Oc.js";import{u as g}from"./use-dingtalk-sign-in-mrq6K5Yx.js";function m({authenticator:e,onSignIn:i}){const{signIn:n,isPending:a,error:t}=g(e);return s.jsxs("div",{className:"space-y-3",children:[t&&s.jsxs(l,{variant:"destructive",children:[s.jsx(r,{children:"DingTalk sign-in failed"}),s.jsx(d,{children:t.message})]}),s.jsxs(c,{type:"button",variant:"outline",className:"w-full",disabled:!i&&a,onClick:i??n,children:[s.jsx(o,{}),!i&&a?"Redirecting…":u(e.title||e.authTypeTitle||"Sign in via DingTalk")]})]})}export{m as default};
@@ -1 +1 @@
1
- import{by as Z,bz as ee,bA as te,bB as re,b as g,j as L,b3 as ne}from"./index-MB-jfQld.js";import{g as ie,p as oe,e as se}from"./echarts-runtime-D8kXn6ME.js";var w={};const Q=Z(ee);var S={},b={},M={},k;function ae(){return k||(k=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(M)),M}var E={},q={},x={},D;function X(){return D||(D=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,r=null;return function(){for(var f=this,n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];clearTimeout(r),r=setTimeout(function(){o.apply(f,c)},s)}}})(x)),x}var y={},N;function A(){return N||(N=1,Object.defineProperty(y,"__esModule",{value:!0}),y.SizeSensorId=y.SensorTabIndex=y.SensorClassName=void 0,y.SizeSensorId="size-sensor-id",y.SensorClassName="size-sensor-object",y.SensorTabIndex="-1"),y}var F;function ue(){if(F)return q;F=1,Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var e=o(X()),t=A();function o(s){return s&&s.__esModule?s:{default:s}}return q.createSensor=function(r,f){var n=void 0,c=[],l=function(){getComputedStyle(r).position==="static"&&(r.style.position="relative");var i=document.createElement("object");return i.onload=function(){i.contentDocument.defaultView.addEventListener("resize",v),v()},i.style.display="block",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.height="100%",i.style.width="100%",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.opacity="0",i.setAttribute("class",t.SensorClassName),i.setAttribute("tabindex",t.SensorTabIndex),i.type="text/html",r.appendChild(i),i.data="about:blank",i},v=(0,e.default)(function(){c.forEach(function(u){u(r)})}),a=function(i){n||(n=l()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",v),n.parentNode.removeChild(n),r.removeAttribute(t.SizeSensorId),n=void 0,c=[],f&&f())},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},q}var O={},T;function ce(){if(T)return O;T=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createSensor=void 0;var e=A(),t=o(X());function o(s){return s&&s.__esModule?s:{default:s}}return O.createSensor=function(r,f){var n=void 0,c=[],l=(0,t.default)(function(){c.forEach(function(u){u(r)})}),v=function(){var i=new ResizeObserver(l);return i.observe(r),l(),i},a=function(i){n||(n=v()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.disconnect(),c=[],n=void 0,r.removeAttribute(e.SizeSensorId),f&&f()},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},O}var $;function de(){if($)return E;$=1,Object.defineProperty(E,"__esModule",{value:!0}),E.createSensor=void 0;var e=ue(),t=ce();return E.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,E}var U;function fe(){if(U)return b;U=1,Object.defineProperty(b,"__esModule",{value:!0}),b.removeSensor=b.getSensor=b.Sensors=void 0;var e=s(ae()),t=de(),o=A();function s(n){return n&&n.__esModule?n:{default:n}}var r=b.Sensors={};function f(n){n&&r[n]&&delete r[n]}return b.getSensor=function(c){var l=c.getAttribute(o.SizeSensorId);if(l&&r[l])return r[l];var v=(0,e.default)();c.setAttribute(o.SizeSensorId,v);var a=(0,t.createSensor)(c,function(){return f(v)});return r[v]=a,a},b.removeSensor=function(c){var l=c.element.getAttribute(o.SizeSensorId);c.destroy(),f(l)},b}var B;function le(){if(B)return S;B=1,Object.defineProperty(S,"__esModule",{value:!0}),S.ver=S.clear=S.bind=void 0;var e=fe();return S.bind=function(o,s){var r=(0,e.getSensor)(o);return r.bind(s),function(){r.unbind(s)}},S.clear=function(o){var s=(0,e.getSensor)(o);(0,e.removeSensor)(s)},S.ver="1.0.3",S}var R={},H;function ve(){if(H)return R;H=1,Object.defineProperty(R,"__esModule",{value:!0}),R.pick=void 0;function e(t,o){var s={};return o.forEach(function(r){s[r]=t[r]}),s}return R.pick=e,R}var j={},K;function pe(){if(K)return j;K=1,Object.defineProperty(j,"__esModule",{value:!0}),j.isFunction=void 0;function e(t){return typeof t=="function"}return j.isFunction=e,j}var z={},V;function he(){if(V)return z;V=1,Object.defineProperty(z,"__esModule",{value:!0}),z.isString=void 0;function e(t){return typeof t=="string"}return z.isString=e,z}var I={},P,W;function Se(){return W||(W=1,P=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var s,r,f;if(Array.isArray(t)){if(s=t.length,s!=o.length)return!1;for(r=s;r--!==0;)if(!e(t[r],o[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(o).length)return!1;for(r=s;r--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[r]))return!1;for(r=s;r--!==0;){var n=f[r];if(!e(t[n],o[n]))return!1}return!0}return t!==t&&o!==o}),P}var J;function be(){if(J)return I;J=1,Object.defineProperty(I,"__esModule",{value:!0}),I.isEqual=void 0;var e=Q,t=(0,e.__importDefault)(Se());return I.isEqual=t.default,I}var G;function ye(){if(G)return w;G=1,Object.defineProperty(w,"__esModule",{value:!0});var e=Q,t=(0,e.__importStar)(te()),o=le(),s=ve(),r=pe(),f=he(),n=be(),c=(function(l){(0,e.__extends)(v,l);function v(a){var d=l.call(this,a)||this;return d.echarts=a.echarts,d.ele=null,d.isInitialResize=!0,d}return v.prototype.componentDidMount=function(){this.renderNewEcharts()},v.prototype.componentDidUpdate=function(a){var d=this.props.shouldSetOption;if(!((0,r.isFunction)(d)&&!d(a,this.props))){if(!(0,n.isEqual)(a.theme,this.props.theme)||!(0,n.isEqual)(a.opts,this.props.opts)||!(0,n.isEqual)(a.onEvents,this.props.onEvents)){this.dispose(),this.renderNewEcharts();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];(0,n.isEqual)((0,s.pick)(this.props,p),(0,s.pick)(a,p))||this.updateEChartsOption(),(!(0,n.isEqual)(a.style,this.props.style)||!(0,n.isEqual)(a.className,this.props.className))&&this.resize()}},v.prototype.componentWillUnmount=function(){this.dispose()},v.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},v.prototype.dispose=function(){if(this.ele){try{(0,o.clear)(this.ele)}catch(a){console.warn(a)}this.echarts.dispose(this.ele)}},v.prototype.renderNewEcharts=function(){var a=this,d=this.props,p=d.onEvents,u=d.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,p||{}),(0,r.isFunction)(u)&&u(i),this.ele&&(0,o.bind)(this.ele,function(){a.resize()})},v.prototype.bindEvents=function(a,d){function p(i,h){(0,f.isString)(i)&&(0,r.isFunction)(h)&&a.on(i,function(_){h(_,a)})}for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&p(u,d[u])},v.prototype.updateEChartsOption=function(){var a=this.props,d=a.option,p=a.notMerge,u=p===void 0?!1:p,i=a.lazyUpdate,h=i===void 0?!1:i,_=a.showLoading,m=a.loadingOption,Y=m===void 0?null:m,C=this.getEchartsInstance();return C.setOption(d,u,h),_?C.showLoading(Y):C.hideLoading(),C},v.prototype.resize=function(){var a=this.getEchartsInstance();if(!this.isInitialResize)try{a.resize()}catch(d){console.warn(d)}this.isInitialResize=!1},v.prototype.render=function(){var a=this,d=this.props,p=d.style,u=d.className,i=u===void 0?"":u,h=(0,e.__assign)({height:300},p);return t.default.createElement("div",{ref:function(_){a.ele=_},style:h,className:"echarts-for-react "+i})},v})(t.PureComponent);return w.default=c,w}var _e=ye();const ge=re(_e);var me=(e,t,o,s,r,f,n,c)=>{let l=document.documentElement,v=["light","dark"];function a(u){(Array.isArray(e)?e:[e]).forEach(i=>{let h=i==="class",_=h&&f?r.map(m=>f[m]||m):r;h?(l.classList.remove(..._),l.classList.add(f&&f[u]?f[u]:u)):l.setAttribute(i,u)}),d(u)}function d(u){c&&v.includes(u)&&(l.style.colorScheme=u)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)a(s);else try{let u=localStorage.getItem(t)||o,i=n&&u==="system"?p():u;a(i)}catch{}},Ee=g.createContext(void 0),qe={setTheme:e=>{},themes:[]},Oe=()=>{var e;return(e=g.useContext(Ee))!=null?e:qe};g.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:s,enableColorScheme:r,defaultTheme:f,value:n,themes:c,nonce:l,scriptProps:v})=>{let a=JSON.stringify([o,t,f,e,c,n,s,r]).slice(1,-1);return g.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${me.toString()})(${a})`}})});function ze({options:e}){const{resolvedTheme:t}=Oe(),o=ie(e),[s,r]=g.useState(),[f,n]=g.useState();if(g.useEffect(()=>{let c=!0;return n(void 0),oe(e).then(()=>{c&&r(o)}).catch(l=>{c&&n(l)}),()=>{c=!1}},[e,o]),f)throw f;return s!==o?L.jsx(ne,{className:"h-[280px]"}):L.jsx(ge,{echarts:se,option:{...e,animation:!1,backgroundColor:e.backgroundColor??"transparent",toolbox:{show:!0,feature:{saveAsImage:{title:"Save as image"}}}},theme:t==="dark"?"nocobase-dark":void 0,notMerge:!0,style:{height:280,width:"100%"}})}export{ze as default};
1
+ import{bw as Z,bx as ee,by as te,bz as re,b as g,j as L,b1 as ne}from"./index-CgkdZ6Oc.js";import{g as ie,p as oe,e as se}from"./echarts-runtime-CvLr4Slh.js";var C={};const Q=Z(ee);var S={},b={},x={},k;function ae(){return k||(k=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var t=1;e.default=function(){return"".concat(t++)}})(x)),x}var E={},q={},M={},D;function X(){return D||(D=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0,e.default=function(o){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:60,r=null;return function(){for(var f=this,n=arguments.length,c=new Array(n),l=0;l<n;l++)c[l]=arguments[l];clearTimeout(r),r=setTimeout(function(){o.apply(f,c)},s)}}})(M)),M}var y={},N;function A(){return N||(N=1,Object.defineProperty(y,"__esModule",{value:!0}),y.SizeSensorId=y.SensorTabIndex=y.SensorClassName=void 0,y.SizeSensorId="size-sensor-id",y.SensorClassName="size-sensor-object",y.SensorTabIndex="-1"),y}var F;function ue(){if(F)return q;F=1,Object.defineProperty(q,"__esModule",{value:!0}),q.createSensor=void 0;var e=o(X()),t=A();function o(s){return s&&s.__esModule?s:{default:s}}return q.createSensor=function(r,f){var n=void 0,c=[],l=function(){getComputedStyle(r).position==="static"&&(r.style.position="relative");var i=document.createElement("object");return i.onload=function(){i.contentDocument.defaultView.addEventListener("resize",v),v()},i.style.display="block",i.style.position="absolute",i.style.top="0",i.style.left="0",i.style.height="100%",i.style.width="100%",i.style.overflow="hidden",i.style.pointerEvents="none",i.style.zIndex="-1",i.style.opacity="0",i.setAttribute("class",t.SensorClassName),i.setAttribute("tabindex",t.SensorTabIndex),i.type="text/html",r.appendChild(i),i.data="about:blank",i},v=(0,e.default)(function(){c.forEach(function(u){u(r)})}),a=function(i){n||(n=l()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.parentNode&&(n.contentDocument&&n.contentDocument.defaultView.removeEventListener("resize",v),n.parentNode.removeChild(n),r.removeAttribute(t.SizeSensorId),n=void 0,c=[],f&&f())},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},q}var O={},T;function ce(){if(T)return O;T=1,Object.defineProperty(O,"__esModule",{value:!0}),O.createSensor=void 0;var e=A(),t=o(X());function o(s){return s&&s.__esModule?s:{default:s}}return O.createSensor=function(r,f){var n=void 0,c=[],l=(0,t.default)(function(){c.forEach(function(u){u(r)})}),v=function(){var i=new ResizeObserver(l);return i.observe(r),l(),i},a=function(i){n||(n=v()),c.indexOf(i)===-1&&c.push(i)},d=function(){n&&n.disconnect(),c=[],n=void 0,r.removeAttribute(e.SizeSensorId),f&&f()},p=function(i){var h=c.indexOf(i);h!==-1&&c.splice(h,1),c.length===0&&n&&d()};return{element:r,bind:a,destroy:d,unbind:p}},O}var $;function de(){if($)return E;$=1,Object.defineProperty(E,"__esModule",{value:!0}),E.createSensor=void 0;var e=ue(),t=ce();return E.createSensor=typeof ResizeObserver<"u"?t.createSensor:e.createSensor,E}var U;function fe(){if(U)return b;U=1,Object.defineProperty(b,"__esModule",{value:!0}),b.removeSensor=b.getSensor=b.Sensors=void 0;var e=s(ae()),t=de(),o=A();function s(n){return n&&n.__esModule?n:{default:n}}var r=b.Sensors={};function f(n){n&&r[n]&&delete r[n]}return b.getSensor=function(c){var l=c.getAttribute(o.SizeSensorId);if(l&&r[l])return r[l];var v=(0,e.default)();c.setAttribute(o.SizeSensorId,v);var a=(0,t.createSensor)(c,function(){return f(v)});return r[v]=a,a},b.removeSensor=function(c){var l=c.element.getAttribute(o.SizeSensorId);c.destroy(),f(l)},b}var H;function le(){if(H)return S;H=1,Object.defineProperty(S,"__esModule",{value:!0}),S.ver=S.clear=S.bind=void 0;var e=fe();return S.bind=function(o,s){var r=(0,e.getSensor)(o);return r.bind(s),function(){r.unbind(s)}},S.clear=function(o){var s=(0,e.getSensor)(o);(0,e.removeSensor)(s)},S.ver="1.0.3",S}var R={},K;function ve(){if(K)return R;K=1,Object.defineProperty(R,"__esModule",{value:!0}),R.pick=void 0;function e(t,o){var s={};return o.forEach(function(r){s[r]=t[r]}),s}return R.pick=e,R}var j={},V;function pe(){if(V)return j;V=1,Object.defineProperty(j,"__esModule",{value:!0}),j.isFunction=void 0;function e(t){return typeof t=="function"}return j.isFunction=e,j}var z={},W;function he(){if(W)return z;W=1,Object.defineProperty(z,"__esModule",{value:!0}),z.isString=void 0;function e(t){return typeof t=="string"}return z.isString=e,z}var I={},P,B;function Se(){return B||(B=1,P=function e(t,o){if(t===o)return!0;if(t&&o&&typeof t=="object"&&typeof o=="object"){if(t.constructor!==o.constructor)return!1;var s,r,f;if(Array.isArray(t)){if(s=t.length,s!=o.length)return!1;for(r=s;r--!==0;)if(!e(t[r],o[r]))return!1;return!0}if(t.constructor===RegExp)return t.source===o.source&&t.flags===o.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===o.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===o.toString();if(f=Object.keys(t),s=f.length,s!==Object.keys(o).length)return!1;for(r=s;r--!==0;)if(!Object.prototype.hasOwnProperty.call(o,f[r]))return!1;for(r=s;r--!==0;){var n=f[r];if(!e(t[n],o[n]))return!1}return!0}return t!==t&&o!==o}),P}var J;function be(){if(J)return I;J=1,Object.defineProperty(I,"__esModule",{value:!0}),I.isEqual=void 0;var e=Q,t=(0,e.__importDefault)(Se());return I.isEqual=t.default,I}var G;function ye(){if(G)return C;G=1,Object.defineProperty(C,"__esModule",{value:!0});var e=Q,t=(0,e.__importStar)(te()),o=le(),s=ve(),r=pe(),f=he(),n=be(),c=(function(l){(0,e.__extends)(v,l);function v(a){var d=l.call(this,a)||this;return d.echarts=a.echarts,d.ele=null,d.isInitialResize=!0,d}return v.prototype.componentDidMount=function(){this.renderNewEcharts()},v.prototype.componentDidUpdate=function(a){var d=this.props.shouldSetOption;if(!((0,r.isFunction)(d)&&!d(a,this.props))){if(!(0,n.isEqual)(a.theme,this.props.theme)||!(0,n.isEqual)(a.opts,this.props.opts)||!(0,n.isEqual)(a.onEvents,this.props.onEvents)){this.dispose(),this.renderNewEcharts();return}var p=["option","notMerge","lazyUpdate","showLoading","loadingOption"];(0,n.isEqual)((0,s.pick)(this.props,p),(0,s.pick)(a,p))||this.updateEChartsOption(),(!(0,n.isEqual)(a.style,this.props.style)||!(0,n.isEqual)(a.className,this.props.className))&&this.resize()}},v.prototype.componentWillUnmount=function(){this.dispose()},v.prototype.getEchartsInstance=function(){return this.echarts.getInstanceByDom(this.ele)||this.echarts.init(this.ele,this.props.theme,this.props.opts)},v.prototype.dispose=function(){if(this.ele){try{(0,o.clear)(this.ele)}catch(a){console.warn(a)}this.echarts.dispose(this.ele)}},v.prototype.renderNewEcharts=function(){var a=this,d=this.props,p=d.onEvents,u=d.onChartReady,i=this.updateEChartsOption();this.bindEvents(i,p||{}),(0,r.isFunction)(u)&&u(i),this.ele&&(0,o.bind)(this.ele,function(){a.resize()})},v.prototype.bindEvents=function(a,d){function p(i,h){(0,f.isString)(i)&&(0,r.isFunction)(h)&&a.on(i,function(_){h(_,a)})}for(var u in d)Object.prototype.hasOwnProperty.call(d,u)&&p(u,d[u])},v.prototype.updateEChartsOption=function(){var a=this.props,d=a.option,p=a.notMerge,u=p===void 0?!1:p,i=a.lazyUpdate,h=i===void 0?!1:i,_=a.showLoading,m=a.loadingOption,Y=m===void 0?null:m,w=this.getEchartsInstance();return w.setOption(d,u,h),_?w.showLoading(Y):w.hideLoading(),w},v.prototype.resize=function(){var a=this.getEchartsInstance();if(!this.isInitialResize)try{a.resize()}catch(d){console.warn(d)}this.isInitialResize=!1},v.prototype.render=function(){var a=this,d=this.props,p=d.style,u=d.className,i=u===void 0?"":u,h=(0,e.__assign)({height:300},p);return t.default.createElement("div",{ref:function(_){a.ele=_},style:h,className:"echarts-for-react "+i})},v})(t.PureComponent);return C.default=c,C}var _e=ye();const ge=re(_e);var me=(e,t,o,s,r,f,n,c)=>{let l=document.documentElement,v=["light","dark"];function a(u){(Array.isArray(e)?e:[e]).forEach(i=>{let h=i==="class",_=h&&f?r.map(m=>f[m]||m):r;h?(l.classList.remove(..._),l.classList.add(f&&f[u]?f[u]:u)):l.setAttribute(i,u)}),d(u)}function d(u){c&&v.includes(u)&&(l.style.colorScheme=u)}function p(){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}if(s)a(s);else try{let u=localStorage.getItem(t)||o,i=n&&u==="system"?p():u;a(i)}catch{}},Ee=g.createContext(void 0),qe={setTheme:e=>{},themes:[]},Oe=()=>{var e;return(e=g.useContext(Ee))!=null?e:qe};g.memo(({forcedTheme:e,storageKey:t,attribute:o,enableSystem:s,enableColorScheme:r,defaultTheme:f,value:n,themes:c,nonce:l,scriptProps:v})=>{let a=JSON.stringify([o,t,f,e,c,n,s,r]).slice(1,-1);return g.createElement("script",{...v,suppressHydrationWarning:!0,nonce:typeof window>"u"?l:"",dangerouslySetInnerHTML:{__html:`(${me.toString()})(${a})`}})});function ze({options:e}){const{resolvedTheme:t}=Oe(),o=ie(e),[s,r]=g.useState(),[f,n]=g.useState();if(g.useEffect(()=>{let c=!0;return n(void 0),oe(e).then(()=>{c&&r(o)}).catch(l=>{c&&n(l)}),()=>{c=!1}},[e,o]),f)throw f;return s!==o?L.jsx(ne,{className:"h-[280px]"}):L.jsx(ge,{echarts:se,option:{...e,animation:!1,backgroundColor:e.backgroundColor??"transparent",toolbox:{show:!0,feature:{saveAsImage:{title:"Save as image"}}}},theme:t==="dark"?"nocobase-dark":void 0,notMerge:!0,style:{height:280,width:"100%"}})}export{ze as default};
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/echarts-runtime-common-D-yqAK-r.js","assets/createClipPathFromCoordSys-wj34-b1B.js","assets/sectorHelper-DN_Vv6OL.js","assets/CoordinateSystem-C8P-Cleg.js","assets/labelHelper-DQqRy3a_.js","assets/createSeriesDataSimply-D0A6SAVQ.js","assets/SymbolDraw-DXoSw1tM.js","assets/index-MB-jfQld.js","assets/index-NH3aqqQz.css","assets/echarts-runtime-hierarchy-ByQZ-DbP.js","assets/LegendVisualProvider-Bdgkckq-.js","assets/LineDraw-iG-ADes-.js","assets/VisualMapping-C_ee4Eht.js","assets/echarts-runtime-advanced-QY8v95qK.js","assets/customGraphicKeyframeAnimation-DWrhrHL_.js","assets/echarts-runtime-components-P4-i8jPU.js"])))=>i.map(i=>d[i]);
2
- import{b4 as ma}from"./index-MB-jfQld.js";/*! *****************************************************************************
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/echarts-runtime-common-DhNaV5B8.js","assets/createClipPathFromCoordSys-m8IbnJ1z.js","assets/sectorHelper-C6L782Ue.js","assets/CoordinateSystem-C8P-Cleg.js","assets/labelHelper-DbITmOUW.js","assets/createSeriesDataSimply-DKUV5b5e.js","assets/SymbolDraw-DOl_Tss3.js","assets/index-CgkdZ6Oc.js","assets/index-NH3aqqQz.css","assets/echarts-runtime-hierarchy-CAWqYvFh.js","assets/LegendVisualProvider-Bdgkckq-.js","assets/LineDraw-vPRTWiQ5.js","assets/VisualMapping-j08W3KBm.js","assets/echarts-runtime-advanced-BC1tvfQ0.js","assets/customGraphicKeyframeAnimation-CYLPurwK.js","assets/echarts-runtime-components-BiioS8t1.js"])))=>i.map(i=>d[i]);
2
+ import{b2 as ma}from"./index-CgkdZ6Oc.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-D-yqAK-r.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),hierarchy:()=>ma(()=>import("./echarts-runtime-hierarchy-ByQZ-DbP.js"),__vite__mapDeps([9,5,10,2,11,6,4,12,7,8])),advanced:()=>ma(()=>import("./echarts-runtime-advanced-QY8v95qK.js"),__vite__mapDeps([13,4,1,14,11,3,5,10,7,8])),components:()=>ma(()=>import("./echarts-runtime-components-P4-i8jPU.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-DhNaV5B8.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8])),hierarchy:()=>ma(()=>import("./echarts-runtime-hierarchy-CAWqYvFh.js"),__vite__mapDeps([9,5,10,2,11,6,4,12,7,8])),advanced:()=>ma(()=>import("./echarts-runtime-advanced-BC1tvfQ0.js"),__vite__mapDeps([13,4,1,14,11,3,5,10,7,8])),components:()=>ma(()=>import("./echarts-runtime-components-BiioS8t1.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};