@mesh.ai/rabbit 1.19.0 → 1.19.1

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.
@@ -1,6 +1,6 @@
1
1
  import { jsxs as j, jsx as d, Fragment as Na } from "react/jsx-runtime";
2
2
  import * as $e from "react";
3
- import N, { useCallback as pe, createContext as qt, useMemo as we, createElement as R, useContext as Ge, useRef as ce, useEffect as Ce, useState as xe, useLayoutEffect as Vh, Children as ar, cloneElement as td, useReducer as F8, forwardRef as Y, isValidElement as ha, Fragment as cr, useImperativeHandle as _8 } from "react";
3
+ import N, { useCallback as pe, createContext as qt, useMemo as xe, createElement as R, useContext as Ge, useRef as ce, useEffect as Ce, useState as we, useLayoutEffect as Vh, Children as ar, cloneElement as td, useReducer as F8, forwardRef as Y, isValidElement as ha, Fragment as cr, useImperativeHandle as _8 } from "react";
4
4
  import * as R8 from "react-dom";
5
5
  import Ns, { flushSync as Uh, createPortal as Hh } from "react-dom";
6
6
  function K() {
@@ -27,7 +27,7 @@ function De(...e) {
27
27
  function L8(e, t) {
28
28
  const n = /* @__PURE__ */ qt(t);
29
29
  function r(a) {
30
- const { children: i, ...s } = a, l = we(
30
+ const { children: i, ...s } = a, l = xe(
31
31
  () => s,
32
32
  Object.values(s)
33
33
  );
@@ -57,7 +57,7 @@ function Ct(e, t = []) {
57
57
  i
58
58
  ];
59
59
  function c(f) {
60
- const { scope: p, children: m, ...h } = f, g = (p == null ? void 0 : p[e][l]) || s, x = we(
60
+ const { scope: p, children: m, ...h } = f, g = (p == null ? void 0 : p[e][l]) || s, x = xe(
61
61
  () => h,
62
62
  Object.values(h)
63
63
  );
@@ -82,7 +82,7 @@ function Ct(e, t = []) {
82
82
  const a = n.map((i) => /* @__PURE__ */ qt(i));
83
83
  return function(s) {
84
84
  const l = (s == null ? void 0 : s[e]) || a;
85
- return we(
85
+ return xe(
86
86
  () => ({
87
87
  [`__scope${e}`]: {
88
88
  ...s,
@@ -120,7 +120,7 @@ function B8(...e) {
120
120
  ...f
121
121
  };
122
122
  }, {});
123
- return we(
123
+ return xe(
124
124
  () => ({
125
125
  [`__scope${t.scopeName}`]: i
126
126
  }),
@@ -142,7 +142,7 @@ function pt(e) {
142
142
  const t = ce(e);
143
143
  return Ce(() => {
144
144
  t.current = e;
145
- }), we(
145
+ }), xe(
146
146
  () => (...n) => {
147
147
  var r;
148
148
  return (r = t.current) === null || r === void 0 ? void 0 : r.call(t, ...n);
@@ -173,7 +173,7 @@ function Et({ prop: e, defaultProp: t, onChange: n = () => {
173
173
  ];
174
174
  }
175
175
  function z8({ defaultProp: e, onChange: t }) {
176
- const n = xe(e), [r] = n, o = ce(r), a = pt(t);
176
+ const n = we(e), [r] = n, o = ce(r), a = pt(t);
177
177
  return Ce(() => {
178
178
  o.current !== r && (a(r), o.current = r);
179
179
  }, [
@@ -187,14 +187,14 @@ function Fs(e) {
187
187
  value: e,
188
188
  previous: e
189
189
  });
190
- return we(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [
190
+ return xe(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [
191
191
  e
192
192
  ]);
193
193
  }
194
194
  const kt = globalThis != null && globalThis.document ? Vh : () => {
195
195
  };
196
196
  function nd(e) {
197
- const [t, n] = xe(void 0);
197
+ const [t, n] = we(void 0);
198
198
  return kt(() => {
199
199
  if (e) {
200
200
  n({
@@ -241,7 +241,7 @@ const Wt = (e) => {
241
241
  };
242
242
  Wt.displayName = "Presence";
243
243
  function j8(e) {
244
- const [t, n] = xe(), r = ce({}), o = ce(e), a = ce("none"), i = e ? "mounted" : "unmounted", [s, l] = W8(i, {
244
+ const [t, n] = we(), r = ce({}), o = ce(e), a = ce("none"), i = e ? "mounted" : "unmounted", [s, l] = W8(i, {
245
245
  mounted: {
246
246
  UNMOUNT: "unmounted",
247
247
  ANIMATION_OUT: "unmountSuspended"
@@ -382,7 +382,7 @@ function Xi(e, t) {
382
382
  );
383
383
  }
384
384
  const Yh = "Checkbox", [Y8, aj] = Ct(Yh), [G8, X8] = Y8(Yh), q8 = /* @__PURE__ */ Y((e, t) => {
385
- const { __scopeCheckbox: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...u } = e, [f, p] = xe(null), m = De(
385
+ const { __scopeCheckbox: n, name: r, checked: o, defaultChecked: a, required: i, disabled: s, value: l = "on", onCheckedChange: c, ...u } = e, [f, p] = we(null), m = De(
386
386
  t,
387
387
  (v) => p(v)
388
388
  ), h = ce(!1), g = f ? !!f.closest("form") : !0, [x = !1, b] = Et({
@@ -5115,7 +5115,7 @@ const p2 = [
5115
5115
  r
5116
5116
  ], value: u, onValueChange: f = () => {
5117
5117
  }, onValueCommit: p = () => {
5118
- }, inverted: m = !1, ...h } = e, [g, x] = xe(null), b = De(
5118
+ }, inverted: m = !1, ...h } = e, [g, x] = we(null), b = De(
5119
5119
  t,
5120
5120
  (B) => x(B)
5121
5121
  ), y = ce(/* @__PURE__ */ new Set()), v = ce(0), A = i === "horizontal", w = g ? !!g.closest("form") : !0, E = A ? p6 : h6, [P = [], T] = Et({
@@ -5210,7 +5210,7 @@ const p2 = [
5210
5210
  size: "width",
5211
5211
  direction: 1
5212
5212
  }), p6 = /* @__PURE__ */ Y((e, t) => {
5213
- const { min: n, max: r, dir: o, inverted: a, onSlideStart: i, onSlideMove: s, onSlideEnd: l, onStepKeyDown: c, ...u } = e, [f, p] = xe(null), m = De(
5213
+ const { min: n, max: r, dir: o, inverted: a, onSlideStart: i, onSlideMove: s, onSlideEnd: l, onStepKeyDown: c, ...u } = e, [f, p] = we(null), m = De(
5214
5214
  t,
5215
5215
  (v) => p(v)
5216
5216
  ), h = ce(), g = gr(o), x = g === "ltr", b = x && !a || !x && a;
@@ -5352,10 +5352,10 @@ const p2 = [
5352
5352
  }
5353
5353
  }));
5354
5354
  }), L0 = "SliderThumb", y6 = /* @__PURE__ */ Y((e, t) => {
5355
- const n = c6(e.__scopeSlider), [r, o] = xe(null), a = De(
5355
+ const n = c6(e.__scopeSlider), [r, o] = we(null), a = De(
5356
5356
  t,
5357
5357
  (s) => o(s)
5358
- ), i = we(
5358
+ ), i = xe(
5359
5359
  () => r ? n().findIndex(
5360
5360
  (s) => s.ref.current === r
5361
5361
  ) : -1,
@@ -5369,7 +5369,7 @@ const p2 = [
5369
5369
  index: i
5370
5370
  }));
5371
5371
  }), b6 = /* @__PURE__ */ Y((e, t) => {
5372
- const { __scopeSlider: n, index: r, ...o } = e, a = zs(L0, n), i = y2(L0, n), [s, l] = xe(null), c = De(
5372
+ const { __scopeSlider: n, index: r, ...o } = e, a = zs(L0, n), i = y2(L0, n), [s, l] = we(null), c = De(
5373
5373
  t,
5374
5374
  (x) => l(x)
5375
5375
  ), u = nd(s), f = a.values[r], p = f === void 0 ? 0 : x2(f, a.min, a.max), m = A6(r, a.values.length), h = u == null ? void 0 : u[i.size], g = h ? S6(h, p, i.direction) : 0;
@@ -5510,7 +5510,7 @@ function zj({
5510
5510
  onThumbClick: s = () => {
5511
5511
  }
5512
5512
  }) {
5513
- const [l, c] = xe(n), [u, f] = xe(n), p = ce(!0), m = e > t, h = m ? t : e, g = m ? e : t, x = m ? -1 : 1;
5513
+ const [l, c] = we(n), [u, f] = we(n), p = ce(!0), m = e > t, h = m ? t : e, g = m ? e : t, x = m ? -1 : 1;
5514
5514
  Ce(() => {
5515
5515
  n !== l && c(n);
5516
5516
  }, [n]), Ce(() => {
@@ -5624,7 +5624,7 @@ const w2 = "Collapsible", [_6, A2] = Ct(w2), [R6, ld] = _6(w2), I6 = /* @__PURE_
5624
5624
  }))
5625
5625
  );
5626
5626
  }), W6 = /* @__PURE__ */ Y((e, t) => {
5627
- const { __scopeCollapsible: n, present: r, children: o, ...a } = e, i = ld(C2, n), [s, l] = xe(r), c = ce(null), u = De(t, c), f = ce(0), p = f.current, m = ce(0), h = m.current, g = i.open || s, x = ce(g), b = ce();
5627
+ const { __scopeCollapsible: n, present: r, children: o, ...a } = e, i = ld(C2, n), [s, l] = we(r), c = ce(null), u = De(t, c), f = ce(0), p = f.current, m = ce(0), h = m.current, g = i.open || s, x = ce(g), b = ce();
5628
5628
  return Ce(() => {
5629
5629
  const y = requestAnimationFrame(
5630
5630
  () => x.current = !1
@@ -5981,7 +5981,7 @@ const y7 = /* @__PURE__ */ qt({
5981
5981
  branches: /* @__PURE__ */ new Set()
5982
5982
  }), Fa = /* @__PURE__ */ Y((e, t) => {
5983
5983
  var n;
5984
- const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...c } = e, u = Ge(y7), [f, p] = xe(null), m = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = xe({}), g = De(
5984
+ const { disableOutsidePointerEvents: r = !1, onEscapeKeyDown: o, onPointerDownOutside: a, onFocusOutside: i, onInteractOutside: s, onDismiss: l, ...c } = e, u = Ge(y7), [f, p] = we(null), m = (n = f == null ? void 0 : f.ownerDocument) !== null && n !== void 0 ? n : globalThis == null ? void 0 : globalThis.document, [, h] = we({}), g = De(
5985
5985
  t,
5986
5986
  (T) => p(T)
5987
5987
  ), x = Array.from(u.layers), [b] = [
@@ -6103,7 +6103,7 @@ const Nl = "focusScope.autoFocusOnMount", Dl = "focusScope.autoFocusOnUnmount",
6103
6103
  bubbles: !1,
6104
6104
  cancelable: !0
6105
6105
  }, pd = /* @__PURE__ */ Y((e, t) => {
6106
- const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = xe(null), c = pt(o), u = pt(a), f = ce(null), p = De(
6106
+ const { loop: n = !1, trapped: r = !1, onMountAutoFocus: o, onUnmountAutoFocus: a, ...i } = e, [s, l] = we(null), c = pt(o), u = pt(a), f = ce(null), p = De(
6107
6107
  t,
6108
6108
  (g) => l(g)
6109
6109
  ), m = ce({
@@ -6332,7 +6332,7 @@ function k7(e, t) {
6332
6332
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
6333
6333
  }
6334
6334
  function O7(e, t) {
6335
- var n = xe(function() {
6335
+ var n = we(function() {
6336
6336
  return {
6337
6337
  // value
6338
6338
  value: e,
@@ -7240,7 +7240,7 @@ function Hj({
7240
7240
  onOpenChange: c,
7241
7241
  className: u = ""
7242
7242
  }) {
7243
- const [f, p] = xe(e);
7243
+ const [f, p] = we(e);
7244
7244
  return Ce(() => {
7245
7245
  typeof c == "function" && c(f);
7246
7246
  }, [c, f]), /* @__PURE__ */ j(ox, { open: f, onOpenChange: p, children: [
@@ -7268,7 +7268,7 @@ function Hj({
7268
7268
  ] });
7269
7269
  }
7270
7270
  const gm = "Avatar", [cx, Yj] = Ct(gm), [ux, vm] = cx(gm), dx = /* @__PURE__ */ Y((e, t) => {
7271
- const { __scopeAvatar: n, ...r } = e, [o, a] = xe("idle");
7271
+ const { __scopeAvatar: n, ...r } = e, [o, a] = we("idle");
7272
7272
  return /* @__PURE__ */ R(ux, {
7273
7273
  scope: n,
7274
7274
  imageLoadingStatus: o,
@@ -7291,7 +7291,7 @@ const gm = "Avatar", [cx, Yj] = Ct(gm), [ux, vm] = cx(gm), dx = /* @__PURE__ */
7291
7291
  src: r
7292
7292
  })) : null;
7293
7293
  }), hx = "AvatarFallback", mx = /* @__PURE__ */ Y((e, t) => {
7294
- const { __scopeAvatar: n, delayMs: r, ...o } = e, a = vm(hx, n), [i, s] = xe(r === void 0);
7294
+ const { __scopeAvatar: n, delayMs: r, ...o } = e, a = vm(hx, n), [i, s] = we(r === void 0);
7295
7295
  return Ce(() => {
7296
7296
  if (r !== void 0) {
7297
7297
  const l = window.setTimeout(
@@ -7307,7 +7307,7 @@ const gm = "Avatar", [cx, Yj] = Ct(gm), [ux, vm] = cx(gm), dx = /* @__PURE__ */
7307
7307
  })) : null;
7308
7308
  });
7309
7309
  function gx(e) {
7310
- const [t, n] = xe("idle");
7310
+ const [t, n] = we("idle");
7311
7311
  return kt(() => {
7312
7312
  if (!e) {
7313
7313
  n("error");
@@ -9899,7 +9899,7 @@ function bA(e) {
9899
9899
  }), [u, I, V, B, S]);
9900
9900
  }
9901
9901
  const Im = "Popper", [Lm, Fo] = Ct(Im), [xA, Bm] = Lm(Im), wA = (e) => {
9902
- const { __scopePopper: t, children: n } = e, [r, o] = xe(null);
9902
+ const { __scopePopper: t, children: n } = e, [r, o] = we(null);
9903
9903
  return /* @__PURE__ */ R(xA, {
9904
9904
  scope: t,
9905
9905
  anchor: r,
@@ -9914,10 +9914,10 @@ const Im = "Popper", [Lm, Fo] = Ct(Im), [xA, Bm] = Lm(Im), wA = (e) => {
9914
9914
  }));
9915
9915
  }), zm = "PopperContent", [SA, Gj] = Lm(zm), MA = /* @__PURE__ */ Y((e, t) => {
9916
9916
  var n, r, o, a, i, s, l, c;
9917
- const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: x = !0, collisionBoundary: b = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: A = !1, updatePositionStrategy: w = "optimized", onPlaced: E, ...P } = e, T = Bm(zm, u), [M, $] = xe(null), I = De(
9917
+ const { __scopePopper: u, side: f = "bottom", sideOffset: p = 0, align: m = "center", alignOffset: h = 0, arrowPadding: g = 0, avoidCollisions: x = !0, collisionBoundary: b = [], collisionPadding: y = 0, sticky: v = "partial", hideWhenDetached: A = !1, updatePositionStrategy: w = "optimized", onPlaced: E, ...P } = e, T = Bm(zm, u), [M, $] = we(null), I = De(
9918
9918
  t,
9919
9919
  (ve) => $(ve)
9920
- ), [W, V] = xe(null), B = nd(W), S = (n = B == null ? void 0 : B.width) !== null && n !== void 0 ? n : 0, F = (r = B == null ? void 0 : B.height) !== null && r !== void 0 ? r : 0, H = f + (m !== "center" ? "-" + m : ""), z = typeof y == "number" ? y : {
9920
+ ), [W, V] = we(null), B = nd(W), S = (n = B == null ? void 0 : B.width) !== null && n !== void 0 ? n : 0, F = (r = B == null ? void 0 : B.height) !== null && r !== void 0 ? r : 0, H = f + (m !== "center" ? "-" + m : ""), z = typeof y == "number" ? y : {
9921
9921
  top: 0,
9922
9922
  right: 0,
9923
9923
  bottom: 0,
@@ -9981,7 +9981,7 @@ const Im = "Popper", [Lm, Fo] = Ct(Im), [xA, Bm] = Lm(Im), wA = (e) => {
9981
9981
  ae,
9982
9982
  X
9983
9983
  ]);
9984
- const Z = (o = oe.arrow) === null || o === void 0 ? void 0 : o.x, de = (a = oe.arrow) === null || a === void 0 ? void 0 : a.y, D = ((i = oe.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [se, fe] = xe();
9984
+ const Z = (o = oe.arrow) === null || o === void 0 ? void 0 : o.x, de = (a = oe.arrow) === null || a === void 0 ? void 0 : a.y, D = ((i = oe.arrow) === null || i === void 0 ? void 0 : i.centerOffset) !== 0, [se, fe] = we();
9985
9985
  return kt(() => {
9986
9986
  M && fe(window.getComputedStyle(M).zIndex);
9987
9987
  }, [
@@ -10068,7 +10068,7 @@ const Xs = wA, Md = CA, Ed = MA, zl = "rovingFocusGroup.onEntryFocus", TA = {
10068
10068
  prop: i,
10069
10069
  defaultProp: s,
10070
10070
  onChange: l
10071
- }), [x, b] = xe(!1), y = pt(c), v = jm(n), A = ce(!1), [w, E] = xe(0);
10071
+ }), [x, b] = we(!1), y = pt(c), v = jm(n), A = ce(!1), [w, E] = we(0);
10072
10072
  return Ce(() => {
10073
10073
  const P = f.current;
10074
10074
  if (P)
@@ -10267,7 +10267,7 @@ const Td = DA, Pd = RA, Lc = [
10267
10267
  Fo,
10268
10268
  _o
10269
10269
  ]), Ks = Fo(), Ym = _o(), [Gm, yr] = Ur(qs), [GA, Ia] = Ur(qs), XA = (e) => {
10270
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = Ks(t), [l, c] = xe(null), u = ce(!1), f = pt(a), p = gr(o);
10270
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: a, modal: i = !0 } = e, s = Ks(t), [l, c] = we(null), u = ce(!1), f = pt(a), p = gr(o);
10271
10271
  return Ce(() => {
10272
10272
  const m = () => {
10273
10273
  u.current = !0, document.addEventListener("pointerdown", h, {
@@ -10368,7 +10368,7 @@ const Td = DA, Pd = RA, Lc = [
10368
10368
  onDismiss: () => n.onOpenChange(!1)
10369
10369
  }));
10370
10370
  }), Od = /* @__PURE__ */ Y((e, t) => {
10371
- const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = e, x = yr(hn, n), b = Ia(hn, n), y = Ks(n), v = Ym(n), A = HA(n), [w, E] = xe(null), P = ce(null), T = De(t, P, x.onContentChange), M = ce(0), $ = ce(""), I = ce(0), W = ce(null), V = ce("right"), B = ce(0), S = h ? md : cr, F = h ? {
10371
+ const { __scopeMenu: n, loop: r = !1, trapFocus: o, onOpenAutoFocus: a, onCloseAutoFocus: i, disableOutsidePointerEvents: s, onEntryFocus: l, onEscapeKeyDown: c, onPointerDownOutside: u, onFocusOutside: f, onInteractOutside: p, onDismiss: m, disableOutsideScroll: h, ...g } = e, x = yr(hn, n), b = Ia(hn, n), y = Ks(n), v = Ym(n), A = HA(n), [w, E] = we(null), P = ce(null), T = De(t, P, x.onContentChange), M = ce(0), $ = ce(""), I = ce(0), W = ce(null), V = ce("right"), B = ce(0), S = h ? md : cr, F = h ? {
10372
10372
  as: Rn,
10373
10373
  allowPinchZoom: !0
10374
10374
  } : void 0, H = (O) => {
@@ -10530,7 +10530,7 @@ const Td = DA, Pd = RA, Lc = [
10530
10530
  })
10531
10531
  }));
10532
10532
  }), Zm = /* @__PURE__ */ Y((e, t) => {
10533
- const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, i = kd(Bc, n), s = Ym(n), l = ce(null), c = De(t, l), [u, f] = xe(!1), [p, m] = xe("");
10533
+ const { __scopeMenu: n, disabled: r = !1, textValue: o, ...a } = e, i = kd(Bc, n), s = Ym(n), l = ce(null), c = De(t, l), [u, f] = we(!1), [p, m] = we("");
10534
10534
  return Ce(() => {
10535
10535
  const h = l.current;
10536
10536
  if (h) {
@@ -10638,7 +10638,7 @@ const Td = DA, Pd = RA, Lc = [
10638
10638
  ref: t
10639
10639
  }));
10640
10640
  }), tg = "MenuSub", [fC, ng] = Ur(tg), pC = (e) => {
10641
- const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = yr(tg, t), i = Ks(t), [s, l] = xe(null), [c, u] = xe(null), f = pt(o);
10641
+ const { __scopeMenu: t, children: n, open: r = !1, onOpenChange: o } = e, a = yr(tg, t), i = Ks(t), [s, l] = we(null), [c, u] = we(null), f = pt(o);
10642
10642
  return Ce(() => (a.open === !1 && f(!1), () => f(!1)), [
10643
10643
  a.open,
10644
10644
  f
@@ -11095,7 +11095,7 @@ const sS = Y(({ className: e, ...t }, n) => /* @__PURE__ */ d(mg, { ref: n, clas
11095
11095
  sS.displayName = mg.displayName;
11096
11096
  const Eg = qt({}), lS = () => Ge(Eg);
11097
11097
  function cS({ isActive: e, isDisabled: t, className: n, children: r, ...o }) {
11098
- const a = we(() => ({ isActive: e, isDisabled: t }), [e, t]);
11098
+ const a = xe(() => ({ isActive: e, isDisabled: t }), [e, t]);
11099
11099
  return /* @__PURE__ */ d(Eg.Provider, { value: a, children: /* @__PURE__ */ d("div", { className: "rabbit-ds", children: /* @__PURE__ */ d(
11100
11100
  "button",
11101
11101
  {
@@ -11255,7 +11255,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11255
11255
  hS,
11256
11256
  Fo
11257
11257
  ]), Ld = Fo(), [mS, Hr] = Ro(Zs), [gS, vS] = Ro(Zs), yS = (e) => {
11258
- const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: p, required: m } = e, h = Ld(t), [g, x] = xe(null), [b, y] = xe(null), [v, A] = xe(!1), w = gr(c), [E = !1, P] = Et({
11258
+ const { __scopeSelect: t, children: n, open: r, defaultOpen: o, onOpenChange: a, value: i, defaultValue: s, onValueChange: l, dir: c, name: u, autoComplete: f, disabled: p, required: m } = e, h = Ld(t), [g, x] = we(null), [b, y] = we(null), [v, A] = we(!1), w = gr(c), [E = !1, P] = Et({
11259
11259
  prop: r,
11260
11260
  defaultProp: o,
11261
11261
  onChange: a
@@ -11263,7 +11263,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11263
11263
  prop: i,
11264
11264
  defaultProp: s,
11265
11265
  onChange: l
11266
- }), $ = ce(null), I = g ? !!g.closest("form") : !0, [W, V] = xe(/* @__PURE__ */ new Set()), B = Array.from(W).map(
11266
+ }), $ = ce(null), I = g ? !!g.closest("form") : !0, [W, V] = we(/* @__PURE__ */ new Set()), B = Array.from(W).map(
11267
11267
  (S) => S.props.value
11268
11268
  ).join(";");
11269
11269
  return /* @__PURE__ */ R(Xs, h, /* @__PURE__ */ R(mS, {
@@ -11376,7 +11376,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11376
11376
  }), SS = (e) => /* @__PURE__ */ R(Us, K({
11377
11377
  asChild: !0
11378
11378
  }, e)), bo = "SelectContent", MS = /* @__PURE__ */ Y((e, t) => {
11379
- const n = Hr(bo, e.__scopeSelect), [r, o] = xe();
11379
+ const n = Hr(bo, e.__scopeSelect), [r, o] = we();
11380
11380
  if (kt(() => {
11381
11381
  o(new DocumentFragment());
11382
11382
  }, []), !n.open) {
@@ -11409,10 +11409,10 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11409
11409
  avoidCollisions: x,
11410
11410
  //
11411
11411
  ...b
11412
- } = e, y = Hr(bo, n), [v, A] = xe(null), [w, E] = xe(null), P = De(
11412
+ } = e, y = Hr(bo, n), [v, A] = we(null), [w, E] = we(null), P = De(
11413
11413
  t,
11414
11414
  (ee) => A(ee)
11415
- ), [T, M] = xe(null), [$, I] = xe(null), W = Id(n), [V, B] = xe(!1), S = ce(!1);
11415
+ ), [T, M] = we(null), [$, I] = we(null), W = Id(n), [V, B] = we(!1), S = ce(!1);
11416
11416
  Ce(() => {
11417
11417
  if (v)
11418
11418
  return gd(v);
@@ -11604,7 +11604,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11604
11604
  })
11605
11605
  }))))));
11606
11606
  }), $S = /* @__PURE__ */ Y((e, t) => {
11607
- const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Hr(bo, n), i = el(bo, n), [s, l] = xe(null), [c, u] = xe(null), f = De(
11607
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, a = Hr(bo, n), i = el(bo, n), [s, l] = we(null), [c, u] = we(null), f = De(
11608
11608
  t,
11609
11609
  (P) => u(P)
11610
11610
  ), p = Id(n), m = ce(!1), h = ce(!0), { viewport: g, selectedItem: x, selectedItemText: b, focusSelectedItem: y } = i, v = pe(() => {
@@ -11657,7 +11657,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11657
11657
  v
11658
11658
  ]
11659
11659
  );
11660
- const [A, w] = xe();
11660
+ const [A, w] = we();
11661
11661
  kt(() => {
11662
11662
  c && w(window.getComputedStyle(c).zIndex);
11663
11663
  }, [
@@ -11766,7 +11766,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11766
11766
  ref: t
11767
11767
  }));
11768
11768
  }), zc = "SelectItem", [IS, kg] = Ro(zc), LS = /* @__PURE__ */ Y((e, t) => {
11769
- const { __scopeSelect: n, value: r, disabled: o = !1, textValue: a, ...i } = e, s = Hr(zc, n), l = el(zc, n), c = s.value === r, [u, f] = xe(a ?? ""), [p, m] = xe(!1), h = De(t, (b) => {
11769
+ const { __scopeSelect: n, value: r, disabled: o = !1, textValue: a, ...i } = e, s = Hr(zc, n), l = el(zc, n), c = s.value === r, [u, f] = we(a ?? ""), [p, m] = we(!1), h = De(t, (b) => {
11770
11770
  var y;
11771
11771
  return (y = l.itemRefCallback) === null || y === void 0 ? void 0 : y.call(l, b, r, o);
11772
11772
  }), g = Mt(), x = () => {
@@ -11832,7 +11832,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11832
11832
  })
11833
11833
  }))));
11834
11834
  }), bi = "SelectItemText", BS = /* @__PURE__ */ Y((e, t) => {
11835
- const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Hr(bi, n), s = el(bi, n), l = kg(bi, n), c = vS(bi, n), [u, f] = xe(null), p = De(
11835
+ const { __scopeSelect: n, className: r, style: o, ...a } = e, i = Hr(bi, n), s = el(bi, n), l = kg(bi, n), c = vS(bi, n), [u, f] = we(null), p = De(
11836
11836
  t,
11837
11837
  (b) => f(b),
11838
11838
  l.onItemTextChange,
@@ -11840,7 +11840,7 @@ const $g = /* @__PURE__ */ Y((e, t) => /* @__PURE__ */ R(Se.span, K({}, e, {
11840
11840
  var y;
11841
11841
  return (y = s.itemTextRefCallback) === null || y === void 0 ? void 0 : y.call(s, b, l.value, l.disabled);
11842
11842
  }
11843
- ), m = u == null ? void 0 : u.textContent, h = we(
11843
+ ), m = u == null ? void 0 : u.textContent, h = xe(
11844
11844
  () => /* @__PURE__ */ R("option", {
11845
11845
  key: l.value,
11846
11846
  value: l.value,
@@ -12199,7 +12199,7 @@ function Wd({ children: e, colorScheme: t = "tag-yellow", variant: n = "default"
12199
12199
  const [tl, nV] = Ct("Tooltip", [
12200
12200
  Fo
12201
12201
  ]), jd = Fo(), AM = "TooltipProvider", CM = 700, Wc = "tooltip.open", [SM, Vd] = tl(AM), MM = (e) => {
12202
- const { __scopeTooltip: t, delayDuration: n = CM, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: a } = e, [i, s] = xe(!0), l = ce(!1), c = ce(0);
12202
+ const { __scopeTooltip: t, delayDuration: n = CM, skipDelayDuration: r = 300, disableHoverableContent: o = !1, children: a } = e, [i, s] = we(!0), l = ce(!1), c = ce(0);
12203
12203
  return Ce(() => {
12204
12204
  const u = c.current;
12205
12205
  return () => window.clearTimeout(u);
@@ -12225,13 +12225,13 @@ const [tl, nV] = Ct("Tooltip", [
12225
12225
  disableHoverableContent: o
12226
12226
  }, a);
12227
12227
  }, Ud = "Tooltip", [EM, La] = tl(Ud), $M = (e) => {
12228
- const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = Vd(Ud, e.__scopeTooltip), c = jd(t), [u, f] = xe(null), p = Mt(), m = ce(0), h = i ?? l.disableHoverableContent, g = s ?? l.delayDuration, x = ce(!1), [b = !1, y] = Et({
12228
+ const { __scopeTooltip: t, children: n, open: r, defaultOpen: o = !1, onOpenChange: a, disableHoverableContent: i, delayDuration: s } = e, l = Vd(Ud, e.__scopeTooltip), c = jd(t), [u, f] = we(null), p = Mt(), m = ce(0), h = i ?? l.disableHoverableContent, g = s ?? l.delayDuration, x = ce(!1), [b = !1, y] = Et({
12229
12229
  prop: r,
12230
12230
  defaultProp: o,
12231
12231
  onChange: (P) => {
12232
12232
  P ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Wc))) : l.onClose(), a == null || a(P);
12233
12233
  }
12234
- }), v = we(() => b ? x.current ? "delayed-open" : "instant-open" : "closed", [
12234
+ }), v = xe(() => b ? x.current ? "delayed-open" : "instant-open" : "closed", [
12235
12235
  b
12236
12236
  ]), A = pe(() => {
12237
12237
  window.clearTimeout(m.current), x.current = !1, y(!0);
@@ -12333,7 +12333,7 @@ const [tl, nV] = Ct("Tooltip", [
12333
12333
  ref: t
12334
12334
  })));
12335
12335
  }), DM = /* @__PURE__ */ Y((e, t) => {
12336
- const n = La(xa, e.__scopeTooltip), r = Vd(xa, e.__scopeTooltip), o = ce(null), a = De(t, o), [i, s] = xe(null), { trigger: l, onClose: c } = n, u = o.current, { onPointerInTransitChange: f } = r, p = pe(() => {
12336
+ const n = La(xa, e.__scopeTooltip), r = Vd(xa, e.__scopeTooltip), o = ce(null), a = De(t, o), [i, s] = we(null), { trigger: l, onClose: c } = n, u = o.current, { onPointerInTransitChange: f } = r, p = pe(() => {
12337
12337
  s(null), f(!1);
12338
12338
  }, [
12339
12339
  f
@@ -14245,7 +14245,7 @@ function xo(e, t, n) {
14245
14245
  xo.animationRealms = [];
14246
14246
  xo.globalOptions = void 0;
14247
14247
  function Qd(e = {}, t = []) {
14248
- const n = ce(e), r = ce(t), [o, a] = xe(), [i, s] = xe(), l = pe(() => {
14248
+ const n = ce(e), r = ce(t), [o, a] = we(), [i, s] = we(), l = pe(() => {
14249
14249
  o && o.reInit(n.current, r.current);
14250
14250
  }, [o]);
14251
14251
  return Ce(() => {
@@ -14604,7 +14604,7 @@ function Zd(e) {
14604
14604
  return o;
14605
14605
  }
14606
14606
  const uv = qt({}), w$ = (e) => {
14607
- const [t, n] = xe(!0), [r, o] = xe(!0), a = pe(() => {
14607
+ const [t, n] = we(!0), [r, o] = we(!0), a = pe(() => {
14608
14608
  e && e.scrollPrev();
14609
14609
  }, [e]), i = pe(() => {
14610
14610
  e && e.scrollNext();
@@ -14623,7 +14623,7 @@ const uv = qt({}), w$ = (e) => {
14623
14623
  function A$({ children: e, options: t }) {
14624
14624
  const [n, r] = Qd({ align: "center", dragFree: !0, ...t }, [
14625
14625
  Zd()
14626
- ]), { prevBtnDisabled: o, nextBtnDisabled: a, onPrevButtonClick: i, onNextButtonClick: s } = w$(r), l = we(() => ({
14626
+ ]), { prevBtnDisabled: o, nextBtnDisabled: a, onPrevButtonClick: i, onNextButtonClick: s } = w$(r), l = xe(() => ({
14627
14627
  emblaRef: n,
14628
14628
  emblaApi: r,
14629
14629
  prevBtnDisabled: o,
@@ -16933,12 +16933,12 @@ var FP = [], _P = {
16933
16933
  height: "100%"
16934
16934
  };
16935
16935
  function br(e) {
16936
- var t = e.className, n = e.children, r = e.debounceTime, o = r === void 0 ? 300 : r, a = e.ignoreDimensions, i = a === void 0 ? FP : a, s = e.parentSizeStyles, l = s === void 0 ? _P : s, c = e.enableDebounceLeadingCall, u = c === void 0 ? !0 : c, f = e.resizeObserverPolyfill, p = DP(e, NP), m = ce(null), h = ce(0), g = xe({
16936
+ var t = e.className, n = e.children, r = e.debounceTime, o = r === void 0 ? 300 : r, a = e.ignoreDimensions, i = a === void 0 ? FP : a, s = e.parentSizeStyles, l = s === void 0 ? _P : s, c = e.enableDebounceLeadingCall, u = c === void 0 ? !0 : c, f = e.resizeObserverPolyfill, p = DP(e, NP), m = ce(null), h = ce(0), g = we({
16937
16937
  width: 0,
16938
16938
  height: 0,
16939
16939
  top: 0,
16940
16940
  left: 0
16941
- }), x = g[0], b = g[1], y = we(function() {
16941
+ }), x = g[0], b = g[1], y = xe(function() {
16942
16942
  var v = Array.isArray(i) ? i : [i];
16943
16943
  return Gv(function(A) {
16944
16944
  b(function(w) {
@@ -17845,7 +17845,7 @@ function rp(e) {
17845
17845
  );
17846
17846
  }
17847
17847
  function tu(e) {
17848
- var t = e.verticalAnchor, n = t === void 0 ? "end" : t, r = e.scaleToFit, o = r === void 0 ? !1 : r, a = e.angle, i = e.width, s = e.lineHeight, l = s === void 0 ? "1em" : s, c = e.capHeight, u = c === void 0 ? "0.71em" : c, f = e.children, p = e.style, m = AN(e, wN), h = m.x, g = h === void 0 ? 0 : h, x = m.y, b = x === void 0 ? 0 : x, y = !rp(g) || !rp(b), v = we(function() {
17848
+ var t = e.verticalAnchor, n = t === void 0 ? "end" : t, r = e.scaleToFit, o = r === void 0 ? !1 : r, a = e.angle, i = e.width, s = e.lineHeight, l = s === void 0 ? "1em" : s, c = e.capHeight, u = c === void 0 ? "0.71em" : c, f = e.children, p = e.style, m = AN(e, wN), h = m.x, g = h === void 0 ? 0 : h, x = m.y, b = x === void 0 ? 0 : x, y = !rp(g) || !rp(b), v = xe(function() {
17849
17849
  var M = f == null ? [] : f.toString().split(/(?:(?!\u00A0+)\s+)/);
17850
17850
  return {
17851
17851
  wordsWithWidth: M.map(function($) {
@@ -17856,7 +17856,7 @@ function tu(e) {
17856
17856
  }),
17857
17857
  spaceWidth: np(" ", p) || 0
17858
17858
  };
17859
- }, [f, p]), A = v.wordsWithWidth, w = v.spaceWidth, E = we(function() {
17859
+ }, [f, p]), A = v.wordsWithWidth, w = v.spaceWidth, E = xe(function() {
17860
17860
  return y ? [] : i || o ? A.reduce(function(M, $) {
17861
17861
  var I = $.word, W = $.wordWidth, V = M[M.length - 1];
17862
17862
  if (V && (i == null || o || (V.width || 0) + W + w < i))
@@ -17872,10 +17872,10 @@ function tu(e) {
17872
17872
  }, []) : [{
17873
17873
  words: f == null ? [] : f.toString().split(/(?:(?!\u00A0+)\s+)/)
17874
17874
  }];
17875
- }, [y, i, o, f, A, w]), P = we(function() {
17875
+ }, [y, i, o, f, A, w]), P = xe(function() {
17876
17876
  var M = y ? "" : tc(n === "start" ? "calc(" + u + ")" : n === "middle" ? "calc(" + (E.length - 1) / 2 + " * -" + l + " + (" + u + " / 2))" : "calc(" + (E.length - 1) + " * -" + l + ")");
17877
17877
  return M;
17878
- }, [y, n, u, E.length, l]), T = we(function() {
17878
+ }, [y, n, u, E.length, l]), T = xe(function() {
17879
17879
  var M = [];
17880
17880
  if (y)
17881
17881
  return "";
@@ -17974,7 +17974,7 @@ function ou(e) {
17974
17974
  } : window.ResizeObserver);
17975
17975
  if (!a)
17976
17976
  throw new Error("This browser does not support ResizeObserver out of the box. See: https://github.com/react-spring/react-use-measure/#resize-observer-polyfills");
17977
- const [i, s] = xe({
17977
+ const [i, s] = we({
17978
17978
  left: 0,
17979
17979
  top: 0,
17980
17980
  width: 0,
@@ -17990,7 +17990,7 @@ function ou(e) {
17990
17990
  lastBounds: i
17991
17991
  }), c = t ? typeof t == "number" ? t : t.scroll : null, u = t ? typeof t == "number" ? t : t.resize : null, f = ce(!1);
17992
17992
  Ce(() => (f.current = !0, () => void (f.current = !1)));
17993
- const [p, m, h] = we(() => {
17993
+ const [p, m, h] = xe(() => {
17994
17994
  const y = () => {
17995
17995
  if (!l.current.element)
17996
17996
  return;
@@ -18134,7 +18134,7 @@ function i3(e) {
18134
18134
  polyfill: h
18135
18135
  }), re = q[0], ae = q[1], oe = ou({
18136
18136
  polyfill: h
18137
- }), ee = oe[0], ie = oe[1], X = we(function() {
18137
+ }), ee = oe[0], ie = oe[1], X = xe(function() {
18138
18138
  return ON(l);
18139
18139
  }, [l]), Z = Ge(cl), de = Z.x, D = de === void 0 ? 0 : de, se = Z.y, fe = se === void 0 ? 0 : se, ve = Z.dx, Me = ve === void 0 ? 0 : ve, Pe = Z.dy, tt = Pe === void 0 ? 0 : Pe, Qe = Math.floor(X.top + X.bottom + ((t = ae.height) != null ? t : 0) + ((n = ie.height) != null ? n : 0)), mt = tu(rr({
18140
18140
  children: I,
@@ -18158,19 +18158,19 @@ function i3(e) {
18158
18158
  }, 0), Ot = Le.reduce(function(Je, Ue) {
18159
18159
  var ut;
18160
18160
  return Math.max(Je, (ut = Ue.width) != null ? ut : 0);
18161
- }, 0), Ut = Math.ceil(Math.min(k, Math.max(Kt, Ot))), ft = X.right + X.left + Ut, at = z ?? ft, lt = at - X.left - X.right, bt = m || (Math.abs(Me) < Math.abs(tt) ? "middle" : Me > 0 ? "start" : "end"), xt = H || (Math.abs(Me) > Math.abs(tt) ? "middle" : tt > 0 ? "start" : "end"), ct = we(function() {
18161
+ }, 0), Ut = Math.ceil(Math.min(k, Math.max(Kt, Ot))), ft = X.right + X.left + Ut, at = z ?? ft, lt = at - X.left - X.right, bt = m || (Math.abs(Me) < Math.abs(tt) ? "middle" : Me > 0 ? "start" : "end"), xt = H || (Math.abs(Me) > Math.abs(tt) ? "middle" : tt > 0 ? "start" : "end"), ct = xe(function() {
18162
18162
  var Je = _ ?? D + Me, Ue = Q ?? fe + tt;
18163
18163
  return bt === "middle" && (Je -= at / 2), bt === "end" && (Je -= at), xt === "middle" && (Ue -= Qe / 2), xt === "end" && (Ue -= Qe), {
18164
18164
  x: Je,
18165
18165
  y: Ue
18166
18166
  };
18167
- }, [_, D, Me, Q, fe, tt, bt, xt, at, Qe]), an = F == null ? void 0 : F.fontFamily, Te = we(function() {
18167
+ }, [_, D, Me, Q, fe, tt, bt, xt, at, Qe]), an = F == null ? void 0 : F.fontFamily, Te = xe(function() {
18168
18168
  return {
18169
18169
  fontSize: V,
18170
18170
  fontWeight: S,
18171
18171
  fontFamily: an
18172
18172
  };
18173
- }, [V, S, an]), Re = $ == null ? void 0 : $.fontFamily, Xe = we(function() {
18173
+ }, [V, S, an]), Re = $ == null ? void 0 : $.fontFamily, Xe = xe(function() {
18174
18174
  return {
18175
18175
  fontSize: P,
18176
18176
  fontWeight: M,
@@ -18278,7 +18278,7 @@ s3.propTypes = {
18278
18278
  radius: J.number
18279
18279
  };
18280
18280
  function l3(e) {
18281
- var t = e.x, n = e.y, r = e.dx, o = e.dy, a = e.children, i = we(function() {
18281
+ var t = e.x, n = e.y, r = e.dx, o = e.dy, a = e.children, i = xe(function() {
18282
18282
  return {
18283
18283
  x: t,
18284
18284
  y: n,
@@ -21675,10 +21675,10 @@ function rI(e, t) {
21675
21675
  return n;
21676
21676
  }
21677
21677
  function oI(e) {
21678
- var t, n, r, o, a, i, s, l = e.AxisComponent, c = rI(e, nI), u = Ge(jt), f = u.theme, p = u.xScale, m = u.yScale, h = u.margin, g = u.width, x = u.height, b = c.orientation, y = we(function() {
21678
+ var t, n, r, o, a, i, s, l = e.AxisComponent, c = rI(e, nI), u = Ge(jt), f = u.theme, p = u.xScale, m = u.yScale, h = u.margin, g = u.width, x = u.height, b = c.orientation, y = xe(function() {
21679
21679
  var T, M, $, I;
21680
21680
  return b === "left" || b === "right" ? f == null || (T = f.axisStyles) == null || (M = T.y) == null ? void 0 : M[b] : f == null || ($ = f.axisStyles) == null || (I = $.x) == null ? void 0 : I[b];
21681
- }, [f, b]), v = c.tickLabelProps, A = we(function() {
21681
+ }, [f, b]), v = c.tickLabelProps, A = xe(function() {
21682
21682
  return v || y ? function(T, M, $) {
21683
21683
  return (
21684
21684
  // by default, wrap vertical-axis tick labels within the allotted margin space
@@ -22185,7 +22185,7 @@ function As() {
22185
22185
  }, As.apply(this, arguments);
22186
22186
  }
22187
22187
  function El(e) {
22188
- var t = xe(As({
22188
+ var t = we(As({
22189
22189
  tooltipOpen: !1
22190
22190
  }, e)), n = t[0], r = t[1], o = pe(function(i) {
22191
22191
  return r(typeof i == "function" ? function(s) {
@@ -22441,11 +22441,11 @@ function dh(e, t) {
22441
22441
  return n;
22442
22442
  }
22443
22443
  function $l(e) {
22444
- var t = e === void 0 ? {} : e, n = t.detectBounds, r = n === void 0 ? !0 : n, o = t.zIndex, a = dh(t, qI), i = ou(a), s = i[0], l = i[1], c = i[2], u = xe(!1), f = u[0], p = u[1];
22444
+ var t = e === void 0 ? {} : e, n = t.detectBounds, r = n === void 0 ? !0 : n, o = t.zIndex, a = dh(t, qI), i = ou(a), s = i[0], l = i[1], c = i[2], u = we(!1), f = u[0], p = u[1];
22445
22445
  Ce(function() {
22446
22446
  p(!1);
22447
22447
  }, []);
22448
- var m = we(function() {
22448
+ var m = xe(function() {
22449
22449
  return function(h) {
22450
22450
  var g = h.left, x = g === void 0 ? 0 : g, b = h.top, y = b === void 0 ? 0 : b, v = h.detectBounds, A = h.zIndex, w = dh(h, KI), E = v ?? r, P = A ?? o, T = E ? XI : e4, M = f ? 0 : window.scrollX, $ = f ? 0 : window.scrollY, I = x + (l.left || 0) + M, W = y + (l.top || 0) + $;
22451
22451
  return /* @__PURE__ */ N.createElement(J5, {
@@ -22822,7 +22822,7 @@ function uL(e) {
22822
22822
  } };
22823
22823
  }
22824
22824
  function dL(e) {
22825
- var t = e.children, n = we(function() {
22825
+ var t = e.children, n = xe(function() {
22826
22826
  return uL();
22827
22827
  }, []);
22828
22828
  return /* @__PURE__ */ N.createElement(l4.Provider, {
@@ -22874,7 +22874,7 @@ function c4(e) {
22874
22874
  });
22875
22875
  }), h = pe(function() {
22876
22876
  f.current = Gv(u, n), f.current();
22877
- }, [u, n]), g = we(function() {
22877
+ }, [u, n]), g = xe(function() {
22878
22878
  return {
22879
22879
  tooltipOpen: a,
22880
22880
  tooltipLeft: i,
@@ -23305,10 +23305,10 @@ var uB = /* @__PURE__ */ function() {
23305
23305
  }, e;
23306
23306
  }();
23307
23307
  function dB() {
23308
- var e = xe(Math.random()), t = e[1], n = we(function() {
23308
+ var e = we(Math.random()), t = e[1], n = xe(function() {
23309
23309
  return new uB();
23310
23310
  }, []);
23311
- return we(function() {
23311
+ return xe(function() {
23312
23312
  return {
23313
23313
  registerData: function() {
23314
23314
  n.registerData.apply(n, arguments), t(Math.random());
@@ -23339,7 +23339,7 @@ var wc = {
23339
23339
  }
23340
23340
  };
23341
23341
  function fB(e) {
23342
- var t = xe({
23342
+ var t = we({
23343
23343
  width: (e == null ? void 0 : e.width) == null ? wc.width : e.width,
23344
23344
  height: (e == null ? void 0 : e.height) == null ? wc.height : e.height,
23345
23345
  margin: (e == null ? void 0 : e.margin) == null ? wc.margin : e.margin
@@ -23425,7 +23425,7 @@ function co() {
23425
23425
  }, co.apply(this, arguments);
23426
23426
  }
23427
23427
  function bB(e) {
23428
- var t = e.dataRegistry, n = e.xRange, r = e.xScaleConfig, o = e.yRange, a = e.yScaleConfig, i = t.keys(), s = n[0], l = n[1], c = o[0], u = o[1], f = we(function() {
23428
+ var t = e.dataRegistry, n = e.xRange, r = e.xScaleConfig, o = e.yRange, a = e.yScaleConfig, i = t.keys(), s = n[0], l = n[1], c = o[0], u = o[1], f = xe(function() {
23429
23429
  var m = i.map(function(b) {
23430
23430
  return t.get(b);
23431
23431
  }), h = m.reduce(function(b, y) {
@@ -23446,7 +23446,7 @@ function bB(e) {
23446
23446
  b != null && b.xScale && (x = b.xScale(x));
23447
23447
  }), x;
23448
23448
  }
23449
- }, [t, r, i, s, l]), p = we(function() {
23449
+ }, [t, r, i, s, l]), p = xe(function() {
23450
23450
  var m = i.map(function(b) {
23451
23451
  return t.get(b);
23452
23452
  }), h = m.reduce(function(b, y) {
@@ -23480,12 +23480,12 @@ function f4(e) {
23480
23480
  yScaleConfig: o,
23481
23481
  xRange: [g.left, Math.max(0, m - g.right)],
23482
23482
  yRange: [Math.max(0, h - g.bottom), g.top]
23483
- }), w = A.xScale, E = A.yScale, P = v.keys(), T = we(function() {
23483
+ }), w = A.xScale, E = A.yScale, P = v.keys(), T = xe(function() {
23484
23484
  return JL({
23485
23485
  domain: P,
23486
23486
  range: u.colors
23487
23487
  });
23488
- }, [P, u.colors]), M = s === "auto" ? Iu(o) || o.type === "time" || o.type === "utc" : s, $ = we(
23488
+ }, [P, u.colors]), M = s === "auto" ? Iu(o) || o.type === "time" || o.type === "utc" : s, $ = xe(
23489
23489
  function() {
23490
23490
  return {
23491
23491
  dataRegistry: v,
@@ -23874,9 +23874,9 @@ function Wu() {
23874
23874
  }, Wu.apply(this, arguments);
23875
23875
  }
23876
23876
  function w4(e) {
23877
- var t, n, r, o = e.colorAccessor, a = e.data, i = e.dataKey, s = e.onBlur, l = e.onFocus, c = e.onPointerMove, u = e.onPointerOut, f = e.onPointerUp, p = e.onPointerDown, m = e.enableEvents, h = m === void 0 ? !0 : m, g = e.renderGlyphs, x = e.size, b = x === void 0 ? 8 : x, y = e.xAccessor, v = e.xScale, A = e.yAccessor, w = e.yScale, E = Ge(jt), P = E.colorScale, T = E.theme, M = E.horizontal, $ = we(function() {
23877
+ var t, n, r, o = e.colorAccessor, a = e.data, i = e.dataKey, s = e.onBlur, l = e.onFocus, c = e.onPointerMove, u = e.onPointerOut, f = e.onPointerUp, p = e.onPointerDown, m = e.enableEvents, h = m === void 0 ? !0 : m, g = e.renderGlyphs, x = e.size, b = x === void 0 ? 8 : x, y = e.xAccessor, v = e.xScale, A = e.yAccessor, w = e.yScale, E = Ge(jt), P = E.colorScale, T = E.theme, M = E.horizontal, $ = xe(function() {
23878
23878
  return $s(v, y);
23879
- }, [v, y]), I = we(function() {
23879
+ }, [v, y]), I = xe(function() {
23880
23880
  return $s(w, A);
23881
23881
  }, [w, A]), W = (t = (n = P == null ? void 0 : P(i)) != null ? n : T == null || (r = T.colors) == null ? void 0 : r[0]) != null ? t : "#222", V = AB + "-" + i, B = t0({
23882
23882
  dataKey: i,
@@ -23889,7 +23889,7 @@ function w4(e) {
23889
23889
  onPointerDown: p,
23890
23890
  source: V,
23891
23891
  allowedSources: [ei, V]
23892
- }), S = we(function() {
23892
+ }), S = xe(function() {
23893
23893
  return a.map(function(F, H) {
23894
23894
  var z, O = $(F);
23895
23895
  if (!dt(O))
@@ -24046,22 +24046,22 @@ function WB(e) {
24046
24046
  });
24047
24047
  }
24048
24048
  function jB(e) {
24049
- var t = e.children, n = e.order, r = e.offset, o = Ge(jt), a = o.horizontal, i = o.registerData, s = o.unregisterData, l = we(function() {
24049
+ var t = e.children, n = e.order, r = e.offset, o = Ge(jt), a = o.horizontal, i = o.registerData, s = o.unregisterData, l = xe(function() {
24050
24050
  return WB(t);
24051
- }, [t]), c = we(function() {
24051
+ }, [t]), c = xe(function() {
24052
24052
  return l.filter(function(m) {
24053
24053
  return m.props.dataKey;
24054
24054
  }).map(function(m) {
24055
24055
  return m.props.dataKey;
24056
24056
  });
24057
- }, [l]), u = we(function() {
24057
+ }, [l]), u = xe(function() {
24058
24058
  return BB(l, a);
24059
- }, [a, l]), f = we(function() {
24059
+ }, [a, l]), f = xe(function() {
24060
24060
  var m = r ? null : u.some(function(g) {
24061
24061
  return g.negativeSum < 0;
24062
24062
  }), h = IB();
24063
24063
  return h.keys(c), n && h.order(EB(n)), (r || m) && h.offset(TB(r || "diverging")), h(u);
24064
- }, [u, c, n, r]), p = we(function() {
24064
+ }, [u, c, n, r]), p = xe(function() {
24065
24065
  return ka(f.reduce(function(m, h) {
24066
24066
  return h.forEach(function(g) {
24067
24067
  var x = g[0], b = g[1];
@@ -24157,15 +24157,15 @@ var XB = function(t, n) {
24157
24157
  );
24158
24158
  };
24159
24159
  function C4(e) {
24160
- var t, n, r, o = e.BarsComponent, a = e.barPadding, i = a === void 0 ? 0.1 : a, s = e.colorAccessor, l = e.data, c = e.dataKey, u = e.onBlur, f = e.onFocus, p = e.onPointerMove, m = e.onPointerOut, h = e.onPointerUp, g = e.onPointerDown, x = e.enableEvents, b = x === void 0 ? !0 : x, y = e.xAccessor, v = e.xScale, A = e.yAccessor, w = e.yScale, E = GB(e, YB), P = Ge(jt), T = P.colorScale, M = P.horizontal, $ = P.theme, I = P.innerWidth, W = I === void 0 ? 0 : I, V = P.innerHeight, B = V === void 0 ? 0 : V, S = we(function() {
24160
+ var t, n, r, o = e.BarsComponent, a = e.barPadding, i = a === void 0 ? 0.1 : a, s = e.colorAccessor, l = e.data, c = e.dataKey, u = e.onBlur, f = e.onFocus, p = e.onPointerMove, m = e.onPointerOut, h = e.onPointerUp, g = e.onPointerDown, x = e.enableEvents, b = x === void 0 ? !0 : x, y = e.xAccessor, v = e.xScale, A = e.yAccessor, w = e.yScale, E = GB(e, YB), P = Ge(jt), T = P.colorScale, M = P.horizontal, $ = P.theme, I = P.innerWidth, W = I === void 0 ? 0 : I, V = P.innerHeight, B = V === void 0 ? 0 : V, S = xe(function() {
24161
24161
  return $s(v, y);
24162
- }, [v, y]), F = we(function() {
24162
+ }, [v, y]), F = xe(function() {
24163
24163
  return $s(w, A);
24164
- }, [w, A]), H = ys(M ? w : v), z = H || XB((M ? B : W) / l.length, i), O = we(function() {
24164
+ }, [w, A]), H = ys(M ? w : v), z = H || XB((M ? B : W) / l.length, i), O = xe(function() {
24165
24165
  return v ? yh(v) : 0;
24166
- }, [v]), k = we(function() {
24166
+ }, [v]), k = xe(function() {
24167
24167
  return w ? yh(w) : 0;
24168
- }, [w]), _ = (t = (n = T == null ? void 0 : T(c)) != null ? n : $ == null || (r = $.colors) == null ? void 0 : r[0]) != null ? t : "#222", Q = we(function() {
24168
+ }, [w]), _ = (t = (n = T == null ? void 0 : T(c)) != null ? n : $ == null || (r = $.colors) == null ? void 0 : r[0]) != null ? t : "#222", Q = xe(function() {
24169
24169
  var ae = M ? 0 : -z / 2, oe = M ? -z / 2 : 0;
24170
24170
  return l.map(function(ee, ie) {
24171
24171
  var X, Z = S(ee) + ae;
@@ -25437,9 +25437,9 @@ const iz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ d(Io, { cx: e,
25437
25437
  tooltipStackCharLimit: x = $4,
25438
25438
  seriesSelectorTitle: b
25439
25439
  }, y) => {
25440
- const [v, A] = xe(e.map((M) => M.id)), w = ce(null);
25440
+ const [v, A] = we(e.map((M) => M.id)), w = ce(null);
25441
25441
  Gn(w, y, `${a}-${i}-LineChart`);
25442
- const E = we(() => o.map((M, $) => {
25442
+ const E = xe(() => o.map((M, $) => {
25443
25443
  const I = e.find((W) => W.id === M.id);
25444
25444
  return {
25445
25445
  points: M.data.map((W, V) => ({
@@ -25449,7 +25449,7 @@ const iz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ d(Io, { cx: e,
25449
25449
  color: (I == null ? void 0 : I.color) ?? st($)
25450
25450
  }))
25451
25451
  };
25452
- }).slice(0, p === "mini" ? g : o.length), [o, p, g, e, r]), P = we(() => p === "full" ? E.filter((M) => v.includes(M.points[0].nodeId)) : E, [E, v, p]), T = we(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
25452
+ }).slice(0, p === "mini" ? g : o.length), [o, p, g, e, r]), P = xe(() => p === "full" ? E.filter((M) => v.includes(M.points[0].nodeId)) : E, [E, v, p]), T = xe(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
25453
25453
  return /* @__PURE__ */ j(
25454
25454
  "div",
25455
25455
  {
@@ -25994,23 +25994,23 @@ function gz({
25994
25994
  }
25995
25995
  const Oh = 80, Nh = 20, vz = 30, yz = 12, P4 = Y(
25996
25996
  ({ height: e, width: t, tooltipTitle: n, nodes: r, links: o, groups: a, weightLabel: i }, s) => {
25997
- const l = we(
25997
+ const l = xe(
25998
25998
  () => mz().nodeId((S) => S.id).nodeWidth(yz).nodePadding(vz).nodeAlign((S) => S.group),
25999
25999
  []
26000
26000
  ), c = ce(null);
26001
26001
  Gn(c, s, `${n}-SankeyChart`);
26002
- const [u, f] = xe(""), [p, m] = xe(null), { tooltipData: h, tooltipLeft: g, tooltipTop: x, tooltipOpen: b, showTooltip: y, hideTooltip: v } = El(), { containerBounds: A, containerRef: w, TooltipInPortal: E } = $l({
26002
+ const [u, f] = we(""), [p, m] = we(null), { tooltipData: h, tooltipLeft: g, tooltipTop: x, tooltipOpen: b, showTooltip: y, hideTooltip: v } = El(), { containerBounds: A, containerRef: w, TooltipInPortal: E } = $l({
26003
26003
  detectBounds: !0,
26004
26004
  debounce: 500,
26005
26005
  scroll: !0,
26006
26006
  zIndex: 1500
26007
- }), P = we(
26007
+ }), P = xe(
26008
26008
  () => l.extent([
26009
26009
  [Oh, Nh],
26010
26010
  [t - Oh, e - Nh - 50]
26011
26011
  ])({ nodes: r, links: o.map((S) => ({ ...S, value: Number(S.weight) })) }),
26012
26012
  [e, t, l, r, o]
26013
- ), T = we(() => Math.max(...P.nodes.map((S) => S.depth ?? 0)), [P]), M = we(() => {
26013
+ ), T = xe(() => Math.max(...P.nodes.map((S) => S.depth ?? 0)), [P]), M = xe(() => {
26014
26014
  const S = {};
26015
26015
  let F = -1 / 0;
26016
26016
  return P.nodes.forEach((H) => {
@@ -26027,7 +26027,7 @@ const Oh = 80, Nh = 20, vz = 30, yz = 12, P4 = Y(
26027
26027
  [u, l]
26028
26028
  ), I = pe(() => {
26029
26029
  f(""), m(null);
26030
- }, []), W = we(() => u === "" && p === null ? /* @__PURE__ */ new Set() : new Set(
26030
+ }, []), W = xe(() => u === "" && p === null ? /* @__PURE__ */ new Set() : new Set(
26031
26031
  P.links.filter(
26032
26032
  (S) => l.nodeId()(S.source) === u || l.nodeId()(S.target) === u || (p == null ? void 0 : p.source) === S.source && (p == null ? void 0 : p.target) === S.target
26033
26033
  )
@@ -26257,14 +26257,14 @@ const Dh = 20, Fh = 50, Sc = 80, Fi = 50, Az = 10, Cz = 25, s0 = Y(
26257
26257
  integerBins: u = !1,
26258
26258
  integerYAxis: f = !1
26259
26259
  }, p) => {
26260
- const m = we(() => Ui(a), [a]), { histogramDomain: h, threshold: g, thresholdInteger: x } = we(() => {
26260
+ const m = xe(() => Ui(a), [a]), { histogramDomain: h, threshold: g, thresholdInteger: x } = xe(() => {
26261
26261
  const O = m[0] ?? 0, k = O === m[1] ? c + O : m[1] ?? 0, _ = k - O > c ? k : c + O, Q = Math.min(Math.max(k - O, c), l), q = Math.floor(m[0] ?? 0), re = Math.ceil(_);
26262
26262
  return {
26263
26263
  histogramDomain: r || (u ? [q, re] : [O, k]),
26264
26264
  threshold: Q,
26265
26265
  thresholdInteger: Math.ceil(Q)
26266
26266
  };
26267
- }, [m, r, u, l, c]), b = we(
26267
+ }, [m, r, u, l, c]), b = xe(
26268
26268
  () => Po({
26269
26269
  domain: h,
26270
26270
  range: [Fi, i - Fh],
@@ -26272,7 +26272,7 @@ const Dh = 20, Fh = 50, Sc = 80, Fi = 50, Az = 10, Cz = 25, s0 = Y(
26272
26272
  nice: !0
26273
26273
  }),
26274
26274
  [h, i]
26275
- ), y = we(() => uD().domain(b.domain()).thresholds(o || (u ? x : g))(a), [b, o, a, g, x, u]), v = we(
26275
+ ), y = xe(() => uD().domain(b.domain()).thresholds(o || (u ? x : g))(a), [b, o, a, g, x, u]), v = xe(
26276
26276
  () => Po({
26277
26277
  domain: [0, su(y, (O) => O.length) ?? 0],
26278
26278
  range: [s - Sc, Dh],
@@ -26280,7 +26280,7 @@ const Dh = 20, Fh = 50, Sc = 80, Fi = 50, Az = 10, Cz = 25, s0 = Y(
26280
26280
  nice: !0
26281
26281
  }),
26282
26282
  [y, s]
26283
- ), A = we(
26283
+ ), A = xe(
26284
26284
  () => v.ticks().filter((O) => f ? Number.isInteger(O) : O),
26285
26285
  [f, v]
26286
26286
  ), w = ce(null);
@@ -26447,7 +26447,7 @@ s0.displayName = "HistogramBase";
26447
26447
  D4.displayName = "HistogramChart";
26448
26448
  const mV = D4, Sz = (e) => e.value, Mz = (e) => e.label, F4 = Y(
26449
26449
  ({ width: e, height: t, unit: n = "%", data: r }, o) => {
26450
- const a = e / 2, i = t / 2, s = Math.min(e - 200, t - 20) / 2, l = ce(null);
26450
+ const a = e / 2, i = t / 2, s = xe(() => Math.min(e - 0.4 * e, t - 20) / 2, [e, t]), l = ce(null);
26451
26451
  return Gn(l, o, "DonutChart"), /* @__PURE__ */ d(
26452
26452
  "div",
26453
26453
  {
@@ -26463,31 +26463,40 @@ const mV = D4, Sz = (e) => e.value, Mz = (e) => e.label, F4 = Y(
26463
26463
  data: r,
26464
26464
  pieValue: Sz,
26465
26465
  outerRadius: s - 10,
26466
- innerRadius: s - 22 - 10,
26466
+ innerRadius: s - Math.min(e * 0.07, 22) - 10,
26467
26467
  cornerRadius: 2,
26468
26468
  padAngle: 0.025,
26469
26469
  children: (c) => /* @__PURE__ */ d(Na, { children: c.arcs.map((u) => {
26470
26470
  const [f, p] = c.path.centroid(u), m = Mz(u.data), h = u.startAngle + (u.endAngle - u.startAngle) / 2;
26471
26471
  return /* @__PURE__ */ j("g", { children: [
26472
26472
  /* @__PURE__ */ d("path", { d: c.path(u) ?? void 0, fill: u.data.color }),
26473
- /* @__PURE__ */ j(l3, { x: f, y: p, dx: h > Math.PI ? -30 : 30, dy: -20, children: [
26474
- /* @__PURE__ */ d(Xv, { type: "elbow", stroke: u.data.labelColor }),
26475
- /* @__PURE__ */ d(s3, { radius: 1, strokeWidth: 2, stroke: u.data.labelColor }),
26476
- /* @__PURE__ */ d(
26477
- i3,
26478
- {
26479
- title: `${m}: ${u.value} ${n}`,
26480
- maxWidth: 100,
26481
- backgroundFill: "transparent",
26482
- backgroundPadding: { left: 4, right: 10 },
26483
- titleFontSize: 10,
26484
- horizontalAnchor: h > Math.PI ? "end" : "start",
26485
- verticalAnchor: "middle",
26486
- fontColor: u.data.labelColor,
26487
- showAnchorLine: !1
26488
- }
26489
- )
26490
- ] })
26473
+ /* @__PURE__ */ j(
26474
+ l3,
26475
+ {
26476
+ x: f,
26477
+ y: p,
26478
+ dx: h > Math.PI ? -(e * 0.13) : e * 0.13,
26479
+ dy: -20,
26480
+ children: [
26481
+ /* @__PURE__ */ d(Xv, { type: "elbow", stroke: u.data.labelColor }),
26482
+ /* @__PURE__ */ d(s3, { radius: 1, strokeWidth: 2, stroke: u.data.labelColor }),
26483
+ /* @__PURE__ */ d(
26484
+ i3,
26485
+ {
26486
+ title: `${m}: ${u.value}${n}`,
26487
+ maxWidth: e * 0.2,
26488
+ backgroundFill: "transparent",
26489
+ backgroundPadding: { left: 4, right: 10 },
26490
+ titleFontSize: Math.min(e * 0.025, 10),
26491
+ horizontalAnchor: h > Math.PI ? "end" : "start",
26492
+ verticalAnchor: "middle",
26493
+ fontColor: u.data.labelColor,
26494
+ showAnchorLine: !1
26495
+ }
26496
+ )
26497
+ ]
26498
+ }
26499
+ )
26491
26500
  ] }, `arc-${m}`);
26492
26501
  }) })
26493
26502
  }
@@ -26568,7 +26577,7 @@ const _i = { top: 60, left: 20, right: 20, bottom: 20 }, _h = {
26568
26577
  return { points: re, pointString: ae };
26569
26578
  },
26570
26579
  []
26571
- ), M = we(() => new zn({ x: 0, y: 0 }), []), $ = pe((k) => Math.round(k) === 0 ? "middle" : k > 0 ? "start" : "end", []), I = pe(
26580
+ ), M = xe(() => new zn({ x: 0, y: 0 }), []), $ = pe((k) => Math.round(k) === 0 ? "middle" : k > 0 ? "start" : "end", []), I = pe(
26572
26581
  (k, _) => {
26573
26582
  const Q = ("clientX" in k ? k.clientX : 0) - v.left, q = ("clientY" in k ? k.clientY : 0) - v.top;
26574
26583
  Q && q && b({
@@ -26580,7 +26589,7 @@ const _i = { top: 60, left: 20, right: 20, bottom: 20 }, _h = {
26580
26589
  [b, v]
26581
26590
  ), W = pe(() => {
26582
26591
  y();
26583
- }, [y]), V = we(() => e - _i.left - _i.right, [e]), B = we(() => t - _i.top - _i.bottom, [t]), S = we(() => Math.min(V, B) / 2, [V, B]), F = c.length ? c.reduce((k, _) => {
26592
+ }, [y]), V = xe(() => e - _i.left - _i.right, [e]), B = xe(() => t - _i.top - _i.bottom, [t]), S = xe(() => Math.min(V, B) / 2, [V, B]), F = c.length ? c.reduce((k, _) => {
26584
26593
  const Q = _.data.filter((q) => q);
26585
26594
  return Math.max(k, ...Q);
26586
26595
  }, -1 / 0) : 0, H = Po({
@@ -26774,9 +26783,9 @@ const Ez = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ d(
26774
26783
  tooltipStackCharLimit: g = z4,
26775
26784
  seriesSelectorTitle: x
26776
26785
  }, b) => {
26777
- const [y, v] = xe(e.map((T) => T.id)), A = ce(null);
26786
+ const [y, v] = we(e.map((T) => T.id)), A = ce(null);
26778
26787
  Gn(A, b, `${a}-${i}-StackedBarChart`);
26779
- const w = we(() => o.map((T, M) => {
26788
+ const w = xe(() => o.map((T, M) => {
26780
26789
  const $ = e.find((I) => I.id === T.id);
26781
26790
  return {
26782
26791
  points: T.data.map((I, W) => ({
@@ -26786,7 +26795,7 @@ const Ez = ({ x: e, y: t, datum: n }) => /* @__PURE__ */ d(
26786
26795
  color: ($ == null ? void 0 : $.color) ?? st(M)
26787
26796
  }))
26788
26797
  };
26789
- }).slice(0, p === "mini" ? h : o.length), [o, p, h, e, r]), E = we(() => p === "full" ? w.filter((T) => y.includes(T.points[0].nodeId)) : w, [w, y, p]), P = we(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
26798
+ }).slice(0, p === "mini" ? h : o.length), [o, p, h, e, r]), E = xe(() => p === "full" ? w.filter((T) => y.includes(T.points[0].nodeId)) : w, [w, y, p]), P = xe(() => Math.floor((n - (p === "mini" ? 0 : 150)) / (r.length * 8)), [n, r, p]);
26790
26799
  return /* @__PURE__ */ j(
26791
26800
  "div",
26792
26801
  {
@@ -27264,16 +27273,16 @@ const zz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ d(Io, { cx: e,
27264
27273
  }, b) => {
27265
27274
  const y = ce(null), v = e === 1;
27266
27275
  Gn(y, b, `${o}-${a}-DirectedLineChart`);
27267
- const A = we(() => t.map(({ seriesMetaData: $ }, I) => {
27276
+ const A = xe(() => t.map(({ seriesMetaData: $ }, I) => {
27268
27277
  const { employee: W } = $;
27269
27278
  return {
27270
27279
  id: W.id,
27271
27280
  name: W.name,
27272
27281
  color: st(I)
27273
27282
  };
27274
- }).slice(0, f === "mini" ? h : t.length), [t, f, h]), [w, E] = xe(
27283
+ }).slice(0, f === "mini" ? h : t.length), [t, f, h]), [w, E] = we(
27275
27284
  () => A.filter(($, I) => f === "full" || I < h).map(($) => $.id)
27276
- ), P = we(() => t.map(($, I) => ({
27285
+ ), P = xe(() => t.map(($, I) => ({
27277
27286
  nodeId: $.seriesMetaData.employee.id,
27278
27287
  points: $.xValues.map((W, V) => {
27279
27288
  var S;
@@ -27287,7 +27296,7 @@ const zz = ({ x: e, y: t, datum: n, size: r }) => /* @__PURE__ */ d(Io, { cx: e,
27287
27296
  color: st(I)
27288
27297
  };
27289
27298
  })
27290
- })).slice(0, f === "mini" ? h : t.length), [t, f, h, v]), T = we(() => f === "full" ? P.filter(({ nodeId: $ }) => w.includes($)) : P, [P, f, w]), M = we(() => Math.floor((r - (f === "mini" ? 0 : 150)) / (t[0].xValues.length * 8)), [r, f, t]);
27299
+ })).slice(0, f === "mini" ? h : t.length), [t, f, h, v]), T = xe(() => f === "full" ? P.filter(({ nodeId: $ }) => w.includes($)) : P, [P, f, w]), M = xe(() => Math.floor((r - (f === "mini" ? 0 : 150)) / (t[0].xValues.length * 8)), [r, f, t]);
27291
27300
  return /* @__PURE__ */ d(
27292
27301
  "div",
27293
27302
  {
@@ -27768,10 +27777,10 @@ const ti = "NavigationMenu", [u0, oW, aW] = Vr(ti), [Zu, iW, sW] = Vr(ti), [d0,
27768
27777
  aW,
27769
27778
  sW
27770
27779
  ]), [lW, Kr] = d0(ti), [cW, SV] = d0(ti), uW = /* @__PURE__ */ Y((e, t) => {
27771
- const { __scopeNavigationMenu: n, value: r, onValueChange: o, defaultValue: a, delayDuration: i = 200, skipDelayDuration: s = 300, orientation: l = "horizontal", dir: c, ...u } = e, [f, p] = xe(null), m = De(
27780
+ const { __scopeNavigationMenu: n, value: r, onValueChange: o, defaultValue: a, delayDuration: i = 200, skipDelayDuration: s = 300, orientation: l = "horizontal", dir: c, ...u } = e, [f, p] = we(null), m = De(
27772
27781
  t,
27773
27782
  (M) => p(M)
27774
- ), h = gr(c), g = ce(0), x = ce(0), b = ce(0), [y, v] = xe(!0), [A = "", w] = Et({
27783
+ ), h = gr(c), g = ce(0), x = ce(0), b = ce(0), [y, v] = we(!0), [A = "", w] = Et({
27775
27784
  prop: r,
27776
27785
  onChange: (M) => {
27777
27786
  const $ = M !== "", I = s > 0;
@@ -27832,7 +27841,7 @@ const ti = "NavigationMenu", [u0, oW, aW] = Vr(ti), [Zu, iW, sW] = Vr(ti), [d0,
27832
27841
  ref: m
27833
27842
  })));
27834
27843
  }), dW = (e) => {
27835
- const { scope: t, isRootMenu: n, rootNavigationMenu: r, dir: o, orientation: a, children: i, value: s, onItemSelect: l, onItemDismiss: c, onTriggerEnter: u, onTriggerLeave: f, onContentEnter: p, onContentLeave: m } = e, [h, g] = xe(null), [x, b] = xe(/* @__PURE__ */ new Map()), [y, v] = xe(null);
27844
+ const { scope: t, isRootMenu: n, rootNavigationMenu: r, dir: o, orientation: a, children: i, value: s, onItemSelect: l, onItemDismiss: c, onTriggerEnter: u, onTriggerLeave: f, onContentEnter: p, onContentLeave: m } = e, [h, g] = we(null), [x, b] = we(/* @__PURE__ */ new Map()), [y, v] = we(null);
27836
27845
  return /* @__PURE__ */ R(lW, {
27837
27846
  scope: t,
27838
27847
  isRootMenu: n,
@@ -28046,7 +28055,7 @@ const ti = "NavigationMenu", [u0, oW, aW] = Vr(ti), [Zu, iW, sW] = Vr(ti), [d0,
28046
28055
  b,
28047
28056
  s
28048
28057
  ]);
28049
- const y = we(() => {
28058
+ const y = xe(() => {
28050
28059
  const A = g().map(
28051
28060
  ($) => $.value
28052
28061
  );
@@ -28514,9 +28523,9 @@ function zW({ ...e }) {
28514
28523
  );
28515
28524
  }
28516
28525
  function $V(e) {
28517
- const { children: t, defaultOpen: n = !1 } = e, r = e.open !== void 0, [o, a] = xe(n), i = pe(() => {
28526
+ const { children: t, defaultOpen: n = !1 } = e, r = e.open !== void 0, [o, a] = we(n), i = pe(() => {
28518
28527
  a((u) => !u);
28519
- }, []), s = r ? e.open : o, l = r ? e.onToggle : i, c = we(
28528
+ }, []), s = r ? e.open : o, l = r ? e.onToggle : i, c = xe(
28520
28529
  () => ({ isOpen: s, toggleOpen: l }),
28521
28530
  [s, l]
28522
28531
  );
@@ -28678,7 +28687,7 @@ function RV({ className: e, children: t, orientation: n }) {
28678
28687
  );
28679
28688
  }
28680
28689
  function IV({ nudgeCardList: e, title: t, imgSrc: n, description: r, pageSize: o = 3, kebabMenu: a }) {
28681
- const [i, s] = xe(1), l = e.slice(0, o * i), c = e.length > o, u = e.length === l.length, f = () => {
28690
+ const [i, s] = we(1), l = e.slice(0, o * i), c = e.length > o, u = e.length === l.length, f = () => {
28682
28691
  s((p) => u ? 1 : p + 1);
28683
28692
  };
28684
28693
  return /* @__PURE__ */ j(
@@ -28756,7 +28765,7 @@ YW.defaultProps = {
28756
28765
  scheduleDate: void 0
28757
28766
  };
28758
28767
  function GW({ label: e, onClick: t, customCompProps: n }) {
28759
- const [r, o] = xe(1);
28768
+ const [r, o] = we(1);
28760
28769
  return /* @__PURE__ */ j(iS, { children: [
28761
28770
  /* @__PURE__ */ d(wg, { children: /* @__PURE__ */ d("span", { children: e }) }),
28762
28771
  /* @__PURE__ */ d(aS, { children: /* @__PURE__ */ d(Ag, { children: /* @__PURE__ */ d(Qs, { children: /* @__PURE__ */ j("div", { className: "flex flex-col p-2", children: [
@@ -28777,7 +28786,7 @@ function GW({ label: e, onClick: t, customCompProps: n }) {
28777
28786
  ] });
28778
28787
  }
28779
28788
  function BV({ options: e }) {
28780
- const [t, n] = xe(!1), r = (o, a) => {
28789
+ const [t, n] = we(!1), r = (o, a) => {
28781
28790
  o(a), n(!1);
28782
28791
  };
28783
28792
  return /* @__PURE__ */ j(yg, { open: t, children: [