@schmitech/chatbot-widget 0.4.4 → 0.4.6

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.
@@ -66,14 +66,14 @@ function tc() {
66
66
  * LICENSE file in the root directory of this source tree.
67
67
  */
68
68
  return e.NODE_ENV !== "production" && function() {
69
- var t = ur, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, E = "@@iterator";
69
+ var t = ur, r = Symbol.for("react.element"), n = Symbol.for("react.portal"), i = Symbol.for("react.fragment"), a = Symbol.for("react.strict_mode"), l = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), s = Symbol.for("react.context"), u = Symbol.for("react.forward_ref"), m = Symbol.for("react.suspense"), h = Symbol.for("react.suspense_list"), d = Symbol.for("react.memo"), p = Symbol.for("react.lazy"), v = Symbol.for("react.offscreen"), b = Symbol.iterator, M = "@@iterator";
70
70
  function w(T) {
71
71
  if (T === null || typeof T != "object")
72
72
  return null;
73
- var q = b && T[b] || T[E];
73
+ var q = b && T[b] || T[M];
74
74
  return typeof q == "function" ? q : null;
75
75
  }
76
- var M = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
76
+ var A = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
77
77
  function z(T) {
78
78
  {
79
79
  for (var q = arguments.length, Z = new Array(q > 1 ? q - 1 : 0), oe = 1; oe < q; oe++)
@@ -83,10 +83,10 @@ function tc() {
83
83
  }
84
84
  function D(T, q, Z) {
85
85
  {
86
- var oe = M.ReactDebugCurrentFrame, xe = oe.getStackAddendum();
86
+ var oe = A.ReactDebugCurrentFrame, xe = oe.getStackAddendum();
87
87
  xe !== "" && (q += "%s", Z = Z.concat([xe]));
88
- var ke = Z.map(function(ge) {
89
- return String(ge);
88
+ var ke = Z.map(function(ve) {
89
+ return String(ve);
90
90
  });
91
91
  ke.unshift("Warning: " + q), Function.prototype.apply.call(console[T], console, ke);
92
92
  }
@@ -145,9 +145,9 @@ function tc() {
145
145
  var oe = T.displayName || null;
146
146
  return oe !== null ? oe : te(T.type) || "Memo";
147
147
  case p: {
148
- var xe = T, ke = xe._payload, ge = xe._init;
148
+ var xe = T, ke = xe._payload, ve = xe._init;
149
149
  try {
150
- return te(ge(ke));
150
+ return te(ve(ke));
151
151
  } catch {
152
152
  return null;
153
153
  }
@@ -155,14 +155,14 @@ function tc() {
155
155
  }
156
156
  return null;
157
157
  }
158
- var K = Object.assign, me = 0, ve, Ce, Ue, S, Me, we, A;
158
+ var K = Object.assign, ce = 0, de, Ce, Ue, S, Me, we, E;
159
159
  function Fe() {
160
160
  }
161
161
  Fe.__reactDisabledLog = !0;
162
162
  function $e() {
163
163
  {
164
- if (me === 0) {
165
- ve = console.log, Ce = console.info, Ue = console.warn, S = console.error, Me = console.group, we = console.groupCollapsed, A = console.groupEnd;
164
+ if (ce === 0) {
165
+ de = console.log, Ce = console.info, Ue = console.warn, S = console.error, Me = console.group, we = console.groupCollapsed, E = console.groupEnd;
166
166
  var T = {
167
167
  configurable: !0,
168
168
  enumerable: !0,
@@ -179,12 +179,12 @@ function tc() {
179
179
  groupEnd: T
180
180
  });
181
181
  }
182
- me++;
182
+ ce++;
183
183
  }
184
184
  }
185
185
  function ze() {
186
186
  {
187
- if (me--, me === 0) {
187
+ if (ce--, ce === 0) {
188
188
  var T = {
189
189
  configurable: !0,
190
190
  enumerable: !0,
@@ -192,7 +192,7 @@ function tc() {
192
192
  };
193
193
  Object.defineProperties(console, {
194
194
  log: K({}, T, {
195
- value: ve
195
+ value: de
196
196
  }),
197
197
  info: K({}, T, {
198
198
  value: Ce
@@ -210,14 +210,14 @@ function tc() {
210
210
  value: we
211
211
  }),
212
212
  groupEnd: K({}, T, {
213
- value: A
213
+ value: E
214
214
  })
215
215
  });
216
216
  }
217
- me < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
217
+ ce < 0 && z("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
218
218
  }
219
219
  }
220
- var Ve = M.ReactCurrentDispatcher, Re;
220
+ var Ve = A.ReactCurrentDispatcher, Re;
221
221
  function Ge(T, q, Z) {
222
222
  {
223
223
  if (Re === void 0)
@@ -252,27 +252,27 @@ function tc() {
252
252
  ke = Ve.current, Ve.current = null, $e();
253
253
  try {
254
254
  if (q) {
255
- var ge = function() {
255
+ var ve = function() {
256
256
  throw Error();
257
257
  };
258
- if (Object.defineProperty(ge.prototype, "props", {
258
+ if (Object.defineProperty(ve.prototype, "props", {
259
259
  set: function() {
260
260
  throw Error();
261
261
  }
262
262
  }), typeof Reflect == "object" && Reflect.construct) {
263
263
  try {
264
- Reflect.construct(ge, []);
264
+ Reflect.construct(ve, []);
265
265
  } catch (at) {
266
266
  oe = at;
267
267
  }
268
- Reflect.construct(T, [], ge);
268
+ Reflect.construct(T, [], ve);
269
269
  } else {
270
270
  try {
271
- ge.call();
271
+ ve.call();
272
272
  } catch (at) {
273
273
  oe = at;
274
274
  }
275
- T.call(ge.prototype);
275
+ T.call(ve.prototype);
276
276
  }
277
277
  } else {
278
278
  try {
@@ -284,17 +284,17 @@ function tc() {
284
284
  }
285
285
  } catch (at) {
286
286
  if (at && oe && typeof at.stack == "string") {
287
- for (var de = at.stack.split(`
287
+ for (var ge = at.stack.split(`
288
288
  `), Qe = oe.stack.split(`
289
- `), De = de.length - 1, _e = Qe.length - 1; De >= 1 && _e >= 0 && de[De] !== Qe[_e]; )
289
+ `), De = ge.length - 1, _e = Qe.length - 1; De >= 1 && _e >= 0 && ge[De] !== Qe[_e]; )
290
290
  _e--;
291
291
  for (; De >= 1 && _e >= 0; De--, _e--)
292
- if (de[De] !== Qe[_e]) {
292
+ if (ge[De] !== Qe[_e]) {
293
293
  if (De !== 1 || _e !== 1)
294
294
  do
295
- if (De--, _e--, _e < 0 || de[De] !== Qe[_e]) {
295
+ if (De--, _e--, _e < 0 || ge[De] !== Qe[_e]) {
296
296
  var bt = `
297
- ` + de[De].replace(" at new ", " at ");
297
+ ` + ge[De].replace(" at new ", " at ");
298
298
  return T.displayName && bt.includes("<anonymous>") && (bt = bt.replace("<anonymous>", T.displayName)), typeof T == "function" && nt.set(T, bt), bt;
299
299
  }
300
300
  while (De >= 1 && _e >= 0);
@@ -343,7 +343,7 @@ function tc() {
343
343
  }
344
344
  return "";
345
345
  }
346
- var yt = Object.prototype.hasOwnProperty, Ut = {}, Rt = M.ReactDebugCurrentFrame;
346
+ var yt = Object.prototype.hasOwnProperty, Ut = {}, Rt = A.ReactDebugCurrentFrame;
347
347
  function mr(T) {
348
348
  if (T) {
349
349
  var q = T._owner, Z = Ot(T.type, T._source, q ? q.type : null);
@@ -354,19 +354,19 @@ function tc() {
354
354
  function ri(T, q, Z, oe, xe) {
355
355
  {
356
356
  var ke = Function.call.bind(yt);
357
- for (var ge in T)
358
- if (ke(T, ge)) {
359
- var de = void 0;
357
+ for (var ve in T)
358
+ if (ke(T, ve)) {
359
+ var ge = void 0;
360
360
  try {
361
- if (typeof T[ge] != "function") {
362
- var Qe = Error((oe || "React class") + ": " + Z + " type `" + ge + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof T[ge] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
361
+ if (typeof T[ve] != "function") {
362
+ var Qe = Error((oe || "React class") + ": " + Z + " type `" + ve + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof T[ve] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");
363
363
  throw Qe.name = "Invariant Violation", Qe;
364
364
  }
365
- de = T[ge](q, ge, oe, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
365
+ ge = T[ve](q, ve, oe, Z, null, "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED");
366
366
  } catch (De) {
367
- de = De;
367
+ ge = De;
368
368
  }
369
- de && !(de instanceof Error) && (mr(xe), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", Z, ge, typeof de), mr(null)), de instanceof Error && !(de.message in Ut) && (Ut[de.message] = !0, mr(xe), z("Failed %s type: %s", Z, de.message), mr(null));
369
+ ge && !(ge instanceof Error) && (mr(xe), z("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", oe || "React class", Z, ve, typeof ge), mr(null)), ge instanceof Error && !(ge.message in Ut) && (Ut[ge.message] = !0, mr(xe), z("Failed %s type: %s", Z, ge.message), mr(null));
370
370
  }
371
371
  }
372
372
  }
@@ -394,7 +394,7 @@ function tc() {
394
394
  if (ai(T))
395
395
  return z("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", ii(T)), L(T);
396
396
  }
397
- var le = M.ReactCurrentOwner, fe = {
397
+ var le = A.ReactCurrentOwner, me = {
398
398
  key: !0,
399
399
  ref: !0,
400
400
  __self: !0,
@@ -441,54 +441,54 @@ function tc() {
441
441
  });
442
442
  }
443
443
  }
444
- var tr = function(T, q, Z, oe, xe, ke, ge) {
445
- var de = {
444
+ var tr = function(T, q, Z, oe, xe, ke, ve) {
445
+ var ge = {
446
446
  // This tag allows us to uniquely identify this as a React Element
447
447
  $$typeof: r,
448
448
  // Built-in properties that belong on the element
449
449
  type: T,
450
450
  key: q,
451
451
  ref: Z,
452
- props: ge,
452
+ props: ve,
453
453
  // Record the component responsible for creating this element.
454
454
  _owner: ke
455
455
  };
456
- return de._store = {}, Object.defineProperty(de._store, "validated", {
456
+ return ge._store = {}, Object.defineProperty(ge._store, "validated", {
457
457
  configurable: !1,
458
458
  enumerable: !1,
459
459
  writable: !0,
460
460
  value: !1
461
- }), Object.defineProperty(de, "_self", {
461
+ }), Object.defineProperty(ge, "_self", {
462
462
  configurable: !1,
463
463
  enumerable: !1,
464
464
  writable: !1,
465
465
  value: oe
466
- }), Object.defineProperty(de, "_source", {
466
+ }), Object.defineProperty(ge, "_source", {
467
467
  configurable: !1,
468
468
  enumerable: !1,
469
469
  writable: !1,
470
470
  value: xe
471
- }), Object.freeze && (Object.freeze(de.props), Object.freeze(de)), de;
471
+ }), Object.freeze && (Object.freeze(ge.props), Object.freeze(ge)), ge;
472
472
  };
473
473
  function Ct(T, q, Z, oe, xe) {
474
474
  {
475
- var ke, ge = {}, de = null, Qe = null;
476
- Z !== void 0 && (W(Z), de = "" + Z), Mt(q) && (W(q.key), de = "" + q.key), $t(q) && (Qe = q.ref, fr(q, xe));
475
+ var ke, ve = {}, ge = null, Qe = null;
476
+ Z !== void 0 && (W(Z), ge = "" + Z), Mt(q) && (W(q.key), ge = "" + q.key), $t(q) && (Qe = q.ref, fr(q, xe));
477
477
  for (ke in q)
478
- yt.call(q, ke) && !fe.hasOwnProperty(ke) && (ge[ke] = q[ke]);
478
+ yt.call(q, ke) && !me.hasOwnProperty(ke) && (ve[ke] = q[ke]);
479
479
  if (T && T.defaultProps) {
480
480
  var De = T.defaultProps;
481
481
  for (ke in De)
482
- ge[ke] === void 0 && (ge[ke] = De[ke]);
482
+ ve[ke] === void 0 && (ve[ke] = De[ke]);
483
483
  }
484
- if (de || Qe) {
484
+ if (ge || Qe) {
485
485
  var _e = typeof T == "function" ? T.displayName || T.name || "Unknown" : T;
486
- de && pr(ge, _e), Qe && Ke(ge, _e);
486
+ ge && pr(ve, _e), Qe && Ke(ve, _e);
487
487
  }
488
- return tr(T, de, Qe, xe, oe, le.current, ge);
488
+ return tr(T, ge, Qe, xe, oe, le.current, ve);
489
489
  }
490
490
  }
491
- var li = M.ReactCurrentOwner, ca = M.ReactDebugCurrentFrame;
491
+ var li = A.ReactCurrentOwner, ca = A.ReactDebugCurrentFrame;
492
492
  function Ar(T) {
493
493
  if (T) {
494
494
  var q = T._owner, Z = Ot(T.type, T._source, q ? q.type : null);
@@ -556,8 +556,8 @@ Check the top-level render call using <` + Z + ">.");
556
556
  else if (T) {
557
557
  var xe = w(T);
558
558
  if (typeof xe == "function" && xe !== T.entries)
559
- for (var ke = xe.call(T), ge; !(ge = ke.next()).done; )
560
- si(ge.value) && fa(ge.value, q);
559
+ for (var ke = xe.call(T), ve; !(ve = ke.next()).done; )
560
+ si(ve.value) && fa(ve.value, q);
561
561
  }
562
562
  }
563
563
  }
@@ -601,19 +601,19 @@ Check the top-level render call using <` + Z + ">.");
601
601
  var da = {};
602
602
  function ga(T, q, Z, oe, xe, ke) {
603
603
  {
604
- var ge = $(T);
605
- if (!ge) {
606
- var de = "";
607
- (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (de += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
604
+ var ve = $(T);
605
+ if (!ve) {
606
+ var ge = "";
607
+ (T === void 0 || typeof T == "object" && T !== null && Object.keys(T).length === 0) && (ge += " You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");
608
608
  var Qe = qu();
609
- Qe ? de += Qe : de += ha();
609
+ Qe ? ge += Qe : ge += ha();
610
610
  var De;
611
- T === null ? De = "null" : Ur(T) ? De = "array" : T !== void 0 && T.$$typeof === r ? (De = "<" + (te(T.type) || "Unknown") + " />", de = " Did you accidentally export a JSX literal instead of a component?") : De = typeof T, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", De, de);
611
+ T === null ? De = "null" : Ur(T) ? De = "array" : T !== void 0 && T.$$typeof === r ? (De = "<" + (te(T.type) || "Unknown") + " />", ge = " Did you accidentally export a JSX literal instead of a component?") : De = typeof T, z("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", De, ge);
612
612
  }
613
613
  var _e = Ct(T, q, Z, xe, ke);
614
614
  if (_e == null)
615
615
  return _e;
616
- if (ge) {
616
+ if (ve) {
617
617
  var bt = q.children;
618
618
  if (bt !== void 0)
619
619
  if (oe)
@@ -899,16 +899,16 @@ function bc() {
899
899
  }
900
900
  var r = typeof Object.is == "function" ? Object.is : t, n = e.useState, i = e.useEffect, a = e.useLayoutEffect, l = e.useDebugValue;
901
901
  function o(h, d) {
902
- var p = d(), v = n({ inst: { value: p, getSnapshot: d } }), b = v[0].inst, E = v[1];
902
+ var p = d(), v = n({ inst: { value: p, getSnapshot: d } }), b = v[0].inst, M = v[1];
903
903
  return a(
904
904
  function() {
905
- b.value = p, b.getSnapshot = d, s(b) && E({ inst: b });
905
+ b.value = p, b.getSnapshot = d, s(b) && M({ inst: b });
906
906
  },
907
907
  [h, p, d]
908
908
  ), i(
909
909
  function() {
910
- return s(b) && E({ inst: b }), h(function() {
911
- s(b) && E({ inst: b });
910
+ return s(b) && M({ inst: b }), h(function() {
911
+ s(b) && M({ inst: b });
912
912
  });
913
913
  },
914
914
  [h]
@@ -952,37 +952,37 @@ function xc() {
952
952
  h || a.startTransition === void 0 || (h = !0, console.error(
953
953
  "You are using an outdated, pre-release alpha of React 18 that does not support useSyncExternalStore. The use-sync-external-store shim will not work correctly. Upgrade to a newer pre-release."
954
954
  ));
955
- var E = b();
955
+ var M = b();
956
956
  if (!d) {
957
957
  var w = b();
958
- l(E, w) || (console.error(
958
+ l(M, w) || (console.error(
959
959
  "The result of getSnapshot should be cached to avoid an infinite loop"
960
960
  ), d = !0);
961
961
  }
962
962
  w = o({
963
- inst: { value: E, getSnapshot: b }
963
+ inst: { value: M, getSnapshot: b }
964
964
  });
965
- var M = w[0].inst, z = w[1];
965
+ var A = w[0].inst, z = w[1];
966
966
  return u(
967
967
  function() {
968
- M.value = E, M.getSnapshot = b, n(M) && z({ inst: M });
968
+ A.value = M, A.getSnapshot = b, n(A) && z({ inst: A });
969
969
  },
970
- [v, E, b]
970
+ [v, M, b]
971
971
  ), s(
972
972
  function() {
973
- return n(M) && z({ inst: M }), v(function() {
974
- n(M) && z({ inst: M });
973
+ return n(A) && z({ inst: A }), v(function() {
974
+ n(A) && z({ inst: A });
975
975
  });
976
976
  },
977
977
  [v]
978
- ), m(E), E;
978
+ ), m(M), M;
979
979
  }
980
980
  function n(v) {
981
981
  var b = v.getSnapshot;
982
982
  v = v.value;
983
983
  try {
984
- var E = b();
985
- return !l(v, E);
984
+ var M = b();
985
+ return !l(v, M);
986
986
  } catch {
987
987
  return !0;
988
988
  }
@@ -1029,8 +1029,8 @@ function wc() {
1029
1029
  v = o(
1030
1030
  function() {
1031
1031
  function w(I) {
1032
- if (!M) {
1033
- if (M = !0, z = I, I = d(I), p !== void 0 && b.hasValue) {
1032
+ if (!A) {
1033
+ if (A = !0, z = I, I = d(I), p !== void 0 && b.hasValue) {
1034
1034
  var F = b.value;
1035
1035
  if (p(F, I))
1036
1036
  return D = F;
@@ -1041,7 +1041,7 @@ function wc() {
1041
1041
  var Y = d(I);
1042
1042
  return p !== void 0 && p(F, Y) ? (z = I, F) : (z = I, D = Y);
1043
1043
  }
1044
- var M = !1, z, D, B = h === void 0 ? null : h;
1044
+ var A = !1, z, D, B = h === void 0 ? null : h;
1045
1045
  return [
1046
1046
  function() {
1047
1047
  return w(m());
@@ -1053,13 +1053,13 @@ function wc() {
1053
1053
  },
1054
1054
  [m, h, d, p]
1055
1055
  );
1056
- var E = i(u, v[0], v[1]);
1056
+ var M = i(u, v[0], v[1]);
1057
1057
  return l(
1058
1058
  function() {
1059
- b.hasValue = !0, b.value = E;
1059
+ b.hasValue = !0, b.value = M;
1060
1060
  },
1061
- [E]
1062
- ), s(E), E;
1061
+ [M]
1062
+ ), s(M), M;
1063
1063
  }, hi;
1064
1064
  }
1065
1065
  var pi = {}, Ma;
@@ -1085,15 +1085,15 @@ function kc() {
1085
1085
  pi.useSyncExternalStoreWithSelector = function(m, h, d, p, v) {
1086
1086
  var b = l(null);
1087
1087
  if (b.current === null) {
1088
- var E = { hasValue: !1, value: null };
1089
- b.current = E;
1090
- } else E = b.current;
1088
+ var M = { hasValue: !1, value: null };
1089
+ b.current = M;
1090
+ } else M = b.current;
1091
1091
  b = s(
1092
1092
  function() {
1093
- function M(F) {
1093
+ function A(F) {
1094
1094
  if (!z) {
1095
- if (z = !0, D = F, F = p(F), v !== void 0 && E.hasValue) {
1096
- var Y = E.value;
1095
+ if (z = !0, D = F, F = p(F), v !== void 0 && M.hasValue) {
1096
+ var Y = M.value;
1097
1097
  if (v(Y, F))
1098
1098
  return B = Y;
1099
1099
  }
@@ -1107,10 +1107,10 @@ function kc() {
1107
1107
  var z = !1, D, B, I = d === void 0 ? null : d;
1108
1108
  return [
1109
1109
  function() {
1110
- return M(h());
1110
+ return A(h());
1111
1111
  },
1112
1112
  I === null ? void 0 : function() {
1113
- return M(I());
1113
+ return A(I());
1114
1114
  }
1115
1115
  ];
1116
1116
  },
@@ -1119,7 +1119,7 @@ function kc() {
1119
1119
  var w = a(m, b[0], b[1]);
1120
1120
  return o(
1121
1121
  function() {
1122
- E.hasValue = !0, E.value = w;
1122
+ M.hasValue = !0, M.value = w;
1123
1123
  },
1124
1124
  [w]
1125
1125
  ), u(w), w;
@@ -1224,13 +1224,13 @@ async function* Bc(e, t = !0) {
1224
1224
  }
1225
1225
  const b = (l = v.body) == null ? void 0 : l.getReader();
1226
1226
  if (!b) throw new Error("No reader available");
1227
- const E = new TextDecoder();
1228
- let w = "", M = "";
1227
+ const M = new TextDecoder();
1228
+ let w = "", A = "";
1229
1229
  try {
1230
1230
  for (; ; ) {
1231
1231
  const { done: z, value: D } = await b.read();
1232
1232
  if (z) break;
1233
- const B = E.decode(D, { stream: !0 });
1233
+ const B = M.decode(D, { stream: !0 });
1234
1234
  w += B;
1235
1235
  const I = w.split(`
1236
1236
  `);
@@ -1249,8 +1249,8 @@ async function* Bc(e, t = !0) {
1249
1249
  if (H.result.type === "start")
1250
1250
  continue;
1251
1251
  if (H.result.type === "chunk" && H.result.chunk ? N = H.result.chunk.content : H.result.type === "complete" && (s = (o = H.result.output) == null ? void 0 : o.messages) != null && s[0] && (N = H.result.output.messages[0].content), N) {
1252
- const $ = Ia(N, M);
1253
- $ ? (M += $, yield {
1252
+ const $ = Ia(N, A);
1253
+ $ ? (A += $, yield {
1254
1254
  text: $,
1255
1255
  done: H.result.type === "complete"
1256
1256
  }) : H.result.type === "complete" && (yield { text: "", done: !0 });
@@ -1269,7 +1269,7 @@ async function* Bc(e, t = !0) {
1269
1269
  if (z !== "[DONE]") {
1270
1270
  const D = JSON.parse(z);
1271
1271
  if ((m = (u = D.result) == null ? void 0 : u.chunk) != null && m.content) {
1272
- const B = Ia(D.result.chunk.content, M);
1272
+ const B = Ia(D.result.chunk.content, A);
1273
1273
  B && (yield {
1274
1274
  text: B,
1275
1275
  done: D.result.type === "complete"
@@ -1324,7 +1324,7 @@ function S0(e) {
1324
1324
  typeof window > "u" || (sessionStorage.setItem(Qi, e), window.CHATBOT_SESSION_ID = e);
1325
1325
  }
1326
1326
  const Pc = 50, _c = 200;
1327
- let ce = {
1327
+ let fe = {
1328
1328
  MAX_MESSAGE_LENGTH: 250,
1329
1329
  MAX_SUGGESTED_QUESTION_LENGTH: Pc,
1330
1330
  MAX_SUGGESTED_QUESTION_QUERY_LENGTH: _c,
@@ -1665,15 +1665,15 @@ const Hc = `
1665
1665
  transform: translateY(-1px);
1666
1666
  }
1667
1667
  `, qc = (e) => {
1668
- const { BREAKPOINTS: t, WIDTHS: r } = ce.WINDOW_DIMENSIONS;
1668
+ const { BREAKPOINTS: t, WIDTHS: r } = fe.WINDOW_DIMENSIONS;
1669
1669
  return e < t.SM ? "100%" : e < t.MD ? r.SM : e < t.LG ? r.MD : r.LG;
1670
- }, jc = (e) => e < ce.WINDOW_DIMENSIONS.BREAKPOINTS.SM ? "100%" : ce.WINDOW_DIMENSIONS.WIDTHS.SM, Uc = 'Mona Sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif', $c = (e, t) => ({
1670
+ }, jc = (e) => e < fe.WINDOW_DIMENSIONS.BREAKPOINTS.SM ? "100%" : fe.WINDOW_DIMENSIONS.WIDTHS.SM, Uc = 'Mona Sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif', $c = (e, t) => ({
1671
1671
  color: e >= t * 0.9 ? "#ef4444" : "#6b7280",
1672
1672
  backgroundColor: e >= t * 0.9 ? "rgba(239, 68, 68, 0.1)" : "rgba(107, 114, 128, 0.1)",
1673
1673
  fontSize: "0.7rem"
1674
1674
  });
1675
1675
  function Vc(e) {
1676
- Object.assign(ce, e);
1676
+ Object.assign(fe, e);
1677
1677
  }
1678
1678
  let Na = !1;
1679
1679
  function Gc() {
@@ -1704,7 +1704,7 @@ const To = Ic((e, t) => ({
1704
1704
  getSessionId: () => t().sessionId,
1705
1705
  sendMessage: async (r) => {
1706
1706
  try {
1707
- const n = ce.MAX_SUGGESTED_QUESTION_QUERY_LENGTH;
1707
+ const n = fe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH;
1708
1708
  let i = r;
1709
1709
  if (r.length > n && (i = r.substring(0, n)), !Gc())
1710
1710
  throw new Error("API not properly configured");
@@ -1856,12 +1856,12 @@ const To = Ic((e, t) => ({
1856
1856
  behavior: v ? "auto" : "smooth"
1857
1857
  }), setTimeout(() => {
1858
1858
  d();
1859
- }, v ? 0 : ce.ANIMATIONS.SCROLL_TIMEOUT);
1859
+ }, v ? 0 : fe.ANIMATIONS.SCROLL_TIMEOUT);
1860
1860
  }
1861
1861
  }, []), d = It(() => {
1862
1862
  if (o.current && !e) {
1863
- const { scrollTop: v, scrollHeight: b, clientHeight: E } = o.current, w = Math.abs(b - v - E) < ce.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD, M = v < ce.SCROLL_THRESHOLDS.TOP_THRESHOLD;
1864
- r(!M && v > ce.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET), i(!w);
1863
+ const { scrollTop: v, scrollHeight: b, clientHeight: M } = o.current, w = Math.abs(b - v - M) < fe.SCROLL_THRESHOLDS.BOTTOM_THRESHOLD, A = v < fe.SCROLL_THRESHOLDS.TOP_THRESHOLD;
1864
+ r(!A && v > fe.SCROLL_THRESHOLDS.SHOW_SCROLL_TOP_OFFSET), i(!w);
1865
1865
  }
1866
1866
  }, [e]), p = It(() => {
1867
1867
  o.current && (l(!0), o.current.scrollTo({
@@ -1869,7 +1869,7 @@ const To = Ic((e, t) => ({
1869
1869
  behavior: "smooth"
1870
1870
  }), setTimeout(() => {
1871
1871
  l(!1), d();
1872
- }, ce.ANIMATIONS.SCROLL_TIMEOUT));
1872
+ }, fe.ANIMATIONS.SCROLL_TIMEOUT));
1873
1873
  }, [d]);
1874
1874
  return {
1875
1875
  // State
@@ -1913,7 +1913,7 @@ const To = Ic((e, t) => ({
1913
1913
  }) => {
1914
1914
  const [n, i] = st(""), [a, l] = st(!1), o = ut(null), s = It((p) => {
1915
1915
  const v = p.target.value;
1916
- v.length <= ce.MAX_MESSAGE_LENGTH && i(v);
1916
+ v.length <= fe.MAX_MESSAGE_LENGTH && i(v);
1917
1917
  }, []), u = It(() => {
1918
1918
  n.trim() && !t && (e(n.trim()), i(""));
1919
1919
  }, [n, t, e]), m = It((p) => {
@@ -3160,8 +3160,8 @@ var A0 = {}, Pa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, m1 = /\n/g, f1 = /^\s*/, p1
3160
3160
  function i(v) {
3161
3161
  var b = v.match(m1);
3162
3162
  b && (r += b.length);
3163
- var E = v.lastIndexOf(b1);
3164
- n = ~E ? v.length - E : n + v.length;
3163
+ var M = v.lastIndexOf(b1);
3164
+ n = ~M ? v.length - M : n + v.length;
3165
3165
  }
3166
3166
  function a() {
3167
3167
  var v = { line: r, column: n };
@@ -3182,8 +3182,8 @@ var A0 = {}, Pa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, m1 = /\n/g, f1 = /^\s*/, p1
3182
3182
  function s(v) {
3183
3183
  var b = v.exec(e);
3184
3184
  if (b) {
3185
- var E = b[0];
3186
- return i(E), e = e.slice(E.length), b;
3185
+ var M = b[0];
3186
+ return i(M), e = e.slice(M.length), b;
3187
3187
  }
3188
3188
  }
3189
3189
  function u() {
@@ -3202,10 +3202,10 @@ var A0 = {}, Pa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, m1 = /\n/g, f1 = /^\s*/, p1
3202
3202
  ++b;
3203
3203
  if (b += 2, br === e.charAt(b - 1))
3204
3204
  return o("End of comment missing");
3205
- var E = e.slice(2, b - 2);
3206
- return n += 2, i(E), e = e.slice(b), n += 2, v({
3205
+ var M = e.slice(2, b - 2);
3206
+ return n += 2, i(M), e = e.slice(b), n += 2, v({
3207
3207
  type: x1,
3208
- comment: E
3208
+ comment: M
3209
3209
  });
3210
3210
  }
3211
3211
  }
@@ -3213,10 +3213,10 @@ var A0 = {}, Pa = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, m1 = /\n/g, f1 = /^\s*/, p1
3213
3213
  var v = a(), b = s(p1);
3214
3214
  if (b) {
3215
3215
  if (h(), !s(d1)) return o("property missing ':'");
3216
- var E = s(g1), w = v({
3216
+ var M = s(g1), w = v({
3217
3217
  type: w1,
3218
3218
  property: qa(b[0].replace(Pa, br)),
3219
- value: E ? qa(E[0].replace(Pa, br)) : br
3219
+ value: M ? qa(M[0].replace(Pa, br)) : br
3220
3220
  });
3221
3221
  return s(v1), w;
3222
3222
  }
@@ -3904,7 +3904,7 @@ function gh(e) {
3904
3904
  }
3905
3905
  function s(z) {
3906
3906
  if (n++, t.containerState._closeFlow) {
3907
- t.containerState._closeFlow = void 0, i && M();
3907
+ t.containerState._closeFlow = void 0, i && A();
3908
3908
  const D = t.events.length;
3909
3909
  let B = D, I;
3910
3910
  for (; B--; )
@@ -3933,7 +3933,7 @@ function gh(e) {
3933
3933
  return t.containerState = {}, e.check(Ya, m, h)(z);
3934
3934
  }
3935
3935
  function m(z) {
3936
- return i && M(), w(n), d(z);
3936
+ return i && A(), w(n), d(z);
3937
3937
  }
3938
3938
  function h(z) {
3939
3939
  return t.parser.lazy[t.now().line] = n !== r.length, l = t.now().offset, v(z);
@@ -3946,7 +3946,7 @@ function gh(e) {
3946
3946
  }
3947
3947
  function v(z) {
3948
3948
  if (z === null) {
3949
- i && M(), w(0), e.consume(z);
3949
+ i && A(), w(0), e.consume(z);
3950
3950
  return;
3951
3951
  }
3952
3952
  return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -3957,12 +3957,12 @@ function gh(e) {
3957
3957
  }
3958
3958
  function b(z) {
3959
3959
  if (z === null) {
3960
- E(e.exit("chunkFlow"), !0), w(0), e.consume(z);
3960
+ M(e.exit("chunkFlow"), !0), w(0), e.consume(z);
3961
3961
  return;
3962
3962
  }
3963
- return J(z) ? (e.consume(z), E(e.exit("chunkFlow")), n = 0, t.interrupt = void 0, o) : (e.consume(z), b);
3963
+ return J(z) ? (e.consume(z), M(e.exit("chunkFlow")), n = 0, t.interrupt = void 0, o) : (e.consume(z), b);
3964
3964
  }
3965
- function E(z, D) {
3965
+ function M(z, D) {
3966
3966
  const B = t.sliceStream(z);
3967
3967
  if (D && B.push(null), z.previous = a, a && (a.next = z), a = z, i.defineSkip(z.start), i.write(B), t.parser.lazy[z.start.line]) {
3968
3968
  let I = i.events.length;
@@ -3999,7 +3999,7 @@ function gh(e) {
3999
3999
  }
4000
4000
  r.length = z;
4001
4001
  }
4002
- function M() {
4002
+ function A() {
4003
4003
  i.write([null]), a = void 0, i = void 0, t.containerState._closeFlow = void 0;
4004
4004
  }
4005
4005
  }
@@ -4267,19 +4267,19 @@ function Ch(e, t, r) {
4267
4267
  return I === null || J(I) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), h(I)) : I === 96 && I === o ? r(I) : (e.consume(I), v);
4268
4268
  }
4269
4269
  function b(I) {
4270
- return e.attempt(i, D, E)(I);
4270
+ return e.attempt(i, D, M)(I);
4271
4271
  }
4272
- function E(I) {
4272
+ function M(I) {
4273
4273
  return e.enter("lineEnding"), e.consume(I), e.exit("lineEnding"), w;
4274
4274
  }
4275
4275
  function w(I) {
4276
- return a > 0 && pe(I) ? he(e, M, "linePrefix", a + 1)(I) : M(I);
4276
+ return a > 0 && pe(I) ? he(e, A, "linePrefix", a + 1)(I) : A(I);
4277
4277
  }
4278
- function M(I) {
4278
+ function A(I) {
4279
4279
  return I === null || J(I) ? e.check(Ka, b, D)(I) : (e.enter("codeFlowValue"), z(I));
4280
4280
  }
4281
4281
  function z(I) {
4282
- return I === null || J(I) ? (e.exit("codeFlowValue"), M(I)) : (e.consume(I), z);
4282
+ return I === null || J(I) ? (e.exit("codeFlowValue"), A(I)) : (e.consume(I), z);
4283
4283
  }
4284
4284
  function D(I) {
4285
4285
  return e.exit("codeFenced"), t(I);
@@ -4597,7 +4597,7 @@ function Ph(e, t) {
4597
4597
  l || (l = n.parser[r.contentType](r.start), r._contentTypeTextTrailing && (l._contentTypeTextTrailing = !0));
4598
4598
  const o = l.events, s = [], u = {};
4599
4599
  let m, h, d = -1, p = r, v = 0, b = 0;
4600
- const E = [b];
4600
+ const M = [b];
4601
4601
  for (; p; ) {
4602
4602
  for (; e.get(++i)[1] !== p; )
4603
4603
  ;
@@ -4605,10 +4605,10 @@ function Ph(e, t) {
4605
4605
  }
4606
4606
  for (p = r; ++d < o.length; )
4607
4607
  // Find a void token that includes a break.
4608
- o[d][0] === "exit" && o[d - 1][0] === "enter" && o[d][1].type === o[d - 1][1].type && o[d][1].start.line !== o[d][1].end.line && (b = d + 1, E.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
4609
- for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : E.pop(), d = E.length; d--; ) {
4610
- const w = o.slice(E[d], E[d + 1]), M = a.pop();
4611
- s.push([M, M + w.length - 1]), e.splice(M, 2, w);
4608
+ o[d][0] === "exit" && o[d - 1][0] === "enter" && o[d][1].type === o[d - 1][1].type && o[d][1].start.line !== o[d][1].end.line && (b = d + 1, M.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
4609
+ for (l.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : M.pop(), d = M.length; d--; ) {
4610
+ const w = o.slice(M[d], M[d + 1]), A = a.pop();
4611
+ s.push([A, A + w.length - 1]), e.splice(A, 2, w);
4612
4612
  }
4613
4613
  for (s.reverse(), d = -1; ++d < s.length; )
4614
4614
  u[v + s[d][0]] = v + s[d][1], v += s[d][1] - s[d][0] - 1;
@@ -4679,9 +4679,9 @@ function Ko(e, t, r, n, i, a, l, o, s) {
4679
4679
  return w === 60 || w === 62 || w === 92 ? (e.consume(w), p) : p(w);
4680
4680
  }
4681
4681
  function b(w) {
4682
- return !m && (w === null || w === 41 || Se(w)) ? (e.exit("chunkString"), e.exit(o), e.exit(l), e.exit(n), t(w)) : m < u && w === 40 ? (e.consume(w), m++, b) : w === 41 ? (e.consume(w), m--, b) : w === null || w === 32 || w === 40 || Ln(w) ? r(w) : (e.consume(w), w === 92 ? E : b);
4682
+ return !m && (w === null || w === 41 || Se(w)) ? (e.exit("chunkString"), e.exit(o), e.exit(l), e.exit(n), t(w)) : m < u && w === 40 ? (e.consume(w), m++, b) : w === 41 ? (e.consume(w), m--, b) : w === null || w === 32 || w === 40 || Ln(w) ? r(w) : (e.consume(w), w === 92 ? M : b);
4683
4683
  }
4684
- function E(w) {
4684
+ function M(w) {
4685
4685
  return w === 40 || w === 41 || w === 92 ? (e.consume(w), b) : b(w);
4686
4686
  }
4687
4687
  }
@@ -4945,104 +4945,104 @@ function im(e, t, r) {
4945
4945
  const n = this;
4946
4946
  let i, a, l, o, s;
4947
4947
  return u;
4948
- function u(A) {
4949
- return m(A);
4948
+ function u(E) {
4949
+ return m(E);
4950
4950
  }
4951
- function m(A) {
4952
- return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(A), h;
4951
+ function m(E) {
4952
+ return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(E), h;
4953
4953
  }
4954
- function h(A) {
4955
- return A === 33 ? (e.consume(A), d) : A === 47 ? (e.consume(A), a = !0, b) : A === 63 ? (e.consume(A), i = 3, n.interrupt ? t : S) : et(A) ? (e.consume(A), l = String.fromCharCode(A), E) : r(A);
4954
+ function h(E) {
4955
+ return E === 33 ? (e.consume(E), d) : E === 47 ? (e.consume(E), a = !0, b) : E === 63 ? (e.consume(E), i = 3, n.interrupt ? t : S) : et(E) ? (e.consume(E), l = String.fromCharCode(E), M) : r(E);
4956
4956
  }
4957
- function d(A) {
4958
- return A === 45 ? (e.consume(A), i = 2, p) : A === 91 ? (e.consume(A), i = 5, o = 0, v) : et(A) ? (e.consume(A), i = 4, n.interrupt ? t : S) : r(A);
4957
+ function d(E) {
4958
+ return E === 45 ? (e.consume(E), i = 2, p) : E === 91 ? (e.consume(E), i = 5, o = 0, v) : et(E) ? (e.consume(E), i = 4, n.interrupt ? t : S) : r(E);
4959
4959
  }
4960
- function p(A) {
4961
- return A === 45 ? (e.consume(A), n.interrupt ? t : S) : r(A);
4960
+ function p(E) {
4961
+ return E === 45 ? (e.consume(E), n.interrupt ? t : S) : r(E);
4962
4962
  }
4963
- function v(A) {
4963
+ function v(E) {
4964
4964
  const Fe = "CDATA[";
4965
- return A === Fe.charCodeAt(o++) ? (e.consume(A), o === Fe.length ? n.interrupt ? t : V : v) : r(A);
4965
+ return E === Fe.charCodeAt(o++) ? (e.consume(E), o === Fe.length ? n.interrupt ? t : V : v) : r(E);
4966
4966
  }
4967
- function b(A) {
4968
- return et(A) ? (e.consume(A), l = String.fromCharCode(A), E) : r(A);
4967
+ function b(E) {
4968
+ return et(E) ? (e.consume(E), l = String.fromCharCode(E), M) : r(E);
4969
4969
  }
4970
- function E(A) {
4971
- if (A === null || A === 47 || A === 62 || Se(A)) {
4972
- const Fe = A === 47, $e = l.toLowerCase();
4973
- return !Fe && !a && Za.includes($e) ? (i = 1, n.interrupt ? t(A) : V(A)) : Jh.includes(l.toLowerCase()) ? (i = 6, Fe ? (e.consume(A), w) : n.interrupt ? t(A) : V(A)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(A) : a ? M(A) : z(A));
4970
+ function M(E) {
4971
+ if (E === null || E === 47 || E === 62 || Se(E)) {
4972
+ const Fe = E === 47, $e = l.toLowerCase();
4973
+ return !Fe && !a && Za.includes($e) ? (i = 1, n.interrupt ? t(E) : V(E)) : Jh.includes(l.toLowerCase()) ? (i = 6, Fe ? (e.consume(E), w) : n.interrupt ? t(E) : V(E)) : (i = 7, n.interrupt && !n.parser.lazy[n.now().line] ? r(E) : a ? A(E) : z(E));
4974
4974
  }
4975
- return A === 45 || Ye(A) ? (e.consume(A), l += String.fromCharCode(A), E) : r(A);
4975
+ return E === 45 || Ye(E) ? (e.consume(E), l += String.fromCharCode(E), M) : r(E);
4976
4976
  }
4977
- function w(A) {
4978
- return A === 62 ? (e.consume(A), n.interrupt ? t : V) : r(A);
4977
+ function w(E) {
4978
+ return E === 62 ? (e.consume(E), n.interrupt ? t : V) : r(E);
4979
4979
  }
4980
- function M(A) {
4981
- return pe(A) ? (e.consume(A), M) : N(A);
4980
+ function A(E) {
4981
+ return pe(E) ? (e.consume(E), A) : N(E);
4982
4982
  }
4983
- function z(A) {
4984
- return A === 47 ? (e.consume(A), N) : A === 58 || A === 95 || et(A) ? (e.consume(A), D) : pe(A) ? (e.consume(A), z) : N(A);
4983
+ function z(E) {
4984
+ return E === 47 ? (e.consume(E), N) : E === 58 || E === 95 || et(E) ? (e.consume(E), D) : pe(E) ? (e.consume(E), z) : N(E);
4985
4985
  }
4986
- function D(A) {
4987
- return A === 45 || A === 46 || A === 58 || A === 95 || Ye(A) ? (e.consume(A), D) : B(A);
4986
+ function D(E) {
4987
+ return E === 45 || E === 46 || E === 58 || E === 95 || Ye(E) ? (e.consume(E), D) : B(E);
4988
4988
  }
4989
- function B(A) {
4990
- return A === 61 ? (e.consume(A), I) : pe(A) ? (e.consume(A), B) : z(A);
4989
+ function B(E) {
4990
+ return E === 61 ? (e.consume(E), I) : pe(E) ? (e.consume(E), B) : z(E);
4991
4991
  }
4992
- function I(A) {
4993
- return A === null || A === 60 || A === 61 || A === 62 || A === 96 ? r(A) : A === 34 || A === 39 ? (e.consume(A), s = A, F) : pe(A) ? (e.consume(A), I) : Y(A);
4992
+ function I(E) {
4993
+ return E === null || E === 60 || E === 61 || E === 62 || E === 96 ? r(E) : E === 34 || E === 39 ? (e.consume(E), s = E, F) : pe(E) ? (e.consume(E), I) : Y(E);
4994
4994
  }
4995
- function F(A) {
4996
- return A === s ? (e.consume(A), s = null, H) : A === null || J(A) ? r(A) : (e.consume(A), F);
4995
+ function F(E) {
4996
+ return E === s ? (e.consume(E), s = null, H) : E === null || J(E) ? r(E) : (e.consume(E), F);
4997
4997
  }
4998
- function Y(A) {
4999
- return A === null || A === 34 || A === 39 || A === 47 || A === 60 || A === 61 || A === 62 || A === 96 || Se(A) ? B(A) : (e.consume(A), Y);
4998
+ function Y(E) {
4999
+ return E === null || E === 34 || E === 39 || E === 47 || E === 60 || E === 61 || E === 62 || E === 96 || Se(E) ? B(E) : (e.consume(E), Y);
5000
5000
  }
5001
- function H(A) {
5002
- return A === 47 || A === 62 || pe(A) ? z(A) : r(A);
5001
+ function H(E) {
5002
+ return E === 47 || E === 62 || pe(E) ? z(E) : r(E);
5003
5003
  }
5004
- function N(A) {
5005
- return A === 62 ? (e.consume(A), $) : r(A);
5004
+ function N(E) {
5005
+ return E === 62 ? (e.consume(E), $) : r(E);
5006
5006
  }
5007
- function $(A) {
5008
- return A === null || J(A) ? V(A) : pe(A) ? (e.consume(A), $) : r(A);
5007
+ function $(E) {
5008
+ return E === null || J(E) ? V(E) : pe(E) ? (e.consume(E), $) : r(E);
5009
5009
  }
5010
- function V(A) {
5011
- return A === 45 && i === 2 ? (e.consume(A), me) : A === 60 && i === 1 ? (e.consume(A), ve) : A === 62 && i === 4 ? (e.consume(A), Me) : A === 63 && i === 3 ? (e.consume(A), S) : A === 93 && i === 5 ? (e.consume(A), Ue) : J(A) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(tm, we, ie)(A)) : A === null || J(A) ? (e.exit("htmlFlowData"), ie(A)) : (e.consume(A), V);
5010
+ function V(E) {
5011
+ return E === 45 && i === 2 ? (e.consume(E), ce) : E === 60 && i === 1 ? (e.consume(E), de) : E === 62 && i === 4 ? (e.consume(E), Me) : E === 63 && i === 3 ? (e.consume(E), S) : E === 93 && i === 5 ? (e.consume(E), Ue) : J(E) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(tm, we, ie)(E)) : E === null || J(E) ? (e.exit("htmlFlowData"), ie(E)) : (e.consume(E), V);
5012
5012
  }
5013
- function ie(A) {
5014
- return e.check(rm, te, we)(A);
5013
+ function ie(E) {
5014
+ return e.check(rm, te, we)(E);
5015
5015
  }
5016
- function te(A) {
5017
- return e.enter("lineEnding"), e.consume(A), e.exit("lineEnding"), K;
5016
+ function te(E) {
5017
+ return e.enter("lineEnding"), e.consume(E), e.exit("lineEnding"), K;
5018
5018
  }
5019
- function K(A) {
5020
- return A === null || J(A) ? ie(A) : (e.enter("htmlFlowData"), V(A));
5019
+ function K(E) {
5020
+ return E === null || J(E) ? ie(E) : (e.enter("htmlFlowData"), V(E));
5021
5021
  }
5022
- function me(A) {
5023
- return A === 45 ? (e.consume(A), S) : V(A);
5022
+ function ce(E) {
5023
+ return E === 45 ? (e.consume(E), S) : V(E);
5024
5024
  }
5025
- function ve(A) {
5026
- return A === 47 ? (e.consume(A), l = "", Ce) : V(A);
5025
+ function de(E) {
5026
+ return E === 47 ? (e.consume(E), l = "", Ce) : V(E);
5027
5027
  }
5028
- function Ce(A) {
5029
- if (A === 62) {
5028
+ function Ce(E) {
5029
+ if (E === 62) {
5030
5030
  const Fe = l.toLowerCase();
5031
- return Za.includes(Fe) ? (e.consume(A), Me) : V(A);
5031
+ return Za.includes(Fe) ? (e.consume(E), Me) : V(E);
5032
5032
  }
5033
- return et(A) && l.length < 8 ? (e.consume(A), l += String.fromCharCode(A), Ce) : V(A);
5033
+ return et(E) && l.length < 8 ? (e.consume(E), l += String.fromCharCode(E), Ce) : V(E);
5034
5034
  }
5035
- function Ue(A) {
5036
- return A === 93 ? (e.consume(A), S) : V(A);
5035
+ function Ue(E) {
5036
+ return E === 93 ? (e.consume(E), S) : V(E);
5037
5037
  }
5038
- function S(A) {
5039
- return A === 62 ? (e.consume(A), Me) : A === 45 && i === 2 ? (e.consume(A), S) : V(A);
5038
+ function S(E) {
5039
+ return E === 62 ? (e.consume(E), Me) : E === 45 && i === 2 ? (e.consume(E), S) : V(E);
5040
5040
  }
5041
- function Me(A) {
5042
- return A === null || J(A) ? (e.exit("htmlFlowData"), we(A)) : (e.consume(A), Me);
5041
+ function Me(E) {
5042
+ return E === null || J(E) ? (e.exit("htmlFlowData"), we(E)) : (e.consume(E), Me);
5043
5043
  }
5044
- function we(A) {
5045
- return e.exit("htmlFlow"), t(A);
5044
+ function we(E) {
5045
+ return e.exit("htmlFlow"), t(E);
5046
5046
  }
5047
5047
  }
5048
5048
  function am(e, t, r) {
@@ -5076,41 +5076,41 @@ function sm(e, t, r) {
5076
5076
  return S === 33 ? (e.consume(S), u) : S === 47 ? (e.consume(S), B) : S === 63 ? (e.consume(S), z) : et(S) ? (e.consume(S), Y) : r(S);
5077
5077
  }
5078
5078
  function u(S) {
5079
- return S === 45 ? (e.consume(S), m) : S === 91 ? (e.consume(S), a = 0, v) : et(S) ? (e.consume(S), M) : r(S);
5079
+ return S === 45 ? (e.consume(S), m) : S === 91 ? (e.consume(S), a = 0, v) : et(S) ? (e.consume(S), A) : r(S);
5080
5080
  }
5081
5081
  function m(S) {
5082
5082
  return S === 45 ? (e.consume(S), p) : r(S);
5083
5083
  }
5084
5084
  function h(S) {
5085
- return S === null ? r(S) : S === 45 ? (e.consume(S), d) : J(S) ? (l = h, ve(S)) : (e.consume(S), h);
5085
+ return S === null ? r(S) : S === 45 ? (e.consume(S), d) : J(S) ? (l = h, de(S)) : (e.consume(S), h);
5086
5086
  }
5087
5087
  function d(S) {
5088
5088
  return S === 45 ? (e.consume(S), p) : h(S);
5089
5089
  }
5090
5090
  function p(S) {
5091
- return S === 62 ? me(S) : S === 45 ? d(S) : h(S);
5091
+ return S === 62 ? ce(S) : S === 45 ? d(S) : h(S);
5092
5092
  }
5093
5093
  function v(S) {
5094
5094
  const Me = "CDATA[";
5095
5095
  return S === Me.charCodeAt(a++) ? (e.consume(S), a === Me.length ? b : v) : r(S);
5096
5096
  }
5097
5097
  function b(S) {
5098
- return S === null ? r(S) : S === 93 ? (e.consume(S), E) : J(S) ? (l = b, ve(S)) : (e.consume(S), b);
5098
+ return S === null ? r(S) : S === 93 ? (e.consume(S), M) : J(S) ? (l = b, de(S)) : (e.consume(S), b);
5099
5099
  }
5100
- function E(S) {
5100
+ function M(S) {
5101
5101
  return S === 93 ? (e.consume(S), w) : b(S);
5102
5102
  }
5103
5103
  function w(S) {
5104
- return S === 62 ? me(S) : S === 93 ? (e.consume(S), w) : b(S);
5104
+ return S === 62 ? ce(S) : S === 93 ? (e.consume(S), w) : b(S);
5105
5105
  }
5106
- function M(S) {
5107
- return S === null || S === 62 ? me(S) : J(S) ? (l = M, ve(S)) : (e.consume(S), M);
5106
+ function A(S) {
5107
+ return S === null || S === 62 ? ce(S) : J(S) ? (l = A, de(S)) : (e.consume(S), A);
5108
5108
  }
5109
5109
  function z(S) {
5110
- return S === null ? r(S) : S === 63 ? (e.consume(S), D) : J(S) ? (l = z, ve(S)) : (e.consume(S), z);
5110
+ return S === null ? r(S) : S === 63 ? (e.consume(S), D) : J(S) ? (l = z, de(S)) : (e.consume(S), z);
5111
5111
  }
5112
5112
  function D(S) {
5113
- return S === 62 ? me(S) : z(S);
5113
+ return S === 62 ? ce(S) : z(S);
5114
5114
  }
5115
5115
  function B(S) {
5116
5116
  return et(S) ? (e.consume(S), I) : r(S);
@@ -5119,25 +5119,25 @@ function sm(e, t, r) {
5119
5119
  return S === 45 || Ye(S) ? (e.consume(S), I) : F(S);
5120
5120
  }
5121
5121
  function F(S) {
5122
- return J(S) ? (l = F, ve(S)) : pe(S) ? (e.consume(S), F) : me(S);
5122
+ return J(S) ? (l = F, de(S)) : pe(S) ? (e.consume(S), F) : ce(S);
5123
5123
  }
5124
5124
  function Y(S) {
5125
5125
  return S === 45 || Ye(S) ? (e.consume(S), Y) : S === 47 || S === 62 || Se(S) ? H(S) : r(S);
5126
5126
  }
5127
5127
  function H(S) {
5128
- return S === 47 ? (e.consume(S), me) : S === 58 || S === 95 || et(S) ? (e.consume(S), N) : J(S) ? (l = H, ve(S)) : pe(S) ? (e.consume(S), H) : me(S);
5128
+ return S === 47 ? (e.consume(S), ce) : S === 58 || S === 95 || et(S) ? (e.consume(S), N) : J(S) ? (l = H, de(S)) : pe(S) ? (e.consume(S), H) : ce(S);
5129
5129
  }
5130
5130
  function N(S) {
5131
5131
  return S === 45 || S === 46 || S === 58 || S === 95 || Ye(S) ? (e.consume(S), N) : $(S);
5132
5132
  }
5133
5133
  function $(S) {
5134
- return S === 61 ? (e.consume(S), V) : J(S) ? (l = $, ve(S)) : pe(S) ? (e.consume(S), $) : H(S);
5134
+ return S === 61 ? (e.consume(S), V) : J(S) ? (l = $, de(S)) : pe(S) ? (e.consume(S), $) : H(S);
5135
5135
  }
5136
5136
  function V(S) {
5137
- return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? r(S) : S === 34 || S === 39 ? (e.consume(S), i = S, ie) : J(S) ? (l = V, ve(S)) : pe(S) ? (e.consume(S), V) : (e.consume(S), te);
5137
+ return S === null || S === 60 || S === 61 || S === 62 || S === 96 ? r(S) : S === 34 || S === 39 ? (e.consume(S), i = S, ie) : J(S) ? (l = V, de(S)) : pe(S) ? (e.consume(S), V) : (e.consume(S), te);
5138
5138
  }
5139
5139
  function ie(S) {
5140
- return S === i ? (e.consume(S), i = void 0, K) : S === null ? r(S) : J(S) ? (l = ie, ve(S)) : (e.consume(S), ie);
5140
+ return S === i ? (e.consume(S), i = void 0, K) : S === null ? r(S) : J(S) ? (l = ie, de(S)) : (e.consume(S), ie);
5141
5141
  }
5142
5142
  function te(S) {
5143
5143
  return S === null || S === 34 || S === 39 || S === 60 || S === 61 || S === 96 ? r(S) : S === 47 || S === 62 || Se(S) ? H(S) : (e.consume(S), te);
@@ -5145,10 +5145,10 @@ function sm(e, t, r) {
5145
5145
  function K(S) {
5146
5146
  return S === 47 || S === 62 || Se(S) ? H(S) : r(S);
5147
5147
  }
5148
- function me(S) {
5148
+ function ce(S) {
5149
5149
  return S === 62 ? (e.consume(S), e.exit("htmlTextData"), e.exit("htmlText"), t) : r(S);
5150
5150
  }
5151
- function ve(S) {
5151
+ function de(S) {
5152
5152
  return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(S), e.exit("lineEnding"), Ce;
5153
5153
  }
5154
5154
  function Ce(S) {
@@ -5691,7 +5691,7 @@ function Xm(e, t, r) {
5691
5691
  const s = {
5692
5692
  attempt: F(B),
5693
5693
  check: F(I),
5694
- consume: M,
5694
+ consume: A,
5695
5695
  enter: z,
5696
5696
  exit: D,
5697
5697
  interrupt: F(I, {
@@ -5712,7 +5712,7 @@ function Xm(e, t, r) {
5712
5712
  let m = t.tokenize.call(u, s);
5713
5713
  return t.resolveAll && a.push(t), u;
5714
5714
  function h($) {
5715
- return l = wt(l, $), E(), l[l.length - 1] !== null ? [] : (Y(t, 0), u.events = Gn(a, u.events, u), u.events);
5715
+ return l = wt(l, $), M(), l[l.length - 1] !== null ? [] : (Y(t, 0), u.events = Gn(a, u.events, u), u.events);
5716
5716
  }
5717
5717
  function d($, V) {
5718
5718
  return Qm(p($), V);
@@ -5739,7 +5739,7 @@ function Xm(e, t, r) {
5739
5739
  function b($) {
5740
5740
  i[$.line] = $.column, N();
5741
5741
  }
5742
- function E() {
5742
+ function M() {
5743
5743
  let $;
5744
5744
  for (; n._index < l.length; ) {
5745
5745
  const V = l[n._index];
@@ -5753,7 +5753,7 @@ function Xm(e, t, r) {
5753
5753
  function w($) {
5754
5754
  m = m($);
5755
5755
  }
5756
- function M($) {
5756
+ function A($) {
5757
5757
  J($) ? (n.line++, n.column = 1, n.offset += $ === -3 ? 2 : 1, N()) : $ !== -1 && (n.column++, n.offset++), n._bufferIndex < 0 ? n._index++ : (n._bufferIndex++, n._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
5758
5758
  // strings.
5759
5759
  /** @type {string} */
@@ -5775,8 +5775,8 @@ function Xm(e, t, r) {
5775
5775
  }
5776
5776
  function F($, V) {
5777
5777
  return ie;
5778
- function ie(te, K, me) {
5779
- let ve, Ce, Ue, S;
5778
+ function ie(te, K, ce) {
5779
+ let de, Ce, Ue, S;
5780
5780
  return Array.isArray(te) ? (
5781
5781
  /* c8 ignore next 1 */
5782
5782
  we(te)
@@ -5800,9 +5800,9 @@ function Xm(e, t, r) {
5800
5800
  }
5801
5801
  }
5802
5802
  function we(ze) {
5803
- return ve = ze, Ce = 0, ze.length === 0 ? me : A(ze[Ce]);
5803
+ return de = ze, Ce = 0, ze.length === 0 ? ce : E(ze[Ce]);
5804
5804
  }
5805
- function A(ze) {
5805
+ function E(ze) {
5806
5806
  return Ve;
5807
5807
  function Ve(Re) {
5808
5808
  return S = H(), Ue = ze, ze.partial || (u.currentConstruct = ze), ze.name && u.parser.constructs.disable.null.includes(ze.name) ? $e() : ze.tokenize.call(
@@ -5820,7 +5820,7 @@ function Xm(e, t, r) {
5820
5820
  return $(Ue, S), K;
5821
5821
  }
5822
5822
  function $e(ze) {
5823
- return S.restore(), ++Ce < ve.length ? A(ve[Ce]) : me;
5823
+ return S.restore(), ++Ce < de.length ? E(de[Ce]) : ce;
5824
5824
  }
5825
5825
  }
5826
5826
  }
@@ -5831,9 +5831,9 @@ function Xm(e, t, r) {
5831
5831
  const $ = v(), V = u.previous, ie = u.currentConstruct, te = u.events.length, K = Array.from(o);
5832
5832
  return {
5833
5833
  from: te,
5834
- restore: me
5834
+ restore: ce
5835
5835
  };
5836
- function me() {
5836
+ function ce() {
5837
5837
  n = $, u.previous = V, u.currentConstruct = ie, u.events.length = te, o = K, N();
5838
5838
  }
5839
5839
  }
@@ -6014,7 +6014,7 @@ function lf(e) {
6014
6014
  listOrdered: a(mr, h),
6015
6015
  listUnordered: a(mr),
6016
6016
  paragraph: a(ni),
6017
- reference: A,
6017
+ reference: E,
6018
6018
  referenceString: l,
6019
6019
  resourceDestinationString: l,
6020
6020
  resourceTitleString: l,
@@ -6034,7 +6034,7 @@ function lf(e) {
6034
6034
  characterReferenceMarkerNumeric: $e,
6035
6035
  characterReferenceValue: ze,
6036
6036
  characterReference: Ve,
6037
- codeFenced: s(E),
6037
+ codeFenced: s(M),
6038
6038
  codeFencedFence: b,
6039
6039
  codeFencedFenceInfo: p,
6040
6040
  codeFencedFenceMeta: v,
@@ -6045,7 +6045,7 @@ function lf(e) {
6045
6045
  data: N,
6046
6046
  definition: s(),
6047
6047
  definitionDestinationString: D,
6048
- definitionLabelString: M,
6048
+ definitionLabelString: A,
6049
6049
  definitionTitleString: z,
6050
6050
  emphasis: s(),
6051
6051
  hardBreakEscape: s(V),
@@ -6054,11 +6054,11 @@ function lf(e) {
6054
6054
  htmlFlowData: N,
6055
6055
  htmlText: s(te),
6056
6056
  htmlTextData: N,
6057
- image: s(ve),
6057
+ image: s(de),
6058
6058
  label: Ue,
6059
6059
  labelText: Ce,
6060
6060
  lineEnding: $,
6061
- link: s(me),
6061
+ link: s(ce),
6062
6062
  listItem: s(),
6063
6063
  listOrdered: s(),
6064
6064
  listUnordered: s(),
@@ -6091,14 +6091,14 @@ function lf(e) {
6091
6091
  buffer: l,
6092
6092
  resume: m,
6093
6093
  data: r
6094
- }, fe = [];
6094
+ }, me = [];
6095
6095
  let be = -1;
6096
6096
  for (; ++be < L.length; )
6097
6097
  if (L[be][1].type === "listOrdered" || L[be][1].type === "listUnordered")
6098
6098
  if (L[be][0] === "enter")
6099
- fe.push(be);
6099
+ me.push(be);
6100
6100
  else {
6101
- const it = fe.pop();
6101
+ const it = me.pop();
6102
6102
  be = i(L, it, be);
6103
6103
  }
6104
6104
  for (be = -1; ++be < L.length; ) {
@@ -6127,9 +6127,9 @@ function lf(e) {
6127
6127
  return W;
6128
6128
  }
6129
6129
  function i(L, W, le) {
6130
- let fe = W - 1, be = -1, it = !1, $t, Mt, fr, pr;
6131
- for (; ++fe <= le; ) {
6132
- const Ke = L[fe];
6130
+ let me = W - 1, be = -1, it = !1, $t, Mt, fr, pr;
6131
+ for (; ++me <= le; ) {
6132
+ const Ke = L[me];
6133
6133
  switch (Ke[1].type) {
6134
6134
  case "listUnordered":
6135
6135
  case "listOrdered":
@@ -6138,7 +6138,7 @@ function lf(e) {
6138
6138
  break;
6139
6139
  }
6140
6140
  case "lineEndingBlank": {
6141
- Ke[0] === "enter" && ($t && !pr && !be && !fr && (fr = fe), pr = void 0);
6141
+ Ke[0] === "enter" && ($t && !pr && !be && !fr && (fr = me), pr = void 0);
6142
6142
  break;
6143
6143
  }
6144
6144
  case "linePrefix":
@@ -6152,7 +6152,7 @@ function lf(e) {
6152
6152
  }
6153
6153
  if (!be && Ke[0] === "enter" && Ke[1].type === "listItemPrefix" || be === -1 && Ke[0] === "exit" && (Ke[1].type === "listUnordered" || Ke[1].type === "listOrdered")) {
6154
6154
  if ($t) {
6155
- let tr = fe;
6155
+ let tr = me;
6156
6156
  for (Mt = void 0; tr--; ) {
6157
6157
  const Ct = L[tr];
6158
6158
  if (Ct[1].type === "lineEnding" || Ct[1].type === "lineEndingBlank") {
@@ -6160,7 +6160,7 @@ function lf(e) {
6160
6160
  Mt && (L[Mt][1].type = "lineEndingBlank", it = !0), Ct[1].type = "lineEnding", Mt = tr;
6161
6161
  } else if (!(Ct[1].type === "linePrefix" || Ct[1].type === "blockQuotePrefix" || Ct[1].type === "blockQuotePrefixWhitespace" || Ct[1].type === "blockQuoteMarker" || Ct[1].type === "listItemIndent")) break;
6162
6162
  }
6163
- fr && (!Mt || fr < Mt) && ($t._spread = !0), $t.end = Object.assign({}, Mt ? L[Mt][1].start : Ke[1].end), L.splice(Mt || fe, 0, ["exit", $t, Ke[2]]), fe++, le++;
6163
+ fr && (!Mt || fr < Mt) && ($t._spread = !0), $t.end = Object.assign({}, Mt ? L[Mt][1].start : Ke[1].end), L.splice(Mt || me, 0, ["exit", $t, Ke[2]]), me++, le++;
6164
6164
  }
6165
6165
  if (Ke[1].type === "listItemPrefix") {
6166
6166
  const tr = {
@@ -6170,7 +6170,7 @@ function lf(e) {
6170
6170
  // @ts-expect-error: we’ll add `end` in a second.
6171
6171
  end: void 0
6172
6172
  };
6173
- $t = tr, L.splice(fe, 0, ["enter", tr, Ke[2]]), fe++, le++, fr = void 0, pr = !0;
6173
+ $t = tr, L.splice(me, 0, ["enter", tr, Ke[2]]), me++, le++, fr = void 0, pr = !0;
6174
6174
  }
6175
6175
  }
6176
6176
  }
@@ -6178,8 +6178,8 @@ function lf(e) {
6178
6178
  }
6179
6179
  function a(L, W) {
6180
6180
  return le;
6181
- function le(fe) {
6182
- o.call(this, L(fe), fe), W && W.call(this, fe);
6181
+ function le(me) {
6182
+ o.call(this, L(me), me), W && W.call(this, me);
6183
6183
  }
6184
6184
  }
6185
6185
  function l() {
@@ -6202,9 +6202,9 @@ function lf(e) {
6202
6202
  }
6203
6203
  }
6204
6204
  function u(L, W) {
6205
- const le = this.stack.pop(), fe = this.tokenStack.pop();
6206
- if (fe)
6207
- fe[0].type !== L.type && (W ? W.call(this, L, fe[0]) : (fe[1] || tl).call(this, L, fe[0]));
6205
+ const le = this.stack.pop(), me = this.tokenStack.pop();
6206
+ if (me)
6207
+ me[0].type !== L.type && (W ? W.call(this, L, me[0]) : (me[1] || tl).call(this, L, me[0]));
6208
6208
  else throw new Error("Cannot close `" + L.type + "` (" + Qr({
6209
6209
  start: L.start,
6210
6210
  end: L.end
@@ -6234,7 +6234,7 @@ function lf(e) {
6234
6234
  function b() {
6235
6235
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
6236
6236
  }
6237
- function E() {
6237
+ function M() {
6238
6238
  const L = this.resume(), W = this.stack[this.stack.length - 1];
6239
6239
  W.value = L.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
6240
6240
  }
@@ -6242,7 +6242,7 @@ function lf(e) {
6242
6242
  const L = this.resume(), W = this.stack[this.stack.length - 1];
6243
6243
  W.value = L.replace(/(\r?\n|\r)$/g, "");
6244
6244
  }
6245
- function M(L) {
6245
+ function A(L) {
6246
6246
  const W = this.resume(), le = this.stack[this.stack.length - 1];
6247
6247
  le.label = W, le.identifier = Nt(this.sliceSerialize(L)).toLowerCase();
6248
6248
  }
@@ -6273,12 +6273,12 @@ function lf(e) {
6273
6273
  }
6274
6274
  function H(L) {
6275
6275
  const le = this.stack[this.stack.length - 1].children;
6276
- let fe = le[le.length - 1];
6277
- (!fe || fe.type !== "text") && (fe = ii(), fe.position = {
6276
+ let me = le[le.length - 1];
6277
+ (!me || me.type !== "text") && (me = ii(), me.position = {
6278
6278
  start: rr(L.start),
6279
6279
  // @ts-expect-error: we’ll add `end` later.
6280
6280
  end: void 0
6281
- }, le.push(fe)), this.stack.push(fe);
6281
+ }, le.push(me)), this.stack.push(me);
6282
6282
  }
6283
6283
  function N(L) {
6284
6284
  const W = this.stack.pop();
@@ -6308,7 +6308,7 @@ function lf(e) {
6308
6308
  const L = this.resume(), W = this.stack[this.stack.length - 1];
6309
6309
  W.value = L;
6310
6310
  }
6311
- function me() {
6311
+ function ce() {
6312
6312
  const L = this.stack[this.stack.length - 1];
6313
6313
  if (this.data.inReference) {
6314
6314
  const W = this.data.referenceType || "shortcut";
@@ -6317,7 +6317,7 @@ function lf(e) {
6317
6317
  delete L.identifier, delete L.label;
6318
6318
  this.data.referenceType = void 0;
6319
6319
  }
6320
- function ve() {
6320
+ function de() {
6321
6321
  const L = this.stack[this.stack.length - 1];
6322
6322
  if (this.data.inReference) {
6323
6323
  const W = this.data.referenceType || "shortcut";
@@ -6333,8 +6333,8 @@ function lf(e) {
6333
6333
  function Ue() {
6334
6334
  const L = this.stack[this.stack.length - 1], W = this.resume(), le = this.stack[this.stack.length - 1];
6335
6335
  if (this.data.inReference = !0, le.type === "link") {
6336
- const fe = L.children;
6337
- le.children = fe;
6336
+ const me = L.children;
6337
+ le.children = me;
6338
6338
  } else
6339
6339
  le.alt = W;
6340
6340
  }
@@ -6349,7 +6349,7 @@ function lf(e) {
6349
6349
  function we() {
6350
6350
  this.data.inReference = void 0;
6351
6351
  }
6352
- function A() {
6352
+ function E() {
6353
6353
  this.data.referenceType = "collapsed";
6354
6354
  }
6355
6355
  function Fe(L) {
@@ -6361,10 +6361,10 @@ function lf(e) {
6361
6361
  }
6362
6362
  function ze(L) {
6363
6363
  const W = this.sliceSerialize(L), le = this.data.characterReferenceType;
6364
- let fe;
6365
- le ? (fe = Vo(W, le === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : fe = N0(W);
6364
+ let me;
6365
+ le ? (me = Vo(W, le === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : me = N0(W);
6366
6366
  const be = this.stack[this.stack.length - 1];
6367
- be.value += fe;
6367
+ be.value += me;
6368
6368
  }
6369
6369
  function Ve(L) {
6370
6370
  const W = this.stack.pop();
@@ -7095,8 +7095,8 @@ function qf(e) {
7095
7095
  const v = [], b = e.footnoteCounts.get(h);
7096
7096
  for (; b !== void 0 && ++p <= b; ) {
7097
7097
  v.length > 0 && v.push({ type: "text", value: " " });
7098
- let M = typeof r == "string" ? r : r(s, p);
7099
- typeof M == "string" && (M = { type: "text", value: M }), v.push({
7098
+ let A = typeof r == "string" ? r : r(s, p);
7099
+ typeof A == "string" && (A = { type: "text", value: A }), v.push({
7100
7100
  type: "element",
7101
7101
  tagName: "a",
7102
7102
  properties: {
@@ -7105,13 +7105,13 @@ function qf(e) {
7105
7105
  ariaLabel: typeof n == "string" ? n : n(s, p),
7106
7106
  className: ["data-footnote-backref"]
7107
7107
  },
7108
- children: Array.isArray(M) ? M : [M]
7108
+ children: Array.isArray(A) ? A : [A]
7109
7109
  });
7110
7110
  }
7111
- const E = m[m.length - 1];
7112
- if (E && E.type === "element" && E.tagName === "p") {
7113
- const M = E.children[E.children.length - 1];
7114
- M && M.type === "text" ? M.value += " " : E.children.push({ type: "text", value: " " }), E.children.push(...v);
7111
+ const M = m[m.length - 1];
7112
+ if (M && M.type === "element" && M.tagName === "p") {
7113
+ const A = M.children[M.children.length - 1];
7114
+ A && A.type === "text" ? A.value += " " : M.children.push({ type: "text", value: " " }), M.children.push(...v);
7115
7115
  } else
7116
7116
  m.push(...v);
7117
7117
  const w = {
@@ -7256,7 +7256,7 @@ function F0(e, t, r, n) {
7256
7256
  }
7257
7257
  return d;
7258
7258
  function d() {
7259
- let p = ss, v, b, E;
7259
+ let p = ss, v, b, M;
7260
7260
  if ((!t || a(s, u, m[m.length - 1] || void 0)) && (p = Yf(r(s, m)), p[0] === i0))
7261
7261
  return p;
7262
7262
  if ("children" in s && s.children) {
@@ -7265,9 +7265,9 @@ function F0(e, t, r, n) {
7265
7265
  s
7266
7266
  );
7267
7267
  if (w.children && p[0] !== us)
7268
- for (b = (n ? w.children.length : -1) + l, E = m.concat(w); b > -1 && b < w.children.length; ) {
7269
- const M = w.children[b];
7270
- if (v = o(M, b, E)(), v[0] === i0)
7268
+ for (b = (n ? w.children.length : -1) + l, M = m.concat(w); b > -1 && b < w.children.length; ) {
7269
+ const A = w.children[b];
7270
+ if (v = o(A, b, M)(), v[0] === i0)
7271
7271
  return v;
7272
7272
  b = typeof v[1] == "number" ? v[1] : b + l;
7273
7273
  }
@@ -7281,7 +7281,7 @@ function Yf(e) {
7281
7281
  }
7282
7282
  function P0(e, t, r, n) {
7283
7283
  let i, a, l;
7284
- typeof t == "function" ? (a = void 0, l = t, i = r) : (a = t, l = r, i = n), F0(e, a, o, i);
7284
+ typeof t == "function" && typeof r != "function" ? (a = void 0, l = t, i = r) : (a = t, l = r, i = n), F0(e, a, o, i);
7285
7285
  function o(s, u) {
7286
7286
  const m = u[u.length - 1], h = m ? m.children.indexOf(s) : void 0;
7287
7287
  return l(s, h, m);
@@ -7314,7 +7314,7 @@ function Kf(e, t) {
7314
7314
  return p(o, m, h);
7315
7315
  if (o.options.passThrough && o.options.passThrough.includes(d)) {
7316
7316
  if ("children" in m) {
7317
- const { children: b, ...E } = m, w = Bn(E);
7317
+ const { children: b, ...M } = m, w = Bn(M);
7318
7318
  return w.children = o.all(m), w;
7319
7319
  }
7320
7320
  return Bn(m);
@@ -8839,52 +8839,52 @@ function R4(e, t, r) {
8839
8839
  const n = this, i = n.events[n.events.length - 1], a = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0;
8840
8840
  let l = 0;
8841
8841
  return o;
8842
- function o(M) {
8843
- return e.enter("mathFlow"), e.enter("mathFlowFence"), e.enter("mathFlowFenceSequence"), s(M);
8842
+ function o(A) {
8843
+ return e.enter("mathFlow"), e.enter("mathFlowFence"), e.enter("mathFlowFenceSequence"), s(A);
8844
8844
  }
8845
- function s(M) {
8846
- return M === 36 ? (e.consume(M), l++, s) : l < 2 ? r(M) : (e.exit("mathFlowFenceSequence"), he(e, u, "whitespace")(M));
8845
+ function s(A) {
8846
+ return A === 36 ? (e.consume(A), l++, s) : l < 2 ? r(A) : (e.exit("mathFlowFenceSequence"), he(e, u, "whitespace")(A));
8847
8847
  }
8848
- function u(M) {
8849
- return M === null || J(M) ? h(M) : (e.enter("mathFlowFenceMeta"), e.enter("chunkString", {
8848
+ function u(A) {
8849
+ return A === null || J(A) ? h(A) : (e.enter("mathFlowFenceMeta"), e.enter("chunkString", {
8850
8850
  contentType: "string"
8851
- }), m(M));
8851
+ }), m(A));
8852
8852
  }
8853
- function m(M) {
8854
- return M === null || J(M) ? (e.exit("chunkString"), e.exit("mathFlowFenceMeta"), h(M)) : M === 36 ? r(M) : (e.consume(M), m);
8853
+ function m(A) {
8854
+ return A === null || J(A) ? (e.exit("chunkString"), e.exit("mathFlowFenceMeta"), h(A)) : A === 36 ? r(A) : (e.consume(A), m);
8855
8855
  }
8856
- function h(M) {
8857
- return e.exit("mathFlowFence"), n.interrupt ? t(M) : e.attempt(kl, d, E)(M);
8856
+ function h(A) {
8857
+ return e.exit("mathFlowFence"), n.interrupt ? t(A) : e.attempt(kl, d, M)(A);
8858
8858
  }
8859
- function d(M) {
8859
+ function d(A) {
8860
8860
  return e.attempt({
8861
8861
  tokenize: w,
8862
8862
  partial: !0
8863
- }, E, p)(M);
8863
+ }, M, p)(A);
8864
8864
  }
8865
- function p(M) {
8866
- return (a ? he(e, v, "linePrefix", a + 1) : v)(M);
8865
+ function p(A) {
8866
+ return (a ? he(e, v, "linePrefix", a + 1) : v)(A);
8867
8867
  }
8868
- function v(M) {
8869
- return M === null ? E(M) : J(M) ? e.attempt(kl, d, E)(M) : (e.enter("mathFlowValue"), b(M));
8868
+ function v(A) {
8869
+ return A === null ? M(A) : J(A) ? e.attempt(kl, d, M)(A) : (e.enter("mathFlowValue"), b(A));
8870
8870
  }
8871
- function b(M) {
8872
- return M === null || J(M) ? (e.exit("mathFlowValue"), v(M)) : (e.consume(M), b);
8871
+ function b(A) {
8872
+ return A === null || J(A) ? (e.exit("mathFlowValue"), v(A)) : (e.consume(A), b);
8873
8873
  }
8874
- function E(M) {
8875
- return e.exit("mathFlow"), t(M);
8874
+ function M(A) {
8875
+ return e.exit("mathFlow"), t(A);
8876
8876
  }
8877
- function w(M, z, D) {
8877
+ function w(A, z, D) {
8878
8878
  let B = 0;
8879
- return he(M, I, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
8879
+ return he(A, I, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
8880
8880
  function I(H) {
8881
- return M.enter("mathFlowFence"), M.enter("mathFlowFenceSequence"), F(H);
8881
+ return A.enter("mathFlowFence"), A.enter("mathFlowFenceSequence"), F(H);
8882
8882
  }
8883
8883
  function F(H) {
8884
- return H === 36 ? (B++, M.consume(H), F) : B < l ? D(H) : (M.exit("mathFlowFenceSequence"), he(M, Y, "whitespace")(H));
8884
+ return H === 36 ? (B++, A.consume(H), F) : B < l ? D(H) : (A.exit("mathFlowFenceSequence"), he(A, Y, "whitespace")(H));
8885
8885
  }
8886
8886
  function Y(H) {
8887
- return H === null || J(H) ? (M.exit("mathFlowFence"), z(H)) : D(H);
8887
+ return H === null || J(H) ? (A.exit("mathFlowFence"), z(H)) : D(H);
8888
8888
  }
8889
8889
  }
8890
8890
  }
@@ -13316,15 +13316,15 @@ var kn = [
13316
13316
  if (n === "mathord")
13317
13317
  return zt(a, "Math-Italic", i, r, l.concat(["mathnormal"]));
13318
13318
  if (n === "textord") {
13319
- var E = Ee[i][a] && Ee[i][a].font;
13320
- if (E === "ams") {
13319
+ var M = Ee[i][a] && Ee[i][a].font;
13320
+ if (M === "ams") {
13321
13321
  var w = Sn("amsrm", r.fontWeight, r.fontShape);
13322
13322
  return zt(a, w, i, r, l.concat("amsrm", r.fontWeight, r.fontShape));
13323
- } else if (E === "main" || !E) {
13324
- var M = Sn("textrm", r.fontWeight, r.fontShape);
13325
- return zt(a, M, i, r, l.concat(r.fontWeight, r.fontShape));
13323
+ } else if (M === "main" || !M) {
13324
+ var A = Sn("textrm", r.fontWeight, r.fontShape);
13325
+ return zt(a, A, i, r, l.concat(r.fontWeight, r.fontShape));
13326
13326
  } else {
13327
- var z = Sn(E, r.fontWeight, r.fontShape);
13327
+ var z = Sn(M, r.fontWeight, r.fontShape);
13328
13328
  return zt(a, z, i, r, l.concat(z, r.fontWeight, r.fontShape));
13329
13329
  }
13330
13330
  } else
@@ -13427,8 +13427,8 @@ var kn = [
13427
13427
  if (b.type === "kern")
13428
13428
  p += b.size;
13429
13429
  else {
13430
- var E = b.elem, w = b.wrapperClasses || [], M = b.wrapperStyle || {}, z = ot(w, [u, E], void 0, M);
13431
- z.style.top = G(-a - p - E.depth), b.marginLeft && (z.style.marginLeft = b.marginLeft), b.marginRight && (z.style.marginRight = b.marginRight), m.push(z), p += E.height + E.depth;
13430
+ var M = b.elem, w = b.wrapperClasses || [], A = b.wrapperStyle || {}, z = ot(w, [u, M], void 0, A);
13431
+ z.style.top = G(-a - p - M.depth), b.marginLeft && (z.style.marginLeft = b.marginLeft), b.marginRight && (z.style.marginRight = b.marginRight), m.push(z), p += M.height + M.depth;
13432
13432
  }
13433
13433
  h = Math.min(h, p), d = Math.max(d, p);
13434
13434
  }
@@ -13713,14 +13713,14 @@ var qn = function(t) {
13713
13713
  }
13714
13714
  var h = Kt([i[0] || "leftmost"], [], r), d = Kt([i[1] || "rightmost"], [], r), p = n === "root";
13715
13715
  return Rl(a, (v, b) => {
13716
- var E = b.classes[0], w = v.classes[0];
13717
- E === "mbin" && ee.contains(_p, w) ? b.classes[0] = "mord" : w === "mbin" && ee.contains(Pp, E) && (v.classes[0] = "mord");
13716
+ var M = b.classes[0], w = v.classes[0];
13717
+ M === "mbin" && ee.contains(_p, w) ? b.classes[0] = "mord" : w === "mbin" && ee.contains(Pp, M) && (v.classes[0] = "mord");
13718
13718
  }, {
13719
13719
  node: h
13720
13720
  }, d, p), Rl(a, (v, b) => {
13721
- var E = m0(b), w = m0(v), M = E && w ? v.hasClass("mtight") ? Fp[E][w] : Bp[E][w] : null;
13722
- if (M)
13723
- return O.makeGlue(M, u);
13721
+ var M = m0(b), w = m0(v), A = M && w ? v.hasClass("mtight") ? Fp[M][w] : Bp[M][w] : null;
13722
+ if (A)
13723
+ return O.makeGlue(A, u);
13724
13724
  }, {
13725
13725
  node: h
13726
13726
  }, d, p), a;
@@ -14160,21 +14160,21 @@ var Ms = function(t) {
14160
14160
  var v = [1, 1, 2, 2, 3, 3][m];
14161
14161
  s === "widehat" || s === "widecheck" ? (o = [0, 1062, 2364, 2364, 2364][v], h = [0, 239, 300, 360, 420][v], p = [0, 0.24, 0.3, 0.3, 0.36, 0.42][v], d = s + v) : (o = [0, 600, 1033, 2339, 2340][v], h = [0, 260, 286, 306, 312][v], p = [0, 0.26, 0.286, 0.3, 0.306, 0.34][v], d = "tilde" + v);
14162
14162
  }
14163
- var b = new or(d), E = new Xt([b], {
14163
+ var b = new or(d), M = new Xt([b], {
14164
14164
  width: "100%",
14165
14165
  height: G(p),
14166
14166
  viewBox: "0 0 " + o + " " + h,
14167
14167
  preserveAspectRatio: "none"
14168
14168
  });
14169
14169
  return {
14170
- span: O.makeSvgSpan([], [E], r),
14170
+ span: O.makeSvgSpan([], [M], r),
14171
14171
  minWidth: 0,
14172
14172
  height: p
14173
14173
  };
14174
14174
  } else {
14175
- var w = [], M = Yp[s], [z, D, B] = M, I = B / 1e3, F = z.length, Y, H;
14175
+ var w = [], A = Yp[s], [z, D, B] = A, I = B / 1e3, F = z.length, Y, H;
14176
14176
  if (F === 1) {
14177
- var N = M[3];
14177
+ var N = A[3];
14178
14178
  Y = ["hide-tail"], H = [N];
14179
14179
  } else if (F === 2)
14180
14180
  Y = ["halfarrow-left", "halfarrow-right"], H = ["xMinYMin", "xMaxYMin"];
@@ -14292,8 +14292,8 @@ var Y0 = (e, t) => {
14292
14292
  }, t, "textord"), p = Ml(p), p.italic = 0, v = p.width, m && (h += p.depth)), d = O.makeSpan(["accent-body"], [p]);
14293
14293
  var b = n.label === "\\textcircled";
14294
14294
  b && (d.classes.push("accent-full"), h = a.height);
14295
- var E = o;
14296
- b || (E -= v / 2), d.style.left = G(E), n.label === "\\textcircled" && (d.style.top = ".2em"), d = O.makeVList({
14295
+ var M = o;
14296
+ b || (M -= v / 2), d.style.left = G(M), n.label === "\\textcircled" && (d.style.top = ".2em"), d = O.makeVList({
14297
14297
  positionType: "firstBaseline",
14298
14298
  children: [{
14299
14299
  type: "elem",
@@ -14743,7 +14743,7 @@ function nd(e) {
14743
14743
  a % 2 === 0 ? n.push(o) : n.shift(), n = [], i.push(n);
14744
14744
  }
14745
14745
  e.gullet.endGroup(), e.gullet.endGroup();
14746
- var E = new Array(i[0].length).fill({
14746
+ var M = new Array(i[0].length).fill({
14747
14747
  type: "align",
14748
14748
  align: "c",
14749
14749
  pregap: 0.25,
@@ -14758,7 +14758,7 @@ function nd(e) {
14758
14758
  arraystretch: 1,
14759
14759
  addJot: !0,
14760
14760
  rowGaps: [null],
14761
- cols: E,
14761
+ cols: M,
14762
14762
  colSeparationType: "CD",
14763
14763
  hLinesBeforeRow: new Array(i.length + 1).fill([])
14764
14764
  };
@@ -15115,7 +15115,7 @@ var Kr = function(t, r, n) {
15115
15115
  o = u = m = t, s = null;
15116
15116
  var p = "Size1-Regular";
15117
15117
  t === "\\uparrow" ? u = m = "⏐" : t === "\\Uparrow" ? u = m = "‖" : t === "\\downarrow" ? o = u = "⏐" : t === "\\Downarrow" ? o = u = "‖" : t === "\\updownarrow" ? (o = "\\uparrow", u = "⏐", m = "\\downarrow") : t === "\\Updownarrow" ? (o = "\\Uparrow", u = "‖", m = "\\Downarrow") : ee.contains(od, t) ? (u = "∣", h = "vert", d = 333) : ee.contains(sd, t) ? (u = "∥", h = "doublevert", d = 556) : t === "[" || t === "\\lbrack" ? (o = "⎡", u = "⎢", m = "⎣", p = "Size4-Regular", h = "lbrack", d = 667) : t === "]" || t === "\\rbrack" ? (o = "⎤", u = "⎥", m = "⎦", p = "Size4-Regular", h = "rbrack", d = 667) : t === "\\lfloor" || t === "⌊" ? (u = o = "⎢", m = "⎣", p = "Size4-Regular", h = "lfloor", d = 667) : t === "\\lceil" || t === "⌈" ? (o = "⎡", u = m = "⎢", p = "Size4-Regular", h = "lceil", d = 667) : t === "\\rfloor" || t === "⌋" ? (u = o = "⎥", m = "⎦", p = "Size4-Regular", h = "rfloor", d = 667) : t === "\\rceil" || t === "⌉" ? (o = "⎤", u = m = "⎥", p = "Size4-Regular", h = "rceil", d = 667) : t === "(" || t === "\\lparen" ? (o = "⎛", u = "⎜", m = "⎝", p = "Size4-Regular", h = "lparen", d = 875) : t === ")" || t === "\\rparen" ? (o = "⎞", u = "⎟", m = "⎠", p = "Size4-Regular", h = "rparen", d = 875) : t === "\\{" || t === "\\lbrace" ? (o = "⎧", s = "⎨", m = "⎩", u = "⎪", p = "Size4-Regular") : t === "\\}" || t === "\\rbrace" ? (o = "⎫", s = "⎬", m = "⎭", u = "⎪", p = "Size4-Regular") : t === "\\lgroup" || t === "⟮" ? (o = "⎧", m = "⎩", u = "⎪", p = "Size4-Regular") : t === "\\rgroup" || t === "⟯" ? (o = "⎫", m = "⎭", u = "⎪", p = "Size4-Regular") : t === "\\lmoustache" || t === "⎰" ? (o = "⎧", m = "⎭", u = "⎪", p = "Size4-Regular") : (t === "\\rmoustache" || t === "⎱") && (o = "⎫", m = "⎩", u = "⎪", p = "Size4-Regular");
15118
- var v = Kr(o, p, a), b = v.height + v.depth, E = Kr(u, p, a), w = E.height + E.depth, M = Kr(m, p, a), z = M.height + M.depth, D = 0, B = 1;
15118
+ var v = Kr(o, p, a), b = v.height + v.depth, M = Kr(u, p, a), w = M.height + M.depth, A = Kr(m, p, a), z = A.height + A.depth, D = 0, B = 1;
15119
15119
  if (s !== null) {
15120
15120
  var I = Kr(s, p, a);
15121
15121
  D = I.height + I.depth, B = 2;
@@ -15124,12 +15124,12 @@ var Kr = function(t, r, n) {
15124
15124
  n && (N *= i.sizeMultiplier);
15125
15125
  var $ = H / 2 - N, V = [];
15126
15126
  if (h.length > 0) {
15127
- var ie = H - b - z, te = Math.round(H * 1e3), K = mp(h, Math.round(ie * 1e3)), me = new or(h, K), ve = (d / 1e3).toFixed(3) + "em", Ce = (te / 1e3).toFixed(3) + "em", Ue = new Xt([me], {
15128
- width: ve,
15127
+ var ie = H - b - z, te = Math.round(H * 1e3), K = mp(h, Math.round(ie * 1e3)), ce = new or(h, K), de = (d / 1e3).toFixed(3) + "em", Ce = (te / 1e3).toFixed(3) + "em", Ue = new Xt([ce], {
15128
+ width: de,
15129
15129
  height: Ce,
15130
15130
  viewBox: "0 0 " + d + " " + te
15131
15131
  }), S = O.makeSvgSpan([], [Ue], i);
15132
- S.height = te / 1e3, S.style.width = ve, S.style.height = Ce, V.push({
15132
+ S.height = te / 1e3, S.style.width = de, S.style.height = Ce, V.push({
15133
15133
  type: "elem",
15134
15134
  elem: S
15135
15135
  });
@@ -15143,12 +15143,12 @@ var Kr = function(t, r, n) {
15143
15143
  }
15144
15144
  V.push(En), V.push(Oi(o, p, a));
15145
15145
  }
15146
- var A = i.havingBaseStyle(ne.TEXT), Fe = O.makeVList({
15146
+ var E = i.havingBaseStyle(ne.TEXT), Fe = O.makeVList({
15147
15147
  positionType: "bottom",
15148
15148
  positionData: $,
15149
15149
  children: V
15150
- }, A);
15151
- return X0(O.makeSpan(["delimsizing", "mult"], [Fe], A), ne.TEXT, i, l);
15150
+ }, E);
15151
+ return X0(O.makeSpan(["delimsizing", "mult"], [Fe], E), ne.TEXT, i, l);
15152
15152
  }, Li = 80, Di = 0.08, Bi = function(t, r, n, i, a) {
15153
15153
  var l = cp(t, i, n), o = new or(t, l), s = new Xt([o], {
15154
15154
  // Note: 1000:1 ratio of viewBox to document em width.
@@ -15515,17 +15515,17 @@ var K0 = (e, t) => {
15515
15515
  a = O.makeSvgSpan(["hide-tail"], [v], t), a.style.height = G(h), l = r.depth + s + u;
15516
15516
  } else {
15517
15517
  /cancel/.test(n) ? o || r.classes.push("cancel-pad") : n === "angl" ? r.classes.push("anglpad") : r.classes.push("boxpad");
15518
- var b = 0, E = 0, w = 0;
15518
+ var b = 0, M = 0, w = 0;
15519
15519
  /box/.test(n) ? (w = Math.max(
15520
15520
  t.fontMetrics().fboxrule,
15521
15521
  // default
15522
15522
  t.minRuleThickness
15523
15523
  // User override.
15524
- ), b = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w), E = b) : n === "angl" ? (w = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), b = 4 * w, E = Math.max(0, 0.25 - r.depth)) : (b = o ? 0.2 : 0, E = b), a = Qt.encloseSpan(r, n, b, E, t), /fbox|boxed|fcolorbox/.test(n) ? (a.style.borderStyle = "solid", a.style.borderWidth = G(w)) : n === "angl" && w !== 0.049 && (a.style.borderTopWidth = G(w), a.style.borderRightWidth = G(w)), l = r.depth + E, e.backgroundColor && (a.style.backgroundColor = e.backgroundColor, e.borderColor && (a.style.borderColor = e.borderColor));
15524
+ ), b = t.fontMetrics().fboxsep + (n === "colorbox" ? 0 : w), M = b) : n === "angl" ? (w = Math.max(t.fontMetrics().defaultRuleThickness, t.minRuleThickness), b = 4 * w, M = Math.max(0, 0.25 - r.depth)) : (b = o ? 0.2 : 0, M = b), a = Qt.encloseSpan(r, n, b, M, t), /fbox|boxed|fcolorbox/.test(n) ? (a.style.borderStyle = "solid", a.style.borderWidth = G(w)) : n === "angl" && w !== 0.049 && (a.style.borderTopWidth = G(w), a.style.borderRightWidth = G(w)), l = r.depth + M, e.backgroundColor && (a.style.backgroundColor = e.backgroundColor, e.borderColor && (a.style.borderColor = e.borderColor));
15525
15525
  }
15526
- var M;
15526
+ var A;
15527
15527
  if (e.backgroundColor)
15528
- M = O.makeVList({
15528
+ A = O.makeVList({
15529
15529
  positionType: "individualShift",
15530
15530
  children: [
15531
15531
  // Put the color background behind inner;
@@ -15543,7 +15543,7 @@ var K0 = (e, t) => {
15543
15543
  }, t);
15544
15544
  else {
15545
15545
  var z = /cancel|phase/.test(n) ? ["svg-align"] : [];
15546
- M = O.makeVList({
15546
+ A = O.makeVList({
15547
15547
  positionType: "individualShift",
15548
15548
  children: [
15549
15549
  // Write the \cancel stroke on top of inner.
@@ -15561,7 +15561,7 @@ var K0 = (e, t) => {
15561
15561
  ]
15562
15562
  }, t);
15563
15563
  }
15564
- return /cancel/.test(n) && (M.height = r.height, M.depth = r.depth), /cancel/.test(n) && !o ? O.makeSpan(["mord", "cancel-lap"], [M], t) : O.makeSpan(["mord"], [M], t);
15564
+ return /cancel/.test(n) && (A.height = r.height, A.depth = r.depth), /cancel/.test(n) && !o ? O.makeSpan(["mord", "cancel-lap"], [A], t) : O.makeSpan(["mord"], [A], t);
15565
15565
  }, Q0 = (e, t) => {
15566
15566
  var r = 0, n = new _.MathNode(e.label.indexOf("colorbox") > -1 ? "mpadded" : "menclose", [Te(e.body, t)]);
15567
15567
  switch (e.label) {
@@ -15772,12 +15772,12 @@ function hr(e, t, r) {
15772
15772
  throw new j("Invalid \\arraystretch: " + p);
15773
15773
  }
15774
15774
  e.gullet.beginGroup();
15775
- var v = [], b = [v], E = [], w = [], M = s != null ? [] : void 0;
15775
+ var v = [], b = [v], M = [], w = [], A = s != null ? [] : void 0;
15776
15776
  function z() {
15777
15777
  s && e.gullet.macros.set("\\@eqnsw", "1", !0);
15778
15778
  }
15779
15779
  function D() {
15780
- M && (e.gullet.macros.get("\\df@tag") ? (M.push(e.subparse([new St("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : M.push(!!s && e.gullet.macros.get("\\@eqnsw") === "1"));
15780
+ A && (e.gullet.macros.get("\\df@tag") ? (A.push(e.subparse([new St("\\df@tag")])), e.gullet.macros.set("\\df@tag", void 0, !0)) : A.push(!!s && e.gullet.macros.get("\\@eqnsw") === "1"));
15781
15781
  }
15782
15782
  for (z(), w.push(_l(e)); ; ) {
15783
15783
  var B = e.parseExpression(!1, u ? "\\end" : "\\\\");
@@ -15805,7 +15805,7 @@ function hr(e, t, r) {
15805
15805
  } else if (I === "\\\\") {
15806
15806
  e.consume();
15807
15807
  var F = void 0;
15808
- e.gullet.future().text !== " " && (F = e.parseSizeGroup(!0)), E.push(F ? F.value : null), D(), w.push(_l(e)), v = [], b.push(v), z();
15808
+ e.gullet.future().text !== " " && (F = e.parseSizeGroup(!0)), M.push(F ? F.value : null), D(), w.push(_l(e)), v = [], b.push(v), z();
15809
15809
  } else
15810
15810
  throw new j("Expected & or \\\\ or \\cr or \\end", e.nextToken);
15811
15811
  }
@@ -15816,11 +15816,11 @@ function hr(e, t, r) {
15816
15816
  arraystretch: l,
15817
15817
  body: b,
15818
15818
  cols: a,
15819
- rowGaps: E,
15819
+ rowGaps: M,
15820
15820
  hskipBeforeAndAfter: n,
15821
15821
  hLinesBeforeRow: w,
15822
15822
  colSeparationType: o,
15823
- tags: M,
15823
+ tags: A,
15824
15824
  leqno: d
15825
15825
  };
15826
15826
  }
@@ -15841,7 +15841,7 @@ var _t = function(t, r) {
15841
15841
  var v = t.colSeparationType === "CD" ? Oe({
15842
15842
  number: 3,
15843
15843
  unit: "ex"
15844
- }, r) : 12 * h, b = 3 * h, E = t.arraystretch * v, w = 0.7 * E, M = 0.3 * E, z = 0;
15844
+ }, r) : 12 * h, b = 3 * h, M = t.arraystretch * v, w = 0.7 * M, A = 0.3 * M, z = 0;
15845
15845
  function D(Ut) {
15846
15846
  for (var Rt = 0; Rt < Ut.length; ++Rt)
15847
15847
  Rt > 0 && (z += 0.25), u.push({
@@ -15850,7 +15850,7 @@ var _t = function(t, r) {
15850
15850
  });
15851
15851
  }
15852
15852
  for (D(l[0]), n = 0; n < t.body.length; ++n) {
15853
- var B = t.body[n], I = w, F = M;
15853
+ var B = t.body[n], I = w, F = A;
15854
15854
  o < B.length && (o = B.length);
15855
15855
  var Y = new Array(B.length);
15856
15856
  for (i = 0; i < B.length; ++i) {
@@ -15858,34 +15858,34 @@ var _t = function(t, r) {
15858
15858
  F < H.depth && (F = H.depth), I < H.height && (I = H.height), Y[i] = H;
15859
15859
  }
15860
15860
  var N = t.rowGaps[n], $ = 0;
15861
- N && ($ = Oe(N, r), $ > 0 && ($ += M, F < $ && (F = $), $ = 0)), t.addJot && (F += b), Y.height = I, Y.depth = F, z += I, Y.pos = z, z += F + $, s[n] = Y, D(l[n + 1]);
15861
+ N && ($ = Oe(N, r), $ > 0 && ($ += A, F < $ && (F = $), $ = 0)), t.addJot && (F += b), Y.height = I, Y.depth = F, z += I, Y.pos = z, z += F + $, s[n] = Y, D(l[n + 1]);
15862
15862
  }
15863
- var V = z / 2 + r.fontMetrics().axisHeight, ie = t.cols || [], te = [], K, me, ve = [];
15863
+ var V = z / 2 + r.fontMetrics().axisHeight, ie = t.cols || [], te = [], K, ce, de = [];
15864
15864
  if (t.tags && t.tags.some((Ut) => Ut))
15865
15865
  for (n = 0; n < a; ++n) {
15866
15866
  var Ce = s[n], Ue = Ce.pos - V, S = t.tags[n], Me = void 0;
15867
- S === !0 ? Me = O.makeSpan(["eqn-num"], [], r) : S === !1 ? Me = O.makeSpan([], [], r) : Me = O.makeSpan([], je(S, r, !0), r), Me.depth = Ce.depth, Me.height = Ce.height, ve.push({
15867
+ S === !0 ? Me = O.makeSpan(["eqn-num"], [], r) : S === !1 ? Me = O.makeSpan([], [], r) : Me = O.makeSpan([], je(S, r, !0), r), Me.depth = Ce.depth, Me.height = Ce.height, de.push({
15868
15868
  type: "elem",
15869
15869
  elem: Me,
15870
15870
  shift: Ue
15871
15871
  });
15872
15872
  }
15873
15873
  for (
15874
- i = 0, me = 0;
15874
+ i = 0, ce = 0;
15875
15875
  // Continue while either there are more columns or more column
15876
15876
  // descriptions, so trailing separators don't get lost.
15877
- i < o || me < ie.length;
15878
- ++i, ++me
15877
+ i < o || ce < ie.length;
15878
+ ++i, ++ce
15879
15879
  ) {
15880
- for (var we = ie[me] || {}, A = !0; we.type === "separator"; ) {
15881
- if (A || (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(r.fontMetrics().doubleRuleSep), te.push(K)), we.separator === "|" || we.separator === ":") {
15880
+ for (var we = ie[ce] || {}, E = !0; we.type === "separator"; ) {
15881
+ if (E || (K = O.makeSpan(["arraycolsep"], []), K.style.width = G(r.fontMetrics().doubleRuleSep), te.push(K)), we.separator === "|" || we.separator === ":") {
15882
15882
  var Fe = we.separator === "|" ? "solid" : "dashed", $e = O.makeSpan(["vertical-separator"], [], r);
15883
15883
  $e.style.height = G(z), $e.style.borderRightWidth = G(m), $e.style.borderRightStyle = Fe, $e.style.margin = "0 " + G(-m / 2);
15884
15884
  var ze = z - V;
15885
15885
  ze && ($e.style.verticalAlign = G(-ze)), te.push($e);
15886
15886
  } else
15887
15887
  throw new j("Invalid separator type: " + we.separator);
15888
- me++, we = ie[me] || {}, A = !1;
15888
+ ce++, we = ie[ce] || {}, E = !1;
15889
15889
  }
15890
15890
  if (!(i >= o)) {
15891
15891
  var Ve = void 0;
@@ -15930,11 +15930,11 @@ var _t = function(t, r) {
15930
15930
  children: Et
15931
15931
  }, r);
15932
15932
  }
15933
- if (ve.length === 0)
15933
+ if (de.length === 0)
15934
15934
  return O.makeSpan(["mord"], [s], r);
15935
15935
  var yt = O.makeVList({
15936
15936
  positionType: "individualShift",
15937
- children: ve
15937
+ children: de
15938
15938
  }, r);
15939
15939
  return yt = O.makeSpan(["tag"], [yt], r), O.makeFragment([s, yt]);
15940
15940
  }, vd = {
@@ -15951,10 +15951,10 @@ var _t = function(t, r) {
15951
15951
  m.setAttribute("rowspacing", G(h));
15952
15952
  var d = "", p = "";
15953
15953
  if (t.cols && t.cols.length > 0) {
15954
- var v = t.cols, b = "", E = !1, w = 0, M = v.length;
15955
- v[0].type === "separator" && (d += "top ", w = 1), v[v.length - 1].type === "separator" && (d += "bottom ", M -= 1);
15956
- for (var z = w; z < M; z++)
15957
- v[z].type === "align" ? (p += vd[v[z].align], E && (b += "none "), E = !0) : v[z].type === "separator" && E && (b += v[z].separator === "|" ? "solid " : "dashed ", E = !1);
15954
+ var v = t.cols, b = "", M = !1, w = 0, A = v.length;
15955
+ v[0].type === "separator" && (d += "top ", w = 1), v[v.length - 1].type === "separator" && (d += "bottom ", A -= 1);
15956
+ for (var z = w; z < A; z++)
15957
+ v[z].type === "align" ? (p += vd[v[z].align], M && (b += "none "), M = !0) : v[z].type === "separator" && M && (b += v[z].separator === "|" ? "solid " : "dashed ", M = !1);
15958
15958
  m.setAttribute("columnalign", p.trim()), /[sd]/.test(b) && m.setAttribute("columnlines", b.trim());
15959
15959
  }
15960
15960
  if (t.colSeparationType === "align") {
@@ -15991,8 +15991,8 @@ var _t = function(t, r) {
15991
15991
  }
15992
15992
  var p = !s;
15993
15993
  l.body.forEach(function(w) {
15994
- for (var M = 1; M < w.length; M += 2) {
15995
- var z = ue(w[M], "styling"), D = ue(z.body[0], "ordgroup");
15994
+ for (var A = 1; A < w.length; A += 2) {
15995
+ var z = ue(w[A], "styling"), D = ue(z.body[0], "ordgroup");
15996
15996
  D.body.unshift(u);
15997
15997
  }
15998
15998
  if (p)
@@ -16004,11 +16004,11 @@ var _t = function(t, r) {
16004
16004
  }
16005
16005
  });
16006
16006
  for (var v = 0; v < s; ++v) {
16007
- var b = "r", E = 0;
16008
- v % 2 === 1 ? b = "l" : v > 0 && p && (E = 1), n[v] = {
16007
+ var b = "r", M = 0;
16008
+ v % 2 === 1 ? b = "l" : v > 0 && p && (M = 1), n[v] = {
16009
16009
  type: "align",
16010
16010
  align: b,
16011
- pregap: E,
16011
+ pregap: M,
16012
16012
  postgap: 0
16013
16013
  };
16014
16014
  }
@@ -16436,12 +16436,12 @@ var Xs = (e, t) => {
16436
16436
  e.hasBarLine ? (e.barSize ? (h = Oe(e.barSize, t), m = O.makeLineSpan("frac-line", t, h)) : m = O.makeLineSpan("frac-line", t), h = m.height, d = m.height) : (m = null, h = 0, d = t.fontMetrics().defaultRuleThickness);
16437
16437
  var p, v, b;
16438
16438
  r.size === ne.DISPLAY.size || e.size === "display" ? (p = t.fontMetrics().num1, h > 0 ? v = 3 * d : v = 7 * d, b = t.fontMetrics().denom1) : (h > 0 ? (p = t.fontMetrics().num2, v = d) : (p = t.fontMetrics().num3, v = 3 * d), b = t.fontMetrics().denom2);
16439
- var E;
16439
+ var M;
16440
16440
  if (m) {
16441
- var M = t.fontMetrics().axisHeight;
16442
- p - l.depth - (M + 0.5 * h) < v && (p += v - (p - l.depth - (M + 0.5 * h))), M - 0.5 * h - (u.height - b) < v && (b += v - (M - 0.5 * h - (u.height - b)));
16443
- var z = -(M - 0.5 * h);
16444
- E = O.makeVList({
16441
+ var A = t.fontMetrics().axisHeight;
16442
+ p - l.depth - (A + 0.5 * h) < v && (p += v - (p - l.depth - (A + 0.5 * h))), A - 0.5 * h - (u.height - b) < v && (b += v - (A - 0.5 * h - (u.height - b)));
16443
+ var z = -(A - 0.5 * h);
16444
+ M = O.makeVList({
16445
16445
  positionType: "individualShift",
16446
16446
  children: [{
16447
16447
  type: "elem",
@@ -16459,7 +16459,7 @@ var Xs = (e, t) => {
16459
16459
  }, t);
16460
16460
  } else {
16461
16461
  var w = p - l.depth - (u.height - b);
16462
- w < v && (p += 0.5 * (v - w), b += 0.5 * (v - w)), E = O.makeVList({
16462
+ w < v && (p += 0.5 * (v - w), b += 0.5 * (v - w)), M = O.makeVList({
16463
16463
  positionType: "individualShift",
16464
16464
  children: [{
16465
16465
  type: "elem",
@@ -16472,11 +16472,11 @@ var Xs = (e, t) => {
16472
16472
  }]
16473
16473
  }, t);
16474
16474
  }
16475
- a = t.havingStyle(r), E.height *= a.sizeMultiplier / t.sizeMultiplier, E.depth *= a.sizeMultiplier / t.sizeMultiplier;
16475
+ a = t.havingStyle(r), M.height *= a.sizeMultiplier / t.sizeMultiplier, M.depth *= a.sizeMultiplier / t.sizeMultiplier;
16476
16476
  var D;
16477
16477
  r.size === ne.DISPLAY.size ? D = t.fontMetrics().delim1 : r.size === ne.SCRIPTSCRIPT.size ? D = t.havingStyle(ne.SCRIPT).fontMetrics().delim2 : D = t.fontMetrics().delim2;
16478
16478
  var B, I;
16479
- return e.leftDelim == null ? B = an(t, ["mopen"]) : B = Yt.customSizedDelim(e.leftDelim, D, !0, t.havingStyle(r), e.mode, ["mopen"]), e.continued ? I = O.makeSpan([]) : e.rightDelim == null ? I = an(t, ["mclose"]) : I = Yt.customSizedDelim(e.rightDelim, D, !0, t.havingStyle(r), e.mode, ["mclose"]), O.makeSpan(["mord"].concat(a.sizingClasses(t)), [B, O.makeSpan(["mfrac"], [E]), I], t);
16479
+ return e.leftDelim == null ? B = an(t, ["mopen"]) : B = Yt.customSizedDelim(e.leftDelim, D, !0, t.havingStyle(r), e.mode, ["mopen"]), e.continued ? I = O.makeSpan([]) : e.rightDelim == null ? I = an(t, ["mclose"]) : I = Yt.customSizedDelim(e.rightDelim, D, !0, t.havingStyle(r), e.mode, ["mclose"]), O.makeSpan(["mord"].concat(a.sizingClasses(t)), [B, O.makeSpan(["mfrac"], [M]), I], t);
16480
16480
  }, ta = (e, t) => {
16481
16481
  var r = new _.MathNode("mfrac", [Te(e.numer, t), Te(e.denom, t)]);
16482
16482
  if (!e.hasBarLine)
@@ -17344,12 +17344,12 @@ var Qs = (e, t, r, n, i, a, l) => {
17344
17344
  }, n);
17345
17345
  } else
17346
17346
  return e;
17347
- var E = [d];
17347
+ var M = [d];
17348
17348
  if (s && a !== 0 && !o) {
17349
17349
  var w = O.makeSpan(["mspace"], [], n);
17350
- w.style.marginRight = G(a), E.unshift(w);
17350
+ w.style.marginRight = G(a), M.unshift(w);
17351
17351
  }
17352
- return O.makeSpan(["mop", "op-limits"], E, n);
17352
+ return O.makeSpan(["mop", "op-limits"], M, n);
17353
17353
  }, Zs = ["\\smallint"], jr = (e, t) => {
17354
17354
  var r, n, i = !1, a;
17355
17355
  e.type === "supsub" ? (r = e.sup, n = e.sub, a = ue(e.base, "op"), i = !0) : a = ue(e, "op");
@@ -17381,8 +17381,8 @@ var Qs = (e, t, r, n, i, a, l) => {
17381
17381
  v.push(O.mathsym(a.name[b], a.mode, t));
17382
17382
  s = O.makeSpan(["mop"], v, t);
17383
17383
  }
17384
- var E = 0, w = 0;
17385
- return (s instanceof Tt || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (E = (s.height - s.depth) / 2 - t.fontMetrics().axisHeight, w = s.italic), i ? Qs(s, r, n, t, l, w, E) : (E && (s.style.position = "relative", s.style.top = G(E)), s);
17384
+ var M = 0, w = 0;
17385
+ return (s instanceof Tt || a.name === "\\oiint" || a.name === "\\oiiint") && !a.suppressBaseShift && (M = (s.height - s.depth) / 2 - t.fontMetrics().axisHeight, w = s.italic), i ? Qs(s, r, n, t, l, w, M) : (M && (s.style.position = "relative", s.style.top = G(M)), s);
17386
17386
  }, fn = (e, t) => {
17387
17387
  var r;
17388
17388
  if (e.symbol)
@@ -17977,15 +17977,15 @@ X({
17977
17977
  }]
17978
17978
  }, t);
17979
17979
  if (e.index) {
17980
- var v = t.havingStyle(ne.SCRIPTSCRIPT), b = ye(e.index, v, t), E = 0.6 * (p.height - p.depth), w = O.makeVList({
17980
+ var v = t.havingStyle(ne.SCRIPTSCRIPT), b = ye(e.index, v, t), M = 0.6 * (p.height - p.depth), w = O.makeVList({
17981
17981
  positionType: "shift",
17982
- positionData: -E,
17982
+ positionData: -M,
17983
17983
  children: [{
17984
17984
  type: "elem",
17985
17985
  elem: b
17986
17986
  }]
17987
- }, t), M = O.makeSpan(["root"], [w]);
17988
- return O.makeSpan(["mord", "sqrt"], [M, p], t);
17987
+ }, t), A = O.makeSpan(["root"], [w]);
17988
+ return O.makeSpan(["mord", "sqrt"], [A, p], t);
17989
17989
  } else
17990
17990
  return O.makeSpan(["mord", "sqrt"], [p], t);
17991
17991
  },
@@ -18081,10 +18081,10 @@ Sr({
18081
18081
  }
18082
18082
  var b;
18083
18083
  t.style === ne.DISPLAY ? b = u.sup1 : t.style.cramped ? b = u.sup3 : b = u.sup2;
18084
- var E = t.sizeMultiplier, w = G(0.5 / u.ptPerEm / E), M = null;
18084
+ var M = t.sizeMultiplier, w = G(0.5 / u.ptPerEm / M), A = null;
18085
18085
  if (s) {
18086
18086
  var z = e.base && e.base.type === "op" && e.base.name && (e.base.name === "\\oiint" || e.base.name === "\\oiiint");
18087
- (l instanceof Tt || z) && (M = G(-l.italic));
18087
+ (l instanceof Tt || z) && (A = G(-l.italic));
18088
18088
  }
18089
18089
  var D;
18090
18090
  if (o && s) {
@@ -18100,7 +18100,7 @@ Sr({
18100
18100
  elem: s,
18101
18101
  shift: h,
18102
18102
  marginRight: w,
18103
- marginLeft: M
18103
+ marginLeft: A
18104
18104
  }, {
18105
18105
  type: "elem",
18106
18106
  elem: o,
@@ -18116,7 +18116,7 @@ Sr({
18116
18116
  var H = [{
18117
18117
  type: "elem",
18118
18118
  elem: s,
18119
- marginLeft: M,
18119
+ marginLeft: A,
18120
18120
  marginRight: w
18121
18121
  }];
18122
18122
  D = O.makeVList({
@@ -21215,16 +21215,16 @@ function y5(e) {
21215
21215
  displayMode: m,
21216
21216
  throwOnError: !0
21217
21217
  });
21218
- } catch (E) {
21218
+ } catch (M) {
21219
21219
  const w = (
21220
21220
  /** @type {Error} */
21221
- E
21222
- ), M = w.name.toLowerCase();
21221
+ M
21222
+ ), A = w.name.toLowerCase();
21223
21223
  n.message("Could not render math with KaTeX", {
21224
21224
  ancestors: [...a, i],
21225
21225
  cause: w,
21226
21226
  place: i.position,
21227
- ruleId: M,
21227
+ ruleId: A,
21228
21228
  source: "rehype-katex"
21229
21229
  });
21230
21230
  try {
@@ -21242,7 +21242,7 @@ function y5(e) {
21242
21242
  properties: {
21243
21243
  className: ["katex-error"],
21244
21244
  style: "color:" + (t.errorColor || "#cc0000"),
21245
- title: String(E)
21245
+ title: String(M)
21246
21246
  },
21247
21247
  children: [{ type: "text", value: p }]
21248
21248
  }
@@ -21293,8 +21293,8 @@ function x5(e, t, r) {
21293
21293
  function s(u, m) {
21294
21294
  const h = m[m.length - 1], d = a[l][0], p = a[l][1];
21295
21295
  let v = 0;
21296
- const E = h.children.indexOf(u);
21297
- let w = !1, M = [];
21296
+ const M = h.children.indexOf(u);
21297
+ let w = !1, A = [];
21298
21298
  d.lastIndex = 0;
21299
21299
  let z = d.exec(u.value);
21300
21300
  for (; z; ) {
@@ -21304,14 +21304,14 @@ function x5(e, t, r) {
21304
21304
  stack: [...m, u]
21305
21305
  };
21306
21306
  let I = p(...z, B);
21307
- if (typeof I == "string" && (I = I.length > 0 ? { type: "text", value: I } : void 0), I === !1 ? d.lastIndex = D + 1 : (v !== D && M.push({
21307
+ if (typeof I == "string" && (I = I.length > 0 ? { type: "text", value: I } : void 0), I === !1 ? d.lastIndex = D + 1 : (v !== D && A.push({
21308
21308
  type: "text",
21309
21309
  value: u.value.slice(v, D)
21310
- }), Array.isArray(I) ? M.push(...I) : I && M.push(I), v = D + z[0].length, w = !0), !d.global)
21310
+ }), Array.isArray(I) ? A.push(...I) : I && A.push(I), v = D + z[0].length, w = !0), !d.global)
21311
21311
  break;
21312
21312
  z = d.exec(u.value);
21313
21313
  }
21314
- return w ? (v < u.value.length && M.push({ type: "text", value: u.value.slice(v) }), h.children.splice(E, 1, ...M)) : M = [u], E + M.length;
21314
+ return w ? (v < u.value.length && A.push({ type: "text", value: u.value.slice(v) }), h.children.splice(M, 1, ...A)) : A = [u], M + A.length;
21315
21315
  }
21316
21316
  }
21317
21317
  function w5(e) {
@@ -21598,17 +21598,17 @@ function t6(e, t) {
21598
21598
  const r = t || {}, n = (r.align || []).concat(), i = r.stringLength || e6, a = [], l = [], o = [], s = [];
21599
21599
  let u = 0, m = -1;
21600
21600
  for (; ++m < e.length; ) {
21601
- const b = [], E = [];
21601
+ const b = [], M = [];
21602
21602
  let w = -1;
21603
21603
  for (e[m].length > u && (u = e[m].length); ++w < e[m].length; ) {
21604
- const M = r6(e[m][w]);
21604
+ const A = r6(e[m][w]);
21605
21605
  if (r.alignDelimiters !== !1) {
21606
- const z = i(M);
21607
- E[w] = z, (s[w] === void 0 || z > s[w]) && (s[w] = z);
21606
+ const z = i(A);
21607
+ M[w] = z, (s[w] === void 0 || z > s[w]) && (s[w] = z);
21608
21608
  }
21609
- b.push(M);
21609
+ b.push(A);
21610
21610
  }
21611
- l[m] = b, o[m] = E;
21611
+ l[m] = b, o[m] = M;
21612
21612
  }
21613
21613
  let h = -1;
21614
21614
  if (typeof n == "object" && "length" in n)
@@ -21623,31 +21623,31 @@ function t6(e, t) {
21623
21623
  const d = [], p = [];
21624
21624
  for (; ++h < u; ) {
21625
21625
  const b = a[h];
21626
- let E = "", w = "";
21627
- b === 99 ? (E = ":", w = ":") : b === 108 ? E = ":" : b === 114 && (w = ":");
21628
- let M = r.alignDelimiters === !1 ? 1 : Math.max(
21626
+ let M = "", w = "";
21627
+ b === 99 ? (M = ":", w = ":") : b === 108 ? M = ":" : b === 114 && (w = ":");
21628
+ let A = r.alignDelimiters === !1 ? 1 : Math.max(
21629
21629
  1,
21630
- s[h] - E.length - w.length
21630
+ s[h] - M.length - w.length
21631
21631
  );
21632
- const z = E + "-".repeat(M) + w;
21633
- r.alignDelimiters !== !1 && (M = E.length + M + w.length, M > s[h] && (s[h] = M), p[h] = M), d[h] = z;
21632
+ const z = M + "-".repeat(A) + w;
21633
+ r.alignDelimiters !== !1 && (A = M.length + A + w.length, A > s[h] && (s[h] = A), p[h] = A), d[h] = z;
21634
21634
  }
21635
21635
  l.splice(1, 0, d), o.splice(1, 0, p), m = -1;
21636
21636
  const v = [];
21637
21637
  for (; ++m < l.length; ) {
21638
- const b = l[m], E = o[m];
21638
+ const b = l[m], M = o[m];
21639
21639
  h = -1;
21640
21640
  const w = [];
21641
21641
  for (; ++h < u; ) {
21642
- const M = b[h] || "";
21642
+ const A = b[h] || "";
21643
21643
  let z = "", D = "";
21644
21644
  if (r.alignDelimiters !== !1) {
21645
- const B = s[h] - (E[h] || 0), I = a[h];
21645
+ const B = s[h] - (M[h] || 0), I = a[h];
21646
21646
  I === 114 ? z = " ".repeat(B) : I === 99 ? B % 2 ? (z = " ".repeat(B / 2 + 0.5), D = " ".repeat(B / 2 - 0.5)) : (z = " ".repeat(B / 2), D = z) : D = " ".repeat(B);
21647
21647
  }
21648
21648
  r.delimiterStart !== !1 && !h && w.push("|"), r.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
21649
21649
  // empty: there will be a closing space.
21650
- !(r.alignDelimiters === !1 && M === "") && (r.delimiterStart !== !1 || h) && w.push(" "), r.alignDelimiters !== !1 && w.push(z), w.push(M), r.alignDelimiters !== !1 && w.push(D), r.padding !== !1 && w.push(" "), (r.delimiterEnd !== !1 || h !== u - 1) && w.push("|");
21650
+ !(r.alignDelimiters === !1 && A === "") && (r.delimiterStart !== !1 || h) && w.push(" "), r.alignDelimiters !== !1 && w.push(z), w.push(A), r.alignDelimiters !== !1 && w.push(D), r.padding !== !1 && w.push(" "), (r.delimiterEnd !== !1 || h !== u - 1) && w.push("|");
21651
21651
  }
21652
21652
  v.push(
21653
21653
  r.delimiterEnd === !1 ? w.join("").replace(/ +$/, "") : w.join("")
@@ -22330,21 +22330,21 @@ function H6(e) {
22330
22330
  tableRow: o
22331
22331
  }
22332
22332
  };
22333
- function l(p, v, b, E) {
22334
- return u(m(p, b, E), p.align);
22333
+ function l(p, v, b, M) {
22334
+ return u(m(p, b, M), p.align);
22335
22335
  }
22336
- function o(p, v, b, E) {
22337
- const w = h(p, b, E), M = u([w]);
22338
- return M.slice(0, M.indexOf(`
22336
+ function o(p, v, b, M) {
22337
+ const w = h(p, b, M), A = u([w]);
22338
+ return A.slice(0, A.indexOf(`
22339
22339
  `));
22340
22340
  }
22341
- function s(p, v, b, E) {
22342
- const w = b.enter("tableCell"), M = b.enter("phrasing"), z = b.containerPhrasing(p, {
22343
- ...E,
22341
+ function s(p, v, b, M) {
22342
+ const w = b.enter("tableCell"), A = b.enter("phrasing"), z = b.containerPhrasing(p, {
22343
+ ...M,
22344
22344
  before: a,
22345
22345
  after: a
22346
22346
  });
22347
- return M(), w(), z;
22347
+ return A(), w(), z;
22348
22348
  }
22349
22349
  function u(p, v) {
22350
22350
  return t6(p, {
@@ -22358,24 +22358,24 @@ function H6(e) {
22358
22358
  });
22359
22359
  }
22360
22360
  function m(p, v, b) {
22361
- const E = p.children;
22361
+ const M = p.children;
22362
22362
  let w = -1;
22363
- const M = [], z = v.enter("table");
22364
- for (; ++w < E.length; )
22365
- M[w] = h(E[w], v, b);
22366
- return z(), M;
22363
+ const A = [], z = v.enter("table");
22364
+ for (; ++w < M.length; )
22365
+ A[w] = h(M[w], v, b);
22366
+ return z(), A;
22367
22367
  }
22368
22368
  function h(p, v, b) {
22369
- const E = p.children;
22369
+ const M = p.children;
22370
22370
  let w = -1;
22371
- const M = [], z = v.enter("tableRow");
22372
- for (; ++w < E.length; )
22373
- M[w] = s(E[w], p, v, b);
22374
- return z(), M;
22371
+ const A = [], z = v.enter("tableRow");
22372
+ for (; ++w < M.length; )
22373
+ A[w] = s(M[w], p, v, b);
22374
+ return z(), A;
22375
22375
  }
22376
22376
  function d(p, v, b) {
22377
- let E = zu.inlineCode(p, v, b);
22378
- return b.stack.includes("tableCell") && (E = E.replace(/\|/g, "\\$&")), E;
22377
+ let M = zu.inlineCode(p, v, b);
22378
+ return b.stack.includes("tableCell") && (M = M.replace(/\|/g, "\\$&")), M;
22379
22379
  }
22380
22380
  }
22381
22381
  function q6() {
@@ -22880,8 +22880,8 @@ function f3(e) {
22880
22880
  if (v === 126)
22881
22881
  return h > 1 ? s(v) : (l.consume(v), h++, p);
22882
22882
  if (h < 2 && !r) return s(v);
22883
- const E = l.exit("strikethroughSequenceTemporary"), w = Dr(v);
22884
- return E._open = !w || w === 2 && !!b, E._close = !b || b === 2 && !!w, o(v);
22883
+ const M = l.exit("strikethroughSequenceTemporary"), w = Dr(v);
22884
+ return M._open = !w || w === 2 && !!b, M._close = !b || b === 2 && !!w, o(v);
22885
22885
  }
22886
22886
  }
22887
22887
  }
@@ -23018,19 +23018,19 @@ function y3(e, t, r) {
23018
23018
  return n.interrupt = !1, n.parser.lazy[n.now().line] ? r(N) : (e.enter("tableDelimiterRow"), l = !1, pe(N) ? he(e, v, "linePrefix", n.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(N) : v(N));
23019
23019
  }
23020
23020
  function v(N) {
23021
- return N === 45 || N === 58 ? E(N) : N === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), b) : B(N);
23021
+ return N === 45 || N === 58 ? M(N) : N === 124 ? (l = !0, e.enter("tableCellDivider"), e.consume(N), e.exit("tableCellDivider"), b) : B(N);
23022
23022
  }
23023
23023
  function b(N) {
23024
- return pe(N) ? he(e, E, "whitespace")(N) : E(N);
23024
+ return pe(N) ? he(e, M, "whitespace")(N) : M(N);
23025
23025
  }
23026
- function E(N) {
23026
+ function M(N) {
23027
23027
  return N === 58 ? (a += 1, l = !0, e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), w) : N === 45 ? (a += 1, w(N)) : N === null || J(N) ? D(N) : B(N);
23028
23028
  }
23029
23029
  function w(N) {
23030
- return N === 45 ? (e.enter("tableDelimiterFiller"), M(N)) : B(N);
23030
+ return N === 45 ? (e.enter("tableDelimiterFiller"), A(N)) : B(N);
23031
23031
  }
23032
- function M(N) {
23033
- return N === 45 ? (e.consume(N), M) : N === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), z) : (e.exit("tableDelimiterFiller"), z(N));
23032
+ function A(N) {
23033
+ return N === 45 ? (e.consume(N), A) : N === 58 ? (l = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(N), e.exit("tableDelimiterMarker"), z) : (e.exit("tableDelimiterFiller"), z(N));
23034
23034
  }
23035
23035
  function z(N) {
23036
23036
  return pe(N) ? he(e, D, "whitespace")(N) : D(N);
@@ -23476,45 +23476,45 @@ $1 $2
23476
23476
  const [u, m] = st(() => {
23477
23477
  const D = a.current.get(r);
23478
23478
  return D ? e.slice(0, D) : "";
23479
- }), [h, d] = st(!0), p = ut(a.current.get(r) || 0), v = ut(!1), b = ut(), E = ut(!1), w = ut(e);
23479
+ }), [h, d] = st(!0), p = ut(a.current.get(r) || 0), v = ut(!1), b = ut(), M = ut(!1), w = ut(e);
23480
23480
  xt(() => {
23481
23481
  if (i(r)) {
23482
23482
  m(e), d(!1), t(), a.current.set(r, e.length);
23483
23483
  return;
23484
23484
  }
23485
- if (E.current && e !== w.current) {
23485
+ if (M.current && e !== w.current) {
23486
23486
  w.current = e;
23487
23487
  return;
23488
23488
  }
23489
- if (!E.current)
23490
- return E.current = !0, w.current = e, setTimeout(() => {
23491
- M();
23489
+ if (!M.current)
23490
+ return M.current = !0, w.current = e, setTimeout(() => {
23491
+ A();
23492
23492
  }, 10), () => {
23493
23493
  b.current && cancelAnimationFrame(b.current);
23494
23494
  };
23495
23495
  }, [r, e, i, t]);
23496
- const M = () => {
23497
- if (v.current || !E.current)
23496
+ const A = () => {
23497
+ if (v.current || !M.current)
23498
23498
  return;
23499
23499
  v.current = !0, l.current = !0, o(!0);
23500
23500
  let D = p.current, B = 0, I = 0;
23501
23501
  const F = 15;
23502
23502
  d(D === 0);
23503
23503
  const Y = (H) => {
23504
- if (!(!v.current || !E.current)) {
23504
+ if (!(!v.current || !M.current)) {
23505
23505
  if (H - I < F) {
23506
23506
  b.current = requestAnimationFrame(Y);
23507
23507
  return;
23508
23508
  }
23509
23509
  if (I = H, D < w.current.length) {
23510
23510
  const N = w.current.slice(0, D + 1);
23511
- m(N), a.current.set(r, D + 1), D === 0 && d(!1), H - B > ce.ANIMATIONS.ANIMATION_SCROLL_INTERVAL && (s(), B = H), D++, p.current = D, b.current = requestAnimationFrame(Y);
23511
+ m(N), a.current.set(r, D + 1), D === 0 && d(!1), H - B > fe.ANIMATIONS.ANIMATION_SCROLL_INTERVAL && (s(), B = H), D++, p.current = D, b.current = requestAnimationFrame(Y);
23512
23512
  } else
23513
23513
  z();
23514
23514
  }
23515
23515
  };
23516
23516
  setTimeout(() => {
23517
- v.current && E.current && (b.current = requestAnimationFrame(Y));
23517
+ v.current && M.current && (b.current = requestAnimationFrame(Y));
23518
23518
  }, 0);
23519
23519
  }, z = () => {
23520
23520
  l.current = !1, t(), v.current = !1, o(!1), s(), a.current.set(r, w.current.length);
@@ -23531,9 +23531,9 @@ $1 $2
23531
23531
  const B = () => {
23532
23532
  if (document.hidden)
23533
23533
  b.current && (cancelAnimationFrame(b.current), v.current = !1), D = Date.now();
23534
- else if (E.current && !v.current && p.current > 0 && p.current < w.current.length) {
23534
+ else if (M.current && !v.current && p.current > 0 && p.current < w.current.length) {
23535
23535
  const I = Date.now();
23536
- D && I - D > ce.ANIMATIONS.VISIBILITY_SKIP_THRESHOLD ? (m(w.current), d(!1), z(), a.current.set(r, w.current.length)) : M(), D = null;
23536
+ D && I - D > fe.ANIMATIONS.VISIBILITY_SKIP_THRESHOLD ? (m(w.current), d(!1), z(), a.current.set(r, w.current.length)) : A(), D = null;
23537
23537
  }
23538
23538
  };
23539
23539
  return document.addEventListener("visibilitychange", B), () => {
@@ -23564,7 +23564,7 @@ $1 $2
23564
23564
  isTypingRef: p,
23565
23565
  setIsAnimating: v,
23566
23566
  formatTime: b,
23567
- lastMessageRef: E
23567
+ lastMessageRef: M
23568
23568
  }) => {
23569
23569
  const w = /* @__PURE__ */ new Date();
23570
23570
  return w.setMinutes(w.getMinutes() - (s - t)), /* @__PURE__ */ R.jsx(
@@ -23574,7 +23574,7 @@ $1 $2
23574
23574
  "flex",
23575
23575
  e.role === "user" ? "justify-end" : "justify-start"
23576
23576
  ),
23577
- ref: t === s - 1 ? E : null,
23577
+ ref: t === s - 1 ? M : null,
23578
23578
  children: /* @__PURE__ */ R.jsxs(
23579
23579
  "div",
23580
23580
  {
@@ -23628,7 +23628,26 @@ $1 $2
23628
23628
  "button",
23629
23629
  {
23630
23630
  onClick: () => l(e.content, t),
23631
- className: "text-gray-400 hover:text-gray-600 transition-colors ml-2 p-1 rounded-full",
23631
+ className: "ml-2 p-1 rounded-full",
23632
+ style: {
23633
+ color: i.text.secondary,
23634
+ transition: "color 0.2s ease",
23635
+ background: "transparent",
23636
+ border: "none",
23637
+ outline: "none"
23638
+ },
23639
+ onMouseEnter: (A) => {
23640
+ A.currentTarget.style.setProperty("color", i.text.primary, "important"), A.currentTarget.style.setProperty("background", "transparent", "important");
23641
+ },
23642
+ onMouseLeave: (A) => {
23643
+ A.currentTarget.style.setProperty("color", i.text.secondary, "important"), A.currentTarget.style.setProperty("background", "transparent", "important");
23644
+ },
23645
+ onMouseDown: (A) => {
23646
+ A.currentTarget.style.setProperty("color", i.text.primary, "important"), A.currentTarget.style.setProperty("background", "transparent", "important"), A.currentTarget.style.setProperty("transform", "none", "important");
23647
+ },
23648
+ onMouseUp: (A) => {
23649
+ A.currentTarget.style.setProperty("color", i.text.primary, "important"), A.currentTarget.style.setProperty("background", "transparent", "important");
23650
+ },
23632
23651
  "aria-label": "Copy to clipboard",
23633
23652
  children: a === t ? /* @__PURE__ */ R.jsx(lc, { size: 16 }) : /* @__PURE__ */ R.jsx(uc, { size: 16 })
23634
23653
  }
@@ -23668,9 +23687,9 @@ $1 $2
23668
23687
  focusInput: p,
23669
23688
  copiedMessageId: v,
23670
23689
  onCopyToClipboard: b,
23671
- onMarkMessageAnimated: E,
23690
+ onMarkMessageAnimated: M,
23672
23691
  inputRef: w,
23673
- hasBeenAnimated: M,
23692
+ hasBeenAnimated: A,
23674
23693
  typingProgressRef: z,
23675
23694
  isTypingRef: D,
23676
23695
  setIsAnimating: B,
@@ -23700,7 +23719,7 @@ $1 $2
23700
23719
  },
23701
23720
  "aria-label": "Scroll to top",
23702
23721
  title: "Scroll to top",
23703
- children: /* @__PURE__ */ R.jsx(sc, { size: ce.BUTTON_SIZES.ICON_SIZES.BUTTON })
23722
+ children: /* @__PURE__ */ R.jsx(sc, { size: fe.BUTTON_SIZES.ICON_SIZES.BUTTON })
23704
23723
  }
23705
23724
  ),
23706
23725
  a && !l && /* @__PURE__ */ R.jsx(
@@ -23714,7 +23733,7 @@ $1 $2
23714
23733
  },
23715
23734
  "aria-label": "Scroll to bottom",
23716
23735
  title: "Scroll to bottom",
23717
- children: /* @__PURE__ */ R.jsx(oc, { size: ce.BUTTON_SIZES.ICON_SIZES.BUTTON })
23736
+ children: /* @__PURE__ */ R.jsx(oc, { size: fe.BUTTON_SIZES.ICON_SIZES.BUTTON })
23718
23737
  }
23719
23738
  ),
23720
23739
  e.length === 0 ? /* @__PURE__ */ R.jsxs("div", { className: "text-center py-4", children: [
@@ -23722,39 +23741,49 @@ $1 $2
23722
23741
  Eo,
23723
23742
  {
23724
23743
  iconName: n.icon,
23725
- size: ce.BUTTON_SIZES.ICON_SIZES.WELCOME,
23744
+ size: fe.BUTTON_SIZES.ICON_SIZES.WELCOME,
23726
23745
  className: "mx-auto mb-2",
23727
23746
  style: { color: r.iconColor }
23728
23747
  }
23729
23748
  ),
23730
- /* @__PURE__ */ R.jsx("h4", { className: "font-medium text-2xl mb-3", style: { color: r.text.primary }, children: n.welcome.title }),
23731
- /* @__PURE__ */ R.jsx("div", { className: "w-full px-3 mb-4", children: /* @__PURE__ */ R.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: /* @__PURE__ */ R.jsx("p", { className: "text-xl text-left px-1 py-2", style: { color: r.text.secondary }, children: n.welcome.description }) }) }),
23732
- /* @__PURE__ */ R.jsx("div", { className: "w-full px-2", children: /* @__PURE__ */ R.jsx("div", { className: "grid gap-2 max-w-2xl mx-auto grid-cols-1 sm:grid-cols-2", children: n.suggestedQuestions.map((N, $) => {
23733
- var V;
23734
- return /* @__PURE__ */ R.jsxs(
23735
- "div",
23736
- {
23737
- onClick: () => {
23738
- var K;
23739
- const ie = H ?? ce.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, te = ((K = N.query) == null ? void 0 : K.length) > ie ? N.query.substring(0, ie) : N.query;
23740
- d(te), setTimeout(() => {
23741
- p();
23742
- }, ce.ANIMATIONS.TOGGLE_DELAY);
23743
- },
23744
- className: "flex items-center cursor-pointer p-2.5 text-left text-base rounded-lg transition-all duration-300 ease-in-out hover:opacity-80 hover:translate-x-1 hover:shadow-sm transform-gpu",
23745
- style: {
23746
- backgroundColor: "transparent",
23747
- color: r.suggestedQuestions.text
23748
- },
23749
- title: N.text,
23750
- children: [
23751
- /* @__PURE__ */ R.jsx(Yi, { size: ce.BUTTON_SIZES.ICON_SIZES.BUTTON, className: "mr-2.5 flex-shrink-0 opacity-70" }),
23752
- /* @__PURE__ */ R.jsx("span", { className: "flex-1 text-ellipsis overflow-hidden whitespace-nowrap font-medium", children: ((V = N.text) == null ? void 0 : V.length) > (Y ?? ce.MAX_SUGGESTED_QUESTION_LENGTH) ? `${N.text.substring(0, Y ?? ce.MAX_SUGGESTED_QUESTION_LENGTH)}...` : N.text })
23753
- ]
23749
+ /* @__PURE__ */ R.jsx("h4", { className: "font-medium text-xl mb-3", style: { color: r.text.primary }, children: n.welcome.title }),
23750
+ /* @__PURE__ */ R.jsx("div", { className: "w-full px-3 mb-4", children: /* @__PURE__ */ R.jsx("div", { className: "max-w-lg mx-auto sm:max-w-2xl", children: /* @__PURE__ */ R.jsx("p", { className: "text-lg text-left px-1 py-2", style: { color: r.text.secondary }, children: n.welcome.description }) }) }),
23751
+ /* @__PURE__ */ R.jsx("div", { className: "w-full px-2", children: /* @__PURE__ */ R.jsx(
23752
+ "div",
23753
+ {
23754
+ className: "grid gap-3 max-w-3xl mx-auto",
23755
+ style: {
23756
+ gridTemplateColumns: "repeat(auto-fit, minmax(240px, 1fr))",
23757
+ alignItems: "stretch"
23754
23758
  },
23755
- $
23756
- );
23757
- }) }) })
23759
+ children: n.suggestedQuestions.slice(0, 6).map((N, $) => {
23760
+ var ce, de;
23761
+ const V = H ?? fe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH, ie = Y ?? fe.MAX_SUGGESTED_QUESTION_LENGTH, te = ((ce = N.query) == null ? void 0 : ce.length) > V ? N.query.substring(0, V) : N.query, K = ((de = N.text) == null ? void 0 : de.length) > ie ? `${N.text.substring(0, ie)}...` : N.text;
23762
+ return /* @__PURE__ */ R.jsxs(
23763
+ "button",
23764
+ {
23765
+ onClick: () => {
23766
+ d(te), setTimeout(() => {
23767
+ p();
23768
+ }, fe.ANIMATIONS.TOGGLE_DELAY);
23769
+ },
23770
+ className: "flex items-center w-full cursor-pointer px-4 py-3 text-left text-base rounded-xl transition-all duration-200 ease-in-out bg-transparent border border-transparent hover:bg-black/5 hover:border-primary/40 focus:outline-none focus:ring-2 focus:ring-primary/30",
23771
+ style: {
23772
+ color: r.suggestedQuestions.text,
23773
+ minHeight: "48px",
23774
+ fontWeight: 500
23775
+ },
23776
+ title: N.text,
23777
+ children: [
23778
+ /* @__PURE__ */ R.jsx(Yi, { size: fe.BUTTON_SIZES.ICON_SIZES.BUTTON, className: "mr-3 flex-shrink-0 opacity-70" }),
23779
+ /* @__PURE__ */ R.jsx("span", { className: "flex-1 truncate", children: K })
23780
+ ]
23781
+ },
23782
+ $
23783
+ );
23784
+ })
23785
+ }
23786
+ ) })
23758
23787
  ] }) : (
23759
23788
  /* Messages List */
23760
23789
  /* @__PURE__ */ R.jsxs("div", { className: "space-y-3", children: [
@@ -23770,11 +23799,11 @@ $1 $2
23770
23799
  theme: r,
23771
23800
  copiedMessageId: v,
23772
23801
  onCopyToClipboard: b,
23773
- onMarkMessageAnimated: E,
23802
+ onMarkMessageAnimated: M,
23774
23803
  messagesLength: e.length,
23775
23804
  scrollToBottom: m,
23776
23805
  inputRef: w,
23777
- hasBeenAnimated: M,
23806
+ hasBeenAnimated: A,
23778
23807
  typingProgressRef: z,
23779
23808
  isTypingRef: D,
23780
23809
  setIsAnimating: B,
@@ -23826,7 +23855,7 @@ $1 $2
23826
23855
  }
23827
23856
  }
23828
23857
  ),
23829
- /* @__PURE__ */ R.jsxs("div", { className: "flex items-end gap-3", children: [
23858
+ /* @__PURE__ */ R.jsxs("div", { className: "flex items-center gap-3", children: [
23830
23859
  /* @__PURE__ */ R.jsxs(
23831
23860
  "div",
23832
23861
  {
@@ -23853,7 +23882,9 @@ $1 $2
23853
23882
  onFocus: () => s(!0),
23854
23883
  onBlur: () => s(!1),
23855
23884
  placeholder: "Type your message...",
23856
- maxLength: ce.MAX_MESSAGE_LENGTH,
23885
+ maxLength: fe.MAX_MESSAGE_LENGTH,
23886
+ id: "chat-message-input",
23887
+ name: "chat-message-input",
23857
23888
  className: "w-full resize-none outline-none p-4 pr-12 text-base custom-scrollbar focus:ring-0 focus:outline-none placeholder-gray-400 transition-all duration-200",
23858
23889
  style: {
23859
23890
  background: "transparent",
@@ -23873,7 +23904,7 @@ $1 $2
23873
23904
  {
23874
23905
  className: "absolute bottom-2 right-3 text-xs px-2.5 py-1 rounded-full transition-all duration-200 backdrop-blur-sm",
23875
23906
  style: {
23876
- ...$c(e.length, ce.MAX_MESSAGE_LENGTH),
23907
+ ...$c(e.length, fe.MAX_MESSAGE_LENGTH),
23877
23908
  backdropFilter: "blur(8px)",
23878
23909
  WebkitBackdropFilter: "blur(8px)",
23879
23910
  fontWeight: "500"
@@ -23881,7 +23912,7 @@ $1 $2
23881
23912
  children: [
23882
23913
  e.length,
23883
23914
  "/",
23884
- ce.MAX_MESSAGE_LENGTH
23915
+ fe.MAX_MESSAGE_LENGTH
23885
23916
  ]
23886
23917
  }
23887
23918
  )
@@ -23906,8 +23937,6 @@ $1 $2
23906
23937
  height: "54px",
23907
23938
  // Match input height + border (52px + 2px border)
23908
23939
  minHeight: "54px",
23909
- // Slight upward adjustment for perfect visual centering
23910
- transform: "translateY(-2px)",
23911
23940
  padding: "0",
23912
23941
  border: "none",
23913
23942
  boxShadow: e.trim() && !r ? `0 4px 12px -2px ${n.secondary}40` : "0 2px 4px -1px rgba(0, 0, 0, 0.1)",
@@ -23930,32 +23959,13 @@ $1 $2
23930
23959
  }
23931
23960
  ),
23932
23961
  /* @__PURE__ */ R.jsx(
23933
- "div",
23962
+ pc,
23934
23963
  {
23935
- className: "absolute inset-0 flex items-center justify-center",
23964
+ size: fe.BUTTON_SIZES.ICON_SIZES.SEND,
23965
+ className: "transition-transform duration-200 drop-shadow-sm",
23936
23966
  style: {
23937
- // Extra centering container to ensure perfect alignment
23938
- display: "flex",
23939
- alignItems: "center",
23940
- justifyContent: "center",
23941
- width: "100%",
23942
- height: "100%"
23943
- },
23944
- children: /* @__PURE__ */ R.jsx(
23945
- pc,
23946
- {
23947
- size: ce.BUTTON_SIZES.ICON_SIZES.SEND,
23948
- className: "transition-transform duration-200 group-hover:translate-x-0.5 drop-shadow-sm",
23949
- style: {
23950
- // Ensure icon is perfectly centered
23951
- display: "block",
23952
- strokeWidth: 2,
23953
- // Enterprise-grade icon weight
23954
- // Fine-tune positioning for perfect visual centering
23955
- transform: "translate(0.5px, -0.5px)"
23956
- }
23957
- }
23958
- )
23967
+ strokeWidth: 2
23968
+ }
23959
23969
  }
23960
23970
  )
23961
23971
  ]
@@ -23974,10 +23984,10 @@ $1 $2
23974
23984
  markMessageAnimated: p,
23975
23985
  hasBeenAnimated: v,
23976
23986
  clearAnimationTrackers: b,
23977
- setIsAnimating: E
23987
+ setIsAnimating: M
23978
23988
  } = Xc(), {
23979
23989
  showScrollTop: w,
23980
- showScrollBottom: M,
23990
+ showScrollBottom: A,
23981
23991
  messagesContainerRef: z,
23982
23992
  messagesEndRef: D,
23983
23993
  shouldScrollRef: B,
@@ -24010,48 +24020,48 @@ $1 $2
24010
24020
  }));
24011
24021
  }, [e]), xt(() => {
24012
24022
  Vc({
24013
- MAX_SUGGESTED_QUESTION_LENGTH: e.maxSuggestedQuestionLength ?? ce.MAX_SUGGESTED_QUESTION_LENGTH,
24014
- MAX_SUGGESTED_QUESTION_QUERY_LENGTH: e.maxSuggestedQuestionQueryLength ?? ce.MAX_SUGGESTED_QUESTION_QUERY_LENGTH
24023
+ MAX_SUGGESTED_QUESTION_LENGTH: e.maxSuggestedQuestionLength ?? fe.MAX_SUGGESTED_QUESTION_LENGTH,
24024
+ MAX_SUGGESTED_QUESTION_QUERY_LENGTH: e.maxSuggestedQuestionQueryLength ?? fe.MAX_SUGGESTED_QUESTION_QUERY_LENGTH
24015
24025
  });
24016
24026
  }, [e.maxSuggestedQuestionLength, e.maxSuggestedQuestionQueryLength]);
24017
24027
  const {
24018
- messages: me,
24019
- isLoading: ve,
24028
+ messages: ce,
24029
+ isLoading: de,
24020
24030
  sendMessage: Ce,
24021
24031
  clearMessages: Ue
24022
24032
  } = To(), {
24023
24033
  message: S,
24024
24034
  isFocused: Me,
24025
24035
  inputRef: we,
24026
- handleMessageChange: A,
24036
+ handleMessageChange: E,
24027
24037
  handleKeyDown: Fe,
24028
24038
  handleSendMessage: $e,
24029
24039
  setIsFocused: ze,
24030
24040
  focusInput: Ve
24031
24041
  } = Kc({
24032
24042
  onSendMessage: (Pe) => {
24033
- B.current = !0, Ce(Pe), setTimeout(() => F(!0), ce.ANIMATIONS.TOGGLE_DELAY);
24043
+ B.current = !0, Ce(Pe), setTimeout(() => F(!0), fe.ANIMATIONS.TOGGLE_DELAY);
24034
24044
  },
24035
- isLoading: ve,
24045
+ isLoading: de,
24036
24046
  isOpen: t
24037
24047
  });
24038
24048
  xt(() => {
24039
- me.length === 0 && b();
24040
- }, [me.length, b]);
24049
+ ce.length === 0 && b();
24050
+ }, [ce.length, b]);
24041
24051
  const Re = () => {
24042
- r(!t), t || (i(!1), setTimeout(() => F(!0), ce.ANIMATIONS.TOGGLE_DELAY));
24052
+ r(!t), t || (i(!1), setTimeout(() => F(!0), fe.ANIMATIONS.TOGGLE_DELAY));
24043
24053
  }, Ge = async (Pe, Et) => {
24044
24054
  try {
24045
24055
  await navigator.clipboard.writeText(Pe), s(Et), setTimeout(() => {
24046
24056
  s(null);
24047
- }, ce.ANIMATIONS.COPY_FEEDBACK_DURATION);
24057
+ }, fe.ANIMATIONS.COPY_FEEDBACK_DURATION);
24048
24058
  } catch (jt) {
24049
24059
  console.error("Failed to copy text: ", jt);
24050
24060
  }
24051
24061
  }, We = (Pe) => Pe.toLocaleTimeString([], { hour: "2-digit", minute: "2-digit" });
24052
24062
  return xt(() => {
24053
- (ve || me.length === 0) && F(!0);
24054
- }, [me, ve, F]), xt(() => () => {
24063
+ (de || ce.length === 0) && F(!0);
24064
+ }, [ce, de, F]), xt(() => () => {
24055
24065
  I.current && clearTimeout(I.current);
24056
24066
  }, [I]), /* @__PURE__ */ R.jsxs("div", { className: "fixed bottom-8 right-8 z-50 flex flex-col items-end font-sans", style: { fontFamily: Uc }, children: [
24057
24067
  t && /* @__PURE__ */ R.jsxs(
@@ -24060,8 +24070,8 @@ $1 $2
24060
24070
  className: "mb-4 w-full rounded-2xl shadow-elegant flex flex-col overflow-hidden border-0 transition-all duration-300 ease-in-out animate-slide-in-up backdrop-blur-lg",
24061
24071
  style: {
24062
24072
  background: `linear-gradient(145deg, ${K.background}, ${K.background}f0)`,
24063
- height: ce.WINDOW_DIMENSIONS.HEIGHT,
24064
- maxHeight: ce.WINDOW_DIMENSIONS.MAX_HEIGHT,
24073
+ height: fe.WINDOW_DIMENSIONS.HEIGHT,
24074
+ maxHeight: fe.WINDOW_DIMENSIONS.MAX_HEIGHT,
24065
24075
  width: qc(N),
24066
24076
  minWidth: jc(N),
24067
24077
  backdropFilter: "blur(20px)",
@@ -24097,7 +24107,7 @@ $1 $2
24097
24107
  Eo,
24098
24108
  {
24099
24109
  iconName: ie.icon,
24100
- size: ce.BUTTON_SIZES.ICON_SIZES.HEADER,
24110
+ size: fe.BUTTON_SIZES.ICON_SIZES.HEADER,
24101
24111
  className: "mr-2.5 transition-transform duration-300 hover:scale-110",
24102
24112
  style: { color: K.secondary, filter: "drop-shadow(0 2px 4px rgba(0,0,0,0.1))" }
24103
24113
  }
@@ -24115,7 +24125,7 @@ $1 $2
24115
24125
  style: { color: K.text.inverse },
24116
24126
  "aria-label": "Clear conversation",
24117
24127
  title: "Clear conversation",
24118
- children: /* @__PURE__ */ R.jsx(gc, { size: ce.BUTTON_SIZES.ICON_SIZES.SEND, className: "drop-shadow-sm" })
24128
+ children: /* @__PURE__ */ R.jsx(gc, { size: fe.BUTTON_SIZES.ICON_SIZES.SEND, className: "drop-shadow-sm" })
24119
24129
  }
24120
24130
  ),
24121
24131
  /* @__PURE__ */ R.jsx(
@@ -24125,7 +24135,7 @@ $1 $2
24125
24135
  className: "btn-modern transition-all duration-200 p-2 rounded-xl hover:bg-white hover:bg-opacity-20 animate-button-hover",
24126
24136
  style: { color: K.text.inverse },
24127
24137
  "aria-label": "Minimize chat",
24128
- children: /* @__PURE__ */ R.jsx(wa, { size: ce.BUTTON_SIZES.ICON_SIZES.MINIMIZE, className: "text-white opacity-90 drop-shadow-sm" })
24138
+ children: /* @__PURE__ */ R.jsx(wa, { size: fe.BUTTON_SIZES.ICON_SIZES.MINIMIZE, className: "text-white opacity-90 drop-shadow-sm" })
24129
24139
  }
24130
24140
  )
24131
24141
  ] })
@@ -24135,12 +24145,12 @@ $1 $2
24135
24145
  /* @__PURE__ */ R.jsx(
24136
24146
  N3,
24137
24147
  {
24138
- messages: me,
24139
- isLoading: ve,
24148
+ messages: ce,
24149
+ isLoading: de,
24140
24150
  theme: K,
24141
24151
  currentConfig: ie,
24142
24152
  showScrollTop: w,
24143
- showScrollBottom: M,
24153
+ showScrollBottom: A,
24144
24154
  isAnimating: u,
24145
24155
  messagesContainerRef: z,
24146
24156
  messagesEndRef: D,
@@ -24156,7 +24166,7 @@ $1 $2
24156
24166
  hasBeenAnimated: v,
24157
24167
  typingProgressRef: m,
24158
24168
  isTypingRef: h,
24159
- setIsAnimating: E,
24169
+ setIsAnimating: M,
24160
24170
  formatTime: We,
24161
24171
  lastMessageRef: d,
24162
24172
  maxSuggestedQuestionLength: e.maxSuggestedQuestionLength,
@@ -24168,10 +24178,10 @@ $1 $2
24168
24178
  {
24169
24179
  message: S,
24170
24180
  isFocused: Me,
24171
- isLoading: ve,
24181
+ isLoading: de,
24172
24182
  theme: K,
24173
24183
  inputRef: we,
24174
- handleMessageChange: A,
24184
+ handleMessageChange: E,
24175
24185
  handleKeyDown: Fe,
24176
24186
  handleSendMessage: $e,
24177
24187
  setIsFocused: ze
@@ -24197,8 +24207,8 @@ $1 $2
24197
24207
  background: t ? `linear-gradient(135deg, ${K.primary}, ${K.primary}e6)` : `linear-gradient(135deg, ${((nt = K.chatButton) == null ? void 0 : nt.background) || "#ffffff"}, ${((er = K.chatButton) == null ? void 0 : er.hoverBackground) || "#f8fafc"})`,
24198
24208
  color: t ? void 0 : K.iconColor,
24199
24209
  border: t ? "none" : "1px solid rgba(0, 0, 0, 0.1)",
24200
- width: ce.BUTTON_SIZES.CHAT_BUTTON.width,
24201
- height: ce.BUTTON_SIZES.CHAT_BUTTON.height,
24210
+ width: fe.BUTTON_SIZES.CHAT_BUTTON.width,
24211
+ height: fe.BUTTON_SIZES.CHAT_BUTTON.height,
24202
24212
  transform: a ? "translateY(-2px) scale(1.05)" : "translateY(0) scale(1)",
24203
24213
  boxShadow: t ? "0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04)" : "0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1)"
24204
24214
  },
@@ -24219,7 +24229,7 @@ $1 $2
24219
24229
  t ? /* @__PURE__ */ R.jsx(
24220
24230
  wa,
24221
24231
  {
24222
- size: ce.BUTTON_SIZES.ICON_SIZES.MINIMIZE,
24232
+ size: fe.BUTTON_SIZES.ICON_SIZES.MINIMIZE,
24223
24233
  className: "text-white opacity-90 drop-shadow-sm relative z-10"
24224
24234
  }
24225
24235
  ) : /* @__PURE__ */ R.jsx(