@sheetxl/react 1.0.4 → 1.0.6

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 (149) hide show
  1. package/browser/esm/{B5I4vV_DP3EjMFOh.mjs → 4M1ime0lSMPwFdwq.mjs} +1 -1
  2. package/browser/esm/{B41IwWSVZSFBKWbl.mjs → 56NlLn16iTCMXWTn.mjs} +6 -6
  3. package/browser/esm/BBpLlCS6trF9IqY7.mjs +325 -0
  4. package/browser/esm/{DfPC75_EpLobRWyU.mjs → BCGOU0KEA92-tHXw.mjs} +5 -5
  5. package/browser/esm/{D9LWDuiSBP9TanuP.mjs → BPyvBK7c6TKRxVZb.mjs} +1 -1
  6. package/browser/esm/{Cy91S4xWoxd66-_0.mjs → BkkfkHsyalXv3k4Q.mjs} +1 -1
  7. package/browser/esm/{BCViSL9zpUH8tVsE.mjs → Bks84B7NgyzaBVv0.mjs} +1 -1
  8. package/browser/esm/{Vh1oaya1vexsM57z.mjs → Bl0-xYLr5UA_pMTT.mjs} +6 -6
  9. package/browser/esm/{Yzp80cMm3GyMSyGB.mjs → Bp-3XmIZb2fkqunF.mjs} +2 -2
  10. package/browser/esm/{sFi_HFLodIR0bKfI.mjs → C1luDkna9W7PNKrz.mjs} +1 -1
  11. package/browser/esm/{DrVUyngAZ439vUOV.mjs → CKYZvqAf2y2oAkB7.mjs} +1 -1
  12. package/browser/esm/{CclhdAtAI6HRaWjs.mjs → CsGmLR7d80u8xidY.mjs} +1 -1
  13. package/browser/esm/D20ReZZxs2JHIqXW.mjs +1681 -0
  14. package/browser/esm/{BhlDgb8_WVpUrXCE.mjs → D4OKTHNu7UroAOVB.mjs} +1 -1
  15. package/browser/esm/{2d3KRM4JSpo_wPqH.mjs → D9kzGjqEClI2OQO8.mjs} +1 -1
  16. package/browser/esm/{C257AeDQl6k6J19h.mjs → DAGQOiFH2fGWDOqj.mjs} +2 -2
  17. package/browser/esm/{BFUcvh3uC4U54r93.mjs → DBCT8TZn5tx3RRgu.mjs} +1 -1
  18. package/browser/esm/{CBACZ2nUHuOoDHLf.mjs → DIXBmbnM-qkL9ot2.mjs} +8 -6
  19. package/browser/esm/{DMVzoJFREEuE236r.mjs → DpQkiVYU6nJmsEXE.mjs} +3 -3
  20. package/browser/esm/{D2iNsoem4M78aLXn.mjs → Dq9OEmhDbQi90JyF.mjs} +3 -3
  21. package/browser/esm/{BDOdvxrpOY4gcCIl.mjs → Du_yTZVTH9ZhIwVz.mjs} +1 -1
  22. package/browser/esm/DzcsaJD62P_RrIgp.mjs +127 -0
  23. package/browser/esm/{Bs3j5q_SFWPRYcAj.mjs → OYfZSA6eTFsqp5MC.mjs} +1308 -1281
  24. package/browser/esm/{BIunYBnpZF-P8JFl.mjs → X9EpvcUhpbtf95sq.mjs} +1 -1
  25. package/browser/esm/{DO0HWpJD0WrboRDe.mjs → XkePaxnbmJijuUST.mjs} +1 -1
  26. package/browser/esm/chart.mjs +3 -3
  27. package/browser/esm/control.mjs +2 -2
  28. package/browser/esm/{lt-QhChnw2xCbjtV.mjs → dE1dGLDL9PIqTCiM.mjs} +73 -35
  29. package/browser/esm/group.mjs +3 -3
  30. package/browser/esm/index.mjs +8930 -9026
  31. package/browser/esm/note.mjs +4 -4
  32. package/browser/esm/{EJWEWelOH8yX7oez.mjs → pAnBA5Hy2mjpkAWB.mjs} +2 -2
  33. package/browser/esm/picture.mjs +2 -2
  34. package/browser/esm/shape.mjs +2 -2
  35. package/browser/esm/slicer.mjs +4 -4
  36. package/node/esm/{BZK8xNBGYCcvGYr-.mjs → BCTgV60zEAPoPG-u.mjs} +1 -1
  37. package/node/esm/{lAMyxp6V7Yamdtue.mjs → BRsrSOeAgAbh8LCL.mjs} +30 -28
  38. package/node/esm/BSYkbwvzEjg5tnyi.mjs +327 -0
  39. package/node/esm/BXCAuiepvo2pCMA6.mjs +177 -0
  40. package/node/esm/{DYAI1q7pZQijIEuk.mjs → Bf1ybiY9HNcds5_H.mjs} +1 -1
  41. package/node/esm/{BKe0zQV-NngKQLC6.mjs → BkT-mLvzP5h10mLU.mjs} +1 -1
  42. package/node/esm/{gXZTHKanG6sR8nJB.mjs → C-l3nPRIH0q_ucYX.mjs} +1 -1
  43. package/node/esm/{DMccpcT9DZhrCesw.mjs → C0syazJAmS6_LFTY.mjs} +5 -5
  44. package/node/esm/{0XJbNeNNSyYBMnWw.mjs → C3frF4D3I2rcLHK1.mjs} +1 -1
  45. package/node/esm/{Bvq6hR9TahHJQDSE.mjs → CIPjf-XhEAQufN0V.mjs} +1 -1
  46. package/node/esm/{wamMRABbIHPbB6TV.mjs → CJKhZu3BbJY3VsWH.mjs} +1 -1
  47. package/node/esm/CWoaMwpLSM7gBaVh.mjs +1681 -0
  48. package/node/esm/{xaiZuv1DcjoKGxuV.mjs → CcblOBJaE8U6tCWg.mjs} +1 -1
  49. package/node/esm/{EFIovoxkRAaNFoV2.mjs → D5UV0AjhZIYGotrV.mjs} +1 -1
  50. package/node/esm/{eRa_lhdJaHzyCbSo.mjs → D5rzzywf1R4MvJU0.mjs} +1 -1
  51. package/node/esm/{ChvRYQa8Z3QcAih_.mjs → DEH7X3vDYP518pp4.mjs} +1 -1
  52. package/node/esm/{BmwLJCwadUcJzm7_.mjs → DO7K3oDOoCZ4fpv-.mjs} +2 -2
  53. package/node/esm/{BMZIDcAXGazWv925.mjs → DnZ2zYP0QCJWioMW.mjs} +1 -1
  54. package/node/esm/{Bx4zBoy7r3wKhSfW.mjs → DrQEt2TfEEgKvYKL.mjs} +1 -1
  55. package/node/esm/{Drew11dteKH8ST2G.mjs → Dxv-9TQ2qdooz9VX.mjs} +347 -320
  56. package/node/esm/EvhDIPxbJ1B3lfrj.mjs +166 -0
  57. package/node/esm/{CHEbVdYUW8SqO1s1.mjs → KC9JU5CVeDBJ2aHR.mjs} +1 -1
  58. package/node/esm/{DS_Y37x1b6oFkuSX.mjs → WFBPS4qHr0sTxFmI.mjs} +1 -1
  59. package/node/esm/chart.mjs +2 -2
  60. package/node/esm/control.mjs +2 -2
  61. package/node/esm/group.mjs +3 -3
  62. package/node/esm/index.mjs +11035 -11128
  63. package/node/esm/note.mjs +4 -4
  64. package/node/esm/picture.mjs +5 -5
  65. package/node/esm/shape.mjs +6 -6
  66. package/node/esm/slicer.mjs +4 -4
  67. package/package.json +7 -7
  68. package/resources/contents.json +6 -0
  69. package/resources/locales/contents.json +14 -0
  70. package/resources/locales/de/cells.cmd.json +1589 -0
  71. package/resources/locales/de/chart.cmd.json +15 -0
  72. package/resources/locales/de/editor.cmd.json +8 -8
  73. package/resources/locales/de/movable.cmd.json +0 -8
  74. package/resources/locales/de/sheet.cmd.json +190 -1713
  75. package/resources/locales/de/ui.msg.json +67 -0
  76. package/resources/locales/en/cells.cmd.json +1602 -0
  77. package/resources/locales/en/chart.cmd.json +15 -0
  78. package/resources/locales/en/editor.cmd.json +8 -8
  79. package/resources/locales/en/movable.cmd.json +0 -8
  80. package/resources/locales/en/sheet.cmd.json +193 -1729
  81. package/resources/locales/en/ui.msg.json +67 -0
  82. package/types/src/chart/ChartCommands.d.ts +5 -3
  83. package/types/src/chart/ChartElement.d.ts +1 -1
  84. package/types/src/chart/PresetChartTypeDescriptors.d.ts +23 -2
  85. package/types/src/chart/_outlinePath.d.ts +17 -0
  86. package/types/src/chart/paint/_fills.d.ts +4 -1
  87. package/types/src/chart/paint/_graphics.d.ts +5 -2
  88. package/types/src/chart/paint/kinds/ChartPaintKind.d.ts +19 -5
  89. package/types/src/clipboard/ClipboardCommands.d.ts +16 -4
  90. package/types/src/commands/PaneScopeProvider.d.ts +2 -2
  91. package/types/src/editor/EditorCommands.d.ts +3 -3
  92. package/types/src/icons/chart/ChartIcons.d.ts +20 -0
  93. package/types/src/icons/chart/_ChartIconPack.d.ts +4 -0
  94. package/types/src/icons/chart/_chartIconKeys.d.ts +4 -0
  95. package/types/src/icons/chart/index.d.ts +1 -49
  96. package/types/src/index.d.ts +1 -0
  97. package/types/src/layer/MovableKindScope.d.ts +3 -2
  98. package/types/src/layer/MovableToolbar.d.ts +27 -0
  99. package/types/src/layer/RangeToolbar.d.ts +17 -4
  100. package/types/src/layer/SheetMovableLayer.d.ts +6 -0
  101. package/types/src/layer/ValidationDropdownLayer.d.ts +1 -1
  102. package/types/src/layer/index.d.ts +1 -0
  103. package/types/src/movable/MovableCommands.d.ts +8 -2
  104. package/types/src/movable/MovableLayer.d.ts +2 -0
  105. package/types/src/movable/MovableRenderers.d.ts +43 -1
  106. package/types/src/movable/_drawingFormat.d.ts +15 -0
  107. package/types/src/presence/PresenceCommands.d.ts +1 -1
  108. package/types/src/sheet/IWorksheetElement.d.ts +9 -0
  109. package/types/src/sheet/SheetCommandProvider.d.ts +17 -10
  110. package/types/src/sheet/SheetCommands.d.ts +17 -4
  111. package/types/src/taskPane/FormatPane.d.ts +46 -0
  112. package/types/src/taskPane/MovablePane.d.ts +8 -10
  113. package/types/src/taskPane/TaskPaneArea.d.ts +57 -2
  114. package/types/src/taskPane/TaskPaneEmpty.d.ts +14 -0
  115. package/types/src/taskPane/TaskPaneKeys.d.ts +8 -4
  116. package/types/src/taskPane/TaskPaneRegistry.d.ts +2 -1
  117. package/types/src/taskPane/TaskPaneStrip.d.ts +13 -2
  118. package/types/src/taskPane/_taskPaneHost.d.ts +9 -0
  119. package/types/src/taskPane/index.d.ts +2 -0
  120. package/types/src/taskPane/useTaskPane.d.ts +14 -18
  121. package/browser/esm/CNWfLXcWFeRPAr_J.mjs +0 -264
  122. package/node/esm/8ar-ImM_B3-FjI_A.mjs +0 -128
  123. package/node/esm/BwlokhQZotu1DmAO.mjs +0 -265
  124. package/types/src/icons/chart/ChartAreaIcon.d.ts +0 -5
  125. package/types/src/icons/chart/ChartAreaStackedIcon.d.ts +0 -5
  126. package/types/src/icons/chart/ChartAreaStackedPercentIcon.d.ts +0 -5
  127. package/types/src/icons/chart/ChartBarIcon.d.ts +0 -5
  128. package/types/src/icons/chart/ChartBarStackedIcon.d.ts +0 -5
  129. package/types/src/icons/chart/ChartBarStackedPercentIcon.d.ts +0 -5
  130. package/types/src/icons/chart/ChartBubble3DIcon.d.ts +0 -5
  131. package/types/src/icons/chart/ChartBubbleIcon.d.ts +0 -5
  132. package/types/src/icons/chart/ChartColumnIcon.d.ts +0 -5
  133. package/types/src/icons/chart/ChartColumnStackedIcon.d.ts +0 -5
  134. package/types/src/icons/chart/ChartColumnStackedPercentIcon.d.ts +0 -5
  135. package/types/src/icons/chart/ChartLineIcon.d.ts +0 -5
  136. package/types/src/icons/chart/ChartLineMarkersIcon.d.ts +0 -5
  137. package/types/src/icons/chart/ChartLineStackedIcon.d.ts +0 -5
  138. package/types/src/icons/chart/ChartLineStackedMarkersIcon.d.ts +0 -5
  139. package/types/src/icons/chart/ChartLineStackedPercentIcon.d.ts +0 -5
  140. package/types/src/icons/chart/ChartLineStackedPercentMarkersIcon.d.ts +0 -5
  141. package/types/src/icons/chart/ChartPieDoughnutIcon.d.ts +0 -5
  142. package/types/src/icons/chart/ChartPieIcon.d.ts +0 -5
  143. package/types/src/icons/chart/ChartScatterLinesIcon.d.ts +0 -5
  144. package/types/src/icons/chart/ChartScatterLinesMarkersIcon.d.ts +0 -5
  145. package/types/src/icons/chart/ChartScatterLinesMarkersSmoothIcon.d.ts +0 -5
  146. package/types/src/icons/chart/ChartScatterLinesSmoothIcon.d.ts +0 -5
  147. package/types/src/icons/chart/ChartScatterMarkersIcon.d.ts +0 -5
  148. package/types/src/icons/chart/ChartWaterfallIcon.d.ts +0 -5
  149. package/types/src/icons/chart/ThemedChartIcon.d.ts +0 -20
