@versini/sassysaint 8.75.2 → 8.75.3

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 (26) hide show
  1. package/dist/chunks/{AboutChangelog.-09rDc7R.js → AboutChangelog.DeW-Wsvl.js} +2 -2
  2. package/dist/chunks/{AboutEntry.DySh-Kj4.js → AboutEntry.hp1PCH1z.js} +10 -10
  3. package/dist/chunks/{App.OJ7iIDg1.js → App.Bp83hXd-.js} +16 -16
  4. package/dist/chunks/{Chart.BWrkHo4o.js → Chart.DyNB5HAI.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.BMFC9NZo.js → ChatBubbleAssistant.wcBK5fz8.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.CwzORb-4.js → ChatBubbleUser.CF1ETIz4.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.CMNFWVgF.js → ChatHistoryTable.CqvT-F88.js} +3 -3
  8. package/dist/chunks/{HistoryEntry.D43TUZSf.js → HistoryEntry.BUgrbL2A.js} +3 -3
  9. package/dist/chunks/{ProfileEntry.fzz8284r.js → ProfileEntry.DwUlfjQ0.js} +2 -2
  10. package/dist/chunks/{SettingsEntry.DCb-7CHz.js → SettingsEntry.Bz-qx9j9.js} +3 -3
  11. package/dist/chunks/{Table.vwsyDd6C.js → Table.DZBKIFOu.js} +2 -2
  12. package/dist/chunks/{UsageEntry.DHNcKGPb.js → UsageEntry.CWynZD0K.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.DLUZiNly.js → UserMemoriesPanel.CPUIg1Ei.js} +4 -4
  14. package/dist/chunks/{index.gfDpYQwb.js → index.BkV_Kigj.js} +705 -701
  15. package/dist/chunks/{index.zjPeYJsX.js → index.Bsr7P_Sg.js} +1 -1
  16. package/dist/chunks/{index.iZKJIXqk.js → index.CUadTohS.js} +3 -3
  17. package/dist/chunks/{index.BnjDl1wI.js → index.D0deFGsT.js} +1 -1
  18. package/dist/chunks/{index.Dw3nYM7U.js → index.DHFyiJeE.js} +1 -1
  19. package/dist/chunks/{index.B6nJvbxw.js → index.DQ8k8dci.js} +1 -1
  20. package/dist/chunks/{index.CfUQ2p8X.js → index.DlKt8Xr1.js} +2 -2
  21. package/dist/chunks/{index.9aA-CFJ2.js → index.xg2w92uM.js} +1 -1
  22. package/dist/chunks/{useMarkdown.D58U8PrF.js → useMarkdown.DCLyo2fD.js} +6 -6
  23. package/dist/components/SassySaint/SassySaint.js +1 -1
  24. package/dist/index.js +4 -4
  25. package/dist/style.css +1 -1
  26. package/package.json +4 -4
@@ -1,6 +1,6 @@
1
- import { jsx as h, jsxs as j, Fragment as kr } from "react/jsx-runtime";
1
+ import { jsx as h, jsxs as j, Fragment as Nr } from "react/jsx-runtime";
2
2
  import * as q from "react";
3
- import le, { createContext as Ft, useReducer as Nr, useCallback as X, useRef as Q, useEffect as V, useSyncExternalStore as Gs, useContext as ct, useState as ce, useMemo as ze, useId as qs, useLayoutEffect as Xe, Suspense as Bs, lazy as Ws } from "react";
3
+ import le, { createContext as Ft, useReducer as Pr, useCallback as X, useRef as Q, useEffect as V, useSyncExternalStore as qs, useContext as ct, useState as ce, useMemo as ze, useId as Bs, useLayoutEffect as Xe, Suspense as Ws, lazy as Vs } from "react";
4
4
  import y from "clsx";
