@versini/sassysaint 6.2.1 → 6.3.0

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,9 +1,9 @@
1
1
  import { jsx as l, jsxs as E, Fragment as ke } from "react/jsx-runtime";
2
- import { g as ye, ACTION_RESTORE as hn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as pn, ACTION_SEARCH as bn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as yn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as kn, PROMPT_EDITABLE_AREA_CLASSNAME as xn, ROLE_SYSTEM as wn, ROLE_INTERNAL as Qt, ROLE_HIDDEN as _n, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as En, ERROR_MESSAGE as Tn, ROLE_USER as $t, FOOTER_DISCLAIMER as Sn, isLastMessageFromRole as Nn, getMessageContaintWrapperClass as Cn, Logo as Rn, getMainPaddingClass as Or, r as In, LOCAL_STORAGE_SEARCH as Ln, LOCAL_STORAGE_SORT as On } from "./index.BiXPTxMY.js";
2
+ import { g as ye, ACTION_RESTORE as pn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as bn, ACTION_SEARCH as yn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as vn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as kn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as xn, PROMPT_EDITABLE_AREA_CLASSNAME as wn, ROLE_SYSTEM as _n, ROLE_INTERNAL as Qt, ROLE_HIDDEN as En, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as Tn, ERROR_MESSAGE as Sn, ROLE_USER as $t, FOOTER_DISCLAIMER as Nn, isLastMessageFromRole as Cn, getMessageContaintWrapperClass as Rn, Logo as In, getMainPaddingClass as Or, r as Ln, LOCAL_STORAGE_SEARCH as On, LOCAL_STORAGE_SORT as An } from "./index.Cs6TmwRi.js";
3
3
  import f from "clsx";
4
4
  import * as G from "react";
