@graphysdk/react-renderer 1.9.0-beta.1792478311419 → 1.9.0-beta.1792505847409

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.
@@ -22,11 +22,11 @@ import './history-chords.css';var Jn = Object.defineProperty, ed = (e, t) => {
22
22
  });
23
23
  return t || Jn(r, Symbol.toStringTag, { value: "Module" }), r;
24
24
  };
25
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1792478311419");
25
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1792505847409");
26
26
  function td(e) {
27
27
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
28
28
  }
29
- var ca = Y(null), a0 = ca.Provider, rd = null, nn = () => N(ca) ?? (rd ??= $s());
29
+ var ca = Y(null), ay = ca.Provider, rd = null, nn = () => N(ca) ?? (rd ??= $s());
30
30
  var ua = Y(null), ee = () => {
31
31
  const e = N(ua);
32
32
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
@@ -257,7 +257,7 @@ var ua = Y(null), ee = () => {
257
257
  "data-testid": "companion-point"
258
258
  });
259
259
  };
260
- var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, i0 = (e, t) => {
260
+ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, iy = (e, t) => {
261
261
  const r = K(t), n = K(2 * t), o = `a${r},${r} 0 1,0 ${n},0a${r},${r} 0 1,0 ${-n},0Z`;
262
262
  return e.map(({ x: a, y: i }) => `M${K(a - t)},${K(i)}${o}`).join("");
263
263
  }, fd = (e, t, r) => {
@@ -498,10 +498,10 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, i0 = (e, t) => {
498
498
  }, wa = {}, ka = Y(wa), Rd = {
499
499
  x: 1,
500
500
  y: 1
501
- }, ar = Y(null), s0 = ({ shapes: e = wa, children: t }) => /* @__PURE__ */ l(ka.Provider, {
501
+ }, ar = Y(null), sy = ({ shapes: e = wa, children: t }) => /* @__PURE__ */ l(ka.Provider, {
502
502
  value: e,
503
503
  children: t
504
- }), l0 = () => N(ka), sn = ({ size: e, space: t = "pixels", children: r }) => {
504
+ }), ly = () => N(ka), sn = ({ size: e, space: t = "pixels", children: r }) => {
505
505
  const n = b(() => e === null ? null : {
506
506
  size: e,
507
507
  space: t
@@ -513,7 +513,7 @@ var $n = 10 ** 2, K = (e) => Math.round(e * $n) / $n, i0 = (e, t) => {
513
513
  }, Cd = () => {
514
514
  const e = N(ar);
515
515
  return e?.space === "pixels" ? e.size : null;
516
- }, Ld = () => N(ar)?.size ?? null, d0 = () => {
516
+ }, Ld = () => N(ar)?.size ?? null, dy = () => {
517
517
  const e = N(ar);
518
518
  return e?.space !== "unit" ? Rd : {
519
519
  x: e.size.width,
@@ -1824,7 +1824,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1824
1824
  y: r
1825
1825
  };
1826
1826
  }
1827
- }, gt = "var(--graphy-editor-font-family, var(--graphy-font-family))", c0 = [
1827
+ }, gt = "var(--graphy-editor-font-family, var(--graphy-font-family))", cy = [
1828
1828
  "canvasDefault",
1829
1829
  "canvasBlue",
1830
1830
  "canvasCyan",
@@ -2069,7 +2069,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2069
2069
  fontEditorControlValue: D(y.fontWeightMedium, y.fontSizeSm, y.fontLineHeightSm, gt),
2070
2070
  fontEditorSectionTitle: D(y.fontWeightSemibold, y.fontSizeSm, y.fontLineHeightSm, gt),
2071
2071
  fontEditorCaption: D(y.fontWeightMedium, y.fontSizeXxs, y.fontLineHeightXxs, gt)
2072
- }, Pc = (e, t) => ({ familyDefault: br(t) ?? br(e.fontFamily) ?? br(lr) ?? "" }), br = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Rc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, u0 = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, h0 = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), v0 = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), Cc = (e) => `${e}px`, Ga = { editorControlHeight: Cc(32) }, Dt = {
2072
+ }, Pc = (e, t) => ({ familyDefault: br(t) ?? br(e.fontFamily) ?? br(lr) ?? "" }), br = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, Rc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, uy = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, hy = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), vy = (e) => e.length === 0 ? !1 : typeof CSS < "u" && typeof CSS.supports == "function" ? CSS.supports("color", e) : /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(e), Cc = (e) => `${e}px`, Ga = { editorControlHeight: Cc(32) }, Dt = {
2073
2073
  editOutline: 1,
2074
2074
  textToolbar: 10,
2075
2075
  textToolbarTooltip: 20,
@@ -2387,7 +2387,7 @@ var Ar = 3, hc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
2387
2387
  } catch {
2388
2388
  return new Kn(new Ps());
2389
2389
  }
2390
- }, qa = Y(null), g0 = qa.Provider, qc = null, de = () => N(qa) ?? (qc ??= lh()), Jc = 11.7, Zc = 0.75, so = 21.6, $c = "0 0 10 18", _c = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", eu = "_16vokpr0", tu = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), ru = (e, t) => {
2390
+ }, qa = Y(null), gy = qa.Provider, qc = null, de = () => N(qa) ?? (qc ??= lh()), Jc = 11.7, Zc = 0.75, so = 21.6, $c = "0 0 10 18", _c = "M2.48935 16.9323L9.07098 9.82964C9.51595 9.34944 9.51504 8.60728 9.0689 8.12818L2.48866 1.06172C1.85811 0.384586 0.974477 0 0.049217 0H0V18H0.0443689C0.972463 18 1.85854 17.6131 2.48935 16.9323Z", eu = "_16vokpr0", tu = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), ru = (e, t) => {
2391
2391
  const r = C(e ? 1 - t : t);
2392
2392
  return e ? {
2393
2393
  x1: "0%",
@@ -2602,7 +2602,7 @@ var uu = "_2qyyu60", hu = 2, vu = 12, gu = 12, lo = 1, co = 2, fu = 4, pu = 3, m
2602
2602
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
2603
2603
  ...fn(e),
2604
2604
  ...gn(e)
2605
- }), f0 = (e, t) => rr({
2605
+ }), fy = (e, t) => rr({
2606
2606
  [e.fontFamily]: t.fontFamily ?? y.fontFamily,
2607
2607
  [e.fontSize]: `${t.fontSize}px`,
2608
2608
  [e.fontWeight]: String(t.fontWeight),
@@ -3785,7 +3785,7 @@ function vr(e) {
3785
3785
  function di(e) {
3786
3786
  return e ? vr(e.render).live : !1;
3787
3787
  }
3788
- function p0(e, t) {
3788
+ function py(e, t) {
3789
3789
  return typeof e == "string" ? {
3790
3790
  ...t,
3791
3791
  geom: e
@@ -3806,7 +3806,7 @@ var dh = [
3806
3806
  "right",
3807
3807
  "bottom",
3808
3808
  "left"
3809
- ], m0 = () => rn((e) => ({
3809
+ ], my = () => rn((e) => ({
3810
3810
  boundary: null,
3811
3811
  setBoundary: (t) => e((r) => ch(r.boundary, t) ? r : { boundary: t })
3812
3812
  })), Nr = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, Hr = (e, t) => dh.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), ch = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Nr(e.frame, t.frame) && Nr(e.client, t.client) && Hr(e.frameSpans, t.frameSpans) && Hr(e.clientSpans, t.clientSpans), Dr = (e) => {
@@ -3883,7 +3883,7 @@ var ph = ({ hitTest: e, input: t }) => {
3883
3883
  y: "-25%",
3884
3884
  width: "150%",
3885
3885
  height: "150%"
3886
- }, y0 = (e) => /* @__PURE__ */ l(ui, {
3886
+ }, yy = (e) => /* @__PURE__ */ l(ui, {
3887
3887
  ...e,
3888
3888
  isEmpty: !1
3889
3889
  }), ui = ({ styleReaders: e, state: t, isEmpty: r, children: n }) => {
@@ -3989,7 +3989,7 @@ var Ah = (e, t) => {
3989
3989
  setElement: d
3990
3990
  };
3991
3991
  };
3992
- function x0() {
3992
+ function xy() {
3993
3993
  const [e, t] = U(null), r = F(null), n = F(null), o = F(null), a = ie(() => {
3994
3994
  o.current = null;
3995
3995
  const c = n.current;
@@ -4306,7 +4306,7 @@ var Re = {
4306
4306
  if (!e) return t;
4307
4307
  const r = e.trim().replace("_", "-").toLowerCase();
4308
4308
  return Object.keys(bn).find((n) => n.toLowerCase() === r) ?? t;
4309
- }, Sn = Y(null), Fh = [bn], vi = () => gi().translator, A0 = () => gi().dir, b0 = () => N(Sn) !== null, Gh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = Fh }) => {
4309
+ }, Sn = Y(null), Fh = [bn], vi = () => gi().translator, Ay = () => gi().dir, by = () => N(Sn) !== null, Gh = ({ locale: e, children: t, i18nOverrides: r, dictionaries: n = Fh }) => {
4310
4310
  const o = Dh(e), a = b(() => ({
4311
4311
  translator: Oh({
4312
4312
  locale: o,
@@ -4428,7 +4428,7 @@ var Re = {
4428
4428
  themeClass: pi,
4429
4429
  inlineVarsStyle: {},
4430
4430
  themeValues: hn("light", {})
4431
- }, kn = Y(null), En = () => N(kn) ?? Jh, S0 = () => N(kn) !== null, Zh = ({ colorScheme: e, textScale: t = 1, graphBackground: r, graphFontFamily: n, headingFontFamily: o, children: a }) => {
4431
+ }, kn = Y(null), En = () => N(kn) ?? Jh, Sy = () => N(kn) !== null, Zh = ({ colorScheme: e, textScale: t = 1, graphBackground: r, graphFontFamily: n, headingFontFamily: o, children: a }) => {
4432
4432
  const i = b(() => hn(e), [e]), s = b(() => {
4433
4433
  const c = { [y.textScale]: String(t) };
4434
4434
  return r !== void 0 && (c[y.graphBackground] = r), n !== void 0 && (c[y.fontFamily] = n), o !== void 0 && (c[y.fontFamilyHeading] = o), rr(c);
@@ -5141,7 +5141,7 @@ var Xt = {
5141
5141
  if (!e.has(t)) return e;
5142
5142
  const r = new Map(e);
5143
5143
  return r.delete(t), r;
5144
- }, w0 = (e, t) => e !== null && e.annotationId === t ? e : null, lg = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, k0 = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, dg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, E0 = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, cg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Bs(e.point.anchor, t.point.anchor), P0 = (e, t) => e !== null && e.annotationId === t ? e : null, ug = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, R0 = (e, t) => e !== null && e.annotationId === t ? e : null, hg = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, xt = ({ standingInteraction: e }, t) => e !== null && De(e, t) ? e : null, vg = (e, t) => {
5144
+ }, wy = (e, t) => e !== null && e.annotationId === t ? e : null, lg = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, ky = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, dg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Ey = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, cg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Bs(e.point.anchor, t.point.anchor), Py = (e, t) => e !== null && e.annotationId === t ? e : null, ug = (e, t) => e.annotationId === t.annotationId && e.region.x === t.region.x && e.region.y === t.region.y && e.region.width === t.region.width && e.region.height === t.region.height, Ry = (e, t) => e !== null && e.annotationId === t ? e : null, hg = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, xt = ({ standingInteraction: e }, t) => e !== null && De(e, t) ? e : null, vg = (e, t) => {
5145
5145
  if (e === null) return !1;
5146
5146
  switch (t.kind) {
5147
5147
  case "difference-arrow-endpoint-drag":
@@ -5159,14 +5159,14 @@ var Xt = {
5159
5159
  case "menu":
5160
5160
  return !1;
5161
5161
  }
5162
- }, De = (e, t) => e.kind === t, C0 = (e, t, r, n) => {
5162
+ }, De = (e, t) => e.kind === t, Cy = (e, t, r, n) => {
5163
5163
  const o = Ti(r.layerId, e, t, n);
5164
5164
  return o === null ? null : {
5165
5165
  observationIndex: e,
5166
5166
  predicate: o.predicate,
5167
5167
  selectedFor: r
5168
5168
  };
5169
- }, L0 = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
5169
+ }, Ly = ({ observationIndex: e, predicate: t, selectedFor: r }, n, o) => {
5170
5170
  const a = Ti(r.layerId, e, n, o);
5171
5171
  return a !== null && Yo(a.predicate, t) ? a.standing : null;
5172
5172
  }, gg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.observationIndex === t.observationIndex && Yo(e.predicate, t.predicate) && mt(e.selectedFor, t.selectedFor), Ti = (e, t, r, n) => {
@@ -5185,7 +5185,7 @@ var Xt = {
5185
5185
  },
5186
5186
  predicate: i.predicate
5187
5187
  };
5188
- }, I0 = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
5188
+ }, Iy = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
5189
5189
  kind: "observations",
5190
5190
  observations: r
5191
5191
  } : t, fg = (e, t) => {
@@ -5227,13 +5227,13 @@ var Xt = {
5227
5227
  editor: t
5228
5228
  } }),
5229
5229
  setPressedObservation: (t) => e((r) => gg(r.pressedObservation, t) ? r : { pressedObservation: t })
5230
- })), mg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : mt(e.target, t.target) && e.frameScale === t.frameScale && Nr(e.frame, t.frame) && Hr(e.frameSpans, t.frameSpans), Ln = Y(null), yg = Mi(), T0 = ({ children: e }) => {
5230
+ })), mg = (e, t) => e === t ? !0 : e === null || t === null ? !1 : mt(e.target, t.target) && e.frameScale === t.frameScale && Nr(e.frame, t.frame) && Hr(e.frameSpans, t.frameSpans), Ln = Y(null), yg = Mi(), Ty = ({ children: e }) => {
5231
5231
  const [t] = U(() => Mi());
5232
5232
  return /* @__PURE__ */ l(Ln.Provider, {
5233
5233
  value: t,
5234
5234
  children: e
5235
5235
  });
5236
- }, B0 = () => {
5236
+ }, By = () => {
5237
5237
  const e = N(Ln);
5238
5238
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
5239
5239
  return e;
@@ -5422,7 +5422,7 @@ var Rg = "vultop2", Cg = "vultop3", Lg = "vultop4", Ig = "vultop5", Tg = (e) =>
5422
5422
  Title: null,
5423
5423
  Caption: null,
5424
5424
  TextAnnotation: null
5425
- }), M0 = ({ editors: e, children: t }) => /* @__PURE__ */ l(Hi.Provider, {
5425
+ }), My = ({ editors: e, children: t }) => /* @__PURE__ */ l(Hi.Provider, {
5426
5426
  value: e,
5427
5427
  children: t
5428
5428
  }), In = () => N(Hi), Lo = "_4dlrid0", Gg = "xfz7dq0";
@@ -5730,7 +5730,7 @@ var vf = ({ segment: e, itemStyle: t }) => {
5730
5730
  if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
5731
5731
  const n = Number(r);
5732
5732
  return Number.isSafeInteger(n) ? n : null;
5733
- }, Xe = "data-edit-kind", Yi = "data-edit-id", Jt = "data-edit-axis", ji = "data-edit-tick-index", Ki = "data-legend-overflow-control", O0 = `[${Ki}]`, bf = "observations", Ui = "data-live-geom", Sf = `[${Xe}]`, Tt = (e) => ({
5733
+ }, Xe = "data-edit-kind", Yi = "data-edit-id", Jt = "data-edit-axis", ji = "data-edit-tick-index", Ki = "data-legend-overflow-control", Oy = `[${Ki}]`, bf = "observations", Ui = "data-live-geom", Sf = `[${Xe}]`, Tt = (e) => ({
5734
5734
  [Xe]: e.kind,
5735
5735
  [Yi]: e.id
5736
5736
  }), Tn = (e, t) => ({
@@ -5743,7 +5743,7 @@ var vf = ({ segment: e, itemStyle: t }) => {
5743
5743
  }), Qi = (e) => ({
5744
5744
  [Xe]: "grid",
5745
5745
  [Jt]: e
5746
- }), N0 = (e, t) => {
5746
+ }), Ny = (e, t) => {
5747
5747
  for (const r of e) {
5748
5748
  const n = r.closest(Sf);
5749
5749
  if (n === null || !t.contains(n)) continue;
@@ -5755,7 +5755,7 @@ var vf = ({ segment: e, itemStyle: t }) => {
5755
5755
  }, Xi = ({ isLive: e = !1 } = {}) => ({
5756
5756
  [Xe]: bf,
5757
5757
  ...e ? { [Ui]: "" } : {}
5758
- }), H0 = (e, t) => {
5758
+ }), Hy = (e, t) => {
5759
5759
  if (!(e instanceof Element)) return !1;
5760
5760
  const r = e.closest(`[${Ui}]`);
5761
5761
  return r !== null && r !== e && t.contains(r);
@@ -6344,7 +6344,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6344
6344
  },
6345
6345
  "data-testid": "hover-guide",
6346
6346
  children: t
6347
- }), Ap = (e) => e.hoverGuide().resolve(), D0 = (e, t, r) => {
6347
+ }), Ap = (e) => e.hoverGuide().resolve(), Dy = (e, t, r) => {
6348
6348
  for (const n of Object.values(rs)) {
6349
6349
  const o = n(e, t, r);
6350
6350
  if (o !== null) return o;
@@ -6842,7 +6842,7 @@ var sp = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6842
6842
  })
6843
6843
  }, i.id))
6844
6844
  });
6845
- }, _p = "_1aj6s5s0", F0 = "_1aj6s5s1", em = 0.1, G0 = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ l(os, {
6845
+ }, _p = "_1aj6s5s0", Fy = "_1aj6s5s1", em = 0.1, Gy = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ l(os, {
6846
6846
  annotation: e,
6847
6847
  panel: t,
6848
6848
  style: r,
@@ -7693,10 +7693,10 @@ var ss = (e, t) => {
7693
7693
  angleFor: (d) => Rl(d, a, i),
7694
7694
  radiusNormFor: (d) => o + d * (1 - o)
7695
7695
  };
7696
- }, ey = 16, ty = ({ formattedAxes: e, panelRect: t }) => {
7696
+ }, e0 = 16, t0 = ({ formattedAxes: e, panelRect: t }) => {
7697
7697
  const r = I(Rn, O()), n = He(), o = ss(t, e);
7698
7698
  if (!o) return null;
7699
- const { circle: a, circularAxis: i, radialAxis: s, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = ry(s, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
7699
+ const { circle: a, circularAxis: i, radialAxis: s, startAngle: d, angleFor: c, radiusNormFor: u } = o, h = r0(s, u, a.radius), g = (f) => r(Ae(f.scaleAestheticKey));
7700
7700
  return /* @__PURE__ */ S("svg", {
7701
7701
  x: t.x,
7702
7702
  y: t.y,
@@ -7717,7 +7717,7 @@ var ss = (e, t) => {
7717
7717
  return /* @__PURE__ */ l(Fo, {
7718
7718
  scaleAestheticKey: i.scaleAestheticKey,
7719
7719
  tickIndex: v,
7720
- placement: Go(p, ny(m)),
7720
+ placement: Go(p, n0(m)),
7721
7721
  label: f.formattedLabel,
7722
7722
  labelStyle: g(i),
7723
7723
  isHitTestable: n
@@ -7736,7 +7736,7 @@ var ss = (e, t) => {
7736
7736
  cursor: "pointer",
7737
7737
  children: i
7738
7738
  }) : i;
7739
- }, ry = (e, t, r) => {
7739
+ }, r0 = (e, t, r) => {
7740
7740
  if (!e) return [];
7741
7741
  const n = [];
7742
7742
  let o = Number.NEGATIVE_INFINITY;
@@ -7744,7 +7744,7 @@ var ss = (e, t) => {
7744
7744
  const s = t(i.position);
7745
7745
  if (s <= 0) continue;
7746
7746
  const d = s * r;
7747
- d - o < ey || (n.push({
7747
+ d - o < e0 || (n.push({
7748
7748
  tick: i,
7749
7749
  tickIndex: a,
7750
7750
  radiusNorm: s
@@ -7757,10 +7757,10 @@ var ss = (e, t) => {
7757
7757
  textAnchor: t,
7758
7758
  dominantBaseline: "central",
7759
7759
  transform: void 0
7760
- }), ny = (e) => {
7760
+ }), n0 = (e) => {
7761
7761
  const t = Math.sin(e);
7762
7762
  return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
7763
- }, oy = ({ formattedAxes: e, panelRect: t }) => {
7763
+ }, o0 = ({ formattedAxes: e, panelRect: t }) => {
7764
7764
  const r = O(), n = He(), o = I(Zt, r, "y"), a = I(Zt, r, "x"), i = ss(t, e);
7765
7765
  if (!i) return null;
7766
7766
  const { circle: s, circularAxis: d, radialAxis: c, innerRadius: u, angleFor: h, radiusNormFor: g } = i;
@@ -7836,7 +7836,7 @@ var ss = (e, t) => {
7836
7836
  ...r,
7837
7837
  isEmpty: Gr(t),
7838
7838
  children: t
7839
- }), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) : Kl(e) && (e.type === Pt || e.type === "g") ? Gr(e.props.children) : !1, ay = ({ layer: e, isDimmed: t, dimStyle: r, ...n }) => {
7839
+ }), Gr = (e) => e == null || typeof e == "boolean" || e === "" ? !0 : Array.isArray(e) ? e.every(Gr) : Kl(e) && (e.type === Pt || e.type === "g") ? Gr(e.props.children) : !1, a0 = ({ layer: e, isDimmed: t, dimStyle: r, ...n }) => {
7840
7840
  const o = Ai(e.id), a = od(e, G(e)), i = t ? r.filter : void 0, s = a && i ? `${a} ${i}` : a || i, d = o?.type === "fade", c = b(() => ({
7841
7841
  layerId: e.id,
7842
7842
  paintsShadow: a !== void 0,
@@ -7852,7 +7852,7 @@ var ss = (e, t) => {
7852
7852
  },
7853
7853
  children: /* @__PURE__ */ l(nr.Provider, {
7854
7854
  value: c,
7855
- children: /* @__PURE__ */ l(iy, {
7855
+ children: /* @__PURE__ */ l(i0, {
7856
7856
  layer: e,
7857
7857
  ...n
7858
7858
  })
@@ -7864,7 +7864,7 @@ var ss = (e, t) => {
7864
7864
  transition: ba(o),
7865
7865
  children: u
7866
7866
  }) : u;
7867
- }, iy = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, formattingLocale: n, panelRect: o, live: a }) => {
7867
+ }, i0 = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, formattingLocale: n, panelRect: o, live: a }) => {
7868
7868
  const i = de(), s = Ai(e.id), { colorScheme: d } = ee(), c = G(e), u = i(e.geom, t.type);
7869
7869
  if (u === null) return null;
7870
7870
  const h = vr(u.render), g = {
@@ -7892,7 +7892,7 @@ var ss = (e, t) => {
7892
7892
  children: f
7893
7893
  });
7894
7894
  };
7895
- function sy({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7895
+ function s0({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7896
7896
  if (e?.getOverlayAnchor === void 0 || n.length === 0) return [];
7897
7897
  const o = [];
7898
7898
  for (const { observation: a, observationIndex: i } of n) {
@@ -7909,8 +7909,8 @@ function sy({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7909
7909
  }
7910
7910
  return o;
7911
7911
  }
7912
- var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: s }) => {
7913
- const d = B((w) => w.config.numberFormat), c = b(() => sy({
7912
+ var l0 = 4, d0 = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: a, panelRect: i, formattingLocale: s }) => {
7913
+ const d = B((w) => w.config.numberFormat), c = b(() => s0({
7914
7914
  renderer: e,
7915
7915
  layer: t,
7916
7916
  coordSystem: o,
@@ -7949,7 +7949,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7949
7949
  children: e.renderHighlight ? e.renderHighlight(w) : A.fn(w)
7950
7950
  });
7951
7951
  }
7952
- return /* @__PURE__ */ S(Mn, { children: [x, c.map(({ observation: w, observationIndex: k, anchor: E }) => /* @__PURE__ */ l(cy, {
7952
+ return /* @__PURE__ */ S(Mn, { children: [x, c.map(({ observation: w, observationIndex: k, anchor: E }) => /* @__PURE__ */ l(c0, {
7953
7953
  observation: w,
7954
7954
  anchor: E,
7955
7955
  panelRect: i,
@@ -7960,8 +7960,8 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7960
7960
  formatYValue: v,
7961
7961
  labelStyle: p.observation.outside,
7962
7962
  familyDefault: m.familyDefault
7963
- }, uy(w, k)))] });
7964
- }, cy = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: s, labelStyle: d, familyDefault: c }) => {
7963
+ }, u0(w, k)))] });
7964
+ }, c0 = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: a, readSegmentY: i, formatYValue: s, labelStyle: d, familyDefault: c }) => {
7965
7965
  const u = Oe(), h = ia(t.x), g = sa(t.y), f = i(e) ?? null, v = f !== null ? s(f, e) : null, m = b(() => {
7966
7966
  if (v === null) return null;
7967
7967
  const p = u.measureText(v, te(d, c));
@@ -7984,7 +7984,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7984
7984
  "data-testid": "highlight-overlay-dot"
7985
7985
  }), v !== null && m !== null && /* @__PURE__ */ l(as, {
7986
7986
  x: h * r.width,
7987
- y: g * r.height - a - ly - m.height / 2,
7987
+ y: g * r.height - a - l0 - m.height / 2,
7988
7988
  width: m.width,
7989
7989
  height: m.height,
7990
7990
  text: v,
@@ -7993,10 +7993,10 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7993
7993
  position: "outside",
7994
7994
  coordType: "cartesian"
7995
7995
  })] });
7996
- }, uy = (e, t) => {
7996
+ }, u0 = (e, t) => {
7997
7997
  const r = e[ne.group];
7998
7998
  return `${String(r ?? "")}\0${t}`;
7999
- }, hy = ({ layer: e, coordSystem: t, panelRect: r }) => {
7999
+ }, h0 = ({ layer: e, coordSystem: t, panelRect: r }) => {
8000
8000
  const { primary: n, group: o, related: a } = $e(oe((f) => ({
8001
8001
  primary: f.hover.primary,
8002
8002
  group: f.hover.group,
@@ -8030,7 +8030,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8030
8030
  styleReaders: d
8031
8031
  })
8032
8032
  });
8033
- }, vy = (e) => {
8033
+ }, v0 = (e) => {
8034
8034
  const t = G(e);
8035
8035
  return b(() => {
8036
8036
  const [r] = e.data;
@@ -8044,11 +8044,11 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8044
8044
  filter: xa(kl(n))
8045
8045
  };
8046
8046
  }, [e, t]);
8047
- }, gy = "var(--to1jkx0)", fy = "var(--to1jkx1)", ls = "to1jkx2", py = "to1jkx3", my = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
8047
+ }, g0 = "var(--to1jkx0)", f0 = "var(--to1jkx1)", ls = "to1jkx2", p0 = "to1jkx3", m0 = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
8048
8048
  const { layers: n, coordSystem: o } = B(oe((s) => ({
8049
8049
  layers: s.layers,
8050
8050
  coordSystem: s.coordSystem
8051
- }))), a = yy(n, o), i = b(() => ({
8051
+ }))), a = y0(n, o), i = b(() => ({
8052
8052
  width: t.width,
8053
8053
  height: t.height
8054
8054
  }), [t.width, t.height]);
@@ -8068,7 +8068,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8068
8068
  shouldAnimateTransitions: e,
8069
8069
  panelRect: t,
8070
8070
  formattingLocale: r
8071
- }), /* @__PURE__ */ l(hy, {
8071
+ }), /* @__PURE__ */ l(h0, {
8072
8072
  layer: s,
8073
8073
  coordSystem: o,
8074
8074
  panelRect: t
@@ -8080,7 +8080,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8080
8080
  s,
8081
8081
  e,
8082
8082
  t
8083
- ]), c = e.highlight, u = vy(e), { colorScheme: h } = ee(), g = {
8083
+ ]), c = e.highlight, u = v0(e), { colorScheme: h } = ee(), g = {
8084
8084
  layer: e,
8085
8085
  coordSystem: t,
8086
8086
  shouldAnimateTransitions: r,
@@ -8090,10 +8090,10 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8090
8090
  styleReaders: G(e)
8091
8091
  }, f = d ? vr(d.render) : null, v = e.spatialKind === "render-hit-test", m = i && (u.opacity !== void 0 || u.filter !== void 0);
8092
8092
  return /* @__PURE__ */ S("g", {
8093
- className: m ? py : void 0,
8094
- style: m ? xy(u) : void 0,
8093
+ className: m ? p0 : void 0,
8094
+ style: m ? x0(u) : void 0,
8095
8095
  children: [
8096
- /* @__PURE__ */ l(ay, {
8096
+ /* @__PURE__ */ l(a0, {
8097
8097
  layer: e,
8098
8098
  coordSystem: t,
8099
8099
  shouldAnimateTransitions: r,
@@ -8107,7 +8107,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8107
8107
  hitTest: d.hitTest,
8108
8108
  input: g
8109
8109
  }),
8110
- c !== null && /* @__PURE__ */ l(dy, {
8110
+ c !== null && /* @__PURE__ */ l(d0, {
8111
8111
  renderer: d,
8112
8112
  layer: e,
8113
8113
  matchedLayer: c.composition.matchedLayer,
@@ -8119,13 +8119,13 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8119
8119
  })
8120
8120
  ]
8121
8121
  });
8122
- }, yy = (e, t) => {
8122
+ }, y0 = (e, t) => {
8123
8123
  const r = de();
8124
8124
  return Qe() ? [] : e.filter((n) => !di(r(n.geom, t.type)));
8125
- }, xy = (e) => rr({
8126
- ...e.opacity === void 0 ? {} : { [gy]: String(e.opacity) },
8127
- ...e.filter === void 0 ? {} : { [fy]: e.filter }
8128
- }), Ay = ({ panelRect: e, shouldAnimateTransitions: t, formattingLocale: r }) => {
8125
+ }, x0 = (e) => rr({
8126
+ ...e.opacity === void 0 ? {} : { [g0]: String(e.opacity) },
8127
+ ...e.filter === void 0 ? {} : { [f0]: e.filter }
8128
+ }), A0 = ({ panelRect: e, shouldAnimateTransitions: t, formattingLocale: r }) => {
8129
8129
  const { layers: n, coordSystem: o } = B(oe((c) => ({
8130
8130
  layers: c.layers,
8131
8131
  coordSystem: c.coordSystem
@@ -8140,7 +8140,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8140
8140
  }, []), s = b(() => ({
8141
8141
  width: e.width,
8142
8142
  height: e.height
8143
- }), [e.width, e.height]), d = Sy(n, o);
8143
+ }), [e.width, e.height]), d = S0(n, o);
8144
8144
  return d.length === 0 ? null : /* @__PURE__ */ l("svg", {
8145
8145
  ref: a,
8146
8146
  x: e.x,
@@ -8152,7 +8152,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8152
8152
  ...Xi({ isLive: !0 }),
8153
8153
  children: /* @__PURE__ */ l(sn, {
8154
8154
  size: s,
8155
- children: d.map((c) => /* @__PURE__ */ l(by, {
8155
+ children: d.map((c) => /* @__PURE__ */ l(b0, {
8156
8156
  layer: c,
8157
8157
  coordSystem: o,
8158
8158
  readPanelPoint: i,
@@ -8162,7 +8162,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8162
8162
  }, `${c.id}-${ds(o)}`))
8163
8163
  })
8164
8164
  });
8165
- }, by = ({ layer: e, coordSystem: t, readPanelPoint: r, panelRect: n, shouldAnimateTransitions: o, formattingLocale: a }) => {
8165
+ }, b0 = ({ layer: e, coordSystem: t, readPanelPoint: r, panelRect: n, shouldAnimateTransitions: o, formattingLocale: a }) => {
8166
8166
  const i = xh(e.id), s = b(() => ({
8167
8167
  pushHover: i,
8168
8168
  readPanelPoint: r
@@ -8176,16 +8176,16 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8176
8176
  live: s,
8177
8177
  shouldDimOnHover: !d
8178
8178
  });
8179
- }, Sy = (e, t) => {
8179
+ }, S0 = (e, t) => {
8180
8180
  const r = de();
8181
8181
  return Qe() ? [] : e.filter((n) => di(r(n.geom, t.type)));
8182
- }, wy = "_17uhij30", ky = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: s, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
8182
+ }, w0 = "_17uhij30", k0 = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: a, axisLabelRects: i, shouldAnimateTransitions: s, formattingLocale: d, plotBottomY: c, isFooterChromeReserved: u, isEditable: h, showAnnotations: g }) => {
8183
8183
  const f = F(null);
8184
8184
  Mp(f);
8185
8185
  const v = xe("Grid", Jm), m = xe("AxisTicks", Xm), p = xe("AxisLabel", qm), A = b(() => Wr(n, t), [n, t]), x = b(() => Wr(o, t), [o, t]), w = b(() => Wo(a, t), [a, t]), k = b(() => Wo(i, t), [i, t]), E = Qe(), R = g && !E;
8186
8186
  return /* @__PURE__ */ S("svg", {
8187
8187
  ref: f,
8188
- className: wy,
8188
+ className: w0,
8189
8189
  width: t.width,
8190
8190
  height: t.height,
8191
8191
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
@@ -8205,7 +8205,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8205
8205
  formattedAxes: e,
8206
8206
  labelRects: k
8207
8207
  }),
8208
- /* @__PURE__ */ l(oy, {
8208
+ /* @__PURE__ */ l(o0, {
8209
8209
  formattedAxes: e,
8210
8210
  panelRect: x
8211
8211
  }),
@@ -8221,12 +8221,12 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8221
8221
  sizes: r,
8222
8222
  panelFrameRect: A
8223
8223
  }),
8224
- /* @__PURE__ */ l(my, {
8224
+ /* @__PURE__ */ l(m0, {
8225
8225
  shouldAnimateTransitions: s,
8226
8226
  panelRect: x,
8227
8227
  formattingLocale: d
8228
8228
  }),
8229
- /* @__PURE__ */ l(ty, {
8229
+ /* @__PURE__ */ l(t0, {
8230
8230
  formattedAxes: e,
8231
8231
  panelRect: x
8232
8232
  }),
@@ -8258,7 +8258,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8258
8258
  /* @__PURE__ */ l(vm, { panelRect: x })
8259
8259
  ] }),
8260
8260
  /* @__PURE__ */ l(Tp, { panelRect: x }),
8261
- /* @__PURE__ */ l(Ay, {
8261
+ /* @__PURE__ */ l(A0, {
8262
8262
  shouldAnimateTransitions: s,
8263
8263
  panelRect: x,
8264
8264
  formattingLocale: d
@@ -8274,7 +8274,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8274
8274
  const r = {};
8275
8275
  for (const [n, o] of Object.entries(e)) r[n] = Wr(o, t);
8276
8276
  return r;
8277
- }, Ey = (e) => {
8277
+ }, E0 = (e) => {
8278
8278
  let t, r;
8279
8279
  return "aspectRatio" in e ? "intrinsicWidth" in e ? (t = e.intrinsicWidth, r = t / e.aspectRatio) : (r = e.intrinsicHeight, t = r * e.aspectRatio) : (t = e.intrinsicWidth, r = e.intrinsicHeight), {
8280
8280
  width: Vo(t, "width"),
@@ -8283,7 +8283,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8283
8283
  }, Vo = (e, t) => {
8284
8284
  if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Cs({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
8285
8285
  return e;
8286
- }, Py = ({ sizing: e, onResize: t, children: r }) => {
8286
+ }, P0 = ({ sizing: e, onResize: t, children: r }) => {
8287
8287
  const n = hi({ onResize: t }), o = F(!1);
8288
8288
  if (W(() => {
8289
8289
  e.mode === "responsive" && (n.isDefault || n.width > 0 && n.height > 0 || o.current || (o.current = !0, console.warn(`[graphy] ZERO_SIZE_CONTAINER: GraphRenderer measured ${n.width}×${n.height}; the chart will not paint until the host has a positive width and height.`)));
@@ -8293,7 +8293,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8293
8293
  n.width,
8294
8294
  n.height
8295
8295
  ]), e.mode === "keepAspectRatio") {
8296
- const { intrinsicSize: i, canRender: s, outerStyles: d, innerStyles: c } = Ry(e, n.width, !n.isDefault);
8296
+ const { intrinsicSize: i, canRender: s, outerStyles: d, innerStyles: c } = R0(e, n.width, !n.isDefault);
8297
8297
  return /* @__PURE__ */ l("div", {
8298
8298
  ref: n.setElement,
8299
8299
  style: d,
@@ -8329,8 +8329,8 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8329
8329
  height: n.height
8330
8330
  })
8331
8331
  });
8332
- }, Ry = (e, t, r) => {
8333
- const n = Ey(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
8332
+ }, R0 = (e, t, r) => {
8333
+ const n = E0(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
8334
8334
  return {
8335
8335
  intrinsicSize: n,
8336
8336
  canRender: r,
@@ -8345,7 +8345,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8345
8345
  height: n.height
8346
8346
  }
8347
8347
  };
8348
- }, Cy = { mode: "responsive" }, Er = {
8348
+ }, C0 = { mode: "responsive" }, Er = {
8349
8349
  headerSize: {
8350
8350
  width: 0,
8351
8351
  height: 0
@@ -8354,7 +8354,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8354
8354
  width: 0,
8355
8355
  height: 0
8356
8356
  }
8357
- }, Ly = () => {
8357
+ }, L0 = () => {
8358
8358
  const [e, t] = U(null), [r, n] = U(null), [o, a] = U(Er);
8359
8359
  return Ul(() => {
8360
8360
  const i = () => {
@@ -8365,7 +8365,7 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8365
8365
  width: r.offsetWidth,
8366
8366
  height: r.offsetHeight
8367
8367
  } : Er.footerSize;
8368
- a((u) => Iy(u, {
8368
+ a((u) => I0(u, {
8369
8369
  headerSize: d,
8370
8370
  footerSize: c
8371
8371
  }) ? {
@@ -8381,9 +8381,9 @@ var ly = 4, dy = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8381
8381
  footerRef: n,
8382
8382
  measurements: o
8383
8383
  };
8384
- }, Iy = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, Ty = () => null, By = "_1vl0pke0", My = "_1vl0pke1";
8385
- var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
8386
- const { themeClass: i, inlineVarsStyle: s } = En(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: g, alpha: f, blendMode: v, fill: m, overpaint: p = Oy } = e, A = st([m, ...p]), x = A(m), w = typeof m != "string", k = b(() => ({
8384
+ }, I0 = (e, t) => e.headerSize.width !== t.headerSize.width || e.headerSize.height !== t.headerSize.height || e.footerSize.width !== t.footerSize.width || e.footerSize.height !== t.footerSize.height, T0 = () => null, B0 = "_1vl0pke0", M0 = "_1vl0pke1";
8385
+ var O0 = [], N0 = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: a }) => {
8386
+ const { themeClass: i, inlineVarsStyle: s } = En(), d = e.strokeWidth, c = d > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + d, { shadow: g, alpha: f, blendMode: v, fill: m, overpaint: p = O0 } = e, A = st([m, ...p]), x = A(m), w = typeof m != "string", k = b(() => ({
8387
8387
  ...n,
8388
8388
  borderRadius: `${h}px`,
8389
8389
  ...s,
@@ -8403,7 +8403,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8403
8403
  ]), E = b(() => ({
8404
8404
  borderRadius: `${u}px`,
8405
8405
  ...v === "normal" ? {} : { mixBlendMode: v },
8406
- ...Hy(w, f)
8406
+ ...H0(w, f)
8407
8407
  }), [
8408
8408
  u,
8409
8409
  v,
@@ -8429,7 +8429,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8429
8429
  className: bt(Uh, {
8430
8430
  [Qh]: t,
8431
8431
  [Xh]: L,
8432
- [My]: w
8432
+ [M0]: w
8433
8433
  }),
8434
8434
  style: E,
8435
8435
  children: [
@@ -8443,27 +8443,27 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8443
8443
  [...p].reverse().map((P, M) => /* @__PURE__ */ l("div", {
8444
8444
  "aria-hidden": !0,
8445
8445
  "data-testid": "graph-overpaint",
8446
- className: By,
8446
+ className: B0,
8447
8447
  style: _e(P, A(P))
8448
8448
  }, M))
8449
8449
  ]
8450
8450
  })
8451
8451
  });
8452
- }, Hy = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, W0 = (e) => /* @__PURE__ */ l(Gh, {
8452
+ }, H0 = (e, t) => e ? { backgroundColor: "transparent" } : t === void 0 || t >= 1 ? {} : { backgroundColor: `color-mix(in srgb, ${y.graphBackground} ${t * 100}%, transparent)` }, Wy = (e) => /* @__PURE__ */ l(Gh, {
8453
8453
  locale: eg(),
8454
- children: /* @__PURE__ */ l(Dy, { ...e })
8455
- }), Dy = ({ slots: e, sizing: t = Cy, onResize: r, ...n }) => /* @__PURE__ */ l(gh, { children: /* @__PURE__ */ l(Qc, { children: /* @__PURE__ */ l(lu, {
8454
+ children: /* @__PURE__ */ l(D0, { ...e })
8455
+ }), D0 = ({ slots: e, sizing: t = C0, onResize: r, ...n }) => /* @__PURE__ */ l(gh, { children: /* @__PURE__ */ l(Qc, { children: /* @__PURE__ */ l(lu, {
8456
8456
  slots: e,
8457
- children: /* @__PURE__ */ l(Py, {
8457
+ children: /* @__PURE__ */ l(P0, {
8458
8458
  sizing: t,
8459
8459
  onResize: r,
8460
- children: ({ width: o, height: a }) => /* @__PURE__ */ l(Fy, {
8460
+ children: ({ width: o, height: a }) => /* @__PURE__ */ l(F0, {
8461
8461
  width: o,
8462
8462
  height: a,
8463
8463
  ...n
8464
8464
  })
8465
8465
  })
8466
- }) }) }), Fy = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
8466
+ }) }) }), F0 = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
8467
8467
  const a = vi(), i = An(o), { axes: s, legends: d, layers: c, numberFormat: u, parsingLocale: h, annotations: g, coordSystem: f, headline: v, headlineConfig: m, content: p, overflowStrategy: A } = B(oe((ue) => ({
8468
8468
  axes: ue.guides.axes,
8469
8469
  legends: ue.guides.legends.drawn,
@@ -8476,7 +8476,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8476
8476
  headlineConfig: ue.config.headline,
8477
8477
  content: ue.config.content,
8478
8478
  overflowStrategy: ue.config.panel.overflow
8479
- }))), { intro: x, transitions: w } = Ph(r, c), { headerRef: k, footerRef: E, measurements: R } = Ly(), { formattingLocale: L, colorScheme: P } = ee(), M = Ne[i], H = M.editorSurface, [X, ce] = U(null), j = xe("Header", Zg), Ce = xe("Footer", jg), us = xe("Legend", vp), hs = xe("Headline", xf), vs = xe("EditorSurface", Ty), Hn = b(() => sl({
8479
+ }))), { intro: x, transitions: w } = Ph(r, c), { headerRef: k, footerRef: E, measurements: R } = L0(), { formattingLocale: L, colorScheme: P } = ee(), M = Ne[i], H = M.editorSurface, [X, ce] = U(null), j = xe("Header", Zg), Ce = xe("Footer", jg), us = xe("Legend", vp), hs = xe("Headline", xf), vs = xe("EditorSurface", T0), Hn = b(() => sl({
8480
8480
  legends: d,
8481
8481
  numberFormat: u,
8482
8482
  parsingLocale: h,
@@ -8500,7 +8500,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8500
8500
  h,
8501
8501
  L,
8502
8502
  a
8503
- ]), gs = Oe(), ke = O(), Dn = I(Gy, ke), Fn = I(oa, ke), Gn = I(Cn, ke), Wn = I(Wy, ke), fs = I(Vy, ke), ps = I(zy, ke), ms = I(Yy, ke), { fontFamily: yr, textScale: ys, strokeWidth: xr, fill: xs } = Dn, Vn = b(() => ja(P, {}, yr), [P, yr]), ct = b(() => ({
8503
+ ]), gs = Oe(), ke = O(), Dn = I(G0, ke), Fn = I(oa, ke), Gn = I(Cn, ke), Wn = I(W0, ke), fs = I(V0, ke), ps = I(z0, ke), ms = I(Y0, ke), { fontFamily: yr, textScale: ys, strokeWidth: xr, fill: xs } = Dn, Vn = b(() => ja(P, {}, yr), [P, yr]), ct = b(() => ({
8504
8504
  width: Math.max(0, e - 2 * xr),
8505
8505
  height: Math.max(0, t - 2 * xr)
8506
8506
  }), [
@@ -8569,7 +8569,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8569
8569
  metrics: Vn,
8570
8570
  children: /* @__PURE__ */ l(tg, { children: /* @__PURE__ */ l(xg, {
8571
8571
  panelRect: ae.panel,
8572
- children: /* @__PURE__ */ l(Ny, {
8572
+ children: /* @__PURE__ */ l(N0, {
8573
8573
  graphChrome: Dn,
8574
8574
  isEditable: H,
8575
8575
  mode: i,
@@ -8594,7 +8594,7 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8594
8594
  subtitleStyle: fs,
8595
8595
  brandMark: bs
8596
8596
  }),
8597
- /* @__PURE__ */ l(ky, {
8597
+ /* @__PURE__ */ l(k0, {
8598
8598
  formattedAxes: jn,
8599
8599
  plotRect: ae.plot,
8600
8600
  panelBorder: Yn,
@@ -8646,10 +8646,10 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8646
8646
  })
8647
8647
  })
8648
8648
  });
8649
- }, Gy = (e) => e.graph().resolve(), Wy = (e) => e.heading.h1().resolve(), Vy = (e) => e.heading.h2().resolve(), zy = (e) => e.caption().resolve(), Yy = (e) => ({
8649
+ }, G0 = (e) => e.graph().resolve(), W0 = (e) => e.heading.h1().resolve(), V0 = (e) => e.heading.h2().resolve(), z0 = (e) => e.caption().resolve(), Y0 = (e) => ({
8650
8650
  label: e.source().resolve(),
8651
8651
  link: e.source.link().resolve()
8652
- }), V0 = (e) => {
8652
+ }), Vy = (e) => {
8653
8653
  const t = N(ua), r = nn();
8654
8654
  return b(() => e || (t ? {
8655
8655
  commands: t.commands,
@@ -8667,28 +8667,28 @@ var Oy = [], Ny = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRe
8667
8667
  t,
8668
8668
  r
8669
8669
  ]);
8670
- }, z0 = (e) => Ql(e.subscribe, e.getScene, e.getScene), Y0 = () => {
8670
+ }, zy = (e) => Ql(e.subscribe, e.getScene, e.getScene), Yy = () => {
8671
8671
  const { commands: e } = ee();
8672
8672
  return e;
8673
- }, j0 = (e) => {
8673
+ }, jy = (e) => {
8674
8674
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
8675
8675
  const t = e.key.toLowerCase();
8676
8676
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
8677
8677
  };
8678
8678
  export {
8679
- P0 as $,
8679
+ Py as $,
8680
8680
  Dt as $t,
8681
- N0 as A,
8681
+ Ny as A,
8682
8682
  ee as An,
8683
8683
  xh as At,
8684
- M0 as B,
8685
- p0 as Bt,
8684
+ My as B,
8685
+ py as Bt,
8686
8686
  gp as C,
8687
8687
  Ve as Cn,
8688
- A0 as Ct,
8688
+ Ay as Ct,
8689
8689
  Xe as D,
8690
8690
  ha as Dn,
8691
- x0 as Dt,
8691
+ xy as Dt,
8692
8692
  Jt as E,
8693
8693
  O as En,
8694
8694
  Ne as Et,
@@ -8700,9 +8700,9 @@ export {
8700
8700
  sh as Ht,
8701
8701
  lf as I,
8702
8702
  dh as It,
8703
- I0 as J,
8703
+ Iy as J,
8704
8704
  de as Jt,
8705
- B0 as K,
8705
+ By as K,
8706
8706
  xu as Kt,
8707
8707
  Fi as L,
8708
8708
  Nr as Lt,
@@ -8712,16 +8712,16 @@ export {
8712
8712
  Bn as N,
8713
8713
  td as Nn,
8714
8714
  gh as Nt,
8715
- O0 as O,
8715
+ Oy as O,
8716
8716
  B as On,
8717
8717
  hi as Ot,
8718
8718
  Af as P,
8719
8719
  Ue as Pt,
8720
- R0 as Q,
8720
+ Ry as Q,
8721
8721
  I as Qt,
8722
8722
  Zg as R,
8723
- m0 as Rt,
8724
- D0 as S,
8723
+ my as Rt,
8724
+ Dy as S,
8725
8725
  jt as Sn,
8726
8726
  vi as St,
8727
8727
  Bt as T,
@@ -8731,32 +8731,32 @@ export {
8731
8731
  Mu as Ut,
8732
8732
  Ni as V,
8733
8733
  di as Vt,
8734
- T0 as W,
8735
- f0 as Wt,
8736
- C0 as X,
8734
+ Ty as W,
8735
+ fy as Wt,
8736
+ Cy as X,
8737
8737
  Oe as Xt,
8738
- L0 as Y,
8738
+ Ly as Y,
8739
8739
  Qc as Yt,
8740
8740
  xt as Z,
8741
8741
  Yc as Zt,
8742
8742
  Mt as _,
8743
8743
  be as _n,
8744
8744
  qh as _t,
8745
- W0 as a,
8745
+ Wy as a,
8746
8746
  y as an,
8747
8747
  eg as at,
8748
8748
  Sp as b,
8749
- i0 as bn,
8749
+ iy as bn,
8750
8750
  Gh as bt,
8751
8751
  Zt as c,
8752
8752
  le as cn,
8753
8753
  $e as ct,
8754
- G0 as d,
8754
+ Gy as d,
8755
8755
  Ld as dn,
8756
8756
  bo as dt,
8757
- h0 as en,
8758
- E0 as et,
8759
- F0 as f,
8757
+ hy as en,
8758
+ Ey as et,
8759
+ Fy as f,
8760
8760
  Cd as fn,
8761
8761
  ev as ft,
8762
8762
  Fp as g,
@@ -8764,44 +8764,44 @@ export {
8764
8764
  En as gt,
8765
8765
  Yp as h,
8766
8766
  Sa as hn,
8767
- S0 as ht,
8768
- V0 as i,
8769
- c0 as in,
8767
+ Sy as ht,
8768
+ Vy as i,
8769
+ cy as in,
8770
8770
  rg as it,
8771
8771
  Tn as j,
8772
- a0 as jn,
8773
- y0 as jt,
8774
- H0 as k,
8772
+ ay as jn,
8773
+ yy as jt,
8774
+ Hy as k,
8775
8775
  ua as kn,
8776
8776
  Ah as kt,
8777
8777
  xm as l,
8778
8778
  sn as ln,
8779
8779
  tv as lt,
8780
8780
  Zp as m,
8781
- l0 as mn,
8781
+ ly as mn,
8782
8782
  Zh as mt,
8783
- Y0 as n,
8784
- u0 as nn,
8785
- w0 as nt,
8786
- Dy as o,
8783
+ Yy as n,
8784
+ uy as nn,
8785
+ wy as nt,
8786
+ D0 as o,
8787
8787
  Le as on,
8788
8788
  Cv as ot,
8789
8789
  $p as p,
8790
- d0 as pn,
8790
+ dy as pn,
8791
8791
  $h as pt,
8792
8792
  Bi as q,
8793
- g0 as qt,
8794
- z0 as r,
8793
+ gy as qt,
8794
+ zy as r,
8795
8795
  lr as rn,
8796
8796
  og as rt,
8797
8797
  Jm as s,
8798
8798
  no as sn,
8799
8799
  Qe as st,
8800
- j0 as t,
8801
- v0 as tn,
8802
- k0 as tt,
8800
+ jy as t,
8801
+ vy as tn,
8802
+ ky as tt,
8803
8803
  am as u,
8804
- s0 as un,
8804
+ sy as un,
8805
8805
  rv as ut,
8806
8806
  Ep as v,
8807
8807
  $ as vn,
@@ -8811,7 +8811,7 @@ export {
8811
8811
  bn as wt,
8812
8812
  kp as x,
8813
8813
  pd as xn,
8814
- b0 as xt,
8814
+ by as xt,
8815
8815
  wp as y,
8816
8816
  Me as yn,
8817
8817
  It as yt,