5
5
  var Pe = class {
6
6
  constructor() {
@@ -18,7 +18,7 @@ var Pe = class {
18
18
  }
19
19
  onUnsubscribe() {
20
20
  }
21
- }, Vs = {
21
+ }, js = {
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 Pe = class {
33
33
  clearTimeout: (e) => clearTimeout(e),
34
34
  setInterval: (e, t) => setInterval(e, t),
35
35
  clearInterval: (e) => clearInterval(e)
36
- }, js = class {
36
+ }, Qs = 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 = Vs;
43
+ #e = js;
44
44
  #t = !1;
45
45
  setTimeoutProvider(e) {
46
46
  process.env.NODE_ENV !== "production" && this.#t && e !== this.#e && console.error(
@@ -60,20 +60,20 @@ var Pe = class {
60
60
  clearInterval(e) {
61
61
  this.#e.clearInterval(e);
62
62
  }
63
- }, Ee = new js();
64
- function Qs(e) {
63
+ }, Ee = new Qs();
64
+ function Js(e) {
65
65
  setTimeout(e, 0);
66
66
  }
67
67
  var be = typeof window > "u" || "Deno" in globalThis;
68
68
  function W() {
69
69
  }
70
- function Js(e, t) {
70
+ function Ys(e, t) {
71
71
  return typeof e == "function" ? e(t) : e;
72
72
  }
73
73
  function Ot(e) {
74
74
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
75
75
  }
76
- function Pr(e, t) {
76
+ function $r(e, t) {
77
77
  return Math.max(e + (t || 0) - Date.now(), 0);
78
78
  }
79
79
  function pe(e, t) {
@@ -130,7 +130,7 @@ function Se(e) {
130
130
  function De(e, t) {
131
131
  return e === t ? !0 : typeof e != typeof t ? !1 : e && t && typeof e == "object" && typeof t == "object" ? Object.keys(t).every((r) => De(e[r], t[r])) : !1;
132
132
  }
133
- var Ys = Object.prototype.hasOwnProperty;
133
+ var zs = Object.prototype.hasOwnProperty;
134
134
  function Ct(e, t) {
135
135
  if (e === t)
136
136
  return e;
@@ -141,7 +141,7 @@ function Ct(e, t) {
141
141
  for (let f = 0; f < i; f++) {
142
142
  const d = r ? f : n[f], u = e[d], l = t[d];
143
143
  if (u === l) {
144
- o[d] = u, (r ? f < a : Ys.call(e, d)) && c++;
144
+ o[d] = u, (r ? f < a : zs.call(e, d)) && c++;
145
145
  continue;
146
146
  }
147
147
  if (u === null || l === null || typeof u != "object" || typeof l != "object") {
@@ -176,7 +176,7 @@ function kt(e) {
176
176
  function sr(e) {
177
177
  return Object.prototype.toString.call(e) === "[object Object]";
178
178
  }
179
- function zs(e) {
179
+ function Xs(e) {
180
180
  return new Promise((t) => {
181
181
  Ee.setTimeout(t, e);
182
182
  });
@@ -197,24 +197,24 @@ function Nt(e, t, r) {
197
197
  }
198
198
  return t;
199
199
  }
200
- function Xs(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 ea(e, t, r = 0) {
205
205
  const s = [t, ...e];
206
206
  return r && s.length > r ? s.slice(0, -1) : s;
207
207
  }
208
208
  var et = Symbol();
209
- function $r(e, t) {
209
+ function Mr(e, t) {
210
210
  return process.env.NODE_ENV !== "production" && e.queryFn === et && console.error(
211
211
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
212
212
  ), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === et ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
213
213
  }
214
- function Mr(e, t) {
214
+ function xr(e, t) {
215
215
  return typeof e == "function" ? e(...t) : !!e;
216
216
  }
217
- var ea = class extends Pe {
217
+ var ta = class extends Pe {
218
218
  #e;
219
219
  #t;
220
220
  #r;
@@ -251,7 +251,7 @@ var ea = class extends Pe {
251
251
  isFocused() {
252
252
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
253
253
  }
254
- }, Kt = new ea();
254
+ }, Kt = new ta();
255
255
  function Pt() {
256
256
  let e, t;
257
257
  const r = new Promise((a, n) => {
@@ -274,13 +274,13 @@ function Pt() {
274
274
  }), t(a);
275
275
  }, r;
276
276
  }
277
- var ta = Qs;
278
- function ra() {
277
+ var ra = Js;
278
+ function sa() {
279
279
  let e = [], t = 0, r = (o) => {
280
280
  o();
281
281
  }, s = (o) => {
282
282
  o();
283
- }, a = ta;
283
+ }, a = ra;
284
284
  const n = (o) => {
285
285
  t ? e.push(o) : a(() => {
286
286
  r(o);
@@ -334,7 +334,7 @@ function ra() {
334
334
  }
335
335
  };
336
336
  }
337
- var M = ra(), sa = class extends Pe {
337
+ var M = sa(), aa = class extends Pe {
338
338
  #e = !0;
339
339
  #t;
340
340
  #r;
@@ -365,11 +365,11 @@ var M = ra(), sa = class extends Pe {
365
365
  isOnline() {
366
366
  return this.#e;
367
367
  }
368
- }, tt = new sa();
369
- function aa(e) {
368
+ }, tt = new aa();
369
+ function na(e) {
370
370
  return Math.min(1e3 * 2 ** e, 3e4);
371
371
  }
372
- function xr(e) {
372
+ function Dr(e) {
373
373
  return (e ?? "online") === "online" ? tt.isOnline() : !0;
374
374
  }
375
375
  var $t = class extends Error {
@@ -377,7 +377,7 @@ var $t = class extends Error {
377
377
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
378
378
  }
379
379
  };
380
- function Dr(e) {
380
+ function Lr(e) {
381
381
  let t = !1, r = 0, s;
382
382
  const a = Pt(), n = () => a.status !== "pending", i = (g) => {
383
383
  if (!n()) {
@@ -388,7 +388,7 @@ function Dr(e) {
388
388
  t = !0;
389
389
  }, c = () => {
390
390
  t = !1;
391
- }, f = () => Kt.isFocused() && (e.networkMode === "always" || tt.isOnline()) && e.canRun(), d = () => xr(e.networkMode) && e.canRun(), u = (g) => {
391
+ }, f = () => Kt.isFocused() && (e.networkMode === "always" || tt.isOnline()) && e.canRun(), d = () => Dr(e.networkMode) && e.canRun(), u = (g) => {
392
392
  n() || (s?.(), a.resolve(g));
393
393
  }, l = (g) => {
394
394
  n() || (s?.(), a.reject(g));
@@ -411,12 +411,12 @@ function Dr(e) {
411
411
  Promise.resolve(g).then(u).catch((b) => {
412
412
  if (n())
413
413
  return;
414
- const C = e.retry ?? (be ? 0 : 3), I = e.retryDelay ?? aa, B = typeof I == "function" ? I(r, b) : I, R = C === !0 || typeof C == "number" && r < C || typeof C == "function" && C(r, b);
414
+ const C = e.retry ?? (be ? 0 : 3), I = e.retryDelay ?? na, B = typeof I == "function" ? I(r, b) : I, R = C === !0 || typeof C == "number" && r < C || typeof C == "function" && C(r, b);
415
415
  if (t || !R) {
416
416
  l(b);
417
417
  return;
418
418
  }
419
- r++, e.onFail?.(r, b), zs(B).then(() => f() ? void 0 : m()).then(() => {
419
+ r++, e.onFail?.(r, b), Xs(B).then(() => f() ? void 0 : m()).then(() => {
420
420
  t ? l(b) : p();
421
421
  });
422
422
  });
@@ -432,7 +432,7 @@ function Dr(e) {
432
432
  start: () => (d() ? p() : m().then(p), a)
433
433
  };
434
434
  }
435
- var Lr = class {
435
+ var Ur = class {
436
436
  #e;
437
437
  destroy() {
438
438
  this.clearGcTimeout();
@@ -451,7 +451,7 @@ var Lr = class {
451
451
  clearGcTimeout() {
452
452
  this.#e && (Ee.clearTimeout(this.#e), this.#e = void 0);
453
453
  }
454
- }, na = class extends Lr {
454
+ }, ia = class extends Ur {
455
455
  #e;
456
456
  #t;
457
457
  #r;
@@ -460,7 +460,7 @@ var Lr = class {
460
460
  #i;
461
461
  #o;
462
462
  constructor(e) {
463
- super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#a = e.client, this.#r = this.#a.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = ar(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
463
+ super(), this.#o = !1, this.#i = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#a = e.client, this.#r = this.#a.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = nr(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
464
464
  }
465
465
  get meta() {
466
466
  return this.options.meta;
@@ -470,11 +470,10 @@ var Lr = class {
470
470
  }
471
471
  setOptions(e) {
472
472
  if (this.options = { ...this.#i, ...e }, this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
473
- const t = ar(this.options);
474
- t.data !== void 0 && (this.setData(t.data, {
475
- updatedAt: t.dataUpdatedAt,
476
- manual: !0
477
- }), this.#e = t);
473
+ const t = nr(this.options);
474
+ t.data !== void 0 && (this.setState(
475
+ ar(t.data, t.dataUpdatedAt)
476
+ ), this.#e = t);
478
477
  }
479
478
  }
480
479
  optionalRemove() {
@@ -521,7 +520,7 @@ var Lr = class {
521
520
  ) : this.state.data === void 0 || this.state.isInvalidated;
522
521
  }
523
522
  isStaleByTime(e = 0) {
524
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Pr(this.state.dataUpdatedAt, e);
523
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !$r(this.state.dataUpdatedAt, e);
525
524
  }
526
525
  onFocus() {
527
526
  this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#s?.continue();
@@ -564,7 +563,7 @@ var Lr = class {
564
563
  get: () => (this.#o = !0, r.signal)
565
564
  });
566
565
  }, a = () => {
567
- const o = $r(this.options, t), f = (() => {
566
+ const o = Mr(this.options, t), f = (() => {
568
567
  const d = {
569
568
  client: this.#a,
570
569
  queryKey: this.queryKey,
@@ -588,7 +587,7 @@ var Lr = class {
588
587
  };
589
588
  return s(o), o;
590
589
  })();
591
- this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = Dr({
590
+ this.options.behavior?.onFetch(i, this), this.#t = this.state, (this.state.fetchStatus === "idle" || this.state.fetchMeta !== i.fetchOptions?.meta) && this.#n({ type: "fetch", meta: i.fetchOptions?.meta }), this.#s = Lr({
592
591
  initialPromise: t?.initialPromise,
593
592
  fn: i.fetchFn,
594
593
  onCancel: (o) => {
@@ -669,18 +668,14 @@ var Lr = class {
669
668
  case "fetch":
670
669
  return {
671
670
  ...r,
672
- ...Ur(r.data, this.options),
671
+ ...Fr(r.data, this.options),
673
672
  fetchMeta: e.meta ?? null
674
673
  };
675
674
  case "success":
676
675
  const s = {
677
676
  ...r,
678
- data: e.data,
677
+ ...ar(e.data, e.dataUpdatedAt),
679
678
  dataUpdateCount: r.dataUpdateCount + 1,
680
- dataUpdatedAt: e.dataUpdatedAt ?? Date.now(),
681
- error: null,
682
- isInvalidated: !1,
683
- status: "success",
684
679
  ...!e.manual && {
685
680
  fetchStatus: "idle",
686
681
  fetchFailureCount: 0,
@@ -719,18 +714,27 @@ var Lr = class {
719
714
  });
720
715
  }
721
716
  };
722
- function Ur(e, t) {
717
+ function Fr(e, t) {
723
718
  return {
724
719
  fetchFailureCount: 0,
725
720
  fetchFailureReason: null,
726
- fetchStatus: xr(t.networkMode) ? "fetching" : "paused",
721
+ fetchStatus: Dr(t.networkMode) ? "fetching" : "paused",
727
722
  ...e === void 0 && {
728
723
  error: null,
729
724
  status: "pending"
730
725
  }
731
726
  };
732
727
  }
733
- function ar(e) {
728
+ function ar(e, t) {
729
+ return {
730
+ data: e,
731
+ dataUpdatedAt: t ?? Date.now(),
732
+ error: null,
733
+ isInvalidated: !1,
734
+ status: "success"
735
+ };
736
+ }
737
+ function nr(e) {
734
738
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, s = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
735
739
  return {
736
740
  data: t,
@@ -747,7 +751,7 @@ function ar(e) {
747
751
  fetchStatus: "idle"
748
752
  };
749
753
  }
750
- var ia = class extends Pe {
754
+ var oa = class extends Pe {
751
755
  constructor(e, t) {
752
756
  super(), this.options = t, this.#e = e, this.#n = null, this.#o = Pt(), this.bindMethods(), this.setOptions(t);
753
757
  }
@@ -772,7 +776,7 @@ var ia = class extends Pe {
772
776
  this.refetch = this.refetch.bind(this);
773
777
  }
774
778
  onSubscribe() {
775
- this.listeners.size === 1 && (this.#t.addObserver(this), nr(this.#t, this.options) ? this.#d() : this.updateResult(), this.#b());
779
+ this.listeners.size === 1 && (this.#t.addObserver(this), ir(this.#t, this.options) ? this.#d() : this.updateResult(), this.#b());
776
780
  }
777
781
  onUnsubscribe() {
778
782
  this.hasListeners() || this.destroy();
@@ -806,7 +810,7 @@ var ia = class extends Pe {
806
810
  observer: this
807
811
  });
808
812
  const s = this.hasListeners();
809
- s && ir(
813
+ s && or(
810
814
  this.#t,
811
815
  r,
812
816
  this.options,
@@ -817,7 +821,7 @@ var ia = class extends Pe {
817
821
  }
818
822
  getOptimisticResult(e) {
819
823
  const t = this.#e.getQueryCache().build(this.#e, e), r = this.createResult(t, e);
820
- return ca(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
824
+ return la(this, r) && (this.#a = r, this.#i = this.options, this.#s = this.#t.state), r;
821
825
  }
822
826
  getCurrentResult() {
823
827
  return this.#a;
@@ -868,7 +872,7 @@ var ia = class extends Pe {
868
872
  );
869
873
  if (be || this.#a.isStale || !Ot(e))
870
874
  return;
871
- const r = Pr(this.#a.dataUpdatedAt, e) + 1;
875
+ const r = $r(this.#a.dataUpdatedAt, e) + 1;
872
876
  this.#l = Ee.setTimeout(() => {
873
877
  this.#a.isStale || this.updateResult();
874
878
  }, r);
@@ -894,10 +898,10 @@ var ia = class extends Pe {
894
898
  const r = this.#t, s = this.options, a = this.#a, n = this.#s, i = this.#i, c = e !== r ? e.state : this.#r, { state: f } = e;
895
899
  let d = { ...f }, u = !1, l;
896
900
  if (t._optimisticResults) {
897
- const v = this.hasListeners(), L = !v && nr(e, t), _ = v && ir(e, r, t, s);
901
+ const v = this.hasListeners(), L = !v && ir(e, t), _ = v && or(e, r, t, s);
898
902
  (L || _) && (d = {
899
903
  ...d,
900
- ...Ur(f.data, e.options)
904
+ ...Fr(f.data, e.options)
901
905
  }), t._optimisticResults === "isRestoring" && (d.fetchStatus = "idle");
902
906
  }
903
907
  let { error: m, errorUpdatedAt: p, status: g } = d;
@@ -1015,11 +1019,11 @@ var ia = class extends Pe {
1015
1019
  });
1016
1020
  }
1017
1021
  };
1018
- function oa(e, t) {
1022
+ function ca(e, t) {
1019
1023
  return Y(t.enabled, e) !== !1 && e.state.data === void 0 && !(e.state.status === "error" && t.retryOnMount === !1);
1020
1024
  }
1021
- function nr(e, t) {
1022
- return oa(e, t) || e.state.data !== void 0 && Mt(e, t, t.refetchOnMount);
1025
+ function ir(e, t) {
1026
+ return ca(e, t) || e.state.data !== void 0 && Mt(e, t, t.refetchOnMount);
1023
1027
  }
1024
1028
  function Mt(e, t, r) {
1025
1029
  if (Y(t.enabled, e) !== !1 && pe(t.staleTime, e) !== "static") {
@@ -1028,16 +1032,16 @@ function Mt(e, t, r) {
1028
1032
  }
1029
1033
  return !1;
1030
1034
  }
1031
- function ir(e, t, r, s) {
1035
+ function or(e, t, r, s) {
1032
1036
  return (e !== t || Y(s.enabled, e) === !1) && (!r.suspense || e.state.status !== "error") && Gt(e, r);
1033
1037
  }
1034
1038
  function Gt(e, t) {
1035
1039
  return Y(t.enabled, e) !== !1 && e.isStaleByTime(pe(t.staleTime, e));
1036
1040
  }
1037
- function ca(e, t) {
1041
+ function la(e, t) {
1038
1042
  return !Ze(e.getCurrentResult(), t);
1039
1043
  }
1040
- function or(e) {
1044
+ function cr(e) {
1041
1045
  return {
1042
1046
  onFetch: (t, r) => {
1043
1047
  const s = t.options, a = t.fetchOptions?.meta?.fetchMore?.direction, n = t.state.data?.pages || [], i = t.state.data?.pageParams || [];
@@ -1051,7 +1055,7 @@ function or(e) {
1051
1055
  d = !0;
1052
1056
  }), t.signal)
1053
1057
  });
1054
- }, l = $r(t.options, t.fetchOptions), m = async (p, g, E) => {
1058
+ }, l = Mr(t.options, t.fetchOptions), m = async (p, g, E) => {
1055
1059
  if (d)
1056
1060
  return Promise.reject();
1057
1061
  if (g == null && p.pages.length)
@@ -1065,14 +1069,14 @@ function or(e) {
1065
1069
  meta: t.options.meta
1066
1070
  };
1067
1071
  return u(z), z;
1068
- })(), I = await l(C), { maxPages: B } = t.options, R = E ? Zs : Xs;
1072
+ })(), I = await l(C), { maxPages: B } = t.options, R = E ? ea : Zs;
1069
1073
  return {
1070
1074
  pages: R(p.pages, I, B),
1071
1075
  pageParams: R(p.pageParams, g, B)
1072
1076
  };
1073
1077
  };
1074
1078
  if (a && n.length) {
1075
- const p = a === "backward", g = p ? la : cr, E = {
1079
+ const p = a === "backward", g = p ? ua : lr, E = {
1076
1080
  pages: n,
1077
1081
  pageParams: i
1078
1082
  }, b = g(s, E);
@@ -1080,7 +1084,7 @@ function or(e) {
1080
1084
  } else {
1081
1085
  const p = e ?? n.length;
1082
1086
  do {
1083
- const g = c === 0 ? i[0] ?? s.initialPageParam : cr(s, o);
1087
+ const g = c === 0 ? i[0] ?? s.initialPageParam : lr(s, o);
1084
1088
  if (c > 0 && g == null)
1085
1089
  break;
1086
1090
  o = await m(o, g), c++;
@@ -1101,7 +1105,7 @@ function or(e) {
1101
1105
  }
1102
1106
  };
1103
1107
  }
1104
- function cr(e, { pages: t, pageParams: r }) {
1108
+ function lr(e, { pages: t, pageParams: r }) {
1105
1109
  const s = t.length - 1;
1106
1110
  return t.length > 0 ? e.getNextPageParam(
1107
1111
  t[s],
@@ -1110,16 +1114,16 @@ function cr(e, { pages: t, pageParams: r }) {
1110
1114
  r
1111
1115
  ) : void 0;
1112
1116
  }
1113
- function la(e, { pages: t, pageParams: r }) {
1117
+ function ua(e, { pages: t, pageParams: r }) {
1114
1118
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
1115
1119
  }
1116
- var ua = class extends Lr {
1120
+ var da = class extends Ur {
1117
1121
  #e;
1118
1122
  #t;
1119
1123
  #r;
1120
1124
  #a;
1121
1125
  constructor(e) {
1122
- super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || Fr(), this.setOptions(e.options), this.scheduleGc();
1126
+ super(), this.#e = e.client, this.mutationId = e.mutationId, this.#r = e.mutationCache, this.#t = [], this.state = e.state || Hr(), this.setOptions(e.options), this.scheduleGc();
1123
1127
  }
1124
1128
  setOptions(e) {
1125
1129
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -1156,7 +1160,7 @@ var ua = class extends Lr {
1156
1160
  meta: this.options.meta,
1157
1161
  mutationKey: this.options.mutationKey
1158
1162
  };
1159
- this.#a = Dr({
1163
+ this.#a = Lr({
1160
1164
  fn: () => this.options.mutationFn ? this.options.mutationFn(e, r) : Promise.reject(new Error("No mutationFn found")),
1161
1165
  onFail: (n, i) => {
1162
1166
  this.#s({ type: "failed", failureCount: n, error: i });
@@ -1316,7 +1320,7 @@ var ua = class extends Lr {
1316
1320
  });
1317
1321
  }
1318
1322
  };
1319
- function Fr() {
1323
+ function Hr() {
1320
1324
  return {
1321
1325
  context: void 0,
1322
1326
  data: void 0,
@@ -1329,7 +1333,7 @@ function Fr() {
1329
1333
  submittedAt: 0
1330
1334
  };
1331
1335
  }
1332
- var da = class extends Pe {
1336
+ var ha = class extends Pe {
1333
1337
  constructor(e = {}) {
1334
1338
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
1335
1339
  }
@@ -1337,7 +1341,7 @@ var da = class extends Pe {
1337
1341
  #t;
1338
1342
  #r;
1339
1343
  build(e, t, r) {
1340
- const s = new ua({
1344
+ const s = new da({
1341
1345
  client: e,
1342
1346
  mutationCache: this,
1343
1347
  mutationId: ++this.#r,
@@ -1421,7 +1425,7 @@ var da = class extends Pe {
1421
1425
  function Ke(e) {
1422
1426
  return e.options.scope?.id;
1423
1427
  }
1424
- var ha = class extends Pe {
1428
+ var fa = class extends Pe {
1425
1429
  #e;
1426
1430
  #t = void 0;
1427
1431
  #r;
@@ -1456,7 +1460,7 @@ var ha = class extends Pe {
1456
1460
  return this.#a = t, this.#r?.removeObserver(this), this.#r = this.#e.getMutationCache().build(this.#e, this.options), this.#r.addObserver(this), this.#r.execute(e);
1457
1461
  }
1458
1462
  #s() {
1459
- const e = this.#r?.state ?? Fr();
1463
+ const e = this.#r?.state ?? Hr();
1460
1464
  this.#t = {
1461
1465
  ...e,
1462
1466
  isPending: e.status === "pending",
@@ -1504,7 +1508,7 @@ var ha = class extends Pe {
1504
1508
  });
1505
1509
  });
1506
1510
  }
1507
- }, fa = class extends Pe {
1511
+ }, ma = class extends Pe {
1508
1512
  constructor(e = {}) {
1509
1513
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
1510
1514
  }
@@ -1512,7 +1516,7 @@ var ha = class extends Pe {
1512
1516
  build(e, t, r) {
1513
1517
  const s = t.queryKey, a = t.queryHash ?? Ht(s, t);
1514
1518
  let n = this.get(a);
1515
- return n || (n = new na({
1519
+ return n || (n = new ia({
1516
1520
  client: e,
1517
1521
  queryKey: s,
1518
1522
  queryHash: a,
@@ -1575,7 +1579,7 @@ var ha = class extends Pe {
1575
1579
  });
1576
1580
  });
1577
1581
  }
1578
- }, ma = class {
1582
+ }, pa = class {
1579
1583
  #e;
1580
1584
  #t;
1581
1585
  #r;
@@ -1585,7 +1589,7 @@ var ha = class extends Pe {
1585
1589
  #o;
1586
1590
  #n;
1587
1591
  constructor(e = {}) {
1588
- this.#e = e.queryCache || new fa(), this.#t = e.mutationCache || new da(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1592
+ this.#e = e.queryCache || new ma(), this.#t = e.mutationCache || new ha(), this.#r = e.defaultOptions || {}, this.#a = /* @__PURE__ */ new Map(), this.#s = /* @__PURE__ */ new Map(), this.#i = 0;
1589
1593
  }
1590
1594
  mount() {
1591
1595
  this.#i++, this.#i === 1 && (this.#o = Kt.subscribe(async (e) => {
@@ -1627,7 +1631,7 @@ var ha = class extends Pe {
1627
1631
  setQueryData(e, t, r) {
1628
1632
  const s = this.defaultQueryOptions({ queryKey: e }), n = this.#e.get(
1629
1633
  s.queryHash
1630
- )?.state.data, i = Js(t, n);
1634
+ )?.state.data, i = Ys(t, n);
1631
1635
  if (i !== void 0)
1632
1636
  return this.#e.build(this, s).setData(i, { ...r, manual: !0 });
1633
1637
  }
@@ -1706,13 +1710,13 @@ var ha = class extends Pe {
1706
1710
  return this.fetchQuery(e).then(W).catch(W);
1707
1711
  }
1708
1712
  fetchInfiniteQuery(e) {
1709
- return e.behavior = or(e.pages), this.fetchQuery(e);
1713
+ return e.behavior = cr(e.pages), this.fetchQuery(e);
1710
1714
  }
1711
1715
  prefetchInfiniteQuery(e) {
1712
1716
  return this.fetchInfiniteQuery(e).then(W).catch(W);
1713
1717
  }
1714
1718
  ensureInfiniteQueryData(e) {
1715
- return e.behavior = or(e.pages), this.ensureQueryData(e);
1719
+ return e.behavior = cr(e.pages), this.ensureQueryData(e);
1716
1720
  }
1717
1721
  resumePausedMutations() {
1718
1722
  return tt.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
@@ -1778,20 +1782,20 @@ var ha = class extends Pe {
1778
1782
  clear() {
1779
1783
  this.#e.clear(), this.#t.clear();
1780
1784
  }
1781
- }, Hr = q.createContext(
1785
+ }, Kr = q.createContext(
1782
1786
  void 0
1783
1787
  ), se = (e) => {
1784
- const t = q.useContext(Hr);
1788
+ const t = q.useContext(Kr);
1785
1789
  if (!t)
1786
1790
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1787
1791
  return t;
1788
- }, pa = ({
1792
+ }, ya = ({
1789
1793
  client: e,
1790
1794
  children: t
1791
1795
  }) => (q.useEffect(() => (e.mount(), () => {
1792
1796
  e.unmount();
1793
- }), [e]), /* @__PURE__ */ h(Hr.Provider, { value: e, children: t })), ya = q.createContext(!1), ga = () => q.useContext(ya);
1794
- function Ea() {
1797
+ }), [e]), /* @__PURE__ */ h(Kr.Provider, { value: e, children: t })), ga = q.createContext(!1), Ea = () => q.useContext(ga);
1798
+ function ba() {
1795
1799
  let e = !1;
1796
1800
  return {
1797
1801
  clearReset: () => {
@@ -1803,19 +1807,19 @@ function Ea() {
1803
1807
  isReset: () => e
1804
1808
  };
1805
1809
  }
1806
- var ba = q.createContext(Ea()), Sa = () => q.useContext(ba), wa = (e, t) => {
1810
+ var Sa = q.createContext(ba()), wa = () => q.useContext(Sa), va = (e, t) => {
1807
1811
  (e.suspense || e.throwOnError || e.experimental_prefetchInRender) && (t.isReset() || (e.retryOnMount = !1));
1808
- }, va = (e) => {
1812
+ }, Ta = (e) => {
1809
1813
  q.useEffect(() => {
1810
1814
  e.clearReset();
1811
1815
  }, [e]);
1812
- }, Ta = ({
1816
+ }, Ia = ({
1813
1817
  result: e,
1814
1818
  errorResetBoundary: t,
1815
1819
  throwOnError: r,
1816
1820
  query: s,
1817
1821
  suspense: a
1818
- }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || Mr(r, [e.error, s])), Ia = (e) => {
1822
+ }) => e.isError && !t.isReset() && !e.isFetching && s && (a && e.data === void 0 || xr(r, [e.error, s])), Aa = (e) => {
1819
1823
  if (e.suspense) {
1820
1824
  const r = (a) => a === "static" ? a : Math.max(a ?? 1e3, 1e3), s = e.staleTime;
1821
1825
  e.staleTime = typeof s == "function" ? (...a) => r(s(...a)) : r(s), typeof e.gcTime == "number" && (e.gcTime = Math.max(
@@ -1823,20 +1827,20 @@ var ba = q.createContext(Ea()), Sa = () => q.useContext(ba), wa = (e, t) => {
1823
1827
  1e3
1824
1828
  ));
1825
1829
  }
1826
- }, Aa = (e, t) => e.isLoading && e.isFetching && !t, _a = (e, t) => e?.suspense && t.isPending, lr = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1830
+ }, _a = (e, t) => e.isLoading && e.isFetching && !t, Ra = (e, t) => e?.suspense && t.isPending, ur = (e, t, r) => t.fetchOptimistic(e).catch(() => {
1827
1831
  r.clearReset();
1828
1832
  });
1829
- function Ra(e, t, r) {
1833
+ function Oa(e, t, r) {
1830
1834
  if (process.env.NODE_ENV !== "production" && (typeof e != "object" || Array.isArray(e)))
1831
1835
  throw new Error(
1832
1836
  '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
1837
  );
1834
- const s = ga(), a = Sa(), n = se(), i = n.defaultQueryOptions(e);
1838
+ const s = Ea(), a = wa(), n = se(), i = n.defaultQueryOptions(e);
1835
1839
  n.getDefaultOptions().queries?._experimental_beforeQuery?.(
1836
1840
  i
1837
1841
  ), process.env.NODE_ENV !== "production" && (i.queryFn || console.error(
1838
1842
  `[${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", Ia(i), wa(i, a), va(a);
1843
+ )), i._optimisticResults = s ? "isRestoring" : "optimistic", Aa(i), va(i, a), Ta(a);
1840
1844
  const o = !n.getQueryCache().get(i.queryHash), [c] = q.useState(
1841
1845
  () => new t(
1842
1846
  n,
@@ -1855,9 +1859,9 @@ function Ra(e, t, r) {
1855
1859
  () => c.getCurrentResult()
1856
1860
  ), q.useEffect(() => {
1857
1861
  c.setOptions(i);
1858
- }, [i, c]), _a(i, f))
1859
- throw lr(i, c, a);
1860
- if (Ta({
1862
+ }, [i, c]), Ra(i, f))
1863
+ throw ur(i, c, a);
1864
+ if (Ia({
1861
1865
  result: f,
1862
1866
  errorResetBoundary: a,
1863
1867
  throwOnError: i.throwOnError,
@@ -1868,9 +1872,9 @@ function Ra(e, t, r) {
1868
1872
  return n.getDefaultOptions().queries?._experimental_afterQuery?.(
1869
1873
  i,
1870
1874
  f
1871
- ), i.experimental_prefetchInRender && !be && Aa(f, s) && (o ? (
1875
+ ), i.experimental_prefetchInRender && !be && _a(f, s) && (o ? (
1872
1876
  // Fetch immediately on render in order to ensure `.promise` is resolved even if the component is unmounted
1873
- lr(i, c, a)
1877
+ ur(i, c, a)
1874
1878
  ) : (
1875
1879
  // subscribe to the "cache promise" so that we can finalize the currentThenable once data comes in
1876
1880
  n.getQueryCache().get(i.queryHash)?.promise
@@ -1879,11 +1883,11 @@ function Ra(e, t, r) {
1879
1883
  }), i.notifyOnChangeProps ? f : c.trackResult(f);
1880
1884
  }
1881
1885
  function ue(e, t) {
1882
- return Ra(e, ia);
1886
+ return Oa(e, oa);
1883
1887
  }
1884
1888
  function ye(e, t) {
1885
1889
  const r = se(), [s] = q.useState(
1886
- () => new ha(
1890
+ () => new fa(
1887
1891
  r,
1888
1892
  e
1889
1893
  )
@@ -1904,7 +1908,7 @@ function ye(e, t) {
1904
1908
  },
1905
1909
  [s]
1906
1910
  );
1907
- if (a.error && Mr(s.options.throwOnError, [a.error]))
1911
+ if (a.error && xr(s.options.throwOnError, [a.error]))
1908
1912
  throw a.error;
1909
1913
  return { ...a, mutate: n, mutateAsync: a.mutate };
1910
1914
  }
@@ -1925,7 +1929,7 @@ const Me = {
1925
1929
  CODE: "code",
1926
1930
  REFRESH_TOKEN: "refresh_token",
1927
1931
  PASSKEY: "passkey"
1928
- }, Kr = {
1932
+ }, Gr = {
1929
1933
  CLIENT_ID: "X-Auth-ClientId"
1930
1934
  }, G = {
1931
1935
  ALG: "RS256",
@@ -1935,7 +1939,7 @@ const Me = {
1935
1939
  NONCE_KEY: "_nonce",
1936
1940
  AUTH_TYPE_KEY: "auth_type",
1937
1941
  ISSUER: "gizmette.com"
1938
- }, Oa = `-----BEGIN PUBLIC KEY-----
1942
+ }, Ca = `-----BEGIN PUBLIC KEY-----
1939
1943
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
1940
1944
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
1941
1945
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -1949,14 +1953,14 @@ awIDAQAB
1949
1953
  LOGIN: "login",
1950
1954
  REFRESH: "refresh"
1951
1955
  }, Ge = new TextEncoder(), Ne = new TextDecoder();
1952
- function Ca(...e) {
1956
+ function ka(...e) {
1953
1957
  const t = e.reduce((a, { length: n }) => a + n, 0), r = new Uint8Array(t);
1954
1958
  let s = 0;
1955
1959
  for (const a of e)
1956
1960
  r.set(a, s), s += a.length;
1957
1961
  return r;
1958
1962
  }
1959
- function Gr(e) {
1963
+ function qr(e) {
1960
1964
  if (Uint8Array.fromBase64)
1961
1965
  return Uint8Array.fromBase64(e);
1962
1966
  const t = atob(e), r = new Uint8Array(t.length);
@@ -1972,7 +1976,7 @@ function xe(e) {
1972
1976
  let t = e;
1973
1977
  t instanceof Uint8Array && (t = Ne.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
1974
1978
  try {
1975
- return Gr(t);
1979
+ return qr(t);
1976
1980
  } catch {
1977
1981
  throw new TypeError("The input to be decoded is not correctly encoded.");
1978
1982
  }
@@ -1992,7 +1996,7 @@ let we = class extends Error {
1992
1996
  constructor(t, r, s = "unspecified", a = "unspecified") {
1993
1997
  super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
1994
1998
  }
1995
- }, ur = class extends we {
1999
+ }, dr = class extends we {
1996
2000
  static code = "ERR_JWT_EXPIRED";
1997
2001
  code = "ERR_JWT_EXPIRED";
1998
2002
  claim;
@@ -2001,7 +2005,7 @@ let we = class extends Error {
2001
2005
  constructor(t, r, s = "unspecified", a = "unspecified") {
2002
2006
  super(t, { cause: { claim: s, reason: a, payload: r } }), this.claim = s, this.reason = a, this.payload = r;
2003
2007
  }
2004
- }, ka = class extends we {
2008
+ }, Na = class extends we {
2005
2009
  static code = "ERR_JOSE_ALG_NOT_ALLOWED";
2006
2010
  code = "ERR_JOSE_ALG_NOT_ALLOWED";
2007
2011
  }, oe = class extends we {
@@ -2016,7 +2020,7 @@ let ne = class extends we {
2016
2020
  static code = "ERR_JWT_INVALID";
2017
2021
  code = "ERR_JWT_INVALID";
2018
2022
  };
2019
- class Na extends we {
2023
+ class Pa extends we {
2020
2024
  static code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
2021
2025
  code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
2022
2026
  constructor(t = "signature verification failed", r) {
@@ -2032,7 +2036,7 @@ function Ie(e, t) {
2032
2036
  function pt(e) {
2033
2037
  return parseInt(e.name.slice(4), 10);
2034
2038
  }
2035
- function Pa(e) {
2039
+ function $a(e) {
2036
2040
  switch (e) {
2037
2041
  case "ES256":
2038
2042
  return "P-256";
@@ -2044,11 +2048,11 @@ function Pa(e) {
2044
2048
  throw new Error("unreachable");
2045
2049
  }
2046
2050
  }
2047
- function $a(e, t) {
2051
+ function Ma(e, t) {
2048
2052
  if (!e.usages.includes(t))
2049
2053
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
2050
2054
  }
2051
- function Ma(e, t, r) {
2055
+ function xa(e, t, r) {
2052
2056
  switch (t) {
2053
2057
  case "HS256":
2054
2058
  case "HS384":
@@ -2098,7 +2102,7 @@ function Ma(e, t, r) {
2098
2102
  case "ES512": {
2099
2103
  if (!Ie(e.algorithm, "ECDSA"))
2100
2104
  throw ee("ECDSA");
2101
- const s = Pa(t);
2105
+ const s = $a(t);
2102
2106
  if (e.algorithm.namedCurve !== s)
2103
2107
  throw ee(s, "algorithm.namedCurve");
2104
2108
  break;
@@ -2106,26 +2110,26 @@ function Ma(e, t, r) {
2106
2110
  default:
2107
2111
  throw new TypeError("CryptoKey does not support this operation");
2108
2112
  }
2109
- $a(e, r);
2113
+ Ma(e, r);
2110
2114
  }
2111
- function qr(e, t, ...r) {
2115
+ function Br(e, t, ...r) {
2112
2116
  if (r = r.filter(Boolean), r.length > 2) {
2113
2117
  const s = r.pop();
2114
2118
  e += `one of type ${r.join(", ")}, or ${s}.`;
2115
2119
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
2116
2120
  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
2121
  }
2118
- const xa = (e, ...t) => qr("Key must be ", e, ...t);
2119
- function Br(e, t, ...r) {
2120
- return qr(`Key for the ${e} algorithm must be `, t, ...r);
2122
+ const Da = (e, ...t) => Br("Key must be ", e, ...t);
2123
+ function Wr(e, t, ...r) {
2124
+ return Br(`Key for the ${e} algorithm must be `, t, ...r);
2121
2125
  }
2122
- function Wr(e) {
2126
+ function Vr(e) {
2123
2127
  return e?.[Symbol.toStringTag] === "CryptoKey";
2124
2128
  }
2125
- function Vr(e) {
2129
+ function jr(e) {
2126
2130
  return e?.[Symbol.toStringTag] === "KeyObject";
2127
2131
  }
2128
- const jr = (e) => Wr(e) || Vr(e), Da = (...e) => {
2132
+ const Qr = (e) => Vr(e) || jr(e), La = (...e) => {
2129
2133
  const t = e.filter(Boolean);
2130
2134
  if (t.length === 0 || t.length === 1)
2131
2135
  return !0;
@@ -2144,11 +2148,11 @@ const jr = (e) => Wr(e) || Vr(e), Da = (...e) => {
2144
2148
  }
2145
2149
  return !0;
2146
2150
  };
2147
- function La(e) {
2151
+ function Ua(e) {
2148
2152
  return typeof e == "object" && e !== null;
2149
2153
  }
2150
2154
  const Le = (e) => {
2151
- if (!La(e) || Object.prototype.toString.call(e) !== "[object Object]")
2155
+ if (!Ua(e) || Object.prototype.toString.call(e) !== "[object Object]")
2152
2156
  return !1;
2153
2157
  if (Object.getPrototypeOf(e) === null)
2154
2158
  return !0;
@@ -2156,7 +2160,7 @@ const Le = (e) => {
2156
2160
  for (; Object.getPrototypeOf(t) !== null; )
2157
2161
  t = Object.getPrototypeOf(t);
2158
2162
  return Object.getPrototypeOf(e) === t;
2159
- }, Ua = (e, t) => {
2163
+ }, Fa = (e, t) => {
2160
2164
  if (e.startsWith("RS") || e.startsWith("PS")) {
2161
2165
  const { modulusLength: r } = t.algorithm;
2162
2166
  if (typeof r != "number" || r < 2048)
@@ -2169,7 +2173,7 @@ const Le = (e) => {
2169
2173
  if (e[r] !== t[r])
2170
2174
  return !1;
2171
2175
  return !0;
2172
- }, Fa = (e) => ({ data: e, pos: 0 }), rt = (e) => {
2176
+ }, Ha = (e) => ({ data: e, pos: 0 }), rt = (e) => {
2173
2177
  const t = e.data[e.pos++];
2174
2178
  if (t & 128) {
2175
2179
  const r = t & 127;
@@ -2182,27 +2186,27 @@ const Le = (e) => {
2182
2186
  }, st = (e, t, r) => {
2183
2187
  if (e.data[e.pos++] !== t)
2184
2188
  throw new Error(r);
2185
- }, Qr = (e, t) => {
2189
+ }, Jr = (e, t) => {
2186
2190
  const r = e.data.subarray(e.pos, e.pos + t);
2187
2191
  return e.pos += t, r;
2188
- }, Ha = (e) => {
2192
+ }, Ka = (e) => {
2189
2193
  st(e, 6, "Expected algorithm OID");
2190
2194
  const t = rt(e);
2191
- return Qr(e, t);
2195
+ return Jr(e, t);
2192
2196
  };
2193
- function Ka(e) {
2197
+ function Ga(e) {
2194
2198
  st(e, 48, "Invalid SPKI structure"), rt(e), st(e, 48, "Expected algorithm identifier");
2195
2199
  const t = rt(e);
2196
2200
  return { algIdStart: e.pos, algIdLength: t };
2197
2201
  }
2198
- const Ga = (e) => {
2199
- const t = Ha(e);
2202
+ const qa = (e) => {
2203
+ const t = Ka(e);
2200
2204
  if (yt(t, [43, 101, 110]))
2201
2205
  return "X25519";
2202
2206
  if (!yt(t, [42, 134, 72, 206, 61, 2, 1]))
2203
2207
  throw new Error("Unsupported key algorithm");
2204
2208
  st(e, 6, "Expected curve OID");
2205
- const r = rt(e), s = Qr(e, r);
2209
+ const r = rt(e), s = Jr(e, r);
2206
2210
  for (const { name: a, oid: n } of [
2207
2211
  { name: "P-256", oid: [42, 134, 72, 206, 61, 3, 1, 7] },
2208
2212
  { name: "P-384", oid: [43, 129, 4, 0, 34] },
@@ -2211,7 +2215,7 @@ const Ga = (e) => {
2211
2215
  if (yt(s, n))
2212
2216
  return a;
2213
2217
  throw new Error("Unsupported named curve");
2214
- }, qa = async (e, t, r, s) => {
2218
+ }, Ba = async (e, t, r, s) => {
2215
2219
  let a, n;
2216
2220
  const i = () => ["verify"], o = () => ["encrypt", "wrapKey"];
2217
2221
  switch (r) {
@@ -2266,15 +2270,15 @@ const Ga = (e) => {
2266
2270
  throw new oe('Invalid or unsupported "alg" (Algorithm) value');
2267
2271
  }
2268
2272
  return crypto.subtle.importKey(e, t, a, s?.extractable ?? !0, n);
2269
- }, Ba = (e, t) => Gr(e.replace(t, "")), Wa = (e, t, r) => {
2270
- const s = Ba(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2273
+ }, Wa = (e, t) => qr(e.replace(t, "")), Va = (e, t, r) => {
2274
+ const s = Wa(e, /(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g);
2271
2275
  let a = r;
2272
2276
  return t?.startsWith?.("ECDH-ES") && (a ||= {}, a.getNamedCurve = (n) => {
2273
- const i = Fa(n);
2274
- return Ka(i), Ga(i);
2275
- }), qa("spki", s, t, a);
2277
+ const i = Ha(n);
2278
+ return Ga(i), qa(i);
2279
+ }), Ba("spki", s, t, a);
2276
2280
  };
2277
- function Va(e) {
2281
+ function ja(e) {
2278
2282
  let t, r;
2279
2283
  switch (e.kty) {
2280
2284
  case "AKP": {
@@ -2359,18 +2363,18 @@ function Va(e) {
2359
2363
  }
2360
2364
  return { algorithm: t, keyUsages: r };
2361
2365
  }
2362
- const ja = async (e) => {
2366
+ const Qa = async (e) => {
2363
2367
  if (!e.alg)
2364
2368
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
2365
- const { algorithm: t, keyUsages: r } = Va(e), s = { ...e };
2369
+ const { algorithm: t, keyUsages: r } = ja(e), s = { ...e };
2366
2370
  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
2371
  };
2368
- async function Qa(e, t, r) {
2372
+ async function Ja(e, t, r) {
2369
2373
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
2370
2374
  throw new TypeError('"spki" must be SPKI formatted string');
2371
- return Wa(e, t, r);
2375
+ return Va(e, t, r);
2372
2376
  }
2373
- const Ja = (e, t, r, s, a) => {
2377
+ const Ya = (e, t, r, s, a) => {
2374
2378
  if (a.crit !== void 0 && s?.crit === void 0)
2375
2379
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
2376
2380
  if (!s || s.crit === void 0)
@@ -2388,7 +2392,7 @@ const Ja = (e, t, r, s, a) => {
2388
2392
  throw new e(`Extension Header Parameter "${i}" MUST be integrity protected`);
2389
2393
  }
2390
2394
  return new Set(s.crit);
2391
- }, Ya = (e, t) => {
2395
+ }, za = (e, t) => {
2392
2396
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
2393
2397
  throw new TypeError(`"${e}" option must be an array of strings`);
2394
2398
  if (t)
@@ -2397,24 +2401,24 @@ const Ja = (e, t, r, s, a) => {
2397
2401
  function qt(e) {
2398
2402
  return Le(e) && typeof e.kty == "string";
2399
2403
  }
2400
- function za(e) {
2404
+ function Xa(e) {
2401
2405
  return e.kty !== "oct" && (e.kty === "AKP" && typeof e.priv == "string" || typeof e.d == "string");
2402
2406
  }
2403
- function Xa(e) {
2407
+ function Za(e) {
2404
2408
  return e.kty !== "oct" && typeof e.d > "u" && typeof e.priv > "u";
2405
2409
  }
2406
- function Za(e) {
2410
+ function en(e) {
2407
2411
  return e.kty === "oct" && typeof e.k == "string";
2408
2412
  }
2409
2413
  let ke;
2410
- const dr = async (e, t, r, s = !1) => {
2414
+ const hr = async (e, t, r, s = !1) => {
2411
2415
  ke ||= /* @__PURE__ */ new WeakMap();
2412
2416
  let a = ke.get(e);
2413
2417
  if (a?.[r])
2414
2418
  return a[r];
2415
- const n = await ja({ ...t, alg: r });
2419
+ const n = await Qa({ ...t, alg: r });
2416
2420
  return s && Object.freeze(e), a ? a[r] = n : ke.set(e, { [r]: n }), n;
2417
- }, en = (e, t) => {
2421
+ }, tn = (e, t) => {
2418
2422
  ke ||= /* @__PURE__ */ new WeakMap();
2419
2423
  let r = ke.get(e);
2420
2424
  if (r?.[t])
@@ -2510,24 +2514,24 @@ const dr = async (e, t, r, s = !1) => {
2510
2514
  if (!n)
2511
2515
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
2512
2516
  return r ? r[t] = n : ke.set(e, { [t]: n }), n;
2513
- }, tn = async (e, t) => {
2514
- if (e instanceof Uint8Array || Wr(e))
2517
+ }, rn = async (e, t) => {
2518
+ if (e instanceof Uint8Array || Vr(e))
2515
2519
  return e;
2516
- if (Vr(e)) {
2520
+ if (jr(e)) {
2517
2521
  if (e.type === "secret")
2518
2522
  return e.export();
2519
2523
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
2520
2524
  try {
2521
- return en(e, t);
2525
+ return tn(e, t);
2522
2526
  } catch (s) {
2523
2527
  if (s instanceof TypeError)
2524
2528
  throw s;
2525
2529
  }
2526
2530
  let r = e.export({ format: "jwk" });
2527
- return dr(e, r, t);
2531
+ return hr(e, r, t);
2528
2532
  }
2529
2533
  if (qt(e))
2530
- return e.k ? xe(e.k) : dr(e, e, t, !0);
2534
+ return e.k ? xe(e.k) : hr(e, e, t, !0);
2531
2535
  throw new Error("unreachable");
2532
2536
  }, Ce = (e) => e?.[Symbol.toStringTag], xt = (e, t, r) => {
2533
2537
  if (t.use !== void 0) {
@@ -2572,34 +2576,34 @@ const dr = async (e, t, r, s = !1) => {
2572
2576
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${s}" when present`);
2573
2577
  }
2574
2578
  return !0;
2575
- }, rn = (e, t, r) => {
2579
+ }, sn = (e, t, r) => {
2576
2580
  if (!(t instanceof Uint8Array)) {
2577
2581
  if (qt(t)) {
2578
- if (Za(t) && xt(e, t, r))
2582
+ if (en(t) && xt(e, t, r))
2579
2583
  return;
2580
2584
  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
2585
  }
2582
- if (!jr(t))
2583
- throw new TypeError(Br(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
2586
+ if (!Qr(t))
2587
+ throw new TypeError(Wr(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
2584
2588
  if (t.type !== "secret")
2585
2589
  throw new TypeError(`${Ce(t)} instances for symmetric algorithms must be of type "secret"`);
2586
2590
  }
2587
- }, sn = (e, t, r) => {
2591
+ }, an = (e, t, r) => {
2588
2592
  if (qt(t))
2589
2593
  switch (r) {
2590
2594
  case "decrypt":
2591
2595
  case "sign":
2592
- if (za(t) && xt(e, t, r))
2596
+ if (Xa(t) && xt(e, t, r))
2593
2597
  return;
2594
2598
  throw new TypeError("JSON Web Key for this operation be a private JWK");
2595
2599
  case "encrypt":
2596
2600
  case "verify":
2597
- if (Xa(t) && xt(e, t, r))
2601
+ if (Za(t) && xt(e, t, r))
2598
2602
  return;
2599
2603
  throw new TypeError("JSON Web Key for this operation be a public JWK");
2600
2604
  }
2601
- if (!jr(t))
2602
- throw new TypeError(Br(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
2605
+ if (!Qr(t))
2606
+ throw new TypeError(Wr(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
2603
2607
  if (t.type === "secret")
2604
2608
  throw new TypeError(`${Ce(t)} instances for asymmetric algorithms must not be of type "secret"`);
2605
2609
  if (t.type === "public")
@@ -2616,9 +2620,9 @@ const dr = async (e, t, r, s = !1) => {
2616
2620
  case "encrypt":
2617
2621
  throw new TypeError(`${Ce(t)} instances for asymmetric algorithm encryption must be of type "public"`);
2618
2622
  }
2619
- }, an = (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) ? rn(e, t, r) : sn(e, t, r);
2621
- }, nn = (e, t) => {
2623
+ }, nn = (e, t, r) => {
2624
+ 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) ? sn(e, t, r) : an(e, t, r);
2625
+ }, on = (e, t) => {
2622
2626
  const r = `SHA-${e.slice(-3)}`;
2623
2627
  switch (e) {
2624
2628
  case "HS256":
@@ -2647,24 +2651,24 @@ const dr = async (e, t, r, s = !1) => {
2647
2651
  default:
2648
2652
  throw new oe(`alg ${e} is not supported either by JOSE or your javascript runtime`);
2649
2653
  }
2650
- }, on = async (e, t, r) => {
2654
+ }, cn = async (e, t, r) => {
2651
2655
  if (t instanceof Uint8Array) {
2652
2656
  if (!e.startsWith("HS"))
2653
- throw new TypeError(xa(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2657
+ throw new TypeError(Da(t, "CryptoKey", "KeyObject", "JSON Web Key"));
2654
2658
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
2655
2659
  }
2656
- return Ma(t, e, r), t;
2657
- }, cn = async (e, t, r, s) => {
2658
- const a = await on(e, t, "verify");
2659
- Ua(e, a);
2660
- const n = nn(e, a.algorithm);
2660
+ return xa(t, e, r), t;
2661
+ }, ln = async (e, t, r, s) => {
2662
+ const a = await cn(e, t, "verify");
2663
+ Fa(e, a);
2664
+ const n = on(e, a.algorithm);
2661
2665
  try {
2662
2666
  return await crypto.subtle.verify(n, a, r, s);
2663
2667
  } catch {
2664
2668
  return !1;
2665
2669
  }
2666
2670
  };
2667
- async function ln(e, t, r) {
2671
+ async function un(e, t, r) {
2668
2672
  if (!Le(e))
2669
2673
  throw new H("Flattened JWS must be an object");
2670
2674
  if (e.protected === void 0 && e.header === void 0)
@@ -2685,38 +2689,38 @@ async function ln(e, t, r) {
2685
2689
  } catch {
2686
2690
  throw new H("JWS Protected Header is invalid");
2687
2691
  }
2688
- if (!Da(s, e.header))
2692
+ if (!La(s, e.header))
2689
2693
  throw new H("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
2690
2694
  const a = {
2691
2695
  ...s,
2692
2696
  ...e.header
2693
- }, n = Ja(H, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2697
+ }, n = Ya(H, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, s, a);
2694
2698
  let i = !0;
2695
2699
  if (n.has("b64") && (i = s.b64, typeof i != "boolean"))
2696
2700
  throw new H('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
2697
2701
  const { alg: o } = a;
2698
2702
  if (typeof o != "string" || !o)
2699
2703
  throw new H('JWS "alg" (Algorithm) Header Parameter missing or invalid');
2700
- const c = r && Ya("algorithms", r.algorithms);
2704
+ const c = r && za("algorithms", r.algorithms);
2701
2705
  if (c && !c.has(o))
2702
- throw new ka('"alg" (Algorithm) Header Parameter value not allowed');
2706
+ throw new Na('"alg" (Algorithm) Header Parameter value not allowed');
2703
2707
  if (i) {
2704
2708
  if (typeof e.payload != "string")
2705
2709
  throw new H("JWS Payload must be a string");
2706
2710
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
2707
2711
  throw new H("JWS Payload must be a string or an Uint8Array instance");
2708
2712
  let f = !1;
2709
- typeof t == "function" && (t = await t(s, e), f = !0), an(o, t, "verify");
2710
- const d = Ca(Ge.encode(e.protected ?? ""), Ge.encode("."), typeof e.payload == "string" ? Ge.encode(e.payload) : e.payload);
2713
+ typeof t == "function" && (t = await t(s, e), f = !0), nn(o, t, "verify");
2714
+ const d = ka(Ge.encode(e.protected ?? ""), Ge.encode("."), typeof e.payload == "string" ? Ge.encode(e.payload) : e.payload);
2711
2715
  let u;
2712
2716
  try {
2713
2717
  u = xe(e.signature);
2714
2718
  } catch {
2715
2719
  throw new H("Failed to base64url decode the signature");
2716
2720
  }
2717
- const l = await tn(t, o);
2718
- if (!await cn(o, l, u, d))
2719
- throw new Na();
2721
+ const l = await rn(t, o);
2722
+ if (!await ln(o, l, u, d))
2723
+ throw new Pa();
2720
2724
  let m;
2721
2725
  if (i)
2722
2726
  try {
@@ -2728,17 +2732,17 @@ async function ln(e, t, r) {
2728
2732
  const p = { payload: m };
2729
2733
  return e.protected !== void 0 && (p.protectedHeader = s), e.header !== void 0 && (p.unprotectedHeader = e.header), f ? { ...p, key: l } : p;
2730
2734
  }
2731
- async function un(e, t, r) {
2735
+ async function dn(e, t, r) {
2732
2736
  if (e instanceof Uint8Array && (e = Ne.decode(e)), typeof e != "string")
2733
2737
  throw new H("Compact JWS must be a string or Uint8Array");
2734
2738
  const { 0: s, 1: a, 2: n, length: i } = e.split(".");
2735
2739
  if (i !== 3)
2736
2740
  throw new H("Invalid Compact JWS");
2737
- const o = await ln({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2741
+ const o = await un({ payload: a, protected: s, signature: n }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
2738
2742
  return typeof t == "function" ? { ...c, key: o.key } : c;
2739
2743
  }
2740
- const dn = (e) => Math.floor(e.getTime() / 1e3), Jr = 60, Yr = Jr * 60, Bt = Yr * 24, hn = Bt * 7, fn = Bt * 365.25, mn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, hr = (e) => {
2741
- const t = mn.exec(e);
2744
+ const hn = (e) => Math.floor(e.getTime() / 1e3), Yr = 60, zr = Yr * 60, Bt = zr * 24, fn = Bt * 7, mn = Bt * 365.25, pn = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, fr = (e) => {
2745
+ const t = pn.exec(e);
2742
2746
  if (!t || t[4] && t[1])
2743
2747
  throw new TypeError("Invalid time period format");
2744
2748
  const r = parseFloat(t[2]), s = t[3].toLowerCase();
@@ -2756,14 +2760,14 @@ const dn = (e) => Math.floor(e.getTime() / 1e3), Jr = 60, Yr = Jr * 60, Bt = Yr
2756
2760
  case "min":
2757
2761
  case "mins":
2758
2762
  case "m":
2759
- a = Math.round(r * Jr);
2763
+ a = Math.round(r * Yr);
2760
2764
  break;
2761
2765
  case "hour":
2762
2766
  case "hours":
2763
2767
  case "hr":
2764
2768
  case "hrs":
2765
2769
  case "h":
2766
- a = Math.round(r * Yr);
2770
+ a = Math.round(r * zr);
2767
2771
  break;
2768
2772
  case "day":
2769
2773
  case "days":
@@ -2773,15 +2777,15 @@ const dn = (e) => Math.floor(e.getTime() / 1e3), Jr = 60, Yr = Jr * 60, Bt = Yr
2773
2777
  case "week":
2774
2778
  case "weeks":
2775
2779
  case "w":
2776
- a = Math.round(r * hn);
2780
+ a = Math.round(r * fn);
2777
2781
  break;
2778
2782
  default:
2779
- a = Math.round(r * fn);
2783
+ a = Math.round(r * mn);
2780
2784
  break;
2781
2785
  }
2782
2786
  return t[1] === "-" || t[4] === "ago" ? -a : a;
2783
- }, fr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, pn = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2784
- function yn(e, t, r = {}) {
2787
+ }, mr = (e) => e.includes("/") ? e.toLowerCase() : `application/${e.toLowerCase()}`, yn = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
2788
+ function gn(e, t, r = {}) {
2785
2789
  let s;
2786
2790
  try {
2787
2791
  s = JSON.parse(Ne.decode(t));
@@ -2790,7 +2794,7 @@ function yn(e, t, r = {}) {
2790
2794
  if (!Le(s))
2791
2795
  throw new ne("JWT Claims Set must be a top-level JSON object");
2792
2796
  const { typ: a } = r;
2793
- if (a && (typeof e.typ != "string" || fr(e.typ) !== fr(a)))
2797
+ if (a && (typeof e.typ != "string" || mr(e.typ) !== mr(a)))
2794
2798
  throw new Z('unexpected "typ" JWT header value', s, "typ", "check_failed");
2795
2799
  const { requiredClaims: n = [], issuer: i, subject: o, audience: c, maxTokenAge: f } = r, d = [...n];
2796
2800
  f !== void 0 && d.push("iat"), c !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), i !== void 0 && d.push("iss");
@@ -2801,12 +2805,12 @@ function yn(e, t, r = {}) {
2801
2805
  throw new Z('unexpected "iss" claim value', s, "iss", "check_failed");
2802
2806
  if (o && s.sub !== o)
2803
2807
  throw new Z('unexpected "sub" claim value', s, "sub", "check_failed");
2804
- if (c && !pn(s.aud, typeof c == "string" ? [c] : c))
2808
+ if (c && !yn(s.aud, typeof c == "string" ? [c] : c))
2805
2809
  throw new Z('unexpected "aud" claim value', s, "aud", "check_failed");
2806
2810
  let u;
2807
2811
  switch (typeof r.clockTolerance) {
2808
2812
  case "string":
2809
- u = hr(r.clockTolerance);
2813
+ u = fr(r.clockTolerance);
2810
2814
  break;
2811
2815
  case "number":
2812
2816
  u = r.clockTolerance;
@@ -2817,7 +2821,7 @@ function yn(e, t, r = {}) {
2817
2821
  default:
2818
2822
  throw new TypeError("Invalid clockTolerance option type");
2819
2823
  }
2820
- const { currentDate: l } = r, m = dn(l || /* @__PURE__ */ new Date());
2824
+ const { currentDate: l } = r, m = hn(l || /* @__PURE__ */ new Date());
2821
2825
  if ((s.iat !== void 0 || f) && typeof s.iat != "number")
2822
2826
  throw new Z('"iat" claim must be a number', s, "iat", "invalid");
2823
2827
  if (s.nbf !== void 0) {
@@ -2830,25 +2834,25 @@ function yn(e, t, r = {}) {
2830
2834
  if (typeof s.exp != "number")
2831
2835
  throw new Z('"exp" claim must be a number', s, "exp", "invalid");
2832
2836
  if (s.exp <= m - u)
2833
- throw new ur('"exp" claim timestamp check failed', s, "exp", "check_failed");
2837
+ throw new dr('"exp" claim timestamp check failed', s, "exp", "check_failed");
2834
2838
  }
2835
2839
  if (f) {
2836
- const p = m - s.iat, g = typeof f == "number" ? f : hr(f);
2840
+ const p = m - s.iat, g = typeof f == "number" ? f : fr(f);
2837
2841
  if (p - u > g)
2838
- throw new ur('"iat" claim timestamp check failed (too far in the past)', s, "iat", "check_failed");
2842
+ throw new dr('"iat" claim timestamp check failed (too far in the past)', s, "iat", "check_failed");
2839
2843
  if (p < 0 - u)
2840
2844
  throw new Z('"iat" claim timestamp check failed (it should be in the past)', s, "iat", "check_failed");
2841
2845
  }
2842
2846
  return s;
2843
2847
  }
2844
- async function gn(e, t, r) {
2845
- const s = await un(e, t, r);
2848
+ async function En(e, t, r) {
2849
+ const s = await dn(e, t, r);
2846
2850
  if (s.protectedHeader.crit?.includes("b64") && s.protectedHeader.b64 === !1)
2847
2851
  throw new ne("JWTs MUST NOT use unencoded payload");
2848
- const a = { payload: yn(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2852
+ const a = { payload: gn(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
2849
2853
  return typeof t == "function" ? { ...a, key: s.key } : a;
2850
2854
  }
2851
- function En(e) {
2855
+ function bn(e) {
2852
2856
  if (typeof e != "string")
2853
2857
  throw new ne("JWTs must use Compact JWS serialization, JWT must be a string");
2854
2858
  const { 1: t, length: r } = e.split(".");
@@ -2876,65 +2880,65 @@ function En(e) {
2876
2880
  }
2877
2881
  const Ue = async (e) => {
2878
2882
  try {
2879
- const t = G.ALG, r = await Qa(Oa, t);
2880
- return await gn(e, r, {
2883
+ const t = G.ALG, r = await Ja(Ca, t);
2884
+ return await En(e, r, {
2881
2885
  issuer: G.ISSUER
2882
2886
  });
2883
2887
  } catch {
2884
2888
  return;
2885
2889
  }
2886
- }, bn = (e) => {
2890
+ }, Sn = (e) => {
2887
2891
  try {
2888
- return En(e);
2892
+ return bn(e);
2889
2893
  } catch {
2890
2894
  return;
2891
2895
  }
2892
2896
  }, U = [];
2893
2897
  for (let e = 0; e < 256; ++e)
2894
2898
  U.push((e + 256).toString(16).slice(1));
2895
- function Sn(e, t = 0) {
2899
+ function wn(e, t = 0) {
2896
2900
  return (U[e[t + 0]] + U[e[t + 1]] + U[e[t + 2]] + U[e[t + 3]] + "-" + U[e[t + 4]] + U[e[t + 5]] + "-" + U[e[t + 6]] + U[e[t + 7]] + "-" + U[e[t + 8]] + U[e[t + 9]] + "-" + U[e[t + 10]] + U[e[t + 11]] + U[e[t + 12]] + U[e[t + 13]] + U[e[t + 14]] + U[e[t + 15]]).toLowerCase();
2897
2901
  }
2898
2902
  let gt;
2899
- const wn = new Uint8Array(16);
2900
- function vn() {
2903
+ const vn = new Uint8Array(16);
2904
+ function Tn() {
2901
2905
  if (!gt) {
2902
2906
  if (typeof crypto > "u" || !crypto.getRandomValues)
2903
2907
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
2904
2908
  gt = crypto.getRandomValues.bind(crypto);
2905
2909
  }
2906
- return gt(wn);
2910
+ return gt(vn);
2907
2911
  }
2908
- const Tn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mr = { randomUUID: Tn };
2909
- function pr(e, t, r) {
2910
- if (mr.randomUUID && !e)
2911
- return mr.randomUUID();
2912
+ const In = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), pr = { randomUUID: In };
2913
+ function yr(e, t, r) {
2914
+ if (pr.randomUUID && !e)
2915
+ return pr.randomUUID();
2912
2916
  e = e || {};
2913
- const s = e.random ?? e.rng?.() ?? vn();
2917
+ const s = e.random ?? e.rng?.() ?? Tn();
2914
2918
  if (s.length < 16)
2915
2919
  throw new Error("Random bytes length must be >= 16");
2916
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Sn(s);
2920
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, wn(s);
2917
2921
  }
2918
- const yr = globalThis.crypto, In = (e) => `${pr()}${pr()}`.slice(0, e), An = (e) => btoa(
2922
+ const gr = globalThis.crypto, An = (e) => `${yr()}${yr()}`.slice(0, e), _n = (e) => btoa(
2919
2923
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
2920
2924
  );
2921
- async function _n(e) {
2922
- if (!yr.subtle)
2925
+ async function Rn(e) {
2926
+ if (!gr.subtle)
2923
2927
  throw new Error(
2924
2928
  "crypto.subtle is available only in secure contexts (HTTPS)."
2925
2929
  );
2926
- const t = new TextEncoder().encode(e), r = await yr.subtle.digest("SHA-256", t);
2927
- return An(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2930
+ const t = new TextEncoder().encode(e), r = await gr.subtle.digest("SHA-256", t);
2931
+ return _n(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
2928
2932
  }
2929
- async function Rn(e) {
2930
- const r = In(43), s = await _n(r);
2933
+ async function On(e) {
2934
+ const r = An(43), s = await Rn(r);
2931
2935
  return {
2932
2936
  code_verifier: r,
2933
2937
  code_challenge: s
2934
2938
  };
2935
2939
  }
2936
- const zr = Ft(null);
2937
- var On = Object.defineProperty, Cn = (e, t, r) => t in e ? On(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t, r) => Cn(e, typeof t != "symbol" ? t + "" : t, r);
2940
+ const Xr = Ft(null);
2941
+ var Cn = Object.defineProperty, kn = (e, t, r) => t in e ? Cn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Et = (e, t, r) => kn(e, typeof t != "symbol" ? t + "" : t, r);
2938
2942
  /*!
2939
2943
  @versini/auth-provider v8.0.5
2940
2944
  © 2025 gizmette.com
@@ -2962,12 +2966,12 @@ function at(e) {
2962
2966
  return n;
2963
2967
  }
2964
2968
  function Wt() {
2965
- return kn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2969
+ return Nn.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
2966
2970
  }
2967
- const kn = {
2971
+ const Nn = {
2968
2972
  stubThis: (e) => e
2969
2973
  };
2970
- function Xr(e) {
2974
+ function Zr(e) {
2971
2975
  const { id: t } = e;
2972
2976
  return {
2973
2977
  ...e,
@@ -2980,7 +2984,7 @@ function Xr(e) {
2980
2984
  transports: e.transports
2981
2985
  };
2982
2986
  }
2983
- function Zr(e) {
2987
+ function es(e) {
2984
2988
  return (
2985
2989
  // Consider localhost valid as well since it's okay wrt Secure Contexts
2986
2990
  e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
@@ -2996,7 +3000,7 @@ let K = class extends Error {
2996
3000
  }), this.name = a ?? s.name, this.code = r;
2997
3001
  }
2998
3002
  };
2999
- function Nn({ error: e, options: t }) {
3003
+ function Pn({ error: e, options: t }) {
3000
3004
  const { publicKey: r } = t;
3001
3005
  if (!r)
3002
3006
  throw Error("options was missing required publicKey property");
@@ -3054,7 +3058,7 @@ function Nn({ error: e, options: t }) {
3054
3058
  });
3055
3059
  if (e.name === "SecurityError") {
3056
3060
  const s = globalThis.location.hostname;
3057
- if (Zr(s)) {
3061
+ if (es(s)) {
3058
3062
  if (r.rp.id !== s)
3059
3063
  return new K({
3060
3064
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
@@ -3082,7 +3086,7 @@ function Nn({ error: e, options: t }) {
3082
3086
  }
3083
3087
  return e;
3084
3088
  }
3085
- class Pn {
3089
+ class $n {
3086
3090
  constructor() {
3087
3091
  Object.defineProperty(this, "controller", {
3088
3092
  enumerable: !0,
@@ -3106,12 +3110,12 @@ class Pn {
3106
3110
  }
3107
3111
  }
3108
3112
  }
3109
- const es = new Pn(), $n = ["cross-platform", "platform"];
3110
- function ts(e) {
3111
- if (e && !($n.indexOf(e) < 0))
3113
+ const ts = new $n(), Mn = ["cross-platform", "platform"];
3114
+ function rs(e) {
3115
+ if (e && !(Mn.indexOf(e) < 0))
3112
3116
  return e;
3113
3117
  }
3114
- async function Mn(e) {
3118
+ async function xn(e) {
3115
3119
  !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
3120
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
3117
3121
  if (!Wt())
@@ -3123,14 +3127,14 @@ async function Mn(e) {
3123
3127
  ...t.user,
3124
3128
  id: at(t.user.id)
3125
3129
  },
3126
- excludeCredentials: t.excludeCredentials?.map(Xr)
3130
+ excludeCredentials: t.excludeCredentials?.map(Zr)
3127
3131
  }, a = {};
3128
- r && (a.mediation = "conditional"), a.publicKey = s, a.signal = es.createNewAbortSignal();
3132
+ r && (a.mediation = "conditional"), a.publicKey = s, a.signal = ts.createNewAbortSignal();
3129
3133
  let n;
3130
3134
  try {
3131
3135
  n = await navigator.credentials.create(a);
3132
3136
  } catch (p) {
3133
- throw Nn({ error: p, options: a });
3137
+ throw Pn({ error: p, options: a });
3134
3138
  }
3135
3139
  if (!n)
3136
3140
  throw new Error("Registration was not completed");
@@ -3172,14 +3176,14 @@ async function Mn(e) {
3172
3176
  },
3173
3177
  type: f,
3174
3178
  clientExtensionResults: n.getClientExtensionResults(),
3175
- authenticatorAttachment: ts(n.authenticatorAttachment)
3179
+ authenticatorAttachment: rs(n.authenticatorAttachment)
3176
3180
  };
3177
3181
  }
3178
3182
  function bt(e, t) {
3179
3183
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
3180
3184
  `, t);
3181
3185
  }
3182
- function xn() {
3186
+ function Dn() {
3183
3187
  if (!Wt())
3184
3188
  return St.stubThis(new Promise((t) => t(!1)));
3185
3189
  const e = globalThis.PublicKeyCredential;
@@ -3188,7 +3192,7 @@ function xn() {
3188
3192
  const St = {
3189
3193
  stubThis: (e) => e
3190
3194
  };
3191
- function Dn({ error: e, options: t }) {
3195
+ function Ln({ error: e, options: t }) {
3192
3196
  const { publicKey: r } = t;
3193
3197
  if (!r)
3194
3198
  throw Error("options was missing required publicKey property");
@@ -3208,7 +3212,7 @@ function Dn({ error: e, options: t }) {
3208
3212
  });
3209
3213
  if (e.name === "SecurityError") {
3210
3214
  const s = globalThis.location.hostname;
3211
- if (Zr(s)) {
3215
+ if (es(s)) {
3212
3216
  if (r.rpId !== s)
3213
3217
  return new K({
3214
3218
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
@@ -3229,31 +3233,31 @@ function Dn({ error: e, options: t }) {
3229
3233
  }
3230
3234
  return e;
3231
3235
  }
3232
- async function Ln(e) {
3236
+ async function Un(e) {
3233
3237
  !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
3238
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: s = !0 } = e;
3235
3239
  if (!Wt())
3236
3240
  throw new Error("WebAuthn is not supported in this browser");
3237
3241
  let a;
3238
- t.allowCredentials?.length !== 0 && (a = t.allowCredentials?.map(Xr));
3242
+ t.allowCredentials?.length !== 0 && (a = t.allowCredentials?.map(Zr));
3239
3243
  const n = {
3240
3244
  ...t,
3241
3245
  challenge: at(t.challenge),
3242
3246
  allowCredentials: a
3243
3247
  }, i = {};
3244
3248
  if (r) {
3245
- if (!await xn())
3249
+ if (!await Dn())
3246
3250
  throw Error("Browser does not support WebAuthn autofill");
3247
3251
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && s)
3248
3252
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
3249
3253
  i.mediation = "conditional", n.allowCredentials = [];
3250
3254
  }
3251
- i.publicKey = n, i.signal = es.createNewAbortSignal();
3255
+ i.publicKey = n, i.signal = ts.createNewAbortSignal();
3252
3256
  let o;
3253
3257
  try {
3254
3258
  o = await navigator.credentials.get(i);
3255
3259
  } catch (m) {
3256
- throw Dn({ error: m, options: i });
3260
+ throw Ln({ error: m, options: i });
3257
3261
  }
3258
3262
  if (!o)
3259
3263
  throw new Error("Authentication was not completed");
@@ -3270,29 +3274,29 @@ async function Ln(e) {
3270
3274
  },
3271
3275
  type: u,
3272
3276
  clientExtensionResults: o.getClientExtensionResults(),
3273
- authenticatorAttachment: ts(o.authenticatorAttachment)
3277
+ authenticatorAttachment: rs(o.authenticatorAttachment)
3274
3278
  };
3275
3279
  }
3276
- function rs(e, t) {
3280
+ function ss(e, t) {
3277
3281
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
3278
3282
  }
3279
- const gr = (e, t) => {
3283
+ const Er = (e, t) => {
3280
3284
  const r = JSON.stringify(
3281
3285
  typeof t == "function" ? t() : t
3282
3286
  );
3283
- window.localStorage.setItem(e, r), rs(e, r);
3284
- }, Un = (e) => {
3285
- window.localStorage.removeItem(e), rs(e, null);
3286
- }, Er = (e) => window.localStorage.getItem(e), Fn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3287
+ window.localStorage.setItem(e, r), ss(e, r);
3288
+ }, Fn = (e) => {
3289
+ window.localStorage.removeItem(e), ss(e, null);
3290
+ }, br = (e) => window.localStorage.getItem(e), Hn = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
3287
3291
  function qe({
3288
3292
  key: e,
3289
3293
  initialValue: t
3290
3294
  }) {
3291
- const r = Gs(Fn, () => Er(e)), s = X(
3295
+ const r = qs(Hn, () => br(e)), s = X(
3292
3296
  (i) => {
3293
3297
  try {
3294
3298
  const o = typeof i == "function" ? i(JSON.parse(r)) : i;
3295
- o == null ? Un(e) : gr(e, o);
3299
+ o == null ? Fn(e) : Er(e, o);
3296
3300
  } catch (o) {
3297
3301
  console.warn(o);
3298
3302
  }
@@ -3305,7 +3309,7 @@ function qe({
3305
3309
  }, [s]);
3306
3310
  return V(() => {
3307
3311
  try {
3308
- Er(e) === null && typeof t < "u" && gr(e, t);
3312
+ br(e) === null && typeof t < "u" && Er(e, t);
3309
3313
  } catch (i) {
3310
3314
  console.warn(i);
3311
3315
  }
@@ -3314,30 +3318,30 @@ function qe({
3314
3318
  const F = [];
3315
3319
  for (let e = 0; e < 256; ++e)
3316
3320
  F.push((e + 256).toString(16).slice(1));
3317
- function Hn(e, t = 0) {
3321
+ function Kn(e, t = 0) {
3318
3322
  return (F[e[t + 0]] + F[e[t + 1]] + F[e[t + 2]] + F[e[t + 3]] + "-" + F[e[t + 4]] + F[e[t + 5]] + "-" + F[e[t + 6]] + F[e[t + 7]] + "-" + F[e[t + 8]] + F[e[t + 9]] + "-" + F[e[t + 10]] + F[e[t + 11]] + F[e[t + 12]] + F[e[t + 13]] + F[e[t + 14]] + F[e[t + 15]]).toLowerCase();
3319
3323
  }
3320
3324
  let wt;
3321
- const Kn = new Uint8Array(16);
3322
- function Gn() {
3325
+ const Gn = new Uint8Array(16);
3326
+ function qn() {
3323
3327
  if (!wt) {
3324
3328
  if (typeof crypto > "u" || !crypto.getRandomValues)
3325
3329
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
3326
3330
  wt = crypto.getRandomValues.bind(crypto);
3327
3331
  }
3328
- return wt(Kn);
3332
+ return wt(Gn);
3329
3333
  }
3330
- const qn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), br = { randomUUID: qn };
3334
+ const Bn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Sr = { randomUUID: Bn };
3331
3335
  function vt(e, t, r) {
3332
- if (br.randomUUID && !e)
3333
- return br.randomUUID();
3336
+ if (Sr.randomUUID && !e)
3337
+ return Sr.randomUUID();
3334
3338
  e = e || {};
3335
- const s = e.random ?? e.rng?.() ?? Gn();
3339
+ const s = e.random ?? e.rng?.() ?? qn();
3336
3340
  if (s.length < 16)
3337
3341
  throw new Error("Random bytes length must be >= 16");
3338
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Hn(s);
3342
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, Kn(s);
3339
3343
  }
3340
- const Ae = "Your session has expired. For your security, please log in again to continue.", Bn = "Your session has been successfully terminated.", Tt = "Login failed. Please try again.", Wn = "Error getting access token, please re-authenticate.", Vn = "You forgot to wrap your component in <AuthProvider>.", Be = "@@auth@@", $e = "LOADING", Qe = "LOGIN", ss = "LOGOUT", Fe = "success", re = "failure", as = "include", ns = "POST", is = "application/json", We = {
3344
+ const Ae = "Your session has expired. For your security, please log in again to continue.", Wn = "Your session has been successfully terminated.", Tt = "Login failed. Please try again.", Vn = "Error getting access token, please re-authenticate.", jn = "You forgot to wrap your component in <AuthProvider>.", Be = "@@auth@@", $e = "LOADING", Qe = "LOGIN", as = "LOGOUT", Fe = "success", re = "failure", ns = "include", is = "POST", os = "application/json", We = {
3341
3345
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
3342
3346
  $clientId: String!,
3343
3347
  $username: String!,
@@ -3444,12 +3448,12 @@ const Ae = "Your session has expired. For your security, please log in again to
3444
3448
  }) => {
3445
3449
  try {
3446
3450
  const n = `Bearer ${e}`, i = await fetch(`${a}/graphql`, {
3447
- credentials: as,
3448
- method: ns,
3451
+ credentials: ns,
3452
+ method: is,
3449
3453
  headers: {
3450
3454
  authorization: n,
3451
- "Content-Type": is,
3452
- [Kr.CLIENT_ID]: `${r}`
3455
+ "Content-Type": os,
3456
+ [Gr.CLIENT_ID]: `${r}`
3453
3457
  },
3454
3458
  body: JSON.stringify({
3455
3459
  query: t.schema,
@@ -3474,11 +3478,11 @@ const Ae = "Your session has expired. For your security, please log in again to
3474
3478
  }) => {
3475
3479
  try {
3476
3480
  const a = await fetch(`${s}/${e}`, {
3477
- credentials: as,
3478
- method: ns,
3481
+ credentials: ns,
3482
+ method: is,
3479
3483
  headers: {
3480
- "Content-Type": is,
3481
- [Kr.CLIENT_ID]: `${t}`
3484
+ "Content-Type": os,
3485
+ [Gr.CLIENT_ID]: `${t}`
3482
3486
  },
3483
3487
  body: JSON.stringify(r)
3484
3488
  });
@@ -3492,21 +3496,21 @@ const Ae = "Your session has expired. For your security, please log in again to
3492
3496
  } catch (a) {
3493
3497
  return console.error(a), { status: re, data: [] };
3494
3498
  }
3495
- }, jn = process.env.NODE_ENV === "production", Qn = !jn, os = {
3499
+ }, Qn = process.env.NODE_ENV === "production", Jn = !Qn, cs = {
3496
3500
  isLoading: !0,
3497
3501
  isAuthenticated: !1,
3498
3502
  user: void 0,
3499
3503
  logoutReason: "",
3500
3504
  debug: !1,
3501
3505
  authenticationType: ""
3502
- }, Jn = (e) => {
3506
+ }, Yn = (e) => {
3503
3507
  try {
3504
- const t = bn(e);
3508
+ const t = Sn(e);
3505
3509
  return t ? t[G.USER_ID_KEY] : "";
3506
3510
  } catch {
3507
3511
  return "";
3508
3512
  }
3509
- }, Yn = async ({
3513
+ }, zn = async ({
3510
3514
  userId: e,
3511
3515
  clientId: t,
3512
3516
  domain: r,
@@ -3531,7 +3535,7 @@ const Ae = "Your session has expired. For your security, please log in again to
3531
3535
  status: re
3532
3536
  };
3533
3537
  }
3534
- }, zn = async ({
3538
+ }, Xn = async ({
3535
3539
  username: e,
3536
3540
  password: t,
3537
3541
  clientId: r,
@@ -3576,7 +3580,7 @@ const Ae = "Your session has expired. For your security, please log in again to
3576
3580
  status: !1
3577
3581
  };
3578
3582
  }
3579
- }, Xn = async ({
3583
+ }, Zn = async ({
3580
3584
  nonce: e,
3581
3585
  clientId: t,
3582
3586
  code_challenge: r,
@@ -3606,7 +3610,7 @@ const Ae = "Your session has expired. For your security, please log in again to
3606
3610
  data: ""
3607
3611
  };
3608
3612
  }
3609
- }, Zn = async ({
3613
+ }, ei = async ({
3610
3614
  clientId: e,
3611
3615
  userId: t,
3612
3616
  nonce: r,
@@ -3643,7 +3647,7 @@ const Ae = "Your session has expired. For your security, please log in again to
3643
3647
  };
3644
3648
  }
3645
3649
  };
3646
- class ei {
3650
+ class ti {
3647
3651
  constructor(t = null, r = null) {
3648
3652
  Et(this, "refreshTokenPromise", null), Et(this, "accessToken"), Et(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
3649
3653
  }
@@ -3676,7 +3680,7 @@ class ei {
3676
3680
  }) {
3677
3681
  const i = await Ue(this.refreshToken);
3678
3682
  if (i && i.payload[G.USER_ID_KEY] !== "") {
3679
- const o = await Zn({
3683
+ const o = await ei({
3680
3684
  endpoint: t,
3681
3685
  clientId: r,
3682
3686
  userId: s,
@@ -3699,8 +3703,8 @@ class ei {
3699
3703
  }
3700
3704
  }
3701
3705
  const Oe = () => {
3702
- throw new Error(Vn);
3703
- }, cs = Ft({
3706
+ throw new Error(jn);
3707
+ }, ls = Ft({
3704
3708
  isAuthenticated: !1,
3705
3709
  isLoading: !1,
3706
3710
  login: Oe,
@@ -3711,18 +3715,18 @@ const Oe = () => {
3711
3715
  loginWithPasskey: Oe,
3712
3716
  logoutReason: "",
3713
3717
  authenticationType: ""
3714
- }), ti = () => ({
3715
- ...ct(cs)
3716
- }), ri = (e) => X(
3718
+ }), ri = () => ({
3719
+ ...ct(ls)
3720
+ }), si = (e) => X(
3717
3721
  (...t) => {
3718
3722
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
3719
3723
  },
3720
3724
  [e]
3721
- ), si = le.createContext({
3722
- state: os,
3725
+ ), ai = le.createContext({
3726
+ state: cs,
3723
3727
  dispatch: () => {
3724
3728
  }
3725
- }), ai = (e, t) => t?.type === $e ? {
3729
+ }), ni = (e, t) => t?.type === $e ? {
3726
3730
  ...e,
3727
3731
  isLoading: t.payload.isLoading
3728
3732
  } : t?.type === Qe ? {
@@ -3732,28 +3736,28 @@ const Oe = () => {
3732
3736
  user: t.payload.user,
3733
3737
  authenticationType: t.payload.authenticationType,
3734
3738
  logoutReason: ""
3735
- } : t?.type === ss ? {
3739
+ } : t?.type === as ? {
3736
3740
  ...e,
3737
3741
  isLoading: !1,
3738
3742
  isAuthenticated: !1,
3739
3743
  user: void 0,
3740
3744
  authenticationType: "",
3741
3745
  logoutReason: t.payload.logoutReason
3742
- } : e, ni = ({ children: e }) => {
3743
- const t = ti();
3744
- return /* @__PURE__ */ h(zr.Provider, { value: t, children: e });
3745
- }, Sr = ({
3746
+ } : e, ii = ({ children: e }) => {
3747
+ const t = ri();
3748
+ return /* @__PURE__ */ h(Xr.Provider, { value: t, children: e });
3749
+ }, wr = ({
3746
3750
  children: e,
3747
3751
  sessionExpiration: t,
3748
3752
  clientId: r,
3749
3753
  domain: s = "",
3750
3754
  debug: a = !1,
3751
- endpoint: n = Qn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3755
+ endpoint: n = Jn ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
3752
3756
  }) => {
3753
- const [i, o] = Nr(ai, {
3754
- ...os,
3757
+ const [i, o] = Pr(ni, {
3758
+ ...cs,
3755
3759
  debug: a
3756
- }), c = ri(a), f = Q(!1), [d, u, , l] = qe({
3760
+ }), c = si(a), f = Q(!1), [d, u, , l] = qe({
3757
3761
  key: `${Be}::${r}::@@user@@`
3758
3762
  }), [m, p, , g] = qe({
3759
3763
  key: `${Be}::${r}::@@access@@`
@@ -3763,7 +3767,7 @@ const Oe = () => {
3763
3767
  }
3764
3768
  ), [I, B, , R] = qe({
3765
3769
  key: `${Be}::${r}::@@nonce@@`
3766
- }), z = new ei(m, E), O = X(() => {
3770
+ }), z = new ti(m, E), O = X(() => {
3767
3771
  c("removeLocalStorage: removing local storage"), l(), g(), C(), R();
3768
3772
  }, [
3769
3773
  g,
@@ -3777,7 +3781,7 @@ const Oe = () => {
3777
3781
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
3778
3782
  S
3779
3783
  ), o({
3780
- type: ss,
3784
+ type: as,
3781
3785
  payload: {
3782
3786
  logoutReason: S || Ae
3783
3787
  }
@@ -3787,10 +3791,10 @@ const Oe = () => {
3787
3791
  ), L = X(
3788
3792
  async (S) => {
3789
3793
  c("invalidateAndLogout: invalidating and logging out");
3790
- const { user: T } = i, w = T?.userId || Jn(d);
3794
+ const { user: T } = i, w = T?.userId || Yn(d);
3791
3795
  w || c(
3792
3796
  "invalidateAndLogout: user cannot be identified, logging out without userId"
3793
- ), await Yn({
3797
+ ), await zn({
3794
3798
  userId: w,
3795
3799
  clientId: r,
3796
3800
  domain: s,
@@ -3837,14 +3841,14 @@ const Oe = () => {
3837
3841
  o({ type: $e, payload: { isLoading: !0 } }), O();
3838
3842
  const w = vt();
3839
3843
  B(w), c("login: Logging in with password");
3840
- const { code_verifier: fe, code_challenge: me } = await Rn(), Zt = await Xn({
3844
+ const { code_verifier: fe, code_challenge: me } = await On(), Zt = await Zn({
3841
3845
  endpoint: n,
3842
3846
  nonce: w,
3843
3847
  clientId: r,
3844
3848
  code_challenge: me
3845
3849
  });
3846
3850
  if (Zt.status) {
3847
- const Te = await zn({
3851
+ const Te = await Xn({
3848
3852
  endpoint: n,
3849
3853
  username: S,
3850
3854
  password: T,
@@ -3871,7 +3875,7 @@ const Oe = () => {
3871
3875
  }
3872
3876
  return !1;
3873
3877
  }, A = async (S) => {
3874
- S?.preventDefault(), await L(Bn);
3878
+ S?.preventDefault(), await L(Wn);
3875
3879
  }, N = async () => {
3876
3880
  const { isAuthenticated: S, user: T } = i;
3877
3881
  try {
@@ -3900,7 +3904,7 @@ const Oe = () => {
3900
3904
  } catch {
3901
3905
  return c(
3902
3906
  "getAccessToken: exception occurred, invalidating and logging out"
3903
- ), await L(Wn), "";
3907
+ ), await L(Vn), "";
3904
3908
  }
3905
3909
  }, J = () => i.isAuthenticated && d ? d : "", he = async () => {
3906
3910
  const { user: S } = i;
@@ -3917,7 +3921,7 @@ const Oe = () => {
3917
3921
  });
3918
3922
  if (T.status)
3919
3923
  try {
3920
- const w = await Mn({
3924
+ const w = await xn({
3921
3925
  optionsJSON: T.data
3922
3926
  });
3923
3927
  return T = await Re({
@@ -3964,7 +3968,7 @@ const Oe = () => {
3964
3968
  });
3965
3969
  if (w.status)
3966
3970
  try {
3967
- const fe = await Ln({
3971
+ const fe = await Un({
3968
3972
  optionsJSON: w.data
3969
3973
  });
3970
3974
  return w = await Re({
@@ -4010,8 +4014,8 @@ const Oe = () => {
4010
4014
  }
4011
4015
  return !1;
4012
4016
  };
4013
- return /* @__PURE__ */ h(si.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
4014
- cs.Provider,
4017
+ return /* @__PURE__ */ h(ai.Provider, { value: { state: i, dispatch: o }, children: /* @__PURE__ */ h(
4018
+ ls.Provider,
4015
4019
  {
4016
4020
  value: {
4017
4021
  ...i,
@@ -4022,7 +4026,7 @@ const Oe = () => {
4022
4026
  registeringForPasskey: he,
4023
4027
  loginWithPasskey: ve
4024
4028
  },
4025
- children: /* @__PURE__ */ h(ni, { children: e })
4029
+ children: /* @__PURE__ */ h(ii, { children: e })
4026
4030
  }
4027
4031
  ) });
4028
4032
  };
@@ -4039,12 +4043,12 @@ try {
4039
4043
  });
4040
4044
  } catch {
4041
4045
  }
4042
- const ls = () => {
4043
- const e = ct(zr);
4046
+ const us = () => {
4047
+ const e = ct(Xr);
4044
4048
  if (!e)
4045
4049
  throw new Error("useAuth must be used within an AuthHookProvider");
4046
4050
  return e;
4047
- }, oc = "I'm having trouble right now. Please try again later.", cc = "action-search", lc = "action-sort", uc = "action-toggle-prompt", dc = "action-reset-prompt", us = "sassy-saint-", hc = "search", fc = "sort", mc = "sort-timestamp", pc = "sort-token-usage", yc = "sort-memory-direction", gc = "sort-memory-column", Ec = "favorites-only", bc = "private-disclosure", Sc = "reasoning-disclosure", ds = "service-worker", wc = "chat-id", vc = "sassysaint-oled-mode", Tc = "sassysaint-full-screen", wr = "data-oled-mode", vr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ic = 20, Ac = 30, _c = "av-prompt", Rc = "av-prompt-editable", Oc = "size-5 sm:size-4", Cc = 30, kc = 15, Nc = 130, Pc = 160, $c = 16, Mc = 24, xc = 76, Dc = 76;
4051
+ }, cc = "I'm having trouble right now. Please try again later.", lc = "action-search", uc = "action-sort", dc = "action-toggle-prompt", hc = "action-reset-prompt", ds = "sassy-saint-", fc = "search", mc = "sort", pc = "sort-timestamp", yc = "sort-token-usage", gc = "sort-memory-direction", Ec = "sort-memory-column", bc = "favorites-only", Sc = "private-disclosure", wc = "reasoning-disclosure", hs = "service-worker", vc = "chat-id", Tc = "sassysaint-oled-mode", Ic = "sassysaint-full-screen", vr = "data-oled-mode", Tr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ac = 20, _c = 30, Rc = "av-prompt", Oc = "av-prompt-editable", Cc = "size-5 sm:size-4", kc = 30, Nc = 15, Pc = 130, $c = 160, Mc = 16, xc = 24, Dc = 76, Lc = 76;
4048
4052
  let It = null, ie = !1;
4049
4053
  typeof window < "u" && "serviceWorker" in navigator && navigator.serviceWorker.addEventListener("controllerchange", () => {
4050
4054
  ie && (ie = !1, window.location.reload());
@@ -4054,17 +4058,17 @@ function Vt() {
4054
4058
  }
4055
4059
  function Dt() {
4056
4060
  const e = localStorage.getItem(
4057
- us + ds
4061
+ ds + hs
4058
4062
  );
4059
4063
  return e === null ? !1 : e === "true";
4060
4064
  }
4061
- function ii(e) {
4065
+ function oi(e) {
4062
4066
  localStorage.setItem(
4063
- us + ds,
4067
+ ds + hs,
4064
4068
  e.toString()
4065
4069
  );
4066
4070
  }
4067
- async function hs() {
4071
+ async function fs() {
4068
4072
  if (!Dt())
4069
4073
  return !1;
4070
4074
  if (!Vt())
@@ -4084,7 +4088,7 @@ async function hs() {
4084
4088
  return console.error("[SW] Service worker registration failed:", e), !1;
4085
4089
  }
4086
4090
  }
4087
- async function oi() {
4091
+ async function ci() {
4088
4092
  if (!Vt())
4089
4093
  return !1;
4090
4094
  try {
@@ -4094,14 +4098,14 @@ async function oi() {
4094
4098
  return console.error("[SW] Service worker un-registration failed:", e), !1;
4095
4099
  }
4096
4100
  }
4097
- async function Lc(e) {
4098
- if (ii(e), e) {
4101
+ async function Uc(e) {
4102
+ if (oi(e), e) {
4099
4103
  ie = !0;
4100
4104
  try {
4101
4105
  sessionStorage.setItem("sw-toggle-pending", "enabled");
4102
4106
  } catch {
4103
4107
  }
4104
- await hs(), navigator.serviceWorker.controller && ie && (ie = !1, window.location.reload());
4108
+ await fs(), navigator.serviceWorker.controller && ie && (ie = !1, window.location.reload());
4105
4109
  try {
4106
4110
  navigator.serviceWorker.ready.then(() => {
4107
4111
  ie && Dt() && (ie = !1, window.location.reload());
@@ -4116,14 +4120,14 @@ async function Lc(e) {
4116
4120
  } catch {
4117
4121
  }
4118
4122
  try {
4119
- Vt() && await ci();
4123
+ Vt() && await li();
4120
4124
  } catch (t) {
4121
4125
  console.warn("[SW] Failed to invalidate cache:", t);
4122
4126
  }
4123
- await oi(), window.location.reload();
4127
+ await ci(), window.location.reload();
4124
4128
  }
4125
4129
  }
4126
- async function ci() {
4130
+ async function li() {
4127
4131
  try {
4128
4132
  if ("caches" in window) {
4129
4133
  const e = await caches.keys();
@@ -4149,7 +4153,7 @@ async function ci() {
4149
4153
  function At() {
4150
4154
  return "unknown";
4151
4155
  }
4152
- async function Uc(e = {}) {
4156
+ async function Fc(e = {}) {
4153
4157
  const { urlLimitPerCache: t } = e;
4154
4158
  if (!("caches" in window))
4155
4159
  return { version: At(), caches: [], totalItems: 0 };
@@ -4176,45 +4180,45 @@ async function Uc(e = {}) {
4176
4180
  return console.warn("[SW] getCacheInfo failed:", r), { version: At(), caches: [], totalItems: 0 };
4177
4181
  }
4178
4182
  }
4179
- const Fc = "user", Hc = "assistant", Kc = "data", He = "OpenAI", dt = "Anthropic", ht = "Google", fs = "Perplexity", Gc = He, li = [
4183
+ const Hc = "user", Kc = "assistant", Gc = "data", He = "OpenAI", dt = "Anthropic", ht = "Google", ms = "Perplexity", qc = He, ui = [
4180
4184
  He,
4181
4185
  dt,
4182
4186
  ht
4183
- ], ms = "gpt-5", ps = "gpt-5-mini", ys = "gpt-5-nano", gs = "gpt-4.1-nano", Es = "claude-haiku-4-5", bs = "claude-sonnet-4-5", Ss = "gemini-2.5-flash", ws = "gemini-2.5-pro", vs = "sonar", Ts = "sonar-pro", qc = {
4184
- [ms]: "GPT-5",
4185
- [ps]: "GPT-5 Mini",
4186
- [ys]: "GPT-5 Nano",
4187
- [gs]: "GPT-4.1 Nano",
4188
- [Es]: "Claude Haiku 4.5",
4189
- [bs]: "Claude Sonnet 4.5",
4190
- [Ss]: "Gemini 2.5 Flash",
4191
- [ws]: "Gemini 2.5 Pro",
4192
- [vs]: "Sonar",
4193
- [Ts]: "Sonar Pro"
4194
- }, Is = {
4187
+ ], ps = "gpt-5", ys = "gpt-5-mini", gs = "gpt-5-nano", Es = "gpt-4.1-nano", bs = "claude-haiku-4-5", Ss = "claude-sonnet-4-5", ws = "gemini-2.5-flash", vs = "gemini-2.5-pro", Ts = "sonar", Is = "sonar-pro", Bc = {
4188
+ [ps]: "GPT-5",
4189
+ [ys]: "GPT-5 Mini",
4190
+ [gs]: "GPT-5 Nano",
4191
+ [Es]: "GPT-4.1 Nano",
4192
+ [bs]: "Claude Haiku 4.5",
4193
+ [Ss]: "Claude Sonnet 4.5",
4194
+ [ws]: "Gemini 2.5 Flash",
4195
+ [vs]: "Gemini 2.5 Pro",
4196
+ [Ts]: "Sonar",
4197
+ [Is]: "Sonar Pro"
4198
+ }, As = {
4195
4199
  [He]: [
4196
- gs,
4197
- ms,
4200
+ Es,
4198
4201
  ps,
4199
- ys
4202
+ ys,
4203
+ gs
4200
4204
  ],
4201
- [dt]: [Es, bs],
4202
- [ht]: [Ss, ws],
4203
- [fs]: [vs, Ts]
4204
- }, ui = "claude-sonnet-4", di = "claude-haiku-4", hi = "claude-3", fi = "gpt-", mi = "o3", pi = "o4", yi = "gemini", gi = "sonar", Ei = {
4205
+ [dt]: [bs, Ss],
4206
+ [ht]: [ws, vs],
4207
+ [ms]: [Ts, Is]
4208
+ }, di = "claude-sonnet-4", hi = "claude-haiku-4", fi = "claude-3", mi = "gpt-", pi = "o3", yi = "o4", gi = "gemini", Ei = "sonar", bi = {
4205
4209
  [dt]: [
4206
- ui,
4207
4210
  di,
4208
- hi
4211
+ hi,
4212
+ fi
4209
4213
  ],
4210
4214
  [He]: [
4211
- fi,
4212
4215
  mi,
4213
- pi
4216
+ pi,
4217
+ yi
4214
4218
  ],
4215
- [ht]: [yi],
4216
- [fs]: [gi]
4217
- }, Bc = "x-diggidy-chat-id", Wc = "timestamp", Vc = "tokenUsage", k = "Diggidy", jc = {
4219
+ [ht]: [gi],
4220
+ [ms]: [Ei]
4221
+ }, Wc = "x-diggidy-chat-id", Vc = "timestamp", jc = "tokenUsage", k = "Diggidy", Qc = {
4218
4222
  TOOL: {
4219
4223
  MEMORIES: "getUserMemories"
4220
4224
  },
@@ -4222,50 +4226,50 @@ const Fc = "user", Hc = "assistant", Kc = "data", He = "OpenAI", dt = "Anthropic
4222
4226
  ATTACHMENTS: "addon:attachments",
4223
4227
  REASONING: "addon:reasoning"
4224
4228
  }
4225
- }, Qc = (e) => {
4229
+ }, Jc = (e) => {
4226
4230
  for (const [t, r] of Object.entries(
4227
- Ei
4231
+ bi
4228
4232
  ))
4229
4233
  if (r.some((s) => e.startsWith(s)))
4230
4234
  return t;
4231
4235
  return null;
4232
- }, Jc = (e) => {
4236
+ }, Yc = (e) => {
4233
4237
  if (!e || e.length === 0)
4234
4238
  return [];
4235
4239
  const t = /* @__PURE__ */ new Set();
4236
4240
  for (const r of e)
4237
4241
  for (const [s, a] of Object.entries(
4238
- Is
4242
+ As
4239
4243
  ))
4240
4244
  a.includes(r) && (s === He || s === dt || s === ht) && t.add(s);
4241
- return li.filter((r) => t.has(r));
4242
- }, bi = (e) => {
4245
+ return ui.filter((r) => t.has(r));
4246
+ }, Si = (e) => {
4243
4247
  const t = /* @__PURE__ */ new Map();
4244
4248
  if (!e || e.length === 0)
4245
4249
  return t;
4246
4250
  for (const r of e)
4247
4251
  for (const [s, a] of Object.entries(
4248
- Is
4252
+ As
4249
4253
  ))
4250
4254
  if (a.includes(r)) {
4251
4255
  t.has(s) || t.set(s, []), t.get(s)?.push(r);
4252
4256
  break;
4253
4257
  }
4254
4258
  return t;
4255
- }, Yc = (e) => {
4256
- const t = bi(e);
4259
+ }, zc = (e) => {
4260
+ const t = Si(e);
4257
4261
  for (const r of t.values())
4258
4262
  if (r.length > 1)
4259
4263
  return !0;
4260
4264
  return !1;
4261
- }, zc = (e, t) => !e || !t || t.length === 0 ? !1 : t.includes(e);
4262
- function Si(e) {
4265
+ }, Xc = (e, t) => !e || !t || t.length === 0 ? !1 : t.includes(e);
4266
+ function wi(e) {
4263
4267
  return e ? new Set(e) : null;
4264
4268
  }
4265
- function wi(e, t, r) {
4269
+ function vi(e, t, r) {
4266
4270
  if (!t || Array.isArray(t) && t.length === 0)
4267
4271
  return !0;
4268
- const s = e instanceof Set ? e : Si(e);
4272
+ const s = e instanceof Set ? e : wi(e);
4269
4273
  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));
4270
4274
  }
4271
4275
  const $ = {
@@ -4579,12 +4583,12 @@ const $ = {
4579
4583
  schema: $.RESTORE_MEMORY,
4580
4584
  method: "restoreMemory"
4581
4585
  }
4582
- }, vi = process.env.PUBLIC_SASSY_API_SERVER_URL, nt = async ({
4586
+ }, Ti = process.env.PUBLIC_SASSY_API_SERVER_URL, nt = async ({
4583
4587
  query: e,
4584
4588
  data: t,
4585
4589
  headers: r = {},
4586
4590
  ...s
4587
- }) => await fetch(`${vi}/graphql`, {
4591
+ }) => await fetch(`${Ti}/graphql`, {
4588
4592
  method: "POST",
4589
4593
  credentials: "include",
4590
4594
  headers: {
@@ -4629,7 +4633,7 @@ const $ = {
4629
4633
  } catch (r) {
4630
4634
  throw console.error(r), r;
4631
4635
  }
4632
- }, Xc = async ({
4636
+ }, Zc = async ({
4633
4637
  provider: e,
4634
4638
  model: t,
4635
4639
  accessToken: r,
@@ -4644,7 +4648,7 @@ const $ = {
4644
4648
  type: D.SET_USER_PREFERENCES,
4645
4649
  params: a
4646
4650
  });
4647
- }, Zc = async ({
4651
+ }, el = async ({
4648
4652
  plan: e,
4649
4653
  accessToken: t,
4650
4654
  username: r
@@ -4665,13 +4669,13 @@ const $ = {
4665
4669
  USAGE: "usage",
4666
4670
  USER_MEMORIES: "userMemories",
4667
4671
  EXPIRED_MEMORIES: "expiredMemories"
4668
- }, el = () => ue({
4672
+ }, tl = () => ue({
4669
4673
  queryKey: [x.CAPABILITIES],
4670
4674
  queryFn: async () => await de({
4671
4675
  type: D.GET_SERVER_CAPABILITIES,
4672
4676
  noAuth: !0
4673
4677
  })
4674
- }), tl = () => ue({
4678
+ }), rl = () => ue({
4675
4679
  queryKey: [x.CHANGELOGS],
4676
4680
  queryFn: async () => await de({
4677
4681
  type: D.GET_CHANGELOGS,
@@ -4680,7 +4684,7 @@ const $ = {
4680
4684
  client: !0
4681
4685
  }
4682
4686
  })
4683
- }), Ti = ({
4687
+ }), Ii = ({
4684
4688
  user: e,
4685
4689
  getAccessToken: t
4686
4690
  }) => ue({
@@ -4692,7 +4696,7 @@ const $ = {
4692
4696
  type: D.GET_USER_PREFERENCES,
4693
4697
  getAccessToken: t
4694
4698
  })
4695
- }), rl = ({
4699
+ }), sl = ({
4696
4700
  user: e,
4697
4701
  getAccessToken: t
4698
4702
  }) => ue({
@@ -4704,7 +4708,7 @@ const $ = {
4704
4708
  type: D.GET_CHATS_STATS,
4705
4709
  getAccessToken: t
4706
4710
  })
4707
- }), sl = ({
4711
+ }), al = ({
4708
4712
  user: e,
4709
4713
  searchString: t,
4710
4714
  sortDirection: r,
@@ -4728,7 +4732,7 @@ const $ = {
4728
4732
  type: D.GET_CHATS,
4729
4733
  getAccessToken: a
4730
4734
  })
4731
- }), al = ({
4735
+ }), nl = ({
4732
4736
  chatId: e,
4733
4737
  getAccessToken: t,
4734
4738
  enabled: r = !0
@@ -4740,7 +4744,7 @@ const $ = {
4740
4744
  type: D.GET_CHAT,
4741
4745
  getAccessToken: t
4742
4746
  })
4743
- }), nl = ({
4747
+ }), il = ({
4744
4748
  getAccessToken: e
4745
4749
  }) => {
4746
4750
  const t = se();
@@ -4763,7 +4767,7 @@ const $ = {
4763
4767
  t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
4764
4768
  }
4765
4769
  });
4766
- }, il = ({
4770
+ }, ol = ({
4767
4771
  getAccessToken: e
4768
4772
  }) => {
4769
4773
  const t = se();
@@ -4780,7 +4784,7 @@ const $ = {
4780
4784
  t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
4781
4785
  }
4782
4786
  });
4783
- }, ol = ({
4787
+ }, cl = ({
4784
4788
  getAccessToken: e
4785
4789
  }) => {
4786
4790
  const t = se();
@@ -4797,7 +4801,7 @@ const $ = {
4797
4801
  t.invalidateQueries({ queryKey: [x.CHATS, s.userId] });
4798
4802
  }
4799
4803
  });
4800
- }, cl = ({
4804
+ }, ll = ({
4801
4805
  user: e,
4802
4806
  month: t,
4803
4807
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4815,7 +4819,7 @@ const $ = {
4815
4819
  type: D.GET_USAGE,
4816
4820
  getAccessToken: s
4817
4821
  })
4818
- }), ll = ({
4822
+ }), ul = ({
4819
4823
  user: e,
4820
4824
  query: t,
4821
4825
  getAccessToken: r,
@@ -4828,7 +4832,7 @@ const $ = {
4828
4832
  type: D.GET_USER_MEMORIES,
4829
4833
  getAccessToken: r
4830
4834
  })
4831
- }), ul = ({
4835
+ }), dl = ({
4832
4836
  getAccessToken: e
4833
4837
  }) => {
4834
4838
  const t = se();
@@ -4852,7 +4856,7 @@ const $ = {
4852
4856
  });
4853
4857
  }
4854
4858
  });
4855
- }, dl = ({
4859
+ }, hl = ({
4856
4860
  getAccessToken: e
4857
4861
  }) => {
4858
4862
  const t = se();
@@ -4876,7 +4880,7 @@ const $ = {
4876
4880
  });
4877
4881
  }
4878
4882
  });
4879
- }, hl = ({
4883
+ }, fl = ({
4880
4884
  getAccessToken: e
4881
4885
  }) => {
4882
4886
  const t = se();
@@ -4895,7 +4899,7 @@ const $ = {
4895
4899
  });
4896
4900
  }
4897
4901
  });
4898
- }, fl = ({
4902
+ }, ml = ({
4899
4903
  getAccessToken: e
4900
4904
  }) => {
4901
4905
  const t = se();
@@ -4914,7 +4918,7 @@ const $ = {
4914
4918
  });
4915
4919
  }
4916
4920
  });
4917
- }, ml = ({
4921
+ }, pl = ({
4918
4922
  user: e,
4919
4923
  query: t,
4920
4924
  getAccessToken: r,
@@ -4927,7 +4931,7 @@ const $ = {
4927
4931
  type: D.GET_EXPIRED_MEMORIES,
4928
4932
  getAccessToken: r
4929
4933
  })
4930
- }), pl = ({
4934
+ }), yl = ({
4931
4935
  getAccessToken: e
4932
4936
  }) => {
4933
4937
  const t = se();
@@ -4987,19 +4991,19 @@ const $ = {
4987
4991
  } catch (a) {
4988
4992
  return Promise.reject(a);
4989
4993
  }
4990
- }, As = Ft(
4994
+ }, _s = Ft(
4991
4995
  void 0
4992
- ), Tr = {
4996
+ ), Ir = {
4993
4997
  capabilities: /* @__PURE__ */ new Set(),
4994
4998
  allowedModels: [],
4995
4999
  version: null,
4996
5000
  status: "idle"
4997
- }, Ii = ({
5001
+ }, Ai = ({
4998
5002
  user: e,
4999
5003
  getAccessToken: t,
5000
5004
  children: r
5001
5005
  }) => {
5002
- const [s, a] = ce(Tr), n = ze(
5006
+ const [s, a] = ce(Ir), n = ze(
5003
5007
  () => e ? `entitlements:${e}` : null,
5004
5008
  [e]
5005
5009
  ), i = X(() => {
@@ -5024,7 +5028,7 @@ const $ = {
5024
5028
  V(() => {
5025
5029
  s.status === "idle" && i();
5026
5030
  }, [i, s.status]);
5027
- const o = Ti({ user: e, getAccessToken: t });
5031
+ const o = Ii({ user: e, getAccessToken: t });
5028
5032
  V(() => {
5029
5033
  o.isLoading && s.status === "idle" && a((u) => ({ ...u, status: "loading" }));
5030
5034
  }, [o.isLoading, s.status]), V(() => {
@@ -5076,7 +5080,7 @@ const $ = {
5076
5080
  },
5077
5081
  [n]
5078
5082
  ), f = X(() => {
5079
- if (a(Tr), n)
5083
+ if (a(Ir), n)
5080
5084
  try {
5081
5085
  sessionStorage.removeItem(n);
5082
5086
  } catch {
@@ -5084,33 +5088,33 @@ const $ = {
5084
5088
  }, [n]), d = ze(
5085
5089
  () => ({
5086
5090
  ...s,
5087
- check: (u, l) => s.status !== "ready" ? !1 : wi(s.capabilities, u, { any: l?.any }),
5091
+ check: (u, l) => s.status !== "ready" ? !1 : vi(s.capabilities, u, { any: l?.any }),
5088
5092
  loadFromProfile: c,
5089
5093
  reset: f
5090
5094
  }),
5091
5095
  [s, c, f]
5092
5096
  );
5093
- return /* @__PURE__ */ h(As.Provider, { value: d, children: r });
5097
+ return /* @__PURE__ */ h(_s.Provider, { value: d, children: r });
5094
5098
  };
5095
- function yl() {
5096
- const e = ct(As);
5099
+ function gl() {
5100
+ const e = ct(_s);
5097
5101
  if (!e)
5098
5102
  throw new Error("useEntitlements must be used within EntitlementsProvider");
5099
5103
  return e;
5100
5104
  }
5101
- const Ir = (e) => Number.isFinite(e) ? e : 0;
5102
- function Ai(e) {
5105
+ const Ar = (e) => Number.isFinite(e) ? e : 0;
5106
+ function _i(e) {
5103
5107
  return {
5104
5108
  days: Math.trunc(e / 864e5),
5105
5109
  hours: Math.trunc(e / 36e5 % 24),
5106
5110
  minutes: Math.trunc(e / 6e4 % 60),
5107
5111
  seconds: Math.trunc(e / 1e3 % 60),
5108
5112
  milliseconds: Math.trunc(e % 1e3),
5109
- microseconds: Math.trunc(Ir(e * 1e3) % 1e3),
5110
- nanoseconds: Math.trunc(Ir(e * 1e6) % 1e3)
5113
+ microseconds: Math.trunc(Ar(e * 1e3) % 1e3),
5114
+ nanoseconds: Math.trunc(Ar(e * 1e6) % 1e3)
5111
5115
  };
5112
5116
  }
5113
- function _i(e) {
5117
+ function Ri(e) {
5114
5118
  return {
5115
5119
  days: e / 86400000n,
5116
5120
  hours: e / 3600000n % 24n,
@@ -5121,20 +5125,20 @@ function _i(e) {
5121
5125
  nanoseconds: 0n
5122
5126
  };
5123
5127
  }
5124
- function Ri(e) {
5128
+ function Oi(e) {
5125
5129
  switch (typeof e) {
5126
5130
  case "number": {
5127
5131
  if (Number.isFinite(e))
5128
- return Ai(e);
5132
+ return _i(e);
5129
5133
  break;
5130
5134
  }
5131
5135
  case "bigint":
5132
- return _i(e);
5136
+ return Ri(e);
5133
5137
  }
5134
5138
  throw new TypeError("Expected a finite number or bigint");
5135
5139
  }
5136
- const Oi = (e) => e === 0 || e === 0n, Ci = (e, t) => t === 1 || t === 1n ? e : `${e}s`, ki = 1e-7, Ni = 24n * 60n * 60n * 1000n;
5137
- function Pi(e, t) {
5140
+ const Ci = (e) => e === 0 || e === 0n, ki = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ni = 1e-7, Pi = 24n * 60n * 60n * 1000n;
5141
+ function $i(e, t) {
5138
5142
  const r = typeof e == "bigint";
5139
5143
  if (!r && !Number.isFinite(e))
5140
5144
  throw new TypeError("Expected a finite number or bigint");
@@ -5143,18 +5147,18 @@ function Pi(e, t) {
5143
5147
  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);
5144
5148
  let a = [];
5145
5149
  const n = (d, u) => {
5146
- const l = Math.floor(d * 10 ** u + ki);
5150
+ const l = Math.floor(d * 10 ** u + Ni);
5147
5151
  return (Math.round(l) / 10 ** u).toFixed(u);
5148
5152
  }, i = (d, u, l, m) => {
5149
- if (!((a.length === 0 || !t.colonNotation) && Oi(d) && !(t.colonNotation && l === "m"))) {
5153
+ if (!((a.length === 0 || !t.colonNotation) && Ci(d) && !(t.colonNotation && l === "m"))) {
5150
5154
  if (m ??= String(d), t.colonNotation) {
5151
5155
  const p = m.includes(".") ? m.split(".")[0].length : m.length, g = a.length > 0 ? 2 : 1;
5152
5156
  m = "0".repeat(Math.max(0, g - p)) + m;
5153
5157
  } else
5154
- m += t.verbose ? " " + Ci(u, d) : l;
5158
+ m += t.verbose ? " " + ki(u, d) : l;
5155
5159
  a.push(m);
5156
5160
  }
5157
- }, o = Ri(e), c = BigInt(o.days);
5161
+ }, o = Oi(e), c = BigInt(o.days);
5158
5162
  if (t.hideYearAndDays ? i(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? i(c, "day", "d") : (i(c / 365n, "year", "y"), i(c % 365n, "day", "d")), i(Number(o.hours), "hour", "h")), i(Number(o.minutes), "minute", "m"), !t.hideSeconds)
5159
5163
  if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3 && !t.subSecondsAsDecimals) {
5160
5164
  const d = Number(o.seconds), u = Number(o.milliseconds), l = Number(o.microseconds), m = Number(o.nanoseconds);
@@ -5170,7 +5174,7 @@ function Pi(e, t) {
5170
5174
  );
5171
5175
  }
5172
5176
  } else {
5173
- const d = (r ? Number(e % Ni) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
5177
+ const d = (r ? Number(e % Pi) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, l = n(d, u), m = t.keepDecimalsOnWholeSeconds ? l : l.replace(/\.0+$/, "");
5174
5178
  i(Number.parseFloat(m), "second", "s", m);
5175
5179
  }
5176
5180
  if (a.length === 0)
@@ -5178,7 +5182,7 @@ function Pi(e, t) {
5178
5182
  const f = t.colonNotation ? ":" : " ";
5179
5183
  return typeof t.unitCount == "number" && (a = a.slice(0, Math.max(t.unitCount, 1))), s + a.join(f);
5180
5184
  }
5181
- const _s = process.env.NODE_ENV === "production", jt = !_s, Rs = jt ? "gizmette.local.com" : "gizmette.com", Qt = (e, t) => {
5185
+ const Rs = process.env.NODE_ENV === "production", jt = !Rs, Os = jt ? "gizmette.local.com" : "gizmette.com", Qt = (e, t) => {
5182
5186
  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;
5183
5187
  return {
5184
5188
  dir: r,
@@ -5186,17 +5190,17 @@ const _s = process.env.NODE_ENV === "production", jt = !_s, Rs = jt ? "gizmette.
5186
5190
  min: a,
5187
5191
  sec: n
5188
5192
  };
5189
- }, $i = (e) => {
5193
+ }, Mi = (e) => {
5190
5194
  if (!e && e !== 0)
5191
5195
  return "N/A";
5192
5196
  const t = Qt(e, !1);
5193
5197
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5194
- }, Mi = (e) => {
5198
+ }, xi = (e) => {
5195
5199
  if (!e && e !== 0)
5196
5200
  return "N/A";
5197
5201
  const t = Qt(e, !0);
5198
5202
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5199
- }, xi = async () => {
5203
+ }, Di = async () => {
5200
5204
  const e = {
5201
5205
  /**
5202
5206
  * A boolean value that indicates the application would like to receive the
@@ -5239,18 +5243,18 @@ const _s = process.env.NODE_ENV === "production", jt = !_s, Rs = jt ? "gizmette.
5239
5243
  e
5240
5244
  );
5241
5245
  });
5242
- }, Di = (e) => window.btoa(
5246
+ }, Li = (e) => window.btoa(
5243
5247
  encodeURIComponent(e).replace(
5244
5248
  /%([0-9A-F]{2})/g,
5245
5249
  function(r, s) {
5246
5250
  return String.fromCharCode(+`0x${s}`);
5247
5251
  }
5248
5252
  )
5249
- ), Li = (e) => decodeURIComponent(
5253
+ ), Ui = (e) => decodeURIComponent(
5250
5254
  window.atob(e).split("").map(function(t) {
5251
5255
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
5252
5256
  }).join("")
5253
- ), Ui = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ j("div", { className: "flex items-center justify-between", children: [
5257
+ ), Fi = (e, t, r) => t ? Object.keys(t).map((s) => /* @__PURE__ */ h("dl", { className: "my-0", children: /* @__PURE__ */ j("div", { className: "flex items-center justify-between", children: [
5254
5258
  /* @__PURE__ */ h(
5255
5259
  "dt",
5256
5260
  {
@@ -5272,7 +5276,7 @@ const _s = process.env.NODE_ENV === "production", jt = !_s, Rs = jt ? "gizmette.
5272
5276
  }
5273
5277
  )
5274
5278
  ] }) }, `${e}-${s}`)) : null;
5275
- function Fi({
5279
+ function Hi({
5276
5280
  data: e,
5277
5281
  formatter: t = (r) => r
5278
5282
  }) {
@@ -5284,22 +5288,22 @@ function Fi({
5284
5288
  );
5285
5289
  return t(s ? s / r.length : 0);
5286
5290
  }
5287
- const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Ki = new Intl.NumberFormat("en", {
5291
+ const Ki = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Gi = new Intl.NumberFormat("en", {
5288
5292
  style: "decimal",
5289
5293
  signDisplay: "never",
5290
5294
  minimumFractionDigits: 0,
5291
5295
  maximumFractionDigits: 0
5292
- }), Gi = (e) => e > 0 ? Pi(e, {
5296
+ }), qi = (e) => e > 0 ? $i(e, {
5293
5297
  secondsDecimalDigits: 2,
5294
5298
  unitCount: 2
5295
- }) : "N/A", Os = ({
5299
+ }) : "N/A", Cs = ({
5296
5300
  isAuthenticated: e,
5297
5301
  extraClass: t,
5298
5302
  oledMode: r
5299
5303
  }) => y("px-4", "flex-1 overflow-y-auto", e ? "pt-0" : "pt-10", t, {
5300
5304
  "bg-slate-900/95 dark:bg-slate-900": r,
5301
5305
  "bg-slate-900": !r
5302
- }), Cs = ({
5306
+ }), ks = ({
5303
5307
  extraClass: e,
5304
5308
  fullScreen: t
5305
5309
  } = {}) => y(
@@ -5312,21 +5316,21 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5312
5316
  "md:max-w-svw": t
5313
5317
  },
5314
5318
  e
5315
- ), qi = (e, t) => t === 1 ? e : `${e}s`, Bi = (e, t) => {
5319
+ ), Bi = (e, t) => t === 1 ? e : `${e}s`, Wi = (e, t) => {
5316
5320
  let r;
5317
5321
  return (...s) => {
5318
5322
  window.clearTimeout(r), r = window.setTimeout(() => e(...s), t);
5319
5323
  };
5320
- }, ks = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Ns = () => window.innerWidth < 403, Ps = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Wi = () => {
5321
- const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ns(), s = navigator.maxTouchPoints > 1;
5324
+ }, Ns = () => !!window?.__VERSINI_DIGGIDY_TAURI__, Ps = () => window.innerWidth < 403, $s = () => window.innerWidth >= 403 && window.innerWidth <= 1220, Vi = () => {
5325
+ const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ps(), s = navigator.maxTouchPoints > 1;
5322
5326
  return e && t && r && s;
5323
- }, Vi = () => {
5324
- const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = Ps(), r = navigator.maxTouchPoints > 1;
5327
+ }, ji = () => {
5328
+ const e = ["iPad Simulator", "iPad"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = $s(), r = navigator.maxTouchPoints > 1;
5325
5329
  return e && t && r;
5326
- }, ji = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, Qi = (e) => {
5330
+ }, Qi = () => window.matchMedia("(display-mode: standalone)").matches || window.navigator.standalone === !0, Ji = (e) => {
5327
5331
  const t = e.replace(/([A-Z])/g, " $1");
5328
5332
  return t.charAt(0).toUpperCase() + t.slice(1);
5329
- }, Ji = ({
5333
+ }, Yi = ({
5330
5334
  autoClose: e = 3e3,
5331
5335
  containerId: t,
5332
5336
  position: r = "top-center",
@@ -5350,9 +5354,9 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5350
5354
  theme: c,
5351
5355
  transition: f,
5352
5356
  icon: d
5353
- }), Yi = (e, t) => t === "ready" && !!e && e.length > 0, zi = (e) => {
5354
- e ? document.documentElement.setAttribute(wr, "true") : document.documentElement.removeAttribute(wr);
5355
- }, gl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Rs, applyOledMode: zi, canEvaluateModels: Yi, convertCamelCaseToReadable: Qi, convertDDToDMS: Qt, convertLatitudeToDMS: $i, convertLongitudeToDMS: Mi, debounce: Bi, durationFormatter: Gi, extractAverage: Fi, getCurrentGeoLocation: xi, getLayoutPaddingClass: Cs, getMessageContaintWrapperClass: Os, isDev: jt, isLastMessageFromRole: Hi, isPWAMode: ji, isProbablyMobile: Ns, isProbablyTablet: Ps, isProbablyiPad: Vi, isProbablyiPhone: Wi, isProd: _s, isTauri: ks, numberFormatter: Ki, obfuscate: Di, pluralize: qi, renderDataAsList: Ui, toastOptions: Ji, unObfuscate: Li }, Symbol.toStringTag, { value: "Module" })), Ar = "av-button", ft = "icon", Jt = "button", Lt = "link", Xi = ({
5357
+ }), zi = (e, t) => t === "ready" && !!e && e.length > 0, Xi = (e) => {
5358
+ e ? document.documentElement.setAttribute(vr, "true") : document.documentElement.removeAttribute(vr);
5359
+ }, El = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: Os, applyOledMode: Xi, canEvaluateModels: zi, convertCamelCaseToReadable: Ji, convertDDToDMS: Qt, convertLatitudeToDMS: Mi, convertLongitudeToDMS: xi, debounce: Wi, durationFormatter: qi, extractAverage: Hi, getCurrentGeoLocation: Di, getLayoutPaddingClass: ks, getMessageContaintWrapperClass: Cs, isDev: jt, isLastMessageFromRole: Ki, isPWAMode: Qi, isProbablyMobile: Ps, isProbablyTablet: $s, isProbablyiPad: ji, isProbablyiPhone: Vi, isProd: Rs, isTauri: Ns, numberFormatter: Gi, obfuscate: Li, pluralize: Bi, renderDataAsList: Fi, toastOptions: Yi, unObfuscate: Ui }, Symbol.toStringTag, { value: "Module" })), _r = "av-button", ft = "icon", Jt = "button", Lt = "link", Zi = ({
5356
5360
  type: e,
5357
5361
  size: t,
5358
5362
  labelRight: r,
@@ -5388,7 +5392,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5388
5392
  "h-12": t === "large" && n && (r || s)
5389
5393
  });
5390
5394
  }
5391
- }, Zi = ({
5395
+ }, eo = ({
5392
5396
  type: e,
5393
5397
  size: t,
5394
5398
  labelRight: r,
@@ -5411,7 +5415,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5411
5415
  [i]: t === "large" && (r || s)
5412
5416
  });
5413
5417
  }
5414
- }, eo = ({
5418
+ }, to = ({
5415
5419
  mode: e,
5416
5420
  noBackground: t,
5417
5421
  truncate: r,
@@ -5447,7 +5451,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5447
5451
  return y("not-prose text-copy-lighter", {
5448
5452
  truncate: r
5449
5453
  });
5450
- }, to = ({
5454
+ }, ro = ({
5451
5455
  mode: e,
5452
5456
  noBackground: t,
5453
5457
  variant: r
@@ -5477,13 +5481,13 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5477
5481
  if (r === "selected")
5478
5482
  return "bg-action-selected-dark";
5479
5483
  }
5480
- }, ro = ({
5484
+ }, so = ({
5481
5485
  radius: e
5482
5486
  }) => y({
5483
5487
  "rounded-full": e === "large",
5484
5488
  "rounded-md": e === "medium",
5485
5489
  "rounded-xs": e === "small"
5486
- }), so = ({
5490
+ }), ao = ({
5487
5491
  mode: e,
5488
5492
  disabled: t,
5489
5493
  variant: r
@@ -5521,7 +5525,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5521
5525
  });
5522
5526
  if (r === "selected")
5523
5527
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5524
- }, ao = ({
5528
+ }, no = ({
5525
5529
  mode: e,
5526
5530
  disabled: t,
5527
5531
  variant: r
@@ -5559,7 +5563,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5559
5563
  });
5560
5564
  if (r === "selected")
5561
5565
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5562
- }, no = ({
5566
+ }, io = ({
5563
5567
  mode: e,
5564
5568
  noBorder: t,
5565
5569
  variant: r
@@ -5589,14 +5593,14 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5589
5593
  });
5590
5594
  if (r === "selected")
5591
5595
  return "border border-border-selected-dark";
5592
- }, io = ({
5596
+ }, oo = ({
5593
5597
  focusMode: e
5594
5598
  }) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5595
5599
  "focus:outline-focus-dark": e === "dark",
5596
5600
  "focus:outline-focus-light": e === "light",
5597
5601
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5598
5602
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5599
- }), oo = ({
5603
+ }), co = ({
5600
5604
  mode: e,
5601
5605
  raw: t,
5602
5606
  iconClassName: r,
@@ -5623,11 +5627,11 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5623
5627
  } : s === "selected" && (a = {
5624
5628
  "text-copy-lighter": !0
5625
5629
  }), y(a, r);
5626
- }, co = ({
5630
+ }, lo = ({
5627
5631
  animated: e
5628
5632
  }) => y({
5629
5633
  "transition-opacity duration-300 ease-in-out": e
5630
- }), $s = ({
5634
+ }), Ms = ({
5631
5635
  type: e,
5632
5636
  className: t,
5633
5637
  raw: r,
@@ -5645,17 +5649,17 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5645
5649
  align: p,
5646
5650
  radius: g,
5647
5651
  animated: E
5648
- }) => (l || (l = "primary"), r ? y(Ar, t) : y(
5649
- Ar,
5650
- eo({
5652
+ }) => (l || (l = "primary"), r ? y(_r, t) : y(
5653
+ _r,
5654
+ to({
5651
5655
  mode: s,
5652
5656
  variant: l,
5653
5657
  noBackground: u,
5654
5658
  truncate: m
5655
5659
  }),
5656
- to({ mode: s, noBackground: u, variant: l }),
5657
- ro({ radius: g }),
5658
- Xi({
5660
+ ro({ mode: s, noBackground: u, variant: l }),
5661
+ so({ radius: g }),
5662
+ Zi({
5659
5663
  type: e,
5660
5664
  size: o,
5661
5665
  labelRight: f,
@@ -5663,11 +5667,11 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5663
5667
  align: p,
5664
5668
  animated: E
5665
5669
  }),
5666
- Zi({ type: e, size: o, labelRight: f, labelLeft: d }),
5667
- no({ mode: s, variant: l, noBorder: c }),
5668
- io({ focusMode: a }),
5669
- so({ mode: s, variant: l, disabled: n }),
5670
+ eo({ type: e, size: o, labelRight: f, labelLeft: d }),
5671
+ io({ mode: s, variant: l, noBorder: c }),
5672
+ oo({ focusMode: a }),
5670
5673
  ao({ mode: s, variant: l, disabled: n }),
5674
+ no({ mode: s, variant: l, disabled: n }),
5671
5675
  {
5672
5676
  "w-full": i,
5673
5677
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -5676,7 +5680,7 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5676
5680
  "transition-[width] duration-300 ease-in": e === ft && E
5677
5681
  }),
5678
5682
  t
5679
- )), lo = (e, t, r) => {
5683
+ )), uo = (e, t, r) => {
5680
5684
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5681
5685
  }, Yt = le.forwardRef((e, t) => {
5682
5686
  const { onClick: r, noInternalClick: s = !1, ...a } = e;
@@ -5685,14 +5689,14 @@ const Hi = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5685
5689
  {
5686
5690
  ref: t,
5687
5691
  onClick: (n) => {
5688
- lo(n, s, r);
5692
+ uo(n, s, r);
5689
5693
  },
5690
5694
  ...a
5691
5695
  }
5692
5696
  );
5693
5697
  });
5694
5698
  Yt.displayName = "BaseButton";
5695
- const Ms = le.forwardRef(
5699
+ const xs = le.forwardRef(
5696
5700
  ({
5697
5701
  children: e,
5698
5702
  disabled: t = !1,
@@ -5708,7 +5712,7 @@ const Ms = le.forwardRef(
5708
5712
  radius: u = "large",
5709
5713
  ...l
5710
5714
  }, m) => {
5711
- const p = $s({
5715
+ const p = Ms({
5712
5716
  type: Jt,
5713
5717
  mode: r,
5714
5718
  focusMode: s,
@@ -5734,14 +5738,14 @@ const Ms = le.forwardRef(
5734
5738
  );
5735
5739
  }
5736
5740
  );
5737
- Ms.displayName = "Button";
5738
- function uo() {
5741
+ xs.displayName = "Button";
5742
+ function ho() {
5739
5743
  const e = Q(!1);
5740
5744
  return V(() => (e.current = !0, () => {
5741
5745
  e.current = !1;
5742
5746
  }), []), X(() => e.current, []);
5743
5747
  }
5744
- function xs(e) {
5748
+ function Ds(e) {
5745
5749
  return ze(() => e.every((t) => t == null) ? () => {
5746
5750
  } : (t) => {
5747
5751
  e.forEach((r) => {
@@ -5749,7 +5753,7 @@ function xs(e) {
5749
5753
  });
5750
5754
  }, [...e]);
5751
5755
  }
5752
- const ho = {
5756
+ const fo = {
5753
5757
  x: 0,
5754
5758
  y: 0,
5755
5759
  width: 0,
@@ -5760,7 +5764,7 @@ const ho = {
5760
5764
  right: 0
5761
5765
  };
5762
5766
  function Je(e) {
5763
- const t = uo(), r = Q(0), s = Q(null), [a, n] = ce(ho), i = ze(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5767
+ const t = ho(), r = Q(0), s = Q(null), [a, n] = ce(fo), i = ze(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
5764
5768
  const c = o[0];
5765
5769
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
5766
5770
  s.current && t() && n(c.contentRect);
@@ -5770,8 +5774,8 @@ function Je(e) {
5770
5774
  i?.disconnect(), r.current && cancelAnimationFrame(r.current);
5771
5775
  }), [i, e]), [s, a];
5772
5776
  }
5773
- function Ds(e) {
5774
- const t = qs();
5777
+ function Ls(e) {
5778
+ const t = Bs();
5775
5779
  if (!e)
5776
5780
  return t;
5777
5781
  if (typeof e == "number" || typeof e == "string")
@@ -5788,14 +5792,14 @@ const Ve = {
5788
5792
  // w-8
5789
5793
  large: 48
5790
5794
  // w-12
5791
- }, fo = {
5795
+ }, mo = {
5792
5796
  small: 16,
5793
5797
  // px-2 x 2
5794
5798
  medium: 24,
5795
5799
  // px-3 x 2
5796
5800
  large: 32
5797
5801
  // px-4 x 2
5798
- }, mo = 2, po = 300, it = le.forwardRef(
5802
+ }, po = 2, yo = 300, it = le.forwardRef(
5799
5803
  ({
5800
5804
  children: e,
5801
5805
  disabled: t = !1,
@@ -5819,7 +5823,7 @@ const Ve = {
5819
5823
  animated: I = !1,
5820
5824
  ...B
5821
5825
  }, R) => {
5822
- const z = $s({
5826
+ const z = Ms({
5823
5827
  type: ft,
5824
5828
  mode: r,
5825
5829
  focusMode: s,
@@ -5836,15 +5840,15 @@ const Ve = {
5836
5840
  radius: E,
5837
5841
  variant: b,
5838
5842
  animated: I
5839
- }), O = oo({ mode: r, raw: o, iconClassName: C, variant: b }), v = co({ animated: I }), L = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, A] = Je(), [N, J] = Je(), [he, ve] = Je(), S = Q(0), T = Q(null), w = Q(null), fe = xs([R, T]);
5843
+ }), O = co({ mode: r, raw: o, iconClassName: C, variant: b }), v = lo({ animated: I }), L = "flex items-center justify-center relative w-full h-full overflow-hidden", [_, A] = Je(), [N, J] = Je(), [he, ve] = Je(), S = Q(0), T = Q(null), w = Q(null), fe = Ds([R, T]);
5840
5844
  return Xe(() => {
5841
- he && he.current && I && (S.current = ve.width + fo[u] + (c ? 0 : mo), T.current && !T.current.style.width && (T.current.style.width = `${Ve[u]}px`));
5845
+ he && he.current && I && (S.current = ve.width + mo[u] + (c ? 0 : po), T.current && !T.current.style.width && (T.current.style.width = `${Ve[u]}px`));
5842
5846
  }, [ve, he, u, c, I]), Xe(() => {
5843
5847
  if (T && T.current && I) {
5844
5848
  let me = Ve[u];
5845
5849
  l && _ && A.width > 0 ? me = A.width + S.current : m && N && J.width > 0 && (me = J.width + S.current), w.current && clearTimeout(w.current), me !== parseInt(T.current.style.width || "0", 10) && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"), T.current.style.width = `${me}px`, me > Ve[u] && (w.current = setTimeout(() => {
5846
5850
  _.current && l && (_.current.style.opacity = "1"), N.current && m && (N.current.style.opacity = "1"), w.current = null;
5847
- }, po * 0.8))), me === Ve[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5851
+ }, yo * 0.8))), me === Ve[u] && (_.current && (_.current.style.opacity = "0"), N.current && (N.current.style.opacity = "0"));
5848
5852
  }
5849
5853
  }, [
5850
5854
  A,
@@ -5868,7 +5872,7 @@ const Ve = {
5868
5872
  ...B,
5869
5873
  children: /* @__PURE__ */ j("div", { className: L, children: [
5870
5874
  /* @__PURE__ */ h(
5871
- _r,
5875
+ Rr,
5872
5876
  {
5873
5877
  label: m,
5874
5878
  labelRef: N,
@@ -5879,7 +5883,7 @@ const Ve = {
5879
5883
  ),
5880
5884
  /* @__PURE__ */ h("span", { ref: he, className: O, children: e }),
5881
5885
  /* @__PURE__ */ h(
5882
- _r,
5886
+ Rr,
5883
5887
  {
5884
5888
  label: l,
5885
5889
  labelRef: _,
@@ -5892,7 +5896,7 @@ const Ve = {
5892
5896
  }
5893
5897
  );
5894
5898
  }
5895
- ), _r = ({
5899
+ ), Rr = ({
5896
5900
  labelRef: e,
5897
5901
  labelClass: t,
5898
5902
  label: r,
@@ -5921,7 +5925,7 @@ try {
5921
5925
  });
5922
5926
  } catch {
5923
5927
  }
5924
- const yo = le.forwardRef(
5928
+ const go = le.forwardRef(
5925
5929
  ({
5926
5930
  children: e,
5927
5931
  mode: t = "system",
@@ -5961,8 +5965,8 @@ const yo = le.forwardRef(
5961
5965
  ) });
5962
5966
  }
5963
5967
  );
5964
- yo.displayName = "ButtonSort";
5965
- const Ye = "av-card", go = ({
5968
+ go.displayName = "ButtonSort";
5969
+ const Ye = "av-card", Eo = ({
5966
5970
  className: e,
5967
5971
  headerClassName: t,
5968
5972
  bodyClassName: r,
@@ -6002,7 +6006,7 @@ const Ye = "av-card", go = ({
6002
6006
  footer: d
6003
6007
  };
6004
6008
  };
6005
- function Eo({
6009
+ function bo({
6006
6010
  id: e,
6007
6011
  content: t,
6008
6012
  userAriaLabelledby: r,
@@ -6010,7 +6014,7 @@ function Eo({
6010
6014
  }) {
6011
6015
  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;
6012
6016
  }
6013
- const bo = ({
6017
+ const So = ({
6014
6018
  header: e,
6015
6019
  headerClassName: t,
6016
6020
  footer: r,
@@ -6025,7 +6029,7 @@ const bo = ({
6025
6029
  ...u
6026
6030
  }) => {
6027
6031
  let l = null, m = null;
6028
- const p = typeof e == "string", g = Ds(Ye), E = go({
6032
+ const p = typeof e == "string", g = Ls(Ye), E = Eo({
6029
6033
  className: n,
6030
6034
  headerClassName: t,
6031
6035
  bodyClassName: i,
@@ -6044,7 +6048,7 @@ const bo = ({
6044
6048
  ...u,
6045
6049
  children: [
6046
6050
  /* @__PURE__ */ h(
6047
- Eo,
6051
+ bo,
6048
6052
  {
6049
6053
  ...l && { id: l },
6050
6054
  content: e,
@@ -6114,7 +6118,7 @@ try {
6114
6118
  });
6115
6119
  } catch {
6116
6120
  }
6117
- const So = ({
6121
+ const wo = ({
6118
6122
  className: e,
6119
6123
  viewBox: t,
6120
6124
  title: r,
@@ -6131,7 +6135,7 @@ const So = ({
6131
6135
  ...a,
6132
6136
  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" })
6133
6137
  }
6134
- ), wo = ({
6138
+ ), vo = ({
6135
6139
  className: e,
6136
6140
  viewBox: t,
6137
6141
  title: r,
@@ -6157,7 +6161,7 @@ const So = ({
6157
6161
  /* @__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" })
6158
6162
  ]
6159
6163
  }
6160
- ), vo = ({
6164
+ ), To = ({
6161
6165
  className: e,
6162
6166
  viewBox: t,
6163
6167
  title: r,
@@ -6193,7 +6197,7 @@ const So = ({
6193
6197
  ]
6194
6198
  }
6195
6199
  );
6196
- }, To = ({
6200
+ }, Io = ({
6197
6201
  className: e,
6198
6202
  viewBox: t,
6199
6203
  title: r,
@@ -6233,10 +6237,10 @@ try {
6233
6237
  });
6234
6238
  } catch {
6235
6239
  }
6236
- const Io = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createContext({
6240
+ const Ao = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createContext({
6237
6241
  columnGap: 0,
6238
6242
  rowGap: 0
6239
- }), Ao = ({
6243
+ }), _o = ({
6240
6244
  children: e,
6241
6245
  className: t,
6242
6246
  columnGap: r = 1,
@@ -6262,7 +6266,7 @@ const Io = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
6262
6266
  marginLeft: r * -1 * ot + "rem",
6263
6267
  marginTop: s * -1 * ot + "rem"
6264
6268
  }, u = y(
6265
- Io,
6269
+ Ao,
6266
6270
  "box-border flex flex-wrap"
6267
6271
  ), l = { columnGap: r, rowGap: s };
6268
6272
  return t ? /* @__PURE__ */ h("div", { className: t, children: /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Ut.Provider, { value: l, children: e }) }) }) : /* @__PURE__ */ h("div", { className: u, style: d, ...f, children: /* @__PURE__ */ h(Ut.Provider, { value: l, children: e }) });
@@ -6339,7 +6343,7 @@ const Io = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
6339
6343
  "lg:basis-full": e === 12 && t === "lg",
6340
6344
  "xl:basis-full": e === 12 && t === "xl",
6341
6345
  "2xl:basis-full": e === 12 && t === "2xl"
6342
- }), _o = ({
6346
+ }), Ro = ({
6343
6347
  className: e,
6344
6348
  span: t
6345
6349
  }) => {
@@ -6371,7 +6375,7 @@ const Io = "av-flexgrid", je = "av-flexgrid-item", ot = 0.25, Ut = le.createCont
6371
6375
  const { columnGap: a, rowGap: n } = ct(Ut), i = {
6372
6376
  paddingLeft: a * ot + "rem",
6373
6377
  paddingTop: n * ot + "rem"
6374
- }, o = _o({
6378
+ }, o = Ro({
6375
6379
  className: t,
6376
6380
  span: r
6377
6381
  });
@@ -6390,7 +6394,7 @@ try {
6390
6394
  });
6391
6395
  } catch {
6392
6396
  }
6393
- const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6397
+ const Us = "SET_ANNOUNCEMENT", Fs = "CLEAR_ANNOUNCEMENT", Oo = {
6394
6398
  alert: null,
6395
6399
  alertdialog: null,
6396
6400
  log: "polite",
@@ -6398,14 +6402,14 @@ const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6398
6402
  progressbar: null,
6399
6403
  status: "polite",
6400
6404
  timer: "assertive"
6401
- }, Oo = (e, t) => {
6405
+ }, Co = (e, t) => {
6402
6406
  switch (t?.type) {
6403
- case Ls:
6407
+ case Us:
6404
6408
  return {
6405
6409
  ...e,
6406
6410
  announcement: t.payload
6407
6411
  };
6408
- case Us:
6412
+ case Fs:
6409
6413
  return {
6410
6414
  ...e,
6411
6415
  announcement: null
@@ -6413,14 +6417,14 @@ const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6413
6417
  default:
6414
6418
  return e;
6415
6419
  }
6416
- }, Co = ({
6420
+ }, ko = ({
6417
6421
  onAnnouncementClear: e,
6418
6422
  dispatch: t
6419
6423
  }) => {
6420
6424
  t({
6421
- type: Us
6425
+ type: Fs
6422
6426
  }), typeof e == "function" && e();
6423
- }, Rr = ({
6427
+ }, Or = ({
6424
6428
  children: e,
6425
6429
  clearAnnouncementDelay: t,
6426
6430
  clearAnnouncementTimeoutRef: r,
@@ -6428,16 +6432,16 @@ const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6428
6432
  dispatch: a
6429
6433
  }) => {
6430
6434
  clearTimeout(r.current), e !== null && a({
6431
- type: Ls,
6435
+ type: Us,
6432
6436
  payload: e
6433
6437
  }), t && (r.current = setTimeout(
6434
- () => Co({
6438
+ () => ko({
6435
6439
  onAnnouncementClear: s,
6436
6440
  dispatch: a
6437
6441
  }),
6438
6442
  t
6439
6443
  ));
6440
- }, ko = ({
6444
+ }, No = ({
6441
6445
  children: e,
6442
6446
  announcementTimeoutRef: t,
6443
6447
  announcementDelay: r,
@@ -6446,13 +6450,13 @@ const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6446
6450
  onAnnouncementClear: n,
6447
6451
  dispatch: i
6448
6452
  }) => {
6449
- clearTimeout(t.current), r ? t.current = setTimeout(Rr, r, {
6453
+ clearTimeout(t.current), r ? t.current = setTimeout(Or, r, {
6450
6454
  children: e,
6451
6455
  clearAnnouncementDelay: s,
6452
6456
  clearAnnouncementTimeoutRef: a,
6453
6457
  onAnnouncementClear: n,
6454
6458
  dispatch: i
6455
- }) : Rr({
6459
+ }) : Or({
6456
6460
  children: e,
6457
6461
  clearAnnouncementDelay: s,
6458
6462
  clearAnnouncementTimeoutRef: a,
@@ -6460,7 +6464,7 @@ const Ls = "SET_ANNOUNCEMENT", Us = "CLEAR_ANNOUNCEMENT", Ro = {
6460
6464
  dispatch: i
6461
6465
  });
6462
6466
  };
6463
- function Fs({
6467
+ function Hs({
6464
6468
  children: e,
6465
6469
  className: t,
6466
6470
  politeness: r,
@@ -6471,12 +6475,12 @@ function Fs({
6471
6475
  visible: o,
6472
6476
  ...c
6473
6477
  }) {
6474
- const f = Q(null), d = Q(null), [u, l] = Nr(Oo, {
6478
+ const f = Q(null), d = Q(null), [u, l] = Pr(Co, {
6475
6479
  announcement: null
6476
6480
  });
6477
6481
  let m = r;
6478
- typeof m > "u" && (m = s ? Ro[s] : "assertive"), V(() => {
6479
- ko({
6482
+ typeof m > "u" && (m = s ? Oo[s] : "assertive"), V(() => {
6483
+ No({
6480
6484
  announcementTimeoutRef: f,
6481
6485
  announcementDelay: a,
6482
6486
  children: e,
@@ -6518,21 +6522,21 @@ try {
6518
6522
  });
6519
6523
  } catch {
6520
6524
  }
6521
- const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-helper-text", Po = ({
6525
+ const Ks = "av-text-input", Po = "av-text-input-wrapper", Rt = "av-text-input-helper-text", $o = ({
6522
6526
  mode: e
6523
6527
  }) => y({
6524
6528
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6525
6529
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6526
6530
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6527
6531
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6528
- }), $o = ({
6532
+ }), Mo = ({
6529
6533
  focusMode: e
6530
6534
  }) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
6531
6535
  "focus:outline-focus-dark": e === "dark",
6532
6536
  "focus:outline-focus-light": e === "light",
6533
6537
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6534
6538
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6535
- }), Mo = ({
6539
+ }), xo = ({
6536
6540
  noBorder: e,
6537
6541
  error: t
6538
6542
  }) => y("border-2", {
@@ -6540,7 +6544,7 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6540
6544
  "focus:border-border-dark": !e && t,
6541
6545
  "border-border-error-dark": !e && t,
6542
6546
  "border-transparent": e
6543
- }), xo = ({
6547
+ }), Do = ({
6544
6548
  disabled: e,
6545
6549
  raw: t,
6546
6550
  error: r,
@@ -6564,7 +6568,7 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6564
6568
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": s === "system",
6565
6569
  "text-copy-lighter dark:text-copy-error-dark": s === "alt-system"
6566
6570
  });
6567
- }, Do = ({
6571
+ }, Lo = ({
6568
6572
  error: e,
6569
6573
  raw: t,
6570
6574
  mode: r,
@@ -6591,7 +6595,7 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6591
6595
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
6592
6596
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
6593
6597
  });
6594
- }, Lo = ({
6598
+ }, Uo = ({
6595
6599
  className: e,
6596
6600
  inputClassName: t,
6597
6601
  raw: r,
@@ -6605,7 +6609,7 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6605
6609
  }) => {
6606
6610
  const d = r ? e : y(
6607
6611
  "relative flex w-full flex-col justify-center",
6608
- No,
6612
+ Po,
6609
6613
  e
6610
6614
  );
6611
6615
  let u = "";
@@ -6627,22 +6631,22 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6627
6631
  break;
6628
6632
  }
6629
6633
  const l = r ? y(t) : y(
6630
- Hs,
6634
+ Ks,
6631
6635
  u,
6632
6636
  "rounded-md text-base px-4",
6633
- Po({ mode: i }),
6634
- $o({ focusMode: o }),
6635
- Mo({ noBorder: a, error: n }),
6637
+ $o({ mode: i }),
6638
+ Mo({ focusMode: o }),
6639
+ xo({ noBorder: a, error: n }),
6636
6640
  {
6637
6641
  "disabled:cursor-not-allowed disabled:opacity-50": s
6638
6642
  },
6639
6643
  t
6640
- ), m = r ? void 0 : "sr-only", p = xo({
6644
+ ), m = r ? void 0 : "sr-only", p = Do({
6641
6645
  disabled: s,
6642
6646
  raw: r,
6643
6647
  error: n,
6644
6648
  mode: i
6645
- }), g = Do({
6649
+ }), g = Lo({
6646
6650
  error: n,
6647
6651
  raw: r,
6648
6652
  mode: i,
@@ -6678,13 +6682,13 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6678
6682
  size: b = "md",
6679
6683
  ...C
6680
6684
  }, I) => {
6681
- const [B, R] = Je(), [z, O] = ce(0), v = Ds({ id: e, prefix: `${Hs}-` }), L = `${t} error, ${p}`, _ = Q(null), A = Q(null), N = {
6685
+ const [B, R] = Je(), [z, O] = ce(0), v = Ls({ id: e, prefix: `${Ks}-` }), L = `${t} error, ${p}`, _ = Q(null), A = Q(null), N = {
6682
6686
  xs: { label: "-25px", helperText: "30px" },
6683
6687
  sm: { label: "-29px", helperText: "34px" },
6684
6688
  md: { label: "-33px", helperText: "38px" },
6685
6689
  lg: { label: "-15px", helperText: "22px" },
6686
6690
  xl: { label: "-19px", helperText: "25px" }
6687
- }, J = Lo({
6691
+ }, J = Uo({
6688
6692
  className: n,
6689
6693
  inputClassName: i,
6690
6694
  error: s,
@@ -6757,12 +6761,12 @@ const Hs = "av-text-input", No = "av-text-input-wrapper", Rt = "av-text-input-he
6757
6761
  children: g
6758
6762
  }
6759
6763
  ),
6760
- s && p && /* @__PURE__ */ h(Fs, { politeness: "polite", clearAnnouncementDelay: 500, children: L })
6764
+ s && p && /* @__PURE__ */ h(Hs, { politeness: "polite", clearAnnouncementDelay: 500, children: L })
6761
6765
  ] });
6762
6766
  }
6763
6767
  );
6764
6768
  zt.displayName = "TextInput";
6765
- const Uo = 500, Fo = 5e3, Ho = 2e4, Ks = le.forwardRef(
6769
+ const Fo = 500, Ho = 5e3, Ko = 2e4, Gs = le.forwardRef(
6766
6770
  ({
6767
6771
  name: e,
6768
6772
  disabled: t,
@@ -6779,19 +6783,19 @@ const Uo = 500, Fo = 5e3, Ho = 2e4, Ks = le.forwardRef(
6779
6783
  const [l, m] = ce(!0), [p, g] = ce({
6780
6784
  message: null,
6781
6785
  politeness: null
6782
- }), E = Q(!0), b = Q(null), C = Q(null), I = xs([u, C]), B = l ? "Show" : "Hide", R = () => {
6786
+ }), E = Q(!0), b = Q(null), C = Q(null), I = Ds([u, C]), B = l ? "Show" : "Hide", R = () => {
6783
6787
  b.current && clearTimeout(b.current), E.current || (b.current = setTimeout(() => {
6784
6788
  E.current = !0, m(!0), g({
6785
- announcementTimeout: Fo,
6789
+ announcementTimeout: Ho,
6786
6790
  politeness: "polite",
6787
6791
  message: `${r} hiding characters`
6788
6792
  }), a && a(!0);
6789
- }, Ho));
6793
+ }, Ko));
6790
6794
  }, z = (A) => {
6791
6795
  A.preventDefault();
6792
6796
  const N = !E.current;
6793
6797
  E.current = N, R(), m(N), g({
6794
- announcementTimeout: Uo,
6798
+ announcementTimeout: Fo,
6795
6799
  politeness: "assertive",
6796
6800
  message: N ? "Characters hidden" : "Characters showing"
6797
6801
  }), a && a(N);
@@ -6807,7 +6811,7 @@ const Uo = 500, Fo = 5e3, Ho = 2e4, Ks = le.forwardRef(
6807
6811
  };
6808
6812
  return V(() => () => {
6809
6813
  b.current && clearTimeout(b.current);
6810
- }, []), /* @__PURE__ */ j(kr, { children: [
6814
+ }, []), /* @__PURE__ */ j(Nr, { children: [
6811
6815
  /* @__PURE__ */ h(
6812
6816
  zt,
6813
6817
  {
@@ -6831,7 +6835,7 @@ const Uo = 500, Fo = 5e3, Ho = 2e4, Ks = le.forwardRef(
6831
6835
  }
6832
6836
  ),
6833
6837
  /* @__PURE__ */ h(
6834
- Fs,
6838
+ Hs,
6835
6839
  {
6836
6840
  role: "status",
6837
6841
  politeness: p.politeness,
@@ -6842,7 +6846,7 @@ const Uo = 500, Fo = 5e3, Ho = 2e4, Ks = le.forwardRef(
6842
6846
  ] });
6843
6847
  }
6844
6848
  );
6845
- Ks.displayName = "TextInputMask";
6849
+ Gs.displayName = "TextInputMask";
6846
6850
  /*!
6847
6851
  @versini/ui-textinput v5.0.6
6848
6852
  © 2025 gizmette.com
@@ -6856,9 +6860,9 @@ try {
6856
6860
  });
6857
6861
  } catch {
6858
6862
  }
6859
- const Ko = "ASK! ME! ANYTHING!", Go = "Log in with a password", qo = "Log in with a Passkey", El = "Log out", Bo = "Password", bl = "Usage", Sl = "Profile", wl = "Settings", vl = "Chat history", Tl = "About", Xt = "Type your message here.", Il = Xt, Al = `${Xt}
6860
- Press Enter to send it or Shift+Enter for new line.`, _l = `${Xt}
6861
- Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "Review important details.", Ol = [
6863
+ const Go = "ASK! ME! ANYTHING!", qo = "Log in with a password", Bo = "Log in with a Passkey", bl = "Log out", Wo = "Password", Sl = "Usage", wl = "Profile", vl = "Settings", Tl = "Chat history", Il = "About", Xt = "Type your message here.", Al = Xt, _l = `${Xt}
6864
+ Press Enter to send it or Shift+Enter for new line.`, Rl = `${Xt}
6865
+ Press Ctrl+Enter to send it or Enter for new line.`, Ol = "{{clipboard}}", P = "Review important details.", Cl = [
6862
6866
  `Sometimes, ${k} just makes stuff up. ${P}`,
6863
6867
  `${k} may invent facts on the fly. ${P}`,
6864
6868
  `${k} may be confidently wrong. ${P}`,
@@ -6879,17 +6883,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
6879
6883
  `Sometimes, ${k} howls at the moon. ${P}`,
6880
6884
  `${k} may dig up imaginary bones. ${P}`,
6881
6885
  `${k} may sniff out nonsense. ${P}`
6882
- ], Cl = "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.", kl = "Default provider set to", Nl = "Chat successfully deleted!", Pl = "Chat successfully saved!", $l = "Caching enabled. Assets are now stored locally.", Ml = "Caching disabled. Local asset cache cleared.", xl = "av-sassy", Dl = {
6886
+ ], kl = "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.", Nl = "Default provider set to", Pl = "Chat successfully deleted!", $l = "Chat successfully saved!", Ml = "Caching enabled. Assets are now stored locally.", xl = "Caching disabled. Local asset cache cleared.", Dl = "av-sassy", Ll = {
6883
6887
  0: ["January", "February", "March"],
6884
6888
  3: ["April", "May", "June"],
6885
6889
  6: ["July", "August", "September"],
6886
6890
  9: ["October", "November", "December"]
6887
- }, Ll = {
6891
+ }, Ul = {
6888
6892
  0: ["Jan", "Feb", "Mar"],
6889
6893
  3: ["Apr", "May", "Jun"],
6890
6894
  6: ["Jul", "Aug", "Sep"],
6891
6895
  9: ["Oct", "Nov", "Dec"]
6892
- }, Ul = {
6896
+ }, Fl = {
6893
6897
  PREFERENCES: {
6894
6898
  TITLE: "User profile",
6895
6899
  USERNAME: "Username",
@@ -6940,7 +6944,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
6940
6944
  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.",
6941
6945
  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."
6942
6946
  }
6943
- }, Wo = ({
6947
+ }, Vo = ({
6944
6948
  className: e,
6945
6949
  isCapabilitiesSuccess: t,
6946
6950
  capabilities: r,
@@ -6954,7 +6958,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
6954
6958
  "flex items-center justify-center"
6955
6959
  ),
6956
6960
  children: [
6957
- /* @__PURE__ */ h("div", { className: "basis-1/4 text-slate-300", children: /* @__PURE__ */ h(So, {}) }),
6961
+ /* @__PURE__ */ h("div", { className: "basis-1/4 text-slate-300", children: /* @__PURE__ */ h(wo, {}) }),
6958
6962
  /* @__PURE__ */ j(
6959
6963
  "div",
6960
6964
  {
@@ -6970,14 +6974,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
6970
6974
  ),
6971
6975
  children: [
6972
6976
  /* @__PURE__ */ h("h1", { children: k }),
6973
- /* @__PURE__ */ h("h2", { children: Ko })
6977
+ /* @__PURE__ */ h("h2", { children: Go })
6974
6978
  ]
6975
6979
  }
6976
6980
  )
6977
6981
  ]
6978
6982
  }
6979
- ), Vo = () => {
6980
- const { login: e, logoutReason: t, loginWithPasskey: r } = ls(), [s, a] = ce(""), [n, i] = ce(""), [o, c] = ce(!0), [f, d] = ce({
6983
+ ), jo = () => {
6984
+ const { login: e, logoutReason: t, loginWithPasskey: r } = us(), [s, a] = ce(""), [n, i] = ce(""), [o, c] = ce(!0), [f, d] = ce({
6981
6985
  username: "",
6982
6986
  password: ""
6983
6987
  }), u = async (l) => {
@@ -6989,17 +6993,17 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
6989
6993
  }, 500);
6990
6994
  }), V(() => {
6991
6995
  t && i(t);
6992
- }, [t]), /* @__PURE__ */ j("main", { className: Cs({ extraClass: "mt-5" }), children: [
6996
+ }, [t]), /* @__PURE__ */ j("main", { className: ks({ extraClass: "mt-5" }), children: [
6993
6997
  /* @__PURE__ */ h(
6994
6998
  "div",
6995
6999
  {
6996
- className: Os({
7000
+ className: Cs({
6997
7001
  extraClass: "rounded-md pb-10"
6998
7002
  }),
6999
- children: /* @__PURE__ */ h(Wo, {})
7003
+ children: /* @__PURE__ */ h(Vo, {})
7000
7004
  }
7001
7005
  ),
7002
- /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(Ao, { alignHorizontal: "center", children: /* @__PURE__ */ h(ge, { span: 6, children: /* @__PURE__ */ j(bo, { mode: "dark", children: [
7006
+ /* @__PURE__ */ h("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ h(_o, { alignHorizontal: "center", children: /* @__PURE__ */ h(ge, { span: 6, children: /* @__PURE__ */ j(So, { mode: "dark", children: [
7003
7007
  /* @__PURE__ */ h(ge, { 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 }) }),
7004
7008
  /* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
7005
7009
  zt,
@@ -7023,7 +7027,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7023
7027
  }
7024
7028
  ) }),
7025
7029
  /* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
7026
- Ks,
7030
+ Gs,
7027
7031
  {
7028
7032
  className: "mt-7",
7029
7033
  required: !0,
@@ -7033,14 +7037,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7033
7037
  mode: "dark",
7034
7038
  focusMode: "light",
7035
7039
  name: "password",
7036
- label: Bo,
7040
+ label: Wo,
7037
7041
  rightElement: /* @__PURE__ */ h(
7038
7042
  it,
7039
7043
  {
7040
7044
  focusMode: "light",
7041
7045
  mode: "dark",
7042
7046
  label: o ? "Show" : "Hide",
7043
- children: o ? /* @__PURE__ */ h(To, {}) : /* @__PURE__ */ h(wo, {})
7047
+ children: o ? /* @__PURE__ */ h(Io, {}) : /* @__PURE__ */ h(vo, {})
7044
7048
  }
7045
7049
  ),
7046
7050
  onMaskChange: c,
@@ -7055,7 +7059,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7055
7059
  }
7056
7060
  ) }),
7057
7061
  /* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
7058
- Ms,
7062
+ xs,
7059
7063
  {
7060
7064
  mode: "dark",
7061
7065
  focusMode: "light",
@@ -7063,10 +7067,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7063
7067
  noBorder: !0,
7064
7068
  type: "submit",
7065
7069
  className: "mt-7",
7066
- children: Go
7070
+ children: qo
7067
7071
  }
7068
7072
  ) }),
7069
- !ks() && /* @__PURE__ */ j(kr, { children: [
7073
+ !Ns() && /* @__PURE__ */ j(Nr, { children: [
7070
7074
  /* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
7071
7075
  /* @__PURE__ */ h(ge, { span: 12, children: /* @__PURE__ */ h(
7072
7076
  it,
@@ -7076,49 +7080,49 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7076
7080
  focusMode: "light",
7077
7081
  fullWidth: !0,
7078
7082
  className: "mb-4",
7079
- labelRight: qo,
7083
+ labelRight: Bo,
7080
7084
  onClick: r,
7081
- children: /* @__PURE__ */ h(vo, { size: "size-7" })
7085
+ children: /* @__PURE__ */ h(To, { size: "size-7" })
7082
7086
  }
7083
7087
  ) })
7084
7088
  ] })
7085
7089
  ] }) }) }) })
7086
7090
  ] });
7087
- }, jo = new URL(document.location.href).searchParams, Or = !!jo.get("debug") || !1, Qo = Ws(() => import(
7091
+ }, Qo = new URL(document.location.href).searchParams, Cr = !!Qo.get("debug") || !1, Jo = Vs(() => import(
7088
7092
  /* webpackChunkName: "LazyApp" */
7089
- "./App.OJ7iIDg1.js"
7090
- ).then((e) => e.App)), Jo = new ma(), Cr = ({
7093
+ "./App.Bp83hXd-.js"
7094
+ ).then((e) => e.App)), Yo = new pa(), kr = ({
7091
7095
  isComponent: e,
7092
7096
  headerHeight: t
7093
7097
  }) => {
7094
- const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = ls();
7095
- return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Bs, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(pa, { client: Jo, children: /* @__PURE__ */ h(
7096
- Ii,
7098
+ const { isAuthenticated: r, isLoading: s, user: a, getAccessToken: n } = us();
7099
+ return s ? /* @__PURE__ */ h("div", {}) : r ? /* @__PURE__ */ h(Ws, { fallback: /* @__PURE__ */ h("div", {}), children: /* @__PURE__ */ h(ya, { client: Yo, children: /* @__PURE__ */ h(
7100
+ Ai,
7097
7101
  {
7098
7102
  user: a?.username,
7099
7103
  getAccessToken: n,
7100
- children: /* @__PURE__ */ h(Qo, { isComponent: e, headerHeight: t })
7104
+ children: /* @__PURE__ */ h(Jo, { isComponent: e, headerHeight: t })
7101
7105
  }
7102
- ) }) }) : /* @__PURE__ */ h(Vo, {});
7103
- }, Yo = ({
7106
+ ) }) }) : /* @__PURE__ */ h(jo, {});
7107
+ }, zo = ({
7104
7108
  isComponent: e = !1,
7105
7109
  headerHeight: t = 0,
7106
- domain: r = Rs
7110
+ domain: r = Os
7107
7111
  }) => (V(() => {
7108
- e || hs().catch((s) => {
7112
+ e || fs().catch((s) => {
7109
7113
  console.error("[SW] Failed to register service worker:", s);
7110
7114
  });
7111
7115
  }, [e]), jt ? /* @__PURE__ */ h(
7112
- Sr,
7116
+ wr,
7113
7117
  {
7114
- clientId: vr,
7118
+ clientId: Tr,
7115
7119
  domain: r,
7116
- debug: Or,
7120
+ debug: Cr,
7117
7121
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
7118
- children: /* @__PURE__ */ h(Cr, { isComponent: e, headerHeight: t })
7122
+ children: /* @__PURE__ */ h(kr, { isComponent: e, headerHeight: t })
7119
7123
  }
7120
- ) : /* @__PURE__ */ h(Sr, { clientId: vr, domain: r, debug: Or, children: /* @__PURE__ */ h(Cr, { isComponent: e, headerHeight: t }) })), Fl = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
7121
- Yo,
7124
+ ) : /* @__PURE__ */ h(wr, { clientId: Tr, domain: r, debug: Cr, children: /* @__PURE__ */ h(kr, { isComponent: e, headerHeight: t }) })), Hl = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ h(
7125
+ zo,
7122
7126
  {
7123
7127
  isComponent: !0,
7124
7128
  domain: e,
@@ -7127,136 +7131,136 @@ Press Ctrl+Enter to send it or Enter for new line.`, Rl = "{{clipboard}}", P = "
7127
7131
  );
7128
7132
  export {
7129
7133
  k as $,
7130
- Tl as ABOUT_TITLE,
7131
- dc as ACTION_RESET_PROMPT,
7132
- cc as ACTION_SEARCH,
7133
- lc as ACTION_SORT,
7134
- uc as ACTION_TOGGLE_PROMPT,
7135
- xl as APP_CLASSNAME,
7136
- Ms as C,
7137
- Ul as CARDS,
7138
- Rl as CLIPBOARD_PROMPT,
7139
- Oc as DEFAULT_ICON_ACTION_SIZE,
7140
- Hc as E,
7141
- oc as ERROR_MESSAGE,
7142
- Yc as Et,
7143
- Gc as F,
7144
- Ol as FOOTER_DISCLAIMERS,
7145
- vl as HISTORY_TITLE,
7134
+ Il as ABOUT_TITLE,
7135
+ hc as ACTION_RESET_PROMPT,
7136
+ lc as ACTION_SEARCH,
7137
+ uc as ACTION_SORT,
7138
+ dc as ACTION_TOGGLE_PROMPT,
7139
+ Dl as APP_CLASSNAME,
7140
+ xs as C,
7141
+ Fl as CARDS,
7142
+ Ol as CLIPBOARD_PROMPT,
7143
+ Cc as DEFAULT_ICON_ACTION_SIZE,
7144
+ Kc as E,
7145
+ cc as ERROR_MESSAGE,
7146
+ zc as Et,
7147
+ qc as F,
7148
+ Cl as FOOTER_DISCLAIMERS,
7149
+ Tl as HISTORY_TITLE,
7146
7150
  mt as I,
7147
- Ac as INFINITE_SCROLL_LIMIT,
7148
- Ic as INFINITE_SCROLL_THRESHOLD,
7149
- $c as INPUT_BOTTOM_OFFSET,
7150
- Dc as INPUT_BOTTOM_OFFSET_EXTRA,
7151
- xc as INPUT_BOTTOM_OFFSET_IPAD,
7152
- Mc as INPUT_BOTTOM_OFFSET_IPHONE,
7153
- _l as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7154
- Al as INPUT_PLACEHOLDER_TEXT_ENTER,
7155
- Il as INPUT_PLACEHOLDER_TEXT_MOBILE,
7156
- Wc as J,
7157
- Ao as L,
7158
- wc as LOCAL_STORAGE_CHAT_ID,
7159
- Ec as LOCAL_STORAGE_FAVORITES_ONLY,
7160
- Tc as LOCAL_STORAGE_FULL_SCREEN,
7161
- vc as LOCAL_STORAGE_OLED_MODE,
7162
- us as LOCAL_STORAGE_PREFIX,
7163
- bc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7164
- Sc as LOCAL_STORAGE_REASONING_DISCLOSURE,
7165
- hc as LOCAL_STORAGE_SEARCH,
7166
- fc as LOCAL_STORAGE_SORT,
7167
- gc as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
7168
- yc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
7169
- mc as LOCAL_STORAGE_SORT_TIMESTAMP,
7170
- pc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
7171
- El as LOG_OUT,
7172
- Wo as Logo,
7151
+ _c as INFINITE_SCROLL_LIMIT,
7152
+ Ac as INFINITE_SCROLL_THRESHOLD,
7153
+ Mc as INPUT_BOTTOM_OFFSET,
7154
+ Lc as INPUT_BOTTOM_OFFSET_EXTRA,
7155
+ Dc as INPUT_BOTTOM_OFFSET_IPAD,
7156
+ xc as INPUT_BOTTOM_OFFSET_IPHONE,
7157
+ Rl as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7158
+ _l as INPUT_PLACEHOLDER_TEXT_ENTER,
7159
+ Al as INPUT_PLACEHOLDER_TEXT_MOBILE,
7160
+ Vc as J,
7161
+ _o as L,
7162
+ vc as LOCAL_STORAGE_CHAT_ID,
7163
+ bc as LOCAL_STORAGE_FAVORITES_ONLY,
7164
+ Ic as LOCAL_STORAGE_FULL_SCREEN,
7165
+ Tc as LOCAL_STORAGE_OLED_MODE,
7166
+ ds as LOCAL_STORAGE_PREFIX,
7167
+ Sc as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7168
+ wc as LOCAL_STORAGE_REASONING_DISCLOSURE,
7169
+ fc as LOCAL_STORAGE_SEARCH,
7170
+ mc as LOCAL_STORAGE_SORT,
7171
+ Ec as LOCAL_STORAGE_SORT_MEMORY_COLUMN,
7172
+ gc as LOCAL_STORAGE_SORT_MEMORY_DIRECTION,
7173
+ pc as LOCAL_STORAGE_SORT_TIMESTAMP,
7174
+ yc as LOCAL_STORAGE_SORT_TOKEN_USAGE,
7175
+ bl as LOG_OUT,
7176
+ Vo as Logo,
7173
7177
  dt as O,
7174
- Sl as PROFILE_TITLE,
7175
- Cl as PROMPTS_DESCRIPTION,
7176
- _c as PROMPT_CLASSNAME,
7177
- Rc as PROMPT_EDITABLE_AREA_CLASSNAME,
7178
- Vc as Q,
7179
- bo as S,
7178
+ wl as PROFILE_TITLE,
7179
+ kl as PROMPTS_DESCRIPTION,
7180
+ Rc as PROMPT_CLASSNAME,
7181
+ Oc as PROMPT_EDITABLE_AREA_CLASSNAME,
7182
+ jc as Q,
7183
+ So as S,
7180
7184
  D as SERVICE_TYPES,
7181
- wl as SETTINGS_TITLE,
7182
- Fl as SassySaint,
7183
- Ml as TOAST_CACHE_DISABLED,
7184
- $l as TOAST_CACHE_ENABLED,
7185
- Nl as TOAST_CHAT_DELETED,
7186
- Pl as TOAST_CHAT_SAVED,
7187
- kl as TOAST_PROVIDER_CHANGED,
7188
- Dl as TRIMESTERS,
7189
- Ll as TRIMESTERS_SHORT,
7190
- kc as UI_BUTTON_SCROLL_BUFFER,
7191
- Nc as UI_DEFAULT_MAIN_HEIGHT,
7192
- Pc as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
7193
- Cc as UI_FOOTER_BUFFER,
7194
- bl as USAGE_TITLE,
7195
- bi as V,
7185
+ vl as SETTINGS_TITLE,
7186
+ Hl as SassySaint,
7187
+ xl as TOAST_CACHE_DISABLED,
7188
+ Ml as TOAST_CACHE_ENABLED,
7189
+ Pl as TOAST_CHAT_DELETED,
7190
+ $l as TOAST_CHAT_SAVED,
7191
+ Nl as TOAST_PROVIDER_CHANGED,
7192
+ Ll as TRIMESTERS,
7193
+ Ul as TRIMESTERS_SHORT,
7194
+ Nc as UI_BUTTON_SCROLL_BUFFER,
7195
+ Pc as UI_DEFAULT_MAIN_HEIGHT,
7196
+ $c as UI_DEFAULT_MAIN_HEIGHT_IPHONE,
7197
+ kc as UI_FOOTER_BUFFER,
7198
+ Sl as USAGE_TITLE,
7199
+ Si as V,
7196
7200
  zt as Y,
7197
- Bc as Z,
7198
- zi as applyOledMode,
7199
- Kc as b,
7200
- yo as b$1,
7201
+ Wc as Z,
7202
+ Xi as applyOledMode,
7203
+ Gc as b,
7204
+ go as b$1,
7201
7205
  ht as c,
7202
- Yi as canEvaluateModels,
7203
- Qi as convertCamelCaseToReadable,
7204
- Bi as debounce,
7205
- Fc as e,
7206
- Jc as et,
7207
- Uc as getCacheInfo,
7208
- xi as getCurrentGeoLocation,
7209
- Cs as getLayoutPaddingClass,
7210
- Os as getMessageContaintWrapperClass,
7206
+ zi as canEvaluateModels,
7207
+ Ji as convertCamelCaseToReadable,
7208
+ Wi as debounce,
7209
+ Hc as e,
7210
+ Yc as et,
7211
+ Fc as getCacheInfo,
7212
+ Di as getCurrentGeoLocation,
7213
+ ks as getLayoutPaddingClass,
7214
+ Cs as getMessageContaintWrapperClass,
7211
7215
  ae as graphQLRequest,
7212
7216
  Je as h,
7213
- Lc as handleServiceWorkerToggle,
7214
- Ds as i,
7217
+ Uc as handleServiceWorkerToggle,
7218
+ Ls as i,
7215
7219
  jt as isDev,
7216
- ji as isPWAMode,
7217
- Ns as isProbablyMobile,
7218
- Vi as isProbablyiPad,
7219
- Wi as isProbablyiPhone,
7220
+ Qi as isPWAMode,
7221
+ Ps as isProbablyMobile,
7222
+ ji as isProbablyiPad,
7223
+ Vi as isProbablyiPhone,
7220
7224
  Dt as isServiceWorkerEnabled,
7221
- ks as isTauri,
7225
+ Ns as isTauri,
7222
7226
  Me as it,
7223
7227
  ge as j,
7224
- qc as j$1,
7225
- vo as l,
7226
- ls as n,
7227
- Ki as numberFormatter,
7228
- xs as o,
7229
- Di as obfuscate,
7230
- jc as ot,
7231
- qi as pluralize,
7228
+ Bc as j$1,
7229
+ To as l,
7230
+ us as n,
7231
+ Gi as numberFormatter,
7232
+ Ds as o,
7233
+ Li as obfuscate,
7234
+ Qc as ot,
7235
+ Bi as pluralize,
7232
7236
  He as r,
7233
- Ui as renderDataAsList,
7234
- zc as rt,
7235
- vi as serverUrl,
7236
- Xc as setNewProvider,
7237
- Zc as setUserPlan,
7238
- Qc as st,
7237
+ Fi as renderDataAsList,
7238
+ Xc as rt,
7239
+ Ti as serverUrl,
7240
+ Zc as setNewProvider,
7241
+ el as setUserPlan,
7242
+ Jc as st,
7239
7243
  it as te,
7240
- Li as unObfuscate,
7241
- tl as useChangelogs,
7242
- al as useChat,
7243
- sl as useChatsHistory,
7244
- cl as useChatsUsage,
7245
- hl as useDeleteAllActiveMemories,
7246
- fl as useDeleteAllExpiredMemories,
7247
- il as useDeleteChat,
7248
- dl as useDeleteMemory,
7249
- yl as useEntitlements,
7250
- ml as useExpiredMemories,
7244
+ Ui as unObfuscate,
7245
+ rl as useChangelogs,
7246
+ nl as useChat,
7247
+ al as useChatsHistory,
7248
+ ll as useChatsUsage,
7249
+ fl as useDeleteAllActiveMemories,
7250
+ ml as useDeleteAllExpiredMemories,
7251
+ ol as useDeleteChat,
7252
+ hl as useDeleteMemory,
7253
+ gl as useEntitlements,
7254
+ pl as useExpiredMemories,
7251
7255
  se as useQueryClient,
7252
- pl as useRestoreMemory,
7253
- nl as useSaveChat,
7254
- el as useServerCapabilities,
7255
- ol as useToggleFavoriteChat,
7256
- ul as useUpdateMemory,
7257
- rl as useUserChatStats,
7258
- ll as useUserMemories,
7259
- Ti as useUserPreferences,
7260
- gl as utilities,
7261
- Fs as x
7256
+ yl as useRestoreMemory,
7257
+ il as useSaveChat,
7258
+ tl as useServerCapabilities,
7259
+ cl as useToggleFavoriteChat,
7260
+ dl as useUpdateMemory,
7261
+ sl as useUserChatStats,
7262
+ ul as useUserMemories,
7263
+ Ii as useUserPreferences,
7264
+ El as utilities,
7265
+ Hs as x
7262
7266
  };