@versini/sassysaint 8.65.0 → 8.67.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.
Files changed (27) hide show
  1. package/dist/chunks/{AboutChangelog.CorY5_cf.js → AboutChangelog.DIAjD4IT.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DbUBoZ0p.js → AboutEntry.IN-KMi21.js} +5 -5
  3. package/dist/chunks/{App.BTLwEx8P.js → App.NiMe9pNP.js} +2851 -2633
  4. package/dist/chunks/{Chart.CIVqZENe.js → Chart.DURfI14K.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DIoDoupB.js → ChatBubbleAssistant.D3Jy0tBq.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.B5fK7VV1.js → ChatBubbleUser.CHV0_ZTg.js} +6 -6
  7. package/dist/chunks/{ChatHistoryTable.a9FQEOUj.js → ChatHistoryTable.BVo20jIZ.js} +13 -13
  8. package/dist/chunks/{HistoryEntry.BkIYzEt0.js → HistoryEntry.DNita81q.js} +15 -15
  9. package/dist/chunks/ProfileEntry.ChfpIWZB.js +181 -0
  10. package/dist/chunks/SettingsEntry.B6JLgzK6.js +794 -0
  11. package/dist/chunks/{Table.ZX_G6Gid.js → Table.B7UaKGm4.js} +6 -6
  12. package/dist/chunks/{UsageEntry.BpgYbTis.js → UsageEntry.DoXdRXoX.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.DL3YznLM.js → UserMemoriesPanel.pCNm16LV.js} +3 -3
  14. package/dist/chunks/{index.D3KZz7us.js → index.B84nSOH2.js} +8 -8
  15. package/dist/chunks/{index.COANJyXl.js → index.CSaM-Hzm.js} +647 -615
  16. package/dist/chunks/{index.BN9uKQ0g.js → index.CY7kVg7R.js} +1 -1
  17. package/dist/chunks/{index.BXOYKzMv.js → index.CZrhYvUR.js} +1 -1
  18. package/dist/chunks/{index.BlrdlKi3.js → index.D5B1yWxF.js} +2 -2
  19. package/dist/chunks/{index.BbJLHUaM.js → index.DPL6Jtij.js} +3 -3
  20. package/dist/chunks/{index.sXdv1yPR.js → index.DS3O7dDS.js} +1 -1
  21. package/dist/chunks/{useMarkdown.Bmuf0Pow.js → useMarkdown.zu1E3PyX.js} +10 -10
  22. package/dist/components/SassySaint/SassySaint.js +1 -1
  23. package/dist/index.js +4 -4
  24. package/dist/style.css +1 -1
  25. package/package.json +3 -3
  26. package/dist/chunks/ProfileEntry.Czn4D0CS.js +0 -158
  27. package/dist/chunks/SettingsEntry.Dlqjubr1.js +0 -776
@@ -1,6 +1,6 @@
1
1
  import { jsx as h, jsxs as q, Fragment as Rr } from "react/jsx-runtime";
2
2
  import * as H from "react";
3
- import ie, { createContext as Lt, useReducer as Cr, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as Hs, useContext as nt, useState as ne, useMemo as Qe, useId as Ks, useLayoutEffect as Ye, Suspense as Gs, lazy as Bs } from "react";
3
+ import ie, { createContext as Lt, useReducer as Cr, useCallback as Y, useRef as j, useEffect as W, useSyncExternalStore as Ks, useContext as nt, useState as ne, useMemo as Je, useId as Gs, useLayoutEffect as Ye, Suspense as Bs, lazy as Ws } from "react";
4
4
  import y from "clsx";