5
- import V, { useRef as A, useState as Z, useCallback as re, useSyncExternalStore as An, useEffect as M, useMemo as ma, useId as er, useContext as z, createContext as $n, useLayoutEffect as Bn, useDebugValue as Mn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
6
- import { useMergeRefs as tr, FloatingPortal as ha, FloatingOverlay as Vn, FloatingFocusManager as pa, useFloating as ba, useClick as ya, useDismiss as va, useRole as ka, useInteractions as xa, useFloatingTree as wa, useFloatingNodeId as Pn, useListItem as _a, offset as Dn, flip as zn, shift as Un, autoUpdate as Hn, useListNavigation as Fn, useTypeahead as Wn, FloatingNode as Gn, FloatingList as jn, FloatingTree as qn } from "@floating-ui/react";
5
+ import V, { useEffect as $, useRef as A, useState as Z, useCallback as re, useSyncExternalStore as $n, useMemo as ma, useId as er, useContext as z, createContext as Bn, useLayoutEffect as Mn, useDebugValue as Vn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
6
+ import { useMergeRefs as tr, FloatingPortal as ha, FloatingOverlay as Pn, FloatingFocusManager as pa, useFloating as ba, useClick as ya, useDismiss as va, useRole as ka, useInteractions as xa, useFloatingTree as wa, useFloatingNodeId as Dn, useListItem as _a, offset as zn, flip as Un, shift as Hn, autoUpdate as Fn, useListNavigation as Wn, useTypeahead as Gn, FloatingNode as jn, FloatingList as qn, FloatingTree as Kn } from "@floating-ui/react";
7
7
  const Ar = ({
8
8
  className: e,
9
9
  viewBox: t,
@@ -21,7 +21,7 @@ const Ar = ({
21
21
  ...n,
22
22
  children: /* @__PURE__ */ l("path", { d: "M17.304 3.541h-3.672l6.696 16.918H24Zm-10.608 0L0 20.459h3.744l1.37-3.553h7.005l1.369 3.553h3.744L10.536 3.541Zm-.371 10.223L8.616 7.82l2.291 5.945Z" })
23
23
  }
24
- ), Kn = ({
24
+ ), Yn = ({
25
25
  className: e,
26
26
  viewBox: t,
27
27
  title: r,
@@ -47,7 +47,7 @@ const Ar = ({
47
47
  /* @__PURE__ */ l("path", { d: "M0 88C0 39.4 39.4 0 88 0h304c30.9 0 56 25.1 56 56v288c0 22.3-13.1 41.6-32 50.6V464h8c13.3 0 24 10.7 24 24s-10.7 24-24 24H80c-44.2 0-80-35.8-80-80 0-2.7.1-5.4.4-8H0zm80 312c-17.7 0-32 14.3-32 32s14.3 32 32 32h288v-64zm-32-41.3c9.8-4.3 20.6-6.7 32-6.7h312c4.4 0 8-3.6 8-8V56c0-4.4-3.6-8-8-8H88c-22.1 0-40 17.9-40 40zM160 112l8.8-17.7c2.9-5.9 11.4-5.9 14.3 0L192 112l17.7 8.8c5.9 2.9 5.9 11.4 0 14.3L192 144l-8.8 17.7c-2.9 5.9-11.4 5.9-14.3 0L160 144l-17.7-8.8c-5.9-2.9-5.9-11.4 0-14.3zm104 104 16.6-38.8c2.8-6.5 11.9-6.5 14.7 0L312 216l38.8 16.6c6.5 2.8 6.5 11.9 0 14.7L312 264l-16.6 38.8c-2.8 6.5-11.9 6.5-14.7 0L264 264l-38.8-16.6c-6.5-2.8-6.5-11.9 0-14.7z" })
48
48
  ]
49
49
  }
50
- ), Yn = ({
50
+ ), Jn = ({
51
51
  className: e,
52
52
  viewBox: t,
53
53
  title: r,
@@ -70,7 +70,7 @@ const Ar = ({
70
70
  }
71
71
  )
72
72
  }
73
- ), Jn = ({
73
+ ), Xn = ({
74
74
  className: e,
75
75
  viewBox: t,
76
76
  title: r,
@@ -96,7 +96,7 @@ const Ar = ({
96
96
  /* @__PURE__ */ l("path", { d: "m392.4 21.7-30.1 30 97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2l-18.7-18.6c-21.9-21.9-57.3-21.9-79.2 0m-52.7 52.6L172.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.5l167.3-167.4z" })
97
97
  ]
98
98
  }
99
- ), Xn = ({
99
+ ), Zn = ({
100
100
  className: e,
101
101
  viewBox: t,
102
102
  title: r,
@@ -139,7 +139,7 @@ const Ar = ({
139
139
  ...n,
140
140
  children: /* @__PURE__ */ l("path", { d: "M22.282 9.821a5.99 5.99 0 0 0-.516-4.91 6.05 6.05 0 0 0-6.51-2.9A6.065 6.065 0 0 0 4.981 4.18a5.99 5.99 0 0 0-3.998 2.9 6.05 6.05 0 0 0 .743 7.097 5.98 5.98 0 0 0 .51 4.911 6.05 6.05 0 0 0 6.515 2.9A5.99 5.99 0 0 0 13.26 24a6.06 6.06 0 0 0 5.772-4.206 6 6 0 0 0 3.997-2.9 6.06 6.06 0 0 0-.747-7.073zM13.26 22.43a4.48 4.48 0 0 1-2.876-1.04l.141-.081 4.779-2.758a.8.8 0 0 0 .392-.681v-6.737l2.02 1.168a.07.07 0 0 1 .038.052v5.583a4.504 4.504 0 0 1-4.494 4.494M3.6 18.304a4.47 4.47 0 0 1-.535-3.014l.142.085 4.783 2.759a.77.77 0 0 0 .78 0l5.843-3.369v2.332a.08.08 0 0 1-.033.062L9.74 19.95a4.5 4.5 0 0 1-6.14-1.646M2.34 7.896a4.5 4.5 0 0 1 2.366-1.973V11.6a.77.77 0 0 0 .388.677l5.815 3.354-2.02 1.168a.08.08 0 0 1-.071 0l-4.83-2.786A4.504 4.504 0 0 1 2.34 7.872zm16.597 3.855-5.833-3.387L15.119 7.2a.08.08 0 0 1 .071 0l4.83 2.791a4.494 4.494 0 0 1-.676 8.105v-5.678a.79.79 0 0 0-.407-.667zm2.01-3.023-.141-.085-4.774-2.782a.78.78 0 0 0-.785 0L9.409 9.23V6.897a.07.07 0 0 1 .028-.061l4.83-2.787a4.5 4.5 0 0 1 6.68 4.66zm-12.64 4.135-2.02-1.164a.08.08 0 0 1-.038-.057V6.075a4.5 4.5 0 0 1 7.375-3.453l-.142.08-4.778 2.758a.8.8 0 0 0-.393.681zm1.097-2.365 2.602-1.5 2.607 1.5v2.999l-2.597 1.5-2.607-1.5Z" })
141
141
  }
142
- ), Zn = ({
142
+ ), Qn = ({
143
143
  className: e,
144
144
  viewBox: t,
145
145
  title: r,
@@ -165,7 +165,7 @@ const Ar = ({
165
165
  /* @__PURE__ */ l("path", { d: "M380.7 185.8c5.1-6.7 4.2-16.2-2.1-21.8s-15.9-5.3-21.9.7l-179 179-13 13c-3 3-4.7 7.1-4.7 11.3v112c0 13.2 8.1 25 20.3 29.8s26.2 1.6 35.2-8.1l68.5-74-60-25v-13.2z" })
166
166
  ]
167
167
  }
168
- ), Qn = ({
168
+ ), eo = ({
169
169
  className: e,
170
170
  viewBox: t,
171
171
  title: r,
@@ -205,7 +205,7 @@ try {
205
205
  });
206
206
  } catch {
207
207
  }
208
- const eo = "av-header", to = ({
208
+ const to = "av-header", ro = ({
209
209
  children: e,
210
210
  className: t,
211
211
  raw: r = !1,
@@ -217,7 +217,7 @@ const eo = "av-header", to = ({
217
217
  noPadding: c = !1
218
218
  }) => {
219
219
  const d = f(
220
- eo,
220
+ to,
221
221
  {
222
222
  "border-border-accent": a === "dark" && !r && !n && !i,
223
223
  "border-border-medium": a === "light" && !r && !n && !i,
@@ -239,7 +239,7 @@ const eo = "av-header", to = ({
239
239
  });
240
240
  return /* @__PURE__ */ l("header", { className: d, children: /* @__PURE__ */ l("div", { className: h, children: e }) });
241
241
  };
242
- function ro(e) {
242
+ function ao(e) {
243
243
  const t = e.toLowerCase().split("+").map((o) => o.trim()), r = {
244
244
  alt: t.includes("alt"),
245
245
  ctrl: t.includes("ctrl"),
@@ -252,7 +252,7 @@ function ro(e) {
252
252
  key: n
253
253
  };
254
254
  }
255
- function ao(e, t) {
255
+ function no(e, t) {
256
256
  const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
257
257
  if (r !== c)
258
258
  return !1;
@@ -263,18 +263,33 @@ function ao(e, t) {
263
263
  return !1;
264
264
  return i !== u ? !1 : !!(s && (m.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
265
265
  }
266
- function no(e) {
267
- return (t) => ao(ro(e), t);
266
+ function Ea(e) {
267
+ return (t) => no(ao(e), t);
268
268
  }
269
269
  function oo(e) {
270
270
  return (t) => {
271
271
  const r = "nativeEvent" in t ? t.nativeEvent : t;
272
272
  e.forEach(([a, n, o = { preventDefault: !0 }]) => {
273
- no(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
273
+ Ea(a)(r) && (o.preventDefault && t.preventDefault(), n(r));
274
274
  });
275
275
  };
276
276
  }
277
- function io() {
277
+ function io(e, t, r = !1) {
278
+ return e.target instanceof HTMLElement ? (r || !e.target.isContentEditable) && !t.includes(e.target.tagName) : !0;
279
+ }
280
+ function so(e, t = ["INPUT", "TEXTAREA", "SELECT"], r = !1) {
281
+ $(() => {
282
+ const a = (n) => {
283
+ e.forEach(
284
+ ([o, i, s = { preventDefault: !0 }]) => {
285
+ Ea(o)(n) && io(n, t, r) && (s.preventDefault && n.preventDefault(), i(n));
286
+ }
287
+ );
288
+ };
289
+ return document.documentElement.addEventListener("keydown", a), () => document.documentElement.removeEventListener("keydown", a);
290
+ }, [e, t, r]);
291
+ }
292
+ function lo() {
278
293
  const e = A(null), [t, r] = Z(!1);
279
294
  return { ref: re((a) => {
280
295
  var n, o;
@@ -283,26 +298,26 @@ function io() {
283
298
  ) : (n = e.current) == null || n.disconnect(), a ? (o = e.current) == null || o.observe(a) : r(!1));
284
299
  }, []), inViewport: t };
285
300
  }
286
- function Ea(e, t) {
301
+ function Ta(e, t) {
287
302
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
288
303
  }
289
304
  const Br = (e, t) => {
290
305
  const r = JSON.stringify(
291
306
  typeof t == "function" ? t() : t
292
307
  );
293
- window.localStorage.setItem(e, r), Ea(e, r);
294
- }, so = (e) => {
295
- window.localStorage.removeItem(e), Ea(e, null);
296
- }, Mr = (e) => window.localStorage.getItem(e), lo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
308
+ window.localStorage.setItem(e, r), Ta(e, r);
309
+ }, co = (e) => {
310
+ window.localStorage.removeItem(e), Ta(e, null);
311
+ }, Mr = (e) => window.localStorage.getItem(e), uo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
297
312
  function Mt({
298
313
  key: e,
299
314
  initialValue: t
300
315
  }) {
301
- const r = An(lo, () => Mr(e)), a = re(
316
+ const r = $n(uo, () => Mr(e)), a = re(
302
317
  (i) => {
303
318
  try {
304
319
  const s = typeof i == "function" ? i(JSON.parse(r)) : i;
305
- s == null ? so(e) : Br(e, s);
320
+ s == null ? co(e) : Br(e, s);
306
321
  } catch (s) {
307
322
  console.warn(s);
308
323
  }
@@ -313,7 +328,7 @@ function Mt({
313
328
  }, [t, a]), o = re(() => {
314
329
  a(null);
315
330
  }, [a]);
316
- return M(() => {
331
+ return $(() => {
317
332
  try {
318
333
  Mr(e) === null && typeof t < "u" && Br(e, t);
319
334
  } catch (i) {
@@ -321,7 +336,7 @@ function Mt({
321
336
  }
322
337
  }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
323
338
  }
324
- function co(e) {
339
+ function mo(e) {
325
340
  return ma(() => e.every((t) => t == null) ? () => {
326
341
  } : (t) => {
327
342
  e.forEach((r) => {
@@ -329,7 +344,7 @@ function co(e) {
329
344
  });
330
345
  }, e);
331
346
  }
332
- function uo({
347
+ function go({
333
348
  value: e,
334
349
  defaultValue: t,
335
350
  finalValue: r,
@@ -342,13 +357,13 @@ function uo({
342
357
  ), d = (h) => {
343
358
  c(h), a == null || a(h);
344
359
  };
345
- return M(() => {
360
+ return $(() => {
346
361
  (async () => e !== void 0 && !o && n > 0 && (await new Promise(
347
362
  (h) => setTimeout(h, n)
348
363
  ), i(!0)))();
349
364
  }, [e, n, o]), e !== void 0 ? !o && n > 0 ? ["", a, !0] : [e, a, !0] : [s, d, !1];
350
365
  }
351
- function mo(e) {
366
+ function fo(e) {
352
367
  return er();
353
368
  }
354
369
  /*!
@@ -367,7 +382,7 @@ try {
367
382
  const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
368
383
  ASC: "asc",
369
384
  DESC: "desc"
370
- }, go = ({
385
+ }, ho = ({
371
386
  mode: e,
372
387
  className: t,
373
388
  wrapperClassName: r,
@@ -402,7 +417,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
402
417
  "text-copy-light dark:text-copy-dark": e === "system",
403
418
  "text-copy-dark dark:text-copy-light": e === "alt-system"
404
419
  })
405
- }), fo = ({
420
+ }), po = ({
406
421
  className: e,
407
422
  stickyHeader: t,
408
423
  mode: r
@@ -415,7 +430,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
415
430
  "shadow-[rgb(65_65_65_/30%)_0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_0.5rem_1rem]": t && r === "alt-system"
416
431
  },
417
432
  e
418
- ), ho = ({
433
+ ), bo = ({
419
434
  className: e,
420
435
  stickyFooter: t,
421
436
  mode: r
@@ -428,7 +443,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
428
443
  "shadow-[rgb(65_65_65_/30%)_-0_0.5rem_1rem] dark:shadow-[rgb(190_190_190_/20%)_0_-0.5rem_1rem]": t && r === "alt-system"
429
444
  },
430
445
  e
431
- ), po = ({
446
+ ), yo = ({
432
447
  mode: e,
433
448
  className: t,
434
449
  cellWrapper: r
@@ -453,7 +468,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
453
468
  "odd:bg-table-light-odd even:bg-table-light-even dark:odd:bg-table-dark-odd dark:even:bg-table-dark-even": r === Ee && e === "alt-system"
454
469
  },
455
470
  t
456
- ), bo = ({
471
+ ), vo = ({
457
472
  cellWrapper: e,
458
473
  className: t,
459
474
  compact: r,
@@ -477,9 +492,9 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
477
492
  },
478
493
  t
479
494
  )
480
- }), yo = ({
495
+ }), ko = ({
481
496
  buttonClassName: e
482
- }) => f("rounded-none text-sm", e), Vr = "av-button", ar = "icon", Ta = "button", Vt = "link", vo = ({
497
+ }) => f("rounded-none text-sm", e), Vr = "av-button", ar = "icon", Sa = "button", Vt = "link", xo = ({
483
498
  type: e,
484
499
  size: t,
485
500
  labelRight: r,
@@ -488,7 +503,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
488
503
  }) => {
489
504
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
490
505
  switch (e) {
491
- case Ta:
506
+ case Sa:
492
507
  case Vt:
493
508
  return f({
494
509
  [o]: t === "small",
@@ -508,7 +523,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
508
523
  "h-12 px-4": t === "large" && (r || a)
509
524
  });
510
525
  }
511
- }, ko = ({
526
+ }, wo = ({
512
527
  type: e,
513
528
  size: t,
514
529
  labelRight: r,
@@ -516,7 +531,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
516
531
  }) => {
517
532
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
518
533
  switch (e) {
519
- case Ta:
534
+ case Sa:
520
535
  case Vt:
521
536
  return f({
522
537
  "text-center": e === Vt,
@@ -531,7 +546,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
531
546
  [i]: t === "large" && (r || a)
532
547
  });
533
548
  }
534
- }, xo = ({
549
+ }, _o = ({
535
550
  mode: e,
536
551
  noBackground: t,
537
552
  noTruncate: r,
@@ -567,7 +582,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
567
582
  return f("not-prose text-copy-lighter", {
568
583
  truncate: !r
569
584
  });
570
- }, wo = ({
585
+ }, Eo = ({
571
586
  mode: e,
572
587
  noBackground: t,
573
588
  variant: r
@@ -597,13 +612,13 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
597
612
  if (r === "selected")
598
613
  return "bg-action-selected-dark";
599
614
  }
600
- }, _o = ({
615
+ }, To = ({
601
616
  radius: e
602
617
  }) => f({
603
618
  "rounded-full": e === "large",
604
619
  "rounded-md": e === "medium",
605
620
  "rounded-sm": e === "small"
606
- }), Eo = ({
621
+ }), So = ({
607
622
  mode: e,
608
623
  disabled: t,
609
624
  variant: r
@@ -633,7 +648,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
633
648
  });
634
649
  if (r === "selected")
635
650
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
636
- }, To = ({
651
+ }, No = ({
637
652
  mode: e,
638
653
  disabled: t,
639
654
  variant: r
@@ -663,7 +678,7 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
663
678
  });
664
679
  if (r === "selected")
665
680
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
666
- }, So = ({
681
+ }, Co = ({
667
682
  mode: e,
668
683
  noBorder: t,
669
684
  variant: r
@@ -693,14 +708,14 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
693
708
  });
694
709
  if (r === "selected")
695
710
  return "border border-border-selected-dark";
696
- }, No = ({
711
+ }, Ro = ({
697
712
  focusMode: e
698
713
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
699
714
  "focus:outline-focus-dark": e === "dark",
700
715
  "focus:outline-focus-light": e === "light",
701
716
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
702
717
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
703
- }), Co = ({
718
+ }), Io = ({
704
719
  type: e,
705
720
  className: t,
706
721
  raw: r,
@@ -719,48 +734,48 @@ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
719
734
  radius: b
720
735
  }) => (m || (m = "primary"), r ? f(Vr, t) : f(
721
736
  Vr,
722
- xo({
737
+ _o({
723
738
  mode: a,
724
739
  variant: m,
725
740
  noBackground: u,
726
741
  noTruncate: g
727
742
  }),
728
- wo({ mode: a, noBackground: u, variant: m }),
729
- _o({ radius: b }),
730
- vo({
743
+ Eo({ mode: a, noBackground: u, variant: m }),
744
+ To({ radius: b }),
745
+ xo({
731
746
  type: e,
732
747
  size: s,
733
748
  labelRight: d,
734
749
  labelLeft: h,
735
750
  align: p
736
751
  }),
737
- ko({ type: e, size: s, labelRight: d, labelLeft: h }),
738
- So({ mode: a, variant: m, noBorder: c }),
739
- No({ focusMode: n }),
740
- Eo({ mode: a, variant: m, disabled: o }),
741
- To({ mode: a, variant: m, disabled: o }),
752
+ wo({ type: e, size: s, labelRight: d, labelLeft: h }),
753
+ Co({ mode: a, variant: m, noBorder: c }),
754
+ Ro({ focusMode: n }),
755
+ So({ mode: a, variant: m, disabled: o }),
756
+ No({ mode: a, variant: m, disabled: o }),
742
757
  {
743
758
  "w-full": i,
744
759
  "disabled:cursor-not-allowed disabled:opacity-50": o
745
760
  },
746
761
  t
747
- )), Ro = (e, t, r) => {
762
+ )), Lo = (e, t, r) => {
748
763
  var a;
749
764
  !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);
750
- }, Sa = V.forwardRef((e, t) => {
765
+ }, Na = V.forwardRef((e, t) => {
751
766
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
752
767
  return /* @__PURE__ */ l(
753
768
  "button",
754
769
  {
755
770
  ref: t,
756
771
  onClick: (o) => {
757
- Ro(o, a, r);
772
+ Lo(o, a, r);
758
773
  },
759
774
  ...n
760
775
  }
761
776
  );
762
777
  });
763
- Sa.displayName = "BaseButton";
778
+ Na.displayName = "BaseButton";
764
779
  /*!
765
780
  @versini/ui-button v4.1.4
766
781
  © 2025 gizmette.com
@@ -774,7 +789,7 @@ try {
774
789
  });
775
790
  } catch {
776
791
  }
777
- const Na = V.forwardRef(
792
+ const Ca = V.forwardRef(
778
793
  ({
779
794
  children: e,
780
795
  disabled: t = !1,
@@ -796,7 +811,7 @@ const Na = V.forwardRef(
796
811
  radius: y = "large",
797
812
  ...k
798
813
  }, w) => {
799
- const _ = Co({
814
+ const _ = Io({
800
815
  type: ar,
801
816
  mode: r,
802
817
  focusMode: a,
@@ -834,7 +849,7 @@ const Na = V.forwardRef(
834
849
  }
835
850
  ) : "";
836
851
  return /* @__PURE__ */ l("div", { className: T, children: /* @__PURE__ */ E(
837
- Sa,
852
+ Na,
838
853
  {
839
854
  ref: w,
840
855
  className: _,
@@ -851,7 +866,7 @@ const Na = V.forwardRef(
851
866
  ) });
852
867
  }
853
868
  );
854
- Na.displayName = "ButtonSort";
869
+ Ca.displayName = "ButtonSort";
855
870
  const nr = ({
856
871
  children: e,
857
872
  fill: t,
@@ -895,7 +910,7 @@ try {
895
910
  });
896
911
  } catch {
897
912
  }
898
- const Io = ({
913
+ const Oo = ({
899
914
  className: e,
900
915
  viewBox: t,
901
916
  title: r,
@@ -921,7 +936,7 @@ const Io = ({
921
936
  /* @__PURE__ */ l("path", { d: "M137.4 470.6c12.5 12.5 32.8 12.5 45.3 0l96-96c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 370.7V64c0-17.7-14.3-32-32-32s-32 14.3-32 32v306.7l-41.4-41.3c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l96 96z" })
922
937
  ]
923
938
  }
924
- ), Lo = ({
939
+ ), Ao = ({
925
940
  className: e,
926
941
  viewBox: t,
927
942
  title: r,
@@ -947,7 +962,7 @@ const Io = ({
947
962
  /* @__PURE__ */ l("path", { d: "M128 480c9 0 17.5-3.8 23.6-10.4l88-96c11.9-13 11.1-33.3-2-45.2s-33.3-11.1-45.2 2L160 365.7V64c0-17.7-14.3-32-32-32S96 46.3 96 64v301.7l-32.4-35.3c-11.9-13-32.2-13.9-45.2-2s-13.9 32.2-2 45.2l88 96c6.1 6.6 14.6 10.4 23.6 10.4" })
948
963
  ]
949
964
  }
950
- ), Oo = ({
965
+ ), $o = ({
951
966
  className: e,
952
967
  viewBox: t,
953
968
  title: r,
@@ -993,7 +1008,7 @@ const Le = V.createContext({
993
1008
  stickyHeader: !1,
994
1009
  stickyFooter: !1,
995
1010
  compact: !1
996
- }), jl = ({
1011
+ }), Yl = ({
997
1012
  children: e,
998
1013
  mode: t = "system",
999
1014
  caption: r,
@@ -1006,7 +1021,7 @@ const Le = V.createContext({
1006
1021
  stickyFooter: d,
1007
1022
  ...h
1008
1023
  }) => {
1009
- const u = go({
1024
+ const u = ho({
1010
1025
  mode: t,
1011
1026
  className: o,
1012
1027
  wrapperClassName: i,
@@ -1032,54 +1047,54 @@ const Le = V.createContext({
1032
1047
  )
1033
1048
  }
1034
1049
  );
1035
- }, ql = ({
1050
+ }, Jl = ({
1036
1051
  children: e,
1037
1052
  className: t,
1038
1053
  ...r
1039
1054
  }) => {
1040
1055
  const a = z(Le);
1041
1056
  a.cellWrapper = it;
1042
- const n = fo({
1057
+ const n = po({
1043
1058
  className: t,
1044
1059
  mode: a.mode,
1045
1060
  stickyHeader: a.stickyHeader
1046
1061
  });
1047
1062
  return /* @__PURE__ */ l("thead", { className: n, ...r, children: e });
1048
- }, Kl = ({
1063
+ }, Xl = ({
1049
1064
  children: e,
1050
1065
  className: t,
1051
1066
  ...r
1052
1067
  }) => {
1053
1068
  const a = z(Le);
1054
1069
  a.cellWrapper = rr;
1055
- const n = ho({
1070
+ const n = bo({
1056
1071
  className: t,
1057
1072
  mode: a.mode,
1058
1073
  stickyFooter: a.stickyFooter
1059
1074
  });
1060
1075
  return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
1061
- }, Yl = ({ children: e, ...t }) => {
1076
+ }, Zl = ({ children: e, ...t }) => {
1062
1077
  const r = z(Le);
1063
1078
  return r.cellWrapper = Ee, /* @__PURE__ */ l("tbody", { ...t, children: e });
1064
- }, Jl = ({
1079
+ }, Ql = ({
1065
1080
  children: e,
1066
1081
  className: t,
1067
1082
  ...r
1068
1083
  }) => {
1069
- const a = z(Le), n = po({
1084
+ const a = z(Le), n = yo({
1070
1085
  mode: a.mode,
1071
1086
  cellWrapper: a.cellWrapper,
1072
1087
  className: t
1073
1088
  });
1074
1089
  return /* @__PURE__ */ l("tr", { className: n, ...r, children: e });
1075
- }, Ao = ({
1090
+ }, Bo = ({
1076
1091
  children: e,
1077
1092
  component: t,
1078
1093
  className: r,
1079
1094
  align: a,
1080
1095
  ...n
1081
1096
  }) => {
1082
- const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = bo({
1097
+ const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = vo({
1083
1098
  cellWrapper: o.cellWrapper,
1084
1099
  className: r,
1085
1100
  mode: o.mode,
@@ -1087,7 +1102,7 @@ const Le = V.createContext({
1087
1102
  align: a
1088
1103
  });
1089
1104
  return a ? /* @__PURE__ */ l(i, { className: s, ...n, children: /* @__PURE__ */ l("div", { className: c, children: e }) }) : /* @__PURE__ */ l(i, { className: s, ...n, children: e });
1090
- }, Xl = ({
1105
+ }, ec = ({
1091
1106
  align: e,
1092
1107
  children: t,
1093
1108
  buttonClassName: r,
@@ -1101,9 +1116,9 @@ const Le = V.createContext({
1101
1116
  cellId: h,
1102
1117
  ...u
1103
1118
  }) => {
1104
- const m = yo({ buttonClassName: r });
1119
+ const m = ko({ buttonClassName: r });
1105
1120
  return /* @__PURE__ */ l(
1106
- Ao,
1121
+ Bo,
1107
1122
  {
1108
1123
  component: n,
1109
1124
  className: a,
@@ -1111,7 +1126,7 @@ const Le = V.createContext({
1111
1126
  "aria-sort": c === Be.ASC && d === h ? "ascending" : c === Be.DESC && d === h ? "descending" : "other",
1112
1127
  ...u,
1113
1128
  children: /* @__PURE__ */ l(
1114
- Na,
1129
+ Ca,
1115
1130
  {
1116
1131
  active: d === h,
1117
1132
  className: m,
@@ -1122,7 +1137,7 @@ const Le = V.createContext({
1122
1137
  mode: i,
1123
1138
  fullWidth: !0,
1124
1139
  labelRight: t,
1125
- children: c === Be.ASC && d === h ? /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Lo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Io, { className: "size-4", monotone: !0 })
1140
+ children: c === Be.ASC && d === h ? /* @__PURE__ */ l($o, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Ao, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 })
1126
1141
  }
1127
1142
  )
1128
1143
  }
@@ -1130,33 +1145,33 @@ const Le = V.createContext({
1130
1145
  }, W = [];
1131
1146
  for (let e = 0; e < 256; ++e)
1132
1147
  W.push((e + 256).toString(16).slice(1));
1133
- function $o(e, t = 0) {
1148
+ function Mo(e, t = 0) {
1134
1149
  return (W[e[t + 0]] + W[e[t + 1]] + W[e[t + 2]] + W[e[t + 3]] + "-" + W[e[t + 4]] + W[e[t + 5]] + "-" + W[e[t + 6]] + W[e[t + 7]] + "-" + W[e[t + 8]] + W[e[t + 9]] + "-" + W[e[t + 10]] + W[e[t + 11]] + W[e[t + 12]] + W[e[t + 13]] + W[e[t + 14]] + W[e[t + 15]]).toLowerCase();
1135
1150
  }
1136
1151
  let _t;
1137
- const Bo = new Uint8Array(16);
1138
- function Mo() {
1152
+ const Vo = new Uint8Array(16);
1153
+ function Po() {
1139
1154
  if (!_t) {
1140
1155
  if (typeof crypto > "u" || !crypto.getRandomValues)
1141
1156
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1142
1157
  _t = crypto.getRandomValues.bind(crypto);
1143
1158
  }
1144
- return _t(Bo);
1159
+ return _t(Vo);
1145
1160
  }
1146
- const Vo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pr = { randomUUID: Vo };
1161
+ const Do = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Pr = { randomUUID: Do };
1147
1162
  function or(e, t, r) {
1148
1163
  var n;
1149
1164
  if (Pr.randomUUID && !e)
1150
1165
  return Pr.randomUUID();
1151
1166
  e = e || {};
1152
- const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Mo();
1167
+ const a = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Po();
1153
1168
  if (a.length < 16)
1154
1169
  throw new Error("Random bytes length must be >= 16");
1155
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, $o(a);
1170
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Mo(a);
1156
1171
  }
1157
- const Po = (e, t) => {
1172
+ const zo = (e, t) => {
1158
1173
  var r, a;
1159
- if ((t == null ? void 0 : t.type) === hn) {
1174
+ if ((t == null ? void 0 : t.type) === pn) {
1160
1175
  const n = t.payload.messages.map((o) => ({
1161
1176
  message: {
1162
1177
  role: o.role,
@@ -1271,15 +1286,15 @@ const Po = (e, t) => {
1271
1286
  };
1272
1287
  }
1273
1288
  return e;
1274
- }, Do = (e, t) => {
1289
+ }, Uo = (e, t) => {
1275
1290
  switch (t == null ? void 0 : t.type) {
1276
- case bn:
1291
+ case yn:
1277
1292
  return {
1278
1293
  searchString: t.payload.searchString,
1279
1294
  sortedCell: e.sortedCell,
1280
1295
  sortDirection: e.sortDirection
1281
1296
  };
1282
- case pn:
1297
+ case bn:
1283
1298
  return {
1284
1299
  searchString: e.searchString,
1285
1300
  sortedCell: t.payload.sortedCell,
@@ -1288,7 +1303,7 @@ const Po = (e, t) => {
1288
1303
  default:
1289
1304
  return e;
1290
1305
  }
1291
- }, zo = (e, t) => {
1306
+ }, Ho = (e, t) => {
1292
1307
  switch (t == null ? void 0 : t.type) {
1293
1308
  case ua:
1294
1309
  return {
@@ -1315,7 +1330,7 @@ var Xe = { exports: {} }, Et = {};
1315
1330
  * LICENSE file in the root directory of this source tree.
1316
1331
  */
1317
1332
  var Dr;
1318
- function Uo() {
1333
+ function Fo() {
1319
1334
  if (Dr) return Et;
1320
1335
  Dr = 1;
1321
1336
  var e = V;
@@ -1366,7 +1381,7 @@ var Tt = {};
1366
1381
  * LICENSE file in the root directory of this source tree.
1367
1382
  */
1368
1383
  var zr;
1369
- function Ho() {
1384
+ function Wo() {
1370
1385
  return zr || (zr = 1, process.env.NODE_ENV !== "production" && function() {
1371
1386
  function e(g, p) {
1372
1387
  return g === p && (g !== 0 || 1 / g === 1 / p) || g !== g && p !== p;
@@ -1419,10 +1434,10 @@ function Ho() {
1419
1434
  }()), Tt;
1420
1435
  }
1421
1436
  var Ur;
1422
- function Fo() {
1423
- return Ur || (Ur = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ Uo() : Xe.exports = /* @__PURE__ */ Ho()), Xe.exports;
1437
+ function Go() {
1438
+ return Ur || (Ur = 1, process.env.NODE_ENV === "production" ? Xe.exports = /* @__PURE__ */ Fo() : Xe.exports = /* @__PURE__ */ Wo()), Xe.exports;
1424
1439
  }
1425
- var Wo = /* @__PURE__ */ Fo(), Hr = Object.prototype.hasOwnProperty;
1440
+ var jo = /* @__PURE__ */ Go(), Hr = Object.prototype.hasOwnProperty;
1426
1441
  function Pt(e, t) {
1427
1442
  var r, a;
1428
1443
  if (e === t) return !0;
@@ -1450,7 +1465,7 @@ const ie = /* @__PURE__ */ new WeakMap(), he = () => {
1450
1465
  ), Dt = Object, C = (e) => e === X, se = (e) => typeof e == "function", pe = (e, t) => ({
1451
1466
  ...e,
1452
1467
  ...t
1453
- }), Ca = (e) => se(e.then), St = {}, Ze = {}, ir = "undefined", st = typeof window != ir, zt = typeof document != ir, Go = () => st && typeof window.requestAnimationFrame != ir, Ra = (e, t) => {
1468
+ }), Ra = (e) => se(e.then), St = {}, Ze = {}, ir = "undefined", st = typeof window != ir, zt = typeof document != ir, qo = () => st && typeof window.requestAnimationFrame != ir, Ia = (e, t) => {
1454
1469
  const r = ie.get(e);
1455
1470
  return [
1456
1471
  // Getter
@@ -1469,18 +1484,18 @@ const ie = /* @__PURE__ */ new WeakMap(), he = () => {
1469
1484
  ];
1470
1485
  };
1471
1486
  let Ut = !0;
1472
- const jo = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1487
+ const Ko = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1473
1488
  window.addEventListener.bind(window),
1474
1489
  window.removeEventListener.bind(window)
1475
1490
  ] : [
1476
1491
  he,
1477
1492
  he
1478
- ], qo = () => {
1493
+ ], Yo = () => {
1479
1494
  const e = zt && document.visibilityState;
1480
1495
  return C(e) || e !== "hidden";
1481
- }, Ko = (e) => (zt && document.addEventListener("visibilitychange", e), Ht("focus", e), () => {
1496
+ }, Jo = (e) => (zt && document.addEventListener("visibilitychange", e), Ht("focus", e), () => {
1482
1497
  zt && document.removeEventListener("visibilitychange", e), Ft("focus", e);
1483
- }), Yo = (e) => {
1498
+ }), Xo = (e) => {
1484
1499
  const t = () => {
1485
1500
  Ut = !0, e();
1486
1501
  }, r = () => {
@@ -1489,23 +1504,23 @@ const jo = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1489
1504
  return Ht("online", t), Ht("offline", r), () => {
1490
1505
  Ft("online", t), Ft("offline", r);
1491
1506
  };
1492
- }, Jo = {
1493
- isOnline: jo,
1494
- isVisible: qo
1495
- }, Xo = {
1496
- initFocus: Ko,
1497
- initReconnect: Yo
1498
- }, Fr = !V.useId, De = !st || "Deno" in globalThis, Zo = (e) => Go() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? M : Bn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
1507
+ }, Zo = {
1508
+ isOnline: Ko,
1509
+ isVisible: Yo
1510
+ }, Qo = {
1511
+ initFocus: Jo,
1512
+ initReconnect: Xo
1513
+ }, Fr = !V.useId, De = !st || "Deno" in globalThis, ei = (e) => qo() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? $ : Mn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
1499
1514
  "slow-2g",
1500
1515
  "2g"
1501
1516
  ].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => Dt.prototype.toString.call(e) === `[object ${t}]`;
1502
- let Qo = 0;
1517
+ let ti = 0;
1503
1518
  const Wt = (e) => {
1504
1519
  const t = typeof e, r = Rt(e, "Date"), a = Rt(e, "RegExp"), n = Rt(e, "Object");
1505
1520
  let o, i;
1506
1521
  if (Dt(e) === e && !r && !a) {
1507
1522
  if (o = Qe.get(e), o) return o;
1508
- if (o = ++Qo + "~", Qe.set(e, o), Array.isArray(e)) {
1523
+ if (o = ++ti + "~", Qe.set(e, o), Array.isArray(e)) {
1509
1524
  for (o = "@", i = 0; i < e.length; i++)
1510
1525
  o += Wt(e[i]) + ",";
1511
1526
  Qe.set(e, o);
@@ -1533,16 +1548,16 @@ const Wt = (e) => {
1533
1548
  t
1534
1549
  ];
1535
1550
  };
1536
- let ei = 0;
1537
- const Gt = () => ++ei, Ia = 0, La = 1, Oa = 2, ti = 3;
1551
+ let ri = 0;
1552
+ const Gt = () => ++ri, La = 0, Oa = 1, Aa = 2, ai = 3;
1538
1553
  var $e = {
1539
1554
  __proto__: null,
1540
- ERROR_REVALIDATE_EVENT: ti,
1541
- FOCUS_EVENT: Ia,
1542
- MUTATE_EVENT: Oa,
1543
- RECONNECT_EVENT: La
1555
+ ERROR_REVALIDATE_EVENT: ai,
1556
+ FOCUS_EVENT: La,
1557
+ MUTATE_EVENT: Aa,
1558
+ RECONNECT_EVENT: Oa
1544
1559
  };
1545
- async function Aa(...e) {
1560
+ async function $a(...e) {
1546
1561
  const [t, r, a, n] = e, o = pe({
1547
1562
  populateCache: !0,
1548
1563
  throwOnError: !0
@@ -1564,9 +1579,9 @@ async function Aa(...e) {
1564
1579
  async function u(m) {
1565
1580
  const [g] = lt(m);
1566
1581
  if (!g) return;
1567
- const [p, b] = Ra(t, g), [v, y, k, w] = ie.get(t), _ = () => {
1568
- const $ = v[g];
1569
- return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], $ && $[0]) ? $[0](Oa).then(() => p().data) : p().data;
1582
+ const [p, b] = Ia(t, g), [v, y, k, w] = ie.get(t), _ = () => {
1583
+ const B = v[g];
1584
+ return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], B && B[0]) ? B[0](Aa).then(() => p().data) : p().data;
1570
1585
  };
1571
1586
  if (e.length < 3)
1572
1587
  return _();
@@ -1583,12 +1598,12 @@ async function Aa(...e) {
1583
1598
  })), se(x))
1584
1599
  try {
1585
1600
  x = x(P);
1586
- } catch ($) {
1587
- T = $;
1601
+ } catch (B) {
1602
+ T = B;
1588
1603
  }
1589
- if (x && Ca(x))
1590
- if (x = await x.catch(($) => {
1591
- T = $;
1604
+ if (x && Ra(x))
1605
+ if (x = await x.catch((B) => {
1606
+ T = B;
1592
1607
  }), S !== y[g][0]) {
1593
1608
  if (T) throw T;
1594
1609
  return x;
@@ -1598,9 +1613,9 @@ async function Aa(...e) {
1598
1613
  }));
1599
1614
  if (i && !T)
1600
1615
  if (se(i)) {
1601
- const $ = i(x, P);
1616
+ const B = i(x, P);
1602
1617
  b({
1603
- data: $,
1618
+ data: B,
1604
1619
  error: X,
1605
1620
  _c: X
1606
1621
  });
@@ -1624,9 +1639,9 @@ async function Aa(...e) {
1624
1639
  const Gr = (e, t) => {
1625
1640
  for (const r in e)
1626
1641
  e[r][0] && e[r][0](t);
1627
- }, ri = (e, t) => {
1642
+ }, ni = (e, t) => {
1628
1643
  if (!ie.has(e)) {
1629
- const r = pe(Xo, t), a = {}, n = Aa.bind(X, e);
1644
+ const r = pe(Qo, t), a = {}, n = $a.bind(X, e);
1630
1645
  let o = he;
1631
1646
  const i = {}, s = (h, u) => {
1632
1647
  const m = i[h] || [];
@@ -1647,7 +1662,7 @@ const Gr = (e, t) => {
1647
1662
  c,
1648
1663
  s
1649
1664
  ]), !De)) {
1650
- const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, Ia))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, La)));
1665
+ const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, La))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, Oa)));
1651
1666
  o = () => {
1652
1667
  h && h(), u && u(), ie.delete(e);
1653
1668
  };
@@ -1664,16 +1679,16 @@ const Gr = (e, t) => {
1664
1679
  e,
1665
1680
  ie.get(e)[4]
1666
1681
  ];
1667
- }, ai = (e, t, r, a, n) => {
1682
+ }, oi = (e, t, r, a, n) => {
1668
1683
  const o = r.errorRetryCount, i = n.retryCount, s = ~~((Math.random() + 0.5) * (1 << (i < 8 ? i : 8))) * r.errorRetryInterval;
1669
1684
  !C(o) && i > o || setTimeout(a, s, n);
1670
- }, ni = Pt, [sr, oi] = ri(/* @__PURE__ */ new Map()), ii = pe(
1685
+ }, ii = Pt, [sr, si] = ni(/* @__PURE__ */ new Map()), li = pe(
1671
1686
  {
1672
1687
  // events
1673
1688
  onLoadingSlow: he,
1674
1689
  onSuccess: he,
1675
1690
  onError: he,
1676
- onErrorRetry: ai,
1691
+ onErrorRetry: oi,
1677
1692
  onDiscarded: he,
1678
1693
  // switches
1679
1694
  revalidateOnFocus: !0,
@@ -1686,24 +1701,24 @@ const Gr = (e, t) => {
1686
1701
  dedupingInterval: 2 * 1e3,
1687
1702
  loadingTimeout: Wr ? 5e3 : 3e3,
1688
1703
  // providers
1689
- compare: ni,
1704
+ compare: ii,
1690
1705
  isPaused: () => !1,
1691
1706
  cache: sr,
1692
- mutate: oi,
1707
+ mutate: si,
1693
1708
  fallback: {}
1694
1709
  },
1695
1710
  // use web preset by default
1696
- Jo
1697
- ), si = (e, t) => {
1711
+ Zo
1712
+ ), ci = (e, t) => {
1698
1713
  const r = pe(e, t);
1699
1714
  if (t) {
1700
1715
  const { use: a, fallback: n } = e, { use: o, fallback: i } = t;
1701
1716
  a && o && (r.use = a.concat(o)), n && i && (r.fallback = pe(n, i));
1702
1717
  }
1703
1718
  return r;
1704
- }, li = $n({}), ci = "$inf$", $a = st && window.__SWR_DEVTOOLS_USE__, di = $a ? window.__SWR_DEVTOOLS_USE__ : [], ui = () => {
1705
- $a && (window.__SWR_DEVTOOLS_REACT__ = V);
1706
- }, mi = (e) => se(e[1]) ? [
1719
+ }, di = Bn({}), ui = "$inf$", Ba = st && window.__SWR_DEVTOOLS_USE__, mi = Ba ? window.__SWR_DEVTOOLS_USE__ : [], gi = () => {
1720
+ Ba && (window.__SWR_DEVTOOLS_REACT__ = V);
1721
+ }, fi = (e) => se(e[1]) ? [
1707
1722
  e[0],
1708
1723
  e[1],
1709
1724
  e[2] || {}
@@ -1711,32 +1726,32 @@ const Gr = (e, t) => {
1711
1726
  e[0],
1712
1727
  null,
1713
1728
  (e[1] === null ? e[2] : e[1]) || {}
1714
- ], gi = () => pe(ii, z(li)), Ba = (e, t) => {
1729
+ ], hi = () => pe(li, z(di)), Ma = (e, t) => {
1715
1730
  const [r, a] = lt(e), [, , , n] = ie.get(sr);
1716
1731
  if (n[r]) return n[r];
1717
1732
  const o = t(a);
1718
1733
  return n[r] = o, o;
1719
- }, fi = (e) => (t, r, a) => e(t, r && ((...o) => {
1734
+ }, pi = (e) => (t, r, a) => e(t, r && ((...o) => {
1720
1735
  const [i] = lt(t), [, , , s] = ie.get(sr);
1721
- if (i.startsWith(ci))
1736
+ if (i.startsWith(ui))
1722
1737
  return r(...o);
1723
1738
  const c = s[i];
1724
1739
  return C(c) ? r(...o) : (delete s[i], c);
1725
- }), a), hi = di.concat(fi), pi = (e) => function(...r) {
1726
- const a = gi(), [n, o, i] = mi(r), s = si(a, i);
1740
+ }), a), bi = mi.concat(pi), yi = (e) => function(...r) {
1741
+ const a = hi(), [n, o, i] = fi(r), s = ci(a, i);
1727
1742
  let c = e;
1728
- const { use: d } = s, h = (d || []).concat(hi);
1743
+ const { use: d } = s, h = (d || []).concat(bi);
1729
1744
  for (let u = h.length; u--; )
1730
1745
  c = h[u](c);
1731
1746
  return c(n, o || s.fetcher || null, s);
1732
- }, bi = (e, t, r) => {
1747
+ }, vi = (e, t, r) => {
1733
1748
  const a = t[e] || (t[e] = []);
1734
1749
  return a.push(r), () => {
1735
1750
  const n = a.indexOf(r);
1736
1751
  n >= 0 && (a[n] = a[a.length - 1], a.pop());
1737
1752
  };
1738
1753
  };
1739
- ui();
1754
+ gi();
1740
1755
  const It = V.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1741
1756
  // and emitting an error.
1742
1757
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
@@ -1758,14 +1773,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1758
1773
  }
1759
1774
  }), Lt = {
1760
1775
  dedupe: !0
1761
- }, yi = (e, t, r) => {
1762
- const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, $] = Ra(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1776
+ }, ki = (e, t, r) => {
1777
+ const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, B] = Ia(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1763
1778
  for (const q in R) {
1764
- const B = q;
1765
- if (B === "data") {
1766
- if (!n(I[B], L[B]) && (!C(I[B]) || !n(Je, L[B])))
1779
+ const M = q;
1780
+ if (M === "data") {
1781
+ if (!n(I[M], L[M]) && (!C(I[M]) || !n(Je, L[M])))
1767
1782
  return !1;
1768
- } else if (L[B] !== I[B])
1783
+ } else if (L[M] !== I[M])
1769
1784
  return !1;
1770
1785
  }
1771
1786
  return !0;
@@ -1777,7 +1792,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1777
1792
  isLoading: !0,
1778
1793
  ...ue
1779
1794
  } : ue;
1780
- }, q = O(), B = $(), oe = L(q), _e = q === B ? oe : L(B);
1795
+ }, q = O(), M = B(), oe = L(q), _e = q === M ? oe : L(M);
1781
1796
  let F = oe;
1782
1797
  return [
1783
1798
  () => {
@@ -1789,7 +1804,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1789
1804
  }, [
1790
1805
  a,
1791
1806
  y
1792
- ]), U = Wo.useSyncExternalStore(re(
1807
+ ]), U = jo.useSyncExternalStore(re(
1793
1808
  (I) => P(y, (L, q) => {
1794
1809
  K(q, L) || I();
1795
1810
  }),
@@ -1798,12 +1813,12 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1798
1813
  a,
1799
1814
  y
1800
1815
  ]
1801
- ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ca(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), mn = C(U.isValidating) ? wr : U.isValidating, gn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
1816
+ ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ra(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), gn = C(U.isValidating) ? wr : U.isValidating, fn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
1802
1817
  async (I) => {
1803
1818
  const L = T.current;
1804
1819
  if (!y || !L || _.current || N().isPaused())
1805
1820
  return !1;
1806
- let q, B, oe = !0;
1821
+ let q, M, oe = !0;
1807
1822
  const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current, ue = {
1808
1823
  isValidating: !1,
1809
1824
  isLoading: !1
@@ -1811,7 +1826,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1811
1826
  j(ue);
1812
1827
  }, Tr = () => {
1813
1828
  const te = b[y];
1814
- te && te[1] === B && delete b[y];
1829
+ te && te[1] === M && delete b[y];
1815
1830
  }, Sr = {
1816
1831
  isValidating: !0
1817
1832
  };
@@ -1822,13 +1837,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1822
1837
  }, r.loadingTimeout), b[y] = [
1823
1838
  L(k),
1824
1839
  Gt()
1825
- ]), [q, B] = b[y], q = await q, F && setTimeout(Tr, r.dedupingInterval), !b[y] || b[y][1] !== B)
1840
+ ]), [q, M] = b[y], q = await q, F && setTimeout(Tr, r.dedupingInterval), !b[y] || b[y][1] !== M)
1826
1841
  return F && J() && N().onDiscarded(y), !1;
1827
1842
  ue.error = X;
1828
1843
  const te = p[y];
1829
1844
  if (!C(te) && // case 1
1830
- (B <= te[0] || // case 2
1831
- B <= te[1] || // case 3
1845
+ (M <= te[0] || // case 2
1846
+ M <= te[1] || // case 3
1832
1847
  te[1] === 0))
1833
1848
  return Er(), F && J() && N().onDiscarded(y), !1;
1834
1849
  const me = O().data;
@@ -1836,9 +1851,9 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1836
1851
  } catch (te) {
1837
1852
  Tr();
1838
1853
  const me = N(), { shouldRetryOnError: vt } = me;
1839
- me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (fn) => {
1854
+ me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (hn) => {
1840
1855
  const kt = g[y];
1841
- kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, fn);
1856
+ kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, hn);
1842
1857
  }, {
1843
1858
  retryCount: (_e.retryCount || 0) + 1,
1844
1859
  dedupe: !0
@@ -1863,7 +1878,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1863
1878
  ]
1864
1879
  ), _r = re(
1865
1880
  // Use callback to make sure `keyRef.current` returns latest result every time
1866
- (...I) => Aa(a, x.current, ...I),
1881
+ (...I) => $a(a, x.current, ...I),
1867
1882
  // eslint-disable-next-line react-hooks/exhaustive-deps
1868
1883
  []
1869
1884
  );
@@ -1873,7 +1888,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1873
1888
  if (!y) return;
1874
1889
  const I = Ae.bind(X, Lt);
1875
1890
  let L = 0;
1876
- const B = bi(y, g, (oe, _e = {}) => {
1891
+ const M = vi(y, g, (oe, _e = {}) => {
1877
1892
  if (oe == $e.FOCUS_EVENT) {
1878
1893
  const F = Date.now();
1879
1894
  N().revalidateOnFocus && F > L && D() && (L = F + N().focusThrottleInterval, I());
@@ -1888,16 +1903,16 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1888
1903
  });
1889
1904
  return _.current = !1, x.current = y, w.current = !0, j({
1890
1905
  _k: k
1891
- }), xr && (C(we) || De ? I() : Zo(I)), () => {
1892
- _.current = !0, B();
1906
+ }), xr && (C(we) || De ? I() : ei(I)), () => {
1907
+ _.current = !0, M();
1893
1908
  };
1894
1909
  }, [
1895
1910
  y
1896
1911
  ]), Nt(() => {
1897
1912
  let I;
1898
1913
  function L() {
1899
- const B = se(d) ? d(O().data) : d;
1900
- B && I !== -1 && (I = setTimeout(q, B));
1914
+ const M = se(d) ? d(O().data) : d;
1915
+ M && I !== -1 && (I = setTimeout(q, M));
1901
1916
  }
1902
1917
  function q() {
1903
1918
  !O().error && (h || N().isVisible()) && (u || N().isOnline()) ? Ae(Lt).then(L) : L();
@@ -1910,7 +1925,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1910
1925
  h,
1911
1926
  u,
1912
1927
  y
1913
- ]), Mn(Je), o && C(we) && y) {
1928
+ ]), Vn(Je), o && C(we) && y) {
1914
1929
  if (!Fr && De)
1915
1930
  throw new Error("Fallback data is required when using Suspense in SSR.");
1916
1931
  T.current = t, S.current = r, _.current = !1;
@@ -1934,13 +1949,13 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1934
1949
  return R.error = !0, Ye;
1935
1950
  },
1936
1951
  get isValidating() {
1937
- return R.isValidating = !0, mn;
1952
+ return R.isValidating = !0, gn;
1938
1953
  },
1939
1954
  get isLoading() {
1940
- return R.isLoading = !0, gn;
1955
+ return R.isLoading = !0, fn;
1941
1956
  }
1942
1957
  };
1943
- }, vi = pi(yi), fe = {
1958
+ }, xi = yi(ki), fe = {
1944
1959
  GET_LOCATION: `query GetLocation($latitude: Float!, $longitude: Float!) {
1945
1960
  location(latitude: $latitude, longitude: $longitude) {
1946
1961
  country
@@ -2065,11 +2080,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2065
2080
  schema: fe.SET_USER_PREFERENCES,
2066
2081
  method: "setUserPreferences"
2067
2082
  }
2068
- }, Ma = process.env.PUBLIC_SASSY_API_SERVER_URL, ki = async ({
2083
+ }, Va = process.env.PUBLIC_SASSY_API_SERVER_URL, wi = async ({
2069
2084
  query: e,
2070
2085
  data: t,
2071
2086
  headers: r = {}
2072
- }) => await fetch(`${Ma}/graphql`, {
2087
+ }) => await fetch(`${Va}/graphql`, {
2073
2088
  method: "POST",
2074
2089
  credentials: "include",
2075
2090
  headers: {
@@ -2081,14 +2096,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2081
2096
  query: e,
2082
2097
  variables: t
2083
2098
  })
2084
- }), Va = async ({
2099
+ }), Pa = async ({
2085
2100
  accessToken: e,
2086
2101
  type: t,
2087
2102
  params: r = {}
2088
2103
  }) => {
2089
2104
  const a = t != null && t.data ? t.data(r) : r;
2090
2105
  try {
2091
- const n = `Bearer ${e}`, o = await ki({
2106
+ const n = `Bearer ${e}`, o = await wi({
2092
2107
  headers: {
2093
2108
  authorization: n
2094
2109
  },
@@ -2106,14 +2121,14 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2106
2121
  } catch (n) {
2107
2122
  return console.error(n), { status: 500, data: [] };
2108
2123
  }
2109
- }, xi = async ({
2124
+ }, _i = async ({
2110
2125
  accessToken: e,
2111
2126
  name: t,
2112
2127
  data: r,
2113
2128
  method: a = "POST"
2114
2129
  }) => {
2115
2130
  const n = `Bearer ${e}`;
2116
- return await fetch(`${Ma}/api/${t}`, {
2131
+ return await fetch(`${Va}/api/${t}`, {
2117
2132
  method: a,
2118
2133
  credentials: "include",
2119
2134
  headers: {
@@ -2129,7 +2144,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2129
2144
  swrOptions: a,
2130
2145
  getAccessToken: n
2131
2146
  }) => {
2132
- const { data: o, error: i, isLoading: s, mutate: c } = vi(
2147
+ const { data: o, error: i, isLoading: s, mutate: c } = xi(
2133
2148
  [t, ...r],
2134
2149
  (d) => e(d, n),
2135
2150
  { ...a }
@@ -2140,7 +2155,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2140
2155
  type: t,
2141
2156
  params: r
2142
2157
  }) => {
2143
- const a = await e(), n = await Va({
2158
+ const a = await e(), n = await Pa({
2144
2159
  accessToken: a,
2145
2160
  type: t,
2146
2161
  params: r
@@ -2148,7 +2163,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2148
2163
  if (n.status === 200 && n.errors === void 0)
2149
2164
  return n.data;
2150
2165
  throw new Error("An error occurred while fetching the data.");
2151
- }, wi = async ([e, t], r) => dt({
2166
+ }, Ei = async ([e, t], r) => dt({
2152
2167
  getAccessToken: r,
2153
2168
  type: We.GET_USER_PREFERENCES,
2154
2169
  params: {
@@ -2159,7 +2174,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2159
2174
  getAccessToken: t,
2160
2175
  isPaused: r = !1
2161
2176
  }) => ct({
2162
- fetcher: wi,
2177
+ fetcher: Ei,
2163
2178
  scope: "/preferences",
2164
2179
  keys: e,
2165
2180
  swrOptions: {
@@ -2169,21 +2184,21 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2169
2184
  revalidateOnReconnect: r
2170
2185
  },
2171
2186
  getAccessToken: t
2172
- }), _i = async ([e, t], r) => dt({
2187
+ }), Ti = async ([e, t], r) => dt({
2173
2188
  getAccessToken: r,
2174
2189
  type: We.GET_CHATS_STATS,
2175
2190
  params: {
2176
2191
  user: t
2177
2192
  }
2178
- }), Zl = ({
2193
+ }), tc = ({
2179
2194
  keys: e,
2180
2195
  getAccessToken: t
2181
2196
  }) => ct({
2182
- fetcher: _i,
2197
+ fetcher: Ti,
2183
2198
  scope: "/stats",
2184
2199
  keys: e,
2185
2200
  getAccessToken: t
2186
- }), Pa = async ([e, t, r, a], n) => dt({
2201
+ }), Da = async ([e, t, r, a], n) => dt({
2187
2202
  getAccessToken: n,
2188
2203
  type: We.GET_CHATS,
2189
2204
  params: {
@@ -2193,11 +2208,11 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2193
2208
  limit: 1,
2194
2209
  truncateSize: 100
2195
2210
  }
2196
- }), Ql = ({
2211
+ }), rc = ({
2197
2212
  keys: e,
2198
2213
  getAccessToken: t
2199
2214
  }) => ct({
2200
- fetcher: Pa,
2215
+ fetcher: Da,
2201
2216
  scope: "/history",
2202
2217
  keys: e,
2203
2218
  getAccessToken: t,
@@ -2205,26 +2220,26 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2205
2220
  keepPreviousData: !0,
2206
2221
  dedupingInterval: 1e4
2207
2222
  }
2208
- }), Ei = ({
2223
+ }), Si = ({
2209
2224
  keys: e,
2210
2225
  getAccessToken: t
2211
2226
  }) => {
2212
- Ba(["/history", ...e], (r) => Pa(r, t));
2213
- }, Da = async ([e], t) => dt({
2227
+ Ma(["/history", ...e], (r) => Da(r, t));
2228
+ }, za = async ([e], t) => dt({
2214
2229
  getAccessToken: t,
2215
2230
  type: We.GET_SERVER_CAPABILITIES
2216
- }), ec = ({
2231
+ }), ac = ({
2217
2232
  getAccessToken: e
2218
2233
  }) => ct({
2219
- fetcher: Da,
2234
+ fetcher: za,
2220
2235
  scope: "/capabilities",
2221
2236
  keys: [],
2222
2237
  getAccessToken: e
2223
- }), Ti = ({
2238
+ }), Ni = ({
2224
2239
  getAccessToken: e
2225
2240
  }) => {
2226
- Ba(["/capabilities"], (t) => Da(t, e));
2227
- }, Si = "z-20", Ni = "z-10", de = V.createContext({
2241
+ Ma(["/capabilities"], (t) => za(t, e));
2242
+ }, Ci = "z-20", Ri = "z-10", de = V.createContext({
2228
2243
  state: {
2229
2244
  id: "",
2230
2245
  model: Te,
@@ -2242,7 +2257,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2242
2257
  plugins: [],
2243
2258
  engines: []
2244
2259
  }
2245
- }), Ci = V.createContext({
2260
+ }), Ii = V.createContext({
2246
2261
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2247
2262
  dispatch: () => {
2248
2263
  }
@@ -2264,15 +2279,15 @@ try {
2264
2279
  });
2265
2280
  } catch {
2266
2281
  }
2267
- const Ri = "av-tooltip", Ii = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2282
+ const Li = "av-tooltip", Oi = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2268
2283
  x: e,
2269
2284
  y: e
2270
- }), Li = {
2285
+ }), Ai = {
2271
2286
  left: "right",
2272
2287
  right: "left",
2273
2288
  bottom: "top",
2274
2289
  top: "bottom"
2275
- }, Oi = {
2290
+ }, $i = {
2276
2291
  start: "end",
2277
2292
  end: "start"
2278
2293
  };
@@ -2288,7 +2303,7 @@ function ve(e) {
2288
2303
  function je(e) {
2289
2304
  return e.split("-")[1];
2290
2305
  }
2291
- function za(e) {
2306
+ function Ua(e) {
2292
2307
  return e === "x" ? "y" : "x";
2293
2308
  }
2294
2309
  function cr(e) {
@@ -2298,22 +2313,22 @@ function Ce(e) {
2298
2313
  return ["top", "bottom"].includes(ve(e)) ? "y" : "x";
2299
2314
  }
2300
2315
  function dr(e) {
2301
- return za(Ce(e));
2316
+ return Ua(Ce(e));
2302
2317
  }
2303
- function Ai(e, t, r) {
2318
+ function Bi(e, t, r) {
2304
2319
  r === void 0 && (r = !1);
2305
2320
  const a = je(e), n = dr(e), o = cr(n);
2306
2321
  let i = n === "x" ? a === (r ? "end" : "start") ? "right" : "left" : a === "start" ? "bottom" : "top";
2307
2322
  return t.reference[o] > t.floating[o] && (i = at(i)), [i, at(i)];
2308
2323
  }
2309
- function $i(e) {
2324
+ function Mi(e) {
2310
2325
  const t = at(e);
2311
2326
  return [qt(e), t, qt(t)];
2312
2327
  }
2313
2328
  function qt(e) {
2314
- return e.replace(/start|end/g, (t) => Oi[t]);
2329
+ return e.replace(/start|end/g, (t) => $i[t]);
2315
2330
  }
2316
- function Bi(e, t, r) {
2331
+ function Vi(e, t, r) {
2317
2332
  const a = ["left", "right"], n = ["right", "left"], o = ["top", "bottom"], i = ["bottom", "top"];
2318
2333
  switch (e) {
2319
2334
  case "top":
@@ -2326,15 +2341,15 @@ function Bi(e, t, r) {
2326
2341
  return [];
2327
2342
  }
2328
2343
  }
2329
- function Mi(e, t, r, a) {
2344
+ function Pi(e, t, r, a) {
2330
2345
  const n = je(e);
2331
- let o = Bi(ve(e), r === "start", a);
2346
+ let o = Vi(ve(e), r === "start", a);
2332
2347
  return n && (o = o.map((i) => i + "-" + n), t && (o = o.concat(o.map(qt)))), o;
2333
2348
  }
2334
2349
  function at(e) {
2335
- return e.replace(/left|right|bottom|top/g, (t) => Li[t]);
2350
+ return e.replace(/left|right|bottom|top/g, (t) => Ai[t]);
2336
2351
  }
2337
- function Vi(e) {
2352
+ function Di(e) {
2338
2353
  return {
2339
2354
  top: 0,
2340
2355
  right: 0,
@@ -2343,8 +2358,8 @@ function Vi(e) {
2343
2358
  ...e
2344
2359
  };
2345
2360
  }
2346
- function Ua(e) {
2347
- return typeof e != "number" ? Vi(e) : {
2361
+ function Ha(e) {
2362
+ return typeof e != "number" ? Di(e) : {
2348
2363
  top: e,
2349
2364
  right: e,
2350
2365
  bottom: e,
@@ -2417,7 +2432,7 @@ function jr(e, t, r) {
2417
2432
  }
2418
2433
  return g;
2419
2434
  }
2420
- const Pi = async (e, t, r) => {
2435
+ const zi = async (e, t, r) => {
2421
2436
  const {
2422
2437
  placement: a = "bottom",
2423
2438
  strategy: n = "absolute",
@@ -2478,7 +2493,7 @@ const Pi = async (e, t, r) => {
2478
2493
  middlewareData: g
2479
2494
  };
2480
2495
  };
2481
- async function Ha(e, t) {
2496
+ async function Fa(e, t) {
2482
2497
  var r;
2483
2498
  t === void 0 && (t = {});
2484
2499
  const {
@@ -2494,7 +2509,7 @@ async function Ha(e, t) {
2494
2509
  elementContext: u = "floating",
2495
2510
  altBoundary: m = !1,
2496
2511
  padding: g = 0
2497
- } = Ge(t, e), p = Ua(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
2512
+ } = Ge(t, e), p = Ha(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
2498
2513
  element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2499
2514
  boundary: d,
2500
2515
  rootBoundary: h,
@@ -2523,7 +2538,7 @@ async function Ha(e, t) {
2523
2538
  right: (_.right - v.right + p.right) / w.x
2524
2539
  };
2525
2540
  }
2526
- const Di = (e) => ({
2541
+ const Ui = (e) => ({
2527
2542
  name: "arrow",
2528
2543
  options: e,
2529
2544
  async fn(t) {
@@ -2541,13 +2556,13 @@ const Di = (e) => ({
2541
2556
  } = Ge(e, t) || {};
2542
2557
  if (d == null)
2543
2558
  return {};
2544
- const u = Ua(h), m = {
2559
+ const u = Ha(h), m = {
2545
2560
  x: r,
2546
2561
  y: a
2547
2562
  }, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2548
2563
  let S = T ? T[w] : 0;
2549
2564
  (!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = s.floating[w] || o.floating[p]);
2550
- const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, $ = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, $), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - $ : 0;
2565
+ const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, B = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, B), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - B : 0;
2551
2566
  return {
2552
2567
  [g]: m[g] + Y,
2553
2568
  data: {
@@ -2560,7 +2575,7 @@ const Di = (e) => ({
2560
2575
  reset: K
2561
2576
  };
2562
2577
  }
2563
- }), zi = function(e) {
2578
+ }), Hi = function(e) {
2564
2579
  return e === void 0 && (e = {}), {
2565
2580
  name: "flip",
2566
2581
  options: e,
@@ -2584,12 +2599,12 @@ const Di = (e) => ({
2584
2599
  } = Ge(e, t);
2585
2600
  if ((r = o.arrow) != null && r.alignmentOffset)
2586
2601
  return {};
2587
- const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : $i(s)), T = p !== "none";
2588
- !m && T && x.push(...Mi(s, b, p, _));
2589
- const S = [s, ...x], N = await Ha(t, v), D = [];
2602
+ const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : Mi(s)), T = p !== "none";
2603
+ !m && T && x.push(...Pi(s, b, p, _));
2604
+ const S = [s, ...x], N = await Fa(t, v), D = [];
2590
2605
  let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
2591
2606
  if (h && D.push(N[y]), u) {
2592
- const R = Ai(n, i, _);
2607
+ const R = Bi(n, i, _);
2593
2608
  D.push(N[R[0]], N[R[1]]);
2594
2609
  }
2595
2610
  if (O = [...O, {
@@ -2612,8 +2627,8 @@ const Di = (e) => ({
2612
2627
  if (!K)
2613
2628
  switch (g) {
2614
2629
  case "bestFit": {
2615
- var $;
2616
- const Y = ($ = O.filter((U) => {
2630
+ var B;
2631
+ const Y = (B = O.filter((U) => {
2617
2632
  if (T) {
2618
2633
  const H = Ce(U.placement);
2619
2634
  return H === k || // Create a bias to the `y` side axis due to horizontal
@@ -2621,7 +2636,7 @@ const Di = (e) => ({
2621
2636
  H === "y";
2622
2637
  }
2623
2638
  return !0;
2624
- }).map((U) => [U.placement, U.overflows.filter((H) => H > 0).reduce((H, yt) => H + yt, 0)]).sort((U, H) => U[1] - H[1])[0]) == null ? void 0 : $[0];
2639
+ }).map((U) => [U.placement, U.overflows.filter((H) => H > 0).reduce((H, yt) => H + yt, 0)]).sort((U, H) => U[1] - H[1])[0]) == null ? void 0 : B[0];
2625
2640
  Y && (K = Y);
2626
2641
  break;
2627
2642
  }
@@ -2640,7 +2655,7 @@ const Di = (e) => ({
2640
2655
  }
2641
2656
  };
2642
2657
  };
2643
- async function Ui(e, t) {
2658
+ async function Fi(e, t) {
2644
2659
  const {
2645
2660
  placement: r,
2646
2661
  platform: a,
@@ -2667,7 +2682,7 @@ async function Ui(e, t) {
2667
2682
  y: g * h
2668
2683
  };
2669
2684
  }
2670
- const Hi = function(e) {
2685
+ const Wi = function(e) {
2671
2686
  return e === void 0 && (e = 0), {
2672
2687
  name: "offset",
2673
2688
  options: e,
@@ -2678,7 +2693,7 @@ const Hi = function(e) {
2678
2693
  y: o,
2679
2694
  placement: i,
2680
2695
  middlewareData: s
2681
- } = t, c = await Ui(t, e);
2696
+ } = t, c = await Fi(t, e);
2682
2697
  return i === ((r = s.offset) == null ? void 0 : r.placement) && (a = s.arrow) != null && a.alignmentOffset ? {} : {
2683
2698
  x: n + c.x,
2684
2699
  y: o + c.y,
@@ -2689,7 +2704,7 @@ const Hi = function(e) {
2689
2704
  };
2690
2705
  }
2691
2706
  };
2692
- }, Fi = function(e) {
2707
+ }, Gi = function(e) {
2693
2708
  return e === void 0 && (e = {}), {
2694
2709
  name: "shift",
2695
2710
  options: e,
@@ -2717,7 +2732,7 @@ const Hi = function(e) {
2717
2732
  } = Ge(e, t), d = {
2718
2733
  x: r,
2719
2734
  y: a
2720
- }, h = await Ha(t, c), u = Ce(ve(n)), m = za(u);
2735
+ }, h = await Fa(t, c), u = Ce(ve(n)), m = Ua(u);
2721
2736
  let g = d[m], p = d[u];
2722
2737
  if (o) {
2723
2738
  const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
@@ -2750,7 +2765,7 @@ function mt() {
2750
2765
  return typeof window < "u";
2751
2766
  }
2752
2767
  function Oe(e) {
2753
- return Fa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2768
+ return Wa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2754
2769
  }
2755
2770
  function ee(e) {
2756
2771
  var t;
@@ -2758,9 +2773,9 @@ function ee(e) {
2758
2773
  }
2759
2774
  function ge(e) {
2760
2775
  var t;
2761
- return (t = (Fa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2776
+ return (t = (Wa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
2762
2777
  }
2763
- function Fa(e) {
2778
+ function Wa(e) {
2764
2779
  return mt() ? e instanceof Node || e instanceof ee(e).Node : !1;
2765
2780
  }
2766
2781
  function ae(e) {
@@ -2781,7 +2796,7 @@ function qe(e) {
2781
2796
  } = ne(e);
2782
2797
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
2783
2798
  }
2784
- function Wi(e) {
2799
+ function ji(e) {
2785
2800
  return ["table", "td", "th"].includes(Oe(e));
2786
2801
  }
2787
2802
  function gt(e) {
@@ -2797,7 +2812,7 @@ function ur(e) {
2797
2812
  const t = mr(), r = ae(e) ? ne(e) : e;
2798
2813
  return ["transform", "translate", "scale", "rotate", "perspective"].some((a) => r[a] ? r[a] !== "none" : !1) || (r.containerType ? r.containerType !== "normal" : !1) || !t && (r.backdropFilter ? r.backdropFilter !== "none" : !1) || !t && (r.filter ? r.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((a) => (r.willChange || "").includes(a)) || ["paint", "layout", "strict", "content"].some((a) => (r.contain || "").includes(a));
2799
2814
  }
2800
- function Gi(e) {
2815
+ function qi(e) {
2801
2816
  let t = be(e);
2802
2817
  for (; ce(t) && !Re(t); ) {
2803
2818
  if (ur(t))
@@ -2838,20 +2853,20 @@ function be(e) {
2838
2853
  );
2839
2854
  return qr(t) ? t.host : t;
2840
2855
  }
2841
- function Wa(e) {
2856
+ function Ga(e) {
2842
2857
  const t = be(e);
2843
- return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t : Wa(t);
2858
+ return Re(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ce(t) && qe(t) ? t : Ga(t);
2844
2859
  }
2845
- function Ga(e, t, r) {
2860
+ function ja(e, t, r) {
2846
2861
  var a;
2847
2862
  t === void 0 && (t = []);
2848
- const n = Wa(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = ee(n);
2849
- return o ? t.concat(i, i.visualViewport || [], qe(n) ? n : [], []) : t.concat(n, Ga(n, []));
2863
+ const n = Ga(e), o = n === ((a = e.ownerDocument) == null ? void 0 : a.body), i = ee(n);
2864
+ return o ? t.concat(i, i.visualViewport || [], qe(n) ? n : [], []) : t.concat(n, ja(n, []));
2850
2865
  }
2851
2866
  function Kr(e) {
2852
2867
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
2853
2868
  }
2854
- function ja(e) {
2869
+ function qa(e) {
2855
2870
  const t = ne(e);
2856
2871
  let r = parseFloat(t.width) || 0, a = parseFloat(t.height) || 0;
2857
2872
  const n = ce(e), o = n ? e.offsetWidth : r, i = n ? e.offsetHeight : a, s = rt(r) !== o || rt(a) !== i;
@@ -2861,41 +2876,41 @@ function ja(e) {
2861
2876
  $: s
2862
2877
  };
2863
2878
  }
2864
- function qa(e) {
2879
+ function Ka(e) {
2865
2880
  return ae(e) ? e : e.contextElement;
2866
2881
  }
2867
2882
  function Ne(e) {
2868
- const t = qa(e);
2883
+ const t = Ka(e);
2869
2884
  if (!ce(t))
2870
2885
  return le(1);
2871
2886
  const r = t.getBoundingClientRect(), {
2872
2887
  width: a,
2873
2888
  height: n,
2874
2889
  $: o
2875
- } = ja(t);
2890
+ } = qa(t);
2876
2891
  let i = (o ? rt(r.width) : r.width) / a, s = (o ? rt(r.height) : r.height) / n;
2877
2892
  return (!i || !Number.isFinite(i)) && (i = 1), (!s || !Number.isFinite(s)) && (s = 1), {
2878
2893
  x: i,
2879
2894
  y: s
2880
2895
  };
2881
2896
  }
2882
- const ji = /* @__PURE__ */ le(0);
2883
- function Ka(e) {
2897
+ const Ki = /* @__PURE__ */ le(0);
2898
+ function Ya(e) {
2884
2899
  const t = ee(e);
2885
- return !mr() || !t.visualViewport ? ji : {
2900
+ return !mr() || !t.visualViewport ? Ki : {
2886
2901
  x: t.visualViewport.offsetLeft,
2887
2902
  y: t.visualViewport.offsetTop
2888
2903
  };
2889
2904
  }
2890
- function qi(e, t, r) {
2905
+ function Yi(e, t, r) {
2891
2906
  return t === void 0 && (t = !1), !r || t && r !== ee(e) ? !1 : t;
2892
2907
  }
2893
2908
  function Ue(e, t, r, a) {
2894
2909
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2895
- const n = e.getBoundingClientRect(), o = qa(e);
2910
+ const n = e.getBoundingClientRect(), o = Ka(e);
2896
2911
  let i = le(1);
2897
2912
  t && (a ? ae(a) && (i = Ne(a)) : i = Ne(e));
2898
- const s = qi(o, r, a) ? Ka(o) : le(0);
2913
+ const s = Yi(o, r, a) ? Ya(o) : le(0);
2899
2914
  let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, u = n.height / i.y;
2900
2915
  if (o) {
2901
2916
  const m = ee(o), g = a && ae(a) ? ee(a) : a;
@@ -2916,7 +2931,7 @@ function gr(e, t) {
2916
2931
  const r = ft(e).scrollLeft;
2917
2932
  return t ? t.left + r : Ue(ge(e)).left + r;
2918
2933
  }
2919
- function Ya(e, t, r) {
2934
+ function Ja(e, t, r) {
2920
2935
  r === void 0 && (r = !1);
2921
2936
  const a = e.getBoundingClientRect(), n = a.left + t.scrollLeft - (r ? 0 : (
2922
2937
  // RTL <body> scrollbar.
@@ -2927,7 +2942,7 @@ function Ya(e, t, r) {
2927
2942
  y: o
2928
2943
  };
2929
2944
  }
2930
- function Ki(e) {
2945
+ function Ji(e) {
2931
2946
  let {
2932
2947
  elements: t,
2933
2948
  rect: r,
@@ -2946,7 +2961,7 @@ function Ki(e) {
2946
2961
  const g = Ue(a);
2947
2962
  d = Ne(a), h.x = g.x + a.clientLeft, h.y = g.y + a.clientTop;
2948
2963
  }
2949
- const m = i && !u && !o ? Ya(i, c, !0) : le(0);
2964
+ const m = i && !u && !o ? Ja(i, c, !0) : le(0);
2950
2965
  return {
2951
2966
  width: r.width * d.x,
2952
2967
  height: r.height * d.y,
@@ -2954,10 +2969,10 @@ function Ki(e) {
2954
2969
  y: r.y * d.y - c.scrollTop * d.y + h.y + m.y
2955
2970
  };
2956
2971
  }
2957
- function Yi(e) {
2972
+ function Xi(e) {
2958
2973
  return Array.from(e.getClientRects());
2959
2974
  }
2960
- function Ji(e) {
2975
+ function Zi(e) {
2961
2976
  const t = ge(e), r = ft(e), a = e.ownerDocument.body, n = Se(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = Se(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
2962
2977
  let i = -r.scrollLeft + gr(e);
2963
2978
  const s = -r.scrollTop;
@@ -2968,7 +2983,7 @@ function Ji(e) {
2968
2983
  y: s
2969
2984
  };
2970
2985
  }
2971
- function Xi(e, t) {
2986
+ function Qi(e, t) {
2972
2987
  const r = ee(e), a = ge(e), n = r.visualViewport;
2973
2988
  let o = a.clientWidth, i = a.clientHeight, s = 0, c = 0;
2974
2989
  if (n) {
@@ -2983,7 +2998,7 @@ function Xi(e, t) {
2983
2998
  y: c
2984
2999
  };
2985
3000
  }
2986
- function Zi(e, t) {
3001
+ function es(e, t) {
2987
3002
  const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
2988
3003
  return {
2989
3004
  width: i,
@@ -2995,13 +3010,13 @@ function Zi(e, t) {
2995
3010
  function Yr(e, t, r) {
2996
3011
  let a;
2997
3012
  if (t === "viewport")
2998
- a = Xi(e, r);
3013
+ a = Qi(e, r);
2999
3014
  else if (t === "document")
3000
- a = Ji(ge(e));
3015
+ a = Zi(ge(e));
3001
3016
  else if (ae(t))
3002
- a = Zi(t, r);
3017
+ a = es(t, r);
3003
3018
  else {
3004
- const n = Ka(e);
3019
+ const n = Ya(e);
3005
3020
  a = {
3006
3021
  x: t.x - n.x,
3007
3022
  y: t.y - n.y,
@@ -3011,31 +3026,31 @@ function Yr(e, t, r) {
3011
3026
  }
3012
3027
  return nt(a);
3013
3028
  }
3014
- function Ja(e, t) {
3029
+ function Xa(e, t) {
3015
3030
  const r = be(e);
3016
- return r === t || !ae(r) || Re(r) ? !1 : ne(r).position === "fixed" || Ja(r, t);
3031
+ return r === t || !ae(r) || Re(r) ? !1 : ne(r).position === "fixed" || Xa(r, t);
3017
3032
  }
3018
- function Qi(e, t) {
3033
+ function ts(e, t) {
3019
3034
  const r = t.get(e);
3020
3035
  if (r)
3021
3036
  return r;
3022
- let a = Ga(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
3037
+ let a = ja(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
3023
3038
  const o = ne(e).position === "fixed";
3024
3039
  let i = o ? be(e) : e;
3025
3040
  for (; ae(i) && !Re(i); ) {
3026
3041
  const s = ne(i), c = ur(i);
3027
- !c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || qe(i) && !c && Ja(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = be(i);
3042
+ !c && s.position === "fixed" && (n = null), (o ? !c && !n : !c && s.position === "static" && n && ["absolute", "fixed"].includes(n.position) || qe(i) && !c && Xa(e, i)) ? a = a.filter((d) => d !== i) : n = s, i = be(i);
3028
3043
  }
3029
3044
  return t.set(e, a), a;
3030
3045
  }
3031
- function es(e) {
3046
+ function rs(e) {
3032
3047
  let {
3033
3048
  element: t,
3034
3049
  boundary: r,
3035
3050
  rootBoundary: a,
3036
3051
  strategy: n
3037
3052
  } = e;
3038
- const o = [...r === "clippingAncestors" ? gt(t) ? [] : Qi(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3053
+ const o = [...r === "clippingAncestors" ? gt(t) ? [] : ts(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3039
3054
  const h = Yr(t, d, n);
3040
3055
  return c.top = Se(h.top, c.top), c.right = ze(h.right, c.right), c.bottom = ze(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
3041
3056
  }, Yr(t, i, n));
@@ -3046,17 +3061,17 @@ function es(e) {
3046
3061
  y: s.top
3047
3062
  };
3048
3063
  }
3049
- function ts(e) {
3064
+ function as(e) {
3050
3065
  const {
3051
3066
  width: t,
3052
3067
  height: r
3053
- } = ja(e);
3068
+ } = qa(e);
3054
3069
  return {
3055
3070
  width: t,
3056
3071
  height: r
3057
3072
  };
3058
3073
  }
3059
- function rs(e, t, r) {
3074
+ function ns(e, t, r) {
3060
3075
  const a = ce(t), n = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
3061
3076
  let s = {
3062
3077
  scrollLeft: 0,
@@ -3068,7 +3083,7 @@ function rs(e, t, r) {
3068
3083
  const m = Ue(t, !0, o, t);
3069
3084
  c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3070
3085
  } else n && (c.x = gr(n));
3071
- const d = n && !a && !o ? Ya(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3086
+ const d = n && !a && !o ? Ja(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3072
3087
  return {
3073
3088
  x: h,
3074
3089
  y: u,
@@ -3087,7 +3102,7 @@ function Jr(e, t) {
3087
3102
  let r = e.offsetParent;
3088
3103
  return ge(e) === r && (r = r.ownerDocument.body), r;
3089
3104
  }
3090
- function Xa(e, t) {
3105
+ function Za(e, t) {
3091
3106
  const r = ee(e);
3092
3107
  if (gt(e))
3093
3108
  return r;
@@ -3101,14 +3116,14 @@ function Xa(e, t) {
3101
3116
  return r;
3102
3117
  }
3103
3118
  let a = Jr(e, t);
3104
- for (; a && Wi(a) && Ot(a); )
3119
+ for (; a && ji(a) && Ot(a); )
3105
3120
  a = Jr(a, t);
3106
- return a && Re(a) && Ot(a) && !ur(a) ? r : a || Gi(e) || r;
3121
+ return a && Re(a) && Ot(a) && !ur(a) ? r : a || qi(e) || r;
3107
3122
  }
3108
- const as = async function(e) {
3109
- const t = this.getOffsetParent || Xa, r = this.getDimensions, a = await r(e.floating);
3123
+ const os = async function(e) {
3124
+ const t = this.getOffsetParent || Za, r = this.getDimensions, a = await r(e.floating);
3110
3125
  return {
3111
- reference: rs(e.reference, await t(e.floating), e.strategy),
3126
+ reference: ns(e.reference, await t(e.floating), e.strategy),
3112
3127
  floating: {
3113
3128
  x: 0,
3114
3129
  y: 0,
@@ -3117,36 +3132,36 @@ const as = async function(e) {
3117
3132
  }
3118
3133
  };
3119
3134
  };
3120
- function ns(e) {
3135
+ function is(e) {
3121
3136
  return ne(e).direction === "rtl";
3122
3137
  }
3123
- const os = {
3124
- convertOffsetParentRelativeRectToViewportRelativeRect: Ki,
3138
+ const ss = {
3139
+ convertOffsetParentRelativeRectToViewportRelativeRect: Ji,
3125
3140
  getDocumentElement: ge,
3126
- getClippingRect: es,
3127
- getOffsetParent: Xa,
3128
- getElementRects: as,
3129
- getClientRects: Yi,
3130
- getDimensions: ts,
3141
+ getClippingRect: rs,
3142
+ getOffsetParent: Za,
3143
+ getElementRects: os,
3144
+ getClientRects: Xi,
3145
+ getDimensions: as,
3131
3146
  getScale: Ne,
3132
3147
  isElement: ae,
3133
- isRTL: ns
3134
- }, is = Hi, ss = Fi, ls = zi, cs = Di, ds = (e, t, r) => {
3148
+ isRTL: is
3149
+ }, ls = Wi, cs = Gi, ds = Hi, us = Ui, ms = (e, t, r) => {
3135
3150
  const a = /* @__PURE__ */ new Map(), n = {
3136
- platform: os,
3151
+ platform: ss,
3137
3152
  ...r
3138
3153
  }, o = {
3139
3154
  ...n.platform,
3140
3155
  _c: a
3141
3156
  };
3142
- return Pi(e, t, {
3157
+ return zi(e, t, {
3143
3158
  ...n,
3144
3159
  platform: o
3145
3160
  });
3146
3161
  }, Xr = ["mousedown", "touchstart"];
3147
- function us(e, t, r) {
3162
+ function gs(e, t, r) {
3148
3163
  const a = A(null);
3149
- return M(() => {
3164
+ return $(() => {
3150
3165
  const n = (o) => {
3151
3166
  const i = o ? o.target : void 0;
3152
3167
  if (Array.isArray(r)) {
@@ -3165,50 +3180,50 @@ function us(e, t, r) {
3165
3180
  };
3166
3181
  }, [e, r, t]), a;
3167
3182
  }
3168
- function ms(e, t) {
3183
+ function fs(e, t) {
3169
3184
  const [r, a] = Z(!1), n = A(null), o = A(null), i = re(() => {
3170
3185
  a((c) => (!c && (!n.current || n.current === -1) && (n.current = window.setInterval(o.current, t)), !0));
3171
3186
  }, [t]), s = re(() => {
3172
3187
  a(!1), window.clearInterval(n.current || -1), n.current = -1;
3173
3188
  }, []);
3174
- return M(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3189
+ return $(() => (o.current = e, r && i(), s), [e, r, i, s]), { start: i, stop: s, active: r };
3175
3190
  }
3176
- const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = () => f("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Zr = ({
3191
+ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, hs = () => f("absolute top-0 left-0 w-max py-1 px-2 rounded text-sm z-50"), Zr = ({
3177
3192
  mode: e
3178
3193
  }) => f({
3179
3194
  "bg-surface-darker": e === "dark" || e === "system",
3180
3195
  "bg-surface-light": e === "light" || e === "alt-system",
3181
3196
  "dark:bg-surface-light": e === "system",
3182
3197
  "dark:bg-surface-darker": e === "alt-system"
3183
- }), fs = ({
3198
+ }), ps = ({
3184
3199
  mode: e
3185
3200
  }) => f({
3186
3201
  "text-copy-light": e === "dark" || e === "system",
3187
3202
  "text-copy-dark": e === "light" || e === "alt-system",
3188
3203
  "dark:text-copy-dark": e === "system",
3189
3204
  "dark:text-copy-light": e === "alt-system"
3190
- }), hs = () => f("absolute", "size-2", "transform rotate-45"), ps = ({
3205
+ }), bs = () => f("absolute", "size-2", "transform rotate-45"), ys = ({
3191
3206
  mode: e,
3192
3207
  className: t,
3193
3208
  tooltipClassName: r,
3194
3209
  arrowClassName: a
3195
3210
  }) => {
3196
3211
  const n = f("relative inline-block", t), o = f(
3197
- Ri,
3198
- gs(),
3212
+ Li,
3213
+ hs(),
3199
3214
  Zr({ mode: e }),
3200
- fs({ mode: e }),
3215
+ ps({ mode: e }),
3201
3216
  r
3202
3217
  ), i = f(
3203
- Ii,
3204
- hs(),
3218
+ Oi,
3219
+ bs(),
3205
3220
  Zr({ mode: e }),
3206
3221
  a
3207
3222
  );
3208
3223
  return { tooltip: o, arrow: i, wrapper: n };
3209
- }, bs = ({ delay: e = 300 }) => ({
3224
+ }, vs = ({ delay: e = 300 }) => ({
3210
3225
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
3211
- }), ys = 5e3, Ke = ({
3226
+ }), ks = 5e3, Ke = ({
3212
3227
  trigger: e,
3213
3228
  label: t,
3214
3229
  placement: r = "top",
@@ -3218,33 +3233,33 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3218
3233
  tooltipClassName: i,
3219
3234
  arrowClassName: s
3220
3235
  }) => {
3221
- const c = us(() => {
3236
+ const c = gs(() => {
3222
3237
  b.stop(), p(!1);
3223
- }), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = ms(() => {
3238
+ }), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = fs(() => {
3224
3239
  p(!1);
3225
- }, ys), v = ps({
3240
+ }, ks), v = ys({
3226
3241
  mode: a,
3227
3242
  className: o,
3228
3243
  tooltipClassName: i,
3229
3244
  arrowClassName: s
3230
- }), y = bs({ delay: n }), k = re(async () => {
3245
+ }), y = vs({ delay: n }), k = re(async () => {
3231
3246
  var T, S, N, D;
3232
3247
  if (c.current && d.current && h.current) {
3233
3248
  const {
3234
3249
  x: O,
3235
3250
  y: j,
3236
3251
  middlewareData: P,
3237
- placement: $
3238
- } = await ds(c.current, d.current, {
3252
+ placement: B
3253
+ } = await ms(c.current, d.current, {
3239
3254
  placement: r,
3240
3255
  middleware: [
3241
- is(10),
3242
- ls({
3256
+ ls(10),
3257
+ ds({
3243
3258
  crossAxis: r.includes("-"),
3244
3259
  fallbackAxisSideDirection: "start"
3245
3260
  }),
3246
- ss({ padding: 5 }),
3247
- cs({ element: h.current })
3261
+ cs({ padding: 5 }),
3262
+ us({ element: h.current })
3248
3263
  ]
3249
3264
  });
3250
3265
  (T = d == null ? void 0 : d.current) != null && T.style && Object.assign(d.current.style, {
@@ -3257,7 +3272,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3257
3272
  right: "left",
3258
3273
  bottom: "top",
3259
3274
  left: "right"
3260
- }[$.split("-")[0]];
3275
+ }[B.split("-")[0]];
3261
3276
  (S = h == null ? void 0 : h.current) != null && S.style && Object.assign(h.current.style, {
3262
3277
  left: et((N = P.arrow) == null ? void 0 : N.x),
3263
3278
  top: et((D = P.arrow) == null ? void 0 : D.y),
@@ -3267,7 +3282,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3267
3282
  });
3268
3283
  }
3269
3284
  }, [r, y, c]);
3270
- M(() => {
3285
+ $(() => {
3271
3286
  (async () => u && await k())();
3272
3287
  }, [k, u]);
3273
3288
  const w = () => {
@@ -3302,7 +3317,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3302
3317
  ]
3303
3318
  }
3304
3319
  );
3305
- }, vs = ({
3320
+ }, xs = ({
3306
3321
  className: e
3307
3322
  }) => {
3308
3323
  const { state: t, dispatch: r } = z(de), a = A(null), n = A(!1), o = (i) => {
@@ -3310,7 +3325,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3310
3325
  type: Ie
3311
3326
  });
3312
3327
  };
3313
- return M(() => {
3328
+ return $(() => {
3314
3329
  var i;
3315
3330
  (t == null ? void 0 : t.streaming) === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (n.current = !1, (i = a.current) == null || i.blur());
3316
3331
  }, [t]), /* @__PURE__ */ l(
@@ -3329,7 +3344,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3329
3344
  label: "New Chat",
3330
3345
  ref: a,
3331
3346
  onClick: o,
3332
- children: t != null && t.streaming ? /* @__PURE__ */ l(Yn, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Jn, { size: "size-4" })
3347
+ children: t != null && t.streaming ? /* @__PURE__ */ l(Jn, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Xn, { size: "size-4" })
3333
3348
  }
3334
3349
  )
3335
3350
  }
@@ -3348,7 +3363,7 @@ try {
3348
3363
  });
3349
3364
  } catch {
3350
3365
  }
3351
- const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za = "button", Kt = "link", ks = ({
3366
+ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Qa = "button", Kt = "link", ws = ({
3352
3367
  type: e,
3353
3368
  size: t,
3354
3369
  labelRight: r,
@@ -3357,7 +3372,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3357
3372
  }) => {
3358
3373
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
3359
3374
  switch (e) {
3360
- case Za:
3375
+ case Qa:
3361
3376
  case Kt:
3362
3377
  return f({
3363
3378
  [o]: t === "small",
@@ -3377,7 +3392,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3377
3392
  "h-12 px-4": t === "large" && (r || a)
3378
3393
  });
3379
3394
  }
3380
- }, xs = ({
3395
+ }, _s = ({
3381
3396
  type: e,
3382
3397
  size: t,
3383
3398
  labelRight: r,
@@ -3385,7 +3400,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3385
3400
  }) => {
3386
3401
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
3387
3402
  switch (e) {
3388
- case Za:
3403
+ case Qa:
3389
3404
  case Kt:
3390
3405
  return f({
3391
3406
  "text-center": e === Kt,
@@ -3400,7 +3415,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3400
3415
  [i]: t === "large" && (r || a)
3401
3416
  });
3402
3417
  }
3403
- }, ws = ({
3418
+ }, Es = ({
3404
3419
  mode: e,
3405
3420
  noBackground: t,
3406
3421
  noTruncate: r,
@@ -3436,7 +3451,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3436
3451
  return f("not-prose text-copy-lighter", {
3437
3452
  truncate: !r
3438
3453
  });
3439
- }, _s = ({
3454
+ }, Ts = ({
3440
3455
  mode: e,
3441
3456
  noBackground: t,
3442
3457
  variant: r
@@ -3466,13 +3481,13 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3466
3481
  if (r === "selected")
3467
3482
  return "bg-action-selected-dark";
3468
3483
  }
3469
- }, Es = ({
3484
+ }, Ss = ({
3470
3485
  radius: e
3471
3486
  }) => f({
3472
3487
  "rounded-full": e === "large",
3473
3488
  "rounded-md": e === "medium",
3474
3489
  "rounded-sm": e === "small"
3475
- }), Ts = ({
3490
+ }), Ns = ({
3476
3491
  mode: e,
3477
3492
  disabled: t,
3478
3493
  variant: r
@@ -3502,7 +3517,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3502
3517
  });
3503
3518
  if (r === "selected")
3504
3519
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
3505
- }, Ss = ({
3520
+ }, Cs = ({
3506
3521
  mode: e,
3507
3522
  disabled: t,
3508
3523
  variant: r
@@ -3532,7 +3547,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3532
3547
  });
3533
3548
  if (r === "selected")
3534
3549
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
3535
- }, Ns = ({
3550
+ }, Rs = ({
3536
3551
  mode: e,
3537
3552
  noBorder: t,
3538
3553
  variant: r
@@ -3562,14 +3577,14 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3562
3577
  });
3563
3578
  if (r === "selected")
3564
3579
  return "border border-border-selected-dark";
3565
- }, Cs = ({
3580
+ }, Is = ({
3566
3581
  focusMode: e
3567
3582
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
3568
3583
  "focus:outline-focus-dark": e === "dark",
3569
3584
  "focus:outline-focus-light": e === "light",
3570
3585
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3571
3586
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3572
- }), Rs = ({
3587
+ }), Ls = ({
3573
3588
  mode: e,
3574
3589
  raw: t,
3575
3590
  iconClassName: r
@@ -3581,7 +3596,7 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3581
3596
  "dark:text-copy-accent-dark": e === "system"
3582
3597
  },
3583
3598
  r
3584
- ), Qa = ({
3599
+ ), en = ({
3585
3600
  type: e,
3586
3601
  className: t,
3587
3602
  raw: r,
@@ -3600,32 +3615,32 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3600
3615
  radius: b
3601
3616
  }) => (m || (m = "primary"), r ? f(ta, t) : f(
3602
3617
  ta,
3603
- ws({
3618
+ Es({
3604
3619
  mode: a,
3605
3620
  variant: m,
3606
3621
  noBackground: u,
3607
3622
  noTruncate: g
3608
3623
  }),
3609
- _s({ mode: a, noBackground: u, variant: m }),
3610
- Es({ radius: b }),
3611
- ks({
3624
+ Ts({ mode: a, noBackground: u, variant: m }),
3625
+ Ss({ radius: b }),
3626
+ ws({
3612
3627
  type: e,
3613
3628
  size: s,
3614
3629
  labelRight: d,
3615
3630
  labelLeft: h,
3616
3631
  align: p
3617
3632
  }),
3618
- xs({ type: e, size: s, labelRight: d, labelLeft: h }),
3619
- Ns({ mode: a, variant: m, noBorder: c }),
3620
- Cs({ focusMode: n }),
3621
- Ts({ mode: a, variant: m, disabled: o }),
3622
- Ss({ mode: a, variant: m, disabled: o }),
3633
+ _s({ type: e, size: s, labelRight: d, labelLeft: h }),
3634
+ Rs({ mode: a, variant: m, noBorder: c }),
3635
+ Is({ focusMode: n }),
3636
+ Ns({ mode: a, variant: m, disabled: o }),
3637
+ Cs({ mode: a, variant: m, disabled: o }),
3623
3638
  {
3624
3639
  "w-full": i,
3625
3640
  "disabled:cursor-not-allowed disabled:opacity-50": o
3626
3641
  },
3627
3642
  t
3628
- )), Is = (e, t, r) => {
3643
+ )), Os = (e, t, r) => {
3629
3644
  var a;
3630
3645
  !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);
3631
3646
  }, fr = V.forwardRef((e, t) => {
@@ -3635,14 +3650,14 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3635
3650
  {
3636
3651
  ref: t,
3637
3652
  onClick: (o) => {
3638
- Is(o, a, r);
3653
+ Os(o, a, r);
3639
3654
  },
3640
3655
  ...n
3641
3656
  }
3642
3657
  );
3643
3658
  });
3644
3659
  fr.displayName = "BaseButton";
3645
- const en = V.forwardRef(
3660
+ const tn = V.forwardRef(
3646
3661
  ({
3647
3662
  children: e,
3648
3663
  disabled: t = !1,
@@ -3665,7 +3680,7 @@ const en = V.forwardRef(
3665
3680
  iconClassName: k,
3666
3681
  ...w
3667
3682
  }, _) => {
3668
- const x = Qa({
3683
+ const x = en({
3669
3684
  type: ht,
3670
3685
  mode: r,
3671
3686
  focusMode: a,
@@ -3681,7 +3696,7 @@ const en = V.forwardRef(
3681
3696
  align: b,
3682
3697
  radius: v,
3683
3698
  variant: y
3684
- }), T = Rs({ mode: r, raw: s, iconClassName: k });
3699
+ }), T = Ls({ mode: r, raw: s, iconClassName: k });
3685
3700
  return /* @__PURE__ */ E(
3686
3701
  fr,
3687
3702
  {
@@ -3700,7 +3715,7 @@ const en = V.forwardRef(
3700
3715
  );
3701
3716
  }
3702
3717
  );
3703
- en.displayName = "ButtonIcon";
3718
+ tn.displayName = "ButtonIcon";
3704
3719
  /*!
3705
3720
  @versini/ui-button v4.1.4
3706
3721
  © 2025 gizmette.com
@@ -3714,7 +3729,7 @@ try {
3714
3729
  });
3715
3730
  } catch {
3716
3731
  }
3717
- const Ls = V.forwardRef(
3732
+ const As = V.forwardRef(
3718
3733
  ({
3719
3734
  children: e,
3720
3735
  disabled: t = !1,
@@ -3736,7 +3751,7 @@ const Ls = V.forwardRef(
3736
3751
  radius: y = "large",
3737
3752
  ...k
3738
3753
  }, w) => {
3739
- const _ = Qa({
3754
+ const _ = en({
3740
3755
  type: ht,
3741
3756
  mode: r,
3742
3757
  focusMode: a,
@@ -3791,8 +3806,8 @@ const Ls = V.forwardRef(
3791
3806
  ) });
3792
3807
  }
3793
3808
  );
3794
- Ls.displayName = "ButtonSort";
3795
- const Os = ({
3809
+ As.displayName = "ButtonSort";
3810
+ const $s = ({
3796
3811
  children: e,
3797
3812
  fill: t,
3798
3813
  viewBox: r,
@@ -3835,14 +3850,14 @@ try {
3835
3850
  });
3836
3851
  } catch {
3837
3852
  }
3838
- const As = ({
3853
+ const Bs = ({
3839
3854
  className: e,
3840
3855
  viewBox: t,
3841
3856
  title: r,
3842
3857
  monotone: a,
3843
3858
  ...n
3844
3859
  }) => /* @__PURE__ */ l(
3845
- Os,
3860
+ $s,
3846
3861
  {
3847
3862
  defaultViewBox: "0 0 384 512",
3848
3863
  size: "size-5",
@@ -3872,8 +3887,8 @@ try {
3872
3887
  });
3873
3888
  } catch {
3874
3889
  }
3875
- const tn = G.createContext(null);
3876
- function $s({
3890
+ const rn = G.createContext(null);
3891
+ function Ms({
3877
3892
  initialOpen: e = !1,
3878
3893
  open: t,
3879
3894
  onOpenChange: r
@@ -3902,19 +3917,19 @@ function $s({
3902
3917
  );
3903
3918
  }
3904
3919
  const pt = () => {
3905
- const e = G.useContext(tn);
3920
+ const e = G.useContext(rn);
3906
3921
  if (e == null)
3907
3922
  throw new Error("Modal components must be wrapped in <Modal />");
3908
3923
  return e;
3909
3924
  };
3910
- function Bs({
3925
+ function Vs({
3911
3926
  children: e,
3912
3927
  ...t
3913
3928
  }) {
3914
- const r = $s(t);
3915
- return /* @__PURE__ */ l(tn.Provider, { value: r, children: e });
3929
+ const r = Ms(t);
3930
+ return /* @__PURE__ */ l(rn.Provider, { value: r, children: e });
3916
3931
  }
3917
- const Ms = G.forwardRef(function(e, t) {
3932
+ const Ps = G.forwardRef(function(e, t) {
3918
3933
  const { context: r, ...a } = pt(), n = tr([a.refs.setFloating, t]);
3919
3934
  if (!r.open)
3920
3935
  return null;
@@ -3922,7 +3937,7 @@ const Ms = G.forwardRef(function(e, t) {
3922
3937
  [`${o}`]: o,
3923
3938
  "bg-black sm:bg-black/[.8]": !o
3924
3939
  });
3925
- return /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(Vn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(pa, { context: r, children: /* @__PURE__ */ l(
3940
+ return /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(Pn, { className: s, lockScroll: !0, children: /* @__PURE__ */ l(pa, { context: r, children: /* @__PURE__ */ l(
3926
3941
  "div",
3927
3942
  {
3928
3943
  ref: n,
@@ -3932,13 +3947,13 @@ const Ms = G.forwardRef(function(e, t) {
3932
3947
  children: i.children
3933
3948
  }
3934
3949
  ) }) }) });
3935
- }), Vs = G.forwardRef(function({ children: e, ...t }, r) {
3950
+ }), Ds = G.forwardRef(function({ children: e, ...t }, r) {
3936
3951
  const { setLabelId: a } = pt(), n = er();
3937
3952
  return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("h1", { ...t, ref: r, id: n, children: e });
3938
- }), Ps = G.forwardRef(function({ children: e, ...t }, r) {
3953
+ }), zs = G.forwardRef(function({ children: e, ...t }, r) {
3939
3954
  const { setDescriptionId: a } = pt(), n = er();
3940
3955
  return G.useLayoutEffect(() => (a(n), () => a(void 0)), [n, a]), /* @__PURE__ */ l("div", { ...t, ref: r, id: n, children: e });
3941
- }), Ds = G.forwardRef(function(e, t) {
3956
+ }), Us = G.forwardRef(function(e, t) {
3942
3957
  const { setOpen: r } = pt(), { trigger: a, className: n, ...o } = e, i = G.useCallback(() => r(!1), [r]);
3943
3958
  return /* @__PURE__ */ l("div", { className: n, children: G.cloneElement(a, {
3944
3959
  ref: t,
@@ -3959,7 +3974,7 @@ try {
3959
3974
  });
3960
3975
  } catch {
3961
3976
  }
3962
- const Me = "panel", tt = "messagebox", zs = ({
3977
+ const Me = "panel", tt = "messagebox", Hs = ({
3963
3978
  className: e,
3964
3979
  kind: t,
3965
3980
  borderMode: r
@@ -3979,7 +3994,7 @@ const Me = "panel", tt = "messagebox", zs = ({
3979
3994
  footer: "flex flex-grow flex-col sm:p-4 p-2",
3980
3995
  header: "sm:p-4 mb-0 p-2",
3981
3996
  close: "sm:p-4 p-2"
3982
- }), Us = ({
3997
+ }), Fs = ({
3983
3998
  open: e,
3984
3999
  onOpenChange: t,
3985
4000
  title: r,
@@ -3989,46 +4004,46 @@ const Me = "panel", tt = "messagebox", zs = ({
3989
4004
  kind: i = Me,
3990
4005
  className: s
3991
4006
  }) => {
3992
- const c = A(""), d = zs({ className: s, kind: i, borderMode: o });
3993
- return M(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
4007
+ const c = A(""), d = Hs({ className: s, kind: i, borderMode: o });
4008
+ return $(() => (e && (c.current = document.title, document.title = `${r} | ${c.current}`), () => {
3994
4009
  e && (document.title = c.current);
3995
- }), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(Bs, { open: e, onOpenChange: t, children: /* @__PURE__ */ E(Ms, { className: d.main, children: [
4010
+ }), [r, e]), /* @__PURE__ */ l(ke, { children: e && /* @__PURE__ */ l(Vs, { open: e, onOpenChange: t, children: /* @__PURE__ */ E(Ps, { className: d.main, children: [
3996
4011
  /* @__PURE__ */ E("div", { className: "flex flex-row-reverse items-center justify-between", children: [
3997
4012
  /* @__PURE__ */ l(
3998
- Ds,
4013
+ Us,
3999
4014
  {
4000
4015
  className: d.close,
4001
4016
  trigger: /* @__PURE__ */ l(
4002
- en,
4017
+ tn,
4003
4018
  {
4004
4019
  mode: "dark",
4005
4020
  focusMode: "light",
4006
4021
  noBorder: !0,
4007
4022
  label: "Close",
4008
- children: /* @__PURE__ */ l(As, {})
4023
+ children: /* @__PURE__ */ l(Bs, {})
4009
4024
  }
4010
4025
  )
4011
4026
  }
4012
4027
  ),
4013
- /* @__PURE__ */ l(Vs, { className: d.header, children: r })
4028
+ /* @__PURE__ */ l(Ds, { className: d.header, children: r })
4014
4029
  ] }),
4015
- /* @__PURE__ */ l(Ps, { className: d.content, children: a }),
4030
+ /* @__PURE__ */ l(zs, { className: d.content, children: a }),
4016
4031
  n && /* @__PURE__ */ l("div", { className: d.footer, children: n })
4017
4032
  ] }) }) });
4018
- }, Hs = ({
4033
+ }, Ws = ({
4019
4034
  showConfirmation: e,
4020
4035
  setShowConfirmation: t,
4021
4036
  action: r,
4022
4037
  children: a,
4023
4038
  customStrings: n
4024
4039
  }) => /* @__PURE__ */ l(
4025
- Us,
4040
+ Fs,
4026
4041
  {
4027
4042
  kind: "messagebox",
4028
4043
  open: e,
4029
4044
  onOpenChange: t,
4030
4045
  title: n.title,
4031
- footer: /* @__PURE__ */ E(yn, { columnGap: 2, alignHorizontal: "flex-end", children: [
4046
+ footer: /* @__PURE__ */ E(vn, { columnGap: 2, alignHorizontal: "flex-end", children: [
4032
4047
  /* @__PURE__ */ l(Nr, { children: /* @__PURE__ */ l(
4033
4048
  Cr,
4034
4049
  {
@@ -4056,11 +4071,11 @@ const Me = "panel", tt = "messagebox", zs = ({
4056
4071
  ] }),
4057
4072
  children: a
4058
4073
  }
4059
- ), Fs = ({
4074
+ ), Gs = ({
4060
4075
  className: e
4061
4076
  }) => {
4062
4077
  const { state: t, dispatch: r } = z(de), [a, n] = Z(!1), [o, i] = Mt({
4063
- key: At + vn,
4078
+ key: At + kn,
4064
4079
  initialValue: ""
4065
4080
  }), s = () => {
4066
4081
  r({
@@ -4072,7 +4087,7 @@ const Me = "panel", tt = "messagebox", zs = ({
4072
4087
  };
4073
4088
  return /* @__PURE__ */ E(ke, { children: [
4074
4089
  /* @__PURE__ */ l(
4075
- Hs,
4090
+ Ws,
4076
4091
  {
4077
4092
  showConfirmation: a,
4078
4093
  setShowConfirmation: n,
@@ -4105,7 +4120,7 @@ const Me = "panel", tt = "messagebox", zs = ({
4105
4120
  onClick: (d) => {
4106
4121
  d.preventDefault(), o ? s() : (i("true"), n(!a));
4107
4122
  },
4108
- children: t != null && t.private ? /* @__PURE__ */ l(Xn, { size: "size-4", className: "text-red-500" }) : /* @__PURE__ */ l(Qn, { size: "size-4" })
4123
+ children: t != null && t.private ? /* @__PURE__ */ l(Zn, { size: "size-4", className: "text-red-500" }) : /* @__PURE__ */ l(eo, { size: "size-4" })
4109
4124
  }
4110
4125
  )
4111
4126
  }
@@ -4131,7 +4146,7 @@ const Me = "panel", tt = "messagebox", zs = ({
4131
4146
  return t.displayName || t.name || "Component";
4132
4147
  }
4133
4148
  return "Element";
4134
- }, rn = ga(
4149
+ }, an = ga(
4135
4150
  ({
4136
4151
  trigger: e,
4137
4152
  children: t,
@@ -4142,7 +4157,7 @@ const Me = "panel", tt = "messagebox", zs = ({
4142
4157
  focusMode: i = "system",
4143
4158
  ...s
4144
4159
  }, c) => {
4145
- const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Pn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
4160
+ const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Dn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
4146
4161
  nodeId: w,
4147
4162
  open: d,
4148
4163
  onOpenChange: (H) => {
@@ -4150,23 +4165,23 @@ const Me = "panel", tt = "messagebox", zs = ({
4150
4165
  },
4151
4166
  placement: a,
4152
4167
  strategy: "fixed",
4153
- middleware: [Dn({ mainAxis: 10 }), zn(), Un()],
4154
- whileElementsMounted: Hn
4168
+ middleware: [zn({ mainAxis: 10 }), Un(), Hn()],
4169
+ whileElementsMounted: Fn
4155
4170
  }), N = ya(S, {
4156
4171
  event: "mousedown",
4157
4172
  toggle: !0,
4158
4173
  ignoreMouse: !1
4159
- }), D = ka(S, { role: "menu" }), O = va(S, { bubbles: !0 }), j = Fn(S, {
4174
+ }), D = ka(S, { role: "menu" }), O = va(S, { bubbles: !0 }), j = Wn(S, {
4160
4175
  listRef: b,
4161
4176
  activeIndex: g,
4162
4177
  nested: !1,
4163
4178
  onNavigate: p,
4164
4179
  loop: !0
4165
- }), P = Wn(S, {
4180
+ }), P = Gn(S, {
4166
4181
  listRef: v,
4167
4182
  onMatch: d ? p : void 0,
4168
4183
  activeIndex: g
4169
- }), { getReferenceProps: $, getFloatingProps: R, getItemProps: Q } = xa([N, D, O, j, P]), K = ra(e) === "Button" || ra(e) === "ButtonIcon", Y = K ? {
4184
+ }), { getReferenceProps: B, getFloatingProps: R, getItemProps: Q } = xa([N, D, O, j, P]), K = ra(e) === "Button" || ra(e) === "ButtonIcon", Y = K ? {
4170
4185
  noInternalClick: K,
4171
4186
  focusMode: i,
4172
4187
  mode: o
@@ -4178,14 +4193,14 @@ const Me = "panel", tt = "messagebox", zs = ({
4178
4193
  "data-open": d ? "" : void 0,
4179
4194
  "data-focus-inside": u ? "" : void 0,
4180
4195
  ref: tr([T.setReference, _.ref, c]),
4181
- ...$(
4196
+ ...B(
4182
4197
  y.getItemProps({
4183
4198
  ...s
4184
4199
  })
4185
4200
  )
4186
4201
  }
4187
4202
  );
4188
- return M(() => {
4203
+ return $(() => {
4189
4204
  if (!k)
4190
4205
  return;
4191
4206
  function H() {
@@ -4194,9 +4209,9 @@ const Me = "panel", tt = "messagebox", zs = ({
4194
4209
  return k.events.on("click", H), () => {
4195
4210
  k.events.off("click", H);
4196
4211
  };
4197
- }, [k, n]), M(() => {
4212
+ }, [k, n]), $(() => {
4198
4213
  d && k && k.events.emit("menuopen", { nodeId: w });
4199
- }, [k, d, w]), /* @__PURE__ */ E(Gn, { id: w, children: [
4214
+ }, [k, d, w]), /* @__PURE__ */ E(jn, { id: w, children: [
4200
4215
  U,
4201
4216
  /* @__PURE__ */ l(
4202
4217
  Yt.Provider,
@@ -4208,7 +4223,7 @@ const Me = "panel", tt = "messagebox", zs = ({
4208
4223
  setHasFocusInside: m,
4209
4224
  isOpen: d
4210
4225
  },
4211
- children: /* @__PURE__ */ l(jn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
4226
+ children: /* @__PURE__ */ l(qn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
4212
4227
  pa,
4213
4228
  {
4214
4229
  context: S,
@@ -4231,9 +4246,9 @@ const Me = "panel", tt = "messagebox", zs = ({
4231
4246
  )
4232
4247
  ] });
4233
4248
  }
4234
- ), hr = ga((e, t) => /* @__PURE__ */ l(qn, { children: /* @__PURE__ */ l(rn, { ...e, ref: t }) }));
4249
+ ), hr = ga((e, t) => /* @__PURE__ */ l(Kn, { children: /* @__PURE__ */ l(an, { ...e, ref: t }) }));
4235
4250
  hr.displayName = "Menu";
4236
- rn.displayName = "MenuComponent";
4251
+ an.displayName = "MenuComponent";
4237
4252
  const ot = G.forwardRef(
4238
4253
  ({
4239
4254
  label: e,
@@ -4298,10 +4313,10 @@ const ot = G.forwardRef(
4298
4313
  }
4299
4314
  );
4300
4315
  ot.displayName = "MenuItem";
4301
- const tc = ({ className: e, ...t }) => {
4316
+ const nc = ({ className: e, ...t }) => {
4302
4317
  const r = f(e, "my-1 border-t border-border-medium");
4303
4318
  return /* @__PURE__ */ l("div", { className: r, ...t });
4304
- }, an = ({
4319
+ }, nn = ({
4305
4320
  className: e,
4306
4321
  ...t
4307
4322
  }) => {
@@ -4324,12 +4339,12 @@ try {
4324
4339
  });
4325
4340
  } catch {
4326
4341
  }
4327
- const Ws = (e) => {
4342
+ const js = (e) => {
4328
4343
  for (let t = 0; t < e.length; t++)
4329
4344
  if (e[t].enabled)
4330
4345
  return !0;
4331
4346
  return !1;
4332
- }, Gs = ({
4347
+ }, qs = ({
4333
4348
  className: e,
4334
4349
  defaultPlacement: t = "top-start"
4335
4350
  }) => {
@@ -4353,7 +4368,7 @@ const Ws = (e) => {
4353
4368
  }
4354
4369
  });
4355
4370
  };
4356
- return s || c ? null : i && i.tags && Ws(i.tags) && /* @__PURE__ */ l(
4371
+ return s || c ? null : i && i.tags && js(i.tags) && /* @__PURE__ */ l(
4357
4372
  Ke,
4358
4373
  {
4359
4374
  label: "Custom Prompts",
@@ -4364,10 +4379,10 @@ const Ws = (e) => {
4364
4379
  {
4365
4380
  mode: "dark",
4366
4381
  focusMode: "light",
4367
- trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Kn, { size: "size-4" }) }),
4382
+ trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ l(Yn, { size: "size-4" }) }),
4368
4383
  defaultPlacement: t,
4369
4384
  children: [
4370
- /* @__PURE__ */ l(an, { children: "Prompts" }),
4385
+ /* @__PURE__ */ l(nn, { children: "Prompts" }),
4371
4386
  i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4372
4387
  ot,
4373
4388
  {
@@ -4385,7 +4400,37 @@ const Ws = (e) => {
4385
4400
  )
4386
4401
  }
4387
4402
  );
4388
- }, js = ({
4403
+ }, Ks = ({ show: e }) => e ? /* @__PURE__ */ l(
4404
+ "div",
4405
+ {
4406
+ className: f(
4407
+ Ri,
4408
+ "bottom-44 fixed left-1/2 transform -translate-x-1/2"
4409
+ ),
4410
+ children: /* @__PURE__ */ l(
4411
+ "button",
4412
+ {
4413
+ className: "av-button not-prose truncate text-copy-light rounded-full inline-flex items-center justify-center h-8 w-8 p-1 border border-transparent focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-focus-dark dark:focus:outline-focus-light disabled:opacity-50 dark:bg-slate-50 bg-slate-500 disabled:cursor-auto",
4414
+ disabled: !0,
4415
+ type: "button",
4416
+ "aria-label": "Scroll to bottom",
4417
+ children: /* @__PURE__ */ l("div", { className: "text-copy-light", children: /* @__PURE__ */ l(
4418
+ "svg",
4419
+ {
4420
+ xmlns: "http://www.w3.org/2000/svg",
4421
+ className: "size-4 dark:text-copy-dark text-copy-lighter",
4422
+ viewBox: "0 0 384 512",
4423
+ fill: "currentColor",
4424
+ role: "img",
4425
+ "aria-hidden": "true",
4426
+ focusable: "false",
4427
+ children: /* @__PURE__ */ l("path", { d: "M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z" })
4428
+ }
4429
+ ) })
4430
+ }
4431
+ )
4432
+ }
4433
+ ) : null, Ys = ({
4389
4434
  className: e
4390
4435
  }) => {
4391
4436
  const { state: t } = z(de);
@@ -4406,12 +4451,12 @@ const Ws = (e) => {
4406
4451
  type: "submit",
4407
4452
  mode: "light",
4408
4453
  focusMode: "light",
4409
- children: /* @__PURE__ */ l(Zn, { size: "size-4" })
4454
+ children: /* @__PURE__ */ l(Qn, { size: "size-4" })
4410
4455
  }
4411
4456
  )
4412
4457
  }
4413
4458
  );
4414
- }, qs = ({
4459
+ }, Js = ({
4415
4460
  className: e
4416
4461
  }) => {
4417
4462
  const { state: t, dispatch: r } = z(de), { getAccessToken: a, user: n } = Fe(), {
@@ -4424,7 +4469,7 @@ const Ws = (e) => {
4424
4469
  getAccessToken: a
4425
4470
  }), d = async (h) => {
4426
4471
  try {
4427
- await Va({
4472
+ await Pa({
4428
4473
  accessToken: await a(),
4429
4474
  type: We.SET_USER_PREFERENCES,
4430
4475
  params: {
@@ -4454,7 +4499,7 @@ const Ws = (e) => {
4454
4499
  trigger: /* @__PURE__ */ l(He, { noBorder: !0, label: "Engines", children: o && o.engine === xt ? /* @__PURE__ */ l(Ar, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ l($r, { size: "size-4 sm:size-5" }) }),
4455
4500
  defaultPlacement: "top-start",
4456
4501
  children: [
4457
- /* @__PURE__ */ l(an, { children: "Engines" }),
4502
+ /* @__PURE__ */ l(nn, { children: "Engines" }),
4458
4503
  /* @__PURE__ */ l(
4459
4504
  ot,
4460
4505
  {
@@ -4478,35 +4523,35 @@ const Ws = (e) => {
4478
4523
  )
4479
4524
  }
4480
4525
  );
4481
- }, Ks = () => f(
4526
+ }, Xs = () => f(
4482
4527
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
4483
- ), aa = () => f("bg-surface-darker"), Ys = () => f("text-copy-lighter caret-copy-light"), Js = () => f(
4528
+ ), aa = () => f("bg-surface-darker"), Zs = () => f("text-copy-lighter caret-copy-light"), Qs = () => f(
4484
4529
  "has-[.av-prompt-editable:focus]:outline",
4485
4530
  "has-[.av-prompt-editable:focus]:outline-2",
4486
4531
  "has-[.av-prompt-editable:focus]:outline-offset-2",
4487
4532
  "has-[.av-prompt-editable:focus]:outline-focus-light"
4488
- ), Xs = () => f(
4533
+ ), el = () => f(
4489
4534
  "peer",
4490
4535
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
4491
4536
  "h-6 pr-2 pl-4"
4492
- ), Zs = ({ className: e }) => {
4537
+ ), tl = ({ className: e }) => {
4493
4538
  const t = f(
4494
- kn,
4495
- Ks(),
4539
+ xn,
4540
+ Xs(),
4496
4541
  aa(),
4497
- Ys(),
4498
- Js(),
4542
+ Zs(),
4543
+ Qs(),
4499
4544
  e
4500
4545
  ), r = f(
4501
- xn,
4502
- Xs(),
4546
+ wn,
4547
+ el(),
4503
4548
  aa()
4504
4549
  );
4505
4550
  return {
4506
4551
  wrapper: t,
4507
4552
  textArea: r
4508
4553
  };
4509
- }, Qs = ({
4554
+ }, rl = ({
4510
4555
  className: e,
4511
4556
  label: t,
4512
4557
  value: r,
@@ -4516,9 +4561,9 @@ const Ws = (e) => {
4516
4561
  ref: i,
4517
4562
  ...s
4518
4563
  }) => {
4519
- const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = co([i, p]), v = mo(), y = Zs({
4564
+ const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = mo([i, p]), v = fo(), y = tl({
4520
4565
  className: e
4521
- }), [k, w] = uo({
4566
+ }), [k, w] = go({
4522
4567
  value: r,
4523
4568
  initialControlledDelay: 20,
4524
4569
  defaultValue: a,
@@ -4544,9 +4589,9 @@ const Ws = (e) => {
4544
4589
  }, T = (S) => {
4545
4590
  w(S.target.value), _();
4546
4591
  };
4547
- return M(() => {
4592
+ return $(() => {
4548
4593
  u && u.usage === 0 && u.messages.length === 0 && p.current && (p.current.style.height = "24px");
4549
- }, [u]), M(() => {
4594
+ }, [u]), $(() => {
4550
4595
  m.lastTriggeredTimestamp && setTimeout(() => {
4551
4596
  _();
4552
4597
  }, 100);
@@ -4574,11 +4619,11 @@ const Ws = (e) => {
4574
4619
  }
4575
4620
  ) }),
4576
4621
  /* @__PURE__ */ E("div", { className: "p-2 flex items-center", children: [
4577
- /* @__PURE__ */ l(js, { className: "order-5 ml-auto" }),
4578
- /* @__PURE__ */ l(vs, { className: "order-1 mr-2" }),
4579
- /* @__PURE__ */ l(qs, { className: "order-2 mr-2" }),
4580
- /* @__PURE__ */ l(Gs, { className: "order-3 mr-2" }),
4581
- /* @__PURE__ */ l(Fs, { className: "order-4 mr-2" })
4622
+ /* @__PURE__ */ l(Ys, { className: "order-5 ml-auto" }),
4623
+ /* @__PURE__ */ l(xs, { className: "order-1 mr-2" }),
4624
+ /* @__PURE__ */ l(Js, { className: "order-2 mr-2" }),
4625
+ /* @__PURE__ */ l(qs, { className: "order-3 mr-2" }),
4626
+ /* @__PURE__ */ l(Gs, { className: "order-4 mr-2" })
4582
4627
  ] })
4583
4628
  ] })
4584
4629
  }
@@ -4596,15 +4641,34 @@ const Ws = (e) => {
4596
4641
  payload: {
4597
4642
  message: {
4598
4643
  role: Qt,
4599
- content: Tn
4644
+ content: Sn
4600
4645
  }
4601
4646
  }
4602
4647
  });
4603
- }, el = () => {
4648
+ }, al = () => {
4604
4649
  const { state: e, dispatch: t } = z(de), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
4605
4650
  null
4606
4651
  );
4607
- M(() => {
4652
+ so([
4653
+ [
4654
+ "mod+K",
4655
+ () => {
4656
+ c && c.current && c.current.focus();
4657
+ }
4658
+ ]
4659
+ ]);
4660
+ const h = async (u) => {
4661
+ u.preventDefault(), t({
4662
+ type: Ve,
4663
+ payload: {
4664
+ message: {
4665
+ role: $t,
4666
+ content: n
4667
+ }
4668
+ }
4669
+ }), o("");
4670
+ };
4671
+ return $(() => {
4608
4672
  (async () => {
4609
4673
  var m;
4610
4674
  if (!e || e.messages.length === 0) {
@@ -4612,9 +4676,9 @@ const Ws = (e) => {
4612
4676
  return;
4613
4677
  }
4614
4678
  const u = e.messages[e.messages.length - 1];
4615
- if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === wn || u.message.role === Qt || u.message.role === _n))
4679
+ if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === _n || u.message.role === Qt || u.message.role === En))
4616
4680
  try {
4617
- const g = await xi({
4681
+ const g = await _i({
4618
4682
  accessToken: await i(),
4619
4683
  name: "generate",
4620
4684
  data: {
@@ -4678,19 +4742,7 @@ const Ws = (e) => {
4678
4742
  console.error(g), na(t);
4679
4743
  }
4680
4744
  })();
4681
- }, [e == null ? void 0 : e.messages]);
4682
- const h = async (u) => {
4683
- u.preventDefault(), t({
4684
- type: Ve,
4685
- payload: {
4686
- message: {
4687
- role: $t,
4688
- content: n
4689
- }
4690
- }
4691
- }), o("");
4692
- };
4693
- return M(() => {
4745
+ }, [e == null ? void 0 : e.messages]), $(() => {
4694
4746
  if (r.prompt !== "") {
4695
4747
  const u = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
4696
4748
  u.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
@@ -4699,73 +4751,43 @@ const Ws = (e) => {
4699
4751
  type: da
4700
4752
  });
4701
4753
  }
4702
- }, [r, a]), M(() => {
4754
+ }, [r, a]), $(() => {
4703
4755
  e && e.usage === 0 && e.messages.length === 0 && (o(""), c.current && c.current.focus());
4704
- }, [e]), M(() => {
4756
+ }, [e]), $(() => {
4705
4757
  (e == null ? void 0 : e.streaming) === !1 && c.current && c.current.focus();
4706
4758
  }, [e]), /* @__PURE__ */ l(ke, { children: /* @__PURE__ */ l(
4707
- Qs,
4759
+ rl,
4708
4760
  {
4709
- label: En,
4761
+ label: Tn,
4710
4762
  onSubmit: h,
4711
4763
  ref: c,
4712
4764
  value: n,
4713
4765
  onChange: (u) => o(u.target.value)
4714
4766
  }
4715
4767
  ) });
4716
- }, tl = ({ isComponent: e }) => {
4768
+ }, nl = ({ isComponent: e }) => {
4717
4769
  const { state: t } = z(de), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
4718
4770
  a ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
4719
4771
  );
4720
- return M(() => {
4772
+ return $(() => {
4721
4773
  a || t && (!r.current && t.streaming && o("bottom-4"), r.current = !!t.streaming);
4722
- }, [t, a]), M(() => {
4774
+ }, [t, a]), $(() => {
4723
4775
  a || (t && t.messages.length === 0 && o(e ? "top-[300px]" : "top-[245px]"), t && !t.streaming && t.messages.length > 0 && o("bottom-4"));
4724
4776
  }, [t, a, e]), /* @__PURE__ */ E(
4725
4777
  "footer",
4726
4778
  {
4727
4779
  className: f(
4728
4780
  "px-2 sm:px-0 md:mx-auto md:max-w-4xl w-full fixed left-1/2 transform -translate-x-1/2",
4729
- Si,
4781
+ Ci,
4730
4782
  n
4731
4783
  ),
4732
4784
  children: [
4733
- /* @__PURE__ */ l(el, {}),
4734
- /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Sn })
4785
+ /* @__PURE__ */ l(al, {}),
4786
+ /* @__PURE__ */ l("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: Nn })
4735
4787
  ]
4736
4788
  }
4737
4789
  );
4738
- }, rl = ({ show: e }) => e ? /* @__PURE__ */ l(
4739
- "div",
4740
- {
4741
- className: f(
4742
- Ni,
4743
- "bottom-44 fixed left-1/2 transform -translate-x-1/2"
4744
- ),
4745
- children: /* @__PURE__ */ l(
4746
- "button",
4747
- {
4748
- className: "av-button not-prose truncate text-copy-light rounded-full inline-flex items-center justify-center h-8 w-8 p-1 border border-transparent focus:outline focus:outline-2 focus:outline-offset-2 focus:outline-focus-dark dark:focus:outline-focus-light disabled:opacity-50 dark:bg-slate-50 bg-slate-500 disabled:cursor-auto",
4749
- disabled: !0,
4750
- type: "button",
4751
- "aria-label": "Scroll to bottom",
4752
- children: /* @__PURE__ */ l("div", { className: "text-copy-light", children: /* @__PURE__ */ l(
4753
- "svg",
4754
- {
4755
- xmlns: "http://www.w3.org/2000/svg",
4756
- className: "size-4 dark:text-copy-dark text-copy-lighter",
4757
- viewBox: "0 0 384 512",
4758
- fill: "currentColor",
4759
- role: "img",
4760
- "aria-hidden": "true",
4761
- focusable: "false",
4762
- children: /* @__PURE__ */ l("path", { d: "M174.6 472.6c4.5 4.7 10.8 7.4 17.4 7.4s12.8-2.7 17.4-7.4l168-176c9.2-9.6 8.8-24.8-.8-33.9s-24.8-8.8-33.9 .8L216 396.1 216 56c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 340.1L41.4 263.4c-9.2-9.6-24.3-9.9-33.9-.8s-9.9 24.3-.8 33.9l168 176z" })
4763
- }
4764
- ) })
4765
- }
4766
- )
4767
- }
4768
- ) : null;
4790
+ };
4769
4791
  /*!
4770
4792
  @versini/ui-bubble v3.1.12
4771
4793
  © 2025 gizmette.com
@@ -4779,7 +4801,7 @@ try {
4779
4801
  });
4780
4802
  } catch {
4781
4803
  }
4782
- const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link", nl = ({
4804
+ const ol = "av-bubble", oa = "av-button", bt = "icon", on = "button", Xt = "link", il = ({
4783
4805
  type: e,
4784
4806
  size: t,
4785
4807
  labelRight: r,
@@ -4788,7 +4810,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4788
4810
  }) => {
4789
4811
  const o = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", s = "max-h-12 py-2 px-4";
4790
4812
  switch (e) {
4791
- case nn:
4813
+ case on:
4792
4814
  case Xt:
4793
4815
  return f({
4794
4816
  [o]: t === "small",
@@ -4808,7 +4830,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4808
4830
  "h-12 px-4": t === "large" && (r || a)
4809
4831
  });
4810
4832
  }
4811
- }, ol = ({
4833
+ }, sl = ({
4812
4834
  type: e,
4813
4835
  size: t,
4814
4836
  labelRight: r,
@@ -4816,7 +4838,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4816
4838
  }) => {
4817
4839
  const n = "text-sm font-medium", o = "text-base font-medium", i = "text-lg font-medium";
4818
4840
  switch (e) {
4819
- case nn:
4841
+ case on:
4820
4842
  case Xt:
4821
4843
  return f({
4822
4844
  "text-center": e === Xt,
@@ -4831,7 +4853,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4831
4853
  [i]: t === "large" && (r || a)
4832
4854
  });
4833
4855
  }
4834
- }, il = ({
4856
+ }, ll = ({
4835
4857
  mode: e,
4836
4858
  noBackground: t,
4837
4859
  noTruncate: r,
@@ -4867,7 +4889,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4867
4889
  return f("not-prose text-copy-lighter", {
4868
4890
  truncate: !r
4869
4891
  });
4870
- }, sl = ({
4892
+ }, cl = ({
4871
4893
  mode: e,
4872
4894
  noBackground: t,
4873
4895
  variant: r
@@ -4897,13 +4919,13 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4897
4919
  if (r === "selected")
4898
4920
  return "bg-action-selected-dark";
4899
4921
  }
4900
- }, ll = ({
4922
+ }, dl = ({
4901
4923
  radius: e
4902
4924
  }) => f({
4903
4925
  "rounded-full": e === "large",
4904
4926
  "rounded-md": e === "medium",
4905
4927
  "rounded-sm": e === "small"
4906
- }), cl = ({
4928
+ }), ul = ({
4907
4929
  mode: e,
4908
4930
  disabled: t,
4909
4931
  variant: r
@@ -4933,7 +4955,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4933
4955
  });
4934
4956
  if (r === "selected")
4935
4957
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
4936
- }, dl = ({
4958
+ }, ml = ({
4937
4959
  mode: e,
4938
4960
  disabled: t,
4939
4961
  variant: r
@@ -4963,7 +4985,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4963
4985
  });
4964
4986
  if (r === "selected")
4965
4987
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
4966
- }, ul = ({
4988
+ }, gl = ({
4967
4989
  mode: e,
4968
4990
  noBorder: t,
4969
4991
  variant: r
@@ -4993,14 +5015,14 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
4993
5015
  });
4994
5016
  if (r === "selected")
4995
5017
  return "border border-border-selected-dark";
4996
- }, ml = ({
5018
+ }, fl = ({
4997
5019
  focusMode: e
4998
5020
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
4999
5021
  "focus:outline-focus-dark": e === "dark",
5000
5022
  "focus:outline-focus-light": e === "light",
5001
5023
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5002
5024
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5003
- }), gl = ({
5025
+ }), hl = ({
5004
5026
  mode: e,
5005
5027
  raw: t,
5006
5028
  iconClassName: r
@@ -5012,7 +5034,7 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
5012
5034
  "dark:text-copy-accent-dark": e === "system"
5013
5035
  },
5014
5036
  r
5015
- ), on = ({
5037
+ ), sn = ({
5016
5038
  type: e,
5017
5039
  className: t,
5018
5040
  raw: r,
@@ -5031,32 +5053,32 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
5031
5053
  radius: b
5032
5054
  }) => (m || (m = "primary"), r ? f(oa, t) : f(
5033
5055
  oa,
5034
- il({
5056
+ ll({
5035
5057
  mode: a,
5036
5058
  variant: m,
5037
5059
  noBackground: u,
5038
5060
  noTruncate: g
5039
5061
  }),
5040
- sl({ mode: a, noBackground: u, variant: m }),
5041
- ll({ radius: b }),
5042
- nl({
5062
+ cl({ mode: a, noBackground: u, variant: m }),
5063
+ dl({ radius: b }),
5064
+ il({
5043
5065
  type: e,
5044
5066
  size: s,
5045
5067
  labelRight: d,
5046
5068
  labelLeft: h,
5047
5069
  align: p
5048
5070
  }),
5049
- ol({ type: e, size: s, labelRight: d, labelLeft: h }),
5050
- ul({ mode: a, variant: m, noBorder: c }),
5051
- ml({ focusMode: n }),
5052
- cl({ mode: a, variant: m, disabled: o }),
5053
- dl({ mode: a, variant: m, disabled: o }),
5071
+ sl({ type: e, size: s, labelRight: d, labelLeft: h }),
5072
+ gl({ mode: a, variant: m, noBorder: c }),
5073
+ fl({ focusMode: n }),
5074
+ ul({ mode: a, variant: m, disabled: o }),
5075
+ ml({ mode: a, variant: m, disabled: o }),
5054
5076
  {
5055
5077
  "w-full": i,
5056
5078
  "disabled:cursor-not-allowed disabled:opacity-50": o
5057
5079
  },
5058
5080
  t
5059
- )), fl = (e, t, r) => {
5081
+ )), pl = (e, t, r) => {
5060
5082
  var a;
5061
5083
  !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);
5062
5084
  }, pr = V.forwardRef((e, t) => {
@@ -5066,14 +5088,14 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
5066
5088
  {
5067
5089
  ref: t,
5068
5090
  onClick: (o) => {
5069
- fl(o, a, r);
5091
+ pl(o, a, r);
5070
5092
  },
5071
5093
  ...n
5072
5094
  }
5073
5095
  );
5074
5096
  });
5075
5097
  pr.displayName = "BaseButton";
5076
- const sn = V.forwardRef(
5098
+ const ln = V.forwardRef(
5077
5099
  ({
5078
5100
  children: e,
5079
5101
  disabled: t = !1,
@@ -5096,7 +5118,7 @@ const sn = V.forwardRef(
5096
5118
  iconClassName: k,
5097
5119
  ...w
5098
5120
  }, _) => {
5099
- const x = on({
5121
+ const x = sn({
5100
5122
  type: bt,
5101
5123
  mode: r,
5102
5124
  focusMode: a,
@@ -5112,7 +5134,7 @@ const sn = V.forwardRef(
5112
5134
  align: b,
5113
5135
  radius: v,
5114
5136
  variant: y
5115
- }), T = gl({ mode: r, raw: s, iconClassName: k });
5137
+ }), T = hl({ mode: r, raw: s, iconClassName: k });
5116
5138
  return /* @__PURE__ */ E(
5117
5139
  pr,
5118
5140
  {
@@ -5131,7 +5153,7 @@ const sn = V.forwardRef(
5131
5153
  );
5132
5154
  }
5133
5155
  );
5134
- sn.displayName = "ButtonIcon";
5156
+ ln.displayName = "ButtonIcon";
5135
5157
  /*!
5136
5158
  @versini/ui-button v4.1.4
5137
5159
  © 2025 gizmette.com
@@ -5145,7 +5167,7 @@ try {
5145
5167
  });
5146
5168
  } catch {
5147
5169
  }
5148
- const hl = V.forwardRef(
5170
+ const bl = V.forwardRef(
5149
5171
  ({
5150
5172
  children: e,
5151
5173
  disabled: t = !1,
@@ -5167,7 +5189,7 @@ const hl = V.forwardRef(
5167
5189
  radius: y = "large",
5168
5190
  ...k
5169
5191
  }, w) => {
5170
- const _ = on({
5192
+ const _ = sn({
5171
5193
  type: bt,
5172
5194
  mode: r,
5173
5195
  focusMode: a,
@@ -5222,8 +5244,8 @@ const hl = V.forwardRef(
5222
5244
  ) });
5223
5245
  }
5224
5246
  );
5225
- hl.displayName = "ButtonSort";
5226
- const ln = ({
5247
+ bl.displayName = "ButtonSort";
5248
+ const cn = ({
5227
5249
  children: e,
5228
5250
  fill: t,
5229
5251
  viewBox: r,
@@ -5266,14 +5288,14 @@ try {
5266
5288
  });
5267
5289
  } catch {
5268
5290
  }
5269
- const pl = ({
5291
+ const yl = ({
5270
5292
  className: e,
5271
5293
  viewBox: t,
5272
5294
  title: r,
5273
5295
  monotone: a,
5274
5296
  ...n
5275
5297
  }) => /* @__PURE__ */ E(
5276
- ln,
5298
+ cn,
5277
5299
  {
5278
5300
  defaultViewBox: "0 0 448 512",
5279
5301
  size: "size-5",
@@ -5292,14 +5314,14 @@ const pl = ({
5292
5314
  /* @__PURE__ */ l("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
5293
5315
  ]
5294
5316
  }
5295
- ), bl = ({
5317
+ ), vl = ({
5296
5318
  className: e,
5297
5319
  viewBox: t,
5298
5320
  title: r,
5299
5321
  monotone: a,
5300
5322
  ...n
5301
5323
  }) => /* @__PURE__ */ l(
5302
- ln,
5324
+ cn,
5303
5325
  {
5304
5326
  defaultViewBox: "0 0 512 512",
5305
5327
  size: "size-5",
@@ -5323,30 +5345,30 @@ try {
5323
5345
  });
5324
5346
  } catch {
5325
5347
  }
5326
- const yl = ({
5348
+ const kl = ({
5327
5349
  kind: e,
5328
5350
  noMaxWidth: t
5329
5351
  }) => f("p-4", {
5330
5352
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
5331
5353
  "lg:max-w-3xl": e === "left" && !t
5332
- }), vl = ({ kind: e }) => f({
5354
+ }), xl = ({ kind: e }) => f({
5333
5355
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
5334
5356
  "bg-surface-accent": e === "right"
5335
- }), kl = ({ kind: e }) => f(
5357
+ }), wl = ({ kind: e }) => f(
5336
5358
  "prose prose-dark dark:prose-lighter prose-p:my-3 prose-blockquote:my-3 prose-ol:my-3 prose-ul:my-3 prose-ul:prose-li:marker:text-black",
5337
5359
  {
5338
5360
  "text-copy-lighter": e === "right"
5339
5361
  }
5340
- ), xl = ({ kind: e }) => f("rounded-b-xl", {
5362
+ ), _l = ({ kind: e }) => f("rounded-b-xl", {
5341
5363
  "rounded-tr-xl": e === "left",
5342
5364
  "rounded-tl-xl": e === "right"
5343
- }), wl = ({
5365
+ }), El = ({
5344
5366
  kind: e,
5345
5367
  className: t,
5346
5368
  noMaxWidth: r
5347
5369
  }) => {
5348
5370
  const a = f(
5349
- al,
5371
+ ol,
5350
5372
  "flex items-start",
5351
5373
  {
5352
5374
  "flex-row-reverse": e === "right"
@@ -5354,10 +5376,10 @@ const yl = ({
5354
5376
  t
5355
5377
  ), n = f(
5356
5378
  "flex flex-col empty:hidden",
5357
- yl({ kind: e, noMaxWidth: r }),
5358
- kl({ kind: e }),
5359
- vl({ kind: e }),
5360
- xl({ kind: e })
5379
+ kl({ kind: e, noMaxWidth: r }),
5380
+ wl({ kind: e }),
5381
+ xl({ kind: e }),
5382
+ _l({ kind: e })
5361
5383
  ), o = "pr-2 pt-1 text-end text-xs text-copy-light", i = f("flex flex-col-reverse gap-2 sm:flex-row", {
5362
5384
  "ml-2": e === "left",
5363
5385
  "mr-2": e === "right"
@@ -5368,7 +5390,7 @@ const yl = ({
5368
5390
  footer: o,
5369
5391
  copyButton: i
5370
5392
  };
5371
- }, _l = ({
5393
+ }, Tl = ({
5372
5394
  children: e,
5373
5395
  kind: t = "left",
5374
5396
  className: r,
@@ -5379,10 +5401,10 @@ const yl = ({
5379
5401
  copyToClipboardMode: s = "system",
5380
5402
  noMaxWidth: c = !1
5381
5403
  }) => {
5382
- const [d, h] = Z(!1), u = wl({ kind: t, className: r, noMaxWidth: c }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5404
+ const [d, h] = Z(!1), u = El({ kind: t, className: r, noMaxWidth: c }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5383
5405
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5384
5406
  };
5385
- return M(() => {
5407
+ return $(() => {
5386
5408
  let p;
5387
5409
  return d && (p = window.setTimeout(() => {
5388
5410
  h(!1);
@@ -5400,7 +5422,7 @@ const yl = ({
5400
5422
  n && n
5401
5423
  ] }),
5402
5424
  m && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
5403
- sn,
5425
+ ln,
5404
5426
  {
5405
5427
  noBorder: !0,
5406
5428
  noBackground: !0,
@@ -5410,11 +5432,11 @@ const yl = ({
5410
5432
  label: d ? "Copied to clipboard" : "Copy to clipboard",
5411
5433
  onClick: g,
5412
5434
  disabled: d,
5413
- children: d ? /* @__PURE__ */ l(pl, { size: "size-3" }) : /* @__PURE__ */ l(bl, { size: "size-3" })
5435
+ children: d ? /* @__PURE__ */ l(yl, { size: "size-3" }) : /* @__PURE__ */ l(vl, { size: "size-3" })
5414
5436
  }
5415
5437
  ) })
5416
5438
  ] });
5417
- }, ia = "av-button", br = "icon", yr = "button", Zt = "link", El = ({
5439
+ }, ia = "av-button", br = "icon", yr = "button", Zt = "link", Sl = ({
5418
5440
  type: e,
5419
5441
  size: t,
5420
5442
  labelRight: r,
@@ -5443,7 +5465,7 @@ const yl = ({
5443
5465
  "h-12 px-4": t === "large" && (r || a)
5444
5466
  });
5445
5467
  }
5446
- }, Tl = ({
5468
+ }, Nl = ({
5447
5469
  type: e,
5448
5470
  size: t,
5449
5471
  labelRight: r,
@@ -5466,7 +5488,7 @@ const yl = ({
5466
5488
  [i]: t === "large" && (r || a)
5467
5489
  });
5468
5490
  }
5469
- }, Sl = ({
5491
+ }, Cl = ({
5470
5492
  mode: e,
5471
5493
  noBackground: t,
5472
5494
  noTruncate: r,
@@ -5502,7 +5524,7 @@ const yl = ({
5502
5524
  return f("not-prose text-copy-lighter", {
5503
5525
  truncate: !r
5504
5526
  });
5505
- }, Nl = ({
5527
+ }, Rl = ({
5506
5528
  mode: e,
5507
5529
  noBackground: t,
5508
5530
  variant: r
@@ -5532,13 +5554,13 @@ const yl = ({
5532
5554
  if (r === "selected")
5533
5555
  return "bg-action-selected-dark";
5534
5556
  }
5535
- }, Cl = ({
5557
+ }, Il = ({
5536
5558
  radius: e
5537
5559
  }) => f({
5538
5560
  "rounded-full": e === "large",
5539
5561
  "rounded-md": e === "medium",
5540
5562
  "rounded-sm": e === "small"
5541
- }), Rl = ({
5563
+ }), Ll = ({
5542
5564
  mode: e,
5543
5565
  disabled: t,
5544
5566
  variant: r
@@ -5568,7 +5590,7 @@ const yl = ({
5568
5590
  });
5569
5591
  if (r === "selected")
5570
5592
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5571
- }, Il = ({
5593
+ }, Ol = ({
5572
5594
  mode: e,
5573
5595
  disabled: t,
5574
5596
  variant: r
@@ -5598,7 +5620,7 @@ const yl = ({
5598
5620
  });
5599
5621
  if (r === "selected")
5600
5622
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5601
- }, Ll = ({
5623
+ }, Al = ({
5602
5624
  mode: e,
5603
5625
  noBorder: t,
5604
5626
  variant: r
@@ -5628,14 +5650,14 @@ const yl = ({
5628
5650
  });
5629
5651
  if (r === "selected")
5630
5652
  return "border border-border-selected-dark";
5631
- }, Ol = ({
5653
+ }, $l = ({
5632
5654
  focusMode: e
5633
5655
  }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5634
5656
  "focus:outline-focus-dark": e === "dark",
5635
5657
  "focus:outline-focus-light": e === "light",
5636
5658
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5637
5659
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5638
- }), cn = ({
5660
+ }), dn = ({
5639
5661
  type: e,
5640
5662
  className: t,
5641
5663
  raw: r,
@@ -5654,32 +5676,32 @@ const yl = ({
5654
5676
  radius: b
5655
5677
  }) => (m || (m = "primary"), r ? f(ia, t) : f(
5656
5678
  ia,
5657
- Sl({
5679
+ Cl({
5658
5680
  mode: a,
5659
5681
  variant: m,
5660
5682
  noBackground: u,
5661
5683
  noTruncate: g
5662
5684
  }),
5663
- Nl({ mode: a, noBackground: u, variant: m }),
5664
- Cl({ radius: b }),
5665
- El({
5685
+ Rl({ mode: a, noBackground: u, variant: m }),
5686
+ Il({ radius: b }),
5687
+ Sl({
5666
5688
  type: e,
5667
5689
  size: s,
5668
5690
  labelRight: d,
5669
5691
  labelLeft: h,
5670
5692
  align: p
5671
5693
  }),
5672
- Tl({ type: e, size: s, labelRight: d, labelLeft: h }),
5673
- Ll({ mode: a, variant: m, noBorder: c }),
5674
- Ol({ focusMode: n }),
5675
- Rl({ mode: a, variant: m, disabled: o }),
5676
- Il({ mode: a, variant: m, disabled: o }),
5694
+ Nl({ type: e, size: s, labelRight: d, labelLeft: h }),
5695
+ Al({ mode: a, variant: m, noBorder: c }),
5696
+ $l({ focusMode: n }),
5697
+ Ll({ mode: a, variant: m, disabled: o }),
5698
+ Ol({ mode: a, variant: m, disabled: o }),
5677
5699
  {
5678
5700
  "w-full": i,
5679
5701
  "disabled:cursor-not-allowed disabled:opacity-50": o
5680
5702
  },
5681
5703
  t
5682
- )), Al = (e, t, r) => {
5704
+ )), Bl = (e, t, r) => {
5683
5705
  var a;
5684
5706
  !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);
5685
5707
  }, vr = V.forwardRef((e, t) => {
@@ -5689,14 +5711,14 @@ const yl = ({
5689
5711
  {
5690
5712
  ref: t,
5691
5713
  onClick: (o) => {
5692
- Al(o, a, r);
5714
+ Bl(o, a, r);
5693
5715
  },
5694
5716
  ...n
5695
5717
  }
5696
5718
  );
5697
5719
  });
5698
5720
  vr.displayName = "BaseButton";
5699
- const dn = V.forwardRef(
5721
+ const un = V.forwardRef(
5700
5722
  ({
5701
5723
  children: e,
5702
5724
  disabled: t = !1,
@@ -5712,7 +5734,7 @@ const dn = V.forwardRef(
5712
5734
  radius: u = "large",
5713
5735
  ...m
5714
5736
  }, g) => {
5715
- const p = cn({
5737
+ const p = dn({
5716
5738
  type: yr,
5717
5739
  mode: r,
5718
5740
  focusMode: a,
@@ -5738,7 +5760,7 @@ const dn = V.forwardRef(
5738
5760
  );
5739
5761
  }
5740
5762
  );
5741
- dn.displayName = "Button";
5763
+ un.displayName = "Button";
5742
5764
  /*!
5743
5765
  @versini/ui-button v4.1.4
5744
5766
  © 2025 gizmette.com
@@ -5752,7 +5774,7 @@ try {
5752
5774
  });
5753
5775
  } catch {
5754
5776
  }
5755
- const $l = V.forwardRef(
5777
+ const Ml = V.forwardRef(
5756
5778
  ({
5757
5779
  children: e,
5758
5780
  disabled: t = !1,
@@ -5774,7 +5796,7 @@ const $l = V.forwardRef(
5774
5796
  radius: y = "large",
5775
5797
  ...k
5776
5798
  }, w) => {
5777
- const _ = cn({
5799
+ const _ = dn({
5778
5800
  type: br,
5779
5801
  mode: r,
5780
5802
  focusMode: a,
@@ -5829,10 +5851,10 @@ const $l = V.forwardRef(
5829
5851
  ) });
5830
5852
  }
5831
5853
  );
5832
- $l.displayName = "ButtonSort";
5833
- const Bl = 200, Ml = ({
5854
+ Ml.displayName = "ButtonSort";
5855
+ const Vl = 200, Pl = ({
5834
5856
  string: e,
5835
- idealLength: t = Bl
5857
+ idealLength: t = Vl
5836
5858
  }) => {
5837
5859
  if (e.length <= t)
5838
5860
  return { string: e, isTruncated: !1 };
@@ -5843,7 +5865,7 @@ const Bl = 200, Ml = ({
5843
5865
  string: e.slice(0, t + r),
5844
5866
  isTruncated: !0
5845
5867
  };
5846
- }, Vl = ({
5868
+ }, Dl = ({
5847
5869
  children: e,
5848
5870
  length: t = 200,
5849
5871
  mode: r = "system",
@@ -5852,14 +5874,14 @@ const Bl = 200, Ml = ({
5852
5874
  const [n, o] = Z(!1);
5853
5875
  if (typeof e != "string")
5854
5876
  return e;
5855
- const { string: i, isTruncated: s } = Ml({
5877
+ const { string: i, isTruncated: s } = Pl({
5856
5878
  string: e,
5857
5879
  idealLength: t
5858
5880
  });
5859
5881
  return /* @__PURE__ */ E("span", { style: { wordBreak: "break-word" }, children: [
5860
5882
  n ? e : i,
5861
5883
  s && /* @__PURE__ */ l(
5862
- dn,
5884
+ un,
5863
5885
  {
5864
5886
  mode: r,
5865
5887
  focusMode: a,
@@ -5886,56 +5908,55 @@ try {
5886
5908
  });
5887
5909
  } catch {
5888
5910
  }
5889
- const sa = fa(
5911
+ const zl = ({ children: e }) => /* @__PURE__ */ l(
5912
+ Tl,
5913
+ {
5914
+ kind: "right",
5915
+ copyToClipboard: e,
5916
+ copyToClipboardFocusMode: "light",
5917
+ children: /* @__PURE__ */ l(Dl, { mode: "light", focusMode: "light", children: e })
5918
+ }
5919
+ ), sa = fa(
5890
5920
  () => import(
5891
5921
  /* webpackChunkName: "LazyMessageAssistant" */
5892
- "./MessageAssistant.DbPbEIeG.js"
5922
+ "./MessageAssistant.CusoDhOy.js"
5893
5923
  ).then((e) => e.MessageAssistant)
5894
- ), Pl = () => {
5924
+ ), Ul = () => {
5895
5925
  const { state: e } = z(de);
5896
5926
  return /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
5897
5927
  e && e.messages.length > 0 && e.messages.map((t, r) => {
5898
5928
  const { role: a, content: n, name: o, processingTime: i } = t.message;
5899
- return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(
5900
- _l,
5901
- {
5902
- kind: "right",
5903
- copyToClipboard: n,
5904
- copyToClipboardFocusMode: "light",
5905
- children: /* @__PURE__ */ l(Vl, { mode: "light", focusMode: "light", children: n })
5906
- },
5907
- `${r}-${a}`
5908
- ) : null;
5929
+ return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(zl, { children: n }, `${r}-${a}`) : null;
5909
5930
  }),
5910
- Nn($t, e) && /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { loading: !0 }) })
5931
+ Cn($t, e) && /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { loading: !0 }) })
5911
5932
  ] });
5912
- }, Dl = () => {
5913
- const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } = io(), a = Cn({
5933
+ }, Hl = () => {
5934
+ const { isAuthenticated: e } = Fe(), { ref: t, inViewport: r } = lo(), a = Rn({
5914
5935
  isAuthenticated: e,
5915
5936
  extraClass: "rounded-b-md"
5916
5937
  });
5917
5938
  return /* @__PURE__ */ E(ke, { children: [
5918
5939
  /* @__PURE__ */ E("div", { className: a, children: [
5919
- /* @__PURE__ */ l(Rn, {}),
5920
- /* @__PURE__ */ l(Pl, {}),
5940
+ /* @__PURE__ */ l(In, {}),
5941
+ /* @__PURE__ */ l(Ul, {}),
5921
5942
  /* @__PURE__ */ l("div", { ref: t })
5922
5943
  ] }),
5923
- /* @__PURE__ */ l(rl, { show: !r })
5944
+ /* @__PURE__ */ l(Ks, { show: !r })
5924
5945
  ] });
5925
- }, zl = fa(
5946
+ }, Fl = fa(
5926
5947
  () => import(
5927
5948
  /* webpackChunkName: "LazyHeader" */
5928
- "./HeaderToolbar.jkVrqvu1.js"
5949
+ "./index.BcqQB62k.js"
5929
5950
  )
5930
5951
  );
5931
- function un({ isComponent: e = !1 }) {
5952
+ function mn({ isComponent: e = !1 }) {
5932
5953
  const { user: t, getAccessToken: r } = Fe(), [a] = Mt({
5933
- key: At + Ln,
5954
+ key: At + On,
5934
5955
  initialValue: ""
5935
5956
  }), [n] = Mt({
5936
- key: At + On,
5957
+ key: At + An,
5937
5958
  initialValue: Be.ASC
5938
- }), [o, i] = wt(Po, {
5959
+ }), [o, i] = wt(zo, {
5939
5960
  id: or(),
5940
5961
  model: Te,
5941
5962
  engine: Te,
@@ -5943,15 +5964,15 @@ function un({ isComponent: e = !1 }) {
5943
5964
  messages: [],
5944
5965
  prompts: [],
5945
5966
  isComponent: e
5946
- }), [s, c] = wt(Do, {
5967
+ }), [s, c] = wt(Uo, {
5947
5968
  searchString: a,
5948
5969
  sortedCell: "timestamp",
5949
5970
  sortDirection: n
5950
- }), [d, h] = wt(zo, {
5971
+ }), [d, h] = wt(Ho, {
5951
5972
  prompt: "",
5952
5973
  lastTriggeredTimestamp: 0
5953
5974
  });
5954
- Ei({
5975
+ Si({
5955
5976
  keys: [
5956
5977
  t == null ? void 0 : t.username,
5957
5978
  s.searchString,
@@ -5959,18 +5980,18 @@ function un({ isComponent: e = !1 }) {
5959
5980
  0
5960
5981
  ],
5961
5982
  getAccessToken: r
5962
- }), Ti({ getAccessToken: r });
5983
+ }), Ni({ getAccessToken: r });
5963
5984
  const { data: u } = lr({
5964
5985
  keys: [t == null ? void 0 : t.username],
5965
5986
  getAccessToken: r
5966
5987
  });
5967
- return M(() => {
5988
+ return $(() => {
5968
5989
  var g;
5969
5990
  (g = document.getElementById("logo")) == null || g.classList.add("fadeOut"), setTimeout(() => {
5970
5991
  var p;
5971
5992
  (p = document.getElementById("root")) == null || p.classList.replace("app-hidden", "fadeIn");
5972
5993
  }, 500);
5973
- }), M(() => {
5994
+ }), $(() => {
5974
5995
  u && i({
5975
5996
  type: Ie,
5976
5997
  payload: {
@@ -5978,7 +5999,7 @@ function un({ isComponent: e = !1 }) {
5978
5999
  }
5979
6000
  });
5980
6001
  }, [u]), /* @__PURE__ */ l(de.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ l(
5981
- Ci.Provider,
6002
+ Ii.Provider,
5982
6003
  {
5983
6004
  value: {
5984
6005
  state: s,
@@ -5990,7 +6011,7 @@ function un({ isComponent: e = !1 }) {
5990
6011
  value: { state: d, dispatch: h },
5991
6012
  children: [
5992
6013
  /* @__PURE__ */ l(
5993
- to,
6014
+ ro,
5994
6015
  {
5995
6016
  noColors: !0,
5996
6017
  noMargin: !0,
@@ -5999,57 +6020,57 @@ function un({ isComponent: e = !1 }) {
5999
6020
  className: Or({
6000
6021
  extraClass: "mt-5"
6001
6022
  }),
6002
- children: /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(zl, {}) })
6023
+ children: /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(Fl, {}) })
6003
6024
  }
6004
6025
  ),
6005
6026
  /* @__PURE__ */ l(
6006
- In,
6027
+ Ln,
6007
6028
  {
6008
6029
  className: Or({
6009
6030
  extraClass: "max-h-[calc(100svh_-_250px)]"
6010
6031
  }),
6011
6032
  noMargin: !0,
6012
6033
  noPadding: !0,
6013
- children: /* @__PURE__ */ l(Dl, {})
6034
+ children: /* @__PURE__ */ l(Hl, {})
6014
6035
  }
6015
6036
  ),
6016
- /* @__PURE__ */ l(tl, { isComponent: e })
6037
+ /* @__PURE__ */ l(nl, { isComponent: e })
6017
6038
  ]
6018
6039
  }
6019
6040
  )
6020
6041
  }
6021
6042
  ) });
6022
6043
  }
6023
- un.displayName = "App";
6024
- const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: un }, Symbol.toStringTag, { value: "Module" }));
6044
+ mn.displayName = "App";
6045
+ const oc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: mn }, Symbol.toStringTag, { value: "Module" }));
6025
6046
  export {
6026
- rc as App,
6047
+ oc as App,
6027
6048
  de as AppContext,
6028
- Hs as ConfirmationPanel,
6049
+ Ws as ConfirmationPanel,
6029
6050
  Mt as E,
6030
- Ci as HistoryContext,
6031
- Us as Ie,
6032
- tc as P,
6051
+ Ii as HistoryContext,
6052
+ Fs as Ie,
6053
+ nc as P,
6033
6054
  ot as R,
6034
6055
  We as SERVICE_TYPES,
6035
6056
  Ke as _e,
6036
- Kl as be,
6057
+ Xl as be,
6037
6058
  Be as f,
6038
- jl as ge,
6039
- ql as he,
6040
- mo as i,
6041
- Ao as le,
6042
- _l as le$1,
6043
- Jn as m,
6044
- Yl as me,
6059
+ Yl as ge,
6060
+ Jl as he,
6061
+ fo as i,
6062
+ Bo as le,
6063
+ Tl as le$1,
6064
+ Xn as m,
6065
+ Zl as me,
6045
6066
  hr as me$1,
6046
6067
  Ar as p,
6047
- Va as serviceCall,
6048
- Jl as ue,
6049
- Ql as useChatsHistory,
6050
- ec as useServerCapabilities,
6051
- Zl as useUserChatStats,
6068
+ Pa as serviceCall,
6069
+ Ql as ue,
6070
+ rc as useChatsHistory,
6071
+ ac as useServerCapabilities,
6072
+ tc as useUserChatStats,
6052
6073
  lr as useUserPreferences,
6053
- Xl as ye,
6074
+ ec as ye,
6054
6075
  $r as z
6055
6076
  };