@versini/sassysaint 6.1.0 → 6.2.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.
@@ -1,5 +1,5 @@
1
1
  import { jsx as l, jsxs as E, Fragment as ke } from "react/jsx-runtime";
2
- import { g as ye, ACTION_RESTORE as hn, ACTION_MESSAGE as Me, ROLE_ASSISTANT as Ve, ACTION_RESET as Ue, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as pn, ACTION_SEARCH as bn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as yn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as kn, PROMPT_EDITABLE_AREA_CLASSNAME as xn, ROLE_SYSTEM as wn, ROLE_INTERNAL as Qt, ROLE_HIDDEN as _n, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as En, ERROR_MESSAGE as Tn, ROLE_USER as $t, FOOTER_DISCLAIMER as Sn, isLastMessageFromRole as Nn, getMessageContaintWrapperClass as Cn, Logo as Rn, getMainPaddingClass as Or, r as In, LOCAL_STORAGE_SEARCH as Ln, LOCAL_STORAGE_SORT as On } from "./index.DUNIGQ5_.js";
2
+ import { g as ye, ACTION_RESTORE as hn, ACTION_MESSAGE as Ve, ROLE_ASSISTANT as Pe, ACTION_RESET as Ie, ACTION_MODEL as la, ACTION_STREAMING as ca, ACTION_SORT as pn, ACTION_SEARCH as bn, ACTION_RESET_PROMPT as da, ACTION_TOGGLE_PROMPT as ua, DEFAULT_AI_ENGINE as Te, Y as He, L as yn, j as Nr, C as Cr, LOCAL_STORAGE_PREFIX as At, LOCAL_STORAGE_PRIVATE_DISCLOSURE as vn, un as Fe, ENGINE_ANTHROPIC as xt, ENGINE_OPENAI as Rr, PROMPT_CLASSNAME as kn, PROMPT_EDITABLE_AREA_CLASSNAME as xn, ROLE_SYSTEM as wn, ROLE_INTERNAL as Qt, ROLE_HIDDEN as _n, STATS_SEPARATOR as Ir, CLIPBOARD_PROMPT as Lr, TYPE_QUESTION as En, ERROR_MESSAGE as Tn, ROLE_USER as $t, FOOTER_DISCLAIMER as Sn, isLastMessageFromRole as Nn, getMessageContaintWrapperClass as Cn, Logo as Rn, getMainPaddingClass as Or, r as In, LOCAL_STORAGE_SEARCH as Ln, LOCAL_STORAGE_SORT as On } from "./index.CUiqvVTR.js";
3
3
  import f from "clsx";
4
4
  import * as G from "react";
5
5
  import V, { useRef as A, useState as Z, useCallback as re, useSyncExternalStore as An, useEffect as M, useMemo as ma, useId as er, useContext as z, createContext as $n, useLayoutEffect as Bn, useDebugValue as Mn, forwardRef as ga, lazy as fa, Suspense as Bt, useReducer as wt } from "react";
@@ -253,7 +253,7 @@ function ro(e) {
253
253
  };
254
254
  }
255
255
  function ao(e, t) {
256
- const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: m, key: u } = t;
256
+ const { alt: r, ctrl: a, meta: n, mod: o, shift: i, key: s } = e, { altKey: c, ctrlKey: d, metaKey: h, shiftKey: u, key: m } = t;
257
257
  if (r !== c)
258
258
  return !1;
