teodor-new-chat-ui 3.0.116 → 3.0.117

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
@@ -1,5 +1,5 @@
1
1
  import * as f from "react";
2
- import X, { useState as he, useRef as Fe, useCallback as De, useEffect as qe, useReducer as Bp, useMemo as an, createContext as Sl, useContext as Cl, createElement as ho, useLayoutEffect as Tl } from "react";
2
+ import X, { useState as he, useRef as Fe, useCallback as De, useEffect as We, useReducer as Bp, useMemo as an, createContext as Sl, useContext as Cl, createElement as ho, useLayoutEffect as Tl } from "react";
3
3
  import { Square as $p, Send as Hp, X as Xn, ExternalLink as zp, Download as Up, Image as Rl, FileText as Ka, Loader as Wp, ChevronUp as Sr, ChevronDown as Yn, Copy as qa, Edit as Ya, RotateCcw as ci, Bot as Xa, Wrench as Vp, User as Gp, ChevronRight as Kp, Check as Wi, Circle as qp, Edit3 as El, Paperclip as Ja, Loader2 as Yp, Plus as Xp, FileSpreadsheet as Jp, MessageSquarePlus as Zp, MessageSquare as Qp, Calendar as em, Trash2 as tm, PanelLeft as nm, Settings as rm, Server as om, EyeOff as sm, Eye as im, Layout as am, MessageCircle as cm, Save as lm } from "lucide-react";
4
4
  import { Slot as ir, createSlot as tr, createSlottable as um } from "@radix-ui/react-slot";
5
5
  import { cva as zr } from "class-variance-authority";
