@botpress/webchat 4.4.7 → 4.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -13,14 +13,14 @@ function Cv(e, t = []) {
13
13
  n = [...n, s];
14
14
  const u = (c) => {
15
15
  var v;
16
- const { scope: h, children: d, ...m } = c, p = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => m, Object.values(m));
17
- return /* @__PURE__ */ T(p.Provider, { value: g, children: d });
16
+ const { scope: h, children: d, ...p } = c, m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => p, Object.values(p));
17
+ return /* @__PURE__ */ T(m.Provider, { value: g, children: d });
18
18
  };
19
19
  u.displayName = o + "Provider";
20
20
  function f(c, h) {
21
- var p;
22
- const d = ((p = h == null ? void 0 : h[e]) == null ? void 0 : p[l]) || a, m = C.useContext(d);
23
- if (m) return m;
21
+ var m;
22
+ const d = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[l]) || a, p = C.useContext(d);
23
+ if (p) return p;
24
24
  if (s !== void 0) return s;
25
25
  throw new Error(`\`${c}\` must be used within \`${o}\``);
26
26
  }
@@ -192,16 +192,16 @@ function _v() {
192
192
  }
193
193
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
194
194
  function a(c, h) {
195
- var d = h(), m = r({ inst: { value: d, getSnapshot: h } }), p = m[0].inst, g = m[1];
195
+ var d = h(), p = r({ inst: { value: d, getSnapshot: h } }), m = p[0].inst, g = p[1];
196
196
  return o(
197
197
  function() {
198
- p.value = d, p.getSnapshot = h, l(p) && g({ inst: p });
198
+ m.value = d, m.getSnapshot = h, l(m) && g({ inst: m });
199
199
  },
200
200
  [c, d, h]
201
201
  ), i(
202
202
  function() {
203
- return l(p) && g({ inst: p }), c(function() {
204
- l(p) && g({ inst: p });
203
+ return l(m) && g({ inst: m }), c(function() {
204
+ l(m) && g({ inst: m });
205
205
  });
206
206
  },
207
207
  [c]
@@ -236,29 +236,29 @@ var fs = {};
236
236
  var Vu;
237
237
  function Fv() {
238
238
  return Vu || (Vu = 1, process.env.NODE_ENV !== "production" && function() {
239
- function e(d, m) {
240
- return d === m && (d !== 0 || 1 / d === 1 / m) || d !== d && m !== m;
239
+ function e(d, p) {
240
+ return d === p && (d !== 0 || 1 / d === 1 / p) || d !== d && p !== p;
241
241
  }
242
- function t(d, m) {
242
+ function t(d, p) {
243
243
  f || i.startTransition === void 0 || (f = !0, console.error(
244
244
  "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."
245
245
  ));
246
- var p = m();
246
+ var m = p();
247
247
  if (!c) {
248
- var g = m();
249
- o(p, g) || (console.error(
248
+ var g = p();
249
+ o(m, g) || (console.error(
250
250
  "The result of getSnapshot should be cached to avoid an infinite loop"
251
251
  ), c = !0);
252
252
  }
253
253
  g = s({
254
- inst: { value: p, getSnapshot: m }
254
+ inst: { value: m, getSnapshot: p }
255
255
  });
256
256
  var v = g[0].inst, y = g[1];
257
257
  return l(
258
258
  function() {
259
- v.value = p, v.getSnapshot = m, n(v) && y({ inst: v });
259
+ v.value = m, v.getSnapshot = p, n(v) && y({ inst: v });
260
260
  },
261
- [d, p, m]
261
+ [d, m, p]
262
262
  ), a(
263
263
  function() {
264
264
  return n(v) && y({ inst: v }), d(function() {
@@ -266,20 +266,20 @@ function Fv() {
266
266
  });
267
267
  },
268
268
  [d]
269
- ), u(p), p;
269
+ ), u(m), m;
270
270
  }
271
271
  function n(d) {
272
- var m = d.getSnapshot;
272
+ var p = d.getSnapshot;
273
273
  d = d.value;
274
274
  try {
275
- var p = m();
276
- return !o(d, p);
275
+ var m = p();
276
+ return !o(d, m);
277
277
  } catch {
278
278
  return !0;
279
279
  }
280
280
  }
281
- function r(d, m) {
282
- return m();
281
+ function r(d, p) {
282
+ return p();
283
283
  }
284
284
  typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
285
285
  var i = yt, o = typeof Object.is == "function" ? Object.is : e, s = i.useState, a = i.useEffect, l = i.useLayoutEffect, u = i.useDebugValue, f = !1, c = !1, h = typeof window > "u" || typeof window.document > "u" || typeof window.document.createElement > "u" ? r : t;
@@ -392,7 +392,7 @@ var dh = { exports: {} };
392
392
  (function(n, r) {
393
393
  e.exports = r();
394
394
  })(Mn, function() {
395
- var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", u = "day", f = "week", c = "month", h = "quarter", d = "year", m = "date", p = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
395
+ var n = 1e3, r = 6e4, i = 36e5, o = "millisecond", s = "second", a = "minute", l = "hour", u = "day", f = "week", c = "month", h = "quarter", d = "year", p = "date", m = "Invalid Date", g = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, v = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, y = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(L) {
396
396
  var _ = ["th", "st", "nd", "rd"], D = L % 100;
397
397
  return "[" + L + (_[(D - 20) % 10] || _[D] || _[0]) + "]";
398
398
  } }, w = function(L, _, D) {
@@ -408,7 +408,7 @@ var dh = { exports: {} };
408
408
  }, a: function(L) {
409
409
  return L < 0 ? Math.ceil(L) || 0 : Math.floor(L);
410
410
  }, p: function(L) {
411
- return { M: c, y: d, w: f, d: u, D: m, h: l, m: a, s, ms: o, Q: h }[L] || String(L || "").toLowerCase().replace(/s$/, "");
411
+ return { M: c, y: d, w: f, d: u, D: p, h: l, m: a, s, ms: o, Q: h }[L] || String(L || "").toLowerCase().replace(/s$/, "");
412
412
  }, u: function(L) {
413
413
  return L === void 0;
414
414
  } }, S = "en", k = {};
@@ -462,7 +462,7 @@ var dh = { exports: {} };
462
462
  }, _.$utils = function() {
463
463
  return O;
464
464
  }, _.isValid = function() {
465
- return this.$d.toString() !== p;
465
+ return this.$d.toString() !== m;
466
466
  }, _.isSame = function(D, U) {
467
467
  var B = A(D);
468
468
  return this.startOf(U) <= B && B <= this.endOf(U);
@@ -478,8 +478,8 @@ var dh = { exports: {} };
478
478
  return this.$d.getTime();
479
479
  }, _.startOf = function(D, U) {
480
480
  var B = this, j = !!O.u(U) || U, b = O.p(D), M = function(ie, Y) {
481
- var ee = O.w(B.$u ? Date.UTC(B.$y, Y, ie) : new Date(B.$y, Y, ie), B);
482
- return j ? ee : ee.endOf(u);
481
+ var te = O.w(B.$u ? Date.UTC(B.$y, Y, ie) : new Date(B.$y, Y, ie), B);
482
+ return j ? te : te.endOf(u);
483
483
  }, $ = function(ie, Y) {
484
484
  return O.w(B.toDate()[ie].apply(B.toDate("s"), (j ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Y)), B);
485
485
  }, x = this.$W, V = this.$M, Z = this.$D, q = "set" + (this.$u ? "UTC" : "");
@@ -492,7 +492,7 @@ var dh = { exports: {} };
492
492
  var K = this.$locale().weekStart || 0, J = (x < K ? x + 7 : x) - K;
493
493
  return M(j ? Z - J : Z + (6 - J), V);
494
494
  case u:
495
- case m:
495
+ case p:
496
496
  return $(q + "Hours", 0);
497
497
  case l:
498
498
  return $(q + "Minutes", 1);
@@ -506,10 +506,10 @@ var dh = { exports: {} };
506
506
  }, _.endOf = function(D) {
507
507
  return this.startOf(D, !1);
508
508
  }, _.$set = function(D, U) {
509
- var B, j = O.p(D), b = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[u] = b + "Date", B[m] = b + "Date", B[c] = b + "Month", B[d] = b + "FullYear", B[l] = b + "Hours", B[a] = b + "Minutes", B[s] = b + "Seconds", B[o] = b + "Milliseconds", B)[j], $ = j === u ? this.$D + (U - this.$W) : U;
509
+ var B, j = O.p(D), b = "set" + (this.$u ? "UTC" : ""), M = (B = {}, B[u] = b + "Date", B[p] = b + "Date", B[c] = b + "Month", B[d] = b + "FullYear", B[l] = b + "Hours", B[a] = b + "Minutes", B[s] = b + "Seconds", B[o] = b + "Milliseconds", B)[j], $ = j === u ? this.$D + (U - this.$W) : U;
510
510
  if (j === c || j === d) {
511
- var x = this.clone().set(m, 1);
512
- x.$d[M]($), x.init(), this.$d = x.set(m, Math.min(this.$D, x.daysInMonth())).$d;
511
+ var x = this.clone().set(p, 1);
512
+ x.$d[M]($), x.init(), this.$d = x.set(p, Math.min(this.$D, x.daysInMonth())).$d;
513
513
  } else M && this.$d[M]($);
514
514
  return this.init(), this;
515
515
  }, _.set = function(D, U) {
@@ -533,17 +533,17 @@ var dh = { exports: {} };
533
533
  return this.add(-1 * D, U);
534
534
  }, _.format = function(D) {
535
535
  var U = this, B = this.$locale();
536
- if (!this.isValid()) return B.invalidDate || p;
537
- var j = D || "YYYY-MM-DDTHH:mm:ssZ", b = O.z(this), M = this.$H, $ = this.$m, x = this.$M, V = B.weekdays, Z = B.months, q = B.meridiem, K = function(Y, ee, F, te) {
538
- return Y && (Y[ee] || Y(U, j)) || F[ee].slice(0, te);
536
+ if (!this.isValid()) return B.invalidDate || m;
537
+ var j = D || "YYYY-MM-DDTHH:mm:ssZ", b = O.z(this), M = this.$H, $ = this.$m, x = this.$M, V = B.weekdays, Z = B.months, q = B.meridiem, K = function(Y, te, F, ee) {
538
+ return Y && (Y[te] || Y(U, j)) || F[te].slice(0, ee);
539
539
  }, J = function(Y) {
540
540
  return O.s(M % 12 || 12, Y, "0");
541
- }, ie = q || function(Y, ee, F) {
542
- var te = Y < 12 ? "AM" : "PM";
543
- return F ? te.toLowerCase() : te;
541
+ }, ie = q || function(Y, te, F) {
542
+ var ee = Y < 12 ? "AM" : "PM";
543
+ return F ? ee.toLowerCase() : ee;
544
544
  };
545
- return j.replace(v, function(Y, ee) {
546
- return ee || function(F) {
545
+ return j.replace(v, function(Y, te) {
546
+ return te || function(F) {
547
547
  switch (F) {
548
548
  case "YY":
549
549
  return String(U.$y).slice(-2);
@@ -652,7 +652,7 @@ var dh = { exports: {} };
652
652
  return this.$d.toUTCString();
653
653
  }, L;
654
654
  }(), P = z.prototype;
655
- return A.prototype = P, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", u], ["$M", c], ["$y", d], ["$D", m]].forEach(function(L) {
655
+ return A.prototype = P, [["$ms", o], ["$s", s], ["$m", a], ["$H", l], ["$W", u], ["$M", c], ["$y", d], ["$D", p]].forEach(function(L) {
656
656
  P[L[1]] = function(_) {
657
657
  return this.$g(_, L[0], L[1]);
658
658
  };
@@ -1291,12 +1291,12 @@ class gt {
1291
1291
  return n > 0 && (r.padTo = n), this.loc.numberFormatter(r).format(t);
1292
1292
  }
1293
1293
  formatDateTimeFromString(t, n) {
1294
- const r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (d, m) => this.loc.extract(t, d, m), s = (d) => t.isOffsetFixed && t.offset === 0 && d.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, d.format) : "", a = () => r ? vb(t) : o({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (d, m) => r ? wb(t, d) : o(m ? { month: d } : { month: d, day: "numeric" }, "month"), u = (d, m) => r ? bb(t, d) : o(
1295
- m ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
1294
+ const r = this.loc.listingMode() === "en", i = this.loc.outputCalendar && this.loc.outputCalendar !== "gregory", o = (d, p) => this.loc.extract(t, d, p), s = (d) => t.isOffsetFixed && t.offset === 0 && d.allowZ ? "Z" : t.isValid ? t.zone.formatOffset(t.ts, d.format) : "", a = () => r ? vb(t) : o({ hour: "numeric", hourCycle: "h12" }, "dayperiod"), l = (d, p) => r ? wb(t, d) : o(p ? { month: d } : { month: d, day: "numeric" }, "month"), u = (d, p) => r ? bb(t, d) : o(
1295
+ p ? { weekday: d } : { weekday: d, month: "long", day: "numeric" },
1296
1296
  "weekday"
1297
1297
  ), f = (d) => {
1298
- const m = gt.macroTokenToFormatOpts(d);
1299
- return m ? this.formatWithSystemDefault(t, m) : d;
1298
+ const p = gt.macroTokenToFormatOpts(d);
1299
+ return p ? this.formatWithSystemDefault(t, p) : d;
1300
1300
  }, c = (d) => r ? xb(t, d) : o({ era: d }, "era"), h = (d) => {
1301
1301
  switch (d) {
1302
1302
  case "S":
@@ -1697,8 +1697,8 @@ class sn extends fi {
1697
1697
  millisecond: 0
1698
1698
  });
1699
1699
  let d = +n;
1700
- const m = d % 1e3;
1701
- return d -= m >= 0 ? m : 1e3 + m, (h - d) / (60 * 1e3);
1700
+ const p = d % 1e3;
1701
+ return d -= p >= 0 ? p : 1e3 + p, (h - d) / (60 * 1e3);
1702
1702
  }
1703
1703
  /** @override **/
1704
1704
  equals(t) {
@@ -2213,7 +2213,7 @@ function hi(e, t) {
2213
2213
  }
2214
2214
  const Qb = RegExp(`^T?${Bl.source}$`), Zb = /^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;
2215
2215
  function Jb(e) {
2216
- const [t, n, r, i, o, s, a, l, u] = e, f = t[0] === "-", c = l && l[0] === "-", h = (d, m = !1) => d !== void 0 && (m || d && f) ? -d : d;
2216
+ const [t, n, r, i, o, s, a, l, u] = e, f = t[0] === "-", c = l && l[0] === "-", h = (d, p = !1) => d !== void 0 && (p || d && f) ? -d : d;
2217
2217
  return [
2218
2218
  {
2219
2219
  years: h(En(n)),
@@ -3665,7 +3665,7 @@ function $0(e) {
3665
3665
  return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
3666
3666
  }
3667
3667
  function B0(e, t) {
3668
- const n = Pt(t), r = Pt(t, "{2}"), i = Pt(t, "{3}"), o = Pt(t, "{4}"), s = Pt(t, "{6}"), a = Pt(t, "{1,2}"), l = Pt(t, "{1,3}"), u = Pt(t, "{1,6}"), f = Pt(t, "{1,9}"), c = Pt(t, "{2,4}"), h = Pt(t, "{4,6}"), d = (g) => ({ regex: RegExp($0(g.val)), deser: ([v]) => v, literal: !0 }), p = ((g) => {
3668
+ const n = Pt(t), r = Pt(t, "{2}"), i = Pt(t, "{3}"), o = Pt(t, "{4}"), s = Pt(t, "{6}"), a = Pt(t, "{1,2}"), l = Pt(t, "{1,3}"), u = Pt(t, "{1,6}"), f = Pt(t, "{1,9}"), c = Pt(t, "{2,4}"), h = Pt(t, "{4,6}"), d = (g) => ({ regex: RegExp($0(g.val)), deser: ([v]) => v, literal: !0 }), m = ((g) => {
3669
3669
  if (e.literal)
3670
3670
  return d(g);
3671
3671
  switch (g.val) {
@@ -3771,7 +3771,7 @@ function B0(e, t) {
3771
3771
  })(e) || {
3772
3772
  invalidReason: L0
3773
3773
  };
3774
- return p.token = e, p;
3774
+ return m.token = e, m;
3775
3775
  }
3776
3776
  const z0 = {
3777
3777
  year: {
@@ -4331,12 +4331,12 @@ class he {
4331
4331
  if (u && a)
4332
4332
  throw new _r("Can't mix ordinal dates with month/day");
4333
4333
  const d = c || s.weekday && !f;
4334
- let m, p, g = hc(i, o);
4335
- d ? (m = X0, p = Z0, g = Na(g)) : a ? (m = ew, p = J0, g = gs(g)) : (m = dp, p = fp);
4334
+ let p, m, g = hc(i, o);
4335
+ d ? (p = X0, m = Z0, g = Na(g)) : a ? (p = ew, m = J0, g = gs(g)) : (p = dp, m = fp);
4336
4336
  let v = !1;
4337
- for (const R of m) {
4337
+ for (const R of p) {
4338
4338
  const N = s[R];
4339
- xe(N) ? v ? s[R] = p[R] : s[R] = g[R] : v = !0;
4339
+ xe(N) ? v ? s[R] = m[R] : s[R] = g[R] : v = !0;
4340
4340
  }
4341
4341
  const y = d ? G0(s) : a ? Q0(s) : lp(s), w = y || up(s);
4342
4342
  if (w)
@@ -5594,12 +5594,12 @@ function ww(e) {
5594
5594
  const { radius: t, themeMode: n, color: r, variant: i, headerVariant: o } = e;
5595
5595
  let s = {}, a = {};
5596
5596
  if (r) {
5597
- const h = Gu(r), d = n === "dark" ? wc(h) : h, m = Gu(nw(rw(Pa(r)))), p = n === "dark" ? wc(m) : m, g = n === "dark" ? "#101010" : "#fdfdfd";
5597
+ const h = Gu(r), d = n === "dark" ? wc(h) : h, p = Gu(nw(rw(Pa(r)))), m = n === "dark" ? wc(p) : p, g = n === "dark" ? "#101010" : "#fdfdfd";
5598
5598
  a = Object.entries({ ...d, 1: g }).reduce(
5599
5599
  (y, [w, E]) => ({ ...y, [`--bpPrimary-${w}`]: E }),
5600
5600
  {}
5601
5601
  );
5602
- const v = Object.entries({ ...p, 1: g }).reduce(
5602
+ const v = Object.entries({ ...m, 1: g }).reduce(
5603
5603
  (y, [w, E]) => ({ ...y, [`--bpGray-${w}`]: E }),
5604
5604
  {}
5605
5605
  );
@@ -7015,76 +7015,76 @@ function p1(e, t) {
7015
7015
  if (!e) return [];
7016
7016
  t = t || {};
7017
7017
  var n = 1, r = 1;
7018
- function i(m) {
7019
- var p = m.match(i1);
7020
- p && (n += p.length);
7021
- var g = m.lastIndexOf(f1);
7022
- r = ~g ? m.length - g : r + m.length;
7018
+ function i(p) {
7019
+ var m = p.match(i1);
7020
+ m && (n += m.length);
7021
+ var g = p.lastIndexOf(f1);
7022
+ r = ~g ? p.length - g : r + p.length;
7023
7023
  }
7024
7024
  function o() {
7025
- var m = { line: n, column: r };
7026
- return function(p) {
7027
- return p.position = new s(m), u(), p;
7025
+ var p = { line: n, column: r };
7026
+ return function(m) {
7027
+ return m.position = new s(p), u(), m;
7028
7028
  };
7029
7029
  }
7030
- function s(m) {
7031
- this.start = m, this.end = { line: n, column: r }, this.source = t.source;
7030
+ function s(p) {
7031
+ this.start = p, this.end = { line: n, column: r }, this.source = t.source;
7032
7032
  }
7033
7033
  s.prototype.content = e;
7034
- function a(m) {
7035
- var p = new Error(
7036
- t.source + ":" + n + ":" + r + ": " + m
7034
+ function a(p) {
7035
+ var m = new Error(
7036
+ t.source + ":" + n + ":" + r + ": " + p
7037
7037
  );
7038
- if (p.reason = m, p.filename = t.source, p.line = n, p.column = r, p.source = e, !t.silent) throw p;
7038
+ if (m.reason = p, m.filename = t.source, m.line = n, m.column = r, m.source = e, !t.silent) throw m;
7039
7039
  }
7040
- function l(m) {
7041
- var p = m.exec(e);
7042
- if (p) {
7043
- var g = p[0];
7044
- return i(g), e = e.slice(g.length), p;
7040
+ function l(p) {
7041
+ var m = p.exec(e);
7042
+ if (m) {
7043
+ var g = m[0];
7044
+ return i(g), e = e.slice(g.length), m;
7045
7045
  }
7046
7046
  }
7047
7047
  function u() {
7048
7048
  l(o1);
7049
7049
  }
7050
- function f(m) {
7051
- var p;
7052
- for (m = m || []; p = c(); )
7053
- p !== !1 && m.push(p);
7054
- return m;
7050
+ function f(p) {
7051
+ var m;
7052
+ for (p = p || []; m = c(); )
7053
+ m !== !1 && p.push(m);
7054
+ return p;
7055
7055
  }
7056
7056
  function c() {
7057
- var m = o();
7057
+ var p = o();
7058
7058
  if (!(Nc != e.charAt(0) || Pc != e.charAt(1))) {
7059
- for (var p = 2; In != e.charAt(p) && (Pc != e.charAt(p) || Nc != e.charAt(p + 1)); )
7060
- ++p;
7061
- if (p += 2, In === e.charAt(p - 1))
7059
+ for (var m = 2; In != e.charAt(m) && (Pc != e.charAt(m) || Nc != e.charAt(m + 1)); )
7060
+ ++m;
7061
+ if (m += 2, In === e.charAt(m - 1))
7062
7062
  return a("End of comment missing");
7063
- var g = e.slice(2, p - 2);
7064
- return r += 2, i(g), e = e.slice(p), r += 2, m({
7063
+ var g = e.slice(2, m - 2);
7064
+ return r += 2, i(g), e = e.slice(m), r += 2, p({
7065
7065
  type: d1,
7066
7066
  comment: g
7067
7067
  });
7068
7068
  }
7069
7069
  }
7070
7070
  function h() {
7071
- var m = o(), p = l(s1);
7072
- if (p) {
7071
+ var p = o(), m = l(s1);
7072
+ if (m) {
7073
7073
  if (c(), !l(a1)) return a("property missing ':'");
7074
- var g = l(l1), v = m({
7074
+ var g = l(l1), v = p({
7075
7075
  type: h1,
7076
- property: Lc(p[0].replace(Mc, In)),
7076
+ property: Lc(m[0].replace(Mc, In)),
7077
7077
  value: g ? Lc(g[0].replace(Mc, In)) : In
7078
7078
  });
7079
7079
  return l(u1), v;
7080
7080
  }
7081
7081
  }
7082
7082
  function d() {
7083
- var m = [];
7084
- f(m);
7085
- for (var p; p = h(); )
7086
- p !== !1 && (m.push(p), f(m));
7087
- return m;
7083
+ var p = [];
7084
+ f(p);
7085
+ for (var m; m = h(); )
7086
+ m !== !1 && (p.push(m), f(p));
7087
+ return p;
7088
7088
  }
7089
7089
  return u(), d();
7090
7090
  }
@@ -7785,7 +7785,7 @@ function ux(e) {
7785
7785
  if (!i)
7786
7786
  return h(w);
7787
7787
  if (i.currentConstruct && i.currentConstruct.concrete)
7788
- return m(w);
7788
+ return p(w);
7789
7789
  t.interrupt = !!(i.currentConstruct && !i._gfmTableDynamicInterruptHack);
7790
7790
  }
7791
7791
  return t.containerState = {}, e.check(Uc, f, c)(w);
@@ -7794,15 +7794,15 @@ function ux(e) {
7794
7794
  return i && y(), v(r), h(w);
7795
7795
  }
7796
7796
  function c(w) {
7797
- return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, m(w);
7797
+ return t.parser.lazy[t.now().line] = r !== n.length, s = t.now().offset, p(w);
7798
7798
  }
7799
7799
  function h(w) {
7800
- return t.containerState = {}, e.attempt(Uc, d, m)(w);
7800
+ return t.containerState = {}, e.attempt(Uc, d, p)(w);
7801
7801
  }
7802
7802
  function d(w) {
7803
7803
  return r++, n.push([t.currentConstruct, t.containerState]), h(w);
7804
7804
  }
7805
- function m(w) {
7805
+ function p(w) {
7806
7806
  if (w === null) {
7807
7807
  i && y(), v(0), e.consume(w);
7808
7808
  return;
@@ -7811,14 +7811,14 @@ function ux(e) {
7811
7811
  _tokenizer: i,
7812
7812
  contentType: "flow",
7813
7813
  previous: o
7814
- }), p(w);
7814
+ }), m(w);
7815
7815
  }
7816
- function p(w) {
7816
+ function m(w) {
7817
7817
  if (w === null) {
7818
7818
  g(e.exit("chunkFlow"), !0), v(0), e.consume(w);
7819
7819
  return;
7820
7820
  }
7821
- return ue(w) ? (e.consume(w), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(w), p);
7821
+ return ue(w) ? (e.consume(w), g(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(w), m);
7822
7822
  }
7823
7823
  function g(w, E) {
7824
7824
  const S = t.sliceStream(w);
@@ -7989,8 +7989,8 @@ function px(e, t, n) {
7989
7989
  }
7990
7990
  function h(d) {
7991
7991
  if ((d === 45 || st(d)) && r++ < 63) {
7992
- const m = d === 45 ? h : c;
7993
- return e.consume(d), m;
7992
+ const p = d === 45 ? h : c;
7993
+ return e.consume(d), p;
7994
7994
  }
7995
7995
  return n(d);
7996
7996
  }
@@ -8109,7 +8109,7 @@ function xx(e, t, n) {
8109
8109
  return k === a ? (s++, e.consume(k), f) : s < 3 ? n(k) : (e.exit("codeFencedFenceSequence"), ve(k) ? ke(e, c, "whitespace")(k) : c(k));
8110
8110
  }
8111
8111
  function c(k) {
8112
- return k === null || ue(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Vc, p, E)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
8112
+ return k === null || ue(k) ? (e.exit("codeFencedFence"), r.interrupt ? t(k) : e.check(Vc, m, E)(k)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
8113
8113
  contentType: "string"
8114
8114
  }), h(k));
8115
8115
  }
@@ -8119,12 +8119,12 @@ function xx(e, t, n) {
8119
8119
  function d(k) {
8120
8120
  return k === null || ue(k) ? c(k) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
8121
8121
  contentType: "string"
8122
- }), m(k));
8123
- }
8124
- function m(k) {
8125
- return k === null || ue(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(k)) : k === 96 && k === a ? n(k) : (e.consume(k), m);
8122
+ }), p(k));
8126
8123
  }
8127
8124
  function p(k) {
8125
+ return k === null || ue(k) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(k)) : k === 96 && k === a ? n(k) : (e.consume(k), p);
8126
+ }
8127
+ function m(k) {
8128
8128
  return e.attempt(i, E, g)(k);
8129
8129
  }
8130
8130
  function g(k) {
@@ -8134,7 +8134,7 @@ function xx(e, t, n) {
8134
8134
  return o > 0 && ve(k) ? ke(e, y, "linePrefix", o + 1)(k) : y(k);
8135
8135
  }
8136
8136
  function y(k) {
8137
- return k === null || ue(k) ? e.check(Vc, p, E)(k) : (e.enter("codeFlowValue"), w(k));
8137
+ return k === null || ue(k) ? e.check(Vc, m, E)(k) : (e.enter("codeFlowValue"), w(k));
8138
8138
  }
8139
8139
  function w(k) {
8140
8140
  return k === null || ue(k) ? (e.exit("codeFlowValue"), y(k)) : (e.consume(k), w);
@@ -8454,8 +8454,8 @@ function Dx(e, t) {
8454
8454
  let s = n._tokenizer;
8455
8455
  s || (s = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (s._contentTypeTextTrailing = !0));
8456
8456
  const a = s.events, l = [], u = {};
8457
- let f, c, h = -1, d = n, m = 0, p = 0;
8458
- const g = [p];
8457
+ let f, c, h = -1, d = n, p = 0, m = 0;
8458
+ const g = [m];
8459
8459
  for (; d; ) {
8460
8460
  for (; e.get(++i)[1] !== d; )
8461
8461
  ;
@@ -8463,13 +8463,13 @@ function Dx(e, t) {
8463
8463
  }
8464
8464
  for (d = n; ++h < a.length; )
8465
8465
  // Find a void token that includes a break.
8466
- a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (p = h + 1, g.push(p), d._tokenizer = void 0, d.previous = void 0, d = d.next);
8466
+ a[h][0] === "exit" && a[h - 1][0] === "enter" && a[h][1].type === a[h - 1][1].type && a[h][1].start.line !== a[h][1].end.line && (m = h + 1, g.push(m), d._tokenizer = void 0, d.previous = void 0, d = d.next);
8467
8467
  for (s.events = [], d ? (d._tokenizer = void 0, d.previous = void 0) : g.pop(), h = g.length; h--; ) {
8468
8468
  const v = a.slice(g[h], g[h + 1]), y = o.pop();
8469
8469
  l.push([y, y + v.length - 1]), e.splice(y, 2, v);
8470
8470
  }
8471
8471
  for (l.reverse(), h = -1; ++h < l.length; )
8472
- u[m + l[h][0]] = m + l[h][1], m += l[h][1] - l[h][0] - 1;
8472
+ u[p + l[h][0]] = p + l[h][1], p += l[h][1] - l[h][0] - 1;
8473
8473
  return u;
8474
8474
  }
8475
8475
  const Mx = {
@@ -8523,7 +8523,7 @@ function Fp(e, t, n, r, i, o, s, a, l) {
8523
8523
  function c(v) {
8524
8524
  return v === 60 ? (e.enter(r), e.enter(i), e.enter(o), e.consume(v), e.exit(o), h) : v === null || v === 32 || v === 41 || vo(v) ? n(v) : (e.enter(r), e.enter(s), e.enter(a), e.enter("chunkString", {
8525
8525
  contentType: "string"
8526
- }), p(v));
8526
+ }), m(v));
8527
8527
  }
8528
8528
  function h(v) {
8529
8529
  return v === 62 ? (e.enter(o), e.consume(v), e.exit(o), e.exit(i), e.exit(r), t) : (e.enter(a), e.enter("chunkString", {
@@ -8531,16 +8531,16 @@ function Fp(e, t, n, r, i, o, s, a, l) {
8531
8531
  }), d(v));
8532
8532
  }
8533
8533
  function d(v) {
8534
- return v === 62 ? (e.exit("chunkString"), e.exit(a), h(v)) : v === null || v === 60 || ue(v) ? n(v) : (e.consume(v), v === 92 ? m : d);
8534
+ return v === 62 ? (e.exit("chunkString"), e.exit(a), h(v)) : v === null || v === 60 || ue(v) ? n(v) : (e.consume(v), v === 92 ? p : d);
8535
8535
  }
8536
- function m(v) {
8536
+ function p(v) {
8537
8537
  return v === 60 || v === 62 || v === 92 ? (e.consume(v), d) : d(v);
8538
8538
  }
8539
- function p(v) {
8540
- return !f && (v === null || v === 41 || Pe(v)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(v)) : f < u && v === 40 ? (e.consume(v), f++, p) : v === 41 ? (e.consume(v), f--, p) : v === null || v === 32 || v === 40 || vo(v) ? n(v) : (e.consume(v), v === 92 ? g : p);
8539
+ function m(v) {
8540
+ return !f && (v === null || v === 41 || Pe(v)) ? (e.exit("chunkString"), e.exit(a), e.exit(s), e.exit(r), t(v)) : f < u && v === 40 ? (e.consume(v), f++, m) : v === 41 ? (e.consume(v), f--, m) : v === null || v === 32 || v === 40 || vo(v) ? n(v) : (e.consume(v), v === 92 ? g : m);
8541
8541
  }
8542
8542
  function g(v) {
8543
- return v === 40 || v === 41 || v === 92 ? (e.consume(v), p) : p(v);
8543
+ return v === 40 || v === 41 || v === 92 ? (e.consume(v), m) : m(v);
8544
8544
  }
8545
8545
  }
8546
8546
  function $p(e, t, n, r, i, o) {
@@ -8810,19 +8810,19 @@ function Zx(e, t, n) {
8810
8810
  return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(x), c;
8811
8811
  }
8812
8812
  function c(x) {
8813
- return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0, p) : x === 63 ? (e.consume(x), i = 3, r.interrupt ? t : b) : ft(x) ? (e.consume(x), s = String.fromCharCode(x), g) : n(x);
8813
+ return x === 33 ? (e.consume(x), h) : x === 47 ? (e.consume(x), o = !0, m) : x === 63 ? (e.consume(x), i = 3, r.interrupt ? t : b) : ft(x) ? (e.consume(x), s = String.fromCharCode(x), g) : n(x);
8814
8814
  }
8815
8815
  function h(x) {
8816
- return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, a = 0, m) : ft(x) ? (e.consume(x), i = 4, r.interrupt ? t : b) : n(x);
8816
+ return x === 45 ? (e.consume(x), i = 2, d) : x === 91 ? (e.consume(x), i = 5, a = 0, p) : ft(x) ? (e.consume(x), i = 4, r.interrupt ? t : b) : n(x);
8817
8817
  }
8818
8818
  function d(x) {
8819
8819
  return x === 45 ? (e.consume(x), r.interrupt ? t : b) : n(x);
8820
8820
  }
8821
- function m(x) {
8821
+ function p(x) {
8822
8822
  const V = "CDATA[";
8823
- return x === V.charCodeAt(a++) ? (e.consume(x), a === V.length ? r.interrupt ? t : z : m) : n(x);
8823
+ return x === V.charCodeAt(a++) ? (e.consume(x), a === V.length ? r.interrupt ? t : z : p) : n(x);
8824
8824
  }
8825
- function p(x) {
8825
+ function m(x) {
8826
8826
  return ft(x) ? (e.consume(x), s = String.fromCharCode(x), g) : n(x);
8827
8827
  }
8828
8828
  function g(x) {
@@ -8934,7 +8934,7 @@ function tS(e, t, n) {
8934
8934
  return b === 33 ? (e.consume(b), u) : b === 47 ? (e.consume(b), S) : b === 63 ? (e.consume(b), w) : ft(b) ? (e.consume(b), R) : n(b);
8935
8935
  }
8936
8936
  function u(b) {
8937
- return b === 45 ? (e.consume(b), f) : b === 91 ? (e.consume(b), o = 0, m) : ft(b) ? (e.consume(b), y) : n(b);
8937
+ return b === 45 ? (e.consume(b), f) : b === 91 ? (e.consume(b), o = 0, p) : ft(b) ? (e.consume(b), y) : n(b);
8938
8938
  }
8939
8939
  function f(b) {
8940
8940
  return b === 45 ? (e.consume(b), d) : n(b);
@@ -8948,18 +8948,18 @@ function tS(e, t, n) {
8948
8948
  function d(b) {
8949
8949
  return b === 62 ? D(b) : b === 45 ? h(b) : c(b);
8950
8950
  }
8951
- function m(b) {
8951
+ function p(b) {
8952
8952
  const M = "CDATA[";
8953
- return b === M.charCodeAt(o++) ? (e.consume(b), o === M.length ? p : m) : n(b);
8953
+ return b === M.charCodeAt(o++) ? (e.consume(b), o === M.length ? m : p) : n(b);
8954
8954
  }
8955
- function p(b) {
8956
- return b === null ? n(b) : b === 93 ? (e.consume(b), g) : ue(b) ? (s = p, U(b)) : (e.consume(b), p);
8955
+ function m(b) {
8956
+ return b === null ? n(b) : b === 93 ? (e.consume(b), g) : ue(b) ? (s = m, U(b)) : (e.consume(b), m);
8957
8957
  }
8958
8958
  function g(b) {
8959
- return b === 93 ? (e.consume(b), v) : p(b);
8959
+ return b === 93 ? (e.consume(b), v) : m(b);
8960
8960
  }
8961
8961
  function v(b) {
8962
- return b === 62 ? D(b) : b === 93 ? (e.consume(b), v) : p(b);
8962
+ return b === 62 ? D(b) : b === 93 ? (e.consume(b), v) : m(b);
8963
8963
  }
8964
8964
  function y(b) {
8965
8965
  return b === null || b === 62 ? D(b) : ue(b) ? (s = y, U(b)) : (e.consume(b), y);
@@ -9239,11 +9239,11 @@ function bS(e, t, n) {
9239
9239
  let o = i && i[1].type === "linePrefix" ? i[2].sliceSerialize(i[1], !0).length : 0, s = 0;
9240
9240
  return a;
9241
9241
  function a(d) {
9242
- const m = r.containerState.type || (d === 42 || d === 43 || d === 45 ? "listUnordered" : "listOrdered");
9243
- if (m === "listUnordered" ? !r.containerState.marker || d === r.containerState.marker : za(d)) {
9244
- if (r.containerState.type || (r.containerState.type = m, e.enter(m, {
9242
+ const p = r.containerState.type || (d === 42 || d === 43 || d === 45 ? "listUnordered" : "listOrdered");
9243
+ if (p === "listUnordered" ? !r.containerState.marker || d === r.containerState.marker : za(d)) {
9244
+ if (r.containerState.type || (r.containerState.type = p, e.enter(p, {
9245
9245
  _container: !0
9246
- })), m === "listUnordered")
9246
+ })), p === "listUnordered")
9247
9247
  return e.enter("listItemPrefix"), d === 42 || d === 45 ? e.check(io, n, u)(d) : u(d);
9248
9248
  if (!r.interrupt || d === 49)
9249
9249
  return e.enter("listItemPrefix"), e.enter("listItemValue"), l(d);
@@ -9558,9 +9558,9 @@ function US(e, t, n) {
9558
9558
  }, u = {
9559
9559
  code: null,
9560
9560
  containerState: {},
9561
- defineSkip: p,
9561
+ defineSkip: m,
9562
9562
  events: [],
9563
- now: m,
9563
+ now: p,
9564
9564
  parser: e,
9565
9565
  previous: null,
9566
9566
  sliceSerialize: h,
@@ -9578,7 +9578,7 @@ function US(e, t, n) {
9578
9578
  function d(O) {
9579
9579
  return jS(s, O);
9580
9580
  }
9581
- function m() {
9581
+ function p() {
9582
9582
  const {
9583
9583
  _bufferIndex: O,
9584
9584
  _index: z,
@@ -9594,7 +9594,7 @@ function US(e, t, n) {
9594
9594
  offset: _
9595
9595
  };
9596
9596
  }
9597
- function p(O) {
9597
+ function m(O) {
9598
9598
  i[O.line] = O.column, A();
9599
9599
  }
9600
9600
  function g() {
@@ -9619,11 +9619,11 @@ function US(e, t, n) {
9619
9619
  }
9620
9620
  function w(O, z) {
9621
9621
  const P = z || {};
9622
- return P.type = O, P.start = m(), u.events.push(["enter", P, u]), a.push(P), P;
9622
+ return P.type = O, P.start = p(), u.events.push(["enter", P, u]), a.push(P), P;
9623
9623
  }
9624
9624
  function E(O) {
9625
9625
  const z = a.pop();
9626
- return z.end = m(), u.events.push(["exit", z, u]), z;
9626
+ return z.end = p(), u.events.push(["exit", z, u]), z;
9627
9627
  }
9628
9628
  function S(O, z) {
9629
9629
  R(O, z.from);
@@ -9648,13 +9648,13 @@ function US(e, t, n) {
9648
9648
  function M(q) {
9649
9649
  return K;
9650
9650
  function K(J) {
9651
- const ie = J !== null && q[J], Y = J !== null && q.null, ee = [
9651
+ const ie = J !== null && q[J], Y = J !== null && q.null, te = [
9652
9652
  // To do: add more extension tests.
9653
9653
  /* c8 ignore next 2 */
9654
9654
  ...Array.isArray(ie) ? ie : ie ? [ie] : [],
9655
9655
  ...Array.isArray(Y) ? Y : Y ? [Y] : []
9656
9656
  ];
9657
- return $(ee)(J);
9657
+ return $(te)(J);
9658
9658
  }
9659
9659
  }
9660
9660
  function $(q) {
@@ -9686,7 +9686,7 @@ function US(e, t, n) {
9686
9686
  O.resolveAll && !o.includes(O) && o.push(O), O.resolve && St(u.events, z, u.events.length - z, O.resolve(u.events.slice(z), u)), O.resolveTo && (u.events = O.resolveTo(u.events, u));
9687
9687
  }
9688
9688
  function N() {
9689
- const O = m(), z = u.previous, P = u.currentConstruct, L = u.events.length, _ = Array.from(a);
9689
+ const O = p(), z = u.previous, P = u.currentConstruct, L = u.events.length, _ = Array.from(a);
9690
9690
  return {
9691
9691
  from: L,
9692
9692
  restore: D
@@ -9845,15 +9845,15 @@ function JS(e) {
9845
9845
  blockQuote: o(Y),
9846
9846
  characterEscape: N,
9847
9847
  characterReference: N,
9848
- codeFenced: o(ee),
9848
+ codeFenced: o(te),
9849
9849
  codeFencedFenceInfo: s,
9850
9850
  codeFencedFenceMeta: s,
9851
- codeIndented: o(ee, s),
9851
+ codeIndented: o(te, s),
9852
9852
  codeText: o(F, s),
9853
9853
  codeTextData: N,
9854
9854
  data: N,
9855
9855
  codeFlowValue: N,
9856
- definition: o(te),
9856
+ definition: o(ee),
9857
9857
  definitionDestinationString: s,
9858
9858
  definitionLabelString: s,
9859
9859
  definitionTitleString: s,
@@ -9893,9 +9893,9 @@ function JS(e) {
9893
9893
  characterReferenceValue: q,
9894
9894
  characterReference: K,
9895
9895
  codeFenced: l(g),
9896
- codeFencedFence: p,
9896
+ codeFencedFence: m,
9897
9897
  codeFencedFenceInfo: d,
9898
- codeFencedFenceMeta: m,
9898
+ codeFencedFenceMeta: p,
9899
9899
  codeFlowValue: A,
9900
9900
  codeIndented: l(v),
9901
9901
  codeText: l(_),
@@ -10085,11 +10085,11 @@ function JS(e) {
10085
10085
  const H = this.resume(), W = this.stack[this.stack.length - 1];
10086
10086
  W.lang = H;
10087
10087
  }
10088
- function m() {
10088
+ function p() {
10089
10089
  const H = this.resume(), W = this.stack[this.stack.length - 1];
10090
10090
  W.meta = H;
10091
10091
  }
10092
- function p() {
10092
+ function m() {
10093
10093
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
10094
10094
  }
10095
10095
  function g() {
@@ -10244,7 +10244,7 @@ function JS(e) {
10244
10244
  children: []
10245
10245
  };
10246
10246
  }
10247
- function ee() {
10247
+ function te() {
10248
10248
  return {
10249
10249
  type: "code",
10250
10250
  lang: null,
@@ -10258,7 +10258,7 @@ function JS(e) {
10258
10258
  value: ""
10259
10259
  };
10260
10260
  }
10261
- function te() {
10261
+ function ee() {
10262
10262
  return {
10263
10263
  type: "definition",
10264
10264
  identifier: "",
@@ -10671,8 +10671,8 @@ function xk(e, t, n) {
10671
10671
  for (; ++l < a; ) {
10672
10672
  const c = t.children[l], h = {}, d = s ? s[l] : void 0;
10673
10673
  d && (h.align = d);
10674
- let m = { type: "element", tagName: o, properties: h, children: [] };
10675
- c && (m.children = e.all(c), e.patch(c, m), m = e.applyData(c, m)), u.push(m);
10674
+ let p = { type: "element", tagName: o, properties: h, children: [] };
10675
+ c && (p.children = e.all(c), e.patch(c, p), p = e.applyData(c, p)), u.push(p);
10676
10676
  }
10677
10677
  const f = {
10678
10678
  type: "element",
@@ -10950,11 +10950,11 @@ function Nk(e) {
10950
10950
  continue;
10951
10951
  const f = e.all(u), c = String(u.identifier).toUpperCase(), h = br(c.toLowerCase());
10952
10952
  let d = 0;
10953
- const m = [], p = e.footnoteCounts.get(c);
10954
- for (; p !== void 0 && ++d <= p; ) {
10955
- m.length > 0 && m.push({ type: "text", value: " " });
10953
+ const p = [], m = e.footnoteCounts.get(c);
10954
+ for (; m !== void 0 && ++d <= m; ) {
10955
+ p.length > 0 && p.push({ type: "text", value: " " });
10956
10956
  let y = typeof n == "string" ? n : n(l, d);
10957
- typeof y == "string" && (y = { type: "text", value: y }), m.push({
10957
+ typeof y == "string" && (y = { type: "text", value: y }), p.push({
10958
10958
  type: "element",
10959
10959
  tagName: "a",
10960
10960
  properties: {
@@ -10969,9 +10969,9 @@ function Nk(e) {
10969
10969
  const g = f[f.length - 1];
10970
10970
  if (g && g.type === "element" && g.tagName === "p") {
10971
10971
  const y = g.children[g.children.length - 1];
10972
- y && y.type === "text" ? y.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...m);
10972
+ y && y.type === "text" ? y.value += " " : g.children.push({ type: "text", value: " " }), g.children.push(...p);
10973
10973
  } else
10974
- f.push(...m);
10974
+ f.push(...p);
10975
10975
  const v = {
10976
10976
  type: "element",
10977
10977
  tagName: "li",
@@ -11121,7 +11121,7 @@ function Qp(e, t, n, r) {
11121
11121
  }
11122
11122
  return h;
11123
11123
  function h() {
11124
- let d = Gp, m, p, g;
11124
+ let d = Gp, p, m, g;
11125
11125
  if ((!t || o(l, u, f[f.length - 1] || void 0)) && (d = Hk(n(l, f)), d[0] === Ua))
11126
11126
  return d;
11127
11127
  if ("children" in l && l.children) {
@@ -11130,11 +11130,11 @@ function Qp(e, t, n, r) {
11130
11130
  l
11131
11131
  );
11132
11132
  if (v.children && d[0] !== zk)
11133
- for (p = (r ? v.children.length : -1) + s, g = f.concat(v); p > -1 && p < v.children.length; ) {
11134
- const y = v.children[p];
11135
- if (m = a(y, p, g)(), m[0] === Ua)
11136
- return m;
11137
- p = typeof m[1] == "number" ? m[1] : p + s;
11133
+ for (m = (r ? v.children.length : -1) + s, g = f.concat(v); m > -1 && m < v.children.length; ) {
11134
+ const y = v.children[m];
11135
+ if (p = a(y, m, g)(), p[0] === Ua)
11136
+ return p;
11137
+ m = typeof p[1] == "number" ? p[1] : m + s;
11138
11138
  }
11139
11139
  }
11140
11140
  return d;
@@ -11179,7 +11179,7 @@ function jk(e, t) {
11179
11179
  return d(a, f, c);
11180
11180
  if (a.options.passThrough && a.options.passThrough.includes(h)) {
11181
11181
  if ("children" in f) {
11182
- const { children: p, ...g } = f, v = wo(g);
11182
+ const { children: m, ...g } = f, v = wo(g);
11183
11183
  return v.children = a.all(f), v;
11184
11184
  }
11185
11185
  return wo(f);
@@ -11192,13 +11192,13 @@ function jk(e, t) {
11192
11192
  const h = f.children;
11193
11193
  let d = -1;
11194
11194
  for (; ++d < h.length; ) {
11195
- const m = a.one(h[d], f);
11196
- if (m) {
11197
- if (d && h[d - 1].type === "break" && (!Array.isArray(m) && m.type === "text" && (m.value = nf(m.value)), !Array.isArray(m) && m.type === "element")) {
11198
- const p = m.children[0];
11199
- p && p.type === "text" && (p.value = nf(p.value));
11195
+ const p = a.one(h[d], f);
11196
+ if (p) {
11197
+ if (d && h[d - 1].type === "break" && (!Array.isArray(p) && p.type === "text" && (p.value = nf(p.value)), !Array.isArray(p) && p.type === "element")) {
11198
+ const m = p.children[0];
11199
+ m && m.type === "text" && (m.value = nf(m.value));
11200
11200
  }
11201
- Array.isArray(m) ? c.push(...m) : c.push(m);
11201
+ Array.isArray(p) ? c.push(...p) : c.push(p);
11202
11202
  }
11203
11203
  }
11204
11204
  }
@@ -12145,8 +12145,8 @@ class iu extends uE {
12145
12145
  /** @type {CompileTree extends undefined ? Node : CompileTree} */
12146
12146
  /** @type {unknown} */
12147
12147
  c
12148
- ), m = r.stringify(d, h);
12149
- hE(m) ? h.value = m : h.result = m, u(
12148
+ ), p = r.stringify(d, h);
12149
+ hE(p) ? h.value = p : h.result = p, u(
12150
12150
  f,
12151
12151
  /** @type {VFileWithOutput<CompileResult>} */
12152
12152
  h
@@ -12415,9 +12415,9 @@ class iu extends uE {
12415
12415
  if (h === -1)
12416
12416
  r.push([u, ...f]);
12417
12417
  else if (f.length > 0) {
12418
- let [d, ...m] = f;
12419
- const p = r[h][1];
12420
- Va(p) && Va(d) && (d = Cs(!0, p, d)), r[h] = [u, d, ...m];
12418
+ let [d, ...p] = f;
12419
+ const m = r[h][1];
12420
+ Va(m) && Va(d) && (d = Cs(!0, m, d)), r[h] = [u, d, ...p];
12421
12421
  }
12422
12422
  }
12423
12423
  }
@@ -12493,12 +12493,12 @@ const mE = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md",
12493
12493
  { from: "transformLinkUri", id: "#add-urltransform", to: "urlTransform" }
12494
12494
  ];
12495
12495
  function Xp(e) {
12496
- const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, s = e.disallowedElements, a = e.rehypePlugins || mf, l = e.remarkPlugins || mf, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...gf } : gf, f = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || em, d = fE().use(ek).use(l).use(Kk, u).use(a), m = new Jp();
12497
- typeof r == "string" && (m.value = r);
12496
+ const t = e.allowedElements, n = e.allowElement, r = e.children || "", i = e.className, o = e.components, s = e.disallowedElements, a = e.rehypePlugins || mf, l = e.remarkPlugins || mf, u = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...gf } : gf, f = e.skipHtml, c = e.unwrapDisallowed, h = e.urlTransform || em, d = fE().use(ek).use(l).use(Kk, u).use(a), p = new Jp();
12497
+ typeof r == "string" && (p.value = r);
12498
12498
  for (const y of yE)
12499
12499
  Object.hasOwn(e, y.from) && ("" + y.from + (y.to ? "use `" + y.to + "` instead" : "remove it") + mE + y.id, void 0);
12500
- const p = d.parse(m);
12501
- let g = d.runSync(p, m);
12500
+ const m = d.parse(p);
12501
+ let g = d.runSync(m, p);
12502
12502
  return i && (g = {
12503
12503
  type: "element",
12504
12504
  tagName: "div",
@@ -12557,10 +12557,10 @@ function tm(e, t, n) {
12557
12557
  function a(u, f) {
12558
12558
  let c = -1, h;
12559
12559
  for (; ++c < f.length; ) {
12560
- const d = f[c], m = h ? h.children : void 0;
12560
+ const d = f[c], p = h ? h.children : void 0;
12561
12561
  if (i(
12562
12562
  d,
12563
- m ? m.indexOf(d) : void 0,
12563
+ p ? p.indexOf(d) : void 0,
12564
12564
  h
12565
12565
  ))
12566
12566
  return;
@@ -12571,7 +12571,7 @@ function tm(e, t, n) {
12571
12571
  }
12572
12572
  function l(u, f) {
12573
12573
  const c = f[f.length - 1], h = o[s][0], d = o[s][1];
12574
- let m = 0;
12574
+ let p = 0;
12575
12575
  const g = c.children.indexOf(u);
12576
12576
  let v = !1, y = [];
12577
12577
  h.lastIndex = 0;
@@ -12583,14 +12583,14 @@ function tm(e, t, n) {
12583
12583
  stack: [...f, u]
12584
12584
  };
12585
12585
  let k = d(...w, S);
12586
- if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = E + 1 : (m !== E && y.push({
12586
+ if (typeof k == "string" && (k = k.length > 0 ? { type: "text", value: k } : void 0), k === !1 ? h.lastIndex = E + 1 : (p !== E && y.push({
12587
12587
  type: "text",
12588
- value: u.value.slice(m, E)
12589
- }), Array.isArray(k) ? y.push(...k) : k && y.push(k), m = E + w[0].length, v = !0), !h.global)
12588
+ value: u.value.slice(p, E)
12589
+ }), Array.isArray(k) ? y.push(...k) : k && y.push(k), p = E + w[0].length, v = !0), !h.global)
12590
12590
  break;
12591
12591
  w = h.exec(u.value);
12592
12592
  }
12593
- return v ? (m < u.value.length && y.push({ type: "text", value: u.value.slice(m) }), c.children.splice(g, 1, ...y)) : y = [u], g + y.length;
12593
+ return v ? (p < u.value.length && y.push({ type: "text", value: u.value.slice(p) }), c.children.splice(g, 1, ...y)) : y = [u], g + y.length;
12594
12594
  }
12595
12595
  }
12596
12596
  function bE(e) {
@@ -12897,7 +12897,7 @@ function nC(e, t) {
12897
12897
  const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || tC, o = [], s = [], a = [], l = [];
12898
12898
  let u = 0, f = -1;
12899
12899
  for (; ++f < e.length; ) {
12900
- const p = [], g = [];
12900
+ const m = [], g = [];
12901
12901
  let v = -1;
12902
12902
  for (e[f].length > u && (u = e[f].length); ++v < e[f].length; ) {
12903
12903
  const y = rC(e[f][v]);
@@ -12905,25 +12905,25 @@ function nC(e, t) {
12905
12905
  const w = i(y);
12906
12906
  g[v] = w, (l[v] === void 0 || w > l[v]) && (l[v] = w);
12907
12907
  }
12908
- p.push(y);
12908
+ m.push(y);
12909
12909
  }
12910
- s[f] = p, a[f] = g;
12910
+ s[f] = m, a[f] = g;
12911
12911
  }
12912
12912
  let c = -1;
12913
12913
  if (typeof r == "object" && "length" in r)
12914
12914
  for (; ++c < u; )
12915
12915
  o[c] = vf(r[c]);
12916
12916
  else {
12917
- const p = vf(r);
12917
+ const m = vf(r);
12918
12918
  for (; ++c < u; )
12919
- o[c] = p;
12919
+ o[c] = m;
12920
12920
  }
12921
12921
  c = -1;
12922
12922
  const h = [], d = [];
12923
12923
  for (; ++c < u; ) {
12924
- const p = o[c];
12924
+ const m = o[c];
12925
12925
  let g = "", v = "";
12926
- p === 99 ? (g = ":", v = ":") : p === 108 ? g = ":" : p === 114 && (v = ":");
12926
+ m === 99 ? (g = ":", v = ":") : m === 108 ? g = ":" : m === 114 && (v = ":");
12927
12927
  let y = n.alignDelimiters === !1 ? 1 : Math.max(
12928
12928
  1,
12929
12929
  l[c] - g.length - v.length
@@ -12932,13 +12932,13 @@ function nC(e, t) {
12932
12932
  n.alignDelimiters !== !1 && (y = g.length + y + v.length, y > l[c] && (l[c] = y), d[c] = y), h[c] = w;
12933
12933
  }
12934
12934
  s.splice(1, 0, h), a.splice(1, 0, d), f = -1;
12935
- const m = [];
12935
+ const p = [];
12936
12936
  for (; ++f < s.length; ) {
12937
- const p = s[f], g = a[f];
12937
+ const m = s[f], g = a[f];
12938
12938
  c = -1;
12939
12939
  const v = [];
12940
12940
  for (; ++c < u; ) {
12941
- const y = p[c] || "";
12941
+ const y = m[c] || "";
12942
12942
  let w = "", E = "";
12943
12943
  if (n.alignDelimiters !== !1) {
12944
12944
  const S = l[c] - (g[c] || 0), k = o[c];
@@ -12948,11 +12948,11 @@ function nC(e, t) {
12948
12948
  // empty: there will be a closing space.
12949
12949
  !(n.alignDelimiters === !1 && y === "") && (n.delimiterStart !== !1 || c) && v.push(" "), n.alignDelimiters !== !1 && v.push(w), v.push(y), n.alignDelimiters !== !1 && v.push(E), n.padding !== !1 && v.push(" "), (n.delimiterEnd !== !1 || c !== u - 1) && v.push("|");
12950
12950
  }
12951
- m.push(
12951
+ p.push(
12952
12952
  n.delimiterEnd === !1 ? v.join("").replace(/ +$/, "") : v.join("")
12953
12953
  );
12954
12954
  }
12955
- return m.join(`
12955
+ return p.join(`
12956
12956
  `);
12957
12957
  }
12958
12958
  function rC(e) {
@@ -13638,25 +13638,25 @@ function UC(e) {
13638
13638
  tableRow: a
13639
13639
  }
13640
13640
  };
13641
- function s(d, m, p, g) {
13642
- return u(f(d, p, g), d.align);
13641
+ function s(d, p, m, g) {
13642
+ return u(f(d, m, g), d.align);
13643
13643
  }
13644
- function a(d, m, p, g) {
13645
- const v = c(d, p, g), y = u([v]);
13644
+ function a(d, p, m, g) {
13645
+ const v = c(d, m, g), y = u([v]);
13646
13646
  return y.slice(0, y.indexOf(`
13647
13647
  `));
13648
13648
  }
13649
- function l(d, m, p, g) {
13650
- const v = p.enter("tableCell"), y = p.enter("phrasing"), w = p.containerPhrasing(d, {
13649
+ function l(d, p, m, g) {
13650
+ const v = m.enter("tableCell"), y = m.enter("phrasing"), w = m.containerPhrasing(d, {
13651
13651
  ...g,
13652
13652
  before: o,
13653
13653
  after: o
13654
13654
  });
13655
13655
  return y(), v(), w;
13656
13656
  }
13657
- function u(d, m) {
13657
+ function u(d, p) {
13658
13658
  return nC(d, {
13659
- align: m,
13659
+ align: p,
13660
13660
  // @ts-expect-error: `markdown-table` types should support `null`.
13661
13661
  alignDelimiters: r,
13662
13662
  // @ts-expect-error: `markdown-table` types should support `null`.
@@ -13665,25 +13665,25 @@ function UC(e) {
13665
13665
  stringLength: i
13666
13666
  });
13667
13667
  }
13668
- function f(d, m, p) {
13668
+ function f(d, p, m) {
13669
13669
  const g = d.children;
13670
13670
  let v = -1;
13671
- const y = [], w = m.enter("table");
13671
+ const y = [], w = p.enter("table");
13672
13672
  for (; ++v < g.length; )
13673
- y[v] = c(g[v], m, p);
13673
+ y[v] = c(g[v], p, m);
13674
13674
  return w(), y;
13675
13675
  }
13676
- function c(d, m, p) {
13676
+ function c(d, p, m) {
13677
13677
  const g = d.children;
13678
13678
  let v = -1;
13679
- const y = [], w = m.enter("tableRow");
13679
+ const y = [], w = p.enter("tableRow");
13680
13680
  for (; ++v < g.length; )
13681
- y[v] = l(g[v], d, m, p);
13681
+ y[v] = l(g[v], d, p, m);
13682
13682
  return w(), y;
13683
13683
  }
13684
- function h(d, m, p) {
13685
- let g = gm.inlineCode(d, m, p);
13686
- return p.stack.includes("tableCell") && (g = g.replace(/\|/g, "\\$&")), g;
13684
+ function h(d, p, m) {
13685
+ let g = gm.inlineCode(d, p, m);
13686
+ return m.stack.includes("tableCell") && (g = g.replace(/\|/g, "\\$&")), g;
13687
13687
  }
13688
13688
  }
13689
13689
  function jC() {
@@ -14086,36 +14086,36 @@ function fA(e, t, n) {
14086
14086
  const r = this, i = r.parser.gfmFootnotes || (r.parser.gfmFootnotes = []);
14087
14087
  let o, s = 0, a;
14088
14088
  return l;
14089
- function l(m) {
14090
- return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionLabelMarker"), u;
14089
+ function l(p) {
14090
+ return e.enter("gfmFootnoteDefinition")._container = !0, e.enter("gfmFootnoteDefinitionLabel"), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionLabelMarker"), u;
14091
14091
  }
14092
- function u(m) {
14093
- return m === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(m);
14092
+ function u(p) {
14093
+ return p === 94 ? (e.enter("gfmFootnoteDefinitionMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionMarker"), e.enter("gfmFootnoteDefinitionLabelString"), e.enter("chunkString").contentType = "string", f) : n(p);
14094
14094
  }
14095
- function f(m) {
14095
+ function f(p) {
14096
14096
  if (
14097
14097
  // Too long.
14098
14098
  s > 999 || // Closing brace with nothing.
14099
- m === 93 && !a || // Space or tab is not supported by GFM for some reason.
14099
+ p === 93 && !a || // Space or tab is not supported by GFM for some reason.
14100
14100
  // `\n` and `[` not being supported makes sense.
14101
- m === null || m === 91 || Pe(m)
14101
+ p === null || p === 91 || Pe(p)
14102
14102
  )
14103
- return n(m);
14104
- if (m === 93) {
14103
+ return n(p);
14104
+ if (p === 93) {
14105
14105
  e.exit("chunkString");
14106
- const p = e.exit("gfmFootnoteDefinitionLabelString");
14107
- return o = Bt(r.sliceSerialize(p)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(m), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
14106
+ const m = e.exit("gfmFootnoteDefinitionLabelString");
14107
+ return o = Bt(r.sliceSerialize(m)), e.enter("gfmFootnoteDefinitionLabelMarker"), e.consume(p), e.exit("gfmFootnoteDefinitionLabelMarker"), e.exit("gfmFootnoteDefinitionLabel"), h;
14108
14108
  }
14109
- return Pe(m) || (a = !0), s++, e.consume(m), m === 92 ? c : f;
14109
+ return Pe(p) || (a = !0), s++, e.consume(p), p === 92 ? c : f;
14110
14110
  }
14111
- function c(m) {
14112
- return m === 91 || m === 92 || m === 93 ? (e.consume(m), s++, f) : f(m);
14111
+ function c(p) {
14112
+ return p === 91 || p === 92 || p === 93 ? (e.consume(p), s++, f) : f(p);
14113
14113
  }
14114
- function h(m) {
14115
- return m === 58 ? (e.enter("definitionMarker"), e.consume(m), e.exit("definitionMarker"), i.includes(o) || i.push(o), ke(e, d, "gfmFootnoteDefinitionWhitespace")) : n(m);
14114
+ function h(p) {
14115
+ return p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), i.includes(o) || i.push(o), ke(e, d, "gfmFootnoteDefinitionWhitespace")) : n(p);
14116
14116
  }
14117
- function d(m) {
14118
- return t(m);
14117
+ function d(p) {
14118
+ return t(p);
14119
14119
  }
14120
14120
  }
14121
14121
  function dA(e, t, n) {
@@ -14180,16 +14180,16 @@ function mA(e) {
14180
14180
  const u = this.previous, f = this.events;
14181
14181
  let c = 0;
14182
14182
  return h;
14183
- function h(m) {
14184
- return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(m) : (s.enter("strikethroughSequenceTemporary"), d(m));
14183
+ function h(p) {
14184
+ return u === 126 && f[f.length - 1][1].type !== "characterEscape" ? l(p) : (s.enter("strikethroughSequenceTemporary"), d(p));
14185
14185
  }
14186
- function d(m) {
14187
- const p = ar(u);
14188
- if (m === 126)
14189
- return c > 1 ? l(m) : (s.consume(m), c++, d);
14190
- if (c < 2 && !n) return l(m);
14191
- const g = s.exit("strikethroughSequenceTemporary"), v = ar(m);
14192
- return g._open = !v || v === 2 && !!p, g._close = !p || p === 2 && !!v, a(m);
14186
+ function d(p) {
14187
+ const m = ar(u);
14188
+ if (p === 126)
14189
+ return c > 1 ? l(p) : (s.consume(p), c++, d);
14190
+ if (c < 2 && !n) return l(p);
14191
+ const g = s.exit("strikethroughSequenceTemporary"), v = ar(p);
14192
+ return g._open = !v || v === 2 && !!m, g._close = !m || m === 2 && !!v, a(p);
14193
14193
  }
14194
14194
  }
14195
14195
  }
@@ -14323,12 +14323,12 @@ function wA(e, t, n) {
14323
14323
  return A === 92 || A === 124 ? (e.consume(A), c) : c(A);
14324
14324
  }
14325
14325
  function d(A) {
14326
- return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(A) : (e.enter("tableDelimiterRow"), s = !1, ve(A) ? ke(e, m, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : m(A));
14327
- }
14328
- function m(A) {
14329
- return A === 45 || A === 58 ? g(A) : A === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(A), e.exit("tableCellDivider"), p) : S(A);
14326
+ return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(A) : (e.enter("tableDelimiterRow"), s = !1, ve(A) ? ke(e, p, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(A) : p(A));
14330
14327
  }
14331
14328
  function p(A) {
14329
+ return A === 45 || A === 58 ? g(A) : A === 124 ? (s = !0, e.enter("tableCellDivider"), e.consume(A), e.exit("tableCellDivider"), m) : S(A);
14330
+ }
14331
+ function m(A) {
14332
14332
  return ve(A) ? ke(e, g, "whitespace")(A) : g(A);
14333
14333
  }
14334
14334
  function g(A) {
@@ -14344,7 +14344,7 @@ function wA(e, t, n) {
14344
14344
  return ve(A) ? ke(e, E, "whitespace")(A) : E(A);
14345
14345
  }
14346
14346
  function E(A) {
14347
- return A === 124 ? m(A) : A === null || ue(A) ? !s || i !== o ? S(A) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(A)) : S(A);
14347
+ return A === 124 ? p(A) : A === null || ue(A) ? !s || i !== o ? S(A) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(A)) : S(A);
14348
14348
  }
14349
14349
  function S(A) {
14350
14350
  return n(A);
@@ -14366,18 +14366,18 @@ function xA(e, t) {
14366
14366
  let n = -1, r = !0, i = 0, o = [0, 0, 0, 0], s = [0, 0, 0, 0], a = !1, l = 0, u, f, c;
14367
14367
  const h = new gA();
14368
14368
  for (; ++n < e.length; ) {
14369
- const d = e[n], m = d[1];
14370
- d[0] === "enter" ? m.type === "tableHead" ? (a = !1, l !== 0 && (kf(h, t, l, u, f), f = void 0, l = 0), u = {
14369
+ const d = e[n], p = d[1];
14370
+ d[0] === "enter" ? p.type === "tableHead" ? (a = !1, l !== 0 && (kf(h, t, l, u, f), f = void 0, l = 0), u = {
14371
14371
  type: "table",
14372
- start: Object.assign({}, m.start),
14372
+ start: Object.assign({}, p.start),
14373
14373
  // Note: correct end is set later.
14374
- end: Object.assign({}, m.end)
14375
- }, h.add(n, 0, [["enter", u, t]])) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (r = !0, c = void 0, o = [0, 0, 0, 0], s = [0, n + 1, 0, 0], a && (a = !1, f = {
14374
+ end: Object.assign({}, p.end)
14375
+ }, h.add(n, 0, [["enter", u, t]])) : p.type === "tableRow" || p.type === "tableDelimiterRow" ? (r = !0, c = void 0, o = [0, 0, 0, 0], s = [0, n + 1, 0, 0], a && (a = !1, f = {
14376
14376
  type: "tableBody",
14377
- start: Object.assign({}, m.start),
14377
+ start: Object.assign({}, p.start),
14378
14378
  // Note: correct end is set later.
14379
- end: Object.assign({}, m.end)
14380
- }, h.add(n, 0, [["enter", f, t]])), i = m.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, s[2] === 0 && (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c), o = [0, 0, 0, 0]), s[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c)), o = s, s = [o[1], n, 0, 0])) : m.type === "tableHead" ? (a = !0, l = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (l = n, o[1] !== 0 ? (s[0] = s[1], c = _i(h, t, o, i, n, c)) : s[1] !== 0 && (c = _i(h, t, s, i, n, c)), i = 0) : i && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (s[3] = n);
14379
+ end: Object.assign({}, p.end)
14380
+ }, h.add(n, 0, [["enter", f, t]])), i = p.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") ? (r = !1, s[2] === 0 && (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c), o = [0, 0, 0, 0]), s[2] = n)) : p.type === "tableCellDivider" && (r ? r = !1 : (o[1] !== 0 && (s[0] = s[1], c = _i(h, t, o, i, void 0, c)), o = s, s = [o[1], n, 0, 0])) : p.type === "tableHead" ? (a = !0, l = n) : p.type === "tableRow" || p.type === "tableDelimiterRow" ? (l = n, o[1] !== 0 ? (s[0] = s[1], c = _i(h, t, o, i, n, c)) : s[1] !== 0 && (c = _i(h, t, s, i, n, c)), i = 0) : i && (p.type === "data" || p.type === "tableDelimiterMarker" || p.type === "tableDelimiterFiller") && (s[3] = n);
14381
14381
  }
14382
14382
  for (l !== 0 && kf(h, t, l, u, f), h.consume(t.events), n = -1; ++n < t.events.length; ) {
14383
14383
  const d = t.events[n];
@@ -14403,8 +14403,8 @@ function _i(e, t, n, r, i, o) {
14403
14403
  if (e.add(n[2], 0, [["enter", c, t]]), r !== 2) {
14404
14404
  const h = t.events[n[2]], d = t.events[n[3]];
14405
14405
  if (h[1].end = Object.assign({}, d[1].end), h[1].type = "chunkText", h[1].contentType = "text", n[3] > n[2] + 1) {
14406
- const m = n[2] + 1, p = n[3] - n[2] - 1;
14407
- e.add(m, p, []);
14406
+ const p = n[2] + 1, m = n[3] - n[2] - 1;
14407
+ e.add(p, m, []);
14408
14408
  }
14409
14409
  }
14410
14410
  e.add(n[3] + 1, 0, [["exit", c, t]]);
@@ -15681,8 +15681,8 @@ const jT = ({ text: e }) => {
15681
15681
  li: ({ node: s, ...a }) => /* @__PURE__ */ T("li", { ...a, ...t.listItem }),
15682
15682
  br: ({ node: s, ...a }) => /* @__PURE__ */ T("br", { ...a, ...t.lineBreak }),
15683
15683
  pre: ({ node: s, ...a }) => {
15684
- var m, p;
15685
- const l = s == null ? void 0 : s.children[0], u = VT(((p = (m = l == null ? void 0 : l.properties) == null ? void 0 : m.className) == null ? void 0 : p[0]) || ""), [f, c] = Te(!1), h = Se(null), d = () => {
15684
+ var p, m;
15685
+ const l = s == null ? void 0 : s.children[0], u = VT(((m = (p = l == null ? void 0 : l.properties) == null ? void 0 : p.className) == null ? void 0 : m[0]) || ""), [f, c] = Te(!1), h = Se(null), d = () => {
15686
15686
  if (!h.current) return;
15687
15687
  const g = h.current.textContent || "";
15688
15688
  navigator.clipboard.writeText(g).then(() => {
@@ -15751,12 +15751,12 @@ function YT() {
15751
15751
  }
15752
15752
  var n = typeof Object.is == "function" ? Object.is : t, r = e.useState, i = e.useEffect, o = e.useLayoutEffect, s = e.useDebugValue;
15753
15753
  function a(c, h) {
15754
- var d = h(), m = r({ inst: { value: d, getSnapshot: h } }), p = m[0].inst, g = m[1];
15754
+ var d = h(), p = r({ inst: { value: d, getSnapshot: h } }), m = p[0].inst, g = p[1];
15755
15755
  return o(function() {
15756
- p.value = d, p.getSnapshot = h, l(p) && g({ inst: p });
15756
+ m.value = d, m.getSnapshot = h, l(m) && g({ inst: m });
15757
15757
  }, [c, d, h]), i(function() {
15758
- return l(p) && g({ inst: p }), c(function() {
15759
- l(p) && g({ inst: p });
15758
+ return l(m) && g({ inst: m }), c(function() {
15759
+ l(m) && g({ inst: m });
15760
15760
  });
15761
15761
  }, [c]), s(d), d;
15762
15762
  }
@@ -15850,10 +15850,10 @@ function KT() {
15850
15850
  return !0;
15851
15851
  }
15852
15852
  }
15853
- function m(w, E, S) {
15853
+ function p(w, E, S) {
15854
15854
  return E();
15855
15855
  }
15856
- var p = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !p, v = g ? m : h, y = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
15856
+ var m = typeof window < "u" && typeof window.document < "u" && typeof window.document.createElement < "u", g = !m, v = g ? p : h, y = e.useSyncExternalStore !== void 0 ? e.useSyncExternalStore : v;
15857
15857
  $s.useSyncExternalStore = y, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
15858
15858
  }()), $s;
15859
15859
  }
@@ -15880,16 +15880,16 @@ function GT() {
15880
15880
  }
15881
15881
  var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
15882
15882
  return _s.useSyncExternalStoreWithSelector = function(u, f, c, h, d) {
15883
- var m = o(null);
15884
- if (m.current === null) {
15885
- var p = { hasValue: !1, value: null };
15886
- m.current = p;
15887
- } else p = m.current;
15888
- m = a(function() {
15883
+ var p = o(null);
15884
+ if (p.current === null) {
15885
+ var m = { hasValue: !1, value: null };
15886
+ p.current = m;
15887
+ } else m = p.current;
15888
+ p = a(function() {
15889
15889
  function v(k) {
15890
15890
  if (!y) {
15891
- if (y = !0, w = k, k = h(k), d !== void 0 && p.hasValue) {
15892
- var I = p.value;
15891
+ if (y = !0, w = k, k = h(k), d !== void 0 && m.hasValue) {
15892
+ var I = m.value;
15893
15893
  if (d(I, k)) return E = I;
15894
15894
  }
15895
15895
  return E = k;
@@ -15905,9 +15905,9 @@ function GT() {
15905
15905
  return v(S());
15906
15906
  }];
15907
15907
  }, [f, c, h, d]);
15908
- var g = i(u, m[0], m[1]);
15908
+ var g = i(u, p[0], p[1]);
15909
15909
  return s(function() {
15910
- p.hasValue = !0, p.value = g;
15910
+ m.hasValue = !0, m.value = g;
15911
15911
  }, [g]), l(g), g;
15912
15912
  }, _s;
15913
15913
  }
@@ -15930,20 +15930,20 @@ function QT() {
15930
15930
  return f === c && (f !== 0 || 1 / f === 1 / c) || f !== f && c !== c;
15931
15931
  }
15932
15932
  var r = typeof Object.is == "function" ? Object.is : n, i = t.useSyncExternalStore, o = e.useRef, s = e.useEffect, a = e.useMemo, l = e.useDebugValue;
15933
- function u(f, c, h, d, m) {
15934
- var p = o(null), g;
15935
- p.current === null ? (g = {
15933
+ function u(f, c, h, d, p) {
15934
+ var m = o(null), g;
15935
+ m.current === null ? (g = {
15936
15936
  hasValue: !1,
15937
15937
  value: null
15938
- }, p.current = g) : g = p.current;
15938
+ }, m.current = g) : g = m.current;
15939
15939
  var v = a(function() {
15940
15940
  var S = !1, k, I, R = function(z) {
15941
15941
  if (!S) {
15942
15942
  S = !0, k = z;
15943
15943
  var P = d(z);
15944
- if (m !== void 0 && g.hasValue) {
15944
+ if (p !== void 0 && g.hasValue) {
15945
15945
  var L = g.value;
15946
- if (m(L, P))
15946
+ if (p(L, P))
15947
15947
  return I = L, L;
15948
15948
  }
15949
15949
  return I = P, P;
@@ -15952,14 +15952,14 @@ function QT() {
15952
15952
  if (r(_, z))
15953
15953
  return D;
15954
15954
  var U = d(z);
15955
- return m !== void 0 && m(D, U) ? D : (k = z, I = U, U);
15955
+ return p !== void 0 && p(D, U) ? D : (k = z, I = U, U);
15956
15956
  }, N = h === void 0 ? null : h, A = function() {
15957
15957
  return R(c());
15958
15958
  }, O = N === null ? void 0 : function() {
15959
15959
  return R(N());
15960
15960
  };
15961
15961
  return [A, O];
15962
- }, [c, h, d, m]), y = v[0], w = v[1], E = i(f, y, w);
15962
+ }, [c, h, d, p]), y = v[0], w = v[1], E = i(f, y, w);
15963
15963
  return s(function() {
15964
15964
  g.hasValue = !0, g.value = E;
15965
15965
  }, [E]), l(E), E;
@@ -16022,8 +16022,8 @@ const tI = (e) => {
16022
16022
  ), e(n, r, i);
16023
16023
  const { connection: f, ...c } = nI(a, u, l);
16024
16024
  let h = !0;
16025
- i.setState = (p, g, v) => {
16026
- const y = n(p, g);
16025
+ i.setState = (m, g, v) => {
16026
+ const y = n(m, g);
16027
16027
  if (!h)
16028
16028
  return y;
16029
16029
  const w = v === void 0 ? { type: s || "anonymous" } : typeof v == "string" ? { type: v } : v;
@@ -16038,38 +16038,38 @@ const tI = (e) => {
16038
16038
  }
16039
16039
  ), y);
16040
16040
  };
16041
- const d = (...p) => {
16041
+ const d = (...m) => {
16042
16042
  const g = h;
16043
- h = !1, n(...p), h = g;
16044
- }, m = e(i.setState, r, i);
16045
- if (c.type === "untracked" ? f == null || f.init(m) : (c.stores[c.store] = i, f == null || f.init(
16043
+ h = !1, n(...m), h = g;
16044
+ }, p = e(i.setState, r, i);
16045
+ if (c.type === "untracked" ? f == null || f.init(p) : (c.stores[c.store] = i, f == null || f.init(
16046
16046
  Object.fromEntries(
16047
- Object.entries(c.stores).map(([p, g]) => [
16048
- p,
16049
- p === c.store ? m : g.getState()
16047
+ Object.entries(c.stores).map(([m, g]) => [
16048
+ m,
16049
+ m === c.store ? p : g.getState()
16050
16050
  ])
16051
16051
  )
16052
16052
  )), i.dispatchFromDevtools && typeof i.dispatch == "function") {
16053
- let p = !1;
16053
+ let m = !1;
16054
16054
  const g = i.dispatch;
16055
16055
  i.dispatch = (...v) => {
16056
- (so ? "production" : void 0) !== "production" && v[0].type === "__setState" && !p && (console.warn(
16056
+ (so ? "production" : void 0) !== "production" && v[0].type === "__setState" && !m && (console.warn(
16057
16057
  '[zustand devtools middleware] "__setState" action type is reserved to set state from the devtools. Avoid using it.'
16058
- ), p = !0), g(...v);
16058
+ ), m = !0), g(...v);
16059
16059
  };
16060
16060
  }
16061
- return f.subscribe((p) => {
16061
+ return f.subscribe((m) => {
16062
16062
  var g;
16063
- switch (p.type) {
16063
+ switch (m.type) {
16064
16064
  case "ACTION":
16065
- if (typeof p.payload != "string") {
16065
+ if (typeof m.payload != "string") {
16066
16066
  console.error(
16067
16067
  "[zustand devtools middleware] Unsupported action format"
16068
16068
  );
16069
16069
  return;
16070
16070
  }
16071
16071
  return zs(
16072
- p.payload,
16072
+ m.payload,
16073
16073
  (v) => {
16074
16074
  if (v.type === "__setState") {
16075
16075
  if (a === void 0) {
@@ -16093,9 +16093,9 @@ const tI = (e) => {
16093
16093
  }
16094
16094
  );
16095
16095
  case "DISPATCH":
16096
- switch (p.payload.type) {
16096
+ switch (m.payload.type) {
16097
16097
  case "RESET":
16098
- return d(m), a === void 0 ? f == null ? void 0 : f.init(i.getState()) : f == null ? void 0 : f.init($i(l.name));
16098
+ return d(p), a === void 0 ? f == null ? void 0 : f.init(i.getState()) : f == null ? void 0 : f.init($i(l.name));
16099
16099
  case "COMMIT":
16100
16100
  if (a === void 0) {
16101
16101
  f == null || f.init(i.getState());
@@ -16103,7 +16103,7 @@ const tI = (e) => {
16103
16103
  }
16104
16104
  return f == null ? void 0 : f.init($i(l.name));
16105
16105
  case "ROLLBACK":
16106
- return zs(p.state, (v) => {
16106
+ return zs(m.state, (v) => {
16107
16107
  if (a === void 0) {
16108
16108
  d(v), f == null || f.init(i.getState());
16109
16109
  return;
@@ -16112,7 +16112,7 @@ const tI = (e) => {
16112
16112
  });
16113
16113
  case "JUMP_TO_STATE":
16114
16114
  case "JUMP_TO_ACTION":
16115
- return zs(p.state, (v) => {
16115
+ return zs(m.state, (v) => {
16116
16116
  if (a === void 0) {
16117
16117
  d(v);
16118
16118
  return;
@@ -16120,7 +16120,7 @@ const tI = (e) => {
16120
16120
  JSON.stringify(i.getState()) !== JSON.stringify(v[a]) && d(v[a]);
16121
16121
  });
16122
16122
  case "IMPORT_STATE": {
16123
- const { nextLiftedState: v } = p.payload, y = (g = v.computedStates.slice(-1)[0]) == null ? void 0 : g.state;
16123
+ const { nextLiftedState: v } = m.payload, y = (g = v.computedStates.slice(-1)[0]) == null ? void 0 : g.state;
16124
16124
  if (!y)
16125
16125
  return;
16126
16126
  d(a === void 0 ? y : y[a]), f == null || f.send(
@@ -16135,7 +16135,7 @@ const tI = (e) => {
16135
16135
  }
16136
16136
  return;
16137
16137
  }
16138
- }), m;
16138
+ }), p;
16139
16139
  }, wr = rI, zs = (e, t) => {
16140
16140
  let n;
16141
16141
  try {
@@ -16240,8 +16240,8 @@ const Xr = (e) => (t) => {
16240
16240
  r,
16241
16241
  i
16242
16242
  );
16243
- let m;
16244
- const p = () => {
16243
+ let p;
16244
+ const m = () => {
16245
16245
  var g;
16246
16246
  if (!u)
16247
16247
  return;
@@ -16265,12 +16265,12 @@ const Xr = (e) => (t) => {
16265
16265
  return y.state;
16266
16266
  }).then((y) => {
16267
16267
  var w;
16268
- return m = o.merge(
16268
+ return p = o.merge(
16269
16269
  y,
16270
16270
  (w = r()) != null ? w : d
16271
- ), n(m, !0), c();
16271
+ ), n(p, !0), c();
16272
16272
  }).then(() => {
16273
- v == null || v(m, void 0), s = !0, l.forEach((y) => y(m));
16273
+ v == null || v(p, void 0), s = !0, l.forEach((y) => y(p));
16274
16274
  }).catch((y) => {
16275
16275
  v == null || v(void 0, y);
16276
16276
  });
@@ -16286,7 +16286,7 @@ const Xr = (e) => (t) => {
16286
16286
  u == null || u.removeItem(o.name);
16287
16287
  },
16288
16288
  getOptions: () => o,
16289
- rehydrate: () => p(),
16289
+ rehydrate: () => m(),
16290
16290
  hasHydrated: () => s,
16291
16291
  onHydrate: (g) => (a.add(g), () => {
16292
16292
  a.delete(g);
@@ -16294,15 +16294,15 @@ const Xr = (e) => (t) => {
16294
16294
  onFinishHydration: (g) => (l.add(g), () => {
16295
16295
  l.delete(g);
16296
16296
  })
16297
- }, p(), m || d;
16297
+ }, m(), p || d;
16298
16298
  }, oI = (e, t) => (n, r, i) => {
16299
16299
  let o = {
16300
16300
  storage: Ko(() => localStorage),
16301
- partialize: (p) => p,
16301
+ partialize: (m) => m,
16302
16302
  version: 0,
16303
- merge: (p, g) => ({
16303
+ merge: (m, g) => ({
16304
16304
  ...g,
16305
- ...p
16305
+ ...m
16306
16306
  }),
16307
16307
  ...t
16308
16308
  }, s = !1;
@@ -16310,41 +16310,41 @@ const Xr = (e) => (t) => {
16310
16310
  let u = o.storage;
16311
16311
  if (!u)
16312
16312
  return e(
16313
- (...p) => {
16313
+ (...m) => {
16314
16314
  console.warn(
16315
16315
  `[zustand persist middleware] Unable to update item '${o.name}', the given storage is currently unavailable.`
16316
- ), n(...p);
16316
+ ), n(...m);
16317
16317
  },
16318
16318
  r,
16319
16319
  i
16320
16320
  );
16321
16321
  const f = () => {
16322
- const p = o.partialize({ ...r() });
16322
+ const m = o.partialize({ ...r() });
16323
16323
  return u.setItem(o.name, {
16324
- state: p,
16324
+ state: m,
16325
16325
  version: o.version
16326
16326
  });
16327
16327
  }, c = i.setState;
16328
- i.setState = (p, g) => {
16329
- c(p, g), f();
16328
+ i.setState = (m, g) => {
16329
+ c(m, g), f();
16330
16330
  };
16331
16331
  const h = e(
16332
- (...p) => {
16333
- n(...p), f();
16332
+ (...m) => {
16333
+ n(...m), f();
16334
16334
  },
16335
16335
  r,
16336
16336
  i
16337
16337
  );
16338
16338
  let d;
16339
- const m = () => {
16340
- var p, g;
16339
+ const p = () => {
16340
+ var m, g;
16341
16341
  if (!u)
16342
16342
  return;
16343
16343
  s = !1, a.forEach((y) => {
16344
16344
  var w;
16345
16345
  return y((w = r()) != null ? w : h);
16346
16346
  });
16347
- const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, (p = r()) != null ? p : h)) || void 0;
16347
+ const v = ((g = o.onRehydrateStorage) == null ? void 0 : g.call(o, (m = r()) != null ? m : h)) || void 0;
16348
16348
  return Xr(u.getItem.bind(u))(o.name).then((y) => {
16349
16349
  if (y)
16350
16350
  if (typeof y.version == "number" && y.version !== o.version) {
@@ -16371,25 +16371,25 @@ const Xr = (e) => (t) => {
16371
16371
  });
16372
16372
  };
16373
16373
  return i.persist = {
16374
- setOptions: (p) => {
16374
+ setOptions: (m) => {
16375
16375
  o = {
16376
16376
  ...o,
16377
- ...p
16378
- }, p.storage && (u = p.storage);
16377
+ ...m
16378
+ }, m.storage && (u = m.storage);
16379
16379
  },
16380
16380
  clearStorage: () => {
16381
16381
  u == null || u.removeItem(o.name);
16382
16382
  },
16383
16383
  getOptions: () => o,
16384
- rehydrate: () => m(),
16384
+ rehydrate: () => p(),
16385
16385
  hasHydrated: () => s,
16386
- onHydrate: (p) => (a.add(p), () => {
16387
- a.delete(p);
16386
+ onHydrate: (m) => (a.add(m), () => {
16387
+ a.delete(m);
16388
16388
  }),
16389
- onFinishHydration: (p) => (l.add(p), () => {
16390
- l.delete(p);
16389
+ onFinishHydration: (m) => (l.add(m), () => {
16390
+ l.delete(m);
16391
16391
  })
16392
- }, o.skipHydration || m(), d || h;
16392
+ }, o.skipHydration || p(), d || h;
16393
16393
  }, sI = (e, t) => "getStorage" in t || "serialize" in t || "deserialize" in t ? ((so ? "production" : void 0) !== "production" && console.warn(
16394
16394
  "[DEPRECATED] `getStorage`, `serialize` and `deserialize` options are deprecated. Use `storage` option instead."
16395
16395
  ), iI(e, t)) : oI(e, t), Go = sI, aI = (e, t) => kn()(
@@ -16508,9 +16508,9 @@ const Us = {}, lu = (e) => {
16508
16508
  status: "loading"
16509
16509
  });
16510
16510
  try {
16511
- const { fileUrl: h, type: d, fileId: m } = await i(c);
16511
+ const { fileUrl: h, type: d, fileId: p } = await i(c);
16512
16512
  n().upsertFile({
16513
- fileId: m,
16513
+ fileId: p,
16514
16514
  name: u,
16515
16515
  type: d,
16516
16516
  url: h,
@@ -16565,15 +16565,15 @@ const Us = {}, lu = (e) => {
16565
16565
  const t = `${e}-sound`;
16566
16566
  return qs[t] || (qs[t] = pI(t)), qs[t];
16567
16567
  }, gI = ({ text: e, buttonValue: t, variant: n, groupId: r, reusable: i, sendMessage: o, isReadOnly: s, ...a }) => {
16568
- const l = ei((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d, m] = Te(!1), {
16568
+ const l = ei((w) => w.eventEmitter), [u, f] = Te(!1), [c, h] = Te(!1), [d, p] = Te(!1), {
16569
16569
  message: {
16570
- blocks: { button: p }
16570
+ blocks: { button: m }
16571
16571
  }
16572
16572
  } = ge;
16573
16573
  _e(() => {
16574
16574
  if (r)
16575
16575
  return l.on(`button-group-${r}-click`, () => {
16576
- h(!0), i || m(!0);
16576
+ h(!0), i || p(!0);
16577
16577
  });
16578
16578
  }, [l, r, i]);
16579
16579
  const v = {
@@ -16583,12 +16583,12 @@ const Us = {}, lu = (e) => {
16583
16583
  w.preventDefault();
16584
16584
  return;
16585
16585
  }
16586
- f(!0), i || m(!0), r && l.emit(`button-group-${r}-click`), n !== "link" && o && (o == null || o({ type: "text", text: e, value: t }));
16586
+ f(!0), i || p(!0), r && l.emit(`button-group-${r}-click`), n !== "link" && o && (o == null || o({ type: "text", text: e, value: t }));
16587
16587
  },
16588
16588
  "data-activated": u ? "" : void 0,
16589
16589
  "data-group-activated": c ? "" : void 0,
16590
16590
  "data-type": n,
16591
- ...p
16591
+ ...m
16592
16592
  }, y = d || s;
16593
16593
  return n === "link" ? /* @__PURE__ */ T(
16594
16594
  "a",
@@ -16631,7 +16631,7 @@ const zm = rt(
16631
16631
  const { showInputModal: h } = Bm(), {
16632
16632
  message: {
16633
16633
  blocks: {
16634
- bubble: { container: d, feedbackContainer: m, feedbackIcon: p }
16634
+ bubble: { container: d, feedbackContainer: p, feedbackIcon: m }
16635
16635
  }
16636
16636
  }
16637
16637
  } = ge;
@@ -16651,11 +16651,11 @@ const zm = rt(
16651
16651
  }
16652
16652
  }
16653
16653
  ),
16654
- u && h && e.type === "text" && /* @__PURE__ */ ae("div", { ...m, children: [
16654
+ u && h && e.type === "text" && /* @__PURE__ */ ae("div", { ...p, children: [
16655
16655
  /* @__PURE__ */ T(
16656
16656
  OT,
16657
16657
  {
16658
- ...p,
16658
+ ...m,
16659
16659
  "data-selected": o === "positive",
16660
16660
  onClick: () => u(i, { value: "positive" })
16661
16661
  }
@@ -16663,7 +16663,7 @@ const zm = rt(
16663
16663
  /* @__PURE__ */ T(
16664
16664
  TT,
16665
16665
  {
16666
- ...p,
16666
+ ...m,
16667
16667
  "data-selected": o === "negative",
16668
16668
  onClick: async () => {
16669
16669
  const g = await h({
@@ -16887,14 +16887,14 @@ const jm = rt(
16887
16887
  if (!e) return;
16888
16888
  const h = new Image();
16889
16889
  try {
16890
- const { width: d, height: m } = await jv(e);
16891
- n === "auto" && l(SI(d, m)), h.onload = () => {
16892
- f("loaded"), s((p) => p.filter((g) => g !== o));
16890
+ const { width: d, height: p } = await jv(e);
16891
+ n === "auto" && l(SI(d, p)), h.onload = () => {
16892
+ f("loaded"), s((m) => m.filter((g) => g !== o));
16893
16893
  }, h.onerror = () => {
16894
- f("error"), l("square"), s((p) => p.filter((g) => g !== o));
16895
- }, h.src = e, h.complete && (h.naturalWidth > 0 ? (f("loaded"), s((p) => p.filter((g) => g !== o))) : (f("error"), l("square"), s((p) => p.filter((g) => g !== o))));
16894
+ f("error"), l("square"), s((m) => m.filter((g) => g !== o));
16895
+ }, h.src = e, h.complete && (h.naturalWidth > 0 ? (f("loaded"), s((m) => m.filter((g) => g !== o))) : (f("error"), l("square"), s((m) => m.filter((g) => g !== o))));
16896
16896
  } catch (d) {
16897
- console.error(d), f("error"), s((m) => m.filter((p) => p !== o));
16897
+ console.error(d), f("error"), s((p) => p.filter((m) => m !== o));
16898
16898
  }
16899
16899
  return () => {
16900
16900
  h.onload = null, h.onerror = null;
@@ -17042,7 +17042,7 @@ const Km = rt(
17042
17042
  blocks: { row: h }
17043
17043
  }
17044
17044
  } = ge;
17045
- return /* @__PURE__ */ T("div", { "data-horizontal": t, "data-vertical": n, ...f, ...h, ref: c, children: e.map((d, m) => /* @__PURE__ */ T(dr, { block: { ...d, direction: r, timestamp: o, sender: i, messageId: a, isReadOnly: l, sendMessage: u } }, m)) });
17045
+ return /* @__PURE__ */ T("div", { "data-horizontal": t, "data-vertical": n, ...f, ...h, ref: c, children: e.map((d, p) => /* @__PURE__ */ T(dr, { block: { ...d, direction: r, timestamp: o, sender: i, messageId: a, isReadOnly: l, sendMessage: u } }, p)) });
17046
17046
  }
17047
17047
  );
17048
17048
  Km.displayName = "Row";
@@ -17181,7 +17181,7 @@ function OI(e, t, n, r) {
17181
17181
  let s = null, a = 0, l = 0;
17182
17182
  function u() {
17183
17183
  i.add(e, "visibilitychange", () => {
17184
- e.hidden && m();
17184
+ e.hidden && p();
17185
17185
  });
17186
17186
  }
17187
17187
  function f() {
@@ -17202,7 +17202,7 @@ function OI(e, t, n, r) {
17202
17202
  function d() {
17203
17203
  t.cancelAnimationFrame(l), s = null, a = 0, l = 0;
17204
17204
  }
17205
- function m() {
17205
+ function p() {
17206
17206
  s = null, a = 0;
17207
17207
  }
17208
17208
  return {
@@ -17216,12 +17216,12 @@ function OI(e, t, n, r) {
17216
17216
  }
17217
17217
  function RI(e, t) {
17218
17218
  const n = t === "rtl", r = e === "y", i = r ? "y" : "x", o = r ? "x" : "y", s = !r && n ? -1 : 1, a = f(), l = c();
17219
- function u(m) {
17219
+ function u(p) {
17220
17220
  const {
17221
- height: p,
17221
+ height: m,
17222
17222
  width: g
17223
- } = m;
17224
- return r ? p : g;
17223
+ } = p;
17224
+ return r ? m : g;
17225
17225
  }
17226
17226
  function f() {
17227
17227
  return r ? "top" : n ? "right" : "left";
@@ -17229,8 +17229,8 @@ function RI(e, t) {
17229
17229
  function c() {
17230
17230
  return r ? "bottom" : n ? "left" : "right";
17231
17231
  }
17232
- function h(m) {
17233
- return m * s;
17232
+ function h(p) {
17233
+ return p * s;
17234
17234
  }
17235
17235
  return {
17236
17236
  scroll: i,
@@ -17297,7 +17297,7 @@ function Qm(e, t, n) {
17297
17297
  };
17298
17298
  return c;
17299
17299
  }
17300
- function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
17300
+ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, p, m, g, v, y) {
17301
17301
  const {
17302
17302
  cross: w,
17303
17303
  direction: E
@@ -17309,17 +17309,17 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
17309
17309
  }, O = {
17310
17310
  mouse: 500,
17311
17311
  touch: 600
17312
- }, z = m ? 43 : 25;
17312
+ }, z = p ? 43 : 25;
17313
17313
  let P = !1, L = 0, _ = 0, D = !1, U = !1, B = !1, j = !1;
17314
17314
  function b(F) {
17315
17315
  if (!y) return;
17316
- function te(Ie) {
17316
+ function ee(Ie) {
17317
17317
  (Qo(y) || y(F, Ie)) && q(Ie);
17318
17318
  }
17319
17319
  const pe = t;
17320
17320
  I.add(pe, "dragstart", (Ie) => Ie.preventDefault(), k).add(pe, "touchmove", () => {
17321
17321
  }, k).add(pe, "touchend", () => {
17322
- }).add(pe, "touchstart", te).add(pe, "mousedown", te).add(pe, "touchcancel", J).add(pe, "contextmenu", J).add(pe, "click", ie, !0);
17322
+ }).add(pe, "touchstart", ee).add(pe, "mousedown", ee).add(pe, "touchcancel", J).add(pe, "contextmenu", J).add(pe, "click", ie, !0);
17323
17323
  }
17324
17324
  function M() {
17325
17325
  I.clear(), R.clear();
@@ -17329,19 +17329,19 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
17329
17329
  R.add(F, "touchmove", K, k).add(F, "touchend", J).add(F, "mousemove", K, k).add(F, "mouseup", J);
17330
17330
  }
17331
17331
  function x(F) {
17332
- const te = F.nodeName || "";
17333
- return S.includes(te);
17332
+ const ee = F.nodeName || "";
17333
+ return S.includes(ee);
17334
17334
  }
17335
17335
  function V() {
17336
- return (m ? O : A)[j ? "mouse" : "touch"];
17336
+ return (p ? O : A)[j ? "mouse" : "touch"];
17337
17337
  }
17338
- function Z(F, te) {
17339
- const pe = c.add(du(F) * -1), Ie = f.byDistance(F, !m).distance;
17340
- return m || Ue(F) < N ? Ie : g && te ? Ie * 0.5 : f.byIndex(pe.get(), 0).distance;
17338
+ function Z(F, ee) {
17339
+ const pe = c.add(du(F) * -1), Ie = f.byDistance(F, !p).distance;
17340
+ return p || Ue(F) < N ? Ie : g && ee ? Ie * 0.5 : f.byIndex(pe.get(), 0).distance;
17341
17341
  }
17342
17342
  function q(F) {
17343
- const te = Za(F, r);
17344
- j = te, B = m && te && !F.buttons && P, P = qr(i.get(), s.get()) >= 2, !(te && F.button !== 0) && (x(F.target) || (D = !0, o.pointerDown(F), u.useFriction(0).useDuration(0), i.set(s), $(), L = o.readPoint(F), _ = o.readPoint(F, w), h.emit("pointerDown")));
17343
+ const ee = Za(F, r);
17344
+ j = ee, B = p && ee && !F.buttons && P, P = qr(i.get(), s.get()) >= 2, !(ee && F.button !== 0) && (x(F.target) || (D = !0, o.pointerDown(F), u.useFriction(0).useDuration(0), i.set(s), $(), L = o.readPoint(F), _ = o.readPoint(F, w), h.emit("pointerDown")));
17345
17345
  }
17346
17346
  function K(F) {
17347
17347
  if (!Za(F, r) && F.touches.length >= 2) return J(F);
@@ -17349,11 +17349,11 @@ function DI(e, t, n, r, i, o, s, a, l, u, f, c, h, d, m, p, g, v, y) {
17349
17349
  if (!U && !j && (!F.cancelable || (U = Q > le, !U)))
17350
17350
  return J(F);
17351
17351
  const fe = o.pointerMove(F);
17352
- Q > p && (B = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(E(fe)), F.preventDefault();
17352
+ Q > m && (B = !0), u.useFriction(0.3).useDuration(0.75), a.start(), i.add(E(fe)), F.preventDefault();
17353
17353
  }
17354
17354
  function J(F) {
17355
17355
  const pe = f.byDistance(0, !1).index !== c.get(), Ie = o.pointerUp(F) * V(), Q = Z(E(Ie), pe), le = AI(Ie, Q), fe = z - 10 * le, ce = v + le / 50;
17356
- U = !1, D = !1, R.clear(), u.useDuration(fe).useFriction(ce), l.distance(Q, !m), j = !1, h.emit("pointerUp");
17356
+ U = !1, D = !1, R.clear(), u.useDuration(fe).useFriction(ce), l.distance(Q, !p), j = !1, h.emit("pointerUp");
17357
17357
  }
17358
17358
  function ie(F) {
17359
17359
  B && (F.stopPropagation(), F.preventDefault(), B = !1);
@@ -17373,8 +17373,8 @@ function MI(e, t) {
17373
17373
  return c.timeStamp;
17374
17374
  }
17375
17375
  function s(c, h) {
17376
- const m = `client${(h || e.scroll) === "x" ? "X" : "Y"}`;
17377
- return (Za(c, t) ? c : c.touches[0])[m];
17376
+ const p = `client${(h || e.scroll) === "x" ? "X" : "Y"}`;
17377
+ return (Za(c, t) ? c : c.touches[0])[p];
17378
17378
  }
17379
17379
  function a(c) {
17380
17380
  return r = c, i = c, s(c);
@@ -17385,8 +17385,8 @@ function MI(e, t) {
17385
17385
  }
17386
17386
  function u(c) {
17387
17387
  if (!r || !i) return 0;
17388
- const h = s(i) - s(r), d = o(c) - o(r), m = o(c) - o(i) > 170, p = h / d;
17389
- return d && !m && Ue(p) > 0.1 ? p : 0;
17388
+ const h = s(i) - s(r), d = o(c) - o(r), p = o(c) - o(i) > 170, m = h / d;
17389
+ return d && !p && Ue(m) > 0.1 ? m : 0;
17390
17390
  }
17391
17391
  return {
17392
17392
  pointerDown: a,
@@ -17449,12 +17449,12 @@ function LI(e, t, n, r, i, o, s) {
17449
17449
  a.forEach((y) => l.observe(y));
17450
17450
  });
17451
17451
  }
17452
- function m() {
17452
+ function p() {
17453
17453
  c = !0, l && l.disconnect();
17454
17454
  }
17455
17455
  return {
17456
17456
  init: d,
17457
- destroy: m
17457
+ destroy: p
17458
17458
  };
17459
17459
  }
17460
17460
  function _I(e, t, n, r, i, o) {
@@ -17468,10 +17468,10 @@ function _I(e, t, n, r, i, o) {
17468
17468
  const k = r.get() - t.get();
17469
17469
  return Ue(k) < 1e-3;
17470
17470
  }
17471
- function m() {
17471
+ function p() {
17472
17472
  return l;
17473
17473
  }
17474
- function p() {
17474
+ function m() {
17475
17475
  return a;
17476
17476
  }
17477
17477
  function g() {
@@ -17490,8 +17490,8 @@ function _I(e, t, n, r, i, o) {
17490
17490
  return u = k, S;
17491
17491
  }
17492
17492
  const S = {
17493
- direction: p,
17494
- duration: m,
17493
+ direction: m,
17494
+ duration: p,
17495
17495
  velocity: g,
17496
17496
  seek: h,
17497
17497
  settled: d,
@@ -17510,7 +17510,7 @@ function FI(e, t, n, r, i) {
17510
17510
  }
17511
17511
  function f(d) {
17512
17512
  if (!u()) return;
17513
- const m = e.reachedMin(t.get()) ? "min" : "max", p = Ue(e[m] - t.get()), g = n.get() - t.get(), v = a.constrain(p / s);
17513
+ const p = e.reachedMin(t.get()) ? "min" : "max", m = Ue(e[p] - t.get()), g = n.get() - t.get(), v = a.constrain(m / s);
17514
17514
  n.subtract(g * v), !d && Ue(g) < o && (n.set(e.constrain(n.get())), r.useDuration(25).useBaseFriction());
17515
17515
  }
17516
17516
  function c(d) {
@@ -17524,30 +17524,30 @@ function FI(e, t, n, r, i) {
17524
17524
  }
17525
17525
  function $I(e, t, n, r, i) {
17526
17526
  const o = Pn(-t + e, 0), s = c(), a = f(), l = h();
17527
- function u(m, p) {
17528
- return qr(m, p) <= 1;
17527
+ function u(p, m) {
17528
+ return qr(p, m) <= 1;
17529
17529
  }
17530
17530
  function f() {
17531
- const m = s[0], p = zt(s), g = s.lastIndexOf(m), v = s.indexOf(p) + 1;
17531
+ const p = s[0], m = zt(s), g = s.lastIndexOf(p), v = s.indexOf(m) + 1;
17532
17532
  return Pn(g, v);
17533
17533
  }
17534
17534
  function c() {
17535
- return n.map((m, p) => {
17535
+ return n.map((p, m) => {
17536
17536
  const {
17537
17537
  min: g,
17538
17538
  max: v
17539
- } = o, y = o.constrain(m), w = !p, E = hu(n, p);
17539
+ } = o, y = o.constrain(p), w = !m, E = hu(n, m);
17540
17540
  return w ? v : E || u(g, y) ? g : u(v, y) ? v : y;
17541
- }).map((m) => parseFloat(m.toFixed(3)));
17541
+ }).map((p) => parseFloat(p.toFixed(3)));
17542
17542
  }
17543
17543
  function h() {
17544
17544
  if (t <= e + i) return [o.max];
17545
17545
  if (r === "keepSnaps") return s;
17546
17546
  const {
17547
- min: m,
17548
- max: p
17547
+ min: p,
17548
+ max: m
17549
17549
  } = a;
17550
- return s.slice(m, p);
17550
+ return s.slice(p, m);
17551
17551
  }
17552
17552
  return {
17553
17553
  snapsContained: l,
@@ -17571,7 +17571,7 @@ function zI(e, t, n, r) {
17571
17571
  function f(h) {
17572
17572
  if (!u(h)) return;
17573
17573
  const d = e * (h * -1);
17574
- r.forEach((m) => m.add(d));
17574
+ r.forEach((p) => p.add(d));
17575
17575
  }
17576
17576
  return {
17577
17577
  loop: f
@@ -17598,13 +17598,13 @@ function UI(e, t, n, r, i) {
17598
17598
  groupSlides: a
17599
17599
  } = i, l = c().map(t.measure), u = h(), f = d();
17600
17600
  function c() {
17601
- return a(r).map((p) => zt(p)[s] - p[0][o]).map(Ue);
17601
+ return a(r).map((m) => zt(m)[s] - m[0][o]).map(Ue);
17602
17602
  }
17603
17603
  function h() {
17604
- return r.map((p) => n[o] - p[o]).map((p) => -Ue(p));
17604
+ return r.map((m) => n[o] - m[o]).map((m) => -Ue(m));
17605
17605
  }
17606
17606
  function d() {
17607
- return a(u).map((p) => p[0]).map((p, g) => p + l[g]);
17607
+ return a(u).map((m) => m[0]).map((m, g) => m + l[g]);
17608
17608
  }
17609
17609
  return {
17610
17610
  snaps: u,
@@ -17620,8 +17620,8 @@ function jI(e, t, n, r, i, o) {
17620
17620
  } = r, u = f();
17621
17621
  function f() {
17622
17622
  const h = s(o), d = !e || t === "keepSnaps";
17623
- return n.length === 1 ? [o] : d ? h : h.slice(a, l).map((m, p, g) => {
17624
- const v = !p, y = hu(g, p);
17623
+ return n.length === 1 ? [o] : d ? h : h.slice(a, l).map((p, m, g) => {
17624
+ const v = !m, y = hu(g, m);
17625
17625
  if (v) {
17626
17626
  const w = zt(g[0]) + 1;
17627
17627
  return $f(w);
@@ -17630,7 +17630,7 @@ function jI(e, t, n, r, i, o) {
17630
17630
  const w = yi(o) - zt(g)[0] + 1;
17631
17631
  return $f(w, zt(g)[0]);
17632
17632
  }
17633
- return m;
17633
+ return p;
17634
17634
  });
17635
17635
  }
17636
17636
  return {
@@ -17643,45 +17643,45 @@ function VI(e, t, n, r, i) {
17643
17643
  removeOffset: s,
17644
17644
  constrain: a
17645
17645
  } = r;
17646
- function l(m) {
17647
- return m.concat().sort((p, g) => Ue(p) - Ue(g))[0];
17646
+ function l(p) {
17647
+ return p.concat().sort((m, g) => Ue(m) - Ue(g))[0];
17648
17648
  }
17649
- function u(m) {
17650
- const p = e ? s(m) : a(m), g = t.map((y, w) => ({
17651
- diff: f(y - p, 0),
17649
+ function u(p) {
17650
+ const m = e ? s(p) : a(p), g = t.map((y, w) => ({
17651
+ diff: f(y - m, 0),
17652
17652
  index: w
17653
17653
  })).sort((y, w) => Ue(y.diff) - Ue(w.diff)), {
17654
17654
  index: v
17655
17655
  } = g[0];
17656
17656
  return {
17657
17657
  index: v,
17658
- distance: p
17658
+ distance: m
17659
17659
  };
17660
17660
  }
17661
- function f(m, p) {
17662
- const g = [m, m + n, m - n];
17663
- if (!e) return m;
17664
- if (!p) return l(g);
17665
- const v = g.filter((y) => du(y) === p);
17661
+ function f(p, m) {
17662
+ const g = [p, p + n, p - n];
17663
+ if (!e) return p;
17664
+ if (!m) return l(g);
17665
+ const v = g.filter((y) => du(y) === m);
17666
17666
  return v.length ? l(v) : zt(g) - n;
17667
17667
  }
17668
- function c(m, p) {
17669
- const g = t[m] - i.get(), v = f(g, p);
17668
+ function c(p, m) {
17669
+ const g = t[p] - i.get(), v = f(g, m);
17670
17670
  return {
17671
- index: m,
17671
+ index: p,
17672
17672
  distance: v
17673
17673
  };
17674
17674
  }
17675
- function h(m, p) {
17676
- const g = i.get() + m, {
17675
+ function h(p, m) {
17676
+ const g = i.get() + p, {
17677
17677
  index: v,
17678
17678
  distance: y
17679
17679
  } = u(g), w = !e && o(g);
17680
- if (!p || w) return {
17680
+ if (!m || w) return {
17681
17681
  index: v,
17682
- distance: m
17682
+ distance: p
17683
17683
  };
17684
- const E = t[v] - y, S = m + f(E, 0);
17684
+ const E = t[v] - y, S = p + f(E, 0);
17685
17685
  return {
17686
17686
  index: v,
17687
17687
  distance: S
@@ -17703,8 +17703,8 @@ function WI(e, t, n, r, i, o, s) {
17703
17703
  a(d);
17704
17704
  }
17705
17705
  function u(c, h) {
17706
- const d = t.clone().set(c), m = i.byIndex(d.get(), h);
17707
- a(m);
17706
+ const d = t.clone().set(c), p = i.byIndex(d.get(), h);
17707
+ a(p);
17708
17708
  }
17709
17709
  return {
17710
17710
  distance: l,
@@ -17719,15 +17719,15 @@ function qI(e, t, n, r, i, o, s, a) {
17719
17719
  let u = 0;
17720
17720
  function f(d) {
17721
17721
  if (!a) return;
17722
- function m(p) {
17722
+ function p(m) {
17723
17723
  if ((/* @__PURE__ */ new Date()).getTime() - u > 10) return;
17724
17724
  s.emit("slideFocusStart"), e.scrollLeft = 0;
17725
- const y = n.findIndex((w) => w.includes(p));
17725
+ const y = n.findIndex((w) => w.includes(m));
17726
17726
  fu(y) && (i.useDuration(0), r.index(y, 0), s.emit("slideFocus"));
17727
17727
  }
17728
- o.add(document, "keydown", c, !1), t.forEach((p, g) => {
17729
- o.add(p, "focus", (v) => {
17730
- (Qo(a) || a(d, v)) && m(g);
17728
+ o.add(document, "keydown", c, !1), t.forEach((m, g) => {
17729
+ o.add(m, "focus", (v) => {
17730
+ (Qo(a) || a(d, v)) && p(g);
17731
17731
  }, l);
17732
17732
  });
17733
17733
  }
@@ -17793,17 +17793,17 @@ function YI(e, t, n, r, i, o, s, a, l) {
17793
17793
  function d(I, R) {
17794
17794
  return I.reduce((N, A) => N - i[A], R);
17795
17795
  }
17796
- function m(I, R) {
17796
+ function p(I, R) {
17797
17797
  return I.reduce((N, A) => d(N, R) > 0 ? N.concat([A]) : N, []);
17798
17798
  }
17799
- function p(I) {
17799
+ function m(I) {
17800
17800
  return o.map((R, N) => ({
17801
17801
  start: R - r[N] + 0.5 + I,
17802
17802
  end: R + t - 0.5 + I
17803
17803
  }));
17804
17804
  }
17805
17805
  function g(I, R, N) {
17806
- const A = p(R);
17806
+ const A = m(R);
17807
17807
  return I.map((O) => {
17808
17808
  const z = N ? 0 : -n, P = N ? n : 0, L = N ? "end" : "start", _ = A[O][L];
17809
17809
  return {
@@ -17816,11 +17816,11 @@ function YI(e, t, n, r, i, o, s, a, l) {
17816
17816
  });
17817
17817
  }
17818
17818
  function v() {
17819
- const I = s[0], R = m(c, I);
17819
+ const I = s[0], R = p(c, I);
17820
17820
  return g(R, n, !1);
17821
17821
  }
17822
17822
  function y() {
17823
- const I = t - s[0] - 1, R = m(f, I);
17823
+ const I = t - s[0] - 1, R = p(f, I);
17824
17824
  return g(R, -n, !0);
17825
17825
  }
17826
17826
  function w() {
@@ -17880,32 +17880,32 @@ function GI(e, t, n, r) {
17880
17880
  const i = {};
17881
17881
  let o = null, s = null, a, l = !1;
17882
17882
  function u() {
17883
- a = new IntersectionObserver((m) => {
17884
- l || (m.forEach((p) => {
17885
- const g = t.indexOf(p.target);
17886
- i[g] = p;
17883
+ a = new IntersectionObserver((p) => {
17884
+ l || (p.forEach((m) => {
17885
+ const g = t.indexOf(m.target);
17886
+ i[g] = m;
17887
17887
  }), o = null, s = null, n.emit("slidesInView"));
17888
17888
  }, {
17889
17889
  root: e.parentElement,
17890
17890
  threshold: r
17891
- }), t.forEach((m) => a.observe(m));
17891
+ }), t.forEach((p) => a.observe(p));
17892
17892
  }
17893
17893
  function f() {
17894
17894
  a && a.disconnect(), l = !0;
17895
17895
  }
17896
- function c(m) {
17897
- return ni(i).reduce((p, g) => {
17896
+ function c(p) {
17897
+ return ni(i).reduce((m, g) => {
17898
17898
  const v = parseInt(g), {
17899
17899
  isIntersecting: y
17900
17900
  } = i[v];
17901
- return (m && y || !m && !y) && p.push(v), p;
17901
+ return (p && y || !p && !y) && m.push(v), m;
17902
17902
  }, []);
17903
17903
  }
17904
- function h(m = !0) {
17905
- if (m && o) return o;
17906
- if (!m && s) return s;
17907
- const p = c(m);
17908
- return m && (o = p), m || (s = p), p;
17904
+ function h(p = !0) {
17905
+ if (p && o) return o;
17906
+ if (!p && s) return s;
17907
+ const m = c(p);
17908
+ return p && (o = m), p || (s = m), m;
17909
17909
  }
17910
17910
  return {
17911
17911
  init: u,
@@ -17918,13 +17918,13 @@ function QI(e, t, n, r, i, o) {
17918
17918
  measureSize: s,
17919
17919
  startEdge: a,
17920
17920
  endEdge: l
17921
- } = e, u = n[0] && i, f = m(), c = p(), h = n.map(s), d = g();
17922
- function m() {
17921
+ } = e, u = n[0] && i, f = p(), c = m(), h = n.map(s), d = g();
17922
+ function p() {
17923
17923
  if (!u) return 0;
17924
17924
  const y = n[0];
17925
17925
  return Ue(t[a] - y[a]);
17926
17926
  }
17927
- function p() {
17927
+ function m() {
17928
17928
  if (!u) return 0;
17929
17929
  const y = o.getComputedStyle(zt(r));
17930
17930
  return parseFloat(y.getPropertyValue(`margin-${l}`));
@@ -17951,7 +17951,7 @@ function ZI(e, t, n, r, i, o, s, a, l) {
17951
17951
  function d(v, y) {
17952
17952
  return ti(v).filter((w) => w % y === 0).map((w) => v.slice(w, w + y));
17953
17953
  }
17954
- function m(v) {
17954
+ function p(v) {
17955
17955
  return v.length ? ti(v).reduce((y, w, E) => {
17956
17956
  const S = zt(y) || 0, k = S === 0, I = w === yi(v), R = i[u] - o[S][u], N = i[u] - o[w][f], A = !r && k ? c(s) : 0, O = !r && I ? c(a) : 0, z = Ue(N - O - (R + A));
17957
17957
  return E && z > t + l && y.push(w), I && y.push(v.length), y;
@@ -17960,11 +17960,11 @@ function ZI(e, t, n, r, i, o, s, a, l) {
17960
17960
  return v.slice(S, y);
17961
17961
  }) : [];
17962
17962
  }
17963
- function p(v) {
17964
- return h ? d(v, n) : m(v);
17963
+ function m(v) {
17964
+ return h ? d(v, n) : p(v);
17965
17965
  }
17966
17966
  return {
17967
- groupSlides: p
17967
+ groupSlides: m
17968
17968
  };
17969
17969
  }
17970
17970
  function JI(e, t, n, r, i, o, s) {
@@ -17976,8 +17976,8 @@ function JI(e, t, n, r, i, o, s) {
17976
17976
  loop: c,
17977
17977
  duration: h,
17978
17978
  dragFree: d,
17979
- dragThreshold: m,
17980
- inViewThreshold: p,
17979
+ dragThreshold: p,
17980
+ inViewThreshold: m,
17981
17981
  slidesToScroll: g,
17982
17982
  skipSnaps: v,
17983
17983
  containScroll: y,
@@ -17998,7 +17998,7 @@ function JI(e, t, n, r, i, o, s) {
17998
17998
  scrollContainLimit: q
17999
17999
  } = $I(z, V, x, y, I), K = _ ? Z : x, {
18000
18000
  limit: J
18001
- } = BI(V, K, c), ie = Qm(yi(K), f, c), Y = ie.clone(), ee = ti(n), F = ({
18001
+ } = BI(V, K, c), ie = Qm(yi(K), f, c), Y = ie.clone(), te = ti(n), F = ({
18002
18002
  dragHandler: de,
18003
18003
  scrollBody: qe,
18004
18004
  scrollBounds: Ge,
@@ -18007,7 +18007,7 @@ function JI(e, t, n, r, i, o, s) {
18007
18007
  }
18008
18008
  }) => {
18009
18009
  et || Ge.constrain(de.pointerDown()), qe.seek();
18010
- }, te = ({
18010
+ }, ee = ({
18011
18011
  scrollBody: de,
18012
18012
  translate: qe,
18013
18013
  location: Ge,
@@ -18027,9 +18027,9 @@ function JI(e, t, n, r, i, o, s) {
18027
18027
  Hu && lt.stop();
18028
18028
  const vv = Ge.get() * $u + Et.get() * (1 - $u);
18029
18029
  et.set(vv), Fu && (Nt.loop(de.direction()), Qe.loop()), qe.to(et.get()), Hu && Ai.emit("settle"), zu || Ai.emit("scroll");
18030
- }, pe = OI(r, i, () => F(se), (de) => te(se, de)), Ie = 0.68, Q = K[ie.get()], le = $r(Q), fe = $r(Q), ce = $r(Q), Ce = $r(Q), $e = _I(le, ce, fe, Ce, h, Ie), Oe = VI(c, K, V, J, Ce), je = WI(pe, ie, Y, $e, Oe, Ce, s), X = HI(J), oe = ri(), H = GI(t, n, s, p), {
18030
+ }, pe = OI(r, i, () => F(se), (de) => ee(se, de)), Ie = 0.68, Q = K[ie.get()], le = $r(Q), fe = $r(Q), ce = $r(Q), Ce = $r(Q), $e = _I(le, ce, fe, Ce, h, Ie), Oe = VI(c, K, V, J, Ce), je = WI(pe, ie, Y, $e, Oe, Ce, s), X = HI(J), oe = ri(), H = GI(t, n, s, m), {
18031
18031
  slideRegistry: W
18032
- } = jI(_, y, K, q, M, ee), re = qI(e, n, W, je, $e, oe, s, k), se = {
18032
+ } = jI(_, y, K, q, M, te), re = qI(e, n, W, je, $e, oe, s, k), se = {
18033
18033
  ownerDocument: r,
18034
18034
  ownerWindow: i,
18035
18035
  eventHandler: s,
@@ -18037,7 +18037,7 @@ function JI(e, t, n, r, i, o, s) {
18037
18037
  slideRects: A,
18038
18038
  animation: pe,
18039
18039
  axis: O,
18040
- dragHandler: DI(O, e, r, i, Ce, MI(O, i), le, pe, je, $e, Oe, ie, s, P, d, m, v, Ie, S),
18040
+ dragHandler: DI(O, e, r, i, Ce, MI(O, i), le, pe, je, $e, Oe, ie, s, P, d, p, v, Ie, S),
18041
18041
  eventStore: oe,
18042
18042
  percentOfView: P,
18043
18043
  index: ie,
@@ -18060,7 +18060,7 @@ function JI(e, t, n, r, i, o, s) {
18060
18060
  slideFocus: re,
18061
18061
  slidesHandler: KI(t, s, E),
18062
18062
  slidesInView: H,
18063
- slideIndexes: ee,
18063
+ slideIndexes: te,
18064
18064
  slideRegistry: W,
18065
18065
  slidesToScroll: M,
18066
18066
  target: Ce,
@@ -18161,38 +18161,38 @@ function So(e, t, n) {
18161
18161
  } = o, {
18162
18162
  on: h,
18163
18163
  off: d,
18164
- emit: m
18165
- } = l, p = O;
18164
+ emit: p
18165
+ } = l, m = O;
18166
18166
  let g = !1, v, y = u(eO, So.globalOptions), w = u(y), E = [], S, k, I;
18167
18167
  function R() {
18168
18168
  const {
18169
- container: ee,
18169
+ container: te,
18170
18170
  slides: F
18171
18171
  } = w;
18172
- k = (Qa(ee) ? e.querySelector(ee) : ee) || e.children[0];
18172
+ k = (Qa(te) ? e.querySelector(te) : te) || e.children[0];
18173
18173
  const pe = Qa(F) ? k.querySelectorAll(F) : F;
18174
18174
  I = [].slice.call(pe || k.children);
18175
18175
  }
18176
- function N(ee) {
18177
- const F = JI(e, k, I, r, i, ee, l);
18178
- if (ee.loop && !F.slideLooper.canLoop()) {
18179
- const te = Object.assign({}, ee, {
18176
+ function N(te) {
18177
+ const F = JI(e, k, I, r, i, te, l);
18178
+ if (te.loop && !F.slideLooper.canLoop()) {
18179
+ const ee = Object.assign({}, te, {
18180
18180
  loop: !1
18181
18181
  });
18182
- return N(te);
18182
+ return N(ee);
18183
18183
  }
18184
18184
  return F;
18185
18185
  }
18186
- function A(ee, F) {
18187
- g || (y = u(y, ee), w = f(y), E = F || E, R(), v = N(w), c([y, ...E.map(({
18188
- options: te
18189
- }) => te)]).forEach((te) => a.add(te, "change", O)), w.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(Y), v.eventHandler.init(Y), v.resizeHandler.init(Y), v.slidesHandler.init(Y), v.options.loop && v.slideLooper.loop(), k.offsetParent && I.length && v.dragHandler.init(Y), S = s.init(Y, E)));
18186
+ function A(te, F) {
18187
+ g || (y = u(y, te), w = f(y), E = F || E, R(), v = N(w), c([y, ...E.map(({
18188
+ options: ee
18189
+ }) => ee)]).forEach((ee) => a.add(ee, "change", O)), w.active && (v.translate.to(v.location.get()), v.animation.init(), v.slidesInView.init(), v.slideFocus.init(Y), v.eventHandler.init(Y), v.resizeHandler.init(Y), v.slidesHandler.init(Y), v.options.loop && v.slideLooper.loop(), k.offsetParent && I.length && v.dragHandler.init(Y), S = s.init(Y, E)));
18190
18190
  }
18191
- function O(ee, F) {
18192
- const te = M();
18191
+ function O(te, F) {
18192
+ const ee = M();
18193
18193
  z(), A(u({
18194
- startIndex: te
18195
- }, ee), F), l.emit("reInit");
18194
+ startIndex: ee
18195
+ }, te), F), l.emit("reInit");
18196
18196
  }
18197
18197
  function z() {
18198
18198
  v.dragHandler.destroy(), v.eventStore.clear(), v.translate.clear(), v.slideLooper.clear(), v.resizeHandler.destroy(), v.slidesHandler.destroy(), v.slidesInView.destroy(), v.animation.destroy(), s.destroy(), a.clear();
@@ -18200,16 +18200,16 @@ function So(e, t, n) {
18200
18200
  function P() {
18201
18201
  g || (g = !0, a.clear(), z(), l.emit("destroy"), l.clear());
18202
18202
  }
18203
- function L(ee, F, te) {
18204
- !w.active || g || (v.scrollBody.useBaseFriction().useDuration(F === !0 ? 0 : w.duration), v.scrollTo.index(ee, te || 0));
18203
+ function L(te, F, ee) {
18204
+ !w.active || g || (v.scrollBody.useBaseFriction().useDuration(F === !0 ? 0 : w.duration), v.scrollTo.index(te, ee || 0));
18205
18205
  }
18206
- function _(ee) {
18206
+ function _(te) {
18207
18207
  const F = v.index.add(1).get();
18208
- L(F, ee, -1);
18208
+ L(F, te, -1);
18209
18209
  }
18210
- function D(ee) {
18210
+ function D(te) {
18211
18211
  const F = v.index.add(-1).get();
18212
- L(F, ee, 1);
18212
+ L(F, te, 1);
18213
18213
  }
18214
18214
  function U() {
18215
18215
  return v.index.add(1).get() !== M();
@@ -18258,10 +18258,10 @@ function So(e, t, n) {
18258
18258
  destroy: P,
18259
18259
  off: d,
18260
18260
  on: h,
18261
- emit: m,
18261
+ emit: p,
18262
18262
  plugins: Z,
18263
18263
  previousScrollSnap: $,
18264
- reInit: p,
18264
+ reInit: m,
18265
18265
  rootNode: K,
18266
18266
  scrollNext: _,
18267
18267
  scrollPrev: D,
@@ -18296,7 +18296,7 @@ function pu(e = {}, t = []) {
18296
18296
  pu.globalOptions = void 0;
18297
18297
  const Jm = rt(
18298
18298
  ({ blocks: e, direction: t, sender: n, timestamp: r, messageId: i, isReadOnly: o, sendMessage: s }, a) => {
18299
- const [l, u] = pu({ skipSnaps: !0, loop: !0 }), [f, c] = Te(!0), [h, d] = Te(!0), m = Me(() => u == null ? void 0 : u.scrollPrev(), [u]), p = Me(() => u == null ? void 0 : u.scrollNext(), [u]), {
18299
+ const [l, u] = pu({ skipSnaps: !0, loop: !0 }), [f, c] = Te(!0), [h, d] = Te(!0), p = Me(() => u == null ? void 0 : u.scrollPrev(), [u]), m = Me(() => u == null ? void 0 : u.scrollNext(), [u]), {
18300
18300
  message: {
18301
18301
  blocks: { carousel: g }
18302
18302
  }
@@ -18313,7 +18313,7 @@ const Jm = rt(
18313
18313
  {
18314
18314
  ...g == null ? void 0 : g.backButton,
18315
18315
  "data-disabled": f ? "" : void 0,
18316
- onClick: m
18316
+ onClick: p
18317
18317
  }
18318
18318
  ),
18319
18319
  /* @__PURE__ */ T(
@@ -18321,7 +18321,7 @@ const Jm = rt(
18321
18321
  {
18322
18322
  ...g == null ? void 0 : g.nextButton,
18323
18323
  "data-disabled": h ? "" : void 0,
18324
- onClick: p
18324
+ onClick: m
18325
18325
  }
18326
18326
  )
18327
18327
  ] })
@@ -18581,12 +18581,12 @@ const yO = async (e, t, n) => {
18581
18581
  }), {
18582
18582
  x: f,
18583
18583
  y: c
18584
- } = Uf(u, r, l), h = r, d = {}, m = 0;
18585
- for (let p = 0; p < a.length; p++) {
18584
+ } = Uf(u, r, l), h = r, d = {}, p = 0;
18585
+ for (let m = 0; m < a.length; m++) {
18586
18586
  const {
18587
18587
  name: g,
18588
18588
  fn: v
18589
- } = a[p], {
18589
+ } = a[m], {
18590
18590
  x: y,
18591
18591
  y: w,
18592
18592
  data: E,
@@ -18611,14 +18611,14 @@ const yO = async (e, t, n) => {
18611
18611
  ...d[g],
18612
18612
  ...E
18613
18613
  }
18614
- }, S && m <= 50 && (m++, typeof S == "object" && (S.placement && (h = S.placement), S.rects && (u = S.rects === !0 ? await s.getElementRects({
18614
+ }, S && p <= 50 && (p++, typeof S == "object" && (S.placement && (h = S.placement), S.rects && (u = S.rects === !0 ? await s.getElementRects({
18615
18615
  reference: e,
18616
18616
  floating: t,
18617
18617
  strategy: i
18618
18618
  }) : S.rects), {
18619
18619
  x: f,
18620
18620
  y: c
18621
- } = Uf(u, h, l)), p = -1);
18621
+ } = Uf(u, h, l)), m = -1);
18622
18622
  }
18623
18623
  return {
18624
18624
  x: f,
@@ -18644,7 +18644,7 @@ async function lg(e, t) {
18644
18644
  elementContext: c = "floating",
18645
18645
  altBoundary: h = !1,
18646
18646
  padding: d = 0
18647
- } = Zo(t, e), m = gO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v = Eo(await o.getClippingRect({
18647
+ } = Zo(t, e), p = gO(d), g = a[h ? c === "floating" ? "reference" : "floating" : c], v = Eo(await o.getClippingRect({
18648
18648
  element: (n = await (o.isElement == null ? void 0 : o.isElement(g))) == null || n ? g : g.contextElement || await (o.getDocumentElement == null ? void 0 : o.getDocumentElement(a.floating)),
18649
18649
  boundary: u,
18650
18650
  rootBoundary: f,
@@ -18667,10 +18667,10 @@ async function lg(e, t) {
18667
18667
  strategy: l
18668
18668
  }) : y);
18669
18669
  return {
18670
- top: (v.top - S.top + m.top) / E.y,
18671
- bottom: (S.bottom - v.bottom + m.bottom) / E.y,
18672
- left: (v.left - S.left + m.left) / E.x,
18673
- right: (S.right - v.right + m.right) / E.x
18670
+ top: (v.top - S.top + p.top) / E.y,
18671
+ bottom: (S.bottom - v.bottom + p.bottom) / E.y,
18672
+ left: (v.left - S.left + p.left) / E.x,
18673
+ right: (S.right - v.right + p.right) / E.x
18674
18674
  };
18675
18675
  }
18676
18676
  const vO = /* @__PURE__ */ new Set(["left", "top"]);
@@ -18683,7 +18683,7 @@ async function bO(e, t) {
18683
18683
  let {
18684
18684
  mainAxis: h,
18685
18685
  crossAxis: d,
18686
- alignmentAxis: m
18686
+ alignmentAxis: p
18687
18687
  } = typeof c == "number" ? {
18688
18688
  mainAxis: c,
18689
18689
  crossAxis: 0,
@@ -18693,7 +18693,7 @@ async function bO(e, t) {
18693
18693
  crossAxis: c.crossAxis || 0,
18694
18694
  alignmentAxis: c.alignmentAxis
18695
18695
  };
18696
- return a && typeof m == "number" && (d = a === "end" ? m * -1 : m), l ? {
18696
+ return a && typeof p == "number" && (d = a === "end" ? p * -1 : p), l ? {
18697
18697
  x: d * f,
18698
18698
  y: h * u
18699
18699
  } : {
@@ -18752,25 +18752,25 @@ const wO = function(e) {
18752
18752
  x: n,
18753
18753
  y: r
18754
18754
  }, f = await lg(t, l), c = wi(bi(i)), h = ag(c);
18755
- let d = u[h], m = u[c];
18755
+ let d = u[h], p = u[c];
18756
18756
  if (o) {
18757
18757
  const g = h === "y" ? "top" : "left", v = h === "y" ? "bottom" : "right", y = d + f[g], w = d - f[v];
18758
18758
  d = Hf(y, d, w);
18759
18759
  }
18760
18760
  if (s) {
18761
- const g = c === "y" ? "top" : "left", v = c === "y" ? "bottom" : "right", y = m + f[g], w = m - f[v];
18762
- m = Hf(y, m, w);
18761
+ const g = c === "y" ? "top" : "left", v = c === "y" ? "bottom" : "right", y = p + f[g], w = p - f[v];
18762
+ p = Hf(y, p, w);
18763
18763
  }
18764
- const p = a.fn({
18764
+ const m = a.fn({
18765
18765
  ...t,
18766
18766
  [h]: d,
18767
- [c]: m
18767
+ [c]: p
18768
18768
  });
18769
18769
  return {
18770
- ...p,
18770
+ ...m,
18771
18771
  data: {
18772
- x: p.x - n,
18773
- y: p.y - r,
18772
+ x: m.x - n,
18773
+ y: m.y - r,
18774
18774
  enabled: {
18775
18775
  [h]: o,
18776
18776
  [c]: s
@@ -18795,16 +18795,16 @@ const wO = function(e) {
18795
18795
  },
18796
18796
  ...u
18797
18797
  } = Zo(e, t), f = await lg(t, u), c = bi(i), h = mu(i), d = wi(i) === "y", {
18798
- width: m,
18799
- height: p
18798
+ width: p,
18799
+ height: m
18800
18800
  } = o.floating;
18801
18801
  let g, v;
18802
18802
  c === "top" || c === "bottom" ? (g = c, v = h === (await (s.isRTL == null ? void 0 : s.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (v = c, g = h === "end" ? "top" : "bottom");
18803
- const y = p - f.top - f.bottom, w = m - f.left - f.right, E = ur(p - f[g], y), S = ur(m - f[v], w), k = !t.middlewareData.shift;
18803
+ const y = m - f.top - f.bottom, w = p - f.left - f.right, E = ur(m - f[g], y), S = ur(p - f[v], w), k = !t.middlewareData.shift;
18804
18804
  let I = E, R = S;
18805
18805
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (R = w), (r = t.middlewareData.shift) != null && r.enabled.y && (I = y), k && !h) {
18806
18806
  const A = wt(f.left, 0), O = wt(f.right, 0), z = wt(f.top, 0), P = wt(f.bottom, 0);
18807
- d ? R = m - 2 * (A !== 0 || O !== 0 ? A + O : wt(f.left, f.right)) : I = p - 2 * (z !== 0 || P !== 0 ? z + P : wt(f.top, f.bottom));
18807
+ d ? R = p - 2 * (A !== 0 || O !== 0 ? A + O : wt(f.left, f.right)) : I = m - 2 * (z !== 0 || P !== 0 ? z + P : wt(f.top, f.bottom));
18808
18808
  }
18809
18809
  await l({
18810
18810
  ...t,
@@ -18812,7 +18812,7 @@ const wO = function(e) {
18812
18812
  availableHeight: I
18813
18813
  });
18814
18814
  const N = await s.getDimensions(a.floating);
18815
- return m !== N.width || p !== N.height ? {
18815
+ return p !== N.width || m !== N.height ? {
18816
18816
  reset: {
18817
18817
  rects: !0
18818
18818
  }
@@ -18982,10 +18982,10 @@ function Ln(e, t, n, r) {
18982
18982
  let l = (i.left + a.x) / s.x, u = (i.top + a.y) / s.y, f = i.width / s.x, c = i.height / s.y;
18983
18983
  if (o) {
18984
18984
  const h = kt(o), d = r && Ut(r) ? kt(r) : r;
18985
- let m = h, p = Xa(m);
18986
- for (; p && r && d !== m; ) {
18987
- const g = Xn(p), v = p.getBoundingClientRect(), y = jt(p), w = v.left + (p.clientLeft + parseFloat(y.paddingLeft)) * g.x, E = v.top + (p.clientTop + parseFloat(y.paddingTop)) * g.y;
18988
- l *= g.x, u *= g.y, f *= g.x, c *= g.y, l += w, u += E, m = kt(p), p = Xa(m);
18985
+ let p = h, m = Xa(p);
18986
+ for (; m && r && d !== p; ) {
18987
+ const g = Xn(m), v = m.getBoundingClientRect(), y = jt(m), w = v.left + (m.clientLeft + parseFloat(y.paddingLeft)) * g.x, E = v.top + (m.clientTop + parseFloat(y.paddingTop)) * g.y;
18988
+ l *= g.x, u *= g.y, f *= g.x, c *= g.y, l += w, u += E, p = kt(m), m = Xa(p);
18989
18989
  }
18990
18990
  }
18991
18991
  return Eo({
@@ -19058,8 +19058,8 @@ function FO(e, t) {
19058
19058
  }
19059
19059
  const u = ts(r);
19060
19060
  if (u <= 0) {
19061
- const f = r.ownerDocument, c = f.body, h = getComputedStyle(c), d = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, m = Math.abs(r.clientWidth - c.clientWidth - d);
19062
- m <= Vf && (o -= m);
19061
+ const f = r.ownerDocument, c = f.body, h = getComputedStyle(c), d = f.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, p = Math.abs(r.clientWidth - c.clientWidth - d);
19062
+ p <= Vf && (o -= p);
19063
19063
  } else u <= Vf && (o += u);
19064
19064
  return {
19065
19065
  width: o,
@@ -19242,8 +19242,8 @@ function YO(e, t) {
19242
19242
  } = u;
19243
19243
  if (a || t(), !h || !d)
19244
19244
  return;
19245
- const m = Bi(c), p = Bi(i.clientWidth - (f + h)), g = Bi(i.clientHeight - (c + d)), v = Bi(f), w = {
19246
- rootMargin: -m + "px " + -p + "px " + -g + "px " + -v + "px",
19245
+ const p = Bi(c), m = Bi(i.clientWidth - (f + h)), g = Bi(i.clientHeight - (c + d)), v = Bi(f), w = {
19246
+ rootMargin: -p + "px " + -m + "px " + -g + "px " + -v + "px",
19247
19247
  threshold: wt(0, ur(1, l)) || 1
19248
19248
  };
19249
19249
  let E = !0;
@@ -19294,17 +19294,17 @@ function KO(e, t, n, r) {
19294
19294
  (w = d) == null || w.observe(t);
19295
19295
  })), n();
19296
19296
  }), u && !l && d.observe(u), d.observe(t));
19297
- let m, p = l ? Ln(e) : null;
19297
+ let p, m = l ? Ln(e) : null;
19298
19298
  l && g();
19299
19299
  function g() {
19300
19300
  const v = Ln(e);
19301
- p && !gg(p, v) && n(), p = v, m = requestAnimationFrame(g);
19301
+ m && !gg(m, v) && n(), m = v, p = requestAnimationFrame(g);
19302
19302
  }
19303
19303
  return n(), () => {
19304
19304
  var v;
19305
19305
  f.forEach((y) => {
19306
19306
  i && y.removeEventListener("scroll", n), o && y.removeEventListener("resize", n);
19307
- }), c == null || c(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(m);
19307
+ }), c == null || c(), (v = d) == null || v.disconnect(), d = null, l && cancelAnimationFrame(p);
19308
19308
  };
19309
19309
  }
19310
19310
  const GO = wO, QO = xO, ZO = SO, JO = (e, t, n) => {
@@ -19388,11 +19388,11 @@ function tR(e) {
19388
19388
  isPositioned: !1
19389
19389
  }), [h, d] = C.useState(r);
19390
19390
  Co(h, r) || d(r);
19391
- const [m, p] = C.useState(null), [g, v] = C.useState(null), y = C.useCallback((B) => {
19392
- B !== k.current && (k.current = B, p(B));
19391
+ const [p, m] = C.useState(null), [g, v] = C.useState(null), y = C.useCallback((B) => {
19392
+ B !== k.current && (k.current = B, m(B));
19393
19393
  }, []), w = C.useCallback((B) => {
19394
19394
  B !== I.current && (I.current = B, v(B));
19395
- }, []), E = o || m, S = s || g, k = C.useRef(null), I = C.useRef(null), R = C.useRef(f), N = l != null, A = Gs(l), O = Gs(i), z = Gs(u), P = C.useCallback(() => {
19395
+ }, []), E = o || p, S = s || g, k = C.useRef(null), I = C.useRef(null), R = C.useRef(f), N = l != null, A = Gs(l), O = Gs(i), z = Gs(u), P = C.useCallback(() => {
19396
19396
  if (!k.current || !I.current)
19397
19397
  return;
19398
19398
  const B = {
@@ -19729,8 +19729,8 @@ function xR(e, t) {
19729
19729
  decrement: !0,
19730
19730
  disabledIndices: s
19731
19731
  }), i && (u - o < a || c < 0)) {
19732
- const h = u % o, d = l % o, m = l - (d - h);
19733
- d === h ? c = l : c = d > h ? m : m - o;
19732
+ const h = u % o, d = l % o, p = l - (d - h);
19733
+ d === h ? c = l : c = d > h ? p : p - o;
19734
19734
  }
19735
19735
  Yr(e, c) && (c = u);
19736
19736
  }
@@ -19888,19 +19888,19 @@ function MR(e, t, n, r) {
19888
19888
  !d || a.has(d) || (a.add(d), d.parentNode && c(d.parentNode));
19889
19889
  }
19890
19890
  function h(d) {
19891
- !d || l.has(d) || Array.prototype.forEach.call(d.children, (m) => {
19892
- if (a.has(m))
19893
- h(m);
19891
+ !d || l.has(d) || Array.prototype.forEach.call(d.children, (p) => {
19892
+ if (a.has(p))
19893
+ h(p);
19894
19894
  else {
19895
- const p = o ? m.getAttribute(o) : null, g = p !== null && p !== "false", v = (Un.get(m) || 0) + 1, y = (f.get(m) || 0) + 1;
19896
- Un.set(m, v), f.set(m, y), u.push(m), v === 1 && g && Hi.add(m), y === 1 && m.setAttribute(i, ""), !g && o && m.setAttribute(o, "true");
19895
+ const m = o ? p.getAttribute(o) : null, g = m !== null && m !== "false", v = (Un.get(p) || 0) + 1, y = (f.get(p) || 0) + 1;
19896
+ Un.set(p, v), f.set(p, y), u.push(p), v === 1 && g && Hi.add(p), y === 1 && p.setAttribute(i, ""), !g && o && p.setAttribute(o, "true");
19897
19897
  }
19898
19898
  });
19899
19899
  }
19900
19900
  return Js++, () => {
19901
19901
  u.forEach((d) => {
19902
- const m = (Un.get(d) || 0) - 1, p = (f.get(d) || 0) - 1;
19903
- Un.set(d, m), f.set(d, p), m || (!Hi.has(d) && o && d.removeAttribute(o), Hi.delete(d)), p || d.removeAttribute(i);
19902
+ const p = (Un.get(d) || 0) - 1, m = (f.get(d) || 0) - 1;
19903
+ Un.set(d, p), f.set(d, m), p || (!Hi.has(d) && o && d.removeAttribute(o), Hi.delete(d)), m || d.removeAttribute(i);
19904
19904
  }), Js--, Js || (Un = /* @__PURE__ */ new WeakMap(), Un = /* @__PURE__ */ new WeakMap(), Hi = /* @__PURE__ */ new WeakSet(), Ui = {});
19905
19905
  };
19906
19906
  }
@@ -19999,17 +19999,17 @@ function _R(e) {
19999
19999
  root: f,
20000
20000
  portalContext: c,
20001
20001
  uniqueId: h
20002
- } = a, d = u ? document.getElementById(u) : null, m = si("portal");
20002
+ } = a, d = u ? document.getElementById(u) : null, p = si("portal");
20003
20003
  if (d) {
20004
- const p = document.createElement("div");
20005
- p.id = h, p.setAttribute(m, ""), d.appendChild(p), i(p);
20004
+ const m = document.createElement("div");
20005
+ m.id = h, m.setAttribute(p, ""), d.appendChild(m), i(m);
20006
20006
  } else {
20007
- let p = f || (c == null ? void 0 : c.portalNode);
20008
- p && !Ot(p) && (p = p.current), p = p || document.body;
20007
+ let m = f || (c == null ? void 0 : c.portalNode);
20008
+ m && !Ot(m) && (m = m.current), m = m || document.body;
20009
20009
  let g = null;
20010
- u && (g = document.createElement("div"), g.id = u, p.appendChild(g));
20010
+ u && (g = document.createElement("div"), g.id = u, m.appendChild(g));
20011
20011
  const v = document.createElement("div");
20012
- v.id = h, v.setAttribute(m, ""), p = g || p, p.appendChild(v), i(v);
20012
+ v.id = h, v.setAttribute(p, ""), m = g || m, m.appendChild(v), i(v);
20013
20013
  }
20014
20014
  }, [a]), r;
20015
20015
  }
@@ -20033,8 +20033,8 @@ function FR(e) {
20033
20033
  return C.useEffect(() => {
20034
20034
  if (!o || !i || s != null && s.modal)
20035
20035
  return;
20036
- function d(m) {
20037
- o && Kr(m) && (m.type === "focusin" ? PR : NR)(o);
20036
+ function d(p) {
20037
+ o && Kr(p) && (p.type === "focusin" ? PR : NR)(o);
20038
20038
  }
20039
20039
  return o.addEventListener("focusin", d, !0), o.addEventListener("focusout", d, !0), () => {
20040
20040
  o.removeEventListener("focusin", d, !0), o.removeEventListener("focusout", d, !0);
@@ -20054,11 +20054,11 @@ function FR(e) {
20054
20054
  ref: l,
20055
20055
  onFocus: (d) => {
20056
20056
  if (Kr(d, o)) {
20057
- var m;
20058
- (m = f.current) == null || m.focus();
20057
+ var p;
20058
+ (p = f.current) == null || p.focus();
20059
20059
  } else {
20060
- const p = Tg() || (s == null ? void 0 : s.refs.domReference.current);
20061
- p == null || p.focus();
20060
+ const m = Tg() || (s == null ? void 0 : s.refs.domReference.current);
20061
+ m == null || m.focus();
20062
20062
  }
20063
20063
  }
20064
20064
  }), h && o && /* @__PURE__ */ C.createElement("span", {
@@ -20069,11 +20069,11 @@ function FR(e) {
20069
20069
  ref: u,
20070
20070
  onFocus: (d) => {
20071
20071
  if (Kr(d, o)) {
20072
- var m;
20073
- (m = c.current) == null || m.focus();
20072
+ var p;
20073
+ (p = c.current) == null || p.focus();
20074
20074
  } else {
20075
- const p = Ag() || (s == null ? void 0 : s.refs.domReference.current);
20076
- p == null || p.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
20075
+ const m = Ag() || (s == null ? void 0 : s.refs.domReference.current);
20076
+ m == null || m.focus(), s != null && s.closeOnFocusOut && (s == null || s.onOpenChange(!1, d.nativeEvent));
20077
20077
  }
20078
20078
  }
20079
20079
  }));
@@ -20102,8 +20102,8 @@ function BR(e) {
20102
20102
  open: c,
20103
20103
  refs: h,
20104
20104
  nodeId: d,
20105
- onOpenChange: m,
20106
- events: p,
20105
+ onOpenChange: p,
20106
+ events: m,
20107
20107
  dataRef: g,
20108
20108
  elements: {
20109
20109
  domReference: v,
@@ -20146,14 +20146,14 @@ function BR(e) {
20146
20146
  return ((K = q.context) == null ? void 0 : K.elements.floating) === V || ((J = q.context) == null ? void 0 : J.elements.domReference) === V;
20147
20147
  })));
20148
20148
  V && Z && !L.current && // Fix React 18 Strict Mode returnFocus due to double rendering.
20149
- V !== P.current && (z.current = !0, m(!1, x));
20149
+ V !== P.current && (z.current = !0, p(!1, x));
20150
20150
  });
20151
20151
  }
20152
20152
  if (y && lr(v))
20153
20153
  return v.addEventListener("focusout", $), v.addEventListener("pointerdown", M), !l && y.addEventListener("focusout", $), () => {
20154
20154
  v.removeEventListener("focusout", $), v.removeEventListener("pointerdown", M), !l && y.removeEventListener("focusout", $);
20155
20155
  };
20156
- }, [r, v, y, l, d, I, R, m, f]), C.useEffect(() => {
20156
+ }, [r, v, y, l, d, I, R, p, f]), C.useEffect(() => {
20157
20157
  var M;
20158
20158
  if (r) return;
20159
20159
  const $ = Array.from((R == null || (M = R.portalNode) == null ? void 0 : M.querySelectorAll("[" + si("portal") + "]")) || []);
@@ -20183,8 +20183,8 @@ function BR(e) {
20183
20183
  const K = q.data.returnFocus;
20184
20184
  typeof K == "object" ? (z.current = !1, M = K.preventScroll) : z.current = !K;
20185
20185
  }
20186
- return p.on("dismiss", Z), () => {
20187
- p.off("dismiss", Z);
20186
+ return m.on("dismiss", Z), () => {
20187
+ m.off("dismiss", Z);
20188
20188
  const q = hn($);
20189
20189
  (pt(y, q) || I && er(I.nodesRef.current, d).some((J) => {
20190
20190
  var ie;
@@ -20199,18 +20199,18 @@ function BR(e) {
20199
20199
  preventScroll: M
20200
20200
  });
20201
20201
  };
20202
- }, [r, y, k, g, h, p, I, d]), Xe(() => {
20202
+ }, [r, y, k, g, h, m, I, d]), Xe(() => {
20203
20203
  if (!(r || !R))
20204
20204
  return R.setFocusManagerState({
20205
20205
  modal: l,
20206
20206
  closeOnFocusOut: f,
20207
20207
  open: c,
20208
- onOpenChange: m,
20208
+ onOpenChange: p,
20209
20209
  refs: h
20210
20210
  }), () => {
20211
20211
  R.setFocusManagerState(null);
20212
20212
  };
20213
- }, [r, R, l, c, m, h, f]), Xe(() => {
20213
+ }, [r, R, l, c, p, h, f]), Xe(() => {
20214
20214
  if (!r && y && typeof MutationObserver == "function" && !N) {
20215
20215
  const M = () => {
20216
20216
  const x = y.getAttribute("tabindex");
@@ -20230,7 +20230,7 @@ function BR(e) {
20230
20230
  function j(M) {
20231
20231
  return r || !u || !l ? null : /* @__PURE__ */ C.createElement($R, {
20232
20232
  ref: M === "start" ? A : O,
20233
- onClick: ($) => m(!1, $.nativeEvent)
20233
+ onClick: ($) => p(!1, $.nativeEvent)
20234
20234
  }, typeof u == "string" ? u : "Dismiss");
20235
20235
  }
20236
20236
  const b = !r && w && !D && (_ || l);
@@ -20360,8 +20360,8 @@ function qR(e, t) {
20360
20360
  escapeKey: c = !0,
20361
20361
  outsidePress: h = !0,
20362
20362
  outsidePressEvent: d = "pointerdown",
20363
- referencePress: m = !1,
20364
- referencePressEvent: p = "pointerdown",
20363
+ referencePress: p = !1,
20364
+ referencePressEvent: m = "pointerdown",
20365
20365
  ancestorScroll: g = !1,
20366
20366
  bubbles: v
20367
20367
  } = t, y = rs(), w = kg() != null, E = yn(typeof h == "function" ? h : () => !1), S = typeof h == "function" ? E : h, k = C.useRef(!1), {
@@ -20467,8 +20467,8 @@ function qR(e, t) {
20467
20467
  }, [S, d]), C.useMemo(() => f ? {
20468
20468
  reference: {
20469
20469
  onKeyDown: N,
20470
- [jR[p]]: (O) => {
20471
- m && (i.emit("dismiss", {
20470
+ [jR[m]]: (O) => {
20471
+ p && (i.emit("dismiss", {
20472
20472
  type: "referencePress",
20473
20473
  data: {
20474
20474
  returnFocus: !1
@@ -20482,7 +20482,7 @@ function qR(e, t) {
20482
20482
  k.current = !0;
20483
20483
  }
20484
20484
  }
20485
- } : {}, [f, i, m, d, p, r, N]);
20485
+ } : {}, [f, i, p, d, m, r, N]);
20486
20486
  }
20487
20487
  let nl;
20488
20488
  process.env.NODE_ENV !== "production" && (nl = /* @__PURE__ */ new Set());
@@ -20506,15 +20506,15 @@ function YR(e) {
20506
20506
  }
20507
20507
  }
20508
20508
  const [l, u] = C.useState(null), f = ((t = e.elements) == null ? void 0 : t.reference) || l, c = tR(e), h = rs(), d = yn((I, R) => {
20509
- I && (p.current.openEvent = R), r == null || r(I, R);
20510
- }), m = C.useRef(null), p = C.useRef({}), g = C.useState(() => CR())[0], v = xu(), y = C.useCallback((I) => {
20509
+ I && (m.current.openEvent = R), r == null || r(I, R);
20510
+ }), p = C.useRef(null), m = C.useRef({}), g = C.useState(() => CR())[0], v = xu(), y = C.useCallback((I) => {
20511
20511
  const R = Ot(I) ? {
20512
20512
  getBoundingClientRect: () => I.getBoundingClientRect(),
20513
20513
  contextElement: I
20514
20514
  } : I;
20515
20515
  c.refs.setReference(R);
20516
20516
  }, [c.refs]), w = C.useCallback((I) => {
20517
- (Ot(I) || I === null) && (m.current = I, u(I)), (Ot(c.refs.reference.current) || c.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
20517
+ (Ot(I) || I === null) && (p.current = I, u(I)), (Ot(c.refs.reference.current) || c.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
20518
20518
  // `null` to support `positionReference` + an unstable `reference`
20519
20519
  // callback ref.
20520
20520
  I !== null && !Ot(I)) && c.refs.setReference(I);
@@ -20522,7 +20522,7 @@ function YR(e) {
20522
20522
  ...c.refs,
20523
20523
  setReference: w,
20524
20524
  setPositionReference: y,
20525
- domReference: m
20525
+ domReference: p
20526
20526
  }), [c.refs, w, y]), S = C.useMemo(() => ({
20527
20527
  ...c.elements,
20528
20528
  domReference: f
@@ -20530,7 +20530,7 @@ function YR(e) {
20530
20530
  ...c,
20531
20531
  refs: E,
20532
20532
  elements: S,
20533
- dataRef: p,
20533
+ dataRef: m,
20534
20534
  nodeId: i,
20535
20535
  floatingId: v,
20536
20536
  events: g,
@@ -20562,7 +20562,7 @@ function Xs(e, t, n) {
20562
20562
  (u = r.get(a)) == null || u.push(l), i[a] = function() {
20563
20563
  for (var f, c = arguments.length, h = new Array(c), d = 0; d < c; d++)
20564
20564
  h[d] = arguments[d];
20565
- return (f = r.get(a)) == null ? void 0 : f.map((m) => m(...h)).find((m) => m !== void 0);
20565
+ return (f = r.get(a)) == null ? void 0 : f.map((p) => p(...h)).find((p) => p !== void 0);
20566
20566
  };
20567
20567
  }
20568
20568
  } else
@@ -20636,8 +20636,8 @@ function QR(e, t) {
20636
20636
  selectedIndex: c = null,
20637
20637
  allowEscape: h = !1,
20638
20638
  loop: d = !1,
20639
- nested: m = !1,
20640
- rtl: p = !1,
20639
+ nested: p = !1,
20640
+ rtl: m = !1,
20641
20641
  virtual: g = !1,
20642
20642
  focusItemOnOpen: v = "auto",
20643
20643
  focusItemOnHover: y = !0,
@@ -20649,10 +20649,10 @@ function QR(e, t) {
20649
20649
  virtualItemRef: R
20650
20650
  } = t;
20651
20651
  process.env.NODE_ENV !== "production" && (h && (d || console.warn(["Floating UI: `useListNavigation` looping must be enabled to allow", "escaping."].join(" ")), g || console.warn(["Floating UI: `useListNavigation` must be virtual to allow", "escaping."].join(" "))), S === "vertical" && k > 1 && console.warn(["Floating UI: In grid list navigation mode (`cols` > 1), the", '`orientation` should be either "horizontal" or "both".'].join(" ")));
20652
- const N = kg(), A = rs(), O = yn(u), z = C.useRef(v), P = C.useRef(c ?? -1), L = C.useRef(null), _ = C.useRef(!0), D = C.useRef(O), U = C.useRef(!!s), B = C.useRef(!1), j = C.useRef(!1), b = gn(E), M = gn(n), $ = gn(I), [x, V] = C.useState(), [Z, q] = C.useState(), K = yn(function(Y, ee, F) {
20652
+ const N = kg(), A = rs(), O = yn(u), z = C.useRef(v), P = C.useRef(c ?? -1), L = C.useRef(null), _ = C.useRef(!0), D = C.useRef(O), U = C.useRef(!!s), B = C.useRef(!1), j = C.useRef(!1), b = gn(E), M = gn(n), $ = gn(I), [x, V] = C.useState(), [Z, q] = C.useState(), K = yn(function(Y, te, F) {
20653
20653
  F === void 0 && (F = !1);
20654
- const te = Y.current[ee.current];
20655
- te && (g ? (V(te.id), A == null || A.events.emit("virtualfocus", te), R && (R.current = te)) : en(te, {
20654
+ const ee = Y.current[te.current];
20655
+ ee && (g ? (V(ee.id), A == null || A.events.emit("virtualfocus", ee), R && (R.current = ee)) : en(ee, {
20656
20656
  preventScroll: !0,
20657
20657
  // Mac Safari does not move the virtual cursor unless the focus call
20658
20658
  // is sync. However, for the very first focus call, we need to wait
@@ -20665,7 +20665,7 @@ function QR(e, t) {
20665
20665
  sync: lO() && ig() ? rd || B.current : !1
20666
20666
  }), requestAnimationFrame(() => {
20667
20667
  const pe = $.current;
20668
- pe && te && (F || !_.current) && (te.scrollIntoView == null || te.scrollIntoView(typeof pe == "boolean" ? {
20668
+ pe && ee && (F || !_.current) && (ee.scrollIntoView == null || ee.scrollIntoView(typeof pe == "boolean" ? {
20669
20669
  block: "nearest",
20670
20670
  inline: "nearest"
20671
20671
  } : pe));
@@ -20686,24 +20686,24 @@ function QR(e, t) {
20686
20686
  return;
20687
20687
  if (U.current && (P.current = -1, K(a, P)), !U.current && z.current && (L.current != null || z.current === !0 && L.current == null)) {
20688
20688
  let Y = 0;
20689
- const ee = () => {
20690
- a.current[0] == null ? (Y < 2 && (Y ? requestAnimationFrame : queueMicrotask)(ee), Y++) : (P.current = L.current == null || ea(L.current, S, p) || m ? Qs(a, b.current) : Qf(a, b.current), L.current = null, O(P.current));
20689
+ const te = () => {
20690
+ a.current[0] == null ? (Y < 2 && (Y ? requestAnimationFrame : queueMicrotask)(te), Y++) : (P.current = L.current == null || ea(L.current, S, m) || p ? Qs(a, b.current) : Qf(a, b.current), L.current = null, O(P.current));
20691
20691
  };
20692
- ee();
20692
+ te();
20693
20693
  }
20694
20694
  } else Yr(a, l) || (P.current = l, K(a, P, j.current), j.current = !1);
20695
- }, [f, n, s, l, c, m, a, S, p, O, K, b]), Xe(() => {
20696
- var Y, ee;
20695
+ }, [f, n, s, l, c, p, a, S, m, O, K, b]), Xe(() => {
20696
+ var Y, te;
20697
20697
  if (!f || s || !A || g || !U.current)
20698
20698
  return;
20699
- const F = A.nodesRef.current, te = (Y = F.find((Q) => Q.id === N)) == null || (ee = Y.context) == null ? void 0 : ee.elements.floating, pe = hn(Ft(s)), Ie = F.some((Q) => Q.context && pt(Q.context.elements.floating, pe));
20700
- te && !Ie && _.current && te.focus({
20699
+ const F = A.nodesRef.current, ee = (Y = F.find((Q) => Q.id === N)) == null || (te = Y.context) == null ? void 0 : te.elements.floating, pe = hn(Ft(s)), Ie = F.some((Q) => Q.context && pt(Q.context.elements.floating, pe));
20700
+ ee && !Ie && _.current && ee.focus({
20701
20701
  preventScroll: !0
20702
20702
  });
20703
20703
  }, [f, s, A, N, g]), Xe(() => {
20704
20704
  if (!f || !A || !g || N) return;
20705
- function Y(ee) {
20706
- q(ee.id), R && (R.current = ee);
20705
+ function Y(te) {
20706
+ q(te.id), R && (R.current = te);
20707
20707
  }
20708
20708
  return A.events.on("virtualfocus", Y), () => {
20709
20709
  A.events.off("virtualfocus", Y);
@@ -20716,21 +20716,21 @@ function QR(e, t) {
20716
20716
  const J = l != null, ie = C.useMemo(() => {
20717
20717
  function Y(F) {
20718
20718
  if (!n) return;
20719
- const te = a.current.indexOf(F);
20720
- te !== -1 && O(te);
20719
+ const ee = a.current.indexOf(F);
20720
+ ee !== -1 && O(ee);
20721
20721
  }
20722
20722
  return {
20723
20723
  onFocus(F) {
20724
20724
  let {
20725
- currentTarget: te
20725
+ currentTarget: ee
20726
20726
  } = F;
20727
- Y(te);
20727
+ Y(ee);
20728
20728
  },
20729
20729
  onClick: (F) => {
20730
20730
  let {
20731
- currentTarget: te
20731
+ currentTarget: ee
20732
20732
  } = F;
20733
- return te.focus({
20733
+ return ee.focus({
20734
20734
  preventScroll: !0
20735
20735
  });
20736
20736
  },
@@ -20738,15 +20738,15 @@ function QR(e, t) {
20738
20738
  ...y && {
20739
20739
  onMouseMove(F) {
20740
20740
  let {
20741
- currentTarget: te
20741
+ currentTarget: ee
20742
20742
  } = F;
20743
- Y(te);
20743
+ Y(ee);
20744
20744
  },
20745
20745
  onPointerLeave(F) {
20746
20746
  let {
20747
- pointerType: te
20747
+ pointerType: ee
20748
20748
  } = F;
20749
- !_.current || te === "touch" || (P.current = -1, K(a, P), O(null), g || en(i.floating.current, {
20749
+ !_.current || ee === "touch" || (P.current = -1, K(a, P), O(null), g || en(i.floating.current, {
20750
20750
  preventScroll: !0
20751
20751
  }));
20752
20752
  }
@@ -20757,10 +20757,10 @@ function QR(e, t) {
20757
20757
  if (!f)
20758
20758
  return {};
20759
20759
  const Y = b.current;
20760
- function ee(Q) {
20760
+ function te(Q) {
20761
20761
  if (_.current = !1, B.current = !0, !M.current && Q.currentTarget === i.floating.current)
20762
20762
  return;
20763
- if (m && od(Q.key, S, p)) {
20763
+ if (p && od(Q.key, S, m)) {
20764
20764
  nt(Q), r(!1, Q.nativeEvent), lr(o) && !g && o.focus();
20765
20765
  return;
20766
20766
  }
@@ -20777,10 +20777,10 @@ function QR(e, t) {
20777
20777
  stopEvent: !0
20778
20778
  }), O(P.current), S === "both")) && id(Q.key, S)) {
20779
20779
  if (nt(Q), n && !g && hn(Q.currentTarget.ownerDocument) === Q.currentTarget) {
20780
- P.current = ea(Q.key, S, p) ? fe : ce, O(P.current);
20780
+ P.current = ea(Q.key, S, m) ? fe : ce, O(P.current);
20781
20781
  return;
20782
20782
  }
20783
- ea(Q.key, S, p) ? d ? P.current = le >= ce ? h && le !== a.current.length ? -1 : fe : it(a, {
20783
+ ea(Q.key, S, m) ? d ? P.current = le >= ce ? h && le !== a.current.length ? -1 : fe : it(a, {
20784
20784
  startingIndex: le,
20785
20785
  disabledIndices: Y
20786
20786
  }) : P.current = Math.min(ce, it(a, {
@@ -20800,7 +20800,7 @@ function QR(e, t) {
20800
20800
  function F(Q) {
20801
20801
  v === "auto" && ng(Q.nativeEvent) && (z.current = !0);
20802
20802
  }
20803
- function te(Q) {
20803
+ function ee(Q) {
20804
20804
  z.current = v, v === "auto" && rg(Q.nativeEvent) && (z.current = !0);
20805
20805
  }
20806
20806
  const pe = g && n && J && {
@@ -20811,7 +20811,7 @@ function QR(e, t) {
20811
20811
  ...pe,
20812
20812
  onKeyDown(Q) {
20813
20813
  _.current = !1;
20814
- const le = Q.key.indexOf("Arrow") === 0, fe = GR(Q.key, S, p), ce = od(Q.key, S, p), Ce = id(Q.key, S), $e = (m ? fe : Ce) || Q.key === "Enter" || Q.key.trim() === "";
20814
+ const le = Q.key.indexOf("Arrow") === 0, fe = GR(Q.key, S, m), ce = od(Q.key, S, m), Ce = id(Q.key, S), $e = (p ? fe : Ce) || Q.key === "Enter" || Q.key.trim() === "";
20815
20815
  if (g && n) {
20816
20816
  const oe = A == null ? void 0 : A.nodesRef.current.find((W) => W.parentId == null), H = A && oe ? OR(A.nodesRef.current, oe.id) : null;
20817
20817
  if (le && H && R) {
@@ -20830,34 +20830,34 @@ function QR(e, t) {
20830
20830
  return;
20831
20831
  }
20832
20832
  }
20833
- return ee(Q);
20833
+ return te(Q);
20834
20834
  }
20835
20835
  if (!(!n && !w && le)) {
20836
- if ($e && (L.current = m && Ce ? null : Q.key), m) {
20836
+ if ($e && (L.current = p && Ce ? null : Q.key), p) {
20837
20837
  fe && (nt(Q), n ? (P.current = Qs(a, Y), O(P.current)) : r(!0, Q.nativeEvent));
20838
20838
  return;
20839
20839
  }
20840
- Ce && (c != null && (P.current = c), nt(Q), !n && w ? r(!0, Q.nativeEvent) : ee(Q), n && O(P.current));
20840
+ Ce && (c != null && (P.current = c), nt(Q), !n && w ? r(!0, Q.nativeEvent) : te(Q), n && O(P.current));
20841
20841
  }
20842
20842
  },
20843
20843
  onFocus() {
20844
20844
  n && O(null);
20845
20845
  },
20846
- onPointerDown: te,
20846
+ onPointerDown: ee,
20847
20847
  onMouseDown: F,
20848
20848
  onClick: F
20849
20849
  },
20850
20850
  floating: {
20851
20851
  "aria-orientation": S === "both" ? void 0 : S,
20852
20852
  ...pe,
20853
- onKeyDown: ee,
20853
+ onKeyDown: te,
20854
20854
  onPointerMove() {
20855
20855
  _.current = !0;
20856
20856
  }
20857
20857
  },
20858
20858
  item: ie
20859
20859
  };
20860
- }, [o, i, x, Z, b, M, a, f, S, p, g, n, J, m, c, w, h, k, d, v, O, r, ie, A, R]);
20860
+ }, [o, i, x, Z, b, M, a, f, S, m, g, n, J, p, c, w, h, k, d, v, O, r, ie, A, R]);
20861
20861
  }
20862
20862
  function ZR(e, t) {
20863
20863
  t === void 0 && (t = {});
@@ -20914,11 +20914,11 @@ function JR(e, t) {
20914
20914
  resetMs: c = 750,
20915
20915
  ignoreKeys: h = [],
20916
20916
  selectedIndex: d = null
20917
- } = t, m = C.useRef(), p = C.useRef(""), g = C.useRef((n = d ?? s) != null ? n : -1), v = C.useRef(null), y = yn(a), w = yn(l), E = gn(f), S = gn(h);
20917
+ } = t, p = C.useRef(), m = C.useRef(""), g = C.useRef((n = d ?? s) != null ? n : -1), v = C.useRef(null), y = yn(a), w = yn(l), E = gn(f), S = gn(h);
20918
20918
  return Xe(() => {
20919
- r && (clearTimeout(m.current), v.current = null, p.current = "");
20919
+ r && (clearTimeout(p.current), v.current = null, m.current = "");
20920
20920
  }, [r]), Xe(() => {
20921
- if (r && p.current === "") {
20921
+ if (r && m.current === "") {
20922
20922
  var k;
20923
20923
  g.current = (k = d ?? s) != null ? k : -1;
20924
20924
  }
@@ -20934,18 +20934,18 @@ function JR(e, t) {
20934
20934
  }
20935
20935
  function R(N) {
20936
20936
  const A = o.current;
20937
- if (p.current.length > 0 && p.current[0] !== " " && (I(A, A, p.current) === -1 ? k(!1) : N.key === " " && nt(N)), A == null || S.current.includes(N.key) || // Character key.
20937
+ if (m.current.length > 0 && m.current[0] !== " " && (I(A, A, m.current) === -1 ? k(!1) : N.key === " " && nt(N)), A == null || S.current.includes(N.key) || // Character key.
20938
20938
  N.key.length !== 1 || // Modifier key.
20939
20939
  N.ctrlKey || N.metaKey || N.altKey)
20940
20940
  return;
20941
20941
  r && N.key !== " " && (nt(N), k(!0)), A.every((L) => {
20942
20942
  var _, D;
20943
20943
  return L ? ((_ = L[0]) == null ? void 0 : _.toLocaleLowerCase()) !== ((D = L[1]) == null ? void 0 : D.toLocaleLowerCase()) : !0;
20944
- }) && p.current === N.key && (p.current = "", g.current = v.current), p.current += N.key, clearTimeout(m.current), m.current = setTimeout(() => {
20945
- p.current = "", g.current = v.current, k(!1);
20944
+ }) && m.current === N.key && (m.current = "", g.current = v.current), m.current += N.key, clearTimeout(p.current), p.current = setTimeout(() => {
20945
+ m.current = "", g.current = v.current, k(!1);
20946
20946
  }, c);
20947
- const z = g.current, P = I(A, [...A.slice((z || 0) + 1), ...A.slice(0, (z || 0) + 1)], p.current);
20948
- P !== -1 ? (y(P), v.current = P) : N.key !== " " && (p.current = "", k(!1));
20947
+ const z = g.current, P = I(A, [...A.slice((z || 0) + 1), ...A.slice(0, (z || 0) + 1)], m.current);
20948
+ P !== -1 ? (y(P), v.current = P) : N.key !== " " && (m.current = "", k(!1));
20949
20949
  }
20950
20950
  return {
20951
20951
  reference: {
@@ -20969,12 +20969,12 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
20969
20969
  } = ge, d = e.reduce(
20970
20970
  (b, M) => (b[M.label] = M.value, b),
20971
20971
  {}
20972
- ), m = d ? Object.keys(d) : [], p = (b) => {
20972
+ ), p = d ? Object.keys(d) : [], m = (b) => {
20973
20973
  a(f !== null && !t ? !1 : b);
20974
20974
  }, { refs: g, floatingStyles: v, context: y } = YR({
20975
20975
  placement: "bottom-start",
20976
20976
  open: s,
20977
- onOpenChange: p,
20977
+ onOpenChange: m,
20978
20978
  whileElementsMounted: KO,
20979
20979
  middleware: [
20980
20980
  nR(5),
@@ -20993,7 +20993,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
20993
20993
  padding: 10
20994
20994
  })
20995
20995
  ]
20996
- }), w = C.useRef([]), E = C.useRef(m), S = C.useRef(!1), k = zR(y, { event: "mousedown" }), I = qR(y), R = ZR(y, { role: "listbox" }), N = QR(y, {
20996
+ }), w = C.useRef([]), E = C.useRef(p), S = C.useRef(!1), k = zR(y, { event: "mousedown" }), I = qR(y), R = ZR(y, { role: "listbox" }), N = QR(y, {
20997
20997
  listRef: w,
20998
20998
  activeIndex: l,
20999
20999
  selectedIndex: f,
@@ -21015,10 +21015,10 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
21015
21015
  A,
21016
21016
  k
21017
21017
  ]), L = (b) => {
21018
- c(b), m[b] !== void 0 && (n == null || n({
21018
+ c(b), p[b] !== void 0 && (n == null || n({
21019
21019
  type: "text",
21020
- text: m[b] ?? "",
21021
- value: d[m[b]] ?? ""
21020
+ text: p[b] ?? "",
21021
+ value: d[p[b]] ?? ""
21022
21022
  })), a(!1);
21023
21023
  };
21024
21024
  return /* @__PURE__ */ ae(Mt, { children: [
@@ -21034,7 +21034,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
21034
21034
  ...(_ = h.button) == null ? void 0 : _.container,
21035
21035
  ...O(),
21036
21036
  children: [
21037
- /* @__PURE__ */ T("span", { ...(D = h.button) == null ? void 0 : D.text, children: f ? m[f] : "Select..." }),
21037
+ /* @__PURE__ */ T("span", { ...(D = h.button) == null ? void 0 : D.text, children: f ? p[f] : "Select..." }),
21038
21038
  /* @__PURE__ */ T(zA, { ...(U = h.button) == null ? void 0 : U.icon })
21039
21039
  ]
21040
21040
  }
@@ -21046,7 +21046,7 @@ const XR = ({ options: e, reusable: t, sendMessage: n, isReadOnly: r }) => {
21046
21046
  className: (j = (B = h.content) == null ? void 0 : B.container) == null ? void 0 : j.className,
21047
21047
  style: { ...v, pointerEvents: "auto" },
21048
21048
  ...z(),
21049
- children: m.map((b, M) => {
21049
+ children: p.map((b, M) => {
21050
21050
  var $;
21051
21051
  return /* @__PURE__ */ T(
21052
21052
  "div",
@@ -21364,12 +21364,12 @@ var gD = function(t) {
21364
21364
  }, yD = function(t) {
21365
21365
  Mg(document.fonts, "loadingdone", t);
21366
21366
  }, vD = ["cacheMeasurements", "maxRows", "minRows", "onChange", "onHeightChange"], bD = function(t, n) {
21367
- var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? fd : s, l = t.onHeightChange, u = l === void 0 ? fd : l, f = oD(t, vD), c = f.value !== void 0, h = C.useRef(null), d = lD(h, n), m = C.useRef(0), p = C.useRef(), g = function() {
21368
- var w = h.current, E = r && p.current ? p.current : mD(w);
21367
+ var r = t.cacheMeasurements, i = t.maxRows, o = t.minRows, s = t.onChange, a = s === void 0 ? fd : s, l = t.onHeightChange, u = l === void 0 ? fd : l, f = oD(t, vD), c = f.value !== void 0, h = C.useRef(null), d = lD(h, n), p = C.useRef(0), m = C.useRef(), g = function() {
21368
+ var w = h.current, E = r && m.current ? m.current : mD(w);
21369
21369
  if (E) {
21370
- p.current = E;
21370
+ m.current = E;
21371
21371
  var S = cD(E, w.value || w.placeholder || "x", o, i), k = S[0], I = S[1];
21372
- m.current !== k && (m.current = k, w.style.setProperty("height", k + "px", "important"), u(k, {
21372
+ p.current !== k && (p.current = k, w.style.setProperty("height", k + "px", "important"), u(k, {
21373
21373
  rowHeight: I
21374
21374
  }));
21375
21375
  }
@@ -21395,7 +21395,7 @@ const xD = ({
21395
21395
  conversationId: f,
21396
21396
  storageKey: c
21397
21397
  }) => {
21398
- const d = Lm(f || "default", c)((E) => E.messageHistory), [m, p] = Te(""), [g, v] = Te(!1), { input: y } = ge.composer;
21398
+ const d = Lm(f || "default", c)((E) => E.messageHistory), [p, m] = Te(""), [g, v] = Te(!1), { input: y } = ge.composer;
21399
21399
  return /* @__PURE__ */ T(
21400
21400
  wD,
21401
21401
  {
@@ -21425,14 +21425,14 @@ const xD = ({
21425
21425
  if (!(S.isComposing || S.keyCode === 229) && (r.length === 0 && v(!1), E.key !== "ArrowUp" && E.key !== "ArrowDown" && E.key !== "ArrowLeft" && E.key !== "ArrowRight" && v(!0), E.key === "Enter" && E.shiftKey ? (E.preventDefault(), o(`${r}
21426
21426
  `)) : E.key === "Enter" && (E.preventDefault(), a()), !(r.length > 0 && g))) {
21427
21427
  if (E.key === "ArrowUp") {
21428
- E.preventDefault(), i === -1 && r.trim() !== "" && p(r);
21428
+ E.preventDefault(), i === -1 && r.trim() !== "" && m(r);
21429
21429
  const k = Math.min(i + 1, d.length - 1);
21430
21430
  s(k), o(d[k] ?? "");
21431
21431
  }
21432
21432
  if (E.key === "ArrowDown") {
21433
21433
  E.preventDefault();
21434
21434
  const k = Math.max(i - 1, -1);
21435
- o(i === -1 ? r.trim() : k === -1 ? m : d[k] ?? ""), s(k);
21435
+ o(i === -1 ? r.trim() : k === -1 ? p : d[k] ?? ""), s(k);
21436
21436
  }
21437
21437
  }
21438
21438
  }
@@ -21478,8 +21478,8 @@ const xD = ({
21478
21478
  storageKey: c,
21479
21479
  conversationId: h,
21480
21480
  children: d,
21481
- ...m
21482
- }, p) => {
21481
+ ...p
21482
+ }, m) => {
21483
21483
  const { composer: g } = ge, v = n || r || !s, [y, w] = Te(""), [E, S] = Te(-1), k = _m(h || "default"), I = Lm(h || "default", c), R = k((D) => D.files), N = k((D) => D.setFiles), A = k((D) => D.deleteFile), O = k((D) => D.uploadFile), z = I((D) => D.addMessageToHistory), P = R.filter((D) => D.status === "uploaded"), L = !!y.trim() || P.length > 0, _ = () => {
21484
21484
  if (o || !L) return;
21485
21485
  const D = P.map((B) => {
@@ -21510,8 +21510,8 @@ const xD = ({
21510
21510
  "data-disabled": v,
21511
21511
  "data-waiting": o,
21512
21512
  className: Er(g.container.className, e),
21513
- ref: p,
21514
- ...m,
21513
+ ref: m,
21514
+ ...p,
21515
21515
  children: [
21516
21516
  d,
21517
21517
  R.length > 0 && /* @__PURE__ */ T("div", { ...g == null ? void 0 : g.fileContainer, children: R.map((D) => /* @__PURE__ */ T(iD, { ...D, removeFile: A }, D.name)) }),
@@ -21600,7 +21600,7 @@ var dd;
21600
21600
  function ED() {
21601
21601
  if (dd) return Re;
21602
21602
  dd = 1;
21603
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
21603
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
21604
21604
  function w(S) {
21605
21605
  if (typeof S == "object" && S !== null) {
21606
21606
  var k = S.$$typeof;
@@ -21618,7 +21618,7 @@ function ED() {
21618
21618
  switch (S = S && S.$$typeof, S) {
21619
21619
  case a:
21620
21620
  case f:
21621
- case m:
21621
+ case p:
21622
21622
  case d:
21623
21623
  case s:
21624
21624
  return S;
@@ -21634,7 +21634,7 @@ function ED() {
21634
21634
  function E(S) {
21635
21635
  return w(S) === u;
21636
21636
  }
21637
- return Re.AsyncMode = l, Re.ConcurrentMode = u, Re.ContextConsumer = a, Re.ContextProvider = s, Re.Element = t, Re.ForwardRef = f, Re.Fragment = r, Re.Lazy = m, Re.Memo = d, Re.Portal = n, Re.Profiler = o, Re.StrictMode = i, Re.Suspense = c, Re.isAsyncMode = function(S) {
21637
+ return Re.AsyncMode = l, Re.ConcurrentMode = u, Re.ContextConsumer = a, Re.ContextProvider = s, Re.Element = t, Re.ForwardRef = f, Re.Fragment = r, Re.Lazy = p, Re.Memo = d, Re.Portal = n, Re.Profiler = o, Re.StrictMode = i, Re.Suspense = c, Re.isAsyncMode = function(S) {
21638
21638
  return E(S) || w(S) === l;
21639
21639
  }, Re.isConcurrentMode = E, Re.isContextConsumer = function(S) {
21640
21640
  return w(S) === a;
@@ -21647,7 +21647,7 @@ function ED() {
21647
21647
  }, Re.isFragment = function(S) {
21648
21648
  return w(S) === r;
21649
21649
  }, Re.isLazy = function(S) {
21650
- return w(S) === m;
21650
+ return w(S) === p;
21651
21651
  }, Re.isMemo = function(S) {
21652
21652
  return w(S) === d;
21653
21653
  }, Re.isPortal = function(S) {
@@ -21659,7 +21659,7 @@ function ED() {
21659
21659
  }, Re.isSuspense = function(S) {
21660
21660
  return w(S) === c;
21661
21661
  }, Re.isValidElementType = function(S) {
21662
- return typeof S == "string" || typeof S == "function" || S === r || S === u || S === o || S === i || S === c || S === h || typeof S == "object" && S !== null && (S.$$typeof === m || S.$$typeof === d || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === g || S.$$typeof === v || S.$$typeof === y || S.$$typeof === p);
21662
+ return typeof S == "string" || typeof S == "function" || S === r || S === u || S === o || S === i || S === c || S === h || typeof S == "object" && S !== null && (S.$$typeof === p || S.$$typeof === d || S.$$typeof === s || S.$$typeof === a || S.$$typeof === f || S.$$typeof === g || S.$$typeof === v || S.$$typeof === y || S.$$typeof === m);
21663
21663
  }, Re.typeOf = w, Re;
21664
21664
  }
21665
21665
  var De = {};
@@ -21674,15 +21674,15 @@ var De = {};
21674
21674
  var hd;
21675
21675
  function CD() {
21676
21676
  return hd || (hd = 1, process.env.NODE_ENV !== "production" && function() {
21677
- var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, m = e ? Symbol.for("react.lazy") : 60116, p = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
21677
+ var e = typeof Symbol == "function" && Symbol.for, t = e ? Symbol.for("react.element") : 60103, n = e ? Symbol.for("react.portal") : 60106, r = e ? Symbol.for("react.fragment") : 60107, i = e ? Symbol.for("react.strict_mode") : 60108, o = e ? Symbol.for("react.profiler") : 60114, s = e ? Symbol.for("react.provider") : 60109, a = e ? Symbol.for("react.context") : 60110, l = e ? Symbol.for("react.async_mode") : 60111, u = e ? Symbol.for("react.concurrent_mode") : 60111, f = e ? Symbol.for("react.forward_ref") : 60112, c = e ? Symbol.for("react.suspense") : 60113, h = e ? Symbol.for("react.suspense_list") : 60120, d = e ? Symbol.for("react.memo") : 60115, p = e ? Symbol.for("react.lazy") : 60116, m = e ? Symbol.for("react.block") : 60121, g = e ? Symbol.for("react.fundamental") : 60117, v = e ? Symbol.for("react.responder") : 60118, y = e ? Symbol.for("react.scope") : 60119;
21678
21678
  function w(F) {
21679
21679
  return typeof F == "string" || typeof F == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
21680
- F === r || F === u || F === o || F === i || F === c || F === h || typeof F == "object" && F !== null && (F.$$typeof === m || F.$$typeof === d || F.$$typeof === s || F.$$typeof === a || F.$$typeof === f || F.$$typeof === g || F.$$typeof === v || F.$$typeof === y || F.$$typeof === p);
21680
+ F === r || F === u || F === o || F === i || F === c || F === h || typeof F == "object" && F !== null && (F.$$typeof === p || F.$$typeof === d || F.$$typeof === s || F.$$typeof === a || F.$$typeof === f || F.$$typeof === g || F.$$typeof === v || F.$$typeof === y || F.$$typeof === m);
21681
21681
  }
21682
21682
  function E(F) {
21683
21683
  if (typeof F == "object" && F !== null) {
21684
- var te = F.$$typeof;
21685
- switch (te) {
21684
+ var ee = F.$$typeof;
21685
+ switch (ee) {
21686
21686
  case t:
21687
21687
  var pe = F.type;
21688
21688
  switch (pe) {
@@ -21698,20 +21698,20 @@ function CD() {
21698
21698
  switch (Ie) {
21699
21699
  case a:
21700
21700
  case f:
21701
- case m:
21701
+ case p:
21702
21702
  case d:
21703
21703
  case s:
21704
21704
  return Ie;
21705
21705
  default:
21706
- return te;
21706
+ return ee;
21707
21707
  }
21708
21708
  }
21709
21709
  case n:
21710
- return te;
21710
+ return ee;
21711
21711
  }
21712
21712
  }
21713
21713
  }
21714
- var S = l, k = u, I = a, R = s, N = t, A = f, O = r, z = m, P = d, L = n, _ = o, D = i, U = c, B = !1;
21714
+ var S = l, k = u, I = a, R = s, N = t, A = f, O = r, z = p, P = d, L = n, _ = o, D = i, U = c, B = !1;
21715
21715
  function j(F) {
21716
21716
  return B || (B = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), b(F) || E(F) === l;
21717
21717
  }
@@ -21734,7 +21734,7 @@ function CD() {
21734
21734
  return E(F) === r;
21735
21735
  }
21736
21736
  function q(F) {
21737
- return E(F) === m;
21737
+ return E(F) === p;
21738
21738
  }
21739
21739
  function K(F) {
21740
21740
  return E(F) === d;
@@ -21748,10 +21748,10 @@ function CD() {
21748
21748
  function Y(F) {
21749
21749
  return E(F) === i;
21750
21750
  }
21751
- function ee(F) {
21751
+ function te(F) {
21752
21752
  return E(F) === c;
21753
21753
  }
21754
- De.AsyncMode = S, De.ConcurrentMode = k, De.ContextConsumer = I, De.ContextProvider = R, De.Element = N, De.ForwardRef = A, De.Fragment = O, De.Lazy = z, De.Memo = P, De.Portal = L, De.Profiler = _, De.StrictMode = D, De.Suspense = U, De.isAsyncMode = j, De.isConcurrentMode = b, De.isContextConsumer = M, De.isContextProvider = $, De.isElement = x, De.isForwardRef = V, De.isFragment = Z, De.isLazy = q, De.isMemo = K, De.isPortal = J, De.isProfiler = ie, De.isStrictMode = Y, De.isSuspense = ee, De.isValidElementType = w, De.typeOf = E;
21754
+ De.AsyncMode = S, De.ConcurrentMode = k, De.ContextConsumer = I, De.ContextProvider = R, De.Element = N, De.ForwardRef = A, De.Fragment = O, De.Lazy = z, De.Memo = P, De.Portal = L, De.Profiler = _, De.StrictMode = D, De.Suspense = U, De.isAsyncMode = j, De.isConcurrentMode = b, De.isContextConsumer = M, De.isContextProvider = $, De.isElement = x, De.isForwardRef = V, De.isFragment = Z, De.isLazy = q, De.isMemo = K, De.isPortal = J, De.isProfiler = ie, De.isStrictMode = Y, De.isSuspense = te, De.isValidElementType = w, De.typeOf = E;
21755
21755
  }()), De;
21756
21756
  }
21757
21757
  var pd;
@@ -21850,8 +21850,8 @@ function TD() {
21850
21850
  throw h.name = "Invariant Violation", h;
21851
21851
  }
21852
21852
  c = o[f](s, f, l, a, null, t);
21853
- } catch (m) {
21854
- c = m;
21853
+ } catch (p) {
21854
+ c = p;
21855
21855
  }
21856
21856
  if (c && !(c instanceof Error) && e(
21857
21857
  (l || "React class") + ": type specification of " + a + " `" + f + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof c + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
@@ -21914,32 +21914,32 @@ function ID() {
21914
21914
  shape: z,
21915
21915
  exact: P
21916
21916
  };
21917
- function m(b, M) {
21917
+ function p(b, M) {
21918
21918
  return b === M ? b !== 0 || 1 / b === 1 / M : b !== b && M !== M;
21919
21919
  }
21920
- function p(b, M) {
21920
+ function m(b, M) {
21921
21921
  this.message = b, this.data = M && typeof M == "object" ? M : {}, this.stack = "";
21922
21922
  }
21923
- p.prototype = Error.prototype;
21923
+ m.prototype = Error.prototype;
21924
21924
  function g(b) {
21925
21925
  if (process.env.NODE_ENV !== "production")
21926
21926
  var M = {}, $ = 0;
21927
- function x(Z, q, K, J, ie, Y, ee) {
21928
- if (J = J || h, Y = Y || K, ee !== n) {
21927
+ function x(Z, q, K, J, ie, Y, te) {
21928
+ if (J = J || h, Y = Y || K, te !== n) {
21929
21929
  if (l) {
21930
21930
  var F = new Error(
21931
21931
  "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
21932
21932
  );
21933
21933
  throw F.name = "Invariant Violation", F;
21934
21934
  } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
21935
- var te = J + ":" + K;
21936
- !M[te] && // Avoid spamming the console because they are often not actionable except for lib authors
21935
+ var ee = J + ":" + K;
21936
+ !M[ee] && // Avoid spamming the console because they are often not actionable except for lib authors
21937
21937
  $ < 3 && (o(
21938
21938
  "You are manually calling a React.PropTypes validation function for the `" + Y + "` prop on `" + J + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
21939
- ), M[te] = !0, $++);
21939
+ ), M[ee] = !0, $++);
21940
21940
  }
21941
21941
  }
21942
- return q[K] == null ? Z ? q[K] === null ? new p("The " + ie + " `" + Y + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new p("The " + ie + " `" + Y + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : b(q, K, J, ie, Y);
21942
+ return q[K] == null ? Z ? q[K] === null ? new m("The " + ie + " `" + Y + "` is marked as required " + ("in `" + J + "`, but its value is `null`.")) : new m("The " + ie + " `" + Y + "` is marked as required in " + ("`" + J + "`, but its value is `undefined`.")) : null : b(q, K, J, ie, Y);
21943
21943
  }
21944
21944
  var V = x.bind(null, !1);
21945
21945
  return V.isRequired = x.bind(null, !0), V;
@@ -21949,7 +21949,7 @@ function ID() {
21949
21949
  var J = $[x], ie = D(J);
21950
21950
  if (ie !== b) {
21951
21951
  var Y = U(J);
21952
- return new p(
21952
+ return new m(
21953
21953
  "Invalid " + Z + " `" + q + "` of type " + ("`" + Y + "` supplied to `" + V + "`, expected ") + ("`" + b + "`."),
21954
21954
  { expectedType: b }
21955
21955
  );
@@ -21964,11 +21964,11 @@ function ID() {
21964
21964
  function w(b) {
21965
21965
  function M($, x, V, Z, q) {
21966
21966
  if (typeof b != "function")
21967
- return new p("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
21967
+ return new m("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside arrayOf.");
21968
21968
  var K = $[x];
21969
21969
  if (!Array.isArray(K)) {
21970
21970
  var J = D(K);
21971
- return new p("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an array."));
21971
+ return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an array."));
21972
21972
  }
21973
21973
  for (var ie = 0; ie < K.length; ie++) {
21974
21974
  var Y = b(K, ie, V, Z, q + "[" + ie + "]", n);
@@ -21984,7 +21984,7 @@ function ID() {
21984
21984
  var q = M[$];
21985
21985
  if (!a(q)) {
21986
21986
  var K = D(q);
21987
- return new p("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement."));
21987
+ return new m("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement."));
21988
21988
  }
21989
21989
  return null;
21990
21990
  }
@@ -21995,7 +21995,7 @@ function ID() {
21995
21995
  var q = M[$];
21996
21996
  if (!e.isValidElementType(q)) {
21997
21997
  var K = D(q);
21998
- return new p("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement type."));
21998
+ return new m("Invalid " + V + " `" + Z + "` of type " + ("`" + K + "` supplied to `" + x + "`, expected a single ReactElement type."));
21999
21999
  }
22000
22000
  return null;
22001
22001
  }
@@ -22005,7 +22005,7 @@ function ID() {
22005
22005
  function M($, x, V, Z, q) {
22006
22006
  if (!($[x] instanceof b)) {
22007
22007
  var K = b.name || h, J = j($[x]);
22008
- return new p("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected ") + ("instance of `" + K + "`."));
22008
+ return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected ") + ("instance of `" + K + "`."));
22009
22009
  }
22010
22010
  return null;
22011
22011
  }
@@ -22018,23 +22018,23 @@ function ID() {
22018
22018
  ) : o("Invalid argument supplied to oneOf, expected an array.")), s;
22019
22019
  function M($, x, V, Z, q) {
22020
22020
  for (var K = $[x], J = 0; J < b.length; J++)
22021
- if (m(K, b[J]))
22021
+ if (p(K, b[J]))
22022
22022
  return null;
22023
- var ie = JSON.stringify(b, function(ee, F) {
22024
- var te = U(F);
22025
- return te === "symbol" ? String(F) : F;
22023
+ var ie = JSON.stringify(b, function(te, F) {
22024
+ var ee = U(F);
22025
+ return ee === "symbol" ? String(F) : F;
22026
22026
  });
22027
- return new p("Invalid " + Z + " `" + q + "` of value `" + String(K) + "` " + ("supplied to `" + V + "`, expected one of " + ie + "."));
22027
+ return new m("Invalid " + Z + " `" + q + "` of value `" + String(K) + "` " + ("supplied to `" + V + "`, expected one of " + ie + "."));
22028
22028
  }
22029
22029
  return g(M);
22030
22030
  }
22031
22031
  function R(b) {
22032
22032
  function M($, x, V, Z, q) {
22033
22033
  if (typeof b != "function")
22034
- return new p("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
22034
+ return new m("Property `" + q + "` of component `" + V + "` has invalid PropType notation inside objectOf.");
22035
22035
  var K = $[x], J = D(K);
22036
22036
  if (J !== "object")
22037
- return new p("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an object."));
22037
+ return new m("Invalid " + Z + " `" + q + "` of type " + ("`" + J + "` supplied to `" + V + "`, expected an object."));
22038
22038
  for (var ie in K)
22039
22039
  if (r(K, ie)) {
22040
22040
  var Y = b(K, ie, V, Z, q + "." + ie, n);
@@ -22057,24 +22057,24 @@ function ID() {
22057
22057
  }
22058
22058
  function x(V, Z, q, K, J) {
22059
22059
  for (var ie = [], Y = 0; Y < b.length; Y++) {
22060
- var ee = b[Y], F = ee(V, Z, q, K, J, n);
22060
+ var te = b[Y], F = te(V, Z, q, K, J, n);
22061
22061
  if (F == null)
22062
22062
  return null;
22063
22063
  F.data && r(F.data, "expectedType") && ie.push(F.data.expectedType);
22064
22064
  }
22065
- var te = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
22066
- return new p("Invalid " + K + " `" + J + "` supplied to " + ("`" + q + "`" + te + "."));
22065
+ var ee = ie.length > 0 ? ", expected one of type [" + ie.join(", ") + "]" : "";
22066
+ return new m("Invalid " + K + " `" + J + "` supplied to " + ("`" + q + "`" + ee + "."));
22067
22067
  }
22068
22068
  return g(x);
22069
22069
  }
22070
22070
  function A() {
22071
22071
  function b(M, $, x, V, Z) {
22072
- return L(M[$]) ? null : new p("Invalid " + V + " `" + Z + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
22072
+ return L(M[$]) ? null : new m("Invalid " + V + " `" + Z + "` supplied to " + ("`" + x + "`, expected a ReactNode."));
22073
22073
  }
22074
22074
  return g(b);
22075
22075
  }
22076
22076
  function O(b, M, $, x, V) {
22077
- return new p(
22077
+ return new m(
22078
22078
  (b || "React class") + ": " + M + " type `" + $ + "." + x + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + V + "`."
22079
22079
  );
22080
22080
  }
@@ -22082,14 +22082,14 @@ function ID() {
22082
22082
  function M($, x, V, Z, q) {
22083
22083
  var K = $[x], J = D(K);
22084
22084
  if (J !== "object")
22085
- return new p("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
22085
+ return new m("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
22086
22086
  for (var ie in b) {
22087
22087
  var Y = b[ie];
22088
22088
  if (typeof Y != "function")
22089
22089
  return O(V, Z, q, ie, U(Y));
22090
- var ee = Y(K, ie, V, Z, q + "." + ie, n);
22091
- if (ee)
22092
- return ee;
22090
+ var te = Y(K, ie, V, Z, q + "." + ie, n);
22091
+ if (te)
22092
+ return te;
22093
22093
  }
22094
22094
  return null;
22095
22095
  }
@@ -22099,18 +22099,18 @@ function ID() {
22099
22099
  function M($, x, V, Z, q) {
22100
22100
  var K = $[x], J = D(K);
22101
22101
  if (J !== "object")
22102
- return new p("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
22102
+ return new m("Invalid " + Z + " `" + q + "` of type `" + J + "` " + ("supplied to `" + V + "`, expected `object`."));
22103
22103
  var ie = t({}, $[x], b);
22104
22104
  for (var Y in ie) {
22105
- var ee = b[Y];
22106
- if (r(b, Y) && typeof ee != "function")
22107
- return O(V, Z, q, Y, U(ee));
22108
- if (!ee)
22109
- return new p(
22105
+ var te = b[Y];
22106
+ if (r(b, Y) && typeof te != "function")
22107
+ return O(V, Z, q, Y, U(te));
22108
+ if (!te)
22109
+ return new m(
22110
22110
  "Invalid " + Z + " `" + q + "` key `" + Y + "` supplied to `" + V + "`.\nBad object: " + JSON.stringify($[x], null, " ") + `
22111
22111
  Valid keys: ` + JSON.stringify(Object.keys(b), null, " ")
22112
22112
  );
22113
- var F = ee(K, Y, V, Z, q + "." + Y, n);
22113
+ var F = te(K, Y, V, Z, q + "." + Y, n);
22114
22114
  if (F)
22115
22115
  return F;
22116
22116
  }
@@ -22647,8 +22647,8 @@ function On(e) {
22647
22647
  function iM(e) {
22648
22648
  var t = e.files, n = e.accept, r = e.minSize, i = e.maxSize, o = e.multiple, s = e.maxFiles, a = e.validator;
22649
22649
  return !o && t.length > 1 || o && s >= 1 && t.length > s ? !1 : t.every(function(l) {
22650
- var u = Bg(l, n), f = ai(u, 1), c = f[0], h = zg(l, r, i), d = ai(h, 1), m = d[0], p = a ? a(l) : null;
22651
- return c && m && !p;
22650
+ var u = Bg(l, n), f = ai(u, 1), c = f[0], h = zg(l, r, i), d = ai(h, 1), p = d[0], m = a ? a(l) : null;
22651
+ return c && p && !m;
22652
22652
  });
22653
22653
  }
22654
22654
  function Ro(e) {
@@ -23028,15 +23028,15 @@ var ul = {
23028
23028
  fileRejections: []
23029
23029
  };
23030
23030
  function Wg() {
23031
- var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ze(ze({}, Vg), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, c = t.onDragOver, h = t.onDrop, d = t.onDropAccepted, m = t.onDropRejected, p = t.onFileDialogCancel, g = t.onFileDialogOpen, v = t.useFsAccessApi, y = t.autoFocus, w = t.preventDropOnDocument, E = t.noClick, S = t.noKeyboard, k = t.noDrag, I = t.noDragEventsBubbling, R = t.onError, N = t.validator, A = ct(function() {
23031
+ var e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, t = ze(ze({}, Vg), e), n = t.accept, r = t.disabled, i = t.getFilesFromEvent, o = t.maxSize, s = t.minSize, a = t.multiple, l = t.maxFiles, u = t.onDragEnter, f = t.onDragLeave, c = t.onDragOver, h = t.onDrop, d = t.onDropAccepted, p = t.onDropRejected, m = t.onFileDialogCancel, g = t.onFileDialogOpen, v = t.useFsAccessApi, y = t.autoFocus, w = t.preventDropOnDocument, E = t.noClick, S = t.noKeyboard, k = t.noDrag, I = t.noDragEventsBubbling, R = t.onError, N = t.validator, A = ct(function() {
23032
23032
  return cM(n);
23033
23033
  }, [n]), O = ct(function() {
23034
23034
  return uM(n);
23035
23035
  }, [n]), z = ct(function() {
23036
23036
  return typeof g == "function" ? g : Rd;
23037
23037
  }, [g]), P = ct(function() {
23038
- return typeof p == "function" ? p : Rd;
23039
- }, [p]), L = Se(null), _ = Se(null), D = xv(CM, ul), U = la(D, 2), B = U[0], j = U[1], b = B.isFocused, M = B.isFileDialogActive, $ = Se(typeof window < "u" && window.isSecureContext && v && lM()), x = function() {
23038
+ return typeof m == "function" ? m : Rd;
23039
+ }, [m]), L = Se(null), _ = Se(null), D = xv(CM, ul), U = la(D, 2), B = U[0], j = U[1], b = B.isFocused, M = B.isFileDialogActive, $ = Se(typeof window < "u" && window.isSecureContext && v && lM()), x = function() {
23040
23040
  !$.current && M && setTimeout(function() {
23041
23041
  if (_.current) {
23042
23042
  var oe = _.current.files;
@@ -23130,8 +23130,8 @@ function Wg() {
23130
23130
  acceptedFiles: H,
23131
23131
  fileRejections: W,
23132
23132
  type: "setFiles"
23133
- }), h && h(H, W, oe), W.length > 0 && m && m(W, oe), H.length > 0 && d && d(H, oe);
23134
- }, [j, a, A, s, o, l, h, d, m, N]), ee = Me(function(X) {
23133
+ }), h && h(H, W, oe), W.length > 0 && p && p(W, oe), H.length > 0 && d && d(H, oe);
23134
+ }, [j, a, A, s, o, l, h, d, p, N]), te = Me(function(X) {
23135
23135
  X.preventDefault(), X.persist(), Ce(X), V.current = [], qi(X) && Promise.resolve(i(X)).then(function(oe) {
23136
23136
  Ro(X) && !I || Y(oe, X);
23137
23137
  }).catch(function(oe) {
@@ -23164,7 +23164,7 @@ function Wg() {
23164
23164
  _.current && (j({
23165
23165
  type: "openDialog"
23166
23166
  }), z(), _.current.value = null, _.current.click());
23167
- }, [j, z, P, v, Y, q, O, a]), te = Me(function(X) {
23167
+ }, [j, z, P, v, Y, q, O, a]), ee = Me(function(X) {
23168
23168
  !L.current || !L.current.isEqualNode(X.target) || (X.key === " " || X.key === "Enter" || X.keyCode === 32 || X.keyCode === 13) && (X.preventDefault(), F());
23169
23169
  }, [L, F]), pe = Me(function() {
23170
23170
  j({
@@ -23188,20 +23188,20 @@ function Wg() {
23188
23188
  return function() {
23189
23189
  var X = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, oe = X.refKey, H = oe === void 0 ? "ref" : oe, W = X.role, re = X.onKeyDown, se = X.onFocus, de = X.onBlur, qe = X.onClick, Ge = X.onDragEnter, et = X.onDragOver, Et = X.onDragLeave, Nt = X.onDrop, Qe = Do(X, mM);
23190
23190
  return ze(ze(ll({
23191
- onKeyDown: fe(Wt(re, te)),
23191
+ onKeyDown: fe(Wt(re, ee)),
23192
23192
  onFocus: fe(Wt(se, pe)),
23193
23193
  onBlur: fe(Wt(de, Ie)),
23194
23194
  onClick: le(Wt(qe, Q)),
23195
23195
  onDragEnter: ce(Wt(Ge, K)),
23196
23196
  onDragOver: ce(Wt(et, J)),
23197
23197
  onDragLeave: ce(Wt(Et, ie)),
23198
- onDrop: ce(Wt(Nt, ee)),
23198
+ onDrop: ce(Wt(Nt, te)),
23199
23199
  role: typeof W == "string" && W !== "" ? W : "presentation"
23200
23200
  }, H, L), !r && !S ? {
23201
23201
  tabIndex: 0
23202
23202
  } : {}), Qe);
23203
23203
  };
23204
- }, [L, te, pe, Ie, Q, K, J, ie, ee, S, k, r]), Oe = Me(function(X) {
23204
+ }, [L, ee, pe, Ie, Q, K, J, ie, te, S, k, r]), Oe = Me(function(X) {
23205
23205
  X.stopPropagation();
23206
23206
  }, []), je = ct(function() {
23207
23207
  return function() {
@@ -23212,13 +23212,13 @@ function Wg() {
23212
23212
  style: {
23213
23213
  display: "none"
23214
23214
  },
23215
- onChange: le(Wt(W, ee)),
23215
+ onChange: le(Wt(W, te)),
23216
23216
  onClick: le(Wt(re, Oe)),
23217
23217
  tabIndex: -1
23218
23218
  }, H, _);
23219
23219
  return ze(ze({}, de), se);
23220
23220
  };
23221
- }, [_, n, a, ee, r]);
23221
+ }, [_, n, a, te, r]);
23222
23222
  return ze(ze({}, B), {}, {
23223
23223
  isFocused: b && !r,
23224
23224
  getRootProps: $e,
@@ -23275,7 +23275,7 @@ const AM = ({ children: e }) => {
23275
23275
  onCancel: c,
23276
23276
  initialValue: h,
23277
23277
  Content: d
23278
- }) => new Promise((m, p) => {
23278
+ }) => new Promise((p, m) => {
23279
23279
  t.current = h, r({
23280
23280
  open: !0,
23281
23281
  title: s,
@@ -23292,10 +23292,10 @@ const AM = ({ children: e }) => {
23292
23292
  }
23293
23293
  ) : null,
23294
23294
  onConfirm: () => {
23295
- f == null || f(), m(t.current), o();
23295
+ f == null || f(), p(t.current), o();
23296
23296
  },
23297
23297
  onCancel: () => {
23298
- c == null || c(), p(), o();
23298
+ c == null || c(), m(), o();
23299
23299
  }
23300
23300
  });
23301
23301
  }), o = () => {
@@ -23338,19 +23338,20 @@ const AM = ({ children: e }) => {
23338
23338
  themeMode: r,
23339
23339
  variant: i,
23340
23340
  headerVariant: o,
23341
- additionalStylesheetUrl: s
23341
+ additionalStylesheet: s,
23342
+ additionalStylesheetUrl: a
23342
23343
  }) => {
23343
23344
  ct(() => {
23344
23345
  t && TM(t, ["100", "200", "300", "400", "500", "600", "700", "800"]);
23345
23346
  }, [t]);
23346
- const a = ct(
23347
+ const l = ct(
23347
23348
  () => bw({ color: e, fontFamily: t, radius: n, themeMode: r, variant: i, headerVariant: o }),
23348
23349
  [e, t, n, r, i, o]
23349
23350
  );
23350
23351
  return /* @__PURE__ */ ae(Mt, { children: [
23351
- s && /* @__PURE__ */ T("link", { rel: "stylesheet", href: s }),
23352
+ a && /* @__PURE__ */ T("link", { rel: "stylesheet", href: a }),
23352
23353
  /* @__PURE__ */ ae("style", { children: [
23353
- a,
23354
+ l,
23354
23355
  `
23355
23356
  .bpWebchat {
23356
23357
  border-radius: ${0.375 * (n ?? 1)}rem;
@@ -23359,7 +23360,8 @@ const AM = ({ children: e }) => {
23359
23360
  border-radius: ${0.125 * (n ?? 1)}rem;
23360
23361
  }
23361
23362
  `
23362
- ] })
23363
+ ] }),
23364
+ s && /* @__PURE__ */ T("style", { children: s })
23363
23365
  ] });
23364
23366
  };
23365
23367
  let Yi;
@@ -23779,15 +23781,15 @@ var zM = Object.defineProperty, HM = (e, t, n) => t in e ? zM(e, t, { enumerable
23779
23781
  let v = await h[g]();
23780
23782
  return g === "json" && (a.responseValidator && await a.responseValidator(v), a.responseTransformer && (v = await a.responseTransformer(v))), { data: v, ...d };
23781
23783
  }
23782
- let m = await h.text();
23784
+ let p = await h.text();
23783
23785
  try {
23784
- m = JSON.parse(m);
23786
+ p = JSON.parse(p);
23785
23787
  } catch {
23786
23788
  }
23787
- let p = m;
23788
- for (let g of i.error._fns) p = await g(m, h, f, a);
23789
- if (p = p || {}, a.throwOnError) throw p;
23790
- return { error: p, ...d };
23789
+ let m = p;
23790
+ for (let g of i.error._fns) m = await g(p, h, f, a);
23791
+ if (m = m || {}, a.throwOnError) throw m;
23792
+ return { error: m, ...d };
23791
23793
  };
23792
23794
  return { buildUrl: Md, connect: (s) => o({ ...s, method: "CONNECT" }), delete: (s) => o({ ...s, method: "DELETE" }), get: (s) => o({ ...s, method: "GET" }), getConfig: n, head: (s) => o({ ...s, method: "HEAD" }), interceptors: i, options: (s) => o({ ...s, method: "OPTIONS" }), patch: (s) => o({ ...s, method: "PATCH" }), post: (s) => o({ ...s, method: "POST" }), put: (s) => o({ ...s, method: "PUT" }), request: o, setConfig: r, trace: (s) => o({ ...s, method: "TRACE" }) };
23793
23795
  }, rN = nN, iN = iy;
@@ -23919,31 +23921,31 @@ function IN(e) {
23919
23921
  );
23920
23922
  const { onEvent: t = ca, onError: n = ca, onRetry: r = ca, onComment: i } = e;
23921
23923
  let o = "", s = !0, a, l = "", u = "";
23922
- function f(p) {
23923
- const g = s ? p.replace(/^\xEF\xBB\xBF/, "") : p, [v, y] = ON(`${o}${g}`);
23924
+ function f(m) {
23925
+ const g = s ? m.replace(/^\xEF\xBB\xBF/, "") : m, [v, y] = ON(`${o}${g}`);
23924
23926
  for (const w of v)
23925
23927
  c(w);
23926
23928
  o = y, s = !1;
23927
23929
  }
23928
- function c(p) {
23929
- if (p === "") {
23930
+ function c(m) {
23931
+ if (m === "") {
23930
23932
  d();
23931
23933
  return;
23932
23934
  }
23933
- if (p.startsWith(":")) {
23934
- i && i(p.slice(p.startsWith(": ") ? 2 : 1));
23935
+ if (m.startsWith(":")) {
23936
+ i && i(m.slice(m.startsWith(": ") ? 2 : 1));
23935
23937
  return;
23936
23938
  }
23937
- const g = p.indexOf(":");
23939
+ const g = m.indexOf(":");
23938
23940
  if (g !== -1) {
23939
- const v = p.slice(0, g), y = p[g + 1] === " " ? 2 : 1, w = p.slice(g + y);
23940
- h(v, w, p);
23941
+ const v = m.slice(0, g), y = m[g + 1] === " " ? 2 : 1, w = m.slice(g + y);
23942
+ h(v, w, m);
23941
23943
  return;
23942
23944
  }
23943
- h(p, "", p);
23945
+ h(m, "", m);
23944
23946
  }
23945
- function h(p, g, v) {
23946
- switch (p) {
23947
+ function h(m, g, v) {
23948
+ switch (m) {
23947
23949
  case "event":
23948
23950
  u = g;
23949
23951
  break;
@@ -23966,8 +23968,8 @@ function IN(e) {
23966
23968
  default:
23967
23969
  n(
23968
23970
  new Pd(
23969
- `Unknown field "${p.length > 20 ? `${p.slice(0, 20)}…` : p}"`,
23970
- { type: "unknown-field", field: p, value: g, line: v }
23971
+ `Unknown field "${m.length > 20 ? `${m.slice(0, 20)}…` : m}"`,
23972
+ { type: "unknown-field", field: m, value: g, line: v }
23971
23973
  )
23972
23974
  );
23973
23975
  break;
@@ -23983,10 +23985,10 @@ function IN(e) {
23983
23985
  `) ? l.slice(0, -1) : l
23984
23986
  }), a = void 0, l = "", u = "";
23985
23987
  }
23986
- function m(p = {}) {
23987
- o && p.consume && c(o), s = !0, a = void 0, l = "", u = "", o = "";
23988
+ function p(m = {}) {
23989
+ o && m.consume && c(o), s = !0, a = void 0, l = "", u = "", o = "";
23988
23990
  }
23989
- return { feed: f, reset: m };
23991
+ return { feed: f, reset: p };
23990
23992
  }
23991
23993
  function ON(e) {
23992
23994
  const t = [];
@@ -24096,11 +24098,11 @@ class uo extends EventTarget {
24096
24098
  return;
24097
24099
  }
24098
24100
  const h = new TextDecoder(), d = a.getReader();
24099
- let m = !0;
24101
+ let p = !0;
24100
24102
  do {
24101
- const { done: p, value: g } = await d.read();
24102
- g && ye(this, Kn).feed(h.decode(g, { stream: !p })), p && (m = !1, ye(this, Kn).reset(), Xt(this, _t, gl).call(this));
24103
- } while (m);
24103
+ const { done: m, value: g } = await d.read();
24104
+ g && ye(this, Kn).feed(h.decode(g, { stream: !m })), m && (p = !1, ye(this, Kn).reset(), Xt(this, _t, gl).call(this));
24105
+ } while (p);
24104
24106
  }), Ze(this, hl, (o) => {
24105
24107
  Be(this, pn, void 0), !(o.name === "AbortError" || o.type === "aborted") && Xt(this, _t, gl).call(this, cl(o));
24106
24108
  }), Ze(this, pl, (o) => {
@@ -24305,21 +24307,21 @@ const sy = () => {
24305
24307
  }) => {
24306
24308
  let o = 0, s = null;
24307
24309
  const a = sy();
24308
- let l = e;
24309
- const u = () => {
24310
+ let l = e, u = t;
24311
+ const f = () => {
24310
24312
  s && s.close();
24311
- const f = `${`${r || Fe.getConfig().baseUrl}/${n}`}/initialize${l ? `?conversationId=${l}` : ""}`, c = {
24313
+ const c = `${`${r || Fe.getConfig().baseUrl}/${n}`}/initialize${l ? `?conversationId=${l}` : ""}`, h = {
24312
24314
  ...i ? { "x-admin-secret": i } : {},
24313
- ...t ? { "x-user-key": t } : {}
24315
+ ...u ? { "x-user-key": u } : {}
24314
24316
  };
24315
- s = cy(f, c), s.addEventListener("open", () => a.emit("open")), s.addEventListener("error", (h) => {
24316
- o < ay ? (o++, setTimeout(() => u(), ly)) : a.emit("error", h);
24317
- }), s.addEventListener("message", (h) => {
24318
- const d = uy(h.data);
24319
- d.type === "init" && (l = d.data.conversation.id ?? l), a.emit(d.type, d.data);
24317
+ s = cy(c, h), s.addEventListener("open", () => a.emit("open")), s.addEventListener("error", (d) => {
24318
+ o < ay ? (o++, setTimeout(() => f(), ly)) : a.emit("error", d);
24319
+ }), s.addEventListener("message", (d) => {
24320
+ const p = uy(d.data);
24321
+ p.type === "init" && (l = p.data.conversation.id ?? l, u = p.data.user.userKey ?? u), a.emit(p.type, p.data);
24320
24322
  });
24321
24323
  };
24322
- return u(), a.on;
24324
+ return f(), a.on;
24323
24325
  }, _N = ({
24324
24326
  userKey: e,
24325
24327
  clientId: t,
@@ -24366,11 +24368,11 @@ const sy = () => {
24366
24368
  let u = 0, f = null;
24367
24369
  const c = sy(), h = () => {
24368
24370
  f && f.close();
24369
- const d = `${s}/conversations/${l}/listen`, m = i == null ? void 0 : i.eventSource;
24370
- f = m ? m({ url: d, headers: o }) : cy(d, o), f.addEventListener("open", () => c.emit("open")), f.addEventListener("error", (p) => {
24371
- u < ay ? (u++, setTimeout(() => h(), ly)) : c.emit("error", p);
24372
- }), f.addEventListener("message", (p) => {
24373
- const g = uy(p.data);
24371
+ const d = `${s}/conversations/${l}/listen`, p = i == null ? void 0 : i.eventSource;
24372
+ f = p ? p({ url: d, headers: o }) : cy(d, o), f.addEventListener("open", () => c.emit("open")), f.addEventListener("error", (m) => {
24373
+ u < ay ? (u++, setTimeout(() => h(), ly)) : c.emit("error", m);
24374
+ }), f.addEventListener("message", (m) => {
24375
+ const g = uy(m.data);
24374
24376
  c.emit(g.type, g.data);
24375
24377
  });
24376
24378
  };
@@ -24408,8 +24410,8 @@ const sy = () => {
24408
24410
  conversationId: o,
24409
24411
  adminSecret: n
24410
24412
  }), u = l("init", ({ conversation: f, messages: c, participants: h, user: d }) => {
24411
- const m = lu(f.id), p = c.reverse().map(li).filter(Boolean);
24412
- m.getState().setMessages(p), uu(f.id).getState().setParticipants(h);
24413
+ const p = lu(f.id), m = c.reverse().map(li).filter(Boolean);
24414
+ p.getState().setMessages(m), uu(f.id).getState().setParticipants(h);
24413
24415
  const v = _N({
24414
24416
  clientId: t,
24415
24417
  apiUrl: e,
@@ -24515,7 +24517,7 @@ function py({
24515
24517
  playNotificationSound: s,
24516
24518
  ...a
24517
24519
  }) {
24518
- const l = cI(n, r), u = l((O) => O.conversationId), f = l((O) => O.user), c = l((O) => O.setConversationId), h = l((O) => O.setUser), { state: d, setState: m } = $d(), { state: p, setState: g } = $d(), v = ct(() => mh(), []), [y, w] = Te("connecting"), [E, S] = Te(void 0), [k, I] = Te(void 0), R = Se(null), N = zw(
24520
+ const l = cI(n, r), u = l((O) => O.conversationId), f = l((O) => O.user), c = l((O) => O.setConversationId), h = l((O) => O.setUser), { state: d, setState: p } = $d(), { state: m, setState: g } = $d(), v = ct(() => mh(), []), [y, w] = Te("connecting"), [E, S] = Te(void 0), [k, I] = Te(void 0), R = Se(null), N = zw(
24519
24521
  a.conversationId,
24520
24522
  a.userToken,
24521
24523
  u,
@@ -24538,7 +24540,7 @@ function py({
24538
24540
  }, [a.conversationId, a.userToken, t, e]);
24539
24541
  const A = async ({ conversationId: O, userToken: z }) => {
24540
24542
  var M;
24541
- (M = R.current) == null || M.call(R), I(void 0), m(!1), g(!1), w("connecting");
24543
+ (M = R.current) == null || M.call(R), I(void 0), p(!1), g(!1), w("connecting");
24542
24544
  const { on: P, conversation: L, user: _, client: D, onCleanup: U } = await FN({
24543
24545
  apiUrl: e,
24544
24546
  clientId: t,
@@ -24559,7 +24561,7 @@ function py({
24559
24561
  }),
24560
24562
  P("message_created", ($) => {
24561
24563
  const x = li($);
24562
- B.getState().saveMessage(x), _.id !== x.authorId && (s == null || s(), m(!1), g(!1), v.emit("isTyping", { isTyping: !1, timeout: 0 })), v.emit("message", x);
24564
+ B.getState().saveMessage(x), _.id !== x.authorId && (s == null || s(), p(!1), g(!1), v.emit("isTyping", { isTyping: !1, timeout: 0 })), v.emit("message", x);
24563
24565
  }),
24564
24566
  P("message_updated", ($) => {
24565
24567
  const x = li($);
@@ -24572,10 +24574,10 @@ function py({
24572
24574
  });
24573
24575
  }),
24574
24576
  P("typing_stopped", () => {
24575
- m(!1), g(!1);
24577
+ p(!1), g(!1);
24576
24578
  }),
24577
24579
  P("typing_started", () => {
24578
- m(!0, 5e3), g(!0, 5e3), v.emit("isTyping", { isTyping: !0, timeout: 5e3 });
24580
+ p(!0, 5e3), g(!0, 5e3), v.emit("isTyping", { isTyping: !0, timeout: 5e3 });
24579
24581
  }),
24580
24582
  P("participant_added", ($) => {
24581
24583
  j.getState().addParticipant($.participant), v.emit("participantAdded", $.participant);
@@ -24598,7 +24600,7 @@ function py({
24598
24600
  activeConversationId: u,
24599
24601
  userCredentials: f,
24600
24602
  isTyping: d,
24601
- isAwaitingResponse: p,
24603
+ isAwaitingResponse: m,
24602
24604
  openConversation: A,
24603
24605
  setAwaitingResponse: g,
24604
24606
  emitter: v,
@@ -24631,8 +24633,8 @@ function UN({
24631
24633
  activeConversationId: c,
24632
24634
  userCredentials: h,
24633
24635
  isTyping: d,
24634
- isAwaitingResponse: m,
24635
- openConversation: p,
24636
+ isAwaitingResponse: p,
24637
+ openConversation: m,
24636
24638
  setClientState: g,
24637
24639
  setError: v,
24638
24640
  setAwaitingResponse: y,
@@ -24655,8 +24657,8 @@ function UN({
24655
24657
  error: f,
24656
24658
  setError: v,
24657
24659
  isTyping: d,
24658
- isAwaitingResponse: m,
24659
- openConversation: p,
24660
+ isAwaitingResponse: p,
24661
+ openConversation: m,
24660
24662
  setAwaitingResponse: y,
24661
24663
  emitter: w
24662
24664
  };
@@ -24675,20 +24677,20 @@ const gy = ({
24675
24677
  _e(() => {
24676
24678
  l(d);
24677
24679
  }, [d, l]);
24678
- const m = Me(
24680
+ const p = Me(
24679
24681
  (g) => {
24680
24682
  n && (g.forEach((v) => f(v, n)), h(0));
24681
24683
  },
24682
24684
  [f, n]
24683
- ), { getRootProps: p } = Wg({
24685
+ ), { getRootProps: m } = Wg({
24684
24686
  noClick: !0,
24685
24687
  noKeyboard: !0,
24686
- onDrop: m,
24688
+ onDrop: p,
24687
24689
  disabled: !(r && n),
24688
24690
  onDragEnter: () => h((g) => g + 1),
24689
24691
  onDragLeave: () => h((g) => g - 1)
24690
24692
  });
24691
- return /* @__PURE__ */ ae("div", { ...s, className: Er(a.className, t), ...p(), ref: d, children: [
24693
+ return /* @__PURE__ */ ae("div", { ...s, className: Er(a.className, t), ...m(), ref: d, children: [
24692
24694
  /* @__PURE__ */ ae("div", { "data-hover": c > 0, ...a.dropzone.overlay, children: [
24693
24695
  "Drop files to upload",
24694
24696
  /* @__PURE__ */ T(YA, { style: { width: "50px" } })
@@ -24731,14 +24733,14 @@ function yy(e, t = []) {
24731
24733
  n = [...n, s];
24732
24734
  const u = (c) => {
24733
24735
  var v;
24734
- const { scope: h, children: d, ...m } = c, p = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => m, Object.values(m));
24735
- return /* @__PURE__ */ T(p.Provider, { value: g, children: d });
24736
+ const { scope: h, children: d, ...p } = c, m = ((v = h == null ? void 0 : h[e]) == null ? void 0 : v[l]) || a, g = C.useMemo(() => p, Object.values(p));
24737
+ return /* @__PURE__ */ T(m.Provider, { value: g, children: d });
24736
24738
  };
24737
24739
  u.displayName = o + "Provider";
24738
24740
  function f(c, h) {
24739
- var p;
24740
- const d = ((p = h == null ? void 0 : h[e]) == null ? void 0 : p[l]) || a, m = C.useContext(d);
24741
- if (m) return m;
24741
+ var m;
24742
+ const d = ((m = h == null ? void 0 : h[e]) == null ? void 0 : m[l]) || a, p = C.useContext(d);
24743
+ if (p) return p;
24742
24744
  if (s !== void 0) return s;
24743
24745
  throw new Error(`\`${c}\` must be used within \`${o}\``);
24744
24746
  }
@@ -24930,8 +24932,8 @@ function r2(e) {
24930
24932
  if (t) {
24931
24933
  let u;
24932
24934
  const f = t.ownerDocument.defaultView ?? window, c = (d) => {
24933
- const p = Gi(r.current).includes(CSS.escape(d.animationName));
24934
- if (d.target === t && p && (l("ANIMATION_END"), !i.current)) {
24935
+ const m = Gi(r.current).includes(CSS.escape(d.animationName));
24936
+ if (d.target === t && m && (l("ANIMATION_END"), !i.current)) {
24935
24937
  const g = t.style.animationFillMode;
24936
24938
  t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
24937
24939
  t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
@@ -25033,7 +25035,7 @@ var Ou = "CollapsibleContent", ky = C.forwardRef(
25033
25035
  );
25034
25036
  ky.displayName = Ou;
25035
25037
  var u2 = C.forwardRef((e, t) => {
25036
- const { __scopeCollapsible: n, present: r, children: i, ...o } = e, s = Iu(Ou, n), [a, l] = C.useState(r), u = C.useRef(null), f = xn(t, u), c = C.useRef(0), h = c.current, d = C.useRef(0), m = d.current, p = s.open || a, g = C.useRef(p), v = C.useRef(void 0);
25038
+ const { __scopeCollapsible: n, present: r, children: i, ...o } = e, s = Iu(Ou, n), [a, l] = C.useState(r), u = C.useRef(null), f = xn(t, u), c = C.useRef(0), h = c.current, d = C.useRef(0), p = d.current, m = s.open || a, g = C.useRef(m), v = C.useRef(void 0);
25037
25039
  return C.useEffect(() => {
25038
25040
  const y = requestAnimationFrame(() => g.current = !1);
25039
25041
  return () => cancelAnimationFrame(y);
@@ -25053,15 +25055,15 @@ var u2 = C.forwardRef((e, t) => {
25053
25055
  "data-state": Ru(s.open),
25054
25056
  "data-disabled": s.disabled ? "" : void 0,
25055
25057
  id: s.contentId,
25056
- hidden: !p,
25058
+ hidden: !m,
25057
25059
  ...o,
25058
25060
  ref: f,
25059
25061
  style: {
25060
25062
  "--radix-collapsible-content-height": h ? `${h}px` : void 0,
25061
- "--radix-collapsible-content-width": m ? `${m}px` : void 0,
25063
+ "--radix-collapsible-content-width": p ? `${p}px` : void 0,
25062
25064
  ...e.style
25063
25065
  },
25064
- children: p && i
25066
+ children: m && i
25065
25067
  }
25066
25068
  );
25067
25069
  });
@@ -25127,7 +25129,7 @@ const Ey = ({ restartConversation: e, ...t }) => {
25127
25129
  }
25128
25130
  );
25129
25131
  }, Pr = ({ icon: e, title: t, link: n, ...r }) => {
25130
- var s, a, l, u, f, c, h, d, m, p, g, v;
25132
+ var s, a, l, u, f, c, h, d, p, m, g, v;
25131
25133
  const { header: i } = ge, o = e ?? GA;
25132
25134
  return t ? n ? /* @__PURE__ */ ae(
25133
25135
  "a",
@@ -25143,7 +25145,7 @@ const Ey = ({ restartConversation: e, ...t }) => {
25143
25145
  ]
25144
25146
  }
25145
25147
  ) : /* @__PURE__ */ ae("div", { ...r, ...(d = (h = i.expandedContent) == null ? void 0 : h.descriptionItems) == null ? void 0 : d.container, children: [
25146
- /* @__PURE__ */ T(o, { ...(p = (m = i.expandedContent) == null ? void 0 : m.descriptionItems) == null ? void 0 : p.icon }),
25148
+ /* @__PURE__ */ T(o, { ...(m = (p = i.expandedContent) == null ? void 0 : p.descriptionItems) == null ? void 0 : m.icon }),
25147
25149
  /* @__PURE__ */ T("p", { ...(v = (g = i.expandedContent) == null ? void 0 : g.descriptionItems) == null ? void 0 : v.text, children: t })
25148
25150
  ] }) : null;
25149
25151
  }, h2 = ({ soundOn: e, toggleSound: t }) => {
@@ -25176,14 +25178,14 @@ const Ey = ({ restartConversation: e, ...t }) => {
25176
25178
  clientId: l,
25177
25179
  ...u
25178
25180
  }) => {
25179
- var p, g, v, y, w, E, S, k, I, R, N, A, O, z, P, L, _, D, U, B, j, b, M, $;
25180
- const { header: f } = ge, [c, h] = Te(e), d = !!((p = n.email) != null && p.title) || !!((g = n.phone) != null && g.title) || !!((v = n.website) != null && v.title) || !!((y = n.termsOfService) != null && y.link) || !!((w = n.privacyPolicy) != null && w.link), m = d && !o;
25181
+ var m, g, v, y, w, E, S, k, I, R, N, A, O, z, P, L, _, D, U, B, j, b, M, $;
25182
+ const { header: f } = ge, [c, h] = Te(e), d = !!((m = n.email) != null && m.title) || !!((g = n.phone) != null && g.title) || !!((v = n.website) != null && v.title) || !!((y = n.termsOfService) != null && y.link) || !!((w = n.privacyPolicy) != null && w.link), p = d && !o;
25181
25183
  return /* @__PURE__ */ ae(
25182
25184
  c2,
25183
25185
  {
25184
- open: m ? c : !1,
25185
- onOpenChange: m ? h : void 0,
25186
- "data-disabled": m ? void 0 : "",
25186
+ open: p ? c : !1,
25187
+ onOpenChange: p ? h : void 0,
25188
+ "data-disabled": p ? void 0 : "",
25187
25189
  ...f.container,
25188
25190
  ...u,
25189
25191
  children: [
@@ -25274,8 +25276,8 @@ const Bd = _o(
25274
25276
  feedback: c,
25275
25277
  timestamp: h,
25276
25278
  metadata: d,
25277
- sendMessage: m,
25278
- addMessageFeedback: p,
25279
+ sendMessage: p,
25280
+ addMessageFeedback: m,
25279
25281
  showAvatar: g
25280
25282
  }, v) => {
25281
25283
  const [y, w] = Te([]), {
@@ -25306,8 +25308,8 @@ const Bd = _o(
25306
25308
  messageId: o,
25307
25309
  status: a,
25308
25310
  metadata: d,
25309
- sendMessage: m,
25310
- addMessageFeedback: p
25311
+ sendMessage: p,
25312
+ addMessageFeedback: m
25311
25313
  },
25312
25314
  renderers: l
25313
25315
  }
@@ -25359,7 +25361,7 @@ function v2(e, t = {}) {
25359
25361
  }, []), d = Me(() => {
25360
25362
  const y = o.current;
25361
25363
  y && (a.current = !0, i(!0), h(y));
25362
- }, [h]), m = Me(() => {
25364
+ }, [h]), p = Me(() => {
25363
25365
  const y = o.current;
25364
25366
  if (!y) return;
25365
25367
  if (l.current) {
@@ -25373,16 +25375,16 @@ function v2(e, t = {}) {
25373
25375
  s.current = y.scrollTop;
25374
25376
  const w = c(y);
25375
25377
  a.current = w, i(w);
25376
- }, [c]), p = Me((y) => {
25378
+ }, [c]), m = Me((y) => {
25377
25379
  y.deltaY < 0 && (cancelAnimationFrame(f.current), u.current = !1, a.current = !1, i(!1));
25378
25380
  }, []), g = Me(() => {
25379
25381
  u.current && (cancelAnimationFrame(f.current), u.current = !1);
25380
25382
  }, []), v = Me(
25381
25383
  (y) => {
25382
25384
  const w = o.current;
25383
- w && (w.removeEventListener("scroll", m), w.removeEventListener("wheel", p), w.removeEventListener("touchstart", g)), o.current = y, y && (y.addEventListener("scroll", m, { passive: !0 }), y.addEventListener("wheel", p, { passive: !0 }), y.addEventListener("touchstart", g, { passive: !0 }), s.current = y.scrollTop);
25385
+ w && (w.removeEventListener("scroll", p), w.removeEventListener("wheel", m), w.removeEventListener("touchstart", g)), o.current = y, y && (y.addEventListener("scroll", p, { passive: !0 }), y.addEventListener("wheel", m, { passive: !0 }), y.addEventListener("touchstart", g, { passive: !0 }), s.current = y.scrollTop);
25384
25386
  },
25385
- [m, p, g]
25387
+ [p, m, g]
25386
25388
  );
25387
25389
  return hr(() => {
25388
25390
  const y = o.current;
@@ -25444,8 +25446,8 @@ const b2 = {
25444
25446
  showDateSystemMessage: c = !0,
25445
25447
  showMessageStatus: h = !0,
25446
25448
  showIncomingMessageAvatar: d = !0,
25447
- showOutgoingMessageAvatar: m = !1,
25448
- ...p
25449
+ showOutgoingMessageAvatar: p = !1,
25450
+ ...m
25449
25451
  }) => {
25450
25452
  var A;
25451
25453
  const { messageList: g } = ge, v = ct(() => c ? Qv(t) : t, [t]), y = ct(() => {
@@ -25460,9 +25462,9 @@ const b2 = {
25460
25462
  if (O.direction === "incoming")
25461
25463
  return d;
25462
25464
  if (O.direction === "outgoing")
25463
- return m;
25465
+ return p;
25464
25466
  };
25465
- return /* @__PURE__ */ ae("div", { ...p, className: Er(g.container.className, e), children: [
25467
+ return /* @__PURE__ */ ae("div", { ...m, className: Er(g.container.className, e), children: [
25466
25468
  /* @__PURE__ */ T("div", { ref: k, style: b2, children: /* @__PURE__ */ ae("div", { className: g.viewPort.className, children: [
25467
25469
  r && /* @__PURE__ */ T("span", { ...g.headerMessage, children: r }),
25468
25470
  f && /* @__PURE__ */ T(m2, { botAvatar: o, botDescription: s, botName: a }),
@@ -25648,8 +25650,8 @@ function Ry({ client: e, conversationId: t, user: n }) {
25648
25650
  },
25649
25651
  body: a
25650
25652
  });
25651
- const d = f.split("/").shift() ?? "", m = kw(d) ? d : "file";
25652
- return { fileUrl: c, name: s, type: m, fileId: h };
25653
+ const d = f.split("/").shift() ?? "", p = kw(d) ? d : "file";
25654
+ return { fileUrl: c, name: s, type: p, fileId: h };
25653
25655
  }
25654
25656
  };
25655
25657
  }
@@ -25671,32 +25673,32 @@ function Dy({
25671
25673
  n
25672
25674
  ), new Error("Cannot send message: client, conversationId, or userId not available");
25673
25675
  r == null || r(!0);
25674
- const m = Mu(), p = {
25675
- id: m,
25676
+ const p = Mu(), m = {
25677
+ id: p,
25676
25678
  createdAt: (/* @__PURE__ */ new Date()).toISOString(),
25677
25679
  userId: n,
25678
25680
  conversationId: t,
25679
25681
  payload: d,
25680
25682
  metadata: {
25681
- clientMessageId: m,
25683
+ clientMessageId: p,
25682
25684
  delivered: !1
25683
25685
  }
25684
- }, g = li(p);
25686
+ }, g = li(m);
25685
25687
  g.status = "pending", s(g), await e.createMessage({
25686
25688
  conversationId: t,
25687
25689
  payload: d,
25688
- metadata: { clientMessageId: m }
25690
+ metadata: { clientMessageId: p }
25689
25691
  });
25690
25692
  },
25691
25693
  setMessages: (d) => {
25692
- const m = d.map((p) => li(p)).filter(Boolean);
25693
- l(m);
25694
+ const p = d.map((m) => li(m)).filter(Boolean);
25695
+ l(p);
25694
25696
  },
25695
25697
  clearMessages: u,
25696
- saveMessageFeedback: async (d, m) => {
25698
+ saveMessageFeedback: async (d, p) => {
25697
25699
  if (!e)
25698
25700
  throw new Error("Cannot update feedback: client not available");
25699
- a(d, { feedback: m.value }), await e.addMessageFeedback({ messageId: d, ...m });
25701
+ a(d, { feedback: p.value }), await e.addMessageFeedback({ messageId: d, ...p });
25700
25702
  }
25701
25703
  };
25702
25704
  }
@@ -25760,8 +25762,8 @@ function jL({
25760
25762
  clientState: c,
25761
25763
  httpClient: h,
25762
25764
  error: d,
25763
- activeConversationId: m,
25764
- userCredentials: p,
25765
+ activeConversationId: p,
25766
+ userCredentials: m,
25765
25767
  isTyping: g,
25766
25768
  isAwaitingResponse: v,
25767
25769
  openConversation: y,
@@ -25781,21 +25783,21 @@ function jL({
25781
25783
  playNotificationSound: f
25782
25784
  }), { messages: I, sendMessage: R, saveMessageFeedback: N } = Dy({
25783
25785
  client: h,
25784
- conversationId: m,
25785
- userId: p == null ? void 0 : p.userId,
25786
+ conversationId: p,
25787
+ userId: m == null ? void 0 : m.userId,
25786
25788
  setAwaitingResponse: w
25787
25789
  }), { participants: A } = My({
25788
25790
  client: h,
25789
- conversationId: m
25791
+ conversationId: p
25790
25792
  }), { uploadFile: O } = Ry({
25791
25793
  client: h,
25792
- conversationId: m,
25793
- user: p
25794
+ conversationId: p,
25795
+ user: m
25794
25796
  }), { sendEvent: z } = Oy({
25795
25797
  client: h,
25796
- conversationId: m
25798
+ conversationId: p
25797
25799
  });
25798
- if (c !== "connected" || !p || !m || !h)
25800
+ if (c !== "connected" || !m || !p || !h)
25799
25801
  return {
25800
25802
  clientState: c,
25801
25803
  on: E.on,
@@ -25803,7 +25805,7 @@ function jL({
25803
25805
  messages: [],
25804
25806
  conversationId: void 0,
25805
25807
  newConversation: (U) => {
25806
- y({ conversationId: U, userToken: p == null ? void 0 : p.userToken }).catch((B) => {
25808
+ y({ conversationId: U, userToken: m == null ? void 0 : m.userToken }).catch((B) => {
25807
25809
  E.emit("error", B);
25808
25810
  });
25809
25811
  },
@@ -25816,9 +25818,9 @@ function jL({
25816
25818
  disableSendButton: v
25817
25819
  };
25818
25820
  const P = {
25819
- userId: p == null ? void 0 : p.userId,
25820
- conversationId: m,
25821
- userToken: p == null ? void 0 : p.userToken,
25821
+ userId: m == null ? void 0 : m.userId,
25822
+ conversationId: p,
25823
+ userToken: m == null ? void 0 : m.userToken,
25822
25824
  openConversation: y,
25823
25825
  setClientState: k,
25824
25826
  setError: S,
@@ -25852,13 +25854,13 @@ function jL({
25852
25854
  on: E.on,
25853
25855
  client: _,
25854
25856
  messages: I,
25855
- conversationId: m,
25857
+ conversationId: p,
25856
25858
  newConversation: (U) => {
25857
- y({ conversationId: U, userToken: p.userToken }).catch((B) => {
25859
+ y({ conversationId: U, userToken: m.userToken }).catch((B) => {
25858
25860
  E.emit("error", B);
25859
25861
  });
25860
25862
  },
25861
- user: p,
25863
+ user: m,
25862
25864
  isTyping: g,
25863
25865
  participants: A,
25864
25866
  error: d,
@@ -25893,12 +25895,12 @@ function A2() {
25893
25895
  error: u,
25894
25896
  isAwaitingResponse: f,
25895
25897
  isTyping: c
25896
- } = Tu(), { messages: h, sendMessage: d, saveMessageFeedback: m } = Dy({
25898
+ } = Tu(), { messages: h, sendMessage: d, saveMessageFeedback: p } = Dy({
25897
25899
  client: e,
25898
25900
  conversationId: t,
25899
25901
  userId: n == null ? void 0 : n.userId,
25900
25902
  setAwaitingResponse: r
25901
- }), { participants: p } = My({
25903
+ }), { participants: m } = My({
25902
25904
  client: e,
25903
25905
  conversationId: t
25904
25906
  }), { sendEvent: g } = Oy({
@@ -25919,7 +25921,7 @@ function A2() {
25919
25921
  }, w = Iy(
25920
25922
  {
25921
25923
  sendMessage: d,
25922
- saveMessageFeedback: m,
25924
+ saveMessageFeedback: p,
25923
25925
  sendEvent: g,
25924
25926
  uploadFile: v
25925
25927
  },
@@ -25928,7 +25930,7 @@ function A2() {
25928
25930
  return {
25929
25931
  conversationId: t,
25930
25932
  messages: h,
25931
- participants: p,
25933
+ participants: m,
25932
25934
  sendMessage: w.sendMessage,
25933
25935
  saveMessageFeedback: w.saveMessageFeedback,
25934
25936
  sendEvent: w.sendEvent,
@@ -26076,19 +26078,19 @@ async function By(...e) {
26076
26078
  let l = o.optimisticData;
26077
26079
  const u = (h) => typeof a == "function" ? a(h) : a !== !1, f = o.throwOnError;
26078
26080
  if (Yt(n)) {
26079
- const h = n, d = [], m = t.keys();
26080
- for (const p of m)
26081
+ const h = n, d = [], p = t.keys();
26082
+ for (const m of p)
26081
26083
  // Skip the special useSWRInfinite and useSWRSubscription keys.
26082
- !/^\$(inf|sub)\$/.test(p) && h(t.get(p)._k) && d.push(p);
26084
+ !/^\$(inf|sub)\$/.test(m) && h(t.get(m)._k) && d.push(m);
26083
26085
  return Promise.all(d.map(c));
26084
26086
  }
26085
26087
  return c(n);
26086
26088
  async function c(h) {
26087
26089
  const [d] = Pu(h);
26088
26090
  if (!d) return;
26089
- const [m, p] = $y(t, d), [g, v, y, w] = tn.get(t), E = () => {
26091
+ const [p, m] = $y(t, d), [g, v, y, w] = tn.get(t), E = () => {
26090
26092
  const L = g[d];
26091
- return (Yt(o.revalidate) ? o.revalidate(m().data, h) : o.revalidate !== !1) && (delete y[d], delete w[d], L && L[0]) ? L[0](_y).then(() => m().data) : m().data;
26093
+ return (Yt(o.revalidate) ? o.revalidate(p().data, h) : o.revalidate !== !1) && (delete y[d], delete w[d], L && L[0]) ? L[0](_y).then(() => p().data) : p().data;
26092
26094
  };
26093
26095
  if (e.length < 3)
26094
26096
  return E();
@@ -26098,8 +26100,8 @@ async function By(...e) {
26098
26100
  R,
26099
26101
  0
26100
26102
  ];
26101
- const N = !be(l), A = m(), O = A.data, z = A._c, P = be(z) ? O : z;
26102
- if (N && (l = Yt(l) ? l(P, O) : l, p({
26103
+ const N = !be(l), A = p(), O = A.data, z = A._c, P = be(z) ? O : z;
26104
+ if (N && (l = Yt(l) ? l(P, O) : l, m({
26103
26105
  data: l,
26104
26106
  _c: P
26105
26107
  })), Yt(S))
@@ -26114,26 +26116,26 @@ async function By(...e) {
26114
26116
  }), R !== v[d][0]) {
26115
26117
  if (I) throw k;
26116
26118
  return S;
26117
- } else I && N && u(k) && (s = !0, p({
26119
+ } else I && N && u(k) && (s = !0, m({
26118
26120
  data: P,
26119
26121
  _c: ot
26120
26122
  }));
26121
26123
  if (s && !I)
26122
26124
  if (Yt(s)) {
26123
26125
  const L = s(S, P);
26124
- p({
26126
+ m({
26125
26127
  data: L,
26126
26128
  error: ot,
26127
26129
  _c: ot
26128
26130
  });
26129
26131
  } else
26130
- p({
26132
+ m({
26131
26133
  data: S,
26132
26134
  error: ot,
26133
26135
  _c: ot
26134
26136
  });
26135
26137
  if (v[d][1] = Al(), Promise.resolve(E()).then(() => {
26136
- p({
26138
+ m({
26137
26139
  _c: ot
26138
26140
  });
26139
26141
  }), I) {
@@ -26157,8 +26159,8 @@ const Wd = (e, t) => {
26157
26159
  e.set(f, c);
26158
26160
  const d = s[f];
26159
26161
  if (d)
26160
- for (const m of d)
26161
- m(c, h);
26162
+ for (const p of d)
26163
+ p(c, h);
26162
26164
  }, u = () => {
26163
26165
  if (!tn.has(e) && (tn.set(e, [
26164
26166
  r,
@@ -26281,7 +26283,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26281
26283
  }), ga = {
26282
26284
  dedupe: !0
26283
26285
  }, qd = Promise.resolve(ot), nP = () => rn, rP = (e, t, n) => {
26284
- const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: h, strictServerPrefetchWarning: d } = n, [m, p, g, v] = tn.get(r), [y, w] = Pu(e), E = Se(!1), S = Se(!1), k = Se(y), I = Se(t), R = Se(n), N = () => R.current, A = () => N().isVisible() && N().isOnline(), [O, z, P, L] = $y(r, y), _ = Se({}).current, D = be(s) ? be(n.fallback) ? ot : n.fallback[y] : s, U = (Q, le) => {
26286
+ const { cache: r, compare: i, suspense: o, fallbackData: s, revalidateOnMount: a, revalidateIfStale: l, refreshInterval: u, refreshWhenHidden: f, refreshWhenOffline: c, keepPreviousData: h, strictServerPrefetchWarning: d } = n, [p, m, g, v] = tn.get(r), [y, w] = Pu(e), E = Se(!1), S = Se(!1), k = Se(y), I = Se(t), R = Se(n), N = () => R.current, A = () => N().isVisible() && N().isOnline(), [O, z, P, L] = $y(r, y), _ = Se({}).current, D = be(s) ? be(n.fallback) ? ot : n.fallback[y] : s, U = (Q, le) => {
26285
26287
  for (const fe in _) {
26286
26288
  const ce = fe;
26287
26289
  if (ce === "data") {
@@ -26325,13 +26327,13 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26325
26327
  r,
26326
26328
  y
26327
26329
  ]
26328
- ), j[0], j[1]), M = m[y] && m[y].length > 0, $ = b.data, x = be($) ? D && Fy(D) ? ma(D) : D : $, V = b.error, Z = Se(x), q = h ? be($) ? be(Z.current) ? x : Z.current : $ : x, K = y && be(x), J = Se(null);
26330
+ ), j[0], j[1]), M = p[y] && p[y].length > 0, $ = b.data, x = be($) ? D && Fy(D) ? ma(D) : D : $, V = b.error, Z = Se(x), q = h ? be($) ? be(Z.current) ? x : Z.current : $ : x, K = y && be(x), J = Se(null);
26329
26331
  !nr && // getServerSnapshot is only called during hydration
26330
26332
  // eslint-disable-next-line react-hooks/rules-of-hooks
26331
26333
  Aa.useSyncExternalStore(nP, () => (J.current = !1, J), () => (J.current = !0, J));
26332
26334
  const ie = J.current;
26333
26335
  d && ie && !o && K && console.warn(`Missing pre-initiated data for serialized key "${y}" during server-side rendering. Data fetching should be initiated on the server and provided to SWR via fallback data. You can set "strictServerPrefetchWarning: false" to disable this warning.`);
26334
- const Y = !y || !t || N().isPaused() || M && !be(V) ? !1 : B && !be(a) ? a : o ? be(x) ? !1 : l : be(x) || l, ee = be(b.isValidating) ? Y : b.isValidating, F = be(b.isLoading) ? Y : b.isLoading, te = Me(
26336
+ const Y = !y || !t || N().isPaused() || M && !be(V) ? !1 : B && !be(a) ? a : o ? be(x) ? !1 : l : be(x) || l, te = be(b.isValidating) ? Y : b.isValidating, F = be(b.isLoading) ? Y : b.isLoading, ee = Me(
26335
26337
  async (Q) => {
26336
26338
  const le = I.current;
26337
26339
  if (!y || !le || S.current || N().isPaused())
@@ -26358,7 +26360,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26358
26360
  ]), [fe, ce] = g[y], fe = await fe, Oe && setTimeout(H, n.dedupingInterval), !g[y] || g[y][1] !== ce)
26359
26361
  return Oe && je() && N().onDiscarded(y), !1;
26360
26362
  X.error = ot;
26361
- const re = p[y];
26363
+ const re = m[y];
26362
26364
  if (!be(re) && // case 1
26363
26365
  (ce <= re[0] || // case 2
26364
26366
  ce <= re[1] || // case 3
@@ -26370,7 +26372,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26370
26372
  H();
26371
26373
  const se = N(), { shouldRetryOnError: de } = se;
26372
26374
  se.isPaused() || (X.error = re, Oe && je() && (se.onError(re, y, se), (de === !0 || Yt(de) && de(re)) && (!N().revalidateOnFocus || !N().revalidateOnReconnect || A()) && se.onErrorRetry(re, y, se, (qe) => {
26373
- const Ge = m[y];
26375
+ const Ge = p[y];
26374
26376
  Ge && Ge[0] && Ge[0](Hd, qe);
26375
26377
  }, {
26376
26378
  retryCount: ($e.retryCount || 0) + 1,
@@ -26404,10 +26406,10 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26404
26406
  I.current = t, R.current = n, be($) || (Z.current = $);
26405
26407
  }), da(() => {
26406
26408
  if (!y) return;
26407
- const Q = te.bind(ot, ga);
26409
+ const Q = ee.bind(ot, ga);
26408
26410
  let le = 0;
26409
26411
  N().revalidateOnFocus && (le = Date.now() + N().focusThrottleInterval);
26410
- const ce = tP(y, m, (Ce, $e = {}) => {
26412
+ const ce = tP(y, p, (Ce, $e = {}) => {
26411
26413
  if (Ce == Py) {
26412
26414
  const Oe = Date.now();
26413
26415
  N().revalidateOnFocus && Oe > le && A() && (le = Oe + N().focusThrottleInterval, Q());
@@ -26415,9 +26417,9 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26415
26417
  N().revalidateOnReconnect && A() && Q();
26416
26418
  else {
26417
26419
  if (Ce == _y)
26418
- return te();
26420
+ return ee();
26419
26421
  if (Ce == Hd)
26420
- return te($e);
26422
+ return ee($e);
26421
26423
  }
26422
26424
  });
26423
26425
  return S.current = !1, k.current = y, E.current = !0, z({
@@ -26434,7 +26436,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26434
26436
  ce && Q !== -1 && (Q = setTimeout(fe, ce));
26435
26437
  }
26436
26438
  function fe() {
26437
- !O().error && (f || N().isVisible()) && (c || N().isOnline()) ? te(ga).then(le) : le();
26439
+ !O().error && (f || N().isVisible()) && (c || N().isOnline()) ? ee(ga).then(le) : le();
26438
26440
  }
26439
26441
  return le(), () => {
26440
26442
  Q && (clearTimeout(Q), Q = -1);
@@ -26451,7 +26453,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26451
26453
  const Q = v[y], le = !be(Q) && K ? pe(Q) : qd;
26452
26454
  if (ma(le), !be(V) && K)
26453
26455
  throw V;
26454
- const fe = K ? te(ga) : qd;
26456
+ const fe = K ? ee(ga) : qd;
26455
26457
  !be(q) && K && (fe.status = "fulfilled", fe.value = !0), ma(fe);
26456
26458
  }
26457
26459
  return {
@@ -26463,7 +26465,7 @@ const ma = yt.use || // This extra generic is to avoid TypeScript mixing up the
26463
26465
  return _.error = !0, V;
26464
26466
  },
26465
26467
  get isValidating() {
26466
- return _.isValidating = !0, ee;
26468
+ return _.isValidating = !0, te;
26467
26469
  },
26468
26470
  get isLoading() {
26469
26471
  return _.isLoading = !0, F;
@@ -26532,9 +26534,9 @@ const sP = (e) => !!e.lastMessage, aP = (e) => e == null || e.length === 0 ? ""
26532
26534
  let d = "";
26533
26535
  if (h.payload.type === "text")
26534
26536
  d = h.payload.text;
26535
- else if (h.payload.type === "bloc" && h.payload.items.some((m) => m.type === "text")) {
26536
- const m = h.payload.items.find((p) => p.type === "text");
26537
- d = (m == null ? void 0 : m.payload.text) ?? "";
26537
+ else if (h.payload.type === "bloc" && h.payload.items.some((p) => p.type === "text")) {
26538
+ const p = h.payload.items.find((m) => m.type === "text");
26539
+ d = (p == null ? void 0 : p.payload.text) ?? "";
26538
26540
  } else
26539
26541
  d = "Sent an attachment";
26540
26542
  return /* @__PURE__ */ ae(
@@ -26587,8 +26589,8 @@ const lP = ({
26587
26589
  closeWindow: c,
26588
26590
  sendMessage: h,
26589
26591
  uploadFile: d,
26590
- addMessageFeedback: m,
26591
- listConversations: p,
26592
+ addMessageFeedback: p,
26593
+ listConversations: m,
26592
26594
  restartConversation: g,
26593
26595
  clientId: v,
26594
26596
  storageKey: y,
@@ -26611,37 +26613,39 @@ const lP = ({
26611
26613
  composerPlaceholder: U,
26612
26614
  footer: B,
26613
26615
  feedbackEnabled: j,
26614
- additionalStylesheetUrl: b,
26615
- allowFileUpload: M,
26616
- conversationHistory: $
26617
- } = t, x = {
26616
+ additionalStylesheet: b,
26617
+ additionalStylesheetUrl: M,
26618
+ allowFileUpload: $,
26619
+ conversationHistory: x
26620
+ } = t, V = {
26618
26621
  color: R,
26619
26622
  fontFamily: N,
26620
26623
  radius: A,
26621
26624
  themeMode: O,
26622
26625
  variant: z,
26623
26626
  headerVariant: P,
26624
- additionalStylesheetUrl: b
26625
- }, [V, Z] = Te("chat"), q = oP({
26627
+ additionalStylesheet: b,
26628
+ additionalStylesheetUrl: M
26629
+ }, [Z, q] = Te("chat"), K = oP({
26626
26630
  clientId: v,
26627
- listConversations: p,
26631
+ listConversations: m,
26628
26632
  userCredentials: i
26629
26633
  });
26630
26634
  _e(() => {
26631
- V === "conversations" && q.refresh();
26632
- }, [V]), j || (m = void 0);
26633
- const K = ct(() => i ? Gv(r, f, i.userId, D, L) : [], [L, D, r, i, f]), J = ct(() => {
26634
- var ee, F;
26635
- return ((F = (ee = r.at(-1)) == null ? void 0 : ee.metadata) == null ? void 0 : F.conversationStatus) === "closed";
26636
- }, [r]), ie = Se(null), Y = ei((ee) => ee.setPortalContainer);
26637
- return _e(() => (Y(ie.current), () => {
26638
- Y(null);
26639
- }), [Y]), /* @__PURE__ */ ae(Mt, { children: [
26640
- /* @__PURE__ */ T(IM, { ...x }),
26635
+ Z === "conversations" && K.refresh();
26636
+ }, [Z]), j || (p = void 0);
26637
+ const J = ct(() => i ? Gv(r, f, i.userId, D, L) : [], [L, D, r, i, f]), ie = ct(() => {
26638
+ var F, ee;
26639
+ return ((ee = (F = r.at(-1)) == null ? void 0 : F.metadata) == null ? void 0 : ee.conversationStatus) === "closed";
26640
+ }, [r]), Y = Se(null), te = ei((F) => F.setPortalContainer);
26641
+ return _e(() => (te(Y.current), () => {
26642
+ te(null);
26643
+ }), [te]), /* @__PURE__ */ ae(Mt, { children: [
26644
+ /* @__PURE__ */ T(IM, { ...V }),
26641
26645
  /* @__PURE__ */ T(
26642
26646
  "div",
26643
26647
  {
26644
- ref: ie,
26648
+ ref: Y,
26645
26649
  style: {
26646
26650
  position: "fixed",
26647
26651
  top: 0,
@@ -26657,29 +26661,29 @@ const lP = ({
26657
26661
  gy,
26658
26662
  {
26659
26663
  connected: e,
26660
- allowFileUpload: M,
26664
+ allowFileUpload: $,
26661
26665
  uploadFile: d,
26662
26666
  storageKey: y,
26663
26667
  conversationId: k,
26664
26668
  ...I,
26665
- children: u || q.error ? /* @__PURE__ */ T(
26669
+ children: u || K.error ? /* @__PURE__ */ T(
26666
26670
  w2,
26667
26671
  {
26668
- error: u || q.error,
26672
+ error: u || K.error,
26669
26673
  restartConversation: g,
26670
26674
  closeWindow: c
26671
26675
  }
26672
- ) : V === "conversations" ? /* @__PURE__ */ T(
26676
+ ) : Z === "conversations" ? /* @__PURE__ */ T(
26673
26677
  Uy,
26674
26678
  {
26675
26679
  onClose: c,
26676
- conversations: q.conversations,
26677
- isLoading: q.isLoading,
26680
+ conversations: K.conversations,
26681
+ isLoading: K.isLoading,
26678
26682
  onNewConversation: () => {
26679
- g == null || g(), Z("chat");
26683
+ g == null || g(), q("chat");
26680
26684
  },
26681
- onConversationClick: (ee) => {
26682
- g == null || g(ee), Z("chat");
26685
+ onConversationClick: (F) => {
26686
+ g == null || g(F), q("chat");
26683
26687
  },
26684
26688
  botAvatar: L,
26685
26689
  botName: D
@@ -26688,7 +26692,7 @@ const lP = ({
26688
26692
  /* @__PURE__ */ T(
26689
26693
  p2,
26690
26694
  {
26691
- showConversationHistory: $ ? () => Z("conversations") : void 0,
26695
+ showConversationHistory: x ? () => q("conversations") : void 0,
26692
26696
  closeWindow: c,
26693
26697
  configuration: t,
26694
26698
  restartConversation: g,
@@ -26706,12 +26710,12 @@ const lP = ({
26706
26710
  renderers: s,
26707
26711
  isTyping: n,
26708
26712
  sendMessage: h,
26709
- addMessageFeedback: m,
26710
- messages: K
26713
+ addMessageFeedback: p,
26714
+ messages: J
26711
26715
  },
26712
26716
  k
26713
26717
  ),
26714
- !J && /* @__PURE__ */ T(
26718
+ !ie && /* @__PURE__ */ T(
26715
26719
  kD,
26716
26720
  {
26717
26721
  sendMessage: h,
@@ -26721,7 +26725,7 @@ const lP = ({
26721
26725
  disableComposer: l,
26722
26726
  footer: B,
26723
26727
  composerPlaceholder: U,
26724
- allowFileUpload: M,
26728
+ allowFileUpload: $,
26725
26729
  storageKey: y,
26726
26730
  disableSendButton: S,
26727
26731
  conversationId: k
@@ -26748,8 +26752,8 @@ function uP({
26748
26752
  status: c,
26749
26753
  error: h,
26750
26754
  isTyping: d,
26751
- isAwaitingResponse: m
26752
- } = A2(), { openConversation: p, listConversations: g } = T2(), { userCredentials: v } = C2(), { soundOn: y, toggleSound: w } = Ny({
26755
+ isAwaitingResponse: p
26756
+ } = A2(), { openConversation: m, listConversations: g } = T2(), { userCredentials: v } = C2(), { soundOn: y, toggleSound: w } = Ny({
26753
26757
  storageKey: i,
26754
26758
  soundEnabled: e == null ? void 0 : e.soundEnabled
26755
26759
  });
@@ -26766,13 +26770,13 @@ function uP({
26766
26770
  uploadFile: l,
26767
26771
  addMessageFeedback: u,
26768
26772
  listConversations: g,
26769
- restartConversation: p,
26773
+ restartConversation: m,
26770
26774
  participants: s,
26771
26775
  error: h,
26772
26776
  clientId: n,
26773
26777
  soundOn: y,
26774
26778
  toggleSound: w,
26775
- disableSendButton: m,
26779
+ disableSendButton: p,
26776
26780
  conversationId: f,
26777
26781
  storageKey: i,
26778
26782
  ...r
@@ -26826,7 +26830,7 @@ var fP = "DismissableLayer", Tl = "dismissableLayer.update", dP = "dismissableLa
26826
26830
  onInteractOutside: s,
26827
26831
  onDismiss: a,
26828
26832
  ...l
26829
- } = e, u = C.useContext(jy), [f, c] = C.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = C.useState({}), m = xn(t, (I) => c(I)), p = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(g), y = f ? p.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= v, S = gP((I) => {
26833
+ } = e, u = C.useContext(jy), [f, c] = C.useState(null), h = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, d] = C.useState({}), p = xn(t, (I) => c(I)), m = Array.from(u.layers), [g] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), v = m.indexOf(g), y = f ? m.indexOf(f) : -1, w = u.layersWithOutsidePointerEventsDisabled.size > 0, E = y >= v, S = gP((I) => {
26830
26834
  const R = I.target, N = [...u.branches].some((A) => A.contains(R));
26831
26835
  !E || N || (i == null || i(I), s == null || s(I), I.defaultPrevented || a == null || a());
26832
26836
  }, h), k = yP((I) => {
@@ -26849,7 +26853,7 @@ var fP = "DismissableLayer", Tl = "dismissableLayer.update", dP = "dismissableLa
26849
26853
  Vt.div,
26850
26854
  {
26851
26855
  ...l,
26852
- ref: m,
26856
+ ref: p,
26853
26857
  style: {
26854
26858
  pointerEvents: w ? E ? "auto" : "none" : void 0,
26855
26859
  ...e.style
@@ -26935,7 +26939,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
26935
26939
  onMountAutoFocus: i,
26936
26940
  onUnmountAutoFocus: o,
26937
26941
  ...s
26938
- } = e, [a, l] = C.useState(null), u = ir(i), f = ir(o), c = C.useRef(null), h = xn(t, (p) => l(p)), d = C.useRef({
26942
+ } = e, [a, l] = C.useState(null), u = ir(i), f = ir(o), c = C.useRef(null), h = xn(t, (m) => l(m)), d = C.useRef({
26939
26943
  paused: !1,
26940
26944
  pause() {
26941
26945
  this.paused = !0;
@@ -26946,7 +26950,7 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
26946
26950
  }).current;
26947
26951
  C.useEffect(() => {
26948
26952
  if (r) {
26949
- let p = function(w) {
26953
+ let m = function(w) {
26950
26954
  if (d.paused || !a) return;
26951
26955
  const E = w.target;
26952
26956
  a.contains(E) ? c.current = E : cn(c.current, { select: !0 });
@@ -26959,40 +26963,40 @@ var ya = "focusScope.autoFocusOnMount", va = "focusScope.autoFocusOnUnmount", Gd
26959
26963
  for (const S of w)
26960
26964
  S.removedNodes.length > 0 && cn(a);
26961
26965
  };
26962
- document.addEventListener("focusin", p), document.addEventListener("focusout", g);
26966
+ document.addEventListener("focusin", m), document.addEventListener("focusout", g);
26963
26967
  const y = new MutationObserver(v);
26964
26968
  return a && y.observe(a, { childList: !0, subtree: !0 }), () => {
26965
- document.removeEventListener("focusin", p), document.removeEventListener("focusout", g), y.disconnect();
26969
+ document.removeEventListener("focusin", m), document.removeEventListener("focusout", g), y.disconnect();
26966
26970
  };
26967
26971
  }
26968
26972
  }, [r, a, d.paused]), C.useEffect(() => {
26969
26973
  if (a) {
26970
26974
  Zd.add(d);
26971
- const p = document.activeElement;
26972
- if (!a.contains(p)) {
26975
+ const m = document.activeElement;
26976
+ if (!a.contains(m)) {
26973
26977
  const v = new CustomEvent(ya, Gd);
26974
- a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (bP(EP(Yy(a)), { select: !0 }), document.activeElement === p && cn(a));
26978
+ a.addEventListener(ya, u), a.dispatchEvent(v), v.defaultPrevented || (bP(EP(Yy(a)), { select: !0 }), document.activeElement === m && cn(a));
26975
26979
  }
26976
26980
  return () => {
26977
26981
  a.removeEventListener(ya, u), setTimeout(() => {
26978
26982
  const v = new CustomEvent(va, Gd);
26979
- a.addEventListener(va, f), a.dispatchEvent(v), v.defaultPrevented || cn(p ?? document.body, { select: !0 }), a.removeEventListener(va, f), Zd.remove(d);
26983
+ a.addEventListener(va, f), a.dispatchEvent(v), v.defaultPrevented || cn(m ?? document.body, { select: !0 }), a.removeEventListener(va, f), Zd.remove(d);
26980
26984
  }, 0);
26981
26985
  };
26982
26986
  }
26983
26987
  }, [a, u, f, d]);
26984
- const m = C.useCallback(
26985
- (p) => {
26988
+ const p = C.useCallback(
26989
+ (m) => {
26986
26990
  if (!n && !r || d.paused) return;
26987
- const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, v = document.activeElement;
26991
+ const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, v = document.activeElement;
26988
26992
  if (g && v) {
26989
- const y = p.currentTarget, [w, E] = wP(y);
26990
- w && E ? !p.shiftKey && v === E ? (p.preventDefault(), n && cn(w, { select: !0 })) : p.shiftKey && v === w && (p.preventDefault(), n && cn(E, { select: !0 })) : v === y && p.preventDefault();
26993
+ const y = m.currentTarget, [w, E] = wP(y);
26994
+ w && E ? !m.shiftKey && v === E ? (m.preventDefault(), n && cn(w, { select: !0 })) : m.shiftKey && v === w && (m.preventDefault(), n && cn(E, { select: !0 })) : v === y && m.preventDefault();
26991
26995
  }
26992
26996
  },
26993
26997
  [n, r, d.paused]
26994
26998
  );
26995
- return /* @__PURE__ */ T(Vt.div, { tabIndex: -1, ...s, ref: h, onKeyDown: m });
26999
+ return /* @__PURE__ */ T(Vt.div, { tabIndex: -1, ...s, ref: h, onKeyDown: p });
26996
27000
  });
26997
27001
  qy.displayName = vP;
26998
27002
  function bP(e, { select: t = !1 } = {}) {
@@ -27197,11 +27201,11 @@ var Gy = NP(), xa = function() {
27197
27201
  onScrollCapture: xa,
27198
27202
  onWheelCapture: xa,
27199
27203
  onTouchMoveCapture: xa
27200
- }), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative, m = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, E = Um(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, k = RP([n, t]), I = Rt(Rt({}, E), i);
27204
+ }), i = r[0], o = r[1], s = e.forwardProps, a = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, c = e.shards, h = e.sideCar, d = e.noRelative, p = e.noIsolation, m = e.inert, g = e.allowPinchZoom, v = e.as, y = v === void 0 ? "div" : v, w = e.gapMode, E = Um(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), S = h, k = RP([n, t]), I = Rt(Rt({}, E), i);
27201
27205
  return C.createElement(
27202
27206
  C.Fragment,
27203
27207
  null,
27204
- f && C.createElement(S, { sideCar: Gy, removeScrollBar: u, shards: c, noRelative: d, noIsolation: m, inert: p, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
27208
+ f && C.createElement(S, { sideCar: Gy, removeScrollBar: u, shards: c, noRelative: d, noIsolation: p, inert: m, setCallbacks: o, allowPinchZoom: !!g, lockRef: n, gapMode: w }),
27205
27209
  s ? C.cloneElement(C.Children.only(a), Rt(Rt({}, I), { ref: k })) : C.createElement(y, Rt({}, I, { className: l, ref: k }), a)
27206
27210
  );
27207
27211
  });
@@ -27404,8 +27408,8 @@ var jn = Il ? { passive: !1 } : !1, KP = function(e) {
27404
27408
  do {
27405
27409
  if (!a)
27406
27410
  break;
27407
- var d = Xy(e, a), m = d[0], p = d[1], g = d[2], v = p - g - o * m;
27408
- (m || v) && Jy(e, a) && (c += v, h += m);
27411
+ var d = Xy(e, a), p = d[0], m = d[1], g = d[2], v = m - g - o * p;
27412
+ (p || v) && Jy(e, a) && (c += v, h += p);
27409
27413
  var y = a.parentNode;
27410
27414
  a = y && y.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? y.host : y;
27411
27415
  } while (
@@ -27435,33 +27439,33 @@ function iL(e) {
27435
27439
  }, [e]), C.useEffect(function() {
27436
27440
  if (e.inert) {
27437
27441
  document.body.classList.add("block-interactivity-".concat(i));
27438
- var p = Ga([e.lockRef.current], (e.shards || []).map(ih), !0).filter(Boolean);
27439
- return p.forEach(function(g) {
27442
+ var m = Ga([e.lockRef.current], (e.shards || []).map(ih), !0).filter(Boolean);
27443
+ return m.forEach(function(g) {
27440
27444
  return g.classList.add("allow-interactivity-".concat(i));
27441
27445
  }), function() {
27442
- document.body.classList.remove("block-interactivity-".concat(i)), p.forEach(function(g) {
27446
+ document.body.classList.remove("block-interactivity-".concat(i)), m.forEach(function(g) {
27443
27447
  return g.classList.remove("allow-interactivity-".concat(i));
27444
27448
  });
27445
27449
  };
27446
27450
  }
27447
27451
  }, [e.inert, e.lockRef.current, e.shards]);
27448
- var a = C.useCallback(function(p, g) {
27449
- if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
27452
+ var a = C.useCallback(function(m, g) {
27453
+ if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
27450
27454
  return !s.current.allowPinchZoom;
27451
- var v = Xi(p), y = n.current, w = "deltaX" in p ? p.deltaX : y[0] - v[0], E = "deltaY" in p ? p.deltaY : y[1] - v[1], S, k = p.target, I = Math.abs(w) > Math.abs(E) ? "h" : "v";
27452
- if ("touches" in p && I === "h" && k.type === "range")
27455
+ var v = Xi(m), y = n.current, w = "deltaX" in m ? m.deltaX : y[0] - v[0], E = "deltaY" in m ? m.deltaY : y[1] - v[1], S, k = m.target, I = Math.abs(w) > Math.abs(E) ? "h" : "v";
27456
+ if ("touches" in m && I === "h" && k.type === "range")
27453
27457
  return !1;
27454
27458
  var R = nh(I, k);
27455
27459
  if (!R)
27456
27460
  return !0;
27457
27461
  if (R ? S = I : (S = I === "v" ? "h" : "v", R = nh(I, k)), !R)
27458
27462
  return !1;
27459
- if (!r.current && "changedTouches" in p && (w || E) && (r.current = S), !S)
27463
+ if (!r.current && "changedTouches" in m && (w || E) && (r.current = S), !S)
27460
27464
  return !0;
27461
27465
  var N = r.current || S;
27462
- return eL(N, g, p, N === "h" ? w : E);
27463
- }, []), l = C.useCallback(function(p) {
27464
- var g = p;
27466
+ return eL(N, g, m, N === "h" ? w : E);
27467
+ }, []), l = C.useCallback(function(m) {
27468
+ var g = m;
27465
27469
  if (!(!Vn.length || Vn[Vn.length - 1] !== o)) {
27466
27470
  var v = "deltaY" in g ? rh(g) : Xi(g), y = t.current.filter(function(S) {
27467
27471
  return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && tL(S.delta, v);
@@ -27477,19 +27481,19 @@ function iL(e) {
27477
27481
  E && g.cancelable && g.preventDefault();
27478
27482
  }
27479
27483
  }
27480
- }, []), u = C.useCallback(function(p, g, v, y) {
27481
- var w = { name: p, delta: g, target: v, should: y, shadowParent: oL(v) };
27484
+ }, []), u = C.useCallback(function(m, g, v, y) {
27485
+ var w = { name: m, delta: g, target: v, should: y, shadowParent: oL(v) };
27482
27486
  t.current.push(w), setTimeout(function() {
27483
27487
  t.current = t.current.filter(function(E) {
27484
27488
  return E !== w;
27485
27489
  });
27486
27490
  }, 1);
27487
- }, []), f = C.useCallback(function(p) {
27488
- n.current = Xi(p), r.current = void 0;
27489
- }, []), c = C.useCallback(function(p) {
27490
- u(p.type, rh(p), p.target, a(p, e.lockRef.current));
27491
- }, []), h = C.useCallback(function(p) {
27492
- u(p.type, Xi(p), p.target, a(p, e.lockRef.current));
27491
+ }, []), f = C.useCallback(function(m) {
27492
+ n.current = Xi(m), r.current = void 0;
27493
+ }, []), c = C.useCallback(function(m) {
27494
+ u(m.type, rh(m), m.target, a(m, e.lockRef.current));
27495
+ }, []), h = C.useCallback(function(m) {
27496
+ u(m.type, Xi(m), m.target, a(m, e.lockRef.current));
27493
27497
  }, []);
27494
27498
  C.useEffect(function() {
27495
27499
  return Vn.push(o), e.setCallbacks({
@@ -27497,16 +27501,16 @@ function iL(e) {
27497
27501
  onWheelCapture: c,
27498
27502
  onTouchMoveCapture: h
27499
27503
  }), document.addEventListener("wheel", l, jn), document.addEventListener("touchmove", l, jn), document.addEventListener("touchstart", f, jn), function() {
27500
- Vn = Vn.filter(function(p) {
27501
- return p !== o;
27504
+ Vn = Vn.filter(function(m) {
27505
+ return m !== o;
27502
27506
  }), document.removeEventListener("wheel", l, jn), document.removeEventListener("touchmove", l, jn), document.removeEventListener("touchstart", f, jn);
27503
27507
  };
27504
27508
  }, []);
27505
- var d = e.removeScrollBar, m = e.inert;
27509
+ var d = e.removeScrollBar, p = e.inert;
27506
27510
  return C.createElement(
27507
27511
  C.Fragment,
27508
27512
  null,
27509
- m ? C.createElement(o, { styles: nL(i) }) : null,
27513
+ p ? C.createElement(o, { styles: nL(i) }) : null,
27510
27514
  d ? C.createElement(YP, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
27511
27515
  );
27512
27516
  }
@@ -27549,8 +27553,8 @@ var aL = function(e) {
27549
27553
  f(h);
27550
27554
  else
27551
27555
  try {
27552
- var d = h.getAttribute(r), m = d !== null && d !== "false", p = (Wn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
27553
- Wn.set(h, p), o.set(h, g), s.push(h), p === 1 && m && eo.set(h, !0), g === 1 && h.setAttribute(n, "true"), m || h.setAttribute(r, "true");
27556
+ var d = h.getAttribute(r), p = d !== null && d !== "false", m = (Wn.get(h) || 0) + 1, g = (o.get(h) || 0) + 1;
27557
+ Wn.set(h, m), o.set(h, g), s.push(h), m === 1 && p && eo.set(h, !0), g === 1 && h.setAttribute(n, "true"), p || h.setAttribute(r, "true");
27554
27558
  } catch (v) {
27555
27559
  console.error("aria-hidden: cannot operate on ", h, v);
27556
27560
  }
@@ -27833,8 +27837,8 @@ const IL = rt(({ children: e, onClick: t, avatarUrl: n, botName: r, description:
27833
27837
  Mm,
27834
27838
  {
27835
27839
  ...f,
27836
- onClick: (m) => {
27837
- m.stopPropagation(), o == null || o();
27840
+ onClick: (p) => {
27841
+ p.stopPropagation(), o == null || o();
27838
27842
  }
27839
27843
  }
27840
27844
  )