@graphysdk/react-renderer 1.9.0-beta.1790339973640 → 1.9.0-beta.1790343746744

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.
@@ -23,11 +23,11 @@ import './use-target-boundary.css';var Pn = Object.defineProperty, ll = (e, t) =
23
23
  });
24
24
  return t || Pn(r, Symbol.toStringTag, { value: "Module" }), r;
25
25
  };
26
- typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1790339973640");
26
+ typeof window < "u" && (window.__GRAPHY_SDK__ ??= {}, window.__GRAPHY_SDK__.reactRenderer = "1.9.0-beta.1790343746744");
27
27
  function cl(e) {
28
28
  for (const t of e) (t.severity === "error" ? console.error : console.warn)(`[graphy] ${t.code}: ${t.message}`, t);
29
29
  }
30
- var Oo = Y(null), Gm = Oo.Provider, dl = null, Wr = () => U(Oo) ?? (dl ??= us());
30
+ var Oo = Y(null), Fm = Oo.Provider, dl = null, Wr = () => U(Oo) ?? (dl ??= us());
31
31
  var Ho = Y(null), te = () => {
32
32
  const e = U(Ho);
33
33
  if (!e) throw new Error("useGraph* hooks must be used inside a <GraphProvider>");
@@ -196,7 +196,7 @@ var Ho = Y(null), te = () => {
196
196
  "data-testid": "companion-point"
197
197
  });
198
198
  };
199
- var Cn = 10 ** 2, z = (e) => Math.round(e * Cn) / Cn, Wm = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), pl = (e, t, r) => {
199
+ var Cn = 10 ** 2, z = (e) => Math.round(e * Cn) / Cn, Gm = (e) => e.map(({ x: t, y: r }) => `M${z(t)},${z(r)}h0`).join(""), pl = (e, t, r) => {
200
200
  const n = r.axis === "x", o = n ? e.y : e.x, i = n ? e.x : e.y, a = n ? e.height : e.width, l = n ? e.width : e.height, c = Math.max(Math.min(r.from, r.to), i), d = Math.min(Math.max(r.from, r.to), i + l);
201
201
  if (d - c <= 0 || a <= 0) return "";
202
202
  const u = Math.max(0, Math.min(t, a / 2)), h = Math.max(0, Math.min(t, l / 2)), v = i + h, f = i + l - h, g = o + a, m = n ? 0 : 1, p = (R, O) => {
@@ -1795,7 +1795,7 @@ var nr = 3, cc = ({ layer: e, coordSystem: t, primary: r, panelRect: n }) => {
1795
1795
  fontEditorControlValue: N(A.fontWeightMedium, A.fontSizeSm, A.fontLineHeightSm),
1796
1796
  fontEditorSectionTitle: N(A.fontWeightSemibold, A.fontSizeSm, A.fontLineHeightSm),
1797
1797
  fontEditorCaption: N(A.fontWeightMedium, A.fontSizeXxs, A.fontLineHeightXxs)
1798
- }, wc = le.sm, Sc = (e, t) => ({ familyDefault: or(t) ?? or(e.fontFamily) ?? or(Qt) ?? "" }), or = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, kc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Um = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Vm = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), zm = (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), ir = (e) => `${e}px`, ii = {
1798
+ }, wc = le.sm, Sc = (e, t) => ({ familyDefault: or(t) ?? or(e.fontFamily) ?? or(Qt) ?? "" }), or = (e) => e === void 0 || e.includes("var(") ? null : e.replace(/\s+/g, " ").trim(), re = (e, t) => `color-mix(in srgb, transparent, ${e} ${t * 100}%)`, kc = (e, t) => `hsl(from ${e} h s calc(l * ${1 - t}))`, Wm = (e, t) => `hsl(from ${e} h s calc(l * ${1 + t}))`, Um = (e) => /^#([0-9a-fA-F]{3}|[0-9a-fA-F]{6})$/.test(e), Vm = (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), ir = (e) => `${e}px`, ii = {
1799
1799
  tooltipRowGap: "4px",
1800
1800
  editorControlHeight: ir(32),
1801
1801
  legendSwatchGap: ir(8),
@@ -2121,7 +2121,7 @@ var ui = Y(Hc), Dc = ({ metrics: e, children: t }) => /* @__PURE__ */ s(ui.Provi
2121
2121
  } catch {
2122
2122
  return new wn(new Ga());
2123
2123
  }
2124
- }, fi = Y(null), jm = fi.Provider, Yc = null, Pe = () => U(fi) ?? (Yc ??= $d()), Qc = 11.7, Kc = 0.5, Fn = 21.6, Xc = "0 0 10 18", qc = "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", Jc = "_16vokpr0", Zc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), $c = (e, t) => {
2124
+ }, fi = Y(null), zm = fi.Provider, Yc = null, Pe = () => U(fi) ?? (Yc ??= $d()), Qc = 11.7, Kc = 0.5, Fn = 21.6, Xc = "0 0 10 18", qc = "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", Jc = "_16vokpr0", Zc = (e, t) => e.mapping.y !== void 0 != (t.mainAxis === "y"), $c = (e, t) => {
2125
2125
  const r = P(e ? 1 - t : t);
2126
2126
  return e ? {
2127
2127
  x1: "0%",
@@ -2302,7 +2302,7 @@ var sd = "_2qyyu60", ld = 2, cd = 12, dd = 12, Gn = 1, Wn = 2, ud = 4, yt = (e)
2302
2302
  color: e.textColor,
2303
2303
  ...e.textTransform === void 0 ? {} : { textTransform: e.textTransform },
2304
2304
  ...mi(e)
2305
- }), Ym = (e, t) => Fr({
2305
+ }), jm = (e, t) => Fr({
2306
2306
  [e.fontFamily]: t.fontFamily ?? A.fontFamily,
2307
2307
  [e.fontSize]: `${t.fontSize}px`,
2308
2308
  [e.fontWeight]: String(t.fontWeight),
@@ -3465,7 +3465,7 @@ function qt(e) {
3465
3465
  function Zd(e) {
3466
3466
  return e ? qt(e.render).overlay : !1;
3467
3467
  }
3468
- function Qm(e, t) {
3468
+ function Ym(e, t) {
3469
3469
  return typeof e == "string" ? {
3470
3470
  ...t,
3471
3471
  geom: e
@@ -3486,7 +3486,7 @@ var _d = [
3486
3486
  "right",
3487
3487
  "bottom",
3488
3488
  "left"
3489
- ], Km = () => Gr((e) => ({
3489
+ ], Qm = () => Gr((e) => ({
3490
3490
  boundary: null,
3491
3491
  setBoundary: (t) => e((r) => eu(r.boundary, t) ? r : { boundary: t })
3492
3492
  })), Ar = (e, t) => e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height, yr = (e, t) => _d.every((r) => e[r].from === t[r].from && e[r].to === t[r].to), eu = (e, t) => e === t ? !0 : e === null || t === null ? !1 : Ar(e.frame, t.frame) && Ar(e.client, t.client) && yr(e.frameSpans, t.frameSpans) && yr(e.clientSpans, t.clientSpans), xr = (e) => {
@@ -4547,7 +4547,7 @@ var oh = "_19519k82", ih = "_19519k83", ah = "_19519k85", sh = "_19519k86", lh =
4547
4547
  }, ji = (e, t, r, n, o) => {
4548
4548
  const i = (a) => Lh(a, t, r, n);
4549
4549
  return e.items.map((a) => {
4550
- const l = po(a, t.swatch.size).map(i), c = Math.max(0, l.length - 1) * o;
4550
+ const l = po(a, t).map(i), c = Math.max(0, l.length - 1) * o;
4551
4551
  return {
4552
4552
  width: Math.max(0, ...l.map((d) => d.width)),
4553
4553
  height: Yi(l.map((d) => d.height)) + c
@@ -4768,7 +4768,7 @@ var oh = "_19519k82", ih = "_19519k83", ah = "_19519k85", sh = "_19519k86", lh =
4768
4768
  if (!e.has(t)) return e;
4769
4769
  const r = new Map(e);
4770
4770
  return r.delete(t), r;
4771
- }, Xm = (e, t) => e !== null && e.annotationId === t ? e : null, $h = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, qm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, _h = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, Jm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, eg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Ya(e.point.anchor, t.point.anchor), Zm = (e, t) => e !== null && e.annotationId === t ? e : null, tg = (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, $m = (e, t) => e !== null && e.annotationId === t ? e : null, rg = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, dt = ({ standingInteraction: e }, t) => e !== null && Oe(e, t) ? e : null, ng = (e, t) => {
4771
+ }, Km = (e, t) => e !== null && e.annotationId === t ? e : null, $h = (e, t) => e.annotationId === t.annotationId && e.translation.x === t.translation.x && e.translation.y === t.translation.y, Xm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, _h = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && e.anchor.x === t.anchor.x && e.anchor.y === t.anchor.y, qm = (e, t, r) => e !== null && e.annotationId === t && e.endpoint === r ? e : null, eg = (e, t) => e.annotationId === t.annotationId && e.endpoint === t.endpoint && Ya(e.point.anchor, t.point.anchor), Jm = (e, t) => e !== null && e.annotationId === t ? e : null, tg = (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, Zm = (e, t) => e !== null && e.annotationId === t ? e : null, rg = (e, t) => e.annotationId === t.annotationId && e.at.x === t.at.x && e.width === t.width && e.shift === t.shift, dt = ({ standingInteraction: e }, t) => e !== null && Oe(e, t) ? e : null, ng = (e, t) => {
4772
4772
  if (e === null) return !1;
4773
4773
  switch (t.kind) {
4774
4774
  case "difference-arrow-endpoint-drag":
@@ -4786,7 +4786,7 @@ var oh = "_19519k82", ih = "_19519k83", ah = "_19519k85", sh = "_19519k86", lh =
4786
4786
  case "menu":
4787
4787
  return !1;
4788
4788
  }
4789
- }, Oe = (e, t) => e.kind === t, _m = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4789
+ }, Oe = (e, t) => e.kind === t, $m = ({ isMenuTrigger: e, stamped: t, observations: r }) => e ? { kind: "menu-trigger" } : t !== null && t.kind !== "grid" ? t : r !== null ? {
4790
4790
  kind: "observations",
4791
4791
  observations: r
4792
4792
  } : t, og = (e, t) => {
@@ -4826,13 +4826,13 @@ var oh = "_19519k82", ih = "_19519k83", ah = "_19519k85", sh = "_19519k86", lh =
4826
4826
  ...r.caret,
4827
4827
  editor: t
4828
4828
  } })
4829
- })), ag = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.target.key === t.target.key && e.frameScale === t.frameScale && Ar(e.frame, t.frame) && yr(e.frameSpans, t.frameSpans), sn = Y(null), sg = Ji(), eA = ({ children: e }) => {
4829
+ })), ag = (e, t) => e === t ? !0 : e === null || t === null ? !1 : e.target.key === t.target.key && e.frameScale === t.frameScale && Ar(e.frame, t.frame) && yr(e.frameSpans, t.frameSpans), sn = Y(null), sg = Ji(), _m = ({ children: e }) => {
4830
4830
  const [t] = j(() => Ji());
4831
4831
  return /* @__PURE__ */ s(sn.Provider, {
4832
4832
  value: t,
4833
4833
  children: e
4834
4834
  });
4835
- }, tA = () => {
4835
+ }, eA = () => {
4836
4836
  const e = U(sn);
4837
4837
  if (e === null) throw new Error("useEditorStore must be used inside an <EditorProvider>.");
4838
4838
  return e;
@@ -5003,7 +5003,7 @@ var Ag = "vultop2", yg = "vultop3", xg = "vultop4", bg = "vultop5", wg = "vultop
5003
5003
  Title: null,
5004
5004
  Caption: null,
5005
5005
  TextAnnotation: null
5006
- }), rA = ({ editors: e, children: t }) => /* @__PURE__ */ s(_i.Provider, {
5006
+ }), tA = ({ editors: e, children: t }) => /* @__PURE__ */ s(_i.Provider, {
5007
5007
  value: e,
5008
5008
  children: t
5009
5009
  }), ln = () => U(_i), to = "_4dlrid0", Cg = "xfz7dq0";
@@ -5167,16 +5167,16 @@ var Gg = 22, Wg = ({ ref: e, headerRect: t, mode: r = Re.readonly, title: n, isT
5167
5167
  strokeLinejoin: "round",
5168
5168
  children: /* @__PURE__ */ s("path", { d: "M5 12h14" })
5169
5169
  })
5170
- }), $g = "n7clvo0", _g = "n7clvo1", ev = "n7clvo2", tv = "n7clvo3";
5171
- var rv = ({ segment: e, itemStyle: t }) => {
5172
- if (e.kind === "swatch") return /* @__PURE__ */ s(nv, {
5170
+ }), $g = "n7clvo0", _g = "n7clvo1", ev = "n7clvo2";
5171
+ var tv = ({ segment: e, itemStyle: t }) => {
5172
+ if (e.kind === "swatch") return /* @__PURE__ */ s(rv, {
5173
5173
  swatch: e.swatch,
5174
5174
  size: e.size
5175
5175
  });
5176
5176
  if (e.kind === "trendArrow") {
5177
5177
  const o = ra(t, e.direction);
5178
5178
  return /* @__PURE__ */ s("div", {
5179
- className: He(tv, e.direction === "down" && "n7clvo4"),
5179
+ className: He(ev, e.direction === "down" && "n7clvo3"),
5180
5180
  style: {
5181
5181
  color: o,
5182
5182
  backgroundColor: e.direction === "flat" ? re(A.textPrimary, 0.1) : re(o, 0.2)
@@ -5190,13 +5190,13 @@ var rv = ({ segment: e, itemStyle: t }) => {
5190
5190
  })
5191
5191
  });
5192
5192
  }
5193
- const { className: r, style: n } = ov(e, t);
5193
+ const { className: r, style: n } = nv(e, t);
5194
5194
  return /* @__PURE__ */ s("span", {
5195
5195
  className: r,
5196
5196
  style: n,
5197
5197
  children: e.text
5198
5198
  });
5199
- }, nv = ({ swatch: e, size: t }) => {
5199
+ }, rv = ({ swatch: e, size: t }) => {
5200
5200
  const r = Pe(), n = Kt(e.layerId, e.value, t);
5201
5201
  return /* @__PURE__ */ s(yt, {
5202
5202
  shape: r(e.geom, "cartesian")?.swatchShape ?? "square",
@@ -5208,7 +5208,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5208
5208
  cornerRadius: n.cornerRadius,
5209
5209
  symbol: n.symbol
5210
5210
  });
5211
- }, ov = (e, t) => {
5211
+ }, nv = (e, t) => {
5212
5212
  switch (e.textRole) {
5213
5213
  case "value":
5214
5214
  return { style: Xe(t.number) };
@@ -5219,7 +5219,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5219
5219
  };
5220
5220
  case "label":
5221
5221
  return {
5222
- className: ev,
5222
+ className: _g,
5223
5223
  style: Xe(t.label)
5224
5224
  };
5225
5225
  case "trendPercentage":
@@ -5228,13 +5228,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5228
5228
  textColor: ra(t, e.trendDirection ?? "up")
5229
5229
  }) };
5230
5230
  case "trendReference":
5231
- return {
5232
- className: _g,
5233
- style: Xe({
5234
- ...t.trend,
5235
- textColor: void 0
5236
- })
5237
- };
5231
+ return { style: Xe(t.trend) };
5238
5232
  default:
5239
5233
  return e.textRole;
5240
5234
  }
@@ -5249,29 +5243,30 @@ var rv = ({ segment: e, itemStyle: t }) => {
5249
5243
  default:
5250
5244
  return t;
5251
5245
  }
