@versini/sassysaint 6.4.0 → 6.4.1

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,5 +1,5 @@
1
- import { jsx as l, jsxs as $, Fragment as et } from "react/jsx-runtime";
2
- import X, { createContext as or, useReducer as Tt, useRef as x, useCallback as q, useEffect as V, useContext as It, useSyncExternalStore as sr, useLayoutEffect as Re, useMemo as De, useState as z, useId as St, lazy as ir, Suspense as cr } from "react";
1
+ import { jsx as l, jsxs as M, Fragment as et } from "react/jsx-runtime";
2
+ import X, { createContext as or, useReducer as Tt, useRef as x, useCallback as q, useEffect as Y, useContext as It, useSyncExternalStore as sr, useLayoutEffect as Re, useMemo as De, useState as z, useId as St, lazy as ir, Suspense as cr } from "react";
3
3
  import p from "clsx";
4
4
  var lr = Object.defineProperty, dr = (e, t, r) => t in e ? lr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, He = (e, t, r) => dr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
@@ -15,7 +15,7 @@ try {
15
15
  });
16
16
  } catch {
17
17
  }
18
- function J(e) {
18
+ function V(e) {
19
19
  const t = new Uint8Array(e);
20
20
  let r = "";
21
21
  for (const a of t)
@@ -182,23 +182,23 @@ async function pr(e) {
182
182
  if (typeof o.getPublicKey == "function")
183
183
  try {
184
184
  const c = o.getPublicKey();
185
- c !== null && (h = J(c));
185
+ c !== null && (h = V(c));
186
186
  } catch (c) {
187
187
  We("getPublicKey()", c);
188
188
  }
189
189
  let f;
190
190
  if (typeof o.getAuthenticatorData == "function")
191
191
  try {
192
- f = J(o.getAuthenticatorData());
192
+ f = V(o.getAuthenticatorData());
193
193
  } catch (c) {
194
194
  We("getAuthenticatorData()", c);
195
195
  }
196
196
  return {
197
197
  id: a,
198
- rawId: J(n),
198
+ rawId: V(n),
199
199
  response: {
200
- attestationObject: J(o.attestationObject),
201
- clientDataJSON: J(o.clientDataJSON),
200
+ attestationObject: V(o.attestationObject),
201
+ clientDataJSON: V(o.clientDataJSON),
202
202
  transports: i,
203
203
  publicKeyAlgorithm: d,
204
204
  publicKey: h,
@@ -289,13 +289,13 @@ async function yr(e, t = !1) {
289
289
  throw new Error("Authentication was not completed");
290
290
  const { id: s, rawId: i, response: d, type: h } = o;
291
291
  let f;
292
- return d.userHandle && (f = J(d.userHandle)), {
292
+ return d.userHandle && (f = V(d.userHandle)), {
293
293
  id: s,
294
- rawId: J(i),
294
+ rawId: V(i),
295
295
  response: {
296
- authenticatorData: J(d.authenticatorData),
297
- clientDataJSON: J(d.clientDataJSON),
298
- signature: J(d.signature),
296
+ authenticatorData: V(d.authenticatorData),
297
+ clientDataJSON: V(d.clientDataJSON),
298
+ signature: V(d.signature),
299
299
  userHandle: f
300
300
  },
301
301
  type: h,
@@ -380,12 +380,12 @@ let P = class extends Error {
380
380
  }
381
381
  };
382
382
  P.code = "ERR_JOSE_GENERIC";
383
- let K = class extends P {
383
+ let H = class extends P {
384
384
  constructor(t, r, a = "unspecified", n = "unspecified") {
385
385
  super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_CLAIM_VALIDATION_FAILED", this.claim = a, this.reason = n, this.payload = r;
386
386
  }
387
387
  };
388
- K.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
388
+ H.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
389
389
  class qe extends P {
390
390
  constructor(t, r, a = "unspecified", n = "unspecified") {
391
391
  super(t, { cause: { claim: a, reason: n, payload: r } }), this.code = "ERR_JWT_EXPIRED", this.claim = a, this.reason = n, this.payload = r;
@@ -398,12 +398,12 @@ class xt extends P {
398
398
  }
399
399
  }
400
400
  xt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
- let H = class extends P {
401
+ let W = class extends P {
402
402
  constructor() {
403
403
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
404
404
  }
405
405
  };
406
- H.code = "ERR_JOSE_NOT_SUPPORTED";
406
+ W.code = "ERR_JOSE_NOT_SUPPORTED";
407
407
  class Tr extends P {
408
408
  constructor(t = "decryption operation failed", r) {
409
409
  super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
@@ -422,12 +422,12 @@ let _ = class extends P {
422
422
  }
423
423
  };
424
424
  _.code = "ERR_JWS_INVALID";
425
- let G = class extends P {
425
+ let J = class extends P {
426
426
  constructor() {
427
427
  super(...arguments), this.code = "ERR_JWT_INVALID";
428
428
  }
429
429
  };
430
- G.code = "ERR_JWT_INVALID";
430
+ J.code = "ERR_JWT_INVALID";
431
431
  class Sr extends P {
432
432
  constructor() {
433
433
  super(...arguments), this.code = "ERR_JWK_INVALID";
@@ -458,12 +458,12 @@ class Rr extends P {
458
458
  }
459
459
  }
460
460
  Rr.code = "ERR_JWKS_TIMEOUT";
461
- class Ct extends P {
461
+ class Ot extends P {
462
462
  constructor(t = "signature verification failed", r) {
463
463
  super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
464
464
  }
465
465
  }
466
- Ct.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
466
+ Ot.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
467
467
  function j(e, t = "algorithm.name") {
468
468
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
469
469
  }
@@ -547,7 +547,7 @@ function xr(e, t, ...r) {
547
547
  }
548
548
  vr(e, r);
549
549
  }
550
- function Ot(e, t, ...r) {
550
+ function Ct(e, t, ...r) {
551
551
  var a;
552
552
  if (r = r.filter(Boolean), r.length > 2) {
553
553
  const n = r.pop();
@@ -555,11 +555,11 @@ function Ot(e, t, ...r) {
555
555
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
556
556
  return t == null ? e += ` Received ${t}` : typeof t == "function" && t.name ? e += ` Received function ${t.name}` : typeof t == "object" && t != null && (a = t.constructor) != null && a.name && (e += ` Received an instance of ${t.constructor.name}`), e;
557
557
  }
558
- const it = (e, ...t) => Ot("Key must be ", e, ...t);
558
+ const it = (e, ...t) => Ct("Key must be ", e, ...t);
559
559
  function Pt(e, t, ...r) {
560
- return Ot(`Key for the ${e} algorithm must be `, t, ...r);
560
+ return Ct(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Cr = (...e) => {
562
+ const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", ve = ["CryptoKey"], Or = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -578,11 +578,11 @@ const Dt = (e) => vt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
578
578
  }
579
579
  return !0;
580
580
  };
581
- function Or(e) {
581
+ function Cr(e) {
582
582
  return typeof e == "object" && e !== null;
583
583
  }
584
584
  function he(e) {
585
- if (!Or(e) || Object.prototype.toString.call(e) !== "[object Object]")
585
+ if (!Cr(e) || Object.prototype.toString.call(e) !== "[object Object]")
586
586
  return !1;
587
587
  if (Object.getPrototypeOf(e) === null)
588
588
  return !0;
@@ -635,7 +635,7 @@ function Mr(e) {
635
635
  }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
636
636
  break;
637
637
  default:
638
- throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
638
+ throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
639
639
  }
640
640
  break;
641
641
  }
@@ -657,7 +657,7 @@ function Mr(e) {
657
657
  t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
658
658
  break;
659
659
  default:
660
- throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
660
+ throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
661
661
  }
662
662
  break;
663
663
  }
@@ -673,12 +673,12 @@ function Mr(e) {
673
673
  t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
674
674
  break;
675
675
  default:
676
- throw new H('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
676
+ throw new W('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
677
677
  }
678
678
  break;
679
679
  }
680
680
  default:
681
- throw new H('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
681
+ throw new W('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
682
682
  }
683
683
  return { algorithm: t, keyUsages: r };
684
684
  }
@@ -735,7 +735,7 @@ const Mt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
735
735
  case ee(e, [43, 101, 113]):
736
736
  return "Ed448";
737
737
  default:
738
- throw new H("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
738
+ throw new W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
739
739
  }
740
740
  }, Wr = async (e, t, r, a, n) => {
741
741
  let o, s;
@@ -781,7 +781,7 @@ const Mt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
781
781
  o = { name: ct(i) }, s = ["verify"];
782
782
  break;
783
783
  default:
784
- throw new H('Invalid or unsupported "alg" (Algorithm) value');
784
+ throw new W('Invalid or unsupported "alg" (Algorithm) value');
785
785
  }
786
786
  return $e.subtle.importKey(t, i, o, !1, s);
787
787
  }, Br = (e, t, r) => Wr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
@@ -800,12 +800,12 @@ async function Jr(e, t) {
800
800
  return te(e.k);
801
801
  case "RSA":
802
802
  if (e.oth !== void 0)
803
- throw new H('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
803
+ throw new W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
804
804
  case "EC":
805
805
  case "OKP":
806
806
  return Lt({ ...e, alg: t });
807
807
  default:
808
- throw new H('Unsupported "kty" (Key Type) Parameter value');
808
+ throw new W('Unsupported "kty" (Key Type) Parameter value');
809
809
  }
810
810
  }
811
811
  const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Xe = (e, t, r) => {
@@ -870,7 +870,7 @@ function Fr(e, t, r, a, n) {
870
870
  r !== void 0 ? o = new Map([...Object.entries(r), ...t.entries()]) : o = t;
871
871
  for (const s of a.crit) {
872
872
  if (!o.has(s))
873
- throw new H(`Extension Header Parameter "${s}" is not recognized`);
873
+ throw new W(`Extension Header Parameter "${s}" is not recognized`);
874
874
  if (n[s] === void 0)
875
875
  throw new e(`Extension Header Parameter "${s}" is missing`);
876
876
  if (o.get(s) && a[s] === void 0)
@@ -906,7 +906,7 @@ function zr(e, t) {
906
906
  case "EdDSA":
907
907
  return { name: t.name };
908
908
  default:
909
- throw new H(`alg ${e} is not supported either by JOSE or your javascript runtime`);
909
+ throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`);
910
910
  }
911
911
  }
912
912
  async function qr(e, t, r) {
@@ -950,7 +950,7 @@ async function Qr(e, t, r) {
950
950
  } catch {
951
951
  throw new _("JWS Protected Header is invalid");
952
952
  }
953
- if (!Cr(a, e.header))
953
+ if (!Or(a, e.header))
954
954
  throw new _("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
955
955
  const n = {
956
956
  ...a,
@@ -980,7 +980,7 @@ async function Qr(e, t, r) {
980
980
  throw new _("Failed to base64url decode the signature");
981
981
  }
982
982
  if (!await Xr(i, t, u, f))
983
- throw new Ct();
983
+ throw new Ot();
984
984
  let c;
985
985
  if (s)
986
986
  try {
@@ -1051,21 +1051,21 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1051
1051
  } catch {
1052
1052
  }
1053
1053
  if (!he(a))
1054
- throw new G("JWT Claims Set must be a top-level JSON object");
1054
+ throw new J("JWT Claims Set must be a top-level JSON object");
1055
1055
  const { typ: n } = r;
1056
1056
  if (n && (typeof e.typ != "string" || ut(e.typ) !== ut(n)))
1057
- throw new K('unexpected "typ" JWT header value', a, "typ", "check_failed");
1057
+ throw new H('unexpected "typ" JWT header value', a, "typ", "check_failed");
1058
1058
  const { requiredClaims: o = [], issuer: s, subject: i, audience: d, maxTokenAge: h } = r, f = [...o];
1059
1059
  h !== void 0 && f.push("iat"), d !== void 0 && f.push("aud"), i !== void 0 && f.push("sub"), s !== void 0 && f.push("iss");
1060
1060
  for (const y of new Set(f.reverse()))
1061
1061
  if (!(y in a))
1062
- throw new K(`missing required "${y}" claim`, a, y, "missing");
1062
+ throw new H(`missing required "${y}" claim`, a, y, "missing");
1063
1063
  if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
1064
- throw new K('unexpected "iss" claim value', a, "iss", "check_failed");
1064
+ throw new H('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
1066
- throw new K('unexpected "sub" claim value', a, "sub", "check_failed");
1066
+ throw new H('unexpected "sub" claim value', a, "sub", "check_failed");
1067
1067
  if (d && !na(a.aud, typeof d == "string" ? [d] : d))
1068
- throw new K('unexpected "aud" claim value', a, "aud", "check_failed");
1068
+ throw new H('unexpected "aud" claim value', a, "aud", "check_failed");
1069
1069
  let u;
1070
1070
  switch (typeof r.clockTolerance) {
1071
1071
  case "string":
@@ -1082,16 +1082,16 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1082
1082
  }
1083
1083
  const { currentDate: c } = r, m = ea(c || /* @__PURE__ */ new Date());
1084
1084
  if ((a.iat !== void 0 || h) && typeof a.iat != "number")
1085
- throw new K('"iat" claim must be a number', a, "iat", "invalid");
1085
+ throw new H('"iat" claim must be a number', a, "iat", "invalid");
1086
1086
  if (a.nbf !== void 0) {
1087
1087
  if (typeof a.nbf != "number")
1088
- throw new K('"nbf" claim must be a number', a, "nbf", "invalid");
1088
+ throw new H('"nbf" claim must be a number', a, "nbf", "invalid");
1089
1089
  if (a.nbf > m + u)
1090
- throw new K('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
1090
+ throw new H('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
1091
1091
  }
1092
1092
  if (a.exp !== void 0) {
1093
1093
  if (typeof a.exp != "number")
1094
- throw new K('"exp" claim must be a number', a, "exp", "invalid");
1094
+ throw new H('"exp" claim must be a number', a, "exp", "invalid");
1095
1095
  if (a.exp <= m - u)
1096
1096
  throw new qe('"exp" claim timestamp check failed', a, "exp", "check_failed");
1097
1097
  }
@@ -1100,7 +1100,7 @@ const ea = (e) => Math.floor(e.getTime() / 1e3), Kt = 60, Ht = Kt * 60, rt = Ht
1100
1100
  if (y - u > w)
1101
1101
  throw new qe('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1102
1102
  if (y < 0 - u)
1103
- throw new K('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1103
+ throw new H('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1104
1104
  }
1105
1105
  return a;
1106
1106
  };
@@ -1108,35 +1108,35 @@ async function sa(e, t, r) {
1108
1108
  var a;
1109
1109
  const n = await Zr(e, t, r);
1110
1110
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1111
- throw new G("JWTs MUST NOT use unencoded payload");
1111
+ throw new J("JWTs MUST NOT use unencoded payload");
1112
1112
  const o = { payload: oa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1113
1113
  return typeof t == "function" ? { ...o, key: n.key } : o;
1114
1114
  }
1115
1115
  const ia = te;
1116
1116
  function ca(e) {
1117
1117
  if (typeof e != "string")
1118
- throw new G("JWTs must use Compact JWS serialization, JWT must be a string");
1118
+ throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
1119
1119
  const { 1: t, length: r } = e.split(".");
1120
1120
  if (r === 5)
1121
- throw new G("Only JWTs using Compact JWS serialization can be decoded");
1121
+ throw new J("Only JWTs using Compact JWS serialization can be decoded");
1122
1122
  if (r !== 3)
1123
- throw new G("Invalid JWT");
1123
+ throw new J("Invalid JWT");
1124
1124
  if (!t)
1125
- throw new G("JWTs must contain a payload");
1125
+ throw new J("JWTs must contain a payload");
1126
1126
  let a;
1127
1127
  try {
1128
1128
  a = ia(t);
1129
1129
  } catch {
1130
- throw new G("Failed to base64url decode the payload");
1130
+ throw new J("Failed to base64url decode the payload");
1131
1131
  }
1132
1132
  let n;
1133
1133
  try {
1134
1134
  n = JSON.parse(ye.decode(a));
1135
1135
  } catch {
1136
- throw new G("Failed to parse the decoded payload as JSON");
1136
+ throw new J("Failed to parse the decoded payload as JSON");
1137
1137
  }
1138
1138
  if (!he(n))
1139
- throw new G("Invalid JWT Claims Set");
1139
+ throw new J("Invalid JWT Claims Set");
1140
1140
  return n;
1141
1141
  }
1142
1142
  const ge = async (e) => {
@@ -1226,7 +1226,7 @@ function Te({
1226
1226
  }, [t, a]), o = q(() => {
1227
1227
  a(null);
1228
1228
  }, [a]);
1229
- return V(() => {
1229
+ return Y(() => {
1230
1230
  try {
1231
1231
  gt(e) === null && typeof t < "u" && ft(e, t);
1232
1232
  } catch (s) {
@@ -1258,10 +1258,10 @@ function Ve(e, t, r) {
1258
1258
  const a = e.random || (e.rng || Ia)();
1259
1259
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, wa(a);
1260
1260
  }
1261
- const ie = "Your session has expired. For your security, please log in again to continue.", _a = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", ka = "Error getting access token, please re-authenticate.", Aa = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1261
+ const ie = "Your session has expired. For your security, please log in again to continue.", _a = "Your session has been successfully terminated.", Ye = "Login failed. Please try again.", ka = "Error getting access token, please re-authenticate.", Aa = "You forgot to wrap your component in <AuthProvider>.", Oe = {
1262
1262
  dev: "https://auth.gizmette.local.com:3003",
1263
1263
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", Y = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
1264
+ }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Bt = "LOGOUT", be = "success", F = "failure", Gt = "include", Jt = "POST", Vt = "application/json", Se = {
1265
1265
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1266
  $clientId: String!,
1267
1267
  $username: String!,
@@ -1367,7 +1367,7 @@ const ie = "Your session has expired. For your security, please log in again to
1367
1367
  }) => {
1368
1368
  try {
1369
1369
  const n = `Bearer ${e}`, o = await fetch(
1370
- Yt ? `${Ce.dev}/graphql` : `${Ce.prod}/graphql`,
1370
+ Yt ? `${Oe.dev}/graphql` : `${Oe.prod}/graphql`,
1371
1371
  {
1372
1372
  credentials: Gt,
1373
1373
  method: Jt,
@@ -1383,14 +1383,14 @@ const ie = "Your session has expired. For your security, please log in again to
1383
1383
  }
1384
1384
  );
1385
1385
  if (o.status !== 200)
1386
- return { status: Y, data: [] };
1386
+ return { status: F, data: [] };
1387
1387
  const { data: s } = await o.json();
1388
1388
  return {
1389
1389
  status: be,
1390
1390
  data: s[t.method]
1391
1391
  };
1392
1392
  } catch (n) {
1393
- return console.error(n), { status: Y, data: [] };
1393
+ return console.error(n), { status: F, data: [] };
1394
1394
  }
1395
1395
  }, Me = async ({
1396
1396
  type: e,
@@ -1399,7 +1399,7 @@ const ie = "Your session has expired. For your security, please log in again to
1399
1399
  }) => {
1400
1400
  try {
1401
1401
  const a = await fetch(
1402
- Yt ? `${Ce.dev}/${e}` : `${Ce.prod}/${e}`,
1402
+ Yt ? `${Oe.dev}/${e}` : `${Oe.prod}/${e}`,
1403
1403
  {
1404
1404
  credentials: Gt,
1405
1405
  method: Jt,
@@ -1411,14 +1411,14 @@ const ie = "Your session has expired. For your security, please log in again to
1411
1411
  }
1412
1412
  );
1413
1413
  if (a.status !== 200)
1414
- return { status: Y, data: [] };
1414
+ return { status: F, data: [] };
1415
1415
  const { data: n } = await a.json();
1416
1416
  return {
1417
1417
  status: be,
1418
1418
  data: n || []
1419
1419
  };
1420
1420
  } catch (a) {
1421
- return console.error(a), { status: Y, data: [] };
1421
+ return console.error(a), { status: F, data: [] };
1422
1422
  }
1423
1423
  }, Ra = process.env.NODE_ENV === "production", Yt = !Ra, Ft = {
1424
1424
  isLoading: !0,
@@ -1451,11 +1451,11 @@ const ie = "Your session has expired. For your security, please log in again to
1451
1451
  domain: r,
1452
1452
  idToken: a
1453
1453
  }
1454
- })) == null ? void 0 : n.status) || Y
1454
+ })) == null ? void 0 : n.status) || F
1455
1455
  };
1456
1456
  } catch {
1457
1457
  return {
1458
- status: Y
1458
+ status: F
1459
1459
  };
1460
1460
  }
1461
1461
  }, xa = async ({
@@ -1502,7 +1502,7 @@ const ie = "Your session has expired. For your security, please log in again to
1502
1502
  status: !1
1503
1503
  };
1504
1504
  }
1505
- }, Ca = async ({
1505
+ }, Oa = async ({
1506
1506
  nonce: e,
1507
1507
  clientId: t,
1508
1508
  code_challenge: r
@@ -1522,16 +1522,16 @@ const ie = "Your session has expired. For your security, please log in again to
1522
1522
  status: be,
1523
1523
  data: n.data.code
1524
1524
  } : {
1525
- status: Y,
1525
+ status: F,
1526
1526
  data: ""
1527
1527
  };
1528
1528
  } catch {
1529
1529
  return {
1530
- status: Y,
1530
+ status: F,
1531
1531
  data: ""
1532
1532
  };
1533
1533
  }
1534
- }, Oa = async ({
1534
+ }, Ca = async ({
1535
1535
  clientId: e,
1536
1536
  userId: t,
1537
1537
  nonce: r,
@@ -1597,7 +1597,7 @@ class Pa {
1597
1597
  }) {
1598
1598
  const o = await ge(this.refreshToken);
1599
1599
  if (o && o.payload[N.USER_ID_KEY] !== "") {
1600
- const s = await Oa({
1600
+ const s = await Ca({
1601
1601
  clientId: t,
1602
1602
  userId: r,
1603
1603
  nonce: a,
@@ -1610,11 +1610,11 @@ class Pa {
1610
1610
  newAccessToken: s.accessToken,
1611
1611
  newRefreshToken: s.refreshToken
1612
1612
  }) : {
1613
- status: Y
1613
+ status: F
1614
1614
  };
1615
1615
  } else
1616
1616
  return {
1617
- status: Y
1617
+ status: F
1618
1618
  };
1619
1619
  }
1620
1620
  }
@@ -1675,9 +1675,9 @@ const Da = (e) => q(
1675
1675
  {
1676
1676
  key: `${Ie}::${r}::@@refresh@@`
1677
1677
  }
1678
- ), [Q, F, , Z] = Te({
1678
+ ), [Q, D, , Z] = Te({
1679
1679
  key: `${Ie}::${r}::@@nonce@@`
1680
- }), D = new Pa(c, w), W = q(() => {
1680
+ }), L = new Pa(c, w), B = q(() => {
1681
1681
  i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
1682
1682
  }, [
1683
1683
  y,
@@ -1685,7 +1685,7 @@ const Da = (e) => q(
1685
1685
  Z,
1686
1686
  k,
1687
1687
  i
1688
- ]), M = q(
1688
+ ]), U = q(
1689
1689
  (g) => {
1690
1690
  i(
1691
1691
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
@@ -1695,9 +1695,9 @@ const Da = (e) => q(
1695
1695
  payload: {
1696
1696
  logoutReason: g || ie
1697
1697
  }
1698
- }), W(), s({ type: fe, payload: { isLoading: !1 } });
1698
+ }), B(), s({ type: fe, payload: { isLoading: !1 } });
1699
1699
  },
1700
- [W, i]
1700
+ [B, i]
1701
1701
  ), S = q(
1702
1702
  async (g) => {
1703
1703
  i("invalidateAndLogout: invalidating and logging out");
@@ -1709,11 +1709,11 @@ const Da = (e) => q(
1709
1709
  clientId: r,
1710
1710
  domain: a,
1711
1711
  idToken: h
1712
- }), M(g || ie);
1712
+ }), U(g || ie);
1713
1713
  },
1714
- [h, o, r, a, M, i]
1714
+ [h, o, r, a, U, i]
1715
1715
  );
1716
- V(() => {
1716
+ Y(() => {
1717
1717
  if (!d.current)
1718
1718
  return o.isLoading && h !== null ? (async () => {
1719
1719
  try {
@@ -1738,11 +1738,11 @@ const Da = (e) => q(
1738
1738
  d.current = !0;
1739
1739
  };
1740
1740
  }, [o.isLoading, h, S, i]);
1741
- const L = async (g, E) => {
1742
- s({ type: fe, payload: { isLoading: !0 } }), W();
1741
+ const $ = async (g, E) => {
1742
+ s({ type: fe, payload: { isLoading: !0 } }), B();
1743
1743
  const b = Ve();
1744
- F(b), i("login: Logging in with password");
1745
- const { code_verifier: ae, code_challenge: nr } = await ya(), st = await Ca({
1744
+ D(b), i("login: Logging in with password");
1745
+ const { code_verifier: ae, code_challenge: nr } = await ya(), st = await Oa({
1746
1746
  nonce: b,
1747
1747
  clientId: r,
1748
1748
  code_challenge: nr
@@ -1770,10 +1770,10 @@ const Da = (e) => q(
1770
1770
  email: ne.email
1771
1771
  }
1772
1772
  }
1773
- }), !0) : (M(Ye), !1);
1773
+ }), !0) : (U(Ye), !1);
1774
1774
  }
1775
1775
  return !1;
1776
- }, U = async (g) => {
1776
+ }, K = async (g) => {
1777
1777
  g == null || g.preventDefault(), await S(_a);
1778
1778
  }, I = async () => {
1779
1779
  const { isAuthenticated: g, user: E } = o;
@@ -1786,7 +1786,7 @@ const Da = (e) => q(
1786
1786
  return c;
1787
1787
  }
1788
1788
  i("getAccessToken: invalid access token, trying to refresh it");
1789
- const b = await D.refreshtoken({
1789
+ const b = await L.refreshtoken({
1790
1790
  clientId: r,
1791
1791
  userId: E.userId,
1792
1792
  nonce: Q,
@@ -1804,7 +1804,7 @@ const Da = (e) => q(
1804
1804
  "getAccessToken: exception occurred, invalidating and logging out"
1805
1805
  ), await S(ka), "";
1806
1806
  }
1807
- }, C = () => o.isAuthenticated && h ? h : "", O = async () => {
1807
+ }, O = () => o.isAuthenticated && h ? h : "", C = async () => {
1808
1808
  const { user: g } = o;
1809
1809
  let E = await le({
1810
1810
  accessToken: c,
@@ -1844,10 +1844,10 @@ const Da = (e) => q(
1844
1844
  }), !1;
1845
1845
  }
1846
1846
  return !1;
1847
- }, B = async () => {
1848
- s({ type: fe, payload: { isLoading: !0 } }), W();
1847
+ }, G = async () => {
1848
+ s({ type: fe, payload: { isLoading: !0 } }), B();
1849
1849
  const g = Ve();
1850
- F(g), i("loginWithPasskey");
1850
+ D(g), i("loginWithPasskey");
1851
1851
  const E = Ve();
1852
1852
  let b = await le({
1853
1853
  accessToken: c,
@@ -1884,7 +1884,7 @@ const Da = (e) => q(
1884
1884
  email: b.data.email
1885
1885
  }
1886
1886
  }
1887
- }), !0) : (M(Ye), !1);
1887
+ }), !0) : (U(Ye), !1);
1888
1888
  } catch {
1889
1889
  return await le({
1890
1890
  accessToken: c,
@@ -1898,7 +1898,7 @@ const Da = (e) => q(
1898
1898
  domain: a,
1899
1899
  sessionExpiration: t
1900
1900
  }
1901
- }), M(Ye), !1;
1901
+ }), U(Ye), !1;
1902
1902
  }
1903
1903
  return !1;
1904
1904
  };
@@ -1907,17 +1907,17 @@ const Da = (e) => q(
1907
1907
  {
1908
1908
  value: {
1909
1909
  ...o,
1910
- login: L,
1911
- logout: U,
1910
+ login: $,
1911
+ logout: K,
1912
1912
  getAccessToken: I,
1913
- getIdToken: C,
1914
- registeringForPasskey: O,
1915
- loginWithPasskey: B
1913
+ getIdToken: O,
1914
+ registeringForPasskey: C,
1915
+ loginWithPasskey: G
1916
1916
  },
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, zt = (e = jt) => It(e), yo = "user", bo = "assistant", Eo = "system", wo = "internal", To = "hidden", Io = "I'm having trouble right now. Please try again later.", So = "OpenAI", _o = "OpenAI", ko = "Anthropic", Ao = "action-message", Ro = "action-reset", No = "action-model", vo = "action-restore", xo = "action-streaming", Co = "action-search", Oo = "action-sort", Po = "action-toggle-prompt", Do = "action-reset-prompt", Lo = "sassy-saint-", $o = "details", Mo = "search", Uo = "sort", Ko = "private-disclosure", Ho = "==stats==", Ua = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Wo = 10, Bo = 30, Go = "av-prompt", Jo = "av-prompt-editable", Vo = "size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1920
+ }, zt = (e = jt) => It(e), yo = "user", bo = "assistant", Eo = "system", wo = "internal", To = "hidden", Io = "I'm having trouble right now. Please try again later.", So = "OpenAI", _o = "OpenAI", ko = "Anthropic", Ao = "action-message", Ro = "action-reset", No = "action-model", vo = "action-restore", xo = "action-streaming", Oo = "action-search", Co = "action-sort", Po = "action-toggle-prompt", Do = "action-reset-prompt", Lo = "sassy-saint-", $o = "details", Mo = "search", Uo = "sort", Ko = "private-disclosure", Ho = "==stats==", Ua = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Wo = 10, Bo = 30, Go = "av-prompt", Jo = "av-prompt-editable", Vo = "size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1921
1921
  function Ka(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
@@ -2046,7 +2046,7 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2046
2046
  e
2047
2047
  );
2048
2048
  });
2049
- }, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ $("div", { className: "flex items-center justify-between", children: [
2049
+ }, Fo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ M("div", { className: "flex items-center justify-between", children: [
2050
2050
  /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2051
2051
  /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2052
2052
  ] }) }, `${e}-${r}`)) : null, jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length - 1].message.role === e, zo = (e) => e > 0 ? Ya(e, {
@@ -2071,28 +2071,35 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2071
2071
  size: t,
2072
2072
  labelRight: r,
2073
2073
  labelLeft: a,
2074
- align: n
2074
+ align: n,
2075
+ animated: o
2075
2076
  }) => {
2076
- const o = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", i = "max-h-12 py-2 px-4";
2077
+ const s = "max-h-8 py-0 px-2", i = "max-h-9 h-8 px-3", d = "max-h-12 py-2 px-4";
2077
2078
  switch (e) {
2078
2079
  case at:
2079
2080
  case Qe:
2080
2081
  return p({
2081
- [o]: t === "small",
2082
- [s]: t === "medium",
2083
- [i]: t === "large"
2082
+ [s]: t === "small",
2083
+ [i]: t === "medium",
2084
+ [d]: t === "large"
2084
2085
  });
2085
2086
  case Ue:
2086
2087
  return p("inline-flex items-center", {
2087
2088
  "justify-center": n === "center",
2088
2089
  "justify-start": n === "left",
2089
2090
  "justify-end": n === "right",
2090
- "h-6 py-0": t === "small" && !(r || a),
2091
- "h-6": t === "small" && (r || a),
2092
- "h-8 py-1": t === "medium" && !(r || a),
2093
- "h-8": t === "medium" && (r || a),
2094
- "h-12 py-2": t === "large" && !(r || a),
2095
- "h-12": t === "large" && (r || a)
2091
+ "h-6 w-6 p-0": t === "small" && !o && !(r || a),
2092
+ "h-6 px-2": t === "small" && !o && (r || a),
2093
+ "h-8 w-8 p-1": t === "medium" && !o && !(r || a),
2094
+ "h-8 px-3": t === "medium" && !o && (r || a),
2095
+ "h-12 w-12 p-2": t === "large" && !o && !(r || a),
2096
+ "h-12 px-4": t === "large" && !o && (r || a),
2097
+ "h-6 py-0": t === "small" && o && !(r || a),
2098
+ "h-6": t === "small" && o && (r || a),
2099
+ "h-8 py-1": t === "medium" && o && !(r || a),
2100
+ "h-8": t === "medium" && o && (r || a),
2101
+ "h-12 py-2": t === "large" && o && !(r || a),
2102
+ "h-12": t === "large" && o && (r || a)
2096
2103
  });
2097
2104
  }
2098
2105
  }, Za = ({
@@ -2336,7 +2343,8 @@ const Fa = process.env.NODE_ENV === "production", ja = !Fa, za = ja ? "gizmette.
2336
2343
  size: i,
2337
2344
  labelRight: h,
2338
2345
  labelLeft: f,
2339
- align: y
2346
+ align: y,
2347
+ animated: T
2340
2348
  }),
2341
2349
  Za({ type: e, size: i, labelRight: h, labelLeft: f }),
2342
2350
  on({ mode: a, variant: c, noBorder: d }),
@@ -2413,7 +2421,7 @@ const Xt = X.forwardRef(
2413
2421
  Xt.displayName = "Button";
2414
2422
  function un() {
2415
2423
  const e = x(!1);
2416
- return V(() => (e.current = !0, () => {
2424
+ return Y(() => (e.current = !0, () => {
2417
2425
  e.current = !1;
2418
2426
  }), []), q(() => e.current, []);
2419
2427
  }
@@ -2442,7 +2450,7 @@ function Fe(e) {
2442
2450
  a.current && t() && o(d.contentRect);
2443
2451
  }));
2444
2452
  }), [t]);
2445
- return V(() => (a.current && (s == null || s.observe(a.current, e)), () => {
2453
+ return Y(() => (a.current && (s == null || s.observe(a.current, e)), () => {
2446
2454
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
2447
2455
  }), [s, e]), [a, n];
2448
2456
  }
@@ -2460,7 +2468,7 @@ const pn = {
2460
2468
  // px-3 x 2
2461
2469
  large: 16 * 2
2462
2470
  // px-4 x 2
2463
- }, gn = 2, Oe = X.forwardRef(
2471
+ }, gn = 2, Ce = X.forwardRef(
2464
2472
  ({
2465
2473
  children: e,
2466
2474
  disabled: t = !1,
@@ -2481,10 +2489,10 @@ const pn = {
2481
2489
  radius: T = "large",
2482
2490
  variant: k = "primary",
2483
2491
  iconClassName: Q,
2484
- animated: F = !1,
2492
+ animated: D = !1,
2485
2493
  ...Z
2486
- }, D) => {
2487
- const W = qt({
2494
+ }, L) => {
2495
+ const B = qt({
2488
2496
  type: Ue,
2489
2497
  mode: r,
2490
2498
  focusMode: a,
@@ -2500,47 +2508,48 @@ const pn = {
2500
2508
  align: w,
2501
2509
  radius: T,
2502
2510
  variant: k,
2503
- animated: F
2504
- }), M = cn({ mode: r, raw: i, iconClassName: Q }), S = ln({ animated: F }), [L, U] = Fe(), [I, C] = Fe(), [O, B] = Fe(), g = x(0), E = x(null), b = mn([D, E]);
2511
+ animated: D
2512
+ }), U = cn({ mode: r, raw: i, iconClassName: Q }), S = ln({ animated: D }), [$, K] = Fe(), [I, O] = Fe(), [C, G] = Fe(), g = x(0), E = x(null), b = mn([L, E]);
2505
2513
  return Re(() => {
2506
- O && O.current && (g.current = B.width + fn[u] + (d ? 0 : gn));
2507
- }, [B, O, u, d]), Re(() => {
2508
- E && E.current && (c && L && U.width > 0 ? (L.current && (L.current.style.opacity = "100"), E.current.style.width = `${U.width + g.current}px`) : m && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (L.current && (L.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${pn[u]}px`));
2514
+ C && C.current && D && (g.current = G.width + fn[u] + (d ? 0 : gn));
2515
+ }, [G, C, u, d, D]), Re(() => {
2516
+ E && E.current && D && (c && $ && K.width > 0 ? ($.current && ($.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && O.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${O.width + g.current}px`) : ($.current && ($.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${pn[u]}px`));
2509
2517
  }, [
2510
- U,
2518
+ K,
2511
2519
  c,
2512
- L,
2513
- C,
2520
+ $,
2521
+ O,
2514
2522
  m,
2515
2523
  I,
2516
- u
2517
- ]), /* @__PURE__ */ $(
2524
+ u,
2525
+ D
2526
+ ]), /* @__PURE__ */ M(
2518
2527
  nt,
2519
2528
  {
2520
2529
  ref: b,
2521
- className: W,
2530
+ className: B,
2522
2531
  disabled: t,
2523
2532
  type: s,
2524
2533
  "aria-label": h || f,
2525
2534
  ...Z,
2526
2535
  children: [
2527
2536
  /* @__PURE__ */ l("span", { ref: I, className: S, children: m && /* @__PURE__ */ l("span", { className: "pr-2", children: m }) }),
2528
- /* @__PURE__ */ l("span", { ref: O, className: M, children: e }),
2529
- /* @__PURE__ */ l("span", { ref: L, className: S, children: c && /* @__PURE__ */ l("span", { className: "pl-2", children: c }) })
2537
+ /* @__PURE__ */ l("span", { ref: C, className: U, children: e }),
2538
+ /* @__PURE__ */ l("span", { ref: $, className: S, children: c && /* @__PURE__ */ l("span", { className: "pl-2", children: c }) })
2530
2539
  ]
2531
2540
  }
2532
2541
  );
2533
2542
  }
2534
2543
  );
2535
- Oe.displayName = "ButtonIcon";
2544
+ Ce.displayName = "ButtonIcon";
2536
2545
  /*!
2537
- @versini/ui-button v4.2.0
2546
+ @versini/ui-button v4.2.2
2538
2547
  © 2025 gizmette.com
2539
2548
  */
2540
2549
  try {
2541
2550
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
2542
- version: "4.2.0",
2543
- buildTime: "01/25/2025 10:54 PM EST",
2551
+ version: "4.2.2",
2552
+ buildTime: "01/26/2025 07:26 PM EST",
2544
2553
  homepage: "https://github.com/aversini/ui-components",
2545
2554
  license: "MIT"
2546
2555
  });
@@ -2572,7 +2581,7 @@ const yn = X.forwardRef(
2572
2581
  }
2573
2582
  ) : "";
2574
2583
  return /* @__PURE__ */ l("div", { className: s, children: /* @__PURE__ */ l(
2575
- Oe,
2584
+ Ce,
2576
2585
  {
2577
2586
  className: p("justify-center", r),
2578
2587
  ref: o,
@@ -2675,7 +2684,7 @@ const Tn = ({
2675
2684
  compact: h,
2676
2685
  noBorder: f
2677
2686
  });
2678
- return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: T.wrapper, children: /* @__PURE__ */ $(
2687
+ return y ? (c = w, m = c) : !y && e && i ? (c = null, m = i) : !y && e && !i ? (c = w, m = c) : (c = null, m = i || null), /* @__PURE__ */ l("div", { className: T.wrapper, children: /* @__PURE__ */ M(
2679
2688
  "section",
2680
2689
  {
2681
2690
  ...m && {
@@ -2710,7 +2719,7 @@ const Tn = ({
2710
2719
  ...d
2711
2720
  }) => {
2712
2721
  const h = p(o, a);
2713
- return /* @__PURE__ */ $(et, { children: [
2722
+ return /* @__PURE__ */ M(et, { children: [
2714
2723
  /* @__PURE__ */ l(
2715
2724
  "svg",
2716
2725
  {
@@ -2764,7 +2773,7 @@ const In = ({
2764
2773
  title: r,
2765
2774
  monotone: a,
2766
2775
  ...n
2767
- }) => /* @__PURE__ */ $(
2776
+ }) => /* @__PURE__ */ M(
2768
2777
  Ke,
2769
2778
  {
2770
2779
  defaultViewBox: "0 0 640 512",
@@ -2792,7 +2801,7 @@ const In = ({
2792
2801
  ...n
2793
2802
  }) => {
2794
2803
  const o = a ? "1" : "0.4";
2795
- return /* @__PURE__ */ $(
2804
+ return /* @__PURE__ */ M(
2796
2805
  Ke,
2797
2806
  {
2798
2807
  defaultViewBox: "0 0 190 190",
@@ -2826,7 +2835,7 @@ const In = ({
2826
2835
  title: r,
2827
2836
  monotone: a,
2828
2837
  ...n
2829
- }) => /* @__PURE__ */ $(
2838
+ }) => /* @__PURE__ */ M(
2830
2839
  Ke,
2831
2840
  {
2832
2841
  defaultViewBox: "0 0 576 512",
@@ -3047,10 +3056,10 @@ try {
3047
3056
  });
3048
3057
  } catch {
3049
3058
  }
3050
- const Qt = "av-text-input", Cn = "av-text-input-wrapper", ze = "av-text-input-helper-text";
3051
- function On() {
3059
+ const Qt = "av-text-input", On = "av-text-input-wrapper", ze = "av-text-input-helper-text";
3060
+ function Cn() {
3052
3061
  const e = x(!1);
3053
- return V(() => (e.current = !0, () => {
3062
+ return Y(() => (e.current = !0, () => {
3054
3063
  e.current = !1;
3055
3064
  }), []), q(() => e.current, []);
3056
3065
  }
@@ -3065,13 +3074,13 @@ const Pn = {
3065
3074
  right: 0
3066
3075
  };
3067
3076
  function Dn(e) {
3068
- const t = On(), r = x(0), a = x(null), [n, o] = z(Pn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3077
+ const t = Cn(), r = x(0), a = x(null), [n, o] = z(Pn), s = De(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3069
3078
  const d = i[0];
3070
3079
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3071
3080
  a.current && t() && o(d.contentRect);
3072
3081
  }));
3073
3082
  }), [t]);
3074
- return V(() => (a.current && (s == null || s.observe(a.current, e)), () => {
3083
+ return Y(() => (a.current && (s == null || s.observe(a.current, e)), () => {
3075
3084
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3076
3085
  }), [s, e]), [a, n];
3077
3086
  }
@@ -3171,7 +3180,7 @@ function tr({
3171
3180
  announcement: null
3172
3181
  });
3173
3182
  let m = r;
3174
- typeof m > "u" && (m = a ? $n[a] : "assertive"), V(() => {
3183
+ typeof m > "u" && (m = a ? $n[a] : "assertive"), Y(() => {
3175
3184
  Kn({
3176
3185
  announcementTimeoutRef: h,
3177
3186
  announcementDelay: n,
@@ -3301,7 +3310,7 @@ const Hn = ({
3301
3310
  }) => {
3302
3311
  const f = r ? e : p(
3303
3312
  "relative flex w-full flex-col justify-center",
3304
- Cn,
3313
+ On,
3305
3314
  e
3306
3315
  );
3307
3316
  let u = "";
@@ -3373,14 +3382,14 @@ const Hn = ({
3373
3382
  rightElementClassName: T,
3374
3383
  size: k = "md",
3375
3384
  ...Q
3376
- }, F) => {
3377
- const [Z, D] = Dn(), [W, M] = z(0), S = Ln({ id: e, prefix: `${Qt}-` }), L = `${t} error, ${y}`, U = x(null), I = x(null), C = {
3385
+ }, D) => {
3386
+ const [Z, L] = Dn(), [B, U] = z(0), S = Ln({ id: e, prefix: `${Qt}-` }), $ = `${t} error, ${y}`, K = x(null), I = x(null), O = {
3378
3387
  xs: { label: "-25px", helperText: "30px" },
3379
3388
  sm: { label: "-29px", helperText: "34px" },
3380
3389
  md: { label: "-33px", helperText: "38px" },
3381
3390
  lg: { label: "-15px", helperText: "22px" },
3382
3391
  xl: { label: "-19px", helperText: "25px" }
3383
- }, O = Vn({
3392
+ }, C = Vn({
3384
3393
  className: o,
3385
3394
  inputClassName: s,
3386
3395
  error: a,
@@ -3393,47 +3402,47 @@ const Hn = ({
3393
3402
  rightElementClassName: T
3394
3403
  });
3395
3404
  return Re(() => {
3396
- D && D.width && M(D.width + 18 + 10);
3397
- }, [D]), Re(() => {
3398
- var B, g;
3399
- const { label: E, helperText: b } = C[k];
3400
- (B = U == null ? void 0 : U.current) == null || B.style.setProperty("--av-text-input-label", E), (g = I == null ? void 0 : I.current) == null || g.style.setProperty(
3405
+ L && L.width && U(L.width + 18 + 10);
3406
+ }, [L]), Re(() => {
3407
+ var G, g;
3408
+ const { label: E, helperText: b } = O[k];
3409
+ (G = K == null ? void 0 : K.current) == null || G.style.setProperty("--av-text-input-label", E), (g = I == null ? void 0 : I.current) == null || g.style.setProperty(
3401
3410
  "--av-text-input-helper-text",
3402
3411
  b
3403
3412
  );
3404
- }, [k]), /* @__PURE__ */ $("div", { className: O.wrapper, children: [
3413
+ }, [k]), /* @__PURE__ */ M("div", { className: C.wrapper, children: [
3405
3414
  /* @__PURE__ */ l(
3406
3415
  "label",
3407
3416
  {
3408
3417
  htmlFor: S,
3409
3418
  id: u,
3410
- className: O.accessibleLabel,
3419
+ className: C.accessibleLabel,
3411
3420
  children: r
3412
3421
  }
3413
3422
  ),
3414
3423
  /* @__PURE__ */ l(
3415
3424
  "input",
3416
3425
  {
3417
- ref: F,
3426
+ ref: D,
3418
3427
  id: S,
3419
3428
  name: t,
3420
3429
  type: m,
3421
3430
  disabled: h,
3422
3431
  placeholder: n ? void 0 : " ",
3423
- className: O.input,
3432
+ className: C.input,
3424
3433
  ...y && { "aria-describedby": `${S}-helper` },
3425
3434
  ...a && { "aria-invalid": "true" },
3426
- ...w && !n && { style: { paddingRight: W } },
3435
+ ...w && !n && { style: { paddingRight: B } },
3427
3436
  ...Q
3428
3437
  }
3429
3438
  ),
3430
3439
  !n && !c && /* @__PURE__ */ l(
3431
3440
  "label",
3432
3441
  {
3433
- ref: U,
3442
+ ref: K,
3434
3443
  "aria-hidden": !0,
3435
3444
  htmlFor: S,
3436
- className: O.visibleLabel,
3445
+ className: C.visibleLabel,
3437
3446
  children: r
3438
3447
  }
3439
3448
  ),
@@ -3442,7 +3451,7 @@ const Hn = ({
3442
3451
  {
3443
3452
  ref: I,
3444
3453
  id: `${S}-helper`,
3445
- className: O.helperText,
3454
+ className: C.helperText,
3446
3455
  children: y
3447
3456
  }
3448
3457
  ),
@@ -3450,11 +3459,11 @@ const Hn = ({
3450
3459
  "div",
3451
3460
  {
3452
3461
  ref: Z,
3453
- className: O.rightElement,
3462
+ className: C.rightElement,
3454
3463
  children: w
3455
3464
  }
3456
3465
  ),
3457
- a && y && /* @__PURE__ */ l(tr, { politeness: "polite", clearAnnouncementDelay: 500, children: L })
3466
+ a && y && /* @__PURE__ */ l(tr, { politeness: "polite", clearAnnouncementDelay: 500, children: $ })
3458
3467
  ] });
3459
3468
  }
3460
3469
  );
@@ -3484,7 +3493,7 @@ const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3484
3493
  const [c, m] = z(!0), [y, w] = z({
3485
3494
  message: null,
3486
3495
  politeness: null
3487
- }), T = x(!0), k = x(null), Q = x(null), F = Yn([u, Q]), Z = c ? "Show" : "Hide", D = () => {
3496
+ }), T = x(!0), k = x(null), Q = x(null), D = Yn([u, Q]), Z = c ? "Show" : "Hide", L = () => {
3488
3497
  k.current && clearTimeout(k.current), T.current || (k.current = setTimeout(() => {
3489
3498
  T.current = !0, m(!0), w({
3490
3499
  announcementTimeout: jn,
@@ -3492,45 +3501,45 @@ const Fn = 500, jn = 5e3, zn = 2e4, rr = X.forwardRef(
3492
3501
  message: `${r} hiding characters`
3493
3502
  }), n && n(!0);
3494
3503
  }, zn));
3495
- }, W = (I) => {
3504
+ }, B = (I) => {
3496
3505
  I.preventDefault();
3497
- const C = !T.current;
3498
- T.current = C, D(), m(C), w({
3506
+ const O = !T.current;
3507
+ T.current = O, L(), m(O), w({
3499
3508
  announcementTimeout: Fn,
3500
3509
  politeness: "assertive",
3501
- message: C ? "Characters hidden" : "Characters showing"
3502
- }), n && n(C);
3503
- }, M = (I) => {
3504
- var C;
3505
- const { relatedTarget: O } = I, B = (C = Q.current) == null ? void 0 : C.parentElement;
3506
- B != null && B.contains(O) || d && d();
3507
- }, S = (I) => {
3508
- D(), s && s(I), M(I);
3509
- }, L = (I) => {
3510
- D(), i && i(I);
3510
+ message: O ? "Characters hidden" : "Characters showing"
3511
+ }), n && n(O);
3511
3512
  }, U = (I) => {
3512
- D(), o && o(I);
3513
+ var O;
3514
+ const { relatedTarget: C } = I, G = (O = Q.current) == null ? void 0 : O.parentElement;
3515
+ G != null && G.contains(C) || d && d();
3516
+ }, S = (I) => {
3517
+ L(), s && s(I), U(I);
3518
+ }, $ = (I) => {
3519
+ L(), i && i(I);
3520
+ }, K = (I) => {
3521
+ L(), o && o(I);
3513
3522
  };
3514
- return V(() => () => {
3523
+ return Y(() => () => {
3515
3524
  k.current && clearTimeout(k.current);
3516
- }, []), /* @__PURE__ */ $(et, { children: [
3525
+ }, []), /* @__PURE__ */ M(et, { children: [
3517
3526
  /* @__PURE__ */ l(
3518
3527
  ot,
3519
3528
  {
3520
- ref: F,
3529
+ ref: D,
3521
3530
  name: e,
3522
3531
  label: r,
3523
3532
  labelHidden: a,
3524
3533
  type: c ? "password" : "text",
3525
3534
  disabled: t,
3526
3535
  onBlur: S,
3527
- onFocus: L,
3528
- onChange: U,
3536
+ onFocus: $,
3537
+ onChange: K,
3529
3538
  rightElement: X.cloneElement(h, {
3530
3539
  ref: u,
3531
3540
  label: Z,
3532
- onClick: W,
3533
- onBlur: M,
3541
+ onClick: B,
3542
+ onBlur: U,
3534
3543
  disabled: t
3535
3544
  }),
3536
3545
  ...f
@@ -3599,9 +3608,9 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3599
3608
  SETTINGS_ENGINE: {
3600
3609
  TITLE: "AI Engine"
3601
3610
  }
3602
- }, eo = () => /* @__PURE__ */ $("div", { className: "flex items-center justify-center", children: [
3611
+ }, eo = () => /* @__PURE__ */ M("div", { className: "flex items-center justify-center", children: [
3603
3612
  /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(In, {}) }),
3604
- /* @__PURE__ */ $("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3613
+ /* @__PURE__ */ M("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3605
3614
  /* @__PURE__ */ l("h1", { children: ar }),
3606
3615
  /* @__PURE__ */ l("h2", { children: qn })
3607
3616
  ] })
@@ -3612,15 +3621,15 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3612
3621
  }), u = async (c) => {
3613
3622
  c.preventDefault(), await e(h.username, h.password) || (s(""), n("Invalid username or password"));
3614
3623
  };
3615
- return V(() => {
3624
+ return Y(() => {
3616
3625
  var c;
3617
3626
  (c = document.getElementById("logo")) == null || c.classList.add("fadeOut"), setTimeout(() => {
3618
3627
  var m;
3619
3628
  (m = document.getElementById("root")) == null || m.classList.replace("app-hidden", "fadeIn");
3620
3629
  }, 500);
3621
- }), V(() => {
3630
+ }), Y(() => {
3622
3631
  t && s(t);
3623
- }, [t]), /* @__PURE__ */ l(et, { children: /* @__PURE__ */ $(
3632
+ }, [t]), /* @__PURE__ */ l(et, { children: /* @__PURE__ */ M(
3624
3633
  Rn,
3625
3634
  {
3626
3635
  className: Xa({
@@ -3638,7 +3647,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3638
3647
  children: /* @__PURE__ */ l(eo, {})
3639
3648
  }
3640
3649
  ),
3641
- /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(vn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ $(Tn, { mode: "dark", children: [
3650
+ /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(vn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ M(Tn, { mode: "dark", children: [
3642
3651
  /* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3643
3652
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3644
3653
  ot,
@@ -3674,7 +3683,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3674
3683
  name: "password",
3675
3684
  label: Zn,
3676
3685
  rightElement: /* @__PURE__ */ l(
3677
- Oe,
3686
+ Ce,
3678
3687
  {
3679
3688
  focusMode: "light",
3680
3689
  mode: "dark",
@@ -3707,7 +3716,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3707
3716
  ) }),
3708
3717
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
3709
3718
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3710
- Oe,
3719
+ Ce,
3711
3720
  {
3712
3721
  variant: "selected",
3713
3722
  mode: "dark",
@@ -3725,7 +3734,7 @@ const qn = "ASK! ME! ANYTHING!", ar = "Callisto", Xn = "Log in", Qn = "Sign in w
3725
3734
  ) });
3726
3735
  }, ro = new URL(document.location.href).searchParams, ao = !!ro.get("debug") || !1, no = ir(() => import(
3727
3736
  /* webpackChunkName: "LazyApp" */
3728
- "./App.BP43Jj_A.js"
3737
+ "./App.KB01Hp9h.js"
3729
3738
  ).then((e) => e.App)), oo = ({ isComponent: e }) => {
3730
3739
  const { isAuthenticated: t } = zt();
3731
3740
  return t ? /* @__PURE__ */ l(cr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(no, { isComponent: e }) }) : /* @__PURE__ */ l(to, {});
@@ -3740,8 +3749,8 @@ export {
3740
3749
  Ro as ACTION_RESET,
3741
3750
  Do as ACTION_RESET_PROMPT,
3742
3751
  vo as ACTION_RESTORE,
3743
- Co as ACTION_SEARCH,
3744
- Oo as ACTION_SORT,
3752
+ Oo as ACTION_SEARCH,
3753
+ Co as ACTION_SORT,
3745
3754
  xo as ACTION_STREAMING,
3746
3755
  Po as ACTION_TOGGLE_PROMPT,
3747
3756
  ar as APP_NAME,
@@ -3793,6 +3802,6 @@ export {
3793
3802
  qo as pluralize,
3794
3803
  Rn as r,
3795
3804
  Fo as renderDataAsList,
3796
- Oe as te,
3805
+ Ce as te,
3797
3806
  zt as un
3798
3807
  };