@versini/sassysaint 5.4.8 → 5.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { jsx as o, jsxs as y, Fragment as S } from "react/jsx-runtime";
2
- import { g as B, R as P, CARDS as T, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as $t, durationFormatter as Qe, NA as Vt, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as L, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as $e, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Ne, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, i as Ve, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.BNHOCJ2P.js";
3
- import { serviceCall as D, SERVICE_TYPES as $, E as le, ce as ar, se as nr, he as we, be as sr, oe as V, ge as ir, ne as lr, f as U, Le as He, h as Ge } from "./index.B4Bqf6o5.js";
1
+ import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
+ import { g as B, R as P, CARDS as T, renderDataAsList as oe, pluralize as he, AppContext as se, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as $t, durationFormatter as Qe, NA as Vt, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as W, STATS as Xe, L as q, j as L, C as F, HistoryContext as Je, LOCAL_STORAGE_PREFIX as ie, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as et, ACTION_RESTORE as jt, ACTION_SORT as $e, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as tt, ENGINE_OPENAI as Ne, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as rt, getCurrentGeoLocation as Qt, TagsContext as Xt, TAGS_DESCRIPTION as Jt, ACTION_SET_TAGS as er, LOCAL_STORAGE_CHAT_DETAILS as tr, M as rr, i as Ve, PROFILE_TITLE as or, LOG_OUT as Fe } from "./index.CzNemj1t.js";
3
+ import { serviceCall as D, SERVICE_TYPES as $, E as le, ce as ar, se as nr, he as we, be as sr, oe as V, ge as ir, ne as lr, f as U, Le as He, h as Ge } from "./index.CPH8aJ8U.js";
4
4
  import * as f from "react";
5
5
  import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as O, useEffect as H } from "react";
6
6
  import k from "clsx";