5252
- }, iv = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
5246
+ }, ov = ({ item: e, itemStyle: t }) => /* @__PURE__ */ s("div", {
5253
5247
  className: ea,
5254
- children: po(e, t.swatch.size).map((r) => /* @__PURE__ */ s(av, {
5248
+ children: po(e, t).map((r) => /* @__PURE__ */ s(iv, {
5255
5249
  row: r,
5256
5250
  itemStyle: t
5257
5251
  }, r.role))
5258
- }), av = ({ row: e, itemStyle: t }) => {
5252
+ }), iv = ({ row: e, itemStyle: t }) => {
5259
5253
  const r = e.role === "trend";
5260
5254
  return /* @__PURE__ */ s("div", {
5261
5255
  className: jg[e.role],
5256
+ style: { gap: e.gap },
5262
5257
  "data-testid": r ? "headline-trend" : void 0,
5263
- "data-direction": r ? sv(e) : void 0,
5258
+ "data-direction": r ? av(e) : void 0,
5264
5259
  role: r ? "img" : void 0,
5265
5260
  "aria-label": r ? e.ariaLabel : void 0,
5266
- children: e.segments.map((n, o) => /* @__PURE__ */ s(rv, {
5261
+ children: e.segments.map((n, o) => /* @__PURE__ */ s(tv, {
5267
5262
  segment: n,
5268
5263
  itemStyle: t
5269
5264
  }, o))
5270
5265
  });
5271
- }, sv = (e) => {
5266
+ }, av = (e) => {
5272
5267
  const t = e.segments.find((r) => r.kind === "trendArrow");
5273
5268
  return t?.kind === "trendArrow" ? t.direction : void 0;
5274
- }, lv = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
5269
+ }, sv = ({ headline: e, rect: t, resolvedSize: r, visibleItemCount: n, isInDonutHole: o = !1 }) => {
5275
5270
  const i = L(), a = I(an, i), l = I(It, i, r), c = {
5276
5271
  left: t.x,
5277
5272
  top: t.y,
@@ -5295,7 +5290,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5295
5290
  ...c,
5296
5291
  gap: a.gap
5297
5292
  },
5298
- children: e.items.slice(0, n).map((d, u) => /* @__PURE__ */ s(iv, {
5293
+ children: e.items.slice(0, n).map((d, u) => /* @__PURE__ */ s(ov, {
5299
5294
  item: d,
5300
5295
  itemStyle: l
5301
5296
  }, `${d.label}-${u}`))
@@ -5303,7 +5298,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5303
5298
  }, na = "data-legend-index", oa = "data-legend-item-index", ia = ({ legendIndex: e, itemIndex: t }) => ({
5304
5299
  [na]: String(e),
5305
5300
  [oa]: String(t)
5306
- }), cv = (e) => {
5301
+ }), lv = (e) => {
5307
5302
  const t = wr(e, na), r = wr(e, oa);
5308
5303
  return t === null || r === null ? null : {
5309
5304
  legendIndex: t,
@@ -5314,7 +5309,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5314
5309
  if (r === null || !/^(0|[1-9]\d*)$/.test(r)) return null;
5315
5310
  const n = Number(r);
5316
5311
  return Number.isSafeInteger(n) ? n : null;
5317
- }, Ye = "data-edit-kind", aa = "data-edit-id", Dt = "data-edit-axis", sa = "data-edit-tick-index", la = "data-legend-overflow-control", nA = `[${la}]`, dv = "observations", uv = `[${Ye}]`, bt = (e) => ({
5312
+ }, Ye = "data-edit-kind", aa = "data-edit-id", Dt = "data-edit-axis", sa = "data-edit-tick-index", la = "data-legend-overflow-control", rA = `[${la}]`, cv = "observations", dv = `[${Ye}]`, bt = (e) => ({
5318
5313
  [Ye]: e.kind,
5319
5314
  [aa]: e.id
5320
5315
  }), cn = (e, t) => ({
@@ -5327,16 +5322,16 @@ var rv = ({ segment: e, itemStyle: t }) => {
5327
5322
  }), ca = (e) => ({
5328
5323
  [Ye]: "grid",
5329
5324
  [Dt]: e
5330
- }), oA = (e, t) => {
5325
+ }), nA = (e, t) => {
5331
5326
  for (const r of e) {
5332
- const n = r.closest(uv);
5327
+ const n = r.closest(dv);
5333
5328
  if (n === null || !t.contains(n)) continue;
5334
- const o = gv(n);
5329
+ const o = hv(n);
5335
5330
  if (o !== null) return o;
5336
5331
  if (n !== r) return null;
5337
5332
  }
5338
5333
  return null;
5339
- }, hv = () => ({ [Ye]: dv }), gv = (e) => {
5334
+ }, uv = () => ({ [Ye]: cv }), hv = (e) => {
5340
5335
  const t = e.getAttribute(Ye);
5341
5336
  switch (t) {
5342
5337
  case "annotation": {
@@ -5371,7 +5366,7 @@ var rv = ({ segment: e, itemStyle: t }) => {
5371
5366
  };
5372
5367
  }
5373
5368
  case "legend": {
5374
- const r = cv(e);
5369
+ const r = lv(e);
5375
5370
  return r === null ? null : {
5376
5371
  kind: t,
5377
5372
  target: { kind: t },
@@ -5395,19 +5390,19 @@ var rv = ({ segment: e, itemStyle: t }) => {
5395
5390
  function wt() {
5396
5391
  return U(da);
5397
5392
  }
5398
- var Ne = () => Le[wt()].guidePress, vv = (e, t) => e.isTextColorAuthored ? e.textColor : t ?? e.textColor, fv = "_1oj6yix0";
5399
- var pv = "_1oj6yix2";
5400
- var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5401
- const r = I(Ro, L()), n = Fe(r), { placements: o, hasOverlap: i } = bv(e, t, n), a = Ne(), l = Q(r);
5393
+ var Ne = () => Le[wt()].guidePress, gv = (e, t) => e.isTextColorAuthored ? e.textColor : t ?? e.textColor, vv = "_1oj6yix0";
5394
+ var fv = "_1oj6yix2";
5395
+ var pv = 8, mv = 16, Av = 2, yv = ({ indexedLegends: e, containerRect: t }) => {
5396
+ const r = I(Ro, L()), n = Fe(r), { placements: o, hasOverlap: i } = xv(e, t, n), a = Ne(), l = Q(r);
5402
5397
  if (o.length === 0) return null;
5403
- const c = i ? Av : mv, d = c - yv, u = ue(r.dashArray, r.strokeWidth);
5398
+ const c = i ? mv : pv, d = c - Av, u = ue(r.dashArray, r.strokeWidth);
5404
5399
  return /* @__PURE__ */ w("div", {
5405
- className: fv,
5400
+ className: vv,
5406
5401
  children: [i && /* @__PURE__ */ s("svg", {
5407
5402
  className: "_1oj6yix1",
5408
5403
  width: t.width,
5409
5404
  height: t.height,
5410
- children: o.map((h) => /* @__PURE__ */ s(wv, {
5405
+ children: o.map((h) => /* @__PURE__ */ s(bv, {
5411
5406
  anchorY: h.anchorY,
5412
5407
  labelY: h.y,
5413
5408
  endX: d,
@@ -5416,18 +5411,18 @@ var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5416
5411
  dashArray: u
5417
5412
  }, h.payload.key))
5418
5413
  }), o.map((h) => /* @__PURE__ */ s("span", {
5419
- className: He(pv, a && "_1oj6yix3"),
5414
+ className: He(fv, a && "_1oj6yix3"),
5420
5415
  style: {
5421
5416
  ...l,
5422
5417
  left: c,
5423
5418
  top: h.y,
5424
- color: vv(r, h.payload.color)
5419
+ color: gv(r, h.payload.color)
5425
5420
  },
5426
5421
  ...a ? dn(h.payload.address) : ia(h.payload.address),
5427
5422
  children: h.payload.label
5428
5423
  }, h.payload.key))]
5429
5424
  });
5430
- }, bv = (e, t, r) => b(() => {
5425
+ }, xv = (e, t, r) => b(() => {
5431
5426
  const n = [];
5432
5427
  for (const { legend: o, legendIndex: i } of e) o.items.forEach((a, l) => {
5433
5428
  if (a.normalizedY === null) return;
@@ -5457,7 +5452,7 @@ var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5457
5452
  e,
5458
5453
  t.height,
5459
5454
  r
5460
- ]), wv = ({ anchorY: e, labelY: t, endX: r, color: n, strokeWidth: o, dashArray: i }) => {
5455
+ ]), bv = ({ anchorY: e, labelY: t, endX: r, color: n, strokeWidth: o, dashArray: i }) => {
5461
5456
  const a = r / 2;
5462
5457
  return /* @__PURE__ */ s("path", {
5463
5458
  d: `M0,${e} C${a},${e} ${a},${t} ${r},${t}`,
@@ -5466,7 +5461,7 @@ var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5466
5461
  strokeWidth: o,
5467
5462
  strokeDasharray: i
5468
5463
  });
5469
- }, Sv = "_6a636s0", ua = (e, t) => ({
5464
+ }, wv = "_6a636s0", ua = (e, t) => ({
5470
5465
  ...e.fill === void 0 ? {} : Zt(e.fill, t),
5471
5466
  ...e.cornerRadius === void 0 ? {} : { borderRadius: xt(e.cornerRadius) },
5472
5467
  ...va(e.strokeWidth, e.stroke)
@@ -5475,7 +5470,7 @@ var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5475
5470
  ...ua(e, t),
5476
5471
  paddingInline: e.paddingInline,
5477
5472
  paddingBlock: e.paddingBlock
5478
- }), ga = (e) => e.fill !== void 0 || e.strokeWidth > 0, kv = (e, t, r) => ({
5473
+ }), ga = (e) => e.fill !== void 0 || e.strokeWidth > 0, Sv = (e, t, r) => ({
5479
5474
  ...Zt(e.fill, r),
5480
5475
  borderRadius: xt(e.cornerRadius),
5481
5476
  paddingInline: e.paddingInline,
@@ -5483,21 +5478,21 @@ var mv = 8, Av = 16, yv = 2, xv = ({ indexedLegends: e, containerRect: t }) => {
5483
5478
  boxShadow: Ur(e.shadow),
5484
5479
  ...va(e.strokeWidth, e.stroke),
5485
5480
  ...Q(t)
5486
- }), va = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, Ev = "_1kjk02r0", Rv = {
5481
+ }), va = (e, t) => e > 0 && t !== void 0 ? { border: `${e}px solid ${t}` } : {}, kv = "_1kjk02r0", Ev = {
5487
5482
  1: "_1kjk02r1",
5488
5483
  2: "_1kjk02r2"
5489
- }, Pv = {
5484
+ }, Rv = {
5490
5485
  1: "_1kjk02r3",
5491
5486
  2: "_1kjk02r4"
5492
5487
  };
5493
- var Cv = {
5488
+ var Pv = {
5494
5489
  1: "_1kjk02r6",
5495
5490
  2: "_1kjk02r7"
5496
- }, Bv = {
5491
+ }, Cv = {
5497
5492
  1: "_1kjk02r8",
5498
5493
  2: "_1kjk02r9"
5499
- }, Iv = "_1kjk02ra", Mv = "_1kjk02rb";
5500
- var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5494
+ }, Bv = "_1kjk02ra", Iv = "_1kjk02rb";
5495
+ var Mv = "_1dw9dgx0", ar = "\0", Tv = (e, t) => {
5501
5496
  const r = [];
5502
5497
  for (const { legend: n, legendIndex: o } of e) {
5503
5498
  const i = n.aesthetics.includes("size");
@@ -5524,7 +5519,7 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5524
5519
  });
5525
5520
  }
5526
5521
  return r;
5527
- }, fa = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Hv, { pill: e }) : /* @__PURE__ */ s(Ov, { pill: e }), Nv = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: i }) => {
5522
+ }, fa = ({ pill: e }) => e.isBubble ? /* @__PURE__ */ s(Ov, { pill: e }) : /* @__PURE__ */ s(Nv, { pill: e }), Lv = ({ color: e, lineType: t, shape: r, label: n, layerId: o, groupValue: i }) => {
5528
5523
  const { swatch: a } = I(Ut, L()), l = Kt(o, i, a.size);
5529
5524
  return e ? /* @__PURE__ */ s(yt, {
5530
5525
  shape: r,
@@ -5539,17 +5534,17 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5539
5534
  cornerRadius: l.cornerRadius,
5540
5535
  symbol: l.symbol
5541
5536
  }) : null;
5542
- }, Ov = ({ pill: e }) => /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ s(Nv, {
5537
+ }, Nv = ({ pill: e }) => /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ s(Lv, {
5543
5538
  color: e.visual.color,
5544
5539
  lineType: e.primaryLineType,
5545
5540
  shape: e.swatchShape,
5546
5541
  label: e.formattedLabel,
5547
5542
  layerId: e.layerId,
5548
5543
  groupValue: e.groupValue
5549
- }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Hv = ({ pill: e }) => {
5544
+ }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] }), Ov = ({ pill: e }) => {
5550
5545
  const t = Number(e.visual.size), r = Kt(e.layerId, e.groupValue, t);
5551
5546
  return /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ s("span", {
5552
- className: Tv,
5547
+ className: Mv,
5553
5548
  style: {
5554
5549
  width: t,
5555
5550
  height: t,
@@ -5557,8 +5552,8 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5557
5552
  opacity: r.alpha
5558
5553
  }
5559
5554
  }), /* @__PURE__ */ s("span", { children: e.formattedLabel })] });
5560
- }, ro = { [la]: "" }, Dv = ({ hiddenPills: e, placement: t }) => {
5561
- const r = Li(), [n, o] = j(!1), i = L(), a = I(Ut, i), l = I(Vi, i), c = Ne(), d = At([a.item.fill, l.popover.fill]), u = d(a.item.fill), h = ha(a.item, u), v = Fv(e.length, a.item), f = v === null ? void 0 : ua(a.item, u), { refs: g, floatingStyles: m } = No({
5555
+ }, ro = { [la]: "" }, Hv = ({ hiddenPills: e, placement: t }) => {
5556
+ const r = Li(), [n, o] = j(!1), i = L(), a = I(Ut, i), l = I(Vi, i), c = Ne(), d = At([a.item.fill, l.popover.fill]), u = d(a.item.fill), h = ha(a.item, u), v = Dv(e.length, a.item), f = v === null ? void 0 : ua(a.item, u), { refs: g, floatingStyles: m } = No({
5562
5557
  open: n,
5563
5558
  placement: t,
5564
5559
  middleware: [
@@ -5588,25 +5583,25 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5588
5583
  const p = t === "left" || t === "right", x = v === null ? [] : Array.from({ length: v }, (y, S) => v - S);
5589
5584
  return /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ w("div", {
5590
5585
  ref: g.setReference,
5591
- className: He(Ev, v !== null && p && Pv[v], v !== null && !p && Rv[v]),
5586
+ className: He(kv, v !== null && p && Rv[v], v !== null && !p && Ev[v]),
5592
5587
  ...ro,
5593
5588
  children: [v !== null && x.map((y) => /* @__PURE__ */ s("span", {
5594
- className: He("_1kjk02r5", p ? Bv[v] : Cv[v]),
5589
+ className: He("_1kjk02r5", p ? Cv[v] : Pv[v]),
5595
5590
  style: {
5596
5591
  ...f,
5597
- ...Gv(y, p)
5592
+ ...Fv(y, p)
5598
5593
  },
5599
5594
  "aria-hidden": !0
5600
5595
  }, y)), /* @__PURE__ */ s("button", {
5601
5596
  type: "button",
5602
- className: Iv,
5597
+ className: Bv,
5603
5598
  style: h,
5604
5599
  onClick: () => o((y) => !y),
5605
5600
  "aria-haspopup": "dialog",
5606
5601
  "aria-expanded": n,
5607
5602
  "aria-label": `Show ${e.length} hidden legend ${e.length === 1 ? "item" : "items"}`,
5608
5603
  children: /* @__PURE__ */ w("span", {
5609
- className: Mv,
5604
+ className: Iv,
5610
5605
  children: ["+", e.length]
5611
5606
  })
5612
5607
  })]
@@ -5617,7 +5612,7 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5617
5612
  className: "_1kjk02rc",
5618
5613
  style: {
5619
5614
  ...m,
5620
- ...kv(l.popover, a.item, d(l.popover.fill))
5615
+ ...Sv(l.popover, a.item, d(l.popover.fill))
5621
5616
  },
5622
5617
  ...ro,
5623
5618
  children: /* @__PURE__ */ s("ul", {
@@ -5629,23 +5624,23 @@ var Tv = "_1dw9dgx0", ar = "\0", Lv = (e, t) => {
5629
5624
  }, y.key))
5630
5625
  })
5631
5626
  })] });
5632
- }, Fv = (e, t) => {
5627
+ }, Dv = (e, t) => {
5633
5628
  if (!ga(t)) return null;
5634
5629
  const r = Math.min(e - 1, 2);
5635
5630
  return r === 1 ? 1 : r === 2 ? 2 : null;
5636
- }, Gv = (e, t) => {
5631
+ }, Fv = (e, t) => {
5637
5632
  const r = -e * 4;
5638
5633
  return { transform: t ? `translateY(${r}px)` : `translateX(${r}px)` };
5639
- }, Wv = "_1cecisi0", Uv = "_1cecisi1", Vv = "_1cecisi2", zv = {
5634
+ }, Gv = "_1cecisi0", Wv = "_1cecisi1", Uv = "_1cecisi2", Vv = {
5640
5635
  start: "_1cecisi3",
5641
5636
  center: "_1cecisi4",
5642
5637
  end: "_1cecisi5"
5643
- }, jv = {
5638
+ }, zv = {
5644
5639
  right: "_1cecisi6",
5645
5640
  left: "_1cecisi7"
5646
- }, Yv = "_1cecisi8";
5647
- var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
5648
- const o = Te(), i = ze(), a = L(), l = I(Vi, a), c = I(Ut, a), d = Pe(), u = D((E) => E.coordSystem.type), h = Ne(), v = b(() => Lv(t, (E) => d(E, u)?.swatchShape ?? "square"), [
5641
+ }, jv = "_1cecisi8";
5642
+ var Yv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n }) => {
5643
+ const o = Te(), i = ze(), a = L(), l = I(Vi, a), c = I(Ut, a), d = Pe(), u = D((E) => E.coordSystem.type), h = Ne(), v = b(() => Tv(t, (E) => d(E, u)?.swatchShape ?? "square"), [
5649
5644
  t,
5650
5645
  d,
5651
5646
  u
@@ -5658,9 +5653,9 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5658
5653
  visibleCount: v.length,
5659
5654
  hasOverflow: !1
5660
5655
  };
5661
- const E = ee(c.item, i.fonts.familyDefault), B = Fe(c.item), R = 2 * (c.item.paddingInline + c.item.strokeWidth), O = 2 * (c.item.paddingBlock + c.item.strokeWidth), T = (we) => f ? Kv(we, B, c.swatch.size, O) : no({
5656
+ const E = ee(c.item, i.fonts.familyDefault), B = Fe(c.item), R = 2 * (c.item.paddingInline + c.item.strokeWidth), O = 2 * (c.item.paddingBlock + c.item.strokeWidth), T = (we) => f ? Qv(we, B, c.swatch.size, O) : no({
5662
5657
  label: we.formattedLabel,
5663
- swatchInlineSize: Xv(we, c.swatch.size),
5658
+ swatchInlineSize: Kv(we, c.swatch.size),
5664
5659
  textMeasurer: o,
5665
5660
  font: E,
5666
5661
  swatchGap: i.legendSwatchGap,
@@ -5673,7 +5668,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5673
5668
  swatchGap: i.legendSwatchGap,
5674
5669
  horizontalChrome: R
5675
5670
  })) + (ga(c.item) ? 8 : 0);
5676
- return Jv({
5671
+ return qv({
5677
5672
  pillSizes: J,
5678
5673
  overflowPillSize: Z,
5679
5674
  containerSize: g,
@@ -5691,29 +5686,29 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5691
5686
  if (v.length === 0) return null;
5692
5687
  const y = v.slice(0, p.visibleCount), S = v.slice(p.visibleCount), k = p.hasOverflow && S.length > 0, C = ha(c.item, x(c.item.fill));
5693
5688
  return /* @__PURE__ */ w("div", {
5694
- className: He(zv[m], Wv, {
5695
- [Vv]: f,
5696
- [Uv]: !f,
5697
- [jv[e === "left" ? "left" : "right"]]: f
5689
+ className: He(Vv[m], Gv, {
5690
+ [Uv]: f,
5691
+ [Wv]: !f,
5692
+ [zv[e === "left" ? "left" : "right"]]: f
5698
5693
  }),
5699
5694
  style: { gap: l.gap },
5700
5695
  children: [y.map((E) => /* @__PURE__ */ s("div", {
5701
- className: He(Yv, h && "_1cecisi9"),
5696
+ className: He(jv, h && "_1cecisi9"),
5702
5697
  style: C,
5703
5698
  ...h ? dn(E.address) : void 0,
5704
5699
  children: /* @__PURE__ */ s(fa, { pill: E })
5705
- }, E.key)), k && /* @__PURE__ */ s(Dv, {
5700
+ }, E.key)), k && /* @__PURE__ */ s(Hv, {
5706
5701
  hiddenPills: S,
5707
- placement: Zv(e)
5702
+ placement: Jv(e)
5708
5703
  })]
5709
5704
  });
5710
5705
  }, no = ({ label: e, swatchInlineSize: t, textMeasurer: r, font: n, swatchGap: o, horizontalChrome: i }) => {
5711
5706
  const a = r.measureText(e, n).width;
5712
5707
  return t + (t > 0 ? o : 0) + a + i;
5713
- }, Kv = (e, t, r, n) => {
5714
- const o = qv(e, r);
5708
+ }, Qv = (e, t, r, n) => {
5709
+ const o = Xv(e, r);
5715
5710
  return Math.max(t, o) + n;
5716
- }, Xv = (e, t) => Ht(e.visual, t, e.isBubble), qv = (e, t) => e.isBubble ? Ht(e.visual, t, !0) : t, Jv = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
5711
+ }, Kv = (e, t) => Ht(e.visual, t, e.isBubble), Xv = (e, t) => e.isBubble ? Ht(e.visual, t, !0) : t, qv = ({ pillSizes: e, overflowPillSize: t, containerSize: r, gap: n }) => {
5717
5712
  if (e.length === 0) return {
5718
5713
  visibleCount: 0,
5719
5714
  hasOverflow: !1
@@ -5735,7 +5730,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5735
5730
  visibleCount: a,
5736
5731
  hasOverflow: !0
5737
5732
  };
5738
- }, Zv = (e) => {
5733
+ }, Jv = (e) => {
5739
5734
  switch (e) {
5740
5735
  case "top":
5741
5736
  return "bottom";
@@ -5746,7 +5741,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5746
5741
  case "right":
5747
5742
  return "left";
5748
5743
  }
5749
- }, $v = he(function({ formattedLegends: t, rects: r }) {
5744
+ }, Zv = he(function({ formattedLegends: t, rects: r }) {
5750
5745
  const n = b(() => {
5751
5746
  const o = /* @__PURE__ */ new Map();
5752
5747
  return t.forEach((i, a) => {
@@ -5765,25 +5760,25 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5765
5760
  return /* @__PURE__ */ s(M, { children: Array.from(n, ([o, i]) => {
5766
5761
  const a = r[o];
5767
5762
  return a === void 0 ? null : /* @__PURE__ */ w("div", {
5768
- className: Sv,
5763
+ className: wv,
5769
5764
  style: {
5770
5765
  left: a.x,
5771
5766
  top: a.y,
5772
5767
  width: a.width,
5773
5768
  height: a.height
5774
5769
  },
5775
- children: [/* @__PURE__ */ s(Qv, {
5770
+ children: [/* @__PURE__ */ s(Yv, {
5776
5771
  edge: o,
5777
5772
  indexedLegends: i.pill,
5778
5773
  containerWidth: a.width,
5779
5774
  containerHeight: a.height
5780
- }), /* @__PURE__ */ s(xv, {
5775
+ }), /* @__PURE__ */ s(yv, {
5781
5776
  indexedLegends: i.direct,
5782
5777
  containerRect: a
5783
5778
  })]
5784
5779
  }, o);
5785
5780
  }) });
5786
- }), _v = (e, t, r) => {
5781
+ }), $v = (e, t, r) => {
5787
5782
  if (e.type === "cartesian") return Rs(e, t);
5788
5783
  const n = Ze(r), o = oe(t.x, e.innerRadius, n), i = oe(t.x, 1, n);
5789
5784
  return {
@@ -5792,43 +5787,43 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5792
5787
  x2: i.x,
5793
5788
  y2: i.y
5794
5789
  };
5795
- }, ef = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
5790
+ }, _v = ({ layers: e, primaryLayerId: t, coordSystem: r, resolveRenderer: n }) => {
5796
5791
  const o = e.find((a) => a.id === t);
5797
5792
  if (!o) return null;
5798
5793
  const i = n(o.geom, r.type);
5799
5794
  return i ? i.guideMode ?? null : null;
5800
- }, tf = ({ panelRect: e }) => {
5795
+ }, ef = ({ panelRect: e }) => {
5801
5796
  const { coordSystem: t, layers: r, scales: n } = D(ie((c) => ({
5802
5797
  coordSystem: c.coordSystem,
5803
5798
  layers: c.layers,
5804
5799
  scales: c.scales
5805
- }))), o = ct((c) => c.hover.primary), i = Pe(), a = I(af, L());
5800
+ }))), o = ct((c) => c.hover.primary), i = Pe(), a = I(of, L());
5806
5801
  if (!Le[wt()].hoverPaint || r.length === 0 || o === null || !o.anchored) return null;
5807
- const l = ef({
5802
+ const l = _v({
5808
5803
  layers: r,
5809
5804
  primaryLayerId: o.layerId,
5810
5805
  coordSystem: t,
5811
5806
  resolveRenderer: i
5812
5807
  });
5813
- return l === null ? null : l === "crosshair" ? /* @__PURE__ */ s(rf, {
5808
+ return l === null ? null : l === "crosshair" ? /* @__PURE__ */ s(tf, {
5814
5809
  coordSystem: t,
5815
5810
  primary: o,
5816
5811
  panelRect: e,
5817
5812
  guide: a
5818
- }) : t.type === "polar" ? /* @__PURE__ */ s(of, {
5813
+ }) : t.type === "polar" ? /* @__PURE__ */ s(nf, {
5819
5814
  coordSystem: t,
5820
5815
  primary: o,
5821
5816
  panelRect: e,
5822
5817
  guide: a
5823
- }) : /* @__PURE__ */ s(nf, {
5818
+ }) : /* @__PURE__ */ s(rf, {
5824
5819
  coordSystem: t,
5825
5820
  scales: n,
5826
5821
  primary: o,
5827
5822
  panelRect: e,
5828
5823
  guide: a
5829
5824
  });
5830
- }, rf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5831
- const o = _v(e, t, r);
5825
+ }, tf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5826
+ const o = $v(e, t, r);
5832
5827
  return /* @__PURE__ */ s(un, {
5833
5828
  panelRect: r,
5834
5829
  children: /* @__PURE__ */ s("line", {
@@ -5840,7 +5835,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5840
5835
  "data-testid": "hover-guide-line"
5841
5836
  })
5842
5837
  });
5843
- }, nf = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
5838
+ }, rf = ({ coordSystem: e, scales: t, primary: r, panelRect: n, guide: o }) => {
5844
5839
  const i = Ps(e, t, r);
5845
5840
  return i === null ? null : /* @__PURE__ */ s(un, {
5846
5841
  panelRect: n,
@@ -5850,7 +5845,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5850
5845
  "data-testid": "hover-guide-rect"
5851
5846
  })
5852
5847
  });
5853
- }, of = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5848
+ }, nf = ({ coordSystem: e, primary: t, panelRect: r, guide: n }) => {
5854
5849
  const o = Bs(e, t);
5855
5850
  if (o === null) return null;
5856
5851
  const i = De(o);
@@ -5880,20 +5875,20 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5880
5875
  },
5881
5876
  "data-testid": "hover-guide",
5882
5877
  children: t
5883
- }), af = (e) => e.hoverGuide().resolve(), iA = (e, t, r) => {
5878
+ }), of = (e) => e.hoverGuide().resolve(), oA = (e, t, r) => {
5884
5879
  for (const n of Object.values(ma)) {
5885
5880
  const o = n(e, t, r);
5886
5881
  if (o !== null) return o;
5887
5882
  }
5888
5883
  return null;
5889
- }, sf = (e) => ma[e] !== void 0, lf = (e, t, r) => pa(e, r, t / 2), cf = (e, t) => {
5884
+ }, af = (e) => ma[e] !== void 0, sf = (e, t, r) => pa(e, r, t / 2), lf = (e, t) => {
5890
5885
  const r = ut(e.start, t), n = ut(e.end, t);
5891
5886
  return r.x === n.x && r.y === n.y ? null : {
5892
5887
  shape: "segment",
5893
5888
  start: r,
5894
5889
  end: n
5895
5890
  };
5896
- }, df = (e, { panel: t, measuredBoxes: r }) => {
5891
+ }, cf = (e, { panel: t, measuredBoxes: r }) => {
5897
5892
  const n = r.get(e.id);
5898
5893
  if (n === void 0) return null;
5899
5894
  const o = fo(e.align), i = ut(e.at, t);
@@ -5921,19 +5916,19 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5921
5916
  }
5922
5917
  };
5923
5918
  }, ma = {
5924
- text: Bt((e) => e.textAnnotations, df),
5925
- shape: Bt((e) => e.shapes, (e, t) => lf(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
5919
+ text: Bt((e) => e.textAnnotations, cf),
5920
+ shape: Bt((e) => e.shapes, (e, t) => sf(e.region, t.readers.annotation.shape(e.id).get("strokeWidth"), t.panel)),
5926
5921
  image: Bt((e) => e.images, (e, t) => pa(e.region, t.panel)),
5927
- arrow: Bt((e) => e.arrows, (e, t) => cf(e, t.panel))
5928
- }, uf = (e, t) => {
5922
+ arrow: Bt((e) => e.arrows, (e, t) => lf(e, t.panel))
5923
+ }, df = (e, t) => {
5929
5924
  const r = As(e, t);
5930
- return r !== null && sf(r.kind) && Ls(r);
5931
- }, hf = 200, gf = ({ engine: e, store: t, overlayRef: r }) => {
5925
+ return r !== null && af(r.kind) && Ls(r);
5926
+ }, uf = 200, hf = ({ engine: e, store: t, overlayRef: r }) => {
5932
5927
  const { tolerance: n } = Le[wt()], o = Ve(t, (i) => i.isQueryOwnedByEditor);
5933
5928
  F(() => {
5934
5929
  const i = r.current;
5935
5930
  if (!i) return;
5936
- const a = vf(i, e), l = o ? void 0 : pf(i, e, t, n ?? void 0);
5931
+ const a = gf(i, e), l = o ? void 0 : ff(i, e, t, n ?? void 0);
5937
5932
  return () => {
5938
5933
  l?.(), a();
5939
5934
  };
@@ -5944,7 +5939,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5944
5939
  n,
5945
5940
  o
5946
5941
  ]);
5947
- }, vf = (e, t) => {
5942
+ }, gf = (e, t) => {
5948
5943
  const r = () => {
5949
5944
  const a = e.getBoundingClientRect();
5950
5945
  a.width === 0 || a.height === 0 || t.setViewport({
@@ -5956,17 +5951,17 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5956
5951
  const o = () => {
5957
5952
  n !== null && clearTimeout(n), n = setTimeout(() => {
5958
5953
  n = null, r();
5959
- }, hf);
5954
+ }, uf);
5960
5955
  }, i = new ResizeObserver(o);
5961
5956
  return i.observe(e), r(), () => {
5962
5957
  i.disconnect(), n !== null && clearTimeout(n);
5963
5958
  };
5964
- }, ff = (e, t) => e.kind === "cursor" ? null : {
5959
+ }, vf = (e, t) => e.kind === "cursor" ? null : {
5965
5960
  x: t.left + e.point.x,
5966
5961
  y: t.top + e.point.y,
5967
5962
  placement: e.placement,
5968
5963
  annotationId: e.annotationId
5969
- }, pf = (e, t, r, n) => {
5964
+ }, ff = (e, t, r, n) => {
5970
5965
  let o = null, i = null;
5971
5966
  const a = () => {
5972
5967
  const g = e.getBoundingClientRect();
@@ -5984,7 +5979,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
5984
5979
  if (x.isPointerSuspended) return;
5985
5980
  const y = kn(p, x.pointerRegions);
5986
5981
  if (y !== null) {
5987
- x.setHoverState(t.query(y.cursor, n)), x.setTooltipAnchor(ff(y.tooltip, m));
5982
+ x.setHoverState(t.query(y.cursor, n)), x.setTooltipAnchor(vf(y.tooltip, m));
5988
5983
  return;
5989
5984
  }
5990
5985
  const S = tl(p, m);
@@ -6013,14 +6008,14 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6013
6008
  return e.addEventListener("pointermove", v), e.addEventListener("pointerleave", f), () => {
6014
6009
  e.removeEventListener("pointermove", v), e.removeEventListener("pointerleave", f), document.removeEventListener("pointermove", h), i !== null && cancelAnimationFrame(i), o = null;
6015
6010
  };
6016
- }, mf = ({ panelRect: e }) => {
6011
+ }, pf = ({ panelRect: e }) => {
6017
6012
  const { engine: t, store: r, overlayRef: n } = je(), o = Ie(qi), i = Ie(ig), a = Ie((c) => c.caret !== null);
6018
- gf({
6013
+ hf({
6019
6014
  engine: t,
6020
6015
  store: r,
6021
6016
  overlayRef: n
6022
6017
  });
6023
- const l = D((c) => o !== null && uf(c.spec.annotations, o));
6018
+ const l = D((c) => o !== null && df(c.spec.annotations, o));
6024
6019
  return /* @__PURE__ */ s("rect", {
6025
6020
  ref: n,
6026
6021
  x: e.x,
@@ -6029,10 +6024,10 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6029
6024
  height: e.height,
6030
6025
  fill: "transparent",
6031
6026
  pointerEvents: a ? "none" : "all",
6032
- cursor: Af(l, i),
6027
+ cursor: mf(l, i),
6033
6028
  "data-testid": "pointer-capture-layer"
6034
6029
  });
6035
- }, Af = (e, t) => e ? "move" : t ? "pointer" : void 0, sr = "data-hover-active", yf = (e) => {
6030
+ }, mf = (e, t) => e ? "move" : t ? "pointer" : void 0, sr = "data-hover-active", Af = (e) => {
6036
6031
  const { store: t } = je(), r = Le[wt()].hoverPaint, n = Ve(t, (i) => i.hover.primary !== null), o = r && n;
6037
6032
  F(() => {
6038
6033
  const i = e.current;
@@ -6059,13 +6054,13 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6059
6054
  }, oo = (e, t, r, n) => {
6060
6055
  const o = [t, ...[...r].sort()].join("\0");
6061
6056
  e.has(o) || (e.add(o), console.warn(n));
6062
- }, xf = 16, Aa = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
6057
+ }, yf = 16, Aa = ({ linePath: e, strokeWidth: t }) => /* @__PURE__ */ s("path", {
6063
6058
  d: e,
6064
6059
  stroke: "transparent",
6065
- strokeWidth: Math.max(t, xf),
6060
+ strokeWidth: Math.max(t, yf),
6066
6061
  fill: "none",
6067
6062
  pointerEvents: "stroke"
6068
- }), bf = 1.4, wf = {
6063
+ }), xf = 1.4, bf = {
6069
6064
  light: {
6070
6065
  primary: "#1D2129",
6071
6066
  inverse: "#FFFFFF"
@@ -6074,11 +6069,11 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6074
6069
  primary: "#FFFFFF",
6075
6070
  inverse: "#1D2129"
6076
6071
  }
6077
- }, Sf = ({ computed: e, style: t, isAddressable: r }) => {
6072
+ }, wf = ({ computed: e, style: t, isAddressable: r }) => {
6078
6073
  const n = $(), { colorScheme: o } = tn(), i = e.dashArray ? {
6079
6074
  strokeDasharray: e.dashArray,
6080
6075
  strokeDashoffset: e.dashOffset
6081
- } : {}, a = t.outline.shadow === "none" ? null : t.outline.shadow, l = t.outline.strokeWidth > 0, c = wf[o], d = t.outline.stroke ?? Rf(t.stroke, c.primary, c.inverse), u = a === null ? null : Ef(e, t.outline.strokeWidth, a.blur);
6076
+ } : {}, a = t.outline.shadow === "none" ? null : t.outline.shadow, l = t.outline.strokeWidth > 0, c = bf[o], d = t.outline.stroke ?? Ef(t.stroke, c.primary, c.inverse), u = a === null ? null : kf(e, t.outline.strokeWidth, a.blur);
6082
6077
  return /* @__PURE__ */ w("g", {
6083
6078
  pointerEvents: r ? void 0 : "none",
6084
6079
  children: [
@@ -6101,7 +6096,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6101
6096
  filter: a === null ? void 0 : `url(#${n})`,
6102
6097
  children: [
6103
6098
  l && /* @__PURE__ */ s("path", {
6104
- d: kf(e),
6099
+ d: Sf(e),
6105
6100
  stroke: d,
6106
6101
  strokeWidth: e.strokeWidth + 2 * t.outline.strokeWidth,
6107
6102
  strokeLinecap: "round",
@@ -6133,11 +6128,11 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6133
6128
  })
6134
6129
  ]
6135
6130
  });
6136
- }, kf = (e) => [
6131
+ }, Sf = (e) => [
6137
6132
  e.linePath,
6138
6133
  e.startArrowheadPath,
6139
6134
  e.endArrowheadPath
6140
- ].filter((t) => t.length > 0).join(" "), Ef = (e, t, r) => {
6135
+ ].filter((t) => t.length > 0).join(" "), kf = (e, t, r) => {
6141
6136
  const n = e.arrowheadExtent + e.strokeWidth + t + r;
6142
6137
  return {
6143
6138
  x: Math.min(e.startX, e.endX) - n,
@@ -6145,13 +6140,13 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6145
6140
  width: Math.abs(e.endX - e.startX) + 2 * n,
6146
6141
  height: Math.abs(e.endY - e.startY) + 2 * n
6147
6142
  };
6148
- }, Rf = (e, t, r) => {
6143
+ }, Ef = (e, t, r) => {
6149
6144
  try {
6150
- return sl(e, t) < bf ? r : t;
6145
+ return sl(e, t) < xf ? r : t;
6151
6146
  } catch {
6152
6147
  return r;
6153
6148
  }
6154
- }, Pf = ({ panelRect: e, isEditable: t }) => {
6149
+ }, Rf = ({ panelRect: e, isEditable: t }) => {
6155
6150
  const { arrows: r } = St(e), n = _t(), o = L(), i = b(() => r.filter((a) => a.id !== n).flatMap((a) => {
6156
6151
  const l = zs(o, a.id), c = os({
6157
6152
  arrow: a,
@@ -6178,17 +6173,17 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6178
6173
  kind: "annotation",
6179
6174
  id: a.id
6180
6175
  }),
6181
- children: /* @__PURE__ */ s(Sf, {
6176
+ children: /* @__PURE__ */ s(wf, {
6182
6177
  computed: a,
6183
6178
  style: l,
6184
6179
  isAddressable: t
6185
6180
  })
6186
6181
  }, a.id))
6187
6182
  });
6188
- }, Cf = () => {
6183
+ }, Pf = () => {
6189
6184
  const { selectionStore: e } = te();
6190
6185
  return Ve(e, (t) => t.selection);
6191
- }, Bf = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
6186
+ }, Cf = ({ linePath: e, arrowheadPath: t, stroke: r, strokeWidth: n, isAddressable: o }) => {
6192
6187
  const i = {
6193
6188
  stroke: r,
6194
6189
  strokeWidth: n,
@@ -6213,7 +6208,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6213
6208
  })
6214
6209
  ]
6215
6210
  });
6216
- }, If = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: i, isAddressable: a }) => {
6211
+ }, Bf = ({ x: e, y: t, text: r, box: n, label: o, arrowColor: i, isAddressable: a }) => {
6217
6212
  const { fonts: l } = ze(), c = Jt(o.cornerRadius), d = {
6218
6213
  fill: W(o.fill),
6219
6214
  stroke: o.stroke ?? i,
@@ -6242,27 +6237,27 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6242
6237
  children: gt(r, o.textTransform)
6243
6238
  })]
6244
6239
  });
6245
- }, Mf = "_1i8rg6j0", Tf = "75%", Lf = ({ panelRect: e, isEditable: t }) => {
6246
- const r = cg(), n = Ie(qi), o = Cf(), i = b(() => new Set(o.filter((a) => a.kind === "annotation").map((a) => a.id)), [o]);
6240
+ }, If = "_1i8rg6j0", Mf = "75%", Tf = ({ panelRect: e, isEditable: t }) => {
6241
+ const r = cg(), n = Ie(qi), o = Pf(), i = b(() => new Set(o.filter((a) => a.kind === "annotation").map((a) => a.id)), [o]);
6247
6242
  return r.length === 0 ? null : /* @__PURE__ */ s("g", {
6248
6243
  transform: `translate(${e.x}, ${e.y})`,
6249
6244
  "data-testid": "difference-arrows",
6250
6245
  children: r.map(({ color: a, style: l, id: c, linePath: d, arrowheadPath: u, labelPosition: h, labelBox: v, labelText: f, isDragged: g, hasComparableEndpoints: m }) => {
6251
- const p = n === c || i.has(c), x = g && !m, y = x ? A.alert : a, S = p && !x ? Nf(y) : y;
6246
+ const p = n === c || i.has(c), x = g && !m, y = x ? A.alert : a, S = p && !x ? Lf(y) : y;
6252
6247
  return /* @__PURE__ */ w("g", {
6253
- className: n === c ? Mf : void 0,
6248
+ className: n === c ? If : void 0,
6254
6249
  "data-warning": x || void 0,
6255
6250
  ...bt({
6256
6251
  kind: "annotation",
6257
6252
  id: c
6258
6253
  }),
6259
- children: [/* @__PURE__ */ s(Bf, {
6254
+ children: [/* @__PURE__ */ s(Cf, {
6260
6255
  linePath: d,
6261
6256
  arrowheadPath: u,
6262
6257
  stroke: S,
6263
6258
  strokeWidth: l.strokeWidth,
6264
6259
  isAddressable: t
6265
- }), /* @__PURE__ */ s(If, {
6260
+ }), /* @__PURE__ */ s(Bf, {
6266
6261
  x: h.x,
6267
6262
  y: h.y,
6268
6263
  text: f,
@@ -6274,11 +6269,11 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6274
6269
  }, c);
6275
6270
  })
6276
6271
  });
6277
- }, Nf = (e) => `color-mix(in srgb, ${e} ${Tf}, ${A.textPrimary})`, Of = {
6272
+ }, Lf = (e) => `color-mix(in srgb, ${e} ${Mf}, ${A.textPrimary})`, Nf = {
6278
6273
  fill: "none",
6279
6274
  contain: "xMidYMid meet",
6280
6275
  cover: "xMidYMid slice"
6281
- }, Hf = ({ image: e, panel: t, style: r }) => {
6276
+ }, Of = ({ image: e, panel: t, style: r }) => {
6282
6277
  const n = $(), { src: o, region: i, fit: a } = e, l = Or(i, t), c = Hu(r.cornerRadius), d = Jt(r.cornerRadius);
6283
6278
  return /* @__PURE__ */ w("g", { children: [c && /* @__PURE__ */ s("clipPath", {
6284
6279
  id: n,
@@ -6289,7 +6284,7 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6289
6284
  }), /* @__PURE__ */ s("image", {
6290
6285
  href: o,
6291
6286
  ...l,
6292
- preserveAspectRatio: Of[a],
6287
+ preserveAspectRatio: Nf[a],
6293
6288
  opacity: r.alpha,
6294
6289
  clipPath: c ? `url(#${n})` : void 0
6295
6290
  })] });
@@ -6307,14 +6302,14 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6307
6302
  kind: "annotation",
6308
6303
  id: a.id
6309
6304
  }),
6310
- children: /* @__PURE__ */ s(Hf, {
6305
+ children: /* @__PURE__ */ s(Of, {
6311
6306
  image: a,
6312
6307
  panel: e,
6313
6308
  style: n.annotation.image(a.id).resolve()
6314
6309
  })
6315
6310
  }, a.id))
6316
6311
  });
6317
- }, Df = ({ shape: e, style: t, panel: r }) => {
6312
+ }, Hf = ({ shape: e, style: t, panel: r }) => {
6318
6313
  const n = Or(e.region, r);
6319
6314
  return /* @__PURE__ */ s("rect", {
6320
6315
  x: n.x,
@@ -6341,14 +6336,14 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6341
6336
  kind: "annotation",
6342
6337
  id: a.id
6343
6338
  }),
6344
- children: /* @__PURE__ */ s(Df, {
6339
+ children: /* @__PURE__ */ s(Hf, {
6345
6340
  shape: a,
6346
6341
  style: n.annotation.shape(a.id).resolve(),
6347
6342
  panel: e
6348
6343
  })
6349
6344
  }, a.id))
6350
6345
  });
6351
- }, Ff = "_1aj6s5s0", aA = "_1aj6s5s1", Gf = 0.1, sA = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(ya, {
6346
+ }, Df = "_1aj6s5s0", iA = "_1aj6s5s1", Ff = 0.1, aA = ({ annotation: e, panel: t, style: r, blockRef: n }) => /* @__PURE__ */ s(ya, {
6352
6347
  annotation: e,
6353
6348
  panel: t,
6354
6349
  style: r,
@@ -6365,44 +6360,44 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6365
6360
  pointerEvents: "none",
6366
6361
  children: /* @__PURE__ */ s("div", {
6367
6362
  ref: n,
6368
- className: Ff,
6363
+ className: Df,
6369
6364
  style: {
6370
- ...Uf(r),
6371
- transform: Wf(e.align)
6365
+ ...Wf(r),
6366
+ transform: Gf(e.align)
6372
6367
  },
6373
6368
  children: o
6374
6369
  })
6375
6370
  });
6376
- }, Wf = (e) => {
6371
+ }, Gf = (e) => {
6377
6372
  const t = fo(e);
6378
6373
  return `translate(${-t.x * 100}%, ${-(1 - t.y) * 100}%)`;
6379
- }, Uf = (e) => ({
6374
+ }, Wf = (e) => ({
6380
6375
  ...Q(e),
6381
6376
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
6382
6377
  borderRadius: xt(e.cornerRadius),
6383
6378
  opacity: e.alpha,
6384
- ...Vf(e)
6385
- }), Vf = (e) => {
6379
+ ...Uf(e)
6380
+ }), Uf = (e) => {
6386
6381
  if (e.fill === "transparent") return {};
6387
6382
  const t = W(e.fill), r = e.fillAlpha < 1 ? re(t, e.fillAlpha) : t;
6388
6383
  if (e.strokeWidth <= 0) return { backgroundColor: r };
6389
- const n = e.stroke ?? kc(t, Gf);
6384
+ const n = e.stroke ?? kc(t, Ff);
6390
6385
  return {
6391
6386
  backgroundColor: r,
6392
6387
  boxShadow: `0 0 0 ${e.strokeWidth}px ${n}`
6393
6388
  };
6394
- }, zf = (e) => {
6389
+ }, Vf = (e) => {
6395
6390
  const t = St(e).textAnnotations, r = Ie((n) => dt(n, "text-resize-drag"));
6396
- return b(() => t.map((n) => jf(n, r)), [t, r]);
6397
- }, jf = (e, t) => t === null || t.annotationId !== e.id ? e : {
6391
+ return b(() => t.map((n) => zf(n, r)), [t, r]);
6392
+ }, zf = (e, t) => t === null || t.annotationId !== e.id ? e : {
6398
6393
  ...e,
6399
6394
  at: {
6400
6395
  ...e.at,
6401
6396
  x: e.at.x + t.shift
6402
6397
  },
6403
6398
  width: t.width
6404
- }, Yf = ({ panelRect: e }) => {
6405
- const t = zf(e), r = L(), n = _t(), o = t.filter((i) => i.id !== n);
6399
+ }, jf = ({ panelRect: e }) => {
6400
+ const t = Vf(e), r = L(), n = _t(), o = t.filter((i) => i.id !== n);
6406
6401
  return o.length === 0 ? null : /* @__PURE__ */ s("svg", {
6407
6402
  x: e.x,
6408
6403
  y: e.y,
@@ -6410,13 +6405,13 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6410
6405
  height: e.height,
6411
6406
  overflow: "visible",
6412
6407
  "data-testid": "text-annotations",
6413
- children: o.map((i) => /* @__PURE__ */ s(Qf, {
6408
+ children: o.map((i) => /* @__PURE__ */ s(Yf, {
6414
6409
  annotation: i,
6415
6410
  panel: e,
6416
6411
  style: r.annotation.text(i.id).resolve()
6417
6412
  }, i.id))
6418
6413
  });
6419
- }, Qf = ({ annotation: e, panel: t, style: r }) => {
6414
+ }, Yf = ({ annotation: e, panel: t, style: r }) => {
6420
6415
  const n = Xh(e.id), o = Ie((a) => a.caret?.annotationId === e.id), { TextAnnotation: i } = ln();
6421
6416
  return /* @__PURE__ */ s("g", {
6422
6417
  ...bt({
@@ -6431,11 +6426,11 @@ var Qv = ({ edge: e, indexedLegends: t, containerWidth: r, containerHeight: n })
6431
6426
  children: o && i ? /* @__PURE__ */ s(i, { annotation: e }) : /* @__PURE__ */ s(qe, { content: e.content })
6432
6427
  })
6433
6428
  });
6434
- }, Kf = "ph8bdc0";
6435
- var Xf = "ph8bdc2", so = {
6429
+ }, Qf = "ph8bdc0";
6430
+ var Kf = "ph8bdc2", so = {
6436
6431
  hittable: "ph8bdc4 ph8bdc3",
6437
6432
  inert: "ph8bdc5 ph8bdc3"
6438
- }, qf = ({ cx: e, cy: t, color: r, style: n }) => {
6433
+ }, Xf = ({ cx: e, cy: t, color: r, style: n }) => {
6439
6434
  const o = Uo(n.shadow);
6440
6435
  return /* @__PURE__ */ s("circle", {
6441
6436
  cx: e,
@@ -6449,7 +6444,7 @@ var Xf = "ph8bdc2", so = {
6449
6444
  }
6450
6445
  });
6451
6446
  };
6452
- function Jf(e) {
6447
+ function qf(e) {
6453
6448
  const t = Te(), { formattingLocale: r } = te(), n = L(), o = D(ie((c) => ({
6454
6449
  pinnedNumbers: c.annotations.pinnedNumbers,
6455
6450
  comments: c.annotations.comments,
@@ -6460,7 +6455,7 @@ function Jf(e) {
6460
6455
  numberFormat: o.numberFormat,
6461
6456
  locale: i
6462
6457
  }), [o.numberFormat, i]), l = b(() => (c, d, u) => {
6463
- const h = dr(n, c === "pinned-number" ? "pinnedNumber" : "comment", d).label, v = ee(h, Qt), f = Zf(t, c, u, v), g = t.measureText(f, v), m = c === "pinned-number" ? 15 : 0;
6458
+ const h = dr(n, c === "pinned-number" ? "pinnedNumber" : "comment", d).label, v = ee(h, Qt), f = Jf(t, c, u, v), g = t.measureText(f, v), m = c === "pinned-number" ? 15 : 0;
6464
6459
  return {
6465
6460
  width: g.width + m + (h.paddingInline + h.strokeWidth) * 2,
6466
6461
  height: Math.max(g.height, 10) + (h.paddingBlock + h.strokeWidth) * 2,
@@ -6483,11 +6478,11 @@ function Jf(e) {
6483
6478
  a
6484
6479
  ]);
6485
6480
  }
6486
- var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o, n).width), lo = "callouts", $f = ({ panelRect: e }) => {
6481
+ var Jf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o, n).width), lo = "callouts", Zf = ({ panelRect: e }) => {
6487
6482
  const { pinnedNumbers: t, comments: r } = D(ie((g) => ({
6488
6483
  pinnedNumbers: g.annotations.pinnedNumbers,
6489
6484
  comments: g.annotations.comments
6490
- }))), n = D((g) => g.coordSystem), o = Pe(), i = hl(10), a = L(), l = Jf(e), { store: c } = je(), d = b(() => {
6485
+ }))), n = D((g) => g.coordSystem), o = Pe(), i = hl(10), a = L(), l = qf(e), { store: c } = je(), d = b(() => {
6491
6486
  const g = /* @__PURE__ */ new Map();
6492
6487
  for (const m of t) g.set(m.id, m.at);
6493
6488
  for (const m of r) g.set(m.id, m.at);
@@ -6517,7 +6512,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6517
6512
  width: e.width,
6518
6513
  height: e.height,
6519
6514
  overflow: "visible",
6520
- className: Kf,
6515
+ className: Qf,
6521
6516
  "data-testid": "callouts",
6522
6517
  children: l.map((g) => {
6523
6518
  if (!g.inView) return null;
@@ -6534,7 +6529,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6534
6529
  overflow: "visible",
6535
6530
  children: /* @__PURE__ */ w("div", {
6536
6531
  className: S ? so.hittable : so.inert,
6537
- style: tp(p.label, f(p.label.fill)),
6532
+ style: ep(p.label, f(p.label.fill)),
6538
6533
  children: [g.kind === "pinned-number" && /* @__PURE__ */ s("span", {
6539
6534
  className: "ph8bdc1",
6540
6535
  children: /* @__PURE__ */ s(yt, {
@@ -6548,30 +6543,30 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6548
6543
  symbol: x?.symbol
6549
6544
  })
6550
6545
  }), /* @__PURE__ */ s("span", {
6551
- className: Xf,
6552
- style: rp(p.label),
6546
+ className: Kf,
6547
+ style: tp(p.label),
6553
6548
  children: g.text
6554
6549
  })]
6555
6550
  })
6556
- }), /* @__PURE__ */ s(qf, {
6551
+ }), /* @__PURE__ */ s(Xf, {
6557
6552
  cx: g.anchorPx.x,
6558
6553
  cy: g.anchorPx.y,
6559
- color: _f(p.marker, y),
6554
+ color: $f(p.marker, y),
6560
6555
  style: p.marker
6561
6556
  })]
6562
6557
  }, g.id);
6563
6558
  })
6564
6559
  });
6565
- }, _f = (e, t) => e.isFillAuthored ? W(e.fill) : t ?? W(e.fill), ep = (e) => e.isTextColorAuthored ? e.textColor : ms(e.textColor, W(e.fill)), tp = (e, t) => ({
6560
+ }, $f = (e, t) => e.isFillAuthored ? W(e.fill) : t ?? W(e.fill), _f = (e) => e.isTextColorAuthored ? e.textColor : ms(e.textColor, W(e.fill)), ep = (e, t) => ({
6566
6561
  ...Zt(e.fill, t),
6567
6562
  borderRadius: xt(e.cornerRadius),
6568
6563
  padding: `${e.paddingBlock}px ${e.paddingInline}px`,
6569
6564
  boxShadow: Ur(e.shadow),
6570
6565
  ...e.strokeWidth > 0 ? { border: `${e.strokeWidth}px solid ${e.stroke}` } : {}
6571
- }), rp = (e) => ({
6566
+ }), tp = (e) => ({
6572
6567
  ...Q(e),
6573
- color: ep(e)
6574
- }), np = (e, t) => e * 10 * t, op = {
6568
+ color: _f(e)
6569
+ }), rp = (e, t) => e * 10 * t, np = {
6575
6570
  "clapping-hands": {
6576
6571
  aspectRatio: 1.059,
6577
6572
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEQAAABICAYAAABP0VPJAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABipSURBVHgB7VwJfFTVuf/uMvtMlplJJiEhBEhYwiIYNgExUBSQ6qMqblWrz5/WtfBa67NiH1iftbW1VqWghWqt+opFfajFBRcSUMImEBISspCFSTIh++zbXfqdO3cmswWSSPVHf/1+ub977znfPfec//m28507Afg3/ZvORsxwmEVRpJDo0tISCqA0XEzJBx06bwjXUXAB0lA7TZWUlDCtra3Mtm3vjCUF1113dbNWqxXItcfjod966718igpSubm5ow8fPnx8zZo1fQ0NMzlR/JuAIIrwL0LU6tWrmfz8fLXD4XgYJaRPlEkQhH6v1/s6lj9FrsU44nm+BevuAihWbNiwgYZ/ASLSw5aXfzU5EAjuFUdICNr/ElDgAlWhCBHJ2L//SFGy2R8uWa3ty9G2XNBSQhUVFSmJ2IvngdDGvEHaS/YeUZQkhykuLlaEeIoV5JpMCEiGWgKSHTg2yMb7GyTSmZqamksGG6DP1ZdQhqpha6jcd7Tp6MdOjuMc0XUEWDS2mriBEEPNfvrppxa32/2k3+9/H/kqgsHgHp/Pt7Gzs+cGi8Wis1qty8k9sVfk3N5+ZllBQYFKBugbAUaSjra2tgfiB+040yS+u75E/PDpVVGz77VJdZ1N4ubVIP5uFf2VyTR9bmVl7ZYwTyDAWdPT01Mh5JojYDQ1Nc07mxRinT1ZObFp9fVN8wCKlHh7XkGJ0Wu5cbasrOw/s7KynkzgxlpnVzO0V5eC390vFdXUnPqInJXaNOm+x6Mq3bz5l1Nxxh0cx7tIGc9zrq1bt45Hb0XUhkEJpJ9//vmCvLy8N2mazhu0czSdkqxcoWAXFhTkl7vdh9ZPmTJFcb5BCRNF9Fd2r4NSd9NRSRKO7/y9dB8Mcs5w3ev35Yunq75oH+xZVIe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y56C0aP5iL2glGLEjkQkhNWCZsIDwFquSNrO7t371q5c+cN30tJUPTbbVyQRLIQ7+00RCnGBwmxmlD6fSsNxtFahEFSCICp/9KObRi9cOG/SuHF5E3EJMMFg0E88G0hEher+707IzvaT3WNZfRAQNhSyM9ps0M3cAIy+IOnz9fXNL06fvvo3Go3Y09f3FYlQI58YfJOAhAnVtIA1Gk0q1GEVz2OgqHQjSCyjVPK0QgGKQECk7rnn5jGPPXbf46mphuJkjfBeJ3Tvew6ors/lzTVRkhbFqIvAcPHDQCf/HB7BaHxx/vybnvX7ocfpPOjcsGEDh0ckz/ptABJ+L11UtJqprm5EN+1igkEla7f7mYyMUazL1cdgUlil1VLa8vJ3HsCNph8O1lBP+XMQbHgXGEM26KffBppxywZjFTEu+uOcOdc+I4pMn9Npd5LYCZKsmr5tkn1CCRv6BTj5CWq2Ni1tRprJdFGOwXDRhF279q7BHMygv+UL9NSL5yBh377D/0Pa0utnZpBfj8HwUx/fKiFI5IfMxdrMzLkWlWrq+EceeXo5gtImDpMwK9a2ceNr16ekTCmwWOZnXohgRCj0k7ECVU7OHJNGU5z385//9vL+fsehoYKBvAcfffS3y1JTZ41LSbnESMD4V/jHDDT5wXJ6enGq0Th7tF4/eQouxt47GxCYAbMfPVr9tNE4s0itnpJHwPhn/Oj5WyXyS3CzeYHBaJyeq9dPnXzy5KkXZRUSwge5x/LN11xzzwKiZmbzpei6FxiG898pLiTEsK8laFd6VWazIsXlCmhYltLee++NuWPGjE757LO97Z988kUfRSmCHMd7WVbl1esBI9CvyM8S5ETKkF5ywRGCkotrpFEY2FEaQQgwosjTgYCCpyiBYxiFX612+7u6RHSp1STgGvL3ZXLjFxzhTDswS9cWTEubiYPmUQLSfCoVeO32dk9BAeWbM2dKoLq6TP7l0vDoQjYyUUnXUDqe0Nf9f0f/APDc5Dseec9LAAAAAElFTkSuQmCC"
@@ -6592,10 +6587,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6592
6587
  aspectRatio: 1.063,
6593
6588
  src: "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAABECAYAAAAx+DPIAAAACXBIWXMAABYlAAAWJQFJUiTwAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAABSHSURBVHgB7VwLcFzVef7PfezefWklZEl+BQQSGGQsMMa0vFXStCRAaQsaEpoyZTINTMkwHaAloWlRTcNQZkImSTNTmoG4YEoTOhkTkjF1gYgE6leEjQ0yorIs23pYLySttK/7Ov3/c+5Ku3uv1qJIUGfyjw93d+8595z/P//zO1cA/IZ+Qx8nMc45A+hQ8LMG0KZt2rRJpyvd89rHuyD4+IjmUpqbP6v94hdPtcXj8YvC4XCr4zjTuVzuYF/fwOuXXtrah30cbC42Dr8u1NHRobS0tISGhoauR4aP8QUom81u6+rqugBgk05j4BPQiCUnqfKb9HQ6/Q2+SKK+zc3NYRyuwOlMyAtdtEOHDl/BPyRls/ltjY2NBpzOQpC732hUUvvKQshuI9OB09UUyI7J7gO5Sx3kfPBJzoeeQU6HFxRCKpV6UEaK05Bo96amph7zcZUb4fytGzh/53PY8PrW73N+fGugAFzXndq+fftqL3QuOS2rfeHuqbquX+S7MfqinJmpwBUdeDgCMPFDgMPf8HVljCWvueaaO9rbO5bFDJZVAPl8lcqYkvTdyPQJq+aKhi0KoBrAdTT1yVcBhn7m6445w427dq0NSZ+ytLScAsCsb5TYrLBoFf9FgKtxXAkKIIaacOyHvl6oRVdu2bJlBWrD6SWAine4vHImtYCuoKBAzKMAM+/7hlx33WeubW9vP30EQA6surqamaZ1wnczVE8dMOF1gbl5VBUTWKES0FAQ0z2+IYYRPquvr2/J16vBMpHU1jo32G6Z0ADGLcz8sygLG4VhS61QUQsyQ0HPq8lmu04rEwBScKQFihoSgiM1wMngFYXBsQZSgnnEcMhSqbUq50tbIy2bBhC1tqquqqr+KEBMCEbIDEj9cR/cwnf3VI8teJAloWUTAPFXW5tA/pUq301zdJ4NIQxnPlhYqAmRVb4hq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Yjj5IydO5/940su2fCxaASV8fv2vfP49dff8ZyqZiY+/emNaaxwnVONY6d+NLC2tjYVsTStv38V9h9GlboA26hLKFJnZ6enYgSkvKs2NGh6JmOiEBLRdDodjkY148knH/2tyy7beF1tbdXmeDx+Liwhob3/z+Dg6GsPPPD4v/7yl10jnOtTqZSJzq/LWsz4xQigvH9FmyK0bP16ekWtPnTixIxh23YYj6YM153VNC2sY0qrPvroX62rr1+RoJMPjv/QpOglcPHcX/2qexi1ZtUFFzSuQ81JGEYoiS1Gf1xCfoc6ou8Z3rfv0Huvv757sLNz95SqGmY6zTKhkJ6uq0tkent3VHwzrJyh5SDvuZsoylCBrJMJIRN6OKxorququZzL8HAHMLJhve4q+TxBwfJgW353WSiEJ6SQxRPrqGJZGdeDlKmmcNEfoflpDsIBFh54mOHwmvz4+E9y9LYotkW/VL1cAph7PiU/TPxFRAv6k6RqWWnFNHWNi+Se/iQuoszMzHqMUZ5cjVo0wVwXqyHMkriotYkcFo8nEbbLoMZkUYQRR9OyzthYEu18Gtt6bC/8//6z+/m3S0H1XnrW0L+QlhSaWtS8/7kCaVBLSP4NMTXxmxi/FH9i/7+rT2twf4PgbQAAAABJRU5ErkJggg=="
6594
6589
  }
6595
- }, ip = 3.2, ap = ({ panelRect: e }) => {
6590
+ }, op = 3.2, ip = ({ panelRect: e }) => {
6596
6591
  const t = St(e).stickers, r = L().graph().get("textScale");
6597
6592
  if (t.length === 0) return null;
6598
- const n = np(ip, r);
6593
+ const n = rp(op, r);
6599
6594
  return /* @__PURE__ */ s("svg", {
6600
6595
  x: e.x,
6601
6596
  y: e.y,
@@ -6605,7 +6600,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6605
6600
  "data-testid": "stickers",
6606
6601
  children: t.map((o) => {
6607
6602
  const i = ut(o.at, e);
6608
- return /* @__PURE__ */ s(sp, {
6603
+ return /* @__PURE__ */ s(ap, {
6609
6604
  sticker: o,
6610
6605
  sizePx: n,
6611
6606
  x: i.x,
@@ -6613,10 +6608,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6613
6608
  }, o.id);
6614
6609
  })
6615
6610
  });
6616
- }, sp = ({ sticker: e, sizePx: t, x: r, y: n }) => {
6617
- const o = op[e.sticker];
6611
+ }, ap = ({ sticker: e, sizePx: t, x: r, y: n }) => {
6612
+ const o = np[e.sticker];
6618
6613
  if (!o) return null;
6619
- const { width: i, height: a } = lp(o.aspectRatio, t);
6614
+ const { width: i, height: a } = sp(o.aspectRatio, t);
6620
6615
  return /* @__PURE__ */ s("image", {
6621
6616
  href: o.src,
6622
6617
  x: r,
@@ -6625,13 +6620,13 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6625
6620
  height: a,
6626
6621
  transform: `translate(${-i / 2}, ${-a / 2})`
6627
6622
  });
6628
- }, lp = (e, t) => e >= 1 ? {
6623
+ }, sp = (e, t) => e >= 1 ? {
6629
6624
  width: t,
6630
6625
  height: t / e
6631
6626
  } : {
6632
6627
  width: t * e,
6633
6628
  height: t
6634
- }, cp = 0.25, xa = ({ children: e, ...t }) => {
6629
+ }, lp = 0.25, xa = ({ children: e, ...t }) => {
6635
6630
  const r = wh();
6636
6631
  return r <= 0 ? /* @__PURE__ */ s("g", {
6637
6632
  ...t,
@@ -6641,19 +6636,19 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6641
6636
  initial: { opacity: 0 },
6642
6637
  animate: { opacity: 1 },
6643
6638
  transition: {
6644
- duration: cp,
6639
+ duration: lp,
6645
6640
  delay: r
6646
6641
  },
6647
6642
  children: e
6648
6643
  });
6649
- }, dp = "_1agclyl0", up = "_1agclyl1", hp = "_1agclyl2", ba = ({ x: e, y: t, width: r, height: n, text: o, isRotated: i, labelRole: a, position: l, coordType: c, backdropColor: d }) => {
6650
- const u = I($t, L()), h = i ? `rotate(-90 ${e} ${t})` : void 0, v = u[a][l], f = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, g = fp(a, c, v), m = vp(v, g, d), p = {
6644
+ }, cp = "_1agclyl0", dp = "_1agclyl1", up = "_1agclyl2", ba = ({ x: e, y: t, width: r, height: n, text: o, isRotated: i, labelRole: a, position: l, coordType: c, backdropColor: d }) => {
6645
+ const u = I($t, L()), h = i ? `rotate(-90 ${e} ${t})` : void 0, v = u[a][l], f = v.stroke !== void 0 && (v.strokeWidth ?? 0) > 0, g = vp(a, c, v), m = gp(v, g, d), p = {
6651
6646
  x: e - r / 2,
6652
6647
  y: t - n / 2,
6653
6648
  width: r,
6654
6649
  height: n
6655
6650
  }, x = Jt(v.cornerRadius), y = {
6656
- className: up,
6651
+ className: dp,
6657
6652
  fill: v.fill === void 0 ? void 0 : W(v.fill),
6658
6653
  ...f ? {
6659
6654
  stroke: v.stroke,
@@ -6671,10 +6666,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6671
6666
  ry: x,
6672
6667
  ...y
6673
6668
  })), /* @__PURE__ */ s("text", {
6674
- className: hp,
6669
+ className: up,
6675
6670
  style: {
6676
6671
  ..._e(v),
6677
- fill: gp(v, m)
6672
+ fill: hp(v, m)
6678
6673
  },
6679
6674
  ...Xt(v),
6680
6675
  x: e,
@@ -6684,10 +6679,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6684
6679
  children: gt(o, v.textTransform)
6685
6680
  })]
6686
6681
  });
6687
- }, gp = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : So(t), vp = (e, t, r) => {
6682
+ }, hp = (e, t) => e.isTextColorAuthored || t === void 0 ? e.textColor : So(t), gp = (e, t, r) => {
6688
6683
  if (r !== void 0)
6689
6684
  return ns(t && e.fill !== void 0 ? W(e.fill) : void 0, r);
6690
- }, fp = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", pp = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
6685
+ }, vp = (e, t, r) => r.fill === void 0 ? !1 : e === "aggregate" || t === "cartesian", fp = ({ panelRect: e, formattingLocale: t, plotBottomY: r, isFooterChromeReserved: n }) => {
6691
6686
  const o = Te(), i = ze(), a = D(ie((g) => ({
6692
6687
  layers: g.layers,
6693
6688
  coordSystem: g.coordSystem,
@@ -6742,12 +6737,12 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6742
6737
  backdropColor: g.backdropColor
6743
6738
  }, `${g.layerId}:${m}`));
6744
6739
  return /* @__PURE__ */ s(xa, {
6745
- className: dp,
6740
+ className: cp,
6746
6741
  transform: `translate(${e.x}, ${e.y})`,
6747
6742
  "data-testid": "data-labels",
6748
6743
  children: f
6749
6744
  });
6750
- }, mp = ({ edge: e, position: t, labelRotation: r, offset: n, axisSize: o }) => {
6745
+ }, pp = ({ edge: e, position: t, labelRotation: r, offset: n, axisSize: o }) => {
6751
6746
  if (r !== 0 && (e === "top" || e === "bottom")) {
6752
6747
  const i = e === "top", a = i ? -n : n;
6753
6748
  return {
@@ -6792,7 +6787,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6792
6787
  transform: void 0
6793
6788
  };
6794
6789
  }
6795
- }, Ap = (e, t) => {
6790
+ }, mp = (e, t) => {
6796
6791
  const r = t.height / 2;
6797
6792
  switch (e) {
6798
6793
  case "left":
@@ -6821,8 +6816,8 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6821
6816
  transform: void 0
6822
6817
  };
6823
6818
  }
6824
- }, yp = (e, t, r, n) => {
6825
- const { width: o, ascent: i, descent: a } = t, l = i + a, c = kp(e, o), d = Ep(e, i, l), u = bp(r, e, n, {
6819
+ }, Ap = (e, t, r, n) => {
6820
+ const { width: o, ascent: i, descent: a } = t, l = i + a, c = Sp(e, o), d = kp(e, i, l), u = xp(r, e, n, {
6826
6821
  x: c,
6827
6822
  y: d,
6828
6823
  width: o,
@@ -6835,7 +6830,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6835
6830
  height: l + u.top + u.bottom,
6836
6831
  transform: e.transform
6837
6832
  };
6838
- }, xp = (e, t) => {
6833
+ }, yp = (e, t) => {
6839
6834
  const r = e.map((o, i) => ({
6840
6835
  position: o,
6841
6836
  index: i
@@ -6844,12 +6839,12 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6844
6839
  const a = r[i - 1], l = r[i + 1], c = a === void 0 ? 1 / 0 : o.position - a.position, d = l === void 0 ? 1 / 0 : l.position - o.position, u = Math.min(c, d);
6845
6840
  n[o.index] = Number.isFinite(u) ? u * t : 1 / 0;
6846
6841
  }), n;
6847
- }, bp = (e, t, r, n) => r === void 0 ? {
6842
+ }, xp = (e, t, r, n) => r === void 0 ? {
6848
6843
  left: e,
6849
6844
  right: e,
6850
6845
  top: e,
6851
6846
  bottom: e
6852
- } : t.transform !== void 0 ? wp(e, t) : Sp(e, r, n), wp = (e, { y: t, textAnchor: r }) => {
6847
+ } : t.transform !== void 0 ? bp(e, t) : wp(e, r, n), bp = (e, { y: t, textAnchor: r }) => {
6853
6848
  const n = st(e, Math.abs(t));
6854
6849
  return r === "end" ? {
6855
6850
  left: e,
@@ -6862,7 +6857,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6862
6857
  top: e,
6863
6858
  bottom: e
6864
6859
  };
6865
- }, Sp = (e, { edge: t, stepPx: r, axisSize: n }, o) => {
6860
+ }, wp = (e, { edge: t, stepPx: r, axisSize: n }, o) => {
6866
6861
  const i = co(e, r, o.width), a = co(e, r, o.height);
6867
6862
  switch (t) {
6868
6863
  case "bottom":
@@ -6894,7 +6889,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6894
6889
  bottom: a
6895
6890
  };
6896
6891
  }
6897
- }, st = (e, t) => Math.max(0, Math.min(e, t)), co = (e, t, r) => Math.min(e, Math.max(0, (t - r) / 2)), kp = ({ x: e, textAnchor: t }, r) => {
6892
+ }, st = (e, t) => Math.max(0, Math.min(e, t)), co = (e, t, r) => Math.min(e, Math.max(0, (t - r) / 2)), Sp = ({ x: e, textAnchor: t }, r) => {
6898
6893
  switch (t) {
6899
6894
  case "start":
6900
6895
  return e;
@@ -6903,7 +6898,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6903
6898
  case "end":
6904
6899
  return e - r;
6905
6900
  }
6906
- }, Ep = ({ y: e, dominantBaseline: t }, r, n) => {
6901
+ }, kp = ({ y: e, dominantBaseline: t }, r, n) => {
6907
6902
  switch (t) {
6908
6903
  case "hanging":
6909
6904
  return e;
@@ -6913,10 +6908,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6913
6908
  case "auto":
6914
6909
  return e - r;
6915
6910
  }
6916
- }, Rp = {
6911
+ }, Ep = {
6917
6912
  fill: "transparent",
6918
6913
  pointerEvents: "all"
6919
- }, hn = ({ placement: e, text: t, style: r, isHitTestable: n, bounds: o }) => /* @__PURE__ */ w(M, { children: [n && /* @__PURE__ */ s(Pp, {
6914
+ }, hn = ({ placement: e, text: t, style: r, isHitTestable: n, bounds: o }) => /* @__PURE__ */ w(M, { children: [n && /* @__PURE__ */ s(Rp, {
6920
6915
  placement: e,
6921
6916
  text: t,
6922
6917
  style: r,
@@ -6927,10 +6922,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6927
6922
  ...Xt(r),
6928
6923
  fill: r.textColor,
6929
6924
  children: gt(t, r.textTransform)
6930
- })] }), Pp = ({ placement: e, text: t, style: r, bounds: n }) => {
6925
+ })] }), Rp = ({ placement: e, text: t, style: r, bounds: n }) => {
6931
6926
  const o = Te(), { fonts: i } = ze();
6932
6927
  return /* @__PURE__ */ s("rect", {
6933
- ...b(() => yp(e, o.measureText(t, ee(r, i.familyDefault)), 3, n), [
6928
+ ...b(() => Ap(e, o.measureText(t, ee(r, i.familyDefault)), 3, n), [
6934
6929
  e,
6935
6930
  o,
6936
6931
  t,
@@ -6938,10 +6933,10 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6938
6933
  i.familyDefault,
6939
6934
  n
6940
6935
  ]),
6941
- ...Rp
6936
+ ...Ep
6942
6937
  });
6943
- }, Cp = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: i, stepPx: a = 1 / 0, isHitTestable: l = !1 }) => {
6944
- const { offset: c } = o, d = b(() => mp({
6938
+ }, Pp = ({ edge: e, position: t, labelRotation: r, label: n, tickLabelStyle: o, axisSize: i, stepPx: a = 1 / 0, isHitTestable: l = !1 }) => {
6939
+ const { offset: c } = o, d = b(() => pp({
6945
6940
  edge: e,
6946
6941
  position: t,
6947
6942
  labelRotation: r,
@@ -6974,11 +6969,11 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6974
6969
  style: { overflow: "visible" },
6975
6970
  children: u
6976
6971
  });
6977
- }, Bp = ({ formattedAxis: e, rect: t }) => {
6972
+ }, Cp = ({ formattedAxis: e, rect: t }) => {
6978
6973
  const r = e.position === "bottom" || e.position === "top", n = Ae(e.scaleAestheticKey), o = L(), i = I(on, o)(n, e.position), a = I(Ui, o)[n], l = Ne(), c = b(() => ({
6979
6974
  width: t.width,
6980
6975
  height: t.height
6981
- }), [t.width, t.height]), d = r ? t.width : t.height, u = b(() => l ? xp(e.ticks.map((h) => h.position), d) : void 0, [
6976
+ }), [t.width, t.height]), d = r ? t.width : t.height, u = b(() => l ? yp(e.ticks.map((h) => h.position), d) : void 0, [
6982
6977
  l,
6983
6978
  e.ticks,
6984
6979
  d
@@ -6990,7 +6985,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
6990
6985
  height: t.height,
6991
6986
  style: { overflow: "visible" },
6992
6987
  children: [!1, e.ticks.map((h, v) => {
6993
- const f = h.formattedLabel, g = r ? h.position : 1 - h.position, m = Ip(e.position, g, t, a.length), p = l && f !== "";
6988
+ const f = h.formattedLabel, g = r ? h.position : 1 - h.position, m = Bp(e.position, g, t, a.length), p = l && f !== "";
6994
6989
  return /* @__PURE__ */ w("g", {
6995
6990
  ...p ? cn(e.scaleAestheticKey, v) : void 0,
6996
6991
  cursor: p ? "pointer" : void 0,
@@ -7000,7 +6995,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7000
6995
  strokeWidth: a.strokeWidth,
7001
6996
  strokeDasharray: ue(a.dashArray, a.strokeWidth),
7002
6997
  pointerEvents: l ? "none" : void 0
7003
- }), /* @__PURE__ */ s(Cp, {
6998
+ }), /* @__PURE__ */ s(Pp, {
7004
6999
  edge: e.position,
7005
7000
  position: g,
7006
7001
  labelRotation: e.labelRotation,
@@ -7013,7 +7008,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7013
7008
  }, v);
7014
7009
  })]
7015
7010
  });
7016
- }, Ip = (e, t, r, n) => {
7011
+ }, Bp = (e, t, r, n) => {
7017
7012
  const o = P(t);
7018
7013
  switch (e) {
7019
7014
  case "bottom":
@@ -7045,19 +7040,19 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7045
7040
  y2: o
7046
7041
  };
7047
7042
  }
7048
- }, Mp = ({ axes: e, rects: t }) => {
7043
+ }, Ip = ({ axes: e, rects: t }) => {
7049
7044
  const r = I(Wi, L()), n = Ne();
7050
7045
  return /* @__PURE__ */ s(M, { children: e.map((o) => {
7051
7046
  const i = t[o.position];
7052
- return !i || !o.isVisible ? null : /* @__PURE__ */ s(Tp, {
7047
+ return !i || !o.isVisible ? null : /* @__PURE__ */ s(Mp, {
7053
7048
  axis: o,
7054
7049
  rect: i,
7055
7050
  labelStyle: r[Ae(o.scaleAestheticKey)],
7056
7051
  isHitTestable: n
7057
7052
  }, `axis-label-${o.position}`);
7058
7053
  }) });
7059
- }, Tp = ({ axis: e, rect: t, labelStyle: r, isHitTestable: n }) => {
7060
- const o = b(() => Ap(e.position, t), [e.position, t]), i = n && e.label !== null && e.label !== "", a = i ? cn(e.scaleAestheticKey) : void 0;
7054
+ }, Mp = ({ axis: e, rect: t, labelStyle: r, isHitTestable: n }) => {
7055
+ const o = b(() => mp(e.position, t), [e.position, t]), i = n && e.label !== null && e.label !== "", a = i ? cn(e.scaleAestheticKey) : void 0;
7061
7056
  return /* @__PURE__ */ w("g", {
7062
7057
  transform: `translate(${t.x}, ${t.y})`,
7063
7058
  ...a,
@@ -7069,20 +7064,20 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7069
7064
  isHitTestable: i
7070
7065
  })]
7071
7066
  });
7072
- }, Lp = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ s(M, { children: e.map((r) => {
7067
+ }, Tp = ({ formattedAxes: e, tickRects: t }) => /* @__PURE__ */ s(M, { children: e.map((r) => {
7073
7068
  if (r.geometry !== "linear") return null;
7074
7069
  const n = t[r.position];
7075
- return !n || !r.isVisible ? null : /* @__PURE__ */ s(Bp, {
7070
+ return !n || !r.isVisible ? null : /* @__PURE__ */ s(Cp, {
7076
7071
  formattedAxis: r,
7077
7072
  rect: n
7078
7073
  }, r.scaleAestheticKey);
7079
- }) }), Np = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Mp, {
7074
+ }) }), Lp = ({ formattedAxes: e, labelRects: t }) => /* @__PURE__ */ s(Ip, {
7080
7075
  axes: e.filter((r) => r.geometry === "linear"),
7081
7076
  rects: t
7082
7077
  }), wa = {
7083
7078
  strokeDashoffset: "0",
7084
7079
  strokeLinecap: "round"
7085
- }, Ft = (e, t) => e.gridLine[t]().resolve(), Op = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7080
+ }, Ft = (e, t) => e.gridLine[t]().resolve(), Np = ({ axes: e, panelBorderSizes: t, panelFrameRect: r, panelRect: n }) => {
7086
7081
  const o = L(), i = Ne(), a = I(Ft, o, "x"), l = I(Ft, o, "y"), c = n.x - r.x, d = n.y - r.y;
7087
7082
  return /* @__PURE__ */ s("svg", {
7088
7083
  "data-testid": "grid",
@@ -7095,7 +7090,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7095
7090
  if (u.geometry !== "linear" || !u.gridVisible) return null;
7096
7091
  const h = u.position === "bottom" || u.position === "top", v = Ae(u.scaleAestheticKey) === "x" ? a : l, f = ue(v.dashArray, v.strokeWidth);
7097
7092
  return /* @__PURE__ */ s("g", { children: u.ticks.map((g, m) => {
7098
- const p = Hp(h, g.position);
7093
+ const p = Op(h, g.position);
7099
7094
  if (p !== null && t[p] > 0) return null;
7100
7095
  const x = h ? g.position : 1 - g.position;
7101
7096
  let y;
@@ -7136,7 +7131,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7136
7131
  }) }, u.scaleAestheticKey);
7137
7132
  })
7138
7133
  });
7139
- }, Hp = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Dp = ({ sizes: e, panelFrameRect: t }) => {
7134
+ }, Op = (e, t) => t <= 0 ? e ? "left" : "bottom" : t >= 1 ? e ? "right" : "top" : null, Hp = ({ sizes: e, panelFrameRect: t }) => {
7140
7135
  const r = D((i) => i.coordSystem.type === "polar"), n = I(Co, L());
7141
7136
  if (r) return null;
7142
7137
  const o = ls(n, {
@@ -7153,7 +7148,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7153
7148
  height: t.height,
7154
7149
  style: { overflow: "visible" },
7155
7150
  children: o.map((i, a) => /* @__PURE__ */ s("path", {
7156
- d: Fp(i.segments),
7151
+ d: Dp(i.segments),
7157
7152
  fill: "none",
7158
7153
  stroke: i.stroke,
7159
7154
  strokeDasharray: ue(i.dashArray, i.strokeWidth),
@@ -7161,7 +7156,7 @@ var Zf = (e, t, r, n) => t !== "comment" ? r : To(r, 140, (o) => e.measureText(o
7161
7156
  ...wa
7162
7157
  }, a))
7163
7158
  });
7164
- }, Fp = (e) => e.map((t) => {
7159
+ }, Dp = (e) => e.map((t) => {
7165
7160
  switch (t.type) {
7166
7161
  case "move":
7167
7162
  return `M ${t.x} ${t.y}`;
@@ -7190,10 +7185,10 @@ var Sa = (e, t) => {
7190
7185
  angleFor: (c) => Ws(c, i, a),
7191
7186
  radiusNormFor: (c) => o + c * (1 - o)
7192
7187
  };
7193
- }, Gp = 16, Wp = ({ formattedAxes: e, panelRect: t }) => {
7188
+ }, Fp = 16, Gp = ({ formattedAxes: e, panelRect: t }) => {
7194
7189
  const r = I(on, L()), n = Ne(), o = Sa(t, e);
7195
7190
  if (!o) return null;
7196
- const { circle: i, circularAxis: a, radialAxis: l, startAngle: c, angleFor: d, radiusNormFor: u } = o, h = Up(l, u, i.radius), v = (f) => r(Ae(f.scaleAestheticKey));
7191
+ const { circle: i, circularAxis: a, radialAxis: l, startAngle: c, angleFor: d, radiusNormFor: u } = o, h = Wp(l, u, i.radius), v = (f) => r(Ae(f.scaleAestheticKey));
7197
7192
  return /* @__PURE__ */ w("svg", {
7198
7193
  x: t.x,
7199
7194
  y: t.y,
@@ -7214,7 +7209,7 @@ var Sa = (e, t) => {
7214
7209
  return /* @__PURE__ */ s(uo, {
7215
7210
  scaleAestheticKey: a.scaleAestheticKey,
7216
7211
  tickIndex: g,
7217
- placement: ho(p, Vp(m)),
7212
+ placement: ho(p, Up(m)),
7218
7213
  label: f.formattedLabel,
7219
7214
  labelStyle: v(a),
7220
7215
  isHitTestable: n
@@ -7233,7 +7228,7 @@ var Sa = (e, t) => {
7233
7228
  cursor: "pointer",
7234
7229
  children: a
7235
7230
  }) : a;
7236
- }, Up = (e, t, r) => {
7231
+ }, Wp = (e, t, r) => {
7237
7232
  if (!e) return [];
7238
7233
  const n = [];
7239
7234
  let o = Number.NEGATIVE_INFINITY;
@@ -7241,7 +7236,7 @@ var Sa = (e, t) => {
7241
7236
  const l = t(a.position);
7242
7237
  if (l <= 0) continue;
7243
7238
  const c = l * r;
7244
- c - o < Gp || (n.push({
7239
+ c - o < Fp || (n.push({
7245
7240
  tick: a,
7246
7241
  tickIndex: i,
7247
7242
  radiusNorm: l
@@ -7254,10 +7249,10 @@ var Sa = (e, t) => {
7254
7249
  textAnchor: t,
7255
7250
  dominantBaseline: "central",
7256
7251
  transform: void 0
7257
- }), Vp = (e) => {
7252
+ }), Up = (e) => {
7258
7253
  const t = Math.sin(e);
7259
7254
  return Math.abs(t) < 0.01 ? "middle" : t > 0 ? "start" : "end";
7260
- }, zp = ({ formattedAxes: e, panelRect: t }) => {
7255
+ }, Vp = ({ formattedAxes: e, panelRect: t }) => {
7261
7256
  const r = L(), n = Ne(), o = I(Ft, r, "y"), i = I(Ft, r, "x"), a = Sa(t, e);
7262
7257
  if (!a) return null;
7263
7258
  const { circle: l, circularAxis: c, radialAxis: d, innerRadius: u, angleFor: h, radiusNormFor: v } = a;
@@ -7328,7 +7323,7 @@ var Sa = (e, t) => {
7328
7323
  "data-testid": "grid-line-hit-area"
7329
7324
  })]
7330
7325
  }) : o;
7331
- }, jp = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: i, panelRect: a }) => {
7326
+ }, zp = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, isDimmed: n, dimStyle: o, formattingLocale: i, panelRect: a }) => {
7332
7327
  const l = Pe(), c = Sh(e.id), { colorScheme: d } = te(), u = G(e), h = l(e.geom, t.type);
7333
7328
  if (h === null) return null;
7334
7329
  const v = qt(h.render);
@@ -7349,7 +7344,7 @@ var Sa = (e, t) => {
7349
7344
  })
7350
7345
  });
7351
7346
  };
7352
- function Yp({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7347
+ function jp({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7353
7348
  if (e?.getOverlayAnchor === void 0 || n.length === 0) return [];
7354
7349
  const o = [];
7355
7350
  for (const { observation: i, observationIndex: a } of n) {
@@ -7366,8 +7361,8 @@ function Yp({ renderer: e, layer: t, coordSystem: r, candidates: n }) {
7366
7361
  }
7367
7362
  return o;
7368
7363
  }
7369
- var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: i, panelRect: a, formattingLocale: l }) => {
7370
- const c = D((S) => S.config.numberFormat), d = b(() => Yp({
7364
+ var Yp = 4, Qp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n, coordSystem: o, shouldAnimateTransitions: i, panelRect: a, formattingLocale: l }) => {
7365
+ const c = D((S) => S.config.numberFormat), d = b(() => jp({
7371
7366
  renderer: e,
7372
7367
  layer: t,
7373
7368
  coordSystem: o,
@@ -7402,7 +7397,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7402
7397
  };
7403
7398
  y = e.renderHighlight ? e.renderHighlight(S) : x.fn(S);
7404
7399
  }
7405
- return /* @__PURE__ */ w(xa, { children: [y, d.map(({ observation: S, observationIndex: k, anchor: C }) => /* @__PURE__ */ s(Xp, {
7400
+ return /* @__PURE__ */ w(xa, { children: [y, d.map(({ observation: S, observationIndex: k, anchor: C }) => /* @__PURE__ */ s(Kp, {
7406
7401
  observation: S,
7407
7402
  anchor: C,
7408
7403
  panelRect: a,
@@ -7413,8 +7408,8 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7413
7408
  formatYValue: g,
7414
7409
  labelStyle: p.observation.outside,
7415
7410
  familyDefault: m.familyDefault
7416
- }, qp(S, k)))] });
7417
- }, Xp = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: i, readSegmentY: a, formatYValue: l, labelStyle: c, familyDefault: d }) => {
7411
+ }, Xp(S, k)))] });
7412
+ }, Kp = ({ observation: e, anchor: t, panelRect: r, fill: n, symbol: o, dotRadius: i, readSegmentY: a, formatYValue: l, labelStyle: c, familyDefault: d }) => {
7418
7413
  const u = Te(), h = Io(t.x), v = Mo(t.y), f = a(e) ?? null, g = f !== null ? l(f, e) : null, m = b(() => {
7419
7414
  if (g === null) return null;
7420
7415
  const p = u.measureText(g, ee(c, d));
@@ -7437,7 +7432,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7437
7432
  "data-testid": "highlight-overlay-dot"
7438
7433
  }), g !== null && m !== null && /* @__PURE__ */ s(ba, {
7439
7434
  x: h * r.width,
7440
- y: v * r.height - i - Qp - m.height / 2,
7435
+ y: v * r.height - i - Yp - m.height / 2,
7441
7436
  width: m.width,
7442
7437
  height: m.height,
7443
7438
  text: g,
@@ -7446,10 +7441,10 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7446
7441
  position: "outside",
7447
7442
  coordType: "cartesian"
7448
7443
  })] });
7449
- }, qp = (e, t) => {
7444
+ }, Xp = (e, t) => {
7450
7445
  const r = e[ne.group];
7451
7446
  return `${String(r ?? "")}\0${t}`;
7452
- }, Jp = ({ layer: e, coordSystem: t, panelRect: r }) => {
7447
+ }, qp = ({ layer: e, coordSystem: t, panelRect: r }) => {
7453
7448
  const { primary: n, group: o, related: i } = ct(ie((h) => ({
7454
7449
  primary: h.hover.primary,
7455
7450
  group: h.hover.group,
@@ -7475,7 +7470,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7475
7470
  colorScheme: l,
7476
7471
  styleReaders: c
7477
7472
  });
7478
- }, Zp = (e) => {
7473
+ }, Jp = (e) => {
7479
7474
  const t = G(e);
7480
7475
  return b(() => {
7481
7476
  const [r] = e.data;
@@ -7489,7 +7484,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7489
7484
  filter: Vo(Ds(n))
7490
7485
  };
7491
7486
  }, [e, t]);
7492
- }, $p = "var(--to1jkx0)", _p = "var(--to1jkx1)", em = "to1jkx2", tm = "to1jkx3", rm = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7487
+ }, Zp = "var(--to1jkx0)", $p = "var(--to1jkx1)", _p = "to1jkx2", em = "to1jkx3", tm = ({ shouldAnimateTransitions: e, panelRect: t, formattingLocale: r }) => {
7493
7488
  const { layers: n, coordSystem: o } = D(ie((i) => ({
7494
7489
  layers: i.layers,
7495
7490
  coordSystem: i.coordSystem
@@ -7499,30 +7494,30 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7499
7494
  y: t.y,
7500
7495
  width: t.width,
7501
7496
  height: t.height,
7502
- className: em,
7497
+ className: _p,
7503
7498
  "data-testid": "geom-layers",
7504
- ...hv(),
7505
- children: n.map((i) => /* @__PURE__ */ w(Vt, { children: [/* @__PURE__ */ s(im, {
7499
+ ...uv(),
7500
+ children: n.map((i) => /* @__PURE__ */ w(Vt, { children: [/* @__PURE__ */ s(om, {
7506
7501
  layer: i,
7507
7502
  coordSystem: o,
7508
7503
  shouldAnimateTransitions: e,
7509
7504
  panelRect: t,
7510
7505
  formattingLocale: r
7511
- }), /* @__PURE__ */ s(Jp, {
7506
+ }), /* @__PURE__ */ s(qp, {
7512
7507
  layer: i,
7513
7508
  coordSystem: o,
7514
7509
  panelRect: t
7515
- })] }, `${i.id}-${nm(o)}`))
7510
+ })] }, `${i.id}-${rm(o)}`))
7516
7511
  });
7517
- }, nm = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, om = (e) => Fr({
7518
- ...e.opacity === void 0 ? {} : { [$p]: String(e.opacity) },
7519
- ...e.filter === void 0 ? {} : { [_p]: e.filter }
7520
- }), im = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
7512
+ }, rm = (e) => e.type === "cartesian" ? `cartesian-${e.mainAxis}` : e.type, nm = (e) => Fr({
7513
+ ...e.opacity === void 0 ? {} : { [Zp]: String(e.opacity) },
7514
+ ...e.filter === void 0 ? {} : { [$p]: e.filter }
7515
+ }), om = ({ layer: e, coordSystem: t, shouldAnimateTransitions: r, panelRect: n, formattingLocale: o }) => {
7521
7516
  const i = Pe(), a = b(() => i(e.geom, t.type), [
7522
7517
  i,
7523
7518
  e,
7524
7519
  t
7525
- ]), l = e.highlight, c = Zp(e), { colorScheme: d } = te(), u = {
7520
+ ]), l = e.highlight, c = Jp(e), { colorScheme: d } = te(), u = {
7526
7521
  layer: e,
7527
7522
  coordSystem: t,
7528
7523
  shouldAnimateTransitions: r,
@@ -7532,10 +7527,10 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7532
7527
  styleReaders: G(e)
7533
7528
  }, h = a ? qt(a.render) : null, v = e.spatialKind === "render-hit-test", f = c.opacity !== void 0 || c.filter !== void 0;
7534
7529
  return /* @__PURE__ */ w("g", {
7535
- className: f ? tm : void 0,
7536
- style: f ? om(c) : void 0,
7530
+ className: f ? em : void 0,
7531
+ style: f ? nm(c) : void 0,
7537
7532
  children: [
7538
- /* @__PURE__ */ s(jp, {
7533
+ /* @__PURE__ */ s(zp, {
7539
7534
  layer: e,
7540
7535
  coordSystem: t,
7541
7536
  shouldAnimateTransitions: r,
@@ -7552,7 +7547,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7552
7547
  render: h.fn,
7553
7548
  input: u
7554
7549
  }),
7555
- l !== null && /* @__PURE__ */ s(Kp, {
7550
+ l !== null && /* @__PURE__ */ s(Qp, {
7556
7551
  renderer: a,
7557
7552
  layer: e,
7558
7553
  matchedLayer: l.composition.matchedLayer,
@@ -7564,13 +7559,13 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7564
7559
  })
7565
7560
  ]
7566
7561
  });
7567
- }, am = "_17uhij30", sm = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: i, axisLabelRects: a, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: h, showAnnotations: v }) => {
7562
+ }, im = "_17uhij30", am = ({ formattedAxes: e, plotRect: t, panelBorder: r, panelFrameRect: n, panelRect: o, axisRects: i, axisLabelRects: a, shouldAnimateTransitions: l, formattingLocale: c, plotBottomY: d, isFooterChromeReserved: u, isEditable: h, showAnnotations: v }) => {
7568
7563
  const f = H(null);
7569
- yf(f);
7570
- const g = me("Grid", Op), m = me("AxisTicks", Lp), p = me("AxisLabel", Np), x = b(() => Sr(n, t), [n, t]), y = b(() => Sr(o, t), [o, t]), S = b(() => go(i, t), [i, t]), k = b(() => go(a, t), [a, t]);
7564
+ Af(f);
7565
+ const g = me("Grid", Np), m = me("AxisTicks", Tp), p = me("AxisLabel", Lp), x = b(() => Sr(n, t), [n, t]), y = b(() => Sr(o, t), [o, t]), S = b(() => go(i, t), [i, t]), k = b(() => go(a, t), [a, t]);
7571
7566
  return /* @__PURE__ */ w("svg", {
7572
7567
  ref: f,
7573
- className: am,
7568
+ className: im,
7574
7569
  width: t.width,
7575
7570
  height: t.height,
7576
7571
  style: { transform: `translate(${t.x}px, ${t.y}px)` },
@@ -7590,11 +7585,11 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7590
7585
  formattedAxes: e,
7591
7586
  labelRects: k
7592
7587
  }),
7593
- /* @__PURE__ */ s(zp, {
7588
+ /* @__PURE__ */ s(Vp, {
7594
7589
  formattedAxes: e,
7595
7590
  panelRect: y
7596
7591
  }),
7597
- /* @__PURE__ */ s(tf, { panelRect: y }),
7592
+ /* @__PURE__ */ s(ef, { panelRect: y }),
7598
7593
  v && /* @__PURE__ */ w(M, { children: [/* @__PURE__ */ s(ao, {
7599
7594
  panelRect: y,
7600
7595
  zOrder: "background"
@@ -7602,27 +7597,27 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7602
7597
  panelRect: y,
7603
7598
  zOrder: "background"
7604
7599
  })] }),
7605
- /* @__PURE__ */ s(Dp, {
7600
+ /* @__PURE__ */ s(Hp, {
7606
7601
  sizes: r,
7607
7602
  panelFrameRect: x
7608
7603
  }),
7609
- /* @__PURE__ */ s(rm, {
7604
+ /* @__PURE__ */ s(tm, {
7610
7605
  shouldAnimateTransitions: l,
7611
7606
  panelRect: y,
7612
7607
  formattingLocale: c
7613
7608
  }),
7614
- /* @__PURE__ */ s(Wp, {
7609
+ /* @__PURE__ */ s(Gp, {
7615
7610
  formattedAxes: e,
7616
7611
  panelRect: y
7617
7612
  }),
7618
- /* @__PURE__ */ s(pp, {
7613
+ /* @__PURE__ */ s(fp, {
7619
7614
  panelRect: y,
7620
7615
  formattingLocale: c,
7621
7616
  plotBottomY: d,
7622
7617
  isFooterChromeReserved: u
7623
7618
  }),
7624
7619
  v && /* @__PURE__ */ w(M, { children: [
7625
- /* @__PURE__ */ s(Lf, {
7620
+ /* @__PURE__ */ s(Tf, {
7626
7621
  panelRect: y,
7627
7622
  isEditable: h
7628
7623
  }),
@@ -7634,15 +7629,15 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7634
7629
  panelRect: y,
7635
7630
  zOrder: "foreground"
7636
7631
  }),
7637
- /* @__PURE__ */ s(Pf, {
7632
+ /* @__PURE__ */ s(Rf, {
7638
7633
  panelRect: y,
7639
7634
  isEditable: h
7640
7635
  }),
7641
- /* @__PURE__ */ s(Yf, { panelRect: y }),
7642
- /* @__PURE__ */ s(ap, { panelRect: y }),
7643
- /* @__PURE__ */ s($f, { panelRect: y })
7636
+ /* @__PURE__ */ s(jf, { panelRect: y }),
7637
+ /* @__PURE__ */ s(ip, { panelRect: y }),
7638
+ /* @__PURE__ */ s(Zf, { panelRect: y })
7644
7639
  ] }),
7645
- /* @__PURE__ */ s(mf, { panelRect: y })
7640
+ /* @__PURE__ */ s(pf, { panelRect: y })
7646
7641
  ]
7647
7642
  });
7648
7643
  }, Sr = (e, t) => ({
@@ -7654,7 +7649,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7654
7649
  const r = {};
7655
7650
  for (const [n, o] of Object.entries(e)) r[n] = Sr(o, t);
7656
7651
  return r;
7657
- }, lm = (e) => {
7652
+ }, sm = (e) => {
7658
7653
  let t, r;
7659
7654
  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), {
7660
7655
  width: vo(t, "width"),
@@ -7663,7 +7658,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7663
7658
  }, vo = (e, t) => {
7664
7659
  if (e <= 0 || Number.isNaN(e) || !Number.isFinite(e)) throw new Ua({ message: `Expected ${t} to be a positive, finite number, but got ${e}.` });
7665
7660
  return e;
7666
- }, cm = ({ sizing: e, onResize: t, children: r }) => {
7661
+ }, lm = ({ sizing: e, onResize: t, children: r }) => {
7667
7662
  const n = Mi({ onResize: t }), o = H(!1);
7668
7663
  if (F(() => {
7669
7664
  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.`)));
@@ -7673,7 +7668,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7673
7668
  n.width,
7674
7669
  n.height
7675
7670
  ]), e.mode === "keepAspectRatio") {
7676
- const { intrinsicSize: a, canRender: l, outerStyles: c, innerStyles: d } = dm(e, n.width, !n.isDefault);
7671
+ const { intrinsicSize: a, canRender: l, outerStyles: c, innerStyles: d } = cm(e, n.width, !n.isDefault);
7677
7672
  return /* @__PURE__ */ s("div", {
7678
7673
  ref: n.setElement,
7679
7674
  style: c,
@@ -7709,8 +7704,8 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7709
7704
  height: n.height
7710
7705
  })
7711
7706
  });
7712
- }, dm = (e, t, r) => {
7713
- const n = lm(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
7707
+ }, cm = (e, t, r) => {
7708
+ const n = sm(e), o = t > 0 && n.width > 0 ? t / n.width : 1;
7714
7709
  return {
7715
7710
  intrinsicSize: n,
7716
7711
  canRender: r,
@@ -7725,7 +7720,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7725
7720
  height: n.height
7726
7721
  }
7727
7722
  };
7728
- }, um = { mode: "responsive" }, cr = {
7723
+ }, dm = { mode: "responsive" }, cr = {
7729
7724
  headerSize: {
7730
7725
  width: 0,
7731
7726
  height: 0
@@ -7734,7 +7729,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7734
7729
  width: 0,
7735
7730
  height: 0
7736
7731
  }
7737
- }, hm = () => {
7732
+ }, um = () => {
7738
7733
  const [e, t] = j(null), [r, n] = j(null), [o, i] = j(cr);
7739
7734
  return F(() => {
7740
7735
  const a = () => {
@@ -7745,7 +7740,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7745
7740
  width: r.offsetWidth,
7746
7741
  height: r.offsetHeight
7747
7742
  } : cr.footerSize;
7748
- i((u) => gm(u, {
7743
+ i((u) => hm(u, {
7749
7744
  headerSize: c,
7750
7745
  footerSize: d
7751
7746
  }) ? {
@@ -7761,7 +7756,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7761
7756
  footerRef: n,
7762
7757
  measurements: o
7763
7758
  };
7764
- }, gm = (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, vm = () => null, fm = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: i }) => {
7759
+ }, hm = (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, gm = () => null, vm = ({ graphChrome: e, isEditable: t, mode: r, style: n, contentRef: o, children: i }) => {
7765
7760
  const { themeClass: a, inlineVarsStyle: l } = tn(), c = e.strokeWidth, d = c > 0 ? e.stroke : void 0, u = Math.max(0, e.cornerRadius), h = u === 0 ? 0 : u + c, v = b(() => ({
7766
7761
  ...n,
7767
7762
  borderRadius: `${h}px`,
@@ -7798,21 +7793,21 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7798
7793
  children: i
7799
7794
  })
7800
7795
  });
7801
- }, lA = (e) => /* @__PURE__ */ s(Nu, {
7796
+ }, sA = (e) => /* @__PURE__ */ s(Nu, {
7802
7797
  locale: jh(),
7803
- children: /* @__PURE__ */ s(pm, { ...e })
7804
- }), pm = ({ slots: e, sizing: t = um, onResize: r, ...n }) => /* @__PURE__ */ s(ou, { children: /* @__PURE__ */ s(zc, { children: /* @__PURE__ */ s(od, {
7798
+ children: /* @__PURE__ */ s(fm, { ...e })
7799
+ }), fm = ({ slots: e, sizing: t = dm, onResize: r, ...n }) => /* @__PURE__ */ s(ou, { children: /* @__PURE__ */ s(zc, { children: /* @__PURE__ */ s(od, {
7805
7800
  slots: e,
7806
- children: /* @__PURE__ */ s(cm, {
7801
+ children: /* @__PURE__ */ s(lm, {
7807
7802
  sizing: t,
7808
7803
  onResize: r,
7809
- children: ({ width: o, height: i }) => /* @__PURE__ */ s(mm, {
7804
+ children: ({ width: o, height: i }) => /* @__PURE__ */ s(pm, {
7810
7805
  width: o,
7811
7806
  height: i,
7812
7807
  ...n
7813
7808
  })
7814
7809
  })
7815
- }) }) }), mm = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
7810
+ }) }) }), pm = ({ width: e, height: t, animation: r, showTooltips: n = !0, mode: o = Re.readonly }) => {
7816
7811
  const i = Li(), a = $r(o), { axes: l, legends: c, layers: d, numberFormat: u, parsingLocale: h, annotations: v, coordSystem: f, headline: g, headlineConfig: m, content: p, overflowStrategy: x } = D(ie((se) => ({
7817
7812
  axes: se.guides.axes,
7818
7813
  legends: se.guides.legends.drawn,
@@ -7825,7 +7820,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7825
7820
  headlineConfig: se.config.headline,
7826
7821
  content: se.config.content,
7827
7822
  overflowStrategy: se.config.panel.overflow
7828
- }))), { intro: y, transitions: S } = bu(r, d), { headerRef: k, footerRef: C, measurements: E } = hm(), { formattingLocale: B, colorScheme: R } = te(), O = Le[a], T = O.editorSurface, [J, Z] = j(null), we = me("Header", Wg), Ce = me("Footer", Lg), ka = me("Legend", $v), Ea = me("Headline", lv), Ra = me("EditorSurface", vm), gn = b(() => bs({
7823
+ }))), { intro: y, transitions: S } = bu(r, d), { headerRef: k, footerRef: C, measurements: E } = um(), { formattingLocale: B, colorScheme: R } = te(), O = Le[a], T = O.editorSurface, [J, Z] = j(null), we = me("Header", Wg), Ce = me("Footer", Lg), ka = me("Legend", Zv), Ea = me("Headline", sv), Ra = me("EditorSurface", gm), gn = b(() => bs({
7829
7824
  legends: c,
7830
7825
  numberFormat: u,
7831
7826
  parsingLocale: h,
@@ -7849,7 +7844,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7849
7844
  h,
7850
7845
  B,
7851
7846
  i
7852
- ]), Pa = Te(), Se = L(), vn = I(Am, Se), fn = I(Co, Se), pn = I(an, Se), mn = I(ym, Se), Ca = I(xm, Se), Ba = I(bm, Se), Ia = I(wm, Se), { fontFamily: er, textScale: Ma, strokeWidth: tr, fill: Ta } = vn, An = b(() => di(R, {}, er), [R, er]), tt = b(() => ({
7847
+ ]), Pa = Te(), Se = L(), vn = I(mm, Se), fn = I(Co, Se), pn = I(an, Se), mn = I(Am, Se), Ca = I(ym, Se), Ba = I(xm, Se), Ia = I(bm, Se), { fontFamily: er, textScale: Ma, strokeWidth: tr, fill: Ta } = vn, An = b(() => di(R, {}, er), [R, er]), tt = b(() => ({
7853
7848
  width: Math.max(0, e - 2 * tr),
7854
7849
  height: Math.max(0, t - 2 * tr)
7855
7850
  }), [
@@ -7918,7 +7913,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7918
7913
  metrics: An,
7919
7914
  children: /* @__PURE__ */ s(Yh, { children: /* @__PURE__ */ s(lg, {
7920
7915
  panelRect: ae.panel,
7921
- children: /* @__PURE__ */ s(fm, {
7916
+ children: /* @__PURE__ */ s(vm, {
7922
7917
  graphChrome: vn,
7923
7918
  isEditable: T,
7924
7919
  mode: a,
@@ -7942,7 +7937,7 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7942
7937
  subtitleStyle: Ca,
7943
7938
  brandMark: Na
7944
7939
  }),
7945
- /* @__PURE__ */ s(sm, {
7940
+ /* @__PURE__ */ s(am, {
7946
7941
  formattedAxes: bn,
7947
7942
  plotRect: ae.plot,
7948
7943
  panelBorder: xn,
@@ -7994,10 +7989,10 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
7994
7989
  })
7995
7990
  })
7996
7991
  });
7997
- }, Am = (e) => e.graph().resolve(), ym = (e) => e.heading.h1().resolve(), xm = (e) => e.heading.h2().resolve(), bm = (e) => e.caption().resolve(), wm = (e) => ({
7992
+ }, mm = (e) => e.graph().resolve(), Am = (e) => e.heading.h1().resolve(), ym = (e) => e.heading.h2().resolve(), xm = (e) => e.caption().resolve(), bm = (e) => ({
7998
7993
  label: e.source().resolve(),
7999
7994
  link: e.source.link().resolve()
8000
- }), cA = (e) => {
7995
+ }), lA = (e) => {
8001
7996
  const t = U(Ho), r = Wr();
8002
7997
  return b(() => e || (t ? {
8003
7998
  commands: t.commands,
@@ -8015,25 +8010,25 @@ var Qp = 4, Kp = ({ renderer: e, layer: t, matchedLayer: r, overlayCandidates: n
8015
8010
  t,
8016
8011
  r
8017
8012
  ]);
8018
- }, dA = (e) => rl(e.subscribe, e.getScene, e.getScene), uA = () => {
8013
+ }, cA = (e) => rl(e.subscribe, e.getScene, e.getScene), dA = () => {
8019
8014
  const { commands: e } = te();
8020
8015
  return e;
8021
- }, hA = (e) => {
8016
+ }, uA = (e) => {
8022
8017
  if (e.altKey || !e.metaKey && !e.ctrlKey) return null;
8023
8018
  const t = e.key.toLowerCase();
8024
8019
  return t === "z" ? e.shiftKey ? "redo" : "undo" : t === "y" && e.ctrlKey && !e.shiftKey ? "redo" : null;
8025
- }, gA = () => {
8020
+ }, hA = () => {
8026
8021
  const { targetBoundaryStore: e } = te();
8027
8022
  return Ve(e, (t) => t.boundary);
8028
8023
  };
8029
8024
  export {
8030
- Xm as $,
8025
+ Km as $,
8031
8026
  jo as $t,
8032
- oA as A,
8033
- Km as At,
8027
+ nA as A,
8028
+ Qm as At,
8034
8029
  $i as B,
8035
8030
  Pe as Bt,
8036
- iA as C,
8031
+ oA as C,
8037
8032
  Ii as Ct,
8038
8033
  Dt as D,
8039
8034
  xr as Dt,
@@ -8041,112 +8036,112 @@ export {
8041
8036
  je as Et,
8042
8037
  Zg as F,
8043
8038
  wd as Ft,
8044
- tA as G,
8039
+ eA as G,
8045
8040
  at as Gt,
8046
8041
  cg as H,
8047
8042
  Te as Ht,
8048
8043
  ta as I,
8049
- Ym as It,
8044
+ jm as It,
8050
8045
  dt as J,
8051
- zm as Jt,
8046
+ Vm as Jt,
8052
8047
  qi as K,
8053
8048
  kc as Kt,
8054
8049
  Wg as L,
8055
8050
  Q as Lt,
8056
8051
  ca as M,
8057
- Qm as Mt,
8052
+ Ym as Mt,
8058
8053
  dn as N,
8059
8054
  Zd as Nt,
8060
8055
  Ye as O,
8061
8056
  _d as Ot,
8062
- cv as P,
8057
+ lv as P,
8063
8058
  Jd as Pt,
8064
- qm as Q,
8059
+ Xm as Q,
8065
8060
  Ln as Qt,
8066
8061
  Lg as R,
8067
8062
  hd as Rt,
8068
- df as S,
8063
+ cf as S,
8069
8064
  cu as St,
8070
8065
  Ne as T,
8071
8066
  ou as Tt,
8072
- eA as U,
8067
+ _m as U,
8073
8068
  Gc as Ut,
8074
8069
  Pg as V,
8075
8070
  zc as Vt,
8076
8071
  Ie as W,
8077
8072
  I as Wt,
8078
- Zm as X,
8073
+ Jm as X,
8079
8074
  Qt as Xt,
8080
- $m as Y,
8081
- Um as Yt,
8082
- Jm as Z,
8075
+ Zm as Y,
8076
+ Wm as Yt,
8077
+ qm as Z,
8083
8078
  Be as Zt,
8084
- Sf as _,
8079
+ wf as _,
8085
8080
  Re as _t,
8086
- cA as a,
8081
+ lA as a,
8087
8082
  Ge as an,
8088
8083
  Ku as at,
8089
- cf as b,
8084
+ lf as b,
8090
8085
  gu as bt,
8091
- Op as c,
8086
+ Np as c,
8092
8087
  L as cn,
8093
8088
  Qu as ct,
8094
- jf as d,
8089
+ zf as d,
8095
8090
  Ho as dn,
8096
8091
  ju as dt,
8097
8092
  fr as en,
8098
8093
  Xh as et,
8099
- sA as f,
8094
+ aA as f,
8100
8095
  te as fn,
8101
8096
  Oi as ft,
8102
- Cf as g,
8097
+ Pf as g,
8103
8098
  _r as gt,
8104
- Hf as h,
8099
+ Of as h,
8105
8100
  Li as ht,
8106
- dA as i,
8101
+ cA as i,
8107
8102
  Tt as in,
8108
8103
  ct as it,
8109
8104
  cn as j,
8110
8105
  $d as jt,
8111
- nA as k,
8106
+ rA as k,
8112
8107
  Ar as kt,
8113
8108
  Ft as l,
8114
8109
  Do as ln,
8115
8110
  Yu as lt,
8116
- Df as m,
8111
+ Hf as m,
8117
8112
  cl as mn,
8118
8113
  Nu as mt,
8119
- hA as n,
8114
+ uA as n,
8120
8115
  ml as nn,
8121
8116
  jh as nt,
8122
- lA as o,
8117
+ sA as o,
8123
8118
  ft as on,
8124
8119
  Xu as ot,
8125
- aA as p,
8126
- Gm as pn,
8120
+ iA as p,
8121
+ Fm as pn,
8127
8122
  xt as pt,
8128
- _m as q,
8129
- Vm as qt,
8130
- uA as r,
8131
- Wm as rn,
8123
+ $m as q,
8124
+ Um as qt,
8125
+ dA as r,
8126
+ Gm as rn,
8132
8127
  fh as rt,
8133
- pm as s,
8128
+ fm as s,
8134
8129
  G as sn,
8135
8130
  qn as st,
8136
- gA as t,
8131
+ hA as t,
8137
8132
  ye as tn,
8138
8133
  Qh as tt,
8139
- op as u,
8134
+ np as u,
8140
8135
  D as un,
8141
8136
  tn as ut,
8142
8137
  St as v,
8143
8138
  Le as vt,
8144
- _v as w,
8139
+ $v as w,
8145
8140
  iu as wt,
8146
- lf as x,
8141
+ sf as x,
8147
8142
  uu as xt,
8148
- uf as y,
8143
+ df as y,
8149
8144
  vu as yt,
8150
- rA as z,
8151
- jm as zt
8145
+ tA as z,
8146
+ zm as zt
8152
8147
  };