@versini/sassysaint 7.1.2 → 7.1.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,15 +1,15 @@
1
1
  import { jsx as l, jsxs as D, Fragment as Re } from "react/jsx-runtime";
2
- import X, { createContext as sr, useReducer as It, useRef as x, useCallback as q, useEffect as Y, useContext as St, useSyncExternalStore as ir, useLayoutEffect as Ne, useMemo as Le, useState as z, useId as _t, lazy as cr, Suspense as lr } from "react";
2
+ import X, { createContext as ir, useReducer as St, useRef as x, useCallback as q, useEffect as Y, useContext as _t, useSyncExternalStore as cr, useLayoutEffect as Ne, useMemo as Le, useState as z, useId as kt, lazy as lr, Suspense as dr } from "react";
3
3
  import p 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, We = (e, t, r) => ur(e, typeof t != "symbol" ? t + "" : t, r);
4
+ var ur = Object.defineProperty, mr = (e, t, r) => t in e ? ur(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, We = (e, t, r) => mr(e, typeof t != "symbol" ? t + "" : t, r);
5
5
  /*!
6
- @versini/auth-provider v7.4.0
7
- © 2024 gizmette.com
6
+ @versini/auth-provider v7.4.1
7
+ © 2025 gizmette.com
8
8
  */
9
9
  try {
10
10
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
11
- version: "7.4.0",
12
- buildTime: "12/18/2024 02:36 PM EST",
11
+ version: "7.4.1",
12
+ buildTime: "02/09/2025 02:17 PM EST",
13
13
  homepage: "https://github.com/aversini/auth-client",
14
14
  license: "MIT"
15
15
  });
