@mechane-ai/elements 0.25.0 → 0.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/README.md +9 -6
  2. package/dist/ai.js +56 -56
  3. package/dist/{categorical-values-CPRt9uzI.js → categorical-values-DqoH9l1M.js} +2 -2
  4. package/dist/chart-frame-CYdrUwvP.js +239 -0
  5. package/dist/{chart-input-DDAjzy-O.js → chart-input--Q3Jdono.js} +4 -3
  6. package/dist/charts/cartesian.js +527 -434
  7. package/dist/charts/distribution.js +134 -126
  8. package/dist/charts/graph.js +46 -43
  9. package/dist/charts/hierarchy.js +28 -26
  10. package/dist/charts/matrix.js +81 -77
  11. package/dist/charts/timeline.js +87 -80
  12. package/dist/charts.js +1 -1
  13. package/dist/{code-block-DENC5fD_.js → code-block-DPeyW4sm.js} +3 -3
  14. package/dist/collections.js +55 -54
  15. package/dist/content/code.js +1 -1
  16. package/dist/content/diff.js +10 -10
  17. package/dist/content/link.js +1 -1
  18. package/dist/content/markdown.js +2 -2
  19. package/dist/content/tree.js +2 -2
  20. package/dist/{content-link-CGIua9If.js → content-link-5oRGjDHa.js} +1 -1
  21. package/dist/content.js +18 -18
  22. package/dist/elements.css +22 -0
  23. package/dist/feedback.js +1 -1
  24. package/dist/forms/dates.js +7 -7
  25. package/dist/forms.js +1 -1
  26. package/dist/index.js +1 -1
  27. package/dist/layout.js +125 -97
  28. package/dist/navigation/commands.js +1 -1
  29. package/dist/navigation.js +61 -25
  30. package/dist/packages/charts/src/cartesian/bar-chart.d.ts +5 -4
  31. package/dist/packages/charts/src/cartesian/breakdown-bar.d.ts +3 -2
  32. package/dist/packages/charts/src/cartesian/index.d.ts +2 -2
  33. package/dist/packages/charts/src/cartesian/scatter-plot.d.ts +2 -1
  34. package/dist/packages/charts/src/cartesian/time-series.d.ts +12 -3
  35. package/dist/packages/charts/src/chart-frame.d.ts +15 -7
  36. package/dist/packages/charts/src/chart-input.d.ts +3 -1
  37. package/dist/packages/charts/src/chart-inspection.d.ts +3 -1
  38. package/dist/packages/charts/src/chart-series-summary.d.ts +6 -0
  39. package/dist/packages/charts/src/chart-theme.d.ts +5 -0
  40. package/dist/packages/charts/src/distribution/ecdf.d.ts +3 -2
  41. package/dist/packages/charts/src/distribution/histogram.d.ts +3 -2
  42. package/dist/packages/charts/src/distribution/interval-plot.d.ts +3 -2
  43. package/dist/packages/charts/src/distribution/ranked-bars.d.ts +3 -2
  44. package/dist/packages/charts/src/graph/relation-graph.d.ts +3 -2
  45. package/dist/packages/charts/src/hierarchy/treemap.d.ts +3 -2
  46. package/dist/packages/charts/src/index.d.ts +1 -1
  47. package/dist/packages/charts/src/matrix/matrix.d.ts +3 -2
  48. package/dist/packages/charts/src/matrix/token-heatmap.d.ts +3 -2
  49. package/dist/packages/charts/src/timeline/waterfall.d.ts +4 -1
  50. package/dist/packages/core/src/index.d.ts +2 -0
  51. package/dist/packages/core/src/section-heading.d.ts +8 -0
  52. package/dist/packages/layout/src/collection-layout.d.ts +6 -0
  53. package/dist/packages/layout/src/detail-page.d.ts +2 -1
  54. package/dist/packages/layout/src/index.d.ts +4 -0
  55. package/dist/packages/layout/src/record-page.d.ts +2 -1
  56. package/dist/packages/layout/src/report-content.d.ts +6 -0
  57. package/dist/packages/navigation/src/content-tabs.d.ts +17 -0
  58. package/dist/packages/navigation/src/index.d.ts +2 -0
  59. package/dist/{pierre-diff-CHQsoQSZ.js → pierre-diff-C3U_qae6.js} +1 -1
  60. package/dist/{pierre-theme-CLgk9v3e.js → pierre-theme-DsrSwl5m.js} +19 -20
  61. package/dist/{pierre-tree-C3nKYyoN.js → pierre-tree-KSFewJrY.js} +4 -4
  62. package/dist/{src-CQOgWIzP.js → src-DYwAhQHt.js} +98 -98
  63. package/dist/{src-DLReNPV9.js → src-E3Or8tkO.js} +38 -18
  64. package/dist/{src-DHYcohZP.js → src-eWcNz_oB.js} +25 -26
  65. package/dist/tokens.js +1 -3
  66. package/dist/{tokens.stylex-DTHHFbyl.js → tokens.stylex-BoRZ3D8s.js} +92 -12
  67. package/package.json +1 -1
  68. package/dist/chart-frame-CNr8M_b2.js +0 -166
  69. package/dist/constants.stylex-BILvnwUk.js +0 -84
@@ -1,20 +1,20 @@
1
- import { d as e, u as t } from "../src-DHYcohZP.js";
2
- import { i as n, n as r, r as i, t as a } from "../categorical-values-CPRt9uzI.js";
3
- import { E as o } from "../src-DLReNPV9.js";
1
+ import { d as e, u as t } from "../src-eWcNz_oB.js";
2
+ import { i as n, n as r, r as i, t as a } from "../categorical-values-DqoH9l1M.js";
3
+ import { D as o } from "../src-E3Or8tkO.js";
4
4
  import { t as s } from "../use-scroll-tab-index-Dxpdh4W7.js";
5
5
  import { s as c } from "../src-d7EAi61b.js";
6
- import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-CNr8M_b2.js";
7
- import { n as h, r as g, t as _ } from "../chart-input-DDAjzy-O.js";
8
- import { t as v } from "../plot-width--OgdohB5.js";
9
- import { g as y } from "../src-CQOgWIzP.js";
10
- import { r as ee } from "../tokens.stylex-DTHHFbyl.js";
11
- import * as b from "@stylexjs/stylex";
12
- import { useEffect as x, useId as S, useMemo as te, useRef as ne, useState as C } from "react";
6
+ import { a as l, n as u, o as d, r as f, s as p, t as m } from "../chart-frame-CYdrUwvP.js";
7
+ import { n as h, r as g, t as _ } from "../chart-input--Q3Jdono.js";
8
+ import { r as v } from "../tokens.stylex-BoRZ3D8s.js";
9
+ import { t as y } from "../plot-width--OgdohB5.js";
10
+ import { g as b } from "../src-DYwAhQHt.js";
11
+ import * as x from "@stylexjs/stylex";
12
+ import { useEffect as ee, useId as S, useMemo as te, useRef as ne, useState as C } from "react";
13
13
  import { Fragment as w, jsx as T, jsxs as E } from "react/jsx-runtime";
14
- import { scaleBand as D, scaleLinear as O } from "@visx/scale";
15
- import { AreaClosed as k, Bar as A, LinePath as re } from "@visx/shape";
14
+ import { scaleBand as re, scaleLinear as D } from "@visx/scale";
15
+ import { AreaClosed as ie, Bar as ae, LinePath as O } from "@visx/shape";
16
16
  // packages/charts/src/chart-cursor.tsx
17
- function ie({ x: e, top: t, bottom: n, width: r }) {
17
+ function oe({ x: e, top: t, bottom: n, width: r }) {
18
18
  return /* @__PURE__ */ E("g", {
19
19
  "aria-hidden": !0,
20
20
  className: "xlshs6z xgs60n x17y187c xbabvq0 x47corl",
@@ -34,7 +34,7 @@ function ie({ x: e, top: t, bottom: n, width: r }) {
34
34
  });
35
35
  }
36
36
  // packages/charts/src/chart-data.tsx
37
- function ae({ title: e, children: t }) {
37
+ function se({ title: e, children: t }) {
38
38
  let n = s();
39
39
  return /* @__PURE__ */ E(c.Root, { children: [/* @__PURE__ */ T(c.Trigger, {
40
40
  render: /* @__PURE__ */ T(o, {}),
@@ -56,14 +56,14 @@ function ae({ title: e, children: t }) {
56
56
  ] })] })] });
57
57
  }
58
58
  // packages/charts/src/chart-inspection.tsx
