@versini/sassysaint 5.4.4 → 5.4.5

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,10 +1,10 @@
1
1
  import { jsx as r, jsxs as v, Fragment as A } from "react/jsx-runtime";
2
- import { g as V, E as $, CARDS as N, renderDataAsList as ie, pluralize as be, AppContext as ue, ABOUT_TITLE as At, DEFAULT_AI_ENGINE as ae, numberFormatter as Mt, durationFormatter as Xe, NA as Pt, ROLE_ASSISTANT as Lt, extractAverage as $t, GPT4_MAX_TOKENS as Bt, un as X, STATS as Ze, b as Q, j as L, R as G, HistoryContext as Je, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Vt, O as W, ACTION_RESET as Qe, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Dt, fe as _e, ACTION_SEARCH as Ht, HISTORY_TITLE as Ft, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Ne, ENGINE_ANTHROPIC as fe, APP_NAME as Gt, ACTION_ENGINE as tt, getCurrentGeoLocation as Ut, TagsContext as jt, TAGS_DESCRIPTION as Kt, ACTION_SET_TAGS as Wt, LOCAL_STORAGE_CHAT_DETAILS as Yt, M as qt, v as ze, PROFILE_TITLE as Xt, LOG_OUT as Oe } from "./index.7zCJNQU6.js";
3
- import { serviceCall as D, SERVICE_TYPES as H, E as he, y as O, ge as Zt, he as Jt, ue as Te, pe as Qt, se as F, me as eo, be as to, $e as De, m as He } from "./index.DTvyH-fG.js";
2
+ import { g as V, E as $, CARDS as N, renderDataAsList as ie, pluralize as be, AppContext as ue, ABOUT_TITLE as At, DEFAULT_AI_ENGINE as ae, numberFormatter as Mt, durationFormatter as Xe, NA as Pt, ROLE_ASSISTANT as Lt, extractAverage as $t, GPT4_MAX_TOKENS as Bt, un as X, STATS as Ze, b as Q, j as L, R as G, HistoryContext as Je, LOCAL_STORAGE_PREFIX as me, LOCAL_STORAGE_SORT as Vt, O as W, ACTION_RESET as Qe, ACTION_RESTORE as zt, truncate as Ot, ACTION_SORT as we, LOCAL_STORAGE_SEARCH as Dt, fe as _e, ACTION_SEARCH as Ht, debounce as Ft, HISTORY_TITLE as Gt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Ne, ENGINE_ANTHROPIC as fe, APP_NAME as Ut, ACTION_ENGINE as tt, getCurrentGeoLocation as jt, TagsContext as Kt, TAGS_DESCRIPTION as Wt, ACTION_SET_TAGS as Yt, LOCAL_STORAGE_CHAT_DETAILS as qt, M as Xt, v as ze, PROFILE_TITLE as Zt, LOG_OUT as Oe } from "./index.Cul7Y08v.js";
3
+ import { serviceCall as D, SERVICE_TYPES as H, E as he, y as O, ge as Jt, he as Qt, ue as Te, pe as eo, se as F, me as to, be as oo, $e as De, m as He } from "./index.CTGK59bg.js";
4
4
  import * as b from "react";
5
- import _, { useId as oo, forwardRef as ot, useState as x, useRef as le, useContext as B, useEffect as q, Suspense as ro, lazy as no, useMemo as ao } from "react";
5
+ import _, { useId as ro, forwardRef as ot, useState as x, useRef as le, useContext as B, useEffect as q, Suspense as no, lazy as ao, useMemo as so } from "react";
6
6
  import C from "clsx";