@@ -1,16 +1,16 @@
1
1
  /**
2
- * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.4
2
+ * @license @sheetxl/react - React - React components needed to build advanced grid and spreadsheet UIs. - v1.0.6
3
3
  *
4
4
  * (C) 2026-present SheetXL Inc. & Michael T. Ford
5
5
  * License: SheetXL EULA — https://www.sheetxl.com/eula
6
6
  */
7
- import { t as e } from "./BKe0zQV-NngKQLC6.mjs";
8
- import { Color as t, IFill as i, IStroke as r, PaintUtils as s } from "@sheetxl/sdk";
9
- import * as n from "echarts/core";
10
- import { BarChart as o, LineChart as l, PieChart as a } from "echarts/charts";
11
- import { GraphicComponent as p, GridComponent as h, LegendComponent as c, TitleComponent as d, TooltipComponent as y } from "echarts/components";
12
- import { SVGRenderer as f } from "echarts/renderers";
13
- var u = {
7
+ import { t as e } from "./BkT-mLvzP5h10mLU.mjs";
8
+ import { Color as t, IFill as i, IFont as r, IStroke as s, PaintUtils as n } from "@sheetxl/sdk";
9
+ import * as l from "echarts/core";
10
+ import { BarChart as o, LineChart as a, PieChart as p } from "echarts/charts";
11
+ import { GraphicComponent as h, GridComponent as c, LegendComponent as d, TitleComponent as y, TooltipComponent as f } from "echarts/components";
12
+ import { SVGRenderer as u } from "echarts/renderers";
13
+ var g = {
14
14
  pct5: "0040000000040000",
15
15
  pct10: "0004004000040040",
16
16
  pct20: "0044001100440011",
@@ -59,8 +59,8 @@ var u = {
59
59
  divot: "8000040804008040",
60
60
  shingle: "8160100808182442",
61
61
  wave: "0600C0290600C029"
62
- }, g = (e) => {
63
- const t = e ? u[e] : void 0;
62
+ }, m = (e) => {
63
+ const t = e ? g[e] : void 0;
64
64
  if (!t) return null;
65
65
  const i = [];
66
66
  for (let e = 0; e < 8; e++) {
@@ -74,27 +74,27 @@ var u = {
74
74
  e && (r += `M${i} ${t}h1v1h-1z`);
75
75
  }));
76
76
  return `data:image/svg+xml;charset=utf-8,${encodeURIComponent(`<svg xmlns="http://www.w3.org/2000/svg" width="8" height="8" shape-rendering="crispEdges"><rect width="8" height="8" fill="${i}"/><path d="${r}" fill="${t}"/></svg>`)}`;
77
- }, m = (e) => Math.max(0, Math.min(1, e ?? 0)), b = (e) => {
77
+ }, b = (e) => Math.max(0, Math.min(1, e ?? 0)), k = (e) => {
78
78
  const t = ((e) => {
79
79
  const t = e.stops ?? [], i = Math.max(1, t.length - 1);
80
80
  return t.map((e, t) => ({
81
- offset: m("object" == typeof e && "number" == typeof e.offset ? e.offset : t / i),
81
+ offset: b("object" == typeof e && "number" == typeof e.offset ? e.offset : t / i),
82
82
  color: "string" == typeof e ? e : String(e.color)
83
83
  })).sort((e, t) => e.offset - t.offset);
84
84
  })(e);
85
85
  if ((e.gradientType ?? i.GradientType.Linear) === i.GradientType.Linear) {
86
- const i = ((e.angle ?? 90) - 90) % 360 * Math.PI / 180, r = Math.cos(i), s = Math.sin(i), n = (Math.abs(r) + Math.abs(s)) / 2, o = (e) => Math.round(1e9 * e) / 1e9;
86
+ const i = ((e.angle ?? 90) - 90) % 360 * Math.PI / 180, r = Math.cos(i), s = Math.sin(i), n = (Math.abs(r) + Math.abs(s)) / 2, l = (e) => Math.round(1e9 * e) / 1e9;
87
87
  return {
88
88
  type: "linear",
89
- x: o(.5 - r * n),
90
- y: o(.5 - s * n),
91
- x2: o(.5 + r * n),
92
- y2: o(.5 + s * n),
89
+ x: l(.5 - r * n),
90
+ y: l(.5 - s * n),
91
+ x2: l(.5 + r * n),
92
+ y2: l(.5 + s * n),
93
93
  colorStops: t,
94
94
  global: !1
95
95
  };
96
96
  }
97
- const r = e.focus, s = (m(r?.left) + m(r?.right ?? r?.left)) / 2, n = (m(r?.top) + m(r?.bottom ?? r?.top)) / 2;
97
+ const r = e.focus, s = (b(r?.left) + b(r?.right ?? r?.left)) / 2, n = (b(r?.top) + b(r?.bottom ?? r?.top)) / 2;
98
98
  return {
99
99
  type: "radial",
100
100
  x: s,
@@ -103,15 +103,15 @@ var u = {
103
103
  colorStops: t,
104
104
  global: !1
105
105
  };
106
- }, k = (e, t = "transparent") => {
106
+ }, w = (e, t = "transparent") => {
107
107
  if (!e) return t;
108
108
  switch (e.type) {
109
109
  case i.Type.Solid: return e.color ?? t;
110
- case i.Type.Gradient: return (e.stops?.length ?? 0) > 0 ? b(e) : t;
110
+ case i.Type.Gradient: return (e.stops?.length ?? 0) > 0 ? k(e) : t;
111
111
  case i.Type.Pattern: {
112
112
  const t = String(e.foreground ?? "#000000"), i = String(e.background ?? "#FFFFFF");
113
113
  return {
114
- image: x(g(e.patternType) ?? g("pct50"), t, i),
114
+ image: x(m(e.patternType) ?? m("pct50"), t, i),
115
115
  repeat: "repeat",
116
116
  imageWidth: 8,
117
117
  imageHeight: 8
@@ -119,30 +119,27 @@ var u = {
119
119
  }
120
120
  default: return t;
121
121
  }
122
- }, w = (e) => e?.width ?? 0, A = (e) => r.toDashLengths(e.dash)?.map((t) => t * w(e)), v = (e) => e.font?.family ?? "Calibri", F = (e) => (e.weight ?? 400) >= 600, z = (e) => "italic" === e.style, C = (e) => e.size ?? 0, M = (e) => "string" == typeof e.color ? e.color : k(e.color, "#000000"), S = (e) => ({
122
+ }, A = (e) => e?.width ?? 0, F = (e) => s.toDashLengths(e.dash)?.map((t) => t * A(e)), v = (e) => r.toCSSFontFamily(e.font?.family ?? "Calibri", e.font?.fallbacks).replace(/"/g, "'"), z = (e) => (e.weight ?? 400) >= 600, C = (e) => "italic" === e.style, M = (e) => e.size ?? 0, S = (e) => "string" == typeof e.color ? e.color : w(e.color, "#000000"), L = (e) => ({
123
123
  fontFamily: v(e),
124
- fontSize: C(e),
125
- color: M(e),
126
- fontWeight: F(e) ? "bold" : "normal",
127
- fontStyle: z(e) ? "italic" : "normal"
128
- }), L = (e, t = C(e)) => {
129
- return `${z(e) ? "italic " : ""}${F(e) ? "bold " : ""}${t}px ${i = v(e), i.includes(" ") ? `'${i}'` : i}`;
130
- var i;
131
- }, B = (e) => e ? {
132
- stroke: k(e.fill, "none"),
133
- lineWidth: w(e),
124
+ fontSize: M(e),
125
+ color: S(e),
126
+ fontWeight: z(e) ? "bold" : "normal",
127
+ fontStyle: C(e) ? "italic" : "normal"
128
+ }), B = (e, t = M(e)) => `${C(e) ? "italic " : ""}${z(e) ? "bold " : ""}${t}px ${v(e)}`, E = (e) => e ? {
129
+ stroke: w(e.fill, "none"),
130
+ lineWidth: A(e),
134
131
  lineCap: e.lineCap ?? "butt",
135
- lineDash: A(e)
132
+ lineDash: F(e)
136
133
  } : {
137
134
  stroke: "none",
138
135
  lineWidth: 0
139
136
  }, I = (e) => e ? {
140
- color: k(e.fill),
141
- width: w(e),
137
+ color: w(e.fill),
138
+ width: A(e),
142
139
  cap: e.lineCap ?? "butt",
143
140
  join: "round",
144
- type: A(e) ?? "solid"
145
- } : { width: 0 }, E = {
141
+ type: F(e) ?? "solid"
142
+ } : { width: 0 }, D = {
146
143
  x: [[
147
144
  0,
148
145
  0,
@@ -186,7 +183,7 @@ var u = {
186
183
  .5
187
184
  ]]
188
185
  }, $ = (e) => {
189
- const t = e.size, i = w(e.stroke), r = E[e.symbol];
186
+ const t = e.size, i = A(e.stroke), r = D[e.symbol];
190
187
  if (r) return {
191
188
  symbol: "path://" + r.map(([e, t, i, r]) => `M${e} ${t}L${i} ${r}`).join(""),
192
189
  symbolSize: t
@@ -218,14 +215,14 @@ var u = {
218
215
  symbolSize: t
219
216
  };
220
217
  }
221
- }, D = (e) => e && E[e.symbol] && e.fill ? e.fill : null, W = (e, t, i, r) => {
222
- const s = e.size, n = s / 2, o = {
223
- fill: k(e.fill),
224
- ...B(e.stroke)
225
- }, l = E[e.symbol];
226
- if (l) {
227
- const o = D(e);
228
- return [...o ? [{
218
+ }, W = (e) => e && D[e.symbol] && e.fill ? e.fill : null, H = (e, t, i, r) => {
219
+ const s = e.size, n = s / 2, l = {
220
+ fill: w(e.fill),
221
+ ...E(e.stroke)
222
+ }, o = D[e.symbol];
223
+ if (o) {
224
+ const l = W(e);
225
+ return [...l ? [{
229
226
  type: "rect",
230
227
  silent: !0,
231
228
  z: r,
@@ -235,21 +232,21 @@ var u = {
235
232
  width: s,
236
233
  height: s
237
234
  },
238
- style: { fill: k(o) }
239
- }] : [], ...l.map(([o, l, a, p]) => ({
235
+ style: { fill: w(l) }
236
+ }] : [], ...o.map(([l, o, a, p]) => ({
240
237
  type: "line",
241
238
  silent: !0,
242
239
  z: r,
243
240
  shape: {
244
- x1: t - n + o * s,
245
- y1: i - n + l * s,
241
+ x1: t - n + l * s,
242
+ y1: i - n + o * s,
246
243
  x2: t - n + a * s,
247
244
  y2: i - n + p * s
248
245
  },
249
- style: B(e.stroke)
246
+ style: E(e.stroke)
250
247
  }))];
251
248
  }
252
- const a = w(e.stroke), p = s - a, h = s / 5 - a;
249
+ const a = A(e.stroke), p = s - a, h = s / 5 - a;
253
250
  switch (e.symbol) {
254
251
  case "circle": return [{
255
252
  type: "circle",
@@ -260,7 +257,7 @@ var u = {
260
257
  cy: i,
261
258
  r: p / 2
262
259
  },
263
- style: o
260
+ style: l
264
261
  }];
265
262
  case "square": return [{
266
263
  type: "rect",
@@ -272,7 +269,7 @@ var u = {
272
269
  width: p,
273
270
  height: p
274
271
  },
275
- style: o
272
+ style: l
276
273
  }];
277
274
  case "dash": return [{
278
275
  type: "rect",
@@ -284,7 +281,7 @@ var u = {
284
281
  width: p,
285
282
  height: h
286
283
  },
287
- style: o
284
+ style: l
288
285
  }];
289
286
  case "dot": return [{
290
287
  type: "rect",
@@ -296,7 +293,7 @@ var u = {
296
293
  width: n,
297
294
  height: h
298
295
  },
299
- style: o
296
+ style: l
300
297
  }];
301
298
  case "triangle": return [{
302
299
  type: "polygon",
@@ -307,7 +304,7 @@ var u = {
307
304
  [t + n, i + n],
308
305
  [t - n, i + n]
309
306
  ] },
310
- style: o
307
+ style: l
311
308
  }];
312
309
  default: return [{
313
310
  type: "polygon",
@@ -319,12 +316,12 @@ var u = {
319
316
  [t, i + n],
320
317
  [t - n, i]
321
318
  ] },
322
- style: o
319
+ style: l
323
320
  }];
324
321
  }
325
- }, H = (e, t, i, r) => {
326
- const { rect: s, font: n } = e, o = [];
327
- return (t || i) && o.push({
322
+ }, j = (e, t, i, r) => {
323
+ const { rect: s, font: n } = e, l = [];
324
+ return (t || i) && l.push({
328
325
  type: "rect",
329
326
  silent: !0,
330
327
  z: 59,
@@ -335,10 +332,10 @@ var u = {
335
332
  height: s.height
336
333
  },
337
334
  style: {
338
- fill: k(t),
339
- ...B(i)
335
+ fill: w(t),
336
+ ...E(i)
340
337
  }
341
- }), o.push({
338
+ }), l.push({
342
339
  type: "text",
343
340
  silent: !0,
344
341
  z: 60,
@@ -349,14 +346,14 @@ var u = {
349
346
  x: 0,
350
347
  y: 0,
351
348
  text: e.text,
352
- fill: M(n),
353
- font: L(n),
349
+ fill: S(n),
350
+ font: B(n),
354
351
  align: "center",
355
352
  verticalAlign: "middle",
356
353
  ...r ? { lineHeight: r } : {}
357
354
  }
358
- }), o;
359
- }, j = (e) => (e?.segments ?? []).map((t) => ({
355
+ }), l;
356
+ }, G = (e) => (e?.segments ?? []).map((t) => ({
360
357
  type: "line",
361
358
  silent: !0,
362
359
  z: 3,
@@ -368,14 +365,14 @@ var u = {
368
365
  },
369
366
  style: {
370
367
  fill: "none",
371
- ...B(e.stroke)
368
+ ...E(e.stroke)
372
369
  }
373
- })), G = (e) => (e?.bars ?? []).map((t) => {
370
+ })), P = (e) => (e?.bars ?? []).map((t) => {
374
371
  const i = t.up ? e.up : e.down;
375
372
  return {
376
373
  type: "rect",
377
374
  silent: !0,
378
- z: 3,
375
+ z: 4,
379
376
  shape: {
380
377
  x: t.rect.x,
381
378
  y: t.rect.y,
@@ -383,11 +380,11 @@ var u = {
383
380
  height: t.rect.height
384
381
  },
385
382
  style: {
386
- fill: k(i.fill, "none"),
387
- ...B(i.stroke)
383
+ fill: w(i.fill, "none"),
384
+ ...E(i.stroke)
388
385
  }
389
386
  };
390
- }), P = {
387
+ }), T = {
391
388
  types: ["bar"],
392
389
  horizontal: (e) => "bar" === e.type && "bar" === e.barDir,
393
390
  series: (e, t) => "bar" === e.type ? ((e, t) => {
@@ -416,7 +413,7 @@ var u = {
416
413
  return "bar" === e.barDir == !!t.axisOf(e.axisIds[0])?.reversed || r ? s : s.reverse();
417
414
  })(e, t) : [],
418
415
  graphic: (e, t) => "bar" === e.type ? t.lines(e.seriesLines) : []
419
- }, T = {
416
+ }, O = {
420
417
  types: ["waterfall"],
421
418
  graphic: (e, t) => "waterfall" === e.type ? ((e, t) => {
422
419
  const i = [];
@@ -437,12 +434,12 @@ var u = {
437
434
  });
438
435
  return i.push(...t.lines(e.connectorLines)), i;
439
436
  })(e, t) : []
440
- }, O = {
437
+ }, V = {
441
438
  types: ["sunburst"],
442
439
  grid: !1,
443
440
  graphic: (e, t) => "sunburst" === e.type ? ((e, t) => {
444
441
  const i = [], r = [], { x: s, y: n } = e.center;
445
- for (const o of e.series) for (const e of o.segments ?? []) e.endAngle > e.startAngle && (i.push({
442
+ for (const l of e.series) for (const e of l.segments ?? []) e.endAngle > e.startAngle && (i.push({
446
443
  type: "sector",
447
444
  silent: !0,
448
445
  z: 2,
@@ -462,7 +459,7 @@ var u = {
462
459
  }), e.label && r.push(...t.text(e.label, null, null)));
463
460
  return [...i, ...r];
464
461
  })(e, t) : []
465
- }, V = {
462
+ }, R = {
466
463
  types: ["histogram"],
467
464
  graphic: (e, t) => "histogram" === e.type ? ((e, t) => {
468
465
  const i = [];
@@ -498,7 +495,7 @@ var u = {
498
495
  }
499
496
  return i;
500
497
  })(e, t) : []
501
- }, R = {
498
+ }, U = {
502
499
  types: ["boxWhisker"],
503
500
  graphic: (e, t) => "boxWhisker" === e.type ? ((e, t) => {
504
501
  const i = [], r = (e, i, r) => ({
@@ -591,7 +588,7 @@ var u = {
591
588
  }
592
589
  return i;
593
590
  })(e, t) : []
594
- }, U = {
591
+ }, K = {
595
592
  types: ["treemap"],
596
593
  grid: !1,
597
594
  graphic: (e, t) => "treemap" === e.type ? ((e, t) => {
@@ -636,7 +633,7 @@ var u = {
636
633
  }
637
634
  return [...i, ...r];
638
635
  })(e, t) : []
639
- }, K = {
636
+ }, J = {
640
637
  types: ["funnel"],
641
638
  grid: !1,
642
639
  graphic: (e, t) => "funnel" === e.type ? ((e, t) => {
@@ -674,7 +671,7 @@ var u = {
674
671
  });
675
672
  return i;
676
673
  })(e, t) : []
677
- }, J = (e, t, i) => {
674
+ }, Z = (e, t, i) => {
678
675
  const r = t.x + t.width / 2, s = t.y + t.height / 2, n = [];
679
676
  return e.stroke && n.push({
680
677
  type: "line",
@@ -688,39 +685,38 @@ var u = {
688
685
  },
689
686
  style: i.stroke(e.stroke)
690
687
  }), e.marker && n.push(...i.marker.graphic(e.marker, r, s, 51)), n;
691
- }, Z = {
688
+ }, q = {
692
689
  types: ["line"],
693
690
  series: (e, t) => "line" === e.type ? ((e, t) => {
694
691
  const i = t.cartesian(e), r = "standard" === e.grouping ? void 0 : `line:${e.axisIds.join(":")}`;
695
- return e.series.flatMap((s) => t.withMarkerFills(s, {
696
- ...i.base(s),
697
- ...t.lineSeries(s, !1, e.spanBlanks),
698
- ...r ? {
699
- data: i.placed(s, s.plotted.map((e, t) => e === s.values[t] ? e : {
700
- value: e,
701
- source: s.values[t]
702
- })),
703
- stack: r
704
- } : {}
692
+ return e.series.map((s) => ({
693
+ ...i.base(s, !0),
694
+ ...t.lineSeries(s, s.smooth, e.spanBlanks),
695
+ data: i.placed(s, t.markerData(s, r ? s.plotted.map((e, t) => e === s.values[t] ? e : {
696
+ value: e,
697
+ source: s.values[t]
698
+ }) : s.values), !0),
699
+ ...r ? { stack: r } : {}
705
700
  }));
706
701
  })(e, t) : [],
707
702
  graphic: (e, t) => "line" === e.type ? [
703
+ ...e.series.flatMap((e) => t.markerFills(e)),
708
704
  ...t.upDownBars(e.upDownBars),
709
705
  ...t.lines(e.hiLowLines),
710
706
  ...t.lines(e.dropLines)
711
707
  ] : [],
712
- legendKey: (e, t, i, r, s) => J(t, r, s)
713
- }, q = {
708
+ legendKey: (e, t, i, r, s) => Z(t, r, s)
709
+ }, N = {
714
710
  types: ["area"],
715
711
  series: (e, t) => "area" === e.type ? ((e, t) => {
716
712
  const i = t.cartesian(e), r = "standard" === e.grouping ? void 0 : `area:${e.axisIds.join(":")}`;
717
713
  return e.series.map((s) => ({
718
- ...i.base(s),
714
+ ...i.base(s, !0),
719
715
  ...t.lineSeries(s, !1),
720
716
  data: i.placed(s, s.plotted.map((e, t) => e === s.values[t] ? e : {
721
717
  value: e,
722
718
  source: s.values[t]
723
- })),
719
+ }), !0),
724
720
  ...r ? { stack: r } : {},
725
721
  areaStyle: {
726
722
  color: t.paint(s.fill),
@@ -731,18 +727,19 @@ var u = {
731
727
  }));
732
728
  })(e, t) : [],
733
729
  graphic: (e, t) => "area" === e.type ? t.lines(e.dropLines) : []
734
- }, N = {
730
+ }, Q = {
735
731
  types: ["scatter"],
736
732
  series: (e, t) => "scatter" === e.type ? ((e, t) => {
737
733
  const i = t.cartesian(e);
738
- return e.series.flatMap((r) => t.withMarkerFills(r, {
734
+ return e.series.map((r) => ({
739
735
  ...i.base(r),
740
736
  ...t.lineSeries(r, r.smooth, e.spanBlanks),
741
- data: r.values.map((e, t) => [r.xValues[t], e])
737
+ data: t.markerData(r, r.values.map((e, t) => [r.xValues[t], e])).filter((e, t) => !r.bridged?.[t])
742
738
  }));
743
739
  })(e, t) : [],
744
- legendKey: (e, t, i, r, s) => J(t, r, s)
745
- }, Q = {
740
+ graphic: (e, t) => "scatter" === e.type ? e.series.flatMap((e) => t.markerFills(e)) : [],
741
+ legendKey: (e, t, i, r, s) => Z(t, r, s)
742
+ }, X = {
746
743
  types: ["bubble"],
747
744
  series: (e, t) => "bubble" === e.type ? ((e, t) => {
748
745
  const i = t.cartesian(e);
@@ -779,9 +776,9 @@ var u = {
779
776
  z: 2
780
777
  }));
781
778
  })(e, t) : []
782
- }, X = (e, t, i, r, s, n, o) => {
779
+ }, Y = (e, t, i, r, s, n, l) => {
783
780
  if (0 === n.length) return [];
784
- const l = (e) => e.center.x !== i.x || e.center.y !== i.y, a = (e, i, l) => ({
781
+ const o = (e) => e.center.x !== i.x || e.center.y !== i.y, a = (e, i, o) => ({
785
782
  type: "pie",
786
783
  id: e,
787
784
  name: t,
@@ -801,20 +798,20 @@ var u = {
801
798
  name: t,
802
799
  value: e.endAngle - e.startAngle,
803
800
  itemStyle: i ? {
804
- color: o.paint(e.fill),
805
- borderColor: o.paint(e.stroke?.fill),
806
- borderWidth: o.width(e.stroke)
801
+ color: l.paint(e.fill),
802
+ borderColor: l.paint(e.stroke?.fill),
803
+ borderWidth: l.width(e.stroke)
807
804
  } : {
808
805
  color: "transparent",
809
806
  borderWidth: 0
810
807
  },
811
808
  ...i ? {} : { tooltip: { show: !1 } }
812
- }))(e, l(e.slice)))
813
- }), p = [a(e, i, (e) => !l(e))];
809
+ }))(e, o(e.slice)))
810
+ }), p = [a(e, i, (e) => !o(e))];
814
811
  return n.forEach(({ slice: t }, i) => {
815
- l(t) && p.push(a(`${e}:${i}`, t.center, (e) => e === t));
812
+ o(t) && p.push(a(`${e}:${i}`, t.center, (e) => e === t));
816
813
  }), p;
817
- }, Y = (e, t, i, r) => [{
814
+ }, _ = (e, t, i, r) => [{
818
815
  type: "rect",
819
816
  silent: !0,
820
817
  z: 50,
@@ -828,20 +825,20 @@ var u = {
828
825
  fill: r.paint(e),
829
826
  ...r.stroke(t ?? null)
830
827
  }
831
- }], _ = {
828
+ }], ee = {
832
829
  types: ["pie"],
833
830
  series: (e, t) => "pie" === e.type ? ((e, t) => e.series.flatMap((i) => {
834
831
  const r = i.slices.flatMap((e, t) => e ? [{
835
832
  slice: e,
836
833
  name: String(t + 1)
837
834
  }] : []);
838
- return X(i.id, i.name, e.center, i.innerRadius, i.outerRadius, r, t);
835
+ return Y(i.id, i.name, e.center, i.innerRadius, i.outerRadius, r, t);
839
836
  }))(e, t) : [],
840
837
  legendKey: (e, t, i, r, s) => {
841
838
  const n = void 0 === e.pointIndex ? void 0 : t.slices[e.pointIndex];
842
- return n ? Y(n.fill, n.stroke, r, s) : void 0;
839
+ return n ? _(n.fill, n.stroke, r, s) : void 0;
843
840
  }
844
- }, ee = (e, t) => e.series.flatMap((e) => (e.bars ?? []).flatMap((e) => e ? [{
841
+ }, te = (e, t) => e.series.flatMap((e) => (e.bars ?? []).flatMap((e) => e ? [{
845
842
  type: "rect",
846
843
  silent: !0,
847
844
  z: 2,
@@ -855,7 +852,7 @@ var u = {
855
852
  fill: t.paint(e.fill, "none"),
856
853
  ...t.stroke(e.stroke)
857
854
  }
858
- }] : [])), te = {
855
+ }] : [])), ie = {
859
856
  types: ["ofPie"],
860
857
  series: (e, t) => "ofPie" === e.type ? ((e, t) => e.series.flatMap((i) => {
861
858
  const r = i.slices.flatMap((e, t) => e ? [{
@@ -868,16 +865,16 @@ var u = {
868
865
  name: "Other",
869
866
  k: -1
870
867
  });
871
- const n = X(i.id, i.name, e.center, 0, e.radius, s, t);
872
- return e.second && n.push(...X(`${i.id}:second`, i.name, e.second.center, 0, e.second.radius, r.filter(({ k: e }) => i.second[e]), t)), n;
868
+ const n = Y(i.id, i.name, e.center, 0, e.radius, s, t);
869
+ return e.second && n.push(...Y(`${i.id}:second`, i.name, e.second.center, 0, e.second.radius, r.filter(({ k: e }) => i.second[e]), t)), n;
873
870
  }))(e, t) : [],
874
- graphic: (e, t) => "ofPie" === e.type ? [...ee(e, t), ...t.lines(e.seriesLines)] : [],
871
+ graphic: (e, t) => "ofPie" === e.type ? [...te(e, t), ...t.lines(e.seriesLines)] : [],
875
872
  legendKey: (e, t, i, r, s) => {
876
873
  if ("ofPie" !== i.type || void 0 === e.pointIndex) return;
877
- const n = i.series[0], o = n?.slices[e.pointIndex] ?? n?.bars?.[e.pointIndex];
878
- return o ? Y(o.fill, o.stroke, r, s) : void 0;
874
+ const n = i.series[0], l = n?.slices[e.pointIndex] ?? n?.bars?.[e.pointIndex];
875
+ return l ? _(l.fill, l.stroke, r, s) : void 0;
879
876
  }
880
- }, ie = {
877
+ }, re = {
881
878
  types: ["radar"],
882
879
  grid: !1,
883
880
  graphic: (e, t) => "radar" === e.type ? ((e, t) => {
@@ -905,8 +902,8 @@ var u = {
905
902
  style: t.stroke(e.spokeStroke)
906
903
  });
907
904
  e.series.forEach((r, s) => {
908
- const n = 2 + s / Math.max(1, e.series.length), o = [[]];
909
- r.points.forEach((e) => {
905
+ const n = 2 + s / Math.max(1, e.series.length), l = r.points.filter((t, i) => null !== t || !(e.spanBlanks || r.bridged?.[i])), o = [[]];
906
+ l.forEach((e) => {
910
907
  e ? o[o.length - 1].push(e) : o.push([]);
911
908
  }), e.filled ? i.push({
912
909
  type: "polygon",
@@ -917,11 +914,11 @@ var u = {
917
914
  fill: t.paint(r.fill, "none"),
918
915
  ...t.stroke(r.stroke)
919
916
  }
920
- }) : r.stroke && (r.points.length > 1 && r.points.every((e) => !!e) ? i.push({
917
+ }) : r.stroke && (l.length > 1 && l.every((e) => !!e) ? i.push({
921
918
  type: "polygon",
922
919
  silent: !0,
923
920
  z: n,
924
- shape: { points: r.points.map((e) => [e.x, e.y]) },
921
+ shape: { points: l.map((e) => [e.x, e.y]) },
925
922
  style: {
926
923
  fill: "none",
927
924
  ...t.stroke(r.stroke),
@@ -937,16 +934,17 @@ var u = {
937
934
  ...t.stroke(r.stroke),
938
935
  lineJoin: "round"
939
936
  }
940
- }))), r.marker && r.points.forEach((e) => {
941
- e && i.push(...t.marker.graphic(r.marker, e.x, e.y, n + .5));
937
+ }))), r.points.forEach((e, s) => {
938
+ const l = r.pointMarkers ? r.pointMarkers[s] ?? null : r.marker;
939
+ e && l && i.push(...t.marker.graphic(l, e.x, e.y, n + .5));
942
940
  });
943
941
  });
944
942
  for (const r of e.categoryLabels) r && i.push(...t.text(r, null, null));
945
943
  for (const r of e.valueLabels) i.push(...t.text(r, null, null));
946
944
  return i;
947
945
  })(e, t) : [],
948
- legendKey: (e, t, i, r, s) => "radar" !== i.type || i.filled ? void 0 : J(t, r, s)
949
- }, re = {
946
+ legendKey: (e, t, i, r, s) => "radar" !== i.type || i.filled ? void 0 : Z(t, r, s)
947
+ }, se = {
950
948
  types: ["surface"],
951
949
  grid: !1,
952
950
  graphic: (e, t) => "surface" === e.type ? ((e, t) => {
@@ -972,64 +970,64 @@ var u = {
972
970
  })(e, t) : [],
973
971
  legendKey: (e, t, i, r, s) => {
974
972
  const n = "surface" === i.type && void 0 !== e.bandIndex ? i.bands[e.bandIndex] : void 0;
975
- return n ? Y(n.fill, n.stroke, r, s) : void 0;
973
+ return n ? _(n.fill, n.stroke, r, s) : void 0;
976
974
  }
977
- }, se = {
975
+ }, ne = {
978
976
  types: ["regionMap"],
979
977
  grid: !1,
980
- graphic: (e) => "label" in e && e.label ? H(e.label, null, null) : []
978
+ graphic: (e) => "label" in e && e.label ? j(e.label, null, null) : []
981
979
  };
982
- function ne(e) {
980
+ function le(e) {
983
981
  for (const t of [
984
- P,
985
982
  T,
986
983
  O,
987
984
  V,
988
985
  R,
989
986
  U,
990
987
  K,
991
- Z,
988
+ J,
992
989
  q,
993
990
  N,
994
991
  Q,
995
- _,
996
- te,
992
+ X,
993
+ ee,
997
994
  ie,
998
995
  re,
999
- se
996
+ se,
997
+ ne
1000
998
  ]) e(t);
1001
999
  }
1002
- var oe = /* @__PURE__ */ new Map(), le = (e) => {
1000
+ var oe = /* @__PURE__ */ new Map(), ae = (e) => {
1003
1001
  let i = oe.get(e);
1004
1002
  if (void 0 === i) {
1005
1003
  try {
1006
- i = s.toConcreteCSS(new t(e), !0);
1004
+ i = n.toConcreteCSS(new t(e), !0);
1007
1005
  } catch {
1008
1006
  i = e;
1009
1007
  }
1010
1008
  oe.set(e, i);
1011
1009
  }
1012
1010
  return i;
1013
- }, ae = /* @__PURE__ */ new Set([
1011
+ }, pe = /* @__PURE__ */ new Set([
1014
1012
  "color",
1015
1013
  "foreground",
1016
1014
  "background"
1017
- ]), pe = (e, t) => {
1015
+ ]), he = (e, t) => {
1018
1016
  if ("data" === t) return e;
1019
- if ("string" == typeof e) return t && ae.has(t) ? le(e) : e;
1020
- if (Array.isArray(e)) return e.map((e) => "stops" === t && "string" == typeof e ? le(e) : pe(e));
1017
+ if ("string" == typeof e) return t && pe.has(t) ? ae(e) : e;
1018
+ if (Array.isArray(e)) return e.map((e) => "stops" === t && "string" == typeof e ? ae(e) : he(e));
1021
1019
  if (e && "object" == typeof e) {
1022
1020
  const t = {};
1023
- for (const [i, r] of Object.entries(e)) t[i] = pe(r, i);
1021
+ for (const [i, r] of Object.entries(e)) t[i] = he(r, i);
1024
1022
  return t;
1025
1023
  }
1026
1024
  return e;
1027
1025
  };
1028
- function he(t, i) {
1029
- e.registerBuiltIns(ne);
1026
+ function ce(t, i) {
1027
+ e.registerBuiltIns(le);
1030
1028
  const r = i?.darkMode ?? !1, s = i?.background ?? "#FFFFFF";
1031
- t = ((e, t) => t ? pe(e) : e)(t, r);
1032
- const n = i?.interactive ?? !0, o = i?.legend ?? "graphic", l = (t) => e.of(t), a = t.axes.filter((e) => "bottom" === e.position || "top" === e.position), p = t.axes.filter((e) => "left" === e.position || "right" === e.position), h = ye(t.groups, l), c = fe(t, (e) => {
1029
+ t = ((e, t) => t ? he(e) : e)(t, r);
1030
+ const n = i?.interactive ?? !0, l = i?.legend ?? "graphic", o = (t) => e.of(t), a = t.axes.filter((e) => "bottom" === e.position || "top" === e.position), p = t.axes.filter((e) => "left" === e.position || "right" === e.position), h = ge(t.groups, o), c = me(t, (e) => {
1033
1031
  const t = a.findIndex((t) => t.id === e);
1034
1032
  if (t >= 0) return {
1035
1033
  dim: "x",
@@ -1043,7 +1041,7 @@ function he(t, i) {
1043
1041
  throw new Error(`chart layout names axis ${e}, which it does not have`);
1044
1042
  }, r), d = [], y = t.chartArea.cornerRadius, f = t.chartArea.fill, u = void 0 !== f ? f : "transparent" === s ? null : {
1045
1043
  type: "solid",
1046
- color: r ? le(s) : s
1044
+ color: r ? ae(s) : s
1047
1045
  }, g = !!u && (y > 0 || "solid" !== u.type);
1048
1046
  if (g && d.push({
1049
1047
  type: "rect",
@@ -1056,9 +1054,9 @@ function he(t, i) {
1056
1054
  height: t.height,
1057
1055
  r: y
1058
1056
  },
1059
- style: { fill: k(u, "none") }
1057
+ style: { fill: w(u, "none") }
1060
1058
  }), t.chartArea.border) {
1061
- const e = w(t.chartArea.border);
1059
+ const e = A(t.chartArea.border);
1062
1060
  d.push({
1063
1061
  type: "rect",
1064
1062
  silent: !0,
@@ -1072,11 +1070,11 @@ function he(t, i) {
1072
1070
  },
1073
1071
  style: {
1074
1072
  fill: "none",
1075
- ...B(t.chartArea.border)
1073
+ ...E(t.chartArea.border)
1076
1074
  }
1077
1075
  });
1078
1076
  }
1079
- t.legend && "graphic" === o && d.push(...function(t, i, r) {
1077
+ t.legend && "graphic" === l && d.push(...function(t, i, r) {
1080
1078
  const s = (e) => {
1081
1079
  for (const t of i) {
1082
1080
  const i = t.series.find((t) => t.id === e);
@@ -1087,47 +1085,47 @@ function he(t, i) {
1087
1085
  }
1088
1086
  }, n = [];
1089
1087
  for (const i of t.entries) {
1090
- const o = s(i.seriesId), l = i.keyRect, a = void 0 === i.trendlineIndex ? void 0 : o?.series.trendlines?.[i.trendlineIndex];
1088
+ const l = s(i.seriesId), o = i.keyRect, a = void 0 === i.trendlineIndex ? void 0 : l?.series.trendlines?.[i.trendlineIndex];
1091
1089
  if (a) {
1092
- const e = l.y + l.height / 2;
1090
+ const e = o.y + o.height / 2;
1093
1091
  n.push({
1094
1092
  type: "line",
1095
1093
  silent: !0,
1096
1094
  z: 50,
1097
1095
  shape: {
1098
- x1: l.x,
1096
+ x1: o.x,
1099
1097
  y1: e,
1100
- x2: l.x + l.width,
1098
+ x2: o.x + o.width,
1101
1099
  y2: e
1102
1100
  },
1103
- style: B(a.stroke)
1101
+ style: E(a.stroke)
1104
1102
  });
1105
1103
  } else {
1106
- const t = o && !i.swatch ? e.of(o.group)?.legendKey?.(i, o.series, o.group, l, r) : void 0;
1104
+ const t = l && !i.swatch ? e.of(l.group)?.legendKey?.(i, l.series, l.group, o, r) : void 0;
1107
1105
  if (t) n.push(...t);
1108
1106
  else {
1109
1107
  const e = i.swatch ?? {
1110
- fill: o?.series.fill ?? null,
1111
- stroke: o?.series.stroke ?? null
1108
+ fill: l?.series.fill ?? null,
1109
+ stroke: l?.series.stroke ?? null
1112
1110
  };
1113
1111
  n.push({
1114
1112
  type: "rect",
1115
1113
  silent: !0,
1116
1114
  z: 50,
1117
1115
  shape: {
1118
- x: l.x,
1119
- y: l.y,
1120
- width: l.width,
1121
- height: l.height
1116
+ x: o.x,
1117
+ y: o.y,
1118
+ width: o.width,
1119
+ height: o.height
1122
1120
  },
1123
1121
  style: {
1124
- fill: k(e.fill),
1125
- ...B(e.stroke)
1122
+ fill: w(e.fill),
1123
+ ...E(e.stroke)
1126
1124
  }
1127
1125
  });
1128
1126
  }
1129
1127
  }
1130
- const p = l.x + l.width + (l.x - i.rect.x);
1128
+ const p = o.x + o.width + (o.x - i.rect.x);
1131
1129
  n.push({
1132
1130
  type: "text",
1133
1131
  silent: !0,
@@ -1136,8 +1134,8 @@ function he(t, i) {
1136
1134
  x: p,
1137
1135
  y: i.rect.y + i.rect.height / 2,
1138
1136
  text: i.text,
1139
- fill: M(t.font),
1140
- font: L(t.font),
1137
+ fill: S(t.font),
1138
+ font: B(t.font),
1141
1139
  verticalAlign: "middle",
1142
1140
  align: "left"
1143
1141
  }
@@ -1145,18 +1143,17 @@ function he(t, i) {
1145
1143
  }
1146
1144
  return n;
1147
1145
  }(t.legend, t.groups, c));
1148
- for (const e of t.axes) d.push(...Ae(e)), d.push(...we(e, t.plotArea.inner)), e.title && !e.deleted && d.push(...H(e.title, null, null)), e.unitLabel && !e.deleted && d.push(...H(e.unitLabel, null, null)), "category" !== e.kind || e.deleted || d.push(...me(e)), e.labelVertical && d.push(...ke(e, t.plotArea.inner));
1149
- for (const e of t.groups) {
1150
- d.push(...l(e)?.graphic?.(e, c) ?? []);
1146
+ for (const e of t.axes) d.push(...ze(e)), d.push(...ve(e, t.plotArea.inner)), e.title && !e.deleted && d.push(...j(e.title, null, null)), e.unitLabel && !e.deleted && d.push(...j(e.unitLabel, null, null)), "category" !== e.kind || e.deleted || d.push(...we(e)), e.labelVertical && d.push(...Fe(e, t.plotArea.inner));
1147
+ return t.groups.forEach((e, i) => {
1148
+ d.push(...de(o(e)?.graphic?.(e, c) ?? [], i, t.groups.length, () => 0));
1151
1149
  for (const t of e.series) {
1152
- for (const e of t.labels ?? []) e && d.push(...H(e, e.fill, e.border));
1153
- for (const e of t.trendlines ?? []) d.push(...Fe(e));
1154
- for (const e of t.errorBars ?? []) d.push(...ve(e));
1150
+ for (const e of t.labels ?? []) e && d.push(...j(e, e.fill, e.border));
1151
+ for (const e of t.trendlines ?? []) d.push(...Me(e));
1152
+ for (const e of t.errorBars ?? []) d.push(...Ce(e));
1155
1153
  }
1156
- }
1157
- return {
1154
+ }), {
1158
1155
  animation: !1,
1159
- backgroundColor: g ? "transparent" : k(u),
1156
+ backgroundColor: g ? "transparent" : w(u),
1160
1157
  textStyle: { fontFamily: v(t.axes.find((e) => e.labelFont)?.labelFont ?? {}) },
1161
1158
  title: t.title ? {
1162
1159
  show: !0,
@@ -1171,7 +1168,7 @@ function he(t, i) {
1171
1168
  ],
1172
1169
  triggerEvent: !0,
1173
1170
  textStyle: {
1174
- ...S(t.title.font),
1171
+ ...L(t.title.font),
1175
1172
  lineHeight: t.title.rect.height - t.title.insets.top - t.title.insets.bottom
1176
1173
  }
1177
1174
  } : { show: !1 },
@@ -1184,9 +1181,9 @@ function he(t, i) {
1184
1181
  containLabel: !1,
1185
1182
  outerBoundsMode: "none",
1186
1183
  show: !(!t.plotArea.fill && !t.plotArea.border),
1187
- backgroundColor: k(t.plotArea.fill),
1188
- borderColor: k(t.plotArea.border?.fill),
1189
- borderWidth: w(t.plotArea.border)
1184
+ backgroundColor: w(t.plotArea.fill),
1185
+ borderColor: w(t.plotArea.border?.fill),
1186
+ borderWidth: A(t.plotArea.border)
1190
1187
  }, ...t.axes.some((e) => 1 === h(e.id)) ? [{
1191
1188
  id: "plot:vertical",
1192
1189
  left: t.plotArea.inner.x,
@@ -1197,10 +1194,10 @@ function he(t, i) {
1197
1194
  outerBoundsMode: "none",
1198
1195
  show: !1
1199
1196
  }] : []],
1200
- xAxis: a.map((e) => ue(e, t.plotArea.inner, h(e.id))),
1201
- yAxis: p.map((e) => ue(e, t.plotArea.inner, h(e.id))),
1202
- series: t.groups.flatMap((e) => l(e)?.series?.(e, c) ?? []),
1203
- legend: t.legend && "native" === o ? xe(t.legend) : { show: !1 },
1197
+ xAxis: a.map((e) => xe(e, t.plotArea.inner, h(e.id))),
1198
+ yAxis: p.map((e) => xe(e, t.plotArea.inner, h(e.id))),
1199
+ series: t.groups.flatMap((e, i) => de(o(e)?.series?.(e, c) ?? [], i, t.groups.length, ye)),
1200
+ legend: t.legend && "native" === l ? ke(t.legend) : { show: !1 },
1204
1201
  graphic: d,
1205
1202
  tooltip: n ? {
1206
1203
  show: !0,
@@ -1212,10 +1209,16 @@ function he(t, i) {
1212
1209
  } : { show: !1 }
1213
1210
  };
1214
1211
  }
1215
- var ce = (e) => (t) => {
1212
+ var de = (e, t, i, r) => i < 2 ? e : e.map((e) => {
1213
+ const s = e.z ?? r(e);
1214
+ return s >= 1 && s < 3 ? {
1215
+ ...e,
1216
+ z: 1 + (2 * t + s - 1) / i
1217
+ } : e;
1218
+ }), ye = (e) => "line" === e.type ? 2.99 : 2, fe = (e) => (t) => {
1216
1219
  const i = e.ticks.find((i) => Math.abs(i.value - t) <= ((t) => e.logBase ? 1e-9 * Math.abs(t) : 1e-6 * e.majorUnit)(i.value));
1217
1220
  return i ? i.label : "";
1218
- }, de = (e, t) => {
1221
+ }, ue = (e, t) => {
1219
1222
  const i = e.labelsAt ?? e.lineAt;
1220
1223
  let r;
1221
1224
  switch (e.position) {
@@ -1231,107 +1234,122 @@ var ce = (e) => (t) => {
1231
1234
  default: r = i - (t.x + t.width);
1232
1235
  }
1233
1236
  return Math.abs(r) < 1e-6 ? 0 : r;
1234
- }, ye = (e, t) => {
1237
+ }, ge = (e, t) => {
1235
1238
  const i = (e) => t(e)?.horizontal?.(e) ?? !1, r = e.filter((e) => t(e)?.grid ?? ("axisIds" in e && 2 === e.axisIds.length)), s = r.some(i) && r.some((e) => !i(e)), n = new Set(s ? r.filter((e) => !i(e)).flatMap((e) => e.axisIds) : []);
1236
1239
  return (e) => n.has(e) ? 1 : 0;
1237
- }, fe = (e, t, i) => {
1238
- const r = (t) => e.axes.find((e) => e.id === t);
1240
+ }, me = (e, t, i) => {
1241
+ const r = (t) => e.axes.find((e) => e.id === t), s = (e) => ({
1242
+ color: D[e.symbol] ? "transparent" : w(e.fill),
1243
+ borderColor: w(e.stroke?.fill),
1244
+ borderWidth: A(e.stroke)
1245
+ }), n = (e, t) => e.pointMarkers ? e.pointMarkers[t] ?? null : e.marker;
1239
1246
  return {
1240
1247
  layout: e,
1241
1248
  darkMode: i,
1242
- color: (e) => i ? le(e) : e,
1249
+ color: (e) => i ? ae(e) : e,
1243
1250
  axisOf: r,
1244
1251
  cartesian: (e) => {
1245
- const i = t(e.axisIds[0]), s = t(e.axisIds[1]), n = "x" === i.dim ? i.index : s.index, o = "y" === i.dim ? i.index : s.index, l = r(e.axisIds[1]), a = "value" === l?.kind && !!l.logBase, p = (e, t) => {
1252
+ const i = t(e.axisIds[0]), s = t(e.axisIds[1]), n = "x" === i.dim ? i.index : s.index, l = "y" === i.dim ? i.index : s.index, o = r(e.axisIds[1]), a = "value" === o?.kind && !!o.logBase, p = (e, t, r = !1) => {
1246
1253
  a && (t = t.map((e) => {
1247
1254
  const t = null !== e && "object" == typeof e ? e.value : e;
1248
1255
  return "number" != typeof t || t > 0 ? e : null;
1249
1256
  }));
1250
- const r = e.slots;
1251
- if (!r) return t;
1252
- const s = (e, t) => "x" === i.dim ? [e, t] : [t, e];
1253
- return t.map((e, t) => {
1254
- const i = r[t];
1255
- return null == i ? null : null !== e && "object" == typeof e ? {
1256
- ...e,
1257
- value: s(i, e.value)
1258
- } : s(i, e);
1259
- }).filter((e) => null !== e);
1257
+ const s = e.slots, n = e.bridged;
1258
+ if (!s && !n) return t;
1259
+ const l = (e, t) => "x" === i.dim ? [e, t] : [t, e], o = [];
1260
+ return t.forEach((e, t) => {
1261
+ if (n?.[t]) return;
1262
+ const i = s ? s[t] : t;
1263
+ null != i && o.push({
1264
+ slot: i,
1265
+ datum: null !== e && "object" == typeof e ? {
1266
+ ...e,
1267
+ value: l(i, e.value)
1268
+ } : l(i, e)
1269
+ });
1270
+ }), r && o.sort((e, t) => e.slot - t.slot), o.map((e) => e.datum);
1260
1271
  };
1261
1272
  return {
1262
1273
  xAxisIndex: n,
1263
- yAxisIndex: o,
1274
+ yAxisIndex: l,
1264
1275
  isLog: a,
1265
1276
  placed: p,
1266
- base: (e) => ({
1277
+ base: (e, t = !1) => ({
1267
1278
  id: e.id,
1268
1279
  name: e.name,
1269
1280
  xAxisIndex: n,
1270
- yAxisIndex: o,
1271
- data: p(e, e.values),
1281
+ yAxisIndex: l,
1282
+ data: p(e, e.values, t),
1272
1283
  emphasis: { disabled: !0 },
1273
1284
  label: { show: !1 },
1274
1285
  animation: !1
1275
1286
  })
1276
1287
  };
1277
1288
  },
1278
- paint: k,
1279
- stroke: B,
1289
+ paint: w,
1290
+ stroke: E,
1280
1291
  line: I,
1281
- width: w,
1292
+ width: A,
1282
1293
  lineSeries: (e, t, i = !1) => ({
1283
1294
  type: "line",
1284
1295
  smooth: t,
1285
1296
  connectNulls: i,
1286
- showSymbol: !!e.marker,
1297
+ showSymbol: !!e.marker || !!e.pointMarkers?.some((e) => !!e),
1287
1298
  ...e.marker ? $(e.marker) : {
1288
1299
  symbol: "none",
1289
1300
  symbolSize: 0
1290
1301
  },
1291
1302
  lineStyle: I(e.stroke),
1292
1303
  itemStyle: {
1293
- color: e.marker && !E[e.marker.symbol] ? k(e.marker.fill) : e.marker ? "transparent" : k(e.stroke?.fill),
1294
- borderColor: k(e.marker?.stroke?.fill),
1295
- borderWidth: w(e.marker?.stroke)
1304
+ color: e.marker && !D[e.marker.symbol] ? w(e.marker.fill) : e.marker ? "transparent" : w(e.stroke?.fill),
1305
+ borderColor: w(e.marker?.stroke?.fill),
1306
+ borderWidth: A(e.marker?.stroke)
1296
1307
  }
1297
1308
  }),
1298
- withMarkerFills: (e, t) => {
1299
- const i = D(e.marker);
1300
- return i ? [{
1301
- ...t,
1302
- id: `${e.id}:fill`,
1303
- name: `${e.name}:fill`,
1309
+ markerData: (e, t) => e.pointMarkers ? t.map((t, i) => {
1310
+ if (null == t) return t;
1311
+ const r = n(e, i), l = "object" != typeof t || Array.isArray(t) ? { value: t } : t;
1312
+ return r ? {
1313
+ ...l,
1314
+ ...$(r),
1315
+ itemStyle: s(r)
1316
+ } : {
1317
+ ...l,
1318
+ symbol: "none",
1319
+ symbolSize: 0
1320
+ };
1321
+ }) : t,
1322
+ markerFills: (e) => e.points.flatMap((t, i) => {
1323
+ const r = n(e, i), s = W(r);
1324
+ return t && r && s ? [{
1325
+ type: "rect",
1304
1326
  silent: !0,
1305
- tooltip: { show: !1 },
1306
- symbol: "rect",
1307
- symbolSize: e.marker.size,
1308
- lineStyle: {
1309
- width: 0,
1310
- opacity: 0
1311
- },
1312
- itemStyle: {
1313
- color: k(i),
1314
- borderWidth: 0
1327
+ z: 1.5,
1328
+ shape: {
1329
+ x: t.x - r.size / 2,
1330
+ y: t.y - r.size / 2,
1331
+ width: r.size,
1332
+ height: r.size
1315
1333
  },
1316
- z: (t.z ?? 2) - .5
1317
- }, t] : [t];
1318
- },
1334
+ style: { fill: w(s) }
1335
+ }] : [];
1336
+ }),
1319
1337
  marker: {
1320
1338
  symbol: $,
1321
- fill: D,
1322
- graphic: W
1339
+ fill: W,
1340
+ graphic: H
1323
1341
  },
1324
- text: H,
1325
- lines: j,
1326
- upDownBars: G
1342
+ text: j,
1343
+ lines: G,
1344
+ upDownBars: P
1327
1345
  };
1328
1346
  };
1329
- function ue(e, t, i) {
1347
+ function xe(e, t, i) {
1330
1348
  const r = {
1331
1349
  id: String(e.id),
1332
1350
  gridIndex: i,
1333
1351
  position: e.position,
1334
- offset: de(e, t),
1352
+ offset: ue(e, t),
1335
1353
  show: !e.deleted,
1336
1354
  inverse: e.reversed,
1337
1355
  axisLine: {
@@ -1350,7 +1368,8 @@ function ue(e, t, i) {
1350
1368
  axisLabel: {
1351
1369
  show: !!e.labelFont && !e.labelVertical,
1352
1370
  margin: e.labelMargin,
1353
- ...e.labelFont ? S(e.labelFont) : {},
1371
+ ...e.labelFont ? L(e.labelFont) : {},
1372
+ ...e.labelFill ? { backgroundColor: w(e.labelFill) } : {},
1354
1373
  interval: 0,
1355
1374
  hideOverlap: !1,
1356
1375
  showMinLabel: !0,
@@ -1370,7 +1389,7 @@ function ue(e, t, i) {
1370
1389
  },
1371
1390
  axisLabel: {
1372
1391
  ...r.axisLabel,
1373
- ...ge(e),
1392
+ ...be(e),
1374
1393
  formatter: (t, i) => e.labels[i] ?? "",
1375
1394
  lineHeight: e.labelLineHeight,
1376
1395
  overflow: "none"
@@ -1384,7 +1403,7 @@ function ue(e, t, i) {
1384
1403
  interval: Math.round(Math.log(e.majorUnit) / Math.log(e.logBase)),
1385
1404
  axisLabel: {
1386
1405
  ...r.axisLabel,
1387
- formatter: ce(e)
1406
+ formatter: fe(e)
1388
1407
  }
1389
1408
  } : {
1390
1409
  ...r,
@@ -1395,11 +1414,11 @@ function ue(e, t, i) {
1395
1414
  alignTicks: !1,
1396
1415
  axisLabel: {
1397
1416
  ...r.axisLabel,
1398
- formatter: ce(e)
1417
+ formatter: fe(e)
1399
1418
  }
1400
1419
  };
1401
1420
  }
1402
- function ge(e) {
1421
+ function be(e) {
1403
1422
  const t = e.labelRotation;
1404
1423
  if ("left" === e.position || "right" === e.position) return {
1405
1424
  rotate: t,
@@ -1417,7 +1436,7 @@ function ge(e) {
1417
1436
  verticalAlign: i ? "top" : "bottom"
1418
1437
  };
1419
1438
  }
1420
- function xe(e) {
1439
+ function ke(e) {
1421
1440
  const t = e.entries[0], i = e.entries.length > 1 ? e.entries[1].rect.x - (t.rect.x + t.rect.width) : 0;
1422
1441
  return {
1423
1442
  show: !0,
@@ -1432,13 +1451,17 @@ function xe(e) {
1432
1451
  itemHeight: t?.keyRect.height ?? 10,
1433
1452
  align: "left",
1434
1453
  selectedMode: !1,
1435
- textStyle: S(e.font),
1454
+ textStyle: L(e.font),
1436
1455
  data: e.entries.map((e) => ({ name: e.text }))
1437
1456
  };
1438
1457
  }
1439
- function me(e) {
1458
+ function we(e) {
1440
1459
  const t = [];
1441
- for (const i of e.levels ?? []) for (const e of i.labels) t.push(...H(e, null, null, e.lineHeight));
1460
+ for (const i of e.levels ?? []) for (const r of i.labels) {
1461
+ const i = j(r, null, null, r.lineHeight);
1462
+ if (e.labelFill) for (const t of i) "text" === t.type && (t.style.backgroundColor = w(e.labelFill));
1463
+ t.push(...i);
1464
+ }
1442
1465
  if (e.line) for (const { from: i, to: r } of e.dividers ?? []) t.push({
1443
1466
  type: "line",
1444
1467
  silent: !0,
@@ -1449,15 +1472,15 @@ function me(e) {
1449
1472
  x2: r.x,
1450
1473
  y2: r.y
1451
1474
  },
1452
- style: B(e.line)
1475
+ style: E(e.line)
1453
1476
  });
1454
1477
  return t;
1455
1478
  }
1456
- var be = .95;
1457
- function ke(e, t) {
1479
+ var Ae = .95;
1480
+ function Fe(e, t) {
1458
1481
  const i = e.labelFont;
1459
1482
  if (!i || e.deleted) return [];
1460
- const r = "bottom" === e.position || "top" === e.position, s = e.labelsAt ?? e.lineAt, n = e.labelLineHeight ?? C(i), o = r ? t.x : t.y + t.height, l = r ? t.width : t.height, a = (e) => r ? o + e * l : o - e * l, p = [];
1483
+ const r = "bottom" === e.position || "top" === e.position, s = e.labelsAt ?? e.lineAt, n = e.labelLineHeight ?? M(i), l = r ? t.x : t.y + t.height, o = r ? t.width : t.height, a = (e) => r ? l + e * o : l - e * o, p = [];
1461
1484
  if ("category" === e.kind) {
1462
1485
  const t = e.categories.length;
1463
1486
  e.labels.forEach((i, r) => {
@@ -1474,9 +1497,10 @@ function ke(e, t) {
1474
1497
  }
1475
1498
  }
1476
1499
  const h = {
1477
- fill: M(i),
1478
- font: L(i),
1479
- lineHeight: n
1500
+ fill: S(i),
1501
+ font: B(i),
1502
+ lineHeight: n,
1503
+ ...e.labelFill ? { backgroundColor: w(e.labelFill) } : {}
1480
1504
  }, c = [];
1481
1505
  for (const [t, n] of p) {
1482
1506
  if (!r) {
@@ -1495,12 +1519,12 @@ function ke(e, t) {
1495
1519
  });
1496
1520
  continue;
1497
1521
  }
1498
- const o = t.split(" "), l = be * C(i);
1499
- o.forEach((t, i) => c.push({
1522
+ const l = t.split(" "), o = Ae * M(i);
1523
+ l.forEach((t, i) => c.push({
1500
1524
  type: "text",
1501
1525
  silent: !0,
1502
1526
  z: 3,
1503
- x: n + (i - (o.length - 1) / 2) * l,
1527
+ x: n + (i - (l.length - 1) / 2) * o,
1504
1528
  y: "bottom" === e.position ? s + e.labelMargin : s - e.labelMargin,
1505
1529
  style: {
1506
1530
  ...h,
@@ -1512,7 +1536,7 @@ function ke(e, t) {
1512
1536
  }
1513
1537
  return c;
1514
1538
  }
1515
- function we(e, t) {
1539
+ function ve(e, t) {
1516
1540
  return void 0 === e.labelsAt || !e.line || e.deleted ? [] : [{
1517
1541
  type: "line",
1518
1542
  silent: !0,
@@ -1528,10 +1552,10 @@ function we(e, t) {
1528
1552
  x2: e.lineAt,
1529
1553
  y2: t.y + t.height
1530
1554
  },
1531
- style: B(e.line)
1555
+ style: E(e.line)
1532
1556
  }];
1533
1557
  }
1534
- function Ae(e) {
1558
+ function ze(e) {
1535
1559
  return e.gridlines && e.majorGridlines ? e.gridlines.map((t) => ({
1536
1560
  type: "line",
1537
1561
  silent: !0,
@@ -1544,11 +1568,11 @@ function Ae(e) {
1544
1568
  },
1545
1569
  style: {
1546
1570
  fill: "none",
1547
- ...B(e.majorGridlines)
1571
+ ...E(e.majorGridlines)
1548
1572
  }
1549
1573
  })) : [];
1550
1574
  }
1551
- function ve(e) {
1575
+ function Ce(e) {
1552
1576
  return e.paths.map((t) => ({
1553
1577
  type: "polyline",
1554
1578
  silent: !0,
@@ -1556,11 +1580,11 @@ function ve(e) {
1556
1580
  shape: { points: t.map((e) => [e.x, e.y]) },
1557
1581
  style: {
1558
1582
  fill: "none",
1559
- ...B(e.stroke)
1583
+ ...E(e.stroke)
1560
1584
  }
1561
1585
  }));
1562
1586
  }
1563
- function Fe(e) {
1587
+ function Me(e) {
1564
1588
  const t = e.paths.map((t) => ({
1565
1589
  type: "polyline",
1566
1590
  silent: !0,
@@ -1568,7 +1592,7 @@ function Fe(e) {
1568
1592
  shape: { points: t.map((e) => [e.x, e.y]) },
1569
1593
  style: {
1570
1594
  fill: "none",
1571
- ...B(e.stroke),
1595
+ ...E(e.stroke),
1572
1596
  lineJoin: "round"
1573
1597
  }
1574
1598
  })), i = e.label;
@@ -1585,31 +1609,31 @@ function Fe(e) {
1585
1609
  height: r.height
1586
1610
  },
1587
1611
  style: {
1588
- fill: k(i.fill),
1589
- ...B(i.border)
1612
+ fill: w(i.fill),
1613
+ ...E(i.border)
1590
1614
  }
1591
1615
  });
1592
- const n = (e) => L(s, e);
1593
- return i.lines.forEach((e, o) => {
1616
+ const n = (e) => B(s, e);
1617
+ return i.lines.forEach((e, l) => {
1594
1618
  t.push({
1595
1619
  type: "text",
1596
1620
  silent: !0,
1597
1621
  z: 60,
1598
1622
  x: r.x + r.width / 2,
1599
- y: r.y + i.insets.top + (o + .5) * i.lineHeight,
1623
+ y: r.y + i.insets.top + (l + .5) * i.lineHeight,
1600
1624
  style: {
1601
1625
  x: 0,
1602
1626
  y: 0,
1603
1627
  text: e.map((e) => `{${e.superscript ? "raised" : "plain"}|${e.text}}`).join(""),
1604
1628
  rich: {
1605
1629
  plain: {
1606
- font: n(C(s)),
1607
- fill: M(s),
1630
+ font: n(M(s)),
1631
+ fill: S(s),
1608
1632
  lineHeight: i.lineHeight
1609
1633
  },
1610
1634
  raised: {
1611
1635
  font: n(i.superscriptSize),
1612
- fill: M(s),
1636
+ fill: S(s),
1613
1637
  lineHeight: i.lineHeight,
1614
1638
  verticalAlign: "top"
1615
1639
  }
@@ -1620,43 +1644,43 @@ function Fe(e) {
1620
1644
  });
1621
1645
  }), t;
1622
1646
  }
1623
- var ze = !1;
1624
- function Ce() {
1625
- ze || (ze = !0, n.use([
1626
- f,
1627
- h,
1647
+ var Se = !1;
1648
+ function Le() {
1649
+ Se || (Se = !0, l.use([
1650
+ u,
1628
1651
  c,
1629
1652
  d,
1630
1653
  y,
1631
- p
1654
+ f,
1655
+ h
1632
1656
  ]));
1633
1657
  }
1634
- var Me = {
1658
+ var Be = {
1635
1659
  bar: [o],
1636
- line: [l],
1637
- area: [l],
1638
- scatter: [l],
1639
- bubble: [l],
1640
- pie: [a],
1641
- ofPie: [a]
1642
- }, Se = /* @__PURE__ */ new Set();
1643
- function Le(t) {
1660
+ line: [a],
1661
+ area: [a],
1662
+ scatter: [a],
1663
+ bubble: [a],
1664
+ pie: [p],
1665
+ ofPie: [p]
1666
+ }, Ee = /* @__PURE__ */ new Set(), Ie = 0;
1667
+ function De(t) {
1644
1668
  for (const i of t.groups) {
1645
1669
  const t = e.typeOf(i);
1646
- if (Se.has(t)) continue;
1647
- Se.add(t);
1648
- const r = e.get(t)?.modules?.() ?? Me[t] ?? [];
1649
- r.length > 0 && n.use(r);
1670
+ if (Ee.has(t)) continue;
1671
+ Ee.add(t);
1672
+ const r = e.get(t)?.modules?.() ?? Be[t] ?? [];
1673
+ r.length > 0 && (l.use(r), Ie++);
1650
1674
  }
1651
1675
  }
1652
- function Be(e, t) {
1653
- Ce();
1654
- const i = he(e, {
1676
+ function $e(e, t) {
1677
+ Le();
1678
+ const i = ce(e, {
1655
1679
  interactive: !1,
1656
1680
  ...t
1657
1681
  });
1658
- Le(e);
1659
- const r = n.init(null, null, {
1682
+ De(e);
1683
+ const r = l.init(null, null, {
1660
1684
  renderer: "svg",
1661
1685
  ssr: !0,
1662
1686
  width: e.width,
@@ -1664,34 +1688,37 @@ function Be(e, t) {
1664
1688
  });
1665
1689
  return r.setOption(i), r;
1666
1690
  }
1667
- function Ie(e, t) {
1668
- const i = Be(e, t);
1691
+ function We(e, t) {
1692
+ const i = $e(e, t);
1669
1693
  try {
1670
1694
  return i.renderToSVGString();
1671
1695
  } finally {
1672
1696
  i.dispose();
1673
1697
  }
1674
1698
  }
1675
- function Ee(e, t, i) {
1676
- Ce();
1699
+ function He(e, t, i) {
1700
+ Le();
1677
1701
  let r = t, s = i;
1678
- const o = he(t, i);
1679
- Le(t);
1680
- const l = n.init(e, null, {
1702
+ const n = ce(t, i);
1703
+ De(t);
1704
+ let o = l.init(e, null, {
1681
1705
  renderer: "svg",
1682
1706
  width: t.width,
1683
1707
  height: t.height
1684
- });
1685
- return l.setOption(o), {
1686
- update: (e, t) => {
1687
- e.width === r.width && e.height === r.height || l.resize({
1688
- width: e.width,
1689
- height: e.height
1690
- }), r = e, t && (s = t);
1691
- const i = he(e, s);
1692
- Le(e), l.setOption(i, { notMerge: !0 });
1708
+ }), a = Ie;
1709
+ return o.setOption(n), {
1710
+ update: (t, i) => {
1711
+ const n = ce(t, i ?? s);
1712
+ De(t), a !== Ie ? (o.dispose(), o = l.init(e, null, {
1713
+ renderer: "svg",
1714
+ width: t.width,
1715
+ height: t.height
1716
+ }), a = Ie) : t.width === r.width && t.height === r.height || o.resize({
1717
+ width: t.width,
1718
+ height: t.height
1719
+ }), r = t, i && (s = i), o.setOption(n, { notMerge: !0 });
1693
1720
  },
1694
- dispose: () => l.dispose()
1721
+ dispose: () => o.dispose()
1695
1722
  };
1696
1723
  }
1697
- export { Be as createHeadlessChart, Ce as ensureRegistered, Ee as mountChart, Ie as renderChartToSVG };
1724
+ export { $e as createHeadlessChart, Le as ensureRegistered, He as mountChart, We as renderChartToSVG };