teodor-new-chat-ui 4.3.472 → 4.3.473

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.
package/dist/index.esm.js CHANGED
@@ -2,12 +2,12 @@ var Mg = Object.defineProperty;
2
2
  var Og = (e, t, n) => t in e ? Mg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var Wl = (e, t, n) => Og(e, typeof t != "symbol" ? t + "" : t, n);
4
4
  import * as m from "react";
5
- import O, { useMemo as $e, createContext as Or, useContext as Dr, useState as de, useRef as Le, useCallback as ae, useEffect as Ze, useReducer as Dg, useLayoutEffect as Lg, createElement as Jo, memo as $g, useImperativeHandle as Fg, forwardRef as Bg, isValidElement as wa } from "react";
5
+ import O, { useMemo as $e, createContext as Or, useContext as Dr, useState as de, useRef as Le, useCallback as ae, useEffect as Ze, useReducer as Dg, useLayoutEffect as Lg, createElement as Jo, memo as $g, useImperativeHandle as Fg, forwardRef as Bg, isValidElement as va } from "react";
6
6
  import { Slot as zg, createSlot as Ir, createSlottable as Hg } from "@radix-ui/react-slot";
7
7
  import { cva as xo } from "class-variance-authority";
8
8
  import { clsx as Ug } from "clsx";
9
9
  import { twMerge as Wg } from "tailwind-merge";
10
- import { ChevronRight as Ou, Check as js, Circle as Vg, Square as Kg, Send as qg, Paperclip as Vl, X as sr, Loader2 as Qn, Plus as Gg, FileSpreadsheet as Yg, ExternalLink as Du, Download as Xg, Image as Jg, FileText as Kl, Loader as ds, Search as Lu, ChevronUp as Ai, ChevronDown as _s, ChevronLeft as Zg, Copy as $u, Edit as Fu, RotateCcw as Bu, Bot as ba, Wrench as Qg, User as ex, Edit3 as vo, Calendar as tx, MoreHorizontal as zu, Share2 as nx, Trash2 as rx, MessageSquare as Hu, Maximize2 as ox, Minimize2 as sx, History as ax } from "lucide-react";
10
+ import { ChevronRight as Ou, Check as As, Circle as Vg, Square as Kg, Send as qg, Paperclip as Vl, X as sr, Loader2 as Qn, Plus as Gg, FileSpreadsheet as Yg, ExternalLink as Du, Download as Xg, Image as Jg, FileText as Kl, Loader as ds, Search as Lu, ChevronUp as Ai, ChevronDown as js, ChevronLeft as Zg, Copy as $u, Edit as Fu, RotateCcw as Bu, Bot as wa, Wrench as Qg, User as ex, Edit3 as vo, Calendar as tx, MoreHorizontal as zu, Share2 as nx, Trash2 as rx, MessageSquare as Hu, Maximize2 as ox, Minimize2 as sx, History as ax } from "lucide-react";
11
11
  import * as wo from "react-dom";
12
12
  import ji from "react-dom";
13
13
  const ql = 120;
@@ -269,7 +269,7 @@ function Yl(e) {
269
269
  const t = Date.parse(e);
270
270
  return Number.isFinite(t) ? t : 0;
271
271
  }
272
- var Ga = { exports: {} }, Kr = {};
272
+ var qa = { exports: {} }, Kr = {};
273
273
  /**
274
274
  * @license React
275
275
  * react-jsx-runtime.production.min.js
@@ -869,15 +869,15 @@ Check the top-level render call using <` + ie + ">.");
869
869
  if (be.call(ne, "key")) {
870
870
  var Gn = q(R), Ht = Object.keys(ne).filter(function(Pg) {
871
871
  return Pg !== "key";
872
- }), va = Ht.length > 0 ? "{key: someKey, " + Ht.join(": ..., ") + ": ...}" : "{key: someKey}";
873
- if (!dt[Gn + va]) {
872
+ }), xa = Ht.length > 0 ? "{key: someKey, " + Ht.join(": ..., ") + ": ...}" : "{key: someKey}";
873
+ if (!dt[Gn + xa]) {
874
874
  var _g = Ht.length > 0 ? "{" + Ht.join(": ..., ") + ": ...}" : "{}";
875
875
  w(`A props object containing a "key" prop is being spread into JSX:
876
876
  let props = %s;
877
877
  <%s {...props} />
878
878
  React keys must be passed directly to JSX without using spread:
879
879
  let props = %s;
880
- <%s key={someKey} {...props} />`, va, Gn, _g, Gn), dt[Gn + va] = !0;
880
+ <%s key={someKey} {...props} />`, xa, Gn, _g, Gn), dt[Gn + xa] = !0;
881
881
  }
882
882
  }
883
883
  return R === r ? ut(yt) : Ge(yt), yt;
@@ -893,8 +893,8 @@ React keys must be passed directly to JSX without using spread:
893
893
  qr.Fragment = r, qr.jsx = pt, qr.jsxs = vn;
894
894
  }()), qr;
895
895
  }
896
- process.env.NODE_ENV === "production" ? Ga.exports = wx() : Ga.exports = bx();
897
- var u = Ga.exports;
896
+ process.env.NODE_ENV === "production" ? qa.exports = wx() : qa.exports = bx();
897
+ var u = qa.exports;
898
898
  const nN = ({
899
899
  timelineEntries: e,
900
900
  activeCheckpointId: t,
@@ -974,10 +974,10 @@ function Wu(e, t) {
974
974
  return e.apply(t, arguments);
975
975
  };
976
976
  }
977
- const { toString: yx } = Object.prototype, { getPrototypeOf: _i } = Object, { iterator: Ps, toStringTag: Vu } = Symbol, Ms = /* @__PURE__ */ ((e) => (t) => {
977
+ const { toString: yx } = Object.prototype, { getPrototypeOf: _i } = Object, { iterator: _s, toStringTag: Vu } = Symbol, Ps = /* @__PURE__ */ ((e) => (t) => {
978
978
  const n = yx.call(t);
979
979
  return e[n] || (e[n] = n.slice(8, -1).toLowerCase());
980
- })(/* @__PURE__ */ Object.create(null)), mn = (e) => (e = e.toLowerCase(), (t) => Ms(t) === e), Os = (e) => (t) => typeof t === e, { isArray: Lr } = Array, Nr = Os("undefined");
980
+ })(/* @__PURE__ */ Object.create(null)), mn = (e) => (e = e.toLowerCase(), (t) => Ps(t) === e), Ms = (e) => (t) => typeof t === e, { isArray: Lr } = Array, Nr = Ms("undefined");
981
981
  function bo(e) {
982
982
  return e !== null && !Nr(e) && e.constructor !== null && !Nr(e.constructor) && Vt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
983
983
  }
@@ -986,11 +986,11 @@ function Sx(e) {
986
986
  let t;
987
987
  return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Ku(e.buffer), t;
988
988
  }
989
- const Tx = Os("string"), Vt = Os("function"), qu = Os("number"), yo = (e) => e !== null && typeof e == "object", Cx = (e) => e === !0 || e === !1, Zo = (e) => {
990
- if (Ms(e) !== "object")
989
+ const Tx = Ms("string"), Vt = Ms("function"), qu = Ms("number"), yo = (e) => e !== null && typeof e == "object", Cx = (e) => e === !0 || e === !1, Zo = (e) => {
990
+ if (Ps(e) !== "object")
991
991
  return !1;
992
992
  const t = _i(e);
993
- return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Vu in e) && !(Ps in e);
993
+ return (t === null || t === Object.prototype || Object.getPrototypeOf(t) === null) && !(Vu in e) && !(_s in e);
994
994
  }, Ex = (e) => {
995
995
  if (!yo(e) || bo(e))
996
996
  return !1;
@@ -1001,7 +1001,7 @@ const Tx = Os("string"), Vt = Os("function"), qu = Os("number"), yo = (e) => e !
1001
1001
  }
