@2uinc/frontend-component-xpert-chatbot 1.40.6-beta.8 → 1.40.6-beta.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.
Files changed (2) hide show
  1. package/dist/lib/index.min.js +1113 -1122
  2. package/package.json +1 -1
@@ -187,8 +187,8 @@ Qn.exports;
187
187
  var Au;
188
188
  function B0() {
189
189
  return Au || (Au = 1, (function(e, t) {
190
- var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", T = "[object Number]", g = "[object Null]", D = "[object Object]", P = "[object Proxy]", X = "[object RegExp]", F = "[object Set]", x = "[object String]", w = "[object Undefined]", V = "[object WeakMap]", q = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", k = "[object Int8Array]", I = "[object Int16Array]", L = "[object Int32Array]", B = "[object Uint8Array]", W = "[object Uint8ClampedArray]", H = "[object Uint16Array]", z = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, v = {};
191
- v[Y] = v[$] = v[k] = v[I] = v[L] = v[B] = v[W] = v[H] = v[z] = !0, v[s] = v[l] = v[q] = v[d] = v[te] = v[f] = v[p] = v[h] = v[m] = v[T] = v[D] = v[X] = v[F] = v[x] = v[V] = !1;
190
+ var n = 200, r = "__lodash_hash_undefined__", a = 800, i = 16, u = 9007199254740991, s = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", d = "[object Boolean]", f = "[object Date]", p = "[object Error]", h = "[object Function]", b = "[object GeneratorFunction]", m = "[object Map]", T = "[object Number]", g = "[object Null]", D = "[object Object]", P = "[object Proxy]", W = "[object RegExp]", j = "[object Set]", x = "[object String]", k = "[object Undefined]", G = "[object WeakMap]", q = "[object ArrayBuffer]", te = "[object DataView]", Y = "[object Float32Array]", $ = "[object Float64Array]", L = "[object Int8Array]", I = "[object Int16Array]", w = "[object Int32Array]", F = "[object Uint8Array]", V = "[object Uint8ClampedArray]", B = "[object Uint16Array]", z = "[object Uint32Array]", y = /[\\^$.*+?()[\]{}|]/g, ne = /^\[object .+?Constructor\]$/, ae = /^(?:0|[1-9]\d*)$/, v = {};
191
+ v[Y] = v[$] = v[L] = v[I] = v[w] = v[F] = v[V] = v[B] = v[z] = !0, v[s] = v[l] = v[q] = v[d] = v[te] = v[f] = v[p] = v[h] = v[m] = v[T] = v[D] = v[W] = v[j] = v[x] = v[G] = !1;
192
192
  var se = typeof Ar == "object" && Ar && Ar.Object === Object && Ar, _e = typeof self == "object" && self && self.Object === Object && self, pe = se || _e || Function("return this")(), Se = t && !t.nodeType && t, Oe = Se && !0 && e && !e.nodeType && e, ze = Oe && Oe.exports === Se, Ie = ze && se.process, nt = (function() {
193
193
  try {
194
194
  var S = Oe && Oe.require && Oe.require("util").types;
@@ -230,7 +230,7 @@ function B0() {
230
230
  var Qt = Array.prototype, Bn = Function.prototype, ue = Object.prototype, be = pe["__core-js_shared__"], Me = Bn.toString, ye = ue.hasOwnProperty, Ye = (function() {
231
231
  var S = /[^.]+$/.exec(be && be.keys && be.keys.IE_PROTO || "");
232
232
  return S ? "Symbol(src)_1." + S : "";
233
- })(), Fe = ue.toString, Ce = Me.call(Object), U = RegExp(
233
+ })(), Fe = ue.toString, Ce = Me.call(Object), H = RegExp(
234
234
  "^" + Me.call(ye).replace(y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
235
235
  ), K = ze ? pe.Buffer : void 0, ie = pe.Symbol, Ee = pe.Uint8Array;
236
236
  K && K.allocUnsafe;
@@ -403,7 +403,7 @@ function B0() {
403
403
  }
404
404
  var Kd = l0();
405
405
  function yr(S) {
406
- return S == null ? S === void 0 ? w : g : Be && Be in Object(S) ? c0(S) : g0(S);
406
+ return S == null ? S === void 0 ? k : g : Be && Be in Object(S) ? c0(S) : g0(S);
407
407
  }
408
408
  function cu(S) {
409
409
  return Un(S) && yr(S) == s;
@@ -411,7 +411,7 @@ function B0() {
411
411
  function Qd(S) {
412
412
  if (!Jt(S) || p0(S))
413
413
  return !1;
414
- var N = ha(S) ? U : ne;
414
+ var N = ha(S) ? H : ne;
415
415
  return N.test(y0(S));
416
416
  }
417
417
  function Zd(S) {
@@ -1610,14 +1610,14 @@ const Ou = 991, Z0 = () => {
1610
1610
  externalLoadingHistory: n = !1,
1611
1611
  externalStreaming: r = !1
1612
1612
  }) => {
1613
- const [a, i] = le(!1), [u, s] = le(!1), [l, c] = le(!1), [d, f] = le(!0), [p, h] = le(!1), [b, m] = le(!1), [T, g] = le(!1), [D, P] = le(Nt.XPERT), X = Z0(), F = {
1613
+ const [a, i] = le(!1), [u, s] = le(!1), [l, c] = le(!1), [d, f] = le(!0), [p, h] = le(!1), [b, m] = le(!1), [T, g] = le(!1), [D, P] = le(Nt.XPERT), W = Z0(), j = {
1614
1614
  disabledScroll: a,
1615
1615
  externalStreaming: r,
1616
1616
  hasError: u,
1617
1617
  hasNewMessage: l,
1618
1618
  internalStreaming: T,
1619
- isMobile: X,
1620
- isNormalSize: d || X,
1619
+ isMobile: W,
1620
+ isNormalSize: d || W,
1621
1621
  loading: p || t,
1622
1622
  loadingHistory: b || n,
1623
1623
  streaming: T || r,
@@ -1631,7 +1631,7 @@ const Ou = 991, Z0 = () => {
1631
1631
  setStreaming: g,
1632
1632
  setMode: P
1633
1633
  };
1634
- return /* @__PURE__ */ _.jsx(tt.Provider, { value: F, children: e });
1634
+ return /* @__PURE__ */ _.jsx(tt.Provider, { value: j, children: e });
1635
1635
  };
1636
1636
  Ms.propTypes = {
1637
1637
  children: A.element.isRequired,
@@ -1689,7 +1689,7 @@ const $t = Xr({}), ve = {
1689
1689
  onFeedbackSelection: n,
1690
1690
  onMessageSent: r,
1691
1691
  onStreamingStop: a,
1692
- pushXpertMessage: (X) => m((F) => [...F, X]),
1692
+ pushXpertMessage: (W) => m((j) => [...j, W]),
1693
1693
  setConversationId: f,
1694
1694
  setDeleteConversationModal: h,
1695
1695
  setXpertMessages: m,
@@ -1809,8 +1809,8 @@ eyes follow your mouse when you hover near it.`, js = ({
1809
1809
  i.current.querySelectorAll(
1810
1810
  ".xpert_chatbot__animated_graduate__pupil"
1811
1811
  ).forEach((g) => {
1812
- const D = g.getBoundingClientRect(), P = (b.pageX - window.scrollX - D.left) / 30 / 16 + "rem", X = (b.pageY - window.scrollY - D.top) / 30 / 16 + "rem";
1813
- g.style.transform = "translate3d(" + P + "," + X + ", 0rem)";
1812
+ const D = g.getBoundingClientRect(), P = (b.pageX - window.scrollX - D.left) / 30 / 16 + "rem", W = (b.pageY - window.scrollY - D.top) / 30 / 16 + "rem";
1813
+ g.style.transform = "translate3d(" + P + "," + W + ", 0rem)";
1814
1814
  });
1815
1815
  };
1816
1816
  return window.addEventListener("mousemove", h), () => {
@@ -2374,70 +2374,70 @@ var wu = {
2374
2374
  delayInitialFocusTimer: void 0,
2375
2375
  // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
2376
2376
  recentNavEvent: void 0
2377
- }, s, l = function(k, I, L) {
2378
- return k && k[I] !== void 0 ? k[I] : i[L || I];
2379
- }, c = function(k, I) {
2380
- var L = typeof I?.composedPath == "function" ? I.composedPath() : void 0;
2381
- return u.containerGroups.findIndex(function(B) {
2382
- var W = B.container, H = B.tabbableNodes;
2383
- return W.contains(k) || L?.includes(W) || H.find(function(z) {
2384
- return z === k;
2377
+ }, s, l = function(L, I, w) {
2378
+ return L && L[I] !== void 0 ? L[I] : i[w || I];
2379
+ }, c = function(L, I) {
2380
+ var w = typeof I?.composedPath == "function" ? I.composedPath() : void 0;
2381
+ return u.containerGroups.findIndex(function(F) {
2382
+ var V = F.container, B = F.tabbableNodes;
2383
+ return V.contains(L) || w?.includes(V) || B.find(function(z) {
2384
+ return z === L;
2385
2385
  });
2386
2386
  });
2387
- }, d = function(k) {
2388
- var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, L = I.hasFallback, B = L === void 0 ? !1 : L, W = I.params, H = W === void 0 ? [] : W, z = i[k];
2389
- if (typeof z == "function" && (z = z.apply(void 0, vf(H))), z === !0 && (z = void 0), !z) {
2387
+ }, d = function(L) {
2388
+ var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, w = I.hasFallback, F = w === void 0 ? !1 : w, V = I.params, B = V === void 0 ? [] : V, z = i[L];
2389
+ if (typeof z == "function" && (z = z.apply(void 0, vf(B))), z === !0 && (z = void 0), !z) {
2390
2390
  if (z === void 0 || z === !1)
2391
2391
  return z;
2392
- throw new Error("`".concat(k, "` was specified but was not a node, or did not return a node"));
2392
+ throw new Error("`".concat(L, "` was specified but was not a node, or did not return a node"));
2393
2393
  }
2394
2394
  var y = z;
2395
2395
  if (typeof z == "string") {
2396
2396
  try {
2397
2397
  y = r.querySelector(z);
2398
2398
  } catch (ne) {
2399
- throw new Error("`".concat(k, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
2399
+ throw new Error("`".concat(L, '` appears to be an invalid selector; error="').concat(ne.message, '"'));
2400
2400
  }
2401
- if (!y && !B)
2402
- throw new Error("`".concat(k, "` as selector refers to no known node"));
2401
+ if (!y && !F)
2402
+ throw new Error("`".concat(L, "` as selector refers to no known node"));
2403
2403
  }
2404
2404
  return y;
2405
2405
  }, f = function() {
2406
- var k = d("initialFocus", {
2406
+ var L = d("initialFocus", {
2407
2407
  hasFallback: !0
2408
2408
  });
2409
- if (k === !1)
2409
+ if (L === !1)
2410
2410
  return !1;
2411
- if (k === void 0 || k && !wr(k, i.tabbableOptions))
2411
+ if (L === void 0 || L && !wr(L, i.tabbableOptions))
2412
2412
  if (c(r.activeElement) >= 0)
2413
- k = r.activeElement;
2413
+ L = r.activeElement;
2414
2414
  else {
2415
- var I = u.tabbableGroups[0], L = I && I.firstTabbableNode;
2416
- k = L || d("fallbackFocus");
2415
+ var I = u.tabbableGroups[0], w = I && I.firstTabbableNode;
2416
+ L = w || d("fallbackFocus");
2417
2417
  }
2418
- else k === null && (k = d("fallbackFocus"));
2419
- if (!k)
2418
+ else L === null && (L = d("fallbackFocus"));
2419
+ if (!L)
2420
2420
  throw new Error("Your focus-trap needs to have at least one focusable element");
2421
- return k;
2421
+ return L;
2422
2422
  }, p = function() {
2423
- if (u.containerGroups = u.containers.map(function(k) {
2424
- var I = Ks(k, i.tabbableOptions), L = Qs(k, i.tabbableOptions), B = I.length > 0 ? I[0] : void 0, W = I.length > 0 ? I[I.length - 1] : void 0, H = L.find(function(ne) {
2423
+ if (u.containerGroups = u.containers.map(function(L) {
2424
+ var I = Ks(L, i.tabbableOptions), w = Qs(L, i.tabbableOptions), F = I.length > 0 ? I[0] : void 0, V = I.length > 0 ? I[I.length - 1] : void 0, B = w.find(function(ne) {
2425
2425
  return rn(ne);
2426
- }), z = L.slice().reverse().find(function(ne) {
2426
+ }), z = w.slice().reverse().find(function(ne) {
2427
2427
  return rn(ne);
2428
2428
  }), y = !!I.find(function(ne) {
2429
2429
  return Xt(ne) > 0;
2430
2430
  });
2431
2431
  return {
2432
- container: k,
2432
+ container: L,
2433
2433
  tabbableNodes: I,
2434
- focusableNodes: L,
2434
+ focusableNodes: w,
2435
2435
  /** True if at least one node with positive `tabindex` was found in this container. */
2436
2436
  posTabIndexesFound: y,
2437
2437
  /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
2438
- firstTabbableNode: B,
2438
+ firstTabbableNode: F,
2439
2439
  /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
2440
- lastTabbableNode: W,
2440
+ lastTabbableNode: V,
2441
2441
  // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
2442
2442
  // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
2443
2443
  // because that API doesn't work with Shadow DOM as well as it should (@see
@@ -2446,7 +2446,7 @@ var wu = {
2446
2446
  // "close enough most of the time" alternative for positive tabindexes which should generally
2447
2447
  // be avoided anyway...
2448
2448
  /** First tabbable node in container, __DOM__ order; `undefined` if none. */
2449
- firstDomTabbableNode: H,
2449
+ firstDomTabbableNode: B,
2450
2450
  /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
2451
2451
  lastDomTabbableNode: z,
2452
2452
  /**
@@ -2459,57 +2459,57 @@ var wu = {
2459
2459
  */
2460
2460
  nextTabbableNode: function(ae) {
2461
2461
  var v = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, se = I.indexOf(ae);
2462
- return se < 0 ? v ? L.slice(L.indexOf(ae) + 1).find(function(_e) {
2462
+ return se < 0 ? v ? w.slice(w.indexOf(ae) + 1).find(function(_e) {
2463
2463
  return rn(_e);
2464
- }) : L.slice(0, L.indexOf(ae)).reverse().find(function(_e) {
2464
+ }) : w.slice(0, w.indexOf(ae)).reverse().find(function(_e) {
2465
2465
  return rn(_e);
2466
2466
  }) : I[se + (v ? 1 : -1)];
2467
2467
  }
2468
2468
  };
2469
- }), u.tabbableGroups = u.containerGroups.filter(function(k) {
2470
- return k.tabbableNodes.length > 0;
2469
+ }), u.tabbableGroups = u.containerGroups.filter(function(L) {
2470
+ return L.tabbableNodes.length > 0;
2471
2471
  }), u.tabbableGroups.length <= 0 && !d("fallbackFocus"))
2472
2472
  throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
2473
- if (u.containerGroups.find(function(k) {
2474
- return k.posTabIndexesFound;
2473
+ if (u.containerGroups.find(function(L) {
2474
+ return L.posTabIndexesFound;
2475
2475
  }) && u.containerGroups.length > 1)
2476
2476
  throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
2477
- }, h = function(k) {
2478
- var I = k.activeElement;
2477
+ }, h = function(L) {
2478
+ var I = L.activeElement;
2479
2479
  if (I)
2480
2480
  return I.shadowRoot && I.shadowRoot.activeElement !== null ? h(I.shadowRoot) : I;
2481
- }, b = function(k) {
2482
- if (k !== !1 && k !== h(document)) {
2483
- if (!k || !k.focus) {
2481
+ }, b = function(L) {
2482
+ if (L !== !1 && L !== h(document)) {
2483
+ if (!L || !L.focus) {
2484
2484
  b(f());
2485
2485
  return;
2486
2486
  }
2487
- k.focus({
2487
+ L.focus({
2488
2488
  preventScroll: !!i.preventScroll
2489
- }), u.mostRecentlyFocusedNode = k, kf(k) && k.select();
2489
+ }), u.mostRecentlyFocusedNode = L, kf(L) && L.select();
2490
2490
  }
2491
- }, m = function(k) {
2491
+ }, m = function(L) {
2492
2492
  var I = d("setReturnFocus", {
2493
- params: [k]
2493
+ params: [L]
2494
2494
  });
2495
- return I || (I === !1 ? !1 : k);
2496
- }, T = function(k) {
2497
- var I = k.target, L = k.event, B = k.isBackward, W = B === void 0 ? !1 : B;
2498
- I = I || xr(L), p();
2499
- var H = null;
2495
+ return I || (I === !1 ? !1 : L);
2496
+ }, T = function(L) {
2497
+ var I = L.target, w = L.event, F = L.isBackward, V = F === void 0 ? !1 : F;
2498
+ I = I || xr(w), p();
2499
+ var B = null;
2500
2500
  if (u.tabbableGroups.length > 0) {
2501
- var z = c(I, L), y = z >= 0 ? u.containerGroups[z] : void 0;
2501
+ var z = c(I, w), y = z >= 0 ? u.containerGroups[z] : void 0;
2502
2502
  if (z < 0)
2503
- W ? H = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : H = u.tabbableGroups[0].firstTabbableNode;
2504
- else if (W) {
2503
+ V ? B = u.tabbableGroups[u.tabbableGroups.length - 1].lastTabbableNode : B = u.tabbableGroups[0].firstTabbableNode;
2504
+ else if (V) {
2505
2505
  var ne = u.tabbableGroups.findIndex(function(Se) {
2506
2506
  var Oe = Se.firstTabbableNode;
2507
2507
  return I === Oe;
2508
2508
  });
2509
2509
  if (ne < 0 && (y.container === I || wr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !y.nextTabbableNode(I, !1)) && (ne = z), ne >= 0) {
2510
2510
  var ae = ne === 0 ? u.tabbableGroups.length - 1 : ne - 1, v = u.tabbableGroups[ae];
2511
- H = Xt(I) >= 0 ? v.lastTabbableNode : v.lastDomTabbableNode;
2512
- } else Jn(L) || (H = y.nextTabbableNode(I, !1));
2511
+ B = Xt(I) >= 0 ? v.lastTabbableNode : v.lastDomTabbableNode;
2512
+ } else Jn(w) || (B = y.nextTabbableNode(I, !1));
2513
2513
  } else {
2514
2514
  var se = u.tabbableGroups.findIndex(function(Se) {
2515
2515
  var Oe = Se.lastTabbableNode;
@@ -2517,16 +2517,16 @@ var wu = {
2517
2517
  });
2518
2518
  if (se < 0 && (y.container === I || wr(I, i.tabbableOptions) && !rn(I, i.tabbableOptions) && !y.nextTabbableNode(I)) && (se = z), se >= 0) {
2519
2519
  var _e = se === u.tabbableGroups.length - 1 ? 0 : se + 1, pe = u.tabbableGroups[_e];
2520
- H = Xt(I) >= 0 ? pe.firstTabbableNode : pe.firstDomTabbableNode;
2521
- } else Jn(L) || (H = y.nextTabbableNode(I));
2520
+ B = Xt(I) >= 0 ? pe.firstTabbableNode : pe.firstDomTabbableNode;
2521
+ } else Jn(w) || (B = y.nextTabbableNode(I));
2522
2522
  }
2523
2523
  } else
2524
- H = d("fallbackFocus");
2525
- return H;
2526
- }, g = function(k) {
2527
- var I = xr(k);
2528
- if (!(c(I, k) >= 0)) {
2529
- if (qn(i.clickOutsideDeactivates, k)) {
2524
+ B = d("fallbackFocus");
2525
+ return B;
2526
+ }, g = function(L) {
2527
+ var I = xr(L);
2528
+ if (!(c(I, L) >= 0)) {
2529
+ if (qn(i.clickOutsideDeactivates, L)) {
2530
2530
  s.deactivate({
2531
2531
  // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
2532
2532
  // which will result in the outside click setting focus to the node
@@ -2538,56 +2538,56 @@ var wu = {
2538
2538
  });
2539
2539
  return;
2540
2540
  }
2541
- qn(i.allowOutsideClick, k) || k.preventDefault();
2541
+ qn(i.allowOutsideClick, L) || L.preventDefault();
2542
2542
  }
2543
- }, D = function(k) {
2544
- var I = xr(k), L = c(I, k) >= 0;
2545
- if (L || I instanceof Document)
2546
- L && (u.mostRecentlyFocusedNode = I);
2543
+ }, D = function(L) {
2544
+ var I = xr(L), w = c(I, L) >= 0;
2545
+ if (w || I instanceof Document)
2546
+ w && (u.mostRecentlyFocusedNode = I);
2547
2547
  else {
2548
- k.stopImmediatePropagation();
2549
- var B, W = !0;
2548
+ L.stopImmediatePropagation();
2549
+ var F, V = !0;
2550
2550
  if (u.mostRecentlyFocusedNode)
2551
2551
  if (Xt(u.mostRecentlyFocusedNode) > 0) {
2552
- var H = c(u.mostRecentlyFocusedNode), z = u.containerGroups[H].tabbableNodes;
2552
+ var B = c(u.mostRecentlyFocusedNode), z = u.containerGroups[B].tabbableNodes;
2553
2553
  if (z.length > 0) {
2554
2554
  var y = z.findIndex(function(ne) {
2555
2555
  return ne === u.mostRecentlyFocusedNode;
2556
2556
  });
2557
- y >= 0 && (i.isKeyForward(u.recentNavEvent) ? y + 1 < z.length && (B = z[y + 1], W = !1) : y - 1 >= 0 && (B = z[y - 1], W = !1));
2557
+ y >= 0 && (i.isKeyForward(u.recentNavEvent) ? y + 1 < z.length && (F = z[y + 1], V = !1) : y - 1 >= 0 && (F = z[y - 1], V = !1));
2558
2558
  }
2559
2559
  } else
2560
2560
  u.containerGroups.some(function(ne) {
2561
2561
  return ne.tabbableNodes.some(function(ae) {
2562
2562
  return Xt(ae) > 0;
2563
2563
  });
2564
- }) || (W = !1);
2564
+ }) || (V = !1);
2565
2565
  else
2566
- W = !1;
2567
- W && (B = T({
2566
+ V = !1;
2567
+ V && (F = T({
2568
2568
  // move FROM the MRU node, not event-related node (which will be the node that is
2569
2569
  // outside the trap causing the focus escape we're trying to fix)
2570
2570
  target: u.mostRecentlyFocusedNode,
2571
2571
  isBackward: i.isKeyBackward(u.recentNavEvent)
2572
- })), b(B || u.mostRecentlyFocusedNode || f());
2572
+ })), b(F || u.mostRecentlyFocusedNode || f());
2573
2573
  }
2574
2574
  u.recentNavEvent = void 0;
2575
- }, P = function(k) {
2575
+ }, P = function(L) {
2576
2576
  var I = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
2577
- u.recentNavEvent = k;
2578
- var L = T({
2579
- event: k,
2577
+ u.recentNavEvent = L;
2578
+ var w = T({
2579
+ event: L,
2580
2580
  isBackward: I
2581
2581
  });
2582
- L && (Jn(k) && k.preventDefault(), b(L));
2583
- }, X = function(k) {
2584
- (i.isKeyForward(k) || i.isKeyBackward(k)) && P(k, i.isKeyBackward(k));
2585
- }, F = function(k) {
2586
- Lf(k) && qn(i.escapeDeactivates, k) !== !1 && (k.preventDefault(), s.deactivate());
2587
- }, x = function(k) {
2588
- var I = xr(k);
2589
- c(I, k) >= 0 || qn(i.clickOutsideDeactivates, k) || qn(i.allowOutsideClick, k) || (k.preventDefault(), k.stopImmediatePropagation());
2590
- }, w = function() {
2582
+ w && (Jn(L) && L.preventDefault(), b(w));
2583
+ }, W = function(L) {
2584
+ (i.isKeyForward(L) || i.isKeyBackward(L)) && P(L, i.isKeyBackward(L));
2585
+ }, j = function(L) {
2586
+ Lf(L) && qn(i.escapeDeactivates, L) !== !1 && (L.preventDefault(), s.deactivate());
2587
+ }, x = function(L) {
2588
+ var I = xr(L);
2589
+ c(I, L) >= 0 || qn(i.clickOutsideDeactivates, L) || qn(i.allowOutsideClick, L) || (L.preventDefault(), L.stopImmediatePropagation());
2590
+ }, k = function() {
2591
2591
  if (u.active)
2592
2592
  return wu.activateTrap(a, s), u.delayInitialFocusTimer = i.delayInitialFocus ? Ru(function() {
2593
2593
  b(f());
@@ -2600,24 +2600,24 @@ var wu = {
2600
2600
  }), r.addEventListener("click", x, {
2601
2601
  capture: !0,
2602
2602
  passive: !1
2603
- }), r.addEventListener("keydown", X, {
2603
+ }), r.addEventListener("keydown", W, {
2604
2604
  capture: !0,
2605
2605
  passive: !1
2606
- }), r.addEventListener("keydown", F), s;
2607
- }, V = function() {
2606
+ }), r.addEventListener("keydown", j), s;
2607
+ }, G = function() {
2608
2608
  if (u.active)
2609
- return r.removeEventListener("focusin", D, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", X, !0), r.removeEventListener("keydown", F), s;
2610
- }, q = function(k) {
2611
- var I = k.some(function(L) {
2612
- var B = Array.from(L.removedNodes);
2613
- return B.some(function(W) {
2614
- return W === u.mostRecentlyFocusedNode;
2609
+ return r.removeEventListener("focusin", D, !0), r.removeEventListener("mousedown", g, !0), r.removeEventListener("touchstart", g, !0), r.removeEventListener("click", x, !0), r.removeEventListener("keydown", W, !0), r.removeEventListener("keydown", j), s;
2610
+ }, q = function(L) {
2611
+ var I = L.some(function(w) {
2612
+ var F = Array.from(w.removedNodes);
2613
+ return F.some(function(V) {
2614
+ return V === u.mostRecentlyFocusedNode;
2615
2615
  });
2616
2616
  });
2617
2617
  I && b(f());
2618
2618
  }, te = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(q) : void 0, Y = function() {
2619
- te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(k) {
2620
- te.observe(k, {
2619
+ te && (te.disconnect(), u.active && !u.paused && u.containers.map(function(L) {
2620
+ te.observe(L, {
2621
2621
  subtree: !0,
2622
2622
  childList: !0
2623
2623
  });
@@ -2630,44 +2630,44 @@ var wu = {
2630
2630
  get paused() {
2631
2631
  return u.paused;
2632
2632
  },
2633
- activate: function(k) {
2633
+ activate: function(L) {
2634
2634
  if (u.active)
2635
2635
  return this;
2636
- var I = l(k, "onActivate"), L = l(k, "onPostActivate"), B = l(k, "checkCanFocusTrap");
2637
- B || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I?.();
2638
- var W = function() {
2639
- B && p(), w(), Y(), L?.();
2636
+ var I = l(L, "onActivate"), w = l(L, "onPostActivate"), F = l(L, "checkCanFocusTrap");
2637
+ F || p(), u.active = !0, u.paused = !1, u.nodeFocusedBeforeActivation = h(r), I?.();
2638
+ var V = function() {
2639
+ F && p(), k(), Y(), w?.();
2640
2640
  };
2641
- return B ? (B(u.containers.concat()).then(W, W), this) : (W(), this);
2641
+ return F ? (F(u.containers.concat()).then(V, V), this) : (V(), this);
2642
2642
  },
2643
- deactivate: function(k) {
2643
+ deactivate: function(L) {
2644
2644
  if (!u.active)
2645
2645
  return this;
2646
2646
  var I = Lu({
2647
2647
  onDeactivate: i.onDeactivate,
2648
2648
  onPostDeactivate: i.onPostDeactivate,
2649
2649
  checkCanReturnFocus: i.checkCanReturnFocus
2650
- }, k);
2651
- clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, V(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
2652
- var L = l(I, "onDeactivate"), B = l(I, "onPostDeactivate"), W = l(I, "checkCanReturnFocus"), H = l(I, "returnFocus", "returnFocusOnDeactivate");
2653
- L?.();
2650
+ }, L);
2651
+ clearTimeout(u.delayInitialFocusTimer), u.delayInitialFocusTimer = void 0, G(), u.active = !1, u.paused = !1, Y(), wu.deactivateTrap(a, s);
2652
+ var w = l(I, "onDeactivate"), F = l(I, "onPostDeactivate"), V = l(I, "checkCanReturnFocus"), B = l(I, "returnFocus", "returnFocusOnDeactivate");
2653
+ w?.();
2654
2654
  var z = function() {
2655
2655
  Ru(function() {
2656
- H && b(m(u.nodeFocusedBeforeActivation)), B?.();
2656
+ B && b(m(u.nodeFocusedBeforeActivation)), F?.();
2657
2657
  });
2658
2658
  };
2659
- return H && W ? (W(m(u.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
2659
+ return B && V ? (V(m(u.nodeFocusedBeforeActivation)).then(z, z), this) : (z(), this);
2660
2660
  },
2661
- pause: function(k) {
2662
- return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0, k)) : this;
2661
+ pause: function(L) {
2662
+ return u.active ? (u.manuallyPaused = !0, this._setPausedState(!0, L)) : this;
2663
2663
  },
2664
- unpause: function(k) {
2665
- return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1, k)) : this;
2664
+ unpause: function(L) {
2665
+ return u.active ? (u.manuallyPaused = !1, a[a.length - 1] !== this ? this : this._setPausedState(!1, L)) : this;
2666
2666
  },
2667
- updateContainerElements: function(k) {
2668
- var I = [].concat(k).filter(Boolean);
2669
- return u.containers = I.map(function(L) {
2670
- return typeof L == "string" ? r.querySelector(L) : L;
2667
+ updateContainerElements: function(L) {
2668
+ var I = [].concat(L).filter(Boolean);
2669
+ return u.containers = I.map(function(w) {
2670
+ return typeof w == "string" ? r.querySelector(w) : w;
2671
2671
  }), u.active && p(), Y(), this;
2672
2672
  }
2673
2673
  }, Object.defineProperties(s, {
@@ -2677,15 +2677,15 @@ var wu = {
2677
2677
  }
2678
2678
  },
2679
2679
  _setPausedState: {
2680
- value: function(k, I) {
2681
- if (u.paused === k)
2680
+ value: function(L, I) {
2681
+ if (u.paused === L)
2682
2682
  return this;
2683
- if (u.paused = k, k) {
2684
- var L = l(I, "onPause"), B = l(I, "onPostPause");
2685
- L?.(), V(), Y(), B?.();
2683
+ if (u.paused = L, L) {
2684
+ var w = l(I, "onPause"), F = l(I, "onPostPause");
2685
+ w?.(), G(), Y(), F?.();
2686
2686
  } else {
2687
- var W = l(I, "onUnpause"), H = l(I, "onPostUnpause");
2688
- W?.(), p(), w(), Y(), H?.();
2687
+ var V = l(I, "onUnpause"), B = l(I, "onPostUnpause");
2688
+ V?.(), p(), k(), Y(), B?.();
2689
2689
  }
2690
2690
  return this;
2691
2691
  }
@@ -2702,30 +2702,30 @@ function Hf() {
2702
2702
  Du = 1;
2703
2703
  function e(x) {
2704
2704
  "@babel/helpers - typeof";
2705
- return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(w) {
2706
- return typeof w;
2707
- } : function(w) {
2708
- return w && typeof Symbol == "function" && w.constructor === Symbol && w !== Symbol.prototype ? "symbol" : typeof w;
2705
+ return e = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(k) {
2706
+ return typeof k;
2707
+ } : function(k) {
2708
+ return k && typeof Symbol == "function" && k.constructor === Symbol && k !== Symbol.prototype ? "symbol" : typeof k;
2709
2709
  }, e(x);
2710
2710
  }
2711
- function t(x, w) {
2712
- if (!(x instanceof w)) throw new TypeError("Cannot call a class as a function");
2711
+ function t(x, k) {
2712
+ if (!(x instanceof k)) throw new TypeError("Cannot call a class as a function");
2713
2713
  }
2714
- function n(x, w) {
2715
- for (var V = 0; V < w.length; V++) {
2716
- var q = w[V];
2714
+ function n(x, k) {
2715
+ for (var G = 0; G < k.length; G++) {
2716
+ var q = k[G];
2717
2717
  q.enumerable = q.enumerable || !1, q.configurable = !0, "value" in q && (q.writable = !0), Object.defineProperty(x, p(q.key), q);
2718
2718
  }
2719
2719
  }
2720
- function r(x, w, V) {
2721
- return w && n(x.prototype, w), Object.defineProperty(x, "prototype", { writable: !1 }), x;
2720
+ function r(x, k, G) {
2721
+ return k && n(x.prototype, k), Object.defineProperty(x, "prototype", { writable: !1 }), x;
2722
2722
  }
2723
- function a(x, w, V) {
2724
- return w = l(w), i(x, s() ? Reflect.construct(w, V || [], l(x).constructor) : w.apply(x, V));
2723
+ function a(x, k, G) {
2724
+ return k = l(k), i(x, s() ? Reflect.construct(k, G || [], l(x).constructor) : k.apply(x, G));
2725
2725
  }
2726
- function i(x, w) {
2727
- if (w && (e(w) == "object" || typeof w == "function")) return w;
2728
- if (w !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2726
+ function i(x, k) {
2727
+ if (k && (e(k) == "object" || typeof k == "function")) return k;
2728
+ if (k !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
2729
2729
  return u(x);
2730
2730
  }
2731
2731
  function u(x) {
@@ -2743,58 +2743,58 @@ function Hf() {
2743
2743
  })();
2744
2744
  }
2745
2745
  function l(x) {
2746
- return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(w) {
2747
- return w.__proto__ || Object.getPrototypeOf(w);
2746
+ return l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(k) {
2747
+ return k.__proto__ || Object.getPrototypeOf(k);
2748
2748
  }, l(x);
2749
2749
  }
2750
- function c(x, w) {
2751
- if (typeof w != "function" && w !== null) throw new TypeError("Super expression must either be null or a function");
2752
- x.prototype = Object.create(w && w.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), w && d(x, w);
2750
+ function c(x, k) {
2751
+ if (typeof k != "function" && k !== null) throw new TypeError("Super expression must either be null or a function");
2752
+ x.prototype = Object.create(k && k.prototype, { constructor: { value: x, writable: !0, configurable: !0 } }), Object.defineProperty(x, "prototype", { writable: !1 }), k && d(x, k);
2753
2753
  }
2754
- function d(x, w) {
2755
- return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(V, q) {
2756
- return V.__proto__ = q, V;
2757
- }, d(x, w);
2754
+ function d(x, k) {
2755
+ return d = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(G, q) {
2756
+ return G.__proto__ = q, G;
2757
+ }, d(x, k);
2758
2758
  }
2759
- function f(x, w, V) {
2760
- return (w = p(w)) in x ? Object.defineProperty(x, w, { value: V, enumerable: !0, configurable: !0, writable: !0 }) : x[w] = V, x;
2759
+ function f(x, k, G) {
2760
+ return (k = p(k)) in x ? Object.defineProperty(x, k, { value: G, enumerable: !0, configurable: !0, writable: !0 }) : x[k] = G, x;
2761
2761
  }
2762
2762
  function p(x) {
2763
- var w = h(x, "string");
2764
- return e(w) == "symbol" ? w : w + "";
2763
+ var k = h(x, "string");
2764
+ return e(k) == "symbol" ? k : k + "";
2765
2765
  }
2766
- function h(x, w) {
2766
+ function h(x, k) {
2767
2767
  if (e(x) != "object" || !x) return x;
2768
- var V = x[Symbol.toPrimitive];
2769
- if (V !== void 0) {
2770
- var q = V.call(x, w);
2768
+ var G = x[Symbol.toPrimitive];
2769
+ if (G !== void 0) {
2770
+ var q = G.call(x, k);
2771
2771
  if (e(q) != "object") return q;
2772
2772
  throw new TypeError("@@toPrimitive must return a primitive value.");
2773
2773
  }
2774
- return (w === "string" ? String : Number)(x);
2774
+ return (k === "string" ? String : Number)(x);
2775
2775
  }
2776
- var b = Ct, m = /* @__PURE__ */ Ds(), T = Ff, g = T.createFocusTrap, D = Bf, P = D.isFocusable, X = /* @__PURE__ */ (function(x) {
2777
- function w(V) {
2776
+ var b = Ct, m = /* @__PURE__ */ Ds(), T = Ff, g = T.createFocusTrap, D = Bf, P = D.isFocusable, W = /* @__PURE__ */ (function(x) {
2777
+ function k(G) {
2778
2778
  var q;
2779
- t(this, w), q = a(this, w, [V]), f(q, "getNodeForOption", function($) {
2780
- var k, I = (k = this.internalOptions[$]) !== null && k !== void 0 ? k : this.originalOptions[$];
2779
+ t(this, k), q = a(this, k, [G]), f(q, "getNodeForOption", function($) {
2780
+ var L, I = (L = this.internalOptions[$]) !== null && L !== void 0 ? L : this.originalOptions[$];
2781
2781
  if (typeof I == "function") {
2782
- for (var L = arguments.length, B = new Array(L > 1 ? L - 1 : 0), W = 1; W < L; W++)
2783
- B[W - 1] = arguments[W];
2784
- I = I.apply(void 0, B);
2782
+ for (var w = arguments.length, F = new Array(w > 1 ? w - 1 : 0), V = 1; V < w; V++)
2783
+ F[V - 1] = arguments[V];
2784
+ I = I.apply(void 0, F);
2785
2785
  }
2786
2786
  if (I === !0 && (I = void 0), !I) {
2787
2787
  if (I === void 0 || I === !1)
2788
2788
  return I;
2789
2789
  throw new Error("`".concat($, "` was specified but was not a node, or did not return a node"));
2790
2790
  }
2791
- var H = I;
2791
+ var B = I;
2792
2792
  if (typeof I == "string") {
2793
2793
  var z;
2794
- if (H = (z = this.getDocument()) === null || z === void 0 ? void 0 : z.querySelector(I), !H)
2794
+ if (B = (z = this.getDocument()) === null || z === void 0 ? void 0 : z.querySelector(I), !B)
2795
2795
  throw new Error("`".concat($, "` as selector refers to no known node"));
2796
2796
  }
2797
- return H;
2797
+ return B;
2798
2798
  }), q.handleDeactivate = q.handleDeactivate.bind(q), q.handlePostDeactivate = q.handlePostDeactivate.bind(q), q.handleClickOutsideDeactivates = q.handleClickOutsideDeactivates.bind(q), q.internalOptions = {
2799
2799
  // We need to hijack the returnFocusOnDeactivate option,
2800
2800
  // because React can move focus into the element before we arrived at
@@ -2825,7 +2825,7 @@ function Hf() {
2825
2825
  // the user's setting, defaulted to false since focus-trap defaults this to false
2826
2826
  clickOutsideDeactivates: !1
2827
2827
  };
2828
- var te = V.focusTrapOptions;
2828
+ var te = G.focusTrapOptions;
2829
2829
  for (var Y in te)
2830
2830
  if (Object.prototype.hasOwnProperty.call(te, Y)) {
2831
2831
  if (Y === "returnFocusOnDeactivate" || Y === "onDeactivate" || Y === "onPostDeactivate" || Y === "checkCanReturnFocus" || Y === "clickOutsideDeactivates") {
@@ -2834,9 +2834,9 @@ function Hf() {
2834
2834
  }
2835
2835
  q.internalOptions[Y] = te[Y];
2836
2836
  }
2837
- return q.outsideClick = null, q.focusTrapElements = V.containerElements || [], q.updatePreviousElement(), q;
2837
+ return q.outsideClick = null, q.focusTrapElements = G.containerElements || [], q.updatePreviousElement(), q;
2838
2838
  }
2839
- return c(w, x), r(w, [{
2839
+ return c(k, x), r(k, [{
2840
2840
  key: "getDocument",
2841
2841
  value: function() {
2842
2842
  return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
@@ -2892,16 +2892,16 @@ function Hf() {
2892
2892
  key: "handlePostDeactivate",
2893
2893
  value: function() {
2894
2894
  var q = this, te = function() {
2895
- var $ = q.getReturnFocusNode(), k = !!// did the consumer allow it?
2895
+ var $ = q.getReturnFocusNode(), L = !!// did the consumer allow it?
2896
2896
  (q.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
2897
2897
  $ !== null && $ !== void 0 && $.focus && // was there an outside click that allowed deactivation?
2898
2898
  (!q.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
2899
2899
  q.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
2900
2900
  // as a result of the click-through) -- in which case do NOT restore focus
2901
2901
  // to `returnFocusNode` because focus should remain on the outside node
2902
- !P(q.outsideClick.target, q.internalOptions.tabbableOptions))), I = q.internalOptions.preventScroll, L = I === void 0 ? !1 : I;
2903
- k && $.focus({
2904
- preventScroll: L
2902
+ !P(q.outsideClick.target, q.internalOptions.tabbableOptions))), I = q.internalOptions.preventScroll, w = I === void 0 ? !1 : I;
2903
+ L && $.focus({
2904
+ preventScroll: w
2905
2905
  }), q.originalOptions.onPostDeactivate && q.originalOptions.onPostDeactivate.call(null), q.outsideClick = null;
2906
2906
  };
2907
2907
  this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(te, te) : te();
@@ -2926,12 +2926,12 @@ function Hf() {
2926
2926
  value: function(q) {
2927
2927
  if (this.focusTrap) {
2928
2928
  q.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
2929
- var te = !q.active && this.props.active, Y = q.active && !this.props.active, $ = !q.paused && this.props.paused, k = q.paused && !this.props.paused;
2929
+ var te = !q.active && this.props.active, Y = q.active && !this.props.active, $ = !q.paused && this.props.paused, L = q.paused && !this.props.paused;
2930
2930
  if (te && (this.updatePreviousElement(), this.focusTrap.activate()), Y) {
2931
2931
  this.deactivateTrap();
2932
2932
  return;
2933
2933
  }
2934
- $ && this.focusTrap.pause(), k && this.focusTrap.unpause();
2934
+ $ && this.focusTrap.pause(), L && this.focusTrap.unpause();
2935
2935
  } else
2936
2936
  q.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
2937
2937
  }
@@ -2948,8 +2948,8 @@ function Hf() {
2948
2948
  if (te.type && te.type === b.Fragment)
2949
2949
  throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
2950
2950
  var Y = function(I) {
2951
- var L = q.props.containerElements;
2952
- te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), q.focusTrapElements = L || [I];
2951
+ var w = q.props.containerElements;
2952
+ te && (typeof te.ref == "function" ? te.ref(I) : te.ref && (te.ref.current = I)), q.focusTrapElements = w || [I];
2953
2953
  }, $ = b.cloneElement(te, {
2954
2954
  ref: Y
2955
2955
  });
@@ -2958,8 +2958,8 @@ function Hf() {
2958
2958
  return null;
2959
2959
  }
2960
2960
  }]);
2961
- })(b.Component), F = typeof Element > "u" ? Function : Element;
2962
- return X.propTypes = {
2961
+ })(b.Component), j = typeof Element > "u" ? Function : Element;
2962
+ return W.propTypes = {
2963
2963
  active: m.bool,
2964
2964
  paused: m.bool,
2965
2965
  focusTrapOptions: m.shape({
@@ -2974,9 +2974,9 @@ function Hf() {
2974
2974
  onDeactivate: m.func,
2975
2975
  onPostDeactivate: m.func,
2976
2976
  checkCanReturnFocus: m.func,
2977
- initialFocus: m.oneOfType([m.instanceOf(F), m.string, m.bool, m.func]),
2977
+ initialFocus: m.oneOfType([m.instanceOf(j), m.string, m.bool, m.func]),
2978
2978
  fallbackFocus: m.oneOfType([
2979
- m.instanceOf(F),
2979
+ m.instanceOf(j),
2980
2980
  m.string,
2981
2981
  // NOTE: does not support `false` as value (or return value from function)
2982
2982
  m.func
@@ -2984,7 +2984,7 @@ function Hf() {
2984
2984
  escapeDeactivates: m.oneOfType([m.bool, m.func]),
2985
2985
  clickOutsideDeactivates: m.oneOfType([m.bool, m.func]),
2986
2986
  returnFocusOnDeactivate: m.bool,
2987
- setReturnFocus: m.oneOfType([m.instanceOf(F), m.string, m.bool, m.func]),
2987
+ setReturnFocus: m.oneOfType([m.instanceOf(j), m.string, m.bool, m.func]),
2988
2988
  allowOutsideClick: m.oneOfType([m.bool, m.func]),
2989
2989
  preventScroll: m.bool,
2990
2990
  tabbableOptions: m.shape({
@@ -2995,23 +2995,23 @@ function Hf() {
2995
2995
  isKeyForward: m.func,
2996
2996
  isKeyBackward: m.func
2997
2997
  }),
2998
- containerElements: m.arrayOf(m.instanceOf(F)),
2998
+ containerElements: m.arrayOf(m.instanceOf(j)),
2999
2999
  // DOM element ONLY
3000
3000
  children: m.oneOfType([
3001
3001
  m.element,
3002
3002
  // React element
3003
- m.instanceOf(F)
3003
+ m.instanceOf(j)
3004
3004
  // DOM element
3005
3005
  ])
3006
3006
  // NOTE: _createFocusTrap is internal, for testing purposes only, so we don't
3007
3007
  // specify it here. It's expected to be set to the function returned from
3008
3008
  // require('focus-trap'), or one with a compatible interface.
3009
- }, X.defaultProps = {
3009
+ }, W.defaultProps = {
3010
3010
  active: !0,
3011
3011
  paused: !1,
3012
3012
  focusTrapOptions: {},
3013
3013
  _createFocusTrap: g
3014
- }, Ca = X, Ca;
3014
+ }, Ca = W, Ca;
3015
3015
  }
3016
3016
  var Uf = Hf();
3017
3017
  const jf = /* @__PURE__ */ Ft(Uf);
@@ -3347,19 +3347,19 @@ function nh(e, t) {
3347
3347
  const T = [], g = m.hFlip, D = m.vFlip;
3348
3348
  let P = m.rotate;
3349
3349
  g ? D ? P += 2 : (T.push("translate(" + (a.width + a.left).toString() + " " + (0 - a.top).toString() + ")"), T.push("scale(-1 1)"), a.top = a.left = 0) : D && (T.push("translate(" + (0 - a.left).toString() + " " + (a.height + a.top).toString() + ")"), T.push("scale(1 -1)"), a.top = a.left = 0);
3350
- let X;
3350
+ let W;
3351
3351
  switch (P < 0 && (P -= Math.floor(P / 4) * 4), P = P % 4, P) {
3352
3352
  case 1:
3353
- X = a.height / 2 + a.top, T.unshift("rotate(90 " + X.toString() + " " + X.toString() + ")");
3353
+ W = a.height / 2 + a.top, T.unshift("rotate(90 " + W.toString() + " " + W.toString() + ")");
3354
3354
  break;
3355
3355
  case 2:
3356
3356
  T.unshift("rotate(180 " + (a.width / 2 + a.left).toString() + " " + (a.height / 2 + a.top).toString() + ")");
3357
3357
  break;
3358
3358
  case 3:
3359
- X = a.width / 2 + a.left, T.unshift("rotate(-90 " + X.toString() + " " + X.toString() + ")");
3359
+ W = a.width / 2 + a.left, T.unshift("rotate(-90 " + W.toString() + " " + W.toString() + ")");
3360
3360
  break;
3361
3361
  }
3362
- P % 2 === 1 && (a.left !== a.top && (X = a.left, a.left = a.top, a.top = X), a.width !== a.height && (X = a.width, a.width = a.height, a.height = X)), T.length && (i = eh(i, '<g transform="' + T.join(" ") + '">', "</g>"));
3362
+ P % 2 === 1 && (a.left !== a.top && (W = a.left, a.left = a.top, a.top = W), a.width !== a.height && (W = a.width, a.width = a.height, a.height = W)), T.length && (i = eh(i, '<g transform="' + T.join(" ") + '">', "</g>"));
3363
3363
  });
3364
3364
  const u = r.width, s = r.height, l = a.width, c = a.height;
3365
3365
  let d, f;
@@ -3619,8 +3619,8 @@ function Ch(e, t, n, r) {
3619
3619
  if (e.random) {
3620
3620
  let x = e.resources.slice(0);
3621
3621
  for (u = []; x.length > 1; ) {
3622
- const w = Math.floor(Math.random() * x.length);
3623
- u.push(x[w]), x = x.slice(0, w).concat(x.slice(w + 1));
3622
+ const k = Math.floor(Math.random() * x.length);
3623
+ u.push(x[k]), x = x.slice(0, k).concat(x.slice(k + 1));
3624
3624
  }
3625
3625
  u = u.concat(x);
3626
3626
  } else u = e.resources.slice(i).concat(e.resources.slice(0, i));
@@ -3635,8 +3635,8 @@ function Ch(e, t, n, r) {
3635
3635
  x.status === "pending" && (x.status = "aborted");
3636
3636
  }), p = [];
3637
3637
  }
3638
- function T(x, w) {
3639
- w && (h = []), typeof x == "function" && h.push(x);
3638
+ function T(x, k) {
3639
+ k && (h = []), typeof x == "function" && h.push(x);
3640
3640
  }
3641
3641
  function g() {
3642
3642
  return {
@@ -3659,8 +3659,8 @@ function Ch(e, t, n, r) {
3659
3659
  x.status === "pending" && (x.status = "aborted");
3660
3660
  }), p = [];
3661
3661
  }
3662
- function X(x, w, V) {
3663
- const q = w !== "success";
3662
+ function W(x, k, G) {
3663
+ const q = k !== "success";
3664
3664
  switch (p = p.filter((te) => te !== x), l) {
3665
3665
  case "pending":
3666
3666
  break;
@@ -3670,12 +3670,12 @@ function Ch(e, t, n, r) {
3670
3670
  default:
3671
3671
  return;
3672
3672
  }
3673
- if (w === "abort") {
3674
- d = V, D();
3673
+ if (k === "abort") {
3674
+ d = G, D();
3675
3675
  return;
3676
3676
  }
3677
3677
  if (q) {
3678
- d = V, p.length || (u.length ? F() : D());
3678
+ d = G, p.length || (u.length ? j() : D());
3679
3679
  return;
3680
3680
  }
3681
3681
  if (b(), P(), !e.random) {
@@ -3683,10 +3683,10 @@ function Ch(e, t, n, r) {
3683
3683
  te !== -1 && te !== e.index && (e.index = te);
3684
3684
  }
3685
3685
  l = "completed", h.forEach((te) => {
3686
- te(V);
3686
+ te(G);
3687
3687
  });
3688
3688
  }
3689
- function F() {
3689
+ function j() {
3690
3690
  if (l !== "pending") return;
3691
3691
  b();
3692
3692
  const x = u.shift();
@@ -3700,16 +3700,16 @@ function Ch(e, t, n, r) {
3700
3700
  D();
3701
3701
  return;
3702
3702
  }
3703
- const w = {
3703
+ const k = {
3704
3704
  status: "pending",
3705
3705
  resource: x,
3706
- callback: (V, q) => {
3707
- X(w, V, q);
3706
+ callback: (G, q) => {
3707
+ W(k, G, q);
3708
3708
  }
3709
3709
  };
3710
- p.push(w), c++, f = setTimeout(F, e.rotate), n(x, t, w.callback);
3710
+ p.push(k), c++, f = setTimeout(j, e.rotate), n(x, t, k.callback);
3711
3711
  }
3712
- return setTimeout(F), g;
3712
+ return setTimeout(j), g;
3713
3713
  }
3714
3714
  function cl(e) {
3715
3715
  const t = {
@@ -4185,102 +4185,93 @@ function Ni({
4185
4185
  inputRef: r,
4186
4186
  handleChange: a
4187
4187
  }) {
4188
- const i = et(!1), { conversationScreen: u, primaryColor: s } = oe($e), { handleStop: l, onStreamingStop: c } = oe($t), {
4189
- hasError: d,
4190
- hasNewMessage: f,
4191
- loading: p,
4192
- loadingHistory: h,
4193
- streaming: b,
4194
- internalStreaming: m,
4195
- externalStreaming: T
4196
- } = oe(tt), [g, D] = le(""), P = dt(
4197
- (V) => {
4198
- V.preventDefault(), D(V.target.value), a && a(V);
4188
+ const i = et(!1), { conversationScreen: u } = oe($e), { handleStop: s, onStreamingStop: l } = oe($t), {
4189
+ hasError: c,
4190
+ hasNewMessage: d,
4191
+ loading: f,
4192
+ loadingHistory: p,
4193
+ streaming: h,
4194
+ internalStreaming: b,
4195
+ externalStreaming: m
4196
+ } = oe(tt), [T, g] = le(""), D = dt(
4197
+ (k) => {
4198
+ k.preventDefault(), g(k.target.value), a && a(k);
4199
4199
  },
4200
- [a, D]
4201
- ), X = () => {
4202
- D(""), r.current && (r.current.style.height = "auto");
4203
- }, F = e || p || h || b;
4200
+ [a, g]
4201
+ ), P = () => {
4202
+ g(""), r.current && (r.current.style.height = "auto");
4203
+ }, W = e || f || p || h;
4204
4204
  Le(() => {
4205
- i.current && !F && r.current?.focus(), i.current = F;
4206
- }, [F, r]), Le(() => {
4207
- (d || f) && r.current?.focus();
4208
- }, [f, d, r]);
4209
- const x = (V) => {
4210
- V.key === "Enter" && g.trim() === "" || V.key === "Enter" && !V.shiftKey && (V.preventDefault(), t(g), X());
4211
- }, w = () => {
4205
+ i.current && !W && r.current?.focus(), i.current = W;
4206
+ }, [W, r]), Le(() => {
4207
+ (c || d) && r.current?.focus();
4208
+ }, [d, c, r]);
4209
+ const j = (k) => {
4210
+ k.key === "Enter" && T.trim() === "" || k.key === "Enter" && !k.shiftKey && (k.preventDefault(), t(T), P());
4211
+ }, x = () => {
4212
4212
  /* istanbul ignore next @preserve */
4213
4213
  r.current && (r.current.style.height = "auto", r.current.style.height = `${Math.min(
4214
4214
  r.current?.scrollHeight,
4215
4215
  120
4216
4216
  )}px`);
4217
4217
  };
4218
- return /* @__PURE__ */ _.jsxs(
4219
- "div",
4220
- {
4221
- className: "xpert-chatbot-popup__input--group",
4222
- style: {
4223
- margin: n,
4224
- border: `2px solid ${s}`,
4225
- borderRadius: "1rem"
4226
- },
4227
- children: [
4228
- /* @__PURE__ */ _.jsx(
4229
- "textarea",
4230
- {
4231
- "data-testid": "ConversationInput",
4232
- disabled: F,
4233
- value: g,
4234
- ref: r,
4235
- onInput: w,
4236
- onChange: P,
4237
- placeholder: "Write a message",
4238
- cols: "5",
4239
- rows: "1",
4240
- maxLength: u?.input?.maxLength ?? 5e3,
4241
- onKeyDown: x,
4242
- style: {
4243
- margin: "0",
4244
- boxSizing: "border-box",
4245
- fontFamily: "inherit",
4246
- fontSize: "1rem",
4247
- // required to avoid IOS mobile scaling when input is focused
4248
- fontWeight: "300",
4249
- lineHeight: "1.56rem",
4250
- minHeight: "3.25rem",
4251
- padding: "12.5px 45px 12.5px 12.5px",
4252
- resize: "none",
4253
- width: "100%"
4254
- }
4255
- }
4256
- ),
4257
- T && c || p || m ? /* @__PURE__ */ _.jsx(
4258
- "button",
4259
- {
4260
- "data-testid": "Stop",
4261
- className: "xpert-chatbot-popup__input--stop-btn",
4262
- onClick: (V) => {
4263
- V.preventDefault(), l();
4264
- },
4265
- "aria-label": "Stop streaming",
4266
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4267
- }
4268
- ) : /* @__PURE__ */ _.jsx(
4269
- "button",
4270
- {
4271
- "data-testid": "Send",
4272
- disabled: F,
4273
- className: "xpert-chatbot-popup__input--send-btn",
4274
- onClick: (V) => {
4275
- V.preventDefault(), t(g), X();
4276
- },
4277
- "aria-label": "Send message",
4278
- children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4279
- }
4280
- )
4281
- ]
4282
- }
4283
- );
4218
+ return /* @__PURE__ */ _.jsxs("div", { className: "xpert-chatbot-popup__input--group", style: { margin: n }, children: [
4219
+ /* @__PURE__ */ _.jsx(
4220
+ "textarea",
4221
+ {
4222
+ "data-testid": "ConversationInput",
4223
+ disabled: W,
4224
+ value: T,
4225
+ ref: r,
4226
+ onInput: x,
4227
+ onChange: D,
4228
+ placeholder: "Write a message",
4229
+ cols: "5",
4230
+ rows: "1",
4231
+ maxLength: u?.input?.maxLength ?? 5e3,
4232
+ onKeyDown: j,
4233
+ style: {
4234
+ margin: "0",
4235
+ boxSizing: "border-box",
4236
+ fontFamily: "inherit",
4237
+ fontSize: "1rem",
4238
+ // required to avoid IOS mobile scaling when input is focused
4239
+ fontWeight: "300",
4240
+ lineHeight: "1.56rem",
4241
+ minHeight: "3.25rem",
4242
+ padding: "12.5px 45px 12.5px 12.5px",
4243
+ resize: "none",
4244
+ width: "100%",
4245
+ borderRadius: "1rem",
4246
+ color: "#000000"
4247
+ }
4248
+ }
4249
+ ),
4250
+ m && l || f || b ? /* @__PURE__ */ _.jsx(
4251
+ "button",
4252
+ {
4253
+ "data-testid": "Stop",
4254
+ className: "xpert-chatbot-popup__input--stop-btn",
4255
+ onClick: (k) => {
4256
+ k.preventDefault(), s();
4257
+ },
4258
+ "aria-label": "Stop streaming",
4259
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:stop", style: { fontSize: "1.75rem" } })
4260
+ }
4261
+ ) : /* @__PURE__ */ _.jsx(
4262
+ "button",
4263
+ {
4264
+ "data-testid": "Send",
4265
+ disabled: W,
4266
+ className: "xpert-chatbot-popup__input--send-btn",
4267
+ onClick: (k) => {
4268
+ k.preventDefault(), t(T), P();
4269
+ },
4270
+ "aria-label": "Send message",
4271
+ children: /* @__PURE__ */ _.jsx(kt, { icon: "material-symbols:send", style: { fontSize: "1.75rem" } })
4272
+ }
4273
+ )
4274
+ ] });
4284
4275
  }
4285
4276
  Ni.propTypes = {
4286
4277
  containerStyle: A.shape(),
@@ -4955,45 +4946,45 @@ function bl() {
4955
4946
  function l(m, ...T) {
4956
4947
  let g;
4957
4948
  if (wa("use", r), m != null) if (typeof m == "function")
4958
- F(m, ...T);
4949
+ j(m, ...T);
4959
4950
  else if (typeof m == "object")
4960
- Array.isArray(m) ? X(m) : P(m);
4951
+ Array.isArray(m) ? W(m) : P(m);
4961
4952
  else
4962
4953
  throw new TypeError("Expected usable value, not `" + m + "`");
4963
4954
  return g && (n.settings = Object.assign(n.settings || {}, g)), i;
4964
4955
  function D(x) {
4965
4956
  if (typeof x == "function")
4966
- F(x);
4957
+ j(x);
4967
4958
  else if (typeof x == "object")
4968
4959
  if (Array.isArray(x)) {
4969
- const [w, ...V] = x;
4970
- F(w, ...V);
4960
+ const [k, ...G] = x;
4961
+ j(k, ...G);
4971
4962
  } else
4972
4963
  P(x);
4973
4964
  else
4974
4965
  throw new TypeError("Expected usable value, not `" + x + "`");
4975
4966
  }
4976
4967
  function P(x) {
4977
- X(x.plugins), x.settings && (g = Object.assign(g || {}, x.settings));
4968
+ W(x.plugins), x.settings && (g = Object.assign(g || {}, x.settings));
4978
4969
  }
4979
- function X(x) {
4980
- let w = -1;
4970
+ function W(x) {
4971
+ let k = -1;
4981
4972
  if (x != null) if (Array.isArray(x))
4982
- for (; ++w < x.length; ) {
4983
- const V = x[w];
4984
- D(V);
4973
+ for (; ++k < x.length; ) {
4974
+ const G = x[k];
4975
+ D(G);
4985
4976
  }
4986
4977
  else
4987
4978
  throw new TypeError("Expected a list of plugins, not `" + x + "`");
4988
4979
  }
4989
- function F(x, w) {
4990
- let V = -1, q;
4991
- for (; ++V < t.length; )
4992
- if (t[V][0] === x) {
4993
- q = t[V];
4980
+ function j(x, k) {
4981
+ let G = -1, q;
4982
+ for (; ++G < t.length; )
4983
+ if (t[G][0] === x) {
4984
+ q = t[G];
4994
4985
  break;
4995
4986
  }
4996
- q ? (oi(q[1]) && oi(w) && (w = Ju(!0, q[1], w)), q[1] = w) : t.push([...arguments]);
4987
+ q ? (oi(q[1]) && oi(k) && (k = Ju(!0, q[1], k)), q[1] = k) : t.push([...arguments]);
4997
4988
  }
4998
4989
  }
4999
4990
  function c(m) {
@@ -5010,18 +5001,18 @@ function bl() {
5010
5001
  if (to(m), i.freeze(), !g && typeof T == "function" && (g = T, T = void 0), !g)
5011
5002
  return new Promise(D);
5012
5003
  D(null, g);
5013
- function D(P, X) {
5014
- e.run(m, $n(T), F);
5015
- function F(x, w, V) {
5016
- w = w || m, x ? X(x) : P ? P(w) : g(null, w, V);
5004
+ function D(P, W) {
5005
+ e.run(m, $n(T), j);
5006
+ function j(x, k, G) {
5007
+ k = k || m, x ? W(x) : P ? P(k) : g(null, k, G);
5017
5008
  }
5018
5009
  }
5019
5010
  }
5020
5011
  function p(m, T) {
5021
5012
  let g, D;
5022
5013
  return i.run(m, T, P), no("runSync", "run", D), g;
5023
- function P(X, F) {
5024
- Qu(X), g = F, D = !0;
5014
+ function P(W, j) {
5015
+ Qu(W), g = j, D = !0;
5025
5016
  }
5026
5017
  }
5027
5018
  function h(m, T) {
@@ -5029,17 +5020,17 @@ function bl() {
5029
5020
  return new Promise(g);
5030
5021
  g(null, T);
5031
5022
  function g(D, P) {
5032
- const X = $n(m);
5033
- i.run(i.parse(X), X, (x, w, V) => {
5034
- if (x || !w || !V)
5035
- F(x);
5023
+ const W = $n(m);
5024
+ i.run(i.parse(W), W, (x, k, G) => {
5025
+ if (x || !k || !G)
5026
+ j(x);
5036
5027
  else {
5037
- const q = i.stringify(w, V);
5038
- q == null || (cp(q) ? V.value = q : V.result = q), F(x, V);
5028
+ const q = i.stringify(k, G);
5029
+ q == null || (cp(q) ? G.value = q : G.result = q), j(x, G);
5039
5030
  }
5040
5031
  });
5041
- function F(x, w) {
5042
- x || !w ? P(x) : D ? D(w) : T(null, w);
5032
+ function j(x, k) {
5033
+ x || !k ? P(x) : D ? D(k) : T(null, k);
5043
5034
  }
5044
5035
  }
5045
5036
  }
@@ -5236,9 +5227,9 @@ function yp(e) {
5236
5227
  return s;
5237
5228
  function s(P) {
5238
5229
  if (r < n.length) {
5239
- const X = n[r];
5240
- return t.containerState = X[1], e.attempt(
5241
- X[0].continuation,
5230
+ const W = n[r];
5231
+ return t.containerState = W[1], e.attempt(
5232
+ W[0].continuation,
5242
5233
  l,
5243
5234
  c
5244
5235
  )(P);
@@ -5248,23 +5239,23 @@ function yp(e) {
5248
5239
  function l(P) {
5249
5240
  if (r++, t.containerState._closeFlow) {
5250
5241
  t.containerState._closeFlow = void 0, a && D();
5251
- const X = t.events.length;
5252
- let F = X, x;
5253
- for (; F--; )
5254
- if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
5255
- x = t.events[F][1].end;
5242
+ const W = t.events.length;
5243
+ let j = W, x;
5244
+ for (; j--; )
5245
+ if (t.events[j][0] === "exit" && t.events[j][1].type === "chunkFlow") {
5246
+ x = t.events[j][1].end;
5256
5247
  break;
5257
5248
  }
5258
5249
  g(r);
5259
- let w = X;
5260
- for (; w < t.events.length; )
5261
- t.events[w][1].end = Object.assign({}, x), w++;
5250
+ let k = W;
5251
+ for (; k < t.events.length; )
5252
+ t.events[k][1].end = Object.assign({}, x), k++;
5262
5253
  return Mt(
5263
5254
  t.events,
5264
- F + 1,
5255
+ j + 1,
5265
5256
  0,
5266
- t.events.slice(X)
5267
- ), t.events.length = w, c(P);
5257
+ t.events.slice(W)
5258
+ ), t.events.length = k, c(P);
5268
5259
  }
5269
5260
  return s(P);
5270
5261
  }
@@ -5316,9 +5307,9 @@ function yp(e) {
5316
5307
  }
5317
5308
  return ki(P) ? (e.consume(P), T(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(P), m);
5318
5309
  }
5319
- function T(P, X) {
5320
- const F = t.sliceStream(P);
5321
- if (X && F.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(F), t.parser.lazy[P.start.line]) {
5310
+ function T(P, W) {
5311
+ const j = t.sliceStream(P);
5312
+ if (W && j.push(null), P.previous = i, i && (i.next = P), i = P, a.defineSkip(P.start), a.write(j), t.parser.lazy[P.start.line]) {
5322
5313
  let x = a.events.length;
5323
5314
  for (; x--; )
5324
5315
  if (
@@ -5328,31 +5319,31 @@ function yp(e) {
5328
5319
  a.events[x][1].end.offset > u)
5329
5320
  )
5330
5321
  return;
5331
- const w = t.events.length;
5332
- let V = w, q, te;
5333
- for (; V--; )
5334
- if (t.events[V][0] === "exit" && t.events[V][1].type === "chunkFlow") {
5322
+ const k = t.events.length;
5323
+ let G = k, q, te;
5324
+ for (; G--; )
5325
+ if (t.events[G][0] === "exit" && t.events[G][1].type === "chunkFlow") {
5335
5326
  if (q) {
5336
- te = t.events[V][1].end;
5327
+ te = t.events[G][1].end;
5337
5328
  break;
5338
5329
  }
5339
5330
  q = !0;
5340
5331
  }
5341
- for (g(r), x = w; x < t.events.length; )
5332
+ for (g(r), x = k; x < t.events.length; )
5342
5333
  t.events[x][1].end = Object.assign({}, te), x++;
5343
5334
  Mt(
5344
5335
  t.events,
5345
- V + 1,
5336
+ G + 1,
5346
5337
  0,
5347
- t.events.slice(w)
5338
+ t.events.slice(k)
5348
5339
  ), t.events.length = x;
5349
5340
  }
5350
5341
  }
5351
5342
  function g(P) {
5352
- let X = n.length;
5353
- for (; X-- > P; ) {
5354
- const F = n[X];
5355
- t.containerState = F[1], F[0].exit.call(t, e);
5343
+ let W = n.length;
5344
+ for (; W-- > P; ) {
5345
+ const j = n[W];
5346
+ t.containerState = j[1], j[0].exit.call(t, e);
5356
5347
  }
5357
5348
  n.length = P;
5358
5349
  }
@@ -5651,7 +5642,7 @@ const co = {
5651
5642
  };
5652
5643
  function Up(e, t, n) {
5653
5644
  const r = this, a = {
5654
- tokenize: F,
5645
+ tokenize: j,
5655
5646
  partial: !0
5656
5647
  };
5657
5648
  let i = 0, u = 0, s;
@@ -5660,14 +5651,14 @@ function Up(e, t, n) {
5660
5651
  return c(x);
5661
5652
  }
5662
5653
  function c(x) {
5663
- const w = r.events[r.events.length - 1];
5664
- return i = w && w[1].type === "linePrefix" ? w[2].sliceSerialize(w[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(x);
5654
+ const k = r.events[r.events.length - 1];
5655
+ return i = k && k[1].type === "linePrefix" ? k[2].sliceSerialize(k[1], !0).length : 0, s = x, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), d(x);
5665
5656
  }
5666
5657
  function d(x) {
5667
5658
  return x === s ? (u++, e.consume(x), d) : u < 3 ? n(x) : (e.exit("codeFencedFenceSequence"), ke(x) ? Pe(e, f, "whitespace")(x) : f(x));
5668
5659
  }
5669
5660
  function f(x) {
5670
- return x === null || ge(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(co, m, X)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5661
+ return x === null || ge(x) ? (e.exit("codeFencedFence"), r.interrupt ? t(x) : e.check(co, m, W)(x)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
5671
5662
  contentType: "string"
5672
5663
  }), p(x));
5673
5664
  }
@@ -5683,7 +5674,7 @@ function Up(e, t, n) {
5683
5674
  return x === null || ge(x) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(x)) : x === 96 && x === s ? n(x) : (e.consume(x), b);
5684
5675
  }
5685
5676
  function m(x) {
5686
- return e.attempt(a, X, T)(x);
5677
+ return e.attempt(a, W, T)(x);
5687
5678
  }
5688
5679
  function T(x) {
5689
5680
  return e.enter("lineEnding"), e.consume(x), e.exit("lineEnding"), g;
@@ -5697,36 +5688,36 @@ function Up(e, t, n) {
5697
5688
  )(x) : D(x);
5698
5689
  }
5699
5690
  function D(x) {
5700
- return x === null || ge(x) ? e.check(co, m, X)(x) : (e.enter("codeFlowValue"), P(x));
5691
+ return x === null || ge(x) ? e.check(co, m, W)(x) : (e.enter("codeFlowValue"), P(x));
5701
5692
  }
5702
5693
  function P(x) {
5703
5694
  return x === null || ge(x) ? (e.exit("codeFlowValue"), D(x)) : (e.consume(x), P);
5704
5695
  }
5705
- function X(x) {
5696
+ function W(x) {
5706
5697
  return e.exit("codeFenced"), t(x);
5707
5698
  }
5708
- function F(x, w, V) {
5699
+ function j(x, k, G) {
5709
5700
  let q = 0;
5710
5701
  return te;
5711
- function te(L) {
5712
- return x.enter("lineEnding"), x.consume(L), x.exit("lineEnding"), Y;
5702
+ function te(w) {
5703
+ return x.enter("lineEnding"), x.consume(w), x.exit("lineEnding"), Y;
5713
5704
  }
5714
- function Y(L) {
5715
- return x.enter("codeFencedFence"), ke(L) ? Pe(
5705
+ function Y(w) {
5706
+ return x.enter("codeFencedFence"), ke(w) ? Pe(
5716
5707
  x,
5717
5708
  $,
5718
5709
  "linePrefix",
5719
5710
  r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4
5720
- )(L) : $(L);
5711
+ )(w) : $(w);
5721
5712
  }
5722
- function $(L) {
5723
- return L === s ? (x.enter("codeFencedFenceSequence"), k(L)) : V(L);
5713
+ function $(w) {
5714
+ return w === s ? (x.enter("codeFencedFenceSequence"), L(w)) : G(w);
5724
5715
  }
5725
- function k(L) {
5726
- return L === s ? (q++, x.consume(L), k) : q >= u ? (x.exit("codeFencedFenceSequence"), ke(L) ? Pe(x, I, "whitespace")(L) : I(L)) : V(L);
5716
+ function L(w) {
5717
+ return w === s ? (q++, x.consume(w), L) : q >= u ? (x.exit("codeFencedFenceSequence"), ke(w) ? Pe(x, I, "whitespace")(w) : I(w)) : G(w);
5727
5718
  }
5728
- function I(L) {
5729
- return L === null || ge(L) ? (x.exit("codeFencedFence"), w(L)) : V(L);
5719
+ function I(w) {
5720
+ return w === null || ge(w) ? (x.exit("codeFencedFence"), k(w)) : G(w);
5730
5721
  }
5731
5722
  }
5732
5723
  }
@@ -6280,22 +6271,22 @@ function y1(e, t, n) {
6280
6271
  return ke(v) ? (e.consume(v), D) : te(v);
6281
6272
  }
6282
6273
  function P(v) {
6283
- return v === 47 ? (e.consume(v), te) : v === 58 || v === 95 || Pt(v) ? (e.consume(v), X) : ke(v) ? (e.consume(v), P) : te(v);
6274
+ return v === 47 ? (e.consume(v), te) : v === 58 || v === 95 || Pt(v) ? (e.consume(v), W) : ke(v) ? (e.consume(v), P) : te(v);
6284
6275
  }
6285
- function X(v) {
6286
- return v === 45 || v === 46 || v === 58 || v === 95 || It(v) ? (e.consume(v), X) : F(v);
6276
+ function W(v) {
6277
+ return v === 45 || v === 46 || v === 58 || v === 95 || It(v) ? (e.consume(v), W) : j(v);
6287
6278
  }
6288
- function F(v) {
6289
- return v === 61 ? (e.consume(v), x) : ke(v) ? (e.consume(v), F) : P(v);
6279
+ function j(v) {
6280
+ return v === 61 ? (e.consume(v), x) : ke(v) ? (e.consume(v), j) : P(v);
6290
6281
  }
6291
6282
  function x(v) {
6292
- return v === null || v === 60 || v === 61 || v === 62 || v === 96 ? n(v) : v === 34 || v === 39 ? (e.consume(v), l = v, w) : ke(v) ? (e.consume(v), x) : V(v);
6283
+ return v === null || v === 60 || v === 61 || v === 62 || v === 96 ? n(v) : v === 34 || v === 39 ? (e.consume(v), l = v, k) : ke(v) ? (e.consume(v), x) : G(v);
6293
6284
  }
6294
- function w(v) {
6295
- return v === l ? (e.consume(v), l = null, q) : v === null || ge(v) ? n(v) : (e.consume(v), w);
6285
+ function k(v) {
6286
+ return v === l ? (e.consume(v), l = null, q) : v === null || ge(v) ? n(v) : (e.consume(v), k);
6296
6287
  }
6297
- function V(v) {
6298
- return v === null || v === 34 || v === 39 || v === 47 || v === 60 || v === 61 || v === 62 || v === 96 || At(v) ? F(v) : (e.consume(v), V);
6288
+ function G(v) {
6289
+ return v === null || v === 34 || v === 39 || v === 47 || v === 60 || v === 61 || v === 62 || v === 96 || At(v) ? j(v) : (e.consume(v), G);
6299
6290
  }
6300
6291
  function q(v) {
6301
6292
  return v === 47 || v === 62 || ke(v) ? P(v) : n(v);
@@ -6307,13 +6298,13 @@ function y1(e, t, n) {
6307
6298
  return v === null || ge(v) ? $(v) : ke(v) ? (e.consume(v), Y) : n(v);
6308
6299
  }
6309
6300
  function $(v) {
6310
- return v === 45 && a === 2 ? (e.consume(v), B) : v === 60 && a === 1 ? (e.consume(v), W) : v === 62 && a === 4 ? (e.consume(v), ne) : v === 63 && a === 3 ? (e.consume(v), y) : v === 93 && a === 5 ? (e.consume(v), z) : ge(v) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6301
+ return v === 45 && a === 2 ? (e.consume(v), F) : v === 60 && a === 1 ? (e.consume(v), V) : v === 62 && a === 4 ? (e.consume(v), ne) : v === 63 && a === 3 ? (e.consume(v), y) : v === 93 && a === 5 ? (e.consume(v), z) : ge(v) && (a === 6 || a === 7) ? (e.exit("htmlFlowData"), e.check(
6311
6302
  b1,
6312
6303
  ae,
6313
- k
6314
- )(v)) : v === null || ge(v) ? (e.exit("htmlFlowData"), k(v)) : (e.consume(v), $);
6304
+ L
6305
+ )(v)) : v === null || ge(v) ? (e.exit("htmlFlowData"), L(v)) : (e.consume(v), $);
6315
6306
  }
6316
- function k(v) {
6307
+ function L(v) {
6317
6308
  return e.check(
6318
6309
  E1,
6319
6310
  I,
@@ -6321,23 +6312,23 @@ function y1(e, t, n) {
6321
6312
  )(v);
6322
6313
  }
6323
6314
  function I(v) {
6324
- return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), L;
6315
+ return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), w;
6325
6316
  }
6326
- function L(v) {
6327
- return v === null || ge(v) ? k(v) : (e.enter("htmlFlowData"), $(v));
6317
+ function w(v) {
6318
+ return v === null || ge(v) ? L(v) : (e.enter("htmlFlowData"), $(v));
6328
6319
  }
6329
- function B(v) {
6320
+ function F(v) {
6330
6321
  return v === 45 ? (e.consume(v), y) : $(v);
6331
6322
  }
6332
- function W(v) {
6333
- return v === 47 ? (e.consume(v), u = "", H) : $(v);
6323
+ function V(v) {
6324
+ return v === 47 ? (e.consume(v), u = "", B) : $(v);
6334
6325
  }
6335
- function H(v) {
6326
+ function B(v) {
6336
6327
  if (v === 62) {
6337
6328
  const se = u.toLowerCase();
6338
6329
  return go.includes(se) ? (e.consume(v), ne) : $(v);
6339
6330
  }
6340
- return Pt(v) && u.length < 8 ? (e.consume(v), u += String.fromCharCode(v), H) : $(v);
6331
+ return Pt(v) && u.length < 8 ? (e.consume(v), u += String.fromCharCode(v), B) : $(v);
6341
6332
  }
6342
6333
  function z(v) {
6343
6334
  return v === 93 ? (e.consume(v), y) : $(v);
@@ -6380,7 +6371,7 @@ function S1(e, t, n) {
6380
6371
  return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(y), l;
6381
6372
  }
6382
6373
  function l(y) {
6383
- return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), F) : y === 63 ? (e.consume(y), P) : Pt(y) ? (e.consume(y), V) : n(y);
6374
+ return y === 33 ? (e.consume(y), c) : y === 47 ? (e.consume(y), j) : y === 63 ? (e.consume(y), P) : Pt(y) ? (e.consume(y), G) : n(y);
6384
6375
  }
6385
6376
  function c(y) {
6386
6377
  return y === 45 ? (e.consume(y), d) : y === 91 ? (e.consume(y), i = 0, b) : Pt(y) ? (e.consume(y), D) : n(y);
@@ -6389,76 +6380,76 @@ function S1(e, t, n) {
6389
6380
  return y === 45 ? (e.consume(y), h) : n(y);
6390
6381
  }
6391
6382
  function f(y) {
6392
- return y === null ? n(y) : y === 45 ? (e.consume(y), p) : ge(y) ? (u = f, W(y)) : (e.consume(y), f);
6383
+ return y === null ? n(y) : y === 45 ? (e.consume(y), p) : ge(y) ? (u = f, V(y)) : (e.consume(y), f);
6393
6384
  }
6394
6385
  function p(y) {
6395
6386
  return y === 45 ? (e.consume(y), h) : f(y);
6396
6387
  }
6397
6388
  function h(y) {
6398
- return y === 62 ? B(y) : y === 45 ? p(y) : f(y);
6389
+ return y === 62 ? F(y) : y === 45 ? p(y) : f(y);
6399
6390
  }
6400
6391
  function b(y) {
6401
6392
  const ne = "CDATA[";
6402
6393
  return y === ne.charCodeAt(i++) ? (e.consume(y), i === ne.length ? m : b) : n(y);
6403
6394
  }
6404
6395
  function m(y) {
6405
- return y === null ? n(y) : y === 93 ? (e.consume(y), T) : ge(y) ? (u = m, W(y)) : (e.consume(y), m);
6396
+ return y === null ? n(y) : y === 93 ? (e.consume(y), T) : ge(y) ? (u = m, V(y)) : (e.consume(y), m);
6406
6397
  }
6407
6398
  function T(y) {
6408
6399
  return y === 93 ? (e.consume(y), g) : m(y);
6409
6400
  }
6410
6401
  function g(y) {
6411
- return y === 62 ? B(y) : y === 93 ? (e.consume(y), g) : m(y);
6402
+ return y === 62 ? F(y) : y === 93 ? (e.consume(y), g) : m(y);
6412
6403
  }
6413
6404
  function D(y) {
6414
- return y === null || y === 62 ? B(y) : ge(y) ? (u = D, W(y)) : (e.consume(y), D);
6405
+ return y === null || y === 62 ? F(y) : ge(y) ? (u = D, V(y)) : (e.consume(y), D);
6415
6406
  }
6416
6407
  function P(y) {
6417
- return y === null ? n(y) : y === 63 ? (e.consume(y), X) : ge(y) ? (u = P, W(y)) : (e.consume(y), P);
6408
+ return y === null ? n(y) : y === 63 ? (e.consume(y), W) : ge(y) ? (u = P, V(y)) : (e.consume(y), P);
6418
6409
  }
6419
- function X(y) {
6420
- return y === 62 ? B(y) : P(y);
6410
+ function W(y) {
6411
+ return y === 62 ? F(y) : P(y);
6421
6412
  }
6422
- function F(y) {
6413
+ function j(y) {
6423
6414
  return Pt(y) ? (e.consume(y), x) : n(y);
6424
6415
  }
6425
6416
  function x(y) {
6426
- return y === 45 || It(y) ? (e.consume(y), x) : w(y);
6417
+ return y === 45 || It(y) ? (e.consume(y), x) : k(y);
6427
6418
  }
6428
- function w(y) {
6429
- return ge(y) ? (u = w, W(y)) : ke(y) ? (e.consume(y), w) : B(y);
6419
+ function k(y) {
6420
+ return ge(y) ? (u = k, V(y)) : ke(y) ? (e.consume(y), k) : F(y);
6430
6421
  }
6431
- function V(y) {
6432
- return y === 45 || It(y) ? (e.consume(y), V) : y === 47 || y === 62 || At(y) ? q(y) : n(y);
6422
+ function G(y) {
6423
+ return y === 45 || It(y) ? (e.consume(y), G) : y === 47 || y === 62 || At(y) ? q(y) : n(y);
6433
6424
  }
6434
6425
  function q(y) {
6435
- return y === 47 ? (e.consume(y), B) : y === 58 || y === 95 || Pt(y) ? (e.consume(y), te) : ge(y) ? (u = q, W(y)) : ke(y) ? (e.consume(y), q) : B(y);
6426
+ return y === 47 ? (e.consume(y), F) : y === 58 || y === 95 || Pt(y) ? (e.consume(y), te) : ge(y) ? (u = q, V(y)) : ke(y) ? (e.consume(y), q) : F(y);
6436
6427
  }
6437
6428
  function te(y) {
6438
6429
  return y === 45 || y === 46 || y === 58 || y === 95 || It(y) ? (e.consume(y), te) : Y(y);
6439
6430
  }
6440
6431
  function Y(y) {
6441
- return y === 61 ? (e.consume(y), $) : ge(y) ? (u = Y, W(y)) : ke(y) ? (e.consume(y), Y) : q(y);
6432
+ return y === 61 ? (e.consume(y), $) : ge(y) ? (u = Y, V(y)) : ke(y) ? (e.consume(y), Y) : q(y);
6442
6433
  }
6443
6434
  function $(y) {
6444
- return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, k) : ge(y) ? (u = $, W(y)) : ke(y) ? (e.consume(y), $) : (e.consume(y), I);
6435
+ return y === null || y === 60 || y === 61 || y === 62 || y === 96 ? n(y) : y === 34 || y === 39 ? (e.consume(y), a = y, L) : ge(y) ? (u = $, V(y)) : ke(y) ? (e.consume(y), $) : (e.consume(y), I);
6445
6436
  }
6446
- function k(y) {
6447
- return y === a ? (e.consume(y), a = void 0, L) : y === null ? n(y) : ge(y) ? (u = k, W(y)) : (e.consume(y), k);
6437
+ function L(y) {
6438
+ return y === a ? (e.consume(y), a = void 0, w) : y === null ? n(y) : ge(y) ? (u = L, V(y)) : (e.consume(y), L);
6448
6439
  }
6449
6440
  function I(y) {
6450
6441
  return y === null || y === 34 || y === 39 || y === 60 || y === 61 || y === 96 ? n(y) : y === 47 || y === 62 || At(y) ? q(y) : (e.consume(y), I);
6451
6442
  }
6452
- function L(y) {
6443
+ function w(y) {
6453
6444
  return y === 47 || y === 62 || At(y) ? q(y) : n(y);
6454
6445
  }
6455
- function B(y) {
6446
+ function F(y) {
6456
6447
  return y === 62 ? (e.consume(y), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(y);
6457
6448
  }
6458
- function W(y) {
6459
- return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), H;
6449
+ function V(y) {
6450
+ return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(y), e.exit("lineEnding"), B;
6460
6451
  }
6461
- function H(y) {
6452
+ function B(y) {
6462
6453
  return ke(y) ? Pe(
6463
6454
  e,
6464
6455
  z,
@@ -7020,10 +7011,10 @@ function tm(e, t, n) {
7020
7011
  const l = {
7021
7012
  consume: D,
7022
7013
  enter: P,
7023
- exit: X,
7024
- attempt: w(F),
7025
- check: w(x),
7026
- interrupt: w(x, {
7014
+ exit: W,
7015
+ attempt: k(j),
7016
+ check: k(x),
7017
+ interrupt: k(x, {
7027
7018
  interrupt: !0
7028
7019
  })
7029
7020
  }, c = {
@@ -7041,7 +7032,7 @@ function tm(e, t, n) {
7041
7032
  let d = t.tokenize.call(c, l);
7042
7033
  return t.resolveAll && i.push(t), c;
7043
7034
  function f(Y) {
7044
- return u = yt(u, Y), T(), u[u.length - 1] !== null ? [] : (V(t, 0), c.events = Li(i, c.events, c), c.events);
7035
+ return u = yt(u, Y), T(), u[u.length - 1] !== null ? [] : (G(t, 0), c.events = Li(i, c.events, c), c.events);
7045
7036
  }
7046
7037
  function p(Y, $) {
7047
7038
  return rm(h(Y), $);
@@ -7050,13 +7041,13 @@ function tm(e, t, n) {
7050
7041
  return nm(u, Y);
7051
7042
  }
7052
7043
  function b() {
7053
- const { line: Y, column: $, offset: k, _index: I, _bufferIndex: L } = r;
7044
+ const { line: Y, column: $, offset: L, _index: I, _bufferIndex: w } = r;
7054
7045
  return {
7055
7046
  line: Y,
7056
7047
  column: $,
7057
- offset: k,
7048
+ offset: L,
7058
7049
  _index: I,
7059
- _bufferIndex: L
7050
+ _bufferIndex: w
7060
7051
  };
7061
7052
  }
7062
7053
  function m(Y) {
@@ -7080,23 +7071,23 @@ function tm(e, t, n) {
7080
7071
  ki(Y) ? (r.line++, r.column = 1, r.offset += Y === -3 ? 2 : 1, te()) : Y !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === u[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = Y;
7081
7072
  }
7082
7073
  function P(Y, $) {
7083
- const k = $ || {};
7084
- return k.type = Y, k.start = b(), c.events.push(["enter", k, c]), s.push(k), k;
7074
+ const L = $ || {};
7075
+ return L.type = Y, L.start = b(), c.events.push(["enter", L, c]), s.push(L), L;
7085
7076
  }
7086
- function X(Y) {
7077
+ function W(Y) {
7087
7078
  const $ = s.pop();
7088
7079
  return $.end = b(), c.events.push(["exit", $, c]), $;
7089
7080
  }
7090
- function F(Y, $) {
7091
- V(Y, $.from);
7081
+ function j(Y, $) {
7082
+ G(Y, $.from);
7092
7083
  }
7093
7084
  function x(Y, $) {
7094
7085
  $.restore();
7095
7086
  }
7096
- function w(Y, $) {
7097
- return k;
7098
- function k(I, L, B) {
7099
- let W, H, z, y;
7087
+ function k(Y, $) {
7088
+ return L;
7089
+ function L(I, w, F) {
7090
+ let V, B, z, y;
7100
7091
  return Array.isArray(I) ? ae(I) : "tokenize" in I ? (
7101
7092
  // @ts-expect-error Looks like a construct.
7102
7093
  ae([I])
@@ -7114,7 +7105,7 @@ function tm(e, t, n) {
7114
7105
  }
7115
7106
  }
7116
7107
  function ae(pe) {
7117
- return W = pe, H = 0, pe.length === 0 ? B : v(pe[H]);
7108
+ return V = pe, B = 0, pe.length === 0 ? F : v(pe[B]);
7118
7109
  }
7119
7110
  function v(pe) {
7120
7111
  return Se;
@@ -7131,14 +7122,14 @@ function tm(e, t, n) {
7131
7122
  }
7132
7123
  }
7133
7124
  function se(pe) {
7134
- return Y(z, y), L;
7125
+ return Y(z, y), w;
7135
7126
  }
7136
7127
  function _e(pe) {
7137
- return y.restore(), ++H < W.length ? v(W[H]) : B;
7128
+ return y.restore(), ++B < V.length ? v(V[B]) : F;
7138
7129
  }
7139
7130
  }
7140
7131
  }
7141
- function V(Y, $) {
7132
+ function G(Y, $) {
7142
7133
  Y.resolveAll && !i.includes(Y) && i.push(Y), Y.resolve && Mt(
7143
7134
  c.events,
7144
7135
  $,
@@ -7147,13 +7138,13 @@ function tm(e, t, n) {
7147
7138
  ), Y.resolveTo && (c.events = Y.resolveTo(c.events, c));
7148
7139
  }
7149
7140
  function q() {
7150
- const Y = b(), $ = c.previous, k = c.currentConstruct, I = c.events.length, L = Array.from(s);
7141
+ const Y = b(), $ = c.previous, L = c.currentConstruct, I = c.events.length, w = Array.from(s);
7151
7142
  return {
7152
- restore: B,
7143
+ restore: F,
7153
7144
  from: I
7154
7145
  };
7155
- function B() {
7156
- r = Y, c.previous = $, c.currentConstruct = k, c.events.length = I, s = L, te();
7146
+ function F() {
7147
+ r = Y, c.previous = $, c.currentConstruct = L, c.events.length = I, s = w, te();
7157
7148
  }
7158
7149
  }
7159
7150
  function te() {
@@ -7436,7 +7427,7 @@ function _m(e) {
7436
7427
  },
7437
7428
  exit: {
7438
7429
  atxHeading: d(),
7439
- atxHeadingSequence: w,
7430
+ atxHeadingSequence: k,
7440
7431
  autolink: d(),
7441
7432
  autolinkEmail: Ie,
7442
7433
  autolinkProtocol: ze,
@@ -7451,25 +7442,25 @@ function _m(e) {
7451
7442
  codeFencedFenceMeta: T,
7452
7443
  codeFlowValue: $,
7453
7444
  codeIndented: d(P),
7454
- codeText: d(W),
7445
+ codeText: d(V),
7455
7446
  codeTextData: $,
7456
7447
  data: $,
7457
7448
  definition: d(),
7458
7449
  definitionDestinationString: x,
7459
- definitionLabelString: X,
7460
- definitionTitleString: F,
7450
+ definitionLabelString: W,
7451
+ definitionTitleString: j,
7461
7452
  emphasis: d(),
7462
7453
  hardBreakEscape: d(I),
7463
7454
  hardBreakTrailing: d(I),
7464
- htmlFlow: d(L),
7455
+ htmlFlow: d(w),
7465
7456
  htmlFlowData: $,
7466
- htmlText: d(B),
7457
+ htmlText: d(F),
7467
7458
  htmlTextData: $,
7468
7459
  image: d(z),
7469
7460
  label: ne,
7470
7461
  labelText: y,
7471
- lineEnding: k,
7472
- link: d(H),
7462
+ lineEnding: L,
7463
+ link: d(B),
7473
7464
  listItem: d(),
7474
7465
  listOrdered: d(),
7475
7466
  listUnordered: d(),
@@ -7480,7 +7471,7 @@ function _m(e) {
7480
7471
  resource: se,
7481
7472
  setextHeading: d(te),
7482
7473
  setextHeadingLineSequence: q,
7483
- setextHeadingText: V,
7474
+ setextHeadingText: G,
7484
7475
  strong: d(),
7485
7476
  thematicBreak: d()
7486
7477
  }
@@ -7488,7 +7479,7 @@ function _m(e) {
7488
7479
  Ll(t, (e || {}).mdastExtensions || []);
7489
7480
  const n = {};
7490
7481
  return r;
7491
- function r(U) {
7482
+ function r(H) {
7492
7483
  let K = {
7493
7484
  type: "root",
7494
7485
  children: []
@@ -7505,24 +7496,24 @@ function _m(e) {
7505
7496
  getData: u
7506
7497
  }, Ee = [];
7507
7498
  let he = -1;
7508
- for (; ++he < U.length; )
7509
- if (U[he][1].type === "listOrdered" || U[he][1].type === "listUnordered")
7510
- if (U[he][0] === "enter")
7499
+ for (; ++he < H.length; )
7500
+ if (H[he][1].type === "listOrdered" || H[he][1].type === "listUnordered")
7501
+ if (H[he][0] === "enter")
7511
7502
  Ee.push(he);
7512
7503
  else {
7513
7504
  const Qe = Ee.pop();
7514
- he = a(U, Qe, he);
7505
+ he = a(H, Qe, he);
7515
7506
  }
7516
- for (he = -1; ++he < U.length; ) {
7517
- const Qe = t[U[he][0]];
7518
- kl.call(Qe, U[he][1].type) && Qe[U[he][1].type].call(
7507
+ for (he = -1; ++he < H.length; ) {
7508
+ const Qe = t[H[he][0]];
7509
+ kl.call(Qe, H[he][1].type) && Qe[H[he][1].type].call(
7519
7510
  Object.assign(
7520
7511
  {
7521
- sliceSerialize: U[he][2].sliceSerialize
7512
+ sliceSerialize: H[he][2].sliceSerialize
7522
7513
  },
7523
7514
  ie
7524
7515
  ),
7525
- U[he][1]
7516
+ H[he][1]
7526
7517
  );
7527
7518
  }
7528
7519
  if (ie.tokenStack.length > 0) {
@@ -7531,14 +7522,14 @@ function _m(e) {
7531
7522
  }
7532
7523
  for (K.position = {
7533
7524
  start: Vt(
7534
- U.length > 0 ? U[0][1].start : {
7525
+ H.length > 0 ? H[0][1].start : {
7535
7526
  line: 1,
7536
7527
  column: 1,
7537
7528
  offset: 0
7538
7529
  }
7539
7530
  ),
7540
7531
  end: Vt(
7541
- U.length > 0 ? U[U.length - 2][1].end : {
7532
+ H.length > 0 ? H[H.length - 2][1].end : {
7542
7533
  line: 1,
7543
7534
  column: 1,
7544
7535
  offset: 0
@@ -7548,24 +7539,24 @@ function _m(e) {
7548
7539
  K = t.transforms[he](K) || K;
7549
7540
  return K;
7550
7541
  }
7551
- function a(U, K, ie) {
7542
+ function a(H, K, ie) {
7552
7543
  let Ee = K - 1, he = -1, Qe = !1, ut, Ve, Be, rt;
7553
7544
  for (; ++Ee <= ie; ) {
7554
- const He = U[Ee];
7545
+ const He = H[Ee];
7555
7546
  if (He[1].type === "listUnordered" || He[1].type === "listOrdered" || He[1].type === "blockQuote" ? (He[0] === "enter" ? he++ : he--, rt = void 0) : He[1].type === "lineEndingBlank" ? He[0] === "enter" && (ut && !rt && !he && !Be && (Be = Ee), rt = void 0) : He[1].type === "linePrefix" || He[1].type === "listItemValue" || He[1].type === "listItemMarker" || He[1].type === "listItemPrefix" || He[1].type === "listItemPrefixWhitespace" || (rt = void 0), !he && He[0] === "enter" && He[1].type === "listItemPrefix" || he === -1 && He[0] === "exit" && (He[1].type === "listUnordered" || He[1].type === "listOrdered")) {
7556
7547
  if (ut) {
7557
7548
  let ot = Ee;
7558
7549
  for (Ve = void 0; ot--; ) {
7559
- const vt = U[ot];
7550
+ const vt = H[ot];
7560
7551
  if (vt[1].type === "lineEnding" || vt[1].type === "lineEndingBlank") {
7561
7552
  if (vt[0] === "exit") continue;
7562
- Ve && (U[Ve][1].type = "lineEndingBlank", Qe = !0), vt[1].type = "lineEnding", Ve = ot;
7553
+ Ve && (H[Ve][1].type = "lineEndingBlank", Qe = !0), vt[1].type = "lineEnding", Ve = ot;
7563
7554
  } else if (!(vt[1].type === "linePrefix" || vt[1].type === "blockQuotePrefix" || vt[1].type === "blockQuotePrefixWhitespace" || vt[1].type === "blockQuoteMarker" || vt[1].type === "listItemIndent")) break;
7564
7555
  }
7565
7556
  Be && (!Ve || Be < Ve) && (ut._spread = !0), ut.end = Object.assign(
7566
7557
  {},
7567
- Ve ? U[Ve][1].start : He[1].end
7568
- ), U.splice(Ve || Ee, 0, ["exit", ut, He[2]]), Ee++, ie++;
7558
+ Ve ? H[Ve][1].start : He[1].end
7559
+ ), H.splice(Ve || Ee, 0, ["exit", ut, He[2]]), Ee++, ie++;
7569
7560
  }
7570
7561
  He[1].type === "listItemPrefix" && (ut = {
7571
7562
  type: "listItem",
@@ -7573,21 +7564,21 @@ function _m(e) {
7573
7564
  start: Object.assign({}, He[1].start),
7574
7565
  // @ts-expect-error: we’ll add `end` in a second.
7575
7566
  end: void 0
7576
- }, U.splice(Ee, 0, ["enter", ut, He[2]]), Ee++, ie++, Be = void 0, rt = !0);
7567
+ }, H.splice(Ee, 0, ["enter", ut, He[2]]), Ee++, ie++, Be = void 0, rt = !0);
7577
7568
  }
7578
7569
  }
7579
- return U[K][1]._spread = Qe, ie;
7570
+ return H[K][1]._spread = Qe, ie;
7580
7571
  }
7581
- function i(U, K) {
7582
- n[U] = K;
7572
+ function i(H, K) {
7573
+ n[H] = K;
7583
7574
  }
7584
- function u(U) {
7585
- return n[U];
7575
+ function u(H) {
7576
+ return n[H];
7586
7577
  }
7587
- function s(U, K) {
7578
+ function s(H, K) {
7588
7579
  return ie;
7589
7580
  function ie(Ee) {
7590
- c.call(this, U(Ee), Ee), K && K.call(this, Ee);
7581
+ c.call(this, H(Ee), Ee), K && K.call(this, Ee);
7591
7582
  }
7592
7583
  }
7593
7584
  function l() {
@@ -7596,28 +7587,28 @@ function _m(e) {
7596
7587
  children: []
7597
7588
  });
7598
7589
  }
7599
- function c(U, K, ie) {
7600
- return this.stack[this.stack.length - 1].children.push(U), this.stack.push(U), this.tokenStack.push([K, ie]), U.position = {
7590
+ function c(H, K, ie) {
7591
+ return this.stack[this.stack.length - 1].children.push(H), this.stack.push(H), this.tokenStack.push([K, ie]), H.position = {
7601
7592
  start: Vt(K.start)
7602
- }, U;
7593
+ }, H;
7603
7594
  }
7604
- function d(U) {
7595
+ function d(H) {
7605
7596
  return K;
7606
7597
  function K(ie) {
7607
- U && U.call(this, ie), f.call(this, ie);
7598
+ H && H.call(this, ie), f.call(this, ie);
7608
7599
  }
7609
7600
  }
7610
- function f(U, K) {
7601
+ function f(H, K) {
7611
7602
  const ie = this.stack.pop(), Ee = this.tokenStack.pop();
7612
7603
  if (Ee)
7613
- Ee[0].type !== U.type && (K ? K.call(this, U, Ee[0]) : (Ee[1] || To).call(this, U, Ee[0]));
7604
+ Ee[0].type !== H.type && (K ? K.call(this, H, Ee[0]) : (Ee[1] || To).call(this, H, Ee[0]));
7614
7605
  else throw new Error(
7615
- "Cannot close `" + U.type + "` (" + tr({
7616
- start: U.start,
7617
- end: U.end
7606
+ "Cannot close `" + H.type + "` (" + tr({
7607
+ start: H.start,
7608
+ end: H.end
7618
7609
  }) + "): it’s not open"
7619
7610
  );
7620
- return ie.position.end = Vt(U.end), ie;
7611
+ return ie.position.end = Vt(H.end), ie;
7621
7612
  }
7622
7613
  function p() {
7623
7614
  return fp(this.stack.pop());
@@ -7625,134 +7616,134 @@ function _m(e) {
7625
7616
  function h() {
7626
7617
  i("expectingFirstListItemValue", !0);
7627
7618
  }
7628
- function b(U) {
7619
+ function b(H) {
7629
7620
  if (u("expectingFirstListItemValue")) {
7630
7621
  const K = this.stack[this.stack.length - 2];
7631
- K.start = Number.parseInt(this.sliceSerialize(U), 10), i("expectingFirstListItemValue");
7622
+ K.start = Number.parseInt(this.sliceSerialize(H), 10), i("expectingFirstListItemValue");
7632
7623
  }
7633
7624
  }
7634
7625
  function m() {
7635
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7636
- K.lang = U;
7626
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7627
+ K.lang = H;
7637
7628
  }
7638
7629
  function T() {
7639
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7640
- K.meta = U;
7630
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7631
+ K.meta = H;
7641
7632
  }
7642
7633
  function g() {
7643
7634
  u("flowCodeInside") || (this.buffer(), i("flowCodeInside", !0));
7644
7635
  }
7645
7636
  function D() {
7646
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7647
- K.value = U.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), i("flowCodeInside");
7637
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7638
+ K.value = H.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), i("flowCodeInside");
7648
7639
  }
7649
7640
  function P() {
7650
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7651
- K.value = U.replace(/(\r?\n|\r)$/g, "");
7641
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7642
+ K.value = H.replace(/(\r?\n|\r)$/g, "");
7652
7643
  }
7653
- function X(U) {
7644
+ function W(H) {
7654
7645
  const K = this.resume(), ie = this.stack[this.stack.length - 1];
7655
7646
  ie.label = K, ie.identifier = Cn(
7656
- this.sliceSerialize(U)
7647
+ this.sliceSerialize(H)
7657
7648
  ).toLowerCase();
7658
7649
  }
7659
- function F() {
7660
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7661
- K.title = U;
7650
+ function j() {
7651
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7652
+ K.title = H;
7662
7653
  }
7663
7654
  function x() {
7664
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7665
- K.url = U;
7655
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7656
+ K.url = H;
7666
7657
  }
7667
- function w(U) {
7658
+ function k(H) {
7668
7659
  const K = this.stack[this.stack.length - 1];
7669
7660
  if (!K.depth) {
7670
- const ie = this.sliceSerialize(U).length;
7661
+ const ie = this.sliceSerialize(H).length;
7671
7662
  K.depth = ie;
7672
7663
  }
7673
7664
  }
7674
- function V() {
7665
+ function G() {
7675
7666
  i("setextHeadingSlurpLineEnding", !0);
7676
7667
  }
7677
- function q(U) {
7668
+ function q(H) {
7678
7669
  const K = this.stack[this.stack.length - 1];
7679
- K.depth = this.sliceSerialize(U).charCodeAt(0) === 61 ? 1 : 2;
7670
+ K.depth = this.sliceSerialize(H).charCodeAt(0) === 61 ? 1 : 2;
7680
7671
  }
7681
7672
  function te() {
7682
7673
  i("setextHeadingSlurpLineEnding");
7683
7674
  }
7684
- function Y(U) {
7675
+ function Y(H) {
7685
7676
  const K = this.stack[this.stack.length - 1];
7686
7677
  let ie = K.children[K.children.length - 1];
7687
7678
  (!ie || ie.type !== "text") && (ie = Fe(), ie.position = {
7688
- start: Vt(U.start)
7679
+ start: Vt(H.start)
7689
7680
  }, K.children.push(ie)), this.stack.push(ie);
7690
7681
  }
7691
- function $(U) {
7682
+ function $(H) {
7692
7683
  const K = this.stack.pop();
7693
- K.value += this.sliceSerialize(U), K.position.end = Vt(U.end);
7684
+ K.value += this.sliceSerialize(H), K.position.end = Vt(H.end);
7694
7685
  }
7695
- function k(U) {
7686
+ function L(H) {
7696
7687
  const K = this.stack[this.stack.length - 1];
7697
7688
  if (u("atHardBreak")) {
7698
7689
  const ie = K.children[K.children.length - 1];
7699
- ie.position.end = Vt(U.end), i("atHardBreak");
7690
+ ie.position.end = Vt(H.end), i("atHardBreak");
7700
7691
  return;
7701
7692
  }
7702
- !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(K.type) && (Y.call(this, U), $.call(this, U));
7693
+ !u("setextHeadingSlurpLineEnding") && t.canContainEols.includes(K.type) && (Y.call(this, H), $.call(this, H));
7703
7694
  }
7704
7695
  function I() {
7705
7696
  i("atHardBreak", !0);
7706
7697
  }
7707
- function L() {
7708
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7709
- K.value = U;
7698
+ function w() {
7699
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7700
+ K.value = H;
7710
7701
  }
7711
- function B() {
7712
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7713
- K.value = U;
7702
+ function F() {
7703
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7704
+ K.value = H;
7714
7705
  }
7715
- function W() {
7716
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7717
- K.value = U;
7706
+ function V() {
7707
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7708
+ K.value = H;
7718
7709
  }
7719
- function H() {
7720
- const U = this.stack[this.stack.length - 1];
7710
+ function B() {
7711
+ const H = this.stack[this.stack.length - 1];
7721
7712
  if (u("inReference")) {
7722
7713
  const K = u("referenceType") || "shortcut";
7723
- U.type += "Reference", U.referenceType = K, delete U.url, delete U.title;
7714
+ H.type += "Reference", H.referenceType = K, delete H.url, delete H.title;
7724
7715
  } else
7725
- delete U.identifier, delete U.label;
7716
+ delete H.identifier, delete H.label;
7726
7717
  i("referenceType");
7727
7718
  }
7728
7719
  function z() {
7729
- const U = this.stack[this.stack.length - 1];
7720
+ const H = this.stack[this.stack.length - 1];
7730
7721
  if (u("inReference")) {
7731
7722
  const K = u("referenceType") || "shortcut";
7732
- U.type += "Reference", U.referenceType = K, delete U.url, delete U.title;
7723
+ H.type += "Reference", H.referenceType = K, delete H.url, delete H.title;
7733
7724
  } else
7734
- delete U.identifier, delete U.label;
7725
+ delete H.identifier, delete H.label;
7735
7726
  i("referenceType");
7736
7727
  }
7737
- function y(U) {
7738
- const K = this.sliceSerialize(U), ie = this.stack[this.stack.length - 2];
7728
+ function y(H) {
7729
+ const K = this.sliceSerialize(H), ie = this.stack[this.stack.length - 2];
7739
7730
  ie.label = Em(K), ie.identifier = Cn(K).toLowerCase();
7740
7731
  }
7741
7732
  function ne() {
7742
- const U = this.stack[this.stack.length - 1], K = this.resume(), ie = this.stack[this.stack.length - 1];
7733
+ const H = this.stack[this.stack.length - 1], K = this.resume(), ie = this.stack[this.stack.length - 1];
7743
7734
  if (i("inReference", !0), ie.type === "link") {
7744
- const Ee = U.children;
7735
+ const Ee = H.children;
7745
7736
  ie.children = Ee;
7746
7737
  } else
7747
7738
  ie.alt = K;
7748
7739
  }
7749
7740
  function ae() {
7750
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7751
- K.url = U;
7741
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7742
+ K.url = H;
7752
7743
  }
7753
7744
  function v() {
7754
- const U = this.resume(), K = this.stack[this.stack.length - 1];
7755
- K.title = U;
7745
+ const H = this.resume(), K = this.stack[this.stack.length - 1];
7746
+ K.title = H;
7756
7747
  }
7757
7748
  function se() {
7758
7749
  i("inReference");
@@ -7760,34 +7751,34 @@ function _m(e) {
7760
7751
  function _e() {
7761
7752
  i("referenceType", "collapsed");
7762
7753
  }
7763
- function pe(U) {
7754
+ function pe(H) {
7764
7755
  const K = this.resume(), ie = this.stack[this.stack.length - 1];
7765
7756
  ie.label = K, ie.identifier = Cn(
7766
- this.sliceSerialize(U)
7757
+ this.sliceSerialize(H)
7767
7758
  ).toLowerCase(), i("referenceType", "full");
7768
7759
  }
7769
- function Se(U) {
7770
- i("characterReferenceType", U.type);
7760
+ function Se(H) {
7761
+ i("characterReferenceType", H.type);
7771
7762
  }
7772
- function Oe(U) {
7773
- const K = this.sliceSerialize(U), ie = u("characterReferenceType");
7763
+ function Oe(H) {
7764
+ const K = this.sliceSerialize(H), ie = u("characterReferenceType");
7774
7765
  let Ee;
7775
7766
  ie ? (Ee = Nl(
7776
7767
  K,
7777
7768
  ie === "characterReferenceMarkerNumeric" ? 10 : 16
7778
7769
  ), i("characterReferenceType")) : Ee = wi(K);
7779
7770
  const he = this.stack.pop();
7780
- he.value += Ee, he.position.end = Vt(U.end);
7771
+ he.value += Ee, he.position.end = Vt(H.end);
7781
7772
  }
7782
- function ze(U) {
7783
- $.call(this, U);
7773
+ function ze(H) {
7774
+ $.call(this, H);
7784
7775
  const K = this.stack[this.stack.length - 1];
7785
- K.url = this.sliceSerialize(U);
7776
+ K.url = this.sliceSerialize(H);
7786
7777
  }
7787
- function Ie(U) {
7788
- $.call(this, U);
7778
+ function Ie(H) {
7779
+ $.call(this, H);
7789
7780
  const K = this.stack[this.stack.length - 1];
7790
- K.url = "mailto:" + this.sliceSerialize(U);
7781
+ K.url = "mailto:" + this.sliceSerialize(H);
7791
7782
  }
7792
7783
  function nt() {
7793
7784
  return {
@@ -7858,19 +7849,19 @@ function _m(e) {
7858
7849
  children: []
7859
7850
  };
7860
7851
  }
7861
- function be(U) {
7852
+ function be(H) {
7862
7853
  return {
7863
7854
  type: "list",
7864
- ordered: U.type === "listOrdered",
7855
+ ordered: H.type === "listOrdered",
7865
7856
  start: null,
7866
- spread: U._spread,
7857
+ spread: H._spread,
7867
7858
  children: []
7868
7859
  };
7869
7860
  }
7870
- function Me(U) {
7861
+ function Me(H) {
7871
7862
  return {
7872
7863
  type: "listItem",
7873
- spread: U._spread,
7864
+ spread: H._spread,
7874
7865
  checked: null,
7875
7866
  children: []
7876
7867
  };
@@ -10019,78 +10010,78 @@ function L2() {
10019
10010
  if (!m) return [];
10020
10011
  T = T || {};
10021
10012
  var g = 1, D = 1;
10022
- function P(k) {
10023
- var I = k.match(t);
10013
+ function P(L) {
10014
+ var I = L.match(t);
10024
10015
  I && (g += I.length);
10025
- var L = k.lastIndexOf(l);
10026
- D = ~L ? k.length - L : D + k.length;
10016
+ var w = L.lastIndexOf(l);
10017
+ D = ~w ? L.length - w : D + L.length;
10027
10018
  }
10028
- function X() {
10029
- var k = { line: g, column: D };
10019
+ function W() {
10020
+ var L = { line: g, column: D };
10030
10021
  return function(I) {
10031
- return I.position = new F(k), V(), I;
10022
+ return I.position = new j(L), G(), I;
10032
10023
  };
10033
10024
  }
10034
- function F(k) {
10035
- this.start = k, this.end = { line: g, column: D }, this.source = T.source;
10025
+ function j(L) {
10026
+ this.start = L, this.end = { line: g, column: D }, this.source = T.source;
10036
10027
  }
10037
- F.prototype.content = m;
10038
- function x(k) {
10028
+ j.prototype.content = m;
10029
+ function x(L) {
10039
10030
  var I = new Error(
10040
- T.source + ":" + g + ":" + D + ": " + k
10031
+ T.source + ":" + g + ":" + D + ": " + L
10041
10032
  );
10042
- if (I.reason = k, I.filename = T.source, I.line = g, I.column = D, I.source = m, !T.silent) throw I;
10033
+ if (I.reason = L, I.filename = T.source, I.line = g, I.column = D, I.source = m, !T.silent) throw I;
10043
10034
  }
10044
- function w(k) {
10045
- var I = k.exec(m);
10035
+ function k(L) {
10036
+ var I = L.exec(m);
10046
10037
  if (I) {
10047
- var L = I[0];
10048
- return P(L), m = m.slice(L.length), I;
10038
+ var w = I[0];
10039
+ return P(w), m = m.slice(w.length), I;
10049
10040
  }
10050
10041
  }
10051
- function V() {
10052
- w(n);
10042
+ function G() {
10043
+ k(n);
10053
10044
  }
10054
- function q(k) {
10045
+ function q(L) {
10055
10046
  var I;
10056
- for (k = k || []; I = te(); )
10057
- I !== !1 && k.push(I);
10058
- return k;
10047
+ for (L = L || []; I = te(); )
10048
+ I !== !1 && L.push(I);
10049
+ return L;
10059
10050
  }
10060
10051
  function te() {
10061
- var k = X();
10052
+ var L = W();
10062
10053
  if (!(c != m.charAt(0) || d != m.charAt(1))) {
10063
10054
  for (var I = 2; f != m.charAt(I) && (d != m.charAt(I) || c != m.charAt(I + 1)); )
10064
10055
  ++I;
10065
10056
  if (I += 2, f === m.charAt(I - 1))
10066
10057
  return x("End of comment missing");
10067
- var L = m.slice(2, I - 2);
10068
- return D += 2, P(L), m = m.slice(I), D += 2, k({
10058
+ var w = m.slice(2, I - 2);
10059
+ return D += 2, P(w), m = m.slice(I), D += 2, L({
10069
10060
  type: p,
10070
- comment: L
10061
+ comment: w
10071
10062
  });
10072
10063
  }
10073
10064
  }
10074
10065
  function Y() {
10075
- var k = X(), I = w(r);
10066
+ var L = W(), I = k(r);
10076
10067
  if (I) {
10077
- if (te(), !w(a)) return x("property missing ':'");
10078
- var L = w(i), B = k({
10068
+ if (te(), !k(a)) return x("property missing ':'");
10069
+ var w = k(i), F = L({
10079
10070
  type: h,
10080
10071
  property: b(I[0].replace(e, f)),
10081
- value: L ? b(L[0].replace(e, f)) : f
10072
+ value: w ? b(w[0].replace(e, f)) : f
10082
10073
  });
10083
- return w(u), B;
10074
+ return k(u), F;
10084
10075
  }
10085
10076
  }
10086
10077
  function $() {
10087
- var k = [];
10088
- q(k);
10078
+ var L = [];
10079
+ q(L);
10089
10080
  for (var I; I = Y(); )
10090
- I !== !1 && (k.push(I), q(k));
10091
- return k;
10081
+ I !== !1 && (L.push(I), q(L));
10082
+ return L;
10092
10083
  }
10093
- return V(), $();
10084
+ return G(), $();
10094
10085
  };
10095
10086
  function b(m) {
10096
10087
  return m ? m.replace(s, f) : f;
@@ -13312,10 +13303,10 @@ function Ac(e) {
13312
13303
  function Sc(e) {
13313
13304
  return e >= 64976 && e <= 65007 || Pg.has(e);
13314
13305
  }
13315
- var j;
13306
+ var U;
13316
13307
  (function(e) {
13317
13308
  e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text";
13318
- })(j || (j = {}));
13309
+ })(U || (U = {}));
13319
13310
  const Bg = 65536;
13320
13311
  class Hg {
13321
13312
  constructor(t) {
@@ -13353,7 +13344,7 @@ class Hg {
13353
13344
  return this.pos++, this._addGap(), Fg(t, n);
13354
13345
  } else if (!this.lastChunkWritten)
13355
13346
  return this.endOfChunkHit = !0, E.EOF;
13356
- return this._err(j.surrogateInInputStream), t;
13347
+ return this._err(U.surrogateInInputStream), t;
13357
13348
  }
13358
13349
  willDropParsedChunk() {
13359
13350
  return this.pos > this.bufferWaterline;
@@ -13391,7 +13382,7 @@ class Hg {
13391
13382
  return t === E.CARRIAGE_RETURN ? (this.isEol = !0, this.skipNextNewLine = !0, E.LINE_FEED) : t === E.LINE_FEED && (this.isEol = !0, this.skipNextNewLine) ? (this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance()) : (this.skipNextNewLine = !1, Cc(t) && (t = this._processSurrogate(t)), this.handler.onParseError === null || t > 31 && t < 127 || t === E.LINE_FEED || t === E.CARRIAGE_RETURN || t > 159 && t < 64976 || this._checkForProblematicCharacters(t), t);
13392
13383
  }
13393
13384
  _checkForProblematicCharacters(t) {
13394
- Ac(t) ? this._err(j.controlCharacterInInputStream) : Sc(t) && this._err(j.noncharacterInInputStream);
13385
+ Ac(t) ? this._err(U.controlCharacterInInputStream) : Sc(t) && this._err(U.noncharacterInInputStream);
13395
13386
  }
13396
13387
  retreat(t) {
13397
13388
  for (this.pos -= t; this.pos < this.lastGapPos; )
@@ -13684,10 +13675,10 @@ function Gg(e, t, n, r) {
13684
13675
  }
13685
13676
  return -1;
13686
13677
  }
13687
- var G;
13678
+ var X;
13688
13679
  (function(e) {
13689
13680
  e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/";
13690
- })(G || (G = {}));
13681
+ })(X || (X = {}));
13691
13682
  var on;
13692
13683
  (function(e) {
13693
13684
  e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size";
@@ -13834,7 +13825,7 @@ function Dn(e) {
13834
13825
  return (t = Xg.get(e)) !== null && t !== void 0 ? t : o.UNKNOWN;
13835
13826
  }
13836
13827
  const Q = o, Kg = {
13837
- [G.HTML]: /* @__PURE__ */ new Set([
13828
+ [X.HTML]: /* @__PURE__ */ new Set([
13838
13829
  Q.ADDRESS,
13839
13830
  Q.APPLET,
13840
13831
  Q.AREA,
@@ -13917,11 +13908,11 @@ const Q = o, Kg = {
13917
13908
  Q.WBR,
13918
13909
  Q.XMP
13919
13910
  ]),
13920
- [G.MATHML]: /* @__PURE__ */ new Set([Q.MI, Q.MO, Q.MN, Q.MS, Q.MTEXT, Q.ANNOTATION_XML]),
13921
- [G.SVG]: /* @__PURE__ */ new Set([Q.TITLE, Q.FOREIGN_OBJECT, Q.DESC]),
13922
- [G.XLINK]: /* @__PURE__ */ new Set(),
13923
- [G.XML]: /* @__PURE__ */ new Set(),
13924
- [G.XMLNS]: /* @__PURE__ */ new Set()
13911
+ [X.MATHML]: /* @__PURE__ */ new Set([Q.MI, Q.MO, Q.MN, Q.MS, Q.MTEXT, Q.ANNOTATION_XML]),
13912
+ [X.SVG]: /* @__PURE__ */ new Set([Q.TITLE, Q.FOREIGN_OBJECT, Q.DESC]),
13913
+ [X.XLINK]: /* @__PURE__ */ new Set(),
13914
+ [X.XML]: /* @__PURE__ */ new Set(),
13915
+ [X.XMLNS]: /* @__PURE__ */ new Set()
13925
13916
  }, yi = /* @__PURE__ */ new Set([Q.H1, Q.H2, Q.H3, Q.H4, Q.H5, Q.H6]);
13926
13917
  R.STYLE, R.SCRIPT, R.XMP, R.IFRAME, R.NOEMBED, R.NOFRAMES, R.PLAINTEXT;
13927
13918
  var C;
@@ -13961,7 +13952,7 @@ function Qo(e) {
13961
13952
  return vc(e) || e === E.SOLIDUS || e === E.GREATER_THAN_SIGN;
13962
13953
  }
13963
13954
  function Jg(e) {
13964
- return e === E.NULL ? j.nullCharacterReference : e > 1114111 ? j.characterReferenceOutsideUnicodeRange : Cc(e) ? j.surrogateCharacterReference : Sc(e) ? j.noncharacterCharacterReference : Ac(e) || e === E.CARRIAGE_RETURN ? j.controlCharacterReference : null;
13955
+ return e === E.NULL ? U.nullCharacterReference : e > 1114111 ? U.characterReferenceOutsideUnicodeRange : Cc(e) ? U.surrogateCharacterReference : Sc(e) ? U.noncharacterCharacterReference : Ac(e) || e === E.CARRIAGE_RETURN ? U.controlCharacterReference : null;
13965
13956
  }
13966
13957
  class eb {
13967
13958
  constructor(t, n) {
@@ -13969,10 +13960,10 @@ class eb {
13969
13960
  this.preprocessor.pos = this.entityStartPos + a - 1, this._flushCodePointConsumedAsCharacterReference(r);
13970
13961
  }, n.onParseError ? {
13971
13962
  missingSemicolonAfterCharacterReference: () => {
13972
- this._err(j.missingSemicolonAfterCharacterReference, 1);
13963
+ this._err(U.missingSemicolonAfterCharacterReference, 1);
13973
13964
  },
13974
13965
  absenceOfDigitsInNumericCharacterReference: (r) => {
13975
- this._err(j.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
13966
+ this._err(U.absenceOfDigitsInNumericCharacterReference, this.entityStartPos - this.preprocessor.pos + r);
13976
13967
  },
13977
13968
  validateNumericCharacterReference: (r) => {
13978
13969
  const a = Jg(r);
@@ -14100,7 +14091,7 @@ class eb {
14100
14091
  a[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue();
14101
14092
  }
14102
14093
  } else
14103
- this._err(j.duplicateAttribute);
14094
+ this._err(U.duplicateAttribute);
14104
14095
  }
14105
14096
  _leaveAttrValue() {
14106
14097
  this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset);
@@ -14111,7 +14102,7 @@ class eb {
14111
14102
  }
14112
14103
  emitCurrentTagToken() {
14113
14104
  const t = this.currentToken;
14114
- this.prepareToken(t), t.tagID = Dn(t.tagName), t.type === me.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(j.endTagWithAttributes), t.selfClosing && this._err(j.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
14105
+ this.prepareToken(t), t.tagID = Dn(t.tagName), t.type === me.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(U.endTagWithAttributes), t.selfClosing && this._err(U.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
14115
14106
  }
14116
14107
  emitCurrentComment(t) {
14117
14108
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -14492,7 +14483,7 @@ class eb {
14492
14483
  break;
14493
14484
  }
14494
14485
  case E.NULL: {
14495
- this._err(j.unexpectedNullCharacter), this._emitCodePoint(t);
14486
+ this._err(U.unexpectedNullCharacter), this._emitCodePoint(t);
14496
14487
  break;
14497
14488
  }
14498
14489
  case E.EOF: {
@@ -14516,7 +14507,7 @@ class eb {
14516
14507
  break;
14517
14508
  }
14518
14509
  case E.NULL: {
14519
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14510
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14520
14511
  break;
14521
14512
  }
14522
14513
  case E.EOF: {
@@ -14536,7 +14527,7 @@ class eb {
14536
14527
  break;
14537
14528
  }
14538
14529
  case E.NULL: {
14539
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14530
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14540
14531
  break;
14541
14532
  }
14542
14533
  case E.EOF: {
@@ -14556,7 +14547,7 @@ class eb {
14556
14547
  break;
14557
14548
  }
14558
14549
  case E.NULL: {
14559
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14550
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14560
14551
  break;
14561
14552
  }
14562
14553
  case E.EOF: {
@@ -14572,7 +14563,7 @@ class eb {
14572
14563
  _statePlaintext(t) {
14573
14564
  switch (t) {
14574
14565
  case E.NULL: {
14575
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14566
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14576
14567
  break;
14577
14568
  }
14578
14569
  case E.EOF: {
@@ -14599,15 +14590,15 @@ class eb {
14599
14590
  break;
14600
14591
  }
14601
14592
  case E.QUESTION_MARK: {
14602
- this._err(j.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14593
+ this._err(U.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14603
14594
  break;
14604
14595
  }
14605
14596
  case E.EOF: {
14606
- this._err(j.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
14597
+ this._err(U.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
14607
14598
  break;
14608
14599
  }
14609
14600
  default:
14610
- this._err(j.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = C.DATA, this._stateData(t);
14601
+ this._err(U.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = C.DATA, this._stateData(t);
14611
14602
  }
14612
14603
  }
14613
14604
  // End tag open state
@@ -14618,15 +14609,15 @@ class eb {
14618
14609
  else
14619
14610
  switch (t) {
14620
14611
  case E.GREATER_THAN_SIGN: {
14621
- this._err(j.missingEndTagName), this.state = C.DATA;
14612
+ this._err(U.missingEndTagName), this.state = C.DATA;
14622
14613
  break;
14623
14614
  }
14624
14615
  case E.EOF: {
14625
- this._err(j.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
14616
+ this._err(U.eofBeforeTagName), this._emitChars("</"), this._emitEOFToken();
14626
14617
  break;
14627
14618
  }
14628
14619
  default:
14629
- this._err(j.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14620
+ this._err(U.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t);
14630
14621
  }
14631
14622
  }
14632
14623
  // Tag name state
@@ -14650,11 +14641,11 @@ class eb {
14650
14641
  break;
14651
14642
  }
14652
14643
  case E.NULL: {
14653
- this._err(j.unexpectedNullCharacter), n.tagName += qe;
14644
+ this._err(U.unexpectedNullCharacter), n.tagName += qe;
14654
14645
  break;
14655
14646
  }
14656
14647
  case E.EOF: {
14657
- this._err(j.eofInTag), this._emitEOFToken();
14648
+ this._err(U.eofInTag), this._emitEOFToken();
14658
14649
  break;
14659
14650
  }
14660
14651
  default:
@@ -14759,11 +14750,11 @@ class eb {
14759
14750
  break;
14760
14751
  }
14761
14752
  case E.NULL: {
14762
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14753
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14763
14754
  break;
14764
14755
  }
14765
14756
  case E.EOF: {
14766
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14757
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14767
14758
  break;
14768
14759
  }
14769
14760
  default:
@@ -14783,11 +14774,11 @@ class eb {
14783
14774
  break;
14784
14775
  }
14785
14776
  case E.NULL: {
14786
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14777
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14787
14778
  break;
14788
14779
  }
14789
14780
  case E.EOF: {
14790
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14781
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14791
14782
  break;
14792
14783
  }
14793
14784
  default:
@@ -14811,11 +14802,11 @@ class eb {
14811
14802
  break;
14812
14803
  }
14813
14804
  case E.NULL: {
14814
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14805
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_ESCAPED, this._emitChars(qe);
14815
14806
  break;
14816
14807
  }
14817
14808
  case E.EOF: {
14818
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14809
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14819
14810
  break;
14820
14811
  }
14821
14812
  default:
@@ -14860,11 +14851,11 @@ class eb {
14860
14851
  break;
14861
14852
  }
14862
14853
  case E.NULL: {
14863
- this._err(j.unexpectedNullCharacter), this._emitChars(qe);
14854
+ this._err(U.unexpectedNullCharacter), this._emitChars(qe);
14864
14855
  break;
14865
14856
  }
14866
14857
  case E.EOF: {
14867
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14858
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14868
14859
  break;
14869
14860
  }
14870
14861
  default:
@@ -14884,11 +14875,11 @@ class eb {
14884
14875
  break;
14885
14876
  }
14886
14877
  case E.NULL: {
14887
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14878
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14888
14879
  break;
14889
14880
  }
14890
14881
  case E.EOF: {
14891
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14882
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14892
14883
  break;
14893
14884
  }
14894
14885
  default:
@@ -14912,11 +14903,11 @@ class eb {
14912
14903
  break;
14913
14904
  }
14914
14905
  case E.NULL: {
14915
- this._err(j.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14906
+ this._err(U.unexpectedNullCharacter), this.state = C.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars(qe);
14916
14907
  break;
14917
14908
  }
14918
14909
  case E.EOF: {
14919
- this._err(j.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14910
+ this._err(U.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
14920
14911
  break;
14921
14912
  }
14922
14913
  default:
@@ -14954,7 +14945,7 @@ class eb {
14954
14945
  break;
14955
14946
  }
14956
14947
  case E.EQUALS_SIGN: {
14957
- this._err(j.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = C.ATTRIBUTE_NAME;
14948
+ this._err(U.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = C.ATTRIBUTE_NAME;
14958
14949
  break;
14959
14950
  }
14960
14951
  default:
@@ -14982,11 +14973,11 @@ class eb {
14982
14973
  case E.QUOTATION_MARK:
14983
14974
  case E.APOSTROPHE:
14984
14975
  case E.LESS_THAN_SIGN: {
14985
- this._err(j.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
14976
+ this._err(U.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(t);
14986
14977
  break;
14987
14978
  }
14988
14979
  case E.NULL: {
14989
- this._err(j.unexpectedNullCharacter), this.currentAttr.name += qe;
14980
+ this._err(U.unexpectedNullCharacter), this.currentAttr.name += qe;
14990
14981
  break;
14991
14982
  }
14992
14983
  default:
@@ -15015,7 +15006,7 @@ class eb {
15015
15006
  break;
15016
15007
  }
15017
15008
  case E.EOF: {
15018
- this._err(j.eofInTag), this._emitEOFToken();
15009
+ this._err(U.eofInTag), this._emitEOFToken();
15019
15010
  break;
15020
15011
  }
15021
15012
  default:
@@ -15040,7 +15031,7 @@ class eb {
15040
15031
  break;
15041
15032
  }
15042
15033
  case E.GREATER_THAN_SIGN: {
15043
- this._err(j.missingAttributeValue), this.state = C.DATA, this.emitCurrentTagToken();
15034
+ this._err(U.missingAttributeValue), this.state = C.DATA, this.emitCurrentTagToken();
15044
15035
  break;
15045
15036
  }
15046
15037
  default:
@@ -15060,11 +15051,11 @@ class eb {
15060
15051
  break;
15061
15052
  }
15062
15053
  case E.NULL: {
15063
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15054
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15064
15055
  break;
15065
15056
  }
15066
15057
  case E.EOF: {
15067
- this._err(j.eofInTag), this._emitEOFToken();
15058
+ this._err(U.eofInTag), this._emitEOFToken();
15068
15059
  break;
15069
15060
  }
15070
15061
  default:
@@ -15084,11 +15075,11 @@ class eb {
15084
15075
  break;
15085
15076
  }
15086
15077
  case E.NULL: {
15087
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15078
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15088
15079
  break;
15089
15080
  }
15090
15081
  case E.EOF: {
15091
- this._err(j.eofInTag), this._emitEOFToken();
15082
+ this._err(U.eofInTag), this._emitEOFToken();
15092
15083
  break;
15093
15084
  }
15094
15085
  default:
@@ -15115,7 +15106,7 @@ class eb {
15115
15106
  break;
15116
15107
  }
15117
15108
  case E.NULL: {
15118
- this._err(j.unexpectedNullCharacter), this.currentAttr.value += qe;
15109
+ this._err(U.unexpectedNullCharacter), this.currentAttr.value += qe;
15119
15110
  break;
15120
15111
  }
15121
15112
  case E.QUOTATION_MARK:
@@ -15123,11 +15114,11 @@ class eb {
15123
15114
  case E.LESS_THAN_SIGN:
15124
15115
  case E.EQUALS_SIGN:
15125
15116
  case E.GRAVE_ACCENT: {
15126
- this._err(j.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
15117
+ this._err(U.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(t);
15127
15118
  break;
15128
15119
  }
15129
15120
  case E.EOF: {
15130
- this._err(j.eofInTag), this._emitEOFToken();
15121
+ this._err(U.eofInTag), this._emitEOFToken();
15131
15122
  break;
15132
15123
  }
15133
15124
  default:
@@ -15154,11 +15145,11 @@ class eb {
15154
15145
  break;
15155
15146
  }
15156
15147
  case E.EOF: {
15157
- this._err(j.eofInTag), this._emitEOFToken();
15148
+ this._err(U.eofInTag), this._emitEOFToken();
15158
15149
  break;
15159
15150
  }
15160
15151
  default:
15161
- this._err(j.missingWhitespaceBetweenAttributes), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15152
+ this._err(U.missingWhitespaceBetweenAttributes), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15162
15153
  }
15163
15154
  }
15164
15155
  // Self-closing start tag state
@@ -15171,11 +15162,11 @@ class eb {
15171
15162
  break;
15172
15163
  }
15173
15164
  case E.EOF: {
15174
- this._err(j.eofInTag), this._emitEOFToken();
15165
+ this._err(U.eofInTag), this._emitEOFToken();
15175
15166
  break;
15176
15167
  }
15177
15168
  default:
15178
- this._err(j.unexpectedSolidusInTag), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15169
+ this._err(U.unexpectedSolidusInTag), this.state = C.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(t);
15179
15170
  }
15180
15171
  }
15181
15172
  // Bogus comment state
@@ -15192,7 +15183,7 @@ class eb {
15192
15183
  break;
15193
15184
  }
15194
15185
  case E.NULL: {
15195
- this._err(j.unexpectedNullCharacter), n.data += qe;
15186
+ this._err(U.unexpectedNullCharacter), n.data += qe;
15196
15187
  break;
15197
15188
  }
15198
15189
  default:
@@ -15202,7 +15193,7 @@ class eb {
15202
15193
  // Markup declaration open state
15203
15194
  //------------------------------------------------------------------
15204
15195
  _stateMarkupDeclarationOpen(t) {
15205
- this._consumeSequenceIfMatch(lt.DASH_DASH, !0) ? (this._createCommentToken(lt.DASH_DASH.length + 1), this.state = C.COMMENT_START) : this._consumeSequenceIfMatch(lt.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(lt.DOCTYPE.length + 1), this.state = C.DOCTYPE) : this._consumeSequenceIfMatch(lt.CDATA_START, !0) ? this.inForeignNode ? this.state = C.CDATA_SECTION : (this._err(j.cdataInHtmlContent), this._createCommentToken(lt.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = C.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(j.incorrectlyOpenedComment), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t));
15196
+ this._consumeSequenceIfMatch(lt.DASH_DASH, !0) ? (this._createCommentToken(lt.DASH_DASH.length + 1), this.state = C.COMMENT_START) : this._consumeSequenceIfMatch(lt.DOCTYPE, !1) ? (this.currentLocation = this.getCurrentLocation(lt.DOCTYPE.length + 1), this.state = C.DOCTYPE) : this._consumeSequenceIfMatch(lt.CDATA_START, !0) ? this.inForeignNode ? this.state = C.CDATA_SECTION : (this._err(U.cdataInHtmlContent), this._createCommentToken(lt.CDATA_START.length + 1), this.currentToken.data = "[CDATA[", this.state = C.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(U.incorrectlyOpenedComment), this._createCommentToken(2), this.state = C.BOGUS_COMMENT, this._stateBogusComment(t));
15206
15197
  }
15207
15198
  // Comment start state
15208
15199
  //------------------------------------------------------------------
@@ -15213,7 +15204,7 @@ class eb {
15213
15204
  break;
15214
15205
  }
15215
15206
  case E.GREATER_THAN_SIGN: {
15216
- this._err(j.abruptClosingOfEmptyComment), this.state = C.DATA;
15207
+ this._err(U.abruptClosingOfEmptyComment), this.state = C.DATA;
15217
15208
  const n = this.currentToken;
15218
15209
  this.emitCurrentComment(n);
15219
15210
  break;
@@ -15232,11 +15223,11 @@ class eb {
15232
15223
  break;
15233
15224
  }
15234
15225
  case E.GREATER_THAN_SIGN: {
15235
- this._err(j.abruptClosingOfEmptyComment), this.state = C.DATA, this.emitCurrentComment(n);
15226
+ this._err(U.abruptClosingOfEmptyComment), this.state = C.DATA, this.emitCurrentComment(n);
15236
15227
  break;
15237
15228
  }
15238
15229
  case E.EOF: {
15239
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15230
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15240
15231
  break;
15241
15232
  }
15242
15233
  default:
@@ -15257,11 +15248,11 @@ class eb {
15257
15248
  break;
15258
15249
  }
15259
15250
  case E.NULL: {
15260
- this._err(j.unexpectedNullCharacter), n.data += qe;
15251
+ this._err(U.unexpectedNullCharacter), n.data += qe;
15261
15252
  break;
15262
15253
  }
15263
15254
  case E.EOF: {
15264
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15255
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15265
15256
  break;
15266
15257
  }
15267
15258
  default:
@@ -15298,7 +15289,7 @@ class eb {
15298
15289
  // Comment less-than sign bang dash dash state
15299
15290
  //------------------------------------------------------------------
15300
15291
  _stateCommentLessThanSignBangDashDash(t) {
15301
- t !== E.GREATER_THAN_SIGN && t !== E.EOF && this._err(j.nestedComment), this.state = C.COMMENT_END, this._stateCommentEnd(t);
15292
+ t !== E.GREATER_THAN_SIGN && t !== E.EOF && this._err(U.nestedComment), this.state = C.COMMENT_END, this._stateCommentEnd(t);
15302
15293
  }
15303
15294
  // Comment end dash state
15304
15295
  //------------------------------------------------------------------
@@ -15310,7 +15301,7 @@ class eb {
15310
15301
  break;
15311
15302
  }
15312
15303
  case E.EOF: {
15313
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15304
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15314
15305
  break;
15315
15306
  }
15316
15307
  default:
@@ -15335,7 +15326,7 @@ class eb {
15335
15326
  break;
15336
15327
  }
15337
15328
  case E.EOF: {
15338
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15329
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15339
15330
  break;
15340
15331
  }
15341
15332
  default:
@@ -15352,11 +15343,11 @@ class eb {
15352
15343
  break;
15353
15344
  }
15354
15345
  case E.GREATER_THAN_SIGN: {
15355
- this._err(j.incorrectlyClosedComment), this.state = C.DATA, this.emitCurrentComment(n);
15346
+ this._err(U.incorrectlyClosedComment), this.state = C.DATA, this.emitCurrentComment(n);
15356
15347
  break;
15357
15348
  }
15358
15349
  case E.EOF: {
15359
- this._err(j.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15350
+ this._err(U.eofInComment), this.emitCurrentComment(n), this._emitEOFToken();
15360
15351
  break;
15361
15352
  }
15362
15353
  default:
@@ -15379,13 +15370,13 @@ class eb {
15379
15370
  break;
15380
15371
  }
15381
15372
  case E.EOF: {
15382
- this._err(j.eofInDoctype), this._createDoctypeToken(null);
15373
+ this._err(U.eofInDoctype), this._createDoctypeToken(null);
15383
15374
  const n = this.currentToken;
15384
15375
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15385
15376
  break;
15386
15377
  }
15387
15378
  default:
15388
- this._err(j.missingWhitespaceBeforeDoctypeName), this.state = C.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
15379
+ this._err(U.missingWhitespaceBeforeDoctypeName), this.state = C.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(t);
15389
15380
  }
15390
15381
  }
15391
15382
  // Before DOCTYPE name state
@@ -15401,17 +15392,17 @@ class eb {
15401
15392
  case E.FORM_FEED:
15402
15393
  break;
15403
15394
  case E.NULL: {
15404
- this._err(j.unexpectedNullCharacter), this._createDoctypeToken(qe), this.state = C.DOCTYPE_NAME;
15395
+ this._err(U.unexpectedNullCharacter), this._createDoctypeToken(qe), this.state = C.DOCTYPE_NAME;
15405
15396
  break;
15406
15397
  }
15407
15398
  case E.GREATER_THAN_SIGN: {
15408
- this._err(j.missingDoctypeName), this._createDoctypeToken(null);
15399
+ this._err(U.missingDoctypeName), this._createDoctypeToken(null);
15409
15400
  const n = this.currentToken;
15410
15401
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15411
15402
  break;
15412
15403
  }
15413
15404
  case E.EOF: {
15414
- this._err(j.eofInDoctype), this._createDoctypeToken(null);
15405
+ this._err(U.eofInDoctype), this._createDoctypeToken(null);
15415
15406
  const n = this.currentToken;
15416
15407
  n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15417
15408
  break;
@@ -15437,11 +15428,11 @@ class eb {
15437
15428
  break;
15438
15429
  }
15439
15430
  case E.NULL: {
15440
- this._err(j.unexpectedNullCharacter), n.name += qe;
15431
+ this._err(U.unexpectedNullCharacter), n.name += qe;
15441
15432
  break;
15442
15433
  }
15443
15434
  case E.EOF: {
15444
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15435
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15445
15436
  break;
15446
15437
  }
15447
15438
  default:
@@ -15463,11 +15454,11 @@ class eb {
15463
15454
  break;
15464
15455
  }
15465
15456
  case E.EOF: {
15466
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15457
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15467
15458
  break;
15468
15459
  }
15469
15460
  default:
15470
- this._consumeSequenceIfMatch(lt.PUBLIC, !1) ? this.state = C.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(lt.SYSTEM, !1) ? this.state = C.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(j.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
15461
+ this._consumeSequenceIfMatch(lt.PUBLIC, !1) ? this.state = C.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(lt.SYSTEM, !1) ? this.state = C.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(U.invalidCharacterSequenceAfterDoctypeName), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t));
15471
15462
  }
15472
15463
  }
15473
15464
  // After DOCTYPE public keyword state
@@ -15483,23 +15474,23 @@ class eb {
15483
15474
  break;
15484
15475
  }
15485
15476
  case E.QUOTATION_MARK: {
15486
- this._err(j.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
15477
+ this._err(U.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
15487
15478
  break;
15488
15479
  }
15489
15480
  case E.APOSTROPHE: {
15490
- this._err(j.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
15481
+ this._err(U.missingWhitespaceAfterDoctypePublicKeyword), n.publicId = "", this.state = C.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
15491
15482
  break;
15492
15483
  }
15493
15484
  case E.GREATER_THAN_SIGN: {
15494
- this._err(j.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15485
+ this._err(U.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15495
15486
  break;
15496
15487
  }
15497
15488
  case E.EOF: {
15498
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15489
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15499
15490
  break;
15500
15491
  }
15501
15492
  default:
15502
- this._err(j.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15493
+ this._err(U.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15503
15494
  }
15504
15495
  }
15505
15496
  // Before DOCTYPE public identifier state
@@ -15521,15 +15512,15 @@ class eb {
15521
15512
  break;
15522
15513
  }
15523
15514
  case E.GREATER_THAN_SIGN: {
15524
- this._err(j.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15515
+ this._err(U.missingDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15525
15516
  break;
15526
15517
  }
15527
15518
  case E.EOF: {
15528
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15519
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15529
15520
  break;
15530
15521
  }
15531
15522
  default:
15532
- this._err(j.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15523
+ this._err(U.missingQuoteBeforeDoctypePublicIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15533
15524
  }
15534
15525
  }
15535
15526
  // DOCTYPE public identifier (double-quoted) state
@@ -15542,15 +15533,15 @@ class eb {
15542
15533
  break;
15543
15534
  }
15544
15535
  case E.NULL: {
15545
- this._err(j.unexpectedNullCharacter), n.publicId += qe;
15536
+ this._err(U.unexpectedNullCharacter), n.publicId += qe;
15546
15537
  break;
15547
15538
  }
15548
15539
  case E.GREATER_THAN_SIGN: {
15549
- this._err(j.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15540
+ this._err(U.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15550
15541
  break;
15551
15542
  }
15552
15543
  case E.EOF: {
15553
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15544
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15554
15545
  break;
15555
15546
  }
15556
15547
  default:
@@ -15567,15 +15558,15 @@ class eb {
15567
15558
  break;
15568
15559
  }
15569
15560
  case E.NULL: {
15570
- this._err(j.unexpectedNullCharacter), n.publicId += qe;
15561
+ this._err(U.unexpectedNullCharacter), n.publicId += qe;
15571
15562
  break;
15572
15563
  }
15573
15564
  case E.GREATER_THAN_SIGN: {
15574
- this._err(j.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15565
+ this._err(U.abruptDoctypePublicIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15575
15566
  break;
15576
15567
  }
15577
15568
  case E.EOF: {
15578
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15569
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15579
15570
  break;
15580
15571
  }
15581
15572
  default:
@@ -15599,19 +15590,19 @@ class eb {
15599
15590
  break;
15600
15591
  }
15601
15592
  case E.QUOTATION_MARK: {
15602
- this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15593
+ this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15603
15594
  break;
15604
15595
  }
15605
15596
  case E.APOSTROPHE: {
15606
- this._err(j.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15597
+ this._err(U.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15607
15598
  break;
15608
15599
  }
15609
15600
  case E.EOF: {
15610
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15601
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15611
15602
  break;
15612
15603
  }
15613
15604
  default:
15614
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15605
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15615
15606
  }
15616
15607
  }
15617
15608
  // Between DOCTYPE public and system identifiers state
@@ -15637,11 +15628,11 @@ class eb {
15637
15628
  break;
15638
15629
  }
15639
15630
  case E.EOF: {
15640
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15631
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15641
15632
  break;
15642
15633
  }
15643
15634
  default:
15644
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15635
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15645
15636
  }
15646
15637
  }
15647
15638
  // After DOCTYPE system keyword state
@@ -15657,23 +15648,23 @@ class eb {
15657
15648
  break;
15658
15649
  }
15659
15650
  case E.QUOTATION_MARK: {
15660
- this._err(j.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15651
+ this._err(U.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
15661
15652
  break;
15662
15653
  }
15663
15654
  case E.APOSTROPHE: {
15664
- this._err(j.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15655
+ this._err(U.missingWhitespaceAfterDoctypeSystemKeyword), n.systemId = "", this.state = C.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
15665
15656
  break;
15666
15657
  }
15667
15658
  case E.GREATER_THAN_SIGN: {
15668
- this._err(j.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15659
+ this._err(U.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15669
15660
  break;
15670
15661
  }
15671
15662
  case E.EOF: {
15672
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15663
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15673
15664
  break;
15674
15665
  }
15675
15666
  default:
15676
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15667
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15677
15668
  }
15678
15669
  }
15679
15670
  // Before DOCTYPE system identifier state
@@ -15695,15 +15686,15 @@ class eb {
15695
15686
  break;
15696
15687
  }
15697
15688
  case E.GREATER_THAN_SIGN: {
15698
- this._err(j.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15689
+ this._err(U.missingDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.DATA, this.emitCurrentDoctype(n);
15699
15690
  break;
15700
15691
  }
15701
15692
  case E.EOF: {
15702
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15693
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15703
15694
  break;
15704
15695
  }
15705
15696
  default:
15706
- this._err(j.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15697
+ this._err(U.missingQuoteBeforeDoctypeSystemIdentifier), n.forceQuirks = !0, this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15707
15698
  }
15708
15699
  }
15709
15700
  // DOCTYPE system identifier (double-quoted) state
@@ -15716,15 +15707,15 @@ class eb {
15716
15707
  break;
15717
15708
  }
15718
15709
  case E.NULL: {
15719
- this._err(j.unexpectedNullCharacter), n.systemId += qe;
15710
+ this._err(U.unexpectedNullCharacter), n.systemId += qe;
15720
15711
  break;
15721
15712
  }
15722
15713
  case E.GREATER_THAN_SIGN: {
15723
- this._err(j.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15714
+ this._err(U.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15724
15715
  break;
15725
15716
  }
15726
15717
  case E.EOF: {
15727
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15718
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15728
15719
  break;
15729
15720
  }
15730
15721
  default:
@@ -15741,15 +15732,15 @@ class eb {
15741
15732
  break;
15742
15733
  }
15743
15734
  case E.NULL: {
15744
- this._err(j.unexpectedNullCharacter), n.systemId += qe;
15735
+ this._err(U.unexpectedNullCharacter), n.systemId += qe;
15745
15736
  break;
15746
15737
  }
15747
15738
  case E.GREATER_THAN_SIGN: {
15748
- this._err(j.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15739
+ this._err(U.abruptDoctypeSystemIdentifier), n.forceQuirks = !0, this.emitCurrentDoctype(n), this.state = C.DATA;
15749
15740
  break;
15750
15741
  }
15751
15742
  case E.EOF: {
15752
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15743
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15753
15744
  break;
15754
15745
  }
15755
15746
  default:
@@ -15771,11 +15762,11 @@ class eb {
15771
15762
  break;
15772
15763
  }
15773
15764
  case E.EOF: {
15774
- this._err(j.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15765
+ this._err(U.eofInDoctype), n.forceQuirks = !0, this.emitCurrentDoctype(n), this._emitEOFToken();
15775
15766
  break;
15776
15767
  }
15777
15768
  default:
15778
- this._err(j.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15769
+ this._err(U.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = C.BOGUS_DOCTYPE, this._stateBogusDoctype(t);
15779
15770
  }
15780
15771
  }
15781
15772
  // Bogus DOCTYPE state
@@ -15788,7 +15779,7 @@ class eb {
15788
15779
  break;
15789
15780
  }
15790
15781
  case E.NULL: {
15791
- this._err(j.unexpectedNullCharacter);
15782
+ this._err(U.unexpectedNullCharacter);
15792
15783
  break;
15793
15784
  }
15794
15785
  case E.EOF: {
@@ -15806,7 +15797,7 @@ class eb {
15806
15797
  break;
15807
15798
  }
15808
15799
  case E.EOF: {
15809
- this._err(j.eofInCdata), this._emitEOFToken();
15800
+ this._err(U.eofInCdata), this._emitEOFToken();
15810
15801
  break;
15811
15802
  }
15812
15803
  default:
@@ -15850,7 +15841,7 @@ class eb {
15850
15841
  // Ambiguos ampersand state
15851
15842
  //------------------------------------------------------------------
15852
15843
  _stateAmbiguousAmpersand(t) {
15853
- Ko(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(j.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
15844
+ Ko(t) ? this._flushCodePointConsumedAsCharacterReference(t) : (t === E.SEMICOLON && this._err(U.unknownNamedCharacterReference), this.state = this.returnState, this._callState(t));
15854
15845
  }
15855
15846
  }
15856
15847
  const Oc = /* @__PURE__ */ new Set([o.DD, o.DT, o.LI, o.OPTGROUP, o.OPTION, o.P, o.RB, o.RP, o.RT, o.RTC]), Zo = /* @__PURE__ */ new Set([
@@ -15887,7 +15878,7 @@ class ob {
15887
15878
  }
15888
15879
  //Update current element
15889
15880
  _isInTemplate() {
15890
- return this.currentTagId === o.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === G.HTML;
15881
+ return this.currentTagId === o.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === X.HTML;
15891
15882
  }
15892
15883
  _updateCurrentElement() {
15893
15884
  this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop];
@@ -15912,7 +15903,7 @@ class ob {
15912
15903
  let n = this.stackTop + 1;
15913
15904
  do
15914
15905
  n = this.tagIDs.lastIndexOf(t, n - 1);
15915
- while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== G.HTML);
15906
+ while (n > 0 && this.treeAdapter.getNamespaceURI(this.items[n]) !== X.HTML);
15916
15907
  this.shortenToLength(Math.max(n, 0));
15917
15908
  }
15918
15909
  shortenToLength(t) {
@@ -15930,10 +15921,10 @@ class ob {
15930
15921
  this.shortenToLength(Math.max(r, 0));
15931
15922
  }
15932
15923
  popUntilNumberedHeaderPopped() {
15933
- this.popUntilPopped(yi, G.HTML);
15924
+ this.popUntilPopped(yi, X.HTML);
15934
15925
  }
15935
15926
  popUntilTableCellPopped() {
15936
- this.popUntilPopped(ub, G.HTML);
15927
+ this.popUntilPopped(ub, X.HTML);
15937
15928
  }
15938
15929
  popAllUpToHtmlElement() {
15939
15930
  this.tmplCount = 0, this.shortenToLength(1);
@@ -15949,13 +15940,13 @@ class ob {
15949
15940
  this.shortenToLength(r + 1);
15950
15941
  }
15951
15942
  clearBackToTableContext() {
15952
- this.clearBackTo(ib, G.HTML);
15943
+ this.clearBackTo(ib, X.HTML);
15953
15944
  }
15954
15945
  clearBackToTableBodyContext() {
15955
- this.clearBackTo(ab, G.HTML);
15946
+ this.clearBackTo(ab, X.HTML);
15956
15947
  }
15957
15948
  clearBackToTableRowContext() {
15958
- this.clearBackTo(rb, G.HTML);
15949
+ this.clearBackTo(rb, X.HTML);
15959
15950
  }
15960
15951
  remove(t) {
15961
15952
  const n = this._indexOf(t);
@@ -15980,19 +15971,19 @@ class ob {
15980
15971
  for (let r = this.stackTop; r >= 0; r--) {
15981
15972
  const a = this.tagIDs[r];
15982
15973
  switch (this.treeAdapter.getNamespaceURI(this.items[r])) {
15983
- case G.HTML: {
15974
+ case X.HTML: {
15984
15975
  if (a === t)
15985
15976
  return !0;
15986
15977
  if (n.has(a))
15987
15978
  return !1;
15988
15979
  break;
15989
15980
  }
15990
- case G.SVG: {
15981
+ case X.SVG: {
15991
15982
  if (es.has(a))
15992
15983
  return !1;
15993
15984
  break;
15994
15985
  }
15995
- case G.MATHML: {
15986
+ case X.MATHML: {
15996
15987
  if (Jo.has(a))
15997
15988
  return !1;
15998
15989
  break;
@@ -16014,19 +16005,19 @@ class ob {
16014
16005
  for (let t = this.stackTop; t >= 0; t--) {
16015
16006
  const n = this.tagIDs[t];
16016
16007
  switch (this.treeAdapter.getNamespaceURI(this.items[t])) {
16017
- case G.HTML: {
16008
+ case X.HTML: {
16018
16009
  if (yi.has(n))
16019
16010
  return !0;
16020
16011
  if (Vr.has(n))
16021
16012
  return !1;
16022
16013
  break;
16023
16014
  }
16024
- case G.SVG: {
16015
+ case X.SVG: {
16025
16016
  if (es.has(n))
16026
16017
  return !1;
16027
16018
  break;
16028
16019
  }
16029
- case G.MATHML: {
16020
+ case X.MATHML: {
16030
16021
  if (Jo.has(n))
16031
16022
  return !1;
16032
16023
  break;
@@ -16037,7 +16028,7 @@ class ob {
16037
16028
  }
16038
16029
  hasInTableScope(t) {
16039
16030
  for (let n = this.stackTop; n >= 0; n--)
16040
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === G.HTML)
16031
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === X.HTML)
16041
16032
  switch (this.tagIDs[n]) {
16042
16033
  case t:
16043
16034
  return !0;
@@ -16049,7 +16040,7 @@ class ob {
16049
16040
  }
16050
16041
  hasTableBodyContextInTableScope() {
16051
16042
  for (let t = this.stackTop; t >= 0; t--)
16052
- if (this.treeAdapter.getNamespaceURI(this.items[t]) === G.HTML)
16043
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === X.HTML)
16053
16044
  switch (this.tagIDs[t]) {
16054
16045
  case o.TBODY:
16055
16046
  case o.THEAD:
@@ -16063,7 +16054,7 @@ class ob {
16063
16054
  }
16064
16055
  hasInSelectScope(t) {
16065
16056
  for (let n = this.stackTop; n >= 0; n--)
16066
- if (this.treeAdapter.getNamespaceURI(this.items[n]) === G.HTML)
16057
+ if (this.treeAdapter.getNamespaceURI(this.items[n]) === X.HTML)
16067
16058
  switch (this.tagIDs[n]) {
16068
16059
  case t:
16069
16060
  return !0;
@@ -16483,17 +16474,17 @@ const rs = {
16483
16474
  "yChannelSelector",
16484
16475
  "zoomAndPan"
16485
16476
  ].map((e) => [e.toLowerCase(), e])), Tb = /* @__PURE__ */ new Map([
16486
- ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: G.XLINK }],
16487
- ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: G.XLINK }],
16488
- ["xlink:href", { prefix: "xlink", name: "href", namespace: G.XLINK }],
16489
- ["xlink:role", { prefix: "xlink", name: "role", namespace: G.XLINK }],
16490
- ["xlink:show", { prefix: "xlink", name: "show", namespace: G.XLINK }],
16491
- ["xlink:title", { prefix: "xlink", name: "title", namespace: G.XLINK }],
16492
- ["xlink:type", { prefix: "xlink", name: "type", namespace: G.XLINK }],
16493
- ["xml:lang", { prefix: "xml", name: "lang", namespace: G.XML }],
16494
- ["xml:space", { prefix: "xml", name: "space", namespace: G.XML }],
16495
- ["xmlns", { prefix: "", name: "xmlns", namespace: G.XMLNS }],
16496
- ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: G.XMLNS }]
16477
+ ["xlink:actuate", { prefix: "xlink", name: "actuate", namespace: X.XLINK }],
16478
+ ["xlink:arcrole", { prefix: "xlink", name: "arcrole", namespace: X.XLINK }],
16479
+ ["xlink:href", { prefix: "xlink", name: "href", namespace: X.XLINK }],
16480
+ ["xlink:role", { prefix: "xlink", name: "role", namespace: X.XLINK }],
16481
+ ["xlink:show", { prefix: "xlink", name: "show", namespace: X.XLINK }],
16482
+ ["xlink:title", { prefix: "xlink", name: "title", namespace: X.XLINK }],
16483
+ ["xlink:type", { prefix: "xlink", name: "type", namespace: X.XLINK }],
16484
+ ["xml:lang", { prefix: "xml", name: "lang", namespace: X.XML }],
16485
+ ["xml:space", { prefix: "xml", name: "space", namespace: X.XML }],
16486
+ ["xmlns", { prefix: "", name: "xmlns", namespace: X.XMLNS }],
16487
+ ["xmlns:xlink", { prefix: "xmlns", name: "xlink", namespace: X.XMLNS }]
16497
16488
  ]), yb = new Map([
16498
16489
  "altGlyph",
16499
16490
  "altGlyphDef",
@@ -16605,20 +16596,20 @@ function Ab(e) {
16605
16596
  t != null && (e.tagName = t, e.tagID = Dn(e.tagName));
16606
16597
  }
16607
16598
  function Sb(e, t) {
16608
- return t === G.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
16599
+ return t === X.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
16609
16600
  }
16610
16601
  function xb(e, t, n) {
16611
- if (t === G.MATHML && e === o.ANNOTATION_XML) {
16602
+ if (t === X.MATHML && e === o.ANNOTATION_XML) {
16612
16603
  for (let r = 0; r < n.length; r++)
16613
16604
  if (n[r].name === on.ENCODING) {
16614
16605
  const a = n[r].value.toLowerCase();
16615
16606
  return a === rs.TEXT_HTML || a === rs.APPLICATION_XML;
16616
16607
  }
16617
16608
  }
16618
- return t === G.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
16609
+ return t === X.SVG && (e === o.FOREIGN_OBJECT || e === o.DESC || e === o.TITLE);
16619
16610
  }
16620
16611
  function vb(e, t, n, r) {
16621
- return (!r || r === G.HTML) && xb(e, t, n) || (!r || r === G.MATHML) && Sb(e, t);
16612
+ return (!r || r === X.HTML) && xb(e, t, n) || (!r || r === X.MATHML) && Sb(e, t);
16622
16613
  }
16623
16614
  const Ob = "hidden", Ib = 8, Nb = 3;
16624
16615
  var O;
@@ -16655,8 +16646,8 @@ class is {
16655
16646
  ...as,
16656
16647
  ...n
16657
16648
  };
16658
- t ?? (t = r.treeAdapter.createElement(R.TEMPLATE, G.HTML, []));
16659
- const a = r.treeAdapter.createElement("documentmock", G.HTML, []), i = new this(r, a, t);
16649
+ t ?? (t = r.treeAdapter.createElement(R.TEMPLATE, X.HTML, []));
16650
+ const a = r.treeAdapter.createElement("documentmock", X.HTML, []), i = new this(r, a, t);
16660
16651
  return i.fragmentContextID === o.TEMPLATE && i.tmplInsertionModeStack.unshift(O.IN_TEMPLATE), i._initTokenizerForFragmentParsing(), i._insertFakeRootElement(), i._resetInsertionMode(), i._findFormInFragmentContext(), i;
16661
16652
  }
16662
16653
  getFragment() {
@@ -16695,12 +16686,12 @@ class is {
16695
16686
  }
16696
16687
  }
16697
16688
  _setContextModes(t, n) {
16698
- const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === G.HTML;
16689
+ const r = t === this.document || t && this.treeAdapter.getNamespaceURI(t) === X.HTML;
16699
16690
  this.currentNotInHTML = !r, this.tokenizer.inForeignNode = !r && t !== void 0 && n !== void 0 && !this._isIntegrationPoint(n, t);
16700
16691
  }
16701
16692
  /** @protected */
16702
16693
  _switchToTextParsing(t, n) {
16703
- this._insertElement(t, G.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
16694
+ this._insertElement(t, X.HTML), this.tokenizer.state = n, this.originalInsertionMode = this.insertionMode, this.insertionMode = O.TEXT;
16704
16695
  }
16705
16696
  switchToPlaintextParsing() {
16706
16697
  this.insertionMode = O.TEXT, this.originalInsertionMode = O.IN_BODY, this.tokenizer.state = We.PLAINTEXT;
@@ -16722,7 +16713,7 @@ class is {
16722
16713
  }
16723
16714
  }
16724
16715
  _initTokenizerForFragmentParsing() {
16725
- if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== G.HTML))
16716
+ if (!(!this.fragmentContext || this.treeAdapter.getNamespaceURI(this.fragmentContext) !== X.HTML))
16726
16717
  switch (this.fragmentContextID) {
16727
16718
  case o.TITLE:
16728
16719
  case o.TEXTAREA: {
@@ -16789,17 +16780,17 @@ class is {
16789
16780
  }
16790
16781
  /** @protected */
16791
16782
  _insertFakeElement(t, n) {
16792
- const r = this.treeAdapter.createElement(t, G.HTML, []);
16783
+ const r = this.treeAdapter.createElement(t, X.HTML, []);
16793
16784
  this._attachElementToTree(r, null), this.openElements.push(r, n);
16794
16785
  }
16795
16786
  /** @protected */
16796
16787
  _insertTemplate(t) {
16797
- const n = this.treeAdapter.createElement(t.tagName, G.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
16788
+ const n = this.treeAdapter.createElement(t.tagName, X.HTML, t.attrs), r = this.treeAdapter.createDocumentFragment();
16798
16789
  this.treeAdapter.setTemplateContent(n, r), this._attachElementToTree(n, t.location), this.openElements.push(n, t.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(r, null);
16799
16790
  }
16800
16791
  /** @protected */
16801
16792
  _insertFakeRootElement() {
16802
- const t = this.treeAdapter.createElement(R.HTML, G.HTML, []);
16793
+ const t = this.treeAdapter.createElement(R.HTML, X.HTML, []);
16803
16794
  this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(t, null), this.treeAdapter.appendChild(this.openElements.current, t), this.openElements.push(t, o.HTML);
16804
16795
  }
16805
16796
  /** @protected */
@@ -16848,11 +16839,11 @@ class is {
16848
16839
  if (!this.currentNotInHTML)
16849
16840
  return !1;
16850
16841
  let n, r;
16851
- return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === o.SVG && this.treeAdapter.getTagName(n) === R.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === G.MATHML ? !1 : (
16842
+ return this.openElements.stackTop === 0 && this.fragmentContext ? (n = this.fragmentContext, r = this.fragmentContextID) : { current: n, currentTagId: r } = this.openElements, t.tagID === o.SVG && this.treeAdapter.getTagName(n) === R.ANNOTATION_XML && this.treeAdapter.getNamespaceURI(n) === X.MATHML ? !1 : (
16852
16843
  // Check that `current` is not an integration point for HTML or MathML elements.
16853
16844
  this.tokenizer.inForeignNode || // If it _is_ an integration point, then we might have to check that it is not an HTML
16854
16845
  // integration point.
16855
- (t.tagID === o.MGLYPH || t.tagID === o.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, G.HTML)
16846
+ (t.tagID === o.MGLYPH || t.tagID === o.MALIGNMARK) && r !== void 0 && !this._isIntegrationPoint(r, n, X.HTML)
16856
16847
  );
16857
16848
  }
16858
16849
  /** @protected */
@@ -17013,7 +17004,7 @@ class is {
17013
17004
  const n = this.openElements.items[t];
17014
17005
  switch (this.openElements.tagIDs[t]) {
17015
17006
  case o.TEMPLATE: {
17016
- if (this.treeAdapter.getNamespaceURI(n) === G.HTML)
17007
+ if (this.treeAdapter.getNamespaceURI(n) === X.HTML)
17017
17008
  return { parent: this.treeAdapter.getTemplateContent(n), beforeElement: null };
17018
17009
  break;
17019
17010
  }
@@ -17213,7 +17204,7 @@ class is {
17213
17204
  case O.IN_HEAD:
17214
17205
  case O.IN_HEAD_NO_SCRIPT:
17215
17206
  case O.AFTER_HEAD: {
17216
- this._err(t, j.misplacedDoctype);
17207
+ this._err(t, U.misplacedDoctype);
17217
17208
  break;
17218
17209
  }
17219
17210
  case O.IN_TABLE_TEXT: {
@@ -17224,7 +17215,7 @@ class is {
17224
17215
  }
17225
17216
  /** @internal */
17226
17217
  onStartTag(t) {
17227
- this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, j.nonVoidHtmlElementStartTagWithTrailingSolidus);
17218
+ this.skipNextNewLine = !1, this.currentToken = t, this._processStartTag(t), t.selfClosing && !t.ackSelfClosing && this._err(t, U.nonVoidHtmlElementStartTagWithTrailingSolidus);
17228
17219
  }
17229
17220
  /**
17230
17221
  * Processes a given start tag.
@@ -17571,7 +17562,7 @@ function Pb(e, t, n) {
17571
17562
  e._fosterParentElement(n);
17572
17563
  else {
17573
17564
  const i = e.treeAdapter.getNamespaceURI(t);
17574
- a === o.TEMPLATE && i === G.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
17565
+ a === o.TEMPLATE && i === X.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n);
17575
17566
  }
17576
17567
  }
17577
17568
  function Mb(e, t, n) {
@@ -17617,13 +17608,13 @@ function Qi(e, t) {
17617
17608
  function Hb(e, t) {
17618
17609
  e._setDocumentType(t);
17619
17610
  const n = t.forceQuirks ? _t.QUIRKS : mb(t);
17620
- pb(t) || e._err(t, j.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = O.BEFORE_HTML;
17611
+ pb(t) || e._err(t, U.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = O.BEFORE_HTML;
17621
17612
  }
17622
17613
  function Wn(e, t) {
17623
- e._err(t, j.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, _t.QUIRKS), e.insertionMode = O.BEFORE_HTML, e._processToken(t);
17614
+ e._err(t, U.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, _t.QUIRKS), e.insertionMode = O.BEFORE_HTML, e._processToken(t);
17624
17615
  }
17625
17616
  function Ub(e, t) {
17626
- t.tagID === o.HTML ? (e._insertElement(t, G.HTML), e.insertionMode = O.BEFORE_HEAD) : ar(e, t);
17617
+ t.tagID === o.HTML ? (e._insertElement(t, X.HTML), e.insertionMode = O.BEFORE_HEAD) : ar(e, t);
17627
17618
  }
17628
17619
  function jb(e, t) {
17629
17620
  const n = t.tagID;
@@ -17639,7 +17630,7 @@ function qb(e, t) {
17639
17630
  break;
17640
17631
  }
17641
17632
  case o.HEAD: {
17642
- e._insertElement(t, G.HTML), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD;
17633
+ e._insertElement(t, X.HTML), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD;
17643
17634
  break;
17644
17635
  }
17645
17636
  default:
@@ -17648,7 +17639,7 @@ function qb(e, t) {
17648
17639
  }
17649
17640
  function zb(e, t) {
17650
17641
  const n = t.tagID;
17651
- n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? ir(e, t) : e._err(t, j.endTagWithoutMatchingOpenElement);
17642
+ n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? ir(e, t) : e._err(t, U.endTagWithoutMatchingOpenElement);
17652
17643
  }
17653
17644
  function ir(e, t) {
17654
17645
  e._insertFakeElement(R.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode = O.IN_HEAD, e._processToken(t);
@@ -17664,7 +17655,7 @@ function Lt(e, t) {
17664
17655
  case o.BGSOUND:
17665
17656
  case o.LINK:
17666
17657
  case o.META: {
17667
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
17658
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
17668
17659
  break;
17669
17660
  }
17670
17661
  case o.TITLE: {
@@ -17672,7 +17663,7 @@ function Lt(e, t) {
17672
17663
  break;
17673
17664
  }
17674
17665
  case o.NOSCRIPT: {
17675
- e.options.scriptingEnabled ? e._switchToTextParsing(t, We.RAWTEXT) : (e._insertElement(t, G.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
17666
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, We.RAWTEXT) : (e._insertElement(t, X.HTML), e.insertionMode = O.IN_HEAD_NO_SCRIPT);
17676
17667
  break;
17677
17668
  }
17678
17669
  case o.NOFRAMES:
@@ -17689,7 +17680,7 @@ function Lt(e, t) {
17689
17680
  break;
17690
17681
  }
17691
17682
  case o.HEAD: {
17692
- e._err(t, j.misplacedStartTagForHeadElement);
17683
+ e._err(t, U.misplacedStartTagForHeadElement);
17693
17684
  break;
17694
17685
  }
17695
17686
  default:
@@ -17713,11 +17704,11 @@ function Yb(e, t) {
17713
17704
  break;
17714
17705
  }
17715
17706
  default:
17716
- e._err(t, j.endTagWithoutMatchingOpenElement);
17707
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17717
17708
  }
17718
17709
  }
17719
17710
  function fn(e, t) {
17720
- e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, j.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, j.endTagWithoutMatchingOpenElement);
17711
+ e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, U.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, U.endTagWithoutMatchingOpenElement);
17721
17712
  }
17722
17713
  function ur(e, t) {
17723
17714
  e.openElements.pop(), e.insertionMode = O.AFTER_HEAD, e._processToken(t);
@@ -17739,7 +17730,7 @@ function $b(e, t) {
17739
17730
  break;
17740
17731
  }
17741
17732
  case o.NOSCRIPT: {
17742
- e._err(t, j.nestedNoscriptInHead);
17733
+ e._err(t, U.nestedNoscriptInHead);
17743
17734
  break;
17744
17735
  }
17745
17736
  default:
@@ -17757,11 +17748,11 @@ function Vb(e, t) {
17757
17748
  break;
17758
17749
  }
17759
17750
  default:
17760
- e._err(t, j.endTagWithoutMatchingOpenElement);
17751
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17761
17752
  }
17762
17753
  }
17763
17754
  function or(e, t) {
17764
- const n = t.type === me.EOF ? j.openElementsLeftAfterEof : j.disallowedContentInNoscriptInHead;
17755
+ const n = t.type === me.EOF ? U.openElementsLeftAfterEof : U.disallowedContentInNoscriptInHead;
17765
17756
  e._err(t, n), e.openElements.pop(), e.insertionMode = O.IN_HEAD, e._processToken(t);
17766
17757
  }
17767
17758
  function Wb(e, t) {
@@ -17771,11 +17762,11 @@ function Wb(e, t) {
17771
17762
  break;
17772
17763
  }
17773
17764
  case o.BODY: {
17774
- e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = O.IN_BODY;
17765
+ e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = O.IN_BODY;
17775
17766
  break;
17776
17767
  }
17777
17768
  case o.FRAMESET: {
17778
- e._insertElement(t, G.HTML), e.insertionMode = O.IN_FRAMESET;
17769
+ e._insertElement(t, X.HTML), e.insertionMode = O.IN_FRAMESET;
17779
17770
  break;
17780
17771
  }
17781
17772
  case o.BASE:
@@ -17788,11 +17779,11 @@ function Wb(e, t) {
17788
17779
  case o.STYLE:
17789
17780
  case o.TEMPLATE:
17790
17781
  case o.TITLE: {
17791
- e._err(t, j.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD), Lt(e, t), e.openElements.remove(e.headElement);
17782
+ e._err(t, U.abandonedHeadElementChild), e.openElements.push(e.headElement, o.HEAD), Lt(e, t), e.openElements.remove(e.headElement);
17792
17783
  break;
17793
17784
  }
17794
17785
  case o.HEAD: {
17795
- e._err(t, j.misplacedStartTagForHeadElement);
17786
+ e._err(t, U.misplacedStartTagForHeadElement);
17796
17787
  break;
17797
17788
  }
17798
17789
  default:
@@ -17812,7 +17803,7 @@ function Gb(e, t) {
17812
17803
  break;
17813
17804
  }
17814
17805
  default:
17815
- e._err(t, j.endTagWithoutMatchingOpenElement);
17806
+ e._err(t, U.endTagWithoutMatchingOpenElement);
17816
17807
  }
17817
17808
  }
17818
17809
  function sr(e, t) {
@@ -17861,20 +17852,20 @@ function Kb(e, t) {
17861
17852
  }
17862
17853
  function Qb(e, t) {
17863
17854
  const n = e.openElements.tryPeekProperlyNestedBodyElement();
17864
- e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_FRAMESET);
17855
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_FRAMESET);
17865
17856
  }
17866
17857
  function Zb(e, t) {
17867
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML);
17858
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
17868
17859
  }
17869
17860
  function Jb(e, t) {
17870
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && yi.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, G.HTML);
17861
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e.openElements.currentTagId !== void 0 && yi.has(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, X.HTML);
17871
17862
  }
17872
17863
  function eE(e, t) {
17873
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
17864
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.framesetOk = !1;
17874
17865
  }
17875
17866
  function tE(e, t) {
17876
17867
  const n = e.openElements.tmplCount > 0;
17877
- (!e.formElement || n) && (e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), n || (e.formElement = e.openElements.current));
17868
+ (!e.formElement || n) && (e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), n || (e.formElement = e.openElements.current));
17878
17869
  }
17879
17870
  function nE(e, t) {
17880
17871
  e.framesetOk = !1;
@@ -17888,51 +17879,51 @@ function nE(e, t) {
17888
17879
  if (a !== o.ADDRESS && a !== o.DIV && a !== o.P && e._isSpecialElement(e.openElements.items[r], a))
17889
17880
  break;
17890
17881
  }
17891
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML);
17882
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML);
17892
17883
  }
17893
17884
  function rE(e, t) {
17894
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.tokenizer.state = We.PLAINTEXT;
17885
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.tokenizer.state = We.PLAINTEXT;
17895
17886
  }
17896
17887
  function aE(e, t) {
17897
- e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.framesetOk = !1;
17888
+ e.openElements.hasInScope(o.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1;
17898
17889
  }
17899
17890
  function iE(e, t) {
17900
17891
  const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(R.A);
17901
- n && (Ki(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17892
+ n && (Ki(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17902
17893
  }
17903
17894
  function uE(e, t) {
17904
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17895
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17905
17896
  }
17906
17897
  function oE(e, t) {
17907
- e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (Ki(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, G.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17898
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(o.NOBR) && (Ki(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, X.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t);
17908
17899
  }
17909
17900
  function sE(e, t) {
17910
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
17901
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1;
17911
17902
  }
17912
17903
  function lE(e, t) {
17913
- e.treeAdapter.getDocumentMode(e.document) !== _t.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = O.IN_TABLE;
17904
+ e.treeAdapter.getDocumentMode(e.document) !== _t.QUIRKS && e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = O.IN_TABLE;
17914
17905
  }
17915
17906
  function Mc(e, t) {
17916
- e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17907
+ e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17917
17908
  }
17918
17909
  function Fc(e) {
17919
17910
  const t = xc(e, on.TYPE);
17920
17911
  return t != null && t.toLowerCase() === Ob;
17921
17912
  }
17922
17913
  function cE(e, t) {
17923
- e._reconstructActiveFormattingElements(), e._appendElement(t, G.HTML), Fc(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
17914
+ e._reconstructActiveFormattingElements(), e._appendElement(t, X.HTML), Fc(t) || (e.framesetOk = !1), t.ackSelfClosing = !0;
17924
17915
  }
17925
17916
  function dE(e, t) {
17926
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
17917
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
17927
17918
  }
17928
17919
  function fE(e, t) {
17929
- e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._appendElement(t, G.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17920
+ e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._appendElement(t, X.HTML), e.framesetOk = !1, t.ackSelfClosing = !0;
17930
17921
  }
17931
17922
  function hE(e, t) {
17932
17923
  t.tagName = R.IMG, t.tagID = o.IMG, Mc(e, t);
17933
17924
  }
17934
17925
  function pE(e, t) {
17935
- e._insertElement(t, G.HTML), e.skipNextNewLine = !0, e.tokenizer.state = We.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
17926
+ e._insertElement(t, X.HTML), e.skipNextNewLine = !0, e.tokenizer.state = We.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = O.TEXT;
17936
17927
  }
17937
17928
  function mE(e, t) {
17938
17929
  e.openElements.hasInButtonScope(o.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, We.RAWTEXT);
@@ -17944,25 +17935,25 @@ function us(e, t) {
17944
17935
  e._switchToTextParsing(t, We.RAWTEXT);
17945
17936
  }
17946
17937
  function bE(e, t) {
17947
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === O.IN_TABLE || e.insertionMode === O.IN_CAPTION || e.insertionMode === O.IN_TABLE_BODY || e.insertionMode === O.IN_ROW || e.insertionMode === O.IN_CELL ? O.IN_SELECT_IN_TABLE : O.IN_SELECT;
17938
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === O.IN_TABLE || e.insertionMode === O.IN_CAPTION || e.insertionMode === O.IN_TABLE_BODY || e.insertionMode === O.IN_ROW || e.insertionMode === O.IN_CELL ? O.IN_SELECT_IN_TABLE : O.IN_SELECT;
17948
17939
  }
17949
17940
  function EE(e, t) {
17950
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML);
17941
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
17951
17942
  }
17952
17943
  function TE(e, t) {
17953
- e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, G.HTML);
17944
+ e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, X.HTML);
17954
17945
  }
17955
17946
  function yE(e, t) {
17956
- e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, G.HTML);
17947
+ e.openElements.hasInScope(o.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(o.RTC), e._insertElement(t, X.HTML);
17957
17948
  }
17958
17949
  function _E(e, t) {
17959
- e._reconstructActiveFormattingElements(), Lc(t), Xi(t), t.selfClosing ? e._appendElement(t, G.MATHML) : e._insertElement(t, G.MATHML), t.ackSelfClosing = !0;
17950
+ e._reconstructActiveFormattingElements(), Lc(t), Xi(t), t.selfClosing ? e._appendElement(t, X.MATHML) : e._insertElement(t, X.MATHML), t.ackSelfClosing = !0;
17960
17951
  }
17961
17952
  function CE(e, t) {
17962
- e._reconstructActiveFormattingElements(), wc(t), Xi(t), t.selfClosing ? e._appendElement(t, G.SVG) : e._insertElement(t, G.SVG), t.ackSelfClosing = !0;
17953
+ e._reconstructActiveFormattingElements(), wc(t), Xi(t), t.selfClosing ? e._appendElement(t, X.SVG) : e._insertElement(t, X.SVG), t.ackSelfClosing = !0;
17963
17954
  }
17964
17955
  function os(e, t) {
17965
- e._reconstructActiveFormattingElements(), e._insertElement(t, G.HTML);
17956
+ e._reconstructActiveFormattingElements(), e._insertElement(t, X.HTML);
17966
17957
  }
17967
17958
  function it(e, t) {
17968
17959
  switch (t.tagID) {
@@ -18332,7 +18323,7 @@ function RE(e, t) {
18332
18323
  t.tagID === o.SCRIPT && ((n = e.scriptHandler) === null || n === void 0 || n.call(e, e.openElements.current)), e.openElements.pop(), e.insertionMode = e.originalInsertionMode;
18333
18324
  }
18334
18325
  function DE(e, t) {
18335
- e._err(t, j.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
18326
+ e._err(t, U.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t);
18336
18327
  }
18337
18328
  function qa(e, t) {
18338
18329
  if (e.openElements.currentTagId !== void 0 && Rc.has(e.openElements.currentTagId))
@@ -18350,16 +18341,16 @@ function qa(e, t) {
18350
18341
  gr(e, t);
18351
18342
  }
18352
18343
  function PE(e, t) {
18353
- e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_CAPTION;
18344
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_CAPTION;
18354
18345
  }
18355
18346
  function ME(e, t) {
18356
- e.openElements.clearBackToTableContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_COLUMN_GROUP;
18347
+ e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_COLUMN_GROUP;
18357
18348
  }
18358
18349
  function FE(e, t) {
18359
18350
  e.openElements.clearBackToTableContext(), e._insertFakeElement(R.COLGROUP, o.COLGROUP), e.insertionMode = O.IN_COLUMN_GROUP, Zi(e, t);
18360
18351
  }
18361
18352
  function BE(e, t) {
18362
- e.openElements.clearBackToTableContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_TABLE_BODY;
18353
+ e.openElements.clearBackToTableContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_TABLE_BODY;
18363
18354
  }
18364
18355
  function HE(e, t) {
18365
18356
  e.openElements.clearBackToTableContext(), e._insertFakeElement(R.TBODY, o.TBODY), e.insertionMode = O.IN_TABLE_BODY, ra(e, t);
@@ -18368,10 +18359,10 @@ function UE(e, t) {
18368
18359
  e.openElements.hasInTableScope(o.TABLE) && (e.openElements.popUntilTagNamePopped(o.TABLE), e._resetInsertionMode(), e._processStartTag(t));
18369
18360
  }
18370
18361
  function jE(e, t) {
18371
- Fc(t) ? e._appendElement(t, G.HTML) : gr(e, t), t.ackSelfClosing = !0;
18362
+ Fc(t) ? e._appendElement(t, X.HTML) : gr(e, t), t.ackSelfClosing = !0;
18372
18363
  }
18373
18364
  function qE(e, t) {
18374
- !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, G.HTML), e.formElement = e.openElements.current, e.openElements.pop());
18365
+ !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, X.HTML), e.formElement = e.openElements.current, e.openElements.pop());
18375
18366
  }
18376
18367
  function On(e, t) {
18377
18368
  switch (t.tagID) {
@@ -18502,7 +18493,7 @@ function Zi(e, t) {
18502
18493
  break;
18503
18494
  }
18504
18495
  case o.COL: {
18505
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18496
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18506
18497
  break;
18507
18498
  }
18508
18499
  case o.TEMPLATE: {
@@ -18535,7 +18526,7 @@ function Wr(e, t) {
18535
18526
  function ra(e, t) {
18536
18527
  switch (t.tagID) {
18537
18528
  case o.TR: {
18538
- e.openElements.clearBackToTableBodyContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_ROW;
18529
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_ROW;
18539
18530
  break;
18540
18531
  }
18541
18532
  case o.TH:
@@ -18586,7 +18577,7 @@ function aa(e, t) {
18586
18577
  switch (t.tagID) {
18587
18578
  case o.TH:
18588
18579
  case o.TD: {
18589
- e.openElements.clearBackToTableRowContext(), e._insertElement(t, G.HTML), e.insertionMode = O.IN_CELL, e.activeFormattingElements.insertMarker();
18580
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, X.HTML), e.insertionMode = O.IN_CELL, e.activeFormattingElements.insertMarker();
18590
18581
  break;
18591
18582
  }
18592
18583
  case o.CAPTION:
@@ -18668,15 +18659,15 @@ function Yc(e, t) {
18668
18659
  break;
18669
18660
  }
18670
18661
  case o.OPTION: {
18671
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._insertElement(t, G.HTML);
18662
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e._insertElement(t, X.HTML);
18672
18663
  break;
18673
18664
  }
18674
18665
  case o.OPTGROUP: {
18675
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._insertElement(t, G.HTML);
18666
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._insertElement(t, X.HTML);
18676
18667
  break;
18677
18668
  }
18678
18669
  case o.HR: {
18679
- e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18670
+ e.openElements.currentTagId === o.OPTION && e.openElements.pop(), e.openElements.currentTagId === o.OPTGROUP && e.openElements.pop(), e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18680
18671
  break;
18681
18672
  }
18682
18673
  case o.INPUT:
@@ -18793,11 +18784,11 @@ function JE(e, t) {
18793
18784
  break;
18794
18785
  }
18795
18786
  case o.FRAMESET: {
18796
- e._insertElement(t, G.HTML);
18787
+ e._insertElement(t, X.HTML);
18797
18788
  break;
18798
18789
  }
18799
18790
  case o.FRAME: {
18800
- e._appendElement(t, G.HTML), t.ackSelfClosing = !0;
18791
+ e._appendElement(t, X.HTML), t.ackSelfClosing = !0;
18801
18792
  break;
18802
18793
  }
18803
18794
  case o.NOFRAMES: {
@@ -18849,7 +18840,7 @@ function uT(e, t) {
18849
18840
  e._insertCharacters(t), e.framesetOk = !1;
18850
18841
  }
18851
18842
  function Gc(e) {
18852
- for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== G.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
18843
+ for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== X.HTML && e.openElements.currentTagId !== void 0 && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current); )
18853
18844
  e.openElements.pop();
18854
18845
  }
18855
18846
  function oT(e, t) {
@@ -18857,7 +18848,7 @@ function oT(e, t) {
18857
18848
  Gc(e), e._startTagOutsideForeignContent(t);
18858
18849
  else {
18859
18850
  const n = e._getAdjustedCurrentElement(), r = e.treeAdapter.getNamespaceURI(n);
18860
- r === G.MATHML ? Lc(t) : r === G.SVG && (Ab(t), wc(t)), Xi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18851
+ r === X.MATHML ? Lc(t) : r === X.SVG && (Ab(t), wc(t)), Xi(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0;
18861
18852
  }
18862
18853
  }
18863
18854
  function sT(e, t) {
@@ -18867,7 +18858,7 @@ function sT(e, t) {
18867
18858
  }
18868
18859
  for (let n = e.openElements.stackTop; n > 0; n--) {
18869
18860
  const r = e.openElements.items[n];
18870
- if (e.treeAdapter.getNamespaceURI(r) === G.HTML) {
18861
+ if (e.treeAdapter.getNamespaceURI(r) === X.HTML) {
18871
18862
  e._endTagOutsideForeignContent(t);
18872
18863
  break;
18873
18864
  }
@@ -19243,95 +19234,95 @@ function DT() {
19243
19234
  e.exports = r();
19244
19235
  })(RT, (function() {
19245
19236
  var n = 1e3, r = 6e4, a = 36e5, i = "millisecond", u = "second", s = "minute", l = "hour", c = "day", d = "week", f = "month", p = "quarter", h = "year", b = "date", m = "Invalid Date", T = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, g = /\[([^\]]+)]|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, D = { 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(I) {
19246
- var L = ["th", "st", "nd", "rd"], B = I % 100;
19247
- return "[" + I + (L[(B - 20) % 10] || L[B] || L[0]) + "]";
19248
- } }, P = function(I, L, B) {
19249
- var W = String(I);
19250
- return !W || W.length >= L ? I : "" + Array(L + 1 - W.length).join(B) + I;
19251
- }, X = { s: P, z: function(I) {
19252
- var L = -I.utcOffset(), B = Math.abs(L), W = Math.floor(B / 60), H = B % 60;
19253
- return (L <= 0 ? "+" : "-") + P(W, 2, "0") + ":" + P(H, 2, "0");
19254
- }, m: function I(L, B) {
19255
- if (L.date() < B.date()) return -I(B, L);
19256
- var W = 12 * (B.year() - L.year()) + (B.month() - L.month()), H = L.clone().add(W, f), z = B - H < 0, y = L.clone().add(W + (z ? -1 : 1), f);
19257
- return +(-(W + (B - H) / (z ? H - y : y - H)) || 0);
19237
+ var w = ["th", "st", "nd", "rd"], F = I % 100;
19238
+ return "[" + I + (w[(F - 20) % 10] || w[F] || w[0]) + "]";
19239
+ } }, P = function(I, w, F) {
19240
+ var V = String(I);
19241
+ return !V || V.length >= w ? I : "" + Array(w + 1 - V.length).join(F) + I;
19242
+ }, W = { s: P, z: function(I) {
19243
+ var w = -I.utcOffset(), F = Math.abs(w), V = Math.floor(F / 60), B = F % 60;
19244
+ return (w <= 0 ? "+" : "-") + P(V, 2, "0") + ":" + P(B, 2, "0");
19245
+ }, m: function I(w, F) {
19246
+ if (w.date() < F.date()) return -I(F, w);
19247
+ var V = 12 * (F.year() - w.year()) + (F.month() - w.month()), B = w.clone().add(V, f), z = F - B < 0, y = w.clone().add(V + (z ? -1 : 1), f);
19248
+ return +(-(V + (F - B) / (z ? B - y : y - B)) || 0);
19258
19249
  }, a: function(I) {
19259
19250
  return I < 0 ? Math.ceil(I) || 0 : Math.floor(I);
19260
19251
  }, p: function(I) {
19261
19252
  return { M: f, y: h, w: d, d: c, D: b, h: l, m: s, s: u, ms: i, Q: p }[I] || String(I || "").toLowerCase().replace(/s$/, "");
19262
19253
  }, u: function(I) {
19263
19254
  return I === void 0;
19264
- } }, F = "en", x = {};
19265
- x[F] = D;
19266
- var w = "$isDayjsObject", V = function(I) {
19267
- return I instanceof $ || !(!I || !I[w]);
19268
- }, q = function I(L, B, W) {
19269
- var H;
19270
- if (!L) return F;
19271
- if (typeof L == "string") {
19272
- var z = L.toLowerCase();
19273
- x[z] && (H = z), B && (x[z] = B, H = z);
19274
- var y = L.split("-");
19275
- if (!H && y.length > 1) return I(y[0]);
19255
+ } }, j = "en", x = {};
19256
+ x[j] = D;
19257
+ var k = "$isDayjsObject", G = function(I) {
19258
+ return I instanceof $ || !(!I || !I[k]);
19259
+ }, q = function I(w, F, V) {
19260
+ var B;
19261
+ if (!w) return j;
19262
+ if (typeof w == "string") {
19263
+ var z = w.toLowerCase();
19264
+ x[z] && (B = z), F && (x[z] = F, B = z);
19265
+ var y = w.split("-");
19266
+ if (!B && y.length > 1) return I(y[0]);
19276
19267
  } else {
19277
- var ne = L.name;
19278
- x[ne] = L, H = ne;
19268
+ var ne = w.name;
19269
+ x[ne] = w, B = ne;
19279
19270
  }
19280
- return !W && H && (F = H), H || !W && F;
19281
- }, te = function(I, L) {
19282
- if (V(I)) return I.clone();
19283
- var B = typeof L == "object" ? L : {};
19284
- return B.date = I, B.args = arguments, new $(B);
19285
- }, Y = X;
19286
- Y.l = q, Y.i = V, Y.w = function(I, L) {
19287
- return te(I, { locale: L.$L, utc: L.$u, x: L.$x, $offset: L.$offset });
19271
+ return !V && B && (j = B), B || !V && j;
19272
+ }, te = function(I, w) {
19273
+ if (G(I)) return I.clone();
19274
+ var F = typeof w == "object" ? w : {};
19275
+ return F.date = I, F.args = arguments, new $(F);
19276
+ }, Y = W;
19277
+ Y.l = q, Y.i = G, Y.w = function(I, w) {
19278
+ return te(I, { locale: w.$L, utc: w.$u, x: w.$x, $offset: w.$offset });
19288
19279
  };
19289
19280
  var $ = (function() {
19290
- function I(B) {
19291
- this.$L = q(B.locale, null, !0), this.parse(B), this.$x = this.$x || B.x || {}, this[w] = !0;
19281
+ function I(F) {
19282
+ this.$L = q(F.locale, null, !0), this.parse(F), this.$x = this.$x || F.x || {}, this[k] = !0;
19292
19283
  }
19293
- var L = I.prototype;
19294
- return L.parse = function(B) {
19295
- this.$d = (function(W) {
19296
- var H = W.date, z = W.utc;
19297
- if (H === null) return /* @__PURE__ */ new Date(NaN);
19298
- if (Y.u(H)) return /* @__PURE__ */ new Date();
19299
- if (H instanceof Date) return new Date(H);
19300
- if (typeof H == "string" && !/Z$/i.test(H)) {
19301
- var y = H.match(T);
19284
+ var w = I.prototype;
19285
+ return w.parse = function(F) {
19286
+ this.$d = (function(V) {
19287
+ var B = V.date, z = V.utc;
19288
+ if (B === null) return /* @__PURE__ */ new Date(NaN);
19289
+ if (Y.u(B)) return /* @__PURE__ */ new Date();
19290
+ if (B instanceof Date) return new Date(B);
19291
+ if (typeof B == "string" && !/Z$/i.test(B)) {
19292
+ var y = B.match(T);
19302
19293
  if (y) {
19303
19294
  var ne = y[2] - 1 || 0, ae = (y[7] || "0").substring(0, 3);
19304
19295
  return z ? new Date(Date.UTC(y[1], ne, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, ae)) : new Date(y[1], ne, y[3] || 1, y[4] || 0, y[5] || 0, y[6] || 0, ae);
19305
19296
  }
19306
19297
  }
19307
- return new Date(H);
19308
- })(B), this.init();
19309
- }, L.init = function() {
19310
- var B = this.$d;
19311
- this.$y = B.getFullYear(), this.$M = B.getMonth(), this.$D = B.getDate(), this.$W = B.getDay(), this.$H = B.getHours(), this.$m = B.getMinutes(), this.$s = B.getSeconds(), this.$ms = B.getMilliseconds();
19312
- }, L.$utils = function() {
19298
+ return new Date(B);
19299
+ })(F), this.init();
19300
+ }, w.init = function() {
19301
+ var F = this.$d;
19302
+ this.$y = F.getFullYear(), this.$M = F.getMonth(), this.$D = F.getDate(), this.$W = F.getDay(), this.$H = F.getHours(), this.$m = F.getMinutes(), this.$s = F.getSeconds(), this.$ms = F.getMilliseconds();
19303
+ }, w.$utils = function() {
19313
19304
  return Y;
19314
- }, L.isValid = function() {
19305
+ }, w.isValid = function() {
19315
19306
  return this.$d.toString() !== m;
19316
- }, L.isSame = function(B, W) {
19317
- var H = te(B);
19318
- return this.startOf(W) <= H && H <= this.endOf(W);
19319
- }, L.isAfter = function(B, W) {
19320
- return te(B) < this.startOf(W);
19321
- }, L.isBefore = function(B, W) {
19322
- return this.endOf(W) < te(B);
19323
- }, L.$g = function(B, W, H) {
19324
- return Y.u(B) ? this[W] : this.set(H, B);
19325
- }, L.unix = function() {
19307
+ }, w.isSame = function(F, V) {
19308
+ var B = te(F);
19309
+ return this.startOf(V) <= B && B <= this.endOf(V);
19310
+ }, w.isAfter = function(F, V) {
19311
+ return te(F) < this.startOf(V);
19312
+ }, w.isBefore = function(F, V) {
19313
+ return this.endOf(V) < te(F);
19314
+ }, w.$g = function(F, V, B) {
19315
+ return Y.u(F) ? this[V] : this.set(B, F);
19316
+ }, w.unix = function() {
19326
19317
  return Math.floor(this.valueOf() / 1e3);
19327
- }, L.valueOf = function() {
19318
+ }, w.valueOf = function() {
19328
19319
  return this.$d.getTime();
19329
- }, L.startOf = function(B, W) {
19330
- var H = this, z = !!Y.u(W) || W, y = Y.p(B), ne = function(ze, Ie) {
19331
- var nt = Y.w(H.$u ? Date.UTC(H.$y, Ie, ze) : new Date(H.$y, Ie, ze), H);
19320
+ }, w.startOf = function(F, V) {
19321
+ var B = this, z = !!Y.u(V) || V, y = Y.p(F), ne = function(ze, Ie) {
19322
+ var nt = Y.w(B.$u ? Date.UTC(B.$y, Ie, ze) : new Date(B.$y, Ie, ze), B);
19332
19323
  return z ? nt : nt.endOf(c);
19333
19324
  }, ae = function(ze, Ie) {
19334
- return Y.w(H.toDate()[ze].apply(H.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), H);
19325
+ return Y.w(B.toDate()[ze].apply(B.toDate("s"), (z ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(Ie)), B);
19335
19326
  }, v = this.$W, se = this.$M, _e = this.$D, pe = "set" + (this.$u ? "UTC" : "");
19336
19327
  switch (y) {
19337
19328
  case h:
@@ -19353,39 +19344,39 @@ function DT() {
19353
19344
  default:
19354
19345
  return this.clone();
19355
19346
  }
19356
- }, L.endOf = function(B) {
19357
- return this.startOf(B, !1);
19358
- }, L.$set = function(B, W) {
19359
- var H, z = Y.p(B), y = "set" + (this.$u ? "UTC" : ""), ne = (H = {}, H[c] = y + "Date", H[b] = y + "Date", H[f] = y + "Month", H[h] = y + "FullYear", H[l] = y + "Hours", H[s] = y + "Minutes", H[u] = y + "Seconds", H[i] = y + "Milliseconds", H)[z], ae = z === c ? this.$D + (W - this.$W) : W;
19347
+ }, w.endOf = function(F) {
19348
+ return this.startOf(F, !1);
19349
+ }, w.$set = function(F, V) {
19350
+ var B, z = Y.p(F), y = "set" + (this.$u ? "UTC" : ""), ne = (B = {}, B[c] = y + "Date", B[b] = y + "Date", B[f] = y + "Month", B[h] = y + "FullYear", B[l] = y + "Hours", B[s] = y + "Minutes", B[u] = y + "Seconds", B[i] = y + "Milliseconds", B)[z], ae = z === c ? this.$D + (V - this.$W) : V;
19360
19351
  if (z === f || z === h) {
19361
19352
  var v = this.clone().set(b, 1);
19362
19353
  v.$d[ne](ae), v.init(), this.$d = v.set(b, Math.min(this.$D, v.daysInMonth())).$d;
19363
19354
  } else ne && this.$d[ne](ae);
19364
19355
  return this.init(), this;
19365
- }, L.set = function(B, W) {
19366
- return this.clone().$set(B, W);
19367
- }, L.get = function(B) {
19368
- return this[Y.p(B)]();
19369
- }, L.add = function(B, W) {
19370
- var H, z = this;
19371
- B = Number(B);
19372
- var y = Y.p(W), ne = function(se) {
19356
+ }, w.set = function(F, V) {
19357
+ return this.clone().$set(F, V);
19358
+ }, w.get = function(F) {
19359
+ return this[Y.p(F)]();
19360
+ }, w.add = function(F, V) {
19361
+ var B, z = this;
19362
+ F = Number(F);
19363
+ var y = Y.p(V), ne = function(se) {
19373
19364
  var _e = te(z);
19374
- return Y.w(_e.date(_e.date() + Math.round(se * B)), z);
19365
+ return Y.w(_e.date(_e.date() + Math.round(se * F)), z);
19375
19366
  };
19376
- if (y === f) return this.set(f, this.$M + B);
19377
- if (y === h) return this.set(h, this.$y + B);
19367
+ if (y === f) return this.set(f, this.$M + F);
19368
+ if (y === h) return this.set(h, this.$y + F);
19378
19369
  if (y === c) return ne(1);
19379
19370
  if (y === d) return ne(7);
19380
- var ae = (H = {}, H[s] = r, H[l] = a, H[u] = n, H)[y] || 1, v = this.$d.getTime() + B * ae;
19371
+ var ae = (B = {}, B[s] = r, B[l] = a, B[u] = n, B)[y] || 1, v = this.$d.getTime() + F * ae;
19381
19372
  return Y.w(v, this);
19382
- }, L.subtract = function(B, W) {
19383
- return this.add(-1 * B, W);
19384
- }, L.format = function(B) {
19385
- var W = this, H = this.$locale();
19386
- if (!this.isValid()) return H.invalidDate || m;
19387
- var z = B || "YYYY-MM-DDTHH:mm:ssZ", y = Y.z(this), ne = this.$H, ae = this.$m, v = this.$M, se = H.weekdays, _e = H.months, pe = H.meridiem, Se = function(Ie, nt, st, wt) {
19388
- return Ie && (Ie[nt] || Ie(W, z)) || st[nt].slice(0, wt);
19373
+ }, w.subtract = function(F, V) {
19374
+ return this.add(-1 * F, V);
19375
+ }, w.format = function(F) {
19376
+ var V = this, B = this.$locale();
19377
+ if (!this.isValid()) return B.invalidDate || m;
19378
+ var z = F || "YYYY-MM-DDTHH:mm:ssZ", y = Y.z(this), ne = this.$H, ae = this.$m, v = this.$M, se = B.weekdays, _e = B.months, pe = B.meridiem, Se = function(Ie, nt, st, wt) {
19379
+ return Ie && (Ie[nt] || Ie(V, z)) || st[nt].slice(0, wt);
19389
19380
  }, Oe = function(Ie) {
19390
19381
  return Y.s(ne % 12 || 12, Ie, "0");
19391
19382
  }, ze = pe || function(Ie, nt, st) {
@@ -19396,29 +19387,29 @@ function DT() {
19396
19387
  return nt || (function(st) {
19397
19388
  switch (st) {
19398
19389
  case "YY":
19399
- return String(W.$y).slice(-2);
19390
+ return String(V.$y).slice(-2);
19400
19391
  case "YYYY":
19401
- return Y.s(W.$y, 4, "0");
19392
+ return Y.s(V.$y, 4, "0");
19402
19393
  case "M":
19403
19394
  return v + 1;
19404
19395
  case "MM":
19405
19396
  return Y.s(v + 1, 2, "0");
19406
19397
  case "MMM":
19407
- return Se(H.monthsShort, v, _e, 3);
19398
+ return Se(B.monthsShort, v, _e, 3);
19408
19399
  case "MMMM":
19409
19400
  return Se(_e, v);
19410
19401
  case "D":
19411
- return W.$D;
19402
+ return V.$D;
19412
19403
  case "DD":
19413
- return Y.s(W.$D, 2, "0");
19404
+ return Y.s(V.$D, 2, "0");
19414
19405
  case "d":
19415
- return String(W.$W);
19406
+ return String(V.$W);
19416
19407
  case "dd":
19417
- return Se(H.weekdaysMin, W.$W, se, 2);
19408
+ return Se(B.weekdaysMin, V.$W, se, 2);
19418
19409
  case "ddd":
19419
- return Se(H.weekdaysShort, W.$W, se, 3);
19410
+ return Se(B.weekdaysShort, V.$W, se, 3);
19420
19411
  case "dddd":
19421
- return se[W.$W];
19412
+ return se[V.$W];
19422
19413
  case "H":
19423
19414
  return String(ne);
19424
19415
  case "HH":
@@ -19436,21 +19427,21 @@ function DT() {
19436
19427
  case "mm":
19437
19428
  return Y.s(ae, 2, "0");
19438
19429
  case "s":
19439
- return String(W.$s);
19430
+ return String(V.$s);
19440
19431
  case "ss":
19441
- return Y.s(W.$s, 2, "0");
19432
+ return Y.s(V.$s, 2, "0");
19442
19433
  case "SSS":
19443
- return Y.s(W.$ms, 3, "0");
19434
+ return Y.s(V.$ms, 3, "0");
19444
19435
  case "Z":
19445
19436
  return y;
19446
19437
  }
19447
19438
  return null;
19448
19439
  })(Ie) || y.replace(":", "");
19449
19440
  }));
19450
- }, L.utcOffset = function() {
19441
+ }, w.utcOffset = function() {
19451
19442
  return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
19452
- }, L.diff = function(B, W, H) {
19453
- var z, y = this, ne = Y.p(W), ae = te(B), v = (ae.utcOffset() - this.utcOffset()) * r, se = this - ae, _e = function() {
19443
+ }, w.diff = function(F, V, B) {
19444
+ var z, y = this, ne = Y.p(V), ae = te(F), v = (ae.utcOffset() - this.utcOffset()) * r, se = this - ae, _e = function() {
19454
19445
  return Y.m(y, ae);
19455
19446
  };
19456
19447
  switch (ne) {
@@ -19481,36 +19472,36 @@ function DT() {
19481
19472
  default:
19482
19473
  z = se;
19483
19474
  }
19484
- return H ? z : Y.a(z);
19485
- }, L.daysInMonth = function() {
19475
+ return B ? z : Y.a(z);
19476
+ }, w.daysInMonth = function() {
19486
19477
  return this.endOf(f).$D;
19487
- }, L.$locale = function() {
19478
+ }, w.$locale = function() {
19488
19479
  return x[this.$L];
19489
- }, L.locale = function(B, W) {
19490
- if (!B) return this.$L;
19491
- var H = this.clone(), z = q(B, W, !0);
19492
- return z && (H.$L = z), H;
19493
- }, L.clone = function() {
19480
+ }, w.locale = function(F, V) {
19481
+ if (!F) return this.$L;
19482
+ var B = this.clone(), z = q(F, V, !0);
19483
+ return z && (B.$L = z), B;
19484
+ }, w.clone = function() {
19494
19485
  return Y.w(this.$d, this);
19495
- }, L.toDate = function() {
19486
+ }, w.toDate = function() {
19496
19487
  return new Date(this.valueOf());
19497
- }, L.toJSON = function() {
19488
+ }, w.toJSON = function() {
19498
19489
  return this.isValid() ? this.toISOString() : null;
19499
- }, L.toISOString = function() {
19490
+ }, w.toISOString = function() {
19500
19491
  return this.$d.toISOString();
19501
- }, L.toString = function() {
19492
+ }, w.toString = function() {
19502
19493
  return this.$d.toUTCString();
19503
19494
  }, I;
19504
- })(), k = $.prototype;
19505
- return te.prototype = k, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach((function(I) {
19506
- k[I[1]] = function(L) {
19507
- return this.$g(L, I[0], I[1]);
19495
+ })(), L = $.prototype;
19496
+ return te.prototype = L, [["$ms", i], ["$s", u], ["$m", s], ["$H", l], ["$W", c], ["$M", f], ["$y", h], ["$D", b]].forEach((function(I) {
19497
+ L[I[1]] = function(w) {
19498
+ return this.$g(w, I[0], I[1]);
19508
19499
  };
19509
- })), te.extend = function(I, L) {
19510
- return I.$i || (I(L, $, te), I.$i = !0), te;
19511
- }, te.locale = q, te.isDayjs = V, te.unix = function(I) {
19500
+ })), te.extend = function(I, w) {
19501
+ return I.$i || (I(w, $, te), I.$i = !0), te;
19502
+ }, te.locale = q, te.isDayjs = G, te.unix = function(I) {
19512
19503
  return te(1e3 * I);
19513
- }, te.en = x[F], te.Ls = x, te.p = {}, te;
19504
+ }, te.en = x[j], te.Ls = x, te.p = {}, te;
19514
19505
  }));
19515
19506
  })(Br)), Br.exports;
19516
19507
  }
@@ -19974,14 +19965,14 @@ const GT = (e) => ({
19974
19965
  d?.userMessageBubble?.style
19975
19966
  ),
19976
19967
  [c, d?.userMessageBubble?.style]
19977
- ), X = un(
19968
+ ), W = un(
19978
19969
  () => GT(l)(f),
19979
19970
  [f, l]
19980
- ), F = un(() => {
19971
+ ), j = un(() => {
19981
19972
  if (!D) return null;
19982
19973
  if (T === ve.USER)
19983
- return X;
19984
- const x = XT(X);
19974
+ return W;
19975
+ const x = XT(W);
19985
19976
  return /* @__PURE__ */ _.jsx(
19986
19977
  Ui,
19987
19978
  {
@@ -19997,7 +19988,7 @@ const GT = (e) => ({
19997
19988
  );
19998
19989
  }, [
19999
19990
  D,
20000
- X,
19991
+ W,
20001
19992
  i,
20002
19993
  P,
20003
19994
  T
@@ -20030,7 +20021,7 @@ const GT = (e) => ({
20030
20021
  className: P[T].bubbleClassName,
20031
20022
  style: P[T].bubbleStyle,
20032
20023
  children: [
20033
- F,
20024
+ j,
20034
20025
  g && /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
20035
20026
  /* @__PURE__ */ _.jsx("div", { children: KT }),
20036
20027
  /* @__PURE__ */ _.jsx(
@@ -20677,9 +20668,9 @@ function JT() {
20677
20668
  return m && window.clearTimeout(m);
20678
20669
  };
20679
20670
  }, c = function(d, f, p, h, b, m, T) {
20680
- var g = f.setLastMessage, D = f.setReadyState, P, X, F;
20681
- return p.current.fromSocketIO && (P = (0, t.setUpSocketIOPing)(T)), i(d, p, g, m), u(d, p, D, b, m), X = s(d, p, D, h, b), F = l(d, p, D, h, b), function() {
20682
- D(r.ReadyState.CLOSING), X(), F(), d.close(), P && clearInterval(P);
20671
+ var g = f.setLastMessage, D = f.setReadyState, P, W, j;
20672
+ return p.current.fromSocketIO && (P = (0, t.setUpSocketIOPing)(T)), i(d, p, g, m), u(d, p, D, b, m), W = s(d, p, D, h, b), j = l(d, p, D, h, b), function() {
20673
+ D(r.ReadyState.CLOSING), W(), j(), d.close(), P && clearInterval(P);
20683
20674
  };
20684
20675
  };
20685
20676
  return en.attachListeners = c, en;
@@ -20891,22 +20882,22 @@ function n3() {
20891
20882
  for (var d = [], f = 2; f < arguments.length; f++)
20892
20883
  d[f - 2] = arguments[f];
20893
20884
  return t(void 0, r([l, c], d, !0), void 0, function(p, h, b) {
20894
- var m, T, g, D, P, X, F, x;
20895
- return b === void 0 && (b = 0), n(this, function(w) {
20896
- switch (w.label) {
20885
+ var m, T, g, D, P, W, j, x;
20886
+ return b === void 0 && (b = 0), n(this, function(k) {
20887
+ switch (k.label) {
20897
20888
  case 0:
20898
20889
  if (typeof p != "function") return [3, 10];
20899
- w.label = 1;
20890
+ k.label = 1;
20900
20891
  case 1:
20901
- return w.trys.push([1, 3, , 9]), [4, p()];
20892
+ return k.trys.push([1, 3, , 9]), [4, p()];
20902
20893
  case 2:
20903
- return m = w.sent(), [3, 9];
20894
+ return m = k.sent(), [3, 9];
20904
20895
  case 3:
20905
- return w.sent(), h.current.retryOnError ? (T = (X = h.current.reconnectAttempts) !== null && X !== void 0 ? X : i.DEFAULT_RECONNECT_LIMIT, b < T ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20896
+ return k.sent(), h.current.retryOnError ? (T = (W = h.current.reconnectAttempts) !== null && W !== void 0 ? W : i.DEFAULT_RECONNECT_LIMIT, b < T ? (g = typeof h.current.reconnectInterval == "function" ? h.current.reconnectInterval(b) : h.current.reconnectInterval, [4, u(g ?? i.DEFAULT_RECONNECT_INTERVAL_MS)]) : [3, 5]) : [3, 7];
20906
20897
  case 4:
20907
- return w.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
20898
+ return k.sent(), [2, (0, e.getUrl)(p, h, b + 1)];
20908
20899
  case 5:
20909
- return (x = (F = h.current).onReconnectStop) === null || x === void 0 || x.call(F, b), [2, null];
20900
+ return (x = (j = h.current).onReconnectStop) === null || x === void 0 || x.call(j, b), [2, null];
20910
20901
  case 6:
20911
20902
  return [3, 8];
20912
20903
  case 7:
@@ -20916,7 +20907,7 @@ function n3() {
20916
20907
  case 9:
20917
20908
  return [3, 11];
20918
20909
  case 10:
20919
- m = p, w.label = 11;
20910
+ m = p, k.label = 11;
20920
20911
  case 11:
20921
20912
  return D = h.current.fromSocketIO ? (0, a.parseSocketIOUrl)(m) : m, P = h.current.queryParams ? (0, a.appendQueryParams)(D, h.current.queryParams) : D, [2, P];
20922
20913
  }
@@ -20966,22 +20957,22 @@ function su() {
20966
20957
  return new (b || (b = Promise))(function(g, D) {
20967
20958
  function P(x) {
20968
20959
  try {
20969
- F(m.next(x));
20970
- } catch (w) {
20971
- D(w);
20960
+ j(m.next(x));
20961
+ } catch (k) {
20962
+ D(k);
20972
20963
  }
20973
20964
  }
20974
- function X(x) {
20965
+ function W(x) {
20975
20966
  try {
20976
- F(m.throw(x));
20977
- } catch (w) {
20978
- D(w);
20967
+ j(m.throw(x));
20968
+ } catch (k) {
20969
+ D(k);
20979
20970
  }
20980
20971
  }
20981
- function F(x) {
20982
- x.done ? g(x.value) : T(x.value).then(P, X);
20972
+ function j(x) {
20973
+ x.done ? g(x.value) : T(x.value).then(P, W);
20983
20974
  }
20984
- F((m = m.apply(p, h || [])).next());
20975
+ j((m = m.apply(p, h || [])).next());
20985
20976
  });
20986
20977
  }, n = gt && gt.__generator || function(p, h) {
20987
20978
  var b = { label: 0, sent: function() {
@@ -20991,56 +20982,56 @@ function su() {
20991
20982
  return D.next = P(0), D.throw = P(1), D.return = P(2), typeof Symbol == "function" && (D[Symbol.iterator] = function() {
20992
20983
  return this;
20993
20984
  }), D;
20994
- function P(F) {
20985
+ function P(j) {
20995
20986
  return function(x) {
20996
- return X([F, x]);
20987
+ return W([j, x]);
20997
20988
  };
20998
20989
  }
20999
- function X(F) {
20990
+ function W(j) {
21000
20991
  if (m) throw new TypeError("Generator is already executing.");
21001
- for (; D && (D = 0, F[0] && (b = 0)), b; ) try {
21002
- if (m = 1, T && (g = F[0] & 2 ? T.return : F[0] ? T.throw || ((g = T.return) && g.call(T), 0) : T.next) && !(g = g.call(T, F[1])).done) return g;
21003
- switch (T = 0, g && (F = [F[0] & 2, g.value]), F[0]) {
20992
+ for (; D && (D = 0, j[0] && (b = 0)), b; ) try {
20993
+ if (m = 1, T && (g = j[0] & 2 ? T.return : j[0] ? T.throw || ((g = T.return) && g.call(T), 0) : T.next) && !(g = g.call(T, j[1])).done) return g;
20994
+ switch (T = 0, g && (j = [j[0] & 2, g.value]), j[0]) {
21004
20995
  case 0:
21005
20996
  case 1:
21006
- g = F;
20997
+ g = j;
21007
20998
  break;
21008
20999
  case 4:
21009
- return b.label++, { value: F[1], done: !1 };
21000
+ return b.label++, { value: j[1], done: !1 };
21010
21001
  case 5:
21011
- b.label++, T = F[1], F = [0];
21002
+ b.label++, T = j[1], j = [0];
21012
21003
  continue;
21013
21004
  case 7:
21014
- F = b.ops.pop(), b.trys.pop();
21005
+ j = b.ops.pop(), b.trys.pop();
21015
21006
  continue;
21016
21007
  default:
21017
- if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (F[0] === 6 || F[0] === 2)) {
21008
+ if (g = b.trys, !(g = g.length > 0 && g[g.length - 1]) && (j[0] === 6 || j[0] === 2)) {
21018
21009
  b = 0;
21019
21010
  continue;
21020
21011
  }
21021
- if (F[0] === 3 && (!g || F[1] > g[0] && F[1] < g[3])) {
21022
- b.label = F[1];
21012
+ if (j[0] === 3 && (!g || j[1] > g[0] && j[1] < g[3])) {
21013
+ b.label = j[1];
21023
21014
  break;
21024
21015
  }
21025
- if (F[0] === 6 && b.label < g[1]) {
21026
- b.label = g[1], g = F;
21016
+ if (j[0] === 6 && b.label < g[1]) {
21017
+ b.label = g[1], g = j;
21027
21018
  break;
21028
21019
  }
21029
21020
  if (g && b.label < g[2]) {
21030
- b.label = g[2], b.ops.push(F);
21021
+ b.label = g[2], b.ops.push(j);
21031
21022
  break;
21032
21023
  }
21033
21024
  g[2] && b.ops.pop(), b.trys.pop();
21034
21025
  continue;
21035
21026
  }
21036
- F = h.call(p, b);
21027
+ j = h.call(p, b);
21037
21028
  } catch (x) {
21038
- F = [6, x], T = 0;
21029
+ j = [6, x], T = 0;
21039
21030
  } finally {
21040
21031
  m = g = 0;
21041
21032
  }
21042
- if (F[0] & 5) throw F[1];
21043
- return { value: F[0] ? F[1] : void 0, done: !0 };
21033
+ if (j[0] & 5) throw j[1];
21034
+ return { value: j[0] ? j[1] : void 0, done: !0 };
21044
21035
  }
21045
21036
  }, r = gt && gt.__importDefault || function(p) {
21046
21037
  return p && p.__esModule ? p : { default: p };
@@ -21048,7 +21039,7 @@ function su() {
21048
21039
  Object.defineProperty(gt, "__esModule", { value: !0 }), gt.useWebSocket = void 0;
21049
21040
  var a = Ct, i = w0, u = Bt(), s = t3(), l = n3(), c = r(r3()), d = ou(), f = function(p, h, b) {
21050
21041
  h === void 0 && (h = u.DEFAULT_OPTIONS), b === void 0 && (b = !0);
21051
- var m = (0, a.useState)(null), T = m[0], g = m[1], D = (0, a.useState)({}), P = D[0], X = D[1], F = (0, a.useMemo)(function() {
21042
+ var m = (0, a.useState)(null), T = m[0], g = m[1], D = (0, a.useState)({}), P = D[0], W = D[1], j = (0, a.useMemo)(function() {
21052
21043
  if (!h.disableJson && T)
21053
21044
  try {
21054
21045
  return JSON.parse(T.data);
@@ -21056,20 +21047,20 @@ function su() {
21056
21047
  return u.UNPARSABLE_JSON_OBJECT;
21057
21048
  }
21058
21049
  return null;
21059
- }, [T, h.disableJson]), x = (0, a.useRef)(null), w = (0, a.useRef)(null), V = (0, a.useRef)(function() {
21060
- }), q = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), k = (0, a.useRef)(h);
21061
- k.current = h;
21062
- var I = x.current && P[x.current] !== void 0 ? P[x.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, L = h.queryParams ? JSON.stringify(h.queryParams) : null, B = (0, a.useCallback)(function(z, y) {
21050
+ }, [T, h.disableJson]), x = (0, a.useRef)(null), k = (0, a.useRef)(null), G = (0, a.useRef)(function() {
21051
+ }), q = (0, a.useRef)(0), te = (0, a.useRef)(Date.now()), Y = (0, a.useRef)([]), $ = (0, a.useRef)(null), L = (0, a.useRef)(h);
21052
+ L.current = h;
21053
+ var I = x.current && P[x.current] !== void 0 ? P[x.current] : p !== null && b === !0 ? u.ReadyState.CONNECTING : u.ReadyState.UNINSTANTIATED, w = h.queryParams ? JSON.stringify(h.queryParams) : null, F = (0, a.useCallback)(function(z, y) {
21063
21054
  var ne;
21064
- if (y === void 0 && (y = !0), u.isEventSourceSupported && w.current instanceof EventSource) {
21055
+ if (y === void 0 && (y = !0), u.isEventSourceSupported && k.current instanceof EventSource) {
21065
21056
  console.warn("Unable to send a message from an eventSource");
21066
21057
  return;
21067
21058
  }
21068
- ((ne = w.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(w.current, k.current.skipAssert), w.current.send(z)) : y && Y.current.push(z);
21069
- }, []), W = (0, a.useCallback)(function(z, y) {
21070
- y === void 0 && (y = !0), B(JSON.stringify(z), y);
21071
- }, [B]), H = (0, a.useCallback)(function() {
21072
- return k.current.share !== !0 || u.isEventSourceSupported && w.current instanceof EventSource ? w.current : ($.current === null && w.current && ((0, d.assertIsWebSocket)(w.current, k.current.skipAssert), $.current = (0, c.default)(w.current, V)), $.current);
21059
+ ((ne = k.current) === null || ne === void 0 ? void 0 : ne.readyState) === u.ReadyState.OPEN ? ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), k.current.send(z)) : y && Y.current.push(z);
21060
+ }, []), V = (0, a.useCallback)(function(z, y) {
21061
+ y === void 0 && (y = !0), F(JSON.stringify(z), y);
21062
+ }, [F]), B = (0, a.useCallback)(function() {
21063
+ return L.current.share !== !0 || u.isEventSourceSupported && k.current instanceof EventSource ? k.current : ($.current === null && k.current && ((0, d.assertIsWebSocket)(k.current, L.current.skipAssert), $.current = (0, c.default)(k.current, G)), $.current);
21073
21064
  }, []);
21074
21065
  return (0, a.useEffect)(function() {
21075
21066
  if (p !== null && b === !0) {
@@ -21079,10 +21070,10 @@ function su() {
21079
21070
  return n(this, function(pe) {
21080
21071
  switch (pe.label) {
21081
21072
  case 0:
21082
- return v = x, [4, (0, l.getUrl)(p, k)];
21073
+ return v = x, [4, (0, l.getUrl)(p, L)];
21083
21074
  case 1:
21084
21075
  return v.current = pe.sent(), x.current === null ? (console.error("Failed to get a valid URL. WebSocket connection aborted."), x.current = "ABORTED", (0, i.flushSync)(function() {
21085
- return X(function(Se) {
21076
+ return W(function(Se) {
21086
21077
  return e(e({}, Se), { ABORTED: u.ReadyState.CLOSED });
21087
21078
  });
21088
21079
  }), [
@@ -21094,12 +21085,12 @@ function su() {
21094
21085
  });
21095
21086
  }, _e = function(Se) {
21096
21087
  y || (0, i.flushSync)(function() {
21097
- return X(function(Oe) {
21088
+ return W(function(Oe) {
21098
21089
  var ze;
21099
21090
  return e(e({}, Oe), x.current && (ze = {}, ze[x.current] = Se, ze));
21100
21091
  });
21101
21092
  });
21102
- }, ne && (z = (0, s.createOrJoinSocket)(w, x.current, _e, k, se, V, q, te, B)), [
21093
+ }, ne && (z = (0, s.createOrJoinSocket)(k, x.current, _e, L, se, G, q, te, F)), [
21103
21094
  2
21104
21095
  /*return*/
21105
21096
  ]);
@@ -21107,26 +21098,26 @@ function su() {
21107
21098
  });
21108
21099
  });
21109
21100
  };
21110
- return V.current = function() {
21101
+ return G.current = function() {
21111
21102
  y || ($.current && ($.current = null), z?.(), ae());
21112
21103
  }, ae(), function() {
21113
21104
  y = !0, ne = !1, $.current && ($.current = null), z?.(), g(null);
21114
21105
  };
21115
- } else (p === null || b === !1) && (q.current = 0, X(function(v) {
21106
+ } else (p === null || b === !1) && (q.current = 0, W(function(v) {
21116
21107
  var se;
21117
21108
  return e(e({}, v), x.current && (se = {}, se[x.current] = u.ReadyState.CLOSED, se));
21118
21109
  }));
21119
- }, [p, b, L, B]), (0, a.useEffect)(function() {
21110
+ }, [p, b, w, F]), (0, a.useEffect)(function() {
21120
21111
  I === u.ReadyState.OPEN && Y.current.splice(0).forEach(function(z) {
21121
- B(z);
21112
+ F(z);
21122
21113
  });
21123
21114
  }, [I]), {
21124
- sendMessage: B,
21125
- sendJsonMessage: W,
21115
+ sendMessage: F,
21116
+ sendJsonMessage: V,
21126
21117
  lastMessage: T,
21127
- lastJsonMessage: F,
21118
+ lastJsonMessage: j,
21128
21119
  readyState: I,
21129
- getWebSocket: H
21120
+ getWebSocket: B
21130
21121
  };
21131
21122
  };
21132
21123
  return gt.useWebSocket = f, gt;
@@ -21209,8 +21200,8 @@ function i3() {
21209
21200
  var b = (0, r.useWebSocket)(u, p, l), m = b.lastMessage, T = b.readyState, g = b.getWebSocket;
21210
21201
  return (0, n.useEffect)(function() {
21211
21202
  m?.type && Object.entries(h.current).forEach(function(D) {
21212
- var P = D[0], X = D[1];
21213
- P === m.type && X(m);
21203
+ var P = D[0], W = D[1];
21204
+ P === m.type && W(m);
21214
21205
  });
21215
21206
  }, [m]), {
21216
21207
  lastEvent: m,
@@ -21267,8 +21258,8 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21267
21258
  CONVERSATION: "CONVERSATION",
21268
21259
  FORM: "FORM"
21269
21260
  }, pn = Xr({}), hd = ({ children: e, liveChatPayload: t }) => {
21270
- const { conversationScreen: n } = oe($e), { pushXpertMessage: r } = oe($t), { setHasError: a, setMode: i } = oe(tt), [u, s] = le(""), [l, c] = le(!1), [, d] = le(""), [f, p] = le([]), [h, b] = le(null), [m, T] = le(Yt.FORM), [g, D] = le(null), P = (H) => p((z) => [...z, H]), X = async (H) => {
21271
- const z = await l3(H.data), { conversation_id: y, event_type: ne, body: ae } = z;
21261
+ const { conversationScreen: n } = oe($e), { pushXpertMessage: r } = oe($t), { setHasError: a, setMode: i } = oe(tt), [u, s] = le(""), [l, c] = le(!1), [, d] = le(""), [f, p] = le([]), [h, b] = le(null), [m, T] = le(Yt.FORM), [g, D] = le(null), P = (B) => p((z) => [...z, B]), W = async (B) => {
21262
+ const z = await l3(B.data), { conversation_id: y, event_type: ne, body: ae } = z;
21272
21263
  switch (ne) {
21273
21264
  case "AGENT_TYPING":
21274
21265
  return te();
@@ -21279,7 +21270,7 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21279
21270
  case "CONVERSATION_ERROR":
21280
21271
  return;
21281
21272
  case "CONVERSATION_TERMINATED":
21282
- return V();
21273
+ return G();
21283
21274
  case "CONVERSATION_TRANSFERRED_TO_GROUP":
21284
21275
  return;
21285
21276
  case "CONVERSATION_TRANSFERRED_TO_AGENT":
@@ -21293,18 +21284,18 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21293
21284
  default:
21294
21285
  return;
21295
21286
  }
21296
- }, { sendJsonMessage: F } = s3(h, {
21297
- onMessage: X
21287
+ }, { sendJsonMessage: j } = s3(h, {
21288
+ onMessage: W
21298
21289
  }), x = () => {
21299
21290
  T(Yt.FORM);
21300
- const H = n?.liveChat?.form;
21301
- (!H || H.length === 0) && i(Nt.XPERT);
21302
- }, w = () => {
21303
- F({
21291
+ const B = n?.liveChat?.form;
21292
+ (!B || B.length === 0) && i(Nt.XPERT);
21293
+ }, k = () => {
21294
+ j({
21304
21295
  action: "sendmessage",
21305
21296
  event: "TERMINATE_CONVERSATION"
21306
21297
  });
21307
- }, V = () => {
21298
+ }, G = () => {
21308
21299
  r({
21309
21300
  content: c3,
21310
21301
  role: ve.INFO
@@ -21313,21 +21304,21 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21313
21304
  d(""), b(null), T(Yt.FORM), i(Nt.XPERT);
21314
21305
  }, te = () => {
21315
21306
  g && clearTimeout(g), c(!0);
21316
- const H = setTimeout(() => {
21307
+ const B = setTimeout(() => {
21317
21308
  c(!1);
21318
21309
  }, 5e3);
21319
- D(H);
21320
- }, Y = (H) => {
21321
- const { displayName: z } = H;
21310
+ D(B);
21311
+ }, Y = (B) => {
21312
+ const { displayName: z } = B;
21322
21313
  p([]), s(z ?? "An agent"), T(Yt.CONVERSATION);
21323
- }, $ = (H) => {
21324
- const { messageId: z, text: y, timestamp: ne } = H;
21314
+ }, $ = (B) => {
21315
+ const { messageId: z, text: y, timestamp: ne } = B;
21325
21316
  P({
21326
21317
  content: y ?? "",
21327
21318
  id: z ?? "",
21328
21319
  role: ve.AGENT,
21329
21320
  timestamp: ne ? new Date(ne) : void 0
21330
- }), F({
21321
+ }), j({
21331
21322
  action: "sendmessage",
21332
21323
  messages: [
21333
21324
  {
@@ -21337,27 +21328,27 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21337
21328
  ],
21338
21329
  event: "ACKNOWLEDGE_MESSAGE"
21339
21330
  }), c(!1);
21340
- }, W = {
21331
+ }, V = {
21341
21332
  agentName: u,
21342
21333
  agentTyping: l,
21343
21334
  cancelLiveChatConnection: x,
21344
- endLiveChat: V,
21335
+ endLiveChat: G,
21345
21336
  liveChatMessages: f,
21346
21337
  pushLiveChatMessage: P,
21347
- sendMessage: (H) => {
21338
+ sendMessage: (B) => {
21348
21339
  P({
21349
- content: H,
21340
+ content: B,
21350
21341
  id: "",
21351
21342
  role: ve.USER,
21352
21343
  timestamp: /* @__PURE__ */ new Date()
21353
- }), F({
21344
+ }), j({
21354
21345
  action: "sendmessage",
21355
21346
  event: "OUTGOING_MESSAGE",
21356
- message: H
21347
+ message: B
21357
21348
  });
21358
21349
  },
21359
21350
  sendTypingEvent: async () => {
21360
- F({
21351
+ j({
21361
21352
  action: "sendmessage",
21362
21353
  event: "TYPING"
21363
21354
  });
@@ -21365,10 +21356,10 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21365
21356
  setLiveChatMessages: p,
21366
21357
  step: m,
21367
21358
  setStep: T,
21368
- startLiveChat: (H) => {
21359
+ startLiveChat: (B) => {
21369
21360
  try {
21370
21361
  T(Yt.CONNECTING);
21371
- const z = new URLSearchParams({ ...t, ...H });
21362
+ const z = new URLSearchParams({ ...t, ...B });
21372
21363
  z.append("url", window.location.href), b(
21373
21364
  `${n?.liveChat?.socketUrl}?${z.toString()}`
21374
21365
  );
@@ -21382,11 +21373,11 @@ const c3 = "This conversation with a live agent has ended. Please note that a tr
21382
21373
  icon: "check",
21383
21374
  iconColor: "#30A171",
21384
21375
  role: ve.NOTIFICATION
21385
- }), V();
21376
+ }), G();
21386
21377
  },
21387
- terminateConversation: w
21378
+ terminateConversation: k
21388
21379
  };
21389
- return /* @__PURE__ */ _.jsx(pn.Provider, { value: W, children: e });
21380
+ return /* @__PURE__ */ _.jsx(pn.Provider, { value: V, children: e });
21390
21381
  };
21391
21382
  hd.propTypes = {
21392
21383
  children: A.element.isRequired,
@@ -21908,47 +21899,47 @@ function _d() {
21908
21899
  ), T = () => {
21909
21900
  r(Nt.XPERT);
21910
21901
  }, g = () => {
21911
- p("privacyCheck"), f((F) => !F);
21912
- }, D = (F, x) => {
21913
- const w = F.target.value;
21914
- p(x), c(x, w);
21902
+ p("privacyCheck"), f((j) => !j);
21903
+ }, D = (j, x) => {
21904
+ const k = j.target.value;
21905
+ p(x), c(x, k);
21915
21906
  }, P = () => {
21916
- X() && n(l);
21907
+ W() && n(l);
21917
21908
  };
21918
21909
  Le(() => {
21919
21910
  (!a || a.length === 0) && n();
21920
21911
  }, [a, n]);
21921
- const X = () => {
21922
- const F = a.reduce((x, w) => {
21923
- const { key: V, validations: q = [] } = w, te = l[V];
21924
- if (!te) return { ...x, [V]: "Required" };
21912
+ const W = () => {
21913
+ const j = a.reduce((x, k) => {
21914
+ const { key: G, validations: q = [] } = k, te = l[G];
21915
+ if (!te) return { ...x, [G]: "Required" };
21925
21916
  if (q?.length > 0)
21926
21917
  for (const Y of q)
21927
21918
  switch (Y) {
21928
21919
  case "email": {
21929
21920
  if (!E3(te))
21930
- return { ...x, [V]: "Should be email" };
21921
+ return { ...x, [G]: "Should be email" };
21931
21922
  break;
21932
21923
  }
21933
21924
  }
21934
21925
  return x;
21935
21926
  }, {});
21936
- return !d && s && (F.privacyCheck = "Required"), b(F), Object.keys(F).length === 0;
21927
+ return !d && s && (j.privacyCheck = "Required"), b(j), Object.keys(j).length === 0;
21937
21928
  };
21938
21929
  return /* @__PURE__ */ _.jsxs("div", { className: "live-chat-form", children: [
21939
21930
  i && /* @__PURE__ */ _.jsx("p", { children: i }),
21940
- (a ?? []).map(({ key: F, name: x }) => /* @__PURE__ */ _.jsxs(k0, { children: [
21931
+ (a ?? []).map(({ key: j, name: x }) => /* @__PURE__ */ _.jsxs(k0, { children: [
21941
21932
  /* @__PURE__ */ _.jsx(
21942
21933
  "input",
21943
21934
  {
21944
- className: `live-chat-form-input ${h[F] ? "error" : ""}`,
21935
+ className: `live-chat-form-input ${h[j] ? "error" : ""}`,
21945
21936
  name: x,
21946
21937
  placeholder: x,
21947
- onChange: (w) => D(w, F)
21938
+ onChange: (k) => D(k, j)
21948
21939
  }
21949
21940
  ),
21950
- h[F] && /* @__PURE__ */ _.jsx("p", { className: "live-chat-form-error", children: h[F] })
21951
- ] }, F)),
21941
+ h[j] && /* @__PURE__ */ _.jsx("p", { className: "live-chat-form-error", children: h[j] })
21942
+ ] }, j)),
21952
21943
  s && /* @__PURE__ */ _.jsxs(_.Fragment, { children: [
21953
21944
  /* @__PURE__ */ _.jsx(
21954
21945
  "div",
@@ -21993,7 +21984,7 @@ function _d() {
21993
21984
  },
21994
21985
  type: "checkbox",
21995
21986
  onChange: g,
21996
- onKeyDown: (F) => F.key === "Enter" && g()
21987
+ onKeyDown: (j) => j.key === "Enter" && g()
21997
21988
  }
21998
21989
  ),
21999
21990
  /* @__PURE__ */ _.jsx("label", { htmlFor: "privacy-check", children: "Yes, I accept" })
@@ -22221,19 +22212,19 @@ function Sd({ submitEventExternal: e = null }) {
22221
22212
  isMobile: g,
22222
22213
  mode: D,
22223
22214
  setDisableScroll: P,
22224
- setHasError: X,
22225
- setHasNewMessage: F,
22215
+ setHasError: W,
22216
+ setHasNewMessage: j,
22226
22217
  setIsNormalSize: x,
22227
- setLoading: w,
22228
- setLoadingHistory: V,
22218
+ setLoading: k,
22219
+ setLoadingHistory: G,
22229
22220
  setStreaming: q
22230
- } = oe(tt), [, te] = le(!1), [, Y] = le(!1), [$, k] = le(!1), [I, L] = le(!1), [B, W] = le(!1), H = $ || !c, z = et(null), y = et(null), ne = ft.get(`${a}-test`) === "1";
22221
+ } = oe(tt), [, te] = le(!1), [, Y] = le(!1), [$, L] = le(!1), [I, w] = le(!1), [F, V] = le(!1), B = $ || !c, z = et(null), y = et(null), ne = ft.get(`${a}-test`) === "1";
22231
22222
  Le(() => {
22232
- D === Nt.XPERT && H && z.current && z.current.focus();
22233
- }, [D, H]), C3(
22223
+ D === Nt.XPERT && B && z.current && z.current.focus();
22224
+ }, [D, B]), C3(
22234
22225
  r?.liveChat?.enabled,
22235
22226
  I,
22236
- L
22227
+ w
22237
22228
  );
22238
22229
  const ae = dt(
22239
22230
  ({ name: ue, payload: be }) => {
@@ -22259,13 +22250,13 @@ function Sd({ submitEventExternal: e = null }) {
22259
22250
  for (; !ye(); ) {
22260
22251
  if (Ce >= Ye)
22261
22252
  return !1;
22262
- await new Promise((U) => setTimeout(U, Fe)), Ce += Fe;
22253
+ await new Promise((H) => setTimeout(H, Fe)), Ce += Fe;
22263
22254
  }
22264
22255
  return !0;
22265
22256
  })(
22266
22257
  () => window?.OnetrustActiveGroups && window.OnetrustActiveGroups.split(",").includes("C0003")
22267
22258
  ))) {
22268
- V(!0);
22259
+ G(!0);
22269
22260
  try {
22270
22261
  let ye = Ns(a);
22271
22262
  const Ye = t?.baseUrl?.includes("xpert-api-services") ? "/v1/history" : "/xpert/v2/history", Fe = `conversation_id=${ye}&client_id=${t?.payloadParams?.client_id}`, Ce = await fetch(
@@ -22279,22 +22270,22 @@ function Sd({ submitEventExternal: e = null }) {
22279
22270
  );
22280
22271
  if (!Ce.ok)
22281
22272
  throw new Error(`HTTPError: ${Ce.status} ${Ce.statusText}`);
22282
- const U = await Ce.json();
22273
+ const H = await Ce.json();
22283
22274
  m(
22284
- U.map((K) => ({
22275
+ H.map((K) => ({
22285
22276
  ...K,
22286
22277
  disableFeedback: !0,
22287
22278
  toolCalls: K.tool_calls,
22288
22279
  toolCallId: K.tool_call_id
22289
22280
  }))
22290
- ), P(!0), F(!0);
22281
+ ), P(!0), j(!0);
22291
22282
  } catch (ye) {
22292
22283
  console.error(ye);
22293
22284
  } finally {
22294
- V(!1);
22285
+ G(!1);
22295
22286
  }
22296
22287
  }
22297
- }, se = r?.conversationHistory?.enabled && H && !I;
22288
+ }, se = r?.conversationHistory?.enabled && B && !I;
22298
22289
  S3(
22299
22290
  () => se && v()
22300
22291
  ), Le(() => {
@@ -22395,12 +22386,12 @@ function Sd({ submitEventExternal: e = null }) {
22395
22386
  });
22396
22387
  }
22397
22388
  );
22398
- const U = Ce.filter(({ content: he }) => !!he), K = U.map((he) => he.content ?? "").join("");
22389
+ const H = Ce.filter(({ content: he }) => !!he), K = H.map((he) => he.content ?? "").join("");
22399
22390
  pe(K, be);
22400
22391
  const ie = /* @__PURE__ */ new Date(), Ee = ks(JSON.stringify(ye));
22401
22392
  return Se({
22402
22393
  conversationByteSize: Ee,
22403
- conversationSize: U.length + T.filter(({ content: he }) => !!he).length + 1,
22394
+ conversationSize: H.length + T.filter(({ content: he }) => !!he).length + 1,
22404
22395
  userInputMessage: Me,
22405
22396
  apiResponseMessage: K,
22406
22397
  elapsedSeconds: Is(Ye, ie),
@@ -22408,7 +22399,7 @@ function Sd({ submitEventExternal: e = null }) {
22408
22399
  }), Ce;
22409
22400
  }, ze = async (ue, be, Me, ye, Ye) => {
22410
22401
  const Fe = new TextDecoder("utf-8");
22411
- let Ce = [], U = 0;
22402
+ let Ce = [], H = 0;
22412
22403
  const K = /* @__PURE__ */ new Date();
22413
22404
  for (; ; ) {
22414
22405
  const { value: Ee, done: he } = await ue.read();
@@ -22425,12 +22416,12 @@ function Sd({ submitEventExternal: e = null }) {
22425
22416
  toolCallId: Be.tool_call_id
22426
22417
  })
22427
22418
  );
22428
- if (Ve.length > U) {
22429
- for (let ot = U; ot < Ve.length; ot++)
22419
+ if (Ve.length > H) {
22420
+ for (let ot = H; ot < Ve.length; ot++)
22430
22421
  b({
22431
22422
  content: "",
22432
22423
  disableFeedback: !0
22433
- }), U++;
22424
+ }), H++;
22434
22425
  const Be = /* @__PURE__ */ new Date(), rt = ks(
22435
22426
  JSON.stringify(ye)
22436
22427
  ), He = Ve.filter(({ content: ot }) => !!ot);
@@ -22471,7 +22462,7 @@ function Sd({ submitEventExternal: e = null }) {
22471
22462
  if (ue.trim().length === 0)
22472
22463
  return;
22473
22464
  const be = /* @__PURE__ */ new Date();
22474
- F(!1), X(!1);
22465
+ j(!1), W(!1);
22475
22466
  const Me = T.filter((Ce) => Ce.role === ve.USER).length + 1;
22476
22467
  if (ae({
22477
22468
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.message.sent`,
@@ -22482,8 +22473,8 @@ function Sd({ submitEventExternal: e = null }) {
22482
22473
  userInputMessage: ue,
22483
22474
  isTestUser: ne
22484
22475
  }
22485
- }), w(!0), h) {
22486
- await h(ue), w(!1);
22476
+ }), k(!0), h) {
22477
+ await h(ue), k(!1);
22487
22478
  return;
22488
22479
  }
22489
22480
  let ye = null;
@@ -22521,7 +22512,7 @@ function Sd({ submitEventExternal: e = null }) {
22521
22512
  });
22522
22513
  if (!Fe.ok)
22523
22514
  throw new Error(`HTTPError: ${Fe.status} ${Fe.statusText}`);
22524
- w(!1), t.payloadParams?.stream ? await Ie(
22515
+ k(!1), t.payloadParams?.stream ? await Ie(
22525
22516
  Fe,
22526
22517
  ye,
22527
22518
  ue,
@@ -22533,14 +22524,14 @@ function Sd({ submitEventExternal: e = null }) {
22533
22524
  ue,
22534
22525
  Ye,
22535
22526
  be
22536
- ), P(!1), F(!0);
22527
+ ), P(!1), j(!0);
22537
22528
  } catch (be) {
22538
22529
  if (be.name === "AbortError")
22539
22530
  return;
22540
- w(!1), X(!0), console.error(be);
22531
+ k(!1), W(!0), console.error(be);
22541
22532
  }
22542
22533
  }, st = () => {
22543
- L(!1), k(!0), x(!0), v(), ae({
22534
+ w(!1), L(!0), x(!0), v(), ae({
22544
22535
  name: `${s.prefix}.bi.xpert.chatbot.action.button.clicked`,
22545
22536
  payload: {
22546
22537
  category: "2u",
@@ -22558,7 +22549,7 @@ function Sd({ submitEventExternal: e = null }) {
22558
22549
  }
22559
22550
  }), x(ue);
22560
22551
  }, Mn = () => {
22561
- k(!0), x(!0), v(), ae({
22552
+ L(!0), x(!0), v(), ae({
22562
22553
  name: `${s.prefix}.bi.xpert.chatbot.proactive.message.clicked`,
22563
22554
  payload: {
22564
22555
  category: "2u",
@@ -22576,7 +22567,7 @@ function Sd({ submitEventExternal: e = null }) {
22576
22567
  }
22577
22568
  });
22578
22569
  }, mn = () => {
22579
- k(!1), W(!1), ae({
22570
+ L(!1), V(!1), ae({
22580
22571
  name: `${s.prefix}.bi.xpert.chatbot.popup.chat.minimized`,
22581
22572
  payload: {
22582
22573
  category: "2u",
@@ -22611,7 +22602,7 @@ function Sd({ submitEventExternal: e = null }) {
22611
22602
  u?.enabled && /* @__PURE__ */ _.jsx(
22612
22603
  Ad,
22613
22604
  {
22614
- showMessage: !H,
22605
+ showMessage: !B,
22615
22606
  style: Bn,
22616
22607
  onClose: Fn,
22617
22608
  onClick: Mn,
@@ -22655,7 +22646,7 @@ function Sd({ submitEventExternal: e = null }) {
22655
22646
  }
22656
22647
  ),
22657
22648
  c && /* @__PURE__ */ _.jsx(p3, {}),
22658
- H && !I && /* @__PURE__ */ _.jsx(Js, { isMounted: B, children: /* @__PURE__ */ _.jsx(
22649
+ B && !I && /* @__PURE__ */ _.jsx(Js, { isMounted: F, children: /* @__PURE__ */ _.jsx(
22659
22650
  "div",
22660
22651
  {
22661
22652
  ref: d,
@@ -22666,8 +22657,8 @@ function Sd({ submitEventExternal: e = null }) {
22666
22657
  {
22667
22658
  onClose: mn,
22668
22659
  handleResizeButtonClick: wt,
22669
- isMounted: B,
22670
- setIsMounted: W
22660
+ isMounted: F,
22661
+ setIsMounted: V
22671
22662
  }
22672
22663
  ),
22673
22664
  /* @__PURE__ */ _.jsx(h3, {}),
@@ -22679,7 +22670,7 @@ function Sd({ submitEventExternal: e = null }) {
22679
22670
  handleSend: nt,
22680
22671
  inputRef: z,
22681
22672
  isTestUser: ne,
22682
- setLiveChatOpen: L,
22673
+ setLiveChatOpen: w,
22683
22674
  submitEvent: ae
22684
22675
  }
22685
22676
  ),