teodor-new-chat-ui 4.1.0 → 4.1.1

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
@@ -64,8 +64,8 @@ function om() {
64
64
  }
65
65
  function y(T, B, Q) {
66
66
  {
67
- var Ce = x.ReactDebugCurrentFrame, Ke = Ce.getStackAddendum();
68
- Ke !== "" && (B += "%s", Q = Q.concat([Ke]));
67
+ var Ce = x.ReactDebugCurrentFrame, Ve = Ce.getStackAddendum();
68
+ Ve !== "" && (B += "%s", Q = Q.concat([Ve]));
69
69
  var Je = Q.map(function($e) {
70
70
  return String($e);
71
71
  });
@@ -85,8 +85,8 @@ function om() {
85
85
  var Ce = T.displayName;
86
86
  if (Ce)
87
87
  return Ce;
88
- var Ke = B.displayName || B.name || "";
89
- return Ke !== "" ? Q + "(" + Ke + ")" : Q;
88
+ var Ve = B.displayName || B.name || "";
89
+ return Ve !== "" ? Q + "(" + Ve + ")" : Q;
90
90
  }
91
91
  function M(T) {
92
92
  return T.displayName || "Context";
@@ -126,7 +126,7 @@ function om() {
126
126
  var Ce = T.displayName || null;
127
127
  return Ce !== null ? Ce : D(T.type) || "Memo";
128
128
  case h: {
129
- var Ke = T, Je = Ke._payload, $e = Ke._init;
129
+ var Ve = T, Je = Ve._payload, $e = Ve._init;
130
130
  try {
131
131
  return D($e(Je));
132
132
  } catch {
@@ -204,8 +204,8 @@ function om() {
204
204
  if (z === void 0)
205
205
  try {
206
206
  throw Error();
207
- } catch (Ke) {
208
- var Ce = Ke.stack.trim().match(/\n( *(at )?)/);
207
+ } catch (Ve) {
208
+ var Ce = Ve.stack.trim().match(/\n( *(at )?)/);
209
209
  z = Ce && Ce[1] || "";
210
210
  }
211
211
  return `
@@ -227,7 +227,7 @@ function om() {
227
227
  }
228
228
  var Ce;
229
229
  V = !0;
230
- var Ke = Error.prepareStackTrace;
230
+ var Ve = Error.prepareStackTrace;
231
231
  Error.prepareStackTrace = void 0;
232
232
  var Je;
233
233
  Je = ue.current, ue.current = null, fe();
@@ -283,7 +283,7 @@ function om() {
283
283
  }
284
284
  }
285
285
  } finally {
286
- V = !1, ue.current = Je, Re(), Error.prepareStackTrace = Ke;
286
+ V = !1, ue.current = Je, Re(), Error.prepareStackTrace = Ve;
287
287
  }
288
288
  var sr = T ? T.displayName || T.name : "", Fn = sr ? P(sr) : "";
289
289
  return typeof T == "function" && X.set(T, Fn), Fn;
@@ -315,9 +315,9 @@ function om() {
315
315
  case f:
316
316
  return et(T.type, B, Q);
317
317
  case h: {
318
- var Ce = T, Ke = Ce._payload, Je = Ce._init;
318
+ var Ce = T, Ve = Ce._payload, Je = Ce._init;
319
319
  try {
320
- return et(Je(Ke), B, Q);
320
+ return et(Je(Ve), B, Q);
321
321
  } catch {
322
322
  }
323
323
  }
@@ -332,7 +332,7 @@ function om() {
332
332
  } else
333
333
  Ye.setExtraStackFrame(null);
334
334
  }
335
- function st(T, B, Q, Ce, Ke) {
335
+ function st(T, B, Q, Ce, Ve) {
336
336
  {
337
337
  var Je = Function.call.bind(we);
338
338
  for (var $e in T)
@@ -347,7 +347,7 @@ function om() {
347
347
  } catch (ct) {
348
348
  Pe = ct;
349
349
  }
350
- Pe && !(Pe instanceof Error) && (Fe(Ke), b("%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).", Ce || "React class", Q, $e, typeof Pe), Fe(null)), Pe instanceof Error && !(Pe.message in je) && (je[Pe.message] = !0, Fe(Ke), b("Failed %s type: %s", Q, Pe.message), Fe(null));
350
+ Pe && !(Pe instanceof Error) && (Fe(Ve), b("%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).", Ce || "React class", Q, $e, typeof Pe), Fe(null)), Pe instanceof Error && !(Pe.message in je) && (je[Pe.message] = !0, Fe(Ve), b("Failed %s type: %s", Q, Pe.message), Fe(null));
351
351
  }
352
352
  }
353
353
  }
@@ -422,7 +422,7 @@ function om() {
422
422
  });
423
423
  }
424
424
  }
425
- var We = function(T, B, Q, Ce, Ke, Je, $e) {
425
+ var We = function(T, B, Q, Ce, Ve, Je, $e) {
426
426
  var Pe = {
427
427
  // This tag allows us to uniquely identify this as a React Element
428
428
  $$typeof: t,
@@ -448,13 +448,13 @@ function om() {
448
448
  configurable: !1,
449
449
  enumerable: !1,
450
450
  writable: !1,
451
- value: Ke
451
+ value: Ve
452
452
  }), Object.freeze && (Object.freeze(Pe.props), Object.freeze(Pe)), Pe;
453
453
  };
454
- function Ve(T, B, Q, Ce, Ke) {
454
+ function qe(T, B, Q, Ce, Ve) {
455
455
  {
456
456
  var Je, $e = {}, Pe = null, Ct = null;
457
- Q !== void 0 && (be(Q), Pe = "" + Q), yn(B) && (be(B.key), Pe = "" + B.key), Et(B) && (Ct = B.ref, G(B, Ke));
457
+ Q !== void 0 && (be(Q), Pe = "" + Q), yn(B) && (be(B.key), Pe = "" + B.key), Et(B) && (Ct = B.ref, G(B, Ve));
458
458
  for (Je in B)
459
459
  we.call(B, Je) && !Xe.hasOwnProperty(Je) && ($e[Je] = B[Je]);
460
460
  if (T && T.defaultProps) {
@@ -466,7 +466,7 @@ function om() {
466
466
  var ft = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
467
467
  Pe && le($e, ft), Ct && Ee($e, ft);
468
468
  }
469
- return We(T, Pe, Ct, Ke, Ce, Ie.current, $e);
469
+ return We(T, Pe, Ct, Ve, Ce, Ie.current, $e);
470
470
  }
471
471
  }
472
472
  var kt = x.ReactCurrentOwner, Sn = x.ReactDebugCurrentFrame;
@@ -535,9 +535,9 @@ Check the top-level render call using <` + Q + ">.");
535
535
  else if (Dn(T))
536
536
  T._store && (T._store.validated = !0);
537
537
  else if (T) {
538
- var Ke = g(T);
539
- if (typeof Ke == "function" && Ke !== T.entries)
540
- for (var Je = Ke.call(T), $e; !($e = Je.next()).done; )
538
+ var Ve = g(T);
539
+ if (typeof Ve == "function" && Ve !== T.entries)
540
+ for (var Je = Ve.call(T), $e; !($e = Je.next()).done; )
541
541
  Dn($e.value) && ee($e.value, B);
542
542
  }
543
543
  }
@@ -561,8 +561,8 @@ Check the top-level render call using <` + Q + ">.");
561
561
  st(Q, T.props, "prop", Ce, T);
562
562
  } else if (B.PropTypes !== void 0 && !Mn) {
563
563
  Mn = !0;
564
- var Ke = D(B);
565
- b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ke || "Unknown");
564
+ var Ve = D(B);
565
+ b("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ve || "Unknown");
566
566
  }
567
567
  typeof B.getDefaultProps == "function" && !B.getDefaultProps.isReactClassApproved && b("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
568
568
  }
@@ -580,7 +580,7 @@ Check the top-level render call using <` + Q + ">.");
580
580
  }
581
581
  }
582
582
  var _t = {};
583
- function tn(T, B, Q, Ce, Ke, Je) {
583
+ function tn(T, B, Q, Ce, Ve, Je) {
584
584
  {
585
585
  var $e = N(T);
586
586
  if (!$e) {
@@ -591,7 +591,7 @@ Check the top-level render call using <` + Q + ">.");
591
591
  var ct;
592
592
  T === null ? ct = "null" : Z(T) ? ct = "array" : T !== void 0 && T.$$typeof === t ? (ct = "<" + (D(T.type) || "Unknown") + " />", Pe = " Did you accidentally export a JSX literal instead of a component?") : ct = typeof T, b("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", ct, Pe);
593
593
  }
594
- var ft = Ve(T, B, Q, Ke, Je);
594
+ var ft = qe(T, B, Q, Ve, Je);
595
595
  if (ft == null)
596
596
  return ft;
597
597
  if ($e) {
@@ -2900,7 +2900,7 @@ function Zg(e = {}) {
2900
2900
  o(N);
2901
2901
  }, []), E = ze(() => {
2902
2902
  var N;
2903
- (N = y.current) == null || N.abort(), y.current = null, l(!1), b(!1);
2903
+ (N = y.current) == null || N.abort(), y.current = null, l(!1), b(!1), S.current = 0, g(0);
2904
2904
  }, []), I = ze(() => {
2905
2905
  h(""), w(null), d(null);
2906
2906
  }, []), j = ze(
@@ -2968,7 +2968,9 @@ function Zg(e = {}) {
2968
2968
  }
2969
2969
  b(!0);
2970
2970
  const Re = fe.body.getReader(), ue = new TextDecoder();
2971
- let z = "", P = [], V = S.current, X = null;
2971
+ let z = "", P = [];
2972
+ S.current = 0, g(0);
2973
+ let V = 0, X = null;
2972
2974
  const se = () => {
2973
2975
  if (P.length) {
2974
2976
  const we = P.join("");
@@ -3039,7 +3041,7 @@ function Zg(e = {}) {
3039
3041
  } finally {
3040
3042
  (Y = Re.releaseLock) == null || Y.call(Re);
3041
3043
  }
3042
- X !== null && typeof window < "u" && window.cancelAnimationFrame(X), clearInterval(Ge), l(!1), b(!1), y.current = null;
3044
+ X !== null && typeof window < "u" && window.cancelAnimationFrame(X), clearInterval(Ge), l(!1), b(!1), y.current = null, S.current = 0, g(0);
3043
3045
  }
3044
3046
  } catch (oe) {
3045
3047
  if (oe.name !== "AbortError") {
@@ -3047,7 +3049,7 @@ function Zg(e = {}) {
3047
3049
  d(fe), (de = M == null ? void 0 : M.onError) == null || de.call(M, fe);
3048
3050
  }
3049
3051
  } finally {
3050
- l(!1), b(!1), y.current = null;
3052
+ l(!1), b(!1), y.current = null, S.current = 0, g(0);
3051
3053
  }
3052
3054
  })(), { close: () => D.abort() };
3053
3055
  },
@@ -3166,7 +3168,7 @@ function ox({
3166
3168
  k.current = p;
3167
3169
  }, [p]);
3168
3170
  const U = it(!1), Y = it([]), de = it(null), oe = it(null), fe = it(!1), Re = ze((G, le) => new Promise((Ee, We) => {
3169
- const Ve = async () => {
3171
+ const qe = async () => {
3170
3172
  U.current = !0;
3171
3173
  try {
3172
3174
  await G(), Ee();
@@ -3179,7 +3181,7 @@ function ox({
3179
3181
  });
3180
3182
  }
3181
3183
  };
3182
- U.current ? Y.current.push(Ve) : Ve().catch((kt) => {
3184
+ U.current ? Y.current.push(qe) : qe().catch((kt) => {
3183
3185
  We(kt);
3184
3186
  });
3185
3187
  }), []), ue = ze(async () => {
@@ -3223,8 +3225,7 @@ function ox({
3223
3225
  (G) => {
3224
3226
  const le = G.threadId, Ee = !!G.created, We = !!G.ready;
3225
3227
  if (k.current !== le) {
3226
- const Ve = !k.current && D.messages.length <= 1;
3227
- Ve && (oe.current = le), w(le), (We || Ee || Ve) && V();
3228
+ !k.current && D.messages.length <= 1 && (oe.current = le), w(le), (We || Ee) && V();
3228
3229
  return;
3229
3230
  }
3230
3231
  (We || Ee) && V();
@@ -3280,16 +3281,16 @@ function ox({
3280
3281
  return;
3281
3282
  }
3282
3283
  if (!(de.current === G && !We)) {
3283
- w((Ve) => Ve === G ? Ve : G), de.current = G, b(!0);
3284
+ w((qe) => qe === G ? qe : G), de.current = G, b(!0);
3284
3285
  try {
3285
- const Ve = await l.getMessages({
3286
+ const qe = await l.getMessages({
3286
3287
  threadId: G,
3287
3288
  checkpointId: le,
3288
3289
  checkpointNs: Ee
3289
3290
  });
3290
- fe.current = !1, X(Ve, "replace"), N((Ve == null ? void 0 : Ve.checkpointId) ?? void 0), M((Ve == null ? void 0 : Ve.checkpointNs) ?? void 0);
3291
- } catch (Ve) {
3292
- throw i == null || i(String(Ve)), Ve;
3291
+ fe.current = !1, X(qe, "replace"), N((qe == null ? void 0 : qe.checkpointId) ?? void 0), M((qe == null ? void 0 : qe.checkpointNs) ?? void 0);
3292
+ } catch (qe) {
3293
+ throw i == null || i(String(qe)), qe;
3293
3294
  } finally {
3294
3295
  de.current = null, b(!1);
3295
3296
  }
@@ -3356,10 +3357,10 @@ function ox({
3356
3357
  var Ln;
3357
3358
  const Ee = k.current;
3358
3359
  !Ee && !(le != null && le.payloadExtras) && console.warn("[ChatSessionProvider] No thread ID - message will create new thread");
3359
- const We = (le == null ? void 0 : le.attachments) || [], { contentParts: Ve, filesInfo: kt } = await Bg(
3360
+ const We = (le == null ? void 0 : le.attachments) || [], { contentParts: qe, filesInfo: kt } = await Bg(
3360
3361
  l,
3361
3362
  We
3362
- ), Sn = [...Ve];
3363
+ ), Sn = [...qe];
3363
3364
  G && G.trim() && Sn.push({ type: "text", text: G.trim() });
3364
3365
  const qt = {
3365
3366
  id: ((Ln = crypto.randomUUID) == null ? void 0 : Ln.call(crypto)) || `user-${Date.now()}`,
@@ -3414,10 +3415,10 @@ function ox({
3414
3415
  if (!We)
3415
3416
  throw new Error("No active thread to handle interrupt");
3416
3417
  try {
3417
- const Ve = le ? Ee ?? !0 : !1;
3418
- await l.resume({ threadId: We, value: Ve });
3419
- } catch (Ve) {
3420
- throw console.error(`[ChatSessionProvider] Failed to handle interrupt ${G}:`, Ve), Ve;
3418
+ const qe = le ? Ee ?? !0 : !1;
3419
+ await l.resume({ threadId: We, value: qe });
3420
+ } catch (qe) {
3421
+ throw console.error(`[ChatSessionProvider] Failed to handle interrupt ${G}:`, qe), qe;
3421
3422
  }
3422
3423
  },
3423
3424
  [l]
@@ -3749,7 +3750,7 @@ function fx(e, t) {
3749
3750
  function nt(...e) {
3750
3751
  return e;
3751
3752
  }
3752
- function qe(e, t) {
3753
+ function Ke(e, t) {
3753
3754
  return e(An, t);
3754
3755
  }
3755
3756
  function Ae(e, t) {
@@ -3762,7 +3763,7 @@ function ut(e) {
3762
3763
  return e(ru);
3763
3764
  }
3764
3765
  function ce(e, t) {
3765
- return qe(e, ux(t, cs));
3766
+ return Ke(e, ux(t, cs));
3766
3767
  }
3767
3768
  function Yt(e, t) {
3768
3769
  const n = e(An, (r) => {
@@ -3808,7 +3809,7 @@ function F(e, ...t) {
3808
3809
  Xi(e);
3809
3810
  return;
3810
3811
  case An:
3811
- return qe(e, n(o));
3812
+ return Ke(e, n(o));
3812
3813
  }
3813
3814
  };
3814
3815
  }
@@ -3836,7 +3837,7 @@ function _e(...e) {
3836
3837
  const o = Math.pow(2, e.length) - 1;
3837
3838
  return e.forEach((s, i) => {
3838
3839
  const a = Math.pow(2, i);
3839
- qe(s, (l) => {
3840
+ Ke(s, (l) => {
3840
3841
  const u = n;
3841
3842
  n = n | a, t[i] = l, u !== o && n === o && r && (r(), r = null);
3842
3843
  });
@@ -3856,7 +3857,7 @@ function px(e) {
3856
3857
  return function(o, s) {
3857
3858
  switch (o) {
3858
3859
  case An:
3859
- return s ? n === s ? void 0 : (r(), n = s, t = qe(e, s), t) : (r(), Sr);
3860
+ return s ? n === s ? void 0 : (r(), n = s, t = Ke(e, s), t) : (r(), Sr);
3860
3861
  case yr:
3861
3862
  r(), n = null;
3862
3863
  return;
@@ -3931,7 +3932,7 @@ function ht(...e) {
3931
3932
  const o = Math.pow(2, e.length) - 1;
3932
3933
  return e.forEach((s, i) => {
3933
3934
  const a = Math.pow(2, i);
3934
- qe(s, (l) => {
3935
+ Ke(s, (l) => {
3935
3936
  n[i] = l, r = r | a, r === o && Ae(t, n);
3936
3937
  });
3937
3938
  }), function(s, i) {
@@ -3941,7 +3942,7 @@ function ht(...e) {
3941
3942
  return;
3942
3943
  }
3943
3944
  case An:
3944
- return r === o && i(n), qe(t, i);
3945
+ return r === o && i(n), Ke(t, i);
3945
3946
  }
3946
3947
  };
3947
3948
  }
@@ -3954,7 +3955,7 @@ function bi(...e) {
3954
3955
  case yr:
3955
3956
  return;
3956
3957
  case An:
3957
- return dx(...e.map((r) => qe(r, n)));
3958
+ return dx(...e.map((r) => Ke(r, n)));
3958
3959
  }
3959
3960
  };
3960
3961
  }
@@ -4516,7 +4517,7 @@ const _x = {
4516
4517
  te((S) => S.changed)
4517
4518
  )
4518
4519
  );
4519
- qe(
4520
+ Ke(
4520
4521
  F(
4521
4522
  a,
4522
4523
  sn(
@@ -4534,7 +4535,7 @@ const _x = {
4534
4535
  E.length > 0 && (S -= bl(-S, E)), Ae(i, S);
4535
4536
  }
4536
4537
  }
4537
- ), qe(F(a, _e(e)), ([S, C]) => {
4538
+ ), Ke(F(a, _e(e)), ([S, C]) => {
4538
4539
  S < 0 && C(
4539
4540
  "`firstItemIndex` prop should not be set to less than zero. If you don't know the total count, just use a very high value",
4540
4541
  { firstItemIndex: a },
@@ -4721,7 +4722,7 @@ const gu = He(
4721
4722
  tt()
4722
4723
  )
4723
4724
  );
4724
- return qe(t, (r) => {
4725
+ return Ke(t, (r) => {
4725
4726
  r && ut(e)("props updated", {}, jt.DEBUG);
4726
4727
  }), { didMount: n, propsReady: t };
4727
4728
  },
@@ -4772,7 +4773,7 @@ const to = He(
4772
4773
  };
4773
4774
  if (y(), q === "smooth") {
4774
4775
  let oe = !1;
4775
- b = qe(t, (fe) => {
4776
+ b = Ke(t, (fe) => {
4776
4777
  oe = oe || fe;
4777
4778
  }), g = Yt(d, () => {
4778
4779
  de(oe);
@@ -4833,7 +4834,7 @@ const no = He(
4833
4834
  rn(!1)
4834
4835
  ),
4835
4836
  u
4836
- ), qe(
4837
+ ), Ke(
4837
4838
  F(
4838
4839
  ht(t, i),
4839
4840
  _e(a, n, e, u),
@@ -5425,7 +5426,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5425
5426
  index: "LAST"
5426
5427
  });
5427
5428
  }
5428
- qe(
5429
+ Ke(
5429
5430
  F(
5430
5431
  ht(F(ve(t), qn(1)), l),
5431
5432
  _e(ve(w), s, a, f),
@@ -5449,7 +5450,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5449
5450
  });
5450
5451
  setTimeout(C, 100);
5451
5452
  }
5452
- qe(
5453
+ Ke(
5453
5454
  F(
5454
5455
  ht(ve(w), t, u),
5455
5456
  ye(([S, , C]) => S && C),
@@ -5463,9 +5464,9 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5463
5464
  ([, S]) => {
5464
5465
  ut(a) && b(S !== !1);
5465
5466
  }
5466
- ), qe(v, () => {
5467
+ ), Ke(v, () => {
5467
5468
  b(ut(w) !== !1);
5468
- }), qe(ht(ve(w), o), ([S, C]) => {
5469
+ }), Ke(ht(ve(w), o), ([S, C]) => {
5469
5470
  S && !C.atBottom && C.notAtBottomBecause === "VIEWPORT_HEIGHT_DECREASING" && x("auto");
5470
5471
  });
5471
5472
  const y = K(null), R = De();
@@ -5481,7 +5482,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5481
5482
  F(ve(t))
5482
5483
  ),
5483
5484
  R
5484
- ), qe(
5485
+ ), Ke(
5485
5486
  F(
5486
5487
  ht(F(R, qn(1)), l),
5487
5488
  _e(ve(y), a, f, h),
@@ -5525,7 +5526,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5525
5526
  ), Vx = He(
5526
5527
  ([{ didMount: e }, { scrollTo: t }, { listState: n }]) => {
5527
5528
  const r = K(0);
5528
- return qe(
5529
+ return Ke(
5529
5530
  F(
5530
5531
  e,
5531
5532
  _e(r),
@@ -5572,7 +5573,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5572
5573
  tt()
5573
5574
  ),
5574
5575
  t
5575
- ), qe(
5576
+ ), Ke(
5576
5577
  F(ht(t, e, n), _e(r)),
5577
5578
  ([[o, s, i], a]) => {
5578
5579
  o && a && a.change && a.change(s, i);
@@ -5622,7 +5623,7 @@ const Hx = (e, t) => typeof e == "function" ? Rl(e(t)) : t && Rl(e), Ux = He(
5622
5623
  { useWindowScroll: i, windowScrollContainerState: a, windowViewportRect: l }
5623
5624
  ]) => {
5624
5625
  const u = De(), d = K(void 0), f = K(null), h = K(null);
5625
- return ce(a, f), ce(l, h), qe(
5626
+ return ce(a, f), ce(l, h), Ke(
5626
5627
  F(
5627
5628
  u,
5628
5629
  _e(t, r, i, f, h, n)
@@ -5695,9 +5696,9 @@ const Yx = Tu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5695
5696
  function g(x) {
5696
5697
  x > 0 ? (Ae(t, { behavior: "auto", top: -x }), Ae(e, 0)) : (Ae(e, 0), Ae(t, { behavior: "auto", top: -x }));
5697
5698
  }
5698
- return qe(F(v, _e(e, s)), ([x, b, y]) => {
5699
+ return Ke(F(v, _e(e, s)), ([x, b, y]) => {
5699
5700
  y && Yx() ? Ae(e, b - x) : g(-x);
5700
- }), qe(
5701
+ }), Ke(
5701
5702
  F(
5702
5703
  ht(St(s, !1), e, w),
5703
5704
  ye(([x, b, y]) => !x && !y && b !== 0),
@@ -5711,7 +5712,7 @@ const Yx = Tu(() => /iP(ad|od|hone)/i.test(navigator.userAgent) && /WebKit/i.tes
5711
5712
  te((x) => ({ top: -x }))
5712
5713
  ),
5713
5714
  t
5714
- ), qe(
5715
+ ), Ke(
5715
5716
  F(
5716
5717
  u,
5717
5718
  _e(h, d),
@@ -5901,7 +5902,7 @@ function Eu(e, t, n) {
5901
5902
  })), [S] = $.useState(gl(d, R));
5902
5903
  fo(() => {
5903
5904
  for (const E of i)
5904
- E in y && qe(S[E], y[E]);
5905
+ E in y && Ke(S[E], y[E]);
5905
5906
  return () => {
5906
5907
  Object.values(S).map(Xi);
5907
5908
  };
@@ -5920,7 +5921,7 @@ function Eu(e, t, n) {
5920
5921
  );
5921
5922
  }, p = (g) => {
5922
5923
  const x = $.useContext(a)[g], b = $.useCallback(
5923
- (y) => qe(x, y),
5924
+ (y) => Ke(x, y),
5924
5925
  [x]
5925
5926
  );
5926
5927
  return $.useSyncExternalStore(
@@ -5931,7 +5932,7 @@ function Eu(e, t, n) {
5931
5932
  }, w = (g) => {
5932
5933
  const x = $.useContext(a)[g], [b, y] = $.useState(gl(ut, x));
5933
5934
  return fo(
5934
- () => qe(x, (R) => {
5935
+ () => Ke(x, (R) => {
5935
5936
  R !== b && y(ml(R));
5936
5937
  }),
5937
5938
  [x, b]
@@ -5941,7 +5942,7 @@ function Eu(e, t, n) {
5941
5942
  Component: f,
5942
5943
  useEmitter: (g, x) => {
5943
5944
  const b = $.useContext(a)[g];
5944
- fo(() => qe(b, x), [x, b]);
5945
+ fo(() => Ke(b, x), [x, b]);
5945
5946
  },
5946
5947
  useEmitterValue: v,
5947
5948
  usePublisher: h
@@ -6402,7 +6403,7 @@ const Cv = /* @__PURE__ */ He(
6402
6403
  S
6403
6404
  ]) => {
6404
6405
  const C = K(0), E = K(0), I = K(Il), j = K({ height: 0, width: 0 }), N = K({ height: 0, width: 0 }), O = De(), M = De(), D = K(0), _ = K(null), W = K({ column: 0, row: 0 }), H = De(), q = De(), L = K(!1), k = K(0), U = K(!0), Y = K(!1), de = K(!1);
6405
- qe(
6406
+ Ke(
6406
6407
  F(
6407
6408
  w,
6408
6409
  _e(k),
@@ -6411,7 +6412,7 @@ const Cv = /* @__PURE__ */ He(
6411
6412
  () => {
6412
6413
  Ae(U, !1);
6413
6414
  }
6414
- ), qe(
6415
+ ), Ke(
6415
6416
  F(
6416
6417
  ht(w, U, N, j, k, Y),
6417
6418
  ye(([P, V, X, se, , ne]) => P && !V && X.height !== 0 && se.height !== 0 && !ne)
@@ -6430,7 +6431,7 @@ const Cv = /* @__PURE__ */ He(
6430
6431
  rn(0)
6431
6432
  ),
6432
6433
  E
6433
- ), qe(
6434
+ ), Ke(
6434
6435
  F(
6435
6436
  w,
6436
6437
  _e(q),
@@ -13873,7 +13874,7 @@ function ci({
13873
13874
  u && (H(ee), L(he), U(null));
13874
13875
  }, [u]), We = $.useCallback(() => {
13875
13876
  H(null), L(""), U(null);
13876
- }, []), Ve = ze((ee, he) => {
13877
+ }, []), qe = ze((ee, he) => {
13877
13878
  Ee(ee, he);
13878
13879
  }, [Ee]), kt = ze((ee) => {
13879
13880
  const he = (Me) => {
@@ -13998,7 +13999,7 @@ function ci({
13998
13999
  onStartReached: () => {
13999
14000
  yn();
14000
14001
  },
14001
- onEdit: Ve,
14002
+ onEdit: qe,
14002
14003
  onRegenerate: kt,
14003
14004
  onCancelEdit: We,
14004
14005
  emptyMessage: et ?? void 0,