@eloquentai/chat-sdk 0.36.2-dev.7 → 0.37.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
1
  "use client";
2
2
  import { jsx as w, jsxs as K, Fragment as zt } from "react/jsx-runtime";
3
3
  import * as N from "react";
4
- import { useState as be, forwardRef as Ve, createContext as Ar, useContext as Er, createElement as Ao, useRef as ve, useEffect as ct, useMemo as Tn, useId as Sa, useCallback as va, useLayoutEffect as Eu } from "react";
4
+ import { useState as be, forwardRef as Ve, createContext as Ar, useContext as Er, createElement as Ao, useRef as xe, useEffect as ot, useMemo as Tn, useId as Yo, useCallback as va, useLayoutEffect as Eu } from "react";
5
5
  import * as qu from "react-dom";
6
6
  try {
7
7
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
8
- t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "d659f991-e83a-4c65-bd62-a14a0c5fcc4d", e._sentryDebugIdIdentifier = "sentry-dbid-d659f991-e83a-4c65-bd62-a14a0c5fcc4d");
8
+ t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "32392ec8-0fea-4f17-af69-76474e4019d2", e._sentryDebugIdIdentifier = "sentry-dbid-32392ec8-0fea-4f17-af69-76474e4019d2");
9
9
  } catch {
10
10
  }
11
11
  {
12
12
  let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
13
- e.SENTRY_RELEASE = { id: "6cc4cf0974b171c8b27a4ea061e31123b1fe58c4" };
13
+ e.SENTRY_RELEASE = { id: "2ba803ad75155082e91bed869f07b585b900bfd4" };
14
14
  }