59
- var j = {
59
+ var k = {
60
60
  kzqmXN: "x1xc55vz",
61
61
  kZKoxP: "xdk7pt",
62
62
  kmuXW: "x2lah0s",
63
63
  $$css: !0
64
- }, M = {
64
+ }, A = {
65
65
  swatch: (e) => [
66
- j,
66
+ k,
67
67
  {
68
68
  kWkggS: e == null ? e : "xl8spv7",
69
69
  $$css: !0
@@ -91,6 +91,10 @@ var j = {
91
91
  kHjlTd: "xj0a0fe",
92
92
  $$css: !0
93
93
  },
94
+ summaryInspector: {
95
+ k1xSpc: "xrvj5dj x1xnx9c1",
96
+ $$css: !0
97
+ },
94
98
  position: (e, t) => [{
95
99
  kbCHJM: e == null ? e : "xgq9j65",
96
100
  kzqmXN: t == null ? t : "x5lhr3w",
@@ -99,8 +103,32 @@ var j = {
99
103
  "--x-left": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(e),
100
104
  "--x-width": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
101
105
  }]
102
- };
103
- function oe({ title: e, detail: t }) {
106
+ }, j = 4;
107
+ function ce() {
108
+ return /* @__PURE__ */ T("ul", {
109
+ "aria-hidden": !0,
110
+ inert: !0,
111
+ className: "x78zum5 x1xnx9c1 xnby9oq x1a02dak x8zbtdt x1gkm1c7 x1ghz6dp x1717udv xe8uvvx x153jb6y xy8obcc xas2l8k",
112
+ children: Array.from({ length: j }, (t, n) => /* @__PURE__ */ E("li", {
113
+ className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe x1f394nn x43dure",
114
+ children: [/* @__PURE__ */ T("span", { ...x.props(A.swatch(v.line)) }), /* @__PURE__ */ E("span", {
115
+ className: "x1cqoux5 xeuugli",
116
+ children: [
117
+ /* @__PURE__ */ T(e, {}),
118
+ /* @__PURE__ */ T("span", {
119
+ className: "x1s85apg xannxpe",
120
+ children: /* @__PURE__ */ T(e, {})
121
+ }),
122
+ /* @__PURE__ */ T("span", {
123
+ className: "x1s85apg xannxpe x1mqbd49 xbixft xss6m8b",
124
+ children: /* @__PURE__ */ T(e, {})
125
+ })
126
+ ]
127
+ })]
128
+ }, n))
129
+ });
130
+ }
131
+ function le({ title: e, detail: t }) {
104
132
  return t === void 0 ? e : /* @__PURE__ */ E("span", {
105
133
  "aria-label": e,
106
134
  className: "x1lliihq xb3r6kr xlyipyv xuxw1ft",
@@ -113,8 +141,8 @@ function oe({ title: e, detail: t }) {
113
141
  })]
114
142
  });
115
143
  }
116
- function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a, x: o, width: s, offset: c = 16, source: l, notes: u = [] }) {
117
- let d = Math.min(260, s), f = o > s / 2 ? o - d - c : o + c, m = Math.max(0, Math.min(s - d, f)), h = t === void 0 ? [] : [
144
+ function M({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a, x: o, width: s, offset: c = 16, source: l, notes: u = [], hasSeriesSummary: d = !1 }) {
145
+ let f = Math.min(260, s), m = o > s / 2 ? o - f - c : o + c, h = Math.max(0, Math.min(s - f, m)), g = t === void 0 ? [] : [
118
146
  t,
119
147
  n,
120
148
  ...a.map((e) => `${e.label}: ${e.value}`),
@@ -123,7 +151,7 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
123
151
  return /* @__PURE__ */ E("div", {
124
152
  className: "xeuugli",
125
153
  children: [
126
- /* @__PURE__ */ E("div", {
154
+ !d && /* @__PURE__ */ E("div", {
127
155
  className: "xrvj5dj xeuugli",
128
156
  children: [i !== void 0 && /* @__PURE__ */ T("ul", {
129
157
  "aria-hidden": !0,
@@ -131,7 +159,7 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
131
159
  className: "x78zum5 x1xnx9c1 xnby9oq x1a02dak x8zbtdt x1gkm1c7 x1ghz6dp x1717udv xe8uvvx x153jb6y xy8obcc xas2l8k x15r89dc xlshs6z x47corl",
132
160
  children: i.map((e) => /* @__PURE__ */ E("li", {
133
161
  className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
134
- children: [/* @__PURE__ */ T("span", { ...b.props(M.swatch(p[e.tone])) }), /* @__PURE__ */ E("span", {
162
+ children: [/* @__PURE__ */ T("span", { ...x.props(A.swatch(p[e.tone])) }), /* @__PURE__ */ E("span", {
135
163
  className: "xeuugli",
136
164
  children: [e.label, /* @__PURE__ */ T("span", { className: "x1s85apg xannxpe x1mqbd49 xbixft xss6m8b" })]
137
165
  })]
@@ -143,7 +171,7 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
143
171
  className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
144
172
  children: [/* @__PURE__ */ T("span", {
145
173
  "aria-hidden": !0,
146
- ...b.props(M.swatch(p[e.tone]))
174
+ ...x.props(A.swatch(p[e.tone]))
147
175
  }), /* @__PURE__ */ E("span", {
148
176
  className: "xeuugli",
149
177
  children: [e.label, /* @__PURE__ */ T("span", {
@@ -158,13 +186,13 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
158
186
  id: e,
159
187
  "aria-live": l === "keyboard" ? "polite" : "off",
160
188
  className: "x10l6tqk x1i1rx1s xjm9jq1 x1717udv xb3r6kr x1hyvwdk xuxw1ft",
161
- children: h.join(" · ")
189
+ children: g.join(" · ")
162
190
  }),
163
191
  t !== void 0 && /* @__PURE__ */ T("div", {
164
192
  "aria-hidden": !0,
165
193
  className: "x1n2onr6 xqtp20y x1vjfegm",
166
194
  children: /* @__PURE__ */ E("div", {
167
- ...b.props(M.inspector, M.position(m, d)),
195
+ ...x.props(A.inspector, d && A.summaryInspector, A.position(h, f)),
168
196
  children: [
169
197
  /* @__PURE__ */ E("div", {
170
198
  className: "x78zum5 x1qughib x1hnptsi xk4h15q",
@@ -176,7 +204,7 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
176
204
  className: "x78zum5 x1qughib x1pha0wt x1hnptsi",
177
205
  children: [/* @__PURE__ */ E("dt", {
178
206
  className: "x78zum5 x1pha0wt xunmzkg xeuugli xj0a0fe",
179
- children: [/* @__PURE__ */ T("span", { ...b.props(M.swatch(p[e.tone])) }), e.label]
207
+ children: [/* @__PURE__ */ T("span", { ...x.props(A.swatch(p[e.tone])) }), e.label]
180
208
  }), /* @__PURE__ */ T("dd", {
181
209
  className: "x1ghz6dp xuxw1ft",
182
210
  children: e.value
@@ -191,7 +219,7 @@ function se({ id: e, label: t, summary: n, legend: r, layoutLegend: i, rows: a,
191
219
  });
192
220
  }
193
221
  // packages/charts/src/cartesian/bar-data.ts
194
- function ce({ composition: e, series: t, categoryIds: n, domain: r }) {
222
+ function ue({ composition: e, series: t, categoryIds: n, domain: r }) {
195
223
  if (e === void 0) return;
196
224
  if (e.buckets.length !== n.length) return "Composition requires one explicit bucket per category.";
197
225
  let i = e.annotation;
@@ -216,7 +244,7 @@ var N = { mark: {
216
244
  kAMwcw: "x1faw7qm",
217
245
  $$css: !0
218
246
  } };
219
- function le({ bucket: e, series: t, focusedSeries: n, index: r, x: a, width: o, y: s, isHighlighted: c, highlightedSeriesId: l }) {
247
+ function de({ bucket: e, series: t, focusedSeries: n, index: r, x: a, width: o, y: s, isHighlighted: c, highlightedSeriesId: l }) {
220
248
  let u = n !== void 0, f = n !== void 0 && !t.some((e) => e.id === n.id) ? [...t, n] : t;
221
249
  function m(e, t) {
222
250
  let n = s(t), r = s(t + e);
@@ -229,7 +257,7 @@ function le({ bucket: e, series: t, focusedSeries: n, index: r, x: a, width: o,
229
257
  height: 1,
230
258
  vectorEffect: "non-scaling-stroke",
231
259
  fill: p.neutral,
232
- ...b.props(N.mark, c && d.selected),
260
+ ...x.props(N.mark, c && d.selected),
233
261
  style: {
234
262
  transform: m(e.total, 0),
235
263
  opacity: u ? .18 : +(e.kind === "total")
@@ -245,7 +273,7 @@ function le({ bucket: e, series: t, focusedSeries: n, index: r, x: a, width: o,
245
273
  height: 1,
246
274
  vectorEffect: "non-scaling-stroke",
247
275
  fill: p[i(s.tone, f)],
248
- ...b.props(N.mark, c && d.selected),
276
+ ...x.props(N.mark, c && d.selected),
249
277
  style: {
250
278
  transform: m(h, _),
251
279
  opacity: v ? y ? .3 : 1 : 0
@@ -263,71 +291,77 @@ var P = {
263
291
  kSiTet: "xuzhngd",
264
292
  $$css: !0
265
293
  }
266
- }, ue = /* @__PURE__ */ new Set(["Enter", " "]), de = 200;
267
- function F({ title: e, description: t, series: n, layoutSeries: r, children: a, inspectionId: o, label: s, detail: c, summary: l, rows: u = [], index: d = -1, formatValue: p = String, x: m = 0, width: h = 0, offset: g, source: _, data: v }) {
268
- let y = n.map((e, t) => ({
294
+ }, fe = /* @__PURE__ */ new Set(["Enter", " "]), pe = 200;
295
+ function F({ title: e, description: t, report: n, series: r, layoutSeries: a, children: o, inspectionId: s, label: c, detail: l, summary: u, rows: d = [], index: p = -1, formatValue: m = String, x: h = 0, width: g = 0, offset: _, source: v, data: y, isLoading: b = !1 }) {
296
+ let x = r.map((e, t) => ({
269
297
  id: e.id,
270
298
  label: e.label,
271
299
  tone: i(e.tone, t)
272
- })), ee = r?.map((e, t) => ({
300
+ })), ee = a?.map((e, t) => ({
273
301
  id: e.id,
274
302
  label: e.label,
275
303
  tone: i(e.tone, t)
276
- }));
304
+ })), S = b && r.length === 0 && n?.seriesValues === void 0;
277
305
  return /* @__PURE__ */ E(f, {
278
- title: /* @__PURE__ */ T(oe, {
306
+ title: /* @__PURE__ */ T(le, {
279
307
  title: e,
280
- detail: c
308
+ detail: l
281
309
  }),
282
310
  description: t,
283
- actions: /* @__PURE__ */ T(ae, {
311
+ report: n,
312
+ series: x,
313
+ actions: /* @__PURE__ */ T(se, {
284
314
  title: e,
285
- children: v
315
+ children: y
286
316
  }),
287
- children: [/* @__PURE__ */ T(se, {
288
- id: o,
289
- label: s,
290
- summary: l,
291
- legend: y,
317
+ children: [S ? /* @__PURE__ */ T(ce, {}) : /* @__PURE__ */ T(M, {
318
+ id: s,
319
+ label: c,
320
+ summary: u,
321
+ legend: x,
322
+ hasSeriesSummary: n?.seriesValues !== void 0,
292
323
  layoutLegend: ee,
293
- rows: u.map((e, t) => ({
324
+ rows: d.map((e, t) => ({
294
325
  id: e.id,
295
326
  label: e.label,
296
327
  tone: i(e.tone, t),
297
- value: e.values[d] === null || e.values[d] === void 0 ? "Unavailable" : p(e.values[d])
328
+ value: e.values[p] === null || e.values[p] === void 0 ? "Unavailable" : m(e.values[p])
298
329
  })),
299
- x: m,
300
- width: h,
301
- offset: g,
302
- source: _
303
- }), a]
330
+ x: h,
331
+ width: g,
332
+ offset: _,
333
+ source: v
334
+ }), o]
304
335
  });
305
336
  }
306
- function I({ title: e = "Loading chart", description: n, series: r = [], height: i = de }) {
307
- let a = fe(i), o = S();
308
- return a === void 0 ? /* @__PURE__ */ T("div", {
337
+ function I({ title: e = "Loading chart", description: n, report: r, series: i = [], height: a = pe }) {
338
+ let o = L(a), s = S();
339
+ return o === void 0 ? /* @__PURE__ */ T("div", {
309
340
  "aria-hidden": !0,
310
341
  inert: !0,
311
342
  children: /* @__PURE__ */ T(F, {
312
343
  title: e,
313
344
  description: n,
314
- series: r,
315
- inspectionId: o,
345
+ report: r,
346
+ series: i,
347
+ inspectionId: s,
348
+ isLoading: !0,
316
349
  children: /* @__PURE__ */ T("div", {
317
- ...b.props(d.plot, P.plot),
318
- children: /* @__PURE__ */ T(t, { height: i })
350
+ ...x.props(d.plot, P.plot),
351
+ children: /* @__PURE__ */ T(t, { height: a })
319
352
  })
320
353
  })
321
354
  }) : /* @__PURE__ */ T(_, {
322
355
  title: e,
323
356
  description: n,
324
- message: a
357
+ report: r,
358
+ message: o
325
359
  });
326
360
  }
327
- function fe(e) {
361
+ function L(e) {
328
362
  if (!Number.isFinite(e) || e < 48) return "Chart height must be at least 48 pixels.";
329
363
  }
330
- function pe({ categories: e, series: t, domain: n, mode: i }) {
364
+ function me({ categories: e, series: t, domain: n, mode: i }) {
331
365
  if (e.length > r.items || t.length > r.series) return `Choose a window with at most ${r.items} categories and ${r.series} series.`;
332
366
  if (!g(n) || n[0] > 0 || n[1] < 0) return "The bar domain must be finite, increasing, and include zero.";
333
367
  if (!h(e) || !h(t)) return "Bar categories and series require unique identifiers.";
@@ -340,232 +374,234 @@ function pe({ categories: e, series: t, domain: n, mode: i }) {
340
374
  }
341
375
  if (i === "stacked" && e.some((e, r) => t.reduce((e, t) => e + (t.values[r] ?? 0), 0) > n[1])) return "Stacked bar totals must fit the supplied domain.";
342
376
  }
343
- var L = {
377
+ var he = {
344
378
  "x-default-marker": "x-default-marker",
345
379
  $$css: !0
346
380
  };
347
- function me({ title: e, description: t, categories: n, series: r, domain: o, mode: s = "grouped", formatValue: c, formatTick: l = c, highlightedSeriesId: u, selection: f, height: m = de, composition: h }) {
348
- let g = h?.focusedSeries, y = S(), ee = g === void 0 ? void 0 : pe({
349
- categories: n,
350
- series: [g],
351
- domain: o,
381
+ function R({ title: e, description: t, report: n, categories: r, series: o, domain: s, mode: c = "grouped", formatValue: l, formatTick: u = l, highlightedSeriesId: f, selection: m, height: h = pe, composition: g }) {
382
+ let v = g?.focusedSeries, b = S(), te = v === void 0 ? void 0 : me({
383
+ categories: r,
384
+ series: [v],
385
+ domain: s,
352
386
  mode: "grouped"
353
- }), te = pe({
354
- categories: n,
355
- series: r,
356
- domain: o,
357
- mode: s
358
- }) ?? ee, ne = ce({
359
- composition: h,
360
- series: r,
361
- categoryIds: n.map((e) => e.id),
362
- domain: o
363
- }) ?? fe(m), w = te ?? ne, k = h === void 0 ? void 0 : {
364
- id: y,
365
- label: h.contextLabel,
387
+ }), ne = me({
388
+ categories: r,
389
+ series: o,
390
+ domain: s,
391
+ mode: c
392
+ }) ?? te, w = ue({
393
+ composition: g,
394
+ series: o,
395
+ categoryIds: r.map((e) => e.id),
396
+ domain: s
397
+ }) ?? L(h), ie = ne ?? w, O = g === void 0 ? void 0 : {
398
+ id: b,
399
+ label: g.contextLabel,
366
400
  tone: "neutral",
367
- values: h.buckets.map((e) => e.kind === "gap" ? null : e.total)
368
- }, re = k === void 0 ? r : [
369
- k,
370
- ...r,
371
- ...g === void 0 || r.some((e) => e.id === g.id) ? [] : [g]
372
- ], ae = g !== void 0 && k !== void 0 ? [g, k] : r, { ref: j, width: M, element: oe } = v(), se = S(), [N, I] = C(), [me, z] = C();
373
- x(() => {
401
+ values: g.buckets.map((e) => e.kind === "gap" ? null : e.total)
402
+ }, se = O === void 0 ? o : [
403
+ O,
404
+ ...o,
405
+ ...v === void 0 || o.some((e) => e.id === v.id) ? [] : [v]
406
+ ], k = v !== void 0 && O !== void 0 ? [v, O] : o, { ref: A, width: j, element: ce } = y(), le = S(), [M, N] = C(), [I, R] = C();
407
+ ee(() => {
374
408
  function e(e) {
375
- e.target instanceof Node && oe?.contains(e.target) !== !0 && I(void 0);
409
+ e.target instanceof Node && ce?.contains(e.target) !== !0 && N(void 0);
376
410
  }
377
411
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
378
- }, [oe]);
379
- let B = n.findIndex((e) => e.id === N?.id), V = n[B], H = n[n.findIndex((e) => e.id === f?.selectedId)], U = n.find((e) => e.id === me) ?? H ?? n[0], W = n.findIndex((e) => e.id === U?.id), G = V, K = B, q = h?.buckets[K], J = g !== void 0 && k !== void 0 ? [g, k] : k === void 0 || q?.kind === "parts" ? r : [], Y = q === void 0 ? void 0 : q.kind === "gap" ? "No reported value" : c(q.total);
380
- if (w !== void 0) return /* @__PURE__ */ T(_, {
412
+ }, [ce]);
413
+ let ge = r.findIndex((e) => e.id === M?.id), B = r[ge], V = r[r.findIndex((e) => e.id === m?.selectedId)], H = r.find((e) => e.id === I) ?? V ?? r[0], U = r.findIndex((e) => e.id === H?.id), W = B, G = ge, K = g?.buckets[G], q = v !== void 0 && O !== void 0 ? [v, O] : O === void 0 || K?.kind === "parts" ? o : [], J = K === void 0 ? void 0 : K.kind === "gap" ? "No reported value" : l(K.total);
414
+ if (ie !== void 0) return /* @__PURE__ */ T(_, {
381
415
  title: e,
382
416
  description: t,
383
- message: w
417
+ report: n,
418
+ message: ie
384
419
  });
385
- let X = m - 28, Z = O({
386
- domain: [...o],
387
- range: [X, 12]
388
- }), Q = Math.max(44, ...Z.ticks(3).map((e) => l(e).length * 7 + 12)), he = Math.max(Q + 1, M - 16), $ = D({
389
- domain: n.map((e) => e.id),
390
- range: [Q, he],
391
- padding: .3
392
- }), ge = D({
420
+ let Y = h - 28, X = D({
421
+ domain: [...s],
422
+ range: [Y, 12]
423
+ }), Z = Math.max(44, ...X.ticks(3).map((e) => u(e).length * 7 + 12)), _e = Math.max(Z + 1, j - 16), Q = re({
393
424
  domain: r.map((e) => e.id),
394
- range: [0, $.bandwidth()],
425
+ range: [Z, _e],
426
+ padding: .3
427
+ }), $ = re({
428
+ domain: o.map((e) => e.id),
429
+ range: [0, Q.bandwidth()],
395
430
  padding: .08
396
- }), _e = Math.min(120, Math.max(40, ...n.map((e) => (e.axisLabel ?? e.label).length * 7))), ve = Math.max(1, Math.ceil((_e + 16) / $.step())), ye = Math.max(1, Math.floor(($.step() * ve - 16) / 7));
397
- function be(e) {
398
- let t = e.currentTarget.getBoundingClientRect(), r = (e.clientX - t.left) / t.width * M, i = Math.floor((r - Q) / $.step()), a = n[Math.max(0, Math.min(n.length - 1, i))];
399
- a !== void 0 && (e.type === "pointerdown" && z(a.id), I({
431
+ }), ve = Math.min(120, Math.max(40, ...r.map((e) => (e.axisLabel ?? e.label).length * 7))), ye = Math.max(1, Math.ceil((ve + 16) / Q.step())), be = Math.max(1, Math.floor((Q.step() * ye - 16) / 7));
432
+ function xe(e) {
433
+ let t = e.currentTarget.getBoundingClientRect(), n = (e.clientX - t.left) / t.width * j, i = Math.floor((n - Z) / Q.step()), a = r[Math.max(0, Math.min(r.length - 1, i))];
434
+ a !== void 0 && (e.type === "pointerdown" && R(a.id), N({
400
435
  id: a.id,
401
436
  source: "pointer"
402
437
  }));
403
438
  }
404
- function xe(e) {
439
+ function Se(e) {
405
440
  if (e.altKey || e.ctrlKey || e.metaKey) return;
406
441
  if (e.key === "Escape") {
407
- e.preventDefault(), e.stopPropagation(), I(void 0);
442
+ e.preventDefault(), e.stopPropagation(), N(void 0);
408
443
  return;
409
444
  }
410
- if (ue.has(e.key)) {
411
- U !== void 0 && f !== void 0 && (e.preventDefault(), f.onSelect(U.id));
445
+ if (fe.has(e.key)) {
446
+ H !== void 0 && m !== void 0 && (e.preventDefault(), m.onSelect(H.id));
412
447
  return;
413
448
  }
414
449
  let t = {
415
- ArrowRight: Math.min(n.length - 1, W + 1),
416
- ArrowLeft: Math.max(0, W - 1),
450
+ ArrowRight: Math.min(r.length - 1, U + 1),
451
+ ArrowLeft: Math.max(0, U - 1),
417
452
  Home: 0,
418
- End: n.length - 1
419
- }[e.key], r = t === void 0 ? void 0 : n[t];
420
- r !== void 0 && (e.preventDefault(), z(r.id), I({
421
- id: r.id,
453
+ End: r.length - 1
454
+ }[e.key], n = t === void 0 ? void 0 : r[t];
455
+ n !== void 0 && (e.preventDefault(), R(n.id), N({
456
+ id: n.id,
422
457
  source: "keyboard"
423
458
  }));
424
459
  }
425
460
  return /* @__PURE__ */ T(F, {
426
461
  title: e,
427
462
  description: t,
428
- series: ae,
429
- layoutSeries: r,
430
- inspectionId: se,
431
- label: G?.label,
432
- detail: G === void 0 ? void 0 : [G.axisLabel ?? G.label, Y].filter(Boolean).join(" · "),
433
- summary: Y,
434
- rows: J,
435
- index: K,
436
- formatValue: c,
437
- x: ($(G?.id ?? "") ?? Q) + $.bandwidth() / 2,
438
- width: M,
439
- offset: $.bandwidth() / 2 + 8,
440
- source: N?.source,
463
+ report: n,
464
+ series: k,
465
+ layoutSeries: o,
466
+ inspectionId: le,
467
+ label: W?.label,
468
+ detail: W === void 0 ? void 0 : [W.axisLabel ?? W.label, J].filter(Boolean).join(" · "),
469
+ summary: J,
470
+ rows: q,
471
+ index: G,
472
+ formatValue: l,
473
+ x: (Q(W?.id ?? "") ?? Z) + Q.bandwidth() / 2,
474
+ width: j,
475
+ offset: Q.bandwidth() / 2 + 8,
476
+ source: M?.source,
441
477
  data: /* @__PURE__ */ T(a, {
442
- items: n.map((e, t) => ({
478
+ items: r.map((e, t) => ({
443
479
  id: e.id,
444
480
  label: e.label,
445
- valueLabel: R(re, t, c),
481
+ valueLabel: z(se, t, l),
446
482
  tone: "neutral"
447
483
  })),
448
- selection: f
484
+ selection: m
449
485
  }),
450
486
  children: /* @__PURE__ */ T("div", {
451
- ref: j,
452
- ...b.props(d.plot, P.plot),
453
- children: n.length === 0 || r.length === 0 && h === void 0 ? /* @__PURE__ */ T("p", {
487
+ ref: A,
488
+ ...x.props(d.plot, P.plot),
489
+ children: r.length === 0 || o.length === 0 && g === void 0 ? /* @__PURE__ */ T("p", {
454
490
  className: "x153jb6y x1ghz6dp xy8obcc",
455
491
  children: "No categories"
456
492
  }) : /* @__PURE__ */ E("svg", {
457
493
  role: "img",
458
- "aria-label": `${e}. Use arrow keys to inspect categories.${f === void 0 ? "" : " Press Enter to select."}`,
459
- "aria-describedby": se,
494
+ "aria-label": `${e}. Use arrow keys to inspect categories.${m === void 0 ? "" : " Press Enter to select."}`,
495
+ "aria-describedby": le,
460
496
  tabIndex: 0,
461
- viewBox: `0 0 ${M} ${m}`,
462
- height: m,
463
- onKeyDown: xe,
497
+ viewBox: `0 0 ${j} ${h}`,
498
+ height: h,
499
+ onKeyDown: Se,
464
500
  onFocus: (e) => {
465
501
  if (e.currentTarget.matches(":focus-visible")) {
466
- let e = H ?? n[0];
467
- z(e?.id), I(e === void 0 ? void 0 : {
502
+ let e = V ?? r[0];
503
+ R(e?.id), N(e === void 0 ? void 0 : {
468
504
  id: e.id,
469
505
  source: "keyboard"
470
506
  });
471
507
  }
472
508
  },
473
509
  onPointerMove: (e) => {
474
- e.pointerType === "mouse" && be(e);
510
+ e.pointerType === "mouse" && xe(e);
475
511
  },
476
- onPointerDown: be,
512
+ onPointerDown: xe,
477
513
  onPointerLeave: (e) => {
478
- e.pointerType === "mouse" && N?.source === "pointer" && I(void 0);
514
+ e.pointerType === "mouse" && M?.source === "pointer" && N(void 0);
479
515
  },
480
- onBlur: () => I(void 0),
516
+ onBlur: () => N(void 0),
481
517
  onClick: () => {
482
- V !== void 0 && f?.onSelect(V.id);
518
+ B !== void 0 && m?.onSelect(B.id);
483
519
  },
484
- ...b.props(d.svg, d.inspectable, L),
520
+ ...x.props(d.svg, d.inspectable, he),
485
521
  children: [
486
- V !== void 0 && /* @__PURE__ */ T("rect", {
487
- x: ($(V.id) ?? Q) - ($.step() - $.bandwidth()) / 2,
522
+ B !== void 0 && /* @__PURE__ */ T("rect", {
523
+ x: (Q(B.id) ?? Z) - (Q.step() - Q.bandwidth()) / 2,
488
524
  y: 12,
489
- width: $.step(),
490
- height: X - 12,
525
+ width: Q.step(),
526
+ height: Y - 12,
491
527
  className: "x2wnxhi"
492
528
  }),
493
- Z.ticks(3).map((e) => /* @__PURE__ */ E("g", { children: [/* @__PURE__ */ T("line", {
494
- x1: Q,
495
- x2: he,
496
- y1: Z(e),
497
- y2: Z(e),
498
- ...b.props(d.grid)
529
+ X.ticks(3).map((e) => /* @__PURE__ */ E("g", { children: [/* @__PURE__ */ T("line", {
530
+ x1: Z,
531
+ x2: _e,
532
+ y1: X(e),
533
+ y2: X(e),
534
+ ...x.props(d.grid)
499
535
  }), /* @__PURE__ */ T("text", {
500
- x: Q - 8,
501
- y: Z(e),
536
+ x: Z - 8,
537
+ y: X(e),
502
538
  textAnchor: "end",
503
539
  dominantBaseline: "middle",
504
- ...b.props(d.label),
505
- children: l(e)
540
+ ...x.props(d.label),
541
+ children: u(e)
506
542
  })] }, e)),
507
- h?.annotation !== void 0 && n.some((e) => e.id === h.annotation?.categoryId) && /* @__PURE__ */ T("text", {
508
- x: $(h.annotation.categoryId),
509
- y: Math.max(12, Z(h.annotation.value) - 8),
510
- ...b.props(d.label),
511
- children: h.annotation.label
543
+ g?.annotation !== void 0 && r.some((e) => e.id === g.annotation?.categoryId) && /* @__PURE__ */ T("text", {
544
+ x: Q(g.annotation.categoryId),
545
+ y: Math.max(12, X(g.annotation.value) - 8),
546
+ ...x.props(d.label),
547
+ children: g.annotation.label
512
548
  }),
513
- n.map((e, t) => {
514
- let n = e.axisLabel ?? e.label, a = h?.buckets[t];
515
- return /* @__PURE__ */ E("g", { children: [a === void 0 ? r.map((n, a) => {
516
- let o = n.values[t];
517
- if (o == null) return null;
518
- let c = s === "stacked" ? r.slice(0, a).reduce((e, n) => e + (n.values[t] ?? 0), 0) : 0, l = Z(c), m = Z(c + o), h = f?.selectedId === e.id || V?.id === e.id;
519
- return /* @__PURE__ */ T(A, {
520
- x: ($(e.id) ?? Q) + (s === "stacked" ? 0 : ge(n.id) ?? 0),
521
- y: Math.min(l, m),
522
- width: s === "stacked" ? $.bandwidth() : ge.bandwidth(),
523
- height: Math.max(+(o === 0), Math.abs(m - l)),
524
- fill: p[i(n.tone, a)],
525
- ...b.props(h && d.selected, u !== void 0 && u !== n.id && P.mutedMark)
549
+ r.map((e, t) => {
550
+ let n = e.axisLabel ?? e.label, r = g?.buckets[t];
551
+ return /* @__PURE__ */ E("g", { children: [r === void 0 ? o.map((n, r) => {
552
+ let a = n.values[t];
553
+ if (a == null) return null;
554
+ let s = c === "stacked" ? o.slice(0, r).reduce((e, n) => e + (n.values[t] ?? 0), 0) : 0, l = X(s), u = X(s + a), h = m?.selectedId === e.id || B?.id === e.id;
555
+ return /* @__PURE__ */ T(ae, {
556
+ x: (Q(e.id) ?? Z) + (c === "stacked" ? 0 : $(n.id) ?? 0),
557
+ y: Math.min(l, u),
558
+ width: c === "stacked" ? Q.bandwidth() : $.bandwidth(),
559
+ height: Math.max(+(a === 0), Math.abs(u - l)),
560
+ fill: p[i(n.tone, r)],
561
+ ...x.props(h && d.selected, f !== void 0 && f !== n.id && P.mutedMark)
526
562
  }, n.id);
527
- }) : /* @__PURE__ */ T(le, {
528
- bucket: a,
529
- series: r,
530
- focusedSeries: g,
563
+ }) : /* @__PURE__ */ T(de, {
564
+ bucket: r,
565
+ series: o,
566
+ focusedSeries: v,
531
567
  index: t,
532
- x: $(e.id) ?? Q,
533
- width: $.bandwidth(),
534
- y: Z,
535
- isHighlighted: f?.selectedId === e.id || V?.id === e.id,
536
- highlightedSeriesId: u
537
- }), t % ve === 0 && /* @__PURE__ */ T("text", {
538
- x: ($(e.id) ?? Q) + $.bandwidth() / 2,
539
- y: m - 4,
568
+ x: Q(e.id) ?? Z,
569
+ width: Q.bandwidth(),
570
+ y: X,
571
+ isHighlighted: m?.selectedId === e.id || B?.id === e.id,
572
+ highlightedSeriesId: f
573
+ }), t % ye === 0 && /* @__PURE__ */ T("text", {
574
+ x: (Q(e.id) ?? Z) + Q.bandwidth() / 2,
575
+ y: h - 4,
540
576
  textAnchor: "middle",
541
- ...b.props(d.label),
542
- children: n.length > ye ? `${n.slice(0, ye - 1)}…` : n
577
+ ...x.props(d.label),
578
+ children: n.length > be ? `${n.slice(0, be - 1)}…` : n
543
579
  })] }, e.id);
544
580
  }),
545
- U !== void 0 && /* @__PURE__ */ T(ie, {
546
- x: ($(U.id) ?? Q) + $.bandwidth() / 2,
581
+ H !== void 0 && /* @__PURE__ */ T(oe, {
582
+ x: (Q(H.id) ?? Z) + Q.bandwidth() / 2,
547
583
  top: 12,
548
- bottom: X,
549
- width: Math.max(8, $.bandwidth())
584
+ bottom: Y,
585
+ width: Math.max(8, Q.bandwidth())
550
586
  })
551
587
  ]
552
588
  })
553
589
  })
554
590
  });
555
591
  }
556
- function R(e, t, n) {
592
+ function z(e, t, n) {
557
593
  return e.map((e) => {
558
594
  let r = e.values[t];
559
595
  return `${e.label}: ${r == null ? "Unavailable" : n(r)}`;
560
596
  }).join(" · ");
561
597
  }
562
598
  // packages/charts/src/cartesian/breakdown-bar.tsx
563
- var z = {
599
+ var ge = {
564
600
  kzqmXN: "x5lhr3w",
565
601
  kZKoxP: "x5yr21d",
566
602
  $$css: !0
567
603
  }, B = { segment: (e, t) => [
568
- z,
604
+ ge,
569
605
  {
570
606
  kWkggS: t == null ? t : "xl8spv7",
571
607
  $$css: !0
@@ -575,47 +611,50 @@ var z = {
575
611
  "--x-backgroundColor": t ?? void 0
576
612
  }
577
613
  ] };
578
- function V({ title: e, description: t, items: r, total: o, formatValue: s, selection: c }) {
579
- let l = n(r), u = r.reduce((e, t) => e + (t.value ?? 0), 0), d = 2 ** -52 * Math.max(u, o, 1) * r.length;
580
- return l === void 0 ? !Number.isFinite(o) || o < 0 || u - o > d ? /* @__PURE__ */ T(_, {
614
+ function V({ title: e, report: t, description: r, items: o, total: s, formatValue: c, selection: l }) {
615
+ let u = n(o), d = o.reduce((e, t) => e + (t.value ?? 0), 0), m = 2 ** -52 * Math.max(d, s, 1) * o.length;
616
+ return u === void 0 ? !Number.isFinite(s) || s < 0 || d - s > m ? /* @__PURE__ */ T(_, {
581
617
  title: e,
582
- description: t,
618
+ report: t,
619
+ description: r,
583
620
  message: "The total must be finite and at least the sum of recorded values."
584
621
  }) : /* @__PURE__ */ T(f, {
585
622
  title: e,
586
- description: t,
587
- children: r.length === 0 ? /* @__PURE__ */ T("p", {
623
+ report: t,
624
+ description: r,
625
+ children: o.length === 0 ? /* @__PURE__ */ T("p", {
588
626
  className: "x153jb6y x1ghz6dp xy8obcc",
589
627
  children: "No values"
590
628
  }) : /* @__PURE__ */ E(w, { children: [
591
629
  /* @__PURE__ */ T("div", {
592
630
  "aria-hidden": !0,
593
631
  className: "x78zum5 x170jfvy xb3r6kr x1r7kqkb xmkeg23 x1y0btm7 x1ey3b81 x1jfksii",
594
- children: r.map((e, t) => e.value === null ? null : /* @__PURE__ */ T("span", { ...b.props(B.segment(o === 0 ? 0 : e.value / o * 100, p[i(e.tone, t)])) }, e.id))
632
+ children: o.map((e, t) => e.value === null ? null : /* @__PURE__ */ T("span", { ...x.props(B.segment(s === 0 ? 0 : e.value / s * 100, p[i(e.tone, t)])) }, e.id))
595
633
  }),
596
634
  /* @__PURE__ */ T(a, {
597
- items: r.map((e, t) => ({
635
+ items: o.map((e, t) => ({
598
636
  id: e.id,
599
637
  label: e.label,
600
- valueLabel: e.value === null ? "Unavailable" : s(e.value),
638
+ valueLabel: e.value === null ? "Unavailable" : c(e.value),
601
639
  tone: i(e.tone, t)
602
640
  })),
603
- selection: c
641
+ selection: l
604
642
  }),
605
- o - u > d && /* @__PURE__ */ E("p", {
643
+ s - d > m && /* @__PURE__ */ E("p", {
606
644
  className: "x153jb6y x1ghz6dp xy8obcc",
607
645
  children: [
608
646
  "Unassigned portion: ",
609
- s(o - u),
647
+ c(s - d),
610
648
  " of ",
611
- s(o)
649
+ c(s)
612
650
  ]
613
651
  })
614
652
  ] })
615
653
  }) : /* @__PURE__ */ T(_, {
616
654
  title: e,
617
- description: t,
618
- message: l
655
+ report: t,
656
+ description: r,
657
+ message: u
619
658
  });
620
659
  }
621
660
  // packages/charts/src/cartesian/scatter-plot.tsx
@@ -678,65 +717,67 @@ var H = 260, U = 56, W = 20, G = 12, K = 1e3, q = {
678
717
  }
679
718
  };
680
719
  function Y(e) {
681
- let { title: t, description: n, points: r, xDomain: i, yDomain: a, xLabel: o, yLabel: s, formatX: c, formatY: d, selection: h, rangeSelection: g, emptyLabel: y } = e, { ref: ee, width: x } = v(), S = Q(e);
682
- if (S !== null) return /* @__PURE__ */ T(_, {
720
+ let { title: t, report: n, description: r, points: i, xDomain: a, yDomain: o, xLabel: s, yLabel: c, formatX: d, formatY: h, selection: g, rangeSelection: v, emptyLabel: b } = e, { ref: ee, width: S } = y(), te = _e(e);
721
+ if (te !== null) return /* @__PURE__ */ T(_, {
683
722
  title: t,
684
- description: n,
685
- message: S
723
+ report: n,
724
+ description: r,
725
+ message: te
686
726
  });
687
- let te = O({
688
- domain: [...i],
689
- range: [U, Math.max(U, x - W)]
690
- }), ne = O({
727
+ let ne = D({
691
728
  domain: [...a],
729
+ range: [U, Math.max(U, S - W)]
730
+ }), C = D({
731
+ domain: [...o],
692
732
  range: [216, G]
693
- }), C = r.find((e) => e.id === h?.selectedId);
733
+ }), w = i.find((e) => e.id === g?.selectedId);
694
734
  return /* @__PURE__ */ E(f, {
695
735
  title: t,
696
- description: n,
697
- footer: h !== void 0 && r.length > 0 ? /* @__PURE__ */ T(l, { children: C === void 0 ? "Select a point to inspect its label and coordinates." : `${C.label}, ${o}: ${c(C.x)}, ${s}: ${d(C.y)}` }) : void 0,
736
+ report: n,
737
+ description: r,
738
+ footer: g !== void 0 && i.length > 0 ? /* @__PURE__ */ T(l, { children: w === void 0 ? "Select a point to inspect its label and coordinates." : `${w.label}, ${s}: ${d(w.x)}, ${c}: ${h(w.y)}` }) : void 0,
698
739
  children: [
699
- r.length === 0 ? /* @__PURE__ */ T("p", {
740
+ i.length === 0 ? /* @__PURE__ */ T("p", {
700
741
  className: "x1ghz6dp x153jb6y",
701
- children: y
742
+ children: b
702
743
  }) : /* @__PURE__ */ E("div", {
703
744
  ref: ee,
704
745
  className: "x1n2onr6 xeuugli",
705
746
  children: [/* @__PURE__ */ T(X, {
706
- width: x,
707
- scaleX: te,
708
- scaleY: ne,
747
+ width: S,
748
+ scaleX: ne,
749
+ scaleY: C,
709
750
  ...e
710
- }, `${i[0]}:${i[1]}:${a[0]}:${a[1]}:${x}`), h !== void 0 && /* @__PURE__ */ T("div", {
751
+ }, `${a[0]}:${a[1]}:${o[0]}:${o[1]}:${S}`), g !== void 0 && /* @__PURE__ */ T("div", {
711
752
  className: "x10l6tqk x10a8y8t x1n71m9f x47corl",
712
- children: r.map((e) => /* @__PURE__ */ T("button", {
753
+ children: i.map((e) => /* @__PURE__ */ T("button", {
713
754
  type: "button",
714
755
  title: e.label,
715
- "aria-label": `${e.label}, ${o}: ${c(e.x)}, ${s}: ${d(e.y)}`,
716
- "aria-pressed": h.selectedId === e.id,
717
- onClick: () => h.onSelect(e.id),
718
- ...b.props(J.target, J.location(te(e.x), ne(e.y))),
756
+ "aria-label": `${e.label}, ${s}: ${d(e.x)}, ${c}: ${h(e.y)}`,
757
+ "aria-pressed": g.selectedId === e.id,
758
+ onClick: () => g.onSelect(e.id),
759
+ ...x.props(J.target, J.location(ne(e.x), C(e.y))),
719
760
  children: /* @__PURE__ */ T("span", {
720
761
  "aria-hidden": !0,
721
- ...b.props(J.dot(p[e.tone]), h.selectedId === e.id && J.selected)
762
+ ...x.props(J.dot(p[e.tone]), g.selectedId === e.id && J.selected)
722
763
  })
723
764
  }, e.id))
724
765
  })]
725
766
  }),
726
- g !== void 0 && /* @__PURE__ */ T(Z, {
767
+ v !== void 0 && /* @__PURE__ */ T(Z, {
727
768
  ...e,
728
- rangeSelection: g
769
+ rangeSelection: v
729
770
  }),
730
- r.length > 0 && /* @__PURE__ */ T(m, { children: r.map((e) => /* @__PURE__ */ E(u, {
731
- label: `${e.label}, ${o}: ${c(e.x)}, ${s}: ${d(e.y)}`,
732
- isSelected: h?.selectedId === e.id,
733
- onSelect: h === void 0 ? void 0 : () => h.onSelect(e.id),
771
+ i.length > 0 && /* @__PURE__ */ T(m, { children: i.map((e) => /* @__PURE__ */ E(u, {
772
+ label: `${e.label}, ${s}: ${d(e.x)}, ${c}: ${h(e.y)}`,
773
+ isSelected: g?.selectedId === e.id,
774
+ onSelect: g === void 0 ? void 0 : () => g.onSelect(e.id),
734
775
  children: [/* @__PURE__ */ T("span", { children: e.label }), /* @__PURE__ */ E("span", {
735
776
  className: "xeuugli xss6m8b xj0a0fe x153jb6y",
736
777
  children: [
737
- c(e.x),
778
+ d(e.x),
738
779
  " · ",
739
- d(e.y)
780
+ h(e.y)
740
781
  ]
741
782
  })]
742
783
  }, e.id)) })
@@ -790,7 +831,7 @@ function X({ width: e, scaleX: t, scaleY: n, points: r, xLabel: i, yLabel: a, fo
790
831
  onPointerUp: y,
791
832
  onPointerCancel: () => m(null),
792
833
  onLostPointerCapture: () => m(null),
793
- ...b.props(d.svg, l !== void 0 && J.brush),
834
+ ...x.props(d.svg, l !== void 0 && J.brush),
794
835
  children: [
795
836
  /* @__PURE__ */ T("defs", { children: /* @__PURE__ */ T("clipPath", {
796
837
  id: u,
@@ -806,12 +847,12 @@ function X({ width: e, scaleX: t, scaleY: n, points: r, xLabel: i, yLabel: a, fo
806
847
  x2: t(e),
807
848
  y1: G,
808
849
  y2: 216,
809
- ...b.props(d.grid)
850
+ ...x.props(d.grid)
810
851
  }), /* @__PURE__ */ T("text", {
811
852
  x: t(e),
812
853
  y: 234,
813
854
  textAnchor: "middle",
814
- ...b.props(d.label),
855
+ ...x.props(d.label),
815
856
  children: o(e)
816
857
  })] }, e)),
817
858
  n.ticks(4).map((t) => /* @__PURE__ */ E("g", { children: [/* @__PURE__ */ T("line", {
@@ -819,19 +860,19 @@ function X({ width: e, scaleX: t, scaleY: n, points: r, xLabel: i, yLabel: a, fo
819
860
  x2: e - W,
820
861
  y1: n(t),
821
862
  y2: n(t),
822
- ...b.props(d.grid)
863
+ ...x.props(d.grid)
823
864
  }), /* @__PURE__ */ T("text", {
824
865
  x: 48,
825
866
  y: n(t) + 4,
826
867
  textAnchor: "end",
827
- ...b.props(d.label),
868
+ ...x.props(d.label),
828
869
  children: s(t)
829
870
  })] }, t)),
830
871
  /* @__PURE__ */ T("text", {
831
872
  x: (U + e - W) / 2,
832
873
  y: 256,
833
874
  textAnchor: "middle",
834
- ...b.props(d.label),
875
+ ...x.props(d.label),
835
876
  children: i
836
877
  }),
837
878
  /* @__PURE__ */ T("text", {
@@ -839,7 +880,7 @@ function X({ width: e, scaleX: t, scaleY: n, points: r, xLabel: i, yLabel: a, fo
839
880
  y: 108,
840
881
  textAnchor: "middle",
841
882
  transform: "rotate(-90 12 108)",
842
- ...b.props(d.label),
883
+ ...x.props(d.label),
843
884
  children: a
844
885
  }),
845
886
  /* @__PURE__ */ E("g", {
@@ -872,7 +913,7 @@ function Z({ rangeSelection: e, xDomain: t, yDomain: n, xLabel: r, yLabel: i, fo
872
913
  className: "x153jb6y xy8obcc x1jfksii",
873
914
  children: "Drag with a mouse, or adjust these bounds to select a coordinate range."
874
915
  }),
875
- /* @__PURE__ */ E(y.Root, {
916
+ /* @__PURE__ */ E(b.Root, {
876
917
  value: c.x,
877
918
  min: t[0],
878
919
  max: t[1],
@@ -885,26 +926,26 @@ function Z({ rangeSelection: e, xDomain: t, yDomain: n, xLabel: r, yLabel: i, fo
885
926
  }),
886
927
  children: [/* @__PURE__ */ E("div", {
887
928
  className: "x78zum5 x1a02dak x1qughib x1hnptsi x153jb6y xy8obcc xj0a0fe",
888
- children: [/* @__PURE__ */ T(y.Label, { children: r }), /* @__PURE__ */ E("span", { children: [
929
+ children: [/* @__PURE__ */ T(b.Label, { children: r }), /* @__PURE__ */ E("span", { children: [
889
930
  a(c.x[0]),
890
931
  " – ",
891
932
  a(c.x[1])
892
933
  ] })]
893
- }), /* @__PURE__ */ T(y.Control, { children: /* @__PURE__ */ E(y.Track, { children: [
894
- /* @__PURE__ */ T(y.Indicator, {}),
895
- /* @__PURE__ */ T(y.Thumb, {
934
+ }), /* @__PURE__ */ T(b.Control, { children: /* @__PURE__ */ E(b.Track, { children: [
935
+ /* @__PURE__ */ T(b.Indicator, {}),
936
+ /* @__PURE__ */ T(b.Thumb, {
896
937
  index: 0,
897
938
  "aria-label": `${r} minimum`,
898
939
  getAriaValueText: (e, t) => a(t)
899
940
  }),
900
- /* @__PURE__ */ T(y.Thumb, {
941
+ /* @__PURE__ */ T(b.Thumb, {
901
942
  index: 1,
902
943
  "aria-label": `${r} maximum`,
903
944
  getAriaValueText: (e, t) => a(t)
904
945
  })
905
946
  ] }) })]
906
947
  }),
907
- /* @__PURE__ */ E(y.Root, {
948
+ /* @__PURE__ */ E(b.Root, {
908
949
  value: c.y,
909
950
  min: n[0],
910
951
  max: n[1],
@@ -917,19 +958,19 @@ function Z({ rangeSelection: e, xDomain: t, yDomain: n, xLabel: r, yLabel: i, fo
917
958
  }),
918
959
  children: [/* @__PURE__ */ E("div", {
919
960
  className: "x78zum5 x1a02dak x1qughib x1hnptsi x153jb6y xy8obcc xj0a0fe",
920
- children: [/* @__PURE__ */ T(y.Label, { children: i }), /* @__PURE__ */ E("span", { children: [
961
+ children: [/* @__PURE__ */ T(b.Label, { children: i }), /* @__PURE__ */ E("span", { children: [
921
962
  s(c.y[0]),
922
963
  " – ",
923
964
  s(c.y[1])
924
965
  ] })]
925
- }), /* @__PURE__ */ T(y.Control, { children: /* @__PURE__ */ E(y.Track, { children: [
926
- /* @__PURE__ */ T(y.Indicator, {}),
927
- /* @__PURE__ */ T(y.Thumb, {
966
+ }), /* @__PURE__ */ T(b.Control, { children: /* @__PURE__ */ E(b.Track, { children: [
967
+ /* @__PURE__ */ T(b.Indicator, {}),
968
+ /* @__PURE__ */ T(b.Thumb, {
928
969
  index: 0,
929
970
  "aria-label": `${i} minimum`,
930
971
  getAriaValueText: (e, t) => s(t)
931
972
  }),
932
- /* @__PURE__ */ T(y.Thumb, {
973
+ /* @__PURE__ */ T(b.Thumb, {
933
974
  index: 1,
934
975
  "aria-label": `${i} maximum`,
935
976
  getAriaValueText: (e, t) => s(t)
@@ -945,7 +986,7 @@ function Z({ rangeSelection: e, xDomain: t, yDomain: n, xLabel: r, yLabel: i, fo
945
986
  ]
946
987
  });
947
988
  }
948
- function Q({ points: e, xDomain: t, yDomain: n, rangeSelection: r }) {
989
+ function _e({ points: e, xDomain: t, yDomain: n, rangeSelection: r }) {
949
990
  if (!g(t) || !g(n)) return "Scatter domains must contain finite, increasing endpoints.";
950
991
  if (e.length > 1e3) return `This plot exceeds the ${K}-point render limit. Supply a smaller, labelled sample.`;
951
992
  if (!h(e)) return "Scatter points must have unique identifiers.";
@@ -958,9 +999,9 @@ function Q({ points: e, xDomain: t, yDomain: n, rangeSelection: r }) {
958
999
  let i = Number.isFinite(r.xStep) && r.xStep > 0 && r.xStep <= t[1] - t[0], a = Number.isFinite(r.yStep) && r.yStep > 0 && r.yStep <= n[1] - n[0];
959
1000
  if (!i || !a) return "Range selection steps must be finite, positive, and no larger than their domain span.";
960
1001
  let o = r.value;
961
- return o === null ? null : !he(o.x, t) || !he(o.y, n) ? "The selected range must have finite, ordered bounds inside the declared domain." : null;
1002
+ return o === null ? null : !Q(o.x, t) || !Q(o.y, n) ? "The selected range must have finite, ordered bounds inside the declared domain." : null;
962
1003
  }
963
- function he(e, t) {
1004
+ function Q(e, t) {
964
1005
  return !e.every(Number.isFinite) || e[0] > e[1] ? !1 : e[0] >= t[0] && e[1] <= t[1];
965
1006
  }
966
1007
  // packages/charts/src/cartesian/time-series-data.ts
@@ -969,7 +1010,7 @@ var $ = {
969
1010
  pointsPerSeries: 2e3,
970
1011
  markers: 200,
971
1012
  panels: 12
972
- }, ge = .01, _e = [
1013
+ }, ve = .01, ye = [
973
1014
  "series1",
974
1015
  "series2",
975
1016
  "series3",
@@ -977,13 +1018,13 @@ var $ = {
977
1018
  "series5",
978
1019
  "series6"
979
1020
  ];
980
- function ve({ series: e, isStacked: t, markers: n }) {
1021
+ function be({ series: e, isStacked: t, markers: n }) {
981
1022
  let r = e[0]?.points.map((e) => e.timestamp) ?? [];
982
1023
  if (e.length > $.series || r.length > $.pointsPerSeries || n.length > $.markers) return `Choose a window with at most ${$.series} series, ${$.pointsPerSeries} observations per series, and ${$.markers} markers.`;
983
1024
  if (!h(e) || !h(n)) return "Series and markers require unique identifiers.";
984
1025
  for (let n of e) {
985
1026
  if (n.points.length !== r.length) return "Every series must supply the same observation timestamps.";
986
- let e = Se({
1027
+ let e = we({
987
1028
  points: n.points,
988
1029
  timestamps: r,
989
1030
  isStacked: t
@@ -1001,7 +1042,7 @@ function ve({ series: e, isStacked: t, markers: n }) {
1001
1042
  if (!Number.isFinite(a) || !Number.isFinite(o)) return "The elapsed-time and value ranges must be finite.";
1002
1043
  if (t && r.some((t, n) => !Number.isFinite(e.reduce((e, t) => e + (t.points[n]?.value ?? 0), 0)))) return "Stacked observation totals must be finite.";
1003
1044
  }
1004
- function ye({ series: e, markers: t, timestampUnit: n, isStacked: r }) {
1045
+ function xe({ series: e, markers: t, timestampUnit: n, isStacked: r }) {
1005
1046
  return JSON.stringify([
1006
1047
  n,
1007
1048
  r,
@@ -1021,15 +1062,15 @@ function ye({ series: e, markers: t, timestampUnit: n, isStacked: r }) {
1021
1062
  ])
1022
1063
  ]);
1023
1064
  }
1024
- function be(e, t, n = !1) {
1065
+ function Se(e, t, n = !1) {
1025
1066
  if (e !== t) return [e, t];
1026
- let r = Math.max(1, Math.abs(e) * ge), i = n ? 0 : e - r, a = t + r;
1067
+ let r = Math.max(1, Math.abs(e) * ve), i = n ? 0 : e - r, a = t + r;
1027
1068
  return [Number.isFinite(i) ? i : e, Number.isFinite(a) ? a : t];
1028
1069
  }
1029
- function xe(e, t) {
1070
+ function Ce(e, t) {
1030
1071
  let n = e.filter((e) => e.tone === void 0);
1031
1072
  return e.map((r, i) => {
1032
- let a = n.findIndex((e) => e.id === r.id), o = r.tone ?? _e[a % _e.length] ?? "series1", s = r.points.map((n, r) => {
1073
+ let a = n.findIndex((e) => e.id === r.id), o = r.tone ?? ye[a % ye.length] ?? "series1", s = r.points.map((n, r) => {
1033
1074
  let a = t ? e.slice(0, i).reduce((e, t) => e + (t.points[r]?.value ?? 0), 0) : 0;
1034
1075
  return {
1035
1076
  ...n,
@@ -1044,7 +1085,7 @@ function xe(e, t) {
1044
1085
  };
1045
1086
  });
1046
1087
  }
1047
- function Se({ points: e, timestamps: t, isStacked: n }) {
1088
+ function we({ points: e, timestamps: t, isStacked: n }) {
1048
1089
  for (let [r, i] of e.entries()) {
1049
1090
  let a = e[r - 1], o = a !== void 0 && i.timestamp <= a.timestamp;
1050
1091
  if (!Number.isFinite(i.timestamp) || i.timestamp !== t[r] || o) return "Observation timestamps must be finite, aligned, and strictly increasing.";
@@ -1053,14 +1094,14 @@ function Se({ points: e, timestamps: t, isStacked: n }) {
1053
1094
  }
1054
1095
  }
1055
1096
  // packages/charts/src/cartesian/time-series-line.tsx
1056
- function Ce({ series: e, x: t, y: n, inspectedTimestamp: r, pointRadius: i = 3 }) {
1057
- return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(re, {
1097
+ function Te({ series: e, x: t, y: n, inspectedTimestamp: r, pointRadius: i = 3 }) {
1098
+ return /* @__PURE__ */ E(w, { children: [/* @__PURE__ */ T(O, {
1058
1099
  data: [...e.points],
1059
1100
  defined: (e) => e.value !== null,
1060
1101
  x: (e) => t(e.timestamp),
1061
1102
  y: (e) => n((e.value ?? 0) + e.base),
1062
1103
  stroke: p[e.tone],
1063
- ...b.props(d.mark)
1104
+ ...x.props(d.mark)
1064
1105
  }), e.points.filter((t, n) => {
1065
1106
  if (t.value === null) return !1;
1066
1107
  let i = e.points[n - 1]?.value === null || e.points[n + 1]?.value === null;
@@ -1073,8 +1114,8 @@ function Ce({ series: e, x: t, y: n, inspectedTimestamp: r, pointRadius: i = 3 }
1073
1114
  }, r.timestamp))] });
1074
1115
  }
1075
1116
  // packages/charts/src/cartesian/sparkline.tsx
1076
- function we({ title: e, summary: t, unit: n, timestampUnit: r, series: i, valueDomain: a }) {
1077
- let o = S(), s = S(), c = Te({
1117
+ function Ee({ title: e, summary: t, unit: n, timestampUnit: r, series: i, valueDomain: a }) {
1118
+ let o = S(), s = S(), c = De({
1078
1119
  title: e,
1079
1120
  summary: t,
1080
1121
  unit: n,
@@ -1088,13 +1129,13 @@ function we({ title: e, summary: t, unit: n, timestampUnit: r, series: i, valueD
1088
1129
  className: "x2pejg6 x10w6t97 x2lah0s xxymvpz x3nfvp2 x6s0dn4 xl56j7k x153jb6y x1hz01jw xy8obcc",
1089
1130
  children: c === void 0 ? "No data" : "Invalid trend"
1090
1131
  });
1091
- let u = i.points[0]?.timestamp ?? 0, d = i.points.at(-1)?.timestamp ?? u, f = O({
1092
- domain: [...be(u, d)],
1132
+ let u = i.points[0]?.timestamp ?? 0, d = i.points.at(-1)?.timestamp ?? u, f = D({
1133
+ domain: [...Se(u, d)],
1093
1134
  range: [3, 125]
1094
- }), p = O({
1135
+ }), p = D({
1095
1136
  domain: [...a],
1096
1137
  range: [29, 3]
1097
- }), m = xe([i], !1)[0];
1138
+ }), m = Ce([i], !1)[0];
1098
1139
  return /* @__PURE__ */ E("svg", {
1099
1140
  role: "img",
1100
1141
  "aria-labelledby": o,
@@ -1127,7 +1168,7 @@ function we({ title: e, summary: t, unit: n, timestampUnit: r, series: i, valueD
1127
1168
  "."
1128
1169
  ]
1129
1170
  }),
1130
- m !== void 0 && /* @__PURE__ */ T(Ce, {
1171
+ m !== void 0 && /* @__PURE__ */ T(Te, {
1131
1172
  series: m,
1132
1173
  x: f,
1133
1174
  y: p,
@@ -1136,10 +1177,10 @@ function we({ title: e, summary: t, unit: n, timestampUnit: r, series: i, valueD
1136
1177
  ]
1137
1178
  });
1138
1179
  }
1139
- function Te({ title: e, summary: t, unit: n, series: r, valueDomain: i }) {
1180
+ function De({ title: e, summary: t, unit: n, series: r, valueDomain: i }) {
1140
1181
  if (e.trim() === "" || t.trim() === "" || n.trim() === "") return "A trend requires a title, a readable summary, and a value unit.";
1141
1182
  if (!g(i)) return "The displayed value domain must have finite, increasing bounds.";
1142
- let a = ve({
1183
+ let a = be({
1143
1184
  series: [r],
1144
1185
  isStacked: !1,
1145
1186
  markers: []
@@ -1148,7 +1189,7 @@ function Te({ title: e, summary: t, unit: n, series: r, valueDomain: i }) {
1148
1189
  if (r.points.some((e) => e.value !== null && (e.value < i[0] || e.value > i[1]))) return "Every recorded value must be inside the declared value domain.";
1149
1190
  }
1150
1191
  // packages/charts/src/cartesian/time-series.tsx
1151
- var Ee = {
1192
+ var Oe = {
1152
1193
  timeAxis: {
1153
1194
  k1xSpc: "x78zum5",
1154
1195
  kjj79g: "x1qughib",
@@ -1169,28 +1210,32 @@ var Ee = {
1169
1210
  "--x-paddingInlineEnd": ((e) => typeof e == "number" ? e + "px" : e ?? void 0)(t)
1170
1211
  }]
1171
1212
  };
1172
- function De(e) {
1173
- return /* @__PURE__ */ T(Me, {
1213
+ function ke(e) {
1214
+ return /* @__PURE__ */ T(Ie, {
1174
1215
  ...e,
1175
1216
  kind: "line",
1176
1217
  isStacked: !1
1177
1218
  });
1178
1219
  }
1179
- function Oe({ isStacked: e = !1, ...t }) {
1180
- return /* @__PURE__ */ T(Me, {
1220
+ function Ae({ isStacked: e = !1, ...t }) {
1221
+ return /* @__PURE__ */ T(Ie, {
1181
1222
  ...t,
1182
1223
  kind: "area",
1183
1224
  isStacked: e
1184
1225
  });
1185
1226
  }
1186
- function ke({ title: n, description: r, series: i, actions: a, height: o = 180 }) {
1187
- let s = S(), c = xe(i.map((e) => ({
1227
+ function je(e) {
1228
+ return /* @__PURE__ */ T(Me, { ...e });
1229
+ }
1230
+ function Me({ title: n, description: r, series: i, actions: a, report: o, height: s = 180, showTimeAxis: c = !0 }) {
1231
+ let l = S(), u = Ce(i.map((e) => ({
1188
1232
  ...e,
1189
1233
  points: []
1190
1234
  })), !1);
1191
- return !Number.isFinite(o) || o < 48 ? /* @__PURE__ */ T(_, {
1235
+ return !Number.isFinite(s) || s < 48 ? /* @__PURE__ */ T(_, {
1192
1236
  title: n,
1193
1237
  description: r,
1238
+ report: o,
1194
1239
  message: "Chart height must be at least 48 pixels."
1195
1240
  }) : /* @__PURE__ */ T("div", {
1196
1241
  "aria-hidden": !0,
@@ -1199,23 +1244,26 @@ function ke({ title: n, description: r, series: i, actions: a, height: o = 180 }
1199
1244
  children: /* @__PURE__ */ T(f, {
1200
1245
  title: n,
1201
1246
  description: r,
1202
- actions: /* @__PURE__ */ E(w, { children: [a, /* @__PURE__ */ T(ae, {
1247
+ report: o,
1248
+ series: u,
1249
+ actions: /* @__PURE__ */ E(w, { children: [a, /* @__PURE__ */ T(se, {
1203
1250
  title: n,
1204
1251
  children: null
1205
1252
  })] }),
1206
1253
  children: /* @__PURE__ */ E("div", {
1207
1254
  className: "xrvj5dj x1n8ia3y",
1208
- children: [/* @__PURE__ */ T(se, {
1209
- id: s,
1255
+ children: [/* @__PURE__ */ T(M, {
1256
+ id: l,
1210
1257
  label: void 0,
1211
- legend: c,
1258
+ legend: u,
1212
1259
  rows: [],
1213
1260
  x: 0,
1214
1261
  width: 0,
1215
- source: void 0
1262
+ source: void 0,
1263
+ hasSeriesSummary: o?.seriesValues !== void 0
1216
1264
  }), /* @__PURE__ */ E("div", {
1217
- ...b.props(d.plot),
1218
- children: [/* @__PURE__ */ T(t, { height: o - 16 }), /* @__PURE__ */ E("div", {
1265
+ ...x.props(d.plot),
1266
+ children: [/* @__PURE__ */ T(t, { height: s - 16 }), c && /* @__PURE__ */ E("div", {
1219
1267
  className: "x78zum5 x1qughib x8zbtdt x1c87qhr xy8obcc xas2l8k x153jb6y xss6m8b",
1220
1268
  children: [/* @__PURE__ */ T(e, { width: "8ch" }), /* @__PURE__ */ T(e, { width: "8ch" })]
1221
1269
  })]
@@ -1224,18 +1272,18 @@ function ke({ title: n, description: r, series: i, actions: a, height: o = 180 }
1224
1272
  })
1225
1273
  });
1226
1274
  }
1227
- function Ae({ charts: e, ...t }) {
1275
+ function Ne({ charts: e, ...t }) {
1228
1276
  let n = ne(null), [r, i] = C(), a = JSON.stringify(e.map((e) => [
1229
1277
  e.id,
1230
1278
  e.title,
1231
- ye({
1279
+ xe({
1232
1280
  series: e.series,
1233
1281
  markers: e.markers ?? [],
1234
1282
  timestampUnit: t.timestampUnit,
1235
1283
  isStacked: !1
1236
1284
  })
1237
1285
  ])), o = JSON.stringify(e[0]?.series[0]?.points.map((e) => e.timestamp) ?? []), s = e.every((e) => JSON.stringify(e.series[0]?.points.map((e) => e.timestamp) ?? []) === o);
1238
- if (r !== void 0 && r.signature !== a && i(void 0), x(() => {
1286
+ if (r !== void 0 && r.signature !== a && i(void 0), ee(() => {
1239
1287
  function e(e) {
1240
1288
  e.target instanceof Node && n.current?.contains(e.target) !== !0 && i(void 0);
1241
1289
  }
@@ -1255,114 +1303,156 @@ function Ae({ charts: e, ...t }) {
1255
1303
  children: "No charts"
1256
1304
  })
1257
1305
  });
1258
- let c = {
1259
- value: r?.signature === a ? r : void 0,
1260
- onChange: (e) => i(e === void 0 ? void 0 : {
1261
- ...e,
1262
- signature: a
1263
- })
1264
- }, l = Math.max(52, ...e.flatMap((e) => e.series.flatMap((t) => t.points.flatMap((t) => t.value === null || !Number.isFinite(t.value) ? [] : [(e.formatTick ?? e.formatValue)(t.value).length * 7 + 12]))));
1306
+ let c = Math.max(52, ...e.flatMap((e) => e.series.flatMap((t) => t.points.flatMap((t) => t.value === null || !Number.isFinite(t.value) ? [] : [(e.formatTick ?? e.formatValue)(t.value).length * 7 + 12])))), l = e.every((e) => e.report !== void 0);
1265
1307
  return /* @__PURE__ */ T("div", {
1266
1308
  ref: n,
1267
- className: "xrvj5dj x1j825kq",
1268
- children: e.map((e) => /* @__PURE__ */ T(Me, {
1269
- ...t,
1270
- title: e.title,
1271
- description: e.description,
1272
- series: e.series,
1273
- formatValue: e.formatValue,
1274
- formatTick: e.formatTick,
1275
- markers: e.markers,
1276
- kind: "line",
1277
- isStacked: !1,
1278
- sharedInspection: c,
1279
- axisWidth: l
1280
- }, e.id))
1309
+ ...{
1310
+ 0: { className: "xrvj5dj x1j825kq" },
1311
+ 1: { className: "xrvj5dj xxhr3t" }
1312
+ }[!!l | 0],
1313
+ children: e.map((n, o) => /* @__PURE__ */ T("div", {
1314
+ ...{
1315
+ 0: {},
1316
+ 1: { className: "x1y332i5" }
1317
+ }[!!(l && o > 0) | 0],
1318
+ children: /* @__PURE__ */ T(Ie, {
1319
+ ...t,
1320
+ title: n.title,
1321
+ description: n.description,
1322
+ report: n.report,
1323
+ series: n.series,
1324
+ formatValue: n.formatValue,
1325
+ formatTick: n.formatTick,
1326
+ markers: n.markers,
1327
+ kind: "line",
1328
+ isStacked: !1,
1329
+ sharedInspection: {
1330
+ value: r?.signature === a ? r : void 0,
1331
+ isSource: r?.chartId === n.id,
1332
+ onChange: (e) => i(e === void 0 ? void 0 : {
1333
+ ...e,
1334
+ signature: a,
1335
+ chartId: n.id
1336
+ })
1337
+ },
1338
+ axisWidth: c,
1339
+ showTimeAxis: o === e.length - 1
1340
+ })
1341
+ }, n.id))
1281
1342
  });
1282
1343
  }
1283
- var je = {
1344
+ function Pe({ charts: e, height: t }) {
1345
+ if (!h(e) || e.length > $.panels) return /* @__PURE__ */ T(_, {
1346
+ title: "Small multiples",
1347
+ message: `Choose at most ${$.panels} panels with unique identifiers.`
1348
+ });
1349
+ let n = e.every((e) => e.report !== void 0);
1350
+ return /* @__PURE__ */ T("div", {
1351
+ "aria-hidden": !0,
1352
+ inert: !0,
1353
+ ...{
1354
+ 0: { className: "xrvj5dj x1j825kq" },
1355
+ 1: { className: "xrvj5dj xxhr3t" }
1356
+ }[!!n | 0],
1357
+ children: e.map((r, i) => /* @__PURE__ */ T("div", {
1358
+ ...{
1359
+ 0: {},
1360
+ 1: { className: "x1y332i5" }
1361
+ }[!!(n && i > 0) | 0],
1362
+ children: /* @__PURE__ */ T(Me, {
1363
+ ...r,
1364
+ height: t,
1365
+ showTimeAxis: i === e.length - 1
1366
+ })
1367
+ }, r.id))
1368
+ });
1369
+ }
1370
+ var Fe = {
1284
1371
  "x-default-marker": "x-default-marker",
1285
1372
  $$css: !0
1286
1373
  };
1287
- function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimestamp: i, formatValue: a, formatTick: o = a, markers: s = [], height: c = 180, actions: l, kind: u, isStacked: m, sharedInspection: h, axisWidth: g }) {
1288
- let y = !Number.isFinite(c) || c < 48 ? "Chart height must be at least 48 pixels." : ve({
1374
+ function Ie({ title: e, description: t, series: n, timestampUnit: r, formatTimestamp: i, formatValue: a, formatTick: o = a, markers: s = [], height: c = 180, actions: l, report: u, kind: m, isStacked: h, sharedInspection: g, axisWidth: b, showTimeAxis: re = !0 }) {
1375
+ let ae = !Number.isFinite(c) || c < 48 ? "Chart height must be at least 48 pixels." : be({
1289
1376
  series: n,
1290
- isStacked: m,
1377
+ isStacked: h,
1291
1378
  markers: s
1292
- }), D = te(() => y === void 0 ? xe(n, m) : [], [
1379
+ }), O = te(() => ae === void 0 ? Ce(n, h) : [], [
1293
1380
  n,
1294
- m,
1295
- y
1296
- ]), A = D[0]?.points ?? [], { ref: re, width: j, element: M } = v(), ce = ne(null), [N, le] = C(), P = A.find((e) => e.timestamp === N) ?? A[0], [ue, de] = C(), F = ye({
1381
+ h,
1382
+ ae
1383
+ ]), k = O[0]?.points ?? [], { ref: A, width: j, element: ce } = y(), ue = ne(null), [N, de] = C(), P = k.find((e) => e.timestamp === N) ?? k[0], [fe, pe] = C(), F = xe({
1297
1384
  series: n,
1298
1385
  markers: s,
1299
1386
  timestampUnit: r,
1300
- isStacked: m
1301
- }), I = h === void 0 ? ue?.signature === F ? ue : void 0 : h.value, fe = S();
1302
- ue !== void 0 && (ue.signature !== F || y !== void 0) && de(void 0);
1303
- let pe = h !== void 0;
1304
- if (x(() => {
1305
- if (pe) return;
1387
+ isStacked: h
1388
+ }), I = g === void 0 ? fe?.signature === F ? fe : void 0 : g.value, L = g === void 0 || g.isSource ? I : void 0, me = u?.seriesValues !== void 0, he = S();
1389
+ fe !== void 0 && (fe.signature !== F || ae !== void 0) && pe(void 0);
1390
+ let R = g !== void 0;
1391
+ if (ee(() => {
1392
+ if (R) return;
1306
1393
  function e(e) {
1307
- e.target instanceof Node && ce.current?.contains(e.target) !== !0 && de(void 0);
1394
+ e.target instanceof Node && ue.current?.contains(e.target) !== !0 && pe(void 0);
1308
1395
  }
1309
1396
  return document.addEventListener("pointerdown", e), () => document.removeEventListener("pointerdown", e);
1310
- }, [pe]), y !== void 0) return /* @__PURE__ */ T(_, {
1397
+ }, [R]), ae !== void 0) return /* @__PURE__ */ T(_, {
1311
1398
  title: e,
1312
1399
  description: t,
1313
- message: y
1400
+ report: u,
1401
+ message: ae
1314
1402
  });
1315
- if (A.length === 0) return /* @__PURE__ */ T(f, {
1403
+ if (k.length === 0) return /* @__PURE__ */ T(f, {
1316
1404
  title: e,
1317
1405
  description: t,
1318
1406
  actions: l,
1407
+ report: u,
1408
+ series: O,
1319
1409
  children: /* @__PURE__ */ T("p", {
1320
1410
  className: "x153jb6y",
1321
1411
  children: "No observations"
1322
1412
  })
1323
1413
  });
1324
- let L = c - 28, me = L + 12, R = A[0]?.timestamp ?? 0, z = A.at(-1)?.timestamp ?? R, B = D.flatMap((e) => e.points.flatMap((e) => e.value === null ? [] : [e.value + e.base])), V = u === "area" ? Math.min(0, ...B) : Math.min(...B), H = u === "area" ? Math.max(0, ...B) : Math.max(...B), U = B.length === 0 ? 0 : V, W = B.length === 0 ? 1 : H, G = O({
1325
- domain: [...be(U, W, u === "area")],
1326
- range: [L, 12]
1327
- }), K = G.ticks(3), q = g ?? Math.max(44, ...K.map((e) => o(e).length * 7 + 12)), J = Math.max(q + 1, j - 16), Y = O({
1328
- domain: [...be(R, z)],
1329
- range: [q, J]
1414
+ let z = c - 28, ge = z + 12, B = k[0]?.timestamp ?? 0, V = k.at(-1)?.timestamp ?? B, H = O.flatMap((e) => e.points.flatMap((e) => e.value === null ? [] : [e.value + e.base])), U = m === "area" ? Math.min(0, ...H) : Math.min(...H), W = m === "area" ? Math.max(0, ...H) : Math.max(...H), G = H.length === 0 ? 0 : U, K = H.length === 0 ? 1 : W, q = D({
1415
+ domain: [...Se(G, K, m === "area")],
1416
+ range: [z, 12]
1417
+ }), J = q.ticks(3), Y = b ?? Math.max(44, ...J.map((e) => o(e).length * 7 + 12)), X = Math.max(Y + 1, j - 16), Z = D({
1418
+ domain: [...Se(B, V)],
1419
+ range: [Y, X]
1330
1420
  });
1331
- function X(e) {
1332
- let t = M?.getBoundingClientRect();
1421
+ function _e(e) {
1422
+ let t = ce?.getBoundingClientRect();
1333
1423
  if (t === void 0) return;
1334
- let n = Y.invert(e - t.left), r = A.find((e, t) => {
1335
- let r = A[t + 1];
1424
+ let n = Z.invert(e - t.left), r = k.find((e, t) => {
1425
+ let r = k[t + 1];
1336
1426
  return r === void 0 || n <= e.timestamp + (r.timestamp - e.timestamp) / 2;
1337
1427
  });
1338
- r !== void 0 && Z({
1428
+ r !== void 0 && Q({
1339
1429
  signature: F,
1340
1430
  timestamp: r.timestamp,
1341
1431
  source: "pointer"
1342
1432
  });
1343
1433
  }
1344
- function Z(e) {
1345
- h === void 0 ? de(e) : h.onChange(e);
1346
- }
1347
1434
  function Q(e) {
1435
+ g === void 0 ? pe(e) : g.onChange(e);
1436
+ }
1437
+ function $(e) {
1348
1438
  if (e.altKey || e.ctrlKey || e.metaKey) return;
1349
- let t = A.findIndex((e) => e.timestamp === P?.timestamp), n = {
1350
- ArrowRight: Math.min(A.length - 1, t + 1),
1439
+ let t = k.findIndex((e) => e.timestamp === P?.timestamp), n = {
1440
+ ArrowRight: Math.min(k.length - 1, t + 1),
1351
1441
  ArrowLeft: Math.max(0, t - 1),
1352
1442
  Home: 0,
1353
- End: A.length - 1
1443
+ End: k.length - 1
1354
1444
  };
1355
1445
  switch (e.key) {
1356
1446
  case "Escape":
1357
- e.preventDefault(), e.stopPropagation(), Z(void 0);
1447
+ e.preventDefault(), e.stopPropagation(), Q(void 0);
1358
1448
  break;
1359
1449
  case "ArrowRight":
1360
1450
  case "ArrowLeft":
1361
1451
  case "Home":
1362
1452
  case "End": {
1363
1453
  e.preventDefault();
1364
- let t = A[n[e.key]];
1365
- t !== void 0 && (le(t.timestamp), Z({
1454
+ let t = k[n[e.key]];
1455
+ t !== void 0 && (de(t.timestamp), Q({
1366
1456
  signature: F,
1367
1457
  timestamp: t.timestamp,
1368
1458
  source: "keyboard"
@@ -1372,18 +1462,20 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1372
1462
  }
1373
1463
  }
1374
1464
  return /* @__PURE__ */ T("div", {
1375
- ref: ce,
1465
+ ref: ue,
1376
1466
  className: "xeuugli",
1377
1467
  children: /* @__PURE__ */ T(f, {
1378
- title: /* @__PURE__ */ T(oe, {
1468
+ title: me ? e : /* @__PURE__ */ T(le, {
1379
1469
  title: e,
1380
- detail: I === void 0 ? void 0 : i(I.timestamp)
1470
+ detail: L === void 0 ? void 0 : i(L.timestamp)
1381
1471
  }),
1382
1472
  description: t,
1473
+ report: u,
1474
+ series: O,
1383
1475
  actions: /* @__PURE__ */ E(w, { children: [
1384
1476
  l,
1385
1477
  " ",
1386
- /* @__PURE__ */ T(ae, {
1478
+ /* @__PURE__ */ T(se, {
1387
1479
  title: e,
1388
1480
  children: /* @__PURE__ */ E("table", {
1389
1481
  className: "xh8yej3 x1mwwwfo xy8obcc x1yc453h xss6m8b",
@@ -1397,16 +1489,16 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1397
1489
  r,
1398
1490
  ")"
1399
1491
  ]
1400
- }), D.map((e) => /* @__PURE__ */ T("th", {
1492
+ }), O.map((e) => /* @__PURE__ */ T("th", {
1401
1493
  scope: "col",
1402
1494
  className: "x69ldcm x1yc453h xso031l x1q0q8m5 x1qndepd xj57cvi",
1403
1495
  children: e.label
1404
1496
  }, e.id))] }) }),
1405
- /* @__PURE__ */ T("tbody", { children: A.map((e, t) => /* @__PURE__ */ E("tr", { children: [/* @__PURE__ */ T("th", {
1497
+ /* @__PURE__ */ T("tbody", { children: k.map((e, t) => /* @__PURE__ */ E("tr", { children: [/* @__PURE__ */ T("th", {
1406
1498
  scope: "row",
1407
1499
  className: "x69ldcm x1yc453h xso031l x1q0q8m5 x1qndepd xj57cvi",
1408
1500
  children: i(e.timestamp)
1409
- }), D.map((e) => /* @__PURE__ */ T("td", {
1501
+ }), O.map((e) => /* @__PURE__ */ T("td", {
1410
1502
  className: "x69ldcm x1yc453h xso031l x1q0q8m5 x1qndepd xj57cvi",
1411
1503
  children: e.points[t]?.value === null || e.points[t]?.value === void 0 ? "Unavailable" : a(e.points[t].value)
1412
1504
  }, e.id))] }, e.timestamp)) })
@@ -1417,16 +1509,16 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1417
1509
  children: /* @__PURE__ */ E("div", {
1418
1510
  className: "xrvj5dj x1n8ia3y",
1419
1511
  children: [
1420
- /* @__PURE__ */ T(se, {
1421
- id: fe,
1422
- label: I === void 0 ? void 0 : i(I.timestamp),
1423
- legend: D.map(({ id: e, label: t, tone: n }) => ({
1512
+ /* @__PURE__ */ T(M, {
1513
+ id: he,
1514
+ label: L === void 0 ? void 0 : i(L.timestamp),
1515
+ legend: O.map(({ id: e, label: t, tone: n }) => ({
1424
1516
  id: e,
1425
1517
  label: t,
1426
1518
  tone: n
1427
1519
  })),
1428
- rows: D.map((e) => {
1429
- let t = e.points.find((e) => e.timestamp === I?.timestamp);
1520
+ rows: O.map((e) => {
1521
+ let t = e.points.find((e) => e.timestamp === L?.timestamp);
1430
1522
  return {
1431
1523
  id: e.id,
1432
1524
  label: e.label,
@@ -1434,26 +1526,27 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1434
1526
  value: t?.value === null || t === void 0 ? "Unavailable" : a(t.value)
1435
1527
  };
1436
1528
  }),
1437
- x: Y(I?.timestamp ?? R),
1529
+ x: Z(I?.timestamp ?? B),
1438
1530
  width: j,
1439
- source: I?.source,
1440
- notes: s.filter((e) => e.timestamp === I?.timestamp).map((e) => e.label)
1531
+ source: L?.source,
1532
+ notes: s.filter((e) => e.timestamp === L?.timestamp).map((e) => e.label),
1533
+ hasSeriesSummary: me
1441
1534
  }),
1442
1535
  /* @__PURE__ */ E("div", {
1443
- ref: re,
1444
- ...b.props(d.plot),
1536
+ ref: A,
1537
+ ...x.props(d.plot),
1445
1538
  children: [/* @__PURE__ */ E("svg", {
1446
1539
  role: "img",
1447
1540
  "aria-label": `${e}. Use arrow keys to inspect observations.`,
1448
- "aria-describedby": fe,
1541
+ "aria-describedby": he,
1449
1542
  tabIndex: 0,
1450
- viewBox: `0 0 ${j} ${me}`,
1451
- height: me,
1452
- onKeyDown: Q,
1543
+ viewBox: `0 0 ${j} ${ge}`,
1544
+ height: ge,
1545
+ onKeyDown: $,
1453
1546
  onFocus: (e) => {
1454
1547
  if (e.currentTarget.matches(":focus-visible")) {
1455
- let e = I?.timestamp ?? R;
1456
- le(e), Z({
1548
+ let e = I?.timestamp ?? B;
1549
+ de(e), Q({
1457
1550
  signature: F,
1458
1551
  timestamp: e,
1459
1552
  source: "keyboard"
@@ -1461,80 +1554,80 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1461
1554
  }
1462
1555
  },
1463
1556
  onPointerMove: (e) => {
1464
- e.pointerType === "mouse" && X(e.clientX);
1557
+ e.pointerType === "mouse" && _e(e.clientX);
1465
1558
  },
1466
- onPointerDown: (e) => X(e.clientX),
1559
+ onPointerDown: (e) => _e(e.clientX),
1467
1560
  onPointerLeave: (e) => {
1468
- e.pointerType === "mouse" && I?.source === "pointer" && Z(void 0);
1561
+ e.pointerType === "mouse" && I?.source === "pointer" && Q(void 0);
1469
1562
  },
1470
- onBlur: () => Z(void 0),
1471
- ...b.props(d.svg, d.inspectable, je),
1563
+ onBlur: () => Q(void 0),
1564
+ ...x.props(d.svg, d.inspectable, Fe),
1472
1565
  children: [
1473
- K.map((e) => /* @__PURE__ */ E("g", { children: [/* @__PURE__ */ T("line", {
1474
- x1: q,
1475
- x2: J,
1476
- y1: G(e),
1477
- y2: G(e),
1478
- ...b.props(d.grid)
1566
+ J.map((e) => /* @__PURE__ */ E("g", { children: [/* @__PURE__ */ T("line", {
1567
+ x1: Y,
1568
+ x2: X,
1569
+ y1: q(e),
1570
+ y2: q(e),
1571
+ ...x.props(d.grid)
1479
1572
  }), /* @__PURE__ */ T("text", {
1480
- x: q - 8,
1481
- y: G(e),
1573
+ x: Y - 8,
1574
+ y: q(e),
1482
1575
  textAnchor: "end",
1483
1576
  dominantBaseline: "middle",
1484
- ...b.props(d.label),
1577
+ ...x.props(d.label),
1485
1578
  children: o(e)
1486
1579
  })] }, e)),
1487
- D.map((e) => /* @__PURE__ */ E("g", { children: [u === "area" && /* @__PURE__ */ T(k, {
1580
+ O.map((e) => /* @__PURE__ */ E("g", { children: [m === "area" && /* @__PURE__ */ T(ie, {
1488
1581
  data: [...e.points],
1489
1582
  defined: (e) => e.value !== null,
1490
- x: (e) => Y(e.timestamp),
1491
- y0: (e) => G(e.base),
1492
- y1: (e) => G((e.value ?? 0) + e.base),
1493
- yScale: G,
1583
+ x: (e) => Z(e.timestamp),
1584
+ y0: (e) => q(e.base),
1585
+ y1: (e) => q((e.value ?? 0) + e.base),
1586
+ yScale: q,
1494
1587
  fill: p[e.tone],
1495
- fillOpacity: m ? .65 : .15
1496
- }), /* @__PURE__ */ T(Ce, {
1588
+ fillOpacity: h ? .65 : .15
1589
+ }), /* @__PURE__ */ T(Te, {
1497
1590
  series: e,
1498
- x: Y,
1499
- y: G,
1591
+ x: Z,
1592
+ y: q,
1500
1593
  inspectedTimestamp: I?.timestamp
1501
1594
  })] }, e.id)),
1502
1595
  s.map((e) => /* @__PURE__ */ E("g", { children: [e.kind === "time" ? /* @__PURE__ */ T("line", {
1503
- x1: Y(e.timestamp),
1504
- x2: Y(e.timestamp),
1596
+ x1: Z(e.timestamp),
1597
+ x2: Z(e.timestamp),
1505
1598
  y1: 12,
1506
- y2: L,
1599
+ y2: z,
1507
1600
  className: "xhq4mlf x1ntoi03 x13efnbd"
1508
1601
  }) : /* @__PURE__ */ T("circle", {
1509
- cx: Y(e.timestamp),
1510
- cy: G(e.value + (D.find((t) => t.id === e.seriesId)?.points.find((t) => t.timestamp === e.timestamp)?.base ?? 0)),
1602
+ cx: Z(e.timestamp),
1603
+ cy: q(e.value + (O.find((t) => t.id === e.seriesId)?.points.find((t) => t.timestamp === e.timestamp)?.base ?? 0)),
1511
1604
  r: 4,
1512
- fill: ee.surface,
1513
- ...b.props(d.selected)
1605
+ fill: v.surface,
1606
+ ...x.props(d.selected)
1514
1607
  }), /* @__PURE__ */ T("title", { children: e.kind === "point" ? `${e.label}: ${a(e.value)}` : e.label })] }, e.id)),
1515
1608
  I !== void 0 && /* @__PURE__ */ T("line", {
1516
- x1: Y(I.timestamp),
1517
- x2: Y(I.timestamp),
1609
+ x1: Z(I.timestamp),
1610
+ x2: Z(I.timestamp),
1518
1611
  y1: 12,
1519
- y2: L,
1612
+ y2: z,
1520
1613
  className: "xhq4mlf x1ntoi03 x13efnbd"
1521
1614
  }),
1522
- P !== void 0 && /* @__PURE__ */ T(ie, {
1523
- x: Y(P.timestamp),
1615
+ P !== void 0 && /* @__PURE__ */ T(oe, {
1616
+ x: Z(P.timestamp),
1524
1617
  top: 12,
1525
- bottom: L,
1526
- width: Math.min(16, (J - q) / 2)
1618
+ bottom: z,
1619
+ width: Math.min(16, (X - Y) / 2)
1527
1620
  })
1528
1621
  ]
1529
- }), /* @__PURE__ */ E("div", {
1622
+ }), re && /* @__PURE__ */ E("div", {
1530
1623
  "aria-hidden": !0,
1531
- ...b.props(Ee.timeAxis, Ee.timeAxisInset(q, Math.max(0, j - J))),
1624
+ ...x.props(Oe.timeAxis, Oe.timeAxisInset(Y, Math.max(0, j - X))),
1532
1625
  children: [/* @__PURE__ */ T("span", {
1533
1626
  className: "x1cqoux5 xeuugli xj0a0fe",
1534
- children: i(R)
1535
- }), z !== R && /* @__PURE__ */ T("span", {
1627
+ children: i(B)
1628
+ }), V !== B && /* @__PURE__ */ T("span", {
1536
1629
  className: "x1cqoux5 xeuugli xj0a0fe xp4054r",
1537
- children: i(z)
1630
+ children: i(V)
1538
1631
  })]
1539
1632
  })]
1540
1633
  }),
@@ -1552,4 +1645,4 @@ function Me({ title: e, description: t, series: n, timestampUnit: r, formatTimes
1552
1645
  })
1553
1646
  });
1554
1647
  }
1555
- export { Oe as AreaChart, me as BarChart, I as BarChartPlaceholder, V as BreakdownBar, De as LineChart, K as MAX_SCATTER_POINTS, Y as ScatterPlot, Ae as SmallMultiples, we as Sparkline, ke as TimeSeriesChartPlaceholder, $ as timeSeriesLimits };
1648
+ export { Ae as AreaChart, R as BarChart, I as BarChartPlaceholder, V as BreakdownBar, ke as LineChart, K as MAX_SCATTER_POINTS, Y as ScatterPlot, Ne as SmallMultiples, Pe as SmallMultiplesPlaceholder, Ee as Sparkline, je as TimeSeriesChartPlaceholder, $ as timeSeriesLimits };