@opencx/widget 3.0.90 → 3.0.91

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/designs.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { Fragment as Hr, jsx as b, jsxs as U } from "react/jsx-runtime";
2
2
  import * as Hn from "@radix-ui/react-popover";
3
3
  import * as qe from "react";
4
- import Zt, { forwardRef as Ur, useState as Ie, useImperativeHandle as Eu, useRef as sn, useCallback as Tu, useMemo as zr, useEffect as St, memo as wu, cloneElement as xu, createElement as yi } from "react";
5
- import { a as Ne, u as ot, d as bt, g as Et, i as _u, c as ja, h as Je, e as Un, j as Ot, l as Va, b as yu, W as Au, k as Cu } from "./useModes-B3IdrBWZ.js";
4
+ import kt, { forwardRef as Ur, useState as Ie, useImperativeHandle as Eu, useRef as sn, useCallback as Tu, useMemo as zr, useEffect as Ot, memo as wu, cloneElement as xu, createElement as yi } from "react";
5
+ import { a as Ne, u as ot, d as bt, g as Et, i as _u, c as ja, h as Je, e as Un, j as Lt, l as Va, b as yu, W as Au, k as Cu } from "./useModes-COzOEDch.js";
6
6
  import * as Fe from "@radix-ui/react-dialog";
7
7
  import { X as ku, PaperclipIcon as Iu, ImageIcon as Nu, CircleDashed as Su, ArrowUpIcon as Ou, CircleCheckIcon as Qa, XIcon as Yr, AlertCircle as Lu, Loader2 as Du, FileAudio2Icon as Ru, FileVideo2Icon as vu, FileIcon as Pu, SquareXIcon as Mu, SquareCheckBigIcon as Bu, SquareCheckIcon as Fu, ShrinkIcon as Hu, Minimize2Icon as Uu, MinimizeIcon as zu, Maximize2Icon as Yu, MaximizeIcon as qu, ExpandIcon as Wu, CircleXIcon as ju, CircleCheckBigIcon as Vu, CheckCheckIcon as Qu, CheckIcon as Gu, CircleDashedIcon as Xu, ChevronLeftIcon as Ku, LoaderIcon as $u, SendHorizontal as Ju, UserRoundIcon as Zu, ChevronRightIcon as el, ChevronDownIcon as tl } from "lucide-react";
8
8
  import { clsx as nl } from "clsx";
@@ -10,8 +10,8 @@ import { twMerge as rl } from "tailwind-merge";
10
10
  import { createPortal as Tr } from "react-dom";
11
11
  import { Slot as il } from "@radix-ui/react-slot";
12
12
  import { cva as al } from "class-variance-authority";
13
- import { motion as jt, AnimatePresence as Ae } from "framer-motion";
14
- import * as Lt from "@radix-ui/react-avatar";
13
+ import { motion as Vt, AnimatePresence as Ae } from "framer-motion";
14
+ import * as Dt from "@radix-ui/react-avatar";
15
15
  import * as on from "@radix-ui/react-tooltip";
16
16
  import Ai from "tinycolor2";
17
17
  import { i as st } from "./is-exhaustive-DGJzQK69.js";
@@ -1634,7 +1634,7 @@ function Qr(e) {
1634
1634
  }
1635
1635
  return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
1636
1636
  }
