@versini/sassysaint 8.63.1 → 8.64.0

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.
Files changed (24) hide show
  1. package/dist/chunks/{AboutChangelog.COOGja4L.js → AboutChangelog.ClPdTj6q.js} +2 -2
  2. package/dist/chunks/{AboutEntry.7ncF_DIc.js → AboutEntry.CSTnhS8V.js} +5 -5
  3. package/dist/chunks/{App.DoVbmL2p.js → App.D79DErDb.js} +123 -123
  4. package/dist/chunks/{Chart.z1dHEeK6.js → Chart.anWx1EJ1.js} +2 -2
  5. package/dist/chunks/{ChatBubbleAssistant.DVMPxg2S.js → ChatBubbleAssistant.440b52to.js} +4 -4
  6. package/dist/chunks/{ChatBubbleUser.BH4pmGH0.js → ChatBubbleUser.Btv6do4Q.js} +3 -3
  7. package/dist/chunks/{ChatHistoryTable.DZZj5eGe.js → ChatHistoryTable.CItlSrv5.js} +43 -43
  8. package/dist/chunks/{HistoryEntry.BJMwUkDf.js → HistoryEntry.kMPC-6lA.js} +27 -27
  9. package/dist/chunks/{ProfileEntry.OkDRtUl8.js → ProfileEntry.Cf4tcjoj.js} +6 -6
  10. package/dist/chunks/{SettingsEntry.D1ZU-gPR.js → SettingsEntry.BeBSUqx6.js} +2 -2
  11. package/dist/chunks/{Table.BfS9Q50S.js → Table.CsQklVBG.js} +2 -2
  12. package/dist/chunks/{UsageEntry.D0J4ZEpB.js → UsageEntry.DQIU0kzt.js} +3 -3
  13. package/dist/chunks/{UserMemoriesPanel.D_wyyDyJ.js → UserMemoriesPanel.DSSLiVHt.js} +3 -3
  14. package/dist/chunks/{index.BnidGtMy.js → index.-j_njLEh.js} +1 -1
  15. package/dist/chunks/{index.B__EFtnc.js → index.BXUh8Hx0.js} +1 -1
  16. package/dist/chunks/{index.Bng14czd.js → index.C8_GUi7S.js} +3 -3
  17. package/dist/chunks/{index.Ok5GIj4k.js → index.CGFySwFw.js} +1 -1
  18. package/dist/chunks/{index.DrNBEhtX.js → index.CcY06_BE.js} +1 -1
  19. package/dist/chunks/{index.DCbJZ9UB.js → index.DqTXCFGJ.js} +610 -601
  20. package/dist/chunks/{index.CRxV0D78.js → index.sQ9g50Gu.js} +2 -2
  21. package/dist/chunks/{useMarkdown.CpO2Waej.js → useMarkdown.Bqr7iP8w.js} +6 -6
  22. package/dist/components/SassySaint/SassySaint.js +1 -1
  23. package/dist/index.js +4 -4
  24. package/package.json +3 -3
@@ -1,7 +1,7 @@
1
1
  import { jsx as Ap } from "react/jsx-runtime";
2
- import { getDefaultExportFromCjs as ln } from "./App.DoVbmL2p.js";
2
+ import { getDefaultExportFromCjs as ln } from "./App.D79DErDb.js";
3
3
  import Cp, { useState as Pp, useEffect as Op } from "react";
4
- import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.DCbJZ9UB.js";
4
+ import { TRIMESTERS as rn, TRIMESTERS_SHORT as Lp, isProbablyMobile as Ep } from "./index.DqTXCFGJ.js";
5
5
  var ls = { exports: {} }, Ip = ls.exports, on;
