@versini/sassysaint 5.5.36 → 5.5.37

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
- import { jsxs as x, jsx as i, Fragment as Ae } from "react/jsx-runtime";
2
- import { g as me, ACTION_RESTORE as qr, ACTION_MESSAGE as ye, ROLE_ASSISTANT as ve, ACTION_RESET as ft, ACTION_MODEL as ir, ACTION_STREAMING as cr, ACTION_SORT as Kr, ACTION_SEARCH as Jr, ACTION_RESET_PROMPT as lr, ACTION_TOGGLE_PROMPT as dr, DEFAULT_AI_ENGINE as ke, P as Oe, un as Ee, ENGINE_ANTHROPIC as He, ENGINE_OPENAI as zt, PROMPT_CLASSNAME as Yr, PROMPT_EDITABLE_AREA_CLASSNAME as Zr, ROLE_SYSTEM as Xr, ROLE_INTERNAL as pt, ROLE_HIDDEN as Qr, STATS_SEPARATOR as $t, CLIPBOARD_PROMPT as Dt, TYPE_QUESTION as ea, ERROR_MESSAGE as ta, ROLE_USER as et, FOOTER_DISCLAIMER as ra, isLastMessageFromRole as aa, getMessageContaintWrapperClass as na, Logo as oa, getMainPaddingClass as Vt, r as sa, LOCAL_STORAGE_PREFIX as Pt, LOCAL_STORAGE_SEARCH as ia, LOCAL_STORAGE_SORT as ca } from "./index.vR4obSnv.js";
1
+ import { jsxs as x, jsx as i, Fragment as Le } from "react/jsx-runtime";
2
+ import { g as me, ACTION_RESTORE as qr, ACTION_MESSAGE as ye, ROLE_ASSISTANT as ve, ACTION_RESET as ft, ACTION_MODEL as ir, ACTION_STREAMING as cr, ACTION_SORT as Kr, ACTION_SEARCH as Jr, ACTION_RESET_PROMPT as lr, ACTION_TOGGLE_PROMPT as dr, DEFAULT_AI_ENGINE as ke, P as Ae, un as Ee, ENGINE_ANTHROPIC as Fe, ENGINE_OPENAI as zt, PROMPT_CLASSNAME as Yr, PROMPT_EDITABLE_AREA_CLASSNAME as Zr, ROLE_SYSTEM as Xr, ROLE_INTERNAL as pt, ROLE_HIDDEN as Qr, STATS_SEPARATOR as $t, CLIPBOARD_PROMPT as Dt, TYPE_QUESTION as ea, ERROR_MESSAGE as ta, ROLE_USER as Qe, FOOTER_DISCLAIMER as ra, isLastMessageFromRole as aa, getMessageContaintWrapperClass as na, Logo as oa, getMainPaddingClass as Vt, r as sa, LOCAL_STORAGE_PREFIX as Pt, LOCAL_STORAGE_SEARCH as ia, LOCAL_STORAGE_SORT as ca } from "./index.gfLDgD4t.js";
3
3
  import l from "clsx";
4
- import * as tt from "react";
5
- import A, { useRef as M, useState as q, useCallback as ne, useSyncExternalStore as la, useEffect as D, useMemo as ur, useId as da, useContext as z, createContext as ua, useLayoutEffect as ma, useDebugValue as ga, forwardRef as mr, lazy as gr, Suspense as rt, useReducer as We } from "react";
6
- import { useFloatingTree as hr, useFloatingNodeId as ha, useListItem as fr, useFloating as fa, offset as pa, flip as ba, shift as ya, autoUpdate as va, useClick as ka, useRole as _a, useDismiss as Ea, useListNavigation as xa, useTypeahead as wa, useInteractions as Sa, useMergeRefs as pr, FloatingNode as Ta, FloatingList as Na, FloatingPortal as Ca, FloatingFocusManager as Ra, FloatingTree as Ia } from "@floating-ui/react";
4
+ import * as et from "react";
5
+ import A, { useRef as M, useState as q, useCallback as ne, useSyncExternalStore as la, useEffect as D, useMemo as ur, useId as da, useContext as z, createContext as ua, useLayoutEffect as ma, useDebugValue as ga, forwardRef as mr, lazy as gr, Suspense as tt, useReducer as He } from "react";
6
+ import { useFloatingTree as hr, useFloatingNodeId as ha, useListItem as fr, useFloating as fa, offset as pa, flip as ba, shift as ya, autoUpdate as va, useClick as ka, useRole as _a, useDismiss as Ea, useListNavigation as xa, useTypeahead as Ta, useInteractions as wa, useMergeRefs as pr, FloatingNode as Sa, FloatingList as Na, FloatingPortal as Ca, FloatingFocusManager as Ra, FloatingTree as Ia } from "@floating-ui/react";
7
7
  const La = ({
8
8
  className: e,
9
9
  viewBox: t,
@@ -304,7 +304,7 @@ try {
304
304
  });
305
305
  } catch {
306
306
  }