1637
- function Dt(e) {
1637
+ function Rt(e) {
1638
1638
  const t = [];
1639
1639
  let n = -1, r = 0, i = 0;
1640
1640
  for (; ++n < e.length; ) {
@@ -2111,7 +2111,7 @@ class Dd {
2111
2111
  const i = n || 0;
2112
2112
  this.setCursor(Math.trunc(t));
2113
2113
  const s = this.right.splice(this.right.length - i, Number.POSITIVE_INFINITY);
2114
- return r && Ut(this.left, r), s.reverse();
2114
+ return r && zt(this.left, r), s.reverse();
2115
2115
  }
2116
2116
  /**
2117
2117
  * Remove and return the highest-numbered item in the array, so
@@ -2146,7 +2146,7 @@ class Dd {
2146
2146
  * Nothing.
2147
2147
  */
2148
2148
  pushMany(t) {
2149
- this.setCursor(Number.POSITIVE_INFINITY), Ut(this.left, t);
2149
+ this.setCursor(Number.POSITIVE_INFINITY), zt(this.left, t);
2150
2150
  }
2151
2151
  /**
2152
2152
  * Inserts a single item to the low-numbered side of the array;
@@ -2170,7 +2170,7 @@ class Dd {
2170
2170
  * Nothing.
2171
2171
  */
2172
2172
  unshiftMany(t) {
2173
- this.setCursor(0), Ut(this.right, t.reverse());
2173
+ this.setCursor(0), zt(this.right, t.reverse());
2174
2174
  }
2175
2175
  /**
2176
2176
  * Move the cursor to a specific position in the array. Requires
@@ -2188,14 +2188,14 @@ class Dd {
2188
2188
  if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
2189
2189
  if (t < this.left.length) {
2190
2190
  const n = this.left.splice(t, Number.POSITIVE_INFINITY);
2191
- Ut(this.right, n.reverse());
2191
+ zt(this.right, n.reverse());
2192
2192
  } else {
2193
2193
  const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
2194
- Ut(this.left, n.reverse());
2194
+ zt(this.left, n.reverse());
2195
2195
  }
2196
2196
  }
2197
2197
  }
2198
- function Ut(e, t) {
2198
+ function zt(e, t) {
2199
2199
  let n = 0;
2200
2200
  if (t.length < 1e4)
2201
2201
  e.push(...t);
@@ -2361,7 +2361,7 @@ function Ns(e, t, n, r, i, s) {
2361
2361
  return m === a || m === 92 ? (e.consume(m), d) : d(m);
2362
2362
  }
2363
2363
  }
2364
- function Vt(e, t) {
2364
+ function Qt(e, t) {
2365
2365
  let n;
2366
2366
  return r;
2367
2367
  function r(i) {
@@ -2402,7 +2402,7 @@ function zd(e, t, n) {
2402
2402
  return i = Be(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), f === 58 ? (e.enter("definitionMarker"), e.consume(f), e.exit("definitionMarker"), l) : n(f);
2403
2403
  }
2404
2404
  function l(f) {
2405
- return re(f) ? Vt(e, c)(f) : c(f);
2405
+ return re(f) ? Qt(e, c)(f) : c(f);
2406
2406
  }
2407
2407
  function c(f) {
2408
2408
  return ks(
@@ -2430,7 +2430,7 @@ function zd(e, t, n) {
2430
2430
  function Yd(e, t, n) {
2431
2431
  return r;
2432
2432
  function r(u) {
2433
- return re(u) ? Vt(e, i)(u) : n(u);
2433
+ return re(u) ? Qt(e, i)(u) : n(u);
2434
2434
  }
2435
2435
  function i(u) {
2436
2436
  return Ns(e, s, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(u);
@@ -2875,13 +2875,13 @@ function c0(e, t, n) {
2875
2875
  return e.enter("resource"), e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), i;
2876
2876
  }
2877
2877
  function i(h) {
2878
- return re(h) ? Vt(e, s)(h) : s(h);
2878
+ return re(h) ? Qt(e, s)(h) : s(h);
2879
2879
  }
2880
2880
  function s(h) {
2881
2881
  return h === 41 ? d(h) : ks(e, a, u, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(h);
2882
2882
  }
2883
2883
  function a(h) {
2884
- return re(h) ? Vt(e, l)(h) : d(h);
2884
+ return re(h) ? Qt(e, l)(h) : d(h);
2885
2885
  }
2886
2886
  function u(h) {
2887
2887
  return n(h);
@@ -2890,7 +2890,7 @@ function c0(e, t, n) {
2890
2890
  return h === 34 || h === 39 || h === 40 ? Ns(e, c, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(h) : d(h);
2891
2891
  }
2892
2892
  function c(h) {
2893
- return re(h) ? Vt(e, d)(h) : d(h);
2893
+ return re(h) ? Qt(e, d)(h) : d(h);
2894
2894
  }
2895
2895
  function d(h) {
2896
2896
  return h === 41 ? (e.enter("resourceMarker"), e.consume(h), e.exit("resourceMarker"), e.exit("resource"), t) : n(h);
@@ -3744,7 +3744,7 @@ function Wi(e, t, n) {
3744
3744
  n && (e[t] = n);
3745
3745
  }
3746
3746
  const nh = {}.hasOwnProperty;
3747
- function Rt(e) {
3747
+ function vt(e) {
3748
3748
  const t = {}, n = {};
3749
3749
  let r;
3750
3750
  for (r in e.properties)
@@ -3759,7 +3759,7 @@ function Rt(e) {
3759
3759
  }
3760
3760
  return new ln(t, n, e.space);
3761
3761
  }
3762
- const Rs = Rt({
3762
+ const Rs = vt({
3763
3763
  space: "xlink",
3764
3764
  transform(e, t) {
3765
3765
  return "xlink:" + t.slice(5).toLowerCase();
@@ -3773,7 +3773,7 @@ const Rs = Rt({
3773
3773
  xLinkTitle: null,
3774
3774
  xLinkType: null
3775
3775
  }
3776
- }), vs = Rt({
3776
+ }), vs = vt({
3777
3777
  space: "xml",
3778
3778
  transform(e, t) {
3779
3779
  return "xml:" + t.slice(3).toLowerCase();
@@ -3786,12 +3786,12 @@ function Ps(e, t) {
3786
3786
  function Ms(e, t) {
3787
3787
  return Ps(e, t.toLowerCase());
3788
3788
  }
3789
- const Bs = Rt({
3789
+ const Bs = vt({
3790
3790
  space: "xmlns",
3791
3791
  attributes: { xmlnsxlink: "xmlns:xlink" },
3792
3792
  transform: Ms,
3793
3793
  properties: { xmlns: null, xmlnsXLink: null }
3794
- }), Fs = Rt({
3794
+ }), Fs = vt({
3795
3795
  transform(e, t) {
3796
3796
  return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
3797
3797
  },
@@ -3846,7 +3846,7 @@ const Bs = Rt({
3846
3846
  ariaValueText: null,
3847
3847
  role: null
3848
3848
  }
3849
- }), rh = Rt({
3849
+ }), rh = vt({
3850
3850
  space: "html",
3851
3851
  attributes: {
3852
3852
  acceptcharset: "accept-charset",
@@ -4207,7 +4207,7 @@ const Bs = Rt({
4207
4207
  security: null,
4208
4208
  unselectable: null
4209
4209
  }
4210
- }), ih = Rt({
4210
+ }), ih = vt({
4211
4211
  space: "svg",
4212
4212
  attributes: {
4213
4213
  accentHeight: "accent-height",
@@ -4941,7 +4941,7 @@ function kh(e) {
4941
4941
  if (t && n)
4942
4942
  return { start: t, end: n };
4943
4943
  }
4944
- function Qt(e) {
4944
+ function Gt(e) {
4945
4945
  return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Zi(e.position) : "start" in e || "end" in e ? Zi(e) : "line" in e || "column" in e ? Cr(e) : "";
4946
4946
  }
4947
4947
  function Cr(e) {
@@ -5024,7 +5024,7 @@ class ge extends Error {
5024
5024
  l && (s.place = l.position);
5025
5025
  }
5026
5026
  const u = s.place && "start" in s.place ? s.place.start : s.place;
5027
- this.ancestors = s.ancestors || void 0, this.cause = s.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = u ? u.line : void 0, this.name = Qt(s.place) || "1:1", this.place = s.place || void 0, this.reason = this.message, this.ruleId = s.ruleId || void 0, this.source = s.source || void 0, this.stack = a && s.cause && typeof s.cause.stack == "string" ? s.cause.stack : "", this.actual, this.expected, this.note, this.url;
5027
+ this.ancestors = s.ancestors || void 0, this.cause = s.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file, this.message = i, this.line = u ? u.line : void 0, this.name = Gt(s.place) || "1:1", this.place = s.place || void 0, this.reason = this.message, this.ruleId = s.ruleId || void 0, this.source = s.source || void 0, this.stack = a && s.cause && typeof s.cause.stack == "string" ? s.cause.stack : "", this.actual, this.expected, this.note, this.url;
5028
5028
  }
5029
5029
  }
5030
5030
  ge.prototype.file = "";
@@ -6165,18 +6165,18 @@ function Af(e) {
6165
6165
  return P;
6166
6166
  }
6167
6167
  function i(S, P, V) {
6168
- let $ = P - 1, te = -1, Me = !1, dt, Ge, Ft, Ht;
6168
+ let $ = P - 1, te = -1, Me = !1, dt, Ge, Ht, Ut;
6169
6169
  for (; ++$ <= V; ) {
6170
6170
  const Ce = S[$];
6171
6171
  switch (Ce[1].type) {
6172
6172
  case "listUnordered":
6173
6173
  case "listOrdered":
6174
6174
  case "blockQuote": {
6175
- Ce[0] === "enter" ? te++ : te--, Ht = void 0;
6175
+ Ce[0] === "enter" ? te++ : te--, Ut = void 0;
6176
6176
  break;
6177
6177
  }
6178
6178
  case "lineEndingBlank": {
6179
- Ce[0] === "enter" && (dt && !Ht && !te && !Ft && (Ft = $), Ht = void 0);
6179
+ Ce[0] === "enter" && (dt && !Ut && !te && !Ht && (Ht = $), Ut = void 0);
6180
6180
  break;
6181
6181
  }
6182
6182
  case "linePrefix":
@@ -6186,7 +6186,7 @@ function Af(e) {
6186
6186
  case "listItemPrefixWhitespace":
6187
6187
  break;
6188
6188
  default:
6189
- Ht = void 0;
6189
+ Ut = void 0;
6190
6190
  }
6191
6191
  if (!te && Ce[0] === "enter" && Ce[1].type === "listItemPrefix" || te === -1 && Ce[0] === "exit" && (Ce[1].type === "listUnordered" || Ce[1].type === "listOrdered")) {
6192
6192
  if (dt) {
@@ -6198,7 +6198,7 @@ function Af(e) {
6198
6198
  Ge && (S[Ge][1].type = "lineEndingBlank", Me = !0), Xe[1].type = "lineEnding", Ge = xt;
6199
6199
  } else if (!(Xe[1].type === "linePrefix" || Xe[1].type === "blockQuotePrefix" || Xe[1].type === "blockQuotePrefixWhitespace" || Xe[1].type === "blockQuoteMarker" || Xe[1].type === "listItemIndent")) break;
6200
6200
  }
6201
- Ft && (!Ge || Ft < Ge) && (dt._spread = !0), dt.end = Object.assign({}, Ge ? S[Ge][1].start : Ce[1].end), S.splice(Ge || $, 0, ["exit", dt, Ce[2]]), $++, V++;
6201
+ Ht && (!Ge || Ht < Ge) && (dt._spread = !0), dt.end = Object.assign({}, Ge ? S[Ge][1].start : Ce[1].end), S.splice(Ge || $, 0, ["exit", dt, Ce[2]]), $++, V++;
6202
6202
  }
6203
6203
  if (Ce[1].type === "listItemPrefix") {
6204
6204
  const xt = {
@@ -6208,7 +6208,7 @@ function Af(e) {
6208
6208
  // @ts-expect-error: we’ll add `end` in a second.
6209
6209
  end: void 0
6210
6210
  };
6211
- dt = xt, S.splice($, 0, ["enter", xt, Ce[2]]), $++, V++, Ft = void 0, Ht = !0;
6211
+ dt = xt, S.splice($, 0, ["enter", xt, Ce[2]]), $++, V++, Ht = void 0, Ut = !0;
6212
6212
  }
6213
6213
  }
6214
6214
  }
@@ -6243,7 +6243,7 @@ function Af(e) {
6243
6243
  const V = this.stack.pop(), $ = this.tokenStack.pop();
6244
6244
  if ($)
6245
6245
  $[0].type !== S.type && (P ? P.call(this, S, $[0]) : ($[1] || ra).call(this, S, $[0]));
6246
- else throw new Error("Cannot close `" + S.type + "` (" + Qt({
6246
+ else throw new Error("Cannot close `" + S.type + "` (" + Gt({
6247
6247
  start: S.start,
6248
6248
  end: S.end
6249
6249
  }) + "): it’s not open");
@@ -6567,13 +6567,13 @@ function Cf(e, t) {
6567
6567
  }
6568
6568
  }
6569
6569
  function ra(e, t) {
6570
- throw e ? new Error("Cannot close `" + e.type + "` (" + Qt({
6570
+ throw e ? new Error("Cannot close `" + e.type + "` (" + Gt({
6571
6571
  start: e.start,
6572
6572
  end: e.end
6573
- }) + "): a different token (`" + t.type + "`, " + Qt({
6573
+ }) + "): a different token (`" + t.type + "`, " + Gt({
6574
6574
  start: t.start,
6575
6575
  end: t.end
6576
- }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Qt({
6576
+ }) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Gt({
6577
6577
  start: t.start,
6578
6578
  end: t.end
6579
6579
  }) + ") is still open");
@@ -6638,7 +6638,7 @@ function Lf(e, t) {
6638
6638
  return e.patch(t, n), e.applyData(t, n);
6639
6639
  }
6640
6640
  function Df(e, t) {
6641
- const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Dt(r.toLowerCase()), s = e.footnoteOrder.indexOf(r);
6641
+ const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), i = Rt(r.toLowerCase()), s = e.footnoteOrder.indexOf(r);
6642
6642
  let a, u = e.footnoteCounts.get(r);
6643
6643
  u === void 0 ? (u = 0, e.footnoteOrder.push(r), a = e.footnoteOrder.length) : a = s + 1, u += 1, e.footnoteCounts.set(r, u);
6644
6644
  const l = {
@@ -6690,13 +6690,13 @@ function Pf(e, t) {
6690
6690
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
6691
6691
  if (!r)
6692
6692
  return Ks(e, t);
6693
- const i = { src: Dt(r.url || ""), alt: t.alt };
6693
+ const i = { src: Rt(r.url || ""), alt: t.alt };
6694
6694
  r.title !== null && r.title !== void 0 && (i.title = r.title);
6695
6695
  const s = { type: "element", tagName: "img", properties: i, children: [] };
6696
6696
  return e.patch(t, s), e.applyData(t, s);
6697
6697
  }
6698
6698
  function Mf(e, t) {
6699
- const n = { src: Dt(t.url) };
6699
+ const n = { src: Rt(t.url) };
6700
6700
  t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
6701
6701
  const r = { type: "element", tagName: "img", properties: n, children: [] };
6702
6702
  return e.patch(t, r), e.applyData(t, r);
@@ -6716,7 +6716,7 @@ function Ff(e, t) {
6716
6716
  const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
6717
6717
  if (!r)
6718
6718
  return Ks(e, t);
6719
- const i = { href: Dt(r.url || "") };
6719
+ const i = { href: Rt(r.url || "") };
6720
6720
  r.title !== null && r.title !== void 0 && (i.title = r.title);
6721
6721
  const s = {
6722
6722
  type: "element",
@@ -6727,7 +6727,7 @@ function Ff(e, t) {
6727
6727
  return e.patch(t, s), e.applyData(t, s);
6728
6728
  }
6729
6729
  function Hf(e, t) {
6730
- const n = { href: Dt(t.url) };
6730
+ const n = { href: Rt(t.url) };
6731
6731
  t.title !== null && t.title !== void 0 && (n.title = t.title);
6732
6732
  const r = {
6733
6733
  type: "element",
@@ -6994,7 +6994,7 @@ const Js = -1, Gn = 0, Rn = 1, vn = 2, Zr = 3, ei = 4, ti = 5, ni = 6, Zs = 7, e
6994
6994
  return n(new oa[s](a), i);
6995
6995
  };
6996
6996
  return r;
6997
- }, ua = (e) => Zf(/* @__PURE__ */ new Map(), e)(0), _t = "", { toString: ep } = {}, { keys: tp } = Object, zt = (e) => {
6997
+ }, ua = (e) => Zf(/* @__PURE__ */ new Map(), e)(0), _t = "", { toString: ep } = {}, { keys: tp } = Object, Yt = (e) => {
6998
6998
  const t = typeof e;
6999
6999
  if (t !== "object" || !e)
7000
7000
  return [Gn, t];
@@ -7021,7 +7021,7 @@ const Js = -1, Gn = 0, Rn = 1, vn = 2, Zr = 3, ei = 4, ti = 5, ni = 6, Zs = 7, e
7021
7021
  }, s = (a) => {
7022
7022
  if (n.has(a))
7023
7023
  return n.get(a);
7024
- let [u, l] = zt(a);
7024
+ let [u, l] = Yt(a);
7025
7025
  switch (u) {
7026
7026
  case Gn: {
7027
7027
  let d = a;
@@ -7062,7 +7062,7 @@ const Js = -1, Gn = 0, Rn = 1, vn = 2, Zr = 3, ei = 4, ti = 5, ni = 6, Zs = 7, e
7062
7062
  return s(a.toJSON());
7063
7063
  const d = [], h = i([u, d], a);
7064
7064
  for (const m of tp(a))
7065
- (e || !_n(zt(a[m]))) && d.push([s(m), s(a[m])]);
7065
+ (e || !_n(Yt(a[m]))) && d.push([s(m), s(a[m])]);
7066
7066
  return h;
7067
7067
  }
7068
7068
  case Zr:
@@ -7074,13 +7074,13 @@ const Js = -1, Gn = 0, Rn = 1, vn = 2, Zr = 3, ei = 4, ti = 5, ni = 6, Zs = 7, e
7074
7074
  case ti: {
7075
7075
  const d = [], h = i([u, d], a);
7076
7076
  for (const [m, f] of a)
7077
- (e || !(_n(zt(m)) || _n(zt(f)))) && d.push([s(m), s(f)]);
7077
+ (e || !(_n(Yt(m)) || _n(Yt(f)))) && d.push([s(m), s(f)]);
7078
7078
  return h;
7079
7079
  }
7080
7080
  case ni: {
7081
7081
  const d = [], h = i([u, d], a);
7082
7082
  for (const m of a)
7083
- (e || !_n(zt(m))) && d.push(s(m));
7083
+ (e || !_n(Yt(m))) && d.push(s(m));
7084
7084
  return h;
7085
7085
  }
7086
7086
  }
@@ -7091,7 +7091,7 @@ const Js = -1, Gn = 0, Rn = 1, vn = 2, Zr = 3, ei = 4, ti = 5, ni = 6, Zs = 7, e
7091
7091
  }, la = (e, { json: t, lossy: n } = {}) => {
7092
7092
  const r = [];
7093
7093
  return np(!(t || n), !!t, /* @__PURE__ */ new Map(), r)(e), r;
7094
- }, kt = typeof structuredClone == "function" ? (
7094
+ }, It = typeof structuredClone == "function" ? (
7095
7095
  /* c8 ignore start */
7096
7096
  (e, t) => t && ("json" in t || "lossy" in t) ? ua(la(e, t)) : structuredClone(e)
7097
7097
  ) : (e, t) => ua(la(e, t));
@@ -7118,7 +7118,7 @@ function ap(e) {
7118
7118
  );
7119
7119
  if (!c)
7120
7120
  continue;
7121
- const d = e.all(c), h = String(c.identifier).toUpperCase(), m = Dt(h.toLowerCase());
7121
+ const d = e.all(c), h = String(c.identifier).toUpperCase(), m = Rt(h.toLowerCase());
7122
7122
  let f = 0;
7123
7123
  const T = [], y = e.footnoteCounts.get(h);
7124
7124
  for (; y !== void 0 && ++f <= y; ) {
@@ -7160,7 +7160,7 @@ function ap(e) {
7160
7160
  type: "element",
7161
7161
  tagName: s,
7162
7162
  properties: {
7163
- ...kt(a),
7163
+ ...It(a),
7164
7164
  id: "footnote-label"
7165
7165
  },
7166
7166
  children: [{ type: "text", value: i }]
@@ -7205,10 +7205,10 @@ function op(e, t) {
7205
7205
  return f(u, d, h);
7206
7206
  if (u.options.passThrough && u.options.passThrough.includes(m)) {
7207
7207
  if ("children" in d) {
7208
- const { children: y, ...N } = d, C = kt(N);
7208
+ const { children: y, ...N } = d, C = It(N);
7209
7209
  return C.children = u.all(d), C;
7210
7210
  }
7211
- return kt(d);
7211
+ return It(d);
7212
7212
  }
7213
7213
  return (u.options.unknownHandler || cp)(u, d, h);
7214
7214
  }
@@ -7245,7 +7245,7 @@ function lp(e, t) {
7245
7245
  const a = "children" in n ? n.children : [n];
7246
7246
  n = { type: "element", tagName: r, properties: {}, children: a };
7247
7247
  }
7248
- n.type === "element" && s && Object.assign(n.properties, kt(s)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
7248
+ n.type === "element" && s && Object.assign(n.properties, It(s)), "children" in n && n.children && i !== null && i !== void 0 && (n.children = i);
7249
7249
  }
7250
7250
  return n;
7251
7251
  }
@@ -8570,7 +8570,7 @@ function Bp(e) {
8570
8570
  vp.test(e.slice(0, t)) ? e : ""
8571
8571
  );
8572
8572
  }
8573
- const ro = Zt.memo(
8573
+ const ro = kt.memo(
8574
8574
  Mp,
8575
8575
  (e, t) => e.children === t.children && e.className === t.className
8576
8576
  ), Aa = /[#.]/g;
@@ -8936,11 +8936,11 @@ function em(e, t) {
8936
8936
  mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
8937
8937
  childNodes: []
8938
8938
  };
8939
- return n.childNodes = ai(e.children, n, t), vt(e, n), n;
8939
+ return n.childNodes = ai(e.children, n, t), Pt(e, n), n;
8940
8940
  }
8941
8941
  function tm(e, t) {
8942
8942
  const n = { nodeName: "#document-fragment", childNodes: [] };
8943
- return n.childNodes = ai(e.children, n, t), vt(e, n), n;
8943
+ return n.childNodes = ai(e.children, n, t), Pt(e, n), n;
8944
8944
  }
8945
8945
  function nm(e) {
8946
8946
  const t = {
@@ -8950,7 +8950,7 @@ function nm(e) {
8950
8950
  systemId: "",
8951
8951
  parentNode: null
8952
8952
  };
8953
- return vt(e, t), t;
8953
+ return Pt(e, t), t;
8954
8954
  }
8955
8955
  function rm(e) {
8956
8956
  const t = {
@@ -8958,7 +8958,7 @@ function rm(e) {
8958
8958
  value: e.value,
8959
8959
  parentNode: null
8960
8960
  };
8961
- return vt(e, t), t;
8961
+ return Pt(e, t), t;
8962
8962
  }
8963
8963
  function im(e) {
8964
8964
  const t = {
@@ -8966,7 +8966,7 @@ function im(e) {
8966
8966
  data: e.value,
8967
8967
  parentNode: null
8968
8968
  };
8969
- return vt(e, t), t;
8969
+ return Pt(e, t), t;
8970
8970
  }
8971
8971
  function am(e, t) {
8972
8972
  const n = t;
@@ -8994,7 +8994,7 @@ function am(e, t) {
8994
8994
  childNodes: [],
8995
8995
  parentNode: null
8996
8996
  };
8997
- return u.childNodes = ai(e.children, u, r), vt(e, u), e.tagName === "template" && e.content && (u.content = tm(e.content, r)), u;
8997
+ return u.childNodes = ai(e.children, u, r), Pt(e, u), e.tagName === "template" && e.content && (u.content = tm(e.content, r)), u;
8998
8998
  }
8999
8999
  function sm(e, t, n) {
9000
9000
  const r = Vn(e, t);
@@ -9021,7 +9021,7 @@ function ai(e, t, n) {
9021
9021
  }
9022
9022
  return i;
9023
9023
  }
9024
- function vt(e, t) {
9024
+ function Pt(e, t) {
9025
9025
  const n = e.position;
9026
9026
  n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
9027
9027
  startLine: n.start.line,
@@ -9667,7 +9667,7 @@ const _m = /* @__PURE__ */ new Map([
9667
9667
  [_.WBR, o.WBR],
9668
9668
  [_.XMP, o.XMP]
9669
9669
  ]);
9670
- function Pt(e) {
9670
+ function Mt(e) {
9671
9671
  var t;
9672
9672
  return (t = _m.get(e)) !== null && t !== void 0 ? t : o.UNKNOWN;
9673
9673
  }
@@ -9777,14 +9777,14 @@ const oe = {
9777
9777
  function Am(e) {
9778
9778
  return e >= p.DIGIT_0 && e <= p.DIGIT_9;
9779
9779
  }
9780
- function Wt(e) {
9780
+ function jt(e) {
9781
9781
  return e >= p.LATIN_CAPITAL_A && e <= p.LATIN_CAPITAL_Z;
9782
9782
  }
9783
9783
  function Cm(e) {
9784
9784
  return e >= p.LATIN_SMALL_A && e <= p.LATIN_SMALL_Z;
9785
9785
  }
9786
9786
  function rt(e) {
9787
- return Cm(e) || Wt(e);
9787
+ return Cm(e) || jt(e);
9788
9788
  }
9789
9789
  function Na(e) {
9790
9790
  return rt(e) || Am(e);
@@ -9949,7 +9949,7 @@ class Im {
9949
9949
  }
9950
9950
  emitCurrentTagToken() {
9951
9951
  const t = this.currentToken;
9952
- this.prepareToken(t), t.tagID = Pt(t.tagName), t.type === G.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(k.endTagWithAttributes), t.selfClosing && this._err(k.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
9952
+ this.prepareToken(t), t.tagID = Mt(t.tagName), t.type === G.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(k.endTagWithAttributes), t.selfClosing && this._err(k.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
9953
9953
  }
9954
9954
  emitCurrentComment(t) {
9955
9955
  this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
@@ -10496,7 +10496,7 @@ class Im {
10496
10496
  break;
10497
10497
  }
10498
10498
  default:
10499
- n.tagName += String.fromCodePoint(Wt(t) ? An(t) : t);
10499
+ n.tagName += String.fromCodePoint(jt(t) ? An(t) : t);
10500
10500
  }
10501
10501
  }
10502
10502
  // RCDATA less-than sign state
@@ -10828,7 +10828,7 @@ class Im {
10828
10828
  break;
10829
10829
  }
10830
10830
  default:
10831
- this.currentAttr.name += String.fromCodePoint(Wt(t) ? An(t) : t);
10831
+ this.currentAttr.name += String.fromCodePoint(jt(t) ? An(t) : t);
10832
10832
  }
10833
10833
  }
10834
10834
  // After attribute name state
@@ -11229,7 +11229,7 @@ class Im {
11229
11229
  // Before DOCTYPE name state
11230
11230
  //------------------------------------------------------------------
11231
11231
  _stateBeforeDoctypeName(t) {
11232
- if (Wt(t))
11232
+ if (jt(t))
11233
11233
  this._createDoctypeToken(String.fromCharCode(An(t))), this.state = g.DOCTYPE_NAME;
11234
11234
  else
11235
11235
  switch (t) {
@@ -11283,7 +11283,7 @@ class Im {
11283
11283
  break;
11284
11284
  }
11285
11285
  default:
11286
- n.name += String.fromCodePoint(Wt(t) ? An(t) : t);
11286
+ n.name += String.fromCodePoint(jt(t) ? An(t) : t);
11287
11287
  }
11288
11288
  }
11289
11289
  // After DOCTYPE name state
@@ -12440,7 +12440,7 @@ function si(e) {
12440
12440
  }
12441
12441
  function Km(e) {
12442
12442
  const t = Qm.get(e.tagName);
12443
- t != null && (e.tagName = t, e.tagID = Pt(e.tagName));
12443
+ t != null && (e.tagName = t, e.tagID = Mt(e.tagName));
12444
12444
  }
12445
12445
  function $m(e, t) {
12446
12446
  return t === D.MATHML && (e === o.MI || e === o.MO || e === o.MN || e === o.MS || e === o.MTEXT);
@@ -12481,7 +12481,7 @@ class Ba {
12481
12481
  this.fragmentContext = r, this.scriptHandler = i, this.currentToken = null, this.stopped = !1, this.insertionMode = E.INITIAL, this.originalInsertionMode = E.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
12482
12482
  ...Ma,
12483
12483
  ...t
12484
- }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Im(this.options, this), this.activeFormattingElements = new Pm(this.treeAdapter), this.fragmentContextID = r ? Pt(this.treeAdapter.getTagName(r)) : o.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new vm(this.document, this.treeAdapter, this);
12484
+ }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = n ?? this.treeAdapter.createDocument(), this.tokenizer = new Im(this.options, this), this.activeFormattingElements = new Pm(this.treeAdapter), this.fragmentContextID = r ? Mt(this.treeAdapter.getTagName(r)) : o.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new vm(this.document, this.treeAdapter, this);
12485
12485
  }
12486
12486
  // API
12487
12487
  static parse(t, n) {
@@ -12882,27 +12882,27 @@ class Ba {
12882
12882
  }
12883
12883
  switch (this.insertionMode) {
12884
12884
  case E.INITIAL: {
12885
- Yt(this, t);
12885
+ qt(this, t);
12886
12886
  break;
12887
12887
  }
12888
12888
  case E.BEFORE_HTML: {
12889
- Gt(this, t);
12889
+ Xt(this, t);
12890
12890
  break;
12891
12891
  }
12892
12892
  case E.BEFORE_HEAD: {
12893
- Xt(this, t);
12893
+ Kt(this, t);
12894
12894
  break;
12895
12895
  }
12896
12896
  case E.IN_HEAD: {
12897
- Kt(this, t);
12897
+ $t(this, t);
12898
12898
  break;
12899
12899
  }
12900
12900
  case E.IN_HEAD_NO_SCRIPT: {
12901
- $t(this, t);
12901
+ Jt(this, t);
12902
12902
  break;
12903
12903
  }
12904
12904
  case E.AFTER_HEAD: {
12905
- Jt(this, t);
12905
+ Zt(this, t);
12906
12906
  break;
12907
12907
  }
12908
12908
  case E.IN_BODY:
@@ -12950,27 +12950,27 @@ class Ba {
12950
12950
  }
12951
12951
  switch (this.insertionMode) {
12952
12952
  case E.INITIAL: {
12953
- Yt(this, t);
12953
+ qt(this, t);
12954
12954
  break;
12955
12955
  }
12956
12956
  case E.BEFORE_HTML: {
12957
- Gt(this, t);
12957
+ Xt(this, t);
12958
12958
  break;
12959
12959
  }
12960
12960
  case E.BEFORE_HEAD: {
12961
- Xt(this, t);
12961
+ Kt(this, t);
12962
12962
  break;
12963
12963
  }
12964
12964
  case E.IN_HEAD: {
12965
- Kt(this, t);
12965
+ $t(this, t);
12966
12966
  break;
12967
12967
  }
12968
12968
  case E.IN_HEAD_NO_SCRIPT: {
12969
- $t(this, t);
12969
+ Jt(this, t);
12970
12970
  break;
12971
12971
  }
12972
12972
  case E.AFTER_HEAD: {
12973
- Jt(this, t);
12973
+ Zt(this, t);
12974
12974
  break;
12975
12975
  }
12976
12976
  case E.TEXT: {
@@ -13026,7 +13026,7 @@ class Ba {
13026
13026
  break;
13027
13027
  }
13028
13028
  case E.IN_TABLE_TEXT: {
13029
- qt(this, t);
13029
+ Wt(this, t);
13030
13030
  break;
13031
13031
  }
13032
13032
  case E.AFTER_BODY: {
@@ -13055,7 +13055,7 @@ class Ba {
13055
13055
  break;
13056
13056
  }
13057
13057
  case E.IN_TABLE_TEXT: {
13058
- qt(this, t);
13058
+ Wt(this, t);
13059
13059
  break;
13060
13060
  }
13061
13061
  }
@@ -13082,7 +13082,7 @@ class Ba {
13082
13082
  _startTagOutsideForeignContent(t) {
13083
13083
  switch (this.insertionMode) {
13084
13084
  case E.INITIAL: {
13085
- Yt(this, t);
13085
+ qt(this, t);
13086
13086
  break;
13087
13087
  }
13088
13088
  case E.BEFORE_HTML: {
@@ -13110,11 +13110,11 @@ class Ba {
13110
13110
  break;
13111
13111
  }
13112
13112
  case E.IN_TABLE: {
13113
- It(this, t);
13113
+ Nt(this, t);
13114
13114
  break;
13115
13115
  }
13116
13116
  case E.IN_TABLE_TEXT: {
13117
- qt(this, t);
13117
+ Wt(this, t);
13118
13118
  break;
13119
13119
  }
13120
13120
  case E.IN_CAPTION: {
@@ -13179,7 +13179,7 @@ class Ba {
13179
13179
  _endTagOutsideForeignContent(t) {
13180
13180
  switch (this.insertionMode) {
13181
13181
  case E.INITIAL: {
13182
- Yt(this, t);
13182
+ qt(this, t);
13183
13183
  break;
13184
13184
  }
13185
13185
  case E.BEFORE_HTML: {
@@ -13215,7 +13215,7 @@ class Ba {
13215
13215
  break;
13216
13216
  }
13217
13217
  case E.IN_TABLE_TEXT: {
13218
- qt(this, t);
13218
+ Wt(this, t);
13219
13219
  break;
13220
13220
  }
13221
13221
  case E.IN_CAPTION: {
@@ -13272,27 +13272,27 @@ class Ba {
13272
13272
  onEof(t) {
13273
13273
  switch (this.insertionMode) {
13274
13274
  case E.INITIAL: {
13275
- Yt(this, t);
13275
+ qt(this, t);
13276
13276
  break;
13277
13277
  }
13278
13278
  case E.BEFORE_HTML: {
13279
- Gt(this, t);
13279
+ Xt(this, t);
13280
13280
  break;
13281
13281
  }
13282
13282
  case E.BEFORE_HEAD: {
13283
- Xt(this, t);
13283
+ Kt(this, t);
13284
13284
  break;
13285
13285
  }
13286
13286
  case E.IN_HEAD: {
13287
- Kt(this, t);
13287
+ $t(this, t);
13288
13288
  break;
13289
13289
  }
13290
13290
  case E.IN_HEAD_NO_SCRIPT: {
13291
- $t(this, t);
13291
+ Jt(this, t);
13292
13292
  break;
13293
13293
  }
13294
13294
  case E.AFTER_HEAD: {
13295
- Jt(this, t);
13295
+ Zt(this, t);
13296
13296
  break;
13297
13297
  }
13298
13298
  case E.IN_BODY:
@@ -13312,7 +13312,7 @@ class Ba {
13312
13312
  break;
13313
13313
  }
13314
13314
  case E.IN_TABLE_TEXT: {
13315
- qt(this, t);
13315
+ Wt(this, t);
13316
13316
  break;
13317
13317
  }
13318
13318
  case E.IN_TEMPLATE: {
@@ -13404,7 +13404,7 @@ function o1(e, t) {
13404
13404
  return e.openElements.replace(t.element, r), t.element = r, r;
13405
13405
  }
13406
13406
  function u1(e, t, n) {
13407
- const r = e.treeAdapter.getTagName(t), i = Pt(r);
13407
+ const r = e.treeAdapter.getTagName(t), i = Mt(r);
13408
13408
  if (e._isElementCausesFosterParenting(i))
13409
13409
  e._fosterParentElement(n);
13410
13410
  else {
@@ -13457,17 +13457,17 @@ function h1(e, t) {
13457
13457
  const n = t.forceQuirks ? De.QUIRKS : Ym(t);
13458
13458
  zm(t) || e._err(t, k.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = E.BEFORE_HTML;
13459
13459
  }
13460
- function Yt(e, t) {
13460
+ function qt(e, t) {
13461
13461
  e._err(t, k.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, De.QUIRKS), e.insertionMode = E.BEFORE_HTML, e._processToken(t);
13462
13462
  }
13463
13463
  function f1(e, t) {
13464
- t.tagID === o.HTML ? (e._insertElement(t, D.HTML), e.insertionMode = E.BEFORE_HEAD) : Gt(e, t);
13464
+ t.tagID === o.HTML ? (e._insertElement(t, D.HTML), e.insertionMode = E.BEFORE_HEAD) : Xt(e, t);
13465
13465
  }
13466
13466
  function p1(e, t) {
13467
13467
  const n = t.tagID;
13468
- (n === o.HTML || n === o.HEAD || n === o.BODY || n === o.BR) && Gt(e, t);
13468
+ (n === o.HTML || n === o.HEAD || n === o.BODY || n === o.BR) && Xt(e, t);
13469
13469
  }
13470
- function Gt(e, t) {
13470
+ function Xt(e, t) {
13471
13471
  e._insertFakeRootElement(), e.insertionMode = E.BEFORE_HEAD, e._processToken(t);
13472
13472
  }
13473
13473
  function m1(e, t) {
@@ -13481,14 +13481,14 @@ function m1(e, t) {
13481
13481
  break;
13482
13482
  }
13483
13483
  default:
13484
- Xt(e, t);
13484
+ Kt(e, t);
13485
13485
  }
13486
13486
  }
13487
13487
  function g1(e, t) {
13488
13488
  const n = t.tagID;
13489
- n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? Xt(e, t) : e._err(t, k.endTagWithoutMatchingOpenElement);
13489
+ n === o.HEAD || n === o.BODY || n === o.HTML || n === o.BR ? Kt(e, t) : e._err(t, k.endTagWithoutMatchingOpenElement);
13490
13490
  }
13491
- function Xt(e, t) {
13491
+ function Kt(e, t) {
13492
13492
  e._insertFakeElement(_.HEAD, o.HEAD), e.headElement = e.openElements.current, e.insertionMode = E.IN_HEAD, e._processToken(t);
13493
13493
  }
13494
13494
  function He(e, t) {
@@ -13531,7 +13531,7 @@ function He(e, t) {
13531
13531
  break;
13532
13532
  }
13533
13533
  default:
13534
- Kt(e, t);
13534
+ $t(e, t);
13535
13535
  }
13536
13536
  }
13537
13537
  function b1(e, t) {
@@ -13543,7 +13543,7 @@ function b1(e, t) {
13543
13543
  case o.BODY:
13544
13544
  case o.BR:
13545
13545
  case o.HTML: {
13546
- Kt(e, t);
13546
+ $t(e, t);
13547
13547
  break;
13548
13548
  }
13549
13549
  case o.TEMPLATE: {
@@ -13557,7 +13557,7 @@ function b1(e, t) {
13557
13557
  function wt(e, t) {
13558
13558
  e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== o.TEMPLATE && e._err(t, k.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(o.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, k.endTagWithoutMatchingOpenElement);
13559
13559
  }
13560
- function Kt(e, t) {
13560
+ function $t(e, t) {
13561
13561
  e.openElements.pop(), e.insertionMode = E.AFTER_HEAD, e._processToken(t);
13562
13562
  }
13563
13563
  function E1(e, t) {
@@ -13581,7 +13581,7 @@ function E1(e, t) {
13581
13581
  break;
13582
13582
  }
13583
13583
  default:
13584
- $t(e, t);
13584
+ Jt(e, t);
13585
13585
  }
13586
13586
  }
13587
13587
  function T1(e, t) {
@@ -13591,14 +13591,14 @@ function T1(e, t) {
13591
13591
  break;
13592
13592
  }
13593
13593
  case o.BR: {
13594
- $t(e, t);
13594
+ Jt(e, t);
13595
13595
  break;
13596
13596
  }
13597
13597
  default:
13598
13598
  e._err(t, k.endTagWithoutMatchingOpenElement);
13599
13599
  }
13600
13600
  }
13601
- function $t(e, t) {
13601
+ function Jt(e, t) {
13602
13602
  const n = t.type === G.EOF ? k.openElementsLeftAfterEof : k.disallowedContentInNoscriptInHead;
13603
13603
  e._err(t, n), e.openElements.pop(), e.insertionMode = E.IN_HEAD, e._processToken(t);
13604
13604
  }
@@ -13634,7 +13634,7 @@ function w1(e, t) {
13634
13634
  break;
13635
13635
  }
13636
13636
  default:
13637
- Jt(e, t);
13637
+ Zt(e, t);
13638
13638
  }
13639
13639
  }
13640
13640
  function x1(e, t) {
@@ -13642,7 +13642,7 @@ function x1(e, t) {
13642
13642
  case o.BODY:
13643
13643
  case o.HTML:
13644
13644
  case o.BR: {
13645
- Jt(e, t);
13645
+ Zt(e, t);
13646
13646
  break;
13647
13647
  }
13648
13648
  case o.TEMPLATE: {
@@ -13653,7 +13653,7 @@ function x1(e, t) {
13653
13653
  e._err(t, k.endTagWithoutMatchingOpenElement);
13654
13654
  }
13655
13655
  }
13656
- function Jt(e, t) {
13656
+ function Zt(e, t) {
13657
13657
  e._insertFakeElement(_.BODY, o.BODY), e.insertionMode = E.IN_BODY, Xn(e, t);
13658
13658
  }
13659
13659
  function Xn(e, t) {
@@ -14211,7 +14211,7 @@ function pg(e, t) {
14211
14211
  function mg(e, t) {
14212
14212
  !e.formElement && e.openElements.tmplCount === 0 && (e._insertElement(t, D.HTML), e.formElement = e.openElements.current, e.openElements.pop());
14213
14213
  }
14214
- function It(e, t) {
14214
+ function Nt(e, t) {
14215
14215
  switch (t.tagID) {
14216
14216
  case o.TD:
14217
14217
  case o.TH:
@@ -14295,7 +14295,7 @@ function Oo(e, t) {
14295
14295
  function Lo(e, t) {
14296
14296
  e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
14297
14297
  }
14298
- function qt(e, t) {
14298
+ function Wt(e, t) {
14299
14299
  let n = 0;
14300
14300
  if (e.hasNonWhitespacePendingCharacterToken)
14301
14301
  for (; n < e.pendingCharacterTokens.length; n++)
@@ -14308,7 +14308,7 @@ function qt(e, t) {
14308
14308
  const Do = /* @__PURE__ */ new Set([o.CAPTION, o.COL, o.COLGROUP, o.TBODY, o.TD, o.TFOOT, o.TH, o.THEAD, o.TR]);
14309
14309
  function gg(e, t) {
14310
14310
  const n = t.tagID;
14311
- Do.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = E.IN_TABLE, It(e, t)) : be(e, t);
14311
+ Do.has(n) ? e.openElements.hasInTableScope(o.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(o.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = E.IN_TABLE, Nt(e, t)) : be(e, t);
14312
14312
  }
14313
14313
  function bg(e, t) {
14314
14314
  const n = t.tagID;
@@ -14387,11 +14387,11 @@ function $n(e, t) {
14387
14387
  case o.TBODY:
14388
14388
  case o.TFOOT:
14389
14389
  case o.THEAD: {
14390
- e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = E.IN_TABLE, It(e, t));
14390
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = E.IN_TABLE, Nt(e, t));
14391
14391
  break;
14392
14392
  }
14393
14393
  default:
14394
- It(e, t);
14394
+ Nt(e, t);
14395
14395
  }
14396
14396
  }
14397
14397
  function vr(e, t) {
@@ -14438,7 +14438,7 @@ function Jn(e, t) {
14438
14438
  break;
14439
14439
  }
14440
14440
  default:
14441
- It(e, t);
14441
+ Nt(e, t);
14442
14442
  }
14443
14443
  }
14444
14444
  function Ro(e, t) {
@@ -14579,7 +14579,7 @@ function yg(e, t) {
14579
14579
  case o.TBODY:
14580
14580
  case o.TFOOT:
14581
14581
  case o.THEAD: {
14582
- e.tmplInsertionModeStack[0] = E.IN_TABLE, e.insertionMode = E.IN_TABLE, It(e, t);
14582
+ e.tmplInsertionModeStack[0] = E.IN_TABLE, e.insertionMode = E.IN_TABLE, Nt(e, t);
14583
14583
  break;
14584
14584
  }
14585
14585
  case o.COL: {
@@ -14734,7 +14734,7 @@ function Ho(e, t) {
14734
14734
  stitches: !1,
14735
14735
  options: t || {}
14736
14736
  };
14737
- r(e, i), Mt(i, je());
14737
+ r(e, i), Bt(i, je());
14738
14738
  const s = n ? i.parser.document : i.parser.getFragment(), a = Gp(s, {
14739
14739
  // To do: support `space`?
14740
14740
  file: i.options.file
@@ -14770,7 +14770,7 @@ function Ug(e, t) {
14770
14770
  chars: e.value,
14771
14771
  location: fn(e)
14772
14772
  };
14773
- Mt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
14773
+ Bt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
14774
14774
  }
14775
14775
  function zg(e, t) {
14776
14776
  const n = {
@@ -14781,7 +14781,7 @@ function zg(e, t) {
14781
14781
  systemId: "",
14782
14782
  location: fn(e)
14783
14783
  };
14784
- Mt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
14784
+ Bt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
14785
14785
  }
14786
14786
  function Yg(e, t) {
14787
14787
  t.stitches = !0;
@@ -14801,7 +14801,7 @@ function zo(e, t) {
14801
14801
  data: n,
14802
14802
  location: fn(e)
14803
14803
  };
14804
- Mt(t, je(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
14804
+ Bt(t, je(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
14805
14805
  }
14806
14806
  function qg(e, t) {
14807
14807
  if (t.parser.tokenizer.preprocessor.html = "", t.parser.tokenizer.preprocessor.pos = -1, t.parser.tokenizer.preprocessor.lastGapPos = -2, t.parser.tokenizer.preprocessor.gapStack = [], t.parser.tokenizer.preprocessor.skipNextNewLine = !1, t.parser.tokenizer.preprocessor.lastChunkWritten = !1, t.parser.tokenizer.preprocessor.endOfChunkHit = !1, t.parser.tokenizer.preprocessor.isEol = !1, Yo(t, je(e)), t.parser.tokenizer.write(
@@ -14826,7 +14826,7 @@ function Wg(e, t) {
14826
14826
  throw Bg.has(n.type) && (r = ". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"), new Error("Cannot compile `" + n.type + "` node" + r);
14827
14827
  }
14828
14828
  }
14829
- function Mt(e, t) {
14829
+ function Bt(e, t) {
14830
14830
  Yo(e, t);
14831
14831
  const n = e.parser.tokenizer.currentCharacterToken;
14832
14832
  n && n.location && (n.location.endLine = e.parser.tokenizer.preprocessor.line, n.location.endCol = e.parser.tokenizer.preprocessor.col + 1, n.location.endOffset = e.parser.tokenizer.preprocessor.offset + 1, e.parser.currentToken = n, e.parser._processToken(e.parser.currentToken)), e.parser.tokenizer.paused = !1, e.parser.tokenizer.inLoop = !1, e.parser.tokenizer.active = !1, e.parser.tokenizer.returnState = oe.DATA, e.parser.tokenizer.charRefCode = -1, e.parser.tokenizer.consumedAfterSnapshot = -1, e.parser.tokenizer.currentLocation = null, e.parser.tokenizer.currentCharacterToken = null, e.parser.tokenizer.currentToken = null, e.parser.tokenizer.currentAttr = { name: "", value: "" };
@@ -14847,7 +14847,7 @@ function Yo(e, t) {
14847
14847
  function jg(e, t) {
14848
14848
  const n = e.tagName.toLowerCase();
14849
14849
  if (t.parser.tokenizer.state === oe.PLAINTEXT) return;
14850
- Mt(t, je(e));
14850
+ Bt(t, je(e));
14851
14851
  const r = t.parser.openElements.current;
14852
14852
  let i = "namespaceURI" in r ? r.namespaceURI : pt.html;
14853
14853
  i === pt.html && n === "svg" && (i = pt.svg);
@@ -14858,7 +14858,7 @@ function jg(e, t) {
14858
14858
  ), a = {
14859
14859
  type: G.START_TAG,
14860
14860
  tagName: n,
14861
- tagID: Pt(n),
14861
+ tagID: Mt(n),
14862
14862
  // We always send start and end tags.
14863
14863
  selfClosing: !1,
14864
14864
  ackSelfClosing: !1,
@@ -14872,11 +14872,11 @@ function jg(e, t) {
14872
14872
  function Vg(e, t) {
14873
14873
  const n = e.tagName.toLowerCase();
14874
14874
  if (!t.parser.tokenizer.inForeignNode && om.includes(n) || t.parser.tokenizer.state === oe.PLAINTEXT) return;
14875
- Mt(t, Qn(e));
14875
+ Bt(t, Qn(e));
14876
14876
  const r = {
14877
14877
  type: G.END_TAG,
14878
14878
  tagName: n,
14879
- tagID: Pt(n),
14879
+ tagID: Mt(n),
14880
14880
  selfClosing: !1,
14881
14881
  ackSelfClosing: !1,
14882
14882
  attrs: [],
@@ -14912,7 +14912,7 @@ function fn(e) {
14912
14912
  };
14913
14913
  }
14914
14914
  function Gg(e) {
14915
- return "children" in e ? kt({ ...e, children: [] }) : kt(e);
14915
+ return "children" in e ? It({ ...e, children: [] }) : It(e);
14916
14916
  }
14917
14917
  function qo(e) {
14918
14918
  return function(t, n) {
@@ -14946,10 +14946,10 @@ function Xg(e, t) {
14946
14946
  var Wo, jo;
14947
14947
  typeof document < "u" && (Wo = document);
14948
14948
  typeof window < "u" && (jo = window);
14949
- var Vo = /* @__PURE__ */ Zt.createContext({
14949
+ var Vo = /* @__PURE__ */ kt.createContext({
14950
14950
  document: Wo,
14951
14951
  window: jo
14952
- }), Kg = () => Zt.useContext(Vo), $g = ["children", "head", "initialContent", "src", "mountTarget"], ci = /* @__PURE__ */ Ur((e, t) => {
14952
+ }), Kg = () => kt.useContext(Vo), $g = ["children", "head", "initialContent", "src", "mountTarget"], ci = /* @__PURE__ */ Ur((e, t) => {
14953
14953
  var {
14954
14954
  children: n,
14955
14955
  head: r,
@@ -14970,7 +14970,7 @@ var Vo = /* @__PURE__ */ Zt.createContext({
14970
14970
  }, [l]);
14971
14971
  zr(() => {
14972
14972
  !s && u.onLoad && l && u.onLoad(N.current);
14973
- }, [l]), St(() => {
14973
+ }, [l]), Ot(() => {
14974
14974
  if (d && !s) {
14975
14975
  var M;
14976
14976
  (M = d.contentWindow) == null || M.addEventListener("DOMContentLoaded", C);
@@ -15016,7 +15016,7 @@ function Zg() {
15016
15016
  }
15017
15017
  Zn.Portal = Jg;
15018
15018
  Zn.Container = Zg;
15019
- const Nt = {
15019
+ const St = {
15020
15020
  x: 2,
15021
15021
  y: 2
15022
15022
  }, $e = wu(
@@ -15034,7 +15034,7 @@ const Nt = {
15034
15034
  ), B = Math.max(
15035
15035
  -1,
15036
15036
  Math.min(1, L / (C.height / 2))
15037
- ), I = M * Nt.x, j = B * Nt.y;
15037
+ ), I = M * St.x, j = B * St.y;
15038
15038
  l({ x: I, y: j }), (Y = (z = e.props).onMouseMove) == null || Y.call(z, T);
15039
15039
  }, h = () => {
15040
15040
  var T, y;
@@ -15328,7 +15328,7 @@ function tb(e) {
15328
15328
  ) });
15329
15329
  }
15330
15330
  const fi = qe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
15331
- Lt.Root,
15331
+ Dt.Root,
15332
15332
  {
15333
15333
  ref: n,
15334
15334
  className: W(
@@ -15339,18 +15339,18 @@ const fi = qe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
15339
15339
  ...t
15340
15340
  }
15341
15341
  ));
15342
- fi.displayName = Lt.Root.displayName;
15342
+ fi.displayName = Dt.Root.displayName;
15343
15343
  const pi = qe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
15344
- Lt.Image,
15344
+ Dt.Image,
15345
15345
  {
15346
15346
  ref: n,
15347
15347
  className: W("aspect-square h-full w-full", e),
15348
15348
  ...t
15349
15349
  }
15350
15350
  ));
15351
- pi.displayName = Lt.Image.displayName;
15351
+ pi.displayName = Dt.Image.displayName;
15352
15352
  const mi = qe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
15353
- Lt.Fallback,
15353
+ Dt.Fallback,
15354
15354
  {
15355
15355
  ref: n,
15356
15356
  className: W(
@@ -15360,7 +15360,7 @@ const mi = qe.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
15360
15360
  ...t
15361
15361
  }
15362
15362
  ));
15363
- mi.displayName = Lt.Fallback.displayName;
15363
+ mi.displayName = Dt.Fallback.displayName;
15364
15364
  function Mr({
15365
15365
  agent: e,
15366
15366
  ...t
@@ -15403,7 +15403,7 @@ const nb = 10, rb = (e, t, n) => ({
15403
15403
  ...a
15404
15404
  }, u) => {
15405
15405
  const l = e ? ob[e](t, i, s) : {};
15406
- return r && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ b(jt.div, { ref: u, ...a, ...l, children: n });
15406
+ return r && l.exit && typeof l.exit == "object" && !Array.isArray(l.exit) && (l.exit.transition = { duration: 0 }), /* @__PURE__ */ b(Vt.div, { ref: u, ...a, ...l, children: n });
15407
15407
  }
15408
15408
  );
15409
15409
  ne.displayName = "MotionDiv";
@@ -15424,9 +15424,9 @@ function ub({ agent: e }) {
15424
15424
  // 'border',
15425
15425
  ),
15426
15426
  children: [
15427
- /* @__PURE__ */ b(jt.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
15428
- /* @__PURE__ */ b(jt.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
15429
- /* @__PURE__ */ b(jt.span, { className: "rounded-full animate-bounce" })
15427
+ /* @__PURE__ */ b(Vt.span, { className: "rounded-full animate-bounce [animation-delay:-0.3s]" }),
15428
+ /* @__PURE__ */ b(Vt.span, { className: "rounded-full animate-bounce [animation-delay:-0.15s]" }),
15429
+ /* @__PURE__ */ b(Vt.span, { className: "rounded-full animate-bounce" })
15430
15430
  ]
15431
15431
  }
15432
15432
  )
@@ -15469,8 +15469,8 @@ function rn({
15469
15469
  }
15470
15470
  const za = 450;
15471
15471
  function et() {
15472
- const [e, t] = Zt.useState(() => (window.top || window).innerWidth < za);
15473
- return Zt.useEffect(() => {
15472
+ const [e, t] = kt.useState(() => (window.top || window).innerWidth < za);
15473
+ return kt.useEffect(() => {
15474
15474
  const n = window.top || window, r = () => {
15475
15475
  t(n.innerWidth < za);
15476
15476
  };
@@ -15483,7 +15483,7 @@ const Cn = {
15483
15483
  transitionTimingFunction: "cubic-bezier(0.16, 1, 0.3, 1)",
15484
15484
  transitionDuration: "1000ms"
15485
15485
  };
15486
- function Bt() {
15486
+ function Ft() {
15487
15487
  var a, u, l, c, d, h, m, f, T, y, N, C, O, L, M, B, I, j, z, Y, A, F, H, Z, ie, K, de, ue, Te, Se, w, we, Oe, x, xe, Ue, le, tt, Pe, Ve, Qe, ct, mn, gn, bn;
15488
15488
  const { isSmallScreen: e } = et(), { theme: t } = Ne(), n = (En, Tn) => e ? `100dv${En}` : Tn, r = {
15489
15489
  zIndex: ((a = t == null ? void 0 : t.widgetTrigger) == null ? void 0 : a.zIndex) ?? 1e7,
@@ -15510,7 +15510,7 @@ function Bt() {
15510
15510
  transitionTimingFunction: ((B = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : B.transitionTimingFunction) ?? Cn.transitionTimingFunction,
15511
15511
  transitionDuration: ((I = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : I.transitionDuration) ?? Cn.transitionDuration,
15512
15512
  offset: {
15513
- side: e ? 0 : r.offset.bottom + r.size.button + Nt.y * 2 + (((z = (j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.offset) == null ? void 0 : z.side) ?? 10),
15513
+ side: e ? 0 : r.offset.bottom + r.size.button + St.y * 2 + (((z = (j = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : j.offset) == null ? void 0 : z.side) ?? 10),
15514
15514
  align: e ? 0 : r.offset.right + (((A = (Y = t == null ? void 0 : t.widgetContentContainer) == null ? void 0 : Y.offset) == null ? void 0 : A.align) ?? 0)
15515
15515
  }
15516
15516
  },
@@ -15569,7 +15569,7 @@ function Bt() {
15569
15569
  100vh
15570
15570
  - ${i.widgetTrigger.offset.bottom}px
15571
15571
  - ${i.widgetContentContainer.offset.side}px
15572
- - ${Nt.y * 2}px
15572
+ - ${St.y * 2}px
15573
15573
  )`
15574
15574
  ),
15575
15575
  // Subtract the offset.right twice so that it adds a bit of padding to the left
@@ -15694,7 +15694,7 @@ function iu(e) {
15694
15694
  }
15695
15695
  const gi = () => {
15696
15696
  const [e, t] = Ie("ltr");
15697
- return St(() => {
15697
+ return Ot(() => {
15698
15698
  const n = () => {
15699
15699
  typeof document > "u" || t(window.getComputedStyle(document.body).direction);
15700
15700
  };
@@ -16197,7 +16197,7 @@ function Ab({
16197
16197
  const [i, s] = Ie(
16198
16198
  null
16199
16199
  );
16200
- St(() => {
16200
+ Ot(() => {
16201
16201
  if (!t.type.startsWith("image/")) return;
16202
16202
  const l = new FileReader();
16203
16203
  return l.onload = () => s(l.result), l.onerror = () => console.error("Error reading file"), l.readAsDataURL(t), () => l.abort();
@@ -16506,7 +16506,7 @@ function Ei({
16506
16506
  height: t
16507
16507
  }) {
16508
16508
  const { isSmallScreen: n } = et(), { setWidth: r, setHeight: i } = su();
16509
- St(() => {
16509
+ Ot(() => {
16510
16510
  e && r(e), t && i(t);
16511
16511
  }, [n, t, e, r, i]);
16512
16512
  }
@@ -16619,7 +16619,7 @@ function Sb() {
16619
16619
  function Ob({
16620
16620
  button: e
16621
16621
  }) {
16622
- const { setIsOpen: t } = Ot(), { isSmallScreen: n } = et();
16622
+ const { setIsOpen: t } = Lt(), { isSmallScreen: n } = et();
16623
16623
  return n && e.hideOnSmallScreen || !n && e.hideOnLargeScreen ? null : /* @__PURE__ */ b(
16624
16624
  he,
16625
16625
  {
@@ -16636,7 +16636,7 @@ function Br({
16636
16636
  }) {
16637
16637
  const [t, n] = Ie(!1), {
16638
16638
  routerState: { screen: r }
16639
- } = Je(), { isSmallScreen: i } = et(), { theme: s } = Bt(), { setWidth: a, setHeight: u } = su();
16639
+ } = Je(), { isSmallScreen: i } = et(), { theme: s } = Ft(), { setWidth: a, setHeight: u } = su();
16640
16640
  if (r !== "chat" && r !== "sessions") return null;
16641
16641
  const l = (() => {
16642
16642
  switch (r) {
@@ -16682,7 +16682,7 @@ function Lb({
16682
16682
  button: e
16683
16683
  }) {
16684
16684
  var c, d, h;
16685
- const [t, n] = Ie(!1), { widgetCtx: r } = ot(), { setIsOpen: i } = Ot(), { resolveSession: s, sessionState: a } = Et(), { isSmallScreen: u } = et(), l = async () => {
16685
+ const [t, n] = Ie(!1), { widgetCtx: r } = ot(), { setIsOpen: i } = Lt(), { resolveSession: s, sessionState: a } = Et(), { isSmallScreen: u } = et(), l = async () => {
16686
16686
  const { success: m, error: f } = await s();
16687
16687
  if (n(!1), !m) return console.error(f);
16688
16688
  e.onResolved === "close-widget" && i(!1), e.onResolved === "reset-chat" && r.resetChat(), e.onResolved === "reset-chat-and-close-widget" && (i(!1), r.resetChat());
@@ -16991,7 +16991,7 @@ function zb() {
16991
16991
  m && (m.scrollTop = m.scrollHeight);
16992
16992
  }, 0);
16993
16993
  }
16994
- return St(() => {
16994
+ return Ot(() => {
16995
16995
  h();
16996
16996
  }, [e]), /* @__PURE__ */ U(
16997
16997
  "div",
@@ -17080,6 +17080,7 @@ function Yb() {
17080
17080
  return !e || !t ? null : /* @__PURE__ */ b(
17081
17081
  t,
17082
17082
  {
17083
+ react: kt,
17083
17084
  mode: e,
17084
17085
  createStateCheckpoint: r,
17085
17086
  sendMessage: a,
@@ -17100,7 +17101,7 @@ function Wb() {
17100
17101
  messagesState: { isInitialFetchLoading: e }
17101
17102
  } = bt(), {
17102
17103
  sessionState: { session: t }
17103
- } = Et(), { isCanvasOpen: n } = qb(), { theme: r } = Bt();
17104
+ } = Et(), { isCanvasOpen: n } = qb(), { theme: r } = Ft();
17104
17105
  Ei({
17105
17106
  width: n ? r.screens.chat.withCanvas.width : r.screens.chat.width,
17106
17107
  height: n ? r.screens.chat.withCanvas.height : r.screens.chat.height
@@ -17253,7 +17254,7 @@ function cu({ className: e }) {
17253
17254
  }
17254
17255
  function Vb() {
17255
17256
  const { contentIframeRef: e } = ot(), t = sn(null);
17256
- return St(() => {
17257
+ return Ot(() => {
17257
17258
  const n = e == null ? void 0 : e.current;
17258
17259
  if (n && t.current) {
17259
17260
  const r = t.current;
@@ -17279,7 +17280,7 @@ const Qb = er.object({
17279
17280
  });
17280
17281
  function Gb() {
17281
17282
  var C, O, L, M, B, I, j, z, Y;
17282
- const { setIsOpen: e } = Ot(), { createUnverifiedContact: t } = yu(), { isSmallScreen: n } = et(), r = Ne(), { theme: i } = Bt(), s = pn(), { data: a } = Un(), { observedElementRef: u } = Vb();
17283
+ const { setIsOpen: e } = Lt(), { createUnverifiedContact: t } = yu(), { isSmallScreen: n } = et(), r = Ne(), { theme: i } = Ft(), s = pn(), { data: a } = Un(), { observedElementRef: u } = Vb();
17283
17284
  Ei({
17284
17285
  height: void 0,
17285
17286
  width: i.screens.welcome.width
@@ -17550,7 +17551,7 @@ function Kb() {
17550
17551
  ) }) });
17551
17552
  }
17552
17553
  function $b() {
17553
- const { theme: e } = Bt();
17554
+ const { theme: e } = Ft();
17554
17555
  return Ei({
17555
17556
  width: e.screens.sessions.width,
17556
17557
  height: e.screens.sessions.height
@@ -17644,7 +17645,7 @@ html, body {
17644
17645
  </body>
17645
17646
  </html>`;
17646
17647
  function Zb() {
17647
- const { isOpen: e } = Ot(), { version: t, contentIframeRef: n } = ot(), { cssOverrides: r } = Ne(), { theme: i, cssVars: s, computed: a } = Bt();
17648
+ const { isOpen: e } = Lt(), { version: t, contentIframeRef: n } = ot(), { cssOverrides: r } = Ne(), { theme: i, cssVars: s, computed: a } = Ft();
17648
17649
  return /* @__PURE__ */ b(
17649
17650
  Hn.Content,
17650
17651
  {
@@ -17661,7 +17662,7 @@ function Zb() {
17661
17662
  avoidCollisions: !1,
17662
17663
  asChild: !0,
17663
17664
  children: /* @__PURE__ */ b(
17664
- jt.div,
17665
+ Vt.div,
17665
17666
  {
17666
17667
  animate: e ? "visible" : "hidden",
17667
17668
  initial: "hidden",
@@ -17802,14 +17803,14 @@ html, body {
17802
17803
  </html>`;
17803
17804
  function nE() {
17804
17805
  var s, a;
17805
- const { isOpen: e } = Ot(), { cssOverrides: t, assets: n } = Ne(), { theme: r, cssVars: i } = Bt();
17806
+ const { isOpen: e } = Lt(), { cssOverrides: t, assets: n } = Ne(), { theme: r, cssVars: i } = Ft();
17806
17807
  return /* @__PURE__ */ U(
17807
17808
  ci,
17808
17809
  {
17809
17810
  initialContent: tE,
17810
17811
  style: {
17811
- height: `calc(${r.widgetTrigger.size.button}px + ${Nt.x * 2}px)`,
17812
- width: `calc(${r.widgetTrigger.size.button}px + ${Nt.y * 2}px)`,
17812
+ height: `calc(${r.widgetTrigger.size.button}px + ${St.x * 2}px)`,
17813
+ width: `calc(${r.widgetTrigger.size.button}px + ${St.y * 2}px)`,
17813
17814
  fontSize: "16px",
17814
17815
  position: "fixed",
17815
17816
  zIndex: r.widgetTrigger.zIndex,
@@ -17934,7 +17935,7 @@ function rE() {
17934
17935
  );
17935
17936
  }
17936
17937
  function iE() {
17937
- const { isOpen: e, setIsOpen: t } = Ot();
17938
+ const { isOpen: e, setIsOpen: t } = Lt();
17938
17939
  return /* @__PURE__ */ U(Hn.Root, { open: e, onOpenChange: t, children: [
17939
17940
  /* @__PURE__ */ b(rE, {}),
17940
17941
  /* @__PURE__ */ b(nE, {}),
@@ -17970,17 +17971,15 @@ const aE = [
17970
17971
  function _E({
17971
17972
  options: e,
17972
17973
  components: t = [],
17973
- modesComponents: n = [],
17974
- loadingComponent: r
17974
+ loadingComponent: n
17975
17975
  }) {
17976
17976
  return /* @__PURE__ */ b(
17977
17977
  Au,
17978
17978
  {
17979
17979
  components: [...aE, ...t],
17980
- modesComponents: n,
17981
17980
  options: e,
17982
17981
  storage: sE,
17983
- loadingComponent: r,
17982
+ loadingComponent: n,
17984
17983
  children: /* @__PURE__ */ b(Cu, { children: /* @__PURE__ */ b(iE, {}) })
17985
17984
  }
17986
17985
  );