259
259
  if (o) {
@@ -261,7 +261,7 @@ function ao(e, t) {
261
261
  return !1;
262
262
  } else if (a !== d || n !== h)
263
263
  return !1;
264
- return i !== m ? !1 : !!(s && (u.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
264
+ return i !== u ? !1 : !!(s && (m.toLowerCase() === s.toLowerCase() || t.code.replace("Key", "").toLowerCase() === s.toLowerCase()));
265
265
  }
266
266
  function no(e) {
267
267
  return (t) => ao(ro(e), t);
@@ -364,7 +364,7 @@ try {
364
364
  });
365
365
  } catch {
366
366
  }
367
- const it = "thead", rr = "tfoot", Ee = "tbody", $e = {
367
+ const it = "thead", rr = "tfoot", Ee = "tbody", Be = {
368
368
  ASC: "asc",
369
369
  DESC: "desc"
370
370
  }, go = ({
@@ -712,20 +712,20 @@ const it = "thead", rr = "tfoot", Ee = "tbody", $e = {
712
712
  noBorder: c,
713
713
  labelRight: d,
714
714
  labelLeft: h,
715
- noBackground: m,
716
- variant: u,
715
+ noBackground: u,
716
+ variant: m,
717
717
  noTruncate: g,
718
718
  align: p,
719
719
  radius: b
720
- }) => (u || (u = "primary"), r ? f(Vr, t) : f(
720
+ }) => (m || (m = "primary"), r ? f(Vr, t) : f(
721
721
  Vr,
722
722
  xo({
723
723
  mode: a,
724
- variant: u,
725
- noBackground: m,
724
+ variant: m,
725
+ noBackground: u,
726
726
  noTruncate: g
727
727
  }),
728
- wo({ mode: a, noBackground: m, variant: u }),
728
+ wo({ mode: a, noBackground: u, variant: m }),
729
729
  _o({ radius: b }),
730
730
  vo({
731
731
  type: e,
@@ -735,10 +735,10 @@ const it = "thead", rr = "tfoot", Ee = "tbody", $e = {
735
735
  align: p
736
736
  }),
737
737
  ko({ type: e, size: s, labelRight: d, labelLeft: h }),
738
- So({ mode: a, variant: u, noBorder: c }),
738
+ So({ mode: a, variant: m, noBorder: c }),
739
739
  No({ focusMode: n }),
740
- Eo({ mode: a, variant: u, disabled: o }),
741
- To({ mode: a, variant: u, disabled: o }),
740
+ Eo({ mode: a, variant: m, disabled: o }),
741
+ To({ mode: a, variant: m, disabled: o }),
742
742
  {
743
743
  "w-full": i,
744
744
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -787,8 +787,8 @@ const Na = V.forwardRef(
787
787
  noBorder: c = !1,
788
788
  "aria-label": d,
789
789
  label: h,
790
- size: m = "medium",
791
- labelRight: u,
790
+ size: u = "medium",
791
+ labelRight: m,
792
792
  labelLeft: g,
793
793
  noBackground: p = !1,
794
794
  align: b = "center",
@@ -805,8 +805,8 @@ const Na = V.forwardRef(
805
805
  raw: s,
806
806
  className: o,
807
807
  noBorder: c,
808
- size: m,
809
- labelRight: u,
808
+ size: u,
809
+ labelRight: m,
810
810
  labelLeft: g,
811
811
  noBackground: p,
812
812
  align: b,
@@ -845,7 +845,7 @@ const Na = V.forwardRef(
845
845
  children: [
846
846
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
847
847
  /* @__PURE__ */ l("div", { className: x, children: e }),
848
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
848
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
849
849
  ]
850
850
  }
851
851
  ) });
@@ -987,7 +987,7 @@ try {
987
987
  });
988
988
  } catch {
989
989
  }
990
- const Ie = V.createContext({
990
+ const Le = V.createContext({
991
991
  mode: "light",
992
992
  cellWrapper: "thead",
993
993
  stickyHeader: !1,
@@ -1006,7 +1006,7 @@ const Ie = V.createContext({
1006
1006
  stickyFooter: d,
1007
1007
  ...h
1008
1008
  }) => {
1009
- const m = go({
1009
+ const u = go({
1010
1010
  mode: t,
1011
1011
  className: o,
1012
1012
  wrapperClassName: i,
@@ -1014,18 +1014,18 @@ const Ie = V.createContext({
1014
1014
  stickyFooter: d
1015
1015
  });
1016
1016
  return /* @__PURE__ */ l(
1017
- Ie.Provider,
1017
+ Le.Provider,
1018
1018
  {
1019
1019
  value: { mode: t, stickyHeader: c, stickyFooter: d, compact: a },
1020
1020
  children: /* @__PURE__ */ l(
1021
1021
  "div",
1022
1022
  {
1023
- className: m.wrapper,
1023
+ className: u.wrapper,
1024
1024
  ...s && {
1025
1025
  style: { maxHeight: s }
1026
1026
  },
1027
- children: /* @__PURE__ */ E("table", { className: m.table, summary: n, ...h, children: [
1028
- r && /* @__PURE__ */ l("caption", { className: m.caption, children: r }),
1027
+ children: /* @__PURE__ */ E("table", { className: u.table, summary: n, ...h, children: [
1028
+ r && /* @__PURE__ */ l("caption", { className: u.caption, children: r }),
1029
1029
  e
1030
1030
  ] })
1031
1031
  }
@@ -1037,7 +1037,7 @@ const Ie = V.createContext({
1037
1037
  className: t,
1038
1038
  ...r
1039
1039
  }) => {
1040
- const a = z(Ie);
1040
+ const a = z(Le);
1041
1041
  a.cellWrapper = it;
1042
1042
  const n = fo({
1043
1043
  className: t,
@@ -1050,7 +1050,7 @@ const Ie = V.createContext({
1050
1050
  className: t,
1051
1051
  ...r
1052
1052
  }) => {
1053
- const a = z(Ie);
1053
+ const a = z(Le);
1054
1054
  a.cellWrapper = rr;
1055
1055
  const n = ho({
1056
1056
  className: t,
@@ -1059,14 +1059,14 @@ const Ie = V.createContext({
1059
1059
  });
1060
1060
  return /* @__PURE__ */ l("tfoot", { className: n, ...r, children: e });
1061
1061
  }, Yl = ({ children: e, ...t }) => {
1062
- const r = z(Ie);
1062
+ const r = z(Le);
1063
1063
  return r.cellWrapper = Ee, /* @__PURE__ */ l("tbody", { ...t, children: e });
1064
1064
  }, Jl = ({
1065
1065
  children: e,
1066
1066
  className: t,
1067
1067
  ...r
1068
1068
  }) => {
1069
- const a = z(Ie), n = po({
1069
+ const a = z(Le), n = po({
1070
1070
  mode: a.mode,
1071
1071
  cellWrapper: a.cellWrapper,
1072
1072
  className: t
@@ -1079,7 +1079,7 @@ const Ie = V.createContext({
1079
1079
  align: a,
1080
1080
  ...n
1081
1081
  }) => {
1082
- const o = z(Ie), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = bo({
1082
+ const o = z(Le), i = t || (o.cellWrapper === it ? "th" : "td"), { mainClasses: s, alignClasses: c } = bo({
1083
1083
  cellWrapper: o.cellWrapper,
1084
1084
  className: r,
1085
1085
  mode: o.mode,
@@ -1099,22 +1099,22 @@ const Ie = V.createContext({
1099
1099
  sortDirection: c,
1100
1100
  sortedCell: d,
1101
1101
  cellId: h,
1102
- ...m
1102
+ ...u
1103
1103
  }) => {
1104
- const u = yo({ buttonClassName: r });
1104
+ const m = yo({ buttonClassName: r });
1105
1105
  return /* @__PURE__ */ l(
1106
1106
  Ao,
1107
1107
  {
1108
1108
  component: n,
1109
1109
  className: a,
1110
1110
  role: "columnheader",
1111
- "aria-sort": c === $e.ASC && d === h ? "ascending" : c === $e.DESC && d === h ? "descending" : "other",
1112
- ...m,
1111
+ "aria-sort": c === Be.ASC && d === h ? "ascending" : c === Be.DESC && d === h ? "descending" : "other",
1112
+ ...u,
1113
1113
  children: /* @__PURE__ */ l(
1114
1114
  Na,
1115
1115
  {
1116
1116
  active: d === h,
1117
- className: u,
1117
+ className: m,
1118
1118
  onClick: s,
1119
1119
  align: e,
1120
1120
  noBorder: !0,
@@ -1122,7 +1122,7 @@ const Ie = V.createContext({
1122
1122
  mode: i,
1123
1123
  fullWidth: !0,
1124
1124
  labelRight: t,
1125
- children: c === $e.ASC && d === h ? /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 }) : c === $e.DESC && d === h ? /* @__PURE__ */ l(Lo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Io, { className: "size-4", monotone: !0 })
1125
+ children: c === Be.ASC && d === h ? /* @__PURE__ */ l(Oo, { className: "size-4", monotone: !0 }) : c === Be.DESC && d === h ? /* @__PURE__ */ l(Lo, { className: "size-4", monotone: !0 }) : /* @__PURE__ */ l(Io, { className: "size-4", monotone: !0 })
1126
1126
  }
1127
1127
  )
1128
1128
  }
@@ -1177,7 +1177,7 @@ const Po = (e, t) => {
1177
1177
  lastTriggeredTimestamp: e.lastTriggeredTimestamp
1178
1178
  };
1179
1179
  }
1180
- if ((t == null ? void 0 : t.type) === Me) {
1180
+ if ((t == null ? void 0 : t.type) === Ve) {
1181
1181
  const n = t.payload.message.role, o = t.payload.message.content, i = t.payload.message.name, s = t.payload.message.processingTime, c = t.payload.message.messageId;
1182
1182
  if (n !== "") {
1183
1183
  const d = {
@@ -1187,26 +1187,26 @@ const Po = (e, t) => {
1187
1187
  processingTime: s,
1188
1188
  messageId: c
1189
1189
  };
1190
- if (n === Ve) {
1190
+ if (n === Pe) {
1191
1191
  const h = e.messages.findIndex(
1192
- (m) => m.message.messageId === c
1192
+ (u) => u.message.messageId === c
1193
1193
  );
1194
1194
  if (h !== -1) {
1195
- const m = e.messages.map((u, g) => g === h ? {
1195
+ const u = e.messages.map((m, g) => g === h ? {
1196
1196
  message: {
1197
- ...u.message,
1198
- content: `${u.message.content}${o}`,
1197
+ ...m.message,
1198
+ content: `${m.message.content}${o}`,
1199
1199
  processingTime: s,
1200
1200
  name: i
1201
1201
  }
1202
- } : u);
1202
+ } : m);
1203
1203
  return {
1204
1204
  ...e,
1205
1205
  id: e.id,
1206
1206
  model: e.model,
1207
1207
  usage: e.usage,
1208
1208
  isComponent: e.isComponent,
1209
- messages: m,
1209
+ messages: u,
1210
1210
  engine: e.engine,
1211
1211
  prompts: e.prompts,
1212
1212
  streaming: e.streaming,
@@ -1233,7 +1233,7 @@ const Po = (e, t) => {
1233
1233
  };
1234
1234
  }
1235
1235
  }
1236
- if ((t == null ? void 0 : t.type) === Ue)
1236
+ if ((t == null ? void 0 : t.type) === Ie)
1237
1237
  return {
1238
1238
  ...e,
1239
1239
  id: or(),
@@ -1317,38 +1317,38 @@ function Uo() {
1317
1317
  if (Dr) return Et;
1318
1318
  Dr = 1;
1319
1319
  var e = V;
1320
- function t(m, u) {
1321
- return m === u && (m !== 0 || 1 / m === 1 / u) || m !== m && u !== u;
1320
+ function t(u, m) {
1321
+ return u === m && (u !== 0 || 1 / u === 1 / m) || u !== u && m !== m;
1322
1322
  }
1323
1323
  var r = typeof Object.is == "function" ? Object.is : t, a = e.useState, n = e.useEffect, o = e.useLayoutEffect, i = e.useDebugValue;
1324
- function s(m, u) {
1325
- var g = u(), p = a({ inst: { value: g, getSnapshot: u } }), b = p[0].inst, v = p[1];
1324
+ function s(u, m) {
1325
+ var g = m(), p = a({ inst: { value: g, getSnapshot: m } }), b = p[0].inst, v = p[1];
1326
1326
  return o(
1327
1327
  function() {
1328
- b.value = g, b.getSnapshot = u, c(b) && v({ inst: b });
1328
+ b.value = g, b.getSnapshot = m, c(b) && v({ inst: b });
1329
1329
  },
1330
- [m, g, u]
1330
+ [u, g, m]
1331
1331
  ), n(
1332
1332
  function() {
1333
- return c(b) && v({ inst: b }), m(function() {
1333
+ return c(b) && v({ inst: b }), u(function() {
1334
1334
  c(b) && v({ inst: b });
1335
1335
  });
1336
1336
  },
1337
- [m]
1337
+ [u]
1338
1338
  ), i(g), g;
1339
1339
  }
1340
- function c(m) {
1341
- var u = m.getSnapshot;
1342
- m = m.value;
1340
+ function c(u) {
1341
+ var m = u.getSnapshot;
1342
+ u = u.value;
1343
1343
  try {
1344
- var g = u();
1345
- return !r(m, g);
1344
+ var g = m();
1345
+ return !r(u, g);
1346
1346
  } catch {
1347
1347
  return !0;
1348
1348
  }
1349
1349
  }
1350
- function d(m, u) {
1351
- return u();
1350
+ function d(u, m) {
1351
+ return m();
1352
1352
  }
1353
1353
  var h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? d : s;
1354
1354
  return Et.useSyncExternalStore = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : h, Et;
@@ -1374,11 +1374,11 @@ function Ho() {
1374
1374
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
1375
1375
  ));
1376
1376
  var b = p();
1377
- if (!m) {
1377
+ if (!u) {
1378
1378
  var v = p();
1379
1379
  o(b, v) || (console.error(
1380
1380
  "The result of getSnapshot should be cached to avoid an infinite loop"
1381
- ), m = !0);
1381
+ ), u = !0);
1382
1382
  }
1383
1383
  v = i({
1384
1384
  inst: { value: b, getSnapshot: p }
@@ -1412,8 +1412,8 @@ function Ho() {
1412
1412
  return p();
1413
1413
  }
1414
1414
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
1415
- var n = V, o = typeof Object.is == "function" ? Object.is : e, i = n.useState, s = n.useEffect, c = n.useLayoutEffect, d = n.useDebugValue, h = !1, m = !1, u = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1416
- Tt.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());
1415
+ var n = V, o = typeof Object.is == "function" ? Object.is : e, i = n.useState, s = n.useEffect, c = n.useLayoutEffect, d = n.useDebugValue, h = !1, u = !1, m = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? a : t;
1416
+ Tt.useSyncExternalStore = n.useSyncExternalStore !== void 0 ? n.useSyncExternalStore : m, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
1417
1417
  }()), Tt;
1418
1418
  }
1419
1419
  var Ur;
@@ -1493,7 +1493,7 @@ const jo = () => Ut, [Ht, Ft] = st && window.addEventListener ? [
1493
1493
  }, Xo = {
1494
1494
  initFocus: Ko,
1495
1495
  initReconnect: Yo
1496
- }, Fr = !V.useId, Pe = !st || "Deno" in globalThis, Zo = (e) => Go() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = Pe ? M : Bn, Ct = typeof navigator < "u" && navigator.connection, Wr = !Pe && Ct && ([
1496
+ }, Fr = !V.useId, De = !st || "Deno" in globalThis, Zo = (e) => Go() ? window.requestAnimationFrame(e) : setTimeout(e, 1), Nt = De ? M : Bn, Ct = typeof navigator < "u" && navigator.connection, Wr = !De && Ct && ([
1497
1497
  "slow-2g",
1498
1498
  "2g"
1499
1499
  ].includes(Ct.effectiveType) || Ct.saveData), Qe = /* @__PURE__ */ new WeakMap(), Rt = (e, t) => Dt.prototype.toString.call(e) === `[object ${t}]`;
@@ -1533,7 +1533,7 @@ const Wt = (e) => {
1533
1533
  };
1534
1534
  let ei = 0;
1535
1535
  const Gt = () => ++ei, Ia = 0, La = 1, Oa = 2, ti = 3;
1536
- var Ae = {
1536
+ var $e = {
1537
1537
  __proto__: null,
1538
1538
  ERROR_REVALIDATE_EVENT: ti,
1539
1539
  FOCUS_EVENT: Ia,
@@ -1550,21 +1550,21 @@ async function Aa(...e) {
1550
1550
  let i = o.populateCache;
1551
1551
  const s = o.rollbackOnError;
1552
1552
  let c = o.optimisticData;
1553
- const d = (u) => typeof s == "function" ? s(u) : s !== !1, h = o.throwOnError;
1553
+ const d = (m) => typeof s == "function" ? s(m) : s !== !1, h = o.throwOnError;
1554
1554
  if (se(r)) {
1555
- const u = r, g = [], p = t.keys();
1555
+ const m = r, g = [], p = t.keys();
1556
1556
  for (const b of p)
1557
1557
  // Skip the special useSWRInfinite and useSWRSubscription keys.
1558
- !/^\$(inf|sub)\$/.test(b) && u(t.get(b)._k) && g.push(b);
1559
- return Promise.all(g.map(m));
1558
+ !/^\$(inf|sub)\$/.test(b) && m(t.get(b)._k) && g.push(b);
1559
+ return Promise.all(g.map(u));
1560
1560
  }
1561
- return m(r);
1562
- async function m(u) {
1563
- const [g] = lt(u);
1561
+ return u(r);
1562
+ async function u(m) {
1563
+ const [g] = lt(m);
1564
1564
  if (!g) return;
1565
1565
  const [p, b] = Ra(t, g), [v, y, k, w] = ie.get(t), _ = () => {
1566
1566
  const $ = v[g];
1567
- return (se(o.revalidate) ? o.revalidate(p().data, u) : o.revalidate !== !1) && (delete k[g], delete w[g], $ && $[0]) ? $[0](Oa).then(() => p().data) : p().data;
1567
+ return (se(o.revalidate) ? o.revalidate(p().data, m) : o.revalidate !== !1) && (delete k[g], delete w[g], $ && $[0]) ? $[0](Oa).then(() => p().data) : p().data;
1568
1568
  };
1569
1569
  if (e.length < 3)
1570
1570
  return _();
@@ -1626,15 +1626,15 @@ const Gr = (e, t) => {
1626
1626
  if (!ie.has(e)) {
1627
1627
  const r = pe(Xo, t), a = {}, n = Aa.bind(X, e);
1628
1628
  let o = he;
1629
- const i = {}, s = (h, m) => {
1630
- const u = i[h] || [];
1631
- return i[h] = u, u.push(m), () => u.splice(u.indexOf(m), 1);
1632
- }, c = (h, m, u) => {
1633
- e.set(h, m);
1629
+ const i = {}, s = (h, u) => {
1630
+ const m = i[h] || [];
1631
+ return i[h] = m, m.push(u), () => m.splice(m.indexOf(u), 1);
1632
+ }, c = (h, u, m) => {
1633
+ e.set(h, u);
1634
1634
  const g = i[h];
1635
1635
  if (g)
1636
1636
  for (const p of g)
1637
- p(m, u);
1637
+ p(u, m);
1638
1638
  }, d = () => {
1639
1639
  if (!ie.has(e) && (ie.set(e, [
1640
1640
  a,
@@ -1644,10 +1644,10 @@ const Gr = (e, t) => {
1644
1644
  n,
1645
1645
  c,
1646
1646
  s
1647
- ]), !Pe)) {
1648
- const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, Ia))), m = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, La)));
1647
+ ]), !De)) {
1648
+ const h = r.initFocus(setTimeout.bind(X, Gr.bind(X, a, Ia))), u = r.initReconnect(setTimeout.bind(X, Gr.bind(X, a, La)));
1649
1649
  o = () => {
1650
- h && h(), m && m(), ie.delete(e);
1650
+ h && h(), u && u(), ie.delete(e);
1651
1651
  };
1652
1652
  }
1653
1653
  };
@@ -1724,8 +1724,8 @@ const Gr = (e, t) => {
1724
1724
  const a = gi(), [n, o, i] = mi(r), s = si(a, i);
1725
1725
  let c = e;
1726
1726
  const { use: d } = s, h = (d || []).concat(hi);
1727
- for (let m = h.length; m--; )
1728
- c = h[m](c);
1727
+ for (let u = h.length; u--; )
1728
+ c = h[u](c);
1729
1729
  return c(n, o || s.fetcher || null, s);
1730
1730
  }, bi = (e, t, r) => {
1731
1731
  const a = t[e] || (t[e] = []);
@@ -1757,7 +1757,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1757
1757
  }), Lt = {
1758
1758
  dedupe: !0
1759
1759
  }, yi = (e, t, r) => {
1760
- const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: m, keepPreviousData: u } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, $] = Ra(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1760
+ const { cache: a, compare: n, suspense: o, fallbackData: i, revalidateOnMount: s, revalidateIfStale: c, refreshInterval: d, refreshWhenHidden: h, refreshWhenOffline: u, keepPreviousData: m } = r, [g, p, b, v] = ie.get(a), [y, k] = lt(e), w = A(!1), _ = A(!1), x = A(y), T = A(t), S = A(r), N = () => S.current, D = () => N().isVisible() && N().isOnline(), [O, j, P, $] = Ra(a, y), R = A({}).current, Q = C(i) ? C(r.fallback) ? X : r.fallback[y] : i, K = (I, L) => {
1761
1761
  for (const q in R) {
1762
1762
  const B = q;
1763
1763
  if (B === "data") {
@@ -1769,12 +1769,12 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1769
1769
  return !0;
1770
1770
  }, Y = ma(() => {
1771
1771
  const I = !y || !t ? !1 : C(s) ? N().isPaused() || o ? !1 : c !== !1 : s, L = (J) => {
1772
- const de = pe(J);
1773
- return delete de._k, I ? {
1772
+ const ue = pe(J);
1773
+ return delete ue._k, I ? {
1774
1774
  isValidating: !0,
1775
1775
  isLoading: !0,
1776
- ...de
1777
- } : de;
1776
+ ...ue
1777
+ } : ue;
1778
1778
  }, q = O(), B = $(), oe = L(q), _e = q === B ? oe : L(B);
1779
1779
  let F = oe;
1780
1780
  return [
@@ -1796,17 +1796,17 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1796
1796
  a,
1797
1797
  y
1798
1798
  ]
1799
- ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ca(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = u ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), mn = C(U.isValidating) ? wr : U.isValidating, gn = C(U.isLoading) ? wr : U.isLoading, Oe = re(
1799
+ ), Y[0], Y[1]), H = !w.current, yt = g[y] && g[y].length > 0, xe = U.data, we = C(xe) ? Q && Ca(Q) ? It(Q) : Q : xe, Ye = U.error, kr = A(we), Je = m ? C(xe) ? kr.current : xe : we, xr = yt && !C(Ye) ? !1 : H && !C(s) ? s : N().isPaused() ? !1 : o ? C(we) ? !1 : c : C(we) || c, wr = !!(y && t && H && xr), mn = C(U.isValidating) ? wr : U.isValidating, gn = C(U.isLoading) ? wr : U.isLoading, Ae = re(
1800
1800
  async (I) => {
1801
1801
  const L = T.current;
1802
1802
  if (!y || !L || _.current || N().isPaused())
1803
1803
  return !1;
1804
1804
  let q, B, oe = !0;
1805
- const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current, de = {
1805
+ const _e = I || {}, F = !b[y] || !_e.dedupe, J = () => Fr ? !_.current && y === x.current && w.current : y === x.current, ue = {
1806
1806
  isValidating: !1,
1807
1807
  isLoading: !1
1808
1808
  }, Er = () => {
1809
- j(de);
1809
+ j(ue);
1810
1810
  }, Tr = () => {
1811
1811
  const te = b[y];
1812
1812
  te && te[1] === B && delete b[y];
@@ -1822,21 +1822,21 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1822
1822
  Gt()
1823
1823
  ]), [q, B] = b[y], q = await q, F && setTimeout(Tr, r.dedupingInterval), !b[y] || b[y][1] !== B)
1824
1824
  return F && J() && N().onDiscarded(y), !1;
1825
- de.error = X;
1825
+ ue.error = X;
1826
1826
  const te = p[y];
1827
1827
  if (!C(te) && // case 1
1828
1828
  (B <= te[0] || // case 2
1829
1829
  B <= te[1] || // case 3
1830
1830
  te[1] === 0))
1831
1831
  return Er(), F && J() && N().onDiscarded(y), !1;
1832
- const ue = O().data;
1833
- de.data = n(ue, q) ? ue : q, F && J() && N().onSuccess(q, y, r);
1832
+ const me = O().data;
1833
+ ue.data = n(me, q) ? me : q, F && J() && N().onSuccess(q, y, r);
1834
1834
  } catch (te) {
1835
1835
  Tr();
1836
- const ue = N(), { shouldRetryOnError: vt } = ue;
1837
- ue.isPaused() || (de.error = te, F && J() && (ue.onError(te, y, ue), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && ue.onErrorRetry(te, y, ue, (fn) => {
1836
+ const me = N(), { shouldRetryOnError: vt } = me;
1837
+ me.isPaused() || (ue.error = te, F && J() && (me.onError(te, y, me), (vt === !0 || se(vt) && vt(te)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || D()) && me.onErrorRetry(te, y, me, (fn) => {
1838
1838
  const kt = g[y];
1839
- kt && kt[0] && kt[0](Ae.ERROR_REVALIDATE_EVENT, fn);
1839
+ kt && kt[0] && kt[0]($e.ERROR_REVALIDATE_EVENT, fn);
1840
1840
  }, {
1841
1841
  retryCount: (_e.retryCount || 0) + 1,
1842
1842
  dedupe: !0
@@ -1869,24 +1869,24 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1869
1869
  T.current = t, S.current = r, C(xe) || (kr.current = xe);
1870
1870
  }), Nt(() => {
1871
1871
  if (!y) return;
1872
- const I = Oe.bind(X, Lt);
1872
+ const I = Ae.bind(X, Lt);
1873
1873
  let L = 0;
1874
1874
  const B = bi(y, g, (oe, _e = {}) => {
1875
- if (oe == Ae.FOCUS_EVENT) {
1875
+ if (oe == $e.FOCUS_EVENT) {
1876
1876
  const F = Date.now();
1877
1877
  N().revalidateOnFocus && F > L && D() && (L = F + N().focusThrottleInterval, I());
1878
- } else if (oe == Ae.RECONNECT_EVENT)
1878
+ } else if (oe == $e.RECONNECT_EVENT)
1879
1879
  N().revalidateOnReconnect && D() && I();
1880
1880
  else {
1881
- if (oe == Ae.MUTATE_EVENT)
1882
- return Oe();
1883
- if (oe == Ae.ERROR_REVALIDATE_EVENT)
1884
- return Oe(_e);
1881
+ if (oe == $e.MUTATE_EVENT)
1882
+ return Ae();
1883
+ if (oe == $e.ERROR_REVALIDATE_EVENT)
1884
+ return Ae(_e);
1885
1885
  }
1886
1886
  });
1887
1887
  return _.current = !1, x.current = y, w.current = !0, j({
1888
1888
  _k: k
1889
- }), xr && (C(we) || Pe ? I() : Zo(I)), () => {
1889
+ }), xr && (C(we) || De ? I() : Zo(I)), () => {
1890
1890
  _.current = !0, B();
1891
1891
  };
1892
1892
  }, [
@@ -1898,7 +1898,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1898
1898
  B && I !== -1 && (I = setTimeout(q, B));
1899
1899
  }
1900
1900
  function q() {
1901
- !O().error && (h || N().isVisible()) && (m || N().isOnline()) ? Oe(Lt).then(L) : L();
1901
+ !O().error && (h || N().isVisible()) && (u || N().isOnline()) ? Ae(Lt).then(L) : L();
1902
1902
  }
1903
1903
  return L(), () => {
1904
1904
  I && (clearTimeout(I), I = -1);
@@ -1906,10 +1906,10 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1906
1906
  }, [
1907
1907
  d,
1908
1908
  h,
1909
- m,
1909
+ u,
1910
1910
  y
1911
1911
  ]), Mn(Je), o && C(we) && y) {
1912
- if (!Fr && Pe)
1912
+ if (!Fr && De)
1913
1913
  throw new Error("Fallback data is required when using Suspense in SSR.");
1914
1914
  T.current = t, S.current = r, _.current = !1;
1915
1915
  const I = v[y];
@@ -1918,7 +1918,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
1918
1918
  It(L);
1919
1919
  }
1920
1920
  if (C(Ye)) {
1921
- const L = Oe(Lt);
1921
+ const L = Ae(Lt);
1922
1922
  C(Je) || (L.status = "fulfilled", L.value = !0), It(L);
1923
1923
  } else
1924
1924
  throw Ye;
@@ -2013,6 +2013,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2013
2013
  slot
2014
2014
  label
2015
2015
  content
2016
+ privateChat
2016
2017
  }
2017
2018
  }
2018
2019
  }`,
@@ -2153,12 +2154,18 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2153
2154
  }
2154
2155
  }), lr = ({
2155
2156
  keys: e,
2156
- getAccessToken: t
2157
+ getAccessToken: t,
2158
+ isPaused: r = !1
2157
2159
  }) => ct({
2158
2160
  fetcher: wi,
2159
2161
  scope: "/preferences",
2160
2162
  keys: e,
2161
- swrOptions: { keepPreviousData: !0 },
2163
+ swrOptions: {
2164
+ keepPreviousData: !0,
2165
+ revalidateIfStale: r,
2166
+ revalidateOnFocus: r,
2167
+ revalidateOnReconnect: r
2168
+ },
2162
2169
  getAccessToken: t
2163
2170
  }), _i = async ([e, t], r) => dt({
2164
2171
  getAccessToken: r,
@@ -2215,7 +2222,7 @@ const It = V.use || // This extra generic is to avoid TypeScript mixing up the g
2215
2222
  getAccessToken: e
2216
2223
  }) => {
2217
2224
  Ba(["/capabilities"], (t) => Da(t, e));
2218
- }, Si = "z-20", Ni = "z-10", me = V.createContext({
2225
+ }, Si = "z-20", Ni = "z-10", de = V.createContext({
2219
2226
  state: {
2220
2227
  id: "",
2221
2228
  model: Te,
@@ -2255,7 +2262,7 @@ try {
2255
2262
  });
2256
2263
  } catch {
2257
2264
  }
2258
- const Ri = "av-tooltip", Ii = "av-tooltip-arrow", De = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2265
+ const Ri = "av-tooltip", Ii = "av-tooltip-arrow", ze = Math.min, Se = Math.max, rt = Math.round, le = (e) => ({
2259
2266
  x: e,
2260
2267
  y: e
2261
2268
  }), Li = {
@@ -2268,7 +2275,7 @@ const Ri = "av-tooltip", Ii = "av-tooltip-arrow", De = Math.min, Se = Math.max,
2268
2275
  end: "start"
2269
2276
  };
2270
2277
  function jt(e, t, r) {
2271
- return Se(e, De(t, r));
2278
+ return Se(e, ze(t, r));
2272
2279
  }
2273
2280
  function Ge(e, t) {
2274
2281
  return typeof e == "function" ? e(t) : e;
@@ -2365,7 +2372,7 @@ function jr(e, t, r) {
2365
2372
  reference: a,
2366
2373
  floating: n
2367
2374
  } = e;
2368
- const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = a.x + a.width / 2 - n.width / 2, m = a.y + a.height / 2 - n.height / 2, u = a[s] / 2 - n[s] / 2;
2375
+ const o = Ce(t), i = dr(t), s = cr(i), c = ve(t), d = o === "y", h = a.x + a.width / 2 - n.width / 2, u = a.y + a.height / 2 - n.height / 2, m = a[s] / 2 - n[s] / 2;
2369
2376
  let g;
2370
2377
  switch (c) {
2371
2378
  case "top":
@@ -2383,13 +2390,13 @@ function jr(e, t, r) {
2383
2390
  case "right":
2384
2391
  g = {
2385
2392
  x: a.x + a.width,
2386
- y: m
2393
+ y: u
2387
2394
  };
2388
2395
  break;
2389
2396
  case "left":
2390
2397
  g = {
2391
2398
  x: a.x - n.width,
2392
- y: m
2399
+ y: u
2393
2400
  };
2394
2401
  break;
2395
2402
  default:
@@ -2400,10 +2407,10 @@ function jr(e, t, r) {
2400
2407
  }
2401
2408
  switch (je(t)) {
2402
2409
  case "start":
2403
- g[i] -= u * (r && d ? -1 : 1);
2410
+ g[i] -= m * (r && d ? -1 : 1);
2404
2411
  break;
2405
2412
  case "end":
2406
- g[i] += u * (r && d ? -1 : 1);
2413
+ g[i] += m * (r && d ? -1 : 1);
2407
2414
  break;
2408
2415
  }
2409
2416
  return g;
@@ -2421,8 +2428,8 @@ const Pi = async (e, t, r) => {
2421
2428
  strategy: n
2422
2429
  }), {
2423
2430
  x: h,
2424
- y: m
2425
- } = jr(d, a, c), u = a, g = {}, p = 0;
2431
+ y: u
2432
+ } = jr(d, a, c), m = a, g = {}, p = 0;
2426
2433
  for (let b = 0; b < s.length; b++) {
2427
2434
  const {
2428
2435
  name: v,
@@ -2434,9 +2441,9 @@ const Pi = async (e, t, r) => {
2434
2441
  reset: x
2435
2442
  } = await y({
2436
2443
  x: h,
2437
- y: m,
2444
+ y: u,
2438
2445
  initialPlacement: a,
2439
- placement: u,
2446
+ placement: m,
2440
2447
  strategy: n,
2441
2448
  middlewareData: g,
2442
2449
  rects: d,
@@ -2446,25 +2453,25 @@ const Pi = async (e, t, r) => {
2446
2453
  floating: t
2447
2454
  }
2448
2455
  });
2449
- h = k ?? h, m = w ?? m, g = {
2456
+ h = k ?? h, u = w ?? u, g = {
2450
2457
  ...g,
2451
2458
  [v]: {
2452
2459
  ...g[v],
2453
2460
  ..._
2454
2461
  }
2455
- }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (u = x.placement), x.rects && (d = x.rects === !0 ? await i.getElementRects({
2462
+ }, x && p <= 50 && (p++, typeof x == "object" && (x.placement && (m = x.placement), x.rects && (d = x.rects === !0 ? await i.getElementRects({
2456
2463
  reference: e,
2457
2464
  floating: t,
2458
2465
  strategy: n
2459
2466
  }) : x.rects), {
2460
2467
  x: h,
2461
- y: m
2462
- } = jr(d, u, c)), b = -1);
2468
+ y: u
2469
+ } = jr(d, m, c)), b = -1);
2463
2470
  }
2464
2471
  return {
2465
2472
  x: h,
2466
- y: m,
2467
- placement: u,
2473
+ y: u,
2474
+ placement: m,
2468
2475
  strategy: n,
2469
2476
  middlewareData: g
2470
2477
  };
@@ -2482,15 +2489,15 @@ async function Ha(e, t) {
2482
2489
  } = e, {
2483
2490
  boundary: d = "clippingAncestors",
2484
2491
  rootBoundary: h = "viewport",
2485
- elementContext: m = "floating",
2486
- altBoundary: u = !1,
2492
+ elementContext: u = "floating",
2493
+ altBoundary: m = !1,
2487
2494
  padding: g = 0
2488
- } = Ge(t, e), p = Ua(g), b = s[u ? m === "floating" ? "reference" : "floating" : m], v = nt(await o.getClippingRect({
2495
+ } = Ge(t, e), p = Ua(g), b = s[m ? u === "floating" ? "reference" : "floating" : u], v = nt(await o.getClippingRect({
2489
2496
  element: (r = await (o.isElement == null ? void 0 : o.isElement(b))) == null || r ? b : b.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(s.floating)),
2490
2497
  boundary: d,
2491
2498
  rootBoundary: h,
2492
2499
  strategy: c
2493
- })), y = m === "floating" ? {
2500
+ })), y = u === "floating" ? {
2494
2501
  x: a,
2495
2502
  y: n,
2496
2503
  width: i.floating.width,
@@ -2532,15 +2539,15 @@ const Di = (e) => ({
2532
2539
  } = Ge(e, t) || {};
2533
2540
  if (d == null)
2534
2541
  return {};
2535
- const m = Ua(h), u = {
2542
+ const u = Ua(h), m = {
2536
2543
  x: r,
2537
2544
  y: a
2538
- }, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - u[g] - o.floating[p], x = u[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2545
+ }, g = dr(n), p = cr(g), b = await i.getDimensions(d), v = g === "y", y = v ? "top" : "left", k = v ? "bottom" : "right", w = v ? "clientHeight" : "clientWidth", _ = o.reference[p] + o.reference[g] - m[g] - o.floating[p], x = m[g] - o.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
2539
2546
  let S = T ? T[w] : 0;
2540
2547
  (!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = s.floating[w] || o.floating[p]);
2541
- const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = De(m[y], D), j = De(m[k], D), P = O, $ = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, $), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - $ : 0;
2548
+ const N = _ / 2 - x / 2, D = S / 2 - b[p] / 2 - 1, O = ze(u[y], D), j = ze(u[k], D), P = O, $ = S - b[p] - j, R = S / 2 - b[p] / 2 + N, Q = jt(P, R, $), K = !c.arrow && je(n) != null && R !== Q && o.reference[p] / 2 - (R < P ? O : j) - b[p] / 2 < 0, Y = K ? R < P ? R - P : R - $ : 0;
2542
2549
  return {
2543
- [g]: u[g] + Y,
2550
+ [g]: m[g] + Y,
2544
2551
  data: {
2545
2552
  [g]: Q,
2546
2553
  centerOffset: R - Q - Y,
@@ -2566,8 +2573,8 @@ const Di = (e) => ({
2566
2573
  elements: d
2567
2574
  } = t, {
2568
2575
  mainAxis: h = !0,
2569
- crossAxis: m = !0,
2570
- fallbackPlacements: u,
2576
+ crossAxis: u = !0,
2577
+ fallbackPlacements: m,
2571
2578
  fallbackStrategy: g = "bestFit",
2572
2579
  fallbackAxisSideDirection: p = "none",
2573
2580
  flipAlignment: b = !0,
@@ -2575,11 +2582,11 @@ const Di = (e) => ({
2575
2582
  } = Ge(e, t);
2576
2583
  if ((r = o.arrow) != null && r.alignmentOffset)
2577
2584
  return {};
2578
- const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = u || (w || !b ? [at(s)] : $i(s)), T = p !== "none";
2579
- !u && T && x.push(...Mi(s, b, p, _));
2585
+ const y = ve(n), k = Ce(s), w = ve(s) === s, _ = await (c.isRTL == null ? void 0 : c.isRTL(d.floating)), x = m || (w || !b ? [at(s)] : $i(s)), T = p !== "none";
2586
+ !m && T && x.push(...Mi(s, b, p, _));
2580
2587
  const S = [s, ...x], N = await Ha(t, v), D = [];
2581
2588
  let O = ((a = o.flip) == null ? void 0 : a.overflows) || [];
2582
- if (h && D.push(N[y]), m) {
2589
+ if (h && D.push(N[y]), u) {
2583
2590
  const R = Ai(n, i, _);
2584
2591
  D.push(N[R[0]], N[R[1]]);
2585
2592
  }
@@ -2636,25 +2643,25 @@ async function Ui(e, t) {
2636
2643
  placement: r,
2637
2644
  platform: a,
2638
2645
  elements: n
2639
- } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1, m = Ge(t, e);
2646
+ } = e, o = await (a.isRTL == null ? void 0 : a.isRTL(n.floating)), i = ve(r), s = je(r), c = Ce(r) === "y", d = ["left", "top"].includes(i) ? -1 : 1, h = o && c ? -1 : 1, u = Ge(t, e);
2640
2647
  let {
2641
- mainAxis: u,
2648
+ mainAxis: m,
2642
2649
  crossAxis: g,
2643
2650
  alignmentAxis: p
2644
- } = typeof m == "number" ? {
2645
- mainAxis: m,
2651
+ } = typeof u == "number" ? {
2652
+ mainAxis: u,
2646
2653
  crossAxis: 0,
2647
2654
  alignmentAxis: null
2648
2655
  } : {
2649
- mainAxis: m.mainAxis || 0,
2650
- crossAxis: m.crossAxis || 0,
2651
- alignmentAxis: m.alignmentAxis
2656
+ mainAxis: u.mainAxis || 0,
2657
+ crossAxis: u.crossAxis || 0,
2658
+ alignmentAxis: u.alignmentAxis
2652
2659
  };
2653
2660
  return s && typeof p == "number" && (g = s === "end" ? p * -1 : p), c ? {
2654
2661
  x: g * h,
2655
- y: u * d
2662
+ y: m * d
2656
2663
  } : {
2657
- x: u * d,
2664
+ x: m * d,
2658
2665
  y: g * h
2659
2666
  };
2660
2667
  }
@@ -2708,20 +2715,20 @@ const Hi = function(e) {
2708
2715
  } = Ge(e, t), d = {
2709
2716
  x: r,
2710
2717
  y: a
2711
- }, h = await Ha(t, c), m = Ce(ve(n)), u = za(m);
2712
- let g = d[u], p = d[m];
2718
+ }, h = await Ha(t, c), u = Ce(ve(n)), m = za(u);
2719
+ let g = d[m], p = d[u];
2713
2720
  if (o) {
2714
- const v = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
2721
+ const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = g + h[v], w = g - h[y];
2715
2722
  g = jt(k, g, w);
2716
2723
  }
2717
2724
  if (i) {
2718
- const v = m === "y" ? "top" : "left", y = m === "y" ? "bottom" : "right", k = p + h[v], w = p - h[y];
2725
+ const v = u === "y" ? "top" : "left", y = u === "y" ? "bottom" : "right", k = p + h[v], w = p - h[y];
2719
2726
  p = jt(k, p, w);
2720
2727
  }
2721
2728
  const b = s.fn({
2722
2729
  ...t,
2723
- [u]: g,
2724
- [m]: p
2730
+ [m]: g,
2731
+ [u]: p
2725
2732
  });
2726
2733
  return {
2727
2734
  ...b,
@@ -2729,8 +2736,8 @@ const Hi = function(e) {
2729
2736
  x: b.x - r,
2730
2737
  y: b.y - a,
2731
2738
  enabled: {
2732
- [u]: o,
2733
- [m]: i
2739
+ [m]: o,
2740
+ [u]: i
2734
2741
  }
2735
2742
  }
2736
2743
  };
@@ -2740,7 +2747,7 @@ const Hi = function(e) {
2740
2747
  function mt() {
2741
2748
  return typeof window < "u";
2742
2749
  }
2743
- function Le(e) {
2750
+ function Oe(e) {
2744
2751
  return Fa(e) ? (e.nodeName || "").toLowerCase() : "#document";
2745
2752
  }
2746
2753
  function ee(e) {
@@ -2773,7 +2780,7 @@ function qe(e) {
2773
2780
  return /auto|scroll|overlay|hidden|clip/.test(t + a + r) && !["inline", "contents"].includes(n);
2774
2781
  }
2775
2782
  function Wi(e) {
2776
- return ["table", "td", "th"].includes(Le(e));
2783
+ return ["table", "td", "th"].includes(Oe(e));
2777
2784
  }
2778
2785
  function gt(e) {
2779
2786
  return [":popover-open", ":modal"].some((t) => {
@@ -2803,7 +2810,7 @@ function mr() {
2803
2810
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
2804
2811
  }
2805
2812
  function Re(e) {
2806
- return ["html", "body", "#document"].includes(Le(e));
2813
+ return ["html", "body", "#document"].includes(Oe(e));
2807
2814
  }
2808
2815
  function ne(e) {
2809
2816
  return ee(e).getComputedStyle(e);
@@ -2818,7 +2825,7 @@ function ft(e) {
2818
2825
  };
2819
2826
  }
2820
2827
  function be(e) {
2821
- if (Le(e) === "html")
2828
+ if (Oe(e) === "html")
2822
2829
  return e;
2823
2830
  const t = (
2824
2831
  // Step into the shadow DOM of the parent of a slotted node.
@@ -2881,31 +2888,31 @@ function Ka(e) {
2881
2888
  function qi(e, t, r) {
2882
2889
  return t === void 0 && (t = !1), !r || t && r !== ee(e) ? !1 : t;
2883
2890
  }
2884
- function ze(e, t, r, a) {
2891
+ function Ue(e, t, r, a) {
2885
2892
  t === void 0 && (t = !1), r === void 0 && (r = !1);
2886
2893
  const n = e.getBoundingClientRect(), o = qa(e);
2887
2894
  let i = le(1);
2888
2895
  t && (a ? ae(a) && (i = Ne(a)) : i = Ne(e));
2889
2896
  const s = qi(o, r, a) ? Ka(o) : le(0);
2890
- let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, m = n.height / i.y;
2897
+ let c = (n.left + s.x) / i.x, d = (n.top + s.y) / i.y, h = n.width / i.x, u = n.height / i.y;
2891
2898
  if (o) {
2892
- const u = ee(o), g = a && ae(a) ? ee(a) : a;
2893
- let p = u, b = Kr(p);
2899
+ const m = ee(o), g = a && ae(a) ? ee(a) : a;
2900
+ let p = m, b = Kr(p);
2894
2901
  for (; b && a && g !== p; ) {
2895
2902
  const v = Ne(b), y = b.getBoundingClientRect(), k = ne(b), w = y.left + (b.clientLeft + parseFloat(k.paddingLeft)) * v.x, _ = y.top + (b.clientTop + parseFloat(k.paddingTop)) * v.y;
2896
- c *= v.x, d *= v.y, h *= v.x, m *= v.y, c += w, d += _, p = ee(b), b = Kr(p);
2903
+ c *= v.x, d *= v.y, h *= v.x, u *= v.y, c += w, d += _, p = ee(b), b = Kr(p);
2897
2904
  }
2898
2905
  }
2899
2906
  return nt({
2900
2907
  width: h,
2901
- height: m,
2908
+ height: u,
2902
2909
  x: c,
2903
2910
  y: d
2904
2911
  });
2905
2912
  }
2906
2913
  function gr(e, t) {
2907
2914
  const r = ft(e).scrollLeft;
2908
- return t ? t.left + r : ze(ge(e)).left + r;
2915
+ return t ? t.left + r : Ue(ge(e)).left + r;
2909
2916
  }
2910
2917
  function Ya(e, t, r) {
2911
2918
  r === void 0 && (r = !1);
@@ -2932,17 +2939,17 @@ function Ki(e) {
2932
2939
  scrollLeft: 0,
2933
2940
  scrollTop: 0
2934
2941
  }, d = le(1);
2935
- const h = le(0), m = ce(a);
2936
- if ((m || !m && !o) && ((Le(a) !== "body" || qe(i)) && (c = ft(a)), ce(a))) {
2937
- const g = ze(a);
2942
+ const h = le(0), u = ce(a);
2943
+ if ((u || !u && !o) && ((Oe(a) !== "body" || qe(i)) && (c = ft(a)), ce(a))) {
2944
+ const g = Ue(a);
2938
2945
  d = Ne(a), h.x = g.x + a.clientLeft, h.y = g.y + a.clientTop;
2939
2946
  }
2940
- const u = i && !m && !o ? Ya(i, c, !0) : le(0);
2947
+ const m = i && !u && !o ? Ya(i, c, !0) : le(0);
2941
2948
  return {
2942
2949
  width: r.width * d.x,
2943
2950
  height: r.height * d.y,
2944
- x: r.x * d.x - c.scrollLeft * d.x + h.x + u.x,
2945
- y: r.y * d.y - c.scrollTop * d.y + h.y + u.y
2951
+ x: r.x * d.x - c.scrollLeft * d.x + h.x + m.x,
2952
+ y: r.y * d.y - c.scrollTop * d.y + h.y + m.y
2946
2953
  };
2947
2954
  }
2948
2955
  function Yi(e) {
@@ -2975,7 +2982,7 @@ function Xi(e, t) {
2975
2982
  };
2976
2983
  }
2977
2984
  function Zi(e, t) {
2978
- const r = ze(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
2985
+ const r = Ue(e, !0, t === "fixed"), a = r.top + e.clientTop, n = r.left + e.clientLeft, o = ce(e) ? Ne(e) : le(1), i = e.clientWidth * o.x, s = e.clientHeight * o.y, c = n * o.x, d = a * o.y;
2979
2986
  return {
2980
2987
  width: i,
2981
2988
  height: s,
@@ -3010,7 +3017,7 @@ function Qi(e, t) {
3010
3017
  const r = t.get(e);
3011
3018
  if (r)
3012
3019
  return r;
3013
- let a = Ga(e, []).filter((s) => ae(s) && Le(s) !== "body"), n = null;
3020
+ let a = Ga(e, []).filter((s) => ae(s) && Oe(s) !== "body"), n = null;
3014
3021
  const o = ne(e).position === "fixed";
3015
3022
  let i = o ? be(e) : e;
3016
3023
  for (; ae(i) && !Re(i); ) {
@@ -3028,7 +3035,7 @@ function es(e) {
3028
3035
  } = e;
3029
3036
  const o = [...r === "clippingAncestors" ? gt(t) ? [] : Qi(t, this._c) : [].concat(r), a], i = o[0], s = o.reduce((c, d) => {
3030
3037
  const h = Yr(t, d, n);
3031
- return c.top = Se(h.top, c.top), c.right = De(h.right, c.right), c.bottom = De(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
3038
+ return c.top = Se(h.top, c.top), c.right = ze(h.right, c.right), c.bottom = ze(h.bottom, c.bottom), c.left = Se(h.left, c.left), c;
3032
3039
  }, Yr(t, i, n));
3033
3040
  return {
3034
3041
  width: s.right - s.left,
@@ -3048,21 +3055,21 @@ function ts(e) {
3048
3055
  };
3049
3056
  }
3050
3057
  function rs(e, t, r) {
3051
- const a = ce(t), n = ge(t), o = r === "fixed", i = ze(e, !0, o, t);
3058
+ const a = ce(t), n = ge(t), o = r === "fixed", i = Ue(e, !0, o, t);
3052
3059
  let s = {
3053
3060
  scrollLeft: 0,
3054
3061
  scrollTop: 0
3055
3062
  };
3056
3063
  const c = le(0);
3057
3064
  if (a || !a && !o)
3058
- if ((Le(t) !== "body" || qe(n)) && (s = ft(t)), a) {
3059
- const u = ze(t, !0, o, t);
3060
- c.x = u.x + t.clientLeft, c.y = u.y + t.clientTop;
3065
+ if ((Oe(t) !== "body" || qe(n)) && (s = ft(t)), a) {
3066
+ const m = Ue(t, !0, o, t);
3067
+ c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
3061
3068
  } else n && (c.x = gr(n));
3062
- const d = n && !a && !o ? Ya(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, m = i.top + s.scrollTop - c.y - d.y;
3069
+ const d = n && !a && !o ? Ya(n, s) : le(0), h = i.left + s.scrollLeft - c.x - d.x, u = i.top + s.scrollTop - c.y - d.y;
3063
3070
  return {
3064
3071
  x: h,
3065
- y: m,
3072
+ y: u,
3066
3073
  width: i.width,
3067
3074
  height: i.height
3068
3075
  };
@@ -3211,7 +3218,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3211
3218
  }) => {
3212
3219
  const c = us(() => {
3213
3220
  b.stop(), p(!1);
3214
- }), d = A(null), h = A(null), [m, u] = Z(!1), [g, p] = Z(!1), b = ms(() => {
3221
+ }), d = A(null), h = A(null), [u, m] = Z(!1), [g, p] = Z(!1), b = ms(() => {
3215
3222
  p(!1);
3216
3223
  }, ys), v = ps({
3217
3224
  mode: a,
@@ -3259,14 +3266,14 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3259
3266
  }
3260
3267
  }, [r, y, c]);
3261
3268
  M(() => {
3262
- (async () => m && await k())();
3263
- }, [k, m]);
3269
+ (async () => u && await k())();
3270
+ }, [k, u]);
3264
3271
  const w = () => {
3265
- u(!1), p(!0), b.start();
3272
+ m(!1), p(!0), b.start();
3266
3273
  }, _ = () => {
3267
- g || u(!0);
3274
+ g || m(!0);
3268
3275
  }, x = () => {
3269
- g || u(!1);
3276
+ g || m(!1);
3270
3277
  };
3271
3278
  return /* @__PURE__ */ E(
3272
3279
  "div",
@@ -3278,7 +3285,7 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3278
3285
  onClick: w,
3279
3286
  children: [
3280
3287
  e,
3281
- m && /* @__PURE__ */ E(
3288
+ u && /* @__PURE__ */ E(
3282
3289
  "div",
3283
3290
  {
3284
3291
  role: "tooltip",
@@ -3296,9 +3303,9 @@ const et = (e, t = "px") => typeof e > "u" ? "" : `${Math.round(e)}${t}`, gs = (
3296
3303
  }, vs = ({
3297
3304
  className: e
3298
3305
  }) => {
3299
- const { state: t, dispatch: r } = z(me), a = A(null), n = A(!1), o = (i) => {
3306
+ const { state: t, dispatch: r } = z(de), a = A(null), n = A(!1), o = (i) => {
3300
3307
  i.preventDefault(), r({
3301
- type: Ue
3308
+ type: Ie
3302
3309
  });
3303
3310
  };
3304
3311
  return M(() => {
@@ -3584,20 +3591,20 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3584
3591
  noBorder: c,
3585
3592
  labelRight: d,
3586
3593
  labelLeft: h,
3587
- noBackground: m,
3588
- variant: u,
3594
+ noBackground: u,
3595
+ variant: m,
3589
3596
  noTruncate: g,
3590
3597
  align: p,
3591
3598
  radius: b
3592
- }) => (u || (u = "primary"), r ? f(ta, t) : f(
3599
+ }) => (m || (m = "primary"), r ? f(ta, t) : f(
3593
3600
  ta,
3594
3601
  ws({
3595
3602
  mode: a,
3596
- variant: u,
3597
- noBackground: m,
3603
+ variant: m,
3604
+ noBackground: u,
3598
3605
  noTruncate: g
3599
3606
  }),
3600
- _s({ mode: a, noBackground: m, variant: u }),
3607
+ _s({ mode: a, noBackground: u, variant: m }),
3601
3608
  Es({ radius: b }),
3602
3609
  ks({
3603
3610
  type: e,
@@ -3607,10 +3614,10 @@ const Qr = "av-messagebox", ea = "av-panel", ta = "av-button", ht = "icon", Za =
3607
3614
  align: p
3608
3615
  }),
3609
3616
  xs({ type: e, size: s, labelRight: d, labelLeft: h }),
3610
- Ns({ mode: a, variant: u, noBorder: c }),
3617
+ Ns({ mode: a, variant: m, noBorder: c }),
3611
3618
  Cs({ focusMode: n }),
3612
- Ts({ mode: a, variant: u, disabled: o }),
3613
- Ss({ mode: a, variant: u, disabled: o }),
3619
+ Ts({ mode: a, variant: m, disabled: o }),
3620
+ Ss({ mode: a, variant: m, disabled: o }),
3614
3621
  {
3615
3622
  "w-full": i,
3616
3623
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -3646,8 +3653,8 @@ const en = V.forwardRef(
3646
3653
  noBorder: c = !1,
3647
3654
  "aria-label": d,
3648
3655
  label: h,
3649
- size: m = "medium",
3650
- labelRight: u,
3656
+ size: u = "medium",
3657
+ labelRight: m,
3651
3658
  labelLeft: g,
3652
3659
  noBackground: p = !1,
3653
3660
  align: b = "center",
@@ -3665,8 +3672,8 @@ const en = V.forwardRef(
3665
3672
  raw: s,
3666
3673
  className: o,
3667
3674
  noBorder: c,
3668
- size: m,
3669
- labelRight: u,
3675
+ size: u,
3676
+ labelRight: m,
3670
3677
  labelLeft: g,
3671
3678
  noBackground: p,
3672
3679
  align: b,
@@ -3685,7 +3692,7 @@ const en = V.forwardRef(
3685
3692
  children: [
3686
3693
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
3687
3694
  /* @__PURE__ */ l("div", { className: T, children: e }),
3688
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
3695
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
3689
3696
  ]
3690
3697
  }
3691
3698
  );
@@ -3718,8 +3725,8 @@ const Ls = V.forwardRef(
3718
3725
  noBorder: c = !1,
3719
3726
  "aria-label": d,
3720
3727
  label: h,
3721
- size: m = "medium",
3722
- labelRight: u,
3728
+ size: u = "medium",
3729
+ labelRight: m,
3723
3730
  labelLeft: g,
3724
3731
  noBackground: p = !1,
3725
3732
  align: b = "center",
@@ -3736,8 +3743,8 @@ const Ls = V.forwardRef(
3736
3743
  raw: s,
3737
3744
  className: o,
3738
3745
  noBorder: c,
3739
- size: m,
3740
- labelRight: u,
3746
+ size: u,
3747
+ labelRight: m,
3741
3748
  labelLeft: g,
3742
3749
  noBackground: p,
3743
3750
  align: b,
@@ -3776,7 +3783,7 @@ const Ls = V.forwardRef(
3776
3783
  children: [
3777
3784
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
3778
3785
  /* @__PURE__ */ l("div", { className: x, children: e }),
3779
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
3786
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
3780
3787
  ]
3781
3788
  }
3782
3789
  ) });
@@ -3869,27 +3876,27 @@ function $s({
3869
3876
  open: t,
3870
3877
  onOpenChange: r
3871
3878
  } = {}) {
3872
- const [a, n] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? a, h = r ?? n, m = ba({
3879
+ const [a, n] = G.useState(e), [o, i] = G.useState(), [s, c] = G.useState(), d = t ?? a, h = r ?? n, u = ba({
3873
3880
  open: d,
3874
3881
  onOpenChange: h
3875
- }), u = m.context, g = ya(u, {
3882
+ }), m = u.context, g = ya(m, {
3876
3883
  enabled: t == null
3877
- }), p = va(u, {
3884
+ }), p = va(m, {
3878
3885
  outsidePress: !1,
3879
3886
  outsidePressEvent: "mousedown"
3880
- }), b = ka(u), v = xa([g, p, b]);
3887
+ }), b = ka(m), v = xa([g, p, b]);
3881
3888
  return G.useMemo(
3882
3889
  () => ({
3883
3890
  open: d,
3884
3891
  setOpen: h,
3885
3892
  ...v,
3886
- ...m,
3893
+ ...u,
3887
3894
  labelId: o,
3888
3895
  descriptionId: s,
3889
3896
  setLabelId: i,
3890
3897
  setDescriptionId: c
3891
3898
  }),
3892
- [d, h, v, m, o, s]
3899
+ [d, h, v, u, o, s]
3893
3900
  );
3894
3901
  }
3895
3902
  const pt = () => {
@@ -3950,19 +3957,19 @@ try {
3950
3957
  });
3951
3958
  } catch {
3952
3959
  }
3953
- const Be = "panel", tt = "messagebox", zs = ({
3960
+ const Me = "panel", tt = "messagebox", zs = ({
3954
3961
  className: e,
3955
3962
  kind: t,
3956
3963
  borderMode: r
3957
3964
  }) => ({
3958
3965
  main: f("prose prose-lighter flex flex-col bg-surface-medium", {
3959
- [`${ea} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Be,
3960
- [`${ea} w-full sm:w-[95%] md:max-w-2xl`]: t === Be && !e,
3966
+ [`${ea} max-h-full sm:max-h-[95%] min-h-full sm:min-h-[10rem] sm:rounded-lg sm:border-2`]: t === Me,
3967
+ [`${ea} w-full sm:w-[95%] md:max-w-2xl`]: t === Me && !e,
3961
3968
  [`${Qr} rounded-lg border-2`]: t === tt,
3962
3969
  [`${Qr} w-[95%] sm:w-[50%] md:max-w-2xl`]: t === tt && !e,
3963
3970
  [`${e}`]: !!e,
3964
- "sm:border-border-dark": r === "dark" && t === Be,
3965
- "sm:border-border-accent": r === "light" && t === Be,
3971
+ "sm:border-border-dark": r === "dark" && t === Me,
3972
+ "sm:border-border-accent": r === "light" && t === Me,
3966
3973
  "border-border-dark": r === "dark" && t === tt,
3967
3974
  "border-border-accent": r === "light" && t === tt
3968
3975
  }),
@@ -3977,7 +3984,7 @@ const Be = "panel", tt = "messagebox", zs = ({
3977
3984
  children: a,
3978
3985
  footer: n,
3979
3986
  borderMode: o = "light",
3980
- kind: i = Be,
3987
+ kind: i = Me,
3981
3988
  className: s
3982
3989
  }) => {
3983
3990
  const c = A(""), d = zs({ className: s, kind: i, borderMode: o });
@@ -4050,12 +4057,12 @@ const Be = "panel", tt = "messagebox", zs = ({
4050
4057
  ), Fs = ({
4051
4058
  className: e
4052
4059
  }) => {
4053
- const { state: t, dispatch: r } = z(me), [a, n] = Z(!1), [o, i] = Mt({
4060
+ const { state: t, dispatch: r } = z(de), [a, n] = Z(!1), [o, i] = Mt({
4054
4061
  key: At + vn,
4055
4062
  initialValue: ""
4056
4063
  }), s = () => {
4057
4064
  r({
4058
- type: Ue,
4065
+ type: Ie,
4059
4066
  payload: {
4060
4067
  private: !(t != null && t.private)
4061
4068
  }
@@ -4133,7 +4140,7 @@ const Be = "panel", tt = "messagebox", zs = ({
4133
4140
  focusMode: i = "system",
4134
4141
  ...s
4135
4142
  }, c) => {
4136
- const [d, h] = Z(!1), [m, u] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Pn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
4143
+ const [d, h] = Z(!1), [u, m] = Z(!1), [g, p] = Z(null), b = A([]), v = A([]), y = z(Yt), k = wa(), w = Pn(), _ = _a(), { floatingStyles: x, refs: T, context: S } = ba({
4137
4144
  nodeId: w,
4138
4145
  open: d,
4139
4146
  onOpenChange: (H) => {
@@ -4167,7 +4174,7 @@ const Be = "panel", tt = "messagebox", zs = ({
4167
4174
  ...Y,
4168
4175
  "aria-label": r,
4169
4176
  "data-open": d ? "" : void 0,
4170
- "data-focus-inside": m ? "" : void 0,
4177
+ "data-focus-inside": u ? "" : void 0,
4171
4178
  ref: tr([T.setReference, _.ref, c]),
4172
4179
  ...$(
4173
4180
  y.getItemProps({
@@ -4196,7 +4203,7 @@ const Be = "panel", tt = "messagebox", zs = ({
4196
4203
  activeIndex: g,
4197
4204
  setActiveIndex: p,
4198
4205
  getItemProps: Q,
4199
- setHasFocusInside: u,
4206
+ setHasFocusInside: m,
4200
4207
  isOpen: d
4201
4208
  },
4202
4209
  children: /* @__PURE__ */ l(jn, { elementsRef: b, labelsRef: v, children: d && /* @__PURE__ */ l(ha, { children: /* @__PURE__ */ l(
@@ -4237,7 +4244,7 @@ const ot = G.forwardRef(
4237
4244
  ...s
4238
4245
  }, c) => {
4239
4246
  let d = "";
4240
- const h = G.useContext(Yt), m = _a({ label: t ? null : e }), u = wa(), g = tr([m.ref, c]);
4247
+ const h = G.useContext(Yt), u = _a({ label: t ? null : e }), m = wa(), g = tr([u.ref, c]);
4241
4248
  if (a && n)
4242
4249
  return /* @__PURE__ */ l(
4243
4250
  "div",
@@ -4246,7 +4253,7 @@ const ot = G.forwardRef(
4246
4253
  ...h.getItemProps({
4247
4254
  onClick(b) {
4248
4255
  var v;
4249
- o || ((v = s.onClick) == null || v.call(s, b), u == null || u.events.emit("click"));
4256
+ o || ((v = s.onClick) == null || v.call(s, b), m == null || m.events.emit("click"));
4250
4257
  }
4251
4258
  }),
4252
4259
  children: n
@@ -4273,7 +4280,7 @@ const ot = G.forwardRef(
4273
4280
  ...h.getItemProps({
4274
4281
  onClick(b) {
4275
4282
  var v;
4276
- o || ((v = s.onClick) == null || v.call(s, b), u == null || u.events.emit("click"));
4283
+ o || ((v = s.onClick) == null || v.call(s, b), m == null || m.events.emit("click"));
4277
4284
  },
4278
4285
  onFocus(b) {
4279
4286
  var v;
@@ -4324,22 +4331,27 @@ const Ws = (e) => {
4324
4331
  className: e,
4325
4332
  defaultPlacement: t = "top-start"
4326
4333
  }) => {
4327
- const { dispatch: r } = z(ut), { getAccessToken: a, user: n } = Fe(), {
4328
- data: o,
4329
- error: i,
4330
- isLoading: s
4334
+ const { dispatch: r } = z(de), { dispatch: a } = z(ut), { getAccessToken: n, user: o } = Fe(), {
4335
+ data: i,
4336
+ error: s,
4337
+ isLoading: c
4331
4338
  } = lr({
4332
- keys: [n == null ? void 0 : n.username],
4333
- getAccessToken: a
4334
- }), c = (d, h) => {
4335
- d.preventDefault(), r({
4339
+ keys: [o == null ? void 0 : o.username],
4340
+ getAccessToken: n
4341
+ }), d = (h, u, m) => {
4342
+ h.preventDefault(), m && r({
4343
+ type: Ie,
4344
+ payload: {
4345
+ private: !0
4346
+ }
4347
+ }), a({
4336
4348
  type: ua,
4337
4349
  payload: {
4338
- prompt: h
4350
+ prompt: u
4339
4351
  }
4340
4352
  });
4341
4353
  };
4342
- return i || s ? null : o && o.tags && Ws(o.tags) && /* @__PURE__ */ l(
4354
+ return s || c ? null : i && i.tags && Ws(i.tags) && /* @__PURE__ */ l(
4343
4355
  Ke,
4344
4356
  {
4345
4357
  label: "Custom Prompts",
@@ -4354,13 +4366,17 @@ const Ws = (e) => {
4354
4366
  defaultPlacement: t,
4355
4367
  children: [
4356
4368
  /* @__PURE__ */ l(an, { children: "Prompts" }),
4357
- o && o.tags && o.tags.map((d) => d.enabled && d.label && d.content && /* @__PURE__ */ l(
4369
+ i && i.tags && i.tags.map((h) => h.enabled && h.label && h.content && /* @__PURE__ */ l(
4358
4370
  ot,
4359
4371
  {
4360
- label: d.label,
4361
- onClick: (h) => c(h, d.content)
4372
+ label: h.label,
4373
+ onClick: (u) => d(
4374
+ u,
4375
+ h.content,
4376
+ h == null ? void 0 : h.privateChat
4377
+ )
4362
4378
  },
4363
- `prompt-button-${d.slot}`
4379
+ `prompt-button-${h.slot}`
4364
4380
  ))
4365
4381
  ]
4366
4382
  }
@@ -4370,7 +4386,7 @@ const Ws = (e) => {
4370
4386
  }, js = ({
4371
4387
  className: e
4372
4388
  }) => {
4373
- const { state: t } = z(me);
4389
+ const { state: t } = z(de);
4374
4390
  return /* @__PURE__ */ l(
4375
4391
  Ke,
4376
4392
  {
@@ -4396,7 +4412,7 @@ const Ws = (e) => {
4396
4412
  }, qs = ({
4397
4413
  className: e
4398
4414
  }) => {
4399
- const { state: t, dispatch: r } = z(me), { getAccessToken: a, user: n } = Fe(), {
4415
+ const { state: t, dispatch: r } = z(de), { getAccessToken: a, user: n } = Fe(), {
4400
4416
  data: o,
4401
4417
  error: i,
4402
4418
  isLoading: s,
@@ -4414,7 +4430,7 @@ const Ws = (e) => {
4414
4430
  engine: h
4415
4431
  }
4416
4432
  }), c({ ...o }), t && r({
4417
- type: Ue,
4433
+ type: Ie,
4418
4434
  payload: {
4419
4435
  engine: h
4420
4436
  }
@@ -4498,7 +4514,7 @@ const Ws = (e) => {
4498
4514
  ref: i,
4499
4515
  ...s
4500
4516
  }) => {
4501
- const { state: m } = z(me), { state: u } = z(ut), g = A(null), p = A(null), b = co([i, p]), v = mo(), y = Zs({
4517
+ const { state: u } = z(de), { state: m } = z(ut), g = A(null), p = A(null), b = co([i, p]), v = mo(), y = Zs({
4502
4518
  className: e
4503
4519
  }), [k, w] = uo({
4504
4520
  value: r,
@@ -4527,12 +4543,12 @@ const Ws = (e) => {
4527
4543
  w(S.target.value), _();
4528
4544
  };
4529
4545
  return M(() => {
4530
- m && m.usage === 0 && m.messages.length === 0 && p.current && (p.current.style.height = "24px");
4531
- }, [m]), M(() => {
4532
- u.lastTriggeredTimestamp && setTimeout(() => {
4546
+ u && u.usage === 0 && u.messages.length === 0 && p.current && (p.current.style.height = "24px");
4547
+ }, [u]), M(() => {
4548
+ m.lastTriggeredTimestamp && setTimeout(() => {
4533
4549
  _();
4534
4550
  }, 100);
4535
- }, [u.lastTriggeredTimestamp, _]), /* @__PURE__ */ l(
4551
+ }, [m.lastTriggeredTimestamp, _]), /* @__PURE__ */ l(
4536
4552
  "div",
4537
4553
  {
4538
4554
  className: y.wrapper,
@@ -4574,7 +4590,7 @@ const Ws = (e) => {
4574
4590
  });
4575
4591
  }, na = (e) => {
4576
4592
  Jt(e, !1), e({
4577
- type: Me,
4593
+ type: Ve,
4578
4594
  payload: {
4579
4595
  message: {
4580
4596
  role: Qt,
@@ -4583,18 +4599,18 @@ const Ws = (e) => {
4583
4599
  }
4584
4600
  });
4585
4601
  }, el = () => {
4586
- const { state: e, dispatch: t } = z(me), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
4602
+ const { state: e, dispatch: t } = z(de), { state: r, dispatch: a } = z(ut), [n, o] = Z(""), { getAccessToken: i, user: s } = Fe(), c = A(null), d = A(
4587
4603
  null
4588
4604
  );
4589
4605
  M(() => {
4590
4606
  (async () => {
4591
- var u;
4607
+ var m;
4592
4608
  if (!e || e.messages.length === 0) {
4593
- (u = d == null ? void 0 : d.current) == null || u.cancel();
4609
+ (m = d == null ? void 0 : d.current) == null || m.cancel();
4594
4610
  return;
4595
4611
  }
4596
- const m = e.messages[e.messages.length - 1];
4597
- if (!(e.messages.length === 0 || m.message.role === Ve || m.message.role === wn || m.message.role === Qt || m.message.role === _n))
4612
+ const u = e.messages[e.messages.length - 1];
4613
+ if (!(e.messages.length === 0 || u.message.role === Pe || u.message.role === wn || u.message.role === Qt || u.message.role === _n))
4598
4614
  try {
4599
4615
  const g = await xi({
4600
4616
  accessToken: await i(),
@@ -4629,11 +4645,11 @@ const Ws = (e) => {
4629
4645
  usage: x.usage
4630
4646
  }
4631
4647
  }), t({
4632
- type: Me,
4648
+ type: Ve,
4633
4649
  payload: {
4634
4650
  message: {
4635
4651
  content: _,
4636
- role: Ve,
4652
+ role: Pe,
4637
4653
  messageId: p,
4638
4654
  processingTime: x.processingTime,
4639
4655
  name: x.name
@@ -4643,11 +4659,11 @@ const Ws = (e) => {
4643
4659
  break;
4644
4660
  } else
4645
4661
  t({
4646
- type: Me,
4662
+ type: Ve,
4647
4663
  payload: {
4648
4664
  message: {
4649
4665
  content: k,
4650
- role: Ve,
4666
+ role: Pe,
4651
4667
  messageId: p
4652
4668
  }
4653
4669
  }
@@ -4661,9 +4677,9 @@ const Ws = (e) => {
4661
4677
  }
4662
4678
  })();
4663
4679
  }, [e == null ? void 0 : e.messages]);
4664
- const h = async (m) => {
4665
- m.preventDefault(), t({
4666
- type: Me,
4680
+ const h = async (u) => {
4681
+ u.preventDefault(), t({
4682
+ type: Ve,
4667
4683
  payload: {
4668
4684
  message: {
4669
4685
  role: $t,
@@ -4674,10 +4690,10 @@ const Ws = (e) => {
4674
4690
  };
4675
4691
  return M(() => {
4676
4692
  if (r.prompt !== "") {
4677
- const m = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
4678
- m.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
4679
- o(m.replace(Lr, g));
4680
- }) : o(m), c.current && c.current.focus(), a({
4693
+ const u = r.prompt.endsWith(":") && !r.prompt.endsWith(": ") ? r.prompt + " " : r.prompt;
4694
+ u.indexOf(Lr) !== -1 ? navigator.clipboard.readText().then((g) => {
4695
+ o(u.replace(Lr, g));
4696
+ }) : o(u), c.current && c.current.focus(), a({
4681
4697
  type: da
4682
4698
  });
4683
4699
  }
@@ -4692,11 +4708,11 @@ const Ws = (e) => {
4692
4708
  onSubmit: h,
4693
4709
  ref: c,
4694
4710
  value: n,
4695
- onChange: (m) => o(m.target.value)
4711
+ onChange: (u) => o(u.target.value)
4696
4712
  }
4697
4713
  ) });
4698
4714
  }, tl = ({ isComponent: e }) => {
4699
- const { state: t } = z(me), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
4715
+ const { state: t } = z(de), r = A(!1), a = window.innerWidth < 403, [n, o] = Z(
4700
4716
  a ? "bottom-4" : e ? "top-[300px]" : "top-[245px]"
4701
4717
  );
4702
4718
  return M(() => {
@@ -5006,20 +5022,20 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
5006
5022
  noBorder: c,
5007
5023
  labelRight: d,
5008
5024
  labelLeft: h,
5009
- noBackground: m,
5010
- variant: u,
5025
+ noBackground: u,
5026
+ variant: m,
5011
5027
  noTruncate: g,
5012
5028
  align: p,
5013
5029
  radius: b
5014
- }) => (u || (u = "primary"), r ? f(oa, t) : f(
5030
+ }) => (m || (m = "primary"), r ? f(oa, t) : f(
5015
5031
  oa,
5016
5032
  il({
5017
5033
  mode: a,
5018
- variant: u,
5019
- noBackground: m,
5034
+ variant: m,
5035
+ noBackground: u,
5020
5036
  noTruncate: g
5021
5037
  }),
5022
- sl({ mode: a, noBackground: m, variant: u }),
5038
+ sl({ mode: a, noBackground: u, variant: m }),
5023
5039
  ll({ radius: b }),
5024
5040
  nl({
5025
5041
  type: e,
@@ -5029,10 +5045,10 @@ const al = "av-bubble", oa = "av-button", bt = "icon", nn = "button", Xt = "link
5029
5045
  align: p
5030
5046
  }),
5031
5047
  ol({ type: e, size: s, labelRight: d, labelLeft: h }),
5032
- ul({ mode: a, variant: u, noBorder: c }),
5048
+ ul({ mode: a, variant: m, noBorder: c }),
5033
5049
  ml({ focusMode: n }),
5034
- cl({ mode: a, variant: u, disabled: o }),
5035
- dl({ mode: a, variant: u, disabled: o }),
5050
+ cl({ mode: a, variant: m, disabled: o }),
5051
+ dl({ mode: a, variant: m, disabled: o }),
5036
5052
  {
5037
5053
  "w-full": i,
5038
5054
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -5068,8 +5084,8 @@ const sn = V.forwardRef(
5068
5084
  noBorder: c = !1,
5069
5085
  "aria-label": d,
5070
5086
  label: h,
5071
- size: m = "medium",
5072
- labelRight: u,
5087
+ size: u = "medium",
5088
+ labelRight: m,
5073
5089
  labelLeft: g,
5074
5090
  noBackground: p = !1,
5075
5091
  align: b = "center",
@@ -5087,8 +5103,8 @@ const sn = V.forwardRef(
5087
5103
  raw: s,
5088
5104
  className: o,
5089
5105
  noBorder: c,
5090
- size: m,
5091
- labelRight: u,
5106
+ size: u,
5107
+ labelRight: m,
5092
5108
  labelLeft: g,
5093
5109
  noBackground: p,
5094
5110
  align: b,
@@ -5107,7 +5123,7 @@ const sn = V.forwardRef(
5107
5123
  children: [
5108
5124
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
5109
5125
  /* @__PURE__ */ l("div", { className: T, children: e }),
5110
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
5126
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
5111
5127
  ]
5112
5128
  }
5113
5129
  );
@@ -5140,8 +5156,8 @@ const hl = V.forwardRef(
5140
5156
  noBorder: c = !1,
5141
5157
  "aria-label": d,
5142
5158
  label: h,
5143
- size: m = "medium",
5144
- labelRight: u,
5159
+ size: u = "medium",
5160
+ labelRight: m,
5145
5161
  labelLeft: g,
5146
5162
  noBackground: p = !1,
5147
5163
  align: b = "center",
@@ -5158,8 +5174,8 @@ const hl = V.forwardRef(
5158
5174
  raw: s,
5159
5175
  className: o,
5160
5176
  noBorder: c,
5161
- size: m,
5162
- labelRight: u,
5177
+ size: u,
5178
+ labelRight: m,
5163
5179
  labelLeft: g,
5164
5180
  noBackground: p,
5165
5181
  align: b,
@@ -5198,7 +5214,7 @@ const hl = V.forwardRef(
5198
5214
  children: [
5199
5215
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
5200
5216
  /* @__PURE__ */ l("div", { className: x, children: e }),
5201
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
5217
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
5202
5218
  ]
5203
5219
  }
5204
5220
  ) });
@@ -5361,7 +5377,7 @@ const yl = ({
5361
5377
  copyToClipboardMode: s = "system",
5362
5378
  noMaxWidth: c = !1
5363
5379
  }) => {
5364
- const [d, h] = Z(!1), m = wl({ kind: t, className: r, noMaxWidth: c }), u = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5380
+ const [d, h] = Z(!1), u = wl({ kind: t, className: r, noMaxWidth: c }), m = !!o && (typeof o == "function" || typeof o == "string" || typeof e == "string"), g = () => {
5365
5381
  h(!0), typeof o == "function" ? o(e) : typeof o == "string" ? navigator.clipboard.writeText(o) : typeof e == "string" && navigator.clipboard.writeText(e);
5366
5382
  };
5367
5383
  return M(() => {
@@ -5371,17 +5387,17 @@ const yl = ({
5371
5387
  }, 3e3)), () => {
5372
5388
  clearTimeout(p);
5373
5389
  };
5374
- }, [d]), /* @__PURE__ */ E("div", { className: m.wrapper, children: [
5390
+ }, [d]), /* @__PURE__ */ E("div", { className: u.wrapper, children: [
5375
5391
  /* @__PURE__ */ E("div", { children: [
5376
- /* @__PURE__ */ l("div", { className: m.main, children: e }),
5377
- a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className: m.footer, children: [
5392
+ /* @__PURE__ */ l("div", { className: u.main, children: e }),
5393
+ a && Object.keys(a).map((p) => a[p] ? /* @__PURE__ */ l("div", { className: "prose-p:m-0", children: /* @__PURE__ */ E("p", { className: u.footer, children: [
5378
5394
  p,
5379
5395
  ": ",
5380
5396
  a[p]
5381
5397
  ] }) }, `-${p}`) : null),
5382
5398
  n && n
5383
5399
  ] }),
5384
- u && /* @__PURE__ */ l("div", { className: m.copyButton, children: /* @__PURE__ */ l(
5400
+ m && /* @__PURE__ */ l("div", { className: u.copyButton, children: /* @__PURE__ */ l(
5385
5401
  sn,
5386
5402
  {
5387
5403
  noBorder: !0,
@@ -5629,20 +5645,20 @@ const yl = ({
5629
5645
  noBorder: c,
5630
5646
  labelRight: d,
5631
5647
  labelLeft: h,
5632
- noBackground: m,
5633
- variant: u,
5648
+ noBackground: u,
5649
+ variant: m,
5634
5650
  noTruncate: g,
5635
5651
  align: p,
5636
5652
  radius: b
5637
- }) => (u || (u = "primary"), r ? f(ia, t) : f(
5653
+ }) => (m || (m = "primary"), r ? f(ia, t) : f(
5638
5654
  ia,
5639
5655
  Sl({
5640
5656
  mode: a,
5641
- variant: u,
5642
- noBackground: m,
5657
+ variant: m,
5658
+ noBackground: u,
5643
5659
  noTruncate: g
5644
5660
  }),
5645
- Nl({ mode: a, noBackground: m, variant: u }),
5661
+ Nl({ mode: a, noBackground: u, variant: m }),
5646
5662
  Cl({ radius: b }),
5647
5663
  El({
5648
5664
  type: e,
@@ -5652,10 +5668,10 @@ const yl = ({
5652
5668
  align: p
5653
5669
  }),
5654
5670
  Tl({ type: e, size: s, labelRight: d, labelLeft: h }),
5655
- Ll({ mode: a, variant: u, noBorder: c }),
5671
+ Ll({ mode: a, variant: m, noBorder: c }),
5656
5672
  Ol({ focusMode: n }),
5657
- Rl({ mode: a, variant: u, disabled: o }),
5658
- Il({ mode: a, variant: u, disabled: o }),
5673
+ Rl({ mode: a, variant: m, disabled: o }),
5674
+ Il({ mode: a, variant: m, disabled: o }),
5659
5675
  {
5660
5676
  "w-full": i,
5661
5677
  "disabled:cursor-not-allowed disabled:opacity-50": o
@@ -5691,8 +5707,8 @@ const dn = V.forwardRef(
5691
5707
  noBorder: c = !1,
5692
5708
  variant: d = "primary",
5693
5709
  noTruncate: h = !1,
5694
- radius: m = "large",
5695
- ...u
5710
+ radius: u = "large",
5711
+ ...m
5696
5712
  }, g) => {
5697
5713
  const p = cn({
5698
5714
  type: yr,
@@ -5706,7 +5722,7 @@ const dn = V.forwardRef(
5706
5722
  noBorder: c,
5707
5723
  variant: d,
5708
5724
  noTruncate: h,
5709
- radius: m
5725
+ radius: u
5710
5726
  });
5711
5727
  return /* @__PURE__ */ l(
5712
5728
  vr,
@@ -5714,7 +5730,7 @@ const dn = V.forwardRef(
5714
5730
  ref: g,
5715
5731
  className: p,
5716
5732
  disabled: t,
5717
- ...u,
5733
+ ...m,
5718
5734
  children: e
5719
5735
  }
5720
5736
  );
@@ -5747,8 +5763,8 @@ const $l = V.forwardRef(
5747
5763
  noBorder: c = !1,
5748
5764
  "aria-label": d,
5749
5765
  label: h,
5750
- size: m = "medium",
5751
- labelRight: u,
5766
+ size: u = "medium",
5767
+ labelRight: m,
5752
5768
  labelLeft: g,
5753
5769
  noBackground: p = !1,
5754
5770
  align: b = "center",
@@ -5765,8 +5781,8 @@ const $l = V.forwardRef(
5765
5781
  raw: s,
5766
5782
  className: o,
5767
5783
  noBorder: c,
5768
- size: m,
5769
- labelRight: u,
5784
+ size: u,
5785
+ labelRight: m,
5770
5786
  labelLeft: g,
5771
5787
  noBackground: p,
5772
5788
  align: b,
@@ -5805,7 +5821,7 @@ const $l = V.forwardRef(
5805
5821
  children: [
5806
5822
  g && /* @__PURE__ */ l("span", { className: "pr-2", children: g }),
5807
5823
  /* @__PURE__ */ l("div", { className: x, children: e }),
5808
- u && /* @__PURE__ */ l("span", { className: "pl-2", children: u })
5824
+ m && /* @__PURE__ */ l("span", { className: "pl-2", children: m })
5809
5825
  ]
5810
5826
  }
5811
5827
  ) });
@@ -5871,14 +5887,14 @@ try {
5871
5887
  const sa = fa(
5872
5888
  () => import(
5873
5889
  /* webpackChunkName: "LazyMessageAssistant" */
5874
- "./MessageAssistant.DZZ26s7B.js"
5890
+ "./MessageAssistant.CNnXZvb4.js"
5875
5891
  ).then((e) => e.MessageAssistant)
5876
5892
  ), Pl = () => {
5877
- const { state: e } = z(me);
5893
+ const { state: e } = z(de);
5878
5894
  return /* @__PURE__ */ E("div", { className: "space-y-6 mt-2 @container", children: [
5879
5895
  e && e.messages.length > 0 && e.messages.map((t, r) => {
5880
5896
  const { role: a, content: n, name: o, processingTime: i } = t.message;
5881
- return (a === Ve || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(
5897
+ return (a === Pe || a === Qt) && n ? /* @__PURE__ */ l(Bt, { fallback: /* @__PURE__ */ l("span", {}), children: /* @__PURE__ */ l(sa, { name: o, processingTime: i, children: n }) }, `${r}-${a}`) : a === $t && n ? /* @__PURE__ */ l(
5882
5898
  _l,
5883
5899
  {
5884
5900
  kind: "right",
@@ -5907,7 +5923,7 @@ const sa = fa(
5907
5923
  }, zl = fa(
5908
5924
  () => import(
5909
5925
  /* webpackChunkName: "LazyHeader" */
5910
- "./HeaderToolbar.VQAMrnVQ.js"
5926
+ "./HeaderToolbar.tIMWuB4m.js"
5911
5927
  )
5912
5928
  );
5913
5929
  function un({ isComponent: e = !1 }) {
@@ -5916,7 +5932,7 @@ function un({ isComponent: e = !1 }) {
5916
5932
  initialValue: ""
5917
5933
  }), [n] = Mt({
5918
5934
  key: At + On,
5919
- initialValue: $e.ASC
5935
+ initialValue: Be.ASC
5920
5936
  }), [o, i] = wt(Po, {
5921
5937
  id: or(),
5922
5938
  model: Te,
@@ -5942,7 +5958,7 @@ function un({ isComponent: e = !1 }) {
5942
5958
  ],
5943
5959
  getAccessToken: r
5944
5960
  }), Ti({ getAccessToken: r });
5945
- const { data: m } = lr({
5961
+ const { data: u } = lr({
5946
5962
  keys: [t == null ? void 0 : t.username],
5947
5963
  getAccessToken: r
5948
5964
  });
@@ -5953,13 +5969,13 @@ function un({ isComponent: e = !1 }) {
5953
5969
  (p = document.getElementById("root")) == null || p.classList.replace("app-hidden", "fadeIn");
5954
5970
  }, 500);
5955
5971
  }), M(() => {
5956
- m && i({
5957
- type: Ue,
5972
+ u && i({
5973
+ type: Ie,
5958
5974
  payload: {
5959
- engine: m.engine || Te
5975
+ engine: u.engine || Te
5960
5976
  }
5961
5977
  });
5962
- }, [m]), /* @__PURE__ */ l(me.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ l(
5978
+ }, [u]), /* @__PURE__ */ l(de.Provider, { value: { state: o, dispatch: i }, children: /* @__PURE__ */ l(
5963
5979
  Ci.Provider,
5964
5980
  {
5965
5981
  value: {
@@ -6006,7 +6022,7 @@ un.displayName = "App";
6006
6022
  const rc = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, default: un }, Symbol.toStringTag, { value: "Module" }));
6007
6023
  export {
6008
6024
  rc as App,
6009
- me as AppContext,
6025
+ de as AppContext,
6010
6026
  Hs as ConfirmationPanel,
6011
6027
  Mt as E,
6012
6028
  Ci as HistoryContext,
@@ -6016,7 +6032,7 @@ export {
6016
6032
  We as SERVICE_TYPES,
6017
6033
  Ke as _e,
6018
6034
  Kl as be,
6019
- $e as f,
6035
+ Be as f,
6020
6036
  jl as ge,
6021
6037
  ql as he,
6022
6038
  mo as i,