307
- const Be = "thead", bt = "tfoot", ue = "tbody", be = {
307
+ const Oe = "thead", bt = "tfoot", ue = "tbody", be = {
308
308
  ASC: "asc",
309
309
  DESC: "desc"
310
310
  }, qa = ({
@@ -372,7 +372,7 @@ const Be = "thead", bt = "tfoot", ue = "tbody", be = {
372
372
  mode: e,
373
373
  className: t,
374
374
  cellWrapper: r
375
- }) => r === Be || r === bt ? l(
375
+ }) => r === Oe || r === bt ? l(
376
376
  {
377
377
  "bg-table-head-dark": e === "dark" || e === "system",
378
378
  "bg-table-head-light": e === "light" || e === "alt-system",
@@ -411,7 +411,7 @@ const Be = "thead", bt = "tfoot", ue = "tbody", be = {
411
411
  "text-copy-dark": a === "light" || a === "alt-system",
412
412
  "dark:text-copy-dark": a === "system",
413
413
  "dark:text-copy-light": a === "alt-system",
414
- "px-4 py-3": !r && (e === Be || e === bt),
414
+ "px-4 py-3": !r && (e === Oe || e === bt),
415
415
  "p-4": !r && e === ue,
416
416
  "px-2 py-1.5": r
417
417
  },
@@ -419,7 +419,7 @@ const Be = "thead", bt = "tfoot", ue = "tbody", be = {
419
419
  )
420
420
  }), Xa = ({
421
421
  buttonClassName: e
422
- }) => l("rounded-none text-sm", e), jt = "av-button", yt = "icon", yr = "button", at = "link", Qa = ({
422
+ }) => l("rounded-none text-sm", e), jt = "av-button", yt = "icon", yr = "button", rt = "link", Qa = ({
423
423
  type: e,
424
424
  size: t,
425
425
  labelRight: r,
@@ -429,7 +429,7 @@ const Be = "thead", bt = "tfoot", ue = "tbody", be = {
429
429
  const o = "max-h-8 py-0 px-2", s = "max-h-9 h-8 px-3", c = "max-h-12 py-2 px-4";
430
430
  switch (e) {
431
431
  case yr:
432
- case at:
432
+ case rt:
433
433
  return l({
434
434
  [o]: t === "small",
435
435
  [s]: t === "medium",
@@ -457,9 +457,9 @@ const Be = "thead", bt = "tfoot", ue = "tbody", be = {
457
457
  const n = "text-sm font-medium", o = "text-base font-medium", s = "text-lg font-medium";
458
458
  switch (e) {
459
459
  case yr:
460
- case at:
460
+ case rt:
461
461
  return l({
462
- "text-center": e === at,
462
+ "text-center": e === rt,
463
463
  [n]: t === "small",
464
464
  [o]: t === "medium",
465
465
  [s]: t === "large"
@@ -735,7 +735,7 @@ const kr = A.forwardRef(
735
735
  active: v = !1,
736
736
  radius: b = "large",
737
737
  ..._
738
- }, w) => {
738
+ }, T) => {
739
739
  const N = ln({
740
740
  type: yt,
741
741
  mode: r,
@@ -776,7 +776,7 @@ const kr = A.forwardRef(
776
776
  return /* @__PURE__ */ i("div", { className: C, children: /* @__PURE__ */ x(
777
777
  vr,
778
778
  {
779
- ref: w,
779
+ ref: T,
780
780
  className: N,
781
781
  disabled: t,
782
782
  type: s,
@@ -804,7 +804,7 @@ const vt = ({
804
804
  ...g
805
805
  }) => {
806
806
  const d = l(o, a);
807
- return /* @__PURE__ */ x(Ae, { children: [
807
+ return /* @__PURE__ */ x(Le, { children: [
808
808
  /* @__PURE__ */ i(
809
809
  "svg",
810
810
  {
@@ -999,7 +999,7 @@ const ge = A.createContext({
999
999
  ...r
1000
1000
  }) => {
1001
1001
  const a = z(ge);
1002
- a.cellWrapper = Be;
1002
+ a.cellWrapper = Oe;
1003
1003
  const n = Ka({
1004
1004
  className: t,
1005
1005
  mode: a.mode,
@@ -1040,7 +1040,7 @@ const ge = A.createContext({
1040
1040
  align: a,
1041
1041
  ...n
1042
1042
  }) => {
1043
- const o = z(ge), s = t || (o.cellWrapper === Be ? "th" : "td"), { mainClasses: c, alignClasses: g } = Za({
1043
+ const o = z(ge), s = t || (o.cellWrapper === Oe ? "th" : "td"), { mainClasses: c, alignClasses: g } = Za({
1044
1044
  cellWrapper: o.cellWrapper,
1045
1045
  className: r,
1046
1046
  mode: o.mode,
@@ -1094,15 +1094,15 @@ for (let e = 0; e < 256; ++e)
1094
1094
  function fn(e, t = 0) {
1095
1095
  return (B[e[t + 0]] + B[e[t + 1]] + B[e[t + 2]] + B[e[t + 3]] + "-" + B[e[t + 4]] + B[e[t + 5]] + "-" + B[e[t + 6]] + B[e[t + 7]] + "-" + B[e[t + 8]] + B[e[t + 9]] + "-" + B[e[t + 10]] + B[e[t + 11]] + B[e[t + 12]] + B[e[t + 13]] + B[e[t + 14]] + B[e[t + 15]]).toLowerCase();
1096
1096
  }
1097
- let Ge;
1097
+ let We;
1098
1098
  const pn = new Uint8Array(16);
1099
1099
  function bn() {
1100
- if (!Ge) {
1100
+ if (!We) {
1101
1101
  if (typeof crypto > "u" || !crypto.getRandomValues)
1102
1102
  throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");
1103
- Ge = crypto.getRandomValues.bind(crypto);
1103
+ We = crypto.getRandomValues.bind(crypto);
1104
1104
  }
1105
- return Ge(pn);
1105
+ return We(pn);
1106
1106
  }
1107
1107
  const yn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), qt = { randomUUID: yn };
1108
1108
  function kt(e, t, r) {
@@ -1132,7 +1132,9 @@ const vn = (e, t) => {
1132
1132
  isComponent: e.isComponent,
1133
1133
  messages: r,
1134
1134
  engine: e.engine,
1135
- prompts: e.prompts
1135
+ prompts: e.prompts,
1136
+ streaming: e.streaming,
1137
+ lastTriggeredTimestamp: e.lastTriggeredTimestamp
1136
1138
  };
1137
1139
  }
1138
1140
  if ((t == null ? void 0 : t.type) === ye) {
@@ -1165,7 +1167,9 @@ const vn = (e, t) => {
1165
1167
  isComponent: e.isComponent,
1166
1168
  messages: d,
1167
1169
  engine: e.engine,
1168
- prompts: e.prompts
1170
+ prompts: e.prompts,
1171
+ streaming: e.streaming,
1172
+ lastTriggeredTimestamp: e.lastTriggeredTimestamp
1169
1173
  };
1170
1174
  }
1171
1175
  }
@@ -1176,6 +1180,8 @@ const vn = (e, t) => {
1176
1180
  prompts: e.prompts,
1177
1181
  usage: e.usage,
1178
1182
  isComponent: e.isComponent,
1183
+ streaming: e.streaming,
1184
+ lastTriggeredTimestamp: e.lastTriggeredTimestamp,
1179
1185
  messages: [
1180
1186
  ...e.messages,
1181
1187
  {
@@ -1185,26 +1191,39 @@ const vn = (e, t) => {
1185
1191
  };
1186
1192
  }
1187
1193
  }
1188
- return (t == null ? void 0 : t.type) === ft ? {
1189
- id: kt(),
1190
- model: e.model,
1191
- engine: e.engine,
1192
- usage: 0,
1193
- messages: [],
1194
- isComponent: e.isComponent,
1195
- prompts: e.prompts
1196
- } : (t == null ? void 0 : t.type) === ir ? {
1197
- id: e.id,
1198
- model: t.payload.model,
1199
- engine: e.engine,
1200
- prompts: e.prompts,
1201
- usage: t.payload.usage,
1202
- messages: e.messages,
1203
- isComponent: e.isComponent
1204
- } : (t == null ? void 0 : t.type) === cr ? {
1205
- ...e,
1206
- streaming: t.payload.streaming
1207
- } : e;
1194
+ if ((t == null ? void 0 : t.type) === ft)
1195
+ return {
1196
+ id: kt(),
1197
+ model: e.model,
1198
+ engine: e.engine,
1199
+ usage: 0,
1200
+ messages: [],
1201
+ isComponent: e.isComponent,
1202
+ prompts: e.prompts,
1203
+ streaming: e.streaming,
1204
+ lastTriggeredTimestamp: e.lastTriggeredTimestamp
1205
+ };
1206
+ if ((t == null ? void 0 : t.type) === ir)
1207
+ return {
1208
+ id: e.id,
1209
+ model: t.payload.model,
1210
+ engine: e.engine,
1211
+ prompts: e.prompts,
1212
+ usage: t.payload.usage,
1213
+ messages: e.messages,
1214
+ isComponent: e.isComponent,
1215
+ streaming: e.streaming,
1216
+ lastTriggeredTimestamp: e.lastTriggeredTimestamp
1217
+ };
1218
+ if ((t == null ? void 0 : t.type) === cr) {
1219
+ let r = e.lastTriggeredTimestamp;
1220
+ return e.streaming !== t.payload.streaming && (r = (/* @__PURE__ */ new Date()).getTime()), {
1221
+ ...e,
1222
+ streaming: t.payload.streaming,
1223
+ lastTriggeredTimestamp: r
1224
+ };
1225
+ }
1226
+ return e;
1208
1227
  }, kn = (e, t) => {
1209
1228
  switch (t == null ? void 0 : t.type) {
1210
1229
  case Jr:
@@ -1238,7 +1257,7 @@ const vn = (e, t) => {
1238
1257
  return e;
1239
1258
  }
1240
1259
  };
1241
- var Ne = { exports: {} }, je = {};
1260
+ var Ne = { exports: {} }, Ge = {};
1242
1261
  /**
1243
1262
  * @license React
1244
1263
  * use-sync-external-store-shim.production.js
@@ -1250,7 +1269,7 @@ var Ne = { exports: {} }, je = {};
1250
1269
  */
1251
1270
  var Kt;
1252
1271
  function En() {
1253
- if (Kt) return je;
1272
+ if (Kt) return Ge;
1254
1273
  Kt = 1;
1255
1274
  var e = A;
1256
1275
  function t(m, u) {
@@ -1287,9 +1306,9 @@ function En() {
1287
1306
  return u();
1288
1307
  }
1289
1308
  var f = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : c;
1290
- return je.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, je;
1309
+ return Ge.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : f, Ge;
1291
1310
  }
1292
- var qe = {};
1311
+ var je = {};
1293
1312
  /**
1294
1313
  * @license React
1295
1314
  * use-sync-external-store-shim.development.js
@@ -1349,15 +1368,15 @@ function xn() {
1349
1368
  }
1350
1369
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1351
1370
  var n = A, o = typeof Object.is == "function" ? Object.is : e, s = n.useState, c = n.useEffect, g = n.useLayoutEffect, d = n.useDebugValue, f = !1, m = !1, u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1352
- qe.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1353
- }()), qe;
1371
+ je.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : u, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1372
+ }()), je;
1354
1373
  }
1355
1374
  var Yt;
1356
- function wn() {
1375
+ function Tn() {
1357
1376
  return Yt || (Yt = 1, process.env.NODE_ENV === "production" ? Ne.exports = /* @__PURE__ */ En() : Ne.exports = /* @__PURE__ */ xn()), Ne.exports;
1358
1377
  }
1359
- var Sn = /* @__PURE__ */ wn(), Zt = Object.prototype.hasOwnProperty;
1360
- function nt(e, t) {
1378
+ var wn = /* @__PURE__ */ Tn(), Zt = Object.prototype.hasOwnProperty;
1379
+ function at(e, t) {
1361
1380
  var r, a;
1362
1381
  if (e === t) return !0;
1363
1382
  if (e && t && (r = e.constructor) === t.constructor) {
@@ -1365,13 +1384,13 @@ function nt(e, t) {
1365
1384
  if (r === RegExp) return e.toString() === t.toString();
1366
1385
  if (r === Array) {
1367
1386
  if ((a = e.length) === t.length)
1368
- for (; a-- && nt(e[a], t[a]); ) ;
1387
+ for (; a-- && at(e[a], t[a]); ) ;
1369
1388
  return a === -1;
1370
1389
  }
1371
1390
  if (!r || typeof e == "object") {
1372
1391
  a = 0;
1373
1392
  for (r in e)
1374
- if (Zt.call(e, r) && ++a && !Zt.call(t, r) || !(r in t) || !nt(e[r], t[r])) return !1;
1393
+ if (Zt.call(e, r) && ++a && !Zt.call(t, r) || !(r in t) || !at(e[r], t[r])) return !1;
1375
1394
  return Object.keys(t).length === a;
1376
1395
  }
1377
1396
  }
@@ -1381,47 +1400,47 @@ const G = /* @__PURE__ */ new WeakMap(), ae = () => {
1381
1400
  }, P = (
1382
1401
  /*#__NOINLINE__*/
1383
1402
  ae()
1384
- ), ot = Object, E = (e) => e === P, j = (e) => typeof e == "function", oe = (e, t) => ({
1403
+ ), nt = Object, E = (e) => e === P, j = (e) => typeof e == "function", oe = (e, t) => ({
1385
1404
  ...e,
1386
1405
  ...t
1387
- }), _r = (e) => j(e.then), Ke = {}, Ce = {}, _t = "undefined", Me = typeof window != _t, st = typeof document != _t, Tn = () => Me && typeof window.requestAnimationFrame != _t, Er = (e, t) => {
1406
+ }), _r = (e) => j(e.then), qe = {}, Ce = {}, _t = "undefined", Be = typeof window != _t, ot = typeof document != _t, Sn = () => Be && typeof window.requestAnimationFrame != _t, Er = (e, t) => {
1388
1407
  const r = G.get(e);
1389
1408
  return [
1390
1409
  // Getter
1391
- () => !E(t) && e.get(t) || Ke,
1410
+ () => !E(t) && e.get(t) || qe,
1392
1411
  // Setter
1393
1412
  (a) => {
1394
1413
  if (!E(t)) {
1395
1414
  const n = e.get(t);
1396
- t in Ce || (Ce[t] = n), r[5](t, oe(n, a), n || Ke);
1415
+ t in Ce || (Ce[t] = n), r[5](t, oe(n, a), n || qe);
1397
1416
  }
1398
1417
  },
1399
1418
  // Subscriber
1400
1419
  r[6],
1401
1420
  // Get server cache snapshot
1402
- () => !E(t) && t in Ce ? Ce[t] : !E(t) && e.get(t) || Ke
1421
+ () => !E(t) && t in Ce ? Ce[t] : !E(t) && e.get(t) || qe
1403
1422
  ];
1404
1423
  };
1405
- let it = !0;
1406
- const Nn = () => it, [ct, lt] = Me && window.addEventListener ? [
1424
+ let st = !0;
1425
+ const Nn = () => st, [it, ct] = Be && window.addEventListener ? [
1407
1426
  window.addEventListener.bind(window),
1408
1427
  window.removeEventListener.bind(window)
1409
1428
  ] : [
1410
1429
  ae,
1411
1430
  ae
1412
1431
  ], Cn = () => {
1413
- const e = st && document.visibilityState;
1432
+ const e = ot && document.visibilityState;
1414
1433
  return E(e) || e !== "hidden";
1415
- }, Rn = (e) => (st && document.addEventListener("visibilitychange", e), ct("focus", e), () => {
1416
- st && document.removeEventListener("visibilitychange", e), lt("focus", e);
1434
+ }, Rn = (e) => (ot && document.addEventListener("visibilitychange", e), it("focus", e), () => {
1435
+ ot && document.removeEventListener("visibilitychange", e), ct("focus", e);
1417
1436
  }), In = (e) => {
1418
1437
  const t = () => {
1419
- it = !0, e();
1438
+ st = !0, e();
1420
1439
  }, r = () => {
1421
- it = !1;
1440
+ st = !1;
1422
1441
  };
1423
- return ct("online", t), ct("offline", r), () => {
1424
- lt("online", t), lt("offline", r);
1442
+ return it("online", t), it("offline", r), () => {
1443
+ ct("online", t), ct("offline", r);
1425
1444
  };
1426
1445
  }, Ln = {
1427
1446
  isOnline: Nn,
@@ -1429,32 +1448,32 @@ const Nn = () => it, [ct, lt] = Me && window.addEventListener ? [
1429
1448
  }, An = {
1430
1449
  initFocus: Rn,
1431
1450
  initReconnect: In
1432
- }, Xt = !A.useId, _e = !Me || "Deno" in globalThis, On = (e) => Tn() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Je = _e ? D : ma, Ye = typeof navigator < "u" && navigator.connection, Qt = !_e && Ye && ([
1451
+ }, Xt = !A.useId, _e = !Be || "Deno" in globalThis, On = (e) => Sn() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Ke = _e ? D : ma, Je = typeof navigator < "u" && navigator.connection, Qt = !_e && Je && ([
1433
1452
  "slow-2g",
1434
1453
  "2g"
1435
- ].includes(Ye.effectiveType) || Ye.saveData), Re = /* @__PURE__ */ new WeakMap(), Ze = (e, t) => ot.prototype.toString.call(e) === `[object ${t}]`;
1454
+ ].includes(Je.effectiveType) || Je.saveData), Re = /* @__PURE__ */ new WeakMap(), Ye = (e, t) => nt.prototype.toString.call(e) === `[object ${t}]`;
1436
1455
  let Bn = 0;
1437
- const dt = (e) => {
1438
- const t = typeof e, r = Ze(e, "Date"), a = Ze(e, "RegExp"), n = Ze(e, "Object");
1456
+ const lt = (e) => {
1457
+ const t = typeof e, r = Ye(e, "Date"), a = Ye(e, "RegExp"), n = Ye(e, "Object");
1439
1458
  let o, s;
1440
- if (ot(e) === e && !r && !a) {
1459
+ if (nt(e) === e && !r && !a) {
1441
1460
  if (o = Re.get(e), o) return o;
1442
1461
  if (o = ++Bn + "~", Re.set(e, o), Array.isArray(e)) {
1443
1462
  for (o = "@", s = 0; s < e.length; s++)
1444
- o += dt(e[s]) + ",";
1463
+ o += lt(e[s]) + ",";
1445
1464
  Re.set(e, o);
1446
1465
  }
1447
1466
  if (n) {
1448
1467
  o = "#";
1449
- const c = ot.keys(e).sort();
1468
+ const c = nt.keys(e).sort();
1450
1469
  for (; !E(s = c.pop()); )
1451
- E(e[s]) || (o += s + ":" + dt(e[s]) + ",");
1470
+ E(e[s]) || (o += s + ":" + lt(e[s]) + ",");
1452
1471
  Re.set(e, o);
1453
1472
  }
1454
1473
  } else
1455
1474
  o = r ? e.toJSON() : t == "symbol" ? e.toString() : t == "string" ? JSON.stringify(e) : "" + e;
1456
1475
  return o;
1457
- }, ze = (e) => {
1476
+ }, Me = (e) => {
1458
1477
  if (j(e))
1459
1478
  try {
1460
1479
  e = e();
@@ -1462,21 +1481,21 @@ const dt = (e) => {
1462
1481
  e = "";
1463
1482
  }
1464
1483
  const t = e;
1465
- return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? dt(e) : "", [
1484
+ return e = typeof e == "string" ? e : (Array.isArray(e) ? e.length : e) ? lt(e) : "", [
1466
1485
  e,
1467
1486
  t
1468
1487
  ];
1469
1488
  };
1470
1489
  let Mn = 0;
1471
- const ut = () => ++Mn, xr = 0, wr = 1, Sr = 2, zn = 3;
1490
+ const dt = () => ++Mn, xr = 0, Tr = 1, wr = 2, zn = 3;
1472
1491
  var pe = {
1473
1492
  __proto__: null,
1474
1493
  ERROR_REVALIDATE_EVENT: zn,
1475
1494
  FOCUS_EVENT: xr,
1476
- MUTATE_EVENT: Sr,
1477
- RECONNECT_EVENT: wr
1495
+ MUTATE_EVENT: wr,
1496
+ RECONNECT_EVENT: Tr
1478
1497
  };
1479
- async function Tr(...e) {
1498
+ async function Sr(...e) {
1480
1499
  const [t, r, a, n] = e, o = oe({
1481
1500
  populateCache: !0,
1482
1501
  throwOnError: !0
@@ -1496,16 +1515,16 @@ async function Tr(...e) {
1496
1515
  }
1497
1516
  return m(r);
1498
1517
  async function m(u) {
1499
- const [h] = ze(u);
1518
+ const [h] = Me(u);
1500
1519
  if (!h) return;
1501
- const [p, y] = Er(t, h), [v, b, _, w] = G.get(t), N = () => {
1520
+ const [p, y] = Er(t, h), [v, b, _, T] = G.get(t), N = () => {
1502
1521
  const U = v[h];
1503
- return (j(o.revalidate) ? o.revalidate(p().data, u) : o.revalidate !== !1) && (delete _[h], delete w[h], U && U[0]) ? U[0](Sr).then(() => p().data) : p().data;
1522
+ return (j(o.revalidate) ? o.revalidate(p().data, u) : o.revalidate !== !1) && (delete _[h], delete T[h], U && U[0]) ? U[0](wr).then(() => p().data) : p().data;
1504
1523
  };
1505
1524
  if (e.length < 3)
1506
1525
  return N();
1507
1526
  let k = a, C;
1508
- const I = ut();
1527
+ const I = dt();
1509
1528
  b[h] = [
1510
1529
  I,
1511
1530
  0
@@ -1544,7 +1563,7 @@ async function Tr(...e) {
1544
1563
  error: P,
1545
1564
  _c: P
1546
1565
  });
1547
- if (b[h][1] = ut(), Promise.resolve(N()).then(() => {
1566
+ if (b[h][1] = dt(), Promise.resolve(N()).then(() => {
1548
1567
  y({
1549
1568
  _c: P
1550
1569
  });
@@ -1560,7 +1579,7 @@ const er = (e, t) => {
1560
1579
  e[r][0] && e[r][0](t);
1561
1580
  }, $n = (e, t) => {
1562
1581
  if (!G.has(e)) {
1563
- const r = oe(An, t), a = {}, n = Tr.bind(P, e);
1582
+ const r = oe(An, t), a = {}, n = Sr.bind(P, e);
1564
1583
  let o = ae;
1565
1584
  const s = {}, c = (f, m) => {
1566
1585
  const u = s[f] || [];
@@ -1581,7 +1600,7 @@ const er = (e, t) => {
1581
1600
  g,
1582
1601
  c
1583
1602
  ]), !_e)) {
1584
- const f = r.initFocus(setTimeout.bind(P, er.bind(P, a, xr))), m = r.initReconnect(setTimeout.bind(P, er.bind(P, a, wr)));
1603
+ const f = r.initFocus(setTimeout.bind(P, er.bind(P, a, xr))), m = r.initReconnect(setTimeout.bind(P, er.bind(P, a, Tr)));
1585
1604
  o = () => {
1586
1605
  f && f(), m && m(), G.delete(e);
1587
1606
  };
@@ -1601,7 +1620,7 @@ const er = (e, t) => {
1601
1620
  }, Dn = (e, t, r, a, n) => {
1602
1621
  const o = r.errorRetryCount, s = n.retryCount, c = ~~((Math.random() + 0.5) * (1 << (s < 8 ? s : 8))) * r.errorRetryInterval;
1603
1622
  !E(o) && s > o || setTimeout(a, c, n);
1604
- }, Vn = nt, [Et, Pn] = $n(/* @__PURE__ */ new Map()), Un = oe(
1623
+ }, Vn = at, [Et, Pn] = $n(/* @__PURE__ */ new Map()), Un = oe(
1605
1624
  {
1606
1625
  // events
1607
1626
  onLoadingSlow: ae,
@@ -1635,7 +1654,7 @@ const er = (e, t) => {
1635
1654
  a && o && (r.use = a.concat(o)), n && s && (r.fallback = oe(n, s));
1636
1655
  }
1637
1656
  return r;
1638
- }, Hn = ua({}), Wn = "$inf$", Nr = Me && window.__SWR_DEVTOOLS_USE__, Gn = Nr ? window.__SWR_DEVTOOLS_USE__ : [], jn = () => {
1657
+ }, Hn = ua({}), Wn = "$inf$", Nr = Be && window.__SWR_DEVTOOLS_USE__, Gn = Nr ? window.__SWR_DEVTOOLS_USE__ : [], jn = () => {
1639
1658
  Nr && (window.__SWR_DEVTOOLS_REACT__ = A);
1640
1659
  }, qn = (e) => j(e[1]) ? [
1641
1660
  e[0],
@@ -1646,12 +1665,12 @@ const er = (e, t) => {
1646
1665
  null,
1647
1666
  (e[1] === null ? e[2] : e[1]) || {}
1648
1667
  ], Kn = () => oe(Un, z(Hn)), xt = (e, t) => {
1649
- const [r, a] = ze(e), [, , , n] = G.get(Et);
1668
+ const [r, a] = Me(e), [, , , n] = G.get(Et);
1650
1669
  if (n[r]) return n[r];
1651
1670
  const o = t(a);
1652
1671
  return n[r] = o, o;
1653
1672
  }, Jn = (e) => (t, r, a) => e(t, r && ((...o) => {
1654
- const [s] = ze(t), [, , , c] = G.get(Et);
1673
+ const [s] = Me(t), [, , , c] = G.get(Et);
1655
1674
  if (s.startsWith(Wn))
1656
1675
  return r(...o);
1657
1676
  const g = c[s];
@@ -1671,7 +1690,7 @@ const er = (e, t) => {
1671
1690
  };
1672
1691
  };
1673
1692
  jn();
1674
- const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1693
+ const Ze = A.use || // This extra generic is to avoid TypeScript mixing up the generic and JSX sytax
1675
1694
  // and emitting an error.
1676
1695
  // We assume that this is only for the `use(thenable)` case, not `use(context)`.
1677
1696
  // https://github.com/facebook/react/blob/aed00dacfb79d17c53218404c52b1c7aa59c4a89/packages/react-server/src/ReactFizzThenable.js#L45
@@ -1690,32 +1709,32 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1690
1709
  e.status = "rejected", e.reason = t;
1691
1710
  }), e;
1692
1711
  }
1693
- }), Qe = {
1712
+ }), Xe = {
1694
1713
  dedupe: !0
1695
1714
  }, Qn = (e, t, r) => {
1696
- const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: c, revalidateIfStale: g, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: m, keepPreviousData: u } = r, [h, p, y, v] = G.get(a), [b, _] = ze(e), w = M(!1), N = M(!1), k = M(b), C = M(t), I = M(r), R = () => I.current, Z = () => R().isVisible() && R().isOnline(), [F, X, K, U] = Er(a, b), Q = M({}).current, ie = E(s) ? E(r.fallback) ? P : r.fallback[b] : s, he = (S, T) => {
1715
+ const { cache: a, compare: n, suspense: o, fallbackData: s, revalidateOnMount: c, revalidateIfStale: g, refreshInterval: d, refreshWhenHidden: f, refreshWhenOffline: m, keepPreviousData: u } = r, [h, p, y, v] = G.get(a), [b, _] = Me(e), T = M(!1), N = M(!1), k = M(b), C = M(t), I = M(r), R = () => I.current, Z = () => R().isVisible() && R().isOnline(), [F, X, K, U] = Er(a, b), Q = M({}).current, ie = E(s) ? E(r.fallback) ? P : r.fallback[b] : s, he = (w, S) => {
1697
1716
  for (const $ in Q) {
1698
1717
  const L = $;
1699
1718
  if (L === "data") {
1700
- if (!n(S[L], T[L]) && (!E(S[L]) || !n(Te, T[L])))
1719
+ if (!n(w[L], S[L]) && (!E(w[L]) || !n(Se, S[L])))
1701
1720
  return !1;
1702
- } else if (T[L] !== S[L])
1721
+ } else if (S[L] !== w[L])
1703
1722
  return !1;
1704
1723
  }
1705
1724
  return !0;
1706
- }, we = ur(() => {
1707
- const S = !b || !t ? !1 : E(c) ? R().isPaused() || o ? !1 : g !== !1 : c, T = (V) => {
1725
+ }, Te = ur(() => {
1726
+ const w = !b || !t ? !1 : E(c) ? R().isPaused() || o ? !1 : g !== !1 : c, S = (V) => {
1708
1727
  const J = oe(V);
1709
- return delete J._k, S ? {
1728
+ return delete J._k, w ? {
1710
1729
  isValidating: !0,
1711
1730
  isLoading: !0,
1712
1731
  ...J
1713
1732
  } : J;
1714
- }, $ = F(), L = U(), W = T($), de = $ === L ? W : T(L);
1733
+ }, $ = F(), L = U(), W = S($), de = $ === L ? W : S(L);
1715
1734
  let O = W;
1716
1735
  return [
1717
1736
  () => {
1718
- const V = T(F());
1737
+ const V = S(F());
1719
1738
  return he(V, O) ? (O.data = V.data, O.isLoading = V.isLoading, O.isValidating = V.isValidating, O.error = V.error, O) : (O = V, V);
1720
1739
  },
1721
1740
  () => de
@@ -1723,22 +1742,22 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1723
1742
  }, [
1724
1743
  a,
1725
1744
  b
1726
- ]), ee = Sn.useSyncExternalStore(ne(
1727
- (S) => K(b, (T, $) => {
1728
- he($, T) || S();
1745
+ ]), ee = wn.useSyncExternalStore(ne(
1746
+ (w) => K(b, (S, $) => {
1747
+ he($, S) || w();
1729
1748
  }),
1730
1749
  // eslint-disable-next-line react-hooks/exhaustive-deps
1731
1750
  [
1732
1751
  a,
1733
1752
  b
1734
1753
  ]
1735
- ), we[0], we[1]), te = !w.current, Hr = h[b] && h[b].length > 0, ce = ee.data, le = E(ce) ? ie && _r(ie) ? Xe(ie) : ie : ce, Se = ee.error, Rt = M(le), Te = u ? E(ce) ? Rt.current : ce : le, It = Hr && !E(Se) ? !1 : te && !E(c) ? c : R().isPaused() ? !1 : o ? E(le) ? !1 : g : E(le) || g, Lt = !!(b && t && te && It), Wr = E(ee.isValidating) ? Lt : ee.isValidating, Gr = E(ee.isLoading) ? Lt : ee.isLoading, fe = ne(
1736
- async (S) => {
1737
- const T = C.current;
1738
- if (!b || !T || N.current || R().isPaused())
1754
+ ), Te[0], Te[1]), te = !T.current, Hr = h[b] && h[b].length > 0, ce = ee.data, le = E(ce) ? ie && _r(ie) ? Ze(ie) : ie : ce, we = ee.error, Rt = M(le), Se = u ? E(ce) ? Rt.current : ce : le, It = Hr && !E(we) ? !1 : te && !E(c) ? c : R().isPaused() ? !1 : o ? E(le) ? !1 : g : E(le) || g, Lt = !!(b && t && te && It), Wr = E(ee.isValidating) ? Lt : ee.isValidating, Gr = E(ee.isLoading) ? Lt : ee.isLoading, fe = ne(
1755
+ async (w) => {
1756
+ const S = C.current;
1757
+ if (!b || !S || N.current || R().isPaused())
1739
1758
  return !1;
1740
1759
  let $, L, W = !0;
1741
- const de = S || {}, O = !y[b] || !de.dedupe, V = () => Xt ? !N.current && b === k.current && w.current : b === k.current, J = {
1760
+ const de = w || {}, O = !y[b] || !de.dedupe, V = () => Xt ? !N.current && b === k.current && T.current : b === k.current, J = {
1742
1761
  isValidating: !1,
1743
1762
  isLoading: !1
1744
1763
  }, Ot = () => {
@@ -1754,8 +1773,8 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1754
1773
  if (O && (X(Mt), r.loadingTimeout && E(F().data) && setTimeout(() => {
1755
1774
  W && V() && R().onLoadingSlow(b, r);
1756
1775
  }, r.loadingTimeout), y[b] = [
1757
- T(_),
1758
- ut()
1776
+ S(_),
1777
+ dt()
1759
1778
  ]), [$, L] = y[b], $ = await $, O && setTimeout(Bt, r.dedupingInterval), !y[b] || y[b][1] !== L)
1760
1779
  return O && V() && R().onDiscarded(b), !1;
1761
1780
  J.error = P;
@@ -1769,10 +1788,10 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1769
1788
  J.data = n(Y, $) ? Y : $, O && V() && R().onSuccess($, b, r);
1770
1789
  } catch (H) {
1771
1790
  Bt();
1772
- const Y = R(), { shouldRetryOnError: Ue } = Y;
1773
- Y.isPaused() || (J.error = H, O && V() && (Y.onError(H, b, Y), (Ue === !0 || j(Ue) && Ue(H)) && (!R().revalidateOnFocus || !R().revalidateOnReconnect || Z()) && Y.onErrorRetry(H, b, Y, (jr) => {
1774
- const Fe = h[b];
1775
- Fe && Fe[0] && Fe[0](pe.ERROR_REVALIDATE_EVENT, jr);
1791
+ const Y = R(), { shouldRetryOnError: Pe } = Y;
1792
+ Y.isPaused() || (J.error = H, O && V() && (Y.onError(H, b, Y), (Pe === !0 || j(Pe) && Pe(H)) && (!R().revalidateOnFocus || !R().revalidateOnReconnect || Z()) && Y.onErrorRetry(H, b, Y, (jr) => {
1793
+ const Ue = h[b];
1794
+ Ue && Ue[0] && Ue[0](pe.ERROR_REVALIDATE_EVENT, jr);
1776
1795
  }, {
1777
1796
  retryCount: (de.retryCount || 0) + 1,
1778
1797
  dedupe: !0
@@ -1797,22 +1816,22 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1797
1816
  ]
1798
1817
  ), At = ne(
1799
1818
  // Use callback to make sure `keyRef.current` returns latest result every time
1800
- (...S) => Tr(a, k.current, ...S),
1819
+ (...w) => Sr(a, k.current, ...w),
1801
1820
  // eslint-disable-next-line react-hooks/exhaustive-deps
1802
1821
  []
1803
1822
  );
1804
- if (Je(() => {
1823
+ if (Ke(() => {
1805
1824
  C.current = t, I.current = r, E(ce) || (Rt.current = ce);
1806
- }), Je(() => {
1825
+ }), Ke(() => {
1807
1826
  if (!b) return;
1808
- const S = fe.bind(P, Qe);
1809
- let T = 0;
1827
+ const w = fe.bind(P, Xe);
1828
+ let S = 0;
1810
1829
  const L = Xn(b, h, (W, de = {}) => {
1811
1830
  if (W == pe.FOCUS_EVENT) {
1812
1831
  const O = Date.now();
1813
- R().revalidateOnFocus && O > T && Z() && (T = O + R().focusThrottleInterval, S());
1832
+ R().revalidateOnFocus && O > S && Z() && (S = O + R().focusThrottleInterval, w());
1814
1833
  } else if (W == pe.RECONNECT_EVENT)
1815
- R().revalidateOnReconnect && Z() && S();
1834
+ R().revalidateOnReconnect && Z() && w();
1816
1835
  else {
1817
1836
  if (W == pe.MUTATE_EVENT)
1818
1837
  return fe();
@@ -1820,52 +1839,52 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
1820
1839
  return fe(de);
1821
1840
  }
1822
1841
  });
1823
- return N.current = !1, k.current = b, w.current = !0, X({
1842
+ return N.current = !1, k.current = b, T.current = !0, X({
1824
1843
  _k: _
1825
- }), It && (E(le) || _e ? S() : On(S)), () => {
1844
+ }), It && (E(le) || _e ? w() : On(w)), () => {
1826
1845
  N.current = !0, L();
1827
1846
  };
1828
1847
  }, [
1829
1848
  b
1830
- ]), Je(() => {
1831
- let S;
1832
- function T() {
1849
+ ]), Ke(() => {
1850
+ let w;
1851
+ function S() {
1833
1852
  const L = j(d) ? d(F().data) : d;
1834
- L && S !== -1 && (S = setTimeout($, L));
1853
+ L && w !== -1 && (w = setTimeout($, L));
1835
1854
  }
1836
1855
  function $() {
1837
- !F().error && (f || R().isVisible()) && (m || R().isOnline()) ? fe(Qe).then(T) : T();
1856
+ !F().error && (f || R().isVisible()) && (m || R().isOnline()) ? fe(Xe).then(S) : S();
1838
1857
  }
1839
- return T(), () => {
1840
- S && (clearTimeout(S), S = -1);
1858
+ return S(), () => {
1859
+ w && (clearTimeout(w), w = -1);
1841
1860
  };
1842
1861
  }, [
1843
1862
  d,
1844
1863
  f,
1845
1864
  m,
1846
1865
  b
1847
- ]), ga(Te), o && E(le) && b) {
1866
+ ]), ga(Se), o && E(le) && b) {
1848
1867
  if (!Xt && _e)
1849
1868
  throw new Error("Fallback data is required when using Suspense in SSR.");
1850
1869
  C.current = t, I.current = r, N.current = !1;
1851
- const S = v[b];
1852
- if (!E(S)) {
1853
- const T = At(S);
1854
- Xe(T);
1870
+ const w = v[b];
1871
+ if (!E(w)) {
1872
+ const S = At(w);
1873
+ Ze(S);
1855
1874
  }
1856
- if (E(Se)) {
1857
- const T = fe(Qe);
1858
- E(Te) || (T.status = "fulfilled", T.value = !0), Xe(T);
1875
+ if (E(we)) {
1876
+ const S = fe(Xe);
1877
+ E(Se) || (S.status = "fulfilled", S.value = !0), Ze(S);
1859
1878
  } else
1860
- throw Se;
1879
+ throw we;
1861
1880
  }
1862
1881
  return {
1863
1882
  mutate: At,
1864
1883
  get data() {
1865
- return Q.data = !0, Te;
1884
+ return Q.data = !0, Se;
1866
1885
  },
1867
1886
  get error() {
1868
- return Q.error = !0, Se;
1887
+ return Q.error = !0, we;
1869
1888
  },
1870
1889
  get isValidating() {
1871
1890
  return Q.isValidating = !0, Wr;
@@ -2055,7 +2074,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2055
2074
  },
2056
2075
  body: JSON.stringify(r)
2057
2076
  });
2058
- }, $e = ({
2077
+ }, ze = ({
2059
2078
  fetcher: e,
2060
2079
  scope: t,
2061
2080
  keys: r,
@@ -2068,7 +2087,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2068
2087
  { ...a }
2069
2088
  );
2070
2089
  return { data: o, error: s, isLoading: c, mutate: g };
2071
- }, De = async ({
2090
+ }, $e = async ({
2072
2091
  getAccessToken: e,
2073
2092
  type: t,
2074
2093
  params: r
@@ -2081,7 +2100,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2081
2100
  if (n.status === 200 && n.errors === void 0)
2082
2101
  return n.data;
2083
2102
  throw new Error("An error occurred while fetching the data.");
2084
- }, Ir = async ([e, t], r) => De({
2103
+ }, Ir = async ([e, t], r) => $e({
2085
2104
  getAccessToken: r,
2086
2105
  type: xe.GET_USER_PREFERENCES,
2087
2106
  params: {
@@ -2090,7 +2109,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2090
2109
  }), Lr = ({
2091
2110
  keys: e,
2092
2111
  getAccessToken: t
2093
- }) => $e({
2112
+ }) => ze({
2094
2113
  fetcher: Ir,
2095
2114
  scope: "/preferences",
2096
2115
  keys: e,
@@ -2104,7 +2123,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2104
2123
  ["/preferences", ...e],
2105
2124
  (r) => Ir(r, t)
2106
2125
  );
2107
- }, no = async ([e, t], r) => De({
2126
+ }, no = async ([e, t], r) => $e({
2108
2127
  getAccessToken: r,
2109
2128
  type: xe.GET_CHATS_STATS,
2110
2129
  params: {
@@ -2113,12 +2132,12 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2113
2132
  }), vs = ({
2114
2133
  keys: e,
2115
2134
  getAccessToken: t
2116
- }) => $e({
2135
+ }) => ze({
2117
2136
  fetcher: no,
2118
2137
  scope: "/stats",
2119
2138
  keys: e,
2120
2139
  getAccessToken: t
2121
- }), Ar = async ([e, t, r, a], n) => De({
2140
+ }), Ar = async ([e, t, r, a], n) => $e({
2122
2141
  getAccessToken: n,
2123
2142
  type: xe.GET_CHATS,
2124
2143
  params: {
@@ -2131,7 +2150,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2131
2150
  }), ks = ({
2132
2151
  keys: e,
2133
2152
  getAccessToken: t
2134
- }) => $e({
2153
+ }) => ze({
2135
2154
  fetcher: Ar,
2136
2155
  scope: "/history",
2137
2156
  keys: e,
@@ -2145,12 +2164,12 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2145
2164
  getAccessToken: t
2146
2165
  }) => {
2147
2166
  xt(["/history", ...e], (r) => Ar(r, t));
2148
- }, Or = async ([e], t) => De({
2167
+ }, Or = async ([e], t) => $e({
2149
2168
  getAccessToken: t,
2150
2169
  type: xe.GET_SERVER_CAPABILITIES
2151
2170
  }), _s = ({
2152
2171
  getAccessToken: e
2153
- }) => $e({
2172
+ }) => ze({
2154
2173
  fetcher: Or,
2155
2174
  scope: "/capabilities",
2156
2175
  keys: [],
@@ -2181,7 +2200,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2181
2200
  state: { searchString: "", sortedCell: "", sortDirection: "" },
2182
2201
  dispatch: () => {
2183
2202
  }
2184
- }), Ve = A.createContext({
2203
+ }), De = A.createContext({
2185
2204
  state: { prompt: "", lastTriggeredTimestamp: 0 },
2186
2205
  dispatch: () => {
2187
2206
  }
@@ -2197,7 +2216,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2197
2216
  var s;
2198
2217
  (t == null ? void 0 : t.streaming) === !0 && !n.current && a.current && (n.current = !0, a.current.focus()), (t == null ? void 0 : t.streaming) === !1 && (n.current = !1, (s = a.current) == null || s.blur());
2199
2218
  }, [t]), /* @__PURE__ */ i(
2200
- Oe,
2219
+ Ae,
2201
2220
  {
2202
2221
  className: e,
2203
2222
  noBorder: !0,
@@ -2210,7 +2229,7 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2210
2229
  children: t != null && t.streaming ? /* @__PURE__ */ i(Oa, { size: "size-4", monotone: !0 }) : /* @__PURE__ */ i(La, { size: "size-4", monotone: !0 })
2211
2230
  }
2212
2231
  );
2213
- }, mt = tt.createContext({
2232
+ }, ut = et.createContext({
2214
2233
  getItemProps: () => ({}),
2215
2234
  activeIndex: null,
2216
2235
  /* v8 ignore next 2 */
@@ -2241,8 +2260,8 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2241
2260
  focusMode: s = "system",
2242
2261
  ...c
2243
2262
  }, g) => {
2244
- const [d, f] = q(!1), [m, u] = q(!1), [h, p] = q(null), y = M([]), v = M([]), b = z(mt), _ = hr(), w = ha(), N = fr(), { floatingStyles: k, refs: C, context: I } = fa({
2245
- nodeId: w,
2263
+ const [d, f] = q(!1), [m, u] = q(!1), [h, p] = q(null), y = M([]), v = M([]), b = z(ut), _ = hr(), T = ha(), N = fr(), { floatingStyles: k, refs: C, context: I } = fa({
2264
+ nodeId: T,
2246
2265
  open: d,
2247
2266
  onOpenChange: (te) => {
2248
2267
  f(te), n == null || n(te);
@@ -2261,18 +2280,18 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2261
2280
  nested: !1,
2262
2281
  onNavigate: p,
2263
2282
  loop: !0
2264
- }), K = wa(I, {
2283
+ }), K = Ta(I, {
2265
2284
  listRef: v,
2266
2285
  onMatch: d ? p : void 0,
2267
2286
  activeIndex: h
2268
- }), { getReferenceProps: U, getFloatingProps: Q, getItemProps: ie } = Sa([R, Z, F, X, K]), he = tr(e) === "Button" || tr(e) === "ButtonIcon", we = he ? {
2287
+ }), { getReferenceProps: U, getFloatingProps: Q, getItemProps: ie } = wa([R, Z, F, X, K]), he = tr(e) === "Button" || tr(e) === "ButtonIcon", Te = he ? {
2269
2288
  noInternalClick: he,
2270
2289
  focusMode: s,
2271
2290
  mode: o
2272
2291
  } : {}, ee = A.cloneElement(
2273
2292
  e,
2274
2293
  {
2275
- ...we,
2294
+ ...Te,
2276
2295
  "aria-label": r,
2277
2296
  "data-open": d ? "" : void 0,
2278
2297
  "data-focus-inside": m ? "" : void 0,
@@ -2294,11 +2313,11 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2294
2313
  _.events.off("click", te);
2295
2314
  };
2296
2315
  }, [_, n]), D(() => {
2297
- d && _ && _.events.emit("menuopen", { nodeId: w });
2298
- }, [_, d, w]), /* @__PURE__ */ x(Ta, { id: w, children: [
2316
+ d && _ && _.events.emit("menuopen", { nodeId: T });
2317
+ }, [_, d, T]), /* @__PURE__ */ x(Sa, { id: T, children: [
2299
2318
  ee,
2300
2319
  /* @__PURE__ */ i(
2301
- mt.Provider,
2320
+ ut.Provider,
2302
2321
  {
2303
2322
  value: {
2304
2323
  activeIndex: h,
@@ -2330,10 +2349,10 @@ const Xe = A.use || // This extra generic is to avoid TypeScript mixing up the g
2330
2349
  )
2331
2350
  ] });
2332
2351
  }
2333
- ), wt = mr((e, t) => /* @__PURE__ */ i(Ia, { children: /* @__PURE__ */ i(Br, { ...e, ref: t }) }));
2334
- wt.displayName = "Menu";
2352
+ ), Tt = mr((e, t) => /* @__PURE__ */ i(Ia, { children: /* @__PURE__ */ i(Br, { ...e, ref: t }) }));
2353
+ Tt.displayName = "Menu";
2335
2354
  Br.displayName = "MenuComponent";
2336
- const Le = tt.forwardRef(
2355
+ const Ie = et.forwardRef(
2337
2356
  ({
2338
2357
  label: e,
2339
2358
  disabled: t,
@@ -2345,7 +2364,7 @@ const Le = tt.forwardRef(
2345
2364
  ...c
2346
2365
  }, g) => {
2347
2366
  let d = "";
2348
- const f = tt.useContext(mt), m = fr({ label: t ? null : e }), u = hr(), h = pr([m.ref, g]);
2367
+ const f = et.useContext(ut), m = fr({ label: t ? null : e }), u = hr(), h = pr([m.ref, g]);
2349
2368
  if (a && n)
2350
2369
  return /* @__PURE__ */ i(
2351
2370
  "div",
@@ -2396,7 +2415,7 @@ const Le = tt.forwardRef(
2396
2415
  );
2397
2416
  }
2398
2417
  );
2399
- Le.displayName = "MenuItem";
2418
+ Ie.displayName = "MenuItem";
2400
2419
  const Es = ({ className: e, ...t }) => {
2401
2420
  const r = l(e, "my-1 border-t border-border-medium");
2402
2421
  return /* @__PURE__ */ i("div", { className: r, ...t });
@@ -2429,7 +2448,7 @@ const mo = (e) => {
2429
2448
  className: e,
2430
2449
  defaultPlacement: t = "top-start"
2431
2450
  }) => {
2432
- const { dispatch: r } = z(Ve), { getAccessToken: a, user: n } = Ee(), {
2451
+ const { dispatch: r } = z(De), { getAccessToken: a, user: n } = Ee(), {
2433
2452
  data: o,
2434
2453
  error: s,
2435
2454
  isLoading: c
@@ -2445,16 +2464,16 @@ const mo = (e) => {
2445
2464
  });
2446
2465
  };
2447
2466
  return s || c ? null : o && o.tags && mo(o.tags) && /* @__PURE__ */ x(
2448
- wt,
2467
+ Tt,
2449
2468
  {
2450
2469
  mode: "dark",
2451
2470
  focusMode: "light",
2452
- trigger: /* @__PURE__ */ i(Oe, { className: e, noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Aa, { size: "size-4" }) }),
2471
+ trigger: /* @__PURE__ */ i(Ae, { className: e, noBorder: !0, label: "Prompts", children: /* @__PURE__ */ i(Aa, { size: "size-4" }) }),
2453
2472
  defaultPlacement: t,
2454
2473
  children: [
2455
2474
  /* @__PURE__ */ i(Mr, { children: "Prompts" }),
2456
2475
  o && o.tags && o.tags.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ i(
2457
- Le,
2476
+ Ie,
2458
2477
  {
2459
2478
  label: d.label,
2460
2479
  onClick: (f) => g(f, d.content)
@@ -2469,7 +2488,7 @@ const mo = (e) => {
2469
2488
  }) => {
2470
2489
  const { state: t } = z(se);
2471
2490
  return /* @__PURE__ */ i(
2472
- Oe,
2491
+ Ae,
2473
2492
  {
2474
2493
  className: e,
2475
2494
  disabled: t == null ? void 0 : t.streaming,
@@ -2508,16 +2527,16 @@ const mo = (e) => {
2508
2527
  }
2509
2528
  };
2510
2529
  return s || c ? null : o && /* @__PURE__ */ x(
2511
- wt,
2530
+ Tt,
2512
2531
  {
2513
2532
  mode: "dark",
2514
2533
  focusMode: "light",
2515
- trigger: /* @__PURE__ */ i(Oe, { className: e, noBorder: !0, label: "Engines", children: o && o.engine === He ? /* @__PURE__ */ i(Ut, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ i(Ft, { size: "size-4 sm:size-5" }) }),
2534
+ trigger: /* @__PURE__ */ i(Ae, { className: e, noBorder: !0, label: "Engines", children: o && o.engine === Fe ? /* @__PURE__ */ i(Ut, { size: "size-4 sm:size-5" }) : /* @__PURE__ */ i(Ft, { size: "size-4 sm:size-5" }) }),
2516
2535
  defaultPlacement: "top-start",
2517
2536
  children: [
2518
2537
  /* @__PURE__ */ i(Mr, { children: "Engines" }),
2519
2538
  /* @__PURE__ */ i(
2520
- Le,
2539
+ Ie,
2521
2540
  {
2522
2541
  selected: o && o.engine === zt,
2523
2542
  label: "OpenAI",
@@ -2526,12 +2545,12 @@ const mo = (e) => {
2526
2545
  }
2527
2546
  ),
2528
2547
  /* @__PURE__ */ i(
2529
- Le,
2548
+ Ie,
2530
2549
  {
2531
- selected: o && o.engine === He,
2550
+ selected: o && o.engine === Fe,
2532
2551
  label: "Anthropic",
2533
2552
  icon: /* @__PURE__ */ i(Ut, {}),
2534
- onClick: () => d(He)
2553
+ onClick: () => d(Fe)
2535
2554
  }
2536
2555
  )
2537
2556
  ]
@@ -2575,9 +2594,9 @@ const mo = (e) => {
2575
2594
  ref: s,
2576
2595
  ...c
2577
2596
  }) => {
2578
- const { state: m } = z(se), { state: u } = z(Ve), h = M(null), p = M(null), y = Wa([s, p]), v = ja(), b = ko({
2597
+ const { state: m } = z(se), { state: u } = z(De), h = M(null), p = M(null), y = Wa([s, p]), v = ja(), b = ko({
2579
2598
  className: e
2580
- }), [_, w] = Ga({
2599
+ }), [_, T] = Ga({
2581
2600
  value: r,
2582
2601
  initialControlledDelay: 20,
2583
2602
  defaultValue: a,
@@ -2599,9 +2618,9 @@ const mo = (e) => {
2599
2618
  }
2600
2619
  p.current.style.height = `${I}px`, p.current.style.overflowY = "hidden";
2601
2620
  }, [120]), k = (I) => {
2602
- p.current && (p.current.style.height = "24px"), o(I, _), w("");
2621
+ p.current && (p.current.style.height = "24px"), o(I, _), T("");
2603
2622
  }, C = (I) => {
2604
- w(I.target.value), N();
2623
+ T(I.target.value), N();
2605
2624
  };
2606
2625
  return D(() => {
2607
2626
  m && m.usage === 0 && m.messages.length === 0 && p.current && (p.current.style.height = "24px");
@@ -2641,7 +2660,7 @@ const mo = (e) => {
2641
2660
  ] })
2642
2661
  }
2643
2662
  );
2644
- }, Ie = (e, t) => {
2663
+ }, mt = (e, t) => {
2645
2664
  e({
2646
2665
  type: cr,
2647
2666
  payload: {
@@ -2649,7 +2668,7 @@ const mo = (e) => {
2649
2668
  }
2650
2669
  });
2651
2670
  }, ar = (e) => {
2652
- Ie(e, !1), e({
2671
+ mt(e, !1), e({
2653
2672
  type: ye,
2654
2673
  payload: {
2655
2674
  message: {
@@ -2659,7 +2678,7 @@ const mo = (e) => {
2659
2678
  }
2660
2679
  });
2661
2680
  }, Eo = () => {
2662
- const { state: e, dispatch: t } = z(se), { state: r, dispatch: a } = z(Ve), [n, o] = q(""), { getAccessToken: s, user: c } = Ee(), g = M(null), d = M(
2681
+ const { state: e, dispatch: t } = z(se), { state: r, dispatch: a } = z(De), [n, o] = q(""), { getAccessToken: s, user: c } = Ee(), g = M(null), d = M(
2663
2682
  null
2664
2683
  );
2665
2684
  D(() => {
@@ -2684,20 +2703,18 @@ const mo = (e) => {
2684
2703
  }
2685
2704
  });
2686
2705
  if (h && h.ok) {
2706
+ mt(t, !0);
2687
2707
  const p = kt();
2688
2708
  d.current = h.body.getReader();
2689
2709
  const y = new TextDecoder();
2690
2710
  for (; ; ) {
2691
- Ie(t, !0);
2692
2711
  const { done: v, value: b } = await d.current.read();
2693
- if (v) {
2694
- Ie(t, !1);
2712
+ if (v)
2695
2713
  break;
2696
- }
2697
- const _ = y.decode(b, { stream: !0 }), w = _.indexOf($t);
2698
- if (w !== -1) {
2699
- const N = _.substring(0, w), k = JSON.parse(
2700
- _.substring(w + $t.length)
2714
+ const _ = y.decode(b, { stream: !0 }), T = _.indexOf($t);
2715
+ if (T !== -1) {
2716
+ const N = _.substring(0, T), k = JSON.parse(
2717
+ _.substring(T + $t.length)
2701
2718
  );
2702
2719
  t({
2703
2720
  type: ir,
@@ -2716,7 +2733,7 @@ const mo = (e) => {
2716
2733
  name: k.name
2717
2734
  }
2718
2735
  }
2719
- }), Ie(t, !1);
2736
+ });
2720
2737
  break;
2721
2738
  } else
2722
2739
  t({
@@ -2730,6 +2747,7 @@ const mo = (e) => {
2730
2747
  }
2731
2748
  });
2732
2749
  }
2750
+ mt(t, !1);
2733
2751
  } else
2734
2752
  ar(t);
2735
2753
  } catch (h) {
@@ -2742,7 +2760,7 @@ const mo = (e) => {
2742
2760
  type: ye,
2743
2761
  payload: {
2744
2762
  message: {
2745
- role: et,
2763
+ role: Qe,
2746
2764
  content: n
2747
2765
  }
2748
2766
  }
@@ -2761,7 +2779,7 @@ const mo = (e) => {
2761
2779
  e && e.usage === 0 && e.messages.length === 0 && (o(""), g.current && g.current.focus());
2762
2780
  }, [e]), D(() => {
2763
2781
  (e == null ? void 0 : e.streaming) === !1 && g.current && g.current.focus();
2764
- }, [e]), /* @__PURE__ */ i(Ae, { children: /* @__PURE__ */ i(
2782
+ }, [e]), /* @__PURE__ */ i(Le, { children: /* @__PURE__ */ i(
2765
2783
  _o,
2766
2784
  {
2767
2785
  label: ea,
@@ -2793,7 +2811,7 @@ const mo = (e) => {
2793
2811
  ]
2794
2812
  }
2795
2813
  );
2796
- }, wo = ({ show: e }) => e ? /* @__PURE__ */ i(
2814
+ }, To = ({ show: e }) => e ? /* @__PURE__ */ i(
2797
2815
  "div",
2798
2816
  {
2799
2817
  className: l(
@@ -2837,7 +2855,7 @@ try {
2837
2855
  });
2838
2856
  } catch {
2839
2857
  }
2840
- const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link", To = ({
2858
+ const wo = "av-bubble", nr = "av-button", Ve = "icon", zr = "button", gt = "link", So = ({
2841
2859
  type: e,
2842
2860
  size: t,
2843
2861
  labelRight: r,
@@ -2853,7 +2871,7 @@ const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link
2853
2871
  [s]: t === "medium",
2854
2872
  [c]: t === "large"
2855
2873
  });
2856
- case Pe:
2874
+ case Ve:
2857
2875
  return l("inline-flex items-center", {
2858
2876
  "justify-center": n === "center",
2859
2877
  "justify-start": n === "left",
@@ -2882,7 +2900,7 @@ const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link
2882
2900
  [o]: t === "medium",
2883
2901
  [s]: t === "large"
2884
2902
  });
2885
- case Pe:
2903
+ case Ve:
2886
2904
  return l({
2887
2905
  [n]: t === "small" && (r || a),
2888
2906
  [o]: t === "medium" && (r || a),
@@ -3085,7 +3103,7 @@ const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link
3085
3103
  }),
3086
3104
  Ro({ mode: a, noBackground: m, variant: u }),
3087
3105
  Io({ radius: y }),
3088
- To({
3106
+ So({
3089
3107
  type: e,
3090
3108
  size: c,
3091
3109
  labelRight: d,
@@ -3105,7 +3123,7 @@ const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link
3105
3123
  )), Mo = (e, t, r) => {
3106
3124
  var a;
3107
3125
  !t && (!document.activeElement || document.activeElement !== e.currentTarget) && typeof ((a = e == null ? void 0 : e.currentTarget) == null ? void 0 : a.focus) == "function" && e.currentTarget.focus(), typeof r == "function" && r(e);
3108
- }, St = A.forwardRef((e, t) => {
3126
+ }, wt = A.forwardRef((e, t) => {
3109
3127
  const { onClick: r, noInternalClick: a = !1, ...n } = e;
3110
3128
  return /* @__PURE__ */ i(
3111
3129
  "button",
@@ -3118,7 +3136,7 @@ const So = "av-bubble", nr = "av-button", Pe = "icon", zr = "button", gt = "link
3118
3136
  }
3119
3137
  );
3120
3138
  });
3121
- St.displayName = "BaseButton";
3139
+ wt.displayName = "BaseButton";
3122
3140
  const Dr = A.forwardRef(
3123
3141
  ({
3124
3142
  children: e,
@@ -3140,9 +3158,9 @@ const Dr = A.forwardRef(
3140
3158
  radius: v = "large",
3141
3159
  variant: b = "primary",
3142
3160
  ..._
3143
- }, w) => {
3161
+ }, T) => {
3144
3162
  const N = $r({
3145
- type: Pe,
3163
+ type: Ve,
3146
3164
  mode: r,
3147
3165
  focusMode: a,
3148
3166
  fullWidth: n,
@@ -3164,9 +3182,9 @@ const Dr = A.forwardRef(
3164
3182
  "dark:text-copy-accent-dark": r === "system" && !c
3165
3183
  });
3166
3184
  return /* @__PURE__ */ x(
3167
- St,
3185
+ wt,
3168
3186
  {
3169
- ref: w,
3187
+ ref: T,
3170
3188
  className: N,
3171
3189
  disabled: t,
3172
3190
  type: s,
@@ -3216,9 +3234,9 @@ const zo = A.forwardRef(
3216
3234
  active: v = !1,
3217
3235
  radius: b = "large",
3218
3236
  ..._
3219
- }, w) => {
3237
+ }, T) => {
3220
3238
  const N = $r({
3221
- type: Pe,
3239
+ type: Ve,
3222
3240
  mode: r,
3223
3241
  focusMode: a,
3224
3242
  fullWidth: n,
@@ -3255,9 +3273,9 @@ const zo = A.forwardRef(
3255
3273
  }
3256
3274
  ) : "";
3257
3275
  return /* @__PURE__ */ i("div", { className: C, children: /* @__PURE__ */ x(
3258
- St,
3276
+ wt,
3259
3277
  {
3260
- ref: w,
3278
+ ref: T,
3261
3279
  className: N,
3262
3280
  disabled: t,
3263
3281
  type: s,
@@ -3285,7 +3303,7 @@ const Vr = ({
3285
3303
  ...g
3286
3304
  }) => {
3287
3305
  const d = l(o, a);
3288
- return /* @__PURE__ */ x(Ae, { children: [
3306
+ return /* @__PURE__ */ x(Le, { children: [
3289
3307
  /* @__PURE__ */ i(
3290
3308
  "svg",
3291
3309
  {
@@ -3403,7 +3421,7 @@ const Vo = ({
3403
3421
  noMaxWidth: r
3404
3422
  }) => {
3405
3423
  const a = l(
3406
- So,
3424
+ wo,
3407
3425
  "flex items-start",
3408
3426
  {
3409
3427
  "flex-row-reverse": e === "right"
@@ -3471,7 +3489,7 @@ const Vo = ({
3471
3489
  }
3472
3490
  ) })
3473
3491
  ] });
3474
- }, or = "av-button", Tt = "icon", Nt = "button", ht = "link", Go = ({
3492
+ }, or = "av-button", St = "icon", Nt = "button", ht = "link", Go = ({
3475
3493
  type: e,
3476
3494
  size: t,
3477
3495
  labelRight: r,
@@ -3487,7 +3505,7 @@ const Vo = ({
3487
3505
  [s]: t === "medium",
3488
3506
  [c]: t === "large"
3489
3507
  });
3490
- case Tt:
3508
+ case St:
3491
3509
  return l("inline-flex items-center", {
3492
3510
  "justify-center": n === "center",
3493
3511
  "justify-start": n === "left",
@@ -3516,7 +3534,7 @@ const Vo = ({
3516
3534
  [o]: t === "medium",
3517
3535
  [s]: t === "large"
3518
3536
  });
3519
- case Tt:
3537
+ case St:
3520
3538
  return l({
3521
3539
  [n]: t === "small" && (r || a),
3522
3540
  [o]: t === "medium" && (r || a),
@@ -3830,9 +3848,9 @@ const ts = A.forwardRef(
3830
3848
  active: v = !1,
3831
3849
  radius: b = "large",
3832
3850
  ..._
3833
- }, w) => {
3851
+ }, T) => {
3834
3852
  const N = Pr({
3835
- type: Tt,
3853
+ type: St,
3836
3854
  mode: r,
3837
3855
  focusMode: a,
3838
3856
  fullWidth: n,
@@ -3871,7 +3889,7 @@ const ts = A.forwardRef(
3871
3889
  return /* @__PURE__ */ i("div", { className: C, children: /* @__PURE__ */ x(
3872
3890
  Ct,
3873
3891
  {
3874
- ref: w,
3892
+ ref: T,
3875
3893
  className: N,
3876
3894
  disabled: t,
3877
3895
  type: s,
@@ -3946,14 +3964,14 @@ try {
3946
3964
  const sr = gr(
3947
3965
  () => import(
3948
3966
  /* webpackChunkName: "LazyMessageAssistant" */
3949
- "./MessageAssistant.C195TBiV.js"
3967
+ "./MessageAssistant.Dskbm0QC.js"
3950
3968
  ).then((e) => e.MessageAssistant)
3951
3969
  ), os = () => {
3952
3970
  const { state: e } = z(se);
3953
3971
  return /* @__PURE__ */ x("div", { className: "space-y-6 mt-2 @container", children: [
3954
3972
  e && e.messages.length > 0 && e.messages.map((t, r) => {
3955
3973
  const { role: a, content: n, name: o, processingTime: s } = t.message;
3956
- return (a === ve || a === pt) && n ? /* @__PURE__ */ i(rt, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(sr, { name: o, processingTime: s, children: n }) }, `${r}-${a}`) : a === et && n ? /* @__PURE__ */ i(
3974
+ return (a === ve || a === pt) && n ? /* @__PURE__ */ i(tt, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(sr, { name: o, processingTime: s, children: n }) }, `${r}-${a}`) : a === Qe && n ? /* @__PURE__ */ i(
3957
3975
  Wo,
3958
3976
  {
3959
3977
  kind: "right",
@@ -3964,25 +3982,25 @@ const sr = gr(
3964
3982
  `${r}-${a}`
3965
3983
  ) : null;
3966
3984
  }),
3967
- aa(et, e) && /* @__PURE__ */ i(rt, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(sr, { loading: !0 }) })
3985
+ aa(Qe, e) && /* @__PURE__ */ i(tt, { fallback: /* @__PURE__ */ i("span", {}), children: /* @__PURE__ */ i(sr, { loading: !0 }) })
3968
3986
  ] });
3969
3987
  }, ss = () => {
3970
3988
  const { isAuthenticated: e } = Ee(), { ref: t, inViewport: r } = Ua(), a = na({
3971
3989
  isAuthenticated: e,
3972
3990
  extraClass: "rounded-b-md"
3973
3991
  });
3974
- return /* @__PURE__ */ x(Ae, { children: [
3992
+ return /* @__PURE__ */ x(Le, { children: [
3975
3993
  /* @__PURE__ */ x("div", { className: a, children: [
3976
3994
  /* @__PURE__ */ i(oa, {}),
3977
3995
  /* @__PURE__ */ i(os, {}),
3978
3996
  /* @__PURE__ */ i("div", { ref: t })
3979
3997
  ] }),
3980
- /* @__PURE__ */ i(wo, { show: !r })
3998
+ /* @__PURE__ */ i(To, { show: !r })
3981
3999
  ] });
3982
4000
  }, is = gr(
3983
4001
  () => import(
3984
4002
  /* webpackChunkName: "LazyHeader" */
3985
- "./HeaderToolbar.Bl593kjm.js"
4003
+ "./HeaderToolbar.BeLs87sR.js"
3986
4004
  )
3987
4005
  );
3988
4006
  function Fr({ isComponent: e = !1 }) {
@@ -3992,7 +4010,7 @@ function Fr({ isComponent: e = !1 }) {
3992
4010
  }), [n] = Gt({
3993
4011
  key: Pt + ca,
3994
4012
  initialValue: be.ASC
3995
- }), [o, s] = We(vn, {
4013
+ }), [o, s] = He(vn, {
3996
4014
  id: kt(),
3997
4015
  model: ke,
3998
4016
  engine: ke,
@@ -4000,11 +4018,11 @@ function Fr({ isComponent: e = !1 }) {
4000
4018
  messages: [],
4001
4019
  prompts: [],
4002
4020
  isComponent: e
4003
- }), [c, g] = We(kn, {
4021
+ }), [c, g] = He(kn, {
4004
4022
  searchString: a,
4005
4023
  sortedCell: "timestamp",
4006
4024
  sortDirection: n
4007
- }), [d, f] = We(_n, {
4025
+ }), [d, f] = He(_n, {
4008
4026
  prompt: "",
4009
4027
  lastTriggeredTimestamp: 0
4010
4028
  });
@@ -4012,7 +4030,8 @@ function Fr({ isComponent: e = !1 }) {
4012
4030
  keys: [
4013
4031
  t == null ? void 0 : t.username,
4014
4032
  c.searchString,
4015
- c.sortDirection
4033
+ c.sortDirection,
4034
+ 0
4016
4035
  ],
4017
4036
  getAccessToken: r
4018
4037
  }), so({ getAccessToken: r }), ao({ keys: [t == null ? void 0 : t.username], getAccessToken: r }), D(() => {
@@ -4029,7 +4048,7 @@ function Fr({ isComponent: e = !1 }) {
4029
4048
  dispatch: g
4030
4049
  },
4031
4050
  children: /* @__PURE__ */ x(
4032
- Ve.Provider,
4051
+ De.Provider,
4033
4052
  {
4034
4053
  value: { state: d, dispatch: f },
4035
4054
  children: [
@@ -4043,7 +4062,7 @@ function Fr({ isComponent: e = !1 }) {
4043
4062
  className: Vt({
4044
4063
  extraClass: "mt-5"
4045
4064
  }),
4046
- children: /* @__PURE__ */ i(rt, { fallback: /* @__PURE__ */ i("div", {}), children: /* @__PURE__ */ i(is, {}) })
4065
+ children: /* @__PURE__ */ i(tt, { fallback: /* @__PURE__ */ i("div", {}), children: /* @__PURE__ */ i(is, {}) })
4047
4066
  }
4048
4067
  ),
4049
4068
  /* @__PURE__ */ i(
@@ -4072,7 +4091,7 @@ export {
4072
4091
  Gt as E,
4073
4092
  lo as HistoryContext,
4074
4093
  Es as P,
4075
- Le as R,
4094
+ Ie as R,
4076
4095
  xe as SERVICE_TYPES,
4077
4096
  fs as be,
4078
4097
  be as f,
@@ -4083,7 +4102,7 @@ export {
4083
4102
  hn as ie,
4084
4103
  Wo as le,
4085
4104
  ps as me,
4086
- wt as me$1,
4105
+ Tt as me$1,
4087
4106
  Ut as p,
4088
4107
  Rr as serviceCall,
4089
4108
  bs as ue,