@graphysdk/react-renderer 1.9.0-beta.1791474469645 → 1.9.0-beta.1791527697963

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.
package/dist/editable.mjs CHANGED
@@ -1,6 +1,6 @@
1
- import { $ as $r, $t as Wr, At as ee, Bt as Ur, C as ki, Ct as Li, D as Pi, E as Ii, Et as ue, F as Ei, G as $, H as Oi, I as L, J as Mi, Jt as Ni, K as Ri, Mt as Di, N as _i, O as Kr, P as Fi, Q as dn, Qt as qr, S as zi, T as Le, Tt as Bi, U as Hi, Ut as Gi, W as J, X as U, Xt as Vi, Y as $i, Yt as Xr, Z as un, _ as Ne, _n as B, _t as Wi, an as Ui, b as jr, c as Zr, cn as Ki, ct as qi, d as Xi, dn as Yr, dt as ie, en as ce, et as hn, f as ji, g as Jr, gt as Zi, h as pn, hn as R, i as Qr, it as ea, jt as Yi, k as yt, kt as je, l as Ji, lt as _n, m as Qi, n as le, nn as Ge, nt as el, o as tl, on as nl, ot as rl, p as ta, pn as X, pt as St, q as Fn, qt as al, r as K, rt as na, st as ol, t as il, tn as mn, tt as Ct, u as ll, ut as sl, v as cl, vt as I, wt as dl, x as ul, xt as Re, y as hl, yn as pl, yt as ml, z as gl, zt as vl } from "./history-chords-BJe5GL-a.js";
1
+ import { $ as $r, $t as Wr, At as ee, Bt as Ur, C as ki, Ct as Li, D as Pi, E as Ii, Et as ue, F as Ei, G as V, H as Oi, I as P, J as Mi, Jt as Ni, K as Ri, Mt as Di, N as _i, O as Kr, P as Fi, Q as dn, Qt as qr, S as zi, T as Le, Tt as Bi, U as Hi, Ut as Gi, W as J, X as U, Xt as Vi, Y as $i, Yt as Xr, Z as un, _ as Ne, _n as B, _t as Wi, an as Ui, b as jr, c as Zr, cn as Ki, ct as qi, d as Xi, dn as Yr, dt as ie, en as ce, et as hn, f as ji, g as Jr, gt as Zi, h as pn, hn as N, i as Qr, it as ea, jt as Yi, k as yt, kt as je, l as Ji, lt as _n, m as Qi, n as le, nn as Ge, nt as el, o as tl, on as nl, ot as rl, p as ta, pn as X, pt as St, q as Fn, qt as al, r as K, rt as na, st as ol, t as il, tn as mn, tt as Ct, u as ll, ut as sl, v as cl, vt as E, wt as dl, x as ul, xt as Re, y as hl, yn as pl, yt as ml, z as gl, zt as vl } from "./history-chords-Bo4ML6gC.js";
2
2
  import { ARROW_DEFAULTS as fl, ARROW_STICKER_DECLARATIONS as bl, ARROW_STROKE_WIDTHS_PX as Ft, AddAnnotationCommand as we, AddHighlightCommand as yl, BORDER_RADIUS_TOKENS as zn, COMBO_TYPES as Bn, CONSTANT_VARIABLES as Sl, DASH_PRESETS as Cl, DEFAULT_BAR_CORNER_RADIUS as xl, DEFAULT_GEOM_COLOR as wl, DEFAULT_POINT_SIZE_PX as Tl, DEFAULT_STROKE_WIDTH_PX as Al, DIFFERENCE_ARROW_DEFAULTS as ra, DIFFERENCE_ARROW_SIZE_DECLARATIONS as Hn, InternalError as kl, MAX_BAR_WIDTH_FRACTION as Ll, MIN_BAR_WIDTH_FRACTION as Pl, MoveAnnotationCommand as Il, RESTING_HOVER_STATE as gn, RemoveAnnotationCommand as We, RemoveHighlightCommand as El, SHAPE_DEFAULTS as Ol, SequenceCommand as Ml, SetAxisLabelCommand as aa, SetAxisPositionCommand as oa, SetAxisTickModeCommand as ia, SetAxisTicksVisibilityCommand as Nl, SetAxisVisibilityCommand as Rl, SetBarCornerRadiusCommand as Dl, SetBarWidthCommand as _l, SetChartTypeCommand as la, SetContentCaptionCommand as sa, SetContentSourceCommand as Fl, SetContentSubtitleCommand as ca, SetContentTitleCommand as da, SetDataLabelsFormatCommand as ua, SetDifferenceArrowStyleCommand as zl, SetGridLineStyleCommand as Bl, SetGridLineWidthCommand as Hl, SetGridVisibilityCommand as Gl, SetHeadlineCompareWithCommand as Vl, SetHeadlinePositionCommand as $l, SetHeadlineShowCommand as Gn, SetHeadlineSizeCommand as Wl, SetHighlightDimStyleCommand as Ul, SetLayerYScaleTypeCommand as Kl, SetLegendAlignCommand as ql, SetLegendDisplayCommand as Xl, SetLegendPlacementCommand as jl, SetLegendPositionCommand as Zl, SetLineCurveCommand as Yl, SetLineMissingValuesCommand as Jl, SetLineWidthCommand as Vn, SetMappingCommand as Ql, SetNumberFormatAbbreviationCommand as es, SetNumberFormatDecimalsCommand as $n, SetObservationsColorCommand as ts, SetPointSizeCommand as ns, SetPolarInnerRadiusCommand as rs, SetPolarStartAngleCommand as as, SetRuleLabelCommand as os, SetRuleValueCommand as is, SetScaleDomainCommand as Ie, SetScaleReverseCommand as ls, SetScaleTransformCommand as ha, SetStatLineCommand as ss, SetStyleRuleCommand as Oe, TEXT_ANNOTATION_DEFAULTS as cs, TEXT_ANNOTATION_FADE_ALPHA as ds, ToggleCategoryLabelsCommand as pa, ToggleContentVisibilityCommand as xt, ToggleDataLabelsCommand as ma, ToggleGoalLineCommand as us, ToggleLineFillCommand as hs, ToggleLinePointsCommand as ps, ToggleStackTotalsCommand as ga, UpdateAnnotationCommand as he, alignUnitFractions as ms, areAnchorsEqual as va, areEditTargetsEqual as fa, areEndpointsComparable as gs, buildEditMenuTriggerRegion as vs, buildLayerStyleAddress as fs, buildObservationPredicate as bs, buildObservationsTarget as wt, buildObservationsTargetAtValue as ba, canAnchorDirectLabels as ys, canBecomeCombo as Ss, canBecomeHeatmap as Cs, clampAnnotationTranslation as xs, combineKindStyleDeclarations as Wn, computeArrow as ya, createObservationAnchorBuilder as ws, createObservationAnchorParser as Ts, createStyleResolver as As, createValueFormatter as Sa, createXValueReader as ks, filterLayersByGeoms as Ut, findAnnotation as Ls, findAverageLineLayer as Ps, findAxisGuide as Is, findCompanionLayers as Ca, findGoalLineLayer as Es, findHighlightsAtObservation as Os, findHostLayer as Ms, findLayerByGeom as xa, findLayerById as ve, findObservationAttachment as Ns, findStyleRule as Ae, findTrendLineLayer as Rs, formatDifferenceLabel as Ds, getBoundingRect as Kt, getGroupVariables as _s, getXBand as Fs, getYBand as zs, hasMainAxisBand as Bs, hasMultipleGroups as Hs, inferDefaultDifferenceArrowEndpoints as Gs, inferDifferenceArrowEndpoints as Vs, isComboChartType as Ee, isCompanionLayer as wa, isObservationAttachmentKind as $s, isPointWithinEditMenuTrigger as vn, isSafeUrl as Ws, isZeroAnchoredAxis as Ta, measureObservationsBoxes as Aa, projectAnchorToPanel as dt, readBroadestObservationsScope as Us, readChartType as ka, readComboLineLayerId as Ks, readCompanionRowsAtScopeKey as qs, readConstantValue as Xs, readEditTargetKey as Tt, readGeomColor as js, readHighlightDimStyle as Zs, readMainAxis as Ys, readMappableAesthetics as Js, readMappedVariable as Qs, readObservationIndex as La, readObservationsColorRoute as ec, readPaletteChoices as tc, readPresentedObservationsColor as nc, readReachableLevels as rc, readRowScopeKey as ac, readRowsAtScopeKey as oc, readScopeXVariable as ic, readStyleCoord as De, readStyleRulesBeneath as lc, readVariableName as At, resolveArrowAnnotationStyle as fn, resolveBarBandFraction as sc, resolveComparisonBasis as cc, resolveDifferenceArrowAnnotationStyle as dc, resolveEditOutlineStyle as uc, resolveObservationPoint as Pa, resolveObservationsTarget as Un, stepDifferenceArrowEndpoint as hc, toDashPreset as qt, toPaintColor as ut, toPanelCursor as kt } from "@graphysdk/viz-engine";
3
- import { Fragment as pc, createContext as _e, memo as Ia, useCallback as ae, useContext as ye, useEffect as z, useId as ke, useLayoutEffect as Me, useMemo as E, useRef as ne, useState as Q } from "react";
3
+ import { Fragment as pc, createContext as _e, memo as Ia, useCallback as ae, useContext as ye, useEffect as F, useId as ke, useLayoutEffect as Me, useMemo as O, useRef as ne, useState as Q } from "react";
4
4
  import { Fragment as q, jsx as r, jsxs as g } from "react/jsx-runtime";
5
5
  import { motion as mc } from "motion/react";
6
6
  import { useShallow as fe } from "zustand/react/shallow";
