@versini/sassysaint 8.26.3 → 8.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { jsx as y, jsxs as J, Fragment as yr } from "react/jsx-runtime";
2
2
  import * as ee from "react";
3
- import de, { createContext as cn, useReducer as ln, useCallback as le, useRef as B, useEffect as X, useSyncExternalStore as Ns, useContext as pr, useLayoutEffect as mt, useState as ce, useMemo as It, useId as un, Suspense as Ps, lazy as xs } from "react";
3
+ import de, { createContext as on, useReducer as cn, useCallback as le, useRef as B, useEffect as X, useSyncExternalStore as Ps, useContext as pr, useLayoutEffect as mt, useState as ce, useMemo as It, useId as ln, Suspense as xs, lazy as Ds } from "react";
4
4
  import g from "clsx";
5
5
  var kt = class {
6
6
  constructor() {
@@ -21,22 +21,22 @@ var kt = class {
21
21
  }, Ot = typeof window > "u" || "Deno" in globalThis;
22
22
  function te() {
23
23
  }
24
- function Ds(e, t) {
24
+ function $s(e, t) {
25
25
  return typeof e == "function" ? e(t) : e;
26
26
  }
27
- function $s(e) {
27
+ function Ms(e) {
28
28
  return typeof e == "number" && e >= 0 && e !== 1 / 0;
29
29
  }
30
- function Ms(e, t) {
30
+ function Ls(e, t) {
31
31
  return Math.max(e + (t || 0) - Date.now(), 0);
32
32
  }
33
33
  function Yt(e, t) {
34
34
  return typeof e == "function" ? e(t) : e;
35
35
  }
36
- function Ls(e, t) {
36
+ function Us(e, t) {
37
37
  return typeof e == "function" ? e(t) : e;
38
38
  }
39
- function Nr(e, t) {
39
+ function Cr(e, t) {
40
40
  const {
41
41
  type: r = "all",
42
42
  exact: n,
@@ -59,7 +59,7 @@ function Nr(e, t) {
59
59
  }
60
60
  return !(typeof o == "boolean" && t.isStale() !== o || s && s !== t.state.fetchStatus || i && !i(t));
61
61
  }
62
- function Pr(e, t) {
62
+ function Nr(e, t) {
63
63
  const { exact: r, status: n, predicate: s, mutationKey: i } = e;
64
64
  if (i) {
65
65
  if (!t.options.mutationKey)
@@ -87,7 +87,7 @@ function He(e, t) {
87
87
  function Xt(e, t) {
88
88
  if (e === t)
89
89
  return e;
90
- const r = xr(e) && xr(t);
90
+ const r = Pr(e) && Pr(t);
91
91
  if (r || Zt(e) && Zt(t)) {
92
92
  const n = r ? e : Object.keys(e), s = n.length, i = r ? t : Object.keys(t), a = i.length, o = r ? [] : {}, c = new Set(n);
93
93
  let u = 0;
@@ -99,7 +99,7 @@ function Xt(e, t) {
99
99
  }
100
100
  return t;
101
101
  }
102
- function Gl(e, t) {
102
+ function ql(e, t) {
103
103
  if (!t || Object.keys(e).length !== Object.keys(t).length)
104
104
  return !1;
105
105
  for (const r in e)
@@ -107,27 +107,27 @@ function Gl(e, t) {
107
107
  return !1;
108
108
  return !0;
109
109
  }
110
- function xr(e) {
110
+ function Pr(e) {
111
111
  return Array.isArray(e) && e.length === Object.keys(e).length;
112
112
  }
113
113
  function Zt(e) {
114
- if (!Dr(e))
114
+ if (!xr(e))
115
115
  return !1;
116
116
  const t = e.constructor;
117
117
  if (t === void 0)
118
118
  return !0;
119
119
  const r = t.prototype;
120
- return !(!Dr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
120
+ return !(!xr(r) || !r.hasOwnProperty("isPrototypeOf") || Object.getPrototypeOf(e) !== Object.prototype);
121
121
  }
122
- function Dr(e) {
122
+ function xr(e) {
123
123
  return Object.prototype.toString.call(e) === "[object Object]";
124
124
  }
125
- function Us(e) {
125
+ function Fs(e) {
126
126
  return new Promise((t) => {
127
127
  setTimeout(t, e);
128
128
  });
129
129
  }
130
- function Fs(e, t, r) {
130
+ function Ks(e, t, r) {
131
131
  if (typeof r.structuralSharing == "function")
132
132
  return r.structuralSharing(e, t);
133
133
  if (r.structuralSharing !== !1) {
@@ -143,24 +143,24 @@ function Fs(e, t, r) {
143
143
  }
144
144
  return t;
145
145
  }
146
- function Ks(e, t, r = 0) {
146
+ function Hs(e, t, r = 0) {
147
147
  const n = [...e, t];
148
148
  return r && n.length > r ? n.slice(1) : n;
149
149
  }
150
- function Hs(e, t, r = 0) {
150
+ function Bs(e, t, r = 0) {
151
151
  const n = [t, ...e];
152
152
  return r && n.length > r ? n.slice(0, -1) : n;
153
153
  }
154
154
  var yt = Symbol();
155
- function dn(e, t) {
155
+ function un(e, t) {
156
156
  return process.env.NODE_ENV !== "production" && e.queryFn === yt && console.error(
157
157
  `Attempted to invoke queryFn when set to skipToken. This is likely a configuration error. Query hash: '${e.queryHash}'`
158
158
  ), !e.queryFn && t?.initialPromise ? () => t.initialPromise : !e.queryFn || e.queryFn === yt ? () => Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)) : e.queryFn;
159
159
  }
160
- function ql(e, t) {
160
+ function Jl(e, t) {
161
161
  return typeof e == "function" ? e(...t) : !!e;
162
162
  }
163
- var Bs = class extends kt {
163
+ var Vs = class extends kt {
164
164
  #e;
165
165
  #t;
166
166
  #r;
@@ -197,7 +197,7 @@ var Bs = class extends kt {
197
197
  isFocused() {
198
198
  return typeof this.#e == "boolean" ? this.#e : globalThis.document?.visibilityState !== "hidden";
199
199
  }
200
- }, fn = new Bs(), Vs = class extends kt {
200
+ }, dn = new Vs(), Ws = class extends kt {
201
201
  #e = !0;
202
202
  #t;
203
203
  #r;
@@ -228,8 +228,8 @@ var Bs = class extends kt {
228
228
  isOnline() {
229
229
  return this.#e;
230
230
  }
231
- }, Be = new Vs();
232
- function Ws() {
231
+ }, Be = new Ws();
232
+ function js() {
233
233
  let e, t;
234
234
  const r = new Promise((s, i) => {
235
235
  e = s, t = i;
@@ -251,29 +251,29 @@ function Ws() {
251
251
  }), t(s);
252
252
  }, r;
253
253
  }
254
- function js(e) {
254
+ function Gs(e) {
255
255
  return Math.min(1e3 * 2 ** e, 3e4);
256
256
  }
257
- function hn(e) {
257
+ function fn(e) {
258
258
  return (e ?? "online") === "online" ? Be.isOnline() : !0;
259
259
  }
260
- var mn = class extends Error {
260
+ var hn = class extends Error {
261
261
  constructor(e) {
262
262
  super("CancelledError"), this.revert = e?.revert, this.silent = e?.silent;
263
263
  }
264
264
  };
265
265
  function $t(e) {
266
- return e instanceof mn;
266
+ return e instanceof hn;
267
267
  }
268
- function yn(e) {
268
+ function mn(e) {
269
269
  let t = !1, r = 0, n = !1, s;
270
- const i = Ws(), a = (p) => {
271
- n || (f(new mn(p)), e.abort?.());
270
+ const i = js(), a = (p) => {
271
+ n || (f(new hn(p)), e.abort?.());
272
272
  }, o = () => {
273
273
  t = !0;
274
274
  }, c = () => {
275
275
  t = !1;
276
- }, u = () => fn.isFocused() && (e.networkMode === "always" || Be.isOnline()) && e.canRun(), d = () => hn(e.networkMode) && e.canRun(), l = (p) => {
276
+ }, u = () => dn.isFocused() && (e.networkMode === "always" || Be.isOnline()) && e.canRun(), d = () => fn(e.networkMode) && e.canRun(), l = (p) => {
277
277
  n || (n = !0, e.onSuccess?.(p), s?.(), i.resolve(p));
278
278
  }, f = (p) => {
279
279
  n || (n = !0, e.onError?.(p), s?.(), i.reject(p));
@@ -296,12 +296,12 @@ function yn(e) {
296
296
  Promise.resolve(p).then(l).catch((w) => {
297
297
  if (n)
298
298
  return;
299
- const k = e.retry ?? (Ot ? 0 : 3), E = e.retryDelay ?? js, R = typeof E == "function" ? E(r, w) : E, _ = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, w);
299
+ const k = e.retry ?? (Ot ? 0 : 3), E = e.retryDelay ?? Gs, R = typeof E == "function" ? E(r, w) : E, _ = k === !0 || typeof k == "number" && r < k || typeof k == "function" && k(r, w);
300
300
  if (t || !_) {
301
301
  f(w);
302
302
  return;
303
303
  }
304
- r++, e.onFail?.(r, w), Us(R).then(() => u() ? void 0 : h()).then(() => {
304
+ r++, e.onFail?.(r, w), Fs(R).then(() => u() ? void 0 : h()).then(() => {
305
305
  t ? f(w) : m();
306
306
  });
307
307
  });
@@ -316,13 +316,13 @@ function yn(e) {
316
316
  start: () => (d() ? m() : h().then(m), i)
317
317
  };
318
318
  }
319
- var Gs = (e) => setTimeout(e, 0);
320
- function qs() {
319
+ var qs = (e) => setTimeout(e, 0);
320
+ function Js() {
321
321
  let e = [], t = 0, r = (o) => {
322
322
  o();
323
323
  }, n = (o) => {
324
324
  o();
325
- }, s = Gs;
325
+ }, s = qs;
326
326
  const i = (o) => {
327
327
  t ? e.push(o) : s(() => {
328
328
  r(o);
@@ -376,13 +376,13 @@ function qs() {
376
376
  }
377
377
  };
378
378
  }
379
- var q = qs(), pn = class {
379
+ var q = Js(), yn = class {
380
380
  #e;
381
381
  destroy() {
382
382
  this.clearGcTimeout();
383
383
  }
384
384
  scheduleGc() {
385
- this.clearGcTimeout(), $s(this.gcTime) && (this.#e = setTimeout(() => {
385
+ this.clearGcTimeout(), Ms(this.gcTime) && (this.#e = setTimeout(() => {
386
386
  this.optionalRemove();
387
387
  }, this.gcTime));
388
388
  }
@@ -395,7 +395,7 @@ var q = qs(), pn = class {
395
395
  clearGcTimeout() {
396
396
  this.#e && (clearTimeout(this.#e), this.#e = void 0);
397
397
  }
398
- }, Js = class extends pn {
398
+ }, zs = class extends yn {
399
399
  #e;
400
400
  #t;
401
401
  #r;
@@ -404,7 +404,7 @@ var q = qs(), pn = class {
404
404
  #o;
405
405
  #a;
406
406
  constructor(e) {
407
- super(), this.#a = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#s = e.client, this.#r = this.#s.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Qs(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
407
+ super(), this.#a = !1, this.#o = e.defaultOptions, this.setOptions(e.options), this.observers = [], this.#s = e.client, this.#r = this.#s.getQueryCache(), this.queryKey = e.queryKey, this.queryHash = e.queryHash, this.#e = Ys(this.options), this.state = e.state ?? this.#e, this.scheduleGc();
408
408
  }
409
409
  get meta() {
410
410
  return this.options.meta;
@@ -419,7 +419,7 @@ var q = qs(), pn = class {
419
419
  !this.observers.length && this.state.fetchStatus === "idle" && this.#r.remove(this);
420
420
  }
421
421
  setData(e, t) {
422
- const r = Fs(this.state.data, e, this.options);
422
+ const r = Ks(this.state.data, e, this.options);
423
423
  return this.#i({
424
424
  data: r,
425
425
  type: "success",
@@ -442,7 +442,7 @@ var q = qs(), pn = class {
442
442
  }
443
443
  isActive() {
444
444
  return this.observers.some(
445
- (e) => Ls(e.options.enabled, this) !== !1
445
+ (e) => Us(e.options.enabled, this) !== !1
446
446
  );
447
447
  }
448
448
  isDisabled() {
@@ -459,7 +459,7 @@ var q = qs(), pn = class {
459
459
  ) : this.state.data === void 0 || this.state.isInvalidated;
460
460
  }
461
461
  isStaleByTime(e = 0) {
462
- return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Ms(this.state.dataUpdatedAt, e);
462
+ return this.state.data === void 0 ? !0 : e === "static" ? !1 : this.state.isInvalidated ? !0 : !Ls(this.state.dataUpdatedAt, e);
463
463
  }
464
464
  onFocus() {
465
465
  this.observers.find((t) => t.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: !1 }), this.#n?.continue();
@@ -499,7 +499,7 @@ var q = qs(), pn = class {
499
499
  get: () => (this.#a = !0, r.signal)
500
500
  });
501
501
  }, s = () => {
502
- const c = dn(this.options, t), d = (() => {
502
+ const c = un(this.options, t), d = (() => {
503
503
  const l = {
504
504
  client: this.#s,
505
505
  queryKey: this.queryKey,
@@ -537,7 +537,7 @@ var q = qs(), pn = class {
537
537
  this
538
538
  )), this.scheduleGc();
539
539
  };
540
- return this.#n = yn({
540
+ return this.#n = mn({
541
541
  initialPromise: t?.initialPromise,
542
542
  fn: a.fetchFn,
543
543
  abort: r.abort.bind(r),
@@ -598,7 +598,7 @@ var q = qs(), pn = class {
598
598
  case "fetch":
599
599
  return {
600
600
  ...r,
601
- ...zs(r.data, this.options),
601
+ ...Qs(r.data, this.options),
602
602
  fetchMeta: e.meta ?? null
603
603
  };
604
604
  case "success":
@@ -647,18 +647,18 @@ var q = qs(), pn = class {
647
647
  });
648
648
  }
649
649
  };
650
- function zs(e, t) {
650
+ function Qs(e, t) {
651
651
  return {
652
652
  fetchFailureCount: 0,
653
653
  fetchFailureReason: null,
654
- fetchStatus: hn(t.networkMode) ? "fetching" : "paused",
654
+ fetchStatus: fn(t.networkMode) ? "fetching" : "paused",
655
655
  ...e === void 0 && {
656
656
  error: null,
657
657
  status: "pending"
658
658
  }
659
659
  };
660
660
  }
661
- function Qs(e) {
661
+ function Ys(e) {
662
662
  const t = typeof e.initialData == "function" ? e.initialData() : e.initialData, r = t !== void 0, n = r ? typeof e.initialDataUpdatedAt == "function" ? e.initialDataUpdatedAt() : e.initialDataUpdatedAt : 0;
663
663
  return {
664
664
  data: t,
@@ -675,7 +675,7 @@ function Qs(e) {
675
675
  fetchStatus: "idle"
676
676
  };
677
677
  }
678
- var Ys = class extends kt {
678
+ var Xs = class extends kt {
679
679
  constructor(e = {}) {
680
680
  super(), this.config = e, this.#e = /* @__PURE__ */ new Map();
681
681
  }
@@ -683,7 +683,7 @@ var Ys = class extends kt {
683
683
  build(e, t, r) {
684
684
  const n = t.queryKey, s = t.queryHash ?? gr(n, t);
685
685
  let i = this.get(s);
686
- return i || (i = new Js({
686
+ return i || (i = new zs({
687
687
  client: e,
688
688
  queryKey: n,
689
689
  queryHash: s,
@@ -718,12 +718,12 @@ var Ys = class extends kt {
718
718
  find(e) {
719
719
  const t = { exact: !0, ...e };
720
720
  return this.getAll().find(
721
- (r) => Nr(t, r)
721
+ (r) => Cr(t, r)
722
722
  );
723
723
  }
724
724
  findAll(e = {}) {
725
725
  const t = this.getAll();
726
- return Object.keys(e).length > 0 ? t.filter((r) => Nr(e, r)) : t;
726
+ return Object.keys(e).length > 0 ? t.filter((r) => Cr(e, r)) : t;
727
727
  }
728
728
  notify(e) {
729
729
  q.batch(() => {
@@ -746,12 +746,12 @@ var Ys = class extends kt {
746
746
  });
747
747
  });
748
748
  }
749
- }, Xs = class extends pn {
749
+ }, Zs = class extends yn {
750
750
  #e;
751
751
  #t;
752
752
  #r;
753
753
  constructor(e) {
754
- super(), this.mutationId = e.mutationId, this.#t = e.mutationCache, this.#e = [], this.state = e.state || Zs(), this.setOptions(e.options), this.scheduleGc();
754
+ super(), this.mutationId = e.mutationId, this.#t = e.mutationCache, this.#e = [], this.state = e.state || ei(), this.setOptions(e.options), this.scheduleGc();
755
755
  }
756
756
  setOptions(e) {
757
757
  this.options = e, this.updateGcTime(this.options.gcTime);
@@ -784,7 +784,7 @@ var Ys = class extends kt {
784
784
  const t = () => {
785
785
  this.#s({ type: "continue" });
786
786
  };
787
- this.#r = yn({
787
+ this.#r = mn({
788
788
  fn: () => this.options.mutationFn ? this.options.mutationFn(e) : Promise.reject(new Error("No mutationFn found")),
789
789
  onFail: (s, i) => {
790
790
  this.#s({ type: "failed", failureCount: s, error: i });
@@ -923,7 +923,7 @@ var Ys = class extends kt {
923
923
  });
924
924
  }
925
925
  };
926
- function Zs() {
926
+ function ei() {
927
927
  return {
928
928
  context: void 0,
929
929
  data: void 0,
@@ -936,7 +936,7 @@ function Zs() {
936
936
  submittedAt: 0
937
937
  };
938
938
  }
939
- var ei = class extends kt {
939
+ var ti = class extends kt {
940
940
  constructor(e = {}) {
941
941
  super(), this.config = e, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#r = 0;
942
942
  }
@@ -944,7 +944,7 @@ var ei = class extends kt {
944
944
  #t;
945
945
  #r;
946
946
  build(e, t, r) {
947
- const n = new Xs({
947
+ const n = new Zs({
948
948
  mutationCache: this,
949
949
  mutationId: ++this.#r,
950
950
  options: e.defaultMutationOptions(t),
@@ -1002,11 +1002,11 @@ var ei = class extends kt {
1002
1002
  find(e) {
1003
1003
  const t = { exact: !0, ...e };
1004
1004
  return this.getAll().find(
1005
- (r) => Pr(t, r)
1005
+ (r) => Nr(t, r)
1006
1006
  );
1007
1007
  }
1008
1008
  findAll(e = {}) {
1009
- return this.getAll().filter((t) => Pr(e, t));
1009
+ return this.getAll().filter((t) => Nr(e, t));
1010
1010
  }
1011
1011
  notify(e) {
1012
1012
  q.batch(() => {
@@ -1027,7 +1027,7 @@ var ei = class extends kt {
1027
1027
  function Xe(e) {
1028
1028
  return e.options.scope?.id;
1029
1029
  }
1030
- function $r(e) {
1030
+ function Dr(e) {
1031
1031
  return {
1032
1032
  onFetch: (t, r) => {
1033
1033
  const n = t.options, s = t.fetchOptions?.meta?.fetchMore?.direction, i = t.state.data?.pages || [], a = t.state.data?.pageParams || [];
@@ -1041,7 +1041,7 @@ function $r(e) {
1041
1041
  d = !0;
1042
1042
  }), t.signal)
1043
1043
  });
1044
- }, f = dn(t.options, t.fetchOptions), h = async (m, p, b) => {
1044
+ }, f = un(t.options, t.fetchOptions), h = async (m, p, b) => {
1045
1045
  if (d)
1046
1046
  return Promise.reject();
1047
1047
  if (p == null && m.pages.length)
@@ -1055,14 +1055,14 @@ function $r(e) {
1055
1055
  meta: t.options.meta
1056
1056
  };
1057
1057
  return l(W), W;
1058
- })(), E = await f(k), { maxPages: R } = t.options, _ = b ? Hs : Ks;
1058
+ })(), E = await f(k), { maxPages: R } = t.options, _ = b ? Bs : Hs;
1059
1059
  return {
1060
1060
  pages: _(m.pages, E, R),
1061
1061
  pageParams: _(m.pageParams, p, R)
1062
1062
  };
1063
1063
  };
1064
1064
  if (s && i.length) {
1065
- const m = s === "backward", p = m ? ti : Mr, b = {
1065
+ const m = s === "backward", p = m ? ri : $r, b = {
1066
1066
  pages: i,
1067
1067
  pageParams: a
1068
1068
  }, w = p(n, b);
@@ -1070,7 +1070,7 @@ function $r(e) {
1070
1070
  } else {
1071
1071
  const m = e ?? i.length;
1072
1072
  do {
1073
- const p = c === 0 ? a[0] ?? n.initialPageParam : Mr(n, o);
1073
+ const p = c === 0 ? a[0] ?? n.initialPageParam : $r(n, o);
1074
1074
  if (c > 0 && p == null)
1075
1075
  break;
1076
1076
  o = await h(o, p), c++;
@@ -1091,7 +1091,7 @@ function $r(e) {
1091
1091
  }
1092
1092
  };
1093
1093
  }
1094
- function Mr(e, { pages: t, pageParams: r }) {
1094
+ function $r(e, { pages: t, pageParams: r }) {
1095
1095
  const n = t.length - 1;
1096
1096
  return t.length > 0 ? e.getNextPageParam(
1097
1097
  t[n],
@@ -1100,10 +1100,10 @@ function Mr(e, { pages: t, pageParams: r }) {
1100
1100
  r
1101
1101
  ) : void 0;
1102
1102
  }
1103
- function ti(e, { pages: t, pageParams: r }) {
1103
+ function ri(e, { pages: t, pageParams: r }) {
1104
1104
  return t.length > 0 ? e.getPreviousPageParam?.(t[0], t, r[0], r) : void 0;
1105
1105
  }
1106
- var ri = class {
1106
+ var ni = class {
1107
1107
  #e;
1108
1108
  #t;
1109
1109
  #r;
@@ -1113,10 +1113,10 @@ var ri = class {
1113
1113
  #a;
1114
1114
  #i;
1115
1115
  constructor(e = {}) {
1116
- this.#e = e.queryCache || new Ys(), this.#t = e.mutationCache || new ei(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map(), this.#o = 0;
1116
+ this.#e = e.queryCache || new Xs(), this.#t = e.mutationCache || new ti(), this.#r = e.defaultOptions || {}, this.#s = /* @__PURE__ */ new Map(), this.#n = /* @__PURE__ */ new Map(), this.#o = 0;
1117
1117
  }
1118
1118
  mount() {
1119
- this.#o++, this.#o === 1 && (this.#a = fn.subscribe(async (e) => {
1119
+ this.#o++, this.#o === 1 && (this.#a = dn.subscribe(async (e) => {
1120
1120
  e && (await this.resumePausedMutations(), this.#e.onFocus());
1121
1121
  }), this.#i = Be.subscribe(async (e) => {
1122
1122
  e && (await this.resumePausedMutations(), this.#e.onOnline());
@@ -1155,7 +1155,7 @@ var ri = class {
1155
1155
  setQueryData(e, t, r) {
1156
1156
  const n = this.defaultQueryOptions({ queryKey: e }), i = this.#e.get(
1157
1157
  n.queryHash
1158
- )?.state.data, a = Ds(t, i);
1158
+ )?.state.data, a = $s(t, i);
1159
1159
  if (a !== void 0)
1160
1160
  return this.#e.build(this, n).setData(a, { ...r, manual: !0 });
1161
1161
  }
@@ -1234,13 +1234,13 @@ var ri = class {
1234
1234
  return this.fetchQuery(e).then(te).catch(te);
1235
1235
  }
1236
1236
  fetchInfiniteQuery(e) {
1237
- return e.behavior = $r(e.pages), this.fetchQuery(e);
1237
+ return e.behavior = Dr(e.pages), this.fetchQuery(e);
1238
1238
  }
1239
1239
  prefetchInfiniteQuery(e) {
1240
1240
  return this.fetchInfiniteQuery(e).then(te).catch(te);
1241
1241
  }
1242
1242
  ensureInfiniteQueryData(e) {
1243
- return e.behavior = $r(e.pages), this.ensureQueryData(e);
1243
+ return e.behavior = Dr(e.pages), this.ensureQueryData(e);
1244
1244
  }
1245
1245
  resumePausedMutations() {
1246
1246
  return Be.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
@@ -1306,30 +1306,30 @@ var ri = class {
1306
1306
  clear() {
1307
1307
  this.#e.clear(), this.#t.clear();
1308
1308
  }
1309
- }, gn = ee.createContext(
1309
+ }, pn = ee.createContext(
1310
1310
  void 0
1311
- ), ni = (e) => {
1312
- const t = ee.useContext(gn);
1311
+ ), si = (e) => {
1312
+ const t = ee.useContext(pn);
1313
1313
  if (e)
1314
1314
  return e;
1315
1315
  if (!t)
1316
1316
  throw new Error("No QueryClient set, use QueryClientProvider to set one");
1317
1317
  return t;
1318
- }, si = ({
1318
+ }, ii = ({
1319
1319
  client: e,
1320
1320
  children: t
1321
1321
  }) => (ee.useEffect(() => (e.mount(), () => {
1322
1322
  e.unmount();
1323
- }), [e]), /* @__PURE__ */ y(gn.Provider, { value: e, children: t })), ii = (e, t) => e === t, pt = Symbol("solid-proxy"), bn = typeof Proxy == "function", gt = {
1324
- equals: ii
1325
- }, wn = In, fe = 1, bt = 2, vn = {
1323
+ }), [e]), /* @__PURE__ */ y(pn.Provider, { value: e, children: t })), ai = (e, t) => e === t, pt = Symbol("solid-proxy"), gn = typeof Proxy == "function", gt = {
1324
+ equals: ai
1325
+ }, bn = An, fe = 1, bt = 2, wn = {
1326
1326
  owned: null,
1327
1327
  cleanups: null,
1328
1328
  context: null,
1329
1329
  owner: null
1330
1330
  }, Mt = {}, O = null, x = null, j = null, ue = null, Rt = 0;
1331
1331
  function Ee(e, t) {
1332
- const r = x, n = O, s = e.length === 0, i = t === void 0 ? n : t, a = s ? vn : {
1332
+ const r = x, n = O, s = e.length === 0, i = t === void 0 ? n : t, a = s ? wn : {
1333
1333
  owned: null,
1334
1334
  cleanups: null,
1335
1335
  context: i ? i.context : null,
@@ -1349,10 +1349,10 @@ function Q(e, t) {
1349
1349
  observers: null,
1350
1350
  observerSlots: null,
1351
1351
  comparator: t.equals || void 0
1352
- }, n = (s) => (typeof s == "function" && (s = s(r.value)), An(r, s));
1353
- return [Tn.bind(r), n];
1352
+ }, n = (s) => (typeof s == "function" && (s = s(r.value)), Tn(r, s));
1353
+ return [Sn.bind(r), n];
1354
1354
  }
1355
- function ai(e, t, r) {
1355
+ function oi(e, t, r) {
1356
1356
  const n = _t(e, t, !0, fe);
1357
1357
  xe(n);
1358
1358
  }
@@ -1360,20 +1360,20 @@ function Se(e, t, r) {
1360
1360
  const n = _t(e, t, !1, fe);
1361
1361
  xe(n);
1362
1362
  }
1363
- function En(e, t, r) {
1364
- wn = pi;
1363
+ function vn(e, t, r) {
1364
+ bn = gi;
1365
1365
  const n = _t(e, t, !1, fe);
1366
1366
  (!r || !r.render) && (n.user = !0), ue ? ue.push(n) : xe(n);
1367
1367
  }
1368
1368
  function H(e, t, r) {
1369
1369
  r = r ? Object.assign({}, gt, r) : gt;
1370
1370
  const n = _t(e, t, !0, 0);
1371
- return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, xe(n), Tn.bind(n);
1371
+ return n.observers = null, n.observerSlots = null, n.comparator = r.equals || void 0, xe(n), Sn.bind(n);
1372
1372
  }
1373
- function oi(e) {
1373
+ function ci(e) {
1374
1374
  return e && typeof e == "object" && "then" in e;
1375
1375
  }
1376
- function ci(e, t, r) {
1376
+ function li(e, t, r) {
1377
1377
  let n, s, i;
1378
1378
  n = !0, s = e, i = {};
1379
1379
  let a = null, o = Mt, c = !1, u = "initialValue" in i, d = typeof n == "function" && H(n);
@@ -1413,7 +1413,7 @@ function ci(e, t, r) {
1413
1413
  refetching: I
1414
1414
  })
1415
1415
  );
1416
- return oi(T) ? (a = T, "value" in T ? (T.status === "success" ? R(a, T.value, void 0, S) : R(a, void 0, er(T.value), S), T) : (c = !0, queueMicrotask(() => c = !1), ie(() => {
1416
+ return ci(T) ? (a = T, "value" in T ? (T.status === "success" ? R(a, T.value, void 0, S) : R(a, void 0, er(T.value), S), T) : (c = !0, queueMicrotask(() => c = !1), ie(() => {
1417
1417
  E(u ? "refreshing" : "pending"), w();
1418
1418
  }, !1), T.then(
1419
1419
  (P) => R(T, P, void 0, S),
@@ -1441,7 +1441,7 @@ function ci(e, t, r) {
1441
1441
  return f();
1442
1442
  }
1443
1443
  }
1444
- }), d ? ai(() => G(!1)) : G(!1), [
1444
+ }), d ? oi(() => G(!1)) : G(!1), [
1445
1445
  W,
1446
1446
  {
1447
1447
  refetch: G,
@@ -1449,7 +1449,7 @@ function ci(e, t, r) {
1449
1449
  }
1450
1450
  ];
1451
1451
  }
1452
- function Jl(e) {
1452
+ function zl(e) {
1453
1453
  return ie(e, !1);
1454
1454
  }
1455
1455
  function V(e) {
@@ -1462,7 +1462,7 @@ function V(e) {
1462
1462
  x = t;
1463
1463
  }
1464
1464
  }
1465
- function zl(e, t, r) {
1465
+ function Ql(e, t, r) {
1466
1466
  const n = Array.isArray(e);
1467
1467
  let s, i = r && r.defer;
1468
1468
  return (a) => {
@@ -1477,16 +1477,16 @@ function zl(e, t, r) {
1477
1477
  return s = o, c;
1478
1478
  };
1479
1479
  }
1480
- function li(e) {
1481
- En(() => V(e));
1480
+ function ui(e) {
1481
+ vn(() => V(e));
1482
1482
  }
1483
1483
  function Ve(e) {
1484
1484
  return O === null || (O.cleanups === null ? O.cleanups = [e] : O.cleanups.push(e)), e;
1485
1485
  }
1486
- function ui() {
1486
+ function di() {
1487
1487
  return O;
1488
1488
  }
1489
- function di(e, t) {
1489
+ function fi(e, t) {
1490
1490
  const r = O, n = x;
1491
1491
  O = e, x = null;
1492
1492
  try {
@@ -1497,7 +1497,7 @@ function di(e, t) {
1497
1497
  O = r, x = n;
1498
1498
  }
1499
1499
  }
1500
- function fi(e) {
1500
+ function hi(e) {
1501
1501
  const t = x, r = O;
1502
1502
  return Promise.resolve().then(() => {
1503
1503
  x = t, O = r;
@@ -1505,30 +1505,30 @@ function fi(e) {
1505
1505
  return ie(e, !1), x = O = null, n ? n.done : void 0;
1506
1506
  });
1507
1507
  }
1508
- var [hi, Ql] = /* @__PURE__ */ Q(!1);
1509
- function Yl() {
1510
- return [hi, fi];
1508
+ var [mi, Yl] = /* @__PURE__ */ Q(!1);
1509
+ function Xl() {
1510
+ return [mi, hi];
1511
1511
  }
1512
- function Xl(e, t) {
1512
+ function Zl(e, t) {
1513
1513
  const r = Symbol("context");
1514
1514
  return {
1515
1515
  id: r,
1516
- Provider: gi(r),
1516
+ Provider: bi(r),
1517
1517
  defaultValue: e
1518
1518
  };
1519
1519
  }
1520
- function Zl(e) {
1520
+ function eu(e) {
1521
1521
  let t;
1522
1522
  return O && O.context && (t = O.context[e.id]) !== void 0 ? t : e.defaultValue;
1523
1523
  }
1524
- function Sn(e) {
1524
+ function En(e) {
1525
1525
  const t = H(e), r = H(() => tr(t()));
1526
1526
  return r.toArray = () => {
1527
1527
  const n = r();
1528
1528
  return Array.isArray(n) ? n : n != null ? [n] : [];
1529
1529
  }, r;
1530
1530
  }
1531
- function Tn() {
1531
+ function Sn() {
1532
1532
  if (this.sources && this.state)
1533
1533
  if (this.state === fe) xe(this);
1534
1534
  else {
@@ -1541,12 +1541,12 @@ function Tn() {
1541
1541
  }
1542
1542
  return this.value;
1543
1543
  }
1544
- function An(e, t, r) {
1544
+ function Tn(e, t, r) {
1545
1545
  let n = e.value;
1546
1546
  return (!e.comparator || !e.comparator(n, t)) && (e.value = t, e.observers && e.observers.length && ie(() => {
1547
1547
  for (let s = 0; s < e.observers.length; s += 1) {
1548
1548
  const i = e.observers[s];
1549
- i.state || (i.pure ? j.push(i) : ue.push(i), i.observers && kn(i)), i.state = fe;
1549
+ i.state || (i.pure ? j.push(i) : ue.push(i), i.observers && In(i)), i.state = fe;
1550
1550
  }
1551
1551
  if (j.length > 1e6)
1552
1552
  throw j = [], new Error();
@@ -1556,13 +1556,13 @@ function xe(e) {
1556
1556
  if (!e.fn) return;
1557
1557
  We(e);
1558
1558
  const t = Rt;
1559
- mi(
1559
+ yi(
1560
1560
  e,
1561
1561
  e.value,
1562
1562
  t
1563
1563
  );
1564
1564
  }
1565
- function mi(e, t, r) {
1565
+ function yi(e, t, r) {
1566
1566
  let n;
1567
1567
  const s = O, i = x;
1568
1568
  x = O = e;
@@ -1573,7 +1573,7 @@ function mi(e, t, r) {
1573
1573
  } finally {
1574
1574
  x = i, O = s;
1575
1575
  }
1576
- (!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? An(e, n) : e.value = n, e.updatedAt = r);
1576
+ (!e.updatedAt || e.updatedAt <= r) && (e.updatedAt != null && "observers" in e ? Tn(e, n) : e.value = n, e.updatedAt = r);
1577
1577
  }
1578
1578
  function _t(e, t, r, n = fe, s) {
1579
1579
  const i = {
@@ -1589,7 +1589,7 @@ function _t(e, t, r, n = fe, s) {
1589
1589
  context: O ? O.context : null,
1590
1590
  pure: r
1591
1591
  };
1592
- return O === null || O !== vn && (O.owned ? O.owned.push(i) : O.owned = [i]), i;
1592
+ return O === null || O !== wn && (O.owned ? O.owned.push(i) : O.owned = [i]), i;
1593
1593
  }
1594
1594
  function wt(e) {
1595
1595
  if (e.state === 0) return;
@@ -1612,20 +1612,20 @@ function ie(e, t) {
1612
1612
  t || (j = []), ue ? r = !0 : ue = [], Rt++;
1613
1613
  try {
1614
1614
  const n = e();
1615
- return yi(r), n;
1615
+ return pi(r), n;
1616
1616
  } catch (n) {
1617
1617
  r || (ue = null), j = null, br(n);
1618
1618
  }
1619
1619
  }
1620
- function yi(e) {
1621
- if (j && (In(j), j = null), e) return;
1620
+ function pi(e) {
1621
+ if (j && (An(j), j = null), e) return;
1622
1622
  const t = ue;
1623
- ue = null, t.length && ie(() => wn(t), !1);
1623
+ ue = null, t.length && ie(() => bn(t), !1);
1624
1624
  }
1625
- function In(e) {
1625
+ function An(e) {
1626
1626
  for (let t = 0; t < e.length; t++) wt(e[t]);
1627
1627
  }
1628
- function pi(e) {
1628
+ function gi(e) {
1629
1629
  let t, r = 0;
1630
1630
  for (t = 0; t < e.length; t++) {
1631
1631
  const n = e[t];
@@ -1643,10 +1643,10 @@ function vt(e, t) {
1643
1643
  }
1644
1644
  }
1645
1645
  }
1646
- function kn(e) {
1646
+ function In(e) {
1647
1647
  for (let t = 0; t < e.observers.length; t += 1) {
1648
1648
  const r = e.observers[t];
1649
- r.state || (r.state = bt, r.pure ? j.push(r) : ue.push(r), r.observers && kn(r));
1649
+ r.state || (r.state = bt, r.pure ? j.push(r) : ue.push(r), r.observers && In(r));
1650
1650
  }
1651
1651
  }
1652
1652
  function We(e) {
@@ -1693,14 +1693,14 @@ function tr(e) {
1693
1693
  }
1694
1694
  return e;
1695
1695
  }
1696
- function gi(e, t) {
1696
+ function bi(e, t) {
1697
1697
  return function(n) {
1698
1698
  let s;
1699
1699
  return Se(
1700
1700
  () => s = V(() => (O.context = {
1701
1701
  ...O.context,
1702
1702
  [e]: n.value
1703
- }, Sn(() => n.children))),
1703
+ }, En(() => n.children))),
1704
1704
  void 0
1705
1705
  ), s;
1706
1706
  };
@@ -1709,7 +1709,7 @@ var rr = Symbol("fallback");
1709
1709
  function Et(e) {
1710
1710
  for (let t = 0; t < e.length; t++) e[t]();
1711
1711
  }
1712
- function bi(e, t, r = {}) {
1712
+ function wi(e, t, r = {}) {
1713
1713
  let n = [], s = [], i = [], a = 0, o = t.length > 1 ? [] : null;
1714
1714
  return Ve(() => Et(i)), () => {
1715
1715
  let c = e() || [], u = c.length, d, l;
@@ -1744,7 +1744,7 @@ function bi(e, t, r = {}) {
1744
1744
  }
1745
1745
  };
1746
1746
  }
1747
- function wi(e, t, r = {}) {
1747
+ function vi(e, t, r = {}) {
1748
1748
  let n = [], s = [], i = [], a = [], o = 0, c;
1749
1749
  return Ve(() => Et(i)), () => {
1750
1750
  const u = e() || [], d = u.length;
@@ -1764,7 +1764,7 @@ function wi(e, t, r = {}) {
1764
1764
  }
1765
1765
  };
1766
1766
  }
1767
- function vi(e, t) {
1767
+ function Ei(e, t) {
1768
1768
  return V(() => e(t || {}));
1769
1769
  }
1770
1770
  function Ze() {
@@ -1797,19 +1797,19 @@ var nr = {
1797
1797
  function Lt(e) {
1798
1798
  return (e = typeof e == "function" ? e() : e) ? e : {};
1799
1799
  }
1800
- function Ei() {
1800
+ function Si() {
1801
1801
  for (let e = 0, t = this.length; e < t; ++e) {
1802
1802
  const r = this[e]();
1803
1803
  if (r !== void 0) return r;
1804
1804
  }
1805
1805
  }
1806
- function Si(...e) {
1806
+ function Ti(...e) {
1807
1807
  let t = !1;
1808
1808
  for (let a = 0; a < e.length; a++) {
1809
1809
  const o = e[a];
1810
1810
  t = t || !!o && pt in o, e[a] = typeof o == "function" ? (t = !0, H(o)) : o;
1811
1811
  }
1812
- if (bn && t)
1812
+ if (gn && t)
1813
1813
  return new Proxy(
1814
1814
  {
1815
1815
  get(a) {
@@ -1845,7 +1845,7 @@ function Si(...e) {
1845
1845
  n[d] = l.get ? {
1846
1846
  enumerable: !0,
1847
1847
  configurable: !0,
1848
- get: Ei.bind(r[d] = [l.get.bind(o)])
1848
+ get: Si.bind(r[d] = [l.get.bind(o)])
1849
1849
  } : l.value !== void 0 ? l : void 0;
1850
1850
  else {
1851
1851
  const f = r[d];
@@ -1860,8 +1860,8 @@ function Si(...e) {
1860
1860
  }
1861
1861
  return s;
1862
1862
  }
1863
- function Ti(e, ...t) {
1864
- if (bn && pt in e) {
1863
+ function Ai(e, ...t) {
1864
+ if (gn && pt in e) {
1865
1865
  const s = new Set(t.length > 1 ? t.flat() : t[0]), i = t.map((a) => new Proxy(
1866
1866
  {
1867
1867
  get(o) {
@@ -1903,11 +1903,11 @@ function Ti(e, ...t) {
1903
1903
  }
1904
1904
  return [...n, r];
1905
1905
  }
1906
- function Ai(e) {
1906
+ function Ii(e) {
1907
1907
  let t, r;
1908
1908
  const n = (s) => {
1909
1909
  if (!t) {
1910
- const [a] = ci(() => (r || (r = e())).then((o) => o.default));
1910
+ const [a] = li(() => (r || (r = e())).then((o) => o.default));
1911
1911
  t = a;
1912
1912
  }
1913
1913
  let i;
@@ -1917,24 +1917,24 @@ function Ai(e) {
1917
1917
  };
1918
1918
  return n.preload = () => r || ((r = e()).then((s) => t = () => s.default), r), n;
1919
1919
  }
1920
- var Ii = 0;
1921
- function eu() {
1922
- return `cl-${Ii++}`;
1920
+ var ki = 0;
1921
+ function tu() {
1922
+ return `cl-${ki++}`;
1923
1923
  }
1924
- var On = (e) => `Stale read from <${e}>.`;
1925
- function tu(e) {
1924
+ var kn = (e) => `Stale read from <${e}>.`;
1925
+ function ru(e) {
1926
1926
  const t = "fallback" in e && {
1927
1927
  fallback: () => e.fallback
1928
1928
  };
1929
- return H(bi(() => e.each, e.children, t || void 0));
1929
+ return H(wi(() => e.each, e.children, t || void 0));
1930
1930
  }
1931
- function ru(e) {
1931
+ function nu(e) {
1932
1932
  const t = "fallback" in e && {
1933
1933
  fallback: () => e.fallback
1934
1934
  };
1935
- return H(wi(() => e.each, e.children, t || void 0));
1935
+ return H(vi(() => e.each, e.children, t || void 0));
1936
1936
  }
1937
- function nu(e) {
1937
+ function su(e) {
1938
1938
  const t = e.keyed, r = H(() => e.when, void 0, void 0), n = t ? r : H(r, void 0, {
1939
1939
  equals: (s, i) => !s == !i
1940
1940
  });
@@ -1946,7 +1946,7 @@ function nu(e) {
1946
1946
  return typeof i == "function" && i.length > 0 ? V(
1947
1947
  () => i(
1948
1948
  t ? s : () => {
1949
- if (!V(n)) throw On("Show");
1949
+ if (!V(n)) throw kn("Show");
1950
1950
  return r();
1951
1951
  }
1952
1952
  )
@@ -1958,8 +1958,8 @@ function nu(e) {
1958
1958
  void 0
1959
1959
  );
1960
1960
  }
1961
- function su(e) {
1962
- const t = Sn(() => e.children), r = H(() => {
1961
+ function iu(e) {
1962
+ const t = En(() => e.children), r = H(() => {
1963
1963
  const n = t(), s = Array.isArray(n) ? n : [n];
1964
1964
  let i = () => {
1965
1965
  };
@@ -1983,7 +1983,7 @@ function su(e) {
1983
1983
  return typeof o == "function" && o.length > 0 ? V(
1984
1984
  () => o(
1985
1985
  a.keyed ? i() : () => {
1986
- if (V(r)()?.[0] !== s) throw On("Match");
1986
+ if (V(r)()?.[0] !== s) throw kn("Match");
1987
1987
  return i();
1988
1988
  }
1989
1989
  )
@@ -1993,10 +1993,10 @@ function su(e) {
1993
1993
  void 0
1994
1994
  );
1995
1995
  }
1996
- function iu(e) {
1996
+ function au(e) {
1997
1997
  return e;
1998
1998
  }
1999
- var ki = [
1999
+ var Oi = [
2000
2000
  "allowfullscreen",
2001
2001
  "async",
2002
2002
  "autofocus",
@@ -2022,7 +2022,7 @@ var ki = [
2022
2022
  "reversed",
2023
2023
  "seamless",
2024
2024
  "selected"
2025
- ], Oi = /* @__PURE__ */ new Set([
2025
+ ], Ri = /* @__PURE__ */ new Set([
2026
2026
  "className",
2027
2027
  "value",
2028
2028
  "readOnly",
@@ -2030,16 +2030,16 @@ var ki = [
2030
2030
  "isMap",
2031
2031
  "noModule",
2032
2032
  "playsInline",
2033
- ...ki
2034
- ]), Ri = /* @__PURE__ */ new Set([
2033
+ ...Oi
2034
+ ]), _i = /* @__PURE__ */ new Set([
2035
2035
  "innerHTML",
2036
2036
  "textContent",
2037
2037
  "innerText",
2038
2038
  "children"
2039
- ]), _i = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2039
+ ]), Ci = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2040
2040
  className: "class",
2041
2041
  htmlFor: "for"
2042
- }), Ci = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2042
+ }), Ni = /* @__PURE__ */ Object.assign(/* @__PURE__ */ Object.create(null), {
2043
2043
  class: "className",
2044
2044
  formnovalidate: {
2045
2045
  $: "formNoValidate",
@@ -2064,11 +2064,11 @@ var ki = [
2064
2064
  TEXTAREA: 1
2065
2065
  }
2066
2066
  });
2067
- function Ni(e, t) {
2068
- const r = Ci[e];
2067
+ function Pi(e, t) {
2068
+ const r = Ni[e];
2069
2069
  return typeof r == "object" ? r[t] ? r.$ : void 0 : r;
2070
2070
  }
2071
- var Pi = /* @__PURE__ */ new Set([
2071
+ var xi = /* @__PURE__ */ new Set([
2072
2072
  "beforeinput",
2073
2073
  "click",
2074
2074
  "dblclick",
@@ -2091,7 +2091,7 @@ var Pi = /* @__PURE__ */ new Set([
2091
2091
  "touchend",
2092
2092
  "touchmove",
2093
2093
  "touchstart"
2094
- ]), xi = /* @__PURE__ */ new Set([
2094
+ ]), Di = /* @__PURE__ */ new Set([
2095
2095
  "altGlyph",
2096
2096
  "altGlyphDef",
2097
2097
  "altGlyphItem",
@@ -2169,11 +2169,11 @@ var Pi = /* @__PURE__ */ new Set([
2169
2169
  "use",
2170
2170
  "view",
2171
2171
  "vkern"
2172
- ]), Di = {
2172
+ ]), $i = {
2173
2173
  xlink: "http://www.w3.org/1999/xlink",
2174
2174
  xml: "http://www.w3.org/XML/1998/namespace"
2175
2175
  };
2176
- function $i(e, t, r) {
2176
+ function Mi(e, t, r) {
2177
2177
  let n = r.length, s = t.length, i = n, a = 0, o = 0, c = t[s - 1].nextSibling, u = null;
2178
2178
  for (; a < s || o < i; ) {
2179
2179
  if (t[a] === r[o]) {
@@ -2213,7 +2213,7 @@ function $i(e, t, r) {
2213
2213
  }
2214
2214
  }
2215
2215
  var Me = "_$DX_DELEGATE";
2216
- function Mi(e, t, r, n = {}) {
2216
+ function Li(e, t, r, n = {}) {
2217
2217
  let s;
2218
2218
  return Ee((i) => {
2219
2219
  s = i, t === document ? e() : ir(t, e(), t.firstChild ? null : void 0, r);
@@ -2221,7 +2221,7 @@ function Mi(e, t, r, n = {}) {
2221
2221
  s(), t.textContent = "";
2222
2222
  };
2223
2223
  }
2224
- function au(e, t, r, n) {
2224
+ function ou(e, t, r, n) {
2225
2225
  let s;
2226
2226
  const i = () => {
2227
2227
  const o = document.createElement("template");
@@ -2229,32 +2229,32 @@ function au(e, t, r, n) {
2229
2229
  }, a = () => (s || (s = i())).cloneNode(!0);
2230
2230
  return a.cloneNode = a, a;
2231
2231
  }
2232
- function Li(e, t = window.document) {
2232
+ function Ui(e, t = window.document) {
2233
2233
  const r = t[Me] || (t[Me] = /* @__PURE__ */ new Set());
2234
2234
  for (let n = 0, s = e.length; n < s; n++) {
2235
2235
  const i = e[n];
2236
- r.has(i) || (r.add(i), t.addEventListener(i, Rn));
2236
+ r.has(i) || (r.add(i), t.addEventListener(i, On));
2237
2237
  }
2238
2238
  }
2239
- function ou(e = window.document) {
2239
+ function cu(e = window.document) {
2240
2240
  if (e[Me]) {
2241
- for (let t of e[Me].keys()) e.removeEventListener(t, Rn);
2241
+ for (let t of e[Me].keys()) e.removeEventListener(t, On);
2242
2242
  delete e[Me];
2243
2243
  }
2244
2244
  }
2245
2245
  function sr(e, t, r) {
2246
2246
  r == null ? e.removeAttribute(t) : e.setAttribute(t, r);
2247
2247
  }
2248
- function Ui(e, t, r, n) {
2248
+ function Fi(e, t, r, n) {
2249
2249
  n == null ? e.removeAttributeNS(t, r) : e.setAttributeNS(t, r, n);
2250
2250
  }
2251
- function Fi(e, t, r) {
2251
+ function Ki(e, t, r) {
2252
2252
  r ? e.setAttribute(t, "") : e.removeAttribute(t);
2253
2253
  }
2254
- function Ki(e, t) {
2254
+ function Hi(e, t) {
2255
2255
  t == null ? e.removeAttribute("class") : e.className = t;
2256
2256
  }
2257
- function Hi(e, t, r, n) {
2257
+ function Bi(e, t, r, n) {
2258
2258
  if (n)
2259
2259
  Array.isArray(r) ? (e[`$$${t}`] = r[0], e[`$$${t}Data`] = r[1]) : e[`$$${t}`] = r;
2260
2260
  else if (Array.isArray(r)) {
@@ -2262,20 +2262,20 @@ function Hi(e, t, r, n) {
2262
2262
  e.addEventListener(t, r[0] = (i) => s.call(e, r[1], i));
2263
2263
  } else e.addEventListener(t, r, typeof r != "function" && r);
2264
2264
  }
2265
- function Bi(e, t, r = {}) {
2265
+ function Vi(e, t, r = {}) {
2266
2266
  const n = Object.keys(t || {}), s = Object.keys(r);
2267
2267
  let i, a;
2268
2268
  for (i = 0, a = s.length; i < a; i++) {
2269
2269
  const o = s[i];
2270
- !o || o === "undefined" || t[o] || (Lr(e, o, !1), delete r[o]);
2270
+ !o || o === "undefined" || t[o] || (Mr(e, o, !1), delete r[o]);
2271
2271
  }
2272
2272
  for (i = 0, a = n.length; i < a; i++) {
2273
2273
  const o = n[i], c = !!t[o];
2274
- !o || o === "undefined" || r[o] === c || !c || (Lr(e, o, !0), r[o] = c);
2274
+ !o || o === "undefined" || r[o] === c || !c || (Mr(e, o, !0), r[o] = c);
2275
2275
  }
2276
2276
  return r;
2277
2277
  }
2278
- function Vi(e, t, r) {
2278
+ function Wi(e, t, r) {
2279
2279
  if (!t) return r ? sr(e, "style") : t;
2280
2280
  const n = e.style;
2281
2281
  if (typeof t == "string") return n.cssText = t;
@@ -2287,45 +2287,45 @@ function Vi(e, t, r) {
2287
2287
  s = t[i], s !== r[i] && (n.setProperty(i, s), r[i] = s);
2288
2288
  return r;
2289
2289
  }
2290
- function Wi(e, t = {}, r, n) {
2290
+ function ji(e, t = {}, r, n) {
2291
2291
  const s = {};
2292
2292
  return n || Se(
2293
2293
  () => s.children = je(e, t.children, s.children)
2294
- ), Se(() => typeof t.ref == "function" && ji(t.ref, e)), Se(() => Gi(e, t, r, !0, s, !0)), s;
2294
+ ), Se(() => typeof t.ref == "function" && Gi(t.ref, e)), Se(() => qi(e, t, r, !0, s, !0)), s;
2295
2295
  }
2296
- function ji(e, t, r) {
2296
+ function Gi(e, t, r) {
2297
2297
  return V(() => e(t, r));
2298
2298
  }
2299
2299
  function ir(e, t, r, n) {
2300
2300
  if (r !== void 0 && !n && (n = []), typeof t != "function") return je(e, t, n, r);
2301
2301
  Se((s) => je(e, t(), s, r), n);
2302
2302
  }
2303
- function Gi(e, t, r, n, s = {}, i = !1) {
2303
+ function qi(e, t, r, n, s = {}, i = !1) {
2304
2304
  t || (t = {});
2305
2305
  for (const a in s)
2306
2306
  if (!(a in t)) {
2307
2307
  if (a === "children") continue;
2308
- s[a] = Ur(e, a, null, s[a], r, i, t);
2308
+ s[a] = Lr(e, a, null, s[a], r, i, t);
2309
2309
  }
2310
2310
  for (const a in t) {
2311
2311
  if (a === "children")
2312
2312
  continue;
2313
2313
  const o = t[a];
2314
- s[a] = Ur(e, a, o, s[a], r, i, t);
2314
+ s[a] = Lr(e, a, o, s[a], r, i, t);
2315
2315
  }
2316
2316
  }
2317
- function qi(e) {
2317
+ function Ji(e) {
2318
2318
  return e.toLowerCase().replace(/-([a-z])/g, (t, r) => r.toUpperCase());
2319
2319
  }
2320
- function Lr(e, t, r) {
2320
+ function Mr(e, t, r) {
2321
2321
  const n = t.trim().split(/\s+/);
2322
2322
  for (let s = 0, i = n.length; s < i; s++)
2323
2323
  e.classList.toggle(n[s], r);
2324
2324
  }
2325
- function Ur(e, t, r, n, s, i, a) {
2325
+ function Lr(e, t, r, n, s, i, a) {
2326
2326
  let o, c, u, d, l;
2327
- if (t === "style") return Vi(e, r, n);
2328
- if (t === "classList") return Bi(e, r, n);
2327
+ if (t === "style") return Wi(e, r, n);
2328
+ if (t === "classList") return Vi(e, r, n);
2329
2329
  if (r === n) return n;
2330
2330
  if (t === "ref")
2331
2331
  i || r(e);
@@ -2336,25 +2336,25 @@ function Ur(e, t, r, n, s, i, a) {
2336
2336
  const f = t.slice(10);
2337
2337
  n && e.removeEventListener(f, n, !0), r && e.addEventListener(f, r, !0);
2338
2338
  } else if (t.slice(0, 2) === "on") {
2339
- const f = t.slice(2).toLowerCase(), h = Pi.has(f);
2339
+ const f = t.slice(2).toLowerCase(), h = xi.has(f);
2340
2340
  if (!h && n) {
2341
2341
  const m = Array.isArray(n) ? n[0] : n;
2342
2342
  e.removeEventListener(f, m);
2343
2343
  }
2344
- (h || r) && (Hi(e, f, r, h), h && Li([f]));
2344
+ (h || r) && (Bi(e, f, r, h), h && Ui([f]));
2345
2345
  } else if (t.slice(0, 5) === "attr:")
2346
2346
  sr(e, t.slice(5), r);
2347
2347
  else if (t.slice(0, 5) === "bool:")
2348
- Fi(e, t.slice(5), r);
2349
- else if ((l = t.slice(0, 5) === "prop:") || (u = Ri.has(t)) || !s && ((d = Ni(t, e.tagName)) || (c = Oi.has(t))) || (o = e.nodeName.includes("-") || "is" in a))
2350
- l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? Ki(e, r) : o && !c && !u ? e[qi(t)] = r : e[d || t] = r;
2348
+ Ki(e, t.slice(5), r);
2349
+ else if ((l = t.slice(0, 5) === "prop:") || (u = _i.has(t)) || !s && ((d = Pi(t, e.tagName)) || (c = Ri.has(t))) || (o = e.nodeName.includes("-") || "is" in a))
2350
+ l && (t = t.slice(5), c = !0), t === "class" || t === "className" ? Hi(e, r) : o && !c && !u ? e[Ji(t)] = r : e[d || t] = r;
2351
2351
  else {
2352
- const f = s && t.indexOf(":") > -1 && Di[t.split(":")[0]];
2353
- f ? Ui(e, f, t, r) : sr(e, _i[t] || t, r);
2352
+ const f = s && t.indexOf(":") > -1 && $i[t.split(":")[0]];
2353
+ f ? Fi(e, f, t, r) : sr(e, Ci[t] || t, r);
2354
2354
  }
2355
2355
  return r;
2356
2356
  }
2357
- function Rn(e) {
2357
+ function On(e) {
2358
2358
  let t = e.target;
2359
2359
  const r = `$$${e.type}`, n = e.target, s = e.currentTarget, i = (c) => Object.defineProperty(e, "target", {
2360
2360
  configurable: !0,
@@ -2415,7 +2415,7 @@ function je(e, t, r, n, s) {
2415
2415
  return Se(() => r = je(e, o, r, n, !0)), () => r;
2416
2416
  if (o.length === 0) {
2417
2417
  if (r = Ae(e, r, n), a) return r;
2418
- } else c ? r.length === 0 ? Fr(e, o, n) : $i(e, r, o) : (r && Ae(e), Fr(e, o));
2418
+ } else c ? r.length === 0 ? Ur(e, o, n) : Mi(e, r, o) : (r && Ae(e), Ur(e, o));
2419
2419
  r = o;
2420
2420
  } else if (t.nodeType) {
2421
2421
  if (Array.isArray(r)) {
@@ -2452,7 +2452,7 @@ function ar(e, t, r, n) {
2452
2452
  }
2453
2453
  return s;
2454
2454
  }
2455
- function Fr(e, t, r = null) {
2455
+ function Ur(e, t, r = null) {
2456
2456
  for (let n = 0, s = t.length; n < s; n++) e.insertBefore(t[n], r);
2457
2457
  }
2458
2458
  function Ae(e, t, r, n) {
@@ -2470,22 +2470,22 @@ function Ae(e, t, r, n) {
2470
2470
  } else e.insertBefore(s, r);
2471
2471
  return [s];
2472
2472
  }
2473
- var Ji = "http://www.w3.org/2000/svg";
2474
- function _n(e, t = !1) {
2475
- return t ? document.createElementNS(Ji, e) : document.createElement(e);
2473
+ var zi = "http://www.w3.org/2000/svg";
2474
+ function Rn(e, t = !1) {
2475
+ return t ? document.createElementNS(zi, e) : document.createElement(e);
2476
2476
  }
2477
- function cu(e) {
2478
- const { useShadow: t } = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = ui();
2477
+ function lu(e) {
2478
+ const { useShadow: t } = e, r = document.createTextNode(""), n = () => e.mount || document.body, s = di();
2479
2479
  let i;
2480
- return En(
2480
+ return vn(
2481
2481
  () => {
2482
- i || (i = di(s, () => H(() => e.children)));
2482
+ i || (i = fi(s, () => H(() => e.children)));
2483
2483
  const a = n();
2484
2484
  if (a instanceof HTMLHeadElement) {
2485
2485
  const [o, c] = Q(!1), u = () => c(!0);
2486
2486
  Ee((d) => ir(a, () => o() ? d() : i(), null)), Ve(u);
2487
2487
  } else {
2488
- const o = _n(e.isSVG ? "g" : "div", e.isSVG), c = t && o.attachShadow ? o.attachShadow({
2488
+ const o = Rn(e.isSVG ? "g" : "div", e.isSVG), c = t && o.attachShadow ? o.attachShadow({
2489
2489
  mode: "open"
2490
2490
  }) : o;
2491
2491
  Object.defineProperty(o, "_$host", {
@@ -2502,7 +2502,7 @@ function cu(e) {
2502
2502
  }
2503
2503
  ), r;
2504
2504
  }
2505
- function zi(e, t) {
2505
+ function Qi(e, t) {
2506
2506
  const r = H(e);
2507
2507
  return H(() => {
2508
2508
  const n = r();
@@ -2510,16 +2510,16 @@ function zi(e, t) {
2510
2510
  case "function":
2511
2511
  return V(() => n(t));
2512
2512
  case "string":
2513
- const s = xi.has(n), i = _n(n, s);
2514
- return Wi(i, t, s), i;
2513
+ const s = Di.has(n), i = Rn(n, s);
2514
+ return ji(i, t, s), i;
2515
2515
  }
2516
2516
  });
2517
2517
  }
2518
- function lu(e) {
2519
- const [, t] = Ti(e, ["component"]);
2520
- return zi(() => e.component, t);
2518
+ function uu(e) {
2519
+ const [, t] = Ai(e, ["component"]);
2520
+ return Qi(() => e.component, t);
2521
2521
  }
2522
- var Qi = class {
2522
+ var Yi = class {
2523
2523
  constructor() {
2524
2524
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
2525
2525
  }
@@ -2535,9 +2535,9 @@ var Qi = class {
2535
2535
  clear() {
2536
2536
  this.keyToValue.clear(), this.valueToKey.clear();
2537
2537
  }
2538
- }, Cn = class {
2538
+ }, _n = class {
2539
2539
  constructor(e) {
2540
- this.generateIdentifier = e, this.kv = new Qi();
2540
+ this.generateIdentifier = e, this.kv = new Yi();
2541
2541
  }
2542
2542
  register(e, t) {
2543
2543
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -2551,7 +2551,7 @@ var Qi = class {
2551
2551
  getValue(e) {
2552
2552
  return this.kv.getByKey(e);
2553
2553
  }
2554
- }, Yi = class extends Cn {
2554
+ }, Xi = class extends _n {
2555
2555
  constructor() {
2556
2556
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
2557
2557
  }
@@ -2562,7 +2562,7 @@ var Qi = class {
2562
2562
  return this.classToAllowedProps.get(e);
2563
2563
  }
2564
2564
  };
2565
- function Xi(e) {
2565
+ function Zi(e) {
2566
2566
  if ("values" in Object)
2567
2567
  return Object.values(e);
2568
2568
  const t = [];
@@ -2570,8 +2570,8 @@ function Xi(e) {
2570
2570
  e.hasOwnProperty(r) && t.push(e[r]);
2571
2571
  return t;
2572
2572
  }
2573
- function Zi(e, t) {
2574
- const r = Xi(e);
2573
+ function ea(e, t) {
2574
+ const r = Zi(e);
2575
2575
  if ("find" in r)
2576
2576
  return r.find(t);
2577
2577
  const n = r;
@@ -2587,14 +2587,14 @@ function Ne(e, t) {
2587
2587
  function ut(e, t) {
2588
2588
  return e.indexOf(t) !== -1;
2589
2589
  }
2590
- function Kr(e, t) {
2590
+ function Fr(e, t) {
2591
2591
  for (let r = 0; r < e.length; r++) {
2592
2592
  const n = e[r];
2593
2593
  if (t(n))
2594
2594
  return n;
2595
2595
  }
2596
2596
  }
2597
- var ea = class {
2597
+ var ta = class {
2598
2598
  constructor() {
2599
2599
  this.transfomers = {};
2600
2600
  }
@@ -2602,12 +2602,12 @@ var ea = class {
2602
2602
  this.transfomers[e.name] = e;
2603
2603
  }
2604
2604
  findApplicable(e) {
2605
- return Zi(this.transfomers, (t) => t.isApplicable(e));
2605
+ return ea(this.transfomers, (t) => t.isApplicable(e));
2606
2606
  }
2607
2607
  findByName(e) {
2608
2608
  return this.transfomers[e];
2609
2609
  }
2610
- }, ta = (e) => Object.prototype.toString.call(e).slice(8, -1), Nn = (e) => typeof e > "u", ra = (e) => e === null, Ge = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, or = (e) => Ge(e) && Object.keys(e).length === 0, ge = (e) => Array.isArray(e), na = (e) => typeof e == "string", sa = (e) => typeof e == "number" && !isNaN(e), ia = (e) => typeof e == "boolean", aa = (e) => e instanceof RegExp, qe = (e) => e instanceof Map, Je = (e) => e instanceof Set, Pn = (e) => ta(e) === "Symbol", oa = (e) => e instanceof Date && !isNaN(e.valueOf()), ca = (e) => e instanceof Error, Hr = (e) => typeof e == "number" && isNaN(e), la = (e) => ia(e) || ra(e) || Nn(e) || sa(e) || na(e) || Pn(e), ua = (e) => typeof e == "bigint", da = (e) => e === 1 / 0 || e === -1 / 0, fa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ha = (e) => e instanceof URL, xn = (e) => e.replace(/\./g, "\\."), Ut = (e) => e.map(String).map(xn).join("."), Le = (e) => {
2610
+ }, ra = (e) => Object.prototype.toString.call(e).slice(8, -1), Cn = (e) => typeof e > "u", na = (e) => e === null, Ge = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, or = (e) => Ge(e) && Object.keys(e).length === 0, ge = (e) => Array.isArray(e), sa = (e) => typeof e == "string", ia = (e) => typeof e == "number" && !isNaN(e), aa = (e) => typeof e == "boolean", oa = (e) => e instanceof RegExp, qe = (e) => e instanceof Map, Je = (e) => e instanceof Set, Nn = (e) => ra(e) === "Symbol", ca = (e) => e instanceof Date && !isNaN(e.valueOf()), la = (e) => e instanceof Error, Kr = (e) => typeof e == "number" && isNaN(e), ua = (e) => aa(e) || na(e) || Cn(e) || ia(e) || sa(e) || Nn(e), da = (e) => typeof e == "bigint", fa = (e) => e === 1 / 0 || e === -1 / 0, ha = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), ma = (e) => e instanceof URL, Pn = (e) => e.replace(/\./g, "\\."), Ut = (e) => e.map(String).map(Pn).join("."), Le = (e) => {
2611
2611
  const t = [];
2612
2612
  let r = "";
2613
2613
  for (let s = 0; s < e.length; s++) {
@@ -2633,12 +2633,12 @@ function re(e, t, r, n) {
2633
2633
  untransform: n
2634
2634
  };
2635
2635
  }
2636
- var Dn = [
2637
- re(Nn, "undefined", () => null, () => {
2636
+ var xn = [
2637
+ re(Cn, "undefined", () => null, () => {
2638
2638
  }),
2639
- re(ua, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
2640
- re(oa, "Date", (e) => e.toISOString(), (e) => new Date(e)),
2641
- re(ca, "Error", (e, t) => {
2639
+ re(da, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : e),
2640
+ re(ca, "Date", (e) => e.toISOString(), (e) => new Date(e)),
2641
+ re(la, "Error", (e, t) => {
2642
2642
  const r = {
2643
2643
  name: e.name,
2644
2644
  message: e.message
@@ -2652,7 +2652,7 @@ var Dn = [
2652
2652
  r[n] = e[n];
2653
2653
  }), r;
2654
2654
  }),
2655
- re(aa, "regexp", (e) => "" + e, (e) => {
2655
+ re(oa, "regexp", (e) => "" + e, (e) => {
2656
2656
  const t = e.slice(1, e.lastIndexOf("/")), r = e.slice(e.lastIndexOf("/") + 1);
2657
2657
  return new RegExp(t, r);
2658
2658
  }),
@@ -2665,9 +2665,9 @@ var Dn = [
2665
2665
  (e) => new Set(e)
2666
2666
  ),
2667
2667
  re(qe, "map", (e) => [...e.entries()], (e) => new Map(e)),
2668
- re((e) => Hr(e) || da(e), "number", (e) => Hr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2668
+ re((e) => Kr(e) || fa(e), "number", (e) => Kr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
2669
2669
  re((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
2670
- re(ha, "URL", (e) => e.toString(), (e) => new URL(e))
2670
+ re(ma, "URL", (e) => e.toString(), (e) => new URL(e))
2671
2671
  ];
2672
2672
  function Ct(e, t, r, n) {
2673
2673
  return {
@@ -2677,12 +2677,12 @@ function Ct(e, t, r, n) {
2677
2677
  untransform: n
2678
2678
  };
2679
2679
  }
2680
- var $n = Ct((e, t) => Pn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
2680
+ var Dn = Ct((e, t) => Nn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, r) => {
2681
2681
  const n = r.symbolRegistry.getValue(t[1]);
2682
2682
  if (!n)
2683
2683
  throw new Error("Trying to deserialize unknown symbol");
2684
2684
  return n;
2685
- }), ma = [
2685
+ }), ya = [
2686
2686
  Int8Array,
2687
2687
  Uint8Array,
2688
2688
  Int16Array,
@@ -2692,16 +2692,16 @@ var $n = Ct((e, t) => Pn(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
2692
2692
  Float32Array,
2693
2693
  Float64Array,
2694
2694
  Uint8ClampedArray
2695
- ].reduce((e, t) => (e[t.name] = t, e), {}), Mn = Ct(fa, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2696
- const r = ma[t[1]];
2695
+ ].reduce((e, t) => (e[t.name] = t, e), {}), $n = Ct(ha, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
2696
+ const r = ya[t[1]];
2697
2697
  if (!r)
2698
2698
  throw new Error("Trying to deserialize unknown typed array");
2699
2699
  return new r(e);
2700
2700
  });
2701
- function Ln(e, t) {
2701
+ function Mn(e, t) {
2702
2702
  return e?.constructor ? !!t.classRegistry.getIdentifier(e.constructor) : !1;
2703
2703
  }
2704
- var Un = Ct(Ln, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
2704
+ var Ln = Ct(Mn, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)], (e, t) => {
2705
2705
  const r = t.classRegistry.getAllowedProps(e.constructor);
2706
2706
  if (!r)
2707
2707
  return { ...e };
@@ -2714,44 +2714,44 @@ var Un = Ct(Ln, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
2714
2714
  if (!n)
2715
2715
  throw new Error("Trying to deserialize unknown class - check https://github.com/blitz-js/superjson/issues/116#issuecomment-773996564");
2716
2716
  return Object.assign(Object.create(n.prototype), e);
2717
- }), Fn = Ct((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
2717
+ }), Un = Ct((e, t) => !!t.customTransformerRegistry.findApplicable(e), (e, t) => ["custom", t.customTransformerRegistry.findApplicable(e).name], (e, t) => t.customTransformerRegistry.findApplicable(e).serialize(e), (e, t, r) => {
2718
2718
  const n = r.customTransformerRegistry.findByName(t[1]);
2719
2719
  if (!n)
2720
2720
  throw new Error("Trying to deserialize unknown custom value");
2721
2721
  return n.deserialize(e);
2722
- }), ya = [Un, $n, Fn, Mn], Br = (e, t) => {
2723
- const r = Kr(ya, (s) => s.isApplicable(e, t));
2722
+ }), pa = [Ln, Dn, Un, $n], Hr = (e, t) => {
2723
+ const r = Fr(pa, (s) => s.isApplicable(e, t));
2724
2724
  if (r)
2725
2725
  return {
2726
2726
  value: r.transform(e, t),
2727
2727
  type: r.annotation(e, t)
2728
2728
  };
2729
- const n = Kr(Dn, (s) => s.isApplicable(e, t));
2729
+ const n = Fr(xn, (s) => s.isApplicable(e, t));
2730
2730
  if (n)
2731
2731
  return {
2732
2732
  value: n.transform(e, t),
2733
2733
  type: n.annotation
2734
2734
  };
2735
- }, Kn = {};
2736
- Dn.forEach((e) => {
2737
- Kn[e.annotation] = e;
2735
+ }, Fn = {};
2736
+ xn.forEach((e) => {
2737
+ Fn[e.annotation] = e;
2738
2738
  });
2739
- var pa = (e, t, r) => {
2739
+ var ga = (e, t, r) => {
2740
2740
  if (ge(t))
2741
2741
  switch (t[0]) {
2742
2742
  case "symbol":
2743
- return $n.untransform(e, t, r);
2743
+ return Dn.untransform(e, t, r);
2744
2744
  case "class":
2745
- return Un.untransform(e, t, r);
2745
+ return Ln.untransform(e, t, r);
2746
2746
  case "custom":
2747
- return Fn.untransform(e, t, r);
2747
+ return Un.untransform(e, t, r);
2748
2748
  case "typed-array":
2749
- return Mn.untransform(e, t, r);
2749
+ return $n.untransform(e, t, r);
2750
2750
  default:
2751
2751
  throw new Error("Unknown transformation: " + t);
2752
2752
  }
2753
2753
  else {
2754
- const n = Kn[t];
2754
+ const n = Fn[t];
2755
2755
  if (!n)
2756
2756
  throw new Error("Unknown transformation: " + t);
2757
2757
  return n.untransform(e, r);
@@ -2762,7 +2762,7 @@ var pa = (e, t, r) => {
2762
2762
  r.next(), t--;
2763
2763
  return r.next().value;
2764
2764
  };
2765
- function Hn(e) {
2765
+ function Kn(e) {
2766
2766
  if (ut(e, "__proto__"))
2767
2767
  throw new Error("__proto__ is not allowed as a property");
2768
2768
  if (ut(e, "prototype"))
@@ -2770,8 +2770,8 @@ function Hn(e) {
2770
2770
  if (ut(e, "constructor"))
2771
2771
  throw new Error("constructor is not allowed as a property");
2772
2772
  }
2773
- var ga = (e, t) => {
2774
- Hn(t);
2773
+ var ba = (e, t) => {
2774
+ Kn(t);
2775
2775
  for (let r = 0; r < t.length; r++) {
2776
2776
  const n = t[r];
2777
2777
  if (Je(e))
@@ -2791,7 +2791,7 @@ var ga = (e, t) => {
2791
2791
  }
2792
2792
  return e;
2793
2793
  }, cr = (e, t, r) => {
2794
- if (Hn(t), t.length === 0)
2794
+ if (Kn(t), t.length === 0)
2795
2795
  return r(e);
2796
2796
  let n = e;
2797
2797
  for (let i = 0; i < t.length - 1; i++) {
@@ -2851,14 +2851,14 @@ function lr(e, t, r = []) {
2851
2851
  lr(i, t, [...r, ...Le(a)]);
2852
2852
  }), t(n, r);
2853
2853
  }
2854
- function ba(e, t, r) {
2854
+ function wa(e, t, r) {
2855
2855
  return lr(t, (n, s) => {
2856
- e = cr(e, s, (i) => pa(i, n, r));
2856
+ e = cr(e, s, (i) => ga(i, n, r));
2857
2857
  }), e;
2858
2858
  }
2859
- function wa(e, t) {
2859
+ function va(e, t) {
2860
2860
  function r(n, s) {
2861
- const i = ga(e, Le(s));
2861
+ const i = ba(e, Le(s));
2862
2862
  n.map(Le).forEach((a) => {
2863
2863
  e = cr(e, a, () => i);
2864
2864
  });
@@ -2872,12 +2872,12 @@ function wa(e, t) {
2872
2872
  Ne(t, r);
2873
2873
  return e;
2874
2874
  }
2875
- var va = (e, t) => Ge(e) || ge(e) || qe(e) || Je(e) || Ln(e, t);
2876
- function Ea(e, t, r) {
2875
+ var Ea = (e, t) => Ge(e) || ge(e) || qe(e) || Je(e) || Mn(e, t);
2876
+ function Sa(e, t, r) {
2877
2877
  const n = r.get(e);
2878
2878
  n ? n.push(t) : r.set(e, [t]);
2879
2879
  }
2880
- function Sa(e, t) {
2880
+ function Ta(e, t) {
2881
2881
  const r = {};
2882
2882
  let n;
2883
2883
  return e.forEach((s) => {
@@ -2888,18 +2888,18 @@ function Sa(e, t) {
2888
2888
  i.length === 0 ? n = a.map(Ut) : r[Ut(i)] = a.map(Ut);
2889
2889
  }), n ? or(r) ? [n] : [n, r] : or(r) ? void 0 : r;
2890
2890
  }
2891
- var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2892
- const o = la(e);
2891
+ var Hn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2892
+ const o = ua(e);
2893
2893
  if (!o) {
2894
- Ea(e, s, t);
2894
+ Sa(e, s, t);
2895
2895
  const h = a.get(e);
2896
2896
  if (h)
2897
2897
  return n ? {
2898
2898
  transformedValue: null
2899
2899
  } : h;
2900
2900
  }
2901
- if (!va(e, r)) {
2902
- const h = Br(e, r), m = h ? {
2901
+ if (!Ea(e, r)) {
2902
+ const h = Hr(e, r), m = h ? {
2903
2903
  transformedValue: h.value,
2904
2904
  annotations: [h.type]
2905
2905
  } : {
@@ -2911,13 +2911,13 @@ var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2911
2911
  return {
2912
2912
  transformedValue: null
2913
2913
  };
2914
- const c = Br(e, r), u = c?.value ?? e, d = ge(u) ? [] : {}, l = {};
2914
+ const c = Hr(e, r), u = c?.value ?? e, d = ge(u) ? [] : {}, l = {};
2915
2915
  Ne(u, (h, m) => {
2916
2916
  if (m === "__proto__" || m === "constructor" || m === "prototype")
2917
2917
  throw new Error(`Detected property ${m}. This is a prototype pollution risk, please remove it from your object.`);
2918
- const p = Bn(h, t, r, n, [...s, m], [...i, e], a);
2918
+ const p = Hn(h, t, r, n, [...s, m], [...i, e], a);
2919
2919
  d[m] = p.transformedValue, ge(p.annotations) ? l[m] = p.annotations : Ge(p.annotations) && Ne(p.annotations, (b, w) => {
2920
- l[xn(m) + "." + w] = b;
2920
+ l[Pn(m) + "." + w] = b;
2921
2921
  });
2922
2922
  });
2923
2923
  const f = or(l) ? {
@@ -2929,19 +2929,19 @@ var Bn = (e, t, r, n, s = [], i = [], a = /* @__PURE__ */ new Map()) => {
2929
2929
  };
2930
2930
  return o || a.set(e, f), f;
2931
2931
  };
2932
- function Vn(e) {
2932
+ function Bn(e) {
2933
2933
  return Object.prototype.toString.call(e).slice(8, -1);
2934
2934
  }
2935
- function Vr(e) {
2936
- return Vn(e) === "Array";
2935
+ function Br(e) {
2936
+ return Bn(e) === "Array";
2937
2937
  }
2938
- function Ta(e) {
2939
- if (Vn(e) !== "Object")
2938
+ function Aa(e) {
2939
+ if (Bn(e) !== "Object")
2940
2940
  return !1;
2941
2941
  const t = Object.getPrototypeOf(e);
2942
2942
  return !!t && t.constructor === Object && t === Object.prototype;
2943
2943
  }
2944
- function Aa(e, t, r, n, s) {
2944
+ function Ia(e, t, r, n, s) {
2945
2945
  const i = {}.propertyIsEnumerable.call(n, t) ? "enumerable" : "nonenumerable";
2946
2946
  i === "enumerable" && (e[t] = r), s && i === "nonenumerable" && Object.defineProperty(e, t, {
2947
2947
  value: r,
@@ -2951,16 +2951,16 @@ function Aa(e, t, r, n, s) {
2951
2951
  });
2952
2952
  }
2953
2953
  function ur(e, t = {}) {
2954
- if (Vr(e))
2954
+ if (Br(e))
2955
2955
  return e.map((s) => ur(s, t));
2956
- if (!Ta(e))
2956
+ if (!Aa(e))
2957
2957
  return e;
2958
2958
  const r = Object.getOwnPropertyNames(e), n = Object.getOwnPropertySymbols(e);
2959
2959
  return [...r, ...n].reduce((s, i) => {
2960
- if (Vr(t.props) && !t.props.includes(i))
2960
+ if (Br(t.props) && !t.props.includes(i))
2961
2961
  return s;
2962
2962
  const a = e[i], o = ur(a, t);
2963
- return Aa(s, i, o, e, t.nonenumerable), s;
2963
+ return Ia(s, i, o, e, t.nonenumerable), s;
2964
2964
  }, {});
2965
2965
  }
2966
2966
  var N = class {
@@ -2968,17 +2968,17 @@ var N = class {
2968
2968
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
2969
2969
  */
2970
2970
  constructor({ dedupe: e = !1 } = {}) {
2971
- this.classRegistry = new Yi(), this.symbolRegistry = new Cn((t) => t.description ?? ""), this.customTransformerRegistry = new ea(), this.allowedErrorProps = [], this.dedupe = e;
2971
+ this.classRegistry = new Xi(), this.symbolRegistry = new _n((t) => t.description ?? ""), this.customTransformerRegistry = new ta(), this.allowedErrorProps = [], this.dedupe = e;
2972
2972
  }
2973
2973
  serialize(e) {
2974
- const t = /* @__PURE__ */ new Map(), r = Bn(e, t, this, this.dedupe), n = {
2974
+ const t = /* @__PURE__ */ new Map(), r = Hn(e, t, this, this.dedupe), n = {
2975
2975
  json: r.transformedValue
2976
2976
  };
2977
2977
  r.annotations && (n.meta = {
2978
2978
  ...n.meta,
2979
2979
  values: r.annotations
2980
2980
  });
2981
- const s = Sa(t, this.dedupe);
2981
+ const s = Ta(t, this.dedupe);
2982
2982
  return s && (n.meta = {
2983
2983
  ...n.meta,
2984
2984
  referentialEqualities: s
@@ -2987,7 +2987,7 @@ var N = class {
2987
2987
  deserialize(e) {
2988
2988
  const { json: t, meta: r } = e;
2989
2989
  let n = ur(t);
2990
- return r?.values && (n = ba(n, r.values, this)), r?.referentialEqualities && (n = wa(n, r.referentialEqualities)), n;
2990
+ return r?.values && (n = wa(n, r.values, this)), r?.referentialEqualities && (n = va(n, r.referentialEqualities)), n;
2991
2991
  }
2992
2992
  stringify(e) {
2993
2993
  return JSON.stringify(this.serialize(e));
@@ -3020,44 +3020,44 @@ N.registerClass = N.defaultInstance.registerClass.bind(N.defaultInstance);
3020
3020
  N.registerSymbol = N.defaultInstance.registerSymbol.bind(N.defaultInstance);
3021
3021
  N.registerCustom = N.defaultInstance.registerCustom.bind(N.defaultInstance);
3022
3022
  N.allowErrorProps = N.defaultInstance.allowErrorProps.bind(N.defaultInstance);
3023
- var Ia = N.serialize, uu = N.stringify;
3024
- function du(e) {
3023
+ var ka = N.serialize, du = N.stringify;
3024
+ function fu(e) {
3025
3025
  return e.state.fetchStatus === "fetching" ? "fetching" : e.getObserversCount() ? e.state.fetchStatus === "paused" ? "paused" : e.isStale() ? "stale" : "fresh" : "inactive";
3026
3026
  }
3027
- function fu(e, t) {
3027
+ function hu(e, t) {
3028
3028
  return `${e}${t.charAt(0).toUpperCase() + t.slice(1)}`;
3029
3029
  }
3030
- function hu({
3030
+ function mu({
3031
3031
  queryState: e,
3032
3032
  observerCount: t,
3033
3033
  isStale: r
3034
3034
  }) {
3035
3035
  return e.fetchStatus === "fetching" ? "blue" : t ? e.fetchStatus === "paused" ? "purple" : r ? "yellow" : "green" : "gray";
3036
3036
  }
3037
- function mu({
3037
+ function yu({
3038
3038
  status: e,
3039
3039
  isPaused: t
3040
3040
  }) {
3041
3041
  return t ? "purple" : e === "error" ? "red" : e === "pending" ? "yellow" : e === "success" ? "green" : "gray";
3042
3042
  }
3043
- function yu(e) {
3043
+ function pu(e) {
3044
3044
  return e === "fresh" ? "green" : e === "stale" ? "yellow" : e === "paused" ? "purple" : e === "inactive" ? "gray" : "blue";
3045
3045
  }
3046
- var pu = (e, t = !1) => {
3046
+ var gu = (e, t = !1) => {
3047
3047
  const {
3048
3048
  json: r
3049
- } = Ia(e);
3049
+ } = ka(e);
3050
3050
  return JSON.stringify(r, null, t ? 2 : void 0);
3051
- }, et = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, ka = (e, t) => e.queryHash.localeCompare(t.queryHash), Wn = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Oa = (e, t) => et(e) === et(t) ? Wn(e, t) : et(e) > et(t) ? 1 : -1, gu = {
3052
- status: Oa,
3053
- "query hash": ka,
3054
- "last updated": Wn
3055
- }, tt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, jn = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, Ra = (e, t) => tt(e) === tt(t) ? jn(e, t) : tt(e) > tt(t) ? 1 : -1, bu = {
3051
+ }, et = (e) => e.state.fetchStatus !== "idle" ? 0 : e.getObserversCount() ? e.isStale() ? 2 : 1 : 3, Oa = (e, t) => e.queryHash.localeCompare(t.queryHash), Vn = (e, t) => e.state.dataUpdatedAt < t.state.dataUpdatedAt ? 1 : -1, Ra = (e, t) => et(e) === et(t) ? Vn(e, t) : et(e) > et(t) ? 1 : -1, bu = {
3056
3052
  status: Ra,
3057
- "last updated": jn
3058
- }, wu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), vu = () => {
3053
+ "query hash": Oa,
3054
+ "last updated": Vn
3055
+ }, tt = (e) => e.state.isPaused ? 0 : e.state.status === "error" ? 2 : e.state.status === "pending" ? 1 : 3, Wn = (e, t) => e.state.submittedAt < t.state.submittedAt ? 1 : -1, _a = (e, t) => tt(e) === tt(t) ? Wn(e, t) : tt(e) > tt(t) ? 1 : -1, wu = {
3056
+ status: _a,
3057
+ "last updated": Wn
3058
+ }, vu = (e) => e * parseFloat(getComputedStyle(document.documentElement).fontSize), Eu = () => {
3059
3059
  const [e, t] = Q("dark");
3060
- return li(() => {
3060
+ return ui(() => {
3061
3061
  const r = window.matchMedia("(prefers-color-scheme: dark)");
3062
3062
  t(r.matches ? "dark" : "light");
3063
3063
  const n = (s) => {
@@ -3125,11 +3125,11 @@ var pu = (e, t = !1) => {
3125
3125
  return r[n] = nt(r[n], s), r;
3126
3126
  }
3127
3127
  return e;
3128
- }, _a = (e, t) => {
3128
+ }, Ca = (e, t) => {
3129
3129
  if (!e || document.querySelector("#_goober") || t?.querySelector("#_goober")) return;
3130
3130
  const n = document.createElement("style"), s = document.createTextNode("");
3131
3131
  n.appendChild(s), n.id = "_goober", n.setAttribute("nonce", e), t ? t.appendChild(n) : document.head.appendChild(n);
3132
- }, Ca = class {
3132
+ }, Na = class {
3133
3133
  #e;
3134
3134
  #t;
3135
3135
  #r;
@@ -3176,10 +3176,10 @@ var pu = (e, t = !1) => {
3176
3176
  mount(e) {
3177
3177
  if (this.#n)
3178
3178
  throw new Error("Devtools is already mounted");
3179
- const t = Mi(() => {
3179
+ const t = Li(() => {
3180
3180
  const r = this, [n] = this.#i, [s] = this.#c, [i] = this.#l, [a] = this.#u, [o] = this.#e;
3181
3181
  let c;
3182
- return this.#d ? c = this.#d : (c = Ai(() => import("./I3HPI4QX.DUpsHxtP.js")), this.#d = c), _a(this.#o, this.#a), vi(c, Si({
3182
+ return this.#d ? c = this.#d : (c = Ii(() => import("./I3HPI4QX.D24JNLrr.js")), this.#d = c), Ca(this.#o, this.#a), Ei(c, Ti({
3183
3183
  get queryFlavor() {
3184
3184
  return r.#r;
3185
3185
  },
@@ -3218,8 +3218,8 @@ var pu = (e, t = !1) => {
3218
3218
  this.#f?.(), this.#n = !1;
3219
3219
  }
3220
3220
  };
3221
- function Na(e) {
3222
- const t = ni(e.client), r = ee.useRef(null), {
3221
+ function Pa(e) {
3222
+ const t = si(e.client), r = ee.useRef(null), {
3223
3223
  buttonPosition: n,
3224
3224
  position: s,
3225
3225
  initialIsOpen: i,
@@ -3227,7 +3227,7 @@ function Na(e) {
3227
3227
  styleNonce: o,
3228
3228
  shadowDOMTarget: c
3229
3229
  } = e, [u] = ee.useState(
3230
- new Ca({
3230
+ new Na({
3231
3231
  client: t,
3232
3232
  queryFlavor: "React Query",
3233
3233
  version: "5",
@@ -3254,9 +3254,9 @@ function Na(e) {
3254
3254
  u.unmount();
3255
3255
  }), [u]), /* @__PURE__ */ y("div", { dir: "ltr", className: "tsqd-parent-container", ref: r });
3256
3256
  }
3257
- var Pa = process.env.NODE_ENV !== "development" ? function() {
3257
+ var xa = process.env.NODE_ENV !== "development" ? function() {
3258
3258
  return null;
3259
- } : Na, xa = Object.defineProperty, Da = (e, t, r) => t in e ? xa(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, D = (e, t, r) => Da(e, typeof t != "symbol" ? t + "" : t, r);
3259
+ } : Pa, Da = Object.defineProperty, $a = (e, t, r) => t in e ? Da(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, D = (e, t, r) => $a(e, typeof t != "symbol" ? t + "" : t, r);
3260
3260
  /*!
3261
3261
  @versini/auth-common v4.5.0
3262
3262
  © 2025 gizmette.com
@@ -3274,7 +3274,7 @@ const Ue = {
3274
3274
  CODE: "code",
3275
3275
  REFRESH_TOKEN: "refresh_token",
3276
3276
  PASSKEY: "passkey"
3277
- }, Gn = {
3277
+ }, jn = {
3278
3278
  CLIENT_ID: "X-Auth-ClientId"
3279
3279
  }, K = {
3280
3280
  ALG: "RS256",
@@ -3284,7 +3284,7 @@ const Ue = {
3284
3284
  NONCE_KEY: "_nonce",
3285
3285
  AUTH_TYPE_KEY: "auth_type",
3286
3286
  ISSUER: "gizmette.com"
3287
- }, $a = `-----BEGIN PUBLIC KEY-----
3287
+ }, Ma = `-----BEGIN PUBLIC KEY-----
3288
3288
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
3289
3289
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
3290
3290
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -3298,14 +3298,14 @@ awIDAQAB
3298
3298
  LOGIN: "login",
3299
3299
  REFRESH: "refresh"
3300
3300
  }, st = new TextEncoder(), Pe = new TextDecoder();
3301
- function Ma(...e) {
3301
+ function La(...e) {
3302
3302
  const t = e.reduce((s, { length: i }) => s + i, 0), r = new Uint8Array(t);
3303
3303
  let n = 0;
3304
3304
  for (const s of e)
3305
3305
  r.set(s, n), n += s.length;
3306
3306
  return r;
3307
3307
  }
3308
- function La(e) {
3308
+ function Ua(e) {
3309
3309
  if (Uint8Array.fromBase64)
3310
3310
  return Uint8Array.fromBase64(e);
3311
3311
  const t = atob(e), r = new Uint8Array(t.length);
@@ -3321,7 +3321,7 @@ function Fe(e) {
3321
3321
  let t = e;
3322
3322
  t instanceof Uint8Array && (t = Pe.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
3323
3323
  try {
3324
- return La(t);
3324
+ return Ua(t);
3325
3325
  } catch {
3326
3326
  throw new TypeError("The input to be decoded is not correctly encoded.");
3327
3327
  }
@@ -3345,12 +3345,12 @@ let dr = class extends be {
3345
3345
  }
3346
3346
  };
3347
3347
  D(dr, "code", "ERR_JWT_EXPIRED");
3348
- let qn = class extends be {
3348
+ let Gn = class extends be {
3349
3349
  constructor() {
3350
3350
  super(...arguments), D(this, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3351
3351
  }
3352
3352
  };
3353
- D(qn, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3353
+ D(Gn, "code", "ERR_JOSE_ALG_NOT_ALLOWED");
3354
3354
  let ye = class extends be {
3355
3355
  constructor() {
3356
3356
  super(...arguments), D(this, "code", "ERR_JOSE_NOT_SUPPORTED");
@@ -3369,12 +3369,12 @@ let ne = class extends be {
3369
3369
  }
3370
3370
  };
3371
3371
  D(ne, "code", "ERR_JWT_INVALID");
3372
- let Jn = class extends be {
3372
+ let qn = class extends be {
3373
3373
  constructor(t = "signature verification failed", r) {
3374
3374
  super(t, r), D(this, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3375
3375
  }
3376
3376
  };
3377
- D(Jn, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3377
+ D(qn, "code", "ERR_JWS_SIGNATURE_VERIFICATION_FAILED");
3378
3378
  function oe(e, t = "algorithm.name") {
3379
3379
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
3380
3380
  }
@@ -3384,7 +3384,7 @@ function De(e, t) {
3384
3384
  function Ft(e) {
3385
3385
  return parseInt(e.name.slice(4), 10);
3386
3386
  }
3387
- function Ua(e) {
3387
+ function Fa(e) {
3388
3388
  switch (e) {
3389
3389
  case "ES256":
3390
3390
  return "P-256";
@@ -3396,11 +3396,11 @@ function Ua(e) {
3396
3396
  throw new Error("unreachable");
3397
3397
  }
3398
3398
  }
3399
- function Fa(e, t) {
3399
+ function Ka(e, t) {
3400
3400
  if (!e.usages.includes(t))
3401
3401
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
3402
3402
  }
3403
- function Ka(e, t, r) {
3403
+ function Ha(e, t, r) {
3404
3404
  switch (t) {
3405
3405
  case "HS256":
3406
3406
  case "HS384":
@@ -3443,7 +3443,7 @@ function Ka(e, t, r) {
3443
3443
  case "ES512": {
3444
3444
  if (!De(e.algorithm, "ECDSA"))
3445
3445
  throw oe("ECDSA");
3446
- const n = Ua(t);
3446
+ const n = Fa(t);
3447
3447
  if (e.algorithm.namedCurve !== n)
3448
3448
  throw oe(n, "algorithm.namedCurve");
3449
3449
  break;
@@ -3451,9 +3451,9 @@ function Ka(e, t, r) {
3451
3451
  default:
3452
3452
  throw new TypeError("CryptoKey does not support this operation");
3453
3453
  }
3454
- Fa(e, r);
3454
+ Ka(e, r);
3455
3455
  }
3456
- function zn(e, t, ...r) {
3456
+ function Jn(e, t, ...r) {
3457
3457
  var n;
3458
3458
  if (r = r.filter(Boolean), r.length > 2) {
3459
3459
  const s = r.pop();
@@ -3461,17 +3461,17 @@ function zn(e, t, ...r) {
3461
3461
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
3462
3462
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (n = t.constructor) != null && n.name && (e += ` Received an instance of ${t.constructor.name}`), e;
3463
3463
  }
3464
- const Ha = (e, ...t) => zn("Key must be ", e, ...t);
3465
- function Qn(e, t, ...r) {
3466
- return zn(`Key for the ${e} algorithm must be `, t, ...r);
3464
+ const Ba = (e, ...t) => Jn("Key must be ", e, ...t);
3465
+ function zn(e, t, ...r) {
3466
+ return Jn(`Key for the ${e} algorithm must be `, t, ...r);
3467
3467
  }
3468
- function Yn(e) {
3468
+ function Qn(e) {
3469
3469
  return e?.[Symbol.toStringTag] === "CryptoKey";
3470
3470
  }
3471
- function Xn(e) {
3471
+ function Yn(e) {
3472
3472
  return e?.[Symbol.toStringTag] === "KeyObject";
3473
3473
  }
3474
- const Zn = (e) => Yn(e) || Xn(e), Ba = (...e) => {
3474
+ const Xn = (e) => Qn(e) || Yn(e), Va = (...e) => {
3475
3475
  const t = e.filter(Boolean);
3476
3476
  if (t.length === 0 || t.length === 1)
3477
3477
  return !0;
@@ -3490,11 +3490,11 @@ const Zn = (e) => Yn(e) || Xn(e), Ba = (...e) => {
3490
3490
  }
3491
3491
  return !0;
3492
3492
  };
3493
- function Va(e) {
3493
+ function Wa(e) {
3494
3494
  return typeof e == "object" && e !== null;
3495
3495
  }
3496
3496
  const ze = (e) => {
3497
- if (!Va(e) || Object.prototype.toString.call(e) !== "[object Object]")
3497
+ if (!Wa(e) || Object.prototype.toString.call(e) !== "[object Object]")
3498
3498
  return !1;
3499
3499
  if (Object.getPrototypeOf(e) === null)
3500
3500
  return !0;
@@ -3502,7 +3502,7 @@ const ze = (e) => {
3502
3502
  for (; Object.getPrototypeOf(t) !== null; )
3503
3503
  t = Object.getPrototypeOf(t);
3504
3504
  return Object.getPrototypeOf(e) === t;
3505
- }, Wa = (e, t) => {
3505
+ }, ja = (e, t) => {
3506
3506
  if (e.startsWith("RS") || e.startsWith("PS")) {
3507
3507
  const { modulusLength: r } = t.algorithm;
3508
3508
  if (typeof r != "number" || r < 2048)
@@ -3515,7 +3515,7 @@ const ze = (e) => {
3515
3515
  return !1;
3516
3516
  const s = e.subarray(n, n + t.length);
3517
3517
  return s.length !== t.length ? !1 : s.every((i, a) => i === t[a]) || dt(e, t, n + 1);
3518
- }, ja = (e) => {
3518
+ }, Ga = (e) => {
3519
3519
  switch (!0) {
3520
3520
  case dt(e, [42, 134, 72, 206, 61, 3, 1, 7]):
3521
3521
  return "P-256";
@@ -3526,7 +3526,7 @@ const ze = (e) => {
3526
3526
  default:
3527
3527
  return;
3528
3528
  }
3529
- }, Ga = async (e, t, r, n, s) => {
3529
+ }, qa = async (e, t, r, n, s) => {
3530
3530
  let i, a;
3531
3531
  const o = new Uint8Array(atob(r.replace(e, "")).split("").map((c) => c.charCodeAt(0)));
3532
3532
  switch (n) {
@@ -3562,7 +3562,7 @@ const ze = (e) => {
3562
3562
  case "ECDH-ES+A128KW":
3563
3563
  case "ECDH-ES+A192KW":
3564
3564
  case "ECDH-ES+A256KW": {
3565
- const c = ja(o);
3565
+ const c = Ga(o);
3566
3566
  i = c != null && c.startsWith("P-") ? { name: "ECDH", namedCurve: c } : { name: "X25519" }, a = [];
3567
3567
  break;
3568
3568
  }
@@ -3574,8 +3574,8 @@ const ze = (e) => {
3574
3574
  throw new ye('Invalid or unsupported "alg" (Algorithm) value');
3575
3575
  }
3576
3576
  return crypto.subtle.importKey(t, o, i, !0, a);
3577
- }, qa = (e, t, r) => Ga(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
3578
- function Ja(e) {
3577
+ }, Ja = (e, t, r) => qa(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
3578
+ function za(e) {
3579
3579
  let t, r;
3580
3580
  switch (e.kty) {
3581
3581
  case "RSA": {
@@ -3648,18 +3648,18 @@ function Ja(e) {
3648
3648
  }
3649
3649
  return { algorithm: t, keyUsages: r };
3650
3650
  }
3651
- const za = async (e) => {
3651
+ const Qa = async (e) => {
3652
3652
  if (!e.alg)
3653
3653
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
3654
- const { algorithm: t, keyUsages: r } = Ja(e), n = { ...e };
3654
+ const { algorithm: t, keyUsages: r } = za(e), n = { ...e };
3655
3655
  return delete n.alg, delete n.use, crypto.subtle.importKey("jwk", n, t, e.ext ?? !e.d, e.key_ops ?? r);
3656
3656
  };
3657
- async function Qa(e, t, r) {
3657
+ async function Ya(e, t, r) {
3658
3658
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
3659
3659
  throw new TypeError('"spki" must be SPKI formatted string');
3660
- return qa(e, t);
3660
+ return Ja(e, t);
3661
3661
  }
3662
- const Ya = (e, t, r, n, s) => {
3662
+ const Xa = (e, t, r, n, s) => {
3663
3663
  if (s.crit !== void 0 && n?.crit === void 0)
3664
3664
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
3665
3665
  if (!n || n.crit === void 0)
@@ -3677,7 +3677,7 @@ const Ya = (e, t, r, n, s) => {
3677
3677
  throw new e(`Extension Header Parameter "${a}" MUST be integrity protected`);
3678
3678
  }
3679
3679
  return new Set(n.crit);
3680
- }, Xa = (e, t) => {
3680
+ }, Za = (e, t) => {
3681
3681
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
3682
3682
  throw new TypeError(`"${e}" option must be an array of strings`);
3683
3683
  if (t)
@@ -3686,24 +3686,24 @@ const Ya = (e, t, r, n, s) => {
3686
3686
  function wr(e) {
3687
3687
  return ze(e) && typeof e.kty == "string";
3688
3688
  }
3689
- function Za(e) {
3689
+ function eo(e) {
3690
3690
  return e.kty !== "oct" && typeof e.d == "string";
3691
3691
  }
3692
- function eo(e) {
3692
+ function to(e) {
3693
3693
  return e.kty !== "oct" && typeof e.d > "u";
3694
3694
  }
3695
- function to(e) {
3695
+ function ro(e) {
3696
3696
  return e.kty === "oct" && typeof e.k == "string";
3697
3697
  }
3698
3698
  let pe;
3699
- const Wr = async (e, t, r, n = !1) => {
3699
+ const Vr = async (e, t, r, n = !1) => {
3700
3700
  pe || (pe = /* @__PURE__ */ new WeakMap());
3701
3701
  let s = pe.get(e);
3702
3702
  if (s != null && s[r])
3703
3703
  return s[r];
3704
- const i = await za({ ...t, alg: r });
3704
+ const i = await Qa({ ...t, alg: r });
3705
3705
  return n && Object.freeze(e), s ? s[r] = i : pe.set(e, { [r]: i }), i;
3706
- }, ro = (e, t) => {
3706
+ }, no = (e, t) => {
3707
3707
  var r;
3708
3708
  pe || (pe = /* @__PURE__ */ new WeakMap());
3709
3709
  let n = pe.get(e);
@@ -3789,24 +3789,24 @@ const Wr = async (e, t, r, n = !1) => {
3789
3789
  if (!a)
3790
3790
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
3791
3791
  return n ? n[t] = a : pe.set(e, { [t]: a }), a;
3792
- }, no = async (e, t) => {
3793
- if (e instanceof Uint8Array || Yn(e))
3792
+ }, so = async (e, t) => {
3793
+ if (e instanceof Uint8Array || Qn(e))
3794
3794
  return e;
3795
- if (Xn(e)) {
3795
+ if (Yn(e)) {
3796
3796
  if (e.type === "secret")
3797
3797
  return e.export();
3798
3798
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
3799
3799
  try {
3800
- return ro(e, t);
3800
+ return no(e, t);
3801
3801
  } catch (n) {
3802
3802
  if (n instanceof TypeError)
3803
3803
  throw n;
3804
3804
  }
3805
3805
  let r = e.export({ format: "jwk" });
3806
- return Wr(e, r, t);
3806
+ return Vr(e, r, t);
3807
3807
  }
3808
3808
  if (wr(e))
3809
- return e.k ? Fe(e.k) : Wr(e, e, t, !0);
3809
+ return e.k ? Fe(e.k) : Vr(e, e, t, !0);
3810
3810
  throw new Error("unreachable");
3811
3811
  }, _e = (e) => e?.[Symbol.toStringTag], fr = (e, t, r) => {
3812
3812
  var n, s;
@@ -3852,34 +3852,34 @@ const Wr = async (e, t, r, n = !1) => {
3852
3852
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${i}" when present`);
3853
3853
  }
3854
3854
  return !0;
3855
- }, so = (e, t, r) => {
3855
+ }, io = (e, t, r) => {
3856
3856
  if (!(t instanceof Uint8Array)) {
3857
3857
  if (wr(t)) {
3858
- if (to(t) && fr(e, t, r))
3858
+ if (ro(t) && fr(e, t, r))
3859
3859
  return;
3860
3860
  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');
3861
3861
  }
3862
- if (!Zn(t))
3863
- throw new TypeError(Qn(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
3862
+ if (!Xn(t))
3863
+ throw new TypeError(zn(e, t, "CryptoKey", "KeyObject", "JSON Web Key", "Uint8Array"));
3864
3864
  if (t.type !== "secret")
3865
3865
  throw new TypeError(`${_e(t)} instances for symmetric algorithms must be of type "secret"`);
3866
3866
  }
3867
- }, io = (e, t, r) => {
3867
+ }, ao = (e, t, r) => {
3868
3868
  if (wr(t))
3869
3869
  switch (r) {
3870
3870
  case "decrypt":
3871
3871
  case "sign":
3872
- if (Za(t) && fr(e, t, r))
3872
+ if (eo(t) && fr(e, t, r))
3873
3873
  return;
3874
3874
  throw new TypeError("JSON Web Key for this operation be a private JWK");
3875
3875
  case "encrypt":
3876
3876
  case "verify":
3877
- if (eo(t) && fr(e, t, r))
3877
+ if (to(t) && fr(e, t, r))
3878
3878
  return;
3879
3879
  throw new TypeError("JSON Web Key for this operation be a public JWK");
3880
3880
  }
3881
- if (!Zn(t))
3882
- throw new TypeError(Qn(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
3881
+ if (!Xn(t))
3882
+ throw new TypeError(zn(e, t, "CryptoKey", "KeyObject", "JSON Web Key"));
3883
3883
  if (t.type === "secret")
3884
3884
  throw new TypeError(`${_e(t)} instances for asymmetric algorithms must not be of type "secret"`);
3885
3885
  if (t.type === "public")
@@ -3896,9 +3896,9 @@ const Wr = async (e, t, r, n = !1) => {
3896
3896
  case "encrypt":
3897
3897
  throw new TypeError(`${_e(t)} instances for asymmetric algorithm encryption must be of type "public"`);
3898
3898
  }
3899
- }, ao = (e, t, r) => {
3900
- 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) ? so(e, t, r) : io(e, t, r);
3901
- }, oo = (e, t) => {
3899
+ }, oo = (e, t, r) => {
3900
+ 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) ? io(e, t, r) : ao(e, t, r);
3901
+ }, co = (e, t) => {
3902
3902
  const r = `SHA-${e.slice(-3)}`;
3903
3903
  switch (e) {
3904
3904
  case "HS256":
@@ -3923,24 +3923,24 @@ const Wr = async (e, t, r, n = !1) => {
3923
3923
  default:
3924
3924
  throw new ye(`alg ${e} is not supported either by JOSE or your javascript runtime`);
3925
3925
  }
3926
- }, co = async (e, t, r) => {
3926
+ }, lo = async (e, t, r) => {
3927
3927
  if (t instanceof Uint8Array) {
3928
3928
  if (!e.startsWith("HS"))
3929
- throw new TypeError(Ha(t, "CryptoKey", "KeyObject", "JSON Web Key"));
3929
+ throw new TypeError(Ba(t, "CryptoKey", "KeyObject", "JSON Web Key"));
3930
3930
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
3931
3931
  }
3932
- return Ka(t, e, r), t;
3933
- }, lo = async (e, t, r, n) => {
3934
- const s = await co(e, t, "verify");
3935
- Wa(e, s);
3936
- const i = oo(e, s.algorithm);
3932
+ return Ha(t, e, r), t;
3933
+ }, uo = async (e, t, r, n) => {
3934
+ const s = await lo(e, t, "verify");
3935
+ ja(e, s);
3936
+ const i = co(e, s.algorithm);
3937
3937
  try {
3938
3938
  return await crypto.subtle.verify(i, s, r, n);
3939
3939
  } catch {
3940
3940
  return !1;
3941
3941
  }
3942
3942
  };
3943
- async function uo(e, t, r) {
3943
+ async function fo(e, t, r) {
3944
3944
  if (!ze(e))
3945
3945
  throw new M("Flattened JWS must be an object");
3946
3946
  if (e.protected === void 0 && e.header === void 0)
@@ -3961,38 +3961,38 @@ async function uo(e, t, r) {
3961
3961
  } catch {
3962
3962
  throw new M("JWS Protected Header is invalid");
3963
3963
  }
3964
- if (!Ba(n, e.header))
3964
+ if (!Va(n, e.header))
3965
3965
  throw new M("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
3966
3966
  const s = {
3967
3967
  ...n,
3968
3968
  ...e.header
3969
- }, i = Ya(M, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, n, s);
3969
+ }, i = Xa(M, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, n, s);
3970
3970
  let a = !0;
3971
3971
  if (i.has("b64") && (a = n.b64, typeof a != "boolean"))
3972
3972
  throw new M('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
3973
3973
  const { alg: o } = s;
3974
3974
  if (typeof o != "string" || !o)
3975
3975
  throw new M('JWS "alg" (Algorithm) Header Parameter missing or invalid');
3976
- const c = r && Xa("algorithms", r.algorithms);
3976
+ const c = r && Za("algorithms", r.algorithms);
3977
3977
  if (c && !c.has(o))
3978
- throw new qn('"alg" (Algorithm) Header Parameter value not allowed');
3978
+ throw new Gn('"alg" (Algorithm) Header Parameter value not allowed');
3979
3979
  if (a) {
3980
3980
  if (typeof e.payload != "string")
3981
3981
  throw new M("JWS Payload must be a string");
3982
3982
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
3983
3983
  throw new M("JWS Payload must be a string or an Uint8Array instance");
3984
3984
  let u = !1;
3985
- typeof t == "function" && (t = await t(n, e), u = !0), ao(o, t, "verify");
3986
- const d = Ma(st.encode(e.protected ?? ""), st.encode("."), typeof e.payload == "string" ? st.encode(e.payload) : e.payload);
3985
+ typeof t == "function" && (t = await t(n, e), u = !0), oo(o, t, "verify");
3986
+ const d = La(st.encode(e.protected ?? ""), st.encode("."), typeof e.payload == "string" ? st.encode(e.payload) : e.payload);
3987
3987
  let l;
3988
3988
  try {
3989
3989
  l = Fe(e.signature);
3990
3990
  } catch {
3991
3991
  throw new M("Failed to base64url decode the signature");
3992
3992
  }
3993
- const f = await no(t, o);
3994
- if (!await lo(o, f, l, d))
3995
- throw new Jn();
3993
+ const f = await so(t, o);
3994
+ if (!await uo(o, f, l, d))
3995
+ throw new qn();
3996
3996
  let h;
3997
3997
  if (a)
3998
3998
  try {
@@ -4004,17 +4004,17 @@ async function uo(e, t, r) {
4004
4004
  const m = { payload: h };
4005
4005
  return e.protected !== void 0 && (m.protectedHeader = n), e.header !== void 0 && (m.unprotectedHeader = e.header), u ? { ...m, key: f } : m;
4006
4006
  }
4007
- async function fo(e, t, r) {
4007
+ async function ho(e, t, r) {
4008
4008
  if (e instanceof Uint8Array && (e = Pe.decode(e)), typeof e != "string")
4009
4009
  throw new M("Compact JWS must be a string or Uint8Array");
4010
4010
  const { 0: n, 1: s, 2: i, length: a } = e.split(".");
4011
4011
  if (a !== 3)
4012
4012
  throw new M("Invalid Compact JWS");
4013
- const o = await uo({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
4013
+ const o = await fo({ payload: s, protected: n, signature: i }, t, r), c = { payload: o.payload, protectedHeader: o.protectedHeader };
4014
4014
  return typeof t == "function" ? { ...c, key: o.key } : c;
4015
4015
  }
4016
- const ho = (e) => Math.floor(e.getTime() / 1e3), es = 60, ts = es * 60, vr = ts * 24, mo = vr * 7, yo = vr * 365.25, po = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, jr = (e) => {
4017
- const t = po.exec(e);
4016
+ const mo = (e) => Math.floor(e.getTime() / 1e3), Zn = 60, es = Zn * 60, vr = es * 24, yo = vr * 7, po = vr * 365.25, go = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, Wr = (e) => {
4017
+ const t = go.exec(e);
4018
4018
  if (!t || t[4] && t[1])
4019
4019
  throw new TypeError("Invalid time period format");
4020
4020
  const r = parseFloat(t[2]), n = t[3].toLowerCase();
@@ -4032,14 +4032,14 @@ const ho = (e) => Math.floor(e.getTime() / 1e3), es = 60, ts = es * 60, vr = ts
4032
4032
  case "min":
4033
4033
  case "mins":
4034
4034
  case "m":
4035
- s = Math.round(r * es);
4035
+ s = Math.round(r * Zn);
4036
4036
  break;
4037
4037
  case "hour":
4038
4038
  case "hours":
4039
4039
  case "hr":
4040
4040
  case "hrs":
4041
4041
  case "h":
4042
- s = Math.round(r * ts);
4042
+ s = Math.round(r * es);
4043
4043
  break;
4044
4044
  case "day":
4045
4045
  case "days":
@@ -4049,15 +4049,15 @@ const ho = (e) => Math.floor(e.getTime() / 1e3), es = 60, ts = es * 60, vr = ts
4049
4049
  case "week":
4050
4050
  case "weeks":
4051
4051
  case "w":
4052
- s = Math.round(r * mo);
4052
+ s = Math.round(r * yo);
4053
4053
  break;
4054
4054
  default:
4055
- s = Math.round(r * yo);
4055
+ s = Math.round(r * po);
4056
4056
  break;
4057
4057
  }
4058
4058
  return t[1] === "-" || t[4] === "ago" ? -s : s;
4059
- }, Gr = (e) => e.toLowerCase().replace(/^application\//, ""), go = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
4060
- function bo(e, t, r = {}) {
4059
+ }, jr = (e) => e.toLowerCase().replace(/^application\//, ""), bo = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
4060
+ function wo(e, t, r = {}) {
4061
4061
  let n;
4062
4062
  try {
4063
4063
  n = JSON.parse(Pe.decode(t));
@@ -4066,7 +4066,7 @@ function bo(e, t, r = {}) {
4066
4066
  if (!ze(n))
4067
4067
  throw new ne("JWT Claims Set must be a top-level JSON object");
4068
4068
  const { typ: s } = r;
4069
- if (s && (typeof e.typ != "string" || Gr(e.typ) !== Gr(s)))
4069
+ if (s && (typeof e.typ != "string" || jr(e.typ) !== jr(s)))
4070
4070
  throw new Z('unexpected "typ" JWT header value', n, "typ", "check_failed");
4071
4071
  const { requiredClaims: i = [], issuer: a, subject: o, audience: c, maxTokenAge: u } = r, d = [...i];
4072
4072
  u !== void 0 && d.push("iat"), c !== void 0 && d.push("aud"), o !== void 0 && d.push("sub"), a !== void 0 && d.push("iss");
@@ -4077,12 +4077,12 @@ function bo(e, t, r = {}) {
4077
4077
  throw new Z('unexpected "iss" claim value', n, "iss", "check_failed");
4078
4078
  if (o && n.sub !== o)
4079
4079
  throw new Z('unexpected "sub" claim value', n, "sub", "check_failed");
4080
- if (c && !go(n.aud, typeof c == "string" ? [c] : c))
4080
+ if (c && !bo(n.aud, typeof c == "string" ? [c] : c))
4081
4081
  throw new Z('unexpected "aud" claim value', n, "aud", "check_failed");
4082
4082
  let l;
4083
4083
  switch (typeof r.clockTolerance) {
4084
4084
  case "string":
4085
- l = jr(r.clockTolerance);
4085
+ l = Wr(r.clockTolerance);
4086
4086
  break;
4087
4087
  case "number":
4088
4088
  l = r.clockTolerance;
@@ -4093,7 +4093,7 @@ function bo(e, t, r = {}) {
4093
4093
  default:
4094
4094
  throw new TypeError("Invalid clockTolerance option type");
4095
4095
  }
4096
- const { currentDate: f } = r, h = ho(f || /* @__PURE__ */ new Date());
4096
+ const { currentDate: f } = r, h = mo(f || /* @__PURE__ */ new Date());
4097
4097
  if ((n.iat !== void 0 || u) && typeof n.iat != "number")
4098
4098
  throw new Z('"iat" claim must be a number', n, "iat", "invalid");
4099
4099
  if (n.nbf !== void 0) {
@@ -4109,7 +4109,7 @@ function bo(e, t, r = {}) {
4109
4109
  throw new dr('"exp" claim timestamp check failed', n, "exp", "check_failed");
4110
4110
  }
4111
4111
  if (u) {
4112
- const m = h - n.iat, p = typeof u == "number" ? u : jr(u);
4112
+ const m = h - n.iat, p = typeof u == "number" ? u : Wr(u);
4113
4113
  if (m - l > p)
4114
4114
  throw new dr('"iat" claim timestamp check failed (too far in the past)', n, "iat", "check_failed");
4115
4115
  if (m < 0 - l)
@@ -4117,15 +4117,15 @@ function bo(e, t, r = {}) {
4117
4117
  }
4118
4118
  return n;
4119
4119
  }
4120
- async function wo(e, t, r) {
4120
+ async function vo(e, t, r) {
4121
4121
  var n;
4122
- const s = await fo(e, t, r);
4122
+ const s = await ho(e, t, r);
4123
4123
  if ((n = s.protectedHeader.crit) != null && n.includes("b64") && s.protectedHeader.b64 === !1)
4124
4124
  throw new ne("JWTs MUST NOT use unencoded payload");
4125
- const i = { payload: bo(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
4125
+ const i = { payload: wo(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
4126
4126
  return typeof t == "function" ? { ...i, key: s.key } : i;
4127
4127
  }
4128
- function vo(e) {
4128
+ function Eo(e) {
4129
4129
  if (typeof e != "string")
4130
4130
  throw new ne("JWTs must use Compact JWS serialization, JWT must be a string");
4131
4131
  const { 1: t, length: r } = e.split(".");
@@ -4153,66 +4153,66 @@ function vo(e) {
4153
4153
  }
4154
4154
  const Qe = async (e) => {
4155
4155
  try {
4156
- const t = K.ALG, r = await Qa($a, t);
4157
- return await wo(e, r, {
4156
+ const t = K.ALG, r = await Ya(Ma, t);
4157
+ return await vo(e, r, {
4158
4158
  issuer: K.ISSUER
4159
4159
  });
4160
4160
  } catch {
4161
4161
  return;
4162
4162
  }
4163
- }, Eo = (e) => {
4163
+ }, So = (e) => {
4164
4164
  try {
4165
- return vo(e);
4165
+ return Eo(e);
4166
4166
  } catch {
4167
4167
  return;
4168
4168
  }
4169
4169
  }, L = [];
4170
4170
  for (let e = 0; e < 256; ++e)
4171
4171
  L.push((e + 256).toString(16).slice(1));
4172
- function So(e, t = 0) {
4172
+ function To(e, t = 0) {
4173
4173
  return (L[e[t + 0]] + L[e[t + 1]] + L[e[t + 2]] + L[e[t + 3]] + "-" + L[e[t + 4]] + L[e[t + 5]] + "-" + L[e[t + 6]] + L[e[t + 7]] + "-" + L[e[t + 8]] + L[e[t + 9]] + "-" + L[e[t + 10]] + L[e[t + 11]] + L[e[t + 12]] + L[e[t + 13]] + L[e[t + 14]] + L[e[t + 15]]).toLowerCase();
4174
4174
  }
4175
4175
  let Kt;
4176
- const To = new Uint8Array(16);
4177
- function Ao() {
4176
+ const Ao = new Uint8Array(16);
4177
+ function Io() {
4178
4178
  if (!Kt) {
4179
4179
  if (typeof crypto > "u" || !crypto.getRandomValues)
4180
4180
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4181
4181
  Kt = crypto.getRandomValues.bind(crypto);
4182
4182
  }
4183
- return Kt(To);
4183
+ return Kt(Ao);
4184
4184
  }
4185
- const Io = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qr = { randomUUID: Io };
4186
- function Jr(e, t, r) {
4185
+ const ko = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Gr = { randomUUID: ko };
4186
+ function qr(e, t, r) {
4187
4187
  var n;
4188
- if (qr.randomUUID && !e)
4189
- return qr.randomUUID();
4188
+ if (Gr.randomUUID && !e)
4189
+ return Gr.randomUUID();
4190
4190
  e = e || {};
4191
- const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Ao();
4191
+ const s = e.random ?? ((n = e.rng) == null ? void 0 : n.call(e)) ?? Io();
4192
4192
  if (s.length < 16)
4193
4193
  throw new Error("Random bytes length must be >= 16");
4194
- return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, So(s);
4194
+ return s[6] = s[6] & 15 | 64, s[8] = s[8] & 63 | 128, To(s);
4195
4195
  }
4196
- const zr = globalThis.crypto, ko = (e) => `${Jr()}${Jr()}`.slice(0, e), Oo = (e) => btoa(
4196
+ const Jr = globalThis.crypto, Oo = (e) => `${qr()}${qr()}`.slice(0, e), Ro = (e) => btoa(
4197
4197
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
4198
4198
  );
4199
- async function Ro(e) {
4200
- if (!zr.subtle)
4199
+ async function _o(e) {
4200
+ if (!Jr.subtle)
4201
4201
  throw new Error(
4202
4202
  "crypto.subtle is available only in secure contexts (HTTPS)."
4203
4203
  );
4204
- const t = new TextEncoder().encode(e), r = await zr.subtle.digest("SHA-256", t);
4205
- return Oo(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4204
+ const t = new TextEncoder().encode(e), r = await Jr.subtle.digest("SHA-256", t);
4205
+ return Ro(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
4206
4206
  }
4207
- async function _o(e) {
4208
- const t = ko(43), r = await Ro(t);
4207
+ async function Co(e) {
4208
+ const t = Oo(43), r = await _o(t);
4209
4209
  return {
4210
4210
  code_verifier: t,
4211
4211
  code_challenge: r
4212
4212
  };
4213
4213
  }
4214
- const rs = cn(null);
4215
- var Co = Object.defineProperty, No = (e, t, r) => t in e ? Co(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t, r) => No(e, typeof t != "symbol" ? t + "" : t, r);
4214
+ const ts = on(null);
4215
+ var No = Object.defineProperty, Po = (e, t, r) => t in e ? No(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ht = (e, t, r) => Po(e, typeof t != "symbol" ? t + "" : t, r);
4216
4216
  /*!
4217
4217
  @versini/auth-provider v8.0.4
4218
4218
  © 2025 gizmette.com
@@ -4240,12 +4240,12 @@ function St(e) {
4240
4240
  return i;
4241
4241
  }
4242
4242
  function Er() {
4243
- return Po.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
4243
+ return xo.stubThis(globalThis?.PublicKeyCredential !== void 0 && typeof globalThis.PublicKeyCredential == "function");
4244
4244
  }
4245
- const Po = {
4245
+ const xo = {
4246
4246
  stubThis: (e) => e
4247
4247
  };
4248
- function ns(e) {
4248
+ function rs(e) {
4249
4249
  const { id: t } = e;
4250
4250
  return {
4251
4251
  ...e,
@@ -4258,7 +4258,7 @@ function ns(e) {
4258
4258
  transports: e.transports
4259
4259
  };
4260
4260
  }
4261
- function ss(e) {
4261
+ function ns(e) {
4262
4262
  return (
4263
4263
  // Consider localhost valid as well since it's okay wrt Secure Contexts
4264
4264
  e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e)
@@ -4274,7 +4274,7 @@ let F = class extends Error {
4274
4274
  }), this.name = s ?? n.name, this.code = r;
4275
4275
  }
4276
4276
  };
4277
- function xo({ error: e, options: t }) {
4277
+ function Do({ error: e, options: t }) {
4278
4278
  const { publicKey: r } = t;
4279
4279
  if (!r)
4280
4280
  throw Error("options was missing required publicKey property");
@@ -4332,7 +4332,7 @@ function xo({ error: e, options: t }) {
4332
4332
  });
4333
4333
  if (e.name === "SecurityError") {
4334
4334
  const n = globalThis.location.hostname;
4335
- if (ss(n)) {
4335
+ if (ns(n)) {
4336
4336
  if (r.rp.id !== n)
4337
4337
  return new F({
4338
4338
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
@@ -4360,7 +4360,7 @@ function xo({ error: e, options: t }) {
4360
4360
  }
4361
4361
  return e;
4362
4362
  }
4363
- class Do {
4363
+ class $o {
4364
4364
  constructor() {
4365
4365
  Object.defineProperty(this, "controller", {
4366
4366
  enumerable: !0,
@@ -4384,12 +4384,12 @@ class Do {
4384
4384
  }
4385
4385
  }
4386
4386
  }
4387
- const is = new Do(), $o = ["cross-platform", "platform"];
4388
- function as(e) {
4389
- if (e && !($o.indexOf(e) < 0))
4387
+ const ss = new $o(), Mo = ["cross-platform", "platform"];
4388
+ function is(e) {
4389
+ if (e && !(Mo.indexOf(e) < 0))
4390
4390
  return e;
4391
4391
  }
4392
- async function Mo(e) {
4392
+ async function Lo(e) {
4393
4393
  !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 });
4394
4394
  const { optionsJSON: t, useAutoRegister: r = !1 } = e;
4395
4395
  if (!Er())
@@ -4401,14 +4401,14 @@ async function Mo(e) {
4401
4401
  ...t.user,
4402
4402
  id: St(t.user.id)
4403
4403
  },
4404
- excludeCredentials: t.excludeCredentials?.map(ns)
4404
+ excludeCredentials: t.excludeCredentials?.map(rs)
4405
4405
  }, s = {};
4406
- r && (s.mediation = "conditional"), s.publicKey = n, s.signal = is.createNewAbortSignal();
4406
+ r && (s.mediation = "conditional"), s.publicKey = n, s.signal = ss.createNewAbortSignal();
4407
4407
  let i;
4408
4408
  try {
4409
4409
  i = await navigator.credentials.create(s);
4410
4410
  } catch (m) {
4411
- throw xo({ error: m, options: s });
4411
+ throw Do({ error: m, options: s });
4412
4412
  }
4413
4413
  if (!i)
4414
4414
  throw new Error("Registration was not completed");
@@ -4450,14 +4450,14 @@ async function Mo(e) {
4450
4450
  },
4451
4451
  type: u,
4452
4452
  clientExtensionResults: i.getClientExtensionResults(),
4453
- authenticatorAttachment: as(i.authenticatorAttachment)
4453
+ authenticatorAttachment: is(i.authenticatorAttachment)
4454
4454
  };
4455
4455
  }
4456
4456
  function Bt(e, t) {
4457
4457
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
4458
4458
  `, t);
4459
4459
  }
4460
- function Lo() {
4460
+ function Uo() {
4461
4461
  if (!Er())
4462
4462
  return Vt.stubThis(new Promise((t) => t(!1)));
4463
4463
  const e = globalThis.PublicKeyCredential;
@@ -4466,7 +4466,7 @@ function Lo() {
4466
4466
  const Vt = {
4467
4467
  stubThis: (e) => e
4468
4468
  };
4469
- function Uo({ error: e, options: t }) {
4469
+ function Fo({ error: e, options: t }) {
4470
4470
  const { publicKey: r } = t;
4471
4471
  if (!r)
4472
4472
  throw Error("options was missing required publicKey property");
@@ -4486,7 +4486,7 @@ function Uo({ error: e, options: t }) {
4486
4486
  });
4487
4487
  if (e.name === "SecurityError") {
4488
4488
  const n = globalThis.location.hostname;
4489
- if (ss(n)) {
4489
+ if (ns(n)) {
4490
4490
  if (r.rpId !== n)
4491
4491
  return new F({
4492
4492
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
@@ -4507,31 +4507,31 @@ function Uo({ error: e, options: t }) {
4507
4507
  }
4508
4508
  return e;
4509
4509
  }
4510
- async function Fo(e) {
4510
+ async function Ko(e) {
4511
4511
  !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 });
4512
4512
  const { optionsJSON: t, useBrowserAutofill: r = !1, verifyBrowserAutofillInput: n = !0 } = e;
4513
4513
  if (!Er())
4514
4514
  throw new Error("WebAuthn is not supported in this browser");
4515
4515
  let s;
4516
- t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(ns));
4516
+ t.allowCredentials?.length !== 0 && (s = t.allowCredentials?.map(rs));
4517
4517
  const i = {
4518
4518
  ...t,
4519
4519
  challenge: St(t.challenge),
4520
4520
  allowCredentials: s
4521
4521
  }, a = {};
4522
4522
  if (r) {
4523
- if (!await Lo())
4523
+ if (!await Uo())
4524
4524
  throw Error("Browser does not support WebAuthn autofill");
4525
4525
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1 && n)
4526
4526
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
4527
4527
  a.mediation = "conditional", i.allowCredentials = [];
4528
4528
  }
4529
- a.publicKey = i, a.signal = is.createNewAbortSignal();
4529
+ a.publicKey = i, a.signal = ss.createNewAbortSignal();
4530
4530
  let o;
4531
4531
  try {
4532
4532
  o = await navigator.credentials.get(a);
4533
4533
  } catch (h) {
4534
- throw Uo({ error: h, options: a });
4534
+ throw Fo({ error: h, options: a });
4535
4535
  }
4536
4536
  if (!o)
4537
4537
  throw new Error("Authentication was not completed");
@@ -4548,29 +4548,29 @@ async function Fo(e) {
4548
4548
  },
4549
4549
  type: l,
4550
4550
  clientExtensionResults: o.getClientExtensionResults(),
4551
- authenticatorAttachment: as(o.authenticatorAttachment)
4551
+ authenticatorAttachment: is(o.authenticatorAttachment)
4552
4552
  };
4553
4553
  }
4554
- function os(e, t) {
4554
+ function as(e, t) {
4555
4555
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
4556
4556
  }
4557
- const Qr = (e, t) => {
4557
+ const zr = (e, t) => {
4558
4558
  const r = JSON.stringify(
4559
4559
  typeof t == "function" ? t() : t
4560
4560
  );
4561
- window.localStorage.setItem(e, r), os(e, r);
4562
- }, Ko = (e) => {
4563
- window.localStorage.removeItem(e), os(e, null);
4564
- }, Yr = (e) => window.localStorage.getItem(e), Ho = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4561
+ window.localStorage.setItem(e, r), as(e, r);
4562
+ }, Ho = (e) => {
4563
+ window.localStorage.removeItem(e), as(e, null);
4564
+ }, Qr = (e) => window.localStorage.getItem(e), Bo = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
4565
4565
  function it({
4566
4566
  key: e,
4567
4567
  initialValue: t
4568
4568
  }) {
4569
- const r = Ns(Ho, () => Yr(e)), n = le(
4569
+ const r = Ps(Bo, () => Qr(e)), n = le(
4570
4570
  (a) => {
4571
4571
  try {
4572
4572
  const o = typeof a == "function" ? a(JSON.parse(r)) : a;
4573
- o == null ? Ko(e) : Qr(e, o);
4573
+ o == null ? Ho(e) : zr(e, o);
4574
4574
  } catch (o) {
4575
4575
  console.warn(o);
4576
4576
  }
@@ -4583,7 +4583,7 @@ function it({
4583
4583
  }, [n]);
4584
4584
  return X(() => {
4585
4585
  try {
4586
- Yr(e) === null && typeof t < "u" && Qr(e, t);
4586
+ Qr(e) === null && typeof t < "u" && zr(e, t);
4587
4587
  } catch (a) {
4588
4588
  console.warn(a);
4589
4589
  }
@@ -4592,30 +4592,30 @@ function it({
4592
4592
  const U = [];
4593
4593
  for (let e = 0; e < 256; ++e)
4594
4594
  U.push((e + 256).toString(16).slice(1));
4595
- function Bo(e, t = 0) {
4595
+ function Vo(e, t = 0) {
4596
4596
  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();
4597
4597
  }
4598
4598
  let Wt;
4599
- const Vo = new Uint8Array(16);
4600
- function Wo() {
4599
+ const Wo = new Uint8Array(16);
4600
+ function jo() {
4601
4601
  if (!Wt) {
4602
4602
  if (typeof crypto > "u" || !crypto.getRandomValues)
4603
4603
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
4604
4604
  Wt = crypto.getRandomValues.bind(crypto);
4605
4605
  }
4606
- return Wt(Vo);
4606
+ return Wt(Wo);
4607
4607
  }
4608
- const jo = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Xr = { randomUUID: jo };
4608
+ const Go = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Yr = { randomUUID: Go };
4609
4609
  function jt(e, t, r) {
4610
- if (Xr.randomUUID && !e)
4611
- return Xr.randomUUID();
4610
+ if (Yr.randomUUID && !e)
4611
+ return Yr.randomUUID();
4612
4612
  e = e || {};
4613
- const n = e.random ?? e.rng?.() ?? Wo();
4613
+ const n = e.random ?? e.rng?.() ?? jo();
4614
4614
  if (n.length < 16)
4615
4615
  throw new Error("Random bytes length must be >= 16");
4616
- return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Bo(n);
4616
+ return n[6] = n[6] & 15 | 64, n[8] = n[8] & 63 | 128, Vo(n);
4617
4617
  }
4618
- const Ie = "Your session has expired. For your security, please log in again to continue.", Go = "Your session has been successfully terminated.", Gt = "Login failed. Please try again.", qo = "Error getting access token, please re-authenticate.", Jo = "You forgot to wrap your component in <AuthProvider>.", at = "@@auth@@", $e = "LOADING", ft = "LOGIN", cs = "LOGOUT", Ye = "success", ae = "failure", ls = "include", us = "POST", ds = "application/json", ot = {
4618
+ const Ie = "Your session has expired. For your security, please log in again to continue.", qo = "Your session has been successfully terminated.", Gt = "Login failed. Please try again.", Jo = "Error getting access token, please re-authenticate.", zo = "You forgot to wrap your component in <AuthProvider>.", at = "@@auth@@", $e = "LOADING", ft = "LOGIN", os = "LOGOUT", Ye = "success", ae = "failure", cs = "include", ls = "POST", us = "application/json", ot = {
4619
4619
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
4620
4620
  $clientId: String!,
4621
4621
  $username: String!,
@@ -4722,12 +4722,12 @@ const Ie = "Your session has expired. For your security, please log in again to
4722
4722
  }) => {
4723
4723
  try {
4724
4724
  const i = `Bearer ${e}`, a = await fetch(`${s}/graphql`, {
4725
- credentials: ls,
4726
- method: us,
4725
+ credentials: cs,
4726
+ method: ls,
4727
4727
  headers: {
4728
4728
  authorization: i,
4729
- "Content-Type": ds,
4730
- [Gn.CLIENT_ID]: `${r}`
4729
+ "Content-Type": us,
4730
+ [jn.CLIENT_ID]: `${r}`
4731
4731
  },
4732
4732
  body: JSON.stringify({
4733
4733
  query: t.schema,
@@ -4752,11 +4752,11 @@ const Ie = "Your session has expired. For your security, please log in again to
4752
4752
  }) => {
4753
4753
  try {
4754
4754
  const s = await fetch(`${n}/${e}`, {
4755
- credentials: ls,
4756
- method: us,
4755
+ credentials: cs,
4756
+ method: ls,
4757
4757
  headers: {
4758
- "Content-Type": ds,
4759
- [Gn.CLIENT_ID]: `${t}`
4758
+ "Content-Type": us,
4759
+ [jn.CLIENT_ID]: `${t}`
4760
4760
  },
4761
4761
  body: JSON.stringify(r)
4762
4762
  });
@@ -4770,21 +4770,21 @@ const Ie = "Your session has expired. For your security, please log in again to
4770
4770
  } catch (s) {
4771
4771
  return console.error(s), { status: ae, data: [] };
4772
4772
  }
4773
- }, zo = process.env.NODE_ENV === "production", Qo = !zo, fs = {
4773
+ }, Qo = process.env.NODE_ENV === "production", Yo = !Qo, ds = {
4774
4774
  isLoading: !0,
4775
4775
  isAuthenticated: !1,
4776
4776
  user: void 0,
4777
4777
  logoutReason: "",
4778
4778
  debug: !1,
4779
4779
  authenticationType: ""
4780
- }, Yo = (e) => {
4780
+ }, Xo = (e) => {
4781
4781
  try {
4782
- const t = Eo(e);
4782
+ const t = So(e);
4783
4783
  return t ? t[K.USER_ID_KEY] : "";
4784
4784
  } catch {
4785
4785
  return "";
4786
4786
  }
4787
- }, Xo = async ({
4787
+ }, Zo = async ({
4788
4788
  userId: e,
4789
4789
  clientId: t,
4790
4790
  domain: r,
@@ -4809,7 +4809,7 @@ const Ie = "Your session has expired. For your security, please log in again to
4809
4809
  status: ae
4810
4810
  };
4811
4811
  }
4812
- }, Zo = async ({
4812
+ }, ec = async ({
4813
4813
  username: e,
4814
4814
  password: t,
4815
4815
  clientId: r,
@@ -4854,7 +4854,7 @@ const Ie = "Your session has expired. For your security, please log in again to
4854
4854
  status: !1
4855
4855
  };
4856
4856
  }
4857
- }, ec = async ({
4857
+ }, tc = async ({
4858
4858
  nonce: e,
4859
4859
  clientId: t,
4860
4860
  code_challenge: r,
@@ -4884,7 +4884,7 @@ const Ie = "Your session has expired. For your security, please log in again to
4884
4884
  data: ""
4885
4885
  };
4886
4886
  }
4887
- }, tc = async ({
4887
+ }, rc = async ({
4888
4888
  clientId: e,
4889
4889
  userId: t,
4890
4890
  nonce: r,
@@ -4921,7 +4921,7 @@ const Ie = "Your session has expired. For your security, please log in again to
4921
4921
  };
4922
4922
  }
4923
4923
  };
4924
- class rc {
4924
+ class nc {
4925
4925
  constructor(t = null, r = null) {
4926
4926
  Ht(this, "refreshTokenPromise", null), Ht(this, "accessToken"), Ht(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
4927
4927
  }
@@ -4954,7 +4954,7 @@ class rc {
4954
4954
  }) {
4955
4955
  const a = await Qe(this.refreshToken);
4956
4956
  if (a && a.payload[K.USER_ID_KEY] !== "") {
4957
- const o = await tc({
4957
+ const o = await rc({
4958
4958
  endpoint: t,
4959
4959
  clientId: r,
4960
4960
  userId: n,
@@ -4977,8 +4977,8 @@ class rc {
4977
4977
  }
4978
4978
  }
4979
4979
  const Re = () => {
4980
- throw new Error(Jo);
4981
- }, hs = cn({
4980
+ throw new Error(zo);
4981
+ }, fs = on({
4982
4982
  isAuthenticated: !1,
4983
4983
  isLoading: !1,
4984
4984
  login: Re,
@@ -4989,18 +4989,18 @@ const Re = () => {
4989
4989
  loginWithPasskey: Re,
4990
4990
  logoutReason: "",
4991
4991
  authenticationType: ""
4992
- }), nc = () => ({
4993
- ...pr(hs)
4994
- }), sc = (e) => le(
4992
+ }), sc = () => ({
4993
+ ...pr(fs)
4994
+ }), ic = (e) => le(
4995
4995
  (...t) => {
4996
4996
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
4997
4997
  },
4998
4998
  [e]
4999
- ), ic = de.createContext({
5000
- state: fs,
4999
+ ), ac = de.createContext({
5000
+ state: ds,
5001
5001
  dispatch: () => {
5002
5002
  }
5003
- }), ac = (e, t) => t?.type === $e ? {
5003
+ }), oc = (e, t) => t?.type === $e ? {
5004
5004
  ...e,
5005
5005
  isLoading: t.payload.isLoading
5006
5006
  } : t?.type === ft ? {
@@ -5010,28 +5010,28 @@ const Re = () => {
5010
5010
  user: t.payload.user,
5011
5011
  authenticationType: t.payload.authenticationType,
5012
5012
  logoutReason: ""
5013
- } : t?.type === cs ? {
5013
+ } : t?.type === os ? {
5014
5014
  ...e,
5015
5015
  isLoading: !1,
5016
5016
  isAuthenticated: !1,
5017
5017
  user: void 0,
5018
5018
  authenticationType: "",
5019
5019
  logoutReason: t.payload.logoutReason
5020
- } : e, oc = ({ children: e }) => {
5021
- const t = nc();
5022
- return /* @__PURE__ */ y(rs.Provider, { value: t, children: e });
5023
- }, Zr = ({
5020
+ } : e, cc = ({ children: e }) => {
5021
+ const t = sc();
5022
+ return /* @__PURE__ */ y(ts.Provider, { value: t, children: e });
5023
+ }, Xr = ({
5024
5024
  children: e,
5025
5025
  sessionExpiration: t,
5026
5026
  clientId: r,
5027
5027
  domain: n = "",
5028
5028
  debug: s = !1,
5029
- endpoint: i = Qo ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
5029
+ endpoint: i = Yo ? "https://auth.gizmette.local.com:3003" : "https://mylogin.gizmette.com/auth"
5030
5030
  }) => {
5031
- const [a, o] = ln(ac, {
5032
- ...fs,
5031
+ const [a, o] = cn(oc, {
5032
+ ...ds,
5033
5033
  debug: s
5034
- }), c = sc(s), u = B(!1), [d, l, , f] = it({
5034
+ }), c = ic(s), u = B(!1), [d, l, , f] = it({
5035
5035
  key: `${at}::${r}::@@user@@`
5036
5036
  }), [h, m, , p] = it({
5037
5037
  key: `${at}::${r}::@@access@@`
@@ -5041,7 +5041,7 @@ const Re = () => {
5041
5041
  }
5042
5042
  ), [E, R, , _] = it({
5043
5043
  key: `${at}::${r}::@@nonce@@`
5044
- }), W = new rc(h, b), G = le(() => {
5044
+ }), W = new nc(h, b), G = le(() => {
5045
5045
  c("removeLocalStorage: removing local storage"), f(), p(), k(), _();
5046
5046
  }, [
5047
5047
  p,
@@ -5055,7 +5055,7 @@ const Re = () => {
5055
5055
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
5056
5056
  v
5057
5057
  ), o({
5058
- type: cs,
5058
+ type: os,
5059
5059
  payload: {
5060
5060
  logoutReason: v || Ie
5061
5061
  }
@@ -5065,10 +5065,10 @@ const Re = () => {
5065
5065
  ), S = le(
5066
5066
  async (v) => {
5067
5067
  c("invalidateAndLogout: invalidating and logging out");
5068
- const { user: C } = a, A = C?.userId || Yo(d);
5068
+ const { user: C } = a, A = C?.userId || Xo(d);
5069
5069
  A || c(
5070
5070
  "invalidateAndLogout: user cannot be identified, logging out without userId"
5071
- ), await Xo({
5071
+ ), await Zo({
5072
5072
  userId: A,
5073
5073
  clientId: r,
5074
5074
  domain: n,
@@ -5115,14 +5115,14 @@ const Re = () => {
5115
5115
  o({ type: $e, payload: { isLoading: !0 } }), G();
5116
5116
  const A = jt();
5117
5117
  R(A), c("login: Logging in with password");
5118
- const { code_verifier: he, code_challenge: me } = await _o(), Cr = await ec({
5118
+ const { code_verifier: he, code_challenge: me } = await Co(), _r = await tc({
5119
5119
  endpoint: i,
5120
5120
  nonce: A,
5121
5121
  clientId: r,
5122
5122
  code_challenge: me
5123
5123
  });
5124
- if (Cr.status) {
5125
- const Te = await Zo({
5124
+ if (_r.status) {
5125
+ const Te = await ec({
5126
5126
  endpoint: i,
5127
5127
  username: v,
5128
5128
  password: C,
@@ -5130,7 +5130,7 @@ const Re = () => {
5130
5130
  sessionExpiration: t,
5131
5131
  nonce: A,
5132
5132
  type: Ue.CODE,
5133
- code: Cr.data,
5133
+ code: _r.data,
5134
5134
  code_verifier: he,
5135
5135
  domain: n,
5136
5136
  ua: navigator.userAgent
@@ -5149,7 +5149,7 @@ const Re = () => {
5149
5149
  }
5150
5150
  return !1;
5151
5151
  }, P = async (v) => {
5152
- v?.preventDefault(), await S(Go);
5152
+ v?.preventDefault(), await S(qo);
5153
5153
  }, $ = async () => {
5154
5154
  const { isAuthenticated: v, user: C } = a;
5155
5155
  try {
@@ -5178,7 +5178,7 @@ const Re = () => {
5178
5178
  } catch {
5179
5179
  return c(
5180
5180
  "getAccessToken: exception occurred, invalidating and logging out"
5181
- ), await S(qo), "";
5181
+ ), await S(Jo), "";
5182
5182
  }
5183
5183
  }, z = () => a.isAuthenticated && d ? d : "", Y = async () => {
5184
5184
  const { user: v } = a;
@@ -5195,7 +5195,7 @@ const Re = () => {
5195
5195
  });
5196
5196
  if (C.status)
5197
5197
  try {
5198
- const A = await Mo({
5198
+ const A = await Lo({
5199
5199
  optionsJSON: C.data
5200
5200
  });
5201
5201
  return C = await Oe({
@@ -5242,7 +5242,7 @@ const Re = () => {
5242
5242
  });
5243
5243
  if (A.status)
5244
5244
  try {
5245
- const he = await Fo({
5245
+ const he = await Ko({
5246
5246
  optionsJSON: A.data
5247
5247
  });
5248
5248
  return A = await Oe({
@@ -5288,8 +5288,8 @@ const Re = () => {
5288
5288
  }
5289
5289
  return !1;
5290
5290
  };
5291
- return /* @__PURE__ */ y(ic.Provider, { value: { state: a, dispatch: o }, children: /* @__PURE__ */ y(
5292
- hs.Provider,
5291
+ return /* @__PURE__ */ y(ac.Provider, { value: { state: a, dispatch: o }, children: /* @__PURE__ */ y(
5292
+ fs.Provider,
5293
5293
  {
5294
5294
  value: {
5295
5295
  ...a,
@@ -5300,7 +5300,7 @@ const Re = () => {
5300
5300
  registeringForPasskey: Y,
5301
5301
  loginWithPasskey: we
5302
5302
  },
5303
- children: /* @__PURE__ */ y(oc, { children: e })
5303
+ children: /* @__PURE__ */ y(cc, { children: e })
5304
5304
  }
5305
5305
  ) });
5306
5306
  };
@@ -5317,30 +5317,30 @@ try {
5317
5317
  });
5318
5318
  } catch {
5319
5319
  }
5320
- const ms = () => {
5321
- const e = pr(rs);
5320
+ const hs = () => {
5321
+ const e = pr(ts);
5322
5322
  if (!e)
5323
5323
  throw new Error("useAuth must be used within an AuthHookProvider");
5324
5324
  return e;
5325
- }, Cu = "data", Nu = "I'm having trouble right now. Please try again later.", Pu = "action-search", xu = "action-sort", Du = "action-toggle-prompt", $u = "action-reset-prompt", ys = "sassy-saint-", Mu = "details", Lu = "search", Uu = "sort", Fu = "private-disclosure", Ku = "reasoning-disclosure", ps = "service-worker", en = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Hu = 10, Bu = 30, Vu = "av-prompt", Wu = "av-prompt-editable", ju = "size-5 sm:size-4", Gu = 30, qu = 10, Ju = 130, zu = 16, Qu = 76;
5325
+ }, Nu = "data", Pu = "I'm having trouble right now. Please try again later.", xu = "action-search", Du = "action-sort", $u = "action-toggle-prompt", Mu = "action-reset-prompt", ms = "sassy-saint-", Lu = "details", Uu = "search", Fu = "sort", Ku = "private-disclosure", Hu = "reasoning-disclosure", ys = "service-worker", Zr = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Bu = 10, Vu = 30, Wu = "av-prompt", ju = "av-prompt-editable", Gu = "size-5 sm:size-4", qu = 30, Ju = 10, zu = 130, Qu = 16, Yu = 76;
5326
5326
  let qt = null;
5327
5327
  function Sr() {
5328
5328
  return "serviceWorker" in navigator;
5329
5329
  }
5330
- function cc() {
5330
+ function lc() {
5331
5331
  const e = localStorage.getItem(
5332
- ys + ps
5332
+ ms + ys
5333
5333
  );
5334
5334
  return e === null ? !1 : e === "true";
5335
5335
  }
5336
- function lc(e) {
5336
+ function uc(e) {
5337
5337
  localStorage.setItem(
5338
- ys + ps,
5338
+ ms + ys,
5339
5339
  e.toString()
5340
5340
  );
5341
5341
  }
5342
- async function gs() {
5343
- if (!cc() || !fc())
5342
+ async function ps() {
5343
+ if (!lc() || !hc())
5344
5344
  return !1;
5345
5345
  if (!Sr())
5346
5346
  return console.warn("[SW] Service workers not supported"), !1;
@@ -5361,7 +5361,7 @@ async function gs() {
5361
5361
  return console.error("[SW] Service worker registration failed:", e), !1;
5362
5362
  }
5363
5363
  }
5364
- async function uc() {
5364
+ async function dc() {
5365
5365
  if (!Sr())
5366
5366
  return !1;
5367
5367
  try {
@@ -5371,19 +5371,19 @@ async function uc() {
5371
5371
  return console.error("[SW] Service worker un-registration failed:", e), !1;
5372
5372
  }
5373
5373
  }
5374
- async function Yu(e) {
5375
- if (lc(e), e)
5376
- await gs();
5374
+ async function Xu(e) {
5375
+ if (uc(e), e)
5376
+ await ps();
5377
5377
  else {
5378
5378
  try {
5379
- Sr() && await dc();
5379
+ Sr() && await fc();
5380
5380
  } catch (t) {
5381
5381
  console.warn("[SW] Failed to invalidate cache:", t);
5382
5382
  }
5383
- await uc(), window.location.reload();
5383
+ await dc(), window.location.reload();
5384
5384
  }
5385
5385
  }
5386
- async function dc() {
5386
+ async function fc() {
5387
5387
  try {
5388
5388
  if ("caches" in window) {
5389
5389
  const e = await caches.keys();
@@ -5406,22 +5406,22 @@ async function dc() {
5406
5406
  console.warn("[SW] Failed to invalidate cache:", e);
5407
5407
  }
5408
5408
  }
5409
- function fc() {
5409
+ function hc() {
5410
5410
  return !!(window.matchMedia && window.matchMedia("(display-mode: standalone)").matches);
5411
5411
  }
5412
- const tn = (e) => Number.isFinite(e) ? e : 0;
5413
- function hc(e) {
5412
+ const en = (e) => Number.isFinite(e) ? e : 0;
5413
+ function mc(e) {
5414
5414
  return {
5415
5415
  days: Math.trunc(e / 864e5),
5416
5416
  hours: Math.trunc(e / 36e5 % 24),
5417
5417
  minutes: Math.trunc(e / 6e4 % 60),
5418
5418
  seconds: Math.trunc(e / 1e3 % 60),
5419
5419
  milliseconds: Math.trunc(e % 1e3),
5420
- microseconds: Math.trunc(tn(e * 1e3) % 1e3),
5421
- nanoseconds: Math.trunc(tn(e * 1e6) % 1e3)
5420
+ microseconds: Math.trunc(en(e * 1e3) % 1e3),
5421
+ nanoseconds: Math.trunc(en(e * 1e6) % 1e3)
5422
5422
  };
5423
5423
  }
5424
- function mc(e) {
5424
+ function yc(e) {
5425
5425
  return {
5426
5426
  days: e / 86400000n,
5427
5427
  hours: e / 3600000n % 24n,
@@ -5432,20 +5432,20 @@ function mc(e) {
5432
5432
  nanoseconds: 0n
5433
5433
  };
5434
5434
  }
5435
- function yc(e) {
5435
+ function pc(e) {
5436
5436
  switch (typeof e) {
5437
5437
  case "number": {
5438
5438
  if (Number.isFinite(e))
5439
- return hc(e);
5439
+ return mc(e);
5440
5440
  break;
5441
5441
  }
5442
5442
  case "bigint":
5443
- return mc(e);
5443
+ return yc(e);
5444
5444
  }
5445
5445
  throw new TypeError("Expected a finite number or bigint");
5446
5446
  }
5447
- const pc = (e) => e === 0 || e === 0n, gc = (e, t) => t === 1 || t === 1n ? e : `${e}s`, bc = 1e-7, wc = 24n * 60n * 60n * 1000n;
5448
- function vc(e, t) {
5447
+ const gc = (e) => e === 0 || e === 0n, bc = (e, t) => t === 1 || t === 1n ? e : `${e}s`, wc = 1e-7, vc = 24n * 60n * 60n * 1000n;
5448
+ function Ec(e, t) {
5449
5449
  const r = typeof e == "bigint";
5450
5450
  if (!r && !Number.isFinite(e))
5451
5451
  throw new TypeError("Expected a finite number or bigint");
@@ -5454,18 +5454,18 @@ function vc(e, t) {
5454
5454
  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);
5455
5455
  let s = [];
5456
5456
  const i = (d, l) => {
5457
- const f = Math.floor(d * 10 ** l + bc);
5457
+ const f = Math.floor(d * 10 ** l + wc);
5458
5458
  return (Math.round(f) / 10 ** l).toFixed(l);
5459
5459
  }, a = (d, l, f, h) => {
5460
- if (!((s.length === 0 || !t.colonNotation) && pc(d) && !(t.colonNotation && f === "m"))) {
5460
+ if (!((s.length === 0 || !t.colonNotation) && gc(d) && !(t.colonNotation && f === "m"))) {
5461
5461
  if (h ??= String(d), t.colonNotation) {
5462
5462
  const m = h.includes(".") ? h.split(".")[0].length : h.length, p = s.length > 0 ? 2 : 1;
5463
5463
  h = "0".repeat(Math.max(0, p - m)) + h;
5464
5464
  } else
5465
- h += t.verbose ? " " + gc(l, d) : f;
5465
+ h += t.verbose ? " " + bc(l, d) : f;
5466
5466
  s.push(h);
5467
5467
  }
5468
- }, o = yc(e), c = BigInt(o.days);
5468
+ }, o = pc(e), c = BigInt(o.days);
5469
5469
  if (t.hideYearAndDays ? a(BigInt(c) * 24n + BigInt(o.hours), "hour", "h") : (t.hideYear ? a(c, "day", "d") : (a(c / 365n, "year", "y"), a(c % 365n, "day", "d")), a(Number(o.hours), "hour", "h")), a(Number(o.minutes), "minute", "m"), !t.hideSeconds)
5470
5470
  if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
5471
5471
  const d = Number(o.seconds), l = Number(o.milliseconds), f = Number(o.microseconds), h = Number(o.nanoseconds);
@@ -5481,7 +5481,7 @@ function vc(e, t) {
5481
5481
  );
5482
5482
  }
5483
5483
  } else {
5484
- const d = (r ? Number(e % wc) : e) / 1e3 % 60, l = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, f = i(d, l), h = t.keepDecimalsOnWholeSeconds ? f : f.replace(/\.0+$/, "");
5484
+ const d = (r ? Number(e % vc) : e) / 1e3 % 60, l = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, f = i(d, l), h = t.keepDecimalsOnWholeSeconds ? f : f.replace(/\.0+$/, "");
5485
5485
  a(Number.parseFloat(h), "second", "s", h);
5486
5486
  }
5487
5487
  if (s.length === 0)
@@ -5489,7 +5489,7 @@ function vc(e, t) {
5489
5489
  const u = t.colonNotation ? ":" : " ";
5490
5490
  return typeof t.unitCount == "number" && (s = s.slice(0, Math.max(t.unitCount, 1))), n + s.join(u);
5491
5491
  }
5492
- const bs = process.env.NODE_ENV === "production", Tr = !bs, ws = Tr ? "gizmette.local.com" : "gizmette.com", Ar = (e, t) => {
5492
+ const gs = process.env.NODE_ENV === "production", Tr = !gs, bs = Tr ? "gizmette.local.com" : "gizmette.com", Ar = (e, t) => {
5493
5493
  const r = e < 0 ? t ? "W" : "S" : t ? "E" : "N", n = 0 | Math.abs(e), s = 0 | Math.abs(e) * 60 % 60, i = (0 | Math.abs(e) * 60 % 1 * 6e3) / 100;
5494
5494
  return {
5495
5495
  dir: r,
@@ -5497,17 +5497,17 @@ const bs = process.env.NODE_ENV === "production", Tr = !bs, ws = Tr ? "gizmette.
5497
5497
  min: s,
5498
5498
  sec: i
5499
5499
  };
5500
- }, Ec = (e) => {
5500
+ }, Sc = (e) => {
5501
5501
  if (!e && e !== 0)
5502
5502
  return "N/A";
5503
5503
  const t = Ar(e, !1);
5504
5504
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5505
- }, Sc = (e) => {
5505
+ }, Tc = (e) => {
5506
5506
  if (!e && e !== 0)
5507
5507
  return "N/A";
5508
5508
  const t = Ar(e, !0);
5509
5509
  return `${t.deg}° ${t.min}' ${t.sec}" ${t.dir}`;
5510
- }, Tc = async () => {
5510
+ }, Ac = async () => {
5511
5511
  const e = {
5512
5512
  /**
5513
5513
  * A boolean value that indicates the application would
@@ -5555,18 +5555,18 @@ const bs = process.env.NODE_ENV === "production", Tr = !bs, ws = Tr ? "gizmette.
5555
5555
  e
5556
5556
  );
5557
5557
  });
5558
- }, Ac = (e) => window.btoa(
5558
+ }, Ic = (e) => window.btoa(
5559
5559
  encodeURIComponent(e).replace(
5560
5560
  /%([0-9A-F]{2})/g,
5561
5561
  function(r, n) {
5562
5562
  return String.fromCharCode(+`0x${n}`);
5563
5563
  }
5564
5564
  )
5565
- ), Ic = (e) => decodeURIComponent(
5565
+ ), kc = (e) => decodeURIComponent(
5566
5566
  window.atob(e).split("").map(function(t) {
5567
5567
  return `%${`00${t.charCodeAt(0).toString(16)}`.slice(-2)}`;
5568
5568
  }).join("")
5569
- ), kc = (e, t, r) => t ? Object.keys(t).map((n) => /* @__PURE__ */ y("dl", { className: "my-0", children: /* @__PURE__ */ J("div", { className: "flex items-center justify-between", children: [
5569
+ ), Oc = (e, t, r) => t ? Object.keys(t).map((n) => /* @__PURE__ */ y("dl", { className: "my-0", children: /* @__PURE__ */ J("div", { className: "flex items-center justify-between", children: [
5570
5570
  /* @__PURE__ */ y(
5571
5571
  "dt",
5572
5572
  {
@@ -5588,7 +5588,7 @@ const bs = process.env.NODE_ENV === "production", Tr = !bs, ws = Tr ? "gizmette.
5588
5588
  }
5589
5589
  )
5590
5590
  ] }) }, `${e}-${n}`)) : null;
5591
- function Oc({
5591
+ function Rc({
5592
5592
  data: e,
5593
5593
  formatter: t = (r) => r
5594
5594
  }) {
@@ -5600,15 +5600,15 @@ function Oc({
5600
5600
  );
5601
5601
  return t(n ? n / r.length : 0);
5602
5602
  }
5603
- const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, _c = new Intl.NumberFormat("en", {
5603
+ const _c = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, Cc = new Intl.NumberFormat("en", {
5604
5604
  style: "decimal",
5605
5605
  signDisplay: "never",
5606
5606
  minimumFractionDigits: 0,
5607
5607
  maximumFractionDigits: 0
5608
- }), Cc = (e) => e > 0 ? vc(e, {
5608
+ }), Nc = (e) => e > 0 ? Ec(e, {
5609
5609
  secondsDecimalDigits: 2,
5610
5610
  unitCount: 2
5611
- }) : "N/A", vs = ({
5611
+ }) : "N/A", ws = ({
5612
5612
  isAuthenticated: e,
5613
5613
  extraClass: t
5614
5614
  }) => g(
@@ -5617,20 +5617,20 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5617
5617
  "flex-1 overflow-y-auto",
5618
5618
  e ? "pt-0" : "pt-10",
5619
5619
  t
5620
- ), Es = ({
5620
+ ), vs = ({
5621
5621
  extraClass: e
5622
- } = {}) => g("px-2 sm:px-0", e), Nc = (e, t) => t === 1 ? e : `${e}s`, Pc = (e, t) => {
5622
+ } = {}) => g("px-2 sm:px-0", e), Pc = (e, t) => t === 1 ? e : `${e}s`, xc = (e, t) => {
5623
5623
  let r;
5624
5624
  return (...n) => {
5625
5625
  window.clearTimeout(r), r = window.setTimeout(() => e(...n), t);
5626
5626
  };
5627
- }, Ss = () => !!window?.__VERSINI_CALLISTO_ELECTRON__, Ir = () => window.innerWidth < 403, xc = () => {
5628
- const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ir(), n = navigator.maxTouchPoints > 1;
5627
+ }, Es = () => !!window?.__VERSINI_CALLISTO_ELECTRON__, Ss = () => !!window?.__VERSINI_CALLISTO_TAURI__, Ts = () => window.innerWidth < 403, Dc = () => {
5628
+ const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = Ts(), n = navigator.maxTouchPoints > 1;
5629
5629
  return e && t && r && n;
5630
- }, Dc = (e) => {
5630
+ }, $c = (e) => {
5631
5631
  const t = e.replace(/([A-Z])/g, " $1");
5632
5632
  return t.charAt(0).toUpperCase() + t.slice(1);
5633
- }, $c = ({
5633
+ }, Mc = ({
5634
5634
  autoClose: e = 3e3,
5635
5635
  containerId: t,
5636
5636
  position: r = "top-center",
@@ -5654,7 +5654,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5654
5654
  theme: c,
5655
5655
  transition: u,
5656
5656
  icon: d
5657
- }), Xu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: ws, convertCamelCaseToReadable: Dc, convertDDToDMS: Ar, convertLatitudeToDMS: Ec, convertLongitudeToDMS: Sc, debounce: Pc, durationFormatter: Cc, extractAverage: Oc, getCurrentGeoLocation: Tc, getMainPaddingClass: Es, getMessageContaintWrapperClass: vs, isDev: Tr, isElectron: Ss, isLastMessageFromRole: Rc, isProbablyMobile: Ir, isProbablyiPhone: xc, isProd: bs, numberFormatter: _c, obfuscate: Ac, pluralize: Nc, renderDataAsList: kc, toastOptions: $c, unObfuscate: Ic }, Symbol.toStringTag, { value: "Module" })), rn = "av-button", xt = "icon", kr = "button", hr = "link", Mc = ({
5657
+ }), Zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, DOMAIN: bs, convertCamelCaseToReadable: $c, convertDDToDMS: Ar, convertLatitudeToDMS: Sc, convertLongitudeToDMS: Tc, debounce: xc, durationFormatter: Nc, extractAverage: Rc, getCurrentGeoLocation: Ac, getMainPaddingClass: vs, getMessageContaintWrapperClass: ws, isDev: Tr, isElectron: Es, isLastMessageFromRole: _c, isProbablyMobile: Ts, isProbablyiPhone: Dc, isProd: gs, isTauri: Ss, numberFormatter: Cc, obfuscate: Ic, pluralize: Pc, renderDataAsList: Oc, toastOptions: Mc, unObfuscate: kc }, Symbol.toStringTag, { value: "Module" })), tn = "av-button", xt = "icon", Ir = "button", hr = "link", Lc = ({
5658
5658
  type: e,
5659
5659
  size: t,
5660
5660
  labelRight: r,
@@ -5664,7 +5664,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5664
5664
  }) => {
5665
5665
  const a = "max-h-8 py-0 px-2", o = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
5666
5666
  switch (e) {
5667
- case kr:
5667
+ case Ir:
5668
5668
  case hr:
5669
5669
  return g({
5670
5670
  [a]: t === "small",
@@ -5690,7 +5690,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5690
5690
  "h-12": t === "large" && i && (r || n)
5691
5691
  });
5692
5692
  }
5693
- }, Lc = ({
5693
+ }, Uc = ({
5694
5694
  type: e,
5695
5695
  size: t,
5696
5696
  labelRight: r,
@@ -5698,7 +5698,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5698
5698
  }) => {
5699
5699
  const s = "text-sm font-medium", i = "text-base font-medium", a = "text-lg font-medium";
5700
5700
  switch (e) {
5701
- case kr:
5701
+ case Ir:
5702
5702
  case hr:
5703
5703
  return g({
5704
5704
  "text-center": e === hr,
@@ -5713,7 +5713,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5713
5713
  [a]: t === "large" && (r || n)
5714
5714
  });
5715
5715
  }
5716
- }, Uc = ({
5716
+ }, Fc = ({
5717
5717
  mode: e,
5718
5718
  noBackground: t,
5719
5719
  truncate: r,
@@ -5749,7 +5749,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5749
5749
  return g("not-prose text-copy-lighter", {
5750
5750
  truncate: r
5751
5751
  });
5752
- }, Fc = ({
5752
+ }, Kc = ({
5753
5753
  mode: e,
5754
5754
  noBackground: t,
5755
5755
  variant: r
@@ -5779,13 +5779,13 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5779
5779
  if (r === "selected")
5780
5780
  return "bg-action-selected-dark";
5781
5781
  }
5782
- }, Kc = ({
5782
+ }, Hc = ({
5783
5783
  radius: e
5784
5784
  }) => g({
5785
5785
  "rounded-full": e === "large",
5786
5786
  "rounded-md": e === "medium",
5787
5787
  "rounded-xs": e === "small"
5788
- }), Hc = ({
5788
+ }), Bc = ({
5789
5789
  mode: e,
5790
5790
  disabled: t,
5791
5791
  variant: r
@@ -5815,7 +5815,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5815
5815
  });
5816
5816
  if (r === "selected")
5817
5817
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
5818
- }, Bc = ({
5818
+ }, Vc = ({
5819
5819
  mode: e,
5820
5820
  disabled: t,
5821
5821
  variant: r
@@ -5845,7 +5845,7 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5845
5845
  });
5846
5846
  if (r === "selected")
5847
5847
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
5848
- }, Vc = ({
5848
+ }, Wc = ({
5849
5849
  mode: e,
5850
5850
  noBorder: t,
5851
5851
  variant: r
@@ -5875,14 +5875,14 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5875
5875
  });
5876
5876
  if (r === "selected")
5877
5877
  return "border border-border-selected-dark";
5878
- }, Wc = ({
5878
+ }, jc = ({
5879
5879
  focusMode: e
5880
5880
  }) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
5881
5881
  "focus:outline-focus-dark": e === "dark",
5882
5882
  "focus:outline-focus-light": e === "light",
5883
5883
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
5884
5884
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
5885
- }), jc = ({
5885
+ }), Gc = ({
5886
5886
  mode: e,
5887
5887
  raw: t,
5888
5888
  iconClassName: r
@@ -5894,11 +5894,11 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5894
5894
  "dark:text-copy-accent-dark": e === "system"
5895
5895
  },
5896
5896
  r
5897
- ), Gc = ({
5897
+ ), qc = ({
5898
5898
  animated: e
5899
5899
  }) => g({
5900
5900
  "transition-opacity duration-300 ease-in-out": e
5901
- }), Ts = ({
5901
+ }), As = ({
5902
5902
  type: e,
5903
5903
  className: t,
5904
5904
  raw: r,
@@ -5916,17 +5916,17 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5916
5916
  align: m,
5917
5917
  radius: p,
5918
5918
  animated: b
5919
- }) => (f || (f = "primary"), r ? g(rn, t) : g(
5920
- rn,
5921
- Uc({
5919
+ }) => (f || (f = "primary"), r ? g(tn, t) : g(
5920
+ tn,
5921
+ Fc({
5922
5922
  mode: n,
5923
5923
  variant: f,
5924
5924
  noBackground: l,
5925
5925
  truncate: h
5926
5926
  }),
5927
- Fc({ mode: n, noBackground: l, variant: f }),
5928
- Kc({ radius: p }),
5929
- Mc({
5927
+ Kc({ mode: n, noBackground: l, variant: f }),
5928
+ Hc({ radius: p }),
5929
+ Lc({
5930
5930
  type: e,
5931
5931
  size: o,
5932
5932
  labelRight: u,
@@ -5934,11 +5934,11 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5934
5934
  align: m,
5935
5935
  animated: b
5936
5936
  }),
5937
- Lc({ type: e, size: o, labelRight: u, labelLeft: d }),
5938
- Vc({ mode: n, variant: f, noBorder: c }),
5939
- Wc({ focusMode: s }),
5940
- Hc({ mode: n, variant: f, disabled: i }),
5937
+ Uc({ type: e, size: o, labelRight: u, labelLeft: d }),
5938
+ Wc({ mode: n, variant: f, noBorder: c }),
5939
+ jc({ focusMode: s }),
5941
5940
  Bc({ mode: n, variant: f, disabled: i }),
5941
+ Vc({ mode: n, variant: f, disabled: i }),
5942
5942
  {
5943
5943
  "w-full": a,
5944
5944
  "disabled:cursor-not-allowed disabled:opacity-50": i
@@ -5947,24 +5947,24 @@ const Rc = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
5947
5947
  "transition-[width] duration-300 ease-in": e === xt && b
5948
5948
  }),
5949
5949
  t
5950
- )), qc = (e, t, r) => {
5950
+ )), Jc = (e, t, r) => {
5951
5951
  var n;
5952
5952
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((n = e?.currentTarget) == null ? void 0 : n.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
5953
- }, Or = de.forwardRef((e, t) => {
5953
+ }, kr = de.forwardRef((e, t) => {
5954
5954
  const { onClick: r, noInternalClick: n = !1, ...s } = e;
5955
5955
  return /* @__PURE__ */ y(
5956
5956
  "button",
5957
5957
  {
5958
5958
  ref: t,
5959
5959
  onClick: (i) => {
5960
- qc(i, n, r);
5960
+ Jc(i, n, r);
5961
5961
  },
5962
5962
  ...s
5963
5963
  }
5964
5964
  );
5965
5965
  });
5966
- Or.displayName = "BaseButton";
5967
- const As = de.forwardRef(
5966
+ kr.displayName = "BaseButton";
5967
+ const Is = de.forwardRef(
5968
5968
  ({
5969
5969
  children: e,
5970
5970
  disabled: t = !1,
@@ -5980,8 +5980,8 @@ const As = de.forwardRef(
5980
5980
  radius: l = "large",
5981
5981
  ...f
5982
5982
  }, h) => {
5983
- const m = Ts({
5984
- type: kr,
5983
+ const m = As({
5984
+ type: Ir,
5985
5985
  mode: r,
5986
5986
  focusMode: n,
5987
5987
  fullWidth: s,
@@ -5995,7 +5995,7 @@ const As = de.forwardRef(
5995
5995
  radius: l
5996
5996
  });
5997
5997
  return /* @__PURE__ */ y(
5998
- Or,
5998
+ kr,
5999
5999
  {
6000
6000
  ref: h,
6001
6001
  className: m,
@@ -6006,14 +6006,14 @@ const As = de.forwardRef(
6006
6006
  );
6007
6007
  }
6008
6008
  );
6009
- As.displayName = "Button";
6010
- function Jc() {
6009
+ Is.displayName = "Button";
6010
+ function zc() {
6011
6011
  const e = B(!1);
6012
6012
  return X(() => (e.current = !0, () => {
6013
6013
  e.current = !1;
6014
6014
  }), []), le(() => e.current, []);
6015
6015
  }
6016
- function zc(e) {
6016
+ function Qc(e) {
6017
6017
  return It(() => e.every((t) => t == null) ? () => {
6018
6018
  } : (t) => {
6019
6019
  e.forEach((r) => {
@@ -6021,7 +6021,7 @@ function zc(e) {
6021
6021
  });
6022
6022
  }, [...e]);
6023
6023
  }
6024
- const Qc = {
6024
+ const Yc = {
6025
6025
  x: 0,
6026
6026
  y: 0,
6027
6027
  width: 0,
@@ -6032,7 +6032,7 @@ const Qc = {
6032
6032
  right: 0
6033
6033
  };
6034
6034
  function Jt(e) {
6035
- const t = Jc(), r = B(0), n = B(null), [s, i] = ce(Qc), a = It(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6035
+ const t = zc(), r = B(0), n = B(null), [s, i] = ce(Yc), a = It(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6036
6036
  const c = o[0];
6037
6037
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6038
6038
  n.current && t() && i(c.contentRect);
@@ -6049,14 +6049,14 @@ const ct = {
6049
6049
  // w-8
6050
6050
  large: 48
6051
6051
  // w-12
6052
- }, Yc = {
6052
+ }, Xc = {
6053
6053
  small: 8 * 2,
6054
6054
  // px-2 x 2
6055
6055
  medium: 12 * 2,
6056
6056
  // px-3 x 2
6057
6057
  large: 16 * 2
6058
6058
  // px-4 x 2
6059
- }, Xc = 2, Zc = 300, Tt = de.forwardRef(
6059
+ }, Zc = 2, el = 300, Tt = de.forwardRef(
6060
6060
  ({
6061
6061
  children: e,
6062
6062
  disabled: t = !1,
@@ -6080,7 +6080,7 @@ const ct = {
6080
6080
  animated: E = !1,
6081
6081
  ...R
6082
6082
  }, _) => {
6083
- const W = Ts({
6083
+ const W = As({
6084
6084
  type: xt,
6085
6085
  mode: r,
6086
6086
  focusMode: n,
@@ -6097,15 +6097,15 @@ const ct = {
6097
6097
  radius: b,
6098
6098
  variant: w,
6099
6099
  animated: E
6100
- }), G = jc({ mode: r, raw: o, iconClassName: k }), I = Gc({ animated: E }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [T, P] = Jt(), [$, z] = Jt(), [Y, we] = Jt(), v = B(0), C = B(null), A = B(null), he = zc([_, C]);
6100
+ }), G = Gc({ mode: r, raw: o, iconClassName: k }), I = qc({ animated: E }), S = "flex items-center justify-center relative w-full h-full overflow-hidden", [T, P] = Jt(), [$, z] = Jt(), [Y, we] = Jt(), v = B(0), C = B(null), A = B(null), he = Qc([_, C]);
6101
6101
  return mt(() => {
6102
- Y && Y.current && E && (v.current = we.width + Yc[l] + (c ? 0 : Xc), C.current && !C.current.style.width && (C.current.style.width = `${ct[l]}px`));
6102
+ Y && Y.current && E && (v.current = we.width + Xc[l] + (c ? 0 : Zc), C.current && !C.current.style.width && (C.current.style.width = `${ct[l]}px`));
6103
6103
  }, [we, Y, l, c, E]), mt(() => {
6104
6104
  if (C && C.current && E) {
6105
6105
  let me = ct[l];
6106
6106
  f && T && P.width > 0 ? me = P.width + v.current : h && $ && z.width > 0 && (me = z.width + v.current), A.current && clearTimeout(A.current), me !== parseInt(C.current.style.width || "0", 10) && (T.current && (T.current.style.opacity = "0"), $.current && ($.current.style.opacity = "0"), C.current.style.width = `${me}px`, me > ct[l] && (A.current = setTimeout(() => {
6107
6107
  T.current && f && (T.current.style.opacity = "1"), $.current && h && ($.current.style.opacity = "1"), A.current = null;
6108
- }, Zc * 0.8))), me === ct[l] && (T.current && (T.current.style.opacity = "0"), $.current && ($.current.style.opacity = "0"));
6108
+ }, el * 0.8))), me === ct[l] && (T.current && (T.current.style.opacity = "0"), $.current && ($.current.style.opacity = "0"));
6109
6109
  }
6110
6110
  }, [
6111
6111
  P,
@@ -6119,7 +6119,7 @@ const ct = {
6119
6119
  ]), X(() => () => {
6120
6120
  A.current && clearTimeout(A.current);
6121
6121
  }, []), /* @__PURE__ */ y(
6122
- Or,
6122
+ kr,
6123
6123
  {
6124
6124
  ref: he,
6125
6125
  className: W,
@@ -6129,7 +6129,7 @@ const ct = {
6129
6129
  ...R,
6130
6130
  children: /* @__PURE__ */ J("div", { className: S, children: [
6131
6131
  /* @__PURE__ */ y(
6132
- nn,
6132
+ rn,
6133
6133
  {
6134
6134
  label: h,
6135
6135
  labelRef: $,
@@ -6140,7 +6140,7 @@ const ct = {
6140
6140
  ),
6141
6141
  /* @__PURE__ */ y("span", { ref: Y, className: G, children: e }),
6142
6142
  /* @__PURE__ */ y(
6143
- nn,
6143
+ rn,
6144
6144
  {
6145
6145
  label: f,
6146
6146
  labelRef: T,
@@ -6153,7 +6153,7 @@ const ct = {
6153
6153
  }
6154
6154
  );
6155
6155
  }
6156
- ), nn = ({
6156
+ ), rn = ({
6157
6157
  labelRef: e,
6158
6158
  labelClass: t,
6159
6159
  label: r,
@@ -6182,7 +6182,7 @@ try {
6182
6182
  });
6183
6183
  } catch {
6184
6184
  }
6185
- const el = de.forwardRef(
6185
+ const tl = de.forwardRef(
6186
6186
  ({
6187
6187
  children: e,
6188
6188
  mode: t = "system",
@@ -6220,13 +6220,13 @@ const el = de.forwardRef(
6220
6220
  ) });
6221
6221
  }
6222
6222
  );
6223
- el.displayName = "ButtonSort";
6223
+ tl.displayName = "ButtonSort";
6224
6224
  const ht = "av-card";
6225
- function tl(e) {
6226
- const t = un();
6225
+ function rl(e) {
6226
+ const t = ln();
6227
6227
  return `${e}${t}`;
6228
6228
  }
6229
- const rl = ({
6229
+ const nl = ({
6230
6230
  className: e,
6231
6231
  headerClassName: t,
6232
6232
  bodyClassName: r,
@@ -6266,7 +6266,7 @@ const rl = ({
6266
6266
  footer: d
6267
6267
  };
6268
6268
  };
6269
- function nl({
6269
+ function sl({
6270
6270
  id: e,
6271
6271
  content: t,
6272
6272
  userAriaLabelledby: r,
@@ -6274,7 +6274,7 @@ function nl({
6274
6274
  }) {
6275
6275
  return typeof t == "string" ? /* @__PURE__ */ y("h2", { id: e, className: n, children: t }) : r ? /* @__PURE__ */ y("div", { className: n, children: t }) : t ? /* @__PURE__ */ y("div", { className: n, id: e, children: t }) : null;
6276
6276
  }
6277
- const sl = ({
6277
+ const il = ({
6278
6278
  header: e,
6279
6279
  headerClassName: t,
6280
6280
  footer: r,
@@ -6289,7 +6289,7 @@ const sl = ({
6289
6289
  ...l
6290
6290
  }) => {
6291
6291
  let f = null, h = null;
6292
- const m = typeof e == "string", p = tl(ht), b = rl({
6292
+ const m = typeof e == "string", p = rl(ht), b = nl({
6293
6293
  className: i,
6294
6294
  headerClassName: t,
6295
6295
  bodyClassName: a,
@@ -6308,7 +6308,7 @@ const sl = ({
6308
6308
  ...l,
6309
6309
  children: [
6310
6310
  /* @__PURE__ */ y(
6311
- nl,
6311
+ sl,
6312
6312
  {
6313
6313
  ...f && { id: f },
6314
6314
  content: e,
@@ -6378,7 +6378,7 @@ try {
6378
6378
  });
6379
6379
  } catch {
6380
6380
  }
6381
- const il = ({
6381
+ const al = ({
6382
6382
  className: e,
6383
6383
  viewBox: t,
6384
6384
  title: r,
@@ -6395,7 +6395,7 @@ const il = ({
6395
6395
  ...s,
6396
6396
  children: /* @__PURE__ */ y("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" })
6397
6397
  }
6398
- ), al = ({
6398
+ ), ol = ({
6399
6399
  className: e,
6400
6400
  viewBox: t,
6401
6401
  title: r,
@@ -6421,7 +6421,7 @@ const il = ({
6421
6421
  /* @__PURE__ */ y("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" })
6422
6422
  ]
6423
6423
  }
6424
- ), ol = ({
6424
+ ), cl = ({
6425
6425
  className: e,
6426
6426
  viewBox: t,
6427
6427
  title: r,
@@ -6457,7 +6457,7 @@ const il = ({
6457
6457
  ]
6458
6458
  }
6459
6459
  );
6460
- }, cl = ({
6460
+ }, ll = ({
6461
6461
  className: e,
6462
6462
  viewBox: t,
6463
6463
  title: r,
@@ -6497,7 +6497,7 @@ try {
6497
6497
  });
6498
6498
  } catch {
6499
6499
  }
6500
- const ll = "av-main", ul = ({
6500
+ const ul = "av-main", dl = ({
6501
6501
  children: e,
6502
6502
  className: t,
6503
6503
  raw: r = !1,
@@ -6506,7 +6506,7 @@ const ll = "av-main", ul = ({
6506
6506
  ...i
6507
6507
  }) => {
6508
6508
  const a = g(
6509
- ll,
6509
+ ul,
6510
6510
  {
6511
6511
  "mt-2 sm:mt-3": !r && !n,
6512
6512
  "p-2": !r && !s,
@@ -6529,10 +6529,10 @@ try {
6529
6529
  });
6530
6530
  } catch {
6531
6531
  }
6532
- const dl = "av-flexgrid", lt = "av-flexgrid-item", At = 0.25, mr = de.createContext({
6532
+ const fl = "av-flexgrid", lt = "av-flexgrid-item", At = 0.25, mr = de.createContext({
6533
6533
  columnGap: 0,
6534
6534
  rowGap: 0
6535
- }), fl = ({
6535
+ }), hl = ({
6536
6536
  children: e,
6537
6537
  className: t,
6538
6538
  columnGap: r = 1,
@@ -6558,7 +6558,7 @@ const dl = "av-flexgrid", lt = "av-flexgrid-item", At = 0.25, mr = de.createCont
6558
6558
  marginLeft: r * -1 * At + "rem",
6559
6559
  marginTop: n * -1 * At + "rem"
6560
6560
  }, l = g(
6561
- dl,
6561
+ fl,
6562
6562
  "box-border flex flex-wrap"
6563
6563
  ), f = { columnGap: r, rowGap: n };
6564
6564
  return t ? /* @__PURE__ */ y("div", { className: t, children: /* @__PURE__ */ y("div", { className: l, style: d, ...u, children: /* @__PURE__ */ y(mr.Provider, { value: f, children: e }) }) }) : /* @__PURE__ */ y("div", { className: l, style: d, ...u, children: /* @__PURE__ */ y(mr.Provider, { value: f, children: e }) });
@@ -6635,7 +6635,7 @@ const dl = "av-flexgrid", lt = "av-flexgrid-item", At = 0.25, mr = de.createCont
6635
6635
  "lg:basis-full": e === 12 && t === "lg",
6636
6636
  "xl:basis-full": e === 12 && t === "xl",
6637
6637
  "2xl:basis-full": e === 12 && t === "2xl"
6638
- }), hl = ({
6638
+ }), ml = ({
6639
6639
  className: e,
6640
6640
  span: t
6641
6641
  }) => {
@@ -6667,7 +6667,7 @@ const dl = "av-flexgrid", lt = "av-flexgrid-item", At = 0.25, mr = de.createCont
6667
6667
  const { columnGap: s, rowGap: i } = pr(mr), a = {
6668
6668
  paddingLeft: s * At + "rem",
6669
6669
  paddingTop: i * At + "rem"
6670
- }, o = hl({
6670
+ }, o = ml({
6671
6671
  className: t,
6672
6672
  span: r
6673
6673
  });
@@ -6686,14 +6686,14 @@ try {
6686
6686
  });
6687
6687
  } catch {
6688
6688
  }
6689
- const Is = "av-text-input", ml = "av-text-input-wrapper", Qt = "av-text-input-helper-text";
6690
- function yl() {
6689
+ const ks = "av-text-input", yl = "av-text-input-wrapper", Qt = "av-text-input-helper-text";
6690
+ function pl() {
6691
6691
  const e = B(!1);
6692
6692
  return X(() => (e.current = !0, () => {
6693
6693
  e.current = !1;
6694
6694
  }), []), le(() => e.current, []);
6695
6695
  }
6696
- const pl = {
6696
+ const gl = {
6697
6697
  x: 0,
6698
6698
  y: 0,
6699
6699
  width: 0,
@@ -6703,8 +6703,8 @@ const pl = {
6703
6703
  bottom: 0,
6704
6704
  right: 0
6705
6705
  };
6706
- function gl(e) {
6707
- const t = yl(), r = B(0), n = B(null), [s, i] = ce(pl), a = It(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6706
+ function bl(e) {
6707
+ const t = pl(), r = B(0), n = B(null), [s, i] = ce(gl), a = It(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((o) => {
6708
6708
  const c = o[0];
6709
6709
  c && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6710
6710
  n.current && t() && i(c.contentRect);
@@ -6714,8 +6714,8 @@ function gl(e) {
6714
6714
  a?.disconnect(), r.current && cancelAnimationFrame(r.current);
6715
6715
  }), [a, e]), [n, s];
6716
6716
  }
6717
- function bl(e) {
6718
- const t = un();
6717
+ function wl(e) {
6718
+ const t = ln();
6719
6719
  if (!e)
6720
6720
  return t;
6721
6721
  if (typeof e == "number" || typeof e == "string")
@@ -6725,7 +6725,7 @@ function bl(e) {
6725
6725
  return typeof r == "number" || typeof r == "string" ? `${n}${r}` : `${n}${t}`;
6726
6726
  }
6727
6727
  }
6728
- const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6728
+ const Os = "SET_ANNOUNCEMENT", Rs = "CLEAR_ANNOUNCEMENT", vl = {
6729
6729
  alert: null,
6730
6730
  alertdialog: null,
6731
6731
  log: "polite",
@@ -6733,14 +6733,14 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6733
6733
  progressbar: null,
6734
6734
  status: "polite",
6735
6735
  timer: "assertive"
6736
- }, vl = (e, t) => {
6736
+ }, El = (e, t) => {
6737
6737
  switch (t?.type) {
6738
- case ks:
6738
+ case Os:
6739
6739
  return {
6740
6740
  ...e,
6741
6741
  announcement: t.payload
6742
6742
  };
6743
- case Os:
6743
+ case Rs:
6744
6744
  return {
6745
6745
  ...e,
6746
6746
  announcement: null
@@ -6748,14 +6748,14 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6748
6748
  default:
6749
6749
  return e;
6750
6750
  }
6751
- }, El = ({
6751
+ }, Sl = ({
6752
6752
  onAnnouncementClear: e,
6753
6753
  dispatch: t
6754
6754
  }) => {
6755
6755
  t({
6756
- type: Os
6756
+ type: Rs
6757
6757
  }), typeof e == "function" && e();
6758
- }, sn = ({
6758
+ }, nn = ({
6759
6759
  children: e,
6760
6760
  clearAnnouncementDelay: t,
6761
6761
  clearAnnouncementTimeoutRef: r,
@@ -6763,16 +6763,16 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6763
6763
  dispatch: s
6764
6764
  }) => {
6765
6765
  clearTimeout(r.current), e !== null && s({
6766
- type: ks,
6766
+ type: Os,
6767
6767
  payload: e
6768
6768
  }), t && (r.current = setTimeout(
6769
- () => El({
6769
+ () => Sl({
6770
6770
  onAnnouncementClear: n,
6771
6771
  dispatch: s
6772
6772
  }),
6773
6773
  t
6774
6774
  ));
6775
- }, Sl = ({
6775
+ }, Tl = ({
6776
6776
  children: e,
6777
6777
  announcementTimeoutRef: t,
6778
6778
  announcementDelay: r,
@@ -6781,13 +6781,13 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6781
6781
  onAnnouncementClear: i,
6782
6782
  dispatch: a
6783
6783
  }) => {
6784
- clearTimeout(t.current), r ? t.current = setTimeout(sn, r, {
6784
+ clearTimeout(t.current), r ? t.current = setTimeout(nn, r, {
6785
6785
  children: e,
6786
6786
  clearAnnouncementDelay: n,
6787
6787
  clearAnnouncementTimeoutRef: s,
6788
6788
  onAnnouncementClear: i,
6789
6789
  dispatch: a
6790
- }) : sn({
6790
+ }) : nn({
6791
6791
  children: e,
6792
6792
  clearAnnouncementDelay: n,
6793
6793
  clearAnnouncementTimeoutRef: s,
@@ -6795,7 +6795,7 @@ const ks = "SET_ANNOUNCEMENT", Os = "CLEAR_ANNOUNCEMENT", wl = {
6795
6795
  dispatch: a
6796
6796
  });
6797
6797
  };
6798
- function Rs({
6798
+ function _s({
6799
6799
  children: e,
6800
6800
  className: t,
6801
6801
  politeness: r,
@@ -6806,12 +6806,12 @@ function Rs({
6806
6806
  visible: o,
6807
6807
  ...c
6808
6808
  }) {
6809
- const u = B(null), d = B(null), [l, f] = ln(vl, {
6809
+ const u = B(null), d = B(null), [l, f] = cn(El, {
6810
6810
  announcement: null
6811
6811
  });
6812
6812
  let h = r;
6813
- typeof h > "u" && (h = n ? wl[n] : "assertive"), X(() => {
6814
- Sl({
6813
+ typeof h > "u" && (h = n ? vl[n] : "assertive"), X(() => {
6814
+ Tl({
6815
6815
  announcementTimeoutRef: u,
6816
6816
  announcementDelay: s,
6817
6817
  children: e,
@@ -6853,21 +6853,21 @@ try {
6853
6853
  });
6854
6854
  } catch {
6855
6855
  }
6856
- const Tl = ({
6856
+ const Al = ({
6857
6857
  mode: e
6858
6858
  }) => g({
6859
6859
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
6860
6860
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
6861
6861
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
6862
6862
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
6863
- }), Al = ({
6863
+ }), Il = ({
6864
6864
  focusMode: e
6865
6865
  }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
6866
6866
  "focus:outline-focus-dark": e === "dark",
6867
6867
  "focus:outline-focus-light": e === "light",
6868
6868
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6869
6869
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6870
- }), Il = ({
6870
+ }), kl = ({
6871
6871
  noBorder: e,
6872
6872
  error: t
6873
6873
  }) => g("border-2", {
@@ -6875,7 +6875,7 @@ const Tl = ({
6875
6875
  "focus:border-border-dark": !e && t,
6876
6876
  "border-border-error-dark": !e && t,
6877
6877
  "border-transparent": e
6878
- }), kl = ({
6878
+ }), Ol = ({
6879
6879
  disabled: e,
6880
6880
  raw: t,
6881
6881
  error: r,
@@ -6899,7 +6899,7 @@ const Tl = ({
6899
6899
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": n === "system",
6900
6900
  "text-copy-lighter dark:text-copy-error-dark": n === "alt-system"
6901
6901
  });
6902
- }, Ol = ({
6902
+ }, Rl = ({
6903
6903
  error: e,
6904
6904
  raw: t,
6905
6905
  mode: r,
@@ -6926,7 +6926,7 @@ const Tl = ({
6926
6926
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
6927
6927
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
6928
6928
  });
6929
- }, Rl = ({
6929
+ }, _l = ({
6930
6930
  className: e,
6931
6931
  inputClassName: t,
6932
6932
  raw: r,
@@ -6940,7 +6940,7 @@ const Tl = ({
6940
6940
  }) => {
6941
6941
  const d = r ? e : g(
6942
6942
  "relative flex w-full flex-col justify-center",
6943
- ml,
6943
+ yl,
6944
6944
  e
6945
6945
  );
6946
6946
  let l = "";
@@ -6962,22 +6962,22 @@ const Tl = ({
6962
6962
  break;
6963
6963
  }
6964
6964
  const f = r ? g(t) : g(
6965
- Is,
6965
+ ks,
6966
6966
  l,
6967
6967
  "rounded-md text-base px-4",
6968
- Tl({ mode: a }),
6969
- Al({ focusMode: o }),
6970
- Il({ noBorder: s, error: i }),
6968
+ Al({ mode: a }),
6969
+ Il({ focusMode: o }),
6970
+ kl({ noBorder: s, error: i }),
6971
6971
  {
6972
6972
  "disabled:cursor-not-allowed disabled:opacity-50": n
6973
6973
  },
6974
6974
  t
6975
- ), h = r ? void 0 : "sr-only", m = kl({
6975
+ ), h = r ? void 0 : "sr-only", m = Ol({
6976
6976
  disabled: n,
6977
6977
  raw: r,
6978
6978
  error: i,
6979
6979
  mode: a
6980
- }), p = Ol({
6980
+ }), p = Rl({
6981
6981
  error: i,
6982
6982
  raw: r,
6983
6983
  mode: a,
@@ -6991,7 +6991,7 @@ const Tl = ({
6991
6991
  helperText: p,
6992
6992
  rightElement: b
6993
6993
  };
6994
- }, Rr = de.forwardRef(
6994
+ }, Or = de.forwardRef(
6995
6995
  ({
6996
6996
  id: e,
6997
6997
  name: t,
@@ -7013,13 +7013,13 @@ const Tl = ({
7013
7013
  size: w = "md",
7014
7014
  ...k
7015
7015
  }, E) => {
7016
- const [R, _] = gl(), [W, G] = ce(0), I = bl({ id: e, prefix: `${Is}-` }), S = `${t} error, ${m}`, T = B(null), P = B(null), $ = {
7016
+ const [R, _] = bl(), [W, G] = ce(0), I = wl({ id: e, prefix: `${ks}-` }), S = `${t} error, ${m}`, T = B(null), P = B(null), $ = {
7017
7017
  xs: { label: "-25px", helperText: "30px" },
7018
7018
  sm: { label: "-29px", helperText: "34px" },
7019
7019
  md: { label: "-33px", helperText: "38px" },
7020
7020
  lg: { label: "-15px", helperText: "22px" },
7021
7021
  xl: { label: "-19px", helperText: "25px" }
7022
- }, z = Rl({
7022
+ }, z = _l({
7023
7023
  className: i,
7024
7024
  inputClassName: a,
7025
7025
  error: n,
@@ -7093,12 +7093,12 @@ const Tl = ({
7093
7093
  children: p
7094
7094
  }
7095
7095
  ),
7096
- n && m && /* @__PURE__ */ y(Rs, { politeness: "polite", clearAnnouncementDelay: 500, children: S })
7096
+ n && m && /* @__PURE__ */ y(_s, { politeness: "polite", clearAnnouncementDelay: 500, children: S })
7097
7097
  ] });
7098
7098
  }
7099
7099
  );
7100
- Rr.displayName = "TextInput";
7101
- function _l(e) {
7100
+ Or.displayName = "TextInput";
7101
+ function Cl(e) {
7102
7102
  return It(() => e.every((t) => t == null) ? () => {
7103
7103
  } : (t) => {
7104
7104
  e.forEach((r) => {
@@ -7106,7 +7106,7 @@ function _l(e) {
7106
7106
  });
7107
7107
  }, [...e]);
7108
7108
  }
7109
- const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
7109
+ const Nl = 500, Pl = 5e3, xl = 2e4, Cs = de.forwardRef(
7110
7110
  ({
7111
7111
  name: e,
7112
7112
  disabled: t,
@@ -7123,19 +7123,19 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
7123
7123
  const [f, h] = ce(!0), [m, p] = ce({
7124
7124
  message: null,
7125
7125
  politeness: null
7126
- }), b = B(!0), w = B(null), k = B(null), E = _l([l, k]), R = f ? "Show" : "Hide", _ = () => {
7126
+ }), b = B(!0), w = B(null), k = B(null), E = Cl([l, k]), R = f ? "Show" : "Hide", _ = () => {
7127
7127
  w.current && clearTimeout(w.current), b.current || (w.current = setTimeout(() => {
7128
7128
  b.current = !0, h(!0), p({
7129
- announcementTimeout: Nl,
7129
+ announcementTimeout: Pl,
7130
7130
  politeness: "polite",
7131
7131
  message: `${r} hiding characters`
7132
7132
  }), s && s(!0);
7133
- }, Pl));
7133
+ }, xl));
7134
7134
  }, W = (P) => {
7135
7135
  P.preventDefault();
7136
7136
  const $ = !b.current;
7137
7137
  b.current = $, _(), h($), p({
7138
- announcementTimeout: Cl,
7138
+ announcementTimeout: Nl,
7139
7139
  politeness: "assertive",
7140
7140
  message: $ ? "Characters hidden" : "Characters showing"
7141
7141
  }), s && s($);
@@ -7154,7 +7154,7 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
7154
7154
  w.current && clearTimeout(w.current);
7155
7155
  }, []), /* @__PURE__ */ J(yr, { children: [
7156
7156
  /* @__PURE__ */ y(
7157
- Rr,
7157
+ Or,
7158
7158
  {
7159
7159
  ref: E,
7160
7160
  name: e,
@@ -7176,7 +7176,7 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
7176
7176
  }
7177
7177
  ),
7178
7178
  /* @__PURE__ */ y(
7179
- Rs,
7179
+ _s,
7180
7180
  {
7181
7181
  role: "status",
7182
7182
  politeness: m.politeness,
@@ -7187,7 +7187,7 @@ const Cl = 500, Nl = 5e3, Pl = 2e4, _s = de.forwardRef(
7187
7187
  ] });
7188
7188
  }
7189
7189
  );
7190
- _s.displayName = "TextInputMask";
7190
+ Cs.displayName = "TextInputMask";
7191
7191
  /*!
7192
7192
  @versini/ui-textinput v4.0.6
7193
7193
  © 2025 gizmette.com
@@ -7201,19 +7201,19 @@ try {
7201
7201
  });
7202
7202
  } catch {
7203
7203
  }
7204
- const xl = "ASK! ME! ANYTHING!", Cs = "Callisto", Dl = "Log in", $l = "Sign in with a Passkey", Zu = "Log out", Ml = "Password", ed = "Usage", td = "Profile", rd = "Settings", nd = "Chat history", sd = "About", _r = "Type your message here.", id = _r, ad = `${_r}
7205
- Press Enter to send it or Shift+Enter for new line.`, od = `${_r}
7206
- Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld = `Sometimes, ${Cs} hallucinates. Review important details.`, ud = "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.", dd = "Default provider set to", fd = "Chat successfully deleted!", hd = "Chat successfully saved!", md = "av-sassy", yd = {
7204
+ const Dl = "ASK! ME! ANYTHING!", Ns = "Callisto", $l = "Log in", Ml = "Sign in with a Passkey", ed = "Log out", Ll = "Password", td = "Usage", rd = "Profile", nd = "Settings", sd = "Chat history", id = "About", Rr = "Type your message here.", ad = Rr, od = `${Rr}
7205
+ Press Enter to send it or Shift+Enter for new line.`, cd = `${Rr}
7206
+ Press Ctrl+Enter to send it or Enter for new line.`, ld = "{{clipboard}}", ud = `Sometimes, ${Ns} hallucinates. Review important details.`, dd = "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.", fd = "Default provider set to", hd = "Chat successfully deleted!", md = "Chat successfully saved!", yd = "av-sassy", pd = {
7207
7207
  0: ["January", "February", "March"],
7208
7208
  3: ["April", "May", "June"],
7209
7209
  6: ["July", "August", "September"],
7210
7210
  9: ["October", "November", "December"]
7211
- }, pd = {
7211
+ }, gd = {
7212
7212
  0: ["Jan", "Feb", "Mar"],
7213
7213
  3: ["Apr", "May", "Jun"],
7214
7214
  6: ["Jul", "Aug", "Sep"],
7215
7215
  9: ["Oct", "Nov", "Dec"]
7216
- }, gd = {
7216
+ }, bd = {
7217
7217
  PREFERENCES: {
7218
7218
  TITLE: "User profile",
7219
7219
  NAME: "Name",
@@ -7253,25 +7253,23 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7253
7253
  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.",
7254
7254
  USE_MEMORY: "The following option allows you to choose whether you want to enable memory for your chats. When enabled, Callisto will remember your previous interactions and use them to provide more relevant responses."
7255
7255
  }
7256
- }, Ll = () => /* @__PURE__ */ J(
7256
+ }, Ul = ({ className: e }) => /* @__PURE__ */ J(
7257
7257
  "div",
7258
7258
  {
7259
7259
  className: g(
7260
- {
7261
- "mt-4": Ir()
7262
- },
7260
+ e,
7263
7261
  "flex items-center justify-center text-slate-300"
7264
7262
  ),
7265
7263
  children: [
7266
- /* @__PURE__ */ y("div", { className: "basis-1/4", children: /* @__PURE__ */ y(il, {}) }),
7264
+ /* @__PURE__ */ y("div", { className: "basis-1/4", children: /* @__PURE__ */ y(al, {}) }),
7267
7265
  /* @__PURE__ */ J("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
7268
- /* @__PURE__ */ y("h1", { children: Cs }),
7269
- /* @__PURE__ */ y("h2", { children: xl })
7266
+ /* @__PURE__ */ y("h1", { children: Ns }),
7267
+ /* @__PURE__ */ y("h2", { children: Dl })
7270
7268
  ] })
7271
7269
  ]
7272
7270
  }
7273
- ), Ul = () => {
7274
- const { login: e, logoutReason: t, loginWithPasskey: r } = ms(), [n, s] = ce(""), [i, a] = ce(""), [o, c] = ce(!0), [u, d] = ce({
7271
+ ), Fl = () => {
7272
+ const { login: e, logoutReason: t, loginWithPasskey: r } = hs(), [n, s] = ce(""), [i, a] = ce(""), [o, c] = ce(!0), [u, d] = ce({
7275
7273
  username: "",
7276
7274
  password: ""
7277
7275
  }), l = async (f) => {
@@ -7284,9 +7282,9 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7284
7282
  }), X(() => {
7285
7283
  t && a(t);
7286
7284
  }, [t]), /* @__PURE__ */ J(
7287
- ul,
7285
+ dl,
7288
7286
  {
7289
- className: Es({
7287
+ className: vs({
7290
7288
  extraClass: "mt-5"
7291
7289
  }),
7292
7290
  noMargin: !0,
@@ -7295,16 +7293,16 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7295
7293
  /* @__PURE__ */ y(
7296
7294
  "div",
7297
7295
  {
7298
- className: vs({
7296
+ className: ws({
7299
7297
  extraClass: "rounded-md"
7300
7298
  }),
7301
- children: /* @__PURE__ */ y(Ll, {})
7299
+ children: /* @__PURE__ */ y(Ul, {})
7302
7300
  }
7303
7301
  ),
7304
- /* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(fl, { alignHorizontal: "center", children: /* @__PURE__ */ y(ve, { span: 6, children: /* @__PURE__ */ J(sl, { mode: "dark", children: [
7302
+ /* @__PURE__ */ y("form", { className: "mt-5", onSubmit: l, children: /* @__PURE__ */ y(hl, { alignHorizontal: "center", children: /* @__PURE__ */ y(ve, { span: 6, children: /* @__PURE__ */ J(il, { mode: "dark", children: [
7305
7303
  /* @__PURE__ */ y(ve, { span: 12, className: "mt-7", children: i && /* @__PURE__ */ y("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: i }) }),
7306
7304
  /* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
7307
- Rr,
7305
+ Or,
7308
7306
  {
7309
7307
  className: "mt-7",
7310
7308
  required: !0,
@@ -7325,7 +7323,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7325
7323
  }
7326
7324
  ) }),
7327
7325
  /* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
7328
- _s,
7326
+ Cs,
7329
7327
  {
7330
7328
  className: "mt-7",
7331
7329
  required: !0,
@@ -7335,14 +7333,14 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7335
7333
  mode: "dark",
7336
7334
  focusMode: "light",
7337
7335
  name: "password",
7338
- label: Ml,
7336
+ label: Ll,
7339
7337
  rightElement: /* @__PURE__ */ y(
7340
7338
  Tt,
7341
7339
  {
7342
7340
  focusMode: "light",
7343
7341
  mode: "dark",
7344
7342
  label: o ? "Show" : "Hide",
7345
- children: o ? /* @__PURE__ */ y(cl, {}) : /* @__PURE__ */ y(al, {})
7343
+ children: o ? /* @__PURE__ */ y(ll, {}) : /* @__PURE__ */ y(ol, {})
7346
7344
  }
7347
7345
  ),
7348
7346
  onMaskChange: c,
@@ -7357,7 +7355,7 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7357
7355
  }
7358
7356
  ) }),
7359
7357
  /* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
7360
- As,
7358
+ Is,
7361
7359
  {
7362
7360
  mode: "light",
7363
7361
  focusMode: "light",
@@ -7365,10 +7363,10 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7365
7363
  noBorder: !0,
7366
7364
  type: "submit",
7367
7365
  className: "mt-7",
7368
- children: Dl
7366
+ children: $l
7369
7367
  }
7370
7368
  ) }),
7371
- !Ss() && /* @__PURE__ */ J(yr, { children: [
7369
+ !Es() && !Ss() && /* @__PURE__ */ J(yr, { children: [
7372
7370
  /* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
7373
7371
  /* @__PURE__ */ y(ve, { span: 12, children: /* @__PURE__ */ y(
7374
7372
  Tt,
@@ -7378,9 +7376,9 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7378
7376
  focusMode: "light",
7379
7377
  fullWidth: !0,
7380
7378
  className: "mb-4",
7381
- labelRight: $l,
7379
+ labelRight: Ml,
7382
7380
  onClick: r,
7383
- children: /* @__PURE__ */ y(ol, { size: "size-7" })
7381
+ children: /* @__PURE__ */ y(cl, { size: "size-7" })
7384
7382
  }
7385
7383
  ) })
7386
7384
  ] })
@@ -7388,37 +7386,37 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7388
7386
  ]
7389
7387
  }
7390
7388
  );
7391
- }, Fl = new URL(document.location.href).searchParams, an = !!Fl.get("debug") || !1, Kl = xs(() => import(
7389
+ }, Kl = new URL(document.location.href).searchParams, sn = !!Kl.get("debug") || !1, Hl = Ds(() => import(
7392
7390
  /* webpackChunkName: "LazyApp" */
7393
- "./App.9D7tAP-W.js"
7394
- ).then((e) => e.App)), Hl = new ri(), on = ({
7391
+ "./App.CzWaf0yZ.js"
7392
+ ).then((e) => e.App)), Bl = new ni(), an = ({
7395
7393
  isComponent: e,
7396
7394
  headerHeight: t
7397
7395
  }) => {
7398
- const { isAuthenticated: r, isLoading: n } = ms();
7399
- return n ? /* @__PURE__ */ y("div", {}) : r ? /* @__PURE__ */ y(Ps, { fallback: /* @__PURE__ */ y("div", {}), children: /* @__PURE__ */ J(si, { client: Hl, children: [
7400
- /* @__PURE__ */ y(Pa, {}),
7401
- /* @__PURE__ */ y(Kl, { isComponent: e, headerHeight: t })
7402
- ] }) }) : /* @__PURE__ */ y(Ul, {});
7403
- }, Bl = ({
7396
+ const { isAuthenticated: r, isLoading: n } = hs();
7397
+ return n ? /* @__PURE__ */ y("div", {}) : r ? /* @__PURE__ */ y(xs, { fallback: /* @__PURE__ */ y("div", {}), children: /* @__PURE__ */ J(ii, { client: Bl, children: [
7398
+ /* @__PURE__ */ y(xa, {}),
7399
+ /* @__PURE__ */ y(Hl, { isComponent: e, headerHeight: t })
7400
+ ] }) }) : /* @__PURE__ */ y(Fl, {});
7401
+ }, Vl = ({
7404
7402
  isComponent: e = !1,
7405
7403
  headerHeight: t = 0,
7406
- domain: r = ws
7404
+ domain: r = bs
7407
7405
  }) => (X(() => {
7408
- e || gs().catch((n) => {
7406
+ e || ps().catch((n) => {
7409
7407
  console.error("[SW] Failed to register service worker:", n);
7410
7408
  });
7411
7409
  }, [e]), Tr ? /* @__PURE__ */ y(
7412
- Zr,
7410
+ Xr,
7413
7411
  {
7414
- clientId: en,
7412
+ clientId: Zr,
7415
7413
  domain: r,
7416
- debug: an,
7414
+ debug: sn,
7417
7415
  endpoint: process.env.PUBLIC_AUTH_SERVER_URL,
7418
- children: /* @__PURE__ */ y(on, { isComponent: e, headerHeight: t })
7416
+ children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t })
7419
7417
  }
7420
- ) : /* @__PURE__ */ y(Zr, { clientId: en, domain: r, debug: an, children: /* @__PURE__ */ y(on, { isComponent: e, headerHeight: t }) })), bd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
7421
- Bl,
7418
+ ) : /* @__PURE__ */ y(Xr, { clientId: Zr, domain: r, debug: sn, children: /* @__PURE__ */ y(an, { isComponent: e, headerHeight: t }) })), wd = ({ domain: e, headerHeight: t }) => /* @__PURE__ */ y(
7419
+ Vl,
7422
7420
  {
7423
7421
  isComponent: !0,
7424
7422
  domain: e,
@@ -7426,139 +7424,140 @@ Press Ctrl+Enter to send it or Enter for new line.`, cd = "{{clipboard}}", ld =
7426
7424
  }
7427
7425
  );
7428
7426
  export {
7429
- sd as ABOUT_TITLE,
7430
- $u as ACTION_RESET_PROMPT,
7431
- Pu as ACTION_SEARCH,
7432
- xu as ACTION_SORT,
7433
- Du as ACTION_TOGGLE_PROMPT,
7434
- md as APP_CLASSNAME,
7435
- Cs as APP_NAME,
7436
- As as C,
7437
- gd as CARDS,
7438
- cd as CLIPBOARD_PROMPT,
7439
- ju as DEFAULT_ICON_ACTION_SIZE,
7440
- lu as Dynamic,
7441
- Nu as ERROR_MESSAGE,
7442
- ld as FOOTER_DISCLAIMER,
7443
- tu as For,
7444
- nd as HISTORY_TITLE,
7427
+ id as ABOUT_TITLE,
7428
+ Mu as ACTION_RESET_PROMPT,
7429
+ xu as ACTION_SEARCH,
7430
+ Du as ACTION_SORT,
7431
+ $u as ACTION_TOGGLE_PROMPT,
7432
+ yd as APP_CLASSNAME,
7433
+ Ns as APP_NAME,
7434
+ Is as C,
7435
+ bd as CARDS,
7436
+ ld as CLIPBOARD_PROMPT,
7437
+ Gu as DEFAULT_ICON_ACTION_SIZE,
7438
+ uu as Dynamic,
7439
+ Pu as ERROR_MESSAGE,
7440
+ ud as FOOTER_DISCLAIMER,
7441
+ ru as For,
7442
+ sd as HISTORY_TITLE,
7445
7443
  Dt as I,
7446
- Bu as INFINITE_SCROLL_LIMIT,
7447
- Hu as INFINITE_SCROLL_THRESHOLD,
7448
- zu as INPUT_BOTTOM_OFFSET,
7449
- Qu as INPUT_BOTTOM_OFFSET_EXTRA,
7450
- od as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7451
- ad as INPUT_PLACEHOLDER_TEXT_ENTER,
7452
- id as INPUT_PLACEHOLDER_TEXT_MOBILE,
7453
- ru as Index,
7454
- fl as L,
7455
- Mu as LOCAL_STORAGE_CHAT_DETAILS,
7456
- ys as LOCAL_STORAGE_PREFIX,
7457
- Fu as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7458
- Ku as LOCAL_STORAGE_REASONING_DISCLOSURE,
7459
- Lu as LOCAL_STORAGE_SEARCH,
7460
- ps as LOCAL_STORAGE_SERVICE_WORKER,
7461
- Uu as LOCAL_STORAGE_SORT,
7462
- Zu as LOG_OUT,
7463
- Ll as Logo,
7464
- iu as Match,
7465
- td as PROFILE_TITLE,
7466
- ud as PROMPTS_DESCRIPTION,
7467
- Vu as PROMPT_CLASSNAME,
7468
- Wu as PROMPT_EDITABLE_AREA_CLASSNAME,
7469
- cu as Portal,
7470
- Cu as ROLE_INTERNAL,
7471
- sl as S,
7472
- rd as SETTINGS_TITLE,
7473
- bd as SassySaint,
7474
- nu as Show,
7444
+ Vu as INFINITE_SCROLL_LIMIT,
7445
+ Bu as INFINITE_SCROLL_THRESHOLD,
7446
+ Qu as INPUT_BOTTOM_OFFSET,
7447
+ Yu as INPUT_BOTTOM_OFFSET_EXTRA,
7448
+ cd as INPUT_PLACEHOLDER_TEXT_CMD_ENTER,
7449
+ od as INPUT_PLACEHOLDER_TEXT_ENTER,
7450
+ ad as INPUT_PLACEHOLDER_TEXT_MOBILE,
7451
+ nu as Index,
7452
+ hl as L,
7453
+ Lu as LOCAL_STORAGE_CHAT_DETAILS,
7454
+ ms as LOCAL_STORAGE_PREFIX,
7455
+ Ku as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
7456
+ Hu as LOCAL_STORAGE_REASONING_DISCLOSURE,
7457
+ Uu as LOCAL_STORAGE_SEARCH,
7458
+ ys as LOCAL_STORAGE_SERVICE_WORKER,
7459
+ Fu as LOCAL_STORAGE_SORT,
7460
+ ed as LOG_OUT,
7461
+ Ul as Logo,
7462
+ au as Match,
7463
+ rd as PROFILE_TITLE,
7464
+ dd as PROMPTS_DESCRIPTION,
7465
+ Wu as PROMPT_CLASSNAME,
7466
+ ju as PROMPT_EDITABLE_AREA_CLASSNAME,
7467
+ lu as Portal,
7468
+ Nu as ROLE_INTERNAL,
7469
+ il as S,
7470
+ nd as SETTINGS_TITLE,
7471
+ wd as SassySaint,
7472
+ su as Show,
7475
7473
  kt as Subscribable,
7476
- su as Switch,
7477
- fd as TOAST_CHAT_DELETED,
7478
- hd as TOAST_CHAT_SAVED,
7479
- dd as TOAST_PROVIDER_CHANGED,
7480
- yd as TRIMESTERS,
7481
- pd as TRIMESTERS_SHORT,
7482
- qu as UI_BUTTON_SCROLL_BUFFER,
7483
- Ju as UI_DEFAULT_MAIN_HEIGHT,
7484
- Gu as UI_FOOTER_BUFFER,
7485
- ed as USAGE_TITLE,
7486
- Hi as addEventListener,
7487
- Jl as batch,
7488
- Ki as className,
7489
- ou as clearDelegatedEvents,
7490
- Dc as convertCamelCaseToReadable,
7491
- wu as convertRemToPixels,
7492
- vi as createComponent,
7493
- ai as createComputed,
7494
- Xl as createContext,
7495
- En as createEffect,
7474
+ iu as Switch,
7475
+ hd as TOAST_CHAT_DELETED,
7476
+ md as TOAST_CHAT_SAVED,
7477
+ fd as TOAST_PROVIDER_CHANGED,
7478
+ pd as TRIMESTERS,
7479
+ gd as TRIMESTERS_SHORT,
7480
+ Ju as UI_BUTTON_SCROLL_BUFFER,
7481
+ zu as UI_DEFAULT_MAIN_HEIGHT,
7482
+ qu as UI_FOOTER_BUFFER,
7483
+ td as USAGE_TITLE,
7484
+ Bi as addEventListener,
7485
+ zl as batch,
7486
+ Hi as className,
7487
+ cu as clearDelegatedEvents,
7488
+ $c as convertCamelCaseToReadable,
7489
+ vu as convertRemToPixels,
7490
+ Ei as createComponent,
7491
+ oi as createComputed,
7492
+ Zl as createContext,
7493
+ vn as createEffect,
7496
7494
  H as createMemo,
7497
7495
  Se as createRenderEffect,
7498
7496
  Ee as createRoot,
7499
7497
  Q as createSignal,
7500
- eu as createUniqueId,
7501
- Pc as debounce,
7502
- Li as delegateEvents,
7498
+ tu as createUniqueId,
7499
+ xc as debounce,
7500
+ Ui as delegateEvents,
7503
7501
  nt as deleteNestedDataByPath,
7504
- pu as displayValue,
7505
- Rr as fe,
7506
- zs as fetchState,
7507
- fn as focusManager,
7508
- Tc as getCurrentGeoLocation,
7509
- Es as getMainPaddingClass,
7510
- vs as getMessageContaintWrapperClass,
7511
- mu as getMutationStatusColor,
7512
- vu as getPreferredColorScheme,
7513
- hu as getQueryStatusColor,
7514
- yu as getQueryStatusColorByLabel,
7515
- du as getQueryStatusLabel,
7516
- fu as getSidedProp,
7517
- Yu as handleServiceWorkerToggle,
7502
+ gu as displayValue,
7503
+ Or as fe,
7504
+ Qs as fetchState,
7505
+ dn as focusManager,
7506
+ Ac as getCurrentGeoLocation,
7507
+ vs as getMainPaddingClass,
7508
+ ws as getMessageContaintWrapperClass,
7509
+ yu as getMutationStatusColor,
7510
+ Eu as getPreferredColorScheme,
7511
+ mu as getQueryStatusColor,
7512
+ pu as getQueryStatusColorByLabel,
7513
+ fu as getQueryStatusLabel,
7514
+ hu as getSidedProp,
7515
+ Xu as handleServiceWorkerToggle,
7518
7516
  ir as insert,
7519
- Ss as isElectron,
7520
- Ir as isProbablyMobile,
7521
- xc as isProbablyiPhone,
7517
+ Es as isElectron,
7518
+ Ts as isProbablyMobile,
7519
+ Dc as isProbablyiPhone,
7522
7520
  Ot as isServer,
7523
- cc as isServiceWorkerEnabled,
7524
- fc as isStandaloneMode,
7525
- $s as isValidTimeout,
7521
+ lc as isServiceWorkerEnabled,
7522
+ hc as isStandaloneMode,
7523
+ Ss as isTauri,
7524
+ Ms as isValidTimeout,
7526
7525
  ve as j,
7527
- ol as l,
7526
+ cl as l,
7528
7527
  Tt as le,
7529
- Si as mergeProps,
7530
- bu as mutationSortFns,
7531
- ms as n,
7528
+ Ti as mergeProps,
7529
+ wu as mutationSortFns,
7530
+ hs as n,
7532
7531
  te as noop,
7533
7532
  q as notifyManager,
7534
- _c as numberFormatter,
7535
- Ac as obfuscate,
7536
- zl as on,
7533
+ Cc as numberFormatter,
7534
+ Ic as obfuscate,
7535
+ Ql as on,
7537
7536
  Ve as onCleanup,
7538
- li as onMount,
7539
- Ws as pendingThenable,
7540
- Nc as pluralize,
7541
- ul as r,
7542
- kc as renderDataAsList,
7543
- Fs as replaceData,
7544
- Ls as resolveEnabled,
7537
+ ui as onMount,
7538
+ js as pendingThenable,
7539
+ Pc as pluralize,
7540
+ dl as r,
7541
+ Oc as renderDataAsList,
7542
+ Ks as replaceData,
7543
+ Us as resolveEnabled,
7545
7544
  Yt as resolveStaleTime,
7546
- Ia as serialize,
7545
+ ka as serialize,
7547
7546
  sr as setAttribute,
7548
- Gl as shallowEqualObjects,
7549
- ql as shouldThrowError,
7550
- gu as sortFns,
7551
- Ti as splitProps,
7552
- Wi as spread,
7553
- uu as stringify,
7554
- au as template,
7555
- Ms as timeUntilStale,
7556
- Ic as unObfuscate,
7547
+ ql as shallowEqualObjects,
7548
+ Jl as shouldThrowError,
7549
+ bu as sortFns,
7550
+ Ai as splitProps,
7551
+ ji as spread,
7552
+ du as stringify,
7553
+ ou as template,
7554
+ Ls as timeUntilStale,
7555
+ kc as unObfuscate,
7557
7556
  V as untrack,
7558
7557
  rt as updateNestedDataByPath,
7559
- ji as use,
7560
- Zl as useContext,
7561
- ni as useQueryClient,
7562
- Yl as useTransition,
7563
- Xu as utilities
7558
+ Gi as use,
7559
+ eu as useContext,
7560
+ si as useQueryClient,
7561
+ Xl as useTransition,
7562
+ Zu as utilities
7564
7563
  };