@versini/sassysaint 5.5.0 → 5.5.2

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
- import { jsx as o, jsxs as y, Fragment as _ } from "react/jsx-runtime";
2
- import { g as M, R as P, CARDS as x, renderDataAsList as oe, pluralize as he, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, 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, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as j, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as Ne, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as we, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.UHRCFkiB.js";
3
- import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as Te, be as nr, oe as $, ge as sr, ne as ir, f as U, Fe as He, TagsContext as cr } from "./index.CqSoo2Fx.js";
1
+ import { jsx as o, jsxs as y, Fragment as R } from "react/jsx-runtime";
2
+ import { g as z, R as P, CARDS as N, renderDataAsList as oe, pluralize as he, ABOUT_TITLE as Dt, DEFAULT_AI_ENGINE as te, numberFormatter as Vt, durationFormatter as Qe, NA as $t, ROLE_ASSISTANT as Ft, extractAverage as Ht, GPT4_MAX_TOKENS as Gt, un as Y, STATS as Xe, L as H, j as _, C as F, LOCAL_STORAGE_PREFIX as se, LOCAL_STORAGE_SORT as Ut, O as K, ACTION_RESET as Je, ACTION_RESTORE as jt, ACTION_SORT as Ve, LOCAL_STORAGE_SEARCH as Kt, ye as xe, ACTION_SEARCH as Wt, debounce as Yt, HISTORY_TITLE as qt, LOCAL_STORAGE_ENGINE_TOGGLE as et, ENGINE_OPENAI as Ce, ENGINE_ANTHROPIC as me, APP_NAME as Zt, ACTION_ENGINE as tt, getCurrentGeoLocation as Qt, TAGS_DESCRIPTION as Xt, ACTION_SET_TAGS as Jt, LOCAL_STORAGE_CHAT_DETAILS as er, M as tr, z as $e, PROFILE_TITLE as rr, LOG_OUT as Fe } from "./index.CSNLtEls.js";
3
+ import { AppContext as ie, serviceCall as D, SERVICE_TYPES as V, HistoryContext as rt, E as ce, ce as or, se as ar, he as Te, be as nr, oe as $, ge as sr, ne as ir, f as j, Fe as He, TagsContext as cr, NewChatButton as lr } from "./index.DL3JlbtG.js";
4
4
  import * as f from "react";
5
- import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as B, useEffect as H } from "react";
5
+ import E, { useId as Ae, forwardRef as ot, useState as I, useRef as Z, useContext as B, useEffect as G } from "react";
6
6
  import k from "clsx";