@@ -279,9 +279,9 @@ const Ee = f.createContext({
279
279
  focusMode: s = "system",
280
280
  ...l
281
281
  }, g) => {
282
- const [d, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), c = Z([]), v = Z([]), N = O(Ee), C = at(), w = cr(), _ = nt(), { floatingStyles: A, refs: M, context: R } = st({
282
+ const [c, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), N = O(Ee), C = at(), w = cr(), S = nt(), { floatingStyles: A, refs: M, context: R } = st({
283
283
  nodeId: w,
284
- open: d,
284
+ open: c,
285
285
  onOpenChange: (J) => {
286
286
  u(J), n == null || n(J);
287
287
  },
@@ -294,14 +294,14 @@ const Ee = f.createContext({
294
294
  toggle: !0,
295
295
  ignoreMouse: !1
296
296
  }), ce = lt(R, { role: "menu" }), de = ct(R, { bubbles: !0 }), X = gr(R, {
297
- listRef: c,
297
+ listRef: d,
298
298
  activeIndex: h,
299
299
  nested: !1,
300
300
  onNavigate: m,
301
301
  loop: !0
302
302
  }), ye = fr(R, {
303
303
  listRef: v,
304
- onMatch: d ? m : void 0,
304
+ onMatch: c ? m : void 0,
305
305
  activeIndex: h
306
306
  }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: z } = dt([x, ce, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
307
307
  noInternalClick: De,
@@ -312,9 +312,9 @@ const Ee = f.createContext({
312
312
  {
313
313
  ...Bt,
314
314
  "aria-label": r,
315
- "data-open": d ? "" : void 0,
315
+ "data-open": c ? "" : void 0,
316
316
  "data-focus-inside": p ? "" : void 0,
317
- ref: Me([M.setReference, _.ref, g]),
317
+ ref: Me([M.setReference, S.ref, g]),
318
318
  ...ke(
319
319
  N.getItemProps({
320
320
  ...l
@@ -332,8 +332,8 @@ const Ee = f.createContext({
332
332
  C.events.off("click", J);
333
333
  };
334
334
  }, [C, n]), H(() => {
335
- d && C && C.events.emit("menuopen", { nodeId: w });
336
- }, [C, d, w]), /* @__PURE__ */ y(pr, { id: w, children: [
335
+ c && C && C.events.emit("menuopen", { nodeId: w });
336
+ }, [C, c, w]), /* @__PURE__ */ y(pr, { id: w, children: [
337
337
  zt,
338
338
  /* @__PURE__ */ o(
339
339
  Ee.Provider,
@@ -343,9 +343,9 @@ const Ee = f.createContext({
343
343
  setActiveIndex: m,
344
344
  getItemProps: z,
345
345
  setHasFocusInside: b,
346
- isOpen: d
346
+ isOpen: c
347
347
  },
348
- children: /* @__PURE__ */ o(br, { elementsRef: c, labelsRef: v, children: d && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
348
+ children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children: c && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
349
349
  mt,
350
350
  {
351
351
  context: R,
@@ -382,12 +382,12 @@ const G = f.forwardRef(
382
382
  ...s
383
383
  }, l) => {
384
384
  let g = "";
385
- const d = f.useContext(Ee), u = nt({ label: t ? null : e }), p = at(), b = Me([u.ref, l]);
385
+ const c = f.useContext(Ee), u = nt({ label: t ? null : e }), p = at(), b = Me([u.ref, l]);
386
386
  return a && n ? /* @__PURE__ */ o(
387
387
  "div",
388
388
  {
389
389
  role: "menuitem",
390
- ...d.getItemProps({
390
+ ...c.getItemProps({
391
391
  onClick(h) {
392
392
  var m;
393
393
  i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
@@ -404,14 +404,14 @@ const G = f.forwardRef(
404
404
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-2 py-2 text-left text-base outline-none focus:border focus:border-border-medium focus:bg-surface-lighter focus:underline disabled:cursor-not-allowed disabled:text-copy-medium sm:py-1",
405
405
  tabIndex: 0,
406
406
  disabled: t,
407
- ...d.getItemProps({
407
+ ...c.getItemProps({
408
408
  onClick(h) {
409
409
  var m;
410
410
  i || ((m = s.onClick) == null || m.call(s, h), p == null || p.events.emit("click"));
411
411
  },
412
412
  onFocus(h) {
413
413
  var m;
414
- (m = s.onFocus) == null || m.call(s, h), d.setHasFocusInside(!0);
414
+ (m = s.onFocus) == null || m.call(s, h), c.setHasFocusInside(!0);
415
415
  }
416
416
  }),
417
417
  children: [
@@ -423,7 +423,7 @@ const G = f.forwardRef(
423
423
  }
424
424
  );
425
425
  G.displayName = "MenuItem";
426
- const _r = ({ className: e, ...t }) => {
426
+ const Sr = ({ className: e, ...t }) => {
427
427
  const r = k(e, "my-1 border-t border-border-medium");
428
428
  return /* @__PURE__ */ o("div", { className: r, ...t });
429
429
  };
@@ -453,26 +453,26 @@ try {
453
453
  });
454
454
  } catch {
455
455
  }
456
- const Sr = "av-togglegroup", Rr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
456
+ const _r = "av-togglegroup", Rr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
457
457
  function Le(e, t = []) {
458
458
  let r = [];
459
459
  function a(i, s) {
460
460
  const l = f.createContext(s), g = r.length;
461
461
  r = [...r, s];
462
- const d = (p) => {
462
+ const c = (p) => {
463
463
  var b;
464
- const { scope: h, children: m, ...c } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || l, N = f.useMemo(() => c, Object.values(c));
464
+ const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || l, N = f.useMemo(() => d, Object.values(d));
465
465
  return /* @__PURE__ */ o(v.Provider, { value: N, children: m });
466
466
  };
467
- d.displayName = i + "Provider";
467
+ c.displayName = i + "Provider";
468
468
  function u(p, b) {
469
469
  var h;
470
- const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) || l, c = f.useContext(m);
471
- if (c) return c;
470
+ const m = ((h = b == null ? void 0 : b[e]) == null ? void 0 : h[g]) || l, d = f.useContext(m);
471
+ if (d) return d;
472
472
  if (s !== void 0) return s;
473
473
  throw new Error(`\`${p}\` must be used within \`${i}\``);
474
474
  }
475
- return [d, u];
475
+ return [c, u];
476
476
  }
477
477
  const n = () => {
478
478
  const i = r.map((s) => f.createContext(s));
@@ -496,8 +496,8 @@ function Mr(...e) {
496
496
  }));
497
497
  return function(n) {
498
498
  const i = a.reduce((s, { useScope: l, scopeName: g }) => {
499
- const d = l(n)[`__scope${g}`];
500
- return { ...s, ...d };
499
+ const c = l(n)[`__scope${g}`];
500
+ return { ...s, ...c };
501
501
  }, {});
502
502
  return f.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
503
503
  };
@@ -525,19 +525,19 @@ function pt(...e) {
525
525
  };
526
526
  };
527
527
  }
528
- function _e(...e) {
528
+ function Se(...e) {
529
529
  return f.useCallback(pt(...e), e);
530
530
  }
531
531
  var ge = f.forwardRef((e, t) => {
532
532
  const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Pr);
533
533
  if (i) {
534
534
  const s = i.props.children, l = n.map((g) => g === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : g);
535
- return /* @__PURE__ */ o(Se, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, l) : null });
535
+ return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, l) : null });
536
536
  }
537
- return /* @__PURE__ */ o(Se, { ...a, ref: t, children: r });
537
+ return /* @__PURE__ */ o(_e, { ...a, ref: t, children: r });
538
538
  });
539
539
  ge.displayName = "Slot";
540
- var Se = f.forwardRef((e, t) => {
540
+ var _e = f.forwardRef((e, t) => {
541
541
  const { children: r, ...a } = e;
542
542
  if (f.isValidElement(r)) {
543
543
  const n = Br(r);
@@ -549,8 +549,8 @@ var Se = f.forwardRef((e, t) => {
549
549
  }
550
550
  return f.Children.count(r) > 1 ? f.Children.only(null) : null;
551
551
  });
552
- Se.displayName = "SlotClone";
553
- var Lr = ({ children: e }) => /* @__PURE__ */ o(S, { children: e });
552
+ _e.displayName = "SlotClone";
553
+ var Lr = ({ children: e }) => /* @__PURE__ */ o(_, { children: e });
554
554
  function Pr(e) {
555
555
  return f.isValidElement(e) && e.type === Lr;
556
556
  }
@@ -604,30 +604,30 @@ function Dr(e) {
604
604
  t,
605
605
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
606
606
  ), s = (h) => {
607
- const { scope: m, children: c } = h, v = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
608
- return /* @__PURE__ */ o(n, { scope: m, itemMap: N, collectionRef: v, children: c });
607
+ const { scope: m, children: d } = h, v = E.useRef(null), N = E.useRef(/* @__PURE__ */ new Map()).current;
608
+ return /* @__PURE__ */ o(n, { scope: m, itemMap: N, collectionRef: v, children: d });
609
609
  };
610
610
  s.displayName = t;
611
611
  const l = e + "CollectionSlot", g = E.forwardRef(
612
612
  (h, m) => {
613
- const { scope: c, children: v } = h, N = i(l, c), C = _e(m, N.collectionRef);
613
+ const { scope: d, children: v } = h, N = i(l, d), C = Se(m, N.collectionRef);
614
614
  return /* @__PURE__ */ o(ge, { ref: C, children: v });
615
615
  }
616
616
  );
617
617
  g.displayName = l;
618
- const d = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
618
+ const c = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
619
619
  (h, m) => {
620
- const { scope: c, children: v, ...N } = h, C = E.useRef(null), w = _e(m, C), _ = i(d, c);
621
- return E.useEffect(() => (_.itemMap.set(C, { ref: C, ...N }), () => void _.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: w, children: v });
620
+ const { scope: d, children: v, ...N } = h, C = E.useRef(null), w = Se(m, C), S = i(c, d);
621
+ return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...N }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: w, children: v });
622
622
  }
623
623
  );
624
- p.displayName = d;
624
+ p.displayName = c;
625
625
  function b(h) {
626
626
  const m = i(e + "CollectionConsumer", h);
627
627
  return E.useCallback(() => {
628
- const c = m.collectionRef.current;
629
- if (!c) return [];
630
- const v = Array.from(c.querySelectorAll(`[${u}]`));
628
+ const d = m.collectionRef.current;
629
+ if (!d) return [];
630
+ const v = Array.from(d.querySelectorAll(`[${u}]`));
631
631
  return Array.from(m.itemMap.values()).sort(
632
632
  (N, C) => v.indexOf(N.ref.current) - v.indexOf(C.ref.current)
633
633
  );
@@ -664,12 +664,12 @@ function pe({
664
664
  }
665
665
  }) {
666
666
  const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, l = Pe(r), g = f.useCallback(
667
- (d) => {
667
+ (c) => {
668
668
  if (i) {
669
- const u = typeof d == "function" ? d(e) : d;
669
+ const u = typeof c == "function" ? c(e) : c;
670
670
  u !== e && l(u);
671
671
  } else
672
- n(d);
672
+ n(c);
673
673
  },
674
674
  [i, e, n, l]
675
675
  );
@@ -705,14 +705,14 @@ var Zr = f.forwardRef((e, t) => {
705
705
  currentTabStopId: s,
706
706
  defaultCurrentTabStopId: l,
707
707
  onCurrentTabStopIdChange: g,
708
- onEntryFocus: d,
708
+ onEntryFocus: c,
709
709
  preventScrollOnEntryFocus: u = !1,
710
710
  ...p
711
- } = e, b = f.useRef(null), h = _e(t, b), m = bt(i), [c = null, v] = pe({
711
+ } = e, b = f.useRef(null), h = Se(t, b), m = bt(i), [d = null, v] = pe({
712
712
  prop: s,
713
713
  defaultProp: l,
714
714
  onChange: g
715
- }), [N, C] = f.useState(!1), w = Pe(d), _ = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
715
+ }), [N, C] = f.useState(!1), w = Pe(c), S = vt(r), A = f.useRef(!1), [M, R] = f.useState(0);
716
716
  return f.useEffect(() => {
717
717
  const x = b.current;
718
718
  if (x)
@@ -724,7 +724,7 @@ var Zr = f.forwardRef((e, t) => {
724
724
  orientation: a,
725
725
  dir: m,
726
726
  loop: n,
727
- currentTabStopId: c,
727
+ currentTabStopId: d,
728
728
  onItemFocus: f.useCallback(
729
729
  (x) => v(x),
730
730
  [v]
@@ -754,7 +754,7 @@ var Zr = f.forwardRef((e, t) => {
754
754
  if (x.target === x.currentTarget && ce && !N) {
755
755
  const de = new CustomEvent(Te, jr);
756
756
  if (x.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
757
- const X = _().filter((z) => z.focusable), ye = X.find((z) => z.active), ke = X.find((z) => z.id === c), Ce = [ye, ke, ...X].filter(
757
+ const X = S().filter((z) => z.focusable), ye = X.find((z) => z.active), ke = X.find((z) => z.id === d), Ce = [ye, ke, ...X].filter(
758
758
  Boolean
759
759
  ).map((z) => z.ref.current);
760
760
  wt(Ce, u);
@@ -775,7 +775,7 @@ var Zr = f.forwardRef((e, t) => {
775
775
  active: n = !1,
776
776
  tabStopId: i,
777
777
  ...s
778
- } = e, l = Hr(), g = i || l, d = qr(Ct, r), u = d.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = d;
778
+ } = e, l = Hr(), g = i || l, c = qr(Ct, r), u = c.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = c;
779
779
  return f.useEffect(() => {
780
780
  if (a)
781
781
  return b(), () => h();
@@ -790,29 +790,29 @@ var Zr = f.forwardRef((e, t) => {
790
790
  ne.span,
791
791
  {
792
792
  tabIndex: u ? 0 : -1,
793
- "data-orientation": d.orientation,
793
+ "data-orientation": c.orientation,
794
794
  ...s,
795
795
  ref: t,
796
796
  onMouseDown: K(e.onMouseDown, (m) => {
797
- a ? d.onItemFocus(g) : m.preventDefault();
797
+ a ? c.onItemFocus(g) : m.preventDefault();
798
798
  }),
799
- onFocus: K(e.onFocus, () => d.onItemFocus(g)),
799
+ onFocus: K(e.onFocus, () => c.onItemFocus(g)),
800
800
  onKeyDown: K(e.onKeyDown, (m) => {
801
801
  if (m.key === "Tab" && m.shiftKey) {
802
- d.onItemShiftTab();
802
+ c.onItemShiftTab();
803
803
  return;
804
804
  }
805
805
  if (m.target !== m.currentTarget) return;
806
- const c = Jr(m, d.orientation, d.dir);
807
- if (c !== void 0) {
806
+ const d = Jr(m, c.orientation, c.dir);
807
+ if (d !== void 0) {
808
808
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
809
809
  m.preventDefault();
810
810
  let v = p().filter((N) => N.focusable).map((N) => N.ref.current);
811
- if (c === "last") v.reverse();
812
- else if (c === "prev" || c === "next") {
813
- c === "prev" && v.reverse();
811
+ if (d === "last") v.reverse();
812
+ else if (d === "prev" || d === "next") {
813
+ d === "prev" && v.reverse();
814
814
  const N = v.indexOf(m.currentTarget);
815
- v = d.loop ? eo(v, N + 1) : v.slice(N + 1);
815
+ v = c.loop ? eo(v, N + 1) : v.slice(N + 1);
816
816
  }
817
817
  setTimeout(() => wt(v));
818
818
  }
@@ -883,7 +883,7 @@ var Q = "ToggleGroup", [xt, ha] = Le(Q, [
883
883
  throw new Error(`Missing prop \`type\` expected on \`${Q}\``);
884
884
  });
885
885
  Oe.displayName = Q;
886
- var [It, _t] = xt(Q), ao = E.forwardRef((e, t) => {
886
+ var [It, St] = xt(Q), ao = E.forwardRef((e, t) => {
887
887
  const {
888
888
  value: r,
889
889
  defaultValue: a,
@@ -903,7 +903,7 @@ var [It, _t] = xt(Q), ao = E.forwardRef((e, t) => {
903
903
  value: s ? [s] : [],
904
904
  onItemActivate: l,
905
905
  onItemDeactivate: E.useCallback(() => l(""), [l]),
906
- children: /* @__PURE__ */ o(St, { ...i, ref: t })
906
+ children: /* @__PURE__ */ o(_t, { ...i, ref: t })
907
907
  }
908
908
  );
909
909
  }), no = E.forwardRef((e, t) => {
@@ -920,7 +920,7 @@ var [It, _t] = xt(Q), ao = E.forwardRef((e, t) => {
920
920
  }), g = E.useCallback(
921
921
  (u) => l((p = []) => [...p, u]),
922
922
  [l]
923
- ), d = E.useCallback(
923
+ ), c = E.useCallback(
924
924
  (u) => l((p = []) => p.filter((b) => b !== u)),
925
925
  [l]
926
926
  );
@@ -931,13 +931,13 @@ var [It, _t] = xt(Q), ao = E.forwardRef((e, t) => {
931
931
  type: "multiple",
932
932
  value: s,
933
933
  onItemActivate: g,
934
- onItemDeactivate: d,
935
- children: /* @__PURE__ */ o(St, { ...i, ref: t })
934
+ onItemDeactivate: c,
935
+ children: /* @__PURE__ */ o(_t, { ...i, ref: t })
936
936
  }
937
937
  );
938
938
  });
939
939
  Oe.displayName = Q;
940
- var [so, io] = xt(Q), St = E.forwardRef(
940
+ var [so, io] = xt(Q), _t = E.forwardRef(
941
941
  (e, t) => {
942
942
  const {
943
943
  __scopeToggleGroup: r,
@@ -947,12 +947,12 @@ var [so, io] = xt(Q), St = E.forwardRef(
947
947
  dir: s,
948
948
  loop: l = !0,
949
949
  ...g
950
- } = e, d = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
950
+ } = e, c = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
951
951
  return /* @__PURE__ */ o(so, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
952
952
  to,
953
953
  {
954
954
  asChild: !0,
955
- ...d,
955
+ ...c,
956
956
  orientation: i,
957
957
  dir: u,
958
958
  loop: l,
@@ -962,7 +962,7 @@ var [so, io] = xt(Q), St = E.forwardRef(
962
962
  }
963
963
  ), fe = "ToggleGroupItem", Rt = E.forwardRef(
964
964
  (e, t) => {
965
- const r = _t(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, l = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
965
+ const r = St(fe, e.__scopeToggleGroup), a = io(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, l = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
966
966
  return a.rovingFocus ? /* @__PURE__ */ o(
967
967
  ro,
968
968
  {
@@ -979,7 +979,7 @@ var [so, io] = xt(Q), St = E.forwardRef(
979
979
  Rt.displayName = fe;
980
980
  var Ke = E.forwardRef(
981
981
  (e, t) => {
982
- const { __scopeToggleGroup: r, value: a, ...n } = e, i = _t(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = i.type === "single" ? s : void 0;
982
+ const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, l = i.type === "single" ? s : void 0;
983
983
  return /* @__PURE__ */ o(
984
984
  Tt,
985
985
  {
@@ -1044,7 +1044,7 @@ const At = E.createContext({
1044
1044
  mode: e,
1045
1045
  className: t
1046
1046
  }) => k(
1047
- Sr,
1047
+ _r,
1048
1048
  "inline-flex p-1",
1049
1049
  "rounded-sm",
1050
1050
  {
@@ -1064,7 +1064,7 @@ const At = E.createContext({
1064
1064
  size: s = "medium",
1065
1065
  defaultValue: l,
1066
1066
  className: g,
1067
- ...d
1067
+ ...c
1068
1068
  }) => {
1069
1069
  const u = po({ mode: n, className: g }), p = { size: s, focusMode: i, mode: n };
1070
1070
  return /* @__PURE__ */ o(At.Provider, { value: p, children: /* @__PURE__ */ o(
@@ -1075,7 +1075,7 @@ const At = E.createContext({
1075
1075
  value: t,
1076
1076
  defaultValue: l,
1077
1077
  onValueChange: r,
1078
- ...d,
1078
+ ...c,
1079
1079
  type: "single",
1080
1080
  children: e
1081
1081
  }
@@ -1322,13 +1322,13 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1322
1322
  fullWidth: s,
1323
1323
  size: l,
1324
1324
  noBorder: g,
1325
- labelRight: d,
1325
+ labelRight: c,
1326
1326
  labelLeft: u,
1327
1327
  noBackground: p,
1328
1328
  variant: b,
1329
1329
  noTruncate: h,
1330
1330
  align: m,
1331
- radius: c
1331
+ radius: d
1332
1332
  }) => (b || (b = "primary"), r ? k(qe, t) : k(
1333
1333
  qe,
1334
1334
  No({
@@ -1336,9 +1336,9 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1336
1336
  variant: b,
1337
1337
  noBackground: p,
1338
1338
  noTruncate: h,
1339
- radius: c
1339
+ radius: d
1340
1340
  }),
1341
- Co({ type: e, size: l, labelRight: d, labelLeft: u, align: m }),
1341
+ Co({ type: e, size: l, labelRight: c, labelLeft: u, align: m }),
1342
1342
  xo({ mode: a, variant: b, noBorder: g }),
1343
1343
  Eo({ focusMode: n }),
1344
1344
  wo({ mode: a, variant: b, disabled: i }),
@@ -1376,13 +1376,13 @@ const Lt = E.forwardRef(
1376
1376
  type: s = "button",
1377
1377
  raw: l = !1,
1378
1378
  noBorder: g = !1,
1379
- "aria-label": d,
1379
+ "aria-label": c,
1380
1380
  label: u,
1381
1381
  size: p = "medium",
1382
1382
  labelRight: b,
1383
1383
  labelLeft: h,
1384
1384
  noBackground: m = !1,
1385
- align: c = "center",
1385
+ align: d = "center",
1386
1386
  radius: v = "large",
1387
1387
  ...N
1388
1388
  }, C) => {
@@ -1399,9 +1399,9 @@ const Lt = E.forwardRef(
1399
1399
  labelRight: b,
1400
1400
  labelLeft: h,
1401
1401
  noBackground: m,
1402
- align: c,
1402
+ align: d,
1403
1403
  radius: v
1404
- }), _ = k({
1404
+ }), S = k({
1405
1405
  "text-copy-accent-dark": r === "light" && !l,
1406
1406
  "text-copy-light": r === "dark" && !l,
1407
1407
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !l,
@@ -1414,11 +1414,11 @@ const Lt = E.forwardRef(
1414
1414
  className: w,
1415
1415
  disabled: t,
1416
1416
  type: s,
1417
- "aria-label": d || u,
1417
+ "aria-label": c || u,
1418
1418
  ...N,
1419
1419
  children: [
1420
1420
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
1421
- /* @__PURE__ */ o("div", { className: _, children: e }),
1421
+ /* @__PURE__ */ o("div", { className: S, children: e }),
1422
1422
  b && /* @__PURE__ */ o("span", { className: "pl-2", children: b })
1423
1423
  ]
1424
1424
  }
@@ -1439,7 +1439,7 @@ try {
1439
1439
  });
1440
1440
  } catch {
1441
1441
  }
1442
- const _o = E.forwardRef(
1442
+ const So = E.forwardRef(
1443
1443
  ({
1444
1444
  children: e,
1445
1445
  disabled: t = !1,
@@ -1450,18 +1450,18 @@ const _o = E.forwardRef(
1450
1450
  type: s = "button",
1451
1451
  raw: l = !1,
1452
1452
  noBorder: g = !1,
1453
- "aria-label": d,
1453
+ "aria-label": c,
1454
1454
  label: u,
1455
1455
  size: p = "medium",
1456
1456
  labelRight: b,
1457
1457
  labelLeft: h,
1458
1458
  noBackground: m = !1,
1459
- align: c = "center",
1459
+ align: d = "center",
1460
1460
  active: v = !1,
1461
1461
  radius: N = "large",
1462
1462
  ...C
1463
1463
  }, w) => {
1464
- const _ = Mt({
1464
+ const S = Mt({
1465
1465
  type: Be,
1466
1466
  mode: r,
1467
1467
  focusMode: a,
@@ -1474,7 +1474,7 @@ const _o = E.forwardRef(
1474
1474
  labelRight: b,
1475
1475
  labelLeft: h,
1476
1476
  noBackground: m,
1477
- align: c,
1477
+ align: d,
1478
1478
  radius: N
1479
1479
  }), A = k({
1480
1480
  "text-copy-accent-dark": r === "light" && !l,
@@ -1502,10 +1502,10 @@ const _o = E.forwardRef(
1502
1502
  ze,
1503
1503
  {
1504
1504
  ref: w,
1505
- className: _,
1505
+ className: S,
1506
1506
  disabled: t,
1507
1507
  type: s,
1508
- "aria-label": d || u,
1508
+ "aria-label": c || u,
1509
1509
  ...C,
1510
1510
  children: [
1511
1511
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
@@ -1516,8 +1516,8 @@ const _o = E.forwardRef(
1516
1516
  ) });
1517
1517
  }
1518
1518
  );
1519
- _o.displayName = "ButtonSort";
1520
- const So = ({
1519
+ So.displayName = "ButtonSort";
1520
+ const _o = ({
1521
1521
  children: e,
1522
1522
  fill: t,
1523
1523
  viewBox: r,
@@ -1528,13 +1528,13 @@ const So = ({
1528
1528
  semantic: l = !1,
1529
1529
  ...g
1530
1530
  }) => {
1531
- const d = k(a || i);
1532
- return /* @__PURE__ */ y(S, { children: [
1531
+ const c = k(a || i);
1532
+ return /* @__PURE__ */ y(_, { children: [
1533
1533
  /* @__PURE__ */ o(
1534
1534
  "svg",
1535
1535
  {
1536
1536
  xmlns: "http://www.w3.org/2000/svg",
1537
- className: d,
1537
+ className: c,
1538
1538
  viewBox: r || n,
1539
1539
  fill: t || "currentColor",
1540
1540
  role: "img",
@@ -1567,7 +1567,7 @@ const Ro = ({
1567
1567
  monotone: a,
1568
1568
  ...n
1569
1569
  }) => /* @__PURE__ */ o(
1570
- So,
1570
+ _o,
1571
1571
  {
1572
1572
  defaultViewBox: "0 0 384 512",
1573
1573
  defaultClassName: "size-5",
@@ -1597,18 +1597,18 @@ function Ao({
1597
1597
  open: t,
1598
1598
  onOpenChange: r
1599
1599
  } = {}) {
1600
- const [a, n] = f.useState(e), [i, s] = f.useState(), [l, g] = f.useState(), d = t ?? a, u = r ?? n, p = st({
1601
- open: d,
1600
+ const [a, n] = f.useState(e), [i, s] = f.useState(), [l, g] = f.useState(), c = t ?? a, u = r ?? n, p = st({
1601
+ open: c,
1602
1602
  onOpenChange: u
1603
1603
  }), b = p.context, h = it(b, {
1604
1604
  enabled: t == null
1605
1605
  }), m = ct(b, {
1606
1606
  outsidePress: !1,
1607
1607
  outsidePressEvent: "mousedown"
1608
- }), c = lt(b), v = dt([h, m, c]);
1608
+ }), d = lt(b), v = dt([h, m, d]);
1609
1609
  return f.useMemo(
1610
1610
  () => ({
1611
- open: d,
1611
+ open: c,
1612
1612
  setOpen: u,
1613
1613
  ...v,
1614
1614
  ...p,
@@ -1617,7 +1617,7 @@ function Ao({
1617
1617
  setLabelId: s,
1618
1618
  setDescriptionId: g
1619
1619
  }),
1620
- [d, u, v, p, i, l]
1620
+ [c, u, v, p, i, l]
1621
1621
  );
1622
1622
  }
1623
1623
  const ve = () => {
@@ -1708,15 +1708,15 @@ const ee = "panel", ue = "messagebox", zo = ({
1708
1708
  kind: s = ee,
1709
1709
  className: l
1710
1710
  }) => {
1711
- const g = Z(""), d = zo({ className: l, kind: s, borderMode: i });
1711
+ const g = Z(""), c = zo({ className: l, kind: s, borderMode: i });
1712
1712
  return H(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
1713
1713
  e && (document.title = g.current);
1714
- }), [r, e]), /* @__PURE__ */ o(S, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Lo, { className: d.main, children: [
1714
+ }), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Lo, { className: c.main, children: [
1715
1715
  /* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1716
1716
  /* @__PURE__ */ o(
1717
1717
  Bo,
1718
1718
  {
1719
- className: d.close,
1719
+ className: c.close,
1720
1720
  trigger: /* @__PURE__ */ o(
1721
1721
  Lt,
1722
1722
  {
@@ -1729,22 +1729,22 @@ const ee = "panel", ue = "messagebox", zo = ({
1729
1729
  )
1730
1730
  }
1731
1731
  ),
1732
- /* @__PURE__ */ o(Po, { className: d.header, children: r })
1732
+ /* @__PURE__ */ o(Po, { className: c.header, children: r })
1733
1733
  ] }),
1734
- /* @__PURE__ */ o(Oo, { className: d.content, children: a }),
1735
- n && /* @__PURE__ */ o("div", { className: d.footer, children: n })
1734
+ /* @__PURE__ */ o(Oo, { className: c.content, children: a }),
1735
+ n && /* @__PURE__ */ o("div", { className: c.footer, children: n })
1736
1736
  ] }) }) });
1737
1737
  }, Do = ({ stats: e }) => {
1738
1738
  const t = (e == null ? void 0 : e.plugins) || [], r = (e == null ? void 0 : e.version) || "", a = (e == null ? void 0 : e.models) || [], n = ae(), i = ae();
1739
- return /* @__PURE__ */ y(S, { children: [
1739
+ return /* @__PURE__ */ y(_, { children: [
1740
1740
  /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1741
1741
  P,
1742
1742
  {
1743
1743
  header: T.ABOUT.TITLE_CLIENT,
1744
1744
  className: "prose-dark dark:prose-lighter",
1745
1745
  children: oe(n, {
1746
- [T.ABOUT.VERSION]: "5.10.1",
1747
- [T.ABOUT.BUILD_TIMESTAMP]: "12/29/2024 07:12 PM EST"
1746
+ [T.ABOUT.VERSION]: "5.10.2",
1747
+ [T.ABOUT.BUILD_TIMESTAMP]: "12/29/2024 07:54 PM EST"
1748
1748
  })
1749
1749
  }
1750
1750
  ) }),
@@ -1755,8 +1755,8 @@ const ee = "panel", ue = "messagebox", zo = ({
1755
1755
  className: "prose-dark dark:prose-lighter",
1756
1756
  children: oe(i, {
1757
1757
  [T.ABOUT.VERSION]: r,
1758
- [he(T.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(S, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1759
- [he(T.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(S, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1758
+ [he(T.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1759
+ [he(T.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1760
1760
  })
1761
1761
  }
1762
1762
  )
@@ -1785,7 +1785,7 @@ const ee = "panel", ue = "messagebox", zo = ({
1785
1785
  stats: t
1786
1786
  }) => {
1787
1787
  const { state: r } = O(se), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1788
- return e ? /* @__PURE__ */ y(S, { children: [
1788
+ return e ? /* @__PURE__ */ y(_, { children: [
1789
1789
  r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1790
1790
  P,
1791
1791
  {
@@ -1910,16 +1910,16 @@ const ee = "panel", ue = "messagebox", zo = ({
1910
1910
  id: 0,
1911
1911
  timestamp: "",
1912
1912
  message: ""
1913
- }), [l, g] = I(!1), { state: d, dispatch: u } = O(Je), [, p] = le({
1913
+ }), [l, g] = I(!1), { state: c, dispatch: u } = O(Je), [, p] = le({
1914
1914
  key: ie + Ut,
1915
- initialValue: d.sortDirection
1916
- }), b = (c) => {
1917
- switch (d.sortDirection) {
1915
+ initialValue: c.sortDirection
1916
+ }), b = (d) => {
1917
+ switch (c.sortDirection) {
1918
1918
  case U.ASC:
1919
1919
  p(U.DESC), u({
1920
1920
  type: $e,
1921
1921
  payload: {
1922
- sortedCell: c,
1922
+ sortedCell: d,
1923
1923
  sortDirection: U.DESC
1924
1924
  }
1925
1925
  });
@@ -1928,28 +1928,32 @@ const ee = "panel", ue = "messagebox", zo = ({
1928
1928
  p(U.ASC), u({
1929
1929
  type: $e,
1930
1930
  payload: {
1931
- sortedCell: c,
1931
+ sortedCell: d,
1932
1932
  sortDirection: U.ASC
1933
1933
  }
1934
1934
  });
1935
1935
  break;
1936
1936
  }
1937
1937
  };
1938
- return /* @__PURE__ */ y(S, { children: [
1938
+ return /* @__PURE__ */ y(_, { children: [
1939
1939
  /* @__PURE__ */ y(
1940
1940
  Ot,
1941
1941
  {
1942
1942
  showConfirmation: l,
1943
1943
  setShowConfirmation: g,
1944
1944
  action: async () => {
1945
- const c = s.current;
1945
+ const d = s.current;
1946
1946
  try {
1947
1947
  const v = await D({
1948
1948
  accessToken: await i(),
1949
1949
  type: $.DELETE_CHAT,
1950
1950
  params: {
1951
1951
  userId: (n == null ? void 0 : n.username) || "",
1952
- id: c.id
1952
+ id: d.id,
1953
+ limit: 1,
1954
+ searchString: c.searchString,
1955
+ direction: c.sortDirection,
1956
+ truncateSize: 100
1953
1957
  }
1954
1958
  });
1955
1959
  v.status === 200 && t({ data: v.data });
@@ -1993,8 +1997,8 @@ const ee = "panel", ue = "messagebox", zo = ({
1993
1997
  buttonClassName: "text-xs sm:text-sm",
1994
1998
  cellId: "timestamp",
1995
1999
  align: "left",
1996
- sortDirection: d.sortDirection,
1997
- sortedCell: d.sortedCell,
2000
+ sortDirection: c.sortDirection,
2001
+ sortedCell: c.sortedCell,
1998
2002
  onClick: () => {
1999
2003
  b("timestamp");
2000
2004
  },
@@ -2005,16 +2009,16 @@ const ee = "panel", ue = "messagebox", zo = ({
2005
2009
  /* @__PURE__ */ o(V, { className: "text-xs sm:text-sm", children: "Model" }),
2006
2010
  /* @__PURE__ */ o(V, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2007
2011
  ] }) }),
2008
- /* @__PURE__ */ o(ir, { children: e.data.map((c, v) => {
2012
+ /* @__PURE__ */ o(ir, { children: e.data.map((d, v) => {
2009
2013
  var N, C;
2010
- return ((N = c == null ? void 0 : c.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2014
+ return ((N = d == null ? void 0 : d.messages) == null ? void 0 : N.length) > 0 ? /* @__PURE__ */ y(we, { children: [
2011
2015
  /* @__PURE__ */ o(
2012
2016
  V,
2013
2017
  {
2014
2018
  component: "th",
2015
2019
  scope: "row",
2016
2020
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
2017
- children: c.timestamp
2021
+ children: d.timestamp
2018
2022
  }
2019
2023
  ),
2020
2024
  /* @__PURE__ */ o(
@@ -2024,12 +2028,12 @@ const ee = "panel", ue = "messagebox", zo = ({
2024
2028
  style: {
2025
2029
  wordBreak: "break-word"
2026
2030
  },
2027
- children: c.messages.length > 0 ? (C = c.messages[0]) == null ? void 0 : C.content : ""
2031
+ children: d.messages.length > 0 ? (C = d.messages[0]) == null ? void 0 : C.content : ""
2028
2032
  }
2029
2033
  ),
2030
2034
  /* @__PURE__ */ o(V, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(q, { alignHorizontal: "center", children: [
2031
- c.model && c.model.startsWith("claude") && /* @__PURE__ */ o(ht, { className: "size-4 sm:size-5" }),
2032
- c.model && c.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { className: "size-4 sm:size-5" })
2035
+ d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, { className: "size-4 sm:size-5" }),
2036
+ d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { className: "size-4 sm:size-5" })
2033
2037
  ] }) }),
2034
2038
  /* @__PURE__ */ o(V, { className: "px-2", children: /* @__PURE__ */ y("div", { className: "flex justify-end gap-2", children: [
2035
2039
  /* @__PURE__ */ o(
@@ -2041,7 +2045,7 @@ const ee = "panel", ue = "messagebox", zo = ({
2041
2045
  onClick: async () => {
2042
2046
  const w = await i();
2043
2047
  Uo(
2044
- c,
2048
+ d,
2045
2049
  r,
2046
2050
  a,
2047
2051
  w
@@ -2059,16 +2063,16 @@ const ee = "panel", ue = "messagebox", zo = ({
2059
2063
  onClick: () => {
2060
2064
  var w;
2061
2065
  s.current = {
2062
- id: c.id,
2063
- timestamp: c.timestamp,
2064
- message: c.messages.length > 0 ? (w = c.messages[0]) == null ? void 0 : w.content : ""
2066
+ id: d.id,
2067
+ timestamp: d.timestamp,
2068
+ message: d.messages.length > 0 ? (w = d.messages[0]) == null ? void 0 : w.content : ""
2065
2069
  }, g(!l);
2066
2070
  },
2067
2071
  children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Nr, { className: "h-3 w-3", monotone: !0 }) })
2068
2072
  }
2069
2073
  )
2070
2074
  ] }) })
2071
- ] }, `${T.HISTORY.TITLE}-${c.id}-${v}`) : null;
2075
+ ] }, `${T.HISTORY.TITLE}-${d.id}-${v}`) : null;
2072
2076
  }) }),
2073
2077
  /* @__PURE__ */ o(lr, { children: /* @__PURE__ */ o(we, { children: /* @__PURE__ */ o(V, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2074
2078
  `${e.data.length} chat`,
@@ -2105,15 +2109,15 @@ const ee = "panel", ue = "messagebox", zo = ({
2105
2109
  }
2106
2110
  return [];
2107
2111
  }, Ko = ({ onOpenChange: e }) => {
2108
- const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = O(se), { state: l, dispatch: g } = O(Je), [, d] = le({
2112
+ const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = O(se), { state: l, dispatch: g } = O(Je), [, c] = le({
2109
2113
  key: ie + Kt,
2110
2114
  initialValue: l.searchString
2111
2115
  }), [u, p] = I({
2112
2116
  data: [],
2113
2117
  sortedDirection: l.sortDirection
2114
- }), b = async (c) => {
2118
+ }), b = async (d) => {
2115
2119
  const v = await r(), N = await Ze({
2116
- searchString: c,
2120
+ searchString: d,
2117
2121
  username: a == null ? void 0 : a.username,
2118
2122
  accessToken: v,
2119
2123
  direction: l.sortDirection
@@ -2121,22 +2125,22 @@ const ee = "panel", ue = "messagebox", zo = ({
2121
2125
  p({
2122
2126
  data: N,
2123
2127
  sortedDirection: l.sortDirection
2124
- }), d(c), g({
2128
+ }), c(d), g({
2125
2129
  type: Wt,
2126
- payload: { searchString: c }
2130
+ payload: { searchString: d }
2127
2131
  });
2128
- }, h = Yt((c) => {
2129
- b(c.target.value);
2130
- }, 500), m = async (c) => {
2131
- c.preventDefault();
2132
+ }, h = Yt((d) => {
2133
+ b(d.target.value);
2134
+ }, 500), m = async (d) => {
2135
+ d.preventDefault();
2132
2136
  };
2133
2137
  return H(() => {
2134
2138
  i.current || (async () => {
2135
2139
  i.current = !0;
2136
- const c = await r(), v = await Ze({
2140
+ const d = await r(), v = await Ze({
2137
2141
  searchString: l.searchString,
2138
2142
  username: a == null ? void 0 : a.username,
2139
- accessToken: c,
2143
+ accessToken: d,
2140
2144
  direction: l.sortDirection
2141
2145
  });
2142
2146
  p({
@@ -2146,7 +2150,7 @@ const ee = "panel", ue = "messagebox", zo = ({
2146
2150
  })();
2147
2151
  }), H(() => {
2148
2152
  if (l.sortDirection !== u.sortedDirection) {
2149
- const c = [...u.data].sort((v, N) => {
2153
+ const d = [...u.data].sort((v, N) => {
2150
2154
  if (l.sortedCell === "timestamp") {
2151
2155
  const C = new Date(v[l.sortedCell]).getTime(), w = new Date(N[l.sortedCell]).getTime();
2152
2156
  return l.sortDirection === U.ASC ? C - w : w - C;
@@ -2154,11 +2158,11 @@ const ee = "panel", ue = "messagebox", zo = ({
2154
2158
  return 0;
2155
2159
  });
2156
2160
  p({
2157
- data: c,
2161
+ data: d,
2158
2162
  sortedDirection: l.sortDirection
2159
2163
  });
2160
2164
  }
2161
- }, [u, l]), t ? u && u.data && /* @__PURE__ */ y(S, { children: [
2165
+ }, [u, l]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
2162
2166
  /* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: m, children: /* @__PURE__ */ o(
2163
2167
  xe,
2164
2168
  {
@@ -2182,8 +2186,8 @@ const ee = "panel", ue = "messagebox", zo = ({
2182
2186
  noBorder: !0,
2183
2187
  size: "small",
2184
2188
  onClick: () => {
2185
- var c;
2186
- b(""), (c = n.current) != null && c.value && (n.current.value = "", n.current.focus());
2189
+ var d;
2190
+ b(""), (d = n.current) != null && d.value && (n.current.value = "", n.current.focus());
2187
2191
  },
2188
2192
  children: "Reset"
2189
2193
  }
@@ -2298,7 +2302,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2298
2302
  className: l,
2299
2303
  noBorder: g = !1
2300
2304
  }) => {
2301
- const d = ra({
2305
+ const c = ra({
2302
2306
  mode: i,
2303
2307
  focusMode: s,
2304
2308
  labelHidden: a,
@@ -2307,19 +2311,19 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2307
2311
  }), u = (p) => {
2308
2312
  t == null || t(p.target.checked);
2309
2313
  };
2310
- return /* @__PURE__ */ y("label", { className: d.wrapper, children: [
2314
+ return /* @__PURE__ */ y("label", { className: c.wrapper, children: [
2311
2315
  /* @__PURE__ */ o(
2312
2316
  "input",
2313
2317
  {
2314
2318
  name: n,
2315
2319
  checked: e,
2316
2320
  type: "checkbox",
2317
- className: d.input,
2321
+ className: c.input,
2318
2322
  onChange: u
2319
2323
  }
2320
2324
  ),
2321
- /* @__PURE__ */ o("div", { className: d.toggle }),
2322
- /* @__PURE__ */ o("span", { className: d.label, children: r })
2325
+ /* @__PURE__ */ o("div", { className: c.toggle }),
2326
+ /* @__PURE__ */ o("span", { className: c.label, children: r })
2323
2327
  ] });
2324
2328
  }, oa = ({
2325
2329
  open: e,
@@ -2334,7 +2338,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2334
2338
  }), [l, g] = le({
2335
2339
  key: ie + tt,
2336
2340
  initialValue: !1
2337
- }), d = async (h) => {
2341
+ }), c = async (h) => {
2338
2342
  h.preventDefault();
2339
2343
  try {
2340
2344
  await D({
@@ -2361,7 +2365,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2361
2365
  loadingLocation: !0
2362
2366
  }));
2363
2367
  try {
2364
- const h = Date.now(), m = await Qt(), c = await D({
2368
+ const h = Date.now(), m = await Qt(), d = await D({
2365
2369
  accessToken: await a(),
2366
2370
  type: $.GET_LOCATION,
2367
2371
  params: {
@@ -2369,8 +2373,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2369
2373
  longitude: m.longitude
2370
2374
  }
2371
2375
  }), N = Date.now() - h;
2372
- if (N < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - N)), c.status === 200) {
2373
- const { city: C, state: w, country: _, displayName: A } = c.data, M = C && w && _ ? `${C}, ${w}, ${_}` : A;
2376
+ if (N < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - N)), d.status === 200) {
2377
+ const { city: C, state: w, country: S, displayName: A } = d.data, M = C && w && S ? `${C}, ${w}, ${S}` : A;
2374
2378
  s((R) => ({
2375
2379
  ...R,
2376
2380
  loaded: !0,
@@ -2427,7 +2431,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2427
2431
  } catch {
2428
2432
  }
2429
2433
  })();
2430
- }, [n, e]), /* @__PURE__ */ o(S, { children: i.loaded && /* @__PURE__ */ o(
2434
+ }, [n, e]), /* @__PURE__ */ o(_, { children: i.loaded && /* @__PURE__ */ o(
2431
2435
  Y,
2432
2436
  {
2433
2437
  open: e,
@@ -2459,7 +2463,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2459
2463
  variant: "danger",
2460
2464
  focusMode: "light",
2461
2465
  onClick: async (h) => {
2462
- t(!1), await d(h);
2466
+ t(!1), await c(h);
2463
2467
  },
2464
2468
  children: "Save"
2465
2469
  }
@@ -2467,7 +2471,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2467
2471
  ]
2468
2472
  }
2469
2473
  ),
2470
- children: /* @__PURE__ */ y(S, { children: [
2474
+ children: /* @__PURE__ */ y(_, { children: [
2471
2475
  /* @__PURE__ */ y(
2472
2476
  P,
2473
2477
  {
@@ -2600,21 +2604,21 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2600
2604
  content: h
2601
2605
  }) => {
2602
2606
  l((m) => {
2603
- const c = m.tags, v = {
2607
+ const d = m.tags, v = {
2604
2608
  slot: u,
2605
2609
  label: b,
2606
2610
  content: h,
2607
2611
  enabled: p
2608
- }, N = c.findIndex((C) => C.slot === u);
2612
+ }, N = d.findIndex((C) => C.slot === u);
2609
2613
  return N === -1 ? {
2610
2614
  ...m,
2611
- tags: [...c, { ...v, slot: u }]
2612
- } : (c[N] = v, {
2615
+ tags: [...d, { ...v, slot: u }]
2616
+ } : (d[N] = v, {
2613
2617
  ...m,
2614
- tags: [...c]
2618
+ tags: [...d]
2615
2619
  });
2616
2620
  });
2617
- }, d = async (u) => {
2621
+ }, c = async (u) => {
2618
2622
  u.preventDefault();
2619
2623
  try {
2620
2624
  await D({
@@ -2665,7 +2669,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2665
2669
  variant: "danger",
2666
2670
  focusMode: "light",
2667
2671
  onClick: async (u) => {
2668
- t(!1), await d(u);
2672
+ t(!1), await c(u);
2669
2673
  },
2670
2674
  children: "Save"
2671
2675
  }
@@ -2744,14 +2748,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2744
2748
  const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = le({
2745
2749
  key: ie + tr,
2746
2750
  initialValue: !1
2747
- }), [s, l] = I(!1), [g, d] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (c) => {
2748
- i(c);
2751
+ }), [s, l] = I(!1), [g, c] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
2752
+ i(d);
2749
2753
  }, h = () => {
2750
2754
  l(!s);
2751
2755
  }, m = () => {
2752
- d(!g);
2756
+ c(!g);
2753
2757
  };
2754
- return e && p ? /* @__PURE__ */ y(S, { children: [
2758
+ return e && p ? /* @__PURE__ */ y(_, { children: [
2755
2759
  s && /* @__PURE__ */ o(
2756
2760
  oa,
2757
2761
  {
@@ -2759,7 +2763,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2759
2763
  onOpenChange: l
2760
2764
  }
2761
2765
  ),
2762
- g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: d }),
2766
+ g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: c }),
2763
2767
  /* @__PURE__ */ y(
2764
2768
  P,
2765
2769
  {
@@ -2832,15 +2836,15 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2832
2836
  open: e,
2833
2837
  onOpenChange: t
2834
2838
  }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: or, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2835
- const { state: e, dispatch: t, serverStats: r } = O(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [l, g] = I(!1), [d, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [c] = le({
2839
+ const { state: e, dispatch: t, serverStats: r } = O(se), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [l, g] = I(!1), [c, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = le({
2836
2840
  key: ie + tt,
2837
2841
  initialValue: !1
2838
2842
  }), { logout: v, getAccessToken: N, user: C } = W(), w = () => {
2839
2843
  s(!i);
2840
- }, _ = () => {
2844
+ }, S = () => {
2841
2845
  g(!l);
2842
2846
  }, A = () => {
2843
- u(!d);
2847
+ u(!c);
2844
2848
  }, M = () => {
2845
2849
  b(!p);
2846
2850
  }, R = () => {
@@ -2848,7 +2852,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2848
2852
  };
2849
2853
  return H(() => {
2850
2854
  e && e.engine && e.engine !== a && n(e.engine);
2851
- }, [e, a]), /* @__PURE__ */ y(S, { children: [
2855
+ }, [e, a]), /* @__PURE__ */ y(_, { children: [
2852
2856
  /* @__PURE__ */ o(
2853
2857
  Ot,
2854
2858
  {
@@ -2865,10 +2869,10 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2865
2869
  ),
2866
2870
  /* @__PURE__ */ o(sa, { open: i, onOpenChange: s }),
2867
2871
  /* @__PURE__ */ o(Go, { open: l, onOpenChange: g }),
2868
- /* @__PURE__ */ o(Wo, { open: d, onOpenChange: u }),
2872
+ /* @__PURE__ */ o(Wo, { open: c, onOpenChange: u }),
2869
2873
  /* @__PURE__ */ o($o, { open: p, onOpenChange: b }),
2870
2874
  /* @__PURE__ */ y("div", { className: "relative", children: [
2871
- c && r && /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ o(
2875
+ d && r && /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ o(
2872
2876
  Ie,
2873
2877
  {
2874
2878
  mode: "dark",
@@ -2928,7 +2932,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2928
2932
  G,
2929
2933
  {
2930
2934
  label: Xe,
2931
- onClick: _,
2935
+ onClick: S,
2932
2936
  icon: /* @__PURE__ */ o(Cr, {})
2933
2937
  }
2934
2938
  ),
@@ -2948,8 +2952,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2948
2952
  icon: /* @__PURE__ */ o(Tr, {})
2949
2953
  }
2950
2954
  ),
2951
- e && e.id && !e.isComponent && /* @__PURE__ */ y(S, { children: [
2952
- /* @__PURE__ */ o(_r, {}),
2955
+ e && e.id && !e.isComponent && /* @__PURE__ */ y(_, { children: [
2956
+ /* @__PURE__ */ o(Sr, {}),
2953
2957
  /* @__PURE__ */ o(
2954
2958
  G,
2955
2959
  {