@floegence/floe-webapp-core 0.35.9 → 0.35.11

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 (32) hide show
  1. package/dist/chat.css +32 -33
  2. package/dist/components/chat/blocks/CodeDiffBlock.js +51 -51
  3. package/dist/components/chat/blocks/ToolCallBlock.js +3 -3
  4. package/dist/components/chat/message/MessageMeta.js +1 -1
  5. package/dist/components/chat/status/ConnectionStatus.js +6 -6
  6. package/dist/components/deck/DropZonePreview.js +20 -28
  7. package/dist/components/launchpad/Launchpad.js +78 -62
  8. package/dist/components/launchpad/LaunchpadGrid.js +1 -1
  9. package/dist/components/launchpad/LaunchpadItem.js +17 -16
  10. package/dist/components/launchpad/LaunchpadPagination.js +16 -16
  11. package/dist/components/launchpad/LaunchpadSearch.js +9 -9
  12. package/dist/components/ui/Card.js +104 -96
  13. package/dist/components/ui/Charts.js +125 -135
  14. package/dist/components/ui/Dialog.js +15 -15
  15. package/dist/components/ui/FloatingWindow.js +18 -18
  16. package/dist/components/ui/MobileKeyboard.js +174 -143
  17. package/dist/components/ui/Progress.js +87 -87
  18. package/dist/components/ui/Tabs.js +1 -1
  19. package/dist/components/ui/mobileKeyboardViewport.d.ts +18 -0
  20. package/dist/components/ui/mobileKeyboardViewport.js +42 -0
  21. package/dist/components/ui/picker/PickerBase.js +1 -1
  22. package/dist/floe.css +8 -15
  23. package/dist/full.js +654 -643
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.js +126 -115
  26. package/dist/styles/tokens.d.ts +1150 -0
  27. package/dist/styles/tokens.js +565 -0
  28. package/dist/styles.css +1 -1
  29. package/dist/themes/light.css +0 -3
  30. package/dist/ui.css +48 -143
  31. package/dist/widgets/MetricsWidget.js +15 -15
  32. package/package.json +1 -1
@@ -1,20 +1,10 @@
1
1
  import { createComponent as $, mergeProps as te, insert as c, effect as T, setAttribute as r, setStyleProperty as J, memo as Bt, className as Ft, use as St, template as A, delegateEvents as ee } from "solid-js/web";
2
- import { splitProps as _t, createUniqueId as Xt, createMemo as K, createSignal as pt, createEffect as wt, onCleanup as Mt, Show as ot, For as z, untrack as qt } from "solid-js";
2
+ import { splitProps as _t, createUniqueId as Xt, createMemo as K, createSignal as Mt, createEffect as wt, onCleanup as pt, Show as ot, For as z, untrack as qt } from "solid-js";
3
3
  import { cn as Tt } from "../../utils/cn.js";
4
4
  import { useResizeObserver as ne } from "../../hooks/useResizeObserver.js";
5
5
  import { computeAutoMaxXAxisLabels as re } from "./chartXAxis.js";
