@versini/sassysaint 8.37.0 → 8.37.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { jsx as i, jsxs as T, Fragment as ue } from "react/jsx-runtime";
2
- import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.hnWr_yax.js";
2
+ import { Subscribable as ho, pendingThenable as ka, resolveEnabled as Ee, shallowEqualObjects as Er, resolveStaleTime as gt, noop as _r, isServer as Sr, isValidTimeout as Ea, focusManager as mo, fetchState as fo, replaceData as _a, notifyManager as _s, timeUntilStale as po, shouldThrowError as go, useQueryClient as yo, I as re, ACTION_SORT as bo, ACTION_SEARCH as vo, ACTION_RESET_PROMPT as Ss, ACTION_TOGGLE_PROMPT as Ts, ue as xe, DEFAULT_ICON_ACTION_SIZE as Te, isTauri as Wt, n as Ve, isProbablyiPhone as Ae, L as xs, j as yt, C as Sa, LOCAL_STORAGE_PREFIX as jt, LOCAL_STORAGE_PRIVATE_DISCLOSURE as wo, LOCAL_STORAGE_REASONING_DISCLOSURE as ko, TOAST_CHAT_SAVED as Eo, PROMPT_CLASSNAME as _o, PROMPT_EDITABLE_AREA_CLASSNAME as So, ERROR_MESSAGE as To, ROLE_INTERNAL as Tr, CLIPBOARD_PROMPT as Ta, isProbablyMobile as Je, INPUT_PLACEHOLDER_TEXT_MOBILE as xa, INPUT_PLACEHOLDER_TEXT_ENTER as Ca, INPUT_PLACEHOLDER_TEXT_CMD_ENTER as Ia, FOOTER_DISCLAIMERS as Ra, INPUT_BOTTOM_OFFSET_EXTRA as xo, INPUT_BOTTOM_OFFSET_IPHONE as Co, INPUT_BOTTOM_OFFSET as Cs, TOAST_PROVIDER_CHANGED as Io, LOG_OUT as Aa, getMessageContaintWrapperClass as Ro, UI_FOOTER_BUFFER as Is, UI_BUTTON_SCROLL_BUFFER as Ao, Logo as No, UI_DEFAULT_MAIN_HEIGHT as Na, APP_CLASSNAME as Oo, getMainPaddingClass as Oa, r as $o, LOCAL_STORAGE_SORT as Po, LOCAL_STORAGE_SEARCH as Mo } from "./index.BHt3HQ51.js";
3
3
  import * as Y from "react";
4
4
  import Z, { useEffect as $, useRef as R, useState as z, useCallback as V, useSyncExternalStore as Lo, useMemo as he, useId as Kr, useContext as X, useLayoutEffect as Oe, createContext as Rs, useDebugValue as Bo, forwardRef as As, Suspense as Ns, lazy as it, useReducer as St } from "react";
5
5
  import p from "clsx";