7
- import { useFloatingTree as at, useFloatingNodeId as lr, useListItem as nt, useFloating as st, offset as dr, flip as ur, shift as mr, autoUpdate as hr, useClick as it, useRole as ct, useDismiss as lt, useListNavigation as gr, useTypeahead as fr, useInteractions as dt, useMergeRefs as Me, FloatingNode as pr, FloatingList as br, FloatingPortal as ut, FloatingFocusManager as mt, FloatingTree as vr, FloatingOverlay as yr } from "@floating-ui/react";
7
+ import { useFloatingTree as at, useFloatingNodeId as dr, useListItem as nt, useFloating as st, offset as ur, flip as mr, shift as hr, autoUpdate as gr, useClick as it, useRole as ct, useDismiss as lt, useListNavigation as fr, useTypeahead as pr, useInteractions as dt, useMergeRefs as Me, FloatingNode as br, FloatingList as vr, FloatingPortal as ut, FloatingFocusManager as mt, FloatingTree as yr, FloatingOverlay as kr } from "@floating-ui/react";
8
8
  const ht = ({
9
9
  className: e,
10
10
  viewBox: t,
@@ -12,7 +12,7 @@ const ht = ({
12
12
  monotone: a,
13
13
  ...n
14
14
  }) => /* @__PURE__ */ o(
15
- M,
15
+ z,
16
16
  {
17
17
  defaultViewBox: "0 0 256 176",
18
18
  size: "size-5",
@@ -22,14 +22,14 @@ const ht = ({
22
22
  ...n,
23
23
  children: /* @__PURE__ */ o("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" })
24
24
  }
25
- ), kr = ({
25
+ ), wr = ({
26
26
  className: e,
27
27
  viewBox: t,
28
28
  title: r,
29
29
  monotone: a,
30
30
  ...n
31
31
  }) => /* @__PURE__ */ y(
32
- M,
32
+ z,
33
33
  {
34
34
  defaultViewBox: "0 0 512 512",
35
35
  size: "size-5",
@@ -55,7 +55,7 @@ const ht = ({
55
55
  monotone: a,
56
56
  ...n
57
57
  }) => /* @__PURE__ */ y(
58
- M,
58
+ z,
59
59
  {
60
60
  defaultViewBox: "0 0 448 512",
61
61
  size: "size-5",
@@ -74,14 +74,14 @@ const ht = ({
74
74
  /* @__PURE__ */ o("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" })
75
75
  ]
76
76
  }
77
- ), wr = ({
77
+ ), Tr = ({
78
78
  className: e,
79
79
  viewBox: t,
80
80
  title: r,
81
81
  monotone: a,
82
82
  ...n
83
83
  }) => /* @__PURE__ */ y(
84
- M,
84
+ z,
85
85
  {
86
86
  defaultViewBox: "0 0 448 512",
87
87
  size: "size-5",
@@ -107,7 +107,7 @@ const ht = ({
107
107
  monotone: a,
108
108
  ...n
109
109
  }) => /* @__PURE__ */ y(
110
- M,
110
+ z,
111
111
  {
112
112
  defaultViewBox: "0 0 512 512",
113
113
  size: "size-5",
@@ -126,14 +126,14 @@ const ht = ({
126
126
  /* @__PURE__ */ o("path", { d: "M392.4 21.7L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0zM339.7 74.3L172.4 241.7c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3z" })
127
127
  ]
128
128
  }
129
- ), Tr = ({
129
+ ), Nr = ({
130
130
  className: e,
131
131
  viewBox: t,
132
132
  title: r,
133
133
  monotone: a,
134
134
  ...n
135
135
  }) => /* @__PURE__ */ y(
136
- M,
136
+ z,
137
137
  {
138
138
  defaultViewBox: "0 0 512 512",
139
139
  size: "size-5",
@@ -159,7 +159,7 @@ const ht = ({
159
159
  monotone: a,
160
160
  ...n
161
161
  }) => /* @__PURE__ */ y(
162
- M,
162
+ z,
163
163
  {
164
164
  defaultViewBox: "0 0 512 512",
165
165
  size: "size-5",
@@ -185,7 +185,7 @@ const ht = ({
185
185
  monotone: a,
186
186
  ...n
187
187
  }) => /* @__PURE__ */ o(
188
- M,
188
+ z,
189
189
  {
190
190
  defaultViewBox: "0 0 24 24",
191
191
  size: "size-5",
@@ -201,14 +201,14 @@ const ht = ({
201
201
  }
202
202
  )
203
203
  }
204
- ), Nr = ({
204
+ ), Er = ({
205
205
  className: e,
206
206
  viewBox: t,
207
207
  title: r,
208
208
  monotone: a,
209
209
  ...n
210
210
  }) => /* @__PURE__ */ y(
211
- M,
211
+ z,
212
212
  {
213
213
  defaultViewBox: "0 0 576 512",
214
214
  size: "size-5",
@@ -227,14 +227,14 @@ const ht = ({
227
227
  /* @__PURE__ */ o("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" })
228
228
  ]
229
229
  }
230
- ), Er = ({
230
+ ), Ir = ({
231
231
  className: e,
232
232
  viewBox: t,
233
233
  title: r,
234
234
  monotone: a,
235
235
  ...n
236
236
  }) => /* @__PURE__ */ y(
237
- M,
237
+ z,
238
238
  {
239
239
  defaultViewBox: "0 0 512 512",
240
240
  size: "size-5",
@@ -253,14 +253,14 @@ const ht = ({
253
253
  /* @__PURE__ */ o("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" })
254
254
  ]
255
255
  }
256
- ), Ir = ({
256
+ ), Sr = ({
257
257
  className: e,
258
258
  viewBox: t,
259
259
  title: r,
260
260
  monotone: a,
261
261
  ...n
262
262
  }) => /* @__PURE__ */ o(
263
- M,
263
+ z,
264
264
  {
265
265
  defaultViewBox: "0 0 448 512",
266
266
  size: "size-5",
@@ -305,7 +305,7 @@ const Ee = f.createContext({
305
305
  focusMode: s = "system",
306
306
  ...c
307
307
  }, g) => {
308
- const [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), w = B(Ee), C = at(), T = lr(), S = nt(), { floatingStyles: A, refs: z, context: R } = st({
308
+ const [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(null), d = Z([]), v = Z([]), C = B(Ee), w = at(), T = dr(), S = nt(), { floatingStyles: M, refs: L, context: A } = st({
309
309
  nodeId: T,
310
310
  open: l,
311
311
  onOpenChange: (J) => {
@@ -313,23 +313,23 @@ const Ee = f.createContext({
313
313
  },
314
314
  placement: a,
315
315
  strategy: "fixed",
316
- middleware: [dr({ mainAxis: 10 }), ur(), mr()],
317
- whileElementsMounted: hr
318
- }), N = it(R, {
316
+ middleware: [ur({ mainAxis: 10 }), mr(), hr()],
317
+ whileElementsMounted: gr
318
+ }), x = it(A, {
319
319
  event: "mousedown",
320
320
  toggle: !0,
321
321
  ignoreMouse: !1
322
- }), le = ct(R, { role: "menu" }), de = lt(R, { bubbles: !0 }), X = gr(R, {
322
+ }), le = ct(A, { role: "menu" }), de = lt(A, { bubbles: !0 }), X = fr(A, {
323
323
  listRef: d,
324
324
  activeIndex: h,
325
325
  nested: !1,
326
326
  onNavigate: m,
327
327
  loop: !0
328
- }), ye = fr(R, {
328
+ }), ye = pr(A, {
329
329
  listRef: v,
330
330
  onMatch: l ? m : void 0,
331
331
  activeIndex: h
332
- }), { getReferenceProps: ke, getFloatingProps: Ce, getItemProps: O } = dt([N, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
332
+ }), { getReferenceProps: ke, getFloatingProps: we, getItemProps: O } = dt([x, le, de, X, ye]), De = Ue(e) === "Button" || Ue(e) === "ButtonIcon", Bt = De ? {
333
333
  noInternalClick: De,
334
334
  focusMode: s,
335
335
  mode: i
@@ -340,26 +340,26 @@ const Ee = f.createContext({
340
340
  "aria-label": r,
341
341
  "data-open": l ? "" : void 0,
342
342
  "data-focus-inside": p ? "" : void 0,
343
- ref: Me([z.setReference, S.ref, g]),
343
+ ref: Me([L.setReference, S.ref, g]),
344
344
  ...ke(
345
- w.getItemProps({
345
+ C.getItemProps({
346
346
  ...c
347
347
  })
348
348
  )
349
349
  }
350
350
  );
351
- return H(() => {
352
- if (!C)
351
+ return G(() => {
352
+ if (!w)
353
353
  return;
354
354
  function J() {
355
355
  u(!1), n == null || n(!1);
356
356
  }
357
- return C.events.on("click", J), () => {
358
- C.events.off("click", J);
357
+ return w.events.on("click", J), () => {
358
+ w.events.off("click", J);
359
359
  };
360
- }, [C, n]), H(() => {
361
- l && C && C.events.emit("menuopen", { nodeId: T });
362
- }, [C, l, T]), /* @__PURE__ */ y(pr, { id: T, children: [
360
+ }, [w, n]), G(() => {
361
+ l && w && w.events.emit("menuopen", { nodeId: T });
362
+ }, [w, l, T]), /* @__PURE__ */ y(br, { id: T, children: [
363
363
  Ot,
364
364
  /* @__PURE__ */ o(
365
365
  Ee.Provider,
@@ -371,20 +371,20 @@ const Ee = f.createContext({
371
371
  setHasFocusInside: b,
372
372
  isOpen: l
373
373
  },
374
- children: /* @__PURE__ */ o(br, { elementsRef: d, labelsRef: v, children: l && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
374
+ children: /* @__PURE__ */ o(vr, { elementsRef: d, labelsRef: v, children: l && /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(
375
375
  mt,
376
376
  {
377
- context: R,
377
+ context: A,
378
378
  modal: !1,
379
379
  initialFocus: 0,
380
380
  returnFocus: !0,
381
381
  children: /* @__PURE__ */ o(
382
382
  "div",
383
383
  {
384
- ref: z.setFloating,
384
+ ref: L.setFloating,
385
385
  className: "rounded-md bg-surface-light p-4 shadow-sm shadow-border-dark outline-none sm:p-2",
386
- style: A,
387
- ...Ce(),
386
+ style: M,
387
+ ...we(),
388
388
  children: t
389
389
  }
390
390
  )
@@ -394,10 +394,10 @@ const Ee = f.createContext({
394
394
  )
395
395
  ] });
396
396
  }
397
- ), Ie = ot((e, t) => /* @__PURE__ */ o(vr, { children: /* @__PURE__ */ o(ft, { ...e, ref: t }) }));
397
+ ), Ie = ot((e, t) => /* @__PURE__ */ o(yr, { children: /* @__PURE__ */ o(ft, { ...e, ref: t }) }));
398
398
  Ie.displayName = "Menu";
399
399
  ft.displayName = "MenuComponent";
400
- const G = f.forwardRef(
400
+ const U = f.forwardRef(
401
401
  ({
402
402
  label: e,
403
403
  disabled: t,
@@ -448,8 +448,8 @@ const G = f.forwardRef(
448
448
  ));
449
449
  }
450
450
  );
451
- G.displayName = "MenuItem";
452
- const Sr = ({ className: e, ...t }) => {
451
+ U.displayName = "MenuItem";
452
+ const _r = ({ className: e, ...t }) => {
453
453
  const r = k(e, "my-1 border-t border-border-medium");
454
454
  return /* @__PURE__ */ o("div", { className: r, ...t });
455
455
  };
@@ -479,7 +479,7 @@ try {
479
479
  });
480
480
  } catch {
481
481
  }
482
- const _r = "av-togglegroup", Rr = "av-togglegroup-item-wrapper", Ar = "av-togglegroup-item";
482
+ const Rr = "av-togglegroup", Ar = "av-togglegroup-item-wrapper", Mr = "av-togglegroup-item";
483
483
  function ze(e, t = []) {
484
484
  let r = [];
485
485
  function a(i, s) {
@@ -487,8 +487,8 @@ function ze(e, t = []) {
487
487
  r = [...r, s];
488
488
  const l = (p) => {
489
489
  var b;
490
- const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || c, w = f.useMemo(() => d, Object.values(d));
491
- return /* @__PURE__ */ o(v.Provider, { value: w, children: m });
490
+ const { scope: h, children: m, ...d } = p, v = ((b = h == null ? void 0 : h[e]) == null ? void 0 : b[g]) || c, C = f.useMemo(() => d, Object.values(d));
491
+ return /* @__PURE__ */ o(v.Provider, { value: C, children: m });
492
492
  };
493
493
  l.displayName = i + "Provider";
494
494
  function u(p, b) {
@@ -510,9 +510,9 @@ function ze(e, t = []) {
510
510
  );
511
511
  };
512
512
  };
513
- return n.scopeName = e, [a, Mr(n, ...t)];
513
+ return n.scopeName = e, [a, zr(n, ...t)];
514
514
  }
515
- function Mr(...e) {
515
+ function zr(...e) {
516
516
  const t = e[0];
517
517
  if (e.length === 1) return t;
518
518
  const r = () => {
@@ -555,7 +555,7 @@ function Se(...e) {
555
555
  return f.useCallback(pt(...e), e);
556
556
  }
557
557
  var ge = f.forwardRef((e, t) => {
558
- const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Lr);
558
+ const { children: r, ...a } = e, n = f.Children.toArray(r), i = n.find(Pr);
559
559
  if (i) {
560
560
  const s = i.props.children, c = n.map((g) => g === i ? f.Children.count(s) > 1 ? f.Children.only(null) : f.isValidElement(s) ? s.props.children : null : g);
561
561
  return /* @__PURE__ */ o(_e, { ...a, ref: t, children: f.isValidElement(s) ? f.cloneElement(s, void 0, c) : null });
@@ -566,9 +566,9 @@ ge.displayName = "Slot";
566
566
  var _e = f.forwardRef((e, t) => {
567
567
  const { children: r, ...a } = e;
568
568
  if (f.isValidElement(r)) {
569
- const n = Br(r);
569
+ const n = Or(r);
570
570
  return f.cloneElement(r, {
571
- ...Pr(a, r.props),
571
+ ...Br(a, r.props),
572
572
  // @ts-ignore
573
573
  ref: t ? pt(t, n) : n
574
574
  });
@@ -576,11 +576,11 @@ var _e = f.forwardRef((e, t) => {
576
576
  return f.Children.count(r) > 1 ? f.Children.only(null) : null;
577
577
  });
578
578
  _e.displayName = "SlotClone";
579
- var zr = ({ children: e }) => /* @__PURE__ */ o(_, { children: e });
580
- function Lr(e) {
581
- return f.isValidElement(e) && e.type === zr;
579
+ var Lr = ({ children: e }) => /* @__PURE__ */ o(R, { children: e });
580
+ function Pr(e) {
581
+ return f.isValidElement(e) && e.type === Lr;
582
582
  }
583
- function Pr(e, t) {
583
+ function Br(e, t) {
584
584
  const r = { ...t };
585
585
  for (const a in t) {
586
586
  const n = e[a], i = t[a];
@@ -590,12 +590,12 @@ function Pr(e, t) {
590
590
  }
591
591
  return { ...e, ...r };
592
592
  }
593
- function Br(e) {
593
+ function Or(e) {
594
594
  var t, r;
595
595
  let a = (t = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : t.get, n = a && "isReactWarning" in a && a.isReactWarning;
596
596
  return n ? e.ref : (a = (r = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : r.get, n = a && "isReactWarning" in a && a.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
597
597
  }
598
- var Or = [
598
+ var Dr = [
599
599
  "a",
600
600
  "button",
601
601
  "div",
@@ -612,39 +612,39 @@ var Or = [
612
612
  "span",
613
613
  "svg",
614
614
  "ul"
615
- ], ne = Or.reduce((e, t) => {
615
+ ], ne = Dr.reduce((e, t) => {
616
616
  const r = f.forwardRef((a, n) => {
617
617
  const { asChild: i, ...s } = a, c = i ? ge : t;
618
618
  return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(c, { ...s, ref: n });
619
619
  });
620
620
  return r.displayName = `Primitive.${t}`, { ...e, [t]: r };
621
621
  }, {});
622
- function K(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
622
+ function W(e, t, { checkForDefaultPrevented: r = !0 } = {}) {
623
623
  return function(a) {
624
624
  if (e == null || e(a), r === !1 || !a.defaultPrevented)
625
625
  return t == null ? void 0 : t(a);
626
626
  };
627
627
  }
628
- function Dr(e) {
628
+ function Vr(e) {
629
629
  const t = e + "CollectionProvider", [r, a] = ze(t), [n, i] = r(
630
630
  t,
631
631
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
632
632
  ), s = (h) => {
633
- const { scope: m, children: d } = h, v = E.useRef(null), w = E.useRef(/* @__PURE__ */ new Map()).current;
634
- return /* @__PURE__ */ o(n, { scope: m, itemMap: w, collectionRef: v, children: d });
633
+ const { scope: m, children: d } = h, v = E.useRef(null), C = E.useRef(/* @__PURE__ */ new Map()).current;
634
+ return /* @__PURE__ */ o(n, { scope: m, itemMap: C, collectionRef: v, children: d });
635
635
  };
636
636
  s.displayName = t;
637
637
  const c = e + "CollectionSlot", g = E.forwardRef(
638
638
  (h, m) => {
639
- const { scope: d, children: v } = h, w = i(c, d), C = Se(m, w.collectionRef);
640
- return /* @__PURE__ */ o(ge, { ref: C, children: v });
639
+ const { scope: d, children: v } = h, C = i(c, d), w = Se(m, C.collectionRef);
640
+ return /* @__PURE__ */ o(ge, { ref: w, children: v });
641
641
  }
642
642
  );
643
643
  g.displayName = c;
644
644
  const l = e + "CollectionItemSlot", u = "data-radix-collection-item", p = E.forwardRef(
645
645
  (h, m) => {
646
- const { scope: d, children: v, ...w } = h, C = E.useRef(null), T = Se(m, C), S = i(l, d);
647
- return E.useEffect(() => (S.itemMap.set(C, { ref: C, ...w }), () => void S.itemMap.delete(C))), /* @__PURE__ */ o(ge, { [u]: "", ref: T, children: v });
646
+ const { scope: d, children: v, ...C } = h, w = E.useRef(null), T = Se(m, w), S = i(l, d);
647
+ return E.useEffect(() => (S.itemMap.set(w, { ref: w, ...C }), () => void S.itemMap.delete(w))), /* @__PURE__ */ o(ge, { [u]: "", ref: T, children: v });
648
648
  }
649
649
  );
650
650
  p.displayName = l;
@@ -655,7 +655,7 @@ function Dr(e) {
655
655
  if (!d) return [];
656
656
  const v = Array.from(d.querySelectorAll(`[${u}]`));
657
657
  return Array.from(m.itemMap.values()).sort(
658
- (w, C) => v.indexOf(w.ref.current) - v.indexOf(C.ref.current)
658
+ (C, w) => v.indexOf(C.ref.current) - v.indexOf(w.ref.current)
659
659
  );
660
660
  }, [m.collectionRef, m.itemMap]);
661
661
  }
@@ -665,13 +665,13 @@ function Dr(e) {
665
665
  a
666
666
  ];
667
667
  }
668
- var Vr = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
669
- }, $r = f.useId || (() => {
670
- }), Fr = 0;
671
- function Hr(e) {
672
- const [t, r] = f.useState($r());
673
- return Vr(() => {
674
- r((a) => a ?? String(Fr++));
668
+ var $r = globalThis != null && globalThis.document ? f.useLayoutEffect : () => {
669
+ }, Fr = f.useId || (() => {
670
+ }), Hr = 0;
671
+ function Gr(e) {
672
+ const [t, r] = f.useState(Fr());
673
+ return $r(() => {
674
+ r((a) => a ?? String(Hr++));
675
675
  }, [e]), t ? `radix-${t}` : "";
676
676
  }
677
677
  function Le(e) {
@@ -689,7 +689,7 @@ function pe({
689
689
  onChange: r = () => {
690
690
  }
691
691
  }) {
692
- const [a, n] = Gr({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c = Le(r), g = f.useCallback(
692
+ const [a, n] = Ur({ defaultProp: t, onChange: r }), i = e !== void 0, s = i ? e : a, c = Le(r), g = f.useCallback(
693
693
  (l) => {
694
694
  if (i) {
695
695
  const u = typeof l == "function" ? l(e) : l;
@@ -701,7 +701,7 @@ function pe({
701
701
  );
702
702
  return [s, g];
703
703
  }
704
- function Gr({
704
+ function Ur({
705
705
  defaultProp: e,
706
706
  onChange: t
707
707
  }) {
@@ -710,19 +710,19 @@ function Gr({
710
710
  n.current !== a && (i(a), n.current = a);
711
711
  }, [a, n, i]), r;
712
712
  }
713
- var Ur = f.createContext(void 0);
713
+ var jr = f.createContext(void 0);
714
714
  function bt(e) {
715
- const t = f.useContext(Ur);
715
+ const t = f.useContext(jr);
716
716
  return e || t || "ltr";
717
717
  }
718
- var xe = "rovingFocusGroup.onEntryFocus", jr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Kr] = Dr(be), [Wr, yt] = ze(
718
+ var Ne = "rovingFocusGroup.onEntryFocus", Kr = { bubbles: !1, cancelable: !0 }, be = "RovingFocusGroup", [Re, vt, Wr] = Vr(be), [Yr, yt] = ze(
719
719
  be,
720
- [Kr]
721
- ), [Yr, qr] = Wr(be), kt = f.forwardRef(
722
- (e, t) => /* @__PURE__ */ o(Re.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Re.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Zr, { ...e, ref: t }) }) })
720
+ [Wr]
721
+ ), [qr, Zr] = Yr(be), kt = f.forwardRef(
722
+ (e, t) => /* @__PURE__ */ o(Re.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Re.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ o(Qr, { ...e, ref: t }) }) })
723
723
  );
724
724
  kt.displayName = be;
725
- var Zr = f.forwardRef((e, t) => {
725
+ var Qr = f.forwardRef((e, t) => {
726
726
  const {
727
727
  __scopeRovingFocusGroup: r,
728
728
  orientation: a,
@@ -738,13 +738,13 @@ var Zr = f.forwardRef((e, t) => {
738
738
  prop: s,
739
739
  defaultProp: c,
740
740
  onChange: g
741
- }), [w, C] = f.useState(!1), T = Le(l), S = vt(r), A = f.useRef(!1), [z, R] = f.useState(0);
741
+ }), [C, w] = f.useState(!1), T = Le(l), S = vt(r), M = f.useRef(!1), [L, A] = f.useState(0);
742
742
  return f.useEffect(() => {
743
- const N = b.current;
744
- if (N)
745
- return N.addEventListener(xe, T), () => N.removeEventListener(xe, T);
743
+ const x = b.current;
744
+ if (x)
745
+ return x.addEventListener(Ne, T), () => x.removeEventListener(Ne, T);
746
746
  }, [T]), /* @__PURE__ */ o(
747
- Yr,
747
+ qr,
748
748
  {
749
749
  scope: r,
750
750
  orientation: a,
@@ -752,48 +752,48 @@ var Zr = f.forwardRef((e, t) => {
752
752
  loop: n,
753
753
  currentTabStopId: d,
754
754
  onItemFocus: f.useCallback(
755
- (N) => v(N),
755
+ (x) => v(x),
756
756
  [v]
757
757
  ),
758
- onItemShiftTab: f.useCallback(() => C(!0), []),
758
+ onItemShiftTab: f.useCallback(() => w(!0), []),
759
759
  onFocusableItemAdd: f.useCallback(
760
- () => R((N) => N + 1),
760
+ () => A((x) => x + 1),
761
761
  []
762
762
  ),
763
763
  onFocusableItemRemove: f.useCallback(
764
- () => R((N) => N - 1),
764
+ () => A((x) => x - 1),
765
765
  []
766
766
  ),
767
767
  children: /* @__PURE__ */ o(
768
768
  ne.div,
769
769
  {
770
- tabIndex: w || z === 0 ? -1 : 0,
770
+ tabIndex: C || L === 0 ? -1 : 0,
771
771
  "data-orientation": a,
772
772
  ...p,
773
773
  ref: h,
774
774
  style: { outline: "none", ...e.style },
775
- onMouseDown: K(e.onMouseDown, () => {
776
- A.current = !0;
775
+ onMouseDown: W(e.onMouseDown, () => {
776
+ M.current = !0;
777
777
  }),
778
- onFocus: K(e.onFocus, (N) => {
779
- const le = !A.current;
780
- if (N.target === N.currentTarget && le && !w) {
781
- const de = new CustomEvent(xe, jr);
782
- if (N.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
783
- const X = S().filter((O) => O.focusable), ye = X.find((O) => O.active), ke = X.find((O) => O.id === d), Ce = [ye, ke, ...X].filter(
778
+ onFocus: W(e.onFocus, (x) => {
779
+ const le = !M.current;
780
+ if (x.target === x.currentTarget && le && !C) {
781
+ const de = new CustomEvent(Ne, Kr);
782
+ if (x.currentTarget.dispatchEvent(de), !de.defaultPrevented) {
783
+ const X = S().filter((O) => O.focusable), ye = X.find((O) => O.active), ke = X.find((O) => O.id === d), we = [ye, ke, ...X].filter(
784
784
  Boolean
785
785
  ).map((O) => O.ref.current);
786
- Tt(Ce, u);
786
+ Tt(we, u);
787
787
  }
788
788
  }
789
- A.current = !1;
789
+ M.current = !1;
790
790
  }),
791
- onBlur: K(e.onBlur, () => C(!1))
791
+ onBlur: W(e.onBlur, () => w(!1))
792
792
  }
793
793
  )
794
794
  }
795
795
  );
796
- }), Ct = "RovingFocusGroupItem", wt = f.forwardRef(
796
+ }), wt = "RovingFocusGroupItem", Ct = f.forwardRef(
797
797
  (e, t) => {
798
798
  const {
799
799
  __scopeRovingFocusGroup: r,
@@ -801,7 +801,7 @@ var Zr = f.forwardRef((e, t) => {
801
801
  active: n = !1,
802
802
  tabStopId: i,
803
803
  ...s
804
- } = e, c = Hr(), g = i || c, l = qr(Ct, r), u = l.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = l;
804
+ } = e, c = Gr(), g = i || c, l = Zr(wt, r), u = l.currentTabStopId === g, p = vt(r), { onFocusableItemAdd: b, onFocusableItemRemove: h } = l;
805
805
  return f.useEffect(() => {
806
806
  if (a)
807
807
  return b(), () => h();
@@ -819,26 +819,26 @@ var Zr = f.forwardRef((e, t) => {
819
819
  "data-orientation": l.orientation,
820
820
  ...s,
821
821
  ref: t,
822
- onMouseDown: K(e.onMouseDown, (m) => {
822
+ onMouseDown: W(e.onMouseDown, (m) => {
823
823
  a ? l.onItemFocus(g) : m.preventDefault();
824
824
  }),
825
- onFocus: K(e.onFocus, () => l.onItemFocus(g)),
826
- onKeyDown: K(e.onKeyDown, (m) => {
825
+ onFocus: W(e.onFocus, () => l.onItemFocus(g)),
826
+ onKeyDown: W(e.onKeyDown, (m) => {
827
827
  if (m.key === "Tab" && m.shiftKey) {
828
828
  l.onItemShiftTab();
829
829
  return;
830
830
  }
831
831
  if (m.target !== m.currentTarget) return;
832
- const d = Jr(m, l.orientation, l.dir);
832
+ const d = eo(m, l.orientation, l.dir);
833
833
  if (d !== void 0) {
834
834
  if (m.metaKey || m.ctrlKey || m.altKey || m.shiftKey) return;
835
835
  m.preventDefault();
836
- let v = p().filter((w) => w.focusable).map((w) => w.ref.current);
836
+ let v = p().filter((C) => C.focusable).map((C) => C.ref.current);
837
837
  if (d === "last") v.reverse();
838
838
  else if (d === "prev" || d === "next") {
839
839
  d === "prev" && v.reverse();
840
- const w = v.indexOf(m.currentTarget);
841
- v = l.loop ? eo(v, w + 1) : v.slice(w + 1);
840
+ const C = v.indexOf(m.currentTarget);
841
+ v = l.loop ? to(v, C + 1) : v.slice(C + 1);
842
842
  }
843
843
  setTimeout(() => Tt(v));
844
844
  }
@@ -849,8 +849,8 @@ var Zr = f.forwardRef((e, t) => {
849
849
  );
850
850
  }
851
851
  );
852
- wt.displayName = Ct;
853
- var Qr = {
852
+ Ct.displayName = wt;
853
+ var Xr = {
854
854
  ArrowLeft: "prev",
855
855
  ArrowUp: "prev",
856
856
  ArrowRight: "next",
@@ -860,23 +860,23 @@ var Qr = {
860
860
  PageDown: "last",
861
861
  End: "last"
862
862
  };
863
- function Xr(e, t) {
863
+ function Jr(e, t) {
864
864
  return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
865
865
  }
866
- function Jr(e, t, r) {
867
- const a = Xr(e.key, r);
866
+ function eo(e, t, r) {
867
+ const a = Jr(e.key, r);
868
868
  if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(a)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(a)))
869
- return Qr[a];
869
+ return Xr[a];
870
870
  }
871
871
  function Tt(e, t = !1) {
872
872
  const r = document.activeElement;
873
873
  for (const a of e)
874
874
  if (a === r || (a.focus({ preventScroll: t }), document.activeElement !== r)) return;
875
875
  }
876
- function eo(e, t) {
876
+ function to(e, t) {
877
877
  return e.map((r, a) => e[(t + a) % e.length]);
878
878
  }
879
- var to = kt, ro = wt, oo = "Toggle", xt = f.forwardRef((e, t) => {
879
+ var ro = kt, oo = Ct, ao = "Toggle", Nt = f.forwardRef((e, t) => {
880
880
  const { pressed: r, defaultPressed: a = !1, onPressedChange: n, ...i } = e, [s = !1, c] = pe({
881
881
  prop: r,
882
882
  onChange: n,
@@ -891,25 +891,25 @@ var to = kt, ro = wt, oo = "Toggle", xt = f.forwardRef((e, t) => {
891
891
  "data-disabled": e.disabled ? "" : void 0,
892
892
  ...i,
893
893
  ref: t,
894
- onClick: K(e.onClick, () => {
894
+ onClick: W(e.onClick, () => {
895
895
  e.disabled || c(!s);
896
896
  })
897
897
  }
898
898
  );
899
899
  });
900
- xt.displayName = oo;
901
- var Q = "ToggleGroup", [Nt, ha] = ze(Q, [
900
+ Nt.displayName = ao;
901
+ var Q = "ToggleGroup", [xt, ga] = ze(Q, [
902
902
  yt
903
903
  ]), Et = yt(), Pe = E.forwardRef((e, t) => {
904
904
  const { type: r, ...a } = e;
905
905
  if (r === "single")
906
- return /* @__PURE__ */ o(ao, { ...a, ref: t });
907
- if (r === "multiple")
908
906
  return /* @__PURE__ */ o(no, { ...a, ref: t });
907
+ if (r === "multiple")
908
+ return /* @__PURE__ */ o(so, { ...a, ref: t });
909
909
  throw new Error(`Missing prop \`type\` expected on \`${Q}\``);
910
910
  });
911
911
  Pe.displayName = Q;
912
- var [It, St] = Nt(Q), ao = E.forwardRef((e, t) => {
912
+ var [It, St] = xt(Q), no = E.forwardRef((e, t) => {
913
913
  const {
914
914
  value: r,
915
915
  defaultValue: a,
@@ -932,7 +932,7 @@ var [It, St] = Nt(Q), ao = E.forwardRef((e, t) => {
932
932
  children: /* @__PURE__ */ o(_t, { ...i, ref: t })
933
933
  }
934
934
  );
935
- }), no = E.forwardRef((e, t) => {
935
+ }), so = E.forwardRef((e, t) => {
936
936
  const {
937
937
  value: r,
938
938
  defaultValue: a,
@@ -963,7 +963,7 @@ var [It, St] = Nt(Q), ao = E.forwardRef((e, t) => {
963
963
  );
964
964
  });
965
965
  Pe.displayName = Q;
966
- var [so, io] = Nt(Q), _t = E.forwardRef(
966
+ var [io, co] = xt(Q), _t = E.forwardRef(
967
967
  (e, t) => {
968
968
  const {
969
969
  __scopeToggleGroup: r,
@@ -974,8 +974,8 @@ var [so, io] = Nt(Q), _t = E.forwardRef(
974
974
  loop: c = !0,
975
975
  ...g
976
976
  } = e, l = Et(r), u = bt(s), p = { role: "group", dir: u, ...g };
977
- return /* @__PURE__ */ o(so, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
978
- to,
977
+ return /* @__PURE__ */ o(io, { scope: r, rovingFocus: n, disabled: a, children: n ? /* @__PURE__ */ o(
978
+ ro,
979
979
  {
980
980
  asChild: !0,
981
981
  ...l,
@@ -988,9 +988,9 @@ var [so, io] = Nt(Q), _t = E.forwardRef(
988
988
  }
989
989
  ), fe = "ToggleGroupItem", Rt = E.forwardRef(
990
990
  (e, t) => {
991
- 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, c = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
991
+ const r = St(fe, e.__scopeToggleGroup), a = co(fe, e.__scopeToggleGroup), n = Et(e.__scopeToggleGroup), i = r.value.includes(e.value), s = a.disabled || e.disabled, c = { ...e, pressed: i, disabled: s }, g = E.useRef(null);
992
992
  return a.rovingFocus ? /* @__PURE__ */ o(
993
- ro,
993
+ oo,
994
994
  {
995
995
  asChild: !0,
996
996
  ...n,
@@ -1007,7 +1007,7 @@ var Ke = E.forwardRef(
1007
1007
  (e, t) => {
1008
1008
  const { __scopeToggleGroup: r, value: a, ...n } = e, i = St(fe, r), s = { role: "radio", "aria-checked": e.pressed, "aria-pressed": void 0 }, c = i.type === "single" ? s : void 0;
1009
1009
  return /* @__PURE__ */ o(
1010
- xt,
1010
+ Nt,
1011
1011
  {
1012
1012
  ...c,
1013
1013
  ...n,
@@ -1018,27 +1018,27 @@ var Ke = E.forwardRef(
1018
1018
  }
1019
1019
  );
1020
1020
  }
1021
- ), co = Pe, lo = Rt;
1021
+ ), lo = Pe, uo = Rt;
1022
1022
  const At = E.createContext({
1023
1023
  size: "medium",
1024
1024
  focusMode: "system",
1025
1025
  mode: "system"
1026
- }), uo = ({ focusMode: e }) => k("focus:outline", "focus:outline-2", "focus:outline-offset", {
1026
+ }), mo = ({ focusMode: e }) => k("focus:outline", "focus:outline-2", "focus:outline-offset", {
1027
1027
  "focus:outline-focus-light": e === "light",
1028
1028
  "focus:outline-focus-dark": e === "dark",
1029
1029
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
1030
1030
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
1031
- }), mo = ({ mode: e }) => k({
1031
+ }), ho = ({ mode: e }) => k({
1032
1032
  "data-[state=on]:bg-surface-medium": e === "dark",
1033
1033
  "data-[state=on]:bg-surface-lightest": e === "light",
1034
1034
  "data-[state=on]:bg-surface-lightest dark:data-[state=on]:bg-surface-medium": e === "system",
1035
1035
  "data-[state=on]:bg-surface-medium dark:data-[state=on]:bg-surface-lightest": e === "alt-system"
1036
- }), ho = ({ size: e }) => k({
1036
+ }), go = ({ size: e }) => k({
1037
1037
  "h-5 px-2": e === "small",
1038
1038
  "h-6 px-3": e === "medium",
1039
1039
  "h-7 px-4": e === "large"
1040
- }), go = ({ mode: e }) => k(
1041
- Rr,
1040
+ }), fo = ({ mode: e }) => k(
1041
+ Ar,
1042
1042
  "px-1",
1043
1043
  "relative",
1044
1044
  "border-r",
@@ -1051,26 +1051,26 @@ const At = E.createContext({
1051
1051
  "border-surface-light dark:border-surface-darker": e === "system",
1052
1052
  "border-surface-darker dark:border-surface-light": e === "alt-system"
1053
1053
  }
1054
- ), fo = ({
1054
+ ), po = ({
1055
1055
  focusMode: e,
1056
1056
  mode: t,
1057
1057
  size: r
1058
1058
  }) => ({
1059
- wrapperClass: go({ mode: t }),
1059
+ wrapperClass: fo({ mode: t }),
1060
1060
  itemClass: k(
1061
- Ar,
1061
+ Mr,
1062
1062
  "flex items-center justify-center bg-transparent",
1063
1063
  "rounded-sm",
1064
1064
  "transition duration-200 ease",
1065
- ho({ size: r }),
1066
- uo({ focusMode: e }),
1067
- mo({ mode: t })
1065
+ go({ size: r }),
1066
+ mo({ focusMode: e }),
1067
+ ho({ mode: t })
1068
1068
  )
1069
- }), po = ({
1069
+ }), bo = ({
1070
1070
  mode: e,
1071
1071
  className: t
1072
1072
  }) => k(
1073
- _r,
1073
+ Rr,
1074
1074
  "inline-flex p-1",
1075
1075
  "rounded-sm",
1076
1076
  {
@@ -1080,7 +1080,7 @@ const At = E.createContext({
1080
1080
  "bg-surface-darker text-copy-lighter dark:bg-surface-light dark:text-copy-dark": e === "alt-system"
1081
1081
  },
1082
1082
  t
1083
- ), bo = ({
1083
+ ), vo = ({
1084
1084
  children: e,
1085
1085
  value: t,
1086
1086
  onValueChange: r,
@@ -1092,9 +1092,9 @@ const At = E.createContext({
1092
1092
  className: g,
1093
1093
  ...l
1094
1094
  }) => {
1095
- const u = po({ mode: n, className: g }), p = { size: s, focusMode: i, mode: n };
1095
+ const u = bo({ mode: n, className: g }), p = { size: s, focusMode: i, mode: n };
1096
1096
  return /* @__PURE__ */ o(At.Provider, { value: p, children: /* @__PURE__ */ o(
1097
- co,
1097
+ lo,
1098
1098
  {
1099
1099
  disabled: a,
1100
1100
  className: u,
@@ -1106,14 +1106,14 @@ const At = E.createContext({
1106
1106
  children: e
1107
1107
  }
1108
1108
  ) });
1109
- }, vo = ({ value: e, disabled: t }) => {
1110
- const { size: r, focusMode: a, mode: n } = B(At), { itemClass: i, wrapperClass: s } = fo({
1109
+ }, yo = ({ value: e, disabled: t }) => {
1110
+ const { size: r, focusMode: a, mode: n } = B(At), { itemClass: i, wrapperClass: s } = po({
1111
1111
  focusMode: a,
1112
1112
  mode: n,
1113
1113
  size: r
1114
1114
  });
1115
1115
  return /* @__PURE__ */ o("div", { className: s, children: /* @__PURE__ */ o(
1116
- lo,
1116
+ uo,
1117
1117
  {
1118
1118
  disabled: t,
1119
1119
  className: i,
@@ -1135,7 +1135,7 @@ try {
1135
1135
  });
1136
1136
  } catch {
1137
1137
  }
1138
- const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo = "button", ko = "link", Co = ({
1138
+ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", ko = "button", wo = "link", Co = ({
1139
1139
  type: e,
1140
1140
  size: t,
1141
1141
  labelRight: r,
@@ -1144,13 +1144,13 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1144
1144
  }) => {
1145
1145
  const i = "text-sm font-medium max-h-8 py-0 px-2", s = "text-base font-medium max-h-9 py-1 px-3", c = "text-lg font-medium max-h-12 py-2 px-4";
1146
1146
  switch (e) {
1147
- case yo:
1147
+ case ko:
1148
1148
  return k({
1149
1149
  [i]: t === "small",
1150
1150
  [s]: t === "medium",
1151
1151
  [c]: t === "large"
1152
1152
  });
1153
- case ko:
1153
+ case wo:
1154
1154
  return k("text-center", {
1155
1155
  [i]: t === "small",
1156
1156
  [s]: t === "medium",
@@ -1169,7 +1169,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1169
1169
  "h-12 px-4 text-lg font-medium": t === "large" && (r || a)
1170
1170
  });
1171
1171
  }
1172
- }, wo = ({
1172
+ }, To = ({
1173
1173
  mode: e,
1174
1174
  noBackground: t,
1175
1175
  noTruncate: r,
@@ -1226,7 +1226,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1226
1226
  "bg-action-selected-dark text-copy-light dark:bg-action-selected-light dark:text-copy-lighter": e === "system",
1227
1227
  "bg-action-selected-light text-copy-lighter dark:bg-action-selected-dark dark:text-copy-light": e === "alt-system"
1228
1228
  });
1229
- }, To = ({
1229
+ }, No = ({
1230
1230
  mode: e,
1231
1231
  disabled: t,
1232
1232
  variant: r
@@ -1296,7 +1296,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1296
1296
  "active:bg-action-selected-dark-active dark:active:bg-action-selected-light-active": e === "system",
1297
1297
  "active:bg-action-selected-light-active dark:active:bg-action-selected-dark-active": e === "alt-system"
1298
1298
  });
1299
- }, No = ({
1299
+ }, Eo = ({
1300
1300
  mode: e,
1301
1301
  noBorder: t,
1302
1302
  variant: r
@@ -1331,7 +1331,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1331
1331
  "border-border-selected-dark dark:border-border-selected-medium": e === "system",
1332
1332
  "border-border-selected-medium dark:border-border-selected-dark": e === "alt-system"
1333
1333
  });
1334
- }, Eo = ({
1334
+ }, Io = ({
1335
1335
  focusMode: e
1336
1336
  }) => k("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
1337
1337
  "focus:outline-focus-dark": e === "dark",
@@ -1357,7 +1357,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1357
1357
  radius: d
1358
1358
  }) => (b || (b = "primary"), r ? k(qe, t) : k(
1359
1359
  qe,
1360
- wo({
1360
+ To({
1361
1361
  mode: a,
1362
1362
  variant: b,
1363
1363
  noBackground: p,
@@ -1371,16 +1371,16 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1371
1371
  labelLeft: u,
1372
1372
  align: m
1373
1373
  }),
1374
- No({ mode: a, variant: b, noBorder: g }),
1375
- Eo({ focusMode: n }),
1376
- To({ mode: a, variant: b, disabled: i }),
1374
+ Eo({ mode: a, variant: b, noBorder: g }),
1375
+ Io({ focusMode: n }),
1376
+ No({ mode: a, variant: b, disabled: i }),
1377
1377
  xo({ mode: a, variant: b, disabled: i }),
1378
1378
  {
1379
1379
  "w-full": s,
1380
1380
  "disabled:cursor-not-allowed disabled:opacity-50": i
1381
1381
  },
1382
1382
  t
1383
- )), Io = (e, t, r) => {
1383
+ )), So = (e, t, r) => {
1384
1384
  var a;
1385
1385
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
1386
1386
  }, Oe = E.forwardRef((e, t) => {
@@ -1390,7 +1390,7 @@ const We = "av-messagebox", Ye = "av-panel", qe = "av-button", Be = "icon", yo =
1390
1390
  {
1391
1391
  ref: t,
1392
1392
  onClick: (i) => {
1393
- Io(i, a, r);
1393
+ So(i, a, r);
1394
1394
  },
1395
1395
  ...n
1396
1396
  }
@@ -1416,8 +1416,8 @@ const zt = E.forwardRef(
1416
1416
  noBackground: m = !1,
1417
1417
  align: d = "center",
1418
1418
  radius: v = "large",
1419
- ...w
1420
- }, C) => {
1419
+ ...C
1420
+ }, w) => {
1421
1421
  const T = Mt({
1422
1422
  type: Be,
1423
1423
  mode: r,
@@ -1442,12 +1442,12 @@ const zt = E.forwardRef(
1442
1442
  return /* @__PURE__ */ y(
1443
1443
  Oe,
1444
1444
  {
1445
- ref: C,
1445
+ ref: w,
1446
1446
  className: T,
1447
1447
  disabled: t,
1448
1448
  type: s,
1449
1449
  "aria-label": l || u,
1450
- ...w,
1450
+ ...C,
1451
1451
  children: [
1452
1452
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
1453
1453
  /* @__PURE__ */ o("div", { className: S, children: e }),
@@ -1471,7 +1471,7 @@ try {
1471
1471
  });
1472
1472
  } catch {
1473
1473
  }
1474
- const So = E.forwardRef(
1474
+ const _o = E.forwardRef(
1475
1475
  ({
1476
1476
  children: e,
1477
1477
  disabled: t = !1,
@@ -1490,8 +1490,8 @@ const So = E.forwardRef(
1490
1490
  noBackground: m = !1,
1491
1491
  align: d = "center",
1492
1492
  active: v = !1,
1493
- radius: w = "large",
1494
- ...C
1493
+ radius: C = "large",
1494
+ ...w
1495
1495
  }, T) => {
1496
1496
  const S = Mt({
1497
1497
  type: Be,
@@ -1507,13 +1507,13 @@ const So = E.forwardRef(
1507
1507
  labelLeft: h,
1508
1508
  noBackground: m,
1509
1509
  align: d,
1510
- radius: w
1511
- }), A = k({
1510
+ radius: C
1511
+ }), M = k({
1512
1512
  "text-copy-accent-dark": r === "light" && !c,
1513
1513
  "text-copy-light": r === "dark" && !c,
1514
1514
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !c,
1515
1515
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !c
1516
- }), z = v ? k(
1516
+ }), L = v ? k(
1517
1517
  "relative",
1518
1518
  "focus-within:static",
1519
1519
  "focus-within:after:border-transparent",
@@ -1530,7 +1530,7 @@ const So = E.forwardRef(
1530
1530
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
1531
1531
  }
1532
1532
  ) : "";
1533
- return /* @__PURE__ */ o("div", { className: z, children: /* @__PURE__ */ y(
1533
+ return /* @__PURE__ */ o("div", { className: L, children: /* @__PURE__ */ y(
1534
1534
  Oe,
1535
1535
  {
1536
1536
  ref: T,
@@ -1538,18 +1538,18 @@ const So = E.forwardRef(
1538
1538
  disabled: t,
1539
1539
  type: s,
1540
1540
  "aria-label": l || u,
1541
- ...C,
1541
+ ...w,
1542
1542
  children: [
1543
1543
  h && /* @__PURE__ */ o("span", { className: "pr-2", children: h }),
1544
- /* @__PURE__ */ o("div", { className: A, children: e }),
1544
+ /* @__PURE__ */ o("div", { className: M, children: e }),
1545
1545
  b && /* @__PURE__ */ o("span", { className: "pl-2", children: b })
1546
1546
  ]
1547
1547
  }
1548
1548
  ) });
1549
1549
  }
1550
1550
  );
1551
- So.displayName = "ButtonSort";
1552
- const _o = ({
1551
+ _o.displayName = "ButtonSort";
1552
+ const Ro = ({
1553
1553
  children: e,
1554
1554
  fill: t,
1555
1555
  viewBox: r,
@@ -1561,7 +1561,7 @@ const _o = ({
1561
1561
  ...g
1562
1562
  }) => {
1563
1563
  const l = k(i, a);
1564
- return /* @__PURE__ */ y(_, { children: [
1564
+ return /* @__PURE__ */ y(R, { children: [
1565
1565
  /* @__PURE__ */ o(
1566
1566
  "svg",
1567
1567
  {
@@ -1592,14 +1592,14 @@ try {
1592
1592
  });
1593
1593
  } catch {
1594
1594
  }
1595
- const Ro = ({
1595
+ const Ao = ({
1596
1596
  className: e,
1597
1597
  viewBox: t,
1598
1598
  title: r,
1599
1599
  monotone: a,
1600
1600
  ...n
1601
1601
  }) => /* @__PURE__ */ o(
1602
- _o,
1602
+ Ro,
1603
1603
  {
1604
1604
  defaultViewBox: "0 0 384 512",
1605
1605
  size: "size-5",
@@ -1624,7 +1624,7 @@ try {
1624
1624
  } catch {
1625
1625
  }
1626
1626
  const Lt = f.createContext(null);
1627
- function Ao({
1627
+ function Mo({
1628
1628
  initialOpen: e = !1,
1629
1629
  open: t,
1630
1630
  onOpenChange: r
@@ -1658,14 +1658,14 @@ const ve = () => {
1658
1658
  throw new Error("Modal components must be wrapped in <Modal />");
1659
1659
  return e;
1660
1660
  };
1661
- function Mo({
1661
+ function zo({
1662
1662
  children: e,
1663
1663
  ...t
1664
1664
  }) {
1665
- const r = Ao(t);
1665
+ const r = Mo(t);
1666
1666
  return /* @__PURE__ */ o(Lt.Provider, { value: r, children: e });
1667
1667
  }
1668
- const zo = f.forwardRef(function(e, t) {
1668
+ const Lo = f.forwardRef(function(e, t) {
1669
1669
  const { context: r, ...a } = ve(), n = Me([a.refs.setFloating, t]);
1670
1670
  if (!r.open)
1671
1671
  return null;
@@ -1673,7 +1673,7 @@ const zo = f.forwardRef(function(e, t) {
1673
1673
  [`${i}`]: i,
1674
1674
  "bg-black sm:bg-black/[.8]": !i
1675
1675
  });
1676
- return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(yr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(mt, { context: r, children: /* @__PURE__ */ o(
1676
+ return /* @__PURE__ */ o(ut, { children: /* @__PURE__ */ o(kr, { className: c, lockScroll: !0, children: /* @__PURE__ */ o(mt, { context: r, children: /* @__PURE__ */ o(
1677
1677
  "div",
1678
1678
  {
1679
1679
  ref: n,
@@ -1683,13 +1683,13 @@ const zo = f.forwardRef(function(e, t) {
1683
1683
  children: s.children
1684
1684
  }
1685
1685
  ) }) }) });
1686
- }), Lo = f.forwardRef(function({ children: e, ...t }, r) {
1686
+ }), Po = f.forwardRef(function({ children: e, ...t }, r) {
1687
1687
  const { setLabelId: a } = ve(), n = Ae();
1688
1688
  return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("h1", { ...t, ref: r, id: n, children: e });
1689
- }), Po = f.forwardRef(function({ children: e, ...t }, r) {
1689
+ }), Bo = f.forwardRef(function({ children: e, ...t }, r) {
1690
1690
  const { setDescriptionId: a } = ve(), n = Ae();
1691
1691
  return f.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ o("div", { ...t, ref: r, id: n, children: e });
1692
- }), Bo = f.forwardRef(function(e, t) {
1692
+ }), Oo = f.forwardRef(function(e, t) {
1693
1693
  const { setOpen: r } = ve(), { trigger: a, className: n, ...i } = e, s = f.useCallback(() => r(!1), [r]);
1694
1694
  return /* @__PURE__ */ o("div", { className: n, children: f.cloneElement(a, {
1695
1695
  ref: t,
@@ -1710,7 +1710,7 @@ try {
1710
1710
  });
1711
1711
  } catch {
1712
1712
  }
1713
- const ee = "panel", ue = "messagebox", Oo = ({
1713
+ const ee = "panel", ue = "messagebox", Do = ({
1714
1714
  className: e,
1715
1715
  kind: t,
1716
1716
  borderMode: r
@@ -1730,7 +1730,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
1730
1730
  footer: "flex flex-grow flex-col sm:p-4 p-2",
1731
1731
  header: "sm:p-4 mb-0 p-2",
1732
1732
  close: "sm:p-4 p-2"
1733
- }), Y = ({
1733
+ }), q = ({
1734
1734
  open: e,
1735
1735
  onOpenChange: t,
1736
1736
  title: r,
@@ -1740,13 +1740,13 @@ const ee = "panel", ue = "messagebox", Oo = ({
1740
1740
  kind: s = ee,
1741
1741
  className: c
1742
1742
  }) => {
1743
- const g = Z(""), l = Oo({ className: c, kind: s, borderMode: i });
1744
- return H(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
1743
+ const g = Z(""), l = Do({ className: c, kind: s, borderMode: i });
1744
+ return G(() => (e && (g.current = document.title, document.title = `${r} | ${g.current}`), () => {
1745
1745
  e && (document.title = g.current);
1746
- }), [r, e]), /* @__PURE__ */ o(_, { children: e && /* @__PURE__ */ o(Mo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(zo, { className: l.main, children: [
1746
+ }), [r, e]), /* @__PURE__ */ o(R, { children: e && /* @__PURE__ */ o(zo, { open: e, onOpenChange: t, children: /* @__PURE__ */ y(Lo, { className: l.main, children: [
1747
1747
  /* @__PURE__ */ y("div", { className: "flex flex-row-reverse items-center justify-between", children: [
1748
1748
  /* @__PURE__ */ o(
1749
- Bo,
1749
+ Oo,
1750
1750
  {
1751
1751
  className: l.close,
1752
1752
  trigger: /* @__PURE__ */ o(
@@ -1756,50 +1756,50 @@ const ee = "panel", ue = "messagebox", Oo = ({
1756
1756
  focusMode: "light",
1757
1757
  noBorder: !0,
1758
1758
  label: "Close",
1759
- children: /* @__PURE__ */ o(Ro, {})
1759
+ children: /* @__PURE__ */ o(Ao, {})
1760
1760
  }
1761
1761
  )
1762
1762
  }
1763
1763
  ),
1764
- /* @__PURE__ */ o(Lo, { className: l.header, children: r })
1764
+ /* @__PURE__ */ o(Po, { className: l.header, children: r })
1765
1765
  ] }),
1766
- /* @__PURE__ */ o(Po, { className: l.content, children: a }),
1766
+ /* @__PURE__ */ o(Bo, { className: l.content, children: a }),
1767
1767
  n && /* @__PURE__ */ o("div", { className: l.footer, children: n })
1768
1768
  ] }) }) });
1769
- }, Do = ({ stats: e }) => {
1769
+ }, Vo = ({ stats: e }) => {
1770
1770
  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();
1771
- return /* @__PURE__ */ y(_, { children: [
1771
+ return /* @__PURE__ */ y(R, { children: [
1772
1772
  /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1773
1773
  P,
1774
1774
  {
1775
- header: x.ABOUT.TITLE_CLIENT,
1775
+ header: N.ABOUT.TITLE_CLIENT,
1776
1776
  className: "prose-dark dark:prose-lighter",
1777
1777
  children: oe(n, {
1778
- [x.ABOUT.VERSION]: "5.13.0",
1779
- [x.ABOUT.BUILD_TIMESTAMP]: "12/31/2024 06:58 PM EST"
1778
+ [N.ABOUT.VERSION]: "5.14.1",
1779
+ [N.ABOUT.BUILD_TIMESTAMP]: "01/01/2025 11:42 AM EST"
1780
1780
  })
1781
1781
  }
1782
1782
  ) }),
1783
1783
  /* @__PURE__ */ o(
1784
1784
  P,
1785
1785
  {
1786
- header: x.ABOUT.TITLE_SERVER,
1786
+ header: N.ABOUT.TITLE_SERVER,
1787
1787
  className: "prose-dark dark:prose-lighter",
1788
1788
  children: oe(i, {
1789
- [x.ABOUT.VERSION]: r,
1790
- [he(x.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(_, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1791
- [he(x.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(_, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1789
+ [N.ABOUT.VERSION]: r,
1790
+ [he(N.ABOUT.ENGINE, a.length)]: /* @__PURE__ */ o(R, { children: a.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) }),
1791
+ [he(N.ABOUT.PLUGIN, t.length)]: /* @__PURE__ */ o(R, { children: t.map((s) => /* @__PURE__ */ o("div", { className: "text-right", children: s }, s)) })
1792
1792
  })
1793
1793
  }
1794
1794
  )
1795
1795
  ] });
1796
- }, Vo = ({
1796
+ }, $o = ({
1797
1797
  open: e,
1798
1798
  onOpenChange: t
1799
1799
  }) => {
1800
1800
  const { serverStats: r } = B(ie);
1801
- return /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Do, { stats: r }) });
1802
- }, $o = (e) => Qe(e), Fo = (e) => {
1801
+ return /* @__PURE__ */ o(q, { open: e, onOpenChange: t, title: Dt, children: /* @__PURE__ */ o(Vo, { stats: r }) });
1802
+ }, Fo = (e) => Qe(e), Ho = (e) => {
1803
1803
  if (!e || e.length === 0)
1804
1804
  return $t;
1805
1805
  const t = e.filter(
@@ -1810,50 +1810,50 @@ const ee = "panel", ue = "messagebox", Oo = ({
1810
1810
  ).map((r) => r.message.processingTime);
1811
1811
  return Ht({
1812
1812
  data: t,
1813
- formatter: $o
1813
+ formatter: Fo
1814
1814
  });
1815
- }, Ho = ({
1815
+ }, Go = ({
1816
1816
  isAuthenticated: e,
1817
1817
  stats: t
1818
1818
  }) => {
1819
1819
  const { state: r } = B(ie), a = Gt - Number(r == null ? void 0 : r.usage), n = ae(), i = ae();
1820
- return e ? /* @__PURE__ */ y(_, { children: [
1820
+ return e ? /* @__PURE__ */ y(R, { children: [
1821
1821
  r && r.messages.length > 0 && /* @__PURE__ */ o("div", { className: "mb-4", children: /* @__PURE__ */ o(
1822
1822
  P,
1823
1823
  {
1824
- header: x.CURRENT_STATISTICS.TITLE,
1824
+ header: N.CURRENT_STATISTICS.TITLE,
1825
1825
  className: "prose-dark dark:prose-lighter",
1826
1826
  children: oe(n, {
1827
- [x.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
1828
- [x.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
1829
- [x.CURRENT_STATISTICS.REMAINING_TOKENS]: Vt.format(a),
1830
- [x.CURRENT_STATISTICS.PROCESSING_TIME]: Fo(r == null ? void 0 : r.messages)
1827
+ [N.CURRENT_STATISTICS.MODEL_NAME]: (r == null ? void 0 : r.model) || te,
1828
+ [N.CURRENT_STATISTICS.TOKENS_USED]: r == null ? void 0 : r.usage,
1829
+ [N.CURRENT_STATISTICS.REMAINING_TOKENS]: Vt.format(a),
1830
+ [N.CURRENT_STATISTICS.PROCESSING_TIME]: Ho(r == null ? void 0 : r.messages)
1831
1831
  })
1832
1832
  }
1833
1833
  ) }),
1834
1834
  /* @__PURE__ */ o(
1835
1835
  P,
1836
1836
  {
1837
- header: x.MAIN_STATISTICS.TITLE,
1837
+ header: N.MAIN_STATISTICS.TITLE,
1838
1838
  className: "prose-dark dark:prose-lighter",
1839
1839
  children: oe(i, {
1840
- [he(x.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1841
- [x.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1840
+ [he(N.MAIN_STATISTICS.TOTAL, t.totalChats)]: t.totalChats,
1841
+ [N.MAIN_STATISTICS.PROCESSING_TIME]: Qe(
1842
1842
  t.averageProcessingTimes
1843
1843
  )
1844
1844
  })
1845
1845
  }
1846
1846
  )
1847
1847
  ] }) : null;
1848
- }, Go = ({
1848
+ }, Uo = ({
1849
1849
  open: e,
1850
1850
  onOpenChange: t
1851
1851
  }) => {
1852
1852
  const [r, a] = I({
1853
1853
  averageProcessingTimes: 0,
1854
1854
  totalChats: 0
1855
- }), { isAuthenticated: n, getAccessToken: i, user: s } = W();
1856
- return H(() => {
1855
+ }), { isAuthenticated: n, getAccessToken: i, user: s } = Y();
1856
+ return G(() => {
1857
1857
  !e || !s || (async () => {
1858
1858
  try {
1859
1859
  const c = await D({
@@ -1867,7 +1867,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
1867
1867
  } catch {
1868
1868
  }
1869
1869
  })();
1870
- }, [e, i, s]), /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: Xe, children: /* @__PURE__ */ o(Ho, { isAuthenticated: n, stats: r }) });
1870
+ }, [e, i, s]), /* @__PURE__ */ o(q, { open: e, onOpenChange: t, title: Xe, children: /* @__PURE__ */ o(Go, { isAuthenticated: n, stats: r }) });
1871
1871
  }, Pt = ({
1872
1872
  showConfirmation: e,
1873
1873
  setShowConfirmation: t,
@@ -1875,14 +1875,14 @@ const ee = "panel", ue = "messagebox", Oo = ({
1875
1875
  children: a,
1876
1876
  customStrings: n
1877
1877
  }) => /* @__PURE__ */ o(
1878
- Y,
1878
+ q,
1879
1879
  {
1880
1880
  kind: "messagebox",
1881
1881
  open: e,
1882
1882
  onOpenChange: t,
1883
1883
  title: n.title,
1884
- footer: /* @__PURE__ */ y(q, { columnGap: 2, alignHorizontal: "flex-end", children: [
1885
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1884
+ footer: /* @__PURE__ */ y(H, { columnGap: 2, alignHorizontal: "flex-end", children: [
1885
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
1886
1886
  F,
1887
1887
  {
1888
1888
  mode: "dark",
@@ -1894,7 +1894,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
1894
1894
  children: n.cancelAction
1895
1895
  }
1896
1896
  ) }),
1897
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
1897
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
1898
1898
  F,
1899
1899
  {
1900
1900
  mode: "dark",
@@ -1909,7 +1909,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
1909
1909
  ] }),
1910
1910
  children: a
1911
1911
  }
1912
- ), Uo = async (e, t, r, a) => {
1912
+ ), jo = async (e, t, r, a) => {
1913
1913
  try {
1914
1914
  const n = await D({
1915
1915
  accessToken: a,
@@ -1931,14 +1931,14 @@ const ee = "panel", ue = "messagebox", Oo = ({
1931
1931
  }), r(!1));
1932
1932
  } catch {
1933
1933
  }
1934
- }, jo = ({
1934
+ }, Ko = ({
1935
1935
  filteredHistory: e,
1936
1936
  setFilteredHistory: t,
1937
1937
  dispatch: r,
1938
1938
  onOpenChange: a
1939
1939
  }) => {
1940
1940
  var m;
1941
- const { user: n, getAccessToken: i } = W(), s = Z({
1941
+ const { user: n, getAccessToken: i } = Y(), s = Z({
1942
1942
  id: 0,
1943
1943
  timestamp: "",
1944
1944
  message: ""
@@ -1947,27 +1947,27 @@ const ee = "panel", ue = "messagebox", Oo = ({
1947
1947
  initialValue: l.sortDirection
1948
1948
  }), b = (d) => {
1949
1949
  switch (l.sortDirection) {
1950
- case U.ASC:
1951
- p(U.DESC), u({
1950
+ case j.ASC:
1951
+ p(j.DESC), u({
1952
1952
  type: Ve,
1953
1953
  payload: {
1954
1954
  sortedCell: d,
1955
- sortDirection: U.DESC
1955
+ sortDirection: j.DESC
1956
1956
  }
1957
1957
  });
1958
1958
  break;
1959
1959
  default:
1960
- p(U.ASC), u({
1960
+ p(j.ASC), u({
1961
1961
  type: Ve,
1962
1962
  payload: {
1963
1963
  sortedCell: d,
1964
- sortDirection: U.ASC
1964
+ sortDirection: j.ASC
1965
1965
  }
1966
1966
  });
1967
1967
  break;
1968
1968
  }
1969
1969
  };
1970
- return /* @__PURE__ */ y(_, { children: [
1970
+ return /* @__PURE__ */ y(R, { children: [
1971
1971
  /* @__PURE__ */ y(
1972
1972
  Pt,
1973
1973
  {
@@ -2042,8 +2042,8 @@ const ee = "panel", ue = "messagebox", Oo = ({
2042
2042
  /* @__PURE__ */ o($, { className: "text-xs sm:text-sm text-right", children: "Actions" })
2043
2043
  ] }) }),
2044
2044
  /* @__PURE__ */ o(sr, { children: e.data.map((d, v) => {
2045
- var w, C;
2046
- return ((w = d == null ? void 0 : d.messages) == null ? void 0 : w.length) > 0 ? /* @__PURE__ */ y(Te, { children: [
2045
+ var C, w;
2046
+ return ((C = d == null ? void 0 : d.messages) == null ? void 0 : C.length) > 0 ? /* @__PURE__ */ y(Te, { children: [
2047
2047
  /* @__PURE__ */ o(
2048
2048
  $,
2049
2049
  {
@@ -2060,34 +2060,34 @@ const ee = "panel", ue = "messagebox", Oo = ({
2060
2060
  style: {
2061
2061
  wordBreak: "break-word"
2062
2062
  },
2063
- children: d.messages.length > 0 ? (C = d.messages[0]) == null ? void 0 : C.content : ""
2063
+ children: d.messages.length > 0 ? (w = d.messages[0]) == null ? void 0 : w.content : ""
2064
2064
  }
2065
2065
  ),
2066
- /* @__PURE__ */ o($, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(q, { alignHorizontal: "center", children: [
2066
+ /* @__PURE__ */ o($, { component: "th", scope: "row", className: "text-gray-400", children: /* @__PURE__ */ y(H, { alignHorizontal: "center", children: [
2067
2067
  d.model && d.model.startsWith("claude") && /* @__PURE__ */ o(ht, { size: "size-4 sm:size-5" }),
2068
2068
  d.model && d.model.startsWith("gpt") && /* @__PURE__ */ o(gt, { size: "size-4 sm:size-5" })
2069
2069
  ] }) }),
2070
2070
  /* @__PURE__ */ o($, { className: "px-2", children: /* @__PURE__ */ y("div", { className: "flex justify-end gap-2", children: [
2071
2071
  /* @__PURE__ */ o(
2072
- j,
2072
+ K,
2073
2073
  {
2074
2074
  focusMode: "alt-system",
2075
2075
  noBorder: !0,
2076
2076
  label: "Restore chat",
2077
2077
  onClick: async () => {
2078
2078
  const T = await i();
2079
- Uo(
2079
+ jo(
2080
2080
  d,
2081
2081
  r,
2082
2082
  a,
2083
2083
  T
2084
2084
  );
2085
2085
  },
2086
- children: /* @__PURE__ */ o(Er, { size: "size-3", monotone: !0 })
2086
+ children: /* @__PURE__ */ o(Ir, { size: "size-3", monotone: !0 })
2087
2087
  }
2088
2088
  ),
2089
2089
  /* @__PURE__ */ o(
2090
- j,
2090
+ K,
2091
2091
  {
2092
2092
  focusMode: "alt-system",
2093
2093
  noBorder: !0,
@@ -2100,11 +2100,11 @@ const ee = "panel", ue = "messagebox", Oo = ({
2100
2100
  message: d.messages.length > 0 ? (T = d.messages[0]) == null ? void 0 : T.content : ""
2101
2101
  }, g(!c);
2102
2102
  },
2103
- children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(wr, { size: "size-3", monotone: !0 }) })
2103
+ children: /* @__PURE__ */ o("div", { className: "text-red-400", children: /* @__PURE__ */ o(Tr, { size: "size-3", monotone: !0 }) })
2104
2104
  }
2105
2105
  )
2106
2106
  ] }) })
2107
- ] }, `${x.HISTORY.TITLE}-${d.id}-${v}`) : null;
2107
+ ] }, `${N.HISTORY.TITLE}-${d.id}-${v}`) : null;
2108
2108
  }) }),
2109
2109
  /* @__PURE__ */ o(ir, { children: /* @__PURE__ */ o(Te, { children: /* @__PURE__ */ o($, { colSpan: 4, children: /* @__PURE__ */ o("div", { children: he(
2110
2110
  `${e.data.length} chat`,
@@ -2118,7 +2118,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
2118
2118
  searchString: e,
2119
2119
  username: t,
2120
2120
  accessToken: r,
2121
- direction: a = U.ASC
2121
+ direction: a = j.ASC
2122
2122
  }) => {
2123
2123
  if (!t)
2124
2124
  return [];
@@ -2140,22 +2140,22 @@ const ee = "panel", ue = "messagebox", Oo = ({
2140
2140
  return [];
2141
2141
  }
2142
2142
  return [];
2143
- }, Ko = ({ onOpenChange: e }) => {
2144
- const { isAuthenticated: t, getAccessToken: r, user: a } = W(), n = Z(null), i = Z(!1), { dispatch: s } = B(ie), { state: c, dispatch: g } = B(rt), [, l] = ce({
2143
+ }, Wo = ({ onOpenChange: e }) => {
2144
+ const { isAuthenticated: t, getAccessToken: r, user: a } = Y(), n = Z(null), i = Z(!1), { dispatch: s } = B(ie), { state: c, dispatch: g } = B(rt), [, l] = ce({
2145
2145
  key: se + Kt,
2146
2146
  initialValue: c.searchString
2147
2147
  }), [u, p] = I({
2148
2148
  data: [],
2149
2149
  sortedDirection: c.sortDirection
2150
2150
  }), b = async (d) => {
2151
- const v = await r(), w = await Ze({
2151
+ const v = await r(), C = await Ze({
2152
2152
  searchString: d,
2153
2153
  username: a == null ? void 0 : a.username,
2154
2154
  accessToken: v,
2155
2155
  direction: c.sortDirection
2156
2156
  });
2157
2157
  p({
2158
- data: w,
2158
+ data: C,
2159
2159
  sortedDirection: c.sortDirection
2160
2160
  }), l(d), g({
2161
2161
  type: Wt,
@@ -2166,7 +2166,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
2166
2166
  }, 500), m = async (d) => {
2167
2167
  d.preventDefault();
2168
2168
  };
2169
- return H(() => {
2169
+ return G(() => {
2170
2170
  i.current || (async () => {
2171
2171
  i.current = !0;
2172
2172
  const d = await r(), v = await Ze({
@@ -2180,12 +2180,12 @@ const ee = "panel", ue = "messagebox", Oo = ({
2180
2180
  sortedDirection: c.sortDirection
2181
2181
  });
2182
2182
  })();
2183
- }), H(() => {
2183
+ }), G(() => {
2184
2184
  if (c.sortDirection !== u.sortedDirection) {
2185
- const d = [...u.data].sort((v, w) => {
2185
+ const d = [...u.data].sort((v, C) => {
2186
2186
  if (c.sortedCell === "timestamp") {
2187
- const C = new Date(v[c.sortedCell]).getTime(), T = new Date(w[c.sortedCell]).getTime();
2188
- return c.sortDirection === U.ASC ? C - T : T - C;
2187
+ const w = new Date(v[c.sortedCell]).getTime(), T = new Date(C[c.sortedCell]).getTime();
2188
+ return c.sortDirection === j.ASC ? w - T : T - w;
2189
2189
  }
2190
2190
  return 0;
2191
2191
  });
@@ -2194,9 +2194,9 @@ const ee = "panel", ue = "messagebox", Oo = ({
2194
2194
  sortedDirection: c.sortDirection
2195
2195
  });
2196
2196
  }
2197
- }, [u, c]), t ? u && u.data && /* @__PURE__ */ y(_, { children: [
2197
+ }, [u, c]), t ? u && u.data && /* @__PURE__ */ y(R, { children: [
2198
2198
  /* @__PURE__ */ o("form", { autoComplete: "off", onSubmit: m, children: /* @__PURE__ */ o(
2199
- Ne,
2199
+ xe,
2200
2200
  {
2201
2201
  autoCapitalize: "off",
2202
2202
  autoComplete: "off",
@@ -2230,7 +2230,7 @@ const ee = "panel", ue = "messagebox", Oo = ({
2230
2230
  }
2231
2231
  ) }),
2232
2232
  /* @__PURE__ */ o("div", { className: "flex flex-col gap-2 sm:flex-row", children: /* @__PURE__ */ o(
2233
- jo,
2233
+ Ko,
2234
2234
  {
2235
2235
  filteredHistory: u,
2236
2236
  setFilteredHistory: p,
@@ -2239,10 +2239,10 @@ const ee = "panel", ue = "messagebox", Oo = ({
2239
2239
  }
2240
2240
  ) })
2241
2241
  ] }) : null;
2242
- }, Wo = ({
2242
+ }, Yo = ({
2243
2243
  open: e,
2244
2244
  onOpenChange: t
2245
- }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Ko, { onOpenChange: t }) });
2245
+ }) => /* @__PURE__ */ o(q, { open: e, onOpenChange: t, title: qt, children: /* @__PURE__ */ o(Wo, { onOpenChange: t }) });
2246
2246
  /*!
2247
2247
  @versini/ui-toggle v2.0.5
2248
2248
  © 2024 gizmette.com
@@ -2256,7 +2256,7 @@ try {
2256
2256
  });
2257
2257
  } catch {
2258
2258
  }
2259
- const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo = ({
2259
+ const qo = "av-toggle", Zo = () => k("peer", "h-6", "w-11", "rounded-full"), Qo = ({
2260
2260
  focusMode: e
2261
2261
  }) => k(
2262
2262
  "peer-focus:outline",
@@ -2268,14 +2268,14 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2268
2268
  "peer-focus:outline-focus-light dark:peer-focus:outline-focus-dark": e === "alt-system",
2269
2269
  "peer-focus:outline-focus-dark dark:peer-focus:outline-focus-light": e === "system"
2270
2270
  }
2271
- ), Qo = () => k(
2271
+ ), Xo = () => k(
2272
2272
  "peer-checked:after:translate-x-full",
2273
2273
  // background color when checked
2274
2274
  "peer-checked:bg-violet-500",
2275
2275
  // knob circle and border color when checked
2276
2276
  "peer-checked:after:bg-white",
2277
2277
  "peer-checked:after:border-white"
2278
- ), Xo = () => k(
2278
+ ), Jo = () => k(
2279
2279
  "after:left-[2px]",
2280
2280
  "after:top-[2px]",
2281
2281
  "after:border",
@@ -2287,7 +2287,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2287
2287
  "after:rounded-full",
2288
2288
  "after:transition-all",
2289
2289
  "after:content-['']"
2290
- ), Jo = ({
2290
+ ), ea = ({
2291
2291
  mode: e,
2292
2292
  noBorder: t
2293
2293
  }) => k({
@@ -2296,7 +2296,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2296
2296
  "border-border-light bg-surface-darker": e === "dark",
2297
2297
  "border-border-light bg-surface-darker dark:border-border-dark dark:bg-surface-medium": e === "alt-system",
2298
2298
  "border-border-dark bg-surface-medium dark:border-border-light dark:bg-surface-darker": e === "system"
2299
- }), ea = ({
2299
+ }), ta = ({
2300
2300
  mode: e,
2301
2301
  labelHidden: t
2302
2302
  }) => t ? "sr-only" : k("ml-2 text-sm", {
@@ -2304,11 +2304,11 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2304
2304
  "text-copy-lighter": e === "dark",
2305
2305
  "text-copy-lighter dark:text-copy-dark": e === "alt-system",
2306
2306
  "text-copy-dark dark:text-copy-lighter": e === "system"
2307
- }), ta = ({ className: e }) => k(
2308
- Yo,
2307
+ }), ra = ({ className: e }) => k(
2308
+ qo,
2309
2309
  "relative flex cursor-pointer items-center",
2310
2310
  e
2311
- ), ra = ({
2311
+ ), oa = ({
2312
2312
  mode: e,
2313
2313
  focusMode: t,
2314
2314
  labelHidden: r,
@@ -2316,15 +2316,15 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2316
2316
  noBorder: n
2317
2317
  }) => ({
2318
2318
  toggle: k(
2319
- qo(),
2320
- Jo({ mode: e, noBorder: n }),
2321
- Zo({ focusMode: t }),
2322
- Xo(),
2323
- Qo()
2319
+ Zo(),
2320
+ ea({ mode: e, noBorder: n }),
2321
+ Qo({ focusMode: t }),
2322
+ Jo(),
2323
+ Xo()
2324
2324
  ),
2325
- label: ea({ mode: e, labelHidden: r }),
2325
+ label: ta({ mode: e, labelHidden: r }),
2326
2326
  input: "peer sr-only",
2327
- wrapper: ta({ className: a })
2327
+ wrapper: ra({ className: a })
2328
2328
  }), re = ({
2329
2329
  checked: e = !1,
2330
2330
  onChange: t,
@@ -2336,7 +2336,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2336
2336
  className: c,
2337
2337
  noBorder: g = !1
2338
2338
  }) => {
2339
- const l = ra({
2339
+ const l = oa({
2340
2340
  mode: i,
2341
2341
  focusMode: s,
2342
2342
  labelHidden: a,
@@ -2359,11 +2359,11 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2359
2359
  /* @__PURE__ */ o("div", { className: l.toggle }),
2360
2360
  /* @__PURE__ */ o("span", { className: l.label, children: r })
2361
2361
  ] });
2362
- }, oa = ({
2362
+ }, aa = ({
2363
2363
  open: e,
2364
2364
  onOpenChange: t
2365
2365
  }) => {
2366
- const { dispatch: r } = B(ie), { getAccessToken: a, user: n } = W(), [i, s] = I({
2366
+ const { dispatch: r } = B(ie), { getAccessToken: a, user: n } = Y(), [i, s] = I({
2367
2367
  loaded: !1,
2368
2368
  instructions: "",
2369
2369
  loadingLocation: !1,
@@ -2406,18 +2406,18 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2406
2406
  latitude: m.latitude,
2407
2407
  longitude: m.longitude
2408
2408
  }
2409
- }), w = Date.now() - h;
2410
- if (w < 2e3 && await new Promise((C) => setTimeout(C, 2e3 - w)), d.status === 200) {
2411
- const { city: C, state: T, country: S, displayName: A } = d.data, z = C && T && S ? `${C}, ${T}, ${S}` : A;
2412
- s((R) => ({
2413
- ...R,
2409
+ }), C = Date.now() - h;
2410
+ if (C < 2e3 && await new Promise((w) => setTimeout(w, 2e3 - C)), d.status === 200) {
2411
+ const { city: w, state: T, country: S, displayName: M } = d.data, L = w && T && S ? `${w}, ${T}, ${S}` : M;
2412
+ s((A) => ({
2413
+ ...A,
2414
2414
  loaded: !0,
2415
- location: z,
2415
+ location: L,
2416
2416
  loadingLocation: !1
2417
2417
  }));
2418
2418
  } else
2419
- s((C) => ({
2420
- ...C,
2419
+ s((w) => ({
2420
+ ...w,
2421
2421
  loaded: !0,
2422
2422
  location: "",
2423
2423
  loadingLocation: !1
@@ -2427,15 +2427,15 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2427
2427
  }, p = (h) => {
2428
2428
  s((m) => ({
2429
2429
  ...m,
2430
- engine: h ? we : me
2430
+ engine: h ? Ce : me
2431
2431
  }));
2432
2432
  }, b = (h) => {
2433
2433
  s((m) => ({
2434
2434
  ...m,
2435
- engine: h ? me : we
2435
+ engine: h ? me : Ce
2436
2436
  }));
2437
2437
  };
2438
- return H(() => {
2438
+ return G(() => {
2439
2439
  if (!e || !n) {
2440
2440
  s({
2441
2441
  loaded: !1,
@@ -2465,20 +2465,20 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2465
2465
  } catch {
2466
2466
  }
2467
2467
  })();
2468
- }, [n, e]), /* @__PURE__ */ o(_, { children: i.loaded && /* @__PURE__ */ o(
2469
- Y,
2468
+ }, [n, e]), /* @__PURE__ */ o(R, { children: i.loaded && /* @__PURE__ */ o(
2469
+ q,
2470
2470
  {
2471
2471
  open: e,
2472
2472
  onOpenChange: t,
2473
2473
  title: "Engine Fine Tuning",
2474
2474
  footer: /* @__PURE__ */ y(
2475
- q,
2475
+ H,
2476
2476
  {
2477
2477
  columnGap: 2,
2478
2478
  alignHorizontal: "flex-end",
2479
2479
  className: "pb-8 sm:pb-0",
2480
2480
  children: [
2481
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2481
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
2482
2482
  F,
2483
2483
  {
2484
2484
  mode: "dark",
@@ -2490,7 +2490,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2490
2490
  children: "Cancel"
2491
2491
  }
2492
2492
  ) }),
2493
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2493
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
2494
2494
  F,
2495
2495
  {
2496
2496
  mode: "dark",
@@ -2505,7 +2505,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2505
2505
  ]
2506
2506
  }
2507
2507
  ),
2508
- children: /* @__PURE__ */ y(_, { children: [
2508
+ children: /* @__PURE__ */ y(R, { children: [
2509
2509
  /* @__PURE__ */ y(
2510
2510
  P,
2511
2511
  {
@@ -2520,7 +2520,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2520
2520
  label: "OpenAI",
2521
2521
  name: "OpenAI",
2522
2522
  onChange: p,
2523
- checked: i.engine === we
2523
+ checked: i.engine === Ce
2524
2524
  }
2525
2525
  ),
2526
2526
  /* @__PURE__ */ o(
@@ -2625,11 +2625,11 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2625
2625
  ] })
2626
2626
  }
2627
2627
  ) });
2628
- }, aa = ({
2628
+ }, na = ({
2629
2629
  open: e,
2630
2630
  onOpenChange: t
2631
2631
  }) => {
2632
- const { state: r, dispatch: a } = B(cr), { getAccessToken: n, user: i } = W(), [s, c] = I({
2632
+ const { state: r, dispatch: a } = B(cr), { getAccessToken: n, user: i } = Y(), [s, c] = I({
2633
2633
  tags: [...r.tags]
2634
2634
  }), g = ({
2635
2635
  slot: u,
@@ -2643,11 +2643,11 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2643
2643
  label: b,
2644
2644
  content: h,
2645
2645
  enabled: p
2646
- }, w = d.findIndex((C) => C.slot === u);
2647
- return w === -1 ? {
2646
+ }, C = d.findIndex((w) => w.slot === u);
2647
+ return C === -1 ? {
2648
2648
  ...m,
2649
2649
  tags: [...d, { ...v, slot: u }]
2650
- } : (d[w] = v, {
2650
+ } : (d[C] = v, {
2651
2651
  ...m,
2652
2652
  tags: [...d]
2653
2653
  });
@@ -2672,19 +2672,19 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2672
2672
  }
2673
2673
  };
2674
2674
  return /* @__PURE__ */ y(
2675
- Y,
2675
+ q,
2676
2676
  {
2677
2677
  open: e,
2678
2678
  onOpenChange: t,
2679
2679
  title: "Tags",
2680
2680
  footer: /* @__PURE__ */ y(
2681
- q,
2681
+ H,
2682
2682
  {
2683
2683
  columnGap: 2,
2684
2684
  alignHorizontal: "flex-end",
2685
2685
  className: "pb-8 sm:pb-0",
2686
2686
  children: [
2687
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2687
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
2688
2688
  F,
2689
2689
  {
2690
2690
  mode: "dark",
@@ -2696,7 +2696,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2696
2696
  children: "Cancel"
2697
2697
  }
2698
2698
  ) }),
2699
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o(
2699
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
2700
2700
  F,
2701
2701
  {
2702
2702
  mode: "dark",
@@ -2719,9 +2719,9 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2719
2719
  header: `Tag ${u.slot + 1}`,
2720
2720
  className: "prose-dark dark:prose-lighter mb-2",
2721
2721
  children: [
2722
- /* @__PURE__ */ y(q, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
2723
- /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2724
- Ne,
2722
+ /* @__PURE__ */ y(H, { className: "mt-8 mb-6", columnGap: 2, rowGap: 6, children: [
2723
+ /* @__PURE__ */ o(_, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2724
+ xe,
2725
2725
  {
2726
2726
  label: "Label",
2727
2727
  name: `tag${u.slot}-label`,
@@ -2736,8 +2736,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2736
2736
  }
2737
2737
  }
2738
2738
  ) }),
2739
- /* @__PURE__ */ o(L, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2740
- Ne,
2739
+ /* @__PURE__ */ o(_, { span: { fallback: 12, sm: 6 }, children: /* @__PURE__ */ o(
2740
+ xe,
2741
2741
  {
2742
2742
  label: "Content",
2743
2743
  name: `tag${u.slot}-content`,
@@ -2778,8 +2778,8 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2778
2778
  ]
2779
2779
  }
2780
2780
  );
2781
- }, na = () => {
2782
- const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = W(), [n, i] = ce({
2781
+ }, sa = () => {
2782
+ const { isAuthenticated: e, user: t, registeringForPasskey: r, authenticationType: a } = Y(), [n, i] = ce({
2783
2783
  key: se + er,
2784
2784
  initialValue: !1
2785
2785
  }), [s, c] = I(!1), [g, l] = I(!1), u = ae(), p = (t == null ? void 0 : t.username) || "", b = (d) => {
@@ -2789,38 +2789,38 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2789
2789
  }, m = () => {
2790
2790
  l(!g);
2791
2791
  };
2792
- return e && p ? /* @__PURE__ */ y(_, { children: [
2792
+ return e && p ? /* @__PURE__ */ y(R, { children: [
2793
2793
  s && /* @__PURE__ */ o(
2794
- oa,
2794
+ aa,
2795
2795
  {
2796
2796
  open: s,
2797
2797
  onOpenChange: c
2798
2798
  }
2799
2799
  ),
2800
- g && /* @__PURE__ */ o(aa, { open: g, onOpenChange: l }),
2800
+ g && /* @__PURE__ */ o(na, { open: g, onOpenChange: l }),
2801
2801
  /* @__PURE__ */ y(
2802
2802
  P,
2803
2803
  {
2804
- header: x.PREFERENCES.TITLE,
2804
+ header: N.PREFERENCES.TITLE,
2805
2805
  className: "prose-dark dark:prose-lighter",
2806
2806
  children: [
2807
2807
  oe(u, {
2808
- [x.PREFERENCES.NAME]: p,
2809
- [x.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2810
- [x.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
2808
+ [N.PREFERENCES.NAME]: p,
2809
+ [N.PREFERENCES.EMAIL]: (t == null ? void 0 : t.email) || "",
2810
+ [N.PREFERENCES.ENGINE_DETAILS]: /* @__PURE__ */ o(
2811
2811
  re,
2812
2812
  {
2813
2813
  noBorder: !0,
2814
2814
  labelHidden: !0,
2815
- label: x.PREFERENCES.ENGINE_DETAILS,
2816
- name: x.PREFERENCES.ENGINE_DETAILS,
2815
+ label: N.PREFERENCES.ENGINE_DETAILS,
2816
+ name: N.PREFERENCES.ENGINE_DETAILS,
2817
2817
  onChange: b,
2818
2818
  checked: n
2819
2819
  }
2820
2820
  )
2821
2821
  }),
2822
2822
  /* @__PURE__ */ o(
2823
- j,
2823
+ K,
2824
2824
  {
2825
2825
  className: "mt-2",
2826
2826
  size: "small",
@@ -2830,7 +2830,7 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2830
2830
  }
2831
2831
  ),
2832
2832
  /* @__PURE__ */ o(
2833
- j,
2833
+ K,
2834
2834
  {
2835
2835
  className: "mt-2 ml-2",
2836
2836
  size: "small",
@@ -2846,19 +2846,19 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2846
2846
  P,
2847
2847
  {
2848
2848
  className: "prose-dark dark:prose-lighter mt-4",
2849
- header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(q, { columnGap: 3, alignVertical: "center", children: [
2850
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
2851
- /* @__PURE__ */ o(L, { children: /* @__PURE__ */ o("div", { children: x.PREFERENCES.PASSKEY_TITLE }) })
2849
+ header: /* @__PURE__ */ o("h2", { className: "m-0", children: /* @__PURE__ */ y(H, { columnGap: 3, alignVertical: "center", children: [
2850
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o($e, { size: "size-8" }) }),
2851
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o("div", { children: N.PREFERENCES.PASSKEY_TITLE }) })
2852
2852
  ] }) }),
2853
2853
  children: [
2854
- /* @__PURE__ */ o("p", { children: x.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2854
+ /* @__PURE__ */ o("p", { children: N.PREFERENCES.PASSKEY_INSTRUCTIONS }),
2855
2855
  /* @__PURE__ */ o(
2856
- j,
2856
+ K,
2857
2857
  {
2858
2858
  size: "small",
2859
2859
  className: "mt-2",
2860
2860
  onClick: r,
2861
- labelLeft: x.PREFERENCES.PASSKEY_BUTTON,
2861
+ labelLeft: N.PREFERENCES.PASSKEY_BUTTON,
2862
2862
  children: /* @__PURE__ */ o($e, { size: "size-5", monotone: !0 })
2863
2863
  }
2864
2864
  )
@@ -2866,27 +2866,27 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2866
2866
  }
2867
2867
  )
2868
2868
  ] }) : null;
2869
- }, sa = ({
2869
+ }, ia = ({
2870
2870
  open: e,
2871
2871
  onOpenChange: t
2872
- }) => /* @__PURE__ */ o(Y, { open: e, onOpenChange: t, title: rr, children: /* @__PURE__ */ o(na, {}) }), ga = () => {
2872
+ }) => /* @__PURE__ */ o(q, { open: e, onOpenChange: t, title: rr, children: /* @__PURE__ */ o(sa, {}) }), fa = () => {
2873
2873
  const { state: e, dispatch: t, serverStats: r } = B(ie), [a, n] = I((e == null ? void 0 : e.engine) || te), [i, s] = I(!1), [c, g] = I(!1), [l, u] = I(!1), [p, b] = I(!1), [h, m] = I(!1), [d] = ce({
2874
2874
  key: se + et,
2875
2875
  initialValue: !1
2876
- }), { logout: v, getAccessToken: w, user: C } = W(), T = () => {
2876
+ }), { logout: v, getAccessToken: C, user: w } = Y(), T = () => {
2877
2877
  s(!i);
2878
2878
  }, S = () => {
2879
2879
  g(!c);
2880
- }, A = () => {
2880
+ }, M = () => {
2881
2881
  u(!l);
2882
- }, z = () => {
2882
+ }, L = () => {
2883
2883
  b(!p);
2884
- }, R = () => {
2884
+ }, A = () => {
2885
2885
  m(!h);
2886
2886
  };
2887
- return H(() => {
2887
+ return G(() => {
2888
2888
  e && e.engine && e.engine !== a && n(e.engine);
2889
- }, [e, a]), /* @__PURE__ */ y(_, { children: [
2889
+ }, [e, a]), /* @__PURE__ */ y(R, { children: [
2890
2890
  /* @__PURE__ */ o(
2891
2891
  Pt,
2892
2892
  {
@@ -2901,108 +2901,111 @@ const Yo = "av-toggle", qo = () => k("peer", "h-6", "w-11", "rounded-full"), Zo
2901
2901
  children: /* @__PURE__ */ o("p", { children: "Are you sure you want to log out?" })
2902
2902
  }
2903
2903
  ),
2904
- /* @__PURE__ */ o(sa, { open: i, onOpenChange: s }),
2905
- /* @__PURE__ */ o(Go, { open: c, onOpenChange: g }),
2906
- /* @__PURE__ */ o(Wo, { open: l, onOpenChange: u }),
2907
- /* @__PURE__ */ o(Vo, { open: p, onOpenChange: b }),
2908
- /* @__PURE__ */ y("div", { className: "relative", children: [
2909
- d && r && /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] left-[-7px]", children: /* @__PURE__ */ o(
2910
- Ie,
2911
- {
2912
- mode: "dark",
2913
- focusMode: "light",
2914
- trigger: /* @__PURE__ */ o(j, { children: e && e.engine === me ? /* @__PURE__ */ o(ht, {}) : /* @__PURE__ */ o(gt, {}) }),
2915
- defaultPlacement: "bottom-start",
2916
- children: /* @__PURE__ */ o(G, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
2917
- bo,
2918
- {
2919
- size: "small",
2920
- mode: "dark",
2921
- focusMode: "light",
2922
- value: a,
2923
- onValueChange: async (N) => {
2924
- if (N)
2925
- try {
2926
- await D({
2927
- accessToken: await w(),
2928
- type: V.SET_USER_PREFERENCES,
2929
- params: {
2930
- user: C == null ? void 0 : C.username,
2931
- engine: N
2932
- }
2933
- }), t({
2934
- type: tt,
2935
- payload: {
2936
- engine: N
2937
- }
2938
- }), t({
2939
- type: Je
2940
- });
2941
- } catch {
2942
- }
2943
- },
2944
- children: r && r.engines.map((N) => /* @__PURE__ */ o(vo, { value: N }, N))
2945
- }
2946
- ) })
2947
- }
2948
- ) }),
2949
- /* @__PURE__ */ o("div", { className: "absolute bottom-[-28px] right-[-7px]", children: /* @__PURE__ */ y(
2950
- Ie,
2951
- {
2952
- mode: "dark",
2953
- focusMode: "light",
2954
- trigger: /* @__PURE__ */ o(j, { children: /* @__PURE__ */ o(Ir, {}) }),
2955
- defaultPlacement: "bottom-end",
2956
- children: [
2957
- /* @__PURE__ */ o(
2958
- G,
2959
- {
2960
- label: "Profile",
2961
- onClick: T,
2962
- icon: /* @__PURE__ */ o(Nr, {})
2963
- }
2964
- ),
2965
- /* @__PURE__ */ o(
2966
- G,
2967
- {
2968
- label: Xe,
2969
- onClick: S,
2970
- icon: /* @__PURE__ */ o(Cr, {})
2971
- }
2972
- ),
2973
- /* @__PURE__ */ o(
2974
- G,
2975
- {
2976
- label: "History",
2977
- onClick: A,
2978
- icon: /* @__PURE__ */ o(Tr, {})
2979
- }
2980
- ),
2981
- /* @__PURE__ */ o(
2982
- G,
2904
+ /* @__PURE__ */ o(ia, { open: i, onOpenChange: s }),
2905
+ /* @__PURE__ */ o(Uo, { open: c, onOpenChange: g }),
2906
+ /* @__PURE__ */ o(Yo, { open: l, onOpenChange: u }),
2907
+ /* @__PURE__ */ o($o, { open: p, onOpenChange: b }),
2908
+ /* @__PURE__ */ o("div", { className: "sticky top-0 bg-slate-900 py-4", children: /* @__PURE__ */ y(H, { alignHorizontal: "space-between", alignVertical: "center", children: [
2909
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(lr, { mode: "dark", radius: "large" }) }),
2910
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ y(H, { children: [
2911
+ d && r && /* @__PURE__ */ o(_, { children: /* @__PURE__ */ o(
2912
+ Ie,
2913
+ {
2914
+ mode: "dark",
2915
+ focusMode: "light",
2916
+ trigger: /* @__PURE__ */ o(K, { className: "mr-2", children: e && e.engine === me ? /* @__PURE__ */ o(ht, {}) : /* @__PURE__ */ o(gt, {}) }),
2917
+ defaultPlacement: "bottom-start",
2918
+ children: /* @__PURE__ */ o(U, { raw: !0, ignoreClick: !0, children: /* @__PURE__ */ o(
2919
+ vo,
2983
2920
  {
2984
- label: "About",
2985
- onClick: z,
2986
- icon: /* @__PURE__ */ o(xr, {})
2921
+ size: "small",
2922
+ mode: "dark",
2923
+ focusMode: "light",
2924
+ value: a,
2925
+ onValueChange: async (x) => {
2926
+ if (x)
2927
+ try {
2928
+ await D({
2929
+ accessToken: await C(),
2930
+ type: V.SET_USER_PREFERENCES,
2931
+ params: {
2932
+ user: w == null ? void 0 : w.username,
2933
+ engine: x
2934
+ }
2935
+ }), t({
2936
+ type: tt,
2937
+ payload: {
2938
+ engine: x
2939
+ }
2940
+ }), t({
2941
+ type: Je
2942
+ });
2943
+ } catch {
2944
+ }
2945
+ },
2946
+ children: r && r.engines.map((x) => /* @__PURE__ */ o(yo, { value: x }, x))
2987
2947
  }
2988
- ),
2989
- e && e.id && !e.isComponent && /* @__PURE__ */ y(_, { children: [
2990
- /* @__PURE__ */ o(Sr, {}),
2948
+ ) })
2949
+ }
2950
+ ) }),
2951
+ /* @__PURE__ */ o(_, { children: /* @__PURE__ */ y(
2952
+ Ie,
2953
+ {
2954
+ mode: "dark",
2955
+ focusMode: "light",
2956
+ trigger: /* @__PURE__ */ o(K, { children: /* @__PURE__ */ o(Sr, {}) }),
2957
+ defaultPlacement: "bottom-end",
2958
+ children: [
2991
2959
  /* @__PURE__ */ o(
2992
- G,
2960
+ U,
2993
2961
  {
2994
- label: "Log out",
2995
- onClick: R,
2996
- icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(kr, { monotone: !0 }) })
2962
+ label: "Profile",
2963
+ onClick: T,
2964
+ icon: /* @__PURE__ */ o(Er, {})
2997
2965
  }
2998
- )
2999
- ] })
3000
- ]
3001
- }
3002
- ) })
3003
- ] })
2966
+ ),
2967
+ /* @__PURE__ */ o(
2968
+ U,
2969
+ {
2970
+ label: Xe,
2971
+ onClick: S,
2972
+ icon: /* @__PURE__ */ o(Cr, {})
2973
+ }
2974
+ ),
2975
+ /* @__PURE__ */ o(
2976
+ U,
2977
+ {
2978
+ label: "History",
2979
+ onClick: M,
2980
+ icon: /* @__PURE__ */ o(Nr, {})
2981
+ }
2982
+ ),
2983
+ /* @__PURE__ */ o(
2984
+ U,
2985
+ {
2986
+ label: "About",
2987
+ onClick: L,
2988
+ icon: /* @__PURE__ */ o(xr, {})
2989
+ }
2990
+ ),
2991
+ e && e.id && !e.isComponent && /* @__PURE__ */ y(R, { children: [
2992
+ /* @__PURE__ */ o(_r, {}),
2993
+ /* @__PURE__ */ o(
2994
+ U,
2995
+ {
2996
+ label: "Log out",
2997
+ onClick: A,
2998
+ icon: /* @__PURE__ */ o("div", { className: "text-red-700", children: /* @__PURE__ */ o(wr, { monotone: !0 }) })
2999
+ }
3000
+ )
3001
+ ] })
3002
+ ]
3003
+ }
3004
+ ) })
3005
+ ] }) })
3006
+ ] }) })
3004
3007
  ] });
3005
3008
  };
3006
3009
  export {
3007
- ga as default
3010
+ fa as default
3008
3011
  };