6
- var It = /* @__PURE__ */ A("<div class=chart-title>"), Et = /* @__PURE__ */ A("<svg><g class=chart-grid></svg>", !1, !0, !1), ae = /* @__PURE__ */ A("<div class=chart-legend>"), oe = /* @__PURE__ */ A('<div><svg class=chart-svg preserveAspectRatio="xMidYMid meet"><defs></defs><rect fill=transparent class=chart-hover-area></rect><g class=chart-axis-labels></g><g class=chart-axis-labels>'), se = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-opacity:0.4></stop><stop offset=100% style=stop-opacity:0.05></svg>", !1, !0, !1), Dt = /* @__PURE__ */ A("<svg><line class=chart-grid-line></svg>", !1, !0, !1), ie = /* @__PURE__ */ A("<svg><text class=chart-axis-label text-anchor=end dominant-baseline=middle></svg>", !1, !0, !1), le = /* @__PURE__ */ A("<svg><text class=chart-axis-label></svg>", !1, !0, !1), ce = /* @__PURE__ */ A("<svg><path class=chart-area></svg>", !1, !0, !1), de = /* @__PURE__ */ A("<svg><path fill=none stroke-width=2 stroke-linecap=round stroke-linejoin=round class=chart-line></svg>", !1, !0, !1), ue = /* @__PURE__ */ A("<svg><circle stroke-width=2 class=chart-point><title></svg>", !1, !0, !1), he = /* @__PURE__ */ A("<svg><line class=chart-crosshair></svg>", !1, !0, !1), ve = /* @__PURE__ */ A("<svg><rect rx=4 class=chart-tooltip-bg></svg>", !1, !0, !1), ge = /* @__PURE__ */ A("<svg><text class=chart-tooltip-label></svg>", !1, !0, !1), me = /* @__PURE__ */ A("<svg><circle r=6 class=chart-crosshair-point></svg>", !1, !0, !1), fe = /* @__PURE__ */ A("<svg><g><circle r=4></circle><text class=chart-tooltip-value>: </svg>", !1, !0, !1), xe = /* @__PURE__ */ A("<div class=chart-legend-item><div class=chart-legend-color></div><span class=chart-legend-label>"), be = /* @__PURE__ */ A('<div><svg class=chart-svg preserveAspectRatio="xMidYMid meet"><defs></defs><g class=chart-axis-labels>'), $e = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-opacity:1></stop><stop offset=100% style=stop-opacity:0.7></svg>", !1, !0, !1), ye = /* @__PURE__ */ A("<svg><text class=chart-bar-value text-anchor=middle></svg>", !1, !0, !1), pe = /* @__PURE__ */ A("<svg><g><rect rx=2 class=chart-bar><title></svg>", !1, !0, !1), Me = /* @__PURE__ */ A("<svg><text class=chart-axis-label text-anchor=middle></svg>", !1, !0, !1), we = /* @__PURE__ */ A("<svg><text class=chart-pie-center-label text-anchor=middle dominant-baseline=middle></svg>", !1, !0, !1), Le = /* @__PURE__ */ A("<svg><text class=chart-pie-center-sublabel text-anchor=middle dominant-baseline=middle>Total</svg>", !1, !0, !1), Ae = /* @__PURE__ */ A("<div class=chart-pie-legend>"), Ce = /* @__PURE__ */ A('<div><div class=chart-pie-wrapper><svg class="chart-svg chart-pie-svg"><defs>'), _e = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=100% y2=100%><stop offset=0% style=stop-opacity:1></stop><stop offset=100% style=stop-opacity:0.8></svg>", !1, !0, !1), Pe = /* @__PURE__ */ A("<svg><path class=chart-pie-slice><title></svg>", !1, !0, !1), Se = /* @__PURE__ */ A("<div class=chart-legend-item><div class=chart-legend-color></div><span class=chart-legend-label></span><span class=chart-legend-value>%"), Fe = /* @__PURE__ */ A("<div class=chart-monitoring-status><div class=chart-monitoring-dot></div><span>Live"), Te = /* @__PURE__ */ A("<div><div class=chart-monitoring-header>");
7
- const Lt = [
8
- "var(--primary)",
9
- "oklch(0.65 0.18 160)",
10
- // teal
11
- "oklch(0.65 0.18 280)",
12
- // purple
13
- "oklch(0.65 0.18 45)",
14
- // orange
15
- "oklch(0.65 0.18 340)"
16
- // pink
17
- ];
6
+ var It = /* @__PURE__ */ A("<div class=chart-title>"), Et = /* @__PURE__ */ A("<svg><g class=chart-grid></svg>", !1, !0, !1), ae = /* @__PURE__ */ A("<div class=chart-legend>"), oe = /* @__PURE__ */ A('<div><svg class=chart-svg preserveAspectRatio="xMidYMid meet"><defs></defs><rect fill=transparent class=chart-hover-area></rect><g class=chart-axis-labels></g><g class=chart-axis-labels>'), se = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-opacity:0.4></stop><stop offset=100% style=stop-opacity:0.05></svg>", !1, !0, !1), Dt = /* @__PURE__ */ A("<svg><line class=chart-grid-line></svg>", !1, !0, !1), ie = /* @__PURE__ */ A("<svg><text class=chart-axis-label text-anchor=end dominant-baseline=middle></svg>", !1, !0, !1), le = /* @__PURE__ */ A("<svg><text class=chart-axis-label></svg>", !1, !0, !1), ce = /* @__PURE__ */ A("<svg><path class=chart-area></svg>", !1, !0, !1), de = /* @__PURE__ */ A("<svg><path fill=none stroke-width=2 stroke-linecap=round stroke-linejoin=round class=chart-line></svg>", !1, !0, !1), he = /* @__PURE__ */ A("<svg><circle stroke-width=2 class=chart-point><title></svg>", !1, !0, !1), ue = /* @__PURE__ */ A("<svg><line class=chart-crosshair></svg>", !1, !0, !1), ve = /* @__PURE__ */ A("<svg><rect rx=4 class=chart-tooltip-bg></svg>", !1, !0, !1), ge = /* @__PURE__ */ A("<svg><text class=chart-tooltip-label></svg>", !1, !0, !1), me = /* @__PURE__ */ A("<svg><circle r=6 class=chart-crosshair-point></svg>", !1, !0, !1), fe = /* @__PURE__ */ A("<svg><g><circle r=4></circle><text class=chart-tooltip-value>: </svg>", !1, !0, !1), xe = /* @__PURE__ */ A("<div class=chart-legend-item><div class=chart-legend-color></div><span class=chart-legend-label>"), be = /* @__PURE__ */ A('<div><svg class=chart-svg preserveAspectRatio="xMidYMid meet"><defs></defs><g class=chart-axis-labels>'), $e = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=0% y2=100%><stop offset=0% style=stop-opacity:1></stop><stop offset=100% style=stop-opacity:0.7></svg>", !1, !0, !1), ye = /* @__PURE__ */ A("<svg><text class=chart-bar-value text-anchor=middle></svg>", !1, !0, !1), Me = /* @__PURE__ */ A("<svg><g><rect rx=2 class=chart-bar><title></svg>", !1, !0, !1), pe = /* @__PURE__ */ A("<svg><text class=chart-axis-label text-anchor=middle></svg>", !1, !0, !1), we = /* @__PURE__ */ A("<svg><text class=chart-pie-center-label text-anchor=middle dominant-baseline=middle></svg>", !1, !0, !1), Le = /* @__PURE__ */ A("<svg><text class=chart-pie-center-sublabel text-anchor=middle dominant-baseline=middle>Total</svg>", !1, !0, !1), Ae = /* @__PURE__ */ A("<div class=chart-pie-legend>"), Ce = /* @__PURE__ */ A('<div><div class=chart-pie-wrapper><svg class="chart-svg chart-pie-svg"><defs>'), _e = /* @__PURE__ */ A("<svg><linearGradient x1=0% y1=0% x2=100% y2=100%><stop offset=0% style=stop-opacity:1></stop><stop offset=100% style=stop-opacity:0.8></svg>", !1, !0, !1), Pe = /* @__PURE__ */ A("<svg><path class=chart-pie-slice><title></svg>", !1, !0, !1), Se = /* @__PURE__ */ A("<div class=chart-legend-item><div class=chart-legend-color></div><span class=chart-legend-label></span><span class=chart-legend-value>%"), Fe = /* @__PURE__ */ A("<div class=chart-monitoring-status><div class=chart-monitoring-dot></div><span>Live"), Te = /* @__PURE__ */ A("<div><div class=chart-monitoring-header>");
7
+ const Lt = ["var(--chart-1)", "var(--chart-2)", "var(--chart-3)", "var(--chart-4)", "var(--chart-5)"];
18
8
  function Vt(U) {
19
9
  if (!(typeof U != "number" || !Number.isFinite(U)))
20
10
  return U;
@@ -23,7 +13,7 @@ function Ie(U, t = 2) {
23
13
  return Number.isFinite(U) ? U.toFixed(t).replace(/\.?0+$/, "") : String(U);
24
14
  }
25
15
  function zt(U) {
26
- const [t] = _t(U, ["series", "labels", "height", "showGrid", "showLegend", "showPoints", "showArea", "smooth", "animate", "variant", "class", "title", "yAxisLabel", "xAxisLabel", "yMin", "yMax", "formatYTick", "formatTooltipValue", "maxXAxisLabels"]), ct = Xt(), b = () => t.height ?? 200, ht = () => t.showGrid ?? !0, bt = () => t.showLegend ?? !0, vt = () => t.showPoints ?? !0, H = () => t.showArea ?? !1, S = () => t.smooth ?? !0, B = () => t.animate ?? !0, W = () => t.variant ?? "default", nt = () => Vt(t.yMin), st = () => Vt(t.yMax), rt = () => t.formatYTick ?? ((n) => String(Math.round(n))), gt = () => t.formatTooltipValue ?? ((n) => Ie(n, 2)), C = () => {
16
+ const [t] = _t(U, ["series", "labels", "height", "showGrid", "showLegend", "showPoints", "showArea", "smooth", "animate", "variant", "class", "title", "yAxisLabel", "xAxisLabel", "yMin", "yMax", "formatYTick", "formatTooltipValue", "maxXAxisLabels"]), ct = Xt(), b = () => t.height ?? 200, ut = () => t.showGrid ?? !0, bt = () => t.showLegend ?? !0, vt = () => t.showPoints ?? !0, H = () => t.showArea ?? !1, S = () => t.smooth ?? !0, B = () => t.animate ?? !0, W = () => t.variant ?? "default", nt = () => Vt(t.yMin), st = () => Vt(t.yMax), rt = () => t.formatYTick ?? ((n) => String(Math.round(n))), gt = () => t.formatTooltipValue ?? ((n) => Ie(n, 2)), C = () => {
27
17
  const n = Vt(t.maxXAxisLabels);
28
18
  if (!n) return;
29
19
  const o = Math.floor(n);
@@ -38,9 +28,9 @@ function zt(U) {
38
28
  const s = ne(() => Y), d = K(() => {
39
29
  const n = s()?.width;
40
30
  return !n || !Number.isFinite(n) ? 400 : Math.max(240, Math.round(n));
41
- }), L = () => `0 0 ${d()} ${I()}`, [v, p] = pt(null);
31
+ }), L = () => `0 0 ${d()} ${I()}`, [v, M] = Mt(null);
42
32
  let _;
43
- const Z = 100, M = 10, V = 24, q = 10, [G, E] = pt(Z);
33
+ const Z = 100, p = 10, V = 24, q = 10, [G, E] = Mt(Z);
44
34
  let O;
45
35
  const Q = [];
46
36
  let it = "", mt = null;
@@ -73,28 +63,28 @@ ${w.join(`
73
63
  `)}`;
74
64
  if (F === it) return;
75
65
  it = F;
76
- const u = requestAnimationFrame(() => {
77
- const x = O?.isConnected ? O.getComputedTextLength() : 0, P = Q.reduce((g, h) => h?.isConnected ? Math.max(g, h.getComputedTextLength()) : g, 0), a = Math.ceil(Math.max(Z, M + x + q, V + P + q));
66
+ const h = requestAnimationFrame(() => {
67
+ const x = O?.isConnected ? O.getComputedTextLength() : 0, P = Q.reduce((g, u) => u?.isConnected ? Math.max(g, u.getComputedTextLength()) : g, 0), a = Math.ceil(Math.max(Z, p + x + q, V + P + q));
78
68
  G() !== a && E(a);
79
69
  });
80
- Mt(() => cancelAnimationFrame(u));
70
+ pt(() => cancelAnimationFrame(h));
81
71
  });
82
72
  const at = K(() => {
83
73
  const n = t.series.flatMap((a) => a.data).filter((a) => Number.isFinite(a)), o = n.length > 0 ? Math.min(0, ...n) : 0, y = n.length > 0 ? Math.max(...n) : 0, w = nt() ?? o, F = st() ?? y;
84
- let u = Number.isFinite(w) ? w : 0, x = Number.isFinite(F) ? F : 0;
85
- x < u && ([u, x] = [x, u]), x === u && (x = u + 1);
86
- const P = x - u || 1;
74
+ let h = Number.isFinite(w) ? w : 0, x = Number.isFinite(F) ? F : 0;
75
+ x < h && ([h, x] = [x, h]), x === h && (x = h + 1);
76
+ const P = x - h || 1;
87
77
  return {
88
- min: u,
78
+ min: h,
89
79
  max: x,
90
80
  range: P
91
81
  };
92
82
  }), $t = K(() => {
93
83
  const n = at(), o = t.series[0]?.data.length ?? 0, y = (d() - e.left - e.right) / Math.max(1, o - 1), w = (b() - e.top - e.bottom) / n.range;
94
- return t.series.map((F) => F.data.map((u, x) => ({
84
+ return t.series.map((F) => F.data.map((h, x) => ({
95
85
  x: e.left + x * y,
96
- y: b() - e.bottom - (u - n.min) * w,
97
- value: u
86
+ y: b() - e.bottom - (h - n.min) * w,
87
+ value: h
98
88
  })));
99
89
  }), xt = K(() => {
100
90
  const n = v();
@@ -114,8 +104,8 @@ ${w.join(`
114
104
  if (!n) return;
115
105
  const o = n.x, y = t.series[0]?.data.length ?? 0;
116
106
  if (y === 0) return;
117
- const w = (d() - e.left - e.right) / Math.max(1, y - 1), F = o - e.left, u = Math.round(F / w), x = Math.max(0, Math.min(y - 1, u));
118
- o >= e.left && o <= d() - e.right ? p(x) : p(null);
107
+ const w = (d() - e.left - e.right) / Math.max(1, y - 1), F = o - e.left, h = Math.round(F / w), x = Math.max(0, Math.min(y - 1, h));
108
+ o >= e.left && o <= d() - e.right ? M(x) : M(null);
119
109
  }, Ut = (n) => {
120
110
  if (At = n.clientX, Gt = n.clientY, Pt = !0, dt === null) {
121
111
  if (typeof requestAnimationFrame > "u") {
@@ -125,31 +115,31 @@ ${w.join(`
125
115
  dt = requestAnimationFrame(Rt);
126
116
  }
127
117
  }, Zt = () => {
128
- Pt = !1, dt !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(dt), dt = null), p(null);
118
+ Pt = !1, dt !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(dt), dt = null), M(null);
129
119
  };
130
- Mt(() => {
120
+ pt(() => {
131
121
  dt !== null && typeof cancelAnimationFrame < "u" && (cancelAnimationFrame(dt), dt = null);
132
122
  });
133
123
  const Nt = (n, o = !1) => {
134
124
  if (n.length === 0) return "";
135
- const y = at(), w = (d() - e.left - e.right) / Math.max(1, n.length - 1), F = (b() - e.top - e.bottom) / y.range, u = n.map((x, P) => ({
125
+ const y = at(), w = (d() - e.left - e.right) / Math.max(1, n.length - 1), F = (b() - e.top - e.bottom) / y.range, h = n.map((x, P) => ({
136
126
  x: e.left + P * w,
137
127
  y: b() - e.bottom - (x - y.min) * F
138
128
  }));
139
- if (S() && u.length > 2) {
140
- let x = `M ${u[0].x},${u[0].y}`;
141
- for (let P = 0; P < u.length - 1; P++) {
142
- const a = u[P === 0 ? 0 : P - 1], g = u[P], h = u[P + 1], i = u[P + 2 >= u.length ? P + 1 : P + 2], f = 0.3, l = g.x + (h.x - a.x) * f, k = g.y + (h.y - a.y) * f, X = h.x - (i.x - g.x) * f, j = h.y - (i.y - g.y) * f;
143
- x += ` C ${l},${k} ${X},${j} ${h.x},${h.y}`;
129
+ if (S() && h.length > 2) {
130
+ let x = `M ${h[0].x},${h[0].y}`;
131
+ for (let P = 0; P < h.length - 1; P++) {
132
+ const a = h[P === 0 ? 0 : P - 1], g = h[P], u = h[P + 1], i = h[P + 2 >= h.length ? P + 1 : P + 2], f = 0.3, l = g.x + (u.x - a.x) * f, k = g.y + (u.y - a.y) * f, X = u.x - (i.x - g.x) * f, j = u.y - (i.y - g.y) * f;
133
+ x += ` C ${l},${k} ${X},${j} ${u.x},${u.y}`;
144
134
  }
145
- return o && (x += ` L ${u[u.length - 1].x},${b() - e.bottom}`, x += ` L ${u[0].x},${b() - e.bottom} Z`), x;
135
+ return o && (x += ` L ${h[h.length - 1].x},${b() - e.bottom}`, x += ` L ${h[0].x},${b() - e.bottom} Z`), x;
146
136
  } else {
147
- let x = `M ${u[0].x},${u[0].y}`;
148
- for (let P = 1; P < u.length; P++)
149
- x += ` L ${u[P].x},${u[P].y}`;
150
- return o && (x += ` L ${u[u.length - 1].x},${b() - e.bottom}`, x += ` L ${u[0].x},${b() - e.bottom} Z`), x;
137
+ let x = `M ${h[0].x},${h[0].y}`;
138
+ for (let P = 1; P < h.length; P++)
139
+ x += ` L ${h[P].x},${h[P].y}`;
140
+ return o && (x += ` L ${h[h.length - 1].x},${b() - e.bottom}`, x += ` L ${h[0].x},${b() - e.bottom} Z`), x;
151
141
  }
152
- }, [kt, Ht] = pt(B() ? 0 : 1);
142
+ }, [kt, Ht] = Mt(B() ? 0 : 1);
153
143
  wt(() => {
154
144
  if (!B()) {
155
145
  Ht(1);
@@ -158,21 +148,21 @@ ${w.join(`
158
148
  let n, o;
159
149
  const y = (w) => {
160
150
  n || (n = w);
161
- const F = w - n, u = Math.min(F / 800, 1);
162
- Ht(u), u < 1 && (o = requestAnimationFrame(y));
151
+ const F = w - n, h = Math.min(F / 800, 1);
152
+ Ht(h), h < 1 && (o = requestAnimationFrame(y));
163
153
  };
164
- o = requestAnimationFrame(y), Mt(() => cancelAnimationFrame(o));
154
+ o = requestAnimationFrame(y), pt(() => cancelAnimationFrame(o));
165
155
  });
166
156
  const Ot = K(() => {
167
- const n = at(), o = 5, y = n.range / (o - 1), w = b() - e.top - e.bottom, F = b() - e.bottom, u = [];
157
+ const n = at(), o = 5, y = n.range / (o - 1), w = b() - e.top - e.bottom, F = b() - e.bottom, h = [];
168
158
  for (let x = 0; x < o; x += 1) {
169
159
  const P = n.min + y * x;
170
- u.push({
160
+ h.push({
171
161
  value: P,
172
162
  y: F - (P - n.min) / n.range * w
173
163
  });
174
164
  }
175
- return u;
165
+ return h;
176
166
  }), ft = (n, o) => o.color ?? Lt[n % Lt.length], jt = K(() => re({
177
167
  labels: t.labels,
178
168
  viewBoxWidth: d(),
@@ -191,7 +181,7 @@ ${w.join(`
191
181
  if (!o || o >= n)
192
182
  return new Set(Array.from({
193
183
  length: n
194
- }, (F, u) => u));
184
+ }, (F, h) => h));
195
185
  if (o === 1) return /* @__PURE__ */ new Set([n - 1]);
196
186
  const y = /* @__PURE__ */ new Set(), w = Math.ceil((n - 1) / (o - 1));
197
187
  for (let F = 0; F < n; F += w)
@@ -209,7 +199,7 @@ ${w.join(`
209
199
  return y;
210
200
  });
211
201
  return (() => {
212
- var n = oe(), o = n.firstChild, y = o.firstChild, w = y.nextSibling, F = w.nextSibling, u = F.nextSibling, x = Y;
202
+ var n = oe(), o = n.firstChild, y = o.firstChild, w = y.nextSibling, F = w.nextSibling, h = F.nextSibling, x = Y;
213
203
  typeof x == "function" ? St(x, n) : Y = n, c(n, $(ot, {
214
204
  get when() {
215
205
  return t.title;
@@ -225,19 +215,19 @@ ${w.join(`
225
215
  return t.series;
226
216
  },
227
217
  children: (a, g) => (() => {
228
- var h = se(), i = h.firstChild, f = i.nextSibling;
218
+ var u = se(), i = u.firstChild, f = i.nextSibling;
229
219
  return T((l) => {
230
220
  var k = `gradient-${ct}-${g()}`, X = ft(g(), a), j = ft(g(), a);
231
- return k !== l.e && r(h, "id", l.e = k), X !== l.t && J(i, "stop-color", l.t = X), j !== l.a && J(f, "stop-color", l.a = j), l;
221
+ return k !== l.e && r(u, "id", l.e = k), X !== l.t && J(i, "stop-color", l.t = X), j !== l.a && J(f, "stop-color", l.a = j), l;
232
222
  }, {
233
223
  e: void 0,
234
224
  t: void 0,
235
225
  a: void 0
236
- }), h;
226
+ }), u;
237
227
  })()
238
228
  })), c(o, $(ot, {
239
229
  get when() {
240
- return ht();
230
+ return ut();
241
231
  },
242
232
  get children() {
243
233
  var a = Et();
@@ -246,16 +236,16 @@ ${w.join(`
246
236
  return Ot();
247
237
  },
248
238
  children: (g) => (() => {
249
- var h = Dt();
239
+ var u = Dt();
250
240
  return T((i) => {
251
241
  var f = e.left, l = g.y, k = d() - e.right, X = g.y;
252
- return f !== i.e && r(h, "x1", i.e = f), l !== i.t && r(h, "y1", i.t = l), k !== i.a && r(h, "x2", i.a = k), X !== i.o && r(h, "y2", i.o = X), i;
242
+ return f !== i.e && r(u, "x1", i.e = f), l !== i.t && r(u, "y1", i.t = l), k !== i.a && r(u, "x2", i.a = k), X !== i.o && r(u, "y2", i.o = X), i;
253
243
  }, {
254
244
  e: void 0,
255
245
  t: void 0,
256
246
  a: void 0,
257
247
  o: void 0
258
- }), h;
248
+ }), u;
259
249
  })()
260
250
  })), a;
261
251
  }
@@ -265,20 +255,20 @@ ${w.join(`
265
255
  },
266
256
  children: (a) => (() => {
267
257
  var g = ie();
268
- return c(g, () => rt()(a.value)), T((h) => {
258
+ return c(g, () => rt()(a.value)), T((u) => {
269
259
  var i = e.left - 6, f = a.y;
270
- return i !== h.e && r(g, "x", h.e = i), f !== h.t && r(g, "y", h.t = f), h;
260
+ return i !== u.e && r(g, "x", u.e = i), f !== u.t && r(g, "y", u.t = f), u;
271
261
  }, {
272
262
  e: void 0,
273
263
  t: void 0
274
264
  }), g;
275
265
  })()
276
- })), c(u, $(z, {
266
+ })), c(h, $(z, {
277
267
  get each() {
278
268
  return Qt();
279
269
  },
280
270
  children: (a) => {
281
- const g = a.idx === 0, h = a.idx === t.labels.length - 1, i = g ? "start" : h ? "end" : "middle";
271
+ const g = a.idx === 0, u = a.idx === t.labels.length - 1, i = g ? "start" : u ? "end" : "middle";
282
272
  return (() => {
283
273
  var f = le();
284
274
  return r(f, "text-anchor", i), c(f, () => a.label), T((l) => {
@@ -300,16 +290,16 @@ ${w.join(`
300
290
  return t.series;
301
291
  },
302
292
  children: (a, g) => (() => {
303
- var h = ce();
293
+ var u = ce();
304
294
  return T((i) => {
305
295
  var f = Nt(a.data, !0), l = W() === "gradient" ? `url(#gradient-${ct}-${g()})` : ft(g(), a), k = W() === "gradient" ? 1 : 0.15, X = kt();
306
- return f !== i.e && r(h, "d", i.e = f), l !== i.t && r(h, "fill", i.t = l), k !== i.a && r(h, "fill-opacity", i.a = k), X !== i.o && J(h, "opacity", i.o = X), i;
296
+ return f !== i.e && r(u, "d", i.e = f), l !== i.t && r(u, "fill", i.t = l), k !== i.a && r(u, "fill-opacity", i.a = k), X !== i.o && J(u, "opacity", i.o = X), i;
307
297
  }, {
308
298
  e: void 0,
309
299
  t: void 0,
310
300
  a: void 0,
311
301
  o: void 0
312
- }), h;
302
+ }), u;
313
303
  })()
314
304
  });
315
305
  }
@@ -318,11 +308,11 @@ ${w.join(`
318
308
  return t.series;
319
309
  },
320
310
  children: (a, g) => {
321
- const h = K(() => Nt(a.data)), i = K(() => h().length * 2);
311
+ const u = K(() => Nt(a.data)), i = K(() => u().length * 2);
322
312
  return (() => {
323
313
  var f = de();
324
314
  return T((l) => {
325
- var k = h(), X = ft(g(), a), j = B() ? i() : "none", m = B() ? i() * (1 - kt()) : 0;
315
+ var k = u(), X = ft(g(), a), j = B() ? i() : "none", m = B() ? i() * (1 - kt()) : 0;
326
316
  return k !== l.e && r(f, "d", l.e = k), X !== l.t && r(f, "stroke", l.t = X), j !== l.a && J(f, "stroke-dasharray", l.a = j), m !== l.o && J(f, "stroke-dashoffset", l.o = m), l;
327
317
  }, {
328
318
  e: void 0,
@@ -342,22 +332,22 @@ ${w.join(`
342
332
  return t.series;
343
333
  },
344
334
  children: (a, g) => {
345
- const h = K(() => (d() - e.left - e.right) / Math.max(1, a.data.length - 1)), i = K(() => (b() - e.top - e.bottom) / at().range);
335
+ const u = K(() => (d() - e.left - e.right) / Math.max(1, a.data.length - 1)), i = K(() => (b() - e.top - e.bottom) / at().range);
346
336
  return $(z, {
347
337
  get each() {
348
338
  return a.data;
349
339
  },
350
340
  children: (f, l) => {
351
- const k = () => e.left + l() * h(), X = () => b() - e.bottom - (f - at().min) * i(), j = () => v() === l();
341
+ const k = () => e.left + l() * u(), X = () => b() - e.bottom - (f - at().min) * i(), j = () => v() === l();
352
342
  return (() => {
353
- var m = ue(), R = m.firstChild;
343
+ var m = he(), R = m.firstChild;
354
344
  return c(R, () => `${t.labels[l()] ?? ""}: ${gt()(f, {
355
345
  series: a,
356
346
  seriesIndex: g(),
357
347
  pointIndex: l()
358
348
  })}`), T((N) => {
359
- var lt = k(), tt = X(), ut = j() ? 6 : 4, yt = j() ? ft(g(), a) : "var(--background)", et = ft(g(), a), Ct = kt();
360
- return lt !== N.e && r(m, "cx", N.e = lt), tt !== N.t && r(m, "cy", N.t = tt), ut !== N.a && r(m, "r", N.a = ut), yt !== N.o && r(m, "fill", N.o = yt), et !== N.i && r(m, "stroke", N.i = et), Ct !== N.n && J(m, "opacity", N.n = Ct), N;
349
+ var lt = k(), tt = X(), ht = j() ? 6 : 4, yt = j() ? ft(g(), a) : "var(--background)", et = ft(g(), a), Ct = kt();
350
+ return lt !== N.e && r(m, "cx", N.e = lt), tt !== N.t && r(m, "cy", N.t = tt), ht !== N.a && r(m, "r", N.a = ht), yt !== N.o && r(m, "fill", N.o = yt), et !== N.i && r(m, "stroke", N.i = et), Ct !== N.n && J(m, "opacity", N.n = Ct), N;
361
351
  }, {
362
352
  e: void 0,
363
353
  t: void 0,
@@ -378,14 +368,14 @@ ${w.join(`
378
368
  },
379
369
  get children() {
380
370
  return (() => {
381
- const a = xt(), g = a.idx, h = a.positions, i = a.xPos, f = 18 + t.series.length * 18, l = G(), k = i + 12 + l <= d() - e.right, X = i - 12 - l >= e.left;
371
+ const a = xt(), g = a.idx, u = a.positions, i = a.xPos, f = 18 + t.series.length * 18, l = G(), k = i + 12 + l <= d() - e.right, X = i - 12 - l >= e.left;
382
372
  let j = k ? i + 12 : i - l - 12;
383
373
  if (!k && !X) {
384
374
  const m = e.left, R = d() - e.right - l;
385
375
  j = R > m ? Math.min(Math.max(j, m), R) : m;
386
376
  }
387
377
  return [(() => {
388
- var m = he();
378
+ var m = ue();
389
379
  return r(m, "x1", i), r(m, "x2", i), T((R) => {
390
380
  var N = e.top, lt = b() - e.bottom;
391
381
  return N !== R.e && r(m, "y1", R.e = N), lt !== R.t && r(m, "y2", R.t = lt), R;
@@ -394,14 +384,14 @@ ${w.join(`
394
384
  t: void 0
395
385
  }), m;
396
386
  })(), $(z, {
397
- each: h,
387
+ each: u,
398
388
  children: (m, R) => {
399
389
  const N = m[g];
400
390
  return N ? (() => {
401
391
  var lt = me();
402
392
  return T((tt) => {
403
- var ut = N.x, yt = N.y, et = ft(R(), t.series[R()]);
404
- return ut !== tt.e && r(lt, "cx", tt.e = ut), yt !== tt.t && r(lt, "cy", tt.t = yt), et !== tt.a && r(lt, "fill", tt.a = et), tt;
393
+ var ht = N.x, yt = N.y, et = ft(R(), t.series[R()]);
394
+ return ht !== tt.e && r(lt, "cx", tt.e = ht), yt !== tt.t && r(lt, "cy", tt.t = yt), et !== tt.a && r(lt, "fill", tt.a = et), tt;
405
395
  }, {
406
396
  e: void 0,
407
397
  t: void 0,
@@ -414,7 +404,7 @@ ${w.join(`
414
404
  return r(m, "x", j), r(m, "width", l), r(m, "height", f), T(() => r(m, "y", e.top)), m;
415
405
  })(), (() => {
416
406
  var m = ge(), R = O;
417
- return typeof R == "function" ? St(R, m) : O = m, r(m, "x", j + M), c(m, () => t.labels[g]), T(() => r(m, "y", e.top + 14)), m;
407
+ return typeof R == "function" ? St(R, m) : O = m, r(m, "x", j + p), c(m, () => t.labels[g]), T(() => r(m, "y", e.top + 14)), m;
418
408
  })(), $(z, {
419
409
  get each() {
420
410
  return t.series;
@@ -422,16 +412,16 @@ ${w.join(`
422
412
  children: (m, R) => {
423
413
  const N = m.data[g];
424
414
  return (() => {
425
- var lt = fe(), tt = lt.firstChild, ut = tt.nextSibling, yt = ut.firstChild;
415
+ var lt = fe(), tt = lt.firstChild, ht = tt.nextSibling, yt = ht.firstChild;
426
416
  return r(tt, "cx", j + 14), St((et) => {
427
417
  Q[R()] = et;
428
- }, ut), r(ut, "x", j + V), c(ut, () => m.name, yt), c(ut, () => gt()(N, {
418
+ }, ht), r(ht, "x", j + V), c(ht, () => m.name, yt), c(ht, () => gt()(N, {
429
419
  series: m,
430
420
  seriesIndex: R(),
431
421
  pointIndex: g
432
422
  }), null), T((et) => {
433
423
  var Ct = e.top + 28 + R() * 18, Wt = ft(R(), m), Yt = e.top + 32 + R() * 18;
434
- return Ct !== et.e && r(tt, "cy", et.e = Ct), Wt !== et.t && r(tt, "fill", et.t = Wt), Yt !== et.a && r(ut, "y", et.a = Yt), et;
424
+ return Ct !== et.e && r(tt, "cy", et.e = Ct), Wt !== et.t && r(tt, "fill", et.t = Wt), Yt !== et.a && r(ht, "y", et.a = Yt), et;
435
425
  }, {
436
426
  e: void 0,
437
427
  t: void 0,
@@ -452,15 +442,15 @@ ${w.join(`
452
442
  get each() {
453
443
  return t.series;
454
444
  },
455
- children: (g, h) => (() => {
445
+ children: (g, u) => (() => {
456
446
  var i = xe(), f = i.firstChild, l = f.nextSibling;
457
- return c(l, () => g.name), T((k) => J(f, "background", ft(h(), g))), i;
447
+ return c(l, () => g.name), T((k) => J(f, "background", ft(u(), g))), i;
458
448
  })()
459
449
  })), a;
460
450
  }
461
451
  }), null), T((a) => {
462
- var g = Tt("chart-container", t.class), h = L(), i = `${b()}px`, f = e.left, l = e.top, k = d() - e.left - e.right, X = b() - e.top - e.bottom;
463
- return g !== a.e && Ft(n, a.e = g), h !== a.t && r(o, "viewBox", a.t = h), i !== a.a && J(o, "height", a.a = i), f !== a.o && r(w, "x", a.o = f), l !== a.i && r(w, "y", a.i = l), k !== a.n && r(w, "width", a.n = k), X !== a.s && r(w, "height", a.s = X), a;
452
+ var g = Tt("chart-container", t.class), u = L(), i = `${b()}px`, f = e.left, l = e.top, k = d() - e.left - e.right, X = b() - e.top - e.bottom;
453
+ return g !== a.e && Ft(n, a.e = g), u !== a.t && r(o, "viewBox", a.t = u), i !== a.a && J(o, "height", a.a = i), f !== a.o && r(w, "x", a.o = f), l !== a.i && r(w, "y", a.i = l), k !== a.n && r(w, "width", a.n = k), X !== a.s && r(w, "height", a.s = X), a;
464
454
  }, {
465
455
  e: void 0,
466
456
  t: void 0,
@@ -481,52 +471,52 @@ function Ne(U) {
481
471
  }));
482
472
  }
483
473
  function He(U) {
484
- const [t] = _t(U, ["data", "height", "showGrid", "showValues", "animate", "variant", "class", "title"]), ct = Xt(), b = () => t.height ?? 200, ht = () => t.showGrid ?? !0, bt = () => t.showValues ?? !0, vt = () => t.animate ?? !0, H = () => t.variant ?? "default", S = {
474
+ const [t] = _t(U, ["data", "height", "showGrid", "showValues", "animate", "variant", "class", "title"]), ct = Xt(), b = () => t.height ?? 200, ut = () => t.showGrid ?? !0, bt = () => t.showValues ?? !0, vt = () => t.animate ?? !0, H = () => t.variant ?? "default", S = {
485
475
  top: 20,
486
476
  right: 20,
487
477
  bottom: 40,
488
478
  left: 45
489
479
  }, B = 400, W = () => `0 0 ${B} ${b()}`, nt = K(() => {
490
- const v = t.data.map((_) => _.value).filter((_) => Number.isFinite(_)), p = v.length > 0 ? Math.max(...v) : 0;
480
+ const v = t.data.map((_) => _.value).filter((_) => Number.isFinite(_)), M = v.length > 0 ? Math.max(...v) : 0;
491
481
  return {
492
- max: Math.max(p, 0)
482
+ max: Math.max(M, 0)
493
483
  };
494
- }), [st, rt] = pt(vt() ? 0 : 1);
484
+ }), [st, rt] = Mt(vt() ? 0 : 1);
495
485
  wt(() => {
496
486
  if (!vt()) {
497
487
  rt(1);
498
488
  return;
499
489
  }
500
- let v, p;
490
+ let v, M;
501
491
  const _ = (Z) => {
502
492
  v || (v = Z);
503
- const M = Z - v, V = Math.min(M / 600, 1), q = 1 - Math.pow(1 - V, 3);
504
- rt(q), V < 1 && (p = requestAnimationFrame(_));
493
+ const p = Z - v, V = Math.min(p / 600, 1), q = 1 - Math.pow(1 - V, 3);
494
+ rt(q), V < 1 && (M = requestAnimationFrame(_));
505
495
  };
506
- p = requestAnimationFrame(_), Mt(() => cancelAnimationFrame(p));
496
+ M = requestAnimationFrame(_), pt(() => cancelAnimationFrame(M));
507
497
  });
508
498
  const gt = 0.3, C = () => B - S.left - S.right, e = () => Math.max(1, t.data.length), I = () => C() / e(), Y = () => I() * (1 - gt), s = () => b() - S.top - S.bottom, d = () => {
509
499
  const v = nt().max;
510
500
  return Number.isFinite(v) && v > 0 ? v : 1;
511
- }, L = (v, p) => p.color ?? Lt[v % Lt.length];
501
+ }, L = (v, M) => M.color ?? Lt[v % Lt.length];
512
502
  return (() => {
513
- var v = be(), p = v.firstChild, _ = p.firstChild, Z = _.nextSibling;
503
+ var v = be(), M = v.firstChild, _ = M.firstChild, Z = _.nextSibling;
514
504
  return c(v, $(ot, {
515
505
  get when() {
516
506
  return t.title;
517
507
  },
518
508
  get children() {
519
- var M = It();
520
- return c(M, () => t.title), M;
509
+ var p = It();
510
+ return c(p, () => t.title), p;
521
511
  }
522
- }), p), c(_, $(z, {
512
+ }), M), c(_, $(z, {
523
513
  get each() {
524
514
  return t.data;
525
515
  },
526
- children: (M, V) => (() => {
516
+ children: (p, V) => (() => {
527
517
  var q = $e(), G = q.firstChild, E = G.nextSibling;
528
518
  return T((O) => {
529
- var Q = `bar-gradient-${ct}-${V()}`, it = L(V(), M), mt = L(V(), M);
519
+ var Q = `bar-gradient-${ct}-${V()}`, it = L(V(), p), mt = L(V(), p);
530
520
  return Q !== O.e && r(q, "id", O.e = Q), it !== O.t && J(G, "stop-color", O.t = it), mt !== O.a && J(E, "stop-color", O.a = mt), O;
531
521
  }, {
532
522
  e: void 0,
@@ -534,13 +524,13 @@ function He(U) {
534
524
  a: void 0
535
525
  }), q;
536
526
  })()
537
- })), c(p, $(ot, {
527
+ })), c(M, $(ot, {
538
528
  get when() {
539
- return ht();
529
+ return ut();
540
530
  },
541
531
  get children() {
542
- var M = Et();
543
- return c(M, $(z, {
532
+ var p = Et();
533
+ return c(p, $(z, {
544
534
  each: [0.25, 0.5, 0.75, 1],
545
535
  children: (V) => {
546
536
  const q = b() - S.bottom - V * (b() - S.top - S.bottom);
@@ -555,17 +545,17 @@ function He(U) {
555
545
  }), G;
556
546
  })();
557
547
  }
558
- })), M;
548
+ })), p;
559
549
  }
560
- }), Z), c(p, $(z, {
550
+ }), Z), c(M, $(z, {
561
551
  get each() {
562
552
  return t.data;
563
553
  },
564
- children: (M, V) => {
565
- const q = () => Number.isFinite(M.value) ? Math.max(0, M.value) : 0, G = () => S.left + V() * I() + (I() - Y()) / 2, E = () => q() / d() * s() * st(), O = () => b() - S.bottom - E();
554
+ children: (p, V) => {
555
+ const q = () => Number.isFinite(p.value) ? Math.max(0, p.value) : 0, G = () => S.left + V() * I() + (I() - Y()) / 2, E = () => q() / d() * s() * st(), O = () => b() - S.bottom - E();
566
556
  return (() => {
567
- var Q = pe(), it = Q.firstChild, mt = it.firstChild;
568
- return c(mt, () => `${M.label}: ${q()}`), c(Q, $(ot, {
557
+ var Q = Me(), it = Q.firstChild, mt = it.firstChild;
558
+ return c(mt, () => `${p.label}: ${q()}`), c(Q, $(ot, {
569
559
  get when() {
570
560
  return Bt(() => !!bt())() && st() > 0.8;
571
561
  },
@@ -580,7 +570,7 @@ function He(U) {
580
570
  }), D;
581
571
  }
582
572
  }), null), T((D) => {
583
- var at = G(), $t = O(), xt = Y(), dt = E(), At = H() === "gradient" ? `url(#bar-gradient-${ct}-${V()})` : L(V(), M);
573
+ var at = G(), $t = O(), xt = Y(), dt = E(), At = H() === "gradient" ? `url(#bar-gradient-${ct}-${V()})` : L(V(), p);
584
574
  return at !== D.e && r(it, "x", D.e = at), $t !== D.t && r(it, "y", D.t = $t), xt !== D.a && r(it, "width", D.a = xt), dt !== D.o && r(it, "height", D.o = dt), At !== D.i && r(it, "fill", D.i = At), D;
585
575
  }, {
586
576
  e: void 0,
@@ -595,11 +585,11 @@ function He(U) {
595
585
  get each() {
596
586
  return t.data;
597
587
  },
598
- children: (M, V) => {
588
+ children: (p, V) => {
599
589
  const q = () => S.left + V() * I() + I() / 2;
600
590
  return (() => {
601
- var G = Me();
602
- return c(G, () => M.label), T((E) => {
591
+ var G = pe();
592
+ return c(G, () => p.label), T((E) => {
603
593
  var O = q(), Q = b() - S.bottom + 14;
604
594
  return O !== E.e && r(G, "x", E.e = O), Q !== E.t && r(G, "y", E.t = Q), E;
605
595
  }, {
@@ -608,9 +598,9 @@ function He(U) {
608
598
  }), G;
609
599
  })();
610
600
  }
611
- })), T((M) => {
601
+ })), T((p) => {
612
602
  var V = Tt("chart-container", t.class), q = W(), G = `${b()}px`;
613
- return V !== M.e && Ft(v, M.e = V), q !== M.t && r(p, "viewBox", M.t = q), G !== M.a && J(p, "height", M.a = G), M;
603
+ return V !== p.e && Ft(v, p.e = V), q !== p.t && r(M, "viewBox", p.t = q), G !== p.a && J(M, "height", p.a = G), p;
614
604
  }, {
615
605
  e: void 0,
616
606
  t: void 0,
@@ -619,7 +609,7 @@ function He(U) {
619
609
  })();
620
610
  }
621
611
  function Oe(U) {
622
- const [t] = _t(U, ["data", "size", "innerRadius", "showLegend", "animate", "class", "title"]), ct = Xt(), b = () => t.size ?? 200, ht = () => t.innerRadius ?? 0, bt = () => t.showLegend ?? !0, vt = () => t.animate ?? !0, H = () => b() / 2, S = () => b() / 2 * 0.85, B = () => S() * ht(), W = K(() => t.data.reduce((C, e) => C + e.value, 0)), nt = K(() => {
612
+ const [t] = _t(U, ["data", "size", "innerRadius", "showLegend", "animate", "class", "title"]), ct = Xt(), b = () => t.size ?? 200, ut = () => t.innerRadius ?? 0, bt = () => t.showLegend ?? !0, vt = () => t.animate ?? !0, H = () => b() / 2, S = () => b() / 2 * 0.85, B = () => S() * ut(), W = K(() => t.data.reduce((C, e) => C + e.value, 0)), nt = K(() => {
623
613
  let C = -Math.PI / 2;
624
614
  return t.data.map((e, I) => {
625
615
  const Y = e.value / W(), s = Y * Math.PI * 2, d = {
@@ -631,7 +621,7 @@ function Oe(U) {
631
621
  };
632
622
  return C += s, d;
633
623
  });
634
- }), [st, rt] = pt(vt() ? 0 : 1);
624
+ }), [st, rt] = Mt(vt() ? 0 : 1);
635
625
  wt(() => {
636
626
  if (!vt()) {
637
627
  rt(1);
@@ -643,7 +633,7 @@ function Oe(U) {
643
633
  const s = Y - C, d = Math.min(s / 800, 1), L = 1 - Math.pow(1 - d, 2);
644
634
  rt(L), d < 1 && (e = requestAnimationFrame(I));
645
635
  };
646
- e = requestAnimationFrame(I), Mt(() => cancelAnimationFrame(e));
636
+ e = requestAnimationFrame(I), pt(() => cancelAnimationFrame(e));
647
637
  });
648
638
  const gt = (C, e) => {
649
639
  const I = C + (e - C) * st(), Y = {
@@ -659,7 +649,7 @@ function Oe(U) {
659
649
  x: H() + Math.cos(C) * B(),
660
650
  y: H() + Math.sin(C) * B()
661
651
  }, v = I - C > Math.PI ? 1 : 0;
662
- return ht() > 0 ? `
652
+ return ut() > 0 ? `
663
653
  M ${Y.x} ${Y.y}
664
654
  A ${S()} ${S()} 0 ${v} 1 ${s.x} ${s.y}
665
655
  L ${d.x} ${d.y}
@@ -687,10 +677,10 @@ function Oe(U) {
687
677
  return nt();
688
678
  },
689
679
  children: (s, d) => (() => {
690
- var L = _e(), v = L.firstChild, p = v.nextSibling;
680
+ var L = _e(), v = L.firstChild, M = v.nextSibling;
691
681
  return T((_) => {
692
- var Z = `pie-gradient-${ct}-${d()}`, M = s.color, V = s.color;
693
- return Z !== _.e && r(L, "id", _.e = Z), M !== _.t && J(v, "stop-color", _.t = M), V !== _.a && J(p, "stop-color", _.a = V), _;
682
+ var Z = `pie-gradient-${ct}-${d()}`, p = s.color, V = s.color;
683
+ return Z !== _.e && r(L, "id", _.e = Z), p !== _.t && J(v, "stop-color", _.t = p), V !== _.a && J(M, "stop-color", _.a = V), _;
694
684
  }, {
695
685
  e: void 0,
696
686
  t: void 0,
@@ -703,9 +693,9 @@ function Oe(U) {
703
693
  },
704
694
  children: (s, d) => (() => {
705
695
  var L = Pe(), v = L.firstChild;
706
- return c(v, () => `${s.label}: ${s.value} (${Math.round(s.percentage * 100)}%)`), T((p) => {
696
+ return c(v, () => `${s.label}: ${s.value} (${Math.round(s.percentage * 100)}%)`), T((M) => {
707
697
  var _ = gt(s.startAngle, s.endAngle), Z = `url(#pie-gradient-${ct}-${d()})`;
708
- return _ !== p.e && r(L, "d", p.e = _), Z !== p.t && r(L, "fill", p.t = Z), p;
698
+ return _ !== M.e && r(L, "d", M.e = _), Z !== M.t && r(L, "fill", M.t = Z), M;
709
699
  }, {
710
700
  e: void 0,
711
701
  t: void 0
@@ -713,7 +703,7 @@ function Oe(U) {
713
703
  })()
714
704
  }), null), c(I, $(ot, {
715
705
  get when() {
716
- return ht() > 0;
706
+ return ut() > 0;
717
707
  },
718
708
  get children() {
719
709
  return [(() => {
@@ -747,14 +737,14 @@ function Oe(U) {
747
737
  return nt();
748
738
  },
749
739
  children: (d) => (() => {
750
- var L = Se(), v = L.firstChild, p = v.nextSibling, _ = p.nextSibling, Z = _.firstChild;
751
- return c(p, () => d.label), c(_, () => Math.round(d.percentage * 100), Z), T((M) => J(v, "background", d.color)), L;
740
+ var L = Se(), v = L.firstChild, M = v.nextSibling, _ = M.nextSibling, Z = _.firstChild;
741
+ return c(M, () => d.label), c(_, () => Math.round(d.percentage * 100), Z), T((p) => J(v, "background", d.color)), L;
752
742
  })()
753
743
  })), s;
754
744
  }
755
745
  }), null), T((s) => {
756
- var d = Tt("chart-container chart-pie-container", t.class), L = `0 0 ${b()} ${b()}`, v = `${b()}px`, p = `${b()}px`;
757
- return d !== s.e && Ft(C, s.e = d), L !== s.t && r(I, "viewBox", s.t = L), v !== s.a && J(I, "width", s.a = v), p !== s.o && J(I, "height", s.o = p), s;
746
+ var d = Tt("chart-container chart-pie-container", t.class), L = `0 0 ${b()} ${b()}`, v = `${b()}px`, M = `${b()}px`;
747
+ return d !== s.e && Ft(C, s.e = d), L !== s.t && r(I, "viewBox", s.t = L), v !== s.a && J(I, "width", s.a = v), M !== s.o && J(I, "height", s.o = M), s;
758
748
  }, {
759
749
  e: void 0,
760
750
  t: void 0,
@@ -764,17 +754,17 @@ function Oe(U) {
764
754
  })();
765
755
  }
766
756
  function We(U) {
767
- const [t] = _t(U, ["series", "labels", "height", "maxPoints", "onUpdate", "updateInterval", "showGrid", "showLegend", "class", "title", "realtime", "smooth", "yMin", "yMax", "formatYTick", "formatTooltipValue", "maxXAxisLabels"]), ct = () => t.maxPoints ?? 20, b = () => t.updateInterval ?? 2e3, ht = () => t.realtime ?? !1, bt = () => t.smooth ?? !0, [vt, H] = pt(qt(() => t.series.map((W) => ({
757
+ const [t] = _t(U, ["series", "labels", "height", "maxPoints", "onUpdate", "updateInterval", "showGrid", "showLegend", "class", "title", "realtime", "smooth", "yMin", "yMax", "formatYTick", "formatTooltipValue", "maxXAxisLabels"]), ct = () => t.maxPoints ?? 20, b = () => t.updateInterval ?? 2e3, ut = () => t.realtime ?? !1, bt = () => t.smooth ?? !0, [vt, H] = Mt(qt(() => t.series.map((W) => ({
768
758
  ...W,
769
759
  data: [...W.data]
770
- })))), [S, B] = pt(qt(() => [...t.labels]));
760
+ })))), [S, B] = Mt(qt(() => [...t.labels]));
771
761
  return wt(() => {
772
- ht() || (H(t.series.map((W) => ({
762
+ ut() || (H(t.series.map((W) => ({
773
763
  ...W,
774
764
  data: [...W.data]
775
765
  }))), B([...t.labels]));
776
766
  }), wt(() => {
777
- if (!ht() || !t.onUpdate) return;
767
+ if (!ut() || !t.onUpdate) return;
778
768
  const W = setInterval(() => {
779
769
  const nt = t.onUpdate();
780
770
  nt && (H((st) => st.map((rt, gt) => {
@@ -788,7 +778,7 @@ function We(U) {
788
778
  return rt.length > ct() && rt.shift(), rt;
789
779
  }));
790
780
  }, b());
791
- Mt(() => clearInterval(W));
781
+ pt(() => clearInterval(W));
792
782
  }), (() => {
793
783
  var W = Te(), nt = W.firstChild;
794
784
  return c(nt, $(ot, {
@@ -801,7 +791,7 @@ function We(U) {
801
791
  }
802
792
  }), null), c(nt, $(ot, {
803
793
  get when() {
804
- return ht();
794
+ return ut();
805
795
  },
806
796
  get children() {
807
797
  return Fe();