7
- import { useFloatingTree as rt, useFloatingNodeId as so, useListItem as nt, useFloating as io, offset as lo, flip as co, shift as uo, autoUpdate as mo, useClick as ho, useRole as go, useDismiss as po, useListNavigation as fo, useTypeahead as bo, useInteractions as vo, useMergeRefs as at, FloatingNode as yo, FloatingList as ko, FloatingPortal as Co, FloatingFocusManager as wo, FloatingTree as No } from "@floating-ui/react";
7
+ import { useFloatingTree as rt, useFloatingNodeId as io, useListItem as nt, useFloating as lo, offset as co, flip as uo, shift as mo, autoUpdate as ho, useClick as po, useRole as go, useDismiss as fo, useListNavigation as bo, useTypeahead as vo, useInteractions as yo, useMergeRefs as at, FloatingNode as ko, FloatingList as Co, FloatingPortal as wo, FloatingFocusManager as No, FloatingTree as To } from "@floating-ui/react";
8
8
  const st = ({
9
9
  className: e,
10
10
  viewBox: t,
@@ -24,7 +24,7 @@ const st = ({
24
24
  ...s,
25
25
  children: /* @__PURE__ */ r("path", { d: "m147.487 0l70.081 175.78H256L185.919 0zM66.183 106.221l23.98-61.774l23.98 61.774zM70.07 0L0 175.78h39.18l14.33-36.914h73.308l14.328 36.914h39.179L110.255 0z" })
26
26
  }
27
- ), To = ({
27
+ ), Io = ({
28
28
  className: e,
29
29
  viewBox: t,
30
30
  spacing: o,
@@ -52,7 +52,7 @@ const st = ({
52
52
  /* @__PURE__ */ r("path", { d: "M32 0H192c17.7 0 32 14.3 32 32s-14.3 32-32 32H109.3L342.6 297.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L64 109.3V192c0 17.7-14.3 32-32 32s-32-14.3-32-32V32C0 14.3 14.3 0 32 0z" })
53
53
  ]
54
54
  }
55
- ), Io = ({
55
+ ), _o = ({
56
56
  className: e,
57
57
  viewBox: t,
58
58
  spacing: o,
@@ -80,7 +80,7 @@ const st = ({
80
80
  /* @__PURE__ */ r("path", { d: "M368 96c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48h32c26.5 0 48-21.5 48-48V144c0-26.5-21.5-48-48-48H368zM48 224c-26.5 0-48 21.5-48 48V432c0 26.5 21.5 48 48 48H80c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48H48z" })
81
81
  ]
82
82
  }
83
- ), _o = ({
83
+ ), Eo = ({
84
84
  className: e,
85
85
  viewBox: t,
86
86
  spacing: o,
@@ -108,7 +108,7 @@ const st = ({
108
108
  /* @__PURE__ */ r("path", { d: "M163.8 0c-12.1 0-23.2 6.8-28.6 17.7L128 32H32C14.3 32 0 46.3 0 64S14.3 96 32 96H416c17.7 0 32-14.3 32-32s-14.3-32-32-32H320l-7.2-14.3C307.4 6.8 296.3 0 284.2 0H163.8z" })
109
109
  ]
110
110
  }
111
- ), Eo = ({
111
+ ), xo = ({
112
112
  className: e,
113
113
  viewBox: t,
114
114
  spacing: o,
@@ -136,7 +136,7 @@ const st = ({
136
136
  /* @__PURE__ */ r("path", { d: "M256 128c13.3 0 24 10.7 24 24v94.1l65 65c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-72-72c-4.5-4.5-7-10.6-7-17V152c0-13.3 10.7-24 24-24z" })
137
137
  ]
138
138
  }
139
- ), xo = ({
139
+ ), So = ({
140
140
  className: e,
141
141
  viewBox: t,
142
142
  spacing: o,
@@ -189,7 +189,7 @@ const st = ({
189
189
  }
190
190
  )
191
191
  }
192
- ), So = ({
192
+ ), Ro = ({
193
193
  className: e,
194
194
  viewBox: t,
195
195
  spacing: o,
@@ -217,7 +217,7 @@ const st = ({
217
217
  /* @__PURE__ */ r("path", { d: "M176 256a64 64 0 1 0 0-128 64 64 0 1 0 0 128zm-32 32c-44.2 0-80 35.8-80 80c0 8.8 7.2 16 16 16H272c8.8 0 16-7.2 16-16c0-44.2-35.8-80-80-80H144z" })
218
218
  ]
219
219
  }
220
- ), Ro = ({
220
+ ), Ao = ({
221
221
  className: e,
222
222
  viewBox: t,
223
223
  spacing: o,
@@ -245,7 +245,7 @@ const st = ({
245
245
  /* @__PURE__ */ r("path", { d: "M64 128c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V192c0-35.3-28.7-64-64-64H64zm32 64H288c17.7 0 32 14.3 32 32s-14.3 32-32 32H96c-17.7 0-32-14.3-32-32s14.3-32 32-32z" })
246
246
  ]
247
247
  }
248
- ), Ao = ({
248
+ ), Mo = ({
249
249
  className: e,
250
250
  viewBox: t,
251
251
  spacing: o,
@@ -266,7 +266,7 @@ const st = ({
266
266
  }
267
267
  );
268
268
  function ce(e) {
269
- return oo();
269
+ return ro();
270
270
  }
271
271
  const Ee = b.createContext({
272
272
  getItemProps: () => ({}),
@@ -300,31 +300,31 @@ const Ee = b.createContext({
300
300
  focusMode: l = "system",
301
301
  ...h
302
302
  }, d) => {
303
- const [c, p] = x(!1), [y, u] = x(!1), [m, f] = x(null), g = le([]), k = le([]), w = B(Ee), T = rt(), E = so(), M = nt(), { floatingStyles: S, refs: z, context: I } = io({
303
+ const [c, g] = x(!1), [y, u] = x(!1), [m, f] = x(null), p = le([]), k = le([]), w = B(Ee), T = rt(), E = io(), M = nt(), { floatingStyles: S, refs: z, context: I } = lo({
304
304
  nodeId: E,
305
305
  open: c,
306
306
  onOpenChange: (re) => {
307
- p(re), a == null || a(re);
307
+ g(re), a == null || a(re);
308
308
  },
309
309
  placement: n,
310
310
  strategy: "fixed",
311
- middleware: [lo({ mainAxis: 10 }), co(), uo()],
312
- whileElementsMounted: mo
313
- }), te = ho(I, {
311
+ middleware: [co({ mainAxis: 10 }), uo(), mo()],
312
+ whileElementsMounted: ho
313
+ }), te = po(I, {
314
314
  event: "mousedown",
315
315
  toggle: !0,
316
316
  ignoreMouse: !1
317
- }), J = go(I, { role: "menu" }), U = po(I, { bubbles: !0 }), oe = fo(I, {
318
- listRef: g,
317
+ }), J = go(I, { role: "menu" }), U = fo(I, { bubbles: !0 }), oe = bo(I, {
318
+ listRef: p,
319
319
  activeIndex: m,
320
320
  nested: !1,
321
321
  onNavigate: f,
322
322
  loop: !0
323
- }), P = bo(I, {
323
+ }), P = vo(I, {
324
324
  listRef: k,
325
325
  onMatch: c ? f : void 0,
326
326
  activeIndex: m
327
- }), { getReferenceProps: j, getFloatingProps: R, getItemProps: xt } = vo([te, J, U, oe, P]), Ve = Fe(e) === "Button" || Fe(e) === "ButtonIcon", St = Ve ? {
327
+ }), { getReferenceProps: j, getFloatingProps: R, getItemProps: xt } = yo([te, J, U, oe, P]), Ve = Fe(e) === "Button" || Fe(e) === "ButtonIcon", St = Ve ? {
328
328
  noInternalClick: Ve,
329
329
  focusMode: l,
330
330
  mode: i,
@@ -348,14 +348,14 @@ const Ee = b.createContext({
348
348
  if (!T)
349
349
  return;
350
350
  function re() {
351
- p(!1), a == null || a(!1);
351
+ g(!1), a == null || a(!1);
352
352
  }
353
353
  return T.events.on("click", re), () => {
354
354
  T.events.off("click", re);
355
355
  };
356
356
  }, [T, a]), q(() => {
357
357
  c && T && T.events.emit("menuopen", { nodeId: E });
358
- }, [T, c, E]), /* @__PURE__ */ v(yo, { id: E, children: [
358
+ }, [T, c, E]), /* @__PURE__ */ v(ko, { id: E, children: [
359
359
  Rt,
360
360
  /* @__PURE__ */ r(
361
361
  Ee.Provider,
@@ -367,8 +367,8 @@ const Ee = b.createContext({
367
367
  setHasFocusInside: u,
368
368
  isOpen: c
369
369
  },
370
- children: /* @__PURE__ */ r(ko, { elementsRef: g, labelsRef: k, children: c && /* @__PURE__ */ r(Co, { children: /* @__PURE__ */ r(
371
- wo,
370
+ children: /* @__PURE__ */ r(Co, { elementsRef: p, labelsRef: k, children: c && /* @__PURE__ */ r(wo, { children: /* @__PURE__ */ r(
371
+ No,
372
372
  {
373
373
  context: I,
374
374
  modal: !1,
@@ -390,7 +390,7 @@ const Ee = b.createContext({
390
390
  )
391
391
  ] });
392
392
  }
393
- ), xe = ot((e, t) => /* @__PURE__ */ r(No, { children: /* @__PURE__ */ r(lt, { ...e, ref: t }) }));
393
+ ), xe = ot((e, t) => /* @__PURE__ */ r(To, { children: /* @__PURE__ */ r(lt, { ...e, ref: t }) }));
394
394
  xe.displayName = "Menu";
395
395
  lt.displayName = "MenuComponent";
396
396
  const K = b.forwardRef(
@@ -403,7 +403,7 @@ const K = b.forwardRef(
403
403
  ignoreClick: s = !1,
404
404
  ...i
405
405
  }, l) => {
406
- const h = b.useContext(Ee), d = nt({ label: t ? null : e }), c = rt(), p = at([d.ref, l]);
406
+ const h = b.useContext(Ee), d = nt({ label: t ? null : e }), c = rt(), g = at([d.ref, l]);
407
407
  return n && a ? /* @__PURE__ */ r(
408
408
  "div",
409
409
  {
@@ -420,7 +420,7 @@ const K = b.forwardRef(
420
420
  "button",
421
421
  {
422
422
  ...i,
423
- ref: p,
423
+ ref: g,
424
424
  role: "menuitem",
425
425
  className: "m-0 flex w-full rounded-md border border-transparent bg-none px-3 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",
426
426
  tabIndex: 0,
@@ -444,7 +444,7 @@ const K = b.forwardRef(
444
444
  }
445
445
  );
446
446
  K.displayName = "MenuItem";
447
- const Mo = ({ className: e, ...t }) => {
447
+ const Po = ({ className: e, ...t }) => {
448
448
  const o = C(e, "my-1 border-t border-border-medium");
449
449
  return /* @__PURE__ */ r("div", { className: o, ...t });
450
450
  };
@@ -474,24 +474,24 @@ try {
474
474
  });
475
475
  } catch {
476
476
  }
477
- const Po = "av-togglegroup", Lo = "av-togglegroup-item-wrapper", $o = "av-togglegroup-item";
477
+ const Lo = "av-togglegroup", $o = "av-togglegroup-item-wrapper", Bo = "av-togglegroup-item";
478
478
  function Me(e, t = []) {
479
479
  let o = [];
480
480
  function n(s, i) {
481
481
  const l = b.createContext(i), h = o.length;
482
482
  o = [...o, i];
483
- const d = (p) => {
483
+ const d = (g) => {
484
484
  var y;
485
- const { scope: u, children: m, ...f } = p, g = ((y = u == null ? void 0 : u[e]) == null ? void 0 : y[h]) || l, k = b.useMemo(() => f, Object.values(f));
486
- return /* @__PURE__ */ r(g.Provider, { value: k, children: m });
485
+ const { scope: u, children: m, ...f } = g, p = ((y = u == null ? void 0 : u[e]) == null ? void 0 : y[h]) || l, k = b.useMemo(() => f, Object.values(f));
486
+ return /* @__PURE__ */ r(p.Provider, { value: k, children: m });
487
487
  };
488
488
  d.displayName = s + "Provider";
489
- function c(p, y) {
489
+ function c(g, y) {
490
490
  var u;
491
491
  const m = ((u = y == null ? void 0 : y[e]) == null ? void 0 : u[h]) || l, f = b.useContext(m);
492
492
  if (f) return f;
493
493
  if (i !== void 0) return i;
494
- throw new Error(`\`${p}\` must be used within \`${s}\``);
494
+ throw new Error(`\`${g}\` must be used within \`${s}\``);
495
495
  }
496
496
  return [d, c];
497
497
  }
@@ -505,9 +505,9 @@ function Me(e, t = []) {
505
505
  );
506
506
  };
507
507
  };
508
- return a.scopeName = e, [n, Bo(a, ...t)];
508
+ return a.scopeName = e, [n, Vo(a, ...t)];
509
509
  }
510
- function Bo(...e) {
510
+ function Vo(...e) {
511
511
  const t = e[0];
512
512
  if (e.length === 1) return t;
513
513
  const o = () => {
@@ -550,7 +550,7 @@ function Se(...e) {
550
550
  return b.useCallback(ct(...e), e);
551
551
  }
552
552
  var ve = b.forwardRef((e, t) => {
553
- const { children: o, ...n } = e, a = b.Children.toArray(o), s = a.find(zo);
553
+ const { children: o, ...n } = e, a = b.Children.toArray(o), s = a.find(Oo);
554
554
  if (s) {
555
555
  const i = s.props.children, l = a.map((h) => h === s ? b.Children.count(i) > 1 ? b.Children.only(null) : b.isValidElement(i) ? i.props.children : null : h);
556
556
  return /* @__PURE__ */ r(Re, { ...n, ref: t, children: b.isValidElement(i) ? b.cloneElement(i, void 0, l) : null });
@@ -561,9 +561,9 @@ ve.displayName = "Slot";
561
561
  var Re = b.forwardRef((e, t) => {
562
562
  const { children: o, ...n } = e;
563
563
  if (b.isValidElement(o)) {
564
- const a = Do(o);
564
+ const a = Ho(o);
565
565
  return b.cloneElement(o, {
566
- ...Oo(n, o.props),
566
+ ...Do(n, o.props),
567
567
  // @ts-ignore
568
568
  ref: t ? ct(t, a) : a
569
569
  });
@@ -571,11 +571,11 @@ var Re = b.forwardRef((e, t) => {
571
571
  return b.Children.count(o) > 1 ? b.Children.only(null) : null;
572
572
  });
573
573
  Re.displayName = "SlotClone";
574
- var Vo = ({ children: e }) => /* @__PURE__ */ r(A, { children: e });
575
- function zo(e) {
576
- return b.isValidElement(e) && e.type === Vo;
574
+ var zo = ({ children: e }) => /* @__PURE__ */ r(A, { children: e });
575
+ function Oo(e) {
576
+ return b.isValidElement(e) && e.type === zo;
577
577
  }
578
- function Oo(e, t) {
578
+ function Do(e, t) {
579
579
  const o = { ...t };
580
580
  for (const n in t) {
581
581
  const a = e[n], s = t[n];
@@ -585,12 +585,12 @@ function Oo(e, t) {
585
585
  }
586
586
  return { ...e, ...o };
587
587
  }
588
- function Do(e) {
588
+ function Ho(e) {
589
589
  var t, o;
590
590
  let n = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, a = n && "isReactWarning" in n && n.isReactWarning;
591
591
  return a ? e.ref : (n = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, a = n && "isReactWarning" in n && n.isReactWarning, a ? e.props.ref : e.props.ref || e.ref);
592
592
  }
593
- var Ho = [
593
+ var Fo = [
594
594
  "a",
595
595
  "button",
596
596
  "div",
@@ -607,7 +607,7 @@ var Ho = [
607
607
  "span",
608
608
  "svg",
609
609
  "ul"
610
- ], de = Ho.reduce((e, t) => {
610
+ ], de = Fo.reduce((e, t) => {
611
611
  const o = b.forwardRef((n, a) => {
612
612
  const { asChild: s, ...i } = n, l = s ? ve : t;
613
613
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ r(l, { ...i, ref: a });
@@ -620,53 +620,53 @@ function Y(e, t, { checkForDefaultPrevented: o = !0 } = {}) {
620
620
  return t == null ? void 0 : t(n);
621
621
  };
622
622
  }
623
- function Fo(e) {
623
+ function Go(e) {
624
624
  const t = e + "CollectionProvider", [o, n] = Me(t), [a, s] = o(
625
625
  t,
626
626
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
627
627
  ), i = (u) => {
628
- const { scope: m, children: f } = u, g = _.useRef(null), k = _.useRef(/* @__PURE__ */ new Map()).current;
629
- return /* @__PURE__ */ r(a, { scope: m, itemMap: k, collectionRef: g, children: f });
628
+ const { scope: m, children: f } = u, p = _.useRef(null), k = _.useRef(/* @__PURE__ */ new Map()).current;
629
+ return /* @__PURE__ */ r(a, { scope: m, itemMap: k, collectionRef: p, children: f });
630
630
  };
631
631
  i.displayName = t;
632
632
  const l = e + "CollectionSlot", h = _.forwardRef(
633
633
  (u, m) => {
634
- const { scope: f, children: g } = u, k = s(l, f), w = Se(m, k.collectionRef);
635
- return /* @__PURE__ */ r(ve, { ref: w, children: g });
634
+ const { scope: f, children: p } = u, k = s(l, f), w = Se(m, k.collectionRef);
635
+ return /* @__PURE__ */ r(ve, { ref: w, children: p });
636
636
  }
637
637
  );
638
638
  h.displayName = l;
639
- const d = e + "CollectionItemSlot", c = "data-radix-collection-item", p = _.forwardRef(
639
+ const d = e + "CollectionItemSlot", c = "data-radix-collection-item", g = _.forwardRef(
640
640
  (u, m) => {
641
- const { scope: f, children: g, ...k } = u, w = _.useRef(null), T = Se(m, w), E = s(d, f);
642
- return _.useEffect(() => (E.itemMap.set(w, { ref: w, ...k }), () => void E.itemMap.delete(w))), /* @__PURE__ */ r(ve, { [c]: "", ref: T, children: g });
641
+ const { scope: f, children: p, ...k } = u, w = _.useRef(null), T = Se(m, w), E = s(d, f);
642
+ return _.useEffect(() => (E.itemMap.set(w, { ref: w, ...k }), () => void E.itemMap.delete(w))), /* @__PURE__ */ r(ve, { [c]: "", ref: T, children: p });
643
643
  }
644
644
  );
645
- p.displayName = d;
645
+ g.displayName = d;
646
646
  function y(u) {
647
647
  const m = s(e + "CollectionConsumer", u);
648
648
  return _.useCallback(() => {
649
649
  const f = m.collectionRef.current;
650
650
  if (!f) return [];
651
- const g = Array.from(f.querySelectorAll(`[${c}]`));
651
+ const p = Array.from(f.querySelectorAll(`[${c}]`));
652
652
  return Array.from(m.itemMap.values()).sort(
653
- (k, w) => g.indexOf(k.ref.current) - g.indexOf(w.ref.current)
653
+ (k, w) => p.indexOf(k.ref.current) - p.indexOf(w.ref.current)
654
654
  );
655
655
  }, [m.collectionRef, m.itemMap]);
656
656
  }
657
657
  return [
658
- { Provider: i, Slot: h, ItemSlot: p },
658
+ { Provider: i, Slot: h, ItemSlot: g },
659
659
  y,
660
660
  n
661
661
  ];
662
662
  }
663
- var Go = globalThis != null && globalThis.document ? b.useLayoutEffect : () => {
664
- }, Uo = b.useId || (() => {
665
- }), jo = 0;
666
- function Ko(e) {
667
- const [t, o] = b.useState(Uo());
668
- return Go(() => {
669
- o((n) => n ?? String(jo++));
663
+ var Uo = globalThis != null && globalThis.document ? b.useLayoutEffect : () => {
664
+ }, jo = b.useId || (() => {
665
+ }), Ko = 0;
666
+ function Wo(e) {
667
+ const [t, o] = b.useState(jo());
668
+ return Uo(() => {
669
+ o((n) => n ?? String(Ko++));
670
670
  }, [e]), t ? `radix-${t}` : "";
671
671
  }
672
672
  function Pe(e) {
@@ -684,7 +684,7 @@ function ke({
684
684
  onChange: o = () => {
685
685
  }
686
686
  }) {
687
- const [n, a] = Wo({ defaultProp: t, onChange: o }), s = e !== void 0, i = s ? e : n, l = Pe(o), h = b.useCallback(
687
+ const [n, a] = Yo({ defaultProp: t, onChange: o }), s = e !== void 0, i = s ? e : n, l = Pe(o), h = b.useCallback(
688
688
  (d) => {
689
689
  if (s) {
690
690
  const c = typeof d == "function" ? d(e) : d;
@@ -696,7 +696,7 @@ function ke({
696
696
  );
697
697
  return [i, h];
698
698
  }
699
- function Wo({
699
+ function Yo({
700
700
  defaultProp: e,
701
701
  onChange: t
702
702
  }) {
@@ -705,19 +705,19 @@ function Wo({
705
705
  a.current !== n && (s(n), a.current = n);
706
706
  }, [n, a, s]), o;
707
707
  }
708
- var Yo = b.createContext(void 0);
708
+ var qo = b.createContext(void 0);
709
709
  function dt(e) {
710
- const t = b.useContext(Yo);
710
+ const t = b.useContext(qo);
711
711
  return e || t || "ltr";
712
712
  }
713
- var Ie = "rovingFocusGroup.onEntryFocus", qo = { bubbles: !1, cancelable: !0 }, Ce = "RovingFocusGroup", [Ae, ut, Xo] = Fo(Ce), [Zo, mt] = Me(
713
+ var Ie = "rovingFocusGroup.onEntryFocus", Xo = { bubbles: !1, cancelable: !0 }, Ce = "RovingFocusGroup", [Ae, ut, Zo] = Go(Ce), [Jo, mt] = Me(
714
714
  Ce,
715
- [Xo]
716
- ), [Jo, Qo] = Zo(Ce), ht = b.forwardRef(
717
- (e, t) => /* @__PURE__ */ r(Ae.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(Ae.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(er, { ...e, ref: t }) }) })
715
+ [Zo]
716
+ ), [Qo, er] = Jo(Ce), ht = b.forwardRef(
717
+ (e, t) => /* @__PURE__ */ r(Ae.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(Ae.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ r(tr, { ...e, ref: t }) }) })
718
718
  );
719
719
  ht.displayName = Ce;
720
- var er = b.forwardRef((e, t) => {
720
+ var tr = b.forwardRef((e, t) => {
721
721
  const {
722
722
  __scopeRovingFocusGroup: o,
723
723
  orientation: n,
@@ -728,8 +728,8 @@ var er = b.forwardRef((e, t) => {
728
728
  onCurrentTabStopIdChange: h,
729
729
  onEntryFocus: d,
730
730
  preventScrollOnEntryFocus: c = !1,
731
- ...p
732
- } = e, y = b.useRef(null), u = Se(t, y), m = dt(s), [f = null, g] = ke({
731
+ ...g
732
+ } = e, y = b.useRef(null), u = Se(t, y), m = dt(s), [f = null, p] = ke({
733
733
  prop: i,
734
734
  defaultProp: l,
735
735
  onChange: h
@@ -739,7 +739,7 @@ var er = b.forwardRef((e, t) => {
739
739
  if (I)
740
740
  return I.addEventListener(Ie, T), () => I.removeEventListener(Ie, T);
741
741
  }, [T]), /* @__PURE__ */ r(
742
- Jo,
742
+ Qo,
743
743
  {
744
744
  scope: o,
745
745
  orientation: n,
@@ -747,8 +747,8 @@ var er = b.forwardRef((e, t) => {
747
747
  loop: a,
748
748
  currentTabStopId: f,
749
749
  onItemFocus: b.useCallback(
750
- (I) => g(I),
751
- [g]
750
+ (I) => p(I),
751
+ [p]
752
752
  ),
753
753
  onItemShiftTab: b.useCallback(() => w(!0), []),
754
754
  onFocusableItemAdd: b.useCallback(
@@ -764,7 +764,7 @@ var er = b.forwardRef((e, t) => {
764
764
  {
765
765
  tabIndex: k || S === 0 ? -1 : 0,
766
766
  "data-orientation": n,
767
- ...p,
767
+ ...g,
768
768
  ref: u,
769
769
  style: { outline: "none", ...e.style },
770
770
  onMouseDown: Y(e.onMouseDown, () => {
@@ -773,7 +773,7 @@ var er = b.forwardRef((e, t) => {
773
773
  onFocus: Y(e.onFocus, (I) => {
774
774
  const te = !M.current;
775
775
  if (I.target === I.currentTarget && te && !k) {
776
- const J = new CustomEvent(Ie, qo);
776
+ const J = new CustomEvent(Ie, Xo);
777
777
  if (I.currentTarget.dispatchEvent(J), !J.defaultPrevented) {
778
778
  const U = E().filter((R) => R.focusable), oe = U.find((R) => R.active), P = U.find((R) => R.id === f), j = [oe, P, ...U].filter(
779
779
  Boolean
@@ -788,7 +788,7 @@ var er = b.forwardRef((e, t) => {
788
788
  )
789
789
  }
790
790
  );
791
- }), gt = "RovingFocusGroupItem", pt = b.forwardRef(
791
+ }), pt = "RovingFocusGroupItem", gt = b.forwardRef(
792
792
  (e, t) => {
793
793
  const {
794
794
  __scopeRovingFocusGroup: o,
@@ -796,7 +796,7 @@ var er = b.forwardRef((e, t) => {
796
796
  active: a = !1,
797
797
  tabStopId: s,
798
798
  ...i
799
- } = e, l = Ko(), h = s || l, d = Qo(gt, o), c = d.currentTabStopId === h, p = ut(o), { onFocusableItemAdd: y, onFocusableItemRemove: u } = d;
799
+ } = e, l = Wo(), h = s || l, d = er(pt, o), c = d.currentTabStopId === h, g = ut(o), { onFocusableItemAdd: y, onFocusableItemRemove: u } = d;
800
800
  return b.useEffect(() => {
801
801
  if (n)
802
802
  return y(), () => u();
@@ -824,18 +824,18 @@ var er = b.forwardRef((e, t) => {
824
824
  return;
825
825
  }
826
826
  if (m.target !== m.currentTarget) return;
827
- const f = rr(m, d.orientation, d.dir);
827
+ const f = nr(m, d.orientation, d.dir);
828
828
  if (f !== void 0) {
829
829
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
830
830
  m.preventDefault();
831
- let g = p().filter((k) => k.focusable).map((k) => k.ref.current);
832
- if (f === "last") g.reverse();
831
+ let p = g().filter((k) => k.focusable).map((k) => k.ref.current);
832
+ if (f === "last") p.reverse();
833
833
  else if (f === "prev" || f === "next") {
834
- f === "prev" && g.reverse();
835
- const k = g.indexOf(m.currentTarget);
836
- g = d.loop ? nr(g, k + 1) : g.slice(k + 1);
834
+ f === "prev" && p.reverse();
835
+ const k = p.indexOf(m.currentTarget);
836
+ p = d.loop ? ar(p, k + 1) : p.slice(k + 1);
837
837
  }
838
- setTimeout(() => ft(g));
838
+ setTimeout(() => ft(p));
839
839
  }
840
840
  })
841
841
  }
@@ -844,8 +844,8 @@ var er = b.forwardRef((e, t) => {
844
844
  );
845
845
  }
846
846
  );
847
- pt.displayName = gt;
848
- var tr = {
847
+ gt.displayName = pt;
848
+ var or = {
849
849
  ArrowLeft: "prev",
850
850
  ArrowUp: "prev",
851
851
  ArrowRight: "next",
@@ -855,23 +855,23 @@ var tr = {
855
855
  PageDown: "last",
856
856
  End: "last"
857
857
  };
858
- function or(e, t) {
858
+ function rr(e, t) {
859
859
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
860
860
  }
861
- function rr(e, t, o) {
862
- const n = or(e.key, o);
861
+ function nr(e, t, o) {
862
+ const n = rr(e.key, o);
863
863
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(n)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(n)))
864
- return tr[n];
864
+ return or[n];
865
865
  }
866
866
  function ft(e, t = !1) {
867
867
  const o = document.activeElement;
868
868
  for (const n of e)
869
869
  if (n === o || (n.focus({ preventScroll: t }), document.activeElement !== o)) return;
870
870
  }
871
- function nr(e, t) {
871
+ function ar(e, t) {
872
872
  return e.map((o, n) => e[(t + n) % e.length]);
873
873
  }
874
- var ar = ht, sr = pt, ir = "Toggle", bt = b.forwardRef((e, t) => {
874
+ var sr = ht, ir = gt, lr = "Toggle", bt = b.forwardRef((e, t) => {
875
875
  const { pressed: o, defaultPressed: n = !1, onPressedChange: a, ...s } = e, [i = !1, l] = ke({
876
876
  prop: o,
877
877
  onChange: a,
@@ -892,19 +892,19 @@ var ar = ht, sr = pt, ir = "Toggle", bt = b.forwardRef((e, t) => {
892
892
  }
893
893
  );
894
894
  });
895
- bt.displayName = ir;
896
- var ee = "ToggleGroup", [vt, kn] = Me(ee, [
895
+ bt.displayName = lr;
896
+ var ee = "ToggleGroup", [vt, Cn] = Me(ee, [
897
897
  mt
898
898
  ]), yt = mt(), Le = _.forwardRef((e, t) => {
899
899
  const { type: o, ...n } = e;
900
900
  if (o === "single")
901
- return /* @__PURE__ */ r(lr, { ...n, ref: t });
902
- if (o === "multiple")
903
901
  return /* @__PURE__ */ r(cr, { ...n, ref: t });
902
+ if (o === "multiple")
903
+ return /* @__PURE__ */ r(dr, { ...n, ref: t });
904
904
  throw new Error(`Missing prop \`type\` expected on \`${ee}\``);
905
905
  });
906
906
  Le.displayName = ee;
907
- var [kt, Ct] = vt(ee), lr = _.forwardRef((e, t) => {
907
+ var [kt, Ct] = vt(ee), cr = _.forwardRef((e, t) => {
908
908
  const {
909
909
  value: o,
910
910
  defaultValue: n,
@@ -927,7 +927,7 @@ var [kt, Ct] = vt(ee), lr = _.forwardRef((e, t) => {
927
927
  children: /* @__PURE__ */ r(wt, { ...s, ref: t })
928
928
  }
929
929
  );
930
- }), cr = _.forwardRef((e, t) => {
930
+ }), dr = _.forwardRef((e, t) => {
931
931
  const {
932
932
  value: o,
933
933
  defaultValue: n,
@@ -939,10 +939,10 @@ var [kt, Ct] = vt(ee), lr = _.forwardRef((e, t) => {
939
939
  defaultProp: n,
940
940
  onChange: a
941
941
  }), h = _.useCallback(
942
- (c) => l((p = []) => [...p, c]),
942
+ (c) => l((g = []) => [...g, c]),
943
943
  [l]
944
944
  ), d = _.useCallback(
945
- (c) => l((p = []) => p.filter((y) => y !== c)),
945
+ (c) => l((g = []) => g.filter((y) => y !== c)),
946
946
  [l]
947
947
  );
948
948
  return /* @__PURE__ */ r(
@@ -958,7 +958,7 @@ var [kt, Ct] = vt(ee), lr = _.forwardRef((e, t) => {
958
958
  );
959
959
  });
960
960
  Le.displayName = ee;
961
- var [dr, ur] = vt(ee), wt = _.forwardRef(
961
+ var [ur, mr] = vt(ee), wt = _.forwardRef(
962
962
  (e, t) => {
963
963
  const {
964
964
  __scopeToggleGroup: o,
@@ -968,24 +968,24 @@ var [dr, ur] = vt(ee), wt = _.forwardRef(
968
968
  dir: i,
969
969
  loop: l = !0,
970
970
  ...h
971
- } = e, d = yt(o), c = dt(i), p = { role: "group", dir: c, ...h };
972
- return /* @__PURE__ */ r(dr, { scope: o, rovingFocus: a, disabled: n, children: a ? /* @__PURE__ */ r(
973
- ar,
971
+ } = e, d = yt(o), c = dt(i), g = { role: "group", dir: c, ...h };
972
+ return /* @__PURE__ */ r(ur, { scope: o, rovingFocus: a, disabled: n, children: a ? /* @__PURE__ */ r(
973
+ sr,
974
974
  {
975
975
  asChild: !0,
976
976
  ...d,
977
977
  orientation: s,
978
978
  dir: c,
979
979
  loop: l,
980
- children: /* @__PURE__ */ r(de.div, { ...p, ref: t })
980
+ children: /* @__PURE__ */ r(de.div, { ...g, ref: t })
981
981
  }
982
- ) : /* @__PURE__ */ r(de.div, { ...p, ref: t }) });
982
+ ) : /* @__PURE__ */ r(de.div, { ...g, ref: t }) });
983
983
  }
984
984
  ), ye = "ToggleGroupItem", Nt = _.forwardRef(
985
985
  (e, t) => {
986
- const o = Ct(ye, e.__scopeToggleGroup), n = ur(ye, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = _.useRef(null);
986
+ const o = Ct(ye, e.__scopeToggleGroup), n = mr(ye, e.__scopeToggleGroup), a = yt(e.__scopeToggleGroup), s = o.value.includes(e.value), i = n.disabled || e.disabled, l = { ...e, pressed: s, disabled: i }, h = _.useRef(null);
987
987
  return n.rovingFocus ? /* @__PURE__ */ r(
988
- sr,
988
+ ir,
989
989
  {
990
990
  asChild: !0,
991
991
  ...a,
@@ -1013,7 +1013,7 @@ var Ue = _.forwardRef(
1013
1013
  }
1014
1014
  );
1015
1015
  }
1016
- ), mr = Le, hr = Nt;
1016
+ ), hr = Le, pr = Nt;
1017
1017
  const Tt = _.createContext({
1018
1018
  size: "medium",
1019
1019
  focusMode: "system",
@@ -1041,22 +1041,22 @@ const gr = (e) => {
1041
1041
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
1042
1042
  }
1043
1043
  return t;
1044
- }, pr = ({ focusMode: e }) => C("focus:outline", "focus:outline-2", "focus:outline-offset", {
1044
+ }, fr = ({ focusMode: e }) => C("focus:outline", "focus:outline-2", "focus:outline-offset", {
1045
1045
  "focus:outline-focus-light": e === "light",
1046
1046
  "focus:outline-focus-dark": e === "dark",
1047
1047
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1048
1048
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1049
- }), fr = ({ mode: e }) => C({
1049
+ }), br = ({ mode: e }) => C({
1050
1050
  "data-[state=on]:bg-surface-medium": e === "dark",
1051
1051
  "data-[state=on]:bg-surface-lightest": e === "light",
1052
1052
  "data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
1053
1053
  "data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
1054
- }), br = ({ size: e }) => C({
1054
+ }), vr = ({ size: e }) => C({
1055
1055
  "h-5 px-2": e === "small",
1056
1056
  "h-6 px-3": e === "medium",
1057
1057
  "h-7 px-4": e === "large"
1058
- }), vr = ({ mode: e }) => C(
1059
- Lo,
1058
+ }), yr = ({ mode: e }) => C(
1059
+ $o,
1060
1060
  "px-1",
1061
1061
  "relative",
1062
1062
  "border-r",
@@ -1069,26 +1069,26 @@ const gr = (e) => {
1069
1069
  "border-surface-light dark:border-surface-darker": e === "system",
1070
1070
  "border-surface-darker dark:border-surface-light": e === "alt-system"
1071
1071
  }
1072
- ), yr = ({
1072
+ ), kr = ({
1073
1073
  focusMode: e,
1074
1074
  mode: t,
1075
1075
  size: o
1076
1076
  }) => ({
1077
- wrapperClass: vr({ mode: t }),
1077
+ wrapperClass: yr({ mode: t }),
1078
1078
  itemClass: C(
1079
- $o,
1079
+ Bo,
1080
1080
  "flex items-center justify-center bg-transparent",
1081
1081
  "rounded-sm",
1082
1082
  "transition duration-200 ease",
1083
- br({ size: o }),
1084
- pr({ focusMode: e }),
1085
- fr({ mode: t })
1083
+ vr({ size: o }),
1084
+ fr({ focusMode: e }),
1085
+ br({ mode: t })
1086
1086
  )
1087
- }), kr = ({
1087
+ }), Cr = ({
1088
1088
  mode: e,
1089
1089
  spacing: t
1090
1090
  }) => C(
1091
- Po,
1091
+ Lo,
1092
1092
  gr(t),
1093
1093
  "inline-flex p-1",
1094
1094
  "rounded-sm",
@@ -1098,7 +1098,7 @@ const gr = (e) => {
1098
1098
  "bg-surface-light text-copy-dark dark:bg-surface-darker dark:text-copy-lighter": e === "system",
1099
1099
  "bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
1100
1100
  }
1101
- ), Cr = ({
1101
+ ), wr = ({
1102
1102
  children: e,
1103
1103
  value: t,
1104
1104
  onValueChange: o,
@@ -1110,9 +1110,9 @@ const gr = (e) => {
1110
1110
  spacing: h,
1111
1111
  ...d
1112
1112
  }) => {
1113
- const c = kr({ mode: a, spacing: h }), p = { size: i, focusMode: s, mode: a };
1114
- return /* @__PURE__ */ r(Tt.Provider, { value: p, children: /* @__PURE__ */ r(
1115
- mr,
1113
+ const c = Cr({ mode: a, spacing: h }), g = { size: i, focusMode: s, mode: a };
1114
+ return /* @__PURE__ */ r(Tt.Provider, { value: g, children: /* @__PURE__ */ r(
1115
+ hr,
1116
1116
  {
1117
1117
  disabled: n,
1118
1118
  className: c,
@@ -1124,14 +1124,14 @@ const gr = (e) => {
1124
1124
  children: e
1125
1125
  }
1126
1126
  ) });
1127
- }, wr = ({ value: e, disabled: t }) => {
1128
- const { size: o, focusMode: n, mode: a } = B(Tt), { itemClass: s, wrapperClass: i } = yr({
1127
+ }, Nr = ({ value: e, disabled: t }) => {
1128
+ const { size: o, focusMode: n, mode: a } = B(Tt), { itemClass: s, wrapperClass: i } = kr({
1129
1129
  focusMode: n,
1130
1130
  mode: a,
1131
1131
  size: o
1132
1132
  });
1133
1133
  return /* @__PURE__ */ r("div", { className: i, children: /* @__PURE__ */ r(
1134
- hr,
1134
+ pr,
1135
1135
  {
1136
1136
  disabled: t,
1137
1137
  className: s,
@@ -1167,7 +1167,7 @@ try {
1167
1167
  });
1168
1168
  } catch {
1169
1169
  }
1170
- const Nr = (e) => {
1170
+ const Tr = (e) => {
1171
1171
  let t = "";
1172
1172
  if (typeof e == "number" || typeof e == "string")
1173
1173
  t = "m-" + e;
@@ -1176,7 +1176,7 @@ const Nr = (e) => {
1176
1176
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
1177
1177
  }
1178
1178
  return t;
1179
- }, $e = "icon", Tr = "button", Ir = "link", _r = ({
1179
+ }, $e = "icon", Ir = "button", _r = "link", Er = ({
1180
1180
  type: e,
1181
1181
  size: t,
1182
1182
  labelRight: o,
@@ -1185,13 +1185,13 @@ const Nr = (e) => {
1185
1185
  }) => {
1186
1186
  const s = "text-sm font-medium max-h-8 py-0", i = "text-base font-medium max-h-9 py-1", l = "text-lg font-medium max-h-12 py-2";
1187
1187
  switch (e) {
1188
- case Tr:
1188
+ case Ir:
1189
1189
  return C("px-4", {
1190
1190
  [s]: t === "small",
1191
1191
  [i]: t === "medium",
1192
1192
  [l]: t === "large"
1193
1193
  });
1194
- case Ir:
1194
+ case _r:
1195
1195
  return C("px-4 text-center", {
1196
1196
  [s]: t === "small",
1197
1197
  [i]: t === "medium",
@@ -1210,7 +1210,7 @@ const Nr = (e) => {
1210
1210
  "h-12 px-4 text-lg font-medium": t === "large" && (o || n)
1211
1211
  });
1212
1212
  }
1213
- }, Er = ({
1213
+ }, xr = ({
1214
1214
  mode: e,
1215
1215
  noBackground: t,
1216
1216
  noTruncate: o,
@@ -1242,7 +1242,7 @@ const Nr = (e) => {
1242
1242
  "bg-action-danger-dark text-copy-light dark:bg-action-danger-light dark:text-copy-lighter": e === "system",
1243
1243
  "bg-action-danger-light text-copy-lighter dark:bg-action-danger-dark dark:text-copy-light": e === "alt-system"
1244
1244
  });
1245
- }, xr = ({
1245
+ }, Sr = ({
1246
1246
  mode: e,
1247
1247
  disabled: t,
1248
1248
  variant: o
@@ -1270,7 +1270,7 @@ const Nr = (e) => {
1270
1270
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
1271
1271
  "hover:bg-action-danger-light-hover dark:hover:bg-action-danger-dark-hover": e === "alt-system"
1272
1272
  });
1273
- }, Sr = ({
1273
+ }, Rr = ({
1274
1274
  mode: e,
1275
1275
  disabled: t,
1276
1276
  variant: o
@@ -1298,7 +1298,7 @@ const Nr = (e) => {
1298
1298
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
1299
1299
  "active:bg-action-danger-light-active dark:active:bg-action-danger-dark-active": e === "alt-system"
1300
1300
  });
1301
- }, Rr = ({
1301
+ }, Ar = ({
1302
1302
  mode: e,
1303
1303
  noBorder: t,
1304
1304
  variant: o
@@ -1326,7 +1326,7 @@ const Nr = (e) => {
1326
1326
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
1327
1327
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
1328
1328
  });
1329
- }, Ar = ({ focusMode: e }) => C("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1329
+ }, Mr = ({ focusMode: e }) => C("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1330
1330
  "focus:outline-focus-dark": e === "dark",
1331
1331
  "focus:outline-focus-light": e === "light",
1332
1332
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -1343,7 +1343,7 @@ const Nr = (e) => {
1343
1343
  noBorder: h,
1344
1344
  labelRight: d,
1345
1345
  labelLeft: c,
1346
- spacing: p,
1346
+ spacing: g,
1347
1347
  noBackground: y,
1348
1348
  variant: u,
1349
1349
  noTruncate: m,
@@ -1351,18 +1351,18 @@ const Nr = (e) => {
1351
1351
  }) => (u || (u = "primary"), o ? C(We, t) : C(
1352
1352
  We,
1353
1353
  t,
1354
- Nr(p),
1355
- Er({ mode: n, variant: u, noBackground: y, noTruncate: m }),
1356
- _r({ type: e, size: l, labelRight: d, labelLeft: c, align: f }),
1357
- Rr({ mode: n, variant: u, noBorder: h }),
1358
- Ar({ focusMode: a }),
1359
- xr({ mode: n, variant: u, disabled: s }),
1354
+ Tr(g),
1355
+ xr({ mode: n, variant: u, noBackground: y, noTruncate: m }),
1356
+ Er({ type: e, size: l, labelRight: d, labelLeft: c, align: f }),
1357
+ Ar({ mode: n, variant: u, noBorder: h }),
1358
+ Mr({ focusMode: a }),
1360
1359
  Sr({ mode: n, variant: u, disabled: s }),
1360
+ Rr({ mode: n, variant: u, disabled: s }),
1361
1361
  {
1362
1362
  "w-full": i,
1363
1363
  "disabled:cursor-not-allowed disabled:opacity-50": s
1364
1364
  }
1365
- )), Mr = (e, t, o) => {
1365
+ )), Pr = (e, t, o) => {
1366
1366
  var n;
1367
1367
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e == null ? void 0 : e.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof o == "function" && o(e);
1368
1368
  }, Be = _.forwardRef((e, t) => {
@@ -1372,7 +1372,7 @@ const Nr = (e) => {
1372
1372
  {
1373
1373
  ref: t,
1374
1374
  onClick: (s) => {
1375
- Mr(s, n, o);
1375
+ Pr(s, n, o);
1376
1376
  },
1377
1377
  ...a
1378
1378
  }
@@ -1392,12 +1392,12 @@ const _t = _.forwardRef(
1392
1392
  noBorder: h = !1,
1393
1393
  "aria-label": d,
1394
1394
  label: c,
1395
- size: p = "medium",
1395
+ size: g = "medium",
1396
1396
  labelRight: y,
1397
1397
  labelLeft: u,
1398
1398
  spacing: m,
1399
1399
  noBackground: f = !1,
1400
- align: g = "center",
1400
+ align: p = "center",
1401
1401
  ...k
1402
1402
  }, w) => {
1403
1403
  const T = It({
@@ -1409,12 +1409,12 @@ const _t = _.forwardRef(
1409
1409
  raw: l,
1410
1410
  className: s,
1411
1411
  noBorder: h,
1412
- size: p,
1412
+ size: g,
1413
1413
  labelRight: y,
1414
1414
  labelLeft: u,
1415
1415
  spacing: m,
1416
1416
  noBackground: f,
1417
- align: g
1417
+ align: p
1418
1418
  }), E = C({
1419
1419
  "text-copy-accent-dark": o === "light" && !l,
1420
1420
  "text-copy-light": o === "dark" && !l,
@@ -1453,7 +1453,7 @@ try {
1453
1453
  });
1454
1454
  } catch {
1455
1455
  }
1456
- const Pr = _.forwardRef(
1456
+ const Lr = _.forwardRef(
1457
1457
  ({
1458
1458
  children: e,
1459
1459
  disabled: t = !1,
@@ -1466,12 +1466,12 @@ const Pr = _.forwardRef(
1466
1466
  noBorder: h = !1,
1467
1467
  "aria-label": d,
1468
1468
  label: c,
1469
- size: p = "medium",
1469
+ size: g = "medium",
1470
1470
  labelRight: y,
1471
1471
  labelLeft: u,
1472
1472
  spacing: m,
1473
1473
  noBackground: f = !1,
1474
- align: g = "center",
1474
+ align: p = "center",
1475
1475
  active: k = !1,
1476
1476
  ...w
1477
1477
  }, T) => {
@@ -1484,12 +1484,12 @@ const Pr = _.forwardRef(
1484
1484
  raw: l,
1485
1485
  className: s,
1486
1486
  noBorder: h,
1487
- size: p,
1487
+ size: g,
1488
1488
  labelRight: y,
1489
1489
  labelLeft: u,
1490
1490
  spacing: m,
1491
1491
  noBackground: f,
1492
- align: g
1492
+ align: p
1493
1493
  }), M = C({
1494
1494
  "text-copy-accent-dark": o === "light" && !l,
1495
1495
  "text-copy-light": o === "dark" && !l,
@@ -1530,7 +1530,7 @@ const Pr = _.forwardRef(
1530
1530
  ) });
1531
1531
  }
1532
1532
  );
1533
- Pr.displayName = "ButtonSort";
1533
+ Lr.displayName = "ButtonSort";
1534
1534
  /*!
1535
1535
  @versini/ui-spacing v1.1.0
1536
1536
  © 2024 gizmette.com
@@ -1544,7 +1544,7 @@ try {
1544
1544
  });
1545
1545
  } catch {
1546
1546
  }
1547
- const Lr = (e) => {
1547
+ const $r = (e) => {
1548
1548
  let t = "";
1549
1549
  if (typeof e == "number" || typeof e == "string")
1550
1550
  t = "m-" + e;
@@ -1553,7 +1553,7 @@ const Lr = (e) => {
1553
1553
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
1554
1554
  }
1555
1555
  return t;
1556
- }, $r = ({
1556
+ }, Br = ({
1557
1557
  children: e,
1558
1558
  fill: t,
1559
1559
  viewBox: o,
@@ -1565,7 +1565,7 @@ const Lr = (e) => {
1565
1565
  semantic: h = !1,
1566
1566
  ...d
1567
1567
  }) => {
1568
- const c = Lr(i), p = C(
1568
+ const c = $r(i), g = C(
1569
1569
  c,
1570
1570
  n || s
1571
1571
  );
@@ -1574,7 +1574,7 @@ const Lr = (e) => {
1574
1574
  "svg",
1575
1575
  {
1576
1576
  xmlns: "http://www.w3.org/2000/svg",
1577
- className: p,
1577
+ className: g,
1578
1578
  viewBox: o || a,
1579
1579
  fill: t || "currentColor",
1580
1580
  role: "img",
@@ -1600,7 +1600,7 @@ try {
1600
1600
  });
1601
1601
  } catch {
1602
1602
  }
1603
- const Br = ({
1603
+ const Vr = ({
1604
1604
  className: e,
1605
1605
  viewBox: t,
1606
1606
  spacing: o,
@@ -1608,7 +1608,7 @@ const Br = ({
1608
1608
  monotone: a,
1609
1609
  ...s
1610
1610
  }) => /* @__PURE__ */ r(
1611
- $r,
1611
+ Br,
1612
1612
  {
1613
1613
  defaultViewBox: "0 0 384 512",
1614
1614
  defaultClassName: "size-5",
@@ -1633,7 +1633,7 @@ try {
1633
1633
  });
1634
1634
  } catch {
1635
1635
  }
1636
- const ne = "panel", pe = "messagebox", Vr = ({
1636
+ const ne = "panel", ge = "messagebox", zr = ({
1637
1637
  className: e,
1638
1638
  kind: t,
1639
1639
  borderMode: o
@@ -1641,23 +1641,23 @@ const ne = "panel", pe = "messagebox", Vr = ({
1641
1641
  main: C("prose prose-lighter flex flex-col bg-surface-medium", {
1642
1642
  [`${Ke} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === ne,
1643
1643
  [`${Ke} w-full sm:w-[95%] md:max-w-2xl`]: t === ne && !e,
1644
- [`${je} rounded-lg border-2`]: t === pe,
1645
- [`${je} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === pe && !e,
1644
+ [`${je} rounded-lg border-2`]: t === ge,
1645
+ [`${je} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === ge && !e,
1646
1646
  [`${e}`]: !!e,
1647
1647
  "sm:border-border-dark": o === "dark" && t === ne,
1648
1648
  "sm:border-border-accent": o === "light" && t === ne,
1649
- "border-border-dark": o === "dark" && t === pe,
1650
- "border-border-accent": o === "light" && t === pe
1649
+ "border-border-dark": o === "dark" && t === ge,
1650
+ "border-border-accent": o === "light" && t === ge
1651
1651
  }),
1652
1652
  content: "flex flex-col py-2 sm:py-4 sm:px-4 px-2 overflow-y-auto",
1653
1653
  footer: "flex flex-grow flex-col sm:p-4 p-2",
1654
1654
  header: "sm:p-4 mb-0 p-2",
1655
1655
  close: "sm:p-4 p-2"
1656
- }), ge = (e) => no(
1656
+ }), pe = (e) => ao(
1657
1657
  () => import("./index.DaIz2ggm.CWKMlVvg.js").then((t) => ({
1658
1658
  default: t[e]
1659
1659
  }))
1660
- ), zr = ge("Modal"), Or = ge("ModalClose"), Dr = ge("ModalContent"), Hr = ge("ModalDescription"), Fr = ge("ModalHeading"), Z = ({
1660
+ ), Or = pe("Modal"), Dr = pe("ModalClose"), Hr = pe("ModalContent"), Fr = pe("ModalDescription"), Gr = pe("ModalHeading"), Z = ({
1661
1661
  open: e,
1662
1662
  onOpenChange: t,
1663
1663
  title: o,
@@ -1667,13 +1667,13 @@ const ne = "panel", pe = "messagebox", Vr = ({
1667
1667
  kind: i = ne,
1668
1668
  className: l
1669
1669
  }) => {
1670
- const h = le(""), d = Vr({ className: l, kind: i, borderMode: s });
1670
+ const h = le(""), d = zr({ className: l, kind: i, borderMode: s });
1671
1671
  return q(() => (e && (h.current = document.title, document.title = `${o} | ${h.current}`), () => {
1672
1672
  e && (document.title = h.current);
1673
- }), [o, e]), /* @__PURE__ */ r(ro, { fallback: /* @__PURE__ */ r("div", {}), children: e && /* @__PURE__ */ r(zr, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Dr, { className: d.main, children: [
1673
+ }), [o, e]), /* @__PURE__ */ r(no, { fallback: /* @__PURE__ */ r("div", {}), children: e && /* @__PURE__ */ r(Or, { open: e, onOpenChange: t, children: /* @__PURE__ */ v(Hr, { className: d.main, children: [
1674
1674
  /* @__PURE__ */ v("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1675
1675
  /* @__PURE__ */ r(
1676
- Or,
1676
+ Dr,
1677
1677
  {
1678
1678
  className: d.close,
1679
1679
  trigger: /* @__PURE__ */ r(
@@ -1683,17 +1683,17 @@ const ne = "panel", pe = "messagebox", Vr = ({
1683
1683
  focusMode: "light",
1684
1684
  noBorder: !0,
1685
1685
  label: "Close",
1686
- children: /* @__PURE__ */ r(Br, {})
1686
+ children: /* @__PURE__ */ r(Vr, {})
1687
1687
  }
1688
1688
  )
1689
1689
  }
1690
1690
  ),
1691
- /* @__PURE__ */ r(Fr, { className: d.header, children: o })
1691
+ /* @__PURE__ */ r(Gr, { className: d.header, children: o })
1692
1692
  ] }),
1693
- /* @__PURE__ */ r(Hr, { className: d.content, children: n }),
1693
+ /* @__PURE__ */ r(Fr, { className: d.content, children: n }),
1694
1694
  a && /* @__PURE__ */ r("div", { className: d.footer, children: a })
1695
1695
  ] }) }) });
1696
- }, Gr = ({ stats: e }) => {
1696
+ }, Ur = ({ stats: e }) => {
1697
1697
  const t = (e == null ? void 0 : e.plugins) || [], o = (e == null ? void 0 : e.version) || "", n = (e == null ? void 0 : e.models) || [], a = ce(), s = ce();
1698
1698
  return /* @__PURE__ */ v(A, { children: [
1699
1699
  /* @__PURE__ */ r("div", { className: "mb-4", children: /* @__PURE__ */ r(
@@ -1702,8 +1702,8 @@ const ne = "panel", pe = "messagebox", Vr = ({
1702
1702
  header: N.ABOUT.TITLE_CLIENT,
1703
1703
  className: "prose-dark dark:prose-lighter",
1704
1704
  children: ie(a, {
1705
- [N.ABOUT.VERSION]: "5.8.1",
1706
- [N.ABOUT.BUILD_TIMESTAMP]: "12/27/2024 02:06 PM EST"
1705
+ [N.ABOUT.VERSION]: "5.8.2",
1706
+ [N.ABOUT.BUILD_TIMESTAMP]: "12/27/2024 02:51 PM EST"
1707
1707
  })
1708
1708
  }
1709
1709
  ) }),
@@ -1720,13 +1720,13 @@ const ne = "panel", pe = "messagebox", Vr = ({
1720
1720
  }
1721
1721
  )
1722
1722
  ] });
1723
- }, Ur = ({
1723
+ }, jr = ({
1724
1724
  open: e,
1725
1725
  onOpenChange: t
1726
1726
  }) => {
1727
1727
  const { serverStats: o } = B(ue);
1728
- return /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: At, children: /* @__PURE__ */ r(Gr, { stats: o }) });
1729
- }, jr = (e) => Xe(e), Kr = (e) => {
1728
+ return /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: At, children: /* @__PURE__ */ r(Ur, { stats: o }) });
1729
+ }, Kr = (e) => Xe(e), Wr = (e) => {
1730
1730
  if (!e || e.length === 0)
1731
1731
  return Pt;
1732
1732
  const t = e.filter(
@@ -1737,9 +1737,9 @@ const ne = "panel", pe = "messagebox", Vr = ({
1737
1737
  ).map((o) => o.message.processingTime);
1738
1738
  return $t({
1739
1739
  data: t,
1740
- formatter: jr
1740
+ formatter: Kr
1741
1741
  });
1742
- }, Wr = ({
1742
+ }, Yr = ({
1743
1743
  isAuthenticated: e,
1744
1744
  stats: t
1745
1745
  }) => {
@@ -1754,7 +1754,7 @@ const ne = "panel", pe = "messagebox", Vr = ({
1754
1754
  [N.CURRENT_STATISTICS.MODEL_NAME]: (o == null ? void 0 : o.model) || ae,
1755
1755
  [N.CURRENT_STATISTICS.TOKENS_USED]: o == null ? void 0 : o.usage,
1756
1756
  [N.CURRENT_STATISTICS.REMAINING_TOKENS]: Mt.format(n),
1757
- [N.CURRENT_STATISTICS.PROCESSING_TIME]: Kr(o == null ? void 0 : o.messages)
1757
+ [N.CURRENT_STATISTICS.PROCESSING_TIME]: Wr(o == null ? void 0 : o.messages)
1758
1758
  })
1759
1759
  }
1760
1760
  ) }),
@@ -1772,7 +1772,7 @@ const ne = "panel", pe = "messagebox", Vr = ({
1772
1772
  }
1773
1773
  )
1774
1774
  ] }) : null;
1775
- }, Yr = ({
1775
+ }, qr = ({
1776
1776
  open: e,
1777
1777
  onOpenChange: t
1778
1778
  }) => {
@@ -1794,7 +1794,7 @@ const ne = "panel", pe = "messagebox", Vr = ({
1794
1794
  } catch {
1795
1795
  }
1796
1796
  })();
1797
- }, [e, s, i]), /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Ze, children: /* @__PURE__ */ r(Wr, { isAuthenticated: a, stats: o }) });
1797
+ }, [e, s, i]), /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Ze, children: /* @__PURE__ */ r(Yr, { isAuthenticated: a, stats: o }) });
1798
1798
  }, Et = ({
1799
1799
  showConfirmation: e,
1800
1800
  setShowConfirmation: t,
@@ -1836,7 +1836,7 @@ const ne = "panel", pe = "messagebox", Vr = ({
1836
1836
  ] }),
1837
1837
  children: n
1838
1838
  }
1839
- ), qr = async (e, t, o, n) => {
1839
+ ), Xr = async (e, t, o, n) => {
1840
1840
  try {
1841
1841
  const a = await D({
1842
1842
  accessToken: n,
@@ -1861,7 +1861,7 @@ const ne = "panel", pe = "messagebox", Vr = ({
1861
1861
  }, Ye = (e) => {
1862
1862
  const t = e[0];
1863
1863
  return Ot(t == null ? void 0 : t.content, 100);
1864
- }, Xr = ({
1864
+ }, Zr = ({
1865
1865
  filteredHistory: e,
1866
1866
  setFilteredHistory: t,
1867
1867
  dispatch: o,
@@ -1872,48 +1872,48 @@ const ne = "panel", pe = "messagebox", Vr = ({
1872
1872
  id: 0,
1873
1873
  timestamp: "",
1874
1874
  message: ""
1875
- }), [l, h] = x(!1), { state: d, dispatch: c } = B(Je), [, p] = he({
1875
+ }), [l, h] = x(!1), { state: d, dispatch: c } = B(Je), [, g] = he({
1876
1876
  key: me + Vt,
1877
1877
  initialValue: d.sortDirection
1878
1878
  }), y = e.data.sort(
1879
- (g, k) => {
1879
+ (p, k) => {
1880
1880
  switch (d.sortedCell) {
1881
1881
  case "timestamp":
1882
1882
  if (d.sortDirection === O.ASC)
1883
- return new Date(g[d.sortedCell]).getTime() - new Date(k[d.sortedCell]).getTime();
1883
+ return new Date(p[d.sortedCell]).getTime() - new Date(k[d.sortedCell]).getTime();
1884
1884
  if (d.sortDirection === O.DESC)
1885
- return new Date(k[d.sortedCell]).getTime() - new Date(g[d.sortedCell]).getTime();
1885
+ return new Date(k[d.sortedCell]).getTime() - new Date(p[d.sortedCell]).getTime();
1886
1886
  break;
1887
1887
  default:
1888
1888
  return 0;
1889
1889
  }
1890
1890
  return 0;
1891
1891
  }
1892
- ), u = (g) => {
1892
+ ), u = (p) => {
1893
1893
  switch (d.sortDirection) {
1894
1894
  case !1:
1895
- p(O.ASC), c({
1895
+ g(O.ASC), c({
1896
1896
  type: we,
1897
1897
  payload: {
1898
- sortedCell: g,
1898
+ sortedCell: p,
1899
1899
  sortDirection: O.ASC
1900
1900
  }
1901
1901
  });
1902
1902
  break;
1903
1903
  case O.ASC:
1904
- p(O.DESC), c({
1904
+ g(O.DESC), c({
1905
1905
  type: we,
1906
1906
  payload: {
1907
- sortedCell: g,
1907
+ sortedCell: p,
1908
1908
  sortDirection: O.DESC
1909
1909
  }
1910
1910
  });
1911
1911
  break;
1912
1912
  default:
1913
- p(O.ASC), c({
1913
+ g(O.ASC), c({
1914
1914
  type: we,
1915
1915
  payload: {
1916
- sortedCell: g,
1916
+ sortedCell: p,
1917
1917
  sortDirection: O.ASC
1918
1918
  }
1919
1919
  });
@@ -1927,14 +1927,14 @@ const ne = "panel", pe = "messagebox", Vr = ({
1927
1927
  showConfirmation: l,
1928
1928
  setShowConfirmation: h,
1929
1929
  action: async () => {
1930
- const g = i.current;
1930
+ const p = i.current;
1931
1931
  try {
1932
1932
  const k = await D({
1933
1933
  accessToken: await s(),
1934
1934
  type: H.DELETE_CHAT,
1935
1935
  params: {
1936
1936
  userId: (a == null ? void 0 : a.username) || "",
1937
- id: g.id
1937
+ id: p.id
1938
1938
  }
1939
1939
  });
1940
1940
  k.status === 200 && t({ data: k.data });
@@ -1963,10 +1963,10 @@ const ne = "panel", pe = "messagebox", Vr = ({
1963
1963
  ]
1964
1964
  }
1965
1965
  ),
1966
- /* @__PURE__ */ v(Zt, { stickyHeader: !0, stickyFooter: !0, compact: !0, wrapperClassName: "max-h-[60vh]", children: [
1967
- /* @__PURE__ */ r(Jt, { children: /* @__PURE__ */ v(Te, { children: [
1966
+ /* @__PURE__ */ v(Jt, { stickyHeader: !0, stickyFooter: !0, compact: !0, wrapperClassName: "max-h-[60vh]", children: [
1967
+ /* @__PURE__ */ r(Qt, { children: /* @__PURE__ */ v(Te, { children: [
1968
1968
  /* @__PURE__ */ r(
1969
- Qt,
1969
+ eo,
1970
1970
  {
1971
1971
  buttonClassName: "text-xs sm:text-sm",
1972
1972
  cellId: "timestamp",
@@ -1983,16 +1983,16 @@ const ne = "panel", pe = "messagebox", Vr = ({
1983
1983
  /* @__PURE__ */ r(F, { className: "text-xs sm:text-sm", children: "Model" }),
1984
1984
  /* @__PURE__ */ r(F, { className: "text-xs sm:text-sm text-right", children: "Actions" })
1985
1985
  ] }) }),
1986
- /* @__PURE__ */ r(eo, { children: y.map((g, k) => {
1986
+ /* @__PURE__ */ r(to, { children: y.map((p, k) => {
1987
1987
  var w;
1988
- return ((w = g == null ? void 0 : g.messages) == null ? void 0 : w.length) > 0 ? /* @__PURE__ */ v(Te, { children: [
1988
+ return ((w = p == null ? void 0 : p.messages) == null ? void 0 : w.length) > 0 ? /* @__PURE__ */ v(Te, { children: [
1989
1989
  /* @__PURE__ */ r(
1990
1990
  F,
1991
1991
  {
1992
1992
  component: "th",
1993
1993
  scope: "row",
1994
1994
  className: "text-gray-400 sm:whitespace-nowrap text-xs sm:text-sm max-w-20 sm:max-w-none",
1995
- children: g.timestamp
1995
+ children: p.timestamp
1996
1996
  }
1997
1997
  ),
1998
1998
  /* @__PURE__ */ r(
@@ -2002,12 +2002,12 @@ const ne = "panel", pe = "messagebox", Vr = ({
2002
2002
  style: {
2003
2003
  wordBreak: "break-word"
2004
2004
  },
2005
- children: Ye(g.messages)
2005
+ children: Ye(p.messages)
2006
2006
  }
2007
2007
  ),
2008
2008
  /* @__PURE__ */ r(F, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ v(Q, { alignHorizontal: "center", children: [
2009
- g.model && g.model.startsWith("claude") && /* @__PURE__ */ r(st, { className: "size-4 sm:size-5" }),
2010
- g.model && g.model.startsWith("gpt") && /* @__PURE__ */ r(it, { className: "size-4 sm:size-5" })
2009
+ p.model && p.model.startsWith("claude") && /* @__PURE__ */ r(st, { className: "size-4 sm:size-5" }),
2010
+ p.model && p.model.startsWith("gpt") && /* @__PURE__ */ r(it, { className: "size-4 sm:size-5" })
2011
2011
  ] }) }),
2012
2012
  /* @__PURE__ */ r(F, { className: "px-2", children: /* @__PURE__ */ v("div", { className: "flex justify-end gap-2", children: [
2013
2013
  /* @__PURE__ */ r(
@@ -2018,14 +2018,14 @@ const ne = "panel", pe = "messagebox", Vr = ({
2018
2018
  label: "Restore chat",
2019
2019
  onClick: async () => {
2020
2020
  const T = await s();
2021
- qr(
2022
- g,
2021
+ Xr(
2022
+ p,
2023
2023
  o,
2024
2024
  n,
2025
2025
  T
2026
2026
  );
2027
2027
  },
2028
- children: /* @__PURE__ */ r(Ro, { className: "h-3 w-3", monotone: !0 })
2028
+ children: /* @__PURE__ */ r(Ao, { className: "h-3 w-3", monotone: !0 })
2029
2029
  }
2030
2030
  ),
2031
2031
  /* @__PURE__ */ r(
@@ -2036,18 +2036,18 @@ const ne = "panel", pe = "messagebox", Vr = ({
2036
2036
  label: "Delete chat",
2037
2037
  onClick: () => {
2038
2038
  i.current = {
2039
- id: g.id,
2040
- timestamp: g.timestamp,
2041
- message: Ye(g.messages)
2039
+ id: p.id,
2040
+ timestamp: p.timestamp,
2041
+ message: Ye(p.messages)
2042
2042
  }, h(!l);
2043
2043
  },
2044
- children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(_o, { className: "h-3 w-3", monotone: !0 }) })
2044
+ children: /* @__PURE__ */ r("div", { className: "text-red-400", children: /* @__PURE__ */ r(Eo, { className: "h-3 w-3", monotone: !0 }) })
2045
2045
  }
2046
2046
  )
2047
2047
  ] }) })
2048
- ] }, `${N.HISTORY.TITLE}-${g.id}-${k}`) : null;
2048
+ ] }, `${N.HISTORY.TITLE}-${p.id}-${k}`) : null;
2049
2049
  }) }),
2050
- /* @__PURE__ */ r(to, { children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(F, { colSpan: 4, children: /* @__PURE__ */ r("div", { children: be(
2050
+ /* @__PURE__ */ r(oo, { children: /* @__PURE__ */ r(Te, { children: /* @__PURE__ */ r(F, { colSpan: 4, children: /* @__PURE__ */ r("div", { children: be(
2051
2051
  `${e.data.length} chat`,
2052
2052
  e.data.length
2053
2053
  ) }) }) }) })
@@ -2058,19 +2058,19 @@ function qe(e, t) {
2058
2058
  return t ? e.filter(
2059
2059
  (o) => o.messages.some(
2060
2060
  (n) => n.content !== null && n.content.toLowerCase().includes(t.toLowerCase())
2061
- )
2061
+ ) || o.timestamp && o.timestamp.toLowerCase().includes(t.toLowerCase())
2062
2062
  ) : e;
2063
2063
  }
2064
- const Zr = ({
2064
+ const Jr = ({
2065
2065
  onOpenChange: e,
2066
2066
  historyData: t
2067
2067
  }) => {
2068
2068
  const { isAuthenticated: o } = X(), n = le(null), { dispatch: a } = B(ue), { state: s, dispatch: i } = B(Je), [, l] = he({
2069
2069
  key: me + Dt,
2070
2070
  initialValue: s.searchString
2071
- }), h = ao(() => t, [t]), [d, c] = x({
2071
+ }), h = so(() => t, [t]), [d, c] = x({
2072
2072
  data: h
2073
- }), p = (m) => {
2073
+ }), g = (m) => {
2074
2074
  const f = qe(h, m);
2075
2075
  c({
2076
2076
  data: f
@@ -2078,9 +2078,9 @@ const Zr = ({
2078
2078
  type: Ht,
2079
2079
  payload: { searchString: m }
2080
2080
  });
2081
- }, y = (m) => {
2082
- p(m.target.value);
2083
- }, u = async (m) => {
2081
+ }, y = Ft((m) => {
2082
+ g(m.target.value);
2083
+ }, 200), u = async (m) => {
2084
2084
  m.preventDefault();
2085
2085
  };
2086
2086
  return q(() => {
@@ -2114,7 +2114,7 @@ const Zr = ({
2114
2114
  size: "small",
2115
2115
  onClick: () => {
2116
2116
  var m;
2117
- p(""), (m = n.current) != null && m.value && (n.current.value = "", n.current.focus());
2117
+ g(""), (m = n.current) != null && m.value && (n.current.value = "", n.current.focus());
2118
2118
  },
2119
2119
  children: "Reset"
2120
2120
  }
@@ -2123,7 +2123,7 @@ const Zr = ({
2123
2123
  }
2124
2124
  ) }),
2125
2125
  /* @__PURE__ */ r("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ r(
2126
- Xr,
2126
+ Zr,
2127
2127
  {
2128
2128
  filteredHistory: d,
2129
2129
  setFilteredHistory: c,
@@ -2132,11 +2132,11 @@ const Zr = ({
2132
2132
  }
2133
2133
  ) })
2134
2134
  ] }) : null;
2135
- }, Jr = ({
2135
+ }, Qr = ({
2136
2136
  open: e,
2137
2137
  onOpenChange: t,
2138
2138
  historyData: o
2139
- }) => /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Ft, children: /* @__PURE__ */ r(Zr, { onOpenChange: t, historyData: o }) });
2139
+ }) => /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Gt, children: /* @__PURE__ */ r(Jr, { onOpenChange: t, historyData: o }) });
2140
2140
  /*!
2141
2141
  @versini/ui-toggle v1.4.0
2142
2142
  © 2024 gizmette.com
@@ -2150,7 +2150,7 @@ try {
2150
2150
  });
2151
2151
  } catch {
2152
2152
  }
2153
- const Qr = "av-toggle";
2153
+ const en = "av-toggle";
2154
2154
  /*!
2155
2155
  @versini/ui-spacing v1.1.0
2156
2156
  © 2024 gizmette.com
@@ -2164,7 +2164,7 @@ try {
2164
2164
  });
2165
2165
  } catch {
2166
2166
  }
2167
- const en = (e) => {
2167
+ const tn = (e) => {
2168
2168
  let t = "";
2169
2169
  if (typeof e == "number" || typeof e == "string")
2170
2170
  t = "m-" + e;
@@ -2173,7 +2173,7 @@ const en = (e) => {
2173
2173
  (e == null ? void 0 : e.t) !== void 0 && o.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && o.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && o.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && o.push(`ml-${e.l}`), t = o.join(" ");
2174
2174
  }
2175
2175
  return t;
2176
- }, tn = () => C("peer", "h-6", "w-11", "rounded-full"), on = ({
2176
+ }, on = () => C("peer", "h-6", "w-11", "rounded-full"), rn = ({
2177
2177
  focusMode: e
2178
2178
  }) => C(
2179
2179
  "peer-focus:outline",
@@ -2185,14 +2185,14 @@ const en = (e) => {
2185
2185
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
2186
2186
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
2187
2187
  }
2188
- ), rn = () => C(
2188
+ ), nn = () => C(
2189
2189
  "peer-checked:after:translate-x-full",
2190
2190
  // background color when checked
2191
2191
  "peer-checked:bg-violet-500",
2192
2192
  // knob circle and border color when checked
2193
2193
  "peer-checked:after:bg-white",
2194
2194
  "peer-checked:after:border-white"
2195
- ), nn = () => C(
2195
+ ), an = () => C(
2196
2196
  "after:left-[2px]",
2197
2197
  "after:top-[2px]",
2198
2198
  "after:border",
@@ -2204,7 +2204,7 @@ const en = (e) => {
2204
2204
  "after:rounded-full",
2205
2205
  "after:transition-all",
2206
2206
  "after:content-['']"
2207
- ), an = ({
2207
+ ), sn = ({
2208
2208
  mode: e,
2209
2209
  noBorder: t
2210
2210
  }) => C({
@@ -2213,7 +2213,7 @@ const en = (e) => {
2213
2213
  "border-border-light bg-surface-darker": e === "dark",
2214
2214
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
2215
2215
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
2216
- }), sn = ({
2216
+ }), ln = ({
2217
2217
  mode: e,
2218
2218
  labelHidden: t
2219
2219
  }) => t ? "sr-only" : C("ml-2 text-sm", {
@@ -2221,11 +2221,11 @@ const en = (e) => {
2221
2221
  "text-copy-lighter": e === "dark",
2222
2222
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
2223
2223
  "text-copy-dark dark:text-copy-lighter": e === "system"
2224
- }), ln = ({ spacing: e }) => C(
2225
- Qr,
2224
+ }), cn = ({ spacing: e }) => C(
2225
+ en,
2226
2226
  "relative flex cursor-pointer items-center",
2227
- en(e)
2228
- ), cn = ({
2227
+ tn(e)
2228
+ ), dn = ({
2229
2229
  mode: e,
2230
2230
  focusMode: t,
2231
2231
  labelHidden: o,
@@ -2233,15 +2233,15 @@ const en = (e) => {
2233
2233
  noBorder: a
2234
2234
  }) => ({
2235
2235
  toggle: C(
2236
- tn(),
2237
- an({ mode: e, noBorder: a }),
2238
- on({ focusMode: t }),
2239
- nn(),
2240
- rn()
2236
+ on(),
2237
+ sn({ mode: e, noBorder: a }),
2238
+ rn({ focusMode: t }),
2239
+ an(),
2240
+ nn()
2241
2241
  ),
2242
- label: sn({ mode: e, labelHidden: o }),
2242
+ label: ln({ mode: e, labelHidden: o }),
2243
2243
  input: "peer sr-only",
2244
- wrapper: ln({ spacing: n })
2244
+ wrapper: cn({ spacing: n })
2245
2245
  }), se = ({
2246
2246
  checked: e = !1,
2247
2247
  onChange: t,
@@ -2253,14 +2253,14 @@ const en = (e) => {
2253
2253
  spacing: l,
2254
2254
  noBorder: h = !1
2255
2255
  }) => {
2256
- const d = cn({
2256
+ const d = dn({
2257
2257
  mode: s,
2258
2258
  focusMode: i,
2259
2259
  labelHidden: n,
2260
2260
  spacing: l,
2261
2261
  noBorder: h
2262
- }), c = (p) => {
2263
- t == null || t(p.target.checked);
2262
+ }), c = (g) => {
2263
+ t == null || t(g.target.checked);
2264
2264
  };
2265
2265
  return /* @__PURE__ */ v("label", { className: d.wrapper, children: [
2266
2266
  /* @__PURE__ */ r(
@@ -2276,7 +2276,7 @@ const en = (e) => {
2276
2276
  /* @__PURE__ */ r("div", { className: d.toggle }),
2277
2277
  /* @__PURE__ */ r("span", { className: d.label, children: o })
2278
2278
  ] });
2279
- }, dn = ({
2279
+ }, un = ({
2280
2280
  open: e,
2281
2281
  onOpenChange: t
2282
2282
  }) => {
@@ -2316,7 +2316,7 @@ const en = (e) => {
2316
2316
  loadingLocation: !0
2317
2317
  }));
2318
2318
  try {
2319
- const u = Date.now(), m = await Ut(), f = await D({
2319
+ const u = Date.now(), m = await jt(), f = await D({
2320
2320
  accessToken: await n(),
2321
2321
  type: H.GET_LOCATION,
2322
2322
  params: {
@@ -2341,7 +2341,7 @@ const en = (e) => {
2341
2341
  }));
2342
2342
  } catch {
2343
2343
  }
2344
- }, p = (u) => {
2344
+ }, g = (u) => {
2345
2345
  i((m) => ({
2346
2346
  ...m,
2347
2347
  engine: u ? Ne : fe
@@ -2436,7 +2436,7 @@ const en = (e) => {
2436
2436
  noBorder: !0,
2437
2437
  label: "OpenAI",
2438
2438
  name: "OpenAI",
2439
- onChange: p,
2439
+ onChange: g,
2440
2440
  checked: s.engine === Ne
2441
2441
  }
2442
2442
  ),
@@ -2476,7 +2476,7 @@ const en = (e) => {
2476
2476
  children: [
2477
2477
  /* @__PURE__ */ v("p", { children: [
2478
2478
  "What would you like ",
2479
- /* @__PURE__ */ r("em", { children: Gt }),
2479
+ /* @__PURE__ */ r("em", { children: Ut }),
2480
2480
  " to know about you to provide better responses?"
2481
2481
  ] }),
2482
2482
  /* @__PURE__ */ r(
@@ -2544,29 +2544,29 @@ const en = (e) => {
2544
2544
  ] })
2545
2545
  }
2546
2546
  ) });
2547
- }, un = ({
2547
+ }, mn = ({
2548
2548
  open: e,
2549
2549
  onOpenChange: t
2550
2550
  }) => {
2551
- const { state: o, dispatch: n } = B(jt), { getAccessToken: a, user: s } = X(), [i, l] = x({
2551
+ const { state: o, dispatch: n } = B(Kt), { getAccessToken: a, user: s } = X(), [i, l] = x({
2552
2552
  tags: [...o.tags]
2553
2553
  }), h = ({
2554
2554
  slot: c,
2555
- checked: p,
2555
+ checked: g,
2556
2556
  label: y,
2557
2557
  content: u
2558
2558
  }) => {
2559
2559
  l((m) => {
2560
- const f = m.tags, g = {
2560
+ const f = m.tags, p = {
2561
2561
  slot: c,
2562
2562
  label: y,
2563
2563
  content: u,
2564
- enabled: p
2564
+ enabled: g
2565
2565
  }, k = f.findIndex((w) => w.slot === c);
2566
2566
  return k === -1 ? {
2567
2567
  ...m,
2568
- tags: [...f, { ...g, slot: c }]
2569
- } : (f[k] = g, {
2568
+ tags: [...f, { ...p, slot: c }]
2569
+ } : (f[k] = p, {
2570
2570
  ...m,
2571
2571
  tags: [...f]
2572
2572
  });
@@ -2582,7 +2582,7 @@ const en = (e) => {
2582
2582
  tags: i.tags
2583
2583
  }
2584
2584
  }), n({
2585
- type: Wt,
2585
+ type: Yt,
2586
2586
  payload: {
2587
2587
  tags: i.tags
2588
2588
  }
@@ -2631,7 +2631,7 @@ const en = (e) => {
2631
2631
  }
2632
2632
  ),
2633
2633
  children: [
2634
- /* @__PURE__ */ r("p", { children: Kt }),
2634
+ /* @__PURE__ */ r("p", { children: Wt }),
2635
2635
  i.tags && i.tags.map((c) => /* @__PURE__ */ v(
2636
2636
  $,
2637
2637
  {
@@ -2646,11 +2646,11 @@ const en = (e) => {
2646
2646
  label: "Label",
2647
2647
  name: `tag${c.slot}-label`,
2648
2648
  value: c.label,
2649
- onChange: (p) => {
2649
+ onChange: (g) => {
2650
2650
  h({
2651
2651
  slot: c.slot,
2652
2652
  checked: c.enabled,
2653
- label: p.target.value,
2653
+ label: g.target.value,
2654
2654
  content: c.content
2655
2655
  });
2656
2656
  }
@@ -2662,12 +2662,12 @@ const en = (e) => {
2662
2662
  label: "Content",
2663
2663
  name: `tag${c.slot}-content`,
2664
2664
  value: c.content,
2665
- onChange: (p) => {
2665
+ onChange: (g) => {
2666
2666
  h({
2667
2667
  slot: c.slot,
2668
2668
  checked: c.enabled,
2669
2669
  label: c.label,
2670
- content: p.target.value
2670
+ content: g.target.value
2671
2671
  });
2672
2672
  }
2673
2673
  }
@@ -2680,10 +2680,10 @@ const en = (e) => {
2680
2680
  noBorder: !0,
2681
2681
  label: "Enabled",
2682
2682
  name: c.slot.toString(),
2683
- onChange: (p) => {
2683
+ onChange: (g) => {
2684
2684
  h({
2685
2685
  slot: c.slot,
2686
- checked: p,
2686
+ checked: g,
2687
2687
  label: c.label,
2688
2688
  content: c.content
2689
2689
  });
@@ -2698,26 +2698,26 @@ const en = (e) => {
2698
2698
  ]
2699
2699
  }
2700
2700
  );
2701
- }, mn = () => {
2701
+ }, hn = () => {
2702
2702
  const { isAuthenticated: e, user: t, registeringForPasskey: o, authenticationType: n } = X(), [a, s] = he({
2703
- key: me + Yt,
2703
+ key: me + qt,
2704
2704
  initialValue: !1
2705
- }), [i, l] = x(!1), [h, d] = x(!1), c = ce(), p = (t == null ? void 0 : t.username) || "", y = (f) => {
2705
+ }), [i, l] = x(!1), [h, d] = x(!1), c = ce(), g = (t == null ? void 0 : t.username) || "", y = (f) => {
2706
2706
  s(f);
2707
2707
  }, u = () => {
2708
2708
  l(!i);
2709
2709
  }, m = () => {
2710
2710
  d(!h);
2711
2711
  };
2712
- return e && p ? /* @__PURE__ */ v(A, { children: [
2712
+ return e && g ? /* @__PURE__ */ v(A, { children: [
2713
2713
  i && /* @__PURE__ */ r(
2714
- dn,
2714
+ un,
2715
2715
  {
2716
2716
  open: i,
2717
2717
  onOpenChange: l
2718
2718
  }
2719
2719
  ),
2720
- h && /* @__PURE__ */ r(un, { open: h, onOpenChange: d }),
2720
+ h && /* @__PURE__ */ r(mn, { open: h, onOpenChange: d }),
2721
2721
  /* @__PURE__ */ v(
2722
2722
  $,
2723
2723
  {
@@ -2725,7 +2725,7 @@ const en = (e) => {
2725
2725
  className: "prose-dark dark:prose-lighter",
2726
2726
  children: [
2727
2727
  ie(c, {
2728
- [N.PREFERENCES.NAME]: p,
2728
+ [N.PREFERENCES.NAME]: g,
2729
2729
  [N.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2730
2730
  [N.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ r(
2731
2731
  se,
@@ -2762,7 +2762,7 @@ const en = (e) => {
2762
2762
  ]
2763
2763
  }
2764
2764
  ),
2765
- n !== qt.PASSKEY && /* @__PURE__ */ v(
2765
+ n !== Xt.PASSKEY && /* @__PURE__ */ v(
2766
2766
  $,
2767
2767
  {
2768
2768
  spacing: { t: 4 },
@@ -2787,11 +2787,11 @@ const en = (e) => {
2787
2787
  }
2788
2788
  )
2789
2789
  ] }) : null;
2790
- }, hn = ({
2790
+ }, pn = ({
2791
2791
  open: e,
2792
2792
  onOpenChange: t
2793
- }) => /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Xt, children: /* @__PURE__ */ r(mn, {}) }), Cn = () => {
2794
- const { state: e, dispatch: t, serverStats: o } = B(ue), [n, a] = x((e == null ? void 0 : e.engine) || ae), [s, i] = x(!1), [l, h] = x(!1), [d, c] = x(!1), [p, y] = x(!1), [u, m] = x([]), [f, g] = x(!1), [k, w] = x({
2793
+ }) => /* @__PURE__ */ r(Z, { open: e, onOpenChange: t, title: Zt, children: /* @__PURE__ */ r(hn, {}) }), wn = () => {
2794
+ const { state: e, dispatch: t, serverStats: o } = B(ue), [n, a] = x((e == null ? void 0 : e.engine) || ae), [s, i] = x(!1), [l, h] = x(!1), [d, c] = x(!1), [g, y] = x(!1), [u, m] = x([]), [f, p] = x(!1), [k, w] = x({
2795
2795
  done: !1,
2796
2796
  progress: !1,
2797
2797
  timestamp: Date.now()
@@ -2805,7 +2805,7 @@ const en = (e) => {
2805
2805
  }, te = () => {
2806
2806
  c(!d);
2807
2807
  }, J = () => {
2808
- y(!p);
2808
+ y(!g);
2809
2809
  }, U = async (P) => {
2810
2810
  const j = Date.now();
2811
2811
  if (P && !(!S || !e || k.progress || k.done === !0 && j - k.timestamp < 5e3)) {
@@ -2836,7 +2836,7 @@ const en = (e) => {
2836
2836
  }
2837
2837
  }
2838
2838
  }, oe = () => {
2839
- g(!f);
2839
+ p(!f);
2840
2840
  };
2841
2841
  return q(() => {
2842
2842
  e && e.engine && e.engine !== n && a(e.engine);
@@ -2845,7 +2845,7 @@ const en = (e) => {
2845
2845
  Et,
2846
2846
  {
2847
2847
  showConfirmation: f,
2848
- setShowConfirmation: g,
2848
+ setShowConfirmation: p,
2849
2849
  action: E,
2850
2850
  customStrings: {
2851
2851
  confirmAction: Oe,
@@ -2855,17 +2855,17 @@ const en = (e) => {
2855
2855
  children: /* @__PURE__ */ r("p", { children: "Are you sure you want to log out?" })
2856
2856
  }
2857
2857
  ),
2858
- /* @__PURE__ */ r(hn, { open: s, onOpenChange: i }),
2859
- /* @__PURE__ */ r(Yr, { open: l, onOpenChange: h }),
2858
+ /* @__PURE__ */ r(pn, { open: s, onOpenChange: i }),
2859
+ /* @__PURE__ */ r(qr, { open: l, onOpenChange: h }),
2860
2860
  /* @__PURE__ */ r(
2861
- Jr,
2861
+ Qr,
2862
2862
  {
2863
2863
  open: d,
2864
2864
  onOpenChange: c,
2865
2865
  historyData: u
2866
2866
  }
2867
2867
  ),
2868
- /* @__PURE__ */ r(Ur, { open: p, onOpenChange: y }),
2868
+ /* @__PURE__ */ r(jr, { open: g, onOpenChange: y }),
2869
2869
  /* @__PURE__ */ v("div", { className: "relative", children: [
2870
2870
  T && o && /* @__PURE__ */ r("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ r(
2871
2871
  xe,
@@ -2875,7 +2875,7 @@ const en = (e) => {
2875
2875
  trigger: /* @__PURE__ */ r(W, { children: e && e.engine === fe ? /* @__PURE__ */ r(st, {}) : /* @__PURE__ */ r(it, {}) }),
2876
2876
  defaultPlacement: "bottom-start",
2877
2877
  children: /* @__PURE__ */ r(K, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ r(
2878
- Cr,
2878
+ wr,
2879
2879
  {
2880
2880
  size: "small",
2881
2881
  mode: "dark",
@@ -2902,7 +2902,7 @@ const en = (e) => {
2902
2902
  } catch {
2903
2903
  }
2904
2904
  },
2905
- children: o && o.engines.map((P) => /* @__PURE__ */ r(wr, { value: P }, P))
2905
+ children: o && o.engines.map((P) => /* @__PURE__ */ r(Nr, { value: P }, P))
2906
2906
  }
2907
2907
  ) })
2908
2908
  }
@@ -2912,7 +2912,7 @@ const en = (e) => {
2912
2912
  {
2913
2913
  mode: "dark",
2914
2914
  focusMode: "light",
2915
- trigger: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(Ao, {}) }),
2915
+ trigger: /* @__PURE__ */ r(W, { children: /* @__PURE__ */ r(Mo, {}) }),
2916
2916
  defaultPlacement: "bottom-end",
2917
2917
  onOpenChange: U,
2918
2918
  children: [
@@ -2921,7 +2921,7 @@ const en = (e) => {
2921
2921
  {
2922
2922
  label: "Profile",
2923
2923
  onClick: z,
2924
- icon: /* @__PURE__ */ r(So, {})
2924
+ icon: /* @__PURE__ */ r(Ro, {})
2925
2925
  }
2926
2926
  ),
2927
2927
  /* @__PURE__ */ r(
@@ -2929,7 +2929,7 @@ const en = (e) => {
2929
2929
  {
2930
2930
  label: Ze,
2931
2931
  onClick: I,
2932
- icon: /* @__PURE__ */ r(Io, {})
2932
+ icon: /* @__PURE__ */ r(_o, {})
2933
2933
  }
2934
2934
  ),
2935
2935
  /* @__PURE__ */ r(
@@ -2937,7 +2937,7 @@ const en = (e) => {
2937
2937
  {
2938
2938
  label: "History",
2939
2939
  onClick: te,
2940
- icon: /* @__PURE__ */ r(Eo, {})
2940
+ icon: /* @__PURE__ */ r(xo, {})
2941
2941
  }
2942
2942
  ),
2943
2943
  /* @__PURE__ */ r(
@@ -2945,17 +2945,17 @@ const en = (e) => {
2945
2945
  {
2946
2946
  label: "About",
2947
2947
  onClick: J,
2948
- icon: /* @__PURE__ */ r(xo, {})
2948
+ icon: /* @__PURE__ */ r(So, {})
2949
2949
  }
2950
2950
  ),
2951
2951
  e && e.id && !e.isComponent && /* @__PURE__ */ v(A, { children: [
2952
- /* @__PURE__ */ r(Mo, {}),
2952
+ /* @__PURE__ */ r(Po, {}),
2953
2953
  /* @__PURE__ */ r(
2954
2954
  K,
2955
2955
  {
2956
2956
  label: "Log out",
2957
2957
  onClick: oe,
2958
- icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(To, { monotone: !0 }) })
2958
+ icon: /* @__PURE__ */ r("div", { className: "text-red-700", children: /* @__PURE__ */ r(Io, { monotone: !0 }) })
2959
2959
  }
2960
2960
  )
2961
2961
  ] })
@@ -2966,5 +2966,5 @@ const en = (e) => {
2966
2966
  ] });
2967
2967
  };
2968
2968
  export {
2969
- Cn as default
2969
+ wn as default
2970
2970
  };