6
6
  function Dp() {
7
7
  return on || (on = 1, (function(ke, ne) {
@@ -1,10 +1,10 @@
1
1
  import { jsx as x } from "react/jsx-runtime";
2
- import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, re as L } from "./index.DCbJZ9UB.js";
3
- import { BUBBLE_FOOTER_EMPTY as _ } from "./index.Ok5GIj4k.js";
2
+ import { n as N, useUserPreferences as O, convertCamelCaseToReadable as P, numberFormatter as R, pluralize as y, Y as L } from "./index.DqTXCFGJ.js";
3
+ import { BUBBLE_FOOTER_EMPTY as _ } from "./index.CGFySwFw.js";
4
4
  import w from "clsx";
5
5
  import v, { useState as M, useRef as A, useEffect as U, useContext as B } from "react";
6
- import { ChatContext as G, AsyncBubble as E } from "./App.DoVbmL2p.js";
7
- import { useMarkdown as D } from "./useMarkdown.CpO2Waej.js";
6
+ import { ChatContext as G, AsyncBubble as E } from "./App.D79DErDb.js";
7
+ import { useMarkdown as D } from "./useMarkdown.Bqr7iP8w.js";
8
8
  const j = 2, q = j * 1e3, b = "", I = (e) => e * (2 - e);
9
9
  function W(e, n = !0) {
10
10
  const [a, p] = M(0), [i, C] = M(0), [t, T] = M(e), r = A(0), s = A(0);
@@ -1,8 +1,8 @@
1
1
  import { jsx as n, Fragment as b, jsxs as A } from "react/jsx-runtime";
2
2
  import { useState as C, useMemo as u, isValidElement as p, useEffect as I } from "react";
3
- import { AsyncBubble as w } from "./App.DoVbmL2p.js";
4
- import { useMarkdown as _ } from "./useMarkdown.CpO2Waej.js";
5
- import { C as M } from "./index.DCbJZ9UB.js";
3
+ import { AsyncBubble as w } from "./App.D79DErDb.js";
4
+ import { useMarkdown as _ } from "./useMarkdown.Bqr7iP8w.js";
5
+ import { C as M } from "./index.DqTXCFGJ.js";
6
6
  const R = 200, N = ({
7
7
  string: e,
8
8
  idealLength: r = R
@@ -1,12 +1,12 @@
1
1
  import { jsxs as m, jsx as e } from "react/jsx-runtime";
2
- import { I as g, pe as N, fe as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, le as b, isProbablyMobile as D, d as U, c as B, y as I } from "./index.DCbJZ9UB.js";
3
- import { st as u, p$1 as P, z as L, p$2 as V } from "./App.DoVbmL2p.js";
2
+ import { I as g, K as N, Z as C, INFINITE_SCROLL_THRESHOLD as A, CARDS as E, pluralize as y, te as p, numberFormatter as k, nt as b, isProbablyMobile as D, c as U, O as B, _ as I } from "./index.DqTXCFGJ.js";
3
+ import { st as u, p$1 as P, z as L, p$2 as V } from "./App.D79DErDb.js";
4
4
  import h from "clsx";
5
5
  import { Fragment as _ } from "react";
6
- import { j as $, D as H, G as M, H as Y, U as F, M as a, F as R, l as G } from "./Table.BfS9Q50S.js";
7
- const K = ({
8
- className: c,
9
- viewBox: l,
6
+ import { j as $, D as H, G as M, H as K, U as Y, M as a, F as f, l as F } from "./Table.CsQklVBG.js";
7
+ const G = ({
8
+ className: l,
9
+ viewBox: c,
10
10
  title: o,
11
11
  monotone: i,
12
12
  ...n
@@ -15,8 +15,8 @@ const K = ({
15
15
  {
16
16
  defaultViewBox: "0 0 512 512",
17
17
  size: "size-5",
18
- viewBox: l,
19
- className: c,
18
+ viewBox: c,
19
+ className: l,
20
20
  title: o || "Restore",
21
21
  ...n,
22
22
  children: [
@@ -31,8 +31,8 @@ const K = ({
31
31
  ]
32
32
  }
33
33
  ), W = ({
34
- className: c,
35
- viewBox: l,
34
+ className: l,
35
+ viewBox: c,
36
36
  title: o,
37
37
  monotone: i,
38
38
  ...n
@@ -41,8 +41,8 @@ const K = ({
41
41
  {
42
42
  defaultViewBox: "0 0 512 512",
43
43
  size: "size-5",
44
- viewBox: l,
45
- className: c,
44
+ viewBox: c,
45
+ className: l,
46
46
  title: o || "Star in Circle",
47
47
  ...n,
48
48
  children: [
@@ -57,8 +57,8 @@ const K = ({
57
57
  ]
58
58
  }
59
59
  ), j = ({
60
- className: c,
61
- viewBox: l,
60
+ className: l,
61
+ viewBox: c,
62
62
  title: o,
63
63
  monotone: i,
64
64
  ...n
@@ -67,8 +67,8 @@ const K = ({
67
67
  {
68
68
  defaultViewBox: "0 0 512 512",
69
69
  size: "size-5",
70
- viewBox: l,
71
- className: c,
70
+ viewBox: c,
71
+ className: l,
72
72
  title: o || "Star in Circle",
73
73
  ...n,
74
74
  children: [
@@ -82,7 +82,7 @@ const K = ({
82
82
  /* @__PURE__ */ e("path", { d: "M256 32a224 224 0 1 1 0 448 224 224 0 1 1 0-448m0 480a256 256 0 1 0 0-512 256 256 0 1 0 0 512m14.3-399.1c-2.7-5.5-8.3-8.9-14.3-8.9s-11.7 3.5-14.3 8.9l-36.2 73.4-81 11.8c-6 .9-11 5.1-12.9 10.9s-.3 12.2 4 16.4l58.6 57.2-13.8 80.7c-1 6 1.4 12.1 6.4 15.6s11.5 4.1 16.8 1.2l72.4-38 72.5 38.1c5.4 2.8 11.9 2.4 16.9-1.2s7.4-9.6 6.4-15.6L338 282.7l58.6-57.2c4.4-4.3 5.9-10.6 4-16.4s-6.9-10-12.9-10.9l-81.1-11.8-36.2-73.4zm-40 95.1 25.7-51.8 25.6 51.9c2.3 4.7 6.8 8 12 8.8l57.3 8.3-41.5 40.4c-3.8 3.7-5.5 9-4.6 14.2l9.8 57.1-51.2-26.9c-4.7-2.5-10.2-2.5-14.9 0l-51.2 26.9 9.8-57.1c.9-5.2-.8-10.5-4.6-14.2L161 225.1l57.3-8.3c5.2-.8 9.7-4 12-8.8" })
83
83
  ]
84
84
  }
85
- ), q = {
85
+ ), Z = {
86
86
  [I]: V,
87
87
  [B]: L,
88
88
  [U]: P
@@ -93,42 +93,42 @@ const K = ({
93
93
  PROVIDER: "provider",
94
94
  TOKEN_USAGE: C,
95
95
  ACTIONS: "actions"
96
- }, J = [
96
+ }, q = [
97
97
  t.ROW,
98
98
  t.TIMESTAMP,
99
99
  t.SUMMARY,
100
100
  t.ACTIONS
101
- ], Q = [
101
+ ], J = [
102
102
  t.ROW,
103
103
  t.SUMMARY,
104
104
  t.TIMESTAMP,
105
105
  t.TOKEN_USAGE,
106
106
  t.PROVIDER,
107
107
  t.ACTIONS
108
- ], le = ({
109
- filteredHistory: c,
110
- historyState: l,
108
+ ], ce = ({
109
+ filteredHistory: l,
110
+ historyState: c,
111
111
  lastEntryToLoad: o,
112
112
  onClickSort: i,
113
113
  onClickRestore: n,
114
114
  onClickDelete: w,
115
- onClickFavorite: S,
116
- infinityScrollMarkerRef: O
115
+ onClickFavorite: O,
116
+ infinityScrollMarkerRef: S
117
117
  }) => {
118
- const v = D() ? J : Q, T = (s) => {
118
+ const v = D() ? q : J, T = (s) => {
119
119
  switch (s) {
120
120
  case t.ROW:
121
121
  return /* @__PURE__ */ e(a, { className: "sr-only", children: "Row" }, s);
122
122
  case t.TIMESTAMP:
123
123
  return /* @__PURE__ */ e(
124
- R,
124
+ f,
125
125
  {
126
126
  focusMode: "system",
127
127
  buttonClassName: "text-xs sm:text-sm",
128
128
  cellId: N,
129
129
  align: "left",
130
- sortDirection: l.sortDirection,
131
- sortedCell: l.sortedCell,
130
+ sortDirection: c.sortDirection,
131
+ sortedCell: c.sortedCell,
132
132
  onClick: () => {
133
133
  i(N);
134
134
  },
@@ -142,14 +142,14 @@ const K = ({
142
142
  return /* @__PURE__ */ e(a, { className: "text-xs sm:text-sm", children: "Provider" }, s);
143
143
  case t.TOKEN_USAGE:
144
144
  return /* @__PURE__ */ e(
145
- R,
145
+ f,
146
146
  {
147
147
  focusMode: "system",
148
148
  buttonClassName: "text-xs sm:text-sm",
149
149
  cellId: C,
150
150
  align: "right",
151
- sortDirection: l.sortDirection,
152
- sortedCell: l.sortedCell,
151
+ sortDirection: c.sortDirection,
152
+ sortedCell: c.sortedCell,
153
153
  onClick: () => {
154
154
  i(C);
155
155
  },
@@ -198,7 +198,7 @@ const K = ({
198
198
  );
199
199
  }
200
200
  case t.PROVIDER: {
201
- const d = r.model ? b(r.model) : null, f = d ? q[d] : null;
201
+ const d = r.model ? b(r.model) : null, R = d ? Z[d] : null;
202
202
  return /* @__PURE__ */ e(
203
203
  a,
204
204
  {
@@ -206,8 +206,8 @@ const K = ({
206
206
  scope: "row",
207
207
  className: h("dark:text-gray-400"),
208
208
  align: "center",
209
- children: f ? /* @__PURE__ */ e(
210
- f,
209
+ children: R ? /* @__PURE__ */ e(
210
+ R,
211
211
  {
212
212
  size: "size-4 sm:size-5",
213
213
  semantic: !0,
@@ -245,7 +245,7 @@ const K = ({
245
245
  onClick: async () => {
246
246
  await n(r);
247
247
  },
248
- children: /* @__PURE__ */ e(K, { size: "size-3", monotone: !0 })
248
+ children: /* @__PURE__ */ e(G, { size: "size-3", monotone: !0 })
249
249
  }
250
250
  )
251
251
  }
@@ -262,7 +262,7 @@ const K = ({
262
262
  label: r.favoriteChat ? "Remove from favorites" : "Add to favorites",
263
263
  variant: "primary",
264
264
  onClick: async () => {
265
- await S(r);
265
+ await O(r);
266
266
  },
267
267
  children: r.favoriteChat ? /* @__PURE__ */ e(W, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ e(j, { size: "size-4", monotone: !0 })
268
268
  }
@@ -284,7 +284,7 @@ const K = ({
284
284
  onClick: () => {
285
285
  w(r);
286
286
  },
287
- children: /* @__PURE__ */ e(G, { size: "size-3", monotone: !0 })
287
+ children: /* @__PURE__ */ e(F, { size: "size-3", monotone: !0 })
288
288
  }
289
289
  )
290
290
  }
@@ -296,18 +296,18 @@ const K = ({
296
296
  };
297
297
  return /* @__PURE__ */ m($, { stickyHeader: !0, stickyFooter: !0, compact: !0, mode: "alt-system", children: [
298
298
  /* @__PURE__ */ e(H, { children: /* @__PURE__ */ e(M, { children: v.map((s) => T(s)) }) }),
299
- /* @__PURE__ */ e(Y, { children: c.slice(0, o).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m(_, { children: [
300
- r === o - A && /* @__PURE__ */ e("tr", { ref: O }),
299
+ /* @__PURE__ */ e(K, { children: l.slice(0, o).map((s, r) => s?.messages?.length > 0 ? /* @__PURE__ */ m(_, { children: [
300
+ r === o - A && /* @__PURE__ */ e("tr", { ref: S }),
301
301
  /* @__PURE__ */ e(M, { children: v.map(
302
302
  (x) => z(x, s, r)
303
303
  ) })
304
304
  ] }, `${E.HISTORY.TITLE}-${s.id}-${r}`) : null) }),
305
- /* @__PURE__ */ e(F, { children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: y(
306
- `${c.length} chat`,
307
- c.length
305
+ /* @__PURE__ */ e(Y, { children: /* @__PURE__ */ e(M, { children: /* @__PURE__ */ e(a, { colSpan: 1e3, children: /* @__PURE__ */ e("div", { children: y(
306
+ `${l.length} chat`,
307
+ l.length
308
308
  ) }) }) }) })
309
309
  ] });
310
310
  };
311
311
  export {
312
- le as ChatHistoryTable
312
+ ce as ChatHistoryTable
313
313
  };
@@ -1,6 +1,6 @@
1
- import { jsxs as n, jsx as t, Fragment as Q } from "react/jsx-runtime";
2
- import { I as Z, n as P, INFINITE_SCROLL_LIMIT as G, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as y, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, pe as L, useUserPreferences as se, APP_CLASSNAME as oe, mutateCall as b, SERVICE_TYPES as x, TOAST_CHAT_DELETED as ie, setNewProvider as ne, ACTION_SORT as ce, fe as le, TOAST_PROVIDER_CHANGED as de, useChatsHistory as he, LOCAL_STORAGE_SEARCH as me, LOCAL_STORAGE_FAVORITES_ONLY as ue, HISTORY_TITLE as Ce, S as Se, Y as pe, debounce as Te, C as fe, ACTION_SEARCH as ye } from "./index.DCbJZ9UB.js";
3
- import { HistoryContext as z, ChatContext as M, useAiChat as Ee, E, e as m, ConfirmationPanel as ge, LazyToastContainerWrapper as Ae, showErrorToast as _e, CHAT_SET_PROVIDER as Oe, showSuccessToast as ve, CHAT_SET_STATUS as De, oe as Le, O as Re } from "./App.DoVbmL2p.js";
1
+ import { jsxs as n, jsx as t, Fragment as J } from "react/jsx-runtime";
2
+ import { I as Q, n as P, INFINITE_SCROLL_LIMIT as G, INFINITE_SCROLL_THRESHOLD as ee, LOCAL_STORAGE_PREFIX as f, LOCAL_STORAGE_SORT_TIMESTAMP as te, LOCAL_STORAGE_SORT_TOKEN_USAGE as re, LOCAL_STORAGE_SORT as ae, K as L, useUserPreferences as se, APP_CLASSNAME as oe, mutateCall as b, SERVICE_TYPES as x, TOAST_CHAT_DELETED as ie, setNewProvider as ne, ACTION_SORT as ce, Z as le, TOAST_PROVIDER_CHANGED as de, useChatsHistory as he, LOCAL_STORAGE_SEARCH as me, LOCAL_STORAGE_FAVORITES_ONLY as ue, HISTORY_TITLE as Ce, S as Se, Y$1 as pe, debounce as Te, C as ye, ACTION_SEARCH as fe } from "./index.DqTXCFGJ.js";
3
+ import { HistoryContext as z, ChatContext as M, useAiChat as Ee, E, e as m, ConfirmationPanel as ge, LazyToastContainerWrapper as Ae, showErrorToast as _e, CHAT_SET_PROVIDER as Oe, showSuccessToast as ve, CHAT_SET_STATUS as De, oe as Le, O as Re } from "./App.D79DErDb.js";
4
4
  import { useRef as H, useState as F, useContext as R, useCallback as ke, useEffect as U, Suspense as Ie, lazy as we } from "react";
5
5
  const Ne = ({
6
6
  className: l,
@@ -9,7 +9,7 @@ const Ne = ({
9
9
  monotone: u,
10
10
  ...d
11
11
  }) => /* @__PURE__ */ n(
12
- Z,
12
+ Q,
13
13
  {
14
14
  defaultViewBox: "0 0 512 512",
15
15
  size: "size-5",
@@ -31,7 +31,7 @@ const Ne = ({
31
31
  ), be = we(
32
32
  () => import(
33
33
  /* webpackChunkName: "history-table" */
34
- "./ChatHistoryTable.DZZj5eGe.js"
34
+ "./ChatHistoryTable.CItlSrv5.js"
35
35
  ).then((l) => ({ default: l.ChatHistoryTable }))
36
36
  ), xe = ({
37
37
  filteredHistory: l,
@@ -50,22 +50,22 @@ const Ne = ({
50
50
  sortDirection: i.sortDirection || m.DESC,
51
51
  sortedCell: i.sortedCell || L
52
52
  }, {
53
- state: { provider: f },
53
+ state: { provider: y },
54
54
  setChatId: w,
55
55
  setInitialMessages: _
56
56
  } = R(M), { setInput: N } = Ee(), [O, v] = E({
57
- key: y + te,
57
+ key: f + te,
58
58
  initialValue: m.DESC
59
59
  }), [a, B] = E({
60
- key: y + re,
60
+ key: f + re,
61
61
  initialValue: m.ASC
62
62
  }), [, Y] = E({
63
- key: y + ae,
63
+ key: f + ae,
64
64
  initialValue: L
65
- }), { refetch: j } = se({
65
+ }), { refetch: $ } = se({
66
66
  user: d?.username,
67
67
  getAccessToken: C
68
- }), $ = (e) => {
68
+ }), j = (e) => {
69
69
  const s = i.sortedCell === e;
70
70
  let r, D;
71
71
  switch (e) {
@@ -112,7 +112,7 @@ const Ne = ({
112
112
  id: e.id
113
113
  }
114
114
  });
115
- r.data.provider !== f && (await ne({
115
+ r.data.provider !== y && (await ne({
116
116
  provider: r.data.provider,
117
117
  accessToken: s,
118
118
  username: d?.username || ""
@@ -121,7 +121,7 @@ const Ne = ({
121
121
  payload: {
122
122
  provider: r.data.provider
123
123
  }
124
- }), j(), await ve(
124
+ }), $(), await ve(
125
125
  `${de} ${r.data.provider}`,
126
126
  {
127
127
  containerId: "toggle-provider"
@@ -142,7 +142,7 @@ const Ne = ({
142
142
  timestamp: e.timestamp,
143
143
  message: e.messages.length > 0 ? e.messages[0]?.content : ""
144
144
  }, g(!c);
145
- }, q = async (e) => {
145
+ }, Z = async (e) => {
146
146
  try {
147
147
  await b({
148
148
  accessToken: await C(),
@@ -154,16 +154,16 @@ const Ne = ({
154
154
  }), u("");
155
155
  } catch {
156
156
  }
157
- }, J = ke((e) => {
157
+ }, q = ke((e) => {
158
158
  e[0].isIntersecting && k((r) => r + G);
159
159
  }, []);
160
160
  return U(() => {
161
161
  const e = {
162
162
  // root: null,
163
163
  rootMargin: "20px"
164
- }, s = new IntersectionObserver(J, e);
164
+ }, s = new IntersectionObserver(q, e);
165
165
  S.current && s.observe(S.current);
166
- }), /* @__PURE__ */ n(Q, { children: [
166
+ }), /* @__PURE__ */ n(J, { children: [
167
167
  /* @__PURE__ */ n(
168
168
  ge,
169
169
  {
@@ -199,10 +199,10 @@ const Ne = ({
199
199
  filteredHistory: l,
200
200
  historyState: I,
201
201
  lastEntryToLoad: p,
202
- onClickSort: $,
202
+ onClickSort: j,
203
203
  onClickRestore: W,
204
204
  onClickDelete: X,
205
- onClickFavorite: q,
205
+ onClickFavorite: Z,
206
206
  infinityScrollMarkerRef: S
207
207
  }
208
208
  ) })
@@ -224,20 +224,20 @@ const Ne = ({
224
224
  sortedCell: c.sortedCell || L,
225
225
  getAccessToken: T
226
226
  }), [, I] = E({
227
- key: y + me,
227
+ key: f + me,
228
228
  initialValue: c.searchString
229
- }), [f, w] = E({
230
- key: y + ue,
229
+ }), [y, w] = E({
230
+ key: f + ue,
231
231
  initialValue: !1
232
232
  });
233
233
  U(() => {
234
234
  p && S(
235
- f ? p.filter((a) => a.favoriteChat === !0) : p
235
+ y ? p.filter((a) => a.favoriteChat === !0) : p
236
236
  );
237
- }, [p, f]);
237
+ }, [p, y]);
238
238
  const _ = async (a) => {
239
239
  I(a), g({
240
- type: ye,
240
+ type: fe,
241
241
  payload: { searchString: a }
242
242
  });
243
243
  }, N = Te((a) => {
@@ -288,7 +288,7 @@ const Ne = ({
288
288
  Re,
289
289
  {
290
290
  name: "favorites-only",
291
- checked: f,
291
+ checked: y,
292
292
  onChange: v,
293
293
  label: "Show favorites only",
294
294
  narrow: !0,
@@ -296,7 +296,7 @@ const Ne = ({
296
296
  }
297
297
  ) }),
298
298
  /* @__PURE__ */ t(
299
- fe,
299
+ ye,
300
300
  {
301
301
  size: "small",
302
302
  disabled: c.searchString === "",
@@ -1,6 +1,6 @@
1
1
  import { jsxs as t, Fragment as M, jsx as e } from "react/jsx-runtime";
2
- import { preloadToast as B, showSuccessToast as G, showErrorToast as O, LazyToastContainerWrapper as j, oe as D } from "./App.DoVbmL2p.js";
3
- import { n as K, i as W, useUserPreferences as Y, useServerCapabilities as H, Ee as $, setUserPlan as V, S as o, renderDataAsList as q, CARDS as r, L as E, j as l, C as J, it as Q, isTauri as X, te as Z, l as I, PROFILE_TITLE as ee } from "./index.DCbJZ9UB.js";
2
+ import { preloadToast as B, showSuccessToast as G, showErrorToast as O, LazyToastContainerWrapper as j, oe as D } from "./App.D79DErDb.js";
3
+ import { n as K, i as W, useUserPreferences as Y, useServerCapabilities as H, x as $, setUserPlan as V, S as o, renderDataAsList as q, CARDS as r, L as E, j as l, C as J, it as Q, isTauri as X, te as Z, l as I, PROFILE_TITLE as ee } from "./index.DqTXCFGJ.js";
4
4
  import se from "clsx";
5
5
  import { useState as L, useMemo as re, useCallback as k } from "react";
6
6
  const ae = () => {
@@ -12,7 +12,7 @@ const ae = () => {
12
12
  getAccessToken: m
13
13
  } = K(), [y, S] = L(null), [N, b] = L(!1), v = W(), P = a?.username || "", {
14
14
  data: h,
15
- isSuccess: F,
15
+ isSuccess: x,
16
16
  refetch: f
17
17
  } = Y({
18
18
  user: a?.username,
@@ -27,7 +27,7 @@ const ae = () => {
27
27
  )
28
28
  })), [u, p?.plans]), C = k(() => {
29
29
  N || (B(), b(!0));
30
- }, [N]), x = k(
30
+ }, [N]), F = k(
31
31
  async (s, n) => {
32
32
  if (!(!a?.username || s === h?.plan))
33
33
  try {
@@ -62,7 +62,7 @@ const ae = () => {
62
62
  })
63
63
  }
64
64
  ),
65
- F && u && T.length > 0 && /* @__PURE__ */ t(
65
+ x && u && T.length > 0 && /* @__PURE__ */ t(
66
66
  o,
67
67
  {
68
68
  header: r.PLANS.TITLE,
@@ -101,7 +101,7 @@ const ae = () => {
101
101
  fullWidth: !0,
102
102
  disabled: c || A,
103
103
  onClick: async () => {
104
- await x(s, n);
104
+ await F(s, n);
105
105
  },
106
106
  onMouseEnter: C,
107
107
  onFocus: C,
@@ -1,6 +1,6 @@
1
1
  import { jsxs as u, jsx as r, Fragment as ue } from "react/jsx-runtime";
2
- import { o as Ee, h as me, i as Ne, x as Te, n as we, useUserPreferences as ve, Se as he, getCacheInfo as Se, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Ie, S as H, CARDS as C, _e, C as le, PROMPTS_DESCRIPTION as Le, L as Re, j as pe, getCurrentGeoLocation as Ae, mutateCall as fe, handleServiceWorkerToggle as De, SERVICE_TYPES as ge } from "./index.DCbJZ9UB.js";
3
- import { useCapability as ye, oe as Oe, O as I } from "./App.DoVbmL2p.js";
2
+ import { o as Ee, h as me, i as Ne, x$1 as Te, n as we, useUserPreferences as ve, tt as he, getCacheInfo as Se, isServiceWorkerEnabled as Ce, SETTINGS_TITLE as Ie, S as H, CARDS as C, J as _e, C as le, PROMPTS_DESCRIPTION as Le, L as Re, j as pe, getCurrentGeoLocation as Ae, mutateCall as fe, handleServiceWorkerToggle as De, SERVICE_TYPES as ge } from "./index.DqTXCFGJ.js";
3
+ import { useCapability as ye, oe as Oe, O as I } from "./App.D79DErDb.js";
4
4
  import Me, { useState as d, useEffect as ie, useRef as V, useLayoutEffect as J, useCallback as Be } from "react";
5
5
  import p from "clsx";
6
6
  function Pe({
@@ -1,8 +1,8 @@
1
1
  import { jsxs as _, jsx as r } from "react/jsx-runtime";
2
- import { I as f, b as v } from "./index.DCbJZ9UB.js";
2
+ import { I as f, b as v } from "./index.DqTXCFGJ.js";
3
3
  import C, { useContext as b } from "react";
4
4
  import o from "clsx";
5
- import { e as k } from "./App.DoVbmL2p.js";
5
+ import { e as k } from "./App.D79DErDb.js";
6
6
  const L = ({
7
7
  className: e,
8
8
  viewBox: a,
@@ -1,10 +1,10 @@
1
1
  import { jsxs as l, jsx as e } from "react/jsx-runtime";
2
- import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.DCbJZ9UB.js";
3
- import { oe as z } from "./App.DoVbmL2p.js";
2
+ import { n as f, i as U, useUserChatStats as v, useChatsUsage as E, USAGE_TITLE as L, S as h, renderDataAsList as M, CARDS as n, L as _, j as D, C as m, pluralize as i } from "./index.DqTXCFGJ.js";
3
+ import { oe as z } from "./App.D79DErDb.js";
4
4
  import { useState as O, Suspense as P, lazy as B } from "react";
5
5
  const t = [0, 3, 6, 9], j = B(() => import(
6
6
  /* webpackChunkName: "LazyChart" */
7
- "./Chart.z1dHEeK6.js"
7
+ "./Chart.anWx1EJ1.js"
8
8
  )), b = ({
9
9
  open: S,
10
10
  onOpenChange: I
@@ -1,9 +1,9 @@
1
1
  import { jsxs as r, Fragment as B, jsx as e } from "react/jsx-runtime";
2
- import { n as V, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Y, LOCAL_STORAGE_SORT_MEMORY_COLUMN as X, useUserMemories as $, useDeleteMemory as J, useDeleteAllMemories as K, L as O, j as u, te as Q, C as M } from "./index.DCbJZ9UB.js";
3
- import { E as T, e as c, ConfirmationPanel as R, oe as W, st as Z } from "./App.DoVbmL2p.js";
2
+ import { n as V, LOCAL_STORAGE_PREFIX as N, LOCAL_STORAGE_SORT_MEMORY_DIRECTION as Y, LOCAL_STORAGE_SORT_MEMORY_COLUMN as X, useUserMemories as $, useDeleteMemory as J, useDeleteAllMemories as K, L as O, j as u, te as Q, C as M } from "./index.DqTXCFGJ.js";
3
+ import { E as T, e as c, ConfirmationPanel as R, oe as W, st as Z } from "./App.D79DErDb.js";
4
4
  import f from "clsx";
5
5
  import { useState as a, useRef as ee } from "react";
6
- import { j as te, D as re, G as x, M as n, F as oe, H as ne, l as ie, U as le } from "./Table.BfS9Q50S.js";
6
+ import { j as te, D as re, G as x, M as n, F as oe, H as ne, l as ie, U as le } from "./Table.CsQklVBG.js";
7
7
  const ue = ({
8
8
  open: A,
9
9
  onOpenChange: C,
@@ -1,4 +1,4 @@
1
- import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.CpO2Waej.js";
1
+ import { convert as se, visitParents as Me, unicodeWhitespace as I, unicodePunctuation as N, normalizeIdentifier as _, classifyCharacter as W, visit as _e, toString as ce, EXIT as Oe, asciiAlphanumeric as Z, asciiAlpha as P, markdownLineEndingOrSpace as A, asciiControl as je, blankLine as Be, factorySpace as S, splice as q, resolveAll as We, markdownLineEnding as R, markdownSpace as T, combineExtensions as $e } from "./useMarkdown.Bqr7iP8w.js";
2
2
  import { longestStreak as qe } from "./index.Cyw5OC0t.js";
3
3
  function ne(e, n) {
4
4
  const t = String(e);
@@ -1,4 +1,4 @@
1
- import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.CpO2Waej.js";
1
+ import { factorySpace as M, markdownLineEnding as g } from "./useMarkdown.Bqr7iP8w.js";
2
2
  import { longestStreak as q } from "./index.Cyw5OC0t.js";
3
3
  function b() {
4
4
  return {
@@ -1,6 +1,6 @@
1
- import { getDefaultExportFromCjs as kn } from "./App.DoVbmL2p.js";
2
- import { visit as In } from "./useMarkdown.CpO2Waej.js";
3
- import { toText as Cn } from "./index.DrNBEhtX.js";
1
+ import { getDefaultExportFromCjs as kn } from "./App.D79DErDb.js";
2
+ import { visit as In } from "./useMarkdown.Bqr7iP8w.js";
3
+ import { toText as Cn } from "./index.CcY06_BE.js";
4
4
  function xn(e) {
5
5
  const t = e.regex, i = e.COMMENT("//", "$", { contains: [{ begin: /\\\n/ }] }), a = "decltype\\(auto\\)", r = "[a-zA-Z_]\\w*::", d = "(?!struct)(" + a + "|" + t.optional(r) + "[a-zA-Z_]\\w*" + t.optional("<[^<>]+>") + ")", c = {
6
6
  className: "type",
@@ -1,5 +1,5 @@
1
1
  import { jsxs as p, jsx as i } from "react/jsx-runtime";
2
- import { te as B } from "./index.DCbJZ9UB.js";
2
+ import { te as B } from "./index.DqTXCFGJ.js";
3
3
  import { useState as I, useEffect as k } from "react";
4
4
  import s from "clsx";
5
5
  const h = "av-bubble", w = ({
@@ -1,4 +1,4 @@
1
- import { convert as E, convertElement as u } from "./useMarkdown.CpO2Waej.js";
1
+ import { convert as E, convertElement as u } from "./useMarkdown.Bqr7iP8w.js";
2
2
  const f = (
3
3
  // Note: overloads like this are needed to support optional generics.
4
4
  /**