@@ -169,9 +169,7 @@ import './editable.css';var zc = {
169
169
  alignLabel: "المحاذاة",
170
170
  align: {
171
171
  auto: "تلقائي",
172
- start: "البداية",
173
- center: "الوسط",
174
- end: "النهاية"
172
+ center: "الوسط"
175
173
  },
176
174
  displayLabel: "النمط",
177
175
  display: {
@@ -969,9 +967,7 @@ import './editable.css';var zc = {
969
967
  alignLabel: "Alignment",
970
968
  align: {
971
969
  auto: "Auto",
972
- start: "Start",
973
- center: "Center",
974
- end: "End"
970
+ center: "Center"
975
971
  },
976
972
  displayLabel: "Style",
977
973
  display: {
@@ -1772,9 +1768,7 @@ import './editable.css';var zc = {
1772
1768
  alignLabel: "Alinhamento",
1773
1769
  align: {
1774
1770
  auto: "Automático",
1775
- start: "Início",
1776
- center: "Centro",
1777
- end: "Fim"
1771
+ center: "Centro"
1778
1772
  },
1779
1773
  displayLabel: "Estilo",
1780
1774
  display: {
@@ -2528,7 +2522,7 @@ import './editable.css';var zc = {
2528
2522
  focusWidth: "2px",
2529
2523
  shadow: "var(--graphy-editor-default-shadow)"
2530
2524
  }, za = _e(null), Ba = ({ labelId: e, controlId: t, children: n }) => {
2531
- const a = E(() => {
2525
+ const a = O(() => {
2532
2526
  let o = null;
2533
2527
  return {
2534
2528
  labelId: e,
@@ -2555,7 +2549,7 @@ var Va = "transparent", $a = (e) => e === "transparent" ? {
2555
2549
  background: e,
2556
2550
  border: `1px solid ${id.border}`
2557
2551
  }, dd = ({ title: e, colors: t, value: n, onChange: a, trailing: o, isClearable: i = !1, isDisabled: l, id: s, ariaLabel: c, ariaLabelledBy: h }) => {
2558
- const d = I(), u = Ce({
2552
+ const d = E(), u = Ce({
2559
2553
  id: s,
2560
2554
  ariaLabel: c,
2561
2555
  ariaLabelledBy: h
@@ -2635,7 +2629,7 @@ var ud = {
2635
2629
  align: "shift",
2636
2630
  fallbackAxisSide: "end"
2637
2631
  }, kd = ({ value: e, onChange: t, onCommit: n, popupAttributes: a, variant: o = "default" }) => {
2638
- const i = I(), l = Ze(), [s, c] = Q(!1), h = (p) => {
2632
+ const i = E(), l = Ze(), [s, c] = Q(!1), h = (p) => {
2639
2633
  c(p), p || n?.();
2640
2634
  }, d = e !== null && Vi(e) ? e : "#000000", u = Xr(d) ? d.toUpperCase() : "#000000";
2641
2635
  return /* @__PURE__ */ g(Y.Root, {
@@ -2699,7 +2693,7 @@ var ud = {
2699
2693
  }) })
2700
2694
  })]
2701
2695
  });
2702
- }, Cn = _e(null), W = () => {
2696
+ }, Cn = _e(null), $ = () => {
2703
2697
  const e = ye(Cn);
2704
2698
  if (!e) throw new Error("An editing section must sit inside an <EditorPanel.Root> bound to a graph — pass it a `handle`, or render the panel inside a <GraphProvider>.");
2705
2699
  return e;
@@ -2787,7 +2781,7 @@ var Ed = ({ value: e, onChange: t, onCommit: n, min: a, max: o, step: i, placeho
2787
2781
  }, xn = ({ children: e }) => {
2788
2782
  const { themeValues: t } = St();
2789
2783
  return /* @__PURE__ */ r(ie, {
2790
- style: E(() => Pe({
2784
+ style: O(() => Pe({
2791
2785
  [ce.fontFamily]: t.fontFamily,
2792
2786
  [ce.textScale]: t.textScale
2793
2787
  }), [t]),
@@ -2820,7 +2814,7 @@ var Za = "srewh00", Od = "srewh01", Md = {
2820
2814
  ...b,
2821
2815
  [f]: null
2822
2816
  } : b);
2823
- }, []), d = ae(() => i(!0), []), u = Nd(l), p = E(() => ({
2817
+ }, []), d = ae(() => i(!0), []), u = Nd(l), p = O(() => ({
2824
2818
  isHovered: n,
2825
2819
  isDismissed: o,
2826
2820
  reachedTooltipId: u,
@@ -2848,7 +2842,7 @@ var Za = "srewh00", Od = "srewh01", Md = {
2848
2842
  });
2849
2843
  }, Ja = ({ label: e, isChecked: t = !1, children: n }) => {
2850
2844
  const { isHovered: a, isDismissed: o, reachedTooltipId: i, reach: l, release: s, dismiss: c } = ye(Ya), h = ke(), [d, u] = Q(!1), p = a ? !o && (i === h || t && i === null) : d;
2851
- z(() => () => {
2845
+ F(() => () => {
2852
2846
  s(h, "pointer"), s(h, "focus");
2853
2847
  }, [h, s]);
2854
2848
  const v = (m, f) => {
@@ -2937,7 +2931,7 @@ var _d = 6, Fd = ({ options: e, value: t, onChange: n, onCommit: a, columns: o,
2937
2931
  default:
2938
2932
  return He[6];
2939
2933
  }
2940
- }, Qa = (e) => /* @__PURE__ */ r(L, {
2934
+ }, Qa = (e) => /* @__PURE__ */ r(P, {
2941
2935
  ...e,
2942
2936
  children: /* @__PURE__ */ r("g", {
2943
2937
  stroke: "currentColor",
@@ -2946,7 +2940,7 @@ var _d = 6, Fd = ({ options: e, value: t, onChange: n, onCommit: a, columns: o,
2946
2940
  strokeLinejoin: "round",
2947
2941
  children: /* @__PURE__ */ r("path", { d: "M20 6 9 17l-5-5" })
2948
2942
  })
2949
- }), Ye = (e) => /* @__PURE__ */ r(L, {
2943
+ }), Ye = (e) => /* @__PURE__ */ r(P, {
2950
2944
  ...e,
2951
2945
  children: /* @__PURE__ */ r("g", {
2952
2946
  stroke: "currentColor",
@@ -3133,7 +3127,7 @@ var eo = ({ options: e, value: t, onChange: n, onCommit: a, itemLayout: o = "inl
3133
3127
  ColorSwatches: dd,
3134
3128
  CustomColor: kd
3135
3129
  }, Zt = _e(hu), pu = ({ controls: e, children: t }) => {
3136
- const n = ye(Zt), a = E(() => ({
3130
+ const n = ye(Zt), a = O(() => ({
3137
3131
  ToggleGroup: e?.ToggleGroup ?? n.ToggleGroup,
3138
3132
  Switch: e?.Switch ?? n.Switch,
3139
3133
  Slider: e?.Slider ?? n.Slider,
@@ -3181,7 +3175,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3181
3175
  })
3182
3176
  })
3183
3177
  }), Yt = Wr.map((e) => ce[e]), Au = Object.fromEntries(Wr.map((e) => [ce[e], e])), ku = (e) => Yt.some((t) => t.toLowerCase() === e.toLowerCase()), Lu = ({ color: e, onChange: t, isOpen: n, onOpenChange: a, children: o, label: i, popupAttributes: l, opacity: s, onOpacityChange: c, hasTransparentOption: h = !1 }) => {
3184
- const d = I(), { ColorSwatches: u } = H(), p = Eu(), v = h ? [Va, ...Yt] : Yt, m = (f) => {
3178
+ const d = E(), { ColorSwatches: u } = H(), p = Eu(), v = h ? [Va, ...Yt] : Yt, m = (f) => {
3185
3179
  t(f), a(!1);
3186
3180
  };
3187
3181
  return /* @__PURE__ */ g(Y.Root, {
@@ -3252,8 +3246,8 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3252
3246
  popupAttributes: n
3253
3247
  });
3254
3248
  }, Eu = () => {
3255
- const e = R((t) => t.scales.color);
3256
- return E(() => {
3249
+ const e = N((t) => t.scales.color);
3250
+ return O(() => {
3257
3251
  if (!e || e.kind !== "visual") return [];
3258
3252
  const t = /* @__PURE__ */ new Set();
3259
3253
  for (const n of e.domain) {
@@ -3335,7 +3329,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3335
3329
  fontFamily: Ku
3336
3330
  }
3337
3331
  ], qu = (e) => e ? Jt.find((t) => t.fontFamily === e) ?? null : null, no = "_70l3rt0", ro = "_70l3rt1", ao = "_70l3rt3", oo = "_70l3rt4", io = "_70l3rt5", Xu = ({ editor: e, currentFontFamily: t, isOpen: n, onOpenChange: a }) => {
3338
- const o = I(), i = qu(t) ?? Jt[0], l = (s) => {
3332
+ const o = E(), i = qu(t) ?? Jt[0], l = (s) => {
3339
3333
  e.chain().focus().setFontFamily(s.fontFamily).run();
3340
3334
  };
3341
3335
  return /* @__PURE__ */ g(G.Root, {
@@ -3401,7 +3395,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3401
3395
  previewFont: ce.fontTextEditorH1
3402
3396
  }
3403
3397
  ], ju = ({ editor: e, activeStyle: t, isOpen: n, onOpenChange: a }) => {
3404
- const o = I(), i = Zn.find((l) => l.id === t) ?? lo;
3398
+ const o = E(), i = Zn.find((l) => l.id === t) ?? lo;
3405
3399
  return /* @__PURE__ */ g(G.Root, {
3406
3400
  open: n,
3407
3401
  onOpenChange: a,
@@ -3460,7 +3454,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3460
3454
  margin: 0
3461
3455
  },
3462
3456
  children: t
3463
- }), Ju = (e) => /* @__PURE__ */ r(L, {
3457
+ }), Ju = (e) => /* @__PURE__ */ r(P, {
3464
3458
  ...e,
3465
3459
  children: /* @__PURE__ */ g("g", {
3466
3460
  stroke: "currentColor",
@@ -3469,7 +3463,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3469
3463
  strokeLinejoin: "round",
3470
3464
  children: [/* @__PURE__ */ r("path", { d: "M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71" }), /* @__PURE__ */ r("path", { d: "M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71" })]
3471
3465
  })
3472
- }), Qu = (e) => /* @__PURE__ */ r(L, {
3466
+ }), Qu = (e) => /* @__PURE__ */ r(P, {
3473
3467
  ...e,
3474
3468
  children: /* @__PURE__ */ g("g", {
3475
3469
  stroke: "currentColor",
@@ -3489,8 +3483,8 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3489
3483
  to: o + l
3490
3484
  };
3491
3485
  }, Yn = (e) => e !== void 0 && /\S/.test(e), nh = "fop13s0", rh = "fop13s1", ah = "fop13s2", oh = "fop13s3", Jn = "fop13s4", ih = ({ editor: e, currentUrl: t, isActive: n, isOpen: a, onOpenChange: o }) => {
3492
- const i = I(), [l, s] = Q(""), c = ne(null);
3493
- z(() => {
3486
+ const i = E(), [l, s] = Q(""), c = ne(null);
3487
+ F(() => {
3494
3488
  a && s(t ?? "");
3495
3489
  }, [a, t]);
3496
3490
  const h = () => {
@@ -3569,7 +3563,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3569
3563
  }
3570
3564
  const o = th(e);
3571
3565
  e.chain().focus().setTextSelection(o).setLink({ href: n }).run();
3572
- }, so = (e) => /* @__PURE__ */ r(L, {
3566
+ }, so = (e) => /* @__PURE__ */ r(P, {
3573
3567
  ...e,
3574
3568
  children: /* @__PURE__ */ g("g", {
3575
3569
  stroke: "currentColor",
@@ -3582,7 +3576,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3582
3576
  /* @__PURE__ */ r("path", { d: "M19 19H5" })
3583
3577
  ]
3584
3578
  })
3585
- }), co = (e) => /* @__PURE__ */ r(L, {
3579
+ }), co = (e) => /* @__PURE__ */ r(P, {
3586
3580
  ...e,
3587
3581
  children: /* @__PURE__ */ g("g", {
3588
3582
  stroke: "currentColor",
@@ -3595,7 +3589,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3595
3589
  /* @__PURE__ */ r("path", { d: "M21 19H7" })
3596
3590
  ]
3597
3591
  })
3598
- }), uo = (e) => /* @__PURE__ */ r(L, {
3592
+ }), uo = (e) => /* @__PURE__ */ r(P, {
3599
3593
  ...e,
3600
3594
  children: /* @__PURE__ */ g("g", {
3601
3595
  stroke: "currentColor",
@@ -3632,7 +3626,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3632
3626
  }) })
3633
3627
  })] });
3634
3628
  }, dh = ({ editor: e, activeAlignment: t = "left" }) => {
3635
- const n = I();
3629
+ const n = E();
3636
3630
  return /* @__PURE__ */ g(q, { children: [
3637
3631
  /* @__PURE__ */ r(Ve, {
3638
3632
  label: n("graph.toolbar.textAlign.left"),
@@ -3664,7 +3658,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3664
3658
  fontSize: ph(e),
3665
3659
  textAlign: mh(e)
3666
3660
  }), ph = (e) => e ? e.isActive("heading", { level: 1 }) ? "h1" : e.isActive("heading", { level: 2 }) ? "h2" : e.isActive("heading", { level: 3 }) ? "h3" : e.isActive("paragraph", { variant: "caption" }) ? "caption" : "text" : "text", mh = (e) => e ? e.isActive({ textAlign: "center" }) ? "center" : e.isActive({ textAlign: "right" }) ? "right" : "left" : "left", gh = 8, vh = 8, fh = ({ editor: e }) => {
3667
- const t = I(), [n, a] = Q(!1), [o, i] = Q(null), l = o !== null, s = (v) => (m) => {
3661
+ const t = E(), [n, a] = Q(!1), [o, i] = Q(null), l = o !== null, s = (v) => (m) => {
3668
3662
  i(m ? v : null);
3669
3663
  }, { refs: c, floatingStyles: h } = yc({
3670
3664
  placement: "top-start",
@@ -3681,9 +3675,9 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3681
3675
  }), p = ae((v) => {
3682
3676
  d.current = v, c.setFloating(v);
3683
3677
  }, [c]);
3684
- return z(() => {
3678
+ return F(() => {
3685
3679
  e && c.setReference(e.view.dom);
3686
- }, [e, c]), z(() => {
3680
+ }, [e, c]), F(() => {
3687
3681
  if (!e) return;
3688
3682
  const v = () => a(!0), m = ({ event: f }) => {
3689
3683
  const { relatedTarget: b, currentTarget: x } = f, w = b instanceof Node && d.current?.contains(b), C = b instanceof Node && x instanceof Node && x.contains(b);
@@ -3771,9 +3765,9 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3771
3765
  s.run(d);
3772
3766
  }
3773
3767
  });
3774
- return z(() => {
3768
+ return F(() => {
3775
3769
  c?.setEditable(n);
3776
- }, [c, n]), z(() => {
3770
+ }, [c, n]), F(() => {
3777
3771
  if (!c) return;
3778
3772
  const h = Qn(e);
3779
3773
  zt(l.current, h) || (l.current = h, !zt(c.getJSON(), h) && (s.cancel(), Sh(c, h)));
@@ -3781,7 +3775,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3781
3775
  c,
3782
3776
  e,
3783
3777
  s
3784
- ]), z(() => () => s.flush(), [s]), c;
3778
+ ]), F(() => () => s.flush(), [s]), c;
3785
3779
  }, Qn = (e) => e === null ? {
3786
3780
  type: "doc",
3787
3781
  content: []
@@ -3805,7 +3799,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3805
3799
  }, zt = (e, t) => JSON.stringify(pt(e)) === JSON.stringify(pt(t)), pt = (e) => Array.isArray(e) ? e.map(pt) : e === null || typeof e != "object" ? e : Object.fromEntries(Object.entries(e).map(([t, n]) => [t, pt(n)]).filter(([, t]) => !Ch(t)).sort(([t], [n]) => String(t).localeCompare(String(n)))), Ch = (e) => e == null || typeof e == "object" && Object.keys(e).length === 0, xh = ({ caption: e, captionStyle: t }) => {
3806
3800
  const { dispatch: n } = le(), a = wn({
3807
3801
  content: e,
3808
- extensions: E(() => ad({ placeholder: "Add caption" }), []),
3802
+ extensions: O(() => ad({ placeholder: "Add caption" }), []),
3809
3803
  isEditable: !0,
3810
3804
  onUpdate: (o) => {
3811
3805
  const i = eh(o) ? null : o;
@@ -3830,7 +3824,7 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3830
3824
  placeholder: ({ pos: t }) => t === 0 ? e : ""
3831
3825
  })
3832
3826
  ], Th = ({ annotation: e }) => {
3833
- const t = I(), { dispatch: n } = le(), a = $(), o = E(() => wh(t("graph.annotations.text.placeholder")), [t]), i = wn({
3827
+ const t = E(), { dispatch: n } = le(), a = V(), o = O(() => wh(t("graph.annotations.text.placeholder")), [t]), i = wn({
3834
3828
  content: e.content,
3835
3829
  extensions: o,
3836
3830
  isEditable: !0,
@@ -3842,10 +3836,10 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3842
3836
  }));
3843
3837
  }
3844
3838
  });
3845
- return z(() => {
3839
+ return F(() => {
3846
3840
  const { setCaretEditor: l } = a.getState();
3847
3841
  return l(i), () => l(null);
3848
- }, [i, a]), z(() => {
3842
+ }, [i, a]), F(() => {
3849
3843
  i?.commands.focus("end", { scrollIntoView: !1 });
3850
3844
  }, [i]), /* @__PURE__ */ r(Ra, {
3851
3845
  "aria-label": t("graph.annotations.text.editLabel"),
@@ -3937,13 +3931,13 @@ var vu = "d0bl03", fu = "d0bl04", bu = "owf1yg0", yu = "owf1yg1", Su = "owf1yg2"
3937
3931
  lineHeight: "var(--uwf6lt3)",
3938
3932
  textColor: "var(--uwf6lt4)"
3939
3933
  }, Rh = "uwf6lt5", Dh = ({ title: e, isTitleVisible: t, isSubtitleVisible: n, subtitle: a, headingStyle: o, subtitleStyle: i }) => {
3940
- const { dispatch: l } = le(), s = E(() => rd({
3934
+ const { dispatch: l } = le(), s = O(() => rd({
3941
3935
  titlePlaceholder: "Untitled",
3942
3936
  subtitlePlaceholder: "Untitled",
3943
3937
  isTitleVisible: t,
3944
3938
  isSubtitleVisible: n
3945
3939
  }), [t, n]), c = wn({
3946
- content: E(() => Lh({
3940
+ content: O(() => Lh({
3947
3941
  title: e,
3948
3942
  isTitleVisible: t,
3949
3943
  subtitle: a,
@@ -4120,7 +4114,7 @@ var $h = (e, { coordSystem: t, panelRect: n }) => {
4120
4114
  from: e.y,
4121
4115
  to: e.y + e.height
4122
4116
  }), jh = (e, { frameElement: t, panelRect: n, look: a }) => {
4123
- const o = $(), i = X(), l = R((u) => u.coordSystem), s = ne(/* @__PURE__ */ new Map()), c = e?.target ?? null, h = e?.outline ?? null;
4117
+ const o = V(), i = X(), l = N((u) => u.coordSystem), s = ne(/* @__PURE__ */ new Map()), c = e?.target ?? null, h = e?.outline ?? null;
4124
4118
  Me(() => {
4125
4119
  if (c === null || h === null) return;
4126
4120
  const u = s.current, p = /* @__PURE__ */ new Map(), m = Bh(h, {
@@ -4191,16 +4185,16 @@ var ir = (e, t) => {
4191
4185
  height: Math.max(0, s - i)
4192
4186
  };
4193
4187
  }, rp = [], ap = (e) => {
4194
- const { layers: t, parsingLocale: n } = R(fe((u) => ({
4188
+ const { layers: t, parsingLocale: n } = N(fe((u) => ({
4195
4189
  layers: u.layers,
4196
4190
  parsingLocale: u.config.parsingLocale
4197
- }))), a = J((u) => u.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : ve(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : ac(i, o.target.scope, o.observationIndex), c = E(() => i === void 0 || l === null || s === null ? null : op(t, i, l, s), [
4191
+ }))), a = J((u) => u.editTargetUnderPointer), o = a?.kind === "observations" ? a.observations : null, i = o === null ? void 0 : ve(t, o.layerId), l = o?.target.scope ?? null, s = o === null || i === void 0 ? null : ac(i, o.target.scope, o.observationIndex), c = O(() => i === void 0 || l === null || s === null ? null : op(t, i, l, s), [
4198
4192
  t,
4199
4193
  i,
4200
4194
  l,
4201
4195
  s
4202
- ]), h = E(() => c !== null && e !== null && ir(c, e), [c, e]), d = o !== null && i !== void 0 && ip(o, i, n) ? o.observationIndex : null;
4203
- return E(() => {
4196
+ ]), h = O(() => c !== null && e !== null && ir(c, e), [c, e]), d = o !== null && i !== void 0 && ip(o, i, n) ? o.observationIndex : null;
4197
+ return O(() => {
4204
4198
  switch (a?.kind) {
4205
4199
  case "observations": {
4206
4200
  const u = c?.parts[0];
@@ -4361,10 +4355,10 @@ var ir = (e, t) => {
4361
4355
  const t = (n) => Number(e?.getAttribute(n) ?? 0);
4362
4356
  return (t("x2") - t("x1")) * (t("y2") - t("y1")) >= 0;
4363
4357
  }, pp = [], mp = (e, { frameElement: t, frameSize: n, panelRect: a, shouldAnimateTransitions: o }) => {
4364
- const i = R((f) => f.coordSystem), l = Gi(), s = Yr(), c = vp(e.kind === "guide" ? e.target : null, {
4358
+ const i = N((f) => f.coordSystem), l = Gi(), s = Yr(), c = vp(e.kind === "guide" ? e.target : null, {
4365
4359
  frameElement: t,
4366
4360
  frameSize: n
4367
- }), h = gp(t, n), d = E(() => ({
4361
+ }), h = gp(t, n), d = O(() => ({
4368
4362
  coordSystem: i,
4369
4363
  panelRect: a,
4370
4364
  resolveRenderer: l,
@@ -4374,12 +4368,12 @@ var ir = (e, t) => {
4374
4368
  a,
4375
4369
  l,
4376
4370
  s
4377
- ]), u = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, v = E(() => u?.map((f) => lr(f, d, o)) ?? pp, [
4371
+ ]), u = e.kind === "observations" ? e.parts : null, p = e.kind === "observations" ? e.vertex : null, v = O(() => u?.map((f) => lr(f, d, o)) ?? pp, [
4378
4372
  u,
4379
4373
  d,
4380
4374
  o
4381
- ]), m = E(() => p === null ? null : lr(p, d, !1), [p, d]);
4382
- return E(() => {
4375
+ ]), m = O(() => p === null ? null : lr(p, d, !1), [p, d]);
4376
+ return O(() => {
4383
4377
  switch (e.kind) {
4384
4378
  case "observations":
4385
4379
  return {
@@ -4449,7 +4443,7 @@ var ir = (e, t) => {
4449
4443
  })
4450
4444
  };
4451
4445
  }, vp = (e, { frameElement: t, frameSize: n }) => {
4452
- const a = R((d) => d.coordSystem.type), o = R(fe((d) => d.guides.legends.drawn.map((u) => u.display))), i = R((d) => e === null ? null : d), [l, s] = Q([]), c = ee(e), h = ne(!1);
4446
+ const a = N((d) => d.coordSystem.type), o = N(fe((d) => d.guides.legends.drawn.map((u) => u.display))), i = N((d) => e === null ? null : d), [l, s] = Q([]), c = ee(e), h = ne(!1);
4453
4447
  return Me(() => {
4454
4448
  const d = c.current;
4455
4449
  if (d === null) return;
@@ -4513,11 +4507,11 @@ var ir = (e, t) => {
4513
4507
  };
4514
4508
  }
4515
4509
  }, bp = () => {
4516
- const e = pn()[0] ?? null, { layers: t, parsingLocale: n } = R(fe((a) => ({
4510
+ const e = pn()[0] ?? null, { layers: t, parsingLocale: n } = N(fe((a) => ({
4517
4511
  layers: a.layers,
4518
4512
  parsingLocale: a.config.parsingLocale
4519
4513
  })));
4520
- return E(() => e === null ? null : yp(e, t, n), [
4514
+ return O(() => e === null ? null : yp(e, t, n), [
4521
4515
  e,
4522
4516
  t,
4523
4517
  n
@@ -4767,7 +4761,7 @@ var ir = (e, t) => {
4767
4761
  }
4768
4762
  }
4769
4763
  }, Ip = ({ target: e, look: t, panelRect: n }) => {
4770
- const a = R((l) => l.coordSystem), o = e.parts[0];
4764
+ const a = N((l) => l.coordSystem), o = e.parts[0];
4771
4765
  if (e.scope !== "x-value" || o === void 0 || o.layer.highlight?.strategy !== "overlay-anchor") return null;
4772
4766
  const i = Ep(o);
4773
4767
  return i === null ? null : /* @__PURE__ */ r("svg", {
@@ -4808,7 +4802,7 @@ var ir = (e, t) => {
4808
4802
  return ur(l, a.width, t.width);
4809
4803
  }, vo = () => {
4810
4804
  const [e, t] = Q(!1);
4811
- return z(() => {
4805
+ return F(() => {
4812
4806
  t(!0);
4813
4807
  }, []), e;
4814
4808
  }, Rp = (e) => Yi.some((t) => t === e), ur = (e, t, n) => n === 0 ? 0 : e * t / n, Dp = {
@@ -4825,7 +4819,7 @@ var ir = (e, t) => {
4825
4819
  Me(() => () => {
4826
4820
  c?.contains(document.activeElement) && e.focus({ preventScroll: !0 });
4827
4821
  }, [c, e]);
4828
- const { x: v, y: m, width: f, height: b } = t, x = E(() => ({
4822
+ const { x: v, y: m, width: f, height: b } = t, x = O(() => ({
4829
4823
  box: {
4830
4824
  x: v,
4831
4825
  y: m,
@@ -4839,8 +4833,8 @@ var ir = (e, t) => {
4839
4833
  f,
4840
4834
  b,
4841
4835
  n
4842
- ]), w = E(() => go(e, x.box), [e, x]), C = (S, P) => {
4843
- S || (P.cancel(), P.reason === "escape-key" && o());
4836
+ ]), w = O(() => go(e, x.box), [e, x]), C = (S, I) => {
4837
+ S || (I.cancel(), I.reason === "escape-key" && o());
4844
4838
  };
4845
4839
  return /* @__PURE__ */ r(Y.Root, {
4846
4840
  open: s,
@@ -4854,11 +4848,11 @@ var ir = (e, t) => {
4854
4848
  side: "right",
4855
4849
  align: "start",
4856
4850
  sideOffset: ({ side: S }) => S === "top" || S === "bottom" ? a.y : a.x,
4857
- alignOffset: ({ side: S, anchor: P }) => Np({
4851
+ alignOffset: ({ side: S, anchor: I }) => Np({
4858
4852
  side: S,
4859
4853
  boundary: x.box,
4860
4854
  spans: x.spans,
4861
- anchor: P,
4855
+ anchor: I,
4862
4856
  isRightToLeft: zp(p.current)
4863
4857
  }),
4864
4858
  collisionAvoidance: _p,
@@ -4916,24 +4910,24 @@ var ir = (e, t) => {
4916
4910
  axis: e.axis
4917
4911
  });
4918
4912
  }, Gp = (e, t) => e === "ySecondary" || t !== "continuous" && t !== "datetime" ? null : e, Vp = ({ graph: e, axis: t }) => {
4919
- const n = K(e), a = I(), { NumberField: o, TextField: i, ToggleGroup: l } = H(), s = n?.guides.axes.find((T) => T.scaleAestheticKey === t);
4920
- if (z(() => () => e.commands.commit(), [e.commands]), n === null || s?.geometry !== "linear") return null;
4921
- const c = n.scales[t]?.spec.scaleType, h = Gp(t, c), d = n.guides.legends.drawn.some((T) => T.position === "left" || T.position === "right"), u = t === "y" && c === "continuous" && (s.position === "left" || s.position === "right") && !d, p = t === "y" ? n.scales.y?.spec : void 0, v = p?.scaleType === "continuous" ? p : void 0, m = v !== void 0 && (s.position === "left" || s.position === "right") && !Ta(n, "y"), f = v?.transform === "log" ? "log" : "linear", b = m && v.transform !== "log", x = v?.domainMin ?? null, w = x === null ? "auto" : x === 0 ? "zero" : "custom", C = v !== void 0 && (s.position === "left" || s.position === "right") && v.transform !== "log", S = v?.domainMax ?? null, P = S === null ? "auto" : "custom", k = (T) => {
4922
- const F = T === "" ? null : T, D = t === "ySecondary" ? {
4913
+ const n = K(e), a = E(), { NumberField: o, TextField: i, ToggleGroup: l } = H(), s = n?.guides.axes.find((T) => T.scaleAestheticKey === t);
4914
+ if (F(() => () => e.commands.commit(), [e.commands]), n === null || s?.geometry !== "linear") return null;
4915
+ const c = n.scales[t]?.spec.scaleType, h = Gp(t, c), d = n.guides.legends.drawn.some((T) => T.position === "left" || T.position === "right"), u = t === "y" && c === "continuous" && (s.position === "left" || s.position === "right") && !d, p = t === "y" ? n.scales.y?.spec : void 0, v = p?.scaleType === "continuous" ? p : void 0, m = v !== void 0 && (s.position === "left" || s.position === "right") && !Ta(n, "y"), f = v?.transform === "log" ? "log" : "linear", b = m && v.transform !== "log", x = v?.domainMin ?? null, w = x === null ? "auto" : x === 0 ? "zero" : "custom", C = v !== void 0 && (s.position === "left" || s.position === "right") && v.transform !== "log", S = v?.domainMax ?? null, I = S === null ? "auto" : "custom", L = (T) => {
4916
+ const _ = T === "" ? null : T, W = t === "ySecondary" ? {
4923
4917
  axis: t,
4924
- label: F
4918
+ label: _
4925
4919
  } : {
4926
4920
  axis: t,
4927
- label: F
4921
+ label: _
4928
4922
  };
4929
- e.commands.dispatch(new aa(D), { transient: !0 });
4923
+ e.commands.dispatch(new aa(W), { transient: !0 });
4930
4924
  };
4931
4925
  return /* @__PURE__ */ g(q, { children: [
4932
4926
  /* @__PURE__ */ r(A, {
4933
4927
  label: a("editor.axesPanel.controls.title"),
4934
4928
  children: /* @__PURE__ */ r(i, {
4935
4929
  value: n.config.axes[t]?.label ?? "",
4936
- onChange: k,
4930
+ onChange: L,
4937
4931
  onCommit: e.commands.commit
4938
4932
  })
4939
4933
  }),
@@ -5013,10 +5007,10 @@ var ir = (e, t) => {
5013
5007
  }
5014
5008
  ],
5015
5009
  onChange: (T) => {
5016
- const F = n.scales.y?.domain[0], D = T === "auto" ? null : T === "zero" ? 0 : typeof F == "number" ? F : 0;
5010
+ const _ = n.scales.y?.domain[0], W = T === "auto" ? null : T === "zero" ? 0 : typeof _ == "number" ? _ : 0;
5017
5011
  e.commands.dispatch(new Ie({
5018
5012
  scaledAesthetic: "y",
5019
- domainMin: D
5013
+ domainMin: W
5020
5014
  }));
5021
5015
  }
5022
5016
  })
@@ -5036,7 +5030,7 @@ var ir = (e, t) => {
5036
5030
  C && /* @__PURE__ */ g(q, { children: [/* @__PURE__ */ r(A, {
5037
5031
  label: a("editor.axesPanel.controls.endAt"),
5038
5032
  children: /* @__PURE__ */ r(l, {
5039
- value: P,
5033
+ value: I,
5040
5034
  options: [{
5041
5035
  value: "auto",
5042
5036
  label: a("editor.axesPanel.endAt.auto")
@@ -5045,14 +5039,14 @@ var ir = (e, t) => {
5045
5039
  label: a("editor.axesPanel.endAt.custom")
5046
5040
  }],
5047
5041
  onChange: (T) => {
5048
- const F = n.scales.y?.domain.at(-1), D = typeof F == "number" ? F : 0;
5042
+ const _ = n.scales.y?.domain.at(-1), W = typeof _ == "number" ? _ : 0;
5049
5043
  e.commands.dispatch(new Ie({
5050
5044
  scaledAesthetic: "y",
5051
- domainMax: T === "custom" ? D : null
5045
+ domainMax: T === "custom" ? W : null
5052
5046
  }));
5053
5047
  }
5054
5048
  })
5055
- }), P === "custom" && /* @__PURE__ */ r(A, {
5049
+ }), I === "custom" && /* @__PURE__ */ r(A, {
5056
5050
  label: a("editor.axesPanel.controls.value"),
5057
5051
  children: /* @__PURE__ */ r(o, {
5058
5052
  value: S,
@@ -5081,7 +5075,7 @@ var ir = (e, t) => {
5081
5075
  supportsCategoryLabels: o && i && e.position === "fill" && a
5082
5076
  };
5083
5077
  }, Wp = () => {
5084
- const e = R((l) => l.layers), t = R((l) => l.coordSystem.type), n = pl(), a = I(), o = e.filter((l) => l.interactive).map((l) => ({
5078
+ const e = N((l) => l.layers), t = N((l) => l.coordSystem.type), n = pl(), a = E(), o = e.filter((l) => l.interactive).map((l) => ({
5085
5079
  layer: l,
5086
5080
  support: fo(l, t, n)
5087
5081
  })), i = (l) => o.filter(({ support: s }) => l(s)).map(({ layer: s }) => s);
@@ -5137,9 +5131,9 @@ var ir = (e, t) => {
5137
5131
  })
5138
5132
  });
5139
5133
  }, Up = 6, rt = ({ target: e }) => {
5140
- const { commands: t } = B(), { ColorSwatches: n, CustomColor: a } = H(), o = I(), i = X(), l = R((p) => p), s = ve(l.layers, e.layerId), c = ec(l.spec, e), h = tc(l.scales.color).slice(0, Up);
5141
- z(() => () => t.commit(), [t]);
5142
- const d = E(() => nc({
5134
+ const { commands: t } = B(), { ColorSwatches: n, CustomColor: a } = H(), o = E(), i = X(), l = N((p) => p), s = ve(l.layers, e.layerId), c = ec(l.spec, e), h = tc(l.scales.color).slice(0, Up);
5135
+ F(() => () => t.commit(), [t]);
5136
+ const d = O(() => nc({
5143
5137
  readers: i,
5144
5138
  layers: l.layers,
5145
5139
  target: e,
@@ -5244,7 +5238,7 @@ var ir = (e, t) => {
5244
5238
  center: "Center",
5245
5239
  end: "End"
5246
5240
  }, Zp = () => {
5247
- const e = R((l) => l.guides.legends.drawn[0]), t = le(), n = I(), { RadioGrid: a } = H();
5241
+ const e = N((l) => l.guides.legends.drawn[0]), t = le(), n = E(), { RadioGrid: a } = H();
5248
5242
  if (e === void 0) return null;
5249
5243
  const o = gr.map((l) => {
5250
5244
  const s = Gt(l);
@@ -5281,7 +5275,7 @@ var ir = (e, t) => {
5281
5275
  })
5282
5276
  });
5283
5277
  }, Gt = ({ position: e, align: t }) => e === "left" || e === "right" ? e : `${e}${jp[t]}`, Yp = ({ gridRow: e, gridColumn: t }) => Math.atan2(t - 2, 2 - e) * 180 / Math.PI, Jp = (e) => {
5284
- const t = ye(e1), n = e?.kind === "observations" ? e.layerId : null, a = R(fe((o) => n === null ? null : qp(n, o)));
5278
+ const t = ye(e1), n = e?.kind === "observations" ? e.layerId : null, a = N(fe((o) => n === null ? null : qp(n, o)));
5285
5279
  if (e === null) return null;
5286
5280
  switch (e.kind) {
5287
5281
  case "observations": {
@@ -5320,7 +5314,7 @@ var ir = (e, t) => {
5320
5314
  axis: Hp,
5321
5315
  grid: Vt,
5322
5316
  graph: Wp
5323
- }, e1 = _e([Qp]), bo = (e) => /* @__PURE__ */ g(L, {
5317
+ }, e1 = _e([Qp]), bo = (e) => /* @__PURE__ */ g(P, {
5324
5318
  viewBox: "0 0 16 16",
5325
5319
  ...e,
5326
5320
  children: [
@@ -5359,7 +5353,7 @@ var ir = (e, t) => {
5359
5353
  rx: ".533"
5360
5354
  })
5361
5355
  ]
5362
- }), yo = (e) => /* @__PURE__ */ g(L, {
5356
+ }), yo = (e) => /* @__PURE__ */ g(P, {
5363
5357
  viewBox: "0 0 16 16",
5364
5358
  ...e,
5365
5359
  children: [
@@ -5398,7 +5392,7 @@ var ir = (e, t) => {
5398
5392
  rx: ".533"
5399
5393
  })
5400
5394
  ]
5401
- }), So = (e) => /* @__PURE__ */ g(L, {
5395
+ }), So = (e) => /* @__PURE__ */ g(P, {
5402
5396
  viewBox: "0 0 16 16",
5403
5397
  ...e,
5404
5398
  children: [
@@ -5437,7 +5431,7 @@ var ir = (e, t) => {
5437
5431
  rx: ".533"
5438
5432
  })
5439
5433
  ]
5440
- }), Co = (e) => E(() => {
5434
+ }), Co = (e) => O(() => {
5441
5435
  if (e === null) return {
5442
5436
  options: [],
5443
5437
  findValue: () => {
@@ -5495,7 +5489,7 @@ var ir = (e, t) => {
5495
5489
  "x-value": yo,
5496
5490
  series: So
5497
5491
  }, s1 = () => {
5498
- const { selectionStore: e } = B(), t = $(), n = I(), a = ea(), o = R((f) => f), i = Co(o), l = J((f) => f.pressedObservation), s = E(() => c1({
5492
+ const { selectionStore: e } = B(), t = V(), n = E(), a = ea(), o = N((f) => f), i = Co(o), l = J((f) => f.pressedObservation), s = O(() => c1({
5499
5493
  scene: o,
5500
5494
  pressed: l,
5501
5495
  groupOptions: i,
@@ -5592,7 +5586,7 @@ var ir = (e, t) => {
5592
5586
  return e;
5593
5587
  }
5594
5588
  }, g1 = ({ frameElement: e }) => {
5595
- const t = I(), { selectionStore: n } = B(), a = J((l) => l.selectedOutline), o = Jp(a?.target ?? null);
5589
+ const t = E(), { selectionStore: n } = B(), a = J((l) => l.selectedOutline), o = Jp(a?.target ?? null);
5596
5590
  if (a === null || o === null) return null;
5597
5591
  const i = () => {
5598
5592
  n.getState().clearSelection();
@@ -5612,7 +5606,7 @@ var ir = (e, t) => {
5612
5606
  }), /* @__PURE__ */ r(pc, { children: o }, Tt(a.target))]
5613
5607
  });
5614
5608
  }, v1 = ({ frameRect: e }) => {
5615
- const { targetBoundaryStore: t } = B(), n = J((l) => l.selectedOutline), { left: a, top: o } = e, i = E(() => {
5609
+ const { targetBoundaryStore: t } = B(), n = J((l) => l.selectedOutline), { left: a, top: o } = e, i = O(() => {
5616
5610
  if (n === null) return null;
5617
5611
  const { frame: l, frameSpans: s, frameScale: c } = n;
5618
5612
  return {
@@ -5642,7 +5636,7 @@ var ir = (e, t) => {
5642
5636
  }, at = (e, t, n) => ({
5643
5637
  from: t + e.from * n,
5644
5638
  to: t + e.to * n
5645
- }), xo = (e) => /* @__PURE__ */ g(L, {
5639
+ }), xo = (e) => /* @__PURE__ */ g(P, {
5646
5640
  viewBox: "0 0 16 16",
5647
5641
  ...e,
5648
5642
  children: [
@@ -5761,7 +5755,7 @@ var wo = "efjmb40", To = "efjmb41", Fe = "efjmb42", ze = "efjmb43", f1 = "efjmb4
5761
5755
  text: e
5762
5756
  }]
5763
5757
  }]
5764
- }), k1 = (e) => /* @__PURE__ */ r(L, {
5758
+ }), k1 = (e) => /* @__PURE__ */ r(P, {
5765
5759
  viewBox: "0 0 15 14",
5766
5760
  ...e,
5767
5761
  children: /* @__PURE__ */ r("path", {
@@ -5770,7 +5764,7 @@ var wo = "efjmb40", To = "efjmb41", Fe = "efjmb42", ze = "efjmb43", f1 = "efjmb4
5770
5764
  fillOpacity: "0.8"
5771
5765
  })
5772
5766
  }), L1 = "relative-difference", P1 = ({ label: e, layer: t, at: n, onRequestClose: a }) => {
5773
- const { dispatch: o } = le(), i = R((c) => c.coordSystem), l = E(() => Vs({
5767
+ const { dispatch: o } = le(), i = N((c) => c.coordSystem), l = O(() => Vs({
5774
5768
  layer: t,
5775
5769
  at: n,
5776
5770
  coordSystem: i
@@ -5851,7 +5845,7 @@ function I1(e, t) {
5851
5845
  var E1 = (e) => {
5852
5846
  const t = At(e.mapping.x);
5853
5847
  return t !== null && t !== Sl.x;
5854
- }, O1 = (e) => /* @__PURE__ */ g(L, {
5848
+ }, O1 = (e) => /* @__PURE__ */ g(P, {
5855
5849
  viewBox: "0 0 16 16",
5856
5850
  ...e,
5857
5851
  children: [
@@ -5871,7 +5865,7 @@ var E1 = (e) => {
5871
5865
  d: "M11.733 10.074H16v5.408a.52.52 0 0 1-.518.518h-3.23a.52.52 0 0 1-.519-.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
5872
5866
  })
5873
5867
  ]
5874
- }), M1 = (e) => /* @__PURE__ */ g(L, {
5868
+ }), M1 = (e) => /* @__PURE__ */ g(P, {
5875
5869
  viewBox: "0 0 16 16",
5876
5870
  ...e,
5877
5871
  children: [
@@ -5905,7 +5899,7 @@ var E1 = (e) => {
5905
5899
  d: "M5.29 6.62a1.3 1.3 0 0 1-.424-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.262-.45 2.1 2.1 0 0 1-.096-.699q0-.389.082-.693.083-.304.238-.514a1.05 1.05 0 0 1 .374-.322q.22-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.321-.105.54.54 0 0 0-.485.273q-.168.273-.17.75h.021a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .813.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.571.134m-.003-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.07-.294.54.54 0 0 0-.484-.285.55.55 0 0 0-.403.173.596.596 0 0 0 .108.914.53.53 0 0 0 .288.08M6.88 6.579v-.396l1.05-1.03q.15-.15.25-.27a1 1 0 0 0 .151-.229.6.6 0 0 0 .05-.236.432.432 0 0 0-.244-.405.6.6 0 0 0-.258-.056q-.15 0-.261.062a.43.43 0 0 0-.175.173.56.56 0 0 0-.06.267H6.86q0-.288.132-.5a.9.9 0 0 1 .362-.33q.231-.117.532-.117.303 0 .534.114.23.114.358.312a.8.8 0 0 1 .128.452.9.9 0 0 1-.065.334q-.065.164-.229.363-.162.2-.456.483l-.522.53v.021h1.318v.458zM10.57 6.62a1.3 1.3 0 0 1-.423-.075 1 1 0 0 1-.373-.244 1.2 1.2 0 0 1-.263-.45 2.1 2.1 0 0 1-.096-.699q0-.389.083-.693t.238-.514a1.05 1.05 0 0 1 .374-.322q.219-.11.492-.11.285 0 .505.112a.973.973 0 0 1 .526.744h-.54a.5.5 0 0 0-.17-.277.5.5 0 0 0-.322-.105.54.54 0 0 0-.484.273q-.168.273-.17.75h.02a.8.8 0 0 1 .188-.223.92.92 0 0 1 .569-.195.91.91 0 0 1 .814.477q.125.222.123.509 0 .297-.136.536a1 1 0 0 1-.383.372 1.15 1.15 0 0 1-.572.134m-.002-.443a.54.54 0 0 0 .288-.078.57.57 0 0 0 .2-.211.6.6 0 0 0 .073-.299.6.6 0 0 0-.071-.294.54.54 0 0 0-.483-.285.54.54 0 0 0-.403.173.597.597 0 0 0 .107.914.53.53 0 0 0 .289.08"
5906
5900
  })
5907
5901
  ]
5908
- }), N1 = (e) => /* @__PURE__ */ g(L, {
5902
+ }), N1 = (e) => /* @__PURE__ */ g(P, {
5909
5903
  viewBox: "0 0 16 16",
5910
5904
  ...e,
5911
5905
  children: [
@@ -5946,7 +5940,7 @@ var E1 = (e) => {
5946
5940
  fillOpacity: "0.8"
5947
5941
  })
5948
5942
  ]
5949
- }), R1 = (e) => /* @__PURE__ */ g(L, {
5943
+ }), R1 = (e) => /* @__PURE__ */ g(P, {
5950
5944
  viewBox: "0 0 16 16",
5951
5945
  ...e,
5952
5946
  children: [
@@ -5968,7 +5962,7 @@ var E1 = (e) => {
5968
5962
  d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
5969
5963
  })
5970
5964
  ]
5971
- }), D1 = (e) => /* @__PURE__ */ g(L, {
5965
+ }), D1 = (e) => /* @__PURE__ */ g(P, {
5972
5966
  viewBox: "0 0 16 16",
5973
5967
  ...e,
5974
5968
  children: [
@@ -6029,7 +6023,7 @@ var E1 = (e) => {
6029
6023
  transform: "matrix(-1 0 0 1 15.933 .533)"
6030
6024
  })
6031
6025
  ]
6032
- }), _1 = (e) => /* @__PURE__ */ g(L, {
6026
+ }), _1 = (e) => /* @__PURE__ */ g(P, {
6033
6027
  viewBox: "0 0 16 16",
6034
6028
  ...e,
6035
6029
  children: [
@@ -6103,7 +6097,7 @@ var E1 = (e) => {
6103
6097
  }, Ao = ({ labelKey: e }) => {
6104
6098
  const t = F1[e];
6105
6099
  return /* @__PURE__ */ r(t, {});
6106
- }, ko = (e) => /* @__PURE__ */ g(L, {
6100
+ }, ko = (e) => /* @__PURE__ */ g(P, {
6107
6101
  viewBox: "0 0 16 16",
6108
6102
  ...e,
6109
6103
  children: [/* @__PURE__ */ r("path", {
@@ -6117,7 +6111,7 @@ var E1 = (e) => {
6117
6111
  fillOpacity: "0.8"
6118
6112
  })]
6119
6113
  }), z1 = ({ label: e, options: t, onSelect: n }) => {
6120
- const a = I();
6114
+ const a = E();
6121
6115
  return /* @__PURE__ */ r(An, {
6122
6116
  label: e,
6123
6117
  icon: /* @__PURE__ */ r(ko, {}),
@@ -6131,7 +6125,7 @@ var E1 = (e) => {
6131
6125
  }, o.scope))
6132
6126
  });
6133
6127
  }, B1 = ({ label: e, layer: t, observation: n, highlights: a, onRequestClose: o }) => {
6134
- const i = I(), { dispatch: l } = le(), s = R((v) => v.coordSystem), c = E(() => bs(t, n), [t, n]), h = E(() => I1(s, t), [s, t]), d = E(() => {
6128
+ const i = E(), { dispatch: l } = le(), s = N((v) => v.coordSystem), c = O(() => bs(t, n), [t, n]), h = O(() => I1(s, t), [s, t]), d = O(() => {
6135
6129
  const v = new Set(a.map((m) => m.scope));
6136
6130
  return h.filter((m) => !v.has(m.scope));
6137
6131
  }, [h, a]), [u] = d;
@@ -6178,8 +6172,8 @@ var E1 = (e) => {
6178
6172
  })]
6179
6173
  });
6180
6174
  }, $1 = (e, t) => {
6181
- const n = R((o) => o.spec.highlights), a = R((o) => o.config.parsingLocale);
6182
- return E(() => Os({
6175
+ const n = N((o) => o.spec.highlights), a = N((o) => o.config.parsingLocale);
6176
+ return O(() => Os({
6183
6177
  layer: e,
6184
6178
  highlights: n,
6185
6179
  observation: t,
@@ -6190,7 +6184,7 @@ var E1 = (e) => {
6190
6184
  t,
6191
6185
  a
6192
6186
  ]);
6193
- }, Po = (e) => /* @__PURE__ */ g(L, {
6187
+ }, Po = (e) => /* @__PURE__ */ g(P, {
6194
6188
  viewBox: "0 0 16 16",
6195
6189
  ...e,
6196
6190
  children: [
@@ -6228,7 +6222,7 @@ var E1 = (e) => {
6228
6222
  children: e
6229
6223
  })]
6230
6224
  });
6231
- }, Io = (e) => /* @__PURE__ */ g(L, {
6225
+ }, Io = (e) => /* @__PURE__ */ g(P, {
6232
6226
  viewBox: "0 0 16 16",
6233
6227
  ...e,
6234
6228
  children: [
@@ -6276,7 +6270,7 @@ var E1 = (e) => {
6276
6270
  },
6277
6271
  image: null
6278
6272
  }, U1 = (e) => $s(e.kind) && Eo[e.kind] !== null, K1 = ({ attachment: e, onRequestClose: t }) => {
6279
- const n = I(), { dispatch: a } = le(), { icon: o, labelKey: i } = Eo[e.kind], l = () => {
6273
+ const n = E(), { dispatch: a } = le(), { icon: o, labelKey: i } = Eo[e.kind], l = () => {
6280
6274
  a(new We({ id: e.annotation.id })), t();
6281
6275
  };
6282
6276
  return /* @__PURE__ */ g(G.Item, {
@@ -6318,7 +6312,7 @@ var E1 = (e) => {
6318
6312
  })
6319
6313
  });
6320
6314
  }, Y1 = ({ interaction: e, frameElement: t, panelRect: n }) => {
6321
- const a = $(), o = J((c) => c.menuTrigger);
6315
+ const a = V(), o = J((c) => c.menuTrigger);
6322
6316
  if (e.kind !== "menu" || o === null) return null;
6323
6317
  const i = () => {
6324
6318
  a.getState().releaseInteraction("menu");
@@ -6337,7 +6331,7 @@ var E1 = (e) => {
6337
6331
  onClose: i
6338
6332
  });
6339
6333
  }, J1 = ({ frameElement: e, trigger: t, layer: n, at: a, observation: o, onClose: i }) => {
6340
- const l = I(), s = Ze(), c = R((S) => S.spec.annotations), h = R((S) => S.config.parsingLocale), d = vo(), { x: u, y: p, width: v, height: m } = t, f = E(() => go(e, {
6334
+ const l = E(), s = Ze(), c = N((S) => S.spec.annotations), h = N((S) => S.config.parsingLocale), d = vo(), { x: u, y: p, width: v, height: m } = t, f = O(() => go(e, {
6341
6335
  x: u,
6342
6336
  y: p,
6343
6337
  width: v,
@@ -6348,8 +6342,8 @@ var E1 = (e) => {
6348
6342
  p,
6349
6343
  v,
6350
6344
  m
6351
- ]), b = Ns(c, a, E(() => Ts(n, h), [n, h])), x = b !== null && U1(b) ? b : null, w = $1(n, o), C = (S, P) => {
6352
- !S && Q1(P.reason) && i();
6345
+ ]), b = Ns(c, a, O(() => Ts(n, h), [n, h])), x = b !== null && U1(b) ? b : null, w = $1(n, o), C = (S, I) => {
6346
+ !S && Q1(I.reason) && i();
6353
6347
  };
6354
6348
  return /* @__PURE__ */ r(G.Root, {
6355
6349
  open: d,
@@ -6486,7 +6480,7 @@ var E1 = (e) => {
6486
6480
  if (e.length !== 1) return null;
6487
6481
  const [t] = e;
6488
6482
  return t?.kind === "annotation" ? t.id : null;
6489
- }, r2 = (e) => /* @__PURE__ */ r(L, {
6483
+ }, r2 = (e) => /* @__PURE__ */ r(P, {
6490
6484
  ...e,
6491
6485
  children: /* @__PURE__ */ g("g", {
6492
6486
  stroke: "currentColor",
@@ -6495,7 +6489,7 @@ var E1 = (e) => {
6495
6489
  strokeLinejoin: "round",
6496
6490
  children: [/* @__PURE__ */ r("path", { d: "m12 19-7-7 7-7" }), /* @__PURE__ */ r("path", { d: "M19 12H5" })]
6497
6491
  })
6498
- }), Ro = (e) => /* @__PURE__ */ r(L, {
6492
+ }), Ro = (e) => /* @__PURE__ */ r(P, {
6499
6493
  ...e,
6500
6494
  children: /* @__PURE__ */ g("g", {
6501
6495
  stroke: "currentColor",
@@ -6504,7 +6498,7 @@ var E1 = (e) => {
6504
6498
  strokeLinejoin: "round",
6505
6499
  children: [/* @__PURE__ */ r("path", { d: "M5 12h14" }), /* @__PURE__ */ r("path", { d: "m12 5 7 7-7 7" })]
6506
6500
  })
6507
- }), a2 = (e) => /* @__PURE__ */ r(L, {
6501
+ }), a2 = (e) => /* @__PURE__ */ r(P, {
6508
6502
  ...e,
6509
6503
  children: /* @__PURE__ */ g("g", {
6510
6504
  stroke: "currentColor",
@@ -6513,7 +6507,7 @@ var E1 = (e) => {
6513
6507
  strokeLinejoin: "round",
6514
6508
  children: [/* @__PURE__ */ r("path", { d: "M7 17 17 7" }), /* @__PURE__ */ r("path", { d: "M7 7h10v10" })]
6515
6509
  })
6516
- }), Do = (e) => /* @__PURE__ */ r(L, {
6510
+ }), Do = (e) => /* @__PURE__ */ r(P, {
6517
6511
  ...e,
6518
6512
  children: /* @__PURE__ */ g("g", {
6519
6513
  fill: "currentColor",
@@ -6541,7 +6535,7 @@ var E1 = (e) => {
6541
6535
  })
6542
6536
  ]
6543
6537
  })
6544
- }), Et = (e) => /* @__PURE__ */ r(L, {
6538
+ }), Et = (e) => /* @__PURE__ */ r(P, {
6545
6539
  ...e,
6546
6540
  children: /* @__PURE__ */ g("g", {
6547
6541
  stroke: "currentColor",
@@ -6630,7 +6624,7 @@ var E1 = (e) => {
6630
6624
  className: u2,
6631
6625
  onClick: n,
6632
6626
  children: a
6633
- }), _ = {
6627
+ }), D = {
6634
6628
  Root: m2,
6635
6629
  Dropdown: g2,
6636
6630
  MenuItem: Z.MenuItem,
@@ -6641,8 +6635,8 @@ var E1 = (e) => {
6641
6635
  Button: Z.Button,
6642
6636
  Separator: Z.Separator
6643
6637
  }, S2 = { kind: "chrome-popup" }, Ot = () => {
6644
- const { commands: e } = B(), t = $(), [n, a] = Q(null);
6645
- z(() => () => e.commit(), [e]), z(() => {
6638
+ const { commands: e } = B(), t = V(), [n, a] = Q(null);
6639
+ F(() => () => e.commit(), [e]), F(() => {
6646
6640
  const { claimInteraction: i, releaseInteraction: l } = t.getState();
6647
6641
  return n === null ? l("chrome-popup") : i(S2), () => l("chrome-popup");
6648
6642
  }, [t, n]);
@@ -6656,7 +6650,7 @@ var E1 = (e) => {
6656
6650
  }),
6657
6651
  close: o
6658
6652
  };
6659
- }, C2 = (e) => /* @__PURE__ */ r(L, {
6653
+ }, C2 = (e) => /* @__PURE__ */ r(P, {
6660
6654
  ...e,
6661
6655
  children: /* @__PURE__ */ g("g", {
6662
6656
  stroke: "currentColor",
@@ -6668,7 +6662,7 @@ var E1 = (e) => {
6668
6662
  /* @__PURE__ */ r("path", { d: "M16 8 19 5" })
6669
6663
  ]
6670
6664
  })
6671
- }), x2 = (e) => /* @__PURE__ */ r(L, {
6665
+ }), x2 = (e) => /* @__PURE__ */ r(P, {
6672
6666
  ...e,
6673
6667
  children: /* @__PURE__ */ g("g", {
6674
6668
  stroke: "currentColor",
@@ -6682,7 +6676,7 @@ var E1 = (e) => {
6682
6676
  /* @__PURE__ */ r("path", { d: "M19 5h0" })
6683
6677
  ]
6684
6678
  })
6685
- }), w2 = (e) => /* @__PURE__ */ r(L, {
6679
+ }), w2 = (e) => /* @__PURE__ */ r(P, {
6686
6680
  ...e,
6687
6681
  children: /* @__PURE__ */ r("path", {
6688
6682
  d: "M5 19 19 5",
@@ -6729,26 +6723,26 @@ var E1 = (e) => {
6729
6723
  }
6730
6724
  ], A2 = (e, t) => e.find((n) => n.value === t) ?? e[0];
6731
6725
  var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
6732
- const l = I(), { commands: s } = B(), c = R((N) => N.spec.styles.overrides), h = R((N) => De(N.spec)), d = Ot(), u = fn(X(), e.id), p = A2(br, qt(u.dashArray)), v = u.outline.strokeWidth > 0 || u.outline.shadow !== "none", m = E(() => ({
6726
+ const l = E(), { commands: s } = B(), c = N((k) => k.spec.styles.overrides), h = N((k) => De(k.spec)), d = Ot(), u = fn(X(), e.id), p = A2(br, qt(u.dashArray)), v = u.outline.strokeWidth > 0 || u.outline.shadow !== "none", m = O(() => ({
6733
6727
  target: "annotation",
6734
6728
  kind: "arrow",
6735
6729
  annotation: e.id
6736
- }), [e.id]), f = E(() => ({
6730
+ }), [e.id]), f = O(() => ({
6737
6731
  ...m,
6738
6732
  part: "outline"
6739
- }), [m]), b = (N, y) => {
6740
- const V = Ae(c, { select: m }, h)?.declarations ?? {};
6733
+ }), [m]), b = (k, y) => {
6734
+ const z = Ae(c, { select: m }, h)?.declarations ?? {};
6741
6735
  s.dispatch(new Oe({
6742
6736
  list: "overrides",
6743
6737
  rule: {
6744
6738
  select: m,
6745
6739
  declarations: {
6746
- ...V,
6747
- ...N
6740
+ ...z,
6741
+ ...k
6748
6742
  }
6749
6743
  }
6750
6744
  }), y);
6751
- }, x = (N) => {
6745
+ }, x = (k) => {
6752
6746
  const y = Ae(c, { select: f }, h)?.declarations ?? {};
6753
6747
  s.dispatch(new Oe({
6754
6748
  list: "overrides",
@@ -6756,25 +6750,25 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6756
6750
  select: f,
6757
6751
  declarations: {
6758
6752
  ...y,
6759
- ...N
6753
+ ...k
6760
6754
  }
6761
6755
  }
6762
6756
  }));
6763
- }, w = (N) => {
6764
- b(N), d.close();
6765
- }, C = (N) => {
6757
+ }, w = (k) => {
6758
+ b(k), d.close();
6759
+ }, C = (k) => {
6766
6760
  s.dispatch(new he({
6767
6761
  kind: "arrow",
6768
6762
  id: e.id,
6769
- patch: N
6763
+ patch: k
6770
6764
  })), d.close();
6771
6765
  }, S = () => {
6772
6766
  s.dispatch(new We({ id: e.id })), i.focus({ preventScroll: !0 });
6773
- }, P = (N) => b({ stroke: N }, { transient: !0 }), k = (N) => w({ strokeWidth: N }), T = (N) => C({ startArrowheadStyle: N }), F = (N) => w({ dashArray: Cl.arrow[N] }), D = (N) => C({ endArrowheadStyle: N }), M = () => x(v ? {
6767
+ }, I = (k) => b({ stroke: k }, { transient: !0 }), L = (k) => w({ strokeWidth: k }), T = (k) => C({ startArrowheadStyle: k }), _ = (k) => w({ dashArray: Cl.arrow[k] }), W = (k) => C({ endArrowheadStyle: k }), R = () => x(v ? {
6774
6768
  strokeWidth: 0,
6775
6769
  shadow: "none"
6776
6770
  } : bl);
6777
- return /* @__PURE__ */ g(_.Root, {
6771
+ return /* @__PURE__ */ g(D.Root, {
6778
6772
  anchorBox: t,
6779
6773
  panelRect: n,
6780
6774
  frameWidth: a,
@@ -6782,14 +6776,14 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6782
6776
  label: l("graph.annotations.arrowToolbar.label"),
6783
6777
  testId: "arrow-toolbar",
6784
6778
  children: [
6785
- /* @__PURE__ */ r(_.ColorPicker, {
6779
+ /* @__PURE__ */ r(D.ColorPicker, {
6786
6780
  color: u.stroke,
6787
6781
  label: l("graph.annotations.arrowToolbar.color"),
6788
- onChange: P,
6782
+ onChange: I,
6789
6783
  ...d.bind("color"),
6790
- children: /* @__PURE__ */ r(_.Swatch, { color: u.stroke })
6784
+ children: /* @__PURE__ */ r(D.Swatch, { color: u.stroke })
6791
6785
  }),
6792
- /* @__PURE__ */ r(_.Dropdown, {
6786
+ /* @__PURE__ */ r(D.Dropdown, {
6793
6787
  label: l("graph.annotations.arrowToolbar.thickness.ariaLabel"),
6794
6788
  trigger: /* @__PURE__ */ r(Do, {
6795
6789
  size: "sm",
@@ -6799,10 +6793,10 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6799
6793
  children: /* @__PURE__ */ r(ot, {
6800
6794
  options: T2,
6801
6795
  current: u.strokeWidth,
6802
- onPick: k
6796
+ onPick: L
6803
6797
  })
6804
6798
  }),
6805
- /* @__PURE__ */ r(_.Dropdown, {
6799
+ /* @__PURE__ */ r(D.Dropdown, {
6806
6800
  label: l("graph.annotations.arrowToolbar.startArrowhead"),
6807
6801
  trigger: /* @__PURE__ */ r(r2, {
6808
6802
  size: "sm",
@@ -6815,7 +6809,7 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6815
6809
  onPick: T
6816
6810
  })
6817
6811
  }),
6818
- /* @__PURE__ */ r(_.Dropdown, {
6812
+ /* @__PURE__ */ r(D.Dropdown, {
6819
6813
  label: l("graph.annotations.arrowToolbar.lineStyle.ariaLabel"),
6820
6814
  trigger: p?.Icon !== void 0 && /* @__PURE__ */ r(p.Icon, {
6821
6815
  size: "sm",
@@ -6825,10 +6819,10 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6825
6819
  children: /* @__PURE__ */ r(ot, {
6826
6820
  options: br,
6827
6821
  current: qt(u.dashArray),
6828
- onPick: F
6822
+ onPick: _
6829
6823
  })
6830
6824
  }),
6831
- /* @__PURE__ */ r(_.Dropdown, {
6825
+ /* @__PURE__ */ r(D.Dropdown, {
6832
6826
  label: l("graph.annotations.arrowToolbar.endArrowhead"),
6833
6827
  trigger: /* @__PURE__ */ r(Ro, {
6834
6828
  size: "sm",
@@ -6838,20 +6832,20 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6838
6832
  children: /* @__PURE__ */ r(ot, {
6839
6833
  options: fr,
6840
6834
  current: e.endArrowheadStyle,
6841
- onPick: D
6835
+ onPick: W
6842
6836
  })
6843
6837
  }),
6844
- /* @__PURE__ */ r(_.ToggleButton, {
6838
+ /* @__PURE__ */ r(D.ToggleButton, {
6845
6839
  label: l("graph.annotations.arrowToolbar.sticker"),
6846
6840
  isPressed: v,
6847
- onClick: M,
6841
+ onClick: R,
6848
6842
  children: /* @__PURE__ */ r(a2, {
6849
6843
  size: "sm",
6850
6844
  title: ""
6851
6845
  })
6852
6846
  }),
6853
- /* @__PURE__ */ r(_.Separator, {}),
6854
- /* @__PURE__ */ r(_.IconButton, {
6847
+ /* @__PURE__ */ r(D.Separator, {}),
6848
+ /* @__PURE__ */ r(D.IconButton, {
6855
6849
  label: l("graph.annotations.arrowToolbar.remove"),
6856
6850
  onClick: S,
6857
6851
  children: /* @__PURE__ */ r(Et, {
@@ -6862,8 +6856,8 @@ var k2 = ({ arrow: e, arrowBox: t, panelRect: n, frameWidth: a, frameHeight: o,
6862
6856
  ]
6863
6857
  });
6864
6858
  }, ot = ({ options: e, current: t, onPick: n }) => {
6865
- const a = I(), o = (i) => () => n(i);
6866
- return /* @__PURE__ */ r(q, { children: e.map((i) => /* @__PURE__ */ g(_.MenuItem, {
6859
+ const a = E(), o = (i) => () => n(i);
6860
+ return /* @__PURE__ */ r(q, { children: e.map((i) => /* @__PURE__ */ g(D.MenuItem, {
6867
6861
  isSelected: i.value === t,
6868
6862
  onClick: o(i.value),
6869
6863
  children: [/* @__PURE__ */ r("span", { children: a(i.key) }), i.Icon !== void 0 && /* @__PURE__ */ r("span", {
@@ -6962,12 +6956,12 @@ var I2 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Qe = class {
6962
6956
  }));
6963
6957
  }
6964
6958
  }, O2 = ({ annotationId: e, arrow: t, panelRect: n }) => {
6965
- const { commands: a } = B(), o = $(), i = ee({
6966
- annotations: R((s) => s.spec.annotations),
6959
+ const { commands: a } = B(), o = V(), i = ee({
6960
+ annotations: N((s) => s.spec.annotations),
6967
6961
  arrow: t,
6968
6962
  panelRect: n
6969
6963
  }), l = ne(null);
6970
- return z(() => () => l.current?.finish(!1), []), ae((s) => ({ onPointerDown: (c) => {
6964
+ return F(() => () => l.current?.finish(!1), []), ae((s) => ({ onPointerDown: (c) => {
6971
6965
  if (c.button === 0 && l.current === null) {
6972
6966
  try {
6973
6967
  c.currentTarget.setPointerCapture(c.pointerId);
@@ -6998,8 +6992,8 @@ var I2 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Qe = class {
6998
6992
  a
6999
6993
  ]);
7000
6994
  }, M2 = [" ", "Enter"], yr = 4, N2 = ({ annotationId: e, arrow: t, panelRect: n }) => {
7001
- const { commands: a } = B(), o = $(), i = R((c) => c.spec.annotations), l = ee(i), s = ee(a.dispatch);
7002
- return z(() => () => {
6995
+ const { commands: a } = B(), o = V(), i = N((c) => c.spec.annotations), l = ee(i), s = ee(a.dispatch);
6996
+ return F(() => () => {
7003
6997
  for (const c of Oo) Sr({
7004
6998
  editorStore: o,
7005
6999
  annotationId: e,
@@ -7107,7 +7101,7 @@ var I2 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Qe = class {
7107
7101
  ...e
7108
7102
  });
7109
7103
  }, _2 = ({ arrow: e, committed: t, painted: n, isSettled: a, isMoved: o, panelRect: i, frameRect: l, frameElement: s }) => {
7110
- const c = I(), h = O2({
7104
+ const c = E(), h = O2({
7111
7105
  annotationId: e.id,
7112
7106
  arrow: t,
7113
7107
  panelRect: i
@@ -7148,7 +7142,7 @@ var I2 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Qe = class {
7148
7142
  ...a,
7149
7143
  ...o
7150
7144
  }), z2 = (e) => {
7151
- const t = R((n) => n.spec.annotations.arrows);
7145
+ const t = N((n) => n.spec.annotations.arrows);
7152
7146
  return e === null ? null : t.find((n) => n.id === e) ?? null;
7153
7147
  }, B2 = (e, t) => {
7154
7148
  const n = Ne(e).arrows;
@@ -7163,7 +7157,7 @@ var I2 = (e, t) => Math.hypot(t.x - e.x, t.y - e.y) >= 3, Qe = class {
7163
7157
  dragged: n?.annotationId === e ? n : null,
7164
7158
  isMoved: Ct(U(t, "move-drag"), e) !== null
7165
7159
  };
7166
- })), G2 = (e) => /* @__PURE__ */ r(L, {
7160
+ })), G2 = (e) => /* @__PURE__ */ r(P, {
7167
7161
  ...e,
7168
7162
  children: /* @__PURE__ */ g("g", {
7169
7163
  stroke: "currentColor",
@@ -7182,8 +7176,8 @@ var U2 = [
7182
7176
  "relative-difference": "graph.annotations.differenceArrowToolbar.labelKind.relativeDifference",
7183
7177
  proportion: "graph.annotations.differenceArrowToolbar.labelKind.proportion"
7184
7178
  }, X2 = (e) => {
7185
- const { formattingLocale: t } = B(), n = R((o) => o.config.parsingLocale), a = t ?? n;
7186
- return E(() => {
7179
+ const { formattingLocale: t } = B(), n = N((o) => o.config.parsingLocale), a = t ?? n;
7180
+ return O(() => {
7187
7181
  const o = gs(e.start, e.end);
7188
7182
  return U2.filter((i) => o || !Cr.includes(i) || i === e.label).map((i) => ({
7189
7183
  kind: i,
@@ -7213,47 +7207,47 @@ var U2 = [
7213
7207
  key: "graph.annotations.differenceArrowToolbar.size.large"
7214
7208
  }
7215
7209
  ], j2 = ({ arrow: e, color: t, labelBox: n, panelRect: a, frameWidth: o, frameHeight: i, frameElement: l }) => {
7216
- const s = I(), { commands: c } = B(), h = R((y) => y.spec.styles.overrides), d = R((y) => De(y.spec)), u = Ot(), p = X2(e), v = dc(X(), e.id), m = E(() => ({
7210
+ const s = E(), { commands: c } = B(), h = N((y) => y.spec.styles.overrides), d = N((y) => De(y.spec)), u = Ot(), p = X2(e), v = dc(X(), e.id), m = O(() => ({
7217
7211
  target: "annotation",
7218
7212
  kind: "differenceArrow",
7219
7213
  annotation: e.id
7220
- }), [e.id]), f = E(() => ({
7214
+ }), [e.id]), f = O(() => ({
7221
7215
  ...m,
7222
7216
  part: "label"
7223
- }), [m]), b = p.find((y) => y.kind === e.label), x = p.some((y) => y.isPickable && y.kind !== e.label), w = xr.find((y) => Hn[y.id].arrow.strokeWidth === v.strokeWidth), C = (y, V) => {
7217
+ }), [m]), b = p.find((y) => y.kind === e.label), x = p.some((y) => y.isPickable && y.kind !== e.label), w = xr.find((y) => Hn[y.id].arrow.strokeWidth === v.strokeWidth), C = (y, z) => {
7224
7218
  c.dispatch(new he({
7225
7219
  kind: "differenceArrow",
7226
7220
  id: e.id,
7227
7221
  patch: y
7228
- }), V);
7222
+ }), z);
7229
7223
  }, S = (y) => ({
7230
7224
  ...Ae(h, { select: m }, d)?.declarations,
7231
7225
  ...y
7232
- }), P = (y) => ({
7226
+ }), I = (y) => ({
7233
7227
  ...Ae(h, { select: f }, d)?.declarations,
7234
7228
  ...y
7235
- }), k = (y) => {
7229
+ }), L = (y) => {
7236
7230
  C(y), u.close();
7237
7231
  }, T = () => {
7238
7232
  c.dispatch(new We({ id: e.id })), l.focus({ preventScroll: !0 });
7239
- }, F = (y) => c.dispatch(new Oe({
7233
+ }, _ = (y) => c.dispatch(new Oe({
7240
7234
  list: "overrides",
7241
7235
  rule: {
7242
7236
  select: m,
7243
7237
  declarations: S({ stroke: y })
7244
7238
  }
7245
- }), { transient: !0 }), D = () => C({
7239
+ }), { transient: !0 }), W = () => C({
7246
7240
  start: e.end.anchor,
7247
7241
  end: e.start.anchor
7248
- }), M = (y) => () => k({ label: y }), N = (y) => () => {
7249
- const V = Hn[y];
7242
+ }), R = (y) => () => L({ label: y }), k = (y) => () => {
7243
+ const z = Hn[y];
7250
7244
  c.dispatch(new zl({
7251
7245
  annotationId: e.id,
7252
- arrow: S(V.arrow),
7253
- label: P(V.label)
7246
+ arrow: S(z.arrow),
7247
+ label: I(z.label)
7254
7248
  })), u.close();
7255
7249
  };
7256
- return /* @__PURE__ */ g(_.Root, {
7250
+ return /* @__PURE__ */ g(D.Root, {
7257
7251
  anchorBox: n,
7258
7252
  panelRect: a,
7259
7253
  frameWidth: o,
@@ -7261,15 +7255,15 @@ var U2 = [
7261
7255
  label: s("graph.annotations.differenceArrowToolbar.label"),
7262
7256
  testId: "difference-arrow-toolbar",
7263
7257
  children: [
7264
- /* @__PURE__ */ r(_.Dropdown, {
7258
+ /* @__PURE__ */ r(D.Dropdown, {
7265
7259
  label: s("graph.annotations.differenceArrowToolbar.labelKind.ariaLabel"),
7266
7260
  trigger: /* @__PURE__ */ r(Z2, { option: b }),
7267
7261
  isDisabled: !x,
7268
7262
  ...u.bind("labelKind"),
7269
- children: p.map((y) => /* @__PURE__ */ g(_.MenuItem, {
7263
+ children: p.map((y) => /* @__PURE__ */ g(D.MenuItem, {
7270
7264
  isSelected: y.kind === e.label,
7271
7265
  isDisabled: !y.isPickable,
7272
- onClick: M(y.kind),
7266
+ onClick: R(y.kind),
7273
7267
  children: [
7274
7268
  /* @__PURE__ */ r("span", { children: s(y.key) }),
7275
7269
  (y.isSuspect || !y.isPickable) && /* @__PURE__ */ r("span", {
@@ -7285,34 +7279,34 @@ var U2 = [
7285
7279
  ]
7286
7280
  }, y.kind))
7287
7281
  }),
7288
- /* @__PURE__ */ r(_.Separator, {}),
7289
- /* @__PURE__ */ r(_.ColorPicker, {
7282
+ /* @__PURE__ */ r(D.Separator, {}),
7283
+ /* @__PURE__ */ r(D.ColorPicker, {
7290
7284
  color: t,
7291
7285
  label: s("graph.annotations.differenceArrowToolbar.color"),
7292
- onChange: F,
7286
+ onChange: _,
7293
7287
  ...u.bind("color"),
7294
- children: /* @__PURE__ */ r(_.Swatch, { color: t })
7288
+ children: /* @__PURE__ */ r(D.Swatch, { color: t })
7295
7289
  }),
7296
- /* @__PURE__ */ r(_.Dropdown, {
7290
+ /* @__PURE__ */ r(D.Dropdown, {
7297
7291
  label: s("graph.annotations.differenceArrowToolbar.size.ariaLabel"),
7298
7292
  trigger: w === void 0 ? "" : s(w.key),
7299
7293
  ...u.bind("size"),
7300
- children: xr.map((y) => /* @__PURE__ */ r(_.MenuItem, {
7294
+ children: xr.map((y) => /* @__PURE__ */ r(D.MenuItem, {
7301
7295
  isSelected: y.id === w?.id,
7302
- onClick: N(y.id),
7296
+ onClick: k(y.id),
7303
7297
  children: s(y.key)
7304
7298
  }, y.id))
7305
7299
  }),
7306
- /* @__PURE__ */ r(_.Separator, {}),
7307
- /* @__PURE__ */ r(_.IconButton, {
7300
+ /* @__PURE__ */ r(D.Separator, {}),
7301
+ /* @__PURE__ */ r(D.IconButton, {
7308
7302
  label: s("graph.annotations.differenceArrowToolbar.swap"),
7309
- onClick: D,
7303
+ onClick: W,
7310
7304
  children: /* @__PURE__ */ r(G2, {
7311
7305
  size: "sm",
7312
7306
  title: ""
7313
7307
  })
7314
7308
  }),
7315
- /* @__PURE__ */ r(_.IconButton, {
7309
+ /* @__PURE__ */ r(D.IconButton, {
7316
7310
  label: s("graph.annotations.differenceArrowToolbar.remove"),
7317
7311
  onClick: T,
7318
7312
  children: /* @__PURE__ */ r(Et, {
@@ -7323,7 +7317,7 @@ var U2 = [
7323
7317
  ]
7324
7318
  });
7325
7319
  }, Z2 = ({ option: e }) => {
7326
- const t = I();
7320
+ const t = E();
7327
7321
  return e === void 0 ? null : /* @__PURE__ */ g(q, { children: [/* @__PURE__ */ r("span", {
7328
7322
  className: $2,
7329
7323
  children: t(e.key)
@@ -7402,16 +7396,16 @@ var J2 = "ydgo3h1", Q2 = "ydgo3h2", em = "ydgo3h3", tm = ({ clientPoint: e, pane
7402
7396
  });
7403
7397
  }
7404
7398
  }, am = ({ arrow: e, panelOrigin: t, panelRect: n }) => {
7405
- const { commands: a, anchorResolver: o } = B(), { engine: i } = je(), l = $(), s = ee({
7399
+ const { commands: a, anchorResolver: o } = B(), { engine: i } = je(), l = V(), s = ee({
7406
7400
  arrow: e,
7407
7401
  panelOrigin: t,
7408
7402
  panelRect: n,
7409
- ...R(fe((h) => ({
7403
+ ...N(fe((h) => ({
7410
7404
  layers: h.layers,
7411
7405
  coordSystem: h.coordSystem
7412
7406
  })))
7413
7407
  }), c = ne(null);
7414
- return z(() => () => c.current?.finish(!1), []), ae((h) => ({ onPointerDown: (d) => {
7408
+ return F(() => () => c.current?.finish(!1), []), ae((h) => ({ onPointerDown: (d) => {
7415
7409
  if (d.button === 0 && c.current === null) {
7416
7410
  try {
7417
7411
  d.currentTarget.setPointerCapture(d.pointerId);
@@ -7444,12 +7438,12 @@ var J2 = "ydgo3h1", Q2 = "ydgo3h2", em = "ydgo3h3", tm = ({ clientPoint: e, pane
7444
7438
  a
7445
7439
  ]);
7446
7440
  }, om = [" ", "Enter"], im = ({ arrow: e }) => {
7447
- const { commands: t, anchorResolver: n } = B(), a = $(), { layers: o, coordSystem: i, mainAxis: l } = R(fe((c) => ({
7441
+ const { commands: t, anchorResolver: n } = B(), a = V(), { layers: o, coordSystem: i, mainAxis: l } = N(fe((c) => ({
7448
7442
  layers: c.layers,
7449
7443
  coordSystem: c.coordSystem,
7450
7444
  mainAxis: Ys(c.coordSystem)
7451
7445
  }))), s = e.id;
7452
- return z(() => () => {
7446
+ return F(() => () => {
7453
7447
  const c = a.getState();
7454
7448
  U(c, "difference-arrow-endpoint-drag")?.annotationId === s && c.releaseInteraction("difference-arrow-endpoint-drag");
7455
7449
  }, [a, s]), ae((c) => ({ onKeyDown: (h) => {
@@ -7534,7 +7528,7 @@ var J2 = "ydgo3h1", Q2 = "ydgo3h2", em = "ydgo3h3", tm = ({ clientPoint: e, pane
7534
7528
  ...e
7535
7529
  });
7536
7530
  }, dm = ({ annotationId: e, ...t }) => {
7537
- const n = Oi(), a = E(() => n.find((o) => o.id === e), [n, e]);
7531
+ const n = Oi(), a = O(() => n.find((o) => o.id === e), [n, e]);
7538
7532
  return a === void 0 ? null : /* @__PURE__ */ r(um, {
7539
7533
  committedArrow: a.committedArrow,
7540
7534
  color: a.color,
@@ -7676,7 +7670,7 @@ var gm = {
7676
7670
  hovered: "_1ee8fau5 _1ee8fau4",
7677
7671
  selected: "_1ee8fau6 _1ee8fau4"
7678
7672
  }, fm = ({ panelRect: e }) => {
7679
- const t = Ne(e), n = na(), a = X(), o = Je(), i = J((f) => U(f, "move-drag")), l = J((f) => U(f, "shape-resize-drag")), s = J((f) => U(f, "arrow-endpoint-drag")), c = J((f) => U(f, "text-resize-drag")), h = J(Ri), d = E(() => ({
7673
+ const t = Ne(e), n = na(), a = X(), o = Je(), i = J((f) => U(f, "move-drag")), l = J((f) => U(f, "shape-resize-drag")), s = J((f) => U(f, "arrow-endpoint-drag")), c = J((f) => U(f, "text-resize-drag")), h = J(Ri), d = O(() => ({
7680
7674
  panel: {
7681
7675
  width: e.width,
7682
7676
  height: e.height
@@ -7901,18 +7895,18 @@ var gm = {
7901
7895
  key: "graph.annotations.shapeToolbar.border.thick"
7902
7896
  }
7903
7897
  ], Im = (e) => [...an].reverse().find((t) => t.width <= e) ?? an[0], Em = ({ shape: e, shapeBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
7904
- const l = I(), { commands: s } = B(), c = R((C) => C.spec.styles.overrides), h = R((C) => De(C.spec)), d = Ot(), u = X().annotation.shape(e.id).resolve(), p = Im(u.strokeWidth), v = E(() => ({
7898
+ const l = E(), { commands: s } = B(), c = N((C) => C.spec.styles.overrides), h = N((C) => De(C.spec)), d = Ot(), u = X().annotation.shape(e.id).resolve(), p = Im(u.strokeWidth), v = O(() => ({
7905
7899
  target: "annotation",
7906
7900
  kind: "shape",
7907
7901
  annotation: e.id
7908
7902
  }), [e.id]), m = (C, S) => {
7909
- const P = Ae(c, { select: v }, h)?.declarations ?? {};
7903
+ const I = Ae(c, { select: v }, h)?.declarations ?? {};
7910
7904
  s.dispatch(new Oe({
7911
7905
  list: "overrides",
7912
7906
  rule: {
7913
7907
  select: v,
7914
7908
  declarations: {
7915
- ...P,
7909
+ ...I,
7916
7910
  ...C
7917
7911
  }
7918
7912
  }
@@ -7922,7 +7916,7 @@ var gm = {
7922
7916
  }, b = (C) => m({ fill: C }, { transient: !0 }), x = (C) => m({ fillAlpha: C }, { transient: !0 }), w = (C) => () => {
7923
7917
  m({ strokeWidth: C }), d.close();
7924
7918
  };
7925
- return /* @__PURE__ */ g(_.Root, {
7919
+ return /* @__PURE__ */ g(D.Root, {
7926
7920
  anchorBox: t,
7927
7921
  panelRect: n,
7928
7922
  frameWidth: a,
@@ -7930,33 +7924,33 @@ var gm = {
7930
7924
  label: l("graph.annotations.shapeToolbar.label"),
7931
7925
  testId: "shape-toolbar",
7932
7926
  children: [
7933
- /* @__PURE__ */ r(_.ColorPicker, {
7927
+ /* @__PURE__ */ r(D.ColorPicker, {
7934
7928
  color: ut(u.fill),
7935
7929
  label: l("graph.annotations.shapeToolbar.color"),
7936
7930
  onChange: b,
7937
7931
  opacity: u.fillAlpha,
7938
7932
  onOpacityChange: x,
7939
7933
  ...d.bind("color"),
7940
- children: /* @__PURE__ */ r(_.Swatch, {
7934
+ children: /* @__PURE__ */ r(D.Swatch, {
7941
7935
  color: ut(u.fill),
7942
7936
  opacity: u.fillAlpha
7943
7937
  })
7944
7938
  }),
7945
- /* @__PURE__ */ r(_.Dropdown, {
7939
+ /* @__PURE__ */ r(D.Dropdown, {
7946
7940
  label: l("graph.annotations.shapeToolbar.border.ariaLabel"),
7947
7941
  trigger: /* @__PURE__ */ r(Do, {
7948
7942
  size: "sm",
7949
7943
  title: ""
7950
7944
  }),
7951
7945
  ...d.bind("border"),
7952
- children: an.map((C) => /* @__PURE__ */ r(_.MenuItem, {
7946
+ children: an.map((C) => /* @__PURE__ */ r(D.MenuItem, {
7953
7947
  isSelected: C.width === p?.width,
7954
7948
  onClick: w(C.width),
7955
7949
  children: l(C.key)
7956
7950
  }, C.width))
7957
7951
  }),
7958
- /* @__PURE__ */ r(_.Separator, {}),
7959
- /* @__PURE__ */ r(_.IconButton, {
7952
+ /* @__PURE__ */ r(D.Separator, {}),
7953
+ /* @__PURE__ */ r(D.IconButton, {
7960
7954
  label: l("graph.annotations.shapeToolbar.remove"),
7961
7955
  onClick: f,
7962
7956
  children: /* @__PURE__ */ r(Et, {
@@ -7968,7 +7962,7 @@ var gm = {
7968
7962
  });
7969
7963
  }, qo = (e) => {
7970
7964
  const t = ee(e), n = ne(null);
7971
- return z(() => () => n.current?.finish(!1), []), ae((a) => ({ onPointerDown: (o) => {
7965
+ return F(() => () => n.current?.finish(!1), []), ae((a) => ({ onPointerDown: (o) => {
7972
7966
  if (o.button !== 0 || n.current !== null) return;
7973
7967
  try {
7974
7968
  o.currentTarget.setPointerCapture(o.pointerId);
@@ -8021,8 +8015,8 @@ var gm = {
8021
8015
  }));
8022
8016
  }
8023
8017
  }, Mm = ({ annotationId: e, panelRect: t }) => {
8024
- const { commands: n } = B(), a = $(), o = ee({
8025
- annotations: R((i) => i.spec.annotations),
8018
+ const { commands: n } = B(), a = V(), o = ee({
8019
+ annotations: N((i) => i.spec.annotations),
8026
8020
  panelRect: t
8027
8021
  });
8028
8022
  return qo((i, l) => new Om({
@@ -8034,8 +8028,8 @@ var gm = {
8034
8028
  dispatch: n.dispatch
8035
8029
  }));
8036
8030
  }, Nm = [" ", "Enter"], Xo = (e) => {
8037
- const t = $(), n = ee(e);
8038
- return z(() => () => Lr(t, n.current), [t, n]), ae((a) => ({ onKeyDown: (o) => {
8031
+ const t = V(), n = ee(e);
8032
+ return F(() => () => Lr(t, n.current), [t, n]), ae((a) => ({ onKeyDown: (o) => {
8039
8033
  if (o.altKey || o.ctrlKey || o.metaKey || o.shiftKey) return;
8040
8034
  const i = t.getState(), l = n.current.readHeld();
8041
8035
  if (Nm.includes(o.key)) {
@@ -8057,7 +8051,7 @@ var gm = {
8057
8051
  const n = t.readHeld();
8058
8052
  n !== null && (e.getState().releaseInteraction(n.kind), t.commit(n));
8059
8053
  }, Pr = 4, Rm = ({ annotationId: e, panelRect: t }) => {
8060
- const { commands: n } = B(), a = $(), o = R((i) => i.spec.annotations);
8054
+ const { commands: n } = B(), a = V(), o = N((i) => i.spec.annotations);
8061
8055
  return Xo({
8062
8056
  readHeld: () => dn(U(a.getState(), "shape-resize-drag"), e),
8063
8057
  claim: () => {
@@ -8133,7 +8127,7 @@ var gm = {
8133
8127
  ...e
8134
8128
  });
8135
8129
  }, zm = ({ shape: e, region: t, isSettled: n, isMoved: a, panelRect: o, frameRect: i, frameElement: l }) => {
8136
- const s = I(), c = Mm({
8130
+ const s = E(), c = Mm({
8137
8131
  annotationId: e.id,
8138
8132
  panelRect: o
8139
8133
  }), h = Rm({
@@ -8170,7 +8164,7 @@ var gm = {
8170
8164
  })]
8171
8165
  });
8172
8166
  }, Bm = (e) => {
8173
- const t = R((n) => n.spec.annotations.shapes);
8167
+ const t = N((n) => n.spec.annotations.shapes);
8174
8168
  return e === null ? null : t.find((n) => n.id === e) ?? null;
8175
8169
  }, Hm = (e) => J(fe((t) => e === null ? {
8176
8170
  resizedRegion: null,
@@ -8178,7 +8172,7 @@ var gm = {
8178
8172
  } : {
8179
8173
  resizedRegion: dn(U(t, "shape-resize-drag"), e)?.region ?? null,
8180
8174
  isMoved: Ct(U(t, "move-drag"), e) !== null
8181
- })), Gm = ({ textColor: e, ...t }) => /* @__PURE__ */ g(L, {
8175
+ })), Gm = ({ textColor: e, ...t }) => /* @__PURE__ */ g(P, {
8182
8176
  ...t,
8183
8177
  children: [/* @__PURE__ */ g("g", {
8184
8178
  stroke: "currentColor",
@@ -8286,11 +8280,11 @@ var Jo = [
8286
8280
  Icon: co
8287
8281
  }
8288
8282
  ], ng = ({ annotation: e, textBox: t, panelRect: n, frameWidth: a, frameHeight: o, frameElement: i }) => {
8289
- const l = I(), { commands: s } = B(), c = R((y) => y.spec.styles.overrides), h = R((y) => De(y.spec)), d = $(), u = Ot(), p = X().annotation.text(e.id).resolve(), v = Vm(e.content), m = Jm(v.font), f = Qm(v.fontSize), b = v.color ?? p.textColor, x = E(() => ({
8283
+ const l = E(), { commands: s } = B(), c = N((y) => y.spec.styles.overrides), h = N((y) => De(y.spec)), d = V(), u = Ot(), p = X().annotation.text(e.id).resolve(), v = Vm(e.content), m = Jm(v.font), f = Qm(v.fontSize), b = v.color ?? p.textColor, x = O(() => ({
8290
8284
  target: "annotation",
8291
8285
  kind: "text",
8292
8286
  annotation: e.id
8293
- }), [e.id]), w = (y, V) => {
8287
+ }), [e.id]), w = (y, z) => {
8294
8288
  const re = Ae(c, { select: x }, h)?.declarations ?? {};
8295
8289
  s.dispatch(new Oe({
8296
8290
  list: "overrides",
@@ -8301,28 +8295,28 @@ var Jo = [
8301
8295
  ...y
8302
8296
  }
8303
8297
  }
8304
- }), V);
8305
- }, C = (y, V) => {
8298
+ }), z);
8299
+ }, C = (y, z) => {
8306
8300
  s.dispatch(new he({
8307
8301
  kind: "text",
8308
8302
  id: e.id,
8309
8303
  patch: y
8310
- }), V);
8311
- }, S = () => d.getState().caret?.editor?.getJSON() ?? e.content, P = (y, V) => {
8304
+ }), z);
8305
+ }, S = () => d.getState().caret?.editor?.getJSON() ?? e.content, I = (y, z) => {
8312
8306
  const re = S(), xe = d.getState().caret?.editor ?? null;
8313
8307
  if (xe !== null && !Wm(re)) {
8314
8308
  xe.chain().focus().setMark(vt, y).run();
8315
8309
  return;
8316
8310
  }
8317
- C({ content: $m(re, y) }, V);
8318
- }, k = () => {
8311
+ C({ content: $m(re, y) }, z);
8312
+ }, L = () => {
8319
8313
  s.dispatch(new We({ id: e.id })), i.focus({ preventScroll: !0 });
8320
- }, T = (y) => w(rg(y), { transient: !0 }), F = (y) => P({ color: y }, { transient: !0 }), D = (y) => () => {
8321
- P({ font: y }), u.close();
8322
- }, M = (y) => () => {
8323
- P({ fontSize: y }), u.close();
8324
- }, N = (y) => C({ content: Um(S(), y) });
8325
- return /* @__PURE__ */ g(_.Root, {
8314
+ }, T = (y) => w(rg(y), { transient: !0 }), _ = (y) => I({ color: y }, { transient: !0 }), W = (y) => () => {
8315
+ I({ font: y }), u.close();
8316
+ }, R = (y) => () => {
8317
+ I({ fontSize: y }), u.close();
8318
+ }, k = (y) => C({ content: Um(S(), y) });
8319
+ return /* @__PURE__ */ g(D.Root, {
8326
8320
  anchorBox: t,
8327
8321
  panelRect: n,
8328
8322
  frameWidth: a,
@@ -8330,18 +8324,18 @@ var Jo = [
8330
8324
  label: l("graph.annotations.textToolbar.label"),
8331
8325
  testId: "text-toolbar",
8332
8326
  children: [
8333
- /* @__PURE__ */ r(_.ColorPicker, {
8327
+ /* @__PURE__ */ r(D.ColorPicker, {
8334
8328
  color: ut(p.fill),
8335
8329
  label: l("graph.annotations.textToolbar.background"),
8336
8330
  hasTransparentOption: !0,
8337
8331
  onChange: T,
8338
8332
  ...u.bind("background"),
8339
- children: /* @__PURE__ */ r(_.Swatch, { color: p.fill === "transparent" ? mu : ut(p.fill) })
8333
+ children: /* @__PURE__ */ r(D.Swatch, { color: p.fill === "transparent" ? mu : ut(p.fill) })
8340
8334
  }),
8341
- /* @__PURE__ */ r(_.ColorPicker, {
8335
+ /* @__PURE__ */ r(D.ColorPicker, {
8342
8336
  color: b,
8343
8337
  label: l("graph.annotations.textToolbar.color"),
8344
- onChange: F,
8338
+ onChange: _,
8345
8339
  ...u.bind("color"),
8346
8340
  children: /* @__PURE__ */ r(Gm, {
8347
8341
  size: "sm",
@@ -8349,44 +8343,44 @@ var Jo = [
8349
8343
  title: ""
8350
8344
  })
8351
8345
  }),
8352
- /* @__PURE__ */ r(_.Dropdown, {
8346
+ /* @__PURE__ */ r(D.Dropdown, {
8353
8347
  label: l("graph.annotations.textToolbar.font.ariaLabel"),
8354
8348
  trigger: /* @__PURE__ */ r("span", {
8355
8349
  style: { fontFamily: m?.fontFamily },
8356
8350
  children: "Aa"
8357
8351
  }),
8358
8352
  ...u.bind("font"),
8359
- children: Yo.map((y) => /* @__PURE__ */ r(_.MenuItem, {
8353
+ children: Yo.map((y) => /* @__PURE__ */ r(D.MenuItem, {
8360
8354
  isSelected: y.id === m?.id,
8361
- onClick: D(y.id),
8355
+ onClick: W(y.id),
8362
8356
  children: /* @__PURE__ */ r("span", {
8363
8357
  style: { fontFamily: y.fontFamily },
8364
8358
  children: l(y.key)
8365
8359
  })
8366
8360
  }, y.id))
8367
8361
  }),
8368
- /* @__PURE__ */ r(_.Dropdown, {
8362
+ /* @__PURE__ */ r(D.Dropdown, {
8369
8363
  label: l("graph.annotations.textToolbar.fontSize.ariaLabel"),
8370
8364
  trigger: f === null ? "" : l(f.key),
8371
8365
  ...u.bind("fontSize"),
8372
- children: Jo.map((y) => /* @__PURE__ */ r(_.MenuItem, {
8366
+ children: Jo.map((y) => /* @__PURE__ */ r(D.MenuItem, {
8373
8367
  isSelected: y.size === f?.size,
8374
- onClick: M(y.size),
8368
+ onClick: R(y.size),
8375
8369
  children: /* @__PURE__ */ r("span", {
8376
8370
  style: { fontSize: eg(y.size) },
8377
8371
  children: l(y.key)
8378
8372
  })
8379
8373
  }, y.size))
8380
8374
  }),
8381
- /* @__PURE__ */ r(_.Separator, {}),
8375
+ /* @__PURE__ */ r(D.Separator, {}),
8382
8376
  /* @__PURE__ */ r(ag, {
8383
8377
  current: v.alignment ?? "center",
8384
- onPick: N
8378
+ onPick: k
8385
8379
  }),
8386
- /* @__PURE__ */ r(_.Separator, {}),
8387
- /* @__PURE__ */ r(_.IconButton, {
8380
+ /* @__PURE__ */ r(D.Separator, {}),
8381
+ /* @__PURE__ */ r(D.IconButton, {
8388
8382
  label: l("graph.annotations.textToolbar.remove"),
8389
- onClick: k,
8383
+ onClick: L,
8390
8384
  children: /* @__PURE__ */ r(Et, {
8391
8385
  size: "sm",
8392
8386
  title: ""
@@ -8398,8 +8392,8 @@ var Jo = [
8398
8392
  fill: e,
8399
8393
  fillAlpha: ku(e) ? ds : 1
8400
8394
  }, ag = ({ current: e, onPick: t }) => {
8401
- const n = I(), a = (o) => () => t(o);
8402
- return /* @__PURE__ */ r(q, { children: tg.map((o) => /* @__PURE__ */ r(_.ToggleButton, {
8395
+ const n = E(), a = (o) => () => t(o);
8396
+ return /* @__PURE__ */ r(q, { children: tg.map((o) => /* @__PURE__ */ r(D.ToggleButton, {
8403
8397
  label: n(`graph.annotations.textToolbar.align.${o.alignment}`),
8404
8398
  isPressed: o.alignment === e,
8405
8399
  onClick: a(o.alignment),
@@ -8476,8 +8470,8 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8476
8470
  }));
8477
8471
  }
8478
8472
  }, cg = ({ annotationId: e, panelRect: t }) => {
8479
- const { commands: n } = B(), a = $(), o = ee({
8480
- annotations: R((i) => i.spec.annotations),
8473
+ const { commands: n } = B(), a = V(), o = ee({
8474
+ annotations: N((i) => i.spec.annotations),
8481
8475
  panelRect: t
8482
8476
  });
8483
8477
  return qo((i, l) => new sg({
@@ -8489,7 +8483,7 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8489
8483
  dispatch: n.dispatch
8490
8484
  }));
8491
8485
  }, dg = 4, ug = ({ annotationId: e, panelRect: t }) => {
8492
- const { commands: n } = B(), a = $(), o = R((l) => l.spec.annotations), i = (l, s) => {
8486
+ const { commands: n } = B(), a = V(), o = N((l) => l.spec.annotations), i = (l, s) => {
8493
8487
  const c = ft(o, e);
8494
8488
  return c === null ? null : {
8495
8489
  kind: "text-resize-drag",
@@ -8545,7 +8539,7 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8545
8539
  ...e
8546
8540
  });
8547
8541
  }, mg = ({ annotation: e, textBox: t, isSettled: n, isMoved: a, isResizable: o, hasCaret: i, panelRect: l, frameRect: s, frameElement: c }) => {
8548
- const h = I(), d = cg({
8542
+ const h = E(), d = cg({
8549
8543
  annotationId: e.id,
8550
8544
  panelRect: l
8551
8545
  }), u = ug({
@@ -8582,7 +8576,7 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8582
8576
  })]
8583
8577
  });
8584
8578
  }, gg = (e) => {
8585
- const t = R((n) => n.spec.annotations.textAnnotations);
8579
+ const t = N((n) => n.spec.annotations.textAnnotations);
8586
8580
  return e === null ? null : t.find((n) => n.id === e) ?? null;
8587
8581
  }, vg = (e) => J(fe((t) => e === null ? {
8588
8582
  resized: null,
@@ -8591,7 +8585,7 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8591
8585
  resized: un(U(t, "text-resize-drag"), e),
8592
8586
  isMoved: Ct(U(t, "move-drag"), e) !== null
8593
8587
  })), fg = (e, t, n) => {
8594
- const a = Ne(e), o = na(), i = X(), l = E(() => ({
8588
+ const a = Ne(e), o = na(), i = X(), l = O(() => ({
8595
8589
  panel: {
8596
8590
  width: e.width,
8597
8591
  height: e.height
@@ -8605,7 +8599,7 @@ var Qo = ({ width: e }) => de(60, e), ig = (e, t) => ({
8605
8599
  i
8606
8600
  ]);
8607
8601
  return t === null ? null : Uo(a, t, n, l)?.rect ?? null;
8608
- }, bg = (e) => /* @__PURE__ */ r(L, {
8602
+ }, bg = (e) => /* @__PURE__ */ r(P, {
8609
8603
  ...e,
8610
8604
  children: /* @__PURE__ */ g("g", {
8611
8605
  stroke: "currentColor",
@@ -8627,7 +8621,7 @@ var xg = "_1tyillx2", wg = {
8627
8621
  closed: "_1tyillx7",
8628
8622
  open: "_1tyillx8"
8629
8623
  }, kg = ({ interaction: e, panelRect: t }) => {
8630
- const n = $(), a = X().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = Lg(e), l = E(() => {
8624
+ const n = V(), a = X().editOutline.selected().resolve().stroke, o = e.kind === "trigger" || e.kind === "menu" ? e.anchor : null, i = Lg(e), l = O(() => {
8631
8625
  if (o === null) return null;
8632
8626
  const s = dt(o.position, t);
8633
8627
  return {
@@ -8643,9 +8637,9 @@ var xg = "_1tyillx2", wg = {
8643
8637
  t,
8644
8638
  i
8645
8639
  ]);
8646
- return z(() => {
8640
+ return F(() => {
8647
8641
  n.getState().setMenuTrigger(l);
8648
- }, [n, l]), z(() => () => n.getState().setMenuTrigger(null), [n]), o === null || l === null ? null : /* @__PURE__ */ r("div", {
8642
+ }, [n, l]), F(() => () => n.getState().setMenuTrigger(null), [n]), o === null || l === null ? null : /* @__PURE__ */ r("div", {
8649
8643
  "aria-hidden": "true",
8650
8644
  "data-testid": "observation-menu-trigger",
8651
8645
  "data-state": i,
@@ -8664,8 +8658,8 @@ var xg = "_1tyillx2", wg = {
8664
8658
  })
8665
8659
  });
8666
8660
  }, Lg = (e) => e.kind === "menu" ? "open" : e.kind === "trigger" && e.isEngaged ? "hovered" : "rest", Pg = 'button:not([disabled]):not([tabindex="-1"]), [tabindex]:not([tabindex="-1"])', Ig = (e, t) => {
8667
- const { chartId: n } = B(), a = $();
8668
- z(() => {
8661
+ const { chartId: n } = B(), a = V();
8662
+ F(() => {
8669
8663
  if (t === null) return;
8670
8664
  const o = (i) => {
8671
8665
  if (i.key !== "Tab" || i.defaultPrevented || !Xe(i.target, e, n) || Ua(i.target) || a.getState().standingInteraction?.kind === "chrome-popup") return;
@@ -8683,8 +8677,8 @@ var xg = "_1tyillx2", wg = {
8683
8677
  a
8684
8678
  ]);
8685
8679
  }, Eg = (e, t) => typeof document.elementsFromPoint == "function" ? document.elementsFromPoint(e, t) : [], ni = (e, t, n) => yt(Eg(e, t), n), Og = (e) => {
8686
- const { selectionStore: t, chartId: n } = B(), a = $();
8687
- z(() => {
8680
+ const { selectionStore: t, chartId: n } = B(), a = V();
8681
+ F(() => {
8688
8682
  let o = null;
8689
8683
  const i = (c) => {
8690
8684
  const { caret: h } = a.getState(), d = h === null ? null : ni(c.clientX, c.clientY, e);
@@ -8893,37 +8887,37 @@ var xg = "_1tyillx2", wg = {
8893
8887
  target: e,
8894
8888
  observationIndex: n ? t : null
8895
8889
  }, Ug = (e, t, n, a, o) => {
8896
- const { commands: i, selectionStore: l, store: s } = B(), c = $(), h = R((b) => b.spec.annotations), d = Re[Le()], u = ee(d.graphPress), p = ee({
8890
+ const { commands: i, selectionStore: l, store: s } = B(), c = V(), h = N((b) => b.spec.annotations), d = Re[Le()], u = ee(d.graphPress), p = ee({
8897
8891
  annotations: h,
8898
8892
  panelRect: n
8899
8893
  }), v = ee(t), m = ee(o), f = ne(null);
8900
- z(() => () => f.current?.finish(!1), []), z(() => l.subscribe(({ selection: b }) => {
8894
+ F(() => () => f.current?.finish(!1), []), F(() => l.subscribe(({ selection: b }) => {
8901
8895
  const x = c.getState().pressedObservation, [w, ...C] = b, S = w !== void 0 && C.length === 0 && x !== null && fa(w, x.selectedFor);
8902
8896
  x !== null && !S && c.getState().setPressedObservation(null);
8903
- }), [c, l]), z(() => {
8904
- const b = (k) => ri({
8905
- target: k.target,
8906
- clientX: k.clientX,
8907
- clientY: k.clientY
8908
- }, a()).targetAtPoint, x = (k) => {
8909
- if (!(k.target instanceof Element)) return !1;
8910
- const T = k.target.closest(Kr);
8911
- return T !== null && e.contains(T) && yt([k.target], e) === null;
8912
- }, w = (k, T) => {
8897
+ }), [c, l]), F(() => {
8898
+ const b = (L) => ri({
8899
+ target: L.target,
8900
+ clientX: L.clientX,
8901
+ clientY: L.clientY
8902
+ }, a()).targetAtPoint, x = (L) => {
8903
+ if (!(L.target instanceof Element)) return !1;
8904
+ const T = L.target.closest(Kr);
8905
+ return T !== null && e.contains(T) && yt([L.target], e) === null;
8906
+ }, w = (L, T) => {
8913
8907
  if (f.current !== null || !cl(p.current.annotations, T.id)) return;
8914
8908
  try {
8915
- e.setPointerCapture(k.pointerId);
8909
+ e.setPointerCapture(L.pointerId);
8916
8910
  } catch {
8917
8911
  return;
8918
8912
  }
8919
- k.preventDefault();
8920
- const F = new Vg({
8913
+ L.preventDefault();
8914
+ const _ = new Vg({
8921
8915
  handle: e,
8922
- pointerId: k.pointerId,
8916
+ pointerId: L.pointerId,
8923
8917
  annotationId: T.id,
8924
8918
  press: {
8925
- x: k.clientX,
8926
- y: k.clientY
8919
+ x: L.clientX,
8920
+ y: L.clientY
8927
8921
  },
8928
8922
  readInputs: () => p.current,
8929
8923
  editorStore: c,
@@ -8932,64 +8926,64 @@ var xg = "_1tyillx2", wg = {
8932
8926
  f.current = null;
8933
8927
  }
8934
8928
  });
8935
- f.current = F, F.start();
8936
- }, C = (k, T) => {
8937
- const F = l.getState(), { layers: D, config: M } = s.getState().scene, N = T.kind === "select-observations" && T.observationIndex !== null ? $i(T.observationIndex, D, T.target, M.parsingLocale) : null;
8938
- switch (c.getState().setPressedObservation(N), T.kind) {
8929
+ f.current = _, _.start();
8930
+ }, C = (L, T) => {
8931
+ const _ = l.getState(), { layers: W, config: R } = s.getState().scene, k = T.kind === "select-observations" && T.observationIndex !== null ? $i(T.observationIndex, W, T.target, R.parsingLocale) : null;
8932
+ switch (c.getState().setPressedObservation(k), T.kind) {
8939
8933
  case "select-annotation":
8940
- F.setSelection([T.target]), w(k, T.target);
8934
+ _.setSelection([T.target]), w(L, T.target);
8941
8935
  return;
8942
8936
  case "select-observations":
8943
8937
  case "select-band":
8944
8938
  case "select-guide":
8945
8939
  case "select-graph":
8946
- F.setSelection([T.target]);
8940
+ _.setSelection([T.target]);
8947
8941
  return;
8948
8942
  case "clear":
8949
- F.clearSelection();
8943
+ _.clearSelection();
8950
8944
  return;
8951
8945
  default:
8952
8946
  throw new kl({ message: `No press outcome for: ${JSON.stringify(T)}` });
8953
8947
  }
8954
- }, S = (k) => {
8955
- if (k.button !== 0 || Xt(k.target) || Ka(k, v.current, c.getState().menuTrigger) || x(k)) return;
8956
- const T = $g(b(k), {
8948
+ }, S = (L) => {
8949
+ if (L.button !== 0 || Xt(L.target) || Ka(L, v.current, c.getState().menuTrigger) || x(L)) return;
8950
+ const T = $g(b(L), {
8957
8951
  canSelectGraph: u.current,
8958
- isWithinFrame: k.target instanceof Node && e.contains(k.target),
8952
+ isWithinFrame: L.target instanceof Node && e.contains(L.target),
8959
8953
  caretAnnotationId: c.getState().caret?.annotationId ?? null
8960
8954
  });
8961
- T.kind !== "keep-caret" && (c.getState().setCaret(null), C(k, T));
8962
- }, P = (k) => {
8963
- if (Xt(k.target) || x(k)) return;
8964
- const T = b(k), { layers: F, guides: D, config: M } = s.getState().scene, N = l.getState(), y = c.getState();
8955
+ T.kind !== "keep-caret" && (c.getState().setCaret(null), C(L, T));
8956
+ }, I = (L) => {
8957
+ if (Xt(L.target) || x(L)) return;
8958
+ const T = b(L), { layers: _, guides: W, config: R } = s.getState().scene, k = l.getState(), y = c.getState();
8965
8959
  switch (T?.kind) {
8966
8960
  case "observations": {
8967
- const { observations: V } = T, re = zg(V, F, M.parsingLocale);
8961
+ const { observations: z } = T, re = zg(z, _, R.parsingLocale);
8968
8962
  if (re === null) return;
8969
- const { observationIndex: xe } = V;
8963
+ const { observationIndex: xe } = z;
8970
8964
  y.setPressedObservation({
8971
8965
  observationIndex: xe,
8972
8966
  predicate: re.predicate,
8973
8967
  selectedFor: re
8974
- }), N.setSelection([re]);
8968
+ }), k.setSelection([re]);
8975
8969
  return;
8976
8970
  }
8977
8971
  case "axis":
8978
8972
  case "legend": {
8979
- const V = Mg(T, {
8980
- layers: F,
8981
- legends: D.legends.drawn,
8973
+ const z = Mg(T, {
8974
+ layers: _,
8975
+ legends: W.legends.drawn,
8982
8976
  formattedAxes: m.current,
8983
- parsingLocale: M.parsingLocale
8977
+ parsingLocale: R.parsingLocale
8984
8978
  });
8985
- if (V === null) return;
8986
- N.setSelection([V]);
8979
+ if (z === null) return;
8980
+ k.setSelection([z]);
8987
8981
  return;
8988
8982
  }
8989
8983
  case "annotation": {
8990
- const { target: V } = T;
8991
- if (!p.current.annotations.textAnnotations.some((re) => re.id === V.id)) return;
8992
- N.setSelection([V]), y.setCaret(V.id);
8984
+ const { target: z } = T;
8985
+ if (!p.current.annotations.textAnnotations.some((re) => re.id === z.id)) return;
8986
+ k.setSelection([z]), y.setCaret(z.id);
8993
8987
  return;
8994
8988
  }
8995
8989
  case "grid":
@@ -8998,8 +8992,8 @@ var xg = "_1tyillx2", wg = {
8998
8992
  return;
8999
8993
  }
9000
8994
  };
9001
- return document.addEventListener("pointerdown", S), document.addEventListener("dblclick", P), () => {
9002
- document.removeEventListener("pointerdown", S), document.removeEventListener("dblclick", P);
8995
+ return document.addEventListener("pointerdown", S), document.addEventListener("dblclick", I), () => {
8996
+ document.removeEventListener("pointerdown", S), document.removeEventListener("dblclick", I);
9003
8997
  };
9004
8998
  }, [
9005
8999
  e,
@@ -9014,7 +9008,7 @@ var xg = "_1tyillx2", wg = {
9014
9008
  a
9015
9009
  ]);
9016
9010
  }, Kg = (e) => {
9017
- const { selectionStore: t, commands: n, chartId: a } = B(), o = $(), i = ee(R((d) => d.spec.annotations.textAnnotations)), { annotations: l } = Re[Le()], s = ae((d) => {
9011
+ const { selectionStore: t, commands: n, chartId: a } = B(), o = V(), i = ee(N((d) => d.spec.annotations.textAnnotations)), { annotations: l } = Re[Le()], s = ae((d) => {
9018
9012
  const { selection: u } = t.getState(), p = l ? nn(u) : null;
9019
9013
  p !== null && (d.preventDefault(), n.dispatch(new We({ id: p })), e.focus({ preventScroll: !0 }));
9020
9014
  }, [
@@ -9049,7 +9043,7 @@ var xg = "_1tyillx2", wg = {
9049
9043
  e,
9050
9044
  a
9051
9045
  ]);
9052
- z(() => {
9046
+ F(() => {
9053
9047
  const d = (u) => {
9054
9048
  if (!Xe(u.target, e, a) || Ua(u.target)) return;
9055
9049
  const p = qg(u.target), v = o.getState().caret !== null && !ct(u.target, a);
@@ -9076,7 +9070,7 @@ var xg = "_1tyillx2", wg = {
9076
9070
  o
9077
9071
  ]);
9078
9072
  }, qg = (e) => e instanceof HTMLElement && (e.isContentEditable || e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement), Xg = (e, t) => {
9079
- const n = $(), { store: a } = B(), { engine: o, overlayRef: i } = je(), l = ee(t), { annotations: s, observationsPress: c, guidePress: h, tolerance: d } = Re[Le()], u = rl(), p = c && !u;
9073
+ const n = V(), { store: a } = B(), { engine: o, overlayRef: i } = je(), l = ee(t), { annotations: s, observationsPress: c, guidePress: h, tolerance: d } = Re[Le()], u = rl(), p = c && !u;
9080
9074
  return ae(() => ({
9081
9075
  frameElement: e,
9082
9076
  captureRect: i.current,
@@ -9101,11 +9095,11 @@ var xg = "_1tyillx2", wg = {
9101
9095
  a
9102
9096
  ]);
9103
9097
  }, jg = () => {
9104
- const e = Re[Le()].observationMenu, t = ol((l) => e ? l.hover.primary : null), { layers: n, coordSystem: a } = R(fe((l) => ({
9098
+ const e = Re[Le()].observationMenu, t = ol((l) => e ? l.hover.primary : null), { layers: n, coordSystem: a } = N(fe((l) => ({
9105
9099
  layers: l.layers,
9106
9100
  coordSystem: l.coordSystem
9107
9101
  }))), { anchorResolver: o } = B(), i = Yr();
9108
- return E(() => {
9102
+ return O(() => {
9109
9103
  if (t === null) return null;
9110
9104
  const l = n.find((h) => h.id === t.layerId);
9111
9105
  if (l === void 0) return null;
@@ -9132,7 +9126,7 @@ var xg = "_1tyillx2", wg = {
9132
9126
  ]);
9133
9127
  }, Zg = { kind: "idle" }, ai = () => {
9134
9128
  const e = J((a) => a.standingInteraction), t = J((a) => a.editTargetUnderPointer?.kind === "menu-trigger"), n = jg();
9135
- return E(() => e !== null ? e : n === null ? Zg : {
9129
+ return O(() => e !== null ? e : n === null ? Zg : {
9136
9130
  kind: "trigger",
9137
9131
  anchor: n,
9138
9132
  isEngaged: t
@@ -9142,8 +9136,8 @@ var xg = "_1tyillx2", wg = {
9142
9136
  t
9143
9137
  ]);
9144
9138
  }, Yg = (e, t) => e.x >= 0 && e.x <= t.width && e.y >= 0 && e.y <= t.height, Jg = (e, t, n) => {
9145
- const a = $(), { selectionStore: o } = B(), { store: i, engine: l } = je(), s = ee(e), c = ee(t), h = ee(n);
9146
- z(() => {
9139
+ const a = V(), { selectionStore: o } = B(), { store: i, engine: l } = je(), s = ee(e), c = ee(t), h = ee(n);
9140
+ F(() => {
9147
9141
  const d = (f) => Ka(f, c.current, a.getState().menuTrigger), u = (f) => {
9148
9142
  if (d(f) || o.getState().selection.length > 0) return;
9149
9143
  const b = h.current, x = c.current, w = {
@@ -9181,13 +9175,13 @@ var xg = "_1tyillx2", wg = {
9181
9175
  h
9182
9176
  ]);
9183
9177
  }, Qg = (e, t, n) => {
9184
- const a = $(), { store: o } = B(), { store: i } = je(), l = ee(t), s = Re[Le()].observationsPress;
9185
- z(() => (i.getState().setQueryOwnedByEditor(s), () => i.getState().setQueryOwnedByEditor(!1)), [i, s]), z(() => {
9178
+ const a = V(), { store: o } = B(), { store: i } = je(), l = ee(t), s = Re[Le()].observationsPress;
9179
+ F(() => (i.getState().setQueryOwnedByEditor(s), () => i.getState().setQueryOwnedByEditor(!1)), [i, s]), F(() => {
9186
9180
  let c = null, h = null, d = !1;
9187
9181
  const u = (S) => {
9188
9182
  if (!s) return;
9189
- const P = i.getState();
9190
- P.isPointerSuspended || S === null && P.hover.primary === null || P.setHoverState(S ?? gn);
9183
+ const I = i.getState();
9184
+ I.isPointerSuspended || S === null && I.hover.primary === null || I.setHoverState(S ?? gn);
9191
9185
  }, p = () => {
9192
9186
  if (c = null, h === null) return;
9193
9187
  const S = a.getState();
@@ -9195,16 +9189,16 @@ var xg = "_1tyillx2", wg = {
9195
9189
  const T = S.menuTrigger !== null && vn({
9196
9190
  x: h.clientX - l.current.x,
9197
9191
  y: h.clientY - l.current.y
9198
- }, S.menuTrigger), F = S.editTargetUnderPointer;
9199
- T ? S.setEditTargetUnderPointer({ kind: "menu-trigger" }) : F?.kind === "menu-trigger" && S.setEditTargetUnderPointer(null);
9192
+ }, S.menuTrigger), _ = S.editTargetUnderPointer;
9193
+ T ? S.setEditTargetUnderPointer({ kind: "menu-trigger" }) : _?.kind === "menu-trigger" && S.setEditTargetUnderPointer(null);
9200
9194
  return;
9201
9195
  }
9202
9196
  d && (d = !1, h = {
9203
9197
  ...h,
9204
9198
  target: e0(h)
9205
9199
  });
9206
- const { targetAtPoint: P, hover: k } = ri(h, n());
9207
- S.setEditTargetUnderPointer(P), u(k);
9200
+ const { targetAtPoint: I, hover: L } = ri(h, n());
9201
+ S.setEditTargetUnderPointer(I), u(L);
9208
9202
  }, v = () => {
9209
9203
  c === null && (c = requestAnimationFrame(p));
9210
9204
  }, m = () => {
@@ -9219,10 +9213,10 @@ var xg = "_1tyillx2", wg = {
9219
9213
  }, d = !1, v();
9220
9214
  }, x = () => {
9221
9215
  h = null, c !== null && (cancelAnimationFrame(c), c = null), f();
9222
- }, w = a.subscribe((S, P) => {
9223
- st(P.standingInteraction) && !st(S.standingInteraction) && m();
9224
- }), C = o.subscribe((S, P) => {
9225
- S.scene !== P.scene && (st(a.getState().standingInteraction) || m());
9216
+ }, w = a.subscribe((S, I) => {
9217
+ st(I.standingInteraction) && !st(S.standingInteraction) && m();
9218
+ }), C = o.subscribe((S, I) => {
9219
+ S.scene !== I.scene && (st(a.getState().standingInteraction) || m());
9226
9220
  });
9227
9221
  return e.addEventListener("pointermove", b), e.addEventListener("pointerleave", x), () => {
9228
9222
  c !== null && cancelAnimationFrame(c), w(), C(), e.removeEventListener("pointermove", b), e.removeEventListener("pointerleave", x), f();
@@ -9250,10 +9244,10 @@ var xg = "_1tyillx2", wg = {
9250
9244
  return !1;
9251
9245
  }
9252
9246
  }, Er = "editor", Or = [], t0 = (e, t, n, a, o) => {
9253
- const i = ai(), { store: l } = je(), s = pn().length > 0, c = Re[Le()].holdsHoverWhileSelected, h = J((m) => m.menuTrigger), d = i.kind === "menu", u = E(() => h === null ? Or : [vs(h)], [h]), p = Xg(e, t);
9254
- Qg(e, t, p), Ug(e, t, n, p, o), Jg(i, t, n), Og(e), Kg(e), Ig(e, a), z(() => (l.getState().publishPointerRegions(Er, u), () => l.getState().publishPointerRegions(Er, Or)), [l, u]);
9247
+ const i = ai(), { store: l } = je(), s = pn().length > 0, c = Re[Le()].holdsHoverWhileSelected, h = J((m) => m.menuTrigger), d = i.kind === "menu", u = O(() => h === null ? Or : [vs(h)], [h]), p = Xg(e, t);
9248
+ Qg(e, t, p), Ug(e, t, n, p, o), Jg(i, t, n), Og(e), Kg(e), Ig(e, a), F(() => (l.getState().publishPointerRegions(Er, u), () => l.getState().publishPointerRegions(Er, Or)), [l, u]);
9255
9249
  const v = d || s && c;
9256
- z(() => (l.getState().setPointerSuspended(v), () => l.getState().setPointerSuspended(!1)), [l, v]), z(() => {
9250
+ F(() => (l.getState().setPointerSuspended(v), () => l.getState().setPointerSuspended(!1)), [l, v]), F(() => {
9257
9251
  if (!s || !c) return;
9258
9252
  const m = l.getState();
9259
9253
  m.setHoverState(gn), m.setTooltipAnchor(null);
@@ -9263,11 +9257,11 @@ var xg = "_1tyillx2", wg = {
9263
9257
  c
9264
9258
  ]);
9265
9259
  }, n0 = ({ frameElement: e, panelRect: t, formattedAxes: n, shouldAnimateTransitions: a }) => {
9266
- const { measureRef: o, screenRect: i } = Li(), { selectionStore: l } = B(), s = $(), c = J((u) => u.caret?.annotationId ?? null), h = Le(), d = ne(h);
9267
- return z(() => (o(e), () => o(null)), [o, e]), z(() => () => {
9260
+ const { measureRef: o, screenRect: i } = Li(), { selectionStore: l } = B(), s = V(), c = J((u) => u.caret?.annotationId ?? null), h = Le(), d = ne(h);
9261
+ return F(() => (o(e), () => o(null)), [o, e]), F(() => () => {
9268
9262
  const u = s.getState();
9269
9263
  u.releaseInteraction("menu"), u.setCaret(null), u.setPressedObservation(null);
9270
- }, [s]), z(() => {
9264
+ }, [s]), F(() => {
9271
9265
  if (d.current === h) return;
9272
9266
  d.current = h;
9273
9267
  const u = s.getState();
@@ -9287,8 +9281,8 @@ var xg = "_1tyillx2", wg = {
9287
9281
  shouldAnimateTransitions: a
9288
9282
  })] });
9289
9283
  }, r0 = ({ annotationId: e, panelRect: t }) => {
9290
- const n = $(), { textAnnotations: a } = Ne(t);
9291
- return z(() => {
9284
+ const n = V(), { textAnnotations: a } = Ne(t);
9285
+ return F(() => {
9292
9286
  a.some(({ id: o }) => o === e) || n.getState().setCaret(null);
9293
9287
  }, [
9294
9288
  e,
@@ -9296,7 +9290,7 @@ var xg = "_1tyillx2", wg = {
9296
9290
  n
9297
9291
  ]), null;
9298
9292
  }, a0 = ({ frameElement: e, frameRect: t, panelRect: n, formattedAxes: a, shouldAnimateTransitions: o }) => {
9299
- const i = E(() => ({
9293
+ const i = O(() => ({
9300
9294
  x: t.left + n.x,
9301
9295
  y: t.top + n.y
9302
9296
  }), [
@@ -9314,7 +9308,7 @@ var xg = "_1tyillx2", wg = {
9314
9308
  shouldAnimateTransitions: o
9315
9309
  });
9316
9310
  }, o0 = ({ frameElement: e, frameRect: t, panelOrigin: n, panelRect: a, boxRef: o, shouldAnimateTransitions: i }) => {
9317
- const l = Ze(), s = ai(), { annotations: c, editOutline: h, overlayMenu: d } = Re[Le()], u = E(() => ({
9311
+ const l = Ze(), s = ai(), { annotations: c, editOutline: h, overlayMenu: d } = Re[Le()], u = O(() => ({
9318
9312
  width: t.width,
9319
9313
  height: t.height
9320
9314
  }), [t.width, t.height]);
@@ -9369,12 +9363,12 @@ var xg = "_1tyillx2", wg = {
9369
9363
  d && /* @__PURE__ */ r(g1, { frameElement: e })
9370
9364
  ] })
9371
9365
  })] });
9372
- }, Z5 = ({ slots: e, mode: t, ...n }) => /* @__PURE__ */ r(ed, {
9366
+ }, Y5 = ({ slots: e, mode: t, ...n }) => /* @__PURE__ */ r(ed, {
9373
9367
  locale: ea(),
9374
9368
  children: /* @__PURE__ */ r(Hi, { children: /* @__PURE__ */ r(gl, {
9375
9369
  editors: _h,
9376
9370
  children: /* @__PURE__ */ r(tl, {
9377
- slots: E(() => ({
9371
+ slots: O(() => ({
9378
9372
  EditorSurface: n0,
9379
9373
  ...e
9380
9374
  }), [e]),
@@ -9402,7 +9396,7 @@ function p0(e) {
9402
9396
  return t.includes("_1ii3bsb0") || t.includes("_1ii3bsb1");
9403
9397
  }
9404
9398
  var m0 = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = void 0, className: o }) => {
9405
- const i = Qr(e), { themeClass: l, inlineVarsStyle: s } = St(), [c, h] = Q(() => a ? [a] : []), d = E(() => ({
9399
+ const i = Qr(e), { themeClass: l, inlineVarsStyle: s } = St(), [c, h] = Q(() => a ? [a] : []), d = O(() => ({
9406
9400
  expandSection: (u) => h([u]),
9407
9401
  collapseAllSections: () => h([])
9408
9402
  }), []);
@@ -9426,7 +9420,7 @@ var m0 = ({ handle: e, children: t, controls: n, defaultExpandedSection: a = voi
9426
9420
  }, li = {
9427
9421
  Root: m0,
9428
9422
  Controls: h0
9429
- }, g0 = "_2m7wuq0", Y5 = () => /* @__PURE__ */ r(Fc, { className: g0 }), v0 = (e) => /* @__PURE__ */ r(L, {
9423
+ }, g0 = "_2m7wuq0", J5 = () => /* @__PURE__ */ r(Fc, { className: g0 }), v0 = (e) => /* @__PURE__ */ r(P, {
9430
9424
  ...e,
9431
9425
  children: /* @__PURE__ */ r("g", {
9432
9426
  stroke: "currentColor",
@@ -9495,7 +9489,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9495
9489
  })
9496
9490
  });
9497
9491
  }, x0 = ({ title: e, preview: t, accessory: n, onOpenChange: a, children: o }) => {
9498
- const i = I();
9492
+ const i = E();
9499
9493
  return /* @__PURE__ */ g(Ke.Item, {
9500
9494
  value: e,
9501
9495
  className: On,
@@ -9558,78 +9552,78 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9558
9552
  x: "editor.axesPanel.mainAxisSection.xAxis",
9559
9553
  y: "editor.axesPanel.mainAxisSection.yAxis"
9560
9554
  }, Mr = ({ axis: e, title: t, layout: n = "collapsible", preview: a }) => {
9561
- const o = W(), i = K(o), l = I(), { NumberField: s, Switch: c, TextField: h, ToggleGroup: d } = H();
9555
+ const o = $(), i = K(o), l = E(), { NumberField: s, Switch: c, TextField: h, ToggleGroup: d } = H();
9562
9556
  if (!i) return null;
9563
9557
  const u = i.coordSystem.type === "polar" ? i.coordSystem.axisMapping[e].geometry : "linear", p = i.config.axes[e], v = i.scales[e], m = v?.spec, f = m?.scaleType === "continuous" ? m : void 0;
9564
9558
  if (u === "circular" || u === "radial" && f === void 0) return null;
9565
- const b = m !== void 0 && "reverse" in m ? m : void 0, x = m?.scaleType === "continuous" || m?.scaleType === "datetime", w = f !== void 0 && Ta(i, e), C = f?.transform === "log", S = f?.domainMax ?? null, P = L0(f), k = (O, pe) => O.map((et) => ({
9559
+ const b = m !== void 0 && "reverse" in m ? m : void 0, x = m?.scaleType === "continuous" || m?.scaleType === "datetime", w = f !== void 0 && Ta(i, e), C = f?.transform === "log", S = f?.domainMax ?? null, I = L0(f), L = (M, pe) => M.map((et) => ({
9566
9560
  value: et,
9567
9561
  label: pe(et)
9568
- })), T = i.guides.axes.find((O) => O.scaleAestheticKey === e)?.position, F = T0[T === "bottom" || T === "top" || T === void 0 && e === "x" ? "horizontal" : "vertical"], D = e === "y" ? Ks(i.spec) : null, M = D === null ? void 0 : ve(i.spec.layers, D), N = i.guides.legends.drawn.some((O) => F.some((pe) => pe === O.position)), y = F.map((O) => ({
9569
- value: O,
9570
- label: l(A0[O])
9571
- })), V = k(["auto", "edges"], (O) => l(O === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), re = k(["linear", "log"], (O) => l(O === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), xe = k([
9562
+ })), T = i.guides.axes.find((M) => M.scaleAestheticKey === e)?.position, _ = T0[T === "bottom" || T === "top" || T === void 0 && e === "x" ? "horizontal" : "vertical"], W = e === "y" ? Ks(i.spec) : null, R = W === null ? void 0 : ve(i.spec.layers, W), k = i.guides.legends.drawn.some((M) => _.some((pe) => pe === M.position)), y = _.map((M) => ({
9563
+ value: M,
9564
+ label: l(A0[M])
9565
+ })), z = L(["auto", "edges"], (M) => l(M === "edges" ? "editor.axesPanel.labelMode.edges" : "editor.axesPanel.labelMode.auto")), re = L(["linear", "log"], (M) => l(M === "log" ? "editor.axesPanel.scale.log" : "editor.axesPanel.scale.auto")), xe = L([
9572
9566
  "auto",
9573
9567
  "zero",
9574
9568
  "custom"
9575
- ], (O) => l(O === "zero" ? "editor.axesPanel.startFrom.zero" : O === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), oe = k(["auto", "custom"], (O) => l(O === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Be = k(["no", "yes"], (O) => l(O === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), pi = k(["single", "double"], (O) => l(O === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), mi = (O) => {
9569
+ ], (M) => l(M === "zero" ? "editor.axesPanel.startFrom.zero" : M === "custom" ? "editor.axesPanel.startFrom.custom" : "editor.axesPanel.startFrom.auto")), oe = L(["auto", "custom"], (M) => l(M === "custom" ? "editor.axesPanel.endAt.custom" : "editor.axesPanel.endAt.auto")), Be = L(["no", "yes"], (M) => l(M === "yes" ? "editor.axesPanel.yesNo.yes" : "editor.axesPanel.yesNo.no")), pi = L(["single", "double"], (M) => l(M === "double" ? "editor.axesPanel.axisCount.double" : "editor.axesPanel.axisCount.single")), mi = (M) => {
9576
9570
  o.commands.dispatch(new Rl({
9577
9571
  axis: e,
9578
- isVisible: O
9572
+ isVisible: M
9579
9573
  }));
9580
- }, gi = (O) => {
9574
+ }, gi = (M) => {
9581
9575
  o.commands.dispatch(new aa({
9582
9576
  axis: e,
9583
- label: O === "" ? null : O
9577
+ label: M === "" ? null : M
9584
9578
  }), { transient: !0 });
9585
- }, vi = (O) => {
9579
+ }, vi = (M) => {
9586
9580
  o.commands.dispatch(new Nl({
9587
9581
  axis: e,
9588
- isVisible: O
9582
+ isVisible: M
9589
9583
  }));
9590
- }, fi = (O) => {
9584
+ }, fi = (M) => {
9591
9585
  o.commands.dispatch(new ia({
9592
9586
  axis: e,
9593
- tickMode: O === "edges" ? "edges" : "auto"
9587
+ tickMode: M === "edges" ? "edges" : "auto"
9594
9588
  }));
9595
- }, bi = (O) => {
9589
+ }, bi = (M) => {
9596
9590
  o.commands.dispatch(new ls({
9597
9591
  scaledAesthetic: e,
9598
- reverse: O === "yes"
9592
+ reverse: M === "yes"
9599
9593
  }));
9600
- }, yi = (O) => {
9594
+ }, yi = (M) => {
9601
9595
  o.commands.dispatch(new ha({
9602
9596
  scaledAesthetic: e,
9603
- transform: O === "log" ? "log" : "linear"
9597
+ transform: M === "log" ? "log" : "linear"
9604
9598
  }));
9605
- }, Dn = (O) => {
9599
+ }, Dn = (M) => {
9606
9600
  o.commands.dispatch(new Ie({
9607
9601
  scaledAesthetic: e,
9608
- ...O
9602
+ ...M
9609
9603
  }), { transient: !0 });
9610
- }, Si = (O) => {
9611
- O !== null && Dn({ domainMin: O });
9612
- }, Ci = (O) => {
9613
- O !== null && Dn({ domainMax: O });
9614
- }, xi = (O) => {
9615
- const pe = O === "auto" ? null : O === "zero" ? 0 : Nr(v?.domain, "start");
9604
+ }, Si = (M) => {
9605
+ M !== null && Dn({ domainMin: M });
9606
+ }, Ci = (M) => {
9607
+ M !== null && Dn({ domainMax: M });
9608
+ }, xi = (M) => {
9609
+ const pe = M === "auto" ? null : M === "zero" ? 0 : Nr(v?.domain, "start");
9616
9610
  o.commands.dispatch(new Ie({
9617
9611
  scaledAesthetic: e,
9618
9612
  domainMin: pe
9619
9613
  }));
9620
- }, wi = (O) => {
9621
- const pe = O === "custom" ? Nr(v?.domain, "end") : null;
9614
+ }, wi = (M) => {
9615
+ const pe = M === "custom" ? Nr(v?.domain, "end") : null;
9622
9616
  o.commands.dispatch(new Ie({
9623
9617
  scaledAesthetic: e,
9624
9618
  domainMax: pe
9625
9619
  }));
9626
- }, Ti = (O) => {
9627
- M !== void 0 && o.commands.dispatch(new Kl({
9628
- layerId: M.id,
9629
- yScaleType: O === "double" ? "secondary" : "primary"
9620
+ }, Ti = (M) => {
9621
+ R !== void 0 && o.commands.dispatch(new Kl({
9622
+ layerId: R.id,
9623
+ yScaleType: M === "double" ? "secondary" : "primary"
9630
9624
  }));
9631
- }, Ai = (O) => {
9632
- const pe = F.find((et) => et === O);
9625
+ }, Ai = (M) => {
9626
+ const pe = _.find((et) => et === M);
9633
9627
  pe && o.commands.dispatch(new oa({
9634
9628
  axis: e,
9635
9629
  position: pe
@@ -9647,10 +9641,10 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9647
9641
  onChange: mi
9648
9642
  })
9649
9643
  }),
9650
- M !== void 0 && /* @__PURE__ */ r(A, {
9644
+ R !== void 0 && /* @__PURE__ */ r(A, {
9651
9645
  label: l("editor.axesPanel.controls.numberOfAxes"),
9652
9646
  children: /* @__PURE__ */ r(d, {
9653
- value: M.yScaleType === "secondary" ? "double" : "single",
9647
+ value: R.yScaleType === "secondary" ? "double" : "single",
9654
9648
  options: pi,
9655
9649
  onChange: Ti
9656
9650
  })
@@ -9673,11 +9667,11 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9673
9667
  label: l("editor.axesPanel.controls.labels"),
9674
9668
  children: /* @__PURE__ */ r(d, {
9675
9669
  value: p.ticks.mode,
9676
- options: V,
9670
+ options: z,
9677
9671
  onChange: fi
9678
9672
  })
9679
9673
  }),
9680
- f && u === "linear" && !N && /* @__PURE__ */ r(A, {
9674
+ f && u === "linear" && !k && /* @__PURE__ */ r(A, {
9681
9675
  label: l("editor.axesPanel.controls.position"),
9682
9676
  children: /* @__PURE__ */ r(d, {
9683
9677
  value: T ?? p.position,
@@ -9705,11 +9699,11 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9705
9699
  !w && /* @__PURE__ */ g(q, { children: [/* @__PURE__ */ r(A, {
9706
9700
  label: l("editor.axesPanel.controls.startFrom"),
9707
9701
  children: /* @__PURE__ */ r(d, {
9708
- value: P,
9702
+ value: I,
9709
9703
  options: xe,
9710
9704
  onChange: xi
9711
9705
  })
9712
- }), P !== "auto" && /* @__PURE__ */ r(A, {
9706
+ }), I !== "auto" && /* @__PURE__ */ r(A, {
9713
9707
  label: l("editor.axesPanel.controls.value"),
9714
9708
  children: /* @__PURE__ */ r(s, {
9715
9709
  value: f.domainMin ?? null,
@@ -9743,7 +9737,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9743
9737
  const n = t === "start" ? e?.[0] : e?.[e.length - 1];
9744
9738
  return typeof n == "number" ? n : 0;
9745
9739
  }, Nn = ({ value: e, onChange: t }) => {
9746
- const n = W(), a = I(), { TextField: o } = H(), i = e !== null && typeof e != "string", l = (s) => t(s === "" ? null : s);
9740
+ const n = $(), a = E(), { TextField: o } = H(), i = e !== null && typeof e != "string", l = (s) => t(s === "" ? null : s);
9747
9741
  return /* @__PURE__ */ r(A, {
9748
9742
  label: a("editor.elementsPanel.contentValue"),
9749
9743
  children: /* @__PURE__ */ r(o, {
@@ -9754,7 +9748,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9754
9748
  })
9755
9749
  });
9756
9750
  }, P0 = ({ title: e, layout: t = "collapsible", preview: n }) => {
9757
- const a = W(), o = K(a), i = I(), { Switch: l } = H();
9751
+ const a = $(), o = K(a), i = E(), { Switch: l } = H();
9758
9752
  if (!o) return null;
9759
9753
  const s = o.config.content, c = (d) => {
9760
9754
  a.commands.dispatch(new xt({
@@ -9780,7 +9774,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9780
9774
  })] })
9781
9775
  });
9782
9776
  }, Rr = /^[a-z][a-z\d+.-]*:/i, I0 = {}, E0 = ({ title: e, layout: t = "collapsible", preview: n }) => {
9783
- const a = W(), o = K(a), i = I(), { Switch: l } = H();
9777
+ const a = $(), o = K(a), i = E(), { Switch: l } = H();
9784
9778
  if (!o) return null;
9785
9779
  const s = o.config.content, c = (h) => {
9786
9780
  a.commands.dispatch(new xt({
@@ -9801,7 +9795,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9801
9795
  }), /* @__PURE__ */ r(O0, { source: s.source ?? I0 })] })
9802
9796
  });
9803
9797
  }, O0 = ({ source: e }) => {
9804
- const t = W(), n = I(), { TextField: a } = H(), o = (c) => {
9798
+ const t = $(), n = E(), { TextField: a } = H(), o = (c) => {
9805
9799
  const h = (c.label ?? "") !== "" || (c.url ?? "") !== "";
9806
9800
  t.commands.dispatch(new Fl({ source: h ? c : null }), { transient: !0 });
9807
9801
  }, i = () => {
@@ -9834,7 +9828,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9834
9828
  })
9835
9829
  })] });
9836
9830
  }, M0 = ({ title: e, layout: t = "collapsible", preview: n }) => {
9837
- const a = W(), o = K(a), i = I(), { Switch: l } = H();
9831
+ const a = $(), o = K(a), i = E(), { Switch: l } = H();
9838
9832
  if (!o) return null;
9839
9833
  const s = o.config.content, c = (d) => {
9840
9834
  a.commands.dispatch(new xt({
@@ -9860,11 +9854,11 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9860
9854
  })] })
9861
9855
  });
9862
9856
  }, Nt = (e) => {
9863
- const { colorScheme: t } = St(), n = E(() => As({ colorScheme: t }), [t]);
9864
- return E(() => e === null ? null : n.readers(e), [e, n]);
9857
+ const { colorScheme: t } = St(), n = O(() => As({ colorScheme: t }), [t]);
9858
+ return O(() => e === null ? null : n.readers(e), [e, n]);
9865
9859
  }, Rn = (e, t, n) => {
9866
9860
  const a = Nt(e);
9867
- return E(() => {
9861
+ return O(() => {
9868
9862
  if (a === null || e === null || t === null) return null;
9869
9863
  const o = ve(e.layers, t);
9870
9864
  return o === void 0 ? null : a.geom[n](o);
@@ -9886,7 +9880,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9886
9880
  3,
9887
9881
  4
9888
9882
  ], N0 = on.length / 2, R0 = { select: { target: "graph" } }, D0 = ({ title: e, layout: t = "collapsible", preview: n }) => {
9889
- const a = W(), o = K(a), i = I(), { RadioGrid: l } = H(), s = Nt(o);
9883
+ const a = $(), o = K(a), i = E(), { RadioGrid: l } = H(), s = Nt(o);
9890
9884
  if (!o || !s) return null;
9891
9885
  const c = s.graph().get("textScale"), h = (p) => i("editor.elementsPanel.textSizeSection.scaleFormat", { value: `${p}` }), d = on.map((p) => ({
9892
9886
  value: `${p}`,
@@ -9919,7 +9913,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9919
9913
  })
9920
9914
  });
9921
9915
  }, _0 = ({ title: e, layout: t = "collapsible", preview: n }) => {
9922
- const a = W(), o = K(a), i = I(), { Switch: l } = H();
9916
+ const a = $(), o = K(a), i = E(), { Switch: l } = H();
9923
9917
  if (!o) return null;
9924
9918
  const s = o.config.content, c = (d) => {
9925
9919
  a.commands.dispatch(new xt({
@@ -9944,7 +9938,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9944
9938
  onChange: h
9945
9939
  })] })
9946
9940
  });
9947
- }, J5 = ({ children: e, ...t }) => /* @__PURE__ */ r(li.Root, {
9941
+ }, Q5 = ({ children: e, ...t }) => /* @__PURE__ */ r(li.Root, {
9948
9942
  ...t,
9949
9943
  children: e ?? /* @__PURE__ */ g(q, { children: [
9950
9944
  /* @__PURE__ */ r(_0, {}),
@@ -9953,11 +9947,11 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
9953
9947
  /* @__PURE__ */ r(E0, {}),
9954
9948
  /* @__PURE__ */ r(D0, {})
9955
9949
  ] })
9956
- }), Q5 = ({ children: e, ...t }) => /* @__PURE__ */ r(li.Root, {
9950
+ }), ef = ({ children: e, ...t }) => /* @__PURE__ */ r(li.Root, {
9957
9951
  ...t,
9958
9952
  children: e ?? /* @__PURE__ */ g(q, { children: [/* @__PURE__ */ r(Mr, { axis: "x" }), /* @__PURE__ */ r(Mr, { axis: "y" })] })
9959
- }), Rt = (e) => `${e}px`, ci = (e) => `${Math.round(e * 100)}%`, F0 = (e) => `${e}°`, z0 = 24, B0 = { select: { target: "graph" } }, Dr = ["dim", "desaturate"], ef = ({ title: e, layout: t = "collapsible", preview: n }) => {
9960
- const a = W(), o = K(a), i = I(), { Slider: l, ToggleGroup: s } = H(), c = Nt(o);
9953
+ }), Rt = (e) => `${e}px`, ci = (e) => `${Math.round(e * 100)}%`, F0 = (e) => `${e}°`, z0 = 24, B0 = { select: { target: "graph" } }, Dr = ["dim", "desaturate"], tf = ({ title: e, layout: t = "collapsible", preview: n }) => {
9954
+ const a = $(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = H(), c = Nt(o);
9961
9955
  if (!o || !c) return null;
9962
9956
  const h = c.graph().get("cornerRadius"), d = Zs(o.spec), u = Dr.map((m) => ({
9963
9957
  value: m,
@@ -10002,8 +9996,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10002
9996
  })
10003
9997
  })] })
10004
9998
  });
10005
- }, H0 = 0.05, tf = ({ title: e, layout: t = "collapsible", preview: n }) => {
10006
- const a = W(), o = K(a), i = I(), { Slider: l, ToggleGroup: s } = H(), c = o ? xa(o.spec.layers, "bar") : void 0, h = Rn(o, c?.id ?? null, "bar");
9999
+ }, H0 = 0.05, nf = ({ title: e, layout: t = "collapsible", preview: n }) => {
10000
+ const a = $(), o = K(a), i = E(), { Slider: l, ToggleGroup: s } = H(), c = o ? xa(o.spec.layers, "bar") : void 0, h = Rn(o, c?.id ?? null, "bar");
10007
10001
  if (!o || !c || o.coordSystem.type === "polar" && o.coordSystem.bandAxis === null) return null;
10008
10002
  const d = (f) => {
10009
10003
  a.commands.dispatch(new _l({
@@ -10070,7 +10064,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10070
10064
  floodOpacity: "0.16"
10071
10065
  })]
10072
10066
  }) })] });
10073
- }, _t = "qdaoth0", G0 = (e) => /* @__PURE__ */ g(L, {
10067
+ }, _t = "qdaoth0", G0 = (e) => /* @__PURE__ */ g(P, {
10074
10068
  viewBox: "0 0 31 33",
10075
10069
  ...e,
10076
10070
  children: [/* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r("path", {
@@ -10082,7 +10076,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10082
10076
  fill: "currentColor",
10083
10077
  d: "M12.0591 7.11C11.5767 7.11 11.1857 6.71899 11.1857 6.23664C11.1857 5.7543 11.5767 5.36328 12.0591 5.36328H24.8684C25.3507 5.36328 25.7417 5.7543 25.7417 6.23664V19.0459C25.7417 19.5283 25.3507 19.9193 24.8684 19.9193C24.386 19.9193 23.995 19.5283 23.995 19.0459V8.34512L6.8542 25.4859C6.51313 25.827 5.96015 25.827 5.61908 25.4859C5.27801 25.1448 5.27801 24.5919 5.61908 24.2508L22.7599 7.11H12.0591Z"
10084
10078
  })]
10085
- }), V0 = (e) => /* @__PURE__ */ r(L, {
10079
+ }), V0 = (e) => /* @__PURE__ */ r(P, {
10086
10080
  viewBox: "0 0 32 32",
10087
10081
  ...e,
10088
10082
  children: /* @__PURE__ */ g(Dt, { children: [/* @__PURE__ */ r("path", {
@@ -10092,7 +10086,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10092
10086
  fill: "currentColor",
10093
10087
  d: "M24.25 9C24.25 8.30964 23.6904 7.75 23 7.75H9C8.30964 7.75 7.75 8.30964 7.75 9V23C7.75 23.6904 8.30964 24.25 9 24.25H23C23.6904 24.25 24.25 23.6904 24.25 23V9ZM25.75 23C25.75 24.5188 24.5188 25.75 23 25.75H9C7.48122 25.75 6.25 24.5188 6.25 23V9C6.25 7.48122 7.48122 6.25 9 6.25H23C24.5188 6.25 25.75 7.48122 25.75 9V23Z"
10094
10088
  })] })
10095
- }), $0 = (e) => /* @__PURE__ */ g(L, {
10089
+ }), $0 = (e) => /* @__PURE__ */ g(P, {
10096
10090
  viewBox: "0 0 32 33",
10097
10091
  ...e,
10098
10092
  children: [/* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r("path", {
@@ -10106,7 +10100,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10106
10100
  clipRule: "evenodd",
10107
10101
  d: "M25.25 22C25.25 20.7574 24.2426 19.75 23 19.75C21.7574 19.75 20.75 20.7574 20.75 22C20.75 23.2426 21.7574 24.25 23 24.25C24.2426 24.25 25.25 23.2426 25.25 22ZM23 18.25C25.0711 18.25 26.75 19.9289 26.75 22C26.75 24.0711 25.0711 25.75 23 25.75C20.9289 25.75 19.25 24.0711 19.25 22C19.25 19.9289 20.9289 18.25 23 18.25ZM11.25 9C11.25 7.75736 10.2426 6.75 9 6.75C7.75736 6.75 6.75 7.75736 6.75 9C6.75 10.2426 7.75736 11.25 9 11.25C10.2426 11.25 11.25 10.2426 11.25 9ZM9.75 12.675C11.4617 12.3275 12.75 10.8142 12.75 9C12.75 6.92893 11.0711 5.25 9 5.25C6.92893 5.25 5.25 6.92893 5.25 9C5.25 10.8142 6.53832 12.3275 8.25 12.675L8.25 24C8.25 24.4142 8.58579 24.75 9 24.75L16 24.75C16.4142 24.75 16.75 24.4142 16.75 24L16.75 7.75L22.25 7.75L22.25 14.1893L21.0303 12.9697C20.7374 12.6768 20.2626 12.6768 19.9697 12.9697C19.6768 13.2626 19.6768 13.7374 19.9697 14.0303L22.4697 16.5303C22.7626 16.8232 23.2374 16.8232 23.5303 16.5303L26.0303 14.0303C26.3232 13.7374 26.3232 13.2626 26.0303 12.9697C25.7374 12.6768 25.2626 12.6768 24.9697 12.9697L23.75 14.1893L23.75 7C23.75 6.58579 23.4142 6.25 23 6.25L16 6.25C15.5858 6.25 15.25 6.58579 15.25 7L15.25 23.25L9.75 23.25L9.75 12.675Z"
10108
10102
  })]
10109
- }), W0 = (e) => /* @__PURE__ */ g(L, {
10103
+ }), W0 = (e) => /* @__PURE__ */ g(P, {
10110
10104
  viewBox: "0 0 32 33",
10111
10105
  ...e,
10112
10106
  children: [/* @__PURE__ */ r(Dt, { children: /* @__PURE__ */ r("path", {
@@ -10130,8 +10124,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10130
10124
  }, Z0 = {
10131
10125
  x: 0.6,
10132
10126
  y: 0.4
10133
- }, Y0 = "relative-difference", nf = ({ title: e, layout: t = "collapsible", preview: n }) => {
10134
- const a = W(), o = K(a), i = I(), { Button: l } = H();
10127
+ }, Y0 = "relative-difference", rf = ({ title: e, layout: t = "collapsible", preview: n }) => {
10128
+ const a = $(), o = K(a), i = E(), { Button: l } = H();
10135
10129
  if (!o) return null;
10136
10130
  const s = () => {
10137
10131
  a.commands.dispatch(new we({
@@ -10224,8 +10218,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10224
10218
  text: e
10225
10219
  }]
10226
10220
  }]
10227
- }), rf = ({ title: e, layout: t = "collapsible", preview: n }) => {
10228
- const a = W(), o = K(a), i = I(), { ToggleGroup: l } = H();
10221
+ }), af = ({ title: e, layout: t = "collapsible", preview: n }) => {
10222
+ const a = $(), o = K(a), i = E(), { ToggleGroup: l } = H();
10229
10223
  if (!o) return null;
10230
10224
  const s = ka(o.spec);
10231
10225
  if (s === null || !Ee(s)) return null;
@@ -10250,8 +10244,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10250
10244
  ariaLabel: i("editor.graphPanel.comboSection.title")
10251
10245
  })
10252
10246
  });
10253
- }, Q0 = 0.1, ev = 20, af = ({ title: e, preview: t }) => {
10254
- const n = W(), a = K(n), o = I(), { NumberField: i, TextField: l } = H();
10247
+ }, Q0 = 0.1, ev = 20, of = ({ title: e, preview: t }) => {
10248
+ const n = $(), a = K(n), o = E(), { NumberField: i, TextField: l } = H();
10255
10249
  if (!a || a.coordSystem.type === "polar") return null;
10256
10250
  const s = Es(a.spec.layers), c = e ?? o("editor.annotationsPanel.goalSection.title"), h = Xs(s?.mapping.y), d = typeof h == "number" ? h : null, u = (m) => {
10257
10251
  const f = new us({
@@ -10307,8 +10301,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10307
10301
  if (o === 0) return 0;
10308
10302
  const i = Math.min(ev, Math.max(0, 1 - Math.floor(Math.log10(o))));
10309
10303
  return Number((n + o * Q0).toFixed(i));
10310
- }, of = ({ layerId: e, title: t, layout: n = "collapsible", preview: a }) => {
10311
- const o = W(), i = K(o), l = I(), { Switch: s } = H();
10304
+ }, lf = ({ layerId: e, title: t, layout: n = "collapsible", preview: a }) => {
10305
+ const o = $(), i = K(o), l = E(), { Switch: s } = H();
10312
10306
  if (!i) return null;
10313
10307
  const c = e === void 0 ? i.layers[0] : ve(i.layers, e);
10314
10308
  if (!c) return null;
@@ -10377,7 +10371,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10377
10371
  })
10378
10372
  ] })
10379
10373
  });
10380
- }, nv = (e) => /* @__PURE__ */ g(L, {
10374
+ }, nv = (e) => /* @__PURE__ */ g(P, {
10381
10375
  viewBox: "0 0 16 16",
10382
10376
  ...e,
10383
10377
  children: [/* @__PURE__ */ r("path", {
@@ -10389,7 +10383,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10389
10383
  fillOpacity: "0.3",
10390
10384
  d: "M5.744 5.565 0 11.826V8l5.744-6.957 4.718 2.087L16 0v6.957l-5.538 4z"
10391
10385
  })]
10392
- }), rv = (e) => /* @__PURE__ */ r(L, {
10386
+ }), rv = (e) => /* @__PURE__ */ r(P, {
10393
10387
  viewBox: "0 0 16 16",
10394
10388
  ...e,
10395
10389
  children: /* @__PURE__ */ g("g", {
@@ -10431,7 +10425,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10431
10425
  })
10432
10426
  ]
10433
10427
  })
10434
- }), av = (e) => /* @__PURE__ */ r(L, {
10428
+ }), av = (e) => /* @__PURE__ */ r(P, {
10435
10429
  viewBox: "0 0 16 16",
10436
10430
  ...e,
10437
10431
  children: /* @__PURE__ */ g("g", {
@@ -10446,7 +10440,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10446
10440
  d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
10447
10441
  })]
10448
10442
  })
10449
- }), ov = (e) => /* @__PURE__ */ r(L, {
10443
+ }), ov = (e) => /* @__PURE__ */ r(P, {
10450
10444
  viewBox: "0 0 16 16",
10451
10445
  ...e,
10452
10446
  children: /* @__PURE__ */ g("g", {
@@ -10461,7 +10455,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10461
10455
  d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
10462
10456
  })]
10463
10457
  })
10464
- }), iv = (e) => /* @__PURE__ */ g(L, {
10458
+ }), iv = (e) => /* @__PURE__ */ g(P, {
10465
10459
  viewBox: "0 0 16 16",
10466
10460
  ...e,
10467
10461
  children: [
@@ -10500,7 +10494,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10500
10494
  rx: ".533"
10501
10495
  })
10502
10496
  ]
10503
- }), lv = (e) => /* @__PURE__ */ g(L, {
10497
+ }), lv = (e) => /* @__PURE__ */ g(P, {
10504
10498
  viewBox: "0 0 16 16",
10505
10499
  ...e,
10506
10500
  children: [/* @__PURE__ */ r("path", {
@@ -10512,7 +10506,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10512
10506
  fillOpacity: "0.3",
10513
10507
  d: "M0 12.445h4.267V.52A.52.52 0 0 0 3.748 0H.518A.52.52 0 0 0 0 .519zM5.867 7.111h4.266V.52A.52.52 0 0 0 9.615 0h-3.23a.52.52 0 0 0-.518.519zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
10514
10508
  })]
10515
- }), sv = (e) => /* @__PURE__ */ g(L, {
10509
+ }), sv = (e) => /* @__PURE__ */ g(P, {
10516
10510
  viewBox: "0 0 16 16",
10517
10511
  ...e,
10518
10512
  children: [/* @__PURE__ */ r("path", {
@@ -10524,7 +10518,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10524
10518
  fillOpacity: "0.3",
10525
10519
  d: "M0 7.037c0-.286.232-.518.519-.518h3.23c.286 0 .518.232.518.518v5.408H0zM5.867 7.111h4.266V4.074a.52.52 0 0 0-.518-.518h-3.23a.52.52 0 0 0-.518.518zM11.733 9.481H16V.52A.52.52 0 0 0 15.482 0h-3.23a.52.52 0 0 0-.519.519z"
10526
10520
  })]
10527
- }), cv = (e) => /* @__PURE__ */ g(L, {
10521
+ }), cv = (e) => /* @__PURE__ */ g(P, {
10528
10522
  viewBox: "0 0 16 16",
10529
10523
  ...e,
10530
10524
  children: [/* @__PURE__ */ g("g", {
@@ -10598,7 +10592,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10598
10592
  })
10599
10593
  ]
10600
10594
  })]
10601
- }), dv = (e) => /* @__PURE__ */ r(L, {
10595
+ }), dv = (e) => /* @__PURE__ */ r(P, {
10602
10596
  viewBox: "0 0 16 16",
10603
10597
  ...e,
10604
10598
  children: /* @__PURE__ */ g("g", {
@@ -10633,7 +10627,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10633
10627
  })
10634
10628
  ]
10635
10629
  })
10636
- }), uv = (e) => /* @__PURE__ */ r(L, {
10630
+ }), uv = (e) => /* @__PURE__ */ r(P, {
10637
10631
  viewBox: "0 0 16 16",
10638
10632
  ...e,
10639
10633
  children: /* @__PURE__ */ g("g", {
@@ -10710,7 +10704,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10710
10704
  })
10711
10705
  ]
10712
10706
  })
10713
- }), hv = (e) => /* @__PURE__ */ r(L, {
10707
+ }), hv = (e) => /* @__PURE__ */ r(P, {
10714
10708
  viewBox: "0 0 16 16",
10715
10709
  ...e,
10716
10710
  children: /* @__PURE__ */ g("g", {
@@ -10787,7 +10781,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10787
10781
  ]
10788
10782
  })]
10789
10783
  })
10790
- }), pv = (e) => /* @__PURE__ */ g(L, {
10784
+ }), pv = (e) => /* @__PURE__ */ g(P, {
10791
10785
  viewBox: "0 0 16 16",
10792
10786
  ...e,
10793
10787
  children: [
@@ -10809,7 +10803,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10809
10803
  d: "M15.999 8a8 8 0 0 1-7.588 7.989l-.412.01V8z"
10810
10804
  })
10811
10805
  ]
10812
- }), mv = (e) => /* @__PURE__ */ r(L, {
10806
+ }), mv = (e) => /* @__PURE__ */ r(P, {
10813
10807
  viewBox: "0 0 16 16",
10814
10808
  ...e,
10815
10809
  children: /* @__PURE__ */ g("g", {
@@ -10826,7 +10820,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10826
10820
  strokeWidth: "1.2"
10827
10821
  })]
10828
10822
  })
10829
- }), gv = (e) => /* @__PURE__ */ g(L, {
10823
+ }), gv = (e) => /* @__PURE__ */ g(P, {
10830
10824
  viewBox: "0 0 16 16",
10831
10825
  ...e,
10832
10826
  children: [/* @__PURE__ */ r("polygon", {
@@ -10841,7 +10835,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10841
10835
  fill: "currentColor",
10842
10836
  fillOpacity: "0.6"
10843
10837
  })]
10844
- }), vv = (e) => /* @__PURE__ */ r(L, {
10838
+ }), vv = (e) => /* @__PURE__ */ r(P, {
10845
10839
  viewBox: "0 0 16 16",
10846
10840
  ...e,
10847
10841
  children: /* @__PURE__ */ g("g", {
@@ -10896,7 +10890,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10896
10890
  })
10897
10891
  ]
10898
10892
  })
10899
- }), fv = (e) => /* @__PURE__ */ r(L, {
10893
+ }), fv = (e) => /* @__PURE__ */ r(P, {
10900
10894
  viewBox: "0 0 16 16",
10901
10895
  ...e,
10902
10896
  children: /* @__PURE__ */ r("path", {
@@ -10904,7 +10898,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10904
10898
  fillOpacity: "0.75",
10905
10899
  d: "M8.4 7.31 8.4 1.01A7 7 0 0 1 13.85 4.16ZM8.8 8 13.64 5.2A6.3 6.3 0 0 1 13.64 10.8ZM8.4 8.69 12.64 11.14A5.6 5.6 0 0 1 8.4 13.59ZM7.6 8.69 7.6 12.78A4.8 4.8 0 0 1 4.06 10.74ZM7.2 8 4.27 9.69A4.1 4.1 0 0 1 4.27 6.31ZM7.6 7.31 5.19 5.92A3.5 3.5 0 0 1 7.6 4.52Z"
10906
10900
  })
10907
- }), bv = (e) => /* @__PURE__ */ r(L, {
10901
+ }), bv = (e) => /* @__PURE__ */ r(P, {
10908
10902
  viewBox: "0 0 16 16",
10909
10903
  ...e,
10910
10904
  children: /* @__PURE__ */ g("g", {
@@ -10917,7 +10911,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
10917
10911
  d: "M8.4 7.31 8.4 3.82A4.2 4.2 0 0 1 11.42 5.56ZM8.8 8 11.46 6.47A3.78 3.78 0 0 1 11.46 9.53ZM8.4 8.69 10.69 10.01A3.36 3.36 0 0 1 8.4 11.34ZM7.6 8.69 7.6 10.85A2.88 2.88 0 0 1 5.73 9.77ZM7.2 8 5.7 8.87A2.46 2.46 0 0 1 5.7 7.13ZM7.6 7.31 6.41 6.62A2.1 2.1 0 0 1 7.6 5.94Z"
10918
10912
  })]
10919
10913
  })
10920
- }), yv = (e) => /* @__PURE__ */ r(L, {
10914
+ }), yv = (e) => /* @__PURE__ */ r(P, {
10921
10915
  viewBox: "0 0 16 16",
10922
10916
  ...e,
10923
10917
  children: /* @__PURE__ */ g("g", {
@@ -11150,8 +11144,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11150
11144
  if (Ee(e) || Ee(t)) return Ee(e) && Ee(t);
11151
11145
  const n = e.position === t.position || e.position === "dodge" && di(t);
11152
11146
  return e.coordType !== t.coordType || e.geom !== t.geom || !n ? !1 : e.coordType !== "polar" || t.coordType !== "polar" ? !0 : e.theta === t.theta && bt(e.innerRadius) === bt(t.innerRadius);
11153
- }, bt = (e) => e >= xv, kv = 3, lf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11154
- const a = W(), o = K(a), i = I(), { RadioGrid: l } = H(), s = E(() => ln.map(({ name: u, icon: p }) => ({
11147
+ }, bt = (e) => e >= xv, kv = 3, sf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11148
+ const a = $(), o = K(a), i = E(), { RadioGrid: l } = H(), s = O(() => ln.map(({ name: u, icon: p }) => ({
11155
11149
  value: u,
11156
11150
  label: i(`editor.graphTypes.${u}`),
11157
11151
  icon: /* @__PURE__ */ r(p, { size: "md" }),
@@ -11178,8 +11172,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11178
11172
  "solid",
11179
11173
  "dashed",
11180
11174
  "dotted"
11181
- ], Lv = 8, Pv = 0, sf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11182
- const a = W(), o = K(a), i = I(), { Slider: l, Switch: s, ToggleGroup: c } = H(), h = Nt(o);
11175
+ ], Lv = 8, Pv = 0, cf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11176
+ const a = $(), o = K(a), i = E(), { Slider: l, Switch: s, ToggleGroup: c } = H(), h = Nt(o);
11183
11177
  if (!o || !h) return null;
11184
11178
  const d = o.guides.axes.filter(Iv);
11185
11179
  if (d.length === 0) return null;
@@ -11242,39 +11236,39 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11242
11236
  "small",
11243
11237
  "medium",
11244
11238
  "large"
11245
- ], cf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11246
- const a = W(), o = K(a), i = I(), { Switch: l, ToggleGroup: s } = H();
11239
+ ], df = ({ title: e, layout: t = "collapsible", preview: n }) => {
11240
+ const a = $(), o = K(a), i = E(), { Switch: l, ToggleGroup: s } = H();
11247
11241
  if (!o) return null;
11248
- const c = o.config.headline, h = c.show !== "none", d = o.coordSystem, u = d.type === "polar", p = d.type === "polar" && d.innerRadius > 0, v = o.layers.some((M) => M.summary.grandTotal !== void 0);
11242
+ const c = o.config.headline, h = c.show !== "none", d = o.coordSystem, u = d.type === "polar", p = d.type === "polar" && d.innerRadius > 0, v = o.layers.some((R) => R.summary.grandTotal !== void 0);
11249
11243
  if (u && !v) return null;
11250
- const m = u ? Mv : ui, f = o.guides.headline, b = f?.kind === "perGroup" && f.items.some((M) => M.comparison !== null), x = m.map((M) => ({
11251
- value: M,
11252
- label: i(`editor.graphPanel.headlineNumberSection.metrics.${M}`)
11253
- })), w = Fr.map((M) => ({
11254
- value: M,
11255
- label: i(`editor.graphPanel.headlineNumberSection.comparison.${M}`)
11256
- })), C = zr.map((M) => ({
11257
- value: M,
11258
- label: i(M === "auto" ? "editor.graphPanel.numberFormat.options.auto" : `editor.graphPanel.headlineNumberSize.sizes.${M}`)
11244
+ const m = u ? Mv : ui, f = o.guides.headline, b = f?.kind === "perGroup" && f.items.some((R) => R.comparison !== null), x = m.map((R) => ({
11245
+ value: R,
11246
+ label: i(`editor.graphPanel.headlineNumberSection.metrics.${R}`)
11247
+ })), w = Fr.map((R) => ({
11248
+ value: R,
11249
+ label: i(`editor.graphPanel.headlineNumberSection.comparison.${R}`)
11250
+ })), C = zr.map((R) => ({
11251
+ value: R,
11252
+ label: i(R === "auto" ? "editor.graphPanel.numberFormat.options.auto" : `editor.graphPanel.headlineNumberSize.sizes.${R}`)
11259
11253
  })), S = [{
11260
11254
  value: "above",
11261
11255
  label: i("editor.graphPanel.headlineNumberSection.position.above")
11262
11256
  }, {
11263
11257
  value: "center",
11264
11258
  label: i("editor.graphPanel.headlineNumberSection.position.center")
11265
- }], P = (M) => {
11266
- a.commands.dispatch(new Gn({ show: M ? Ov : "none" }));
11267
- }, k = (M) => {
11268
- const N = m.find((y) => y === M);
11269
- N && a.commands.dispatch(new Gn({ show: N }));
11270
- }, T = (M) => {
11271
- const N = Fr.find((y) => y === M);
11272
- N && a.commands.dispatch(new Vl({ compareWith: N }));
11273
- }, F = (M) => {
11274
- const N = zr.find((y) => y === M);
11275
- N && a.commands.dispatch(new Wl({ size: N }));
11276
- }, D = (M) => {
11277
- a.commands.dispatch(new $l({ position: M === "center" ? "center" : "above" }));
11259
+ }], I = (R) => {
11260
+ a.commands.dispatch(new Gn({ show: R ? Ov : "none" }));
11261
+ }, L = (R) => {
11262
+ const k = m.find((y) => y === R);
11263
+ k && a.commands.dispatch(new Gn({ show: k }));
11264
+ }, T = (R) => {
11265
+ const k = Fr.find((y) => y === R);
11266
+ k && a.commands.dispatch(new Vl({ compareWith: k }));
11267
+ }, _ = (R) => {
11268
+ const k = zr.find((y) => y === R);
11269
+ k && a.commands.dispatch(new Wl({ size: k }));
11270
+ }, W = (R) => {
11271
+ a.commands.dispatch(new $l({ position: R === "center" ? "center" : "above" }));
11278
11272
  };
11279
11273
  return /* @__PURE__ */ r(j, {
11280
11274
  title: e ?? i("editor.graphPanel.headlineNumberSection.title"),
@@ -11284,7 +11278,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11284
11278
  label: i("editor.graphPanel.headlineNumberSection.toggle"),
11285
11279
  children: /* @__PURE__ */ r(l, {
11286
11280
  isChecked: h,
11287
- onChange: P
11281
+ onChange: I
11288
11282
  })
11289
11283
  }), h && /* @__PURE__ */ g(q, { children: [
11290
11284
  x.length > 1 && /* @__PURE__ */ r(A, {
@@ -11293,7 +11287,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11293
11287
  children: /* @__PURE__ */ r(s, {
11294
11288
  value: c.show,
11295
11289
  options: x,
11296
- onChange: k
11290
+ onChange: L
11297
11291
  })
11298
11292
  }),
11299
11293
  b && /* @__PURE__ */ r(A, {
@@ -11310,7 +11304,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11310
11304
  children: /* @__PURE__ */ r(s, {
11311
11305
  value: c.size,
11312
11306
  options: C,
11313
- onChange: F
11307
+ onChange: _
11314
11308
  })
11315
11309
  }),
11316
11310
  p && /* @__PURE__ */ r(A, {
@@ -11318,7 +11312,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11318
11312
  children: /* @__PURE__ */ r(s, {
11319
11313
  value: c.position,
11320
11314
  options: S,
11321
- onChange: D
11315
+ onChange: W
11322
11316
  })
11323
11317
  })
11324
11318
  ] })] })
@@ -11326,7 +11320,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11326
11320
  }, Nv = (e, t) => {
11327
11321
  const n = ui.find((a) => a === t);
11328
11322
  return n && e(`editor.graphPanel.headlineNumberSection.metrics.${n}`);
11329
- }, Wt = [
11323
+ };
11324
+ var Wt = [
11330
11325
  "top",
11331
11326
  "bottom",
11332
11327
  "left",
@@ -11337,12 +11332,21 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11337
11332
  "start",
11338
11333
  "center",
11339
11334
  "end"
11340
- ], Hr = [
11335
+ ], Rv = {
11336
+ row: {
11337
+ start: "left",
11338
+ end: "right"
11339
+ },
11340
+ column: {
11341
+ start: "top",
11342
+ end: "bottom"
11343
+ }
11344
+ }, Hr = [
11341
11345
  "auto",
11342
11346
  "pill",
11343
11347
  "direct"
11344
- ], df = ({ positions: e, title: t, layout: n = "collapsible", preview: a }) => {
11345
- const o = W(), i = K(o), l = I(), { ToggleGroup: s } = H();
11348
+ ], uf = ({ positions: e, title: t, layout: n = "collapsible", preview: a }) => {
11349
+ const o = $(), i = K(o), l = E(), { ToggleGroup: s } = H();
11346
11350
  if (!i) return null;
11347
11351
  const c = i.config.legend.position, h = e ?? Wt, d = i.guides.legends.drawn[0], u = ys({
11348
11352
  legendPosition: i.guides.legends.position,
@@ -11350,29 +11354,29 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11350
11354
  layers: i.layers
11351
11355
  }), p = i.guides.headline?.kind === "perGroup", v = i.guides.colorGroups.length > 0;
11352
11356
  if (c === "auto" && d === void 0 && !u && (p || !v)) return null;
11353
- const m = d?.position ?? "none", f = c === "auto" ? m : c, b = Wt.filter((D) => D === f || h.includes(D)).map((D) => ({
11354
- value: D,
11355
- label: l(`editor.graphPanel.legendSection.${D}`)
11356
- })), x = (D) => {
11357
- const M = Wt.find((N) => N === D);
11358
- M && o.commands.dispatch(new Zl({ position: M }));
11359
- }, w = (D) => {
11360
- const M = Br.find((N) => N === D);
11361
- M && o.commands.dispatch(new ql({ align: M }));
11362
- }, C = (D) => {
11363
- const M = Hr.find((N) => N === D);
11364
- M && o.commands.dispatch(new Xl({ display: M }));
11365
- }, S = Br.map((D) => ({
11366
- value: D,
11367
- label: l(`editor.graphPanel.legendSection.align.${D}`)
11368
- })), P = Hr.map((D) => ({
11369
- value: D,
11370
- label: l(`editor.graphPanel.legendSection.display.${D}`)
11371
- })), k = t ?? l("editor.graphPanel.legendSection.title"), T = b.find((D) => D.value === f)?.label, F = d !== void 0;
11357
+ const m = d?.position ?? "none", f = c === "auto" ? m : c, b = Wt.filter((k) => k === f || h.includes(k)).map((k) => ({
11358
+ value: k,
11359
+ label: l(`editor.graphPanel.legendSection.${k}`)
11360
+ })), x = (k) => {
11361
+ const y = Wt.find((z) => z === k);
11362
+ y && o.commands.dispatch(new Zl({ position: y }));
11363
+ }, w = (k) => {
11364
+ const y = Br.find((z) => z === k);
11365
+ y && o.commands.dispatch(new ql({ align: y }));
11366
+ }, C = (k) => {
11367
+ const y = Hr.find((z) => z === k);
11368
+ y && o.commands.dispatch(new Xl({ display: y }));
11369
+ }, S = d?.position === "left" || d?.position === "right" ? "column" : "row", I = (k) => l(k === "start" || k === "end" ? `editor.graphPanel.legendSection.${Rv[S][k]}` : `editor.graphPanel.legendSection.align.${k}`), L = Br.map((k) => ({
11370
+ value: k,
11371
+ label: I(k)
11372
+ })), T = Hr.map((k) => ({
11373
+ value: k,
11374
+ label: l(`editor.graphPanel.legendSection.display.${k}`)
11375
+ })), _ = t ?? l("editor.graphPanel.legendSection.title"), W = b.find((k) => k.value === f)?.label, R = d !== void 0;
11372
11376
  return /* @__PURE__ */ r(j, {
11373
- title: k,
11377
+ title: _,
11374
11378
  layout: n,
11375
- preview: a ?? T,
11379
+ preview: a ?? W,
11376
11380
  children: /* @__PURE__ */ g(te, { children: [
11377
11381
  /* @__PURE__ */ r(A, {
11378
11382
  label: l("editor.axesPanel.controls.position"),
@@ -11383,13 +11387,17 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11383
11387
  onChange: x
11384
11388
  })
11385
11389
  }),
11386
- F && /* @__PURE__ */ r(A, {
11390
+ R && /* @__PURE__ */ r(A, {
11387
11391
  label: l("editor.graphPanel.legendSection.alignLabel"),
11388
11392
  layout: "stack",
11389
- children: /* @__PURE__ */ r(s, {
11390
- value: i.config.legend.align,
11391
- options: S,
11392
- onChange: w
11393
+ children: /* @__PURE__ */ r("div", {
11394
+ dir: S === "row" ? "ltr" : void 0,
11395
+ className: "_1v6dqrh0",
11396
+ children: /* @__PURE__ */ r(s, {
11397
+ value: i.config.legend.align,
11398
+ options: L,
11399
+ onChange: w
11400
+ })
11393
11401
  })
11394
11402
  }),
11395
11403
  u && /* @__PURE__ */ r(A, {
@@ -11397,14 +11405,14 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11397
11405
  layout: "stack",
11398
11406
  children: /* @__PURE__ */ r(s, {
11399
11407
  value: i.config.legend.display,
11400
- options: P,
11408
+ options: T,
11401
11409
  onChange: C
11402
11410
  })
11403
11411
  })
11404
11412
  ] })
11405
11413
  });
11406
- }, Rv = 1, Dv = 20, _v = 0.5, hi = ({ layerId: e }) => {
11407
- const t = W(), n = K(t), { Slider: a } = H(), o = Rn(n, e, "point");
11414
+ }, Dv = 1, _v = 20, Fv = 0.5, hi = ({ layerId: e }) => {
11415
+ const t = $(), n = K(t), { Slider: a } = H(), o = Rn(n, e, "point");
11408
11416
  if (!n) return null;
11409
11417
  const i = (l) => {
11410
11418
  const s = new ns({
@@ -11415,35 +11423,35 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11415
11423
  };
11416
11424
  return /* @__PURE__ */ r(a, {
11417
11425
  value: o?.get("size") ?? Tl,
11418
- min: Rv,
11419
- max: Dv,
11420
- step: _v,
11426
+ min: Dv,
11427
+ max: _v,
11428
+ step: Fv,
11421
11429
  formatValue: Rt,
11422
11430
  onChange: i,
11423
11431
  onCommit: t.commands.commit
11424
11432
  });
11425
- }, Fv = 1, zv = 10, Bv = 0.1, Hv = [
11433
+ }, zv = 1, Bv = 10, Hv = 0.1, Gv = [
11426
11434
  "gap",
11427
11435
  "zero",
11428
11436
  "connect"
11429
- ], uf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11430
- const a = W(), o = K(a), i = I(), { Select: l, Slider: s, Switch: c, ToggleGroup: h } = H(), d = o?.spec.layers ?? [], u = xa(d, "line", "area"), p = Rn(o, u?.id ?? null, "line");
11437
+ ], hf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11438
+ const a = $(), o = K(a), i = E(), { Select: l, Slider: s, Switch: c, ToggleGroup: h } = H(), d = o?.spec.layers ?? [], u = xa(d, "line", "area"), p = Rn(o, u?.id ?? null, "line");
11431
11439
  if (!o || !u) return null;
11432
- const v = o.coordSystem.type === "polar", m = $v(i, u), f = Vv(u, d), b = fs(u.geom, u.id), x = De(o.spec), w = o.spec.styles.overrides, C = Wn(w, b, x), S = Wn(lc(w, b, x), b, x), P = C?.strokeWidth, k = typeof P == "number", T = S?.strokeWidth !== void 0, F = u.geom === "line" ? u : void 0, D = [{
11440
+ const v = o.coordSystem.type === "polar", m = Wv(i, u), f = $v(u, d), b = fs(u.geom, u.id), x = De(o.spec), w = o.spec.styles.overrides, C = Wn(w, b, x), S = Wn(lc(w, b, x), b, x), I = C?.strokeWidth, L = typeof I == "number", T = S?.strokeWidth !== void 0, _ = u.geom === "line" ? u : void 0, W = [{
11433
11441
  value: "auto",
11434
11442
  label: i("editor.graphPanel.numberFormat.options.auto"),
11435
11443
  isDisabled: T
11436
11444
  }, {
11437
11445
  value: "custom",
11438
11446
  label: i("editor.graphPanel.numberFormat.options.custom")
11439
- }], M = (oe) => {
11447
+ }], R = (oe) => {
11440
11448
  a.commands.dispatch(new ps({
11441
11449
  layerId: u.id,
11442
11450
  showPoints: oe
11443
11451
  }));
11444
- }, N = (oe) => {
11445
- F && a.commands.dispatch(new hs({
11446
- layerId: F.id,
11452
+ }, k = (oe) => {
11453
+ _ && a.commands.dispatch(new hs({
11454
+ layerId: _.id,
11447
11455
  showFill: oe
11448
11456
  }));
11449
11457
  }, y = (oe) => {
@@ -11451,7 +11459,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11451
11459
  layerId: u.id,
11452
11460
  curve: oe ? "smooth" : "linear"
11453
11461
  }));
11454
- }, V = (oe) => {
11462
+ }, z = (oe) => {
11455
11463
  const Be = p?.get("strokeWidth") ?? Al;
11456
11464
  a.commands.dispatch(new Vn({
11457
11465
  layerId: u.id,
@@ -11463,7 +11471,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11463
11471
  lineWidth: oe
11464
11472
  }), { transient: !0 });
11465
11473
  }, xe = (oe) => {
11466
- const Be = Gv(oe);
11474
+ const Be = Vv(oe);
11467
11475
  Be && a.commands.dispatch(new Jl({
11468
11476
  layerId: u.id,
11469
11477
  missingValues: Be
@@ -11478,18 +11486,18 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11478
11486
  label: i("editor.graphPanel.graphOptions.showPoints"),
11479
11487
  children: /* @__PURE__ */ r(c, {
11480
11488
  isChecked: f !== void 0,
11481
- onChange: M
11489
+ onChange: R
11482
11490
  })
11483
11491
  }),
11484
11492
  f && /* @__PURE__ */ r(A, {
11485
11493
  label: i("editor.graphPanel.pointSize.label"),
11486
11494
  children: /* @__PURE__ */ r(hi, { layerId: f.id })
11487
11495
  }),
11488
- F && !v && /* @__PURE__ */ r(A, {
11496
+ _ && !v && /* @__PURE__ */ r(A, {
11489
11497
  label: i("editor.graphPanel.graphOptions.lineFill"),
11490
11498
  children: /* @__PURE__ */ r(c, {
11491
11499
  isChecked: (C?.fillAlpha ?? 0) > 0,
11492
- onChange: N
11500
+ onChange: k
11493
11501
  })
11494
11502
  }),
11495
11503
  !v && /* @__PURE__ */ r(A, {
@@ -11502,18 +11510,18 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11502
11510
  /* @__PURE__ */ r(A, {
11503
11511
  label: i("editor.graphPanel.lineThickness.label"),
11504
11512
  children: /* @__PURE__ */ r(h, {
11505
- value: k ? "custom" : "auto",
11506
- options: D,
11507
- onChange: V
11513
+ value: L ? "custom" : "auto",
11514
+ options: W,
11515
+ onChange: z
11508
11516
  })
11509
11517
  }),
11510
- k && /* @__PURE__ */ r(A, {
11518
+ L && /* @__PURE__ */ r(A, {
11511
11519
  label: i("editor.graphPanel.numberFormat.valueLabel"),
11512
11520
  children: /* @__PURE__ */ r(s, {
11513
- value: P,
11514
- min: Fv,
11515
- max: zv,
11516
- step: Bv,
11521
+ value: I,
11522
+ min: zv,
11523
+ max: Bv,
11524
+ step: Hv,
11517
11525
  formatValue: Rt,
11518
11526
  onChange: re,
11519
11527
  onCommit: a.commands.commit
@@ -11529,7 +11537,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11529
11537
  })
11530
11538
  ] })
11531
11539
  });
11532
- }, Gv = (e) => Hv.find((t) => t === e), Vv = (e, t) => Ut(t, "point").find((n) => wa(n, [e])), $v = (e, t) => {
11540
+ }, Vv = (e) => Gv.find((t) => t === e), $v = (e, t) => Ut(t, "point").find((n) => wa(n, [e])), Wv = (e, t) => {
11533
11541
  const n = [{
11534
11542
  value: "gap",
11535
11543
  label: e("editor.graphPanel.treatEmptyValues.leaveGap.label")
@@ -11541,26 +11549,26 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11541
11549
  value: "connect",
11542
11550
  label: e("editor.graphPanel.treatEmptyValues.connectGaps.label")
11543
11551
  }), t.geom === "area" ? n.filter((a) => a.value !== "gap") : n;
11544
- }, sn = "\0none", Wv = [
11552
+ }, sn = "\0none", Uv = [
11545
11553
  "x",
11546
11554
  "y",
11547
11555
  "color",
11548
11556
  "size",
11549
11557
  "label"
11550
- ], Uv = {
11558
+ ], Kv = {
11551
11559
  x: "editor.graphPanel.mappingSection.x",
11552
11560
  y: "editor.graphPanel.mappingSection.y",
11553
11561
  color: "editor.graphPanel.mappingSection.color",
11554
11562
  size: "editor.graphPanel.mappingSection.size",
11555
11563
  label: "editor.graphPanel.mappingSection.label"
11556
- }, hf = ({ title: e, layout: t = "collapsible" }) => {
11557
- const n = W(), a = K(n), o = I(), { Select: i } = H(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = E(() => s === void 0 ? [] : Js(s, Wv).map(({ aesthetic: h, variables: d, isRequired: u }) => {
11564
+ }, pf = ({ title: e, layout: t = "collapsible" }) => {
11565
+ const n = $(), a = K(n), o = E(), { Select: i } = H(), l = o("editor.graphPanel.mappingSection.none"), s = a?.spec, c = O(() => s === void 0 ? [] : Js(s, Uv).map(({ aesthetic: h, variables: d, isRequired: u }) => {
11558
11566
  const p = Qs(s.mapping, h);
11559
11567
  return {
11560
11568
  aesthetic: h,
11561
- label: o(Uv[h]),
11569
+ label: o(Kv[h]),
11562
11570
  value: p ?? (u ? null : sn),
11563
- options: Kv(d, p, u ? null : l),
11571
+ options: qv(d, p, u ? null : l),
11564
11572
  chooseColumn: (v) => {
11565
11573
  n.commands.dispatch(new Ql({
11566
11574
  aesthetic: h,
@@ -11587,7 +11595,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11587
11595
  })
11588
11596
  }, h)) })
11589
11597
  }) : null;
11590
- }, Kv = (e, t, n) => {
11598
+ }, qv = (e, t, n) => {
11591
11599
  const a = t !== null && !e.includes(t) ? [t, ...e] : e;
11592
11600
  return [...n === null ? [] : [{
11593
11601
  value: sn,
@@ -11596,7 +11604,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11596
11604
  value: o,
11597
11605
  label: o
11598
11606
  }))];
11599
- }, qv = "k", Xv = 2, jv = 0, Zv = 5, cn = [
11607
+ }, Xv = "k", jv = 2, Zv = 0, Yv = 5, cn = [
11600
11608
  {
11601
11609
  value: "k",
11602
11610
  labelKey: "thousands"
@@ -11609,10 +11617,10 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11609
11617
  value: "b",
11610
11618
  labelKey: "billions"
11611
11619
  }
11612
- ], Yv = ["auto", "none"], pf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11613
- const a = W(), o = K(a), i = I(), { NumberField: l, ToggleGroup: s } = H();
11620
+ ], Jv = ["auto", "none"], mf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11621
+ const a = $(), o = K(a), i = E(), { NumberField: l, ToggleGroup: s } = H();
11614
11622
  if (!o) return null;
11615
- const { abbreviation: c, decimals: h } = o.config.numberFormat, d = Jv(c) !== void 0, u = h !== "auto", p = (C) => C.map((S) => ({
11623
+ const { abbreviation: c, decimals: h } = o.config.numberFormat, d = Qv(c) !== void 0, u = h !== "auto", p = (C) => C.map((S) => ({
11616
11624
  value: S,
11617
11625
  label: i(`editor.graphPanel.numberFormat.options.${S}`)
11618
11626
  })), v = cn.map(({ value: C, labelKey: S }) => ({
@@ -11621,13 +11629,13 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11621
11629
  })), m = (C) => {
11622
11630
  a.commands.dispatch(new es({ abbreviation: C }));
11623
11631
  }, f = (C) => {
11624
- const S = Yv.find((P) => P === C);
11625
- m(S ?? qv);
11632
+ const S = Jv.find((I) => I === C);
11633
+ m(S ?? Xv);
11626
11634
  }, b = (C) => {
11627
- const S = cn.find((P) => P.value === C);
11635
+ const S = cn.find((I) => I.value === C);
11628
11636
  S && m(S.value);
11629
11637
  }, x = (C) => {
11630
- a.commands.dispatch(new $n({ decimals: C === "custom" ? Xv : "auto" }));
11638
+ a.commands.dispatch(new $n({ decimals: C === "custom" ? jv : "auto" }));
11631
11639
  }, w = (C) => {
11632
11640
  C !== null && a.commands.dispatch(new $n({ decimals: C }), { transient: !0 });
11633
11641
  };
@@ -11668,18 +11676,18 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11668
11676
  label: i("editor.graphPanel.numberFormat.valueLabel"),
11669
11677
  children: /* @__PURE__ */ r(l, {
11670
11678
  value: h,
11671
- min: jv,
11672
- max: Zv,
11679
+ min: Zv,
11680
+ max: Yv,
11673
11681
  onChange: w,
11674
11682
  onCommit: a.commands.commit
11675
11683
  })
11676
11684
  })
11677
11685
  ] })
11678
11686
  });
11679
- }, Jv = (e) => cn.find((t) => t.value === e), mf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11680
- const a = K(W()), o = I();
11687
+ }, Qv = (e) => cn.find((t) => t.value === e), gf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11688
+ const a = K($()), o = E();
11681
11689
  if (!a) return null;
11682
- const i = Qv(a.spec.layers);
11690
+ const i = e5(a.spec.layers);
11683
11691
  return i ? /* @__PURE__ */ r(j, {
11684
11692
  title: e ?? o("editor.graphPanel.pointSize.label"),
11685
11693
  layout: t,
@@ -11689,11 +11697,11 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11689
11697
  children: /* @__PURE__ */ r(hi, { layerId: i.id })
11690
11698
  }) })
11691
11699
  }) : null;
11692
- }, Qv = (e) => {
11700
+ }, e5 = (e) => {
11693
11701
  const t = Ut(e, "line", "area");
11694
11702
  return Ut(e, "point").find((n) => !wa(n, t));
11695
- }, e5 = 0.9, t5 = 360, n5 = 0.05, r5 = 15, gf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11696
- const a = W(), o = K(a), i = I(), { Slider: l } = H();
11703
+ }, t5 = 0.9, n5 = 360, r5 = 0.05, a5 = 15, vf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11704
+ const a = $(), o = K(a), i = E(), { Slider: l } = H();
11697
11705
  if (!o || o.spec.coords.coordType !== "polar") return null;
11698
11706
  const { innerRadius: s, startAngle: c } = o.spec.coords.params, h = (u) => {
11699
11707
  a.commands.dispatch(new rs({ innerRadius: u }), { transient: !0 });
@@ -11709,8 +11717,8 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11709
11717
  children: /* @__PURE__ */ r(l, {
11710
11718
  value: s,
11711
11719
  min: 0,
11712
- max: e5,
11713
- step: n5,
11720
+ max: t5,
11721
+ step: r5,
11714
11722
  formatValue: ci,
11715
11723
  onChange: h,
11716
11724
  onCommit: a.commands.commit
@@ -11720,15 +11728,15 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11720
11728
  children: /* @__PURE__ */ r(l, {
11721
11729
  value: c,
11722
11730
  min: 0,
11723
- max: t5 - 1,
11724
- step: r5,
11731
+ max: n5 - 1,
11732
+ step: a5,
11725
11733
  formatValue: F0,
11726
11734
  onChange: d,
11727
11735
  onCommit: a.commands.commit
11728
11736
  })
11729
11737
  })] })
11730
11738
  });
11731
- }, a5 = (e) => /* @__PURE__ */ g(L, {
11739
+ }, o5 = (e) => /* @__PURE__ */ g(P, {
11732
11740
  ...e,
11733
11741
  children: [
11734
11742
  /* @__PURE__ */ r("path", {
@@ -11751,7 +11759,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11751
11759
  fill: "currentColor"
11752
11760
  })
11753
11761
  ]
11754
- }), Gr = (e) => /* @__PURE__ */ g(L, {
11762
+ }), Gr = (e) => /* @__PURE__ */ g(P, {
11755
11763
  ...e,
11756
11764
  children: [
11757
11765
  /* @__PURE__ */ r("path", {
@@ -11782,26 +11790,26 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11782
11790
  "logarithmic",
11783
11791
  "power",
11784
11792
  "loess"
11785
- ], o5 = "linear", vf = ({ title: e, layout: t = "collapsible", preview: n }) => {
11786
- const a = W(), o = K(a), i = I(), { Select: l, Switch: s } = H(), { options: c, findValue: h } = Co(o);
11793
+ ], i5 = "linear", ff = ({ title: e, layout: t = "collapsible", preview: n }) => {
11794
+ const a = $(), o = K(a), i = E(), { Select: l, Switch: s } = H(), { options: c, findValue: h } = Co(o);
11787
11795
  if (!o || o.coordSystem.type === "polar") return null;
11788
- const d = Rs(o.spec.layers), u = Ps(o.spec.layers), p = d?.stat.type === "smooth" ? d.stat.method : o5, v = i5(u), m = Vr.map((S) => ({
11796
+ const d = Rs(o.spec.layers), u = Ps(o.spec.layers), p = d?.stat.type === "smooth" ? d.stat.method : i5, v = l5(u), m = Vr.map((S) => ({
11789
11797
  value: S,
11790
11798
  label: i(`editor.annotationsPanel.trendType.options.${S}`)
11791
- })), f = (S, P = {}) => {
11792
- const k = d ?? u, T = new ss({
11799
+ })), f = (S, I = {}) => {
11800
+ const L = d ?? u, T = new ss({
11793
11801
  line: S,
11794
- ...P,
11795
- ...k !== void 0 && { layerId: k.id },
11802
+ ...I,
11803
+ ...L !== void 0 && { layerId: L.id },
11796
11804
  label: i("editor.annotationsPanel.trendsAndAveragesSection.average")
11797
11805
  });
11798
11806
  a.commands.dispatch(T);
11799
11807
  }, b = (S) => f(S ? "trend" : "none", { method: p }), x = (S) => f(S ? "average" : "none", { group: v ?? h(c[0]?.value ?? "") }), w = (S) => {
11800
- const P = Vr.find((k) => k === S);
11801
- P !== void 0 && f("trend", { method: P });
11808
+ const I = Vr.find((L) => L === S);
11809
+ I !== void 0 && f("trend", { method: I });
11802
11810
  }, C = (S) => {
11803
- const P = S === null ? void 0 : h(S);
11804
- P !== void 0 && f("average", { group: P });
11811
+ const I = S === null ? void 0 : h(S);
11812
+ I !== void 0 && f("average", { group: I });
11805
11813
  };
11806
11814
  return /* @__PURE__ */ r(j, {
11807
11815
  title: e ?? i("editor.annotationsPanel.trendsAndAveragesSection.title"),
@@ -11827,7 +11835,7 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11827
11835
  }),
11828
11836
  /* @__PURE__ */ r(A, {
11829
11837
  label: i("editor.annotationsPanel.trendsAndAveragesSection.average"),
11830
- icon: /* @__PURE__ */ r(a5, { size: "lg" }),
11838
+ icon: /* @__PURE__ */ r(o5, { size: "lg" }),
11831
11839
  children: /* @__PURE__ */ r(s, {
11832
11840
  isChecked: u !== void 0,
11833
11841
  onChange: x
@@ -11845,45 +11853,45 @@ var S0 = "_40zvwv8", j = ({ title: e, layout: t = "fixed", preview: n, accessory
11845
11853
  })
11846
11854
  ] })
11847
11855
  });
11848
- }, i5 = (e) => {
11856
+ }, l5 = (e) => {
11849
11857
  const t = e?.transforms.find((n) => n.transformType === "filter")?.options.value;
11850
11858
  return t instanceof Date ? t.getTime() : t;
11851
11859
  };
11852
11860
  export {
11853
- ef as AppearanceSection,
11854
- Q5 as AxesPanel,
11861
+ tf as AppearanceSection,
11862
+ ef as AxesPanel,
11855
11863
  Mr as AxisSection,
11856
- tf as BarSection,
11864
+ nf as BarSection,
11857
11865
  hd as Button,
11858
- nf as CalloutsSection,
11866
+ rf as CalloutsSection,
11859
11867
  P0 as CaptionSection,
11860
11868
  dd as ColorSwatches,
11861
- rf as ComboSection,
11869
+ af as ComboSection,
11862
11870
  pu as ControlRegistryProvider,
11863
11871
  Ja as ControlTooltip,
11864
11872
  kd as CustomColor,
11865
- Z5 as EditableGraphRenderer,
11873
+ Y5 as EditableGraphRenderer,
11866
11874
  li as EditorPanel,
11867
- J5 as ElementsPanel,
11868
- af as GoalSection,
11869
- of as GraphOptionsSection,
11870
- lf as GraphTypeSection,
11871
- sf as GridSection,
11872
- cf as HeadlineSection,
11875
+ Q5 as ElementsPanel,
11876
+ of as GoalSection,
11877
+ lf as GraphOptionsSection,
11878
+ sf as GraphTypeSection,
11879
+ cf as GridSection,
11880
+ df as HeadlineSection,
11873
11881
  ed as IntlProvider,
11874
- df as LegendSection,
11875
- uf as LineSection,
11876
- hf as MappingSection,
11882
+ uf as LegendSection,
11883
+ hf as LineSection,
11884
+ pf as MappingSection,
11877
11885
  Ed as NumberField,
11878
- pf as NumberFormatSection,
11886
+ mf as NumberFormatSection,
11879
11887
  u0 as PANEL_ROOT_ATTRIBUTE,
11880
- mf as PointSection,
11881
- gf as PolarSection,
11888
+ gf as PointSection,
11889
+ vf as PolarSection,
11882
11890
  Fd as RadioGrid,
11883
11891
  A as Row,
11884
11892
  j as Section,
11885
11893
  Kd as Select,
11886
- Y5 as Separator,
11894
+ J5 as Separator,
11887
11895
  tu as Slider,
11888
11896
  E0 as SourceSection,
11889
11897
  M0 as SubtitleSection,
@@ -11893,8 +11901,8 @@ export {
11893
11901
  _0 as TitleSection,
11894
11902
  eo as ToggleGroup,
11895
11903
  w0 as ToggledSection,
11896
- vf as TrendsAndAveragesSection,
11904
+ ff as TrendsAndAveragesSection,
11897
11905
  H as useControls,
11898
11906
  c0 as usePanelExpansion,
11899
- W as usePanelGraph
11907
+ $ as usePanelGraph
11900
11908
  };