@@ -31,7 +31,7 @@ function ve(e) {
31
31
  function tt() {
32
32
  return (window == null ? void 0 : window.PublicKeyCredential) !== void 0 && typeof window.PublicKeyCredential == "function";
33
33
  }
34
- function kt(e) {
34
+ function At(e) {
35
35
  const { id: t } = e;
36
36
  return {
37
37
  ...e,
@@ -39,7 +39,7 @@ function kt(e) {
39
39
  transports: e.transports
40
40
  };
41
41
  }
42
- function At(e) {
42
+ function Rt(e) {
43
43
  return e === "localhost" || /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/i.test(e);
44
44
  }
45
45
  let v = class extends Error {
@@ -47,7 +47,7 @@ let v = class extends Error {
47
47
  super(t, { cause: a }), this.name = n ?? a.name, this.code = r;
48
48
  }
49
49
  };
50
- function mr({ error: e, options: t }) {
50
+ function hr({ error: e, options: t }) {
51
51
  var a, n;
52
52
  const { publicKey: r } = t;
53
53
  if (!r)
@@ -97,7 +97,7 @@ function mr({ error: e, options: t }) {
97
97
  });
98
98
  if (e.name === "SecurityError") {
99
99
  const o = window.location.hostname;
100
- if (At(o)) {
100
+ if (Rt(o)) {
101
101
  if (r.rp.id !== o)
102
102
  return new v({
103
103
  message: `The RP ID "${r.rp.id}" is invalid for this domain`,
@@ -125,7 +125,7 @@ function mr({ error: e, options: t }) {
125
125
  }
126
126
  return e;
127
127
  }
128
- class hr {
128
+ class pr {
129
129
  createNewAbortSignal() {
130
130
  if (this.controller) {
131
131
  const r = new Error("Cancelling existing WebAuthn API call for new one");
@@ -141,12 +141,12 @@ class hr {
141
141
  }
142
142
  }
143
143
  }
144
- const Rt = new hr(), pr = ["cross-platform", "platform"];
145
- function Nt(e) {
146
- if (e && !(pr.indexOf(e) < 0))
144
+ const Nt = new pr(), fr = ["cross-platform", "platform"];
145
+ function vt(e) {
146
+ if (e && !(fr.indexOf(e) < 0))
147
147
  return e;
148
148
  }
149
- async function fr(e) {
149
+ async function gr(e) {
150
150
  var u;
151
151
  if (!tt())
152
152
  throw new Error("WebAuthn is not supported in this browser");
@@ -157,14 +157,14 @@ async function fr(e) {
157
157
  ...e.user,
158
158
  id: ve(e.user.id)
159
159
  },
160
- excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(kt)
160
+ excludeCredentials: (u = e.excludeCredentials) == null ? void 0 : u.map(At)
161
161
  } };
162
- t.signal = Rt.createNewAbortSignal();
162
+ t.signal = Nt.createNewAbortSignal();
163
163
  let r;
164
164
  try {
165
165
  r = await navigator.credentials.create(t);
166
166
  } catch (c) {
167
- throw mr({ error: c, options: t });
167
+ throw hr({ error: c, options: t });
168
168
  }
169
169
  if (!r)
170
170
  throw new Error("Registration was not completed");
@@ -206,20 +206,20 @@ async function fr(e) {
206
206
  },
207
207
  type: s,
208
208
  clientExtensionResults: r.getClientExtensionResults(),
209
- authenticatorAttachment: Nt(r.authenticatorAttachment)
209
+ authenticatorAttachment: vt(r.authenticatorAttachment)
210
210
  };
211
211
  }
212
212
  function Be(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 gr() {
216
+ function yr() {
217
217
  if (!tt())
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 br({ error: e, options: t }) {
223
223
  const { publicKey: r } = t;
224
224
  if (!r)
225
225
  throw Error("options was missing required publicKey property");
@@ -239,7 +239,7 @@ function yr({ error: e, options: t }) {
239
239
  });
240
240
  if (e.name === "SecurityError") {
241
241
  const a = window.location.hostname;
242
- if (At(a)) {
242
+ if (Rt(a)) {
243
243
  if (r.rpId !== a)
244
244
  return new v({
245
245
  message: `The RP ID "${r.rpId}" is invalid for this domain`,
@@ -260,30 +260,30 @@ function yr({ error: e, options: t }) {
260
260
  }
261
261
  return e;
262
262
  }
263
- async function br(e, t = !1) {
263
+ async function Er(e, t = !1) {
264
264
  var u, c;
265
265
  if (!tt())
266
266
  throw new Error("WebAuthn is not supported in this browser");
267
267
  let r;
268
- ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(kt));
268
+ ((u = e.allowCredentials) == null ? void 0 : u.length) !== 0 && (r = (c = e.allowCredentials) == null ? void 0 : c.map(At));
269
269
  const a = {
270
270
  ...e,
271
271
  challenge: ve(e.challenge),
272
272
  allowCredentials: r
273
273
  }, n = {};
274
274
  if (t) {
275
- if (!await gr())
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');
279
279
  n.mediation = "conditional", a.allowCredentials = [];
280
280
  }
281
- n.publicKey = a, n.signal = Rt.createNewAbortSignal();
281
+ n.publicKey = a, n.signal = Nt.createNewAbortSignal();
282
282
  let o;
283
283
  try {
284
284
  o = await navigator.credentials.get(n);
285
285
  } catch (m) {
286
- throw yr({ error: m, options: n });
286
+ throw br({ error: m, options: n });
287
287
  }
288
288
  if (!o)
289
289
  throw new Error("Authentication was not completed");
@@ -300,17 +300,17 @@ async function br(e, t = !1) {
300
300
  },
301
301
  type: h,
302
302
  clientExtensionResults: o.getClientExtensionResults(),
303
- authenticatorAttachment: Nt(o.authenticatorAttachment)
303
+ authenticatorAttachment: vt(o.authenticatorAttachment)
304
304
  };
305
305
  }
306
306
  /*!
307
307
  @versini/auth-common v4.2.0
308
- © 2024 gizmette.com
308
+ © 2025 gizmette.com
309
309
  */
310
310
  try {
311
311
  window.__VERSINI_AUTH_COMMON__ || (window.__VERSINI_AUTH_COMMON__ = {
312
312
  version: "4.2.0",
313
- buildTime: "12/18/2024 02:36 PM EST",
313
+ buildTime: "02/09/2025 02:17 PM EST",
314
314
  homepage: "https://github.com/aversini/auth-client",
315
315
  license: "MIT"
316
316
  });
@@ -323,7 +323,7 @@ const me = {
323
323
  CODE: "code",
324
324
  REFRESH_TOKEN: "refresh_token",
325
325
  PASSKEY: "passkey"
326
- }, vt = {
326
+ }, xt = {
327
327
  CLIENT_ID: "X-Auth-ClientId"
328
328
  }, N = {
329
329
  ALG: "RS256",
@@ -338,7 +338,7 @@ const me = {
338
338
  SCOPES_KEY: "scopes",
339
339
  CLIENT_ID_KEY: "aud",
340
340
  ISSUER: "gizmette.com"
341
- }, Er = `-----BEGIN PUBLIC KEY-----
341
+ }, wr = `-----BEGIN PUBLIC KEY-----
342
342
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
343
343
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
344
344
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -351,15 +351,15 @@ awIDAQAB
351
351
  LOGOUT: "logout",
352
352
  LOGIN: "login",
353
353
  REFRESH: "refresh"
354
- }, Me = crypto, xt = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
355
- function wr(...e) {
354
+ }, Me = crypto, Ct = (e) => e instanceof CryptoKey, Ee = new TextEncoder(), ye = new TextDecoder();
355
+ function Tr(...e) {
356
356
  const t = e.reduce((n, { length: o }) => n + o, 0), r = new Uint8Array(t);
357
357
  let a = 0;
358
358
  for (const n of 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 = ye.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
  }
@@ -392,30 +392,30 @@ class Xe extends P {
392
392
  }
393
393
  }
394
394
  Xe.code = "ERR_JWT_EXPIRED";
395
- class Ct extends P {
395
+ class Ot extends P {
396
396
  constructor() {
397
397
  super(...arguments), this.code = "ERR_JOSE_ALG_NOT_ALLOWED";
398
398
  }
399
399
  }
400
- Ct.code = "ERR_JOSE_ALG_NOT_ALLOWED";
400
+ Ot.code = "ERR_JOSE_ALG_NOT_ALLOWED";
401
401
  let W = class extends P {
402
402
  constructor() {
403
403
  super(...arguments), this.code = "ERR_JOSE_NOT_SUPPORTED";
404
404
  }
405
405
  };
406
406
  W.code = "ERR_JOSE_NOT_SUPPORTED";
407
- class Ir extends P {
407
+ class Sr extends P {
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 Sr extends P {
412
+ Sr.code = "ERR_JWE_DECRYPTION_FAILED";
413
+ class _r extends P {
414
414
  constructor() {
415
415
  super(...arguments), this.code = "ERR_JWE_INVALID";
416
416
  }
417
417
  }
418
- Sr.code = "ERR_JWE_INVALID";
418
+ _r.code = "ERR_JWE_INVALID";
419
419
  let _ = class extends P {
420
420
  constructor() {
421
421
  super(...arguments), this.code = "ERR_JWS_INVALID";
@@ -428,42 +428,42 @@ let J = class extends P {
428
428
  }
429
429
  };
430
430
  J.code = "ERR_JWT_INVALID";
431
- class _r extends P {
431
+ class kr extends P {
432
432
  constructor() {
433
433
  super(...arguments), this.code = "ERR_JWK_INVALID";
434
434
  }
435
435
  }
436
- _r.code = "ERR_JWK_INVALID";
437
- class kr extends P {
436
+ kr.code = "ERR_JWK_INVALID";
437
+ class Ar extends P {
438
438
  constructor() {
439
439
  super(...arguments), this.code = "ERR_JWKS_INVALID";
440
440
  }
441
441
  }
442
- kr.code = "ERR_JWKS_INVALID";
443
- class Ar extends P {
442
+ Ar.code = "ERR_JWKS_INVALID";
443
+ class Rr extends P {
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
- Ar.code = "ERR_JWKS_NO_MATCHING_KEY";
449
- class Rr extends P {
448
+ Rr.code = "ERR_JWKS_NO_MATCHING_KEY";
449
+ class Nr extends P {
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
- Rr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
- class Nr extends P {
454
+ Nr.code = "ERR_JWKS_MULTIPLE_MATCHING_KEYS";
455
+ class vr extends P {
456
456
  constructor(t = "request timed out", r) {
457
457
  super(t, r), this.code = "ERR_JWKS_TIMEOUT";
458
458
  }
459
459
  }
460
- Nr.code = "ERR_JWKS_TIMEOUT";
461
- class Ot extends P {
460
+ vr.code = "ERR_JWKS_TIMEOUT";
461
+ class Pt extends P {
462
462
  constructor(t = "signature verification failed", r) {
463
463
  super(t, r), this.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
464
464
  }
465
465
  }
466
- Ot.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
466
+ Pt.code = "ERR_JWS_SIGNATURE_VERIFICATION_FAILED";
467
467
  function j(e, t = "algorithm.name") {
468
468
  return new TypeError(`CryptoKey does not support this operation, its ${t} must be ${e}`);
469
469
  }
@@ -473,7 +473,7 @@ function we(e, t) {
473
473
  function Ve(e) {
474
474
  return parseInt(e.name.slice(4), 10);
475
475
  }
476
- function vr(e) {
476
+ function xr(e) {
477
477
  switch (e) {
478
478
  case "ES256":
479
479
  return "P-256";
@@ -485,7 +485,7 @@ function vr(e) {
485
485
  throw new Error("unreachable");
486
486
  }
487
487
  }
488
- function xr(e, t) {
488
+ function Cr(e, t) {
489
489
  if (t.length && !t.some((r) => e.usages.includes(r))) {
490
490
  let r = "CryptoKey does not support this operation, its usages must include ";
491
491
  if (t.length > 2) {
@@ -495,7 +495,7 @@ function xr(e, t) {
495
495
  throw new TypeError(r);
496
496
  }
497
497
  }
498
- function Cr(e, t, ...r) {
498
+ function Or(e, t, ...r) {
499
499
  switch (t) {
500
500
  case "HS256":
501
501
  case "HS384":
@@ -537,7 +537,7 @@ function Cr(e, t, ...r) {
537
537
  case "ES512": {
538
538
  if (!we(e.algorithm, "ECDSA"))
539
539
  throw j("ECDSA");
540
- const a = vr(t);
540
+ const a = xr(t);
541
541
  if (e.algorithm.namedCurve !== a)
542
542
  throw j(a, "algorithm.namedCurve");
543
543
  break;
@@ -545,9 +545,9 @@ function Cr(e, t, ...r) {
545
545
  default:
546
546
  throw new TypeError("CryptoKey does not support this operation");
547
547
  }
548
- xr(e, r);
548
+ Cr(e, r);
549
549
  }
550
- function Pt(e, t, ...r) {
550
+ function Dt(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 Pt(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) => Pt("Key must be ", e, ...t);
559
- function Dt(e, t, ...r) {
560
- return Pt(`Key for the ${e} algorithm must be `, t, ...r);
558
+ const it = (e, ...t) => Dt("Key must be ", e, ...t);
559
+ function Lt(e, t, ...r) {
560
+ return Dt(`Key for the ${e} algorithm must be `, t, ...r);
561
561
  }
562
- const Lt = (e) => xt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = ["CryptoKey"], Or = (...e) => {
562
+ const $t = (e) => Ct(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", xe = ["CryptoKey"], Pr = (...e) => {
563
563
  const t = e.filter(Boolean);
564
564
  if (t.length === 0 || t.length === 1)
565
565
  return !0;
@@ -578,11 +578,11 @@ const Lt = (e) => xt(e) ? !0 : (e == null ? void 0 : e[Symbol.toStringTag]) ===
578
578
  }
579
579
  return !0;
580
580
  };
581
- function Pr(e) {
581
+ function Dr(e) {
582
582
  return typeof e == "object" && e !== null;
583
583
  }
584
584
  function he(e) {
585
- if (!Pr(e) || Object.prototype.toString.call(e) !== "[object Object]")
585
+ if (!Dr(e) || Object.prototype.toString.call(e) !== "[object Object]")
586
586
  return !1;
587
587
  if (Object.getPrototypeOf(e) === null)
588
588
  return !0;
@@ -591,7 +591,7 @@ function he(e) {
591
591
  t = Object.getPrototypeOf(t);
592
592
  return Object.getPrototypeOf(e) === t;
593
593
  }
594
- const Dr = (e, t) => {
594
+ const Lr = (e, t) => {
595
595
  if (e.startsWith("RS") || e.startsWith("PS")) {
596
596
  const { modulusLength: r } = t.algorithm;
597
597
  if (typeof r != "number" || r < 2048)
@@ -601,16 +601,16 @@ const Dr = (e, t) => {
601
601
  function pe(e) {
602
602
  return he(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 $r(e) {
607
+ function Mr(e) {
608
608
  return e.kty !== "oct" && typeof e.d > "u";
609
609
  }
610
- function Mr(e) {
610
+ function Ur(e) {
611
611
  return pe(e) && e.kty === "oct" && typeof e.k == "string";
612
612
  }
613
- function Ur(e) {
613
+ function Kr(e) {
614
614
  let t, r;
615
615
  switch (e.kty) {
616
616
  case "RSA": {
@@ -682,36 +682,36 @@ function Ur(e) {
682
682
  }
683
683
  return { algorithm: t, keyUsages: r };
684
684
  }
685
- const $t = async (e) => {
685
+ const Mt = 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 } = Ur(e), a = [
688
+ const { algorithm: t, keyUsages: r } = Kr(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, Me.subtle.importKey("jwk", n, ...a);
694
- }, Mt = (e) => te(e);
694
+ }, Ut = (e) => te(e);
695
695
  let oe, se;
696
- const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = async (e, t, r, a, n = !1) => {
696
+ const Kt = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject", Ce = 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 $t({ ...r, alg: a });
700
+ const s = await Mt({ ...r, alg: a });
701
701
  return n && Object.freeze(t), o ? o[a] = s : e.set(t, { [a]: s }), s;
702
- }, Kr = (e, t) => {
703
- if (Ut(e)) {
702
+ }, Hr = (e, t) => {
703
+ if (Kt(e)) {
704
704
  let r = e.export({ format: "jwk" });
705
- return delete r.d, delete r.dp, delete r.dq, delete r.p, delete r.q, delete r.qi, r.k ? Mt(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, 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 ? Ut(r.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, r, t));
706
706
  }
707
707
  return pe(e) ? e.k ? te(e.k) : (se || (se = /* @__PURE__ */ new WeakMap()), Ce(se, e, e, t, !0)) : e;
708
- }, Hr = (e, t) => {
709
- if (Ut(e)) {
708
+ }, Wr = (e, t) => {
709
+ if (Kt(e)) {
710
710
  let r = e.export({ format: "jwk" });
711
- return r.k ? Mt(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, r, t));
711
+ return r.k ? Ut(r.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, r, t));
712
712
  }
713
713
  return pe(e) ? e.k ? te(e.k) : (oe || (oe = /* @__PURE__ */ new WeakMap()), Ce(oe, e, e, t, !0)) : e;
714
- }, Wr = { normalizePublicKey: Kr, normalizePrivateKey: Hr }, ee = (e, t, r = 0) => {
714
+ }, Br = { normalizePublicKey: Hr, normalizePrivateKey: Wr }, ee = (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)
@@ -737,7 +737,7 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
737
737
  default:
738
738
  throw new W("Invalid or unsupported EC Key Curve or OKP Key Sub Type");
739
739
  }
740
- }, Br = async (e, t, r, a, n) => {
740
+ }, Vr = async (e, t, r, a, n) => {
741
741
  let o, s;
742
742
  const i = new Uint8Array(atob(r.replace(e, "")).split("").map((d) => d.charCodeAt(0)));
743
743
  switch (a) {
@@ -784,13 +784,13 @@ const Ut = (e) => (e == null ? void 0 : e[Symbol.toStringTag]) === "KeyObject",
784
784
  throw new W('Invalid or unsupported "alg" (Algorithm) value');
785
785
  }
786
786
  return Me.subtle.importKey(t, i, o, !1, s);
787
- }, Vr = (e, t, r) => Br(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
- async function Jr(e, t, r) {
787
+ }, Jr = (e, t, r) => Vr(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
788
+ async function Gr(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 Vr(e, t);
791
+ return Jr(e, t);
792
792
  }
793
- async function Gr(e, t) {
793
+ async function Yr(e, t) {
794
794
  if (!he(e))
795
795
  throw new TypeError("JWK must be an object");
796
796
  switch (t || (t = e.alg), e.kty) {
@@ -803,7 +803,7 @@ async function Gr(e, t) {
803
803
  throw new W('RSA JWK "oth" (Other Primes Info) Parameter value is not supported');
804
804
  case "EC":
805
805
  case "OKP":
806
- return $t({ ...e, alg: t });
806
+ return Mt({ ...e, alg: t });
807
807
  default:
808
808
  throw new W('Unsupported "kty" (Key Type) Parameter value');
809
809
  }
@@ -817,32 +817,32 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
817
817
  if (t.alg !== void 0 && t.alg !== e)
818
818
  throw new TypeError(`Invalid key for this operation, when present its alg must be ${e}`);
819
819
  return !0;
820
- }, Yr = (e, t, r, a) => {
820
+ }, Fr = (e, t, r, a) => {
821
821
  if (!(t instanceof Uint8Array)) {
822
822
  if (a && pe(t)) {
823
- if (Mr(t) && Qe(e, t, r))
823
+ if (Ur(t) && Qe(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 (!Lt(t))
828
- throw new TypeError(Dt(e, t, ...xe, "Uint8Array", a ? "JSON Web Key" : null));
827
+ if (!$t(t))
828
+ throw new TypeError(Lt(e, t, ...xe, "Uint8Array", a ? "JSON Web Key" : null));
829
829
  if (t.type !== "secret")
830
830
  throw new TypeError(`${ue(t)} instances for symmetric algorithms must be of type "secret"`);
831
831
  }
832
- }, Fr = (e, t, r, a) => {
832
+ }, jr = (e, t, r, a) => {
833
833
  if (a && pe(t))
834
834
  switch (r) {
835
835
  case "sign":
836
- if (Lr(t) && Qe(e, t, r))
836
+ if ($r(t) && Qe(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 ($r(t) && Qe(e, t, r))
840
+ if (Mr(t) && Qe(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 (!Lt(t))
845
- throw new TypeError(Dt(e, t, ...xe, a ? "JSON Web Key" : null));
844
+ if (!$t(t))
845
+ throw new TypeError(Lt(e, t, ...xe, a ? "JSON Web Key" : null));
846
846
  if (t.type === "secret")
847
847
  throw new TypeError(`${ue(t)} instances for asymmetric algorithms must not be of type "secret"`);
848
848
  if (r === "sign" && t.type === "public")
@@ -854,12 +854,12 @@ const ue = (e) => e == null ? void 0 : e[Symbol.toStringTag], Qe = (e, t, r) =>
854
854
  if (t.algorithm && r === "encrypt" && t.type === "private")
855
855
  throw new TypeError(`${ue(t)} instances for asymmetric algorithm encryption must be of type "public"`);
856
856
  };
857
- function Kt(e, t, r, a) {
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);
857
+ function Ht(e, t, r, a) {
858
+ t.startsWith("HS") || t === "dir" || t.startsWith("PBES2") || /^A\d{3}(?:GCM)?KW$/.test(t) ? Fr(t, r, a, e) : jr(t, r, a, e);
859
859
  }
860
- Kt.bind(void 0, !1);
861
- const lt = Kt.bind(void 0, !0);
862
- function jr(e, t, r, a, n) {
860
+ Ht.bind(void 0, !1);
861
+ const lt = Ht.bind(void 0, !0);
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');
865
865
  if (!a || a.crit === void 0)
@@ -878,13 +878,13 @@ function jr(e, t, r, a, n) {
878
878
  }
879
879
  return new Set(a.crit);
880
880
  }
881
- const zr = (e, t) => {
881
+ const qr = (e, t) => {
882
882
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
883
883
  throw new TypeError(`"${e}" option must be an array of strings`);
884
884
  if (t)
885
885
  return new Set(t);
886
886
  };
887
- function qr(e, t) {
887
+ function Xr(e, t) {
888
888
  const r = `SHA-${e.slice(-3)}`;
889
889
  switch (e) {
890
890
  case "HS256":
@@ -909,9 +909,9 @@ function qr(e, t) {
909
909
  throw new W(`alg ${e} is not supported either by JOSE or your javascript runtime`);
910
910
  }
911
911
  }
912
- async function Xr(e, t, r) {
913
- if (t = await Wr.normalizePublicKey(t, e), xt(t))
914
- return Cr(t, e, r), t;
912
+ async function Qr(e, t, r) {
913
+ if (t = await Br.normalizePublicKey(t, e), Ct(t))
914
+ return Or(t, e, r), t;
915
915
  if (t instanceof Uint8Array) {
916
916
  if (!e.startsWith("HS"))
917
917
  throw new TypeError(it(t, ...xe));
@@ -919,17 +919,17 @@ async function Xr(e, t, r) {
919
919
  }
920
920
  throw new TypeError(it(t, ...xe, "Uint8Array", "JSON Web Key"));
921
921
  }
922
- const Qr = async (e, t, r, a) => {
923
- const n = await Xr(e, t, "verify");
924
- Dr(e, n);
925
- const o = qr(e, n.algorithm);
922
+ const Zr = async (e, t, r, a) => {
923
+ const n = await Qr(e, t, "verify");
924
+ Lr(e, n);
925
+ const o = Xr(e, n.algorithm);
926
926
  try {
927
927
  return await Me.subtle.verify(o, n, r, a);
928
928
  } catch {
929
929
  return !1;
930
930
  }
931
931
  };
932
- async function Zr(e, t, r) {
932
+ async function ea(e, t, r) {
933
933
  if (!he(e))
934
934
  throw new _("Flattened JWS must be an object");
935
935
  if (e.protected === void 0 && e.header === void 0)
@@ -950,37 +950,37 @@ async function Zr(e, t, r) {
950
950
  } catch {
951
951
  throw new _("JWS Protected Header is invalid");
952
952
  }
953
- if (!Or(a, e.header))
953
+ if (!Pr(a, e.header))
954
954
  throw new _("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
955
955
  const n = {
956
956
  ...a,
957
957
  ...e.header
958
- }, o = jr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
958
+ }, o = zr(_, /* @__PURE__ */ new Map([["b64", !0]]), r == null ? void 0 : r.crit, a, n);
959
959
  let s = !0;
960
960
  if (o.has("b64") && (s = a.b64, typeof s != "boolean"))
961
961
  throw new _('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
962
962
  const { alg: i } = n;
963
963
  if (typeof i != "string" || !i)
964
964
  throw new _('JWS "alg" (Algorithm) Header Parameter missing or invalid');
965
- const d = zr("algorithms", r.algorithms);
965
+ const d = qr("algorithms", r.algorithms);
966
966
  if (d && !d.has(i))
967
- throw new Ct('"alg" (Algorithm) Header Parameter value not allowed');
967
+ throw new Ot('"alg" (Algorithm) Header Parameter value not allowed');
968
968
  if (s) {
969
969
  if (typeof e.payload != "string")
970
970
  throw new _("JWS Payload must be a string");
971
971
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
972
972
  throw new _("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"), pe(t) && (t = await Gr(t, i))) : lt(i, t, "verify");
975
- const f = wr(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
974
+ typeof t == "function" ? (t = await t(a, e), h = !0, lt(i, t, "verify"), pe(t) && (t = await Yr(t, i))) : lt(i, t, "verify");
975
+ const f = Tr(Ee.encode(e.protected ?? ""), Ee.encode("."), typeof e.payload == "string" ? Ee.encode(e.payload) : e.payload);
976
976
  let u;
977
977
  try {
978
978
  u = te(e.signature);
979
979
  } catch {
980
980
  throw new _("Failed to base64url decode the signature");
981
981
  }
982
- if (!await Qr(i, t, u, f))
983
- throw new Ot();
982
+ if (!await Zr(i, t, u, f))
983
+ throw new Pt();
984
984
  let c;
985
985
  if (s)
986
986
  try {
@@ -992,17 +992,17 @@ async function Zr(e, t, r) {
992
992
  const m = { payload: c };
993
993
  return e.protected !== void 0 && (m.protectedHeader = a), e.header !== void 0 && (m.unprotectedHeader = e.header), h ? { ...m, key: t } : m;
994
994
  }
995
- async function ea(e, t, r) {
995
+ async function ta(e, t, r) {
996
996
  if (e instanceof Uint8Array && (e = ye.decode(e)), typeof e != "string")
997
997
  throw new _("Compact JWS must be a string or Uint8Array");
998
998
  const { 0: a, 1: n, 2: o, length: s } = e.split(".");
999
999
  if (s !== 3)
1000
1000
  throw new _("Invalid Compact JWS");
1001
- const i = await Zr({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1001
+ const i = await ea({ payload: n, protected: a, signature: o }, t, r), d = { payload: i.payload, protectedHeader: i.protectedHeader };
1002
1002
  return typeof t == "function" ? { ...d, key: i.key } : d;
1003
1003
  }
1004
- const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt * 24, ra = rt * 7, aa = rt * 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
- const t = na.exec(e);
1004
+ const ra = (e) => Math.floor(e.getTime() / 1e3), Wt = 60, Bt = Wt * 60, rt = Bt * 24, aa = rt * 7, na = rt * 365.25, oa = /^(\+|\-)? ?(\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
+ const t = oa.exec(e);
1006
1006
  if (!t || t[4] && t[1])
1007
1007
  throw new TypeError("Invalid time period format");
1008
1008
  const r = parseFloat(t[2]), a = t[3].toLowerCase();
@@ -1020,14 +1020,14 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt
1020
1020
  case "min":
1021
1021
  case "mins":
1022
1022
  case "m":
1023
- n = Math.round(r * Ht);
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 * Wt);
1030
+ n = Math.round(r * Bt);
1031
1031
  break;
1032
1032
  case "day":
1033
1033
  case "days":
@@ -1037,14 +1037,14 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt
1037
1037
  case "week":
1038
1038
  case "weeks":
1039
1039
  case "w":
1040
- n = Math.round(r * ra);
1040
+ n = Math.round(r * aa);
1041
1041
  break;
1042
1042
  default:
1043
- n = Math.round(r * aa);
1043
+ n = Math.round(r * na);
1044
1044
  break;
1045
1045
  }
1046
1046
  return t[1] === "-" || t[4] === "ago" ? -n : n;
1047
- }, ut = (e) => e.toLowerCase().replace(/^application\//, ""), oa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, sa = (e, t, r = {}) => {
1047
+ }, ut = (e) => e.toLowerCase().replace(/^application\//, ""), sa = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1, ia = (e, t, r = {}) => {
1048
1048
  let a;
1049
1049
  try {
1050
1050
  a = JSON.parse(ye.decode(t));
@@ -1064,7 +1064,7 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt
1064
1064
  throw new H('unexpected "iss" claim value', a, "iss", "check_failed");
1065
1065
  if (i && a.sub !== i)
1066
1066
  throw new H('unexpected "sub" claim value', a, "sub", "check_failed");
1067
- if (d && !oa(a.aud, typeof d == "string" ? [d] : d))
1067
+ if (d && !sa(a.aud, typeof d == "string" ? [d] : d))
1068
1068
  throw new H('unexpected "aud" claim value', a, "aud", "check_failed");
1069
1069
  let u;
1070
1070
  switch (typeof r.clockTolerance) {
@@ -1080,7 +1080,7 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt
1080
1080
  default:
1081
1081
  throw new TypeError("Invalid clockTolerance option type");
1082
1082
  }
1083
- const { currentDate: c } = r, m = ta(c || /* @__PURE__ */ new Date());
1083
+ const { currentDate: c } = r, m = ra(c || /* @__PURE__ */ new Date());
1084
1084
  if ((a.iat !== void 0 || h) && typeof a.iat != "number")
1085
1085
  throw new H('"iat" claim must be a number', a, "iat", "invalid");
1086
1086
  if (a.nbf !== void 0) {
@@ -1104,16 +1104,16 @@ const ta = (e) => Math.floor(e.getTime() / 1e3), Ht = 60, Wt = Ht * 60, rt = Wt
1104
1104
  }
1105
1105
  return a;
1106
1106
  };
1107
- async function ia(e, t, r) {
1107
+ async function ca(e, t, r) {
1108
1108
  var a;
1109
- const n = await ea(e, t, r);
1109
+ const n = await ta(e, t, r);
1110
1110
  if ((a = n.protectedHeader.crit) != null && a.includes("b64") && n.protectedHeader.b64 === !1)
1111
1111
  throw new J("JWTs MUST NOT use unencoded payload");
1112
- const o = { payload: sa(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1112
+ const o = { payload: ia(n.protectedHeader, n.payload, r), protectedHeader: n.protectedHeader };
1113
1113
  return typeof t == "function" ? { ...o, key: n.key } : o;
1114
1114
  }
1115
- const ca = te;
1116
- function la(e) {
1115
+ const la = te;
1116
+ function da(e) {
1117
1117
  if (typeof e != "string")
1118
1118
  throw new J("JWTs must use Compact JWS serialization, JWT must be a string");
1119
1119
  const { 1: t, length: r } = e.split(".");
@@ -1125,7 +1125,7 @@ function la(e) {
1125
1125
  throw new J("JWTs must contain a payload");
1126
1126
  let a;
1127
1127
  try {
1128
- a = ca(t);
1128
+ a = la(t);
1129
1129
  } catch {
1130
1130
  throw new J("Failed to base64url decode the payload");
1131
1131
  }
@@ -1141,81 +1141,81 @@ function la(e) {
1141
1141
  }
1142
1142
  const ge = async (e) => {
1143
1143
  try {
1144
- const t = N.ALG, r = await Jr(Er, t);
1145
- return await ia(e, r, {
1144
+ const t = N.ALG, r = await Gr(wr, t);
1145
+ return await ca(e, r, {
1146
1146
  issuer: N.ISSUER
1147
1147
  });
1148
1148
  } catch {
1149
1149
  return;
1150
1150
  }
1151
- }, da = (e) => {
1151
+ }, ua = (e) => {
1152
1152
  try {
1153
- return la(e);
1153
+ return da(e);
1154
1154
  } catch {
1155
1155
  return;
1156
1156
  }
1157
1157
  }, A = [];
1158
1158
  for (let e = 0; e < 256; ++e)
1159
1159
  A.push((e + 256).toString(16).slice(1));
1160
- function ua(e, t = 0) {
1160
+ function ma(e, t = 0) {
1161
1161
  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();
1162
1162
  }
1163
1163
  let Je;
1164
- const ma = new Uint8Array(16);
1165
- function ha() {
1164
+ const ha = new Uint8Array(16);
1165
+ function pa() {
1166
1166
  if (!Je) {
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
1169
  Je = crypto.getRandomValues.bind(crypto);
1170
1170
  }
1171
- return Je(ma);
1171
+ return Je(ha);
1172
1172
  }
1173
- const pa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: pa };
1173
+ const fa = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), mt = { randomUUID: fa };
1174
1174
  function ht(e, t, r) {
1175
1175
  if (mt.randomUUID && !e)
1176
1176
  return mt.randomUUID();
1177
1177
  e = e || {};
1178
- const a = e.random || (e.rng || ha)();
1179
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ua(a);
1178
+ const a = e.random || (e.rng || pa)();
1179
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, ma(a);
1180
1180
  }
1181
- const pt = globalThis.crypto, fa = (e) => `${ht()}${ht()}`.slice(0, e), ga = (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 ba(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 ga(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1190
+ return ya(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
1191
1191
  }
1192
- async function ba(e) {
1193
- const t = fa(43), r = await ya(t);
1192
+ async function Ea(e) {
1193
+ const t = ga(43), r = await ba(t);
1194
1194
  return {
1195
1195
  code_verifier: t,
1196
1196
  code_challenge: r
1197
1197
  };
1198
1198
  }
1199
- function Bt(e, t) {
1199
+ function Vt(e, t) {
1200
1200
  window.dispatchEvent(new StorageEvent("storage", { key: e, newValue: t }));
1201
1201
  }
1202
1202
  const ft = (e, t) => {
1203
1203
  const r = JSON.stringify(
1204
1204
  typeof t == "function" ? t() : t
1205
1205
  );
1206
- window.localStorage.setItem(e, r), Bt(e, r);
1207
- }, Ea = (e) => {
1208
- window.localStorage.removeItem(e), Bt(e, null);
1209
- }, gt = (e) => window.localStorage.getItem(e), wa = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1206
+ window.localStorage.setItem(e, r), Vt(e, r);
1207
+ }, wa = (e) => {
1208
+ window.localStorage.removeItem(e), Vt(e, null);
1209
+ }, gt = (e) => window.localStorage.getItem(e), Ta = (e) => (window.addEventListener("storage", e), () => window.removeEventListener("storage", e));
1210
1210
  function Te({
1211
1211
  key: e,
1212
1212
  initialValue: t
1213
1213
  }) {
1214
- const r = ir(wa, () => gt(e)), a = q(
1214
+ const r = cr(Ta, () => gt(e)), a = q(
1215
1215
  (s) => {
1216
1216
  try {
1217
1217
  const i = typeof s == "function" ? s(JSON.parse(r)) : s;
1218
- i == null ? Ea(e) : ft(e, i);
1218
+ i == null ? wa(e) : ft(e, i);
1219
1219
  } catch (i) {
1220
1220
  console.warn(i);
1221
1221
  }
@@ -1237,31 +1237,33 @@ function Te({
1237
1237
  const R = [];
1238
1238
  for (let e = 0; e < 256; ++e)
1239
1239
  R.push((e + 256).toString(16).slice(1));
1240
- function Ta(e, t = 0) {
1240
+ function Ia(e, t = 0) {
1241
1241
  return (R[e[t + 0]] + R[e[t + 1]] + R[e[t + 2]] + R[e[t + 3]] + "-" + R[e[t + 4]] + R[e[t + 5]] + "-" + R[e[t + 6]] + R[e[t + 7]] + "-" + R[e[t + 8]] + R[e[t + 9]] + "-" + R[e[t + 10]] + R[e[t + 11]] + R[e[t + 12]] + R[e[t + 13]] + R[e[t + 14]] + R[e[t + 15]]).toLowerCase();
1242
1242
  }
1243
1243
  let Ge;
1244
- const Ia = new Uint8Array(16);
1245
- function Sa() {
1244
+ const Sa = new Uint8Array(16);
1245
+ function _a() {
1246
1246
  if (!Ge) {
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
1249
  Ge = crypto.getRandomValues.bind(crypto);
1250
1250
  }
1251
- return Ge(Ia);
1251
+ return Ge(Sa);
1252
1252
  }
1253
- const _a = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: _a };
1253
+ const ka = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), yt = { randomUUID: ka };
1254
1254
  function Ye(e, t, r) {
1255
1255
  if (yt.randomUUID && !e)
1256
1256
  return yt.randomUUID();
1257
1257
  e = e || {};
1258
- const a = e.random || (e.rng || Sa)();
1259
- return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ta(a);
1258
+ const a = e.random || (e.rng || _a)();
1259
+ return a[6] = a[6] & 15 | 64, a[8] = a[8] & 63 | 128, Ia(a);
1260
1260
  }
1261
- const ie = "Your session has expired. For your security, please log in again to continue.", ka = "Your session has been successfully terminated.", Fe = "Login failed. Please try again.", Aa = "Error getting access token, please re-authenticate.", Ra = "You forgot to wrap your component in <AuthProvider>.", Oe = {
1262
- dev: "https://auth.gizmette.local.com:3003",
1261
+ const ie = "Your session has expired. For your security, please log in again to continue.", Aa = "Your session has been successfully terminated.", Fe = "Login failed. Please try again.", Ra = "Error getting access token, please re-authenticate.", Na = "You forgot to wrap your component in <AuthProvider>.";
1262
+ var It;
1263
+ const Oe = {
1264
+ dev: ((It = process == null ? void 0 : process.env) == null ? void 0 : It.PUBLIC_AUTH_SERVER_URL) || "https://auth.gizmette.local.com:3003",
1263
1265
  prod: "https://mylogin.gizmette.com/auth"
1264
- }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Vt = "LOGOUT", be = "success", F = "failure", Jt = "include", Gt = "POST", Yt = "application/json", Se = {
1266
+ }, Ie = "@@auth@@", fe = "LOADING", ke = "LOGIN", Jt = "LOGOUT", be = "success", F = "failure", Gt = "include", Yt = "POST", Ft = "application/json", Se = {
1265
1267
  GET_REGISTRATION_OPTIONS: `mutation GetPasskeyRegistrationOptions(
1266
1268
  $clientId: String!,
1267
1269
  $username: String!,
@@ -1367,14 +1369,14 @@ const ie = "Your session has expired. For your security, please log in again to
1367
1369
  }) => {
1368
1370
  try {
1369
1371
  const n = `Bearer ${e}`, o = await fetch(
1370
- Ft ? `${Oe.dev}/graphql` : `${Oe.prod}/graphql`,
1372
+ jt ? `${Oe.dev}/graphql` : `${Oe.prod}/graphql`,
1371
1373
  {
1372
- credentials: Jt,
1373
- method: Gt,
1374
+ credentials: Gt,
1375
+ method: Yt,
1374
1376
  headers: {
1375
1377
  authorization: n,
1376
- "Content-Type": Yt,
1377
- [vt.CLIENT_ID]: `${r}`
1378
+ "Content-Type": Ft,
1379
+ [xt.CLIENT_ID]: `${r}`
1378
1380
  },
1379
1381
  body: JSON.stringify({
1380
1382
  query: t.schema,
@@ -1399,13 +1401,13 @@ const ie = "Your session has expired. For your security, please log in again to
1399
1401
  }) => {
1400
1402
  try {
1401
1403
  const a = await fetch(
1402
- Ft ? `${Oe.dev}/${e}` : `${Oe.prod}/${e}`,
1404
+ jt ? `${Oe.dev}/${e}` : `${Oe.prod}/${e}`,
1403
1405
  {
1404
- credentials: Jt,
1405
- method: Gt,
1406
+ credentials: Gt,
1407
+ method: Yt,
1406
1408
  headers: {
1407
- "Content-Type": Yt,
1408
- [vt.CLIENT_ID]: `${t}`
1409
+ "Content-Type": Ft,
1410
+ [xt.CLIENT_ID]: `${t}`
1409
1411
  },
1410
1412
  body: JSON.stringify(r)
1411
1413
  }
@@ -1420,21 +1422,21 @@ const ie = "Your session has expired. For your security, please log in again to
1420
1422
  } catch (a) {
1421
1423
  return console.error(a), { status: F, data: [] };
1422
1424
  }
1423
- }, Na = process.env.NODE_ENV === "production", Ft = !Na, jt = {
1425
+ }, va = process.env.NODE_ENV === "production", jt = !va, zt = {
1424
1426
  isLoading: !0,
1425
1427
  isAuthenticated: !1,
1426
1428
  user: void 0,
1427
1429
  logoutReason: "",
1428
1430
  debug: !1,
1429
1431
  authenticationType: ""
1430
- }, va = (e) => {
1432
+ }, xa = (e) => {
1431
1433
  try {
1432
- const t = da(e);
1434
+ const t = ua(e);
1433
1435
  return t ? t[N.USER_ID_KEY] : "";
1434
1436
  } catch {
1435
1437
  return "";
1436
1438
  }
1437
- }, xa = async ({
1439
+ }, Ca = async ({
1438
1440
  userId: e,
1439
1441
  clientId: t,
1440
1442
  domain: r,
@@ -1458,7 +1460,7 @@ const ie = "Your session has expired. For your security, please log in again to
1458
1460
  status: F
1459
1461
  };
1460
1462
  }
1461
- }, Ca = async ({
1463
+ }, Oa = async ({
1462
1464
  username: e,
1463
1465
  password: t,
1464
1466
  clientId: r,
@@ -1502,7 +1504,7 @@ const ie = "Your session has expired. For your security, please log in again to
1502
1504
  status: !1
1503
1505
  };
1504
1506
  }
1505
- }, Oa = async ({
1507
+ }, Pa = async ({
1506
1508
  nonce: e,
1507
1509
  clientId: t,
1508
1510
  code_challenge: r
@@ -1531,7 +1533,7 @@ const ie = "Your session has expired. For your security, please log in again to
1531
1533
  data: ""
1532
1534
  };
1533
1535
  }
1534
- }, Pa = async ({
1536
+ }, Da = async ({
1535
1537
  clientId: e,
1536
1538
  userId: t,
1537
1539
  nonce: r,
@@ -1567,7 +1569,7 @@ const ie = "Your session has expired. For your security, please log in again to
1567
1569
  };
1568
1570
  }
1569
1571
  };
1570
- class Da {
1572
+ class La {
1571
1573
  constructor(t = null, r = null) {
1572
1574
  We(this, "refreshTokenPromise", null), We(this, "accessToken"), We(this, "refreshToken"), this.accessToken = t || "", this.refreshToken = r || "";
1573
1575
  }
@@ -1597,7 +1599,7 @@ class Da {
1597
1599
  }) {
1598
1600
  const o = await ge(this.refreshToken);
1599
1601
  if (o && o.payload[N.USER_ID_KEY] !== "") {
1600
- const s = await Pa({
1602
+ const s = await Da({
1601
1603
  clientId: t,
1602
1604
  userId: r,
1603
1605
  nonce: a,
@@ -1618,14 +1620,14 @@ class Da {
1618
1620
  };
1619
1621
  }
1620
1622
  }
1621
- const La = (e) => q(
1623
+ const $a = (e) => q(
1622
1624
  (...t) => {
1623
1625
  e && console.info(`==> [Auth ${Date.now()}]: `, ...t);
1624
1626
  },
1625
1627
  [e]
1626
1628
  ), de = () => {
1627
- throw new Error(Ra);
1628
- }, zt = sr({
1629
+ throw new Error(Na);
1630
+ }, qt = ir({
1629
1631
  isAuthenticated: !1,
1630
1632
  isLoading: !1,
1631
1633
  login: de,
@@ -1636,11 +1638,11 @@ const La = (e) => q(
1636
1638
  loginWithPasskey: de,
1637
1639
  logoutReason: "",
1638
1640
  authenticationType: ""
1639
- }), $a = X.createContext({
1640
- state: jt,
1641
+ }), Ma = X.createContext({
1642
+ state: zt,
1641
1643
  dispatch: () => {
1642
1644
  }
1643
- }), Ma = (e, t) => (t == null ? void 0 : t.type) === fe ? {
1645
+ }), Ua = (e, t) => (t == null ? void 0 : t.type) === fe ? {
1644
1646
  ...e,
1645
1647
  isLoading: t.payload.isLoading
1646
1648
  } : (t == null ? void 0 : t.type) === ke ? {
@@ -1650,24 +1652,24 @@ const La = (e) => q(
1650
1652
  user: t.payload.user,
1651
1653
  authenticationType: t.payload.authenticationType,
1652
1654
  logoutReason: ""
1653
- } : (t == null ? void 0 : t.type) === Vt ? {
1655
+ } : (t == null ? void 0 : t.type) === Jt ? {
1654
1656
  ...e,
1655
1657
  isLoading: !1,
1656
1658
  isAuthenticated: !1,
1657
1659
  user: void 0,
1658
1660
  authenticationType: "",
1659
1661
  logoutReason: t.payload.logoutReason
1660
- } : e, Ua = ({
1662
+ } : e, Ka = ({
1661
1663
  children: e,
1662
1664
  sessionExpiration: t,
1663
1665
  clientId: r,
1664
1666
  domain: a = "",
1665
1667
  debug: n = !1
1666
1668
  }) => {
1667
- const [o, s] = It(Ma, {
1668
- ...jt,
1669
+ const [o, s] = St(Ua, {
1670
+ ...zt,
1669
1671
  debug: n
1670
- }), i = La(n), d = x(!1), [h, f, , u] = Te({
1672
+ }), i = $a(n), d = x(!1), [h, f, , u] = Te({
1671
1673
  key: `${Ie}::${r}::@@user@@`
1672
1674
  }), [c, m, , y] = Te({
1673
1675
  key: `${Ie}::${r}::@@access@@`
@@ -1677,7 +1679,7 @@ const La = (e) => q(
1677
1679
  }
1678
1680
  ), [Q, L, , Z] = Te({
1679
1681
  key: `${Ie}::${r}::@@nonce@@`
1680
- }), $ = new Da(c, w), B = q(() => {
1682
+ }), $ = new La(c, w), B = q(() => {
1681
1683
  i("removeLocalStorage: removing local storage"), u(), y(), k(), Z();
1682
1684
  }, [
1683
1685
  y,
@@ -1691,7 +1693,7 @@ const La = (e) => q(
1691
1693
  "removeStateAndLocalStorage: removing state and local storage with reason: ",
1692
1694
  g
1693
1695
  ), s({
1694
- type: Vt,
1696
+ type: Jt,
1695
1697
  payload: {
1696
1698
  logoutReason: g || ie
1697
1699
  }
@@ -1701,10 +1703,10 @@ const La = (e) => q(
1701
1703
  ), S = q(
1702
1704
  async (g) => {
1703
1705
  i("invalidateAndLogout: invalidating and logging out");
1704
- const { user: E } = o, b = (E == null ? void 0 : E.userId) || va(h);
1706
+ const { user: E } = o, b = (E == null ? void 0 : E.userId) || xa(h);
1705
1707
  b || i(
1706
1708
  "invalidateAndLogout: user cannot be identified, logging out without userId"
1707
- ), await xa({
1709
+ ), await Ca({
1708
1710
  userId: b,
1709
1711
  clientId: r,
1710
1712
  domain: a,
@@ -1742,13 +1744,13 @@ const La = (e) => q(
1742
1744
  s({ type: fe, payload: { isLoading: !0 } }), B();
1743
1745
  const b = Ye();
1744
1746
  L(b), i("login: Logging in with password");
1745
- const { code_verifier: ae, code_challenge: or } = await ba(), st = await Oa({
1747
+ const { code_verifier: ae, code_challenge: sr } = await Ea(), st = await Pa({
1746
1748
  nonce: b,
1747
1749
  clientId: r,
1748
- code_challenge: or
1750
+ code_challenge: sr
1749
1751
  });
1750
1752
  if (st.status) {
1751
- const ne = await Ca({
1753
+ const ne = await Oa({
1752
1754
  username: g,
1753
1755
  password: E,
1754
1756
  clientId: r,
@@ -1774,7 +1776,7 @@ const La = (e) => q(
1774
1776
  }
1775
1777
  return !1;
1776
1778
  }, K = async (g) => {
1777
- g == null || g.preventDefault(), await S(ka);
1779
+ g == null || g.preventDefault(), await S(Aa);
1778
1780
  }, I = async () => {
1779
1781
  const { isAuthenticated: g, user: E } = o;
1780
1782
  try {
@@ -1802,7 +1804,7 @@ const La = (e) => q(
1802
1804
  } catch {
1803
1805
  return i(
1804
1806
  "getAccessToken: exception occurred, invalidating and logging out"
1805
- ), await S(Aa), "";
1807
+ ), await S(Ra), "";
1806
1808
  }
1807
1809
  }, C = () => o.isAuthenticated && h ? h : "", O = async () => {
1808
1810
  const { user: g } = o;
@@ -1818,7 +1820,7 @@ const La = (e) => q(
1818
1820
  });
1819
1821
  if (E.status)
1820
1822
  try {
1821
- const b = await fr(E.data);
1823
+ const b = await gr(E.data);
1822
1824
  return E = await le({
1823
1825
  accessToken: c,
1824
1826
  clientId: r,
@@ -1860,7 +1862,7 @@ const La = (e) => q(
1860
1862
  });
1861
1863
  if (b.status)
1862
1864
  try {
1863
- const ae = await br(b.data);
1865
+ const ae = await Er(b.data);
1864
1866
  return b = await le({
1865
1867
  accessToken: c,
1866
1868
  clientId: r,
@@ -1902,8 +1904,8 @@ const La = (e) => q(
1902
1904
  }
1903
1905
  return !1;
1904
1906
  };
1905
- return /* @__PURE__ */ l($a.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1906
- zt.Provider,
1907
+ return /* @__PURE__ */ l(Ma.Provider, { value: { state: o, dispatch: s }, children: /* @__PURE__ */ l(
1908
+ qt.Provider,
1907
1909
  {
1908
1910
  value: {
1909
1911
  ...o,
@@ -1917,8 +1919,8 @@ const La = (e) => q(
1917
1919
  children: e
1918
1920
  }
1919
1921
  ) });
1920
- }, qt = (e = zt) => St(e), Eo = "user", wo = "assistant", To = "system", Io = "internal", So = "hidden", _o = "I'm having trouble right now. Please try again later.", ko = "OpenAI", Ao = "OpenAI", Ro = "Anthropic", No = "action-search", vo = "action-sort", xo = "action-toggle-prompt", Co = "action-reset-prompt", Oo = "sassy-saint-", Po = "details", Do = "search", Lo = "sort", $o = "private-disclosure", Mo = "==stats==", Ka = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Uo = 10, Ko = 30, Ho = "av-prompt", Wo = "av-prompt-editable", Bo = "size-5 sm:size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1921
- function Ha(e) {
1922
+ }, Xt = (e = qt) => _t(e), To = "user", Io = "assistant", So = "system", _o = "internal", ko = "hidden", Ao = "I'm having trouble right now. Please try again later.", Ro = "OpenAI", No = "OpenAI", vo = "Anthropic", xo = "action-search", Co = "action-sort", Oo = "action-toggle-prompt", Po = "action-reset-prompt", Do = "sassy-saint-", Lo = "details", $o = "search", Mo = "sort", Uo = "private-disclosure", Ko = "==stats==", Ha = "b44c68f0-e5b3-4a1d-a3e3-df8632b0223b", Ho = 10, Wo = 30, Bo = "av-prompt", Vo = "av-prompt-editable", Jo = "size-5 sm:size-4", bt = (e) => Number.isFinite(e) ? e : 0;
1923
+ function Wa(e) {
1922
1924
  return {
1923
1925
  days: Math.trunc(e / 864e5),
1924
1926
  hours: Math.trunc(e / 36e5 % 24),
@@ -1929,7 +1931,7 @@ function Ha(e) {
1929
1931
  nanoseconds: Math.trunc(bt(e * 1e6) % 1e3)
1930
1932
  };
1931
1933
  }
1932
- function Wa(e) {
1934
+ function Ba(e) {
1933
1935
  return {
1934
1936
  days: e / 86400000n,
1935
1937
  hours: e / 3600000n % 24n,
@@ -1940,20 +1942,20 @@ function Wa(e) {
1940
1942
  nanoseconds: 0n
1941
1943
  };
1942
1944
  }
1943
- function Ba(e) {
1945
+ function Va(e) {
1944
1946
  switch (typeof e) {
1945
1947
  case "number": {
1946
1948
  if (Number.isFinite(e))
1947
- return Ha(e);
1949
+ return Wa(e);
1948
1950
  break;
1949
1951
  }
1950
1952
  case "bigint":
1951
- return Wa(e);
1953
+ return Ba(e);
1952
1954
  }
1953
1955
  throw new TypeError("Expected a finite number or bigint");
1954
1956
  }
1955
- const Va = (e) => e === 0 || e === 0n, Ja = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ga = 1e-7, Ya = 24n * 60n * 60n * 1000n;
1956
- function Fa(e, t) {
1957
+ const Ja = (e) => e === 0 || e === 0n, Ga = (e, t) => t === 1 || t === 1n ? e : `${e}s`, Ya = 1e-7, Fa = 24n * 60n * 60n * 1000n;
1958
+ function ja(e, t) {
1957
1959
  const r = typeof e == "bigint";
1958
1960
  if (!r && !Number.isFinite(e))
1959
1961
  throw new TypeError("Expected a finite number or bigint");
@@ -1962,18 +1964,18 @@ function Fa(e, t) {
1962
1964
  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
1965
  let n = [];
1964
1966
  const o = (f, u) => {
1965
- const c = Math.floor(f * 10 ** u + Ga);
1967
+ const c = Math.floor(f * 10 ** u + Ya);
1966
1968
  return (Math.round(c) / 10 ** u).toFixed(u);
1967
1969
  }, s = (f, u, c, m) => {
1968
- if (!((n.length === 0 || !t.colonNotation) && Va(f) && !(t.colonNotation && c === "m"))) {
1970
+ if (!((n.length === 0 || !t.colonNotation) && Ja(f) && !(t.colonNotation && c === "m"))) {
1969
1971
  if (m ?? (m = String(f)), t.colonNotation) {
1970
1972
  const y = m.includes(".") ? m.split(".")[0].length : m.length, w = n.length > 0 ? 2 : 1;
1971
1973
  m = "0".repeat(Math.max(0, w - y)) + m;
1972
1974
  } else
1973
- m += t.verbose ? " " + Ja(u, f) : c;
1975
+ m += t.verbose ? " " + Ga(u, f) : c;
1974
1976
  n.push(m);
1975
1977
  }
1976
- }, i = Ba(e), d = BigInt(i.days);
1978
+ }, i = Va(e), d = BigInt(i.days);
1977
1979
  if (t.hideYearAndDays ? s(BigInt(d) * 24n + BigInt(i.hours), "hour", "h") : (t.hideYear ? s(d, "day", "d") : (s(d / 365n, "year", "y"), s(d % 365n, "day", "d")), s(Number(i.hours), "hour", "h")), s(Number(i.minutes), "minute", "m"), !t.hideSeconds)
1978
1980
  if (t.separateMilliseconds || t.formatSubMilliseconds || !t.colonNotation && e < 1e3) {
1979
1981
  const f = Number(i.seconds), u = Number(i.milliseconds), c = Number(i.microseconds), m = Number(i.nanoseconds);
@@ -1989,7 +1991,7 @@ function Fa(e, t) {
1989
1991
  );
1990
1992
  }
1991
1993
  } else {
1992
- const f = (r ? Number(e % Ya) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(f, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1994
+ const f = (r ? Number(e % Fa) : e) / 1e3 % 60, u = typeof t.secondsDecimalDigits == "number" ? t.secondsDecimalDigits : 1, c = o(f, u), m = t.keepDecimalsOnWholeSeconds ? c : c.replace(/\.0+$/, "");
1993
1995
  s(Number.parseFloat(m), "second", "s", m);
1994
1996
  }
1995
1997
  if (n.length === 0)
@@ -1997,7 +1999,7 @@ function Fa(e, t) {
1997
1999
  const h = t.colonNotation ? ":" : " ";
1998
2000
  return typeof t.unitCount == "number" && (n = n.slice(0, Math.max(t.unitCount, 1))), a + n.join(h);
1999
2001
  }
2000
- const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.local.com" : "gizmette.com", Vo = async () => {
2002
+ const za = process.env.NODE_ENV === "production", qa = !za, Xa = qa ? "gizmette.local.com" : "gizmette.com", Go = async () => {
2001
2003
  const e = {
2002
2004
  /**
2003
2005
  * A boolean value that indicates the application would
@@ -2046,32 +2048,35 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2046
2048
  e
2047
2049
  );
2048
2050
  });
2049
- }, Jo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
2051
+ }, Yo = (e, t) => t ? Object.keys(t).map((r) => /* @__PURE__ */ l("dl", { className: "my-0", children: /* @__PURE__ */ D("div", { className: "flex items-center justify-between", children: [
2050
2052
  /* @__PURE__ */ l("dt", { className: "my-1 inline-block font-bold text-copy-dark dark:text-copy-lighter", children: r }),
2051
2053
  /* @__PURE__ */ l("dd", { className: "my-1 inline-block", children: t[r] })
2052
- ] }) }, `${e}-${r}`)) : null, Go = new Intl.NumberFormat("en", {
2054
+ ] }) }, `${e}-${r}`)) : null, Fo = new Intl.NumberFormat("en", {
2053
2055
  style: "decimal",
2054
2056
  signDisplay: "never",
2055
2057
  minimumFractionDigits: 0,
2056
2058
  maximumFractionDigits: 0
2057
- }), Yo = (e) => e > 0 ? Fa(e, {
2059
+ }), jo = (e) => e > 0 ? ja(e, {
2058
2060
  secondsDecimalDigits: 2,
2059
2061
  unitCount: 2
2060
- }) : "N/A", Xa = ({
2062
+ }) : "N/A", Qa = ({
2061
2063
  isAuthenticated: e,
2062
2064
  extraClass: t
2063
2065
  }) => p(
2064
2066
  "flex-1 overflow-y-auto bg-slate-900 px-4 pb-10 text-base leading-6 text-slate-300 shadow-sm sm:text-base sm:leading-7",
2065
2067
  e ? "pt-0" : "pt-10",
2066
2068
  t
2067
- ), Qa = ({
2069
+ ), Za = ({
2068
2070
  extraClass: e
2069
- }) => p("px-2 sm:px-0", e), Fo = (e, t) => t === 1 ? e : `${e}s`, jo = (e, t) => {
2071
+ }) => p("px-2 sm:px-0", e), zo = (e, t) => t === 1 ? e : `${e}s`, qo = (e, t) => {
2070
2072
  let r;
2071
2073
  return (...a) => {
2072
2074
  window.clearTimeout(r), r = window.setTimeout(() => e(...a), t);
2073
2075
  };
2074
- }, Za = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), Et = "av-button", Ke = "icon", at = "button", Ze = "link", en = ({
2076
+ }, en = () => !!(window != null && window.__VERSINI_CALLISTO_ELECTRON__), tn = () => window.innerWidth < 403, Xo = () => {
2077
+ const e = ["iPhone Simulator", "iPhone"].includes(navigator.platform) || navigator.userAgent.includes("Mac") && "ontouchend" in document || window.indexedDB !== null, t = /iPhone/.test(navigator.userAgent), r = tn(), a = navigator.maxTouchPoints > 1;
2078
+ return e && t && r && a;
2079
+ }, Et = "av-button", Ke = "icon", at = "button", Ze = "link", rn = ({
2075
2080
  type: e,
2076
2081
  size: t,
2077
2082
  labelRight: r,
@@ -2107,7 +2112,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2107
2112
  "h-12": t === "large" && o && (r || a)
2108
2113
  });
2109
2114
  }
2110
- }, tn = ({
2115
+ }, an = ({
2111
2116
  type: e,
2112
2117
  size: t,
2113
2118
  labelRight: r,
@@ -2130,7 +2135,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2130
2135
  [s]: t === "large" && (r || a)
2131
2136
  });
2132
2137
  }
2133
- }, rn = ({
2138
+ }, nn = ({
2134
2139
  mode: e,
2135
2140
  noBackground: t,
2136
2141
  noTruncate: r,
@@ -2166,7 +2171,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2166
2171
  return p("not-prose text-copy-lighter", {
2167
2172
  truncate: !r
2168
2173
  });
2169
- }, an = ({
2174
+ }, on = ({
2170
2175
  mode: e,
2171
2176
  noBackground: t,
2172
2177
  variant: r
@@ -2196,13 +2201,13 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2196
2201
  if (r === "selected")
2197
2202
  return "bg-action-selected-dark";
2198
2203
  }
2199
- }, nn = ({
2204
+ }, sn = ({
2200
2205
  radius: e
2201
2206
  }) => p({
2202
2207
  "rounded-full": e === "large",
2203
2208
  "rounded-md": e === "medium",
2204
2209
  "rounded-sm": e === "small"
2205
- }), on = ({
2210
+ }), cn = ({
2206
2211
  mode: e,
2207
2212
  disabled: t,
2208
2213
  variant: r
@@ -2232,7 +2237,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2232
2237
  });
2233
2238
  if (r === "selected")
2234
2239
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
2235
- }, sn = ({
2240
+ }, ln = ({
2236
2241
  mode: e,
2237
2242
  disabled: t,
2238
2243
  variant: r
@@ -2262,7 +2267,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2262
2267
  });
2263
2268
  if (r === "selected")
2264
2269
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
2265
- }, cn = ({
2270
+ }, dn = ({
2266
2271
  mode: e,
2267
2272
  noBorder: t,
2268
2273
  variant: r
@@ -2292,14 +2297,14 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2292
2297
  });
2293
2298
  if (r === "selected")
2294
2299
  return "border border-border-selected-dark";
2295
- }, ln = ({
2300
+ }, un = ({
2296
2301
  focusMode: e
2297
2302
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
2298
2303
  "focus:outline-focus-dark": e === "dark",
2299
2304
  "focus:outline-focus-light": e === "light",
2300
2305
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
2301
2306
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
2302
- }), dn = ({
2307
+ }), mn = ({
2303
2308
  mode: e,
2304
2309
  raw: t,
2305
2310
  iconClassName: r
@@ -2311,11 +2316,11 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2311
2316
  "dark:text-copy-accent-dark": e === "system"
2312
2317
  },
2313
2318
  r
2314
- ), un = ({
2319
+ ), hn = ({
2315
2320
  animated: e
2316
2321
  }) => p({
2317
2322
  "transition-opacity duration-300 ease-in": e
2318
- }), Xt = ({
2323
+ }), Qt = ({
2319
2324
  type: e,
2320
2325
  className: t,
2321
2326
  raw: r,
@@ -2335,15 +2340,15 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2335
2340
  animated: T
2336
2341
  }) => (c || (c = "primary"), r ? p(Et, t) : p(
2337
2342
  Et,
2338
- rn({
2343
+ nn({
2339
2344
  mode: a,
2340
2345
  variant: c,
2341
2346
  noBackground: u,
2342
2347
  noTruncate: m
2343
2348
  }),
2344
- an({ mode: a, noBackground: u, variant: c }),
2345
- nn({ radius: w }),
2346
- en({
2349
+ on({ mode: a, noBackground: u, variant: c }),
2350
+ sn({ radius: w }),
2351
+ rn({
2347
2352
  type: e,
2348
2353
  size: i,
2349
2354
  labelRight: h,
@@ -2351,11 +2356,11 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2351
2356
  align: y,
2352
2357
  animated: T
2353
2358
  }),
2354
- tn({ type: e, size: i, labelRight: h, labelLeft: f }),
2355
- cn({ mode: a, variant: c, noBorder: d }),
2356
- ln({ focusMode: n }),
2357
- on({ mode: a, variant: c, disabled: o }),
2358
- sn({ mode: a, variant: c, disabled: o }),
2359
+ an({ type: e, size: i, labelRight: h, labelLeft: f }),
2360
+ dn({ mode: a, variant: c, noBorder: d }),
2361
+ un({ focusMode: n }),
2362
+ cn({ mode: a, variant: c, disabled: o }),
2363
+ ln({ mode: a, variant: c, disabled: o }),
2359
2364
  {
2360
2365
  "w-full": s,
2361
2366
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -2364,7 +2369,7 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2364
2369
  "transition-[width] duration-300 ease-in-out": e === Ke && T
2365
2370
  }),
2366
2371
  t
2367
- )), mn = (e, t, r) => {
2372
+ )), pn = (e, t, r) => {
2368
2373
  var a;
2369
2374
  !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);
2370
2375
  }, nt = X.forwardRef((e, t) => {
@@ -2374,14 +2379,14 @@ const ja = process.env.NODE_ENV === "production", za = !ja, qa = za ? "gizmette.
2374
2379
  {
2375
2380
  ref: t,
2376
2381
  onClick: (o) => {
2377
- mn(o, a, r);
2382
+ pn(o, a, r);
2378
2383
  },
2379
2384
  ...n
2380
2385
  }
2381
2386
  );
2382
2387
  });
2383
2388
  nt.displayName = "BaseButton";
2384
- const Qt = X.forwardRef(
2389
+ const Zt = X.forwardRef(
2385
2390
  ({
2386
2391
  children: e,
2387
2392
  disabled: t = !1,
@@ -2397,7 +2402,7 @@ const Qt = X.forwardRef(
2397
2402
  radius: u = "large",
2398
2403
  ...c
2399
2404
  }, m) => {
2400
- const y = Xt({
2405
+ const y = Qt({
2401
2406
  type: at,
2402
2407
  mode: r,
2403
2408
  focusMode: a,
@@ -2423,14 +2428,14 @@ const Qt = X.forwardRef(
2423
2428
  );
2424
2429
  }
2425
2430
  );
2426
- Qt.displayName = "Button";
2427
- function hn() {
2431
+ Zt.displayName = "Button";
2432
+ function fn() {
2428
2433
  const e = x(!1);
2429
2434
  return Y(() => (e.current = !0, () => {
2430
2435
  e.current = !1;
2431
2436
  }), []), q(() => e.current, []);
2432
2437
  }
2433
- function pn(e) {
2438
+ function gn(e) {
2434
2439
  return Le(() => e.every((t) => t == null) ? () => {
2435
2440
  } : (t) => {
2436
2441
  e.forEach((r) => {
@@ -2438,7 +2443,7 @@ function pn(e) {
2438
2443
  });
2439
2444
  }, e);
2440
2445
  }
2441
- const fn = {
2446
+ const yn = {
2442
2447
  x: 0,
2443
2448
  y: 0,
2444
2449
  width: 0,
@@ -2449,7 +2454,7 @@ const fn = {
2449
2454
  right: 0
2450
2455
  };
2451
2456
  function je(e) {
2452
- const t = hn(), r = x(0), a = x(null), [n, o] = z(fn), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
2457
+ const t = fn(), r = x(0), a = x(null), [n, o] = z(yn), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
2453
2458
  const d = i[0];
2454
2459
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
2455
2460
  a.current && t() && o(d.contentRect);
@@ -2459,21 +2464,21 @@ function je(e) {
2459
2464
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
2460
2465
  }), [s, e]), [a, n];
2461
2466
  }
2462
- const gn = {
2467
+ const bn = {
2463
2468
  small: 24,
2464
2469
  // w-6
2465
2470
  medium: 32,
2466
2471
  // w-8
2467
2472
  large: 48
2468
2473
  // w-12
2469
- }, yn = {
2474
+ }, En = {
2470
2475
  small: 8 * 2,
2471
2476
  // px-2 x 2
2472
2477
  medium: 12 * 2,
2473
2478
  // px-3 x 2
2474
2479
  large: 16 * 2
2475
2480
  // px-4 x 2
2476
- }, bn = 2, Pe = X.forwardRef(
2481
+ }, wn = 2, Pe = X.forwardRef(
2477
2482
  ({
2478
2483
  children: e,
2479
2484
  disabled: t = !1,
@@ -2497,7 +2502,7 @@ const gn = {
2497
2502
  animated: L = !1,
2498
2503
  ...Z
2499
2504
  }, $) => {
2500
- const B = Xt({
2505
+ const B = Qt({
2501
2506
  type: Ke,
2502
2507
  mode: r,
2503
2508
  focusMode: a,
@@ -2514,11 +2519,11 @@ const gn = {
2514
2519
  radius: T,
2515
2520
  variant: k,
2516
2521
  animated: L
2517
- }), U = dn({ mode: r, raw: i, iconClassName: Q }), S = un({ animated: L }), [M, K] = je(), [I, C] = je(), [O, V] = je(), g = x(0), E = x(null), b = pn([$, E]);
2522
+ }), U = mn({ mode: r, raw: i, iconClassName: Q }), S = hn({ animated: L }), [M, K] = je(), [I, C] = je(), [O, V] = je(), g = x(0), E = x(null), b = gn([$, E]);
2518
2523
  return Ne(() => {
2519
- O && O.current && L && (g.current = V.width + yn[u] + (d ? 0 : bn));
2524
+ O && O.current && L && (g.current = V.width + En[u] + (d ? 0 : wn));
2520
2525
  }, [V, O, u, d, L]), Ne(() => {
2521
- E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${gn[u]}px`));
2526
+ E && E.current && L && (c && M && K.width > 0 ? (M.current && (M.current.style.opacity = "100"), E.current.style.width = `${K.width + g.current}px`) : m && C.width > 0 ? (I.current && (I.current.style.opacity = "100"), E.current.style.width = `${C.width + g.current}px`) : (M.current && (M.current.style.opacity = "0"), I.current && (I.current.style.opacity = "0"), E.current.style.width = `${bn[u]}px`));
2522
2527
  }, [
2523
2528
  K,
2524
2529
  c,
@@ -2581,7 +2586,7 @@ try {
2581
2586
  });
2582
2587
  } catch {
2583
2588
  }
2584
- const En = X.forwardRef(
2589
+ const Tn = X.forwardRef(
2585
2590
  ({
2586
2591
  children: e,
2587
2592
  mode: t = "system",
@@ -2619,7 +2624,7 @@ const En = X.forwardRef(
2619
2624
  ) });
2620
2625
  }
2621
2626
  );
2622
- En.displayName = "ButtonSort";
2627
+ Tn.displayName = "ButtonSort";
2623
2628
  /*!
2624
2629
  @versini/ui-card v3.0.13
2625
2630
  © 2025 gizmette.com
@@ -2634,11 +2639,11 @@ try {
2634
2639
  } catch {
2635
2640
  }
2636
2641
  const Ae = "av-card";
2637
- function wn(e) {
2638
- const t = _t();
2642
+ function In(e) {
2643
+ const t = kt();
2639
2644
  return `${e}${t}`;
2640
2645
  }
2641
- const Tn = ({
2646
+ const Sn = ({
2642
2647
  className: e,
2643
2648
  headerClassName: t,
2644
2649
  bodyClassName: r,
@@ -2678,7 +2683,7 @@ const Tn = ({
2678
2683
  footer: f
2679
2684
  };
2680
2685
  };
2681
- function In({
2686
+ function _n({
2682
2687
  id: e,
2683
2688
  content: t,
2684
2689
  userAriaLabelledby: r,
@@ -2686,7 +2691,7 @@ function In({
2686
2691
  }) {
2687
2692
  return typeof t == "string" ? /* @__PURE__ */ l("h2", { id: e, className: a, children: t }) : r ? /* @__PURE__ */ l("div", { className: a, children: t }) : t ? /* @__PURE__ */ l("div", { className: a, id: e, children: t }) : null;
2688
2693
  }
2689
- const Sn = ({
2694
+ const kn = ({
2690
2695
  header: e,
2691
2696
  headerClassName: t,
2692
2697
  footer: r,
@@ -2701,7 +2706,7 @@ const Sn = ({
2701
2706
  ...u
2702
2707
  }) => {
2703
2708
  let c = null, m = null;
2704
- const y = typeof e == "string", w = wn(Ae), T = Tn({
2709
+ const y = typeof e == "string", w = In(Ae), T = Sn({
2705
2710
  className: o,
2706
2711
  headerClassName: t,
2707
2712
  bodyClassName: s,
@@ -2720,7 +2725,7 @@ const Sn = ({
2720
2725
  ...u,
2721
2726
  children: [
2722
2727
  /* @__PURE__ */ l(
2723
- In,
2728
+ _n,
2724
2729
  {
2725
2730
  ...c && { id: c },
2726
2731
  content: e,
@@ -2776,7 +2781,7 @@ try {
2776
2781
  });
2777
2782
  } catch {
2778
2783
  }
2779
- const _n = ({
2784
+ const An = ({
2780
2785
  className: e,
2781
2786
  viewBox: t,
2782
2787
  title: r,
@@ -2793,7 +2798,7 @@ const _n = ({
2793
2798
  ...n,
2794
2799
  children: /* @__PURE__ */ l("path", { d: "M927.943 30.81c0-2.381-1.191-5.954-3.573-7.145-7.146-4.763-19.055-1.19-26.2 0-17.864 2.382-34.537 4.764-53.592 4.764-26.2 0-53.591-1.19-79.791-4.764-23.819-3.572-44.064-10.718-69.074-3.572-35.727 9.527-58.355 38.109-57.164 75.028 1.191 21.436-2.382 38.109-9.527 57.164-7.146 17.864-15.482 20.245-32.155 20.245-115.52 0-229.848-1.19-345.367 0h-63.119c-29.773 0-59.546 5.955-89.319 0-21.436-4.763-42.873-15.482-58.355-30.964-3.573-3.572-10.718-14.29-14.29-14.29-4.765 1.19-4.765 15.481-4.765 19.054 0 15.482 5.955 30.964 5.955 46.446s-7.145 28.582-11.91 42.873c-4.763 16.673-4.763 33.346-2.381 50.019 4.764 27.39 9.527 55.973 11.91 84.555 2.381 25.01 2.381 48.828 4.763 73.837 2.382 20.246 3.573 29.773 29.773 33.346 30.964 4.764 30.964-5.955 38.11-26.2 9.527-25.01 17.863-51.21 27.39-76.22 8.337-19.054 15.482-60.736 67.883-40.49 28.582 10.718 58.355 16.672 88.128 25.009 32.155 8.336 65.5 16.673 97.655 22.627 65.501 13.1 132.193 20.246 200.075 23.819 7.146 0 11.91 0 16.673 5.954 17.864 22.628-3.573 63.119 41.682 70.265 40.491 5.954 40.491-22.628 45.255-47.637 2.382-14.291 4.764-27.391 8.337-40.492 1.19-5.954 5.954-11.909 10.718-15.481 55.973-33.346 88.128-98.847 78.6-164.347-1.19-10.719-4.763-21.437-3.572-33.346 2.382-23.819 32.155-33.346 50.018-42.873 22.628-13.1 47.637-25.01 66.692-42.873 13.1-11.91 23.818-27.392 29.773-44.064 3.573-5.955 5.955-14.292 4.764-20.246M737.395 190.395c-2.381 25.01-13.1 36.919-35.727 41.682-40.491 8.337-66.692-19.054-54.783-58.355 8.337-26.2 17.864-51.21 29.773-75.028 11.91-23.818 22.628-23.818 36.919-1.19 17.864 28.581 27.391 59.545 23.818 92.891m38.11-109.564c-7.146 0-13.1-5.955-13.1-13.1 0-7.146 5.954-13.1 13.1-13.1 7.145 0 13.1 5.954 13.1 13.1 0 7.145-5.955 13.1-13.1 13.1" })
2795
2800
  }
2796
- ), kn = ({
2801
+ ), Rn = ({
2797
2802
  className: e,
2798
2803
  viewBox: t,
2799
2804
  title: r,
@@ -2819,7 +2824,7 @@ const _n = ({
2819
2824
  /* @__PURE__ */ l("path", { d: "M5.1 9.2C13.3-1.2 28.4-3.1 38.8 5.1l592 464c10.4 8.2 12.3 23.3 4.1 33.7s-23.3 12.3-33.7 4.1l-592-464C-1.2 34.7-3.1 19.6 5.1 9.2" })
2820
2825
  ]
2821
2826
  }
2822
- ), An = ({
2827
+ ), Nn = ({
2823
2828
  className: e,
2824
2829
  viewBox: t,
2825
2830
  title: r,
@@ -2855,7 +2860,7 @@ const _n = ({
2855
2860
  ]
2856
2861
  }
2857
2862
  );
2858
- }, Rn = ({
2863
+ }, vn = ({
2859
2864
  className: e,
2860
2865
  viewBox: t,
2861
2866
  title: r,
@@ -2908,7 +2913,7 @@ try {
2908
2913
  });
2909
2914
  } catch {
2910
2915
  }
2911
- const Nn = "av-main", vn = ({
2916
+ const xn = "av-main", Cn = ({
2912
2917
  children: e,
2913
2918
  className: t,
2914
2919
  raw: r = !1,
@@ -2916,7 +2921,7 @@ const Nn = "av-main", vn = ({
2916
2921
  noPadding: n = !1
2917
2922
  }) => {
2918
2923
  const o = p(
2919
- Nn,
2924
+ xn,
2920
2925
  {
2921
2926
  "mt-2 sm:mt-3": !r && !a,
2922
2927
  "p-2": !r && !n,
@@ -2925,10 +2930,10 @@ const Nn = "av-main", vn = ({
2925
2930
  t
2926
2931
  );
2927
2932
  return /* @__PURE__ */ l("main", { className: o, children: e });
2928
- }, xn = "av-flexgrid", _e = "av-flexgrid-item", De = 0.25, et = X.createContext({
2933
+ }, On = "av-flexgrid", _e = "av-flexgrid-item", De = 0.25, et = X.createContext({
2929
2934
  columnGap: 0,
2930
2935
  rowGap: 0
2931
- }), Cn = ({
2936
+ }), Pn = ({
2932
2937
  children: e,
2933
2938
  className: t,
2934
2939
  columnGap: r = 1,
@@ -2954,7 +2959,7 @@ const Nn = "av-main", vn = ({
2954
2959
  marginLeft: r * -1 * De + "rem",
2955
2960
  marginTop: a * -1 * De + "rem"
2956
2961
  }, u = p(
2957
- xn,
2962
+ On,
2958
2963
  "box-border flex flex-wrap"
2959
2964
  ), c = { columnGap: r, rowGap: a };
2960
2965
  return t ? /* @__PURE__ */ l("div", { className: t, children: /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) }) }) : /* @__PURE__ */ l("div", { className: u, style: f, ...h, children: /* @__PURE__ */ l(et.Provider, { value: c, children: e }) });
@@ -3031,7 +3036,7 @@ const Nn = "av-main", vn = ({
3031
3036
  "lg:basis-full": e === 12 && t === "lg",
3032
3037
  "xl:basis-full": e === 12 && t === "xl",
3033
3038
  "2xl:basis-full": e === 12 && t === "2xl"
3034
- }), On = ({
3039
+ }), Dn = ({
3035
3040
  className: e,
3036
3041
  span: t
3037
3042
  }) => {
@@ -3060,10 +3065,10 @@ const Nn = "av-main", vn = ({
3060
3065
  span: r,
3061
3066
  ...a
3062
3067
  }) => {
3063
- const { columnGap: n, rowGap: o } = St(et), s = {
3068
+ const { columnGap: n, rowGap: o } = _t(et), s = {
3064
3069
  paddingLeft: n * De + "rem",
3065
3070
  paddingTop: o * De + "rem"
3066
- }, i = On({
3071
+ }, i = Dn({
3067
3072
  className: t,
3068
3073
  span: r
3069
3074
  });
@@ -3082,14 +3087,14 @@ try {
3082
3087
  });
3083
3088
  } catch {
3084
3089
  }
3085
- const Zt = "av-text-input", Pn = "av-text-input-wrapper", qe = "av-text-input-helper-text";
3086
- function Dn() {
3090
+ const er = "av-text-input", Ln = "av-text-input-wrapper", qe = "av-text-input-helper-text";
3091
+ function $n() {
3087
3092
  const e = x(!1);
3088
3093
  return Y(() => (e.current = !0, () => {
3089
3094
  e.current = !1;
3090
3095
  }), []), q(() => e.current, []);
3091
3096
  }
3092
- const Ln = {
3097
+ const Mn = {
3093
3098
  x: 0,
3094
3099
  y: 0,
3095
3100
  width: 0,
@@ -3099,8 +3104,8 @@ const Ln = {
3099
3104
  bottom: 0,
3100
3105
  right: 0
3101
3106
  };
3102
- function $n(e) {
3103
- const t = Dn(), r = x(0), a = x(null), [n, o] = z(Ln), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3107
+ function Un(e) {
3108
+ const t = $n(), r = x(0), a = x(null), [n, o] = z(Mn), s = Le(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((i) => {
3104
3109
  const d = i[0];
3105
3110
  d && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
3106
3111
  a.current && t() && o(d.contentRect);
@@ -3110,8 +3115,8 @@ function $n(e) {
3110
3115
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
3111
3116
  }), [s, e]), [a, n];
3112
3117
  }
3113
- function Mn(e) {
3114
- const t = _t();
3118
+ function Kn(e) {
3119
+ const t = kt();
3115
3120
  if (!e)
3116
3121
  return t;
3117
3122
  if (typeof e == "number" || typeof e == "string")
@@ -3121,7 +3126,7 @@ function Mn(e) {
3121
3126
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
3122
3127
  }
3123
3128
  }
3124
- const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
3129
+ const tr = "SET_ANNOUNCEMENT", rr = "CLEAR_ANNOUNCEMENT", Hn = {
3125
3130
  alert: null,
3126
3131
  alertdialog: null,
3127
3132
  log: "polite",
@@ -3129,14 +3134,14 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
3129
3134
  progressbar: null,
3130
3135
  status: "polite",
3131
3136
  timer: "assertive"
3132
- }, Kn = (e, t) => {
3137
+ }, Wn = (e, t) => {
3133
3138
  switch (t == null ? void 0 : t.type) {
3134
- case er:
3139
+ case tr:
3135
3140
  return {
3136
3141
  ...e,
3137
3142
  announcement: t.payload
3138
3143
  };
3139
- case tr:
3144
+ case rr:
3140
3145
  return {
3141
3146
  ...e,
3142
3147
  announcement: null
@@ -3144,12 +3149,12 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
3144
3149
  default:
3145
3150
  return e;
3146
3151
  }
3147
- }, Hn = ({
3152
+ }, Bn = ({
3148
3153
  onAnnouncementClear: e,
3149
3154
  dispatch: t
3150
3155
  }) => {
3151
3156
  t({
3152
- type: tr
3157
+ type: rr
3153
3158
  }), typeof e == "function" && e();
3154
3159
  }, Tt = ({
3155
3160
  children: e,
@@ -3159,16 +3164,16 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
3159
3164
  dispatch: n
3160
3165
  }) => {
3161
3166
  clearTimeout(r.current), e !== null && n({
3162
- type: er,
3167
+ type: tr,
3163
3168
  payload: e
3164
3169
  }), t && (r.current = setTimeout(
3165
- () => Hn({
3170
+ () => Bn({
3166
3171
  onAnnouncementClear: a,
3167
3172
  dispatch: n
3168
3173
  }),
3169
3174
  t
3170
3175
  ));
3171
- }, Wn = ({
3176
+ }, Vn = ({
3172
3177
  children: e,
3173
3178
  announcementTimeoutRef: t,
3174
3179
  announcementDelay: r,
@@ -3191,7 +3196,7 @@ const er = "SET_ANNOUNCEMENT", tr = "CLEAR_ANNOUNCEMENT", Un = {
3191
3196
  dispatch: s
3192
3197
  });
3193
3198
  };
3194
- function rr({
3199
+ function ar({
3195
3200
  children: e,
3196
3201
  className: t,
3197
3202
  politeness: r,
@@ -3202,12 +3207,12 @@ function rr({
3202
3207
  visible: i,
3203
3208
  ...d
3204
3209
  }) {
3205
- const h = x(null), f = x(null), [u, c] = It(Kn, {
3210
+ const h = x(null), f = x(null), [u, c] = St(Wn, {
3206
3211
  announcement: null
3207
3212
  });
3208
3213
  let m = r;
3209
- typeof m > "u" && (m = a ? Un[a] : "assertive"), Y(() => {
3210
- Wn({
3214
+ typeof m > "u" && (m = a ? Hn[a] : "assertive"), Y(() => {
3215
+ Vn({
3211
3216
  announcementTimeoutRef: h,
3212
3217
  announcementDelay: n,
3213
3218
  children: e,
@@ -3249,21 +3254,21 @@ try {
3249
3254
  });
3250
3255
  } catch {
3251
3256
  }
3252
- const Bn = ({
3257
+ const Jn = ({
3253
3258
  mode: e
3254
3259
  }) => p({
3255
3260
  "bg-surface-darker text-copy-lighter caret-copy-light": e === "dark",
3256
3261
  "bg-surface-lighter text-copy-dark caret-copy-dark": e === "light",
3257
3262
  "bg-surface-lighter text-copy-dark caret-copy-dark dark:bg-surface-darker dark:text-copy-lighter dark:caret-copy-light": e === "system",
3258
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"
3259
- }), Vn = ({
3264
+ }), Gn = ({
3260
3265
  focusMode: e
3261
3266
  }) => p("focus:outline focus:outline-2 focus:outline-offset-2", {
3262
3267
  "focus:outline-focus-dark": e === "dark",
3263
3268
  "focus:outline-focus-light": e === "light",
3264
3269
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
3265
3270
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
3266
- }), Jn = ({
3271
+ }), Yn = ({
3267
3272
  noBorder: e,
3268
3273
  error: t
3269
3274
  }) => p("border-2", {
@@ -3271,7 +3276,7 @@ const Bn = ({
3271
3276
  "focus:border-border-dark": !e && t,
3272
3277
  "border-border-error-dark": !e && t,
3273
3278
  "border-transparent": e
3274
- }), Gn = ({
3279
+ }), Fn = ({
3275
3280
  disabled: e,
3276
3281
  raw: t,
3277
3282
  error: r,
@@ -3295,7 +3300,7 @@ const Bn = ({
3295
3300
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": a === "system",
3296
3301
  "text-copy-lighter dark:text-copy-error-dark": a === "alt-system"
3297
3302
  });
3298
- }, Yn = ({
3303
+ }, jn = ({
3299
3304
  error: e,
3300
3305
  raw: t,
3301
3306
  mode: r,
@@ -3322,7 +3327,7 @@ const Bn = ({
3322
3327
  "text-copy-error-dark dark:text-copy-error-light dark:bg-surface-darker": r === "system",
3323
3328
  "dark:text-copy-error-dark text-copy-error-light bg-surface-darker": r === "alt-system"
3324
3329
  });
3325
- }, Fn = ({
3330
+ }, zn = ({
3326
3331
  className: e,
3327
3332
  inputClassName: t,
3328
3333
  raw: r,
@@ -3336,7 +3341,7 @@ const Bn = ({
3336
3341
  }) => {
3337
3342
  const f = r ? e : p(
3338
3343
  "relative flex w-full flex-col justify-center",
3339
- Pn,
3344
+ Ln,
3340
3345
  e
3341
3346
  );
3342
3347
  let u = "";
@@ -3358,22 +3363,22 @@ const Bn = ({
3358
3363
  break;
3359
3364
  }
3360
3365
  const c = r ? p(t) : p(
3361
- Zt,
3366
+ er,
3362
3367
  u,
3363
3368
  "rounded-md text-base px-4",
3364
- Bn({ mode: s }),
3365
- Vn({ focusMode: i }),
3366
- Jn({ noBorder: n, error: o }),
3369
+ Jn({ mode: s }),
3370
+ Gn({ focusMode: i }),
3371
+ Yn({ noBorder: n, error: o }),
3367
3372
  {
3368
3373
  "disabled:cursor-not-allowed disabled:opacity-50": a
3369
3374
  },
3370
3375
  t
3371
- ), m = r ? void 0 : "sr-only", y = Gn({
3376
+ ), m = r ? void 0 : "sr-only", y = Fn({
3372
3377
  disabled: a,
3373
3378
  raw: r,
3374
3379
  error: o,
3375
3380
  mode: s
3376
- }), w = Yn({
3381
+ }), w = jn({
3377
3382
  error: o,
3378
3383
  raw: r,
3379
3384
  mode: s,
@@ -3409,13 +3414,13 @@ const Bn = ({
3409
3414
  size: k = "md",
3410
3415
  ...Q
3411
3416
  }, L) => {
3412
- const [Z, $] = $n(), [B, U] = z(0), S = Mn({ id: e, prefix: `${Zt}-` }), M = `${t} error, ${y}`, K = x(null), I = x(null), C = {
3417
+ const [Z, $] = Un(), [B, U] = z(0), S = Kn({ id: e, prefix: `${er}-` }), M = `${t} error, ${y}`, K = x(null), I = x(null), C = {
3413
3418
  xs: { label: "-25px", helperText: "30px" },
3414
3419
  sm: { label: "-29px", helperText: "34px" },
3415
3420
  md: { label: "-33px", helperText: "38px" },
3416
3421
  lg: { label: "-15px", helperText: "22px" },
3417
3422
  xl: { label: "-19px", helperText: "25px" }
3418
- }, O = Fn({
3423
+ }, O = zn({
3419
3424
  className: o,
3420
3425
  inputClassName: s,
3421
3426
  error: a,
@@ -3489,12 +3494,12 @@ const Bn = ({
3489
3494
  children: w
3490
3495
  }
3491
3496
  ),
3492
- a && y && /* @__PURE__ */ l(rr, { politeness: "polite", clearAnnouncementDelay: 500, children: M })
3497
+ a && y && /* @__PURE__ */ l(ar, { politeness: "polite", clearAnnouncementDelay: 500, children: M })
3493
3498
  ] });
3494
3499
  }
3495
3500
  );
3496
3501
  ot.displayName = "TextInput";
3497
- function jn(e) {
3502
+ function qn(e) {
3498
3503
  return Le(() => e.every((t) => t == null) ? () => {
3499
3504
  } : (t) => {
3500
3505
  e.forEach((r) => {
@@ -3502,7 +3507,7 @@ function jn(e) {
3502
3507
  });
3503
3508
  }, e);
3504
3509
  }
3505
- const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
3510
+ const Xn = 500, Qn = 5e3, Zn = 2e4, nr = X.forwardRef(
3506
3511
  ({
3507
3512
  name: e,
3508
3513
  disabled: t,
@@ -3519,19 +3524,19 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
3519
3524
  const [c, m] = z(!0), [y, w] = z({
3520
3525
  message: null,
3521
3526
  politeness: null
3522
- }), T = x(!0), k = x(null), Q = x(null), L = jn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
3527
+ }), T = x(!0), k = x(null), Q = x(null), L = qn([u, Q]), Z = c ? "Show" : "Hide", $ = () => {
3523
3528
  k.current && clearTimeout(k.current), T.current || (k.current = setTimeout(() => {
3524
3529
  T.current = !0, m(!0), w({
3525
- announcementTimeout: qn,
3530
+ announcementTimeout: Qn,
3526
3531
  politeness: "polite",
3527
3532
  message: `${r} hiding characters`
3528
3533
  }), n && n(!0);
3529
- }, Xn));
3534
+ }, Zn));
3530
3535
  }, B = (I) => {
3531
3536
  I.preventDefault();
3532
3537
  const C = !T.current;
3533
3538
  T.current = C, $(), m(C), w({
3534
- announcementTimeout: zn,
3539
+ announcementTimeout: Xn,
3535
3540
  politeness: "assertive",
3536
3541
  message: C ? "Characters hidden" : "Characters showing"
3537
3542
  }), n && n(C);
@@ -3572,7 +3577,7 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
3572
3577
  }
3573
3578
  ),
3574
3579
  /* @__PURE__ */ l(
3575
- rr,
3580
+ ar,
3576
3581
  {
3577
3582
  role: "status",
3578
3583
  politeness: y.politeness,
@@ -3583,7 +3588,7 @@ const zn = 500, qn = 5e3, Xn = 2e4, ar = X.forwardRef(
3583
3588
  ] });
3584
3589
  }
3585
3590
  );
3586
- ar.displayName = "TextInputMask";
3591
+ nr.displayName = "TextInputMask";
3587
3592
  /*!
3588
3593
  @versini/ui-textinput v3.0.13
3589
3594
  © 2025 gizmette.com
@@ -3597,7 +3602,7 @@ try {
3597
3602
  });
3598
3603
  } catch {
3599
3604
  }
3600
- const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in with a Passkey", zo = "Log out", to = "Password", qo = "Profile", Xo = "Settings", Qo = "Chat history", Zo = "About", es = "Type your question here", ts = "{{clipboard}}", rs = `Sometimes, ${nr} hallucinates. Review important details.`, as = "Prompts 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.", ns = {
3605
+ const eo = "ASK! ME! ANYTHING!", or = "Callisto", to = "Log in", ro = "Sign in with a Passkey", Qo = "Log out", ao = "Password", Zo = "Profile", es = "Settings", ts = "Chat history", rs = "About", as = "Type your question here", ns = "{{clipboard}}", os = `Sometimes, ${or} hallucinates. Review important details.`, ss = "Prompts 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.", is = {
3601
3606
  PREFERENCES: {
3602
3607
  TITLE: "User profile",
3603
3608
  NAME: "Name",
@@ -3637,14 +3642,14 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3637
3642
  TITLE: "Chat Details",
3638
3643
  INSTRUCTION: "This option adds individual statistics for each messages under their respective bubbles, such as processing time, model name, and more."
3639
3644
  }
3640
- }, ro = () => /* @__PURE__ */ D("div", { className: "flex items-center justify-center", children: [
3641
- /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(_n, {}) }),
3645
+ }, no = () => /* @__PURE__ */ D("div", { className: "flex items-center justify-center", children: [
3646
+ /* @__PURE__ */ l("div", { className: "basis-1/4", children: /* @__PURE__ */ l(An, {}) }),
3642
3647
  /* @__PURE__ */ D("div", { className: "prose prose-sm prose-light md:prose-base prose-h1:mb-0 prose-h2:mt-0", children: [
3643
- /* @__PURE__ */ l("h1", { children: nr }),
3644
- /* @__PURE__ */ l("h2", { children: Qn })
3648
+ /* @__PURE__ */ l("h1", { children: or }),
3649
+ /* @__PURE__ */ l("h2", { children: eo })
3645
3650
  ] })
3646
- ] }), ao = () => {
3647
- const { login: e, logoutReason: t, loginWithPasskey: r } = qt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
3651
+ ] }), oo = () => {
3652
+ const { login: e, logoutReason: t, loginWithPasskey: r } = Xt(), [a, n] = z(""), [o, s] = z(""), [i, d] = z(!0), [h, f] = z({
3648
3653
  username: "",
3649
3654
  password: ""
3650
3655
  }), u = async (c) => {
@@ -3659,9 +3664,9 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3659
3664
  }), Y(() => {
3660
3665
  t && s(t);
3661
3666
  }, [t]), /* @__PURE__ */ l(Re, { children: /* @__PURE__ */ D(
3662
- vn,
3667
+ Cn,
3663
3668
  {
3664
- className: Qa({
3669
+ className: Za({
3665
3670
  extraClass: "mt-5"
3666
3671
  }),
3667
3672
  noMargin: !0,
@@ -3670,13 +3675,13 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3670
3675
  /* @__PURE__ */ l(
3671
3676
  "div",
3672
3677
  {
3673
- className: Xa({
3678
+ className: Qa({
3674
3679
  extraClass: "rounded-md"
3675
3680
  }),
3676
- children: /* @__PURE__ */ l(ro, {})
3681
+ children: /* @__PURE__ */ l(no, {})
3677
3682
  }
3678
3683
  ),
3679
- /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(Cn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ D(Sn, { mode: "dark", children: [
3684
+ /* @__PURE__ */ l("form", { className: "mt-5", onSubmit: u, children: /* @__PURE__ */ l(Pn, { alignHorizontal: "center", children: /* @__PURE__ */ l(re, { span: 6, children: /* @__PURE__ */ D(kn, { mode: "dark", children: [
3680
3685
  /* @__PURE__ */ l(re, { span: 12, className: "mt-7", children: o && /* @__PURE__ */ l("div", { className: "p-2 text-sm text-center text-copy-error-light bg-surface-darker", children: o }) }),
3681
3686
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3682
3687
  ot,
@@ -3700,7 +3705,7 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3700
3705
  }
3701
3706
  ) }),
3702
3707
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3703
- ar,
3708
+ nr,
3704
3709
  {
3705
3710
  className: "mt-7",
3706
3711
  required: !0,
@@ -3710,14 +3715,14 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3710
3715
  mode: "dark",
3711
3716
  focusMode: "light",
3712
3717
  name: "password",
3713
- label: to,
3718
+ label: ao,
3714
3719
  rightElement: /* @__PURE__ */ l(
3715
3720
  Pe,
3716
3721
  {
3717
3722
  focusMode: "light",
3718
3723
  mode: "dark",
3719
3724
  label: i ? "Show" : "Hide",
3720
- children: i ? /* @__PURE__ */ l(Rn, {}) : /* @__PURE__ */ l(kn, {})
3725
+ children: i ? /* @__PURE__ */ l(vn, {}) : /* @__PURE__ */ l(Rn, {})
3721
3726
  }
3722
3727
  ),
3723
3728
  onMaskChange: d,
@@ -3732,7 +3737,7 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3732
3737
  }
3733
3738
  ) }),
3734
3739
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3735
- Qt,
3740
+ Zt,
3736
3741
  {
3737
3742
  mode: "light",
3738
3743
  focusMode: "light",
@@ -3740,10 +3745,10 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3740
3745
  noBorder: !0,
3741
3746
  type: "submit",
3742
3747
  className: "mt-7",
3743
- children: Zn
3748
+ children: to
3744
3749
  }
3745
3750
  ) }),
3746
- !Za() && /* @__PURE__ */ D(Re, { children: [
3751
+ !en() && /* @__PURE__ */ D(Re, { children: [
3747
3752
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l("div", { className: "text-center text-copy-light mt-2 mb-2", children: "or" }) }),
3748
3753
  /* @__PURE__ */ l(re, { span: 12, children: /* @__PURE__ */ l(
3749
3754
  Pe,
@@ -3753,9 +3758,9 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3753
3758
  focusMode: "light",
3754
3759
  fullWidth: !0,
3755
3760
  className: "mb-4",
3756
- labelRight: eo,
3761
+ labelRight: ro,
3757
3762
  onClick: r,
3758
- children: /* @__PURE__ */ l(An, { size: "size-7" })
3763
+ children: /* @__PURE__ */ l(Nn, { size: "size-7" })
3759
3764
  }
3760
3765
  ) })
3761
3766
  ] })
@@ -3763,72 +3768,74 @@ const Qn = "ASK! ME! ANYTHING!", nr = "Callisto", Zn = "Log in", eo = "Sign in w
3763
3768
  ]
3764
3769
  }
3765
3770
  ) });
3766
- }, no = new URL(document.location.href).searchParams, oo = !!no.get("debug") || !1, so = cr(() => import(
3771
+ }, so = new URL(document.location.href).searchParams, io = !!so.get("debug") || !1, co = lr(() => import(
3767
3772
  /* webpackChunkName: "LazyApp" */
3768
- "./App.CBWEb0V8.js"
3769
- ).then((e) => e.App)), io = ({ isComponent: e }) => {
3770
- const { isAuthenticated: t } = qt();
3771
- return t ? /* @__PURE__ */ l(lr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(so, { isComponent: e }) }) : /* @__PURE__ */ l(ao, {});
3772
- }, co = ({
3773
+ "./App.Bfnlm12i.js"
3774
+ ).then((e) => e.App)), lo = ({ isComponent: e }) => {
3775
+ const { isAuthenticated: t } = Xt();
3776
+ return t ? /* @__PURE__ */ l(dr, { fallback: /* @__PURE__ */ l("div", {}), children: /* @__PURE__ */ l(co, { isComponent: e }) }) : /* @__PURE__ */ l(oo, {});
3777
+ }, uo = ({
3773
3778
  isComponent: e = !1,
3774
- domain: t = qa
3775
- }) => /* @__PURE__ */ l(Ua, { clientId: Ka, domain: t, debug: oo, children: /* @__PURE__ */ l(io, { isComponent: e }) }), os = ({ domain: e }) => /* @__PURE__ */ l(co, { isComponent: !0, domain: e });
3779
+ domain: t = Xa
3780
+ }) => /* @__PURE__ */ l(Ka, { clientId: Ha, domain: t, debug: io, children: /* @__PURE__ */ l(lo, { isComponent: e }) }), cs = ({ domain: e }) => /* @__PURE__ */ l(uo, { isComponent: !0, domain: e });
3776
3781
  export {
3777
- Zo as ABOUT_TITLE,
3778
- Co as ACTION_RESET_PROMPT,
3779
- No as ACTION_SEARCH,
3780
- vo as ACTION_SORT,
3781
- xo as ACTION_TOGGLE_PROMPT,
3782
- nr as APP_NAME,
3783
- Qt as C,
3784
- ns as CARDS,
3785
- ts as CLIPBOARD_PROMPT,
3786
- ko as DEFAULT_AI_PROVIDER,
3787
- Bo as DEFAULT_ICON_ACTION_SIZE,
3788
- _o as ERROR_MESSAGE,
3789
- rs as FOOTER_DISCLAIMER,
3790
- Qo as HISTORY_TITLE,
3791
- Ko as INFINITE_SCROLL_LIMIT,
3792
- Uo as INFINITE_SCROLL_THRESHOLD,
3793
- Cn as L,
3794
- Po as LOCAL_STORAGE_CHAT_DETAILS,
3795
- Oo as LOCAL_STORAGE_PREFIX,
3796
- $o as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
3797
- Do as LOCAL_STORAGE_SEARCH,
3798
- Lo as LOCAL_STORAGE_SORT,
3799
- zo as LOG_OUT,
3800
- ro as Logo,
3782
+ rs as ABOUT_TITLE,
3783
+ Po as ACTION_RESET_PROMPT,
3784
+ xo as ACTION_SEARCH,
3785
+ Co as ACTION_SORT,
3786
+ Oo as ACTION_TOGGLE_PROMPT,
3787
+ or as APP_NAME,
3788
+ Zt as C,
3789
+ is as CARDS,
3790
+ ns as CLIPBOARD_PROMPT,
3791
+ Ro as DEFAULT_AI_PROVIDER,
3792
+ Jo as DEFAULT_ICON_ACTION_SIZE,
3793
+ Ao as ERROR_MESSAGE,
3794
+ os as FOOTER_DISCLAIMER,
3795
+ ts as HISTORY_TITLE,
3796
+ Wo as INFINITE_SCROLL_LIMIT,
3797
+ Ho as INFINITE_SCROLL_THRESHOLD,
3798
+ Pn as L,
3799
+ Lo as LOCAL_STORAGE_CHAT_DETAILS,
3800
+ Do as LOCAL_STORAGE_PREFIX,
3801
+ Uo as LOCAL_STORAGE_PRIVATE_DISCLOSURE,
3802
+ $o as LOCAL_STORAGE_SEARCH,
3803
+ Mo as LOCAL_STORAGE_SORT,
3804
+ Qo as LOG_OUT,
3805
+ no as Logo,
3801
3806
  me as M,
3802
- qo as PROFILE_TITLE,
3803
- as as PROMPTS_DESCRIPTION,
3804
- Ho as PROMPT_CLASSNAME,
3805
- Wo as PROMPT_EDITABLE_AREA_CLASSNAME,
3806
- Ro as PROVIDER_ANTHROPIC,
3807
- Ao as PROVIDER_OPENAI,
3808
- Sn as R,
3809
- wo as ROLE_ASSISTANT,
3810
- So as ROLE_HIDDEN,
3811
- Io as ROLE_INTERNAL,
3812
- To as ROLE_SYSTEM,
3813
- Eo as ROLE_USER,
3814
- Xo as SETTINGS_TITLE,
3815
- Mo as STATS_SEPARATOR,
3816
- os as SassySaint,
3817
- es as TYPE_QUESTION,
3818
- jo as debounce,
3819
- Yo as durationFormatter,
3807
+ Zo as PROFILE_TITLE,
3808
+ ss as PROMPTS_DESCRIPTION,
3809
+ Bo as PROMPT_CLASSNAME,
3810
+ Vo as PROMPT_EDITABLE_AREA_CLASSNAME,
3811
+ vo as PROVIDER_ANTHROPIC,
3812
+ No as PROVIDER_OPENAI,
3813
+ kn as R,
3814
+ Io as ROLE_ASSISTANT,
3815
+ ko as ROLE_HIDDEN,
3816
+ _o as ROLE_INTERNAL,
3817
+ So as ROLE_SYSTEM,
3818
+ To as ROLE_USER,
3819
+ es as SETTINGS_TITLE,
3820
+ Ko as STATS_SEPARATOR,
3821
+ cs as SassySaint,
3822
+ as as TYPE_QUESTION,
3823
+ qo as debounce,
3824
+ jo as durationFormatter,
3820
3825
  He as f,
3821
3826
  ot as fe,
3822
- Vo as getCurrentGeoLocation,
3823
- Qa as getMainPaddingClass,
3824
- Xa as getMessageContaintWrapperClass,
3825
- Za as isElectron,
3827
+ Go as getCurrentGeoLocation,
3828
+ Za as getMainPaddingClass,
3829
+ Qa as getMessageContaintWrapperClass,
3830
+ en as isElectron,
3831
+ tn as isProbablyMobile,
3832
+ Xo as isProbablyiPhone,
3826
3833
  re as j,
3827
- An as l,
3828
- Go as numberFormatter,
3829
- Fo as pluralize,
3830
- vn as r,
3834
+ Nn as l,
3835
+ Fo as numberFormatter,
3836
+ zo as pluralize,
3837
+ Cn as r,
3831
3838
  Pe as re,
3832
- Jo as renderDataAsList,
3833
- qt as un
3839
+ Yo as renderDataAsList,
3840
+ Xt as un
3834
3841
  };