@versini/sassysaint 8.0.0 → 8.0.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,9 +1,9 @@
1
1
  import { jsx as i, jsxs as x, Fragment as Q } from "react/jsx-runtime";
2
- import { f as J, ACTION_SORT as Gt, ACTION_SEARCH as Ra, ACTION_RESET_PROMPT as Aa, ACTION_TOGGLE_PROMPT as La, useSWR as it, DEFAULT_AI_PROVIDER as qn, isProbablyiPhone as Jt, re as pe, DEFAULT_ICON_ACTION_SIZE as ke, L as yt, j as Te, C as Le, LOCAL_STORAGE_PREFIX as Be, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Zn, un as ae, useUserPreferences as bt, serviceCall as Ke, SERVICE_TYPES as Xe, PROVIDER_ANTHROPIC as Bt, PROVIDER_OPENAI as Mr, setNewProvider as $a, PROMPT_CLASSNAME as Qn, PROMPT_EDITABLE_AREA_CLASSNAME as eo, ROLE_INTERNAL as Yt, ERROR_MESSAGE as to, CLIPBOARD_PROMPT as Br, INPUT_PLACEHOLDER_TEXT as ro, FOOTER_DISCLAIMER as ao, useServerCapabilities as no, R as me, CARDS as K, renderDataAsList as ht, pluralize as dr, ABOUT_TITLE as oo, INFINITE_SCROLL_LIMIT as Or, INFINITE_SCROLL_THRESHOLD as Pr, LOCAL_STORAGE_SORT as Ma, useChatsHistory as so, LOCAL_STORAGE_SEARCH as Ba, HISTORY_TITLE as io, fe as lo, debounce as co, M as uo, isElectron as mo, l as zr, durationFormatter as ho, useUserChatStats as fo, PROFILE_TITLE as po, LOCAL_STORAGE_CHAT_DETAILS as go, SETTINGS_TITLE as yo, APP_NAME as bo, PROMPTS_DESCRIPTION as vo, getCurrentGeoLocation as ko, LOG_OUT as Dr, ROLE_ASSISTANT as wo, ROLE_USER as xo, getMessageContaintWrapperClass as _o, UI_FOOTER_BUFFER as Oa, UI_BUTTON_SCROLL_BUFFER as To, Logo as Io, UI_DEFAULT_MAIN_HEIGHT as Vr, usePreloadChatsHistory as No, serverUrl as Eo, getMainPaddingClass as Fr, I as Co } from "./index.qsG-2ad0.js";
2
+ import { f as J, ACTION_SORT as Gt, ACTION_SEARCH as Ra, ACTION_RESET_PROMPT as Aa, ACTION_TOGGLE_PROMPT as La, useSWR as it, DEFAULT_AI_PROVIDER as qn, isProbablyiPhone as Jt, re as pe, DEFAULT_ICON_ACTION_SIZE as we, L as yt, j as Te, C as Le, LOCAL_STORAGE_PREFIX as Be, LOCAL_STORAGE_PRIVATE_DISCLOSURE as Zn, un as ae, useUserPreferences as bt, serviceCall as Xe, SERVICE_TYPES as qe, PROVIDER_ANTHROPIC as Bt, PROVIDER_OPENAI as Mr, setNewProvider as $a, PROMPT_CLASSNAME as Qn, PROMPT_EDITABLE_AREA_CLASSNAME as eo, ROLE_INTERNAL as Yt, ERROR_MESSAGE as to, CLIPBOARD_PROMPT as Br, INPUT_PLACEHOLDER_TEXT as ro, FOOTER_DISCLAIMER as ao, useServerCapabilities as no, R as me, CARDS as K, renderDataAsList as ht, pluralize as dr, ABOUT_TITLE as oo, INFINITE_SCROLL_LIMIT as Or, INFINITE_SCROLL_THRESHOLD as Pr, LOCAL_STORAGE_SORT as Ma, useChatsHistory as so, LOCAL_STORAGE_SEARCH as Ba, HISTORY_TITLE as io, fe as lo, debounce as co, M as uo, isElectron as mo, l as Dr, durationFormatter as ho, useUserChatStats as fo, PROFILE_TITLE as po, LOCAL_STORAGE_CHAT_DETAILS as go, SETTINGS_TITLE as yo, APP_NAME as bo, PROMPTS_DESCRIPTION as vo, getCurrentGeoLocation as ko, LOG_OUT as zr, ROLE_ASSISTANT as wo, ROLE_USER as xo, getMessageContaintWrapperClass as _o, UI_FOOTER_BUFFER as Oa, UI_BUTTON_SCROLL_BUFFER as To, Logo as Io, UI_DEFAULT_MAIN_HEIGHT as Vr, usePreloadChatsHistory as No, serverUrl as Eo, getMainPaddingClass as Fr, I as Co } from "./index.DC_ZqB-v.js";
3
3
  import h from "clsx";
4
4
  import * as Z from "react";
5
- import G, { useEffect as B, useRef as A, useState as P, useCallback as U, useSyncExternalStore as So, useMemo as de, useId as vt, useLayoutEffect as ee, useContext as j, createContext as Ro, forwardRef as Pa, Fragment as Ao, useReducer as Ge, lazy as Lo, Suspense as Hr } from "react";
6
- import { useMergeRefs as ur, FloatingPortal as za, FloatingOverlay as $o, FloatingFocusManager as Da, useFloating as Va, useClick as Fa, useDismiss as Ha, useRole as Ua, useInteractions as ja, useFloatingTree as Wa, useFloatingNodeId as Mo, useListItem as Ga, offset as Bo, flip as Oo, shift as Po, autoUpdate as zo, useListNavigation as Do, useTypeahead as Vo, FloatingNode as Fo, FloatingList as Ho, FloatingTree as Uo } from "@floating-ui/react";
5
+ import G, { useEffect as B, useRef as A, useState as P, useCallback as U, useSyncExternalStore as So, useMemo as de, useId as vt, useLayoutEffect as ee, useContext as j, createContext as Ro, forwardRef as Pa, Fragment as Ao, useReducer as Je, lazy as Lo, Suspense as Hr } from "react";
6
+ import { useMergeRefs as ur, FloatingPortal as Da, FloatingOverlay as $o, FloatingFocusManager as za, useFloating as Va, useClick as Fa, useDismiss as Ha, useRole as Ua, useInteractions as ja, useFloatingTree as Wa, useFloatingNodeId as Mo, useListItem as Ga, offset as Bo, flip as Oo, shift as Po, autoUpdate as Do, useListNavigation as zo, useTypeahead as Vo, FloatingNode as Fo, FloatingList as Ho, FloatingTree as Uo } from "@floating-ui/react";
7
7
  function Ja(e) {
8
8
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
9
9
  }
@@ -670,7 +670,7 @@ function Xa(e) {
670
670
  s == null || s.disconnect(), r.current && cancelAnimationFrame(r.current);
671
671
  }), [s, e]), [a, n];
672
672
  }