1002
1002
  }, kx = mn("Date"), Rx = mn("File"), Ix = mn("Blob"), Nx = mn("FileList"), Ax = (e) => yo(e) && Vt(e.pipe), jx = (e) => {
1003
1003
  let t;
1004
- return e && (typeof FormData == "function" && e instanceof FormData || Vt(e.append) && ((t = Ms(e)) === "formdata" || // detect form-data instance
1004
+ return e && (typeof FormData == "function" && e instanceof FormData || Vt(e.append) && ((t = Ps(e)) === "formdata" || // detect form-data instance
1005
1005
  t === "object" && Vt(e.toString) && e.toString() === "[object FormData]"));
1006
1006
  }, _x = mn("URLSearchParams"), [Px, Mx, Ox, Dx] = ["ReadableStream", "Request", "Response", "Headers"].map(mn), Lx = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
1007
1007
  function So(e, t, { allOwnKeys: n = !1 } = {}) {
@@ -1032,10 +1032,10 @@ function Gu(e, t) {
1032
1032
  return null;
1033
1033
  }
1034
1034
  const Jn = typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : typeof window < "u" ? window : global, Yu = (e) => !Nr(e) && e !== Jn;
1035
- function Ya() {
1035
+ function Ga() {
1036
1036
  const { caseless: e, skipUndefined: t } = Yu(this) && this || {}, n = {}, r = (o, s) => {
1037
1037
  const a = e && Gu(n, s) || s;
1038
- Zo(n[a]) && Zo(o) ? n[a] = Ya(n[a], o) : Zo(o) ? n[a] = Ya({}, o) : Lr(o) ? n[a] = o.slice() : (!t || !Nr(o)) && (n[a] = o);
1038
+ Zo(n[a]) && Zo(o) ? n[a] = Ga(n[a], o) : Zo(o) ? n[a] = Ga({}, o) : Lr(o) ? n[a] = o.slice() : (!t || !Nr(o)) && (n[a] = o);
1039
1039
  };
1040
1040
  for (let o = 0, s = arguments.length; o < s; o++)
1041
1041
  arguments[o] && So(arguments[o], r);
@@ -1071,7 +1071,7 @@ const $x = (e, t, n, { allOwnKeys: r } = {}) => (So(t, (o, s) => {
1071
1071
  n[t] = e[t];
1072
1072
  return n;
1073
1073
  }, Wx = /* @__PURE__ */ ((e) => (t) => e && t instanceof e)(typeof Uint8Array < "u" && _i(Uint8Array)), Vx = (e, t) => {
1074
- const r = (e && e[Ps]).call(e);
1074
+ const r = (e && e[_s]).call(e);
1075
1075
  let o;
1076
1076
  for (; (o = r.next()) && !o.done; ) {
1077
1077
  const s = o.value;
@@ -1119,7 +1119,7 @@ const $x = (e, t, n, { allOwnKeys: r } = {}) => (So(t, (o, s) => {
1119
1119
  }, Zx = () => {
1120
1120
  }, Qx = (e, t) => e != null && Number.isFinite(e = +e) ? e : t;
1121
1121
  function ev(e) {
1122
- return !!(e && Vt(e.append) && e[Vu] === "FormData" && e[Ps]);
1122
+ return !!(e && Vt(e.append) && e[Vu] === "FormData" && e[_s]);
1123
1123
  }
1124
1124
  const tv = (e) => {
1125
1125
  const t = new Array(10), n = (r, o) => {
@@ -1147,7 +1147,7 @@ const tv = (e) => {
1147
1147
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
1148
1148
  typeof setImmediate == "function",
1149
1149
  Vt(Jn.postMessage)
1150
- ), ov = typeof queueMicrotask < "u" ? queueMicrotask.bind(Jn) : typeof process < "u" && process.nextTick || Ju, sv = (e) => e != null && Vt(e[Ps]), V = {
1150
+ ), ov = typeof queueMicrotask < "u" ? queueMicrotask.bind(Jn) : typeof process < "u" && process.nextTick || Ju, sv = (e) => e != null && Vt(e[_s]), V = {
1151
1151
  isArray: Lr,
1152
1152
  isArrayBuffer: Ku,
1153
1153
  isBuffer: bo,
@@ -1174,13 +1174,13 @@ const tv = (e) => {
1174
1174
  isTypedArray: Wx,
1175
1175
  isFileList: Nx,
1176
1176
  forEach: So,
1177
- merge: Ya,
1177
+ merge: Ga,
1178
1178
  extend: $x,
1179
1179
  trim: Lx,
1180
1180
  stripBOM: Fx,
1181
1181
  inherits: Bx,
1182
1182
  toFlatObject: zx,
1183
- kindOf: Ms,
1183
+ kindOf: Ps,
1184
1184
  kindOfTest: mn,
1185
1185
  endsWith: Hx,
1186
1186
  toArray: Ux,
@@ -1260,7 +1260,7 @@ Ae.from = (e, t, n, r, o, s) => {
1260
1260
  return Ae.call(a, i, l, n, r, o), e && a.cause == null && Object.defineProperty(a, "cause", { value: e, configurable: !0 }), a.name = e && e.name || "Error", s && Object.assign(a, s), a;
1261
1261
  };
1262
1262
  const av = null;
1263
- function Xa(e) {
1263
+ function Ya(e) {
1264
1264
  return V.isPlainObject(e) || V.isArray(e);
1265
1265
  }
1266
1266
  function ed(e) {
@@ -1272,12 +1272,12 @@ function Ql(e, t, n) {
1272
1272
  }).join(n ? "." : "") : t;
1273
1273
  }
1274
1274
  function iv(e) {
1275
- return V.isArray(e) && !e.some(Xa);
1275
+ return V.isArray(e) && !e.some(Ya);
1276
1276
  }
1277
1277
  const lv = V.toFlatObject(V, {}, null, function(t) {
1278
1278
  return /^is[A-Z]/.test(t);
1279
1279
  });
1280
- function Ds(e, t, n) {
1280
+ function Os(e, t, n) {
1281
1281
  if (!V.isObject(e))
1282
1282
  throw new TypeError("target must be an object");
1283
1283
  t = t || new FormData(), n = V.toFlatObject(n, {
@@ -1314,12 +1314,12 @@ function Ds(e, t, n) {
1314
1314
  );
1315
1315
  }), !1;
1316
1316
  }
1317
- return Xa(v) ? !0 : (t.append(Ql(x, g, s), c(v)), !1);
1317
+ return Ya(v) ? !0 : (t.append(Ql(x, g, s), c(v)), !1);
1318
1318
  }
1319
1319
  const p = [], h = Object.assign(lv, {
1320
1320
  defaultVisitor: d,
1321
1321
  convertValue: c,
1322
- isVisitable: Xa
1322
+ isVisitable: Ya
1323
1323
  });
1324
1324
  function f(v, g) {
1325
1325
  if (!V.isUndefined(v)) {
@@ -1355,7 +1355,7 @@ function ec(e) {
1355
1355
  });
1356
1356
  }
1357
1357
  function Pi(e, t) {
1358
- this._pairs = [], e && Ds(e, this, t);
1358
+ this._pairs = [], e && Os(e, this, t);
1359
1359
  }
1360
1360
  const td = Pi.prototype;
1361
1361
  td.append = function(t, n) {
@@ -1453,20 +1453,20 @@ const rd = {
1453
1453
  Blob: fv
1454
1454
  },
1455
1455
  protocols: ["http", "https", "file", "blob", "url", "data"]
1456
- }, Mi = typeof window < "u" && typeof document < "u", Ja = typeof navigator == "object" && navigator || void 0, hv = Mi && (!Ja || ["ReactNative", "NativeScript", "NS"].indexOf(Ja.product) < 0), mv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1456
+ }, Mi = typeof window < "u" && typeof document < "u", Xa = typeof navigator == "object" && navigator || void 0, hv = Mi && (!Xa || ["ReactNative", "NativeScript", "NS"].indexOf(Xa.product) < 0), mv = typeof WorkerGlobalScope < "u" && // eslint-disable-next-line no-undef
1457
1457
  self instanceof WorkerGlobalScope && typeof self.importScripts == "function", gv = Mi && window.location.href || "http://localhost", xv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
1458
1458
  __proto__: null,
1459
1459
  hasBrowserEnv: Mi,
1460
1460
  hasStandardBrowserEnv: hv,
1461
1461
  hasStandardBrowserWebWorkerEnv: mv,
1462
- navigator: Ja,
1462
+ navigator: Xa,
1463
1463
  origin: gv
1464
1464
  }, Symbol.toStringTag, { value: "Module" })), Mt = {
1465
1465
  ...xv,
1466
1466
  ...pv
1467
1467
  };
1468
1468
  function vv(e, t) {
1469
- return Ds(e, new Mt.classes.URLSearchParams(), {
1469
+ return Os(e, new Mt.classes.URLSearchParams(), {
1470
1470
  visitor: function(n, r, o, s) {
1471
1471
  return Mt.isNode && V.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1472
1472
  },
@@ -1529,7 +1529,7 @@ const To = {
1529
1529
  return vv(t, this.formSerializer).toString();
1530
1530
  if ((i = V.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1531
1531
  const l = this.env && this.env.FormData;
1532
- return Ds(
1532
+ return Os(
1533
1533
  i ? { "files[]": t } : t,
1534
1534
  l && new l(),
1535
1535
  this.formSerializer
@@ -1619,7 +1619,7 @@ function Cv(e) {
1619
1619
  return t;
1620
1620
  }
1621
1621
  const Ev = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1622
- function ya(e, t, n, r, o) {
1622
+ function ba(e, t, n, r, o) {
1623
1623
  if (V.isFunction(r))
1624
1624
  return r.call(this, t, n);
1625
1625
  if (o && (t = n), !!V.isString(t)) {
@@ -1693,7 +1693,7 @@ let Kt = class {
1693
1693
  has(t, n) {
1694
1694
  if (t = Gr(t), t) {
1695
1695
  const r = V.findKey(this, t);
1696
- return !!(r && this[r] !== void 0 && (!n || ya(this, this[r], r, n)));
1696
+ return !!(r && this[r] !== void 0 && (!n || ba(this, this[r], r, n)));
1697
1697
  }
1698
1698
  return !1;
1699
1699
  }
@@ -1703,7 +1703,7 @@ let Kt = class {
1703
1703
  function s(a) {
1704
1704
  if (a = Gr(a), a) {
1705
1705
  const i = V.findKey(r, a);
1706
- i && (!n || ya(r, r[i], i, n)) && (delete r[i], o = !0);
1706
+ i && (!n || ba(r, r[i], i, n)) && (delete r[i], o = !0);
1707
1707
  }
1708
1708
  }
1709
1709
  return V.isArray(t) ? t.forEach(s) : s(t), o;
@@ -1713,7 +1713,7 @@ let Kt = class {
1713
1713
  let r = n.length, o = !1;
1714
1714
  for (; r--; ) {
1715
1715
  const s = n[r];
1716
- (!t || ya(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1716
+ (!t || ba(this, this[s], s, t, !0)) && (delete this[s], o = !0);
1717
1717
  }
1718
1718
  return o;
1719
1719
  }
@@ -1780,7 +1780,7 @@ V.reduceDescriptors(Kt.prototype, ({ value: e }, t) => {
1780
1780
  };
1781
1781
  });
1782
1782
  V.freezeMethods(Kt);
1783
- function Sa(e, t) {
1783
+ function ya(e, t) {
1784
1784
  const n = this || To, r = t || n, o = Kt.from(r.headers);
1785
1785
  let s = r.data;
1786
1786
  return V.forEach(e, function(i) {
@@ -2285,14 +2285,14 @@ const ld = (e) => {
2285
2285
  return c;
2286
2286
  };
2287
2287
  cd();
2288
- const Za = {
2288
+ const Ja = {
2289
2289
  http: av,
2290
2290
  xhr: Dv,
2291
2291
  fetch: {
2292
2292
  get: cd
2293
2293
  }
2294
2294
  };
2295
- V.forEach(Za, (e, t) => {
2295
+ V.forEach(Ja, (e, t) => {
2296
2296
  if (e) {
2297
2297
  try {
2298
2298
  Object.defineProperty(e, "name", { value: t });
@@ -2310,7 +2310,7 @@ const dc = (e) => `- ${e}`, Wv = (e) => V.isFunction(e) || e === null || e === !
2310
2310
  for (let a = 0; a < n; a++) {
2311
2311
  r = e[a];
2312
2312
  let i;
2313
- if (o = r, !Wv(r) && (o = Za[(i = String(r)).toLowerCase()], o === void 0))
2313
+ if (o = r, !Wv(r) && (o = Ja[(i = String(r)).toLowerCase()], o === void 0))
2314
2314
  throw new Ae(`Unknown adapter '${i}'`);
2315
2315
  if (o && (V.isFunction(o) || (o = o.get(t))))
2316
2316
  break;
@@ -2330,38 +2330,38 @@ const dc = (e) => `- ${e}`, Wv = (e) => V.isFunction(e) || e === null || e === !
2330
2330
  }
2331
2331
  return o;
2332
2332
  },
2333
- adapters: Za
2333
+ adapters: Ja
2334
2334
  };
2335
- function Ta(e) {
2335
+ function Sa(e) {
2336
2336
  if (e.cancelToken && e.cancelToken.throwIfRequested(), e.signal && e.signal.aborted)
2337
2337
  throw new $r(null, e);
2338
2338
  }
2339
2339
  function fc(e) {
2340
- return Ta(e), e.headers = Kt.from(e.headers), e.data = Sa.call(
2340
+ return Sa(e), e.headers = Kt.from(e.headers), e.data = ya.call(
2341
2341
  e,
2342
2342
  e.transformRequest
2343
2343
  ), ["post", "put", "patch"].indexOf(e.method) !== -1 && e.headers.setContentType("application/x-www-form-urlencoded", !1), ud.getAdapter(e.adapter || To.adapter, e)(e).then(function(r) {
2344
- return Ta(e), r.data = Sa.call(
2344
+ return Sa(e), r.data = ya.call(
2345
2345
  e,
2346
2346
  e.transformResponse,
2347
2347
  r
2348
2348
  ), r.headers = Kt.from(r.headers), r;
2349
2349
  }, function(r) {
2350
- return sd(r) || (Ta(e), r && r.response && (r.response.data = Sa.call(
2350
+ return sd(r) || (Sa(e), r && r.response && (r.response.data = ya.call(
2351
2351
  e,
2352
2352
  e.transformResponse,
2353
2353
  r.response
2354
2354
  ), r.response.headers = Kt.from(r.response.headers))), Promise.reject(r);
2355
2355
  });
2356
2356
  }
2357
- const dd = "1.12.2", Ls = {};
2357
+ const dd = "1.12.2", Ds = {};
2358
2358
  ["object", "boolean", "number", "function", "string", "symbol"].forEach((e, t) => {
2359
- Ls[e] = function(r) {
2359
+ Ds[e] = function(r) {
2360
2360
  return typeof r === e || "a" + (t < 1 ? "n " : " ") + e;
2361
2361
  };
2362
2362
  });
2363
2363
  const pc = {};
2364
- Ls.transitional = function(t, n, r) {
2364
+ Ds.transitional = function(t, n, r) {
2365
2365
  function o(s, a) {
2366
2366
  return "[Axios v" + dd + "] Transitional option '" + s + "'" + a + (r ? ". " + r : "");
2367
2367
  }
@@ -2379,7 +2379,7 @@ Ls.transitional = function(t, n, r) {
2379
2379
  )), t ? t(s, a, i) : !0;
2380
2380
  };
2381
2381
  };
2382
- Ls.spelling = function(t) {
2382
+ Ds.spelling = function(t) {
2383
2383
  return (n, r) => (console.warn(`${r} is likely a misspelling of ${t}`), !0);
2384
2384
  };
2385
2385
  function Vv(e, t, n) {
@@ -2401,7 +2401,7 @@ function Vv(e, t, n) {
2401
2401
  }
2402
2402
  const es = {
2403
2403
  assertOptions: Vv,
2404
- validators: Ls
2404
+ validators: Ds
2405
2405
  }, wn = es.validators;
2406
2406
  let tr = class {
2407
2407
  constructor(t) {
@@ -2608,7 +2608,7 @@ function qv(e) {
2608
2608
  function Gv(e) {
2609
2609
  return V.isObject(e) && e.isAxiosError === !0;
2610
2610
  }
2611
- const Qa = {
2611
+ const Za = {
2612
2612
  Continue: 100,
2613
2613
  SwitchingProtocols: 101,
2614
2614
  Processing: 102,
@@ -2673,8 +2673,8 @@ const Qa = {
2673
2673
  NotExtended: 510,
2674
2674
  NetworkAuthenticationRequired: 511
2675
2675
  };
2676
- Object.entries(Qa).forEach(([e, t]) => {
2677
- Qa[t] = e;
2676
+ Object.entries(Za).forEach(([e, t]) => {
2677
+ Za[t] = e;
2678
2678
  });
2679
2679
  function pd(e) {
2680
2680
  const t = new tr(e), n = Wu(tr.prototype.request, t);
@@ -2688,7 +2688,7 @@ wt.CanceledError = $r;
2688
2688
  wt.CancelToken = Kv;
2689
2689
  wt.isCancel = sd;
2690
2690
  wt.VERSION = dd;
2691
- wt.toFormData = Ds;
2691
+ wt.toFormData = Os;
2692
2692
  wt.AxiosError = Ae;
2693
2693
  wt.Cancel = wt.CanceledError;
2694
2694
  wt.all = function(t) {
@@ -2700,7 +2700,7 @@ wt.mergeConfig = ar;
2700
2700
  wt.AxiosHeaders = Kt;
2701
2701
  wt.formToJSON = (e) => od(V.isHTMLForm(e) ? new FormData(e) : e);
2702
2702
  wt.getAdapter = ud.getAdapter;
2703
- wt.HttpStatusCode = Qa;
2703
+ wt.HttpStatusCode = Za;
2704
2704
  wt.default = wt;
2705
2705
  const {
2706
2706
  Axios: sN,
@@ -2725,15 +2725,15 @@ function An(e) {
2725
2725
  return n ? n.endsWith("/chat") ? n : `${n}/chat` : "/api/chat";
2726
2726
  }
2727
2727
  let ps = null;
2728
- const ei = /* @__PURE__ */ new Set();
2728
+ const Qa = /* @__PURE__ */ new Set();
2729
2729
  function Yv() {
2730
2730
  return ps;
2731
2731
  }
2732
- function ti(e) {
2733
- ps = e, ei.forEach((t) => t(e));
2732
+ function ei(e) {
2733
+ ps = e, Qa.forEach((t) => t(e));
2734
2734
  }
2735
2735
  function Xv(e) {
2736
- return ei.add(e), () => ei.delete(e);
2736
+ return Qa.add(e), () => Qa.delete(e);
2737
2737
  }
2738
2738
  const Jv = 3e4, Zv = 9e4, an = wt.create({
2739
2739
  // Only set baseURL when configured — do NOT fall back to localhost. Falling back causes
@@ -2748,7 +2748,7 @@ an.interceptors.response.use(
2748
2748
  if (typeof window < "u" && (e != null && e.data))
2749
2749
  try {
2750
2750
  const t = e.data, n = t.data || {}, r = typeof t.token == "string" && t.token || typeof n.token == "string" && n.token || null, o = typeof t.expires_at == "number" && t.expires_at || typeof n.expires_at == "number" && n.expires_at || typeof t.expiresAt == "number" && t.expiresAt || typeof n.expiresAt == "number" && n.expiresAt || null;
2751
- r && (localStorage.setItem("authToken", r), ti(r)), o && localStorage.setItem("authTokenExpiresAt", o.toString()), (r || o) && window.dispatchEvent(
2751
+ r && (localStorage.setItem("authToken", r), ei(r)), o && localStorage.setItem("authTokenExpiresAt", o.toString()), (r || o) && window.dispatchEvent(
2752
2752
  new CustomEvent("smartorg:chat-token-updated", {
2753
2753
  detail: { token: r, expiresAt: o }
2754
2754
  })
@@ -2763,7 +2763,7 @@ an.interceptors.response.use(
2763
2763
  async function nn(e, t) {
2764
2764
  return an.defaults.baseURL ? (await an.get(e, t)).data : Promise.reject(new Error("API base URL is not configured"));
2765
2765
  }
2766
- async function Ca(e, t, n) {
2766
+ async function Ta(e, t, n) {
2767
2767
  return an.defaults.baseURL ? (await an.post(e, t, n)).data : Promise.reject(new Error("API base URL is not configured"));
2768
2768
  }
2769
2769
  async function Qv(e, t, n) {
@@ -2782,14 +2782,14 @@ class Oi {
2782
2782
  return t ? An(String(t)) : "";
2783
2783
  }
2784
2784
  updateConfig(t) {
2785
- t.baseUrl && (an.defaults.baseURL = An(String(t.baseUrl))), t.authToken !== void 0 && ti(t.authToken);
2785
+ t.baseUrl && (an.defaults.baseURL = An(String(t.baseUrl))), t.authToken !== void 0 && ei(t.authToken);
2786
2786
  }
2787
2787
  // ---- Token Management ----
2788
2788
  getAuthToken() {
2789
2789
  return Yv();
2790
2790
  }
2791
2791
  setAuthToken(t) {
2792
- ti(t);
2792
+ ei(t);
2793
2793
  }
2794
2794
  onTokenChange(t) {
2795
2795
  return Xv(t);
@@ -2804,7 +2804,7 @@ class Oi {
2804
2804
  return (n == null ? void 0 : n.items) ?? (t == null ? void 0 : t.items) ?? [];
2805
2805
  }
2806
2806
  async createThread(t) {
2807
- const r = await Ca("/threads", t ? { title: t } : void 0);
2807
+ const r = await Ta("/threads", t ? { title: t } : void 0);
2808
2808
  return Ut(r);
2809
2809
  }
2810
2810
  async updateThread(t, n) {
@@ -2816,7 +2816,7 @@ class Oi {
2816
2816
  return Ut(n);
2817
2817
  }
2818
2818
  async shareThread(t, n) {
2819
- const r = await Ca(`/threads/${t}/share`, {
2819
+ const r = await Ta(`/threads/${t}/share`, {
2820
2820
  shared_with_user_id: n
2821
2821
  });
2822
2822
  return Ut(r);
@@ -2861,7 +2861,7 @@ class Oi {
2861
2861
  }
2862
2862
  // ---- Run Management ----
2863
2863
  async cancelRun(t) {
2864
- const n = await Ca("/runs/cancel", { threadId: t });
2864
+ const n = await Ta("/runs/cancel", { threadId: t });
2865
2865
  return Ut(n);
2866
2866
  }
2867
2867
  async unshareThread(t, n) {
@@ -2960,7 +2960,7 @@ async function ow(e = []) {
2960
2960
  }
2961
2961
  return { contentParts: t, filesInfo: n };
2962
2962
  }
2963
- function $s() {
2963
+ function Ls() {
2964
2964
  const e = Dr(hd);
2965
2965
  if (!e) throw new Error("useApi must be used within ApiProvider");
2966
2966
  return e;
@@ -2968,7 +2968,7 @@ function $s() {
2968
2968
  function sw(e) {
2969
2969
  return !!e && typeof e == "object" && "data" in e;
2970
2970
  }
2971
- function Ea(e) {
2971
+ function Ca(e) {
2972
2972
  return e.filter((t) => {
2973
2973
  var a;
2974
2974
  if (t.role !== "assistant") return !0;
@@ -3562,7 +3562,7 @@ function pw({
3562
3562
  onError: n,
3563
3563
  onThreadChange: r
3564
3564
  }) {
3565
- const { api: o } = $s(), {
3565
+ const { api: o } = Ls(), {
3566
3566
  threads: s,
3567
3567
  currentThreadId: a,
3568
3568
  setCurrentThreadId: i,
@@ -3809,7 +3809,7 @@ function Cw(e, t) {
3809
3809
  switch (t.type) {
3810
3810
  case "reset":
3811
3811
  return {
3812
- messages: Ea(((n = t.payload) == null ? void 0 : n.messages) ?? []),
3812
+ messages: Ca(((n = t.payload) == null ? void 0 : n.messages) ?? []),
3813
3813
  assemblingId: null,
3814
3814
  lastCheckpointId: null,
3815
3815
  lastCheckpointNs: null,
@@ -3828,7 +3828,7 @@ function Cw(e, t) {
3828
3828
  return { ...e, messages: [...e.messages, r] };
3829
3829
  }
3830
3830
  case "seed": {
3831
- const r = Ea(t.payload.messages), o = {
3831
+ const r = Ca(t.payload.messages), o = {
3832
3832
  ...e,
3833
3833
  messages: r,
3834
3834
  // REPLACE with incoming messages (don't merge with existing)
@@ -3839,7 +3839,7 @@ function Cw(e, t) {
3839
3839
  return Object.prototype.hasOwnProperty.call(t.payload, "checkpointId") && (o.lastCheckpointId = t.payload.checkpointId ?? null), Object.prototype.hasOwnProperty.call(t.payload, "checkpointNs") && (o.lastCheckpointNs = t.payload.checkpointNs ?? null), o;
3840
3840
  }
3841
3841
  case "prepend": {
3842
- const r = Ea(t.payload.messages);
3842
+ const r = Ca(t.payload.messages);
3843
3843
  if (!r.length)
3844
3844
  return e;
3845
3845
  const o = new Set(e.messages.map((i) => i.id)), s = r.filter((i) => !o.has(i.id));
@@ -4316,7 +4316,7 @@ function Aw({
4316
4316
  };
4317
4317
  }
4318
4318
  const Td = Or(null), Cd = Or(null);
4319
- function Fs() {
4319
+ function $s() {
4320
4320
  const e = Dr(Td);
4321
4321
  if (!e) throw new Error("useThreadState must be used within a ThreadStateProvider");
4322
4322
  return e;
@@ -4336,7 +4336,7 @@ function _w({
4336
4336
  isStreaming: s,
4337
4337
  onError: a
4338
4338
  }) {
4339
- const { api: i } = $s(), { currentThreadId: l } = Eo(), { state: c, seed: d, prepend: p, pushUser: h, onEvent: f } = Ew(), {
4339
+ const { api: i } = Ls(), { currentThreadId: l } = Eo(), { state: c, seed: d, prepend: p, pushUser: h, onEvent: f } = Ew(), {
4340
4340
  threadCheckpoints: v,
4341
4341
  threadTimeline: g,
4342
4342
  checkpointIndex: x,
@@ -4497,7 +4497,7 @@ function Dw({
4497
4497
  onConnectionError: l,
4498
4498
  onToolEnd: c
4499
4499
  }) {
4500
- const { api: d, baseUrl: p } = $s(), h = $e(() => An(p), [p]), { stream: f, stop: v, isStreaming: g, error: x, setToken: b } = cw({ baseUrl: h }), [w, y] = de(!1);
4500
+ const { api: d, baseUrl: p } = Ls(), h = $e(() => An(p), [p]), { stream: f, stop: v, isStreaming: g, error: x, setToken: b } = cw({ baseUrl: h }), [w, y] = de(!1);
4501
4501
  return Ze(() => {
4502
4502
  y(g);
4503
4503
  }, [g]), /* @__PURE__ */ u.jsx(
@@ -4550,7 +4550,7 @@ function Lw({
4550
4550
  resetHistoryState: C,
4551
4551
  pushUser: S,
4552
4552
  onEvent: T
4553
- } = Fs(), { registerClearThread: E, registerRespondToInterrupt: N } = jw(), A = ae(
4553
+ } = $s(), { registerClearThread: E, registerRespondToInterrupt: N } = jw(), A = ae(
4554
4554
  (B) => {
4555
4555
  v(B), f.current !== B.threadId && ((B.created ?? !f.current) && w(B.threadId), y(B.threadId), h(B.threadId));
4556
4556
  },
@@ -5053,7 +5053,7 @@ var Zw = [
5053
5053
  function Bi(e, t) {
5054
5054
  e && wo.flushSync(() => e.dispatchEvent(t));
5055
5055
  }
5056
- function Bs(e) {
5056
+ function Fs(e) {
5057
5057
  const t = e + "CollectionProvider", [n, r] = gn(t), [o, s] = n(
5058
5058
  t,
5059
5059
  { collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
@@ -5094,7 +5094,7 @@ function Bs(e) {
5094
5094
  ];
5095
5095
  }
5096
5096
  var Qw = m.createContext(void 0);
5097
- function zs(e) {
5097
+ function Bs(e) {
5098
5098
  const t = m.useContext(Qw);
5099
5099
  return e || t || "ltr";
5100
5100
  }
@@ -5116,7 +5116,7 @@ function eb(e, t = globalThis == null ? void 0 : globalThis.document) {
5116
5116
  return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
5117
5117
  }, [n, t]);
5118
5118
  }
5119
- var tb = "DismissableLayer", ni = "dismissableLayer.update", nb = "dismissableLayer.pointerDownOutside", rb = "dismissableLayer.focusOutside", kc, jd = m.createContext({
5119
+ var tb = "DismissableLayer", ti = "dismissableLayer.update", nb = "dismissableLayer.pointerDownOutside", rb = "dismissableLayer.focusOutside", kc, jd = m.createContext({
5120
5120
  layers: /* @__PURE__ */ new Set(),
5121
5121
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
5122
5122
  branches: /* @__PURE__ */ new Set()
@@ -5148,7 +5148,7 @@ var tb = "DismissableLayer", ni = "dismissableLayer.update", nb = "dismissableLa
5148
5148
  d && (c.layers.delete(d), c.layersWithOutsidePointerEventsDisabled.delete(d), Rc());
5149
5149
  }, [d, c]), m.useEffect(() => {
5150
5150
  const E = () => f({});
5151
- return document.addEventListener(ni, E), () => document.removeEventListener(ni, E);
5151
+ return document.addEventListener(ti, E), () => document.removeEventListener(ti, E);
5152
5152
  }, []), /* @__PURE__ */ u.jsx(
5153
5153
  ge.div,
5154
5154
  {
@@ -5225,19 +5225,19 @@ function ab(e, t = globalThis == null ? void 0 : globalThis.document) {
5225
5225
  };
5226
5226
  }
5227
5227
  function Rc() {
5228
- const e = new CustomEvent(ni);
5228
+ const e = new CustomEvent(ti);
5229
5229
  document.dispatchEvent(e);
5230
5230
  }
5231
5231
  function Pd(e, t, n, { discrete: r }) {
5232
5232
  const o = n.originalEvent.target, s = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
5233
5233
  t && o.addEventListener(e, t, { once: !0 }), r ? Bi(o, s) : o.dispatchEvent(s);
5234
5234
  }
5235
- var ib = Fr, lb = _d, ka = 0;
5235
+ var ib = Fr, lb = _d, Ea = 0;
5236
5236
  function zi() {
5237
5237
  m.useEffect(() => {
5238
5238
  const e = document.querySelectorAll("[data-radix-focus-guard]");
5239
- return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ic()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ic()), ka++, () => {
5240
- ka === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), ka--;
5239
+ return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ic()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ic()), Ea++, () => {
5240
+ Ea === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Ea--;
5241
5241
  };
5242
5242
  }, []);
5243
5243
  }
@@ -5245,7 +5245,7 @@ function Ic() {
5245
5245
  const e = document.createElement("span");
5246
5246
  return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
5247
5247
  }
5248
- var Ra = "focusScope.autoFocusOnMount", Ia = "focusScope.autoFocusOnUnmount", Nc = { bubbles: !1, cancelable: !0 }, cb = "FocusScope", Hs = m.forwardRef((e, t) => {
5248
+ var ka = "focusScope.autoFocusOnMount", Ra = "focusScope.autoFocusOnUnmount", Nc = { bubbles: !1, cancelable: !0 }, cb = "FocusScope", zs = m.forwardRef((e, t) => {
5249
5249
  const {
5250
5250
  loop: n = !1,
5251
5251
  trapped: r = !1,
@@ -5287,13 +5287,13 @@ var Ra = "focusScope.autoFocusOnMount", Ia = "focusScope.autoFocusOnUnmount", Nc
5287
5287
  jc.add(f);
5288
5288
  const g = document.activeElement;
5289
5289
  if (!i.contains(g)) {
5290
- const b = new CustomEvent(Ra, Nc);
5291
- i.addEventListener(Ra, c), i.dispatchEvent(b), b.defaultPrevented || (ub(mb(Md(i)), { select: !0 }), document.activeElement === g && Pn(i));
5290
+ const b = new CustomEvent(ka, Nc);
5291
+ i.addEventListener(ka, c), i.dispatchEvent(b), b.defaultPrevented || (ub(mb(Md(i)), { select: !0 }), document.activeElement === g && Pn(i));
5292
5292
  }
5293
5293
  return () => {
5294
- i.removeEventListener(Ra, c), setTimeout(() => {
5295
- const b = new CustomEvent(Ia, Nc);
5296
- i.addEventListener(Ia, d), i.dispatchEvent(b), b.defaultPrevented || Pn(g ?? document.body, { select: !0 }), i.removeEventListener(Ia, d), jc.remove(f);
5294
+ i.removeEventListener(ka, c), setTimeout(() => {
5295
+ const b = new CustomEvent(Ra, Nc);
5296
+ i.addEventListener(Ra, d), i.dispatchEvent(b), b.defaultPrevented || Pn(g ?? document.body, { select: !0 }), i.removeEventListener(Ra, d), jc.remove(f);
5297
5297
  }, 0);
5298
5298
  };
5299
5299
  }
@@ -5311,7 +5311,7 @@ var Ra = "focusScope.autoFocusOnMount", Ia = "focusScope.autoFocusOnUnmount", Nc
5311
5311
  );
5312
5312
  return /* @__PURE__ */ u.jsx(ge.div, { tabIndex: -1, ...a, ref: h, onKeyDown: v });
5313
5313
  });
5314
- Hs.displayName = cb;
5314
+ zs.displayName = cb;
5315
5315
  function ub(e, { select: t = !1 } = {}) {
5316
5316
  const n = document.activeElement;
5317
5317
  for (const r of e)
@@ -5394,7 +5394,7 @@ const vb = ["top", "right", "bottom", "left"], Ln = Math.min, Xt = Math.max, hs
5394
5394
  start: "end",
5395
5395
  end: "start"
5396
5396
  };
5397
- function ri(e, t, n) {
5397
+ function ni(e, t, n) {
5398
5398
  return Xt(e, Ln(t, n));
5399
5399
  }
5400
5400
  function jn(e, t) {
@@ -5427,9 +5427,9 @@ function Sb(e, t, n) {
5427
5427
  }
5428
5428
  function Tb(e) {
5429
5429
  const t = ms(e);
5430
- return [oi(e), t, oi(t)];
5430
+ return [ri(e), t, ri(t)];
5431
5431
  }
5432
- function oi(e) {
5432
+ function ri(e) {
5433
5433
  return e.replace(/start|end/g, (t) => bb[t]);
5434
5434
  }
5435
5435
  const Pc = ["left", "right"], Mc = ["right", "left"], Cb = ["top", "bottom"], Eb = ["bottom", "top"];
@@ -5448,7 +5448,7 @@ function kb(e, t, n) {
5448
5448
  function Rb(e, t, n, r) {
5449
5449
  const o = Br(e);
5450
5450
  let s = kb(_n(e), n === "start", r);
5451
- return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(oi)))), s;
5451
+ return o && (s = s.map((a) => a + "-" + o), t && (s = s.concat(s.map(ri)))), s;
5452
5452
  }
5453
5453
  function ms(e) {
5454
5454
  return e.replace(/left|right|bottom|top/g, (t) => wb[t]);
@@ -5666,7 +5666,7 @@ const Ab = (e) => ({
5666
5666
  }, f = Wi(o), v = Ui(f), g = await a.getDimensions(c), x = f === "y", b = x ? "top" : "left", w = x ? "bottom" : "right", y = x ? "clientHeight" : "clientWidth", C = s.reference[v] + s.reference[f] - h[f] - s.floating[v], S = h[f] - s.reference[f], T = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(c));
5667
5667
  let E = T ? T[y] : 0;
5668
5668
  (!E || !await (a.isElement == null ? void 0 : a.isElement(T))) && (E = i.floating[y] || s.floating[v]);
5669
- const N = C / 2 - S / 2, A = E / 2 - g[v] / 2 - 1, D = Ln(p[b], A), F = Ln(p[w], A), U = D, q = E - g[v] - F, I = E / 2 - g[v] / 2 + N, Y = ri(U, I, q), K = !l.arrow && Br(o) != null && I !== Y && s.reference[v] / 2 - (I < U ? D : F) - g[v] / 2 < 0, B = K ? I < U ? I - U : I - q : 0;
5669
+ const N = C / 2 - S / 2, A = E / 2 - g[v] / 2 - 1, D = Ln(p[b], A), F = Ln(p[w], A), U = D, q = E - g[v] - F, I = E / 2 - g[v] / 2 + N, Y = ni(U, I, q), K = !l.arrow && Br(o) != null && I !== Y && s.reference[v] / 2 - (I < U ? D : F) - g[v] / 2 < 0, B = K ? I < U ? I - U : I - q : 0;
5670
5670
  return {
5671
5671
  [f]: h[f] + B,
5672
5672
  data: {
@@ -5895,11 +5895,11 @@ const Mb = function(e) {
5895
5895
  let f = c[h], v = c[p];
5896
5896
  if (s) {
5897
5897
  const x = h === "y" ? "top" : "left", b = h === "y" ? "bottom" : "right", w = f + d[x], y = f - d[b];
5898
- f = ri(w, f, y);
5898
+ f = ni(w, f, y);
5899
5899
  }
5900
5900
  if (a) {
5901
5901
  const x = p === "y" ? "top" : "left", b = p === "y" ? "bottom" : "right", w = v + d[x], y = v - d[b];
5902
- v = ri(w, v, y);
5902
+ v = ni(w, v, y);
5903
5903
  }
5904
5904
  const g = i.fn({
5905
5905
  ...t,
@@ -6002,7 +6002,7 @@ const Mb = function(e) {
6002
6002
  }
6003
6003
  };
6004
6004
  };
6005
- function Us() {
6005
+ function Hs() {
6006
6006
  return typeof window < "u";
6007
6007
  }
6008
6008
  function zr(e) {
@@ -6017,16 +6017,16 @@ function kn(e) {
6017
6017
  return (t = (Ld(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
6018
6018
  }
6019
6019
  function Ld(e) {
6020
- return Us() ? e instanceof Node || e instanceof Zt(e).Node : !1;
6020
+ return Hs() ? e instanceof Node || e instanceof Zt(e).Node : !1;
6021
6021
  }
6022
6022
  function fn(e) {
6023
- return Us() ? e instanceof Element || e instanceof Zt(e).Element : !1;
6023
+ return Hs() ? e instanceof Element || e instanceof Zt(e).Element : !1;
6024
6024
  }
6025
6025
  function En(e) {
6026
- return Us() ? e instanceof HTMLElement || e instanceof Zt(e).HTMLElement : !1;
6026
+ return Hs() ? e instanceof HTMLElement || e instanceof Zt(e).HTMLElement : !1;
6027
6027
  }
6028
6028
  function $c(e) {
6029
- return !Us() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Zt(e).ShadowRoot;
6029
+ return !Hs() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Zt(e).ShadowRoot;
6030
6030
  }
6031
6031
  const $b = /* @__PURE__ */ new Set(["inline", "contents"]);
6032
6032
  function Ro(e) {
@@ -6043,7 +6043,7 @@ function Bb(e) {
6043
6043
  return Fb.has(zr(e));
6044
6044
  }
6045
6045
  const zb = [":popover-open", ":modal"];
6046
- function Ws(e) {
6046
+ function Us(e) {
6047
6047
  return zb.some((t) => {
6048
6048
  try {
6049
6049
  return e.matches(t);
@@ -6062,7 +6062,7 @@ function Vb(e) {
6062
6062
  for (; En(t) && !_r(t); ) {
6063
6063
  if (Vi(t))
6064
6064
  return t;
6065
- if (Ws(t))
6065
+ if (Us(t))
6066
6066
  return null;
6067
6067
  t = $n(t);
6068
6068
  }
@@ -6078,7 +6078,7 @@ function _r(e) {
6078
6078
  function pn(e) {
6079
6079
  return Zt(e).getComputedStyle(e);
6080
6080
  }
6081
- function Vs(e) {
6081
+ function Ws(e) {
6082
6082
  return fn(e) ? {
6083
6083
  scrollLeft: e.scrollLeft,
6084
6084
  scrollTop: e.scrollTop
@@ -6108,12 +6108,12 @@ function io(e, t, n) {
6108
6108
  t === void 0 && (t = []), n === void 0 && (n = !0);
6109
6109
  const o = $d(e), s = o === ((r = e.ownerDocument) == null ? void 0 : r.body), a = Zt(o);
6110
6110
  if (s) {
6111
- const i = si(a);
6111
+ const i = oi(a);
6112
6112
  return t.concat(a, a.visualViewport || [], Ro(o) ? o : [], i && n ? io(i) : []);
6113
6113
  }
6114
6114
  return t.concat(o, io(o, [], n));
6115
6115
  }
6116
- function si(e) {
6116
+ function oi(e) {
6117
6117
  return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
6118
6118
  }
6119
6119
  function Fd(e) {
@@ -6164,10 +6164,10 @@ function ir(e, t, n, r) {
6164
6164
  let l = (o.left + i.x) / a.x, c = (o.top + i.y) / a.y, d = o.width / a.x, p = o.height / a.y;
6165
6165
  if (s) {
6166
6166
  const h = Zt(s), f = r && fn(r) ? Zt(r) : r;
6167
- let v = h, g = si(v);
6167
+ let v = h, g = oi(v);
6168
6168
  for (; g && r && f !== v; ) {
6169
6169
  const x = Er(g), b = g.getBoundingClientRect(), w = pn(g), y = b.left + (g.clientLeft + parseFloat(w.paddingLeft)) * x.x, C = b.top + (g.clientTop + parseFloat(w.paddingTop)) * x.y;
6170
- l *= x.x, c *= x.y, d *= x.x, p *= x.y, l += y, c += C, v = Zt(g), g = si(v);
6170
+ l *= x.x, c *= x.y, d *= x.x, p *= x.y, l += y, c += C, v = Zt(g), g = oi(v);
6171
6171
  }
6172
6172
  }
6173
6173
  return gs({
@@ -6177,12 +6177,12 @@ function ir(e, t, n, r) {
6177
6177
  y: c
6178
6178
  });
6179
6179
  }
6180
- function Ks(e, t) {
6181
- const n = Vs(e).scrollLeft;
6180
+ function Vs(e, t) {
6181
+ const n = Ws(e).scrollLeft;
6182
6182
  return t ? t.left + n : ir(kn(e)).left + n;
6183
6183
  }
6184
6184
  function zd(e, t) {
6185
- const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Ks(e, n), o = n.top + t.scrollTop;
6185
+ const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - Vs(e, n), o = n.top + t.scrollTop;
6186
6186
  return {
6187
6187
  x: r,
6188
6188
  y: o
@@ -6195,7 +6195,7 @@ function Yb(e) {
6195
6195
  offsetParent: r,
6196
6196
  strategy: o
6197
6197
  } = e;
6198
- const s = o === "fixed", a = kn(r), i = t ? Ws(t.floating) : !1;
6198
+ const s = o === "fixed", a = kn(r), i = t ? Us(t.floating) : !1;
6199
6199
  if (r === a || i && s)
6200
6200
  return n;
6201
6201
  let l = {
@@ -6203,7 +6203,7 @@ function Yb(e) {
6203
6203
  scrollTop: 0
6204
6204
  }, c = Cn(1);
6205
6205
  const d = Cn(0), p = En(r);
6206
- if ((p || !p && !s) && ((zr(r) !== "body" || Ro(a)) && (l = Vs(r)), En(r))) {
6206
+ if ((p || !p && !s) && ((zr(r) !== "body" || Ro(a)) && (l = Ws(r)), En(r))) {
6207
6207
  const f = ir(r);
6208
6208
  c = Er(r), d.x = f.x + r.clientLeft, d.y = f.y + r.clientTop;
6209
6209
  }
@@ -6219,8 +6219,8 @@ function Xb(e) {
6219
6219
  return Array.from(e.getClientRects());
6220
6220
  }
6221
6221
  function Jb(e) {
6222
- const t = kn(e), n = Vs(e), r = e.ownerDocument.body, o = Xt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Xt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
6223
- let a = -n.scrollLeft + Ks(e);
6222
+ const t = kn(e), n = Ws(e), r = e.ownerDocument.body, o = Xt(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = Xt(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
6223
+ let a = -n.scrollLeft + Vs(e);
6224
6224
  const i = -n.scrollTop;
6225
6225
  return pn(r).direction === "rtl" && (a += Xt(t.clientWidth, r.clientWidth) - o), {
6226
6226
  width: o,
@@ -6238,7 +6238,7 @@ function Zb(e, t) {
6238
6238
  const d = Ki();
6239
6239
  (!d || d && t === "fixed") && (i = o.offsetLeft, l = o.offsetTop);
6240
6240
  }
6241
- const c = Ks(r);
6241
+ const c = Vs(r);
6242
6242
  if (c <= 0) {
6243
6243
  const d = r.ownerDocument, p = d.body, h = getComputedStyle(p), f = d.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, v = Math.abs(r.clientWidth - p.clientWidth - f);
6244
6244
  v <= Fc && (s -= v);
@@ -6303,7 +6303,7 @@ function ny(e) {
6303
6303
  rootBoundary: r,
6304
6304
  strategy: o
6305
6305
  } = e;
6306
- const a = [...n === "clippingAncestors" ? Ws(t) ? [] : ty(t, this._c) : [].concat(n), r], i = a[0], l = a.reduce((c, d) => {
6306
+ const a = [...n === "clippingAncestors" ? Us(t) ? [] : ty(t, this._c) : [].concat(n), r], i = a[0], l = a.reduce((c, d) => {
6307
6307
  const p = Bc(t, d, o);
6308
6308
  return c.top = Xt(p.top, c.top), c.right = Ln(p.right, c.right), c.bottom = Ln(p.bottom, c.bottom), c.left = Xt(p.left, c.left), c;
6309
6309
  }, Bc(t, i, o));
@@ -6332,10 +6332,10 @@ function oy(e, t, n) {
6332
6332
  };
6333
6333
  const l = Cn(0);
6334
6334
  function c() {
6335
- l.x = Ks(o);
6335
+ l.x = Vs(o);
6336
6336
  }
6337
6337
  if (r || !r && !s)
6338
- if ((zr(t) !== "body" || Ro(o)) && (i = Vs(t)), r) {
6338
+ if ((zr(t) !== "body" || Ro(o)) && (i = Ws(t)), r) {
6339
6339
  const f = ir(t, !0, s, t);
6340
6340
  l.x = f.x + t.clientLeft, l.y = f.y + t.clientTop;
6341
6341
  } else o && c();
@@ -6348,7 +6348,7 @@ function oy(e, t, n) {
6348
6348
  height: a.height
6349
6349
  };
6350
6350
  }
6351
- function Na(e) {
6351
+ function Ia(e) {
6352
6352
  return pn(e).position === "static";
6353
6353
  }
6354
6354
  function zc(e, t) {
@@ -6361,21 +6361,21 @@ function zc(e, t) {
6361
6361
  }
6362
6362
  function Ud(e, t) {
6363
6363
  const n = Zt(e);
6364
- if (Ws(e))
6364
+ if (Us(e))
6365
6365
  return n;
6366
6366
  if (!En(e)) {
6367
6367
  let o = $n(e);
6368
6368
  for (; o && !_r(o); ) {
6369
- if (fn(o) && !Na(o))
6369
+ if (fn(o) && !Ia(o))
6370
6370
  return o;
6371
6371
  o = $n(o);
6372
6372
  }
6373
6373
  return n;
6374
6374
  }
6375
6375
  let r = zc(e, t);
6376
- for (; r && Bb(r) && Na(r); )
6376
+ for (; r && Bb(r) && Ia(r); )
6377
6377
  r = zc(r, t);
6378
- return r && _r(r) && Na(r) && !Vi(r) ? n : r || Vb(e) || n;
6378
+ return r && _r(r) && Ia(r) && !Vi(r) ? n : r || Vb(e) || n;
6379
6379
  }
6380
6380
  const sy = async function(e) {
6381
6381
  const t = this.getOffsetParent || Ud, n = this.getDimensions, r = await n(e.floating);
@@ -6541,7 +6541,7 @@ function Uc(e, t) {
6541
6541
  const n = Vd(e);
6542
6542
  return Math.round(t * n) / n;
6543
6543
  }
6544
- function Aa(e) {
6544
+ function Na(e) {
6545
6545
  const t = m.useRef(e);
6546
6546
  return rs(() => {
6547
6547
  t.current = e;
@@ -6574,7 +6574,7 @@ function wy(e) {
6574
6574
  _ !== T.current && (T.current = _, g(_));
6575
6575
  }, []), y = m.useCallback((_) => {
6576
6576
  _ !== E.current && (E.current = _, b(_));
6577
- }, []), C = s || v, S = a || x, T = m.useRef(null), E = m.useRef(null), N = m.useRef(d), A = l != null, D = Aa(l), F = Aa(o), U = Aa(c), q = m.useCallback(() => {
6577
+ }, []), C = s || v, S = a || x, T = m.useRef(null), E = m.useRef(null), N = m.useRef(d), A = l != null, D = Na(l), F = Na(o), U = Na(c), q = m.useCallback(() => {
6578
6578
  if (!T.current || !E.current)
6579
6579
  return;
6580
6580
  const _ = {
@@ -7002,11 +7002,11 @@ function Fy(e) {
7002
7002
  let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
7003
7003
  return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
7004
7004
  }
7005
- var ja = "rovingFocusGroup.onEntryFocus", By = { bubbles: !1, cancelable: !0 }, No = "RovingFocusGroup", [ai, rf, zy] = Bs(No), [Hy, of] = gn(
7005
+ var Aa = "rovingFocusGroup.onEntryFocus", By = { bubbles: !1, cancelable: !0 }, No = "RovingFocusGroup", [si, rf, zy] = Fs(No), [Hy, of] = gn(
7006
7006
  No,
7007
7007
  [zy]
7008
7008
  ), [Uy, Wy] = Hy(No), sf = m.forwardRef(
7009
- (e, t) => /* @__PURE__ */ u.jsx(ai.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(ai.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Vy, { ...e, ref: t }) }) })
7009
+ (e, t) => /* @__PURE__ */ u.jsx(si.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(si.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ u.jsx(Vy, { ...e, ref: t }) }) })
7010
7010
  );
7011
7011
  sf.displayName = No;
7012
7012
  var Vy = m.forwardRef((e, t) => {
@@ -7021,7 +7021,7 @@ var Vy = m.forwardRef((e, t) => {
7021
7021
  onEntryFocus: c,
7022
7022
  preventScrollOnEntryFocus: d = !1,
7023
7023
  ...p
7024
- } = e, h = m.useRef(null), f = Be(t, h), v = zs(s), [g, x] = Dn({
7024
+ } = e, h = m.useRef(null), f = Be(t, h), v = Bs(s), [g, x] = Dn({
7025
7025
  prop: a,
7026
7026
  defaultProp: i ?? null,
7027
7027
  onChange: l,
@@ -7030,7 +7030,7 @@ var Vy = m.forwardRef((e, t) => {
7030
7030
  return m.useEffect(() => {
7031
7031
  const N = h.current;
7032
7032
  if (N)
7033
- return N.addEventListener(ja, y), () => N.removeEventListener(ja, y);
7033
+ return N.addEventListener(Aa, y), () => N.removeEventListener(Aa, y);
7034
7034
  }, [y]), /* @__PURE__ */ u.jsx(
7035
7035
  Uy,
7036
7036
  {
@@ -7066,7 +7066,7 @@ var Vy = m.forwardRef((e, t) => {
7066
7066
  onFocus: se(e.onFocus, (N) => {
7067
7067
  const A = !S.current;
7068
7068
  if (N.target === N.currentTarget && A && !b) {
7069
- const D = new CustomEvent(ja, By);
7069
+ const D = new CustomEvent(Aa, By);
7070
7070
  if (N.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
7071
7071
  const F = C().filter((K) => K.focusable), U = F.find((K) => K.active), q = F.find((K) => K.id === g), Y = [U, q, ...F].filter(
7072
7072
  Boolean
@@ -7095,7 +7095,7 @@ var Vy = m.forwardRef((e, t) => {
7095
7095
  if (r)
7096
7096
  return f(), () => v();
7097
7097
  }, [r, f, v]), /* @__PURE__ */ u.jsx(
7098
- ai.ItemSlot,
7098
+ si.ItemSlot,
7099
7099
  {
7100
7100
  scope: n,
7101
7101
  id: c,
@@ -7171,7 +7171,7 @@ var Xy = sf, Jy = lf, Zy = function(e) {
7171
7171
  return null;
7172
7172
  var t = Array.isArray(e) ? e[0] : e;
7173
7173
  return t.ownerDocument.body;
7174
- }, wr = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = {}, _a = 0, uf = function(e) {
7174
+ }, wr = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = {}, ja = 0, uf = function(e) {
7175
7175
  return e && (e.host || uf(e.parentNode));
7176
7176
  }, Qy = function(e, t) {
7177
7177
  return t.map(function(n) {
@@ -7202,11 +7202,11 @@ var Xy = sf, Jy = lf, Zy = function(e) {
7202
7202
  }
7203
7203
  });
7204
7204
  };
7205
- return d(t), i.clear(), _a++, function() {
7205
+ return d(t), i.clear(), ja++, function() {
7206
7206
  a.forEach(function(p) {
7207
7207
  var h = wr.get(p) - 1, f = s.get(p) - 1;
7208
7208
  wr.set(p, h), s.set(p, f), h || (Ho.has(p) || p.removeAttribute(r), Ho.delete(p)), f || p.removeAttribute(n);
7209
- }), _a--, _a || (wr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = {});
7209
+ }), ja--, ja || (wr = /* @__PURE__ */ new WeakMap(), wr = /* @__PURE__ */ new WeakMap(), Ho = /* @__PURE__ */ new WeakMap(), Uo = {});
7210
7210
  };
7211
7211
  }, el = function(e, t, n) {
7212
7212
  n === void 0 && (n = "data-aria-hidden");
@@ -7237,7 +7237,7 @@ function t0(e, t, n) {
7237
7237
  return e.concat(s || Array.prototype.slice.call(t));
7238
7238
  }
7239
7239
  var os = "right-scroll-bar-position", ss = "width-before-scroll-bar", n0 = "with-scroll-bars-hidden", r0 = "--removed-body-scroll-bar-size";
7240
- function Pa(e, t) {
7240
+ function _a(e, t) {
7241
7241
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
7242
7242
  }
7243
7243
  function o0(e, t) {
@@ -7265,7 +7265,7 @@ var s0 = typeof window < "u" ? m.useLayoutEffect : m.useEffect, Wc = /* @__PURE_
7265
7265
  function a0(e, t) {
7266
7266
  var n = o0(null, function(r) {
7267
7267
  return e.forEach(function(o) {
7268
- return Pa(o, r);
7268
+ return _a(o, r);
7269
7269
  });
7270
7270
  });
7271
7271
  return s0(function() {
@@ -7273,9 +7273,9 @@ function a0(e, t) {
7273
7273
  if (r) {
7274
7274
  var o = new Set(r), s = new Set(e), a = n.current;
7275
7275
  o.forEach(function(i) {
7276
- s.has(i) || Pa(i, null);
7276
+ s.has(i) || _a(i, null);
7277
7277
  }), s.forEach(function(i) {
7278
- o.has(i) || Pa(i, a);
7278
+ o.has(i) || _a(i, a);
7279
7279
  });
7280
7280
  }
7281
7281
  Wc.set(n, e);
@@ -7357,12 +7357,12 @@ ff.isSideCarExport = !0;
7357
7357
  function u0(e, t) {
7358
7358
  return e.useMedium(t), ff;
7359
7359
  }
7360
- var pf = c0(), Ma = function() {
7361
- }, qs = m.forwardRef(function(e, t) {
7360
+ var pf = c0(), Pa = function() {
7361
+ }, Ks = m.forwardRef(function(e, t) {
7362
7362
  var n = m.useRef(null), r = m.useState({
7363
- onScrollCapture: Ma,
7364
- onWheelCapture: Ma,
7365
- onTouchMoveCapture: Ma
7363
+ onScrollCapture: Pa,
7364
+ onWheelCapture: Pa,
7365
+ onTouchMoveCapture: Pa
7366
7366
  }), o = r[0], s = r[1], a = e.forwardProps, i = e.children, l = e.className, c = e.removeScrollBar, d = e.enabled, p = e.shards, h = e.sideCar, f = e.noRelative, v = e.noIsolation, g = e.inert, x = e.allowPinchZoom, b = e.as, w = b === void 0 ? "div" : b, y = e.gapMode, C = df(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, T = a0([n, t]), E = yn(yn({}, C), o);
7367
7367
  return m.createElement(
7368
7368
  m.Fragment,
@@ -7371,12 +7371,12 @@ var pf = c0(), Ma = function() {
7371
7371
  a ? m.cloneElement(m.Children.only(i), yn(yn({}, E), { ref: T })) : m.createElement(w, yn({}, E, { className: l, ref: T }), i)
7372
7372
  );
7373
7373
  });
7374
- qs.defaultProps = {
7374
+ Ks.defaultProps = {
7375
7375
  enabled: !0,
7376
7376
  removeScrollBar: !0,
7377
7377
  inert: !1
7378
7378
  };
7379
- qs.classNames = {
7379
+ Ks.classNames = {
7380
7380
  fullWidth: ss,
7381
7381
  zeroRight: os
7382
7382
  };
@@ -7429,11 +7429,11 @@ var m0 = function() {
7429
7429
  top: 0,
7430
7430
  right: 0,
7431
7431
  gap: 0
7432
- }, Oa = function(e) {
7432
+ }, Ma = function(e) {
7433
7433
  return parseInt(e || "", 10) || 0;
7434
7434
  }, v0 = function(e) {
7435
7435
  var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
7436
- return [Oa(n), Oa(r), Oa(o)];
7436
+ return [Ma(n), Ma(r), Ma(o)];
7437
7437
  }, w0 = function(e) {
7438
7438
  if (e === void 0 && (e = "margin"), typeof window > "u")
7439
7439
  return x0;
@@ -7505,19 +7505,19 @@ var m0 = function() {
7505
7505
  return w0(o);
7506
7506
  }, [o]);
7507
7507
  return m.createElement(b0, { styles: y0(s, !t, o, n ? "" : "!important") });
7508
- }, ii = !1;
7508
+ }, ai = !1;
7509
7509
  if (typeof window < "u")
7510
7510
  try {
7511
7511
  var Wo = Object.defineProperty({}, "passive", {
7512
7512
  get: function() {
7513
- return ii = !0, !0;
7513
+ return ai = !0, !0;
7514
7514
  }
7515
7515
  });
7516
7516
  window.addEventListener("test", Wo, Wo), window.removeEventListener("test", Wo, Wo);
7517
7517
  } catch {
7518
- ii = !1;
7518
+ ai = !1;
7519
7519
  }
7520
- var br = ii ? { passive: !1 } : !1, C0 = function(e) {
7520
+ var br = ai ? { passive: !1 } : !1, C0 = function(e) {
7521
7521
  return e.tagName === "TEXTAREA";
7522
7522
  }, mf = function(e, t) {
7523
7523
  if (!(e instanceof Element))
@@ -7682,22 +7682,22 @@ function O0(e) {
7682
7682
  return t;
7683
7683
  }
7684
7684
  const D0 = u0(pf, M0);
7685
- var Gs = m.forwardRef(function(e, t) {
7686
- return m.createElement(qs, yn({}, e, { ref: t, sideCar: D0 }));
7685
+ var qs = m.forwardRef(function(e, t) {
7686
+ return m.createElement(Ks, yn({}, e, { ref: t, sideCar: D0 }));
7687
7687
  });
7688
- Gs.classNames = qs.classNames;
7689
- var li = ["Enter", " "], L0 = ["ArrowDown", "PageUp", "Home"], vf = ["ArrowUp", "PageDown", "End"], $0 = [...L0, ...vf], F0 = {
7690
- ltr: [...li, "ArrowRight"],
7691
- rtl: [...li, "ArrowLeft"]
7688
+ qs.classNames = Ks.classNames;
7689
+ var ii = ["Enter", " "], L0 = ["ArrowDown", "PageUp", "Home"], vf = ["ArrowUp", "PageDown", "End"], $0 = [...L0, ...vf], F0 = {
7690
+ ltr: [...ii, "ArrowRight"],
7691
+ rtl: [...ii, "ArrowLeft"]
7692
7692
  }, B0 = {
7693
7693
  ltr: ["ArrowLeft"],
7694
7694
  rtl: ["ArrowRight"]
7695
- }, Ao = "Menu", [lo, z0, H0] = Bs(Ao), [pr, wf] = gn(Ao, [
7695
+ }, Ao = "Menu", [lo, z0, H0] = Fs(Ao), [pr, wf] = gn(Ao, [
7696
7696
  H0,
7697
7697
  Hr,
7698
7698
  of
7699
- ]), Ys = Hr(), bf = of(), [U0, hr] = pr(Ao), [W0, jo] = pr(Ao), yf = (e) => {
7700
- const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Ys(t), [l, c] = m.useState(null), d = m.useRef(!1), p = vt(s), h = zs(o);
7699
+ ]), Gs = Hr(), bf = of(), [U0, hr] = pr(Ao), [W0, jo] = pr(Ao), yf = (e) => {
7700
+ const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: a = !0 } = e, i = Gs(t), [l, c] = m.useState(null), d = m.useRef(!1), p = vt(s), h = Bs(o);
7701
7701
  return m.useEffect(() => {
7702
7702
  const f = () => {
7703
7703
  d.current = !0, document.addEventListener("pointerdown", v, { capture: !0, once: !0 }), document.addEventListener("pointermove", v, { capture: !0, once: !0 });
@@ -7730,7 +7730,7 @@ var li = ["Enter", " "], L0 = ["ArrowDown", "PageUp", "Home"], vf = ["ArrowUp",
7730
7730
  yf.displayName = Ao;
7731
7731
  var V0 = "MenuAnchor", tl = m.forwardRef(
7732
7732
  (e, t) => {
7733
- const { __scopeMenu: n, ...r } = e, o = Ys(n);
7733
+ const { __scopeMenu: n, ...r } = e, o = Gs(n);
7734
7734
  return /* @__PURE__ */ u.jsx(Ji, { ...o, ...r, ref: t });
7735
7735
  }
7736
7736
  );
@@ -7800,7 +7800,7 @@ var sn = "MenuContent", [q0, rl] = pr(sn), Cf = m.forwardRef(
7800
7800
  onDismiss: f,
7801
7801
  disableOutsideScroll: v,
7802
7802
  ...g
7803
- } = e, x = hr(sn, n), b = jo(sn, n), w = Ys(n), y = bf(n), C = z0(n), [S, T] = m.useState(null), E = m.useRef(null), N = Be(t, E, x.onContentChange), A = m.useRef(0), D = m.useRef(""), F = m.useRef(0), U = m.useRef(null), q = m.useRef("right"), I = m.useRef(0), Y = v ? Gs : m.Fragment, K = v ? { as: X0, allowPinchZoom: !0 } : void 0, B = (k) => {
7803
+ } = e, x = hr(sn, n), b = jo(sn, n), w = Gs(n), y = bf(n), C = z0(n), [S, T] = m.useState(null), E = m.useRef(null), N = Be(t, E, x.onContentChange), A = m.useRef(0), D = m.useRef(""), F = m.useRef(0), U = m.useRef(null), q = m.useRef("right"), I = m.useRef(0), Y = v ? qs : m.Fragment, K = v ? { as: X0, allowPinchZoom: !0 } : void 0, B = (k) => {
7804
7804
  var z, $;
7805
7805
  const H = D.current + k, G = C().filter((Q) => !Q.disabled), j = document.activeElement, M = (z = G.find((Q) => Q.ref.current === j)) == null ? void 0 : z.textValue, P = G.map((Q) => Q.textValue), L = lS(P, H, M), ee = ($ = G.find((Q) => Q.textValue === L)) == null ? void 0 : $.ref.current;
7806
7806
  (function Q(X) {
@@ -7841,7 +7841,7 @@ var sn = "MenuContent", [q0, rl] = pr(sn), Cf = m.forwardRef(
7841
7841
  U.current = k;
7842
7842
  }, []),
7843
7843
  children: /* @__PURE__ */ u.jsx(Y, { ...K, children: /* @__PURE__ */ u.jsx(
7844
- Hs,
7844
+ zs,
7845
7845
  {
7846
7846
  asChild: !0,
7847
7847
  trapped: o,
@@ -7935,7 +7935,7 @@ var Z0 = "MenuLabel", Ef = m.forwardRef(
7935
7935
  }
7936
7936
  );
7937
7937
  Ef.displayName = Z0;
7938
- var vs = "MenuItem", Yc = "menu.itemSelect", Xs = m.forwardRef(
7938
+ var vs = "MenuItem", Yc = "menu.itemSelect", Ys = m.forwardRef(
7939
7939
  (e, t) => {
7940
7940
  const { disabled: n = !1, onSelect: r, ...o } = e, s = m.useRef(null), a = jo(vs, e.__scopeMenu), i = rl(vs, e.__scopeMenu), l = Be(t, s), c = m.useRef(!1), d = () => {
7941
7941
  const p = s.current;
@@ -7961,13 +7961,13 @@ var vs = "MenuItem", Yc = "menu.itemSelect", Xs = m.forwardRef(
7961
7961
  }),
7962
7962
  onKeyDown: se(e.onKeyDown, (p) => {
7963
7963
  const h = i.searchRef.current !== "";
7964
- n || h && p.key === " " || li.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
7964
+ n || h && p.key === " " || ii.includes(p.key) && (p.currentTarget.click(), p.preventDefault());
7965
7965
  })
7966
7966
  }
7967
7967
  );
7968
7968
  }
7969
7969
  );
7970
- Xs.displayName = vs;
7970
+ Ys.displayName = vs;
7971
7971
  var kf = m.forwardRef(
7972
7972
  (e, t) => {
7973
7973
  const { __scopeMenu: n, disabled: r = !1, textValue: o, ...s } = e, a = rl(vs, n), i = bf(n), l = m.useRef(null), c = Be(t, l), [d, p] = m.useState(!1), [h, f] = m.useState("");
@@ -8010,7 +8010,7 @@ var kf = m.forwardRef(
8010
8010
  (e, t) => {
8011
8011
  const { checked: n = !1, onCheckedChange: r, ...o } = e;
8012
8012
  return /* @__PURE__ */ u.jsx(_f, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ u.jsx(
8013
- Xs,
8013
+ Ys,
8014
8014
  {
8015
8015
  role: "menuitemcheckbox",
8016
8016
  "aria-checked": ws(n) ? "mixed" : n,
@@ -8042,7 +8042,7 @@ var Af = "MenuRadioItem", jf = m.forwardRef(
8042
8042
  (e, t) => {
8043
8043
  const { value: n, ...r } = e, o = tS(Af, e.__scopeMenu), s = n === o.value;
8044
8044
  return /* @__PURE__ */ u.jsx(_f, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ u.jsx(
8045
- Xs,
8045
+ Ys,
8046
8046
  {
8047
8047
  role: "menuitemradio",
8048
8048
  "aria-checked": s,
@@ -8102,7 +8102,7 @@ var rS = "MenuSeparator", Mf = m.forwardRef(
8102
8102
  Mf.displayName = rS;
8103
8103
  var oS = "MenuArrow", Of = m.forwardRef(
8104
8104
  (e, t) => {
8105
- const { __scopeMenu: n, ...r } = e, o = Ys(n);
8105
+ const { __scopeMenu: n, ...r } = e, o = Gs(n);
8106
8106
  return /* @__PURE__ */ u.jsx(Qi, { ...o, ...r, ref: t });
8107
8107
  }
8108
8108
  );
@@ -8257,10 +8257,10 @@ function uS(e, t) {
8257
8257
  function co(e) {
8258
8258
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
8259
8259
  }
8260
- var dS = yf, fS = tl, pS = Tf, hS = Cf, mS = sl, gS = Ef, xS = Xs, vS = Rf, wS = Nf, bS = jf, yS = Pf, SS = Mf, TS = Of, CS = Lf, ES = Ff, Js = "DropdownMenu", [kS, NN] = gn(
8261
- Js,
8260
+ var dS = yf, fS = tl, pS = Tf, hS = Cf, mS = sl, gS = Ef, xS = Ys, vS = Rf, wS = Nf, bS = jf, yS = Pf, SS = Mf, TS = Of, CS = Lf, ES = Ff, Xs = "DropdownMenu", [kS, NN] = gn(
8261
+ Xs,
8262
8262
  [wf]
8263
- ), Ft = wf(), [RS, zf] = kS(Js), Hf = (e) => {
8263
+ ), Ft = wf(), [RS, zf] = kS(Xs), Hf = (e) => {
8264
8264
  const {
8265
8265
  __scopeDropdownMenu: t,
8266
8266
  children: n,
@@ -8273,7 +8273,7 @@ var dS = yf, fS = tl, pS = Tf, hS = Cf, mS = sl, gS = Ef, xS = Xs, vS = Rf, wS =
8273
8273
  prop: o,
8274
8274
  defaultProp: s ?? !1,
8275
8275
  onChange: a,
8276
- caller: Js
8276
+ caller: Xs
8277
8277
  });
8278
8278
  return /* @__PURE__ */ u.jsx(
8279
8279
  RS,
@@ -8290,7 +8290,7 @@ var dS = yf, fS = tl, pS = Tf, hS = Cf, mS = sl, gS = Ef, xS = Xs, vS = Rf, wS =
8290
8290
  }
8291
8291
  );
8292
8292
  };
8293
- Hf.displayName = Js;
8293
+ Hf.displayName = Xs;
8294
8294
  var Uf = "DropdownMenuTrigger", Wf = m.forwardRef(
8295
8295
  (e, t) => {
8296
8296
  const { __scopeDropdownMenu: n, disabled: r = !1, ...o } = e, s = zf(Uf, n), a = Ft(n);
@@ -8463,7 +8463,7 @@ const qS = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
8463
8463
  }
8464
8464
  ));
8465
8465
  qS.displayName = up.displayName;
8466
- const Zs = m.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(VS, { children: /* @__PURE__ */ u.jsx(
8466
+ const Js = m.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u.jsx(VS, { children: /* @__PURE__ */ u.jsx(
8467
8467
  np,
8468
8468
  {
8469
8469
  ref: r,
@@ -8475,7 +8475,7 @@ const Zs = m.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__
8475
8475
  ...n
8476
8476
  }
8477
8477
  ) }));
8478
- Zs.displayName = np.displayName;
8478
+ Js.displayName = np.displayName;
8479
8479
  const nr = m.forwardRef(({ className: e, inset: t, ...n }, r) => /* @__PURE__ */ u.jsx(
8480
8480
  op,
8481
8481
  {
@@ -8500,7 +8500,7 @@ const GS = m.forwardRef(({ className: e, children: t, checked: n, ...r }, o) =>
8500
8500
  checked: n,
8501
8501
  ...r,
8502
8502
  children: [
8503
- /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(ip, { children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4" }) }) }),
8503
+ /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(ip, { children: /* @__PURE__ */ u.jsx(As, { className: "h-4 w-4" }) }) }),
8504
8504
  t
8505
8505
  ]
8506
8506
  }
@@ -8826,7 +8826,7 @@ function tT({
8826
8826
  children: /* @__PURE__ */ u.jsx(Gg, { size: 16 })
8827
8827
  }
8828
8828
  ) }),
8829
- /* @__PURE__ */ u.jsxs(Zs, { align: "start", sideOffset: 6, className: "w-52", children: [
8829
+ /* @__PURE__ */ u.jsxs(Js, { align: "start", sideOffset: 6, className: "w-52", children: [
8830
8830
  h && /* @__PURE__ */ u.jsxs(
8831
8831
  nr,
8832
8832
  {
@@ -8878,7 +8878,7 @@ function tT({
8878
8878
  ] })
8879
8879
  ] });
8880
8880
  }
8881
- const nT = O.memo(tT), Qs = 0, Un = 1, Ur = 2, fp = 4;
8881
+ const nT = O.memo(tT), Zs = 0, Un = 1, Ur = 2, fp = 4;
8882
8882
  function Xc(e) {
8883
8883
  return () => e;
8884
8884
  }
@@ -8904,7 +8904,7 @@ function sT(...e) {
8904
8904
  }
8905
8905
  function Wr() {
8906
8906
  }
8907
- function ea(e, t) {
8907
+ function Qs(e, t) {
8908
8908
  return t(e), e;
8909
8909
  }
8910
8910
  function aT(e, t) {
@@ -8917,7 +8917,7 @@ function Qe(e, t) {
8917
8917
  return e(Un, t);
8918
8918
  }
8919
8919
  function _e(e, t) {
8920
- e(Qs, t);
8920
+ e(Zs, t);
8921
8921
  }
8922
8922
  function dl(e) {
8923
8923
  e(Ur);
@@ -8926,7 +8926,7 @@ function xt(e) {
8926
8926
  return e(fp);
8927
8927
  }
8928
8928
  function ve(e, t) {
8929
- return Qe(e, oT(t, Qs));
8929
+ return Qe(e, oT(t, Zs));
8930
8930
  }
8931
8931
  function dn(e, t) {
8932
8932
  const n = e(Un, (r) => {
@@ -9032,7 +9032,7 @@ function oe(e) {
9032
9032
  const n = Ue();
9033
9033
  return (r, o) => {
9034
9034
  switch (r) {
9035
- case Qs:
9035
+ case Zs:
9036
9036
  t = o;
9037
9037
  break;
9038
9038
  case Un: {
@@ -9046,13 +9046,13 @@ function oe(e) {
9046
9046
  };
9047
9047
  }
9048
9048
  function Dt(e, t) {
9049
- return ea(oe(t), (n) => ve(e, n));
9049
+ return Qs(oe(t), (n) => ve(e, n));
9050
9050
  }
9051
9051
  function Ue() {
9052
9052
  const e = [];
9053
9053
  return (t, n) => {
9054
9054
  switch (t) {
9055
- case Qs:
9055
+ case Zs:
9056
9056
  e.slice().forEach((r) => {
9057
9057
  r(n);
9058
9058
  });
@@ -9069,7 +9069,7 @@ function Ue() {
9069
9069
  };
9070
9070
  }
9071
9071
  function Qt(e) {
9072
- return ea(Ue(), (t) => ve(e, t));
9072
+ return Qs(Ue(), (t) => ve(e, t));
9073
9073
  }
9074
9074
  function Xe(e, t = [], { singleton: n } = { singleton: !0 }) {
9075
9075
  return {
@@ -9112,7 +9112,7 @@ function St(...e) {
9112
9112
  function Ee(e, t = hp) {
9113
9113
  return te(e, lt(t));
9114
9114
  }
9115
- function ci(...e) {
9115
+ function li(...e) {
9116
9116
  return function(t, n) {
9117
9117
  switch (t) {
9118
9118
  case Ur:
@@ -9332,13 +9332,13 @@ function Jt(e, t, n) {
9332
9332
  function Rr() {
9333
9333
  return uo;
9334
9334
  }
9335
- function ta(e, t, n) {
9335
+ function ea(e, t, n) {
9336
9336
  if (ot(e))
9337
9337
  return [];
9338
9338
  const r = hn(e, t)[0];
9339
- return mT(di(e, r, n));
9339
+ return mT(ui(e, r, n));
9340
9340
  }
9341
- function ui(e, t) {
9341
+ function ci(e, t) {
9342
9342
  if (ot(e)) return uo;
9343
9343
  const { k: n, l: r, r: o } = e;
9344
9344
  if (t === n) {
@@ -9350,24 +9350,24 @@ function ui(e, t) {
9350
9350
  const [s, a] = vp(r);
9351
9351
  return as(kt(e, { k: s, l: xp(r), v: a }));
9352
9352
  }
9353
- } else return t < n ? as(kt(e, { l: ui(r, t) })) : as(kt(e, { r: ui(o, t) }));
9353
+ } else return t < n ? as(kt(e, { l: ci(r, t) })) : as(kt(e, { r: ci(o, t) }));
9354
9354
  }
9355
9355
  function Zn(e) {
9356
9356
  return ot(e) ? [] : [...Zn(e.l), { k: e.k, v: e.v }, ...Zn(e.r)];
9357
9357
  }
9358
- function di(e, t, n) {
9358
+ function ui(e, t, n) {
9359
9359
  if (ot(e))
9360
9360
  return [];
9361
9361
  const { k: r, l: o, r: s, v: a } = e;
9362
9362
  let i = [];
9363
- return r > t && (i = i.concat(di(o, t, n))), r >= t && r <= n && i.push({ k: r, v: a }), r <= n && (i = i.concat(di(s, t, n))), i;
9363
+ return r > t && (i = i.concat(ui(o, t, n))), r >= t && r <= n && i.push({ k: r, v: a }), r <= n && (i = i.concat(ui(s, t, n))), i;
9364
9364
  }
9365
9365
  function as(e) {
9366
9366
  const { l: t, lvl: n, r } = e;
9367
9367
  if (r.lvl >= n - 1 && t.lvl >= n - 1)
9368
9368
  return e;
9369
9369
  if (n > r.lvl + 1) {
9370
- if (Da(t))
9370
+ if (Oa(t))
9371
9371
  return bp(kt(e, { lvl: n - 1 }));
9372
9372
  if (!ot(t) && !ot(t.r))
9373
9373
  return kt(t.r, {
@@ -9380,17 +9380,17 @@ function as(e) {
9380
9380
  });
9381
9381
  throw new Error("Unexpected empty nodes");
9382
9382
  } else {
9383
- if (Da(e))
9384
- return fi(kt(e, { lvl: n - 1 }));
9383
+ if (Oa(e))
9384
+ return di(kt(e, { lvl: n - 1 }));
9385
9385
  if (!ot(r) && !ot(r.l)) {
9386
- const o = r.l, s = Da(o) ? r.lvl - 1 : r.lvl;
9386
+ const o = r.l, s = Oa(o) ? r.lvl - 1 : r.lvl;
9387
9387
  return kt(o, {
9388
9388
  l: kt(e, {
9389
9389
  lvl: n - 1,
9390
9390
  r: o.l
9391
9391
  }),
9392
9392
  lvl: o.lvl + 1,
9393
- r: fi(kt(r, { l: o.r, lvl: s }))
9393
+ r: di(kt(r, { l: o.r, lvl: s }))
9394
9394
  });
9395
9395
  } else
9396
9396
  throw new Error("Unexpected empty nodes");
@@ -9408,7 +9408,7 @@ function kt(e, t) {
9408
9408
  function xp(e) {
9409
9409
  return ot(e.r) ? e.l : as(kt(e, { r: xp(e.r) }));
9410
9410
  }
9411
- function Da(e) {
9411
+ function Oa(e) {
9412
9412
  return ot(e) || e.lvl > e.r.lvl;
9413
9413
  }
9414
9414
  function vp(e) {
@@ -9418,13 +9418,13 @@ function wp(e, t, n, r = uo, o = uo) {
9418
9418
  return { k: e, l: r, lvl: n, r: o, v: t };
9419
9419
  }
9420
9420
  function eu(e) {
9421
- return fi(bp(e));
9421
+ return di(bp(e));
9422
9422
  }
9423
9423
  function bp(e) {
9424
9424
  const { l: t } = e;
9425
9425
  return !ot(t) && t.lvl === e.lvl ? kt(t, { r: kt(e, { l: t.r }) }) : e;
9426
9426
  }
9427
- function fi(e) {
9427
+ function di(e) {
9428
9428
  const { lvl: t, r: n } = e;
9429
9429
  return !ot(n) && !ot(n.r) && n.lvl === t && n.r.lvl === t ? kt(n, { l: kt(e, { r: n.l }), lvl: t + 1 }) : e;
9430
9430
  }
@@ -9470,7 +9470,7 @@ function gT(e, t, n, r) {
9470
9470
  function Fn(e, t) {
9471
9471
  return Math.round(e.getBoundingClientRect()[t]);
9472
9472
  }
9473
- function na(e) {
9473
+ function ta(e) {
9474
9474
  return !ot(e.groupOffsetTree);
9475
9475
  }
9476
9476
  function hl({ index: e }, t) {
@@ -9495,12 +9495,12 @@ function vT(e, t) {
9495
9495
  e = Jt(e, 0, s);
9496
9496
  continue;
9497
9497
  }
9498
- const i = ta(e, a - 1, o + 1);
9498
+ const i = ea(e, a - 1, o + 1);
9499
9499
  if (i.some(ET(r)))
9500
9500
  continue;
9501
9501
  let l = !1, c = !1;
9502
9502
  for (const { end: d, start: p, value: h } of i)
9503
- l ? (o >= p || s === h) && (e = ui(e, p)) : (c = h !== s, l = !0), d > o && o >= p && h !== s && (e = Jt(e, o + 1, h));
9503
+ l ? (o >= p || s === h) && (e = ci(e, p)) : (c = h !== s, l = !0), d > o && o >= p && h !== s && (e = Jt(e, o + 1, h));
9504
9504
  c && (e = Jt(e, a, s));
9505
9505
  }
9506
9506
  return [e, n];
@@ -9518,7 +9518,7 @@ function ho(e, t, n) {
9518
9518
  return i > 0 ? i + n : i;
9519
9519
  }
9520
9520
  function Tp(e, t) {
9521
- if (!na(t))
9521
+ if (!ta(t))
9522
9522
  return e;
9523
9523
  let n = 0;
9524
9524
  for (; t.groupIndices[n] <= e + n; )
@@ -9548,7 +9548,7 @@ function ST(e, [t, n, r, o]) {
9548
9548
  [a, i] = vT(a, t);
9549
9549
  if (a === s)
9550
9550
  return e;
9551
- const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: p } = pi(e.offsetTree, i, a, o);
9551
+ const { lastIndex: l, lastOffset: c, lastSize: d, offsetTree: p } = fi(e.offsetTree, i, a, o);
9552
9552
  return {
9553
9553
  groupIndices: n,
9554
9554
  groupOffsetTree: n.reduce((h, f) => Jt(h, f, ho(f, p, o)), Rr()),
@@ -9571,7 +9571,7 @@ function tu(e, t) {
9571
9571
  n += t[r + 1] - t[r] - 1, r++;
9572
9572
  return r - (n === e ? 0 : 1);
9573
9573
  }
9574
- function pi(e, t, n, r) {
9574
+ function fi(e, t, n, r) {
9575
9575
  let o = e, s = 0, a = 0, i = 0, l = 0;
9576
9576
  if (t !== 0) {
9577
9577
  l = bs(o, t - 1, hl), i = o[l].offset;
@@ -9579,7 +9579,7 @@ function pi(e, t, n, r) {
9579
9579
  s = c[0], a = c[1], o.length && o[l].size === hn(n, t)[1] && (l -= 1), o = o.slice(0, l + 1);
9580
9580
  } else
9581
9581
  o = [];
9582
- for (const { start: c, value: d } of ta(n, t, 1 / 0)) {
9582
+ for (const { start: c, value: d } of ea(n, t, 1 / 0)) {
9583
9583
  const p = c - s, h = p * a + i + p * r;
9584
9584
  o.push({
9585
9585
  index: c,
@@ -9802,14 +9802,14 @@ const kT = {
9802
9802
  return {
9803
9803
  ...T,
9804
9804
  sizeTree: N,
9805
- ...pi(T.offsetTree, 0, N, E)
9805
+ ...fi(T.offsetTree, 0, N, E)
9806
9806
  };
9807
9807
  } else {
9808
9808
  const N = Zn(T.sizeTree).reduce((A, { k: D, v: F }) => Jt(A, Math.max(0, D + S), F), Rr());
9809
9809
  return {
9810
9810
  ...T,
9811
9811
  sizeTree: N,
9812
- ...pi(T.offsetTree, 0, N, E)
9812
+ ...fi(T.offsetTree, 0, N, E)
9813
9813
  };
9814
9814
  }
9815
9815
  })
@@ -9867,7 +9867,7 @@ const Ep = Xe(
9867
9867
  ), ve(
9868
9868
  te(
9869
9869
  St(o, t, r),
9870
- ke(([l, c]) => na(c)),
9870
+ ke(([l, c]) => ta(c)),
9871
9871
  ue(([l, c, d]) => hn(c.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
9872
9872
  lt(),
9873
9873
  ue((l) => [l])
@@ -10037,12 +10037,12 @@ const mo = "up", to = "down", AT = "none", jT = {
10037
10037
  }, _T = 0, Mo = Xe(([{ footerHeight: e, headerHeight: t, scrollBy: n, scrollContainerState: r, scrollTop: o, viewportHeight: s }]) => {
10038
10038
  const a = oe(!1), i = oe(!0), l = Ue(), c = Ue(), d = oe(4), p = oe(_T), h = Dt(
10039
10039
  te(
10040
- ci(te(Ee(o), lr(1), bn(!0)), te(Ee(o), lr(1), bn(!1), Zc(100))),
10040
+ li(te(Ee(o), lr(1), bn(!0)), te(Ee(o), lr(1), bn(!1), Zc(100))),
10041
10041
  lt()
10042
10042
  ),
10043
10043
  !1
10044
10044
  ), f = Dt(
10045
- te(ci(te(n, bn(!0)), te(n, bn(!1), Zc(200))), lt()),
10045
+ te(li(te(n, bn(!0)), te(n, bn(!1), Zc(200))), lt()),
10046
10046
  !1
10047
10047
  );
10048
10048
  ve(
@@ -10229,7 +10229,7 @@ const xl = Xe(
10229
10229
  { singleton: !0 }
10230
10230
  );
10231
10231
  function PT(e, t, n) {
10232
- if (na(t)) {
10232
+ if (ta(t)) {
10233
10233
  const r = Tp(e, t);
10234
10234
  return [
10235
10235
  { index: hn(t.groupOffsetTree, r)[0], offset: 0, size: 0 },
@@ -10238,7 +10238,7 @@ function PT(e, t, n) {
10238
10238
  }
10239
10239
  return [{ data: n == null ? void 0 : n[0], index: e, offset: 0, size: 0 }];
10240
10240
  }
10241
- const La = {
10241
+ const Da = {
10242
10242
  bottom: 0,
10243
10243
  firstItemIndex: 0,
10244
10244
  items: [],
@@ -10289,9 +10289,9 @@ function Ip(e, t, n, r, o, s) {
10289
10289
  function su(e, t, n) {
10290
10290
  if (e.length === 0)
10291
10291
  return [];
10292
- if (!na(t))
10292
+ if (!ta(t))
10293
10293
  return e.map((c) => ({ ...c, index: c.index + n, originalIndex: c.index }));
10294
- const r = e[0].index, o = e[e.length - 1].index, s = [], a = ta(t.groupOffsetTree, r, o);
10294
+ const r = e[0].index, o = e[e.length - 1].index, s = [], a = ea(t.groupOffsetTree, r, o);
10295
10295
  let i, l = 0;
10296
10296
  for (const c of e) {
10297
10297
  (!i || i.end < c.index) && (i = a.shift(), l = t.groupIndices.indexOf(i.start));
@@ -10360,9 +10360,9 @@ const gr = Xe(
10360
10360
  ]) => {
10361
10361
  const K = A, { offsetTree: B, sizeTree: _ } = K, k = xt(x);
10362
10362
  if (N === 0)
10363
- return { ...La, totalCount: N };
10363
+ return { ...Da, totalCount: N };
10364
10364
  if (T === 0 && E === 0)
10365
- return k === 0 ? { ...La, totalCount: N } : Ip(k, D, A, q, I, Y || []);
10365
+ return k === 0 ? { ...Da, totalCount: N } : Ip(k, D, A, q, I, Y || []);
10366
10366
  if (ot(_))
10367
10367
  return k > 0 ? null : is(
10368
10368
  PT(gl(D, N), K, Y),
@@ -10376,7 +10376,7 @@ const gr = Xe(
10376
10376
  if (U.length > 0) {
10377
10377
  const L = U[0], ee = U[U.length - 1];
10378
10378
  let z = 0;
10379
- for (const $ of ta(_, L, ee)) {
10379
+ for (const $ of ea(_, L, ee)) {
10380
10380
  const Q = $.value, X = Math.max($.start, L), W = Math.min($.end, ee);
10381
10381
  for (let Z = X; Z <= W; Z++)
10382
10382
  H.push({ data: Y == null ? void 0 : Y[Z], index: Z, offset: z, size: Q }), z += Q;
@@ -10387,7 +10387,7 @@ const gr = Xe(
10387
10387
  const G = U.length > 0 ? U[U.length - 1] + 1 : 0, j = yT(B, T, E, G);
10388
10388
  if (j.length === 0)
10389
10389
  return null;
10390
- const M = N - 1, P = ea([], (L) => {
10390
+ const M = N - 1, P = Qs([], (L) => {
10391
10391
  for (const ee of j) {
10392
10392
  const z = ee.value;
10393
10393
  let $ = z.offset, Q = ee.start;
@@ -10410,7 +10410,7 @@ const gr = Xe(
10410
10410
  ke((T) => T !== null),
10411
10411
  lt()
10412
10412
  ),
10413
- La
10413
+ Da
10414
10414
  );
10415
10415
  ve(
10416
10416
  te(
@@ -10634,7 +10634,7 @@ const DT = (e, t) => typeof e == "function" ? au(e(t)) : t && au(e), LT = Xe(
10634
10634
  });
10635
10635
  const y = oe(null), C = Ue();
10636
10636
  return ve(
10637
- ci(
10637
+ li(
10638
10638
  te(
10639
10639
  Ee(r),
10640
10640
  ue((S) => {
@@ -11060,7 +11060,7 @@ function Op(e, t, n) {
11060
11060
  return a.reduce((b, w) => (b[w] = lT(x[t.events[w]]), b), {});
11061
11061
  }
11062
11062
  const p = O.forwardRef((x, b) => {
11063
- const { children: w, ...y } = x, [C] = O.useState(() => ea(uT(e), (E) => {
11063
+ const { children: w, ...y } = x, [C] = O.useState(() => Qs(uT(e), (E) => {
11064
11064
  l(E, y);
11065
11065
  })), [S] = O.useState(Jc(d, C));
11066
11066
  Ko(() => {
@@ -11112,7 +11112,7 @@ function Op(e, t, n) {
11112
11112
  };
11113
11113
  }
11114
11114
  const Dp = O.createContext(void 0), Lp = O.createContext(void 0), $p = typeof document < "u" ? O.useLayoutEffect : O.useEffect;
11115
- function $a(e) {
11115
+ function La(e) {
11116
11116
  return "self" in e;
11117
11117
  }
11118
11118
  function qT(e) {
@@ -11123,8 +11123,8 @@ function Fp(e, t, n, r = Wr, o, s) {
11123
11123
  (h) => {
11124
11124
  let f, v, g;
11125
11125
  const x = h.target;
11126
- if (qT(x) || $a(x)) {
11127
- const w = $a(x) ? x : x.defaultView;
11126
+ if (qT(x) || La(x)) {
11127
+ const w = La(x) ? x : x.defaultView;
11128
11128
  g = s ? w.scrollX : w.scrollY, f = s ? w.document.documentElement.scrollWidth : w.document.documentElement.scrollHeight, v = s ? w.innerWidth : w.innerHeight;
11129
11129
  } else
11130
11130
  g = s ? x.scrollLeft : x.scrollTop, f = s ? x.scrollWidth : x.scrollHeight, v = s ? x.offsetWidth : x.offsetHeight;
@@ -11151,7 +11151,7 @@ function Fp(e, t, n, r = Wr, o, s) {
11151
11151
  return;
11152
11152
  const v = h.behavior === "smooth";
11153
11153
  let g, x, b;
11154
- $a(f) ? (x = Math.max(
11154
+ La(f) ? (x = Math.max(
11155
11155
  Fn(f.document.documentElement, s ? "width" : "height"),
11156
11156
  s ? f.document.documentElement.scrollWidth : f.document.documentElement.scrollHeight
11157
11157
  ), g = s ? f.innerWidth : f.innerHeight, b = s ? window.scrollX : window.scrollY) : (x = f[s ? "scrollWidth" : "scrollHeight"], g = Fn(f, s ? "width" : "height"), b = f[s ? "scrollLeft" : "scrollTop"]);
@@ -11169,11 +11169,11 @@ function Fp(e, t, n, r = Wr, o, s) {
11169
11169
  }
11170
11170
  return { scrollByCallback: p, scrollerRef: a, scrollToCallback: d };
11171
11171
  }
11172
- const Fa = "-webkit-sticky", iu = "sticky", wl = Pp(() => {
11172
+ const $a = "-webkit-sticky", iu = "sticky", wl = Pp(() => {
11173
11173
  if (typeof document > "u")
11174
11174
  return iu;
11175
11175
  const e = document.createElement("div");
11176
- return e.style.position = Fa, e.style.position === Fa ? Fa : iu;
11176
+ return e.style.position = $a, e.style.position === $a ? $a : iu;
11177
11177
  });
11178
11178
  function bl(e) {
11179
11179
  return e;
@@ -11295,7 +11295,7 @@ const GT = /* @__PURE__ */ Xe(() => {
11295
11295
  outline: "none",
11296
11296
  overflowX: "auto",
11297
11297
  position: "relative"
11298
- }, ra = (e) => ({
11298
+ }, na = (e) => ({
11299
11299
  height: "100%",
11300
11300
  position: "absolute",
11301
11301
  top: 0,
@@ -11398,7 +11398,7 @@ const sC = ({ children: e }) => {
11398
11398
  ), i = mr(a, !0, Ne("skipAnimationFrameInResizeObserver"));
11399
11399
  return O.useEffect(() => {
11400
11400
  t && (n(t.viewportHeight), r(t.itemHeight));
11401
- }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: i, style: ra(o), children: e });
11401
+ }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "element", ref: i, style: na(o), children: e });
11402
11402
  }, aC = ({ children: e }) => {
11403
11403
  const t = O.useContext(Dp), n = rn("windowViewportRect"), r = rn("fixedItemHeight"), o = Ne("customScrollParent"), s = mp(
11404
11404
  n,
@@ -11407,7 +11407,7 @@ const sC = ({ children: e }) => {
11407
11407
  ), a = Ne("alignToBottom");
11408
11408
  return O.useEffect(() => {
11409
11409
  t && (r(t.itemHeight), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: 100 }));
11410
- }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style: ra(a), children: e });
11410
+ }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { "data-viewport-type": "window", ref: s, style: na(a), children: e });
11411
11411
  }, iC = ({ children: e }) => {
11412
11412
  const t = Ne("TopItemListComponent") || "div", n = Ne("headerHeight"), r = { ...tC, marginTop: `${n}px` }, o = Ne("context");
11413
11413
  return /* @__PURE__ */ u.jsx(t, { style: r, ...Ot(t, o), children: e });
@@ -11539,7 +11539,7 @@ const cu = {
11539
11539
  offsetBottom: 0,
11540
11540
  offsetTop: 0,
11541
11541
  top: 0
11542
- }, { ceil: uu, floor: Ts, max: no, min: Ba, round: du } = Math;
11542
+ }, { ceil: uu, floor: Ts, max: no, min: Fa, round: du } = Math;
11543
11543
  function fu(e, t, n) {
11544
11544
  return Array.from({ length: t - e + 1 }).map((r, o) => ({ data: n === null ? null : n[o + e], index: o + e }));
11545
11545
  }
@@ -11664,7 +11664,7 @@ const xC = /* @__PURE__ */ Xe(
11664
11664
  }
11665
11665
  const Ke = Up(ht, bt, Ie);
11666
11666
  let Oe, Ye;
11667
- be ? Q === 0 && X === 0 && me > 0 ? (Oe = 0, Ye = me - 1) : (Oe = Ke * Ts((Q + Ce) / (at + Ce)), Ye = Ke * uu((X + Ce) / (at + Ce)) - 1, Ye = Ba($ - 1, no(Ye, Ke - 1)), Oe = Ba(Ye, no(0, Oe))) : (Oe = 0, Ye = -1);
11667
+ be ? Q === 0 && X === 0 && me > 0 ? (Oe = 0, Ye = me - 1) : (Oe = Ke * Ts((Q + Ce) / (at + Ce)), Ye = Ke * uu((X + Ce) / (at + Ce)) - 1, Ye = Fa($ - 1, no(Ye, Ke - 1)), Oe = Fa(Ye, no(0, Oe))) : (Oe = 0, Ye = -1);
11668
11668
  const Pe = fu(Oe, Ye, ce), { bottom: De, top: et } = pu(he, W, Z, Pe), At = uu($ / Ke), it = At * at + (At - 1) * Ce - De;
11669
11669
  return { bottom: De, itemHeight: at, items: Pe, itemWidth: bt, offsetBottom: it, offsetTop: et, top: et };
11670
11670
  }
@@ -11738,8 +11738,8 @@ const xC = /* @__PURE__ */ Xe(
11738
11738
  ue(([$, Q, X, W, Z]) => {
11739
11739
  const he = kp($), { align: ce, behavior: me, offset: be } = he;
11740
11740
  let Te = he.index;
11741
- Te === "LAST" && (Te = W - 1), Te = no(0, Te, Ba(W - 1, Te));
11742
- let Ie = hi(Q, Z, X, Te);
11741
+ Te === "LAST" && (Te = W - 1), Te = no(0, Te, Fa(W - 1, Te));
11742
+ let Ie = pi(Q, Z, X, Te);
11743
11743
  return ce === "end" ? Ie = du(Ie - Q.height + X.height) : ce === "center" && (Ie = du(Ie - Q.height / 2 + X.height / 2)), be && (Ie += be), { behavior: me, top: Ie };
11744
11744
  })
11745
11745
  ),
@@ -11809,10 +11809,10 @@ function pu(e, t, n, r) {
11809
11809
  const { height: o } = n;
11810
11810
  if (o === void 0 || r.length === 0)
11811
11811
  return { bottom: 0, top: 0 };
11812
- const s = hi(e, t, n, r[0].index);
11813
- return { bottom: hi(e, t, n, r[r.length - 1].index) + o, top: s };
11812
+ const s = pi(e, t, n, r[0].index);
11813
+ return { bottom: pi(e, t, n, r[r.length - 1].index) + o, top: s };
11814
11814
  }
11815
- function hi(e, t, n, r) {
11815
+ function pi(e, t, n, r) {
11816
11816
  const o = Up(e.width, n.width, t.column), s = Ts(r / o), a = s * n.height + no(0, s - 1) * t.row;
11817
11817
  return a > 0 ? a + t.row : a;
11818
11818
  }
@@ -11938,12 +11938,12 @@ const vC = /* @__PURE__ */ Xe(() => {
11938
11938
  );
11939
11939
  return O.useEffect(() => {
11940
11940
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
11941
- }, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style: ra(!1), children: e });
11941
+ }, [t, r, n]), /* @__PURE__ */ u.jsx("div", { ref: o, style: na(!1), children: e });
11942
11942
  }, CC = ({ children: e }) => {
11943
11943
  const t = O.useContext(Lp), n = on("windowViewportRect"), r = on("itemDimensions"), o = ft("customScrollParent"), s = mp(n, o, !1);
11944
11944
  return O.useEffect(() => {
11945
11945
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
11946
- }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style: ra(!1), children: e });
11946
+ }, [t, n, r]), /* @__PURE__ */ u.jsx("div", { ref: s, style: na(!1), children: e });
11947
11947
  }, EC = /* @__PURE__ */ O.memo(function({ ...e }) {
11948
11948
  const t = ft("useWindowScroll"), n = ft("customScrollParent"), r = n || t ? RC : kC, o = n || t ? CC : TC, s = ft("context");
11949
11949
  return /* @__PURE__ */ u.jsx(r, { ...e, ...Ot(r, s), children: /* @__PURE__ */ u.jsxs(o, { children: [
@@ -12000,7 +12000,7 @@ const vC = /* @__PURE__ */ Xe(() => {
12000
12000
  function hu(e, t, n) {
12001
12001
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, qt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
12002
12002
  }
12003
- var oa = "Dialog", [Vp, AN] = gn(oa), [IC, xn] = Vp(oa), Kp = (e) => {
12003
+ var ra = "Dialog", [Vp, AN] = gn(ra), [IC, xn] = Vp(ra), Kp = (e) => {
12004
12004
  const {
12005
12005
  __scopeDialog: t,
12006
12006
  children: n,
@@ -12012,7 +12012,7 @@ var oa = "Dialog", [Vp, AN] = gn(oa), [IC, xn] = Vp(oa), Kp = (e) => {
12012
12012
  prop: r,
12013
12013
  defaultProp: o ?? !1,
12014
12014
  onChange: s,
12015
- caller: oa
12015
+ caller: ra
12016
12016
  });
12017
12017
  return /* @__PURE__ */ u.jsx(
12018
12018
  IC,
@@ -12031,7 +12031,7 @@ var oa = "Dialog", [Vp, AN] = gn(oa), [IC, xn] = Vp(oa), Kp = (e) => {
12031
12031
  }
12032
12032
  );
12033
12033
  };
12034
- Kp.displayName = oa;
12034
+ Kp.displayName = ra;
12035
12035
  var qp = "DialogTrigger", Gp = m.forwardRef(
12036
12036
  (e, t) => {
12037
12037
  const { __scopeDialog: n, ...r } = e, o = xn(qp, n), s = Be(t, o.triggerRef);
@@ -12071,7 +12071,7 @@ var AC = Ir("DialogOverlay.RemoveScroll"), jC = m.forwardRef(
12071
12071
  return (
12072
12072
  // Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
12073
12073
  // ie. when `Overlay` and `Content` are siblings
12074
- /* @__PURE__ */ u.jsx(Gs, { as: AC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
12074
+ /* @__PURE__ */ u.jsx(qs, { as: AC, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u.jsx(
12075
12075
  ge.div,
12076
12076
  {
12077
12077
  "data-state": Cl(o.open),
@@ -12145,7 +12145,7 @@ var _C = m.forwardRef(
12145
12145
  const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: s, ...a } = e, i = xn(cr, n), l = m.useRef(null), c = Be(t, l);
12146
12146
  return zi(), /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
12147
12147
  /* @__PURE__ */ u.jsx(
12148
- Hs,
12148
+ zs,
12149
12149
  {
12150
12150
  asChild: !0,
12151
12151
  loop: !0,
@@ -12225,7 +12225,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
12225
12225
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
12226
12226
  t && o && (document.getElementById(t) || console.warn(r));
12227
12227
  }, [r, e, t]), null;
12228
- }, El = Kp, LC = Gp, kl = Xp, Oo = Jp, Do = Zp, rr = eh, sa = nh, ih = oh;
12228
+ }, El = Kp, LC = Gp, kl = Xp, Oo = Jp, Do = Zp, rr = eh, oa = nh, ih = oh;
12229
12229
  const lh = El, $C = kl, ch = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12230
12230
  Oo,
12231
12231
  {
@@ -12305,29 +12305,29 @@ const Nl = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12305
12305
  ));
12306
12306
  Nl.displayName = rr.displayName;
12307
12307
  const FC = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
12308
- sa,
12308
+ oa,
12309
12309
  {
12310
12310
  ref: n,
12311
12311
  className: re("text-sm text-muted-foreground", e),
12312
12312
  ...t
12313
12313
  }
12314
12314
  ));
12315
- FC.displayName = sa.displayName;
12315
+ FC.displayName = oa.displayName;
12316
12316
  const BC = 1, zC = 1e6;
12317
- let za = 0;
12317
+ let Ba = 0;
12318
12318
  function HC() {
12319
- return za = (za + 1) % Number.MAX_SAFE_INTEGER, za.toString();
12319
+ return Ba = (Ba + 1) % Number.MAX_SAFE_INTEGER, Ba.toString();
12320
12320
  }
12321
- const Ha = /* @__PURE__ */ new Map(), mu = (e) => {
12322
- if (Ha.has(e))
12321
+ const za = /* @__PURE__ */ new Map(), mu = (e) => {
12322
+ if (za.has(e))
12323
12323
  return;
12324
12324
  const t = setTimeout(() => {
12325
- Ha.delete(e), ro({
12325
+ za.delete(e), ro({
12326
12326
  type: "REMOVE_TOAST",
12327
12327
  toastId: e
12328
12328
  });
12329
12329
  }, zC);
12330
- Ha.set(e, t);
12330
+ za.set(e, t);
12331
12331
  }, UC = (e, t) => {
12332
12332
  switch (t.type) {
12333
12333
  case "ADD_TOAST":
@@ -14385,7 +14385,7 @@ function hE({
14385
14385
  );
14386
14386
  }
14387
14387
  const mE = "prose prose-sm max-w-none break-words dark:prose-invert prose-headings:break-words prose-p:break-words prose-li:break-words prose-td:break-words prose-th:break-words prose-a:break-all prose-code:break-words prose-blockquote:break-words";
14388
- function Rs({ data: e }) {
14388
+ function hi({ data: e }) {
14389
14389
  return Array.isArray(e) ? e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ u.jsx("div", { className: mE, children: /* @__PURE__ */ u.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ u.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Ar(e) }) : /* @__PURE__ */ u.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Ar(e) });
14390
14390
  }
14391
14391
  function gE({ message: e, isStreaming: t = !1 }) {
@@ -14480,7 +14480,7 @@ function vE({
14480
14480
  /* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3 mr-1" }),
14481
14481
  " Show less"
14482
14482
  ] }) : /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
14483
- /* @__PURE__ */ u.jsx(_s, { className: "h-3 w-3 mr-1" }),
14483
+ /* @__PURE__ */ u.jsx(js, { className: "h-3 w-3 mr-1" }),
14484
14484
  " Show more (",
14485
14485
  s,
14486
14486
  " chars)"
@@ -14495,7 +14495,7 @@ const Tu = {
14495
14495
  viability: "from-[#d5f2cf] to-[#b3e7b4]",
14496
14496
  other: "from-[#dfe7ff] to-[#c4d6ff]"
14497
14497
  };
14498
- function Ua(e) {
14498
+ function Ha(e) {
14499
14499
  return (e.type ?? "other").toLowerCase();
14500
14500
  }
14501
14501
  function wE({ issues: e }) {
@@ -14504,7 +14504,7 @@ function wE({ issues: e }) {
14504
14504
  const t = $e(() => {
14505
14505
  const n = {};
14506
14506
  return e.forEach((r) => {
14507
- const o = Ua(r).toUpperCase();
14507
+ const o = Ha(r).toUpperCase();
14508
14508
  n[o] || (n[o] = []), n[o].push(r);
14509
14509
  }), n;
14510
14510
  }, [e]);
@@ -14516,10 +14516,10 @@ function wE({ issues: e }) {
14516
14516
  " total"
14517
14517
  ] })
14518
14518
  ] }),
14519
- /* @__PURE__ */ u.jsx("div", { className: "mt-4 flex gap-4 overflow-x-auto pb-2", children: Object.entries(t).map(([n, r]) => /* @__PURE__ */ u.jsxs(
14519
+ /* @__PURE__ */ u.jsx("div", { className: "mt-4 flex w-full flex-col gap-6", children: Object.entries(t).map(([n, r]) => /* @__PURE__ */ u.jsxs(
14520
14520
  "details",
14521
14521
  {
14522
- className: "flex-1 min-w-[280px] rounded-2xl border border-muted-foreground/30 bg-white/80 p-3 shadow-sm shadow-slate-900/10",
14522
+ className: "w-full rounded-2xl border border-muted-foreground/30 bg-white/80 p-4 shadow-sm shadow-slate-900/10",
14523
14523
  children: [
14524
14524
  /* @__PURE__ */ u.jsxs("summary", { className: "cursor-pointer text-[11px] font-semibold uppercase tracking-[0.4em] text-muted-foreground", children: [
14525
14525
  n,
@@ -14528,7 +14528,7 @@ function wE({ issues: e }) {
14528
14528
  ")"
14529
14529
  ] }),
14530
14530
  /* @__PURE__ */ u.jsx("div", { className: "mt-3 space-y-3", children: r.map((o, s) => {
14531
- const a = o.title || o.name || `Issue ${s + 1}`, i = Tu[Ua(o)] ? Ua(o) : "other";
14531
+ const a = o.title || o.name || `Issue ${s + 1}`, i = Tu[Ha(o)] ? Ha(o) : "other";
14532
14532
  return /* @__PURE__ */ u.jsxs(
14533
14533
  "div",
14534
14534
  {
@@ -14538,12 +14538,7 @@ function wE({ issues: e }) {
14538
14538
  o.description ? /* @__PURE__ */ u.jsxs("details", { className: "mt-2 rounded-xl border border-border/40 bg-background/60 p-2 text-[12px] text-foreground/80", children: [
14539
14539
  /* @__PURE__ */ u.jsx("summary", { className: "cursor-pointer font-semibold uppercase tracking-[0.3em] text-foreground/80", children: "View description" }),
14540
14540
  /* @__PURE__ */ u.jsx("p", { className: "mt-2 text-xs leading-5 text-foreground/80", children: o.description })
14541
- ] }) : null,
14542
- /* @__PURE__ */ u.jsx("div", { className: "absolute right-3 top-3 flex h-6 w-6 items-center justify-center rounded-full bg-white/80 text-[10px] font-semibold uppercase tracking-[0.4em] text-muted-foreground", children: o.id ? o.id.split("-")[0] : "ISS" }),
14543
- /* @__PURE__ */ u.jsxs("details", { className: "mt-3 text-[10px] font-semibold uppercase tracking-[0.4em] text-muted-foreground", children: [
14544
- /* @__PURE__ */ u.jsx("summary", { className: "cursor-pointer text-[10px] font-semibold uppercase tracking-[0.4em] text-muted-foreground underline decoration-dotted decoration-offset-2", children: "Raw JSON" }),
14545
- /* @__PURE__ */ u.jsx("div", { className: "mt-2", children: /* @__PURE__ */ u.jsx(Rs, { data: o }) })
14546
- ] })
14541
+ ] }) : null
14547
14542
  ]
14548
14543
  },
14549
14544
  o.id ?? `${n}-${s}`
@@ -14736,7 +14731,7 @@ function kE({ message: e, viewMode: t, isStreaming: n = !1 }) {
14736
14731
  if (h == null) return null;
14737
14732
  const f = typeof h == "string" ? ko(h) ?? h : h;
14738
14733
  if (f && typeof f == "object")
14739
- return /* @__PURE__ */ u.jsx(Rs, { data: f });
14734
+ return /* @__PURE__ */ u.jsx(hi, { data: f });
14740
14735
  const v = typeof f == "string" ? f : (() => {
14741
14736
  try {
14742
14737
  return Ar(f);
@@ -14751,7 +14746,7 @@ function kE({ message: e, viewMode: t, isStreaming: n = !1 }) {
14751
14746
  return v ? /* @__PURE__ */ u.jsx(or, { content: f, className: "text-current" }) : l(h);
14752
14747
  }, d = (h) => /* @__PURE__ */ u.jsxs("div", { className: "space-y-2 rounded-2xl border border-muted-foreground/30 bg-white/80 p-4 shadow-sm shadow-slate-900/10", children: [
14753
14748
  /* @__PURE__ */ u.jsx("div", { className: "text-[11px] font-semibold uppercase tracking-[0.4em] text-muted-foreground", children: "Structured dictionary" }),
14754
- /* @__PURE__ */ u.jsx(Rs, { data: h })
14749
+ /* @__PURE__ */ u.jsx(hi, { data: h })
14755
14750
  ] }), p = () => {
14756
14751
  if ((a == null ? void 0 : a.kind) === "generic")
14757
14752
  return c(a.value);
@@ -14949,7 +14944,7 @@ function NE({
14949
14944
  if (h)
14950
14945
  return null;
14951
14946
  const L = M.text ?? "", ee = L.trim(), z = ko(ee);
14952
- return z && y !== "tool" ? /* @__PURE__ */ u.jsx(Rs, { data: z }, P) : y === "user" && C && ee.length > S ? /* @__PURE__ */ u.jsx(
14947
+ return z && y !== "tool" ? /* @__PURE__ */ u.jsx(hi, { data: z }, P) : y === "user" && C && ee.length > S ? /* @__PURE__ */ u.jsx(
14953
14948
  vE,
14954
14949
  {
14955
14950
  text: ee,
@@ -15146,7 +15141,7 @@ function ME({
15146
15141
  children: [
15147
15142
  /* @__PURE__ */ u.jsx("span", { children: f.name ?? "Tool Output" }),
15148
15143
  f.toolCallId && /* @__PURE__ */ u.jsx("span", { className: "opacity-70", children: f.toolCallId.slice(0, 8) }),
15149
- h === "expanded" ? /* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(_s, { className: "h-3 w-3" })
15144
+ h === "expanded" ? /* @__PURE__ */ u.jsx(Ai, { className: "h-3 w-3" }) : /* @__PURE__ */ u.jsx(js, { className: "h-3 w-3" })
15150
15145
  ]
15151
15146
  }
15152
15147
  )
@@ -15279,7 +15274,7 @@ const Pl = $g(function({
15279
15274
  onSelectCheckpoint: A,
15280
15275
  attemptMetas: D = []
15281
15276
  }) {
15282
- const [F, U] = de(!1), [q, I] = de("preview"), [Y, K] = de(!1), { currentThreadId: B } = Eo(), { respondToInterrupt: _ } = Fs(), k = l === "phone" || l === "half-screen", H = t.role, G = H === "tool", j = $e(() => t.role === "default_message" ? t : null, [t]), M = !!j, P = !(r && H !== "user"), {
15277
+ const [F, U] = de(!1), [q, I] = de("preview"), [Y, K] = de(!1), { currentThreadId: B } = Eo(), { respondToInterrupt: _ } = $s(), k = l === "phone" || l === "half-screen", H = t.role, G = H === "tool", j = $e(() => t.role === "default_message" ? t : null, [t]), M = !!j, P = !(r && H !== "user"), {
15283
15278
  uploadingFiles: L,
15284
15279
  handleFileClick: ee,
15285
15280
  fileViewerOpen: z,
@@ -15347,11 +15342,11 @@ const Pl = $g(function({
15347
15342
  case "user":
15348
15343
  return /* @__PURE__ */ u.jsx(ex, { className: le });
15349
15344
  case "assistant":
15350
- return /* @__PURE__ */ u.jsx(ba, { className: le });
15345
+ return /* @__PURE__ */ u.jsx(wa, { className: le });
15351
15346
  case "tool":
15352
15347
  return /* @__PURE__ */ u.jsx(Qg, { className: le });
15353
15348
  default:
15354
- return /* @__PURE__ */ u.jsx(ba, { className: le });
15349
+ return /* @__PURE__ */ u.jsx(wa, { className: le });
15355
15350
  }
15356
15351
  }, [k, X, H]), At = ae(() => {
15357
15352
  const J = "group relative mb-4 flex w-full";
@@ -15477,7 +15472,7 @@ const Pl = $g(function({
15477
15472
  }, [ze, A]);
15478
15473
  return G && !p ? null : M && j ? /* @__PURE__ */ u.jsx("div", { className: re(At(), h.container), children: /* @__PURE__ */ u.jsxs("div", { className: re(it(), h.content), children: [
15479
15474
  /* @__PURE__ */ u.jsxs("div", { className: "flex items-center gap-2 mb-2 pb-2 border-b border-current/10", children: [
15480
- /* @__PURE__ */ u.jsx(ba, { className: re("h-4 w-4", X) }),
15475
+ /* @__PURE__ */ u.jsx(wa, { className: re("h-4 w-4", X) }),
15481
15476
  i && /* @__PURE__ */ u.jsx("span", { className: "font-medium text-sm", children: "Assistant" })
15482
15477
  ] }),
15483
15478
  /* @__PURE__ */ u.jsx(
@@ -15817,7 +15812,7 @@ function oo({
15817
15812
  onError: g,
15818
15813
  defaultMessage: x
15819
15814
  }) {
15820
- const { api: b } = $s(), { currentThreadId: w } = Eo(), {
15815
+ const { api: b } = Ls(), { currentThreadId: w } = Eo(), {
15821
15816
  threadId: y,
15822
15817
  messages: C,
15823
15818
  isHistoryLoading: S,
@@ -15829,7 +15824,7 @@ function oo({
15829
15824
  interrupt: F,
15830
15825
  metadata: U,
15831
15826
  checkpointIndex: q
15832
- } = Fs(), { isStreaming: I, error: Y, connectionState: K, submit: B, stop: _ } = $w(), k = y ?? w ?? null, H = (A == null ? void 0 : A.id) ?? null, G = (A == null ? void 0 : A.namespace) ?? null, j = (U == null ? void 0 : U.assemblingMessageId) ?? null, M = F, [P, L] = de(!1), [ee, z] = de(!1);
15827
+ } = $s(), { isStreaming: I, error: Y, connectionState: K, submit: B, stop: _ } = $w(), k = y ?? w ?? null, H = (A == null ? void 0 : A.id) ?? null, G = (A == null ? void 0 : A.namespace) ?? null, j = (U == null ? void 0 : U.assemblingMessageId) ?? null, M = F, [P, L] = de(!1), [ee, z] = de(!1);
15833
15828
  Ze(() => {
15834
15829
  M || L(!1);
15835
15830
  }, [M]);
@@ -16097,12 +16092,12 @@ function oo({
16097
16092
  ] })
16098
16093
  ] });
16099
16094
  }
16100
- var ku = 1, OE = 0.9, DE = 0.8, LE = 0.17, Wa = 0.1, Va = 0.999, $E = 0.9999, FE = 0.99, BE = /[\\\/_+.#"@\[\(\{&]/, zE = /[\\\/_+.#"@\[\(\{&]/g, HE = /[\s-]/, Rh = /[\s-]/g;
16095
+ var ku = 1, OE = 0.9, DE = 0.8, LE = 0.17, Ua = 0.1, Wa = 0.999, $E = 0.9999, FE = 0.99, BE = /[\\\/_+.#"@\[\(\{&]/, zE = /[\\\/_+.#"@\[\(\{&]/g, HE = /[\s-]/, Rh = /[\s-]/g;
16101
16096
  function mi(e, t, n, r, o, s, a) {
16102
16097
  if (s === t.length) return o === e.length ? ku : FE;
16103
16098
  var i = `${o},${s}`;
16104
16099
  if (a[i] !== void 0) return a[i];
16105
- for (var l = r.charAt(s), c = n.indexOf(l, o), d = 0, p, h, f, v; c >= 0; ) p = mi(e, t, n, r, c + 1, s + 1, a), p > d && (c === o ? p *= ku : BE.test(e.charAt(c - 1)) ? (p *= DE, f = e.slice(o, c - 1).match(zE), f && o > 0 && (p *= Math.pow(Va, f.length))) : HE.test(e.charAt(c - 1)) ? (p *= OE, v = e.slice(o, c - 1).match(Rh), v && o > 0 && (p *= Math.pow(Va, v.length))) : (p *= LE, o > 0 && (p *= Math.pow(Va, c - o))), e.charAt(c) !== t.charAt(s) && (p *= $E)), (p < Wa && n.charAt(c - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(c - 1) !== r.charAt(s)) && (h = mi(e, t, n, r, c + 1, s + 2, a), h * Wa > p && (p = h * Wa)), p > d && (d = p), c = n.indexOf(l, c + 1);
16100
+ for (var l = r.charAt(s), c = n.indexOf(l, o), d = 0, p, h, f, v; c >= 0; ) p = mi(e, t, n, r, c + 1, s + 1, a), p > d && (c === o ? p *= ku : BE.test(e.charAt(c - 1)) ? (p *= DE, f = e.slice(o, c - 1).match(zE), f && o > 0 && (p *= Math.pow(Wa, f.length))) : HE.test(e.charAt(c - 1)) ? (p *= OE, v = e.slice(o, c - 1).match(Rh), v && o > 0 && (p *= Math.pow(Wa, v.length))) : (p *= LE, o > 0 && (p *= Math.pow(Wa, c - o))), e.charAt(c) !== t.charAt(s) && (p *= $E)), (p < Ua && n.charAt(c - 1) === r.charAt(s + 1) || r.charAt(s + 1) === r.charAt(s) && n.charAt(c - 1) !== r.charAt(s)) && (h = mi(e, t, n, r, c + 1, s + 2, a), h * Ua > p && (p = h * Ua)), p > d && (d = p), c = n.indexOf(l, c + 1);
16106
16101
  return a[i] = d, d;
16107
16102
  }
16108
16103
  function Ru(e) {
@@ -16111,7 +16106,7 @@ function Ru(e) {
16111
16106
  function UE(e, t, n) {
16112
16107
  return e = n && n.length > 0 ? `${e + " " + n.join(" ")}` : e, mi(e, t, Ru(e), Ru(t), 0, 0, {});
16113
16108
  }
16114
- var Jr = '[cmdk-group=""]', Ka = '[cmdk-group-items=""]', WE = '[cmdk-group-heading=""]', Ih = '[cmdk-item=""]', Iu = `${Ih}:not([aria-disabled="true"])`, gi = "cmdk-item-select", Sr = "data-value", VE = (e, t, n) => UE(e, t, n), Nh = m.createContext(void 0), Lo = () => m.useContext(Nh), Ah = m.createContext(void 0), Ml = () => m.useContext(Ah), jh = m.createContext(void 0), _h = m.forwardRef((e, t) => {
16109
+ var Jr = '[cmdk-group=""]', Va = '[cmdk-group-items=""]', WE = '[cmdk-group-heading=""]', Ih = '[cmdk-item=""]', Iu = `${Ih}:not([aria-disabled="true"])`, gi = "cmdk-item-select", Sr = "data-value", VE = (e, t, n) => UE(e, t, n), Nh = m.createContext(void 0), Lo = () => m.useContext(Nh), Ah = m.createContext(void 0), Ml = () => m.useContext(Ah), jh = m.createContext(void 0), _h = m.forwardRef((e, t) => {
16115
16110
  let n = Tr(() => {
16116
16111
  var j, M;
16117
16112
  return { search: "", value: (M = (j = e.value) != null ? j : e.defaultValue) != null ? M : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
@@ -16183,8 +16178,8 @@ var Jr = '[cmdk-group=""]', Ka = '[cmdk-group-items=""]', WE = '[cmdk-group-head
16183
16178
  let Q = L.getAttribute("id"), X = ee.getAttribute("id");
16184
16179
  return ((z = j.get(X)) != null ? z : 0) - (($ = j.get(Q)) != null ? $ : 0);
16185
16180
  }).forEach((L) => {
16186
- let ee = L.closest(Ka);
16187
- ee ? ee.appendChild(L.parentElement === ee ? L : L.closest(`${Ka} > *`)) : P.appendChild(L.parentElement === P ? L : L.closest(`${Ka} > *`));
16181
+ let ee = L.closest(Va);
16182
+ ee ? ee.appendChild(L.parentElement === ee ? L : L.closest(`${Va} > *`)) : P.appendChild(L.parentElement === P ? L : L.closest(`${Va} > *`));
16188
16183
  }), M.sort((L, ee) => ee[1] - L[1]).forEach((L) => {
16189
16184
  var ee;
16190
16185
  let z = (ee = S.current) == null ? void 0 : ee.querySelector(`${Jr}[${Sr}="${encodeURIComponent(L[0])}"]`);
@@ -16285,7 +16280,7 @@ var Jr = '[cmdk-group=""]', Ka = '[cmdk-group-items=""]', WE = '[cmdk-group-head
16285
16280
  }
16286
16281
  }
16287
16282
  }
16288
- } }, m.createElement("label", { "cmdk-label": "", htmlFor: N.inputId, id: N.labelId, style: ok }, l), aa(e, (j) => m.createElement(Ah.Provider, { value: E }, m.createElement(Nh.Provider, { value: N }, j))));
16283
+ } }, m.createElement("label", { "cmdk-label": "", htmlFor: N.inputId, id: N.labelId, style: ok }, l), sa(e, (j) => m.createElement(Ah.Provider, { value: E }, m.createElement(Nh.Provider, { value: N }, j))));
16289
16284
  }), KE = m.forwardRef((e, t) => {
16290
16285
  var n, r;
16291
16286
  let o = Lt(), s = m.useRef(null), a = m.useContext(jh), i = Lo(), l = Ph(e), c = (r = (n = l.current) == null ? void 0 : n.forceMount) != null ? r : a == null ? void 0 : a.forceMount;
@@ -16311,7 +16306,7 @@ var Jr = '[cmdk-group=""]', Ka = '[cmdk-group-items=""]', WE = '[cmdk-group-head
16311
16306
  let { heading: n, children: r, forceMount: o, ...s } = e, a = Lt(), i = m.useRef(null), l = m.useRef(null), c = Lt(), d = Lo(), p = Hn((f) => o || d.filter() === !1 ? !0 : f.search ? f.filtered.groups.has(a) : !0);
16312
16307
  ur(() => d.group(a), []), Mh(a, i, [e.value, e.heading, l]);
16313
16308
  let h = m.useMemo(() => ({ id: a, forceMount: o }), [o]);
16314
- return m.createElement(ge.div, { ref: On(i, t), ...s, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, n && m.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), aa(e, (f) => m.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, m.createElement(jh.Provider, { value: h }, f))));
16309
+ return m.createElement(ge.div, { ref: On(i, t), ...s, "cmdk-group": "", role: "presentation", hidden: p ? void 0 : !0 }, n && m.createElement("div", { ref: l, "cmdk-group-heading": "", "aria-hidden": !0, id: c }, n), sa(e, (f) => m.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? c : void 0 }, m.createElement(jh.Provider, { value: h }, f))));
16315
16310
  }), GE = m.forwardRef((e, t) => {
16316
16311
  let { alwaysRender: n, ...r } = e, o = m.useRef(null), s = Hn((a) => !a.search);
16317
16312
  return !n && !s ? null : m.createElement(ge.div, { ref: On(o, t), ...r, "cmdk-separator": "", role: "separator" });
@@ -16336,13 +16331,13 @@ var Jr = '[cmdk-group=""]', Ka = '[cmdk-group-items=""]', WE = '[cmdk-group-head
16336
16331
  cancelAnimationFrame(p), h.unobserve(c);
16337
16332
  };
16338
16333
  }
16339
- }, []), m.createElement(ge.div, { ref: On(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, aa(e, (c) => m.createElement("div", { ref: On(a, l.listInnerRef), "cmdk-list-sizer": "" }, c)));
16334
+ }, []), m.createElement(ge.div, { ref: On(s, t), ...o, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": i, "aria-label": r, id: l.listId }, sa(e, (c) => m.createElement("div", { ref: On(a, l.listInnerRef), "cmdk-list-sizer": "" }, c)));
16340
16335
  }), JE = m.forwardRef((e, t) => {
16341
16336
  let { open: n, onOpenChange: r, overlayClassName: o, contentClassName: s, container: a, ...i } = e;
16342
16337
  return m.createElement(El, { open: n, onOpenChange: r }, m.createElement(kl, { container: a }, m.createElement(Oo, { "cmdk-overlay": "", className: o }), m.createElement(Do, { "aria-label": e.label, "cmdk-dialog": "", className: s }, m.createElement(_h, { ref: t, ...i }))));
16343
16338
  }), ZE = m.forwardRef((e, t) => Hn((n) => n.filtered.count === 0) ? m.createElement(ge.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), QE = m.forwardRef((e, t) => {
16344
16339
  let { progress: n, children: r, label: o = "Loading...", ...s } = e;
16345
- return m.createElement(ge.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, aa(e, (a) => m.createElement("div", { "aria-hidden": !0 }, a)));
16340
+ return m.createElement(ge.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": o }, sa(e, (a) => m.createElement("div", { "aria-hidden": !0 }, a)));
16346
16341
  }), Yt = Object.assign(_h, { List: XE, Item: KE, Input: YE, Group: qE, Separator: GE, Dialog: JE, Empty: ZE, Loading: QE });
16347
16342
  function ek(e, t) {
16348
16343
  let n = e.nextElementSibling;
@@ -16399,7 +16394,7 @@ function rk(e) {
16399
16394
  let t = e.type;
16400
16395
  return typeof t == "function" ? t(e.props) : "render" in t ? t.render(e.props) : e;
16401
16396
  }
16402
- function aa({ asChild: e, children: t }, n) {
16397
+ function sa({ asChild: e, children: t }, n) {
16403
16398
  return e && m.isValidElement(t) ? m.cloneElement(rk(t), { ref: t.ref }, n(t.props.children)) : n(t);
16404
16399
  }
16405
16400
  var ok = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
@@ -16495,7 +16490,7 @@ var Ol = "ScrollArea", [zh, _N] = gn(Ol), [ik, ln] = zh(Ol), Hh = m.forwardRef(
16495
16490
  dir: o,
16496
16491
  scrollHideDelay: s = 600,
16497
16492
  ...a
16498
- } = e, [i, l] = m.useState(null), [c, d] = m.useState(null), [p, h] = m.useState(null), [f, v] = m.useState(null), [g, x] = m.useState(null), [b, w] = m.useState(0), [y, C] = m.useState(0), [S, T] = m.useState(!1), [E, N] = m.useState(!1), A = Be(t, (F) => l(F)), D = zs(o);
16493
+ } = e, [i, l] = m.useState(null), [c, d] = m.useState(null), [p, h] = m.useState(null), [f, v] = m.useState(null), [g, x] = m.useState(null), [b, w] = m.useState(0), [y, C] = m.useState(0), [S, T] = m.useState(!1), [E, N] = m.useState(!1), A = Be(t, (F) => l(F)), D = Bs(o);
16499
16494
  return /* @__PURE__ */ u.jsx(
16500
16495
  ik,
16501
16496
  {
@@ -16613,7 +16608,7 @@ var lk = m.forwardRef((e, t) => {
16613
16608
  }
16614
16609
  ) });
16615
16610
  }), ck = m.forwardRef((e, t) => {
16616
- const { forceMount: n, ...r } = e, o = ln(In, e.__scopeScrollArea), s = e.orientation === "horizontal", a = la(() => l("SCROLL_END"), 100), [i, l] = ak("hidden", {
16611
+ const { forceMount: n, ...r } = e, o = ln(In, e.__scopeScrollArea), s = e.orientation === "horizontal", a = ia(() => l("SCROLL_END"), 100), [i, l] = ak("hidden", {
16617
16612
  hidden: {
16618
16613
  SCROLL: "scrolling"
16619
16614
  },
@@ -16657,7 +16652,7 @@ var lk = m.forwardRef((e, t) => {
16657
16652
  }
16658
16653
  ) });
16659
16654
  }), Vh = m.forwardRef((e, t) => {
16660
- const n = ln(In, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = m.useState(!1), i = e.orientation === "horizontal", l = la(() => {
16655
+ const n = ln(In, e.__scopeScrollArea), { forceMount: r, ...o } = e, [s, a] = m.useState(!1), i = e.orientation === "horizontal", l = ia(() => {
16661
16656
  if (n.viewport) {
16662
16657
  const c = n.viewport.offsetWidth < n.viewport.scrollWidth, d = n.viewport.offsetHeight < n.viewport.scrollHeight;
16663
16658
  a(i ? c : d);
@@ -16740,7 +16735,7 @@ var lk = m.forwardRef((e, t) => {
16740
16735
  bottom: 0,
16741
16736
  left: s.dir === "rtl" ? "var(--radix-scroll-area-corner-width)" : 0,
16742
16737
  right: s.dir === "ltr" ? "var(--radix-scroll-area-corner-width)" : 0,
16743
- "--radix-scroll-area-thumb-width": ia(n) + "px",
16738
+ "--radix-scroll-area-thumb-width": aa(n) + "px",
16744
16739
  ...e.style
16745
16740
  },
16746
16741
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.x),
@@ -16757,8 +16752,8 @@ var lk = m.forwardRef((e, t) => {
16757
16752
  viewport: s.viewport.offsetWidth,
16758
16753
  scrollbar: {
16759
16754
  size: l.current.clientWidth,
16760
- paddingStart: Ns(a.paddingLeft),
16761
- paddingEnd: Ns(a.paddingRight)
16755
+ paddingStart: Is(a.paddingLeft),
16756
+ paddingEnd: Is(a.paddingRight)
16762
16757
  }
16763
16758
  });
16764
16759
  }
@@ -16780,7 +16775,7 @@ var lk = m.forwardRef((e, t) => {
16780
16775
  right: s.dir === "ltr" ? 0 : void 0,
16781
16776
  left: s.dir === "rtl" ? 0 : void 0,
16782
16777
  bottom: "var(--radix-scroll-area-corner-height)",
16783
- "--radix-scroll-area-thumb-height": ia(n) + "px",
16778
+ "--radix-scroll-area-thumb-height": aa(n) + "px",
16784
16779
  ...e.style
16785
16780
  },
16786
16781
  onThumbPointerDown: (d) => e.onThumbPointerDown(d.y),
@@ -16797,8 +16792,8 @@ var lk = m.forwardRef((e, t) => {
16797
16792
  viewport: s.viewport.offsetHeight,
16798
16793
  scrollbar: {
16799
16794
  size: l.current.clientHeight,
16800
- paddingStart: Ns(a.paddingTop),
16801
- paddingEnd: Ns(a.paddingBottom)
16795
+ paddingStart: Is(a.paddingTop),
16796
+ paddingEnd: Is(a.paddingBottom)
16802
16797
  }
16803
16798
  });
16804
16799
  }
@@ -16817,7 +16812,7 @@ var lk = m.forwardRef((e, t) => {
16817
16812
  onWheelScroll: d,
16818
16813
  onResize: p,
16819
16814
  ...h
16820
- } = e, f = ln(In, n), [v, g] = m.useState(null), x = Be(t, (A) => g(A)), b = m.useRef(null), w = m.useRef(""), y = f.viewport, C = r.content - r.viewport, S = vt(d), T = vt(l), E = la(p, 10);
16815
+ } = e, f = ln(In, n), [v, g] = m.useState(null), x = Be(t, (A) => g(A)), b = m.useRef(null), w = m.useRef(""), y = f.viewport, C = r.content - r.viewport, S = vt(d), T = vt(l), E = ia(p, 10);
16821
16816
  function N(A) {
16822
16817
  if (b.current) {
16823
16818
  const D = A.clientX - b.current.left, F = A.clientY - b.current.top;
@@ -16858,17 +16853,17 @@ var lk = m.forwardRef((e, t) => {
16858
16853
  )
16859
16854
  }
16860
16855
  );
16861
- }), Is = "ScrollAreaThumb", Gh = m.forwardRef(
16856
+ }), Rs = "ScrollAreaThumb", Gh = m.forwardRef(
16862
16857
  (e, t) => {
16863
- const { forceMount: n, ...r } = e, o = Kh(Is, e.__scopeScrollArea);
16858
+ const { forceMount: n, ...r } = e, o = Kh(Rs, e.__scopeScrollArea);
16864
16859
  return /* @__PURE__ */ u.jsx(Gt, { present: n || o.hasThumb, children: /* @__PURE__ */ u.jsx(pk, { ref: t, ...r }) });
16865
16860
  }
16866
16861
  ), pk = m.forwardRef(
16867
16862
  (e, t) => {
16868
- const { __scopeScrollArea: n, style: r, ...o } = e, s = ln(Is, n), a = Kh(Is, n), { onThumbPositionChange: i } = a, l = Be(
16863
+ const { __scopeScrollArea: n, style: r, ...o } = e, s = ln(Rs, n), a = Kh(Rs, n), { onThumbPositionChange: i } = a, l = Be(
16869
16864
  t,
16870
16865
  (p) => a.onThumbChange(p)
16871
- ), c = m.useRef(void 0), d = la(() => {
16866
+ ), c = m.useRef(void 0), d = ia(() => {
16872
16867
  c.current && (c.current(), c.current = void 0);
16873
16868
  }, 100);
16874
16869
  return m.useEffect(() => {
@@ -16902,7 +16897,7 @@ var lk = m.forwardRef((e, t) => {
16902
16897
  );
16903
16898
  }
16904
16899
  );
16905
- Gh.displayName = Is;
16900
+ Gh.displayName = Rs;
16906
16901
  var $l = "ScrollAreaCorner", Yh = m.forwardRef(
16907
16902
  (e, t) => {
16908
16903
  const n = ln($l, e.__scopeScrollArea), r = !!(n.scrollbarX && n.scrollbarY);
@@ -16937,23 +16932,23 @@ var hk = m.forwardRef((e, t) => {
16937
16932
  }
16938
16933
  ) : null;
16939
16934
  });
16940
- function Ns(e) {
16935
+ function Is(e) {
16941
16936
  return e ? parseInt(e, 10) : 0;
16942
16937
  }
16943
16938
  function Xh(e, t) {
16944
16939
  const n = e / t;
16945
16940
  return isNaN(n) ? 0 : n;
16946
16941
  }
16947
- function ia(e) {
16942
+ function aa(e) {
16948
16943
  const t = Xh(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
16949
16944
  return Math.max(r, 18);
16950
16945
  }
16951
16946
  function mk(e, t, n, r = "ltr") {
16952
- const o = ia(n), s = o / 2, a = t || s, i = o - a, l = n.scrollbar.paddingStart + a, c = n.scrollbar.size - n.scrollbar.paddingEnd - i, d = n.content - n.viewport, p = r === "ltr" ? [0, d] : [d * -1, 0];
16947
+ const o = aa(n), s = o / 2, a = t || s, i = o - a, l = n.scrollbar.paddingStart + a, c = n.scrollbar.size - n.scrollbar.paddingEnd - i, d = n.content - n.viewport, p = r === "ltr" ? [0, d] : [d * -1, 0];
16953
16948
  return Jh([l, c], p)(e);
16954
16949
  }
16955
16950
  function Nu(e, t, n = "ltr") {
16956
- const r = ia(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, l = n === "ltr" ? [0, a] : [a * -1, 0], c = xi(e, l);
16951
+ const r = aa(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, s = t.scrollbar.size - o, a = t.content - t.viewport, i = s - r, l = n === "ltr" ? [0, a] : [a * -1, 0], c = xi(e, l);
16957
16952
  return Jh([0, a], [0, i])(c);
16958
16953
  }
16959
16954
  function Jh(e, t) {
@@ -16974,7 +16969,7 @@ var gk = (e, t = () => {
16974
16969
  (a || i) && t(), n = s, r = window.requestAnimationFrame(o);
16975
16970
  }(), () => window.cancelAnimationFrame(r);
16976
16971
  };
16977
- function la(e, t) {
16972
+ function ia(e, t) {
16978
16973
  const n = vt(e), r = m.useRef(0);
16979
16974
  return m.useEffect(() => () => window.clearTimeout(r.current), []), m.useCallback(() => {
16980
16975
  window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
@@ -17091,7 +17086,7 @@ function Sk({
17091
17086
  size: "sm",
17092
17087
  onClick: () => i(e.threadId),
17093
17088
  className: "h-6 w-6 p-0",
17094
- children: /* @__PURE__ */ u.jsx(js, { size: 12 })
17089
+ children: /* @__PURE__ */ u.jsx(As, { size: 12 })
17095
17090
  }
17096
17091
  ),
17097
17092
  /* @__PURE__ */ u.jsx(nt, { variant: "ghost", size: "sm", onClick: l, className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(sr, { size: 12 }) })
@@ -17105,7 +17100,7 @@ function Sk({
17105
17100
  ] }) }),
17106
17101
  /* @__PURE__ */ u.jsx("div", { className: "flex items-center gap-1 opacity-0 group-hover:opacity-100 transition-opacity ml-2", children: /* @__PURE__ */ u.jsxs(ll, { children: [
17107
17102
  /* @__PURE__ */ u.jsx(cl, { asChild: !0, children: /* @__PURE__ */ u.jsx(nt, { variant: "ghost", size: "sm", className: "h-6 w-6 p-0", children: /* @__PURE__ */ u.jsx(zu, { size: 12 }) }) }),
17108
- /* @__PURE__ */ u.jsxs(Zs, { align: "end", sideOffset: 6, className: "w-44", children: [
17103
+ /* @__PURE__ */ u.jsxs(Js, { align: "end", sideOffset: 6, className: "w-44", children: [
17109
17104
  /* @__PURE__ */ u.jsxs(
17110
17105
  nr,
17111
17106
  {
@@ -17215,7 +17210,7 @@ function vi({
17215
17210
  shareInFlight: F,
17216
17211
  shareStatus: U,
17217
17212
  clearShareStatus: q
17218
- } = Eo(), { createThread: I, deleteThread: Y, renameThread: K, shareThread: B } = D, { loadThread: _ } = Fs(), k = a ?? T, [H, G] = de(Array.isArray(C) ? C : []), j = Le(H.length > 0), M = Le(null), P = Le(0), [L, ee] = de(null), [z, $] = de(""), [Q, X] = de(!1), [W, Z] = de(!1), [he, ce] = de(null), [me, be] = de(""), Te = v && v.length > 0 ? v : kk, Ie = Ek({ defaultView: h }), Ce = g ?? Ie, at = p ?? Ce.view, bt = ae(
17213
+ } = Eo(), { createThread: I, deleteThread: Y, renameThread: K, shareThread: B } = D, { loadThread: _ } = $s(), k = a ?? T, [H, G] = de(Array.isArray(C) ? C : []), j = Le(H.length > 0), M = Le(null), P = Le(0), [L, ee] = de(null), [z, $] = de(""), [Q, X] = de(!1), [W, Z] = de(!1), [he, ce] = de(null), [me, be] = de(""), Te = v && v.length > 0 ? v : kk, Ie = Ek({ defaultView: h }), Ce = g ?? Ie, at = p ?? Ce.view, bt = ae(
17219
17214
  (J) => {
17220
17215
  p || Ce.setView(J), f == null || f(J);
17221
17216
  },
@@ -17347,7 +17342,7 @@ function vi({
17347
17342
  children: ht.label
17348
17343
  }
17349
17344
  ) }),
17350
- /* @__PURE__ */ u.jsx(Zs, { align: "start", sideOffset: 6, className: "w-40", children: Te.map((J) => /* @__PURE__ */ u.jsxs(
17345
+ /* @__PURE__ */ u.jsx(Js, { align: "start", sideOffset: 6, className: "w-40", children: Te.map((J) => /* @__PURE__ */ u.jsxs(
17351
17346
  nr,
17352
17347
  {
17353
17348
  className: "justify-between text-[12px]",
@@ -17356,7 +17351,7 @@ function vi({
17356
17351
  },
17357
17352
  children: [
17358
17353
  /* @__PURE__ */ u.jsx("span", { children: J.label }),
17359
- at === J.key && /* @__PURE__ */ u.jsx(js, { className: "h-3 w-3" })
17354
+ at === J.key && /* @__PURE__ */ u.jsx(As, { className: "h-3 w-3" })
17360
17355
  ]
17361
17356
  },
17362
17357
  J.key
@@ -17701,7 +17696,7 @@ var im = Object.freeze({
17701
17696
  clip: "rect(0, 0, 0, 0)",
17702
17697
  whiteSpace: "nowrap",
17703
17698
  wordWrap: "normal"
17704
- }), jk = "VisuallyHidden", ca = m.forwardRef(
17699
+ }), jk = "VisuallyHidden", la = m.forwardRef(
17705
17700
  (e, t) => /* @__PURE__ */ u.jsx(
17706
17701
  ge.span,
17707
17702
  {
@@ -17711,11 +17706,11 @@ var im = Object.freeze({
17711
17706
  }
17712
17707
  )
17713
17708
  );
17714
- ca.displayName = jk;
17715
- var _k = ca, Pk = [" ", "Enter", "ArrowUp", "ArrowDown"], Mk = [" ", "Enter"], dr = "Select", [ua, da, Ok] = Bs(dr), [Vr, LN] = gn(dr, [
17709
+ la.displayName = jk;
17710
+ var _k = la, Pk = [" ", "Enter", "ArrowUp", "ArrowDown"], Mk = [" ", "Enter"], dr = "Select", [ca, ua, Ok] = Fs(dr), [Vr, LN] = gn(dr, [
17716
17711
  Ok,
17717
17712
  Hr
17718
- ]), fa = Hr(), [Dk, Kn] = Vr(dr), [Lk, $k] = Vr(dr), lm = (e) => {
17713
+ ]), da = Hr(), [Dk, Kn] = Vr(dr), [Lk, $k] = Vr(dr), lm = (e) => {
17719
17714
  const {
17720
17715
  __scopeSelect: t,
17721
17716
  children: n,
@@ -17731,7 +17726,7 @@ var _k = ca, Pk = [" ", "Enter", "ArrowUp", "ArrowDown"], Mk = [" ", "Enter"], d
17731
17726
  disabled: h,
17732
17727
  required: f,
17733
17728
  form: v
17734
- } = e, g = fa(t), [x, b] = m.useState(null), [w, y] = m.useState(null), [C, S] = m.useState(!1), T = zs(c), [E, N] = Dn({
17729
+ } = e, g = da(t), [x, b] = m.useState(null), [w, y] = m.useState(null), [C, S] = m.useState(!1), T = Bs(c), [E, N] = Dn({
17735
17730
  prop: r,
17736
17731
  defaultProp: o ?? !1,
17737
17732
  onChange: s,
@@ -17762,7 +17757,7 @@ var _k = ca, Pk = [" ", "Enter", "ArrowUp", "ArrowDown"], Mk = [" ", "Enter"], d
17762
17757
  triggerPointerDownPosRef: F,
17763
17758
  disabled: h,
17764
17759
  children: [
17765
- /* @__PURE__ */ u.jsx(ua.Provider, { scope: t, children: /* @__PURE__ */ u.jsx(
17760
+ /* @__PURE__ */ u.jsx(ca.Provider, { scope: t, children: /* @__PURE__ */ u.jsx(
17766
17761
  Lk,
17767
17762
  {
17768
17763
  scope: e.__scopeSelect,
@@ -17804,7 +17799,7 @@ var _k = ca, Pk = [" ", "Enter", "ArrowUp", "ArrowDown"], Mk = [" ", "Enter"], d
17804
17799
  lm.displayName = dr;
17805
17800
  var cm = "SelectTrigger", um = m.forwardRef(
17806
17801
  (e, t) => {
17807
- const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = fa(n), a = Kn(cm, n), i = a.disabled || r, l = Be(t, a.onTriggerChange), c = da(n), d = m.useRef("touch"), [p, h, f] = Mm((g) => {
17802
+ const { __scopeSelect: n, disabled: r = !1, ...o } = e, s = da(n), a = Kn(cm, n), i = a.disabled || r, l = Be(t, a.onTriggerChange), c = ua(n), d = m.useRef("touch"), [p, h, f] = Mm((g) => {
17808
17803
  const x = c().filter((y) => !y.disabled), b = x.find((y) => y.value === a.value), w = Om(x, g, b);
17809
17804
  w !== void 0 && a.onValueChange(w.value);
17810
17805
  }), v = (g) => {
@@ -17880,7 +17875,7 @@ var fr = "SelectContent", mm = m.forwardRef(
17880
17875
  }, []), !n.open) {
17881
17876
  const s = r;
17882
17877
  return s ? wo.createPortal(
17883
- /* @__PURE__ */ u.jsx(gm, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx(ua.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx("div", { children: e.children }) }) }),
17878
+ /* @__PURE__ */ u.jsx(gm, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx(ca.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ u.jsx("div", { children: e.children }) }) }),
17884
17879
  s
17885
17880
  ) : null;
17886
17881
  }
@@ -17912,7 +17907,7 @@ var un = 10, [gm, qn] = Vr(fr), zk = "SelectContentImpl", Hk = Ir("SelectContent
17912
17907
  ...b
17913
17908
  } = e, w = Kn(fr, n), [y, C] = m.useState(null), [S, T] = m.useState(null), E = Be(t, (z) => C(z)), [N, A] = m.useState(null), [D, F] = m.useState(
17914
17909
  null
17915
- ), U = da(n), [q, I] = m.useState(!1), Y = m.useRef(!1);
17910
+ ), U = ua(n), [q, I] = m.useState(!1), Y = m.useRef(!1);
17916
17911
  m.useEffect(() => {
17917
17912
  if (y) return el(y);
17918
17913
  }, [y]), zi();
@@ -17996,8 +17991,8 @@ var un = 10, [gm, qn] = Vr(fr), zk = "SelectContentImpl", Hk = Ir("SelectContent
17996
17991
  position: r,
17997
17992
  isPositioned: q,
17998
17993
  searchRef: H,
17999
- children: /* @__PURE__ */ u.jsx(Gs, { as: Hk, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
18000
- Hs,
17994
+ children: /* @__PURE__ */ u.jsx(qs, { as: Hk, allowPinchZoom: !0, children: /* @__PURE__ */ u.jsx(
17995
+ zs,
18001
17996
  {
18002
17997
  asChild: !0,
18003
17998
  trapped: w.open,
@@ -18060,7 +18055,7 @@ var un = 10, [gm, qn] = Vr(fr), zk = "SelectContentImpl", Hk = Ir("SelectContent
18060
18055
  );
18061
18056
  xm.displayName = zk;
18062
18057
  var Uk = "SelectItemAlignedPosition", vm = m.forwardRef((e, t) => {
18063
- const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Kn(fr, n), a = qn(fr, n), [i, l] = m.useState(null), [c, d] = m.useState(null), p = Be(t, (E) => d(E)), h = da(n), f = m.useRef(!1), v = m.useRef(!0), { viewport: g, selectedItem: x, selectedItemText: b, focusSelectedItem: w } = a, y = m.useCallback(() => {
18058
+ const { __scopeSelect: n, onPlaced: r, ...o } = e, s = Kn(fr, n), a = qn(fr, n), [i, l] = m.useState(null), [c, d] = m.useState(null), p = Be(t, (E) => d(E)), h = ua(n), f = m.useRef(!1), v = m.useRef(!0), { viewport: g, selectedItem: x, selectedItemText: b, focusSelectedItem: w } = a, y = m.useCallback(() => {
18064
18059
  if (s.trigger && s.valueNode && i && c && g && x && b) {
18065
18060
  const E = s.trigger.getBoundingClientRect(), N = c.getBoundingClientRect(), A = s.valueNode.getBoundingClientRect(), D = b.getBoundingClientRect();
18066
18061
  if (s.dir !== "rtl") {
@@ -18170,7 +18165,7 @@ var Wk = "SelectPopperPosition", wi = m.forwardRef((e, t) => {
18170
18165
  align: r = "start",
18171
18166
  collisionPadding: o = un,
18172
18167
  ...s
18173
- } = e, a = fa(n);
18168
+ } = e, a = da(n);
18174
18169
  return /* @__PURE__ */ u.jsx(
18175
18170
  Zi,
18176
18171
  {
@@ -18206,7 +18201,7 @@ var [Vk, Fl] = Vr(fr, {}), bi = "SelectViewport", wm = m.forwardRef(
18206
18201
  nonce: r
18207
18202
  }
18208
18203
  ),
18209
- /* @__PURE__ */ u.jsx(ua.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
18204
+ /* @__PURE__ */ u.jsx(ca.Slot, { scope: n, children: /* @__PURE__ */ u.jsx(
18210
18205
  ge.div,
18211
18206
  {
18212
18207
  "data-radix-select-viewport": "",
@@ -18260,7 +18255,7 @@ var ym = "SelectLabel", Sm = m.forwardRef(
18260
18255
  }
18261
18256
  );
18262
18257
  Sm.displayName = ym;
18263
- var As = "SelectItem", [Yk, Tm] = Vr(As), Cm = m.forwardRef(
18258
+ var Ns = "SelectItem", [Yk, Tm] = Vr(Ns), Cm = m.forwardRef(
18264
18259
  (e, t) => {
18265
18260
  const {
18266
18261
  __scopeSelect: n,
@@ -18268,7 +18263,7 @@ var As = "SelectItem", [Yk, Tm] = Vr(As), Cm = m.forwardRef(
18268
18263
  disabled: o = !1,
18269
18264
  textValue: s,
18270
18265
  ...a
18271
- } = e, i = Kn(As, n), l = qn(As, n), c = i.value === r, [d, p] = m.useState(s ?? ""), [h, f] = m.useState(!1), v = Be(
18266
+ } = e, i = Kn(Ns, n), l = qn(Ns, n), c = i.value === r, [d, p] = m.useState(s ?? ""), [h, f] = m.useState(!1), v = Be(
18272
18267
  t,
18273
18268
  (w) => {
18274
18269
  var y;
@@ -18293,7 +18288,7 @@ var As = "SelectItem", [Yk, Tm] = Vr(As), Cm = m.forwardRef(
18293
18288
  p((y) => y || ((w == null ? void 0 : w.textContent) ?? "").trim());
18294
18289
  }, []),
18295
18290
  children: /* @__PURE__ */ u.jsx(
18296
- ua.ItemSlot,
18291
+ ca.ItemSlot,
18297
18292
  {
18298
18293
  scope: n,
18299
18294
  value: r,
@@ -18343,7 +18338,7 @@ var As = "SelectItem", [Yk, Tm] = Vr(As), Cm = m.forwardRef(
18343
18338
  );
18344
18339
  }
18345
18340
  );
18346
- Cm.displayName = As;
18341
+ Cm.displayName = Ns;
18347
18342
  var Qr = "SelectItemText", Em = m.forwardRef(
18348
18343
  (e, t) => {
18349
18344
  const { __scopeSelect: n, className: r, style: o, ...s } = e, a = Kn(Qr, n), i = qn(Qr, n), l = Tm(Qr, n), c = $k(Qr, n), [d, p] = m.useState(null), h = Be(
@@ -18421,7 +18416,7 @@ var Si = "SelectScrollDownButton", Nm = m.forwardRef((e, t) => {
18421
18416
  });
18422
18417
  Nm.displayName = Si;
18423
18418
  var Am = m.forwardRef((e, t) => {
18424
- const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = qn("SelectScrollButton", n), a = m.useRef(null), i = da(n), l = m.useCallback(() => {
18419
+ const { __scopeSelect: n, onAutoScroll: r, ...o } = e, s = qn("SelectScrollButton", n), a = m.useRef(null), i = ua(n), l = m.useCallback(() => {
18425
18420
  a.current !== null && (window.clearInterval(a.current), a.current = null);
18426
18421
  }, []);
18427
18422
  return m.useEffect(() => () => l(), [l]), Nt(() => {
@@ -18456,7 +18451,7 @@ var Am = m.forwardRef((e, t) => {
18456
18451
  jm.displayName = Xk;
18457
18452
  var Ti = "SelectArrow", Jk = m.forwardRef(
18458
18453
  (e, t) => {
18459
- const { __scopeSelect: n, ...r } = e, o = fa(n), s = Kn(Ti, n), a = qn(Ti, n);
18454
+ const { __scopeSelect: n, ...r } = e, o = da(n), s = Kn(Ti, n), a = qn(Ti, n);
18460
18455
  return s.open && a.position === "popper" ? /* @__PURE__ */ u.jsx(Qi, { ...o, ...r, ref: t }) : null;
18461
18456
  }
18462
18457
  );
@@ -18528,7 +18523,7 @@ const $N = eR, FN = tR, iR = m.forwardRef(({ className: e, children: t, ...n },
18528
18523
  ...n,
18529
18524
  children: [
18530
18525
  t,
18531
- /* @__PURE__ */ u.jsx(nR, { asChild: !0, children: /* @__PURE__ */ u.jsx(_s, { className: "h-4 w-4 opacity-50" }) })
18526
+ /* @__PURE__ */ u.jsx(nR, { asChild: !0, children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4 opacity-50" }) })
18532
18527
  ]
18533
18528
  }
18534
18529
  ));
@@ -18555,7 +18550,7 @@ const Wm = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
18555
18550
  e
18556
18551
  ),
18557
18552
  ...t,
18558
- children: /* @__PURE__ */ u.jsx(_s, { className: "h-4 w-4" })
18553
+ children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4" })
18559
18554
  }
18560
18555
  ));
18561
18556
  Wm.displayName = zm.displayName;
@@ -18606,7 +18601,7 @@ const uR = m.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
18606
18601
  ),
18607
18602
  ...n,
18608
18603
  children: [
18609
- /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(aR, { children: /* @__PURE__ */ u.jsx(js, { className: "h-4 w-4" }) }) }),
18604
+ /* @__PURE__ */ u.jsx("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ u.jsx(aR, { children: /* @__PURE__ */ u.jsx(As, { className: "h-4 w-4" }) }) }),
18610
18605
  /* @__PURE__ */ u.jsx(sR, { children: t })
18611
18606
  ]
18612
18607
  }
@@ -18655,7 +18650,7 @@ const mR = m.forwardRef(
18655
18650
  )
18656
18651
  );
18657
18652
  mR.displayName = Km.displayName;
18658
- var pa = "Switch", [gR, BN] = gn(pa), [xR, vR] = gR(pa), qm = m.forwardRef(
18653
+ var fa = "Switch", [gR, BN] = gn(fa), [xR, vR] = gR(fa), qm = m.forwardRef(
18659
18654
  (e, t) => {
18660
18655
  const {
18661
18656
  __scopeSwitch: n,
@@ -18672,7 +18667,7 @@ var pa = "Switch", [gR, BN] = gn(pa), [xR, vR] = gR(pa), qm = m.forwardRef(
18672
18667
  prop: o,
18673
18668
  defaultProp: s ?? !1,
18674
18669
  onChange: c,
18675
- caller: pa
18670
+ caller: fa
18676
18671
  });
18677
18672
  return /* @__PURE__ */ u.jsxs(xR, { scope: n, checked: b, disabled: i, children: [
18678
18673
  /* @__PURE__ */ u.jsx(
@@ -18710,7 +18705,7 @@ var pa = "Switch", [gR, BN] = gn(pa), [xR, vR] = gR(pa), qm = m.forwardRef(
18710
18705
  ] });
18711
18706
  }
18712
18707
  );
18713
- qm.displayName = pa;
18708
+ qm.displayName = fa;
18714
18709
  var Gm = "SwitchThumb", Ym = m.forwardRef(
18715
18710
  (e, t) => {
18716
18711
  const { __scopeSwitch: n, ...r } = e, o = vR(Gm, n);
@@ -18862,17 +18857,17 @@ const kR = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
18862
18857
  ));
18863
18858
  kR.displayName = rr.displayName;
18864
18859
  const RR = m.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u.jsx(
18865
- sa,
18860
+ oa,
18866
18861
  {
18867
18862
  ref: n,
18868
18863
  className: re("text-sm text-muted-foreground", e),
18869
18864
  ...t
18870
18865
  }
18871
18866
  ));
18872
- RR.displayName = sa.displayName;
18873
- var [ha, UN] = gn("Tooltip", [
18867
+ RR.displayName = oa.displayName;
18868
+ var [pa, UN] = gn("Tooltip", [
18874
18869
  Hr
18875
- ]), ma = Hr(), eg = "TooltipProvider", IR = 700, Ci = "tooltip.open", [NR, Bl] = ha(eg), tg = (e) => {
18870
+ ]), ha = Hr(), eg = "TooltipProvider", IR = 700, Ci = "tooltip.open", [NR, Bl] = pa(eg), tg = (e) => {
18876
18871
  const {
18877
18872
  __scopeTooltip: t,
18878
18873
  delayDuration: n = IR,
@@ -18908,7 +18903,7 @@ var [ha, UN] = gn("Tooltip", [
18908
18903
  );
18909
18904
  };
18910
18905
  tg.displayName = eg;
18911
- var go = "Tooltip", [AR, ga] = ha(go), ng = (e) => {
18906
+ var go = "Tooltip", [AR, ma] = pa(go), ng = (e) => {
18912
18907
  const {
18913
18908
  __scopeTooltip: t,
18914
18909
  children: n,
@@ -18917,7 +18912,7 @@ var go = "Tooltip", [AR, ga] = ha(go), ng = (e) => {
18917
18912
  onOpenChange: s,
18918
18913
  disableHoverableContent: a,
18919
18914
  delayDuration: i
18920
- } = e, l = Bl(go, e.__scopeTooltip), c = ma(t), [d, p] = m.useState(null), h = Lt(), f = m.useRef(0), v = a ?? l.disableHoverableContent, g = i ?? l.delayDuration, x = m.useRef(!1), [b, w] = Dn({
18915
+ } = e, l = Bl(go, e.__scopeTooltip), c = ha(t), [d, p] = m.useState(null), h = Lt(), f = m.useRef(0), v = a ?? l.disableHoverableContent, g = i ?? l.delayDuration, x = m.useRef(!1), [b, w] = Dn({
18921
18916
  prop: r,
18922
18917
  defaultProp: o ?? !1,
18923
18918
  onChange: (E) => {
@@ -18960,7 +18955,7 @@ var go = "Tooltip", [AR, ga] = ha(go), ng = (e) => {
18960
18955
  ng.displayName = go;
18961
18956
  var Ei = "TooltipTrigger", rg = m.forwardRef(
18962
18957
  (e, t) => {
18963
- const { __scopeTooltip: n, ...r } = e, o = ga(Ei, n), s = Bl(Ei, n), a = ma(n), i = m.useRef(null), l = Be(t, i, o.onTriggerChange), c = m.useRef(!1), d = m.useRef(!1), p = m.useCallback(() => c.current = !1, []);
18958
+ const { __scopeTooltip: n, ...r } = e, o = ma(Ei, n), s = Bl(Ei, n), a = ha(n), i = m.useRef(null), l = Be(t, i, o.onTriggerChange), c = m.useRef(!1), d = m.useRef(!1), p = m.useCallback(() => c.current = !1, []);
18964
18959
  return m.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ u.jsx(Ji, { asChild: !0, ...a, children: /* @__PURE__ */ u.jsx(
18965
18960
  ge.button,
18966
18961
  {
@@ -18987,15 +18982,15 @@ var Ei = "TooltipTrigger", rg = m.forwardRef(
18987
18982
  }
18988
18983
  );
18989
18984
  rg.displayName = Ei;
18990
- var jR = "TooltipPortal", [WN, _R] = ha(jR, {
18985
+ var jR = "TooltipPortal", [WN, _R] = pa(jR, {
18991
18986
  forceMount: void 0
18992
18987
  }), Mr = "TooltipContent", og = m.forwardRef(
18993
18988
  (e, t) => {
18994
- const n = _R(Mr, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = ga(Mr, e.__scopeTooltip);
18989
+ const n = _R(Mr, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...s } = e, a = ma(Mr, e.__scopeTooltip);
18995
18990
  return /* @__PURE__ */ u.jsx(Gt, { present: r || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ u.jsx(sg, { side: o, ...s, ref: t }) : /* @__PURE__ */ u.jsx(PR, { side: o, ...s, ref: t }) });
18996
18991
  }
18997
18992
  ), PR = m.forwardRef((e, t) => {
18998
- const n = ga(Mr, e.__scopeTooltip), r = Bl(Mr, e.__scopeTooltip), o = m.useRef(null), s = Be(t, o), [a, i] = m.useState(null), { trigger: l, onClose: c } = n, d = o.current, { onPointerInTransitChange: p } = r, h = m.useCallback(() => {
18993
+ const n = ma(Mr, e.__scopeTooltip), r = Bl(Mr, e.__scopeTooltip), o = m.useRef(null), s = Be(t, o), [a, i] = m.useState(null), { trigger: l, onClose: c } = n, d = o.current, { onPointerInTransitChange: p } = r, h = m.useCallback(() => {
18999
18994
  i(null), p(!1);
19000
18995
  }, [p]), f = m.useCallback(
19001
18996
  (v, g) => {
@@ -19020,7 +19015,7 @@ var jR = "TooltipPortal", [WN, _R] = ha(jR, {
19020
19015
  return document.addEventListener("pointermove", v), () => document.removeEventListener("pointermove", v);
19021
19016
  }
19022
19017
  }, [l, d, a, c, h]), /* @__PURE__ */ u.jsx(sg, { ...e, ref: s });
19023
- }), [MR, OR] = ha(go, { isInside: !1 }), DR = Hg("TooltipContent"), sg = m.forwardRef(
19018
+ }), [MR, OR] = pa(go, { isInside: !1 }), DR = Hg("TooltipContent"), sg = m.forwardRef(
19024
19019
  (e, t) => {
19025
19020
  const {
19026
19021
  __scopeTooltip: n,
@@ -19029,7 +19024,7 @@ var jR = "TooltipPortal", [WN, _R] = ha(jR, {
19029
19024
  onEscapeKeyDown: s,
19030
19025
  onPointerDownOutside: a,
19031
19026
  ...i
19032
- } = e, l = ga(Mr, n), c = ma(n), { onClose: d } = l;
19027
+ } = e, l = ma(Mr, n), c = ha(n), { onClose: d } = l;
19033
19028
  return m.useEffect(() => (document.addEventListener(Ci, d), () => document.removeEventListener(Ci, d)), [d]), m.useEffect(() => {
19034
19029
  if (l.trigger) {
19035
19030
  const p = (h) => {
@@ -19075,7 +19070,7 @@ var jR = "TooltipPortal", [WN, _R] = ha(jR, {
19075
19070
  og.displayName = Mr;
19076
19071
  var ag = "TooltipArrow", LR = m.forwardRef(
19077
19072
  (e, t) => {
19078
- const { __scopeTooltip: n, ...r } = e, o = ma(n);
19073
+ const { __scopeTooltip: n, ...r } = e, o = ha(n);
19079
19074
  return OR(
19080
19075
  ag,
19081
19076
  n
@@ -19189,7 +19184,7 @@ const VN = WR, KN = VR, qN = KR, qR = m.forwardRef(({ className: e, sideOffset:
19189
19184
  }
19190
19185
  ));
19191
19186
  qR.displayName = ig.displayName;
19192
- var zl = "ToastProvider", [Hl, GR, YR] = Bs("Toast"), [lg, GN] = gn("Toast", [YR]), [XR, xa] = lg(zl), cg = (e) => {
19187
+ var zl = "ToastProvider", [Hl, GR, YR] = Fs("Toast"), [lg, GN] = gn("Toast", [YR]), [XR, ga] = lg(zl), cg = (e) => {
19193
19188
  const {
19194
19189
  __scopeToast: t,
19195
19190
  label: n = "Notification",
@@ -19227,7 +19222,7 @@ var ug = "ToastViewport", JR = ["F8"], ki = "toast.viewportPause", Ri = "toast.v
19227
19222
  hotkey: r = JR,
19228
19223
  label: o = "Notifications ({hotkey})",
19229
19224
  ...s
19230
- } = e, a = xa(ug, n), i = GR(n), l = m.useRef(null), c = m.useRef(null), d = m.useRef(null), p = m.useRef(null), h = Be(t, p, a.onViewportChange), f = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), v = a.toastCount > 0;
19225
+ } = e, a = ga(ug, n), i = GR(n), l = m.useRef(null), c = m.useRef(null), d = m.useRef(null), p = m.useRef(null), h = Be(t, p, a.onViewportChange), f = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), v = a.toastCount > 0;
19231
19226
  m.useEffect(() => {
19232
19227
  const x = (b) => {
19233
19228
  var y;
@@ -19280,7 +19275,7 @@ var ug = "ToastViewport", JR = ["F8"], ki = "toast.viewportPause", Ri = "toast.v
19280
19275
  return;
19281
19276
  }
19282
19277
  const U = g({ tabbingDirection: A ? "backwards" : "forwards" }), q = U.findIndex((I) => I === N);
19283
- qa(U.slice(q + 1)) ? w.preventDefault() : A ? (T = c.current) == null || T.focus() : (E = d.current) == null || E.focus();
19278
+ Ka(U.slice(q + 1)) ? w.preventDefault() : A ? (T = c.current) == null || T.focus() : (E = d.current) == null || E.focus();
19284
19279
  }
19285
19280
  };
19286
19281
  return x.addEventListener("keydown", b), () => x.removeEventListener("keydown", b);
@@ -19302,7 +19297,7 @@ var ug = "ToastViewport", JR = ["F8"], ki = "toast.viewportPause", Ri = "toast.v
19302
19297
  const x = g({
19303
19298
  tabbingDirection: "forwards"
19304
19299
  });
19305
- qa(x);
19300
+ Ka(x);
19306
19301
  }
19307
19302
  }
19308
19303
  ),
@@ -19315,7 +19310,7 @@ var ug = "ToastViewport", JR = ["F8"], ki = "toast.viewportPause", Ri = "toast.v
19315
19310
  const x = g({
19316
19311
  tabbingDirection: "backwards"
19317
19312
  });
19318
- qa(x);
19313
+ Ka(x);
19319
19314
  }
19320
19315
  }
19321
19316
  )
@@ -19327,9 +19322,9 @@ var ug = "ToastViewport", JR = ["F8"], ki = "toast.viewportPause", Ri = "toast.v
19327
19322
  dg.displayName = ug;
19328
19323
  var fg = "ToastFocusProxy", Ii = m.forwardRef(
19329
19324
  (e, t) => {
19330
- const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, s = xa(fg, n);
19325
+ const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, s = ga(fg, n);
19331
19326
  return /* @__PURE__ */ u.jsx(
19332
- ca,
19327
+ la,
19333
19328
  {
19334
19329
  tabIndex: 0,
19335
19330
  ...o,
@@ -19400,7 +19395,7 @@ var [nI, rI] = lg($o, {
19400
19395
  onSwipeCancel: h,
19401
19396
  onSwipeEnd: f,
19402
19397
  ...v
19403
- } = e, g = xa($o, n), [x, b] = m.useState(null), w = Be(t, (I) => b(I)), y = m.useRef(null), C = m.useRef(null), S = o || g.duration, T = m.useRef(0), E = m.useRef(S), N = m.useRef(0), { onToastAdd: A, onToastRemove: D } = g, F = vt(() => {
19398
+ } = e, g = ga($o, n), [x, b] = m.useState(null), w = Be(t, (I) => b(I)), y = m.useRef(null), C = m.useRef(null), S = o || g.duration, T = m.useRef(0), E = m.useRef(S), N = m.useRef(0), { onToastAdd: A, onToastRemove: D } = g, F = vt(() => {
19404
19399
  var Y;
19405
19400
  (x == null ? void 0 : x.contains(document.activeElement)) && ((Y = g.viewport) == null || Y.focus()), a();
19406
19401
  }), U = m.useCallback(
@@ -19495,11 +19490,11 @@ var [nI, rI] = lg($o, {
19495
19490
  ] }) : null;
19496
19491
  }
19497
19492
  ), sI = (e) => {
19498
- const { __scopeToast: t, children: n, ...r } = e, o = xa($o, t), [s, a] = m.useState(!1), [i, l] = m.useState(!1);
19493
+ const { __scopeToast: t, children: n, ...r } = e, o = ga($o, t), [s, a] = m.useState(!1), [i, l] = m.useState(!1);
19499
19494
  return lI(() => a(!0)), m.useEffect(() => {
19500
19495
  const c = window.setTimeout(() => l(!0), 1e3);
19501
19496
  return () => window.clearTimeout(c);
19502
- }, []), i ? null : /* @__PURE__ */ u.jsx(Io, { asChild: !0, children: /* @__PURE__ */ u.jsx(ca, { ...r, children: s && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
19497
+ }, []), i ? null : /* @__PURE__ */ u.jsx(Io, { asChild: !0, children: /* @__PURE__ */ u.jsx(la, { ...r, children: s && /* @__PURE__ */ u.jsxs(u.Fragment, { children: [
19503
19498
  o.label,
19504
19499
  " ",
19505
19500
  n
@@ -19599,7 +19594,7 @@ function uI(e) {
19599
19594
  for (; n.nextNode(); ) t.push(n.currentNode);
19600
19595
  return t;
19601
19596
  }
19602
- function qa(e) {
19597
+ function Ka(e) {
19603
19598
  const t = document.activeElement;
19604
19599
  return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
19605
19600
  }
@@ -19890,10 +19885,10 @@ var UI = (e) => {
19890
19885
  } : () => {
19891
19886
  var xe;
19892
19887
  le(), (xe = f.onDismiss) == null || xe.call(f, f);
19893
- }, className: cn(k == null ? void 0 : k.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = H == null ? void 0 : H.close) != null ? s : kI) : null, f.jsx || wa(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : O.createElement(O.Fragment, null, Pe || f.icon || f.promise ? O.createElement("div", { "data-icon": "", className: cn(k == null ? void 0 : k.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || We() : null, f.type !== "loading" ? f.icon || (H == null ? void 0 : H[Pe]) || wI(Pe) : null) : null, O.createElement("div", { "data-content": "", className: cn(k == null ? void 0 : k.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, O.createElement("div", { "data-title": "", className: cn(k == null ? void 0 : k.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? O.createElement("div", { "data-description": "", className: cn(q, At, k == null ? void 0 : k.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), wa(f.cancel) ? f.cancel : f.cancel && Xo(f.cancel) ? O.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || D, onClick: (xe) => {
19888
+ }, className: cn(k == null ? void 0 : k.closeButton, (o = f == null ? void 0 : f.classNames) == null ? void 0 : o.closeButton) }, (s = H == null ? void 0 : H.close) != null ? s : kI) : null, f.jsx || va(f.title) ? f.jsx ? f.jsx : typeof f.title == "function" ? f.title() : f.title : O.createElement(O.Fragment, null, Pe || f.icon || f.promise ? O.createElement("div", { "data-icon": "", className: cn(k == null ? void 0 : k.icon, (a = f == null ? void 0 : f.classNames) == null ? void 0 : a.icon) }, f.promise || f.type === "loading" && !f.icon ? f.icon || We() : null, f.type !== "loading" ? f.icon || (H == null ? void 0 : H[Pe]) || wI(Pe) : null) : null, O.createElement("div", { "data-content": "", className: cn(k == null ? void 0 : k.content, (i = f == null ? void 0 : f.classNames) == null ? void 0 : i.content) }, O.createElement("div", { "data-title": "", className: cn(k == null ? void 0 : k.title, (l = f == null ? void 0 : f.classNames) == null ? void 0 : l.title) }, typeof f.title == "function" ? f.title() : f.title), f.description ? O.createElement("div", { "data-description": "", className: cn(q, At, k == null ? void 0 : k.description, (c = f == null ? void 0 : f.classNames) == null ? void 0 : c.description) }, typeof f.description == "function" ? f.description() : f.description) : null), va(f.cancel) ? f.cancel : f.cancel && Xo(f.cancel) ? O.createElement("button", { "data-button": !0, "data-cancel": !0, style: f.cancelButtonStyle || D, onClick: (xe) => {
19894
19889
  var pe, ye;
19895
19890
  Xo(f.cancel) && De && ((ye = (pe = f.cancel).onClick) == null || ye.call(pe, xe), le());
19896
- }, className: cn(k == null ? void 0 : k.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, wa(f.action) ? f.action : f.action && Xo(f.action) ? O.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || F, onClick: (xe) => {
19891
+ }, className: cn(k == null ? void 0 : k.cancelButton, (d = f == null ? void 0 : f.classNames) == null ? void 0 : d.cancelButton) }, f.cancel.label) : null, va(f.action) ? f.action : f.action && Xo(f.action) ? O.createElement("button", { "data-button": !0, "data-action": !0, style: f.actionButtonStyle || F, onClick: (xe) => {
19897
19892
  var pe, ye;
19898
19893
  Xo(f.action) && ((ye = (pe = f.action).onClick) == null || ye.call(pe, xe), !xe.defaultPrevented && le());
19899
19894
  }, className: cn(k == null ? void 0 : k.actionButton, (p = f == null ? void 0 : f.classNames) == null ? void 0 : p.actionButton) }, f.action.label) : null));
@@ -20036,7 +20031,7 @@ export {
20036
20031
  Il as DialogHeader,
20037
20032
  Nl as DialogTitle,
20038
20033
  ll as DropdownMenu,
20039
- Zs as DropdownMenuContent,
20034
+ Js as DropdownMenuContent,
20040
20035
  nr as DropdownMenuItem,
20041
20036
  cl as DropdownMenuTrigger,
20042
20037
  VC as FileViewerModal,
@@ -20066,7 +20061,7 @@ export {
20066
20061
  kR as SheetTitle,
20067
20062
  HN as SheetTrigger,
20068
20063
  MN as SimpleChat,
20069
- Rs as SimpleJsonView,
20064
+ hi as SimpleJsonView,
20070
20065
  XN as Sonner,
20071
20066
  gE as StreamProgress,
20072
20067
  yR as Switch,
@@ -20109,17 +20104,17 @@ export {
20109
20104
  tw as listFiles,
20110
20105
  Ww as loadStoredSettings,
20111
20106
  Xv as onChatTokenChanged,
20112
- Ca as post,
20107
+ Ta as post,
20113
20108
  ow as processAttachments,
20114
20109
  Qv as put,
20115
20110
  dx as readNumber,
20116
20111
  Yn as readString,
20117
20112
  An as resolveChatBaseUrl,
20118
20113
  Vw as saveSettings,
20119
- ti as setChatToken,
20114
+ ei as setChatToken,
20120
20115
  er as toPlainObject,
20121
20116
  Ut as unwrap,
20122
- $s as useApi,
20117
+ Ls as useApi,
20123
20118
  ux as useCheckpointIndex,
20124
20119
  bE as useFilePreview,
20125
20120
  EN as useHasChatSession,
@@ -20129,7 +20124,7 @@ export {
20129
20124
  $w as useStreamingHook,
20130
20125
  Aw as useThreadHistoryState,
20131
20126
  Ek as useThreadManagerViewState,
20132
- Fs as useThreadState,
20127
+ $s as useThreadState,
20133
20128
  jw as useThreadStateUpdater,
20134
20129
  Eo as useThreads,
20135
20130
  fw as useThreadsState,