@@ -1942,7 +1942,7 @@ const lt = Z.createContext({
1942
1942
  )
1943
1943
  }), vc = ({
1944
1944
  buttonClassName: e
1945
- }) => p("rounded-none text-sm", e), Wm = ({
1945
+ }) => p("rounded-none text-sm", e), Fm = ({
1946
1946
  children: e,
1947
1947
  mode: t = "system",
1948
1948
  caption: r,
@@ -1981,7 +1981,7 @@ const lt = Z.createContext({
1981
1981
  )
1982
1982
  }
1983
1983
  );
1984
- }, jm = ({
1984
+ }, Wm = ({
1985
1985
  children: e,
1986
1986
  className: t,
1987
1987
  ...r
@@ -1994,7 +1994,7 @@ const lt = Z.createContext({
1994
1994
  stickyHeader: a.stickyHeader
1995
1995
  });
1996
1996
  return /* @__PURE__ */ i("thead", { className: s, ...r, children: e });
1997
- }, Gm = ({
1997
+ }, jm = ({
1998
1998
  children: e,
1999
1999
  className: t,
2000
2000
  ...r
@@ -2007,10 +2007,10 @@ const lt = Z.createContext({
2007
2007
  stickyFooter: a.stickyFooter
2008
2008
  });
2009
2009
  return /* @__PURE__ */ i("tfoot", { className: s, ...r, children: e });
2010
- }, Km = ({ children: e, ...t }) => {
2010
+ }, Gm = ({ children: e, ...t }) => {
2011
2011
  const r = X(lt);
2012
2012
  return r.cellWrapper = rt, /* @__PURE__ */ i("tbody", { ...t, children: e });
2013
- }, Jm = ({
2013
+ }, Km = ({
2014
2014
  children: e,
2015
2015
  className: t,
2016
2016
  ...r
@@ -2036,7 +2036,7 @@ const lt = Z.createContext({
2036
2036
  align: a
2037
2037
  });
2038
2038
  return a ? /* @__PURE__ */ i(o, { className: c, ...s, children: /* @__PURE__ */ i("div", { className: l, children: e }) }) : /* @__PURE__ */ i(o, { className: c, ...s, children: e });
2039
- }, qm = ({
2039
+ }, Jm = ({
2040
2040
  align: e,
2041
2041
  children: t,
2042
2042
  buttonClassName: r,
@@ -4761,13 +4761,13 @@ const ss = ({
4761
4761
  CHANGELOGS: "changelogs",
4762
4762
  PREFERENCES: "preferences",
4763
4763
  USAGE: "usage"
4764
- }, Ym = () => ct({
4764
+ }, qm = () => ct({
4765
4765
  queryKey: [dt.CAPABILITIES],
4766
4766
  queryFn: async () => await ut({
4767
4767
  type: ze.GET_SERVER_CAPABILITIES,
4768
4768
  noAuth: !0
4769
4769
  })
4770
- }), Qm = () => ct({
4770
+ }), Ym = () => ct({
4771
4771
  queryKey: [dt.CHANGELOGS],
4772
4772
  queryFn: async () => await ut({
4773
4773
  type: ze.GET_CHANGELOGS,
@@ -4788,7 +4788,7 @@ const ss = ({
4788
4788
  type: ze.GET_USER_PREFERENCES,
4789
4789
  getAccessToken: t
4790
4790
  })
4791
- }), Xm = ({
4791
+ }), Qm = ({
4792
4792
  user: e,
4793
4793
  getAccessToken: t
4794
4794
  }) => ct({
@@ -4824,7 +4824,7 @@ const ss = ({
4824
4824
  type: ze.GET_CHATS,
4825
4825
  getAccessToken: s
4826
4826
  })
4827
- }), Zm = ({
4827
+ }), Xm = ({
4828
4828
  user: e,
4829
4829
  month: t,
4830
4830
  year: r = (/* @__PURE__ */ new Date()).getFullYear().toString(),
@@ -4878,24 +4878,23 @@ const ss = ({
4878
4878
  } catch (s) {
4879
4879
  return Promise.reject(s);
4880
4880
  }
4881
- }, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "gpt-5", vd = "o3", wd = "o4", kd = "gemini", Ed = "sonar", _d = {
4881
+ }, dd = "z-20", ud = "z-10", hd = "user", qt = "assistant", na = "OpenAI", In = "Anthropic", Rn = "Google", md = "Perplexity", fd = na, pd = "claude-sonnet-4", gd = "claude-3", yd = "gpt-4", bd = "o3", vd = "o4", wd = "gemini", kd = "sonar", Ed = {
4882
4882
  [In]: [
4883
4883
  pd,
4884
4884
  gd
4885
4885
  ],
4886
4886
  [na]: [
4887
- bd,
4888
4887
  yd,
4889
- vd,
4890
- wd
4888
+ bd,
4889
+ vd
4891
4890
  ],
4892
- [Rn]: [kd],
4893
- [md]: [Ed]
4891
+ [Rn]: [wd],
4892
+ [md]: [kd]
4894
4893
  }, An = {
4895
4894
  REASONING: "sassy:advanced:reasoning"
4896
- }, Sd = "x-callisto-chat-id", ef = (e) => {
4895
+ }, _d = "x-callisto-chat-id", Zm = (e) => {
4897
4896
  for (const [t, r] of Object.entries(
4898
- _d
4897
+ Ed
4899
4898
  ))
4900
4899
  if (r.some((a) => e.startsWith(a)))
4901
4900
  return t;
@@ -4937,7 +4936,7 @@ const ss = ({
4937
4936
  dispatch: () => {
4938
4937
  }
4939
4938
  });
4940
- var Td = Object.defineProperty, xd = (e, t, r) => t in e ? Td(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ae = (e, t, r) => xd(e, typeof t != "symbol" ? t + "" : t, r);
4939
+ var Sd = Object.defineProperty, Td = (e, t, r) => t in e ? Sd(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, ae = (e, t, r) => Td(e, typeof t != "symbol" ? t + "" : t, r);
4941
4940
  /*!
4942
4941
  @versini/auth-common v4.5.0
4943
4942
  © 2025 gizmette.com
@@ -4951,14 +4950,14 @@ try {
4951
4950
  });
4952
4951
  } catch {
4953
4952
  }
4954
- const tf = {
4953
+ const ef = {
4955
4954
  PASSKEY: "passkey"
4956
4955
  }, st = {
4957
4956
  ALG: "RS256",
4958
4957
  SCOPES_KEY: "scopes",
4959
4958
  SCOPE_KEY: "scope",
4960
4959
  ISSUER: "gizmette.com"
4961
- }, Cd = `-----BEGIN PUBLIC KEY-----
4960
+ }, xd = `-----BEGIN PUBLIC KEY-----
4962
4961
  MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsF6i3Jd9fY/3COqCw/m7
4963
4962
  w5PKyTYLGAI2I6SIIdpe6i6DOCbEkmDz7LdVsBqwNtVi8gvWYIj+8ol6rU3qu1v5
4964
4963
  i1Jd45GSK4kzkVdgCmQZbM5ak0KI99q5wsrAIzUd+LRJ2HRvWtr5IYdsIiXaQjle
@@ -4967,14 +4966,14 @@ l0haqjMk0UoNPPE8iYBWUHQJJE1Dqstj65d6Eh5g64Pao25y4cmYJbKjiblIGEkE
4967
4966
  sjqybA9mARAqh9k/eiIopecWSiffNQTwVQVd2I9ZH3BalhEXHlqFgrjz51kFqg81
4968
4967
  awIDAQAB
4969
4968
  -----END PUBLIC KEY-----`, Nt = new TextEncoder(), vt = new TextDecoder();
4970
- function Id(...e) {
4969
+ function Cd(...e) {
4971
4970
  const t = e.reduce((s, { length: n }) => s + n, 0), r = new Uint8Array(t);
4972
4971
  let a = 0;
4973
4972
  for (const s of e)
4974
4973
  r.set(s, a), a += s.length;
4975
4974
  return r;
4976
4975
  }
4977
- function Rd(e) {
4976
+ function Id(e) {
4978
4977
  if (Uint8Array.fromBase64)
4979
4978
  return Uint8Array.fromBase64(e);
4980
4979
  const t = atob(e), r = new Uint8Array(t.length);
@@ -4990,7 +4989,7 @@ function Ht(e) {
4990
4989
  let t = e;
4991
4990
  t instanceof Uint8Array && (t = vt.decode(t)), t = t.replace(/-/g, "+").replace(/_/g, "/").replace(/\s/g, "");
4992
4991
  try {
4993
- return Rd(t);
4992
+ return Id(t);
4994
4993
  } catch {
4995
4994
  throw new TypeError("The input to be decoded is not correctly encoded.");
4996
4995
  }
@@ -5053,7 +5052,7 @@ function ht(e, t) {
5053
5052
  function pr(e) {
5054
5053
  return parseInt(e.name.slice(4), 10);
5055
5054
  }
5056
- function Ad(e) {
5055
+ function Rd(e) {
5057
5056
  switch (e) {
5058
5057
  case "ES256":
5059
5058
  return "P-256";
@@ -5065,11 +5064,11 @@ function Ad(e) {
5065
5064
  throw new Error("unreachable");
5066
5065
  }
5067
5066
  }
5068
- function Nd(e, t) {
5067
+ function Ad(e, t) {
5069
5068
  if (!e.usages.includes(t))
5070
5069
  throw new TypeError(`CryptoKey does not support this operation, its usages must include ${t}.`);
5071
5070
  }
5072
- function Od(e, t, r) {
5071
+ function Nd(e, t, r) {
5073
5072
  switch (t) {
5074
5073
  case "HS256":
5075
5074
  case "HS384":
@@ -5112,7 +5111,7 @@ function Od(e, t, r) {
5112
5111
  case "ES512": {
5113
5112
  if (!ht(e.algorithm, "ECDSA"))
5114
5113
  throw Ie("ECDSA");
5115
- const a = Ad(t);
5114
+ const a = Rd(t);
5116
5115
  if (e.algorithm.namedCurve !== a)
5117
5116
  throw Ie(a, "algorithm.namedCurve");
5118
5117
  break;
@@ -5120,7 +5119,7 @@ function Od(e, t, r) {
5120
5119
  default:
5121
5120
  throw new TypeError("CryptoKey does not support this operation");
5122
5121
  }
5123
- Nd(e, r);
5122
+ Ad(e, r);
5124
5123
  }
5125
5124
  function $n(e, t, ...r) {
5126
5125
  var a;
@@ -5130,7 +5129,7 @@ function $n(e, t, ...r) {
5130
5129
  } else r.length === 2 ? e += `one of type ${r[0]} or ${r[1]}.` : e += `of type ${r[0]}.`;
5131
5130
  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;
5132
5131
  }
5133
- const $d = (e, ...t) => $n("Key must be ", e, ...t);
5132
+ const Od = (e, ...t) => $n("Key must be ", e, ...t);
5134
5133
  function Pn(e, t, ...r) {
5135
5134
  return $n(`Key for the ${e} algorithm must be `, t, ...r);
5136
5135
  }
@@ -5140,7 +5139,7 @@ function Mn(e) {
5140
5139
  function Ln(e) {
5141
5140
  return e?.[Symbol.toStringTag] === "KeyObject";
5142
5141
  }
5143
- const Bn = (e) => Mn(e) || Ln(e), Pd = (...e) => {
5142
+ const Bn = (e) => Mn(e) || Ln(e), $d = (...e) => {
5144
5143
  const t = e.filter(Boolean);
5145
5144
  if (t.length === 0 || t.length === 1)
5146
5145
  return !0;
@@ -5159,11 +5158,11 @@ const Bn = (e) => Mn(e) || Ln(e), Pd = (...e) => {
5159
5158
  }
5160
5159
  return !0;
5161
5160
  };
5162
- function Md(e) {
5161
+ function Pd(e) {
5163
5162
  return typeof e == "object" && e !== null;
5164
5163
  }
5165
5164
  const Yt = (e) => {
5166
- if (!Md(e) || Object.prototype.toString.call(e) !== "[object Object]")
5165
+ if (!Pd(e) || Object.prototype.toString.call(e) !== "[object Object]")
5167
5166
  return !1;
5168
5167
  if (Object.getPrototypeOf(e) === null)
5169
5168
  return !0;
@@ -5171,7 +5170,7 @@ const Yt = (e) => {
5171
5170
  for (; Object.getPrototypeOf(t) !== null; )
5172
5171
  t = Object.getPrototypeOf(t);
5173
5172
  return Object.getPrototypeOf(e) === t;
5174
- }, Ld = (e, t) => {
5173
+ }, Md = (e, t) => {
5175
5174
  if (e.startsWith("RS") || e.startsWith("PS")) {
5176
5175
  const { modulusLength: r } = t.algorithm;
5177
5176
  if (typeof r != "number" || r < 2048)
@@ -5184,7 +5183,7 @@ const Yt = (e) => {
5184
5183
  return !1;
5185
5184
  const s = e.subarray(a, a + t.length);
5186
5185
  return s.length !== t.length ? !1 : s.every((n, o) => n === t[o]) || Vt(e, t, a + 1);
5187
- }, Bd = (e) => {
5186
+ }, Ld = (e) => {
5188
5187
  switch (!0) {
5189
5188
  case Vt(e, [42, 134, 72, 206, 61, 3, 1, 7]):
5190
5189
  return "P-256";
@@ -5195,7 +5194,7 @@ const Yt = (e) => {
5195
5194
  default:
5196
5195
  return;
5197
5196
  }
5198
- }, Dd = async (e, t, r, a, s) => {
5197
+ }, Bd = async (e, t, r, a, s) => {
5199
5198
  let n, o;
5200
5199
  const c = new Uint8Array(atob(r.replace(e, "")).split("").map((l) => l.charCodeAt(0)));
5201
5200
  switch (a) {
@@ -5231,7 +5230,7 @@ const Yt = (e) => {
5231
5230
  case "ECDH-ES+A128KW":
5232
5231
  case "ECDH-ES+A192KW":
5233
5232
  case "ECDH-ES+A256KW": {
5234
- const l = Bd(c);
5233
+ const l = Ld(c);
5235
5234
  n = l != null && l.startsWith("P-") ? { name: "ECDH", namedCurve: l } : { name: "X25519" }, o = [];
5236
5235
  break;
5237
5236
  }
@@ -5243,8 +5242,8 @@ const Yt = (e) => {
5243
5242
  throw new Be('Invalid or unsupported "alg" (Algorithm) value');
5244
5243
  }
5245
5244
  return crypto.subtle.importKey(t, c, n, !0, o);
5246
- }, Ud = (e, t, r) => Dd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
5247
- function Hd(e) {
5245
+ }, Dd = (e, t, r) => Bd(/(?:-----(?:BEGIN|END) PUBLIC KEY-----|\s)/g, "spki", e, t);
5246
+ function Ud(e) {
5248
5247
  let t, r;
5249
5248
  switch (e.kty) {
5250
5249
  case "RSA": {
@@ -5317,18 +5316,18 @@ function Hd(e) {
5317
5316
  }
5318
5317
  return { algorithm: t, keyUsages: r };
5319
5318
  }
5320
- const Vd = async (e) => {
5319
+ const Hd = async (e) => {
5321
5320
  if (!e.alg)
5322
5321
  throw new TypeError('"alg" argument is required when "jwk.alg" is not present');
5323
- const { algorithm: t, keyUsages: r } = Hd(e), a = { ...e };
5322
+ const { algorithm: t, keyUsages: r } = Ud(e), a = { ...e };
5324
5323
  return delete a.alg, delete a.use, crypto.subtle.importKey("jwk", a, t, e.ext ?? !e.d, e.key_ops ?? r);
5325
5324
  };
5326
- async function zd(e, t, r) {
5325
+ async function Vd(e, t, r) {
5327
5326
  if (e.indexOf("-----BEGIN PUBLIC KEY-----") !== 0)
5328
5327
  throw new TypeError('"spki" must be SPKI formatted string');
5329
- return Ud(e, t);
5328
+ return Dd(e, t);
5330
5329
  }
5331
- const Fd = (e, t, r, a, s) => {
5330
+ const zd = (e, t, r, a, s) => {
5332
5331
  if (s.crit !== void 0 && a?.crit === void 0)
5333
5332
  throw new e('"crit" (Critical) Header Parameter MUST be integrity protected');
5334
5333
  if (!a || a.crit === void 0)
@@ -5346,7 +5345,7 @@ const Fd = (e, t, r, a, s) => {
5346
5345
  throw new e(`Extension Header Parameter "${o}" MUST be integrity protected`);
5347
5346
  }
5348
5347
  return new Set(a.crit);
5349
- }, Wd = (e, t) => {
5348
+ }, Fd = (e, t) => {
5350
5349
  if (t !== void 0 && (!Array.isArray(t) || t.some((r) => typeof r != "string")))
5351
5350
  throw new TypeError(`"${e}" option must be an array of strings`);
5352
5351
  if (t)
@@ -5355,13 +5354,13 @@ const Fd = (e, t, r, a, s) => {
5355
5354
  function da(e) {
5356
5355
  return Yt(e) && typeof e.kty == "string";
5357
5356
  }
5358
- function jd(e) {
5357
+ function Wd(e) {
5359
5358
  return e.kty !== "oct" && typeof e.d == "string";
5360
5359
  }
5361
- function Gd(e) {
5360
+ function jd(e) {
5362
5361
  return e.kty !== "oct" && typeof e.d > "u";
5363
5362
  }
5364
- function Kd(e) {
5363
+ function Gd(e) {
5365
5364
  return e.kty === "oct" && typeof e.k == "string";
5366
5365
  }
5367
5366
  let De;
@@ -5370,9 +5369,9 @@ const ns = async (e, t, r, a = !1) => {
5370
5369
  let s = De.get(e);
5371
5370
  if (s != null && s[r])
5372
5371
  return s[r];
5373
- const n = await Vd({ ...t, alg: r });
5372
+ const n = await Hd({ ...t, alg: r });
5374
5373
  return a && Object.freeze(e), s ? s[r] = n : De.set(e, { [r]: n }), n;
5375
- }, Jd = (e, t) => {
5374
+ }, Kd = (e, t) => {
5376
5375
  var r;
5377
5376
  De || (De = /* @__PURE__ */ new WeakMap());
5378
5377
  let a = De.get(e);
@@ -5458,7 +5457,7 @@ const ns = async (e, t, r, a = !1) => {
5458
5457
  if (!o)
5459
5458
  throw new TypeError("given KeyObject instance cannot be used for this algorithm");
5460
5459
  return a ? a[t] = o : De.set(e, { [t]: o }), o;
5461
- }, qd = async (e, t) => {
5460
+ }, Jd = async (e, t) => {
5462
5461
  if (e instanceof Uint8Array || Mn(e))
5463
5462
  return e;
5464
5463
  if (Ln(e)) {
@@ -5466,7 +5465,7 @@ const ns = async (e, t, r, a = !1) => {
5466
5465
  return e.export();
5467
5466
  if ("toCryptoKey" in e && typeof e.toCryptoKey == "function")
5468
5467
  try {
5469
- return Jd(e, t);
5468
+ return Kd(e, t);
5470
5469
  } catch (a) {
5471
5470
  if (a instanceof TypeError)
5472
5471
  throw a;
@@ -5521,10 +5520,10 @@ const ns = async (e, t, r, a = !1) => {
5521
5520
  throw new TypeError(`Invalid key for this operation, its "key_ops" must include "${n}" when present`);
5522
5521
  }
5523
5522
  return !0;
5524
- }, Yd = (e, t, r) => {
5523
+ }, qd = (e, t, r) => {
5525
5524
  if (!(t instanceof Uint8Array)) {
5526
5525
  if (da(t)) {
5527
- if (Kd(t) && Vr(e, t, r))
5526
+ if (Gd(t) && Vr(e, t, r))
5528
5527
  return;
5529
5528
  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');
5530
5529
  }
@@ -5533,17 +5532,17 @@ const ns = async (e, t, r, a = !1) => {
5533
5532
  if (t.type !== "secret")
5534
5533
  throw new TypeError(`${tt(t)} instances for symmetric algorithms must be of type "secret"`);
5535
5534
  }
5536
- }, Qd = (e, t, r) => {
5535
+ }, Yd = (e, t, r) => {
5537
5536
  if (da(t))
5538
5537
  switch (r) {
5539
5538
  case "decrypt":
5540
5539
  case "sign":
5541
- if (jd(t) && Vr(e, t, r))
5540
+ if (Wd(t) && Vr(e, t, r))
5542
5541
  return;
5543
5542
  throw new TypeError("JSON Web Key for this operation be a private JWK");
5544
5543
  case "encrypt":
5545
5544
  case "verify":
5546
- if (Gd(t) && Vr(e, t, r))
5545
+ if (jd(t) && Vr(e, t, r))
5547
5546
  return;
5548
5547
  throw new TypeError("JSON Web Key for this operation be a public JWK");
5549
5548
  }
@@ -5565,9 +5564,9 @@ const ns = async (e, t, r, a = !1) => {
5565
5564
  case "encrypt":
5566
5565
  throw new TypeError(`${tt(t)} instances for asymmetric algorithm encryption must be of type "public"`);
5567
5566
  }
5568
- }, Xd = (e, t, r) => {
5569
- e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? Yd(e, t, r) : Qd(e, t, r);
5570
- }, Zd = (e, t) => {
5567
+ }, Qd = (e, t, r) => {
5568
+ e.startsWith("HS") || e === "dir" || e.startsWith("PBES2") || /^A(?:128|192|256)(?:GCM)?(?:KW)?$/.test(e) || /^A(?:128|192|256)CBC-HS(?:256|384|512)$/.test(e) ? qd(e, t, r) : Yd(e, t, r);
5569
+ }, Xd = (e, t) => {
5571
5570
  const r = `SHA-${e.slice(-3)}`;
5572
5571
  switch (e) {
5573
5572
  case "HS256":
@@ -5592,24 +5591,24 @@ const ns = async (e, t, r, a = !1) => {
5592
5591
  default:
5593
5592
  throw new Be(`alg ${e} is not supported either by JOSE or your javascript runtime`);
5594
5593
  }
5595
- }, eu = async (e, t, r) => {
5594
+ }, Zd = async (e, t, r) => {
5596
5595
  if (t instanceof Uint8Array) {
5597
5596
  if (!e.startsWith("HS"))
5598
- throw new TypeError($d(t, "CryptoKey", "KeyObject", "JSON Web Key"));
5597
+ throw new TypeError(Od(t, "CryptoKey", "KeyObject", "JSON Web Key"));
5599
5598
  return crypto.subtle.importKey("raw", t, { hash: `SHA-${e.slice(-3)}`, name: "HMAC" }, !1, [r]);
5600
5599
  }
5601
- return Od(t, e, r), t;
5602
- }, tu = async (e, t, r, a) => {
5603
- const s = await eu(e, t, "verify");
5604
- Ld(e, s);
5605
- const n = Zd(e, s.algorithm);
5600
+ return Nd(t, e, r), t;
5601
+ }, eu = async (e, t, r, a) => {
5602
+ const s = await Zd(e, t, "verify");
5603
+ Md(e, s);
5604
+ const n = Xd(e, s.algorithm);
5606
5605
  try {
5607
5606
  return await crypto.subtle.verify(n, s, r, a);
5608
5607
  } catch {
5609
5608
  return !1;
5610
5609
  }
5611
5610
  };
5612
- async function ru(e, t, r) {
5611
+ async function tu(e, t, r) {
5613
5612
  if (!Yt(e))
5614
5613
  throw new oe("Flattened JWS must be an object");
5615
5614
  if (e.protected === void 0 && e.header === void 0)
@@ -5630,19 +5629,19 @@ async function ru(e, t, r) {
5630
5629
  } catch {
5631
5630
  throw new oe("JWS Protected Header is invalid");
5632
5631
  }
5633
- if (!Pd(a, e.header))
5632
+ if (!$d(a, e.header))
5634
5633
  throw new oe("JWS Protected and JWS Unprotected Header Parameter names must be disjoint");
5635
5634
  const s = {
5636
5635
  ...a,
5637
5636
  ...e.header
5638
- }, n = Fd(oe, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, a, s);
5637
+ }, n = zd(oe, /* @__PURE__ */ new Map([["b64", !0]]), r?.crit, a, s);
5639
5638
  let o = !0;
5640
5639
  if (n.has("b64") && (o = a.b64, typeof o != "boolean"))
5641
5640
  throw new oe('The "b64" (base64url-encode payload) Header Parameter must be a boolean');
5642
5641
  const { alg: c } = s;
5643
5642
  if (typeof c != "string" || !c)
5644
5643
  throw new oe('JWS "alg" (Algorithm) Header Parameter missing or invalid');
5645
- const l = r && Wd("algorithms", r.algorithms);
5644
+ const l = r && Fd("algorithms", r.algorithms);
5646
5645
  if (l && !l.has(c))
5647
5646
  throw new Nn('"alg" (Algorithm) Header Parameter value not allowed');
5648
5647
  if (o) {
@@ -5651,16 +5650,16 @@ async function ru(e, t, r) {
5651
5650
  } else if (typeof e.payload != "string" && !(e.payload instanceof Uint8Array))
5652
5651
  throw new oe("JWS Payload must be a string or an Uint8Array instance");
5653
5652
  let d = !1;
5654
- typeof t == "function" && (t = await t(a, e), d = !0), Xd(c, t, "verify");
5655
- const m = Id(Nt.encode(e.protected ?? ""), Nt.encode("."), typeof e.payload == "string" ? Nt.encode(e.payload) : e.payload);
5653
+ typeof t == "function" && (t = await t(a, e), d = !0), Qd(c, t, "verify");
5654
+ const m = Cd(Nt.encode(e.protected ?? ""), Nt.encode("."), typeof e.payload == "string" ? Nt.encode(e.payload) : e.payload);
5656
5655
  let u;
5657
5656
  try {
5658
5657
  u = Ht(e.signature);
5659
5658
  } catch {
5660
5659
  throw new oe("Failed to base64url decode the signature");
5661
5660
  }
5662
- const h = await qd(t, c);
5663
- if (!await tu(c, h, u, m))
5661
+ const h = await Jd(t, c);
5662
+ if (!await eu(c, h, u, m))
5664
5663
  throw new On();
5665
5664
  let f;
5666
5665
  if (o)
@@ -5673,17 +5672,17 @@ async function ru(e, t, r) {
5673
5672
  const g = { payload: f };
5674
5673
  return e.protected !== void 0 && (g.protectedHeader = a), e.header !== void 0 && (g.unprotectedHeader = e.header), d ? { ...g, key: h } : g;
5675
5674
  }
5676
- async function au(e, t, r) {
5675
+ async function ru(e, t, r) {
5677
5676
  if (e instanceof Uint8Array && (e = vt.decode(e)), typeof e != "string")
5678
5677
  throw new oe("Compact JWS must be a string or Uint8Array");
5679
5678
  const { 0: a, 1: s, 2: n, length: o } = e.split(".");
5680
5679
  if (o !== 3)
5681
5680
  throw new oe("Invalid Compact JWS");
5682
- const c = await ru({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
5681
+ const c = await tu({ payload: s, protected: a, signature: n }, t, r), l = { payload: c.payload, protectedHeader: c.protectedHeader };
5683
5682
  return typeof t == "function" ? { ...l, key: c.key } : l;
5684
5683
  }
5685
- const su = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un * 24, nu = ua * 7, ou = ua * 365.25, iu = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
5686
- const t = iu.exec(e);
5684
+ const au = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un * 24, su = ua * 7, nu = ua * 365.25, ou = /^(\+|\-)? ?(\d+|\d+\.\d+) ?(seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)(?: (ago|from now))?$/i, os = (e) => {
5685
+ const t = ou.exec(e);
5687
5686
  if (!t || t[4] && t[1])
5688
5687
  throw new TypeError("Invalid time period format");
5689
5688
  const r = parseFloat(t[2]), a = t[3].toLowerCase();
@@ -5718,15 +5717,15 @@ const su = (e) => Math.floor(e.getTime() / 1e3), Dn = 60, Un = Dn * 60, ua = Un
5718
5717
  case "week":
5719
5718
  case "weeks":
5720
5719
  case "w":
5721
- s = Math.round(r * nu);
5720
+ s = Math.round(r * su);
5722
5721
  break;
5723
5722
  default:
5724
- s = Math.round(r * ou);
5723
+ s = Math.round(r * nu);
5725
5724
  break;
5726
5725
  }
5727
5726
  return t[1] === "-" || t[4] === "ago" ? -s : s;
5728
- }, is = (e) => e.toLowerCase().replace(/^application\//, ""), cu = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5729
- function lu(e, t, r = {}) {
5727
+ }, is = (e) => e.toLowerCase().replace(/^application\//, ""), iu = (e, t) => typeof e == "string" ? t.includes(e) : Array.isArray(e) ? t.some(Set.prototype.has.bind(new Set(e))) : !1;
5728
+ function cu(e, t, r = {}) {
5730
5729
  let a;
5731
5730
  try {
5732
5731
  a = JSON.parse(vt.decode(t));
@@ -5746,7 +5745,7 @@ function lu(e, t, r = {}) {
5746
5745
  throw new ke('unexpected "iss" claim value', a, "iss", "check_failed");
5747
5746
  if (c && a.sub !== c)
5748
5747
  throw new ke('unexpected "sub" claim value', a, "sub", "check_failed");
5749
- if (l && !cu(a.aud, typeof l == "string" ? [l] : l))
5748
+ if (l && !iu(a.aud, typeof l == "string" ? [l] : l))
5750
5749
  throw new ke('unexpected "aud" claim value', a, "aud", "check_failed");
5751
5750
  let u;
5752
5751
  switch (typeof r.clockTolerance) {
@@ -5762,7 +5761,7 @@ function lu(e, t, r = {}) {
5762
5761
  default:
5763
5762
  throw new TypeError("Invalid clockTolerance option type");
5764
5763
  }
5765
- const { currentDate: h } = r, f = su(h || /* @__PURE__ */ new Date());
5764
+ const { currentDate: h } = r, f = au(h || /* @__PURE__ */ new Date());
5766
5765
  if ((a.iat !== void 0 || d) && typeof a.iat != "number")
5767
5766
  throw new ke('"iat" claim must be a number', a, "iat", "invalid");
5768
5767
  if (a.nbf !== void 0) {
@@ -5786,29 +5785,29 @@ function lu(e, t, r = {}) {
5786
5785
  }
5787
5786
  return a;
5788
5787
  }
5789
- async function du(e, t, r) {
5788
+ async function lu(e, t, r) {
5790
5789
  var a;
5791
- const s = await au(e, t, r);
5790
+ const s = await ru(e, t, r);
5792
5791
  if ((a = s.protectedHeader.crit) != null && a.includes("b64") && s.protectedHeader.b64 === !1)
5793
5792
  throw new la("JWTs MUST NOT use unencoded payload");
5794
- const n = { payload: lu(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
5793
+ const n = { payload: cu(s.protectedHeader, s.payload, r), protectedHeader: s.protectedHeader };
5795
5794
  return typeof t == "function" ? { ...n, key: s.key } : n;
5796
5795
  }
5797
- const uu = async (e) => {
5796
+ const du = async (e) => {
5798
5797
  try {
5799
- const t = st.ALG, r = await zd(Cd, t);
5800
- return await du(e, r, {
5798
+ const t = st.ALG, r = await Vd(xd, t);
5799
+ return await lu(e, r, {
5801
5800
  issuer: st.ISSUER
5802
5801
  });
5803
5802
  } catch {
5804
5803
  return;
5805
5804
  }
5806
- }, hu = [];
5805
+ }, uu = [];
5807
5806
  for (let e = 0; e < 256; ++e)
5808
- hu.push((e + 256).toString(16).slice(1));
5807
+ uu.push((e + 256).toString(16).slice(1));
5809
5808
  typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto);
5810
5809
  const Hn = async (e, t) => {
5811
- const r = await uu(e);
5810
+ const r = await du(e);
5812
5811
  if (!r || !r.payload)
5813
5812
  return !1;
5814
5813
  let a = [];
@@ -5821,8 +5820,8 @@ const Hn = async (e, t) => {
5821
5820
  return Array.isArray(t) ? t.every((s) => a.includes(s)) : Object.keys(t).some(
5822
5821
  (s) => t[s].every((n) => a.includes(n))
5823
5822
  );
5824
- }, mu = "av-tooltip", fu = "av-tooltip-arrow", cs = ["mousedown", "touchstart"];
5825
- function pu(e, t, r) {
5823
+ }, hu = "av-tooltip", mu = "av-tooltip-arrow", cs = ["mousedown", "touchstart"];
5824
+ function fu(e, t, r) {
5826
5825
  const a = R(null);
5827
5826
  return $(() => {
5828
5827
  const s = (n) => {
@@ -5843,7 +5842,7 @@ function pu(e, t, r) {
5843
5842
  };
5844
5843
  }, [e, r, t]), a;
5845
5844
  }
5846
- function gu(e, t) {
5845
+ function pu(e, t) {
5847
5846
  const [r, a] = z(!1), s = R(null), n = R(null), o = V(() => {
5848
5847
  a((l) => (!l && (!s.current || s.current === -1) && (s.current = window.setInterval(n.current, t)), !0));
5849
5848
  }, [t]), c = V(() => {
@@ -5851,42 +5850,42 @@ function gu(e, t) {
5851
5850
  }, []);
5852
5851
  return $(() => (n.current = e, r && o(), c), [e, r, o, c]), { start: o, stop: c, active: r };
5853
5852
  }
5854
- const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ls = ({
5853
+ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gu = () => p("absolute top-0 left-0 w-max py-1 px-2 rounded-sm text-sm z-50"), ls = ({
5855
5854
  mode: e
5856
5855
  }) => p({
5857
5856
  "bg-surface-darker": e === "dark" || e === "system",
5858
5857
  "bg-surface-light": e === "light" || e === "alt-system",
5859
5858
  "dark:bg-surface-light": e === "system",
5860
5859
  "dark:bg-surface-darker": e === "alt-system"
5861
- }), bu = ({
5860
+ }), yu = ({
5862
5861
  mode: e
5863
5862
  }) => p({
5864
5863
  "text-copy-light": e === "dark" || e === "system",
5865
5864
  "text-copy-dark": e === "light" || e === "alt-system",
5866
5865
  "dark:text-copy-dark": e === "system",
5867
5866
  "dark:text-copy-light": e === "alt-system"
5868
- }), vu = () => p("absolute", "size-2", "transform rotate-45"), wu = ({
5867
+ }), bu = () => p("absolute", "size-2", "transform rotate-45"), vu = ({
5869
5868
  mode: e,
5870
5869
  className: t,
5871
5870
  tooltipClassName: r,
5872
5871
  arrowClassName: a
5873
5872
  }) => {
5874
5873
  const s = p("relative inline-block", t), n = p(
5875
- mu,
5876
- yu(),
5874
+ hu,
5875
+ gu(),
5877
5876
  ls({ mode: e }),
5878
- bu({ mode: e }),
5877
+ yu({ mode: e }),
5879
5878
  r
5880
5879
  ), o = p(
5881
- fu,
5882
- vu(),
5880
+ mu,
5881
+ bu(),
5883
5882
  ls({ mode: e }),
5884
5883
  a
5885
5884
  );
5886
5885
  return { tooltip: n, arrow: o, wrapper: s };
5887
- }, ku = ({ delay: e = 300 }) => ({
5886
+ }, wu = ({ delay: e = 300 }) => ({
5888
5887
  animation: `av-tooltip-fade-in ${e}ms ease-in-out`
5889
- }), Eu = 5e3, $e = ({
5888
+ }), ku = 5e3, $e = ({
5890
5889
  trigger: e,
5891
5890
  label: t,
5892
5891
  placement: r = "top",
@@ -5896,16 +5895,16 @@ const Ot = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, yu = (
5896
5895
  tooltipClassName: o,
5897
5896
  arrowClassName: c
5898
5897
  }) => {
5899
- const l = pu(() => {
5898
+ const l = fu(() => {
5900
5899
  y.stop(), g(!1);
5901
- }), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y = gu(() => {
5900
+ }), d = R(null), m = R(null), [u, h] = z(!1), [f, g] = z(!1), y = pu(() => {
5902
5901
  g(!1);
5903
- }, Eu), k = wu({
5902
+ }, ku), k = vu({
5904
5903
  mode: a,
5905
5904
  className: n,
5906
5905
  tooltipClassName: o,
5907
5906
  arrowClassName: c
5908
- }), b = ku({ delay: s }), x = V(async () => {
5907
+ }), b = wu({ delay: s }), x = V(async () => {
5909
5908
  if (l.current && d.current && m.current) {
5910
5909
  const {
5911
5910
  x: v,
@@ -5993,7 +5992,7 @@ try {
5993
5992
  });
5994
5993
  } catch {
5995
5994
  }
5996
- const _u = ({
5995
+ const Eu = ({
5997
5996
  className: e,
5998
5997
  onClick: t
5999
5998
  }) => /* @__PURE__ */ i(
@@ -6025,7 +6024,7 @@ function Vn(e, t) {
6025
6024
  };
6026
6025
  }, [e, t]);
6027
6026
  }
6028
- const Su = ({
6027
+ const _u = ({
6029
6028
  className: e
6030
6029
  }) => {
6031
6030
  const { getAccessToken: t } = Ve(), {
@@ -6118,7 +6117,7 @@ const Su = ({
6118
6117
  )
6119
6118
  }
6120
6119
  );
6121
- }, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link", Tu = ({
6120
+ }, ds = "av-messagebox", $t = "av-panel", us = "av-button", ha = "icon", zn = "button", zr = "link", Su = ({
6122
6121
  type: e,
6123
6122
  size: t,
6124
6123
  labelRight: r,
@@ -6154,7 +6153,7 @@ const Su = ({
6154
6153
  "h-12": t === "large" && n && (r || a)
6155
6154
  });
6156
6155
  }
6157
- }, xu = ({
6156
+ }, Tu = ({
6158
6157
  type: e,
6159
6158
  size: t,
6160
6159
  labelRight: r,
@@ -6177,7 +6176,7 @@ const Su = ({
6177
6176
  [o]: t === "large" && (r || a)
6178
6177
  });
6179
6178
  }
6180
- }, Cu = ({
6179
+ }, xu = ({
6181
6180
  mode: e,
6182
6181
  noBackground: t,
6183
6182
  truncate: r,
@@ -6213,7 +6212,7 @@ const Su = ({
6213
6212
  return p("not-prose text-copy-lighter", {
6214
6213
  truncate: r
6215
6214
  });
6216
- }, Iu = ({
6215
+ }, Cu = ({
6217
6216
  mode: e,
6218
6217
  noBackground: t,
6219
6218
  variant: r
@@ -6243,13 +6242,13 @@ const Su = ({
6243
6242
  if (r === "selected")
6244
6243
  return "bg-action-selected-dark";
6245
6244
  }
6246
- }, Ru = ({
6245
+ }, Iu = ({
6247
6246
  radius: e
6248
6247
  }) => p({
6249
6248
  "rounded-full": e === "large",
6250
6249
  "rounded-md": e === "medium",
6251
6250
  "rounded-xs": e === "small"
6252
- }), Au = ({
6251
+ }), Ru = ({
6253
6252
  mode: e,
6254
6253
  disabled: t,
6255
6254
  variant: r
@@ -6287,7 +6286,7 @@ const Su = ({
6287
6286
  });
6288
6287
  if (r === "selected")
6289
6288
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
6290
- }, Nu = ({
6289
+ }, Au = ({
6291
6290
  mode: e,
6292
6291
  disabled: t,
6293
6292
  variant: r
@@ -6325,7 +6324,7 @@ const Su = ({
6325
6324
  });
6326
6325
  if (r === "selected")
6327
6326
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
6328
- }, Ou = ({
6327
+ }, Nu = ({
6329
6328
  mode: e,
6330
6329
  noBorder: t,
6331
6330
  variant: r
@@ -6355,14 +6354,14 @@ const Su = ({
6355
6354
  });
6356
6355
  if (r === "selected")
6357
6356
  return "border border-border-selected-dark";
6358
- }, $u = ({
6357
+ }, Ou = ({
6359
6358
  focusMode: e
6360
6359
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
6361
6360
  "focus:outline-focus-dark": e === "dark",
6362
6361
  "focus:outline-focus-light": e === "light",
6363
6362
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
6364
6363
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
6365
- }), Pu = ({
6364
+ }), $u = ({
6366
6365
  mode: e,
6367
6366
  raw: t,
6368
6367
  iconClassName: r,
@@ -6389,11 +6388,11 @@ const Su = ({
6389
6388
  } : a === "selected" && (s = {
6390
6389
  "text-copy-lighter": !0
6391
6390
  }), p(s, r);
6392
- }, Mu = ({
6391
+ }, Pu = ({
6393
6392
  animated: e
6394
6393
  }) => p({
6395
6394
  "transition-opacity duration-300 ease-in-out": e
6396
- }), Lu = ({
6395
+ }), Mu = ({
6397
6396
  type: e,
6398
6397
  className: t,
6399
6398
  raw: r,
@@ -6413,15 +6412,15 @@ const Su = ({
6413
6412
  animated: k
6414
6413
  }) => (h || (h = "primary"), r ? p(us, t) : p(
6415
6414
  us,
6416
- Cu({
6415
+ xu({
6417
6416
  mode: a,
6418
6417
  variant: h,
6419
6418
  noBackground: u,
6420
6419
  truncate: f
6421
6420
  }),
6422
- Iu({ mode: a, noBackground: u, variant: h }),
6423
- Ru({ radius: y }),
6424
- Tu({
6421
+ Cu({ mode: a, noBackground: u, variant: h }),
6422
+ Iu({ radius: y }),
6423
+ Su({
6425
6424
  type: e,
6426
6425
  size: c,
6427
6426
  labelRight: d,
@@ -6429,11 +6428,11 @@ const Su = ({
6429
6428
  align: g,
6430
6429
  animated: k
6431
6430
  }),
6432
- xu({ type: e, size: c, labelRight: d, labelLeft: m }),
6433
- Ou({ mode: a, variant: h, noBorder: l }),
6434
- $u({ focusMode: s }),
6431
+ Tu({ type: e, size: c, labelRight: d, labelLeft: m }),
6432
+ Nu({ mode: a, variant: h, noBorder: l }),
6433
+ Ou({ focusMode: s }),
6434
+ Ru({ mode: a, variant: h, disabled: n }),
6435
6435
  Au({ mode: a, variant: h, disabled: n }),
6436
- Nu({ mode: a, variant: h, disabled: n }),
6437
6436
  {
6438
6437
  "w-full": o,
6439
6438
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -6442,7 +6441,7 @@ const Su = ({
6442
6441
  "transition-[width] duration-300 ease-in": k
6443
6442
  }),
6444
6443
  t
6445
- )), Bu = (e, t, r) => {
6444
+ )), Lu = (e, t, r) => {
6446
6445
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
6447
6446
  }, Fn = Z.forwardRef((e, t) => {
6448
6447
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -6451,20 +6450,20 @@ const Su = ({
6451
6450
  {
6452
6451
  ref: t,
6453
6452
  onClick: (n) => {
6454
- Bu(n, a, r);
6453
+ Lu(n, a, r);
6455
6454
  },
6456
6455
  ...s
6457
6456
  }
6458
6457
  );
6459
6458
  });
6460
6459
  Fn.displayName = "BaseButton";
6461
- function Du() {
6460
+ function Bu() {
6462
6461
  const e = R(!1);
6463
6462
  return $(() => (e.current = !0, () => {
6464
6463
  e.current = !1;
6465
6464
  }), []), V(() => e.current, []);
6466
6465
  }
6467
- function Uu(e) {
6466
+ function Du(e) {
6468
6467
  return he(() => e.every((t) => t == null) ? () => {
6469
6468
  } : (t) => {
6470
6469
  e.forEach((r) => {
@@ -6472,7 +6471,7 @@ function Uu(e) {
6472
6471
  });
6473
6472
  }, [...e]);
6474
6473
  }
6475
- const Hu = {
6474
+ const Uu = {
6476
6475
  x: 0,
6477
6476
  y: 0,
6478
6477
  width: 0,
@@ -6483,7 +6482,7 @@ const Hu = {
6483
6482
  right: 0
6484
6483
  };
6485
6484
  function gr(e) {
6486
- const t = Du(), r = R(0), a = R(null), [s, n] = z(Hu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
6485
+ const t = Bu(), r = R(0), a = R(null), [s, n] = z(Uu), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
6487
6486
  const l = c[0];
6488
6487
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
6489
6488
  a.current && t() && n(l.contentRect);
@@ -6500,14 +6499,14 @@ const Pt = {
6500
6499
  // w-8
6501
6500
  large: 48
6502
6501
  // w-12
6503
- }, Vu = {
6502
+ }, Hu = {
6504
6503
  small: 16,
6505
6504
  // px-2 x 2
6506
6505
  medium: 24,
6507
6506
  // px-3 x 2
6508
6507
  large: 32
6509
6508
  // px-4 x 2
6510
- }, zu = 2, Fu = 300, ma = Z.forwardRef(
6509
+ }, Vu = 2, zu = 300, ma = Z.forwardRef(
6511
6510
  ({
6512
6511
  children: e,
6513
6512
  disabled: t = !1,
@@ -6531,7 +6530,7 @@ const Pt = {
6531
6530
  animated: S = !1,
6532
6531
  ...N
6533
6532
  }, C) => {
6534
- const v = Lu({
6533
+ const v = Mu({
6535
6534
  type: ha,
6536
6535
  mode: r,
6537
6536
  focusMode: a,
@@ -6548,15 +6547,15 @@ const Pt = {
6548
6547
  radius: k,
6549
6548
  variant: b,
6550
6549
  animated: S
6551
- }), _ = Pu({ mode: r, raw: c, iconClassName: x, variant: b }), E = Mu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Uu([C, L]);
6550
+ }), _ = $u({ mode: r, raw: c, iconClassName: x, variant: b }), E = Pu({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = gr(), [O, W] = gr(), [M, J] = gr(), Q = R(0), L = R(null), P = R(null), q = Du([C, L]);
6552
6551
  return Oe(() => {
6553
- M && M.current && S && (Q.current = J.width + Vu[u] + (l ? 0 : zu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
6552
+ M && M.current && S && (Q.current = J.width + Hu[u] + (l ? 0 : Vu), L.current && !L.current.style.width && (L.current.style.width = `${Pt[u]}px`));
6554
6553
  }, [J, M, u, l, S]), Oe(() => {
6555
6554
  if (L && L.current && S) {
6556
6555
  let D = Pt[u];
6557
6556
  h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Pt[u] && (P.current = setTimeout(() => {
6558
6557
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
6559
- }, Fu * 0.8))), D === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
6558
+ }, zu * 0.8))), D === Pt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
6560
6559
  }
6561
6560
  }, [
6562
6561
  F,
@@ -6633,7 +6632,7 @@ try {
6633
6632
  });
6634
6633
  } catch {
6635
6634
  }
6636
- const Wu = Z.forwardRef(
6635
+ const Fu = Z.forwardRef(
6637
6636
  ({
6638
6637
  children: e,
6639
6638
  mode: t = "system",
@@ -6671,8 +6670,8 @@ const Wu = Z.forwardRef(
6671
6670
  ) });
6672
6671
  }
6673
6672
  );
6674
- Wu.displayName = "ButtonSort";
6675
- const ju = ({
6673
+ Fu.displayName = "ButtonSort";
6674
+ const Wu = ({
6676
6675
  children: e,
6677
6676
  fill: t,
6678
6677
  viewBox: r,
@@ -6715,14 +6714,14 @@ try {
6715
6714
  });
6716
6715
  } catch {
6717
6716
  }
6718
- const Gu = ({
6717
+ const ju = ({
6719
6718
  className: e,
6720
6719
  viewBox: t,
6721
6720
  title: r,
6722
6721
  monotone: a,
6723
6722
  ...s
6724
6723
  }) => /* @__PURE__ */ i(
6725
- ju,
6724
+ Wu,
6726
6725
  {
6727
6726
  defaultViewBox: "0 0 384 512",
6728
6727
  size: "size-5",
@@ -6753,7 +6752,7 @@ try {
6753
6752
  } catch {
6754
6753
  }
6755
6754
  const Wn = Y.createContext(null);
6756
- function Ku({
6755
+ function Gu({
6757
6756
  initialOpen: e = !1,
6758
6757
  open: t,
6759
6758
  onOpenChange: r
@@ -6787,14 +6786,14 @@ const Zt = () => {
6787
6786
  throw new Error("Modal components must be wrapped in <Modal />");
6788
6787
  return e;
6789
6788
  };
6790
- function Ju({
6789
+ function Ku({
6791
6790
  children: e,
6792
6791
  ...t
6793
6792
  }) {
6794
- const r = Ku(t);
6793
+ const r = Gu(t);
6795
6794
  return /* @__PURE__ */ i(Wn.Provider, { value: r, children: e });
6796
6795
  }
6797
- const qu = Y.forwardRef(function(e, t) {
6796
+ const Ju = Y.forwardRef(function(e, t) {
6798
6797
  const { context: r, ...a } = Zt(), s = Jr([a.refs.setFloating, t]);
6799
6798
  if (!r.open)
6800
6799
  return null;
@@ -6812,13 +6811,13 @@ const qu = Y.forwardRef(function(e, t) {
6812
6811
  children: o.children
6813
6812
  }
6814
6813
  ) }) }) });
6815
- }), Yu = Y.forwardRef(function({ children: e, ...t }, r) {
6814
+ }), qu = Y.forwardRef(function({ children: e, ...t }, r) {
6816
6815
  const { setLabelId: a } = Zt(), s = Kr();
6817
6816
  return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("h1", { ...t, ref: r, id: s, children: e });
6818
- }), Qu = Y.forwardRef(function({ children: e, ...t }, r) {
6817
+ }), Yu = Y.forwardRef(function({ children: e, ...t }, r) {
6819
6818
  const { setDescriptionId: a } = Zt(), s = Kr();
6820
6819
  return Y.useLayoutEffect(() => (a(s), () => a(void 0)), [s, a]), /* @__PURE__ */ i("div", { ...t, ref: r, id: s, children: e });
6821
- }), Xu = Y.forwardRef(function(e, t) {
6820
+ }), Qu = Y.forwardRef(function(e, t) {
6822
6821
  const { setOpen: r } = Zt(), { trigger: a, className: s, ...n } = e, o = Y.useCallback(() => r(!1), [r]);
6823
6822
  return /* @__PURE__ */ i("div", { className: s, children: Y.cloneElement(a, {
6824
6823
  ref: t,
@@ -6839,7 +6838,7 @@ try {
6839
6838
  });
6840
6839
  } catch {
6841
6840
  }
6842
- const Ke = "panel", Mt = "messagebox", Zu = ({
6841
+ const Ke = "panel", Mt = "messagebox", Xu = ({
6843
6842
  className: e,
6844
6843
  kind: t,
6845
6844
  borderMode: r,
@@ -6864,7 +6863,7 @@ const Ke = "panel", Mt = "messagebox", Zu = ({
6864
6863
  footer: "flex grow flex-col sm:p-4 p-2",
6865
6864
  header: "sm:p-4 mb-0 p-2",
6866
6865
  close: "sm:p-4 p-2"
6867
- }), eh = "slide", ms = "fade", th = ({
6866
+ }), Zu = "slide", ms = "fade", eh = ({
6868
6867
  open: e,
6869
6868
  onOpenChange: t,
6870
6869
  title: r,
@@ -6874,14 +6873,14 @@ const Ke = "panel", Mt = "messagebox", Zu = ({
6874
6873
  kind: o = Ke,
6875
6874
  className: c,
6876
6875
  animation: l = !1,
6877
- animationType: d = eh,
6876
+ animationType: d = Zu,
6878
6877
  maxWidth: m = "medium"
6879
6878
  }) => {
6880
6879
  const u = R(""), [h, f] = z(
6881
6880
  l ? d === ms ? { opacity: 0 } : {
6882
6881
  transform: "translateY(-100vh)"
6883
6882
  } : {}
6884
- ), g = Zu({
6883
+ ), g = Xu({
6885
6884
  className: c,
6886
6885
  kind: o,
6887
6886
  borderMode: n,
@@ -6906,10 +6905,10 @@ const Ke = "panel", Mt = "messagebox", Zu = ({
6906
6905
  }, 100);
6907
6906
  return () => clearTimeout(y);
6908
6907
  }
6909
- }, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(Ju, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(qu, { className: g.main, style: h, children: [
6908
+ }, [e, l, d]), /* @__PURE__ */ i(ue, { children: e && /* @__PURE__ */ i(Ku, { open: e, onOpenChange: t, children: /* @__PURE__ */ T(Ju, { className: g.main, style: h, children: [
6910
6909
  /* @__PURE__ */ T("div", { className: "flex flex-row-reverse items-center justify-between", children: [
6911
6910
  /* @__PURE__ */ i(
6912
- Xu,
6911
+ Qu,
6913
6912
  {
6914
6913
  className: g.close,
6915
6914
  trigger: /* @__PURE__ */ i(
@@ -6919,14 +6918,14 @@ const Ke = "panel", Mt = "messagebox", Zu = ({
6919
6918
  focusMode: "light",
6920
6919
  noBorder: !0,
6921
6920
  label: "Close",
6922
- children: /* @__PURE__ */ i(Gu, { monotone: !0 })
6921
+ children: /* @__PURE__ */ i(ju, { monotone: !0 })
6923
6922
  }
6924
6923
  )
6925
6924
  }
6926
6925
  ),
6927
- /* @__PURE__ */ i(Yu, { className: g.header, children: r })
6926
+ /* @__PURE__ */ i(qu, { className: g.header, children: r })
6928
6927
  ] }),
6929
- /* @__PURE__ */ i(Qu, { className: g.content, children: a }),
6928
+ /* @__PURE__ */ i(Yu, { className: g.content, children: a }),
6930
6929
  s && /* @__PURE__ */ i("div", { className: g.footer, children: s })
6931
6930
  ] }) }) });
6932
6931
  };
@@ -6952,7 +6951,7 @@ const Ye = ({
6952
6951
  noCancelAction: n = !1,
6953
6952
  primaryActionVariant: o = "danger"
6954
6953
  }) => /* @__PURE__ */ i(
6955
- th,
6954
+ eh,
6956
6955
  {
6957
6956
  kind: "messagebox",
6958
6957
  open: e,
@@ -7199,7 +7198,7 @@ const Ye = ({
7199
7198
  ), er = As((e, t) => /* @__PURE__ */ i(Vo, { children: /* @__PURE__ */ i(Gn, { ...e, ref: t }) }));
7200
7199
  er.displayName = "Menu";
7201
7200
  Gn.displayName = "MenuComponent";
7202
- const rh = ({
7201
+ const th = ({
7203
7202
  children: e,
7204
7203
  fill: t,
7205
7204
  viewBox: r,
@@ -7242,14 +7241,14 @@ try {
7242
7241
  });
7243
7242
  } catch {
7244
7243
  }
7245
- const ah = ({
7244
+ const rh = ({
7246
7245
  className: e,
7247
7246
  viewBox: t,
7248
7247
  title: r,
7249
7248
  monotone: a,
7250
7249
  ...s
7251
7250
  }) => /* @__PURE__ */ T(
7252
- rh,
7251
+ th,
7253
7252
  {
7254
7253
  defaultViewBox: "0 0 448 512",
7255
7254
  size: "size-5",
@@ -7334,7 +7333,7 @@ const Re = Y.forwardRef(
7334
7333
  }
7335
7334
  }),
7336
7335
  children: [
7337
- o && /* @__PURE__ */ i(ah, { className: "mr-2", size: "size-4" }),
7336
+ o && /* @__PURE__ */ i(rh, { className: "mr-2", size: "size-4" }),
7338
7337
  r,
7339
7338
  e && /* @__PURE__ */ i("span", { className: d, children: e })
7340
7339
  ]
@@ -7343,7 +7342,7 @@ const Re = Y.forwardRef(
7343
7342
  }
7344
7343
  );
7345
7344
  Re.displayName = "MenuItem";
7346
- const sh = ({ className: e, ...t }) => {
7345
+ const ah = ({ className: e, ...t }) => {
7347
7346
  const r = p(e, "my-1 border-t border-border-medium");
7348
7347
  return /* @__PURE__ */ i("div", { className: r, ...t });
7349
7348
  }, Kn = ({
@@ -7369,12 +7368,12 @@ try {
7369
7368
  });
7370
7369
  } catch {
7371
7370
  }
7372
- const nh = (e) => {
7371
+ const sh = (e) => {
7373
7372
  for (let t = 0; t < e.length; t++)
7374
7373
  if (e[t].enabled)
7375
7374
  return !0;
7376
7375
  return !1;
7377
- }, oh = ({
7376
+ }, nh = ({
7378
7377
  className: e,
7379
7378
  defaultPlacement: t = "top-start"
7380
7379
  }) => {
@@ -7393,7 +7392,7 @@ const nh = (e) => {
7393
7392
  prompt: g
7394
7393
  }
7395
7394
  });
7396
- }, u = d && l && l.tags && nh(l.tags), h = /* @__PURE__ */ T(
7395
+ }, u = d && l && l.tags && sh(l.tags), h = /* @__PURE__ */ T(
7397
7396
  er,
7398
7397
  {
7399
7398
  mode: "dark",
@@ -7535,7 +7534,7 @@ const nh = (e) => {
7535
7534
  ] });
7536
7535
  };
7537
7536
  let yr = null, br = null;
7538
- const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.hnWr_yax.js").then((e) => e.utilities)), br), ih = async () => {
7537
+ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = async () => (br || (br = import("./index.BHt3HQ51.js").then((e) => e.utilities)), br), oh = async () => {
7539
7538
  try {
7540
7539
  await Promise.all([qn(), Yn()]);
7541
7540
  } catch {
@@ -7556,7 +7555,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7556
7555
  }, 100);
7557
7556
  } catch {
7558
7557
  }
7559
- }, Xn = (e, t) => Qn(e, "success", t), nf = (e, t) => Qn(e, "error", t), Zn = ({
7558
+ }, Xn = (e, t) => Qn(e, "success", t), sf = (e, t) => Qn(e, "error", t), Zn = ({
7560
7559
  className: e
7561
7560
  }) => {
7562
7561
  const { user: t, getAccessToken: r } = Ve(), {
@@ -7641,7 +7640,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7641
7640
  }
7642
7641
  )
7643
7642
  ] });
7644
- }, ch = ({
7643
+ }, ih = ({
7645
7644
  className: e
7646
7645
  }) => {
7647
7646
  const {
@@ -7669,7 +7668,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7669
7668
  )
7670
7669
  }
7671
7670
  );
7672
- }, lh = [".pdf", ".txt"], dh = [
7671
+ }, ch = [".pdf", ".txt"], lh = [
7673
7672
  ".js",
7674
7673
  ".cjs",
7675
7674
  ".mjs",
@@ -7684,30 +7683,30 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7684
7683
  ".json",
7685
7684
  ".md"
7686
7685
  ], vr = [
7687
- ...lh,
7688
- ...dh
7689
- ], Wr = 400 * 1024, uh = "text/plain", hh = () => p(
7686
+ ...ch,
7687
+ ...lh
7688
+ ], Wr = 400 * 1024, dh = "text/plain", uh = () => p(
7690
7689
  "relative rounded-md text-base h-auto min-w-28 overflow-hidden pt-2"
7691
- ), ps = () => p("bg-surface-darker"), mh = () => p("text-copy-lighter caret-copy-light"), fh = () => p(
7690
+ ), ps = () => p("bg-surface-darker"), hh = () => p("text-copy-lighter caret-copy-light"), mh = () => p(
7692
7691
  "has-[.av-prompt-editable:focus]:outline",
7693
7692
  "has-[.av-prompt-editable:focus]:outline-2",
7694
7693
  "has-[.av-prompt-editable:focus]:outline-offset-2",
7695
7694
  "has-[.av-prompt-editable:focus]:outline-focus-light"
7696
- ), ph = () => p(
7695
+ ), fh = () => p(
7697
7696
  "peer",
7698
7697
  "text-base resize-none overflow-hidden w-full text-inherit outline-none",
7699
7698
  "h-6 pr-2 pl-4"
7700
- ), gh = ({ className: e }) => {
7699
+ ), ph = ({ className: e }) => {
7701
7700
  const t = p(
7702
7701
  _o,
7703
- hh(),
7702
+ uh(),
7704
7703
  ps(),
7704
+ hh(),
7705
7705
  mh(),
7706
- fh(),
7707
7706
  e
7708
7707
  ), r = p(
7709
7708
  So,
7710
- ph(),
7709
+ fh(),
7711
7710
  ps()
7712
7711
  );
7713
7712
  return {
@@ -7719,15 +7718,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7719
7718
  return "0 Bytes";
7720
7719
  const t = 1024, r = ["Bytes", "KB", "MB", "GB"], a = Math.floor(Math.log(e) / Math.log(t));
7721
7720
  return parseFloat((e / Math.pow(t, a)).toFixed(2)) + " " + r[a];
7722
- }, eo = (e) => e.reduce((t, r) => t + r.size, 0), yh = (e) => e.type ? e : new File(
7721
+ }, eo = (e) => e.reduce((t, r) => t + r.size, 0), gh = (e) => e.type ? e : new File(
7723
7722
  [e],
7724
7723
  // Use the original file content
7725
7724
  e.name,
7726
7725
  {
7727
- type: uh,
7726
+ type: dh,
7728
7727
  lastModified: e.lastModified
7729
7728
  }
7730
- ), bh = ({
7729
+ ), yh = ({
7731
7730
  files: e,
7732
7731
  clearFile: t
7733
7732
  }) => e && e.length > 0 && /* @__PURE__ */ T("div", { className: "px-4 py-2", children: [
@@ -7766,9 +7765,9 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7766
7765
  " ",
7767
7766
  zt(Wr)
7768
7767
  ] })
7769
- ] }), to = 24, vh = 500, ro = 2, wh = 5, kh = to * ro, gs = wh * to, Eh = "ready", _h = "streaming", Sh = "error", Th = "submitted", Lt = (e) => {
7770
- e.current && (e.current.style.height = `${kh}px`);
7771
- }, xh = () => {
7768
+ ] }), to = 24, bh = 500, ro = 2, vh = 5, wh = to * ro, gs = vh * to, kh = "ready", Eh = "streaming", _h = "error", Sh = "submitted", Lt = (e) => {
7769
+ e.current && (e.current.style.height = `${wh}px`);
7770
+ }, Th = () => {
7772
7771
  const { user: e, getAccessToken: t } = Ve(), [r, a] = z(!1), [s, n] = z(null), [o, c] = z(!1), [l, d] = z(!1), {
7773
7772
  dispatch: m,
7774
7773
  state: { reasoning: u, streaming: h, aborted: f, lastResetTimestamp: g, attachments: y }
@@ -7782,7 +7781,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7782
7781
  }), { data: N } = Xt({
7783
7782
  user: e?.username,
7784
7783
  getAccessToken: t
7785
- }), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O = gh({
7784
+ }), C = R(null), v = R(null), _ = R(!1), E = R(0), I = R(null), w = R(null), F = Fi(), O = ph({
7786
7785
  className: ""
7787
7786
  }), {
7788
7787
  input: W,
@@ -7803,25 +7802,25 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7803
7802
  }
7804
7803
  }), D = V(
7805
7804
  async (K) => {
7806
- K === Eh && m({
7805
+ K === kh && m({
7807
7806
  type: at,
7808
7807
  payload: {
7809
7808
  loading: !1,
7810
7809
  streaming: !1
7811
7810
  }
7812
- }), K === Th && m({
7811
+ }), K === Sh && m({
7813
7812
  type: at,
7814
7813
  payload: {
7815
7814
  loading: !0,
7816
7815
  streaming: !1
7817
7816
  }
7818
- }), K === _h && m({
7817
+ }), K === Eh && m({
7819
7818
  type: at,
7820
7819
  payload: {
7821
7820
  loading: !1,
7822
7821
  streaming: !0
7823
7822
  }
7824
- }), K === Sh && setTimeout(() => {
7823
+ }), K === _h && setTimeout(() => {
7825
7824
  f || (m({
7826
7825
  type: at,
7827
7826
  payload: {
@@ -7909,7 +7908,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7909
7908
  let ie;
7910
7909
  if (s && s.length > 0) {
7911
7910
  const ye = Array.from(s).map(
7912
- (B) => yh(B)
7911
+ (B) => gh(B)
7913
7912
  ), U = new DataTransfer();
7914
7913
  ye.forEach((B) => U.items.add(B)), ie = U.files;
7915
7914
  }
@@ -7917,7 +7916,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7917
7916
  headers: {
7918
7917
  "Content-Type": "application/json",
7919
7918
  authorization: `Bearer ${ne}`,
7920
- [Sd]: q
7919
+ [_d]: q
7921
7920
  },
7922
7921
  body: {
7923
7922
  reasoning: u
@@ -7950,7 +7949,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
7950
7949
  }
7951
7950
  g > 0 && g !== E.current ? (E.current = g, setTimeout(() => {
7952
7951
  w.current && (!W && Lt(w), w.current.focus());
7953
- }, vh)) : h === !1 && !W && (Lt(w), !Ae() && w.current && w.current.focus());
7952
+ }, bh)) : h === !1 && !W && (Lt(w), !Ae() && w.current && w.current.focus());
7954
7953
  }, [g, h, W]), $(() => {
7955
7954
  k.lastTriggeredTimestamp && setTimeout(() => {
7956
7955
  ge();
@@ -8020,13 +8019,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8020
8019
  }
8021
8020
  )
8022
8021
  ] }),
8023
- /* @__PURE__ */ i(bh, { files: s, clearFile: We }),
8022
+ /* @__PURE__ */ i(yh, { files: s, clearFile: We }),
8024
8023
  /* @__PURE__ */ T("div", { className: "p-2 flex items-center", children: [
8025
- /* @__PURE__ */ i(ch, { className: "order-7 ml-auto" }),
8026
- /* @__PURE__ */ i(Su, { className: "order-1 mr-4 sm:mr-2" }),
8027
- /* @__PURE__ */ i(oh, { className: "order-2 mr-4 sm:mr-2" }),
8024
+ /* @__PURE__ */ i(ih, { className: "order-7 ml-auto" }),
8025
+ /* @__PURE__ */ i(_u, { className: "order-1 mr-4 sm:mr-2" }),
8026
+ /* @__PURE__ */ i(nh, { className: "order-2 mr-4 sm:mr-2" }),
8028
8027
  /* @__PURE__ */ i(
8029
- _u,
8028
+ Eu,
8030
8029
  {
8031
8030
  className: "order-3 mr-4 sm:mr-2",
8032
8031
  onClick: Pe
@@ -8040,7 +8039,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8040
8039
  ] })
8041
8040
  ] }) })
8042
8041
  ] });
8043
- }, mt = "--sassy-bottom", Ch = ({ isComponent: e }) => {
8042
+ }, mt = "--sassy-bottom", xh = ({ isComponent: e }) => {
8044
8043
  const {
8045
8044
  state: { loading: t, streaming: r, restoring: a }
8046
8045
  } = X(be), {
@@ -8132,7 +8131,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8132
8131
  dd
8133
8132
  ),
8134
8133
  children: [
8135
- /* @__PURE__ */ i(xh, {}),
8134
+ /* @__PURE__ */ i(Th, {}),
8136
8135
  /* @__PURE__ */ i("div", { className: "w-full text-center text-xs text-copy-lighter pt-2", children: c })
8137
8136
  ]
8138
8137
  }
@@ -8153,14 +8152,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8153
8152
  label: "Google Gemini",
8154
8153
  icon: bi
8155
8154
  }
8156
- ], Ih = ({ className: e }) => {
8155
+ ], Ch = ({ className: e }) => {
8157
8156
  const {
8158
8157
  dispatch: t,
8159
8158
  state: { privateChat: r },
8160
8159
  setChatId: a,
8161
8160
  setInitialMessages: s
8162
8161
  } = X(be), { getAccessToken: n, user: o } = Ve(), { status: c } = Xe(), [l, d] = z(!1), m = V(() => {
8163
- l || (ih(), d(!0));
8162
+ l || (oh(), d(!0));
8164
8163
  }, [l]), { isSuccess: u, refetch: h, data: f } = Xt({
8165
8164
  user: o?.username,
8166
8165
  getAccessToken: n
@@ -8229,42 +8228,42 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8229
8228
  trigger: b
8230
8229
  }
8231
8230
  ) : /* @__PURE__ */ i("div", { className: e, children: b });
8232
- }, Rh = it(
8233
- () => import("./ProfileEntry.Fqucibbx.js").then((e) => ({
8231
+ }, Ih = it(
8232
+ () => import("./ProfileEntry.DSce1KE-.js").then((e) => ({
8234
8233
  default: e.Profile
8235
8234
  }))
8236
- ), Ah = it(
8237
- () => import("./SettingsEntry.D4ZIbtX1.js").then((e) => ({
8235
+ ), Rh = it(
8236
+ () => import("./SettingsEntry.C6gVMTQt.js").then((e) => ({
8238
8237
  default: e.SettingsPanel
8239
8238
  }))
8240
- ), Nh = it(
8241
- () => import("./HistoryEntry.Dp0Q-x9_.js").then((e) => ({
8239
+ ), Ah = it(
8240
+ () => import("./HistoryEntry.UcB26GcX.js").then((e) => ({
8242
8241
  default: e.HistoryPanel
8243
8242
  }))
8243
+ ), Nh = it(
8244
+ () => import("./AboutEntry.DtfIa2fS.js").then((e) => ({ default: e.About }))
8244
8245
  ), Oh = it(
8245
- () => import("./AboutEntry.aGXBhqlp.js").then((e) => ({ default: e.About }))
8246
- ), $h = it(
8247
- () => import("./UsageEntry.BR016ja-.js").then((e) => ({ default: e.Usage }))
8248
- ), Ph = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8246
+ () => import("./UsageEntry.BKyrXKcd.js").then((e) => ({ default: e.Usage }))
8247
+ ), $h = ({ type: e, open: t, onOpenChange: r }) => t ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("div", {}), children: (() => {
8249
8248
  switch (e) {
8250
8249
  case "profile":
8251
- return /* @__PURE__ */ i(Rh, { open: t, onOpenChange: r });
8250
+ return /* @__PURE__ */ i(Ih, { open: t, onOpenChange: r });
8252
8251
  case "settings":
8253
- return /* @__PURE__ */ i(Ah, { open: t, onOpenChange: r });
8252
+ return /* @__PURE__ */ i(Rh, { open: t, onOpenChange: r });
8254
8253
  case "history":
8255
- return /* @__PURE__ */ i(Nh, { open: t, onOpenChange: r });
8254
+ return /* @__PURE__ */ i(Ah, { open: t, onOpenChange: r });
8256
8255
  case "about":
8257
- return /* @__PURE__ */ i(Oh, { open: t, onOpenChange: r });
8256
+ return /* @__PURE__ */ i(Nh, { open: t, onOpenChange: r });
8258
8257
  case "usage":
8259
- return /* @__PURE__ */ i($h, { open: t, onOpenChange: r });
8258
+ return /* @__PURE__ */ i(Oh, { open: t, onOpenChange: r });
8260
8259
  default:
8261
8260
  return null;
8262
8261
  }
8263
- })() }) : null, Mh = ({
8262
+ })() }) : null, Ph = ({
8264
8263
  isComponent: e = !1
8265
8264
  }) => {
8266
8265
  const { logout: t, getAccessToken: r } = Ve(), [a, s] = z(null), [n, o] = z(!1), [c, l] = z(!1), [d, m] = z(!1), u = V(() => {
8267
- d || (import("./ProfileEntry.Fqucibbx.js"), import("./SettingsEntry.D4ZIbtX1.js"), import("./HistoryEntry.Dp0Q-x9_.js"), import("./AboutEntry.aGXBhqlp.js"), import("./UsageEntry.BR016ja-.js"), m(!0));
8266
+ d || (import("./ProfileEntry.DSce1KE-.js"), import("./SettingsEntry.C6gVMTQt.js"), import("./HistoryEntry.UcB26GcX.js"), import("./AboutEntry.DtfIa2fS.js"), import("./UsageEntry.BKyrXKcd.js"), m(!0));
8268
8267
  }, [d]), h = V((k) => {
8269
8268
  s(k);
8270
8269
  }, []), f = V(() => {
@@ -8314,7 +8313,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8314
8313
  }
8315
8314
  ),
8316
8315
  /* @__PURE__ */ i(
8317
- Ph,
8316
+ $h,
8318
8317
  {
8319
8318
  type: a,
8320
8319
  open: a !== null,
@@ -8329,7 +8328,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8329
8328
  rowGap: 0,
8330
8329
  columnGap: 0,
8331
8330
  children: [
8332
- /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(Ih, { className: " mr-4 sm:mr-2" }) }),
8331
+ /* @__PURE__ */ i(yt, { children: /* @__PURE__ */ i(Ch, { className: " mr-4 sm:mr-2" }) }),
8333
8332
  /* @__PURE__ */ i(yt, { children: Je() && /* @__PURE__ */ T(ue, { children: [
8334
8333
  n && /* @__PURE__ */ i(Jn, { className: "mr-4 sm:mr-2" }),
8335
8334
  /* @__PURE__ */ i(jn, { className: "mr-4 sm:mr-2" }),
@@ -8400,7 +8399,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8400
8399
  }
8401
8400
  ),
8402
8401
  !e && /* @__PURE__ */ T(ue, { children: [
8403
- /* @__PURE__ */ i(sh, {}),
8402
+ /* @__PURE__ */ i(ah, {}),
8404
8403
  /* @__PURE__ */ i(
8405
8404
  Re,
8406
8405
  {
@@ -8419,7 +8418,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8419
8418
  }
8420
8419
  ) })
8421
8420
  ] });
8422
- }, Lh = ({
8421
+ }, Mh = ({
8423
8422
  show: e,
8424
8423
  bottom: t,
8425
8424
  onClick: r,
@@ -8464,7 +8463,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8464
8463
  }
8465
8464
  )
8466
8465
  }
8467
- ) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link", Bh = ({
8466
+ ) : null, Ft = "av-bubble", ys = "av-button", fa = "icon", ao = "button", jr = "link", Lh = ({
8468
8467
  type: e,
8469
8468
  size: t,
8470
8469
  labelRight: r,
@@ -8500,7 +8499,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8500
8499
  "h-12": t === "large" && n && (r || a)
8501
8500
  });
8502
8501
  }
8503
- }, Dh = ({
8502
+ }, Bh = ({
8504
8503
  type: e,
8505
8504
  size: t,
8506
8505
  labelRight: r,
@@ -8523,7 +8522,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8523
8522
  [o]: t === "large" && (r || a)
8524
8523
  });
8525
8524
  }
8526
- }, Uh = ({
8525
+ }, Dh = ({
8527
8526
  mode: e,
8528
8527
  noBackground: t,
8529
8528
  truncate: r,
@@ -8559,7 +8558,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8559
8558
  return p("not-prose text-copy-lighter", {
8560
8559
  truncate: r
8561
8560
  });
8562
- }, Hh = ({
8561
+ }, Uh = ({
8563
8562
  mode: e,
8564
8563
  noBackground: t,
8565
8564
  variant: r
@@ -8589,13 +8588,13 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8589
8588
  if (r === "selected")
8590
8589
  return "bg-action-selected-dark";
8591
8590
  }
8592
- }, Vh = ({
8591
+ }, Hh = ({
8593
8592
  radius: e
8594
8593
  }) => p({
8595
8594
  "rounded-full": e === "large",
8596
8595
  "rounded-md": e === "medium",
8597
8596
  "rounded-xs": e === "small"
8598
- }), zh = ({
8597
+ }), Vh = ({
8599
8598
  mode: e,
8600
8599
  disabled: t,
8601
8600
  variant: r
@@ -8633,7 +8632,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8633
8632
  });
8634
8633
  if (r === "selected")
8635
8634
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
8636
- }, Fh = ({
8635
+ }, zh = ({
8637
8636
  mode: e,
8638
8637
  disabled: t,
8639
8638
  variant: r
@@ -8671,7 +8670,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8671
8670
  });
8672
8671
  if (r === "selected")
8673
8672
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
8674
- }, Wh = ({
8673
+ }, Fh = ({
8675
8674
  mode: e,
8676
8675
  noBorder: t,
8677
8676
  variant: r
@@ -8701,14 +8700,14 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8701
8700
  });
8702
8701
  if (r === "selected")
8703
8702
  return "border border-border-selected-dark";
8704
- }, jh = ({
8703
+ }, Wh = ({
8705
8704
  focusMode: e
8706
8705
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
8707
8706
  "focus:outline-focus-dark": e === "dark",
8708
8707
  "focus:outline-focus-light": e === "light",
8709
8708
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
8710
8709
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
8711
- }), Gh = ({
8710
+ }), jh = ({
8712
8711
  mode: e,
8713
8712
  raw: t,
8714
8713
  iconClassName: r,
@@ -8735,11 +8734,11 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8735
8734
  } : a === "selected" && (s = {
8736
8735
  "text-copy-lighter": !0
8737
8736
  }), p(s, r);
8738
- }, Kh = ({
8737
+ }, Gh = ({
8739
8738
  animated: e
8740
8739
  }) => p({
8741
8740
  "transition-opacity duration-300 ease-in-out": e
8742
- }), Jh = ({
8741
+ }), Kh = ({
8743
8742
  type: e,
8744
8743
  className: t,
8745
8744
  raw: r,
@@ -8759,15 +8758,15 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8759
8758
  animated: k
8760
8759
  }) => (h || (h = "primary"), r ? p(ys, t) : p(
8761
8760
  ys,
8762
- Uh({
8761
+ Dh({
8763
8762
  mode: a,
8764
8763
  variant: h,
8765
8764
  noBackground: u,
8766
8765
  truncate: f
8767
8766
  }),
8768
- Hh({ mode: a, noBackground: u, variant: h }),
8769
- Vh({ radius: y }),
8770
- Bh({
8767
+ Uh({ mode: a, noBackground: u, variant: h }),
8768
+ Hh({ radius: y }),
8769
+ Lh({
8771
8770
  type: e,
8772
8771
  size: c,
8773
8772
  labelRight: d,
@@ -8775,11 +8774,11 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8775
8774
  align: g,
8776
8775
  animated: k
8777
8776
  }),
8778
- Dh({ type: e, size: c, labelRight: d, labelLeft: m }),
8779
- Wh({ mode: a, variant: h, noBorder: l }),
8780
- jh({ focusMode: s }),
8777
+ Bh({ type: e, size: c, labelRight: d, labelLeft: m }),
8778
+ Fh({ mode: a, variant: h, noBorder: l }),
8779
+ Wh({ focusMode: s }),
8780
+ Vh({ mode: a, variant: h, disabled: n }),
8781
8781
  zh({ mode: a, variant: h, disabled: n }),
8782
- Fh({ mode: a, variant: h, disabled: n }),
8783
8782
  {
8784
8783
  "w-full": o,
8785
8784
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -8788,7 +8787,7 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8788
8787
  "transition-[width] duration-300 ease-in": k
8789
8788
  }),
8790
8789
  t
8791
- )), qh = (e, t, r) => {
8790
+ )), Jh = (e, t, r) => {
8792
8791
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
8793
8792
  }, so = Z.forwardRef((e, t) => {
8794
8793
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -8797,20 +8796,20 @@ const qn = async () => (yr || (yr = import("./index.B8EJY2WR.js")), yr), Yn = as
8797
8796
  {
8798
8797
  ref: t,
8799
8798
  onClick: (n) => {
8800
- qh(n, a, r);
8799
+ Jh(n, a, r);
8801
8800
  },
8802
8801
  ...s
8803
8802
  }
8804
8803
  );
8805
8804
  });
8806
8805
  so.displayName = "BaseButton";
8807
- function Yh() {
8806
+ function qh() {
8808
8807
  const e = R(!1);
8809
8808
  return $(() => (e.current = !0, () => {
8810
8809
  e.current = !1;
8811
8810
  }), []), V(() => e.current, []);
8812
8811
  }
8813
- function Qh(e) {
8812
+ function Yh(e) {
8814
8813
  return he(() => e.every((t) => t == null) ? () => {
8815
8814
  } : (t) => {
8816
8815
  e.forEach((r) => {
@@ -8818,7 +8817,7 @@ function Qh(e) {
8818
8817
  });
8819
8818
  }, [...e]);
8820
8819
  }
8821
- const Xh = {
8820
+ const Qh = {
8822
8821
  x: 0,
8823
8822
  y: 0,
8824
8823
  width: 0,
@@ -8829,7 +8828,7 @@ const Xh = {
8829
8828
  right: 0
8830
8829
  };
8831
8830
  function wr(e) {
8832
- const t = Yh(), r = R(0), a = R(null), [s, n] = z(Xh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8831
+ const t = qh(), r = R(0), a = R(null), [s, n] = z(Qh), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
8833
8832
  const l = c[0];
8834
8833
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
8835
8834
  a.current && t() && n(l.contentRect);
@@ -8846,14 +8845,14 @@ const Dt = {
8846
8845
  // w-8
8847
8846
  large: 48
8848
8847
  // w-12
8849
- }, Zh = {
8848
+ }, Xh = {
8850
8849
  small: 16,
8851
8850
  // px-2 x 2
8852
8851
  medium: 24,
8853
8852
  // px-3 x 2
8854
8853
  large: 32
8855
8854
  // px-4 x 2
8856
- }, em = 2, tm = 300, pa = Z.forwardRef(
8855
+ }, Zh = 2, em = 300, pa = Z.forwardRef(
8857
8856
  ({
8858
8857
  children: e,
8859
8858
  disabled: t = !1,
@@ -8877,7 +8876,7 @@ const Dt = {
8877
8876
  animated: S = !1,
8878
8877
  ...N
8879
8878
  }, C) => {
8880
- const v = Jh({
8879
+ const v = Kh({
8881
8880
  type: fa,
8882
8881
  mode: r,
8883
8882
  focusMode: a,
@@ -8894,15 +8893,15 @@ const Dt = {
8894
8893
  radius: k,
8895
8894
  variant: b,
8896
8895
  animated: S
8897
- }), _ = Gh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Kh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Qh([C, L]);
8896
+ }), _ = jh({ mode: r, raw: c, iconClassName: x, variant: b }), E = Gh({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = wr(), [O, W] = wr(), [M, J] = wr(), Q = R(0), L = R(null), P = R(null), q = Yh([C, L]);
8898
8897
  return Oe(() => {
8899
- M && M.current && S && (Q.current = J.width + Zh[u] + (l ? 0 : em), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
8898
+ M && M.current && S && (Q.current = J.width + Xh[u] + (l ? 0 : Zh), L.current && !L.current.style.width && (L.current.style.width = `${Dt[u]}px`));
8900
8899
  }, [J, M, u, l, S]), Oe(() => {
8901
8900
  if (L && L.current && S) {
8902
8901
  let D = Dt[u];
8903
8902
  h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Dt[u] && (P.current = setTimeout(() => {
8904
8903
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
8905
- }, tm * 0.8))), D === Dt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
8904
+ }, em * 0.8))), D === Dt[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
8906
8905
  }
8907
8906
  }, [
8908
8907
  F,
@@ -8979,7 +8978,7 @@ try {
8979
8978
  });
8980
8979
  } catch {
8981
8980
  }
8982
- const rm = Z.forwardRef(
8981
+ const tm = Z.forwardRef(
8983
8982
  ({
8984
8983
  children: e,
8985
8984
  mode: t = "system",
@@ -9017,7 +9016,7 @@ const rm = Z.forwardRef(
9017
9016
  ) });
9018
9017
  }
9019
9018
  );
9020
- rm.displayName = "ButtonSort";
9019
+ tm.displayName = "ButtonSort";
9021
9020
  const no = ({
9022
9021
  children: e,
9023
9022
  fill: t,
@@ -9061,7 +9060,7 @@ try {
9061
9060
  });
9062
9061
  } catch {
9063
9062
  }
9064
- const am = ({
9063
+ const rm = ({
9065
9064
  className: e,
9066
9065
  viewBox: t,
9067
9066
  title: r,
@@ -9087,7 +9086,7 @@ const am = ({
9087
9086
  /* @__PURE__ */ i("path", { d: "M337 175c9.4 9.4 9.4 24.6 0 33.9L209 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L303 175c9.4-9.4 24.6-9.4 33.9 0z" })
9088
9087
  ]
9089
9088
  }
9090
- ), sm = ({
9089
+ ), am = ({
9091
9090
  className: e,
9092
9091
  viewBox: t,
9093
9092
  title: r,
@@ -9118,20 +9117,20 @@ try {
9118
9117
  });
9119
9118
  } catch {
9120
9119
  }
9121
- const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9120
+ const sm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9122
9121
  "max-w-xs sm:max-w-md md:max-w-2xl": !t,
9123
9122
  "lg:max-w-3xl": e === "left" && !t
9124
- }), om = ({ kind: e }) => p({
9123
+ }), nm = ({ kind: e }) => p({
9125
9124
  "bg-surface-lighter dark:bg-surface-dark": e === "left",
9126
9125
  "bg-surface-accent": e === "right"
9127
- }), im = ({ kind: e }) => p(
9126
+ }), om = ({ kind: e }) => p(
9128
9127
  "prose prose-dark dark:prose-lighter",
9129
9128
  "prose-blockquote:my-1",
9130
9129
  "prose-ol:my-1 prose-ul:my-1",
9131
9130
  {
9132
9131
  "text-copy-lighter": e === "right"
9133
9132
  }
9134
- ), cm = ({ kind: e, tail: t }) => {
9133
+ ), im = ({ kind: e, tail: t }) => {
9135
9134
  if (t)
9136
9135
  return p(
9137
9136
  `${Ft}-${e}-tail`,
@@ -9152,7 +9151,7 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9152
9151
  "rounded-tr-xl": e === "left",
9153
9152
  "rounded-tl-xl": e === "right"
9154
9153
  });
9155
- }, lm = ({
9154
+ }, cm = ({
9156
9155
  kind: e,
9157
9156
  className: t,
9158
9157
  contentClassName: r,
@@ -9170,10 +9169,10 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9170
9169
  ), o = p(
9171
9170
  `${Ft}-content`,
9172
9171
  "flex flex-col empty:hidden",
9173
- nm({ kind: e, noMaxWidth: a }),
9174
- im({ kind: e }),
9172
+ sm({ kind: e, noMaxWidth: a }),
9175
9173
  om({ kind: e }),
9176
- cm({ kind: e, tail: s }),
9174
+ nm({ kind: e }),
9175
+ im({ kind: e, tail: s }),
9177
9176
  r
9178
9177
  ), c = "pr-2 pt-1 text-end text-xs text-copy-light", l = p("flex flex-col-reverse sm:flex-row", {
9179
9178
  "ml-2": e === "left" && !s,
@@ -9187,7 +9186,7 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9187
9186
  footer: c,
9188
9187
  copyButton: l
9189
9188
  };
9190
- }, dm = "FOOTER_EMPTY", oo = ({
9189
+ }, lm = "FOOTER_EMPTY", oo = ({
9191
9190
  children: e,
9192
9191
  kind: t = "left",
9193
9192
  className: r,
@@ -9200,7 +9199,7 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9200
9199
  noMaxWidth: d = !1,
9201
9200
  tail: m = !1
9202
9201
  }) => {
9203
- const [u, h] = z(!1), f = lm({
9202
+ const [u, h] = z(!1), f = cm({
9204
9203
  kind: t,
9205
9204
  className: r,
9206
9205
  contentClassName: a,
@@ -9221,7 +9220,7 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9221
9220
  /* @__PURE__ */ i("div", { className: f.main, children: e }),
9222
9221
  s && Object.keys(s).map((k, b) => {
9223
9222
  const x = s[k];
9224
- return x === dm ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${k}-${b}`) : x ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: f.footer, children: [
9223
+ return x === lm ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ i("p", { className: f.footer, "aria-hidden": "true", children: /* @__PURE__ */ i("span", { className: "invisible", children: " " }) }) }, `${k}-${b}`) : x ? /* @__PURE__ */ i("div", { className: "prose-p:m-0", children: /* @__PURE__ */ T("p", { className: f.footer, children: [
9225
9224
  k,
9226
9225
  ": ",
9227
9226
  x
@@ -9240,7 +9239,7 @@ const nm = ({ kind: e, noMaxWidth: t }) => p("px-4 py-2", {
9240
9239
  label: u ? "Copied to clipboard" : "Copy to clipboard",
9241
9240
  onClick: y,
9242
9241
  disabled: u,
9243
- children: u ? /* @__PURE__ */ i(am, { size: "size-3" }) : /* @__PURE__ */ i(sm, { size: "size-3" })
9242
+ children: u ? /* @__PURE__ */ i(rm, { size: "size-3" }) : /* @__PURE__ */ i(am, { size: "size-3" })
9244
9243
  }
9245
9244
  ) })
9246
9245
  ] });
@@ -9258,7 +9257,7 @@ try {
9258
9257
  });
9259
9258
  } catch {
9260
9259
  }
9261
- const vs = "av-spinner", um = ({
9260
+ const vs = "av-spinner", dm = ({
9262
9261
  spinnerRef: e,
9263
9262
  mode: t = "system",
9264
9263
  type: r = "circle",
@@ -9305,7 +9304,7 @@ try {
9305
9304
  });
9306
9305
  } catch {
9307
9306
  }
9308
- const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9307
+ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", um = ({
9309
9308
  type: e,
9310
9309
  size: t,
9311
9310
  labelRight: r,
@@ -9341,7 +9340,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9341
9340
  "h-12": t === "large" && n && (r || a)
9342
9341
  });
9343
9342
  }
9344
- }, mm = ({
9343
+ }, hm = ({
9345
9344
  type: e,
9346
9345
  size: t,
9347
9346
  labelRight: r,
@@ -9364,7 +9363,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9364
9363
  [o]: t === "large" && (r || a)
9365
9364
  });
9366
9365
  }
9367
- }, fm = ({
9366
+ }, mm = ({
9368
9367
  mode: e,
9369
9368
  noBackground: t,
9370
9369
  truncate: r,
@@ -9400,7 +9399,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9400
9399
  return p("not-prose text-copy-lighter", {
9401
9400
  truncate: r
9402
9401
  });
9403
- }, pm = ({
9402
+ }, fm = ({
9404
9403
  mode: e,
9405
9404
  noBackground: t,
9406
9405
  variant: r
@@ -9430,13 +9429,13 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9430
9429
  if (r === "selected")
9431
9430
  return "bg-action-selected-dark";
9432
9431
  }
9433
- }, gm = ({
9432
+ }, pm = ({
9434
9433
  radius: e
9435
9434
  }) => p({
9436
9435
  "rounded-full": e === "large",
9437
9436
  "rounded-md": e === "medium",
9438
9437
  "rounded-xs": e === "small"
9439
- }), ym = ({
9438
+ }), gm = ({
9440
9439
  mode: e,
9441
9440
  disabled: t,
9442
9441
  variant: r
@@ -9474,7 +9473,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9474
9473
  });
9475
9474
  if (r === "selected")
9476
9475
  return "hover:text-copy-light-hover hover:bg-action-selected-dark-hover";
9477
- }, bm = ({
9476
+ }, ym = ({
9478
9477
  mode: e,
9479
9478
  disabled: t,
9480
9479
  variant: r
@@ -9512,7 +9511,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9512
9511
  });
9513
9512
  if (r === "selected")
9514
9513
  return "active:text-copy-lighter-active active:bg-action-selected-dark-active";
9515
- }, vm = ({
9514
+ }, bm = ({
9516
9515
  mode: e,
9517
9516
  noBorder: t,
9518
9517
  variant: r
@@ -9542,14 +9541,14 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9542
9541
  });
9543
9542
  if (r === "selected")
9544
9543
  return "border border-border-selected-dark";
9545
- }, wm = ({
9544
+ }, vm = ({
9546
9545
  focusMode: e
9547
9546
  }) => p("focus:outline", "focus:outline-2", "focus:outline-offset-2", {
9548
9547
  "focus:outline-focus-dark": e === "dark",
9549
9548
  "focus:outline-focus-light": e === "light",
9550
9549
  "focus:outline-focus-light dark:focus:outline-focus-dark": e === "alt-system",
9551
9550
  "focus:outline-focus-dark dark:focus:outline-focus-light": e === "system"
9552
- }), km = ({
9551
+ }), wm = ({
9553
9552
  mode: e,
9554
9553
  raw: t,
9555
9554
  iconClassName: r,
@@ -9576,7 +9575,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9576
9575
  } : a === "selected" && (s = {
9577
9576
  "text-copy-lighter": !0
9578
9577
  }), p(s, r);
9579
- }, Em = ({
9578
+ }, km = ({
9580
9579
  animated: e
9581
9580
  }) => p({
9582
9581
  "transition-opacity duration-300 ease-in-out": e
@@ -9600,15 +9599,15 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9600
9599
  animated: k
9601
9600
  }) => (h || (h = "primary"), r ? p(ws, t) : p(
9602
9601
  ws,
9603
- fm({
9602
+ mm({
9604
9603
  mode: a,
9605
9604
  variant: h,
9606
9605
  noBackground: u,
9607
9606
  truncate: f
9608
9607
  }),
9609
- pm({ mode: a, noBackground: u, variant: h }),
9610
- gm({ radius: y }),
9611
- hm({
9608
+ fm({ mode: a, noBackground: u, variant: h }),
9609
+ pm({ radius: y }),
9610
+ um({
9612
9611
  type: e,
9613
9612
  size: c,
9614
9613
  labelRight: d,
@@ -9616,11 +9615,11 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9616
9615
  align: g,
9617
9616
  animated: k
9618
9617
  }),
9619
- mm({ type: e, size: c, labelRight: d, labelLeft: m }),
9620
- vm({ mode: a, variant: h, noBorder: l }),
9621
- wm({ focusMode: s }),
9618
+ hm({ type: e, size: c, labelRight: d, labelLeft: m }),
9619
+ bm({ mode: a, variant: h, noBorder: l }),
9620
+ vm({ focusMode: s }),
9621
+ gm({ mode: a, variant: h, disabled: n }),
9622
9622
  ym({ mode: a, variant: h, disabled: n }),
9623
- bm({ mode: a, variant: h, disabled: n }),
9624
9623
  {
9625
9624
  "w-full": o,
9626
9625
  "disabled:cursor-not-allowed disabled:opacity-50": n
@@ -9629,7 +9628,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9629
9628
  "transition-[width] duration-300 ease-in": e === tr && k
9630
9629
  }),
9631
9630
  t
9632
- )), _m = (e, t, r) => {
9631
+ )), Em = (e, t, r) => {
9633
9632
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof e?.currentTarget?.focus == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
9634
9633
  }, ya = Z.forwardRef((e, t) => {
9635
9634
  const { onClick: r, noInternalClick: a = !1, ...s } = e;
@@ -9638,7 +9637,7 @@ const ws = "av-button", tr = "icon", ga = "button", Gr = "link", hm = ({
9638
9637
  {
9639
9638
  ref: t,
9640
9639
  onClick: (n) => {
9641
- _m(n, a, r);
9640
+ Em(n, a, r);
9642
9641
  },
9643
9642
  ...s
9644
9643
  }
@@ -9688,13 +9687,13 @@ const co = Z.forwardRef(
9688
9687
  }
9689
9688
  );
9690
9689
  co.displayName = "Button";
9691
- function Sm() {
9690
+ function _m() {
9692
9691
  const e = R(!1);
9693
9692
  return $(() => (e.current = !0, () => {
9694
9693
  e.current = !1;
9695
9694
  }), []), V(() => e.current, []);
9696
9695
  }
9697
- function Tm(e) {
9696
+ function Sm(e) {
9698
9697
  return he(() => e.every((t) => t == null) ? () => {
9699
9698
  } : (t) => {
9700
9699
  e.forEach((r) => {
@@ -9702,7 +9701,7 @@ function Tm(e) {
9702
9701
  });
9703
9702
  }, [...e]);
9704
9703
  }
9705
- const xm = {
9704
+ const Tm = {
9706
9705
  x: 0,
9707
9706
  y: 0,
9708
9707
  width: 0,
@@ -9713,7 +9712,7 @@ const xm = {
9713
9712
  right: 0
9714
9713
  };
9715
9714
  function kr(e) {
9716
- const t = Sm(), r = R(0), a = R(null), [s, n] = z(xm), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9715
+ const t = _m(), r = R(0), a = R(null), [s, n] = z(Tm), o = he(() => typeof ResizeObserver > "u" ? null : new ResizeObserver((c) => {
9717
9716
  const l = c[0];
9718
9717
  l && (cancelAnimationFrame(r.current), r.current = requestAnimationFrame(() => {
9719
9718
  a.current && t() && n(l.contentRect);
@@ -9730,14 +9729,14 @@ const Ut = {
9730
9729
  // w-8
9731
9730
  large: 48
9732
9731
  // w-12
9733
- }, Cm = {
9732
+ }, xm = {
9734
9733
  small: 16,
9735
9734
  // px-2 x 2
9736
9735
  medium: 24,
9737
9736
  // px-3 x 2
9738
9737
  large: 32
9739
9738
  // px-4 x 2
9740
- }, Im = 2, Rm = 300, lo = Z.forwardRef(
9739
+ }, Cm = 2, Im = 300, lo = Z.forwardRef(
9741
9740
  ({
9742
9741
  children: e,
9743
9742
  disabled: t = !1,
@@ -9778,15 +9777,15 @@ const Ut = {
9778
9777
  radius: k,
9779
9778
  variant: b,
9780
9779
  animated: S
9781
- }), _ = km({ mode: r, raw: c, iconClassName: x, variant: b }), E = Em({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = kr(), [O, W] = kr(), [M, J] = kr(), Q = R(0), L = R(null), P = R(null), q = Tm([C, L]);
9780
+ }), _ = wm({ mode: r, raw: c, iconClassName: x, variant: b }), E = km({ animated: S }), I = "flex items-center justify-center relative w-full h-full overflow-hidden", [w, F] = kr(), [O, W] = kr(), [M, J] = kr(), Q = R(0), L = R(null), P = R(null), q = Sm([C, L]);
9782
9781
  return Oe(() => {
9783
- M && M.current && S && (Q.current = J.width + Cm[u] + (l ? 0 : Im), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
9782
+ M && M.current && S && (Q.current = J.width + xm[u] + (l ? 0 : Cm), L.current && !L.current.style.width && (L.current.style.width = `${Ut[u]}px`));
9784
9783
  }, [J, M, u, l, S]), Oe(() => {
9785
9784
  if (L && L.current && S) {
9786
9785
  let D = Ut[u];
9787
9786
  h && w && F.width > 0 ? D = F.width + Q.current : f && O && W.width > 0 && (D = W.width + Q.current), P.current && clearTimeout(P.current), D !== parseInt(L.current.style.width || "0", 10) && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"), L.current.style.width = `${D}px`, D > Ut[u] && (P.current = setTimeout(() => {
9788
9787
  w.current && h && (w.current.style.opacity = "1"), O.current && f && (O.current.style.opacity = "1"), P.current = null;
9789
- }, Rm * 0.8))), D === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
9788
+ }, Im * 0.8))), D === Ut[u] && (w.current && (w.current.style.opacity = "0"), O.current && (O.current.style.opacity = "0"));
9790
9789
  }
9791
9790
  }, [
9792
9791
  F,
@@ -9863,7 +9862,7 @@ try {
9863
9862
  });
9864
9863
  } catch {
9865
9864
  }
9866
- const Am = Z.forwardRef(
9865
+ const Rm = Z.forwardRef(
9867
9866
  ({
9868
9867
  children: e,
9869
9868
  mode: t = "system",
@@ -9901,10 +9900,10 @@ const Am = Z.forwardRef(
9901
9900
  ) });
9902
9901
  }
9903
9902
  );
9904
- Am.displayName = "ButtonSort";
9905
- const Nm = 200, Om = ({
9903
+ Rm.displayName = "ButtonSort";
9904
+ const Am = 200, Nm = ({
9906
9905
  string: e,
9907
- idealLength: t = Nm
9906
+ idealLength: t = Am
9908
9907
  }) => {
9909
9908
  if (e.length <= t)
9910
9909
  return { string: e, isTruncated: !1 };
@@ -9915,7 +9914,7 @@ const Nm = 200, Om = ({
9915
9914
  string: e.slice(0, t + r),
9916
9915
  isTruncated: !0
9917
9916
  };
9918
- }, $m = ({
9917
+ }, Om = ({
9919
9918
  children: e,
9920
9919
  length: t = 200,
9921
9920
  mode: r = "system",
@@ -9924,7 +9923,7 @@ const Nm = 200, Om = ({
9924
9923
  const [s, n] = z(!1);
9925
9924
  if (typeof e != "string")
9926
9925
  return e;
9927
- const { string: o, isTruncated: c } = Om({
9926
+ const { string: o, isTruncated: c } = Nm({
9928
9927
  string: e,
9929
9928
  idealLength: t
9930
9929
  });
@@ -9958,7 +9957,7 @@ try {
9958
9957
  });
9959
9958
  } catch {
9960
9959
  }
9961
- const Pm = ({ content: e }) => /* @__PURE__ */ i(
9960
+ const $m = ({ content: e }) => /* @__PURE__ */ i(
9962
9961
  oo,
9963
9962
  {
9964
9963
  tail: !0,
@@ -9966,14 +9965,14 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
9966
9965
  copyToClipboard: e,
9967
9966
  copyToClipboardFocusMode: "light",
9968
9967
  className: "mt-3",
9969
- children: /* @__PURE__ */ i($m, { mode: "light", focusMode: "light", children: e })
9968
+ children: /* @__PURE__ */ i(Om, { mode: "light", focusMode: "light", children: e })
9970
9969
  }
9971
- ), Es = 2, Mm = it(
9970
+ ), Es = 2, Pm = it(
9972
9971
  () => import(
9973
9972
  /* webpackChunkName: "LazyMessageAssistant" */
9974
- "./ChatBubbleAssistant.B4lGVaWx.js"
9973
+ "./ChatBubbleAssistant.bPwtAU9h.js"
9975
9974
  )
9976
- ), Lm = Z.memo(
9975
+ ), Mm = Z.memo(
9977
9976
  ({
9978
9977
  role: e,
9979
9978
  content: t,
@@ -9984,8 +9983,8 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
9984
9983
  const {
9985
9984
  state: { restoring: n, streaming: o }
9986
9985
  } = X(be);
9987
- return e === hd && t ? /* @__PURE__ */ i(Pm, { content: t }) : o && (e === qt || e === Tr) && (!t || t && t.length < Es) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(um, { type: "dots" }) }) : (e === qt || e === Tr) && t && t.length >= Es ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9988
- Mm,
9986
+ return e === hd && t ? /* @__PURE__ */ i($m, { content: t }) : o && (e === qt || e === Tr) && (!t || t && t.length < Es) ? /* @__PURE__ */ i(oo, { tail: !0, children: /* @__PURE__ */ i(dm, { type: "dots" }) }) : (e === qt || e === Tr) && t && t.length >= Es ? /* @__PURE__ */ i(Ns, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(
9987
+ Pm,
9989
9988
  {
9990
9989
  role: e,
9991
9990
  content: t,
@@ -9996,7 +9995,7 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
9996
9995
  }
9997
9996
  ) }) : null;
9998
9997
  }
9999
- ), Bm = () => {
9998
+ ), Lm = () => {
10000
9999
  const { messages: e } = Xe(), t = e ? e.map((r, a) => r.role === qt ? a : -1).filter((r) => r !== -1).pop() : -1;
10001
10000
  return e && e.length > 0 ? /* @__PURE__ */ i("div", { className: "space-y-6 mt-2 @container", children: e?.map((r, a) => {
10002
10001
  let s;
@@ -10012,7 +10011,7 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
10012
10011
  }), c = o && o.length > 0 ? o.filter(Boolean).join(`
10013
10012
  `) : void 0, l = r.role === qt && a === t;
10014
10013
  return /* @__PURE__ */ i(
10015
- Lm,
10014
+ Mm,
10016
10015
  {
10017
10016
  role: r.role,
10018
10017
  content: c,
@@ -10023,7 +10022,7 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
10023
10022
  n
10024
10023
  );
10025
10024
  }) }) : null;
10026
- }, Dm = () => {
10025
+ }, Bm = () => {
10027
10026
  const { isAuthenticated: e } = Ve(), { ref: t, inViewport: r } = Di(), a = R(null), s = R(null), {
10028
10027
  state: { footerPosition: n, footerHeight: o, footerOffset: c }
10029
10028
  } = X(ca), {
@@ -10045,12 +10044,12 @@ const Pm = ({ content: e }) => /* @__PURE__ */ i(
10045
10044
  }, [n, o, c]), /* @__PURE__ */ T(ue, { children: [
10046
10045
  /* @__PURE__ */ T("div", { className: u, ref: a, children: [
10047
10046
  /* @__PURE__ */ i(No, { className: f }),
10048
- /* @__PURE__ */ i(Bm, {}),
10047
+ /* @__PURE__ */ i(Lm, {}),
10049
10048
  /* @__PURE__ */ i("div", { ref: t, className: "scroll-marker" }),
10050
10049
  /* @__PURE__ */ i("div", { ref: s, className: "pt-20" })
10051
10050
  ] }),
10052
10051
  /* @__PURE__ */ i(
10053
- Lh,
10052
+ Mh,
10054
10053
  {
10055
10054
  show: !r && n === qe,
10056
10055
  bottom: m.current,
@@ -10171,7 +10170,7 @@ function uo({
10171
10170
  className: Oa({
10172
10171
  extraClass: "mt-5"
10173
10172
  }),
10174
- children: /* @__PURE__ */ i(Mh, { isComponent: e })
10173
+ children: /* @__PURE__ */ i(Ph, { isComponent: e })
10175
10174
  }
10176
10175
  ),
10177
10176
  /* @__PURE__ */ i(
@@ -10185,10 +10184,10 @@ function uo({
10185
10184
  style: {
10186
10185
  height: s
10187
10186
  },
10188
- children: /* @__PURE__ */ i(Dm, {})
10187
+ children: /* @__PURE__ */ i(Bm, {})
10189
10188
  }
10190
10189
  ),
10191
- /* @__PURE__ */ i(Ch, { isComponent: e })
10190
+ /* @__PURE__ */ i(xh, { isComponent: e })
10192
10191
  ]
10193
10192
  }
10194
10193
  )
@@ -10200,51 +10199,51 @@ function uo({
10200
10199
  );
10201
10200
  }
10202
10201
  uo.displayName = "App";
10203
- const of = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
10202
+ const nf = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: uo }, Symbol.toStringTag, { value: "Module" }));
10204
10203
  export {
10205
- of as App,
10206
- Lh as ButtonScroll,
10204
+ nf as App,
10205
+ Mh as ButtonScroll,
10207
10206
  Zs as CHAT_SET_PROVIDER,
10208
10207
  at as CHAT_SET_STATUS,
10209
10208
  be as ChatContext,
10210
10209
  Ye as ConfirmationPanel,
10211
- Wm as De,
10210
+ Fm as De,
10212
10211
  Gt as E,
10213
10212
  ft as E$1,
10214
- Gm as Fe,
10215
- Km as Ge,
10216
- jm as He,
10213
+ Zm as Ee,
10214
+ jm as Fe,
10215
+ Gm as Ge,
10216
+ Wm as He,
10217
10217
  oa as HistoryContext,
10218
10218
  ss as LazyToastContainerWrapper,
10219
- dm as Me,
10220
- Rn as O,
10219
+ lm as Me,
10221
10220
  oo as Oe,
10222
10221
  wc as Pe,
10223
10222
  ze as SERVICE_TYPES,
10224
- qm as Ye,
10223
+ Jm as Ye,
10225
10224
  bi as a,
10226
- fi as a$1,
10225
+ na as a$1,
10226
+ fi as a$2,
10227
10227
  Di as b,
10228
10228
  pn as getDefaultExportFromCjs,
10229
10229
  Fi as i,
10230
- ef as k,
10230
+ In as i$1,
10231
10231
  en as mutateCall,
10232
- na as n,
10233
- tf as nt,
10232
+ ef as nt,
10234
10233
  Si as p,
10235
10234
  di as p$1,
10236
- Jm as qe,
10235
+ Km as qe,
10237
10236
  Rc as setNewProvider,
10238
- nf as showErrorToast,
10237
+ sf as showErrorToast,
10239
10238
  Xn as showSuccessToast,
10240
10239
  $e as st,
10241
- In as t,
10242
- th as tt,
10240
+ eh as tt,
10243
10241
  Xe as useAiChat,
10244
- Qm as useChangelogs,
10242
+ Ym as useChangelogs,
10245
10243
  Cn as useChatsHistory,
10246
- Zm as useChatsUsage,
10247
- Ym as useServerCapabilities,
10248
- Xm as useUserChatStats,
10249
- Xt as useUserPreferences
10244
+ Xm as useChatsUsage,
10245
+ qm as useServerCapabilities,
10246
+ Qm as useUserChatStats,
10247
+ Xt as useUserPreferences,
10248
+ Rn as y
10250
10249
  };