@somecat/ai-assist-sdk 1.3.2 → 1.3.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import n1, { useMemo as N0, useState as Bt, useRef as Mt, useCallback as Te, useEffect as Se, forwardRef as cT, useImperativeHandle as iT } from "react";
1
+ import n1, { useMemo as N0, useState as Bt, useRef as Ot, useCallback as Te, useEffect as Se, forwardRef as cT, useImperativeHandle as iT } from "react";
2
2
  import oT, { createPortal as qE } from "react-dom";
3
3
  import { a as sT, r as fT, p as rT, u as YE, V as j0, c as G2, g as GE, o as XE, s as VE, b as X2, e as LE, d as QE, f as B0, h as ZE, i as JE, j as KE, k as $E, l as kE, m as CS, w as WE, n as FE, q as IE, t as PE } from "../chunks/index-5fjEwBkV.mjs";
4
4
  import tA from "react-markdown";
@@ -65,7 +65,7 @@ function TA() {
65
65
  return gt.now() - X;
66
66
  };
67
67
  }
68
- var ot = [], Tt = [], Ot = 1, ct = null, yt = 3, At = !1, zt = !1, xt = !1, pt = !1, Ct = typeof setTimeout == "function" ? setTimeout : null, Et = typeof clearTimeout == "function" ? clearTimeout : null, Ht = typeof setImmediate < "u" ? setImmediate : null;
68
+ var ot = [], Tt = [], Ct = 1, ct = null, yt = 3, At = !1, Rt = !1, xt = !1, pt = !1, _t = typeof setTimeout == "function" ? setTimeout : null, Et = typeof clearTimeout == "function" ? clearTimeout : null, Ht = typeof setImmediate < "u" ? setImmediate : null;
69
69
  function j(v) {
70
70
  for (var z = st(Tt); z !== null; ) {
71
71
  if (z.callback === null) R(Tt);
@@ -76,16 +76,16 @@ function TA() {
76
76
  }
77
77
  }
78
78
  function de(v) {
79
- if (xt = !1, j(v), !zt)
79
+ if (xt = !1, j(v), !Rt)
80
80
  if (st(ot) !== null)
81
- zt = !0, Vt || (Vt = !0, rt());
81
+ Rt = !0, Vt || (Vt = !0, rt());
82
82
  else {
83
83
  var z = st(Tt);
84
84
  z !== null && P(de, z.startTime - v);
85
85
  }
86
86
  }
87
87
  var Vt = !1, wt = -1, ft = 5, Gt = -1;
88
- function K() {
88
+ function $() {
89
89
  return pt ? !0 : !(S.unstable_now() - Gt < ft);
90
90
  }
91
91
  function vt() {
@@ -95,11 +95,11 @@ function TA() {
95
95
  var z = !0;
96
96
  try {
97
97
  t: {
98
- zt = !1, xt && (xt = !1, Et(wt), wt = -1), At = !0;
98
+ Rt = !1, xt && (xt = !1, Et(wt), wt = -1), At = !0;
99
99
  var N = yt;
100
100
  try {
101
101
  e: {
102
- for (j(v), ct = st(ot); ct !== null && !(ct.expirationTime > v && K()); ) {
102
+ for (j(v), ct = st(ot); ct !== null && !(ct.expirationTime > v && $()); ) {
103
103
  var W = ct.callback;
104
104
  if (typeof W == "function") {
105
105
  ct.callback = null, yt = ct.priorityLevel;
@@ -146,10 +146,10 @@ function TA() {
146
146
  };
147
147
  } else
148
148
  rt = function() {
149
- Ct(vt, 0);
149
+ _t(vt, 0);
150
150
  };
151
151
  function P(v, z) {
152
- wt = Ct(function() {
152
+ wt = _t(function() {
153
153
  v(S.unstable_now());
154
154
  }, z);
155
155
  }
@@ -217,14 +217,14 @@ function TA() {
217
217
  F = 5e3;
218
218
  }
219
219
  return F = N + F, v = {
220
- id: Ot++,
220
+ id: Ct++,
221
221
  callback: z,
222
222
  priorityLevel: v,
223
223
  startTime: N,
224
224
  expirationTime: F,
225
225
  sortIndex: -1
226
- }, N > W ? (v.sortIndex = N, I(Tt, v), st(ot) === null && v === st(Tt) && (xt ? (Et(wt), wt = -1) : xt = !0, P(de, N - W))) : (v.sortIndex = F, I(ot, v), zt || At || (zt = !0, Vt || (Vt = !0, rt()))), v;
227
- }, S.unstable_shouldYield = K, S.unstable_wrapCallback = function(v) {
226
+ }, N > W ? (v.sortIndex = N, I(Tt, v), st(ot) === null && v === st(Tt) && (xt ? (Et(wt), wt = -1) : xt = !0, P(de, N - W))) : (v.sortIndex = F, I(ot, v), Rt || At || (Rt = !0, Vt || (Vt = !0, rt()))), v;
227
+ }, S.unstable_shouldYield = $, S.unstable_wrapCallback = function(v) {
228
228
  var z = yt;
229
229
  return function() {
230
230
  var N = yt;
@@ -259,14 +259,14 @@ function EA() {
259
259
  var z = !0;
260
260
  try {
261
261
  t: {
262
- Ht = !1, j && (j = !1, wt(K), K = -1), Et = !0;
263
- var N = Ct;
262
+ Ht = !1, j && (j = !1, wt($), $ = -1), Et = !0;
263
+ var N = _t;
264
264
  try {
265
265
  e: {
266
266
  for (gt(v), pt = R(At); pt !== null && !(pt.expirationTime > v && ot()); ) {
267
267
  var W = pt.callback;
268
268
  if (typeof W == "function") {
269
- pt.callback = null, Ct = pt.priorityLevel;
269
+ pt.callback = null, _t = pt.priorityLevel;
270
270
  var F = W(
271
271
  pt.expirationTime <= v
272
272
  );
@@ -280,7 +280,7 @@ function EA() {
280
280
  }
281
281
  if (pt !== null) z = !0;
282
282
  else {
283
- var U = R(zt);
283
+ var U = R(Rt);
284
284
  U !== null && Tt(
285
285
  X,
286
286
  U.startTime - v
@@ -289,7 +289,7 @@ function EA() {
289
289
  }
290
290
  break t;
291
291
  } finally {
292
- pt = null, Ct = N, Et = !1;
292
+ pt = null, _t = N, Et = !1;
293
293
  }
294
294
  z = void 0;
295
295
  }
@@ -332,12 +332,12 @@ function EA() {
332
332
  return N !== 0 ? N : v.id - z.id;
333
333
  }
334
334
  function gt(v) {
335
- for (var z = R(zt); z !== null; ) {
336
- if (z.callback === null) et(zt);
335
+ for (var z = R(Rt); z !== null; ) {
336
+ if (z.callback === null) et(Rt);
337
337
  else if (z.startTime <= v)
338
- et(zt), z.sortIndex = z.expirationTime, st(At, z);
338
+ et(Rt), z.sortIndex = z.expirationTime, st(At, z);
339
339
  else break;
340
- z = R(zt);
340
+ z = R(Rt);
341
341
  }
342
342
  }
343
343
  function X(v) {
@@ -345,7 +345,7 @@ function EA() {
345
345
  if (R(At) !== null)
346
346
  Ht = !0, Gt || (Gt = !0, nt());
347
347
  else {
348
- var z = R(zt);
348
+ var z = R(Rt);
349
349
  z !== null && Tt(
350
350
  X,
351
351
  z.startTime - v
@@ -356,14 +356,14 @@ function EA() {
356
356
  return de ? !0 : !(S.unstable_now() - rt < vt);
357
357
  }
358
358
  function Tt(v, z) {
359
- K = Vt(function() {
359
+ $ = Vt(function() {
360
360
  v(S.unstable_now());
361
361
  }, z);
362
362
  }
363
363
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error()), S.unstable_now = void 0, typeof performance == "object" && typeof performance.now == "function") {
364
- var Ot = performance;
364
+ var Ct = performance;
365
365
  S.unstable_now = function() {
366
- return Ot.now();
366
+ return Ct.now();
367
367
  };
368
368
  } else {
369
369
  var ct = Date, yt = ct.now();
@@ -371,7 +371,7 @@ function EA() {
371
371
  return ct.now() - yt;
372
372
  };
373
373
  }
374
- var At = [], zt = [], xt = 1, pt = null, Ct = 3, Et = !1, Ht = !1, j = !1, de = !1, Vt = typeof setTimeout == "function" ? setTimeout : null, wt = typeof clearTimeout == "function" ? clearTimeout : null, ft = typeof setImmediate < "u" ? setImmediate : null, Gt = !1, K = -1, vt = 5, rt = -1;
374
+ var At = [], Rt = [], xt = 1, pt = null, _t = 3, Et = !1, Ht = !1, j = !1, de = !1, Vt = typeof setTimeout == "function" ? setTimeout : null, wt = typeof clearTimeout == "function" ? clearTimeout : null, ft = typeof setImmediate < "u" ? setImmediate : null, Gt = !1, $ = -1, vt = 5, rt = -1;
375
375
  if (typeof ft == "function")
376
376
  var nt = function() {
377
377
  ft(I);
@@ -392,23 +392,23 @@ function EA() {
392
392
  "forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"
393
393
  ) : vt = 0 < v ? Math.floor(1e3 / v) : 5;
394
394
  }, S.unstable_getCurrentPriorityLevel = function() {
395
- return Ct;
395
+ return _t;
396
396
  }, S.unstable_next = function(v) {
397
- switch (Ct) {
397
+ switch (_t) {
398
398
  case 1:
399
399
  case 2:
400
400
  case 3:
401
401
  var z = 3;
402
402
  break;
403
403
  default:
404
- z = Ct;
404
+ z = _t;
405
405
  }
406
- var N = Ct;
407
- Ct = z;
406
+ var N = _t;
407
+ _t = z;
408
408
  try {
409
409
  return v();
410
410
  } finally {
411
- Ct = N;
411
+ _t = N;
412
412
  }
413
413
  }, S.unstable_requestPaint = function() {
414
414
  de = !0;
@@ -423,12 +423,12 @@ function EA() {
423
423
  default:
424
424
  v = 3;
425
425
  }
426
- var N = Ct;
427
- Ct = v;
426
+ var N = _t;
427
+ _t = v;
428
428
  try {
429
429
  return z();
430
430
  } finally {
431
- Ct = N;
431
+ _t = N;
432
432
  }
433
433
  }, S.unstable_scheduleCallback = function(v, z, N) {
434
434
  var W = S.unstable_now();
@@ -455,16 +455,16 @@ function EA() {
455
455
  startTime: N,
456
456
  expirationTime: F,
457
457
  sortIndex: -1
458
- }, N > W ? (v.sortIndex = N, st(zt, v), R(At) === null && v === R(zt) && (j ? (wt(K), K = -1) : j = !0, Tt(X, N - W))) : (v.sortIndex = F, st(At, v), Ht || Et || (Ht = !0, Gt || (Gt = !0, nt()))), v;
458
+ }, N > W ? (v.sortIndex = N, st(Rt, v), R(At) === null && v === R(Rt) && (j ? (wt($), $ = -1) : j = !0, Tt(X, N - W))) : (v.sortIndex = F, st(At, v), Ht || Et || (Ht = !0, Gt || (Gt = !0, nt()))), v;
459
459
  }, S.unstable_shouldYield = ot, S.unstable_wrapCallback = function(v) {
460
- var z = Ct;
460
+ var z = _t;
461
461
  return function() {
462
- var N = Ct;
463
- Ct = z;
462
+ var N = _t;
463
+ _t = z;
464
464
  try {
465
465
  return v.apply(this, arguments);
466
466
  } finally {
467
- Ct = N;
467
+ _t = N;
468
468
  }
469
469
  };
470
470
  }, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
@@ -588,16 +588,16 @@ function AA() {
588
588
  if (u.tag !== 3) throw Error(R(188));
589
589
  return u.stateNode.current === u ? l : a;
590
590
  }
591
- function Ot(l) {
591
+ function Ct(l) {
592
592
  var a = l.tag;
593
593
  if (a === 5 || a === 26 || a === 27 || a === 6) return l;
594
594
  for (l = l.child; l !== null; ) {
595
- if (a = Ot(l), a !== null) return a;
595
+ if (a = Ct(l), a !== null) return a;
596
596
  l = l.sibling;
597
597
  }
598
598
  return null;
599
599
  }
600
- var ct = Object.assign, yt = Symbol.for("react.element"), At = Symbol.for("react.transitional.element"), zt = Symbol.for("react.portal"), xt = Symbol.for("react.fragment"), pt = Symbol.for("react.strict_mode"), Ct = Symbol.for("react.profiler"), Et = Symbol.for("react.consumer"), Ht = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), de = Symbol.for("react.suspense"), Vt = Symbol.for("react.suspense_list"), wt = Symbol.for("react.memo"), ft = Symbol.for("react.lazy"), Gt = Symbol.for("react.activity"), K = Symbol.for("react.memo_cache_sentinel"), vt = Symbol.iterator;
600
+ var ct = Object.assign, yt = Symbol.for("react.element"), At = Symbol.for("react.transitional.element"), Rt = Symbol.for("react.portal"), xt = Symbol.for("react.fragment"), pt = Symbol.for("react.strict_mode"), _t = Symbol.for("react.profiler"), Et = Symbol.for("react.consumer"), Ht = Symbol.for("react.context"), j = Symbol.for("react.forward_ref"), de = Symbol.for("react.suspense"), Vt = Symbol.for("react.suspense_list"), wt = Symbol.for("react.memo"), ft = Symbol.for("react.lazy"), Gt = Symbol.for("react.activity"), $ = Symbol.for("react.memo_cache_sentinel"), vt = Symbol.iterator;
601
601
  function rt(l) {
602
602
  return l === null || typeof l != "object" ? null : (l = vt && l[vt] || l["@@iterator"], typeof l == "function" ? l : null);
603
603
  }
@@ -610,7 +610,7 @@ function AA() {
610
610
  switch (l) {
611
611
  case xt:
612
612
  return "Fragment";
613
- case Ct:
613
+ case _t:
614
614
  return "Profiler";
615
615
  case pt:
616
616
  return "StrictMode";
@@ -623,7 +623,7 @@ function AA() {
623
623
  }
624
624
  if (typeof l == "object")
625
625
  switch (l.$$typeof) {
626
- case zt:
626
+ case Rt:
627
627
  return "Portal";
628
628
  case Ht:
629
629
  return l.displayName || "Context";
@@ -706,10 +706,10 @@ function AA() {
706
706
  return `
707
707
  ` + ul + l + _n;
708
708
  }
709
- var _t = !1;
709
+ var zt = !1;
710
710
  function jt(l, a) {
711
- if (!l || _t) return "";
712
- _t = !0;
711
+ if (!l || zt) return "";
712
+ zt = !0;
713
713
  var u = Error.prepareStackTrace;
714
714
  Error.prepareStackTrace = void 0;
715
715
  try {
@@ -717,27 +717,27 @@ function AA() {
717
717
  DetermineComponentFrameRoot: function() {
718
718
  try {
719
719
  if (a) {
720
- var $ = function() {
720
+ var K = function() {
721
721
  throw Error();
722
722
  };
723
- if (Object.defineProperty($.prototype, "props", {
723
+ if (Object.defineProperty(K.prototype, "props", {
724
724
  set: function() {
725
725
  throw Error();
726
726
  }
727
727
  }), typeof Reflect == "object" && Reflect.construct) {
728
728
  try {
729
- Reflect.construct($, []);
729
+ Reflect.construct(K, []);
730
730
  } catch (L) {
731
731
  var w = L;
732
732
  }
733
- Reflect.construct(l, [], $);
733
+ Reflect.construct(l, [], K);
734
734
  } else {
735
735
  try {
736
- $.call();
736
+ K.call();
737
737
  } catch (L) {
738
738
  w = L;
739
739
  }
740
- l.call($.prototype);
740
+ l.call(K.prototype);
741
741
  }
742
742
  } else {
743
743
  try {
@@ -745,7 +745,7 @@ function AA() {
745
745
  } catch (L) {
746
746
  w = L;
747
747
  }
748
- ($ = l()) && typeof $.catch == "function" && $.catch(function() {
748
+ (K = l()) && typeof K.catch == "function" && K.catch(function() {
749
749
  });
750
750
  }
751
751
  } catch (L) {
@@ -793,7 +793,7 @@ function AA() {
793
793
  }
794
794
  }
795
795
  } finally {
796
- _t = !1, Error.prepareStackTrace = u;
796
+ zt = !1, Error.prepareStackTrace = u;
797
797
  }
798
798
  return (u = l ? l.displayName || l.name : "") ? fl(u) : "";
799
799
  }
@@ -971,7 +971,7 @@ Error generating stack: ` + i.message + `
971
971
  l.pendingLanes = u, l.suspendedLanes = 0, l.pingedLanes = 0, l.warmLanes = 0, l.expiredLanes &= u, l.entangledLanes &= u, l.errorRecoveryDisabledLanes &= u, l.shellSuspendCounter = 0;
972
972
  var g = l.entanglements, A = l.expirationTimes, B = l.hiddenUpdates;
973
973
  for (u = m & ~u; 0 < u; ) {
974
- var Q = 31 - Zl(u), $ = 1 << Q;
974
+ var Q = 31 - Zl(u), K = 1 << Q;
975
975
  g[Q] = 0, A[Q] = -1;
976
976
  var w = B[Q];
977
977
  if (w !== null)
@@ -979,7 +979,7 @@ Error generating stack: ` + i.message + `
979
979
  var L = w[Q];
980
980
  L !== null && (L.lane &= -536870913);
981
981
  }
982
- u &= ~$;
982
+ u &= ~K;
983
983
  }
984
984
  i !== 0 && lo(l, i, 0), r !== 0 && f === 0 && l.tag !== 0 && (l.suspendedLanes |= r & ~(m & ~a));
985
985
  }
@@ -2083,8 +2083,8 @@ Error generating stack: ` + i.message + `
2083
2083
  case pt:
2084
2084
  m = 8, f |= 24;
2085
2085
  break;
2086
- case Ct:
2087
- return l = ml(12, u, a, f | 2), l.elementType = Ct, l.lanes = r, l;
2086
+ case _t:
2087
+ return l = ml(12, u, a, f | 2), l.elementType = _t, l.lanes = r, l;
2088
2088
  case de:
2089
2089
  return l = ml(13, u, a, f), l.elementType = de, l.lanes = r, l;
2090
2090
  case Vt:
@@ -2614,7 +2614,7 @@ Error generating stack: ` + i.message + `
2614
2614
  qt
2615
2615
  ), C.return = x, C) : (C = f(C, H), C.return = x, C);
2616
2616
  }
2617
- function $(x, C, H) {
2617
+ function K(x, C, H) {
2618
2618
  if (typeof C == "string" && C !== "" || typeof C == "number" || typeof C == "bigint")
2619
2619
  return C = Os(
2620
2620
  "" + C,
@@ -2632,14 +2632,14 @@ Error generating stack: ` + i.message + `
2632
2632
  x.mode,
2633
2633
  H
2634
2634
  ), Ns(H, C), H.return = x, H;
2635
- case zt:
2635
+ case Rt:
2636
2636
  return C = $d(
2637
2637
  C,
2638
2638
  x.mode,
2639
2639
  H
2640
2640
  ), C.return = x, C;
2641
2641
  case ft:
2642
- return C = Ci(C), $(x, C, H);
2642
+ return C = Ci(C), K(x, C, H);
2643
2643
  }
2644
2644
  if (P(C) || rt(C))
2645
2645
  return C = Xc(
@@ -2649,9 +2649,9 @@ Error generating stack: ` + i.message + `
2649
2649
  null
2650
2650
  ), C.return = x, C;
2651
2651
  if (typeof C.then == "function")
2652
- return $(x, pr(C), H);
2652
+ return K(x, pr(C), H);
2653
2653
  if (C.$$typeof === Ht)
2654
- return $(
2654
+ return K(
2655
2655
  x,
2656
2656
  Lc(x, C),
2657
2657
  H
@@ -2668,7 +2668,7 @@ Error generating stack: ` + i.message + `
2668
2668
  switch (H.$$typeof) {
2669
2669
  case At:
2670
2670
  return H.key === qt ? A(x, C, H, J) : null;
2671
- case zt:
2671
+ case Rt:
2672
2672
  return H.key === qt ? B(x, C, H, J) : null;
2673
2673
  case ft:
2674
2674
  return H = Ci(H), w(x, C, H, J);
@@ -2702,7 +2702,7 @@ Error generating stack: ` + i.message + `
2702
2702
  return x = x.get(
2703
2703
  J.key === null ? H : J.key
2704
2704
  ) || null, A(C, x, J, qt);
2705
- case zt:
2705
+ case Rt:
2706
2706
  return x = x.get(
2707
2707
  J.key === null ? H : J.key
2708
2708
  ) || null, B(C, x, J, qt);
@@ -2737,7 +2737,7 @@ Error generating stack: ` + i.message + `
2737
2737
  }
2738
2738
  return null;
2739
2739
  }
2740
- function Rt(x, C, H, J) {
2740
+ function Mt(x, C, H, J) {
2741
2741
  for (var qt = null, Ae = null, Ut = C, Ft = C = 0, ee = null; Ut !== null && Ft < H.length; Ft++) {
2742
2742
  Ut.index > Ft ? (ee = Ut, Ut = null) : ee = Ut.sibling;
2743
2743
  var Me = w(
@@ -2756,7 +2756,7 @@ Error generating stack: ` + i.message + `
2756
2756
  return u(x, Ut), me && Za(x, Ft), qt;
2757
2757
  if (Ut === null) {
2758
2758
  for (; Ft < H.length; Ft++)
2759
- Ut = $(x, H[Ft], J), Ut !== null && (C = r(
2759
+ Ut = K(x, H[Ft], J), Ut !== null && (C = r(
2760
2760
  Ut,
2761
2761
  C,
2762
2762
  Ft
@@ -2796,7 +2796,7 @@ Error generating stack: ` + i.message + `
2796
2796
  return u(x, Ut), me && Za(x, Ft), qt;
2797
2797
  if (Ut === null) {
2798
2798
  for (; !Me.done; Ft++, Me = H.next())
2799
- Me = $(x, Me.value, J), Me !== null && (C = r(Me, C, Ft), Ae === null ? qt = Me : Ae.sibling = Me, Ae = Me);
2799
+ Me = K(x, Me.value, J), Me !== null && (C = r(Me, C, Ft), Ae === null ? qt = Me : Ae.sibling = Me, Ae = Me);
2800
2800
  return me && Za(x, Ft), qt;
2801
2801
  }
2802
2802
  for (Ut = i(Ut); !Me.done; Ft++, Me = H.next())
@@ -2850,7 +2850,7 @@ Error generating stack: ` + i.message + `
2850
2850
  ), Ns(J, H), J.return = x, x = J);
2851
2851
  }
2852
2852
  return m(x);
2853
- case zt:
2853
+ case Rt:
2854
2854
  t: {
2855
2855
  for (qt = H.key; C !== null; ) {
2856
2856
  if (C.key === qt)
@@ -2879,7 +2879,7 @@ Error generating stack: ` + i.message + `
2879
2879
  );
2880
2880
  }
2881
2881
  if (P(H))
2882
- return Rt(
2882
+ return Mt(
2883
2883
  x,
2884
2884
  C,
2885
2885
  H,
@@ -3015,7 +3015,7 @@ Error generating stack: ` + i.message + `
3015
3015
  Q !== null && (Q = Q.updateQueue, g = Q.lastBaseUpdate, g !== m && (g === null ? Q.firstBaseUpdate = B : g.next = B, Q.lastBaseUpdate = A));
3016
3016
  }
3017
3017
  if (r !== null) {
3018
- var $ = f.baseState;
3018
+ var K = f.baseState;
3019
3019
  m = 0, Q = B = A = null, g = r;
3020
3020
  do {
3021
3021
  var w = g.lane & -536870913, L = w !== g.lane;
@@ -3028,22 +3028,22 @@ Error generating stack: ` + i.message + `
3028
3028
  next: null
3029
3029
  });
3030
3030
  t: {
3031
- var Rt = l, Lt = g;
3031
+ var Mt = l, Lt = g;
3032
3032
  w = a;
3033
3033
  var Ve = u;
3034
3034
  switch (Lt.tag) {
3035
3035
  case 1:
3036
- if (Rt = Lt.payload, typeof Rt == "function") {
3037
- $ = Rt.call(Ve, $, w);
3036
+ if (Mt = Lt.payload, typeof Mt == "function") {
3037
+ K = Mt.call(Ve, K, w);
3038
3038
  break t;
3039
3039
  }
3040
- $ = Rt;
3040
+ K = Mt;
3041
3041
  break t;
3042
3042
  case 3:
3043
- Rt.flags = Rt.flags & -65537 | 128;
3043
+ Mt.flags = Mt.flags & -65537 | 128;
3044
3044
  case 0:
3045
- if (Rt = Lt.payload, w = typeof Rt == "function" ? Rt.call(Ve, $, w) : Rt, w == null) break t;
3046
- $ = ct({}, $, w);
3045
+ if (Mt = Lt.payload, w = typeof Mt == "function" ? Mt.call(Ve, K, w) : Mt, w == null) break t;
3046
+ K = ct({}, K, w);
3047
3047
  break t;
3048
3048
  case 2:
3049
3049
  Zc = !0;
@@ -3057,14 +3057,14 @@ Error generating stack: ` + i.message + `
3057
3057
  payload: g.payload,
3058
3058
  callback: g.callback,
3059
3059
  next: null
3060
- }, Q === null ? (B = Q = L, A = $) : Q = Q.next = L, m |= w;
3060
+ }, Q === null ? (B = Q = L, A = K) : Q = Q.next = L, m |= w;
3061
3061
  if (g = g.next, g === null) {
3062
3062
  if (g = f.shared.pending, g === null)
3063
3063
  break;
3064
3064
  L = g, g = L.next, L.next = null, f.lastBaseUpdate = L, f.shared.pending = null;
3065
3065
  }
3066
3066
  } while (!0);
3067
- Q === null && (A = $), f.baseState = A, f.firstBaseUpdate = B, f.lastBaseUpdate = Q, r === null && (f.shared.lanes = 0), Ru |= m, l.lanes = m, l.memoizedState = $;
3067
+ Q === null && (A = K), f.baseState = A, f.firstBaseUpdate = B, f.lastBaseUpdate = Q, r === null && (f.shared.lanes = 0), Ru |= m, l.lanes = m, l.memoizedState = K;
3068
3068
  }
3069
3069
  }
3070
3070
  function eh(l, a) {
@@ -3243,7 +3243,7 @@ Error generating stack: ` + i.message + `
3243
3243
  }
3244
3244
  if (a == null && (a = { data: [], index: 0 }), u === null && (u = Ar(), It.updateQueue = u), u.memoCache = a, u = a.data[a.index], u === void 0)
3245
3245
  for (u = a.data[a.index] = Array(l), i = 0; i < l; i++)
3246
- u[i] = K;
3246
+ u[i] = $;
3247
3247
  return a.index++, u;
3248
3248
  }
3249
3249
  function nc(l, a) {
@@ -3270,8 +3270,8 @@ Error generating stack: ` + i.message + `
3270
3270
  a = f.next;
3271
3271
  var g = m = null, A = null, B = a, Q = !1;
3272
3272
  do {
3273
- var $ = B.lane & -536870913;
3274
- if ($ !== B.lane ? (fe & $) === $ : (lc & $) === $) {
3273
+ var K = B.lane & -536870913;
3274
+ if (K !== B.lane ? (fe & K) === K : (lc & K) === K) {
3275
3275
  var w = B.revertLane;
3276
3276
  if (w === 0)
3277
3277
  A !== null && (A = A.next = {
@@ -3282,12 +3282,12 @@ Error generating stack: ` + i.message + `
3282
3282
  hasEagerState: B.hasEagerState,
3283
3283
  eagerState: B.eagerState,
3284
3284
  next: null
3285
- }), $ === Mi && (Q = !0);
3285
+ }), K === Mi && (Q = !0);
3286
3286
  else if ((lc & w) === w) {
3287
3287
  B = B.next, w === Mi && (Q = !0);
3288
3288
  continue;
3289
3289
  } else
3290
- $ = {
3290
+ K = {
3291
3291
  lane: 0,
3292
3292
  revertLane: B.revertLane,
3293
3293
  gesture: null,
@@ -3295,18 +3295,18 @@ Error generating stack: ` + i.message + `
3295
3295
  hasEagerState: B.hasEagerState,
3296
3296
  eagerState: B.eagerState,
3297
3297
  next: null
3298
- }, A === null ? (g = A = $, m = r) : A = A.next = $, It.lanes |= w, Ru |= w;
3299
- $ = B.action, Kc && u(r, $), r = B.hasEagerState ? B.eagerState : u(r, $);
3298
+ }, A === null ? (g = A = K, m = r) : A = A.next = K, It.lanes |= w, Ru |= w;
3299
+ K = B.action, Kc && u(r, K), r = B.hasEagerState ? B.eagerState : u(r, K);
3300
3300
  } else
3301
3301
  w = {
3302
- lane: $,
3302
+ lane: K,
3303
3303
  revertLane: B.revertLane,
3304
3304
  gesture: B.gesture,
3305
3305
  action: B.action,
3306
3306
  hasEagerState: B.hasEagerState,
3307
3307
  eagerState: B.eagerState,
3308
3308
  next: null
3309
- }, A === null ? (g = A = w, m = r) : A = A.next = w, It.lanes |= $, Ru |= $;
3309
+ }, A === null ? (g = A = w, m = r) : A = A.next = w, It.lanes |= K, Ru |= K;
3310
3310
  B = B.next;
3311
3311
  } while (B !== null && B !== a);
3312
3312
  if (A === null ? m = r : A.next = g, !An(r, l.memoizedState) && (Dl = !0, Q && (u = Ol, u !== null)))
@@ -3708,12 +3708,12 @@ Error generating stack: ` + i.message + `
3708
3708
  i,
3709
3709
  na(l)
3710
3710
  );
3711
- } catch ($) {
3711
+ } catch (K) {
3712
3712
  kc(
3713
3713
  l,
3714
3714
  a,
3715
3715
  { then: function() {
3716
- }, status: "rejected", reason: $ },
3716
+ }, status: "rejected", reason: K },
3717
3717
  na()
3718
3718
  );
3719
3719
  } finally {
@@ -4525,18 +4525,18 @@ Error generating stack: ` + i.message + `
4525
4525
  r.props = A;
4526
4526
  var B = r.context, Q = u.contextType;
4527
4527
  m = jn, typeof Q == "object" && Q !== null && (m = k(Q));
4528
- var $ = u.getDerivedStateFromProps;
4529
- Q = typeof $ == "function" || typeof r.getSnapshotBeforeUpdate == "function", g = a.pendingProps !== g, Q || typeof r.UNSAFE_componentWillReceiveProps != "function" && typeof r.componentWillReceiveProps != "function" || (g || B !== m) && rg(
4528
+ var K = u.getDerivedStateFromProps;
4529
+ Q = typeof K == "function" || typeof r.getSnapshotBeforeUpdate == "function", g = a.pendingProps !== g, Q || typeof r.UNSAFE_componentWillReceiveProps != "function" && typeof r.componentWillReceiveProps != "function" || (g || B !== m) && rg(
4530
4530
  a,
4531
4531
  r,
4532
4532
  i,
4533
4533
  m
4534
4534
  ), Zc = !1;
4535
4535
  var w = a.memoizedState;
4536
- r.state = w, tc(a, i, r, f), Ni(), B = a.memoizedState, g || w !== B || Zc ? (typeof $ == "function" && (No(
4536
+ r.state = w, tc(a, i, r, f), Ni(), B = a.memoizedState, g || w !== B || Zc ? (typeof K == "function" && (No(
4537
4537
  a,
4538
4538
  u,
4539
- $,
4539
+ K,
4540
4540
  i
4541
4541
  ), B = a.memoizedState), (A = Zc || jy(
4542
4542
  a,
@@ -4548,14 +4548,14 @@ Error generating stack: ` + i.message + `
4548
4548
  m
4549
4549
  )) ? (Q || typeof r.UNSAFE_componentWillMount != "function" && typeof r.componentWillMount != "function" || (typeof r.componentWillMount == "function" && r.componentWillMount(), typeof r.UNSAFE_componentWillMount == "function" && r.UNSAFE_componentWillMount()), typeof r.componentDidMount == "function" && (a.flags |= 4194308)) : (typeof r.componentDidMount == "function" && (a.flags |= 4194308), a.memoizedProps = i, a.memoizedState = B), r.props = i, r.state = B, r.context = m, i = A) : (typeof r.componentDidMount == "function" && (a.flags |= 4194308), i = !1);
4550
4550
  } else {
4551
- r = a.stateNode, Pd(l, a), m = a.memoizedProps, Q = qi(u, m), r.props = Q, $ = a.pendingProps, w = r.context, B = u.contextType, A = jn, typeof B == "object" && B !== null && (A = k(B)), g = u.getDerivedStateFromProps, (B = typeof g == "function" || typeof r.getSnapshotBeforeUpdate == "function") || typeof r.UNSAFE_componentWillReceiveProps != "function" && typeof r.componentWillReceiveProps != "function" || (m !== $ || w !== A) && rg(
4551
+ r = a.stateNode, Pd(l, a), m = a.memoizedProps, Q = qi(u, m), r.props = Q, K = a.pendingProps, w = r.context, B = u.contextType, A = jn, typeof B == "object" && B !== null && (A = k(B)), g = u.getDerivedStateFromProps, (B = typeof g == "function" || typeof r.getSnapshotBeforeUpdate == "function") || typeof r.UNSAFE_componentWillReceiveProps != "function" && typeof r.componentWillReceiveProps != "function" || (m !== K || w !== A) && rg(
4552
4552
  a,
4553
4553
  r,
4554
4554
  i,
4555
4555
  A
4556
4556
  ), Zc = !1, w = a.memoizedState, r.state = w, tc(a, i, r, f), Ni();
4557
4557
  var L = a.memoizedState;
4558
- m !== $ || w !== L || Zc || l !== null && l.dependencies !== null && To(l.dependencies) ? (typeof g == "function" && (No(
4558
+ m !== K || w !== L || Zc || l !== null && l.dependencies !== null && To(l.dependencies) ? (typeof g == "function" && (No(
4559
4559
  a,
4560
4560
  u,
4561
4561
  g,
@@ -5741,16 +5741,16 @@ Error generating stack: ` + i.message + `
5741
5741
  u = null;
5742
5742
  break t;
5743
5743
  }
5744
- var m = 0, g = -1, A = -1, B = 0, Q = 0, $ = l, w = null;
5744
+ var m = 0, g = -1, A = -1, B = 0, Q = 0, K = l, w = null;
5745
5745
  e: for (; ; ) {
5746
- for (var L; $ !== u || f !== 0 && $.nodeType !== 3 || (g = m + f), $ !== r || i !== 0 && $.nodeType !== 3 || (A = m + i), $.nodeType === 3 && (m += $.nodeValue.length), (L = $.firstChild) !== null; )
5747
- w = $, $ = L;
5746
+ for (var L; K !== u || f !== 0 && K.nodeType !== 3 || (g = m + f), K !== r || i !== 0 && K.nodeType !== 3 || (A = m + i), K.nodeType === 3 && (m += K.nodeValue.length), (L = K.firstChild) !== null; )
5747
+ w = K, K = L;
5748
5748
  for (; ; ) {
5749
- if ($ === l) break e;
5750
- if (w === u && ++B === f && (g = m), w === r && ++Q === i && (A = m), (L = $.nextSibling) !== null) break;
5751
- $ = w, w = $.parentNode;
5749
+ if (K === l) break e;
5750
+ if (w === u && ++B === f && (g = m), w === r && ++Q === i && (A = m), (L = K.nextSibling) !== null) break;
5751
+ K = w, w = K.parentNode;
5752
5752
  }
5753
- $ = L;
5753
+ K = L;
5754
5754
  }
5755
5755
  u = g === -1 || A === -1 ? null : { start: g, end: A };
5756
5756
  } else u = null;
@@ -5775,12 +5775,12 @@ Error generating stack: ` + i.message + `
5775
5775
  if ((l & 1024) !== 0 && r !== null) {
5776
5776
  l = void 0, u = a, f = r.memoizedProps, r = r.memoizedState, i = u.stateNode;
5777
5777
  try {
5778
- var Rt = qi(
5778
+ var Mt = qi(
5779
5779
  u.type,
5780
5780
  f
5781
5781
  );
5782
5782
  l = i.getSnapshotBeforeUpdate(
5783
- Rt,
5783
+ Mt,
5784
5784
  r
5785
5785
  ), i.__reactInternalSnapshotBeforeUpdate = l;
5786
5786
  } catch (Lt) {
@@ -6208,8 +6208,8 @@ Error generating stack: ` + i.message + `
6208
6208
  f = l.stateNode;
6209
6209
  try {
6210
6210
  Bl(f, "");
6211
- } catch (Rt) {
6212
- we(l, l.return, Rt);
6211
+ } catch (Mt) {
6212
+ we(l, l.return, Mt);
6213
6213
  }
6214
6214
  }
6215
6215
  i & 4 && l.stateNode != null && (f = l.memoizedProps, Oh(
@@ -6225,8 +6225,8 @@ Error generating stack: ` + i.message + `
6225
6225
  i = l.memoizedProps, u = l.stateNode;
6226
6226
  try {
6227
6227
  u.nodeValue = i;
6228
- } catch (Rt) {
6229
- we(l, l.return, Rt);
6228
+ } catch (Mt) {
6229
+ we(l, l.return, Mt);
6230
6230
  }
6231
6231
  }
6232
6232
  break;
@@ -6234,8 +6234,8 @@ Error generating stack: ` + i.message + `
6234
6234
  if (pf = null, f = te, te = zn(a.containerInfo), Ln(a, l), te = f, ta(l), i & 4 && u !== null && u.memoizedState.isDehydrated)
6235
6235
  try {
6236
6236
  Tf(a.containerInfo);
6237
- } catch (Rt) {
6238
- we(l, l.return, Rt);
6237
+ } catch (Mt) {
6238
+ we(l, l.return, Mt);
6239
6239
  }
6240
6240
  Ch && (Ch = !1, lp(l));
6241
6241
  break;
@@ -6266,11 +6266,11 @@ Error generating stack: ` + i.message + `
6266
6266
  m = r.style, typeof m.setProperty == "function" ? m.setProperty("display", "none", "important") : m.display = "none";
6267
6267
  else {
6268
6268
  g = A.stateNode;
6269
- var $ = A.memoizedProps.style, w = $ != null && $.hasOwnProperty("display") ? $.display : null;
6269
+ var K = A.memoizedProps.style, w = K != null && K.hasOwnProperty("display") ? K.display : null;
6270
6270
  g.style.display = w == null || typeof w == "boolean" ? "" : ("" + w).trim();
6271
6271
  }
6272
- } catch (Rt) {
6273
- we(A, A.return, Rt);
6272
+ } catch (Mt) {
6273
+ we(A, A.return, Mt);
6274
6274
  }
6275
6275
  }
6276
6276
  } else if (a.tag === 6) {
@@ -6278,8 +6278,8 @@ Error generating stack: ` + i.message + `
6278
6278
  A = a;
6279
6279
  try {
6280
6280
  A.stateNode.nodeValue = f ? "" : A.memoizedProps;
6281
- } catch (Rt) {
6282
- we(A, A.return, Rt);
6281
+ } catch (Mt) {
6282
+ we(A, A.return, Mt);
6283
6283
  }
6284
6284
  }
6285
6285
  } else if (a.tag === 18) {
@@ -6288,8 +6288,8 @@ Error generating stack: ` + i.message + `
6288
6288
  try {
6289
6289
  var L = A.stateNode;
6290
6290
  f ? zl(L, !0) : zl(A.stateNode, !1);
6291
- } catch (Rt) {
6292
- we(A, A.return, Rt);
6291
+ } catch (Mt) {
6292
+ we(A, A.return, Mt);
6293
6293
  }
6294
6294
  }
6295
6295
  } else if ((a.tag !== 22 && a.tag !== 23 || a.memoizedState === null || a === l) && a.child !== null) {
@@ -7026,9 +7026,9 @@ Error generating stack: ` + i.message + `
7026
7026
  } while (!0);
7027
7027
  mc(l);
7028
7028
  }
7029
- function Lr(l, a, u, i, f, r, m, g, A, B, Q, $, w, L) {
7030
- if (l.timeoutHandle = -1, $ = a.subtreeFlags, $ & 8192 || ($ & 16785408) === 16785408) {
7031
- $ = {
7029
+ function Lr(l, a, u, i, f, r, m, g, A, B, Q, K, w, L) {
7030
+ if (l.timeoutHandle = -1, K = a.subtreeFlags, K & 8192 || (K & 16785408) === 16785408) {
7031
+ K = {
7032
7032
  stylesheets: null,
7033
7033
  count: 0,
7034
7034
  imgCount: 0,
@@ -7040,14 +7040,14 @@ Error generating stack: ` + i.message + `
7040
7040
  }, vg(
7041
7041
  a,
7042
7042
  r,
7043
- $
7043
+ K
7044
7044
  );
7045
- var Rt = (r & 62914560) === r ? Mu - dl() : (r & 4194048) === r ? up - dl() : 0;
7046
- if (Rt = _p(
7047
- $,
7048
- Rt
7049
- ), Rt !== null) {
7050
- dc = r, l.cancelPendingCommit = Rt(
7045
+ var Mt = (r & 62914560) === r ? Mu - dl() : (r & 4194048) === r ? up - dl() : 0;
7046
+ if (Mt = _p(
7047
+ K,
7048
+ Mt
7049
+ ), Mt !== null) {
7050
+ dc = r, l.cancelPendingCommit = Mt(
7051
7051
  _g.bind(
7052
7052
  null,
7053
7053
  l,
@@ -7060,7 +7060,7 @@ Error generating stack: ` + i.message + `
7060
7060
  g,
7061
7061
  A,
7062
7062
  Q,
7063
- $,
7063
+ K,
7064
7064
  null,
7065
7065
  w,
7066
7066
  L
@@ -7443,9 +7443,9 @@ Error generating stack: ` + i.message + `
7443
7443
  g.value.length
7444
7444
  );
7445
7445
  else {
7446
- var $ = g.ownerDocument || document, w = $ && $.defaultView || window;
7446
+ var K = g.ownerDocument || document, w = K && K.defaultView || window;
7447
7447
  if (w.getSelection) {
7448
- var L = w.getSelection(), Rt = g.textContent.length, Lt = Math.min(A.start, Rt), Ve = A.end === void 0 ? Lt : Math.min(A.end, Rt);
7448
+ var L = w.getSelection(), Mt = g.textContent.length, Lt = Math.min(A.start, Mt), Ve = A.end === void 0 ? Lt : Math.min(A.end, Mt);
7449
7449
  !L.extend && Lt > Ve && (m = Ve, Ve = Lt, Lt = m);
7450
7450
  var x = ay(
7451
7451
  g,
@@ -7455,20 +7455,20 @@ Error generating stack: ` + i.message + `
7455
7455
  Ve
7456
7456
  );
7457
7457
  if (x && C && (L.rangeCount !== 1 || L.anchorNode !== x.node || L.anchorOffset !== x.offset || L.focusNode !== C.node || L.focusOffset !== C.offset)) {
7458
- var H = $.createRange();
7458
+ var H = K.createRange();
7459
7459
  H.setStart(x.node, x.offset), L.removeAllRanges(), Lt > Ve ? (L.addRange(H), L.extend(C.node, C.offset)) : (H.setEnd(C.node, C.offset), L.addRange(H));
7460
7460
  }
7461
7461
  }
7462
7462
  }
7463
7463
  }
7464
- for ($ = [], L = g; L = L.parentNode; )
7465
- L.nodeType === 1 && $.push({
7464
+ for (K = [], L = g; L = L.parentNode; )
7465
+ L.nodeType === 1 && K.push({
7466
7466
  element: L,
7467
7467
  left: L.scrollLeft,
7468
7468
  top: L.scrollTop
7469
7469
  });
7470
- for (typeof g.focus == "function" && g.focus(), g = 0; g < $.length; g++) {
7471
- var J = $[g];
7470
+ for (typeof g.focus == "function" && g.focus(), g = 0; g < K.length; g++) {
7471
+ var J = K[g];
7472
7472
  J.element.scrollLeft = J.left, J.element.scrollTop = J.top;
7473
7473
  }
7474
7474
  }
@@ -7946,11 +7946,11 @@ Error generating stack: ` + i.message + `
7946
7946
  i = i.return;
7947
7947
  }
7948
7948
  wl(function() {
7949
- var B = r, Q = ut(u), $ = [];
7949
+ var B = r, Q = ut(u), K = [];
7950
7950
  t: {
7951
7951
  var w = ku.get(l);
7952
7952
  if (w !== void 0) {
7953
- var L = Pf, Rt = l;
7953
+ var L = Pf, Mt = l;
7954
7954
  switch (l) {
7955
7955
  case "keypress":
7956
7956
  if (Nd(u) === 0) break t;
@@ -7959,10 +7959,10 @@ Error generating stack: ` + i.message + `
7959
7959
  L = qd;
7960
7960
  break;
7961
7961
  case "focusin":
7962
- Rt = "focus", L = Bd;
7962
+ Mt = "focus", L = Bd;
7963
7963
  break;
7964
7964
  case "focusout":
7965
- Rt = "blur", L = Bd;
7965
+ Mt = "blur", L = Bd;
7966
7966
  break;
7967
7967
  case "beforeblur":
7968
7968
  case "afterblur":
@@ -8041,19 +8041,19 @@ Error generating stack: ` + i.message + `
8041
8041
  }
8042
8042
  0 < Lt.length && (w = new L(
8043
8043
  w,
8044
- Rt,
8044
+ Mt,
8045
8045
  null,
8046
8046
  u,
8047
8047
  Q
8048
- ), $.push({ event: w, listeners: Lt }));
8048
+ ), K.push({ event: w, listeners: Lt }));
8049
8049
  }
8050
8050
  }
8051
8051
  if ((a & 7) === 0) {
8052
8052
  t: {
8053
- if (w = l === "mouseover" || l === "pointerover", L = l === "mouseout" || l === "pointerout", w && u !== Y && (Rt = u.relatedTarget || u.fromElement) && (jc(Rt) || Rt[Wn]))
8053
+ if (w = l === "mouseover" || l === "pointerover", L = l === "mouseout" || l === "pointerout", w && u !== Y && (Mt = u.relatedTarget || u.fromElement) && (jc(Mt) || Mt[Wn]))
8054
8054
  break t;
8055
- if ((L || w) && (w = Q.window === Q ? Q : (w = Q.ownerDocument) ? w.defaultView || w.parentWindow : window, L ? (Rt = u.relatedTarget || u.toElement, L = B, Rt = Rt ? jc(Rt) : null, Rt !== null && (Ve = lt(Rt), Lt = Rt.tag, Rt !== Ve || Lt !== 5 && Lt !== 27 && Lt !== 6) && (Rt = null)) : (L = null, Rt = B), L !== Rt)) {
8056
- if (Lt = Es, J = "onMouseLeave", x = "onMouseEnter", C = "mouse", (l === "pointerout" || l === "pointerover") && (Lt = du, J = "onPointerLeave", x = "onPointerEnter", C = "pointer"), Ve = L == null ? w : Bc(L), H = Rt == null ? w : Bc(Rt), w = new Lt(
8055
+ if ((L || w) && (w = Q.window === Q ? Q : (w = Q.ownerDocument) ? w.defaultView || w.parentWindow : window, L ? (Mt = u.relatedTarget || u.toElement, L = B, Mt = Mt ? jc(Mt) : null, Mt !== null && (Ve = lt(Mt), Lt = Mt.tag, Mt !== Ve || Lt !== 5 && Lt !== 27 && Lt !== 6) && (Mt = null)) : (L = null, Mt = B), L !== Mt)) {
8056
+ if (Lt = Es, J = "onMouseLeave", x = "onMouseEnter", C = "mouse", (l === "pointerout" || l === "pointerover") && (Lt = du, J = "onPointerLeave", x = "onPointerEnter", C = "pointer"), Ve = L == null ? w : Bc(L), H = Mt == null ? w : Bc(Mt), w = new Lt(
8057
8057
  J,
8058
8058
  C + "leave",
8059
8059
  L,
@@ -8062,12 +8062,12 @@ Error generating stack: ` + i.message + `
8062
8062
  ), w.target = Ve, w.relatedTarget = H, J = null, jc(Q) === B && (Lt = new Lt(
8063
8063
  x,
8064
8064
  C + "enter",
8065
- Rt,
8065
+ Mt,
8066
8066
  u,
8067
8067
  Q
8068
- ), Lt.target = H, Lt.relatedTarget = Ve, J = Lt), Ve = J, L && Rt)
8068
+ ), Lt.target = H, Lt.relatedTarget = Ve, J = Lt), Ve = J, L && Mt)
8069
8069
  e: {
8070
- for (Lt = Lg, x = L, C = Rt, H = 0, J = x; J; J = Lt(J))
8070
+ for (Lt = Lg, x = L, C = Mt, H = 0, J = x; J; J = Lt(J))
8071
8071
  H++;
8072
8072
  J = 0;
8073
8073
  for (var qt = C; qt; qt = Lt(qt))
@@ -8087,15 +8087,15 @@ Error generating stack: ` + i.message + `
8087
8087
  }
8088
8088
  else Lt = null;
8089
8089
  L !== null && Kh(
8090
- $,
8090
+ K,
8091
8091
  w,
8092
8092
  L,
8093
8093
  Lt,
8094
8094
  !1
8095
- ), Rt !== null && Ve !== null && Kh(
8096
- $,
8095
+ ), Mt !== null && Ve !== null && Kh(
8096
+ K,
8097
8097
  Ve,
8098
- Rt,
8098
+ Mt,
8099
8099
  Lt,
8100
8100
  !0
8101
8101
  );
@@ -8115,7 +8115,7 @@ Error generating stack: ` + i.message + `
8115
8115
  L = w.nodeName, !L || L.toLowerCase() !== "input" || w.type !== "checkbox" && w.type !== "radio" ? B && co(B.elementType) && (Ae = ey) : Ae = Ei;
8116
8116
  if (Ae && (Ae = Ae(l, B))) {
8117
8117
  ty(
8118
- $,
8118
+ K,
8119
8119
  Ae,
8120
8120
  u,
8121
8121
  Q
@@ -8137,13 +8137,13 @@ Error generating stack: ` + i.message + `
8137
8137
  case "contextmenu":
8138
8138
  case "mouseup":
8139
8139
  case "dragend":
8140
- mu = !1, Qd($, u, Q);
8140
+ mu = !1, Qd(K, u, Q);
8141
8141
  break;
8142
8142
  case "selectionchange":
8143
8143
  if (nr) break;
8144
8144
  case "keydown":
8145
8145
  case "keyup":
8146
- Qd($, u, Q);
8146
+ Qd(K, u, Q);
8147
8147
  }
8148
8148
  var Ft;
8149
8149
  if (As)
@@ -8169,24 +8169,24 @@ Error generating stack: ` + i.message + `
8169
8169
  null,
8170
8170
  u,
8171
8171
  Q
8172
- ), $.push({ event: ee, listeners: Ut }), Ft ? ee.data = Ft : (Ft = Im(u), Ft !== null && (ee.data = Ft)))), (Ft = En ? K0(l, u) : o1(l, u)) && (ee = Fr(B, "onBeforeInput"), 0 < ee.length && (Ut = new V0(
8172
+ ), K.push({ event: ee, listeners: Ut }), Ft ? ee.data = Ft : (Ft = Im(u), Ft !== null && (ee.data = Ft)))), (Ft = En ? K0(l, u) : o1(l, u)) && (ee = Fr(B, "onBeforeInput"), 0 < ee.length && (Ut = new V0(
8173
8173
  "onBeforeInput",
8174
8174
  "beforeinput",
8175
8175
  null,
8176
8176
  u,
8177
8177
  Q
8178
- ), $.push({
8178
+ ), K.push({
8179
8179
  event: Ut,
8180
8180
  listeners: ee
8181
8181
  }), Ut.data = Ft)), $r(
8182
- $,
8182
+ K,
8183
8183
  l,
8184
8184
  B,
8185
8185
  u,
8186
8186
  Q
8187
8187
  );
8188
8188
  }
8189
- Vg($, a);
8189
+ Vg(K, a);
8190
8190
  });
8191
8191
  }
8192
8192
  function Wr(l, a, u) {
@@ -8740,22 +8740,22 @@ Error generating stack: ` + i.message + `
8740
8740
  case "input":
8741
8741
  var f = null, r = null, m = null, g = null, A = null, B = null, Q = null;
8742
8742
  for (L in u) {
8743
- var $ = u[L];
8744
- if (u.hasOwnProperty(L) && $ != null)
8743
+ var K = u[L];
8744
+ if (u.hasOwnProperty(L) && K != null)
8745
8745
  switch (L) {
8746
8746
  case "checked":
8747
8747
  break;
8748
8748
  case "value":
8749
8749
  break;
8750
8750
  case "defaultValue":
8751
- A = $;
8751
+ A = K;
8752
8752
  default:
8753
- i.hasOwnProperty(L) || Xe(l, a, L, null, i, $);
8753
+ i.hasOwnProperty(L) || Xe(l, a, L, null, i, K);
8754
8754
  }
8755
8755
  }
8756
8756
  for (var w in i) {
8757
8757
  var L = i[w];
8758
- if ($ = u[w], i.hasOwnProperty(w) && (L != null || $ != null))
8758
+ if (K = u[w], i.hasOwnProperty(w) && (L != null || K != null))
8759
8759
  switch (w) {
8760
8760
  case "type":
8761
8761
  r = L;
@@ -8781,13 +8781,13 @@ Error generating stack: ` + i.message + `
8781
8781
  throw Error(R(137, a));
8782
8782
  break;
8783
8783
  default:
8784
- L !== $ && Xe(
8784
+ L !== K && Xe(
8785
8785
  l,
8786
8786
  a,
8787
8787
  w,
8788
8788
  L,
8789
8789
  i,
8790
- $
8790
+ K
8791
8791
  );
8792
8792
  }
8793
8793
  }
@@ -8876,9 +8876,9 @@ Error generating stack: ` + i.message + `
8876
8876
  wc(l, w, L);
8877
8877
  return;
8878
8878
  case "option":
8879
- for (var Rt in u)
8880
- if (w = u[Rt], u.hasOwnProperty(Rt) && w != null && !i.hasOwnProperty(Rt))
8881
- switch (Rt) {
8879
+ for (var Mt in u)
8880
+ if (w = u[Mt], u.hasOwnProperty(Mt) && w != null && !i.hasOwnProperty(Mt))
8881
+ switch (Mt) {
8882
8882
  case "selected":
8883
8883
  l.selected = !1;
8884
8884
  break;
@@ -8886,7 +8886,7 @@ Error generating stack: ` + i.message + `
8886
8886
  Xe(
8887
8887
  l,
8888
8888
  a,
8889
- Rt,
8889
+ Mt,
8890
8890
  null,
8891
8891
  i,
8892
8892
  w
@@ -8970,8 +8970,8 @@ Error generating stack: ` + i.message + `
8970
8970
  }
8971
8971
  for (var x in u)
8972
8972
  w = u[x], u.hasOwnProperty(x) && w != null && !i.hasOwnProperty(x) && Xe(l, a, x, null, i, w);
8973
- for ($ in i)
8974
- w = i[$], L = u[$], !i.hasOwnProperty($) || w === L || w == null && L == null || Xe(l, a, $, w, i, L);
8973
+ for (K in i)
8974
+ w = i[K], L = u[K], !i.hasOwnProperty(K) || w === L || w == null && L == null || Xe(l, a, K, w, i, L);
8975
8975
  }
8976
8976
  function $h(l) {
8977
8977
  switch (l) {
@@ -8995,8 +8995,8 @@ Error generating stack: ` + i.message + `
8995
8995
  for (m = 0, g = f.responseEnd, i += 1; i < u.length; i++) {
8996
8996
  var A = u[i], B = A.startTime;
8997
8997
  if (B > g) break;
8998
- var Q = A.transferSize, $ = A.initiatorType;
8999
- Q && $h($) && (A = A.responseEnd, m += Q * (A < g ? 1 : (g - B) / (A - B)));
8998
+ var Q = A.transferSize, K = A.initiatorType;
8999
+ Q && $h(K) && (A = A.responseEnd, m += Q * (A < g ? 1 : (g - B) / (A - B)));
9000
9000
  }
9001
9001
  if (--i, a += 8 * (r + m) / (f.duration / 1e3), l++, 10 < l) break;
9002
9002
  }
@@ -9680,7 +9680,7 @@ Error generating stack: ` + i.message + `
9680
9680
  function Up(l, a, u, i, f, r, m, g, A) {
9681
9681
  this.tag = 1, this.containerInfo = l, this.pingCache = this.current = this.pendingChildren = null, this.timeoutHandle = -1, this.callbackNode = this.next = this.pendingContext = this.context = this.cancelPendingCommit = null, this.callbackPriority = 0, this.expirationTimes = Ba(-1), this.entangledLanes = this.shellSuspendCounter = this.errorRecoveryDisabledLanes = this.expiredLanes = this.warmLanes = this.pingedLanes = this.suspendedLanes = this.pendingLanes = 0, this.entanglements = Ba(0), this.hiddenUpdates = Ba(null), this.identifierPrefix = i, this.onUncaughtError = f, this.onCaughtError = r, this.onRecoverableError = m, this.pooledCache = null, this.pooledCacheLanes = 0, this.formState = A, this.incompleteTransitions = /* @__PURE__ */ new Map();
9682
9682
  }
9683
- function um(l, a, u, i, f, r, m, g, A, B, Q, $) {
9683
+ function um(l, a, u, i, f, r, m, g, A, B, Q, K) {
9684
9684
  return l = new Up(
9685
9685
  l,
9686
9686
  a,
@@ -9689,7 +9689,7 @@ Error generating stack: ` + i.message + `
9689
9689
  A,
9690
9690
  B,
9691
9691
  Q,
9692
- $,
9692
+ K,
9693
9693
  g
9694
9694
  ), a = 1, r === !0 && (a |= 24), r = ml(3, null, null, a), l.current = r, r.stateNode = l, a = rr(), a.refCount++, l.pooledCache = a, a.refCount++, r.memoizedState = {
9695
9695
  element: i,
@@ -10202,7 +10202,7 @@ Error generating stack: ` + i.message + `
10202
10202
  var a = l._reactInternals;
10203
10203
  if (a === void 0)
10204
10204
  throw typeof l.render == "function" ? Error(R(188)) : (l = Object.keys(l).join(","), Error(R(268, l)));
10205
- return l = Tt(a), l = l !== null ? Ot(l) : null, l = l === null ? null : l.stateNode, l;
10205
+ return l = Tt(a), l = l !== null ? Ct(l) : null, l = l === null ? null : l.stateNode, l;
10206
10206
  };
10207
10207
  var lv = {
10208
10208
  bundleType: 0,
@@ -10325,7 +10325,7 @@ function DA() {
10325
10325
  }
10326
10326
  function Tt() {
10327
10327
  }
10328
- function Ot() {
10328
+ function Ct() {
10329
10329
  }
10330
10330
  function ct(t) {
10331
10331
  var e = [];
@@ -10339,7 +10339,7 @@ function DA() {
10339
10339
  function At(t, e) {
10340
10340
  t.context === zf && (Kh(t.current, 2, e, t, null, null), Aa());
10341
10341
  }
10342
- function zt(t, e) {
10342
+ function Rt(t, e) {
10343
10343
  if (Tc !== null) {
10344
10344
  var n = e.staleFamilies;
10345
10345
  e = e.updatedFamilies, wr(), K0(
@@ -10355,7 +10355,7 @@ function DA() {
10355
10355
  function pt(t) {
10356
10356
  return !(!t || t.nodeType !== 1 && t.nodeType !== 9 && t.nodeType !== 11);
10357
10357
  }
10358
- function Ct(t) {
10358
+ function _t(t) {
10359
10359
  var e = t, n = t;
10360
10360
  if (t.alternate) for (; e.return; ) e = e.return;
10361
10361
  else {
@@ -10381,13 +10381,13 @@ function DA() {
10381
10381
  return null;
10382
10382
  }
10383
10383
  function j(t) {
10384
- if (Ct(t) !== t)
10384
+ if (_t(t) !== t)
10385
10385
  throw Error("Unable to find node on an unmounted component.");
10386
10386
  }
10387
10387
  function de(t) {
10388
10388
  var e = t.alternate;
10389
10389
  if (!e) {
10390
- if (e = Ct(t), e === null)
10390
+ if (e = _t(t), e === null)
10391
10391
  throw Error("Unable to find node on an unmounted component.");
10392
10392
  return e !== t ? null : t;
10393
10393
  }
@@ -10506,9 +10506,9 @@ function DA() {
10506
10506
  return null;
10507
10507
  }
10508
10508
  function Gt(t) {
10509
- return typeof t.tag == "number" ? K(t) : typeof t.name == "string" ? t.name : null;
10509
+ return typeof t.tag == "number" ? $(t) : typeof t.name == "string" ? t.name : null;
10510
10510
  }
10511
- function K(t) {
10511
+ function $(t) {
10512
10512
  var e = t.type;
10513
10513
  switch (t.tag) {
10514
10514
  case 31:
@@ -10565,7 +10565,7 @@ function DA() {
10565
10565
  if (typeof e[n].name == "string") return e[n].name;
10566
10566
  }
10567
10567
  if (t.return !== null)
10568
- return K(t.return);
10568
+ return $(t.return);
10569
10569
  }
10570
10570
  return null;
10571
10571
  }
@@ -10939,12 +10939,12 @@ Error generating stack: ` + h.message + `
10939
10939
  }
10940
10940
  function fl(t) {
10941
10941
  try {
10942
- return _t(t), !1;
10942
+ return zt(t), !1;
10943
10943
  } catch {
10944
10944
  return !0;
10945
10945
  }
10946
10946
  }
10947
- function _t(t) {
10947
+ function zt(t) {
10948
10948
  return "" + t;
10949
10949
  }
10950
10950
  function jt(t, e) {
@@ -10953,7 +10953,7 @@ Error generating stack: ` + h.message + `
10953
10953
  "The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before using it here.",
10954
10954
  e,
10955
10955
  _n(t)
10956
- ), _t(t);
10956
+ ), zt(t);
10957
10957
  }
10958
10958
  function rl(t, e) {
10959
10959
  if (fl(t))
@@ -10961,14 +10961,14 @@ Error generating stack: ` + h.message + `
10961
10961
  "The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before using it here.",
10962
10962
  e,
10963
10963
  _n(t)
10964
- ), _t(t);
10964
+ ), zt(t);
10965
10965
  }
10966
10966
  function Hl(t) {
10967
10967
  if (fl(t))
10968
10968
  return console.error(
10969
10969
  "Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before using it here.",
10970
10970
  _n(t)
10971
- ), _t(t);
10971
+ ), zt(t);
10972
10972
  }
10973
10973
  function Yu(t) {
10974
10974
  if (typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ > "u") return !1;
@@ -11960,8 +11960,8 @@ Check the render method of \`` + t + "`." : "";
11960
11960
  e.implicitRootScope
11961
11961
  ) ? null : n) ? null : vs(t, e), e = n || e, !e) return !0;
11962
11962
  var c = e.tag;
11963
- if (e = String(!!n) + "|" + t + "|" + c, $[e]) return !1;
11964
- $[e] = !0;
11963
+ if (e = String(!!n) + "|" + t + "|" + c, K[e]) return !1;
11964
+ K[e] = !0;
11965
11965
  var o = (e = ua) ? Tn(e.return, c) : null, s = e !== null && o !== null ? gs(o, e, null) : "", d = "<" + t + ">";
11966
11966
  return n ? (n = "", c === "table" && t === "tr" && (n += " Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."), console.error(
11967
11967
  `In HTML, %s cannot be a child of <%s>.%s
@@ -11988,8 +11988,8 @@ See this log for the ancestor stack trace.`,
11988
11988
  function iu(t, e, n) {
11989
11989
  if (n || uo("#text", e, !1))
11990
11990
  return !0;
11991
- if (n = "#text|" + e, $[n]) return !1;
11992
- $[n] = !0;
11991
+ if (n = "#text|" + e, K[n]) return !1;
11992
+ K[n] = !0;
11993
11993
  var c = (n = ua) ? Tn(n, e) : null;
11994
11994
  return n = n !== null && c !== null ? gs(
11995
11995
  c,
@@ -12914,7 +12914,7 @@ This will cause a hydration error.%s`,
12914
12914
  Ga(t, e, n, "Reconnect");
12915
12915
  }
12916
12916
  function qd(t, e, n, c, o) {
12917
- var s = K(t);
12917
+ var s = $(t);
12918
12918
  if (s !== null && ll) {
12919
12919
  var d = t.alternate, h = t.actualDuration;
12920
12920
  if (d === null || d.child !== t.child)
@@ -12958,7 +12958,7 @@ This will cause a hydration error.%s`,
12958
12958
  }
12959
12959
  function $m(t, e, n, c) {
12960
12960
  if (ll) {
12961
- var o = K(t);
12961
+ var o = $(t);
12962
12962
  if (o !== null) {
12963
12963
  for (var s = null, d = [], h = 0; h < c.length; h++) {
12964
12964
  var y = c[h];
@@ -12987,7 +12987,7 @@ This will cause a hydration error.%s`,
12987
12987
  function du(t, e, n, c, o) {
12988
12988
  if (o !== null) {
12989
12989
  if (ll) {
12990
- var s = K(t);
12990
+ var s = $(t);
12991
12991
  if (s !== null) {
12992
12992
  c = [];
12993
12993
  for (var d = 0; d < o.length; d++) {
@@ -13018,7 +13018,7 @@ This will cause a hydration error.%s`,
13018
13018
  }
13019
13019
  }
13020
13020
  } else
13021
- s = K(t), s !== null && ll && (o = 1 > c ? "secondary-light" : 100 > c ? "secondary" : 500 > c ? "secondary-dark" : "error", (t = t._debugTask) ? t.run(
13021
+ s = $(t), s !== null && ll && (o = 1 > c ? "secondary-light" : 100 > c ? "secondary" : 500 > c ? "secondary-dark" : "error", (t = t._debugTask) ? t.run(
13022
13022
  console.timeStamp.bind(
13023
13023
  console,
13024
13024
  s,
@@ -13842,7 +13842,7 @@ It can also happen if the client has a browser extension installed which messes
13842
13842
  });
13843
13843
  }
13844
13844
  function $u(t, e, n) {
13845
- (t & 127) !== 0 ? 0 > Pi && (Pi = an(), Kp = dv(e), w1 = e, n != null && (q1 = K(n)), (De & (vn | ju)) !== Cn && (Rl = !0, Of = Jp), t = lf(), e = hc(), t !== Em || e !== $p ? Em = -1.1 : e !== null && (Of = Jp), rd = t, $p = e) : (t & 4194048) !== 0 && 0 > zc && (zc = an(), kp = dv(e), tb = e, n != null && (eb = K(n)), 0 > ls) && (t = lf(), e = hc(), (t !== _f || e !== dd) && (_f = -1.1), Cf = t, dd = e);
13845
+ (t & 127) !== 0 ? 0 > Pi && (Pi = an(), Kp = dv(e), w1 = e, n != null && (q1 = $(n)), (De & (vn | ju)) !== Cn && (Rl = !0, Of = Jp), t = lf(), e = hc(), t !== Em || e !== $p ? Em = -1.1 : e !== null && (Of = Jp), rd = t, $p = e) : (t & 4194048) !== 0 && 0 > zc && (zc = an(), kp = dv(e), tb = e, n != null && (eb = $(n)), 0 > ls) && (t = lf(), e = hc(), (t !== _f || e !== dd) && (_f = -1.1), Cf = t, dd = e);
13846
13846
  }
13847
13847
  function F0(t) {
13848
13848
  if (0 > Pi) {
@@ -14110,7 +14110,7 @@ It can also happen if the client has a browser extension installed which messes
14110
14110
  ) : gu(t, e);
14111
14111
  }
14112
14112
  function sy(t, e) {
14113
- var n = K(t) || "Component";
14113
+ var n = $(t) || "Component";
14114
14114
  Tb[n] || (Tb[n] = !0, e = e.displayName || e.name || "Component", t.tag === 3 ? console.error(
14115
14115
  `Functions are not valid as a React child. This may happen if you return %s instead of <%s /> from render. Or maybe you meant to call this function rather than return it.
14116
14116
  root.render(%s)`,
@@ -14134,7 +14134,7 @@ It can also happen if the client has a browser extension installed which messes
14134
14134
  ) : sy(t, e);
14135
14135
  }
14136
14136
  function kd(t, e) {
14137
- var n = K(t) || "Component";
14137
+ var n = $(t) || "Component";
14138
14138
  Eb[n] || (Eb[n] = !0, e = String(e), t.tag === 3 ? console.error(
14139
14139
  `Symbols are not valid as a React child.
14140
14140
  root.render(%s)`,
@@ -14366,7 +14366,7 @@ It can also happen if the client has a browser extension installed which messes
14366
14366
  switch (M.$$typeof) {
14367
14367
  case Wa:
14368
14368
  case Ki:
14369
- Ot(b, E, M);
14369
+ Ct(b, E, M);
14370
14370
  var bt = M.key;
14371
14371
  if (typeof bt != "string") break;
14372
14372
  if (Z === null) {
@@ -14704,7 +14704,7 @@ It can also happen if the client has a browser extension installed which messes
14704
14704
  var c = t.updateQueue;
14705
14705
  if (c === null) return null;
14706
14706
  if (c = c.shared, J1 === c && !Mb) {
14707
- var o = K(t);
14707
+ var o = $(t);
14708
14708
  console.error(
14709
14709
  `An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback.
14710
14710
 
@@ -14933,7 +14933,7 @@ Please update the following component: %s`,
14933
14933
  function k() {
14934
14934
  var t = G;
14935
14935
  if (Oc !== null && (us++, Oc[us] !== t)) {
14936
- var e = K(kt);
14936
+ var e = $(kt);
14937
14937
  if (!Ob.has(e) && (Ob.add(e), Oc !== null)) {
14938
14938
  for (var n = "", c = 0; c <= us; c++) {
14939
14939
  var o = Oc[c], s = c === us ? t : o;
@@ -14963,7 +14963,7 @@ Please update the following component: %s`,
14963
14963
  );
14964
14964
  }
14965
14965
  function fr() {
14966
- var t = K(kt);
14966
+ var t = $(kt);
14967
14967
  _b.has(t) || (_b.add(t), console.error(
14968
14968
  "ReactDOM.useFormState has been renamed to React.useActionState. Please update %s to use React.useActionState.",
14969
14969
  t
@@ -14999,7 +14999,7 @@ Incoming: %s`,
14999
14999
  return !0;
15000
15000
  }
15001
15001
  function dy(t, e, n, c, o, s) {
15002
- ns = s, kt = e, Oc = t !== null ? t._debugHookTypes : null, us = -1, o0 = t !== null && t.type !== e.type, (Object.prototype.toString.call(n) === "[object AsyncFunction]" || Object.prototype.toString.call(n) === "[object AsyncGeneratorFunction]") && (s = K(kt), $1.has(s) || ($1.add(s), console.error(
15002
+ ns = s, kt = e, Oc = t !== null ? t._debugHookTypes : null, us = -1, o0 = t !== null && t.type !== e.type, (Object.prototype.toString.call(n) === "[object AsyncFunction]" || Object.prototype.toString.call(n) === "[object AsyncGeneratorFunction]") && (s = $(kt), $1.has(s) || ($1.add(s), console.error(
15003
15003
  "%s is an async Client Component. Only Server Components can be async at the moment. This error is often caused by accidentally adding `'use client'` to a module that was originally written for the server.",
15004
15004
  s === null ? "An unknown Component" : "<" + s + ">"
15005
15005
  ))), e.memoizedState = null, e.updateQueue = null, e.lanes = 0, V.H = t !== null && t.memoizedState !== null ? W1 : Oc !== null ? Ub : k1, vd = s = (e.mode & ca) !== Jt;
@@ -15037,7 +15037,7 @@ Incoming: %s`,
15037
15037
  throw Error(
15038
15038
  "Rendered fewer hooks than expected. This may be caused by an accidental early return statement."
15039
15039
  );
15040
- t === null || cn || (t = t.dependencies, t !== null && Rs(t) && (cn = !0)), a0 ? (a0 = !1, t = !0) : t = !1, t && (e = K(e) || "Unknown", Cb.has(e) || $1.has(e) || (Cb.add(e), console.error(
15040
+ t === null || cn || (t = t.dependencies, t !== null && Rs(t) && (cn = !0)), a0 ? (a0 = !1, t = !0) : t = !1, t && (e = $(e) || "Unknown", Cb.has(e) || $1.has(e) || (Cb.add(e), console.error(
15041
15041
  "`use` was called from inside a try/catch block. This is not allowed and can lead to unexpected behavior. To handle errors triggered by `use`, wrap your component in a error boundary."
15042
15042
  )));
15043
15043
  }
@@ -16075,7 +16075,7 @@ Incoming: %s`,
16075
16075
  }
16076
16076
  function nc(t, e, n, c) {
16077
16077
  var o = e.state;
16078
- typeof e.componentWillReceiveProps == "function" && e.componentWillReceiveProps(n, c), typeof e.UNSAFE_componentWillReceiveProps == "function" && e.UNSAFE_componentWillReceiveProps(n, c), e.state !== o && (t = K(t) || "Component", Nb.has(t) || (Nb.add(t), console.error(
16078
+ typeof e.componentWillReceiveProps == "function" && e.componentWillReceiveProps(n, c), typeof e.UNSAFE_componentWillReceiveProps == "function" && e.UNSAFE_componentWillReceiveProps(n, c), e.state !== o && (t = $(t) || "Component", Nb.has(t) || (Nb.add(t), console.error(
16079
16079
  "%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
16080
16080
  t
16081
16081
  )), F1.enqueueReplaceState(
@@ -16156,7 +16156,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
16156
16156
  }
16157
16157
  function Dr(t, e) {
16158
16158
  try {
16159
- _m = e.source ? K(e.source) : null, I1 = null;
16159
+ _m = e.source ? $(e.source) : null, I1 = null;
16160
16160
  var n = e.value;
16161
16161
  if (V.actQueue !== null)
16162
16162
  V.thrownErrors.push(n);
@@ -16172,7 +16172,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
16172
16172
  }
16173
16173
  function Sy(t, e, n) {
16174
16174
  try {
16175
- _m = n.source ? K(n.source) : null, I1 = K(e);
16175
+ _m = n.source ? $(n.source) : null, I1 = $(e);
16176
16176
  var c = t.onCaughtError;
16177
16177
  c(n.value, {
16178
16178
  componentStack: n.stack,
@@ -16218,7 +16218,7 @@ Visit https://react.dev/link/error-boundaries to learn more about error boundari
16218
16218
  c
16219
16219
  ), typeof o != "function" && (Bf === null ? Bf = /* @__PURE__ */ new Set([this]) : Bf.add(this)), fE(this, c), typeof o == "function" || (n.lanes & 2) === 0 && console.error(
16220
16220
  "%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",
16221
- K(n) || "Unknown"
16221
+ $(n) || "Unknown"
16222
16222
  );
16223
16223
  });
16224
16224
  }
@@ -16691,7 +16691,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
16691
16691
  c
16692
16692
  ), s.state = e.memoizedState), typeof n.getDerivedStateFromProps == "function" || typeof s.getSnapshotBeforeUpdate == "function" || typeof s.UNSAFE_componentWillMount != "function" && typeof s.componentWillMount != "function" || (d = s.state, typeof s.componentWillMount == "function" && s.componentWillMount(), typeof s.UNSAFE_componentWillMount == "function" && s.UNSAFE_componentWillMount(), d !== s.state && (console.error(
16693
16693
  "%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",
16694
- K(e) || "Component"
16694
+ $(e) || "Component"
16695
16695
  ), F1.enqueueReplaceState(
16696
16696
  s,
16697
16697
  s.state,
@@ -16780,7 +16780,7 @@ https://react.dev/link/unsafe-component-lifecycles`,
16780
16780
  );
16781
16781
  return o = e.stateNode, s && o.props !== c && (Um || console.error(
16782
16782
  "It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",
16783
- K(e) || "a component"
16783
+ $(e) || "a component"
16784
16784
  ), Um = !0), t;
16785
16785
  }
16786
16786
  function Oy(t, e, n, c) {
@@ -18179,10 +18179,10 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18179
18179
  var n = t.stateNode;
18180
18180
  t.type.defaultProps || "ref" in t.memoizedProps || Um || (n.props !== t.memoizedProps && console.error(
18181
18181
  "Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
18182
- K(t) || "instance"
18182
+ $(t) || "instance"
18183
18183
  ), n.state !== t.memoizedState && console.error(
18184
18184
  "Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
18185
- K(t) || "instance"
18185
+ $(t) || "instance"
18186
18186
  ));
18187
18187
  try {
18188
18188
  at(
@@ -18203,10 +18203,10 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18203
18203
  var n = e.memoizedProps, c = e.memoizedState;
18204
18204
  e = t.stateNode, t.type.defaultProps || "ref" in t.memoizedProps || Um || (e.props !== t.memoizedProps && console.error(
18205
18205
  "Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
18206
- K(t) || "instance"
18206
+ $(t) || "instance"
18207
18207
  ), e.state !== t.memoizedState && console.error(
18208
18208
  "Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
18209
- K(t) || "instance"
18209
+ $(t) || "instance"
18210
18210
  ));
18211
18211
  try {
18212
18212
  var o = ac(
@@ -18222,7 +18222,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18222
18222
  n = Wb, s !== void 0 || n.has(t.type) || (n.add(t.type), at(t, function() {
18223
18223
  console.error(
18224
18224
  "%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",
18225
- K(t)
18225
+ $(t)
18226
18226
  );
18227
18227
  })), e.__reactInternalSnapshotBeforeUpdate = s;
18228
18228
  } catch (d) {
@@ -18273,7 +18273,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18273
18273
  else
18274
18274
  typeof e == "string" ? console.error("String refs are no longer supported.") : e.hasOwnProperty("current") || console.error(
18275
18275
  "Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",
18276
- K(t)
18276
+ $(t)
18277
18277
  ), e.current = n;
18278
18278
  }
18279
18279
  }
@@ -18562,10 +18562,10 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18562
18562
  if (t = n.stateNode, e === null)
18563
18563
  n.type.defaultProps || "ref" in n.memoizedProps || Um || (t.props !== n.memoizedProps && console.error(
18564
18564
  "Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
18565
- K(n) || "instance"
18565
+ $(n) || "instance"
18566
18566
  ), t.state !== n.memoizedState && console.error(
18567
18567
  "Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
18568
- K(n) || "instance"
18568
+ $(n) || "instance"
18569
18569
  )), cc(n) ? (ml(), at(
18570
18570
  n,
18571
18571
  V1,
@@ -18584,10 +18584,10 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
18584
18584
  );
18585
18585
  e = e.memoizedState, n.type.defaultProps || "ref" in n.memoizedProps || Um || (t.props !== n.memoizedProps && console.error(
18586
18586
  "Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",
18587
- K(n) || "instance"
18587
+ $(n) || "instance"
18588
18588
  ), t.state !== n.memoizedState && console.error(
18589
18589
  "Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",
18590
- K(n) || "instance"
18590
+ $(n) || "instance"
18591
18591
  )), cc(n) ? (ml(), at(
18592
18592
  n,
18593
18593
  db,
@@ -20061,7 +20061,7 @@ Learn more about data fetching with Hooks: https://react.dev/link/hooks-data-fet
20061
20061
  case 0:
20062
20062
  case 11:
20063
20063
  case 15:
20064
- t = re && K(re) || "Unknown", d2.has(t) || (d2.add(t), e = K(e) || "Unknown", console.error(
20064
+ t = re && $(re) || "Unknown", d2.has(t) || (d2.add(t), e = $(e) || "Unknown", console.error(
20065
20065
  "Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://react.dev/link/setstate-in-render",
20066
20066
  e,
20067
20067
  t,
@@ -21417,7 +21417,7 @@ This ensures that you're testing the behavior the user would see in the browser.
21417
21417
  if ((De & vn) === Cn) {
21418
21418
  var e = t.tag;
21419
21419
  if (e === 3 || e === 1 || e === 0 || e === 11 || e === 14 || e === 15) {
21420
- if (e = K(t) || "ReactComponent", qv !== null) {
21420
+ if (e = $(t) || "ReactComponent", qv !== null) {
21421
21421
  if (qv.has(e)) return;
21422
21422
  qv.add(e);
21423
21423
  } else qv = /* @__PURE__ */ new Set([e]);
@@ -21451,7 +21451,7 @@ act(() => {
21451
21451
  /* assert on the output */
21452
21452
 
21453
21453
  This ensures that you're testing the behavior the user would see in the browser. Learn more at https://react.dev/link/wrap-tests-with-act`,
21454
- K(t)
21454
+ $(t)
21455
21455
  );
21456
21456
  });
21457
21457
  }
@@ -21879,7 +21879,7 @@ This ensures that you're testing the behavior the user would see in the browser.
21879
21879
  t: {
21880
21880
  if (T = t === "mouseover" || t === "pointerover", q = t === "mouseout" || t === "pointerout", T && n !== Bp && (mt = n.relatedTarget || n.fromElement) && (ja(mt) || mt[ni]))
21881
21881
  break t;
21882
- if ((q || T) && (T = O.window === O ? O : (T = O.ownerDocument) ? T.defaultView || T.parentWindow : window, q ? (mt = n.relatedTarget || n.toElement, q = p, mt = mt ? ja(mt) : null, mt !== null && (Fe = Ct(mt), Dt = mt.tag, mt !== Fe || Dt !== 5 && Dt !== 27 && Dt !== 6) && (mt = null)) : (q = null, mt = p), q !== mt)) {
21882
+ if ((q || T) && (T = O.window === O ? O : (T = O.ownerDocument) ? T.defaultView || T.parentWindow : window, q ? (mt = n.relatedTarget || n.toElement, q = p, mt = mt ? ja(mt) : null, mt !== null && (Fe = _t(mt), Dt = mt.tag, mt !== Fe || Dt !== 5 && Dt !== 27 && Dt !== 6) && (mt = null)) : (q = null, mt = p), q !== mt)) {
21883
21883
  if (Dt = xS, M = "onMouseLeave", ve = "onMouseEnter", b = "mouse", (t === "pointerout" || t === "pointerover") && (Dt = NS, M = "onPointerLeave", ve = "onPointerEnter", b = "pointer"), Fe = q == null ? T : Ml(q), E = mt == null ? T : Ml(mt), T = new Dt(
21884
21884
  M,
21885
21885
  b + "leave",
@@ -22117,7 +22117,7 @@ This ensures that you're testing the behavior the user would see in the browser.
22117
22117
  return fl(t) && (console.error(
22118
22118
  "The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before using it here.",
22119
22119
  _n(t)
22120
- ), _t(t)), (typeof t == "string" ? t : "" + t).replace(EE, `
22120
+ ), zt(t)), (typeof t == "string" ? t : "" + t).replace(EE, `
22121
22121
  `).replace(AE, "");
22122
22122
  }
22123
22123
  function up(t, e) {
@@ -22996,7 +22996,7 @@ This ensures that you're testing the behavior the user would see in the browser.
22996
22996
  for (s in e)
22997
22997
  if (e.hasOwnProperty(s)) {
22998
22998
  var d = e[s];
22999
- d != null && typeof d != "boolean" && d !== "" && (s.indexOf("--") === 0 ? (rl(d, s), c += o + s + ":" + ("" + d).trim()) : typeof d != "number" || d === 0 || Ut.has(s) ? (rl(d, s), c += o + s.replace(L, "-$1").toLowerCase().replace(Rt, "-ms-") + ":" + ("" + d).trim()) : c += o + s.replace(L, "-$1").toLowerCase().replace(Rt, "-ms-") + ":" + d + "px", o = ";");
22999
+ d != null && typeof d != "boolean" && d !== "" && (s.indexOf("--") === 0 ? (rl(d, s), c += o + s + ":" + ("" + d).trim()) : typeof d != "number" || d === 0 || Ut.has(s) ? (rl(d, s), c += o + s.replace(L, "-$1").toLowerCase().replace(Mt, "-ms-") + ":" + ("" + d).trim()) : c += o + s.replace(L, "-$1").toLowerCase().replace(Mt, "-ms-") + ":" + d + "px", o = ";");
23000
23000
  }
23001
23001
  c = c || null, e = t.getAttribute("style"), e !== c && (c = Mu(c), Mu(e) !== c && (n.style = Qi(t)));
23002
23002
  }
@@ -24415,7 +24415,7 @@ This ensures that you're testing the behavior the user would see in the browser.
24415
24415
  `Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
24416
24416
 
24417
24417
  Check the render method of %s.`,
24418
- K(ua) || "Unknown"
24418
+ $(ua) || "Unknown"
24419
24419
  )), c = ql(e), c.payload = { element: n }, s = s === void 0 ? null : s, s !== null && (typeof s != "function" && console.error(
24420
24420
  "Expected the last optional `callback` argument to be a function. Instead received: %s.",
24421
24421
  s
@@ -24533,7 +24533,7 @@ Check the render method of %s.`,
24533
24533
  }
24534
24534
  function Tp(t) {
24535
24535
  if (Iv = null, t = ja(t), t !== null) {
24536
- var e = Ct(t);
24536
+ var e = _t(t);
24537
24537
  if (e === null) t = null;
24538
24538
  else {
24539
24539
  var n = e.tag;
@@ -24737,7 +24737,7 @@ Check the render method of %s.`,
24737
24737
  function Ep(t) {
24738
24738
  var e = ja(t.target);
24739
24739
  if (e !== null) {
24740
- var n = Ct(e);
24740
+ var n = _t(e);
24741
24741
  if (n !== null) {
24742
24742
  if (e = n.tag, e === 13) {
24743
24743
  if (e = Et(n), e !== null) {
@@ -24933,7 +24933,7 @@ Check the render method of %s.`,
24933
24933
  dlItemTagAutoclosing: null,
24934
24934
  containerTagInScope: null,
24935
24935
  implicitRootScope: !1
24936
- }, $ = {}, w = {
24936
+ }, K = {}, w = {
24937
24937
  animation: "animationDelay animationDirection animationDuration animationFillMode animationIterationCount animationName animationPlayState animationTimingFunction".split(
24938
24938
  " "
24939
24939
  ),
@@ -25063,7 +25063,7 @@ Check the render method of %s.`,
25063
25063
  "transitionTimingFunction"
25064
25064
  ],
25065
25065
  wordWrap: ["overflowWrap"]
25066
- }, L = /([A-Z])/g, Rt = /^ms-/, Lt = /^(?:webkit|moz|o)[A-Z]/, Ve = /^-ms-/, x = /-(.)/g, C = /;\s*$/, H = {}, J = {}, qt = !1, Ae = !1, Ut = new Set(
25066
+ }, L = /([A-Z])/g, Mt = /^ms-/, Lt = /^(?:webkit|moz|o)[A-Z]/, Ve = /^-ms-/, x = /-(.)/g, C = /;\s*$/, H = {}, J = {}, qt = !1, Ae = !1, Ut = new Set(
25067
25067
  "animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(
25068
25068
  " "
25069
25069
  )
@@ -26003,39 +26003,39 @@ Check the render method of %s.`,
26003
26003
  var t = /* @__PURE__ */ new Set();
26004
26004
  0 < Ip.length && (Ip.forEach(function(h) {
26005
26005
  t.add(
26006
- K(h) || "Component"
26006
+ $(h) || "Component"
26007
26007
  ), yd.add(h.type);
26008
26008
  }), Ip = []);
26009
26009
  var e = /* @__PURE__ */ new Set();
26010
26010
  0 < Pp.length && (Pp.forEach(function(h) {
26011
26011
  e.add(
26012
- K(h) || "Component"
26012
+ $(h) || "Component"
26013
26013
  ), yd.add(h.type);
26014
26014
  }), Pp = []);
26015
26015
  var n = /* @__PURE__ */ new Set();
26016
26016
  0 < t0.length && (t0.forEach(function(h) {
26017
26017
  n.add(
26018
- K(h) || "Component"
26018
+ $(h) || "Component"
26019
26019
  ), yd.add(h.type);
26020
26020
  }), t0 = []);
26021
26021
  var c = /* @__PURE__ */ new Set();
26022
26022
  0 < e0.length && (e0.forEach(
26023
26023
  function(h) {
26024
26024
  c.add(
26025
- K(h) || "Component"
26025
+ $(h) || "Component"
26026
26026
  ), yd.add(h.type);
26027
26027
  }
26028
26028
  ), e0 = []);
26029
26029
  var o = /* @__PURE__ */ new Set();
26030
26030
  0 < l0.length && (l0.forEach(function(h) {
26031
26031
  o.add(
26032
- K(h) || "Component"
26032
+ $(h) || "Component"
26033
26033
  ), yd.add(h.type);
26034
26034
  }), l0 = []);
26035
26035
  var s = /* @__PURE__ */ new Set();
26036
26036
  if (0 < n0.length && (n0.forEach(function(h) {
26037
26037
  s.add(
26038
- K(h) || "Component"
26038
+ $(h) || "Component"
26039
26039
  ), yd.add(h.type);
26040
26040
  }), n0 = []), 0 < e.size) {
26041
26041
  var d = ct(
@@ -26110,7 +26110,7 @@ Please update the following components: %s`,
26110
26110
  if (t.length !== 0) {
26111
26111
  var e = t[0], n = /* @__PURE__ */ new Set();
26112
26112
  t.forEach(function(o) {
26113
- n.add(K(o) || "Component"), cb.add(o.type);
26113
+ n.add($(o) || "Component"), cb.add(o.type);
26114
26114
  });
26115
26115
  var c = ct(n);
26116
26116
  at(e, function() {
@@ -26220,24 +26220,24 @@ Learn more about this warning here: https://react.dev/link/legacy-context`,
26220
26220
  );
26221
26221
  }
26222
26222
  }, pd = null, a0 = !1, zm = null, u0 = 0, ue = null, Q1, Sb = Q1 = !1, bb = {}, Tb = {}, Eb = {};
26223
- Ot = function(t, e, n) {
26223
+ Ct = function(t, e, n) {
26224
26224
  if (n !== null && typeof n == "object" && n._store && (!n._store.validated && n.key == null || n._store.validated === 2)) {
26225
26225
  if (typeof n._store != "object")
26226
26226
  throw Error(
26227
26227
  "React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue."
26228
26228
  );
26229
26229
  n._store.validated = 1;
26230
- var c = K(t), o = c || "null";
26230
+ var c = $(t), o = c || "null";
26231
26231
  if (!bb[o]) {
26232
26232
  bb[o] = !0, n = n._owner, t = t._debugOwner;
26233
26233
  var s = "";
26234
- t && typeof t.tag == "number" && (o = K(t)) && (s = `
26234
+ t && typeof t.tag == "number" && (o = $(t)) && (s = `
26235
26235
 
26236
26236
  Check the render method of \`` + o + "`."), s || c && (s = `
26237
26237
 
26238
26238
  Check the top-level render call using <` + c + ">.");
26239
26239
  var d = "";
26240
- n != null && t !== n && (c = null, typeof n.tag == "number" ? c = K(n) : typeof n.name == "string" && (c = n.name), c && (d = " It was passed a child from " + c + ".")), at(e, function() {
26240
+ n != null && t !== n && (c = null, typeof n.tag == "number" ? c = $(n) : typeof n.name == "string" && (c = n.name), c && (d = " It was passed a child from " + c + ".")), at(e, function() {
26241
26241
  console.error(
26242
26242
  'Each child in a list should have a unique "key" prop.%s%s See https://react.dev/link/warning-keys for more information.',
26243
26243
  s,
@@ -27253,7 +27253,7 @@ Learn more: https://react.dev/warnings/version-mismatch`)
27253
27253
  currentDispatcherRef: V,
27254
27254
  reconcilerVersion: "19.2.7"
27255
27255
  };
27256
- return t.overrideHookState = C2, t.overrideHookStateDeletePath = _2, t.overrideHookStateRenamePath = U2, t.overrideProps = x2, t.overridePropsDeletePath = H2, t.overridePropsRenamePath = N2, t.scheduleUpdate = j2, t.scheduleRetry = B2, t.setErrorHandler = w2, t.setSuspenseHandler = q2, t.scheduleRefresh = zt, t.scheduleRoot = At, t.setRefreshHandler = xt, t.getCurrentFiber = Xe, Yu(t);
27256
+ return t.overrideHookState = C2, t.overrideHookStateDeletePath = _2, t.overrideHookStateRenamePath = U2, t.overrideProps = x2, t.overridePropsDeletePath = H2, t.overridePropsRenamePath = N2, t.scheduleUpdate = j2, t.scheduleRetry = B2, t.setErrorHandler = w2, t.setSuspenseHandler = q2, t.scheduleRefresh = Rt, t.scheduleRoot = At, t.setRefreshHandler = xt, t.getCurrentFiber = Xe, Yu(t);
27257
27257
  })() && Fi && window.top === window.self && (-1 < navigator.userAgent.indexOf("Chrome") && navigator.userAgent.indexOf("Edge") === -1 || -1 < navigator.userAgent.indexOf("Firefox"))) {
27258
27258
  var Y2 = window.location.protocol;
27259
27259
  /^(https?|file):$/.test(Y2) && console.info(
@@ -27384,13 +27384,13 @@ function OA() {
27384
27384
  return "Fragment";
27385
27385
  case Et:
27386
27386
  return "Profiler";
27387
- case Ct:
27387
+ case _t:
27388
27388
  return "StrictMode";
27389
27389
  case Vt:
27390
27390
  return "Suspense";
27391
27391
  case wt:
27392
27392
  return "SuspenseList";
27393
- case K:
27393
+ case $:
27394
27394
  return "Activity";
27395
27395
  }
27396
27396
  if (typeof U == "object")
@@ -27483,7 +27483,7 @@ function OA() {
27483
27483
  function Tt(U, tt, dt, ht, ie, Sl) {
27484
27484
  var ze = dt.ref;
27485
27485
  return U = {
27486
- $$typeof: zt,
27486
+ $$typeof: Rt,
27487
27487
  type: U,
27488
27488
  key: tt,
27489
27489
  props: dt,
@@ -27513,7 +27513,7 @@ function OA() {
27513
27513
  value: Sl
27514
27514
  }), Object.freeze && (Object.freeze(U.props), Object.freeze(U)), U;
27515
27515
  }
27516
- function Ot(U, tt, dt, ht, ie, Sl) {
27516
+ function Ct(U, tt, dt, ht, ie, Sl) {
27517
27517
  var ze = tt.children;
27518
27518
  if (ze !== void 0)
27519
27519
  if (ht)
@@ -27565,9 +27565,9 @@ React keys must be passed directly to JSX without using spread:
27565
27565
  yt(U) ? U._store && (U._store.validated = 1) : typeof U == "object" && U !== null && U.$$typeof === Gt && (U._payload.status === "fulfilled" ? yt(U._payload.value) && U._payload.value._store && (U._payload.value._store.validated = 1) : U._store && (U._store.validated = 1));
27566
27566
  }
27567
27567
  function yt(U) {
27568
- return typeof U == "object" && U !== null && U.$$typeof === zt;
27568
+ return typeof U == "object" && U !== null && U.$$typeof === Rt;
27569
27569
  }
27570
- var At = n1, zt = Symbol.for("react.transitional.element"), xt = Symbol.for("react.portal"), pt = Symbol.for("react.fragment"), Ct = Symbol.for("react.strict_mode"), Et = Symbol.for("react.profiler"), Ht = Symbol.for("react.consumer"), j = Symbol.for("react.context"), de = Symbol.for("react.forward_ref"), Vt = Symbol.for("react.suspense"), wt = Symbol.for("react.suspense_list"), ft = Symbol.for("react.memo"), Gt = Symbol.for("react.lazy"), K = Symbol.for("react.activity"), vt = Symbol.for("react.client.reference"), rt = At.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, nt = Object.prototype.hasOwnProperty, it = Array.isArray, P = console.createTask ? console.createTask : function() {
27570
+ var At = n1, Rt = Symbol.for("react.transitional.element"), xt = Symbol.for("react.portal"), pt = Symbol.for("react.fragment"), _t = Symbol.for("react.strict_mode"), Et = Symbol.for("react.profiler"), Ht = Symbol.for("react.consumer"), j = Symbol.for("react.context"), de = Symbol.for("react.forward_ref"), Vt = Symbol.for("react.suspense"), wt = Symbol.for("react.suspense_list"), ft = Symbol.for("react.memo"), Gt = Symbol.for("react.lazy"), $ = Symbol.for("react.activity"), vt = Symbol.for("react.client.reference"), rt = At.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, nt = Object.prototype.hasOwnProperty, it = Array.isArray, P = console.createTask ? console.createTask : function() {
27571
27571
  return null;
27572
27572
  };
27573
27573
  At = {
@@ -27581,7 +27581,7 @@ React keys must be passed directly to JSX without using spread:
27581
27581
  )(), W = P(R(lt)), F = {};
27582
27582
  _0.Fragment = pt, _0.jsx = function(U, tt, dt) {
27583
27583
  var ht = 1e4 > rt.recentlyCreatedOwnerStacks++;
27584
- return Ot(
27584
+ return Ct(
27585
27585
  U,
27586
27586
  tt,
27587
27587
  dt,
@@ -27591,7 +27591,7 @@ React keys must be passed directly to JSX without using spread:
27591
27591
  );
27592
27592
  }, _0.jsxs = function(U, tt, dt) {
27593
27593
  var ht = 1e4 > rt.recentlyCreatedOwnerStacks++;
27594
- return Ot(
27594
+ return Ct(
27595
27595
  U,
27596
27596
  tt,
27597
27597
  dt,
@@ -27617,38 +27617,38 @@ const Ud = {
27617
27617
  ERROR: "error"
27618
27618
  };
27619
27619
  function _A(S, I) {
27620
- const st = S.segments, R = N0(() => V2(st), [st]), et = !!S.streamed, lt = S.status === "stop" || S.status === "error", [gt, X] = Bt(() => S.streamed ? 0 : V2(st)), ot = Mt(gt);
27620
+ const st = S.segments, R = N0(() => V2(st), [st]), et = !!S.streamed, lt = S.status === "stop" || S.status === "error", [gt, X] = Bt(() => S.streamed ? 0 : V2(st)), ot = Ot(gt);
27621
27621
  ot.current = gt;
27622
- const Tt = Mt(0), Ot = Mt(0), ct = Mt(0), yt = Mt(R);
27622
+ const Tt = Ot(0), Ct = Ot(0), ct = Ot(0), yt = Ot(R);
27623
27623
  yt.current = R;
27624
- const At = Mt(st);
27624
+ const At = Ot(st);
27625
27625
  At.current = st;
27626
- const zt = Mt(I);
27627
- zt.current = I;
27626
+ const Rt = Ot(I);
27627
+ Rt.current = I;
27628
27628
  const xt = Te((Vt) => {
27629
27629
  ot.current !== Vt && (ot.current = Vt, X(Vt));
27630
27630
  }, []), pt = Te(() => {
27631
- if (Ot.current) return;
27631
+ if (Ct.current) return;
27632
27632
  const Vt = (wt) => {
27633
27633
  var rt;
27634
27634
  if (ct.current === 0) {
27635
- ct.current = wt, Ot.current = requestAnimationFrame(Vt);
27635
+ ct.current = wt, Ct.current = requestAnimationFrame(Vt);
27636
27636
  return;
27637
27637
  }
27638
27638
  const ft = Math.min(wt - ct.current, 100);
27639
27639
  ct.current = wt;
27640
- const Gt = yt.current, K = dA(At.current, ot.current), vt = hA(ot.current, Gt, Tt.current, ft, K);
27641
- if (Tt.current = vt.frac, vt.reveal !== ot.current && (ot.current = vt.reveal, X(vt.reveal), (rt = zt.current) == null || rt.call(zt)), ot.current >= Gt) {
27642
- Ot.current = 0, ct.current = 0;
27640
+ const Gt = yt.current, $ = dA(At.current, ot.current), vt = hA(ot.current, Gt, Tt.current, ft, $);
27641
+ if (Tt.current = vt.frac, vt.reveal !== ot.current && (ot.current = vt.reveal, X(vt.reveal), (rt = Rt.current) == null || rt.call(Rt)), ot.current >= Gt) {
27642
+ Ct.current = 0, ct.current = 0;
27643
27643
  return;
27644
27644
  }
27645
- Ot.current = requestAnimationFrame(Vt);
27645
+ Ct.current = requestAnimationFrame(Vt);
27646
27646
  };
27647
- ct.current = 0, Ot.current = requestAnimationFrame(Vt);
27648
- }, []), Ct = Mt(S.status);
27647
+ ct.current = 0, Ct.current = requestAnimationFrame(Vt);
27648
+ }, []), _t = Ot(S.status);
27649
27649
  Se(() => {
27650
- const Vt = Ct.current;
27651
- Ct.current = S.status, S.status === "rethinking" && Vt !== "rethinking" && (Tt.current = 0, xt(0), yt.current > 0 && pt());
27650
+ const Vt = _t.current;
27651
+ _t.current = S.status, S.status === "rethinking" && Vt !== "rethinking" && (Tt.current = 0, xt(0), yt.current > 0 && pt());
27652
27652
  }), Se(() => {
27653
27653
  et || xt(R);
27654
27654
  }, [et, R, xt]), Se(() => {
@@ -27661,7 +27661,7 @@ function _A(S, I) {
27661
27661
  }
27662
27662
  }, [et, lt, R, pt, xt]), Se(
27663
27663
  () => () => {
27664
- Ot.current && (cancelAnimationFrame(Ot.current), Ot.current = 0);
27664
+ Ct.current && (cancelAnimationFrame(Ct.current), Ct.current = 0);
27665
27665
  },
27666
27666
  []
27667
27667
  );
@@ -27694,7 +27694,7 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27694
27694
  }
27695
27695
  }
27696
27696
  ), UA = ({ content: S, isStreaming: I, messageDone: st }) => {
27697
- const [R, et] = Bt(() => !!I || !!st), lt = Mt(0);
27697
+ const [R, et] = Bt(() => !!I || !!st), lt = Ot(0);
27698
27698
  Se(
27699
27699
  () => () => {
27700
27700
  lt.current && (clearTimeout(lt.current), lt.current = 0);
@@ -27707,11 +27707,11 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27707
27707
  }, [I, st]), Se(() => {
27708
27708
  st && (lt.current && (clearTimeout(lt.current), lt.current = 0), et(!0));
27709
27709
  }, [st]);
27710
- const gt = Mt(null), X = Mt(!1), ot = () => {
27710
+ const gt = Ot(null), X = Ot(!1), ot = () => {
27711
27711
  const Tt = gt.current;
27712
27712
  if (!Tt) return;
27713
- const Ot = 12;
27714
- X.current = Tt.scrollHeight - Tt.scrollTop - Tt.clientHeight > Ot;
27713
+ const Ct = 12;
27714
+ X.current = Tt.scrollHeight - Tt.scrollTop - Tt.clientHeight > Ct;
27715
27715
  };
27716
27716
  return Se(() => {
27717
27717
  if (!I || !R) return;
@@ -27868,8 +27868,8 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27868
27868
  {
27869
27869
  className: "copy-button",
27870
27870
  onClick: (Tt) => {
27871
- const Ot = Tt.currentTarget.nextElementSibling;
27872
- Ot && navigator.clipboard.writeText(Ot.textContent || "").then(() => {
27871
+ const Ct = Tt.currentTarget.nextElementSibling;
27872
+ Ct && navigator.clipboard.writeText(Ct.textContent || "").then(() => {
27873
27873
  const ct = Tt.currentTarget;
27874
27874
  ct.textContent = "已复制", setTimeout(() => {
27875
27875
  ct.textContent = "复制";
@@ -27902,20 +27902,20 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27902
27902
  }
27903
27903
  } catch {
27904
27904
  }
27905
- }, Ot = S.segments, ct = !!(Ot && Ot.length > 0), { reveal: yt, segmentContents: At, frontier: zt, revealDone: xt } = _A(S, st), Ct = (S.status === Ud.COMPLETED || S.status === Ud.STOP) && xt, Et = N0(() => mA(Ot, yt), [Ot, yt]), Ht = Et.length > 0, j = Et.some((it) => it.kind === "thinking"), de = Et.some((it) => it.kind === "tools"), Vt = Et.some((it) => it.kind === "steps"), [wt, ft] = Bt(!1);
27905
+ }, Ct = S.segments, ct = !!(Ct && Ct.length > 0), { reveal: yt, segmentContents: At, frontier: Rt, revealDone: xt } = _A(S, st), _t = (S.status === Ud.COMPLETED || S.status === Ud.STOP) && xt, Et = N0(() => mA(Ct, yt), [Ct, yt]), Ht = Et.length > 0, j = Et.some((it) => it.kind === "thinking"), de = Et.some((it) => it.kind === "tools"), Vt = Et.some((it) => it.kind === "steps"), [wt, ft] = Bt(!1);
27906
27906
  Se(() => {
27907
- Ct && ft(!1);
27908
- }, [Ct]);
27907
+ _t && ft(!1);
27908
+ }, [_t]);
27909
27909
  const Gt = [
27910
27910
  j && "深度思考",
27911
27911
  de && "工具调用",
27912
27912
  Vt && "执行步骤"
27913
- ].filter(Boolean).join(" · ") || "思考过程", K = !Ct || wt, vt = (Ot || []).reduce(
27913
+ ].filter(Boolean).join(" · ") || "思考过程", $ = !_t || wt, vt = (Ct || []).reduce(
27914
27914
  (it, P) => P.type === "thinking" || P.type === "agent_thought" || P.type === "step" ? it + (P.duration ?? 0) : it,
27915
27915
  0
27916
- ), rt = (Ot || []).some(
27916
+ ), rt = (Ct || []).some(
27917
27917
  (it, P) => it.type === "answer" && (At[P] || "").length > 0
27918
- ), nt = !Ct && S.status !== Ud.ERROR && S.status !== Ud.PAUSED && Et.length === 0 && !rt;
27918
+ ), nt = !_t && S.status !== Ud.ERROR && S.status !== Ud.PAUSED && Et.length === 0 && !rt;
27919
27919
  return /* @__PURE__ */ D.jsxs("div", { className: `message ${S.type}-message`, children: [
27920
27920
  S.type === "ai" ? /* @__PURE__ */ D.jsxs(D.Fragment, { children: [
27921
27921
  nt && /* @__PURE__ */ D.jsx("div", { className: "message-content ba-markdown", children: /* @__PURE__ */ D.jsxs("div", { className: "scale-animation-container", children: [
@@ -27925,7 +27925,7 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27925
27925
  /* @__PURE__ */ D.jsx("span", { className: "scale-dot" })
27926
27926
  ] }) }),
27927
27927
  ct && /* @__PURE__ */ D.jsxs("div", { className: "message-content ba-markdown", onClick: ot, children: [
27928
- Ct && Ht && /* @__PURE__ */ D.jsxs(
27928
+ _t && Ht && /* @__PURE__ */ D.jsxs(
27929
27929
  "div",
27930
27930
  {
27931
27931
  className: `thought-collapse-bar ${wt ? "thought-collapse-bar--expanded" : ""}`,
@@ -27955,12 +27955,12 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27955
27955
  ]
27956
27956
  }
27957
27957
  ),
27958
- K && Et.map((it, P) => it.kind === "steps" ? /* @__PURE__ */ D.jsx(NA, { steps: it.items }, `steps-${P}`) : it.kind === "thinking" ? /* @__PURE__ */ D.jsx(
27958
+ $ && Et.map((it, P) => it.kind === "steps" ? /* @__PURE__ */ D.jsx(NA, { steps: it.items }, `steps-${P}`) : it.kind === "thinking" ? /* @__PURE__ */ D.jsx(
27959
27959
  UA,
27960
27960
  {
27961
27961
  content: it.content,
27962
27962
  isStreaming: it.streaming,
27963
- messageDone: Ct
27963
+ messageDone: _t
27964
27964
  },
27965
27965
  `thinking-${P}`
27966
27966
  ) : /* @__PURE__ */ D.jsx(
@@ -27972,10 +27972,10 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27972
27972
  },
27973
27973
  `tools-${P}`
27974
27974
  )),
27975
- Ot.map((it, P) => {
27975
+ Ct.map((it, P) => {
27976
27976
  if (it.type !== "answer") return null;
27977
27977
  const v = At[P] ?? "";
27978
- return zt === P && !xt ? /* @__PURE__ */ D.jsx(
27978
+ return Rt === P && !xt ? /* @__PURE__ */ D.jsx(
27979
27979
  P2,
27980
27980
  {
27981
27981
  content: v,
@@ -27999,7 +27999,7 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
27999
27999
  /* @__PURE__ */ D.jsx("span", { className: "message-error__icon", children: "⚠️" }),
28000
28000
  /* @__PURE__ */ D.jsx("span", { children: S.errorMessage })
28001
28001
  ] }),
28002
- Ct && !S.errorMessage && /* @__PURE__ */ D.jsxs("div", { className: "message-toolbar", children: [
28002
+ _t && !S.errorMessage && /* @__PURE__ */ D.jsxs("div", { className: "message-toolbar", children: [
28003
28003
  /* @__PURE__ */ D.jsx("div", { className: "tooltip-enhanced", "data-tooltip": et ? "已复制" : "复制回答", children: et ? /* @__PURE__ */ D.jsx(uA, { className: "message-toolbar__check" }) : /* @__PURE__ */ D.jsx(cA, { onClick: () => Tt(S) }) }),
28004
28004
  /* @__PURE__ */ D.jsx("div", { className: "tooltip-enhanced", "data-tooltip": "重新回答", children: /* @__PURE__ */ D.jsx(iA, { onClick: R }) })
28005
28005
  ] })
@@ -28045,23 +28045,23 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28045
28045
  isAtBottom: gt,
28046
28046
  onScrollToBottom: X
28047
28047
  }) => {
28048
- const [ot, Tt] = Bt(!1), [Ot, ct] = Bt(""), [yt, At] = Bt(""), [zt, xt] = Bt("idle"), [pt, Ct] = Bt(""), Et = Mt(null), Ht = Mt(""), j = Mt(""), de = Mt(null), Vt = Mt(null), [wt, ft] = Bt(!1), [Gt, K] = Bt(!1), [vt, rt] = Bt(!1), nt = Mt(null), it = Mt(null), P = Mt(!1), v = Mt(!1), z = Mt([]), N = Mt(!1);
28048
+ const [ot, Tt] = Bt(!1), [Ct, ct] = Bt(""), [yt, At] = Bt(""), [Rt, xt] = Bt("idle"), [pt, _t] = Bt(""), Et = Ot(null), Ht = Ot(""), j = Ot(""), de = Ot(null), Vt = Ot(null), [wt, ft] = Bt(!1), [Gt, $] = Bt(!1), [vt, rt] = Bt(!1), nt = Ot(null), it = Ot(null), P = Ot(!1), v = Ot(!1), z = Ot([]), N = Ot(!1);
28049
28049
  Se(() => {
28050
- Ht.current = Ot;
28051
- }, [Ot]), Se(() => {
28050
+ Ht.current = Ct;
28051
+ }, [Ct]), Se(() => {
28052
28052
  j.current = yt;
28053
28053
  }, [yt]), Se(() => {
28054
- const _t = de.current;
28055
- _t && (_t.scrollTop = _t.scrollHeight);
28056
- }, [Ot, yt]), Se(() => {
28057
- var _t, jt;
28058
- if (zt === "recording" && v.current) {
28059
- v.current = !1, (_t = Et.current) == null || _t.stop();
28054
+ const zt = de.current;
28055
+ zt && (zt.scrollTop = zt.scrollHeight);
28056
+ }, [Ct, yt]), Se(() => {
28057
+ var zt, jt;
28058
+ if (Rt === "recording" && v.current) {
28059
+ v.current = !1, (zt = Et.current) == null || zt.stop();
28060
28060
  return;
28061
28061
  }
28062
- zt === "idle" && ot && (Ct((Ht.current + j.current).trim()), (jt = Vt.current) == null || jt.focus());
28063
- }, [zt, ot]), Se(() => {
28064
- const _t = new j0({}, {
28062
+ Rt === "idle" && ot && (_t((Ht.current + j.current).trim()), (jt = Vt.current) == null || jt.focus());
28063
+ }, [Rt, ot]), Se(() => {
28064
+ const zt = new j0({}, {
28065
28065
  onStatusChange: xt,
28066
28066
  onInterim: (jt) => {
28067
28067
  At(jt), j.current = jt;
@@ -28076,25 +28076,25 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28076
28076
  Tt(!1);
28077
28077
  }
28078
28078
  });
28079
- return Et.current = _t, () => {
28080
- _t.destroy(), Et.current = null;
28079
+ return Et.current = zt, () => {
28080
+ zt.destroy(), Et.current = null;
28081
28081
  };
28082
28082
  }, []);
28083
- const W = j0.isSupported() && !S.trim() && !et, F = vt ? "正在请求麦克风权限…" : wt ? "继续按住,开始语音输入…" : W ? "给AI助手发送消息...(按住可语音)" : "给AI助手发送消息...", U = () => {
28084
- z.current.forEach(([_t, jt]) => window.removeEventListener(_t, jt)), z.current = [];
28083
+ const W = j0.isSupported() && !S.trim() && !et, F = vt ? "正在请求麦克风权限…" : Gt && W ? "发消息(按住可语音输入)" : "发消息", U = () => {
28084
+ z.current.forEach(([zt, jt]) => window.removeEventListener(zt, jt)), z.current = [];
28085
28085
  }, tt = () => {
28086
- nt.current !== null && (clearTimeout(nt.current), nt.current = null), ft(!1), it.current = null, U();
28086
+ nt.current !== null && (clearTimeout(nt.current), nt.current = null), it.current = null, U();
28087
28087
  }, dt = () => {
28088
28088
  var jt, rl;
28089
- const _t = (jt = Et.current) == null ? void 0 : jt.getStatus();
28090
- _t === "recording" ? (rl = Et.current) == null || rl.stop() : (_t === "connecting" || _t === "stopping") && (v.current = !0);
28089
+ const zt = (jt = Et.current) == null ? void 0 : jt.getStatus();
28090
+ zt === "recording" ? (rl = Et.current) == null || rl.stop() : (zt === "connecting" || zt === "stopping") && (v.current = !0);
28091
28091
  }, ht = () => {
28092
- const _t = P.current;
28093
- P.current = !1, tt(), _t && dt();
28094
- }, ie = (_t) => {
28095
- if (!W || _t.pointerType === "mouse" && _t.button !== 0) return;
28096
- const jt = _t.currentTarget;
28097
- it.current = { x: _t.clientX, y: _t.clientY }, P.current = !1, v.current = !1, ft(!0);
28092
+ const zt = P.current;
28093
+ P.current = !1, tt(), zt && dt();
28094
+ }, ie = (zt) => {
28095
+ if (!W || zt.pointerType === "mouse" && zt.button !== 0) return;
28096
+ const jt = zt.currentTarget;
28097
+ it.current = { x: zt.clientX, y: zt.clientY }, P.current = !1, v.current = !1;
28098
28098
  const rl = (se) => {
28099
28099
  if (!it.current) return;
28100
28100
  if (P.current) {
@@ -28108,7 +28108,7 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28108
28108
  };
28109
28109
  nt.current !== null && clearTimeout(nt.current), nt.current = setTimeout(() => {
28110
28110
  var se, Sn, Nl, Ha;
28111
- nt.current = null, P.current = !0, ft(!1), (se = jt == null ? void 0 : jt.blur) == null || se.call(jt), (Ha = (Nl = (Sn = window.getSelection) == null ? void 0 : Sn.call(window)) == null ? void 0 : Nl.removeAllRanges) == null || Ha.call(Nl), Sl(!0);
28111
+ nt.current = null, P.current = !0, (se = jt == null ? void 0 : jt.blur) == null || se.call(jt), (Ha = (Nl = (Sn = window.getSelection) == null ? void 0 : Sn.call(window)) == null ? void 0 : Nl.removeAllRanges) == null || Ha.call(Nl), Sl(!0);
28112
28112
  }, qA);
28113
28113
  const Yu = [
28114
28114
  ["pointerup", () => ht()],
@@ -28117,7 +28117,7 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28117
28117
  ["blur", Hl]
28118
28118
  ];
28119
28119
  Yu.forEach(([se, Sn]) => window.addEventListener(se, Sn)), z.current = Yu;
28120
- }, Sl = async (_t = !1) => {
28120
+ }, Sl = async (zt = !1) => {
28121
28121
  if (!Et.current || N.current) return;
28122
28122
  N.current = !0, rt(!0);
28123
28123
  const { granted: jt, prompted: rl } = await j0.ensurePermission();
@@ -28125,35 +28125,35 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28125
28125
  Zf("麦克风不可用,请允许浏览器使用麦克风后重试");
28126
28126
  return;
28127
28127
  }
28128
- if (_t && !P.current) {
28128
+ if (zt && !P.current) {
28129
28129
  rl && Zf("麦克风已开启,请重新按住输入框开始说话", "info");
28130
28130
  return;
28131
28131
  }
28132
- K(_t), ct(""), At(""), Ct(""), Ht.current = "", j.current = "", Tt(!0);
28132
+ ft(zt), ct(""), At(""), _t(""), Ht.current = "", j.current = "", Tt(!0);
28133
28133
  try {
28134
28134
  await Et.current.start();
28135
28135
  } catch {
28136
28136
  Tt(!1);
28137
28137
  }
28138
28138
  }, ze = () => {
28139
- var _t;
28140
- (_t = Et.current) == null || _t.cancel(), Tt(!1), K(!1), v.current = !1, ct(""), At(""), Ct("");
28139
+ var zt;
28140
+ (zt = Et.current) == null || zt.cancel(), Tt(!1), ft(!1), v.current = !1, ct(""), At(""), _t("");
28141
28141
  };
28142
28142
  Se(() => () => tt(), []);
28143
28143
  const xl = () => {
28144
- var _t;
28145
- ul && ((_t = Et.current) == null || _t.stop());
28144
+ var zt;
28145
+ ul && ((zt = Et.current) == null || zt.stop());
28146
28146
  }, Oe = () => {
28147
28147
  var jt;
28148
- const _t = (_n ? pt : Ht.current + j.current).trim();
28149
- _t && ((jt = Et.current) == null || jt.stop(), Tt(!1), K(!1), v.current = !1, I(_t), setTimeout(() => st(), 0));
28150
- }, oe = zt === "connecting", at = zt === "recording" || zt === "stopping", ul = zt === "connecting" || zt === "recording" || zt === "stopping", _n = ot && !ul, fl = _n ? !!pt.trim() : !!(Ot.trim() || yt.trim());
28148
+ const zt = (_n ? pt : Ht.current + j.current).trim();
28149
+ zt && ((jt = Et.current) == null || jt.stop(), Tt(!1), ft(!1), v.current = !1, I(zt), setTimeout(() => st(), 0));
28150
+ }, oe = Rt === "connecting", at = Rt === "recording" || Rt === "stopping", ul = Rt === "connecting" || Rt === "recording" || Rt === "stopping", _n = ot && !ul, fl = _n ? !!pt.trim() : !!(Ct.trim() || yt.trim());
28151
28151
  return ot ? /* @__PURE__ */ D.jsxs("div", { className: "input-container voice-mode", children: [
28152
28152
  /* @__PURE__ */ D.jsx("div", { className: `voice-visual${at ? " recording" : ""}` }),
28153
28153
  ul ? /* @__PURE__ */ D.jsxs("div", { className: "voice-text", ref: de, onClick: xl, children: [
28154
- Ot && /* @__PURE__ */ D.jsx("span", { className: "final", children: Ot }),
28154
+ Ct && /* @__PURE__ */ D.jsx("span", { className: "final", children: Ct }),
28155
28155
  yt && /* @__PURE__ */ D.jsx("span", { className: "interim", children: yt }),
28156
- !Ot && !yt && /* @__PURE__ */ D.jsx("span", { className: "placeholder", children: oe ? "启动中…" : Gt ? "正在聆听…松手结束" : "正在聆听…点击结束" })
28156
+ !Ct && !yt && /* @__PURE__ */ D.jsx("span", { className: "placeholder", children: oe ? "启动中…" : wt ? "正在聆听…松手结束" : "正在聆听…点击结束" })
28157
28157
  ] }) : /* @__PURE__ */ D.jsx(
28158
28158
  "input",
28159
28159
  {
@@ -28162,9 +28162,9 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28162
28162
  className: "voice-editor",
28163
28163
  value: pt,
28164
28164
  placeholder: "识别结果,可点击直接修改…",
28165
- onChange: (_t) => Ct(_t.target.value),
28166
- onKeyDown: (_t) => _t.key === "Escape" && ze(),
28167
- onKeyUp: (_t) => _t.key === "Enter" && fl && Oe()
28165
+ onChange: (zt) => _t(zt.target.value),
28166
+ onKeyDown: (zt) => zt.key === "Escape" && ze(),
28167
+ onKeyUp: (zt) => zt.key === "Enter" && fl && Oe()
28168
28168
  }
28169
28169
  ),
28170
28170
  /* @__PURE__ */ D.jsx(
@@ -28186,16 +28186,18 @@ const P2 = ({ content: S, showCursor: I }) => /* @__PURE__ */ D.jsx(
28186
28186
  }
28187
28187
  ),
28188
28188
  lt && !gt && /* @__PURE__ */ D.jsx("div", { className: "moveTB", children: /* @__PURE__ */ D.jsx(qu, { onClick: X, icon: "ep:bottom" }) })
28189
- ] }) : /* @__PURE__ */ D.jsxs("div", { className: `input-container${wt ? " holding" : ""}`, children: [
28189
+ ] }) : /* @__PURE__ */ D.jsxs("div", { className: "input-container", children: [
28190
28190
  /* @__PURE__ */ D.jsx(
28191
28191
  "input",
28192
28192
  {
28193
28193
  value: S,
28194
28194
  type: "text",
28195
28195
  placeholder: F,
28196
- onKeyUp: (_t) => _t.key === "Enter" && S.trim() && st(),
28197
- onChange: (_t) => I(_t.target.value),
28196
+ onKeyUp: (zt) => zt.key === "Enter" && S.trim() && st(),
28197
+ onChange: (zt) => I(zt.target.value),
28198
28198
  onPointerDown: ie,
28199
+ onPointerEnter: (zt) => zt.pointerType === "mouse" && $(!0),
28200
+ onPointerLeave: (zt) => zt.pointerType === "mouse" && $(!1),
28199
28201
  disabled: et
28200
28202
  }
28201
28203
  ),
@@ -28231,22 +28233,22 @@ function XA(S) {
28231
28233
  S.current && (S.current.scrollTop = S.current.scrollHeight);
28232
28234
  });
28233
28235
  }, [S]), gt = Te((ot) => {
28234
- const Tt = ot.closest(".chat-wrap") || ot, Ot = ot.scrollHeight, ct = ot.clientHeight;
28235
- if (Ot <= ct) {
28236
+ const Tt = ot.closest(".chat-wrap") || ot, Ct = ot.scrollHeight, ct = ot.clientHeight;
28237
+ if (Ct <= ct) {
28236
28238
  Tt.style.setProperty("--ai-thumb-height", "0px"), Tt.style.setProperty("--ai-thumb-top", "0px");
28237
28239
  return;
28238
28240
  }
28239
- const yt = Math.max(ct * ct / Ot, 32), At = ct - yt, zt = ot.scrollTop / (Ot - ct);
28240
- Tt.style.setProperty("--ai-thumb-height", `${yt}px`), Tt.style.setProperty("--ai-thumb-top", `${zt * At}px`);
28241
+ const yt = Math.max(ct * ct / Ct, 32), At = ct - yt, Rt = ot.scrollTop / (Ct - ct);
28242
+ Tt.style.setProperty("--ai-thumb-height", `${yt}px`), Tt.style.setProperty("--ai-thumb-top", `${Rt * At}px`);
28241
28243
  }, []), X = Te(() => {
28242
28244
  if (!S.current) return;
28243
- const ot = S.current, Tt = ot.scrollTop + ot.clientHeight >= ot.scrollHeight - 1, Ot = ot.scrollHeight > ot.clientHeight;
28244
- st(Tt), et(Ot), gt(ot);
28245
+ const ot = S.current, Tt = ot.scrollTop + ot.clientHeight >= ot.scrollHeight - 1, Ct = ot.scrollHeight > ot.clientHeight;
28246
+ st(Tt), et(Ct), gt(ot);
28245
28247
  }, [S, gt]);
28246
28248
  return { isAtBottom: I, hasScroll: R, scrollToBottom: lt, checkScrollStatus: X };
28247
28249
  }
28248
28250
  function VA(S) {
28249
- const I = Mt([]), st = Mt(0), R = Te(
28251
+ const I = Ot([]), st = Ot(0), R = Te(
28250
28252
  (lt) => {
28251
28253
  I.current.push(lt), st.current || (st.current = requestAnimationFrame(() => {
28252
28254
  st.current = 0;
@@ -28283,7 +28285,7 @@ function LA({
28283
28285
  STATUS: lt,
28284
28286
  cfg: gt
28285
28287
  }) {
28286
- const X = Mt(/* @__PURE__ */ new Map()), ot = Mt(/* @__PURE__ */ new Map()), Tt = Mt(/* @__PURE__ */ new Map()), Ot = Mt(/* @__PURE__ */ new Map()), ct = Mt(!1), yt = Mt(/* @__PURE__ */ new Map()), At = Mt(/* @__PURE__ */ new Map()), zt = Mt(!1), xt = Te(
28288
+ const X = Ot(/* @__PURE__ */ new Map()), ot = Ot(/* @__PURE__ */ new Map()), Tt = Ot(/* @__PURE__ */ new Map()), Ct = Ot(/* @__PURE__ */ new Map()), ct = Ot(!1), yt = Ot(/* @__PURE__ */ new Map()), At = Ot(/* @__PURE__ */ new Map()), Rt = Ot(!1), xt = Te(
28287
28289
  (Et) => {
28288
28290
  const Ht = X.current.get(Et) || [];
28289
28291
  R((j) => {
@@ -28301,14 +28303,14 @@ function LA({
28301
28303
  let Vt = 0, wt = !1;
28302
28304
  Ht.forEach((ft) => {
28303
28305
  if ((ft.type === "thinking" || ft.type === "step") && ft.duration == null) {
28304
- const K = (ft.id != null ? de == null ? void 0 : de.get(ft.id) : void 0) ?? j, vt = K ? Math.round((Date.now() - K) / 1e3 * 10) / 10 : 0;
28306
+ const $ = (ft.id != null ? de == null ? void 0 : de.get(ft.id) : void 0) ?? j, vt = $ ? Math.round((Date.now() - $) / 1e3 * 10) / 10 : 0;
28305
28307
  ft.duration = vt, ft.type === "thinking" && (Vt += vt), wt = !0;
28306
28308
  }
28307
28309
  }), wt && (X.current.set(Et, Ht), R((ft) => {
28308
28310
  const Gt = [...ft];
28309
28311
  return Gt[Et] && (Gt[Et] = {
28310
28312
  ...Gt[Et],
28311
- segments: Ht.map((K) => ({ ...K })),
28313
+ segments: Ht.map(($) => ({ ...$ })),
28312
28314
  thinkingDuration: (Gt[Et].thinkingDuration || 0) + Vt
28313
28315
  }), Gt;
28314
28316
  }));
@@ -28317,7 +28319,7 @@ function LA({
28317
28319
  );
28318
28320
  return { doStreamRequest: Te(
28319
28321
  async (Et, Ht, j, de, Vt = !1) => {
28320
- zt.current = !1, ct.current = !1, X.current.set(j, []), yt.current.set(j, /* @__PURE__ */ new Map()), At.current.set(j, /* @__PURE__ */ new Map()), I(!0);
28322
+ Rt.current = !1, ct.current = !1, X.current.set(j, []), yt.current.set(j, /* @__PURE__ */ new Map()), At.current.set(j, /* @__PURE__ */ new Map()), I(!0);
28321
28323
  try {
28322
28324
  const wt = gt.baseUrl.replace(/\/+$/, "") + "/" + Et.replace(/^\/+/, "");
28323
28325
  await yA(wt, {
@@ -28338,7 +28340,7 @@ function LA({
28338
28340
  );
28339
28341
  },
28340
28342
  onmessage(ft) {
28341
- var Gt, K, vt, rt, nt;
28343
+ var Gt, $, vt, rt, nt;
28342
28344
  try {
28343
28345
  let it = ft.data || "";
28344
28346
  for (; it.startsWith("data:"); )
@@ -28369,7 +28371,7 @@ function LA({
28369
28371
  }
28370
28372
  case "agent_thought": {
28371
28373
  const v = P.thought || P.thinking || "", z = X.current.get(j) || [], N = z[z.length - 1];
28372
- N && N.type === "agent_thought" && N.duration == null ? N.content += v : (ot.current.set(j, "agent_thought"), z.push({ type: "agent_thought", content: v }), Ot.current.set(j, Date.now())), X.current.set(j, z), R((W) => {
28374
+ N && N.type === "agent_thought" && N.duration == null ? N.content += v : (ot.current.set(j, "agent_thought"), z.push({ type: "agent_thought", content: v }), Ct.current.set(j, Date.now())), X.current.set(j, z), R((W) => {
28373
28375
  const F = [...W];
28374
28376
  return F[j] && (F[j] = {
28375
28377
  ...F[j],
@@ -28394,7 +28396,7 @@ function LA({
28394
28396
  break;
28395
28397
  }
28396
28398
  case "agent_thought_end": {
28397
- const v = Ot.current.get(j), z = v ? Math.round((Date.now() - v) / 1e3 * 10) / 10 : 0, N = X.current.get(j) || [], W = N[N.length - 1];
28399
+ const v = Ct.current.get(j), z = v ? Math.round((Date.now() - v) / 1e3 * 10) / 10 : 0, N = X.current.get(j) || [], W = N[N.length - 1];
28398
28400
  W && W.type === "agent_thought" && (W.duration = z), X.current.set(j, N), R((F) => {
28399
28401
  const U = [...F];
28400
28402
  return U[j] && (U[j] = {
@@ -28448,7 +28450,7 @@ function LA({
28448
28450
  const N = P.id != null ? String(P.id) : null, W = yt.current.get(j);
28449
28451
  let F = N != null ? W == null ? void 0 : W.get(N) : void 0;
28450
28452
  if (F == null || !z[F]) {
28451
- const U = ((K = P.message_config) == null ? void 0 : K.reasoning) === !0 || P.reasoning === !0;
28453
+ const U = (($ = P.message_config) == null ? void 0 : $.reasoning) === !0 || P.reasoning === !0;
28452
28454
  if (z.push({
28453
28455
  type: U ? "thinking" : "step",
28454
28456
  title: P.message_title || "",
@@ -28513,7 +28515,7 @@ function LA({
28513
28515
  ...tt[j],
28514
28516
  segments: N.map((dt) => ({ ...dt })),
28515
28517
  content: F,
28516
- status: zt.current ? lt.STOP : lt.ANSWERING
28518
+ status: Rt.current ? lt.STOP : lt.ANSWERING
28517
28519
  }), tt;
28518
28520
  });
28519
28521
  break;
@@ -28523,7 +28525,7 @@ function LA({
28523
28525
  const z = [...v];
28524
28526
  return z[j] && (z[j] = {
28525
28527
  ...z[j],
28526
- status: zt.current ? lt.STOP : lt.COMPLETED
28528
+ status: Rt.current ? lt.STOP : lt.COMPLETED
28527
28529
  }), z;
28528
28530
  }), I(!1);
28529
28531
  break;
@@ -28573,30 +28575,30 @@ function LA({
28573
28575
  },
28574
28576
  onclose() {
28575
28577
  et(), pt(j), et();
28576
- const Gt = (X.current.get(j) || []).filter((K) => K.type === "answer").map((K) => K.content).join("");
28577
- S((K) => {
28578
- const vt = [...K];
28578
+ const Gt = (X.current.get(j) || []).filter(($) => $.type === "answer").map(($) => $.content).join("");
28579
+ S(($) => {
28580
+ const vt = [...$];
28579
28581
  return vt[j] && vt[j].status !== lt.ERROR && (vt[j] = {
28580
28582
  ...vt[j],
28581
- content: zt.current && !Gt ? "已停止回答" : Gt,
28582
- status: zt.current ? lt.STOP : lt.COMPLETED
28583
+ content: Rt.current && !Gt ? "已停止回答" : Gt,
28584
+ status: Rt.current ? lt.STOP : lt.COMPLETED
28583
28585
  }), vt;
28584
28586
  }), I(!1);
28585
28587
  },
28586
28588
  onerror(ft) {
28587
28589
  console.error("[ai-assist-sdk] ❌ 连接错误:", ft), et(), S((Gt) => {
28588
- const K = [...Gt];
28589
- return K[j] && (K[j] = {
28590
- ...K[j],
28590
+ const $ = [...Gt];
28591
+ return $[j] && ($[j] = {
28592
+ ...$[j],
28591
28593
  content: `
28592
28594
  ⚠️ 请求异常,已终止`,
28593
28595
  status: lt.ERROR
28594
- }), K;
28596
+ }), $;
28595
28597
  }), I(!1);
28596
28598
  }
28597
28599
  });
28598
28600
  } catch (wt) {
28599
- console.error("[ai-assist-sdk] doStreamRequest error:", wt), zt.current || (et(), S((ft) => {
28601
+ console.error("[ai-assist-sdk] doStreamRequest error:", wt), Rt.current || (et(), S((ft) => {
28600
28602
  const Gt = [...ft];
28601
28603
  return Gt[j] && (Gt[j] = {
28602
28604
  ...Gt[j],
@@ -28617,7 +28619,7 @@ function LA({
28617
28619
  lt,
28618
28620
  gt
28619
28621
  ]
28620
- ), issTopRef: zt };
28622
+ ), issTopRef: Rt };
28621
28623
  }
28622
28624
  function eT(S) {
28623
28625
  var I;
@@ -28652,18 +28654,18 @@ function ZA({
28652
28654
  setLastUserMessage: X,
28653
28655
  conversationIdRef: ot,
28654
28656
  doStreamRequest: Tt,
28655
- issTopRef: Ot,
28657
+ issTopRef: Ct,
28656
28658
  scrollToBottom: ct,
28657
28659
  STATUS: yt,
28658
28660
  cfg: At,
28659
- onTitleGenerated: zt
28661
+ onTitleGenerated: Rt
28660
28662
  }) {
28661
- const xt = At.apis, pt = Mt({
28663
+ const xt = At.apis, pt = Ot({
28662
28664
  first: new AbortController(),
28663
28665
  again: new AbortController()
28664
- }), Ct = Mt(S);
28665
- Ct.current = S;
28666
- const Et = Mt(!1), Ht = async (K, vt) => {
28666
+ }), _t = Ot(S);
28667
+ _t.current = S;
28668
+ const Et = Ot(!1), Ht = async ($, vt) => {
28667
28669
  var nt;
28668
28670
  if (!At.titleGenerateApp || !xt.updateConversationApi || Et.current) return;
28669
28671
  let rt = ot.current;
@@ -28679,31 +28681,31 @@ function ZA({
28679
28681
  try {
28680
28682
  const it = await LE(xt, At.titleGenerateApp);
28681
28683
  if (!it) return;
28682
- const P = vt.length > 500 ? vt.slice(0, 500) : vt, v = `用户提问:${K}
28684
+ const P = vt.length > 500 ? vt.slice(0, 500) : vt, v = `用户提问:${$}
28683
28685
  AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28684
28686
  app: At.titleGenerateApp,
28685
28687
  data: { Query: v, AppConversationID: it }
28686
28688
  }), W = eT(N.data);
28687
- W && (await QE(xt, rt, W), Et.current = !0, zt == null || zt(W));
28689
+ W && (await QE(xt, rt, W), Et.current = !0, Rt == null || Rt(W));
28688
28690
  } catch (it) {
28689
28691
  console.error("[ai-assist-sdk] 生成对话标题失败:", it);
28690
28692
  }
28691
28693
  }, j = async () => {
28692
28694
  var P;
28693
- const K = st.trim();
28694
- if (!K || et) return;
28695
+ const $ = st.trim();
28696
+ if (!$ || et) return;
28695
28697
  if (!ot.current && (await ft(), !ot.current)) {
28696
28698
  Zf("创建会话失败,请重试");
28697
28699
  return;
28698
28700
  }
28699
28701
  const vt = S.length === 0;
28700
28702
  try {
28701
- (P = At.onMessageSend) == null || P.call(At, { text: K, isFirstMessage: vt, conversationId: ot.current });
28703
+ (P = At.onMessageSend) == null || P.call(At, { text: $, isFirstMessage: vt, conversationId: ot.current });
28702
28704
  } catch {
28703
28705
  }
28704
28706
  const rt = [
28705
28707
  ...S,
28706
- { type: "user", content: K },
28708
+ { type: "user", content: $ },
28707
28709
  // streamed:标记该条由实时流产生,前端按序逐字揭示(后端批量转发,终态可能早于渲染)
28708
28710
  { type: "ai", content: "", status: yt.THINKING, streamed: !0 }
28709
28711
  ];
@@ -28713,7 +28715,7 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28713
28715
  if (console.log("[ai-assist-sdk] ✅ 使用流式 SSE:", xt.chatQueryStreamApi), await Tt(
28714
28716
  xt.chatQueryStreamApi,
28715
28717
  {
28716
- Query: K,
28718
+ Query: $,
28717
28719
  AppConversationID: nt,
28718
28720
  ResponseMode: "streaming"
28719
28721
  },
@@ -28721,7 +28723,7 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28721
28723
  pt.current.first.signal
28722
28724
  ), vt && !Et.current) {
28723
28725
  let v = "";
28724
- I((z) => (z[it] && z[it].status !== yt.ERROR && (v = z[it].content), z)), v && Ht(K, v);
28726
+ I((z) => (z[it] && z[it].status !== yt.ERROR && (v = z[it].content), z)), v && Ht($, v);
28725
28727
  }
28726
28728
  return;
28727
28729
  }
@@ -28729,12 +28731,12 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28729
28731
  try {
28730
28732
  const z = await X2().post(xt.chatQueryApi, {
28731
28733
  app: At.app ?? 1,
28732
- data: { Query: K, AppConversationID: nt }
28734
+ data: { Query: $, AppConversationID: nt }
28733
28735
  }), N = eT(z.data);
28734
28736
  I((W) => {
28735
28737
  const F = [...W];
28736
28738
  return F[it] = { type: "ai", content: N, status: yt.COMPLETED }, F;
28737
- }), vt && !Et.current && Ht(K, N);
28739
+ }), vt && !Et.current && Ht($, N);
28738
28740
  } catch (v) {
28739
28741
  I((z) => {
28740
28742
  const N = [...z];
@@ -28751,7 +28753,7 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28751
28753
  const nt = [...rt];
28752
28754
  return nt.length > 0 && nt[nt.length - 1].type === "ai" && nt.pop(), nt.push({ type: "ai", content: "", status: yt.RETHINKING, streamed: !0 }), nt;
28753
28755
  }), ct();
28754
- const K = S.length - 1, vt = QA(xt);
28756
+ const $ = S.length - 1, vt = QA(xt);
28755
28757
  await Tt(
28756
28758
  vt,
28757
28759
  {
@@ -28759,21 +28761,21 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28759
28761
  AppConversationID: ot.current,
28760
28762
  ResponseMode: "streaming"
28761
28763
  },
28762
- K,
28764
+ $,
28763
28765
  pt.current.again.signal,
28764
28766
  !0
28765
28767
  );
28766
28768
  }, Vt = async () => {
28767
28769
  if (!et) return;
28768
- const K = S.length - 1 - 1;
28770
+ const $ = S.length - 1 - 1;
28769
28771
  if (gt && xt.stopMessageApi)
28770
28772
  try {
28771
28773
  await VE(xt, gt);
28772
28774
  } catch (vt) {
28773
28775
  I((rt) => {
28774
28776
  const nt = [...rt];
28775
- return nt[K] && (nt[K] = {
28776
- ...nt[K],
28777
+ return nt[$] && (nt[$] = {
28778
+ ...nt[$],
28777
28779
  content: (vt == null ? void 0 : vt.message) || "系统繁忙,请稍后再试",
28778
28780
  status: yt.ERROR
28779
28781
  }), nt;
@@ -28782,17 +28784,17 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28782
28784
  }
28783
28785
  I((vt) => {
28784
28786
  const rt = [...vt];
28785
- return rt[K] && (rt[K] = {
28786
- ...rt[K],
28787
- content: rt[K].content || "已停止回答",
28787
+ return rt[$] && (rt[$] = {
28788
+ ...rt[$],
28789
+ content: rt[$].content || "已停止回答",
28788
28790
  status: yt.STOP
28789
28791
  }), rt;
28790
- }), lt(!1), pt.current.first.abort(), pt.current.first = new AbortController(), pt.current.again.abort(), pt.current.again = new AbortController(), Ot.current = !0;
28791
- }, wt = async (K) => {
28792
+ }), lt(!1), pt.current.first.abort(), pt.current.first = new AbortController(), pt.current.again.abort(), pt.current.again = new AbortController(), Ct.current = !0;
28793
+ }, wt = async ($) => {
28792
28794
  var vt;
28793
- ot.current = K, Et.current = !0;
28795
+ ot.current = $, Et.current = !0;
28794
28796
  try {
28795
- const rt = await GE(xt, K), nt = [], it = XE(rt == null ? void 0 : rt.messages);
28797
+ const rt = await GE(xt, $), nt = [], it = XE(rt == null ? void 0 : rt.messages);
28796
28798
  for (const P of it)
28797
28799
  P.query && nt.push({ type: "user", content: P.query }), (vt = P.answerInfo) != null && vt.answer && nt.push({ type: "ai", content: P.answerInfo.answer, status: yt.COMPLETED });
28798
28800
  I(nt), ct();
@@ -28800,11 +28802,11 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28800
28802
  Zf((rt == null ? void 0 : rt.message) || "加载历史会话失败");
28801
28803
  }
28802
28804
  }, ft = async () => {
28803
- var K;
28805
+ var $;
28804
28806
  Et.current = !1;
28805
28807
  try {
28806
28808
  const vt = await G2(xt);
28807
- (K = vt == null ? void 0 : vt.conversation) != null && K.appConversationID && (ot.current = vt.conversation.appConversationID);
28809
+ ($ = vt == null ? void 0 : vt.conversation) != null && $.appConversationID && (ot.current = vt.conversation.appConversationID);
28808
28810
  } catch (vt) {
28809
28811
  Zf((vt == null ? void 0 : vt.message) || "创建会话失败");
28810
28812
  }
@@ -28815,12 +28817,12 @@ AI回答:${P}`, N = await X2().post(xt.chatQueryApi, {
28815
28817
  }
28816
28818
  const hT = cT(
28817
28819
  ({ defaultSayhello: S, defaultRecommend: I, onTitleGenerated: st }, R) => {
28818
- const et = B0(), [lt, gt] = Bt([]), [X, ot] = Bt(""), [Tt, Ot] = Bt(!1), [ct, yt] = Bt(""), [At, zt] = Bt({ text1: "", text2: "" }), [xt, pt] = Bt([]), [Ct, Et] = Bt(0), Ht = Mt(null), j = Mt(""), { isAtBottom: de, hasScroll: Vt, scrollToBottom: wt, checkScrollStatus: ft } = XA(Ht), { batchSetMessages: Gt, flushBatch: K } = VA(gt), { doStreamRequest: vt, issTopRef: rt } = LA({
28820
+ const et = B0(), [lt, gt] = Bt([]), [X, ot] = Bt(""), [Tt, Ct] = Bt(!1), [ct, yt] = Bt(""), [At, Rt] = Bt({ text1: "", text2: "" }), [xt, pt] = Bt([]), [_t, Et] = Bt(0), Ht = Ot(null), j = Ot(""), { isAtBottom: de, hasScroll: Vt, scrollToBottom: wt, checkScrollStatus: ft } = XA(Ht), { batchSetMessages: Gt, flushBatch: $ } = VA(gt), { doStreamRequest: vt, issTopRef: rt } = LA({
28819
28821
  setMessages: gt,
28820
- setIsGenerating: Ot,
28822
+ setIsGenerating: Ct,
28821
28823
  setLastUserMessage: yt,
28822
28824
  batchSetMessages: Gt,
28823
- flushBatch: K,
28825
+ flushBatch: $,
28824
28826
  STATUS: Ud,
28825
28827
  cfg: et
28826
28828
  }), { sendMessage: nt, regenerateResponse: it, toggleStop: P, goHistoryMessage: v, resetConversation: z } = ZA({
@@ -28829,7 +28831,7 @@ const hT = cT(
28829
28831
  userInput: X,
28830
28832
  setUserInput: ot,
28831
28833
  isGenerating: Tt,
28832
- setIsGenerating: Ot,
28834
+ setIsGenerating: Ct,
28833
28835
  lastUserMessage: ct,
28834
28836
  setLastUserMessage: yt,
28835
28837
  conversationIdRef: j,
@@ -28846,7 +28848,7 @@ const hT = cT(
28846
28848
  goHistoryMessage: v,
28847
28849
  createNewConversation: N
28848
28850
  })), Se(() => {
28849
- S && zt({ text1: S.text1, text2: S.text2 }), I && pt(ZE(I));
28851
+ S && Rt({ text1: S.text1, text2: S.text2 }), I && pt(ZE(I));
28850
28852
  }, [S, I]), Se(() => {
28851
28853
  const oe = Ht.current;
28852
28854
  if (!oe) return;
@@ -28855,7 +28857,7 @@ const hT = cT(
28855
28857
  }, [ft]), Se(() => {
28856
28858
  ft();
28857
28859
  }, [lt, ft]);
28858
- const W = Mt(null), F = Mt(null), U = (oe) => {
28860
+ const W = Ot(null), F = Ot(null), U = (oe) => {
28859
28861
  var ul;
28860
28862
  const at = (ul = Ht.current) == null ? void 0 : ul.closest(".chat-wrap");
28861
28863
  return parseFloat((at == null ? void 0 : at.style.getPropertyValue(oe)) ?? "") || 0;
@@ -28870,11 +28872,11 @@ const hT = cT(
28870
28872
  const at = Ht.current, ul = F.current;
28871
28873
  if (!at || !ul) return;
28872
28874
  oe.preventDefault();
28873
- const _n = tt(oe) - ul.startY, fl = at.clientHeight, _t = at.scrollHeight, jt = U("--ai-thumb-height"), rl = fl - jt, Hl = Math.min(
28875
+ const _n = tt(oe) - ul.startY, fl = at.clientHeight, zt = at.scrollHeight, jt = U("--ai-thumb-height"), rl = fl - jt, Hl = Math.min(
28874
28876
  Math.max(ul.startThumbTop + _n, 0),
28875
28877
  rl
28876
28878
  );
28877
- at.scrollTop = Hl / rl * (_t - fl);
28879
+ at.scrollTop = Hl / rl * (zt - fl);
28878
28880
  }, ie = () => {
28879
28881
  F.current = null, window.removeEventListener("mousemove", ht), window.removeEventListener("mouseup", ie), window.removeEventListener("touchmove", ht), window.removeEventListener("touchend", ie);
28880
28882
  };
@@ -28883,9 +28885,9 @@ const hT = cT(
28883
28885
  const at = Ht.current, ul = W.current;
28884
28886
  if (!at || !ul) return;
28885
28887
  oe.preventDefault();
28886
- const _n = ul.getBoundingClientRect(), _t = (tt(oe) - _n.top) / _n.height;
28887
- at.scrollTop = _t * (at.scrollHeight - at.clientHeight);
28888
- }, ze = () => Et((oe) => oe + 1), xl = (oe) => ot(oe), Oe = xt[Ct % (xt.length || 1)];
28888
+ const _n = ul.getBoundingClientRect(), zt = (tt(oe) - _n.top) / _n.height;
28889
+ at.scrollTop = zt * (at.scrollHeight - at.clientHeight);
28890
+ }, ze = () => Et((oe) => oe + 1), xl = (oe) => ot(oe), Oe = xt[_t % (xt.length || 1)];
28889
28891
  return /* @__PURE__ */ D.jsxs("div", { className: "container", children: [
28890
28892
  /* @__PURE__ */ D.jsxs("div", { className: "chat-wrap", children: [
28891
28893
  /* @__PURE__ */ D.jsxs("div", { className: "chat-box scrollWrap", ref: Ht, children: [
@@ -28939,24 +28941,24 @@ const hT = cT(
28939
28941
  );
28940
28942
  hT.displayName = "Answer";
28941
28943
  const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
28942
- const R = B0().apis, [et, lt] = Bt([]), [gt, X] = Bt(!0), [ot, Tt] = Bt(!1), [Ot, ct] = Bt(""), yt = N0(() => JE(et), [et]), At = async () => {
28944
+ const R = B0().apis, [et, lt] = Bt([]), [gt, X] = Bt(!0), [ot, Tt] = Bt(!1), [Ct, ct] = Bt(""), yt = N0(() => JE(et), [et]), At = async () => {
28943
28945
  try {
28944
28946
  const pt = await KE(R);
28945
28947
  if (pt != null && pt.conversationList) {
28946
- const Ct = pt.conversationList.filter((Et) => Et !== null).map((Et) => ({ ...Et, selected: !1 }));
28947
- lt(Ct);
28948
+ const _t = pt.conversationList.filter((Et) => Et !== null).map((Et) => ({ ...Et, selected: !1 }));
28949
+ lt(_t);
28948
28950
  }
28949
28951
  } catch (pt) {
28950
28952
  Zf((pt == null ? void 0 : pt.message) || "获取历史记录失败");
28951
28953
  } finally {
28952
28954
  X(!1);
28953
28955
  }
28954
- }, zt = (pt) => {
28956
+ }, Rt = (pt) => {
28955
28957
  ct(pt), Tt(!0);
28956
28958
  }, xt = async () => {
28957
28959
  Tt(!1);
28958
28960
  try {
28959
- await $E(R, Ot), await At();
28961
+ await $E(R, Ct), await At();
28960
28962
  } catch (pt) {
28961
28963
  Zf((pt == null ? void 0 : pt.message) || "删除失败"), await At();
28962
28964
  }
@@ -28966,27 +28968,27 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
28966
28968
  }, []), /* @__PURE__ */ D.jsxs("div", { className: "ai-history", children: [
28967
28969
  /* @__PURE__ */ D.jsx("div", { className: "content", children: gt ? /* @__PURE__ */ D.jsx("div", { className: "ai-history-loading", children: /* @__PURE__ */ D.jsx("div", { className: "ai-history-spinner" }) }) : yt.length > 0 ? yt.map((pt) => /* @__PURE__ */ D.jsxs("div", { className: "ai-history-group", children: [
28968
28970
  /* @__PURE__ */ D.jsx("div", { className: "ai-history-group-title", children: pt.label }),
28969
- pt.items.map((Ct, Et) => /* @__PURE__ */ D.jsxs(
28971
+ pt.items.map((_t, Et) => /* @__PURE__ */ D.jsxs(
28970
28972
  "div",
28971
28973
  {
28972
28974
  className: "ai-history-item",
28973
28975
  style: { "--i": Et },
28974
- onClick: () => S(Ct.appConversationID),
28976
+ onClick: () => S(_t.appConversationID),
28975
28977
  children: [
28976
- /* @__PURE__ */ D.jsx("div", { className: "ai-history-item-title", children: Ct.conversationName }),
28978
+ /* @__PURE__ */ D.jsx("div", { className: "ai-history-item-title", children: _t.conversationName }),
28977
28979
  /* @__PURE__ */ D.jsx(
28978
28980
  "div",
28979
28981
  {
28980
28982
  className: "ai-history-item-delete",
28981
28983
  onClick: (Ht) => {
28982
- Ht.stopPropagation(), zt(Ct.appConversationID);
28984
+ Ht.stopPropagation(), Rt(_t.appConversationID);
28983
28985
  },
28984
28986
  children: "删除"
28985
28987
  }
28986
28988
  )
28987
28989
  ]
28988
28990
  },
28989
- Ct.appConversationID
28991
+ _t.appConversationID
28990
28992
  ))
28991
28993
  ] }, pt.label)) : /* @__PURE__ */ D.jsx("div", { className: "ai-history-empty", children: "暂无历史记录" }) }),
28992
28994
  /* @__PURE__ */ D.jsxs("div", { className: "ai-add", onClick: I, children: [
@@ -29066,10 +29068,10 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29066
29068
  borderRadius: S.radius
29067
29069
  }), mT = () => {
29068
29070
  var xn, Fn;
29069
- const S = B0(), [I, st] = Bt(!1), [R, et] = Bt("idle"), [lt, gt] = Bt(!1), [X, ot] = Bt({ x: 0, y: 0, w: 78, h: 78, radius: "14px" }), [Tt, Ot] = Bt(!1), [ct, yt] = Bt(() => window.innerWidth < 768), [At, zt] = Bt(() => window.innerWidth < 768), [xt, pt] = Bt("answer"), [Ct, Et] = Bt(!1), [Ht, j] = Bt(""), [de, Vt] = Bt(""), [wt, ft] = Bt(""), [Gt, K] = Bt(!1), [vt, rt] = Bt(!1), [nt, it] = Bt({
29071
+ const S = B0(), [I, st] = Bt(!1), [R, et] = Bt("idle"), [lt, gt] = Bt(!1), [X, ot] = Bt({ x: 0, y: 0, w: 78, h: 78, radius: "14px" }), [Tt, Ct] = Bt(!1), [ct, yt] = Bt(() => window.innerWidth < 768), [At, Rt] = Bt(() => window.innerWidth < 768), [xt, pt] = Bt("answer"), [_t, Et] = Bt(!1), [Ht, j] = Bt(""), [de, Vt] = Bt(""), [wt, ft] = Bt(""), [Gt, $] = Bt(!1), [vt, rt] = Bt(!1), [nt, it] = Bt({
29070
29072
  x: window.innerWidth - _d,
29071
29073
  y: window.innerHeight / 2 - U0 / 2
29072
- }), [P, v] = Bt(!1), [z, N] = Bt(!1), [W, F] = Bt("right"), [U, tt] = Bt("left"), [dt, ht] = Bt({ x: 0, y: 0 }), [ie, Sl] = Bt(!1), [ze, xl] = Bt(!1), [Oe, oe] = Bt(!1), [at, ul] = Bt(!1), [_n, fl] = Bt(!1), [_t, jt] = Bt(((xn = S.dock) == null ? void 0 : xn.width) || Xm), rl = Mt(null), Hl = Mt({ x: 0, y: 0 }), Yu = Mt({ x: 0, y: 0 }), se = Mt({ x: 0, y: 0 }), Sn = Mt(!1), Nl = Mt(!1), Ha = Mt(!1), dl = Mt(!1), bn = Mt(!1), Uc = Mt(!1), xc = Mt(!1), ia = Mt(!1), xd = Mt({ x: 0, width: 0 }), kn = Mt(_t), fi = Mt(!1), ri = Mt(0), [Na, rn] = Bt("idle"), [eu, Zl] = Bt(!1), [Jf, Kf] = Bt("none"), [$f, ja] = Bt({ x: 0, y: 0, w: Xm, h: 0, radius: "14px" }), Jl = Mt(null), Ml = !!((Fn = S.dock) != null && Fn.containerId) && !ct, Un = S.panelDraggable !== !1, ke = Mt({ x: 0, y: 0 }), Kl = Mt(!1), Gu = Mt(null), oa = Mt(null), Ba = Te(() => {
29074
+ }), [P, v] = Bt(!1), [z, N] = Bt(!1), [W, F] = Bt("right"), [U, tt] = Bt("left"), [dt, ht] = Bt({ x: 0, y: 0 }), [ie, Sl] = Bt(!1), [ze, xl] = Bt(!1), [Oe, oe] = Bt(!1), [at, ul] = Bt(!1), [_n, fl] = Bt(!1), [zt, jt] = Bt(((xn = S.dock) == null ? void 0 : xn.width) || Xm), rl = Ot(null), Hl = Ot({ x: 0, y: 0 }), Yu = Ot({ x: 0, y: 0 }), se = Ot({ x: 0, y: 0 }), Sn = Ot(!1), Nl = Ot(!1), Ha = Ot(!1), dl = Ot(!1), bn = Ot(!1), Uc = Ot(!1), xc = Ot(!1), ia = Ot(!1), xd = Ot({ x: 0, width: 0 }), kn = Ot(zt), fi = Ot(!1), ri = Ot(0), [Na, rn] = Bt("idle"), [eu, Zl] = Bt(!1), [Jf, Kf] = Bt("none"), [$f, ja] = Bt({ x: 0, y: 0, w: Xm, h: 0, radius: "14px" }), Jl = Ot(null), Ml = !!((Fn = S.dock) != null && Fn.containerId) && !ct, Un = S.panelDraggable !== !1, ke = Ot({ x: 0, y: 0 }), Kl = Ot(!1), Gu = Ot(null), oa = Ot(null), Ba = Te(() => {
29073
29075
  const Y = window.innerWidth / 2;
29074
29076
  nt.x + _d < Y ? (F("left"), tt("right")) : (F("right"), tt("left"));
29075
29077
  }, [nt.x]), Hc = Te(() => {
@@ -29167,9 +29169,9 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29167
29169
  } catch {
29168
29170
  }
29169
29171
  }, Wn = () => ({
29170
- x: window.innerWidth - _t,
29172
+ x: window.innerWidth - zt,
29171
29173
  y: 0,
29172
- w: _t,
29174
+ w: zt,
29173
29175
  h: window.innerHeight,
29174
29176
  radius: "0px"
29175
29177
  }), lu = (Y, ut, St, Pt = "none") => {
@@ -29181,7 +29183,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29181
29183
  }, ao = Te(() => {
29182
29184
  var Pt, qe, bl, wl, He;
29183
29185
  if (!Ml || bn.current) return;
29184
- zt(!1);
29186
+ Rt(!1);
29185
29187
  const Y = (Pt = S.dock) == null ? void 0 : Pt.containerId;
29186
29188
  if (Y && !document.getElementById(Y)) {
29187
29189
  console.warn(`[ai-assist-sdk] dock container "#${Y}" not found, dock feature disabled`);
@@ -29323,7 +29325,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29323
29325
  var ut, St;
29324
29326
  if (bn.current) {
29325
29327
  lu(Wn(), ys(), () => {
29326
- st(!1), et("idle"), Ot(!0), setTimeout(() => Ot(!1), 1400);
29328
+ st(!1), et("idle"), Ct(!0), setTimeout(() => Ct(!1), 1400);
29327
29329
  }, "out"), (St = (ut = S.dock) == null ? void 0 : ut.onDockChange) == null || St.call(ut, !1);
29328
29330
  return;
29329
29331
  }
@@ -29338,8 +29340,8 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29338
29340
  radius: "50%"
29339
29341
  });
29340
29342
  }), setTimeout(() => {
29341
- st(!1), et("idle"), Ot(!0);
29342
- }, 400), setTimeout(() => Ot(!1), 1400);
29343
+ st(!1), et("idle"), Ct(!0);
29344
+ }, 400), setTimeout(() => Ct(!1), 1400);
29343
29345
  }, hi = (Y) => {
29344
29346
  var ut;
29345
29347
  Qu(), pt("answer"), (ut = Gu.current) == null || ut.goHistoryMessage(Y);
@@ -29347,10 +29349,10 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29347
29349
  var Y;
29348
29350
  Qu(), ft(""), (Y = Gu.current) == null || Y.createNewConversation();
29349
29351
  }, yi = () => {
29350
- rt(!1), K(!0);
29352
+ rt(!1), $(!0);
29351
29353
  }, Qu = () => {
29352
29354
  rt(!0), setTimeout(() => {
29353
- K(!1), rt(!1);
29355
+ $(!1), rt(!1);
29354
29356
  }, 300);
29355
29357
  }, cu = () => {
29356
29358
  Vt(Ht), Et(!1);
@@ -29373,7 +29375,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29373
29375
  radius: "14px"
29374
29376
  };
29375
29377
  }, gs = () => {
29376
- At ? (lu(ps(), Ce()), zt(!1)) : (lu(jl(), ps()), zt(!0));
29378
+ At ? (lu(ps(), Ce()), Rt(!1)) : (lu(jl(), ps()), Rt(!0));
29377
29379
  }, Wf = At || Oe || Na !== "idle" ? "" : `panel-${W}`, uo = R === "idle" ? {} : {
29378
29380
  left: `${X.x}px`,
29379
29381
  top: `${X.y}px`,
@@ -29381,7 +29383,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29381
29383
  height: `${X.h}px`,
29382
29384
  borderRadius: X.radius
29383
29385
  }, vs = {};
29384
- ie && !At && !ct && !Oe && (vs["--ai-panel-x"] = `${dt.x}px`, vs["--ai-panel-y"] = `${dt.y}px`), Oe && (vs["--ai-dock-width"] = `${_t}px`), Se(() => {
29386
+ ie && !At && !ct && !Oe && (vs["--ai-panel-x"] = `${dt.x}px`, vs["--ai-panel-y"] = `${dt.y}px`), Oe && (vs["--ai-dock-width"] = `${zt}px`), Se(() => {
29385
29387
  sa(), ra(), ds(), Xu();
29386
29388
  }, [sa, ra, ds, Xu]), Se(() => {
29387
29389
  const Y = S.theme || "light";
@@ -29394,7 +29396,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29394
29396
  const Y = () => {
29395
29397
  oa.current && clearTimeout(oa.current), oa.current = setTimeout(() => {
29396
29398
  const ut = window.innerWidth < 768;
29397
- if (yt(ut), ut && (zt(!0), bn.current && kf()), Nc(), Ha.current && wa(), bn.current) {
29399
+ if (yt(ut), ut && (Rt(!0), bn.current && kf()), Nc(), Ha.current && wa(), bn.current) {
29398
29400
  const St = nu(kn.current);
29399
29401
  kn.current = St, jt(St);
29400
29402
  }
@@ -29416,7 +29418,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29416
29418
  }, [Lu, au]), Se(() => {
29417
29419
  I && ie && requestAnimationFrame(() => wa());
29418
29420
  }, [I, ie, wa]);
29419
- const Tn = Math.max(1e3, Number(S.activityInterval) || 3e4), Zu = Mt(null), iu = Mt(0), qa = Mt(0), ou = Mt(0), wc = Mt(!1), Ss = Mt(!1), Bl = Te(
29421
+ const Tn = Math.max(1e3, Number(S.activityInterval) || 3e4), Zu = Ot(null), iu = Ot(0), qa = Ot(0), ou = Ot(0), wc = Ot(!1), Ss = Ot(!1), Bl = Te(
29420
29422
  (Y) => {
29421
29423
  if (typeof S.onPanelActive == "function")
29422
29424
  try {
@@ -29541,7 +29543,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29541
29543
  )
29542
29544
  ] })
29543
29545
  ] }),
29544
- /* @__PURE__ */ D.jsx("div", { className: "setTitle", style: { display: Ct ? "block" : "none" }, children: /* @__PURE__ */ D.jsx("div", { className: "content", children: /* @__PURE__ */ D.jsxs("div", { className: "main", children: [
29546
+ /* @__PURE__ */ D.jsx("div", { className: "setTitle", style: { display: _t ? "block" : "none" }, children: /* @__PURE__ */ D.jsx("div", { className: "content", children: /* @__PURE__ */ D.jsxs("div", { className: "main", children: [
29545
29547
  /* @__PURE__ */ D.jsx("p", { className: "title", children: "修改标题" }),
29546
29548
  /* @__PURE__ */ D.jsx(
29547
29549
  "textarea",
@@ -29559,7 +29561,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29559
29561
  ]
29560
29562
  }
29561
29563
  ),
29562
- at && Ml && /* @__PURE__ */ D.jsx("div", { className: "ai-dock-preview", style: { width: `${_t}px` }, children: /* @__PURE__ */ D.jsx("span", { className: "ai-dock-preview__text", children: "松开以停靠到右侧" }) }),
29564
+ at && Ml && /* @__PURE__ */ D.jsx("div", { className: "ai-dock-preview", style: { width: `${zt}px` }, children: /* @__PURE__ */ D.jsx("span", { className: "ai-dock-preview__text", children: "松开以停靠到右侧" }) }),
29563
29565
  /* @__PURE__ */ D.jsx(
29564
29566
  "div",
29565
29567
  {
@@ -29596,21 +29598,21 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29596
29598
  connectingText: X,
29597
29599
  stoppingText: ot,
29598
29600
  className: Tt,
29599
- onResult: Ot,
29601
+ onResult: Ct,
29600
29602
  onFinal: ct,
29601
29603
  onError: yt,
29602
29604
  onStatusChange: At,
29603
- onComplete: zt
29605
+ onComplete: Rt
29604
29606
  }, xt) => {
29605
- const [pt, Ct] = Bt(""), [Et, Ht] = Bt(""), [j, de] = Bt("idle"), Vt = j0.isSupported(), wt = Mt(null), ft = Mt({ onResult: Ot, onFinal: ct, onError: yt, onStatusChange: At, onComplete: zt });
29607
+ const [pt, _t] = Bt(""), [Et, Ht] = Bt(""), [j, de] = Bt("idle"), Vt = j0.isSupported(), wt = Ot(null), ft = Ot({ onResult: Ct, onFinal: ct, onError: yt, onStatusChange: At, onComplete: Rt });
29606
29608
  Se(() => {
29607
- ft.current = { onResult: Ot, onFinal: ct, onError: yt, onStatusChange: At, onComplete: zt };
29609
+ ft.current = { onResult: Ct, onFinal: ct, onError: yt, onStatusChange: At, onComplete: Rt };
29608
29610
  }), Se(() => {
29609
29611
  if (!Vt) return;
29610
29612
  const z = { lang: S, continuous: I, interimResults: st }, N = new j0(z, {
29611
29613
  onStatusChange: (W) => {
29612
29614
  var F, U;
29613
- de(W), (U = (F = ft.current).onStatusChange) == null || U.call(F, W), W === "idle" && Ct((tt) => {
29615
+ de(W), (U = (F = ft.current).onStatusChange) == null || U.call(F, W), W === "idle" && _t((tt) => {
29614
29616
  var dt, ht;
29615
29617
  return (ht = (dt = ft.current).onComplete) == null || ht.call(dt, tt), tt;
29616
29618
  });
@@ -29618,7 +29620,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29618
29620
  onInterim: (W) => Ht(W),
29619
29621
  onFinal: (W, F) => {
29620
29622
  var U, tt;
29621
- Ct((dt) => dt + W), Ht(""), (tt = (U = ft.current).onFinal) == null || tt.call(U, W, F);
29623
+ _t((dt) => dt + W), Ht(""), (tt = (U = ft.current).onFinal) == null || tt.call(U, W, F);
29622
29624
  },
29623
29625
  onResult: (W) => {
29624
29626
  var F, U;
@@ -29649,14 +29651,14 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29649
29651
  },
29650
29652
  getText: () => pt + Et,
29651
29653
  clear: () => {
29652
- Ct(""), Ht("");
29654
+ _t(""), Ht("");
29653
29655
  },
29654
29656
  getStatus: () => {
29655
29657
  var z;
29656
29658
  return ((z = wt.current) == null ? void 0 : z.getStatus()) ?? "idle";
29657
29659
  }
29658
29660
  }), [pt, Et]);
29659
- const K = async () => {
29661
+ const $ = async () => {
29660
29662
  const z = wt.current;
29661
29663
  if (z)
29662
29664
  if (j === "idle" || j === "error")
@@ -29666,7 +29668,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29666
29668
  }
29667
29669
  else j === "recording" && z.stop();
29668
29670
  }, vt = () => {
29669
- Ct(""), Ht("");
29671
+ _t(""), Ht("");
29670
29672
  }, rt = Vt ? j === "connecting" ? X || H0.connecting : j === "recording" ? gt || H0.recording : j === "stopping" ? ot || H0.stopping : j === "error" ? H0.error : lt || H0.idle : "不支持", nt = [
29671
29673
  "ai-voice-input-btn",
29672
29674
  j === "recording" ? "is-recording" : "",
@@ -29686,7 +29688,7 @@ const JA = ({ onHistoryDetail: S, onNewConversation: I }) => {
29686
29688
  type: "button",
29687
29689
  className: nt,
29688
29690
  disabled: it,
29689
- onClick: K,
29691
+ onClick: $,
29690
29692
  children: [
29691
29693
  j === "recording" ? /* @__PURE__ */ D.jsx("span", { className: "ai-voice-input-pulse" }) : j === "connecting" || j === "stopping" ? /* @__PURE__ */ D.jsxs("span", { className: "ai-voice-input-wave", children: [
29692
29694
  /* @__PURE__ */ D.jsx("span", {}),