@versini/sassysaint 5.5.39 → 5.5.40

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 l, jsxs as O, Fragment as Qe } from "react/jsx-runtime";
2
2
  import F, { createContext as nr, useReducer as wt, useRef as $, useCallback as q, useEffect as Q, useContext as Tt, useSyncExternalStore as or, useId as It, useState as z, useLayoutEffect as ot, useMemo as St, lazy as sr, Suspense as ir } from "react";
3
- import g from "clsx";
3
+ import f from "clsx";
4
4
  var cr = Object.defineProperty, lr = (e, t, r) => t in e ? cr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t, r) => lr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
6
  @versini/auth-provider v7.4.0
@@ -22,7 +22,7 @@ function J(e) {
22
22
  r += String.fromCharCode(a);
23
23
  return btoa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=/g, "");
24
24
  }
25
- function ve(e) {
25
+ function Re(e) {
26
26
  const t = e.replace(/-/g, "+").replace(/_/g, "/"), r = (4 - t.length % 4) % 4, a = t.padEnd(t.length + r, "="), n = atob(a), o = new ArrayBuffer(n.length), s = new Uint8Array(o);
27
27
  for (let i = 0; i < n.length; i++)
28
28
  s[i] = n.charCodeAt(i);
@@ -35,14 +35,14 @@ function _t(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
38
- id: ve(t),
38
+ id: Re(t),
39
39
  transports: e.transports
40
40
  };
41
41
  }
42
42
  function kt(e) {
43
43
  return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
44
44
  }
45
- let R = class extends Error {
45
+ let N = class extends Error {
46
46
  constructor({ message: t, code: r, cause: a, name: n }) {
47
47
  super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
48
48
  }
@@ -54,43 +54,43 @@ function dr({ error: e, options: t }) {
54
54
  throw Error("options was missing required publicKey property");
55
55
  if (e.name === "AbortError") {
56
56
  if (t.signal instanceof AbortSignal)
57
- return new R({
57
+ return new N({
58
58
  message: "Registration ceremony was sent an abort signal",
59
59
  code: "ERROR_CEREMONY_ABORTED",
60
60
  cause: e
61
61
  });
62
62
  } else if (e.name === "ConstraintError") {
63
63
  if (((a = r.authenticatorSelection) == null ? void 0 : a.requireResidentKey) === !0)
64
- return new R({
64
+ return new N({
65
65
  message: "Discoverable credentials were required but no available authenticator supported it",
66
66
  code: "ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",
67
67
  cause: e
68
68
  });
69
69
  if (((n = r.authenticatorSelection) == null ? void 0 : n.userVerification) === "required")
70
- return new R({
70
+ return new N({
71
71
  message: "User verification was required but no available authenticator supported it",
72
72
  code: "ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",
73
73
  cause: e
74
74
  });
75
75
  } else {
76
76
  if (e.name === "InvalidStateError")
77
- return new R({
77
+ return new N({
78
78
  message: "The authenticator was previously registered",
79
79
  code: "ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",
80
80
  cause: e
81
81
  });
82
82
  if (e.name === "NotAllowedError")
83
- return new R({
83
+ return new N({
84
84
  message: e.message,
85
85
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
86
86
  cause: e
87
87
  });
88
88
  if (e.name === "NotSupportedError")
89
- return r.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new R({
89
+ return r.pubKeyCredParams.filter((o) => o.type === "public-key").length === 0 ? new N({
90
90
  message: 'No entry in pubKeyCredParams was of type "public-key"',
91
91
  code: "ERROR_MALFORMED_PUBKEYCREDPARAMS",
92
92
  cause: e
93
- }) : new R({
93
+ }) : new N({
94
94
  message: "No available authenticator supported any of the specified pubKeyCredParams algorithms",
95
95
  code: "ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",
96
96
  cause: e
@@ -99,25 +99,25 @@ function dr({ error: e, options: t }) {
99
99
  const o = window.location.hostname;
100
100
  if (kt(o)) {
101
101
  if (r.rp.id !== o)
102
- return new R({
102
+ return new N({
103
103
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
104
104
  code: "ERROR_INVALID_RP_ID",
105
105
  cause: e
106
106
  });
107
- } else return new R({
107
+ } else return new N({
108
108
  message: `${window.location.hostname} is an invalid domain`,
109
109
  code: "ERROR_INVALID_DOMAIN",
110
110
  cause: e
111
111
  });
112
112
  } else if (e.name === "TypeError") {
113
113
  if (r.user.id.byteLength < 1 || r.user.id.byteLength > 64)
114
- return new R({
114
+ return new N({
115
115
  message: "User ID was not between 1 and 64 characters",
116
116
  code: "ERROR_INVALID_USER_ID_LENGTH",
117
117
  cause: e
118
118
  });
119
119
  } else if (e.name === "UnknownError")
120
- return new R({
120
+ return new N({
121
121
  message: "The authenticator was unable to process the specified options, or could not create a new credential",
122
122
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
123
123
  cause: e
@@ -142,7 +142,7 @@ class ur {
142
142
  }
143
143
  }
144
144
  const At = new ur(), mr = ["cross-platform", "platform"];
145
- function vt(e) {
145
+ function Rt(e) {
146
146
  if (e && !(mr.indexOf(e) < 0))
147
147
  return e;
148
148
  }
@@ -152,10 +152,10 @@ async function hr(e) {
152
152
  throw new Error("WebAuthn is not supported in this browser");
153
153
  const t = { publicKey: {
154
154
  ...e,
155
- challenge: ve(e.challenge),
155
+ challenge: Re(e.challenge),
156
156
  user: {
157
157
  ...e.user,
158
- id: ve(e.user.id)
158
+ id: Re(e.user.id)
159
159
  },
160
160
  excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(_t)
161
161
  } };
@@ -206,7 +206,7 @@ async function hr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: vt(r.authenticatorAttachment)
209
+ authenticatorAttachment: Rt(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function Ke(e, t) {
@@ -219,20 +219,20 @@ function pr() {
219
219
  const e = window.PublicKeyCredential;
220
220
  return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
221
221
  }
222
- function gr({ error: e, options: t }) {
222
+ function fr({ error: e, options: t }) {
223
223
  const { publicKey: r } = t;
224
224
  if (!r)
225
225
  throw Error("options was missing required publicKey property");
226
226
  if (e.name === "AbortError") {
227
227
  if (t.signal instanceof AbortSignal)
228
- return new R({
228
+ return new N({
229
229
  message: "Authentication ceremony was sent an abort signal",
230
230
  code: "ERROR_CEREMONY_ABORTED",
231
231
  cause: e
232
232
  });
233
233
  } else {
234
234
  if (e.name === "NotAllowedError")
235
- return new R({
235
+ return new N({
236
236
  message: e.message,
237
237
  code: "ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",
238
238
  cause: e
@@ -241,18 +241,18 @@ function gr({ error: e, options: t }) {
241
241
  const a = window.location.hostname;
242
242
  if (kt(a)) {
243
243
  if (r.rpId !== a)
244
- return new R({
244
+ return new N({
245
245
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
246
246
  code: "ERROR_INVALID_RP_ID",
247
247
  cause: e
248
248
  });
249
- } else return new R({
249
+ } else return new N({
250
250
  message: `${window.location.hostname} is an invalid domain`,
251
251
  code: "ERROR_INVALID_DOMAIN",
252
252
  cause: e
253
253
  });
254
254
  } else if (e.name === "UnknownError")
255
- return new R({
255
+ return new N({
256
256
  message: "The authenticator was unable to process the specified options, or could not create a new assertion signature",
257
257
  code: "ERROR_AUTHENTICATOR_GENERAL_ERROR",
258
258
  cause: e
@@ -260,7 +260,7 @@ function gr({ error: e, options: t }) {
260
260
  }
261
261
  return e;
262
262
  }
263
- async function yr(e, t = !1) {
263
+ async function gr(e, t = !1) {
264
264
  var u, c;
265
265
  if (!Ze())
266
266
  throw new Error("WebAuthn is not supported in this browser");
@@ -268,7 +268,7 @@ async function yr(e, t = !1) {
268
268
  ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(_t));
269
269
  const a = {
270
270
  ...e,
271
- challenge: ve(e.challenge),
271
+ challenge: Re(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
@@ -283,7 +283,7 @@ async function yr(e, t = !1) {
283
283
  try {
284
284
  o = await navigator.credentials.get(n);
285
285
  } catch (m) {
286
- throw gr({ error: m, options: n });
286
+ throw fr({ error: m, options: n });
287
287
  }
288
288
  if (!o)
289
289
  throw new Error("Authentication was not completed");
@@ -300,7 +300,7 @@ async function yr(e, t = !1) {
300
300
  },
301
301
  type: h,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: vt(o.authenticatorAttachment)
303
+ authenticatorAttachment: Rt(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
@@ -323,7 +323,7 @@ const ue = {
323
323
  CODE: "code",
324
324
  REFRESH_TOKEN: "refresh_token",
325
325
  PASSKEY: "passkey"
326
- }, Rt = {
326
+ }, Nt = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
328
  }, A = {
329
329
  ALG: "RS256",
@@ -338,7 +338,7 @@ const ue = {
338
338
  SCOPES_KEY: "scopes",
339
339
  CLIENT_ID_KEY: "aud",
340
340
  ISSUER: "gizmette.com"
341
- }, fr = `-----BEGIN PUBLIC KEY-----
341
+ }, yr = `-----BEGIN PUBLIC KEY-----
342
342
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
343
343
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
344
344
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -351,7 +351,7 @@ awIDAQAB
351
351
  LOGOUT: "logout",
352
352
  LOGIN: "login",
353
353
  REFRESH: "refresh"
354
- }, Pe = crypto, Nt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), fe = new TextDecoder();
354
+ }, Pe = crypto, vt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
355
355
  function br(...e) {
356
356
  const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
357
357
  let a = 0;
@@ -366,7 +366,7 @@ const Er = (e) => {
366
366
  return r;
367
367
  }, X = (e) => {
368
368
  let t = e;
369
- t instanceof Uint8Array && (t = fe.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
369
+ t instanceof Uint8Array && (t = ye.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
370
370
  try {
371
371
  return Er(t);
372
372
  } catch {
@@ -473,7 +473,7 @@ function we(e, t) {
473
473
  function He(e) {
474
474
  return parseInt(e.name.slice(4), 10);
475
475
  }
476
- function vr(e) {
476
+ function Rr(e) {
477
477
  switch (e) {
478
478
  case "ES256":
479
479
  return "P-256";
@@ -485,7 +485,7 @@ function vr(e) {
485
485
  throw new Error("unreachable");
486
486
  }
487
487
  }
488
- function Rr(e, t) {
488
+ function Nr(e, t) {
489
489
  if (t.length && !t.some((r) => e.usages.includes(r))) {
490
490
  let r = "CryptoKey does not support this operation, its usages must include ";
491
491
  if (t.length > 2) {
@@ -495,7 +495,7 @@ function Rr(e, t) {
495
495
  throw new TypeError(r);
496
496
  }
497
497
  }
498
- function Nr(e, t, ...r) {
498
+ function vr(e, t, ...r) {
499
499
  switch (t) {
500
500
  case "HS256":
501
501
  case "HS384":
@@ -537,7 +537,7 @@ function Nr(e, t, ...r) {
537
537
  case "ES512": {
538
538
  if (!we(e.algorithm, "ECDSA"))
539
539
  throw Y("ECDSA");
540
- const a = vr(t);
540
+ const a = Rr(t);
541
541
  if (e.algorithm.namedCurve !== a)
542
542
  throw Y(a, "algorithm.namedCurve");
543
543
  break;
@@ -545,7 +545,7 @@ function Nr(e, t, ...r) {
545
545
  default:
546
546
  throw new TypeError("CryptoKey does not support this operation");
547
547
  }
548
- Rr(e, r);
548
+ Nr(e, r);
549
549
  }
550
550
  function Ot(e, t, ...r) {
551
551
  var a;
@@ -559,7 +559,7 @@ const st = (e, ...t) => Ot("Key must be ", e, ...t);
559
559
  function Pt(e, t, ...r) {
560
560
  return Ot(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Dt = (e) => Nt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], xr = (...e) => {
562
+ const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = ["CryptoKey"], xr = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -693,7 +693,7 @@ const Lt = async (e) => {
693
693
  return delete n.alg, delete n.use, Pe.subtle.importKey("jwk", n, ...a);
694
694
  }, Mt = (e) => X(e);
695
695
  let ne, oe;
696
- const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ne = async (e, t, r, a, n = !1) => {
696
+ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = async (e, t, r, a, n = !1) => {
697
697
  let o = e.get(t);
698
698
  if (o != null && o[a])
699
699
  return o[a];
@@ -702,15 +702,15 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
702
702
  }, $r = (e, t) => {
703
703
  if ($t(e)) {
704
704
  let r = e.export({ format: "jwk" });
705
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ne(oe, e, r, t));
705
+ return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), ve(oe, e, r, t));
706
706
  }
707
- return he(e) ? e.k ? X(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ne(oe, e, e, t, !0)) : e;
707
+ return he(e) ? e.k ? X(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), ve(oe, e, e, t, !0)) : e;
708
708
  }, Ur = (e, t) => {
709
709
  if ($t(e)) {
710
710
  let r = e.export({ format: "jwk" });
711
- return r.k ? Mt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, r, t));
711
+ return r.k ? Mt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), ve(ne, e, r, t));
712
712
  }
713
- return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), Ne(ne, e, e, t, !0)) : e;
713
+ return he(e) ? e.k ? X(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), ve(ne, e, e, t, !0)) : e;
714
714
  }, Kr = { normalizePublicKey: $r, normalizePrivateKey: Ur }, j = (e, t, r = 0) => {
715
715
  r === 0 && (t.unshift(t.length), t.unshift(6));
716
716
  const a = e.indexOf(t[0], r);
@@ -825,7 +825,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
825
825
  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');
826
826
  }
827
827
  if (!Dt(t))
828
- throw new TypeError(Pt(e, t, ...Re, "Uint8Array", a ? "JSON Web Key" : null));
828
+ throw new TypeError(Pt(e, t, ...Ne, "Uint8Array", a ? "JSON Web Key" : null));
829
829
  if (t.type !== "secret")
830
830
  throw new TypeError(`${de(t)} instances for symmetric algorithms must be of type "secret"`);
831
831
  }
@@ -842,7 +842,7 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
842
842
  throw new TypeError("JSON Web Key for this operation be a public JWK");
843
843
  }
844
844
  if (!Dt(t))
845
- throw new TypeError(Pt(e, t, ...Re, a ? "JSON Web Key" : null));
845
+ throw new TypeError(Pt(e, t, ...Ne, a ? "JSON Web Key" : null));
846
846
  if (t.type === "secret")
847
847
  throw new TypeError(`${de(t)} instances for asymmetric algorithms must not be of type "secret"`);
848
848
  if (r === "sign" && t.type === "public")
@@ -910,14 +910,14 @@ function jr(e, t) {
910
910
  }
911
911
  }
912
912
  async function zr(e, t, r) {
913
- if (t = await Kr.normalizePublicKey(t, e), Nt(t))
914
- return Nr(t, e, r), t;
913
+ if (t = await Kr.normalizePublicKey(t, e), vt(t))
914
+ return vr(t, e, r), t;
915
915
  if (t instanceof Uint8Array) {
916
916
  if (!e.startsWith("HS"))
917
- throw new TypeError(st(t, ...Re));
917
+ throw new TypeError(st(t, ...Ne));
918
918
  return Pe.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
919
919
  }
920
- throw new TypeError(st(t, ...Re, "Uint8Array", "JSON Web Key"));
920
+ throw new TypeError(st(t, ...Ne, "Uint8Array", "JSON Web Key"));
921
921
  }
922
922
  const qr = async (e, t, r, a) => {
923
923
  const n = await zr(e, t, "verify");
@@ -945,8 +945,8 @@ async function Xr(e, t, r) {
945
945
  let a = {};
946
946
  if (e.protected)
947
947
  try {
948
- const f = X(e.protected);
949
- a = JSON.parse(fe.decode(f));
948
+ const y = X(e.protected);
949
+ a = JSON.parse(ye.decode(y));
950
950
  } catch {
951
951
  throw new S("JWS Protected Header is invalid");
952
952
  }
@@ -993,7 +993,7 @@ async function Xr(e, t, r) {
993
993
  return e.protected !== void 0 && (m.protectedHeader = a), e.header !== void 0 && (m.unprotectedHeader = e.header), h ? { ...m, key: t } : m;
994
994
  }
995
995
  async function Qr(e, t, r) {
996
- if (e instanceof Uint8Array && (e = fe.decode(e)), typeof e != "string")
996
+ if (e instanceof Uint8Array && (e = ye.decode(e)), typeof e != "string")
997
997
  throw new S("Compact JWS must be a string or Uint8Array");
998
998
  const { 0: a, 1: n, 2: o, length: s } = e.split(".");
999
999
  if (s !== 3)
@@ -1047,7 +1047,7 @@ const Zr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
1047
1047
  }, dt = (e) => e.toLowerCase().replace(/^application\//, ""), aa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, na = (e, t, r = {}) => {
1048
1048
  let a;
1049
1049
  try {
1050
- a = JSON.parse(fe.decode(t));
1050
+ a = JSON.parse(ye.decode(t));
1051
1051
  } catch {
1052
1052
  }
1053
1053
  if (!me(a))
@@ -1057,9 +1057,9 @@ const Zr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
1057
1057
  throw new L('unexpected "typ" JWT header value', a, "typ", "check_failed");
1058
1058
  const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge: h } = r, p = [...o];
1059
1059
  h !== void 0 && p.push("iat"), d !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
1060
- for (const f of new Set(p.reverse()))
1061
- if (!(f in a))
1062
- throw new L(`missing required "${f}" claim`, a, f, "missing");
1060
+ for (const y of new Set(p.reverse()))
1061
+ if (!(y in a))
1062
+ throw new L(`missing required "${y}" claim`, a, y, "missing");
1063
1063
  if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
1064
1064
  throw new L('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
@@ -1096,10 +1096,10 @@ const Zr = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, et = Ht
1096
1096
  throw new Fe('"exp" claim timestamp check failed', a, "exp", "check_failed");
1097
1097
  }
1098
1098
  if (h) {
1099
- const f = m - a.iat, E = typeof h == "number" ? h : lt(h);
1100
- if (f - u > E)
1099
+ const y = m - a.iat, E = typeof h == "number" ? h : lt(h);
1100
+ if (y - u > E)
1101
1101
  throw new Fe('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1102
- if (f < 0 - u)
1102
+ if (y < 0 - u)
1103
1103
  throw new L('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1104
1104
  }
1105
1105
  return a;
@@ -1131,7 +1131,7 @@ function ia(e) {
1131
1131
  }
1132
1132
  let n;
1133
1133
  try {
1134
- n = JSON.parse(fe.decode(a));
1134
+ n = JSON.parse(ye.decode(a));
1135
1135
  } catch {
1136
1136
  throw new G("Failed to parse the decoded payload as JSON");
1137
1137
  }
@@ -1139,9 +1139,9 @@ function ia(e) {
1139
1139
  throw new G("Invalid JWT Claims Set");
1140
1140
  return n;
1141
1141
  }
1142
- const ye = async (e) => {
1142
+ const ge = async (e) => {
1143
1143
  try {
1144
- const t = A.ALG, r = await Br(fr, t);
1144
+ const t = A.ALG, r = await Br(yr, t);
1145
1145
  return await oa(e, r, {
1146
1146
  issuer: A.ISSUER
1147
1147
  });
@@ -1172,7 +1172,7 @@ function ua() {
1172
1172
  }
1173
1173
  const ma = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ut = { randomUUID: ma };
1174
1174
  function mt(e, t, r) {
1175
- if (ut.randomUUID && !t && !e)
1175
+ if (ut.randomUUID && !e)
1176
1176
  return ut.randomUUID();
1177
1177
  e = e || {};
1178
1178
  const a = e.random || (e.rng || ua)();
@@ -1181,7 +1181,7 @@ function mt(e, t, r) {
1181
1181
  const ht = globalThis.crypto, ha = (e) => `${mt()}${mt()}`.slice(0, e), pa = (e) => btoa(
1182
1182
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
1183
1183
  );
1184
- async function ga(e) {
1184
+ async function fa(e) {
1185
1185
  if (!ht.subtle)
1186
1186
  throw new Error(
1187
1187
  "crypto.subtle is available only in secure contexts (HTTPS)."
@@ -1189,8 +1189,8 @@ async function ga(e) {
1189
1189
  const t = new TextEncoder().encode(e), r = await ht.subtle.digest("SHA-256", t);
1190
1190
  return pa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1191
1191
  }
1192
- async function ya(e) {
1193
- const t = ha(43), r = await ga(t);
1192
+ async function ga(e) {
1193
+ const t = ha(43), r = await fa(t);
1194
1194
  return {
1195
1195
  code_verifier: t,
1196
1196
  code_challenge: r
@@ -1204,18 +1204,18 @@ const pt = (e, t) => {
1204
1204
  typeof t == "function" ? t() : t
1205
1205
  );
1206
1206
  window.localStorage.setItem(e, r), Wt(e, r);
1207
- }, fa = (e) => {
1207
+ }, ya = (e) => {
1208
1208
  window.localStorage.removeItem(e), Wt(e, null);
1209
- }, gt = (e) => window.localStorage.getItem(e), ba = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1209
+ }, ft = (e) => window.localStorage.getItem(e), ba = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
1210
  function Te({
1211
1211
  key: e,
1212
1212
  initialValue: t
1213
1213
  }) {
1214
- const r = or(ba, () => gt(e)), a = q(
1214
+ const r = or(ba, () => ft(e)), a = q(
1215
1215
  (s) => {
1216
1216
  try {
1217
1217
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
1218
- i == null ? fa(e) : pt(e, i);
1218
+ i == null ? ya(e) : pt(e, i);
1219
1219
  } catch (i) {
1220
1220
  console.warn(i);
1221
1221
  }
@@ -1228,7 +1228,7 @@ function Te({
1228
1228
  }, [a]);
1229
1229
  return Q(() => {
1230
1230
  try {
1231
- gt(e) === null && typeof t < "u" && pt(e, t);
1231
+ ft(e) === null && typeof t < "u" && pt(e, t);
1232
1232
  } catch (s) {
1233
1233
  console.warn(s);
1234
1234
  }
@@ -1250,10 +1250,10 @@ function Ta() {
1250
1250
  }
1251
1251
  return Be(wa);
1252
1252
  }
1253
- const Ia = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Ia };
1253
+ const Ia = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), gt = { randomUUID: Ia };
1254
1254
  function Ge(e, t, r) {
1255
- if (yt.randomUUID && !t && !e)
1256
- return yt.randomUUID();
1255
+ if (gt.randomUUID && !e)
1256
+ return gt.randomUUID();
1257
1257
  e = e || {};
1258
1258
  const a = e.random || (e.rng || Ta)();
1259
1259
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ea(a);
@@ -1261,7 +1261,7 @@ function Ge(e, t, r) {
1261
1261
  const se = "Your session has expired. For your security, please log in again to continue.", Sa = "Your session has been successfully terminated.", Je = "Login failed. Please try again.", _a = "Error getting access token, please re-authenticate.", ka = "You forgot to wrap your component in <AuthProvider>.", xe = {
1262
1262
  dev: "https://auth.gizmette.local.com:3003",
1263
1263
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, Ie = "@@auth@@", ge = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", V = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
1264
+ }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", V = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
1265
1265
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1266
  $clientId: String!,
1267
1267
  $username: String!,
@@ -1374,7 +1374,7 @@ const se = "Your session has expired. For your security, please log in again to
1374
1374
  headers: {
1375
1375
  authorization: n,
1376
1376
  "Content-Type": Vt,
1377
- [Rt.CLIENT_ID]: `${r}`
1377
+ [Nt.CLIENT_ID]: `${r}`
1378
1378
  },
1379
1379
  body: JSON.stringify({
1380
1380
  query: t.schema,
@@ -1405,7 +1405,7 @@ const se = "Your session has expired. For your security, please log in again to
1405
1405
  method: Jt,
1406
1406
  headers: {
1407
1407
  "Content-Type": Vt,
1408
- [Rt.CLIENT_ID]: `${t}`
1408
+ [Nt.CLIENT_ID]: `${t}`
1409
1409
  },
1410
1410
  body: JSON.stringify(r)
1411
1411
  }
@@ -1427,14 +1427,14 @@ const se = "Your session has expired. For your security, please log in again to
1427
1427
  logoutReason: "",
1428
1428
  debug: !1,
1429
1429
  authenticationType: ""
1430
- }, va = (e) => {
1430
+ }, Ra = (e) => {
1431
1431
  try {
1432
1432
  const t = ca(e);
1433
1433
  return t ? t[A.USER_ID_KEY] : "";
1434
1434
  } catch {
1435
1435
  return "";
1436
1436
  }
1437
- }, Ra = async ({
1437
+ }, Na = async ({
1438
1438
  userId: e,
1439
1439
  clientId: t,
1440
1440
  domain: r,
@@ -1458,7 +1458,7 @@ const se = "Your session has expired. For your security, please log in again to
1458
1458
  status: V
1459
1459
  };
1460
1460
  }
1461
- }, Na = async ({
1461
+ }, va = async ({
1462
1462
  username: e,
1463
1463
  password: t,
1464
1464
  clientId: r,
@@ -1486,7 +1486,7 @@ const se = "Your session has expired. For your security, please log in again to
1486
1486
  domain: d,
1487
1487
  ua: h
1488
1488
  }
1489
- }), c = await ye((p = u == null ? void 0 : u.data) == null ? void 0 : p.idToken);
1489
+ }), c = await ge((p = u == null ? void 0 : u.data) == null ? void 0 : p.idToken);
1490
1490
  return c && c.payload[A.USER_ID_KEY] !== "" && c.payload[A.NONCE_KEY] === a ? {
1491
1491
  idToken: u.data.idToken,
1492
1492
  accessToken: u.data.accessToken,
@@ -1552,7 +1552,7 @@ const se = "Your session has expired. For your security, please log in again to
1552
1552
  accessToken: n,
1553
1553
  domain: o
1554
1554
  }
1555
- }), d = await ye((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1555
+ }), d = await ge((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1556
1556
  return d && d.payload[A.USER_ID_KEY] !== "" && d.payload[A.NONCE_KEY] === r ? {
1557
1557
  accessToken: i.data.accessToken,
1558
1558
  refreshToken: i.data.refreshToken,
@@ -1595,7 +1595,7 @@ class Oa {
1595
1595
  nonce: a,
1596
1596
  domain: n
1597
1597
  }) {
1598
- const o = await ye(this.refreshToken);
1598
+ const o = await ge(this.refreshToken);
1599
1599
  if (o && o.payload[A.USER_ID_KEY] !== "") {
1600
1600
  const s = await Ca({
1601
1601
  clientId: t,
@@ -1640,7 +1640,7 @@ const Pa = (e) => q(
1640
1640
  state: Ft,
1641
1641
  dispatch: () => {
1642
1642
  }
1643
- }), La = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1643
+ }), La = (e, t) => (t == null ? void 0 : t.type) === fe ? {
1644
1644
  ...e,
1645
1645
  isLoading: t.payload.isLoading
1646
1646
  } : (t == null ? void 0 : t.type) === ke ? {
@@ -1669,7 +1669,7 @@ const Pa = (e) => q(
1669
1669
  debug: n
1670
1670
  }), i = Pa(n), d = $(!1), [h, p, , u] = Te({
1671
1671
  key: `${Ie}::${r}::@@user@@`
1672
- }), [c, m, , f] = Te({
1672
+ }), [c, m, , y] = Te({
1673
1673
  key: `${Ie}::${r}::@@access@@`
1674
1674
  }), [E, w, , I] = Te(
1675
1675
  {
@@ -1677,39 +1677,39 @@ const Pa = (e) => q(
1677
1677
  }
1678
1678
  ), [U, K, , H] = Te({
1679
1679
  key: `${Ie}::${r}::@@nonce@@`
1680
- }), N = new Oa(c, E), P = q(() => {
1681
- i("removeLocalStorage: removing local storage"), u(), f(), I(), H();
1680
+ }), v = new Oa(c, E), P = q(() => {
1681
+ i("removeLocalStorage: removing local storage"), u(), y(), I(), H();
1682
1682
  }, [
1683
- f,
1683
+ y,
1684
1684
  u,
1685
1685
  H,
1686
1686
  I,
1687
1687
  i
1688
1688
  ]), W = q(
1689
- (y) => {
1689
+ (g) => {
1690
1690
  i(
1691
1691
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1692
- y
1692
+ g
1693
1693
  ), s({
1694
1694
  type: Bt,
1695
1695
  payload: {
1696
- logoutReason: y || se
1696
+ logoutReason: g || se
1697
1697
  }
1698
- }), P(), s({ type: ge, payload: { isLoading: !1 } });
1698
+ }), P(), s({ type: fe, payload: { isLoading: !1 } });
1699
1699
  },
1700
1700
  [P, i]
1701
1701
  ), x = q(
1702
- async (y) => {
1702
+ async (g) => {
1703
1703
  i("invalidateAndLogout: invalidating and logging out");
1704
- const { user: T } = o, b = (T == null ? void 0 : T.userId) || va(h);
1704
+ const { user: T } = o, b = (T == null ? void 0 : T.userId) || Ra(h);
1705
1705
  b || i(
1706
1706
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1707
- ), await Ra({
1707
+ ), await Na({
1708
1708
  userId: b,
1709
1709
  clientId: r,
1710
1710
  domain: a,
1711
1711
  idToken: h
1712
- }), W(y || se);
1712
+ }), W(g || se);
1713
1713
  },
1714
1714
  [h, o, r, a, W, i]
1715
1715
  );
@@ -1717,15 +1717,15 @@ const Pa = (e) => q(
1717
1717
  if (!d.current)
1718
1718
  return o.isLoading && h !== null ? (async () => {
1719
1719
  try {
1720
- const y = await ye(h);
1721
- y && y.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1720
+ const g = await ge(h);
1721
+ g && g.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1722
1722
  type: ke,
1723
1723
  payload: {
1724
- authenticationType: y.payload[A.AUTH_TYPE_KEY],
1724
+ authenticationType: g.payload[A.AUTH_TYPE_KEY],
1725
1725
  user: {
1726
- userId: y.payload[A.USER_ID_KEY],
1727
- username: y.payload[A.USERNAME_KEY],
1728
- email: y.payload[A.EMAIL_KEY]
1726
+ userId: g.payload[A.USER_ID_KEY],
1727
+ username: g.payload[A.USERNAME_KEY],
1728
+ email: g.payload[A.EMAIL_KEY]
1729
1729
  }
1730
1730
  }
1731
1731
  })) : (i("useEffect: invalid JWT, invalidating and logging out"), await x(se));
@@ -1734,22 +1734,22 @@ const Pa = (e) => q(
1734
1734
  "useEffect: exception validating JWT, invalidating and logging out"
1735
1735
  ), await x(se);
1736
1736
  }
1737
- })() : (i("useEffect: setting the loading state to false"), s({ type: ge, payload: { isLoading: !1 } })), () => {
1737
+ })() : (i("useEffect: setting the loading state to false"), s({ type: fe, payload: { isLoading: !1 } })), () => {
1738
1738
  d.current = !0;
1739
1739
  };
1740
1740
  }, [o.isLoading, h, x, i]);
1741
- const pe = async (y, T) => {
1742
- s({ type: ge, payload: { isLoading: !0 } }), P();
1741
+ const pe = async (g, T) => {
1742
+ s({ type: fe, payload: { isLoading: !0 } }), P();
1743
1743
  const b = Ge();
1744
1744
  K(b), i("login: Logging in with password");
1745
- const { code_verifier: re, code_challenge: ar } = await ya(), nt = await xa({
1745
+ const { code_verifier: re, code_challenge: ar } = await ga(), nt = await xa({
1746
1746
  nonce: b,
1747
1747
  clientId: r,
1748
1748
  code_challenge: ar
1749
1749
  });
1750
1750
  if (nt.status) {
1751
- const ae = await Na({
1752
- username: y,
1751
+ const ae = await va({
1752
+ username: g,
1753
1753
  password: T,
1754
1754
  clientId: r,
1755
1755
  sessionExpiration: t,
@@ -1766,27 +1766,27 @@ const Pa = (e) => q(
1766
1766
  authenticationType: ue.CODE,
1767
1767
  user: {
1768
1768
  userId: ae.userId,
1769
- username: y,
1769
+ username: g,
1770
1770
  email: ae.email
1771
1771
  }
1772
1772
  }
1773
1773
  }), !0) : (W(Je), !1);
1774
1774
  }
1775
1775
  return !1;
1776
- }, Z = async (y) => {
1777
- y == null || y.preventDefault(), await x(Sa);
1778
- }, v = async () => {
1779
- const { isAuthenticated: y, user: T } = o;
1776
+ }, Z = async (g) => {
1777
+ g == null || g.preventDefault(), await x(Sa);
1778
+ }, R = async () => {
1779
+ const { isAuthenticated: g, user: T } = o;
1780
1780
  try {
1781
- if (y && T && T.userId) {
1781
+ if (g && T && T.userId) {
1782
1782
  if (c) {
1783
1783
  i("getAccessToken");
1784
- const re = await ye(c);
1784
+ const re = await ge(c);
1785
1785
  if (re && re.payload[A.USER_ID_KEY] !== "")
1786
1786
  return c;
1787
1787
  }
1788
1788
  i("getAccessToken: invalid access token, trying to refresh it");
1789
- const b = await N.refreshtoken({
1789
+ const b = await v.refreshtoken({
1790
1790
  clientId: r,
1791
1791
  userId: T.userId,
1792
1792
  nonce: U,
@@ -1805,15 +1805,15 @@ const Pa = (e) => q(
1805
1805
  ), await x(_a), "";
1806
1806
  }
1807
1807
  }, D = () => o.isAuthenticated && h ? h : "", B = async () => {
1808
- const { user: y } = o;
1808
+ const { user: g } = o;
1809
1809
  let T = await ce({
1810
1810
  accessToken: c,
1811
1811
  clientId: r,
1812
1812
  type: ie.GET_REGISTRATION_OPTIONS,
1813
1813
  params: {
1814
1814
  clientId: r,
1815
- id: y == null ? void 0 : y.userId,
1816
- username: y == null ? void 0 : y.username
1815
+ id: g == null ? void 0 : g.userId,
1816
+ username: g == null ? void 0 : g.username
1817
1817
  }
1818
1818
  });
1819
1819
  if (T.status)
@@ -1825,8 +1825,8 @@ const Pa = (e) => q(
1825
1825
  type: ie.VERIFY_REGISTRATION,
1826
1826
  params: {
1827
1827
  clientId: r,
1828
- id: y == null ? void 0 : y.userId,
1829
- username: y == null ? void 0 : y.username,
1828
+ id: g == null ? void 0 : g.userId,
1829
+ username: g == null ? void 0 : g.username,
1830
1830
  registration: b
1831
1831
  }
1832
1832
  }), !!(T.status && T.data.length > 0);
@@ -1837,17 +1837,17 @@ const Pa = (e) => q(
1837
1837
  type: ie.VERIFY_REGISTRATION,
1838
1838
  params: {
1839
1839
  clientId: r,
1840
- id: y == null ? void 0 : y.userId,
1841
- username: y == null ? void 0 : y.username,
1840
+ id: g == null ? void 0 : g.userId,
1841
+ username: g == null ? void 0 : g.username,
1842
1842
  registration: {}
1843
1843
  }
1844
1844
  }), !1;
1845
1845
  }
1846
1846
  return !1;
1847
1847
  }, ee = async () => {
1848
- s({ type: ge, payload: { isLoading: !0 } }), P();
1849
- const y = Ge();
1850
- K(y), i("loginWithPasskey");
1848
+ s({ type: fe, payload: { isLoading: !0 } }), P();
1849
+ const g = Ge();
1850
+ K(g), i("loginWithPasskey");
1851
1851
  const T = Ge();
1852
1852
  let b = await ce({
1853
1853
  accessToken: c,
@@ -1860,7 +1860,7 @@ const Pa = (e) => q(
1860
1860
  });
1861
1861
  if (b.status)
1862
1862
  try {
1863
- const re = await yr(b.data);
1863
+ const re = await gr(b.data);
1864
1864
  return b = await ce({
1865
1865
  accessToken: c,
1866
1866
  clientId: r,
@@ -1869,7 +1869,7 @@ const Pa = (e) => q(
1869
1869
  clientId: r,
1870
1870
  id: T,
1871
1871
  authentication: re,
1872
- nonce: y,
1872
+ nonce: g,
1873
1873
  domain: a,
1874
1874
  sessionExpiration: t,
1875
1875
  ua: navigator.userAgent
@@ -1894,7 +1894,7 @@ const Pa = (e) => q(
1894
1894
  clientId: r,
1895
1895
  id: T,
1896
1896
  authentication: {},
1897
- nonce: y,
1897
+ nonce: g,
1898
1898
  domain: a,
1899
1899
  sessionExpiration: t
1900
1900
  }
@@ -1909,7 +1909,7 @@ const Pa = (e) => q(
1909
1909
  ...o,
1910
1910
  login: pe,
1911
1911
  logout: Z,
1912
- getAccessToken: v,
1912
+ getAccessToken: R,
1913
1913
  getIdToken: D,
1914
1914
  registeringForPasskey: B,
1915
1915
  loginWithPasskey: ee
@@ -1917,7 +1917,7 @@ const Pa = (e) => q(
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, zt = (e = jt) => Tt(e), co = "user", lo = "assistant", uo = "system", mo = "internal", ho = "hidden", po = "I'm having trouble right now. Please try again later.", go = "OpenAI", yo = "OpenAI", fo = "Anthropic", bo = "action-message", Eo = "action-reset", wo = "action-model", To = "action-restore", Io = "action-streaming", So = "action-search", _o = "action-sort", ko = "action-toggle-prompt", Ao = "action-reset-prompt", vo = "sassy-saint-", Ro = "details", No = "search", xo = "sort", Co = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Oo = 10, Po = 30, Do = "av-prompt", Lo = "av-prompt-editable", ft = (e) => Number.isFinite(e) ? e : 0;
1920
+ }, zt = (e = jt) => Tt(e), co = "user", lo = "assistant", uo = "system", mo = "internal", ho = "hidden", po = "I'm having trouble right now. Please try again later.", fo = "OpenAI", go = "OpenAI", yo = "Anthropic", bo = "action-message", Eo = "action-reset", wo = "action-model", To = "action-restore", Io = "action-streaming", So = "action-search", _o = "action-sort", ko = "action-toggle-prompt", Ao = "action-reset-prompt", Ro = "sassy-saint-", No = "details", vo = "search", xo = "sort", Co = "==stats==", $a = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Oo = 10, Po = 30, Do = "av-prompt", Lo = "av-prompt-editable", yt = (e) => Number.isFinite(e) ? e : 0;
1921
1921
  function Ua(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
@@ -1925,8 +1925,8 @@ function Ua(e) {
1925
1925
  minutes: Math.trunc(e / 6e4 % 60),
1926
1926
  seconds: Math.trunc(e / 1e3 % 60),
1927
1927
  milliseconds: Math.trunc(e % 1e3),
1928
- microseconds: Math.trunc(ft(e * 1e3) % 1e3),
1929
- nanoseconds: Math.trunc(ft(e * 1e6) % 1e3)
1928
+ microseconds: Math.trunc(yt(e * 1e3) % 1e3),
1929
+ nanoseconds: Math.trunc(yt(e * 1e6) % 1e3)
1930
1930
  };
1931
1931
  }
1932
1932
  function Ka(e) {
@@ -1967,8 +1967,8 @@ function Va(e, t) {
1967
1967
  }, s = (p, u, c, m) => {
1968
1968
  if (!((n.length === 0 || !t.colonNotation) && Wa(p) && !(t.colonNotation && c === "m"))) {
1969
1969
  if (m ?? (m = String(p)), t.colonNotation) {
1970
- const f = m.includes(".") ? m.split(".")[0].length : m.length, E = n.length > 0 ? 2 : 1;
1971
- m = "0".repeat(Math.max(0, E - f)) + m;
1970
+ const y = m.includes(".") ? m.split(".")[0].length : m.length, E = n.length > 0 ? 2 : 1;
1971
+ m = "0".repeat(Math.max(0, E - y)) + m;
1972
1972
  } else
1973
1973
  m += t.verbose ? " " + Ba(u, p) : c;
1974
1974
  n.push(m);
@@ -1980,7 +1980,7 @@ function Va(e, t) {
1980
1980
  if (s(p, "second", "s"), t.formatSubMilliseconds)
1981
1981
  s(u, "millisecond", "ms"), s(c, "microsecond", "µs"), s(m, "nanosecond", "ns");
1982
1982
  else {
1983
- const f = u + c / 1e3 + m / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, w = f >= 1 ? Math.round(f) : Math.ceil(f), I = E ? f.toFixed(E) : w;
1983
+ const y = u + c / 1e3 + m / 1e6, E = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, w = y >= 1 ? Math.round(y) : Math.ceil(y), I = E ? y.toFixed(E) : w;
1984
1984
  s(
1985
1985
  Number.parseFloat(I),
1986
1986
  "millisecond",
@@ -2055,13 +2055,13 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2055
2055
  }) : "N/A", za = ({
2056
2056
  isAuthenticated: e,
2057
2057
  extraClass: t
2058
- }) => g(
2058
+ }) => f(
2059
2059
  "flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2060
2060
  e ? "pt-0" : "pt-10",
2061
2061
  t
2062
2062
  ), qa = ({
2063
2063
  extraClass: e
2064
- }) => g("px-2 sm:px-0", e), Ho = (e, t) => t === 1 ? e : `${e}s`, Wo = (e, t) => {
2064
+ }) => f("px-2 sm:px-0", e), Ho = (e, t) => t === 1 ? e : `${e}s`, Wo = (e, t) => {
2065
2065
  let r;
2066
2066
  return (...a) => {
2067
2067
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
@@ -2077,13 +2077,13 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2077
2077
  switch (e) {
2078
2078
  case tt:
2079
2079
  case ze:
2080
- return g({
2080
+ return f({
2081
2081
  [o]: t === "small",
2082
2082
  [s]: t === "medium",
2083
2083
  [i]: t === "large"
2084
2084
  });
2085
2085
  case Le:
2086
- return g("inline-flex items-center", {
2086
+ return f("inline-flex items-center", {
2087
2087
  "justify-center": n === "center",
2088
2088
  "justify-start": n === "left",
2089
2089
  "justify-end": n === "right",
@@ -2105,14 +2105,14 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2105
2105
  switch (e) {
2106
2106
  case tt:
2107
2107
  case ze:
2108
- return g({
2108
+ return f({
2109
2109
  "text-center": e === ze,
2110
2110
  [n]: t === "small",
2111
2111
  [o]: t === "medium",
2112
2112
  [s]: t === "large"
2113
2113
  });
2114
2114
  case Le:
2115
- return g({
2115
+ return f({
2116
2116
  [n]: t === "small" && (r || a),
2117
2117
  [o]: t === "medium" && (r || a),
2118
2118
  [s]: t === "large" && (r || a)
@@ -2127,7 +2127,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2127
2127
  if (t)
2128
2128
  return "not-prose";
2129
2129
  if (a === "primary")
2130
- return g("not-prose", {
2130
+ return f("not-prose", {
2131
2131
  truncate: !r,
2132
2132
  "text-copy-light": e === "dark" || e === "system",
2133
2133
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -2135,7 +2135,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2135
2135
  "dark:text-copy-light": e === "alt-system"
2136
2136
  });
2137
2137
  if (a === "secondary")
2138
- return g("not-prose", {
2138
+ return f("not-prose", {
2139
2139
  truncate: !r,
2140
2140
  "text-copy-light": e === "light" || e === "system",
2141
2141
  "text-copy-lighter": e === "dark" || e === "alt-system",
@@ -2143,7 +2143,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2143
2143
  "dark:text-copy-light": e === "system"
2144
2144
  });
2145
2145
  if (a === "danger")
2146
- return g("not-prose", {
2146
+ return f("not-prose", {
2147
2147
  truncate: !r,
2148
2148
  "text-copy-light": e === "dark" || e === "system",
2149
2149
  "text-copy-lighter": e === "light" || e === "alt-system",
@@ -2151,7 +2151,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2151
2151
  "dark:text-copy-light": e === "alt-system"
2152
2152
  });
2153
2153
  if (a === "selected")
2154
- return g("not-prose text-copy-lighter", {
2154
+ return f("not-prose text-copy-lighter", {
2155
2155
  truncate: !r
2156
2156
  });
2157
2157
  }, en = ({
@@ -2161,21 +2161,21 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2161
2161
  }) => {
2162
2162
  if (!t) {
2163
2163
  if (r === "primary")
2164
- return g({
2164
+ return f({
2165
2165
  "bg-action-dark": e === "dark",
2166
2166
  "bg-action-light": e === "light",
2167
2167
  "bg-action-dark dark:bg-action-light": e === "system",
2168
2168
  "bg-action-light dark:bg-action-dark": e === "alt-system"
2169
2169
  });
2170
2170
  if (r === "secondary")
2171
- return g({
2171
+ return f({
2172
2172
  "bg-action-dark": e === "light",
2173
2173
  "bg-action-light": e === "dark",
2174
2174
  "bg-action-dark dark:bg-action-light": e === "alt-system",
2175
2175
  "bg-action-light dark:bg-action-dark": e === "system"
2176
2176
  });
2177
2177
  if (r === "danger")
2178
- return g({
2178
+ return f({
2179
2179
  "bg-action-danger-dark": e === "dark",
2180
2180
  "bg-action-danger-light": e === "light",
2181
2181
  "bg-action-danger-dark dark:bg-action-danger-light": e === "system",
@@ -2186,7 +2186,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2186
2186
  }
2187
2187
  }, tn = ({
2188
2188
  radius: e
2189
- }) => g({
2189
+ }) => f({
2190
2190
  "rounded-full": e === "large",
2191
2191
  "rounded-md": e === "medium",
2192
2192
  "rounded-sm": e === "small"
@@ -2198,21 +2198,21 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2198
2198
  if (t)
2199
2199
  return "";
2200
2200
  if (r === "primary")
2201
- return g("hover:text-copy-light-hover", {
2201
+ return f("hover:text-copy-light-hover", {
2202
2202
  "hover:bg-action-dark-hover": e === "dark",
2203
2203
  "hover:bg-action-light-hover": e === "light",
2204
2204
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
2205
2205
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
2206
2206
  });
2207
2207
  if (r === "secondary")
2208
- return g("hover:text-copy-light-hover", {
2208
+ return f("hover:text-copy-light-hover", {
2209
2209
  "hover:bg-action-dark-hover": e === "light",
2210
2210
  "hover:bg-action-light-hover": e === "dark",
2211
2211
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
2212
2212
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
2213
2213
  });
2214
2214
  if (r === "danger")
2215
- return g("hover:text-copy-light-hover", {
2215
+ return f("hover:text-copy-light-hover", {
2216
2216
  "hover:bg-action-danger-dark-hover": e === "dark",
2217
2217
  "hover:bg-action-danger-light-hover": e === "light",
2218
2218
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
@@ -2228,21 +2228,21 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2228
2228
  if (t)
2229
2229
  return "";
2230
2230
  if (r === "primary")
2231
- return g("active:text-copy-light-active", {
2231
+ return f("active:text-copy-light-active", {
2232
2232
  "active:bg-action-dark-active": e === "dark",
2233
2233
  "active:bg-action-light-active": e === "light",
2234
2234
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
2235
2235
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
2236
2236
  });
2237
2237
  if (r === "secondary")
2238
- return g("active:text-copy-light-active", {
2238
+ return f("active:text-copy-light-active", {
2239
2239
  "active:bg-action-dark-active": e === "light",
2240
2240
  "active:bg-action-light-active": e === "dark",
2241
2241
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
2242
2242
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
2243
2243
  });
2244
2244
  if (r === "danger")
2245
- return g("active:text-copy-lighter-active", {
2245
+ return f("active:text-copy-lighter-active", {
2246
2246
  "active:bg-action-danger-dark-active": e === "dark",
2247
2247
  "active:bg-action-danger-light-active": e === "light",
2248
2248
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
@@ -2258,21 +2258,21 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2258
2258
  if (t)
2259
2259
  return "border border-transparent";
2260
2260
  if (r === "primary")
2261
- return g("border", {
2261
+ return f("border", {
2262
2262
  "border-border-dark": e === "dark",
2263
2263
  "border-border-accent": e === "light",
2264
2264
  "border-border-dark dark:border-border-accent": e === "system",
2265
2265
  "border-border-accent dark:border-border-dark": e === "alt-system"
2266
2266
  });
2267
2267
  if (r === "secondary")
2268
- return g("border", {
2268
+ return f("border", {
2269
2269
  "border-border-dark": e === "light",
2270
2270
  "border-border-accent": e === "dark",
2271
2271
  "border-border-dark dark:border-border-accent": e === "alt-system",
2272
2272
  "border-border-accent dark:border-border-dark": e === "system"
2273
2273
  });
2274
2274
  if (r === "danger")
2275
- return g("border", {
2275
+ return f("border", {
2276
2276
  "border-border-danger-dark": e === "dark",
2277
2277
  "border-border-danger-medium": e === "light",
2278
2278
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
@@ -2282,7 +2282,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2282
2282
  return "border border-border-selected-dark";
2283
2283
  }, on = ({
2284
2284
  focusMode: e
2285
- }) => g("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2285
+ }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2286
2286
  "focus:outline-focus-dark": e === "dark",
2287
2287
  "focus:outline-focus-light": e === "light",
2288
2288
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -2291,7 +2291,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2291
2291
  mode: e,
2292
2292
  raw: t,
2293
2293
  iconClassName: r
2294
- }) => t ? "" : g(
2294
+ }) => t ? "" : f(
2295
2295
  {
2296
2296
  "text-copy-accent-dark": e === "light" || e === "alt-system",
2297
2297
  "text-copy-light": e === "dark" || e === "system",
@@ -2314,9 +2314,9 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2314
2314
  noBackground: u,
2315
2315
  variant: c,
2316
2316
  noTruncate: m,
2317
- align: f,
2317
+ align: y,
2318
2318
  radius: E
2319
- }) => (c || (c = "primary"), r ? g(bt, t) : g(
2319
+ }) => (c || (c = "primary"), r ? f(bt, t) : f(
2320
2320
  bt,
2321
2321
  Za({
2322
2322
  mode: a,
@@ -2331,7 +2331,7 @@ const Ya = process.env.NODE_ENV === "production", Fa = !Ya, ja = Fa ? "gizmette.
2331
2331
  size: i,
2332
2332
  labelRight: h,
2333
2333
  labelLeft: p,
2334
- align: f
2334
+ align: y
2335
2335
  }),
2336
2336
  Qa({ type: e, size: i, labelRight: h, labelLeft: p }),
2337
2337
  nn({ mode: a, variant: c, noBorder: d }),
@@ -2376,7 +2376,7 @@ const qt = F.forwardRef(
2376
2376
  radius: u = "large",
2377
2377
  ...c
2378
2378
  }, m) => {
2379
- const f = rt({
2379
+ const y = rt({
2380
2380
  type: tt,
2381
2381
  mode: r,
2382
2382
  focusMode: a,
@@ -2394,7 +2394,7 @@ const qt = F.forwardRef(
2394
2394
  Me,
2395
2395
  {
2396
2396
  ref: m,
2397
- className: f,
2397
+ className: y,
2398
2398
  disabled: t,
2399
2399
  ...c,
2400
2400
  children: e
@@ -2419,14 +2419,14 @@ const qe = F.forwardRef(
2419
2419
  size: u = "medium",
2420
2420
  labelRight: c,
2421
2421
  labelLeft: m,
2422
- noBackground: f = !1,
2422
+ noBackground: y = !1,
2423
2423
  align: E = "center",
2424
2424
  radius: w = "large",
2425
2425
  variant: I = "primary",
2426
2426
  iconClassName: U,
2427
2427
  ...K
2428
2428
  }, H) => {
2429
- const N = rt({
2429
+ const v = rt({
2430
2430
  type: Le,
2431
2431
  mode: r,
2432
2432
  focusMode: a,
@@ -2438,7 +2438,7 @@ const qe = F.forwardRef(
2438
2438
  size: u,
2439
2439
  labelRight: c,
2440
2440
  labelLeft: m,
2441
- noBackground: f,
2441
+ noBackground: y,
2442
2442
  align: E,
2443
2443
  radius: w,
2444
2444
  variant: I
@@ -2447,7 +2447,7 @@ const qe = F.forwardRef(
2447
2447
  Me,
2448
2448
  {
2449
2449
  ref: H,
2450
- className: N,
2450
+ className: v,
2451
2451
  disabled: t,
2452
2452
  type: s,
2453
2453
  "aria-label": h || p,
@@ -2491,7 +2491,7 @@ const ln = F.forwardRef(
2491
2491
  size: u = "medium",
2492
2492
  labelRight: c,
2493
2493
  labelLeft: m,
2494
- noBackground: f = !1,
2494
+ noBackground: y = !1,
2495
2495
  align: E = "center",
2496
2496
  active: w = !1,
2497
2497
  radius: I = "large",
@@ -2509,15 +2509,15 @@ const ln = F.forwardRef(
2509
2509
  size: u,
2510
2510
  labelRight: c,
2511
2511
  labelLeft: m,
2512
- noBackground: f,
2512
+ noBackground: y,
2513
2513
  align: E,
2514
2514
  radius: I
2515
- }), N = g({
2515
+ }), v = f({
2516
2516
  "text-copy-accent-dark": r === "light" && !i,
2517
2517
  "text-copy-light": r === "dark" && !i,
2518
2518
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2519
2519
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2520
- }), P = w ? g(
2520
+ }), P = w ? f(
2521
2521
  "relative",
2522
2522
  "focus-within:static",
2523
2523
  "focus-within:after:border-transparent",
@@ -2545,7 +2545,7 @@ const ln = F.forwardRef(
2545
2545
  ...U,
2546
2546
  children: [
2547
2547
  m && /* @__PURE__ */ l("span", { className: "pr-2", children: m }),
2548
- /* @__PURE__ */ l("div", { className: N, children: e }),
2548
+ /* @__PURE__ */ l("div", { className: v, children: e }),
2549
2549
  c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
2550
2550
  ]
2551
2551
  }
@@ -2580,7 +2580,7 @@ const un = ({
2580
2580
  compact: o,
2581
2581
  noBorder: s
2582
2582
  }) => {
2583
- const i = g(
2583
+ const i = f(
2584
2584
  Ae,
2585
2585
  "rounded-md",
2586
2586
  {
@@ -2595,7 +2595,7 @@ const un = ({
2595
2595
  "border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": n === "alt-system"
2596
2596
  },
2597
2597
  e
2598
- ), d = t || g(`${Ae}__header mt-0 border-b-2`, {
2598
+ ), d = t || f(`${Ae}__header mt-0 border-b-2`, {
2599
2599
  "text-copy-light border-border-accent": n === "darker",
2600
2600
  "border-border-accent": n === "dark",
2601
2601
  "border-border-medium": n === "light",
@@ -2603,7 +2603,7 @@ const un = ({
2603
2603
  "border-border-accent dark:border-border-medium": n === "alt-system",
2604
2604
  "mb-4": !o,
2605
2605
  "mb-2": o
2606
- }), h = g(r), p = a || g(`${Ae}__footer pt-2`);
2606
+ }), h = f(r), p = a || f(`${Ae}__footer pt-2`);
2607
2607
  return {
2608
2608
  wrapper: i,
2609
2609
  header: d,
@@ -2634,7 +2634,7 @@ const hn = ({
2634
2634
  ...u
2635
2635
  }) => {
2636
2636
  let c = null, m = null;
2637
- const f = typeof e == "string", E = dn(Ae), w = un({
2637
+ const y = typeof e == "string", E = dn(Ae), w = un({
2638
2638
  className: o,
2639
2639
  headerClassName: t,
2640
2640
  bodyClassName: s,
@@ -2643,7 +2643,7 @@ const hn = ({
2643
2643
  compact: h,
2644
2644
  noBorder: p
2645
2645
  });
2646
- return f ? (c = E, m = c) : !f && e && i ? (c = null, m = i) : !f && e && !i ? (c = E, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ O(
2646
+ return y ? (c = E, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = E, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ O(
2647
2647
  "section",
2648
2648
  {
2649
2649
  ...m && {
@@ -2677,7 +2677,7 @@ const hn = ({
2677
2677
  semantic: i = !1,
2678
2678
  ...d
2679
2679
  }) => {
2680
- const h = g(o, a);
2680
+ const h = f(o, a);
2681
2681
  return /* @__PURE__ */ O(Qe, { children: [
2682
2682
  /* @__PURE__ */ l(
2683
2683
  "svg",
@@ -2726,7 +2726,7 @@ const pn = ({
2726
2726
  ...n,
2727
2727
  children: /* @__PURE__ */ l("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" })
2728
2728
  }
2729
- ), gn = ({
2729
+ ), fn = ({
2730
2730
  className: e,
2731
2731
  viewBox: t,
2732
2732
  title: r,
@@ -2752,7 +2752,7 @@ const pn = ({
2752
2752
  /* @__PURE__ */ l("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" })
2753
2753
  ]
2754
2754
  }
2755
- ), yn = ({
2755
+ ), gn = ({
2756
2756
  className: e,
2757
2757
  viewBox: t,
2758
2758
  title: r,
@@ -2788,7 +2788,7 @@ const pn = ({
2788
2788
  ]
2789
2789
  }
2790
2790
  );
2791
- }, fn = ({
2791
+ }, yn = ({
2792
2792
  className: e,
2793
2793
  viewBox: t,
2794
2794
  title: r,
@@ -2848,7 +2848,7 @@ const bn = "av-main", En = ({
2848
2848
  noMargin: a = !1,
2849
2849
  noPadding: n = !1
2850
2850
  }) => {
2851
- const o = g(
2851
+ const o = f(
2852
2852
  bn,
2853
2853
  {
2854
2854
  "mt-2 sm:mt-3": !r && !a,
@@ -2886,12 +2886,12 @@ const bn = "av-main", En = ({
2886
2886
  */
2887
2887
  marginLeft: r * -1 * Ce + "rem",
2888
2888
  marginTop: a * -1 * Ce + "rem"
2889
- }, u = g(
2889
+ }, u = f(
2890
2890
  wn,
2891
2891
  "box-border flex flex-wrap"
2892
2892
  ), c = { columnGap: r, rowGap: a };
2893
2893
  return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: p, ...h, children: /* @__PURE__ */ l(Xe.Provider, { value: c, children: e }) });
2894
- }, Ve = (e, t) => g({
2894
+ }, Ve = (e, t) => f({
2895
2895
  "basis-1/12": e === 1 && !t,
2896
2896
  "sm:basis-1/12": e === 1 && t === "sm",
2897
2897
  "md:basis-1/12": e === 1 && t === "md",
@@ -2969,18 +2969,18 @@ const bn = "av-main", En = ({
2969
2969
  span: t
2970
2970
  }) => {
2971
2971
  if (!t)
2972
- return g(e, _e, "box-border basis-auto");
2972
+ return f(e, _e, "box-border basis-auto");
2973
2973
  if (typeof t == "number")
2974
- return g(e, _e, "box-border max-w-full", {
2974
+ return f(e, _e, "box-border max-w-full", {
2975
2975
  [`${Ve(t)}`]: !0
2976
2976
  });
2977
2977
  if (typeof t == "string")
2978
- return g(e, _e, "box-border basis-auto", {
2978
+ return f(e, _e, "box-border basis-auto", {
2979
2979
  "max-w-full grow": t === "auto"
2980
2980
  });
2981
2981
  if (typeof t == "object") {
2982
2982
  const r = Object.entries(t).map(([a, n]) => a === "fallback" ? Ve(n) : Ve(n, a));
2983
- return g(
2983
+ return f(
2984
2984
  e,
2985
2985
  _e,
2986
2986
  "box-border",
@@ -3043,7 +3043,7 @@ function An(e) {
3043
3043
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3044
3044
  }), [s, e]), [a, n];
3045
3045
  }
3046
- function vn(e) {
3046
+ function Rn(e) {
3047
3047
  const t = It();
3048
3048
  if (!e)
3049
3049
  return t;
@@ -3054,7 +3054,7 @@ function vn(e) {
3054
3054
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
3055
3055
  }
3056
3056
  }
3057
- const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", Rn = {
3057
+ const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", Nn = {
3058
3058
  alert: null,
3059
3059
  alertdialog: null,
3060
3060
  log: "polite",
@@ -3062,7 +3062,7 @@ const Qt = "SET_ANNOUNCEMENT", Zt = "CLEAR_ANNOUNCEMENT", Rn = {
3062
3062
  progressbar: null,
3063
3063
  status: "polite",
3064
3064
  timer: "assertive"
3065
- }, Nn = (e, t) => {
3065
+ }, vn = (e, t) => {
3066
3066
  switch (t == null ? void 0 : t.type) {
3067
3067
  case Qt:
3068
3068
  return {
@@ -3135,11 +3135,11 @@ function er({
3135
3135
  visible: i,
3136
3136
  ...d
3137
3137
  }) {
3138
- const h = $(null), p = $(null), [u, c] = wt(Nn, {
3138
+ const h = $(null), p = $(null), [u, c] = wt(vn, {
3139
3139
  announcement: null
3140
3140
  });
3141
3141
  let m = r;
3142
- typeof m > "u" && (m = a ? Rn[a] : "assertive"), Q(() => {
3142
+ typeof m > "u" && (m = a ? Nn[a] : "assertive"), Q(() => {
3143
3143
  Cn({
3144
3144
  announcementTimeoutRef: h,
3145
3145
  announcementDelay: n,
@@ -3155,7 +3155,7 @@ function er({
3155
3155
  o,
3156
3156
  s
3157
3157
  ]);
3158
- const f = g(t, {
3158
+ const y = f(t, {
3159
3159
  "sr-only": !i
3160
3160
  });
3161
3161
  return /* @__PURE__ */ l(
@@ -3163,7 +3163,7 @@ function er({
3163
3163
  {
3164
3164
  "aria-live": m,
3165
3165
  ...a && { role: a },
3166
- className: f,
3166
+ className: y,
3167
3167
  ...d,
3168
3168
  children: u.announcement
3169
3169
  }
@@ -3184,14 +3184,14 @@ try {
3184
3184
  }
3185
3185
  const On = ({
3186
3186
  mode: e
3187
- }) => g({
3187
+ }) => f({
3188
3188
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3189
3189
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3190
3190
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3191
3191
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
3192
3192
  }), Pn = ({
3193
3193
  focusMode: e
3194
- }) => g("focus:outline focus:outline-2 focus:outline-offset-2", {
3194
+ }) => f("focus:outline focus:outline-2 focus:outline-offset-2", {
3195
3195
  "focus:outline-focus-dark": e === "dark",
3196
3196
  "focus:outline-focus-light": e === "light",
3197
3197
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -3199,7 +3199,7 @@ const On = ({
3199
3199
  }), Dn = ({
3200
3200
  noBorder: e,
3201
3201
  error: t
3202
- }) => g("border-2", {
3202
+ }) => f("border-2", {
3203
3203
  "border-border-dark": !e && !t,
3204
3204
  "focus:border-border-dark": !e && t,
3205
3205
  "border-border-error-dark": !e && t,
@@ -3213,16 +3213,16 @@ const On = ({
3213
3213
  if (t)
3214
3214
  return "";
3215
3215
  if (e)
3216
- return g("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3216
+ return f("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3217
3217
  if (!r)
3218
- return g("absolute px-2 cursor-text font-medium", {
3218
+ return f("absolute px-2 cursor-text font-medium", {
3219
3219
  "text-copy-lighter": a === "dark",
3220
3220
  "text-copy-dark": a === "light",
3221
3221
  "text-copy-dark dark:text-copy-lighter": a === "system",
3222
3222
  "text-copy-lighter dark:text-copy-dark": a === "alt-system"
3223
3223
  });
3224
3224
  if (r)
3225
- return g("absolute px-2 cursor-text font-medium", {
3225
+ return f("absolute px-2 cursor-text font-medium", {
3226
3226
  "text-copy-lighter": a === "dark",
3227
3227
  "text-copy-error-dark": a === "light",
3228
3228
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
@@ -3237,19 +3237,19 @@ const On = ({
3237
3237
  if (t)
3238
3238
  return "";
3239
3239
  if (a)
3240
- return g(
3240
+ return f(
3241
3241
  Ye,
3242
3242
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
3243
3243
  );
3244
3244
  if (!e)
3245
- return g(Ye, "absolute px-2 font-medium", {
3245
+ return f(Ye, "absolute px-2 font-medium", {
3246
3246
  "text-copy-lighter": r === "dark",
3247
3247
  "text-copy-dark": r === "light",
3248
3248
  "text-copy-dark dark:text-copy-lighter": r === "system",
3249
3249
  "text-copy-lighter dark:text-copy-dark": r === "alt-system"
3250
3250
  });
3251
3251
  if (e)
3252
- return g(Ye, "absolute px-2 font-medium", {
3252
+ return f(Ye, "absolute px-2 font-medium", {
3253
3253
  "text-copy-error-light bg-surface-darker": r === "dark",
3254
3254
  "text-copy-error-dark": r === "light",
3255
3255
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
@@ -3267,7 +3267,7 @@ const On = ({
3267
3267
  size: d,
3268
3268
  rightElementClassName: h
3269
3269
  }) => {
3270
- const p = r ? e : g(
3270
+ const p = r ? e : f(
3271
3271
  "relative flex w-full flex-col justify-center",
3272
3272
  Sn,
3273
3273
  e
@@ -3290,7 +3290,7 @@ const On = ({
3290
3290
  u = "h-12";
3291
3291
  break;
3292
3292
  }
3293
- const c = r ? g(t) : g(
3293
+ const c = r ? f(t) : f(
3294
3294
  Xt,
3295
3295
  u,
3296
3296
  "rounded-md text-base px-4",
@@ -3301,7 +3301,7 @@ const On = ({
3301
3301
  "disabled:cursor-not-allowed disabled:opacity-50": a
3302
3302
  },
3303
3303
  t
3304
- ), m = r ? void 0 : "sr-only", f = Ln({
3304
+ ), m = r ? void 0 : "sr-only", y = Ln({
3305
3305
  disabled: a,
3306
3306
  raw: r,
3307
3307
  error: o,
@@ -3311,12 +3311,12 @@ const On = ({
3311
3311
  raw: r,
3312
3312
  mode: s,
3313
3313
  disabled: a
3314
- }), w = r ? void 0 : g("absolute right-3", h);
3314
+ }), w = r ? void 0 : f("absolute right-3", h);
3315
3315
  return {
3316
3316
  wrapper: p,
3317
3317
  input: c,
3318
3318
  accessibleLabel: m,
3319
- visibleLabel: f,
3319
+ visibleLabel: y,
3320
3320
  helperText: E,
3321
3321
  rightElement: w
3322
3322
  };
@@ -3336,13 +3336,13 @@ const On = ({
3336
3336
  labelId: u,
3337
3337
  labelHidden: c = !1,
3338
3338
  type: m = "text",
3339
- helperText: f = "",
3339
+ helperText: y = "",
3340
3340
  rightElement: E,
3341
3341
  rightElementClassName: w,
3342
3342
  size: I = "md",
3343
3343
  ...U
3344
3344
  }, K) => {
3345
- const [H, N] = An(), [P, W] = z(0), x = vn({ id: e, prefix: `${Xt}-` }), pe = `${t} error, ${f}`, Z = $(null), v = $(null), D = {
3345
+ const [H, v] = An(), [P, W] = z(0), x = Rn({ id: e, prefix: `${Xt}-` }), pe = `${t} error, ${y}`, Z = $(null), R = $(null), D = {
3346
3346
  xs: { label: "-25px", helperText: "30px" },
3347
3347
  sm: { label: "-29px", helperText: "34px" },
3348
3348
  md: { label: "-33px", helperText: "38px" },
@@ -3361,11 +3361,11 @@ const On = ({
3361
3361
  rightElementClassName: w
3362
3362
  });
3363
3363
  return ot(() => {
3364
- N && N.width && W(N.width + 18 + 10);
3365
- }, [N]), ot(() => {
3366
- var ee, y;
3364
+ v && v.width && W(v.width + 18 + 10);
3365
+ }, [v]), ot(() => {
3366
+ var ee, g;
3367
3367
  const { label: T, helperText: b } = D[I];
3368
- (ee = Z == null ? void 0 : Z.current) == null || ee.style.setProperty("--av-text-input-label", T), (y = v == null ? void 0 : v.current) == null || y.style.setProperty(
3368
+ (ee = Z == null ? void 0 : Z.current) == null || ee.style.setProperty("--av-text-input-label", T), (g = R == null ? void 0 : R.current) == null || g.style.setProperty(
3369
3369
  "--av-text-input-helper-text",
3370
3370
  b
3371
3371
  );
@@ -3389,7 +3389,7 @@ const On = ({
3389
3389
  disabled: h,
3390
3390
  placeholder: n ? void 0 : " ",
3391
3391
  className: B.input,
3392
- ...f && { "aria-describedby": `${x}-helper` },
3392
+ ...y && { "aria-describedby": `${x}-helper` },
3393
3393
  ...a && { "aria-invalid": "true" },
3394
3394
  ...E && !n && { style: { paddingRight: P } },
3395
3395
  ...U
@@ -3405,13 +3405,13 @@ const On = ({
3405
3405
  children: r
3406
3406
  }
3407
3407
  ),
3408
- f && /* @__PURE__ */ l(
3408
+ y && /* @__PURE__ */ l(
3409
3409
  "div",
3410
3410
  {
3411
- ref: v,
3411
+ ref: R,
3412
3412
  id: `${x}-helper`,
3413
3413
  className: B.helperText,
3414
- children: f
3414
+ children: y
3415
3415
  }
3416
3416
  ),
3417
3417
  E && /* @__PURE__ */ l(
@@ -3422,7 +3422,7 @@ const On = ({
3422
3422
  children: E
3423
3423
  }
3424
3424
  ),
3425
- a && f && /* @__PURE__ */ l(er, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3425
+ a && y && /* @__PURE__ */ l(er, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3426
3426
  ] });
3427
3427
  }
3428
3428
  );
@@ -3449,10 +3449,10 @@ const Kn = 500, Hn = 5e3, Wn = 2e4, tr = F.forwardRef(
3449
3449
  rightElement: h,
3450
3450
  ...p
3451
3451
  }, u) => {
3452
- const [c, m] = z(!0), [f, E] = z({
3452
+ const [c, m] = z(!0), [y, E] = z({
3453
3453
  message: null,
3454
3454
  politeness: null
3455
- }), w = $(!0), I = $(null), U = $(null), K = Un([u, U]), H = c ? "Show" : "Hide", N = () => {
3455
+ }), w = $(!0), I = $(null), U = $(null), K = Un([u, U]), H = c ? "Show" : "Hide", v = () => {
3456
3456
  I.current && clearTimeout(I.current), w.current || (I.current = setTimeout(() => {
3457
3457
  w.current = !0, m(!0), E({
3458
3458
  announcementTimeout: Hn,
@@ -3460,24 +3460,24 @@ const Kn = 500, Hn = 5e3, Wn = 2e4, tr = F.forwardRef(
3460
3460
  message: `${r} hiding characters`
3461
3461
  }), n && n(!0);
3462
3462
  }, Wn));
3463
- }, P = (v) => {
3464
- v.preventDefault();
3463
+ }, P = (R) => {
3464
+ R.preventDefault();
3465
3465
  const D = !w.current;
3466
- w.current = D, N(), m(D), E({
3466
+ w.current = D, v(), m(D), E({
3467
3467
  announcementTimeout: Kn,
3468
3468
  politeness: "assertive",
3469
3469
  message: D ? "Characters hidden" : "Characters showing"
3470
3470
  }), n && n(D);
3471
- }, W = (v) => {
3471
+ }, W = (R) => {
3472
3472
  var D;
3473
- const { relatedTarget: B } = v, ee = (D = U.current) == null ? void 0 : D.parentElement;
3473
+ const { relatedTarget: B } = R, ee = (D = U.current) == null ? void 0 : D.parentElement;
3474
3474
  ee != null && ee.contains(B) || d && d();
3475
- }, x = (v) => {
3476
- N(), s && s(v), W(v);
3477
- }, pe = (v) => {
3478
- N(), i && i(v);
3479
- }, Z = (v) => {
3480
- N(), o && o(v);
3475
+ }, x = (R) => {
3476
+ v(), s && s(R), W(R);
3477
+ }, pe = (R) => {
3478
+ v(), i && i(R);
3479
+ }, Z = (R) => {
3480
+ v(), o && o(R);
3481
3481
  };
3482
3482
  return Q(() => () => {
3483
3483
  I.current && clearTimeout(I.current);
@@ -3508,9 +3508,9 @@ const Kn = 500, Hn = 5e3, Wn = 2e4, tr = F.forwardRef(
3508
3508
  er,
3509
3509
  {
3510
3510
  role: "status",
3511
- politeness: f.politeness,
3512
- clearAnnouncementDelay: f.announcementTimeout,
3513
- children: f.message
3511
+ politeness: y.politeness,
3512
+ clearAnnouncementDelay: y.announcementTimeout,
3513
+ children: y.message
3514
3514
  }
3515
3515
  )
3516
3516
  ] });
@@ -3647,7 +3647,7 @@ const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in w
3647
3647
  focusMode: "light",
3648
3648
  mode: "dark",
3649
3649
  label: i ? "Show" : "Hide",
3650
- children: i ? /* @__PURE__ */ l(fn, {}) : /* @__PURE__ */ l(gn, {})
3650
+ children: i ? /* @__PURE__ */ l(yn, {}) : /* @__PURE__ */ l(fn, {})
3651
3651
  }
3652
3652
  ),
3653
3653
  onMaskChange: d,
@@ -3684,7 +3684,7 @@ const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in w
3684
3684
  className: "mb-4",
3685
3685
  labelRight: Jn,
3686
3686
  onClick: r,
3687
- children: /* @__PURE__ */ l(yn, { size: "size-7" })
3687
+ children: /* @__PURE__ */ l(gn, { size: "size-7" })
3688
3688
  }
3689
3689
  ) })
3690
3690
  ] }) }) }) })
@@ -3693,7 +3693,7 @@ const Bn = "ASK! ME! ANYTHING!", rr = "Callisto", Gn = "Log in", Jn = "Sign in w
3693
3693
  ) });
3694
3694
  }, jn = new URL(document.location.href).searchParams, zn = !!jn.get("debug") || !1, qn = sr(() => import(
3695
3695
  /* webpackChunkName: "LazyApp" */
3696
- "./App.VcTEMlv1.js"
3696
+ "./App.KvoRl0qM.js"
3697
3697
  ).then((e) => e.App)), Xn = ({ isComponent: e }) => {
3698
3698
  const { isAuthenticated: t } = zt();
3699
3699
  return t ? /* @__PURE__ */ l(ir, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(qn, { isComponent: e }) }) : /* @__PURE__ */ l(Fn, {});
@@ -3716,18 +3716,18 @@ export {
3716
3716
  qt as C,
3717
3717
  Xo as CARDS,
3718
3718
  jo as CLIPBOARD_PROMPT,
3719
- go as DEFAULT_AI_ENGINE,
3720
- fo as ENGINE_ANTHROPIC,
3721
- yo as ENGINE_OPENAI,
3719
+ fo as DEFAULT_AI_ENGINE,
3720
+ yo as ENGINE_ANTHROPIC,
3721
+ go as ENGINE_OPENAI,
3722
3722
  po as ERROR_MESSAGE,
3723
3723
  zo as FOOTER_DISCLAIMER,
3724
3724
  Vo as HISTORY_TITLE,
3725
3725
  Po as INFINITE_SCROLL_LIMIT,
3726
3726
  Oo as INFINITE_SCROLL_THRESHOLD,
3727
3727
  Tn as L,
3728
- Ro as LOCAL_STORAGE_CHAT_DETAILS,
3729
- vo as LOCAL_STORAGE_PREFIX,
3730
- No as LOCAL_STORAGE_SEARCH,
3728
+ No as LOCAL_STORAGE_CHAT_DETAILS,
3729
+ Ro as LOCAL_STORAGE_PREFIX,
3730
+ vo as LOCAL_STORAGE_SEARCH,
3731
3731
  xo as LOCAL_STORAGE_SORT,
3732
3732
  Bo as LOG_OUT,
3733
3733
  Yn as Logo,
@@ -3755,7 +3755,7 @@ export {
3755
3755
  za as getMessageContaintWrapperClass,
3756
3756
  Uo as isLastMessageFromRole,
3757
3757
  te as j,
3758
- yn as l,
3758
+ gn as l,
3759
3759
  Ho as pluralize,
3760
3760
  En as r,
3761
3761
  $o as renderDataAsList,