@motiadev/plugin-observability 0.13.0 → 0.13.1-beta.162

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/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import * as m from "react";
2
- import Ne, { forwardRef as Kt, createElement as kt, memo as V, useState as G, useEffect as _e, useCallback as re, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, useRef as Qt, Fragment as pr } from "react";
2
+ import Pe, { forwardRef as Kt, createElement as kt, memo as V, useState as G, useEffect as _e, useCallback as de, useMemo as z, useLayoutEffect as Ho, createContext as Bo, useContext as Ce, isValidElement as zo, useRef as Qt, Fragment as pr } from "react";
3
3
  import { Input as Vo, cn as De, Button as ct, LevelDot as Uo, Sidebar as Yo, Badge as hr } from "@motiadev/ui";
4
4
  import { useStreamItem as Go, useStreamGroup as gr } from "@motiadev/stream-client-react";
5
5
  import * as vr from "react-dom";
@@ -79,14 +79,14 @@ function qo() {
79
79
  case S:
80
80
  return (y._context.displayName || "Context") + ".Consumer";
81
81
  case w:
82
- var P = y.render;
83
- return y = y.displayName, y || (y = P.displayName || P.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
82
+ var N = y.render;
83
+ return y = y.displayName, y || (y = N.displayName || N.name || "", y = y !== "" ? "ForwardRef(" + y + ")" : "ForwardRef"), y;
84
84
  case C:
85
- return P = y.displayName || null, P !== null ? P : e(y.type) || "Memo";
85
+ return N = y.displayName || null, N !== null ? N : e(y.type) || "Memo";
86
86
  case T:
87
- P = y._payload, y = y._init;
87
+ N = y._payload, y = y._init;
88
88
  try {
89
- return e(y(P));
89
+ return e(y(N));
90
90
  } catch {
91
91
  }
92
92
  }
@@ -98,17 +98,17 @@ function qo() {
98
98
  function n(y) {
99
99
  try {
100
100
  t(y);
101
- var P = !1;
101
+ var N = !1;
102
102
  } catch {
103
- P = !0;
103
+ N = !0;
104
104
  }
105
- if (P) {
106
- P = console;
107
- var $ = P.error, N = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
105
+ if (N) {
106
+ N = console;
107
+ var $ = N.error, P = typeof Symbol == "function" && Symbol.toStringTag && y[Symbol.toStringTag] || y.constructor.name || "Object";
108
108
  return $.call(
109
- P,
109
+ N,
110
110
  "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
111
- N
111
+ P
112
112
  ), t(y);
113
113
  }
114
114
  }
@@ -117,8 +117,8 @@ function qo() {
117
117
  if (typeof y == "object" && y !== null && y.$$typeof === T)
118
118
  return "<...>";
119
119
  try {
120
- var P = e(y);
121
- return P ? "<" + P + ">" : "<...>";
120
+ var N = e(y);
121
+ return N ? "<" + N + ">" : "<...>";
122
122
  } catch {
123
123
  return "<...>";
124
124
  }
@@ -132,16 +132,16 @@ function qo() {
132
132
  }
133
133
  function a(y) {
134
134
  if (H.call(y, "key")) {
135
- var P = Object.getOwnPropertyDescriptor(y, "key").get;
136
- if (P && P.isReactWarning) return !1;
135
+ var N = Object.getOwnPropertyDescriptor(y, "key").get;
136
+ if (N && N.isReactWarning) return !1;
137
137
  }
138
138
  return y.key !== void 0;
139
139
  }
140
- function i(y, P) {
140
+ function i(y, N) {
141
141
  function $() {
142
142
  _ || (_ = !0, console.error(
143
143
  "%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
144
- P
144
+ N
145
145
  ));
146
146
  }
147
147
  $.isReactWarning = !0, Object.defineProperty(y, "key", {
@@ -155,11 +155,11 @@ function qo() {
155
155
  "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
156
156
  )), y = this.props.ref, y !== void 0 ? y : null;
157
157
  }
158
- function l(y, P, $, N, F, Z, Ie, ae) {
158
+ function l(y, N, $, P, F, Z, Ie, se) {
159
159
  return $ = Z.ref, y = {
160
160
  $$typeof: p,
161
161
  type: y,
162
- key: P,
162
+ key: N,
163
163
  props: Z,
164
164
  _owner: F
165
165
  }, ($ !== void 0 ? $ : null) !== null ? Object.defineProperty(y, "ref", {
@@ -184,45 +184,45 @@ function qo() {
184
184
  configurable: !1,
185
185
  enumerable: !1,
186
186
  writable: !0,
187
- value: ae
187
+ value: se
188
188
  }), Object.freeze && (Object.freeze(y.props), Object.freeze(y)), y;
189
189
  }
190
- function f(y, P, $, N, F, Z, Ie, ae) {
191
- var U = P.children;
190
+ function f(y, N, $, P, F, Z, Ie, se) {
191
+ var U = N.children;
192
192
  if (U !== void 0)
193
- if (N)
193
+ if (P)
194
194
  if (I(U)) {
195
- for (N = 0; N < U.length; N++)
196
- d(U[N]);
195
+ for (P = 0; P < U.length; P++)
196
+ d(U[P]);
197
197
  Object.freeze && Object.freeze(U);
198
198
  } else
199
199
  console.error(
200
200
  "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
201
201
  );
202
202
  else d(U);
203
- if (H.call(P, "key")) {
203
+ if (H.call(N, "key")) {
204
204
  U = e(y);
205
- var ue = Object.keys(P).filter(function(wt) {
205
+ var le = Object.keys(N).filter(function(wt) {
206
206
  return wt !== "key";
207
207
  });
208
- N = 0 < ue.length ? "{key: someKey, " + ue.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + N] || (ue = 0 < ue.length ? "{" + ue.join(": ..., ") + ": ...}" : "{}", console.error(
208
+ P = 0 < le.length ? "{key: someKey, " + le.join(": ..., ") + ": ...}" : "{key: someKey}", B[U + P] || (le = 0 < le.length ? "{" + le.join(": ..., ") + ": ...}" : "{}", console.error(
209
209
  `A props object containing a "key" prop is being spread into JSX:
210
210
  let props = %s;
211
211
  <%s {...props} />
212
212
  React keys must be passed directly to JSX without using spread:
213
213
  let props = %s;
214
214
  <%s key={someKey} {...props} />`,
215
- N,
215
+ P,
216
216
  U,
217
- ue,
217
+ le,
218
218
  U
219
- ), B[U + N] = !0);
219
+ ), B[U + P] = !0);
220
220
  }
221
- if (U = null, $ !== void 0 && (n($), U = "" + $), a(P) && (n(P.key), U = "" + P.key), "key" in P) {
221
+ if (U = null, $ !== void 0 && (n($), U = "" + $), a(N) && (n(N.key), U = "" + N.key), "key" in N) {
222
222
  $ = {};
223
- for (var $e in P)
224
- $e !== "key" && ($[$e] = P[$e]);
225
- } else $ = P;
223
+ for (var $e in N)
224
+ $e !== "key" && ($[$e] = N[$e]);
225
+ } else $ = N;
226
226
  return U && i(
227
227
  $,
228
228
  typeof y == "function" ? y.displayName || y.name || "Unknown" : y
@@ -234,13 +234,13 @@ React keys must be passed directly to JSX without using spread:
234
234
  o(),
235
235
  $,
236
236
  Ie,
237
- ae
237
+ se
238
238
  );
239
239
  }
240
240
  function d(y) {
241
241
  typeof y == "object" && y !== null && y.$$typeof === p && y._store && (y._store.validated = 1);
242
242
  }
243
- var h = Ne, p = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, I = Array.isArray, M = console.createTask ? console.createTask : function() {
243
+ var h = Pe, p = Symbol.for("react.transitional.element"), v = Symbol.for("react.portal"), g = Symbol.for("react.fragment"), x = Symbol.for("react.strict_mode"), b = Symbol.for("react.profiler"), S = Symbol.for("react.consumer"), E = Symbol.for("react.context"), w = Symbol.for("react.forward_ref"), j = Symbol.for("react.suspense"), A = Symbol.for("react.suspense_list"), C = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), k = Symbol.for("react.activity"), L = Symbol.for("react.client.reference"), W = h.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, H = Object.prototype.hasOwnProperty, I = Array.isArray, M = console.createTask ? console.createTask : function() {
244
244
  return null;
245
245
  };
246
246
  h = {
@@ -252,26 +252,26 @@ React keys must be passed directly to JSX without using spread:
252
252
  h,
253
253
  s
254
254
  )(), O = M(r(s)), B = {};
255
- He.Fragment = g, He.jsx = function(y, P, $, N, F) {
255
+ He.Fragment = g, He.jsx = function(y, N, $, P, F) {
256
256
  var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
257
257
  return f(
258
258
  y,
259
- P,
259
+ N,
260
260
  $,
261
261
  !1,
262
- N,
262
+ P,
263
263
  F,
264
264
  Z ? Error("react-stack-top-frame") : R,
265
265
  Z ? M(r(y)) : O
266
266
  );
267
- }, He.jsxs = function(y, P, $, N, F) {
267
+ }, He.jsxs = function(y, N, $, P, F) {
268
268
  var Z = 1e4 > W.recentlyCreatedOwnerStacks++;
269
269
  return f(
270
270
  y,
271
- P,
271
+ N,
272
272
  $,
273
273
  !0,
274
- N,
274
+ P,
275
275
  F,
276
276
  Z ? Error("react-stack-top-frame") : R,
277
277
  Z ? M(r(y)) : O
@@ -416,12 +416,12 @@ const is = [
416
416
  return i;
417
417
  }, cs = (e) => e ? Cn(e) : Cn, ls = (e) => e;
418
418
  function us(e, t = ls) {
419
- const n = Ne.useSyncExternalStore(
419
+ const n = Pe.useSyncExternalStore(
420
420
  e.subscribe,
421
- Ne.useCallback(() => t(e.getState()), [e, t]),
422
- Ne.useCallback(() => t(e.getInitialState()), [e, t])
421
+ Pe.useCallback(() => t(e.getState()), [e, t]),
422
+ Pe.useCallback(() => t(e.getInitialState()), [e, t])
423
423
  );
424
- return Ne.useDebugValue(n), n;
424
+ return Pe.useDebugValue(n), n;
425
425
  }
426
426
  const fs = (e) => {
427
427
  const t = cs(e), n = (r) => us(t, r);
@@ -472,7 +472,7 @@ const fs = (e) => {
472
472
  ] });
473
473
  });
474
474
  br.displayName = "SearchBar";
475
- const wr = V(() => K((t) => t.selectedTraceGroupId) ? null : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground", children: "Select a trace or trace group to view the timeline" }));
475
+ const wr = V(() => K((t) => t.selectedTraceGroupId) ? null : /* @__PURE__ */ c.jsx("div", { className: "flex items-center justify-center h-full text-muted-foreground text-center", children: "Select a trace or trace group to view the timeline" }));
476
476
  wr.displayName = "TraceEmptyState";
477
477
  /**
478
478
  * @license lucide-react v0.545.0 - ISC
@@ -496,13 +496,13 @@ const hs = [
496
496
  let o;
497
497
  return t ? t !== n && r(t) : o = setInterval(() => r(Date.now()), 100), () => clearInterval(o);
498
498
  }, [t, n]), n;
499
- }, de = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ys = {
499
+ }, we = (e) => e == null ? "N/A" : e < 1e3 ? `${e}ms` : e < 6e4 ? `${(e / 1e3).toFixed(1)}s` : e < 36e5 ? `${(e / 6e4).toFixed(1)}min` : `${(e / 36e5).toFixed(1)}h`, ys = {
500
500
  running: "bg-[repeating-linear-gradient(140deg,#BEFE29,#BEFE29_8px,#ABE625_8px,#ABE625_16px)]",
501
501
  completed: "bg-[repeating-linear-gradient(140deg,#2862FE,#2862FE_8px,#2358E5_8px,#2358E5_16px)]",
502
502
  failed: "bg-[repeating-linear-gradient(140deg,#EA2069,#EA2069_8px,#D41E60_8px,#D41E60_16px)]"
503
503
  }, jr = V(
504
504
  ({ traceId: e, traceName: t, traceStatus: n, traceStartTime: r, traceEndTime: o, groupStartTime: s, groupEndTime: a, onExpand: i }) => {
505
- const u = re(() => {
505
+ const u = de(() => {
506
506
  i(e);
507
507
  }, [i, e]), l = z(
508
508
  () => De("h-[24px] rounded-[4px] hover:opacity-80 transition-all duration-200", ys[n]),
@@ -592,7 +592,7 @@ const Ss = [
592
592
  key: "1ph1d7"
593
593
  }
594
594
  ]
595
- ], As = J("scroll-text", Ss), Ns = ({ event: e }) => {
595
+ ], As = J("scroll-text", Ss), Ps = ({ event: e }) => {
596
596
  if (e.type === "log")
597
597
  return /* @__PURE__ */ c.jsx(As, { className: "w-4 h-4 text-muted-foreground" });
598
598
  if (e.type === "emit")
@@ -608,7 +608,7 @@ const Ss = [
608
608
  * This source code is licensed under the ISC license.
609
609
  * See the LICENSE file in the root directory of this source tree.
610
610
  */
611
- const Ps = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Os = J("check", Ps);
611
+ const Ns = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], Os = J("check", Ns);
612
612
  /**
613
613
  * @license lucide-react v0.545.0 - ISC
614
614
  *
@@ -619,7 +619,7 @@ const Rs = [
619
619
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
620
620
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
621
621
  ], Ts = J("copy", Rs), Mt = ({ textToCopy: e, className: t, title: n }) => {
622
- const [r, o] = G(!1), s = re(async () => {
622
+ const [r, o] = G(!1), s = de(async () => {
623
623
  try {
624
624
  await navigator.clipboard.writeText(e), o(!0), setTimeout(() => o(!1), 2e3);
625
625
  } catch (a) {
@@ -638,7 +638,7 @@ const Rs = [
638
638
  }
639
639
  );
640
640
  };
641
- function me(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
641
+ function fe(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
642
642
  return function(o) {
643
643
  if (e?.(o), n === !1 || !o.defaultPrevented)
644
644
  return t?.(o);
@@ -665,7 +665,7 @@ function Cr(...e) {
665
665
  };
666
666
  };
667
667
  }
668
- function ye(...e) {
668
+ function ve(...e) {
669
669
  return m.useCallback(Cr(...e), e);
670
670
  }
671
671
  function Er(e, t = []) {
@@ -777,7 +777,7 @@ var Is = [
777
777
  "span",
778
778
  "svg",
779
779
  "ul"
780
- ], le = Is.reduce((e, t) => {
780
+ ], ce = Is.reduce((e, t) => {
781
781
  const n = /* @__PURE__ */ Sr(`Primitive.${t}`), r = m.forwardRef((o, s) => {
782
782
  const { asChild: a, ...i } = o, u = a ? n : t;
783
783
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ c.jsx(u, { ...i, ref: s });
@@ -806,7 +806,7 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
806
806
  layers: /* @__PURE__ */ new Set(),
807
807
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
808
808
  branches: /* @__PURE__ */ new Set()
809
- }), Nr = m.forwardRef(
809
+ }), Pr = m.forwardRef(
810
810
  (e, t) => {
811
811
  const {
812
812
  disableOutsidePointerEvents: n = !1,
@@ -816,7 +816,7 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
816
816
  onInteractOutside: a,
817
817
  onDismiss: i,
818
818
  ...u
819
- } = e, l = m.useContext(Ar), [f, d] = m.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, p] = m.useState({}), v = ye(t, (C) => d(C)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(x), S = f ? g.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Ys((C) => {
819
+ } = e, l = m.useContext(Ar), [f, d] = m.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, p] = m.useState({}), v = ve(t, (C) => d(C)), g = Array.from(l.layers), [x] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), b = g.indexOf(x), S = f ? g.indexOf(f) : -1, E = l.layersWithOutsidePointerEventsDisabled.size > 0, w = S >= b, j = Ys((C) => {
820
820
  const T = C.target, k = [...l.branches].some((L) => L.contains(T));
821
821
  !w || k || (o?.(C), a?.(C), C.defaultPrevented || i?.());
822
822
  }, h), A = Gs((C) => {
@@ -836,7 +836,7 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
836
836
  const C = () => p({});
837
837
  return document.addEventListener(_t, C), () => document.removeEventListener(_t, C);
838
838
  }, []), /* @__PURE__ */ c.jsx(
839
- le.div,
839
+ ce.div,
840
840
  {
841
841
  ...u,
842
842
  ref: v,
@@ -844,9 +844,9 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
844
844
  pointerEvents: E ? w ? "auto" : "none" : void 0,
845
845
  ...e.style
846
846
  },
847
- onFocusCapture: me(e.onFocusCapture, A.onFocusCapture),
848
- onBlurCapture: me(e.onBlurCapture, A.onBlurCapture),
849
- onPointerDownCapture: me(
847
+ onFocusCapture: fe(e.onFocusCapture, A.onFocusCapture),
848
+ onBlurCapture: fe(e.onBlurCapture, A.onBlurCapture),
849
+ onPointerDownCapture: fe(
850
850
  e.onPointerDownCapture,
851
851
  j.onPointerDownCapture
852
852
  )
@@ -854,16 +854,16 @@ var Hs = "DismissableLayer", _t = "dismissableLayer.update", Bs = "dismissableLa
854
854
  );
855
855
  }
856
856
  );
857
- Nr.displayName = Hs;
857
+ Pr.displayName = Hs;
858
858
  var Vs = "DismissableLayerBranch", Us = m.forwardRef((e, t) => {
859
- const n = m.useContext(Ar), r = m.useRef(null), o = ye(t, r);
859
+ const n = m.useContext(Ar), r = m.useRef(null), o = ve(t, r);
860
860
  return m.useEffect(() => {
861
861
  const s = r.current;
862
862
  if (s)
863
863
  return n.branches.add(s), () => {
864
864
  n.branches.delete(s);
865
865
  };
866
- }, [n.branches]), /* @__PURE__ */ c.jsx(le.div, { ...e, ref: o });
866
+ }, [n.branches]), /* @__PURE__ */ c.jsx(ce.div, { ...e, ref: o });
867
867
  });
868
868
  Us.displayName = Vs;
869
869
  function Ys(e, t = globalThis?.document) {
@@ -873,7 +873,7 @@ function Ys(e, t = globalThis?.document) {
873
873
  const s = (i) => {
874
874
  if (i.target && !r.current) {
875
875
  let u = function() {
876
- Pr(
876
+ Nr(
877
877
  Bs,
878
878
  n,
879
879
  l,
@@ -900,7 +900,7 @@ function Gs(e, t = globalThis?.document) {
900
900
  const n = Te(e), r = m.useRef(!1);
901
901
  return m.useEffect(() => {
902
902
  const o = (s) => {
903
- s.target && !r.current && Pr(zs, n, { originalEvent: s }, {
903
+ s.target && !r.current && Nr(zs, n, { originalEvent: s }, {
904
904
  discrete: !1
905
905
  });
906
906
  };
@@ -914,7 +914,7 @@ function An() {
914
914
  const e = new CustomEvent(_t);
915
915
  document.dispatchEvent(e);
916
916
  }
917
- function Pr(e, t, n, { discrete: r }) {
917
+ function Nr(e, t, n, { discrete: r }) {
918
918
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
919
919
  t && o.addEventListener(e, t, { once: !0 }), r ? $s(o, s) : o.dispatchEvent(s);
920
920
  }
@@ -922,23 +922,23 @@ var jt = 0;
922
922
  function Zs() {
923
923
  m.useEffect(() => {
924
924
  const e = document.querySelectorAll("[data-radix-focus-guard]");
925
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Nn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Nn()), jt++, () => {
925
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Pn()), document.body.insertAdjacentElement("beforeend", e[1] ?? Pn()), jt++, () => {
926
926
  jt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), jt--;
927
927
  };
928
928
  }, []);
929
929
  }
930
- function Nn() {
930
+ function Pn() {
931
931
  const e = document.createElement("span");
932
932
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
933
933
  }
934
- var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Pn = { bubbles: !1, cancelable: !0 }, Xs = "FocusScope", Or = m.forwardRef((e, t) => {
934
+ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Nn = { bubbles: !1, cancelable: !0 }, Xs = "FocusScope", Or = m.forwardRef((e, t) => {
935
935
  const {
936
936
  loop: n = !1,
937
937
  trapped: r = !1,
938
938
  onMountAutoFocus: o,
939
939
  onUnmountAutoFocus: s,
940
940
  ...a
941
- } = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null), h = ye(t, (g) => u(g)), p = m.useRef({
941
+ } = e, [i, u] = m.useState(null), l = Te(o), f = Te(s), d = m.useRef(null), h = ve(t, (g) => u(g)), p = m.useRef({
942
942
  paused: !1,
943
943
  pause() {
944
944
  this.paused = !0;
@@ -952,15 +952,15 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Pn
952
952
  let g = function(E) {
953
953
  if (p.paused || !i) return;
954
954
  const w = E.target;
955
- i.contains(w) ? d.current = w : fe(d.current, { select: !0 });
955
+ i.contains(w) ? d.current = w : ue(d.current, { select: !0 });
956
956
  }, x = function(E) {
957
957
  if (p.paused || !i) return;
958
958
  const w = E.relatedTarget;
959
- w !== null && (i.contains(w) || fe(d.current, { select: !0 }));
959
+ w !== null && (i.contains(w) || ue(d.current, { select: !0 }));
960
960
  }, b = function(E) {
961
961
  if (document.activeElement === document.body)
962
962
  for (const j of E)
963
- j.removedNodes.length > 0 && fe(i);
963
+ j.removedNodes.length > 0 && ue(i);
964
964
  };
965
965
  document.addEventListener("focusin", g), document.addEventListener("focusout", x);
966
966
  const S = new MutationObserver(b);
@@ -973,13 +973,13 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Pn
973
973
  Rn.add(p);
974
974
  const g = document.activeElement;
975
975
  if (!i.contains(g)) {
976
- const b = new CustomEvent(Ct, Pn);
977
- i.addEventListener(Ct, l), i.dispatchEvent(b), b.defaultPrevented || (qs(ta(Rr(i)), { select: !0 }), document.activeElement === g && fe(i));
976
+ const b = new CustomEvent(Ct, Nn);
977
+ i.addEventListener(Ct, l), i.dispatchEvent(b), b.defaultPrevented || (qs(ta(Rr(i)), { select: !0 }), document.activeElement === g && ue(i));
978
978
  }
979
979
  return () => {
980
980
  i.removeEventListener(Ct, l), setTimeout(() => {
981
- const b = new CustomEvent(Et, Pn);
982
- i.addEventListener(Et, f), i.dispatchEvent(b), b.defaultPrevented || fe(g ?? document.body, { select: !0 }), i.removeEventListener(Et, f), Rn.remove(p);
981
+ const b = new CustomEvent(Et, Nn);
982
+ i.addEventListener(Et, f), i.dispatchEvent(b), b.defaultPrevented || ue(g ?? document.body, { select: !0 }), i.removeEventListener(Et, f), Rn.remove(p);
983
983
  }, 0);
984
984
  };
985
985
  }
@@ -990,18 +990,18 @@ var Ct = "focusScope.autoFocusOnMount", Et = "focusScope.autoFocusOnUnmount", Pn
990
990
  const x = g.key === "Tab" && !g.altKey && !g.ctrlKey && !g.metaKey, b = document.activeElement;
991
991
  if (x && b) {
992
992
  const S = g.currentTarget, [E, w] = Js(S);
993
- E && w ? !g.shiftKey && b === w ? (g.preventDefault(), n && fe(E, { select: !0 })) : g.shiftKey && b === E && (g.preventDefault(), n && fe(w, { select: !0 })) : b === S && g.preventDefault();
993
+ E && w ? !g.shiftKey && b === w ? (g.preventDefault(), n && ue(E, { select: !0 })) : g.shiftKey && b === E && (g.preventDefault(), n && ue(w, { select: !0 })) : b === S && g.preventDefault();
994
994
  }
995
995
  },
996
996
  [n, r, p.paused]
997
997
  );
998
- return /* @__PURE__ */ c.jsx(le.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
998
+ return /* @__PURE__ */ c.jsx(ce.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
999
999
  });
1000
1000
  Or.displayName = Xs;
1001
1001
  function qs(e, { select: t = !1 } = {}) {
1002
1002
  const n = document.activeElement;
1003
1003
  for (const r of e)
1004
- if (fe(r, { select: t }), document.activeElement !== n) return;
1004
+ if (ue(r, { select: t }), document.activeElement !== n) return;
1005
1005
  }
1006
1006
  function Js(e) {
1007
1007
  const t = Rr(e), n = On(t, e), r = On(t.reverse(), e);
@@ -1033,7 +1033,7 @@ function Ks(e, { upTo: t }) {
1033
1033
  function Qs(e) {
1034
1034
  return e instanceof HTMLInputElement && "select" in e;
1035
1035
  }
1036
- function fe(e, { select: t = !1 } = {}) {
1036
+ function ue(e, { select: t = !1 } = {}) {
1037
1037
  if (e && e.focus) {
1038
1038
  const n = document.activeElement;
1039
1039
  e.focus({ preventScroll: !0 }), e !== n && Qs(e) && t && e.select();
@@ -1059,16 +1059,16 @@ function Tn(e, t) {
1059
1059
  function ta(e) {
1060
1060
  return e.filter((t) => t.tagName !== "A");
1061
1061
  }
1062
- var pe = globalThis?.document ? m.useLayoutEffect : () => {
1062
+ var me = globalThis?.document ? m.useLayoutEffect : () => {
1063
1063
  }, na = m[" useId ".trim().toString()] || (() => {
1064
1064
  }), ra = 0;
1065
1065
  function oa(e) {
1066
1066
  const [t, n] = m.useState(na());
1067
- return pe(() => {
1067
+ return me(() => {
1068
1068
  n((r) => r ?? String(ra++));
1069
1069
  }, [e]), e || (t ? `radix-${t}` : "");
1070
1070
  }
1071
- const sa = ["top", "right", "bottom", "left"], he = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
1071
+ const sa = ["top", "right", "bottom", "left"], pe = Math.min, X = Math.max, lt = Math.round, Je = Math.floor, ne = (e) => ({
1072
1072
  x: e,
1073
1073
  y: e
1074
1074
  }), aa = {
@@ -1081,12 +1081,12 @@ const sa = ["top", "right", "bottom", "left"], he = Math.min, X = Math.max, lt =
1081
1081
  end: "start"
1082
1082
  };
1083
1083
  function Dt(e, t, n) {
1084
- return X(e, he(t, n));
1084
+ return X(e, pe(t, n));
1085
1085
  }
1086
- function ie(e, t) {
1086
+ function ae(e, t) {
1087
1087
  return typeof e == "function" ? e(t) : e;
1088
1088
  }
1089
- function ce(e) {
1089
+ function ie(e) {
1090
1090
  return e.split("-")[0];
1091
1091
  }
1092
1092
  function Fe(e) {
@@ -1098,11 +1098,11 @@ function en(e) {
1098
1098
  function tn(e) {
1099
1099
  return e === "y" ? "height" : "width";
1100
1100
  }
1101
- function ge(e) {
1102
- return ["top", "bottom"].includes(ce(e)) ? "y" : "x";
1101
+ function he(e) {
1102
+ return ["top", "bottom"].includes(ie(e)) ? "y" : "x";
1103
1103
  }
1104
1104
  function nn(e) {
1105
- return en(ge(e));
1105
+ return en(he(e));
1106
1106
  }
1107
1107
  function ca(e, t, n) {
1108
1108
  n === void 0 && (n = !1);
@@ -1132,7 +1132,7 @@ function ua(e, t, n) {
1132
1132
  }
1133
1133
  function fa(e, t, n, r) {
1134
1134
  const o = Fe(e);
1135
- let s = ua(ce(e), n === "start", r);
1135
+ let s = ua(ie(e), n === "start", r);
1136
1136
  return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(Ft)))), s;
1137
1137
  }
1138
1138
  function ut(e) {
@@ -1178,7 +1178,7 @@ function kn(e, t, n) {
1178
1178
  reference: r,
1179
1179
  floating: o
1180
1180
  } = e;
1181
- const s = ge(t), a = nn(t), i = tn(a), u = ce(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
1181
+ const s = he(t), a = nn(t), i = tn(a), u = ie(t), l = s === "y", f = r.x + r.width / 2 - o.width / 2, d = r.y + r.height / 2 - o.height / 2, h = r[i] / 2 - o[i] / 2;
1182
1182
  let p;
1183
1183
  switch (u) {
1184
1184
  case "top":
@@ -1298,7 +1298,7 @@ async function Ue(e, t) {
1298
1298
  elementContext: d = "floating",
1299
1299
  altBoundary: h = !1,
1300
1300
  padding: p = 0
1301
- } = ie(t, e), v = Tr(p), x = i[h ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1301
+ } = ae(t, e), v = Tr(p), x = i[h ? d === "floating" ? "reference" : "floating" : d], b = ft(await s.getClippingRect({
1302
1302
  element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(i.floating)),
1303
1303
  boundary: l,
1304
1304
  rootBoundary: f,
@@ -1342,7 +1342,7 @@ const pa = (e) => ({
1342
1342
  } = t, {
1343
1343
  element: l,
1344
1344
  padding: f = 0
1345
- } = ie(e, t) || {};
1345
+ } = ae(e, t) || {};
1346
1346
  if (l == null)
1347
1347
  return {};
1348
1348
  const d = Tr(f), h = {
@@ -1351,7 +1351,7 @@ const pa = (e) => ({
1351
1351
  }, p = nn(o), v = tn(p), g = await a.getDimensions(l), x = p === "y", b = x ? "top" : "left", S = x ? "bottom" : "right", E = x ? "clientHeight" : "clientWidth", w = s.reference[v] + s.reference[p] - h[p] - s.floating[v], j = h[p] - s.reference[p], A = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
1352
1352
  let C = A ? A[E] : 0;
1353
1353
  (!C || !await (a.isElement == null ? void 0 : a.isElement(A))) && (C = i.floating[E] || s.floating[v]);
1354
- const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = he(d[b], k), W = he(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Dt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, R = D ? M < H ? M - H : M - I : 0;
1354
+ const T = w / 2 - j / 2, k = C / 2 - g[v] / 2 - 1, L = pe(d[b], k), W = pe(d[S], k), H = L, I = C - g[v] - W, M = C / 2 - g[v] / 2 + T, _ = Dt(H, M, I), D = !u.arrow && Fe(o) != null && M !== _ && s.reference[v] / 2 - (M < H ? L : W) - g[v] / 2 < 0, R = D ? M < H ? M - H : M - I : 0;
1355
1355
  return {
1356
1356
  [p]: h[p] + R,
1357
1357
  data: {
@@ -1385,10 +1385,10 @@ const pa = (e) => ({
1385
1385
  fallbackAxisSideDirection: v = "none",
1386
1386
  flipAlignment: g = !0,
1387
1387
  ...x
1388
- } = ie(e, t);
1388
+ } = ae(e, t);
1389
1389
  if ((n = s.arrow) != null && n.alignmentOffset)
1390
1390
  return {};
1391
- const b = ce(o), S = ge(i), E = ce(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = h || (E || !g ? [ut(i)] : la(i)), A = v !== "none";
1391
+ const b = ie(o), S = he(i), E = ie(i) === i, w = await (u.isRTL == null ? void 0 : u.isRTL(l.floating)), j = h || (E || !g ? [ut(i)] : la(i)), A = v !== "none";
1392
1392
  !h && A && j.push(...fa(i, g, v, w));
1393
1393
  const C = [i, ...j], T = await Ue(t, x), k = [];
1394
1394
  let L = ((r = s.flip) == null ? void 0 : r.overflows) || [];
@@ -1419,7 +1419,7 @@ const pa = (e) => ({
1419
1419
  var I;
1420
1420
  const R = (I = L.filter((O) => {
1421
1421
  if (A) {
1422
- const B = ge(O.placement);
1422
+ const B = he(O.placement);
1423
1423
  return B === S || // Create a bias to the `y` side axis due to horizontal
1424
1424
  // reading directions favoring greater width.
1425
1425
  B === "y";
@@ -1465,7 +1465,7 @@ const ga = function(e) {
1465
1465
  } = t, {
1466
1466
  strategy: r = "referenceHidden",
1467
1467
  ...o
1468
- } = ie(e, t);
1468
+ } = ae(e, t);
1469
1469
  switch (r) {
1470
1470
  case "referenceHidden": {
1471
1471
  const s = await Ue(t, {
@@ -1502,7 +1502,7 @@ async function va(e, t) {
1502
1502
  placement: n,
1503
1503
  platform: r,
1504
1504
  elements: o
1505
- } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ce(n), i = Fe(n), u = ge(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = ie(t, e);
1505
+ } = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = ie(n), i = Fe(n), u = he(n) === "y", l = ["left", "top"].includes(a) ? -1 : 1, f = s && u ? -1 : 1, d = ae(t, e);
1506
1506
  let {
1507
1507
  mainAxis: h,
1508
1508
  crossAxis: p,
@@ -1571,10 +1571,10 @@ const ya = function(e) {
1571
1571
  }
1572
1572
  },
1573
1573
  ...u
1574
- } = ie(e, t), l = {
1574
+ } = ae(e, t), l = {
1575
1575
  x: n,
1576
1576
  y: r
1577
- }, f = await Ue(t, u), d = ge(ce(o)), h = en(d);
1577
+ }, f = await Ue(t, u), d = he(ie(o)), h = en(d);
1578
1578
  let p = l[h], v = l[d];
1579
1579
  if (s) {
1580
1580
  const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", S = p + f[x], E = p - f[b];
@@ -1616,12 +1616,12 @@ const ya = function(e) {
1616
1616
  offset: i = 0,
1617
1617
  mainAxis: u = !0,
1618
1618
  crossAxis: l = !0
1619
- } = ie(e, t), f = {
1619
+ } = ae(e, t), f = {
1620
1620
  x: n,
1621
1621
  y: r
1622
- }, d = ge(o), h = en(d);
1622
+ }, d = he(o), h = en(d);
1623
1623
  let p = f[h], v = f[d];
1624
- const g = ie(i, t), x = typeof g == "number" ? {
1624
+ const g = ae(i, t), x = typeof g == "number" ? {
1625
1625
  mainAxis: g,
1626
1626
  crossAxis: 0
1627
1627
  } : {
@@ -1635,7 +1635,7 @@ const ya = function(e) {
1635
1635
  }
1636
1636
  if (l) {
1637
1637
  var b, S;
1638
- const E = h === "y" ? "width" : "height", w = ["top", "left"].includes(ce(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1638
+ const E = h === "y" ? "width" : "height", w = ["top", "left"].includes(ie(o)), j = s.reference[d] - s.floating[E] + (w && ((b = a.offset) == null ? void 0 : b[d]) || 0) + (w ? 0 : x.crossAxis), A = s.reference[d] + s.reference[E] + (w ? 0 : ((S = a.offset) == null ? void 0 : S[d]) || 0) - (w ? x.crossAxis : 0);
1639
1639
  v < j ? v = j : v > A && (v = A);
1640
1640
  }
1641
1641
  return {
@@ -1659,13 +1659,13 @@ const ya = function(e) {
1659
1659
  apply: u = () => {
1660
1660
  },
1661
1661
  ...l
1662
- } = ie(e, t), f = await Ue(t, l), d = ce(o), h = Fe(o), p = ge(o) === "y", {
1662
+ } = ae(e, t), f = await Ue(t, l), d = ie(o), h = Fe(o), p = he(o) === "y", {
1663
1663
  width: v,
1664
1664
  height: g
1665
1665
  } = s.floating;
1666
1666
  let x, b;
1667
1667
  d === "top" || d === "bottom" ? (x = d, b = h === (await (a.isRTL == null ? void 0 : a.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (b = d, x = h === "end" ? "top" : "bottom");
1668
- const S = g - f.top - f.bottom, E = v - f.left - f.right, w = he(g - f[x], S), j = he(v - f[b], E), A = !t.middlewareData.shift;
1668
+ const S = g - f.top - f.bottom, E = v - f.left - f.right, w = pe(g - f[x], S), j = pe(v - f[b], E), A = !t.middlewareData.shift;
1669
1669
  let C = w, T = j;
1670
1670
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (T = E), (r = t.middlewareData.shift) != null && r.enabled.y && (C = S), A && !h) {
1671
1671
  const L = X(f.left, 0), W = X(f.right, 0), H = X(f.top, 0), I = X(f.bottom, 0);
@@ -1695,7 +1695,7 @@ function q(e) {
1695
1695
  var t;
1696
1696
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
1697
1697
  }
1698
- function se(e) {
1698
+ function oe(e) {
1699
1699
  var t;
1700
1700
  return (t = (kr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
1701
1701
  }
@@ -1705,7 +1705,7 @@ function kr(e) {
1705
1705
  function Q(e) {
1706
1706
  return mt() ? e instanceof Element || e instanceof q(e).Element : !1;
1707
1707
  }
1708
- function oe(e) {
1708
+ function re(e) {
1709
1709
  return mt() ? e instanceof HTMLElement || e instanceof q(e).HTMLElement : !1;
1710
1710
  }
1711
1711
  function Dn(e) {
@@ -1737,13 +1737,13 @@ function rn(e) {
1737
1737
  return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
1738
1738
  }
1739
1739
  function Ca(e) {
1740
- let t = ve(e);
1741
- for (; oe(t) && !ke(t); ) {
1740
+ let t = ge(e);
1741
+ for (; re(t) && !ke(t); ) {
1742
1742
  if (rn(t))
1743
1743
  return t;
1744
1744
  if (pt(t))
1745
1745
  return null;
1746
- t = ve(t);
1746
+ t = ge(t);
1747
1747
  }
1748
1748
  return null;
1749
1749
  }
@@ -1765,7 +1765,7 @@ function ht(e) {
1765
1765
  scrollTop: e.scrollY
1766
1766
  };
1767
1767
  }
1768
- function ve(e) {
1768
+ function ge(e) {
1769
1769
  if (Le(e) === "html")
1770
1770
  return e;
1771
1771
  const t = (
@@ -1773,13 +1773,13 @@ function ve(e) {
1773
1773
  e.assignedSlot || // DOM Element detected.
1774
1774
  e.parentNode || // ShadowRoot detected.
1775
1775
  Dn(e) && e.host || // Fallback.
1776
- se(e)
1776
+ oe(e)
1777
1777
  );
1778
1778
  return Dn(t) ? t.host : t;
1779
1779
  }
1780
1780
  function Mr(e) {
1781
- const t = ve(e);
1782
- return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : oe(t) && Ge(t) ? t : Mr(t);
1781
+ const t = ge(e);
1782
+ return ke(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : re(t) && Ge(t) ? t : Mr(t);
1783
1783
  }
1784
1784
  function Ye(e, t, n) {
1785
1785
  var r;
@@ -1797,7 +1797,7 @@ function Lt(e) {
1797
1797
  function _r(e) {
1798
1798
  const t = ee(e);
1799
1799
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
1800
- const o = oe(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = lt(n) !== s || lt(r) !== a;
1800
+ const o = re(e), s = o ? e.offsetWidth : n, a = o ? e.offsetHeight : r, i = lt(n) !== s || lt(r) !== a;
1801
1801
  return i && (n = s, r = a), {
1802
1802
  width: n,
1803
1803
  height: r,
@@ -1807,9 +1807,9 @@ function _r(e) {
1807
1807
  function sn(e) {
1808
1808
  return Q(e) ? e : e.contextElement;
1809
1809
  }
1810
- function Pe(e) {
1810
+ function Ne(e) {
1811
1811
  const t = sn(e);
1812
- if (!oe(t))
1812
+ if (!re(t))
1813
1813
  return ne(1);
1814
1814
  const n = t.getBoundingClientRect(), {
1815
1815
  width: r,
@@ -1837,14 +1837,14 @@ function je(e, t, n, r) {
1837
1837
  t === void 0 && (t = !1), n === void 0 && (n = !1);
1838
1838
  const o = e.getBoundingClientRect(), s = sn(e);
1839
1839
  let a = ne(1);
1840
- t && (r ? Q(r) && (a = Pe(r)) : a = Pe(e));
1840
+ t && (r ? Q(r) && (a = Ne(r)) : a = Ne(e));
1841
1841
  const i = Sa(s, n, r) ? Dr(s) : ne(0);
1842
1842
  let u = (o.left + i.x) / a.x, l = (o.top + i.y) / a.y, f = o.width / a.x, d = o.height / a.y;
1843
1843
  if (s) {
1844
1844
  const h = q(s), p = r && Q(r) ? q(r) : r;
1845
1845
  let v = h, g = Lt(v);
1846
1846
  for (; g && r && p !== v; ) {
1847
- const x = Pe(g), b = g.getBoundingClientRect(), S = ee(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
1847
+ const x = Ne(g), b = g.getBoundingClientRect(), S = ee(g), E = b.left + (g.clientLeft + parseFloat(S.paddingLeft)) * x.x, w = b.top + (g.clientTop + parseFloat(S.paddingTop)) * x.y;
1848
1848
  u *= x.x, l *= x.y, f *= x.x, d *= x.y, u += E, l += w, v = q(g), g = Lt(v);
1849
1849
  }
1850
1850
  }
@@ -1857,7 +1857,7 @@ function je(e, t, n, r) {
1857
1857
  }
1858
1858
  function an(e, t) {
1859
1859
  const n = ht(e).scrollLeft;
1860
- return t ? t.left + n : je(se(e)).left + n;
1860
+ return t ? t.left + n : je(oe(e)).left + n;
1861
1861
  }
1862
1862
  function Fr(e, t, n) {
1863
1863
  n === void 0 && (n = !1);
@@ -1877,17 +1877,17 @@ function Aa(e) {
1877
1877
  offsetParent: r,
1878
1878
  strategy: o
1879
1879
  } = e;
1880
- const s = o === "fixed", a = se(r), i = t ? pt(t.floating) : !1;
1880
+ const s = o === "fixed", a = oe(r), i = t ? pt(t.floating) : !1;
1881
1881
  if (r === a || i && s)
1882
1882
  return n;
1883
1883
  let u = {
1884
1884
  scrollLeft: 0,
1885
1885
  scrollTop: 0
1886
1886
  }, l = ne(1);
1887
- const f = ne(0), d = oe(r);
1888
- if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = ht(r)), oe(r))) {
1887
+ const f = ne(0), d = re(r);
1888
+ if ((d || !d && !s) && ((Le(r) !== "body" || Ge(a)) && (u = ht(r)), re(r))) {
1889
1889
  const p = je(r);
1890
- l = Pe(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
1890
+ l = Ne(r), f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
1891
1891
  }
1892
1892
  const h = a && !d && !s ? Fr(a, u, !0) : ne(0);
1893
1893
  return {
@@ -1897,11 +1897,11 @@ function Aa(e) {
1897
1897
  y: n.y * l.y - u.scrollTop * l.y + f.y + h.y
1898
1898
  };
1899
1899
  }
1900
- function Na(e) {
1900
+ function Pa(e) {
1901
1901
  return Array.from(e.getClientRects());
1902
1902
  }
1903
- function Pa(e) {
1904
- const t = se(e), n = ht(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1903
+ function Na(e) {
1904
+ const t = oe(e), n = ht(e), r = e.ownerDocument.body, o = X(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = X(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
1905
1905
  let a = -n.scrollLeft + an(e);
1906
1906
  const i = -n.scrollTop;
1907
1907
  return ee(r).direction === "rtl" && (a += X(t.clientWidth, r.clientWidth) - o), {
@@ -1912,7 +1912,7 @@ function Pa(e) {
1912
1912
  };
1913
1913
  }
1914
1914
  function Oa(e, t) {
1915
- const n = q(e), r = se(e), o = n.visualViewport;
1915
+ const n = q(e), r = oe(e), o = n.visualViewport;
1916
1916
  let s = r.clientWidth, a = r.clientHeight, i = 0, u = 0;
1917
1917
  if (o) {
1918
1918
  s = o.width, a = o.height;
@@ -1927,7 +1927,7 @@ function Oa(e, t) {
1927
1927
  };
1928
1928
  }
1929
1929
  function Ra(e, t) {
1930
- const n = je(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = oe(e) ? Pe(e) : ne(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, u = o * s.x, l = r * s.y;
1930
+ const n = je(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, s = re(e) ? Ne(e) : ne(1), a = e.clientWidth * s.x, i = e.clientHeight * s.y, u = o * s.x, l = r * s.y;
1931
1931
  return {
1932
1932
  width: a,
1933
1933
  height: i,
@@ -1940,7 +1940,7 @@ function Fn(e, t, n) {
1940
1940
  if (t === "viewport")
1941
1941
  r = Oa(e, n);
1942
1942
  else if (t === "document")
1943
- r = Pa(se(e));
1943
+ r = Na(oe(e));
1944
1944
  else if (Q(t))
1945
1945
  r = Ra(t, n);
1946
1946
  else {
@@ -1955,7 +1955,7 @@ function Fn(e, t, n) {
1955
1955
  return ft(r);
1956
1956
  }
1957
1957
  function Lr(e, t) {
1958
- const n = ve(e);
1958
+ const n = ge(e);
1959
1959
  return n === t || !Q(n) || ke(n) ? !1 : ee(n).position === "fixed" || Lr(n, t);
1960
1960
  }
1961
1961
  function Ta(e, t) {
@@ -1964,10 +1964,10 @@ function Ta(e, t) {
1964
1964
  return n;
1965
1965
  let r = Ye(e, [], !1).filter((i) => Q(i) && Le(i) !== "body"), o = null;
1966
1966
  const s = ee(e).position === "fixed";
1967
- let a = s ? ve(e) : e;
1967
+ let a = s ? ge(e) : e;
1968
1968
  for (; Q(a) && !ke(a); ) {
1969
1969
  const i = ee(a), u = rn(a);
1970
- !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Lr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = ve(a);
1970
+ !u && i.position === "fixed" && (o = null), (s ? !u && !o : !u && i.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || Ge(a) && !u && Lr(e, a)) ? r = r.filter((f) => f !== a) : o = i, a = ge(a);
1971
1971
  }
1972
1972
  return t.set(e, r), r;
1973
1973
  }
@@ -1980,7 +1980,7 @@ function ka(e) {
1980
1980
  } = e;
1981
1981
  const a = [...n === "clippingAncestors" ? pt(t) ? [] : Ta(t, this._c) : [].concat(n), r], i = a[0], u = a.reduce((l, f) => {
1982
1982
  const d = Fn(t, f, o);
1983
- return l.top = X(d.top, l.top), l.right = he(d.right, l.right), l.bottom = he(d.bottom, l.bottom), l.left = X(d.left, l.left), l;
1983
+ return l.top = X(d.top, l.top), l.right = pe(d.right, l.right), l.bottom = pe(d.bottom, l.bottom), l.left = X(d.left, l.left), l;
1984
1984
  }, Fn(t, i, o));
1985
1985
  return {
1986
1986
  width: u.right - u.left,
@@ -2000,7 +2000,7 @@ function Ma(e) {
2000
2000
  };
2001
2001
  }
2002
2002
  function _a(e, t, n) {
2003
- const r = oe(t), o = se(t), s = n === "fixed", a = je(e, !0, s, t);
2003
+ const r = re(t), o = oe(t), s = n === "fixed", a = je(e, !0, s, t);
2004
2004
  let i = {
2005
2005
  scrollLeft: 0,
2006
2006
  scrollTop: 0
@@ -2023,23 +2023,23 @@ function St(e) {
2023
2023
  return ee(e).position === "static";
2024
2024
  }
2025
2025
  function Ln(e, t) {
2026
- if (!oe(e) || ee(e).position === "fixed")
2026
+ if (!re(e) || ee(e).position === "fixed")
2027
2027
  return null;
2028
2028
  if (t)
2029
2029
  return t(e);
2030
2030
  let n = e.offsetParent;
2031
- return se(e) === n && (n = n.ownerDocument.body), n;
2031
+ return oe(e) === n && (n = n.ownerDocument.body), n;
2032
2032
  }
2033
2033
  function Ir(e, t) {
2034
2034
  const n = q(e);
2035
2035
  if (pt(e))
2036
2036
  return n;
2037
- if (!oe(e)) {
2038
- let o = ve(e);
2037
+ if (!re(e)) {
2038
+ let o = ge(e);
2039
2039
  for (; o && !ke(o); ) {
2040
2040
  if (Q(o) && !St(o))
2041
2041
  return o;
2042
- o = ve(o);
2042
+ o = ge(o);
2043
2043
  }
2044
2044
  return n;
2045
2045
  }
@@ -2065,13 +2065,13 @@ function Fa(e) {
2065
2065
  }
2066
2066
  const La = {
2067
2067
  convertOffsetParentRelativeRectToViewportRelativeRect: Aa,
2068
- getDocumentElement: se,
2068
+ getDocumentElement: oe,
2069
2069
  getClippingRect: ka,
2070
2070
  getOffsetParent: Ir,
2071
2071
  getElementRects: Da,
2072
- getClientRects: Na,
2072
+ getClientRects: Pa,
2073
2073
  getDimensions: Ma,
2074
- getScale: Pe,
2074
+ getScale: Ne,
2075
2075
  isElement: Q,
2076
2076
  isRTL: Fa
2077
2077
  };
@@ -2080,7 +2080,7 @@ function $r(e, t) {
2080
2080
  }
2081
2081
  function Ia(e, t) {
2082
2082
  let n = null, r;
2083
- const o = se(e);
2083
+ const o = oe(e);
2084
2084
  function s() {
2085
2085
  var i;
2086
2086
  clearTimeout(r), (i = n) == null || i.disconnect(), n = null;
@@ -2097,7 +2097,7 @@ function Ia(e, t) {
2097
2097
  return;
2098
2098
  const v = Je(d), g = Je(o.clientWidth - (f + h)), x = Je(o.clientHeight - (d + p)), b = Je(f), E = {
2099
2099
  rootMargin: -v + "px " + -g + "px " + -x + "px " + -b + "px",
2100
- threshold: X(0, he(1, u)) || 1
2100
+ threshold: X(0, pe(1, u)) || 1
2101
2101
  };
2102
2102
  let w = !0;
2103
2103
  function j(A) {
@@ -2365,7 +2365,7 @@ const Za = (e) => {
2365
2365
  var ni = "Arrow", Hr = m.forwardRef((e, t) => {
2366
2366
  const { children: n, width: r = 10, height: o = 5, ...s } = e;
2367
2367
  return /* @__PURE__ */ c.jsx(
2368
- le.svg,
2368
+ ce.svg,
2369
2369
  {
2370
2370
  ...s,
2371
2371
  ref: t,
@@ -2381,7 +2381,7 @@ Hr.displayName = ni;
2381
2381
  var ri = Hr;
2382
2382
  function oi(e) {
2383
2383
  const [t, n] = m.useState(void 0);
2384
- return pe(() => {
2384
+ return me(() => {
2385
2385
  if (e) {
2386
2386
  n({ width: e.offsetWidth, height: e.offsetHeight });
2387
2387
  const r = new ResizeObserver((o) => {
@@ -2408,11 +2408,11 @@ var cn = "Popper", [Br, zr] = Er(cn), [si, Vr] = Br(cn), Ur = (e) => {
2408
2408
  Ur.displayName = cn;
2409
2409
  var Yr = "PopperAnchor", Gr = m.forwardRef(
2410
2410
  (e, t) => {
2411
- const { __scopePopper: n, virtualRef: r, ...o } = e, s = Vr(Yr, n), a = m.useRef(null), i = ye(t, a), u = m.useRef(null);
2411
+ const { __scopePopper: n, virtualRef: r, ...o } = e, s = Vr(Yr, n), a = m.useRef(null), i = ve(t, a), u = m.useRef(null);
2412
2412
  return m.useEffect(() => {
2413
2413
  const l = u.current;
2414
2414
  u.current = r?.current || a.current, l !== u.current && s.onAnchorChange(u.current);
2415
- }), r ? null : /* @__PURE__ */ c.jsx(le.div, { ...o, ref: i });
2415
+ }), r ? null : /* @__PURE__ */ c.jsx(ce.div, { ...o, ref: i });
2416
2416
  }
2417
2417
  );
2418
2418
  Gr.displayName = Yr;
@@ -2433,7 +2433,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2433
2433
  updatePositionStrategy: p = "optimized",
2434
2434
  onPlaced: v,
2435
2435
  ...g
2436
- } = e, x = Vr(ln, n), [b, S] = m.useState(null), E = ye(t, (ae) => S(ae)), [w, j] = m.useState(null), A = oi(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2436
+ } = e, x = Vr(ln, n), [b, S] = m.useState(null), E = ve(t, (se) => S(se)), [w, j] = m.useState(null), A = oi(w), C = A?.width ?? 0, T = A?.height ?? 0, k = r + (s !== "center" ? "-" + s : ""), L = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, W = Array.isArray(l) ? l : [l], H = W.length > 0, I = {
2437
2437
  padding: L,
2438
2438
  boundary: W.filter(li),
2439
2439
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
@@ -2442,7 +2442,7 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2442
2442
  // default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
2443
2443
  strategy: "fixed",
2444
2444
  placement: k,
2445
- whileElementsMounted: (...ae) => $a(...ae, {
2445
+ whileElementsMounted: (...se) => $a(...se, {
2446
2446
  animationFrame: p === "always"
2447
2447
  }),
2448
2448
  elements: {
@@ -2459,21 +2459,21 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2459
2459
  u && Ka({ ...I }),
2460
2460
  Qa({
2461
2461
  ...I,
2462
- apply: ({ elements: ae, rects: U, availableWidth: ue, availableHeight: $e }) => {
2463
- const { width: wt, height: Wo } = U.reference, Xe = ae.floating.style;
2464
- Xe.setProperty("--radix-popper-available-width", `${ue}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${wt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
2462
+ apply: ({ elements: se, rects: U, availableWidth: le, availableHeight: $e }) => {
2463
+ const { width: wt, height: Wo } = U.reference, Xe = se.floating.style;
2464
+ Xe.setProperty("--radix-popper-available-width", `${le}px`), Xe.setProperty("--radix-popper-available-height", `${$e}px`), Xe.setProperty("--radix-popper-anchor-width", `${wt}px`), Xe.setProperty("--radix-popper-anchor-height", `${Wo}px`);
2465
2465
  }
2466
2466
  }),
2467
2467
  w && ti({ element: w, padding: i }),
2468
2468
  ui({ arrowWidth: C, arrowHeight: T }),
2469
2469
  h && ei({ strategy: "referenceHidden", ...I })
2470
2470
  ]
2471
- }), [B, y] = Jr(D), P = Te(v);
2472
- pe(() => {
2473
- R && P?.();
2474
- }, [R, P]);
2475
- const $ = O.arrow?.x, N = O.arrow?.y, F = O.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
2476
- return pe(() => {
2471
+ }), [B, y] = Jr(D), N = Te(v);
2472
+ me(() => {
2473
+ R && N?.();
2474
+ }, [R, N]);
2475
+ const $ = O.arrow?.x, P = O.arrow?.y, F = O.arrow?.centerOffset !== 0, [Z, Ie] = m.useState();
2476
+ return me(() => {
2477
2477
  b && Ie(window.getComputedStyle(b).zIndex);
2478
2478
  }, [b]), /* @__PURE__ */ c.jsx(
2479
2479
  "div",
@@ -2506,10 +2506,10 @@ var ln = "PopperContent", [ai, ii] = Br(ln), Zr = m.forwardRef(
2506
2506
  placedSide: B,
2507
2507
  onArrowChange: j,
2508
2508
  arrowX: $,
2509
- arrowY: N,
2509
+ arrowY: P,
2510
2510
  shouldHideArrow: F,
2511
2511
  children: /* @__PURE__ */ c.jsx(
2512
- le.div,
2512
+ ce.div,
2513
2513
  {
2514
2514
  "data-side": B,
2515
2515
  "data-align": y,
@@ -2599,16 +2599,16 @@ function Jr(e) {
2599
2599
  }
2600
2600
  var fi = Ur, Kr = Gr, di = Zr, mi = qr, pi = "Portal", Qr = m.forwardRef((e, t) => {
2601
2601
  const { container: n, ...r } = e, [o, s] = m.useState(!1);
2602
- pe(() => s(!0), []);
2602
+ me(() => s(!0), []);
2603
2603
  const a = n || o && globalThis?.document?.body;
2604
- return a ? Zo.createPortal(/* @__PURE__ */ c.jsx(le.div, { ...r, ref: t }), a) : null;
2604
+ return a ? Zo.createPortal(/* @__PURE__ */ c.jsx(ce.div, { ...r, ref: t }), a) : null;
2605
2605
  });
2606
2606
  Qr.displayName = pi;
2607
2607
  function hi(e, t) {
2608
2608
  return m.useReducer((n, r) => t[n][r] ?? n, e);
2609
2609
  }
2610
2610
  var un = (e) => {
2611
- const { present: t, children: n } = e, r = gi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ye(r.ref, vi(o));
2611
+ const { present: t, children: n } = e, r = gi(t), o = typeof n == "function" ? n({ present: r.isPresent }) : m.Children.only(n), s = ve(r.ref, vi(o));
2612
2612
  return typeof n == "function" || r.isPresent ? m.cloneElement(o, { ref: s }) : null;
2613
2613
  };
2614
2614
  un.displayName = "Presence";
@@ -2629,13 +2629,13 @@ function gi(e) {
2629
2629
  return m.useEffect(() => {
2630
2630
  const l = Ke(r.current);
2631
2631
  s.current = i === "mounted" ? l : "none";
2632
- }, [i]), pe(() => {
2632
+ }, [i]), me(() => {
2633
2633
  const l = r.current, f = o.current;
2634
2634
  if (f !== e) {
2635
2635
  const h = s.current, p = Ke(l);
2636
2636
  e ? u("MOUNT") : p === "none" || l?.display === "none" ? u("UNMOUNT") : u(f && h !== p ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
2637
2637
  }
2638
- }, [e, u]), pe(() => {
2638
+ }, [e, u]), me(() => {
2639
2639
  if (t) {
2640
2640
  let l;
2641
2641
  const f = t.ownerDocument.defaultView ?? window, d = (p) => {
@@ -2668,7 +2668,7 @@ function vi(e) {
2668
2668
  let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
2669
2669
  return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
2670
2670
  }
2671
- var yi = m[" useInsertionEffect ".trim().toString()] || pe;
2671
+ var yi = m[" useInsertionEffect ".trim().toString()] || me;
2672
2672
  function xi({
2673
2673
  prop: e,
2674
2674
  defaultProp: t,
@@ -2720,7 +2720,7 @@ var ji = function(e) {
2720
2720
  return null;
2721
2721
  var t = Array.isArray(e) ? e[0] : e;
2722
2722
  return t.ownerDocument.body;
2723
- }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Nt = 0, eo = function(e) {
2723
+ }, Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {}, Pt = 0, eo = function(e) {
2724
2724
  return e && (e.host || eo(e.parentNode));
2725
2725
  }, Ci = function(e, t) {
2726
2726
  return t.map(function(n) {
@@ -2751,11 +2751,11 @@ var ji = function(e) {
2751
2751
  }
2752
2752
  });
2753
2753
  };
2754
- return f(t), i.clear(), Nt++, function() {
2754
+ return f(t), i.clear(), Pt++, function() {
2755
2755
  a.forEach(function(d) {
2756
2756
  var h = Ee.get(d) - 1, p = s.get(d) - 1;
2757
2757
  Ee.set(d, h), s.set(d, p), h || (Qe.has(d) || d.removeAttribute(r), Qe.delete(d)), p || d.removeAttribute(n);
2758
- }), Nt--, Nt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
2758
+ }), Pt--, Pt || (Ee = /* @__PURE__ */ new WeakMap(), Ee = /* @__PURE__ */ new WeakMap(), Qe = /* @__PURE__ */ new WeakMap(), et = {});
2759
2759
  };
2760
2760
  }, Si = function(e, t, n) {
2761
2761
  n === void 0 && (n = "data-aria-hidden");
@@ -2785,8 +2785,8 @@ function Ai(e, t, n) {
2785
2785
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
2786
2786
  return e.concat(s || Array.prototype.slice.call(t));
2787
2787
  }
2788
- var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Ni = "with-scroll-bars-hidden", Pi = "--removed-body-scroll-bar-size";
2789
- function Pt(e, t) {
2788
+ var st = "right-scroll-bar-position", at = "width-before-scroll-bar", Pi = "with-scroll-bars-hidden", Ni = "--removed-body-scroll-bar-size";
2789
+ function Nt(e, t) {
2790
2790
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
2791
2791
  }
2792
2792
  function Oi(e, t) {
@@ -2814,7 +2814,7 @@ var Ri = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Wn = /* @__PURE_
2814
2814
  function Ti(e, t) {
2815
2815
  var n = Oi(null, function(r) {
2816
2816
  return e.forEach(function(o) {
2817
- return Pt(o, r);
2817
+ return Nt(o, r);
2818
2818
  });
2819
2819
  });
2820
2820
  return Ri(function() {
@@ -2822,9 +2822,9 @@ function Ti(e, t) {
2822
2822
  if (r) {
2823
2823
  var o = new Set(r), s = new Set(e), a = n.current;
2824
2824
  o.forEach(function(i) {
2825
- s.has(i) || Pt(i, null);
2825
+ s.has(i) || Nt(i, null);
2826
2826
  }), s.forEach(function(i) {
2827
- o.has(i) || Pt(i, a);
2827
+ o.has(i) || Nt(i, a);
2828
2828
  });
2829
2829
  }
2830
2830
  Wn.set(n, e);
@@ -2996,7 +2996,7 @@ var Wi = function() {
2996
2996
  }, Ui = oo(), Oe = "data-scroll-locked", Yi = function(e, t, n, r) {
2997
2997
  var o = e.left, s = e.top, a = e.right, i = e.gap;
2998
2998
  return n === void 0 && (n = "margin"), `
2999
- .`.concat(Ni, ` {
2999
+ .`.concat(Pi, ` {
3000
3000
  overflow: hidden `).concat(r, `;
3001
3001
  padding-right: `).concat(i, "px ").concat(r, `;
3002
3002
  }
@@ -3034,7 +3034,7 @@ var Wi = function() {
3034
3034
  }
3035
3035
 
3036
3036
  body[`).concat(Oe, `] {
3037
- `).concat(Pi, ": ").concat(i, `px;
3037
+ `).concat(Ni, ": ").concat(i, `px;
3038
3038
  }
3039
3039
  `);
3040
3040
  }, Hn = function() {
@@ -3233,7 +3233,7 @@ var co = m.forwardRef(function(e, t) {
3233
3233
  co.classNames = gt.classNames;
3234
3234
  var vt = "Popover", [lo] = Er(vt, [
3235
3235
  zr
3236
- ]), Ze = zr(), [cc, xe] = lo(vt), uo = (e) => {
3236
+ ]), Ze = zr(), [cc, ye] = lo(vt), uo = (e) => {
3237
3237
  const {
3238
3238
  __scopePopover: t,
3239
3239
  children: n,
@@ -3267,15 +3267,15 @@ var vt = "Popover", [lo] = Er(vt, [
3267
3267
  uo.displayName = vt;
3268
3268
  var fo = "PopoverAnchor", lc = m.forwardRef(
3269
3269
  (e, t) => {
3270
- const { __scopePopover: n, ...r } = e, o = xe(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
3270
+ const { __scopePopover: n, ...r } = e, o = ye(fo, n), s = Ze(n), { onCustomAnchorAdd: a, onCustomAnchorRemove: i } = o;
3271
3271
  return m.useEffect(() => (a(), () => i()), [a, i]), /* @__PURE__ */ c.jsx(Kr, { ...s, ...r, ref: t });
3272
3272
  }
3273
3273
  );
3274
3274
  lc.displayName = fo;
3275
3275
  var mo = "PopoverTrigger", po = m.forwardRef(
3276
3276
  (e, t) => {
3277
- const { __scopePopover: n, ...r } = e, o = xe(mo, n), s = Ze(n), a = ye(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
3278
- le.button,
3277
+ const { __scopePopover: n, ...r } = e, o = ye(mo, n), s = Ze(n), a = ve(t, o.triggerRef), i = /* @__PURE__ */ c.jsx(
3278
+ ce.button,
3279
3279
  {
3280
3280
  type: "button",
3281
3281
  "aria-haspopup": "dialog",
@@ -3284,7 +3284,7 @@ var mo = "PopoverTrigger", po = m.forwardRef(
3284
3284
  "data-state": xo(o.open),
3285
3285
  ...r,
3286
3286
  ref: a,
3287
- onClick: me(e.onClick, o.onOpenToggle)
3287
+ onClick: fe(e.onClick, o.onOpenToggle)
3288
3288
  }
3289
3289
  );
3290
3290
  return o.hasCustomAnchor ? i : /* @__PURE__ */ c.jsx(Kr, { asChild: !0, ...s, children: i });
@@ -3294,20 +3294,20 @@ po.displayName = mo;
3294
3294
  var fn = "PopoverPortal", [uc, fc] = lo(fn, {
3295
3295
  forceMount: void 0
3296
3296
  }), ho = (e) => {
3297
- const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = xe(fn, t);
3297
+ const { __scopePopover: t, forceMount: n, children: r, container: o } = e, s = ye(fn, t);
3298
3298
  return /* @__PURE__ */ c.jsx(uc, { scope: t, forceMount: n, children: /* @__PURE__ */ c.jsx(un, { present: n || s.open, children: /* @__PURE__ */ c.jsx(Qr, { asChild: !0, container: o, children: r }) }) });
3299
3299
  };
3300
3300
  ho.displayName = fn;
3301
3301
  var Me = "PopoverContent", go = m.forwardRef(
3302
3302
  (e, t) => {
3303
- const n = fc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = xe(Me, e.__scopePopover);
3303
+ const n = fc(Me, e.__scopePopover), { forceMount: r = n.forceMount, ...o } = e, s = ye(Me, e.__scopePopover);
3304
3304
  return /* @__PURE__ */ c.jsx(un, { present: r || s.open, children: s.modal ? /* @__PURE__ */ c.jsx(mc, { ...o, ref: t }) : /* @__PURE__ */ c.jsx(pc, { ...o, ref: t }) });
3305
3305
  }
3306
3306
  );
3307
3307
  go.displayName = Me;
3308
3308
  var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3309
3309
  (e, t) => {
3310
- const n = xe(Me, e.__scopePopover), r = m.useRef(null), o = ye(t, r), s = m.useRef(!1);
3310
+ const n = ye(Me, e.__scopePopover), r = m.useRef(null), o = ve(t, r), s = m.useRef(!1);
3311
3311
  return m.useEffect(() => {
3312
3312
  const a = r.current;
3313
3313
  if (a) return Si(a);
@@ -3318,10 +3318,10 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3318
3318
  ref: o,
3319
3319
  trapFocus: n.open,
3320
3320
  disableOutsidePointerEvents: !0,
3321
- onCloseAutoFocus: me(e.onCloseAutoFocus, (a) => {
3321
+ onCloseAutoFocus: fe(e.onCloseAutoFocus, (a) => {
3322
3322
  a.preventDefault(), s.current || n.triggerRef.current?.focus();
3323
3323
  }),
3324
- onPointerDownOutside: me(
3324
+ onPointerDownOutside: fe(
3325
3325
  e.onPointerDownOutside,
3326
3326
  (a) => {
3327
3327
  const i = a.detail.originalEvent, u = i.button === 0 && i.ctrlKey === !0, l = i.button === 2 || u;
@@ -3329,7 +3329,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3329
3329
  },
3330
3330
  { checkForDefaultPrevented: !1 }
3331
3331
  ),
3332
- onFocusOutside: me(
3332
+ onFocusOutside: fe(
3333
3333
  e.onFocusOutside,
3334
3334
  (a) => a.preventDefault(),
3335
3335
  { checkForDefaultPrevented: !1 }
@@ -3339,7 +3339,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3339
3339
  }
3340
3340
  ), pc = m.forwardRef(
3341
3341
  (e, t) => {
3342
- const n = xe(Me, e.__scopePopover), r = m.useRef(!1), o = m.useRef(!1);
3342
+ const n = ye(Me, e.__scopePopover), r = m.useRef(!1), o = m.useRef(!1);
3343
3343
  return /* @__PURE__ */ c.jsx(
3344
3344
  vo,
3345
3345
  {
@@ -3371,7 +3371,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3371
3371
  onFocusOutside: l,
3372
3372
  onInteractOutside: f,
3373
3373
  ...d
3374
- } = e, h = xe(Me, n), p = Ze(n);
3374
+ } = e, h = ye(Me, n), p = Ze(n);
3375
3375
  return Zs(), /* @__PURE__ */ c.jsx(
3376
3376
  Or,
3377
3377
  {
@@ -3381,7 +3381,7 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3381
3381
  onMountAutoFocus: o,
3382
3382
  onUnmountAutoFocus: s,
3383
3383
  children: /* @__PURE__ */ c.jsx(
3384
- Nr,
3384
+ Pr,
3385
3385
  {
3386
3386
  asChild: !0,
3387
3387
  disableOutsidePointerEvents: a,
@@ -3416,14 +3416,14 @@ var dc = /* @__PURE__ */ Sr("PopoverContent.RemoveScroll"), mc = m.forwardRef(
3416
3416
  }
3417
3417
  ), yo = "PopoverClose", hc = m.forwardRef(
3418
3418
  (e, t) => {
3419
- const { __scopePopover: n, ...r } = e, o = xe(yo, n);
3419
+ const { __scopePopover: n, ...r } = e, o = ye(yo, n);
3420
3420
  return /* @__PURE__ */ c.jsx(
3421
- le.button,
3421
+ ce.button,
3422
3422
  {
3423
3423
  type: "button",
3424
3424
  ...r,
3425
3425
  ref: t,
3426
- onClick: me(e.onClick, () => o.onOpenChange(!1))
3426
+ onClick: fe(e.onClick, () => o.onOpenChange(!1))
3427
3427
  }
3428
3428
  );
3429
3429
  }
@@ -3516,7 +3516,7 @@ function Ac(e) {
3516
3516
  var t = (/mac os x/i.test(navigator.userAgent) ? "⌘" : "Ctrl") + "+C";
3517
3517
  return e.replace(/#{\s*key\s*}/g, t);
3518
3518
  }
3519
- function Nc(e, t) {
3519
+ function Pc(e, t) {
3520
3520
  var n, r, o, s, a, i, u = !1;
3521
3521
  t || (t = {}), n = t.debug || !1;
3522
3522
  try {
@@ -3546,12 +3546,12 @@ function Nc(e, t) {
3546
3546
  }
3547
3547
  return u;
3548
3548
  }
3549
- var Pc = Nc;
3550
- function be(e) {
3549
+ var Nc = Pc;
3550
+ function xe(e) {
3551
3551
  return Object.prototype.toString.call(e) === "[object Object]";
3552
3552
  }
3553
3553
  function Ve(e) {
3554
- return Array.isArray(e) ? e.length : be(e) ? Object.keys(e).length : 0;
3554
+ return Array.isArray(e) ? e.length : xe(e) ? Object.keys(e).length : 0;
3555
3555
  }
3556
3556
  function Oc(e, t) {
3557
3557
  if (typeof e == "string")
@@ -3579,7 +3579,7 @@ function Rc(e) {
3579
3579
  try {
3580
3580
  yield navigator.clipboard.writeText(e);
3581
3581
  } catch {
3582
- Pc(e);
3582
+ Nc(e);
3583
3583
  }
3584
3584
  });
3585
3585
  }
@@ -3596,7 +3596,7 @@ function Yn(e, t, n, r, o, s) {
3596
3596
  if (typeof i == "boolean")
3597
3597
  return i;
3598
3598
  }
3599
- return !!(Array.isArray(e) && a > o || be(e) && a > o);
3599
+ return !!(Array.isArray(e) && a > o || xe(e) && a > o);
3600
3600
  }
3601
3601
  function Gn(e, t, n, r, o, s) {
3602
3602
  if (s && s.collapsed !== void 0)
@@ -3611,7 +3611,7 @@ function Gn(e, t, n, r, o, s) {
3611
3611
  if (typeof i == "boolean")
3612
3612
  return i;
3613
3613
  }
3614
- return !!(Array.isArray(e) && a > o || be(e) && a > o);
3614
+ return !!(Array.isArray(e) && a > o || xe(e) && a > o);
3615
3615
  }
3616
3616
  function Re(e, t, n) {
3617
3617
  return typeof e == "boolean" ? e : !!(typeof e == "number" && t > e || e === "collapsed" && n || e === "expanded" && !n);
@@ -3624,15 +3624,15 @@ function dn(e, t) {
3624
3624
  }
3625
3625
  }
3626
3626
  function Co(e) {
3627
- if (e === !0 || be(e) && e.add === !0)
3627
+ if (e === !0 || xe(e) && e.add === !0)
3628
3628
  return !0;
3629
3629
  }
3630
3630
  function Zn(e) {
3631
- if (e === !0 || be(e) && e.edit === !0)
3631
+ if (e === !0 || xe(e) && e.edit === !0)
3632
3632
  return !0;
3633
3633
  }
3634
3634
  function mn(e) {
3635
- if (e === !0 || be(e) && e.delete === !0)
3635
+ if (e === !0 || xe(e) && e.delete === !0)
3636
3636
  return !0;
3637
3637
  }
3638
3638
  function Tc(e) {
@@ -3727,7 +3727,7 @@ var Dc = function(t) {
3727
3727
  })));
3728
3728
  };
3729
3729
  function xt({ node: e, nodeMeta: t }) {
3730
- const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(we), [s, a] = G(!1), i = (u) => {
3730
+ const { customizeCopy: n, CopyComponent: r, CopiedComponent: o } = Ce(be), [s, a] = G(!1), i = (u) => {
3731
3731
  u.stopPropagation();
3732
3732
  const l = n(e, t);
3733
3733
  typeof l == "string" && l && Rc(l), a(!0), setTimeout(() => a(!1), 3e3);
@@ -3735,7 +3735,7 @@ function xt({ node: e, nodeMeta: t }) {
3735
3735
  return s ? typeof o == "function" ? c.jsx(o, { className: "json-view--copy", style: { display: "inline-block" } }) : c.jsx(Dc, { className: "json-view--copy", style: { display: "inline-block" } }) : typeof r == "function" ? c.jsx(r, { onClick: i, className: "json-view--copy" }) : c.jsx(_c, { onClick: i, className: "json-view--copy" });
3736
3736
  }
3737
3737
  function Bt({ indexOrName: e, value: t, depth: n, deleteHandle: r, editHandle: o, parent: s, parentPath: a }) {
3738
- const { displayArrayIndex: i } = Ce(we), u = Array.isArray(s);
3738
+ const { displayArrayIndex: i } = Ce(be), u = Array.isArray(s);
3739
3739
  return c.jsxs("div", Object.assign({ className: "json-view--pair" }, { children: [!u || u && i ? c.jsxs(c.Fragment, { children: [c.jsx("span", Object.assign({ className: typeof e == "number" ? "json-view--index" : "json-view--property" }, { children: e })), ":", " "] }) : c.jsx(c.Fragment, {}), c.jsx(Ao, { node: t, depth: n + 1, deleteHandle: (l, f) => r(l, f), editHandle: (l, f, d, h) => o(l, f, d, h), parent: s, indexOrName: e, parentPath: a })] }));
3740
3740
  }
3741
3741
  var er, tr;
@@ -3840,7 +3840,7 @@ var yn = function(t) {
3840
3840
  })));
3841
3841
  };
3842
3842
  function Fc({ originNode: e, node: t, depth: n, index: r, deleteHandle: o, customOptions: s, startIndex: a, parent: i, parentPath: u }) {
3843
- const { enableClipboard: l, src: f, onEdit: d, onChange: h, forceUpdate: p, displaySize: v, CustomOperation: g } = Ce(we), x = [...u, String(r)], [b, S] = G(!0), E = re((A, C, T) => {
3843
+ const { enableClipboard: l, src: f, onEdit: d, onChange: h, forceUpdate: p, displaySize: v, CustomOperation: g } = Ce(be), x = [...u, String(r)], [b, S] = G(!0), E = de((A, C, T) => {
3844
3844
  e[A] = C, d && d({
3845
3845
  newValue: C,
3846
3846
  oldValue: T,
@@ -3859,7 +3859,7 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
3859
3859
  const i = typeof r < "u" ? [...a, String(r)] : a, u = [];
3860
3860
  for (let _ = 0; _ < e.length; _ += 100)
3861
3861
  u.push(e.slice(_, _ + 100));
3862
- const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(we), [w, j] = G(Gn(e, t, r, l, d, o));
3862
+ const { collapsed: l, enableClipboard: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, CustomOperation: x, onChange: b, forceUpdate: S, displaySize: E } = Ce(be), [w, j] = G(Gn(e, t, r, l, d, o));
3863
3863
  _e(() => {
3864
3864
  j(Gn(e, t, r, l, d, o));
3865
3865
  }, [l, d]);
@@ -3883,27 +3883,27 @@ function Lc({ node: e, depth: t, deleteHandle: n, indexOrName: r, customOptions:
3883
3883
  return c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), M, w ? c.jsx("button", Object.assign({ onClick: () => j(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: u.map((_, D) => c.jsx(Fc, { originNode: e, node: _, depth: t, index: D, startIndex: D * 100, deleteHandle: n, customOptions: o, parentPath: a }, String(r) + String(D))) })), c.jsx("span", { children: "]" }), w && Re(E, t, w) && c.jsxs("span", Object.assign({ onClick: () => j(!1), className: "jv-size" }, { children: [e.length, " Items"] }))] });
3884
3884
  }
3885
3885
  function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parent: s, parentPath: a }) {
3886
- const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(we), j = typeof n < "u" ? [...a, String(n)] : a;
3886
+ const { collapsed: i, onCollapse: u, enableClipboard: l, ignoreLargeArray: f, collapseObjectsAfterLength: d, editable: h, onDelete: p, src: v, onAdd: g, onEdit: x, onChange: b, forceUpdate: S, displaySize: E, CustomOperation: w } = Ce(be), j = typeof n < "u" ? [...a, String(n)] : a;
3887
3887
  if (!f && Array.isArray(e) && e.length > 100)
3888
3888
  return c.jsx(Lc, { node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions: o, parentPath: j });
3889
- const A = be(e), [C, T] = G(Yn(e, t, n, i, d, o)), k = (N) => {
3890
- u?.({ isCollapsing: !N, node: e, depth: t, indexOrName: n }), T(N);
3889
+ const A = xe(e), [C, T] = G(Yn(e, t, n, i, d, o)), k = (P) => {
3890
+ u?.({ isCollapsing: !P, node: e, depth: t, indexOrName: n }), T(P);
3891
3891
  };
3892
3892
  _e(() => {
3893
3893
  k(Yn(e, t, n, i, d, o));
3894
3894
  }, [i, d]);
3895
- const L = re((N, F, Z) => {
3896
- Array.isArray(e) ? e[+N] = F : e && (e[N] = F), x && x({
3895
+ const L = de((P, F, Z) => {
3896
+ Array.isArray(e) ? e[+P] = F : e && (e[P] = F), x && x({
3897
3897
  newValue: F,
3898
3898
  oldValue: Z,
3899
3899
  depth: t,
3900
3900
  src: v,
3901
- indexOrName: N,
3901
+ indexOrName: P,
3902
3902
  parentType: A ? "object" : "array",
3903
3903
  parentPath: j
3904
- }), b && b({ type: "edit", depth: t, src: v, indexOrName: N, parentType: A ? "object" : "array", parentPath: j }), S();
3905
- }, [e, x, b, S]), W = (N) => {
3906
- Array.isArray(e) ? e.splice(+N, 1) : e && delete e[N], S();
3904
+ }), b && b({ type: "edit", depth: t, src: v, indexOrName: P, parentType: A ? "object" : "array", parentPath: j }), S();
3905
+ }, [e, x, b, S]), W = (P) => {
3906
+ Array.isArray(e) ? e.splice(+P, 1) : e && delete e[P], S();
3907
3907
  }, [H, I] = G(!1), M = () => {
3908
3908
  I(!1), r && r(n, j), p && p({ value: e, depth: t, src: v, indexOrName: n, parentType: A ? "object" : "array", parentPath: j }), b && b({
3909
3909
  type: "delete",
@@ -3914,29 +3914,29 @@ function Ic({ node: e, depth: t, indexOrName: n, deleteHandle: r, customOptions:
3914
3914
  parentPath: j
3915
3915
  });
3916
3916
  }, [_, D] = G(!1), R = Qt(null), O = () => {
3917
- var N;
3917
+ var P;
3918
3918
  if (A) {
3919
- const F = (N = R.current) === null || N === void 0 ? void 0 : N.value;
3919
+ const F = (P = R.current) === null || P === void 0 ? void 0 : P.value;
3920
3920
  F && (e[F] = null, R.current && (R.current.value = ""), D(!1), g && g({ indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }), b && b({ type: "add", indexOrName: F, depth: t, src: v, parentType: "object", parentPath: j }));
3921
3921
  } else if (Array.isArray(e)) {
3922
3922
  const F = e;
3923
3923
  F.push(null), g && g({ indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j }), b && b({ type: "add", indexOrName: F.length - 1, depth: t, src: v, parentType: "array", parentPath: j });
3924
3924
  }
3925
3925
  S();
3926
- }, B = (N) => {
3927
- N.key === "Enter" ? (N.preventDefault(), O()) : N.key === "Escape" && P();
3928
- }, y = H || _, P = () => {
3926
+ }, B = (P) => {
3927
+ P.key === "Enter" ? (P.preventDefault(), O()) : P.key === "Escape" && N();
3928
+ }, y = H || _, N = () => {
3929
3929
  I(!1), D(!1);
3930
- }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Re(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: R, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: P }), !C && !y && l && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3930
+ }, $ = c.jsxs(c.Fragment, { children: [!C && !y && c.jsxs("span", Object.assign({ onClick: () => k(!0), className: "jv-size-chevron" }, { children: [Re(E, t, C) && c.jsxs("span", Object.assign({ className: "jv-size" }, { children: [Ve(e), " Items"] })), c.jsx(hn, { className: "jv-chevron" })] })), _ && A && c.jsx("input", { className: "json-view--input", placeholder: "property", ref: R, onKeyDown: B }), y && c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: _ ? O : M }), y && c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: N }), !C && !y && l && yt(o) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: n, parent: s, parentPath: a, currentPath: j } }), !C && !y && Co(h) && Eo(o) && c.jsx(So, { className: "json-view--edit", onClick: () => {
3931
3931
  A ? (D(!0), setTimeout(() => {
3932
- var N;
3933
- return (N = R.current) === null || N === void 0 ? void 0 : N.focus();
3932
+ var P;
3933
+ return (P = R.current) === null || P === void 0 ? void 0 : P.focus();
3934
3934
  })) : O();
3935
3935
  } }), !C && !y && mn(h) && pn(o) && r && c.jsx(gn, { className: "json-view--edit", onClick: () => I(!0) }), typeof w == "function" ? c.jsx(w, { node: e }) : null] });
3936
- return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((N, F) => c.jsx(Bt, { indexOrName: F, value: N, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([N, F]) => c.jsx(Bt, { indexOrName: N, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(N))) })), c.jsx("span", { children: "}" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
3936
+ return Array.isArray(e) ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "[" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: e.map((P, F) => c.jsx(Bt, { indexOrName: F, value: P, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(F))) })), c.jsx("span", { children: "]" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : A ? c.jsxs(c.Fragment, { children: [c.jsx("span", { children: "{" }), $, C ? c.jsx("button", Object.assign({ onClick: () => k(!1), className: "jv-button" }, { children: "..." })) : c.jsx("div", Object.assign({ className: "jv-indent" }, { children: Object.entries(e).map(([P, F]) => c.jsx(Bt, { indexOrName: P, value: F, depth: t, parent: e, deleteHandle: W, editHandle: L, parentPath: j }, String(n) + String(P))) })), c.jsx("span", { children: "}" }), C && Re(E, t, C) && c.jsxs("span", Object.assign({ onClick: () => k(!1), className: "jv-size" }, { children: [Ve(e), " Items"] }))] }) : c.jsx("span", { children: String(e) });
3937
3937
  }
3938
- const $c = Ne.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3939
- let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(we);
3938
+ const $c = Pe.forwardRef(({ str: e, className: t, ctrlClick: n }, r) => {
3939
+ let { collapseStringMode: o, collapseStringsAfterLength: s, customizeCollapseStringUI: a } = Ce(be);
3940
3940
  const [i, u] = G(!0), l = Qt(null);
3941
3941
  s = s > 0 ? s : 0;
3942
3942
  const f = e.replace(/\s+/g, " "), d = typeof a == "function" ? a(f, i) : typeof a == "string" ? a : "...", h = (p) => {
@@ -4026,7 +4026,7 @@ var Hc = function(t) {
4026
4026
  })));
4027
4027
  };
4028
4028
  function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, editHandle: s, parentPath: a }) {
4029
- const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: h, customizeNode: p, matchesURL: v, urlRegExp: g, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(we);
4029
+ const { collapseStringsAfterLength: i, enableClipboard: u, editable: l, src: f, onDelete: d, onChange: h, customizeNode: p, matchesURL: v, urlRegExp: g, EditComponent: x, DoneComponent: b, CancelComponent: S, CustomOperation: E } = Ce(be);
4030
4030
  let w;
4031
4031
  if (typeof p == "function" && (w = dn(p, [{ node: e, depth: t, indexOrName: r }])), w) {
4032
4032
  if (zo(w))
@@ -4036,21 +4036,21 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4036
4036
  return c.jsx(j, { node: e, depth: t, indexOrName: r });
4037
4037
  }
4038
4038
  }
4039
- if (Array.isArray(e) || be(e))
4039
+ if (Array.isArray(e) || xe(e))
4040
4040
  return c.jsx(Ic, { parent: o, node: e, depth: t, indexOrName: r, deleteHandle: n, parentPath: a, customOptions: typeof w == "object" ? w : void 0 });
4041
4041
  {
4042
4042
  const j = typeof e, A = typeof r < "u" ? [...a, String(r)] : a, [C, T] = G(!1), [k, L] = G(!1), W = Qt(null), H = () => {
4043
4043
  T(!0), setTimeout(() => {
4044
- var N, F;
4045
- (N = window.getSelection()) === null || N === void 0 || N.selectAllChildren(W.current), (F = W.current) === null || F === void 0 || F.focus();
4044
+ var P, F;
4045
+ (P = window.getSelection()) === null || P === void 0 || P.selectAllChildren(W.current), (F = W.current) === null || F === void 0 || F.focus();
4046
4046
  });
4047
- }, I = re(() => {
4048
- let N = W.current.innerText;
4047
+ }, I = de(() => {
4048
+ let P = W.current.innerText;
4049
4049
  try {
4050
- const F = JSON.parse(N);
4050
+ const F = JSON.parse(P);
4051
4051
  s && s(r, F, e, a);
4052
4052
  } catch {
4053
- const Z = Mc(j, N);
4053
+ const Z = Mc(j, P);
4054
4054
  s && s(r, Z, e, a);
4055
4055
  }
4056
4056
  T(!1);
@@ -4072,10 +4072,10 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4072
4072
  type: "delete",
4073
4073
  parentPath: a
4074
4074
  });
4075
- }, D = re((N) => {
4076
- N.key === "Enter" ? (N.preventDefault(), I()) : N.key === "Escape" && M();
4077
- }, [I]), R = C || k, O = !R && Zn(l) && Xn(w) && s ? (N) => {
4078
- (N.ctrlKey || N.metaKey) && H();
4075
+ }, D = de((P) => {
4076
+ P.key === "Enter" ? (P.preventDefault(), I()) : P.key === "Escape" && M();
4077
+ }, [I]), R = C || k, O = !R && Zn(l) && Xn(w) && s ? (P) => {
4078
+ (P.ctrlKey || P.metaKey) && H();
4079
4079
  } : void 0, B = c.jsxs(c.Fragment, { children: [R && (typeof b == "function" ? c.jsx(b, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I }) : c.jsx(vn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: k ? _ : I })), R && (typeof S == "function" ? c.jsx(S, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M }) : c.jsx(yn, { className: "json-view--edit", style: { display: "inline-block" }, onClick: M })), !R && u && yt(w) && c.jsx(xt, { node: e, nodeMeta: { depth: t, indexOrName: r, parent: o, parentPath: a, currentPath: A } }), !R && v && j === "string" && g.test(e) && kc(w) && c.jsx("a", Object.assign({ href: e, target: "_blank", className: "json-view--link" }, { children: c.jsx(Hc, {}) })), !R && Zn(l) && Xn(w) && s && (typeof x == "function" ? c.jsx(x, { className: "json-view--edit", onClick: H }) : c.jsx(Wc, { className: "json-view--edit", onClick: H })), !R && mn(l) && pn(w) && n && c.jsx(gn, { className: "json-view--edit", onClick: () => L(!0) }), typeof E == "function" ? c.jsx(E, { node: e }) : null] });
4080
4080
  let y = "json-view--string";
4081
4081
  switch (j) {
@@ -4091,13 +4091,13 @@ function Ao({ node: e, depth: t, deleteHandle: n, indexOrName: r, parent: o, edi
4091
4091
  break;
4092
4092
  }
4093
4093
  typeof w?.className == "string" && (y += " " + w.className), k && (y += " json-view--deleting");
4094
- let P = String(e);
4095
- j === "bigint" && (P += "n");
4096
- const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${P}"` : P }, ref: W, onKeyDown: D }), [P, j, D]);
4097
- return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick: O }) : c.jsxs("span", Object.assign({ className: y, onClick: O }, { children: ['"', P, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: O }, { children: P })), B] });
4094
+ let N = String(e);
4095
+ j === "bigint" && (N += "n");
4096
+ const $ = z(() => c.jsx("span", { contentEditable: !0, className: y, dangerouslySetInnerHTML: { __html: j === "string" ? `"${N}"` : N }, ref: W, onKeyDown: D }), [N, j, D]);
4097
+ return j === "string" ? c.jsxs(c.Fragment, { children: [C ? $ : e.length > i ? c.jsx($c, { str: e, ref: W, className: y, ctrlClick: O }) : c.jsxs("span", Object.assign({ className: y, onClick: O }, { children: ['"', N, '"'] })), B] }) : c.jsxs(c.Fragment, { children: [C ? $ : c.jsx("span", Object.assign({ className: y, onClick: O }, { children: N })), B] });
4098
4098
  }
4099
4099
  }
4100
- const No = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, we = Bo({
4100
+ const Po = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^&*?.\s])?\.)+[a-z]{2,6}\/?/, be = Bo({
4101
4101
  src: void 0,
4102
4102
  collapseStringsAfterLength: 99,
4103
4103
  collapseStringMode: "directly",
@@ -4119,7 +4119,7 @@ const No = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
4119
4119
  displaySize: void 0,
4120
4120
  displayArrayIndex: !0,
4121
4121
  matchesURL: !1,
4122
- urlRegExp: No,
4122
+ urlRegExp: Po,
4123
4123
  ignoreLargeArray: !1,
4124
4124
  CopyComponent: void 0,
4125
4125
  CopiedComponent: void 0,
@@ -4128,9 +4128,9 @@ const No = /^(((ht|f)tps?):\/\/)?([^!@#$%^&*?.\s-]([^!@#$%^&*?.\s]{0,63}[^!@#$%^
4128
4128
  DoneComponent: void 0,
4129
4129
  CustomOperation: void 0
4130
4130
  });
4131
- function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => Oc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = No, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4132
- const [M, _] = G(0), D = re(() => _((B) => ++B), []), [R, O] = G(e);
4133
- return _e(() => O(e), [e]), c.jsx(we.Provider, Object.assign({ value: {
4131
+ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n = "directly", customizeCollapseStringUI: r, collapseObjectsAfterLength: o = 99, collapsed: s, onCollapse: a, enableClipboard: i = !0, editable: u = !1, onEdit: l, onDelete: f, onAdd: d, onChange: h, dark: p = !1, theme: v = "default", customizeNode: g, customizeCopy: x = (M) => Oc(M), displaySize: b, displayArrayIndex: S = !0, style: E, className: w, matchesURL: j = !1, urlRegExp: A = Po, ignoreLargeArray: C = !1, CopyComponent: T, CopiedComponent: k, EditComponent: L, CancelComponent: W, DoneComponent: H, CustomOperation: I }) {
4132
+ const [M, _] = G(0), D = de(() => _((B) => ++B), []), [R, O] = G(e);
4133
+ return _e(() => O(e), [e]), c.jsx(be.Provider, Object.assign({ value: {
4134
4134
  src: R,
4135
4135
  collapseStringsAfterLength: t,
4136
4136
  collapseStringMode: n,
@@ -4158,10 +4158,10 @@ function fr({ src: e, collapseStringsAfterLength: t = 99, collapseStringMode: n
4158
4158
  CancelComponent: W,
4159
4159
  DoneComponent: H,
4160
4160
  CustomOperation: I
4161
- } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: R, depth: 1, editHandle: (B, y, P, $) => {
4161
+ } }, { children: c.jsx("code", Object.assign({ className: "json-view" + (p ? " dark" : "") + (v && v !== "default" ? " json-view_" + v : "") + (w ? " " + w : ""), style: E }, { children: c.jsx(Ao, { node: R, depth: 1, editHandle: (B, y, N, $) => {
4162
4162
  O(y), l && l({
4163
4163
  newValue: y,
4164
- oldValue: P,
4164
+ oldValue: N,
4165
4165
  depth: 1,
4166
4166
  src: R,
4167
4167
  indexOrName: B,
@@ -4288,11 +4288,11 @@ const zc = { gridTemplateColumns: "max-content 1fr max-content" }, bt = V(
4288
4288
  }
4289
4289
  );
4290
4290
  bt.displayName = "FunctionCall";
4291
- const Po = V(({ event: e }) => {
4291
+ const No = V(({ event: e }) => {
4292
4292
  const t = z(() => [{ topic: e.topic, data: e.data }], [e]);
4293
4293
  return /* @__PURE__ */ c.jsx(bt, { functionName: "emit", args: t });
4294
4294
  });
4295
- Po.displayName = "TraceEmitEvent";
4295
+ No.displayName = "TraceEmitEvent";
4296
4296
  const Oo = V(({ event: e }) => /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-2", children: [
4297
4297
  /* @__PURE__ */ c.jsx(Uo, { level: e.level }),
4298
4298
  " ",
@@ -4325,7 +4325,7 @@ const ko = V(({ event: e }) => {
4325
4325
  if (e.type === "log")
4326
4326
  return /* @__PURE__ */ c.jsx(Oo, { event: e });
4327
4327
  if (e.type === "emit")
4328
- return /* @__PURE__ */ c.jsx(Po, { event: e });
4328
+ return /* @__PURE__ */ c.jsx(No, { event: e });
4329
4329
  if (e.type === "state")
4330
4330
  return /* @__PURE__ */ c.jsx(Ro, { event: e });
4331
4331
  if (e.type === "stream")
@@ -4334,10 +4334,10 @@ const ko = V(({ event: e }) => {
4334
4334
  ko.displayName = "TraceEvent";
4335
4335
  const Mo = V(({ event: e, traceStartTime: t }) => /* @__PURE__ */ c.jsxs(pr, { children: [
4336
4336
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx("div", { className: "w-1 h-1 rounded-full bg-emerald-500 outline outline-2 outline-emerald-500/50 -ml-[26px]" }) }),
4337
- /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(Ns, { event: e }) }),
4337
+ /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsx(Ps, { event: e }) }),
4338
4338
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-center", children: /* @__PURE__ */ c.jsxs("span", { className: "text-sm font-mono text-muted-foreground", children: [
4339
4339
  "+",
4340
- de(Math.floor(e.timestamp - t))
4340
+ we(Math.floor(e.timestamp - t))
4341
4341
  ] }) }),
4342
4342
  /* @__PURE__ */ c.jsx("div", { className: "grid place-items-start", children: /* @__PURE__ */ c.jsx(ko, { event: e }) })
4343
4343
  ] }));
@@ -4357,7 +4357,7 @@ const _o = V(({ trace: e, onClose: t }) => {
4357
4357
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center gap-4 text-sm text-muted-foreground mb-4", children: [
4358
4358
  e.endTime && /* @__PURE__ */ c.jsxs("span", { children: [
4359
4359
  "Duration: ",
4360
- de(e.endTime - e.startTime)
4360
+ we(e.endTime - e.startTime)
4361
4361
  ] }),
4362
4362
  /* @__PURE__ */ c.jsx("div", { className: "bg-blue-500 font-bold text-xs px-[4px] py-[2px] rounded-sm text-blue-100", children: e.entryPoint.type }),
4363
4363
  e.correlationId && /* @__PURE__ */ c.jsxs(hr, { variant: "outline", children: [
@@ -4385,38 +4385,27 @@ const Fo = V(({ groupId: e }) => {
4385
4385
  const t = z(
4386
4386
  () => ({ streamName: "motia-trace-group", groupId: "default", id: e }),
4387
4387
  [e]
4388
- ), { data: n } = Go(t), r = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: o } = gr(r), s = vs(n), [a, i] = G(1), u = K((p) => p.selectedTraceId), l = K((p) => p.selectTraceId), f = z(() => o?.find((p) => p.id === u), [o, u]), d = re(() => {
4389
- a > 0.5 && i((p) => p - 0.1);
4390
- }, []), h = re(() => {
4391
- i((p) => p + 0.1);
4392
- }, []);
4388
+ ), { data: n } = Go(t), r = z(() => ({ streamName: "motia-trace", groupId: e }), [e]), { data: o } = gr(r), s = vs(n), [a, i] = G(100), u = K((p) => p.selectedTraceId), l = K((p) => p.selectTraceId), f = z(() => o?.find((p) => p.id === u), [o, u]), d = () => a > 100 && i((p) => p - 10), h = () => a < 200 && i((p) => p + 10);
4393
4389
  return n ? /* @__PURE__ */ c.jsxs(c.Fragment, { children: [
4394
- /* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 overflow-x-auto h-full relative", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col items-center min-w-full sticky top-0", style: { width: `${a * 1e3}px` }, children: [
4395
- /* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 w-full sticky top-0 bg-background z-10", children: [
4396
- /* @__PURE__ */ c.jsxs("div", { className: "w-full min-h-[37px] h-[37px] min-w-[200px] max-w-[200px] flex items-center justify-center gap-2 sticky left-0 top-0 bg-card backdrop-blur-[4px] backdrop-filter", children: [
4397
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: d, children: /* @__PURE__ */ c.jsx(ps, { className: "w-4 h-4 cursor-pointer" }) }),
4398
- /* @__PURE__ */ c.jsxs("span", { className: "text-sm font-bold text-muted-foreground", children: [
4399
- Math.floor(a * 100),
4390
+ /* @__PURE__ */ c.jsx("div", { className: "flex flex-col flex-1 relative min-h-full min-w-[1000px]", children: /* @__PURE__ */ c.jsxs("div", { className: "flex flex-col", style: { width: `${a}%` }, children: [
4391
+ /* @__PURE__ */ c.jsxs("div", { className: "flex flex-1 bg-background", style: { width: `${a}%` }, children: [
4392
+ /* @__PURE__ */ c.jsxs("div", { className: "shrink-0 w-[200px] h-[37px] flex items-center justify-center gap-2 sticky left-0 top-0 z-10 bg-card backdrop-blur-xs backdrop-filter", children: [
4393
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: d, disabled: a <= 100, children: /* @__PURE__ */ c.jsx(ps, { className: "w-4 h-4 cursor-pointer" }) }),
4394
+ /* @__PURE__ */ c.jsxs("span", { className: "min-w-12 text-center select-none text-sm font-bold text-muted-foreground", children: [
4395
+ a,
4400
4396
  "%"
4401
4397
  ] }),
4402
- /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: h, children: /* @__PURE__ */ c.jsx(gs, { className: "w-4 h-4 cursor-pointer" }) })
4398
+ /* @__PURE__ */ c.jsx(ct, { variant: "icon", size: "sm", className: "px-2", onClick: h, disabled: a >= 200, children: /* @__PURE__ */ c.jsx(gs, { className: "w-4 h-4 cursor-pointer" }) })
4403
4399
  ] }),
4404
4400
  /* @__PURE__ */ c.jsxs("div", { className: "flex justify-between font-mono p-2 w-full text-xs text-muted-foreground bg-card", children: [
4405
- /* @__PURE__ */ c.jsx("span", { children: de(0) }),
4406
- /* @__PURE__ */ c.jsx("span", { children: de(Math.floor((s - n.startTime) * 0.25)) }),
4407
- /* @__PURE__ */ c.jsx("span", { children: de(Math.floor((s - n.startTime) * 0.5)) }),
4408
- /* @__PURE__ */ c.jsx("span", { children: de(Math.floor((s - n.startTime) * 0.75)) }),
4409
- /* @__PURE__ */ c.jsx("span", { children: de(Math.floor(s - n.startTime)) }),
4410
- /* @__PURE__ */ c.jsxs("div", { className: "absolute bottom-[-4px] w-full flex justify-between", children: [
4411
- /* @__PURE__ */ c.jsx("span", { className: "w-[1px] h-full bg-blue-500" }),
4412
- /* @__PURE__ */ c.jsx("span", { className: "w-[1px] h-full bg-blue-500" }),
4413
- /* @__PURE__ */ c.jsx("span", { className: "w-[1px] h-full bg-blue-500" }),
4414
- /* @__PURE__ */ c.jsx("span", { className: "w-[1px] h-full bg-blue-500" }),
4415
- /* @__PURE__ */ c.jsx("span", { className: "w-[1px] h-full bg-blue-500" })
4416
- ] })
4401
+ /* @__PURE__ */ c.jsx("span", { children: "0ms" }),
4402
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.25)) }),
4403
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.5)) }),
4404
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor((s - n.startTime) * 0.75)) }),
4405
+ /* @__PURE__ */ c.jsx("span", { children: we(Math.floor(s - n.startTime)) })
4417
4406
  ] })
4418
4407
  ] }),
4419
- /* @__PURE__ */ c.jsx("div", { className: "flex flex-col w-full h-full", children: o?.map((p) => /* @__PURE__ */ c.jsx(
4408
+ /* @__PURE__ */ c.jsx("div", { className: "flex flex-col h-full", style: { width: `${a}%` }, children: o?.map((p) => /* @__PURE__ */ c.jsx(
4420
4409
  jr,
4421
4410
  {
4422
4411
  traceId: p.id,
@@ -4845,9 +4834,9 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4845
4834
  narrow: /^[1234]/i,
4846
4835
  abbreviated: /^q[1234]/i,
4847
4836
  wide: /^[1234](th|st|nd|rd)? quarter/i
4848
- }, Nl = {
4849
- any: [/1/i, /2/i, /3/i, /4/i]
4850
4837
  }, Pl = {
4838
+ any: [/1/i, /2/i, /3/i, /4/i]
4839
+ }, Nl = {
4851
4840
  narrow: /^[jfmasond]/i,
4852
4841
  abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
4853
4842
  wide: /^(january|february|march|april|may|june|july|august|september|october|november|december)/i
@@ -4917,12 +4906,12 @@ const jl = /^(\d+)(th|st|nd|rd)?/i, Cl = /\d+/i, El = {
4917
4906
  quarter: ze({
4918
4907
  matchPatterns: Al,
4919
4908
  defaultMatchWidth: "wide",
4920
- parsePatterns: Nl,
4909
+ parsePatterns: Pl,
4921
4910
  defaultParseWidth: "any",
4922
4911
  valueCallback: (e) => e + 1
4923
4912
  }),
4924
4913
  month: ze({
4925
- matchPatterns: Pl,
4914
+ matchPatterns: Nl,
4926
4915
  defaultMatchWidth: "wide",
4927
4916
  parsePatterns: Ol,
4928
4917
  defaultParseWidth: "any"
@@ -5002,9 +4991,9 @@ Lo.displayName = "TraceStatusBadge";
5002
4991
  const Io = V(
5003
4992
  ({ groupId: e, groupName: t, groupStatus: n, groupStartTime: r, groupEndTime: o, totalSteps: s, activeSteps: a, isSelected: i }) => {
5004
4993
  const u = K((d) => d.selectTraceGroupId), l = z(
5005
- () => o ? de(o - r) : void 0,
4994
+ () => o ? we(o - r) : void 0,
5006
4995
  [o, r]
5007
- ), f = re(() => {
4996
+ ), f = de(() => {
5008
4997
  u(e);
5009
4998
  }, [e, u]);
5010
4999
  return /* @__PURE__ */ c.jsx(
@@ -5019,7 +5008,7 @@ const Io = V(
5019
5008
  onClick: f,
5020
5009
  children: /* @__PURE__ */ c.jsxs("div", { className: "p-3 flex flex-col gap-1", children: [
5021
5010
  /* @__PURE__ */ c.jsxs("div", { className: "flex flex-row justify-between items-center gap-2", children: [
5022
- /* @__PURE__ */ c.jsx("span", { className: "font-semibold text-lg", children: t }),
5011
+ /* @__PURE__ */ c.jsx("span", { className: "font-semibold text-lg truncate flex-1 min-w-0", children: t }),
5023
5012
  /* @__PURE__ */ c.jsx(Lo, { status: n, duration: l })
5024
5013
  ] }),
5025
5014
  /* @__PURE__ */ c.jsxs("div", { className: "text-xs text-muted-foreground space-y-1", children: [