5
5
  var ke = class {
6
6
  constructor() {
@@ -18,7 +18,7 @@ var ke = class {
18
18
  }
19
19
  onUnsubscribe() {
20
20
  }
21
- }, Ws = {
21
+ }, qs = {
22
22
  // We need the wrapper function syntax below instead of direct references to
23
23
  // global setTimeout etc.
24
24
  //
@@ -33,14 +33,14 @@ var ke = class {
33
33
  clearTimeout: (e) => clearTimeout(e),
34
34
  setInterval: (e, t) => setInterval(e, t),
35
35
  clearInterval: (e) => clearInterval(e)
36
- }, qs = class {
36
+ }, js = class {
37
37
  // We cannot have TimeoutManager<T> as we must instantiate it with a concrete
38
38
  // type at app boot; and if we leave that type, then any new timer provider
39
39
  // would need to support ReturnType<typeof setTimeout>, which is infeasible.
40
40
  //
41
41
  // We settle for type safety for the TimeoutProvider type, and accept that
42
42
  // this class is unsafe internally to allow for extension.
43
- #e = Ws;
43
+ #e = qs;
44
44
  #t = !1;
45
45
  setTimeoutProvider(e) {
46
46
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
@@ -60,14 +60,14 @@ var ke = class {
60
60
  clearInterval(e) {
61
61
  this.#e.clearInterval(e);
62
62
  }
63
- }, fe = new qs();
64
- function js(e) {
63
+ }, fe = new js();
64
+ function Vs(e) {
65
65
  setTimeout(e, 0);
66
66
  }
67
67
  var me = typeof window > "u" || "Deno" in globalThis;
68
68
  function B() {
69
69
  }
70
- function Vs(e, t) {
70
+ function Qs(e, t) {
71
71
  return typeof e == "function" ? e(t) : e;
72
72
  }
73
73
  function _t(e) {
@@ -79,7 +79,7 @@ function Or(e, t) {
79
79
  function de(e, t) {
80
80
  return typeof e == "function" ? e(t) : e;
81
81
  }
82
- function J(e, t) {
82
+ function Q(e, t) {
83
83
  return typeof e == "function" ? e(t) : e;
84
84
  }
85
85
  function Xt(e, t) {
@@ -176,7 +176,7 @@ function Ct(e) {
176
176
  function tr(e) {
177
177
  return Object.prototype.toString.call(e) === "[object Object]";
178
178
  }
179
- function Qs(e) {
179
+ function Ys(e) {
180
180
  return new Promise((t) => {
181
181
  fe.setTimeout(t, e);
182
182
  });
@@ -197,11 +197,11 @@ function Ot(e, t, r) {
197
197
  }
198
198
  return t;
199
199
  }
200
- function Ys(e, t, r = 0) {
200
+ function zs(e, t, r = 0) {
201
201
  const s = [...e, t];
202
202
  return r && s.length > r ? s.slice(1) : s;
203
203
  }
204
- function zs(e, t, r = 0) {
204
+ function Xs(e, t, r = 0) {
205
205
  const s = [t, ...e];
206
206
  return r && s.length > r ? s.slice(0, -1) : s;
207
207
  }
@@ -214,7 +214,7 @@ function kr(e, t) {
214
214
  function Nr(e, t) {
215
215
  return typeof e == "function" ? e(...t) : !!e;
216
216
  }
217
- var Xs = class extends ke {
217
+ var Zs = class extends ke {
218
218
  #e;
219
219
  #t;
220
220
  #r;
@@ -251,7 +251,7 @@ var Xs = class extends ke {
251
251
  isFocused() {
252
252
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
253
253
  }
254
- }, Ft = new Xs();
254
+ }, Ft = new Zs();
255
255
  function kt() {
256
256
  let e, t;
257
257
  const r = new Promise((a, n) => {
@@ -274,13 +274,13 @@ function kt() {
274
274
  }), t(a);
275
275
  }, r;
276
276
  }
277
- var Zs = js;
278
- function ea() {
277
+ var ea = Vs;
278
+ function ta() {
279
279
  let e = [], t = 0, r = (o) => {
280
280
  o();
281
281
  }, s = (o) => {
282
282
  o();
283
- }, a = Zs;
283
+ }, a = ea;
284
284
  const n = (o) => {
285
285
  t ? e.push(o) : a(() => {
286
286
  r(o);
@@ -334,7 +334,7 @@ function ea() {
334
334
  }
335
335
  };
336
336
  }
337
- var $ = ea(), ta = class extends ke {
337
+ var $ = ta(), ra = class extends ke {
338
338
  #e = !0;
339
339
  #t;
340
340
  #r;
@@ -365,8 +365,8 @@ var $ = ea(), ta = class extends ke {
365
365
  isOnline() {
366
366
  return this.#e;
367
367
  }
368
- }, Ze = new ta();
369
- function ra(e) {
368
+ }, Ze = new ra();
369
+ function sa(e) {
370
370
  return Math.min(1e3 * 2 ** e, 3e4);
371
371
  }
372
372
  function Pr(e) {
@@ -411,12 +411,12 @@ function $r(e) {
411
411
  Promise.resolve(g).then(u).catch((E) => {
412
412
  if (n())
413
413
  return;
414
- const O = e.retry ?? (me ? 0 : 3), A = e.retryDelay ?? ra, K = typeof A == "function" ? A(r, E) : A, R = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, E);
414
+ const O = e.retry ?? (me ? 0 : 3), I = e.retryDelay ?? sa, K = typeof I == "function" ? I(r, E) : I, R = O === !0 || typeof O == "number" && r < O || typeof O == "function" && O(r, E);
415
415
  if (t || !R) {
416
416
  l(E);
417
417
  return;
418
418
  }
419
- r++, e.onFail?.(r, E), Qs(K).then(() => f() ? void 0 : m()).then(() => {
419
+ r++, e.onFail?.(r, E), Ys(K).then(() => f() ? void 0 : m()).then(() => {
420
420
  t ? l(E) : p();
421
421
  });
422
422
  });
@@ -451,7 +451,7 @@ var xr = class {
451
451
  clearGcTimeout() {
452
452
  this.#e && (fe.clearTimeout(this.#e), this.#e = void 0);
453
453
  }
454
- }, sa = class extends xr {
454
+ }, aa = class extends xr {
455
455
  #e;
456
456
  #t;
457
457
  #r;
@@ -504,7 +504,7 @@ var xr = class {
504
504
  }
505
505
  isActive() {
506
506
  return this.observers.some(
507
- (e) => J(e.options.enabled, this) !== !1
507
+ (e) => Q(e.options.enabled, this) !== !1
508
508
  );
509
509
  }
510
510
  isDisabled() {
@@ -747,7 +747,7 @@ function rr(e) {
747
747
  fetchStatus: "idle"
748
748
  };
749
749
  }
750
- var aa = class extends ke {
750
+ var na = class extends ke {
751
751
  constructor(e, t) {
752
752
  super(), this.options = t, this.#e = e, this.#n = null, this.#o = kt(), this.bindMethods(), this.setOptions(t);
753
753
  }
@@ -796,7 +796,7 @@ var aa = class extends ke {
796
796
  }
797
797
  setOptions(e) {
798
798
  const t = this.options, r = this.#t;
799
- if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof J(this.options.enabled, this.#t) != "boolean")
799
+ if (this.options = this.#e.defaultQueryOptions(e), this.options.enabled !== void 0 && typeof this.options.enabled != "boolean" && typeof this.options.enabled != "function" && typeof Q(this.options.enabled, this.#t) != "boolean")
800
800
  throw new Error(
801
801
  "Expected enabled to be a boolean or a callback that returns a boolean"
802
802
  );
@@ -811,13 +811,13 @@ var aa = class extends ke {
811
811
  r,
812
812
  this.options,
813
813
  t
814
- ) && this.#d(), this.updateResult(), s && (this.#t !== r || J(this.options.enabled, this.#t) !== J(t.enabled, this.#t) || de(this.options.staleTime, this.#t) !== de(t.staleTime, this.#t)) && this.#y();
814
+ ) && this.#d(), this.updateResult(), s && (this.#t !== r || Q(this.options.enabled, this.#t) !== Q(t.enabled, this.#t) || de(this.options.staleTime, this.#t) !== de(t.staleTime, this.#t)) && this.#y();
815
815
  const a = this.#g();
816
- s && (this.#t !== r || J(this.options.enabled, this.#t) !== J(t.enabled, this.#t) || a !== this.#c) && this.#b(a);
816
+ s && (this.#t !== r || Q(this.options.enabled, this.#t) !== Q(t.enabled, this.#t) || a !== this.#c) && this.#b(a);
817
817
  }
818
818
  getOptimisticResult(e) {
819
819
  const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
820
- return ia(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
820
+ return oa(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
821
821
  }
822
822
  getCurrentResult() {
823
823
  return this.#a;
@@ -877,7 +877,7 @@ var aa = class extends ke {
877
877
  return (typeof this.options.refetchInterval == "function" ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? !1;
878
878
  }
879
879
  #b(e) {
880
- this.#S(), this.#c = e, !(me || J(this.options.enabled, this.#t) === !1 || !_t(this.#c) || this.#c === 0) && (this.#u = fe.setInterval(() => {
880
+ this.#S(), this.#c = e, !(me || Q(this.options.enabled, this.#t) === !1 || !_t(this.#c) || this.#c === 0) && (this.#u = fe.setInterval(() => {
881
881
  (this.options.refetchIntervalInBackground || Ft.isFocused()) && this.#d();
882
882
  }, this.#c));
883
883
  }
@@ -924,12 +924,12 @@ var aa = class extends ke {
924
924
  this.#n = v;
925
925
  }
926
926
  this.#n && (m = this.#n, l = this.#h, p = Date.now(), g = "error");
927
- const E = d.fetchStatus === "fetching", O = g === "pending", A = g === "error", K = O && E, R = l !== void 0, C = {
927
+ const E = d.fetchStatus === "fetching", O = g === "pending", I = g === "error", K = O && E, R = l !== void 0, C = {
928
928
  status: g,
929
929
  fetchStatus: d.fetchStatus,
930
930
  isPending: O,
931
931
  isSuccess: g === "success",
932
- isError: A,
932
+ isError: I,
933
933
  isInitialLoading: K,
934
934
  isLoading: K,
935
935
  data: l,
@@ -943,21 +943,21 @@ var aa = class extends ke {
943
943
  isFetchedAfterMount: d.dataUpdateCount > c.dataUpdateCount || d.errorUpdateCount > c.errorUpdateCount,
944
944
  isFetching: E,
945
945
  isRefetching: E && !O,
946
- isLoadingError: A && !R,
946
+ isLoadingError: I && !R,
947
947
  isPaused: d.fetchStatus === "paused",
948
948
  isPlaceholderData: u,
949
- isRefetchError: A && R,
949
+ isRefetchError: I && R,
950
950
  isStale: Ht(e, t),
951
951
  refetch: this.refetch,
952
952
  promise: this.#o,
953
- isEnabled: J(t.enabled, e) !== !1
953
+ isEnabled: Q(t.enabled, e) !== !1
954
954
  };
955
955
  if (this.options.experimental_prefetchInRender) {
956
- const v = (I) => {
957
- C.status === "error" ? I.reject(C.error) : C.data !== void 0 && I.resolve(C.data);
956
+ const v = (A) => {
957
+ C.status === "error" ? A.reject(C.error) : C.data !== void 0 && A.resolve(C.data);
958
958
  }, x = () => {
959
- const I = this.#o = C.promise = kt();
960
- v(I);
959
+ const A = this.#o = C.promise = kt();
960
+ v(A);
961
961
  }, _ = this.#o;
962
962
  switch (_.status) {
963
963
  case "pending":
@@ -1015,26 +1015,26 @@ var aa = class extends ke {
1015
1015
  });
1016
1016
  }
1017
1017
  };
1018
- function na(e, t) {
1019
- return J(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1018
+ function ia(e, t) {
1019
+ return Q(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1020
1020
  }
1021
1021
  function sr(e, t) {
1022
- return na(e, t) || e.state.data !== void 0 && Pt(e, t, t.refetchOnMount);
1022
+ return ia(e, t) || e.state.data !== void 0 && Pt(e, t, t.refetchOnMount);
1023
1023
  }
1024
1024
  function Pt(e, t, r) {
1025
- if (J(t.enabled, e) !== !1 && de(t.staleTime, e) !== "static") {
1025
+ if (Q(t.enabled, e) !== !1 && de(t.staleTime, e) !== "static") {
1026
1026
  const s = typeof r == "function" ? r(e) : r;
1027
1027
  return s === "always" || s !== !1 && Ht(e, t);
1028
1028
  }
1029
1029
  return !1;
1030
1030
  }
1031
1031
  function ar(e, t, r, s) {
1032
- return (e !== t || J(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Ht(e, r);
1032
+ return (e !== t || Q(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Ht(e, r);
1033
1033
  }
1034
1034
  function Ht(e, t) {
1035
- return J(t.enabled, e) !== !1 && e.isStaleByTime(de(t.staleTime, e));
1035
+ return Q(t.enabled, e) !== !1 && e.isStaleByTime(de(t.staleTime, e));
1036
1036
  }
1037
- function ia(e, t) {
1037
+ function oa(e, t) {
1038
1038
  return !ze(e.getCurrentResult(), t);
1039
1039
  }
1040
1040
  function nr(e) {
@@ -1057,22 +1057,22 @@ function nr(e) {
1057
1057
  if (g == null && p.pages.length)
1058
1058
  return Promise.resolve(p);
1059
1059
  const O = (() => {
1060
- const Q = {
1060
+ const J = {
1061
1061
  client: t.client,
1062
1062
  queryKey: t.queryKey,
1063
1063
  pageParam: g,
1064
1064
  direction: b ? "backward" : "forward",
1065
1065
  meta: t.options.meta
1066
1066
  };
1067
- return u(Q), Q;
1068
- })(), A = await l(O), { maxPages: K } = t.options, R = b ? zs : Ys;
1067
+ return u(J), J;
1068
+ })(), I = await l(O), { maxPages: K } = t.options, R = b ? Xs : zs;
1069
1069
  return {
1070
- pages: R(p.pages, A, K),
1070
+ pages: R(p.pages, I, K),
1071
1071
  pageParams: R(p.pageParams, g, K)
1072
1072
  };
1073
1073
  };
1074
1074
  if (a && n.length) {
1075
- const p = a === "backward", g = p ? oa : ir, b = {
1075
+ const p = a === "backward", g = p ? ca : ir, b = {
1076
1076
  pages: n,
1077
1077
  pageParams: i
1078
1078
  }, E = g(s, b);
@@ -1110,10 +1110,10 @@ function ir(e, { pages: t, pageParams: r }) {
1110
1110
  r
1111
1111
  ) : void 0;
1112
1112
  }
1113
- function oa(e, { pages: t, pageParams: r }) {
1113
+ function ca(e, { pages: t, pageParams: r }) {
1114
1114
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
1115
1115
  }
1116
- var ca = class extends xr {
1116
+ var la = class extends xr {
1117
1117
  #e;
1118
1118
  #t;
1119
1119
  #r;
@@ -1329,7 +1329,7 @@ function Dr() {
1329
1329
  submittedAt: 0
1330
1330
  };
1331
1331
  }
1332
- var la = class extends ke {
1332
+ var ua = class extends ke {
1333
1333
  constructor(e = {}) {
1334
1334
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
1335
1335
  }
@@ -1337,7 +1337,7 @@ var la = class extends ke {
1337
1337
  #t;
1338
1338
  #r;
1339
1339
  build(e, t, r) {
1340
- const s = new ca({
1340
+ const s = new la({
1341
1341
  client: e,
1342
1342
  mutationCache: this,
1343
1343
  mutationId: ++this.#r,
@@ -1421,7 +1421,7 @@ var la = class extends ke {
1421
1421
  function Fe(e) {
1422
1422
  return e.options.scope?.id;
1423
1423
  }
1424
- var ua = class extends ke {
1424
+ var da = class extends ke {
1425
1425
  #e;
1426
1426
  #t = void 0;
1427
1427
  #r;
@@ -1504,7 +1504,7 @@ var ua = class extends ke {
1504
1504
  });
1505
1505
  });
1506
1506
  }
1507
- }, da = class extends ke {
1507
+ }, ha = class extends ke {
1508
1508
  constructor(e = {}) {
1509
1509
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1510
1510
  }
@@ -1512,7 +1512,7 @@ var ua = class extends ke {
1512
1512
  build(e, t, r) {
1513
1513
  const s = t.queryKey, a = t.queryHash ?? Ut(s, t);
1514
1514
  let n = this.get(a);
1515
- return n || (n = new sa({
1515
+ return n || (n = new aa({
1516
1516
  client: e,
1517
1517
  queryKey: s,
1518
1518
  queryHash: a,
@@ -1575,7 +1575,7 @@ var ua = class extends ke {
1575
1575
  });
1576
1576
  });
1577
1577
  }
1578
- }, ha = class {
1578
+ }, fa = class {
1579
1579
  #e;
1580
1580
  #t;
1581
1581
  #r;
@@ -1585,7 +1585,7 @@ var ua = class extends ke {
1585
1585
  #o;
1586
1586
  #n;
1587
1587
  constructor(e = {}) {
1588
- this.#e = e.queryCache || new da(), this.#t = e.mutationCache || new la(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1588
+ this.#e = e.queryCache || new ha(), this.#t = e.mutationCache || new ua(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1589
1589
  }
1590
1590
  mount() {
1591
1591
  this.#i++, this.#i === 1 && (this.#o = Ft.subscribe(async (e) => {
@@ -1627,7 +1627,7 @@ var ua = class extends ke {
1627
1627
  setQueryData(e, t, r) {
1628
1628
  const s = this.defaultQueryOptions({ queryKey: e }), n = this.#e.get(
1629
1629
  s.queryHash
1630
- )?.state.data, i = Vs(t, n);
1630
+ )?.state.data, i = Qs(t, n);
1631
1631
  if (i !== void 0)
1632
1632
  return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
1633
1633
  }
@@ -1785,13 +1785,13 @@ var ua = class extends ke {
1785
1785
  if (!t)
1786
1786
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1787
1787
  return t;
1788
- }, fa = ({
1788
+ }, ma = ({
1789
1789
  client: e,
1790
1790
  children: t
1791
1791
  }) => (H.useEffect(() => (e.mount(), () => {
1792
1792
  e.unmount();
1793
- }), [e]), /* @__PURE__ */ h(Lr.Provider, { value: e, children: t })), ma = H.createContext(!1), pa = () => H.useContext(ma);
1794
- function ya() {
1793
+ }), [e]), /* @__PURE__ */ h(Lr.Provider, { value: e, children: t })), pa = H.createContext(!1), ya = () => H.useContext(pa);
1794
+ function ga() {
1795
1795
  let e = !1;
1796
1796
  return {
1797
1797
  clearReset: () => {
@@ -1803,19 +1803,19 @@ function ya() {
1803
1803
  isReset: () => e
1804
1804
  };
1805
1805
  }
1806
- var ga = H.createContext(ya()), ba = () => H.useContext(ga), Ea = (e, t) => {
1806
+ var ba = H.createContext(ga()), Ea = () => H.useContext(ba), wa = (e, t) => {
1807
1807
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
1808
- }, wa = (e) => {
1808
+ }, Sa = (e) => {
1809
1809
  H.useEffect(() => {
1810
1810
  e.clearReset();
1811
1811
  }, [e]);
1812
- }, Sa = ({
1812
+ }, va = ({
1813
1813
  result: e,
1814
1814
  errorResetBoundary: t,
1815
1815
  throwOnError: r,
1816
1816
  query: s,
1817
1817
  suspense: a
1818
- }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Nr(r, [e.error, s])), va = (e) => {
1818
+ }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Nr(r, [e.error, s])), Ta = (e) => {
1819
1819
  if (e.suspense) {
1820
1820
  const r = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), s = e.staleTime;
1821
1821
  e.staleTime = typeof s == "function" ? (...a) => r(s(...a)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
@@ -1823,20 +1823,20 @@ var ga = H.createContext(ya()), ba = () => H.useContext(ga), Ea = (e, t) => {
1823
1823
  1e3
1824
1824
  ));
1825
1825
  }
1826
- }, Ta = (e, t) => e.isLoading && e.isFetching && !t, Aa = (e, t) => e?.suspense && t.isPending, or = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1826
+ }, Ia = (e, t) => e.isLoading && e.isFetching && !t, Aa = (e, t) => e?.suspense && t.isPending, or = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1827
1827
  r.clearReset();
1828
1828
  });
1829
- function Ia(e, t, r) {
1829
+ function _a(e, t, r) {
1830
1830
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1831
1831
  throw new Error(
1832
1832
  'Bad argument type. Starting with v5, only the "Object" form is allowed when calling query related functions. Please use the error stack to find the culprit call. More info here: https://tanstack.com/query/latest/docs/react/guides/migrating-to-v5#supports-a-single-signature-one-object'
1833
1833
  );
1834
- const s = pa(), a = ba(), n = it(), i = n.defaultQueryOptions(e);
1834
+ const s = ya(), a = Ea(), n = it(), i = n.defaultQueryOptions(e);
1835
1835
  n.getDefaultOptions().queries?._experimental_beforeQuery?.(
1836
1836
  i
1837
1837
  ), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
1838
1838
  `[${i.queryHash}]: No queryFn was passed as an option, and no default queryFn was found. The queryFn parameter is only optional when using a default queryFn. More info here: https://tanstack.com/query/latest/docs/framework/react/guides/default-query-function`
1839
- )), i._optimisticResults = s ? "isRestoring" : "optimistic", va(i), Ea(i, a), wa(a);
1839
+ )), i._optimisticResults = s ? "isRestoring" : "optimistic", Ta(i), wa(i, a), Sa(a);
1840
1840
  const o = !n.getQueryCache().get(i.queryHash), [c] = H.useState(
1841
1841
  () => new t(
1842
1842
  n,
@@ -1857,7 +1857,7 @@ function Ia(e, t, r) {
1857
1857
  c.setOptions(i);
1858
1858
  }, [i, c]), Aa(i, f))
1859
1859
  throw or(i, c, a);
1860
- if (Sa({
1860
+ if (va({
1861
1861
  result: f,
1862
1862
  errorResetBoundary: a,
1863
1863
  throwOnError: i.throwOnError,
@@ -1868,7 +1868,7 @@ function Ia(e, t, r) {
1868
1868
  return n.getDefaultOptions().queries?._experimental_afterQuery?.(
1869
1869
  i,
1870
1870
  f
1871
- ), i.experimental_prefetchInRender && !me && Ta(f, s) && (o ? (
1871
+ ), i.experimental_prefetchInRender && !me && Ia(f, s) && (o ? (
1872
1872
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1873
1873
  or(i, c, a)
1874
1874
  ) : (
@@ -1879,11 +1879,11 @@ function Ia(e, t, r) {
1879
1879
  }), i.notifyOnChangeProps ? f : c.trackResult(f);
1880
1880
  }
1881
1881
  function ye(e, t) {
1882
- return Ia(e, aa);
1882
+ return _a(e, na);
1883
1883
  }
1884
1884
  function Ur(e, t) {
1885
1885
  const r = it(), [s] = H.useState(
1886
- () => new ua(
1886
+ () => new da(
1887
1887
  r,
1888
1888
  e
1889
1889
  )
@@ -1935,7 +1935,7 @@ const Pe = {
1935
1935
  NONCE_KEY: "_nonce",
1936
1936
  AUTH_TYPE_KEY: "auth_type",
1937
1937
  ISSUER: "gizmette.com"
1938
- }, _a = `-----BEGIN PUBLIC KEY-----
1938
+ }, Ra = `-----BEGIN PUBLIC KEY-----
1939
1939
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
1940
1940
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
1941
1941
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -1949,7 +1949,7 @@ awIDAQAB
1949
1949
  LOGIN: "login",
1950
1950
  REFRESH: "refresh"
1951
1951
  }, He = new TextEncoder(), Ce = new TextDecoder();
1952
- function Ra(...e) {
1952
+ function Ca(...e) {
1953
1953
  const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
1954
1954
  let s = 0;
1955
1955
  for (const a of e)
@@ -2001,22 +2001,20 @@ let ge = class extends Error {
2001
2001
  constructor(t, r, s = "unspecified", a = "unspecified") {
2002
2002
  super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
2003
2003
  }
2004
- }, Ca = class extends ge {
2004
+ }, Oa = class extends ge {
2005
2005
  static code = "ERR_JOSE_ALG_NOT_ALLOWED";
2006
2006
  code = "ERR_JOSE_ALG_NOT_ALLOWED";
2007
2007
  }, ae = class extends ge {
2008
2008
  static code = "ERR_JOSE_NOT_SUPPORTED";
2009
2009
  code = "ERR_JOSE_NOT_SUPPORTED";
2010
- };
2011
- class L extends ge {
2010
+ }, L = class extends ge {
2012
2011
  static code = "ERR_JWS_INVALID";
2013
2012
  code = "ERR_JWS_INVALID";
2014
- }
2015
- let re = class extends ge {
2013
+ }, re = class extends ge {
2016
2014
  static code = "ERR_JWT_INVALID";
2017
2015
  code = "ERR_JWT_INVALID";
2018
2016
  };
2019
- class Oa extends ge {
2017
+ class ka extends ge {
2020
2018
  static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
2021
2019
  code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
2022
2020
  constructor(t = "signature verification failed", r) {
@@ -2032,7 +2030,7 @@ function Se(e, t) {
2032
2030
  function ft(e) {
2033
2031
  return parseInt(e.name.slice(4), 10);
2034
2032
  }
2035
- function ka(e) {
2033
+ function Na(e) {
2036
2034
  switch (e) {
2037
2035
  case "ES256":
2038
2036
  return "P-256";
@@ -2044,11 +2042,11 @@ function ka(e) {
2044
2042
  throw new Error("unreachable");
2045
2043
  }
2046
2044
  }
2047
- function Na(e, t) {
2045
+ function Pa(e, t) {
2048
2046
  if (!e.usages.includes(t))
2049
2047
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
2050
2048
  }
2051
- function Pa(e, t, r) {
2049
+ function $a(e, t, r) {
2052
2050
  switch (t) {
2053
2051
  case "HS256":
2054
2052
  case "HS384":
@@ -2098,7 +2096,7 @@ function Pa(e, t, r) {
2098
2096
  case "ES512": {
2099
2097
  if (!Se(e.algorithm, "ECDSA"))
2100
2098
  throw Z("ECDSA");
2101
- const s = ka(t);
2099
+ const s = Na(t);
2102
2100
  if (e.algorithm.namedCurve !== s)
2103
2101
  throw Z(s, "algorithm.namedCurve");
2104
2102
  break;
@@ -2106,7 +2104,7 @@ function Pa(e, t, r) {
2106
2104
  default:
2107
2105
  throw new TypeError("CryptoKey does not support this operation");
2108
2106
  }
2109
- Na(e, r);
2107
+ Pa(e, r);
2110
2108
  }
2111
2109
  function Kr(e, t, ...r) {
2112
2110
  if (r = r.filter(Boolean), r.length > 2) {
@@ -2115,7 +2113,7 @@ function Kr(e, t, ...r) {
2115
2113
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
2116
2114
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && t.constructor?.name && (e += ` Received an instance of ${t.constructor.name}`), e;
2117
2115
  }
2118
- const $a = (e, ...t) => Kr("Key must be ", e, ...t);
2116
+ const xa = (e, ...t) => Kr("Key must be ", e, ...t);
2119
2117
  function Gr(e, t, ...r) {
2120
2118
  return Kr(`Key for the ${e} algorithm must be `, t, ...r);
2121
2119
  }
@@ -2125,7 +2123,7 @@ function Br(e) {
2125
2123
  function Wr(e) {
2126
2124
  return e?.[Symbol.toStringTag] === "KeyObject";
2127
2125
  }
2128
- const qr = (e) => Br(e) || Wr(e), xa = (...e) => {
2126
+ const qr = (e) => Br(e) || Wr(e), Ma = (...e) => {
2129
2127
  const t = e.filter(Boolean);
2130
2128
  if (t.length === 0 || t.length === 1)
2131
2129
  return !0;
@@ -2144,11 +2142,11 @@ const qr = (e) => Br(e) || Wr(e), xa = (...e) => {
2144
2142
  }
2145
2143
  return !0;
2146
2144
  };
2147
- function Ma(e) {
2145
+ function Da(e) {
2148
2146
  return typeof e == "object" && e !== null;
2149
2147
  }
2150
2148
  const Me = (e) => {
2151
- if (!Ma(e) || Object.prototype.toString.call(e) !== "[object Object]")
2149
+ if (!Da(e) || Object.prototype.toString.call(e) !== "[object Object]")
2152
2150
  return !1;
2153
2151
  if (Object.getPrototypeOf(e) === null)
2154
2152
  return !0;
@@ -2156,7 +2154,7 @@ const Me = (e) => {
2156
2154
  for (; Object.getPrototypeOf(t) !== null; )
2157
2155
  t = Object.getPrototypeOf(t);
2158
2156
  return Object.getPrototypeOf(e) === t;
2159
- }, Da = (e, t) => {
2157
+ }, La = (e, t) => {
2160
2158
  if (e.startsWith("RS") || e.startsWith("PS")) {
2161
2159
  const { modulusLength: r } = t.algorithm;
2162
2160
  if (typeof r != "number" || r < 2048)
@@ -2169,7 +2167,7 @@ const Me = (e) => {
2169
2167
  if (e[r] !== t[r])
2170
2168
  return !1;
2171
2169
  return !0;
2172
- }, La = (e) => ({ data: e, pos: 0 }), et = (e) => {
2170
+ }, Ua = (e) => ({ data: e, pos: 0 }), et = (e) => {
2173
2171
  const t = e.data[e.pos++];
2174
2172
  if (t & 128) {
2175
2173
  const r = t & 127;
@@ -2185,18 +2183,18 @@ const Me = (e) => {
2185
2183
  }, jr = (e, t) => {
2186
2184
  const r = e.data.subarray(e.pos, e.pos + t);
2187
2185
  return e.pos += t, r;
2188
- }, Ua = (e) => {
2186
+ }, Fa = (e) => {
2189
2187
  tt(e, 6, "Expected algorithm OID");
2190
2188
  const t = et(e);
2191
2189
  return jr(e, t);
2192
2190
  };
2193
- function Fa(e) {
2191
+ function Ha(e) {
2194
2192
  tt(e, 48, "Invalid SPKI structure"), et(e), tt(e, 48, "Expected algorithm identifier");
2195
2193
  const t = et(e);
2196
2194
  return { algIdStart: e.pos, algIdLength: t };
2197
2195
  }
2198
- const Ha = (e) => {
2199
- const t = Ua(e);
2196
+ const Ka = (e) => {
2197
+ const t = Fa(e);
2200
2198
  if (mt(t, [43, 101, 110]))
2201
2199
  return "X25519";
2202
2200
  if (!mt(t, [42, 134, 72, 206, 61, 2, 1]))
@@ -2211,7 +2209,7 @@ const Ha = (e) => {
2211
2209
  if (mt(s, n))
2212
2210
  return a;
2213
2211
  throw new Error("Unsupported named curve");
2214
- }, Ka = async (e, t, r, s) => {
2212
+ }, Ga = async (e, t, r, s) => {
2215
2213
  let a, n;
2216
2214
  const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
2217
2215
  switch (r) {
@@ -2266,15 +2264,15 @@ const Ha = (e) => {
2266
2264
  throw new ae('Invalid or unsupported "alg" (Algorithm) value');
2267
2265
  }
2268
2266
  return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
2269
- }, Ga = (e, t) => Hr(e.replace(t, "")), Ba = (e, t, r) => {
2270
- const s = Ga(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2267
+ }, Ba = (e, t) => Hr(e.replace(t, "")), Wa = (e, t, r) => {
2268
+ const s = Ba(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2271
2269
  let a = r;
2272
2270
  return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
2273
- const i = La(n);
2274
- return Fa(i), Ha(i);
2275
- }), Ka("spki", s, t, a);
2271
+ const i = Ua(n);
2272
+ return Ha(i), Ka(i);
2273
+ }), Ga("spki", s, t, a);
2276
2274
  };
2277
- function Wa(e) {
2275
+ function qa(e) {
2278
2276
  let t, r;
2279
2277
  switch (e.kty) {
2280
2278
  case "AKP": {
@@ -2359,18 +2357,18 @@ function Wa(e) {
2359
2357
  }
2360
2358
  return { algorithm: t, keyUsages: r };
2361
2359
  }
2362
- const qa = async (e) => {
2360
+ const ja = async (e) => {
2363
2361
  if (!e.alg)
2364
2362
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
2365
- const { algorithm: t, keyUsages: r } = Wa(e), s = { ...e };
2363
+ const { algorithm: t, keyUsages: r } = qa(e), s = { ...e };
2366
2364
  return s.kty !== "AKP" && delete s.alg, delete s.use, crypto.subtle.importKey("jwk", s, t, e.ext ?? !(e.d || e.priv), e.key_ops ?? r);
2367
2365
  };
2368
- async function ja(e, t, r) {
2366
+ async function Va(e, t, r) {
2369
2367
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
2370
2368
  throw new TypeError('"spki" must be SPKI formatted string');
2371
- return Ba(e, t, r);
2369
+ return Wa(e, t, r);
2372
2370
  }
2373
- const Va = (e, t, r, s, a) => {
2371
+ const Qa = (e, t, r, s, a) => {
2374
2372
  if (a.crit !== void 0 && s?.crit === void 0)
2375
2373
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
2376
2374
  if (!s || s.crit === void 0)
@@ -2397,13 +2395,13 @@ const Va = (e, t, r, s, a) => {
2397
2395
  function Kt(e) {
2398
2396
  return Me(e) && typeof e.kty == "string";
2399
2397
  }
2400
- function Qa(e) {
2398
+ function Ya(e) {
2401
2399
  return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
2402
2400
  }
2403
- function Ya(e) {
2401
+ function za(e) {
2404
2402
  return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
2405
2403
  }
2406
- function za(e) {
2404
+ function Xa(e) {
2407
2405
  return e.kty === "oct" && typeof e.k == "string";
2408
2406
  }
2409
2407
  let Re;
@@ -2412,9 +2410,9 @@ const lr = async (e, t, r, s = !1) => {
2412
2410
  let a = Re.get(e);
2413
2411
  if (a?.[r])
2414
2412
  return a[r];
2415
- const n = await qa({ ...t, alg: r });
2413
+ const n = await ja({ ...t, alg: r });
2416
2414
  return s && Object.freeze(e), a ? a[r] = n : Re.set(e, { [r]: n }), n;
2417
- }, Xa = (e, t) => {
2415
+ }, Za = (e, t) => {
2418
2416
  Re ||= /* @__PURE__ */ new WeakMap();
2419
2417
  let r = Re.get(e);
2420
2418
  if (r?.[t])
@@ -2510,7 +2508,7 @@ const lr = async (e, t, r, s = !1) => {
2510
2508
  if (!n)
2511
2509
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
2512
2510
  return r ? r[t] = n : Re.set(e, { [t]: n }), n;
2513
- }, Za = async (e, t) => {
2511
+ }, en = async (e, t) => {
2514
2512
  if (e instanceof Uint8Array || Br(e))
2515
2513
  return e;
2516
2514
  if (Wr(e)) {
@@ -2518,7 +2516,7 @@ const lr = async (e, t, r, s = !1) => {
2518
2516
  return e.export();
2519
2517
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
2520
2518
  try {
2521
- return Xa(e, t);
2519
+ return Za(e, t);
2522
2520
  } catch (s) {
2523
2521
  if (s instanceof TypeError)
2524
2522
  throw s;
@@ -2572,10 +2570,10 @@ const lr = async (e, t, r, s = !1) => {
2572
2570
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
2573
2571
  }
2574
2572
  return !0;
2575
- }, en = (e, t, r) => {
2573
+ }, tn = (e, t, r) => {
2576
2574
  if (!(t instanceof Uint8Array)) {
2577
2575
  if (Kt(t)) {
2578
- if (za(t) && $t(e, t, r))
2576
+ if (Xa(t) && $t(e, t, r))
2579
2577
  return;
2580
2578
  throw new TypeError('JSON Web Key for symmetric algorithms must have JWK "kty" (Key Type) equal to "oct" and the JWK "k" (Key Value) present');
2581
2579
  }
@@ -2584,17 +2582,17 @@ const lr = async (e, t, r, s = !1) => {
2584
2582
  if (t.type !== "secret")
2585
2583
  throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
2586
2584
  }
2587
- }, tn = (e, t, r) => {
2585
+ }, rn = (e, t, r) => {
2588
2586
  if (Kt(t))
2589
2587
  switch (r) {
2590
2588
  case "decrypt":
2591
2589
  case "sign":
2592
- if (Qa(t) && $t(e, t, r))
2590
+ if (Ya(t) && $t(e, t, r))
2593
2591
  return;
2594
2592
  throw new TypeError("JSON Web Key for this operation be a private JWK");
2595
2593
  case "encrypt":
2596
2594
  case "verify":
2597
- if (Ya(t) && $t(e, t, r))
2595
+ if (za(t) && $t(e, t, r))
2598
2596
  return;
2599
2597
  throw new TypeError("JSON Web Key for this operation be a public JWK");
2600
2598
  }
@@ -2616,9 +2614,9 @@ const lr = async (e, t, r, s = !1) => {
2616
2614
  case "encrypt":
2617
2615
  throw new TypeError(`${_e(t)} instances for asymmetric algorithm encryption must be of type "public"`);
2618
2616
  }
2619
- }, rn = (e, t, r) => {
2620
- e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? en(e, t, r) : tn(e, t, r);
2621
- }, sn = (e, t) => {
2617
+ }, sn = (e, t, r) => {
2618
+ e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? tn(e, t, r) : rn(e, t, r);
2619
+ }, an = (e, t) => {
2622
2620
  const r = `SHA-${e.slice(-3)}`;
2623
2621
  switch (e) {
2624
2622
  case "HS256":
@@ -2647,24 +2645,24 @@ const lr = async (e, t, r, s = !1) => {
2647
2645
  default:
2648
2646
  throw new ae(`alg ${e} is not supported either by JOSE or your javascript runtime`);
2649
2647
  }
2650
- }, an = async (e, t, r) => {
2648
+ }, nn = async (e, t, r) => {
2651
2649
  if (t instanceof Uint8Array) {
2652
2650
  if (!e.startsWith("HS"))
2653
- throw new TypeError($a(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2651
+ throw new TypeError(xa(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2654
2652
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
2655
2653
  }
2656
- return Pa(t, e, r), t;
2657
- }, nn = async (e, t, r, s) => {
2658
- const a = await an(e, t, "verify");
2659
- Da(e, a);
2660
- const n = sn(e, a.algorithm);
2654
+ return $a(t, e, r), t;
2655
+ }, on = async (e, t, r, s) => {
2656
+ const a = await nn(e, t, "verify");
2657
+ La(e, a);
2658
+ const n = an(e, a.algorithm);
2661
2659
  try {
2662
2660
  return await crypto.subtle.verify(n, a, r, s);
2663
2661
  } catch {
2664
2662
  return !1;
2665
2663
  }
2666
2664
  };
2667
- async function on(e, t, r) {
2665
+ async function cn(e, t, r) {
2668
2666
  if (!Me(e))
2669
2667
  throw new L("Flattened JWS must be an object");
2670
2668
  if (e.protected === void 0 && e.header === void 0)
@@ -2685,12 +2683,12 @@ async function on(e, t, r) {
2685
2683
  } catch {
2686
2684
  throw new L("JWS Protected Header is invalid");
2687
2685
  }
2688
- if (!xa(s, e.header))
2686
+ if (!Ma(s, e.header))
2689
2687
  throw new L("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
2690
2688
  const a = {
2691
2689
  ...s,
2692
2690
  ...e.header
2693
- }, n = Va(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2691
+ }, n = Qa(L, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2694
2692
  let i = !0;
2695
2693
  if (n.has("b64") && (i = s.b64, typeof i != "boolean"))
2696
2694
  throw new L('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
@@ -2699,24 +2697,24 @@ async function on(e, t, r) {
2699
2697
  throw new L('JWS "alg" (Algorithm) Header Parameter missing or invalid');
2700
2698
  const c = r && Ja("algorithms", r.algorithms);
2701
2699
  if (c && !c.has(o))
2702
- throw new Ca('"alg" (Algorithm) Header Parameter value not allowed');
2700
+ throw new Oa('"alg" (Algorithm) Header Parameter value not allowed');
2703
2701
  if (i) {
2704
2702
  if (typeof e.payload != "string")
2705
2703
  throw new L("JWS Payload must be a string");
2706
2704
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
2707
2705
  throw new L("JWS Payload must be a string or an Uint8Array instance");
2708
2706
  let f = !1;
2709
- typeof t == "function" && (t = await t(s, e), f = !0), rn(o, t, "verify");
2710
- const d = Ra(He.encode(e.protected ?? ""), He.encode("."), typeof e.payload == "string" ? He.encode(e.payload) : e.payload);
2707
+ typeof t == "function" && (t = await t(s, e), f = !0), sn(o, t, "verify");
2708
+ const d = Ca(He.encode(e.protected ?? ""), He.encode("."), typeof e.payload == "string" ? He.encode(e.payload) : e.payload);
2711
2709
  let u;
2712
2710
  try {
2713
2711
  u = $e(e.signature);
2714
2712
  } catch {
2715
2713
  throw new L("Failed to base64url decode the signature");
2716
2714
  }
2717
- const l = await Za(t, o);
2718
- if (!await nn(o, l, u, d))
2719
- throw new Oa();
2715
+ const l = await en(t, o);
2716
+ if (!await on(o, l, u, d))
2717
+ throw new ka();
2720
2718
  let m;
2721
2719
  if (i)
2722
2720
  try {
@@ -2728,17 +2726,17 @@ async function on(e, t, r) {
2728
2726
  const p = { payload: m };
2729
2727
  return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
2730
2728
  }
2731
- async function cn(e, t, r) {
2729
+ async function ln(e, t, r) {
2732
2730
  if (e instanceof Uint8Array && (e = Ce.decode(e)), typeof e != "string")
2733
2731
  throw new L("Compact JWS must be a string or Uint8Array");
2734
2732
  const { 0: s, 1: a, 2: n, length: i } = e.split(".");
2735
2733
  if (i !== 3)
2736
2734
  throw new L("Invalid Compact JWS");
2737
- const o = await on({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2735
+ const o = await cn({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2738
2736
  return typeof t == "function" ? { ...c, key: o.key } : c;
2739
2737
  }
2740
- const ln = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Jr = Vr * 60, Gt = Jr * 24, un = Gt * 7, dn = Gt * 365.25, hn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ur = (e) => {
2741
- const t = hn.exec(e);
2738
+ const un = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Qr = Vr * 60, Gt = Qr * 24, dn = Gt * 7, hn = Gt * 365.25, fn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, ur = (e) => {
2739
+ const t = fn.exec(e);
2742
2740
  if (!t || t[4] && t[1])
2743
2741
  throw new TypeError("Invalid time period format");
2744
2742
  const r = parseFloat(t[2]), s = t[3].toLowerCase();
@@ -2763,7 +2761,7 @@ const ln = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Jr = Vr * 60, Gt = Jr
2763
2761
  case "hr":
2764
2762
  case "hrs":
2765
2763
  case "h":
2766
- a = Math.round(r * Jr);
2764
+ a = Math.round(r * Qr);
2767
2765
  break;
2768
2766
  case "day":
2769
2767
  case "days":
@@ -2773,15 +2771,15 @@ const ln = (e) => Math.floor(e.getTime() / 1e3), Vr = 60, Jr = Vr * 60, Gt = Jr
2773
2771
  case "week":
2774
2772
  case "weeks":
2775
2773
  case "w":
2776
- a = Math.round(r * un);
2774
+ a = Math.round(r * dn);
2777
2775
  break;
2778
2776
  default:
2779
- a = Math.round(r * dn);
2777
+ a = Math.round(r * hn);
2780
2778
  break;
2781
2779
  }
2782
2780
  return t[1] === "-" || t[4] === "ago" ? -a : a;
2783
- }, dr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, fn = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2784
- function mn(e, t, r = {}) {
2781
+ }, dr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, mn = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2782
+ function pn(e, t, r = {}) {
2785
2783
  let s;
2786
2784
  try {
2787
2785
  s = JSON.parse(Ce.decode(t));
@@ -2801,7 +2799,7 @@ function mn(e, t, r = {}) {
2801
2799
  throw new X('unexpected "iss" claim value', s, "iss", "check_failed");
2802
2800
  if (o && s.sub !== o)
2803
2801
  throw new X('unexpected "sub" claim value', s, "sub", "check_failed");
2804
- if (c && !fn(s.aud, typeof c == "string" ? [c] : c))
2802
+ if (c && !mn(s.aud, typeof c == "string" ? [c] : c))
2805
2803
  throw new X('unexpected "aud" claim value', s, "aud", "check_failed");
2806
2804
  let u;
2807
2805
  switch (typeof r.clockTolerance) {
@@ -2817,7 +2815,7 @@ function mn(e, t, r = {}) {
2817
2815
  default:
2818
2816
  throw new TypeError("Invalid clockTolerance option type");
2819
2817
  }
2820
- const { currentDate: l } = r, m = ln(l || /* @__PURE__ */ new Date());
2818
+ const { currentDate: l } = r, m = un(l || /* @__PURE__ */ new Date());
2821
2819
  if ((s.iat !== void 0 || f) && typeof s.iat != "number")
2822
2820
  throw new X('"iat" claim must be a number', s, "iat", "invalid");
2823
2821
  if (s.nbf !== void 0) {
@@ -2841,14 +2839,14 @@ function mn(e, t, r = {}) {
2841
2839
  }
2842
2840
  return s;
2843
2841
  }
2844
- async function pn(e, t, r) {
2845
- const s = await cn(e, t, r);
2842
+ async function yn(e, t, r) {
2843
+ const s = await ln(e, t, r);
2846
2844
  if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
2847
2845
  throw new re("JWTs MUST NOT use unencoded payload");
2848
- const a = { payload: mn(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2846
+ const a = { payload: pn(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2849
2847
  return typeof t == "function" ? { ...a, key: s.key } : a;
2850
2848
  }
2851
- function yn(e) {
2849
+ function gn(e) {
2852
2850
  if (typeof e != "string")
2853
2851
  throw new re("JWTs must use Compact JWS serialization, JWT must be a string");
2854
2852
  const { 1: t, length: r } = e.split(".");
@@ -2876,46 +2874,46 @@ function yn(e) {
2876
2874
  }
2877
2875
  const De = async (e) => {
2878
2876
  try {
2879
- const t = F.ALG, r = await ja(_a, t);
2880
- return await pn(e, r, {
2877
+ const t = F.ALG, r = await Va(Ra, t);
2878
+ return await yn(e, r, {
2881
2879
  issuer: F.ISSUER
2882
2880
  });
2883
2881
  } catch {
2884
2882
  return;
2885
2883
  }
2886
- }, gn = (e) => {
2884
+ }, bn = (e) => {
2887
2885
  try {
2888
- return yn(e);
2886
+ return gn(e);
2889
2887
  } catch {
2890
2888
  return;
2891
2889
  }
2892
2890
  }, M = [];
2893
2891
  for (let e = 0; e < 256; ++e)
2894
2892
  M.push((e + 256).toString(16).slice(1));
2895
- function bn(e, t = 0) {
2893
+ function En(e, t = 0) {
2896
2894
  return (M[e[t + 0]] + M[e[t + 1]] + M[e[t + 2]] + M[e[t + 3]] + "-" + M[e[t + 4]] + M[e[t + 5]] + "-" + M[e[t + 6]] + M[e[t + 7]] + "-" + M[e[t + 8]] + M[e[t + 9]] + "-" + M[e[t + 10]] + M[e[t + 11]] + M[e[t + 12]] + M[e[t + 13]] + M[e[t + 14]] + M[e[t + 15]]).toLowerCase();
2897
2895
  }
2898
2896
  let pt;
2899
- const En = new Uint8Array(16);
2900
- function wn() {
2897
+ const wn = new Uint8Array(16);
2898
+ function Sn() {
2901
2899
  if (!pt) {
2902
2900
  if (typeof crypto > "u" || !crypto.getRandomValues)
2903
2901
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2904
2902
  pt = crypto.getRandomValues.bind(crypto);
2905
2903
  }
2906
- return pt(En);
2904
+ return pt(wn);
2907
2905
  }
2908
- const Sn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hr = { randomUUID: Sn };
2906
+ const vn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), hr = { randomUUID: vn };
2909
2907
  function fr(e, t, r) {
2910
2908
  if (hr.randomUUID && !e)
2911
2909
  return hr.randomUUID();
2912
2910
  e = e || {};
2913
- const s = e.random ?? e.rng?.() ?? wn();
2911
+ const s = e.random ?? e.rng?.() ?? Sn();
2914
2912
  if (s.length < 16)
2915
2913
  throw new Error("Random bytes length must be >= 16");
2916
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, bn(s);
2914
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, En(s);
2917
2915
  }
2918
- const mr = globalThis.crypto, vn = (e) => `${fr()}${fr()}`.slice(0, e), Tn = (e) => btoa(
2916
+ const mr = globalThis.crypto, Tn = (e) => `${fr()}${fr()}`.slice(0, e), In = (e) => btoa(
2919
2917
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
2920
2918
  );
2921
2919
  async function An(e) {
@@ -2924,17 +2922,17 @@ async function An(e) {
2924
2922
  "crypto.subtle is available only in secure contexts (HTTPS)."
2925
2923
  );
2926
2924
  const t = new TextEncoder().encode(e), r = await mr.subtle.digest("SHA-256", t);
2927
- return Tn(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2925
+ return In(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2928
2926
  }
2929
- async function In(e) {
2930
- const r = vn(43), s = await An(r);
2927
+ async function _n(e) {
2928
+ const r = Tn(43), s = await An(r);
2931
2929
  return {
2932
2930
  code_verifier: r,
2933
2931
  code_challenge: s
2934
2932
  };
2935
2933
  }
2936
- const Qr = Lt(null);
2937
- var _n = Object.defineProperty, Rn = (e, t, r) => t in e ? _n(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t, r) => Rn(e, typeof t != "symbol" ? t + "" : t, r);
2934
+ const Jr = Lt(null);
2935
+ var Rn = Object.defineProperty, Cn = (e, t, r) => t in e ? Rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, yt = (e, t, r) => Cn(e, typeof t != "symbol" ? t + "" : t, r);
2938
2936
  /*!
2939
2937
  @versini/auth-provider v8.0.5
2940
2938
  © 2025 gizmette.com
@@ -2962,9 +2960,9 @@ function rt(e) {
2962
2960
  return n;
2963
2961
  }
2964
2962
  function Bt() {
2965
- return Cn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2963
+ return On.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2966
2964
  }
2967
- const Cn = {
2965
+ const On = {
2968
2966
  stubThis: (e) => e
2969
2967
  };
2970
2968
  function Yr(e) {
@@ -2996,7 +2994,7 @@ let U = class extends Error {
2996
2994
  }), this.name = a ?? s.name, this.code = r;
2997
2995
  }
2998
2996
  };
2999
- function On({ error: e, options: t }) {
2997
+ function kn({ error: e, options: t }) {
3000
2998
  const { publicKey: r } = t;
3001
2999
  if (!r)
3002
3000
  throw Error("options was missing required publicKey property");
@@ -3082,7 +3080,7 @@ function On({ error: e, options: t }) {
3082
3080
  }
3083
3081
  return e;
3084
3082
  }
3085
- class kn {
3083
+ class Nn {
3086
3084
  constructor() {
3087
3085
  Object.defineProperty(this, "controller", {
3088
3086
  enumerable: !0,
@@ -3106,12 +3104,12 @@ class kn {
3106
3104
  }
3107
3105
  }
3108
3106
  }
3109
- const Xr = new kn(), Nn = ["cross-platform", "platform"];
3107
+ const Xr = new Nn(), Pn = ["cross-platform", "platform"];
3110
3108
  function Zr(e) {
3111
- if (e && !(Nn.indexOf(e) < 0))
3109
+ if (e && !(Pn.indexOf(e) < 0))
3112
3110
  return e;
3113
3111
  }
3114
- async function Pn(e) {
3112
+ async function $n(e) {
3115
3113
  !e.optionsJSON && e.challenge && (console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
3116
3114
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
3117
3115
  if (!Bt())
@@ -3130,7 +3128,7 @@ async function Pn(e) {
3130
3128
  try {
3131
3129
  n = await navigator.credentials.create(a);
3132
3130
  } catch (p) {
3133
- throw On({ error: p, options: a });
3131
+ throw kn({ error: p, options: a });
3134
3132
  }
3135
3133
  if (!n)
3136
3134
  throw new Error("Registration was not completed");
@@ -3179,7 +3177,7 @@ function gt(e, t) {
3179
3177
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
3180
3178
  `, t);
3181
3179
  }
3182
- function $n() {
3180
+ function xn() {
3183
3181
  if (!Bt())
3184
3182
  return bt.stubThis(new Promise((t) => t(!1)));
3185
3183
  const e = globalThis.PublicKeyCredential;
@@ -3188,7 +3186,7 @@ function $n() {
3188
3186
  const bt = {
3189
3187
  stubThis: (e) => e
3190
3188
  };
3191
- function xn({ error: e, options: t }) {
3189
+ function Mn({ error: e, options: t }) {
3192
3190
  const { publicKey: r } = t;
3193
3191
  if (!r)
3194
3192
  throw Error("options was missing required publicKey property");
@@ -3229,7 +3227,7 @@ function xn({ error: e, options: t }) {
3229
3227
  }
3230
3228
  return e;
3231
3229
  }
3232
- async function Mn(e) {
3230
+ async function Dn(e) {
3233
3231
  !e.optionsJSON && e.challenge && (console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."), e = { optionsJSON: e });
3234
3232
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
3235
3233
  if (!Bt())
@@ -3242,7 +3240,7 @@ async function Mn(e) {
3242
3240
  allowCredentials: a
3243
3241
  }, i = {};
3244
3242
  if (r) {
3245
- if (!await $n())
3243
+ if (!await xn())
3246
3244
  throw Error("Browser does not support WebAuthn autofill");
3247
3245
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
3248
3246
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
@@ -3253,7 +3251,7 @@ async function Mn(e) {
3253
3251
  try {
3254
3252
  o = await navigator.credentials.get(i);
3255
3253
  } catch (m) {
3256
- throw xn({ error: m, options: i });
3254
+ throw Mn({ error: m, options: i });
3257
3255
  }
3258
3256
  if (!o)
3259
3257
  throw new Error("Authentication was not completed");
@@ -3281,18 +3279,18 @@ const pr = (e, t) => {
3281
3279
  typeof t == "function" ? t() : t
3282
3280
  );
3283
3281
  window.localStorage.setItem(e, r), es(e, r);
3284
- }, Dn = (e) => {
3282
+ }, Ln = (e) => {
3285
3283
  window.localStorage.removeItem(e), es(e, null);
3286
- }, yr = (e) => window.localStorage.getItem(e), Ln = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3284
+ }, yr = (e) => window.localStorage.getItem(e), Un = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3287
3285
  function Ke({
3288
3286
  key: e,
3289
3287
  initialValue: t
3290
3288
  }) {
3291
- const r = Hs(Ln, () => yr(e)), s = Y(
3289
+ const r = Ks(Un, () => yr(e)), s = Y(
3292
3290
  (i) => {
3293
3291
  try {
3294
3292
  const o = typeof i == "function" ? i(JSON.parse(r)) : i;
3295
- o == null ? Dn(e) : pr(e, o);
3293
+ o == null ? Ln(e) : pr(e, o);
3296
3294
  } catch (o) {
3297
3295
  console.warn(o);
3298
3296
  }
@@ -3314,30 +3312,30 @@ function Ke({
3314
3312
  const D = [];
3315
3313
  for (let e = 0; e < 256; ++e)
3316
3314
  D.push((e + 256).toString(16).slice(1));
3317
- function Un(e, t = 0) {
3315
+ function Fn(e, t = 0) {
3318
3316
  return (D[e[t + 0]] + D[e[t + 1]] + D[e[t + 2]] + D[e[t + 3]] + "-" + D[e[t + 4]] + D[e[t + 5]] + "-" + D[e[t + 6]] + D[e[t + 7]] + "-" + D[e[t + 8]] + D[e[t + 9]] + "-" + D[e[t + 10]] + D[e[t + 11]] + D[e[t + 12]] + D[e[t + 13]] + D[e[t + 14]] + D[e[t + 15]]).toLowerCase();
3319
3317
  }
3320
3318
  let Et;
3321
- const Fn = new Uint8Array(16);
3322
- function Hn() {
3319
+ const Hn = new Uint8Array(16);
3320
+ function Kn() {
3323
3321
  if (!Et) {
3324
3322
  if (typeof crypto > "u" || !crypto.getRandomValues)
3325
3323
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3326
3324
  Et = crypto.getRandomValues.bind(crypto);
3327
3325
  }
3328
- return Et(Fn);
3326
+ return Et(Hn);
3329
3327
  }
3330
- const Kn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gr = { randomUUID: Kn };
3328
+ const Gn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gr = { randomUUID: Gn };
3331
3329
  function wt(e, t, r) {
3332
3330
  if (gr.randomUUID && !e)
3333
3331
  return gr.randomUUID();
3334
3332
  e = e || {};
3335
- const s = e.random ?? e.rng?.() ?? Hn();
3333
+ const s = e.random ?? e.rng?.() ?? Kn();
3336
3334
  if (s.length < 16)
3337
3335
  throw new Error("Random bytes length must be >= 16");
3338
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Un(s);
3336
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Fn(s);
3339
3337
  }
3340
- const ve = "Your session has expired. For your security, please log in again to continue.", Gn = "Your session has been successfully terminated.", St = "Login failed. Please try again.", Bn = "Error getting access token, please re-authenticate.", Wn = "You forgot to wrap your component in <AuthProvider>.", Ge = "@@auth@@", Ne = "LOADING", je = "LOGIN", ts = "LOGOUT", Le = "success", te = "failure", rs = "include", ss = "POST", as = "application/json", Be = {
3338
+ const ve = "Your session has expired. For your security, please log in again to continue.", Bn = "Your session has been successfully terminated.", St = "Login failed. Please try again.", Wn = "Error getting access token, please re-authenticate.", qn = "You forgot to wrap your component in <AuthProvider>.", Ge = "@@auth@@", Ne = "LOADING", je = "LOGIN", ts = "LOGOUT", Le = "success", te = "failure", rs = "include", ss = "POST", as = "application/json", Be = {
3341
3339
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
3342
3340
  $clientId: String!,
3343
3341
  $username: String!,
@@ -3435,7 +3433,7 @@ const ve = "Your session has expired. For your security, please log in again to
3435
3433
  schema: Be.VERIFY_AUTHENTICATION,
3436
3434
  method: "verifyPasskeyAuthentication"
3437
3435
  }
3438
- }, Ae = async ({
3436
+ }, Ie = async ({
3439
3437
  accessToken: e,
3440
3438
  type: t,
3441
3439
  clientId: r,
@@ -3492,16 +3490,16 @@ const ve = "Your session has expired. For your security, please log in again to
3492
3490
  } catch (a) {
3493
3491
  return console.error(a), { status: te, data: [] };
3494
3492
  }
3495
- }, qn = process.env.NODE_ENV === "production", jn = !qn, ns = {
3493
+ }, jn = process.env.NODE_ENV === "production", Vn = !jn, ns = {
3496
3494
  isLoading: !0,
3497
3495
  isAuthenticated: !1,
3498
3496
  user: void 0,
3499
3497
  logoutReason: "",
3500
3498
  debug: !1,
3501
3499
  authenticationType: ""
3502
- }, Vn = (e) => {
3500
+ }, Qn = (e) => {
3503
3501
  try {
3504
- const t = gn(e);
3502
+ const t = bn(e);
3505
3503
  return t ? t[F.USER_ID_KEY] : "";
3506
3504
  } catch {
3507
3505
  return "";
@@ -3531,7 +3529,7 @@ const ve = "Your session has expired. For your security, please log in again to
3531
3529
  status: te
3532
3530
  };
3533
3531
  }
3534
- }, Qn = async ({
3532
+ }, Yn = async ({
3535
3533
  username: e,
3536
3534
  password: t,
3537
3535
  clientId: r,
@@ -3576,7 +3574,7 @@ const ve = "Your session has expired. For your security, please log in again to
3576
3574
  status: !1
3577
3575
  };
3578
3576
  }
3579
- }, Yn = async ({
3577
+ }, zn = async ({
3580
3578
  nonce: e,
3581
3579
  clientId: t,
3582
3580
  code_challenge: r,
@@ -3606,7 +3604,7 @@ const ve = "Your session has expired. For your security, please log in again to
3606
3604
  data: ""
3607
3605
  };
3608
3606
  }
3609
- }, zn = async ({
3607
+ }, Xn = async ({
3610
3608
  clientId: e,
3611
3609
  userId: t,
3612
3610
  nonce: r,
@@ -3643,7 +3641,7 @@ const ve = "Your session has expired. For your security, please log in again to
3643
3641
  };
3644
3642
  }
3645
3643
  };
3646
- class Xn {
3644
+ class Zn {
3647
3645
  constructor(t = null, r = null) {
3648
3646
  yt(this, "refreshTokenPromise", null), yt(this, "accessToken"), yt(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
3649
3647
  }
@@ -3676,7 +3674,7 @@ class Xn {
3676
3674
  }) {
3677
3675
  const i = await De(this.refreshToken);
3678
3676
  if (i && i.payload[F.USER_ID_KEY] !== "") {
3679
- const o = await zn({
3677
+ const o = await Xn({
3680
3678
  endpoint: t,
3681
3679
  clientId: r,
3682
3680
  userId: s,
@@ -3698,31 +3696,31 @@ class Xn {
3698
3696
  };
3699
3697
  }
3700
3698
  }
3701
- const Ie = () => {
3702
- throw new Error(Wn);
3699
+ const Ae = () => {
3700
+ throw new Error(qn);
3703
3701
  }, is = Lt({
3704
3702
  isAuthenticated: !1,
3705
3703
  isLoading: !1,
3706
- login: Ie,
3707
- logout: Ie,
3708
- getAccessToken: Ie,
3709
- getIdToken: Ie,
3710
- registeringForPasskey: Ie,
3711
- loginWithPasskey: Ie,
3704
+ login: Ae,
3705
+ logout: Ae,
3706
+ getAccessToken: Ae,
3707
+ getIdToken: Ae,
3708
+ registeringForPasskey: Ae,
3709
+ loginWithPasskey: Ae,
3712
3710
  logoutReason: "",
3713
3711
  authenticationType: ""
3714
- }), Zn = () => ({
3712
+ }), ei = () => ({
3715
3713
  ...nt(is)
3716
- }), ei = (e) => Y(
3714
+ }), ti = (e) => Y(
3717
3715
  (...t) => {
3718
3716
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
3719
3717
  },
3720
3718
  [e]
3721
- ), ti = ie.createContext({
3719
+ ), ri = ie.createContext({
3722
3720
  state: ns,
3723
3721
  dispatch: () => {
3724
3722
  }
3725
- }), ri = (e, t) => t?.type === Ne ? {
3723
+ }), si = (e, t) => t?.type === Ne ? {
3726
3724
  ...e,
3727
3725
  isLoading: t.payload.isLoading
3728
3726
  } : t?.type === je ? {
@@ -3739,21 +3737,21 @@ const Ie = () => {
3739
3737
  user: void 0,
3740
3738
  authenticationType: "",
3741
3739
  logoutReason: t.payload.logoutReason
3742
- } : e, si = ({ children: e }) => {
3743
- const t = Zn();
3744
- return /* @__PURE__ */ h(Qr.Provider, { value: t, children: e });
3740
+ } : e, ai = ({ children: e }) => {
3741
+ const t = ei();
3742
+ return /* @__PURE__ */ h(Jr.Provider, { value: t, children: e });
3745
3743
  }, br = ({
3746
3744
  children: e,
3747
3745
  sessionExpiration: t,
3748
3746
  clientId: r,
3749
3747
  domain: s = "",
3750
3748
  debug: a = !1,
3751
- endpoint: n = jn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3749
+ endpoint: n = Vn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3752
3750
  }) => {
3753
- const [i, o] = Cr(ri, {
3751
+ const [i, o] = Cr(si, {
3754
3752
  ...ns,
3755
3753
  debug: a
3756
- }), c = ei(a), f = j(!1), [d, u, , l] = Ke({
3754
+ }), c = ti(a), f = j(!1), [d, u, , l] = Ke({
3757
3755
  key: `${Ge}::${r}::@@user@@`
3758
3756
  }), [m, p, , g] = Ke({
3759
3757
  key: `${Ge}::${r}::@@access@@`
@@ -3761,9 +3759,9 @@ const Ie = () => {
3761
3759
  {
3762
3760
  key: `${Ge}::${r}::@@refresh@@`
3763
3761
  }
3764
- ), [A, K, , R] = Ke({
3762
+ ), [I, K, , R] = Ke({
3765
3763
  key: `${Ge}::${r}::@@nonce@@`
3766
- }), Q = new Xn(m, b), C = Y(() => {
3764
+ }), J = new Zn(m, b), C = Y(() => {
3767
3765
  c("removeLocalStorage: removing local storage"), l(), g(), O(), R();
3768
3766
  }, [
3769
3767
  g,
@@ -3787,7 +3785,7 @@ const Ie = () => {
3787
3785
  ), x = Y(
3788
3786
  async (w) => {
3789
3787
  c("invalidateAndLogout: invalidating and logging out");
3790
- const { user: T } = i, S = T?.userId || Vn(d);
3788
+ const { user: T } = i, S = T?.userId || Qn(d);
3791
3789
  S || c(
3792
3790
  "invalidateAndLogout: user cannot be identified, logging out without userId"
3793
3791
  ), await Jn({
@@ -3837,14 +3835,14 @@ const Ie = () => {
3837
3835
  o({ type: Ne, payload: { isLoading: !0 } }), C();
3838
3836
  const S = wt();
3839
3837
  K(S), c("login: Logging in with password");
3840
- const { code_verifier: le, code_challenge: ue } = await In(), zt = await Yn({
3838
+ const { code_verifier: le, code_challenge: ue } = await _n(), zt = await zn({
3841
3839
  endpoint: n,
3842
3840
  nonce: S,
3843
3841
  clientId: r,
3844
3842
  code_challenge: ue
3845
3843
  });
3846
3844
  if (zt.status) {
3847
- const we = await Qn({
3845
+ const we = await Yn({
3848
3846
  endpoint: n,
3849
3847
  username: w,
3850
3848
  password: T,
@@ -3870,8 +3868,8 @@ const Ie = () => {
3870
3868
  }), !0) : (v(St), !1);
3871
3869
  }
3872
3870
  return !1;
3873
- }, I = async (w) => {
3874
- w?.preventDefault(), await x(Gn);
3871
+ }, A = async (w) => {
3872
+ w?.preventDefault(), await x(Bn);
3875
3873
  }, N = async () => {
3876
3874
  const { isAuthenticated: w, user: T } = i;
3877
3875
  try {
@@ -3883,11 +3881,11 @@ const Ie = () => {
3883
3881
  return m;
3884
3882
  }
3885
3883
  c("getAccessToken: invalid access token, trying to refresh it");
3886
- const S = await Q.refreshtoken({
3884
+ const S = await J.refreshtoken({
3887
3885
  endpoint: n,
3888
3886
  clientId: r,
3889
3887
  userId: T.userId,
3890
- nonce: A,
3888
+ nonce: I,
3891
3889
  domain: s
3892
3890
  });
3893
3891
  return S.status && S.status === "success" && S.newAccessToken ? (p(S.newAccessToken), E(S.newRefreshToken), S.newAccessToken) : (c(
@@ -3900,11 +3898,11 @@ const Ie = () => {
3900
3898
  } catch {
3901
3899
  return c(
3902
3900
  "getAccessToken: exception occurred, invalidating and logging out"
3903
- ), await x(Bn), "";
3901
+ ), await x(Wn), "";
3904
3902
  }
3905
3903
  }, V = () => i.isAuthenticated && d ? d : "", ce = async () => {
3906
3904
  const { user: w } = i;
3907
- let T = await Ae({
3905
+ let T = await Ie({
3908
3906
  endpoint: n,
3909
3907
  accessToken: m,
3910
3908
  clientId: r,
@@ -3917,10 +3915,10 @@ const Ie = () => {
3917
3915
  });
3918
3916
  if (T.status)
3919
3917
  try {
3920
- const S = await Pn({
3918
+ const S = await $n({
3921
3919
  optionsJSON: T.data
3922
3920
  });
3923
- return T = await Ae({
3921
+ return T = await Ie({
3924
3922
  endpoint: n,
3925
3923
  accessToken: m,
3926
3924
  clientId: r,
@@ -3933,7 +3931,7 @@ const Ie = () => {
3933
3931
  }
3934
3932
  }), !!(T.status && T.data.length > 0);
3935
3933
  } catch {
3936
- return await Ae({
3934
+ return await Ie({
3937
3935
  endpoint: n,
3938
3936
  accessToken: m,
3939
3937
  clientId: r,
@@ -3952,7 +3950,7 @@ const Ie = () => {
3952
3950
  const w = wt();
3953
3951
  K(w), c("loginWithPasskey");
3954
3952
  const T = wt();
3955
- let S = await Ae({
3953
+ let S = await Ie({
3956
3954
  endpoint: n,
3957
3955
  accessToken: m,
3958
3956
  clientId: r,
@@ -3964,10 +3962,10 @@ const Ie = () => {
3964
3962
  });
3965
3963
  if (S.status)
3966
3964
  try {
3967
- const le = await Mn({
3965
+ const le = await Dn({
3968
3966
  optionsJSON: S.data
3969
3967
  });
3970
- return S = await Ae({
3968
+ return S = await Ie({
3971
3969
  endpoint: n,
3972
3970
  accessToken: m,
3973
3971
  clientId: r,
@@ -3993,7 +3991,7 @@ const Ie = () => {
3993
3991
  }
3994
3992
  }), !0) : (v(St), !1);
3995
3993
  } catch {
3996
- return await Ae({
3994
+ return await Ie({
3997
3995
  endpoint: n,
3998
3996
  accessToken: m,
3999
3997
  clientId: r,
@@ -4010,19 +4008,19 @@ const Ie = () => {
4010
4008
  }
4011
4009
  return !1;
4012
4010
  };
4013
- return /* @__PURE__ */ h(ti.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
4011
+ return /* @__PURE__ */ h(ri.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
4014
4012
  is.Provider,
4015
4013
  {
4016
4014
  value: {
4017
4015
  ...i,
4018
4016
  login: _,
4019
- logout: I,
4017
+ logout: A,
4020
4018
  getAccessToken: N,
4021
4019
  getIdToken: V,
4022
4020
  registeringForPasskey: ce,
4023
4021
  loginWithPasskey: Ee
4024
4022
  },
4025
- children: /* @__PURE__ */ h(si, { children: e })
4023
+ children: /* @__PURE__ */ h(ai, { children: e })
4026
4024
  }
4027
4025
  ) });
4028
4026
  };
@@ -4040,11 +4038,11 @@ try {
4040
4038
  } catch {
4041
4039
  }
4042
4040
  const os = () => {
4043
- const e = nt(Qr);
4041
+ const e = nt(Jr);
4044
4042
  if (!e)
4045
4043
  throw new Error("useAuth must be used within an AuthHookProvider");
4046
4044
  return e;
4047
- }, rc = "I'm having trouble right now. Please try again later.", sc = "action-search", ac = "action-sort", nc = "action-toggle-prompt", ic = "action-reset-prompt", cs = "sassy-saint-", oc = "search", cc = "sort", lc = "sort-timestamp", uc = "sort-token-usage", dc = "sort-memory-direction", hc = "sort-memory-column", fc = "favorites-only", mc = "private-disclosure", pc = "reasoning-disclosure", ls = "service-worker", Er = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", yc = 10, gc = 30, bc = "av-prompt", Ec = "av-prompt-editable", wc = "size-5 sm:size-4", Sc = 30, vc = 15, Tc = 130, Ac = 160, Ic = 16, _c = 24, Rc = 76, Cc = 76;
4045
+ }, nc = "I'm having trouble right now. Please try again later.", ic = "action-search", oc = "action-sort", cc = "action-toggle-prompt", lc = "action-reset-prompt", cs = "sassy-saint-", uc = "search", dc = "sort", hc = "sort-timestamp", fc = "sort-token-usage", mc = "sort-memory-direction", pc = "sort-memory-column", yc = "favorites-only", gc = "private-disclosure", bc = "reasoning-disclosure", ls = "service-worker", Er = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ec = 10, wc = 30, Sc = "av-prompt", vc = "av-prompt-editable", Tc = "size-5 sm:size-4", Ic = 30, Ac = 15, _c = 130, Rc = 160, Cc = 16, Oc = 24, kc = 76, Nc = 76;
4048
4046
  let vt = null, se = !1;
4049
4047
  typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
4050
4048
  se && (se = !1, window.location.reload());
@@ -4058,7 +4056,7 @@ function xt() {
4058
4056
  );
4059
4057
  return e === null ? !1 : e === "true";
4060
4058
  }
4061
- function ai(e) {
4059
+ function ni(e) {
4062
4060
  localStorage.setItem(
4063
4061
  cs + ls,
4064
4062
  e.toString()
@@ -4084,7 +4082,7 @@ async function us() {
4084
4082
  return console.error("[SW] Service worker registration failed:", e), !1;
4085
4083
  }
4086
4084
  }
4087
- async function ni() {
4085
+ async function ii() {
4088
4086
  if (!Wt())
4089
4087
  return !1;
4090
4088
  try {
@@ -4094,8 +4092,8 @@ async function ni() {
4094
4092
  return console.error("[SW] Service worker un-registration failed:", e), !1;
4095
4093
  }
4096
4094
  }
4097
- async function Oc(e) {
4098
- if (ai(e), e) {
4095
+ async function Pc(e) {
4096
+ if (ni(e), e) {
4099
4097
  se = !0;
4100
4098
  try {
4101
4099
  sessionStorage.setItem("sw-toggle-pending", "enabled");
@@ -4116,14 +4114,14 @@ async function Oc(e) {
4116
4114
  } catch {
4117
4115
  }
4118
4116
  try {
4119
- Wt() && await ii();
4117
+ Wt() && await oi();
4120
4118
  } catch (t) {
4121
4119
  console.warn("[SW] Failed to invalidate cache:", t);
4122
4120
  }
4123
- await ni(), window.location.reload();
4121
+ await ii(), window.location.reload();
4124
4122
  }
4125
4123
  }
4126
- async function ii() {
4124
+ async function oi() {
4127
4125
  try {
4128
4126
  if ("caches" in window) {
4129
4127
  const e = await caches.keys();
@@ -4149,7 +4147,7 @@ async function ii() {
4149
4147
  function Tt() {
4150
4148
  return "unknown";
4151
4149
  }
4152
- async function kc(e = {}) {
4150
+ async function $c(e = {}) {
4153
4151
  const { urlLimitPerCache: t } = e;
4154
4152
  if (!("caches" in window))
4155
4153
  return { version: Tt(), caches: [], totalItems: 0 };
@@ -4176,11 +4174,11 @@ async function kc(e = {}) {
4176
4174
  return console.warn("[SW] getCacheInfo failed:", r), { version: Tt(), caches: [], totalItems: 0 };
4177
4175
  }
4178
4176
  }
4179
- const Nc = "user", Pc = "assistant", $c = "data", Ue = "OpenAI", lt = "Anthropic", ut = "Google", ds = "Perplexity", xc = Ue, oi = [
4177
+ const xc = "user", Mc = "assistant", Dc = "data", Ue = "OpenAI", lt = "Anthropic", ut = "Google", ds = "Perplexity", Lc = Ue, ci = [
4180
4178
  Ue,
4181
4179
  lt,
4182
4180
  ut
4183
- ], hs = "gpt-5", fs = "gpt-5-mini", ms = "gpt-5-nano", ps = "gpt-4.1-nano", ys = "claude-haiku-4-5-20251001", gs = "claude-sonnet-4-5-20250929", bs = "gemini-2.5-flash", Es = "gemini-2.5-pro", ws = "sonar", Ss = "sonar-pro", Mc = {
4181
+ ], hs = "gpt-5", fs = "gpt-5-mini", ms = "gpt-5-nano", ps = "gpt-4.1-nano", ys = "claude-haiku-4-5-20251001", gs = "claude-sonnet-4-5-20250929", bs = "gemini-2.5-flash", Es = "gemini-2.5-pro", ws = "sonar", Ss = "sonar-pro", Uc = {
4184
4182
  [hs]: "GPT-5",
4185
4183
  [fs]: "GPT-5 Mini",
4186
4184
  [ms]: "GPT-5 Nano",
@@ -4191,7 +4189,7 @@ const Nc = "user", Pc = "assistant", $c = "data", Ue = "OpenAI", lt = "Anthropic
4191
4189
  [Es]: "Gemini 2.5 Pro",
4192
4190
  [ws]: "Sonar",
4193
4191
  [Ss]: "Sonar Pro"
4194
- }, ci = {
4192
+ }, vs = {
4195
4193
  [Ue]: [
4196
4194
  ps,
4197
4195
  hs,
@@ -4213,7 +4211,7 @@ const Nc = "user", Pc = "assistant", $c = "data", Ue = "OpenAI", lt = "Anthropic
4213
4211
  ],
4214
4212
  [ut]: [mi],
4215
4213
  [ds]: [pi]
4216
- }, Dc = "x-diggidy-chat-id", Lc = "timestamp", Uc = "tokenUsage", k = "Diggidy", Fc = {
4214
+ }, Fc = "x-diggidy-chat-id", Hc = "timestamp", Kc = "tokenUsage", k = "Diggidy", Gc = {
4217
4215
  TOOL: {
4218
4216
  MEMORIES: "getUserMemories"
4219
4217
  },
@@ -4221,31 +4219,50 @@ const Nc = "user", Pc = "assistant", $c = "data", Ue = "OpenAI", lt = "Anthropic
4221
4219
  ATTACHMENTS: "addon:attachments",
4222
4220
  REASONING: "addon:reasoning"
4223
4221
  }
4224
- }, Hc = (e) => {
4222
+ }, Bc = (e) => {
4225
4223
  for (const [t, r] of Object.entries(
4226
4224
  yi
4227
4225
  ))
4228
4226
  if (r.some((s) => e.startsWith(s)))
4229
4227
  return t;
4230
4228
  return null;
4231
- }, Kc = (e) => {
4229
+ }, Wc = (e) => {
4232
4230
  if (!e || e.length === 0)
4233
4231
  return [];
4234
4232
  const t = /* @__PURE__ */ new Set();
4235
4233
  for (const r of e)
4236
4234
  for (const [s, a] of Object.entries(
4237
- ci
4235
+ vs
4238
4236
  ))
4239
4237
  a.includes(r) && (s === Ue || s === lt || s === ut) && t.add(s);
4240
- return oi.filter((r) => t.has(r));
4241
- };
4242
- function gi(e) {
4238
+ return ci.filter((r) => t.has(r));
4239
+ }, gi = (e) => {
4240
+ const t = /* @__PURE__ */ new Map();
4241
+ if (!e || e.length === 0)
4242
+ return t;
4243
+ for (const r of e)
4244
+ for (const [s, a] of Object.entries(
4245
+ vs
4246
+ ))
4247
+ if (a.includes(r)) {
4248
+ t.has(s) || t.set(s, []), t.get(s)?.push(r);
4249
+ break;
4250
+ }
4251
+ return t;
4252
+ }, qc = (e) => {
4253
+ const t = gi(e);
4254
+ for (const r of t.values())
4255
+ if (r.length > 1)
4256
+ return !0;
4257
+ return !1;
4258
+ }, jc = (e, t) => !e || !t || t.length === 0 ? !1 : t.includes(e);
4259
+ function bi(e) {
4243
4260
  return e ? new Set(e) : null;
4244
4261
  }
4245
- function bi(e, t, r) {
4262
+ function Ei(e, t, r) {
4246
4263
  if (!t || Array.isArray(t) && t.length === 0)
4247
4264
  return !0;
4248
- const s = e instanceof Set ? e : gi(e);
4265
+ const s = e instanceof Set ? e : bi(e);
4249
4266
  return !s || s.size === 0 ? !1 : typeof t == "string" ? s.has(t) : r?.any === !0 ? t.some((a) => s.has(a)) : t.every((a) => s.has(a));
4250
4267
  }
4251
4268
  const G = {
@@ -4363,11 +4380,13 @@ const G = {
4363
4380
  instructions
4364
4381
  location
4365
4382
  provider
4383
+ model
4366
4384
  plan
4367
4385
  sendOnEnter
4368
4386
  useMemory
4369
4387
  showDetails
4370
4388
  showReasoningButton
4389
+ useNestedModelSelection
4371
4390
  entitlements {
4372
4391
  version
4373
4392
  capabilities
@@ -4389,22 +4408,26 @@ const G = {
4389
4408
  $instructions: String,
4390
4409
  $location: String,
4391
4410
  $provider: String,
4411
+ $model: String,
4392
4412
  $plan: String,
4393
4413
  $sendOnEnter: Boolean,
4394
4414
  $useMemory: Boolean,
4395
4415
  $showDetails: Boolean,
4396
4416
  $showReasoningButton: Boolean,
4417
+ $useNestedModelSelection: Boolean,
4397
4418
  $tags: [TagIn]) {
4398
4419
  setUserPreferences(
4399
4420
  user: $user,
4400
4421
  instructions: $instructions,
4401
4422
  location: $location,
4402
4423
  provider: $provider,
4424
+ model: $model,
4403
4425
  plan: $plan,
4404
4426
  sendOnEnter: $sendOnEnter,
4405
4427
  useMemory: $useMemory,
4406
- showDetails: $showDetails,
4407
- showReasoningButton: $showReasoningButton,
4428
+ showDetails: $showDetails,
4429
+ showReasoningButton: $showReasoningButton,
4430
+ useNestedModelSelection: $useNestedModelSelection,
4408
4431
  tags: $tags)
4409
4432
  }`,
4410
4433
  GET_USAGE: `query GetUsage(
@@ -4499,12 +4522,12 @@ const G = {
4499
4522
  DELETE_MEMORIES: {
4500
4523
  schema: G.DELETE_MEMORIES
4501
4524
  }
4502
- }, Ei = process.env.PUBLIC_SASSY_API_SERVER_URL, Oe = async ({
4525
+ }, wi = process.env.PUBLIC_SASSY_API_SERVER_URL, Oe = async ({
4503
4526
  query: e,
4504
4527
  data: t,
4505
4528
  headers: r = {},
4506
4529
  ...s
4507
- }) => await fetch(`${Ei}/graphql`, {
4530
+ }) => await fetch(`${wi}/graphql`, {
4508
4531
  method: "POST",
4509
4532
  credentials: "include",
4510
4533
  headers: {
@@ -4517,7 +4540,7 @@ const G = {
4517
4540
  variables: t
4518
4541
  }),
4519
4542
  ...s
4520
- }), vs = async (e) => {
4543
+ }), Ts = async (e) => {
4521
4544
  const t = e.type?.data ? e.type.data(e.params) : e.params;
4522
4545
  try {
4523
4546
  let r;
@@ -4549,22 +4572,26 @@ const G = {
4549
4572
  } catch (r) {
4550
4573
  throw console.error(r), r;
4551
4574
  }
4552
- }, Gc = async ({
4575
+ }, Vc = async ({
4553
4576
  provider: e,
4554
- accessToken: t,
4555
- username: r
4556
- }) => await vs({
4557
- accessToken: t,
4558
- type: z.SET_USER_PREFERENCES,
4559
- params: {
4560
- user: r,
4577
+ model: t,
4578
+ accessToken: r,
4579
+ username: s
4580
+ }) => {
4581
+ const a = {
4582
+ user: s,
4561
4583
  provider: e
4562
- }
4563
- }), Bc = async ({
4584
+ };
4585
+ return t && (a.model = t), await Ts({
4586
+ accessToken: r,
4587
+ type: z.SET_USER_PREFERENCES,
4588
+ params: a
4589
+ });
4590
+ }, Qc = async ({
4564
4591
  plan: e,
4565
4592
  accessToken: t,
4566
4593
  username: r
4567
- }) => await vs({
4594
+ }) => await Ts({
4568
4595
  accessToken: t,
4569
4596
  type: z.SET_USER_PREFERENCES,
4570
4597
  params: {
@@ -4579,13 +4606,13 @@ const G = {
4579
4606
  PREFERENCES: "preferences",
4580
4607
  USAGE: "usage",
4581
4608
  USER_MEMORIES: "userMemories"
4582
- }, Wc = () => ye({
4609
+ }, Jc = () => ye({
4583
4610
  queryKey: [oe.CAPABILITIES],
4584
4611
  queryFn: async () => await be({
4585
4612
  type: z.GET_SERVER_CAPABILITIES,
4586
4613
  noAuth: !0
4587
4614
  })
4588
- }), qc = () => ye({
4615
+ }), Yc = () => ye({
4589
4616
  queryKey: [oe.CHANGELOGS],
4590
4617
  queryFn: async () => await be({
4591
4618
  type: z.GET_CHANGELOGS,
@@ -4594,7 +4621,7 @@ const G = {
4594
4621
  client: !0
4595
4622
  }
4596
4623
  })
4597
- }), wi = ({
4624
+ }), Si = ({
4598
4625
  user: e,
4599
4626
  getAccessToken: t
4600
4627
  }) => ye({
@@ -4606,7 +4633,7 @@ const G = {
4606
4633
  type: z.GET_USER_PREFERENCES,
4607
4634
  getAccessToken: t
4608
4635
  })
4609
- }), jc = ({
4636
+ }), zc = ({
4610
4637
  user: e,
4611
4638
  getAccessToken: t
4612
4639
  }) => ye({
@@ -4618,7 +4645,7 @@ const G = {
4618
4645
  type: z.GET_CHATS_STATS,
4619
4646
  getAccessToken: t
4620
4647
  })
4621
- }), Vc = ({
4648
+ }), Xc = ({
4622
4649
  user: e,
4623
4650
  searchString: t,
4624
4651
  sortDirection: r,
@@ -4642,7 +4669,7 @@ const G = {
4642
4669
  type: z.GET_CHATS,
4643
4670
  getAccessToken: a
4644
4671
  })
4645
- }), Jc = ({
4672
+ }), Zc = ({
4646
4673
  user: e,
4647
4674
  month: t,
4648
4675
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4660,7 +4687,7 @@ const G = {
4660
4687
  type: z.GET_USAGE,
4661
4688
  getAccessToken: s
4662
4689
  })
4663
- }), Qc = ({
4690
+ }), el = ({
4664
4691
  user: e,
4665
4692
  query: t,
4666
4693
  getAccessToken: r,
@@ -4673,7 +4700,7 @@ const G = {
4673
4700
  type: z.GET_USER_MEMORIES,
4674
4701
  getAccessToken: r
4675
4702
  })
4676
- }), Yc = ({
4703
+ }), tl = ({
4677
4704
  getAccessToken: e
4678
4705
  }) => {
4679
4706
  const t = it();
@@ -4697,7 +4724,7 @@ const G = {
4697
4724
  });
4698
4725
  }
4699
4726
  });
4700
- }, zc = ({
4727
+ }, rl = ({
4701
4728
  getAccessToken: e
4702
4729
  }) => {
4703
4730
  const t = it();
@@ -4754,19 +4781,19 @@ const G = {
4754
4781
  } catch (a) {
4755
4782
  return Promise.reject(a);
4756
4783
  }
4757
- }, Ts = Lt(
4784
+ }, Is = Lt(
4758
4785
  void 0
4759
4786
  ), wr = {
4760
4787
  capabilities: /* @__PURE__ */ new Set(),
4761
4788
  allowedModels: [],
4762
4789
  version: null,
4763
4790
  status: "idle"
4764
- }, Si = ({
4791
+ }, vi = ({
4765
4792
  user: e,
4766
4793
  getAccessToken: t,
4767
4794
  children: r
4768
4795
  }) => {
4769
- const [s, a] = ne(wr), n = Qe(
4796
+ const [s, a] = ne(wr), n = Je(
4770
4797
  () => e ? `entitlements:${e}` : null,
4771
4798
  [e]
4772
4799
  ), i = Y(() => {
@@ -4791,7 +4818,7 @@ const G = {
4791
4818
  W(() => {
4792
4819
  s.status === "idle" && i();
4793
4820
  }, [i, s.status]);
4794
- const o = wi({ user: e, getAccessToken: t });
4821
+ const o = Si({ user: e, getAccessToken: t });
4795
4822
  W(() => {
4796
4823
  o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
4797
4824
  }, [o.isLoading, s.status]), W(() => {
@@ -4848,25 +4875,25 @@ const G = {
4848
4875
  sessionStorage.removeItem(n);
4849
4876
  } catch {
4850
4877
  }
4851
- }, [n]), d = Qe(
4878
+ }, [n]), d = Je(
4852
4879
  () => ({
4853
4880
  ...s,
4854
- check: (u, l) => s.status !== "ready" ? !1 : bi(s.capabilities, u, { any: l?.any }),
4881
+ check: (u, l) => s.status !== "ready" ? !1 : Ei(s.capabilities, u, { any: l?.any }),
4855
4882
  loadFromProfile: c,
4856
4883
  reset: f
4857
4884
  }),
4858
4885
  [s, c, f]
4859
4886
  );
4860
- return /* @__PURE__ */ h(Ts.Provider, { value: d, children: r });
4887
+ return /* @__PURE__ */ h(Is.Provider, { value: d, children: r });
4861
4888
  };
4862
- function Xc() {
4863
- const e = nt(Ts);
4889
+ function sl() {
4890
+ const e = nt(Is);
4864
4891
  if (!e)
4865
4892
  throw new Error("useEntitlements must be used within EntitlementsProvider");
4866
4893
  return e;
4867
4894
  }
4868
4895
  const Sr = (e) => Number.isFinite(e) ? e : 0;
4869
- function vi(e) {
4896
+ function Ti(e) {
4870
4897
  return {
4871
4898
  days: Math.trunc(e / 864e5),
4872
4899
  hours: Math.trunc(e / 36e5 % 24),
@@ -4877,7 +4904,7 @@ function vi(e) {
4877
4904
  nanoseconds: Math.trunc(Sr(e * 1e6) % 1e3)
4878
4905
  };
4879
4906
  }
4880
- function Ti(e) {
4907
+ function Ii(e) {
4881
4908
  return {
4882
4909
  days: e / 86400000n,
4883
4910
  hours: e / 3600000n % 24n,
@@ -4892,16 +4919,16 @@ function Ai(e) {
4892
4919
  switch (typeof e) {
4893
4920
  case "number": {
4894
4921
  if (Number.isFinite(e))
4895
- return vi(e);
4922
+ return Ti(e);
4896
4923
  break;
4897
4924
  }
4898
4925
  case "bigint":
4899
- return Ti(e);
4926
+ return Ii(e);
4900
4927
  }
4901
4928
  throw new TypeError("Expected a finite number or bigint");
4902
4929
  }
4903
- const Ii = (e) => e === 0 || e === 0n, _i = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ri = 1e-7, Ci = 24n * 60n * 60n * 1000n;
4904
- function Oi(e, t) {
4930
+ const _i = (e) => e === 0 || e === 0n, Ri = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ci = 1e-7, Oi = 24n * 60n * 60n * 1000n;
4931
+ function ki(e, t) {
4905
4932
  const r = typeof e == "bigint";
4906
4933
  if (!r && !Number.isFinite(e))
4907
4934
  throw new TypeError("Expected a finite number or bigint");
@@ -4910,15 +4937,15 @@ function Oi(e, t) {
4910
4937
  e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
4911
4938
  let a = [];
4912
4939
  const n = (d, u) => {
4913
- const l = Math.floor(d * 10 ** u + Ri);
4940
+ const l = Math.floor(d * 10 ** u + Ci);
4914
4941
  return (Math.round(l) / 10 ** u).toFixed(u);
4915
4942
  }, i = (d, u, l, m) => {
4916
- if (!((a.length === 0 || !t.colonNotation) && Ii(d) && !(t.colonNotation && l === "m"))) {
4943
+ if (!((a.length === 0 || !t.colonNotation) && _i(d) && !(t.colonNotation && l === "m"))) {
4917
4944
  if (m ??= String(d), t.colonNotation) {
4918
4945
  const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
4919
4946
  m = "0".repeat(Math.max(0, g - p)) + m;
4920
4947
  } else
4921
- m += t.verbose ? " " + _i(u, d) : l;
4948
+ m += t.verbose ? " " + Ri(u, d) : l;
4922
4949
  a.push(m);
4923
4950
  }
4924
4951
  }, o = Ai(e), c = BigInt(o.days);
@@ -4937,7 +4964,7 @@ function Oi(e, t) {
4937
4964
  );
4938
4965
  }
4939
4966
  } else {
4940
- const d = (r ? Number(e % Ci) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
4967
+ const d = (r ? Number(e % Oi) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
4941
4968
  i(Number.parseFloat(m), "second", "s", m);
4942
4969
  }
4943
4970
  if (a.length === 0)
@@ -4945,7 +4972,7 @@ function Oi(e, t) {
4945
4972
  const f = t.colonNotation ? ":" : " ";
4946
4973
  return typeof t.unitCount == "number" && (a = a.slice(0, Math.max(t.unitCount, 1))), s + a.join(f);
4947
4974
  }
4948
- const As = process.env.NODE_ENV === "production", qt = !As, Is = qt ? "gizmette.local.com" : "gizmette.com", jt = (e, t) => {
4975
+ const As = process.env.NODE_ENV === "production", qt = !As, _s = qt ? "gizmette.local.com" : "gizmette.com", jt = (e, t) => {
4949
4976
  const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", s = 0 | Math.abs(e), a = 0 | Math.abs(e) * 60 % 60, n = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
4950
4977
  return {
4951
4978
  dir: r,
@@ -4953,17 +4980,17 @@ const As = process.env.NODE_ENV === "production", qt = !As, Is = qt ? "gizmette.
4953
4980
  min: a,
4954
4981
  sec: n
4955
4982
  };
4956
- }, ki = (e) => {
4983
+ }, Ni = (e) => {
4957
4984
  if (!e && e !== 0)
4958
4985
  return "N/A";
4959
4986
  const t = jt(e, !1);
4960
4987
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
4961
- }, Ni = (e) => {
4988
+ }, Pi = (e) => {
4962
4989
  if (!e && e !== 0)
4963
4990
  return "N/A";
4964
4991
  const t = jt(e, !0);
4965
4992
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
4966
- }, Pi = async () => {
4993
+ }, $i = async () => {
4967
4994
  const e = {
4968
4995
  /**
4969
4996
  * A boolean value that indicates the application would like to receive the
@@ -5006,18 +5033,18 @@ const As = process.env.NODE_ENV === "production", qt = !As, Is = qt ? "gizmette.
5006
5033
  e
5007
5034
  );
5008
5035
  });
5009
- }, $i = (e) => window.btoa(
5036
+ }, xi = (e) => window.btoa(
5010
5037
  encodeURIComponent(e).replace(
5011
5038
  /%([0-9A-F]{2})/g,
5012
5039
  function(r, s) {
5013
5040
  return String.fromCharCode(+`0x${s}`);
5014
5041
  }
5015
5042
  )
5016
- ), xi = (e) => decodeURIComponent(
5043
+ ), Mi = (e) => decodeURIComponent(
5017
5044
  window.atob(e).split("").map(function(t) {
5018
5045
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
5019
5046
  }).join("")
5020
- ), Mi = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-between", children: [
5047
+ ), Di = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ q("div", { className: "flex items-center justify-between", children: [
5021
5048
  /* @__PURE__ */ h(
5022
5049
  "dt",
5023
5050
  {
@@ -5039,7 +5066,7 @@ const As = process.env.NODE_ENV === "production", qt = !As, Is = qt ? "gizmette.
5039
5066
  }
5040
5067
  )
5041
5068
  ] }) }, `${e}-${s}`)) : null;
5042
- function Di({
5069
+ function Li({
5043
5070
  data: e,
5044
5071
  formatter: t = (r) => r
5045
5072
  }) {
@@ -5051,15 +5078,15 @@ function Di({
5051
5078
  );
5052
5079
  return t(s ? s / r.length : 0);
5053
5080
  }
5054
- const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ui = new Intl.NumberFormat("en", {
5081
+ const Ui = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Fi = new Intl.NumberFormat("en", {
5055
5082
  style: "decimal",
5056
5083
  signDisplay: "never",
5057
5084
  minimumFractionDigits: 0,
5058
5085
  maximumFractionDigits: 0
5059
- }), Fi = (e) => e > 0 ? Oi(e, {
5086
+ }), Hi = (e) => e > 0 ? ki(e, {
5060
5087
  secondsDecimalDigits: 2,
5061
5088
  unitCount: 2
5062
- }) : "N/A", _s = ({
5089
+ }) : "N/A", Rs = ({
5063
5090
  isAuthenticated: e,
5064
5091
  extraClass: t
5065
5092
  }) => y(
@@ -5068,7 +5095,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5068
5095
  "flex-1 overflow-y-auto",
5069
5096
  e ? "pt-0" : "pt-10",
5070
5097
  t
5071
- ), Rs = ({
5098
+ ), Cs = ({
5072
5099
  extraClass: e
5073
5100
  } = {}) => y(
5074
5101
  "flex flex-col",
@@ -5076,21 +5103,21 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5076
5103
  "sm:px-5 px-2",
5077
5104
  "transition-all ease-in-out duration-500",
5078
5105
  e
5079
- ), Hi = (e, t) => t === 1 ? e : `${e}s`, Ki = (e, t) => {
5106
+ ), Ki = (e, t) => t === 1 ? e : `${e}s`, Gi = (e, t) => {
5080
5107
  let r;
5081
5108
  return (...s) => {
5082
5109
  window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
5083
5110
  };
5084
- }, Cs = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Os = () => window.innerWidth < 403, ks = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Gi = () => {
5085
- const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Os(), s = navigator.maxTouchPoints > 1;
5111
+ }, Os = () => !!window?.__VERSINI_DIGGIDY_TAURI__, ks = () => window.innerWidth < 403, Ns = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Bi = () => {
5112
+ const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = ks(), s = navigator.maxTouchPoints > 1;
5086
5113
  return e && t && r && s;
5087
- }, Bi = () => {
5088
- const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = ks(), r = navigator.maxTouchPoints > 1;
5114
+ }, Wi = () => {
5115
+ const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Ns(), r = navigator.maxTouchPoints > 1;
5089
5116
  return e && t && r;
5090
- }, Wi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, qi = (e) => {
5117
+ }, qi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, ji = (e) => {
5091
5118
  const t = e.replace(/([A-Z])/g, " $1");
5092
5119
  return t.charAt(0).toUpperCase() + t.slice(1);
5093
- }, ji = ({
5120
+ }, Vi = ({
5094
5121
  autoClose: e = 3e3,
5095
5122
  containerId: t,
5096
5123
  position: r = "top-center",
@@ -5114,7 +5141,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5114
5141
  theme: c,
5115
5142
  transition: f,
5116
5143
  icon: d
5117
- }), Zc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Is, convertCamelCaseToReadable: qi, convertDDToDMS: jt, convertLatitudeToDMS: ki, convertLongitudeToDMS: Ni, debounce: Ki, durationFormatter: Fi, extractAverage: Di, getCurrentGeoLocation: Pi, getLayoutPaddingClass: Rs, getMessageContaintWrapperClass: _s, isDev: qt, isLastMessageFromRole: Li, isPWAMode: Wi, isProbablyMobile: Os, isProbablyTablet: ks, isProbablyiPad: Bi, isProbablyiPhone: Gi, isProd: As, isTauri: Cs, numberFormatter: Ui, obfuscate: $i, pluralize: Hi, renderDataAsList: Mi, toastOptions: ji, unObfuscate: xi }, Symbol.toStringTag, { value: "Module" })), vr = "av-button", dt = "icon", Vt = "button", Mt = "link", Vi = ({
5144
+ }), Qi = (e, t) => t === "ready" && !!e && e.length > 0, al = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: _s, canEvaluateModels: Qi, convertCamelCaseToReadable: ji, convertDDToDMS: jt, convertLatitudeToDMS: Ni, convertLongitudeToDMS: Pi, debounce: Gi, durationFormatter: Hi, extractAverage: Li, getCurrentGeoLocation: $i, getLayoutPaddingClass: Cs, getMessageContaintWrapperClass: Rs, isDev: qt, isLastMessageFromRole: Ui, isPWAMode: qi, isProbablyMobile: ks, isProbablyTablet: Ns, isProbablyiPad: Wi, isProbablyiPhone: Bi, isProd: As, isTauri: Os, numberFormatter: Fi, obfuscate: xi, pluralize: Ki, renderDataAsList: Di, toastOptions: Vi, unObfuscate: Mi }, Symbol.toStringTag, { value: "Module" })), vr = "av-button", dt = "icon", Vt = "button", Mt = "link", Ji = ({
5118
5145
  type: e,
5119
5146
  size: t,
5120
5147
  labelRight: r,
@@ -5150,7 +5177,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5150
5177
  "h-12": t === "large" && n && (r || s)
5151
5178
  });
5152
5179
  }
5153
- }, Ji = ({
5180
+ }, Yi = ({
5154
5181
  type: e,
5155
5182
  size: t,
5156
5183
  labelRight: r,
@@ -5173,7 +5200,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5173
5200
  [i]: t === "large" && (r || s)
5174
5201
  });
5175
5202
  }
5176
- }, Qi = ({
5203
+ }, zi = ({
5177
5204
  mode: e,
5178
5205
  noBackground: t,
5179
5206
  truncate: r,
@@ -5209,7 +5236,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5209
5236
  return y("not-prose text-copy-lighter", {
5210
5237
  truncate: r
5211
5238
  });
5212
- }, Yi = ({
5239
+ }, Xi = ({
5213
5240
  mode: e,
5214
5241
  noBackground: t,
5215
5242
  variant: r
@@ -5239,13 +5266,13 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5239
5266
  if (r === "selected")
5240
5267
  return "bg-action-selected-dark";
5241
5268
  }
5242
- }, zi = ({
5269
+ }, Zi = ({
5243
5270
  radius: e
5244
5271
  }) => y({
5245
5272
  "rounded-full": e === "large",
5246
5273
  "rounded-md": e === "medium",
5247
5274
  "rounded-xs": e === "small"
5248
- }), Xi = ({
5275
+ }), eo = ({
5249
5276
  mode: e,
5250
5277
  disabled: t,
5251
5278
  variant: r
@@ -5283,7 +5310,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5283
5310
  });
5284
5311
  if (r === "selected")
5285
5312
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5286
- }, Zi = ({
5313
+ }, to = ({
5287
5314
  mode: e,
5288
5315
  disabled: t,
5289
5316
  variant: r
@@ -5321,7 +5348,7 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5321
5348
  });
5322
5349
  if (r === "selected")
5323
5350
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5324
- }, eo = ({
5351
+ }, ro = ({
5325
5352
  mode: e,
5326
5353
  noBorder: t,
5327
5354
  variant: r
@@ -5351,14 +5378,14 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5351
5378
  });
5352
5379
  if (r === "selected")
5353
5380
  return "border border-border-selected-dark";
5354
- }, to = ({
5381
+ }, so = ({
5355
5382
  focusMode: e
5356
5383
  }) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5357
5384
  "focus:outline-focus-dark": e === "dark",
5358
5385
  "focus:outline-focus-light": e === "light",
5359
5386
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5360
5387
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5361
- }), ro = ({
5388
+ }), ao = ({
5362
5389
  mode: e,
5363
5390
  raw: t,
5364
5391
  iconClassName: r,
@@ -5385,11 +5412,11 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5385
5412
  } : s === "selected" && (a = {
5386
5413
  "text-copy-lighter": !0
5387
5414
  }), y(a, r);
5388
- }, so = ({
5415
+ }, no = ({
5389
5416
  animated: e
5390
5417
  }) => y({
5391
5418
  "transition-opacity duration-300 ease-in-out": e
5392
- }), Ns = ({
5419
+ }), Ps = ({
5393
5420
  type: e,
5394
5421
  className: t,
5395
5422
  raw: r,
@@ -5409,15 +5436,15 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5409
5436
  animated: b
5410
5437
  }) => (l || (l = "primary"), r ? y(vr, t) : y(
5411
5438
  vr,
5412
- Qi({
5439
+ zi({
5413
5440
  mode: s,
5414
5441
  variant: l,
5415
5442
  noBackground: u,
5416
5443
  truncate: m
5417
5444
  }),
5418
- Yi({ mode: s, noBackground: u, variant: l }),
5419
- zi({ radius: g }),
5420
- Vi({
5445
+ Xi({ mode: s, noBackground: u, variant: l }),
5446
+ Zi({ radius: g }),
5447
+ Ji({
5421
5448
  type: e,
5422
5449
  size: o,
5423
5450
  labelRight: f,
@@ -5425,11 +5452,11 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5425
5452
  align: p,
5426
5453
  animated: b
5427
5454
  }),
5428
- Ji({ type: e, size: o, labelRight: f, labelLeft: d }),
5429
- eo({ mode: s, variant: l, noBorder: c }),
5430
- to({ focusMode: a }),
5431
- Xi({ mode: s, variant: l, disabled: n }),
5432
- Zi({ mode: s, variant: l, disabled: n }),
5455
+ Yi({ type: e, size: o, labelRight: f, labelLeft: d }),
5456
+ ro({ mode: s, variant: l, noBorder: c }),
5457
+ so({ focusMode: a }),
5458
+ eo({ mode: s, variant: l, disabled: n }),
5459
+ to({ mode: s, variant: l, disabled: n }),
5433
5460
  {
5434
5461
  "w-full": i,
5435
5462
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -5438,23 +5465,23 @@ const Li = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5438
5465
  "transition-[width] duration-300 ease-in": e === dt && b
5439
5466
  }),
5440
5467
  t
5441
- )), ao = (e, t, r) => {
5468
+ )), io = (e, t, r) => {
5442
5469
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5443
- }, Jt = ie.forwardRef((e, t) => {
5470
+ }, Qt = ie.forwardRef((e, t) => {
5444
5471
  const { onClick: r, noInternalClick: s = !1, ...a } = e;
5445
5472
  return /* @__PURE__ */ h(
5446
5473
  "button",
5447
5474
  {
5448
5475
  ref: t,
5449
5476
  onClick: (n) => {
5450
- ao(n, s, r);
5477
+ io(n, s, r);
5451
5478
  },
5452
5479
  ...a
5453
5480
  }
5454
5481
  );
5455
5482
  });
5456
- Jt.displayName = "BaseButton";
5457
- const Ps = ie.forwardRef(
5483
+ Qt.displayName = "BaseButton";
5484
+ const $s = ie.forwardRef(
5458
5485
  ({
5459
5486
  children: e,
5460
5487
  disabled: t = !1,
@@ -5470,7 +5497,7 @@ const Ps = ie.forwardRef(
5470
5497
  radius: u = "large",
5471
5498
  ...l
5472
5499
  }, m) => {
5473
- const p = Ns({
5500
+ const p = Ps({
5474
5501
  type: Vt,
5475
5502
  mode: r,
5476
5503
  focusMode: s,
@@ -5485,7 +5512,7 @@ const Ps = ie.forwardRef(
5485
5512
  radius: u
5486
5513
  });
5487
5514
  return /* @__PURE__ */ h(
5488
- Jt,
5515
+ Qt,
5489
5516
  {
5490
5517
  ref: m,
5491
5518
  className: p,
@@ -5496,22 +5523,22 @@ const Ps = ie.forwardRef(
5496
5523
  );
5497
5524
  }
5498
5525
  );
5499
- Ps.displayName = "Button";
5500
- function no() {
5526
+ $s.displayName = "Button";
5527
+ function oo() {
5501
5528
  const e = j(!1);
5502
5529
  return W(() => (e.current = !0, () => {
5503
5530
  e.current = !1;
5504
5531
  }), []), Y(() => e.current, []);
5505
5532
  }
5506
- function $s(e) {
5507
- return Qe(() => e.every((t) => t == null) ? () => {
5533
+ function xs(e) {
5534
+ return Je(() => e.every((t) => t == null) ? () => {
5508
5535
  } : (t) => {
5509
5536
  e.forEach((r) => {
5510
5537
  typeof r == "function" ? r(t) : r != null && (r.current = t);
5511
5538
  });
5512
5539
  }, [...e]);
5513
5540
  }
5514
- const io = {
5541
+ const co = {
5515
5542
  x: 0,
5516
5543
  y: 0,
5517
5544
  width: 0,
@@ -5522,7 +5549,7 @@ const io = {
5522
5549
  right: 0
5523
5550
  };
5524
5551
  function Ve(e) {
5525
- const t = no(), r = j(0), s = j(null), [a, n] = ne(io), i = Qe(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5552
+ const t = oo(), r = j(0), s = j(null), [a, n] = ne(co), i = Je(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5526
5553
  const c = o[0];
5527
5554
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5528
5555
  s.current && t() && n(c.contentRect);
@@ -5532,8 +5559,8 @@ function Ve(e) {
5532
5559
  i?.disconnect(), r.current && cancelAnimationFrame(r.current);
5533
5560
  }), [i, e]), [s, a];
5534
5561
  }
5535
- function xs(e) {
5536
- const t = Ks();
5562
+ function Ms(e) {
5563
+ const t = Gs();
5537
5564
  if (!e)
5538
5565
  return t;
5539
5566
  if (typeof e == "number" || typeof e == "string")
@@ -5550,14 +5577,14 @@ const We = {
5550
5577
  // w-8
5551
5578
  large: 48
5552
5579
  // w-12
5553
- }, oo = {
5580
+ }, lo = {
5554
5581
  small: 16,
5555
5582
  // px-2 x 2
5556
5583
  medium: 24,
5557
5584
  // px-3 x 2
5558
5585
  large: 32
5559
5586
  // px-4 x 2
5560
- }, co = 2, lo = 300, st = ie.forwardRef(
5587
+ }, uo = 2, ho = 300, st = ie.forwardRef(
5561
5588
  ({
5562
5589
  children: e,
5563
5590
  disabled: t = !1,
@@ -5578,10 +5605,10 @@ const We = {
5578
5605
  radius: b = "large",
5579
5606
  variant: E = "secondary",
5580
5607
  iconClassName: O,
5581
- animated: A = !1,
5608
+ animated: I = !1,
5582
5609
  ...K
5583
5610
  }, R) => {
5584
- const Q = Ns({
5611
+ const J = Ps({
5585
5612
  type: dt,
5586
5613
  mode: r,
5587
5614
  focusMode: s,
@@ -5597,33 +5624,33 @@ const We = {
5597
5624
  align: g,
5598
5625
  radius: b,
5599
5626
  variant: E,
5600
- animated: A
5601
- }), C = ro({ mode: r, raw: o, iconClassName: O, variant: E }), v = so({ animated: A }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, I] = Ve(), [N, V] = Ve(), [ce, Ee] = Ve(), w = j(0), T = j(null), S = j(null), le = $s([R, T]);
5627
+ animated: I
5628
+ }), C = ao({ mode: r, raw: o, iconClassName: O, variant: E }), v = no({ animated: I }), x = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, A] = Ve(), [N, V] = Ve(), [ce, Ee] = Ve(), w = j(0), T = j(null), S = j(null), le = xs([R, T]);
5602
5629
  return Ye(() => {
5603
- ce && ce.current && A && (w.current = Ee.width + oo[u] + (c ? 0 : co), T.current && !T.current.style.width && (T.current.style.width = `${We[u]}px`));
5604
- }, [Ee, ce, u, c, A]), Ye(() => {
5605
- if (T && T.current && A) {
5630
+ ce && ce.current && I && (w.current = Ee.width + lo[u] + (c ? 0 : uo), T.current && !T.current.style.width && (T.current.style.width = `${We[u]}px`));
5631
+ }, [Ee, ce, u, c, I]), Ye(() => {
5632
+ if (T && T.current && I) {
5606
5633
  let ue = We[u];
5607
- l && _ && I.width > 0 ? ue = I.width + w.current : m && N && V.width > 0 && (ue = V.width + w.current), S.current && clearTimeout(S.current), ue !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ue}px`, ue > We[u] && (S.current = setTimeout(() => {
5634
+ l && _ && A.width > 0 ? ue = A.width + w.current : m && N && V.width > 0 && (ue = V.width + w.current), S.current && clearTimeout(S.current), ue !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${ue}px`, ue > We[u] && (S.current = setTimeout(() => {
5608
5635
  _.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), S.current = null;
5609
- }, lo * 0.8))), ue === We[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5636
+ }, ho * 0.8))), ue === We[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5610
5637
  }
5611
5638
  }, [
5612
- I,
5639
+ A,
5613
5640
  l,
5614
5641
  _,
5615
5642
  V,
5616
5643
  m,
5617
5644
  N,
5618
5645
  u,
5619
- A
5646
+ I
5620
5647
  ]), W(() => () => {
5621
5648
  S.current && clearTimeout(S.current);
5622
5649
  }, []), /* @__PURE__ */ h(
5623
- Jt,
5650
+ Qt,
5624
5651
  {
5625
5652
  ref: le,
5626
- className: Q,
5653
+ className: J,
5627
5654
  disabled: t,
5628
5655
  type: i,
5629
5656
  "aria-label": f || d,
@@ -5636,7 +5663,7 @@ const We = {
5636
5663
  labelRef: N,
5637
5664
  labelClass: v,
5638
5665
  labelInnerClass: "pr-2",
5639
- initiallyHidden: A
5666
+ initiallyHidden: I
5640
5667
  }
5641
5668
  ),
5642
5669
  /* @__PURE__ */ h("span", { ref: ce, className: C, children: e }),
@@ -5647,7 +5674,7 @@ const We = {
5647
5674
  labelRef: _,
5648
5675
  labelClass: v,
5649
5676
  labelInnerClass: "pl-2",
5650
- initiallyHidden: A
5677
+ initiallyHidden: I
5651
5678
  }
5652
5679
  )
5653
5680
  ] })
@@ -5671,19 +5698,19 @@ const We = {
5671
5698
  );
5672
5699
  st.displayName = "ButtonIcon";
5673
5700
  /*!
5674
- @versini/ui-button v8.0.2
5701
+ @versini/ui-button v8.1.0
5675
5702
  © 2025 gizmette.com
5676
5703
  */
5677
5704
  try {
5678
5705
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
5679
- version: "8.0.2",
5680
- buildTime: "10/17/2025 12:52 PM EDT",
5706
+ version: "8.1.0",
5707
+ buildTime: "10/19/2025 04:17 PM EDT",
5681
5708
  homepage: "https://github.com/aversini/ui-components",
5682
5709
  license: "MIT"
5683
5710
  });
5684
5711
  } catch {
5685
5712
  }
5686
- const uo = ie.forwardRef(
5713
+ const fo = ie.forwardRef(
5687
5714
  ({
5688
5715
  children: e,
5689
5716
  mode: t = "system",
@@ -5723,8 +5750,8 @@ const uo = ie.forwardRef(
5723
5750
  ) });
5724
5751
  }
5725
5752
  );
5726
- uo.displayName = "ButtonSort";
5727
- const Je = "av-card", ho = ({
5753
+ fo.displayName = "ButtonSort";
5754
+ const Qe = "av-card", mo = ({
5728
5755
  className: e,
5729
5756
  headerClassName: t,
5730
5757
  bodyClassName: r,
@@ -5734,7 +5761,7 @@ const Je = "av-card", ho = ({
5734
5761
  noBorder: i
5735
5762
  }) => {
5736
5763
  const o = y(
5737
- Je,
5764
+ Qe,
5738
5765
  "rounded-md",
5739
5766
  {
5740
5767
  "border-none": i,
@@ -5748,7 +5775,7 @@ const Je = "av-card", ho = ({
5748
5775
  "border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": a === "alt-system"
5749
5776
  },
5750
5777
  e
5751
- ), c = t || y(`${Je}__header mt-0 border-b-2`, {
5778
+ ), c = t || y(`${Qe}__header mt-0 border-b-2`, {
5752
5779
  "text-copy-light border-border-accent": a === "darker",
5753
5780
  "border-border-accent": a === "dark",
5754
5781
  "border-border-medium": a === "light",
@@ -5756,7 +5783,7 @@ const Je = "av-card", ho = ({
5756
5783
  "border-border-accent dark:border-border-medium": a === "alt-system",
5757
5784
  "mb-4": !n,
5758
5785
  "mb-2": n
5759
- }), f = y(r), d = s || y(`${Je}__footer pt-2`);
5786
+ }), f = y(r), d = s || y(`${Qe}__footer pt-2`);
5760
5787
  return {
5761
5788
  wrapper: o,
5762
5789
  header: c,
@@ -5764,7 +5791,7 @@ const Je = "av-card", ho = ({
5764
5791
  footer: d
5765
5792
  };
5766
5793
  };
5767
- function fo({
5794
+ function po({
5768
5795
  id: e,
5769
5796
  content: t,
5770
5797
  userAriaLabelledby: r,
@@ -5772,7 +5799,7 @@ function fo({
5772
5799
  }) {
5773
5800
  return typeof t == "string" ? /* @__PURE__ */ h("h2", { id: e, className: s, children: t }) : r ? /* @__PURE__ */ h("div", { className: s, children: t }) : t ? /* @__PURE__ */ h("div", { className: s, id: e, children: t }) : null;
5774
5801
  }
5775
- const mo = ({
5802
+ const yo = ({
5776
5803
  header: e,
5777
5804
  headerClassName: t,
5778
5805
  footer: r,
@@ -5787,7 +5814,7 @@ const mo = ({
5787
5814
  ...u
5788
5815
  }) => {
5789
5816
  let l = null, m = null;
5790
- const p = typeof e == "string", g = xs(Je), b = ho({
5817
+ const p = typeof e == "string", g = Ms(Qe), b = mo({
5791
5818
  className: n,
5792
5819
  headerClassName: t,
5793
5820
  bodyClassName: i,
@@ -5806,7 +5833,7 @@ const mo = ({
5806
5833
  ...u,
5807
5834
  children: [
5808
5835
  /* @__PURE__ */ h(
5809
- fo,
5836
+ po,
5810
5837
  {
5811
5838
  ...l && { id: l },
5812
5839
  content: e,
@@ -5870,13 +5897,13 @@ const ht = ({
5870
5897
  try {
5871
5898
  window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
5872
5899
  version: "4.2.2",
5873
- buildTime: "10/17/2025 12:12 PM EDT",
5900
+ buildTime: "10/19/2025 01:03 PM EDT",
5874
5901
  homepage: "https://github.com/aversini/ui-components",
5875
5902
  license: "MIT"
5876
5903
  });
5877
5904
  } catch {
5878
5905
  }
5879
- const po = ({
5906
+ const go = ({
5880
5907
  className: e,
5881
5908
  viewBox: t,
5882
5909
  title: r,
@@ -5893,7 +5920,7 @@ const po = ({
5893
5920
  ...a,
5894
5921
  children: /* @__PURE__ */ h("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
5895
5922
  }
5896
- ), yo = ({
5923
+ ), bo = ({
5897
5924
  className: e,
5898
5925
  viewBox: t,
5899
5926
  title: r,
@@ -5919,7 +5946,7 @@ const po = ({
5919
5946
  /* @__PURE__ */ h("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
5920
5947
  ]
5921
5948
  }
5922
- ), go = ({
5949
+ ), Eo = ({
5923
5950
  className: e,
5924
5951
  viewBox: t,
5925
5952
  title: r,
@@ -5955,7 +5982,7 @@ const po = ({
5955
5982
  ]
5956
5983
  }
5957
5984
  );
5958
- }, bo = ({
5985
+ }, wo = ({
5959
5986
  className: e,
5960
5987
  viewBox: t,
5961
5988
  title: r,
@@ -5983,22 +6010,22 @@ const po = ({
5983
6010
  }
5984
6011
  );
5985
6012
  /*!
5986
- @versini/ui-icons v4.12.3
6013
+ @versini/ui-icons v4.13.0
5987
6014
  © 2025 gizmette.com
5988
6015
  */
5989
6016
  try {
5990
6017
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
5991
- version: "4.12.3",
5992
- buildTime: "10/17/2025 12:12 PM EDT",
6018
+ version: "4.13.0",
6019
+ buildTime: "10/19/2025 01:03 PM EDT",
5993
6020
  homepage: "https://github.com/aversini/ui-components",
5994
6021
  license: "MIT"
5995
6022
  });
5996
6023
  } catch {
5997
6024
  }
5998
- const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createContext({
6025
+ const So = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createContext({
5999
6026
  columnGap: 0,
6000
6027
  rowGap: 0
6001
- }), wo = ({
6028
+ }), vo = ({
6002
6029
  children: e,
6003
6030
  className: t,
6004
6031
  columnGap: r = 1,
@@ -6024,11 +6051,11 @@ const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createCont
6024
6051
  marginLeft: r * -1 * at + "rem",
6025
6052
  marginTop: s * -1 * at + "rem"
6026
6053
  }, u = y(
6027
- Eo,
6054
+ So,
6028
6055
  "box-border flex flex-wrap"
6029
6056
  ), l = { columnGap: r, rowGap: s };
6030
6057
  return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Dt.Provider, { value: l, children: e }) }) }) : /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Dt.Provider, { value: l, children: e }) });
6031
- }, At = (e, t) => y({
6058
+ }, It = (e, t) => y({
6032
6059
  "basis-1/12": e === 1 && !t,
6033
6060
  "sm:basis-1/12": e === 1 && t === "sm",
6034
6061
  "md:basis-1/12": e === 1 && t === "md",
@@ -6101,7 +6128,7 @@ const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createCont
6101
6128
  "lg:basis-full": e === 12 && t === "lg",
6102
6129
  "xl:basis-full": e === 12 && t === "xl",
6103
6130
  "2xl:basis-full": e === 12 && t === "2xl"
6104
- }), So = ({
6131
+ }), To = ({
6105
6132
  className: e,
6106
6133
  span: t
6107
6134
  }) => {
@@ -6109,14 +6136,14 @@ const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createCont
6109
6136
  return y(e, qe, "box-border basis-auto");
6110
6137
  if (typeof t == "number")
6111
6138
  return y(e, qe, "box-border max-w-full", {
6112
- [`${At(t)}`]: !0
6139
+ [`${It(t)}`]: !0
6113
6140
  });
6114
6141
  if (typeof t == "string")
6115
6142
  return y(e, qe, "box-border basis-auto", {
6116
6143
  "max-w-full grow": t === "auto"
6117
6144
  });
6118
6145
  if (typeof t == "object") {
6119
- const r = Object.entries(t).map(([s, a]) => s === "fallback" ? At(a) : At(a, s));
6146
+ const r = Object.entries(t).map(([s, a]) => s === "fallback" ? It(a) : It(a, s));
6120
6147
  return y(
6121
6148
  e,
6122
6149
  qe,
@@ -6133,7 +6160,7 @@ const Eo = "av-flexgrid", qe = "av-flexgrid-item", at = 0.25, Dt = ie.createCont
6133
6160
  const { columnGap: a, rowGap: n } = nt(Dt), i = {
6134
6161
  paddingLeft: a * at + "rem",
6135
6162
  paddingTop: n * at + "rem"
6136
- }, o = So({
6163
+ }, o = To({
6137
6164
  className: t,
6138
6165
  span: r
6139
6166
  });
@@ -6152,7 +6179,7 @@ try {
6152
6179
  });
6153
6180
  } catch {
6154
6181
  }
6155
- const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6182
+ const Ds = "SET_ANNOUNCEMENT", Ls = "CLEAR_ANNOUNCEMENT", Io = {
6156
6183
  alert: null,
6157
6184
  alertdialog: null,
6158
6185
  log: "polite",
@@ -6160,14 +6187,14 @@ const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6160
6187
  progressbar: null,
6161
6188
  status: "polite",
6162
6189
  timer: "assertive"
6163
- }, To = (e, t) => {
6190
+ }, Ao = (e, t) => {
6164
6191
  switch (t?.type) {
6165
- case Ms:
6192
+ case Ds:
6166
6193
  return {
6167
6194
  ...e,
6168
6195
  announcement: t.payload
6169
6196
  };
6170
- case Ds:
6197
+ case Ls:
6171
6198
  return {
6172
6199
  ...e,
6173
6200
  announcement: null
@@ -6175,14 +6202,14 @@ const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6175
6202
  default:
6176
6203
  return e;
6177
6204
  }
6178
- }, Ao = ({
6205
+ }, _o = ({
6179
6206
  onAnnouncementClear: e,
6180
6207
  dispatch: t
6181
6208
  }) => {
6182
6209
  t({
6183
- type: Ds
6210
+ type: Ls
6184
6211
  }), typeof e == "function" && e();
6185
- }, Ar = ({
6212
+ }, Ir = ({
6186
6213
  children: e,
6187
6214
  clearAnnouncementDelay: t,
6188
6215
  clearAnnouncementTimeoutRef: r,
@@ -6190,16 +6217,16 @@ const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6190
6217
  dispatch: a
6191
6218
  }) => {
6192
6219
  clearTimeout(r.current), e !== null && a({
6193
- type: Ms,
6220
+ type: Ds,
6194
6221
  payload: e
6195
6222
  }), t && (r.current = setTimeout(
6196
- () => Ao({
6223
+ () => _o({
6197
6224
  onAnnouncementClear: s,
6198
6225
  dispatch: a
6199
6226
  }),
6200
6227
  t
6201
6228
  ));
6202
- }, Io = ({
6229
+ }, Ro = ({
6203
6230
  children: e,
6204
6231
  announcementTimeoutRef: t,
6205
6232
  announcementDelay: r,
@@ -6208,13 +6235,13 @@ const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6208
6235
  onAnnouncementClear: n,
6209
6236
  dispatch: i
6210
6237
  }) => {
6211
- clearTimeout(t.current), r ? t.current = setTimeout(Ar, r, {
6238
+ clearTimeout(t.current), r ? t.current = setTimeout(Ir, r, {
6212
6239
  children: e,
6213
6240
  clearAnnouncementDelay: s,
6214
6241
  clearAnnouncementTimeoutRef: a,
6215
6242
  onAnnouncementClear: n,
6216
6243
  dispatch: i
6217
- }) : Ar({
6244
+ }) : Ir({
6218
6245
  children: e,
6219
6246
  clearAnnouncementDelay: s,
6220
6247
  clearAnnouncementTimeoutRef: a,
@@ -6222,7 +6249,7 @@ const Ms = "SET_ANNOUNCEMENT", Ds = "CLEAR_ANNOUNCEMENT", vo = {
6222
6249
  dispatch: i
6223
6250
  });
6224
6251
  };
6225
- function Ls({
6252
+ function Us({
6226
6253
  children: e,
6227
6254
  className: t,
6228
6255
  politeness: r,
@@ -6233,12 +6260,12 @@ function Ls({
6233
6260
  visible: o,
6234
6261
  ...c
6235
6262
  }) {
6236
- const f = j(null), d = j(null), [u, l] = Cr(To, {
6263
+ const f = j(null), d = j(null), [u, l] = Cr(Ao, {
6237
6264
  announcement: null
6238
6265
  });
6239
6266
  let m = r;
6240
- typeof m > "u" && (m = s ? vo[s] : "assertive"), W(() => {
6241
- Io({
6267
+ typeof m > "u" && (m = s ? Io[s] : "assertive"), W(() => {
6268
+ Ro({
6242
6269
  announcementTimeoutRef: f,
6243
6270
  announcementDelay: a,
6244
6271
  children: e,
@@ -6280,21 +6307,21 @@ try {
6280
6307
  });
6281
6308
  } catch {
6282
6309
  }
6283
- const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-helper-text", Ro = ({
6310
+ const Fs = "av-text-input", Co = "av-text-input-wrapper", At = "av-text-input-helper-text", Oo = ({
6284
6311
  mode: e
6285
6312
  }) => y({
6286
6313
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6287
6314
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6288
6315
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6289
6316
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6290
- }), Co = ({
6317
+ }), ko = ({
6291
6318
  focusMode: e
6292
6319
  }) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
6293
6320
  "focus:outline-focus-dark": e === "dark",
6294
6321
  "focus:outline-focus-light": e === "light",
6295
6322
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6296
6323
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6297
- }), Oo = ({
6324
+ }), No = ({
6298
6325
  noBorder: e,
6299
6326
  error: t
6300
6327
  }) => y("border-2", {
@@ -6302,7 +6329,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6302
6329
  "focus:border-border-dark": !e && t,
6303
6330
  "border-border-error-dark": !e && t,
6304
6331
  "border-transparent": e
6305
- }), ko = ({
6332
+ }), Po = ({
6306
6333
  disabled: e,
6307
6334
  raw: t,
6308
6335
  error: r,
@@ -6326,7 +6353,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6326
6353
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
6327
6354
  "text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
6328
6355
  });
6329
- }, No = ({
6356
+ }, $o = ({
6330
6357
  error: e,
6331
6358
  raw: t,
6332
6359
  mode: r,
@@ -6336,24 +6363,24 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6336
6363
  return "";
6337
6364
  if (s)
6338
6365
  return y(
6339
- It,
6366
+ At,
6340
6367
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
6341
6368
  );
6342
6369
  if (!e)
6343
- return y(It, "absolute px-2 font-medium", {
6370
+ return y(At, "absolute px-2 font-medium", {
6344
6371
  "text-copy-lighter": r === "dark",
6345
6372
  "text-copy-dark": r === "light",
6346
6373
  "text-copy-dark dark:text-copy-lighter": r === "system",
6347
6374
  "text-copy-lighter dark:text-copy-dark": r === "alt-system"
6348
6375
  });
6349
6376
  if (e)
6350
- return y(It, "absolute px-2 font-medium", {
6377
+ return y(At, "absolute px-2 font-medium", {
6351
6378
  "text-copy-error-light bg-surface-darker": r === "dark",
6352
6379
  "text-copy-error-dark": r === "light",
6353
6380
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
6354
6381
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
6355
6382
  });
6356
- }, Po = ({
6383
+ }, xo = ({
6357
6384
  className: e,
6358
6385
  inputClassName: t,
6359
6386
  raw: r,
@@ -6367,7 +6394,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6367
6394
  }) => {
6368
6395
  const d = r ? e : y(
6369
6396
  "relative flex w-full flex-col justify-center",
6370
- _o,
6397
+ Co,
6371
6398
  e
6372
6399
  );
6373
6400
  let u = "";
@@ -6389,22 +6416,22 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6389
6416
  break;
6390
6417
  }
6391
6418
  const l = r ? y(t) : y(
6392
- Us,
6419
+ Fs,
6393
6420
  u,
6394
6421
  "rounded-md text-base px-4",
6395
- Ro({ mode: i }),
6396
- Co({ focusMode: o }),
6397
- Oo({ noBorder: a, error: n }),
6422
+ Oo({ mode: i }),
6423
+ ko({ focusMode: o }),
6424
+ No({ noBorder: a, error: n }),
6398
6425
  {
6399
6426
  "disabled:cursor-not-allowed disabled:opacity-50": s
6400
6427
  },
6401
6428
  t
6402
- ), m = r ? void 0 : "sr-only", p = ko({
6429
+ ), m = r ? void 0 : "sr-only", p = Po({
6403
6430
  disabled: s,
6404
6431
  raw: r,
6405
6432
  error: n,
6406
6433
  mode: i
6407
- }), g = No({
6434
+ }), g = $o({
6408
6435
  error: n,
6409
6436
  raw: r,
6410
6437
  mode: i,
@@ -6418,7 +6445,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6418
6445
  helperText: g,
6419
6446
  rightElement: b
6420
6447
  };
6421
- }, Qt = ie.forwardRef(
6448
+ }, Jt = ie.forwardRef(
6422
6449
  ({
6423
6450
  id: e,
6424
6451
  name: t,
@@ -6439,14 +6466,14 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6439
6466
  rightElementClassName: b,
6440
6467
  size: E = "md",
6441
6468
  ...O
6442
- }, A) => {
6443
- const [K, R] = Ve(), [Q, C] = ne(0), v = xs({ id: e, prefix: `${Us}-` }), x = `${t} error, ${p}`, _ = j(null), I = j(null), N = {
6469
+ }, I) => {
6470
+ const [K, R] = Ve(), [J, C] = ne(0), v = Ms({ id: e, prefix: `${Fs}-` }), x = `${t} error, ${p}`, _ = j(null), A = j(null), N = {
6444
6471
  xs: { label: "-25px", helperText: "30px" },
6445
6472
  sm: { label: "-29px", helperText: "34px" },
6446
6473
  md: { label: "-33px", helperText: "38px" },
6447
6474
  lg: { label: "-15px", helperText: "22px" },
6448
6475
  xl: { label: "-19px", helperText: "25px" }
6449
- }, V = Po({
6476
+ }, V = xo({
6450
6477
  className: n,
6451
6478
  inputClassName: i,
6452
6479
  error: s,
@@ -6462,7 +6489,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6462
6489
  R && R.width && C(R.width + 18 + 10);
6463
6490
  }, [R]), Ye(() => {
6464
6491
  const { label: ce, helperText: Ee } = N[E];
6465
- _?.current?.style.setProperty("--av-text-input-label", ce), I?.current?.style.setProperty(
6492
+ _?.current?.style.setProperty("--av-text-input-label", ce), A?.current?.style.setProperty(
6466
6493
  "--av-text-input-helper-text",
6467
6494
  Ee
6468
6495
  );
@@ -6479,7 +6506,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6479
6506
  /* @__PURE__ */ h(
6480
6507
  "input",
6481
6508
  {
6482
- ref: A,
6509
+ ref: I,
6483
6510
  id: v,
6484
6511
  name: t,
6485
6512
  type: m,
@@ -6488,7 +6515,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6488
6515
  className: V.input,
6489
6516
  ...p && { "aria-describedby": `${v}-helper` },
6490
6517
  ...s && { "aria-invalid": "true" },
6491
- ...g && !a && { style: { paddingRight: Q } },
6518
+ ...g && !a && { style: { paddingRight: J } },
6492
6519
  ...O
6493
6520
  }
6494
6521
  ),
@@ -6505,7 +6532,7 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6505
6532
  p && /* @__PURE__ */ h(
6506
6533
  "div",
6507
6534
  {
6508
- ref: I,
6535
+ ref: A,
6509
6536
  id: `${v}-helper`,
6510
6537
  className: V.helperText,
6511
6538
  children: p
@@ -6519,12 +6546,12 @@ const Us = "av-text-input", _o = "av-text-input-wrapper", It = "av-text-input-he
6519
6546
  children: g
6520
6547
  }
6521
6548
  ),
6522
- s && p && /* @__PURE__ */ h(Ls, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
6549
+ s && p && /* @__PURE__ */ h(Us, { politeness: "polite", clearAnnouncementDelay: 500, children: x })
6523
6550
  ] });
6524
6551
  }
6525
6552
  );
6526
- Qt.displayName = "TextInput";
6527
- const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
6553
+ Jt.displayName = "TextInput";
6554
+ const Mo = 500, Do = 5e3, Lo = 2e4, Hs = ie.forwardRef(
6528
6555
  ({
6529
6556
  name: e,
6530
6557
  disabled: t,
@@ -6541,39 +6568,39 @@ const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
6541
6568
  const [l, m] = ne(!0), [p, g] = ne({
6542
6569
  message: null,
6543
6570
  politeness: null
6544
- }), b = j(!0), E = j(null), O = j(null), A = $s([u, O]), K = l ? "Show" : "Hide", R = () => {
6571
+ }), b = j(!0), E = j(null), O = j(null), I = xs([u, O]), K = l ? "Show" : "Hide", R = () => {
6545
6572
  E.current && clearTimeout(E.current), b.current || (E.current = setTimeout(() => {
6546
6573
  b.current = !0, m(!0), g({
6547
- announcementTimeout: xo,
6574
+ announcementTimeout: Do,
6548
6575
  politeness: "polite",
6549
6576
  message: `${r} hiding characters`
6550
6577
  }), a && a(!0);
6551
- }, Mo));
6552
- }, Q = (I) => {
6553
- I.preventDefault();
6578
+ }, Lo));
6579
+ }, J = (A) => {
6580
+ A.preventDefault();
6554
6581
  const N = !b.current;
6555
6582
  b.current = N, R(), m(N), g({
6556
- announcementTimeout: $o,
6583
+ announcementTimeout: Mo,
6557
6584
  politeness: "assertive",
6558
6585
  message: N ? "Characters hidden" : "Characters showing"
6559
6586
  }), a && a(N);
6560
- }, C = (I) => {
6561
- const { relatedTarget: N } = I;
6587
+ }, C = (A) => {
6588
+ const { relatedTarget: N } = A;
6562
6589
  O.current?.parentElement?.contains(N) || c && c();
6563
- }, v = (I) => {
6564
- R(), i && i(I), C(I);
6565
- }, x = (I) => {
6566
- R(), o && o(I);
6567
- }, _ = (I) => {
6568
- R(), n && n(I);
6590
+ }, v = (A) => {
6591
+ R(), i && i(A), C(A);
6592
+ }, x = (A) => {
6593
+ R(), o && o(A);
6594
+ }, _ = (A) => {
6595
+ R(), n && n(A);
6569
6596
  };
6570
6597
  return W(() => () => {
6571
6598
  E.current && clearTimeout(E.current);
6572
6599
  }, []), /* @__PURE__ */ q(Rr, { children: [
6573
6600
  /* @__PURE__ */ h(
6574
- Qt,
6601
+ Jt,
6575
6602
  {
6576
- ref: A,
6603
+ ref: I,
6577
6604
  name: e,
6578
6605
  label: r,
6579
6606
  labelHidden: s,
@@ -6585,7 +6612,7 @@ const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
6585
6612
  rightElement: ie.cloneElement(f, {
6586
6613
  ref: u,
6587
6614
  label: K,
6588
- onClick: Q,
6615
+ onClick: J,
6589
6616
  onBlur: C,
6590
6617
  disabled: t
6591
6618
  }),
@@ -6593,7 +6620,7 @@ const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
6593
6620
  }
6594
6621
  ),
6595
6622
  /* @__PURE__ */ h(
6596
- Ls,
6623
+ Us,
6597
6624
  {
6598
6625
  role: "status",
6599
6626
  politeness: p.politeness,
@@ -6604,7 +6631,7 @@ const $o = 500, xo = 5e3, Mo = 2e4, Fs = ie.forwardRef(
6604
6631
  ] });
6605
6632
  }
6606
6633
  );
6607
- Fs.displayName = "TextInputMask";
6634
+ Hs.displayName = "TextInputMask";
6608
6635
  /*!
6609
6636
  @versini/ui-textinput v5.0.2
6610
6637
  © 2025 gizmette.com
@@ -6618,9 +6645,9 @@ try {
6618
6645
  });
6619
6646
  } catch {
6620
6647
  }
6621
- const Do = "ASK! ME! ANYTHING!", Lo = "Log in with a password", Uo = "Log in with a Passkey", el = "Log out", Fo = "Password", tl = "Usage", rl = "Profile", sl = "Settings", al = "Chat history", nl = "About", Yt = "Type your message here.", il = Yt, ol = `${Yt}
6622
- Press Enter to send it or Shift+Enter for new line.`, cl = `${Yt}
6623
- Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "Review important details.", ul = [
6648
+ const Uo = "ASK! ME! ANYTHING!", Fo = "Log in with a password", Ho = "Log in with a Passkey", nl = "Log out", Ko = "Password", il = "Usage", ol = "Profile", cl = "Settings", ll = "Chat history", ul = "About", Yt = "Type your message here.", dl = Yt, hl = `${Yt}
6649
+ Press Enter to send it or Shift+Enter for new line.`, fl = `${Yt}
6650
+ Press Ctrl+Enter to send it or Enter for new line.`, ml = "{{clipboard}}", P = "Review important details.", pl = [
6624
6651
  `Sometimes, ${k} just makes stuff up. ${P}`,
6625
6652
  `${k} may invent facts on the fly. ${P}`,
6626
6653
  `${k} may be confidently wrong. ${P}`,
@@ -6641,17 +6668,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6641
6668
  `Sometimes, ${k} howls at the moon. ${P}`,
6642
6669
  `${k} may dig up imaginary bones. ${P}`,
6643
6670
  `${k} may sniff out nonsense. ${P}`
6644
- ], dl = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", hl = "Default provider set to", fl = "Chat successfully deleted!", ml = "Chat successfully saved!", pl = "Caching enabled. Assets are now stored locally.", yl = "Caching disabled. Local asset cache cleared.", gl = "av-sassy", bl = {
6671
+ ], yl = "Prompts are pre-filled menus available on the main screen, to help you quickly start requests. If you select the 'Private Chat' checkbox, the corresponding chat will not be saved. If you select the 'Clipboard Access' checkbox, your clipboard content (if any) will be provided to the request.", gl = "Default provider set to", bl = "Chat successfully deleted!", El = "Chat successfully saved!", wl = "Caching enabled. Assets are now stored locally.", Sl = "Caching disabled. Local asset cache cleared.", vl = "av-sassy", Tl = {
6645
6672
  0: ["January", "February", "March"],
6646
6673
  3: ["April", "May", "June"],
6647
6674
  6: ["July", "August", "September"],
6648
6675
  9: ["October", "November", "December"]
6649
- }, El = {
6676
+ }, Il = {
6650
6677
  0: ["Jan", "Feb", "Mar"],
6651
6678
  3: ["Apr", "May", "Jun"],
6652
6679
  6: ["Jul", "Aug", "Sep"],
6653
6680
  9: ["Oct", "Nov", "Dec"]
6654
- }, wl = {
6681
+ }, Al = {
6655
6682
  PREFERENCES: {
6656
6683
  TITLE: "User profile",
6657
6684
  USERNAME: "Username",
@@ -6691,6 +6718,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6691
6718
  SETTINGS_ADVANCED: {
6692
6719
  TITLE: "Advanced Settings",
6693
6720
  REASONING_BUTTON_DESCRIPTION: "The following option allows you to display the Reasoning button in the chat interface. When enabled, you can toggle reasoning mode ON and OFF for more in-depth analysis.",
6721
+ NESTED_MODEL_SELECTION_DESCRIPTION: "The following option enables advanced model selection, allowing you to choose specific AI models within each provider category. This feature is only available when multiple models per provider are included in your plan.",
6694
6722
  CACHE_DESCRIPTION: "The following option enables caching of application assets for faster loading and improved performance on slow networks. This feature improves performance by storing frequently used resources locally."
6695
6723
  },
6696
6724
  SETTINGS_DETAILS: {
@@ -6699,7 +6727,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6699
6727
  SEND_ON_ENTER: "The following option allows you to choose whether you want to send a message when you press Enter or if you want to use Ctrl+Enter (Cmd+Enter on Mac). If you choose to send a message on Enter, you will need use Shift+Enter to insert a new line.",
6700
6728
  USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Diggidy will remember your previous interactions and use them to provide more relevant responses."
6701
6729
  }
6702
- }, Ho = ({
6730
+ }, Go = ({
6703
6731
  className: e,
6704
6732
  isCapabilitiesSuccess: t,
6705
6733
  capabilities: r
@@ -6711,7 +6739,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6711
6739
  "flex items-center justify-center text-slate-300"
6712
6740
  ),
6713
6741
  children: [
6714
- /* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(po, {}) }),
6742
+ /* @__PURE__ */ h("div", { className: "basis-1/4", children: /* @__PURE__ */ h(go, {}) }),
6715
6743
  /* @__PURE__ */ q("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
6716
6744
  /* @__PURE__ */ h("h1", { children: k }),
6717
6745
  /* @__PURE__ */ h(
@@ -6720,13 +6748,13 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6720
6748
  className: y({
6721
6749
  "text-red-500": t && r?.runningMode === "development"
6722
6750
  }),
6723
- children: Do
6751
+ children: Uo
6724
6752
  }
6725
6753
  )
6726
6754
  ] })
6727
6755
  ]
6728
6756
  }
6729
- ), Ko = () => {
6757
+ ), Bo = () => {
6730
6758
  const { login: e, logoutReason: t, loginWithPasskey: r } = os(), [s, a] = ne(""), [n, i] = ne(""), [o, c] = ne(!0), [f, d] = ne({
6731
6759
  username: "",
6732
6760
  password: ""
@@ -6739,20 +6767,20 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6739
6767
  }, 500);
6740
6768
  }), W(() => {
6741
6769
  t && i(t);
6742
- }, [t]), /* @__PURE__ */ q("main", { className: Rs({ extraClass: "mt-5" }), children: [
6770
+ }, [t]), /* @__PURE__ */ q("main", { className: Cs({ extraClass: "mt-5" }), children: [
6743
6771
  /* @__PURE__ */ h(
6744
6772
  "div",
6745
6773
  {
6746
- className: _s({
6774
+ className: Rs({
6747
6775
  extraClass: "rounded-md pb-10"
6748
6776
  }),
6749
- children: /* @__PURE__ */ h(Ho, {})
6777
+ children: /* @__PURE__ */ h(Go, {})
6750
6778
  }
6751
6779
  ),
6752
- /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(wo, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(mo, { mode: "dark", children: [
6780
+ /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(vo, { alignHorizontal: "center", children: /* @__PURE__ */ h(he, { span: 6, children: /* @__PURE__ */ q(yo, { mode: "dark", children: [
6753
6781
  /* @__PURE__ */ h(he, { span: 12, className: "mt-7", children: n && /* @__PURE__ */ h("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: n }) }),
6754
6782
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6755
- Qt,
6783
+ Jt,
6756
6784
  {
6757
6785
  className: "mt-7",
6758
6786
  required: !0,
@@ -6773,7 +6801,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6773
6801
  }
6774
6802
  ) }),
6775
6803
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6776
- Fs,
6804
+ Hs,
6777
6805
  {
6778
6806
  className: "mt-7",
6779
6807
  required: !0,
@@ -6783,14 +6811,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6783
6811
  mode: "dark",
6784
6812
  focusMode: "light",
6785
6813
  name: "password",
6786
- label: Fo,
6814
+ label: Ko,
6787
6815
  rightElement: /* @__PURE__ */ h(
6788
6816
  st,
6789
6817
  {
6790
6818
  focusMode: "light",
6791
6819
  mode: "dark",
6792
6820
  label: o ? "Show" : "Hide",
6793
- children: o ? /* @__PURE__ */ h(bo, {}) : /* @__PURE__ */ h(yo, {})
6821
+ children: o ? /* @__PURE__ */ h(wo, {}) : /* @__PURE__ */ h(bo, {})
6794
6822
  }
6795
6823
  ),
6796
6824
  onMaskChange: c,
@@ -6805,7 +6833,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6805
6833
  }
6806
6834
  ) }),
6807
6835
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6808
- Ps,
6836
+ $s,
6809
6837
  {
6810
6838
  mode: "dark",
6811
6839
  focusMode: "light",
@@ -6813,10 +6841,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6813
6841
  noBorder: !0,
6814
6842
  type: "submit",
6815
6843
  className: "mt-7",
6816
- children: Lo
6844
+ children: Fo
6817
6845
  }
6818
6846
  ) }),
6819
- !Cs() && /* @__PURE__ */ q(Rr, { children: [
6847
+ !Os() && /* @__PURE__ */ q(Rr, { children: [
6820
6848
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
6821
6849
  /* @__PURE__ */ h(he, { span: 12, children: /* @__PURE__ */ h(
6822
6850
  st,
@@ -6826,34 +6854,34 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6826
6854
  focusMode: "light",
6827
6855
  fullWidth: !0,
6828
6856
  className: "mb-4",
6829
- labelRight: Uo,
6857
+ labelRight: Ho,
6830
6858
  onClick: r,
6831
- children: /* @__PURE__ */ h(go, { size: "size-7" })
6859
+ children: /* @__PURE__ */ h(Eo, { size: "size-7" })
6832
6860
  }
6833
6861
  ) })
6834
6862
  ] })
6835
6863
  ] }) }) }) })
6836
6864
  ] });
6837
- }, Go = new URL(document.location.href).searchParams, Ir = !!Go.get("debug") || !1, Bo = Bs(() => import(
6865
+ }, Wo = new URL(document.location.href).searchParams, Ar = !!Wo.get("debug") || !1, qo = Ws(() => import(
6838
6866
  /* webpackChunkName: "LazyApp" */
6839
- "./App.BTLwEx8P.js"
6840
- ).then((e) => e.App)), Wo = new ha(), _r = ({
6867
+ "./App.NiMe9pNP.js"
6868
+ ).then((e) => e.App)), jo = new fa(), _r = ({
6841
6869
  isComponent: e,
6842
6870
  headerHeight: t
6843
6871
  }) => {
6844
6872
  const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = os();
6845
- return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Gs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(fa, { client: Wo, children: /* @__PURE__ */ h(
6846
- Si,
6873
+ return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Bs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(ma, { client: jo, children: /* @__PURE__ */ h(
6874
+ vi,
6847
6875
  {
6848
6876
  user: a?.username,
6849
6877
  getAccessToken: n,
6850
- children: /* @__PURE__ */ h(Bo, { isComponent: e, headerHeight: t })
6878
+ children: /* @__PURE__ */ h(qo, { isComponent: e, headerHeight: t })
6851
6879
  }
6852
- ) }) }) : /* @__PURE__ */ h(Ko, {});
6853
- }, qo = ({
6880
+ ) }) }) : /* @__PURE__ */ h(Bo, {});
6881
+ }, Vo = ({
6854
6882
  isComponent: e = !1,
6855
6883
  headerHeight: t = 0,
6856
- domain: r = Is
6884
+ domain: r = _s
6857
6885
  }) => (W(() => {
6858
6886
  e || us().catch((s) => {
6859
6887
  console.error("[SW] Failed to register service worker:", s);
@@ -6863,12 +6891,12 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6863
6891
  {
6864
6892
  clientId: Er,
6865
6893
  domain: r,
6866
- debug: Ir,
6894
+ debug: Ar,
6867
6895
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
6868
6896
  children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t })
6869
6897
  }
6870
- ) : /* @__PURE__ */ h(br, { clientId: Er, domain: r, debug: Ir, children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t }) })), Sl = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
6871
- qo,
6898
+ ) : /* @__PURE__ */ h(br, { clientId: Er, domain: r, debug: Ar, children: /* @__PURE__ */ h(_r, { isComponent: e, headerHeight: t }) })), _l = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
6899
+ Vo,
6872
6900
  {
6873
6901
  isComponent: !0,
6874
6902
  domain: e,
@@ -6876,119 +6904,123 @@ Press Ctrl+Enter to send it or Enter for new line.`, ll = "{{clipboard}}", P = "
6876
6904
  }
6877
6905
  );
6878
6906
  export {
6879
- nl as ABOUT_TITLE,
6880
- ic as ACTION_RESET_PROMPT,
6881
- sc as ACTION_SEARCH,
6882
- ac as ACTION_SORT,
6883
- nc as ACTION_TOGGLE_PROMPT,
6884
- gl as APP_CLASSNAME,
6885
- Ps as C,
6886
- wl as CARDS,
6887
- ll as CLIPBOARD_PROMPT,
6888
- wc as DEFAULT_ICON_ACTION_SIZE,
6889
- Nc as E,
6890
- rc as ERROR_MESSAGE,
6891
- ul as FOOTER_DISCLAIMERS,
6892
- al as HISTORY_TITLE,
6907
+ ul as ABOUT_TITLE,
6908
+ lc as ACTION_RESET_PROMPT,
6909
+ ic as ACTION_SEARCH,
6910
+ oc as ACTION_SORT,
6911
+ cc as ACTION_TOGGLE_PROMPT,
6912
+ vl as APP_CLASSNAME,
6913
+ Lc as B,
6914
+ $s as C,
6915
+ Al as CARDS,
6916
+ ml as CLIPBOARD_PROMPT,
6917
+ Tc as DEFAULT_ICON_ACTION_SIZE,
6918
+ Mc as E,
6919
+ nc as ERROR_MESSAGE,
6920
+ jc as Et,
6921
+ pl as FOOTER_DISCLAIMERS,
6922
+ gi as H,
6923
+ ll as HISTORY_TITLE,
6893
6924
  ht as I,
6894
- gc as INFINITE_SCROLL_LIMIT,
6895
- yc as INFINITE_SCROLL_THRESHOLD,
6896
- Ic as INPUT_BOTTOM_OFFSET,
6897
- Cc as INPUT_BOTTOM_OFFSET_EXTRA,
6898
- Rc as INPUT_BOTTOM_OFFSET_IPAD,
6899
- _c as INPUT_BOTTOM_OFFSET_IPHONE,
6900
- cl as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
6901
- ol as INPUT_PLACEHOLDER_TEXT_ENTER,
6902
- il as INPUT_PLACEHOLDER_TEXT_MOBILE,
6903
- k as J,
6904
- Lc as K,
6905
- wo as L,
6906
- fc as LOCAL_STORAGE_FAVORITES_ONLY,
6925
+ wc as INFINITE_SCROLL_LIMIT,
6926
+ Ec as INFINITE_SCROLL_THRESHOLD,
6927
+ Cc as INPUT_BOTTOM_OFFSET,
6928
+ Nc as INPUT_BOTTOM_OFFSET_EXTRA,
6929
+ kc as INPUT_BOTTOM_OFFSET_IPAD,
6930
+ Oc as INPUT_BOTTOM_OFFSET_IPHONE,
6931
+ fl as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
6932
+ hl as INPUT_PLACEHOLDER_TEXT_ENTER,
6933
+ dl as INPUT_PLACEHOLDER_TEXT_MOBILE,
6934
+ Kc as J,
6935
+ Fc as K,
6936
+ vo as L,
6937
+ yc as LOCAL_STORAGE_FAVORITES_ONLY,
6907
6938
  cs as LOCAL_STORAGE_PREFIX,
6908
- mc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
6909
- pc as LOCAL_STORAGE_REASONING_DISCLOSURE,
6910
- oc as LOCAL_STORAGE_SEARCH,
6911
- cc as LOCAL_STORAGE_SORT,
6912
- hc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
6913
- dc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
6914
- lc as LOCAL_STORAGE_SORT_TIMESTAMP,
6915
- uc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
6916
- el as LOG_OUT,
6917
- Ho as Logo,
6918
- Ue as O,
6919
- rl as PROFILE_TITLE,
6920
- dl as PROMPTS_DESCRIPTION,
6921
- bc as PROMPT_CLASSNAME,
6922
- Ec as PROMPT_EDITABLE_AREA_CLASSNAME,
6923
- mo as S,
6939
+ gc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
6940
+ bc as LOCAL_STORAGE_REASONING_DISCLOSURE,
6941
+ uc as LOCAL_STORAGE_SEARCH,
6942
+ dc as LOCAL_STORAGE_SORT,
6943
+ pc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
6944
+ mc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
6945
+ hc as LOCAL_STORAGE_SORT_TIMESTAMP,
6946
+ fc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
6947
+ nl as LOG_OUT,
6948
+ Go as Logo,
6949
+ lt as O,
6950
+ ol as PROFILE_TITLE,
6951
+ yl as PROMPTS_DESCRIPTION,
6952
+ Sc as PROMPT_CLASSNAME,
6953
+ vc as PROMPT_EDITABLE_AREA_CLASSNAME,
6954
+ k as Q,
6955
+ yo as S,
6924
6956
  z as SERVICE_TYPES,
6925
- sl as SETTINGS_TITLE,
6926
- Sl as SassySaint,
6927
- yl as TOAST_CACHE_DISABLED,
6928
- pl as TOAST_CACHE_ENABLED,
6929
- fl as TOAST_CHAT_DELETED,
6930
- ml as TOAST_CHAT_SAVED,
6931
- hl as TOAST_PROVIDER_CHANGED,
6932
- bl as TRIMESTERS,
6933
- El as TRIMESTERS_SHORT,
6934
- vc as UI_BUTTON_SCROLL_BUFFER,
6935
- Tc as UI_DEFAULT_MAIN_HEIGHT,
6936
- Ac as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
6937
- Sc as UI_FOOTER_BUFFER,
6938
- tl as USAGE_TITLE,
6939
- $c as Y,
6940
- Qt as Y$1,
6941
- Uc as Z,
6942
- lt as _,
6943
- uo as b,
6944
- xc as b$1,
6957
+ cl as SETTINGS_TITLE,
6958
+ _l as SassySaint,
6959
+ Sl as TOAST_CACHE_DISABLED,
6960
+ wl as TOAST_CACHE_ENABLED,
6961
+ bl as TOAST_CHAT_DELETED,
6962
+ El as TOAST_CHAT_SAVED,
6963
+ gl as TOAST_PROVIDER_CHANGED,
6964
+ Tl as TRIMESTERS,
6965
+ Il as TRIMESTERS_SHORT,
6966
+ Ac as UI_BUTTON_SCROLL_BUFFER,
6967
+ _c as UI_DEFAULT_MAIN_HEIGHT,
6968
+ Rc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
6969
+ Ic as UI_FOOTER_BUFFER,
6970
+ il as USAGE_TITLE,
6971
+ Dc as Y,
6972
+ Jt as Y$1,
6973
+ Hc as Z,
6974
+ fo as b,
6945
6975
  ut as c,
6946
- qi as convertCamelCaseToReadable,
6947
- Ki as debounce,
6948
- Pc as e,
6949
- kc as getCacheInfo,
6950
- Pi as getCurrentGeoLocation,
6951
- Rs as getLayoutPaddingClass,
6952
- _s as getMessageContaintWrapperClass,
6976
+ Qi as canEvaluateModels,
6977
+ ji as convertCamelCaseToReadable,
6978
+ Gi as debounce,
6979
+ xc as e,
6980
+ qc as et,
6981
+ $c as getCacheInfo,
6982
+ $i as getCurrentGeoLocation,
6983
+ Cs as getLayoutPaddingClass,
6984
+ Rs as getMessageContaintWrapperClass,
6953
6985
  Ve as h,
6954
- Oc as handleServiceWorkerToggle,
6955
- xs as i,
6956
- Wi as isPWAMode,
6957
- Os as isProbablyMobile,
6958
- Bi as isProbablyiPad,
6959
- Gi as isProbablyiPhone,
6986
+ Pc as handleServiceWorkerToggle,
6987
+ Ms as i,
6988
+ qi as isPWAMode,
6989
+ ks as isProbablyMobile,
6990
+ Wi as isProbablyiPad,
6991
+ Bi as isProbablyiPhone,
6960
6992
  xt as isServiceWorkerEnabled,
6961
- Cs as isTauri,
6993
+ Os as isTauri,
6962
6994
  Pe as it,
6963
6995
  he as j,
6964
- go as l,
6965
- vs as mutateCall,
6996
+ Eo as l,
6997
+ Ts as mutateCall,
6966
6998
  os as n,
6967
- Hc as nt,
6968
- Ui as numberFormatter,
6969
- $s as o,
6970
- $i as obfuscate,
6971
- Kc as ot,
6972
- Hi as pluralize,
6973
- Mi as renderDataAsList,
6974
- Ei as serverUrl,
6975
- Gc as setNewProvider,
6976
- Bc as setUserPlan,
6999
+ Gc as nt,
7000
+ Fi as numberFormatter,
7001
+ xs as o,
7002
+ xi as obfuscate,
7003
+ Bc as ot,
7004
+ Ki as pluralize,
7005
+ Ue as r,
7006
+ Di as renderDataAsList,
7007
+ wi as serverUrl,
7008
+ Vc as setNewProvider,
7009
+ Qc as setUserPlan,
7010
+ Wc as st,
6977
7011
  st as te,
6978
- Fc as tt,
6979
- xi as unObfuscate,
6980
- qc as useChangelogs,
6981
- Vc as useChatsHistory,
6982
- Jc as useChatsUsage,
6983
- zc as useDeleteAllMemories,
6984
- Yc as useDeleteMemory,
6985
- Xc as useEntitlements,
6986
- Wc as useServerCapabilities,
6987
- jc as useUserChatStats,
6988
- Qc as useUserMemories,
6989
- wi as useUserPreferences,
6990
- Zc as utilities,
6991
- Mc as x,
6992
- Ls as x$1,
6993
- Dc as z
7012
+ Mi as unObfuscate,
7013
+ Yc as useChangelogs,
7014
+ Xc as useChatsHistory,
7015
+ Zc as useChatsUsage,
7016
+ rl as useDeleteAllMemories,
7017
+ tl as useDeleteMemory,
7018
+ sl as useEntitlements,
7019
+ Jc as useServerCapabilities,
7020
+ zc as useUserChatStats,
7021
+ el as useUserMemories,
7022
+ Si as useUserPreferences,
7023
+ al as utilities,
7024
+ Uc as x,
7025
+ Us as x$1
6994
7026
  };