673
- function qe(e) {
673
+ function Ze(e) {
674
674
  return vt();
675
675
  }
676
676
  function Wr(e, t) {
@@ -1078,11 +1078,11 @@ const kt = "thead", mr = "tfoot", Ae = "tbody", he = {
1078
1078
  "dark:text-copy-accent-dark": e === "system"
1079
1079
  },
1080
1080
  r
1081
- ), zs = ({
1081
+ ), Ds = ({
1082
1082
  animated: e
1083
1083
  }) => h({
1084
1084
  "transition-opacity duration-300 ease-in": e
1085
- }), Ds = ({
1085
+ }), zs = ({
1086
1086
  type: e,
1087
1087
  className: t,
1088
1088
  raw: r,
@@ -1221,7 +1221,7 @@ const js = {
1221
1221
  animated: E = !1,
1222
1222
  ...S
1223
1223
  }, b) => {
1224
- const _ = Ds({
1224
+ const _ = zs({
1225
1225
  type: wt,
1226
1226
  mode: r,
1227
1227
  focusMode: a,
@@ -1238,7 +1238,7 @@ const js = {
1238
1238
  radius: v,
1239
1239
  variant: T,
1240
1240
  animated: E
1241
- }), w = Ps({ mode: r, raw: l, iconClassName: I }), k = zs({ animated: E }), [N, O] = Ot(), [C, M] = Ot(), [R, L] = Ot(), V = A(0), $ = A(null), F = Hs([b, $]);
1241
+ }), w = Ps({ mode: r, raw: l, iconClassName: I }), k = Ds({ animated: E }), [N, O] = Ot(), [C, M] = Ot(), [R, L] = Ot(), V = A(0), $ = A(null), F = Hs([b, $]);
1242
1242
  return ee(() => {
1243
1243
  R && R.current && E && (V.current = L.width + Ws[m] + (c ? 0 : Gs));
1244
1244
  }, [L, R, m, c, E]), ee(() => {
@@ -1625,15 +1625,15 @@ for (let e = 0; e < 256; ++e)
1625
1625
  function ti(e, t = 0) {
1626
1626
  return (q[e[t + 0]] + q[e[t + 1]] + q[e[t + 2]] + q[e[t + 3]] + "-" + q[e[t + 4]] + q[e[t + 5]] + "-" + q[e[t + 6]] + q[e[t + 7]] + "-" + q[e[t + 8]] + q[e[t + 9]] + "-" + q[e[t + 10]] + q[e[t + 11]] + q[e[t + 12]] + q[e[t + 13]] + q[e[t + 14]] + q[e[t + 15]]).toLowerCase();
1627
1627
  }
1628
- let zt;
1628
+ let Dt;
1629
1629
  const ri = new Uint8Array(16);
1630
1630
  function ai() {
1631
- if (!zt) {
1631
+ if (!Dt) {
1632
1632
  if (typeof crypto > "u" || !crypto.getRandomValues)
1633
1633
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1634
- zt = crypto.getRandomValues.bind(crypto);
1634
+ Dt = crypto.getRandomValues.bind(crypto);
1635
1635
  }
1636
- return zt(ri);
1636
+ return Dt(ri);
1637
1637
  }
1638
1638
  const ni = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Kr = { randomUUID: ni };
1639
1639
  function Ee(e, t, r) {
@@ -1678,7 +1678,7 @@ const oi = (e, t) => {
1678
1678
  default:
1679
1679
  return e;
1680
1680
  }
1681
- }, Ye = "FOOTER_BOTTOM", Zt = "FOOTER_TOP", mt = "APP_SET_FOOTER_POSITION", tn = "APP_SET_FOOTER_HEIGHT", ii = (e, t) => {
1681
+ }, Ke = "FOOTER_BOTTOM", Zt = "FOOTER_TOP", mt = "APP_SET_FOOTER_POSITION", tn = "APP_SET_FOOTER_HEIGHT", ii = (e, t) => {
1682
1682
  switch (t.type) {
1683
1683
  case mt:
1684
1684
  return {
@@ -1694,7 +1694,7 @@ const oi = (e, t) => {
1694
1694
  default:
1695
1695
  return e;
1696
1696
  }
1697
- }, _e = "CHAT_SET_STATUS", et = "CHAT_RESET", li = "CHAT_LOADING", ci = (e, t) => {
1697
+ }, ve = "CHAT_SET_STATUS", Fe = "CHAT_RESET", li = "CHAT_LOADING", ci = (e, t) => {
1698
1698
  var r, a;
1699
1699
  switch (t.type) {
1700
1700
  case li:
@@ -1702,7 +1702,7 @@ const oi = (e, t) => {
1702
1702
  ...e,
1703
1703
  lastLoadingTimestamp: Date.now()
1704
1704
  };
1705
- case _e:
1705
+ case ve:
1706
1706
  return {
1707
1707
  ...e,
1708
1708
  reseting: !1,
@@ -1711,7 +1711,7 @@ const oi = (e, t) => {
1711
1711
  restoring: t.payload.restoring || e.restoring,
1712
1712
  usage: t.payload.usage || e.usage
1713
1713
  };
1714
- case et: {
1714
+ case Fe: {
1715
1715
  let n = !1;
1716
1716
  return typeof ((r = t == null ? void 0 : t.payload) == null ? void 0 : r.privateChat) == "boolean" ? n = t.payload.privateChat : typeof e.privateChat == "boolean" && (n = e.privateChat), {
1717
1717
  privateChat: n,
@@ -2317,7 +2317,7 @@ var Ri = {
2317
2317
  value: e
2318
2318
  };
2319
2319
  }
2320
- }, zi = {
2320
+ }, Di = {
2321
2321
  code: "d",
2322
2322
  name: "finish_message",
2323
2323
  parse: (e) => {
@@ -2336,7 +2336,7 @@ var Ri = {
2336
2336
  value: t
2337
2337
  };
2338
2338
  }
2339
- }, Di = {
2339
+ }, zi = {
2340
2340
  code: "e",
2341
2341
  name: "finish_step",
2342
2342
  parse: (e) => {
@@ -2399,8 +2399,8 @@ var Ri = {
2399
2399
  Bi,
2400
2400
  Oi,
2401
2401
  Pi,
2402
- zi,
2403
2402
  Di,
2403
+ zi,
2404
2404
  Vi,
2405
2405
  Fi,
2406
2406
  Hi
@@ -2798,7 +2798,7 @@ function gn(e) {
2798
2798
  ...e.content ? [{ type: "text", text: e.content }] : []
2799
2799
  ];
2800
2800
  }
2801
- function Dt(e) {
2801
+ function zt(e) {
2802
2802
  return e.map((t) => ({
2803
2803
  ...t,
2804
2804
  parts: gn(t)
@@ -2923,7 +2923,7 @@ function sl({
2923
2923
  [b, "messages"],
2924
2924
  null,
2925
2925
  {
2926
- fallbackData: r != null ? Dt(r) : _
2926
+ fallbackData: r != null ? zt(r) : _
2927
2927
  }
2928
2928
  ), N = A(w || []);
2929
2929
  B(() => {
@@ -2946,24 +2946,24 @@ function sl({
2946
2946
  };
2947
2947
  }, [f, p, g]);
2948
2948
  const H = U(
2949
- async (D) => {
2949
+ async (z) => {
2950
2950
  var Y, X;
2951
2951
  L("submitted"), $(void 0);
2952
- const z = Dt(D.messages), ne = z.length, be = tr(
2953
- (Y = z[z.length - 1]) == null ? void 0 : Y.toolInvocations
2952
+ const D = zt(z.messages), ne = D.length, be = tr(
2953
+ (Y = D[D.length - 1]) == null ? void 0 : Y.toolInvocations
2954
2954
  );
2955
2955
  try {
2956
2956
  const se = new AbortController();
2957
2957
  F.current = se;
2958
- const je = ra(k, I), Yn = ra(
2958
+ const We = ra(k, I), Yn = ra(
2959
2959
  C,
2960
2960
  I
2961
2961
  ), Kn = N.current;
2962
- je(z, !1);
2963
- const Xn = n ? z : z.map(
2962
+ We(D, !1);
2963
+ const Xn = n ? D : D.map(
2964
2964
  ({
2965
2965
  role: Mt,
2966
- content: We,
2966
+ content: Ge,
2967
2967
  experimental_attachments: st,
2968
2968
  data: Rr,
2969
2969
  annotations: Ar,
@@ -2971,7 +2971,7 @@ function sl({
2971
2971
  parts: $r
2972
2972
  }) => ({
2973
2973
  role: Mt,
2974
- content: We,
2974
+ content: Ge,
2975
2975
  ...st !== void 0 && {
2976
2976
  experimental_attachments: st
2977
2977
  },
@@ -2985,36 +2985,36 @@ function sl({
2985
2985
  api: e,
2986
2986
  body: (X = s == null ? void 0 : s({
2987
2987
  id: S,
2988
- messages: z,
2989
- requestData: D.data,
2990
- requestBody: D.body
2988
+ messages: D,
2989
+ requestData: z.data,
2990
+ requestBody: z.body
2991
2991
  })) != null ? X : {
2992
2992
  id: S,
2993
2993
  messages: Xn,
2994
- data: D.data,
2994
+ data: z.data,
2995
2995
  ...W.current.body,
2996
- ...D.body
2996
+ ...z.body
2997
2997
  },
2998
2998
  streamProtocol: c,
2999
2999
  credentials: W.current.credentials,
3000
3000
  headers: {
3001
3001
  ...W.current.headers,
3002
- ...D.headers
3002
+ ...z.headers
3003
3003
  },
3004
3004
  abortController: () => F.current,
3005
3005
  restoreMessagesOnFailure() {
3006
- T || je(Kn, !1);
3006
+ T || We(Kn, !1);
3007
3007
  },
3008
3008
  onResponse: d,
3009
- onUpdate({ message: Mt, data: We, replaceLastMessage: st }) {
3010
- L("streaming"), je(
3009
+ onUpdate({ message: Mt, data: Ge, replaceLastMessage: st }) {
3010
+ L("streaming"), We(
3011
3011
  [
3012
- ...st ? z.slice(0, z.length - 1) : z,
3012
+ ...st ? D.slice(0, D.length - 1) : D,
3013
3013
  Mt
3014
3014
  ],
3015
3015
  !1
3016
- ), We != null && We.length && Yn(
3017
- [...Sr ?? [], ...We],
3016
+ ), Ge != null && Ge.length && Yn(
3017
+ [...Sr ?? [], ...Ge],
3018
3018
  !1
3019
3019
  );
3020
3020
  },
@@ -3022,7 +3022,7 @@ function sl({
3022
3022
  onFinish: u,
3023
3023
  generateId: y,
3024
3024
  fetch: v,
3025
- lastMessage: z[z.length - 1]
3025
+ lastMessage: D[D.length - 1]
3026
3026
  }), F.current = null, L("ready");
3027
3027
  } catch (se) {
3028
3028
  if (se.name === "AbortError")
@@ -3062,57 +3062,57 @@ function sl({
3062
3062
  S
3063
3063
  ]
3064
3064
  ), Re = U(
3065
- async (D, {
3065
+ async (z, {
3066
3066
  data: Y,
3067
3067
  headers: X,
3068
- body: z,
3068
+ body: D,
3069
3069
  experimental_attachments: ne
3070
3070
  } = {}) => {
3071
3071
  var be, oe;
3072
3072
  const se = await ea(
3073
3073
  ne
3074
- ), je = N.current.concat({
3075
- ...D,
3076
- id: (be = D.id) != null ? be : y(),
3077
- createdAt: (oe = D.createdAt) != null ? oe : /* @__PURE__ */ new Date(),
3074
+ ), We = N.current.concat({
3075
+ ...z,
3076
+ id: (be = z.id) != null ? be : y(),
3077
+ createdAt: (oe = z.createdAt) != null ? oe : /* @__PURE__ */ new Date(),
3078
3078
  experimental_attachments: se.length > 0 ? se : void 0,
3079
- parts: gn(D)
3079
+ parts: gn(z)
3080
3080
  });
3081
- return H({ messages: je, headers: X, body: z, data: Y });
3081
+ return H({ messages: We, headers: X, body: D, data: Y });
3082
3082
  },
3083
3083
  [H, y]
3084
3084
  ), Rt = U(
3085
- async ({ data: D, headers: Y, body: X } = {}) => {
3086
- const z = N.current;
3087
- if (z.length === 0)
3085
+ async ({ data: z, headers: Y, body: X } = {}) => {
3086
+ const D = N.current;
3087
+ if (D.length === 0)
3088
3088
  return null;
3089
- const ne = z[z.length - 1];
3089
+ const ne = D[D.length - 1];
3090
3090
  return H({
3091
- messages: ne.role === "assistant" ? z.slice(0, -1) : z,
3091
+ messages: ne.role === "assistant" ? D.slice(0, -1) : D,
3092
3092
  headers: Y,
3093
3093
  body: X,
3094
- data: D
3094
+ data: z
3095
3095
  });
3096
3096
  },
3097
3097
  [H]
3098
3098
  ), ot = U(() => {
3099
3099
  F.current && (F.current.abort(), F.current = null);
3100
3100
  }, []), At = U(
3101
- (D) => {
3102
- typeof D == "function" && (D = D(N.current));
3103
- const Y = Dt(D);
3101
+ (z) => {
3102
+ typeof z == "function" && (z = z(N.current));
3103
+ const Y = zt(z);
3104
3104
  k(Y, !1), N.current = Y;
3105
3105
  },
3106
3106
  [k]
3107
3107
  ), Lt = U(
3108
- (D) => {
3109
- typeof D == "function" && (D = D(M.current)), C(D, !1), M.current = D;
3108
+ (z) => {
3109
+ typeof z == "function" && (z = z(M.current)), C(z, !1), M.current = z;
3110
3110
  },
3111
3111
  [C]
3112
- ), [xe, Ue] = P(a), ye = U(
3113
- async (D, Y = {}, X) => {
3114
- var z;
3115
- if ((z = D == null ? void 0 : D.preventDefault) == null || z.call(D), !xe && !Y.allowEmptySubmit)
3112
+ ), [_e, je] = P(a), ye = U(
3113
+ async (z, Y = {}, X) => {
3114
+ var D;
3115
+ if ((D = z == null ? void 0 : z.preventDefault) == null || D.call(z), !_e && !Y.allowEmptySubmit)
3116
3116
  return;
3117
3117
  X && (W.current = {
3118
3118
  ...W.current,
@@ -3125,29 +3125,29 @@ function sl({
3125
3125
  id: y(),
3126
3126
  createdAt: /* @__PURE__ */ new Date(),
3127
3127
  role: "user",
3128
- content: xe,
3128
+ content: _e,
3129
3129
  experimental_attachments: ne.length > 0 ? ne : void 0,
3130
- parts: [{ type: "text", text: xe }]
3130
+ parts: [{ type: "text", text: _e }]
3131
3131
  }),
3132
3132
  headers: Y.headers,
3133
3133
  body: Y.body,
3134
3134
  data: Y.data
3135
3135
  };
3136
- H(oe), Ue("");
3136
+ H(oe), je("");
3137
3137
  },
3138
- [xe, y, H]
3139
- ), ue = (D) => {
3140
- Ue(D.target.value);
3138
+ [_e, y, H]
3139
+ ), ue = (z) => {
3140
+ je(z.target.value);
3141
3141
  }, $t = U(
3142
- ({ toolCallId: D, result: Y }) => {
3142
+ ({ toolCallId: z, result: Y }) => {
3143
3143
  const X = N.current;
3144
3144
  rl({
3145
3145
  messages: X,
3146
- toolCallId: D,
3146
+ toolCallId: z,
3147
3147
  toolResult: Y
3148
3148
  }), k(X, !1);
3149
- const z = X[X.length - 1];
3150
- yn(z) && H({ messages: X });
3149
+ const D = X[X.length - 1];
3150
+ yn(D) && H({ messages: X });
3151
3151
  },
3152
3152
  [k, H]
3153
3153
  );
@@ -3161,8 +3161,8 @@ function sl({
3161
3161
  append: Re,
3162
3162
  reload: Rt,
3163
3163
  stop: ot,
3164
- input: xe,
3165
- setInput: Ue,
3164
+ input: _e,
3165
+ setInput: je,
3166
3166
  handleInputChange: ue,
3167
3167
  handleSubmit: ye,
3168
3168
  isLoading: R === "submitted" || R === "streaming",
@@ -3176,7 +3176,7 @@ const aa = {
3176
3176
  onResponse: /* @__PURE__ */ new Set(),
3177
3177
  onToolCall: /* @__PURE__ */ new Set()
3178
3178
  }, bn = Ro(null);
3179
- function Fe(e = {}) {
3179
+ function He(e = {}) {
3180
3180
  const t = j(bn);
3181
3181
  if (!t)
3182
3182
  throw new Error("useAiChat must be used within a AiChatProvider");
@@ -3276,7 +3276,7 @@ try {
3276
3276
  });
3277
3277
  } catch {
3278
3278
  }
3279
- const dl = "av-tooltip", ul = "av-tooltip-arrow", Ze = Math.min, $e = Math.max, ft = Math.round, fe = (e) => ({
3279
+ const dl = "av-tooltip", ul = "av-tooltip-arrow", Qe = Math.min, $e = Math.max, ft = Math.round, fe = (e) => ({
3280
3280
  x: e,
3281
3281
  y: e
3282
3282
  }), ml = {
@@ -3289,7 +3289,7 @@ const dl = "av-tooltip", ul = "av-tooltip-arrow", Ze = Math.min, $e = Math.max,
3289
3289
  end: "start"
3290
3290
  };
3291
3291
  function rr(e, t, r) {
3292
- return $e(e, Ze(t, r));
3292
+ return $e(e, Qe(t, r));
3293
3293
  }
3294
3294
  function tt(e, t) {
3295
3295
  return typeof e == "function" ? e(t) : e;
@@ -3306,11 +3306,11 @@ function vn(e) {
3306
3306
  function vr(e) {
3307
3307
  return e === "y" ? "height" : "width";
3308
3308
  }
3309
- function ze(e) {
3309
+ function De(e) {
3310
3310
  return ["top", "bottom"].includes(Ce(e)) ? "y" : "x";
3311
3311
  }
3312
3312
  function kr(e) {
3313
- return vn(ze(e));
3313
+ return vn(De(e));
3314
3314
  }
3315
3315
  function fl(e, t, r) {
3316
3316
  r === void 0 && (r = !1);
@@ -3386,7 +3386,7 @@ function na(e, t, r) {
3386
3386
  reference: a,
3387
3387
  floating: n
3388
3388
  } = e;
3389
- const o = ze(t), s = kr(t), l = vr(s), c = Ce(t), d = o === "y", u = a.x + a.width / 2 - n.width / 2, m = a.y + a.height / 2 - n.height / 2, f = a[l] / 2 - n[l] / 2;
3389
+ const o = De(t), s = kr(t), l = vr(s), c = Ce(t), d = o === "y", u = a.x + a.width / 2 - n.width / 2, m = a.y + a.height / 2 - n.height / 2, f = a[l] / 2 - n[l] / 2;
3390
3390
  let p;
3391
3391
  switch (c) {
3392
3392
  case "top":
@@ -3559,7 +3559,7 @@ const kl = (e) => ({
3559
3559
  }, p = kr(n), g = vr(p), y = await s.getDimensions(d), v = p === "y", T = v ? "top" : "left", I = v ? "bottom" : "right", E = v ? "clientHeight" : "clientWidth", S = o.reference[g] + o.reference[p] - f[p] - o.floating[g], b = f[p] - o.reference[p], _ = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
3560
3560
  let w = _ ? _[E] : 0;
3561
3561
  (!w || !await (s.isElement == null ? void 0 : s.isElement(_))) && (w = l.floating[E] || o.floating[g]);
3562
- const k = S / 2 - b / 2, N = w / 2 - y[g] / 2 - 1, O = Ze(m[T], N), C = Ze(m[I], N), M = O, R = w - y[g] - C, L = w / 2 - y[g] / 2 + k, V = rr(M, L, R), $ = !c.arrow && rt(n) != null && L !== V && o.reference[g] / 2 - (L < M ? O : C) - y[g] / 2 < 0, F = $ ? L < M ? L - M : L - R : 0;
3562
+ const k = S / 2 - b / 2, N = w / 2 - y[g] / 2 - 1, O = Qe(m[T], N), C = Qe(m[I], N), M = O, R = w - y[g] - C, L = w / 2 - y[g] / 2 + k, V = rr(M, L, R), $ = !c.arrow && rt(n) != null && L !== V && o.reference[g] / 2 - (L < M ? O : C) - y[g] / 2 < 0, F = $ ? L < M ? L - M : L - R : 0;
3563
3563
  return {
3564
3564
  [p]: f[p] + F,
3565
3565
  data: {
@@ -3596,7 +3596,7 @@ const kl = (e) => ({
3596
3596
  } = tt(e, t);
3597
3597
  if ((r = o.arrow) != null && r.alignmentOffset)
3598
3598
  return {};
3599
- const T = Ce(n), I = ze(l), E = Ce(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), b = f || (E || !y ? [pt(l)] : pl(l)), _ = g !== "none";
3599
+ const T = Ce(n), I = De(l), E = Ce(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), b = f || (E || !y ? [pt(l)] : pl(l)), _ = g !== "none";
3600
3600
  !f && _ && b.push(...yl(l, y, g, S));
3601
3601
  const w = [l, ...b], k = await wn(t, v), N = [];
3602
3602
  let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
@@ -3627,7 +3627,7 @@ const kl = (e) => ({
3627
3627
  var R;
3628
3628
  const F = (R = O.filter((W) => {
3629
3629
  if (_) {
3630
- const H = ze(W.placement);
3630
+ const H = De(W.placement);
3631
3631
  return H === I || // Create a bias to the `y` side axis due to horizontal
3632
3632
  // reading directions favoring greater width.
3633
3633
  H === "y";
@@ -3657,7 +3657,7 @@ async function xl(e, t) {
3657
3657
  placement: r,
3658
3658
  platform: a,
3659
3659
  elements: n
3660
- } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), s = Ce(r), l = rt(r), c = ze(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, u = o && c ? -1 : 1, m = tt(t, e);
3660
+ } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), s = Ce(r), l = rt(r), c = De(r) === "y", d = ["left", "top"].includes(s) ? -1 : 1, u = o && c ? -1 : 1, m = tt(t, e);
3661
3661
  let {
3662
3662
  mainAxis: f,
3663
3663
  crossAxis: p,
@@ -3729,7 +3729,7 @@ const _l = function(e) {
3729
3729
  } = tt(e, t), d = {
3730
3730
  x: r,
3731
3731
  y: a
3732
- }, u = await wn(t, c), m = ze(Ce(n)), f = vn(m);
3732
+ }, u = await wn(t, c), m = De(Ce(n)), f = vn(m);
3733
3733
  let p = d[f], g = d[m];
3734
3734
  if (o) {
3735
3735
  const v = f === "y" ? "top" : "left", T = f === "y" ? "bottom" : "right", I = p + u[v], E = p - u[T];
@@ -3761,14 +3761,14 @@ const _l = function(e) {
3761
3761
  function xt() {
3762
3762
  return typeof window < "u";
3763
3763
  }
3764
- function He(e) {
3764
+ function Ue(e) {
3765
3765
  return xn(e) ? (e.nodeName || "").toLowerCase() : "#document";
3766
3766
  }
3767
3767
  function te(e) {
3768
3768
  var t;
3769
3769
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
3770
3770
  }
3771
- function we(e) {
3771
+ function xe(e) {
3772
3772
  var t;
3773
3773
  return (t = (xn(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
3774
3774
  }
@@ -3794,7 +3794,7 @@ function at(e) {
3794
3794
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
3795
3795
  }
3796
3796
  function Il(e) {
3797
- return ["table", "td", "th"].includes(He(e));
3797
+ return ["table", "td", "th"].includes(Ue(e));
3798
3798
  }
3799
3799
  function _t(e) {
3800
3800
  return [":popover-open", ":modal"].some((t) => {
@@ -3811,7 +3811,7 @@ function wr(e) {
3811
3811
  }
3812
3812
  function Nl(e) {
3813
3813
  let t = Ie(e);
3814
- for (; ge(t) && !De(t); ) {
3814
+ for (; ge(t) && !ze(t); ) {
3815
3815
  if (wr(t))
3816
3816
  return t;
3817
3817
  if (_t(t))
@@ -3823,8 +3823,8 @@ function Nl(e) {
3823
3823
  function xr() {
3824
3824
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
3825
3825
  }
3826
- function De(e) {
3827
- return ["html", "body", "#document"].includes(He(e));
3826
+ function ze(e) {
3827
+ return ["html", "body", "#document"].includes(Ue(e));
3828
3828
  }
3829
3829
  function ce(e) {
3830
3830
  return te(e).getComputedStyle(e);
@@ -3839,20 +3839,20 @@ function Tt(e) {
3839
3839
  };
3840
3840
  }
3841
3841
  function Ie(e) {
3842
- if (He(e) === "html")
3842
+ if (Ue(e) === "html")
3843
3843
  return e;
3844
3844
  const t = (
3845
3845
  // Step into the shadow DOM of the parent of a slotted node.
3846
3846
  e.assignedSlot || // DOM Element detected.
3847
3847
  e.parentNode || // ShadowRoot detected.
3848
3848
  oa(e) && e.host || // Fallback.
3849
- we(e)
3849
+ xe(e)
3850
3850
  );
3851
3851
  return oa(t) ? t.host : t;
3852
3852
  }
3853
3853
  function _n(e) {
3854
3854
  const t = Ie(e);
3855
- return De(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && at(t) ? t : _n(t);
3855
+ return ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ge(t) && at(t) ? t : _n(t);
3856
3856
  }
3857
3857
  function Tn(e, t, r) {
3858
3858
  var a;
@@ -3902,7 +3902,7 @@ function En(e) {
3902
3902
  function Cl(e, t, r) {
3903
3903
  return t === void 0 && (t = !1), !r || t && r !== te(e) ? !1 : t;
3904
3904
  }
3905
- function Qe(e, t, r, a) {
3905
+ function et(e, t, r, a) {
3906
3906
  t === void 0 && (t = !1), r === void 0 && (r = !1);
3907
3907
  const n = e.getBoundingClientRect(), o = Nn(e);
3908
3908
  let s = fe(1);
@@ -3926,7 +3926,7 @@ function Qe(e, t, r, a) {
3926
3926
  }
3927
3927
  function _r(e, t) {
3928
3928
  const r = Tt(e).scrollLeft;
3929
- return t ? t.left + r : Qe(we(e)).left + r;
3929
+ return t ? t.left + r : et(xe(e)).left + r;
3930
3930
  }
3931
3931
  function Cn(e, t, r) {
3932
3932
  r === void 0 && (r = !1);
@@ -3946,7 +3946,7 @@ function Sl(e) {
3946
3946
  offsetParent: a,
3947
3947
  strategy: n
3948
3948
  } = e;
3949
- const o = n === "fixed", s = we(a), l = t ? _t(t.floating) : !1;
3949
+ const o = n === "fixed", s = xe(a), l = t ? _t(t.floating) : !1;
3950
3950
  if (a === s || l && o)
3951
3951
  return r;
3952
3952
  let c = {
@@ -3954,8 +3954,8 @@ function Sl(e) {
3954
3954
  scrollTop: 0
3955
3955
  }, d = fe(1);
3956
3956
  const u = fe(0), m = ge(a);
3957
- if ((m || !m && !o) && ((He(a) !== "body" || at(s)) && (c = Tt(a)), ge(a))) {
3958
- const p = Qe(a);
3957
+ if ((m || !m && !o) && ((Ue(a) !== "body" || at(s)) && (c = Tt(a)), ge(a))) {
3958
+ const p = et(a);
3959
3959
  d = Me(a), u.x = p.x + a.clientLeft, u.y = p.y + a.clientTop;
3960
3960
  }
3961
3961
  const f = s && !m && !o ? Cn(s, c, !0) : fe(0);
@@ -3970,7 +3970,7 @@ function Rl(e) {
3970
3970
  return Array.from(e.getClientRects());
3971
3971
  }
3972
3972
  function Al(e) {
3973
- const t = we(e), r = Tt(e), a = e.ownerDocument.body, n = $e(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = $e(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
3973
+ const t = xe(e), r = Tt(e), a = e.ownerDocument.body, n = $e(t.scrollWidth, t.clientWidth, a.scrollWidth, a.clientWidth), o = $e(t.scrollHeight, t.clientHeight, a.scrollHeight, a.clientHeight);
3974
3974
  let s = -r.scrollLeft + _r(e);
3975
3975
  const l = -r.scrollTop;
3976
3976
  return ce(a).direction === "rtl" && (s += $e(t.clientWidth, a.clientWidth) - n), {
@@ -3981,7 +3981,7 @@ function Al(e) {
3981
3981
  };
3982
3982
  }
3983
3983
  function Ll(e, t) {
3984
- const r = te(e), a = we(e), n = r.visualViewport;
3984
+ const r = te(e), a = xe(e), n = r.visualViewport;
3985
3985
  let o = a.clientWidth, s = a.clientHeight, l = 0, c = 0;
3986
3986
  if (n) {
3987
3987
  o = n.width, s = n.height;
@@ -3996,7 +3996,7 @@ function Ll(e, t) {
3996
3996
  };
3997
3997
  }
3998
3998
  function $l(e, t) {
3999
- const r = Qe(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ge(e) ? Me(e) : fe(1), s = e.clientWidth * o.x, l = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
3999
+ const r = et(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ge(e) ? Me(e) : fe(1), s = e.clientWidth * o.x, l = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
4000
4000
  return {
4001
4001
  width: s,
4002
4002
  height: l,
@@ -4009,7 +4009,7 @@ function ia(e, t, r) {
4009
4009
  if (t === "viewport")
4010
4010
  a = Ll(e, r);
4011
4011
  else if (t === "document")
4012
- a = Al(we(e));
4012
+ a = Al(xe(e));
4013
4013
  else if (le(t))
4014
4014
  a = $l(t, r);
4015
4015
  else {
@@ -4025,16 +4025,16 @@ function ia(e, t, r) {
4025
4025
  }
4026
4026
  function Sn(e, t) {
4027
4027
  const r = Ie(e);
4028
- return r === t || !le(r) || De(r) ? !1 : ce(r).position === "fixed" || Sn(r, t);
4028
+ return r === t || !le(r) || ze(r) ? !1 : ce(r).position === "fixed" || Sn(r, t);
4029
4029
  }
4030
4030
  function Ml(e, t) {
4031
4031
  const r = t.get(e);
4032
4032
  if (r)
4033
4033
  return r;
4034
- let a = Tn(e, []).filter((l) => le(l) && He(l) !== "body"), n = null;
4034
+ let a = Tn(e, []).filter((l) => le(l) && Ue(l) !== "body"), n = null;
4035
4035
  const o = ce(e).position === "fixed";
4036
4036
  let s = o ? Ie(e) : e;
4037
- for (; le(s) && !De(s); ) {
4037
+ for (; le(s) && !ze(s); ) {
4038
4038
  const l = ce(s), c = wr(s);
4039
4039
  !c && l.position === "fixed" && (n = null), (o ? !c && !n : !c && l.position === "static" && n && ["absolute", "fixed"].includes(n.position) || at(s) && !c && Sn(e, s)) ? a = a.filter((d) => d !== s) : n = l, s = Ie(s);
4040
4040
  }
@@ -4049,7 +4049,7 @@ function Bl(e) {
4049
4049
  } = e;
4050
4050
  const o = [...r === "clippingAncestors" ? _t(t) ? [] : Ml(t, this._c) : [].concat(r), a], s = o[0], l = o.reduce((c, d) => {
4051
4051
  const u = ia(t, d, n);
4052
- return c.top = $e(u.top, c.top), c.right = Ze(u.right, c.right), c.bottom = Ze(u.bottom, c.bottom), c.left = $e(u.left, c.left), c;
4052
+ return c.top = $e(u.top, c.top), c.right = Qe(u.right, c.right), c.bottom = Qe(u.bottom, c.bottom), c.left = $e(u.left, c.left), c;
4053
4053
  }, ia(t, s, n));
4054
4054
  return {
4055
4055
  width: l.right - l.left,
@@ -4069,15 +4069,15 @@ function Ol(e) {
4069
4069
  };
4070
4070
  }
4071
4071
  function Pl(e, t, r) {
4072
- const a = ge(t), n = we(t), o = r === "fixed", s = Qe(e, !0, o, t);
4072
+ const a = ge(t), n = xe(t), o = r === "fixed", s = et(e, !0, o, t);
4073
4073
  let l = {
4074
4074
  scrollLeft: 0,
4075
4075
  scrollTop: 0
4076
4076
  };
4077
4077
  const c = fe(0);
4078
4078
  if (a || !a && !o)
4079
- if ((He(t) !== "body" || at(n)) && (l = Tt(t)), a) {
4080
- const f = Qe(t, !0, o, t);
4079
+ if ((Ue(t) !== "body" || at(n)) && (l = Tt(t)), a) {
4080
+ const f = et(t, !0, o, t);
4081
4081
  c.x = f.x + t.clientLeft, c.y = f.y + t.clientTop;
4082
4082
  } else n && (c.x = _r(n));
4083
4083
  const d = n && !a && !o ? Cn(n, l) : fe(0), u = s.left + l.scrollLeft - c.x - d.x, m = s.top + l.scrollTop - c.y - d.y;
@@ -4097,7 +4097,7 @@ function la(e, t) {
4097
4097
  if (t)
4098
4098
  return t(e);
4099
4099
  let r = e.offsetParent;
4100
- return we(e) === r && (r = r.ownerDocument.body), r;
4100
+ return xe(e) === r && (r = r.ownerDocument.body), r;
4101
4101
  }
4102
4102
  function Rn(e, t) {
4103
4103
  const r = te(e);
@@ -4105,7 +4105,7 @@ function Rn(e, t) {
4105
4105
  return r;
4106
4106
  if (!ge(e)) {
4107
4107
  let n = Ie(e);
4108
- for (; n && !De(n); ) {
4108
+ for (; n && !ze(n); ) {
4109
4109
  if (le(n) && !Ft(n))
4110
4110
  return n;
4111
4111
  n = Ie(n);
@@ -4115,9 +4115,9 @@ function Rn(e, t) {
4115
4115
  let a = la(e, t);
4116
4116
  for (; a && Il(a) && Ft(a); )
4117
4117
  a = la(a, t);
4118
- return a && De(a) && Ft(a) && !wr(a) ? r : a || Nl(e) || r;
4118
+ return a && ze(a) && Ft(a) && !wr(a) ? r : a || Nl(e) || r;
4119
4119
  }
4120
- const zl = async function(e) {
4120
+ const Dl = async function(e) {
4121
4121
  const t = this.getOffsetParent || Rn, r = this.getDimensions, a = await r(e.floating);
4122
4122
  return {
4123
4123
  reference: Pl(e.reference, await t(e.floating), e.strategy),
@@ -4129,20 +4129,20 @@ const zl = async function(e) {
4129
4129
  }
4130
4130
  };
4131
4131
  };
4132
- function Dl(e) {
4132
+ function zl(e) {
4133
4133
  return ce(e).direction === "rtl";
4134
4134
  }
4135
4135
  const Vl = {
4136
4136
  convertOffsetParentRelativeRectToViewportRelativeRect: Sl,
4137
- getDocumentElement: we,
4137
+ getDocumentElement: xe,
4138
4138
  getClippingRect: Bl,
4139
4139
  getOffsetParent: Rn,
4140
- getElementRects: zl,
4140
+ getElementRects: Dl,
4141
4141
  getClientRects: Rl,
4142
4142
  getDimensions: Ol,
4143
4143
  getScale: Me,
4144
4144
  isElement: le,
4145
- isRTL: Dl
4145
+ isRTL: zl
4146
4146
  }, Fl = _l, Hl = Tl, Ul = wl, jl = kl, Wl = (e, t, r) => {
4147
4147
  const a = /* @__PURE__ */ new Map(), n = {
4148
4148
  platform: Vl,
@@ -4322,16 +4322,24 @@ const lt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Yl = (
4322
4322
  dispatch: r,
4323
4323
  setChatId: a,
4324
4324
  setInitialMessages: n
4325
- } = j(re), { setInput: o } = Fe(), s = A(null), l = A(!1), c = (d) => {
4326
- d.preventDefault(), a(Ee()), n([]), o(""), r({
4327
- type: et,
4325
+ } = j(re), { setInput: o, stop: s } = He(), l = A(null), c = A(!1), d = (m) => {
4326
+ m.preventDefault(), s(), r({
4327
+ type: ve,
4328
+ payload: {
4329
+ streaming: !1,
4330
+ loading: !1
4331
+ }
4332
+ });
4333
+ }, u = (m) => {
4334
+ m.preventDefault(), a(Ee()), n([]), o(""), r({
4335
+ type: Fe,
4328
4336
  payload: {
4329
4337
  privateChat: !1
4330
4338
  }
4331
4339
  });
4332
4340
  };
4333
4341
  return B(() => {
4334
- Jt() || (t === !0 && !l.current && s.current && (l.current = !0, s.current.focus()), t === !1 && l.current && (l.current = !1));
4342
+ Jt() || (t === !0 && !c.current && l.current && (c.current = !0, l.current.focus()), t === !1 && c.current && (c.current = !1));
4335
4343
  }, [t]), /* @__PURE__ */ i(
4336
4344
  Se,
4337
4345
  {
@@ -4346,9 +4354,9 @@ const lt = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, Yl = (
4346
4354
  mode: "dark",
4347
4355
  focusMode: "light",
4348
4356
  label: "New Chat",
4349
- ref: s,
4350
- onClick: c,
4351
- children: t ? /* @__PURE__ */ i(Go, { size: ke, monotone: !0 }) : /* @__PURE__ */ i(Ko, { size: ke })
4357
+ ref: l,
4358
+ onClick: t ? d : u,
4359
+ children: t ? /* @__PURE__ */ i(Go, { size: we, monotone: !0 }) : /* @__PURE__ */ i(Ko, { size: we })
4352
4360
  }
4353
4361
  )
4354
4362
  }
@@ -5003,7 +5011,7 @@ const Ic = Z.forwardRef(function(e, t) {
5003
5011
  [`${o}`]: o,
5004
5012
  "bg-black sm:bg-black/[.8]": !o
5005
5013
  });
5006
- return /* @__PURE__ */ i(za, { children: /* @__PURE__ */ i($o, { className: l, lockScroll: !0, children: /* @__PURE__ */ i(Da, { context: r, children: /* @__PURE__ */ i(
5014
+ return /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ i($o, { className: l, lockScroll: !0, children: /* @__PURE__ */ i(za, { context: r, children: /* @__PURE__ */ i(
5007
5015
  "div",
5008
5016
  {
5009
5017
  ref: n,
@@ -5040,19 +5048,19 @@ try {
5040
5048
  });
5041
5049
  } catch {
5042
5050
  }
5043
- const Je = "panel", ct = "messagebox", Sc = ({
5051
+ const Ye = "panel", ct = "messagebox", Sc = ({
5044
5052
  className: e,
5045
5053
  kind: t,
5046
5054
  borderMode: r
5047
5055
  }) => ({
5048
5056
  main: h("prose prose-lighter flex flex-col bg-surface-medium", {
5049
- [`${ma} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Je,
5050
- [`${ma} w-full sm:w-[95%] md:max-w-2xl`]: t === Je && !e,
5057
+ [`${ma} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Ye,
5058
+ [`${ma} w-full sm:w-[95%] md:max-w-2xl`]: t === Ye && !e,
5051
5059
  [`${ua} rounded-lg border-2`]: t === ct,
5052
5060
  [`${ua} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === ct && !e,
5053
5061
  [`${e}`]: !!e,
5054
- "sm:border-border-dark": r === "dark" && t === Je,
5055
- "sm:border-border-accent": r === "light" && t === Je,
5062
+ "sm:border-border-dark": r === "dark" && t === Ye,
5063
+ "sm:border-border-accent": r === "light" && t === Ye,
5056
5064
  "border-border-dark": r === "dark" && t === ct,
5057
5065
  "border-border-accent": r === "light" && t === ct
5058
5066
  }),
@@ -5067,7 +5075,7 @@ const Je = "panel", ct = "messagebox", Sc = ({
5067
5075
  children: a,
5068
5076
  footer: n,
5069
5077
  borderMode: o = "light",
5070
- kind: s = Je,
5078
+ kind: s = Ye,
5071
5079
  className: l
5072
5080
  }) => {
5073
5081
  const c = A(""), d = Sc({ className: l, kind: s, borderMode: o });
@@ -5150,7 +5158,7 @@ const Je = "panel", ct = "messagebox", Sc = ({
5150
5158
  initialValue: ""
5151
5159
  }), d = () => {
5152
5160
  a(Ee()), n([]), r({
5153
- type: et,
5161
+ type: Fe,
5154
5162
  payload: {
5155
5163
  privateChat: !t
5156
5164
  }
@@ -5195,7 +5203,7 @@ const Je = "panel", ct = "messagebox", Sc = ({
5195
5203
  m.preventDefault(), l ? d() : (c("true"), s(!o));
5196
5204
  },
5197
5205
  className: "text-sm",
5198
- children: t ? /* @__PURE__ */ i(Zo, { size: ke }) : /* @__PURE__ */ i(is, { size: ke })
5206
+ children: t ? /* @__PURE__ */ i(Zo, { size: we }) : /* @__PURE__ */ i(is, { size: we })
5199
5207
  }
5200
5208
  )
5201
5209
  }
@@ -5241,12 +5249,12 @@ const Je = "panel", ct = "messagebox", Sc = ({
5241
5249
  placement: a,
5242
5250
  strategy: "fixed",
5243
5251
  middleware: [Bo({ mainAxis: 10 }), Oo(), Po()],
5244
- whileElementsMounted: zo
5252
+ whileElementsMounted: Do
5245
5253
  }), k = Fa(w, {
5246
5254
  event: "mousedown",
5247
5255
  toggle: !0,
5248
5256
  ignoreMouse: !1
5249
- }), N = Ua(w, { role: "menu" }), O = Ha(w, { bubbles: !0 }), C = Do(w, {
5257
+ }), N = Ua(w, { role: "menu" }), O = Ha(w, { bubbles: !0 }), C = zo(w, {
5250
5258
  listRef: y,
5251
5259
  activeIndex: p,
5252
5260
  nested: !1,
@@ -5298,8 +5306,8 @@ const Je = "panel", ct = "messagebox", Sc = ({
5298
5306
  setHasFocusInside: f,
5299
5307
  isOpen: d
5300
5308
  },
5301
- children: /* @__PURE__ */ i(Ho, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(za, { children: /* @__PURE__ */ i(
5302
- Da,
5309
+ children: /* @__PURE__ */ i(Ho, { elementsRef: y, labelsRef: v, children: d && /* @__PURE__ */ i(Da, { children: /* @__PURE__ */ i(
5310
+ za,
5303
5311
  {
5304
5312
  context: w,
5305
5313
  modal: !1,
@@ -5407,7 +5415,7 @@ try {
5407
5415
  });
5408
5416
  } catch {
5409
5417
  }
5410
- const ve = Z.forwardRef(
5418
+ const ke = Z.forwardRef(
5411
5419
  ({
5412
5420
  label: e,
5413
5421
  disabled: t,
@@ -5470,7 +5478,7 @@ const ve = Z.forwardRef(
5470
5478
  );
5471
5479
  }
5472
5480
  );
5473
- ve.displayName = "MenuItem";
5481
+ ke.displayName = "MenuItem";
5474
5482
  const $c = ({ className: e, ...t }) => {
5475
5483
  const r = h(e, "my-1 border-t border-border-medium");
5476
5484
  return /* @__PURE__ */ i("div", { className: r, ...t });
@@ -5515,7 +5523,7 @@ const Mc = (e) => {
5515
5523
  getAccessToken: s
5516
5524
  }), m = (f, p, g) => {
5517
5525
  f.preventDefault(), a(Ee()), n([]), r({
5518
- type: et,
5526
+ type: Fe,
5519
5527
  payload: {
5520
5528
  privateChat: g
5521
5529
  }
@@ -5537,7 +5545,7 @@ const Mc = (e) => {
5537
5545
  {
5538
5546
  mode: "dark",
5539
5547
  focusMode: "light",
5540
- trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Wo, { size: ke }) }),
5548
+ trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Wo, { size: we }) }),
5541
5549
  defaultPlacement: t,
5542
5550
  children: [
5543
5551
  /* @__PURE__ */ i(Bn, { children: "Prompts" }),
@@ -5558,7 +5566,7 @@ const Mc = (e) => {
5558
5566
  break;
5559
5567
  }
5560
5568
  return f.enabled && f.label && f.content && /* @__PURE__ */ i(
5561
- ve,
5569
+ ke,
5562
5570
  {
5563
5571
  label: f.label,
5564
5572
  icon: p,
@@ -5581,7 +5589,7 @@ const Mc = (e) => {
5581
5589
  }) => {
5582
5590
  const { user: t, getAccessToken: r } = ae(), {
5583
5591
  state: { usage: a, provider: n, privateChat: o }
5584
- } = j(re), { messages: s, id: l } = Fe(), [c, d] = P(!1), u = async (m) => {
5592
+ } = j(re), { messages: s, id: l } = He(), [c, d] = P(!1), u = async (m) => {
5585
5593
  m.preventDefault();
5586
5594
  try {
5587
5595
  if (l && s && n) {
@@ -5590,9 +5598,9 @@ const Mc = (e) => {
5590
5598
  content: g,
5591
5599
  id: y
5592
5600
  }));
5593
- await Ke({
5601
+ await Xe({
5594
5602
  accessToken: await r(),
5595
- type: Xe.SAVE_CHAT,
5603
+ type: qe.SAVE_CHAT,
5596
5604
  params: {
5597
5605
  userId: (t == null ? void 0 : t.username) || "",
5598
5606
  id: l,
@@ -5622,7 +5630,7 @@ const Mc = (e) => {
5622
5630
  focusMode: "light",
5623
5631
  label: "Save Private Chat",
5624
5632
  onClick: u,
5625
- children: /* @__PURE__ */ i(Yo, { size: ke, monotone: !0 })
5633
+ children: /* @__PURE__ */ i(Yo, { size: we, monotone: !0 })
5626
5634
  }
5627
5635
  )
5628
5636
  }
@@ -5661,7 +5669,7 @@ const Mc = (e) => {
5661
5669
  }
5662
5670
  )
5663
5671
  }
5664
- ) : null, zc = ({
5672
+ ) : null, Dc = ({
5665
5673
  className: e
5666
5674
  }) => {
5667
5675
  const {
@@ -5684,12 +5692,12 @@ const Mc = (e) => {
5684
5692
  type: "submit",
5685
5693
  mode: "light",
5686
5694
  focusMode: "light",
5687
- children: /* @__PURE__ */ i(ns, { size: ke })
5695
+ children: /* @__PURE__ */ i(ns, { size: we })
5688
5696
  }
5689
5697
  )
5690
5698
  }
5691
5699
  );
5692
- }, Dc = ({
5700
+ }, zc = ({
5693
5701
  className: e
5694
5702
  }) => {
5695
5703
  const {
@@ -5726,12 +5734,12 @@ const Mc = (e) => {
5726
5734
  {
5727
5735
  mode: "dark",
5728
5736
  focusMode: "light",
5729
- trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Providers", children: t === Bt ? /* @__PURE__ */ i(Kt, { size: ke }) : /* @__PURE__ */ i(Xt, { size: ke }) }),
5737
+ trigger: /* @__PURE__ */ i(pe, { noBorder: !0, label: "Providers", children: t === Bt ? /* @__PURE__ */ i(Kt, { size: we }) : /* @__PURE__ */ i(Xt, { size: we }) }),
5730
5738
  defaultPlacement: "top-start",
5731
5739
  children: [
5732
5740
  /* @__PURE__ */ i(Bn, { children: "Providers" }),
5733
5741
  /* @__PURE__ */ i(
5734
- ve,
5742
+ ke,
5735
5743
  {
5736
5744
  selected: t === Bt,
5737
5745
  label: "Anthropic",
@@ -5740,7 +5748,7 @@ const Mc = (e) => {
5740
5748
  }
5741
5749
  ),
5742
5750
  /* @__PURE__ */ i(
5743
- ve,
5751
+ ke,
5744
5752
  {
5745
5753
  selected: t === Mr,
5746
5754
  label: "OpenAI",
@@ -5791,10 +5799,10 @@ const Mc = (e) => {
5791
5799
  handleSubmit: d,
5792
5800
  messages: u,
5793
5801
  setMessages: m
5794
- } = Fe({
5802
+ } = He({
5795
5803
  onResponse: (b) => {
5796
5804
  f({
5797
- type: _e,
5805
+ type: ve,
5798
5806
  payload: {
5799
5807
  streaming: !0,
5800
5808
  loading: !1
@@ -5803,7 +5811,7 @@ const Mc = (e) => {
5803
5811
  },
5804
5812
  onToolCall: () => {
5805
5813
  f({
5806
- type: _e,
5814
+ type: ve,
5807
5815
  payload: {
5808
5816
  streaming: !1,
5809
5817
  loading: !0
@@ -5812,7 +5820,7 @@ const Mc = (e) => {
5812
5820
  },
5813
5821
  onFinish: (b, { usage: _ }) => {
5814
5822
  f({
5815
- type: _e,
5823
+ type: ve,
5816
5824
  payload: {
5817
5825
  streaming: !1,
5818
5826
  loading: !1,
@@ -5829,14 +5837,14 @@ const Mc = (e) => {
5829
5837
  content: to
5830
5838
  }
5831
5839
  ]), f({
5832
- type: _e,
5840
+ type: ve,
5833
5841
  payload: {
5834
5842
  streaming: !1,
5835
5843
  loading: !1
5836
5844
  }
5837
5845
  });
5838
5846
  }
5839
- }), { dispatch: f } = j(re), p = A(!1), g = A(null), y = A(null), v = qe(), T = jc({
5847
+ }), { dispatch: f } = j(re), p = A(!1), g = A(null), y = A(null), v = Ze(), T = jc({
5840
5848
  className: ""
5841
5849
  }), I = U(() => {
5842
5850
  if (!y.current)
@@ -5850,7 +5858,7 @@ const Mc = (e) => {
5850
5858
  y.current.style.height = `${b}px`, y.current.style.overflowY = "hidden";
5851
5859
  }, []), E = async (b) => {
5852
5860
  b.preventDefault(), f({
5853
- type: _e,
5861
+ type: ve,
5854
5862
  payload: {
5855
5863
  loading: !0,
5856
5864
  streaming: !1
@@ -5916,7 +5924,7 @@ const Mc = (e) => {
5916
5924
  }
5917
5925
  ) }),
5918
5926
  /* @__PURE__ */ x("div", { className: "p-2 flex items-center", children: [
5919
- /* @__PURE__ */ i(zc, { className: "order-5 ml-auto" }),
5927
+ /* @__PURE__ */ i(Dc, { className: "order-5 ml-auto" }),
5920
5928
  /* @__PURE__ */ i(ec, { className: "order-1 mr-4 sm:mr-2" }),
5921
5929
  /* @__PURE__ */ i(Bc, { className: "order-2 mr-4 sm:mr-2" }),
5922
5930
  /* @__PURE__ */ i(Rc, { className: "order-3 mr-4 sm:mr-2" }),
@@ -5929,7 +5937,7 @@ const Mc = (e) => {
5929
5937
  } = j(re), {
5930
5938
  state: { footerHeight: n, footerPosition: o },
5931
5939
  dispatch: s
5932
- } = j(br), { messages: l } = Fe(), { height: c } = ks(), { height: d } = ws(), [u, m] = Xa();
5940
+ } = j(br), { messages: l } = He(), { height: c } = ks(), { height: d } = ws(), [u, m] = Xa();
5933
5941
  return B(() => {
5934
5942
  n !== m.height && s({
5935
5943
  type: tn,
@@ -5947,17 +5955,17 @@ const Mc = (e) => {
5947
5955
  p !== `${I}px` && (s({
5948
5956
  type: mt,
5949
5957
  payload: {
5950
- footerPosition: Ye,
5958
+ footerPosition: Ke,
5951
5959
  footerOffset: I
5952
5960
  }
5953
5961
  }), (y = u == null ? void 0 : u.current) == null || y.style.setProperty(dt, `${I}px`));
5954
5962
  }
5955
- if (o === Ye && !a) {
5963
+ if (o === Ke && !a) {
5956
5964
  const I = f > 0 && f < 100 ? ka : va;
5957
5965
  p !== `${I}px` && (s({
5958
5966
  type: mt,
5959
5967
  payload: {
5960
- footerPosition: Ye,
5968
+ footerPosition: Ke,
5961
5969
  footerOffset: I
5962
5970
  }
5963
5971
  }), (v = u == null ? void 0 : u.current) == null || v.style.setProperty(dt, `${I}px`));
@@ -6005,7 +6013,7 @@ const Mc = (e) => {
6005
6013
  }
6006
6014
  );
6007
6015
  }, Kc = () => {
6008
- const e = qe(), t = qe(), { data: r, error: a, isLoading: n } = no(), o = (r == null ? void 0 : r.version) || "", s = (r == null ? void 0 : r.models) || [];
6016
+ const e = Ze(), t = Ze(), { data: r, error: a, isLoading: n } = no(), o = (r == null ? void 0 : r.version) || "", s = (r == null ? void 0 : r.models) || [];
6009
6017
  return /* @__PURE__ */ x(Q, { children: [
6010
6018
  /* @__PURE__ */ i("div", { className: "mb-4", children: /* @__PURE__ */ i(
6011
6019
  me,
@@ -6013,8 +6021,8 @@ const Mc = (e) => {
6013
6021
  header: K.ABOUT.TITLE_CLIENT,
6014
6022
  className: "prose-dark dark:prose-lighter",
6015
6023
  children: ht(e, {
6016
- [K.ABOUT.VERSION]: "8.0.0",
6017
- [K.ABOUT.BUILD_TIMESTAMP]: "02/25/2025 02:53 PM EST"
6024
+ [K.ABOUT.VERSION]: "8.0.2",
6025
+ [K.ABOUT.BUILD_TIMESTAMP]: "02/25/2025 08:07 PM EST"
6018
6026
  })
6019
6027
  }
6020
6028
  ) }),
@@ -6050,7 +6058,7 @@ const Mc = (e) => {
6050
6058
  state: { provider: g },
6051
6059
  setChatId: y,
6052
6060
  setInitialMessages: v
6053
- } = j(re), { setInput: T } = Fe(), [, I] = Oe({
6061
+ } = j(re), { setInput: T } = He(), [, I] = Oe({
6054
6062
  key: Be + Ma,
6055
6063
  initialValue: f.sortDirection
6056
6064
  }), E = (k) => {
@@ -6077,9 +6085,9 @@ const Mc = (e) => {
6077
6085
  }, S = async () => {
6078
6086
  const k = l.current;
6079
6087
  try {
6080
- await Ke({
6088
+ await Xe({
6081
6089
  accessToken: await o(),
6082
- type: Xe.DELETE_CHAT,
6090
+ type: qe.DELETE_CHAT,
6083
6091
  params: {
6084
6092
  userId: (n == null ? void 0 : n.username) || "",
6085
6093
  id: k.id
@@ -6089,9 +6097,9 @@ const Mc = (e) => {
6089
6097
  }
6090
6098
  }, b = async (k, N, O, C, M, R) => {
6091
6099
  try {
6092
- const L = await Ke({
6100
+ const L = await Xe({
6093
6101
  accessToken: C,
6094
- type: Xe.GET_CHAT,
6102
+ type: qe.GET_CHAT,
6095
6103
  params: {
6096
6104
  id: k.id
6097
6105
  }
@@ -6101,13 +6109,18 @@ const Mc = (e) => {
6101
6109
  accessToken: C,
6102
6110
  username: M
6103
6111
  }), N({
6104
- type: _e,
6112
+ type: Fe,
6113
+ payload: {
6114
+ provider: L.data.provider
6115
+ }
6116
+ }), N({
6117
+ type: ve,
6105
6118
  payload: {
6106
6119
  restoring: !0
6107
6120
  }
6108
6121
  }), T(""), setTimeout(() => {
6109
6122
  y(k.id), v(L.data.messages), N({
6110
- type: _e,
6123
+ type: ve,
6111
6124
  payload: {
6112
6125
  restoring: !1
6113
6126
  }
@@ -6340,7 +6353,7 @@ const Mc = (e) => {
6340
6353
  ) })
6341
6354
  ] }) });
6342
6355
  }, Qc = ({ stats: e }) => {
6343
- const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = ae(), o = qe(), s = qe(), l = (r == null ? void 0 : r.username) || "";
6356
+ const { isAuthenticated: t, user: r, registeringForPasskey: a, authenticationType: n } = ae(), o = Ze(), s = Ze(), l = (r == null ? void 0 : r.username) || "";
6344
6357
  return t && l ? /* @__PURE__ */ x(Q, { children: [
6345
6358
  /* @__PURE__ */ i(
6346
6359
  me,
@@ -6358,7 +6371,7 @@ const Mc = (e) => {
6358
6371
  {
6359
6372
  className: "prose-dark dark:prose-lighter mt-4",
6360
6373
  header: /* @__PURE__ */ i("h2", { className: "m-0", children: /* @__PURE__ */ x(yt, { columnGap: 3, alignVertical: "center", children: [
6361
- /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(zr, { size: "size-8" }) }),
6374
+ /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(Dr, { size: "size-8" }) }),
6362
6375
  /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i("div", { children: K.PREFERENCES.PASSKEY_TITLE }) })
6363
6376
  ] }) }),
6364
6377
  children: [
@@ -6370,7 +6383,7 @@ const Mc = (e) => {
6370
6383
  className: "mt-2",
6371
6384
  onClick: a,
6372
6385
  labelLeft: K.PREFERENCES.PASSKEY_BUTTON,
6373
- children: /* @__PURE__ */ i(zr, { size: "size-5", monotone: !0 })
6386
+ children: /* @__PURE__ */ i(Dr, { size: "size-5", monotone: !0 })
6374
6387
  }
6375
6388
  )
6376
6389
  ]
@@ -6417,7 +6430,7 @@ try {
6417
6430
  });
6418
6431
  } catch {
6419
6432
  }
6420
- const zn = "av-text-area", td = "av-text-area-wrapper", Ut = "av-text-area-helper-text", rd = "av-text-area__control--right", ad = "av-text-area__control--left";
6433
+ const Dn = "av-text-area", td = "av-text-area-wrapper", Ut = "av-text-area-helper-text", rd = "av-text-area__control--right", ad = "av-text-area__control--left";
6421
6434
  function nd() {
6422
6435
  const e = A(!1);
6423
6436
  return B(() => (e.current = !0, () => {
@@ -6483,7 +6496,7 @@ function ld(e) {
6483
6496
  return typeof r == "number" || typeof r == "string" ? `${a}${r}` : `${a}${t}`;
6484
6497
  }
6485
6498
  }
6486
- const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6499
+ const zn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6487
6500
  alert: null,
6488
6501
  alertdialog: null,
6489
6502
  log: "polite",
@@ -6493,7 +6506,7 @@ const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6493
6506
  timer: "assertive"
6494
6507
  }, dd = (e, t) => {
6495
6508
  switch (t == null ? void 0 : t.type) {
6496
- case Dn:
6509
+ case zn:
6497
6510
  return {
6498
6511
  ...e,
6499
6512
  announcement: t.payload
@@ -6521,7 +6534,7 @@ const Dn = "SET_ANNOUNCEMENT", Vn = "CLEAR_ANNOUNCEMENT", cd = {
6521
6534
  dispatch: n
6522
6535
  }) => {
6523
6536
  clearTimeout(r.current), e !== null && n({
6524
- type: Dn,
6537
+ type: zn,
6525
6538
  payload: e
6526
6539
  }), t && (r.current = setTimeout(
6527
6540
  () => ud({
@@ -6564,7 +6577,7 @@ function hd({
6564
6577
  visible: l,
6565
6578
  ...c
6566
6579
  }) {
6567
- const d = A(null), u = A(null), [m, f] = Ge(dd, {
6580
+ const d = A(null), u = A(null), [m, f] = Je(dd, {
6568
6581
  announcement: null
6569
6582
  });
6570
6583
  let p = r;
@@ -6714,7 +6727,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6714
6727
  td,
6715
6728
  e
6716
6729
  ), m = r ? h(t) : h(
6717
- zn,
6730
+ Dn,
6718
6731
  t,
6719
6732
  fd(),
6720
6733
  pd({ mode: l }),
@@ -6790,9 +6803,9 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6790
6803
  ...b
6791
6804
  }, _) => {
6792
6805
  var w;
6793
- const k = A(null), N = od([_, k]), [O, C] = wa(), [M, R] = wa(), L = A(80), V = A(-25), $ = A(null), F = A(30), W = A(null), H = ld({ id: e, prefix: `${zn}-` }), [Re, Rt] = P(0), [ot, At] = P(0), [Lt, xe] = P(
6806
+ const k = A(null), N = od([_, k]), [O, C] = wa(), [M, R] = wa(), L = A(80), V = A(-25), $ = A(null), F = A(30), W = A(null), H = ld({ id: e, prefix: `${Dn}-` }), [Re, Rt] = P(0), [ot, At] = P(0), [Lt, _e] = P(
6794
6807
  !!(!y && g)
6795
- ), Ue = `${t} error, ${g}`, ye = kd({
6808
+ ), je = `${t} error, ${g}`, ye = kd({
6796
6809
  className: o,
6797
6810
  textAreaClassName: s,
6798
6811
  error: a,
@@ -6807,19 +6820,19 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6807
6820
  value: d,
6808
6821
  initialControlledDelay: 20,
6809
6822
  defaultValue: u,
6810
- onChange: (z) => {
6823
+ onChange: (D) => {
6811
6824
  I && I({
6812
6825
  target: {
6813
- value: z
6826
+ value: D
6814
6827
  }
6815
6828
  });
6816
6829
  }
6817
- }), D = (z) => {
6818
- $t(z.target.value);
6819
- }, Y = (z) => {
6820
- y && g && xe(!0), E && E(z);
6821
- }, X = (z) => {
6822
- y && g && !ue && xe(!1), S && S(z);
6830
+ }), z = (D) => {
6831
+ $t(D.target.value);
6832
+ }, Y = (D) => {
6833
+ y && g && _e(!0), E && E(D);
6834
+ }, X = (D) => {
6835
+ y && g && !ue && _e(!1), S && S(D);
6823
6836
  };
6824
6837
  return ee(() => {
6825
6838
  C && C.width && Rt(C.width + 18 + 10);
@@ -6829,14 +6842,14 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6829
6842
  n || k && k.current && ue !== void 0 && (k.current.style.height = "inherit", k.current.style.height = k.current.scrollHeight + "px");
6830
6843
  }, [ue, n]), ee(() => {
6831
6844
  n || setTimeout(() => {
6832
- var z;
6833
- (z = $ == null ? void 0 : $.current) == null || z.style.setProperty(
6845
+ var D;
6846
+ (D = $ == null ? void 0 : $.current) == null || D.style.setProperty(
6834
6847
  "--av-text-area-wrapper-transition",
6835
6848
  ue ? "none" : "all 0.2s ease-out"
6836
6849
  );
6837
6850
  }, 0);
6838
6851
  }, [ue, n]), ee(() => {
6839
- var z, ne;
6852
+ var D, ne;
6840
6853
  if (!n && k && k.current && ue !== void 0) {
6841
6854
  const { labelOffset: be, helperTextOffset: oe, scrollHeight: se } = wd({
6842
6855
  scrollHeight: k.current.scrollHeight,
@@ -6844,7 +6857,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6844
6857
  currentLabelOffset: V.current,
6845
6858
  currentHelperTextOffset: F.current
6846
6859
  });
6847
- be && (V.current = be, (z = $ == null ? void 0 : $.current) == null || z.style.setProperty(
6860
+ be && (V.current = be, (D = $ == null ? void 0 : $.current) == null || D.style.setProperty(
6848
6861
  "--av-text-area-label",
6849
6862
  `${be}px`
6850
6863
  )), oe && (F.current = oe, (ne = W == null ? void 0 : W.current) == null || ne.style.setProperty(
@@ -6894,7 +6907,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6894
6907
  }
6895
6908
  },
6896
6909
  value: ue,
6897
- onChange: D,
6910
+ onChange: z,
6898
6911
  onFocus: Y,
6899
6912
  onBlur: X,
6900
6913
  ...b
@@ -6927,7 +6940,7 @@ const fd = () => "rounded-md text-base h-20 min-h-[80px] resize-none overflow-hi
6927
6940
  children: v
6928
6941
  }
6929
6942
  ),
6930
- a && g && /* @__PURE__ */ i(hd, { politeness: "polite", clearAnnouncementDelay: 500, children: Ue })
6943
+ a && g && /* @__PURE__ */ i(hd, { politeness: "polite", clearAnnouncementDelay: 500, children: je })
6931
6944
  ] });
6932
6945
  }
6933
6946
  );
@@ -7072,9 +7085,9 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7072
7085
  }, E = async (w) => {
7073
7086
  w.preventDefault();
7074
7087
  try {
7075
- await Ke({
7088
+ await Xe({
7076
7089
  accessToken: await r(),
7077
- type: Xe.SET_USER_PREFERENCES,
7090
+ type: qe.SET_USER_PREFERENCES,
7078
7091
  params: {
7079
7092
  user: a == null ? void 0 : a.username,
7080
7093
  instructions: f,
@@ -7092,9 +7105,9 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7092
7105
  loadingLocation: !0
7093
7106
  }), y("...");
7094
7107
  try {
7095
- const w = Date.now(), k = await ko(), N = await Ke({
7108
+ const w = Date.now(), k = await ko(), N = await Xe({
7096
7109
  accessToken: await r(),
7097
- type: Xe.GET_LOCATION,
7110
+ type: qe.GET_LOCATION,
7098
7111
  params: {
7099
7112
  latitude: k.latitude,
7100
7113
  longitude: k.longitude
@@ -7352,9 +7365,9 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7352
7365
  setShowConfirmation: m,
7353
7366
  action: t,
7354
7367
  customStrings: {
7355
- confirmAction: Dr,
7368
+ confirmAction: zr,
7356
7369
  cancelAction: "Cancel",
7357
- title: Dr
7370
+ title: zr
7358
7371
  },
7359
7372
  children: /* @__PURE__ */ i("p", { children: "Are you sure you want to log out?" })
7360
7373
  }
@@ -7364,7 +7377,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7364
7377
  s && /* @__PURE__ */ i(Zc, { open: s, onOpenChange: l }),
7365
7378
  /* @__PURE__ */ i(Xc, { open: c, onOpenChange: d }),
7366
7379
  /* @__PURE__ */ i("div", { className: "bg-slate-900 py-4 px-4 rounded-t-md", children: /* @__PURE__ */ x(yt, { alignHorizontal: "space-between", alignVertical: "center", children: [
7367
- /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(Dc, {}) }),
7380
+ /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(zc, {}) }),
7368
7381
  /* @__PURE__ */ i(Te, { children: /* @__PURE__ */ i(
7369
7382
  Se,
7370
7383
  {
@@ -7380,7 +7393,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7380
7393
  defaultPlacement: "bottom-end",
7381
7394
  children: [
7382
7395
  /* @__PURE__ */ i(
7383
- ve,
7396
+ ke,
7384
7397
  {
7385
7398
  label: "Profile",
7386
7399
  onClick: () => {
@@ -7390,7 +7403,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7390
7403
  }
7391
7404
  ),
7392
7405
  /* @__PURE__ */ i(
7393
- ve,
7406
+ ke,
7394
7407
  {
7395
7408
  label: "Settings",
7396
7409
  onClick: () => {
@@ -7400,7 +7413,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7400
7413
  }
7401
7414
  ),
7402
7415
  /* @__PURE__ */ i(
7403
- ve,
7416
+ ke,
7404
7417
  {
7405
7418
  label: "History",
7406
7419
  onClick: () => {
@@ -7410,7 +7423,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7410
7423
  }
7411
7424
  ),
7412
7425
  /* @__PURE__ */ i(
7413
- ve,
7426
+ ke,
7414
7427
  {
7415
7428
  label: "About",
7416
7429
  onClick: () => {
@@ -7422,7 +7435,7 @@ const xd = "av-toggle", _d = () => h("peer", "h-6", "w-11", "rounded-full"), Td
7422
7435
  !e && /* @__PURE__ */ x(Q, { children: [
7423
7436
  /* @__PURE__ */ i($c, {}),
7424
7437
  /* @__PURE__ */ i(
7425
- ve,
7438
+ ke,
7426
7439
  {
7427
7440
  label: "Log out",
7428
7441
  onClick: () => {
@@ -7578,13 +7591,13 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7578
7591
  if (r === "selected")
7579
7592
  return "bg-action-selected-dark";
7580
7593
  }
7581
- }, zd = ({
7594
+ }, Dd = ({
7582
7595
  radius: e
7583
7596
  }) => h({
7584
7597
  "rounded-full": e === "large",
7585
7598
  "rounded-md": e === "medium",
7586
7599
  "rounded-sm": e === "small"
7587
- }), Dd = ({
7600
+ }), zd = ({
7588
7601
  mode: e,
7589
7602
  disabled: t,
7590
7603
  variant: r
@@ -7724,7 +7737,7 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7724
7737
  noTruncate: p
7725
7738
  }),
7726
7739
  Pd({ mode: a, noBackground: m, variant: f }),
7727
- zd({ radius: y }),
7740
+ Dd({ radius: y }),
7728
7741
  Md({
7729
7742
  type: e,
7730
7743
  size: l,
@@ -7736,7 +7749,7 @@ const $d = "av-bubble", _a = "av-button", Ct = "icon", Fn = "button", ir = "link
7736
7749
  Bd({ type: e, size: l, labelRight: d, labelLeft: u }),
7737
7750
  Fd({ mode: a, variant: f, noBorder: c }),
7738
7751
  Hd({ focusMode: n }),
7739
- Dd({ mode: a, variant: f, disabled: o }),
7752
+ zd({ mode: a, variant: f, disabled: o }),
7740
7753
  Vd({ mode: a, variant: f, disabled: o }),
7741
7754
  {
7742
7755
  "w-full": s,
@@ -8814,7 +8827,7 @@ const Su = ({ content: e }) => /* @__PURE__ */ i(
8814
8827
  ), Sa = Lo(
8815
8828
  () => import(
8816
8829
  /* webpackChunkName: "LazyMessageAssistant" */
8817
- "./ChatBubbleAssistant.yu1vfSf_.js"
8830
+ "./ChatBubbleAssistant.5vhIAVOX.js"
8818
8831
  ).then((e) => e.ChatBubbleAssistant)
8819
8832
  ), Ru = G.memo(
8820
8833
  ({
@@ -8833,7 +8846,7 @@ const Su = ({ content: e }) => /* @__PURE__ */ i(
8833
8846
  ), Au = () => {
8834
8847
  const {
8835
8848
  state: { loading: e }
8836
- } = j(re), { messages: t } = Fe();
8849
+ } = j(re), { messages: t } = He();
8837
8850
  return e && (!t || t.length === 0) ? /* @__PURE__ */ i(lr, { children: /* @__PURE__ */ i(Na, { type: "dots" }) }) : t && t.length > 0 ? /* @__PURE__ */ x("div", { className: "space-y-6 mt-2 @container", children: [
8838
8851
  t && t.length > 0 && t.map((r, a) => {
8839
8852
  let n = null;
@@ -8859,7 +8872,7 @@ const Su = ({ content: e }) => /* @__PURE__ */ i(
8859
8872
  extraClass: "rounded-b-md relative"
8860
8873
  });
8861
8874
  return B(() => {
8862
- s.current = a === Ye ? n + o + Oa + To : 0;
8875
+ s.current = a === Ke ? n + o + Oa + To : 0;
8863
8876
  }, [a, n, o]), /* @__PURE__ */ x(Q, { children: [
8864
8877
  /* @__PURE__ */ x("div", { className: l, children: [
8865
8878
  /* @__PURE__ */ i(Io, {}),
@@ -8869,7 +8882,7 @@ const Su = ({ content: e }) => /* @__PURE__ */ i(
8869
8882
  /* @__PURE__ */ i(
8870
8883
  Pc,
8871
8884
  {
8872
- show: !r && a === Ye,
8885
+ show: !r && a === Ke,
8873
8886
  bottom: s.current
8874
8887
  }
8875
8888
  )
@@ -8885,18 +8898,18 @@ function Jn({
8885
8898
  }), [p] = Oe({
8886
8899
  key: Be + Ma,
8887
8900
  initialValue: he.ASC
8888
- }), [g, y] = Ge(ii, {
8901
+ }), [g, y] = Je(ii, {
8889
8902
  footerPosition: "FOOTER_TOP",
8890
8903
  footerHeight: 0,
8891
8904
  footerOffset: 0
8892
- }), [v, T] = Ge(oi, {
8905
+ }), [v, T] = Je(oi, {
8893
8906
  searchString: f,
8894
8907
  sortedCell: "timestamp",
8895
8908
  sortDirection: p
8896
- }), [I, E] = Ge(si, {
8909
+ }), [I, E] = Je(si, {
8897
8910
  prompt: "",
8898
8911
  lastTriggeredTimestamp: 0
8899
- }), [S, b] = Ge(ci, {
8912
+ }), [S, b] = Je(ci, {
8900
8913
  provider: "",
8901
8914
  // OpenAI, Anthropic, etc.
8902
8915
  privateChat: !1,
@@ -8928,7 +8941,7 @@ function Jn({
8928
8941
  }, 500);
8929
8942
  }), B(() => {
8930
8943
  _ && _.provider && b({
8931
- type: et,
8944
+ type: Fe,
8932
8945
  payload: {
8933
8946
  provider: _.provider
8934
8947
  }
@@ -9020,9 +9033,9 @@ function Jn({
9020
9033
  );
9021
9034
  }
9022
9035
  Jn.displayName = "App";
9023
- const zu = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Jn }, Symbol.toStringTag, { value: "Module" }));
9036
+ const Du = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: Jn }, Symbol.toStringTag, { value: "Module" }));
9024
9037
  export {
9025
- zu as App,
9038
+ Du as App,
9026
9039
  re as ChatContext,
9027
9040
  Oe as E,
9028
9041
  lr as Re,