15
15
  function Ca(e) {
16
16
  var t, n, r = "";
@@ -39,7 +39,7 @@ const _u = (e, t) => {
39
39
  nextPart: e,
40
40
  validators: t,
41
41
  classGroupId: n
42
- }), wr = "-", Ki = [], Iu = "arbitrary..", Nu = (e) => {
42
+ }), wr = "-", Ji = [], Iu = "arbitrary..", Nu = (e) => {
43
43
  const t = Pu(e), {
44
44
  conflictingClassGroups: n,
45
45
  conflictingClassGroupModifiers: r
@@ -54,9 +54,9 @@ const _u = (e, t) => {
54
54
  getConflictingClassGroupIds: (i, a) => {
55
55
  if (a) {
56
56
  const s = r[i], c = n[i];
57
- return s ? c ? _u(c, s) : s : c || Ki;
57
+ return s ? c ? _u(c, s) : s : c || Ji;
58
58
  }
59
- return n[i] || Ki;
59
+ return n[i] || Ji;
60
60
  }
61
61
  };
62
62
  }, Ea = (e, t, n) => {
@@ -89,10 +89,10 @@ const _u = (e, t) => {
89
89
  const n = Aa();
90
90
  for (const r in e) {
91
91
  const o = e[r];
92
- Yo(o, n, r, t);
92
+ Xo(o, n, r, t);
93
93
  }
94
94
  return n;
95
- }, Yo = (e, t, n, r) => {
95
+ }, Xo = (e, t, n, r) => {
96
96
  const o = e.length;
97
97
  for (let l = 0; l < o; l++) {
98
98
  const i = e[l];
@@ -113,7 +113,7 @@ const _u = (e, t) => {
113
113
  r.classGroupId = n;
114
114
  }, zu = (e, t, n, r) => {
115
115
  if (Bu(e)) {
116
- Yo(e(r), t, n, r);
116
+ Xo(e(r), t, n, r);
117
117
  return;
118
118
  }
119
119
  t.validators === null && (t.validators = []), t.validators.push(Ru(n, e));
@@ -121,7 +121,7 @@ const _u = (e, t) => {
121
121
  const o = Object.entries(e), l = o.length;
122
122
  for (let i = 0; i < l; i++) {
123
123
  const [a, s] = o[i];
124
- Yo(s, qa(t, a), n, r);
124
+ Xo(s, qa(t, a), n, r);
125
125
  }
126
126
  }, qa = (e, t) => {
127
127
  let n = e;
@@ -156,7 +156,7 @@ const _u = (e, t) => {
156
156
  l in n ? n[l] = i : o(l, i);
157
157
  }
158
158
  };
159
- }, Eo = "!", Ji = ":", Hu = [], Qi = (e, t, n, r, o) => ({
159
+ }, Eo = "!", Qi = ":", Hu = [], Zi = (e, t, n, r, o) => ({
160
160
  modifiers: e,
161
161
  hasImportantModifier: t,
162
162
  baseClassName: n,
@@ -174,7 +174,7 @@ const _u = (e, t) => {
174
174
  for (let y = 0; y < f; y++) {
175
175
  const S = o[y];
176
176
  if (i === 0 && a === 0) {
177
- if (S === Ji) {
177
+ if (S === Qi) {
178
178
  l.push(o.slice(s, y)), s = y + 1;
179
179
  continue;
180
180
  }
@@ -195,11 +195,11 @@ const _u = (e, t) => {
195
195
  u.startsWith(Eo) && (d = u.slice(1), p = !0)
196
196
  );
197
197
  const m = c && c > s ? c - s : void 0;
198
- return Qi(l, p, d, m);
198
+ return Zi(l, p, d, m);
199
199
  };
200
200
  if (t) {
201
- const o = t + Ji, l = r;
202
- r = (i) => i.startsWith(o) ? l(i.slice(o.length)) : Qi(Hu, !1, i, void 0, !0);
201
+ const o = t + Qi, l = r;
202
+ r = (i) => i.startsWith(o) ? l(i.slice(o.length)) : Zi(Hu, !1, i, void 0, !0);
203
203
  }
204
204
  if (n) {
205
205
  const o = r;
@@ -255,30 +255,30 @@ const _u = (e, t) => {
255
255
  c = u + (c.length > 0 ? " " + c : c);
256
256
  continue;
257
257
  }
258
- let k = !!S, q;
258
+ let k = !!S, E;
259
259
  if (k) {
260
260
  const D = y.substring(0, S);
261
- q = r(D);
262
- const I = q && i[q] ? r(y) : void 0;
263
- I && I !== q && (q = I, k = !1);
261
+ E = r(D);
262
+ const I = E && i[E] ? r(y) : void 0;
263
+ I && I !== E && (E = I, k = !1);
264
264
  } else
265
- q = r(y);
266
- if (!q) {
265
+ E = r(y);
266
+ if (!E) {
267
267
  if (!k) {
268
268
  c = u + (c.length > 0 ? " " + c : c);
269
269
  continue;
270
270
  }
271
- if (q = r(y), !q) {
271
+ if (E = r(y), !E) {
272
272
  c = u + (c.length > 0 ? " " + c : c);
273
273
  continue;
274
274
  }
275
275
  k = !1;
276
276
  }
277
- const A = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), U = m ? A + Eo : A, H = U + q;
277
+ const A = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), U = m ? A + Eo : A, H = U + E;
278
278
  if (a.indexOf(H) > -1)
279
279
  continue;
280
280
  a.push(H);
281
- const C = o(q, k);
281
+ const C = o(E, k);
282
282
  for (let D = 0; D < C.length; ++D) {
283
283
  const I = C[D];
284
284
  a.push(U + I);
@@ -298,7 +298,7 @@ const _u = (e, t) => {
298
298
  for (let r = 0; r < e.length; r++)
299
299
  e[r] && (t = Ta(e[r])) && (n && (n += " "), n += t);
300
300
  return n;
301
- }, Zi = (e, ...t) => {
301
+ }, el = (e, ...t) => {
302
302
  let n, r, o, l;
303
303
  const i = (s) => {
304
304
  const c = t.reduce((f, u) => u(f), e());
@@ -311,7 +311,7 @@ const _u = (e, t) => {
311
311
  return o(s, f), f;
312
312
  };
313
313
  return l = i, (...s) => l(Xu(...s));
314
- }, Ku = [], Se = (e) => {
314
+ }, Ku = [], ve = (e) => {
315
315
  const t = (n) => n[e] || Ku;
316
316
  return t.isThemeGetter = !0, t;
317
317
  }, _a = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ra = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Ju = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Qu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Zu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ef = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, tf = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, nf = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => Ju.test(e), te = (e) => !!e && !Number.isNaN(Number(e)), mt = (e) => !!e && Number.isInteger(Number(e)), Xr = (e) => e.endsWith("%") && te(e.slice(0, -1)), wt = (e) => Qu.test(e), Ia = () => !0, rf = (e) => (
@@ -319,14 +319,14 @@ const _u = (e, t) => {
319
319
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
320
320
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
321
321
  Zu.test(e) && !ef.test(e)
322
- ), Xo = () => !1, of = (e) => tf.test(e), lf = (e) => nf.test(e), af = (e) => !F(e) && !B(e), sf = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), cf = (e) => Ft(e, Pa, Xo), F = (e) => _a.test(e), Wt = (e) => Ft(e, Da, rf), el = (e) => Ft(e, bf, te), uf = (e) => Ft(e, Oa, Ia), ff = (e) => Ft(e, Ma, Xo), tl = (e) => Ft(e, Na, Xo), pf = (e) => Ft(e, La, lf), lr = (e) => Ft(e, za, of), B = (e) => Ra.test(e), _n = (e) => tn(e, Da), df = (e) => tn(e, Ma), nl = (e) => tn(e, Na), hf = (e) => tn(e, Pa), mf = (e) => tn(e, La), ar = (e) => tn(e, za, !0), gf = (e) => tn(e, Oa, !0), Ft = (e, t, n) => {
322
+ ), Ko = () => !1, of = (e) => tf.test(e), lf = (e) => nf.test(e), af = (e) => !F(e) && !B(e), sf = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), cf = (e) => Ft(e, Pa, Ko), F = (e) => _a.test(e), Wt = (e) => Ft(e, Da, rf), tl = (e) => Ft(e, bf, te), uf = (e) => Ft(e, Oa, Ia), ff = (e) => Ft(e, Ma, Ko), nl = (e) => Ft(e, Na, Ko), pf = (e) => Ft(e, La, lf), lr = (e) => Ft(e, za, of), B = (e) => Ra.test(e), _n = (e) => tn(e, Da), df = (e) => tn(e, Ma), rl = (e) => tn(e, Na), hf = (e) => tn(e, Pa), mf = (e) => tn(e, La), ar = (e) => tn(e, za, !0), gf = (e) => tn(e, Oa, !0), Ft = (e, t, n) => {
323
323
  const r = _a.exec(e);
324
324
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
325
325
  }, tn = (e, t, n = !1) => {
326
326
  const r = Ra.exec(e);
327
327
  return r ? r[1] ? t(r[1]) : n : !1;
328
- }, Na = (e) => e === "position" || e === "percentage", La = (e) => e === "image" || e === "url", Pa = (e) => e === "length" || e === "size" || e === "bg-size", Da = (e) => e === "length", bf = (e) => e === "number", Ma = (e) => e === "family-name", Oa = (e) => e === "number" || e === "weight", za = (e) => e === "shadow", rl = () => {
329
- const e = Se("color"), t = Se("font"), n = Se("text"), r = Se("font-weight"), o = Se("tracking"), l = Se("leading"), i = Se("breakpoint"), a = Se("container"), s = Se("spacing"), c = Se("radius"), f = Se("shadow"), u = Se("inset-shadow"), d = Se("text-shadow"), p = Se("drop-shadow"), m = Se("blur"), y = Se("perspective"), S = Se("aspect"), k = Se("ease"), q = Se("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], U = () => [
328
+ }, Na = (e) => e === "position" || e === "percentage", La = (e) => e === "image" || e === "url", Pa = (e) => e === "length" || e === "size" || e === "bg-size", Da = (e) => e === "length", bf = (e) => e === "number", Ma = (e) => e === "family-name", Oa = (e) => e === "number" || e === "weight", za = (e) => e === "shadow", ol = () => {
329
+ const e = ve("color"), t = ve("font"), n = ve("text"), r = ve("font-weight"), o = ve("tracking"), l = ve("leading"), i = ve("breakpoint"), a = ve("container"), s = ve("spacing"), c = ve("radius"), f = ve("shadow"), u = ve("inset-shadow"), d = ve("text-shadow"), p = ve("drop-shadow"), m = ve("blur"), y = ve("perspective"), S = ve("aspect"), k = ve("ease"), E = ve("animate"), A = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], U = () => [
330
330
  "center",
331
331
  "top",
332
332
  "bottom",
@@ -346,7 +346,7 @@ const _u = (e, t) => {
346
346
  "left-bottom"
347
347
  ], H = () => [...U(), B, F], C = () => ["auto", "hidden", "clip", "visible", "scroll"], D = () => ["auto", "contain", "none"], I = () => [B, F, s], V = () => [Lt, "full", "auto", ...I()], v = () => [mt, "none", "subgrid", B, F], P = () => ["auto", {
348
348
  span: ["full", mt, B, F]
349
- }, mt, B, F], z = () => [mt, "auto", B, F], re = () => ["auto", "min", "max", "fr", B, F], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...I()], ae = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], Te = () => [Lt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...I()], Pe = () => [Lt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...I()], g = () => [e, B, F], Ae = () => [...U(), nl, tl, {
349
+ }, mt, B, F], z = () => [mt, "auto", B, F], re = () => ["auto", "min", "max", "fr", B, F], $ = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], Q = () => ["auto", ...I()], ae = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...I()], Te = () => [Lt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...I()], Pe = () => [Lt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...I()], g = () => [e, B, F], Ae = () => [...U(), rl, nl, {
350
350
  position: [B, F]
351
351
  }], De = () => ["no-repeat", {
352
352
  repeat: ["", "x", "y", "space", "round"]
@@ -360,14 +360,14 @@ const _u = (e, t) => {
360
360
  c,
361
361
  B,
362
362
  F
363
- ], j = () => ["", te, _n, Wt], Je = () => ["solid", "dashed", "dotted", "double"], We = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ue = () => [te, Xr, nl, tl], it = () => [
363
+ ], j = () => ["", te, _n, Wt], Je = () => ["solid", "dashed", "dotted", "double"], We = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], ue = () => [te, Xr, rl, nl], lt = () => [
364
364
  // Deprecated since Tailwind CSS v4.0.0
365
365
  "",
366
366
  "none",
367
367
  m,
368
368
  B,
369
369
  F
370
- ], lt = () => ["none", te, B, F], Tt = () => ["none", te, B, F], _t = () => [te, B, F], Rt = () => [Lt, "full", ...I()];
370
+ ], at = () => ["none", te, B, F], Tt = () => ["none", te, B, F], _t = () => [te, B, F], Rt = () => [Lt, "full", ...I()];
371
371
  return {
372
372
  cacheSize: 500,
373
373
  theme: {
@@ -1250,7 +1250,7 @@ const _u = (e, t) => {
1250
1250
  * @see https://tailwindcss.com/docs/line-clamp
1251
1251
  */
1252
1252
  "line-clamp": [{
1253
- "line-clamp": [te, "none", B, el]
1253
+ "line-clamp": [te, "none", B, tl]
1254
1254
  }],
1255
1255
  /**
1256
1256
  * Line Height
@@ -2197,7 +2197,7 @@ const _u = (e, t) => {
2197
2197
  * @see https://tailwindcss.com/docs/blur
2198
2198
  */
2199
2199
  blur: [{
2200
- blur: it()
2200
+ blur: lt()
2201
2201
  }],
2202
2202
  /**
2203
2203
  * Brightness
@@ -2287,7 +2287,7 @@ const _u = (e, t) => {
2287
2287
  * @see https://tailwindcss.com/docs/backdrop-blur
2288
2288
  */
2289
2289
  "backdrop-blur": [{
2290
- "backdrop-blur": it()
2290
+ "backdrop-blur": lt()
2291
2291
  }],
2292
2292
  /**
2293
2293
  * Backdrop Brightness
@@ -2433,7 +2433,7 @@ const _u = (e, t) => {
2433
2433
  * @see https://tailwindcss.com/docs/animation
2434
2434
  */
2435
2435
  animate: [{
2436
- animate: ["none", q, B, F]
2436
+ animate: ["none", E, B, F]
2437
2437
  }],
2438
2438
  // ------------------
2439
2439
  // --- Transforms ---
@@ -2464,28 +2464,28 @@ const _u = (e, t) => {
2464
2464
  * @see https://tailwindcss.com/docs/rotate
2465
2465
  */
2466
2466
  rotate: [{
2467
- rotate: lt()
2467
+ rotate: at()
2468
2468
  }],
2469
2469
  /**
2470
2470
  * Rotate X
2471
2471
  * @see https://tailwindcss.com/docs/rotate
2472
2472
  */
2473
2473
  "rotate-x": [{
2474
- "rotate-x": lt()
2474
+ "rotate-x": at()
2475
2475
  }],
2476
2476
  /**
2477
2477
  * Rotate Y
2478
2478
  * @see https://tailwindcss.com/docs/rotate
2479
2479
  */
2480
2480
  "rotate-y": [{
2481
- "rotate-y": lt()
2481
+ "rotate-y": at()
2482
2482
  }],
2483
2483
  /**
2484
2484
  * Rotate Z
2485
2485
  * @see https://tailwindcss.com/docs/rotate
2486
2486
  */
2487
2487
  "rotate-z": [{
2488
- "rotate-z": lt()
2488
+ "rotate-z": at()
2489
2489
  }],
2490
2490
  /**
2491
2491
  * Scale
@@ -2933,7 +2933,7 @@ const _u = (e, t) => {
2933
2933
  * @see https://tailwindcss.com/docs/stroke-width
2934
2934
  */
2935
2935
  "stroke-w": [{
2936
- stroke: [te, _n, Wt, el]
2936
+ stroke: [te, _n, Wt, tl]
2937
2937
  }],
2938
2938
  /**
2939
2939
  * Stroke
@@ -3029,11 +3029,11 @@ const _u = (e, t) => {
3029
3029
  }, qo = (e, t, n) => {
3030
3030
  const r = t[n];
3031
3031
  r !== void 0 && (e[n] = e[n] ? e[n].concat(r) : r);
3032
- }, xf = (e, ...t) => typeof e == "function" ? Zi(rl, e, ...t) : Zi(() => yf(rl(), e), ...t), wf = xf({ prefix: "eloq" });
3032
+ }, xf = (e, ...t) => typeof e == "function" ? el(ol, e, ...t) : el(() => yf(ol(), e), ...t), wf = xf({ prefix: "eloq" });
3033
3033
  function ee(...e) {
3034
3034
  return wf(Tu(e));
3035
3035
  }
3036
- function Ko(e) {
3036
+ function Jo(e) {
3037
3037
  const { className: t, bgColor: n, fgColor: r, src: o, ...l } = e, [i, a] = be(!1), [s, c] = be(o);
3038
3038
  s !== o && (c(o), a(!1));
3039
3039
  const f = !o || i;
@@ -3082,7 +3082,7 @@ function Ko(e) {
3082
3082
  }
3083
3083
  );
3084
3084
  }
3085
- const Jo = Ve(
3085
+ const Qo = Ve(
3086
3086
  ({ className: e, ...t }, n) => /* @__PURE__ */ w(
3087
3087
  "div",
3088
3088
  {
@@ -3095,8 +3095,8 @@ const Jo = Ve(
3095
3095
  }
3096
3096
  )
3097
3097
  );
3098
- Jo.displayName = "Card";
3099
- const Qo = Ve(
3098
+ Qo.displayName = "Card";
3099
+ const Zo = Ve(
3100
3100
  ({ className: e, ...t }, n) => /* @__PURE__ */ w(
3101
3101
  "div",
3102
3102
  {
@@ -3109,7 +3109,7 @@ const Qo = Ve(
3109
3109
  }
3110
3110
  )
3111
3111
  );
3112
- Qo.displayName = "CardHeader";
3112
+ Zo.displayName = "CardHeader";
3113
3113
  const kf = Ve(
3114
3114
  ({ className: e, ...t }, n) => /* @__PURE__ */ w(
3115
3115
  "div",
@@ -3133,11 +3133,11 @@ const Sf = Ve(({ className: e, ...t }, n) => /* @__PURE__ */ w(
3133
3133
  }
3134
3134
  ));
3135
3135
  Sf.displayName = "CardDescription";
3136
- const Zo = Ve(
3136
+ const ei = Ve(
3137
3137
  ({ className: e, ...t }, n) => /* @__PURE__ */ w("div", { ref: n, className: ee("eloq:p-6 eloq:pt-0", e), ...t })
3138
3138
  );
3139
- Zo.displayName = "CardContent";
3140
- const ei = Ve(
3139
+ ei.displayName = "CardContent";
3140
+ const ti = Ve(
3141
3141
  ({ className: e, ...t }, n) => /* @__PURE__ */ w(
3142
3142
  "div",
3143
3143
  {
@@ -3150,7 +3150,7 @@ const ei = Ve(
3150
3150
  }
3151
3151
  )
3152
3152
  );
3153
- ei.displayName = "CardFooter";
3153
+ ti.displayName = "CardFooter";
3154
3154
  const Fa = Ar(void 0);
3155
3155
  function vf(e) {
3156
3156
  const t = e.mode || "light";
@@ -3174,7 +3174,7 @@ function vf(e) {
3174
3174
  }
3175
3175
  );
3176
3176
  }
3177
- const ti = () => {
3177
+ const ni = () => {
3178
3178
  const e = Er(Fa);
3179
3179
  if (!e)
3180
3180
  throw new Error("useTheme must be used within a ThemeProvider");
@@ -3210,7 +3210,7 @@ const Af = (e) => e.replace(
3210
3210
  * This source code is licensed under the ISC license.
3211
3211
  * See the LICENSE file in the root directory of this source tree.
3212
3212
  */
3213
- const ol = (e) => {
3213
+ const il = (e) => {
3214
3214
  const t = Af(e);
3215
3215
  return t.charAt(0).toUpperCase() + t.slice(1);
3216
3216
  };
@@ -3290,14 +3290,14 @@ const Ce = (e, t) => {
3290
3290
  ref: l,
3291
3291
  iconNode: t,
3292
3292
  className: Ba(
3293
- `lucide-${Cf(ol(e))}`,
3293
+ `lucide-${Cf(il(e))}`,
3294
3294
  `lucide-${e}`,
3295
3295
  r
3296
3296
  ),
3297
3297
  ...o
3298
3298
  })
3299
3299
  );
3300
- return n.displayName = ol(e), n;
3300
+ return n.displayName = il(e), n;
3301
3301
  };
3302
3302
  /**
3303
3303
  * @license lucide-react v0.577.0 - ISC
@@ -3545,13 +3545,13 @@ const cp = [
3545
3545
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
3546
3546
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
3547
3547
  ], ja = Ce("x", cp);
3548
- var up = Object.defineProperty, ni = (e, t) => up(e, "name", { value: t, configurable: !0 });
3548
+ var up = Object.defineProperty, ri = (e, t) => up(e, "name", { value: t, configurable: !0 });
3549
3549
  function To(e, t) {
3550
3550
  if (typeof e == "function")
3551
3551
  return e(t);
3552
3552
  e != null && (e.current = t);
3553
3553
  }
3554
- ni(To, "setRef");
3554
+ ri(To, "setRef");
3555
3555
  function Va(...e) {
3556
3556
  return (t) => {
3557
3557
  let n = !1;
@@ -3568,11 +3568,11 @@ function Va(...e) {
3568
3568
  };
3569
3569
  };
3570
3570
  }
3571
- ni(Va, "composeRefs");
3571
+ ri(Va, "composeRefs");
3572
3572
  function Bt(...e) {
3573
3573
  return N.useCallback(Va(...e), e);
3574
3574
  }
3575
- ni(Bt, "useComposedRefs");
3575
+ ri(Bt, "useComposedRefs");
3576
3576
  var fp = Object.defineProperty, ft = (e, t) => fp(e, "name", { value: t, configurable: !0 });
3577
3577
  // @__NO_SIDE_EFFECTS__
3578
3578
  function $a(e) {
@@ -3800,7 +3800,7 @@ function vp(e, t) {
3800
3800
  }
3801
3801
  rt(vp, "createContext");
3802
3802
  // @__NO_SIDE_EFFECTS__
3803
- function ri(e, t = []) {
3803
+ function oi(e, t = []) {
3804
3804
  let n = [];
3805
3805
  function r(l, i) {
3806
3806
  const a = N.createContext(i);
@@ -3834,7 +3834,7 @@ function ri(e, t = []) {
3834
3834
  }, "createScope");
3835
3835
  return o.scopeName = e, [r, ts(o, ...t)];
3836
3836
  }
3837
- rt(ri, "createContextScope");
3837
+ rt(oi, "createContextScope");
3838
3838
  function ts(...e) {
3839
3839
  const t = e[0];
3840
3840
  if (e.length === 1) return t;
@@ -3919,7 +3919,7 @@ function as(e, t) {
3919
3919
  return N.useReducer((n, r) => t[n][r] ?? n, e);
3920
3920
  }
3921
3921
  ie(as, "useStateMachine");
3922
- var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us = /* @__PURE__ */ N.forwardRef(
3922
+ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ oi(ss), [Pp, it] = cs(ss), us = /* @__PURE__ */ N.forwardRef(
3923
3923
  /* @__PURE__ */ ie(function(t, n) {
3924
3924
  const {
3925
3925
  __scopeScrollArea: r,
@@ -3927,7 +3927,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
3927
3927
  dir: l,
3928
3928
  scrollHideDelay: i = 600,
3929
3929
  ...a
3930
- } = t, [s, c] = N.useState(null), [f, u] = N.useState(null), [d, p] = N.useState(null), [m, y] = N.useState(null), [S, k] = N.useState(null), [q, A] = N.useState(0), [U, H] = N.useState(0), [C, D] = N.useState(!1), [I, V] = N.useState(!1), v = Bt(n, c), P = ns(l);
3930
+ } = t, [s, c] = N.useState(null), [f, u] = N.useState(null), [d, p] = N.useState(null), [m, y] = N.useState(null), [S, k] = N.useState(null), [E, A] = N.useState(0), [U, H] = N.useState(0), [C, D] = N.useState(!1), [I, V] = N.useState(!1), v = Bt(n, c), P = ns(l);
3931
3931
  return /* @__PURE__ */ w(
3932
3932
  Pp,
3933
3933
  {
@@ -3959,7 +3959,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
3959
3959
  style: {
3960
3960
  position: "relative",
3961
3961
  // Pass corner sizes as CSS vars to reduce re-renders of context consumers
3962
- "--radix-scroll-area-corner-width": q + "px",
3962
+ "--radix-scroll-area-corner-width": E + "px",
3963
3963
  "--radix-scroll-area-corner-height": U + "px",
3964
3964
  ...t.style
3965
3965
  }
@@ -3971,7 +3971,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
3971
3971
  ), Dp = "ScrollAreaViewport", Mp = /* @__PURE__ */ N.forwardRef(
3972
3972
  // blank line to reduce diff noise
3973
3973
  /* @__PURE__ */ ie(function(t, n) {
3974
- const { __scopeScrollArea: r, children: o, nonce: l, ...i } = t, a = ot(Dp, r), s = N.useRef(null), c = Bt(n, s, a.onViewportChange);
3974
+ const { __scopeScrollArea: r, children: o, nonce: l, ...i } = t, a = it(Dp, r), s = N.useRef(null), c = Bt(n, s, a.onViewportChange);
3975
3975
  return /* @__PURE__ */ K(zt, { children: [
3976
3976
  /* @__PURE__ */ w(Op, { nonce: l }),
3977
3977
  /* @__PURE__ */ w(
@@ -4017,13 +4017,13 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4017
4017
  ), Et = "ScrollAreaScrollbar", fs = /* @__PURE__ */ N.forwardRef(
4018
4018
  // blank line to reduce diff noise
4019
4019
  /* @__PURE__ */ ie(function(t, n) {
4020
- const { forceMount: r, ...o } = t, l = ot(Et, t.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = l, s = t.orientation === "horizontal";
4020
+ const { forceMount: r, ...o } = t, l = it(Et, t.__scopeScrollArea), { onScrollbarXEnabledChange: i, onScrollbarYEnabledChange: a } = l, s = t.orientation === "horizontal";
4021
4021
  return N.useEffect(() => (s ? i(!0) : a(!0), () => {
4022
4022
  s ? i(!1) : a(!1);
4023
- }), [s, i, a]), l.type === "hover" ? /* @__PURE__ */ w(zp, { ...o, ref: n, forceMount: r }) : l.type === "scroll" ? /* @__PURE__ */ w(Fp, { ...o, ref: n, forceMount: r }) : l.type === "auto" ? /* @__PURE__ */ w(ps, { ...o, ref: n, forceMount: r }) : l.type === "always" ? /* @__PURE__ */ w(oi, { ...o, ref: n, "data-state": "visible" }) : null;
4023
+ }), [s, i, a]), l.type === "hover" ? /* @__PURE__ */ w(zp, { ...o, ref: n, forceMount: r }) : l.type === "scroll" ? /* @__PURE__ */ w(Fp, { ...o, ref: n, forceMount: r }) : l.type === "auto" ? /* @__PURE__ */ w(ps, { ...o, ref: n, forceMount: r }) : l.type === "always" ? /* @__PURE__ */ w(ii, { ...o, ref: n, "data-state": "visible" }) : null;
4024
4024
  }, "ScrollAreaScrollbar")
4025
4025
  ), zp = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4026
- const { forceMount: r, ...o } = t, l = ot(Et, t.__scopeScrollArea), [i, a] = N.useState(!1);
4026
+ const { forceMount: r, ...o } = t, l = it(Et, t.__scopeScrollArea), [i, a] = N.useState(!1);
4027
4027
  return N.useEffect(() => {
4028
4028
  const s = l.scrollArea;
4029
4029
  let c = 0;
@@ -4046,7 +4046,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4046
4046
  }
4047
4047
  ) });
4048
4048
  }, "ScrollAreaScrollbarHover")), Fp = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4049
- const { forceMount: r, ...o } = t, l = ot(Et, t.__scopeScrollArea), i = t.orientation === "horizontal", a = Yn(() => c("SCROLL_END"), 100), [s, c] = as("hidden", {
4049
+ const { forceMount: r, ...o } = t, l = it(Et, t.__scopeScrollArea), i = t.orientation === "horizontal", a = Yn(() => c("SCROLL_END"), 100), [s, c] = as("hidden", {
4050
4050
  hidden: {
4051
4051
  SCROLL: "scrolling"
4052
4052
  },
@@ -4080,7 +4080,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4080
4080
  return f.addEventListener("scroll", p), () => f.removeEventListener("scroll", p);
4081
4081
  }
4082
4082
  }, [l.viewport, i, c, a]), /* @__PURE__ */ w(qr, { present: r || s !== "hidden", children: /* @__PURE__ */ w(
4083
- oi,
4083
+ ii,
4084
4084
  {
4085
4085
  "data-state": s === "hidden" ? "hidden" : "visible",
4086
4086
  ...o,
@@ -4090,26 +4090,26 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4090
4090
  }
4091
4091
  ) });
4092
4092
  }, "ScrollAreaScrollbarScroll")), ps = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4093
- const r = ot(Et, t.__scopeScrollArea), { forceMount: o, ...l } = t, [i, a] = N.useState(!1), s = t.orientation === "horizontal", c = Yn(() => {
4093
+ const r = it(Et, t.__scopeScrollArea), { forceMount: o, ...l } = t, [i, a] = N.useState(!1), s = t.orientation === "horizontal", c = Yn(() => {
4094
4094
  if (r.viewport) {
4095
4095
  const f = r.viewport.offsetWidth < r.viewport.scrollWidth, u = r.viewport.offsetHeight < r.viewport.scrollHeight;
4096
4096
  a(s ? f : u);
4097
4097
  }
4098
4098
  }, 10);
4099
4099
  return Zt(r.viewport, c), Zt(r.content, c), /* @__PURE__ */ w(qr, { present: o || i, children: /* @__PURE__ */ w(
4100
- oi,
4100
+ ii,
4101
4101
  {
4102
4102
  "data-state": i ? "visible" : "hidden",
4103
4103
  ...l,
4104
4104
  ref: n
4105
4105
  }
4106
4106
  ) });
4107
- }, "ScrollAreaScrollbarAuto")), oi = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4108
- const { orientation: r = "vertical", ...o } = t, l = ot(Et, t.__scopeScrollArea), i = N.useRef(null), a = N.useRef(0), [s, c] = N.useState({
4107
+ }, "ScrollAreaScrollbarAuto")), ii = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4108
+ const { orientation: r = "vertical", ...o } = t, l = it(Et, t.__scopeScrollArea), i = N.useRef(null), a = N.useRef(0), [s, c] = N.useState({
4109
4109
  content: 0,
4110
4110
  viewport: 0,
4111
4111
  scrollbar: { size: 0, paddingStart: 0, paddingEnd: 0 }
4112
- }), f = ii(s.viewport, s.content), u = {
4112
+ }), f = li(s.viewport, s.content), u = {
4113
4113
  ...o,
4114
4114
  sizes: s,
4115
4115
  onSizesChange: c,
@@ -4159,7 +4159,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4159
4159
  }
4160
4160
  ) : null;
4161
4161
  }, "ScrollAreaScrollbarVisible")), Bp = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4162
- const { sizes: r, onSizesChange: o, ...l } = t, i = ot(Et, t.__scopeScrollArea), [a, s] = N.useState(), c = N.useRef(null), f = Bt(n, c, i.onScrollbarXChange);
4162
+ const { sizes: r, onSizesChange: o, ...l } = t, i = it(Et, t.__scopeScrollArea), [a, s] = N.useState(), c = N.useRef(null), f = Bt(n, c, i.onScrollbarXChange);
4163
4163
  return N.useEffect(() => {
4164
4164
  c.current && s(getComputedStyle(c.current));
4165
4165
  }, [c]), /* @__PURE__ */ w(
@@ -4181,7 +4181,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4181
4181
  onWheelScroll: (u, d) => {
4182
4182
  if (i.viewport) {
4183
4183
  const p = i.viewport.scrollLeft + u.deltaX;
4184
- t.onWheelScroll(p), ai(p, d) && u.preventDefault();
4184
+ t.onWheelScroll(p), si(p, d) && u.preventDefault();
4185
4185
  }
4186
4186
  },
4187
4187
  onResize: () => {
@@ -4198,7 +4198,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4198
4198
  }
4199
4199
  );
4200
4200
  }, "ScrollAreaScrollbarX")), Up = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4201
- const { sizes: r, onSizesChange: o, ...l } = t, i = ot(Et, t.__scopeScrollArea), [a, s] = N.useState(), c = N.useRef(null), f = Bt(n, c, i.onScrollbarYChange);
4201
+ const { sizes: r, onSizesChange: o, ...l } = t, i = it(Et, t.__scopeScrollArea), [a, s] = N.useState(), c = N.useRef(null), f = Bt(n, c, i.onScrollbarYChange);
4202
4202
  return N.useEffect(() => {
4203
4203
  c.current && s(getComputedStyle(c.current));
4204
4204
  }, [c]), /* @__PURE__ */ w(
@@ -4221,7 +4221,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4221
4221
  onWheelScroll: (u, d) => {
4222
4222
  if (i.viewport) {
4223
4223
  const p = i.viewport.scrollTop + u.deltaY;
4224
- t.onWheelScroll(p), ai(p, d) && u.preventDefault();
4224
+ t.onWheelScroll(p), si(p, d) && u.preventDefault();
4225
4225
  }
4226
4226
  },
4227
4227
  onResize: () => {
@@ -4250,10 +4250,10 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4250
4250
  onWheelScroll: u,
4251
4251
  onResize: d,
4252
4252
  ...p
4253
- } = t, m = ot(Et, r), [y, S] = N.useState(null), k = Bt(n, S), q = N.useRef(null), A = N.useRef(""), U = m.viewport, H = o.content - o.viewport, C = vt(u), D = vt(c), I = Yn(d, 10);
4253
+ } = t, m = it(Et, r), [y, S] = N.useState(null), k = Bt(n, S), E = N.useRef(null), A = N.useRef(""), U = m.viewport, H = o.content - o.viewport, C = vt(u), D = vt(c), I = Yn(d, 10);
4254
4254
  function V(v) {
4255
- if (q.current) {
4256
- const P = v.clientX - q.current.left, z = v.clientY - q.current.top;
4255
+ if (E.current) {
4256
+ const P = v.clientX - E.current.left, z = v.clientY - E.current.top;
4257
4257
  f({ x: P, y: z });
4258
4258
  }
4259
4259
  }
@@ -4280,12 +4280,12 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4280
4280
  ref: k,
4281
4281
  style: { position: "absolute", ...p.style },
4282
4282
  onPointerDown: Ot(t.onPointerDown, (v) => {
4283
- v.button === 0 && (v.target.setPointerCapture(v.pointerId), q.current = y.getBoundingClientRect(), A.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), V(v));
4283
+ v.button === 0 && (v.target.setPointerCapture(v.pointerId), E.current = y.getBoundingClientRect(), A.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), V(v));
4284
4284
  }),
4285
4285
  onPointerMove: Ot(t.onPointerMove, V),
4286
4286
  onPointerUp: Ot(t.onPointerUp, (v) => {
4287
4287
  const P = v.target;
4288
- P.hasPointerCapture(v.pointerId) && P.releasePointerCapture(v.pointerId), document.body.style.webkitUserSelect = A.current, m.viewport && (m.viewport.style.scrollBehavior = ""), q.current = null;
4288
+ P.hasPointerCapture(v.pointerId) && P.releasePointerCapture(v.pointerId), document.body.style.webkitUserSelect = A.current, m.viewport && (m.viewport.style.scrollBehavior = ""), E.current = null;
4289
4289
  })
4290
4290
  }
4291
4291
  )
@@ -4300,7 +4300,7 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4300
4300
  ), Vp = /* @__PURE__ */ N.forwardRef(
4301
4301
  // blank line to reduce diff noise
4302
4302
  /* @__PURE__ */ ie(function(t, n) {
4303
- const { __scopeScrollArea: r, style: o, ...l } = t, i = ot(No, r), a = ds(No, r), { onThumbPositionChange: s } = a, c = Bt(n, a.onThumbChange), f = N.useRef(void 0), u = Yn(() => {
4303
+ const { __scopeScrollArea: r, style: o, ...l } = t, i = it(No, r), a = ds(No, r), { onThumbPositionChange: s } = a, c = Bt(n, a.onThumbChange), f = N.useRef(void 0), u = Yn(() => {
4304
4304
  f.current && (f.current(), f.current = void 0);
4305
4305
  }, 100);
4306
4306
  return N.useEffect(() => {
@@ -4336,11 +4336,11 @@ var ss = "ScrollArea", [cs, Ok] = /* @__PURE__ */ ri(ss), [Pp, ot] = cs(ss), us
4336
4336
  ), ms = "ScrollAreaCorner", $p = /* @__PURE__ */ N.forwardRef(
4337
4337
  // blank line to reduce diff noise
4338
4338
  /* @__PURE__ */ ie(function(t, n) {
4339
- const r = ot(ms, t.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
4339
+ const r = it(ms, t.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
4340
4340
  return r.type !== "scroll" && o ? /* @__PURE__ */ w(Wp, { ...t, ref: n }) : null;
4341
4341
  }, "ScrollAreaCorner")
4342
4342
  ), Wp = /* @__PURE__ */ N.forwardRef(/* @__PURE__ */ ie(function(t, n) {
4343
- const { __scopeScrollArea: r, ...o } = t, l = ot(ms, r), [i, a] = N.useState(0), [s, c] = N.useState(0), f = !!(i && s), { onCornerWidthChange: u, onCornerHeightChange: d } = l;
4343
+ const { __scopeScrollArea: r, ...o } = t, l = it(ms, r), [i, a] = N.useState(0), [s, c] = N.useState(0), f = !!(i && s), { onCornerWidthChange: u, onCornerHeightChange: d } = l;
4344
4344
  return Zt(l.scrollbarX, () => {
4345
4345
  const p = l.scrollbarX?.offsetHeight || 0;
4346
4346
  l.onCornerHeightChange(p), c(p);
@@ -4370,38 +4370,38 @@ function Hn(e) {
4370
4370
  return e ? parseInt(e, 10) : 0;
4371
4371
  }
4372
4372
  ie(Hn, "toInt");
4373
- function ii(e, t) {
4373
+ function li(e, t) {
4374
4374
  const n = e / t;
4375
4375
  return isNaN(n) ? 0 : n;
4376
4376
  }
4377
- ie(ii, "getThumbRatio");
4377
+ ie(li, "getThumbRatio");
4378
4378
  function Gn(e) {
4379
- const t = ii(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
4379
+ const t = li(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, r = (e.scrollbar.size - n) * t;
4380
4380
  return Math.max(r, 18);
4381
4381
  }
4382
4382
  ie(Gn, "getThumbSize");
4383
4383
  function gs(e, t, n, r = "ltr") {
4384
4384
  const o = Gn(n), l = o / 2, i = t || l, a = o - i, s = n.scrollbar.paddingStart + i, c = n.scrollbar.size - n.scrollbar.paddingEnd - a, f = n.content - n.viewport, u = r === "ltr" ? [0, f] : [f * -1, 0];
4385
- return li([s, c], u)(e);
4385
+ return ai([s, c], u)(e);
4386
4386
  }
4387
4387
  ie(gs, "getScrollPositionFromPointer");
4388
4388
  function Lo(e, t, n = "ltr") {
4389
4389
  const r = Gn(t), o = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, l = t.scrollbar.size - o, i = t.content - t.viewport, a = l - r, s = n === "ltr" ? [0, i] : [i * -1, 0], c = rs(e, s);
4390
- return li([0, i], [0, a])(c);
4390
+ return ai([0, i], [0, a])(c);
4391
4391
  }
4392
4392
  ie(Lo, "getThumbOffsetFromScroll");
4393
- function li(e, t) {
4393
+ function ai(e, t) {
4394
4394
  return (n) => {
4395
4395
  if (e[0] === e[1] || t[0] === t[1]) return t[0];
4396
4396
  const r = (t[1] - t[0]) / (e[1] - e[0]);
4397
4397
  return t[0] + r * (n - e[0]);
4398
4398
  };
4399
4399
  }
4400
- ie(li, "linearScale");
4401
- function ai(e, t) {
4400
+ ie(ai, "linearScale");
4401
+ function si(e, t) {
4402
4402
  return e > 0 && e < t;
4403
4403
  }
4404
- ie(ai, "isScrollingWithinScrollbarBounds");
4404
+ ie(si, "isScrollingWithinScrollbarBounds");
4405
4405
  var Gp = /* @__PURE__ */ ie((e, t = () => {
4406
4406
  }) => {
4407
4407
  let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
@@ -4486,8 +4486,8 @@ function nn() {
4486
4486
  return e;
4487
4487
  }
4488
4488
  const Kr = "eloq:text-gray-400 eloq:dark:text-gray-500 eloq:hover:text-primary eloq:dark:hover:text-primary eloq:transition-colors", Jp = 2e3;
4489
- let il = "";
4490
- function ll(e, t) {
4489
+ let ll = "";
4490
+ function al(e, t) {
4491
4491
  const n = t.ownerDocument;
4492
4492
  if (typeof n.execCommand != "function") return !1;
4493
4493
  const r = n.createElement("textarea");
@@ -4502,11 +4502,11 @@ function ll(e, t) {
4502
4502
  }
4503
4503
  async function Qp(e, t) {
4504
4504
  const n = (t.ownerDocument.defaultView?.navigator ?? navigator).clipboard;
4505
- if (!n?.writeText) return ll(e, t);
4505
+ if (!n?.writeText) return al(e, t);
4506
4506
  try {
4507
4507
  return await n.writeText(e), !0;
4508
4508
  } catch {
4509
- return ll(e, t);
4509
+ return al(e, t);
4510
4510
  }
4511
4511
  }
4512
4512
  function Zp({
@@ -4514,14 +4514,14 @@ function Zp({
4514
4514
  }) {
4515
4515
  const [t, n] = be(
4516
4516
  null
4517
- ), [r, o] = be(!1), [l, i] = be(""), a = ve(void 0), s = ve(void 0), c = ve(!1), f = nn(), { collectUserFeedback: u } = f, d = f.hasCopyButton ?? (f.hideCopyButton != null ? !f.hideCopyButton : !0);
4518
- ct(() => (c.current = !0, () => {
4517
+ ), [r, o] = be(!1), [l, i] = be(""), a = xe(void 0), s = xe(void 0), c = xe(!1), f = nn(), { collectUserFeedback: u } = f, d = f.hasCopyButton ?? (f.hideCopyButton != null ? !f.hideCopyButton : !0);
4518
+ ot(() => (c.current = !0, () => {
4519
4519
  c.current = !1, clearTimeout(a.current), s.current !== void 0 && cancelAnimationFrame(s.current);
4520
4520
  }), []);
4521
4521
  const p = (y) => {
4522
4522
  clearTimeout(a.current), s.current !== void 0 && cancelAnimationFrame(s.current);
4523
4523
  let S = y ? "Copied" : "Copy failed";
4524
- S === il && (S += " "), il = S, o(y), i(""), s.current = requestAnimationFrame(() => i(S)), a.current = setTimeout(() => {
4524
+ S === ll && (S += " "), ll = S, o(y), i(""), s.current = requestAnimationFrame(() => i(S)), a.current = setTimeout(() => {
4525
4525
  o(!1), i("");
4526
4526
  }, Jp);
4527
4527
  };
@@ -4608,14 +4608,14 @@ function nd(e, t) {
4608
4608
  ).trim();
4609
4609
  }
4610
4610
  const rd = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, od = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, id = {};
4611
- function al(e, t) {
4611
+ function sl(e, t) {
4612
4612
  return (id.jsx ? od : rd).test(e);
4613
4613
  }
4614
4614
  const ld = /[ \t\n\f\r]/g;
4615
4615
  function ad(e) {
4616
- return typeof e == "object" ? e.type === "text" ? sl(e.value) : !1 : sl(e);
4616
+ return typeof e == "object" ? e.type === "text" ? cl(e.value) : !1 : cl(e);
4617
4617
  }
4618
- function sl(e) {
4618
+ function cl(e) {
4619
4619
  return e.replace(ld, "") === "";
4620
4620
  }
4621
4621
  class Xn {
@@ -4671,14 +4671,14 @@ $e.prototype.property = "";
4671
4671
  $e.prototype.spaceSeparated = !1;
4672
4672
  $e.prototype.space = void 0;
4673
4673
  let sd = 0;
4674
- const J = rn(), we = rn(), Do = rn(), L = rn(), pe = rn(), Qt = rn(), Ye = rn();
4674
+ const J = rn(), ke = rn(), Do = rn(), L = rn(), pe = rn(), Qt = rn(), Ye = rn();
4675
4675
  function rn() {
4676
4676
  return 2 ** ++sd;
4677
4677
  }
4678
4678
  const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4679
4679
  __proto__: null,
4680
4680
  boolean: J,
4681
- booleanish: we,
4681
+ booleanish: ke,
4682
4682
  commaOrSpaceSeparated: Ye,
4683
4683
  commaSeparated: Qt,
4684
4684
  number: L,
@@ -4688,7 +4688,7 @@ const Mo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
4688
4688
  /** @type {ReadonlyArray<keyof typeof types>} */
4689
4689
  Object.keys(Mo)
4690
4690
  );
4691
- class si extends $e {
4691
+ class ci extends $e {
4692
4692
  /**
4693
4693
  * @constructor
4694
4694
  * @param {string} property
@@ -4704,21 +4704,21 @@ class si extends $e {
4704
4704
  */
4705
4705
  constructor(t, n, r, o) {
4706
4706
  let l = -1;
4707
- if (super(t, n), cl(this, "space", o), typeof r == "number")
4707
+ if (super(t, n), ul(this, "space", o), typeof r == "number")
4708
4708
  for (; ++l < Jr.length; ) {
4709
4709
  const i = Jr[l];
4710
- cl(this, Jr[l], (r & Mo[i]) === Mo[i]);
4710
+ ul(this, Jr[l], (r & Mo[i]) === Mo[i]);
4711
4711
  }
4712
4712
  }
4713
4713
  }
4714
- si.prototype.defined = !0;
4715
- function cl(e, t, n) {
4714
+ ci.prototype.defined = !0;
4715
+ function ul(e, t, n) {
4716
4716
  n && (e[t] = n);
4717
4717
  }
4718
4718
  function kn(e) {
4719
4719
  const t = {}, n = {};
4720
4720
  for (const [r, o] of Object.entries(e.properties)) {
4721
- const l = new si(
4721
+ const l = new ci(
4722
4722
  r,
4723
4723
  e.transform(e.attributes || {}, r),
4724
4724
  o,
@@ -4731,10 +4731,10 @@ function kn(e) {
4731
4731
  const vs = kn({
4732
4732
  properties: {
4733
4733
  ariaActiveDescendant: null,
4734
- ariaAtomic: we,
4734
+ ariaAtomic: ke,
4735
4735
  ariaAutoComplete: null,
4736
- ariaBusy: we,
4737
- ariaChecked: we,
4736
+ ariaBusy: ke,
4737
+ ariaChecked: ke,
4738
4738
  ariaColCount: L,
4739
4739
  ariaColIndex: L,
4740
4740
  ariaColSpan: L,
@@ -4742,36 +4742,36 @@ const vs = kn({
4742
4742
  ariaCurrent: null,
4743
4743
  ariaDescribedBy: pe,
4744
4744
  ariaDetails: null,
4745
- ariaDisabled: we,
4745
+ ariaDisabled: ke,
4746
4746
  ariaDropEffect: pe,
4747
4747
  ariaErrorMessage: null,
4748
- ariaExpanded: we,
4748
+ ariaExpanded: ke,
4749
4749
  ariaFlowTo: pe,
4750
- ariaGrabbed: we,
4750
+ ariaGrabbed: ke,
4751
4751
  ariaHasPopup: null,
4752
- ariaHidden: we,
4752
+ ariaHidden: ke,
4753
4753
  ariaInvalid: null,
4754
4754
  ariaKeyShortcuts: null,
4755
4755
  ariaLabel: null,
4756
4756
  ariaLabelledBy: pe,
4757
4757
  ariaLevel: L,
4758
4758
  ariaLive: null,
4759
- ariaModal: we,
4760
- ariaMultiLine: we,
4761
- ariaMultiSelectable: we,
4759
+ ariaModal: ke,
4760
+ ariaMultiLine: ke,
4761
+ ariaMultiSelectable: ke,
4762
4762
  ariaOrientation: null,
4763
4763
  ariaOwns: pe,
4764
4764
  ariaPlaceholder: null,
4765
4765
  ariaPosInSet: L,
4766
- ariaPressed: we,
4767
- ariaReadOnly: we,
4766
+ ariaPressed: ke,
4767
+ ariaReadOnly: ke,
4768
4768
  ariaRelevant: null,
4769
- ariaRequired: we,
4769
+ ariaRequired: ke,
4770
4770
  ariaRoleDescription: pe,
4771
4771
  ariaRowCount: L,
4772
4772
  ariaRowIndex: L,
4773
4773
  ariaRowSpan: L,
4774
- ariaSelected: we,
4774
+ ariaSelected: ke,
4775
4775
  ariaSetSize: L,
4776
4776
  ariaSort: null,
4777
4777
  ariaValueMax: L,
@@ -4830,7 +4830,7 @@ const cd = kn({
4830
4830
  command: null,
4831
4831
  commandFor: null,
4832
4832
  content: null,
4833
- contentEditable: we,
4833
+ contentEditable: ke,
4834
4834
  controls: J,
4835
4835
  controlsList: pe,
4836
4836
  coords: L | Qt,
@@ -4844,7 +4844,7 @@ const cd = kn({
4844
4844
  dirName: null,
4845
4845
  disabled: J,
4846
4846
  download: Do,
4847
- draggable: we,
4847
+ draggable: ke,
4848
4848
  encType: null,
4849
4849
  enterKeyHint: null,
4850
4850
  fetchPriority: null,
@@ -5017,7 +5017,7 @@ const cd = kn({
5017
5017
  sizes: null,
5018
5018
  slot: null,
5019
5019
  span: L,
5020
- spellCheck: we,
5020
+ spellCheck: ke,
5021
5021
  src: null,
5022
5022
  srcDoc: null,
5023
5023
  srcLang: null,
@@ -5032,7 +5032,7 @@ const cd = kn({
5032
5032
  type: null,
5033
5033
  typeMustMatch: J,
5034
5034
  useMap: null,
5035
- value: we,
5035
+ value: ke,
5036
5036
  width: L,
5037
5037
  wrap: null,
5038
5038
  writingSuggestions: null,
@@ -5124,7 +5124,7 @@ const cd = kn({
5124
5124
  // `<table>`
5125
5125
  scheme: null,
5126
5126
  // `<meta>`
5127
- scrolling: we,
5127
+ scrolling: ke,
5128
5128
  // `<frame>`. Use overflow in the child context
5129
5129
  standby: null,
5130
5130
  // `<object>`
@@ -5765,7 +5765,7 @@ const cd = kn({
5765
5765
  xLinkTitle: "xlinkTitle",
5766
5766
  xLinkType: "xlinkType",
5767
5767
  xmlnsXLink: "xmlnsXlink"
5768
- }, pd = /[A-Z]/g, ul = /-[a-z]/g, dd = /^data[-\w.:]+$/i;
5768
+ }, pd = /[A-Z]/g, fl = /-[a-z]/g, dd = /^data[-\w.:]+$/i;
5769
5769
  function hd(e, t) {
5770
5770
  const n = Po(t);
5771
5771
  let r = t, o = $e;
@@ -5773,16 +5773,16 @@ function hd(e, t) {
5773
5773
  return e.property[e.normal[n]];
5774
5774
  if (n.length > 4 && n.slice(0, 4) === "data" && dd.test(t)) {
5775
5775
  if (t.charAt(4) === "-") {
5776
- const l = t.slice(5).replace(ul, gd);
5776
+ const l = t.slice(5).replace(fl, gd);
5777
5777
  r = "data" + l.charAt(0).toUpperCase() + l.slice(1);
5778
5778
  } else {
5779
5779
  const l = t.slice(4);
5780
- if (!ul.test(l)) {
5780
+ if (!fl.test(l)) {
5781
5781
  let i = l.replace(pd, md);
5782
5782
  i.charAt(0) !== "-" && (i = "-" + i), t = "data" + i;
5783
5783
  }
5784
5784
  }
5785
- o = si;
5785
+ o = ci;
5786
5786
  }
5787
5787
  return new o(r, t);
5788
5788
  }
@@ -5792,17 +5792,17 @@ function md(e) {
5792
5792
  function gd(e) {
5793
5793
  return e.charAt(1).toUpperCase();
5794
5794
  }
5795
- const bd = Ss([vs, cd, Es, qs, Ts], "html"), ci = Ss([vs, ud, Es, qs, Ts], "svg");
5795
+ const bd = Ss([vs, cd, Es, qs, Ts], "html"), ui = Ss([vs, ud, Es, qs, Ts], "svg");
5796
5796
  function yd(e) {
5797
5797
  return e.join(" ").trim();
5798
5798
  }
5799
5799
  function _s(e) {
5800
5800
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
5801
5801
  }
5802
- var dn = {}, Qr, fl;
5802
+ var dn = {}, Qr, pl;
5803
5803
  function xd() {
5804
- if (fl) return Qr;
5805
- fl = 1;
5804
+ if (pl) return Qr;
5805
+ pl = 1;
5806
5806
  var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, o = /^:\s*/, l = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, i = /^[;\s]*/, a = /^\s+|\s+$/g, s = `
5807
5807
  `, c = "/", f = "*", u = "", d = "comment", p = "declaration";
5808
5808
  function m(S, k) {
@@ -5810,28 +5810,28 @@ function xd() {
5810
5810
  throw new TypeError("First argument must be a string");
5811
5811
  if (!S) return [];
5812
5812
  k = k || {};
5813
- var q = 1, A = 1;
5813
+ var E = 1, A = 1;
5814
5814
  function U($) {
5815
5815
  var M = $.match(t);
5816
- M && (q += M.length);
5816
+ M && (E += M.length);
5817
5817
  var Q = $.lastIndexOf(s);
5818
5818
  A = ~Q ? $.length - Q : A + $.length;
5819
5819
  }
5820
5820
  function H() {
5821
- var $ = { line: q, column: A };
5821
+ var $ = { line: E, column: A };
5822
5822
  return function(M) {
5823
5823
  return M.position = new C($), V(), M;
5824
5824
  };
5825
5825
  }
5826
5826
  function C($) {
5827
- this.start = $, this.end = { line: q, column: A }, this.source = k.source;
5827
+ this.start = $, this.end = { line: E, column: A }, this.source = k.source;
5828
5828
  }
5829
5829
  C.prototype.content = S;
5830
5830
  function D($) {
5831
5831
  var M = new Error(
5832
- k.source + ":" + q + ":" + A + ": " + $
5832
+ k.source + ":" + E + ":" + A + ": " + $
5833
5833
  );
5834
- if (M.reason = $, M.filename = k.source, M.line = q, M.column = A, M.source = S, !k.silent) throw M;
5834
+ if (M.reason = $, M.filename = k.source, M.line = E, M.column = A, M.source = S, !k.silent) throw M;
5835
5835
  }
5836
5836
  function I($) {
5837
5837
  var M = $.exec(S);
@@ -5889,10 +5889,10 @@ function xd() {
5889
5889
  }
5890
5890
  return Qr = m, Qr;
5891
5891
  }
5892
- var pl;
5892
+ var dl;
5893
5893
  function wd() {
5894
- if (pl) return dn;
5895
- pl = 1;
5894
+ if (dl) return dn;
5895
+ dl = 1;
5896
5896
  var e = dn && dn.__importDefault || function(r) {
5897
5897
  return r && r.__esModule ? r : { default: r };
5898
5898
  };
@@ -5912,10 +5912,10 @@ function wd() {
5912
5912
  }
5913
5913
  return dn;
5914
5914
  }
5915
- var Rn = {}, dl;
5915
+ var Rn = {}, hl;
5916
5916
  function kd() {
5917
- if (dl) return Rn;
5918
- dl = 1, Object.defineProperty(Rn, "__esModule", { value: !0 }), Rn.camelCase = void 0;
5917
+ if (hl) return Rn;
5918
+ hl = 1, Object.defineProperty(Rn, "__esModule", { value: !0 }), Rn.camelCase = void 0;
5919
5919
  var e = /^--[a-zA-Z0-9_-]+$/, t = /-([a-z])/g, n = /^[^-]+$/, r = /^-(webkit|moz|ms|o|khtml)-/, o = /^-(ms)-/, l = function(c) {
5920
5920
  return !c || n.test(c) || e.test(c);
5921
5921
  }, i = function(c, f) {
@@ -5927,10 +5927,10 @@ function kd() {
5927
5927
  };
5928
5928
  return Rn.camelCase = s, Rn;
5929
5929
  }
5930
- var In, hl;
5930
+ var In, ml;
5931
5931
  function Sd() {
5932
- if (hl) return In;
5933
- hl = 1;
5932
+ if (ml) return In;
5933
+ ml = 1;
5934
5934
  var e = In && In.__importDefault || function(o) {
5935
5935
  return o && o.__esModule ? o : { default: o };
5936
5936
  }, t = e(wd()), n = kd();
@@ -5943,7 +5943,7 @@ function Sd() {
5943
5943
  return r.default = r, In = r, In;
5944
5944
  }
5945
5945
  var vd = Sd();
5946
- const Cd = /* @__PURE__ */ _s(vd), Rs = Is("end"), ui = Is("start");
5946
+ const Cd = /* @__PURE__ */ _s(vd), Rs = Is("end"), fi = Is("start");
5947
5947
  function Is(e) {
5948
5948
  return t;
5949
5949
  function t(n) {
@@ -5957,20 +5957,20 @@ function Is(e) {
5957
5957
  }
5958
5958
  }
5959
5959
  function Ns(e) {
5960
- const t = ui(e), n = Rs(e);
5960
+ const t = fi(e), n = Rs(e);
5961
5961
  if (t && n)
5962
5962
  return { start: t, end: n };
5963
5963
  }
5964
5964
  function zn(e) {
5965
- return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? ml(e.position) : "start" in e || "end" in e ? ml(e) : "line" in e || "column" in e ? Oo(e) : "";
5965
+ return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? gl(e.position) : "start" in e || "end" in e ? gl(e) : "line" in e || "column" in e ? Oo(e) : "";
5966
5966
  }
5967
5967
  function Oo(e) {
5968
- return gl(e && e.line) + ":" + gl(e && e.column);
5968
+ return bl(e && e.line) + ":" + bl(e && e.column);
5969
5969
  }
5970
- function ml(e) {
5970
+ function gl(e) {
5971
5971
  return Oo(e && e.start) + "-" + Oo(e && e.end);
5972
5972
  }
5973
- function gl(e) {
5973
+ function bl(e) {
5974
5974
  return e && typeof e == "number" ? e : 1;
5975
5975
  }
5976
5976
  class Le extends Error {
@@ -6060,7 +6060,7 @@ Le.prototype.fatal = void 0;
6060
6060
  Le.prototype.place = void 0;
6061
6061
  Le.prototype.ruleId = void 0;
6062
6062
  Le.prototype.source = void 0;
6063
- const fi = {}.hasOwnProperty, Ad = /* @__PURE__ */ new Map(), Ed = /[A-Z]/g, qd = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Td = /* @__PURE__ */ new Set(["td", "th"]), Ls = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
6063
+ const pi = {}.hasOwnProperty, Ad = /* @__PURE__ */ new Map(), Ed = /[A-Z]/g, qd = /* @__PURE__ */ new Set(["table", "tbody", "thead", "tfoot", "tr"]), Td = /* @__PURE__ */ new Set(["td", "th"]), Ls = "https://github.com/syntax-tree/hast-util-to-jsx-runtime";
6064
6064
  function _d(e, t) {
6065
6065
  if (!t || t.Fragment === void 0)
6066
6066
  throw new TypeError("Expected `Fragment` in options");
@@ -6090,7 +6090,7 @@ function _d(e, t) {
6090
6090
  ignoreInvalidStyle: t.ignoreInvalidStyle || !1,
6091
6091
  passKeys: t.passKeys !== !1,
6092
6092
  passNode: t.passNode || !1,
6093
- schema: t.space === "svg" ? ci : bd,
6093
+ schema: t.space === "svg" ? ui : bd,
6094
6094
  stylePropertyNameCase: t.stylePropertyNameCase || "dom",
6095
6095
  tableCellAlignToStyle: t.tableCellAlignToStyle !== !1
6096
6096
  }, l = Ps(o, e, void 0);
@@ -6118,12 +6118,12 @@ function Ps(e, t, n) {
6118
6118
  function Rd(e, t, n) {
6119
6119
  const r = e.schema;
6120
6120
  let o = r;
6121
- t.tagName.toLowerCase() === "svg" && r.space === "html" && (o = ci, e.schema = o), e.ancestors.push(t);
6121
+ t.tagName.toLowerCase() === "svg" && r.space === "html" && (o = ui, e.schema = o), e.ancestors.push(t);
6122
6122
  const l = Ms(e, t.tagName, !1), i = zd(e, t);
6123
- let a = di(e, t);
6123
+ let a = hi(e, t);
6124
6124
  return qd.has(t.tagName) && (a = a.filter(function(s) {
6125
6125
  return typeof s == "string" ? !ad(s) : !0;
6126
- })), Ds(e, i, l, t), pi(i, a), e.ancestors.pop(), e.schema = r, e.create(t, l, i, n);
6126
+ })), Ds(e, i, l, t), di(i, a), e.ancestors.pop(), e.schema = r, e.create(t, l, i, n);
6127
6127
  }
6128
6128
  function Id(e, t) {
6129
6129
  if (t.data && t.data.estree && e.evaluater) {
@@ -6144,13 +6144,13 @@ function Nd(e, t) {
6144
6144
  function Ld(e, t, n) {
6145
6145
  const r = e.schema;
6146
6146
  let o = r;
6147
- t.name === "svg" && r.space === "html" && (o = ci, e.schema = o), e.ancestors.push(t);
6148
- const l = t.name === null ? e.Fragment : Ms(e, t.name, !0), i = Fd(e, t), a = di(e, t);
6149
- return Ds(e, i, l, t), pi(i, a), e.ancestors.pop(), e.schema = r, e.create(t, l, i, n);
6147
+ t.name === "svg" && r.space === "html" && (o = ui, e.schema = o), e.ancestors.push(t);
6148
+ const l = t.name === null ? e.Fragment : Ms(e, t.name, !0), i = Fd(e, t), a = hi(e, t);
6149
+ return Ds(e, i, l, t), di(i, a), e.ancestors.pop(), e.schema = r, e.create(t, l, i, n);
6150
6150
  }
6151
6151
  function Pd(e, t, n) {
6152
6152
  const r = {};
6153
- return pi(r, di(e, t)), e.create(t, e.Fragment, r, n);
6153
+ return di(r, hi(e, t)), e.create(t, e.Fragment, r, n);
6154
6154
  }
6155
6155
  function Dd(e, t) {
6156
6156
  return t.value;
@@ -6158,7 +6158,7 @@ function Dd(e, t) {
6158
6158
  function Ds(e, t, n, r) {
6159
6159
  typeof n != "string" && n !== e.Fragment && e.passNode && (t.node = r);
6160
6160
  }
6161
- function pi(e, t) {
6161
+ function di(e, t) {
6162
6162
  if (t.length > 0) {
6163
6163
  const n = t.length > 1 ? t : t[0];
6164
6164
  n && (e.children = n);
@@ -6174,7 +6174,7 @@ function Md(e, t, n) {
6174
6174
  function Od(e, t) {
6175
6175
  return n;
6176
6176
  function n(r, o, l, i) {
6177
- const a = Array.isArray(l.children), s = ui(r);
6177
+ const a = Array.isArray(l.children), s = fi(r);
6178
6178
  return t(
6179
6179
  o,
6180
6180
  l,
@@ -6193,7 +6193,7 @@ function zd(e, t) {
6193
6193
  const n = {};
6194
6194
  let r, o;
6195
6195
  for (o in t.properties)
6196
- if (o !== "children" && fi.call(t.properties, o)) {
6196
+ if (o !== "children" && pi.call(t.properties, o)) {
6197
6197
  const l = Bd(e, o, t.properties[o]);
6198
6198
  if (l) {
6199
6199
  const [i, a] = l;
@@ -6241,7 +6241,7 @@ function Fd(e, t) {
6241
6241
  }
6242
6242
  return n;
6243
6243
  }
6244
- function di(e, t) {
6244
+ function hi(e, t) {
6245
6245
  const n = [];
6246
6246
  let r = -1;
6247
6247
  const o = e.passKeys ? /* @__PURE__ */ new Map() : Ad;
@@ -6299,7 +6299,7 @@ function Ms(e, t, n) {
6299
6299
  const o = t.split(".");
6300
6300
  let l = -1, i;
6301
6301
  for (; ++l < o.length; ) {
6302
- const a = al(o[l]) ? { type: "Identifier", name: o[l] } : { type: "Literal", value: o[l] };
6302
+ const a = sl(o[l]) ? { type: "Identifier", name: o[l] } : { type: "Literal", value: o[l] };
6303
6303
  i = i ? {
6304
6304
  type: "MemberExpression",
6305
6305
  object: i,
@@ -6310,13 +6310,13 @@ function Ms(e, t, n) {
6310
6310
  }
6311
6311
  r = i;
6312
6312
  } else
6313
- r = al(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
6313
+ r = sl(t) && !/^[a-z]/.test(t) ? { type: "Identifier", name: t } : { type: "Literal", value: t };
6314
6314
  if (r.type === "Literal") {
6315
6315
  const o = (
6316
6316
  /** @type {string | number} */
6317
6317
  r.value
6318
6318
  );
6319
- return fi.call(e.components, o) ? e.components[o] : o;
6319
+ return pi.call(e.components, o) ? e.components[o] : o;
6320
6320
  }
6321
6321
  if (e.evaluater)
6322
6322
  return e.evaluater.evaluateExpression(r);
@@ -6338,7 +6338,7 @@ function Hd(e) {
6338
6338
  const t = {};
6339
6339
  let n;
6340
6340
  for (n in e)
6341
- fi.call(e, n) && (t[jd(n)] = e[n]);
6341
+ pi.call(e, n) && (t[jd(n)] = e[n]);
6342
6342
  return t;
6343
6343
  }
6344
6344
  function jd(e) {
@@ -6371,7 +6371,7 @@ const Zr = {
6371
6371
  "video"
6372
6372
  ]
6373
6373
  }, $d = {};
6374
- function hi(e, t) {
6374
+ function mi(e, t) {
6375
6375
  const n = $d, r = typeof n.includeImageAlt == "boolean" ? n.includeImageAlt : !0, o = typeof n.includeHtml == "boolean" ? n.includeHtml : !0;
6376
6376
  return Os(e, r, o);
6377
6377
  }
@@ -6382,11 +6382,11 @@ function Os(e, t, n) {
6382
6382
  if (t && "alt" in e && e.alt)
6383
6383
  return e.alt;
6384
6384
  if ("children" in e)
6385
- return bl(e.children, t, n);
6385
+ return yl(e.children, t, n);
6386
6386
  }
6387
- return Array.isArray(e) ? bl(e, t, n) : "";
6387
+ return Array.isArray(e) ? yl(e, t, n) : "";
6388
6388
  }
6389
- function bl(e, t, n) {
6389
+ function yl(e, t, n) {
6390
6390
  const r = [];
6391
6391
  let o = -1;
6392
6392
  for (; ++o < e.length; )
@@ -6396,7 +6396,7 @@ function bl(e, t, n) {
6396
6396
  function Wd(e) {
6397
6397
  return !!(e && typeof e == "object");
6398
6398
  }
6399
- const yl = {
6399
+ const xl = {
6400
6400
  AElig: "Æ",
6401
6401
  AMP: "&",
6402
6402
  Aacute: "Á",
@@ -8524,8 +8524,8 @@ const yl = {
8524
8524
  zwj: "‍",
8525
8525
  zwnj: "‌"
8526
8526
  }, Gd = {}.hasOwnProperty;
8527
- function mi(e) {
8528
- return Gd.call(yl, e) ? yl[e] : !1;
8527
+ function gi(e) {
8528
+ return Gd.call(xl, e) ? xl[e] : !1;
8529
8529
  }
8530
8530
  function Ke(e, t, n, r) {
8531
8531
  const o = e.length;
@@ -8539,7 +8539,7 @@ function Ke(e, t, n, r) {
8539
8539
  function nt(e, t) {
8540
8540
  return e.length > 0 ? (Ke(e, e.length, 0, t), e) : t;
8541
8541
  }
8542
- const xl = {}.hasOwnProperty;
8542
+ const wl = {}.hasOwnProperty;
8543
8543
  function zs(e) {
8544
8544
  const t = {};
8545
8545
  let n = -1;
@@ -8550,11 +8550,11 @@ function zs(e) {
8550
8550
  function Yd(e, t) {
8551
8551
  let n;
8552
8552
  for (n in t) {
8553
- const o = (xl.call(e, n) ? e[n] : void 0) || (e[n] = {}), l = t[n];
8553
+ const o = (wl.call(e, n) ? e[n] : void 0) || (e[n] = {}), l = t[n];
8554
8554
  let i;
8555
8555
  if (l)
8556
8556
  for (i in l) {
8557
- xl.call(o, i) || (o[i] = []);
8557
+ wl.call(o, i) || (o[i] = []);
8558
8558
  const a = l[i];
8559
8559
  Xd(
8560
8560
  // @ts-expect-error Looks like a list.
@@ -8676,7 +8676,7 @@ function eh(e) {
8676
8676
  }
8677
8677
  const th = {
8678
8678
  tokenize: nh
8679
- }, wl = {
8679
+ }, kl = {
8680
8680
  tokenize: rh
8681
8681
  };
8682
8682
  function nh(e) {
@@ -8692,7 +8692,7 @@ function nh(e) {
8692
8692
  }
8693
8693
  function s(A) {
8694
8694
  if (r++, t.containerState._closeFlow) {
8695
- t.containerState._closeFlow = void 0, o && q();
8695
+ t.containerState._closeFlow = void 0, o && E();
8696
8696
  const U = t.events.length;
8697
8697
  let H = U, C;
8698
8698
  for (; H--; )
@@ -8718,23 +8718,23 @@ function nh(e) {
8718
8718
  return m(A);
8719
8719
  t.interrupt = !!(o.currentConstruct && !o._gfmTableDynamicInterruptHack);
8720
8720
  }
8721
- return t.containerState = {}, e.check(wl, f, u)(A);
8721
+ return t.containerState = {}, e.check(kl, f, u)(A);
8722
8722
  }
8723
8723
  function f(A) {
8724
- return o && q(), k(r), d(A);
8724
+ return o && E(), k(r), d(A);
8725
8725
  }
8726
8726
  function u(A) {
8727
8727
  return t.parser.lazy[t.now().line] = r !== n.length, i = t.now().offset, m(A);
8728
8728
  }
8729
8729
  function d(A) {
8730
- return t.containerState = {}, e.attempt(wl, p, m)(A);
8730
+ return t.containerState = {}, e.attempt(kl, p, m)(A);
8731
8731
  }
8732
8732
  function p(A) {
8733
8733
  return r++, n.push([t.currentConstruct, t.containerState]), d(A);
8734
8734
  }
8735
8735
  function m(A) {
8736
8736
  if (A === null) {
8737
- o && q(), k(0), e.consume(A);
8737
+ o && E(), k(0), e.consume(A);
8738
8738
  return;
8739
8739
  }
8740
8740
  return o = o || t.parser.flow(t.now()), e.enter("chunkFlow", {
@@ -8787,7 +8787,7 @@ function nh(e) {
8787
8787
  }
8788
8788
  n.length = A;
8789
8789
  }
8790
- function q() {
8790
+ function E() {
8791
8791
  o.write([null]), l = void 0, o = void 0, t.containerState._closeFlow = void 0;
8792
8792
  }
8793
8793
  }
@@ -8829,7 +8829,7 @@ function oh(e, t) {
8829
8829
  }, d = {
8830
8830
  ...e[n][1].start
8831
8831
  };
8832
- kl(u, -s), kl(d, s), i = {
8832
+ Sl(u, -s), Sl(d, s), i = {
8833
8833
  type: s > 1 ? "strongSequence" : "emphasisSequence",
8834
8834
  start: u,
8835
8835
  end: {
@@ -8883,7 +8883,7 @@ function ih(e, t) {
8883
8883
  return c._open = !!(l === 42 ? u : u && (o || !d)), c._close = !!(l === 42 ? d : d && (f || !u)), t(s);
8884
8884
  }
8885
8885
  }
8886
- function kl(e, t) {
8886
+ function Sl(e, t) {
8887
8887
  e.column += t, e.offset += t, e._bufferIndex += t;
8888
8888
  }
8889
8889
  const lh = {
@@ -9008,15 +9008,15 @@ function dh(e, t, n) {
9008
9008
  function f(u) {
9009
9009
  if (u === 59 && o) {
9010
9010
  const d = e.exit("characterReferenceValue");
9011
- return i === Ne && !mi(r.sliceSerialize(d)) ? n(u) : (e.enter("characterReferenceMarker"), e.consume(u), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
9011
+ return i === Ne && !gi(r.sliceSerialize(d)) ? n(u) : (e.enter("characterReferenceMarker"), e.consume(u), e.exit("characterReferenceMarker"), e.exit("characterReference"), t);
9012
9012
  }
9013
9013
  return i(u) && o++ < l ? (e.consume(u), f) : n(u);
9014
9014
  }
9015
9015
  }
9016
- const Sl = {
9016
+ const vl = {
9017
9017
  partial: !0,
9018
9018
  tokenize: mh
9019
- }, vl = {
9019
+ }, Cl = {
9020
9020
  concrete: !0,
9021
9021
  name: "codeFenced",
9022
9022
  tokenize: hh
@@ -9039,7 +9039,7 @@ function hh(e, t, n) {
9039
9039
  return C === a ? (i++, e.consume(C), f) : i < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), oe(C) ? se(e, u, "whitespace")(C) : u(C));
9040
9040
  }
9041
9041
  function u(C) {
9042
- return C === null || Y(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(Sl, y, U)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
9042
+ return C === null || Y(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(vl, y, U)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
9043
9043
  contentType: "string"
9044
9044
  }), d(C));
9045
9045
  }
@@ -9061,13 +9061,13 @@ function hh(e, t, n) {
9061
9061
  return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), k;
9062
9062
  }
9063
9063
  function k(C) {
9064
- return l > 0 && oe(C) ? se(e, q, "linePrefix", l + 1)(C) : q(C);
9064
+ return l > 0 && oe(C) ? se(e, E, "linePrefix", l + 1)(C) : E(C);
9065
9065
  }
9066
- function q(C) {
9067
- return C === null || Y(C) ? e.check(Sl, y, U)(C) : (e.enter("codeFlowValue"), A(C));
9066
+ function E(C) {
9067
+ return C === null || Y(C) ? e.check(vl, y, U)(C) : (e.enter("codeFlowValue"), A(C));
9068
9068
  }
9069
9069
  function A(C) {
9070
- return C === null || Y(C) ? (e.exit("codeFlowValue"), q(C)) : (e.consume(C), A);
9070
+ return C === null || Y(C) ? (e.exit("codeFlowValue"), E(C)) : (e.consume(C), A);
9071
9071
  }
9072
9072
  function U(C) {
9073
9073
  return e.exit("codeFenced"), t(C);
@@ -9395,8 +9395,8 @@ function Ch(e, t) {
9395
9395
  // Find a void token that includes a break.
9396
9396
  a[d][0] === "exit" && a[d - 1][0] === "enter" && a[d][1].type === a[d - 1][1].type && a[d][1].start.line !== a[d][1].end.line && (y = d + 1, S.push(y), p._tokenizer = void 0, p.previous = void 0, p = p.next);
9397
9397
  for (i.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), d = S.length; d--; ) {
9398
- const k = a.slice(S[d], S[d + 1]), q = l.pop();
9399
- s.push([q, q + k.length - 1]), e.splice(q, 2, k);
9398
+ const k = a.slice(S[d], S[d + 1]), E = l.pop();
9399
+ s.push([E, E + k.length - 1]), e.splice(E, 2, k);
9400
9400
  }
9401
9401
  for (s.reverse(), d = -1; ++d < s.length; )
9402
9402
  c[m + s[d][0]] = m + s[d][1], m += s[d][1] - s[d][0] - 1;
@@ -9711,7 +9711,7 @@ const Fh = [
9711
9711
  "tr",
9712
9712
  "track",
9713
9713
  "ul"
9714
- ], Cl = ["pre", "script", "style", "textarea"], Bh = {
9714
+ ], Al = ["pre", "script", "style", "textarea"], Bh = {
9715
9715
  concrete: !0,
9716
9716
  name: "htmlFlow",
9717
9717
  resolveTo: jh,
@@ -9758,15 +9758,15 @@ function Vh(e, t, n) {
9758
9758
  function S(b) {
9759
9759
  if (b === null || b === 47 || b === 62 || de(b)) {
9760
9760
  const _e = b === 47, me = i.toLowerCase();
9761
- return !_e && !l && Cl.includes(me) ? (o = 1, r.interrupt ? t(b) : z(b)) : Fh.includes(i.toLowerCase()) ? (o = 6, _e ? (e.consume(b), k) : r.interrupt ? t(b) : z(b)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : l ? q(b) : A(b));
9761
+ return !_e && !l && Al.includes(me) ? (o = 1, r.interrupt ? t(b) : z(b)) : Fh.includes(i.toLowerCase()) ? (o = 6, _e ? (e.consume(b), k) : r.interrupt ? t(b) : z(b)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : l ? E(b) : A(b));
9762
9762
  }
9763
9763
  return b === 45 || Ne(b) ? (e.consume(b), i += String.fromCharCode(b), S) : n(b);
9764
9764
  }
9765
9765
  function k(b) {
9766
9766
  return b === 62 ? (e.consume(b), r.interrupt ? t : z) : n(b);
9767
9767
  }
9768
- function q(b) {
9769
- return oe(b) ? (e.consume(b), q) : v(b);
9768
+ function E(b) {
9769
+ return oe(b) ? (e.consume(b), E) : v(b);
9770
9770
  }
9771
9771
  function A(b) {
9772
9772
  return b === 47 ? (e.consume(b), v) : b === 58 || b === 95 || ze(b) ? (e.consume(b), U) : oe(b) ? (e.consume(b), A) : v(b);
@@ -9816,7 +9816,7 @@ function Vh(e, t, n) {
9816
9816
  function Te(b) {
9817
9817
  if (b === 62) {
9818
9818
  const _e = i.toLowerCase();
9819
- return Cl.includes(_e) ? (e.consume(b), Ae) : z(b);
9819
+ return Al.includes(_e) ? (e.consume(b), Ae) : z(b);
9820
9820
  }
9821
9821
  return ze(b) && i.length < 8 ? (e.consume(b), i += String.fromCharCode(b), Te) : z(b);
9822
9822
  }
@@ -9864,7 +9864,7 @@ function Yh(e, t, n) {
9864
9864
  return g === 33 ? (e.consume(g), c) : g === 47 ? (e.consume(g), H) : g === 63 ? (e.consume(g), A) : ze(g) ? (e.consume(g), I) : n(g);
9865
9865
  }
9866
9866
  function c(g) {
9867
- return g === 45 ? (e.consume(g), f) : g === 91 ? (e.consume(g), l = 0, m) : ze(g) ? (e.consume(g), q) : n(g);
9867
+ return g === 45 ? (e.consume(g), f) : g === 91 ? (e.consume(g), l = 0, m) : ze(g) ? (e.consume(g), E) : n(g);
9868
9868
  }
9869
9869
  function f(g) {
9870
9870
  return g === 45 ? (e.consume(g), p) : n(g);
@@ -9891,8 +9891,8 @@ function Yh(e, t, n) {
9891
9891
  function k(g) {
9892
9892
  return g === 62 ? Q(g) : g === 93 ? (e.consume(g), k) : y(g);
9893
9893
  }
9894
- function q(g) {
9895
- return g === null || g === 62 ? Q(g) : Y(g) ? (i = q, ae(g)) : (e.consume(g), q);
9894
+ function E(g) {
9895
+ return g === null || g === 62 ? Q(g) : Y(g) ? (i = E, ae(g)) : (e.consume(g), E);
9896
9896
  }
9897
9897
  function A(g) {
9898
9898
  return g === null ? n(g) : g === 63 ? (e.consume(g), U) : Y(g) ? (i = A, ae(g)) : (e.consume(g), A);
@@ -9946,7 +9946,7 @@ function Yh(e, t, n) {
9946
9946
  return e.enter("htmlTextData"), i(g);
9947
9947
  }
9948
9948
  }
9949
- const gi = {
9949
+ const bi = {
9950
9950
  name: "labelEnd",
9951
9951
  resolveAll: Qh,
9952
9952
  resolveTo: Zh,
@@ -10089,7 +10089,7 @@ function rm(e, t, n) {
10089
10089
  }
10090
10090
  const om = {
10091
10091
  name: "labelStartImage",
10092
- resolveAll: gi.resolveAll,
10092
+ resolveAll: bi.resolveAll,
10093
10093
  tokenize: im
10094
10094
  };
10095
10095
  function im(e, t, n) {
@@ -10107,7 +10107,7 @@ function im(e, t, n) {
10107
10107
  }
10108
10108
  const lm = {
10109
10109
  name: "labelStartLink",
10110
- resolveAll: gi.resolveAll,
10110
+ resolveAll: bi.resolveAll,
10111
10111
  tokenize: am
10112
10112
  };
10113
10113
  function am(e, t, n) {
@@ -10233,7 +10233,7 @@ function gm(e, t, n) {
10233
10233
  return !oe(l) && i && i[1].type === "listItemPrefixWhitespace" ? t(l) : n(l);
10234
10234
  }
10235
10235
  }
10236
- const Al = {
10236
+ const El = {
10237
10237
  name: "setextUnderline",
10238
10238
  resolveTo: bm,
10239
10239
  tokenize: ym
@@ -10426,12 +10426,12 @@ const Am = {
10426
10426
  }, Tm = {
10427
10427
  35: Mh,
10428
10428
  42: yr,
10429
- 45: [Al, yr],
10429
+ 45: [El, yr],
10430
10430
  60: Bh,
10431
- 61: Al,
10431
+ 61: El,
10432
10432
  95: yr,
10433
- 96: vl,
10434
- 126: vl
10433
+ 96: Cl,
10434
+ 126: Cl
10435
10435
  }, _m = {
10436
10436
  38: Hs,
10437
10437
  92: Us
@@ -10445,7 +10445,7 @@ const Am = {
10445
10445
  60: [lh, Gh],
10446
10446
  91: lm,
10447
10447
  92: [Ph, Us],
10448
- 93: gi,
10448
+ 93: bi,
10449
10449
  95: Fo,
10450
10450
  96: xh
10451
10451
  }, Im = {
@@ -10479,7 +10479,7 @@ function Dm(e, t, n) {
10479
10479
  const s = {
10480
10480
  attempt: D(H),
10481
10481
  check: D(C),
10482
- consume: q,
10482
+ consume: E,
10483
10483
  enter: A,
10484
10484
  exit: U,
10485
10485
  interrupt: D(C, {
@@ -10541,7 +10541,7 @@ function Dm(e, t, n) {
10541
10541
  function k(P) {
10542
10542
  f = f(P);
10543
10543
  }
10544
- function q(P) {
10544
+ function E(P) {
10545
10545
  Y(P) ? (r.line++, r.column = 1, r.offset += P === -3 ? 2 : 1, v()) : P !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
10546
10546
  // strings.
10547
10547
  /** @type {string} */
@@ -10578,13 +10578,13 @@ function Dm(e, t, n) {
10578
10578
  function Ae(j) {
10579
10579
  return Je;
10580
10580
  function Je(We) {
10581
- const ue = We !== null && j[We], it = We !== null && j.null, lt = [
10581
+ const ue = We !== null && j[We], lt = We !== null && j.null, at = [
10582
10582
  // To do: add more extension tests.
10583
10583
  /* c8 ignore next 2 */
10584
10584
  ...Array.isArray(ue) ? ue : ue ? [ue] : [],
10585
- ...Array.isArray(it) ? it : it ? [it] : []
10585
+ ...Array.isArray(lt) ? lt : lt ? [lt] : []
10586
10586
  ];
10587
- return De(lt)(We);
10587
+ return De(at)(We);
10588
10588
  }
10589
10589
  }
10590
10590
  function De(j) {
@@ -10710,7 +10710,7 @@ function Fm(e) {
10710
10710
  ;
10711
10711
  return e;
10712
10712
  }
10713
- const El = /[\0\t\n\r]/g;
10713
+ const ql = /[\0\t\n\r]/g;
10714
10714
  function Bm() {
10715
10715
  let e = 1, t = "", n = !0, r;
10716
10716
  return o;
@@ -10718,7 +10718,7 @@ function Bm() {
10718
10718
  const s = [];
10719
10719
  let c, f, u, d, p;
10720
10720
  for (l = t + (typeof l == "string" ? l.toString() : new TextDecoder(i || void 0).decode(l)), u = 0, t = "", n && (l.charCodeAt(0) === 65279 && u++, n = void 0); u < l.length; ) {
10721
- if (El.lastIndex = u, c = El.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
10721
+ if (ql.lastIndex = u, c = ql.exec(l), d = c && c.index !== void 0 ? c.index : l.length, p = l.charCodeAt(d), !c) {
10722
10722
  t = l.slice(u);
10723
10723
  break;
10724
10724
  }
@@ -10757,7 +10757,7 @@ function jm(e, t, n) {
10757
10757
  const o = n.charCodeAt(1), l = o === 120 || o === 88;
10758
10758
  return Fs(n.slice(l ? 2 : 1), l ? 16 : 10);
10759
10759
  }
10760
- return mi(n) || e;
10760
+ return gi(n) || e;
10761
10761
  }
10762
10762
  const Xs = {}.hasOwnProperty;
10763
10763
  function Vm(e, t, n) {
@@ -10772,13 +10772,13 @@ function $m(e) {
10772
10772
  autolinkProtocol: V,
10773
10773
  autolinkEmail: V,
10774
10774
  atxHeading: l(vn),
10775
- blockQuote: l(it),
10775
+ blockQuote: l(lt),
10776
10776
  characterEscape: V,
10777
10777
  characterReference: V,
10778
- codeFenced: l(lt),
10778
+ codeFenced: l(at),
10779
10779
  codeFencedFenceInfo: i,
10780
10780
  codeFencedFenceMeta: i,
10781
- codeIndented: l(lt, i),
10781
+ codeIndented: l(at, i),
10782
10782
  codeText: l(Tt, i),
10783
10783
  codeTextData: V,
10784
10784
  data: V,
@@ -10833,7 +10833,7 @@ function $m(e) {
10833
10833
  data: v,
10834
10834
  definition: s(),
10835
10835
  definitionDestinationString: U,
10836
- definitionLabelString: q,
10836
+ definitionLabelString: E,
10837
10837
  definitionTitleString: A,
10838
10838
  emphasis: s(),
10839
10839
  hardBreakEscape: s(z),
@@ -10865,7 +10865,7 @@ function $m(e) {
10865
10865
  Ks(t, (e || {}).mdastExtensions || []);
10866
10866
  const n = {};
10867
10867
  return r;
10868
- function r(E) {
10868
+ function r(q) {
10869
10869
  let O = {
10870
10870
  type: "root",
10871
10871
  children: []
@@ -10881,31 +10881,31 @@ function $m(e) {
10881
10881
  data: n
10882
10882
  }, Z = [];
10883
10883
  let le = -1;
10884
- for (; ++le < E.length; )
10885
- if (E[le][1].type === "listOrdered" || E[le][1].type === "listUnordered")
10886
- if (E[le][0] === "enter")
10884
+ for (; ++le < q.length; )
10885
+ if (q[le][1].type === "listOrdered" || q[le][1].type === "listUnordered")
10886
+ if (q[le][0] === "enter")
10887
10887
  Z.push(le);
10888
10888
  else {
10889
10889
  const Me = Z.pop();
10890
- le = o(E, Me, le);
10890
+ le = o(q, Me, le);
10891
10891
  }
10892
- for (le = -1; ++le < E.length; ) {
10893
- const Me = t[E[le][0]];
10894
- Xs.call(Me, E[le][1].type) && Me[E[le][1].type].call(Object.assign({
10895
- sliceSerialize: E[le][2].sliceSerialize
10896
- }, G), E[le][1]);
10892
+ for (le = -1; ++le < q.length; ) {
10893
+ const Me = t[q[le][0]];
10894
+ Xs.call(Me, q[le][1].type) && Me[q[le][1].type].call(Object.assign({
10895
+ sliceSerialize: q[le][2].sliceSerialize
10896
+ }, G), q[le][1]);
10897
10897
  }
10898
10898
  if (G.tokenStack.length > 0) {
10899
10899
  const Me = G.tokenStack[G.tokenStack.length - 1];
10900
- (Me[1] || ql).call(G, void 0, Me[0]);
10900
+ (Me[1] || Tl).call(G, void 0, Me[0]);
10901
10901
  }
10902
10902
  for (O.position = {
10903
- start: Pt(E.length > 0 ? E[0][1].start : {
10903
+ start: Pt(q.length > 0 ? q[0][1].start : {
10904
10904
  line: 1,
10905
10905
  column: 1,
10906
10906
  offset: 0
10907
10907
  }),
10908
- end: Pt(E.length > 0 ? E[E.length - 2][1].end : {
10908
+ end: Pt(q.length > 0 ? q[q.length - 2][1].end : {
10909
10909
  line: 1,
10910
10910
  column: 1,
10911
10911
  offset: 0
@@ -10914,10 +10914,10 @@ function $m(e) {
10914
10914
  O = t.transforms[le](O) || O;
10915
10915
  return O;
10916
10916
  }
10917
- function o(E, O, G) {
10917
+ function o(q, O, G) {
10918
10918
  let Z = O - 1, le = -1, Me = !1, Qe, Fe, xt, Ze;
10919
10919
  for (; ++Z <= G; ) {
10920
- const Ee = E[Z];
10920
+ const Ee = q[Z];
10921
10921
  switch (Ee[1].type) {
10922
10922
  case "listUnordered":
10923
10923
  case "listOrdered":
@@ -10940,34 +10940,34 @@ function $m(e) {
10940
10940
  }
10941
10941
  if (!le && Ee[0] === "enter" && Ee[1].type === "listItemPrefix" || le === -1 && Ee[0] === "exit" && (Ee[1].type === "listUnordered" || Ee[1].type === "listOrdered")) {
10942
10942
  if (Qe) {
10943
- let at = Z;
10944
- for (Fe = void 0; at--; ) {
10945
- const et = E[at];
10943
+ let st = Z;
10944
+ for (Fe = void 0; st--; ) {
10945
+ const et = q[st];
10946
10946
  if (et[1].type === "lineEnding" || et[1].type === "lineEndingBlank") {
10947
10947
  if (et[0] === "exit") continue;
10948
- Fe && (E[Fe][1].type = "lineEndingBlank", Me = !0), et[1].type = "lineEnding", Fe = at;
10948
+ Fe && (q[Fe][1].type = "lineEndingBlank", Me = !0), et[1].type = "lineEnding", Fe = st;
10949
10949
  } else if (!(et[1].type === "linePrefix" || et[1].type === "blockQuotePrefix" || et[1].type === "blockQuotePrefixWhitespace" || et[1].type === "blockQuoteMarker" || et[1].type === "listItemIndent")) break;
10950
10950
  }
10951
- xt && (!Fe || xt < Fe) && (Qe._spread = !0), Qe.end = Object.assign({}, Fe ? E[Fe][1].start : Ee[1].end), E.splice(Fe || Z, 0, ["exit", Qe, Ee[2]]), Z++, G++;
10951
+ xt && (!Fe || xt < Fe) && (Qe._spread = !0), Qe.end = Object.assign({}, Fe ? q[Fe][1].start : Ee[1].end), q.splice(Fe || Z, 0, ["exit", Qe, Ee[2]]), Z++, G++;
10952
10952
  }
10953
10953
  if (Ee[1].type === "listItemPrefix") {
10954
- const at = {
10954
+ const st = {
10955
10955
  type: "listItem",
10956
10956
  _spread: !1,
10957
10957
  start: Object.assign({}, Ee[1].start),
10958
10958
  // @ts-expect-error: we’ll add `end` in a second.
10959
10959
  end: void 0
10960
10960
  };
10961
- Qe = at, E.splice(Z, 0, ["enter", at, Ee[2]]), Z++, G++, xt = void 0, Ze = !0;
10961
+ Qe = st, q.splice(Z, 0, ["enter", st, Ee[2]]), Z++, G++, xt = void 0, Ze = !0;
10962
10962
  }
10963
10963
  }
10964
10964
  }
10965
- return E[O][1]._spread = Me, G;
10965
+ return q[O][1]._spread = Me, G;
10966
10966
  }
10967
- function l(E, O) {
10967
+ function l(q, O) {
10968
10968
  return G;
10969
10969
  function G(Z) {
10970
- a.call(this, E(Z), Z), O && O.call(this, Z);
10970
+ a.call(this, q(Z), Z), O && O.call(this, Z);
10971
10971
  }
10972
10972
  }
10973
10973
  function i() {
@@ -10976,163 +10976,163 @@ function $m(e) {
10976
10976
  children: []
10977
10977
  });
10978
10978
  }
10979
- function a(E, O, G) {
10980
- this.stack[this.stack.length - 1].children.push(E), this.stack.push(E), this.tokenStack.push([O, G || void 0]), E.position = {
10979
+ function a(q, O, G) {
10980
+ this.stack[this.stack.length - 1].children.push(q), this.stack.push(q), this.tokenStack.push([O, G || void 0]), q.position = {
10981
10981
  start: Pt(O.start),
10982
10982
  // @ts-expect-error: `end` will be patched later.
10983
10983
  end: void 0
10984
10984
  };
10985
10985
  }
10986
- function s(E) {
10986
+ function s(q) {
10987
10987
  return O;
10988
10988
  function O(G) {
10989
- E && E.call(this, G), c.call(this, G);
10989
+ q && q.call(this, G), c.call(this, G);
10990
10990
  }
10991
10991
  }
10992
- function c(E, O) {
10992
+ function c(q, O) {
10993
10993
  const G = this.stack.pop(), Z = this.tokenStack.pop();
10994
10994
  if (Z)
10995
- Z[0].type !== E.type && (O ? O.call(this, E, Z[0]) : (Z[1] || ql).call(this, E, Z[0]));
10996
- else throw new Error("Cannot close `" + E.type + "` (" + zn({
10997
- start: E.start,
10998
- end: E.end
10995
+ Z[0].type !== q.type && (O ? O.call(this, q, Z[0]) : (Z[1] || Tl).call(this, q, Z[0]));
10996
+ else throw new Error("Cannot close `" + q.type + "` (" + zn({
10997
+ start: q.start,
10998
+ end: q.end
10999
10999
  }) + "): it’s not open");
11000
- G.position.end = Pt(E.end);
11000
+ G.position.end = Pt(q.end);
11001
11001
  }
11002
11002
  function f() {
11003
- return hi(this.stack.pop());
11003
+ return mi(this.stack.pop());
11004
11004
  }
11005
11005
  function u() {
11006
11006
  this.data.expectingFirstListItemValue = !0;
11007
11007
  }
11008
- function d(E) {
11008
+ function d(q) {
11009
11009
  if (this.data.expectingFirstListItemValue) {
11010
11010
  const O = this.stack[this.stack.length - 2];
11011
- O.start = Number.parseInt(this.sliceSerialize(E), 10), this.data.expectingFirstListItemValue = void 0;
11011
+ O.start = Number.parseInt(this.sliceSerialize(q), 10), this.data.expectingFirstListItemValue = void 0;
11012
11012
  }
11013
11013
  }
11014
11014
  function p() {
11015
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11016
- O.lang = E;
11015
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11016
+ O.lang = q;
11017
11017
  }
11018
11018
  function m() {
11019
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11020
- O.meta = E;
11019
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11020
+ O.meta = q;
11021
11021
  }
11022
11022
  function y() {
11023
11023
  this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
11024
11024
  }
11025
11025
  function S() {
11026
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11027
- O.value = E.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
11026
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11027
+ O.value = q.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
11028
11028
  }
11029
11029
  function k() {
11030
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11031
- O.value = E.replace(/(\r?\n|\r)$/g, "");
11030
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11031
+ O.value = q.replace(/(\r?\n|\r)$/g, "");
11032
11032
  }
11033
- function q(E) {
11033
+ function E(q) {
11034
11034
  const O = this.resume(), G = this.stack[this.stack.length - 1];
11035
- G.label = O, G.identifier = ut(this.sliceSerialize(E)).toLowerCase();
11035
+ G.label = O, G.identifier = ut(this.sliceSerialize(q)).toLowerCase();
11036
11036
  }
11037
11037
  function A() {
11038
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11039
- O.title = E;
11038
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11039
+ O.title = q;
11040
11040
  }
11041
11041
  function U() {
11042
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11043
- O.url = E;
11042
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11043
+ O.url = q;
11044
11044
  }
11045
- function H(E) {
11045
+ function H(q) {
11046
11046
  const O = this.stack[this.stack.length - 1];
11047
11047
  if (!O.depth) {
11048
- const G = this.sliceSerialize(E).length;
11048
+ const G = this.sliceSerialize(q).length;
11049
11049
  O.depth = G;
11050
11050
  }
11051
11051
  }
11052
11052
  function C() {
11053
11053
  this.data.setextHeadingSlurpLineEnding = !0;
11054
11054
  }
11055
- function D(E) {
11055
+ function D(q) {
11056
11056
  const O = this.stack[this.stack.length - 1];
11057
- O.depth = this.sliceSerialize(E).codePointAt(0) === 61 ? 1 : 2;
11057
+ O.depth = this.sliceSerialize(q).codePointAt(0) === 61 ? 1 : 2;
11058
11058
  }
11059
11059
  function I() {
11060
11060
  this.data.setextHeadingSlurpLineEnding = void 0;
11061
11061
  }
11062
- function V(E) {
11062
+ function V(q) {
11063
11063
  const G = this.stack[this.stack.length - 1].children;
11064
11064
  let Z = G[G.length - 1];
11065
11065
  (!Z || Z.type !== "text") && (Z = er(), Z.position = {
11066
- start: Pt(E.start),
11066
+ start: Pt(q.start),
11067
11067
  // @ts-expect-error: we’ll add `end` later.
11068
11068
  end: void 0
11069
11069
  }, G.push(Z)), this.stack.push(Z);
11070
11070
  }
11071
- function v(E) {
11071
+ function v(q) {
11072
11072
  const O = this.stack.pop();
11073
- O.value += this.sliceSerialize(E), O.position.end = Pt(E.end);
11073
+ O.value += this.sliceSerialize(q), O.position.end = Pt(q.end);
11074
11074
  }
11075
- function P(E) {
11075
+ function P(q) {
11076
11076
  const O = this.stack[this.stack.length - 1];
11077
11077
  if (this.data.atHardBreak) {
11078
11078
  const G = O.children[O.children.length - 1];
11079
- G.position.end = Pt(E.end), this.data.atHardBreak = void 0;
11079
+ G.position.end = Pt(q.end), this.data.atHardBreak = void 0;
11080
11080
  return;
11081
11081
  }
11082
- !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(O.type) && (V.call(this, E), v.call(this, E));
11082
+ !this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(O.type) && (V.call(this, q), v.call(this, q));
11083
11083
  }
11084
11084
  function z() {
11085
11085
  this.data.atHardBreak = !0;
11086
11086
  }
11087
11087
  function re() {
11088
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11089
- O.value = E;
11088
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11089
+ O.value = q;
11090
11090
  }
11091
11091
  function $() {
11092
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11093
- O.value = E;
11092
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11093
+ O.value = q;
11094
11094
  }
11095
11095
  function M() {
11096
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11097
- O.value = E;
11096
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11097
+ O.value = q;
11098
11098
  }
11099
11099
  function Q() {
11100
- const E = this.stack[this.stack.length - 1];
11100
+ const q = this.stack[this.stack.length - 1];
11101
11101
  if (this.data.inReference) {
11102
11102
  const O = this.data.referenceType || "shortcut";
11103
- E.type += "Reference", E.referenceType = O, delete E.url, delete E.title;
11103
+ q.type += "Reference", q.referenceType = O, delete q.url, delete q.title;
11104
11104
  } else
11105
- delete E.identifier, delete E.label;
11105
+ delete q.identifier, delete q.label;
11106
11106
  this.data.referenceType = void 0;
11107
11107
  }
11108
11108
  function ae() {
11109
- const E = this.stack[this.stack.length - 1];
11109
+ const q = this.stack[this.stack.length - 1];
11110
11110
  if (this.data.inReference) {
11111
11111
  const O = this.data.referenceType || "shortcut";
11112
- E.type += "Reference", E.referenceType = O, delete E.url, delete E.title;
11112
+ q.type += "Reference", q.referenceType = O, delete q.url, delete q.title;
11113
11113
  } else
11114
- delete E.identifier, delete E.label;
11114
+ delete q.identifier, delete q.label;
11115
11115
  this.data.referenceType = void 0;
11116
11116
  }
11117
- function Te(E) {
11118
- const O = this.sliceSerialize(E), G = this.stack[this.stack.length - 2];
11117
+ function Te(q) {
11118
+ const O = this.sliceSerialize(q), G = this.stack[this.stack.length - 2];
11119
11119
  G.label = Hm(O), G.identifier = ut(O).toLowerCase();
11120
11120
  }
11121
11121
  function Pe() {
11122
- const E = this.stack[this.stack.length - 1], O = this.resume(), G = this.stack[this.stack.length - 1];
11122
+ const q = this.stack[this.stack.length - 1], O = this.resume(), G = this.stack[this.stack.length - 1];
11123
11123
  if (this.data.inReference = !0, G.type === "link") {
11124
- const Z = E.children;
11124
+ const Z = q.children;
11125
11125
  G.children = Z;
11126
11126
  } else
11127
11127
  G.alt = O;
11128
11128
  }
11129
11129
  function g() {
11130
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11131
- O.url = E;
11130
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11131
+ O.url = q;
11132
11132
  }
11133
11133
  function Ae() {
11134
- const E = this.resume(), O = this.stack[this.stack.length - 1];
11135
- O.title = E;
11134
+ const q = this.resume(), O = this.stack[this.stack.length - 1];
11135
+ O.title = q;
11136
11136
  }
11137
11137
  function De() {
11138
11138
  this.data.inReference = void 0;
@@ -11140,41 +11140,41 @@ function $m(e) {
11140
11140
  function b() {
11141
11141
  this.data.referenceType = "collapsed";
11142
11142
  }
11143
- function _e(E) {
11143
+ function _e(q) {
11144
11144
  const O = this.resume(), G = this.stack[this.stack.length - 1];
11145
- G.label = O, G.identifier = ut(this.sliceSerialize(E)).toLowerCase(), this.data.referenceType = "full";
11145
+ G.label = O, G.identifier = ut(this.sliceSerialize(q)).toLowerCase(), this.data.referenceType = "full";
11146
11146
  }
11147
- function me(E) {
11148
- this.data.characterReferenceType = E.type;
11147
+ function me(q) {
11148
+ this.data.characterReferenceType = q.type;
11149
11149
  }
11150
- function j(E) {
11151
- const O = this.sliceSerialize(E), G = this.data.characterReferenceType;
11150
+ function j(q) {
11151
+ const O = this.sliceSerialize(q), G = this.data.characterReferenceType;
11152
11152
  let Z;
11153
- G ? (Z = Fs(O, G === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Z = mi(O);
11153
+ G ? (Z = Fs(O, G === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Z = gi(O);
11154
11154
  const le = this.stack[this.stack.length - 1];
11155
11155
  le.value += Z;
11156
11156
  }
11157
- function Je(E) {
11157
+ function Je(q) {
11158
11158
  const O = this.stack.pop();
11159
- O.position.end = Pt(E.end);
11159
+ O.position.end = Pt(q.end);
11160
11160
  }
11161
- function We(E) {
11162
- v.call(this, E);
11161
+ function We(q) {
11162
+ v.call(this, q);
11163
11163
  const O = this.stack[this.stack.length - 1];
11164
- O.url = this.sliceSerialize(E);
11164
+ O.url = this.sliceSerialize(q);
11165
11165
  }
11166
- function ue(E) {
11167
- v.call(this, E);
11166
+ function ue(q) {
11167
+ v.call(this, q);
11168
11168
  const O = this.stack[this.stack.length - 1];
11169
- O.url = "mailto:" + this.sliceSerialize(E);
11169
+ O.url = "mailto:" + this.sliceSerialize(q);
11170
11170
  }
11171
- function it() {
11171
+ function lt() {
11172
11172
  return {
11173
11173
  type: "blockquote",
11174
11174
  children: []
11175
11175
  };
11176
11176
  }
11177
- function lt() {
11177
+ function at() {
11178
11178
  return {
11179
11179
  type: "code",
11180
11180
  lang: null,
@@ -11238,19 +11238,19 @@ function $m(e) {
11238
11238
  children: []
11239
11239
  };
11240
11240
  }
11241
- function Ge(E) {
11241
+ function Ge(q) {
11242
11242
  return {
11243
11243
  type: "list",
11244
- ordered: E.type === "listOrdered",
11244
+ ordered: q.type === "listOrdered",
11245
11245
  start: null,
11246
- spread: E._spread,
11246
+ spread: q._spread,
11247
11247
  children: []
11248
11248
  };
11249
11249
  }
11250
- function jt(E) {
11250
+ function jt(q) {
11251
11251
  return {
11252
11252
  type: "listItem",
11253
- spread: E._spread,
11253
+ spread: q._spread,
11254
11254
  checked: null,
11255
11255
  children: []
11256
11256
  };
@@ -11316,7 +11316,7 @@ function Wm(e, t) {
11316
11316
  }
11317
11317
  }
11318
11318
  }
11319
- function ql(e, t) {
11319
+ function Tl(e, t) {
11320
11320
  throw e ? new Error("Cannot close `" + e.type + "` (" + zn({
11321
11321
  start: e.start,
11322
11322
  end: e.end
@@ -11583,7 +11583,7 @@ function dg(e, t) {
11583
11583
  tagName: "tbody",
11584
11584
  properties: {},
11585
11585
  children: e.wrap(n, !0)
11586
- }, a = ui(t.children[1]), s = Rs(t.children[t.children.length - 1]);
11586
+ }, a = fi(t.children[1]), s = Rs(t.children[t.children.length - 1]);
11587
11587
  a && s && (i.position = { start: a, end: s }), o.push(i);
11588
11588
  }
11589
11589
  const l = {
@@ -11622,28 +11622,28 @@ function mg(e, t) {
11622
11622
  };
11623
11623
  return e.patch(t, n), e.applyData(t, n);
11624
11624
  }
11625
- const Tl = 9, _l = 32;
11625
+ const _l = 9, Rl = 32;
11626
11626
  function gg(e) {
11627
11627
  const t = String(e), n = /\r?\n|\r/g;
11628
11628
  let r = n.exec(t), o = 0;
11629
11629
  const l = [];
11630
11630
  for (; r; )
11631
11631
  l.push(
11632
- Rl(t.slice(o, r.index), o > 0, !0),
11632
+ Il(t.slice(o, r.index), o > 0, !0),
11633
11633
  r[0]
11634
11634
  ), o = r.index + r[0].length, r = n.exec(t);
11635
- return l.push(Rl(t.slice(o), o > 0, !1)), l.join("");
11635
+ return l.push(Il(t.slice(o), o > 0, !1)), l.join("");
11636
11636
  }
11637
- function Rl(e, t, n) {
11637
+ function Il(e, t, n) {
11638
11638
  let r = 0, o = e.length;
11639
11639
  if (t) {
11640
11640
  let l = e.codePointAt(r);
11641
- for (; l === Tl || l === _l; )
11641
+ for (; l === _l || l === Rl; )
11642
11642
  r++, l = e.codePointAt(r);
11643
11643
  }
11644
11644
  if (n) {
11645
11645
  let l = e.codePointAt(o - 1);
11646
- for (; l === Tl || l === _l; )
11646
+ for (; l === _l || l === Rl; )
11647
11647
  o--, l = e.codePointAt(o - 1);
11648
11648
  }
11649
11649
  return o > r ? e.slice(r, o) : "";
@@ -11693,7 +11693,7 @@ const xg = {
11693
11693
  };
11694
11694
  function fr() {
11695
11695
  }
11696
- const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, tc = 8, nc = typeof self == "object" ? self : globalThis, Il = (e, t) => {
11696
+ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, yi = 3, xi = 4, wi = 5, ki = 6, ec = 7, tc = 8, nc = typeof self == "object" ? self : globalThis, Nl = (e, t) => {
11697
11697
  switch (e) {
11698
11698
  case "Function":
11699
11699
  case "SharedWorker":
@@ -11725,19 +11725,19 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11725
11725
  a[r(s)] = r(c);
11726
11726
  return a;
11727
11727
  }
11728
- case bi:
11728
+ case yi:
11729
11729
  return n(new Date(i), o);
11730
- case yi: {
11730
+ case xi: {
11731
11731
  const { source: a, flags: s } = i;
11732
11732
  return n(new RegExp(a, s), o);
11733
11733
  }
11734
- case xi: {
11734
+ case wi: {
11735
11735
  const a = n(/* @__PURE__ */ new Map(), o);
11736
11736
  for (const [s, c] of i)
11737
11737
  a.set(r(s), r(c));
11738
11738
  return a;
11739
11739
  }
11740
- case wi: {
11740
+ case ki: {
11741
11741
  const a = n(/* @__PURE__ */ new Set(), o);
11742
11742
  for (const s of i)
11743
11743
  a.add(r(s));
@@ -11746,7 +11746,7 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11746
11746
  case ec: {
11747
11747
  const { name: a, message: s } = i;
11748
11748
  return n(
11749
- typeof nc[a] == "function" ? Il(a, s) : new Error(s),
11749
+ typeof nc[a] == "function" ? Nl(a, s) : new Error(s),
11750
11750
  o
11751
11751
  );
11752
11752
  }
@@ -11761,10 +11761,10 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11761
11761
  return n(new DataView(a), i);
11762
11762
  }
11763
11763
  }
11764
- return n(Il(l, i), o);
11764
+ return n(Nl(l, i), o);
11765
11765
  };
11766
11766
  return r;
11767
- }, Nl = (e) => wg(/* @__PURE__ */ new Map(), e)(0), Xt = "", { toString: kg } = {}, { keys: Sg } = Object, Ln = (e) => {
11767
+ }, Ll = (e) => wg(/* @__PURE__ */ new Map(), e)(0), Xt = "", { toString: kg } = {}, { keys: Sg } = Object, Ln = (e) => {
11768
11768
  const t = typeof e;
11769
11769
  if (t !== "object" || !e)
11770
11770
  return [Rr, t];
@@ -11775,13 +11775,13 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11775
11775
  case "Object":
11776
11776
  return [Sr, Xt];
11777
11777
  case "Date":
11778
- return [bi, Xt];
11779
- case "RegExp":
11780
11778
  return [yi, Xt];
11781
- case "Map":
11779
+ case "RegExp":
11782
11780
  return [xi, Xt];
11783
- case "Set":
11781
+ case "Map":
11784
11782
  return [wi, Xt];
11783
+ case "Set":
11784
+ return [ki, Xt];
11785
11785
  case "DataView":
11786
11786
  return [Bn, n];
11787
11787
  }
@@ -11839,19 +11839,19 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11839
11839
  (e || !pr(Ln(i[d]))) && f.push([l(d), l(i[d])]);
11840
11840
  return u;
11841
11841
  }
11842
- case bi:
11842
+ case yi:
11843
11843
  return o([a, isNaN(i.getTime()) ? Xt : i.toISOString()], i);
11844
- case yi: {
11844
+ case xi: {
11845
11845
  const { source: f, flags: u } = i;
11846
11846
  return o([a, { source: f, flags: u }], i);
11847
11847
  }
11848
- case xi: {
11848
+ case wi: {
11849
11849
  const f = [], u = o([a, f], i);
11850
11850
  for (const [d, p] of i)
11851
11851
  (e || !(pr(Ln(d)) || pr(Ln(p)))) && f.push([l(d), l(p)]);
11852
11852
  return u;
11853
11853
  }
11854
- case wi: {
11854
+ case ki: {
11855
11855
  const f = [], u = o([a, f], i);
11856
11856
  for (const d of i)
11857
11857
  (e || !pr(Ln(d))) && f.push(l(d));
@@ -11862,13 +11862,13 @@ const Zs = -1, Rr = 0, Bn = 1, Sr = 2, bi = 3, yi = 4, xi = 5, wi = 6, ec = 7, t
11862
11862
  return o([a, { name: s, message: c }], i);
11863
11863
  };
11864
11864
  return l;
11865
- }, Ll = (e, { json: t, lossy: n } = {}) => {
11865
+ }, Pl = (e, { json: t, lossy: n } = {}) => {
11866
11866
  const r = [];
11867
11867
  return vg(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
11868
11868
  }, Vn = typeof structuredClone == "function" ? (
11869
11869
  /* c8 ignore start */
11870
- (e, t) => t && ("json" in t || "lossy" in t) ? Nl(Ll(e, t)) : structuredClone(e)
11871
- ) : (e, t) => Nl(Ll(e, t));
11870
+ (e, t) => t && ("json" in t || "lossy" in t) ? Ll(Pl(e, t)) : structuredClone(e)
11871
+ ) : (e, t) => Ll(Pl(e, t));
11872
11872
  function Cg(e, t) {
11873
11873
  const n = [{ type: "text", value: "↩" }];
11874
11874
  return t > 1 && n.push({
@@ -11897,8 +11897,8 @@ function Eg(e) {
11897
11897
  const m = [], y = e.footnoteCounts.get(u);
11898
11898
  for (; y !== void 0 && ++p <= y; ) {
11899
11899
  m.length > 0 && m.push({ type: "text", value: " " });
11900
- let q = typeof n == "string" ? n : n(s, p);
11901
- typeof q == "string" && (q = { type: "text", value: q }), m.push({
11900
+ let E = typeof n == "string" ? n : n(s, p);
11901
+ typeof E == "string" && (E = { type: "text", value: E }), m.push({
11902
11902
  type: "element",
11903
11903
  tagName: "a",
11904
11904
  properties: {
@@ -11907,13 +11907,13 @@ function Eg(e) {
11907
11907
  ariaLabel: typeof r == "string" ? r : r(s, p),
11908
11908
  className: ["data-footnote-backref"]
11909
11909
  },
11910
- children: Array.isArray(q) ? q : [q]
11910
+ children: Array.isArray(E) ? E : [E]
11911
11911
  });
11912
11912
  }
11913
11913
  const S = f[f.length - 1];
11914
11914
  if (S && S.type === "element" && S.tagName === "p") {
11915
- const q = S.children[S.children.length - 1];
11916
- q && q.type === "text" ? q.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...m);
11915
+ const E = S.children[S.children.length - 1];
11916
+ E && E.type === "text" ? E.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...m);
11917
11917
  } else
11918
11918
  f.push(...m);
11919
11919
  const k = {
@@ -12075,8 +12075,8 @@ function oc(e, t, n, r) {
12075
12075
  );
12076
12076
  if (k.children && p[0] !== Lg)
12077
12077
  for (y = (r ? k.children.length : -1) + i, S = f.concat(k); y > -1 && y < k.children.length; ) {
12078
- const q = k.children[y];
12079
- if (m = a(q, y, S)(), m[0] === Bo)
12078
+ const E = k.children[y];
12079
+ if (m = a(E, y, S)(), m[0] === Bo)
12080
12080
  return m;
12081
12081
  y = typeof m[1] == "number" ? m[1] : y + i;
12082
12082
  }
@@ -12088,7 +12088,7 @@ function oc(e, t, n, r) {
12088
12088
  function Pg(e) {
12089
12089
  return Array.isArray(e) ? e : typeof e == "number" ? [Ng, e] : e == null ? rc : [e];
12090
12090
  }
12091
- function ki(e, t, n, r) {
12091
+ function Si(e, t, n, r) {
12092
12092
  let o, l, i;
12093
12093
  typeof t == "function" && typeof n != "function" ? (l = void 0, i = t, o = n) : (l = t, i = n, o = r), oc(e, l, a, o);
12094
12094
  function a(s, c) {
@@ -12111,7 +12111,7 @@ function Mg(e, t) {
12111
12111
  patch: Og,
12112
12112
  wrap: Bg
12113
12113
  };
12114
- return ki(e, function(f) {
12114
+ return Si(e, function(f) {
12115
12115
  if (f.type === "definition" || f.type === "footnoteDefinition") {
12116
12116
  const u = f.type === "definition" ? r : o, d = String(f.identifier).toUpperCase();
12117
12117
  u.has(d) || u.set(d, f);
@@ -12138,9 +12138,9 @@ function Mg(e, t) {
12138
12138
  for (; ++p < d.length; ) {
12139
12139
  const m = a.one(d[p], f);
12140
12140
  if (m) {
12141
- if (p && d[p - 1].type === "break" && (!Array.isArray(m) && m.type === "text" && (m.value = Pl(m.value)), !Array.isArray(m) && m.type === "element")) {
12141
+ if (p && d[p - 1].type === "break" && (!Array.isArray(m) && m.type === "text" && (m.value = Dl(m.value)), !Array.isArray(m) && m.type === "element")) {
12142
12142
  const y = m.children[0];
12143
- y && y.type === "text" && (y.value = Pl(y.value));
12143
+ y && y.type === "text" && (y.value = Dl(y.value));
12144
12144
  }
12145
12145
  Array.isArray(m) ? u.push(...m) : u.push(m);
12146
12146
  }
@@ -12186,13 +12186,13 @@ function Bg(e, t) {
12186
12186
  return t && e.length > 0 && n.push({ type: "text", value: `
12187
12187
  ` }), n;
12188
12188
  }
12189
- function Pl(e) {
12189
+ function Dl(e) {
12190
12190
  let t = 0, n = e.charCodeAt(t);
12191
12191
  for (; n === 9 || n === 32; )
12192
12192
  t++, n = e.charCodeAt(t);
12193
12193
  return e.slice(t);
12194
12194
  }
12195
- function Dl(e, t) {
12195
+ function Ml(e, t) {
12196
12196
  const n = Mg(e, t), r = n.one(e, void 0), o = Eg(n), l = Array.isArray(r) ? { type: "root", children: r } : r || { type: "root", children: [] };
12197
12197
  return o && l.children.push({ type: "text", value: `
12198
12198
  ` }, o), l;
@@ -12201,24 +12201,24 @@ function Ug(e, t) {
12201
12201
  return e && "run" in e ? async function(n, r) {
12202
12202
  const o = (
12203
12203
  /** @type {HastRoot} */
12204
- Dl(n, { file: r, ...t })
12204
+ Ml(n, { file: r, ...t })
12205
12205
  );
12206
12206
  await e.run(o, r);
12207
12207
  } : function(n, r) {
12208
12208
  return (
12209
12209
  /** @type {HastRoot} */
12210
- Dl(n, { file: r, ...e || t })
12210
+ Ml(n, { file: r, ...e || t })
12211
12211
  );
12212
12212
  };
12213
12213
  }
12214
- function Ml(e) {
12214
+ function Ol(e) {
12215
12215
  if (e)
12216
12216
  throw e;
12217
12217
  }
12218
- var no, Ol;
12218
+ var no, zl;
12219
12219
  function Hg() {
12220
- if (Ol) return no;
12221
- Ol = 1;
12220
+ if (zl) return no;
12221
+ zl = 1;
12222
12222
  var e = Object.prototype.hasOwnProperty, t = Object.prototype.toString, n = Object.defineProperty, r = Object.getOwnPropertyDescriptor, o = function(c) {
12223
12223
  return typeof Array.isArray == "function" ? Array.isArray(c) : t.call(c) === "[object Array]";
12224
12224
  }, l = function(c) {
@@ -12247,11 +12247,11 @@ function Hg() {
12247
12247
  return c[f];
12248
12248
  };
12249
12249
  return no = function s() {
12250
- var c, f, u, d, p, m, y = arguments[0], S = 1, k = arguments.length, q = !1;
12251
- for (typeof y == "boolean" && (q = y, y = arguments[1] || {}, S = 2), (y == null || typeof y != "object" && typeof y != "function") && (y = {}); S < k; ++S)
12250
+ var c, f, u, d, p, m, y = arguments[0], S = 1, k = arguments.length, E = !1;
12251
+ for (typeof y == "boolean" && (E = y, y = arguments[1] || {}, S = 2), (y == null || typeof y != "object" && typeof y != "function") && (y = {}); S < k; ++S)
12252
12252
  if (c = arguments[S], c != null)
12253
12253
  for (f in c)
12254
- u = a(y, f), d = a(c, f), y !== d && (q && d && (l(d) || (p = o(d))) ? (p ? (p = !1, m = u && o(u) ? u : []) : m = u && l(u) ? u : {}, i(y, { name: f, newValue: s(q, m, d) })) : typeof d < "u" && i(y, { name: f, newValue: d }));
12254
+ u = a(y, f), d = a(c, f), y !== d && (E && d && (l(d) || (p = o(d))) ? (p ? (p = !1, m = u && o(u) ? u : []) : m = u && l(u) ? u : {}, i(y, { name: f, newValue: s(E, m, d) })) : typeof d < "u" && i(y, { name: f, newValue: d }));
12255
12255
  return y;
12256
12256
  }, no;
12257
12257
  }
@@ -12562,7 +12562,7 @@ class ic {
12562
12562
  * Nothing.
12563
12563
  */
12564
12564
  set dirname(t) {
12565
- zl(this.basename, "dirname"), this.path = bt.join(t || "", this.basename);
12565
+ Fl(this.basename, "dirname"), this.path = bt.join(t || "", this.basename);
12566
12566
  }
12567
12567
  /**
12568
12568
  * Get the extname (including dot) (example: `'.js'`).
@@ -12586,7 +12586,7 @@ class ic {
12586
12586
  * Nothing.
12587
12587
  */
12588
12588
  set extname(t) {
12589
- if (io(t, "extname"), zl(this.dirname, "extname"), t) {
12589
+ if (io(t, "extname"), Fl(this.dirname, "extname"), t) {
12590
12590
  if (t.codePointAt(0) !== 46)
12591
12591
  throw new Error("`extname` must start with `.`");
12592
12592
  if (t.includes(".", 1))
@@ -12863,7 +12863,7 @@ function lo(e, t) {
12863
12863
  if (!e)
12864
12864
  throw new Error("`" + t + "` cannot be empty");
12865
12865
  }
12866
- function zl(e, t) {
12866
+ function Fl(e, t) {
12867
12867
  if (!e)
12868
12868
  throw new Error("Setting `" + t + "` requires `path` to be set too");
12869
12869
  }
@@ -12892,7 +12892,7 @@ const rb = (
12892
12892
  return Object.setPrototypeOf(l, r), l;
12893
12893
  })
12894
12894
  ), ob = {}.hasOwnProperty;
12895
- class Si extends rb {
12895
+ class vi extends rb {
12896
12896
  /**
12897
12897
  * Create a processor.
12898
12898
  */
@@ -12913,7 +12913,7 @@ class Si extends rb {
12913
12913
  copy() {
12914
12914
  const t = (
12915
12915
  /** @type {Processor<ParseTree, HeadTree, TailTree, CompileTree, CompileResult>} */
12916
- new Si()
12916
+ new vi()
12917
12917
  );
12918
12918
  let n = -1;
12919
12919
  for (; ++n < this.attachers.length; ) {
@@ -13141,9 +13141,9 @@ class Si extends rb {
13141
13141
  */
13142
13142
  processSync(t) {
13143
13143
  let n = !1, r;
13144
- return this.freeze(), ao("processSync", this.parser || this.Parser), so("processSync", this.compiler || this.Compiler), this.process(t, o), Bl("processSync", "process", n), r;
13144
+ return this.freeze(), ao("processSync", this.parser || this.Parser), so("processSync", this.compiler || this.Compiler), this.process(t, o), Ul("processSync", "process", n), r;
13145
13145
  function o(l, i) {
13146
- n = !0, Ml(l), r = i;
13146
+ n = !0, Ol(l), r = i;
13147
13147
  }
13148
13148
  }
13149
13149
  /**
@@ -13185,7 +13185,7 @@ class Si extends rb {
13185
13185
  * transformed tree.
13186
13186
  */
13187
13187
  run(t, n, r) {
13188
- Fl(t), this.freeze();
13188
+ Bl(t), this.freeze();
13189
13189
  const o = this.transformers;
13190
13190
  return !r && typeof n == "function" && (r = n, n = void 0), r ? l(void 0, r) : new Promise(l);
13191
13191
  function l(i, a) {
@@ -13219,9 +13219,9 @@ class Si extends rb {
13219
13219
  */
13220
13220
  runSync(t, n) {
13221
13221
  let r = !1, o;
13222
- return this.run(t, n, l), Bl("runSync", "run", r), o;
13222
+ return this.run(t, n, l), Ul("runSync", "run", r), o;
13223
13223
  function l(i, a) {
13224
- Ml(i), o = a, r = !0;
13224
+ Ol(i), o = a, r = !0;
13225
13225
  }
13226
13226
  }
13227
13227
  /**
@@ -13256,7 +13256,7 @@ class Si extends rb {
13256
13256
  stringify(t, n) {
13257
13257
  this.freeze();
13258
13258
  const r = dr(n), o = this.compiler || this.Compiler;
13259
- return so("stringify", o), Fl(t), o(t, r);
13259
+ return so("stringify", o), Bl(t), o(t, r);
13260
13260
  }
13261
13261
  /**
13262
13262
  * Configure the processor to use a plugin, a list of usable values, or a
@@ -13373,7 +13373,7 @@ class Si extends rb {
13373
13373
  }
13374
13374
  }
13375
13375
  }
13376
- const ib = new Si().freeze();
13376
+ const ib = new vi().freeze();
13377
13377
  function ao(e, t) {
13378
13378
  if (typeof t != "function")
13379
13379
  throw new TypeError("Cannot `" + e + "` without `parser`");
@@ -13388,11 +13388,11 @@ function co(e, t) {
13388
13388
  "Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
13389
13389
  );
13390
13390
  }
13391
- function Fl(e) {
13391
+ function Bl(e) {
13392
13392
  if (!Ho(e) || typeof e.type != "string")
13393
13393
  throw new TypeError("Expected node, got `" + e + "`");
13394
13394
  }
13395
- function Bl(e, t, n) {
13395
+ function Ul(e, t, n) {
13396
13396
  if (!n)
13397
13397
  throw new Error(
13398
13398
  "`" + e + "` finished async. Use `" + t + "` instead"
@@ -13410,7 +13410,7 @@ function ab(e) {
13410
13410
  function sb(e) {
13411
13411
  return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
13412
13412
  }
13413
- const cb = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Ul = [], Hl = { allowDangerousHtml: !0 }, ub = /^(https?|ircs?|mailto|xmpp)$/i, fb = [
13413
+ const cb = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Hl = [], jl = { allowDangerousHtml: !0 }, ub = /^(https?|ircs?|mailto|xmpp)$/i, fb = [
13414
13414
  { from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
13415
13415
  { from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
13416
13416
  {
@@ -13449,7 +13449,7 @@ function pb(e) {
13449
13449
  return mb(t.runSync(t.parse(n), n), e);
13450
13450
  }
13451
13451
  function db(e) {
13452
- const t = e.rehypePlugins || Ul, n = e.remarkPlugins || Ul, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Hl } : Hl;
13452
+ const t = e.rehypePlugins || Hl, n = e.remarkPlugins || Hl, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...jl } : jl;
13453
13453
  return ib().use(Gm).use(n).use(Ug, r).use(t);
13454
13454
  }
13455
13455
  function hb(e) {
@@ -13460,7 +13460,7 @@ function mb(e, t) {
13460
13460
  const n = t.allowedElements, r = t.allowElement, o = t.components, l = t.disallowedElements, i = t.skipHtml, a = t.unwrapDisallowed, s = t.urlTransform || gb;
13461
13461
  for (const f of fb)
13462
13462
  Object.hasOwn(t, f.from) && ("" + f.from + (f.to ? "use `" + f.to + "` instead" : "remove it") + cb + f.id, void 0);
13463
- return ki(e, c), _d(e, {
13463
+ return Si(e, c), _d(e, {
13464
13464
  Fragment: zt,
13465
13465
  components: o,
13466
13466
  ignoreInvalidStyle: !0,
@@ -13496,7 +13496,7 @@ function gb(e) {
13496
13496
  ub.test(e.slice(0, t)) ? e : ""
13497
13497
  );
13498
13498
  }
13499
- const Gt = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], jl = {
13499
+ const Gt = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Vl = {
13500
13500
  ancestors: {
13501
13501
  tbody: ["table"],
13502
13502
  td: ["table"],
@@ -13694,7 +13694,7 @@ const Gt = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], jl = {
13694
13694
  function bb(e, t) {
13695
13695
  let n = { type: "root", children: [] };
13696
13696
  const r = {
13697
- schema: t ? { ...jl, ...t } : jl,
13697
+ schema: t ? { ...Vl, ...t } : Vl,
13698
13698
  stack: []
13699
13699
  }, o = lc(r, e);
13700
13700
  return o && (Array.isArray(o) ? o.length === 1 ? n = o[0] : n.children = o : n = o), n;
@@ -13791,13 +13791,13 @@ function vb(e, t) {
13791
13791
  for (c in a)
13792
13792
  if (Mt.call(a, c)) {
13793
13793
  const f = a[c];
13794
- let u = Vl(
13794
+ let u = $l(
13795
13795
  e,
13796
- $l(l, c),
13796
+ Wl(l, c),
13797
13797
  c,
13798
13798
  f
13799
13799
  );
13800
- u == null && (u = Vl(e, $l(i, c), c, f)), u != null && (s[c] = u);
13800
+ u == null && (u = $l(e, Wl(i, c), c, f)), u != null && (s[c] = u);
13801
13801
  }
13802
13802
  if (o && Mt.call(o, n)) {
13803
13803
  const f = o[n];
@@ -13806,7 +13806,7 @@ function vb(e, t) {
13806
13806
  }
13807
13807
  return s;
13808
13808
  }
13809
- function Vl(e, t, n, r) {
13809
+ function $l(e, t, n, r) {
13810
13810
  return t ? Array.isArray(r) ? Cb(e, t, n, r) : sc(e, t, n, r) : void 0;
13811
13811
  }
13812
13812
  function Cb(e, t, n, r) {
@@ -13862,7 +13862,7 @@ function Qn(e, t) {
13862
13862
  );
13863
13863
  t.data && (e.data = Vn(t.data)), n && (e.position = n);
13864
13864
  }
13865
- function $l(e, t) {
13865
+ function Wl(e, t) {
13866
13866
  let n, r = -1;
13867
13867
  if (e)
13868
13868
  for (; ++r < e.length; ) {
@@ -13911,7 +13911,7 @@ function cc(e, t, n) {
13911
13911
  const u = f[f.length - 1], d = l[i][0], p = l[i][1];
13912
13912
  let m = 0;
13913
13913
  const S = u.children.indexOf(c);
13914
- let k = !1, q = [];
13914
+ let k = !1, E = [];
13915
13915
  d.lastIndex = 0;
13916
13916
  let A = d.exec(c.value);
13917
13917
  for (; A; ) {
@@ -13921,14 +13921,14 @@ function cc(e, t, n) {
13921
13921
  stack: [...f, c]
13922
13922
  };
13923
13923
  let C = p(...A, H);
13924
- if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex = U + 1 : (m !== U && q.push({
13924
+ if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex = U + 1 : (m !== U && E.push({
13925
13925
  type: "text",
13926
13926
  value: c.value.slice(m, U)
13927
- }), Array.isArray(C) ? q.push(...C) : C && q.push(C), m = U + A[0].length, k = !0), !d.global)
13927
+ }), Array.isArray(C) ? E.push(...C) : C && E.push(C), m = U + A[0].length, k = !0), !d.global)
13928
13928
  break;
13929
13929
  A = d.exec(c.value);
13930
13930
  }
13931
- return k ? (m < c.value.length && q.push({ type: "text", value: c.value.slice(m) }), u.children.splice(S, 1, ...q)) : q = [c], S + q.length;
13931
+ return k ? (m < c.value.length && E.push({ type: "text", value: c.value.slice(m) }), u.children.splice(S, 1, ...E)) : E = [c], S + E.length;
13932
13932
  }
13933
13933
  }
13934
13934
  function Tb(e) {
@@ -13962,7 +13962,7 @@ function Lb() {
13962
13962
  Ib(e);
13963
13963
  };
13964
13964
  }
13965
- function Wl(e, t) {
13965
+ function Gl(e, t) {
13966
13966
  const n = String(e);
13967
13967
  if (typeof t != "string")
13968
13968
  throw new TypeError("Expected character");
@@ -14082,8 +14082,8 @@ function $b(e) {
14082
14082
  return [e, void 0];
14083
14083
  e = e.slice(0, t.index);
14084
14084
  let n = t[0], r = n.indexOf(")");
14085
- const o = Wl(e, "(");
14086
- let l = Wl(e, ")");
14085
+ const o = Gl(e, "(");
14086
+ let l = Gl(e, ")");
14087
14087
  for (; r !== -1 && o > l; )
14088
14088
  e += n.slice(0, r + 1), n = n.slice(r + 1), r = n.indexOf(")"), l++;
14089
14089
  return [e, n];
@@ -14238,21 +14238,21 @@ function fy(e, t) {
14238
14238
  const y = [], S = [];
14239
14239
  let k = -1;
14240
14240
  for (e[f].length > c && (c = e[f].length); ++k < e[f].length; ) {
14241
- const q = py(e[f][k]);
14241
+ const E = py(e[f][k]);
14242
14242
  if (n.alignDelimiters !== !1) {
14243
- const A = o(q);
14243
+ const A = o(E);
14244
14244
  S[k] = A, (s[k] === void 0 || A > s[k]) && (s[k] = A);
14245
14245
  }
14246
- y.push(q);
14246
+ y.push(E);
14247
14247
  }
14248
14248
  i[f] = y, a[f] = S;
14249
14249
  }
14250
14250
  let u = -1;
14251
14251
  if (typeof r == "object" && "length" in r)
14252
14252
  for (; ++u < c; )
14253
- l[u] = Gl(r[u]);
14253
+ l[u] = Yl(r[u]);
14254
14254
  else {
14255
- const y = Gl(r);
14255
+ const y = Yl(r);
14256
14256
  for (; ++u < c; )
14257
14257
  l[u] = y;
14258
14258
  }
@@ -14262,12 +14262,12 @@ function fy(e, t) {
14262
14262
  const y = l[u];
14263
14263
  let S = "", k = "";
14264
14264
  y === 99 ? (S = ":", k = ":") : y === 108 ? S = ":" : y === 114 && (k = ":");
14265
- let q = n.alignDelimiters === !1 ? 1 : Math.max(
14265
+ let E = n.alignDelimiters === !1 ? 1 : Math.max(
14266
14266
  1,
14267
14267
  s[u] - S.length - k.length
14268
14268
  );
14269
- const A = S + "-".repeat(q) + k;
14270
- n.alignDelimiters !== !1 && (q = S.length + q + k.length, q > s[u] && (s[u] = q), p[u] = q), d[u] = A;
14269
+ const A = S + "-".repeat(E) + k;
14270
+ n.alignDelimiters !== !1 && (E = S.length + E + k.length, E > s[u] && (s[u] = E), p[u] = E), d[u] = A;
14271
14271
  }
14272
14272
  i.splice(1, 0, d), a.splice(1, 0, p), f = -1;
14273
14273
  const m = [];
@@ -14276,7 +14276,7 @@ function fy(e, t) {
14276
14276
  u = -1;
14277
14277
  const k = [];
14278
14278
  for (; ++u < c; ) {
14279
- const q = y[u] || "";
14279
+ const E = y[u] || "";
14280
14280
  let A = "", U = "";
14281
14281
  if (n.alignDelimiters !== !1) {
14282
14282
  const H = s[u] - (S[u] || 0), C = l[u];
@@ -14284,7 +14284,7 @@ function fy(e, t) {
14284
14284
  }
14285
14285
  n.delimiterStart !== !1 && !u && k.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
14286
14286
  // empty: there will be a closing space.
14287
- !(n.alignDelimiters === !1 && q === "") && (n.delimiterStart !== !1 || u) && k.push(" "), n.alignDelimiters !== !1 && k.push(A), k.push(q), n.alignDelimiters !== !1 && k.push(U), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || u !== c - 1) && k.push("|");
14287
+ !(n.alignDelimiters === !1 && E === "") && (n.delimiterStart !== !1 || u) && k.push(" "), n.alignDelimiters !== !1 && k.push(A), k.push(E), n.alignDelimiters !== !1 && k.push(U), n.padding !== !1 && k.push(" "), (n.delimiterEnd !== !1 || u !== c - 1) && k.push("|");
14288
14288
  }
14289
14289
  m.push(
14290
14290
  n.delimiterEnd === !1 ? k.join("").replace(/ +$/, "") : k.join("")
@@ -14296,7 +14296,7 @@ function fy(e, t) {
14296
14296
  function py(e) {
14297
14297
  return e == null ? "" : String(e);
14298
14298
  }
14299
- function Gl(e) {
14299
+ function Yl(e) {
14300
14300
  const t = typeof e == "string" ? e.codePointAt(0) : 0;
14301
14301
  return t === 67 || t === 99 ? 99 : t === 76 || t === 108 ? 108 : t === 82 || t === 114 ? 114 : 0;
14302
14302
  }
@@ -14313,9 +14313,9 @@ function hy(e, t, n) {
14313
14313
  return ">" + (n ? "" : " ") + e;
14314
14314
  }
14315
14315
  function my(e, t) {
14316
- return Yl(e, t.inConstruct, !0) && !Yl(e, t.notInConstruct, !1);
14316
+ return Xl(e, t.inConstruct, !0) && !Xl(e, t.notInConstruct, !1);
14317
14317
  }
14318
- function Yl(e, t, n) {
14318
+ function Xl(e, t, n) {
14319
14319
  if (typeof t == "string" && (t = [t]), !t || t.length === 0)
14320
14320
  return n;
14321
14321
  let r = -1;
@@ -14324,7 +14324,7 @@ function Yl(e, t, n) {
14324
14324
  return !0;
14325
14325
  return !1;
14326
14326
  }
14327
- function Xl(e, t, n, r) {
14327
+ function Kl(e, t, n, r) {
14328
14328
  let o = -1;
14329
14329
  for (; ++o < n.unsafe.length; )
14330
14330
  if (n.unsafe[o].character === `
@@ -14394,7 +14394,7 @@ function xy(e, t, n, r) {
14394
14394
  function wy(e, t, n) {
14395
14395
  return (n ? "" : " ") + e;
14396
14396
  }
14397
- function vi(e) {
14397
+ function Ci(e) {
14398
14398
  const t = e.options.quote || '"';
14399
14399
  if (t !== '"' && t !== "'")
14400
14400
  throw new Error(
@@ -14403,7 +14403,7 @@ function vi(e) {
14403
14403
  return t;
14404
14404
  }
14405
14405
  function ky(e, t, n, r) {
14406
- const o = vi(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.enter("definition");
14406
+ const o = Ci(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.enter("definition");
14407
14407
  let a = n.enter("label");
14408
14408
  const s = n.createTracker(r);
14409
14409
  let c = s.move("[");
@@ -14505,10 +14505,10 @@ function vy(e, t, n) {
14505
14505
  }
14506
14506
  function Cy(e, t) {
14507
14507
  let n = !1;
14508
- return ki(e, function(r) {
14508
+ return Si(e, function(r) {
14509
14509
  if ("value" in r && /\r?\n|\r/.test(r.value) || r.type === "break")
14510
14510
  return n = !0, Bo;
14511
- }), !!((!e.depth || e.depth < 3) && hi(e) && (t.options.setext || n));
14511
+ }), !!((!e.depth || e.depth < 3) && mi(e) && (t.options.setext || n));
14512
14512
  }
14513
14513
  function Ay(e, t, n, r) {
14514
14514
  const o = Math.max(Math.min(6, e.depth || 1), 1), l = n.createTracker(r);
@@ -14548,7 +14548,7 @@ function Ey() {
14548
14548
  }
14549
14549
  gc.peek = qy;
14550
14550
  function gc(e, t, n, r) {
14551
- const o = vi(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.enter("image");
14551
+ const o = Ci(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.enter("image");
14552
14552
  let a = n.enter("label");
14553
14553
  const s = n.createTracker(r);
14554
14554
  let c = s.move("![");
@@ -14619,7 +14619,7 @@ function _y() {
14619
14619
  return "`";
14620
14620
  }
14621
14621
  function xc(e, t) {
14622
- const n = hi(e);
14622
+ const n = mi(e);
14623
14623
  return !!(!t.options.resourceLink && // If there’s a url…
14624
14624
  e.url && // And there’s a no title…
14625
14625
  !e.title && // And the content of `node` is a single text node…
@@ -14631,7 +14631,7 @@ function xc(e, t) {
14631
14631
  }
14632
14632
  wc.peek = Ry;
14633
14633
  function wc(e, t, n, r) {
14634
- const o = vi(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.createTracker(r);
14634
+ const o = Ci(n), l = o === '"' ? "Quote" : "Apostrophe", i = n.createTracker(r);
14635
14635
  let a, s;
14636
14636
  if (xc(e, n)) {
14637
14637
  const f = n.stack;
@@ -14698,7 +14698,7 @@ function kc(e, t, n, r) {
14698
14698
  function Iy() {
14699
14699
  return "[";
14700
14700
  }
14701
- function Ci(e) {
14701
+ function Ai(e) {
14702
14702
  const t = e.options.bullet || "*";
14703
14703
  if (t !== "*" && t !== "+" && t !== "-")
14704
14704
  throw new Error(
@@ -14707,7 +14707,7 @@ function Ci(e) {
14707
14707
  return t;
14708
14708
  }
14709
14709
  function Ny(e) {
14710
- const t = Ci(e), n = e.options.bulletOther;
14710
+ const t = Ai(e), n = e.options.bulletOther;
14711
14711
  if (!n)
14712
14712
  return t === "*" ? "-" : "*";
14713
14713
  if (n !== "*" && n !== "+" && n !== "-")
@@ -14738,7 +14738,7 @@ function Sc(e) {
14738
14738
  }
14739
14739
  function Py(e, t, n, r) {
14740
14740
  const o = n.enter("list"), l = n.bulletCurrent;
14741
- let i = e.ordered ? Ly(n) : Ci(n);
14741
+ let i = e.ordered ? Ly(n) : Ai(n);
14742
14742
  const a = e.ordered ? i === "." ? ")" : "." : Ny(n);
14743
14743
  let s = t && n.bulletLastUsed ? i === n.bulletLastUsed : !1;
14744
14744
  if (!e.ordered) {
@@ -14774,7 +14774,7 @@ function Dy(e) {
14774
14774
  }
14775
14775
  function My(e, t, n, r) {
14776
14776
  const o = Dy(n);
14777
- let l = n.bulletCurrent || Ci(n);
14777
+ let l = n.bulletCurrent || Ai(n);
14778
14778
  t && t.type === "list" && t.ordered && (l = (typeof t.start == "number" && t.start > -1 ? t.start : 1) + (n.options.incrementListMarker === !1 ? 0 : t.children.indexOf(e)) + l);
14779
14779
  let i = l.length + 1;
14780
14780
  (o === "tab" || o === "mixed" && (t && t.type === "list" && t.spread || e.spread)) && (i = Math.ceil(i / 4) * 4);
@@ -14876,11 +14876,11 @@ function Vy(e, t, n) {
14876
14876
  }
14877
14877
  const Cc = {
14878
14878
  blockquote: dy,
14879
- break: Xl,
14879
+ break: Kl,
14880
14880
  code: xy,
14881
14881
  definition: ky,
14882
14882
  emphasis: hc,
14883
- hardBreak: Xl,
14883
+ hardBreak: Kl,
14884
14884
  heading: Ay,
14885
14885
  html: mc,
14886
14886
  image: gc,
@@ -14900,8 +14900,8 @@ function $y() {
14900
14900
  return {
14901
14901
  enter: {
14902
14902
  table: Wy,
14903
- tableData: Kl,
14904
- tableHeader: Kl,
14903
+ tableData: Jl,
14904
+ tableHeader: Jl,
14905
14905
  tableRow: Yy
14906
14906
  },
14907
14907
  exit: {
@@ -14935,7 +14935,7 @@ function Yy(e) {
14935
14935
  function ho(e) {
14936
14936
  this.exit(e);
14937
14937
  }
14938
- function Kl(e) {
14938
+ function Jl(e) {
14939
14939
  this.enter({ type: "tableCell", children: [] }, e);
14940
14940
  }
14941
14941
  function Xy(e) {
@@ -14980,17 +14980,17 @@ function Jy(e) {
14980
14980
  return c(f(p, y, S), p.align);
14981
14981
  }
14982
14982
  function a(p, m, y, S) {
14983
- const k = u(p, y, S), q = c([k]);
14984
- return q.slice(0, q.indexOf(`
14983
+ const k = u(p, y, S), E = c([k]);
14984
+ return E.slice(0, E.indexOf(`
14985
14985
  `));
14986
14986
  }
14987
14987
  function s(p, m, y, S) {
14988
- const k = y.enter("tableCell"), q = y.enter("phrasing"), A = y.containerPhrasing(p, {
14988
+ const k = y.enter("tableCell"), E = y.enter("phrasing"), A = y.containerPhrasing(p, {
14989
14989
  ...S,
14990
14990
  before: l,
14991
14991
  after: l
14992
14992
  });
14993
- return q(), k(), A;
14993
+ return E(), k(), A;
14994
14994
  }
14995
14995
  function c(p, m) {
14996
14996
  return fy(p, {
@@ -15006,18 +15006,18 @@ function Jy(e) {
15006
15006
  function f(p, m, y) {
15007
15007
  const S = p.children;
15008
15008
  let k = -1;
15009
- const q = [], A = m.enter("table");
15009
+ const E = [], A = m.enter("table");
15010
15010
  for (; ++k < S.length; )
15011
- q[k] = u(S[k], m, y);
15012
- return A(), q;
15011
+ E[k] = u(S[k], m, y);
15012
+ return A(), E;
15013
15013
  }
15014
15014
  function u(p, m, y) {
15015
15015
  const S = p.children;
15016
15016
  let k = -1;
15017
- const q = [], A = m.enter("tableRow");
15017
+ const E = [], A = m.enter("tableRow");
15018
15018
  for (; ++k < S.length; )
15019
- q[k] = s(S[k], p, m, y);
15020
- return A(), q;
15019
+ E[k] = s(S[k], p, m, y);
15020
+ return A(), E;
15021
15021
  }
15022
15022
  function d(p, m, y) {
15023
15023
  let S = Cc.inlineCode(p, m, y);
@@ -15027,8 +15027,8 @@ function Jy(e) {
15027
15027
  function Qy() {
15028
15028
  return {
15029
15029
  exit: {
15030
- taskListCheckValueChecked: Jl,
15031
- taskListCheckValueUnchecked: Jl,
15030
+ taskListCheckValueChecked: Ql,
15031
+ taskListCheckValueUnchecked: Ql,
15032
15032
  paragraph: ex
15033
15033
  }
15034
15034
  };
@@ -15039,7 +15039,7 @@ function Zy() {
15039
15039
  handlers: { listItem: tx }
15040
15040
  };
15041
15041
  }
15042
- function Jl(e) {
15042
+ function Ql(e) {
15043
15043
  const t = this.stack[this.stack.length - 2];
15044
15044
  t.type, t.checked = e.type === "taskListCheckValueChecked";
15045
15045
  }
@@ -15145,7 +15145,7 @@ function ax(e, t, n) {
15145
15145
  let o, l;
15146
15146
  return i;
15147
15147
  function i(u) {
15148
- return !Vo(u) || !Nc.call(r, r.previous) || Ai(r.events) ? n(u) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(u));
15148
+ return !Vo(u) || !Nc.call(r, r.previous) || Ei(r.events) ? n(u) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), a(u));
15149
15149
  }
15150
15150
  function a(u) {
15151
15151
  return Vo(u) ? (e.consume(u), a) : u === 64 ? (e.consume(u), s) : n(u);
@@ -15164,7 +15164,7 @@ function sx(e, t, n) {
15164
15164
  const r = this;
15165
15165
  return o;
15166
15166
  function o(i) {
15167
- return i !== 87 && i !== 119 || !Rc.call(r, r.previous) || Ai(r.events) ? n(i) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(ox, e.attempt(Ac, e.attempt(Ec, l), n), n)(i));
15167
+ return i !== 87 && i !== 119 || !Rc.call(r, r.previous) || Ei(r.events) ? n(i) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(ox, e.attempt(Ac, e.attempt(Ec, l), n), n)(i));
15168
15168
  }
15169
15169
  function l(i) {
15170
15170
  return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(i);
@@ -15175,7 +15175,7 @@ function cx(e, t, n) {
15175
15175
  let o = "", l = !1;
15176
15176
  return i;
15177
15177
  function i(u) {
15178
- return (u === 72 || u === 104) && Ic.call(r, r.previous) && !Ai(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), o += String.fromCodePoint(u), e.consume(u), a) : n(u);
15178
+ return (u === 72 || u === 104) && Ic.call(r, r.previous) && !Ei(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), o += String.fromCodePoint(u), e.consume(u), a) : n(u);
15179
15179
  }
15180
15180
  function a(u) {
15181
15181
  if (ze(u) && o.length < 5)
@@ -15270,7 +15270,7 @@ function Nc(e) {
15270
15270
  function Vo(e) {
15271
15271
  return e === 43 || e === 45 || e === 46 || e === 95 || Ne(e);
15272
15272
  }
15273
- function Ai(e) {
15273
+ function Ei(e) {
15274
15274
  let t = e.length, n = !1;
15275
15275
  for (; t--; ) {
15276
15276
  const r = e[t][1];
@@ -15673,10 +15673,10 @@ function _x(e, t, n) {
15673
15673
  return v === 58 ? (l += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(v), e.exit("tableDelimiterMarker"), k) : v === 45 ? (l += 1, k(v)) : v === null || Y(v) ? U(v) : H(v);
15674
15674
  }
15675
15675
  function k(v) {
15676
- return v === 45 ? (e.enter("tableDelimiterFiller"), q(v)) : H(v);
15676
+ return v === 45 ? (e.enter("tableDelimiterFiller"), E(v)) : H(v);
15677
15677
  }
15678
- function q(v) {
15679
- return v === 45 ? (e.consume(v), q) : v === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(v), e.exit("tableDelimiterMarker"), A) : (e.exit("tableDelimiterFiller"), A(v));
15678
+ function E(v) {
15679
+ return v === 45 ? (e.consume(v), E) : v === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(v), e.exit("tableDelimiterMarker"), A) : (e.exit("tableDelimiterFiller"), A(v));
15680
15680
  }
15681
15681
  function A(v) {
15682
15682
  return oe(v) ? se(e, U, "whitespace")(v) : U(v);
@@ -15705,7 +15705,7 @@ function Rx(e, t) {
15705
15705
  const d = new Ax();
15706
15706
  for (; ++n < e.length; ) {
15707
15707
  const p = e[n], m = p[1];
15708
- p[0] === "enter" ? m.type === "tableHead" ? (a = !1, s !== 0 && (Ql(d, t, s, c, f), f = void 0, s = 0), c = {
15708
+ p[0] === "enter" ? m.type === "tableHead" ? (a = !1, s !== 0 && (Zl(d, t, s, c, f), f = void 0, s = 0), c = {
15709
15709
  type: "table",
15710
15710
  start: Object.assign({}, m.start),
15711
15711
  // Note: correct end is set later.
@@ -15717,7 +15717,7 @@ function Rx(e, t) {
15717
15717
  end: Object.assign({}, m.end)
15718
15718
  }, d.add(n, 0, [["enter", f, t]])), o = m.type === "tableDelimiterRow" ? 2 : f ? 3 : 1) : o && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") ? (r = !1, i[2] === 0 && (l[1] !== 0 && (i[0] = i[1], u = hr(d, t, l, o, void 0, u), l = [0, 0, 0, 0]), i[2] = n)) : m.type === "tableCellDivider" && (r ? r = !1 : (l[1] !== 0 && (i[0] = i[1], u = hr(d, t, l, o, void 0, u)), l = i, i = [l[1], n, 0, 0])) : m.type === "tableHead" ? (a = !0, s = n) : m.type === "tableRow" || m.type === "tableDelimiterRow" ? (s = n, l[1] !== 0 ? (i[0] = i[1], u = hr(d, t, l, o, n, u)) : i[1] !== 0 && (u = hr(d, t, i, o, n, u)), o = 0) : o && (m.type === "data" || m.type === "tableDelimiterMarker" || m.type === "tableDelimiterFiller") && (i[3] = n);
15719
15719
  }
15720
- for (s !== 0 && Ql(d, t, s, c, f), d.consume(t.events), n = -1; ++n < t.events.length; ) {
15720
+ for (s !== 0 && Zl(d, t, s, c, f), d.consume(t.events), n = -1; ++n < t.events.length; ) {
15721
15721
  const p = t.events[n];
15722
15722
  p[0] === "enter" && p[1].type === "table" && (p[1]._align = qx(t.events, n));
15723
15723
  }
@@ -15749,7 +15749,7 @@ function hr(e, t, n, r, o, l) {
15749
15749
  }
15750
15750
  return o !== void 0 && (l.end = Object.assign({}, gn(t.events, o)), e.add(o, 0, [["exit", l, t]]), l = void 0), l;
15751
15751
  }
15752
- function Ql(e, t, n, r, o) {
15752
+ function Zl(e, t, n, r, o) {
15753
15753
  const l = [], i = gn(t.events, n);
15754
15754
  o && (o.end = Object.assign({}, i), l.push(["exit", o, t])), r.end = Object.assign({}, i), l.push(["exit", r, t]), e.add(n + 1, 0, l);
15755
15755
  }
@@ -15851,8 +15851,8 @@ function Bx() {
15851
15851
  return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
15852
15852
  }
15853
15853
  function Ux(e, t = !0) {
15854
- const [n, r] = be(0), o = ve(Bx());
15855
- return ct(() => {
15854
+ const [n, r] = be(0), o = xe(Bx());
15855
+ return ot(() => {
15856
15856
  if (!t || o.current) {
15857
15857
  r(e.length);
15858
15858
  return;
@@ -15891,7 +15891,7 @@ function $x([e, t, n]) {
15891
15891
  return 0.2126 * r(e) + 0.7152 * r(t) + 0.0722 * r(n);
15892
15892
  }
15893
15893
  const Wx = 1.2;
15894
- function Ei(e) {
15894
+ function qi(e) {
15895
15895
  if (!e) return "#000000";
15896
15896
  const t = Vx(e);
15897
15897
  if (!t) return "#000000";
@@ -15903,8 +15903,8 @@ const Lc = [
15903
15903
  "image/jpeg",
15904
15904
  "image/webp",
15905
15905
  "application/pdf"
15906
- ], Zl = 10 * 1024 * 1024, Wn = 5, Pc = "Couldn't send your files. Try again.", Gx = "s3://";
15907
- class ea extends Error {
15906
+ ], ea = 10 * 1024 * 1024, Wn = 5, Pc = "Couldn't send your files. Try again.", Gx = "s3://";
15907
+ class ta extends Error {
15908
15908
  constructor(t) {
15909
15909
  super(t), this.name = "NetworkError";
15910
15910
  }
@@ -15916,7 +15916,7 @@ class Jt extends Error {
15916
15916
  super(n), this.name = "ServerError", this.status = t, this.response = r;
15917
15917
  }
15918
15918
  }
15919
- const Yx = "x-elo-chat-token", ta = "x-elo-chat-token-renewed";
15919
+ const Yx = "x-elo-chat-token", na = "x-elo-chat-token-renewed";
15920
15920
  class zk {
15921
15921
  baseURL;
15922
15922
  appId;
@@ -15954,9 +15954,9 @@ class zk {
15954
15954
  }
15955
15955
  });
15956
15956
  } catch (i) {
15957
- throw i instanceof TypeError ? new ea(i.message) : i;
15957
+ throw i instanceof TypeError ? new ta(i.message) : i;
15958
15958
  }
15959
- const o = r.headers.get(ta);
15959
+ const o = r.headers.get(na);
15960
15960
  o && (this.chatToken = o);
15961
15961
  let l;
15962
15962
  try {
@@ -15993,10 +15993,10 @@ class zk {
15993
15993
  i.upload.addEventListener("progress", (a) => {
15994
15994
  a.lengthComputable && r(a.loaded / a.total);
15995
15995
  }), i.addEventListener("error", () => {
15996
- l(new ea("Upload failed"));
15996
+ l(new ta("Upload failed"));
15997
15997
  }), i.addEventListener("load", () => {
15998
15998
  const a = i.getResponseHeader(
15999
- ta
15999
+ na
16000
16000
  );
16001
16001
  if (a && (this.chatToken = a), i.status >= 200 && i.status < 300) {
16002
16002
  o(i.response);
@@ -16058,8 +16058,8 @@ function Kx(e, t) {
16058
16058
  r = `${o.name} can't be attached. Attach PNG, JPEG, WebP or PDF files.`;
16059
16059
  continue;
16060
16060
  }
16061
- if (o.size > Zl) {
16062
- r = `${o.name} is larger than ${Zl / (1024 * 1024)} MB.`;
16061
+ if (o.size > ea) {
16062
+ r = `${o.name} is larger than ${ea / (1024 * 1024)} MB.`;
16063
16063
  continue;
16064
16064
  }
16065
16065
  if (n.length >= Wn) {
@@ -16235,14 +16235,14 @@ function Bc({ name: e, progress: t }) {
16235
16235
  }
16236
16236
  );
16237
16237
  }
16238
- const iw = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:animate-thinking-dot eloq:motion-reduce:animate-none eloq:motion-reduce:opacity-70";
16239
- function na({
16238
+ const iw = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:motion-safe:animate-thinking-dot eloq:motion-reduce:opacity-70";
16239
+ function ra({
16240
16240
  messageData: e,
16241
16241
  isBot: t,
16242
16242
  isSibling: n
16243
16243
  }) {
16244
- const r = ti(), { onMessageClick: o, highlightedMessageId: l } = nn(), i = l != null && l === e.id, a = ve(null);
16245
- ct(() => {
16244
+ const r = ni(), { onMessageClick: o, highlightedMessageId: l } = nn(), i = l != null && l === e.id, a = xe(null);
16245
+ ot(() => {
16246
16246
  if (!i) return;
16247
16247
  const A = window.matchMedia?.(
16248
16248
  "(prefers-reduced-motion: reduce)"
@@ -16255,10 +16255,10 @@ function na({
16255
16255
  const s = ee({
16256
16256
  [r.botBubbleColor]: e.sender === "assistant",
16257
16257
  [r.userBubbleColor]: e.sender === "user"
16258
- }), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || Ei(s), u = e.attachments ?? [], d = e.type === "image" || e.content !== "" || u.length === 0, p = !!(t && e.isThinking), m = !!e.isRegenerating, y = ve(e.content), S = e.content !== y.current, k = Ux(
16258
+ }), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || qi(s), u = e.attachments ?? [], d = e.type === "image" || e.content !== "" || u.length === 0, p = !!(t && e.isThinking), m = !!e.isRegenerating, y = xe(e.content), S = e.content !== y.current, k = Ux(
16259
16259
  p ? e.content : "",
16260
16260
  p
16261
- ), q = () => p ? (
16261
+ ), E = () => p ? (
16262
16262
  // Hidden from assistive tech: an interstitial state, and its label
16263
16263
  // retypes itself character by character, which would otherwise be
16264
16264
  // read as a stream of fragments.
@@ -16266,7 +16266,7 @@ function na({
16266
16266
  "div",
16267
16267
  {
16268
16268
  "aria-hidden": !0,
16269
- className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in",
16269
+ className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in eloq:motion-reduce:animate-message-fade-in",
16270
16270
  children: [
16271
16271
  /* @__PURE__ */ w(
16272
16272
  "span",
@@ -16345,7 +16345,9 @@ function na({
16345
16345
  "typewriter prose eloq:text-left eloq-wrap-anywhere",
16346
16346
  {
16347
16347
  "eloq-regenerating-text": m,
16348
- "eloq:animate-text-in eloq:motion-reduce:animate-none": S && !m
16348
+ // Opacity only, so it stays under reduced motion like
16349
+ // the message fade.
16350
+ "eloq:animate-text-in": S && !m
16349
16351
  }
16350
16352
  ),
16351
16353
  children: /* @__PURE__ */ w(zx, { text: e.content })
@@ -16385,7 +16387,7 @@ function na({
16385
16387
  "eloq:max-w-[75%]": !t,
16386
16388
  "eloq:max-w-full": n
16387
16389
  }),
16388
- children: q()
16390
+ children: E()
16389
16391
  }
16390
16392
  )
16391
16393
  ]
@@ -16399,8 +16401,10 @@ const Uc = "eloq:p-4 eloq:flex eloq:flex-row eloq:items-center eloq:justify-betw
16399
16401
  }) => ee(
16400
16402
  "eloq:w-full eloq:h-full eloq:flex eloq:flex-col eloq:overflow-hidden eloq:origin-bottom-right",
16401
16403
  {
16402
- "eloq:animate-panel-in": e && !n,
16403
- "eloq:animate-panel-out": !e && !n,
16404
+ // Reduced motion swaps the grow/shrink from the corner for a plain
16405
+ // fade of the same length.
16406
+ "eloq:animate-panel-in eloq:motion-reduce:animate-panel-fade-in": e && !n,
16407
+ "eloq:animate-panel-out eloq:motion-reduce:animate-panel-fade-out": !e && !n,
16404
16408
  "eloq:scale-100 eloq:opacity-100": e && n,
16405
16409
  "eloq:scale-[0.05] eloq:opacity-0": !e && n,
16406
16410
  "eloq:rounded-none eloq:border-0": t,
@@ -16435,7 +16439,7 @@ function lw({
16435
16439
  children: [
16436
16440
  /* @__PURE__ */ w("div", { className: "eloq:flex eloq:items-center eloq:space-x-1 eloq:min-w-0", children: y && /* @__PURE__ */ K(zt, { children: [
16437
16441
  /* @__PURE__ */ w(
16438
- Ko,
16442
+ Jo,
16439
16443
  {
16440
16444
  className: S,
16441
16445
  bgColor: "#6F33B7",
@@ -16450,7 +16454,7 @@ function lw({
16450
16454
  }
16451
16455
  );
16452
16456
  }, d = () => Array.isArray(t) ? t.map((p) => /* @__PURE__ */ w(
16453
- na,
16457
+ ra,
16454
16458
  {
16455
16459
  messageData: p,
16456
16460
  isBot: l,
@@ -16459,7 +16463,7 @@ function lw({
16459
16463
  },
16460
16464
  p.id
16461
16465
  )) : /* @__PURE__ */ w(
16462
- na,
16466
+ ra,
16463
16467
  {
16464
16468
  messageData: t,
16465
16469
  isBot: l,
@@ -16471,7 +16475,8 @@ function lw({
16471
16475
  "div",
16472
16476
  {
16473
16477
  className: ee({
16474
- "eloq:animate-message-in": s,
16478
+ // Reduced motion keeps the fade but drops the slide.
16479
+ "eloq:animate-message-in eloq:motion-reduce:animate-message-fade-in": s,
16475
16480
  // The list spaces messages 16px apart. The thinking indicator is a
16476
16481
  // pending turn rather than a finished one, so pull it closer to the
16477
16482
  // message it is answering.
@@ -16504,7 +16509,7 @@ function cw({
16504
16509
  disabled: n = !1,
16505
16510
  label: r = "Rating"
16506
16511
  }) {
16507
- const o = Sa(), [l, i] = be(0), [a, s] = be(null), [c, f] = be({ value: e, disabled: n }), u = ve(!1);
16512
+ const o = Yo(), [l, i] = be(0), [a, s] = be(null), [c, f] = be({ value: e, disabled: n }), u = xe(!1);
16508
16513
  (e !== c.value || n !== c.disabled) && (f({ value: e, disabled: n }), s(null));
16509
16514
  const d = a ?? e, p = l || d, m = (y) => {
16510
16515
  s(null), t(y);
@@ -16606,8 +16611,8 @@ function uw({ onRate: e }) {
16606
16611
  ] }) });
16607
16612
  }
16608
16613
  function fw(e, t) {
16609
- const [n, r] = be(null), o = ve(null);
16610
- return ct(() => {
16614
+ const [n, r] = be(null), o = xe(null);
16615
+ return ot(() => {
16611
16616
  const l = (e ?? []).filter((d) => !d.isThinking), i = o.current, a = /* @__PURE__ */ new Map();
16612
16617
  for (const d of l) {
16613
16618
  const p = d.isRegenerating ? i?.get(d.id) : d.content;
@@ -16643,7 +16648,7 @@ function hw() {
16643
16648
  return Er(pw) ?? dw;
16644
16649
  }
16645
16650
  function mw() {
16646
- const e = nn(), t = hw(), n = ve(null), r = ve(!0), o = ve(0), [l, i] = be(!1), [a, s] = be(!1), c = fw(e.messages, n), f = (m) => m.scrollHeight - m.scrollTop <= m.clientHeight + 60, u = (m) => {
16651
+ const e = nn(), t = hw(), n = xe(null), r = xe(!0), o = xe(0), [l, i] = be(!1), [a, s] = be(!1), c = fw(e.messages, n), f = (m) => m.scrollHeight - m.scrollTop <= m.clientHeight + 60, u = (m) => {
16647
16652
  const y = m.target;
16648
16653
  f(y) ? (i(!1), s(!1)) : (i(!0), s(!0));
16649
16654
  }, d = va((m = "smooth") => {
@@ -16655,16 +16660,16 @@ function mw() {
16655
16660
  });
16656
16661
  }
16657
16662
  }, []);
16658
- ct(() => {
16663
+ ot(() => {
16659
16664
  const m = e.messages?.length ?? 0, y = m < o.current, S = m === o.current;
16660
16665
  o.current = m, r.current ? (d("instant"), r.current = !1) : y ? (i(!1), s(!1), d("instant")) : !a && !S && d();
16661
- }, [e.messages, a, d]), ct(() => {
16666
+ }, [e.messages, a, d]), ot(() => {
16662
16667
  if (!e.isChatClosed) return;
16663
16668
  const m = setTimeout(() => {
16664
16669
  d("smooth");
16665
16670
  }, 500);
16666
16671
  return () => clearTimeout(m);
16667
- }, [e.isChatClosed, d]), ct(() => {
16672
+ }, [e.isChatClosed, d]), ot(() => {
16668
16673
  const m = n.current?.querySelector(
16669
16674
  "div.chat-interface-body"
16670
16675
  );
@@ -16687,7 +16692,7 @@ function mw() {
16687
16692
  }
16688
16693
  ] : []
16689
16694
  ];
16690
- return /* @__PURE__ */ K(Zo, { className: "eloq:relative eloq:flex-grow eloq:p-0 eloq:pl-4 eloq:overflow-hidden", children: [
16695
+ return /* @__PURE__ */ K(ei, { className: "eloq:relative eloq:flex-grow eloq:p-0 eloq:pl-4 eloq:overflow-hidden", children: [
16691
16696
  /* @__PURE__ */ w(
16692
16697
  ys,
16693
16698
  {
@@ -16704,7 +16709,7 @@ function mw() {
16704
16709
  },
16705
16710
  k
16706
16711
  );
16707
- const q = e.suggestedMessages && !!e.suggestedMessageTexts?.length && !e.messages?.some((A) => A.sender === "user");
16712
+ const E = e.suggestedMessages && !!e.suggestedMessageTexts?.length && !e.messages?.some((A) => A.sender === "user");
16708
16713
  return /* @__PURE__ */ w(
16709
16714
  lw,
16710
16715
  {
@@ -16713,7 +16718,7 @@ function mw() {
16713
16718
  className: ee({
16714
16719
  "eloq:pt-4": y === 0,
16715
16720
  "eloq:pb-2": y >= S.length - 1,
16716
- "eloq:pb-14": q && y >= S.length - 1
16721
+ "eloq:pb-14": E && y >= S.length - 1
16717
16722
  }),
16718
16723
  assistantLogo: e.assistantLogo
16719
16724
  },
@@ -16743,7 +16748,7 @@ function mw() {
16743
16748
  ] });
16744
16749
  }
16745
16750
  /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
16746
- function ra(e, t) {
16751
+ function oa(e, t) {
16747
16752
  (t == null || t > e.length) && (t = e.length);
16748
16753
  for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
16749
16754
  return r;
@@ -16779,12 +16784,12 @@ function xw(e, t) {
16779
16784
  }
16780
16785
  function ww(e, t) {
16781
16786
  if (e) {
16782
- if (typeof e == "string") return ra(e, t);
16787
+ if (typeof e == "string") return oa(e, t);
16783
16788
  var n = {}.toString.call(e).slice(8, -1);
16784
- return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ra(e, t) : void 0;
16789
+ return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? oa(e, t) : void 0;
16785
16790
  }
16786
16791
  }
16787
- const $c = Object.entries, oa = Object.setPrototypeOf, kw = Object.isFrozen, Wc = Object.getPrototypeOf, Gc = Object.getOwnPropertyDescriptor;
16792
+ const $c = Object.entries, ia = Object.setPrototypeOf, kw = Object.isFrozen, Wc = Object.getPrototypeOf, Gc = Object.getOwnPropertyDescriptor;
16788
16793
  let qe = Object.freeze, Ie = Object.seal, bn = Object.create, Yc = typeof Reflect < "u" && Reflect, $o = Yc.apply, Wo = Yc.construct;
16789
16794
  qe || (qe = function(t) {
16790
16795
  return t;
@@ -16800,7 +16805,7 @@ Wo || (Wo = function(t) {
16800
16805
  for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
16801
16806
  return new t(...r);
16802
16807
  });
16803
- const kt = ge(Array.prototype.forEach), Sw = ge(Array.prototype.lastIndexOf), ia = ge(Array.prototype.pop), Pn = ge(Array.prototype.push), vw = ge(Array.prototype.slice), Cw = ge(Array.prototype.splice), yn = Array.isArray, mo = Xc(Set), go = ge(Set.prototype.add), Dn = ge(Set.prototype.has), Kt = ge(String.prototype.toLowerCase), bo = ge(String.prototype.toString), la = ge(String.prototype.match), Mn = ge(String.prototype.replace), aa = ge(String.prototype.indexOf), Aw = ge(String.prototype.trim), Ew = ge(Number.prototype.toString), qw = ge(Boolean.prototype.toString), sa = typeof BigInt > "u" ? null : ge(BigInt.prototype.toString), ca = typeof Symbol > "u" ? null : ge(Symbol.prototype.toString), je = ge(Object.prototype.hasOwnProperty), On = ge(Object.prototype.toString), Re = ge(RegExp.prototype.test), St = Xc(TypeError);
16808
+ const kt = ge(Array.prototype.forEach), Sw = ge(Array.prototype.lastIndexOf), la = ge(Array.prototype.pop), Pn = ge(Array.prototype.push), vw = ge(Array.prototype.slice), Cw = ge(Array.prototype.splice), yn = Array.isArray, mo = Xc(Set), go = ge(Set.prototype.add), Dn = ge(Set.prototype.has), Kt = ge(String.prototype.toLowerCase), bo = ge(String.prototype.toString), aa = ge(String.prototype.match), Mn = ge(String.prototype.replace), sa = ge(String.prototype.indexOf), Aw = ge(String.prototype.trim), Ew = ge(Number.prototype.toString), qw = ge(Boolean.prototype.toString), ca = typeof BigInt > "u" ? null : ge(BigInt.prototype.toString), ua = typeof Symbol > "u" ? null : ge(Symbol.prototype.toString), je = ge(Object.prototype.hasOwnProperty), On = ge(Object.prototype.toString), Re = ge(RegExp.prototype.test), St = Xc(TypeError);
16804
16809
  function ge(e) {
16805
16810
  return function(t) {
16806
16811
  t instanceof RegExp && (t.lastIndex = 0);
@@ -16816,7 +16821,7 @@ function Xc(e) {
16816
16821
  }
16817
16822
  function ce(e, t) {
16818
16823
  let n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : Kt;
16819
- if (oa && oa(e, null), !yn(t)) return e;
16824
+ if (ia && ia(e, null), !yn(t)) return e;
16820
16825
  let r = t.length;
16821
16826
  for (; r--; ) {
16822
16827
  let o = t[r];
@@ -16850,9 +16855,9 @@ function _w(e) {
16850
16855
  case "boolean":
16851
16856
  return qw(e);
16852
16857
  case "bigint":
16853
- return sa ? sa(e) : "0";
16858
+ return ca ? ca(e) : "0";
16854
16859
  case "symbol":
16855
- return ca ? ca(e) : "Symbol()";
16860
+ return ua ? ua(e) : "Symbol()";
16856
16861
  case "undefined":
16857
16862
  return On(e);
16858
16863
  case "function":
@@ -16898,7 +16903,7 @@ function Iw(e) {
16898
16903
  return !1;
16899
16904
  }
16900
16905
  }
16901
- const ua = qe([
16906
+ const fa = qe([
16902
16907
  "a",
16903
16908
  "abbr",
16904
16909
  "acronym",
@@ -17162,7 +17167,7 @@ const ua = qe([
17162
17167
  "annotation-xml",
17163
17168
  "mprescripts",
17164
17169
  "none"
17165
- ]), fa = qe(["#text"]), pa = qe([
17170
+ ]), pa = qe(["#text"]), da = qe([
17166
17171
  "accept",
17167
17172
  "action",
17168
17173
  "align",
@@ -17474,7 +17479,7 @@ const ua = qe([
17474
17479
  "y2",
17475
17480
  "z",
17476
17481
  "zoomandpan"
17477
- ]), da = qe([
17482
+ ]), ha = qe([
17478
17483
  "accent",
17479
17484
  "accentunder",
17480
17485
  "align",
@@ -17535,7 +17540,7 @@ const ua = qe([
17535
17540
  "xlink:title",
17536
17541
  "xml:space",
17537
17542
  "xmlns:xlink"
17538
- ]), Pw = Ie(/{{[\w\W]*|^[\w\W]*}}/g), Dw = Ie(/<%[\w\W]*|^[\w\W]*%>/g), Mw = Ie(/\${[\w\W]*/g), Ow = Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/), zw = Ie(/^aria-[\-\w]+$/), ha = Ie(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Fw = Ie(/^(?:\w+script|data):/i), Bw = Ie(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Uw = Ie(/^html$/i), Hw = Ie(/^[a-z][.\w]*(-[.\w]+)+$/i), So = Ie(/<[/\w!]/g), ma = Ie(/<[/\w]/g), jw = Ie(/<\/no(script|embed|frames)/i), ga = Ie(/\/>/i), xe = {
17543
+ ]), Pw = Ie(/{{[\w\W]*|^[\w\W]*}}/g), Dw = Ie(/<%[\w\W]*|^[\w\W]*%>/g), Mw = Ie(/\${[\w\W]*/g), Ow = Ie(/^data-[\-\w.\u00B7-\uFFFF]+$/), zw = Ie(/^aria-[\-\w]+$/), ma = Ie(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Fw = Ie(/^(?:\w+script|data):/i), Bw = Ie(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Uw = Ie(/^html$/i), Hw = Ie(/^[a-z][.\w]*(-[.\w]+)+$/i), So = Ie(/<[/\w!]/g), ga = Ie(/<[/\w]/g), jw = Ie(/<\/no(script|embed|frames)/i), ba = Ie(/\/>/i), we = {
17539
17544
  element: 1,
17540
17545
  attribute: 2,
17541
17546
  text: 3,
@@ -17577,7 +17582,7 @@ const ua = qe([
17577
17582
  } catch {
17578
17583
  return console.warn("TrustedTypes policy " + l + " could not be created."), null;
17579
17584
  }
17580
- }, ba = function() {
17585
+ }, ya = function() {
17581
17586
  return {
17582
17587
  afterSanitizeAttributes: [],
17583
17588
  afterSanitizeElements: [],
@@ -17598,14 +17603,14 @@ const ua = qe([
17598
17603
  function Kc() {
17599
17604
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : $w();
17600
17605
  const t = (R) => Kc(R);
17601
- if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== xe.document || !e.Element)
17606
+ if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== we.document || !e.Element)
17602
17607
  return t.isSupported = !1, t;
17603
17608
  let n = e.document;
17604
17609
  const r = n, o = r.currentScript;
17605
17610
  e.DocumentFragment;
17606
17611
  const l = e.HTMLTemplateElement, i = e.Node, a = e.Element, s = e.NodeFilter;
17607
17612
  e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
17608
- const c = e.DOMParser, f = e.trustedTypes, u = a.prototype, d = tt(u, "cloneNode"), p = tt(u, "remove"), m = tt(u, "removeAttributeNode"), y = tt(u, "nextSibling"), S = tt(u, "childNodes"), k = tt(u, "parentNode"), q = tt(u, "shadowRoot"), A = tt(u, "attributes"), U = i && i.prototype ? tt(i.prototype, "nodeType") : null, H = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, D = function(h) {
17613
+ const c = e.DOMParser, f = e.trustedTypes, u = a.prototype, d = tt(u, "cloneNode"), p = tt(u, "remove"), m = tt(u, "removeAttributeNode"), y = tt(u, "nextSibling"), S = tt(u, "childNodes"), k = tt(u, "parentNode"), E = tt(u, "shadowRoot"), A = tt(u, "attributes"), U = i && i.prototype ? tt(i.prototype, "nodeType") : null, H = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, D = function(h) {
17609
17614
  return U ? U(h) : h.nodeType;
17610
17615
  }, I = function(h) {
17611
17616
  return H ? H(h) : h.nodeName;
@@ -17636,22 +17641,22 @@ function Kc() {
17636
17641
  }, Pe = function() {
17637
17642
  return $ || (re = Ww(f, o), $ = !0), re;
17638
17643
  }, g = n, Ae = g.implementation, De = g.createNodeIterator, b = g.createDocumentFragment, _e = g.getElementsByTagName, me = r.importNode;
17639
- let j = ba();
17644
+ let j = ya();
17640
17645
  t.isSupported = typeof $c == "function" && typeof k == "function" && Ae && Ae.createHTMLDocument !== void 0;
17641
- const Je = Pw, We = Dw, ue = Mw, it = Ow, lt = zw, Tt = Fw, _t = Bw, Rt = Hw;
17642
- let vn = ha, fe = null;
17646
+ const Je = Pw, We = Dw, ue = Mw, lt = Ow, at = zw, Tt = Fw, _t = Bw, Rt = Hw;
17647
+ let vn = ma, fe = null;
17643
17648
  const on = ce({}, [
17644
- ...ua,
17649
+ ...fa,
17645
17650
  ...yo,
17646
17651
  ...xo,
17647
17652
  ...wo,
17648
- ...fa
17653
+ ...pa
17649
17654
  ]);
17650
17655
  let he = null;
17651
17656
  const ln = ce({}, [
17652
- ...pa,
17653
- ...ko,
17654
17657
  ...da,
17658
+ ...ko,
17659
+ ...ha,
17655
17660
  ...mr
17656
17661
  ]);
17657
17662
  let Ge = Object.seal(bn(null, {
@@ -17688,10 +17693,10 @@ function Kc() {
17688
17693
  value: null
17689
17694
  }
17690
17695
  }));
17691
- let er = !0, Cn = !0, E = !1, O = !0, G = !1, Z = !0, le = !1, Me = !1, Qe = null, Fe = null, xt = !1, Ze = !1, Ee = !1, at = !1, et = !0, qi = !1;
17692
- const Ti = "user-content-";
17696
+ let er = !0, Cn = !0, q = !1, O = !0, G = !1, Z = !0, le = !1, Me = !1, Qe = null, Fe = null, xt = !1, Ze = !1, Ee = !1, st = !1, et = !0, Ti = !1;
17697
+ const _i = "user-content-";
17693
17698
  let Lr = !0, Pr = !1, Vt = null, an = {}, $t = null;
17694
- const _i = ce({}, [
17699
+ const Ri = ce({}, [
17695
17700
  "annotation-xml",
17696
17701
  "audio",
17697
17702
  "colgroup",
@@ -17719,8 +17724,8 @@ function Kc() {
17719
17724
  "video",
17720
17725
  "xmp"
17721
17726
  ]);
17722
- let Ri = null;
17723
- const Ii = ce({}, [
17727
+ let Ii = null;
17728
+ const Ni = ce({}, [
17724
17729
  "audio",
17725
17730
  "video",
17726
17731
  "img",
@@ -17728,8 +17733,8 @@ function Kc() {
17728
17733
  "image",
17729
17734
  "track"
17730
17735
  ]);
17731
- let Ni = null;
17732
- const Li = ce({}, [
17736
+ let Li = null;
17737
+ const Pi = ce({}, [
17733
17738
  "alt",
17734
17739
  "class",
17735
17740
  "for",
@@ -17750,16 +17755,16 @@ function Kc() {
17750
17755
  tr,
17751
17756
  nr,
17752
17757
  dt
17753
- ], bo), Pi = qe([
17758
+ ], bo), Di = qe([
17754
17759
  "mi",
17755
17760
  "mo",
17756
17761
  "mn",
17757
17762
  "ms",
17758
17763
  "mtext"
17759
17764
  ]);
17760
- let Or = ce({}, Pi);
17761
- const Di = qe(["annotation-xml"]);
17762
- let zr = ce({}, Di);
17765
+ let Or = ce({}, Di);
17766
+ const Mi = qe(["annotation-xml"]);
17767
+ let zr = ce({}, Mi);
17763
17768
  const au = ce({}, [
17764
17769
  "title",
17765
17770
  "style",
@@ -17770,20 +17775,20 @@ function Kc() {
17770
17775
  let An = null;
17771
17776
  const su = ["application/xhtml+xml", "text/html"], cu = "text/html";
17772
17777
  let ye = null, cn = null;
17773
- const uu = n.createElement("form"), Mi = function(h) {
17778
+ const uu = n.createElement("form"), Oi = function(h) {
17774
17779
  return h instanceof RegExp || h instanceof Function;
17775
17780
  }, Fr = function() {
17776
17781
  let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
17777
17782
  if (cn && cn === h) return;
17778
- (!h || typeof h != "object") && (h = {}), h = Xe(h), An = su.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? cu : h.PARSER_MEDIA_TYPE, ye = An === "application/xhtml+xml" ? bo : Kt, fe = Dt(h, "ALLOWED_TAGS", on, { transform: ye }), he = Dt(h, "ALLOWED_ATTR", ln, { transform: ye }), Mr = Dt(h, "ALLOWED_NAMESPACES", lu, { transform: bo }), Ni = Dt(h, "ADD_URI_SAFE_ATTR", Li, {
17783
+ (!h || typeof h != "object") && (h = {}), h = Xe(h), An = su.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? cu : h.PARSER_MEDIA_TYPE, ye = An === "application/xhtml+xml" ? bo : Kt, fe = Dt(h, "ALLOWED_TAGS", on, { transform: ye }), he = Dt(h, "ALLOWED_ATTR", ln, { transform: ye }), Mr = Dt(h, "ALLOWED_NAMESPACES", lu, { transform: bo }), Li = Dt(h, "ADD_URI_SAFE_ATTR", Pi, {
17779
17784
  transform: ye,
17780
- base: Li
17781
- }), Ri = Dt(h, "ADD_DATA_URI_TAGS", Ii, {
17785
+ base: Pi
17786
+ }), Ii = Dt(h, "ADD_DATA_URI_TAGS", Ni, {
17782
17787
  transform: ye,
17783
- base: Ii
17784
- }), $t = Dt(h, "FORBID_CONTENTS", _i, { transform: ye }), jt = Dt(h, "FORBID_TAGS", Xe({}), { transform: ye }), Zn = Dt(h, "FORBID_ATTR", Xe({}), { transform: ye }), an = je(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Xe(h.USE_PROFILES) : h.USE_PROFILES : !1, er = h.ALLOW_ARIA_ATTR !== !1, Cn = h.ALLOW_DATA_ATTR !== !1, E = h.ALLOW_UNKNOWN_PROTOCOLS || !1, O = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1, Z = h.SAFE_FOR_XML !== !1, le = h.WHOLE_DOCUMENT || !1, Ze = h.RETURN_DOM || !1, Ee = h.RETURN_DOM_FRAGMENT || !1, at = h.RETURN_TRUSTED_TYPE || !1, xt = h.FORCE_BODY || !1, et = h.SANITIZE_DOM !== !1, qi = h.SANITIZE_NAMED_PROPS || !1, Lr = h.KEEP_CONTENT !== !1, Pr = h.IN_PLACE || !1, vn = Iw(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : ha, sn = typeof h.NAMESPACE == "string" ? h.NAMESPACE : dt, Or = vo(h, "MATHML_TEXT_INTEGRATION_POINTS", () => ce({}, Pi)), zr = vo(h, "HTML_INTEGRATION_POINTS", () => ce({}, Di));
17788
+ base: Ni
17789
+ }), $t = Dt(h, "FORBID_CONTENTS", Ri, { transform: ye }), jt = Dt(h, "FORBID_TAGS", Xe({}), { transform: ye }), Zn = Dt(h, "FORBID_ATTR", Xe({}), { transform: ye }), an = je(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Xe(h.USE_PROFILES) : h.USE_PROFILES : !1, er = h.ALLOW_ARIA_ATTR !== !1, Cn = h.ALLOW_DATA_ATTR !== !1, q = h.ALLOW_UNKNOWN_PROTOCOLS || !1, O = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1, Z = h.SAFE_FOR_XML !== !1, le = h.WHOLE_DOCUMENT || !1, Ze = h.RETURN_DOM || !1, Ee = h.RETURN_DOM_FRAGMENT || !1, st = h.RETURN_TRUSTED_TYPE || !1, xt = h.FORCE_BODY || !1, et = h.SANITIZE_DOM !== !1, Ti = h.SANITIZE_NAMED_PROPS || !1, Lr = h.KEEP_CONTENT !== !1, Pr = h.IN_PLACE || !1, vn = Iw(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : ma, sn = typeof h.NAMESPACE == "string" ? h.NAMESPACE : dt, Or = vo(h, "MATHML_TEXT_INTEGRATION_POINTS", () => ce({}, Di)), zr = vo(h, "HTML_INTEGRATION_POINTS", () => ce({}, Mi));
17785
17790
  const x = vo(h, "CUSTOM_ELEMENT_HANDLING", () => bn(null));
17786
- if (Ge = bn(null), je(x, "tagNameCheck") && Mi(x.tagNameCheck) && (Ge.tagNameCheck = x.tagNameCheck), je(x, "attributeNameCheck") && Mi(x.attributeNameCheck) && (Ge.attributeNameCheck = x.attributeNameCheck), je(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (Ge.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), Ie(Ge), G && (Cn = !1), Ee && (Ze = !0), an && (fe = ce({}, fa), he = bn(null), an.html === !0 && (ce(fe, ua), ce(he, pa)), an.svg === !0 && (ce(fe, yo), ce(he, ko), ce(he, mr)), an.svgFilters === !0 && (ce(fe, xo), ce(he, ko), ce(he, mr)), an.mathMl === !0 && (ce(fe, wo), ce(he, da), ce(he, mr))), pt.tagCheck = null, pt.attributeCheck = null, je(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? pt.tagCheck = h.ADD_TAGS : yn(h.ADD_TAGS) && (fe === on && (fe = Xe(fe)), ce(fe, h.ADD_TAGS, ye))), je(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? pt.attributeCheck = h.ADD_ATTR : yn(h.ADD_ATTR) && (he === ln && (he = Xe(he)), ce(he, h.ADD_ATTR, ye))), je(h, "ADD_FORBID_CONTENTS") && yn(h.ADD_FORBID_CONTENTS) && ($t === _i && ($t = Xe($t)), ce($t, h.ADD_FORBID_CONTENTS, ye)), Lr && (fe["#text"] = !0), le && ce(fe, [
17791
+ if (Ge = bn(null), je(x, "tagNameCheck") && Oi(x.tagNameCheck) && (Ge.tagNameCheck = x.tagNameCheck), je(x, "attributeNameCheck") && Oi(x.attributeNameCheck) && (Ge.attributeNameCheck = x.attributeNameCheck), je(x, "allowCustomizedBuiltInElements") && typeof x.allowCustomizedBuiltInElements == "boolean" && (Ge.allowCustomizedBuiltInElements = x.allowCustomizedBuiltInElements), Ie(Ge), G && (Cn = !1), Ee && (Ze = !0), an && (fe = ce({}, pa), he = bn(null), an.html === !0 && (ce(fe, fa), ce(he, da)), an.svg === !0 && (ce(fe, yo), ce(he, ko), ce(he, mr)), an.svgFilters === !0 && (ce(fe, xo), ce(he, ko), ce(he, mr)), an.mathMl === !0 && (ce(fe, wo), ce(he, ha), ce(he, mr))), pt.tagCheck = null, pt.attributeCheck = null, je(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? pt.tagCheck = h.ADD_TAGS : yn(h.ADD_TAGS) && (fe === on && (fe = Xe(fe)), ce(fe, h.ADD_TAGS, ye))), je(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? pt.attributeCheck = h.ADD_ATTR : yn(h.ADD_ATTR) && (he === ln && (he = Xe(he)), ce(he, h.ADD_ATTR, ye))), je(h, "ADD_FORBID_CONTENTS") && yn(h.ADD_FORBID_CONTENTS) && ($t === Ri && ($t = Xe($t)), ce($t, h.ADD_FORBID_CONTENTS, ye)), Lr && (fe["#text"] = !0), le && ce(fe, [
17787
17792
  "html",
17788
17793
  "head",
17789
17794
  "body"
@@ -17799,20 +17804,20 @@ function Kc() {
17799
17804
  }
17800
17805
  } else h.TRUSTED_TYPES_POLICY === null ? (P = void 0, z = "") : (P === void 0 && (P = Pe()), P && typeof z == "string" && (z = ae("")));
17801
17806
  qe && qe(h), cn = h;
17802
- }, Oi = ce({}, [
17807
+ }, zi = ce({}, [
17803
17808
  ...yo,
17804
17809
  ...xo,
17805
17810
  ...Nw
17806
- ]), zi = ce({}, [...wo, ...Lw]), fu = function(h, x, T) {
17807
- return x.namespaceURI === dt ? h === "svg" : x.namespaceURI === tr ? h === "svg" && (T === "annotation-xml" || Or[T]) : !!Oi[h];
17811
+ ]), Fi = ce({}, [...wo, ...Lw]), fu = function(h, x, T) {
17812
+ return x.namespaceURI === dt ? h === "svg" : x.namespaceURI === tr ? h === "svg" && (T === "annotation-xml" || Or[T]) : !!zi[h];
17808
17813
  }, pu = function(h, x, T) {
17809
- return x.namespaceURI === dt ? h === "math" : x.namespaceURI === nr ? h === "math" && zr[T] : !!zi[h];
17814
+ return x.namespaceURI === dt ? h === "math" : x.namespaceURI === nr ? h === "math" && zr[T] : !!Fi[h];
17810
17815
  }, du = function(h, x, T) {
17811
- return x.namespaceURI === nr && !zr[T] || x.namespaceURI === tr && !Or[T] ? !1 : !zi[h] && (au[h] || !Oi[h]);
17816
+ return x.namespaceURI === nr && !zr[T] || x.namespaceURI === tr && !Or[T] ? !1 : !Fi[h] && (au[h] || !zi[h]);
17812
17817
  }, hu = function(h) {
17813
17818
  const x = v(h), T = Kt(I(h)), _ = k(h);
17814
17819
  let W, X;
17815
- return _ && D(_) === xe.element ? (W = { namespaceURI: v(_) }, X = Kt(I(_))) : (W = { namespaceURI: sn }, X = "template"), Mr[x] ? x === nr ? fu(T, W, X) : x === tr ? pu(T, W, X) : x === dt ? du(T, W, X) : !!(An === "application/xhtml+xml" && Mr[x]) : !1;
17820
+ return _ && D(_) === we.element ? (W = { namespaceURI: v(_) }, X = Kt(I(_))) : (W = { namespaceURI: sn }, X = "template"), Mr[x] ? x === nr ? fu(T, W, X) : x === tr ? pu(T, W, X) : x === dt ? du(T, W, X) : !!(An === "application/xhtml+xml" && Mr[x]) : !1;
17816
17821
  }, It = function(h) {
17817
17822
  Pn(t.removed, { element: h });
17818
17823
  try {
@@ -17820,7 +17825,7 @@ function Kc() {
17820
17825
  } catch {
17821
17826
  if (p(h), !k(h)) throw St("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
17822
17827
  }
17823
- }, Fi = function(h, x, T) {
17828
+ }, Bi = function(h, x, T) {
17824
17829
  try {
17825
17830
  m(h, x);
17826
17831
  } catch {
@@ -17838,10 +17843,10 @@ function Kc() {
17838
17843
  } catch {
17839
17844
  }
17840
17845
  });
17841
- const T = D(h) === xe.element ? A(h) : null;
17846
+ const T = D(h) === we.element ? A(h) : null;
17842
17847
  if (T) for (let _ = T.length - 1; _ >= 0; --_) {
17843
17848
  const W = T[_], X = W && W.name;
17844
- typeof X == "string" && Fi(h, W, X);
17849
+ typeof X == "string" && Bi(h, W, X);
17845
17850
  }
17846
17851
  }, un = function(h, x, T) {
17847
17852
  if (!T) try {
@@ -17870,12 +17875,12 @@ function Kc() {
17870
17875
  x.setAttribute(h, "");
17871
17876
  } catch {
17872
17877
  }
17873
- }, Bi = function(h) {
17878
+ }, Ui = function(h) {
17874
17879
  const x = A(h);
17875
17880
  if (x)
17876
17881
  for (let T = x.length - 1; T >= 0; --T) {
17877
17882
  const _ = x[T], W = _ && _.name;
17878
- typeof W != "string" || he[ye(W)] || Fi(h, _, W);
17883
+ typeof W != "string" || he[ye(W)] || Bi(h, _, W);
17879
17884
  }
17880
17885
  }, Ur = function(h, x) {
17881
17886
  let T = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : !1;
@@ -17883,8 +17888,8 @@ function Kc() {
17883
17888
  for (; _.length > 0; ) {
17884
17889
  const W = _.pop();
17885
17890
  if (x(W) === !1) continue;
17886
- if (T && D(W) === xe.element) {
17887
- const ne = q(W);
17891
+ if (T && D(W) === we.element) {
17892
+ const ne = E(W);
17888
17893
  Nt(ne) && _.push(ne);
17889
17894
  }
17890
17895
  const X = S(W);
@@ -17892,7 +17897,7 @@ function Kc() {
17892
17897
  }
17893
17898
  }, Hr = function(h) {
17894
17899
  Ur(h, (x) => {
17895
- D(x) === xe.element && Bi(x);
17900
+ D(x) === we.element && Ui(x);
17896
17901
  });
17897
17902
  }, jr = function(h) {
17898
17903
  const x = [];
@@ -17902,11 +17907,11 @@ function Kc() {
17902
17907
  }, mu = function(h, x) {
17903
17908
  const T = mo();
17904
17909
  kt(jr(h), (_) => {
17905
- D(_) === xe.element && go(T, _);
17910
+ D(_) === we.element && go(T, _);
17906
17911
  }), kt(x, (_) => {
17907
- D(_) === xe.element && !Dn(T, _) && Bi(_);
17912
+ D(_) === we.element && !Dn(T, _) && Ui(_);
17908
17913
  });
17909
- }, Ui = function(h, x) {
17914
+ }, Hi = function(h, x) {
17910
17915
  let T = !1;
17911
17916
  return kt(t.removed, (_) => {
17912
17917
  _.element && (T = T || _.element === h, Hr(_.element));
@@ -17918,13 +17923,13 @@ function Kc() {
17918
17923
  go(_, X);
17919
17924
  })), _);
17920
17925
  for (let X = 0; ; X++) {
17921
- const ne = jr(h), ke = [h];
17926
+ const ne = jr(h), Se = [h];
17922
17927
  let ht = !1;
17923
17928
  if (kt(ne, (Oe) => {
17924
- D(Oe) === xe.documentFragment ? Pn(ke, Oe) : !ht && !Dn(T, Oe) && (ht = Dn(W(), Oe));
17929
+ D(Oe) === we.documentFragment ? Pn(Se, Oe) : !ht && !Dn(T, Oe) && (ht = Dn(W(), Oe));
17925
17930
  }), !ht) return;
17926
17931
  if (X >= gu) throw St("the tree kept changing during in-place sanitization; refusing to return it");
17927
- kt(ke, (Oe, Be) => {
17932
+ kt(Se, (Oe, Be) => {
17928
17933
  yu(Oe, Be > 0, h, W());
17929
17934
  });
17930
17935
  }
@@ -17932,35 +17937,35 @@ function Kc() {
17932
17937
  const W = Vr(h);
17933
17938
  let X;
17934
17939
  for (; X = W.nextNode(); )
17935
- !Dn(_, X) || Dn(Vt, X) || (x && st(j.uponSanitizeShadowNode, X, null), Wr(X, T), Gr(X, T), Nt(X.content) && qn(X.content));
17940
+ !Dn(_, X) || Dn(Vt, X) || (x && ct(j.uponSanitizeShadowNode, X, null), Wr(X, T), Gr(X, T), Nt(X.content) && qn(X.content));
17936
17941
  }, xu = function(h) {
17937
17942
  Vt && go(Vt, h);
17938
- }, Hi = function(h, x) {
17943
+ }, ji = function(h, x) {
17939
17944
  return Z ? h === "patchsrc" ? !0 : h === "for" && x !== "label" && x !== "output" : !1;
17940
17945
  }, wu = function(h) {
17941
17946
  Z && Ur(h, (x) => {
17942
17947
  const T = D(x);
17943
- if (T === xe.processingInstruction || T === xe.comment && Re(ma, x.data)) {
17948
+ if (T === we.processingInstruction || T === we.comment && Re(ga, x.data)) {
17944
17949
  try {
17945
17950
  p(x);
17946
17951
  } catch {
17947
17952
  }
17948
17953
  return !1;
17949
17954
  }
17950
- if (T === xe.element) {
17955
+ if (T === we.element) {
17951
17956
  const _ = x, W = ye(I(x));
17952
17957
  try {
17953
- _.hasAttribute && _.hasAttribute("patchsrc") && _.removeAttribute("patchsrc"), _.hasAttribute && _.hasAttribute("for") && Hi("for", W) && _.removeAttribute("for");
17958
+ _.hasAttribute && _.hasAttribute("patchsrc") && _.removeAttribute("patchsrc"), _.hasAttribute && _.hasAttribute("for") && ji("for", W) && _.removeAttribute("for");
17954
17959
  } catch {
17955
17960
  }
17956
17961
  }
17957
17962
  return !0;
17958
17963
  });
17959
- }, ji = function(h) {
17964
+ }, Vi = function(h) {
17960
17965
  let x = null, T = null;
17961
17966
  if (xt) h = "<remove></remove>" + h;
17962
17967
  else {
17963
- const X = la(h, /^[\r\n\t ]+/);
17968
+ const X = aa(h, /^[\r\n\t ]+/);
17964
17969
  T = X && X[0];
17965
17970
  }
17966
17971
  An === "application/xhtml+xml" && sn === dt && (h = '<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>' + h + "</body></html>");
@@ -17985,12 +17990,12 @@ function Kc() {
17985
17990
  return h = Mn(h, Je, " "), h = Mn(h, We, " "), h = Mn(h, ue, " "), h;
17986
17991
  }, $r = function(h) {
17987
17992
  var x;
17988
- Vi(h);
17993
+ $i(h);
17989
17994
  const T = (x = h.querySelectorAll) === null || x === void 0 ? void 0 : x.call(h, "template");
17990
17995
  T && kt(T, (_) => {
17991
17996
  Nt(_.content) && $r(_.content);
17992
17997
  });
17993
- }, Vi = function(h) {
17998
+ }, $i = function(h) {
17994
17999
  h.normalize();
17995
18000
  const x = C ? C(h) : h.ownerDocument, T = De.call(x || h, h, s.SHOW_TEXT | s.SHOW_COMMENT | s.SHOW_CDATA_SECTION | s.SHOW_PROCESSING_INSTRUCTION, null);
17996
18001
  let _ = T.nextNode();
@@ -18002,7 +18007,7 @@ function Kc() {
18002
18007
  }, Nt = function(h) {
18003
18008
  if (!U || typeof h != "object" || h === null) return !1;
18004
18009
  try {
18005
- return U(h) === xe.documentFragment;
18010
+ return U(h) === we.documentFragment;
18006
18011
  } catch {
18007
18012
  return !1;
18008
18013
  }
@@ -18014,13 +18019,13 @@ function Kc() {
18014
18019
  return !1;
18015
18020
  }
18016
18021
  };
18017
- function st(R, h, x) {
18022
+ function ct(R, h, x) {
18018
18023
  R.length !== 0 && kt(R, (T) => {
18019
18024
  T.call(t, h, x, cn);
18020
18025
  });
18021
18026
  }
18022
18027
  const ku = function(h, x) {
18023
- return !!(Z && h.hasChildNodes() && !En(h.firstElementChild) && Re(So, h.textContent) && Re(So, h.innerHTML) || Z && Vw[x] && D(h) === xe.element && v(h) === dt && (En(h.firstElementChild) || typeof h.textContent == "string" && Re(So, h.textContent)) || h.nodeType === xe.processingInstruction || Z && h.nodeType === xe.comment && Re(ma, h.data));
18028
+ return !!(Z && h.hasChildNodes() && !En(h.firstElementChild) && Re(So, h.textContent) && Re(So, h.innerHTML) || Z && Vw[x] && D(h) === we.element && v(h) === dt && (En(h.firstElementChild) || typeof h.textContent == "string" && Re(So, h.textContent)) || h.nodeType === we.processingInstruction || Z && h.nodeType === we.comment && Re(ga, h.data));
18024
18029
  }, ir = function(h, x) {
18025
18030
  if (h instanceof RegExp) return Re(h, x);
18026
18031
  if (h instanceof Function) {
@@ -18029,28 +18034,28 @@ function Kc() {
18029
18034
  }
18030
18035
  return !1;
18031
18036
  }, Su = function(h, x, T) {
18032
- if (!jt[x] && Gi(x) && ir(Ge.tagNameCheck, x)) return !1;
18037
+ if (!jt[x] && Yi(x) && ir(Ge.tagNameCheck, x)) return !1;
18033
18038
  if (Lr && !$t[x] && !$t[Kt(x)]) {
18034
18039
  const _ = k(h), W = S(h);
18035
18040
  if (W && _) {
18036
18041
  const X = W.length;
18037
18042
  for (let ne = X - 1; ne >= 0; --ne) {
18038
- const ke = h === T ? d(W[ne], !0) : W[ne];
18039
- _.insertBefore(ke, y(h));
18043
+ const Se = h === T ? d(W[ne], !0) : W[ne];
18044
+ _.insertBefore(Se, y(h));
18040
18045
  }
18041
18046
  }
18042
18047
  }
18043
18048
  return It(h), !0;
18044
- }, $i = function(h, x, T, _) {
18049
+ }, Wi = function(h, x, T, _) {
18045
18050
  return h.length === 0 ? x : x === T || x === _ ? Xe(x) : x;
18046
18051
  }, fn = function(h, x) {
18047
18052
  return h === x || k(h) !== null ? !1 : (Pr && Hr(h), !0);
18048
18053
  }, Wr = function(h, x) {
18049
- if (xu(h), st(j.beforeSanitizeElements, h, null), fn(h, x)) return !0;
18054
+ if (xu(h), ct(j.beforeSanitizeElements, h, null), fn(h, x)) return !0;
18050
18055
  if (or(h))
18051
18056
  return It(h), !0;
18052
18057
  const T = ye(I(h));
18053
- if (fe = $i(j.uponSanitizeElement, fe, on, Qe), st(j.uponSanitizeElement, h, {
18058
+ if (fe = Wi(j.uponSanitizeElement, fe, on, Qe), ct(j.uponSanitizeElement, h, {
18054
18059
  tagName: T,
18055
18060
  allowedTags: fe
18056
18061
  }), fn(h, x)) return !0;
@@ -18058,19 +18063,19 @@ function Kc() {
18058
18063
  return It(h), !0;
18059
18064
  if (jt[T] || !(pt.tagCheck instanceof Function && pt.tagCheck(T)) && !fe[T]) {
18060
18065
  const _ = Su(h, T, x);
18061
- return _ === !1 && (st(j.afterSanitizeElements, h, null), fn(h, x)) ? !0 : _;
18066
+ return _ === !1 && (ct(j.afterSanitizeElements, h, null), fn(h, x)) ? !0 : _;
18062
18067
  }
18063
- if (D(h) === xe.element && !hu(h) || (T === "noscript" || T === "noembed" || T === "noframes") && Re(jw, h.innerHTML))
18068
+ if (D(h) === we.element && !hu(h) || (T === "noscript" || T === "noembed" || T === "noframes") && Re(jw, h.innerHTML))
18064
18069
  return It(h), !0;
18065
- if (G && h.nodeType === xe.text) {
18070
+ if (G && h.nodeType === we.text) {
18066
18071
  const _ = rr(h.textContent);
18067
18072
  h.textContent !== _ && (Pn(t.removed, { element: h.cloneNode() }), h.textContent = _);
18068
18073
  }
18069
- return st(j.afterSanitizeElements, h, null), fn(h, x);
18070
- }, Wi = function(h, x, T) {
18071
- if (Zn[x] || Hi(x, h) || et && (x === "id" || x === "name") && (T in n || T in uu)) return !1;
18074
+ return ct(j.afterSanitizeElements, h, null), fn(h, x);
18075
+ }, Gi = function(h, x, T) {
18076
+ if (Zn[x] || ji(x, h) || et && (x === "id" || x === "name") && (T in n || T in uu)) return !1;
18072
18077
  const _ = he[x] || pt.attributeCheck instanceof Function && pt.attributeCheck(x, h);
18073
- return Cn && Re(it, x) || er && Re(lt, x) ? !0 : _ ? Ni[x] || Re(vn, Mn(T, _t, "")) || (x === "src" || x === "xlink:href" || x === "href") && h !== "script" && aa(T, "data:") === 0 && Ri[h] || E && !Re(Tt, Mn(T, _t, "")) ? !0 : !T : Gi(h) && ir(Ge.tagNameCheck, h) && ir(Ge.attributeNameCheck, x, h) || x === "is" && Ge.allowCustomizedBuiltInElements && ir(Ge.tagNameCheck, T);
18078
+ return Cn && Re(lt, x) || er && Re(at, x) ? !0 : _ ? Li[x] || Re(vn, Mn(T, _t, "")) || (x === "src" || x === "xlink:href" || x === "href") && h !== "script" && sa(T, "data:") === 0 && Ii[h] || q && !Re(Tt, Mn(T, _t, "")) ? !0 : !T : Yi(h) && ir(Ge.tagNameCheck, h) && ir(Ge.attributeNameCheck, x, h) || x === "is" && Ge.allowCustomizedBuiltInElements && ir(Ge.tagNameCheck, T);
18074
18079
  }, vu = ce({}, [
18075
18080
  "annotation-xml",
18076
18081
  "color-profile",
@@ -18080,7 +18085,7 @@ function Kc() {
18080
18085
  "font-face-src",
18081
18086
  "font-face-uri",
18082
18087
  "missing-glyph"
18083
- ]), Gi = function(h) {
18088
+ ]), Yi = function(h) {
18084
18089
  return !vu[Kt(h)] && Re(Rt, h);
18085
18090
  }, Cu = function(h, x, T, _) {
18086
18091
  if (P && typeof f == "object" && typeof f.getAttributeType == "function" && !T) switch (f.getAttributeType(h, x)) {
@@ -18096,13 +18101,13 @@ function Kc() {
18096
18101
  } catch {
18097
18102
  return un(x, h), !1;
18098
18103
  }
18099
- }, Yi = function(h, x) {
18100
- return Z && Re(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, x) ? !0 : Kt(h) === "attributename" && la(x, "href") !== null;
18104
+ }, Xi = function(h, x) {
18105
+ return Z && Re(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i, x) ? !0 : Kt(h) === "attributename" && aa(x, "href") !== null;
18101
18106
  }, Gr = function(h, x) {
18102
- if (st(j.beforeSanitizeAttributes, h, null), fn(h, x)) return;
18107
+ if (ct(j.beforeSanitizeAttributes, h, null), fn(h, x)) return;
18103
18108
  const T = h.attributes;
18104
18109
  if (!T || or(h)) return;
18105
- he = $i(j.uponSanitizeAttribute, he, ln, Fe);
18110
+ he = Wi(j.uponSanitizeAttribute, he, ln, Fe);
18106
18111
  const _ = {
18107
18112
  attrName: "",
18108
18113
  attrValue: "",
@@ -18113,38 +18118,38 @@ function Kc() {
18113
18118
  let W = T.length;
18114
18119
  const X = ye(h.nodeName);
18115
18120
  for (; W--; ) {
18116
- const ne = T[W], ke = ne.name, ht = ne.namespaceURI, Oe = ne.value, Be = ye(ke), pn = Oe;
18117
- let Ue = ke === "value" ? pn : Aw(pn), Xi = !1;
18118
- if (_.attrName = Be, _.attrValue = Ue, _.keepAttr = !0, _.forceKeepAttr = void 0, st(j.uponSanitizeAttribute, h, _), Ue = _.attrValue, qi && (Be === "id" || Be === "name") && aa(Ue, Ti) !== 0 && (un(ke, h, ne), Ue = Ti + Ue, Xi = !0), Yi(ke, Ue)) {
18119
- un(ke, h, ne);
18121
+ const ne = T[W], Se = ne.name, ht = ne.namespaceURI, Oe = ne.value, Be = ye(Se), pn = Oe;
18122
+ let Ue = Se === "value" ? pn : Aw(pn), Ki = !1;
18123
+ if (_.attrName = Be, _.attrValue = Ue, _.keepAttr = !0, _.forceKeepAttr = void 0, ct(j.uponSanitizeAttribute, h, _), Ue = _.attrValue, Ti && (Be === "id" || Be === "name") && sa(Ue, _i) !== 0 && (un(Se, h, ne), Ue = _i + Ue, Ki = !0), Xi(Se, Ue)) {
18124
+ un(Se, h, ne);
18120
18125
  continue;
18121
18126
  }
18122
18127
  if (!_.forceKeepAttr) {
18123
18128
  if (!_.keepAttr) {
18124
- un(ke, h, ne);
18129
+ un(Se, h, ne);
18125
18130
  continue;
18126
18131
  }
18127
- if (!O && Re(ga, Ue)) {
18128
- un(ke, h, ne);
18132
+ if (!O && Re(ba, Ue)) {
18133
+ un(Se, h, ne);
18129
18134
  continue;
18130
18135
  }
18131
- if (G && (Ue = rr(Ue)), !Wi(X, Be, Ue)) {
18132
- un(ke, h, ne);
18136
+ if (G && (Ue = rr(Ue)), !Gi(X, Be, Ue)) {
18137
+ un(Se, h, ne);
18133
18138
  continue;
18134
18139
  }
18135
- Ue = Cu(X, Be, ht, Ue), Ue !== pn && Au(h, ke, ht, Ue) && Xi && ia(t.removed);
18140
+ Ue = Cu(X, Be, ht, Ue), Ue !== pn && Au(h, Se, ht, Ue) && Ki && la(t.removed);
18136
18141
  }
18137
18142
  }
18138
- st(j.afterSanitizeAttributes, h, null), fn(h, x);
18143
+ ct(j.afterSanitizeAttributes, h, null), fn(h, x);
18139
18144
  }, qn = function(h) {
18140
18145
  let x = null;
18141
18146
  const T = Vr(h);
18142
- for (st(j.beforeSanitizeShadowDOM, h, null); x = T.nextNode(); )
18143
- if (st(j.uponSanitizeShadowNode, x, null), Wr(x, h), Gr(x, h), Nt(x.content) && qn(x.content), D(x) === xe.element) {
18144
- const _ = q(x);
18147
+ for (ct(j.beforeSanitizeShadowDOM, h, null); x = T.nextNode(); )
18148
+ if (ct(j.uponSanitizeShadowNode, x, null), Wr(x, h), Gr(x, h), Nt(x.content) && qn(x.content), D(x) === we.element) {
18149
+ const _ = E(x);
18145
18150
  Nt(_) && (Yr(_), qn(_));
18146
18151
  }
18147
- G && Vi(h), st(j.afterSanitizeShadowDOM, h, null);
18152
+ G && $i(h), ct(j.afterSanitizeShadowDOM, h, null);
18148
18153
  }, Yr = function(h) {
18149
18154
  const x = [{
18150
18155
  node: h,
@@ -18156,7 +18161,7 @@ function Kc() {
18156
18161
  qn(T.shadow);
18157
18162
  continue;
18158
18163
  }
18159
- const _ = T.node, W = D(_) === xe.element, X = S(_);
18164
+ const _ = T.node, W = D(_) === we.element, X = S(_);
18160
18165
  if (X) for (let ne = X.length - 1; ne >= 0; --ne) x.push({
18161
18166
  node: X[ne],
18162
18167
  shadow: null
@@ -18164,15 +18169,15 @@ function Kc() {
18164
18169
  if (W) {
18165
18170
  const ne = H ? H(_) : null;
18166
18171
  if (typeof ne == "string" && ye(ne) === "template") {
18167
- const ke = _.content;
18168
- Nt(ke) && x.push({
18169
- node: ke,
18172
+ const Se = _.content;
18173
+ Nt(Se) && x.push({
18174
+ node: Se,
18170
18175
  shadow: null
18171
18176
  });
18172
18177
  }
18173
18178
  }
18174
18179
  if (W) {
18175
- const ne = q(_);
18180
+ const ne = E(_);
18176
18181
  Nt(ne) && x.push({
18177
18182
  node: null,
18178
18183
  shadow: ne
@@ -18191,7 +18196,7 @@ function Kc() {
18191
18196
  Me ? (fe = Qe, he = Fe) : Fr(h), (j.uponSanitizeElement.length > 0 || j.uponSanitizeAttribute.length > 0) && (fe = Xe(fe)), j.uponSanitizeAttribute.length > 0 && (he = Xe(he)), t.removed = [];
18192
18197
  const X = Pr && typeof R != "string" && En(R);
18193
18198
  let ne = [];
18194
- const ke = Vt;
18199
+ const Se = Vt;
18195
18200
  if (X) {
18196
18201
  wu(R);
18197
18202
  const Be = I(R);
@@ -18204,10 +18209,10 @@ function Kc() {
18204
18209
  throw Br(R), St("root node is clobbered and cannot be sanitized in-place");
18205
18210
  ne = jr(R), Vt = mo();
18206
18211
  } else if (En(R))
18207
- x = ji("<!---->"), T = x.ownerDocument.importNode(R, !0), T.nodeType === xe.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? x = T : x.appendChild(T), Yr(x);
18212
+ x = Vi("<!---->"), T = x.ownerDocument.importNode(R, !0), T.nodeType === we.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? x = T : x.appendChild(T), Yr(x);
18208
18213
  else {
18209
- if (!Ze && !G && !le && R.indexOf("<") === -1) return P && at ? ae(R) : R;
18210
- if (x = ji(R), !x) return Ze ? null : at ? z : "";
18214
+ if (!Ze && !G && !le && R.indexOf("<") === -1) return P && st ? ae(R) : R;
18215
+ if (x = Vi(R), !x) return Ze ? null : st ? z : "";
18211
18216
  }
18212
18217
  x && xt && It(x.firstChild);
18213
18218
  const ht = X ? R : x;
@@ -18218,12 +18223,12 @@ function Kc() {
18218
18223
  Wr(_, ht), Gr(_, ht), Nt(_.content) && qn(_.content);
18219
18224
  X && bu(R, ne);
18220
18225
  } catch (Be) {
18221
- throw X && (Br(R), Ui(R, ne)), Be;
18226
+ throw X && (Br(R), Hi(R, ne)), Be;
18222
18227
  } finally {
18223
- Vt = ke;
18228
+ Vt = Se;
18224
18229
  }
18225
18230
  if (X) {
18226
- if (Ui(R, ne)) throw St("a node selected for removal could not be safely returned; refusing to sanitize in place");
18231
+ if (Hi(R, ne)) throw St("a node selected for removal could not be safely returned; refusing to sanitize in place");
18227
18232
  return G && $r(R), R;
18228
18233
  }
18229
18234
  if (Ze) {
@@ -18234,7 +18239,7 @@ function Kc() {
18234
18239
  }
18235
18240
  let Oe = le ? x.outerHTML : x.innerHTML;
18236
18241
  return le && fe["!doctype"] && x.ownerDocument && x.ownerDocument.doctype && x.ownerDocument.doctype.name && Re(Uw, x.ownerDocument.doctype.name) && (Oe = "<!DOCTYPE " + x.ownerDocument.doctype.name + `>
18237
- ` + Oe), G && (Oe = rr(Oe)), P && at ? ae(Oe) : Oe;
18242
+ ` + Oe), G && (Oe = rr(Oe)), P && st ? ae(Oe) : Oe;
18238
18243
  }, t.setConfig = function() {
18239
18244
  let R = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
18240
18245
  Fr(R), Me = !0, Qe = fe, Fe = he;
@@ -18243,7 +18248,7 @@ function Kc() {
18243
18248
  }, t.isValidAttribute = function(R, h, x) {
18244
18249
  cn || Fr({});
18245
18250
  const T = ye(R), _ = ye(h);
18246
- return typeof x == "string" && (Yi(h, x) || !O && Re(ga, x)) ? !1 : Wi(T, _, x);
18251
+ return typeof x == "string" && (Xi(h, x) || !O && Re(ba, x)) ? !1 : Gi(T, _, x);
18247
18252
  }, t.addHook = function(R, h) {
18248
18253
  typeof h == "function" && je(j, R) && Pn(j[R], h);
18249
18254
  }, t.removeHook = function(R, h) {
@@ -18252,12 +18257,12 @@ function Kc() {
18252
18257
  const x = Sw(j[R], h);
18253
18258
  return x === -1 ? void 0 : Cw(j[R], x, 1)[0];
18254
18259
  }
18255
- return ia(j[R]);
18260
+ return la(j[R]);
18256
18261
  }
18257
18262
  }, t.removeHooks = function(R) {
18258
18263
  je(j, R) && (j[R] = []);
18259
18264
  }, t.removeAllHooks = function() {
18260
- j = ba();
18265
+ j = ya();
18261
18266
  }, t;
18262
18267
  }
18263
18268
  var Cr = Kc();
@@ -18279,7 +18284,7 @@ function Gw({
18279
18284
  isDisabled: e,
18280
18285
  onFiles: t
18281
18286
  }) {
18282
- const n = ve(null);
18287
+ const n = xe(null);
18283
18288
  return /* @__PURE__ */ K(zt, { children: [
18284
18289
  /* @__PURE__ */ w(
18285
18290
  "input",
@@ -18384,13 +18389,13 @@ function Xw(e) {
18384
18389
  };
18385
18390
  }
18386
18391
  function Kw(e) {
18387
- const t = ve(e);
18388
- return ct(() => {
18392
+ const t = xe(e);
18393
+ return ot(() => {
18389
18394
  t.current = e;
18390
18395
  }), t;
18391
18396
  }
18392
18397
  function Jw(e) {
18393
- const [t, n] = be(!1), r = Kw(e), o = ve(null), l = va(
18398
+ const [t, n] = be(!1), r = Kw(e), o = xe(null), l = va(
18394
18399
  (i) => {
18395
18400
  if (o.current?.abort(), o.current = null, !i) return;
18396
18401
  const a = new AbortController();
@@ -18467,7 +18472,7 @@ function nk([e, t, n]) {
18467
18472
  function br(e) {
18468
18473
  return Math.min(1, Math.max(0, e));
18469
18474
  }
18470
- function ya({ hue: e, saturation: t, lightness: n }) {
18475
+ function xa({ hue: e, saturation: t, lightness: n }) {
18471
18476
  return `hsl(${Math.round(e)} ${Math.round(t * 100)}% ${Math.round(
18472
18477
  n * 100
18473
18478
  )}%)`;
@@ -18485,10 +18490,10 @@ function rk(e) {
18485
18490
  saturation: br(r * 0.6 + 0.1),
18486
18491
  lightness: Math.min(br(o + 0.25), 0.9)
18487
18492
  };
18488
- return { strong: ya(l), soft: ya(i) };
18493
+ return { strong: xa(l), soft: xa(i) };
18489
18494
  }
18490
18495
  function ok() {
18491
- const e = ve(!1), t = ve(0), n = ve(0);
18496
+ const e = xe(!1), t = xe(0), n = xe(0);
18492
18497
  return {
18493
18498
  onMouseDown: (a) => {
18494
18499
  e.current = !0;
@@ -18509,14 +18514,14 @@ function ok() {
18509
18514
  }
18510
18515
  };
18511
18516
  }
18512
- const ik = 1100, xa = 4e3, lk = 9e3;
18517
+ const ik = 1100, wa = 4e3, lk = 9e3;
18513
18518
  function ak(e) {
18514
18519
  const [t, n] = be(!1);
18515
- return ct(() => {
18520
+ return ot(() => {
18516
18521
  if (!e) return;
18517
18522
  let r, o = !1;
18518
18523
  const l = () => {
18519
- const i = xa + Math.random() * (lk - xa);
18524
+ const i = wa + Math.random() * (lk - wa);
18520
18525
  r = setTimeout(() => {
18521
18526
  o || (n(!0), r = setTimeout(() => {
18522
18527
  o || (n(!1), l());
@@ -18529,7 +18534,7 @@ function ak(e) {
18529
18534
  }, [e]), t;
18530
18535
  }
18531
18536
  function sk() {
18532
- const [e, t] = be(!1), n = ve(null);
18537
+ const [e, t] = be(!1), n = xe(null);
18533
18538
  return { scrollContainerRef: (o) => {
18534
18539
  if (n.current?.disconnect(), n.current = null, !o) return;
18535
18540
  const l = () => {
@@ -18544,13 +18549,13 @@ function sk() {
18544
18549
  }, hasOverflow: e };
18545
18550
  }
18546
18551
  function ck({ onSelect: e }) {
18547
- const t = nn(), n = ti(), r = ok(), { scrollContainerRef: o, hasOverflow: l } = sk(), i = !!t.messages?.some(
18552
+ const t = nn(), n = ni(), r = ok(), { scrollContainerRef: o, hasOverflow: l } = sk(), i = !!t.messages?.some(
18548
18553
  (y) => y.sender === "user"
18549
18554
  ), a = t.suggestedMessageTexts ?? [], s = !!t.suggestedMessages && a.length > 0 && !i, c = !!t.hasSuggestedMessageAura && s, f = !!t.hasSuggestedMessageShine && s, u = ak(f);
18550
18555
  if (!s) return null;
18551
18556
  const d = c ? rk(n.suggestedMessageBubbleColor || n.userBubbleColor) : null, p = n.suggestedMessageBubbleColor ? {
18552
18557
  backgroundColor: n.suggestedMessageBubbleColor,
18553
- color: n.suggestedMessageBubbleTextColor || Ei(n.suggestedMessageBubbleColor)
18558
+ color: n.suggestedMessageBubbleTextColor || qi(n.suggestedMessageBubbleColor)
18554
18559
  } : void 0, m = (y, S = {
18555
18560
  isInsideAura: !1,
18556
18561
  hasShine: !1
@@ -18631,7 +18636,7 @@ function ck({ onSelect: e }) {
18631
18636
  }
18632
18637
  );
18633
18638
  }
18634
- const wa = {
18639
+ const ka = {
18635
18640
  0: "Unable to connect to the service. Please check your network connection.",
18636
18641
  5031: "The service is currently undergoing maintenance. Please try again later.",
18637
18642
  5032: "I am sorry this service is currently unavailable, please try again later.",
@@ -18639,7 +18644,7 @@ const wa = {
18639
18644
  5034: "Sorry we are unable to help right now, please try again later.",
18640
18645
  5001: "We are currently facing technical difficulties. Please try again later.",
18641
18646
  DEFAULT: "Something went wrong. Please try again later."
18642
- }, uk = (e) => wa[e] || wa.DEFAULT, fk = Ar({
18647
+ }, uk = (e) => ka[e] || ka.DEFAULT, fk = Ar({
18643
18648
  error: null,
18644
18649
  hideSdk: !1,
18645
18650
  publishApiError: () => {
@@ -18658,7 +18663,7 @@ const wa = {
18658
18663
  }, Vk = (e) => (t) => {
18659
18664
  const n = t instanceof Jt ? t.response?.errors?.[0] : void 0, r = Number(n?.error_code), o = uk(r);
18660
18665
  e({ code: r, message: o });
18661
- }, ka = {
18666
+ }, Sa = {
18662
18667
  warning: {
18663
18668
  bgColor: "eloq:bg-amber-50 eloq:dark:bg-amber-400/10",
18664
18669
  borderColor: "eloq:border-amber-400",
@@ -18688,7 +18693,7 @@ const wa = {
18688
18693
  icon: Hf
18689
18694
  }
18690
18695
  }, dk = ({ message: e, type: t }) => {
18691
- const n = ka[t] || ka.warning, r = n.icon;
18696
+ const n = Sa[t] || Sa.warning, r = n.icon;
18692
18697
  return /* @__PURE__ */ K(
18693
18698
  "div",
18694
18699
  {
@@ -18709,21 +18714,21 @@ function wk() {
18709
18714
  }
18710
18715
  function kk() {
18711
18716
  const [e, t] = be(!1);
18712
- return ct(() => {
18717
+ return ot(() => {
18713
18718
  t(!0);
18714
18719
  }, []), e && Cr.isSupported;
18715
18720
  }
18716
18721
  function Sk() {
18717
- const { error: e } = pk(), t = !!e, n = nn(), r = ve(null), o = Sa(), [l, i] = be(""), a = ti(), s = !!n.messages?.some((D) => D.isRatingRequest), c = n.keyboardInset ?? 0, f = kk(), u = !!n.hasAttachments, d = t || s, p = Xw(
18722
+ const { error: e } = pk(), t = !!e, n = nn(), r = xe(null), o = Yo(), [l, i] = be(""), a = ni(), s = !!n.messages?.some((D) => D.isRatingRequest), c = n.keyboardInset ?? 0, f = kk(), u = !!n.hasAttachments, d = t || s, p = Xw(
18718
18723
  u && !d
18719
- ), m = Jw(p.addFiles), y = !!l.trim() || p.attachmentFiles.length > 0, S = a.userBubbleTextColor || Ei(a.userBubbleColor), k = () => y && !d ? {
18724
+ ), m = Jw(p.addFiles), y = !!l.trim() || p.attachmentFiles.length > 0, S = a.userBubbleTextColor || qi(a.userBubbleColor), k = () => y && !d ? {
18720
18725
  backgroundColor: a.userBubbleColor,
18721
18726
  color: S
18722
- } : {}, [q] = be(() => !wk()), A = !!n.isChatClosed;
18727
+ } : {}, [E] = be(() => !wk()), A = !!n.isChatClosed;
18723
18728
  Eu(() => {
18724
18729
  const D = r.current;
18725
- !q || !D || (D.style.height = "auto", D.style.height = `${Math.min(D.scrollHeight, xk)}px`);
18726
- }, [q, l, A]);
18730
+ !E || !D || (D.style.height = "auto", D.style.height = `${Math.min(D.scrollHeight, xk)}px`);
18731
+ }, [E, l, A]);
18727
18732
  const U = (D) => {
18728
18733
  i(D), r.current && r.current.focus();
18729
18734
  }, H = async (D) => {
@@ -18745,7 +18750,7 @@ function Sk() {
18745
18750
  } catch (v) {
18746
18751
  i(I), p.restoreFiles(V, v);
18747
18752
  }
18748
- }, C = () => n.isChatClosed ? /* @__PURE__ */ w("div", { className: "eloq:w-full eloq:z-20 eloq:animate-slide-up-in", children: /* @__PURE__ */ K(
18753
+ }, C = () => n.isChatClosed ? /* @__PURE__ */ w("div", { className: "eloq:w-full eloq:z-20 eloq:motion-safe:animate-slide-up-in", children: /* @__PURE__ */ K(
18749
18754
  "div",
18750
18755
  {
18751
18756
  className: mk,
@@ -18854,7 +18859,7 @@ function Sk() {
18854
18859
  )
18855
18860
  ] });
18856
18861
  return /* @__PURE__ */ K(
18857
- ei,
18862
+ ti,
18858
18863
  {
18859
18864
  ref: u ? m.listenForFiles : void 0,
18860
18865
  className: "eloq:flex eloq:flex-col eloq:bg-background eloq:p-0",
@@ -18870,7 +18875,7 @@ function Sk() {
18870
18875
  children: [
18871
18876
  /* @__PURE__ */ K("div", { className: "eloq:w-full eloq:flex eloq:items-center eloq:justify-center eloq:space-x-2 eloq:py-1", children: [
18872
18877
  /* @__PURE__ */ w(
18873
- Ko,
18878
+ Jo,
18874
18879
  {
18875
18880
  className: "eloq:h-5 eloq:w-5 eloq:mr-[2px]",
18876
18881
  bgColor: a.mode === "dark" ? "white" : "black",
@@ -18898,7 +18903,7 @@ function Sk() {
18898
18903
  }
18899
18904
  );
18900
18905
  }
18901
- var vk = Object.defineProperty, At = (e, t) => vk(e, "name", { value: t, configurable: !0 }), Qc = "Avatar", [Ck, $k] = /* @__PURE__ */ ri(Qc), Ak = [
18906
+ var vk = Object.defineProperty, At = (e, t) => vk(e, "name", { value: t, configurable: !0 }), Qc = "Avatar", [Ck, $k] = /* @__PURE__ */ oi(Qc), Ak = [
18902
18907
  0,
18903
18908
  () => {
18904
18909
  }
@@ -19014,37 +19019,45 @@ Ik.displayName = nu.displayName;
19014
19019
  const Nk = "eloq:shadow-[0_3px_4px_-2px_rgba(0,0,0,0.04)] eloq:dark:shadow-none eloq:dark:border-b eloq:dark:border-border", Co = "eloq:text-gray-400 eloq:hover:text-gray-600 eloq:dark:hover:text-gray-300 eloq:p-2";
19015
19020
  function Lk({
19016
19021
  onCleanChat: e,
19017
- onClose: t
19022
+ onClose: t,
19023
+ titleId: n
19018
19024
  }) {
19019
- const n = nn(), r = n.hasCleanChatButton ?? n.cleanChatButton ?? !0, o = n.hasCloseButton ?? n.closeButton ?? !0;
19020
- return /* @__PURE__ */ K(Qo, { className: ee(Uc, Nk), children: [
19025
+ const r = nn(), o = r.hasCleanChatButton ?? r.cleanChatButton ?? !0, l = r.hasCloseButton ?? r.closeButton ?? !0;
19026
+ return /* @__PURE__ */ K(Zo, { className: ee(Uc, Nk), children: [
19021
19027
  /* @__PURE__ */ K("div", { className: Hc, children: [
19022
19028
  /* @__PURE__ */ w(iu, { className: "eloq:h-10 eloq:w-10", children: /* @__PURE__ */ w(
19023
- Ko,
19029
+ Jo,
19024
19030
  {
19025
- src: n.assistantLogo,
19031
+ src: r.assistantLogo,
19026
19032
  bgColor: "#6F33B7",
19027
19033
  fgColor: "#ffffff"
19028
19034
  }
19029
19035
  ) }),
19030
19036
  /* @__PURE__ */ K("div", { className: "eloq:flex eloq:flex-col", children: [
19031
- /* @__PURE__ */ w("h2", { className: "eloq:text-sm eloq:text-foreground eloq:font-semibold", children: n.assistantName }),
19032
- /* @__PURE__ */ w("span", { className: jc, children: n.subtitle })
19037
+ /* @__PURE__ */ w(
19038
+ "h2",
19039
+ {
19040
+ id: n,
19041
+ className: "eloq:text-sm eloq:text-foreground eloq:font-semibold",
19042
+ children: r.assistantName
19043
+ }
19044
+ ),
19045
+ /* @__PURE__ */ w("span", { className: jc, children: r.subtitle })
19033
19046
  ] })
19034
19047
  ] }),
19035
19048
  /* @__PURE__ */ K("div", { children: [
19036
- n.onToggleSound && /* @__PURE__ */ w(
19049
+ r.onToggleSound && /* @__PURE__ */ w(
19037
19050
  "button",
19038
19051
  {
19039
19052
  type: "button",
19040
- onClick: n.onToggleSound,
19053
+ onClick: r.onToggleSound,
19041
19054
  className: Co,
19042
- "aria-label": n.isSoundMuted ? "Turn on new message sound" : "Turn off new message sound",
19043
- title: n.isSoundMuted ? "Turn on new message sound" : "Turn off new message sound",
19044
- children: n.isSoundMuted ? /* @__PURE__ */ w(Nf, { className: "eloq:h-4 eloq:w-4", "aria-hidden": !0 }) : /* @__PURE__ */ w(Pf, { className: "eloq:h-4 eloq:w-4", "aria-hidden": !0 })
19055
+ "aria-label": r.isSoundMuted ? "Turn on new message sound" : "Turn off new message sound",
19056
+ title: r.isSoundMuted ? "Turn on new message sound" : "Turn off new message sound",
19057
+ children: r.isSoundMuted ? /* @__PURE__ */ w(Nf, { className: "eloq:h-4 eloq:w-4", "aria-hidden": !0 }) : /* @__PURE__ */ w(Pf, { className: "eloq:h-4 eloq:w-4", "aria-hidden": !0 })
19045
19058
  }
19046
19059
  ),
19047
- r && /* @__PURE__ */ w(
19060
+ o && /* @__PURE__ */ w(
19048
19061
  "button",
19049
19062
  {
19050
19063
  type: "button",
@@ -19055,7 +19068,7 @@ function Lk({
19055
19068
  children: /* @__PURE__ */ w(ep, { className: "eloq:h-4 eloq:w-4", "aria-hidden": !0 })
19056
19069
  }
19057
19070
  ),
19058
- o && /* @__PURE__ */ w(
19071
+ l && /* @__PURE__ */ w(
19059
19072
  "button",
19060
19073
  {
19061
19074
  type: "button",
@@ -19077,34 +19090,65 @@ function Wk(e) {
19077
19090
  onClose: o,
19078
19091
  theme: l,
19079
19092
  hasIntroAnimation: i = !0,
19080
- isTestMode: a = !1
19081
- } = e, s = Vc({
19093
+ isDialog: a = !1,
19094
+ shouldFocusOnOpen: s = !0,
19095
+ isTestMode: c = !1
19096
+ } = e, f = e.hasCloseButton ?? e.closeButton ?? !0, u = Yo(), d = xe(null), p = xe(t);
19097
+ ot(() => {
19098
+ const E = p.current;
19099
+ if (p.current = t, !a || !s || !t || E) return;
19100
+ const A = d.current;
19101
+ if (!A) return;
19102
+ ((n ? null : A.querySelector(
19103
+ 'textarea[name="message"]:not(:disabled)'
19104
+ )) ?? A).focus();
19105
+ }, [a, s, t, n]);
19106
+ const m = a && t && f && !!o, y = (E) => {
19107
+ E.key !== "Escape" || E.defaultPrevented || // Escape during an IME composition cancels the composition, not the
19108
+ // chat. Safari reports the key that ends a composition as keyCode 229.
19109
+ E.nativeEvent.isComposing || E.keyCode === 229 || (E.preventDefault(), o?.());
19110
+ }, S = Vc({
19082
19111
  isOpen: t,
19083
19112
  isMobile: n,
19084
19113
  // No intro also means no panel-in/out entrance: the interface is being
19085
19114
  // rendered as page content (embedded playground, transcript previews),
19086
19115
  // where a popup-style "rise from the corner" animation is wrong.
19087
19116
  skipAnimation: !i
19088
- }), c = () => /* @__PURE__ */ K(Jo, { className: ee(s, { "eloq:relative": a }), children: [
19089
- a && // Above the footer's z-20 layers (the ended-conversation panel, the
19090
- // composer) so it runs the full height; clicks pass through to them.
19091
- /* @__PURE__ */ w(
19092
- "div",
19093
- {
19094
- "data-testid": "test-mode-stripe",
19095
- className: "eloq-test-mode-stripe eloq:pointer-events-none eloq:absolute eloq:left-0 eloq:top-0 eloq:h-full eloq:w-3 eloq:z-30"
19096
- }
19097
- ),
19098
- /* @__PURE__ */ w(
19099
- Lk,
19100
- {
19101
- onCleanChat: () => r?.(),
19102
- onClose: () => o?.()
19103
- }
19104
- ),
19105
- /* @__PURE__ */ w(mw, {}),
19106
- /* @__PURE__ */ w(Sk, {})
19107
- ] });
19117
+ }), k = () => /* @__PURE__ */ K(
19118
+ Qo,
19119
+ {
19120
+ ref: d,
19121
+ className: ee(S, {
19122
+ "eloq:relative": c,
19123
+ // The panel takes focus only to hold it (mobile open, a click on
19124
+ // text), so no focus ring around the whole widget.
19125
+ "eloq:outline-none": a
19126
+ }),
19127
+ ...a ? { role: "dialog", "aria-labelledby": u, tabIndex: -1 } : {},
19128
+ onKeyDown: m ? y : void 0,
19129
+ children: [
19130
+ c && // Above the footer's z-20 layers (the ended-conversation panel, the
19131
+ // composer) so it runs the full height; clicks pass through to them.
19132
+ /* @__PURE__ */ w(
19133
+ "div",
19134
+ {
19135
+ "data-testid": "test-mode-stripe",
19136
+ className: "eloq-test-mode-stripe eloq:pointer-events-none eloq:absolute eloq:left-0 eloq:top-0 eloq:h-full eloq:w-3 eloq:z-30"
19137
+ }
19138
+ ),
19139
+ /* @__PURE__ */ w(
19140
+ Lk,
19141
+ {
19142
+ onCleanChat: () => r?.(),
19143
+ onClose: () => o?.(),
19144
+ titleId: u
19145
+ }
19146
+ ),
19147
+ /* @__PURE__ */ w(mw, {}),
19148
+ /* @__PURE__ */ w(Sk, {})
19149
+ ]
19150
+ }
19151
+ );
19108
19152
  return /* @__PURE__ */ w(vf, { ...l, children: /* @__PURE__ */ w(Kp, { ...e, children: /* @__PURE__ */ w(
19109
19153
  "main",
19110
19154
  {
@@ -19114,7 +19158,7 @@ function Wk(e) {
19114
19158
  dark: l?.mode === "dark"
19115
19159
  }
19116
19160
  ),
19117
- children: c()
19161
+ children: k()
19118
19162
  }
19119
19163
  ) }) });
19120
19164
  }
@@ -19132,7 +19176,7 @@ function gt({ className: e, ...t }) {
19132
19176
  }
19133
19177
  function Pk(e, t) {
19134
19178
  const [n, r] = be(e);
19135
- return ct(() => {
19179
+ return ot(() => {
19136
19180
  const o = setTimeout(() => {
19137
19181
  r(e);
19138
19182
  }, t);
@@ -19151,9 +19195,9 @@ function Gk({
19151
19195
  isMobile: t,
19152
19196
  skipAnimation: n
19153
19197
  });
19154
- return /* @__PURE__ */ K(Jo, { className: o, children: [
19198
+ return /* @__PURE__ */ K(Qo, { className: o, children: [
19155
19199
  /* @__PURE__ */ w(
19156
- Qo,
19200
+ Zo,
19157
19201
  {
19158
19202
  className: ee(Uc, "eloq:mb-4 eloq:shadow-sm"),
19159
19203
  children: /* @__PURE__ */ K("div", { className: Hc, children: [
@@ -19162,7 +19206,7 @@ function Gk({
19162
19206
  ] })
19163
19207
  }
19164
19208
  ),
19165
- /* @__PURE__ */ w(Zo, { className: "eloq:flex-1 eloq:px-4 eloq:overflow-hidden", children: /* @__PURE__ */ K(us, { children: [
19209
+ /* @__PURE__ */ w(ei, { className: "eloq:flex-1 eloq:px-4 eloq:overflow-hidden", children: /* @__PURE__ */ K(us, { children: [
19166
19210
  /* @__PURE__ */ K("div", { className: "eloq:flex eloq:flex-col eloq:items-center eloq:justify-center eloq:space-y-2 eloq:pt-10", children: [
19167
19211
  /* @__PURE__ */ w(gt, { className: "eloq:w-14 eloq:h-14 eloq:mx-auto eloq:rounded-md" }),
19168
19212
  /* @__PURE__ */ w("div", { children: /* @__PURE__ */ w(gt, { className: "eloq:h-6 eloq:w-32 eloq:mx-auto eloq:mt-2" }) }),
@@ -19175,7 +19219,7 @@ function Gk({
19175
19219
  /* @__PURE__ */ w(gt, { className: "eloq:h-12 eloq:w-2/3 eloq:self-end" })
19176
19220
  ] })
19177
19221
  ] }) }),
19178
- /* @__PURE__ */ w(ei, { children: /* @__PURE__ */ w(gt, { className: "eloq:h-12 eloq:w-full eloq:rounded-full" }) })
19222
+ /* @__PURE__ */ w(ti, { children: /* @__PURE__ */ w(gt, { className: "eloq:h-12 eloq:w-full eloq:rounded-full" }) })
19179
19223
  ] }, "chat-interface-skeleton");
19180
19224
  }
19181
19225
  export {
@@ -19184,9 +19228,9 @@ export {
19184
19228
  Wk as C,
19185
19229
  fk as E,
19186
19230
  zk as H,
19187
- Ko as L,
19231
+ Jo as L,
19188
19232
  zx as M,
19189
- ea as N,
19233
+ ta as N,
19190
19234
  uw as R,
19191
19235
  Gk as S,
19192
19236
  vf as T,
@@ -19197,7 +19241,7 @@ export {
19197
19241
  Kw as d,
19198
19242
  pk as e,
19199
19243
  uk as f,
19200
- Ei as g,
19244
+ qi as g,
19201
19245
  hw as h,
19202
19246
  Mc as i,
19203
19247
  xr as j,
@@ -19210,7 +19254,7 @@ export {
19210
19254
  jk as r,
19211
19255
  Uk as s,
19212
19256
  Fk as t,
19213
- ti as u,
19257
+ ni as u,
19214
19258
  Xx as w
19215
19259
  };
19216
- //# sourceMappingURL=skeleton-D5yz7y72.js.map
19260
+ //# sourceMappingURL=skeleton-Dtc-r9SI.js.map