@@ -63,8 +63,8 @@ function pm() {
63
63
  {
64
64
  var be = x.ReactDebugCurrentFrame, Me = be.getStackAddendum();
65
65
  Me !== "" && (q += "%s", se = se.concat([Me]));
66
- var He = se.map(function(ke) {
67
- return String(ke);
66
+ var He = se.map(function(Ae) {
67
+ return String(Ae);
68
68
  });
69
69
  He.unshift("Warning: " + q), Function.prototype.apply.call(console[R], console, He);
70
70
  }
@@ -123,9 +123,9 @@ function pm() {
123
123
  var be = R.displayName || null;
124
124
  return be !== null ? be : U(R.type) || "Memo";
125
125
  case m: {
126
- var Me = R, He = Me._payload, ke = Me._init;
126
+ var Me = R, He = Me._payload, Ae = Me._init;
127
127
  try {
128
- return U(ke(He));
128
+ return U(Ae(He));
129
129
  } catch {
130
130
  return null;
131
131
  }
@@ -196,7 +196,7 @@ function pm() {
196
196
  }
197
197
  }
198
198
  var de = x.ReactCurrentDispatcher, z;
199
- function A(R, q, se) {
199
+ function k(R, q, se) {
200
200
  {
201
201
  if (z === void 0)
202
202
  try {
@@ -230,27 +230,27 @@ function pm() {
230
230
  He = de.current, de.current = null, B();
231
231
  try {
232
232
  if (q) {
233
- var ke = function() {
233
+ var Ae = function() {
234
234
  throw Error();
235
235
  };
236
- if (Object.defineProperty(ke.prototype, "props", {
236
+ if (Object.defineProperty(Ae.prototype, "props", {
237
237
  set: function() {
238
238
  throw Error();
239
239
  }
240
240
  }), typeof Reflect == "object" && Reflect.construct) {
241
241
  try {
242
- Reflect.construct(ke, []);
242
+ Reflect.construct(Ae, []);
243
243
  } catch (sn) {
244
244
  be = sn;
245
245
  }
246
- Reflect.construct(R, [], ke);
246
+ Reflect.construct(R, [], Ae);
247
247
  } else {
248
248
  try {
249
- ke.call();
249
+ Ae.call();
250
250
  } catch (sn) {
251
251
  be = sn;
252
252
  }
253
- R.call(ke.prototype);
253
+ R.call(Ae.prototype);
254
254
  }
255
255
  } else {
256
256
  try {
@@ -282,7 +282,7 @@ function pm() {
282
282
  } finally {
283
283
  V = !1, de.current = He, Q(), Error.prepareStackTrace = Me;
284
284
  }
285
- var Wn = R ? R.displayName || R.name : "", Ga = Wn ? A(Wn) : "";
285
+ var Wn = R ? R.displayName || R.name : "", Ga = Wn ? k(Wn) : "";
286
286
  return typeof R == "function" && ee.set(R, Ga), Ga;
287
287
  }
288
288
  function Te(R, q, se) {
@@ -298,12 +298,12 @@ function pm() {
298
298
  if (typeof R == "function")
299
299
  return oe(R, Pe(R));
300
300
  if (typeof R == "string")
301
- return A(R);
301
+ return k(R);
302
302
  switch (R) {
303
303
  case u:
304
- return A("Suspense");
304
+ return k("Suspense");
305
305
  case d:
306
- return A("SuspenseList");
306
+ return k("SuspenseList");
307
307
  }
308
308
  if (typeof R == "object")
309
309
  switch (R.$$typeof) {
@@ -332,19 +332,19 @@ function pm() {
332
332
  function Be(R, q, se, be, Me) {
333
333
  {
334
334
  var He = Function.call.bind(le);
335
- for (var ke in R)
336
- if (He(R, ke)) {
335
+ for (var Ae in R)
336
+ if (He(R, Ae)) {
337
337
  var Ie = void 0;
338
338
  try {
339
- if (typeof R[ke] != "function") {
340
- var ft = Error((be || "React class") + ": " + se + " type `" + ke + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[ke] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
339
+ if (typeof R[Ae] != "function") {
340
+ var ft = Error((be || "React class") + ": " + se + " type `" + Ae + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof R[Ae] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
341
341
  throw ft.name = "Invariant Violation", ft;
342
342
  }
343
- Ie = R[ke](q, ke, be, se, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
343
+ Ie = R[Ae](q, Ae, be, se, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
344
344
  } catch (Xe) {
345
345
  Ie = Xe;
346
346
  }
347
- Ie && !(Ie instanceof Error) && (we(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", be || "React class", se, ke, typeof Ie), we(null)), Ie instanceof Error && !(Ie.message in me) && (me[Ie.message] = !0, we(Me), w("Failed %s type: %s", se, Ie.message), we(null));
347
+ Ie && !(Ie instanceof Error) && (we(Me), w("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", be || "React class", se, Ae, typeof Ie), we(null)), Ie instanceof Error && !(Ie.message in me) && (me[Ie.message] = !0, we(Me), w("Failed %s type: %s", se, Ie.message), we(null));
348
348
  }
349
349
  }
350
350
  }
@@ -419,7 +419,7 @@ function pm() {
419
419
  });
420
420
  }
421
421
  }
422
- var dn = function(R, q, se, be, Me, He, ke) {
422
+ var dn = function(R, q, se, be, Me, He, Ae) {
423
423
  var Ie = {
424
424
  // This tag allows us to uniquely identify this as a React Element
425
425
  $$typeof: t,
@@ -427,7 +427,7 @@ function pm() {
427
427
  type: R,
428
428
  key: q,
429
429
  ref: se,
430
- props: ke,
430
+ props: Ae,
431
431
  // Record the component responsible for creating this element.
432
432
  _owner: He
433
433
  };
@@ -450,36 +450,36 @@ function pm() {
450
450
  };
451
451
  function mr(R, q, se, be, Me) {
452
452
  {
453
- var He, ke = {}, Ie = null, ft = null;
453
+ var He, Ae = {}, Ie = null, ft = null;
454
454
  se !== void 0 && ($e(se), Ie = "" + se), rt(q) && ($e(q.key), Ie = "" + q.key), Gt(q) && (ft = q.ref, yt(q, Me));
455
455
  for (He in q)
456
- le.call(q, He) && !wt.hasOwnProperty(He) && (ke[He] = q[He]);
456
+ le.call(q, He) && !wt.hasOwnProperty(He) && (Ae[He] = q[He]);
457
457
  if (R && R.defaultProps) {
458
458
  var Xe = R.defaultProps;
459
459
  for (He in Xe)
460
- ke[He] === void 0 && (ke[He] = Xe[He]);
460
+ Ae[He] === void 0 && (Ae[He] = Xe[He]);
461
461
  }
462
462
  if (Ie || ft) {
463
463
  var et = typeof R == "function" ? R.displayName || R.name || "Unknown" : R;
464
- Ie && it(ke, et), ft && St(ke, et);
464
+ Ie && it(Ae, et), ft && St(Ae, et);
465
465
  }
466
- return dn(R, Ie, ft, Me, be, Ue.current, ke);
466
+ return dn(R, Ie, ft, Me, be, Ue.current, Ae);
467
467
  }
468
468
  }
469
- var fn = x.ReactCurrentOwner, Ge = x.ReactDebugCurrentFrame;
469
+ var fn = x.ReactCurrentOwner, Ke = x.ReactDebugCurrentFrame;
470
470
  function Kt(R) {
471
471
  if (R) {
472
472
  var q = R._owner, se = je(R.type, R._source, q ? q.type : null);
473
- Ge.setExtraStackFrame(se);
473
+ Ke.setExtraStackFrame(se);
474
474
  } else
475
- Ge.setExtraStackFrame(null);
475
+ Ke.setExtraStackFrame(null);
476
476
  }
477
477
  var ce;
478
478
  ce = !1;
479
479
  function ue(R) {
480
480
  return typeof R == "object" && R !== null && R.$$typeof === t;
481
481
  }
482
- function Ae() {
482
+ function ke() {
483
483
  {
484
484
  if (fn.current) {
485
485
  var R = U(fn.current.type);
@@ -497,7 +497,7 @@ Check the render method of \`` + R + "`.";
497
497
  var hn = {};
498
498
  function gr(R) {
499
499
  {
500
- var q = Ae();
500
+ var q = ke();
501
501
  if (!q) {
502
502
  var se = typeof R == "string" ? R : R.displayName || R.name;
503
503
  se && (q = `
@@ -534,8 +534,8 @@ Check the top-level render call using <` + se + ">.");
534
534
  else if (R) {
535
535
  var Me = p(R);
536
536
  if (typeof Me == "function" && Me !== R.entries)
537
- for (var He = Me.call(R), ke; !(ke = He.next()).done; )
538
- ue(ke.value) && zn(ke.value, q);
537
+ for (var He = Me.call(R), Ae; !(Ae = He.next()).done; )
538
+ ue(Ae.value) && zn(Ae.value, q);
539
539
  }
540
540
  }
541
541
  }
@@ -578,19 +578,19 @@ Check the top-level render call using <` + se + ">.");
578
578
  }
579
579
  function Un(R, q, se, be, Me, He) {
580
580
  {
581
- var ke = j(R);
582
- if (!ke) {
581
+ var Ae = j(R);
582
+ if (!Ae) {
583
583
  var Ie = "";
584
584
  (R === void 0 || typeof R == "object" && R !== null && Object.keys(R).length === 0) && (Ie += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
585
585
  var ft = Ye();
586
- ft ? Ie += ft : Ie += Ae();
586
+ ft ? Ie += ft : Ie += ke();
587
587
  var Xe;
588
588
  R === null ? Xe = "null" : Qe(R) ? Xe = "array" : R !== void 0 && R.$$typeof === t ? (Xe = "<" + (U(R.type) || "Unknown") + " />", Ie = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof R, w("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, Ie);
589
589
  }
590
590
  var et = mr(R, q, se, Me, He);
591
591
  if (et == null)
592
592
  return et;
593
- if (ke) {
593
+ if (Ae) {
594
594
  var Nt = q.children;
595
595
  if (Nt !== void 0)
596
596
  if (be)
@@ -630,12 +630,12 @@ const { toString: mm } = Object.prototype, { getPrototypeOf: Vi } = Object, { it
630
630
  function Ur(e) {
631
631
  return e !== null && !nr(e) && e.constructor !== null && !nr(e.constructor) && gt(e.constructor.isBuffer) && e.constructor.isBuffer(e);
632
632
  }
633
- const kl = Ut("ArrayBuffer");
633
+ const Al = Ut("ArrayBuffer");
634
634
  function gm(e) {
635
635
  let t;
636
- return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && kl(e.buffer), t;
636
+ return typeof ArrayBuffer < "u" && ArrayBuffer.isView ? t = ArrayBuffer.isView(e) : t = e && e.buffer && Al(e.buffer), t;
637
637
  }
638
- const vm = Qo("string"), gt = Qo("function"), Al = Qo("number"), Wr = (e) => e !== null && typeof e == "object", xm = (e) => e === !0 || e === !1, po = (e) => {
638
+ const vm = Qo("string"), gt = Qo("function"), kl = Qo("number"), Wr = (e) => e !== null && typeof e == "object", xm = (e) => e === !0 || e === !1, po = (e) => {
639
639
  if (Zo(e) !== "object")
640
640
  return !1;
641
641
  const t = Vi(e);
@@ -652,7 +652,7 @@ const vm = Qo("string"), gt = Qo("function"), Al = Qo("number"), Wr = (e) => e !
652
652
  let t;
653
653
  return e && (typeof FormData == "function" && e instanceof FormData || gt(e.append) && ((t = Zo(e)) === "formdata" || // detect form-data instance
654
654
  t === "object" && gt(e.toString) && e.toString() === "[object FormData]"));
655
- }, Em = Ut("URLSearchParams"), [Im, Nm, jm, km] = ["ReadableStream", "Request", "Response", "Headers"].map(Ut), Am = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
655
+ }, Em = Ut("URLSearchParams"), [Im, Nm, jm, Am] = ["ReadableStream", "Request", "Response", "Headers"].map(Ut), km = (e) => e.trim ? e.trim() : e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, "");
656
656
  function Vr(e, t, { allOwnKeys: n = !1 } = {}) {
657
657
  if (e === null || typeof e > "u")
658
658
  return;
@@ -714,7 +714,7 @@ const Pm = (e, t, n, { allOwnKeys: r } = {}) => (Vr(t, (o, s) => {
714
714
  if (!e) return null;
715
715
  if (ar(e)) return e;
716
716
  let t = e.length;
717
- if (!Al(t)) return null;
717
+ if (!kl(t)) return null;
718
718
  const n = new Array(t);
719
719
  for (; t-- > 0; )
720
720
  n[t] = e[t];
@@ -796,14 +796,14 @@ const Ym = (e) => {
796
796
  }))(`axios@${Math.random()}`, []) : (n) => setTimeout(n))(
797
797
  typeof setImmediate == "function",
798
798
  gt(In.postMessage)
799
- ), Zm = typeof queueMicrotask < "u" ? queueMicrotask.bind(In) : typeof process < "u" && process.nextTick || Ml, Qm = (e) => e != null && gt(e[Jo]), k = {
799
+ ), Zm = typeof queueMicrotask < "u" ? queueMicrotask.bind(In) : typeof process < "u" && process.nextTick || Ml, Qm = (e) => e != null && gt(e[Jo]), A = {
800
800
  isArray: ar,
801
- isArrayBuffer: kl,
801
+ isArrayBuffer: Al,
802
802
  isBuffer: Ur,
803
803
  isFormData: Rm,
804
804
  isArrayBufferView: gm,
805
805
  isString: vm,
806
- isNumber: Al,
806
+ isNumber: kl,
807
807
  isBoolean: xm,
808
808
  isObject: Wr,
809
809
  isPlainObject: po,
@@ -811,7 +811,7 @@ const Ym = (e) => {
811
811
  isReadableStream: Im,
812
812
  isRequest: Nm,
813
813
  isResponse: jm,
814
- isHeaders: km,
814
+ isHeaders: Am,
815
815
  isUndefined: nr,
816
816
  isDate: wm,
817
817
  isFile: ym,
@@ -825,7 +825,7 @@ const Ym = (e) => {
825
825
  forEach: Vr,
826
826
  merge: ui,
827
827
  extend: Pm,
828
- trim: Am,
828
+ trim: km,
829
829
  stripBOM: _m,
830
830
  inherits: Om,
831
831
  toFlatObject: Mm,
@@ -859,7 +859,7 @@ const Ym = (e) => {
859
859
  function Se(e, t, n, r, o) {
860
860
  Error.call(this), Error.captureStackTrace ? Error.captureStackTrace(this, this.constructor) : this.stack = new Error().stack, this.message = e, this.name = "AxiosError", t && (this.code = t), n && (this.config = n), r && (this.request = r), o && (this.response = o, this.status = o.status ? o.status : null);
861
861
  }
862
- k.inherits(Se, Error, {
862
+ A.inherits(Se, Error, {
863
863
  toJSON: function() {
864
864
  return {
865
865
  // Standard
@@ -874,7 +874,7 @@ k.inherits(Se, Error, {
874
874
  columnNumber: this.columnNumber,
875
875
  stack: this.stack,
876
876
  // Axios
877
- config: k.toJSONObject(this.config),
877
+ config: A.toJSONObject(this.config),
878
878
  code: this.code,
879
879
  status: this.status
880
880
  };
@@ -902,7 +902,7 @@ Object.defineProperties(Se, Ll);
902
902
  Object.defineProperty(Dl, "isAxiosError", { value: !0 });
903
903
  Se.from = (e, t, n, r, o, s) => {
904
904
  const i = Object.create(Dl);
905
- k.toFlatObject(e, i, function(d) {
905
+ A.toFlatObject(e, i, function(d) {
906
906
  return d !== Error.prototype;
907
907
  }, (u) => u !== "isAxiosError");
908
908
  const a = e && e.message ? e.message : "Error", l = t == null && e ? e.code : t;
@@ -910,10 +910,10 @@ Se.from = (e, t, n, r, o, s) => {
910
910
  };
911
911
  const eg = null;
912
912
  function di(e) {
913
- return k.isPlainObject(e) || k.isArray(e);
913
+ return A.isPlainObject(e) || A.isArray(e);
914
914
  }
915
915
  function Fl(e) {
916
- return k.endsWith(e, "[]") ? e.slice(0, -2) : e;
916
+ return A.endsWith(e, "[]") ? e.slice(0, -2) : e;
917
917
  }
918
918
  function tc(e, t, n) {
919
919
  return e ? e.concat(t).map(function(o, s) {
@@ -921,42 +921,42 @@ function tc(e, t, n) {
921
921
  }).join(n ? "." : "") : t;
922
922
  }
923
923
  function tg(e) {
924
- return k.isArray(e) && !e.some(di);
924
+ return A.isArray(e) && !e.some(di);
925
925
  }
926
- const ng = k.toFlatObject(k, {}, null, function(t) {
926
+ const ng = A.toFlatObject(A, {}, null, function(t) {
927
927
  return /^is[A-Z]/.test(t);
928
928
  });
929
929
  function es(e, t, n) {
930
- if (!k.isObject(e))
930
+ if (!A.isObject(e))
931
931
  throw new TypeError("target must be an object");
932
- t = t || new FormData(), n = k.toFlatObject(n, {
932
+ t = t || new FormData(), n = A.toFlatObject(n, {
933
933
  metaTokens: !0,
934
934
  dots: !1,
935
935
  indexes: !1
936
936
  }, !1, function(g, p) {
937
- return !k.isUndefined(p[g]);
937
+ return !A.isUndefined(p[g]);
938
938
  });
939
- const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && k.isSpecCompliantForm(t);
940
- if (!k.isFunction(o))
939
+ const r = n.metaTokens, o = n.visitor || d, s = n.dots, i = n.indexes, l = (n.Blob || typeof Blob < "u" && Blob) && A.isSpecCompliantForm(t);
940
+ if (!A.isFunction(o))
941
941
  throw new TypeError("visitor must be a function");
942
942
  function u(b) {
943
943
  if (b === null) return "";
944
- if (k.isDate(b))
944
+ if (A.isDate(b))
945
945
  return b.toISOString();
946
- if (k.isBoolean(b))
946
+ if (A.isBoolean(b))
947
947
  return b.toString();
948
- if (!l && k.isBlob(b))
948
+ if (!l && A.isBlob(b))
949
949
  throw new Se("Blob is not supported. Use a Buffer instead.");
950
- return k.isArrayBuffer(b) || k.isTypedArray(b) ? l && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
950
+ return A.isArrayBuffer(b) || A.isTypedArray(b) ? l && typeof Blob == "function" ? new Blob([b]) : Buffer.from(b) : b;
951
951
  }
952
952
  function d(b, g, p) {
953
953
  let x = b;
954
954
  if (b && !p && typeof b == "object") {
955
- if (k.endsWith(g, "{}"))
955
+ if (A.endsWith(g, "{}"))
956
956
  g = r ? g : g.slice(0, -2), b = JSON.stringify(b);
957
- else if (k.isArray(b) && tg(b) || (k.isFileList(b) || k.endsWith(g, "[]")) && (x = k.toArray(b)))
957
+ else if (A.isArray(b) && tg(b) || (A.isFileList(b) || A.endsWith(g, "[]")) && (x = A.toArray(b)))
958
958
  return g = Fl(g), x.forEach(function(y, E) {
959
- !(k.isUndefined(y) || y === null) && t.append(
959
+ !(A.isUndefined(y) || y === null) && t.append(
960
960
  // eslint-disable-next-line no-nested-ternary
961
961
  i === !0 ? tc([g], E, s) : i === null ? g : g + "[]",
962
962
  u(y)
@@ -971,21 +971,21 @@ function es(e, t, n) {
971
971
  isVisitable: di
972
972
  });
973
973
  function v(b, g) {
974
- if (!k.isUndefined(b)) {
974
+ if (!A.isUndefined(b)) {
975
975
  if (h.indexOf(b) !== -1)
976
976
  throw Error("Circular reference detected in " + g.join("."));
977
- h.push(b), k.forEach(b, function(x, w) {
978
- (!(k.isUndefined(x) || x === null) && o.call(
977
+ h.push(b), A.forEach(b, function(x, w) {
978
+ (!(A.isUndefined(x) || x === null) && o.call(
979
979
  t,
980
980
  x,
981
- k.isString(w) ? w.trim() : w,
981
+ A.isString(w) ? w.trim() : w,
982
982
  g,
983
983
  m
984
984
  )) === !0 && v(x, g ? g.concat(w) : [w]);
985
985
  }), h.pop();
986
986
  }
987
987
  }
988
- if (!k.isObject(e))
988
+ if (!A.isObject(e))
989
989
  throw new TypeError("data must be an object");
990
990
  return v(e), t;
991
991
  }
@@ -1025,12 +1025,12 @@ function $l(e, t, n) {
1025
1025
  if (!t)
1026
1026
  return e;
1027
1027
  const r = n && n.encode || rg;
1028
- k.isFunction(n) && (n = {
1028
+ A.isFunction(n) && (n = {
1029
1029
  serialize: n
1030
1030
  });
1031
1031
  const o = n && n.serialize;
1032
1032
  let s;
1033
- if (o ? s = o(t, n) : s = k.isURLSearchParams(t) ? t.toString() : new Gi(t, n).toString(r), s) {
1033
+ if (o ? s = o(t, n) : s = A.isURLSearchParams(t) ? t.toString() : new Gi(t, n).toString(r), s) {
1034
1034
  const i = e.indexOf("#");
1035
1035
  i !== -1 && (e = e.slice(0, i)), e += (e.indexOf("?") === -1 ? "?" : "&") + s;
1036
1036
  }
@@ -1085,7 +1085,7 @@ class rc {
1085
1085
  * @returns {void}
1086
1086
  */
1087
1087
  forEach(t) {
1088
- k.forEach(this.handlers, function(r) {
1088
+ A.forEach(this.handlers, function(r) {
1089
1089
  r !== null && t(r);
1090
1090
  });
1091
1091
  }
@@ -1117,13 +1117,13 @@ self instanceof WorkerGlobalScope && typeof self.importScripts == "function", ug
1117
1117
  function fg(e, t) {
1118
1118
  return es(e, new ct.classes.URLSearchParams(), {
1119
1119
  visitor: function(n, r, o, s) {
1120
- return ct.isNode && k.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1120
+ return ct.isNode && A.isBuffer(n) ? (this.append(r, n.toString("base64")), !1) : s.defaultVisitor.apply(this, arguments);
1121
1121
  },
1122
1122
  ...t
1123
1123
  });
1124
1124
  }
1125
1125
  function hg(e) {
1126
- return k.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1126
+ return A.matchAll(/\w+|\[(\w*)]/g, e).map((t) => t[0] === "[]" ? "" : t[1] || t[0]);
1127
1127
  }
1128
1128
  function pg(e) {
1129
1129
  const t = {}, n = Object.keys(e);
@@ -1139,20 +1139,20 @@ function zl(e) {
1139
1139
  let i = n[s++];
1140
1140
  if (i === "__proto__") return !0;
1141
1141
  const a = Number.isFinite(+i), l = s >= n.length;
1142
- return i = !i && k.isArray(o) ? o.length : i, l ? (k.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !k.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && k.isArray(o[i]) && (o[i] = pg(o[i])), !a);
1142
+ return i = !i && A.isArray(o) ? o.length : i, l ? (A.hasOwnProp(o, i) ? o[i] = [o[i], r] : o[i] = r, !a) : ((!o[i] || !A.isObject(o[i])) && (o[i] = []), t(n, r, o[i], s) && A.isArray(o[i]) && (o[i] = pg(o[i])), !a);
1143
1143
  }
1144
- if (k.isFormData(e) && k.isFunction(e.entries)) {
1144
+ if (A.isFormData(e) && A.isFunction(e.entries)) {
1145
1145
  const n = {};
1146
- return k.forEachEntry(e, (r, o) => {
1146
+ return A.forEachEntry(e, (r, o) => {
1147
1147
  t(hg(r), o, n, 0);
1148
1148
  }), n;
1149
1149
  }
1150
1150
  return null;
1151
1151
  }
1152
1152
  function mg(e, t, n) {
1153
- if (k.isString(e))
1153
+ if (A.isString(e))
1154
1154
  try {
1155
- return (t || JSON.parse)(e), k.trim(e);
1155
+ return (t || JSON.parse)(e), A.trim(e);
1156
1156
  } catch (r) {
1157
1157
  if (r.name !== "SyntaxError")
1158
1158
  throw r;
@@ -1163,20 +1163,20 @@ const Gr = {
1163
1163
  transitional: Hl,
1164
1164
  adapter: ["xhr", "http", "fetch"],
1165
1165
  transformRequest: [function(t, n) {
1166
- const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = k.isObject(t);
1167
- if (s && k.isHTMLForm(t) && (t = new FormData(t)), k.isFormData(t))
1166
+ const r = n.getContentType() || "", o = r.indexOf("application/json") > -1, s = A.isObject(t);
1167
+ if (s && A.isHTMLForm(t) && (t = new FormData(t)), A.isFormData(t))
1168
1168
  return o ? JSON.stringify(zl(t)) : t;
1169
- if (k.isArrayBuffer(t) || k.isBuffer(t) || k.isStream(t) || k.isFile(t) || k.isBlob(t) || k.isReadableStream(t))
1169
+ if (A.isArrayBuffer(t) || A.isBuffer(t) || A.isStream(t) || A.isFile(t) || A.isBlob(t) || A.isReadableStream(t))
1170
1170
  return t;
1171
- if (k.isArrayBufferView(t))
1171
+ if (A.isArrayBufferView(t))
1172
1172
  return t.buffer;
1173
- if (k.isURLSearchParams(t))
1173
+ if (A.isURLSearchParams(t))
1174
1174
  return n.setContentType("application/x-www-form-urlencoded;charset=utf-8", !1), t.toString();
1175
1175
  let a;
1176
1176
  if (s) {
1177
1177
  if (r.indexOf("application/x-www-form-urlencoded") > -1)
1178
1178
  return fg(t, this.formSerializer).toString();
1179
- if ((a = k.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1179
+ if ((a = A.isFileList(t)) || r.indexOf("multipart/form-data") > -1) {
1180
1180
  const l = this.env && this.env.FormData;
1181
1181
  return es(
1182
1182
  a ? { "files[]": t } : t,
@@ -1189,9 +1189,9 @@ const Gr = {
1189
1189
  }],
1190
1190
  transformResponse: [function(t) {
1191
1191
  const n = this.transitional || Gr.transitional, r = n && n.forcedJSONParsing, o = this.responseType === "json";
1192
- if (k.isResponse(t) || k.isReadableStream(t))
1192
+ if (A.isResponse(t) || A.isReadableStream(t))
1193
1193
  return t;
1194
- if (t && k.isString(t) && (r && !this.responseType || o)) {
1194
+ if (t && A.isString(t) && (r && !this.responseType || o)) {
1195
1195
  const i = !(n && n.silentJSONParsing) && o;
1196
1196
  try {
1197
1197
  return JSON.parse(t, this.parseReviver);
@@ -1225,10 +1225,10 @@ const Gr = {
1225
1225
  }
1226
1226
  }
1227
1227
  };
1228
- k.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1228
+ A.forEach(["delete", "get", "head", "post", "put", "patch"], (e) => {
1229
1229
  Gr.headers[e] = {};
1230
1230
  });
1231
- const gg = k.toObjectSet([
1231
+ const gg = A.toObjectSet([
1232
1232
  "age",
1233
1233
  "authorization",
1234
1234
  "content-length",
@@ -1258,7 +1258,7 @@ function wr(e) {
1258
1258
  return e && String(e).trim().toLowerCase();
1259
1259
  }
1260
1260
  function mo(e) {
1261
- return e === !1 || e == null ? e : k.isArray(e) ? e.map(mo) : String(e);
1261
+ return e === !1 || e == null ? e : A.isArray(e) ? e.map(mo) : String(e);
1262
1262
  }
1263
1263
  function xg(e) {
1264
1264
  const t = /* @__PURE__ */ Object.create(null), n = /([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;
@@ -1269,12 +1269,12 @@ function xg(e) {
1269
1269
  }
1270
1270
  const bg = (e) => /^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());
1271
1271
  function Ms(e, t, n, r, o) {
1272
- if (k.isFunction(r))
1272
+ if (A.isFunction(r))
1273
1273
  return r.call(this, t, n);
1274
- if (o && (t = n), !!k.isString(t)) {
1275
- if (k.isString(r))
1274
+ if (o && (t = n), !!A.isString(t)) {
1275
+ if (A.isString(r))
1276
1276
  return t.indexOf(r) !== -1;
1277
- if (k.isRegExp(r))
1277
+ if (A.isRegExp(r))
1278
1278
  return r.test(t);
1279
1279
  }
1280
1280
  }
@@ -1282,7 +1282,7 @@ function wg(e) {
1282
1282
  return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g, (t, n, r) => n.toUpperCase() + r);
1283
1283
  }
1284
1284
  function yg(e, t) {
1285
- const n = k.toCamelCase(" " + t);
1285
+ const n = A.toCamelCase(" " + t);
1286
1286
  ["get", "set", "has"].forEach((r) => {
1287
1287
  Object.defineProperty(e, r + n, {
1288
1288
  value: function(o, s, i) {
@@ -1302,20 +1302,20 @@ let vt = class {
1302
1302
  const d = wr(l);
1303
1303
  if (!d)
1304
1304
  throw new Error("header name must be a non-empty string");
1305
- const h = k.findKey(o, d);
1305
+ const h = A.findKey(o, d);
1306
1306
  (!h || o[h] === void 0 || u === !0 || u === void 0 && o[h] !== !1) && (o[h || l] = mo(a));
1307
1307
  }
1308
- const i = (a, l) => k.forEach(a, (u, d) => s(u, d, l));
1309
- if (k.isPlainObject(t) || t instanceof this.constructor)
1308
+ const i = (a, l) => A.forEach(a, (u, d) => s(u, d, l));
1309
+ if (A.isPlainObject(t) || t instanceof this.constructor)
1310
1310
  i(t, n);
1311
- else if (k.isString(t) && (t = t.trim()) && !bg(t))
1311
+ else if (A.isString(t) && (t = t.trim()) && !bg(t))
1312
1312
  i(vg(t), n);
1313
- else if (k.isObject(t) && k.isIterable(t)) {
1313
+ else if (A.isObject(t) && A.isIterable(t)) {
1314
1314
  let a = {}, l, u;
1315
1315
  for (const d of t) {
1316
- if (!k.isArray(d))
1316
+ if (!A.isArray(d))
1317
1317
  throw TypeError("Object iterator must return a key-value pair");
1318
- a[u = d[0]] = (l = a[u]) ? k.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
1318
+ a[u = d[0]] = (l = a[u]) ? A.isArray(l) ? [...l, d[1]] : [l, d[1]] : d[1];
1319
1319
  }
1320
1320
  i(a, n);
1321
1321
  } else
@@ -1324,16 +1324,16 @@ let vt = class {
1324
1324
  }
1325
1325
  get(t, n) {
1326
1326
  if (t = wr(t), t) {
1327
- const r = k.findKey(this, t);
1327
+ const r = A.findKey(this, t);
1328
1328
  if (r) {
1329
1329
  const o = this[r];
1330
1330
  if (!n)
1331
1331
  return o;
1332
1332
  if (n === !0)
1333
1333
  return xg(o);
1334
- if (k.isFunction(n))
1334
+ if (A.isFunction(n))
1335
1335
  return n.call(this, o, r);
1336
- if (k.isRegExp(n))
1336
+ if (A.isRegExp(n))
1337
1337
  return n.exec(o);
1338
1338
  throw new TypeError("parser must be boolean|regexp|function");
1339
1339
  }
@@ -1341,7 +1341,7 @@ let vt = class {
1341
1341
  }
1342
1342
  has(t, n) {
1343
1343
  if (t = wr(t), t) {
1344
- const r = k.findKey(this, t);
1344
+ const r = A.findKey(this, t);
1345
1345
  return !!(r && this[r] !== void 0 && (!n || Ms(this, this[r], r, n)));
1346
1346
  }
1347
1347
  return !1;
@@ -1351,11 +1351,11 @@ let vt = class {
1351
1351
  let o = !1;
1352
1352
  function s(i) {
1353
1353
  if (i = wr(i), i) {
1354
- const a = k.findKey(r, i);
1354
+ const a = A.findKey(r, i);
1355
1355
  a && (!n || Ms(r, r[a], a, n)) && (delete r[a], o = !0);
1356
1356
  }
1357
1357
  }
1358
- return k.isArray(t) ? t.forEach(s) : s(t), o;
1358
+ return A.isArray(t) ? t.forEach(s) : s(t), o;
1359
1359
  }
1360
1360
  clear(t) {
1361
1361
  const n = Object.keys(this);
@@ -1368,8 +1368,8 @@ let vt = class {
1368
1368
  }
1369
1369
  normalize(t) {
1370
1370
  const n = this, r = {};
1371
- return k.forEach(this, (o, s) => {
1372
- const i = k.findKey(r, s);
1371
+ return A.forEach(this, (o, s) => {
1372
+ const i = A.findKey(r, s);
1373
1373
  if (i) {
1374
1374
  n[i] = mo(o), delete n[s];
1375
1375
  return;
@@ -1383,8 +1383,8 @@ let vt = class {
1383
1383
  }
1384
1384
  toJSON(t) {
1385
1385
  const n = /* @__PURE__ */ Object.create(null);
1386
- return k.forEach(this, (r, o) => {
1387
- r != null && r !== !1 && (n[o] = t && k.isArray(r) ? r.join(", ") : r);
1386
+ return A.forEach(this, (r, o) => {
1387
+ r != null && r !== !1 && (n[o] = t && A.isArray(r) ? r.join(", ") : r);
1388
1388
  }), n;
1389
1389
  }
1390
1390
  [Symbol.iterator]() {
@@ -1415,11 +1415,11 @@ let vt = class {
1415
1415
  const a = wr(i);
1416
1416
  r[a] || (yg(o, i), r[a] = !0);
1417
1417
  }
1418
- return k.isArray(t) ? t.forEach(s) : s(t), this;
1418
+ return A.isArray(t) ? t.forEach(s) : s(t), this;
1419
1419
  }
1420
1420
  };
1421
1421
  vt.accessor(["Content-Type", "Content-Length", "Accept", "Accept-Encoding", "User-Agent", "Authorization"]);
1422
- k.reduceDescriptors(vt.prototype, ({ value: e }, t) => {
1422
+ A.reduceDescriptors(vt.prototype, ({ value: e }, t) => {
1423
1423
  let n = t[0].toUpperCase() + t.slice(1);
1424
1424
  return {
1425
1425
  get: () => e,
@@ -1428,11 +1428,11 @@ k.reduceDescriptors(vt.prototype, ({ value: e }, t) => {
1428
1428
  }
1429
1429
  };
1430
1430
  });
1431
- k.freezeMethods(vt);
1431
+ A.freezeMethods(vt);
1432
1432
  function Ds(e, t) {
1433
1433
  const n = this || Gr, r = t || n, o = vt.from(r.headers);
1434
1434
  let s = r.data;
1435
- return k.forEach(e, function(a) {
1435
+ return A.forEach(e, function(a) {
1436
1436
  s = a.call(n, s, o.normalize(), t ? t.status : void 0);
1437
1437
  }), o.normalize(), s;
1438
1438
  }
@@ -1442,7 +1442,7 @@ function Ul(e) {
1442
1442
  function cr(e, t, n) {
1443
1443
  Se.call(this, e ?? "canceled", Se.ERR_CANCELED, t, n), this.name = "CanceledError";
1444
1444
  }
1445
- k.inherits(cr, Se, {
1445
+ A.inherits(cr, Se, {
1446
1446
  __CANCEL__: !0
1447
1447
  });
1448
1448
  function Wl(e, t, n) {
@@ -1513,7 +1513,7 @@ const _o = (e, t, n = 3) => {
1513
1513
  total: e,
1514
1514
  loaded: r
1515
1515
  }), t[1]];
1516
- }, ic = (e) => (...t) => k.asap(() => e(...t)), Rg = ct.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ct.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1516
+ }, ic = (e) => (...t) => A.asap(() => e(...t)), Rg = ct.hasStandardBrowserEnv ? /* @__PURE__ */ ((e, t) => (n) => (n = new URL(n, ct.origin), e.protocol === n.protocol && e.host === n.host && (t || e.port === n.port)))(
1517
1517
  new URL(ct.origin),
1518
1518
  ct.navigator && /(msie|trident)/i.test(ct.navigator.userAgent)
1519
1519
  ) : () => !0, Eg = ct.hasStandardBrowserEnv ? (
@@ -1521,7 +1521,7 @@ const _o = (e, t, n = 3) => {
1521
1521
  {
1522
1522
  write(e, t, n, r, o, s) {
1523
1523
  const i = [e + "=" + encodeURIComponent(t)];
1524
- k.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), k.isString(r) && i.push("path=" + r), k.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
1524
+ A.isNumber(n) && i.push("expires=" + new Date(n).toGMTString()), A.isString(r) && i.push("path=" + r), A.isString(o) && i.push("domain=" + o), s === !0 && i.push("secure"), document.cookie = i.join("; ");
1525
1525
  },
1526
1526
  read(e) {
1527
1527
  const t = document.cookie.match(new RegExp("(^|;\\s*)(" + e + ")=([^;]*)"));
@@ -1554,25 +1554,25 @@ function Vl(e, t, n) {
1554
1554
  return e && (r || n == !1) ? Ng(e, t) : t;
1555
1555
  }
1556
1556
  const ac = (e) => e instanceof vt ? { ...e } : e;
1557
- function An(e, t) {
1557
+ function kn(e, t) {
1558
1558
  t = t || {};
1559
1559
  const n = {};
1560
1560
  function r(u, d, h, m) {
1561
- return k.isPlainObject(u) && k.isPlainObject(d) ? k.merge.call({ caseless: m }, u, d) : k.isPlainObject(d) ? k.merge({}, d) : k.isArray(d) ? d.slice() : d;
1561
+ return A.isPlainObject(u) && A.isPlainObject(d) ? A.merge.call({ caseless: m }, u, d) : A.isPlainObject(d) ? A.merge({}, d) : A.isArray(d) ? d.slice() : d;
1562
1562
  }
1563
1563
  function o(u, d, h, m) {
1564
- if (k.isUndefined(d)) {
1565
- if (!k.isUndefined(u))
1564
+ if (A.isUndefined(d)) {
1565
+ if (!A.isUndefined(u))
1566
1566
  return r(void 0, u, h, m);
1567
1567
  } else return r(u, d, h, m);
1568
1568
  }
1569
1569
  function s(u, d) {
1570
- if (!k.isUndefined(d))
1570
+ if (!A.isUndefined(d))
1571
1571
  return r(void 0, d);
1572
1572
  }
1573
1573
  function i(u, d) {
1574
- if (k.isUndefined(d)) {
1575
- if (!k.isUndefined(u))
1574
+ if (A.isUndefined(d)) {
1575
+ if (!A.isUndefined(u))
1576
1576
  return r(void 0, u);
1577
1577
  } else return r(void 0, d);
1578
1578
  }
@@ -1613,33 +1613,33 @@ function An(e, t) {
1613
1613
  validateStatus: a,
1614
1614
  headers: (u, d, h) => o(ac(u), ac(d), h, !0)
1615
1615
  };
1616
- return k.forEach(Object.keys({ ...e, ...t }), function(d) {
1616
+ return A.forEach(Object.keys({ ...e, ...t }), function(d) {
1617
1617
  const h = l[d] || o, m = h(e[d], t[d], d);
1618
- k.isUndefined(m) && h !== a || (n[d] = m);
1618
+ A.isUndefined(m) && h !== a || (n[d] = m);
1619
1619
  }), n;
1620
1620
  }
1621
1621
  const Gl = (e) => {
1622
- const t = An({}, e);
1622
+ const t = kn({}, e);
1623
1623
  let { data: n, withXSRFToken: r, xsrfHeaderName: o, xsrfCookieName: s, headers: i, auth: a } = t;
1624
1624
  if (t.headers = i = vt.from(i), t.url = $l(Vl(t.baseURL, t.url, t.allowAbsoluteUrls), e.params, e.paramsSerializer), a && i.set(
1625
1625
  "Authorization",
1626
1626
  "Basic " + btoa((a.username || "") + ":" + (a.password ? unescape(encodeURIComponent(a.password)) : ""))
1627
- ), k.isFormData(n)) {
1627
+ ), A.isFormData(n)) {
1628
1628
  if (ct.hasStandardBrowserEnv || ct.hasStandardBrowserWebWorkerEnv)
1629
1629
  i.setContentType(void 0);
1630
- else if (k.isFunction(n.getHeaders)) {
1630
+ else if (A.isFunction(n.getHeaders)) {
1631
1631
  const l = n.getHeaders(), u = ["content-type", "content-length"];
1632
1632
  Object.entries(l).forEach(([d, h]) => {
1633
1633
  u.includes(d.toLowerCase()) && i.set(d, h);
1634
1634
  });
1635
1635
  }
1636
1636
  }
1637
- if (ct.hasStandardBrowserEnv && (r && k.isFunction(r) && (r = r(t)), r || r !== !1 && Rg(t.url))) {
1637
+ if (ct.hasStandardBrowserEnv && (r && A.isFunction(r) && (r = r(t)), r || r !== !1 && Rg(t.url))) {
1638
1638
  const l = o && s && Eg.read(s);
1639
1639
  l && i.set(o, l);
1640
1640
  }
1641
1641
  return t;
1642
- }, jg = typeof XMLHttpRequest < "u", kg = jg && function(e) {
1642
+ }, jg = typeof XMLHttpRequest < "u", Ag = jg && function(e) {
1643
1643
  return new Promise(function(n, r) {
1644
1644
  const o = Gl(e);
1645
1645
  let s = o.data;
@@ -1685,9 +1685,9 @@ const Gl = (e) => {
1685
1685
  e,
1686
1686
  p
1687
1687
  )), p = null;
1688
- }, s === void 0 && i.setContentType(null), "setRequestHeader" in p && k.forEach(i.toJSON(), function(E, S) {
1688
+ }, s === void 0 && i.setContentType(null), "setRequestHeader" in p && A.forEach(i.toJSON(), function(E, S) {
1689
1689
  p.setRequestHeader(S, E);
1690
- }), k.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), a && a !== "json" && (p.responseType = o.responseType), u && ([m, b] = _o(u, !0), p.addEventListener("progress", m)), l && p.upload && ([h, v] = _o(l), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (d = (y) => {
1690
+ }), A.isUndefined(o.withCredentials) || (p.withCredentials = !!o.withCredentials), a && a !== "json" && (p.responseType = o.responseType), u && ([m, b] = _o(u, !0), p.addEventListener("progress", m)), l && p.upload && ([h, v] = _o(l), p.upload.addEventListener("progress", h), p.upload.addEventListener("loadend", v)), (o.cancelToken || o.signal) && (d = (y) => {
1691
1691
  p && (r(!y || y.type ? new cr(null, e, p) : y), p.abort(), p = null);
1692
1692
  }, o.cancelToken && o.cancelToken.subscribe(d), o.signal && (o.signal.aborted ? d() : o.signal.addEventListener("abort", d)));
1693
1693
  const w = Sg(o.url);
@@ -1697,7 +1697,7 @@ const Gl = (e) => {
1697
1697
  }
1698
1698
  p.send(s || null);
1699
1699
  });
1700
- }, Ag = (e, t) => {
1700
+ }, kg = (e, t) => {
1701
1701
  const { length: n } = e = e ? e.filter(Boolean) : [];
1702
1702
  if (t || n) {
1703
1703
  let r = new AbortController(), o;
@@ -1718,7 +1718,7 @@ const Gl = (e) => {
1718
1718
  };
1719
1719
  e.forEach((u) => u.addEventListener("abort", s));
1720
1720
  const { signal: l } = r;
1721
- return l.unsubscribe = () => k.asap(a), l;
1721
+ return l.unsubscribe = () => A.asap(a), l;
1722
1722
  }
1723
1723
  }, Pg = function* (e, t) {
1724
1724
  let n = e.byteLength;
@@ -1777,20 +1777,20 @@ const Gl = (e) => {
1777
1777
  }, {
1778
1778
  highWaterMark: 2
1779
1779
  });
1780
- }, lc = 64 * 1024, { isFunction: no } = k, Mg = (({ Request: e, Response: t }) => ({
1780
+ }, lc = 64 * 1024, { isFunction: no } = A, Mg = (({ Request: e, Response: t }) => ({
1781
1781
  Request: e,
1782
1782
  Response: t
1783
- }))(k.global), {
1783
+ }))(A.global), {
1784
1784
  ReadableStream: uc,
1785
1785
  TextEncoder: dc
1786
- } = k.global, fc = (e, ...t) => {
1786
+ } = A.global, fc = (e, ...t) => {
1787
1787
  try {
1788
1788
  return !!e(...t);
1789
1789
  } catch {
1790
1790
  return !1;
1791
1791
  }
1792
1792
  }, Dg = (e) => {
1793
- e = k.merge.call({
1793
+ e = A.merge.call({
1794
1794
  skipUndefined: !0
1795
1795
  }, Mg, e);
1796
1796
  const { fetch: t, Request: n, Response: r } = e, o = t ? no(t) : typeof fetch == "function", s = no(n), i = no(r);
@@ -1806,7 +1806,7 @@ const Gl = (e) => {
1806
1806
  }
1807
1807
  }).headers.has("Content-Type");
1808
1808
  return b && !g;
1809
- }), d = i && a && fc(() => k.isReadableStream(new r("").body)), h = {
1809
+ }), d = i && a && fc(() => A.isReadableStream(new r("").body)), h = {
1810
1810
  stream: d && ((b) => b.body)
1811
1811
  };
1812
1812
  o && ["text", "arrayBuffer", "blob", "formData", "stream"].forEach((b) => {
@@ -1820,19 +1820,19 @@ const Gl = (e) => {
1820
1820
  const m = async (b) => {
1821
1821
  if (b == null)
1822
1822
  return 0;
1823
- if (k.isBlob(b))
1823
+ if (A.isBlob(b))
1824
1824
  return b.size;
1825
- if (k.isSpecCompliantForm(b))
1825
+ if (A.isSpecCompliantForm(b))
1826
1826
  return (await new n(ct.origin, {
1827
1827
  method: "POST",
1828
1828
  body: b
1829
1829
  }).arrayBuffer()).byteLength;
1830
- if (k.isArrayBufferView(b) || k.isArrayBuffer(b))
1830
+ if (A.isArrayBufferView(b) || A.isArrayBuffer(b))
1831
1831
  return b.byteLength;
1832
- if (k.isURLSearchParams(b) && (b = b + ""), k.isString(b))
1832
+ if (A.isURLSearchParams(b) && (b = b + ""), A.isString(b))
1833
1833
  return (await l(b)).byteLength;
1834
1834
  }, v = async (b, g) => {
1835
- const p = k.toFiniteNumber(b.getContentLength());
1835
+ const p = A.toFiniteNumber(b.getContentLength());
1836
1836
  return p ?? m(g);
1837
1837
  };
1838
1838
  return async (b) => {
@@ -1851,7 +1851,7 @@ const Gl = (e) => {
1851
1851
  fetchOptions: j
1852
1852
  } = Gl(b), F = t || fetch;
1853
1853
  C = C ? (C + "").toLowerCase() : "text";
1854
- let H = Ag([w, y && y.toAbortSignal()], E), U = null;
1854
+ let H = kg([w, y && y.toAbortSignal()], E), U = null;
1855
1855
  const _ = H && H.unsubscribe && (() => {
1856
1856
  H.unsubscribe();
1857
1857
  });
@@ -1863,7 +1863,7 @@ const Gl = (e) => {
1863
1863
  body: x,
1864
1864
  duplex: "half"
1865
1865
  }), D;
1866
- if (k.isFormData(x) && (D = W.headers.get("content-type")) && I.setContentType(D), W.body) {
1866
+ if (A.isFormData(x) && (D = W.headers.get("content-type")) && I.setContentType(D), W.body) {
1867
1867
  const [P, B] = sc(
1868
1868
  Z,
1869
1869
  _o(ic(T))
@@ -1871,7 +1871,7 @@ const Gl = (e) => {
1871
1871
  x = cc(W.body, lc, P, B);
1872
1872
  }
1873
1873
  }
1874
- k.isString(N) || (N = N ? "include" : "omit");
1874
+ A.isString(N) || (N = N ? "include" : "omit");
1875
1875
  const G = s && "credentials" in n.prototype, re = {
1876
1876
  ...j,
1877
1877
  signal: H,
@@ -1889,7 +1889,7 @@ const Gl = (e) => {
1889
1889
  ["status", "statusText", "headers"].forEach((Q) => {
1890
1890
  W[Q] = O[Q];
1891
1891
  });
1892
- const D = k.toFiniteNumber(O.headers.get("content-length")), [P, B] = S && sc(
1892
+ const D = A.toFiniteNumber(O.headers.get("content-length")), [P, B] = S && sc(
1893
1893
  D,
1894
1894
  _o(ic(S), !0)
1895
1895
  ) || [];
@@ -1901,7 +1901,7 @@ const Gl = (e) => {
1901
1901
  );
1902
1902
  }
1903
1903
  C = C || "text";
1904
- let Y = await h[k.findKey(h, C) || "text"](O, b);
1904
+ let Y = await h[A.findKey(h, C) || "text"](O, b);
1905
1905
  return !M && _ && _(), await new Promise((W, D) => {
1906
1906
  Wl(W, D, {
1907
1907
  data: Y,
@@ -1936,12 +1936,12 @@ const Gl = (e) => {
1936
1936
  Kl();
1937
1937
  const hi = {
1938
1938
  http: eg,
1939
- xhr: kg,
1939
+ xhr: Ag,
1940
1940
  fetch: {
1941
1941
  get: Kl
1942
1942
  }
1943
1943
  };
1944
- k.forEach(hi, (e, t) => {
1944
+ A.forEach(hi, (e, t) => {
1945
1945
  if (e) {
1946
1946
  try {
1947
1947
  Object.defineProperty(e, "name", { value: t });
@@ -1950,9 +1950,9 @@ k.forEach(hi, (e, t) => {
1950
1950
  Object.defineProperty(e, "adapterName", { value: t });
1951
1951
  }
1952
1952
  });
1953
- const hc = (e) => `- ${e}`, Fg = (e) => k.isFunction(e) || e === null || e === !1, ql = {
1953
+ const hc = (e) => `- ${e}`, Fg = (e) => A.isFunction(e) || e === null || e === !1, ql = {
1954
1954
  getAdapter: (e, t) => {
1955
- e = k.isArray(e) ? e : [e];
1955
+ e = A.isArray(e) ? e : [e];
1956
1956
  const { length: n } = e;
1957
1957
  let r, o;
1958
1958
  const s = {};
@@ -1961,7 +1961,7 @@ const hc = (e) => `- ${e}`, Fg = (e) => k.isFunction(e) || e === null || e === !
1961
1961
  let a;
1962
1962
  if (o = r, !Fg(r) && (o = hi[(a = String(r)).toLowerCase()], o === void 0))
1963
1963
  throw new Se(`Unknown adapter '${a}'`);
1964
- if (o && (k.isFunction(o) || (o = o.get(t))))
1964
+ if (o && (A.isFunction(o) || (o = o.get(t))))
1965
1965
  break;
1966
1966
  s[a || "#" + i] = o;
1967
1967
  }
@@ -2085,13 +2085,13 @@ let jn = class {
2085
2085
  }
2086
2086
  }
2087
2087
  _request(t, n) {
2088
- typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = An(this.defaults, n);
2088
+ typeof t == "string" ? (n = n || {}, n.url = t) : n = t || {}, n = kn(this.defaults, n);
2089
2089
  const { transitional: r, paramsSerializer: o, headers: s } = n;
2090
2090
  r !== void 0 && go.assertOptions(r, {
2091
2091
  silentJSONParsing: qt.transitional(qt.boolean),
2092
2092
  forcedJSONParsing: qt.transitional(qt.boolean),
2093
2093
  clarifyTimeoutError: qt.transitional(qt.boolean)
2094
- }, !1), o != null && (k.isFunction(o) ? n.paramsSerializer = {
2094
+ }, !1), o != null && (A.isFunction(o) ? n.paramsSerializer = {
2095
2095
  serialize: o
2096
2096
  } : go.assertOptions(o, {
2097
2097
  encode: qt.function,
@@ -2100,11 +2100,11 @@ let jn = class {
2100
2100
  baseUrl: qt.spelling("baseURL"),
2101
2101
  withXsrfToken: qt.spelling("withXSRFToken")
2102
2102
  }, !0), n.method = (n.method || this.defaults.method || "get").toLowerCase();
2103
- let i = s && k.merge(
2103
+ let i = s && A.merge(
2104
2104
  s.common,
2105
2105
  s[n.method]
2106
2106
  );
2107
- s && k.forEach(
2107
+ s && A.forEach(
2108
2108
  ["delete", "get", "head", "post", "put", "patch", "common"],
2109
2109
  (b) => {
2110
2110
  delete s[b];
@@ -2147,24 +2147,24 @@ let jn = class {
2147
2147
  return d;
2148
2148
  }
2149
2149
  getUri(t) {
2150
- t = An(this.defaults, t);
2150
+ t = kn(this.defaults, t);
2151
2151
  const n = Vl(t.baseURL, t.url, t.allowAbsoluteUrls);
2152
2152
  return $l(n, t.params, t.paramsSerializer);
2153
2153
  }
2154
2154
  };
2155
- k.forEach(["delete", "get", "head", "options"], function(t) {
2155
+ A.forEach(["delete", "get", "head", "options"], function(t) {
2156
2156
  jn.prototype[t] = function(n, r) {
2157
- return this.request(An(r || {}, {
2157
+ return this.request(kn(r || {}, {
2158
2158
  method: t,
2159
2159
  url: n,
2160
2160
  data: (r || {}).data
2161
2161
  }));
2162
2162
  };
2163
2163
  });
2164
- k.forEach(["post", "put", "patch"], function(t) {
2164
+ A.forEach(["post", "put", "patch"], function(t) {
2165
2165
  function n(r) {
2166
2166
  return function(s, i, a) {
2167
- return this.request(An(a || {}, {
2167
+ return this.request(kn(a || {}, {
2168
2168
  method: t,
2169
2169
  headers: r ? {
2170
2170
  "Content-Type": "multipart/form-data"
@@ -2255,7 +2255,7 @@ function Hg(e) {
2255
2255
  };
2256
2256
  }
2257
2257
  function zg(e) {
2258
- return k.isObject(e) && e.isAxiosError === !0;
2258
+ return A.isObject(e) && e.isAxiosError === !0;
2259
2259
  }
2260
2260
  const pi = {
2261
2261
  Continue: 100,
@@ -2327,8 +2327,8 @@ Object.entries(pi).forEach(([e, t]) => {
2327
2327
  });
2328
2328
  function Jl(e) {
2329
2329
  const t = new jn(e), n = Nl(jn.prototype.request, t);
2330
- return k.extend(n, jn.prototype, t, { allOwnKeys: !0 }), k.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2331
- return Jl(An(e, o));
2330
+ return A.extend(n, jn.prototype, t, { allOwnKeys: !0 }), A.extend(n, t, null, { allOwnKeys: !0 }), n.create = function(o) {
2331
+ return Jl(kn(e, o));
2332
2332
  }, n;
2333
2333
  }
2334
2334
  const Ze = Jl(Gr);
@@ -2345,9 +2345,9 @@ Ze.all = function(t) {
2345
2345
  };
2346
2346
  Ze.spread = Hg;
2347
2347
  Ze.isAxiosError = zg;
2348
- Ze.mergeConfig = An;
2348
+ Ze.mergeConfig = kn;
2349
2349
  Ze.AxiosHeaders = vt;
2350
- Ze.formToJSON = (e) => zl(k.isHTMLForm(e) ? new FormData(e) : e);
2350
+ Ze.formToJSON = (e) => zl(A.isHTMLForm(e) ? new FormData(e) : e);
2351
2351
  Ze.getAdapter = ql.getAdapter;
2352
2352
  Ze.HttpStatusCode = pi;
2353
2353
  Ze.default = Ze;
@@ -2549,8 +2549,8 @@ function Yg(e = {}) {
2549
2549
  V && (z = ((G = JSON.parse(V)) == null ? void 0 : G.apiKey) || null);
2550
2550
  } catch {
2551
2551
  }
2552
- const A = Q || de || z || null;
2553
- A && (Y = { Authorization: `Bearer ${A}` });
2552
+ const k = Q || de || z || null;
2553
+ k && (Y = { Authorization: `Bearer ${k}` });
2554
2554
  }
2555
2555
  } catch {
2556
2556
  }
@@ -2575,17 +2575,17 @@ function Yg(e = {}) {
2575
2575
  try {
2576
2576
  const B = W.headers.get("X-Thread-Id") || W.headers.get("x-thread-id"), Q = W.headers.get("X-Thread-Created") || W.headers.get("x-thread-created"), de = B ?? null, z = String(Q ?? "").toLowerCase() === "true";
2577
2577
  (re = j == null ? void 0 : j.onOpen) == null || re.call(j, { threadId: de, created: z }), D = W.body.getReader(), P = new TextDecoder();
2578
- let A = "", V = "", ee = y.current;
2578
+ let k = "", V = "", ee = y.current;
2579
2579
  for (; ; ) {
2580
2580
  const { value: ae, done: oe } = await D.read();
2581
2581
  if (oe) break;
2582
- A += P.decode(ae, { stream: !0 });
2582
+ k += P.decode(ae, { stream: !0 });
2583
2583
  let Te;
2584
- for (; (Te = A.indexOf(`
2584
+ for (; (Te = k.indexOf(`
2585
2585
 
2586
2586
  `)) >= 0; ) {
2587
- const Pe = A.slice(0, Te);
2588
- A = A.slice(Te + 2);
2587
+ const Pe = k.slice(0, Te);
2588
+ k = k.slice(Te + 2);
2589
2589
  const je = Jg(Pe);
2590
2590
  if (!je) continue;
2591
2591
  let le;
@@ -2634,7 +2634,7 @@ function Yg(e = {}) {
2634
2634
  },
2635
2635
  [t, r, e.autoAppendAssistant]
2636
2636
  );
2637
- return qe(() => () => {
2637
+ return We(() => () => {
2638
2638
  var I;
2639
2639
  return (I = w.current) == null ? void 0 : I.abort();
2640
2640
  }, []), {
@@ -2729,7 +2729,7 @@ function ev(e = []) {
2729
2729
  }, [i]), l = De((d) => {
2730
2730
  r.current.push(d), a();
2731
2731
  }, [a]);
2732
- qe(() => () => {
2732
+ We(() => () => {
2733
2733
  o.current !== null && typeof window < "u" && window.cancelAnimationFrame(o.current), s.current !== null && clearTimeout(s.current), r.current = [];
2734
2734
  }, []);
2735
2735
  const u = an(() => ({
@@ -2949,7 +2949,7 @@ async function cv(e, t = [], n, r, o, s) {
2949
2949
  const Zl = Sl(null);
2950
2950
  function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialThreadId: o = null, autoLoadInitial: s = !0, enableFileAgentRouting: i = !1, fileAgentId: a = "invoice_reader" }) {
2951
2951
  const l = Pn;
2952
- qe(() => {
2952
+ We(() => {
2953
2953
  t && l.updateConfig({
2954
2954
  baseUrl: t.baseUrl,
2955
2955
  authToken: t.apiKey
@@ -2964,7 +2964,7 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
2964
2964
  // Ensure the path matches the chat endpoint
2965
2965
  streamPath: "/chat/runs/stream"
2966
2966
  }), [b, g] = he(() => typeof l.getAuthToken == "function" ? l.getAuthToken() : null);
2967
- qe(() => {
2967
+ We(() => {
2968
2968
  v(typeof l.getAuthToken == "function" ? l.getAuthToken() : null);
2969
2969
  const K = l.onTokenChange((te) => {
2970
2970
  g(te), v(te);
@@ -3009,7 +3009,7 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3009
3009
  ), [P, B] = he([]), [Q, de] = he(null), z = De(async () => {
3010
3010
  const K = await l.listThreads();
3011
3011
  B(K);
3012
- }, [l]), [A, V] = he(!1), ee = De(
3012
+ }, [l]), [k, V] = he(!1), ee = De(
3013
3013
  async (K) => {
3014
3014
  const te = (K == null ? void 0 : K.maxAttempts) ?? 5, $e = (K == null ? void 0 : K.baseDelayMs) ?? 500, Ue = (K == null ? void 0 : K.timeoutMs) ?? 2e3;
3015
3015
  if (!l.baseUrl) return !1;
@@ -3051,7 +3051,7 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3051
3051
  },
3052
3052
  [l.baseUrl]
3053
3053
  );
3054
- qe(() => {
3054
+ We(() => {
3055
3055
  let K = !0;
3056
3056
  if (!l.baseUrl) {
3057
3057
  console.debug("[ChatProvider] skipping initial refreshThreads: api.baseUrl not configured");
@@ -3068,24 +3068,24 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3068
3068
  })(), () => {
3069
3069
  K = !1;
3070
3070
  };
3071
- }, [z, l.baseUrl, ee]), qe(() => {
3071
+ }, [z, l.baseUrl, ee]), We(() => {
3072
3072
  r == null || r(Q);
3073
3073
  }, [Q, r]);
3074
3074
  const ae = Fe(null);
3075
- qe(() => {
3075
+ We(() => {
3076
3076
  if (o && s) {
3077
3077
  if (!l.baseUrl) {
3078
3078
  console.debug("[ChatProvider] skipping initial load: api.baseUrl not configured");
3079
3079
  return;
3080
3080
  }
3081
- if (!A) {
3081
+ if (!k) {
3082
3082
  console.debug("[ChatProvider] deferring initial load until backend health-check passes");
3083
3083
  return;
3084
3084
  }
3085
3085
  ae.current !== o && (ae.current = o, Te(o).catch(() => {
3086
3086
  }));
3087
3087
  }
3088
- }, [o, s, l.baseUrl, A]);
3088
+ }, [o, s, l.baseUrl, k]);
3089
3089
  const oe = Fe(null), Te = De(
3090
3090
  async (K, te, $e) => {
3091
3091
  await W(async () => {
@@ -3142,7 +3142,7 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3142
3142
  if (!Q) throw new Error("No active thread");
3143
3143
  await Te(Q);
3144
3144
  }, [Q, Te]), me = Fe(!1);
3145
- qe(() => {
3145
+ We(() => {
3146
3146
  const K = me.current;
3147
3147
  me.current = u, K && !u && Q && W(async () => {
3148
3148
  try {
@@ -3182,7 +3182,7 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3182
3182
  Q
3183
3183
  ), mt = [];
3184
3184
  K && mt.push({ type: "text", text: K });
3185
- for (const Ge of Ue) mt.push(Ge);
3185
+ for (const Ke of Ue) mt.push(Ke);
3186
3186
  const dt = {
3187
3187
  id: ((fn = crypto.randomUUID) == null ? void 0 : fn.call(crypto)) || `user-${Date.now()}`,
3188
3188
  role: "user",
@@ -3194,12 +3194,12 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3194
3194
  E(dt);
3195
3195
  const Gt = {
3196
3196
  ...dt,
3197
- content: dt.content.filter((Ge) => Ge.type === "text" || Ge.type === "image_url" || Ge.type === "file")
3197
+ content: dt.content.filter((Ke) => Ke.type === "text" || Ke.type === "image_url" || Ke.type === "file")
3198
3198
  }, rt = { ...(te == null ? void 0 : te.payloadExtras) ?? {} }, yt = !!rt.edit, it = rt.originalMessageId, St = typeof it == "string" ? it : void 0, dn = $e && $e.length > 0, mr = {
3199
3199
  ...Q ? { threadId: Q } : {},
3200
3200
  payload: {
3201
3201
  messages: [Gt],
3202
- attachments: dt.content.filter((Ge) => Ge.type === "file").map((Ge) => ({ type: "file", url: Ge.url, mimeType: Ge.mimeType, name: Ge.name, size: Ge.size })),
3202
+ attachments: dt.content.filter((Ke) => Ke.type === "file").map((Ke) => ({ type: "file", url: Ke.url, mimeType: Ke.mimeType, name: Ke.name, size: Ke.size })),
3203
3203
  files_info: wt,
3204
3204
  ...i && dn && a ? { active_agent: a } : {},
3205
3205
  ...rt
@@ -3213,11 +3213,11 @@ function vo({ children: e, apiConfig: t, onError: n, onThreadChange: r, initialT
3213
3213
  };
3214
3214
  h(
3215
3215
  mr,
3216
- (Ge) => S(Ge),
3216
+ (Ke) => S(Ke),
3217
3217
  {
3218
- onError: (Ge) => console.warn("stream error", Ge),
3219
- onOpen: ({ threadId: Ge, created: Kt }) => {
3220
- !Q && Ge && (de(Ge), Kt && z().catch(() => {
3218
+ onError: (Ke) => console.warn("stream error", Ke),
3219
+ onOpen: ({ threadId: Ke, created: Kt }) => {
3220
+ !Q && Ke && (de(Ke), Kt && z().catch(() => {
3221
3221
  }));
3222
3222
  }
3223
3223
  }
@@ -3460,7 +3460,7 @@ function rs(e, t) {
3460
3460
  function mv(e, t) {
3461
3461
  return t(e);
3462
3462
  }
3463
- function Ve(...e) {
3463
+ function Ge(...e) {
3464
3464
  return e;
3465
3465
  }
3466
3466
  function Le(e, t) {
@@ -3495,7 +3495,7 @@ function Sc(e) {
3495
3495
  function nu(e, t) {
3496
3496
  return e === t;
3497
3497
  }
3498
- function We(e = nu) {
3498
+ function Ve(e = nu) {
3499
3499
  let t;
3500
3500
  return (n) => (r) => {
3501
3501
  e(t, r) || (t = r, n(r));
@@ -3660,7 +3660,7 @@ function tt(...e) {
3660
3660
  };
3661
3661
  }
3662
3662
  function ge(e, t = nu) {
3663
- return $(e, We(t));
3663
+ return $(e, Ve(t));
3664
3664
  }
3665
3665
  function xi(...e) {
3666
3666
  return function(t, n) {
@@ -3845,7 +3845,7 @@ const ht = _e(
3845
3845
  },
3846
3846
  [],
3847
3847
  { singleton: !0 }
3848
- ), Ar = { lvl: 0 };
3848
+ ), kr = { lvl: 0 };
3849
3849
  function ou(e, t) {
3850
3850
  const n = e.length;
3851
3851
  if (n === 0)
@@ -3859,7 +3859,7 @@ function ou(e, t) {
3859
3859
  return s.push({ end: 1 / 0, start: r, value: o }), s;
3860
3860
  }
3861
3861
  function ze(e) {
3862
- return e === Ar;
3862
+ return e === kr;
3863
3863
  }
3864
3864
  function Pr(e, t) {
3865
3865
  if (!ze(e))
@@ -3880,7 +3880,7 @@ function Tt(e, t, n) {
3880
3880
  return ze(e) ? au(t, n, 1) : t === e.k ? nt(e, { k: t, v: n }) : t < e.k ? Tc(nt(e, { l: Tt(e.l, t, n) })) : Tc(nt(e, { r: Tt(e.r, t, n) }));
3881
3881
  }
3882
3882
  function Jn() {
3883
- return Ar;
3883
+ return kr;
3884
3884
  }
3885
3885
  function os(e, t, n) {
3886
3886
  if (ze(e))
@@ -3889,7 +3889,7 @@ function os(e, t, n) {
3889
3889
  return Tv(wi(e, r, n));
3890
3890
  }
3891
3891
  function bi(e, t) {
3892
- if (ze(e)) return Ar;
3892
+ if (ze(e)) return kr;
3893
3893
  const { k: n, l: r, r: o } = e;
3894
3894
  if (t === n) {
3895
3895
  if (ze(r))
@@ -3964,7 +3964,7 @@ function $s(e) {
3964
3964
  function iu(e) {
3965
3965
  return ze(e.r) ? [e.k, e.v] : iu(e.r);
3966
3966
  }
3967
- function au(e, t, n, r = Ar, o = Ar) {
3967
+ function au(e, t, n, r = kr, o = kr) {
3968
3968
  return { k: e, l: r, lvl: n, r: o, v: t };
3969
3969
  }
3970
3970
  function Tc(e) {
@@ -4084,10 +4084,10 @@ function fu(e, t, n) {
4084
4084
  return o = Math.max(0, o, Math.min(n, o)), o;
4085
4085
  }
4086
4086
  }
4087
- function kv(e, t, n, r = 0) {
4087
+ function Av(e, t, n, r = 0) {
4088
4088
  return r > 0 && (t = Math.max(t, uu(e, r, Qi).offset)), ou(Rv(e, t, n, jv), _v);
4089
4089
  }
4090
- function Av(e, [t, n, r, o]) {
4090
+ function kv(e, [t, n, r, o]) {
4091
4091
  t.length > 0 && r("received item sizes", t, xt.DEBUG);
4092
4092
  const s = e.sizeTree;
4093
4093
  let i = s, a = 0;
@@ -4157,12 +4157,12 @@ const Mv = {
4157
4157
  }, tn = _e(
4158
4158
  ([{ log: e }, { recalcInProgress: t }]) => {
4159
4159
  const n = Ne(), r = Ne(), o = ut(r, 0), s = Ne(), i = Ne(), a = J(0), l = J([]), u = J(void 0), d = J(void 0), h = J((S, T) => vn(S, Mv[T])), m = J(void 0), v = J(0), b = Ev(), g = ut(
4160
- $(n, Re(l, e, v), Jt(Av, b), We()),
4160
+ $(n, Re(l, e, v), Jt(kv, b), Ve()),
4161
4161
  b
4162
4162
  ), p = ut(
4163
4163
  $(
4164
4164
  l,
4165
- We(),
4165
+ Ve(),
4166
4166
  Jt((S, T) => ({ current: T, prev: S.current }), {
4167
4167
  current: [],
4168
4168
  prev: []
@@ -4387,7 +4387,7 @@ const Mv = {
4387
4387
  unshiftWith: s
4388
4388
  };
4389
4389
  },
4390
- Ve(Sn, Zi),
4390
+ Ge(Sn, Zi),
4391
4391
  { singleton: !0 }
4392
4392
  );
4393
4393
  function Dv(e) {
@@ -4419,27 +4419,27 @@ const hu = _e(
4419
4419
  tt(o, t, r),
4420
4420
  ve(([l, u]) => ss(u)),
4421
4421
  ie(([l, u, d]) => $t(u.groupOffsetTree, Math.max(l - d, 0), "v")[0]),
4422
- We(),
4422
+ Ve(),
4423
4423
  ie((l) => [l])
4424
4424
  ),
4425
4425
  i
4426
4426
  ), { groupCounts: s, topItemsIndexes: i };
4427
4427
  },
4428
- Ve(tn, ht)
4428
+ Ge(tn, ht)
4429
4429
  ), Cn = _e(
4430
4430
  ([{ log: e }]) => {
4431
4431
  const t = J(!1), n = Rt(
4432
4432
  $(
4433
4433
  t,
4434
4434
  ve((r) => r),
4435
- We()
4435
+ Ve()
4436
4436
  )
4437
4437
  );
4438
4438
  return Le(t, (r) => {
4439
4439
  r && Je(e)("props updated", {}, xt.DEBUG);
4440
4440
  }), { didMount: n, propsReady: t };
4441
4441
  },
4442
- Ve(Sn),
4442
+ Ge(Sn),
4443
4443
  { singleton: !0 }
4444
4444
  ), Lv = typeof document < "u" && "scrollBehavior" in document.documentElement.style;
4445
4445
  function pu(e) {
@@ -4506,7 +4506,7 @@ const Kr = _e(
4506
4506
  topListHeight: g
4507
4507
  };
4508
4508
  },
4509
- Ve(tn, ht, Sn),
4509
+ Ge(tn, ht, Sn),
4510
4510
  { singleton: !0 }
4511
4511
  );
4512
4512
  function Fv(e) {
@@ -4569,7 +4569,7 @@ const qr = _e(
4569
4569
  scrolledToInitialItem: a
4570
4570
  };
4571
4571
  },
4572
- Ve(tn, ht, Kr, Cn),
4572
+ Ge(tn, ht, Kr, Cn),
4573
4573
  { singleton: !0 }
4574
4574
  );
4575
4575
  function mu(e, t) {
@@ -4588,18 +4588,18 @@ const Mr = "up", Rr = "down", Bv = "none", $v = {
4588
4588
  const i = J(!1), a = J(!0), l = Ne(), u = Ne(), d = J(4), h = J(Hv), m = ut(
4589
4589
  $(
4590
4590
  xi($(ge(o), _n(1), Yt(!0)), $(ge(o), _n(1), Yt(!1), Sc(100))),
4591
- We()
4591
+ Ve()
4592
4592
  ),
4593
4593
  !1
4594
4594
  ), v = ut(
4595
- $(xi($(n, Yt(!0)), $(n, Yt(!1), Sc(200))), We()),
4595
+ $(xi($(n, Yt(!0)), $(n, Yt(!1), Sc(200))), Ve()),
4596
4596
  !1
4597
4597
  );
4598
4598
  fe(
4599
4599
  $(
4600
4600
  tt(ge(o), ge(h)),
4601
4601
  ie(([w, y]) => w <= y),
4602
- We()
4602
+ Ve()
4603
4603
  ),
4604
4604
  a
4605
4605
  ), fe($(a, cn(50)), u);
@@ -4628,7 +4628,7 @@ const Mr = "up", Rr = "down", Bv = "none", $v = {
4628
4628
  state: j
4629
4629
  };
4630
4630
  }, $v),
4631
- We((w, y) => w && w.atBottom === y.atBottom)
4631
+ Ve((w, y) => w && w.atBottom === y.atBottom)
4632
4632
  )
4633
4633
  ), g = ut(
4634
4634
  $(
@@ -4676,7 +4676,7 @@ const Mr = "up", Rr = "down", Bv = "none", $v = {
4676
4676
  $(
4677
4677
  r,
4678
4678
  ie(({ scrollTop: w }) => w),
4679
- We(),
4679
+ Ve(),
4680
4680
  Jt(
4681
4681
  (w, y) => Je(v) ? { direction: w.direction, prevScrollTop: y } : { direction: y < w.prevScrollTop ? Mr : Rr, prevScrollTop: y },
4682
4682
  { direction: Rr, prevScrollTop: 0 }
@@ -4716,7 +4716,7 @@ const Mr = "up", Rr = "down", Bv = "none", $v = {
4716
4716
  scrollDirection: p,
4717
4717
  scrollVelocity: x
4718
4718
  };
4719
- }, Ve(ht)), Do = "top", Lo = "bottom", Ec = "none";
4719
+ }, Ge(ht)), Do = "top", Lo = "bottom", Ec = "none";
4720
4720
  function Ic(e, t, n) {
4721
4721
  return typeof e == "number" ? n === Mr && t === Do || n === Rr && t === Lo ? e : 0 : n === Mr ? t === Do ? e.main : e.reverse : t === Lo ? e.main : e.reverse;
4722
4722
  }
@@ -4761,7 +4761,7 @@ const na = _e(
4761
4761
  }
4762
4762
  ),
4763
4763
  ve((d) => d != null),
4764
- We(_r)
4764
+ Ve(_r)
4765
4765
  ),
4766
4766
  [0, 0]
4767
4767
  );
@@ -4775,7 +4775,7 @@ const na = _e(
4775
4775
  visibleRange: u
4776
4776
  };
4777
4777
  },
4778
- Ve(ht),
4778
+ Ge(ht),
4779
4779
  { singleton: !0 }
4780
4780
  );
4781
4781
  function zv(e, t, n) {
@@ -4926,31 +4926,31 @@ const Bn = _e(
4926
4926
  if (H.length > 0) {
4927
4927
  const Q = H[0], de = H[H.length - 1];
4928
4928
  let z = 0;
4929
- for (const A of os(O, Q, de)) {
4930
- const V = A.value, ee = Math.max(A.start, Q), ae = Math.min(A.end, de);
4929
+ for (const k of os(O, Q, de)) {
4930
+ const V = k.value, ee = Math.max(k.start, Q), ae = Math.min(k.end, de);
4931
4931
  for (let oe = ee; oe <= ae; oe++)
4932
4932
  Y.push({ data: Z == null ? void 0 : Z[oe], index: oe, offset: z, size: V }), z += V;
4933
4933
  }
4934
4934
  }
4935
4935
  if (!F)
4936
4936
  return bo([], Y, I, _, G, U);
4937
- const W = H.length > 0 ? H[H.length - 1] + 1 : 0, D = kv(re, T, C, W);
4937
+ const W = H.length > 0 ? H[H.length - 1] + 1 : 0, D = Av(re, T, C, W);
4938
4938
  if (D.length === 0)
4939
4939
  return null;
4940
4940
  const P = I - 1, B = rs([], (Q) => {
4941
4941
  for (const de of D) {
4942
4942
  const z = de.value;
4943
- let A = z.offset, V = de.start;
4943
+ let k = z.offset, V = de.start;
4944
4944
  const ee = z.size;
4945
4945
  if (z.offset < T) {
4946
4946
  V += Math.floor((T - z.offset + _) / (ee + _));
4947
4947
  const oe = V - de.start;
4948
- A += oe * ee + oe * _;
4948
+ k += oe * ee + oe * _;
4949
4949
  }
4950
- V < W && (A += (W - V) * ee, V = W);
4950
+ V < W && (k += (W - V) * ee, V = W);
4951
4951
  const ae = Math.min(de.end, P);
4952
- for (let oe = V; oe <= ae && !(A >= C); oe++)
4953
- Q.push({ data: Z == null ? void 0 : Z[oe], index: oe, offset: A, size: ee }), A += ee + _;
4952
+ for (let oe = V; oe <= ae && !(k >= C); oe++)
4953
+ Q.push({ data: Z == null ? void 0 : Z[oe], index: oe, offset: k, size: ee }), k += ee + _;
4954
4954
  }
4955
4955
  });
4956
4956
  return bo(B, Y, I, _, G, U);
@@ -4958,7 +4958,7 @@ const Bn = _e(
4958
4958
  ),
4959
4959
  //@ts-expect-error filter needs to be fixed
4960
4960
  ve((T) => T !== null),
4961
- We()
4961
+ Ve()
4962
4962
  ),
4963
4963
  Hs
4964
4964
  );
@@ -4995,7 +4995,7 @@ const Bn = _e(
4995
4995
  Re(o, e),
4996
4996
  ve(([{ items: T }, C]) => T[T.length - 1].originalIndex === C - 1),
4997
4997
  ie(([, T, C]) => [T - 1, C]),
4998
- We(_r),
4998
+ Ve(_r),
4999
4999
  ie(([T]) => T)
5000
5000
  )
5001
5001
  ), E = Rt(
@@ -5004,7 +5004,7 @@ const Bn = _e(
5004
5004
  cn(200),
5005
5005
  ve(({ items: T, topItems: C }) => T.length > 0 && T[0].originalIndex === C.length),
5006
5006
  ie(({ items: T }) => T[0].index),
5007
- We()
5007
+ Ve()
5008
5008
  )
5009
5009
  ), S = Rt(
5010
5010
  $(
@@ -5021,12 +5021,12 @@ const Bn = _e(
5021
5021
  startIndex: T[C].index
5022
5022
  };
5023
5023
  }),
5024
- We(lu)
5024
+ Ve(lu)
5025
5025
  )
5026
5026
  );
5027
5027
  return { endReached: y, initialItemCount: p, itemsRendered: x, listState: w, rangeChanged: S, startReached: E, topItemsIndexes: g, ...m };
5028
5028
  },
5029
- Ve(
5029
+ Ge(
5030
5030
  tn,
5031
5031
  hu,
5032
5032
  na,
@@ -5048,7 +5048,7 @@ const Bn = _e(
5048
5048
  );
5049
5049
  return fe(ge(i), s), { totalListHeight: i, totalListHeightChanged: s };
5050
5050
  },
5051
- Ve(ht, Bn),
5051
+ Ge(ht, Bn),
5052
5052
  { singleton: !0 }
5053
5053
  ), Uv = _e(
5054
5054
  ([{ viewportHeight: e }, { totalListHeight: t }]) => {
@@ -5058,13 +5058,13 @@ const Bn = _e(
5058
5058
  ve(([o]) => o),
5059
5059
  ie(([, o, s]) => Math.max(0, o - s)),
5060
5060
  cn(0),
5061
- We()
5061
+ Ve()
5062
5062
  ),
5063
5063
  0
5064
5064
  );
5065
5065
  return { alignToBottom: n, paddingTopAddition: r };
5066
5066
  },
5067
- Ve(ht, vu),
5067
+ Ge(ht, vu),
5068
5068
  { singleton: !0 }
5069
5069
  ), xu = _e(() => ({
5070
5070
  context: J(null)
@@ -5112,13 +5112,13 @@ const Bn = _e(
5112
5112
  scrollIntoView: d
5113
5113
  };
5114
5114
  },
5115
- Ve(tn, ht, Kr, Bn, Sn),
5115
+ Ge(tn, ht, Kr, Bn, Sn),
5116
5116
  { singleton: !0 }
5117
5117
  );
5118
- function kc(e) {
5118
+ function Ac(e) {
5119
5119
  return e ? e === "smooth" ? "smooth" : "auto" : !1;
5120
5120
  }
5121
- const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5121
+ const Vv = (e, t) => typeof e == "function" ? Ac(e(t)) : t && Ac(e), Gv = _e(
5122
5122
  ([
5123
5123
  { listRefresh: e, totalCount: t, fixedItemSize: n, data: r },
5124
5124
  { atBottomState: o, isAtBottom: s },
@@ -5212,7 +5212,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5212
5212
  }
5213
5213
  ), { autoscrollToBottom: g, followOutput: b, scrollIntoViewOnChange: y };
5214
5214
  },
5215
- Ve(
5215
+ Ge(
5216
5216
  tn,
5217
5217
  Yr,
5218
5218
  Kr,
@@ -5234,7 +5234,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5234
5234
  ),
5235
5235
  i
5236
5236
  ), {}),
5237
- Ve(tn, qr, Bn, Cn),
5237
+ Ge(tn, qr, Bn, Cn),
5238
5238
  { singleton: !0 }
5239
5239
  ), qv = _e(
5240
5240
  ([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
@@ -5264,7 +5264,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5264
5264
  initialScrollTop: r
5265
5265
  };
5266
5266
  },
5267
- Ve(Cn, ht, Bn),
5267
+ Ge(Cn, ht, Bn),
5268
5268
  { singleton: !0 }
5269
5269
  ), wu = _e(
5270
5270
  ([{ scrollVelocity: e }]) => {
@@ -5283,7 +5283,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5283
5283
  return !0;
5284
5284
  return i;
5285
5285
  }),
5286
- We()
5286
+ Ve()
5287
5287
  ),
5288
5288
  t
5289
5289
  ), Le(
@@ -5293,7 +5293,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5293
5293
  }
5294
5294
  ), { isSeeking: t, scrollSeekConfiguration: r, scrollSeekRangeChanged: n, scrollVelocity: e };
5295
5295
  },
5296
- Ve(Yr),
5296
+ Ge(Yr),
5297
5297
  { singleton: !0 }
5298
5298
  ), ra = _e(([{ scrollContainerState: e, scrollTo: t }]) => {
5299
5299
  const n = Ne(), r = Ne(), o = Ne(), s = J(!1), i = J(void 0);
@@ -5327,7 +5327,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5327
5327
  windowScrollTo: o,
5328
5328
  windowViewportRect: r
5329
5329
  };
5330
- }, Ve(ht)), Yv = _e(
5330
+ }, Ge(ht)), Yv = _e(
5331
5331
  ([
5332
5332
  { sizeRanges: e, sizes: t },
5333
5333
  { headerHeight: n, scrollTop: r },
@@ -5350,7 +5350,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5350
5350
  s,
5351
5351
  Re(d),
5352
5352
  ve(([, v]) => v !== void 0),
5353
- We(),
5353
+ Ve(),
5354
5354
  ie(([, v]) => v.ranges)
5355
5355
  ),
5356
5356
  e
@@ -5359,7 +5359,7 @@ const Vv = (e, t) => typeof e == "function" ? kc(e(t)) : t && kc(e), Gv = _e(
5359
5359
  restoreStateFrom: d
5360
5360
  };
5361
5361
  },
5362
- Ve(tn, ht, qr, Cn, ra)
5362
+ Ge(tn, ht, qr, Cn, ra)
5363
5363
  );
5364
5364
  function Xv(e) {
5365
5365
  return { align: "start", index: 0, offset: e.scrollTop };
@@ -5374,7 +5374,7 @@ const Jv = _e(([{ topItemsIndexes: e }]) => {
5374
5374
  ),
5375
5375
  e
5376
5376
  ), { topItemCount: t };
5377
- }, Ve(Bn));
5377
+ }, Ge(Bn));
5378
5378
  function yu(e) {
5379
5379
  let t = !1, n;
5380
5380
  return () => (t || (t = !0, n = e()), n);
@@ -5457,7 +5457,7 @@ const Zv = yu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5457
5457
  }
5458
5458
  ), { deviation: e };
5459
5459
  },
5460
- Ve(ht, Yr, Bn, tn, Sn, Zi)
5460
+ Ge(ht, Yr, Bn, tn, Sn, Zi)
5461
5461
  ), ex = _e(
5462
5462
  ([
5463
5463
  e,
@@ -5484,7 +5484,7 @@ const Zv = yu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5484
5484
  ...u,
5485
5485
  ...d
5486
5486
  }),
5487
- Ve(
5487
+ Ge(
5488
5488
  na,
5489
5489
  Kv,
5490
5490
  Cn,
@@ -5560,7 +5560,7 @@ const Zv = yu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5560
5560
  sizes: l,
5561
5561
  ...p
5562
5562
  }),
5563
- Ve(
5563
+ Ge(
5564
5564
  tn,
5565
5565
  qr,
5566
5566
  ht,
@@ -5719,11 +5719,11 @@ function Iu(e, t, n, r = ur, o, s) {
5719
5719
  }
5720
5720
  return { scrollByCallback: h, scrollerRef: i, scrollToCallback: d };
5721
5721
  }
5722
- const Us = "-webkit-sticky", Ac = "sticky", oa = yu(() => {
5722
+ const Us = "-webkit-sticky", kc = "sticky", oa = yu(() => {
5723
5723
  if (typeof document > "u")
5724
- return Ac;
5724
+ return kc;
5725
5725
  const e = document.createElement("div");
5726
- return e.style.position = Us, e.style.position === Us ? Us : Ac;
5726
+ return e.style.position = Us, e.style.position === Us ? Us : kc;
5727
5727
  });
5728
5728
  function sa(e) {
5729
5729
  return e;
@@ -5733,7 +5733,7 @@ const rx = /* @__PURE__ */ _e(() => {
5733
5733
  $(
5734
5734
  n,
5735
5735
  ie((u) => u[a]),
5736
- We()
5736
+ Ve()
5737
5737
  ),
5738
5738
  l
5739
5739
  );
@@ -5756,9 +5756,9 @@ const rx = /* @__PURE__ */ _e(() => {
5756
5756
  };
5757
5757
  }), ox = /* @__PURE__ */ _e(
5758
5758
  ([e, t]) => ({ ...e, ...t }),
5759
- Ve(Su, rx)
5759
+ Ge(Su, rx)
5760
5760
  ), sx = ({ height: e }) => /* @__PURE__ */ c.jsx("div", { style: { height: e } }), ix = { overflowAnchor: "none", position: oa(), zIndex: 1 }, Nu = { overflowAnchor: "none" }, ax = { ...Nu, display: "inline-block", height: "100%" }, Pc = /* @__PURE__ */ X.memo(function({ showTopList: e = !1 }) {
5761
- const t = ye("listState"), n = At("sizeRanges"), r = ye("useWindowScroll"), o = ye("customScrollParent"), s = At("windowScrollContainerState"), i = At("scrollContainerState"), a = o || r ? s : i, l = ye("itemContent"), u = ye("context"), d = ye("groupContent"), h = ye("trackItemSizes"), m = ye("itemSize"), v = ye("log"), b = At("gap"), g = ye("horizontalDirection"), { callbackRef: p } = Sv(
5761
+ const t = ye("listState"), n = kt("sizeRanges"), r = ye("useWindowScroll"), o = ye("customScrollParent"), s = kt("windowScrollContainerState"), i = kt("scrollContainerState"), a = o || r ? s : i, l = ye("itemContent"), u = ye("context"), d = ye("groupContent"), h = ye("trackItemSizes"), m = ye("itemSize"), v = ye("log"), b = kt("gap"), g = ye("horizontalDirection"), { callbackRef: p } = Sv(
5762
5762
  n,
5763
5763
  m,
5764
5764
  h,
@@ -5865,7 +5865,7 @@ function dx(e, t) {
5865
5865
  return { item: typeof e == "string" ? void 0 : t };
5866
5866
  }
5867
5867
  const fx = /* @__PURE__ */ X.memo(function() {
5868
- const e = ye("HeaderComponent"), t = At("headerHeight"), n = ye("HeaderFooterTag"), r = Fn(
5868
+ const e = ye("HeaderComponent"), t = kt("headerHeight"), n = ye("HeaderFooterTag"), r = Fn(
5869
5869
  X.useMemo(
5870
5870
  () => (s) => {
5871
5871
  t(vn(s, "height"));
@@ -5877,7 +5877,7 @@ const fx = /* @__PURE__ */ X.memo(function() {
5877
5877
  ), o = ye("context");
5878
5878
  return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...lt(e, o) }) }) : null;
5879
5879
  }), hx = /* @__PURE__ */ X.memo(function() {
5880
- const e = ye("FooterComponent"), t = At("footerHeight"), n = ye("HeaderFooterTag"), r = Fn(
5880
+ const e = ye("FooterComponent"), t = kt("footerHeight"), n = ye("HeaderFooterTag"), r = Fn(
5881
5881
  X.useMemo(
5882
5882
  () => (s) => {
5883
5883
  t(vn(s, "height"));
@@ -5914,7 +5914,7 @@ function ju({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
5914
5914
  );
5915
5915
  });
5916
5916
  }
5917
- function ku({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
5917
+ function Au({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
5918
5918
  return X.memo(function({ children: r, style: o, context: s, ...i }) {
5919
5919
  const a = n("windowScrollContainerState"), l = t("ScrollerComponent"), u = n("smoothScrollTargetReached"), d = t("totalListHeight"), h = t("deviation"), m = t("customScrollParent"), v = X.useRef(null), b = t("scrollerRef"), { scrollByCallback: g, scrollerRef: p, scrollToCallback: x } = Iu(
5920
5920
  a,
@@ -5942,7 +5942,7 @@ function ku({ useEmitter: e, useEmitterValue: t, usePublisher: n }) {
5942
5942
  });
5943
5943
  }
5944
5944
  const px = ({ children: e }) => {
5945
- const t = X.useContext(Tu), n = At("viewportHeight"), r = At("fixedItemHeight"), o = ye("alignToBottom"), s = ye("horizontalDirection"), i = X.useMemo(
5945
+ const t = X.useContext(Tu), n = kt("viewportHeight"), r = kt("fixedItemHeight"), o = ye("alignToBottom"), s = ye("horizontalDirection"), i = X.useMemo(
5946
5946
  () => tu(n, (l) => vn(l, s ? "width" : "height")),
5947
5947
  [n, s]
5948
5948
  ), a = Fn(i, !0, ye("skipAnimationFrameInResizeObserver"));
@@ -5950,7 +5950,7 @@ const px = ({ children: e }) => {
5950
5950
  t && (n(t.viewportHeight), r(t.itemHeight));
5951
5951
  }, [t, n, r]), /* @__PURE__ */ c.jsx("div", { "data-viewport-type": "element", ref: a, style: is(o), children: e });
5952
5952
  }, mx = ({ children: e }) => {
5953
- const t = X.useContext(Tu), n = At("windowViewportRect"), r = At("fixedItemHeight"), o = ye("customScrollParent"), s = ru(
5953
+ const t = X.useContext(Tu), n = kt("windowViewportRect"), r = kt("fixedItemHeight"), o = ye("customScrollParent"), s = ru(
5954
5954
  n,
5955
5955
  o,
5956
5956
  ye("skipAnimationFrameInResizeObserver")
@@ -5975,7 +5975,7 @@ const px = ({ children: e }) => {
5975
5975
  Component: xx,
5976
5976
  useEmitter: ia,
5977
5977
  useEmitterValue: ye,
5978
- usePublisher: At
5978
+ usePublisher: kt
5979
5979
  } = /* @__PURE__ */ Cu(
5980
5980
  ox,
5981
5981
  {
@@ -6035,7 +6035,7 @@ const px = ({ children: e }) => {
6035
6035
  }
6036
6036
  },
6037
6037
  vx
6038
- ), bx = /* @__PURE__ */ ju({ useEmitter: ia, useEmitterValue: ye, usePublisher: At }), wx = /* @__PURE__ */ ku({ useEmitter: ia, useEmitterValue: ye, usePublisher: At }), yx = xx, Sx = /* @__PURE__ */ _e(() => {
6038
+ ), bx = /* @__PURE__ */ ju({ useEmitter: ia, useEmitterValue: ye, usePublisher: kt }), wx = /* @__PURE__ */ Au({ useEmitter: ia, useEmitterValue: ye, usePublisher: kt }), yx = xx, Sx = /* @__PURE__ */ _e(() => {
6039
6039
  const e = J((u) => /* @__PURE__ */ c.jsxs("td", { children: [
6040
6040
  "Item $",
6041
6041
  u
@@ -6046,7 +6046,7 @@ const px = ({ children: e }) => {
6046
6046
  $(
6047
6047
  s,
6048
6048
  ie((h) => h[u]),
6049
- We()
6049
+ Ve()
6050
6050
  ),
6051
6051
  d
6052
6052
  );
@@ -6071,7 +6071,7 @@ const px = ({ children: e }) => {
6071
6071
  GroupComponent: l("Group", "tr")
6072
6072
  };
6073
6073
  });
6074
- Ve(Su, Sx);
6074
+ Ge(Su, Sx);
6075
6075
  oa();
6076
6076
  const _c = {
6077
6077
  bottom: 0,
@@ -6120,7 +6120,7 @@ const Ex = /* @__PURE__ */ _e(
6120
6120
  $(
6121
6121
  b,
6122
6122
  Re(M),
6123
- ve(([A, V]) => !!V)
6123
+ ve(([k, V]) => !!V)
6124
6124
  ),
6125
6125
  () => {
6126
6126
  Ce(Y, !1);
@@ -6128,11 +6128,11 @@ const Ex = /* @__PURE__ */ _e(
6128
6128
  ), Le(
6129
6129
  $(
6130
6130
  tt(b, Y, j, N, M, W),
6131
- ve(([A, V, ee, ae, , oe]) => A && !V && ee.height !== 0 && ae.height !== 0 && !oe)
6131
+ ve(([k, V, ee, ae, , oe]) => k && !V && ee.height !== 0 && ae.height !== 0 && !oe)
6132
6132
  ),
6133
- ([, , , , A]) => {
6133
+ ([, , , , k]) => {
6134
6134
  Ce(W, !0), ea(1, () => {
6135
- Ce(F, A);
6135
+ Ce(F, k);
6136
6136
  }), Ft($(u), () => {
6137
6137
  Ce(t, [0, 0]), Ce(Y, !0);
6138
6138
  });
@@ -6140,7 +6140,7 @@ const Ex = /* @__PURE__ */ _e(
6140
6140
  ), fe(
6141
6141
  $(
6142
6142
  re,
6143
- ve((A) => A != null && A.scrollTop > 0),
6143
+ ve((k) => k != null && k.scrollTop > 0),
6144
6144
  Yt(0)
6145
6145
  ),
6146
6146
  C
@@ -6148,17 +6148,17 @@ const Ex = /* @__PURE__ */ _e(
6148
6148
  $(
6149
6149
  b,
6150
6150
  Re(re),
6151
- ve(([, A]) => A != null)
6151
+ ve(([, k]) => k != null)
6152
6152
  ),
6153
- ([, A]) => {
6154
- A && (Ce(N, A.viewport), Ce(j, A.item), Ce(Z, A.gap), A.scrollTop > 0 && (Ce(O, !0), Ft($(u, _n(1)), (V) => {
6153
+ ([, k]) => {
6154
+ k && (Ce(N, k.viewport), Ce(j, k.item), Ce(Z, k.gap), k.scrollTop > 0 && (Ce(O, !0), Ft($(u, _n(1)), (V) => {
6155
6155
  Ce(O, !1);
6156
- }), Ce(l, { top: A.scrollTop })));
6156
+ }), Ce(l, { top: k.scrollTop })));
6157
6157
  }
6158
6158
  ), fe(
6159
6159
  $(
6160
6160
  N,
6161
- ie(({ height: A }) => A)
6161
+ ie(({ height: k }) => k)
6162
6162
  ),
6163
6163
  h
6164
6164
  ), fe(
@@ -6166,14 +6166,14 @@ const Ex = /* @__PURE__ */ _e(
6166
6166
  tt(
6167
6167
  ge(N, oo),
6168
6168
  ge(j, oo),
6169
- ge(Z, (A, V) => A && A.column === V.column && A.row === V.row),
6169
+ ge(Z, (k, V) => k && k.column === V.column && k.row === V.row),
6170
6170
  ge(u)
6171
6171
  ),
6172
- ie(([A, V, ee, ae]) => ({
6172
+ ie(([k, V, ee, ae]) => ({
6173
6173
  gap: ee,
6174
6174
  item: V,
6175
6175
  scrollTop: ae,
6176
- viewport: A
6176
+ viewport: k
6177
6177
  }))
6178
6178
  ),
6179
6179
  G
@@ -6191,10 +6191,10 @@ const Ex = /* @__PURE__ */ _e(
6191
6191
  ge(Y),
6192
6192
  ge(M)
6193
6193
  ),
6194
- ve(([, , , , , , , A]) => !A),
6194
+ ve(([, , , , , , , k]) => !k),
6195
6195
  ie(
6196
6196
  ([
6197
- A,
6197
+ k,
6198
6198
  [V, ee],
6199
6199
  ae,
6200
6200
  oe,
@@ -6206,16 +6206,16 @@ const Ex = /* @__PURE__ */ _e(
6206
6206
  me
6207
6207
  ]) => {
6208
6208
  const { column: pe, row: we } = ae, { height: Be, width: st } = oe, { width: Qe } = Te;
6209
- if (je === 0 && (A === 0 || Qe === 0))
6209
+ if (je === 0 && (k === 0 || Qe === 0))
6210
6210
  return _c;
6211
6211
  if (st === 0) {
6212
- const Gt = ta(me, A), rt = Gt + Math.max(je - 1, 0);
6212
+ const Gt = ta(me, k), rt = Gt + Math.max(je - 1, 0);
6213
6213
  return Tx(Dc(Gt, rt, Pe));
6214
6214
  }
6215
- const It = Au(Qe, st, pe);
6215
+ const It = ku(Qe, st, pe);
6216
6216
  let K, te;
6217
- le ? V === 0 && ee === 0 && je > 0 ? (K = 0, te = je - 1) : (K = It * Fo((V + we) / (Be + we)), te = It * Oc((ee + we) / (Be + we)) - 1, te = Ws(A - 1, Er(te, It - 1)), K = Ws(te, Er(0, K))) : (K = 0, te = -1);
6218
- const $e = Dc(K, te, Pe), { bottom: Ue, top: wt } = Lc(Te, ae, oe, $e), mt = Oc(A / It), dt = mt * Be + (mt - 1) * we - Ue;
6217
+ le ? V === 0 && ee === 0 && je > 0 ? (K = 0, te = je - 1) : (K = It * Fo((V + we) / (Be + we)), te = It * Oc((ee + we) / (Be + we)) - 1, te = Ws(k - 1, Er(te, It - 1)), K = Ws(te, Er(0, K))) : (K = 0, te = -1);
6218
+ const $e = Dc(K, te, Pe), { bottom: Ue, top: wt } = Lc(Te, ae, oe, $e), mt = Oc(k / It), dt = mt * Be + (mt - 1) * we - Ue;
6219
6219
  return { bottom: Ue, itemHeight: Be, items: $e, itemWidth: st, offsetBottom: dt, offsetTop: wt, top: wt };
6220
6220
  }
6221
6221
  )
@@ -6224,19 +6224,19 @@ const Ex = /* @__PURE__ */ _e(
6224
6224
  ), fe(
6225
6225
  $(
6226
6226
  _,
6227
- ve((A) => A !== null),
6228
- ie((A) => A.length)
6227
+ ve((k) => k !== null),
6228
+ ie((k) => k.length)
6229
6229
  ),
6230
6230
  T
6231
6231
  ), fe(
6232
6232
  $(
6233
6233
  tt(N, j, I, Z),
6234
- ve(([A, V, { items: ee }]) => ee.length > 0 && V.height !== 0 && A.height !== 0),
6235
- ie(([A, V, { items: ee }, ae]) => {
6236
- const { bottom: oe, top: Te } = Lc(A, ae, V, ee);
6234
+ ve(([k, V, { items: ee }]) => ee.length > 0 && V.height !== 0 && k.height !== 0),
6235
+ ie(([k, V, { items: ee }, ae]) => {
6236
+ const { bottom: oe, top: Te } = Lc(k, ae, V, ee);
6237
6237
  return [Te, oe];
6238
6238
  }),
6239
- We(_r)
6239
+ Ve(_r)
6240
6240
  ),
6241
6241
  t
6242
6242
  );
@@ -6245,39 +6245,39 @@ const Ex = /* @__PURE__ */ _e(
6245
6245
  $(
6246
6246
  u,
6247
6247
  Re(P),
6248
- ie(([A, V]) => V || A !== 0)
6248
+ ie(([k, V]) => V || k !== 0)
6249
6249
  ),
6250
6250
  P
6251
6251
  );
6252
6252
  const B = Rt(
6253
6253
  $(
6254
6254
  tt(I, T),
6255
- ve(([{ items: A }]) => A.length > 0),
6255
+ ve(([{ items: k }]) => k.length > 0),
6256
6256
  Re(P),
6257
- ve(([[A, V], ee]) => {
6258
- const ae = A.items[A.items.length - 1].index === V - 1;
6259
- return (ee || A.bottom > 0 && A.itemHeight > 0 && A.offsetBottom === 0 && A.items.length === V) && ae;
6257
+ ve(([[k, V], ee]) => {
6258
+ const ae = k.items[k.items.length - 1].index === V - 1;
6259
+ return (ee || k.bottom > 0 && k.itemHeight > 0 && k.offsetBottom === 0 && k.items.length === V) && ae;
6260
6260
  }),
6261
- ie(([[, A]]) => A - 1),
6262
- We()
6261
+ ie(([[, k]]) => k - 1),
6262
+ Ve()
6263
6263
  )
6264
6264
  ), Q = Rt(
6265
6265
  $(
6266
6266
  ge(I),
6267
- ve(({ items: A }) => A.length > 0 && A[0].index === 0),
6267
+ ve(({ items: k }) => k.length > 0 && k[0].index === 0),
6268
6268
  Yt(0),
6269
- We()
6269
+ Ve()
6270
6270
  )
6271
6271
  ), de = Rt(
6272
6272
  $(
6273
6273
  ge(I),
6274
6274
  Re(O),
6275
- ve(([{ items: A }, V]) => A.length > 0 && !V),
6276
- ie(([{ items: A }]) => ({
6277
- endIndex: A[A.length - 1].index,
6278
- startIndex: A[0].index
6275
+ ve(([{ items: k }, V]) => k.length > 0 && !V),
6276
+ ie(([{ items: k }]) => ({
6277
+ endIndex: k[k.length - 1].index,
6278
+ startIndex: k[0].index
6279
6279
  })),
6280
- We(lu),
6280
+ Ve(lu),
6281
6281
  cn(0)
6282
6282
  )
6283
6283
  );
@@ -6285,8 +6285,8 @@ const Ex = /* @__PURE__ */ _e(
6285
6285
  $(
6286
6286
  F,
6287
6287
  Re(N, j, T, Z),
6288
- ie(([A, V, ee, ae, oe]) => {
6289
- const Te = pu(A), { align: Pe, behavior: je, offset: le } = Te;
6288
+ ie(([k, V, ee, ae, oe]) => {
6289
+ const Te = pu(k), { align: Pe, behavior: je, offset: le } = Te;
6290
6290
  let me = Te.index;
6291
6291
  me === "LAST" && (me = ae - 1), me = Er(0, me, Ws(ae - 1, me));
6292
6292
  let pe = Ci(V, oe, ee, me);
@@ -6298,14 +6298,14 @@ const Ex = /* @__PURE__ */ _e(
6298
6298
  const z = ut(
6299
6299
  $(
6300
6300
  I,
6301
- ie((A) => A.offsetBottom + A.bottom)
6301
+ ie((k) => k.offsetBottom + k.bottom)
6302
6302
  ),
6303
6303
  0
6304
6304
  );
6305
6305
  return fe(
6306
6306
  $(
6307
6307
  E,
6308
- ie((A) => ({ height: A.visibleHeight, width: A.visibleWidth }))
6308
+ ie((k) => ({ height: k.visibleHeight, width: k.visibleWidth }))
6309
6309
  ),
6310
6310
  N
6311
6311
  ), {
@@ -6350,9 +6350,9 @@ const Ex = /* @__PURE__ */ _e(
6350
6350
  ...S
6351
6351
  };
6352
6352
  },
6353
- Ve(na, ht, Yr, wu, Cn, ra, Sn)
6353
+ Ge(na, ht, Yr, wu, Cn, ra, Sn)
6354
6354
  );
6355
- function Au(e, t, n) {
6355
+ function ku(e, t, n) {
6356
6356
  return Er(1, Fo((e + n) / (Fo(t) + n)));
6357
6357
  }
6358
6358
  function Lc(e, t, n, r) {
@@ -6363,7 +6363,7 @@ function Lc(e, t, n, r) {
6363
6363
  return { bottom: Ci(e, t, n, r[r.length - 1].index) + o, top: s };
6364
6364
  }
6365
6365
  function Ci(e, t, n, r) {
6366
- const o = Au(e.width, n.width, t.column), s = Fo(r / o), i = s * n.height + Er(0, s - 1) * t.row;
6366
+ const o = ku(e.width, n.width, t.column), s = Fo(r / o), i = s * n.height + Er(0, s - 1) * t.row;
6367
6367
  return i > 0 ? i + t.row : i;
6368
6368
  }
6369
6369
  const Ix = /* @__PURE__ */ _e(() => {
@@ -6371,7 +6371,7 @@ const Ix = /* @__PURE__ */ _e(() => {
6371
6371
  $(
6372
6372
  t,
6373
6373
  ie((v) => v[h]),
6374
- We()
6374
+ Ve()
6375
6375
  ),
6376
6376
  m
6377
6377
  ), u = J(!1), d = J(!1);
@@ -6395,9 +6395,9 @@ const Ix = /* @__PURE__ */ _e(() => {
6395
6395
  };
6396
6396
  }), Nx = /* @__PURE__ */ _e(
6397
6397
  ([e, t]) => ({ ...e, ...t }),
6398
- Ve(Ex, Ix)
6398
+ Ge(Ex, Ix)
6399
6399
  ), jx = /* @__PURE__ */ X.memo(function() {
6400
- const e = Ke("gridState"), t = Ke("listClassName"), n = Ke("itemClassName"), r = Ke("itemContent"), o = Ke("computeItemKey"), s = Ke("isSeeking"), i = Pt("scrollHeight"), a = Ke("ItemComponent"), l = Ke("ListComponent"), u = Ke("ScrollSeekPlaceholder"), d = Ke("context"), h = Pt("itemDimensions"), m = Pt("gap"), v = Ke("log"), b = Ke("stateRestoreInProgress"), g = Pt("reportReadyState"), p = Fn(
6400
+ const e = qe("gridState"), t = qe("listClassName"), n = qe("itemClassName"), r = qe("itemContent"), o = qe("computeItemKey"), s = qe("isSeeking"), i = Pt("scrollHeight"), a = qe("ItemComponent"), l = qe("ListComponent"), u = qe("ScrollSeekPlaceholder"), d = qe("context"), h = Pt("itemDimensions"), m = Pt("gap"), v = qe("log"), b = qe("stateRestoreInProgress"), g = Pt("reportReadyState"), p = Fn(
6401
6401
  X.useMemo(
6402
6402
  () => (x) => {
6403
6403
  const w = x.parentElement.parentElement.scrollHeight;
@@ -6451,8 +6451,8 @@ const Ix = /* @__PURE__ */ _e(() => {
6451
6451
  })
6452
6452
  }
6453
6453
  );
6454
- }), kx = X.memo(function() {
6455
- const e = Ke("HeaderComponent"), t = Pt("headerHeight"), n = Ke("headerFooterTag"), r = Fn(
6454
+ }), Ax = X.memo(function() {
6455
+ const e = qe("HeaderComponent"), t = Pt("headerHeight"), n = qe("headerFooterTag"), r = Fn(
6456
6456
  X.useMemo(
6457
6457
  () => (s) => {
6458
6458
  t(vn(s, "height"));
@@ -6461,10 +6461,10 @@ const Ix = /* @__PURE__ */ _e(() => {
6461
6461
  ),
6462
6462
  !0,
6463
6463
  !1
6464
- ), o = Ke("context");
6464
+ ), o = qe("context");
6465
6465
  return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...lt(e, o) }) }) : null;
6466
- }), Ax = X.memo(function() {
6467
- const e = Ke("FooterComponent"), t = Pt("footerHeight"), n = Ke("headerFooterTag"), r = Fn(
6466
+ }), kx = X.memo(function() {
6467
+ const e = qe("FooterComponent"), t = Pt("footerHeight"), n = qe("headerFooterTag"), r = Fn(
6468
6468
  X.useMemo(
6469
6469
  () => (s) => {
6470
6470
  t(vn(s, "height"));
@@ -6473,7 +6473,7 @@ const Ix = /* @__PURE__ */ _e(() => {
6473
6473
  ),
6474
6474
  !0,
6475
6475
  !1
6476
- ), o = Ke("context");
6476
+ ), o = qe("context");
6477
6477
  return e ? /* @__PURE__ */ c.jsx(n, { ref: r, children: /* @__PURE__ */ c.jsx(e, { ...lt(e, o) }) }) : null;
6478
6478
  }), Px = ({ children: e }) => {
6479
6479
  const t = X.useContext(Ru), n = Pt("itemDimensions"), r = Pt("viewportDimensions"), o = Fn(
@@ -6490,20 +6490,20 @@ const Ix = /* @__PURE__ */ _e(() => {
6490
6490
  t && (r({ height: t.viewportHeight, width: t.viewportWidth }), n({ height: t.itemHeight, width: t.itemWidth }));
6491
6491
  }, [t, r, n]), /* @__PURE__ */ c.jsx("div", { ref: o, style: is(!1), children: e });
6492
6492
  }, _x = ({ children: e }) => {
6493
- const t = X.useContext(Ru), n = Pt("windowViewportRect"), r = Pt("itemDimensions"), o = Ke("customScrollParent"), s = ru(n, o, !1);
6493
+ const t = X.useContext(Ru), n = Pt("windowViewportRect"), r = Pt("itemDimensions"), o = qe("customScrollParent"), s = ru(n, o, !1);
6494
6494
  return X.useEffect(() => {
6495
6495
  t && (r({ height: t.itemHeight, width: t.itemWidth }), n({ offsetTop: 0, visibleHeight: t.viewportHeight, visibleWidth: t.viewportWidth }));
6496
6496
  }, [t, n, r]), /* @__PURE__ */ c.jsx("div", { ref: s, style: is(!1), children: e });
6497
6497
  }, Ox = /* @__PURE__ */ X.memo(function({ ...e }) {
6498
- const t = Ke("useWindowScroll"), n = Ke("customScrollParent"), r = n || t ? Dx : Mx, o = n || t ? _x : Px, s = Ke("context");
6498
+ const t = qe("useWindowScroll"), n = qe("customScrollParent"), r = n || t ? Dx : Mx, o = n || t ? _x : Px, s = qe("context");
6499
6499
  return /* @__PURE__ */ c.jsx(r, { ...e, ...lt(r, s), children: /* @__PURE__ */ c.jsxs(o, { children: [
6500
- /* @__PURE__ */ c.jsx(kx, {}),
6500
+ /* @__PURE__ */ c.jsx(Ax, {}),
6501
6501
  /* @__PURE__ */ c.jsx(jx, {}),
6502
- /* @__PURE__ */ c.jsx(Ax, {})
6502
+ /* @__PURE__ */ c.jsx(kx, {})
6503
6503
  ] }) });
6504
6504
  }), {
6505
6505
  useEmitter: Pu,
6506
- useEmitterValue: Ke,
6506
+ useEmitterValue: qe,
6507
6507
  usePublisher: Pt
6508
6508
  } = /* @__PURE__ */ Cu(
6509
6509
  Nx,
@@ -6546,7 +6546,7 @@ const Ix = /* @__PURE__ */ _e(() => {
6546
6546
  }
6547
6547
  },
6548
6548
  Ox
6549
- ), Mx = /* @__PURE__ */ ju({ useEmitter: Pu, useEmitterValue: Ke, usePublisher: Pt }), Dx = /* @__PURE__ */ ku({ useEmitter: Pu, useEmitterValue: Ke, usePublisher: Pt });
6549
+ ), Mx = /* @__PURE__ */ ju({ useEmitter: Pu, useEmitterValue: qe, usePublisher: Pt }), Dx = /* @__PURE__ */ Au({ useEmitter: Pu, useEmitterValue: qe, usePublisher: Pt });
6550
6550
  function Fc(e, t, n) {
6551
6551
  return t !== "normal" && !(t != null && t.endsWith("px")) && n(`${e} was not resolved to pixel value correctly`, t, xt.WARN), t === "normal" ? 0 : parseInt(t ?? "0", 10);
6552
6552
  }
@@ -7058,7 +7058,7 @@ function ab(e, t = !1) {
7058
7058
  }
7059
7059
  function cb(e, t) {
7060
7060
  const [n, r] = he(e), o = Fe(e), s = Fe(null);
7061
- return qe(() => {
7061
+ return We(() => {
7062
7062
  if (!t) {
7063
7063
  r(e);
7064
7064
  return;
@@ -7084,7 +7084,7 @@ function Gs({
7084
7084
  var v;
7085
7085
  return ((v = yr.get(a)) == null ? void 0 : v.html) ?? null;
7086
7086
  }), d = Fe(null), h = Fe([]);
7087
- qe(() => {
7087
+ We(() => {
7088
7088
  h.current = [];
7089
7089
  const v = yr.get(a);
7090
7090
  if (v && v.source === i) {
@@ -7584,14 +7584,14 @@ function Jc(e, t) {
7584
7584
  function jb(e) {
7585
7585
  return e.filter((t) => t.tagName !== "A");
7586
7586
  }
7587
- var kb = "Portal", us = f.forwardRef((e, t) => {
7587
+ var Ab = "Portal", us = f.forwardRef((e, t) => {
7588
7588
  var a;
7589
7589
  const { container: n, ...r } = e, [o, s] = f.useState(!1);
7590
7590
  ot(() => s(!0), []);
7591
7591
  const i = n || o && ((a = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : a.body);
7592
7592
  return i ? Il.createPortal(/* @__PURE__ */ c.jsx(xe.div, { ...r, ref: t }), i) : null;
7593
7593
  });
7594
- us.displayName = kb;
7594
+ us.displayName = Ab;
7595
7595
  var Js = 0;
7596
7596
  function ha() {
7597
7597
  f.useEffect(() => {
@@ -7622,7 +7622,7 @@ function Wu(e, t) {
7622
7622
  t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
7623
7623
  return n;
7624
7624
  }
7625
- function Ab(e, t, n) {
7625
+ function kb(e, t, n) {
7626
7626
  if (n || arguments.length === 2) for (var r = 0, o = t.length, s; r < o; r++)
7627
7627
  (s || !(r in t)) && (s || (s = Array.prototype.slice.call(t, 0, r)), s[r] = t[r]);
7628
7628
  return e.concat(s || Array.prototype.slice.call(t));
@@ -7992,7 +7992,7 @@ function uw(e) {
7992
7992
  }, [e]), f.useEffect(function() {
7993
7993
  if (e.inert) {
7994
7994
  document.body.classList.add("block-interactivity-".concat(o));
7995
- var g = Ab([e.lockRef.current], (e.shards || []).map(rl), !0).filter(Boolean);
7995
+ var g = kb([e.lockRef.current], (e.shards || []).map(rl), !0).filter(Boolean);
7996
7996
  return g.forEach(function(p) {
7997
7997
  return p.classList.add("allow-interactivity-".concat(o));
7998
7998
  }), function() {
@@ -8350,7 +8350,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
8350
8350
  const o = (s = e.current) == null ? void 0 : s.getAttribute("aria-describedby");
8351
8351
  t && o && (document.getElementById(t) || console.warn(r));
8352
8352
  }, [r, e, t]), null;
8353
- }, pd = Qu, Rw = td, md = rd, ps = od, ms = sd, kn = ad, gs = ld, gd = dd;
8353
+ }, pd = Qu, Rw = td, md = rd, ps = od, ms = sd, An = ad, gs = ld, gd = dd;
8354
8354
  const Ew = pd, Iw = md, vd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
8355
8355
  ps,
8356
8356
  {
@@ -8370,7 +8370,7 @@ const xd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
8370
8370
  f.Children.forEach(a, (l) => {
8371
8371
  if (s || !f.isValidElement(l)) return;
8372
8372
  const u = l.type;
8373
- if (u === kn || (u == null ? void 0 : u.displayName) === kn.displayName || (u == null ? void 0 : u.name) === "DialogTitle") {
8373
+ if (u === An || (u == null ? void 0 : u.displayName) === An.displayName || (u == null ? void 0 : u.name) === "DialogTitle") {
8374
8374
  s = !0;
8375
8375
  return;
8376
8376
  }
@@ -8391,7 +8391,7 @@ const xd = f.forwardRef(({ className: e, children: t, ...n }, r) => {
8391
8391
  ),
8392
8392
  ...n,
8393
8393
  children: [
8394
- !o && /* @__PURE__ */ c.jsx(kn, { className: "sr-only", children: "Dialog" }),
8394
+ !o && /* @__PURE__ */ c.jsx(An, { className: "sr-only", children: "Dialog" }),
8395
8395
  t,
8396
8396
  /* @__PURE__ */ c.jsxs(gd, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
8397
8397
  /* @__PURE__ */ c.jsx(Xn, { className: "h-4 w-4" }),
@@ -8418,7 +8418,7 @@ const bd = ({
8418
8418
  );
8419
8419
  bd.displayName = "DialogHeader";
8420
8420
  const wd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
8421
- kn,
8421
+ An,
8422
8422
  {
8423
8423
  ref: n,
8424
8424
  className: L(
@@ -8428,7 +8428,7 @@ const wd = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
8428
8428
  ...t
8429
8429
  }
8430
8430
  ));
8431
- wd.displayName = kn.displayName;
8431
+ wd.displayName = An.displayName;
8432
8432
  const Nw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
8433
8433
  gs,
8434
8434
  {
@@ -8440,7 +8440,7 @@ const Nw = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
8440
8440
  Nw.displayName = gs.displayName;
8441
8441
  function jw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8442
8442
  const [s, i] = he(!1), [a, l] = he(null), [u, d] = he(null), { toast: h } = fa();
8443
- qe(() => {
8443
+ We(() => {
8444
8444
  e && n && m();
8445
8445
  }, [e, n]);
8446
8446
  const m = async () => {
@@ -8547,9 +8547,9 @@ function jw({ isOpen: e, onClose: t, fileId: n, fileName: r, mimeType: o }) {
8547
8547
  ] }) });
8548
8548
  }
8549
8549
  const Ro = "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";
8550
- function kw({ className: e }) {
8550
+ function Aw({ className: e }) {
8551
8551
  const [t, n] = he(0);
8552
- return qe(() => {
8552
+ return We(() => {
8553
8553
  const r = setInterval(() => n((o) => (o + 1) % 4), 500);
8554
8554
  return () => clearInterval(r);
8555
8555
  }, []), /* @__PURE__ */ c.jsxs(
@@ -8564,7 +8564,7 @@ function kw({ className: e }) {
8564
8564
  }
8565
8565
  );
8566
8566
  }
8567
- const Aw = X.memo(function({
8567
+ const kw = X.memo(function({
8568
8568
  message: t,
8569
8569
  messageIndex: n,
8570
8570
  isStreamingMessage: r = !1,
@@ -8606,7 +8606,7 @@ const Aw = X.memo(function({
8606
8606
  } catch (le) {
8607
8607
  console.error("Failed to copy:", le);
8608
8608
  }
8609
- }, A = () => {
8609
+ }, k = () => {
8610
8610
  if (!g) return;
8611
8611
  const le = Y ? qn(t.content) : D;
8612
8612
  g(t.id, le);
@@ -8748,7 +8748,7 @@ const Aw = X.memo(function({
8748
8748
  }
8749
8749
  ) });
8750
8750
  })(),
8751
- /* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(kw, { className: L(W, O ? "text-xs" : "text-sm") }) })
8751
+ /* @__PURE__ */ c.jsx("div", { className: "mt-2", children: /* @__PURE__ */ c.jsx(Aw, { className: L(W, O ? "text-xs" : "text-sm") }) })
8752
8752
  ]
8753
8753
  }
8754
8754
  )
@@ -8902,7 +8902,7 @@ const Aw = X.memo(function({
8902
8902
  {
8903
8903
  variant: "ghost",
8904
8904
  size: "sm",
8905
- onClick: A,
8905
+ onClick: k,
8906
8906
  className: L("h-6 w-6 p-0 hover:bg-foreground/10", W, O && "h-5 w-5"),
8907
8907
  children: /* @__PURE__ */ c.jsx(Ya, { className: L(W, O ? "h-3 w-3" : "h-4 w-4") })
8908
8908
  }
@@ -8959,7 +8959,7 @@ const Aw = X.memo(function({
8959
8959
  {
8960
8960
  variant: "ghost",
8961
8961
  size: "sm",
8962
- onClick: A,
8962
+ onClick: k,
8963
8963
  className: L("h-6 w-6 p-0 hover:bg-background/50 text-current", O && "h-5 w-5"),
8964
8964
  children: /* @__PURE__ */ c.jsx(Ya, { className: L("text-current", O ? "h-3 w-3" : "h-4 w-4") })
8965
8965
  }
@@ -9029,7 +9029,7 @@ function ni(e) {
9029
9029
  }
9030
9030
  function ol({ data: e }) {
9031
9031
  if (Array.isArray(e))
9032
- return e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ c.jsx("div", { className: Ro, children: /* @__PURE__ */ c.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ c.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ c.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: kr(e) });
9032
+ return e.every((n) => n === null || ["string", "number", "boolean"].includes(typeof n)) ? /* @__PURE__ */ c.jsx("div", { className: Ro, children: /* @__PURE__ */ c.jsx("ul", { className: "list-disc pl-5", children: e.map((n, r) => /* @__PURE__ */ c.jsx("li", { children: String(n) }, r)) }) }) : /* @__PURE__ */ c.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Ar(e) });
9033
9033
  if (e && typeof e == "object") {
9034
9034
  const t = Array.isArray(e.distilled_facts) ? e.distilled_facts : null, n = Array.isArray(e.follow_up_queries) ? e.follow_up_queries : null, r = typeof e.is_sufficient == "boolean" ? e.is_sufficient : void 0;
9035
9035
  if (t || n || typeof r == "boolean")
@@ -9057,7 +9057,7 @@ function ol({ data: e }) {
9057
9057
  /* @__PURE__ */ c.jsx("dd", { className: "inline", children: Dw(i) })
9058
9058
  ] }, s)) }) });
9059
9059
  }
9060
- return /* @__PURE__ */ c.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: kr(e) });
9060
+ return /* @__PURE__ */ c.jsx("pre", { className: "font-mono text-xs bg-background/50 rounded border p-2 whitespace-pre-wrap break-words", children: Ar(e) });
9061
9061
  }
9062
9062
  function Dw(e) {
9063
9063
  if (e == null) return String(e);
@@ -9097,7 +9097,7 @@ function $o(e) {
9097
9097
  }
9098
9098
  return e;
9099
9099
  }
9100
- function kr(e) {
9100
+ function Ar(e) {
9101
9101
  if (typeof e == "string") return e;
9102
9102
  if (yd(e)) return "";
9103
9103
  try {
@@ -9119,7 +9119,7 @@ function Fw(e) {
9119
9119
  }
9120
9120
  function Bw(e, t) {
9121
9121
  const [n, r] = he(e), o = Fe(e), s = Fe(null);
9122
- return qe(() => {
9122
+ return We(() => {
9123
9123
  if (!t) {
9124
9124
  r(e);
9125
9125
  return;
@@ -9211,10 +9211,10 @@ function qn(e) {
9211
9211
  const t = e.filter((n) => n.type === "tool_result");
9212
9212
  if (t.length)
9213
9213
  try {
9214
- return t.length === 1 ? kr(t[0].output) : kr(t.map((n) => ({ toolCallId: n.toolCallId, output: n.output })));
9214
+ return t.length === 1 ? Ar(t[0].output) : Ar(t.map((n) => ({ toolCallId: n.toolCallId, output: n.output })));
9215
9215
  } catch {
9216
9216
  }
9217
- return kr(e);
9217
+ return Ar(e);
9218
9218
  }
9219
9219
  function zw(e) {
9220
9220
  const t = e.find((r) => r.type === "tool_result");
@@ -9258,11 +9258,11 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9258
9258
  if (!B) return null;
9259
9259
  const Q = H(B);
9260
9260
  if (!Q) return null;
9261
- const de = P.getBoundingClientRect(), z = Q.getBoundingClientRect(), A = {
9261
+ const de = P.getBoundingClientRect(), z = Q.getBoundingClientRect(), k = {
9262
9262
  anchorId: B,
9263
9263
  anchorOffset: z.top - de.top
9264
9264
  };
9265
- return C.current = A, A;
9265
+ return C.current = k, k;
9266
9266
  },
9267
9267
  [H]
9268
9268
  ), _ = De(
@@ -9272,7 +9272,7 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9272
9272
  if (!B) return !1;
9273
9273
  const Q = H(D);
9274
9274
  if (!Q) return !1;
9275
- const de = B.getBoundingClientRect(), A = Q.getBoundingClientRect().top - de.top, V = P - A;
9275
+ const de = B.getBoundingClientRect(), k = Q.getBoundingClientRect().top - de.top, V = P - k;
9276
9276
  if (Math.abs(V) > 0.5) {
9277
9277
  const oe = B.style.scrollBehavior;
9278
9278
  B.style.scrollBehavior = "auto";
@@ -9321,7 +9321,7 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9321
9321
  }
9322
9322
  };
9323
9323
  }, [U, e.length, a]);
9324
- qe(() => {
9324
+ We(() => {
9325
9325
  if (!T.current || e.length <= T.current.prevLength) return;
9326
9326
  let D = !1;
9327
9327
  const P = () => {
@@ -9337,11 +9337,11 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9337
9337
  S.current || requestAnimationFrame(() => {
9338
9338
  U();
9339
9339
  });
9340
- }, [U, e]), qe(() => {
9340
+ }, [U, e]), We(() => {
9341
9341
  F.current;
9342
9342
  const D = e.length;
9343
9343
  F.current = D;
9344
- }, [e.length]), qe(() => {
9344
+ }, [e.length]), We(() => {
9345
9345
  if (typeof ResizeObserver > "u") return;
9346
9346
  const D = E.current;
9347
9347
  if (!D) return;
@@ -9361,7 +9361,11 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9361
9361
  const M = t && b && N.current && !g && N.current ? "smooth" : !1, Y = an(() => {
9362
9362
  if (!(S.current || g || e.length === 0))
9363
9363
  return Math.max(0, e.length - 1);
9364
- }, [g, e.length]), W = {
9364
+ }, [g, e.length]);
9365
+ We(() => {
9366
+ !g && y.current && y.current.scrollToIndex({ index: e.length - 1, align: "end", behavior: "auto" });
9367
+ }, [g, e.length]);
9368
+ const W = {
9365
9369
  display: "flex",
9366
9370
  flexDirection: "column-reverse",
9367
9371
  overflowY: "auto",
@@ -9427,7 +9431,7 @@ const ri = (e, t) => (e == null ? void 0 : e.id) ?? `message-${t}`, Cd = X.forwa
9427
9431
  isolation: "isolate"
9428
9432
  },
9429
9433
  children: /* @__PURE__ */ c.jsx(
9430
- Aw,
9434
+ kw,
9431
9435
  {
9432
9436
  message: P,
9433
9437
  messageIndex: D,
@@ -10336,7 +10340,7 @@ function ys(e, t) {
10336
10340
  const n = ws(e).scrollLeft;
10337
10341
  return t ? t.left + n : Mn(nn(e)).left + n;
10338
10342
  }
10339
- function kd(e, t) {
10343
+ function Ad(e, t) {
10340
10344
  const n = e.getBoundingClientRect(), r = n.left + t.scrollLeft - ys(e, n), o = n.top + t.scrollTop;
10341
10345
  return {
10342
10346
  x: r,
@@ -10362,7 +10366,7 @@ function Ty(e) {
10362
10366
  const v = Mn(r);
10363
10367
  u = Qn(r), d.x = v.x + r.clientLeft, d.y = v.y + r.clientTop;
10364
10368
  }
10365
- const m = i && !h && !s ? kd(i, l) : Qt(0);
10369
+ const m = i && !h && !s ? Ad(i, l) : Qt(0);
10366
10370
  return {
10367
10371
  width: n.width * u.x,
10368
10372
  height: n.height * u.y,
@@ -10434,11 +10438,11 @@ function fl(e, t, n) {
10434
10438
  }
10435
10439
  return Uo(r);
10436
10440
  }
10437
- function Ad(e, t) {
10441
+ function kd(e, t) {
10438
10442
  const n = wn(e);
10439
- return n === t || !Ht(n) || rr(n) ? !1 : zt(n).position === "fixed" || Ad(n, t);
10443
+ return n === t || !Ht(n) || rr(n) ? !1 : zt(n).position === "fixed" || kd(n, t);
10440
10444
  }
10441
- function ky(e, t) {
10445
+ function Ay(e, t) {
10442
10446
  const n = t.get(e);
10443
10447
  if (n)
10444
10448
  return n;
@@ -10447,18 +10451,18 @@ function ky(e, t) {
10447
10451
  let i = s ? wn(e) : e;
10448
10452
  for (; Ht(i) && !rr(i); ) {
10449
10453
  const a = zt(i), l = Sa(i);
10450
- !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Ny.has(o.position) || Jr(i) && !l && Ad(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = wn(i);
10454
+ !l && a.position === "fixed" && (o = null), (s ? !l && !o : !l && a.position === "static" && !!o && Ny.has(o.position) || Jr(i) && !l && kd(e, i)) ? r = r.filter((d) => d !== i) : o = a, i = wn(i);
10451
10455
  }
10452
10456
  return t.set(e, r), r;
10453
10457
  }
10454
- function Ay(e) {
10458
+ function ky(e) {
10455
10459
  let {
10456
10460
  element: t,
10457
10461
  boundary: n,
10458
10462
  rootBoundary: r,
10459
10463
  strategy: o
10460
10464
  } = e;
10461
- const i = [...n === "clippingAncestors" ? bs(t) ? [] : ky(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, d) => {
10465
+ const i = [...n === "clippingAncestors" ? bs(t) ? [] : Ay(t, this._c) : [].concat(n), r], a = i[0], l = i.reduce((u, d) => {
10462
10466
  const h = fl(t, d, o);
10463
10467
  return u.top = Ct(h.top, u.top), u.right = bn(h.right, u.right), u.bottom = bn(h.bottom, u.bottom), u.left = Ct(h.left, u.left), u;
10464
10468
  }, fl(t, a, o));
@@ -10495,7 +10499,7 @@ function _y(e, t, n) {
10495
10499
  l.x = v.x + t.clientLeft, l.y = v.y + t.clientTop;
10496
10500
  } else o && u();
10497
10501
  s && !r && o && u();
10498
- const d = o && !r && !s ? kd(o, a) : Qt(0), h = i.left + a.scrollLeft - l.x - d.x, m = i.top + a.scrollTop - l.y - d.y;
10502
+ const d = o && !r && !s ? Ad(o, a) : Qt(0), h = i.left + a.scrollLeft - l.x - d.x, m = i.top + a.scrollTop - l.y - d.y;
10499
10503
  return {
10500
10504
  x: h,
10501
10505
  y: m,
@@ -10550,7 +10554,7 @@ function My(e) {
10550
10554
  const Dy = {
10551
10555
  convertOffsetParentRelativeRectToViewportRelativeRect: Ty,
10552
10556
  getDocumentElement: nn,
10553
- getClippingRect: Ay,
10557
+ getClippingRect: ky,
10554
10558
  getOffsetParent: Pd,
10555
10559
  getElementRects: Oy,
10556
10560
  getClientRects: Ry,
@@ -10903,7 +10907,7 @@ var $d = "PopperAnchor", Hd = f.forwardRef(
10903
10907
  Hd.displayName = $d;
10904
10908
  var Ea = "PopperContent", [i0, a0] = Ld(Ea), zd = f.forwardRef(
10905
10909
  (e, t) => {
10906
- var z, A, V, ee, ae, oe;
10910
+ var z, k, V, ee, ae, oe;
10907
10911
  const {
10908
10912
  __scopePopper: n,
10909
10913
  side: r = "bottom",
@@ -10958,7 +10962,7 @@ var Ea = "PopperContent", [i0, a0] = Ld(Ea), zd = f.forwardRef(
10958
10962
  ot(() => {
10959
10963
  re && (W == null || W());
10960
10964
  }, [re, W]);
10961
- const D = (z = O.arrow) == null ? void 0 : z.x, P = (A = O.arrow) == null ? void 0 : A.y, B = ((V = O.arrow) == null ? void 0 : V.centerOffset) !== 0, [Q, de] = f.useState();
10965
+ const D = (z = O.arrow) == null ? void 0 : z.x, P = (k = O.arrow) == null ? void 0 : k.y, B = ((V = O.arrow) == null ? void 0 : V.centerOffset) !== 0, [Q, de] = f.useState();
10962
10966
  return ot(() => {
10963
10967
  x && de(window.getComputedStyle(x).zIndex);
10964
10968
  }, [x]), /* @__PURE__ */ c.jsx(
@@ -11084,11 +11088,11 @@ function Vd(e) {
11084
11088
  const [t, n = "center"] = e.split("-");
11085
11089
  return [t, n];
11086
11090
  }
11087
- var Ia = Bd, Na = Hd, ja = zd, ka = Wd, ii = "rovingFocusGroup.onEntryFocus", d0 = { bubbles: !1, cancelable: !0 }, Zr = "RovingFocusGroup", [ki, Gd, f0] = xa(Zr), [h0, Kd] = Wt(
11091
+ var Ia = Bd, Na = Hd, ja = zd, Aa = Wd, ii = "rovingFocusGroup.onEntryFocus", d0 = { bubbles: !1, cancelable: !0 }, Zr = "RovingFocusGroup", [Ai, Gd, f0] = xa(Zr), [h0, Kd] = Wt(
11088
11092
  Zr,
11089
11093
  [f0]
11090
11094
  ), [p0, m0] = h0(Zr), qd = f.forwardRef(
11091
- (e, t) => /* @__PURE__ */ c.jsx(ki.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(ki.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(g0, { ...e, ref: t }) }) })
11095
+ (e, t) => /* @__PURE__ */ c.jsx(Ai.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(Ai.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ c.jsx(g0, { ...e, ref: t }) }) })
11092
11096
  );
11093
11097
  qd.displayName = Zr;
11094
11098
  var g0 = f.forwardRef((e, t) => {
@@ -11177,7 +11181,7 @@ var g0 = f.forwardRef((e, t) => {
11177
11181
  if (r)
11178
11182
  return v(), () => b();
11179
11183
  }, [r, v, b]), /* @__PURE__ */ c.jsx(
11180
- ki.ItemSlot,
11184
+ Ai.ItemSlot,
11181
11185
  {
11182
11186
  scope: n,
11183
11187
  id: u,
@@ -11248,9 +11252,9 @@ function Jd(e, t = !1) {
11248
11252
  function w0(e, t) {
11249
11253
  return e.map((n, r) => e[(t + r) % e.length]);
11250
11254
  }
11251
- var y0 = qd, S0 = Xd, Ai = ["Enter", " "], C0 = ["ArrowDown", "PageUp", "Home"], Zd = ["ArrowUp", "PageDown", "End"], T0 = [...C0, ...Zd], R0 = {
11252
- ltr: [...Ai, "ArrowRight"],
11253
- rtl: [...Ai, "ArrowLeft"]
11255
+ var y0 = qd, S0 = Xd, ki = ["Enter", " "], C0 = ["ArrowDown", "PageUp", "Home"], Zd = ["ArrowUp", "PageDown", "End"], T0 = [...C0, ...Zd], R0 = {
11256
+ ltr: [...ki, "ArrowRight"],
11257
+ rtl: [...ki, "ArrowLeft"]
11254
11258
  }, E0 = {
11255
11259
  ltr: ["ArrowLeft"],
11256
11260
  rtl: ["ArrowRight"]
@@ -11258,7 +11262,7 @@ var y0 = qd, S0 = Xd, Ai = ["Enter", " "], C0 = ["ArrowDown", "PageUp", "Home"],
11258
11262
  N0,
11259
11263
  hr,
11260
11264
  Kd
11261
- ]), Ss = hr(), ef = Kd(), [j0, Hn] = $n(Qr), [k0, eo] = $n(Qr), tf = (e) => {
11265
+ ]), Ss = hr(), ef = Kd(), [j0, Hn] = $n(Qr), [A0, eo] = $n(Qr), tf = (e) => {
11262
11266
  const { __scopeMenu: t, open: n = !1, children: r, dir: o, onOpenChange: s, modal: i = !0 } = e, a = Ss(t), [l, u] = f.useState(null), d = f.useRef(!1), h = at(s), m = vs(o);
11263
11267
  return f.useEffect(() => {
11264
11268
  const v = () => {
@@ -11276,7 +11280,7 @@ var y0 = qd, S0 = Xd, Ai = ["Enter", " "], C0 = ["ArrowDown", "PageUp", "Home"],
11276
11280
  content: l,
11277
11281
  onContentChange: u,
11278
11282
  children: /* @__PURE__ */ c.jsx(
11279
- k0,
11283
+ A0,
11280
11284
  {
11281
11285
  scope: t,
11282
11286
  onClose: f.useCallback(() => h(!1), [h]),
@@ -11290,13 +11294,13 @@ var y0 = qd, S0 = Xd, Ai = ["Enter", " "], C0 = ["ArrowDown", "PageUp", "Home"],
11290
11294
  ) });
11291
11295
  };
11292
11296
  tf.displayName = Qr;
11293
- var A0 = "MenuAnchor", Aa = f.forwardRef(
11297
+ var k0 = "MenuAnchor", ka = f.forwardRef(
11294
11298
  (e, t) => {
11295
11299
  const { __scopeMenu: n, ...r } = e, o = Ss(n);
11296
11300
  return /* @__PURE__ */ c.jsx(Na, { ...o, ...r, ref: t });
11297
11301
  }
11298
11302
  );
11299
- Aa.displayName = A0;
11303
+ ka.displayName = k0;
11300
11304
  var Pa = "MenuPortal", [P0, nf] = $n(Pa, {
11301
11305
  forceMount: void 0
11302
11306
  }), rf = (e) => {
@@ -11363,8 +11367,8 @@ var _t = "MenuContent", [_0, _a] = $n(_t), of = f.forwardRef(
11363
11367
  disableOutsideScroll: b,
11364
11368
  ...g
11365
11369
  } = e, p = Hn(_t, n), x = eo(_t, n), w = Ss(n), y = ef(n), E = I0(n), [S, T] = f.useState(null), C = f.useRef(null), I = Ee(t, C, p.onContentChange), N = f.useRef(0), j = f.useRef(""), F = f.useRef(0), H = f.useRef(null), U = f.useRef("right"), _ = f.useRef(0), Z = b ? fs : f.Fragment, G = b ? { as: D0, allowPinchZoom: !0 } : void 0, re = (M) => {
11366
- var z, A;
11367
- const Y = j.current + M, W = E().filter((V) => !V.disabled), D = document.activeElement, P = (z = W.find((V) => V.ref.current === D)) == null ? void 0 : z.textValue, B = W.map((V) => V.textValue), Q = q0(B, Y, P), de = (A = W.find((V) => V.textValue === Q)) == null ? void 0 : A.ref.current;
11370
+ var z, k;
11371
+ const Y = j.current + M, W = E().filter((V) => !V.disabled), D = document.activeElement, P = (z = W.find((V) => V.ref.current === D)) == null ? void 0 : z.textValue, B = W.map((V) => V.textValue), Q = q0(B, Y, P), de = (k = W.find((V) => V.textValue === Q)) == null ? void 0 : k.ref.current;
11368
11372
  (function V(ee) {
11369
11373
  j.current = ee, window.clearTimeout(N.current), ee !== "" && (N.current = window.setTimeout(() => V(""), 1e3));
11370
11374
  })(Y), de && setTimeout(() => de.focus());
@@ -11523,7 +11527,7 @@ var Vo = "MenuItem", gl = "menu.itemSelect", Cs = f.forwardRef(
11523
11527
  }),
11524
11528
  onKeyDown: ne(e.onKeyDown, (h) => {
11525
11529
  const m = a.searchRef.current !== "";
11526
- n || m && h.key === " " || Ai.includes(h.key) && (h.currentTarget.click(), h.preventDefault());
11530
+ n || m && h.key === " " || ki.includes(h.key) && (h.currentTarget.click(), h.preventDefault());
11527
11531
  })
11528
11532
  }
11529
11533
  );
@@ -11665,7 +11669,7 @@ mf.displayName = U0;
11665
11669
  var W0 = "MenuArrow", gf = f.forwardRef(
11666
11670
  (e, t) => {
11667
11671
  const { __scopeMenu: n, ...r } = e, o = Ss(n);
11668
- return /* @__PURE__ */ c.jsx(ka, { ...o, ...r, ref: t });
11672
+ return /* @__PURE__ */ c.jsx(Aa, { ...o, ...r, ref: t });
11669
11673
  }
11670
11674
  );
11671
11675
  gf.displayName = W0;
@@ -11679,7 +11683,7 @@ var V0 = "MenuSub", [hR, vf] = $n(V0), Cr = "MenuSubTrigger", xf = f.forwardRef(
11679
11683
  return () => {
11680
11684
  window.clearTimeout(h), l(null);
11681
11685
  };
11682
- }, [a, l]), /* @__PURE__ */ c.jsx(Aa, { asChild: !0, ...u, children: /* @__PURE__ */ c.jsx(
11686
+ }, [a, l]), /* @__PURE__ */ c.jsx(ka, { asChild: !0, ...u, children: /* @__PURE__ */ c.jsx(
11683
11687
  af,
11684
11688
  {
11685
11689
  id: o.triggerId,
@@ -11819,7 +11823,7 @@ function X0(e, t) {
11819
11823
  function Br(e) {
11820
11824
  return (t) => t.pointerType === "mouse" ? e(t) : void 0;
11821
11825
  }
11822
- var J0 = tf, Z0 = Aa, Q0 = rf, eS = of, tS = Ma, nS = sf, rS = Cs, oS = cf, sS = uf, iS = ff, aS = pf, cS = mf, lS = gf, uS = xf, dS = wf, Ts = "DropdownMenu", [fS, pR] = Wt(
11826
+ var J0 = tf, Z0 = ka, Q0 = rf, eS = of, tS = Ma, nS = sf, rS = Cs, oS = cf, sS = uf, iS = ff, aS = pf, cS = mf, lS = gf, uS = xf, dS = wf, Ts = "DropdownMenu", [fS, pR] = Wt(
11823
11827
  Ts,
11824
11828
  [Qd]
11825
11829
  ), pt = Qd(), [hS, Sf] = fS(Ts), Cf = (e) => {
@@ -11931,18 +11935,18 @@ var vS = "DropdownMenuLabel", jf = f.forwardRef(
11931
11935
  }
11932
11936
  );
11933
11937
  jf.displayName = vS;
11934
- var xS = "DropdownMenuItem", kf = f.forwardRef(
11938
+ var xS = "DropdownMenuItem", Af = f.forwardRef(
11935
11939
  (e, t) => {
11936
11940
  const { __scopeDropdownMenu: n, ...r } = e, o = pt(n);
11937
11941
  return /* @__PURE__ */ c.jsx(rS, { ...o, ...r, ref: t });
11938
11942
  }
11939
11943
  );
11940
- kf.displayName = xS;
11941
- var bS = "DropdownMenuCheckboxItem", Af = f.forwardRef((e, t) => {
11944
+ Af.displayName = xS;
11945
+ var bS = "DropdownMenuCheckboxItem", kf = f.forwardRef((e, t) => {
11942
11946
  const { __scopeDropdownMenu: n, ...r } = e, o = pt(n);
11943
11947
  return /* @__PURE__ */ c.jsx(oS, { ...o, ...r, ref: t });
11944
11948
  });
11945
- Af.displayName = bS;
11949
+ kf.displayName = bS;
11946
11950
  var wS = "DropdownMenuRadioGroup", yS = f.forwardRef((e, t) => {
11947
11951
  const { __scopeDropdownMenu: n, ...r } = e, o = pt(n);
11948
11952
  return /* @__PURE__ */ c.jsx(sS, { ...o, ...r, ref: t });
@@ -11995,8 +11999,8 @@ var NS = "DropdownMenuSubContent", Df = f.forwardRef((e, t) => {
11995
11999
  );
11996
12000
  });
11997
12001
  Df.displayName = NS;
11998
- var jS = Cf, kS = Rf, AS = Ef, Lf = Nf, Ff = jf, Bf = kf, $f = Af, Hf = Pf, zf = _f, Uf = Of, Wf = Mf, Vf = Df;
11999
- const PS = jS, _S = kS, OS = f.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
12002
+ var jS = Cf, AS = Rf, kS = Ef, Lf = Nf, Ff = jf, Bf = Af, $f = kf, Hf = Pf, zf = _f, Uf = Of, Wf = Mf, Vf = Df;
12003
+ const PS = jS, _S = AS, OS = f.forwardRef(({ className: e, inset: t, children: n, ...r }, o) => /* @__PURE__ */ c.jsxs(
12000
12004
  Wf,
12001
12005
  {
12002
12006
  ref: o,
@@ -12025,7 +12029,7 @@ const MS = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
12025
12029
  }
12026
12030
  ));
12027
12031
  MS.displayName = Vf.displayName;
12028
- const Gf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(AS, { children: /* @__PURE__ */ c.jsx(
12032
+ const Gf = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(kS, { children: /* @__PURE__ */ c.jsx(
12029
12033
  Lf,
12030
12034
  {
12031
12035
  ref: r,
@@ -12139,14 +12143,14 @@ function No({
12139
12143
  isLoadingHistory: F,
12140
12144
  loadOlderMessages: H,
12141
12145
  api: U
12142
- } = qi(), [_, Z] = he(null), [G, re] = he(""), [O, M] = he(null), [Y, W] = he([]), [D, P] = he(!1), [B, Q] = he(null), [de, z] = he(null), [A, V] = he(!1), [ee, ae] = he(null), [oe, Te] = he([]), [Pe, je] = he(null), [le, me] = he(null), [pe, we] = he(!1), Be = Fe(null), st = Fe(null), Qe = Fe(null), [It, K] = he("desktop");
12143
- qe(() => {
12146
+ } = qi(), [_, Z] = he(null), [G, re] = he(""), [O, M] = he(null), [Y, W] = he([]), [D, P] = he(!1), [B, Q] = he(null), [de, z] = he(null), [k, V] = he(!1), [ee, ae] = he(null), [oe, Te] = he([]), [Pe, je] = he(null), [le, me] = he(null), [pe, we] = he(!1), Be = Fe(null), st = Fe(null), Qe = Fe(null), [It, K] = he("desktop");
12147
+ We(() => {
12144
12148
  const ce = () => {
12145
12149
  const ue = window.innerWidth;
12146
12150
  K(ue < 640 ? "phone" : ue < 1024 ? "tablet" : "desktop");
12147
12151
  };
12148
12152
  return ce(), window.addEventListener("resize", ce), () => window.removeEventListener("resize", ce);
12149
- }, []), qe(() => {
12153
+ }, []), We(() => {
12150
12154
  let ce = !1;
12151
12155
  if (!b) {
12152
12156
  Te([]), je(null), me(null), Qe.current = null;
@@ -12156,8 +12160,8 @@ function No({
12156
12160
  threadId: b,
12157
12161
  checkpointId: S ?? null,
12158
12162
  checkpointNs: T ?? null
12159
- }, Ae = Qe.current;
12160
- if (!(Ae && Ae.threadId === ue.threadId && Ae.checkpointId === ue.checkpointId && Ae.checkpointNs === ue.checkpointNs))
12163
+ }, ke = Qe.current;
12164
+ if (!(ke && ke.threadId === ue.threadId && ke.checkpointId === ue.checkpointId && ke.checkpointNs === ue.checkpointNs))
12161
12165
  return C(b).then((Ye) => {
12162
12166
  var to;
12163
12167
  if (ce) return;
@@ -12175,7 +12179,7 @@ function No({
12175
12179
  }), () => {
12176
12180
  ce = !0;
12177
12181
  };
12178
- }, [b, S, T, Pe, C]), qe(() => {
12182
+ }, [b, S, T, Pe, C]), We(() => {
12179
12183
  S && (je(S), me(T ?? null));
12180
12184
  }, [S, T]);
12181
12185
  const te = De(async () => {
@@ -12186,7 +12190,7 @@ function No({
12186
12190
  console.warn("loadOlderMessages failed", ce);
12187
12191
  }
12188
12192
  }, [j, F, H]);
12189
- qe(() => {
12193
+ We(() => {
12190
12194
  (async () => {
12191
12195
  try {
12192
12196
  const ue = await U.getAgent("default");
@@ -12195,9 +12199,9 @@ function No({
12195
12199
  console.warn("Failed to fetch default message:", ue), ae(null);
12196
12200
  }
12197
12201
  })();
12198
- }, [U]), qe(() => {
12199
- w && !A && (v == null || v(w));
12200
- }, [w, A, v]);
12202
+ }, [U]), We(() => {
12203
+ w && !k && (v == null || v(w));
12204
+ }, [w, k, v]);
12201
12205
  const $e = (ce) => {
12202
12206
  if (ce.length > Eo)
12203
12207
  return `Message too long (${ce.length}/${Eo} characters)`;
@@ -12207,8 +12211,8 @@ function No({
12207
12211
  return (ue == null ? void 0 : ue.message) || "Invalid message";
12208
12212
  }
12209
12213
  }, Ue = (ce) => {
12210
- const ue = ce.content || [], Ae = ue.filter((Ye) => Ye.type === "text").map((Ye) => Ye.text).join("");
12211
- if (Ae) return Ae;
12214
+ const ue = ce.content || [], ke = ue.filter((Ye) => Ye.type === "text").map((Ye) => Ye.text).join("");
12215
+ if (ke) return ke;
12212
12216
  try {
12213
12217
  return JSON.stringify(ue, null, 2);
12214
12218
  } catch {
@@ -12218,9 +12222,9 @@ function No({
12218
12222
  const ue = ce.trim();
12219
12223
  if (!(!ue && Y.length === 0)) {
12220
12224
  if (ue) {
12221
- const Ae = $e(ue);
12222
- if (Ae) {
12223
- M(Ae);
12225
+ const ke = $e(ue);
12226
+ if (ke) {
12227
+ M(ke);
12224
12228
  return;
12225
12229
  }
12226
12230
  }
@@ -12231,8 +12235,8 @@ function No({
12231
12235
  payloadExtras: _ ? { edit: !0, originalMessageId: _ } : void 0,
12232
12236
  attachments: Y
12233
12237
  }), h == null || h(ue), M(null), W([]), Z(null), re("");
12234
- } catch (Ae) {
12235
- const Ye = (Ae == null ? void 0 : Ae.message) || "Failed to send message";
12238
+ } catch (ke) {
12239
+ const Ye = (ke == null ? void 0 : ke.message) || "Failed to send message";
12236
12240
  M(Ye), v == null || v(Ye);
12237
12241
  }
12238
12242
  }
@@ -12245,8 +12249,8 @@ function No({
12245
12249
  }, [mt]), rt = De((ce) => {
12246
12250
  for (let ue = ce - 1; ue >= 0; ue--)
12247
12251
  if (g[ue].role === "user") {
12248
- const Ae = Ue(g[ue]);
12249
- Ae && y(Ae, {
12252
+ const ke = Ue(g[ue]);
12253
+ ke && y(ke, {
12250
12254
  checkpointId: Pe ?? S ?? void 0,
12251
12255
  checkpointNs: le ?? T ?? void 0
12252
12256
  });
@@ -12254,8 +12258,8 @@ function No({
12254
12258
  }
12255
12259
  }, [g, y, Pe, le, S, T, Ue]), yt = (ce) => {
12256
12260
  const ue = Array.from(ce.target.files || []);
12257
- W((Ae) => [...Ae, ...ue]);
12258
- }, it = (ce) => W((ue) => ue.filter((Ae, Ye) => ce !== Ye)), St = async (ce) => {
12261
+ W((ke) => [...ke, ...ue]);
12262
+ }, it = (ce) => W((ue) => ue.filter((ke, Ye) => ce !== Ye)), St = async (ce) => {
12259
12263
  const ue = (ce.target.files || [])[0];
12260
12264
  if (ue) {
12261
12265
  Q(null), z(null), P(!0);
@@ -12265,11 +12269,11 @@ function No({
12265
12269
  checkpointNs: le ?? T ?? void 0,
12266
12270
  attachments: [ue]
12267
12271
  });
12268
- const Ae = `Uploaded ${ue.name} - processing through chat stream`;
12269
- z(Ae);
12270
- } catch (Ae) {
12271
- const Ye = Ae instanceof Error ? Ae.message : "Failed to upload Excel file";
12272
- console.error("Excel upload failed", Ae), Q(Ye), v == null || v(Ye);
12272
+ const ke = `Uploaded ${ue.name} - processing through chat stream`;
12273
+ z(ke);
12274
+ } catch (ke) {
12275
+ const Ye = ke instanceof Error ? ke.message : "Failed to upload Excel file";
12276
+ console.error("Excel upload failed", ke), Q(Ye), v == null || v(Ye);
12273
12277
  } finally {
12274
12278
  P(!1), ce.target.value = "";
12275
12279
  }
@@ -12286,17 +12290,17 @@ function No({
12286
12290
  await N(), je(null), me(null);
12287
12291
  return;
12288
12292
  }
12289
- const ue = oe.find((Ye) => Ye.checkpointId === ce), Ae = (ue == null ? void 0 : ue.checkpointNs) ?? null;
12290
- await I(ce, Ae), je(ce), me(Ae);
12293
+ const ue = oe.find((Ye) => Ye.checkpointId === ce), ke = (ue == null ? void 0 : ue.checkpointNs) ?? null;
12294
+ await I(ce, ke), je(ce), me(ke);
12291
12295
  } finally {
12292
12296
  setTimeout(() => {
12293
12297
  we(!1);
12294
12298
  }, 100);
12295
12299
  }
12296
12300
  }
12297
- }, fn = `flex flex-1 w-full flex-col min-h-0 min-w-0 max-h-full overflow-hidden bg-transparent ${e} ${d.container || ""}`, Ge = `flex-1 min-h-0 min-w-0 max-h-full w-full overflow-y-auto overflow-x-auto overscroll-contain break-words break-anywhere p-4 bg-transparent ${d.messagesArea || ""}`, Kt = `flex-shrink-0 w-full border-t p-4 bg-transparent ${d.inputArea || ""}`;
12301
+ }, fn = `flex flex-1 w-full flex-col min-h-0 min-w-0 max-h-full overflow-hidden bg-transparent ${e} ${d.container || ""}`, Ke = `flex-1 min-h-0 min-w-0 max-h-full w-full overflow-y-auto overflow-x-auto overscroll-contain break-words break-anywhere p-4 bg-transparent ${d.messagesArea || ""}`, Kt = `flex-shrink-0 w-full border-t p-4 bg-transparent ${d.inputArea || ""}`;
12298
12302
  return /* @__PURE__ */ c.jsxs("div", { className: fn, children: [
12299
- !!w && !A && /* @__PURE__ */ c.jsxs("div", { className: "flex-shrink-0 bg-red-50 border border-red-200 text-red-800 px-4 py-2 text-sm flex items-center justify-between", children: [
12303
+ !!w && !k && /* @__PURE__ */ c.jsxs("div", { className: "flex-shrink-0 bg-red-50 border border-red-200 text-red-800 px-4 py-2 text-sm flex items-center justify-between", children: [
12300
12304
  /* @__PURE__ */ c.jsx("span", { children: w }),
12301
12305
  /* @__PURE__ */ c.jsx(
12302
12306
  Oe,
@@ -12334,7 +12338,7 @@ function No({
12334
12338
  /* @__PURE__ */ c.jsx(
12335
12339
  Cd,
12336
12340
  {
12337
- className: Ge,
12341
+ className: Ke,
12338
12342
  style: r ? { maxHeight: r } : void 0,
12339
12343
  messages: g,
12340
12344
  isStreaming: p,
@@ -13058,7 +13062,7 @@ function Oi({
13058
13062
  deleteThread: p,
13059
13063
  renameThread: x
13060
13064
  } = qi(), [w, y] = he(m ?? []), [E, S] = he(!1), [T, C] = he(null), [I, N] = he(null), [j, F] = he(""), [H, U] = he(!1);
13061
- qe(() => {
13065
+ We(() => {
13062
13066
  y(m ?? []);
13063
13067
  }, [m]);
13064
13068
  const _ = async (P) => {
@@ -13374,14 +13378,14 @@ const gh = ({
13374
13378
  );
13375
13379
  gh.displayName = "SheetHeader";
13376
13380
  const vh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
13377
- kn,
13381
+ An,
13378
13382
  {
13379
13383
  ref: n,
13380
13384
  className: L("text-lg font-semibold text-foreground", e),
13381
13385
  ...t
13382
13386
  }
13383
13387
  ));
13384
- vh.displayName = kn.displayName;
13388
+ vh.displayName = An.displayName;
13385
13389
  const xh = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
13386
13390
  gs,
13387
13391
  {
@@ -13635,7 +13639,7 @@ var Ih = "TooltipArrow", SC = f.forwardRef(
13635
13639
  return wC(
13636
13640
  Ih,
13637
13641
  n
13638
- ).isInside ? null : /* @__PURE__ */ c.jsx(ka, { ...o, ...r, ref: t });
13642
+ ).isInside ? null : /* @__PURE__ */ c.jsx(Aa, { ...o, ...r, ref: t });
13639
13643
  }
13640
13644
  );
13641
13645
  SC.displayName = Ih;
@@ -13731,8 +13735,8 @@ function NC(e) {
13731
13735
  }
13732
13736
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
13733
13737
  }
13734
- var jC = Sh, kC = Ch, AC = Th, Nh = Rh;
13735
- const PC = jC, _C = kC, OC = AC, jh = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
13738
+ var jC = Sh, AC = Ch, kC = Th, Nh = Rh;
13739
+ const PC = jC, _C = AC, OC = kC, jh = f.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ c.jsx(
13736
13740
  Nh,
13737
13741
  {
13738
13742
  ref: r,
@@ -13745,14 +13749,14 @@ const PC = jC, _C = kC, OC = AC, jh = f.forwardRef(({ className: e, sideOffset:
13745
13749
  }
13746
13750
  ));
13747
13751
  jh.displayName = Nh.displayName;
13748
- const MC = "sidebar:state", DC = 60 * 60 * 24 * 7, LC = "16rem", FC = "18rem", BC = "3rem", $C = "b", kh = f.createContext(null);
13749
- function ks() {
13750
- const e = f.useContext(kh);
13752
+ const MC = "sidebar:state", DC = 60 * 60 * 24 * 7, LC = "16rem", FC = "18rem", BC = "3rem", $C = "b", Ah = f.createContext(null);
13753
+ function As() {
13754
+ const e = f.useContext(Ah);
13751
13755
  if (!e)
13752
13756
  throw new Error("useSidebar must be used within a SidebarProvider.");
13753
13757
  return e;
13754
13758
  }
13755
- const Ah = f.forwardRef(
13759
+ const kh = f.forwardRef(
13756
13760
  ({
13757
13761
  defaultOpen: e = !0,
13758
13762
  open: t,
@@ -13787,7 +13791,7 @@ const Ah = f.forwardRef(
13787
13791
  }),
13788
13792
  [p, v, b, l, u, d, g]
13789
13793
  );
13790
- return /* @__PURE__ */ c.jsx(kh.Provider, { value: x, children: /* @__PURE__ */ c.jsx(PC, { delayDuration: 0, children: /* @__PURE__ */ c.jsx(
13794
+ return /* @__PURE__ */ c.jsx(Ah.Provider, { value: x, children: /* @__PURE__ */ c.jsx(PC, { delayDuration: 0, children: /* @__PURE__ */ c.jsx(
13791
13795
  "div",
13792
13796
  {
13793
13797
  style: {
@@ -13806,7 +13810,7 @@ const Ah = f.forwardRef(
13806
13810
  ) }) });
13807
13811
  }
13808
13812
  );
13809
- Ah.displayName = "SidebarProvider";
13813
+ kh.displayName = "SidebarProvider";
13810
13814
  const Ph = f.forwardRef(
13811
13815
  ({
13812
13816
  side: e = "left",
@@ -13816,7 +13820,7 @@ const Ph = f.forwardRef(
13816
13820
  children: o,
13817
13821
  ...s
13818
13822
  }, i) => {
13819
- const { isMobile: a, state: l, openMobile: u, setOpenMobile: d } = ks();
13823
+ const { isMobile: a, state: l, openMobile: u, setOpenMobile: d } = As();
13820
13824
  return n === "none" ? /* @__PURE__ */ c.jsx(
13821
13825
  "div",
13822
13826
  {
@@ -13889,7 +13893,7 @@ const Ph = f.forwardRef(
13889
13893
  );
13890
13894
  Ph.displayName = "Sidebar";
13891
13895
  const _h = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
13892
- const { toggleSidebar: o } = ks();
13896
+ const { toggleSidebar: o } = As();
13893
13897
  return /* @__PURE__ */ c.jsxs(
13894
13898
  Oe,
13895
13899
  {
@@ -13911,7 +13915,7 @@ const _h = f.forwardRef(({ className: e, onClick: t, ...n }, r) => {
13911
13915
  });
13912
13916
  _h.displayName = "SidebarTrigger";
13913
13917
  const HC = f.forwardRef(({ className: e, ...t }, n) => {
13914
- const { toggleSidebar: r } = ks();
13918
+ const { toggleSidebar: r } = As();
13915
13919
  return /* @__PURE__ */ c.jsx(
13916
13920
  "button",
13917
13921
  {
@@ -14109,7 +14113,7 @@ const GC = zr(
14109
14113
  className: s,
14110
14114
  ...i
14111
14115
  }, a) => {
14112
- const l = e ? ir : "button", { isMobile: u, state: d } = ks(), h = /* @__PURE__ */ c.jsx(
14116
+ const l = e ? ir : "button", { isMobile: u, state: d } = As(), h = /* @__PURE__ */ c.jsx(
14113
14117
  l,
14114
14118
  {
14115
14119
  ref: a,
@@ -14257,7 +14261,7 @@ function SR({
14257
14261
  chatClassName: s = "",
14258
14262
  ...i
14259
14263
  }) {
14260
- return /* @__PURE__ */ c.jsx(vo, { ...i, children: /* @__PURE__ */ c.jsxs(Ah, { className: `w-full ${r}`, children: [
14264
+ return /* @__PURE__ */ c.jsx(vo, { ...i, children: /* @__PURE__ */ c.jsxs(kh, { className: `w-full ${r}`, children: [
14261
14265
  /* @__PURE__ */ c.jsxs(Ph, { className: `border-r ${o}`, children: [
14262
14266
  /* @__PURE__ */ c.jsx(Mh, { children: /* @__PURE__ */ c.jsx($h, { children: /* @__PURE__ */ c.jsx(Hh, { children: /* @__PURE__ */ c.jsx(zh, { asChild: !0, size: "lg", children: /* @__PURE__ */ c.jsx("span", { className: "font-semibold", children: t }) }) }) }) }),
14263
14267
  /* @__PURE__ */ c.jsx(Dh, { children: n && /* @__PURE__ */ c.jsxs(Lh, { children: [
@@ -14298,7 +14302,7 @@ Uh.displayName = QC;
14298
14302
  var Wh = Uh;
14299
14303
  const eT = zr(
14300
14304
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
14301
- ), kt = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
14305
+ ), At = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
14302
14306
  Wh,
14303
14307
  {
14304
14308
  ref: n,
@@ -14306,12 +14310,12 @@ const eT = zr(
14306
14310
  ...t
14307
14311
  }
14308
14312
  ));
14309
- kt.displayName = Wh.displayName;
14313
+ At.displayName = Wh.displayName;
14310
14314
  function Vh(e) {
14311
14315
  const t = f.useRef({ value: e, previous: e });
14312
14316
  return f.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
14313
14317
  }
14314
- var As = "Switch", [tT, CR] = Wt(As), [nT, rT] = tT(As), Gh = f.forwardRef(
14318
+ var ks = "Switch", [tT, CR] = Wt(ks), [nT, rT] = tT(ks), Gh = f.forwardRef(
14315
14319
  (e, t) => {
14316
14320
  const {
14317
14321
  __scopeSwitch: n,
@@ -14328,7 +14332,7 @@ var As = "Switch", [tT, CR] = Wt(As), [nT, rT] = tT(As), Gh = f.forwardRef(
14328
14332
  prop: o,
14329
14333
  defaultProp: s ?? !1,
14330
14334
  onChange: u,
14331
- caller: As
14335
+ caller: ks
14332
14336
  });
14333
14337
  return /* @__PURE__ */ c.jsxs(nT, { scope: n, checked: x, disabled: a, children: [
14334
14338
  /* @__PURE__ */ c.jsx(
@@ -14366,7 +14370,7 @@ var As = "Switch", [tT, CR] = Wt(As), [nT, rT] = tT(As), Gh = f.forwardRef(
14366
14370
  ] });
14367
14371
  }
14368
14372
  );
14369
- Gh.displayName = As;
14373
+ Gh.displayName = ks;
14370
14374
  var Kh = "SwitchThumb", qh = f.forwardRef(
14371
14375
  (e, t) => {
14372
14376
  const { __scopeSwitch: n, ...r } = e, o = rT(Kh, n);
@@ -14654,9 +14658,9 @@ var Lt = 10, [ip, Rn] = pr(Ln), pT = "SelectContentImpl", mT = tr("SelectContent
14654
14658
  }, [y]), ha();
14655
14659
  const G = f.useCallback(
14656
14660
  (z) => {
14657
- const [A, ...V] = H().map((oe) => oe.ref.current), [ee] = V.slice(-1), ae = document.activeElement;
14661
+ const [k, ...V] = H().map((oe) => oe.ref.current), [ee] = V.slice(-1), ae = document.activeElement;
14658
14662
  for (const oe of z)
14659
- if (oe === ae || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === A && S && (S.scrollTop = 0), oe === ee && S && (S.scrollTop = S.scrollHeight), oe == null || oe.focus(), document.activeElement !== ae)) return;
14663
+ if (oe === ae || (oe == null || oe.scrollIntoView({ block: "nearest" }), oe === k && S && (S.scrollTop = 0), oe === ee && S && (S.scrollTop = S.scrollHeight), oe == null || oe.focus(), document.activeElement !== ae)) return;
14660
14664
  },
14661
14665
  [H, S]
14662
14666
  ), re = f.useCallback(
@@ -14670,17 +14674,17 @@ var Lt = 10, [ip, Rn] = pr(Ln), pT = "SelectContentImpl", mT = tr("SelectContent
14670
14674
  f.useEffect(() => {
14671
14675
  if (y) {
14672
14676
  let z = { x: 0, y: 0 };
14673
- const A = (ee) => {
14677
+ const k = (ee) => {
14674
14678
  var ae, oe;
14675
14679
  z = {
14676
14680
  x: Math.abs(Math.round(ee.pageX) - (((ae = M.current) == null ? void 0 : ae.x) ?? 0)),
14677
14681
  y: Math.abs(Math.round(ee.pageY) - (((oe = M.current) == null ? void 0 : oe.y) ?? 0))
14678
14682
  };
14679
14683
  }, V = (ee) => {
14680
- z.x <= 10 && z.y <= 10 ? ee.preventDefault() : y.contains(ee.target) || O(!1), document.removeEventListener("pointermove", A), M.current = null;
14684
+ z.x <= 10 && z.y <= 10 ? ee.preventDefault() : y.contains(ee.target) || O(!1), document.removeEventListener("pointermove", k), M.current = null;
14681
14685
  };
14682
- return M.current !== null && (document.addEventListener("pointermove", A), document.addEventListener("pointerup", V, { capture: !0, once: !0 })), () => {
14683
- document.removeEventListener("pointermove", A), document.removeEventListener("pointerup", V, { capture: !0 });
14686
+ return M.current !== null && (document.addEventListener("pointermove", k), document.addEventListener("pointerup", V, { capture: !0, once: !0 })), () => {
14687
+ document.removeEventListener("pointermove", k), document.removeEventListener("pointerup", V, { capture: !0 });
14684
14688
  };
14685
14689
  }
14686
14690
  }, [y, O, M]), f.useEffect(() => {
@@ -14690,18 +14694,18 @@ var Lt = 10, [ip, Rn] = pr(Ln), pT = "SelectContentImpl", mT = tr("SelectContent
14690
14694
  };
14691
14695
  }, [O]);
14692
14696
  const [Y, W] = Tp((z) => {
14693
- const A = H().filter((ae) => !ae.disabled), V = A.find((ae) => ae.ref.current === document.activeElement), ee = Rp(A, z, V);
14697
+ const k = H().filter((ae) => !ae.disabled), V = k.find((ae) => ae.ref.current === document.activeElement), ee = Rp(k, z, V);
14694
14698
  ee && setTimeout(() => ee.ref.current.focus());
14695
14699
  }), D = f.useCallback(
14696
- (z, A, V) => {
14700
+ (z, k, V) => {
14697
14701
  const ee = !Z.current && !V;
14698
- (w.value !== void 0 && w.value === A || ee) && (N(z), ee && (Z.current = !0));
14702
+ (w.value !== void 0 && w.value === k || ee) && (N(z), ee && (Z.current = !0));
14699
14703
  },
14700
14704
  [w.value]
14701
14705
  ), P = f.useCallback(() => y == null ? void 0 : y.focus(), [y]), B = f.useCallback(
14702
- (z, A, V) => {
14706
+ (z, k, V) => {
14703
14707
  const ee = !Z.current && !V;
14704
- (w.value !== void 0 && w.value === A || ee) && F(z);
14708
+ (w.value !== void 0 && w.value === k || ee) && F(z);
14705
14709
  },
14706
14710
  [w.value]
14707
14711
  ), Q = r === "popper" ? Li : cp, de = Q === Li ? {
@@ -14741,8 +14745,8 @@ var Lt = 10, [ip, Rn] = pr(Ln), pT = "SelectContentImpl", mT = tr("SelectContent
14741
14745
  z.preventDefault();
14742
14746
  },
14743
14747
  onUnmountAutoFocus: ne(o, (z) => {
14744
- var A;
14745
- (A = w.trigger) == null || A.focus({ preventScroll: !0 }), z.preventDefault();
14748
+ var k;
14749
+ (k = w.trigger) == null || k.focus({ preventScroll: !0 }), z.preventDefault();
14746
14750
  }),
14747
14751
  children: /* @__PURE__ */ c.jsx(
14748
14752
  Xr,
@@ -14774,8 +14778,8 @@ var Lt = 10, [ip, Rn] = pr(Ln), pT = "SelectContentImpl", mT = tr("SelectContent
14774
14778
  ...x.style
14775
14779
  },
14776
14780
  onKeyDown: ne(x.onKeyDown, (z) => {
14777
- const A = z.ctrlKey || z.altKey || z.metaKey;
14778
- if (z.key === "Tab" && z.preventDefault(), !A && z.key.length === 1 && W(z.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(z.key)) {
14781
+ const k = z.ctrlKey || z.altKey || z.metaKey;
14782
+ if (z.key === "Tab" && z.preventDefault(), !k && z.key.length === 1 && W(z.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(z.key)) {
14779
14783
  let ee = H().filter((ae) => !ae.disabled).map((ae) => ae.ref.current);
14780
14784
  if (["ArrowUp", "End"].includes(z.key) && (ee = ee.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(z.key)) {
14781
14785
  const ae = z.target, oe = ee.indexOf(ae);
@@ -14817,15 +14821,15 @@ var gT = "SelectItemAlignedPosition", cp = f.forwardRef((e, t) => {
14817
14821
  ]);
14818
14822
  a.style.minWidth = Pe + "px", a.style.right = me + "px";
14819
14823
  }
14820
- const F = m(), H = window.innerHeight - Lt * 2, U = g.scrollHeight, _ = window.getComputedStyle(u), Z = parseInt(_.borderTopWidth, 10), G = parseInt(_.paddingTop, 10), re = parseInt(_.borderBottomWidth, 10), O = parseInt(_.paddingBottom, 10), M = Z + G + U + O + re, Y = Math.min(p.offsetHeight * 5, M), W = window.getComputedStyle(g), D = parseInt(W.paddingTop, 10), P = parseInt(W.paddingBottom, 10), B = C.top + C.height / 2 - Lt, Q = H - B, de = p.offsetHeight / 2, z = p.offsetTop + de, A = Z + G + z, V = M - A;
14821
- if (A <= B) {
14824
+ const F = m(), H = window.innerHeight - Lt * 2, U = g.scrollHeight, _ = window.getComputedStyle(u), Z = parseInt(_.borderTopWidth, 10), G = parseInt(_.paddingTop, 10), re = parseInt(_.borderBottomWidth, 10), O = parseInt(_.paddingBottom, 10), M = Z + G + U + O + re, Y = Math.min(p.offsetHeight * 5, M), W = window.getComputedStyle(g), D = parseInt(W.paddingTop, 10), P = parseInt(W.paddingBottom, 10), B = C.top + C.height / 2 - Lt, Q = H - B, de = p.offsetHeight / 2, z = p.offsetTop + de, k = Z + G + z, V = M - k;
14825
+ if (k <= B) {
14822
14826
  const ae = F.length > 0 && p === F[F.length - 1].ref.current;
14823
14827
  a.style.bottom = "0px";
14824
14828
  const oe = u.clientHeight - g.offsetTop - g.offsetHeight, Te = Math.max(
14825
14829
  Q,
14826
14830
  de + // viewport might have padding bottom, include it to avoid a scrollable viewport
14827
14831
  (ae ? P : 0) + oe + re
14828
- ), Pe = A + Te;
14832
+ ), Pe = k + Te;
14829
14833
  a.style.height = Pe + "px";
14830
14834
  } else {
14831
14835
  const ae = F.length > 0 && p === F[0].ref.current;
@@ -14835,7 +14839,7 @@ var gT = "SelectItemAlignedPosition", cp = f.forwardRef((e, t) => {
14835
14839
  Z + g.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
14836
14840
  (ae ? D : 0) + de
14837
14841
  ) + V;
14838
- a.style.height = Te + "px", g.scrollTop = A - B + g.offsetTop;
14842
+ a.style.height = Te + "px", g.scrollTop = k - B + g.offsetTop;
14839
14843
  }
14840
14844
  a.style.margin = `${Lt}px 0`, a.style.minHeight = Y + "px", a.style.maxHeight = H + "px", r == null || r(), requestAnimationFrame(() => v.current = !0);
14841
14845
  }
@@ -15193,7 +15197,7 @@ yp.displayName = CT;
15193
15197
  var Hi = "SelectArrow", TT = f.forwardRef(
15194
15198
  (e, t) => {
15195
15199
  const { __scopeSelect: n, ...r } = e, o = Os(n), s = Tn(Hi, n), i = Rn(Hi, n);
15196
- return s.open && i.position === "popper" ? /* @__PURE__ */ c.jsx(ka, { ...o, ...r, ref: t }) : null;
15200
+ return s.open && i.position === "popper" ? /* @__PURE__ */ c.jsx(Aa, { ...o, ...r, ref: t }) : null;
15197
15201
  }
15198
15202
  );
15199
15203
  TT.displayName = Hi;
@@ -15252,7 +15256,7 @@ function Rp(e, t, n) {
15252
15256
  function ET(e, t) {
15253
15257
  return e.map((n, r) => e[(t + r) % e.length]);
15254
15258
  }
15255
- var IT = Zh, Ep = ep, NT = np, jT = rp, kT = op, Ip = sp, AT = lp, Np = fp, jp = pp, PT = mp, _T = vp, kp = xp, Ap = bp, Pp = yp;
15259
+ var IT = Zh, Ep = ep, NT = np, jT = rp, AT = op, Ip = sp, kT = lp, Np = fp, jp = pp, PT = mp, _T = vp, Ap = xp, kp = bp, Pp = yp;
15256
15260
  const wl = IT, yl = NT, zi = f.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ c.jsxs(
15257
15261
  Ep,
15258
15262
  {
@@ -15270,7 +15274,7 @@ const wl = IT, yl = NT, zi = f.forwardRef(({ className: e, children: t, ...n },
15270
15274
  ));
15271
15275
  zi.displayName = Ep.displayName;
15272
15276
  const _p = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15273
- kp,
15277
+ Ap,
15274
15278
  {
15275
15279
  ref: n,
15276
15280
  className: L(
@@ -15281,9 +15285,9 @@ const _p = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15281
15285
  children: /* @__PURE__ */ c.jsx(Sr, { className: "h-4 w-4" })
15282
15286
  }
15283
15287
  ));
15284
- _p.displayName = kp.displayName;
15288
+ _p.displayName = Ap.displayName;
15285
15289
  const Op = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15286
- Ap,
15290
+ kp,
15287
15291
  {
15288
15292
  ref: n,
15289
15293
  className: L(
@@ -15294,8 +15298,8 @@ const Op = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15294
15298
  children: /* @__PURE__ */ c.jsx(Yn, { className: "h-4 w-4" })
15295
15299
  }
15296
15300
  ));
15297
- Op.displayName = Ap.displayName;
15298
- const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c.jsx(kT, { children: /* @__PURE__ */ c.jsxs(
15301
+ Op.displayName = kp.displayName;
15302
+ const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ...r }, o) => /* @__PURE__ */ c.jsx(AT, { children: /* @__PURE__ */ c.jsxs(
15299
15303
  Ip,
15300
15304
  {
15301
15305
  ref: o,
@@ -15309,7 +15313,7 @@ const Ui = f.forwardRef(({ className: e, children: t, position: n = "popper", ..
15309
15313
  children: [
15310
15314
  /* @__PURE__ */ c.jsx(_p, {}),
15311
15315
  /* @__PURE__ */ c.jsx(
15312
- AT,
15316
+ kT,
15313
15317
  {
15314
15318
  className: L(
15315
15319
  "p-1",
@@ -15369,7 +15373,7 @@ const jo = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15369
15373
  }
15370
15374
  ));
15371
15375
  jo.displayName = "Card";
15372
- const ko = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15376
+ const Ao = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15373
15377
  "div",
15374
15378
  {
15375
15379
  ref: n,
@@ -15377,8 +15381,8 @@ const ko = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15377
15381
  ...t
15378
15382
  }
15379
15383
  ));
15380
- ko.displayName = "CardHeader";
15381
- const Ao = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15384
+ Ao.displayName = "CardHeader";
15385
+ const ko = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15382
15386
  "h3",
15383
15387
  {
15384
15388
  ref: n,
@@ -15389,7 +15393,7 @@ const Ao = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15389
15393
  ...t
15390
15394
  }
15391
15395
  ));
15392
- Ao.displayName = "CardTitle";
15396
+ ko.displayName = "CardTitle";
15393
15397
  const DT = f.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ c.jsx(
15394
15398
  "p",
15395
15399
  {
@@ -15431,10 +15435,10 @@ const FT = {
15431
15435
  };
15432
15436
  function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15433
15437
  const [r, o] = he(!1), [s, i] = he(!1), [a, l] = he(e), [u, d] = he(!1), { toast: h } = fa();
15434
- qe(() => {
15438
+ We(() => {
15435
15439
  const p = JSON.stringify(a) !== JSON.stringify(e);
15436
15440
  d(p);
15437
- }, [a, e]), qe(() => {
15441
+ }, [a, e]), We(() => {
15438
15442
  l(e);
15439
15443
  }, [e]);
15440
15444
  const m = () => {
@@ -15477,13 +15481,13 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15477
15481
  ] }),
15478
15482
  /* @__PURE__ */ c.jsxs("div", { className: "space-y-6 py-6", children: [
15479
15483
  /* @__PURE__ */ c.jsxs(jo, { children: [
15480
- /* @__PURE__ */ c.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(Ao, { className: "text-lg flex items-center gap-2", children: [
15484
+ /* @__PURE__ */ c.jsx(Ao, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(ko, { className: "text-lg flex items-center gap-2", children: [
15481
15485
  /* @__PURE__ */ c.jsx(om, { className: "h-5 w-5" }),
15482
15486
  "API Configuration"
15483
15487
  ] }) }),
15484
15488
  /* @__PURE__ */ c.jsxs(Po, { className: "space-y-4", children: [
15485
15489
  /* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
15486
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "api-url", children: "API Base URL" }),
15490
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "api-url", children: "API Base URL" }),
15487
15491
  /* @__PURE__ */ c.jsxs("div", { className: "flex gap-2", children: [
15488
15492
  /* @__PURE__ */ c.jsx(
15489
15493
  $r,
@@ -15501,7 +15505,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15501
15505
  ] })
15502
15506
  ] }),
15503
15507
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15504
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "enable-auth", children: "Enable Authentication" }),
15508
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "enable-auth", children: "Enable Authentication" }),
15505
15509
  /* @__PURE__ */ c.jsx(
15506
15510
  mn,
15507
15511
  {
@@ -15515,7 +15519,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15515
15519
  )
15516
15520
  ] }),
15517
15521
  a.api.enableAuth && /* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
15518
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "auth-token", children: "Authentication Token" }),
15522
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "auth-token", children: "Authentication Token" }),
15519
15523
  /* @__PURE__ */ c.jsxs("div", { className: "flex gap-2", children: [
15520
15524
  /* @__PURE__ */ c.jsx(
15521
15525
  $r,
@@ -15544,13 +15548,13 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15544
15548
  ] })
15545
15549
  ] }),
15546
15550
  /* @__PURE__ */ c.jsxs(jo, { children: [
15547
- /* @__PURE__ */ c.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(Ao, { className: "text-lg flex items-center gap-2", children: [
15551
+ /* @__PURE__ */ c.jsx(Ao, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(ko, { className: "text-lg flex items-center gap-2", children: [
15548
15552
  /* @__PURE__ */ c.jsx(am, { className: "h-5 w-5" }),
15549
15553
  "Interface Settings"
15550
15554
  ] }) }),
15551
15555
  /* @__PURE__ */ c.jsxs(Po, { className: "space-y-4", children: [
15552
15556
  /* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
15553
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "layout", children: "Layout Style" }),
15557
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "layout", children: "Layout Style" }),
15554
15558
  /* @__PURE__ */ c.jsxs(
15555
15559
  wl,
15556
15560
  {
@@ -15571,7 +15575,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15571
15575
  )
15572
15576
  ] }),
15573
15577
  /* @__PURE__ */ c.jsxs("div", { className: "space-y-2", children: [
15574
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "theme", children: "Theme" }),
15578
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "theme", children: "Theme" }),
15575
15579
  /* @__PURE__ */ c.jsxs(
15576
15580
  wl,
15577
15581
  {
@@ -15594,7 +15598,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15594
15598
  /* @__PURE__ */ c.jsx(za, {}),
15595
15599
  /* @__PURE__ */ c.jsxs("div", { className: "space-y-3", children: [
15596
15600
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15597
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "show-timestamps", children: "Show Timestamps" }),
15601
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "show-timestamps", children: "Show Timestamps" }),
15598
15602
  /* @__PURE__ */ c.jsx(
15599
15603
  mn,
15600
15604
  {
@@ -15608,7 +15612,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15608
15612
  )
15609
15613
  ] }),
15610
15614
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15611
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "show-agent-names", children: "Show Agent Names" }),
15615
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "show-agent-names", children: "Show Agent Names" }),
15612
15616
  /* @__PURE__ */ c.jsx(
15613
15617
  mn,
15614
15618
  {
@@ -15622,7 +15626,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15622
15626
  )
15623
15627
  ] }),
15624
15628
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15625
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "compact-messages", children: "Compact Messages" }),
15629
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "compact-messages", children: "Compact Messages" }),
15626
15630
  /* @__PURE__ */ c.jsx(
15627
15631
  mn,
15628
15632
  {
@@ -15639,14 +15643,14 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15639
15643
  ] })
15640
15644
  ] }),
15641
15645
  /* @__PURE__ */ c.jsxs(jo, { children: [
15642
- /* @__PURE__ */ c.jsx(ko, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(Ao, { className: "text-lg flex items-center gap-2", children: [
15646
+ /* @__PURE__ */ c.jsx(Ao, { className: "pb-3", children: /* @__PURE__ */ c.jsxs(ko, { className: "text-lg flex items-center gap-2", children: [
15643
15647
  /* @__PURE__ */ c.jsx(cm, { className: "h-5 w-5" }),
15644
15648
  "Behavior Settings"
15645
15649
  ] }) }),
15646
15650
  /* @__PURE__ */ c.jsxs(Po, { className: "space-y-4", children: [
15647
15651
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15648
15652
  /* @__PURE__ */ c.jsxs("div", { children: [
15649
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
15653
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "auto-save", children: "Auto-save Conversations" }),
15650
15654
  /* @__PURE__ */ c.jsx("p", { className: "text-sm text-muted-foreground", children: "Automatically save messages to threads" })
15651
15655
  ] }),
15652
15656
  /* @__PURE__ */ c.jsx(
@@ -15663,7 +15667,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15663
15667
  ] }),
15664
15668
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15665
15669
  /* @__PURE__ */ c.jsxs("div", { children: [
15666
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "enable-streaming", children: "Enable Streaming" }),
15670
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "enable-streaming", children: "Enable Streaming" }),
15667
15671
  /* @__PURE__ */ c.jsx("p", { className: "text-sm text-muted-foreground", children: "Stream responses in real-time" })
15668
15672
  ] }),
15669
15673
  /* @__PURE__ */ c.jsx(
@@ -15680,7 +15684,7 @@ function RR({ settings: e, onSettingsChange: t, className: n = "" }) {
15680
15684
  ] }),
15681
15685
  /* @__PURE__ */ c.jsxs("div", { className: "flex items-center justify-between", children: [
15682
15686
  /* @__PURE__ */ c.jsxs("div", { children: [
15683
- /* @__PURE__ */ c.jsx(kt, { htmlFor: "typing-indicator", children: "Typing Indicator" }),
15687
+ /* @__PURE__ */ c.jsx(At, { htmlFor: "typing-indicator", children: "Typing Indicator" }),
15684
15688
  /* @__PURE__ */ c.jsx("p", { className: "text-sm text-muted-foreground", children: "Show typing indicator during responses" })
15685
15689
  ] }),
15686
15690
  /* @__PURE__ */ c.jsx(
@@ -15798,7 +15802,7 @@ export {
15798
15802
  gR as ChatRoutingProvider,
15799
15803
  RR as ChatSettings,
15800
15804
  Gs as MarkdownContent,
15801
- Aw as MessageComponent,
15805
+ kw as MessageComponent,
15802
15806
  Cd as MessageList,
15803
15807
  Oi as ThreadManager,
15804
15808
  Pn as apiClient,