@versini/sassysaint 5.4.2 → 5.4.4

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,7 +1,7 @@
1
- import { jsx as l, jsxs as I, Fragment as ye } from "react/jsx-runtime";
2
- import P, { createContext as cr, useReducer as It, useRef as H, useCallback as X, useEffect as Z, useContext as Xe, useSyncExternalStore as lr, useId as _t, useState as q, useLayoutEffect as st, useMemo as St, lazy as vt, Suspense as kt } from "react";
3
- import f from "clsx";
4
- var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ke = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
1
+ import { jsx as l, jsxs as _, Fragment as fe } from "react/jsx-runtime";
2
+ import P, { createContext as cr, useReducer as _t, useRef as K, useCallback as X, useEffect as Z, useContext as Xe, useSyncExternalStore as lr, useId as Tt, useState as q, useLayoutEffect as st, useMemo as St, lazy as vt, Suspense as At } from "react";
3
+ import y from "clsx";
4
+ var dr = Object.defineProperty, ur = (e, t, r) => t in e ? dr(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Ue = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
6
  @versini/auth-provider v7.4.0
7
7
  © 2024 gizmette.com
@@ -15,7 +15,7 @@ try {
15
15
  });
16
16
  } catch {
17
17
  }
18
- function G(e) {
18
+ function V(e) {
19
19
  const t = new Uint8Array(e);
20
20
  let r = "";
21
21
  for (const a of t)
@@ -31,7 +31,7 @@ function Ne(e) {
31
31
  function Qe() {
32
32
  return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
33
33
  }
34
- function At(e) {
34
+ function kt(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
@@ -157,7 +157,7 @@ async function gr(e) {
157
157
  ...e.user,
158
158
  id: Ne(e.user.id)
159
159
  },
160
- excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(At)
160
+ excludeCredentials: (m = e.excludeCredentials) == null ? void 0 : m.map(kt)
161
161
  } };
162
162
  t.signal = Rt.createNewAbortSignal();
163
163
  let r;
@@ -176,29 +176,29 @@ async function gr(e) {
176
176
  try {
177
177
  u = o.getPublicKeyAlgorithm();
178
178
  } catch (c) {
179
- He("getPublicKeyAlgorithm()", c);
179
+ Ke("getPublicKeyAlgorithm()", c);
180
180
  }
181
181
  let h;
182
182
  if (typeof o.getPublicKey == "function")
183
183
  try {
184
184
  const c = o.getPublicKey();
185
- c !== null && (h = G(c));
185
+ c !== null && (h = V(c));
186
186
  } catch (c) {
187
- He("getPublicKey()", c);
187
+ Ke("getPublicKey()", c);
188
188
  }
189
189
  let p;
190
190
  if (typeof o.getAuthenticatorData == "function")
191
191
  try {
192
- p = G(o.getAuthenticatorData());
192
+ p = V(o.getAuthenticatorData());
193
193
  } catch (c) {
194
- He("getAuthenticatorData()", c);
194
+ Ke("getAuthenticatorData()", c);
195
195
  }
196
196
  return {
197
197
  id: a,
198
- rawId: G(n),
198
+ rawId: V(n),
199
199
  response: {
200
- attestationObject: G(o.attestationObject),
201
- clientDataJSON: G(o.clientDataJSON),
200
+ attestationObject: V(o.attestationObject),
201
+ clientDataJSON: V(o.clientDataJSON),
202
202
  transports: i,
203
203
  publicKeyAlgorithm: u,
204
204
  publicKey: h,
@@ -209,17 +209,17 @@ async function gr(e) {
209
209
  authenticatorAttachment: xt(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
- function He(e, t) {
212
+ function Ke(e, t) {
213
213
  console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
214
214
  `, t);
215
215
  }
216
- function fr() {
216
+ function yr() {
217
217
  if (!Qe())
218
218
  return new Promise((t) => t(!1));
219
219
  const e = window.PublicKeyCredential;
220
220
  return e.isConditionalMediationAvailable === void 0 ? new Promise((t) => t(!1)) : e.isConditionalMediationAvailable();
221
221
  }
222
- function yr({ 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");
@@ -265,14 +265,14 @@ async function br(e, t = !1) {
265
265
  if (!Qe())
266
266
  throw new Error("WebAuthn is not supported in this browser");
267
267
  let r;
268
- ((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(At));
268
+ ((m = e.allowCredentials) == null ? void 0 : m.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(kt));
269
269
  const a = {
270
270
  ...e,
271
271
  challenge: Ne(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
275
- if (!await fr())
275
+ if (!await yr())
276
276
  throw Error("Browser does not support WebAuthn autofill");
277
277
  if (document.querySelectorAll("input[autocomplete$='webauthn']").length < 1)
278
278
  throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');
@@ -283,19 +283,19 @@ async function br(e, t = !1) {
283
283
  try {
284
284
  o = await navigator.credentials.get(n);
285
285
  } catch (d) {
286
- throw yr({ error: d, options: n });
286
+ throw fr({ error: d, options: n });
287
287
  }
288
288
  if (!o)
289
289
  throw new Error("Authentication was not completed");
290
290
  const { id: s, rawId: i, response: u, type: h } = o;
291
291
  let p;
292
- return u.userHandle && (p = G(u.userHandle)), {
292
+ return u.userHandle && (p = V(u.userHandle)), {
293
293
  id: s,
294
- rawId: G(i),
294
+ rawId: V(i),
295
295
  response: {
296
- authenticatorData: G(u.authenticatorData),
297
- clientDataJSON: G(u.clientDataJSON),
298
- signature: G(u.signature),
296
+ authenticatorData: V(u.authenticatorData),
297
+ clientDataJSON: V(u.clientDataJSON),
298
+ signature: V(u.signature),
299
299
  userHandle: p
300
300
  },
301
301
  type: h,
@@ -325,7 +325,7 @@ const ue = {
325
325
  PASSKEY: "passkey"
326
326
  }, Ct = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
- }, A = {
328
+ }, k = {
329
329
  ALG: "RS256",
330
330
  USER_ID_KEY: "sub",
331
331
  USERNAME_KEY: "username",
@@ -359,7 +359,7 @@ function wr(...e) {
359
359
  r.set(n, a), a += n.length;
360
360
  return r;
361
361
  }
362
- const Tr = (e) => {
362
+ const Ir = (e) => {
363
363
  const t = atob(e), r = new Uint8Array(t.length);
364
364
  for (let a = 0; a < t.length; a++)
365
365
  r[a] = t.charCodeAt(a);
@@ -368,7 +368,7 @@ const Tr = (e) => {
368
368
  let t = e;
369
369
  t instanceof Uint8Array && (t = be.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
370
370
  try {
371
- return Tr(t);
371
+ return Ir(t);
372
372
  } catch {
373
373
  throw new TypeError("The input to be decoded is not correctly encoded.");
374
374
  }
@@ -380,12 +380,12 @@ let O = class extends Error {
380
380
  }
381
381
  };
382
382
  O.code = "ERR_JOSE_GENERIC";
383
- let U = class extends O {
383
+ let M = class extends O {
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
- U.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
388
+ M.code = "ERR_JWT_CLAIM_VALIDATION_FAILED";
389
389
  class ze extends O {
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,36 +398,36 @@ class Pt extends O {
398
398
  }
399
399
  }
400
400
  Pt.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
- let K = class extends O {
401
+ let U = class extends O {
402
402
  constructor() {
403
403
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
404
404
  }
405
405
  };
406
- K.code = "ERR_JOSE_NOT_SUPPORTED";
407
- class Ir extends O {
406
+ U.code = "ERR_JOSE_NOT_SUPPORTED";
407
+ class _r extends O {
408
408
  constructor(t = "decryption operation failed", r) {
409
409
  super(t, r), this.code = "ERR_JWE_DECRYPTION_FAILED";
410
410
  }
411
411
  }
412
- Ir.code = "ERR_JWE_DECRYPTION_FAILED";
413
- class _r extends O {
412
+ _r.code = "ERR_JWE_DECRYPTION_FAILED";
413
+ class Tr extends O {
414
414
  constructor() {
415
415
  super(...arguments), this.code = "ERR_JWE_INVALID";
416
416
  }
417
417
  }
418
- _r.code = "ERR_JWE_INVALID";
418
+ Tr.code = "ERR_JWE_INVALID";
419
419
  let S = class extends O {
420
420
  constructor() {
421
421
  super(...arguments), this.code = "ERR_JWS_INVALID";
422
422
  }
423
423
  };
424
424
  S.code = "ERR_JWS_INVALID";
425
- let B = class extends O {
425
+ let W = class extends O {
426
426
  constructor() {
427
427
  super(...arguments), this.code = "ERR_JWT_INVALID";
428
428
  }
429
429
  };
430
- B.code = "ERR_JWT_INVALID";
430
+ W.code = "ERR_JWT_INVALID";
431
431
  class Sr extends O {
432
432
  constructor() {
433
433
  super(...arguments), this.code = "ERR_JWK_INVALID";
@@ -440,18 +440,18 @@ class vr extends O {
440
440
  }
441
441
  }
442
442
  vr.code = "ERR_JWKS_INVALID";
443
- class kr extends O {
443
+ class Ar extends O {
444
444
  constructor(t = "no applicable key found in the JSON Web Key Set", r) {
445
445
  super(t, r), this.code = "ERR_JWKS_NO_MATCHING_KEY";
446
446
  }
447
447
  }
448
- kr.code = "ERR_JWKS_NO_MATCHING_KEY";
449
- class Ar extends O {
448
+ Ar.code = "ERR_JWKS_NO_MATCHING_KEY";
449
+ class kr extends O {
450
450
  constructor(t = "multiple matching keys found in the JSON Web Key Set", r) {
451
451
  super(t, r), this.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
452
452
  }
453
453
  }
454
- Ar.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
454
+ kr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
455
  class Nr extends O {
456
456
  constructor(t = "request timed out", r) {
457
457
  super(t, r), this.code = "ERR_JWKS_TIMEOUT";
@@ -467,10 +467,10 @@ Dt.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
467
467
  function F(e, t = "algorithm.name") {
468
468
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
469
469
  }
470
- function Te(e, t) {
470
+ function Ie(e, t) {
471
471
  return e.name === t;
472
472
  }
473
- function $e(e) {
473
+ function He(e) {
474
474
  return parseInt(e.name.slice(4), 10);
475
475
  }
476
476
  function Rr(e) {
@@ -500,30 +500,30 @@ function Cr(e, t, ...r) {
500
500
  case "HS256":
501
501
  case "HS384":
502
502
  case "HS512": {
503
- if (!Te(e.algorithm, "HMAC"))
503
+ if (!Ie(e.algorithm, "HMAC"))
504
504
  throw F("HMAC");
505
505
  const a = parseInt(t.slice(2), 10);
506
- if ($e(e.algorithm.hash) !== a)
506
+ if (He(e.algorithm.hash) !== a)
507
507
  throw F(`SHA-${a}`, "algorithm.hash");
508
508
  break;
509
509
  }
510
510
  case "RS256":
511
511
  case "RS384":
512
512
  case "RS512": {
513
- if (!Te(e.algorithm, "RSASSA-PKCS1-v1_5"))
513
+ if (!Ie(e.algorithm, "RSASSA-PKCS1-v1_5"))
514
514
  throw F("RSASSA-PKCS1-v1_5");
515
515
  const a = parseInt(t.slice(2), 10);
516
- if ($e(e.algorithm.hash) !== a)
516
+ if (He(e.algorithm.hash) !== a)
517
517
  throw F(`SHA-${a}`, "algorithm.hash");
518
518
  break;
519
519
  }
520
520
  case "PS256":
521
521
  case "PS384":
522
522
  case "PS512": {
523
- if (!Te(e.algorithm, "RSA-PSS"))
523
+ if (!Ie(e.algorithm, "RSA-PSS"))
524
524
  throw F("RSA-PSS");
525
525
  const a = parseInt(t.slice(2), 10);
526
- if ($e(e.algorithm.hash) !== a)
526
+ if (He(e.algorithm.hash) !== a)
527
527
  throw F(`SHA-${a}`, "algorithm.hash");
528
528
  break;
529
529
  }
@@ -535,7 +535,7 @@ function Cr(e, t, ...r) {
535
535
  case "ES256":
536
536
  case "ES384":
537
537
  case "ES512": {
538
- if (!Te(e.algorithm, "ECDSA"))
538
+ if (!Ie(e.algorithm, "ECDSA"))
539
539
  throw F("ECDSA");
540
540
  const a = Rr(t);
541
541
  if (e.algorithm.namedCurve !== a)
@@ -547,7 +547,7 @@ function Cr(e, t, ...r) {
547
547
  }
548
548
  xr(e, r);
549
549
  }
550
- function Lt(e, t, ...r) {
550
+ function $t(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 Lt(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) => Lt("Key must be ", e, ...t);
559
- function Mt(e, t, ...r) {
560
- return Lt(`Key for the ${e} algorithm must be `, t, ...r);
558
+ const it = (e, ...t) => $t("Key must be ", e, ...t);
559
+ function Lt(e, t, ...r) {
560
+ return $t(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Ut = (e) => Ot(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], Or = (...e) => {
562
+ const Mt = (e) => Ot(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Re = ["CryptoKey"], Or = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -601,16 +601,16 @@ const Dr = (e, t) => {
601
601
  function he(e) {
602
602
  return me(e) && typeof e.kty == "string";
603
603
  }
604
- function Lr(e) {
604
+ function $r(e) {
605
605
  return e.kty !== "oct" && typeof e.d == "string";
606
606
  }
607
- function Mr(e) {
607
+ function Lr(e) {
608
608
  return e.kty !== "oct" && typeof e.d > "u";
609
609
  }
610
- function Ur(e) {
610
+ function Mr(e) {
611
611
  return he(e) && e.kty === "oct" && typeof e.k == "string";
612
612
  }
613
- function Kr(e) {
613
+ function Ur(e) {
614
614
  let t, r;
615
615
  switch (e.kty) {
616
616
  case "RSA": {
@@ -635,7 +635,7 @@ function Kr(e) {
635
635
  }, r = e.d ? ["decrypt", "unwrapKey"] : ["encrypt", "wrapKey"];
636
636
  break;
637
637
  default:
638
- throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
638
+ throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
639
639
  }
640
640
  break;
641
641
  }
@@ -657,7 +657,7 @@ function Kr(e) {
657
657
  t = { name: "ECDH", namedCurve: e.crv }, r = e.d ? ["deriveBits"] : [];
658
658
  break;
659
659
  default:
660
- throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
660
+ throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
661
661
  }
662
662
  break;
663
663
  }
@@ -673,45 +673,45 @@ function Kr(e) {
673
673
  t = { name: e.crv }, r = e.d ? ["deriveBits"] : [];
674
674
  break;
675
675
  default:
676
- throw new K('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
676
+ throw new U('Invalid or unsupported JWK "alg" (Algorithm) Parameter value');
677
677
  }
678
678
  break;
679
679
  }
680
680
  default:
681
- throw new K('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
681
+ throw new U('Invalid or unsupported JWK "kty" (Key Type) Parameter value');
682
682
  }
683
683
  return { algorithm: t, keyUsages: r };
684
684
  }
685
- const Kt = async (e) => {
685
+ const Ut = async (e) => {
686
686
  if (!e.alg)
687
687
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
688
- const { algorithm: t, keyUsages: r } = Kr(e), a = [
688
+ const { algorithm: t, keyUsages: r } = Ur(e), a = [
689
689
  t,
690
690
  e.ext ?? !1,
691
691
  e.key_ops ?? r
692
692
  ], n = { ...e };
693
693
  return delete n.alg, delete n.use, De.subtle.importKey("jwk", n, ...a);
694
- }, Ht = (e) => Q(e);
694
+ }, Kt = (e) => Q(e);
695
695
  let ae, ne;
696
- const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = async (e, t, r, a, n = !1) => {
696
+ const Ht = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = 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];
700
- const s = await Kt({ ...r, alg: a });
700
+ const s = await Ut({ ...r, alg: a });
701
701
  return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
702
- }, Hr = (e, t) => {
703
- if ($t(e)) {
702
+ }, Kr = (e, t) => {
703
+ if (Ht(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 ? Ht(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, 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 ? Kt(r.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, r, t));
706
706
  }
707
707
  return he(e) ? e.k ? Q(e.k) : (ne || (ne = /* @__PURE__ */ new WeakMap()), xe(ne, e, e, t, !0)) : e;
708
- }, $r = (e, t) => {
709
- if ($t(e)) {
708
+ }, Hr = (e, t) => {
709
+ if (Ht(e)) {
710
710
  let r = e.export({ format: "jwk" });
711
- return r.k ? Ht(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, r, t));
711
+ return r.k ? Kt(r.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, r, t));
712
712
  }
713
713
  return he(e) ? e.k ? Q(e.k) : (ae || (ae = /* @__PURE__ */ new WeakMap()), xe(ae, e, e, t, !0)) : e;
714
- }, Wr = { normalizePublicKey: Hr, normalizePrivateKey: $r }, j = (e, t, r = 0) => {
714
+ }, Gr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, 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);
717
717
  if (a === -1)
@@ -735,9 +735,9 @@ const $t = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
735
735
  case j(e, [43, 101, 113]):
736
736
  return "Ed448";
737
737
  default:
738
- throw new K("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
738
+ throw new U("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
739
739
  }
740
- }, Br = async (e, t, r, a, n) => {
740
+ }, Wr = async (e, t, r, a, n) => {
741
741
  let o, s;
742
742
  const i = new Uint8Array(atob(r.replace(e, "")).split("").map((u) => u.charCodeAt(0)));
743
743
  switch (a) {
@@ -781,16 +781,16 @@ const $t = (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 K('Invalid or unsupported "alg" (Algorithm) value');
784
+ throw new U('Invalid or unsupported "alg" (Algorithm) value');
785
785
  }
786
786
  return De.subtle.importKey(t, i, o, !1, s);
787
- }, Gr = (e, t, r) => Br(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
- async function Jr(e, t, r) {
787
+ }, Vr = (e, t, r) => Wr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
+ async function Br(e, t, r) {
789
789
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
790
790
  throw new TypeError('"spki" must be SPKI formatted string');
791
- return Gr(e, t);
791
+ return Vr(e, t);
792
792
  }
793
- async function Vr(e, t) {
793
+ async function Jr(e, t) {
794
794
  if (!me(e))
795
795
  throw new TypeError("JWK must be an object");
796
796
  switch (t || (t = e.alg), e.kty) {
@@ -800,12 +800,12 @@ async function Vr(e, t) {
800
800
  return Q(e.k);
801
801
  case "RSA":
802
802
  if (e.oth !== void 0)
803
- throw new K('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
803
+ throw new U('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
804
804
  case "EC":
805
805
  case "OKP":
806
- return Kt({ ...e, alg: t });
806
+ return Ut({ ...e, alg: t });
807
807
  default:
808
- throw new K('Unsupported "kty" (Key Type) Parameter value');
808
+ throw new U('Unsupported "kty" (Key Type) Parameter value');
809
809
  }
810
810
  }
811
811
  const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) => {
@@ -820,12 +820,12 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
820
820
  }, Yr = (e, t, r, a) => {
821
821
  if (!(t instanceof Uint8Array)) {
822
822
  if (a && he(t)) {
823
- if (Ur(t) && je(e, t, r))
823
+ if (Mr(t) && je(e, t, r))
824
824
  return;
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
- if (!Ut(t))
828
- throw new TypeError(Mt(e, t, ...Re, "Uint8Array", a ? "JSON Web Key" : null));
827
+ if (!Mt(t))
828
+ throw new TypeError(Lt(e, t, ...Re, "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
  }
@@ -833,16 +833,16 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
833
833
  if (a && he(t))
834
834
  switch (r) {
835
835
  case "sign":
836
- if (Lr(t) && je(e, t, r))
836
+ if ($r(t) && je(e, t, r))
837
837
  return;
838
838
  throw new TypeError("JSON Web Key for this operation be a private JWK");
839
839
  case "verify":
840
- if (Mr(t) && je(e, t, r))
840
+ if (Lr(t) && je(e, t, r))
841
841
  return;
842
842
  throw new TypeError("JSON Web Key for this operation be a public JWK");
843
843
  }
844
- if (!Ut(t))
845
- throw new TypeError(Mt(e, t, ...Re, a ? "JSON Web Key" : null));
844
+ if (!Mt(t))
845
+ throw new TypeError(Lt(e, t, ...Re, 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")
@@ -854,11 +854,11 @@ const de = (e) => e == null ? void 0 : e[Symbol.toStringTag], je = (e, t, r) =>
854
854
  if (t.algorithm && r === "encrypt" && t.type === "private")
855
855
  throw new TypeError(`${de(t)} instances for asymmetric algorithm encryption must be of type "public"`);
856
856
  };
857
- function Wt(e, t, r, a) {
857
+ function Gt(e, t, r, a) {
858
858
  t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Yr(t, r, a, e) : Fr(t, r, a, e);
859
859
  }
860
- Wt.bind(void 0, !1);
861
- const lt = Wt.bind(void 0, !0);
860
+ Gt.bind(void 0, !1);
861
+ const lt = Gt.bind(void 0, !0);
862
862
  function zr(e, t, r, a, n) {
863
863
  if (n.crit !== void 0 && (a == null ? void 0 : a.crit) === void 0)
864
864
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
@@ -870,7 +870,7 @@ function zr(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 K(`Extension Header Parameter "${s}" is not recognized`);
873
+ throw new U(`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,11 +906,11 @@ function qr(e, t) {
906
906
  case "EdDSA":
907
907
  return { name: t.name };
908
908
  default:
909
- throw new K(`alg ${e} is not supported either by JOSE or your javascript runtime`);
909
+ throw new U(`alg ${e} is not supported either by JOSE or your javascript runtime`);
910
910
  }
911
911
  }
912
912
  async function Xr(e, t, r) {
913
- if (t = await Wr.normalizePublicKey(t, e), Ot(t))
913
+ if (t = await Gr.normalizePublicKey(t, e), Ot(t))
914
914
  return Cr(t, e, r), t;
915
915
  if (t instanceof Uint8Array) {
916
916
  if (!e.startsWith("HS"))
@@ -945,8 +945,8 @@ async function Zr(e, t, r) {
945
945
  let a = {};
946
946
  if (e.protected)
947
947
  try {
948
- const y = Q(e.protected);
949
- a = JSON.parse(be.decode(y));
948
+ const f = Q(e.protected);
949
+ a = JSON.parse(be.decode(f));
950
950
  } catch {
951
951
  throw new S("JWS Protected Header is invalid");
952
952
  }
@@ -962,7 +962,7 @@ async function Zr(e, t, r) {
962
962
  const { alg: i } = n;
963
963
  if (typeof i != "string" || !i)
964
964
  throw new S('JWS "alg" (Algorithm) Header Parameter missing or invalid');
965
- const u = r && jr("algorithms", r.algorithms);
965
+ const u = jr("algorithms", r.algorithms);
966
966
  if (u && !u.has(i))
967
967
  throw new Pt('"alg" (Algorithm) Header Parameter value not allowed');
968
968
  if (s) {
@@ -971,7 +971,7 @@ async function Zr(e, t, r) {
971
971
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
972
972
  throw new S("JWS Payload must be a string or an Uint8Array instance");
973
973
  let h = !1;
974
- typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), he(t) && (t = await Vr(t, i))) : lt(i, t, "verify");
974
+ typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), he(t) && (t = await Jr(t, i))) : lt(i, t, "verify");
975
975
  const p = wr(we.encode(e.protected ?? ""), we.encode("."), typeof e.payload == "string" ? we.encode(e.payload) : e.payload);
976
976
  let m;
977
977
  try {
@@ -1001,7 +1001,7 @@ async function ea(e, t, r) {
1001
1001
  const i = await Zr({ payload: n, protected: a, signature: o }, t, r), u = { payload: i.payload, protectedHeader: i.protectedHeader };
1002
1002
  return typeof t == "function" ? { ...u, key: i.key } : u;
1003
1003
  }
1004
- const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt * 24, ra = Ze * 7, aa = Ze * 365.25, na = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
1004
+ const ta = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Vt = Wt * 60, Ze = Vt * 24, ra = Ze * 7, aa = Ze * 365.25, na = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, dt = (e) => {
1005
1005
  const t = na.exec(e);
1006
1006
  if (!t || t[4] && t[1])
1007
1007
  throw new TypeError("Invalid time period format");
@@ -1020,14 +1020,14 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
1020
1020
  case "min":
1021
1021
  case "mins":
1022
1022
  case "m":
1023
- n = Math.round(r * Bt);
1023
+ n = Math.round(r * Wt);
1024
1024
  break;
1025
1025
  case "hour":
1026
1026
  case "hours":
1027
1027
  case "hr":
1028
1028
  case "hrs":
1029
1029
  case "h":
1030
- n = Math.round(r * Gt);
1030
+ n = Math.round(r * Vt);
1031
1031
  break;
1032
1032
  case "day":
1033
1033
  case "days":
@@ -1051,21 +1051,21 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
1051
1051
  } catch {
1052
1052
  }
1053
1053
  if (!me(a))
1054
- throw new B("JWT Claims Set must be a top-level JSON object");
1054
+ throw new W("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 U('unexpected "typ" JWT header value', a, "typ", "check_failed");
1057
+ throw new M('unexpected "typ" JWT header value', a, "typ", "check_failed");
1058
1058
  const { requiredClaims: o = [], issuer: s, subject: i, audience: u, maxTokenAge: h } = r, p = [...o];
1059
1059
  h !== void 0 && p.push("iat"), u !== void 0 && p.push("aud"), i !== void 0 && p.push("sub"), s !== void 0 && p.push("iss");
1060
- for (const y of new Set(p.reverse()))
1061
- if (!(y in a))
1062
- throw new U(`missing required "${y}" claim`, a, y, "missing");
1060
+ for (const f of new Set(p.reverse()))
1061
+ if (!(f in a))
1062
+ throw new M(`missing required "${f}" claim`, a, f, "missing");
1063
1063
  if (s && !(Array.isArray(s) ? s : [s]).includes(a.iss))
1064
- throw new U('unexpected "iss" claim value', a, "iss", "check_failed");
1064
+ throw new M('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
1066
- throw new U('unexpected "sub" claim value', a, "sub", "check_failed");
1066
+ throw new M('unexpected "sub" claim value', a, "sub", "check_failed");
1067
1067
  if (u && !oa(a.aud, typeof u == "string" ? [u] : u))
1068
- throw new U('unexpected "aud" claim value', a, "aud", "check_failed");
1068
+ throw new M('unexpected "aud" claim value', a, "aud", "check_failed");
1069
1069
  let m;
1070
1070
  switch (typeof r.clockTolerance) {
1071
1071
  case "string":
@@ -1082,25 +1082,25 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Bt = 60, Gt = Bt * 60, Ze = Gt
1082
1082
  }
1083
1083
  const { currentDate: c } = r, d = ta(c || /* @__PURE__ */ new Date());
1084
1084
  if ((a.iat !== void 0 || h) && typeof a.iat != "number")
1085
- throw new U('"iat" claim must be a number', a, "iat", "invalid");
1085
+ throw new M('"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 U('"nbf" claim must be a number', a, "nbf", "invalid");
1088
+ throw new M('"nbf" claim must be a number', a, "nbf", "invalid");
1089
1089
  if (a.nbf > d + m)
1090
- throw new U('"nbf" claim timestamp check failed', a, "nbf", "check_failed");
1090
+ throw new M('"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 U('"exp" claim must be a number', a, "exp", "invalid");
1094
+ throw new M('"exp" claim must be a number', a, "exp", "invalid");
1095
1095
  if (a.exp <= d - m)
1096
1096
  throw new ze('"exp" claim timestamp check failed', a, "exp", "check_failed");
1097
1097
  }
1098
1098
  if (h) {
1099
- const y = d - a.iat, b = typeof h == "number" ? h : dt(h);
1100
- if (y - m > b)
1099
+ const f = d - a.iat, b = typeof h == "number" ? h : dt(h);
1100
+ if (f - m > b)
1101
1101
  throw new ze('"iat" claim timestamp check failed (too far in the past)', a, "iat", "check_failed");
1102
- if (y < 0 - m)
1103
- throw new U('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1102
+ if (f < 0 - m)
1103
+ throw new M('"iat" claim timestamp check failed (it should be in the past)', a, "iat", "check_failed");
1104
1104
  }
1105
1105
  return a;
1106
1106
  };
@@ -1108,42 +1108,42 @@ async function ia(e, t, r) {
1108
1108
  var a;
1109
1109
  const n = await ea(e, t, r);
1110
1110
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1111
- throw new B("JWTs MUST NOT use unencoded payload");
1111
+ throw new W("JWTs MUST NOT use unencoded payload");
1112
1112
  const o = { payload: sa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1113
1113
  return typeof t == "function" ? { ...o, key: n.key } : o;
1114
1114
  }
1115
1115
  const ca = Q;
1116
1116
  function la(e) {
1117
1117
  if (typeof e != "string")
1118
- throw new B("JWTs must use Compact JWS serialization, JWT must be a string");
1118
+ throw new W("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 B("Only JWTs using Compact JWS serialization can be decoded");
1121
+ throw new W("Only JWTs using Compact JWS serialization can be decoded");
1122
1122
  if (r !== 3)
1123
- throw new B("Invalid JWT");
1123
+ throw new W("Invalid JWT");
1124
1124
  if (!t)
1125
- throw new B("JWTs must contain a payload");
1125
+ throw new W("JWTs must contain a payload");
1126
1126
  let a;
1127
1127
  try {
1128
1128
  a = ca(t);
1129
1129
  } catch {
1130
- throw new B("Failed to base64url decode the payload");
1130
+ throw new W("Failed to base64url decode the payload");
1131
1131
  }
1132
1132
  let n;
1133
1133
  try {
1134
1134
  n = JSON.parse(be.decode(a));
1135
1135
  } catch {
1136
- throw new B("Failed to parse the decoded payload as JSON");
1136
+ throw new W("Failed to parse the decoded payload as JSON");
1137
1137
  }
1138
1138
  if (!me(n))
1139
- throw new B("Invalid JWT Claims Set");
1139
+ throw new W("Invalid JWT Claims Set");
1140
1140
  return n;
1141
1141
  }
1142
- const fe = async (e) => {
1142
+ const ye = async (e) => {
1143
1143
  try {
1144
- const t = A.ALG, r = await Jr(Er, t);
1144
+ const t = k.ALG, r = await Br(Er, t);
1145
1145
  return await ia(e, r, {
1146
- issuer: A.ISSUER
1146
+ issuer: k.ISSUER
1147
1147
  });
1148
1148
  } catch {
1149
1149
  return;
@@ -1160,15 +1160,15 @@ for (let e = 0; e < 256; ++e)
1160
1160
  function ua(e, t = 0) {
1161
1161
  return (v[e[t + 0]] + v[e[t + 1]] + v[e[t + 2]] + v[e[t + 3]] + "-" + v[e[t + 4]] + v[e[t + 5]] + "-" + v[e[t + 6]] + v[e[t + 7]] + "-" + v[e[t + 8]] + v[e[t + 9]] + "-" + v[e[t + 10]] + v[e[t + 11]] + v[e[t + 12]] + v[e[t + 13]] + v[e[t + 14]] + v[e[t + 15]]).toLowerCase();
1162
1162
  }
1163
- let We;
1163
+ let Ge;
1164
1164
  const ma = new Uint8Array(16);
1165
1165
  function ha() {
1166
- if (!We) {
1166
+ if (!Ge) {
1167
1167
  if (typeof crypto > "u" || !crypto.getRandomValues)
1168
1168
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1169
- We = crypto.getRandomValues.bind(crypto);
1169
+ Ge = crypto.getRandomValues.bind(crypto);
1170
1170
  }
1171
- return We(ma);
1171
+ return Ge(ma);
1172
1172
  }
1173
1173
  const pa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: pa };
1174
1174
  function ht(e, t, r) {
@@ -1178,40 +1178,40 @@ function ht(e, t, r) {
1178
1178
  const a = e.random || (e.rng || ha)();
1179
1179
  return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
1180
1180
  }
1181
- const pt = globalThis.crypto, ga = (e) => `${ht()}${ht()}`.slice(0, e), fa = (e) => btoa(
1181
+ const pt = globalThis.crypto, ga = (e) => `${ht()}${ht()}`.slice(0, e), ya = (e) => btoa(
1182
1182
  [...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")
1183
1183
  );
1184
- async function ya(e) {
1184
+ async function fa(e) {
1185
1185
  if (!pt.subtle)
1186
1186
  throw new Error(
1187
1187
  "crypto.subtle is available only in secure contexts (HTTPS)."
1188
1188
  );
1189
1189
  const t = new TextEncoder().encode(e), r = await pt.subtle.digest("SHA-256", t);
1190
- return fa(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1190
+ return ya(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1191
1191
  }
1192
1192
  async function ba(e) {
1193
- const t = ga(43), r = await ya(t);
1193
+ const t = ga(43), r = await fa(t);
1194
1194
  return {
1195
1195
  code_verifier: t,
1196
1196
  code_challenge: r
1197
1197
  };
1198
1198
  }
1199
- function Jt(e, t) {
1199
+ function Bt(e, t) {
1200
1200
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1201
1201
  }
1202
1202
  const gt = (e, t) => {
1203
1203
  const r = JSON.stringify(
1204
1204
  typeof t == "function" ? t() : t
1205
1205
  );
1206
- window.localStorage.setItem(e, r), Jt(e, r);
1206
+ window.localStorage.setItem(e, r), Bt(e, r);
1207
1207
  }, Ea = (e) => {
1208
- window.localStorage.removeItem(e), Jt(e, null);
1209
- }, ft = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
- function Ie({
1208
+ window.localStorage.removeItem(e), Bt(e, null);
1209
+ }, yt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
+ function _e({
1211
1211
  key: e,
1212
1212
  initialValue: t
1213
1213
  }) {
1214
- const r = lr(wa, () => ft(e)), a = X(
1214
+ const r = lr(wa, () => yt(e)), a = X(
1215
1215
  (s) => {
1216
1216
  try {
1217
1217
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
@@ -1228,40 +1228,40 @@ function Ie({
1228
1228
  }, [a]);
1229
1229
  return Z(() => {
1230
1230
  try {
1231
- ft(e) === null && typeof t < "u" && gt(e, t);
1231
+ yt(e) === null && typeof t < "u" && gt(e, t);
1232
1232
  } catch (s) {
1233
1233
  console.warn(s);
1234
1234
  }
1235
1235
  }, [e, t]), [r ? JSON.parse(r) : null, a, n, o];
1236
1236
  }
1237
- const k = [];
1237
+ const A = [];
1238
1238
  for (let e = 0; e < 256; ++e)
1239
- k.push((e + 256).toString(16).slice(1));
1240
- function Ta(e, t = 0) {
1241
- return (k[e[t + 0]] + k[e[t + 1]] + k[e[t + 2]] + k[e[t + 3]] + "-" + k[e[t + 4]] + k[e[t + 5]] + "-" + k[e[t + 6]] + k[e[t + 7]] + "-" + k[e[t + 8]] + k[e[t + 9]] + "-" + k[e[t + 10]] + k[e[t + 11]] + k[e[t + 12]] + k[e[t + 13]] + k[e[t + 14]] + k[e[t + 15]]).toLowerCase();
1242
- }
1243
- let Be;
1244
- const Ia = new Uint8Array(16);
1245
- function _a() {
1246
- if (!Be) {
1239
+ A.push((e + 256).toString(16).slice(1));
1240
+ function Ia(e, t = 0) {
1241
+ return (A[e[t + 0]] + A[e[t + 1]] + A[e[t + 2]] + A[e[t + 3]] + "-" + A[e[t + 4]] + A[e[t + 5]] + "-" + A[e[t + 6]] + A[e[t + 7]] + "-" + A[e[t + 8]] + A[e[t + 9]] + "-" + A[e[t + 10]] + A[e[t + 11]] + A[e[t + 12]] + A[e[t + 13]] + A[e[t + 14]] + A[e[t + 15]]).toLowerCase();
1242
+ }
1243
+ let We;
1244
+ const _a = new Uint8Array(16);
1245
+ function Ta() {
1246
+ if (!We) {
1247
1247
  if (typeof crypto > "u" || !crypto.getRandomValues)
1248
1248
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1249
- Be = crypto.getRandomValues.bind(crypto);
1249
+ We = crypto.getRandomValues.bind(crypto);
1250
1250
  }
1251
- return Be(Ia);
1251
+ return We(_a);
1252
1252
  }
1253
- const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: Sa };
1254
- function Ge(e, t, r) {
1255
- if (yt.randomUUID && !t && !e)
1256
- return yt.randomUUID();
1253
+ const Sa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), ft = { randomUUID: Sa };
1254
+ function Ve(e, t, r) {
1255
+ if (ft.randomUUID && !t && !e)
1256
+ return ft.randomUUID();
1257
1257
  e = e || {};
1258
- const a = e.random || (e.rng || _a)();
1259
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ta(a);
1258
+ const a = e.random || (e.rng || Ta)();
1259
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ia(a);
1260
1260
  }
1261
- const oe = "Your session has expired. For your security, please log in again to continue.", va = "Your session has been successfully terminated.", Je = "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 oe = "Your session has expired. For your security, please log in again to continue.", va = "Your session has been successfully terminated.", Be = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", ka = "You forgot to wrap your component in <AuthProvider>.", Ce = {
1262
1262
  dev: "https://auth.gizmette.local.com:3003",
1263
1263
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, _e = "@@auth@@", ge = "LOADING", ke = "LOGIN", Vt = "LOGOUT", Ee = "success", J = "failure", Yt = "include", Ft = "POST", zt = "application/json", Se = {
1264
+ }, Te = "@@auth@@", ge = "LOADING", Ae = "LOGIN", Jt = "LOGOUT", Ee = "success", B = "failure", Yt = "include", Ft = "POST", zt = "application/json", Se = {
1265
1265
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1266
  $clientId: String!,
1267
1267
  $username: String!,
@@ -1383,16 +1383,16 @@ const oe = "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: J, data: [] };
1386
+ return { status: B, data: [] };
1387
1387
  const { data: s } = await o.json();
1388
1388
  return {
1389
1389
  status: Ee,
1390
1390
  data: s[t.method]
1391
1391
  };
1392
1392
  } catch (n) {
1393
- return console.error(n), { status: J, data: [] };
1393
+ return console.error(n), { status: B, data: [] };
1394
1394
  }
1395
- }, Le = async ({
1395
+ }, $e = async ({
1396
1396
  type: e,
1397
1397
  clientId: t,
1398
1398
  params: r = {}
@@ -1411,14 +1411,14 @@ const oe = "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: J, data: [] };
1414
+ return { status: B, data: [] };
1415
1415
  const { data: n } = await a.json();
1416
1416
  return {
1417
1417
  status: Ee,
1418
1418
  data: n || []
1419
1419
  };
1420
1420
  } catch (a) {
1421
- return console.error(a), { status: J, data: [] };
1421
+ return console.error(a), { status: B, data: [] };
1422
1422
  }
1423
1423
  }, Na = process.env.NODE_ENV === "production", jt = !Na, qt = {
1424
1424
  isLoading: !0,
@@ -1430,7 +1430,7 @@ const oe = "Your session has expired. For your security, please log in again to
1430
1430
  }, Ra = (e) => {
1431
1431
  try {
1432
1432
  const t = da(e);
1433
- return t ? t[A.USER_ID_KEY] : "";
1433
+ return t ? t[k.USER_ID_KEY] : "";
1434
1434
  } catch {
1435
1435
  return "";
1436
1436
  }
@@ -1443,7 +1443,7 @@ const oe = "Your session has expired. For your security, please log in again to
1443
1443
  var n;
1444
1444
  try {
1445
1445
  return {
1446
- status: ((n = await Le({
1446
+ status: ((n = await $e({
1447
1447
  type: Pe.LOGOUT,
1448
1448
  clientId: t,
1449
1449
  params: {
@@ -1451,11 +1451,11 @@ const oe = "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) || J
1454
+ })) == null ? void 0 : n.status) || B
1455
1455
  };
1456
1456
  } catch {
1457
1457
  return {
1458
- status: J
1458
+ status: B
1459
1459
  };
1460
1460
  }
1461
1461
  }, Ca = async ({
@@ -1472,7 +1472,7 @@ const oe = "Your session has expired. For your security, please log in again to
1472
1472
  }) => {
1473
1473
  var p;
1474
1474
  try {
1475
- const m = await Le({
1475
+ const m = await $e({
1476
1476
  type: Pe.LOGIN,
1477
1477
  clientId: r,
1478
1478
  params: {
@@ -1486,13 +1486,13 @@ const oe = "Your session has expired. For your security, please log in again to
1486
1486
  domain: u,
1487
1487
  ua: h
1488
1488
  }
1489
- }), c = await fe((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
1490
- return c && c.payload[A.USER_ID_KEY] !== "" && c.payload[A.NONCE_KEY] === a ? {
1489
+ }), c = await ye((p = m == null ? void 0 : m.data) == null ? void 0 : p.idToken);
1490
+ return c && c.payload[k.USER_ID_KEY] !== "" && c.payload[k.NONCE_KEY] === a ? {
1491
1491
  idToken: m.data.idToken,
1492
1492
  accessToken: m.data.accessToken,
1493
1493
  refreshToken: m.data.refreshToken,
1494
- userId: c.payload[A.USER_ID_KEY],
1495
- email: c.payload[A.EMAIL_KEY],
1494
+ userId: c.payload[k.USER_ID_KEY],
1495
+ email: c.payload[k.EMAIL_KEY],
1496
1496
  status: !0
1497
1497
  } : {
1498
1498
  status: !1
@@ -1509,7 +1509,7 @@ const oe = "Your session has expired. For your security, please log in again to
1509
1509
  }) => {
1510
1510
  var a;
1511
1511
  try {
1512
- const n = await Le({
1512
+ const n = await $e({
1513
1513
  type: Pe.CODE,
1514
1514
  clientId: t,
1515
1515
  params: {
@@ -1522,12 +1522,12 @@ const oe = "Your session has expired. For your security, please log in again to
1522
1522
  status: Ee,
1523
1523
  data: n.data.code
1524
1524
  } : {
1525
- status: J,
1525
+ status: B,
1526
1526
  data: ""
1527
1527
  };
1528
1528
  } catch {
1529
1529
  return {
1530
- status: J,
1530
+ status: B,
1531
1531
  data: ""
1532
1532
  };
1533
1533
  }
@@ -1541,7 +1541,7 @@ const oe = "Your session has expired. For your security, please log in again to
1541
1541
  }) => {
1542
1542
  var s;
1543
1543
  try {
1544
- const i = await Le({
1544
+ const i = await $e({
1545
1545
  type: Pe.REFRESH,
1546
1546
  clientId: e,
1547
1547
  params: {
@@ -1552,11 +1552,11 @@ const oe = "Your session has expired. For your security, please log in again to
1552
1552
  accessToken: n,
1553
1553
  domain: o
1554
1554
  }
1555
- }), u = await fe((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1556
- return u && u.payload[A.USER_ID_KEY] !== "" && u.payload[A.NONCE_KEY] === r ? {
1555
+ }), u = await ye((s = i == null ? void 0 : i.data) == null ? void 0 : s.accessToken);
1556
+ return u && u.payload[k.USER_ID_KEY] !== "" && u.payload[k.NONCE_KEY] === r ? {
1557
1557
  accessToken: i.data.accessToken,
1558
1558
  refreshToken: i.data.refreshToken,
1559
- userId: u.payload[A.USER_ID_KEY],
1559
+ userId: u.payload[k.USER_ID_KEY],
1560
1560
  status: !0
1561
1561
  } : {
1562
1562
  status: !1
@@ -1569,7 +1569,7 @@ const oe = "Your session has expired. For your security, please log in again to
1569
1569
  };
1570
1570
  class Da {
1571
1571
  constructor(t = null, r = null) {
1572
- Ke(this, "refreshTokenPromise", null), Ke(this, "accessToken"), Ke(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
1572
+ Ue(this, "refreshTokenPromise", null), Ue(this, "accessToken"), Ue(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
1573
1573
  }
1574
1574
  async refreshtoken({
1575
1575
  clientId: t,
@@ -1595,8 +1595,8 @@ class Da {
1595
1595
  nonce: a,
1596
1596
  domain: n
1597
1597
  }) {
1598
- const o = await fe(this.refreshToken);
1599
- if (o && o.payload[A.USER_ID_KEY] !== "") {
1598
+ const o = await ye(this.refreshToken);
1599
+ if (o && o.payload[k.USER_ID_KEY] !== "") {
1600
1600
  const s = await Pa({
1601
1601
  clientId: t,
1602
1602
  userId: r,
@@ -1610,21 +1610,21 @@ class Da {
1610
1610
  newAccessToken: s.accessToken,
1611
1611
  newRefreshToken: s.refreshToken
1612
1612
  }) : {
1613
- status: J
1613
+ status: B
1614
1614
  };
1615
1615
  } else
1616
1616
  return {
1617
- status: J
1617
+ status: B
1618
1618
  };
1619
1619
  }
1620
1620
  }
1621
- const La = (e) => X(
1621
+ const $a = (e) => X(
1622
1622
  (...t) => {
1623
1623
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
1624
1624
  },
1625
1625
  [e]
1626
1626
  ), ce = () => {
1627
- throw new Error(Aa);
1627
+ throw new Error(ka);
1628
1628
  }, Xt = cr({
1629
1629
  isAuthenticated: !1,
1630
1630
  isLoading: !1,
@@ -1636,62 +1636,62 @@ const La = (e) => X(
1636
1636
  loginWithPasskey: ce,
1637
1637
  logoutReason: "",
1638
1638
  authenticationType: ""
1639
- }), Ma = P.createContext({
1639
+ }), La = P.createContext({
1640
1640
  state: qt,
1641
1641
  dispatch: () => {
1642
1642
  }
1643
- }), Ua = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1643
+ }), Ma = (e, t) => (t == null ? void 0 : t.type) === ge ? {
1644
1644
  ...e,
1645
1645
  isLoading: t.payload.isLoading
1646
- } : (t == null ? void 0 : t.type) === ke ? {
1646
+ } : (t == null ? void 0 : t.type) === Ae ? {
1647
1647
  ...e,
1648
1648
  isLoading: !1,
1649
1649
  isAuthenticated: !0,
1650
1650
  user: t.payload.user,
1651
1651
  authenticationType: t.payload.authenticationType,
1652
1652
  logoutReason: ""
1653
- } : (t == null ? void 0 : t.type) === Vt ? {
1653
+ } : (t == null ? void 0 : t.type) === Jt ? {
1654
1654
  ...e,
1655
1655
  isLoading: !1,
1656
1656
  isAuthenticated: !1,
1657
1657
  user: void 0,
1658
1658
  authenticationType: "",
1659
1659
  logoutReason: t.payload.logoutReason
1660
- } : e, Ka = ({
1660
+ } : e, Ua = ({
1661
1661
  children: e,
1662
1662
  sessionExpiration: t,
1663
1663
  clientId: r,
1664
1664
  domain: a = "",
1665
1665
  debug: n = !1
1666
1666
  }) => {
1667
- const [o, s] = It(Ua, {
1667
+ const [o, s] = _t(Ma, {
1668
1668
  ...qt,
1669
1669
  debug: n
1670
- }), i = La(n), u = H(!1), [h, p, , m] = Ie({
1671
- key: `${_e}::${r}::@@user@@`
1672
- }), [c, d, , y] = Ie({
1673
- key: `${_e}::${r}::@@access@@`
1674
- }), [b, _, , w] = Ie(
1670
+ }), i = $a(n), u = K(!1), [h, p, , m] = _e({
1671
+ key: `${Te}::${r}::@@user@@`
1672
+ }), [c, d, , f] = _e({
1673
+ key: `${Te}::${r}::@@access@@`
1674
+ }), [b, T, , w] = _e(
1675
1675
  {
1676
- key: `${_e}::${r}::@@refresh@@`
1676
+ key: `${Te}::${r}::@@refresh@@`
1677
1677
  }
1678
- ), [C, L, , $] = Ie({
1679
- key: `${_e}::${r}::@@nonce@@`
1678
+ ), [C, $, , H] = _e({
1679
+ key: `${Te}::${r}::@@nonce@@`
1680
1680
  }), ee = new Da(c, b), N = X(() => {
1681
- i("removeLocalStorage: removing local storage"), m(), y(), w(), $();
1681
+ i("removeLocalStorage: removing local storage"), m(), f(), w(), H();
1682
1682
  }, [
1683
- y,
1683
+ f,
1684
1684
  m,
1685
- $,
1685
+ H,
1686
1686
  w,
1687
1687
  i
1688
- ]), V = X(
1688
+ ]), J = X(
1689
1689
  (g) => {
1690
1690
  i(
1691
1691
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1692
1692
  g
1693
1693
  ), s({
1694
- type: Vt,
1694
+ type: Jt,
1695
1695
  payload: {
1696
1696
  logoutReason: g || oe
1697
1697
  }
@@ -1701,7 +1701,7 @@ const La = (e) => X(
1701
1701
  ), D = X(
1702
1702
  async (g) => {
1703
1703
  i("invalidateAndLogout: invalidating and logging out");
1704
- const { user: T } = o, E = (T == null ? void 0 : T.userId) || Ra(h);
1704
+ const { user: I } = o, E = (I == null ? void 0 : I.userId) || Ra(h);
1705
1705
  E || i(
1706
1706
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1707
1707
  ), await xa({
@@ -1709,23 +1709,23 @@ const La = (e) => X(
1709
1709
  clientId: r,
1710
1710
  domain: a,
1711
1711
  idToken: h
1712
- }), V(g || oe);
1712
+ }), J(g || oe);
1713
1713
  },
1714
- [h, o, r, a, V, i]
1714
+ [h, o, r, a, J, i]
1715
1715
  );
1716
1716
  Z(() => {
1717
1717
  if (!u.current)
1718
1718
  return o.isLoading && h !== null ? (async () => {
1719
1719
  try {
1720
- const g = await fe(h);
1721
- g && g.payload[A.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1722
- type: ke,
1720
+ const g = await ye(h);
1721
+ g && g.payload[k.USER_ID_KEY] !== "" ? (i("useEffect: setting the authentication state"), s({
1722
+ type: Ae,
1723
1723
  payload: {
1724
- authenticationType: g.payload[A.AUTH_TYPE_KEY],
1724
+ authenticationType: g.payload[k.AUTH_TYPE_KEY],
1725
1725
  user: {
1726
- userId: g.payload[A.USER_ID_KEY],
1727
- username: g.payload[A.USERNAME_KEY],
1728
- email: g.payload[A.EMAIL_KEY]
1726
+ userId: g.payload[k.USER_ID_KEY],
1727
+ username: g.payload[k.USERNAME_KEY],
1728
+ email: g.payload[k.EMAIL_KEY]
1729
1729
  }
1730
1730
  }
1731
1731
  })) : (i("useEffect: invalid JWT, invalidating and logging out"), await D(oe));
@@ -1738,10 +1738,10 @@ const La = (e) => X(
1738
1738
  u.current = !0;
1739
1739
  };
1740
1740
  }, [o.isLoading, h, D, i]);
1741
- const Y = async (g, T) => {
1741
+ const Y = async (g, I) => {
1742
1742
  s({ type: ge, payload: { isLoading: !0 } }), N();
1743
- const E = Ge();
1744
- L(E), i("login: Logging in with password");
1743
+ const E = Ve();
1744
+ $(E), i("login: Logging in with password");
1745
1745
  const { code_verifier: z, code_challenge: ir } = await ba(), ot = await Oa({
1746
1746
  nonce: E,
1747
1747
  clientId: r,
@@ -1750,7 +1750,7 @@ const La = (e) => X(
1750
1750
  if (ot.status) {
1751
1751
  const re = await Ca({
1752
1752
  username: g,
1753
- password: T,
1753
+ password: I,
1754
1754
  clientId: r,
1755
1755
  sessionExpiration: t,
1756
1756
  nonce: E,
@@ -1760,8 +1760,8 @@ const La = (e) => X(
1760
1760
  domain: a,
1761
1761
  ua: navigator.userAgent
1762
1762
  });
1763
- return re.status ? (p(re.idToken), d(re.accessToken), _(re.refreshToken), s({
1764
- type: ke,
1763
+ return re.status ? (p(re.idToken), d(re.accessToken), T(re.refreshToken), s({
1764
+ type: Ae,
1765
1765
  payload: {
1766
1766
  authenticationType: ue.CODE,
1767
1767
  user: {
@@ -1770,29 +1770,29 @@ const La = (e) => X(
1770
1770
  email: re.email
1771
1771
  }
1772
1772
  }
1773
- }), !0) : (V(Je), !1);
1773
+ }), !0) : (J(Be), !1);
1774
1774
  }
1775
1775
  return !1;
1776
1776
  }, pe = async (g) => {
1777
1777
  g == null || g.preventDefault(), await D(va);
1778
1778
  }, te = async () => {
1779
- const { isAuthenticated: g, user: T } = o;
1779
+ const { isAuthenticated: g, user: I } = o;
1780
1780
  try {
1781
- if (g && T && T.userId) {
1781
+ if (g && I && I.userId) {
1782
1782
  if (c) {
1783
1783
  i("getAccessToken");
1784
- const z = await fe(c);
1785
- if (z && z.payload[A.USER_ID_KEY] !== "")
1784
+ const z = await ye(c);
1785
+ if (z && z.payload[k.USER_ID_KEY] !== "")
1786
1786
  return c;
1787
1787
  }
1788
1788
  i("getAccessToken: invalid access token, trying to refresh it");
1789
1789
  const E = await ee.refreshtoken({
1790
1790
  clientId: r,
1791
- userId: T.userId,
1791
+ userId: I.userId,
1792
1792
  nonce: C,
1793
1793
  domain: a
1794
1794
  });
1795
- return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), _(E.newRefreshToken), E.newAccessToken) : (i(
1795
+ return E.status && E.status === "success" && E.newAccessToken ? (d(E.newAccessToken), T(E.newRefreshToken), E.newAccessToken) : (i(
1796
1796
  "getAccessToken: invalid refresh token, need to re-authenticate"
1797
1797
  ), await D(oe), "");
1798
1798
  }
@@ -1802,11 +1802,11 @@ const La = (e) => X(
1802
1802
  } catch {
1803
1803
  return i(
1804
1804
  "getAccessToken: exception occurred, invalidating and logging out"
1805
- ), await D(ka), "";
1805
+ ), await D(Aa), "";
1806
1806
  }
1807
- }, R = () => o.isAuthenticated && h ? h : "", M = async () => {
1807
+ }, R = () => o.isAuthenticated && h ? h : "", L = async () => {
1808
1808
  const { user: g } = o;
1809
- let T = await ie({
1809
+ let I = await ie({
1810
1810
  accessToken: c,
1811
1811
  clientId: r,
1812
1812
  type: se.GET_REGISTRATION_OPTIONS,
@@ -1816,10 +1816,10 @@ const La = (e) => X(
1816
1816
  username: g == null ? void 0 : g.username
1817
1817
  }
1818
1818
  });
1819
- if (T.status)
1819
+ if (I.status)
1820
1820
  try {
1821
- const E = await gr(T.data);
1822
- return T = await ie({
1821
+ const E = await gr(I.data);
1822
+ return I = await ie({
1823
1823
  accessToken: c,
1824
1824
  clientId: r,
1825
1825
  type: se.VERIFY_REGISTRATION,
@@ -1829,7 +1829,7 @@ const La = (e) => X(
1829
1829
  username: g == null ? void 0 : g.username,
1830
1830
  registration: E
1831
1831
  }
1832
- }), !!(T.status && T.data.length > 0);
1832
+ }), !!(I.status && I.data.length > 0);
1833
1833
  } catch {
1834
1834
  return await ie({
1835
1835
  accessToken: c,
@@ -1844,17 +1844,17 @@ const La = (e) => X(
1844
1844
  }), !1;
1845
1845
  }
1846
1846
  return !1;
1847
- }, W = async () => {
1847
+ }, G = async () => {
1848
1848
  s({ type: ge, payload: { isLoading: !0 } }), N();
1849
- const g = Ge();
1850
- L(g), i("loginWithPasskey");
1851
- const T = Ge();
1849
+ const g = Ve();
1850
+ $(g), i("loginWithPasskey");
1851
+ const I = Ve();
1852
1852
  let E = await ie({
1853
1853
  accessToken: c,
1854
1854
  clientId: r,
1855
1855
  type: se.GET_AUTHENTICATION_OPTIONS,
1856
1856
  params: {
1857
- id: T,
1857
+ id: I,
1858
1858
  clientId: r
1859
1859
  }
1860
1860
  });
@@ -1867,15 +1867,15 @@ const La = (e) => X(
1867
1867
  type: se.VERIFY_AUTHENTICATION,
1868
1868
  params: {
1869
1869
  clientId: r,
1870
- id: T,
1870
+ id: I,
1871
1871
  authentication: z,
1872
1872
  nonce: g,
1873
1873
  domain: a,
1874
1874
  sessionExpiration: t,
1875
1875
  ua: navigator.userAgent
1876
1876
  }
1877
- }), E.data.status === Ee ? (p(E.data.idToken), d(E.data.accessToken), _(E.data.refreshToken), s({
1878
- type: ke,
1877
+ }), E.data.status === Ee ? (p(E.data.idToken), d(E.data.accessToken), T(E.data.refreshToken), s({
1878
+ type: Ae,
1879
1879
  payload: {
1880
1880
  authenticationType: ue.PASSKEY,
1881
1881
  user: {
@@ -1884,7 +1884,7 @@ const La = (e) => X(
1884
1884
  email: E.data.email
1885
1885
  }
1886
1886
  }
1887
- }), !0) : (V(Je), !1);
1887
+ }), !0) : (J(Be), !1);
1888
1888
  } catch {
1889
1889
  return await ie({
1890
1890
  accessToken: c,
@@ -1892,17 +1892,17 @@ const La = (e) => X(
1892
1892
  type: se.VERIFY_AUTHENTICATION,
1893
1893
  params: {
1894
1894
  clientId: r,
1895
- id: T,
1895
+ id: I,
1896
1896
  authentication: {},
1897
1897
  nonce: g,
1898
1898
  domain: a,
1899
1899
  sessionExpiration: t
1900
1900
  }
1901
- }), V(Je), !1;
1901
+ }), J(Be), !1;
1902
1902
  }
1903
1903
  return !1;
1904
1904
  };
1905
- return /* @__PURE__ */ l(Ma.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1905
+ return /* @__PURE__ */ l(La.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
1906
  Xt.Provider,
1907
1907
  {
1908
1908
  value: {
@@ -1911,14 +1911,14 @@ const La = (e) => X(
1911
1911
  logout: pe,
1912
1912
  getAccessToken: te,
1913
1913
  getIdToken: R,
1914
- registeringForPasskey: M,
1915
- loginWithPasskey: W
1914
+ registeringForPasskey: L,
1915
+ loginWithPasskey: G
1916
1916
  },
1917
1917
  children: e
1918
1918
  }
1919
1919
  ) });
1920
- }, et = (e = Xt) => Xe(e), Eo = "user", wo = "assistant", To = "system", Io = "internal", _o = "hidden", So = "I'm having trouble right now. Please try again later.", Ve = "OpenAI", vo = "OpenAI", ko = "Anthropic", Ao = 128e3, No = "action-message", Ro = "action-reset", xo = "action-model", Co = "action-restore", Oo = "action-streaming", Po = "action-engine", Do = "action-search", Lo = "action-sort", Mo = "action-toggle-tag", Uo = "action-reset-tags", Ko = "action-set-tags", Ho = "sassy-saint-", $o = "details", Wo = "search", Bo = "sort", Go = "engine-toggle", Jo = "==stats==", Ha = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", bt = (e) => Number.isFinite(e) ? e : 0;
1921
- function $a(e) {
1920
+ }, et = (e = Xt) => Xe(e), Eo = "user", wo = "assistant", Io = "system", _o = "internal", To = "hidden", So = "I'm having trouble right now. Please try again later.", Je = "OpenAI", vo = "OpenAI", Ao = "Anthropic", ko = 128e3, No = "action-message", Ro = "action-reset", xo = "action-model", Co = "action-restore", Oo = "action-streaming", Po = "action-engine", Do = "action-search", $o = "action-sort", Lo = "action-toggle-tag", Mo = "action-reset-tags", Uo = "action-set-tags", Ko = "sassy-saint-", Ho = "details", Go = "search", Wo = "sort", Vo = "engine-toggle", Bo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", bt = (e) => Number.isFinite(e) ? e : 0;
1921
+ function Ha(e) {
1922
1922
  return {
1923
1923
  days: Math.trunc(e / 864e5),
1924
1924
  hours: Math.trunc(e / 36e5 % 24),
@@ -1929,7 +1929,7 @@ function $a(e) {
1929
1929
  nanoseconds: Math.trunc(bt(e * 1e6) % 1e3)
1930
1930
  };
1931
1931
  }
1932
- function Wa(e) {
1932
+ function Ga(e) {
1933
1933
  return {
1934
1934
  days: e / 86400000n,
1935
1935
  hours: e / 3600000n % 24n,
@@ -1940,19 +1940,19 @@ function Wa(e) {
1940
1940
  nanoseconds: 0n
1941
1941
  };
1942
1942
  }
1943
- function Ba(e) {
1943
+ function Wa(e) {
1944
1944
  switch (typeof e) {
1945
1945
  case "number": {
1946
1946
  if (Number.isFinite(e))
1947
- return $a(e);
1947
+ return Ha(e);
1948
1948
  break;
1949
1949
  }
1950
1950
  case "bigint":
1951
- return Wa(e);
1951
+ return Ga(e);
1952
1952
  }
1953
1953
  throw new TypeError("Expected a finite number or bigint");
1954
1954
  }
1955
- const Ga = (e) => e === 0 || e === 0n, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Va = 1e-7, Ya = 24n * 60n * 60n * 1000n;
1955
+ const Va = (e) => e === 0 || e === 0n, Ba = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ja = 1e-7, Ya = 24n * 60n * 60n * 1000n;
1956
1956
  function Fa(e, t) {
1957
1957
  const r = typeof e == "bigint";
1958
1958
  if (!r && !Number.isFinite(e))
@@ -1962,25 +1962,25 @@ function Fa(e, t) {
1962
1962
  e = e < 0 ? -e : e, t.colonNotation && (t.compact = !1, t.formatSubMilliseconds = !1, t.separateMilliseconds = !1, t.verbose = !1), t.compact && (t.unitCount = 1, t.secondsDecimalDigits = 0, t.millisecondsDecimalDigits = 0);
1963
1963
  let n = [];
1964
1964
  const o = (p, m) => {
1965
- const c = Math.floor(p * 10 ** m + Va);
1965
+ const c = Math.floor(p * 10 ** m + Ja);
1966
1966
  return (Math.round(c) / 10 ** m).toFixed(m);
1967
1967
  }, s = (p, m, c, d) => {
1968
- if (!((n.length === 0 || !t.colonNotation) && Ga(p) && !(t.colonNotation && c === "m"))) {
1968
+ if (!((n.length === 0 || !t.colonNotation) && Va(p) && !(t.colonNotation && c === "m"))) {
1969
1969
  if (d ?? (d = String(p)), t.colonNotation) {
1970
- const y = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
1971
- d = "0".repeat(Math.max(0, b - y)) + d;
1970
+ const f = d.includes(".") ? d.split(".")[0].length : d.length, b = n.length > 0 ? 2 : 1;
1971
+ d = "0".repeat(Math.max(0, b - f)) + d;
1972
1972
  } else
1973
- d += t.verbose ? " " + Ja(m, p) : c;
1973
+ d += t.verbose ? " " + Ba(m, p) : c;
1974
1974
  n.push(d);
1975
1975
  }
1976
- }, i = Ba(e), u = BigInt(i.days);
1976
+ }, i = Wa(e), u = BigInt(i.days);
1977
1977
  if (t.hideYearAndDays ? s(BigInt(u) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(u, "day", "d") : (s(u / 365n, "year", "y"), s(u % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
1978
1978
  if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
1979
1979
  const p = Number(i.seconds), m = Number(i.milliseconds), c = Number(i.microseconds), d = Number(i.nanoseconds);
1980
1980
  if (s(p, "second", "s"), t.formatSubMilliseconds)
1981
1981
  s(m, "millisecond", "ms"), s(c, "microsecond", "µs"), s(d, "nanosecond", "ns");
1982
1982
  else {
1983
- const y = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, _ = y >= 1 ? Math.round(y) : Math.ceil(y), w = b ? y.toFixed(b) : _;
1983
+ const f = m + c / 1e3 + d / 1e6, b = typeof t.millisecondsDecimalDigits == "number" ? t.millisecondsDecimalDigits : 0, T = f >= 1 ? Math.round(f) : Math.ceil(f), w = b ? f.toFixed(b) : T;
1984
1984
  s(
1985
1985
  Number.parseFloat(w),
1986
1986
  "millisecond",
@@ -1997,7 +1997,7 @@ function Fa(e, t) {
1997
1997
  const h = t.colonNotation ? ":" : " ";
1998
1998
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
1999
1999
  }
2000
- const za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "gizmette.local.com" : "gizmette.com", Vo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Yo = async () => {
2000
+ const za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "gizmette.local.com" : "gizmette.com", Jo = (e, t) => e.length > t ? e.substring(0, t) + "..." : e, Yo = async () => {
2001
2001
  const e = {
2002
2002
  /**
2003
2003
  * A boolean value that indicates the application would
@@ -2046,7 +2046,7 @@ const za = process.env.NODE_ENV === "production", tt = !za, ja = tt ? "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__ */ I("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__ */ _("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;
@@ -2070,10 +2070,24 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2070
2070
  }), Xo = (e) => e > 0 ? Fa(e, {
2071
2071
  secondsDecimalDigits: 2,
2072
2072
  unitCount: 2
2073
- }) : "N/A", qa = (e) => f(
2073
+ }) : "N/A", qa = (e) => y(
2074
2074
  "flex-1 space-y-6 overflow-y-auto rounded-md bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2075
2075
  e || tt ? "pt-4" : "pt-10"
2076
- ), Qo = (e, t) => t === 1 ? e : `${e}s`, Et = "av-button", Xa = (e) => {
2076
+ ), Qo = (e, t) => t === 1 ? e : `${e}s`, Et = "av-button";
2077
+ /*!
2078
+ @versini/ui-spacing v1.1.0
2079
+ © 2024 gizmette.com
2080
+ */
2081
+ try {
2082
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
2083
+ version: "1.1.0",
2084
+ buildTime: "12/26/2024 06:05 PM EST",
2085
+ homepage: "https://github.com/aversini/ui-components",
2086
+ license: "MIT"
2087
+ });
2088
+ } catch {
2089
+ }
2090
+ const Xa = (e) => {
2077
2091
  let t = "";
2078
2092
  if (typeof e == "number" || typeof e == "string")
2079
2093
  t = "m-" + e;
@@ -2092,19 +2106,19 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2092
2106
  const o = "text-sm font-medium max-h-8 py-0", s = "text-base font-medium max-h-9 py-1", i = "text-lg font-medium max-h-12 py-2";
2093
2107
  switch (e) {
2094
2108
  case Qt:
2095
- return f("px-4", {
2109
+ return y("px-4", {
2096
2110
  [o]: t === "small",
2097
2111
  [s]: t === "medium",
2098
2112
  [i]: t === "large"
2099
2113
  });
2100
2114
  case Qa:
2101
- return f("px-4 text-center", {
2115
+ return y("px-4 text-center", {
2102
2116
  [o]: t === "small",
2103
2117
  [s]: t === "medium",
2104
2118
  [i]: t === "large"
2105
2119
  });
2106
2120
  case rt:
2107
- return f("inline-flex items-center", {
2121
+ return y("inline-flex items-center", {
2108
2122
  "justify-center": n === "center",
2109
2123
  "justify-start": n === "left",
2110
2124
  "justify-end": n === "right",
@@ -2125,7 +2139,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2125
2139
  if (t)
2126
2140
  return "not-prose rounded-full";
2127
2141
  if (a === "primary")
2128
- return f("not-prose rounded-full", {
2142
+ return y("not-prose rounded-full", {
2129
2143
  truncate: !r,
2130
2144
  "bg-action-dark text-copy-light": e === "dark",
2131
2145
  "bg-action-light text-copy-lighter": e === "light",
@@ -2133,7 +2147,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2133
2147
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "alt-system"
2134
2148
  });
2135
2149
  if (a === "secondary")
2136
- return f("not-prose rounded-full", {
2150
+ return y("not-prose rounded-full", {
2137
2151
  truncate: !r,
2138
2152
  "bg-action-dark text-copy-light": e === "light",
2139
2153
  "bg-action-light text-copy-lighter": e === "dark",
@@ -2141,7 +2155,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2141
2155
  "bg-action-light text-copy-lighter dark:bg-action-dark dark:text-copy-light": e === "system"
2142
2156
  });
2143
2157
  if (a === "danger")
2144
- return f("not-prose rounded-full", {
2158
+ return y("not-prose rounded-full", {
2145
2159
  truncate: !r,
2146
2160
  "bg-action-danger-dark text-copy-light": e === "dark",
2147
2161
  "bg-action-danger-light text-copy-lighter": e === "light",
@@ -2156,21 +2170,21 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2156
2170
  if (t)
2157
2171
  return "";
2158
2172
  if (r === "primary")
2159
- return f("hover:text-copy-light-hover", {
2173
+ return y("hover:text-copy-light-hover", {
2160
2174
  "hover:bg-action-dark-hover": e === "dark",
2161
2175
  "hover:bg-action-light-hover": e === "light",
2162
2176
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "system",
2163
2177
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "alt-system"
2164
2178
  });
2165
2179
  if (r === "secondary")
2166
- return f("hover:text-copy-light-hover", {
2180
+ return y("hover:text-copy-light-hover", {
2167
2181
  "hover:bg-action-dark-hover": e === "light",
2168
2182
  "hover:bg-action-light-hover": e === "dark",
2169
2183
  "hover:bg-action-dark-hover dark:hover:bg-action-light-hover": e === "alt-system",
2170
2184
  "hover:bg-action-light-hover dark:hover:bg-action-dark-hover": e === "system"
2171
2185
  });
2172
2186
  if (r === "danger")
2173
- return f("hover:text-copy-light-hover", {
2187
+ return y("hover:text-copy-light-hover", {
2174
2188
  "hover:bg-action-danger-dark-hover": e === "dark",
2175
2189
  "hover:bg-action-danger-light-hover": e === "light",
2176
2190
  "hover:bg-action-danger-dark-hover dark:hover:bg-action-danger-light-hover": e === "system",
@@ -2184,21 +2198,21 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2184
2198
  if (t)
2185
2199
  return "";
2186
2200
  if (r === "primary")
2187
- return f("active:text-copy-light-active", {
2201
+ return y("active:text-copy-light-active", {
2188
2202
  "active:bg-action-dark-active": e === "dark",
2189
2203
  "active:bg-action-light-active": e === "light",
2190
2204
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "system",
2191
2205
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "alt-system"
2192
2206
  });
2193
2207
  if (r === "secondary")
2194
- return f("active:text-copy-light-active", {
2208
+ return y("active:text-copy-light-active", {
2195
2209
  "active:bg-action-dark-active": e === "light",
2196
2210
  "active:bg-action-light-active": e === "dark",
2197
2211
  "active:bg-action-dark-active dark:active:bg-action-light-active": e === "alt-system",
2198
2212
  "active:bg-action-light-active dark:active:bg-action-dark-active": e === "system"
2199
2213
  });
2200
2214
  if (r === "danger")
2201
- return f("active:text-copy-lighter-active", {
2215
+ return y("active:text-copy-lighter-active", {
2202
2216
  "active:bg-action-danger-dark-active": e === "dark",
2203
2217
  "active:bg-action-danger-light-active": e === "light",
2204
2218
  "active:bg-action-danger-dark-active dark:active:bg-action-danger-light-active": e === "system",
@@ -2212,27 +2226,27 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2212
2226
  if (t)
2213
2227
  return "border border-transparent";
2214
2228
  if (r === "primary")
2215
- return f("border", {
2229
+ return y("border", {
2216
2230
  "border-border-dark": e === "dark",
2217
2231
  "border-border-accent": e === "light",
2218
2232
  "border-border-dark dark:border-border-accent": e === "system",
2219
2233
  "border-border-accent dark:border-border-dark": e === "alt-system"
2220
2234
  });
2221
2235
  if (r === "secondary")
2222
- return f("border", {
2236
+ return y("border", {
2223
2237
  "border-border-dark": e === "light",
2224
2238
  "border-border-accent": e === "dark",
2225
2239
  "border-border-dark dark:border-border-accent": e === "alt-system",
2226
2240
  "border-border-accent dark:border-border-dark": e === "system"
2227
2241
  });
2228
2242
  if (r === "danger")
2229
- return f("border", {
2243
+ return y("border", {
2230
2244
  "border-border-danger-dark": e === "dark",
2231
2245
  "border-border-danger-medium": e === "light",
2232
2246
  "border-border-danger-dark dark:border-border-danger-medium": e === "system",
2233
2247
  "border-border-danger-medium dark:border-border-danger-dark": e === "alt-system"
2234
2248
  });
2235
- }, nn = ({ focusMode: e }) => f("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2249
+ }, nn = ({ focusMode: e }) => y("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2236
2250
  "focus:outline-focus-dark": e === "dark",
2237
2251
  "focus:outline-focus-light": e === "light",
2238
2252
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
@@ -2252,13 +2266,13 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2252
2266
  spacing: m,
2253
2267
  noBackground: c,
2254
2268
  variant: d,
2255
- noTruncate: y,
2269
+ noTruncate: f,
2256
2270
  align: b
2257
- }) => (d || (d = "primary"), r ? f(Et, t) : f(
2271
+ }) => (d || (d = "primary"), r ? y(Et, t) : y(
2258
2272
  Et,
2259
2273
  t,
2260
2274
  Xa(m),
2261
- en({ mode: a, variant: d, noBackground: c, noTruncate: y }),
2275
+ en({ mode: a, variant: d, noBackground: c, noTruncate: f }),
2262
2276
  Za({ type: e, size: i, labelRight: h, labelLeft: p, align: b }),
2263
2277
  an({ mode: a, variant: d, noBorder: u }),
2264
2278
  nn({ focusMode: n }),
@@ -2271,7 +2285,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2271
2285
  )), on = (e, t, r) => {
2272
2286
  var a;
2273
2287
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
2274
- }, Me = P.forwardRef((e, t) => {
2288
+ }, Le = P.forwardRef((e, t) => {
2275
2289
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
2276
2290
  return /* @__PURE__ */ l(
2277
2291
  "button",
@@ -2284,7 +2298,7 @@ const jo = (e, t) => t && t.messages.length > 0 && t.messages[t.messages.length
2284
2298
  }
2285
2299
  );
2286
2300
  });
2287
- Me.displayName = "BaseButton";
2301
+ Le.displayName = "BaseButton";
2288
2302
  const Zt = P.forwardRef(
2289
2303
  ({
2290
2304
  children: e,
@@ -2301,7 +2315,7 @@ const Zt = P.forwardRef(
2301
2315
  noTruncate: m = !1,
2302
2316
  ...c
2303
2317
  }, d) => {
2304
- const y = at({
2318
+ const f = at({
2305
2319
  type: Qt,
2306
2320
  mode: r,
2307
2321
  focusMode: a,
@@ -2316,10 +2330,10 @@ const Zt = P.forwardRef(
2316
2330
  noTruncate: m
2317
2331
  });
2318
2332
  return /* @__PURE__ */ l(
2319
- Me,
2333
+ Le,
2320
2334
  {
2321
2335
  ref: d,
2322
- className: y,
2336
+ className: f,
2323
2337
  disabled: t,
2324
2338
  ...c,
2325
2339
  children: e
@@ -2344,12 +2358,12 @@ const qe = P.forwardRef(
2344
2358
  size: m = "medium",
2345
2359
  labelRight: c,
2346
2360
  labelLeft: d,
2347
- spacing: y,
2361
+ spacing: f,
2348
2362
  noBackground: b = !1,
2349
- align: _ = "center",
2363
+ align: T = "center",
2350
2364
  ...w
2351
2365
  }, C) => {
2352
- const L = at({
2366
+ const $ = at({
2353
2367
  type: rt,
2354
2368
  mode: r,
2355
2369
  focusMode: a,
@@ -2361,27 +2375,27 @@ const qe = P.forwardRef(
2361
2375
  size: m,
2362
2376
  labelRight: c,
2363
2377
  labelLeft: d,
2364
- spacing: y,
2378
+ spacing: f,
2365
2379
  noBackground: b,
2366
- align: _
2367
- }), $ = f({
2380
+ align: T
2381
+ }), H = y({
2368
2382
  "text-copy-accent-dark": r === "light" && !i,
2369
2383
  "text-copy-light": r === "dark" && !i,
2370
2384
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2371
2385
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2372
2386
  });
2373
- return /* @__PURE__ */ I(
2374
- Me,
2387
+ return /* @__PURE__ */ _(
2388
+ Le,
2375
2389
  {
2376
2390
  ref: C,
2377
- className: L,
2391
+ className: $,
2378
2392
  disabled: t,
2379
2393
  type: s,
2380
2394
  "aria-label": h || p,
2381
2395
  ...w,
2382
2396
  children: [
2383
2397
  d && /* @__PURE__ */ l("span", { className: "pr-2", children: d }),
2384
- /* @__PURE__ */ l("div", { className: $, children: e }),
2398
+ /* @__PURE__ */ l("div", { className: H, children: e }),
2385
2399
  c && /* @__PURE__ */ l("span", { className: "pl-2", children: c })
2386
2400
  ]
2387
2401
  }
@@ -2390,13 +2404,13 @@ const qe = P.forwardRef(
2390
2404
  );
2391
2405
  qe.displayName = "ButtonIcon";
2392
2406
  /*!
2393
- @versini/ui-button v1.2.1
2407
+ @versini/ui-button v1.6.0
2394
2408
  © 2024 gizmette.com
2395
2409
  */
2396
2410
  try {
2397
2411
  window.__VERSINI_UI_BUTTON__ || (window.__VERSINI_UI_BUTTON__ = {
2398
- version: "1.2.1",
2399
- buildTime: "12/18/2024 01:22 PM EST",
2412
+ version: "1.6.0",
2413
+ buildTime: "12/26/2024 06:05 PM EST",
2400
2414
  homepage: "https://github.com/aversini/ui-components",
2401
2415
  license: "MIT"
2402
2416
  });
@@ -2418,13 +2432,13 @@ const sn = P.forwardRef(
2418
2432
  size: m = "medium",
2419
2433
  labelRight: c,
2420
2434
  labelLeft: d,
2421
- spacing: y,
2435
+ spacing: f,
2422
2436
  noBackground: b = !1,
2423
- align: _ = "center",
2437
+ align: T = "center",
2424
2438
  active: w = !1,
2425
2439
  ...C
2426
- }, L) => {
2427
- const $ = at({
2440
+ }, $) => {
2441
+ const H = at({
2428
2442
  type: rt,
2429
2443
  mode: r,
2430
2444
  focusMode: a,
@@ -2436,15 +2450,15 @@ const sn = P.forwardRef(
2436
2450
  size: m,
2437
2451
  labelRight: c,
2438
2452
  labelLeft: d,
2439
- spacing: y,
2453
+ spacing: f,
2440
2454
  noBackground: b,
2441
- align: _
2442
- }), ee = f({
2455
+ align: T
2456
+ }), ee = y({
2443
2457
  "text-copy-accent-dark": r === "light" && !i,
2444
2458
  "text-copy-light": r === "dark" && !i,
2445
2459
  "text-copy-accent-dark dark:text-copy-light": r === "alt-system" && !i,
2446
2460
  "text-copy-light dark:text-copy-accent-dark": r === "system" && !i
2447
- }), N = w ? f(
2461
+ }), N = w ? y(
2448
2462
  "relative",
2449
2463
  "focus-within:static",
2450
2464
  "focus-within:after:border-transparent",
@@ -2461,11 +2475,11 @@ const sn = P.forwardRef(
2461
2475
  "after:border-table-light dark:after:border-table-dark": r === "alt-system"
2462
2476
  }
2463
2477
  ) : "";
2464
- return /* @__PURE__ */ l("div", { className: N, children: /* @__PURE__ */ I(
2465
- Me,
2478
+ return /* @__PURE__ */ l("div", { className: N, children: /* @__PURE__ */ _(
2479
+ Le,
2466
2480
  {
2467
- ref: L,
2468
- className: $,
2481
+ ref: $,
2482
+ className: H,
2469
2483
  disabled: t,
2470
2484
  type: s,
2471
2485
  "aria-label": h || p,
@@ -2481,23 +2495,36 @@ const sn = P.forwardRef(
2481
2495
  );
2482
2496
  sn.displayName = "ButtonSort";
2483
2497
  /*!
2484
- @versini/ui-card v1.1.1
2498
+ @versini/ui-card v1.4.0
2485
2499
  © 2024 gizmette.com
2486
2500
  */
2487
2501
  try {
2488
2502
  window.__VERSINI_UI_CARD__ || (window.__VERSINI_UI_CARD__ = {
2489
- version: "1.1.1",
2490
- buildTime: "12/18/2024 01:22 PM EST",
2503
+ version: "1.4.0",
2504
+ buildTime: "12/26/2024 06:05 PM EST",
2491
2505
  homepage: "https://github.com/aversini/ui-components",
2492
2506
  license: "MIT"
2493
2507
  });
2494
2508
  } catch {
2495
2509
  }
2496
- const Ae = "av-card";
2510
+ const ke = "av-card";
2497
2511
  function cn(e) {
2498
- const t = _t();
2512
+ const t = Tt();
2499
2513
  return `${e}${t}`;
2500
2514
  }
2515
+ /*!
2516
+ @versini/ui-spacing v1.1.0
2517
+ © 2024 gizmette.com
2518
+ */
2519
+ try {
2520
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
2521
+ version: "1.1.0",
2522
+ buildTime: "12/26/2024 06:05 PM EST",
2523
+ homepage: "https://github.com/aversini/ui-components",
2524
+ license: "MIT"
2525
+ });
2526
+ } catch {
2527
+ }
2501
2528
  const ln = (e) => {
2502
2529
  let t = "";
2503
2530
  if (typeof e == "number" || typeof e == "string")
@@ -2517,8 +2544,8 @@ const ln = (e) => {
2517
2544
  compact: s,
2518
2545
  noBorder: i
2519
2546
  }) => {
2520
- const u = f(
2521
- Ae,
2547
+ const u = y(
2548
+ ke,
2522
2549
  e,
2523
2550
  "rounded-md",
2524
2551
  ln(n),
@@ -2533,7 +2560,7 @@ const ln = (e) => {
2533
2560
  "border-border-dark bg-surface-lighter text-copy-dark dark:border-border-accent dark:bg-surface-dark dark:text-copy-light": o === "system",
2534
2561
  "border-border-accent bg-surface-dark text-copy-light dark:border-border-dark dark:bg-surface-lighter dark:text-copy-dark": o === "alt-system"
2535
2562
  }
2536
- ), h = t || f(`${Ae}__header mt-0 border-b-2`, {
2563
+ ), h = t || y(`${ke}__header mt-0 border-b-2`, {
2537
2564
  "text-copy-light border-border-accent": o === "darker",
2538
2565
  "border-border-accent": o === "dark",
2539
2566
  "border-border-medium": o === "light",
@@ -2541,7 +2568,7 @@ const ln = (e) => {
2541
2568
  "border-border-accent dark:border-border-medium": o === "alt-system",
2542
2569
  "mb-4": !s,
2543
2570
  "mb-2": s
2544
- }), p = f(r), m = a || f(`${Ae}__footer pt-2`);
2571
+ }), p = y(r), m = a || y(`${ke}__footer pt-2`);
2545
2572
  return {
2546
2573
  wrapper: u,
2547
2574
  header: h,
@@ -2572,8 +2599,8 @@ const mn = ({
2572
2599
  noBorder: m = !1,
2573
2600
  ...c
2574
2601
  }) => {
2575
- let d = null, y = null;
2576
- const b = typeof e == "string", _ = cn(Ae), w = dn({
2602
+ let d = null, f = null;
2603
+ const b = typeof e == "string", T = cn(ke), w = dn({
2577
2604
  className: o,
2578
2605
  headerClassName: t,
2579
2606
  bodyClassName: s,
@@ -2583,11 +2610,11 @@ const mn = ({
2583
2610
  compact: p,
2584
2611
  noBorder: m
2585
2612
  });
2586
- return b ? (d = _, y = d) : !b && e && i ? (d = null, y = i) : !b && e && !i ? (d = _, y = d) : (d = null, y = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ I(
2613
+ return b ? (d = T, f = d) : !b && e && i ? (d = null, f = i) : !b && e && !i ? (d = T, f = d) : (d = null, f = i || null), /* @__PURE__ */ l("div", { className: w.wrapper, children: /* @__PURE__ */ _(
2587
2614
  "section",
2588
2615
  {
2589
- ...y && {
2590
- "aria-labelledby": y
2616
+ ...f && {
2617
+ "aria-labelledby": f
2591
2618
  },
2592
2619
  className: w.body,
2593
2620
  ...c,
@@ -2606,7 +2633,21 @@ const mn = ({
2606
2633
  ]
2607
2634
  }
2608
2635
  ) });
2609
- }, hn = (e) => {
2636
+ };
2637
+ /*!
2638
+ @versini/ui-spacing v1.1.0
2639
+ © 2024 gizmette.com
2640
+ */
2641
+ try {
2642
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
2643
+ version: "1.1.0",
2644
+ buildTime: "12/26/2024 06:05 PM EST",
2645
+ homepage: "https://github.com/aversini/ui-components",
2646
+ license: "MIT"
2647
+ });
2648
+ } catch {
2649
+ }
2650
+ const hn = (e) => {
2610
2651
  let t = "";
2611
2652
  if (typeof e == "number" || typeof e == "string")
2612
2653
  t = "m-" + e;
@@ -2615,7 +2656,7 @@ const mn = ({
2615
2656
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
2616
2657
  }
2617
2658
  return t;
2618
- }, Ue = ({
2659
+ }, Me = ({
2619
2660
  children: e,
2620
2661
  fill: t,
2621
2662
  viewBox: r,
@@ -2627,11 +2668,11 @@ const mn = ({
2627
2668
  semantic: u = !1,
2628
2669
  ...h
2629
2670
  }) => {
2630
- const p = hn(s), m = f(
2671
+ const p = hn(s), m = y(
2631
2672
  p,
2632
2673
  a || o
2633
2674
  );
2634
- return /* @__PURE__ */ I(ye, { children: [
2675
+ return /* @__PURE__ */ _(fe, { children: [
2635
2676
  /* @__PURE__ */ l(
2636
2677
  "svg",
2637
2678
  {
@@ -2650,13 +2691,13 @@ const mn = ({
2650
2691
  ] });
2651
2692
  };
2652
2693
  /*!
2653
- @versini/ui-private v1.5.1
2694
+ @versini/ui-svgicon v1.1.0
2654
2695
  © 2024 gizmette.com
2655
2696
  */
2656
2697
  try {
2657
- window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
2658
- version: "1.5.1",
2659
- buildTime: "12/18/2024 01:22 PM EST",
2698
+ window.__VERSINI_UI_SVGICON__ || (window.__VERSINI_UI_SVGICON__ = {
2699
+ version: "1.1.0",
2700
+ buildTime: "12/26/2024 06:05 PM EST",
2660
2701
  homepage: "https://github.com/aversini/ui-components",
2661
2702
  license: "MIT"
2662
2703
  });
@@ -2668,7 +2709,7 @@ const pn = ({
2668
2709
  spacing: r,
2669
2710
  ...a
2670
2711
  }) => /* @__PURE__ */ l(
2671
- Ue,
2712
+ Me,
2672
2713
  {
2673
2714
  defaultViewBox: "0 0 1200 500",
2674
2715
  defaultClassName: "w-full",
@@ -2694,8 +2735,8 @@ const pn = ({
2694
2735
  title: a,
2695
2736
  monotone: n,
2696
2737
  ...o
2697
- }) => /* @__PURE__ */ I(
2698
- Ue,
2738
+ }) => /* @__PURE__ */ _(
2739
+ Me,
2699
2740
  {
2700
2741
  defaultViewBox: "0 0 640 512",
2701
2742
  defaultClassName: "size-5",
@@ -2715,7 +2756,7 @@ const pn = ({
2715
2756
  /* @__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.1L9.2 42.9C-1.2 34.7-3.1 19.6 5.1 9.2z" })
2716
2757
  ]
2717
2758
  }
2718
- ), fn = ({
2759
+ ), yn = ({
2719
2760
  className: e,
2720
2761
  viewBox: t,
2721
2762
  spacing: r,
@@ -2724,8 +2765,8 @@ const pn = ({
2724
2765
  ...o
2725
2766
  }) => {
2726
2767
  const s = n ? "1" : "0.4";
2727
- return /* @__PURE__ */ I(
2728
- Ue,
2768
+ return /* @__PURE__ */ _(
2769
+ Me,
2729
2770
  {
2730
2771
  defaultViewBox: "0 0 190 190",
2731
2772
  defaultClassName: "size-5",
@@ -2754,15 +2795,15 @@ const pn = ({
2754
2795
  ]
2755
2796
  }
2756
2797
  );
2757
- }, yn = ({
2798
+ }, fn = ({
2758
2799
  className: e,
2759
2800
  viewBox: t,
2760
2801
  spacing: r,
2761
2802
  title: a,
2762
2803
  monotone: n,
2763
2804
  ...o
2764
- }) => /* @__PURE__ */ I(
2765
- Ue,
2805
+ }) => /* @__PURE__ */ _(
2806
+ Me,
2766
2807
  {
2767
2808
  defaultViewBox: "0 0 576 512",
2768
2809
  defaultClassName: "size-5",
@@ -2784,32 +2825,46 @@ const pn = ({
2784
2825
  }
2785
2826
  );
2786
2827
  /*!
2787
- @versini/ui-icons v1.16.1
2828
+ @versini/ui-icons v1.19.0
2788
2829
  © 2024 gizmette.com
2789
2830
  */
2790
2831
  try {
2791
2832
  window.__VERSINI_UI_ICONS__ || (window.__VERSINI_UI_ICONS__ = {
2792
- version: "1.16.1",
2793
- buildTime: "12/18/2024 01:22 PM EST",
2833
+ version: "1.19.0",
2834
+ buildTime: "12/26/2024 06:05 PM EST",
2794
2835
  homepage: "https://github.com/aversini/ui-components",
2795
2836
  license: "MIT"
2796
2837
  });
2797
2838
  } catch {
2798
2839
  }
2799
2840
  /*!
2800
- @versini/ui-main v1.1.1
2841
+ @versini/ui-main v1.4.0
2801
2842
  © 2024 gizmette.com
2802
2843
  */
2803
2844
  try {
2804
2845
  window.__VERSINI_UI_MAIN__ || (window.__VERSINI_UI_MAIN__ = {
2805
- version: "1.1.1",
2806
- buildTime: "12/18/2024 01:22 PM EST",
2846
+ version: "1.4.0",
2847
+ buildTime: "12/26/2024 06:05 PM EST",
2807
2848
  homepage: "https://github.com/aversini/ui-components",
2808
2849
  license: "MIT"
2809
2850
  });
2810
2851
  } catch {
2811
2852
  }
2812
- const bn = "av-main", En = (e) => {
2853
+ const bn = "av-main";
2854
+ /*!
2855
+ @versini/ui-spacing v1.1.0
2856
+ © 2024 gizmette.com
2857
+ */
2858
+ try {
2859
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
2860
+ version: "1.1.0",
2861
+ buildTime: "12/26/2024 06:05 PM EST",
2862
+ homepage: "https://github.com/aversini/ui-components",
2863
+ license: "MIT"
2864
+ });
2865
+ } catch {
2866
+ }
2867
+ const En = (e) => {
2813
2868
  let t = "";
2814
2869
  if (typeof e == "number" || typeof e == "string")
2815
2870
  t = "m-" + e;
@@ -2824,11 +2879,25 @@ const bn = "av-main", En = (e) => {
2824
2879
  raw: r = !1,
2825
2880
  spacing: a
2826
2881
  }) => {
2827
- const n = f(t, bn, En(a), {
2882
+ const n = y(t, bn, En(a), {
2828
2883
  "mt-2 flex w-full flex-col p-2 sm:mt-3 md:mx-auto md:max-w-4xl": !r
2829
2884
  });
2830
2885
  return /* @__PURE__ */ l("main", { className: n, children: e });
2831
- }, Tn = (e) => {
2886
+ };
2887
+ /*!
2888
+ @versini/ui-spacing v1.1.0
2889
+ © 2024 gizmette.com
2890
+ */
2891
+ try {
2892
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
2893
+ version: "1.1.0",
2894
+ buildTime: "12/26/2024 06:05 PM EST",
2895
+ homepage: "https://github.com/aversini/ui-components",
2896
+ license: "MIT"
2897
+ });
2898
+ } catch {
2899
+ }
2900
+ const In = (e) => {
2832
2901
  let t = "";
2833
2902
  if (typeof e == "number" || typeof e == "string")
2834
2903
  t = "m-" + e;
@@ -2837,7 +2906,7 @@ const bn = "av-main", En = (e) => {
2837
2906
  (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
2838
2907
  }
2839
2908
  return t;
2840
- }, In = "av-flexgrid", ve = "av-flexgrid-item", Oe = 0.25, er = P.createContext({
2909
+ }, _n = "av-flexgrid", ve = "av-flexgrid-item", Oe = 0.25, er = P.createContext({
2841
2910
  columnGap: 0,
2842
2911
  rowGap: 0
2843
2912
  }), wt = ({
@@ -2866,13 +2935,13 @@ const bn = "av-main", En = (e) => {
2866
2935
  */
2867
2936
  marginLeft: r * -1 * Oe + "rem",
2868
2937
  marginTop: a * -1 * Oe + "rem"
2869
- }, c = f(
2870
- In,
2938
+ }, c = y(
2939
+ _n,
2871
2940
  t,
2872
2941
  "box-border flex flex-wrap"
2873
- ), d = { columnGap: r, rowGap: a }, y = h ? "div" : P.Fragment;
2874
- return /* @__PURE__ */ l(y, { ...h ? { className: Tn(h) } : {}, children: /* @__PURE__ */ l("div", { className: c, style: m, ...p, children: /* @__PURE__ */ l(er.Provider, { value: d, children: e }) }) });
2875
- }, Ye = (e, t) => f({
2942
+ ), d = { columnGap: r, rowGap: a }, f = h ? "div" : P.Fragment;
2943
+ return /* @__PURE__ */ l(f, { ...h ? { className: In(h) } : {}, children: /* @__PURE__ */ l("div", { className: c, style: m, ...p, children: /* @__PURE__ */ l(er.Provider, { value: d, children: e }) }) });
2944
+ }, Ye = (e, t) => y({
2876
2945
  "basis-1/12": e === 1 && !t,
2877
2946
  "sm:basis-1/12": e === 1 && t === "sm",
2878
2947
  "md:basis-1/12": e === 1 && t === "md",
@@ -2945,23 +3014,23 @@ const bn = "av-main", En = (e) => {
2945
3014
  "lg:basis-full": e === 12 && t === "lg",
2946
3015
  "xl:basis-full": e === 12 && t === "xl",
2947
3016
  "2xl:basis-full": e === 12 && t === "2xl"
2948
- }), _n = ({
3017
+ }), Tn = ({
2949
3018
  className: e,
2950
3019
  span: t
2951
3020
  }) => {
2952
3021
  if (!t)
2953
- return f(e, ve, "box-border basis-auto");
3022
+ return y(e, ve, "box-border basis-auto");
2954
3023
  if (typeof t == "number")
2955
- return f(e, ve, "box-border max-w-full", {
3024
+ return y(e, ve, "box-border max-w-full", {
2956
3025
  [`${Ye(t)}`]: !0
2957
3026
  });
2958
3027
  if (typeof t == "string")
2959
- return f(e, ve, "box-border basis-auto", {
3028
+ return y(e, ve, "box-border basis-auto", {
2960
3029
  "max-w-full grow": t === "auto"
2961
3030
  });
2962
3031
  if (typeof t == "object") {
2963
3032
  const r = Object.entries(t).map(([a, n]) => a === "fallback" ? Ye(n) : Ye(n, a));
2964
- return f(
3033
+ return y(
2965
3034
  e,
2966
3035
  ve,
2967
3036
  "box-border",
@@ -2977,20 +3046,20 @@ const bn = "av-main", En = (e) => {
2977
3046
  const { columnGap: n, rowGap: o } = Xe(er), s = {
2978
3047
  paddingLeft: n * Oe + "rem",
2979
3048
  paddingTop: o * Oe + "rem"
2980
- }, i = _n({
3049
+ }, i = Tn({
2981
3050
  className: t,
2982
3051
  span: r
2983
3052
  });
2984
3053
  return /* @__PURE__ */ l("div", { className: i, style: s, ...a, children: e });
2985
3054
  };
2986
3055
  /*!
2987
- @versini/ui-system v1.5.1
3056
+ @versini/ui-system v1.8.0
2988
3057
  © 2024 gizmette.com
2989
3058
  */
2990
3059
  try {
2991
3060
  window.__VERSINI_UI_SYSTEM__ || (window.__VERSINI_UI_SYSTEM__ = {
2992
- version: "1.5.1",
2993
- buildTime: "12/18/2024 01:22 PM EST",
3061
+ version: "1.8.0",
3062
+ buildTime: "12/26/2024 06:05 PM EST",
2994
3063
  homepage: "https://github.com/aversini/ui-components",
2995
3064
  license: "MIT"
2996
3065
  });
@@ -2998,12 +3067,12 @@ try {
2998
3067
  }
2999
3068
  const tr = "av-text-input", Sn = "av-text-input-wrapper", Fe = "av-text-input-helper-text";
3000
3069
  function vn() {
3001
- const e = H(!1);
3070
+ const e = K(!1);
3002
3071
  return Z(() => (e.current = !0, () => {
3003
3072
  e.current = !1;
3004
3073
  }), []), X(() => e.current, []);
3005
3074
  }
3006
- const kn = {
3075
+ const An = {
3007
3076
  x: 0,
3008
3077
  y: 0,
3009
3078
  width: 0,
@@ -3013,8 +3082,8 @@ const kn = {
3013
3082
  bottom: 0,
3014
3083
  right: 0
3015
3084
  };
3016
- function An(e) {
3017
- const t = vn(), r = H(0), a = H(null), [n, o] = q(kn), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3085
+ function kn(e) {
3086
+ const t = vn(), r = K(0), a = K(null), [n, o] = q(An), s = St(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3018
3087
  const u = i[0];
3019
3088
  u && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3020
3089
  a.current && t() && o(u.contentRect);
@@ -3025,7 +3094,7 @@ function An(e) {
3025
3094
  }), [s, e]), [a, n];
3026
3095
  }
3027
3096
  function Nn(e) {
3028
- const t = _t();
3097
+ const t = Tt();
3029
3098
  if (!e)
3030
3099
  return t;
3031
3100
  if (typeof e == "number" || typeof e == "string")
@@ -3065,7 +3134,7 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Rn = {
3065
3134
  t({
3066
3135
  type: ar
3067
3136
  }), typeof e == "function" && e();
3068
- }, Tt = ({
3137
+ }, It = ({
3069
3138
  children: e,
3070
3139
  clearAnnouncementDelay: t,
3071
3140
  clearAnnouncementTimeoutRef: r,
@@ -3091,13 +3160,13 @@ const rr = "SET_ANNOUNCEMENT", ar = "CLEAR_ANNOUNCEMENT", Rn = {
3091
3160
  onAnnouncementClear: o,
3092
3161
  dispatch: s
3093
3162
  }) => {
3094
- clearTimeout(t.current), r ? t.current = setTimeout(Tt, r, {
3163
+ clearTimeout(t.current), r ? t.current = setTimeout(It, r, {
3095
3164
  children: e,
3096
3165
  clearAnnouncementDelay: a,
3097
3166
  clearAnnouncementTimeoutRef: n,
3098
3167
  onAnnouncementClear: o,
3099
3168
  dispatch: s
3100
- }) : Tt({
3169
+ }) : It({
3101
3170
  children: e,
3102
3171
  clearAnnouncementDelay: a,
3103
3172
  clearAnnouncementTimeoutRef: n,
@@ -3116,7 +3185,7 @@ function nr({
3116
3185
  visible: i,
3117
3186
  ...u
3118
3187
  }) {
3119
- const h = H(null), p = H(null), [m, c] = It(xn, {
3188
+ const h = K(null), p = K(null), [m, c] = _t(xn, {
3120
3189
  announcement: null
3121
3190
  });
3122
3191
  let d = r;
@@ -3136,7 +3205,7 @@ function nr({
3136
3205
  o,
3137
3206
  s
3138
3207
  ]);
3139
- const y = f(t, {
3208
+ const f = y(t, {
3140
3209
  "sr-only": !i
3141
3210
  });
3142
3211
  return /* @__PURE__ */ l(
@@ -3144,58 +3213,70 @@ function nr({
3144
3213
  {
3145
3214
  "aria-live": d,
3146
3215
  ...a && { role: a },
3147
- className: y,
3216
+ className: f,
3148
3217
  ...u,
3149
3218
  children: m.announcement
3150
3219
  }
3151
3220
  );
3152
3221
  }
3153
- const Pn = (e) => {
3154
- let t = "";
3155
- if (typeof e == "number" || typeof e == "string")
3156
- t = "m-" + e;
3157
- else {
3158
- const r = [];
3159
- (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
3160
- }
3161
- return t;
3162
- };
3163
3222
  /*!
3164
- @versini/ui-private v1.5.1
3223
+ @versini/ui-liveregion v1.2.0
3165
3224
  © 2024 gizmette.com
3166
3225
  */
3167
3226
  try {
3168
- window.__VERSINI_UI_PRIVATE__ || (window.__VERSINI_UI_PRIVATE__ = {
3169
- version: "1.5.1",
3170
- buildTime: "12/18/2024 01:22 PM EST",
3227
+ window.__VERSINI_UI_LIVEREGION__ || (window.__VERSINI_UI_LIVEREGION__ = {
3228
+ version: "1.2.0",
3229
+ buildTime: "12/26/2024 06:05 PM EST",
3171
3230
  homepage: "https://github.com/aversini/ui-components",
3172
3231
  license: "MIT"
3173
3232
  });
3174
3233
  } catch {
3175
3234
  }
3176
- const Dn = ({
3235
+ /*!
3236
+ @versini/ui-spacing v1.1.0
3237
+ © 2024 gizmette.com
3238
+ */
3239
+ try {
3240
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
3241
+ version: "1.1.0",
3242
+ buildTime: "12/26/2024 06:05 PM EST",
3243
+ homepage: "https://github.com/aversini/ui-components",
3244
+ license: "MIT"
3245
+ });
3246
+ } catch {
3247
+ }
3248
+ const Pn = (e) => {
3249
+ let t = "";
3250
+ if (typeof e == "number" || typeof e == "string")
3251
+ t = "m-" + e;
3252
+ else {
3253
+ const r = [];
3254
+ (e == null ? void 0 : e.t) !== void 0 && r.push(`mt-${e.t}`), (e == null ? void 0 : e.r) !== void 0 && r.push(`mr-${e.r}`), (e == null ? void 0 : e.b) !== void 0 && r.push(`mb-${e.b}`), (e == null ? void 0 : e.l) !== void 0 && r.push(`ml-${e.l}`), t = r.join(" ");
3255
+ }
3256
+ return t;
3257
+ }, Dn = ({
3177
3258
  mode: e
3178
- }) => f({
3259
+ }) => y({
3179
3260
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3180
3261
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3181
3262
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3182
3263
  "bg-surface-darker text-copy-lighter caret-copy-light dark:bg-surface-lighter dark:text-copy-dark dark:caret-copy-dark": e === "alt-system"
3183
- }), Ln = ({
3264
+ }), $n = ({
3184
3265
  focusMode: e
3185
- }) => f("focus:outline focus:outline-2 focus:outline-offset-2", {
3266
+ }) => y("focus:outline focus:outline-2 focus:outline-offset-2", {
3186
3267
  "focus:outline-focus-dark": e === "dark",
3187
3268
  "focus:outline-focus-light": e === "light",
3188
3269
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3189
3270
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3190
- }), Mn = ({
3271
+ }), Ln = ({
3191
3272
  noBorder: e,
3192
3273
  error: t
3193
- }) => f("border-2", {
3274
+ }) => y("border-2", {
3194
3275
  "border-border-dark": !e && !t,
3195
3276
  "focus:border-border-dark": !e && t,
3196
3277
  "border-border-error-dark": !e && t,
3197
3278
  "border-transparent": e
3198
- }), Un = ({
3279
+ }), Mn = ({
3199
3280
  disabled: e,
3200
3281
  raw: t,
3201
3282
  error: r,
@@ -3204,22 +3285,22 @@ const Dn = ({
3204
3285
  if (t)
3205
3286
  return "";
3206
3287
  if (e)
3207
- return f("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3288
+ return y("absolute px-2 cursor-not-allowed opacity-50 font-medium");
3208
3289
  if (!r)
3209
- return f("absolute px-2 cursor-text font-medium", {
3290
+ return y("absolute px-2 cursor-text font-medium", {
3210
3291
  "text-copy-lighter": a === "dark",
3211
3292
  "text-copy-dark": a === "light",
3212
3293
  "text-copy-dark dark:text-copy-lighter": a === "system",
3213
3294
  "text-copy-lighter dark:text-copy-dark": a === "alt-system"
3214
3295
  });
3215
3296
  if (r)
3216
- return f("absolute px-2 cursor-text font-medium", {
3297
+ return y("absolute px-2 cursor-text font-medium", {
3217
3298
  "text-copy-lighter": a === "dark",
3218
3299
  "text-copy-error-dark": a === "light",
3219
3300
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
3220
3301
  "text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
3221
3302
  });
3222
- }, Kn = ({
3303
+ }, Un = ({
3223
3304
  error: e,
3224
3305
  raw: t,
3225
3306
  mode: r,
@@ -3228,25 +3309,25 @@ const Dn = ({
3228
3309
  if (t)
3229
3310
  return "";
3230
3311
  if (a)
3231
- return f(
3312
+ return y(
3232
3313
  Fe,
3233
3314
  "absolute px-2 cursor-not-allowed opacity-50 font-medium"
3234
3315
  );
3235
3316
  if (!e)
3236
- return f(Fe, "absolute px-2 font-medium", {
3317
+ return y(Fe, "absolute px-2 font-medium", {
3237
3318
  "text-copy-lighter": r === "dark",
3238
3319
  "text-copy-dark": r === "light",
3239
3320
  "text-copy-dark dark:text-copy-lighter": r === "system",
3240
3321
  "text-copy-lighter dark:text-copy-dark": r === "alt-system"
3241
3322
  });
3242
3323
  if (e)
3243
- return f(Fe, "absolute px-2 font-medium", {
3324
+ return y(Fe, "absolute px-2 font-medium", {
3244
3325
  "text-copy-error-light bg-surface-darker": r === "dark",
3245
3326
  "text-copy-error-dark": r === "light",
3246
3327
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
3247
3328
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
3248
3329
  });
3249
- }, Hn = ({
3330
+ }, Kn = ({
3250
3331
  className: e,
3251
3332
  inputClassName: t,
3252
3333
  raw: r,
@@ -3259,7 +3340,7 @@ const Dn = ({
3259
3340
  size: h,
3260
3341
  rightElementClassName: p
3261
3342
  }) => {
3262
- const m = r ? e : f(
3343
+ const m = r ? e : y(
3263
3344
  "relative flex w-full flex-col justify-center",
3264
3345
  Sn,
3265
3346
  e,
@@ -3283,34 +3364,34 @@ const Dn = ({
3283
3364
  c = "h-12";
3284
3365
  break;
3285
3366
  }
3286
- const d = r ? f(t) : f(
3367
+ const d = r ? y(t) : y(
3287
3368
  tr,
3288
3369
  t,
3289
3370
  c,
3290
3371
  "rounded-md text-base px-4",
3291
3372
  Dn({ mode: i }),
3292
- Ln({ focusMode: u }),
3293
- Mn({ noBorder: n, error: o }),
3373
+ $n({ focusMode: u }),
3374
+ Ln({ noBorder: n, error: o }),
3294
3375
  {
3295
3376
  "disabled:cursor-not-allowed disabled:opacity-50": a
3296
3377
  }
3297
- ), y = r ? void 0 : "sr-only", b = Un({
3378
+ ), f = r ? void 0 : "sr-only", b = Mn({
3298
3379
  disabled: a,
3299
3380
  raw: r,
3300
3381
  error: o,
3301
3382
  mode: i
3302
- }), _ = Kn({
3383
+ }), T = Un({
3303
3384
  error: o,
3304
3385
  raw: r,
3305
3386
  mode: i,
3306
3387
  disabled: a
3307
- }), w = r ? void 0 : f("absolute right-3", p);
3388
+ }), w = r ? void 0 : y("absolute right-3", p);
3308
3389
  return {
3309
3390
  wrapper: m,
3310
3391
  input: d,
3311
- accessibleLabel: y,
3392
+ accessibleLabel: f,
3312
3393
  visibleLabel: b,
3313
- helperText: _,
3394
+ helperText: T,
3314
3395
  rightElement: w
3315
3396
  };
3316
3397
  }, nt = P.forwardRef(
@@ -3329,20 +3410,20 @@ const Dn = ({
3329
3410
  labelId: m,
3330
3411
  labelHidden: c = !1,
3331
3412
  type: d = "text",
3332
- helperText: y = "",
3413
+ helperText: f = "",
3333
3414
  rightElement: b,
3334
- rightElementClassName: _,
3415
+ rightElementClassName: T,
3335
3416
  spacing: w,
3336
3417
  size: C = "md",
3337
- ...L
3338
- }, $) => {
3339
- const [ee, N] = An(), [V, D] = q(0), Y = Nn({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${y}`, te = H(null), R = H(null), M = {
3418
+ ...$
3419
+ }, H) => {
3420
+ const [ee, N] = kn(), [J, D] = q(0), Y = Nn({ id: e, prefix: `${tr}-` }), pe = `${t} error, ${f}`, te = K(null), R = K(null), L = {
3340
3421
  xs: { label: "-25px", helperText: "30px" },
3341
3422
  sm: { label: "-29px", helperText: "34px" },
3342
3423
  md: { label: "-33px", helperText: "38px" },
3343
3424
  lg: { label: "-15px", helperText: "22px" },
3344
3425
  xl: { label: "-19px", helperText: "25px" }
3345
- }, W = Hn({
3426
+ }, G = Kn({
3346
3427
  className: o,
3347
3428
  inputClassName: s,
3348
3429
  error: a,
@@ -3353,41 +3434,41 @@ const Dn = ({
3353
3434
  spacing: w,
3354
3435
  mode: i,
3355
3436
  size: C,
3356
- rightElementClassName: _
3437
+ rightElementClassName: T
3357
3438
  });
3358
3439
  return st(() => {
3359
3440
  N && N.width && D(N.width + 18 + 10);
3360
3441
  }, [N]), st(() => {
3361
- var g, T;
3362
- const { label: E, helperText: z } = M[C];
3363
- (g = te == null ? void 0 : te.current) == null || g.style.setProperty("--av-text-input-label", E), (T = R == null ? void 0 : R.current) == null || T.style.setProperty(
3442
+ var g, I;
3443
+ const { label: E, helperText: z } = L[C];
3444
+ (g = te == null ? void 0 : te.current) == null || g.style.setProperty("--av-text-input-label", E), (I = R == null ? void 0 : R.current) == null || I.style.setProperty(
3364
3445
  "--av-text-input-helper-text",
3365
3446
  z
3366
3447
  );
3367
- }, [C]), /* @__PURE__ */ I("div", { className: W.wrapper, children: [
3448
+ }, [C]), /* @__PURE__ */ _("div", { className: G.wrapper, children: [
3368
3449
  /* @__PURE__ */ l(
3369
3450
  "label",
3370
3451
  {
3371
3452
  htmlFor: Y,
3372
3453
  id: m,
3373
- className: W.accessibleLabel,
3454
+ className: G.accessibleLabel,
3374
3455
  children: r
3375
3456
  }
3376
3457
  ),
3377
3458
  /* @__PURE__ */ l(
3378
3459
  "input",
3379
3460
  {
3380
- ref: $,
3461
+ ref: H,
3381
3462
  id: Y,
3382
3463
  name: t,
3383
3464
  type: d,
3384
3465
  disabled: h,
3385
3466
  placeholder: n ? void 0 : " ",
3386
- className: W.input,
3387
- ...y && { "aria-describedby": `${Y}-helper` },
3467
+ className: G.input,
3468
+ ...f && { "aria-describedby": `${Y}-helper` },
3388
3469
  ...a && { "aria-invalid": "true" },
3389
- ...b && !n && { style: { paddingRight: V } },
3390
- ...L
3470
+ ...b && !n && { style: { paddingRight: J } },
3471
+ ...$
3391
3472
  }
3392
3473
  ),
3393
3474
  !n && !c && /* @__PURE__ */ l(
@@ -3396,33 +3477,33 @@ const Dn = ({
3396
3477
  ref: te,
3397
3478
  "aria-hidden": !0,
3398
3479
  htmlFor: Y,
3399
- className: W.visibleLabel,
3480
+ className: G.visibleLabel,
3400
3481
  children: r
3401
3482
  }
3402
3483
  ),
3403
- y && /* @__PURE__ */ l(
3484
+ f && /* @__PURE__ */ l(
3404
3485
  "div",
3405
3486
  {
3406
3487
  ref: R,
3407
3488
  id: `${Y}-helper`,
3408
- className: W.helperText,
3409
- children: y
3489
+ className: G.helperText,
3490
+ children: f
3410
3491
  }
3411
3492
  ),
3412
3493
  b && /* @__PURE__ */ l(
3413
3494
  "div",
3414
3495
  {
3415
3496
  ref: ee,
3416
- className: W.rightElement,
3497
+ className: G.rightElement,
3417
3498
  children: b
3418
3499
  }
3419
3500
  ),
3420
- a && y && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3501
+ a && f && /* @__PURE__ */ l(nr, { politeness: "polite", clearAnnouncementDelay: 500, children: pe })
3421
3502
  ] });
3422
3503
  }
3423
3504
  );
3424
3505
  nt.displayName = "TextInput";
3425
- function $n(e) {
3506
+ function Hn(e) {
3426
3507
  return St(() => e.every((t) => t == null) ? () => {
3427
3508
  } : (t) => {
3428
3509
  e.forEach((r) => {
@@ -3430,7 +3511,7 @@ function $n(e) {
3430
3511
  });
3431
3512
  }, e);
3432
3513
  }
3433
- const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
3514
+ const Gn = 500, Wn = 5e3, Vn = 2e4, or = P.forwardRef(
3434
3515
  ({
3435
3516
  name: e,
3436
3517
  disabled: t,
@@ -3445,29 +3526,29 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
3445
3526
  spacing: p,
3446
3527
  ...m
3447
3528
  }, c) => {
3448
- const [d, y] = q(!0), [b, _] = q({
3529
+ const [d, f] = q(!0), [b, T] = q({
3449
3530
  message: null,
3450
3531
  politeness: null
3451
- }), w = H(!0), C = H(null), L = H(null), $ = $n([c, L]), ee = d ? "Show" : "Hide", N = () => {
3532
+ }), w = K(!0), C = K(null), $ = K(null), H = Hn([c, $]), ee = d ? "Show" : "Hide", N = () => {
3452
3533
  C.current && clearTimeout(C.current), w.current || (C.current = setTimeout(() => {
3453
- w.current = !0, y(!0), _({
3454
- announcementTimeout: Bn,
3534
+ w.current = !0, f(!0), T({
3535
+ announcementTimeout: Wn,
3455
3536
  politeness: "polite",
3456
3537
  message: `${r} hiding characters`
3457
3538
  }), n && n(!0);
3458
- }, Gn));
3459
- }, V = (R) => {
3539
+ }, Vn));
3540
+ }, J = (R) => {
3460
3541
  R.preventDefault();
3461
- const M = !w.current;
3462
- w.current = M, N(), y(M), _({
3463
- announcementTimeout: Wn,
3542
+ const L = !w.current;
3543
+ w.current = L, N(), f(L), T({
3544
+ announcementTimeout: Gn,
3464
3545
  politeness: "assertive",
3465
- message: M ? "Characters hidden" : "Characters showing"
3466
- }), n && n(M);
3546
+ message: L ? "Characters hidden" : "Characters showing"
3547
+ }), n && n(L);
3467
3548
  }, D = (R) => {
3468
- var M;
3469
- const { relatedTarget: W } = R, g = (M = L.current) == null ? void 0 : M.parentElement;
3470
- g != null && g.contains(W) || u && u();
3549
+ var L;
3550
+ const { relatedTarget: G } = R, g = (L = $.current) == null ? void 0 : L.parentElement;
3551
+ g != null && g.contains(G) || u && u();
3471
3552
  }, Y = (R) => {
3472
3553
  N(), s && s(R), D(R);
3473
3554
  }, pe = (R) => {
@@ -3477,11 +3558,11 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
3477
3558
  };
3478
3559
  return Z(() => () => {
3479
3560
  C.current && clearTimeout(C.current);
3480
- }, []), /* @__PURE__ */ I(ye, { children: [
3561
+ }, []), /* @__PURE__ */ _(fe, { children: [
3481
3562
  /* @__PURE__ */ l(
3482
3563
  nt,
3483
3564
  {
3484
- ref: $,
3565
+ ref: H,
3485
3566
  name: e,
3486
3567
  label: r,
3487
3568
  labelHidden: a,
@@ -3494,7 +3575,7 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
3494
3575
  rightElement: P.cloneElement(h, {
3495
3576
  ref: c,
3496
3577
  label: ee,
3497
- onClick: V,
3578
+ onClick: J,
3498
3579
  onBlur: D,
3499
3580
  disabled: t
3500
3581
  }),
@@ -3515,26 +3596,26 @@ const Wn = 500, Bn = 5e3, Gn = 2e4, or = P.forwardRef(
3515
3596
  );
3516
3597
  or.displayName = "TextInputMask";
3517
3598
  /*!
3518
- @versini/ui-textinput v1.3.1
3599
+ @versini/ui-textinput v1.6.0
3519
3600
  © 2024 gizmette.com
3520
3601
  */
3521
3602
  try {
3522
3603
  window.__VERSINI_UI_TEXTINPUT__ || (window.__VERSINI_UI_TEXTINPUT__ = {
3523
- version: "1.3.1",
3524
- buildTime: "12/18/2024 01:22 PM EST",
3604
+ version: "1.6.0",
3605
+ buildTime: "12/26/2024 06:05 PM EST",
3525
3606
  homepage: "https://github.com/aversini/ui-components",
3526
3607
  license: "MIT"
3527
3608
  });
3528
3609
  } catch {
3529
3610
  }
3530
- const Jn = "ASK! ME! ANYTHING!", sr = "LeeLou", Vn = "gizmette.com", Yn = "Log in", Fn = "Sign in with a Passkey", Zo = "Log out", zn = "Password", jn = "Powered by ", es = "Send", ts = "Profile", rs = "Statistics", as = "Chat history", ns = "About", os = "Type your question here", ss = {
3611
+ const Bn = "ASK! ME! ANYTHING!", sr = "LeeLou", Jn = "gizmette.com", Yn = "Log in", Fn = "Sign in with a Passkey", Zo = "Log out", zn = "Password", jn = "Powered by ", es = "Send", ts = "Profile", rs = "Statistics", as = "Chat history", ns = "About", os = "Type your question here", ss = "<clipboard>", is = {
3531
3612
  ACTION_WHILE_STREAMING: {
3532
3613
  content: "Cancel chat"
3533
3614
  },
3534
3615
  ACTION_WHILE_NOT_STREAMING: {
3535
3616
  content: "New chat"
3536
3617
  }
3537
- }, is = "N/A", cs = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed.", ls = {
3618
+ }, cs = "N/A", ls = "Tags are pre-filled buttons available on the main screen, to help you quickly start requests. The label is used for the button, and the content is what will be inserted in the chat when the button is pressed. You can use the special placeholder <clipboard> to automatically insert the content of your clipboard.", ds = {
3538
3619
  PREFERENCES: {
3539
3620
  TITLE: "User settings",
3540
3621
  NAME: "Name",
@@ -3570,19 +3651,33 @@ const Jn = "ASK! ME! ANYTHING!", sr = "LeeLou", Vn = "gizmette.com", Yn = "Log i
3570
3651
  }
3571
3652
  };
3572
3653
  /*!
3573
- @versini/ui-footer v1.1.1
3654
+ @versini/ui-footer v1.4.0
3574
3655
  © 2024 gizmette.com
3575
3656
  */
3576
3657
  try {
3577
3658
  window.__VERSINI_UI_FOOTER__ || (window.__VERSINI_UI_FOOTER__ = {
3578
- version: "1.1.1",
3579
- buildTime: "12/18/2024 01:22 PM EST",
3659
+ version: "1.4.0",
3660
+ buildTime: "12/26/2024 06:05 PM EST",
3580
3661
  homepage: "https://github.com/aversini/ui-components",
3581
3662
  license: "MIT"
3582
3663
  });
3583
3664
  } catch {
3584
3665
  }
3585
- const qn = "av-footer", Xn = (e) => {
3666
+ const qn = "av-footer";
3667
+ /*!
3668
+ @versini/ui-spacing v1.1.0
3669
+ © 2024 gizmette.com
3670
+ */
3671
+ try {
3672
+ window.__VERSINI_UI_SPACING__ || (window.__VERSINI_UI_SPACING__ = {
3673
+ version: "1.1.0",
3674
+ buildTime: "12/26/2024 06:05 PM EST",
3675
+ homepage: "https://github.com/aversini/ui-components",
3676
+ license: "MIT"
3677
+ });
3678
+ } catch {
3679
+ }
3680
+ const Xn = (e) => {
3586
3681
  let t = "";
3587
3682
  if (typeof e == "number" || typeof e == "string")
3588
3683
  t = "m-" + e;
@@ -3600,7 +3695,7 @@ const qn = "av-footer", Xn = (e) => {
3600
3695
  spacing: o,
3601
3696
  raw: s = !1
3602
3697
  }) => {
3603
- const i = f(qn, e, Xn(o), {
3698
+ const i = y(qn, e, Xn(o), {
3604
3699
  "text-copy-dark": !s && t === "dark",
3605
3700
  "text-copy-lighter": !s && t === "light",
3606
3701
  "text-copy-dark dark:text-copy-lighter": !s && t === "system",
@@ -3608,15 +3703,15 @@ const qn = "av-footer", Xn = (e) => {
3608
3703
  "mb-[100px]": !n && !s,
3609
3704
  "mt-0 flex w-full flex-col p-2 text-center text-xs sm:mt-3 md:mx-auto md:max-w-4xl": !s
3610
3705
  });
3611
- return /* @__PURE__ */ I("footer", { className: i, children: [
3706
+ return /* @__PURE__ */ _("footer", { className: i, children: [
3612
3707
  r && /* @__PURE__ */ l("div", { children: r }),
3613
3708
  a && /* @__PURE__ */ l("div", { children: a })
3614
3709
  ] });
3615
3710
  }, Zn = P.createContext({
3616
3711
  state: {
3617
3712
  id: "",
3618
- model: Ve,
3619
- engine: Ve,
3713
+ model: Je,
3714
+ engine: Je,
3620
3715
  usage: 0,
3621
3716
  messages: [],
3622
3717
  isComponent: !1,
@@ -3628,14 +3723,14 @@ const qn = "av-footer", Xn = (e) => {
3628
3723
  version: "",
3629
3724
  models: [],
3630
3725
  plugins: [],
3631
- engine: Ve,
3726
+ engine: Je,
3632
3727
  engines: []
3633
3728
  }
3634
- }), ds = P.createContext({
3729
+ }), us = P.createContext({
3635
3730
  state: { searchString: "", sortedCell: "", sortDirection: "" },
3636
3731
  dispatch: () => {
3637
3732
  }
3638
- }), us = P.createContext({
3733
+ }), ms = P.createContext({
3639
3734
  state: { tag: "" },
3640
3735
  dispatch: () => {
3641
3736
  }
@@ -3647,37 +3742,37 @@ const qn = "av-footer", Xn = (e) => {
3647
3742
  Qn,
3648
3743
  {
3649
3744
  mode: "light",
3650
- row1: /* @__PURE__ */ I("div", { children: [
3745
+ row1: /* @__PURE__ */ _("div", { children: [
3651
3746
  sr,
3652
3747
  " v",
3653
- "5.7.1",
3748
+ "5.8.1",
3654
3749
  " - ",
3655
3750
  jn,
3656
3751
  t && t.engine,
3657
3752
  tt && e && e.models.length > 0 && e.models[0] === "development" ? " - Development Mode" : ""
3658
3753
  ] }),
3659
- row2: /* @__PURE__ */ I("div", { children: [
3754
+ row2: /* @__PURE__ */ _("div", { children: [
3660
3755
  "© ",
3661
3756
  (/* @__PURE__ */ new Date()).getFullYear(),
3662
3757
  " ",
3663
- Vn
3758
+ Jn
3664
3759
  ] })
3665
3760
  }
3666
3761
  );
3667
3762
  }, to = vt(
3668
3763
  () => import(
3669
3764
  /* webpackChunkName: "LazyHeader" */
3670
- "./LazyHeader.AXOCM40c.js"
3765
+ "./LazyHeader.C-PVExEQ.js"
3671
3766
  )
3672
3767
  ), ro = () => {
3673
3768
  const { isAuthenticated: e } = et();
3674
- return /* @__PURE__ */ I(ye, { children: [
3675
- e && /* @__PURE__ */ l(kt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(to, {}) }),
3676
- /* @__PURE__ */ I("div", { className: "flex items-center justify-center", children: [
3769
+ return /* @__PURE__ */ _(fe, { children: [
3770
+ e && /* @__PURE__ */ l(At, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(to, {}) }),
3771
+ /* @__PURE__ */ _("div", { className: "flex items-center justify-center", children: [
3677
3772
  /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(pn, {}) }),
3678
- /* @__PURE__ */ I("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3773
+ /* @__PURE__ */ _("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3679
3774
  /* @__PURE__ */ l("h1", { children: sr }),
3680
- /* @__PURE__ */ l("h2", { children: Jn })
3775
+ /* @__PURE__ */ l("h2", { children: Bn })
3681
3776
  ] })
3682
3777
  ] })
3683
3778
  ] });
@@ -3696,11 +3791,11 @@ const qn = "av-footer", Xn = (e) => {
3696
3791
  }, 500);
3697
3792
  }), Z(() => {
3698
3793
  t && s(t);
3699
- }, [t]), /* @__PURE__ */ I(ye, { children: [
3700
- /* @__PURE__ */ I(wn, { children: [
3794
+ }, [t]), /* @__PURE__ */ _(fe, { children: [
3795
+ /* @__PURE__ */ _(wn, { children: [
3701
3796
  /* @__PURE__ */ l("div", { className: qa(), children: /* @__PURE__ */ l(ro, {}) }),
3702
- /* @__PURE__ */ I("form", { className: "mt-5", onSubmit: m, children: [
3703
- /* @__PURE__ */ l(wt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ I(mn, { mode: "dark", children: [
3797
+ /* @__PURE__ */ _("form", { className: "mt-5", onSubmit: m, children: [
3798
+ /* @__PURE__ */ l(wt, { alignHorizontal: "center", rowGap: 7, children: /* @__PURE__ */ l(le, { span: 6, children: /* @__PURE__ */ _(mn, { mode: "dark", children: [
3704
3799
  /* @__PURE__ */ l(le, { span: 12, children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3705
3800
  /* @__PURE__ */ l(le, { span: 12, children: /* @__PURE__ */ l(
3706
3801
  nt,
@@ -3733,7 +3828,7 @@ const qn = "av-footer", Xn = (e) => {
3733
3828
  focusMode: "light",
3734
3829
  name: "password",
3735
3830
  label: zn,
3736
- rightElement: /* @__PURE__ */ l(qe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(yn, {}) : /* @__PURE__ */ l(gn, {}) }),
3831
+ rightElement: /* @__PURE__ */ l(qe, { focusMode: "light", mode: "dark", children: i ? /* @__PURE__ */ l(fn, {}) : /* @__PURE__ */ l(gn, {}) }),
3737
3832
  onMaskChange: u,
3738
3833
  onChange: (c) => {
3739
3834
  p({
@@ -3769,7 +3864,7 @@ const qn = "av-footer", Xn = (e) => {
3769
3864
  className: "mb-4 mt-1",
3770
3865
  labelRight: Fn,
3771
3866
  onClick: r,
3772
- children: /* @__PURE__ */ l(fn, { className: "size-7" })
3867
+ children: /* @__PURE__ */ l(yn, { className: "size-7" })
3773
3868
  }
3774
3869
  ) }) })
3775
3870
  ] })
@@ -3779,79 +3874,80 @@ const qn = "av-footer", Xn = (e) => {
3779
3874
  }, no = new URL(document.location.href).searchParams, oo = !!no.get("debug") || !1, so = vt(
3780
3875
  () => import(
3781
3876
  /* webpackChunkName: "LazyApp" */
3782
- "./LazyApp.CyJDRVTr.js"
3877
+ "./LazyApp.cIKe00HD.js"
3783
3878
  ).then((e) => e.LazyApp)
3784
3879
  ), io = ({ isComponent: e }) => {
3785
3880
  const { isAuthenticated: t } = et();
3786
- return t ? /* @__PURE__ */ l(kt, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
3881
+ return t ? /* @__PURE__ */ l(At, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
3787
3882
  }, co = ({
3788
3883
  isComponent: e = !1,
3789
3884
  domain: t = ja
3790
- }) => /* @__PURE__ */ l(ye, { children: /* @__PURE__ */ l(Ka, { clientId: Ha, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }) }), ms = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
3885
+ }) => /* @__PURE__ */ l(fe, { children: /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }) }), hs = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
3791
3886
  export {
3792
3887
  ns as ABOUT_TITLE,
3793
3888
  Po as ACTION_ENGINE,
3794
3889
  No as ACTION_MESSAGE,
3795
3890
  xo as ACTION_MODEL,
3796
3891
  Ro as ACTION_RESET,
3797
- Uo as ACTION_RESET_TAGS,
3892
+ Mo as ACTION_RESET_TAGS,
3798
3893
  Co as ACTION_RESTORE,
3799
3894
  Do as ACTION_SEARCH,
3800
- Ko as ACTION_SET_TAGS,
3801
- Lo as ACTION_SORT,
3895
+ Uo as ACTION_SET_TAGS,
3896
+ $o as ACTION_SORT,
3802
3897
  Oo as ACTION_STREAMING,
3803
- Mo as ACTION_TOGGLE_TAG,
3898
+ Lo as ACTION_TOGGLE_TAG,
3804
3899
  sr as APP_NAME,
3805
3900
  Zn as AppContext,
3806
3901
  eo as AppFooter,
3807
- ls as CARDS,
3808
- Ve as DEFAULT_AI_ENGINE,
3902
+ ds as CARDS,
3903
+ ss as CLIPBOARD_TAG,
3904
+ Je as DEFAULT_AI_ENGINE,
3809
3905
  mn as E,
3810
- ko as ENGINE_ANTHROPIC,
3906
+ Ao as ENGINE_ANTHROPIC,
3811
3907
  vo as ENGINE_OPENAI,
3812
3908
  So as ERROR_MESSAGE,
3813
- Ao as GPT4_MAX_TOKENS,
3909
+ ko as GPT4_MAX_TOKENS,
3814
3910
  as as HISTORY_TITLE,
3815
- ds as HistoryContext,
3816
- $o as LOCAL_STORAGE_CHAT_DETAILS,
3817
- Go as LOCAL_STORAGE_ENGINE_TOGGLE,
3818
- Ho as LOCAL_STORAGE_PREFIX,
3819
- Wo as LOCAL_STORAGE_SEARCH,
3820
- Bo as LOCAL_STORAGE_SORT,
3911
+ us as HistoryContext,
3912
+ Ho as LOCAL_STORAGE_CHAT_DETAILS,
3913
+ Vo as LOCAL_STORAGE_ENGINE_TOGGLE,
3914
+ Ko as LOCAL_STORAGE_PREFIX,
3915
+ Go as LOCAL_STORAGE_SEARCH,
3916
+ Wo as LOCAL_STORAGE_SORT,
3821
3917
  Zo as LOG_OUT,
3822
3918
  ue as M,
3823
3919
  ro as MessagesContainerHeader,
3824
- is as NA,
3920
+ cs as NA,
3825
3921
  qe as O,
3826
3922
  ts as PROFILE_TITLE,
3827
3923
  Zt as R,
3828
3924
  wo as ROLE_ASSISTANT,
3829
- _o as ROLE_HIDDEN,
3830
- Io as ROLE_INTERNAL,
3831
- To as ROLE_SYSTEM,
3925
+ To as ROLE_HIDDEN,
3926
+ _o as ROLE_INTERNAL,
3927
+ Io as ROLE_SYSTEM,
3832
3928
  Eo as ROLE_USER,
3833
3929
  es as SEND,
3834
3930
  rs as STATS,
3835
- Jo as STATS_SEPARATOR,
3836
- ms as SassySaint,
3837
- cs as TAGS_DESCRIPTION,
3838
- ss as TOOLBOX,
3931
+ Bo as STATS_SEPARATOR,
3932
+ hs as SassySaint,
3933
+ ls as TAGS_DESCRIPTION,
3934
+ is as TOOLBOX,
3839
3935
  os as TYPE_QUESTION,
3840
- us as TagsContext,
3936
+ ms as TagsContext,
3841
3937
  wt as b,
3842
- wn as d,
3938
+ wn as c,
3843
3939
  Xo as durationFormatter,
3844
3940
  zo as extractAverage,
3845
- Ue as g,
3941
+ nt as fe,
3942
+ Me as g,
3846
3943
  Yo as getCurrentGeoLocation,
3847
3944
  qa as getMessageContaintWrapperClass,
3848
3945
  jo as isLastMessageFromRole,
3849
3946
  le as j,
3850
- nt as me,
3851
3947
  qo as numberFormatter,
3852
3948
  Qo as pluralize,
3853
3949
  Fo as renderDataAsList,
3854
- Vo as truncate,
3950
+ Jo as truncate,
3855
3951
  et as un,
3856
- fn as v
3952
+ yn as v
3857
3953
  };