@opencx/widget 3.0.67 → 3.0.68
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.cjs +6 -6
- package/dist/designs.cjs.map +1 -1
- package/dist/designs.js +179 -179
- package/dist/designs.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.js +2 -2
- package/dist/src/headless/core/types/widget-config.d.ts +10 -0
- package/dist/{useUploadFiles-Dvog4MGm.js → useUploadFiles-B2bODn8_.js} +2 -2
- package/dist/{useUploadFiles-Dvog4MGm.js.map → useUploadFiles-B2bODn8_.js.map} +1 -1
- package/dist/{useUploadFiles-C3gUPK2z.cjs → useUploadFiles-D3eDS0ud.cjs} +2 -2
- package/dist/{useUploadFiles-C3gUPK2z.cjs.map → useUploadFiles-D3eDS0ud.cjs.map} +1 -1
- package/dist-embed/script.js +27 -27
- package/dist-embed/script.js.map +1 -1
- package/package.json +1 -1
package/dist/designs.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as b, jsxs as Y, Fragment as zi } from "react/jsx-runtime";
|
|
2
2
|
import * as ge from "react";
|
|
3
|
-
import Ur, { useMemo as zr, forwardRef as Yr, memo as bu, useState as Re, cloneElement as Eu, useEffect as kt, useRef as
|
|
3
|
+
import Ur, { useMemo as zr, forwardRef as Yr, memo as bu, useState as Re, cloneElement as Eu, useEffect as kt, useRef as rn, useImperativeHandle as wu, useCallback as xu } from "react";
|
|
4
4
|
import { motion as Tt, AnimatePresence as ke } from "framer-motion";
|
|
5
5
|
import { clsx as Yi } from "clsx";
|
|
6
6
|
import { PaperclipIcon as Tu, ImageIcon as yu, CircleDashed as Cu, SendHorizonal as _u, CheckCheckIcon as Au, XIcon as ku, AlertCircle as Nu, Loader2 as Iu, FileAudio2Icon as Su, FileVideo2Icon as Lu, FileIcon as Ou, ChevronRight as Ru, Check as Du, Circle as vu, ChevronLeftIcon as Pu, EllipsisVerticalIcon as Mu, MessageCirclePlusIcon as Bu, X as Fu, LoaderIcon as Hu, SendHorizontal as Uu, ChevronRightIcon as zu, ChevronDownIcon as Yu } from "lucide-react";
|
|
7
7
|
import { useDropzone as ju } from "react-dropzone";
|
|
8
|
-
import { u as Nt, d as
|
|
8
|
+
import { u as Nt, d as an, g as Mn, e as Bn, i as qu, c as ji, h as on, j as wa, k as Vu, a as It, b as Wu, _ as Gu, W as Qu } from "./useUploadFiles-B2bODn8_.js";
|
|
9
9
|
import * as sn from "@radix-ui/react-tooltip";
|
|
10
10
|
import { Slot as Xu } from "@radix-ui/react-slot";
|
|
11
11
|
import * as de from "@radix-ui/react-dropdown-menu";
|
|
12
12
|
import * as Fe from "@radix-ui/react-dialog";
|
|
13
13
|
import { createPortal as xr } from "react-dom";
|
|
14
|
-
import * as
|
|
14
|
+
import * as St from "@radix-ui/react-avatar";
|
|
15
15
|
import xa from "tinycolor2";
|
|
16
16
|
import { z as er } from "zod";
|
|
17
17
|
import * as Tr from "@radix-ui/react-popover";
|
|
@@ -235,7 +235,7 @@ function ul(e, ...t) {
|
|
|
235
235
|
const oe = (e) => {
|
|
236
236
|
const t = (n) => n[e] || [];
|
|
237
237
|
return t.isThemeGetter = !0, t;
|
|
238
|
-
}, Gi = /^\[(?:([a-z-]+):)?(.+)\]$/i, ll = /^\d+\/\d+$/, cl = /* @__PURE__ */ new Set(["px", "full", "screen"]), dl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, hl = /\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$/, pl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, fl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ml = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => yt(e) || cl.has(e) || ll.test(e), Je = (e) =>
|
|
238
|
+
}, Gi = /^\[(?:([a-z-]+):)?(.+)\]$/i, ll = /^\d+\/\d+$/, cl = /* @__PURE__ */ new Set(["px", "full", "screen"]), dl = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, hl = /\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$/, pl = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, fl = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, ml = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => yt(e) || cl.has(e) || ll.test(e), Je = (e) => Lt(e, "length", Cl), yt = (e) => !!e && !Number.isNaN(Number(e)), tr = (e) => Lt(e, "number", yt), Ut = (e) => !!e && Number.isInteger(Number(e)), gl = (e) => e.endsWith("%") && yt(e.slice(0, -1)), Q = (e) => Gi.test(e), Ze = (e) => dl.test(e), bl = /* @__PURE__ */ new Set(["length", "size", "percentage"]), El = (e) => Lt(e, bl, Qi), wl = (e) => Lt(e, "position", Qi), xl = /* @__PURE__ */ new Set(["image", "url"]), Tl = (e) => Lt(e, xl, Al), yl = (e) => Lt(e, "", _l), zt = () => !0, Lt = (e, t, n) => {
|
|
239
239
|
const r = Gi.exec(e);
|
|
240
240
|
return r ? r[1] ? typeof t == "string" ? r[1] === t : t.has(r[1]) : n(r[2]) : !1;
|
|
241
241
|
}, Cl = (e) => (
|
|
@@ -249,7 +249,7 @@ const oe = (e) => {
|
|
|
249
249
|
cacheSize: 500,
|
|
250
250
|
separator: ":",
|
|
251
251
|
theme: {
|
|
252
|
-
colors: [
|
|
252
|
+
colors: [zt],
|
|
253
253
|
spacing: [Ge, Je],
|
|
254
254
|
blur: ["none", "", Ze, Q],
|
|
255
255
|
brightness: le(),
|
|
@@ -489,7 +489,7 @@ const oe = (e) => {
|
|
|
489
489
|
* @see https://tailwindcss.com/docs/z-index
|
|
490
490
|
*/
|
|
491
491
|
z: [{
|
|
492
|
-
z: ["auto",
|
|
492
|
+
z: ["auto", Ut, Q]
|
|
493
493
|
}],
|
|
494
494
|
// Flexbox and Grid
|
|
495
495
|
/**
|
|
@@ -539,14 +539,14 @@ const oe = (e) => {
|
|
|
539
539
|
* @see https://tailwindcss.com/docs/order
|
|
540
540
|
*/
|
|
541
541
|
order: [{
|
|
542
|
-
order: ["first", "last", "none",
|
|
542
|
+
order: ["first", "last", "none", Ut, Q]
|
|
543
543
|
}],
|
|
544
544
|
/**
|
|
545
545
|
* Grid Template Columns
|
|
546
546
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
547
547
|
*/
|
|
548
548
|
"grid-cols": [{
|
|
549
|
-
"grid-cols": [
|
|
549
|
+
"grid-cols": [zt]
|
|
550
550
|
}],
|
|
551
551
|
/**
|
|
552
552
|
* Grid Column Start / End
|
|
@@ -554,7 +554,7 @@ const oe = (e) => {
|
|
|
554
554
|
*/
|
|
555
555
|
"col-start-end": [{
|
|
556
556
|
col: ["auto", {
|
|
557
|
-
span: ["full",
|
|
557
|
+
span: ["full", Ut, Q]
|
|
558
558
|
}, Q]
|
|
559
559
|
}],
|
|
560
560
|
/**
|
|
@@ -576,7 +576,7 @@ const oe = (e) => {
|
|
|
576
576
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
577
577
|
*/
|
|
578
578
|
"grid-rows": [{
|
|
579
|
-
"grid-rows": [
|
|
579
|
+
"grid-rows": [zt]
|
|
580
580
|
}],
|
|
581
581
|
/**
|
|
582
582
|
* Grid Row Start / End
|
|
@@ -584,7 +584,7 @@ const oe = (e) => {
|
|
|
584
584
|
*/
|
|
585
585
|
"row-start-end": [{
|
|
586
586
|
row: ["auto", {
|
|
587
|
-
span: [
|
|
587
|
+
span: [Ut, Q]
|
|
588
588
|
}, Q]
|
|
589
589
|
}],
|
|
590
590
|
/**
|
|
@@ -939,7 +939,7 @@ const oe = (e) => {
|
|
|
939
939
|
* @see https://tailwindcss.com/docs/font-family
|
|
940
940
|
*/
|
|
941
941
|
"font-family": [{
|
|
942
|
-
font: [
|
|
942
|
+
font: [zt]
|
|
943
943
|
}],
|
|
944
944
|
/**
|
|
945
945
|
* Font Variant Numeric
|
|
@@ -1624,7 +1624,7 @@ const oe = (e) => {
|
|
|
1624
1624
|
* @see https://tailwindcss.com/docs/box-shadow-color
|
|
1625
1625
|
*/
|
|
1626
1626
|
"shadow-color": [{
|
|
1627
|
-
shadow: [
|
|
1627
|
+
shadow: [zt]
|
|
1628
1628
|
}],
|
|
1629
1629
|
/**
|
|
1630
1630
|
* Opacity
|
|
@@ -1903,7 +1903,7 @@ const oe = (e) => {
|
|
|
1903
1903
|
* @see https://tailwindcss.com/docs/rotate
|
|
1904
1904
|
*/
|
|
1905
1905
|
rotate: [{
|
|
1906
|
-
rotate: [
|
|
1906
|
+
rotate: [Ut, Q]
|
|
1907
1907
|
}],
|
|
1908
1908
|
/**
|
|
1909
1909
|
* Translate X
|
|
@@ -2663,7 +2663,7 @@ function Hl(e, t) {
|
|
|
2663
2663
|
const n = Ki[t];
|
|
2664
2664
|
return n && n[e] || "";
|
|
2665
2665
|
}
|
|
2666
|
-
function
|
|
2666
|
+
function Ot() {
|
|
2667
2667
|
const {
|
|
2668
2668
|
widgetCtx: { config: e }
|
|
2669
2669
|
} = Nt();
|
|
@@ -2866,7 +2866,7 @@ const Fn = () => {
|
|
|
2866
2866
|
}, []), e;
|
|
2867
2867
|
};
|
|
2868
2868
|
function Xl() {
|
|
2869
|
-
const { sendMessage: e } =
|
|
2869
|
+
const { sendMessage: e } = an(), t = Ot(), n = [
|
|
2870
2870
|
t.get("i-need-more-help"),
|
|
2871
2871
|
t.get("this-was-helpful")
|
|
2872
2872
|
], r = (a) => {
|
|
@@ -2958,7 +2958,7 @@ function Kl({
|
|
|
2958
2958
|
const Aa = V("rounded-3xl");
|
|
2959
2959
|
function $l() {
|
|
2960
2960
|
var I;
|
|
2961
|
-
const e =
|
|
2961
|
+
const e = rn(null), { sendMessage: t } = an(), { sessionState: n } = Mn(), r = Ot(), a = Fn(), [i, o] = Re(""), {
|
|
2962
2962
|
allFiles: u,
|
|
2963
2963
|
emptyTheFiles: l,
|
|
2964
2964
|
handleCancelUpload: c,
|
|
@@ -3087,7 +3087,7 @@ function $l() {
|
|
|
3087
3087
|
] });
|
|
3088
3088
|
}
|
|
3089
3089
|
function Jl() {
|
|
3090
|
-
const { widgetCtx: e } = Nt(), t =
|
|
3090
|
+
const { widgetCtx: e } = Nt(), t = Ot();
|
|
3091
3091
|
return /* @__PURE__ */ b("div", { className: "p-2", children: /* @__PURE__ */ Y("div", { className: "p-2 bg-background rounded-3xl border shadow-2xl space-y-2", children: [
|
|
3092
3092
|
/* @__PURE__ */ Y("div", { className: "flex items-center gap-1", children: [
|
|
3093
3093
|
/* @__PURE__ */ b(Au, { className: "size-4 text-emerald-500" }),
|
|
@@ -3098,7 +3098,7 @@ function Jl() {
|
|
|
3098
3098
|
}
|
|
3099
3099
|
function Zl() {
|
|
3100
3100
|
var o, u, l;
|
|
3101
|
-
const { sessionState: e } = Mn(), { messagesState: t, sendMessage: n } =
|
|
3101
|
+
const { sessionState: e } = Mn(), { messagesState: t, sendMessage: n } = an(), a = (u = (o = Bn().data) == null ? void 0 : o.data) == null ? void 0 : u.initialQuestions, i = t.messages.length === 0;
|
|
3102
3102
|
return /* @__PURE__ */ b("footer", { children: /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b(ke, { mode: "wait", children: e.session && !((l = e.session) != null && l.isOpened) ? /* @__PURE__ */ b(
|
|
3103
3103
|
ie,
|
|
3104
3104
|
{
|
|
@@ -3265,7 +3265,7 @@ function Zi({
|
|
|
3265
3265
|
);
|
|
3266
3266
|
}
|
|
3267
3267
|
function lc() {
|
|
3268
|
-
const e =
|
|
3268
|
+
const e = Ot(), [t, n] = Re(!1), { toChatScreen: r } = on();
|
|
3269
3269
|
return /* @__PURE__ */ Y(ec, { open: t, onOpenChange: n, children: [
|
|
3270
3270
|
/* @__PURE__ */ b(tc, { asChild: !0, children: /* @__PURE__ */ b(Se, { variant: "ghost", size: "fit", className: "rounded-full", children: /* @__PURE__ */ b(Mu, { className: "size-4" }) }) }),
|
|
3271
3271
|
/* @__PURE__ */ b($i, { align: "end", className: "min-w-56", children: /* @__PURE__ */ b(nc, { children: /* @__PURE__ */ Y(
|
|
@@ -3294,7 +3294,7 @@ function eo() {
|
|
|
3294
3294
|
const {
|
|
3295
3295
|
routerState: { screen: e },
|
|
3296
3296
|
toSessionsScreen: t
|
|
3297
|
-
} =
|
|
3297
|
+
} = on(), { data: n, isLoading: r } = Bn(), a = Fn();
|
|
3298
3298
|
return /* @__PURE__ */ b("header", { className: "p-2 border-b bg-background", children: /* @__PURE__ */ Y(
|
|
3299
3299
|
"div",
|
|
3300
3300
|
{
|
|
@@ -4953,7 +4953,7 @@ function Qr(e) {
|
|
|
4953
4953
|
}
|
|
4954
4954
|
return e.length > 0 && !n && (e[e.length - 1][1]._gfmAutolinkLiteralWalkedInto = !0), n;
|
|
4955
4955
|
}
|
|
4956
|
-
function
|
|
4956
|
+
function Rt(e) {
|
|
4957
4957
|
const t = [];
|
|
4958
4958
|
let n = -1, r = 0, a = 0;
|
|
4959
4959
|
for (; ++n < e.length; ) {
|
|
@@ -5430,7 +5430,7 @@ class F0 {
|
|
|
5430
5430
|
const a = n || 0;
|
|
5431
5431
|
this.setCursor(Math.trunc(t));
|
|
5432
5432
|
const i = this.right.splice(this.right.length - a, Number.POSITIVE_INFINITY);
|
|
5433
|
-
return r &&
|
|
5433
|
+
return r && Yt(this.left, r), i.reverse();
|
|
5434
5434
|
}
|
|
5435
5435
|
/**
|
|
5436
5436
|
* Remove and return the highest-numbered item in the array, so
|
|
@@ -5465,7 +5465,7 @@ class F0 {
|
|
|
5465
5465
|
* Nothing.
|
|
5466
5466
|
*/
|
|
5467
5467
|
pushMany(t) {
|
|
5468
|
-
this.setCursor(Number.POSITIVE_INFINITY),
|
|
5468
|
+
this.setCursor(Number.POSITIVE_INFINITY), Yt(this.left, t);
|
|
5469
5469
|
}
|
|
5470
5470
|
/**
|
|
5471
5471
|
* Inserts a single item to the low-numbered side of the array;
|
|
@@ -5489,7 +5489,7 @@ class F0 {
|
|
|
5489
5489
|
* Nothing.
|
|
5490
5490
|
*/
|
|
5491
5491
|
unshiftMany(t) {
|
|
5492
|
-
this.setCursor(0),
|
|
5492
|
+
this.setCursor(0), Yt(this.right, t.reverse());
|
|
5493
5493
|
}
|
|
5494
5494
|
/**
|
|
5495
5495
|
* Move the cursor to a specific position in the array. Requires
|
|
@@ -5507,14 +5507,14 @@ class F0 {
|
|
|
5507
5507
|
if (!(t === this.left.length || t > this.left.length && this.right.length === 0 || t < 0 && this.left.length === 0))
|
|
5508
5508
|
if (t < this.left.length) {
|
|
5509
5509
|
const n = this.left.splice(t, Number.POSITIVE_INFINITY);
|
|
5510
|
-
|
|
5510
|
+
Yt(this.right, n.reverse());
|
|
5511
5511
|
} else {
|
|
5512
5512
|
const n = this.right.splice(this.left.length + this.right.length - t, Number.POSITIVE_INFINITY);
|
|
5513
|
-
|
|
5513
|
+
Yt(this.left, n.reverse());
|
|
5514
5514
|
}
|
|
5515
5515
|
}
|
|
5516
5516
|
}
|
|
5517
|
-
function
|
|
5517
|
+
function Yt(e, t) {
|
|
5518
5518
|
let n = 0;
|
|
5519
5519
|
if (t.length < 1e4)
|
|
5520
5520
|
e.push(...t);
|
|
@@ -5680,7 +5680,7 @@ function Mo(e, t, n, r, a, i) {
|
|
|
5680
5680
|
return g === o || g === 92 ? (e.consume(g), h) : h(g);
|
|
5681
5681
|
}
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5683
|
+
function Gt(e, t) {
|
|
5684
5684
|
let n;
|
|
5685
5685
|
return r;
|
|
5686
5686
|
function r(a) {
|
|
@@ -5721,7 +5721,7 @@ function G0(e, t, n) {
|
|
|
5721
5721
|
return a = Be(r.sliceSerialize(r.events[r.events.length - 1][1]).slice(1, -1)), p === 58 ? (e.enter("definitionMarker"), e.consume(p), e.exit("definitionMarker"), l) : n(p);
|
|
5722
5722
|
}
|
|
5723
5723
|
function l(p) {
|
|
5724
|
-
return re(p) ?
|
|
5724
|
+
return re(p) ? Gt(e, c)(p) : c(p);
|
|
5725
5725
|
}
|
|
5726
5726
|
function c(p) {
|
|
5727
5727
|
return vo(
|
|
@@ -5749,7 +5749,7 @@ function G0(e, t, n) {
|
|
|
5749
5749
|
function Q0(e, t, n) {
|
|
5750
5750
|
return r;
|
|
5751
5751
|
function r(u) {
|
|
5752
|
-
return re(u) ?
|
|
5752
|
+
return re(u) ? Gt(e, a)(u) : n(u);
|
|
5753
5753
|
}
|
|
5754
5754
|
function a(u) {
|
|
5755
5755
|
return Mo(e, i, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(u);
|
|
@@ -6194,13 +6194,13 @@ function gh(e, t, n) {
|
|
|
6194
6194
|
return e.enter("resource"), e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), a;
|
|
6195
6195
|
}
|
|
6196
6196
|
function a(d) {
|
|
6197
|
-
return re(d) ?
|
|
6197
|
+
return re(d) ? Gt(e, i)(d) : i(d);
|
|
6198
6198
|
}
|
|
6199
6199
|
function i(d) {
|
|
6200
6200
|
return d === 41 ? h(d) : vo(e, o, u, "resourceDestination", "resourceDestinationLiteral", "resourceDestinationLiteralMarker", "resourceDestinationRaw", "resourceDestinationString", 32)(d);
|
|
6201
6201
|
}
|
|
6202
6202
|
function o(d) {
|
|
6203
|
-
return re(d) ?
|
|
6203
|
+
return re(d) ? Gt(e, l)(d) : h(d);
|
|
6204
6204
|
}
|
|
6205
6205
|
function u(d) {
|
|
6206
6206
|
return n(d);
|
|
@@ -6209,7 +6209,7 @@ function gh(e, t, n) {
|
|
|
6209
6209
|
return d === 34 || d === 39 || d === 40 ? Mo(e, c, n, "resourceTitle", "resourceTitleMarker", "resourceTitleString")(d) : h(d);
|
|
6210
6210
|
}
|
|
6211
6211
|
function c(d) {
|
|
6212
|
-
return re(d) ?
|
|
6212
|
+
return re(d) ? Gt(e, h)(d) : h(d);
|
|
6213
6213
|
}
|
|
6214
6214
|
function h(d) {
|
|
6215
6215
|
return d === 41 ? (e.enter("resourceMarker"), e.consume(d), e.exit("resourceMarker"), e.exit("resource"), t) : n(d);
|
|
@@ -7003,7 +7003,7 @@ function Ho(e, t) {
|
|
|
7003
7003
|
Object.assign(n, e[a].property), Object.assign(r, e[a].normal);
|
|
7004
7004
|
return new ln(n, r, t);
|
|
7005
7005
|
}
|
|
7006
|
-
function
|
|
7006
|
+
function en(e) {
|
|
7007
7007
|
return e.toLowerCase();
|
|
7008
7008
|
}
|
|
7009
7009
|
class ve {
|
|
@@ -7063,7 +7063,7 @@ function Va(e, t, n) {
|
|
|
7063
7063
|
n && (e[t] = n);
|
|
7064
7064
|
}
|
|
7065
7065
|
const up = {}.hasOwnProperty;
|
|
7066
|
-
function
|
|
7066
|
+
function Dt(e) {
|
|
7067
7067
|
const t = {}, n = {};
|
|
7068
7068
|
let r;
|
|
7069
7069
|
for (r in e.properties)
|
|
@@ -7074,11 +7074,11 @@ function Rt(e) {
|
|
|
7074
7074
|
a,
|
|
7075
7075
|
e.space
|
|
7076
7076
|
);
|
|
7077
|
-
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[
|
|
7077
|
+
e.mustUseProperty && e.mustUseProperty.includes(r) && (i.mustUseProperty = !0), t[r] = i, n[en(r)] = r, n[en(i.attribute)] = r;
|
|
7078
7078
|
}
|
|
7079
7079
|
return new ln(t, n, e.space);
|
|
7080
7080
|
}
|
|
7081
|
-
const zo =
|
|
7081
|
+
const zo = Dt({
|
|
7082
7082
|
space: "xlink",
|
|
7083
7083
|
transform(e, t) {
|
|
7084
7084
|
return "xlink:" + t.slice(5).toLowerCase();
|
|
@@ -7092,7 +7092,7 @@ const zo = Rt({
|
|
|
7092
7092
|
xLinkTitle: null,
|
|
7093
7093
|
xLinkType: null
|
|
7094
7094
|
}
|
|
7095
|
-
}), Yo =
|
|
7095
|
+
}), Yo = Dt({
|
|
7096
7096
|
space: "xml",
|
|
7097
7097
|
transform(e, t) {
|
|
7098
7098
|
return "xml:" + t.slice(3).toLowerCase();
|
|
@@ -7105,12 +7105,12 @@ function jo(e, t) {
|
|
|
7105
7105
|
function qo(e, t) {
|
|
7106
7106
|
return jo(e, t.toLowerCase());
|
|
7107
7107
|
}
|
|
7108
|
-
const Vo =
|
|
7108
|
+
const Vo = Dt({
|
|
7109
7109
|
space: "xmlns",
|
|
7110
7110
|
attributes: { xmlnsxlink: "xmlns:xlink" },
|
|
7111
7111
|
transform: qo,
|
|
7112
7112
|
properties: { xmlns: null, xmlnsXLink: null }
|
|
7113
|
-
}), Wo =
|
|
7113
|
+
}), Wo = Dt({
|
|
7114
7114
|
transform(e, t) {
|
|
7115
7115
|
return t === "role" ? t : "aria-" + t.slice(4).toLowerCase();
|
|
7116
7116
|
},
|
|
@@ -7165,7 +7165,7 @@ const Vo = Rt({
|
|
|
7165
7165
|
ariaValueText: null,
|
|
7166
7166
|
role: null
|
|
7167
7167
|
}
|
|
7168
|
-
}), lp =
|
|
7168
|
+
}), lp = Dt({
|
|
7169
7169
|
space: "html",
|
|
7170
7170
|
attributes: {
|
|
7171
7171
|
acceptcharset: "accept-charset",
|
|
@@ -7526,7 +7526,7 @@ const Vo = Rt({
|
|
|
7526
7526
|
security: null,
|
|
7527
7527
|
unselectable: null
|
|
7528
7528
|
}
|
|
7529
|
-
}), cp =
|
|
7529
|
+
}), cp = Dt({
|
|
7530
7530
|
space: "svg",
|
|
7531
7531
|
attributes: {
|
|
7532
7532
|
accentHeight: "accent-height",
|
|
@@ -8087,7 +8087,7 @@ const Vo = Rt({
|
|
|
8087
8087
|
}
|
|
8088
8088
|
}), dp = /^data[-\w.:]+$/i, Wa = /-[a-z]/g, hp = /[A-Z]/g;
|
|
8089
8089
|
function qn(e, t) {
|
|
8090
|
-
const n =
|
|
8090
|
+
const n = en(t);
|
|
8091
8091
|
let r = t, a = ve;
|
|
8092
8092
|
if (n in e.normal)
|
|
8093
8093
|
return e.property[e.normal[n]];
|
|
@@ -8256,7 +8256,7 @@ function Op(e) {
|
|
|
8256
8256
|
if (t && n)
|
|
8257
8257
|
return { start: t, end: n };
|
|
8258
8258
|
}
|
|
8259
|
-
function
|
|
8259
|
+
function Qt(e) {
|
|
8260
8260
|
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? Za(e.position) : "start" in e || "end" in e ? Za(e) : "line" in e || "column" in e ? Ir(e) : "";
|
|
8261
8261
|
}
|
|
8262
8262
|
function Ir(e) {
|
|
@@ -8339,7 +8339,7 @@ class we extends Error {
|
|
|
8339
8339
|
l && (i.place = l.position);
|
|
8340
8340
|
}
|
|
8341
8341
|
const u = i.place && "start" in i.place ? i.place.start : i.place;
|
|
8342
|
-
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = u ? u.line : void 0, this.name =
|
|
8342
|
+
this.ancestors = i.ancestors || void 0, this.cause = i.cause || void 0, this.column = u ? u.column : void 0, this.fatal = void 0, this.file, this.message = a, this.line = u ? u.line : void 0, this.name = Qt(i.place) || "1:1", this.place = i.place || void 0, this.reason = this.message, this.ruleId = i.ruleId || void 0, this.source = i.source || void 0, this.stack = o && i.cause && typeof i.cause.stack == "string" ? i.cause.stack : "", this.actual, this.expected, this.note, this.url;
|
|
8343
8343
|
}
|
|
8344
8344
|
}
|
|
8345
8345
|
we.prototype.file = "";
|
|
@@ -8426,7 +8426,7 @@ function Hp(e, t) {
|
|
|
8426
8426
|
return r.type, /** @type {Child | undefined} */
|
|
8427
8427
|
e.evaluater.evaluateExpression(r.expression);
|
|
8428
8428
|
}
|
|
8429
|
-
|
|
8429
|
+
tn(e, t.position);
|
|
8430
8430
|
}
|
|
8431
8431
|
function Up(e, t) {
|
|
8432
8432
|
if (t.data && t.data.estree && e.evaluater)
|
|
@@ -8434,7 +8434,7 @@ function Up(e, t) {
|
|
|
8434
8434
|
/** @type {Child | undefined} */
|
|
8435
8435
|
e.evaluater.evaluateProgram(t.data.estree)
|
|
8436
8436
|
);
|
|
8437
|
-
|
|
8437
|
+
tn(e, t.position);
|
|
8438
8438
|
}
|
|
8439
8439
|
function zp(e, t, n) {
|
|
8440
8440
|
const r = e.schema;
|
|
@@ -8519,7 +8519,7 @@ function Gp(e, t) {
|
|
|
8519
8519
|
e.evaluater.evaluateExpression(u.argument)
|
|
8520
8520
|
);
|
|
8521
8521
|
} else
|
|
8522
|
-
|
|
8522
|
+
tn(e, t.position);
|
|
8523
8523
|
else {
|
|
8524
8524
|
const a = r.name;
|
|
8525
8525
|
let i;
|
|
@@ -8528,7 +8528,7 @@ function Gp(e, t) {
|
|
|
8528
8528
|
const u = r.value.data.estree.body[0];
|
|
8529
8529
|
u.type, i = e.evaluater.evaluateExpression(u.expression);
|
|
8530
8530
|
} else
|
|
8531
|
-
|
|
8531
|
+
tn(e, t.position);
|
|
8532
8532
|
else
|
|
8533
8533
|
i = r.value === null ? !0 : r.value;
|
|
8534
8534
|
n[a] = /** @type {Props[keyof Props]} */
|
|
@@ -8621,9 +8621,9 @@ function Zo(e, t, n) {
|
|
|
8621
8621
|
}
|
|
8622
8622
|
if (e.evaluater)
|
|
8623
8623
|
return e.evaluater.evaluateExpression(r);
|
|
8624
|
-
|
|
8624
|
+
tn(e);
|
|
8625
8625
|
}
|
|
8626
|
-
function
|
|
8626
|
+
function tn(e, t) {
|
|
8627
8627
|
const n = new we(
|
|
8628
8628
|
"Cannot handle MDX estrees without `createEvaluater`",
|
|
8629
8629
|
{
|
|
@@ -9084,8 +9084,8 @@ function hf(e, t, n) {
|
|
|
9084
9084
|
qe([te])
|
|
9085
9085
|
) : le(te);
|
|
9086
9086
|
function le(be) {
|
|
9087
|
-
return
|
|
9088
|
-
function
|
|
9087
|
+
return Bt;
|
|
9088
|
+
function Bt($e) {
|
|
9089
9089
|
const mt = $e !== null && be[$e], gt = $e !== null && be.null, gn = [
|
|
9090
9090
|
// To do: add more extension tests.
|
|
9091
9091
|
/* c8 ignore next 2 */
|
|
@@ -9099,8 +9099,8 @@ function hf(e, t, n) {
|
|
|
9099
9099
|
return he = be, Te = 0, be.length === 0 ? ue : T(be[Te]);
|
|
9100
9100
|
}
|
|
9101
9101
|
function T(be) {
|
|
9102
|
-
return
|
|
9103
|
-
function
|
|
9102
|
+
return Bt;
|
|
9103
|
+
function Bt($e) {
|
|
9104
9104
|
return x = q(), ye = be, be.partial || (c.currentConstruct = be), be.name && c.parser.constructs.disable.null.includes(be.name) ? ot() : be.tokenize.call(
|
|
9105
9105
|
// If we do have fields, create an object w/ `context` as its
|
|
9106
9106
|
// prototype.
|
|
@@ -9386,7 +9386,7 @@ function Sf(e) {
|
|
|
9386
9386
|
characterReferenceMarkerHexadecimal: ot,
|
|
9387
9387
|
characterReferenceMarkerNumeric: ot,
|
|
9388
9388
|
characterReferenceValue: be,
|
|
9389
|
-
characterReference:
|
|
9389
|
+
characterReference: Bt,
|
|
9390
9390
|
codeFenced: l(A),
|
|
9391
9391
|
codeFencedFence: y,
|
|
9392
9392
|
codeFencedFenceInfo: p,
|
|
@@ -9480,18 +9480,18 @@ function Sf(e) {
|
|
|
9480
9480
|
return B;
|
|
9481
9481
|
}
|
|
9482
9482
|
function a(S, B, W) {
|
|
9483
|
-
let J = B - 1, ne = -1, Me = !1, st, Ve,
|
|
9483
|
+
let J = B - 1, ne = -1, Me = !1, st, Ve, Ft, Ht;
|
|
9484
9484
|
for (; ++J <= W; ) {
|
|
9485
9485
|
const Ne = S[J];
|
|
9486
9486
|
switch (Ne[1].type) {
|
|
9487
9487
|
case "listUnordered":
|
|
9488
9488
|
case "listOrdered":
|
|
9489
9489
|
case "blockQuote": {
|
|
9490
|
-
Ne[0] === "enter" ? ne++ : ne--,
|
|
9490
|
+
Ne[0] === "enter" ? ne++ : ne--, Ht = void 0;
|
|
9491
9491
|
break;
|
|
9492
9492
|
}
|
|
9493
9493
|
case "lineEndingBlank": {
|
|
9494
|
-
Ne[0] === "enter" && (st && !
|
|
9494
|
+
Ne[0] === "enter" && (st && !Ht && !ne && !Ft && (Ft = J), Ht = void 0);
|
|
9495
9495
|
break;
|
|
9496
9496
|
}
|
|
9497
9497
|
case "linePrefix":
|
|
@@ -9501,7 +9501,7 @@ function Sf(e) {
|
|
|
9501
9501
|
case "listItemPrefixWhitespace":
|
|
9502
9502
|
break;
|
|
9503
9503
|
default:
|
|
9504
|
-
|
|
9504
|
+
Ht = void 0;
|
|
9505
9505
|
}
|
|
9506
9506
|
if (!ne && Ne[0] === "enter" && Ne[1].type === "listItemPrefix" || ne === -1 && Ne[0] === "exit" && (Ne[1].type === "listUnordered" || Ne[1].type === "listOrdered")) {
|
|
9507
9507
|
if (st) {
|
|
@@ -9513,7 +9513,7 @@ function Sf(e) {
|
|
|
9513
9513
|
Ve && (S[Ve][1].type = "lineEndingBlank", Me = !0), We[1].type = "lineEnding", Ve = bt;
|
|
9514
9514
|
} else if (!(We[1].type === "linePrefix" || We[1].type === "blockQuotePrefix" || We[1].type === "blockQuotePrefixWhitespace" || We[1].type === "blockQuoteMarker" || We[1].type === "listItemIndent")) break;
|
|
9515
9515
|
}
|
|
9516
|
-
|
|
9516
|
+
Ft && (!Ve || Ft < Ve) && (st._spread = !0), st.end = Object.assign({}, Ve ? S[Ve][1].start : Ne[1].end), S.splice(Ve || J, 0, ["exit", st, Ne[2]]), J++, W++;
|
|
9517
9517
|
}
|
|
9518
9518
|
if (Ne[1].type === "listItemPrefix") {
|
|
9519
9519
|
const bt = {
|
|
@@ -9523,7 +9523,7 @@ function Sf(e) {
|
|
|
9523
9523
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
9524
9524
|
end: void 0
|
|
9525
9525
|
};
|
|
9526
|
-
st = bt, S.splice(J, 0, ["enter", bt, Ne[2]]), J++, W++,
|
|
9526
|
+
st = bt, S.splice(J, 0, ["enter", bt, Ne[2]]), J++, W++, Ft = void 0, Ht = !0;
|
|
9527
9527
|
}
|
|
9528
9528
|
}
|
|
9529
9529
|
}
|
|
@@ -9558,7 +9558,7 @@ function Sf(e) {
|
|
|
9558
9558
|
const W = this.stack.pop(), J = this.tokenStack.pop();
|
|
9559
9559
|
if (J)
|
|
9560
9560
|
J[0].type !== S.type && (B ? B.call(this, S, J[0]) : (J[1] || ri).call(this, S, J[0]));
|
|
9561
|
-
else throw new Error("Cannot close `" + S.type + "` (" +
|
|
9561
|
+
else throw new Error("Cannot close `" + S.type + "` (" + Qt({
|
|
9562
9562
|
start: S.start,
|
|
9563
9563
|
end: S.end
|
|
9564
9564
|
}) + "): it’s not open");
|
|
@@ -9719,7 +9719,7 @@ function Sf(e) {
|
|
|
9719
9719
|
const ne = this.stack[this.stack.length - 1];
|
|
9720
9720
|
ne.value += J;
|
|
9721
9721
|
}
|
|
9722
|
-
function
|
|
9722
|
+
function Bt(S) {
|
|
9723
9723
|
const B = this.stack.pop();
|
|
9724
9724
|
B.position.end = et(S.end);
|
|
9725
9725
|
}
|
|
@@ -9882,13 +9882,13 @@ function Lf(e, t) {
|
|
|
9882
9882
|
}
|
|
9883
9883
|
}
|
|
9884
9884
|
function ri(e, t) {
|
|
9885
|
-
throw e ? new Error("Cannot close `" + e.type + "` (" +
|
|
9885
|
+
throw e ? new Error("Cannot close `" + e.type + "` (" + Qt({
|
|
9886
9886
|
start: e.start,
|
|
9887
9887
|
end: e.end
|
|
9888
|
-
}) + "): a different token (`" + t.type + "`, " +
|
|
9888
|
+
}) + "): a different token (`" + t.type + "`, " + Qt({
|
|
9889
9889
|
start: t.start,
|
|
9890
9890
|
end: t.end
|
|
9891
|
-
}) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " +
|
|
9891
|
+
}) + ") is open") : new Error("Cannot close document, a token (`" + t.type + "`, " + Qt({
|
|
9892
9892
|
start: t.start,
|
|
9893
9893
|
end: t.end
|
|
9894
9894
|
}) + ") is still open");
|
|
@@ -9953,7 +9953,7 @@ function Mf(e, t) {
|
|
|
9953
9953
|
return e.patch(t, n), e.applyData(t, n);
|
|
9954
9954
|
}
|
|
9955
9955
|
function Bf(e, t) {
|
|
9956
|
-
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), a =
|
|
9956
|
+
const n = typeof e.options.clobberPrefix == "string" ? e.options.clobberPrefix : "user-content-", r = String(t.identifier).toUpperCase(), a = Rt(r.toLowerCase()), i = e.footnoteOrder.indexOf(r);
|
|
9957
9957
|
let o, u = e.footnoteCounts.get(r);
|
|
9958
9958
|
u === void 0 ? (u = 0, e.footnoteOrder.push(r), o = e.footnoteOrder.length) : o = i + 1, u += 1, e.footnoteCounts.set(r, u);
|
|
9959
9959
|
const l = {
|
|
@@ -10005,13 +10005,13 @@ function Uf(e, t) {
|
|
|
10005
10005
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
10006
10006
|
if (!r)
|
|
10007
10007
|
return as(e, t);
|
|
10008
|
-
const a = { src:
|
|
10008
|
+
const a = { src: Rt(r.url || ""), alt: t.alt };
|
|
10009
10009
|
r.title !== null && r.title !== void 0 && (a.title = r.title);
|
|
10010
10010
|
const i = { type: "element", tagName: "img", properties: a, children: [] };
|
|
10011
10011
|
return e.patch(t, i), e.applyData(t, i);
|
|
10012
10012
|
}
|
|
10013
10013
|
function zf(e, t) {
|
|
10014
|
-
const n = { src:
|
|
10014
|
+
const n = { src: Rt(t.url) };
|
|
10015
10015
|
t.alt !== null && t.alt !== void 0 && (n.alt = t.alt), t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
10016
10016
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
10017
10017
|
return e.patch(t, r), e.applyData(t, r);
|
|
@@ -10031,7 +10031,7 @@ function jf(e, t) {
|
|
|
10031
10031
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
10032
10032
|
if (!r)
|
|
10033
10033
|
return as(e, t);
|
|
10034
|
-
const a = { href:
|
|
10034
|
+
const a = { href: Rt(r.url || "") };
|
|
10035
10035
|
r.title !== null && r.title !== void 0 && (a.title = r.title);
|
|
10036
10036
|
const i = {
|
|
10037
10037
|
type: "element",
|
|
@@ -10042,7 +10042,7 @@ function jf(e, t) {
|
|
|
10042
10042
|
return e.patch(t, i), e.applyData(t, i);
|
|
10043
10043
|
}
|
|
10044
10044
|
function qf(e, t) {
|
|
10045
|
-
const n = { href:
|
|
10045
|
+
const n = { href: Rt(t.url) };
|
|
10046
10046
|
t.title !== null && t.title !== void 0 && (n.title = t.title);
|
|
10047
10047
|
const r = {
|
|
10048
10048
|
type: "element",
|
|
@@ -10309,7 +10309,7 @@ const os = -1, Wn = 0, On = 1, Rn = 2, ea = 3, ta = 4, na = 5, ra = 6, ss = 7, u
|
|
|
10309
10309
|
return n(new si[i](o), a);
|
|
10310
10310
|
};
|
|
10311
10311
|
return r;
|
|
10312
|
-
}, ui = (e) => am(/* @__PURE__ */ new Map(), e)(0), Et = "", { toString: im } = {}, { keys: om } = Object,
|
|
10312
|
+
}, ui = (e) => am(/* @__PURE__ */ new Map(), e)(0), Et = "", { toString: im } = {}, { keys: om } = Object, jt = (e) => {
|
|
10313
10313
|
const t = typeof e;
|
|
10314
10314
|
if (t !== "object" || !e)
|
|
10315
10315
|
return [Wn, t];
|
|
@@ -10336,7 +10336,7 @@ const os = -1, Wn = 0, On = 1, Rn = 2, ea = 3, ta = 4, na = 5, ra = 6, ss = 7, u
|
|
|
10336
10336
|
}, i = (o) => {
|
|
10337
10337
|
if (n.has(o))
|
|
10338
10338
|
return n.get(o);
|
|
10339
|
-
let [u, l] =
|
|
10339
|
+
let [u, l] = jt(o);
|
|
10340
10340
|
switch (u) {
|
|
10341
10341
|
case Wn: {
|
|
10342
10342
|
let h = o;
|
|
@@ -10377,7 +10377,7 @@ const os = -1, Wn = 0, On = 1, Rn = 2, ea = 3, ta = 4, na = 5, ra = 6, ss = 7, u
|
|
|
10377
10377
|
return i(o.toJSON());
|
|
10378
10378
|
const h = [], d = a([u, h], o);
|
|
10379
10379
|
for (const g of om(o))
|
|
10380
|
-
(e || !wn(
|
|
10380
|
+
(e || !wn(jt(o[g]))) && h.push([i(g), i(o[g])]);
|
|
10381
10381
|
return d;
|
|
10382
10382
|
}
|
|
10383
10383
|
case ea:
|
|
@@ -10389,13 +10389,13 @@ const os = -1, Wn = 0, On = 1, Rn = 2, ea = 3, ta = 4, na = 5, ra = 6, ss = 7, u
|
|
|
10389
10389
|
case na: {
|
|
10390
10390
|
const h = [], d = a([u, h], o);
|
|
10391
10391
|
for (const [g, p] of o)
|
|
10392
|
-
(e || !(wn(
|
|
10392
|
+
(e || !(wn(jt(g)) || wn(jt(p)))) && h.push([i(g), i(p)]);
|
|
10393
10393
|
return d;
|
|
10394
10394
|
}
|
|
10395
10395
|
case ra: {
|
|
10396
10396
|
const h = [], d = a([u, h], o);
|
|
10397
10397
|
for (const g of o)
|
|
10398
|
-
(e || !wn(
|
|
10398
|
+
(e || !wn(jt(g))) && h.push(i(g));
|
|
10399
10399
|
return d;
|
|
10400
10400
|
}
|
|
10401
10401
|
}
|
|
@@ -10433,7 +10433,7 @@ function cm(e) {
|
|
|
10433
10433
|
);
|
|
10434
10434
|
if (!c)
|
|
10435
10435
|
continue;
|
|
10436
|
-
const h = e.all(c), d = String(c.identifier).toUpperCase(), g =
|
|
10436
|
+
const h = e.all(c), d = String(c.identifier).toUpperCase(), g = Rt(d.toLowerCase());
|
|
10437
10437
|
let p = 0;
|
|
10438
10438
|
const E = [], y = e.footnoteCounts.get(d);
|
|
10439
10439
|
for (; y !== void 0 && ++p <= y; ) {
|
|
@@ -11998,7 +11998,7 @@ function Ai(e, t, n) {
|
|
|
11998
11998
|
if (typeof n == "string") {
|
|
11999
11999
|
if (e.number && n && !Number.isNaN(Number(n)))
|
|
12000
12000
|
return Number(n);
|
|
12001
|
-
if ((e.boolean || e.overloadedBoolean) && (n === "" ||
|
|
12001
|
+
if ((e.boolean || e.overloadedBoolean) && (n === "" || en(n) === en(t)))
|
|
12002
12002
|
return !0;
|
|
12003
12003
|
}
|
|
12004
12004
|
return n;
|
|
@@ -12251,11 +12251,11 @@ function i1(e, t) {
|
|
|
12251
12251
|
mode: (e.data || {}).quirksMode ? "quirks" : "no-quirks",
|
|
12252
12252
|
childNodes: []
|
|
12253
12253
|
};
|
|
12254
|
-
return n.childNodes = oa(e.children, n, t),
|
|
12254
|
+
return n.childNodes = oa(e.children, n, t), vt(e, n), n;
|
|
12255
12255
|
}
|
|
12256
12256
|
function o1(e, t) {
|
|
12257
12257
|
const n = { nodeName: "#document-fragment", childNodes: [] };
|
|
12258
|
-
return n.childNodes = oa(e.children, n, t),
|
|
12258
|
+
return n.childNodes = oa(e.children, n, t), vt(e, n), n;
|
|
12259
12259
|
}
|
|
12260
12260
|
function s1(e) {
|
|
12261
12261
|
const t = {
|
|
@@ -12265,7 +12265,7 @@ function s1(e) {
|
|
|
12265
12265
|
systemId: "",
|
|
12266
12266
|
parentNode: null
|
|
12267
12267
|
};
|
|
12268
|
-
return
|
|
12268
|
+
return vt(e, t), t;
|
|
12269
12269
|
}
|
|
12270
12270
|
function u1(e) {
|
|
12271
12271
|
const t = {
|
|
@@ -12273,7 +12273,7 @@ function u1(e) {
|
|
|
12273
12273
|
value: e.value,
|
|
12274
12274
|
parentNode: null
|
|
12275
12275
|
};
|
|
12276
|
-
return
|
|
12276
|
+
return vt(e, t), t;
|
|
12277
12277
|
}
|
|
12278
12278
|
function l1(e) {
|
|
12279
12279
|
const t = {
|
|
@@ -12281,7 +12281,7 @@ function l1(e) {
|
|
|
12281
12281
|
data: e.value,
|
|
12282
12282
|
parentNode: null
|
|
12283
12283
|
};
|
|
12284
|
-
return
|
|
12284
|
+
return vt(e, t), t;
|
|
12285
12285
|
}
|
|
12286
12286
|
function c1(e, t) {
|
|
12287
12287
|
const n = t;
|
|
@@ -12309,7 +12309,7 @@ function c1(e, t) {
|
|
|
12309
12309
|
childNodes: [],
|
|
12310
12310
|
parentNode: null
|
|
12311
12311
|
};
|
|
12312
|
-
return u.childNodes = oa(e.children, u, r),
|
|
12312
|
+
return u.childNodes = oa(e.children, u, r), vt(e, u), e.tagName === "template" && e.content && (u.content = o1(e.content, r)), u;
|
|
12313
12313
|
}
|
|
12314
12314
|
function d1(e, t, n) {
|
|
12315
12315
|
const r = qn(e, t);
|
|
@@ -12336,7 +12336,7 @@ function oa(e, t, n) {
|
|
|
12336
12336
|
}
|
|
12337
12337
|
return a;
|
|
12338
12338
|
}
|
|
12339
|
-
function
|
|
12339
|
+
function vt(e, t) {
|
|
12340
12340
|
const n = e.position;
|
|
12341
12341
|
n && n.start && n.end && (n.start.offset, n.end.offset, t.sourceCodeLocation = {
|
|
12342
12342
|
startLine: n.start.line,
|
|
@@ -12982,7 +12982,7 @@ const N1 = /* @__PURE__ */ new Map([
|
|
|
12982
12982
|
[C.WBR, s.WBR],
|
|
12983
12983
|
[C.XMP, s.XMP]
|
|
12984
12984
|
]);
|
|
12985
|
-
function
|
|
12985
|
+
function Pt(e) {
|
|
12986
12986
|
var t;
|
|
12987
12987
|
return (t = N1.get(e)) !== null && t !== void 0 ? t : s.UNKNOWN;
|
|
12988
12988
|
}
|
|
@@ -13092,14 +13092,14 @@ const ce = {
|
|
|
13092
13092
|
function S1(e) {
|
|
13093
13093
|
return e >= f.DIGIT_0 && e <= f.DIGIT_9;
|
|
13094
13094
|
}
|
|
13095
|
-
function
|
|
13095
|
+
function Wt(e) {
|
|
13096
13096
|
return e >= f.LATIN_CAPITAL_A && e <= f.LATIN_CAPITAL_Z;
|
|
13097
13097
|
}
|
|
13098
13098
|
function L1(e) {
|
|
13099
13099
|
return e >= f.LATIN_SMALL_A && e <= f.LATIN_SMALL_Z;
|
|
13100
13100
|
}
|
|
13101
13101
|
function tt(e) {
|
|
13102
|
-
return L1(e) ||
|
|
13102
|
+
return L1(e) || Wt(e);
|
|
13103
13103
|
}
|
|
13104
13104
|
function Ii(e) {
|
|
13105
13105
|
return tt(e) || S1(e);
|
|
@@ -13264,7 +13264,7 @@ class R1 {
|
|
|
13264
13264
|
}
|
|
13265
13265
|
emitCurrentTagToken() {
|
|
13266
13266
|
const t = this.currentToken;
|
|
13267
|
-
this.prepareToken(t), t.tagID =
|
|
13267
|
+
this.prepareToken(t), t.tagID = Pt(t.tagName), t.type === X.START_TAG ? (this.lastStartTagName = t.tagName, this.handler.onStartTag(t)) : (t.attrs.length > 0 && this._err(N.endTagWithAttributes), t.selfClosing && this._err(N.endTagWithTrailingSolidus), this.handler.onEndTag(t)), this.preprocessor.dropParsedChunk();
|
|
13268
13268
|
}
|
|
13269
13269
|
emitCurrentComment(t) {
|
|
13270
13270
|
this.prepareToken(t), this.handler.onComment(t), this.preprocessor.dropParsedChunk();
|
|
@@ -13811,7 +13811,7 @@ class R1 {
|
|
|
13811
13811
|
break;
|
|
13812
13812
|
}
|
|
13813
13813
|
default:
|
|
13814
|
-
n.tagName += String.fromCodePoint(
|
|
13814
|
+
n.tagName += String.fromCodePoint(Wt(t) ? Tn(t) : t);
|
|
13815
13815
|
}
|
|
13816
13816
|
}
|
|
13817
13817
|
// RCDATA less-than sign state
|
|
@@ -14143,7 +14143,7 @@ class R1 {
|
|
|
14143
14143
|
break;
|
|
14144
14144
|
}
|
|
14145
14145
|
default:
|
|
14146
|
-
this.currentAttr.name += String.fromCodePoint(
|
|
14146
|
+
this.currentAttr.name += String.fromCodePoint(Wt(t) ? Tn(t) : t);
|
|
14147
14147
|
}
|
|
14148
14148
|
}
|
|
14149
14149
|
// After attribute name state
|
|
@@ -14544,7 +14544,7 @@ class R1 {
|
|
|
14544
14544
|
// Before DOCTYPE name state
|
|
14545
14545
|
//------------------------------------------------------------------
|
|
14546
14546
|
_stateBeforeDoctypeName(t) {
|
|
14547
|
-
if (
|
|
14547
|
+
if (Wt(t))
|
|
14548
14548
|
this._createDoctypeToken(String.fromCharCode(Tn(t))), this.state = m.DOCTYPE_NAME;
|
|
14549
14549
|
else
|
|
14550
14550
|
switch (t) {
|
|
@@ -14598,7 +14598,7 @@ class R1 {
|
|
|
14598
14598
|
break;
|
|
14599
14599
|
}
|
|
14600
14600
|
default:
|
|
14601
|
-
n.name += String.fromCodePoint(
|
|
14601
|
+
n.name += String.fromCodePoint(Wt(t) ? Tn(t) : t);
|
|
14602
14602
|
}
|
|
14603
14603
|
}
|
|
14604
14604
|
// After DOCTYPE name state
|
|
@@ -15755,7 +15755,7 @@ function sa(e) {
|
|
|
15755
15755
|
}
|
|
15756
15756
|
function tg(e) {
|
|
15757
15757
|
const t = J1.get(e.tagName);
|
|
15758
|
-
t != null && (e.tagName = t, e.tagID =
|
|
15758
|
+
t != null && (e.tagName = t, e.tagID = Pt(e.tagName));
|
|
15759
15759
|
}
|
|
15760
15760
|
function ng(e, t) {
|
|
15761
15761
|
return t === R.MATHML && (e === s.MI || e === s.MO || e === s.MN || e === s.MS || e === s.MTEXT);
|
|
@@ -15796,7 +15796,7 @@ class Bi {
|
|
|
15796
15796
|
this.fragmentContext = r, this.scriptHandler = a, this.currentToken = null, this.stopped = !1, this.insertionMode = w.INITIAL, this.originalInsertionMode = w.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 = {
|
|
15797
15797
|
...Mi,
|
|
15798
15798
|
...t
|
|
15799
|
-
}, 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 R1(this.options, this), this.activeFormattingElements = new U1(this.treeAdapter), this.fragmentContextID = r ?
|
|
15799
|
+
}, 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 R1(this.options, this), this.activeFormattingElements = new U1(this.treeAdapter), this.fragmentContextID = r ? Pt(this.treeAdapter.getTagName(r)) : s.UNKNOWN, this._setContextModes(r ?? this.document, this.fragmentContextID), this.openElements = new H1(this.document, this.treeAdapter, this);
|
|
15800
15800
|
}
|
|
15801
15801
|
// API
|
|
15802
15802
|
static parse(t, n) {
|
|
@@ -16197,27 +16197,27 @@ class Bi {
|
|
|
16197
16197
|
}
|
|
16198
16198
|
switch (this.insertionMode) {
|
|
16199
16199
|
case w.INITIAL: {
|
|
16200
|
-
|
|
16200
|
+
qt(this, t);
|
|
16201
16201
|
break;
|
|
16202
16202
|
}
|
|
16203
16203
|
case w.BEFORE_HTML: {
|
|
16204
|
-
|
|
16204
|
+
Xt(this, t);
|
|
16205
16205
|
break;
|
|
16206
16206
|
}
|
|
16207
16207
|
case w.BEFORE_HEAD: {
|
|
16208
|
-
|
|
16208
|
+
Kt(this, t);
|
|
16209
16209
|
break;
|
|
16210
16210
|
}
|
|
16211
16211
|
case w.IN_HEAD: {
|
|
16212
|
-
|
|
16212
|
+
$t(this, t);
|
|
16213
16213
|
break;
|
|
16214
16214
|
}
|
|
16215
16215
|
case w.IN_HEAD_NO_SCRIPT: {
|
|
16216
|
-
|
|
16216
|
+
Jt(this, t);
|
|
16217
16217
|
break;
|
|
16218
16218
|
}
|
|
16219
16219
|
case w.AFTER_HEAD: {
|
|
16220
|
-
|
|
16220
|
+
Zt(this, t);
|
|
16221
16221
|
break;
|
|
16222
16222
|
}
|
|
16223
16223
|
case w.IN_BODY:
|
|
@@ -16265,27 +16265,27 @@ class Bi {
|
|
|
16265
16265
|
}
|
|
16266
16266
|
switch (this.insertionMode) {
|
|
16267
16267
|
case w.INITIAL: {
|
|
16268
|
-
|
|
16268
|
+
qt(this, t);
|
|
16269
16269
|
break;
|
|
16270
16270
|
}
|
|
16271
16271
|
case w.BEFORE_HTML: {
|
|
16272
|
-
|
|
16272
|
+
Xt(this, t);
|
|
16273
16273
|
break;
|
|
16274
16274
|
}
|
|
16275
16275
|
case w.BEFORE_HEAD: {
|
|
16276
|
-
|
|
16276
|
+
Kt(this, t);
|
|
16277
16277
|
break;
|
|
16278
16278
|
}
|
|
16279
16279
|
case w.IN_HEAD: {
|
|
16280
|
-
|
|
16280
|
+
$t(this, t);
|
|
16281
16281
|
break;
|
|
16282
16282
|
}
|
|
16283
16283
|
case w.IN_HEAD_NO_SCRIPT: {
|
|
16284
|
-
|
|
16284
|
+
Jt(this, t);
|
|
16285
16285
|
break;
|
|
16286
16286
|
}
|
|
16287
16287
|
case w.AFTER_HEAD: {
|
|
16288
|
-
|
|
16288
|
+
Zt(this, t);
|
|
16289
16289
|
break;
|
|
16290
16290
|
}
|
|
16291
16291
|
case w.TEXT: {
|
|
@@ -16341,7 +16341,7 @@ class Bi {
|
|
|
16341
16341
|
break;
|
|
16342
16342
|
}
|
|
16343
16343
|
case w.IN_TABLE_TEXT: {
|
|
16344
|
-
|
|
16344
|
+
Vt(this, t);
|
|
16345
16345
|
break;
|
|
16346
16346
|
}
|
|
16347
16347
|
case w.AFTER_BODY: {
|
|
@@ -16370,7 +16370,7 @@ class Bi {
|
|
|
16370
16370
|
break;
|
|
16371
16371
|
}
|
|
16372
16372
|
case w.IN_TABLE_TEXT: {
|
|
16373
|
-
|
|
16373
|
+
Vt(this, t);
|
|
16374
16374
|
break;
|
|
16375
16375
|
}
|
|
16376
16376
|
}
|
|
@@ -16397,7 +16397,7 @@ class Bi {
|
|
|
16397
16397
|
_startTagOutsideForeignContent(t) {
|
|
16398
16398
|
switch (this.insertionMode) {
|
|
16399
16399
|
case w.INITIAL: {
|
|
16400
|
-
|
|
16400
|
+
qt(this, t);
|
|
16401
16401
|
break;
|
|
16402
16402
|
}
|
|
16403
16403
|
case w.BEFORE_HTML: {
|
|
@@ -16429,7 +16429,7 @@ class Bi {
|
|
|
16429
16429
|
break;
|
|
16430
16430
|
}
|
|
16431
16431
|
case w.IN_TABLE_TEXT: {
|
|
16432
|
-
|
|
16432
|
+
Vt(this, t);
|
|
16433
16433
|
break;
|
|
16434
16434
|
}
|
|
16435
16435
|
case w.IN_CAPTION: {
|
|
@@ -16494,7 +16494,7 @@ class Bi {
|
|
|
16494
16494
|
_endTagOutsideForeignContent(t) {
|
|
16495
16495
|
switch (this.insertionMode) {
|
|
16496
16496
|
case w.INITIAL: {
|
|
16497
|
-
|
|
16497
|
+
qt(this, t);
|
|
16498
16498
|
break;
|
|
16499
16499
|
}
|
|
16500
16500
|
case w.BEFORE_HTML: {
|
|
@@ -16526,11 +16526,11 @@ class Bi {
|
|
|
16526
16526
|
break;
|
|
16527
16527
|
}
|
|
16528
16528
|
case w.IN_TABLE: {
|
|
16529
|
-
|
|
16529
|
+
nn(this, t);
|
|
16530
16530
|
break;
|
|
16531
16531
|
}
|
|
16532
16532
|
case w.IN_TABLE_TEXT: {
|
|
16533
|
-
|
|
16533
|
+
Vt(this, t);
|
|
16534
16534
|
break;
|
|
16535
16535
|
}
|
|
16536
16536
|
case w.IN_CAPTION: {
|
|
@@ -16587,27 +16587,27 @@ class Bi {
|
|
|
16587
16587
|
onEof(t) {
|
|
16588
16588
|
switch (this.insertionMode) {
|
|
16589
16589
|
case w.INITIAL: {
|
|
16590
|
-
|
|
16590
|
+
qt(this, t);
|
|
16591
16591
|
break;
|
|
16592
16592
|
}
|
|
16593
16593
|
case w.BEFORE_HTML: {
|
|
16594
|
-
|
|
16594
|
+
Xt(this, t);
|
|
16595
16595
|
break;
|
|
16596
16596
|
}
|
|
16597
16597
|
case w.BEFORE_HEAD: {
|
|
16598
|
-
|
|
16598
|
+
Kt(this, t);
|
|
16599
16599
|
break;
|
|
16600
16600
|
}
|
|
16601
16601
|
case w.IN_HEAD: {
|
|
16602
|
-
|
|
16602
|
+
$t(this, t);
|
|
16603
16603
|
break;
|
|
16604
16604
|
}
|
|
16605
16605
|
case w.IN_HEAD_NO_SCRIPT: {
|
|
16606
|
-
|
|
16606
|
+
Jt(this, t);
|
|
16607
16607
|
break;
|
|
16608
16608
|
}
|
|
16609
16609
|
case w.AFTER_HEAD: {
|
|
16610
|
-
|
|
16610
|
+
Zt(this, t);
|
|
16611
16611
|
break;
|
|
16612
16612
|
}
|
|
16613
16613
|
case w.IN_BODY:
|
|
@@ -16627,7 +16627,7 @@ class Bi {
|
|
|
16627
16627
|
break;
|
|
16628
16628
|
}
|
|
16629
16629
|
case w.IN_TABLE_TEXT: {
|
|
16630
|
-
|
|
16630
|
+
Vt(this, t);
|
|
16631
16631
|
break;
|
|
16632
16632
|
}
|
|
16633
16633
|
case w.IN_TEMPLATE: {
|
|
@@ -16719,7 +16719,7 @@ function hg(e, t) {
|
|
|
16719
16719
|
return e.openElements.replace(t.element, r), t.element = r, r;
|
|
16720
16720
|
}
|
|
16721
16721
|
function pg(e, t, n) {
|
|
16722
|
-
const r = e.treeAdapter.getTagName(t), a =
|
|
16722
|
+
const r = e.treeAdapter.getTagName(t), a = Pt(r);
|
|
16723
16723
|
if (e._isElementCausesFosterParenting(a))
|
|
16724
16724
|
e._fosterParentElement(n);
|
|
16725
16725
|
else {
|
|
@@ -16772,17 +16772,17 @@ function bg(e, t) {
|
|
|
16772
16772
|
const n = t.forceQuirks ? Oe.QUIRKS : G1(t);
|
|
16773
16773
|
W1(t) || e._err(t, N.nonConformingDoctype), e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = w.BEFORE_HTML;
|
|
16774
16774
|
}
|
|
16775
|
-
function
|
|
16775
|
+
function qt(e, t) {
|
|
16776
16776
|
e._err(t, N.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Oe.QUIRKS), e.insertionMode = w.BEFORE_HTML, e._processToken(t);
|
|
16777
16777
|
}
|
|
16778
16778
|
function Eg(e, t) {
|
|
16779
|
-
t.tagID === s.HTML ? (e._insertElement(t, R.HTML), e.insertionMode = w.BEFORE_HEAD) :
|
|
16779
|
+
t.tagID === s.HTML ? (e._insertElement(t, R.HTML), e.insertionMode = w.BEFORE_HEAD) : Xt(e, t);
|
|
16780
16780
|
}
|
|
16781
16781
|
function wg(e, t) {
|
|
16782
16782
|
const n = t.tagID;
|
|
16783
|
-
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) &&
|
|
16783
|
+
(n === s.HTML || n === s.HEAD || n === s.BODY || n === s.BR) && Xt(e, t);
|
|
16784
16784
|
}
|
|
16785
|
-
function
|
|
16785
|
+
function Xt(e, t) {
|
|
16786
16786
|
e._insertFakeRootElement(), e.insertionMode = w.BEFORE_HEAD, e._processToken(t);
|
|
16787
16787
|
}
|
|
16788
16788
|
function xg(e, t) {
|
|
@@ -16796,14 +16796,14 @@ function xg(e, t) {
|
|
|
16796
16796
|
break;
|
|
16797
16797
|
}
|
|
16798
16798
|
default:
|
|
16799
|
-
|
|
16799
|
+
Kt(e, t);
|
|
16800
16800
|
}
|
|
16801
16801
|
}
|
|
16802
16802
|
function Tg(e, t) {
|
|
16803
16803
|
const n = t.tagID;
|
|
16804
|
-
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ?
|
|
16804
|
+
n === s.HEAD || n === s.BODY || n === s.HTML || n === s.BR ? Kt(e, t) : e._err(t, N.endTagWithoutMatchingOpenElement);
|
|
16805
16805
|
}
|
|
16806
|
-
function
|
|
16806
|
+
function Kt(e, t) {
|
|
16807
16807
|
e._insertFakeElement(C.HEAD, s.HEAD), e.headElement = e.openElements.current, e.insertionMode = w.IN_HEAD, e._processToken(t);
|
|
16808
16808
|
}
|
|
16809
16809
|
function He(e, t) {
|
|
@@ -16846,7 +16846,7 @@ function He(e, t) {
|
|
|
16846
16846
|
break;
|
|
16847
16847
|
}
|
|
16848
16848
|
default:
|
|
16849
|
-
|
|
16849
|
+
$t(e, t);
|
|
16850
16850
|
}
|
|
16851
16851
|
}
|
|
16852
16852
|
function yg(e, t) {
|
|
@@ -16858,7 +16858,7 @@ function yg(e, t) {
|
|
|
16858
16858
|
case s.BODY:
|
|
16859
16859
|
case s.BR:
|
|
16860
16860
|
case s.HTML: {
|
|
16861
|
-
|
|
16861
|
+
$t(e, t);
|
|
16862
16862
|
break;
|
|
16863
16863
|
}
|
|
16864
16864
|
case s.TEMPLATE: {
|
|
@@ -16872,7 +16872,7 @@ function yg(e, t) {
|
|
|
16872
16872
|
function ft(e, t) {
|
|
16873
16873
|
e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== s.TEMPLATE && e._err(t, N.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(s.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, N.endTagWithoutMatchingOpenElement);
|
|
16874
16874
|
}
|
|
16875
|
-
function
|
|
16875
|
+
function $t(e, t) {
|
|
16876
16876
|
e.openElements.pop(), e.insertionMode = w.AFTER_HEAD, e._processToken(t);
|
|
16877
16877
|
}
|
|
16878
16878
|
function Cg(e, t) {
|
|
@@ -16896,7 +16896,7 @@ function Cg(e, t) {
|
|
|
16896
16896
|
break;
|
|
16897
16897
|
}
|
|
16898
16898
|
default:
|
|
16899
|
-
|
|
16899
|
+
Jt(e, t);
|
|
16900
16900
|
}
|
|
16901
16901
|
}
|
|
16902
16902
|
function _g(e, t) {
|
|
@@ -16906,14 +16906,14 @@ function _g(e, t) {
|
|
|
16906
16906
|
break;
|
|
16907
16907
|
}
|
|
16908
16908
|
case s.BR: {
|
|
16909
|
-
|
|
16909
|
+
Jt(e, t);
|
|
16910
16910
|
break;
|
|
16911
16911
|
}
|
|
16912
16912
|
default:
|
|
16913
16913
|
e._err(t, N.endTagWithoutMatchingOpenElement);
|
|
16914
16914
|
}
|
|
16915
16915
|
}
|
|
16916
|
-
function
|
|
16916
|
+
function Jt(e, t) {
|
|
16917
16917
|
const n = t.type === X.EOF ? N.openElementsLeftAfterEof : N.disallowedContentInNoscriptInHead;
|
|
16918
16918
|
e._err(t, n), e.openElements.pop(), e.insertionMode = w.IN_HEAD, e._processToken(t);
|
|
16919
16919
|
}
|
|
@@ -16949,7 +16949,7 @@ function Ag(e, t) {
|
|
|
16949
16949
|
break;
|
|
16950
16950
|
}
|
|
16951
16951
|
default:
|
|
16952
|
-
|
|
16952
|
+
Zt(e, t);
|
|
16953
16953
|
}
|
|
16954
16954
|
}
|
|
16955
16955
|
function kg(e, t) {
|
|
@@ -16957,7 +16957,7 @@ function kg(e, t) {
|
|
|
16957
16957
|
case s.BODY:
|
|
16958
16958
|
case s.HTML:
|
|
16959
16959
|
case s.BR: {
|
|
16960
|
-
|
|
16960
|
+
Zt(e, t);
|
|
16961
16961
|
break;
|
|
16962
16962
|
}
|
|
16963
16963
|
case s.TEMPLATE: {
|
|
@@ -16968,7 +16968,7 @@ function kg(e, t) {
|
|
|
16968
16968
|
e._err(t, N.endTagWithoutMatchingOpenElement);
|
|
16969
16969
|
}
|
|
16970
16970
|
}
|
|
16971
|
-
function
|
|
16971
|
+
function Zt(e, t) {
|
|
16972
16972
|
e._insertFakeElement(C.BODY, s.BODY), e.insertionMode = w.IN_BODY, Gn(e, t);
|
|
16973
16973
|
}
|
|
16974
16974
|
function Gn(e, t) {
|
|
@@ -17574,7 +17574,7 @@ function At(e, t) {
|
|
|
17574
17574
|
hn(e, t);
|
|
17575
17575
|
}
|
|
17576
17576
|
}
|
|
17577
|
-
function
|
|
17577
|
+
function nn(e, t) {
|
|
17578
17578
|
switch (t.tagID) {
|
|
17579
17579
|
case s.TABLE: {
|
|
17580
17580
|
e.openElements.hasInTableScope(s.TABLE) && (e.openElements.popUntilTagNamePopped(s.TABLE), e._resetInsertionMode());
|
|
@@ -17610,7 +17610,7 @@ function Bs(e, t) {
|
|
|
17610
17610
|
function Fs(e, t) {
|
|
17611
17611
|
e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0;
|
|
17612
17612
|
}
|
|
17613
|
-
function
|
|
17613
|
+
function Vt(e, t) {
|
|
17614
17614
|
let n = 0;
|
|
17615
17615
|
if (e.hasNonWhitespacePendingCharacterToken)
|
|
17616
17616
|
for (; n < e.pendingCharacterTokens.length; n++)
|
|
@@ -17630,7 +17630,7 @@ function yb(e, t) {
|
|
|
17630
17630
|
switch (n) {
|
|
17631
17631
|
case s.CAPTION:
|
|
17632
17632
|
case s.TABLE: {
|
|
17633
|
-
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = w.IN_TABLE, n === s.TABLE &&
|
|
17633
|
+
e.openElements.hasInTableScope(s.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(s.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = w.IN_TABLE, n === s.TABLE && nn(e, t));
|
|
17634
17634
|
break;
|
|
17635
17635
|
}
|
|
17636
17636
|
case s.BODY:
|
|
@@ -17719,7 +17719,7 @@ function Br(e, t) {
|
|
|
17719
17719
|
break;
|
|
17720
17720
|
}
|
|
17721
17721
|
case s.TABLE: {
|
|
17722
|
-
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = w.IN_TABLE,
|
|
17722
|
+
e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = w.IN_TABLE, nn(e, t));
|
|
17723
17723
|
break;
|
|
17724
17724
|
}
|
|
17725
17725
|
case s.BODY:
|
|
@@ -17732,7 +17732,7 @@ function Br(e, t) {
|
|
|
17732
17732
|
case s.TR:
|
|
17733
17733
|
break;
|
|
17734
17734
|
default:
|
|
17735
|
-
|
|
17735
|
+
nn(e, t);
|
|
17736
17736
|
}
|
|
17737
17737
|
}
|
|
17738
17738
|
function Kn(e, t) {
|
|
@@ -17781,7 +17781,7 @@ function Us(e, t) {
|
|
|
17781
17781
|
case s.TH:
|
|
17782
17782
|
break;
|
|
17783
17783
|
default:
|
|
17784
|
-
|
|
17784
|
+
nn(e, t);
|
|
17785
17785
|
}
|
|
17786
17786
|
}
|
|
17787
17787
|
function _b(e, t) {
|
|
@@ -18049,7 +18049,7 @@ function Ws(e, t) {
|
|
|
18049
18049
|
stitches: !1,
|
|
18050
18050
|
options: t || {}
|
|
18051
18051
|
};
|
|
18052
|
-
r(e, a),
|
|
18052
|
+
r(e, a), Mt(a, je());
|
|
18053
18053
|
const i = n ? a.parser.document : a.parser.getFragment(), o = Zm(i, {
|
|
18054
18054
|
// To do: support `space`?
|
|
18055
18055
|
file: a.options.file
|
|
@@ -18085,7 +18085,7 @@ function Vb(e, t) {
|
|
|
18085
18085
|
chars: e.value,
|
|
18086
18086
|
location: pn(e)
|
|
18087
18087
|
};
|
|
18088
|
-
|
|
18088
|
+
Mt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
18089
18089
|
}
|
|
18090
18090
|
function Wb(e, t) {
|
|
18091
18091
|
const n = {
|
|
@@ -18096,7 +18096,7 @@ function Wb(e, t) {
|
|
|
18096
18096
|
systemId: "",
|
|
18097
18097
|
location: pn(e)
|
|
18098
18098
|
};
|
|
18099
|
-
|
|
18099
|
+
Mt(t, je(e)), t.parser.currentToken = n, t.parser._processToken(t.parser.currentToken);
|
|
18100
18100
|
}
|
|
18101
18101
|
function Gb(e, t) {
|
|
18102
18102
|
t.stitches = !0;
|
|
@@ -18116,7 +18116,7 @@ function Qs(e, t) {
|
|
|
18116
18116
|
data: n,
|
|
18117
18117
|
location: pn(e)
|
|
18118
18118
|
};
|
|
18119
|
-
|
|
18119
|
+
Mt(t, je(e)), t.parser.currentToken = r, t.parser._processToken(t.parser.currentToken);
|
|
18120
18120
|
}
|
|
18121
18121
|
function Qb(e, t) {
|
|
18122
18122
|
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, Xs(t, je(e)), t.parser.tokenizer.write(
|
|
@@ -18141,7 +18141,7 @@ function Xb(e, t) {
|
|
|
18141
18141
|
throw Yb.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);
|
|
18142
18142
|
}
|
|
18143
18143
|
}
|
|
18144
|
-
function
|
|
18144
|
+
function Mt(e, t) {
|
|
18145
18145
|
Xs(e, t);
|
|
18146
18146
|
const n = e.parser.tokenizer.currentCharacterToken;
|
|
18147
18147
|
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 = ce.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: "" };
|
|
@@ -18162,7 +18162,7 @@ function Xs(e, t) {
|
|
|
18162
18162
|
function Kb(e, t) {
|
|
18163
18163
|
const n = e.tagName.toLowerCase();
|
|
18164
18164
|
if (t.parser.tokenizer.state === ce.PLAINTEXT) return;
|
|
18165
|
-
|
|
18165
|
+
Mt(t, je(e));
|
|
18166
18166
|
const r = t.parser.openElements.current;
|
|
18167
18167
|
let a = "namespaceURI" in r ? r.namespaceURI : ct.html;
|
|
18168
18168
|
a === ct.html && n === "svg" && (a = ct.svg);
|
|
@@ -18173,7 +18173,7 @@ function Kb(e, t) {
|
|
|
18173
18173
|
), o = {
|
|
18174
18174
|
type: X.START_TAG,
|
|
18175
18175
|
tagName: n,
|
|
18176
|
-
tagID:
|
|
18176
|
+
tagID: Pt(n),
|
|
18177
18177
|
// We always send start and end tags.
|
|
18178
18178
|
selfClosing: !1,
|
|
18179
18179
|
ackSelfClosing: !1,
|
|
@@ -18187,11 +18187,11 @@ function Kb(e, t) {
|
|
|
18187
18187
|
function $b(e, t) {
|
|
18188
18188
|
const n = e.tagName.toLowerCase();
|
|
18189
18189
|
if (!t.parser.tokenizer.inForeignNode && h1.includes(n) || t.parser.tokenizer.state === ce.PLAINTEXT) return;
|
|
18190
|
-
|
|
18190
|
+
Mt(t, Vn(e));
|
|
18191
18191
|
const r = {
|
|
18192
18192
|
type: X.END_TAG,
|
|
18193
18193
|
tagName: n,
|
|
18194
|
-
tagID:
|
|
18194
|
+
tagID: Pt(n),
|
|
18195
18195
|
selfClosing: !1,
|
|
18196
18196
|
ackSelfClosing: !1,
|
|
18197
18197
|
attrs: [],
|
|
@@ -18275,7 +18275,7 @@ var Zs = /* @__PURE__ */ Ur.createContext({
|
|
|
18275
18275
|
var p = a || "<!DOCTYPE html><html><head></head><body></body></html>", E = () => h ? h.contentDocument : null, y = () => {
|
|
18276
18276
|
var P = E();
|
|
18277
18277
|
return o ? P == null ? void 0 : P.querySelector(o) : P == null ? void 0 : P.body;
|
|
18278
|
-
}, A =
|
|
18278
|
+
}, A = rn(), _ = xu((P) => {
|
|
18279
18279
|
A.current = P;
|
|
18280
18280
|
var F = () => setInterval(() => _(P), 500);
|
|
18281
18281
|
clearInterval(F()), l || c(!0);
|
|
@@ -18438,10 +18438,10 @@ function Hr({
|
|
|
18438
18438
|
type: n,
|
|
18439
18439
|
attachments: r
|
|
18440
18440
|
}) {
|
|
18441
|
-
const {
|
|
18442
|
-
return
|
|
18443
|
-
/* @__PURE__ */ b("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: r == null ? void 0 : r.map((
|
|
18444
|
-
|
|
18441
|
+
const { anchorTarget: a } = It(), { message: i, variant: o = "default" } = e;
|
|
18442
|
+
return o === "error" ? /* @__PURE__ */ b("div", { children: /* @__PURE__ */ b("div", { className: "flex flex-row flex-wrap items-center justify-start", children: /* @__PURE__ */ b("div", { className: "leading-snug text-sm text-destructive", children: i }) }) }) : /* @__PURE__ */ Y("div", { className: "w-5/6 flex flex-col items-start gap-1", children: [
|
|
18443
|
+
/* @__PURE__ */ b("div", { className: "w-full gap-1 flex flex-row flex-wrap items-center justify-start", children: r == null ? void 0 : r.map((u) => /* @__PURE__ */ b(au, { attachment: u }, u.id)) }),
|
|
18444
|
+
i.length > 0 && /* @__PURE__ */ b(
|
|
18445
18445
|
ds,
|
|
18446
18446
|
{
|
|
18447
18447
|
"data-type": n,
|
|
@@ -18449,7 +18449,7 @@ function Hr({
|
|
|
18449
18449
|
remarkPlugins: [Bo],
|
|
18450
18450
|
rehypePlugins: [Ks],
|
|
18451
18451
|
components: {
|
|
18452
|
-
a: ({ children:
|
|
18452
|
+
a: ({ children: u, ...l }) => /* @__PURE__ */ b("a", { target: a ?? "_top", ...l, children: u })
|
|
18453
18453
|
},
|
|
18454
18454
|
className: V(
|
|
18455
18455
|
"w-fit p-2 rounded-2xl bg-secondary border shadow-sm",
|
|
@@ -18459,7 +18459,7 @@ function Hr({
|
|
|
18459
18459
|
// No need to add "whitespace-pre-wrap" in the agent or bot message because it is markup and content appear on separate lines as expected
|
|
18460
18460
|
// Adding "whitespace-pre-wrap" will result in unnecessarily huge line breaks
|
|
18461
18461
|
),
|
|
18462
|
-
children:
|
|
18462
|
+
children: i
|
|
18463
18463
|
}
|
|
18464
18464
|
)
|
|
18465
18465
|
] });
|
|
@@ -18475,7 +18475,7 @@ function iu(e) {
|
|
|
18475
18475
|
return n ? /* @__PURE__ */ b(n, { ...e, id: e.id }) : /* @__PURE__ */ b(Hr, { ...e });
|
|
18476
18476
|
}
|
|
18477
18477
|
const fn = ge.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
|
|
18478
|
-
|
|
18478
|
+
St.Root,
|
|
18479
18479
|
{
|
|
18480
18480
|
ref: n,
|
|
18481
18481
|
className: V(
|
|
@@ -18485,18 +18485,18 @@ const fn = ge.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
|
|
|
18485
18485
|
...t
|
|
18486
18486
|
}
|
|
18487
18487
|
));
|
|
18488
|
-
fn.displayName =
|
|
18488
|
+
fn.displayName = St.Root.displayName;
|
|
18489
18489
|
const Jn = ge.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
|
|
18490
|
-
|
|
18490
|
+
St.Image,
|
|
18491
18491
|
{
|
|
18492
18492
|
ref: n,
|
|
18493
18493
|
className: V("aspect-square h-full w-full", e),
|
|
18494
18494
|
...t
|
|
18495
18495
|
}
|
|
18496
18496
|
));
|
|
18497
|
-
Jn.displayName =
|
|
18497
|
+
Jn.displayName = St.Image.displayName;
|
|
18498
18498
|
const Zn = ge.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
|
|
18499
|
-
|
|
18499
|
+
St.Fallback,
|
|
18500
18500
|
{
|
|
18501
18501
|
ref: n,
|
|
18502
18502
|
className: V(
|
|
@@ -18506,7 +18506,7 @@ const Zn = ge.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ b(
|
|
|
18506
18506
|
...t
|
|
18507
18507
|
}
|
|
18508
18508
|
));
|
|
18509
|
-
Zn.displayName =
|
|
18509
|
+
Zn.displayName = St.Fallback.displayName;
|
|
18510
18510
|
function u2({ message: e }) {
|
|
18511
18511
|
var t;
|
|
18512
18512
|
return /* @__PURE__ */ Y("div", { className: "w-5/6 flex flex-col items-end gap-1", children: [
|
|
@@ -18530,7 +18530,7 @@ function l2({
|
|
|
18530
18530
|
messages: e
|
|
18531
18531
|
}) {
|
|
18532
18532
|
var n, r, a, i, o, u;
|
|
18533
|
-
const { user: t } =
|
|
18533
|
+
const { user: t } = It();
|
|
18534
18534
|
return /* @__PURE__ */ Y("div", { className: V("group", "flex flex-col gap-2 justify-end items-end"), children: [
|
|
18535
18535
|
/* @__PURE__ */ Y(fn, { className: "bg-primary text-primary-foreground", children: [
|
|
18536
18536
|
/* @__PURE__ */ b(
|
|
@@ -18561,12 +18561,12 @@ function c2({
|
|
|
18561
18561
|
function d2() {
|
|
18562
18562
|
const {
|
|
18563
18563
|
messagesState: { messages: e }
|
|
18564
|
-
} =
|
|
18564
|
+
} = an(), { isAwaitingBotReply: t } = ji(), { componentStore: n } = Nt(), r = It(), a = zr(
|
|
18565
18565
|
() => cc(e),
|
|
18566
18566
|
[e]
|
|
18567
18567
|
), i = !r.initialMessages || r.initialMessages.length === 0 ? ["Hello, how can I help you?"] : r.initialMessages, o = n.getComponent(
|
|
18568
18568
|
"loading"
|
|
18569
|
-
), u =
|
|
18569
|
+
), u = rn(null);
|
|
18570
18570
|
function l() {
|
|
18571
18571
|
setTimeout(() => {
|
|
18572
18572
|
const c = u.current;
|
|
@@ -18712,14 +18712,14 @@ function ha({
|
|
|
18712
18712
|
function f2() {
|
|
18713
18713
|
const {
|
|
18714
18714
|
messagesState: { isInitialFetchLoading: e }
|
|
18715
|
-
} =
|
|
18715
|
+
} = an(), {
|
|
18716
18716
|
sessionState: { session: t }
|
|
18717
18717
|
} = Mn(), { theme: n } = mn();
|
|
18718
18718
|
ha({
|
|
18719
18719
|
width: n.screens.chat.width,
|
|
18720
18720
|
height: n.screens.chat.height
|
|
18721
18721
|
});
|
|
18722
|
-
const r =
|
|
18722
|
+
const r = rn((t == null ? void 0 : t.id) || "chat").current;
|
|
18723
18723
|
return /* @__PURE__ */ b(
|
|
18724
18724
|
"div",
|
|
18725
18725
|
{
|
|
@@ -18761,7 +18761,7 @@ function f2() {
|
|
|
18761
18761
|
}
|
|
18762
18762
|
const m2 = "[data-opencx-widget-content-root]";
|
|
18763
18763
|
function g2() {
|
|
18764
|
-
const e =
|
|
18764
|
+
const e = rn(null);
|
|
18765
18765
|
return kt(() => {
|
|
18766
18766
|
const t = document.querySelector(m2);
|
|
18767
18767
|
if (t && e.current) {
|
|
@@ -18825,7 +18825,7 @@ function b2({ className: e }) {
|
|
|
18825
18825
|
);
|
|
18826
18826
|
}
|
|
18827
18827
|
function su({ className: e }) {
|
|
18828
|
-
const { token: t } =
|
|
18828
|
+
const { token: t } = It();
|
|
18829
18829
|
return /* @__PURE__ */ b(
|
|
18830
18830
|
"div",
|
|
18831
18831
|
{
|
|
@@ -18859,7 +18859,7 @@ const E2 = er.object({
|
|
|
18859
18859
|
});
|
|
18860
18860
|
function w2() {
|
|
18861
18861
|
var y, A, _, L, O, P, F, I, H;
|
|
18862
|
-
const { createUnverifiedContact: e } = Wu(), t =
|
|
18862
|
+
const { createUnverifiedContact: e } = Wu(), t = It(), { theme: n } = mn(), r = Ot(), { data: a } = Bn(), { observedElementRef: i } = g2();
|
|
18863
18863
|
ha({
|
|
18864
18864
|
height: void 0,
|
|
18865
18865
|
width: n.screens.welcome.width
|
|
@@ -19007,7 +19007,7 @@ function w2() {
|
|
|
19007
19007
|
);
|
|
19008
19008
|
}
|
|
19009
19009
|
function x2({ session: e }) {
|
|
19010
|
-
const { bot: t } =
|
|
19010
|
+
const { bot: t } = It(), { toChatScreen: n } = on(), r = e.assignee.kind === "human" ? e.assignee.name || "Support Agent" : (t == null ? void 0 : t.name) || "AI Support Agent", a = e.assignee.kind === "human" ? e.assignee.avatarUrl || "" : (t == null ? void 0 : t.avatar) || "";
|
|
19011
19011
|
return /* @__PURE__ */ Y(
|
|
19012
19012
|
Se,
|
|
19013
19013
|
{
|
|
@@ -19037,7 +19037,7 @@ function x2({ session: e }) {
|
|
|
19037
19037
|
);
|
|
19038
19038
|
}
|
|
19039
19039
|
function T2() {
|
|
19040
|
-
const e =
|
|
19040
|
+
const e = Ot(), { toChatScreen: t } = on(), {
|
|
19041
19041
|
sessionsState: { data: n, isInitialFetchLoading: r }
|
|
19042
19042
|
} = Mn();
|
|
19043
19043
|
return /* @__PURE__ */ b("div", { className: "flex-1 flex flex-col overflow-scroll p-2", children: /* @__PURE__ */ b(ke, { mode: "wait", children: r ? /* @__PURE__ */ b(
|
|
@@ -19113,7 +19113,7 @@ function C2() {
|
|
|
19113
19113
|
Bn();
|
|
19114
19114
|
const {
|
|
19115
19115
|
routerState: { screen: e }
|
|
19116
|
-
} =
|
|
19116
|
+
} = on();
|
|
19117
19117
|
return /* @__PURE__ */ Y("div", { className: "relative bg-background size-full", children: [
|
|
19118
19118
|
/* @__PURE__ */ b($n.Container, {}),
|
|
19119
19119
|
/* @__PURE__ */ b(ke, { mode: "wait", children: (() => {
|