@eloquentai/chat-sdk 0.35.0 → 0.35.1-dev.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/contexts/agent-cognition/use-agent-cognition.d.ts +1 -1
- package/dist/index.mjs +201 -200
- package/dist/index.mjs.map +1 -1
- package/dist/{skeleton-Bjh-b-YT.js → skeleton-CyUpDF_5.js} +630 -650
- package/dist/{skeleton-Bjh-b-YT.js.map → skeleton-CyUpDF_5.js.map} +1 -1
- package/dist/ui.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as x, jsxs as Z, Fragment as zt } from "react/jsx-runtime";
|
|
3
3
|
import * as R from "react";
|
|
4
|
-
import { useState as
|
|
4
|
+
import { useState as Ae, forwardRef as je, createContext as Ar, useContext as Er, createElement as Co, useRef as Xe, useEffect as vt, useMemo as qn, useCallback as wa } from "react";
|
|
5
5
|
import * as vc from "react-dom";
|
|
6
6
|
try {
|
|
7
7
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
8
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
8
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "b7d035fa-8c7a-417d-8c0c-35820b79aca5", e._sentryDebugIdIdentifier = "sentry-dbid-b7d035fa-8c7a-417d-8c0c-35820b79aca5");
|
|
9
9
|
} catch {
|
|
10
10
|
}
|
|
11
11
|
{
|
|
12
12
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
13
|
-
e.SENTRY_RELEASE = { id: "
|
|
13
|
+
e.SENTRY_RELEASE = { id: "8519bacc8776a5f2f56d7364c00ca2b537f1abb9" };
|
|
14
14
|
}
|
|
15
15
|
function ka(e) {
|
|
16
16
|
var t, n, r = "";
|
|
@@ -112,7 +112,7 @@ const Ac = (e, t) => {
|
|
|
112
112
|
const r = e === "" ? t : Ca(t, e);
|
|
113
113
|
r.classGroupId = n;
|
|
114
114
|
}, Pc = (e, t, n, r) => {
|
|
115
|
-
if (
|
|
115
|
+
if (Mc(e)) {
|
|
116
116
|
Go(e(r), t, n, r);
|
|
117
117
|
return;
|
|
118
118
|
}
|
|
@@ -132,7 +132,7 @@ const Ac = (e, t) => {
|
|
|
132
132
|
a || (a = Sa(), n.nextPart.set(i, a)), n = a;
|
|
133
133
|
}
|
|
134
134
|
return n;
|
|
135
|
-
},
|
|
135
|
+
}, Mc = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, Oc = (e) => {
|
|
136
136
|
if (e < 1)
|
|
137
137
|
return {
|
|
138
138
|
get: () => {
|
|
@@ -223,7 +223,7 @@ const Ac = (e, t) => {
|
|
|
223
223
|
return o.length > 0 && (o.sort(), r.push(...o)), r;
|
|
224
224
|
};
|
|
225
225
|
}, Uc = (e) => ({
|
|
226
|
-
cache:
|
|
226
|
+
cache: Oc(e.cacheSize),
|
|
227
227
|
parseClassName: Fc(e),
|
|
228
228
|
sortModifiers: Bc(e),
|
|
229
229
|
postfixLookupClassGroupIds: Hc(e),
|
|
@@ -274,14 +274,14 @@ const Ac = (e, t) => {
|
|
|
274
274
|
}
|
|
275
275
|
w = !1;
|
|
276
276
|
}
|
|
277
|
-
const _ = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"),
|
|
278
|
-
if (a.indexOf(
|
|
277
|
+
const _ = p.length === 0 ? "" : p.length === 1 ? p[0] : l(p).join(":"), O = g ? _ + Ao : _, F = O + E;
|
|
278
|
+
if (a.indexOf(F) > -1)
|
|
279
279
|
continue;
|
|
280
|
-
a.push(
|
|
280
|
+
a.push(F);
|
|
281
281
|
const C = o(E, w);
|
|
282
282
|
for (let B = 0; B < C.length; ++B) {
|
|
283
283
|
const N = C[B];
|
|
284
|
-
a.push(
|
|
284
|
+
a.push(O + N);
|
|
285
285
|
}
|
|
286
286
|
u = c + (u.length > 0 ? " " + u : u);
|
|
287
287
|
}
|
|
@@ -314,7 +314,7 @@ const Ac = (e, t) => {
|
|
|
314
314
|
}, Wc = [], ke = (e) => {
|
|
315
315
|
const t = (n) => n[e] || Wc;
|
|
316
316
|
return t.isThemeGetter = !0, t;
|
|
317
|
-
}, Ea = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xc = /\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$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => Gc.test(e), ee = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => !!e && Number.isInteger(Number(e)), Xr = (e) => e.endsWith("%") && ee(e.slice(0, -1)),
|
|
317
|
+
}, Ea = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ta = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Gc = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, Yc = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Xc = /\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$/, Kc = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, Jc = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qc = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Lt = (e) => Gc.test(e), ee = (e) => !!e && !Number.isNaN(Number(e)), ht = (e) => !!e && Number.isInteger(Number(e)), Xr = (e) => e.endsWith("%") && ee(e.slice(0, -1)), xt = (e) => Yc.test(e), qa = () => !0, Zc = (e) => (
|
|
318
318
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
319
319
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
320
320
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
@@ -326,7 +326,7 @@ const Ac = (e, t) => {
|
|
|
326
326
|
const r = Ta.exec(e);
|
|
327
327
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
328
328
|
}, _a = (e) => e === "position" || e === "percentage", Ia = (e) => e === "image" || e === "url", Ra = (e) => e === "length" || e === "size" || e === "bg-size", Na = (e) => e === "length", df = (e) => e === "number", La = (e) => e === "family-name", Pa = (e) => e === "number" || e === "weight", Da = (e) => e === "shadow", nl = () => {
|
|
329
|
-
const e = ke("color"), t = ke("font"), n = ke("text"), r = ke("font-weight"), o = ke("tracking"), l = ke("leading"), i = ke("breakpoint"), a = ke("container"), s = ke("spacing"), u = ke("radius"), f = ke("shadow"), c = ke("inset-shadow"), d = ke("text-shadow"), p = ke("drop-shadow"), g = ke("blur"), k = ke("perspective"), v = ke("aspect"), w = ke("ease"), E = ke("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"],
|
|
329
|
+
const e = ke("color"), t = ke("font"), n = ke("text"), r = ke("font-weight"), o = ke("tracking"), l = ke("leading"), i = ke("breakpoint"), a = ke("container"), s = ke("spacing"), u = ke("radius"), f = ke("shadow"), c = ke("inset-shadow"), d = ke("text-shadow"), p = ke("drop-shadow"), g = ke("blur"), k = ke("perspective"), v = ke("aspect"), w = ke("ease"), E = ke("animate"), _ = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], O = () => [
|
|
330
330
|
"center",
|
|
331
331
|
"top",
|
|
332
332
|
"bottom",
|
|
@@ -344,9 +344,9 @@ const Ac = (e, t) => {
|
|
|
344
344
|
"bottom-left",
|
|
345
345
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
346
346
|
"left-bottom"
|
|
347
|
-
],
|
|
347
|
+
], F = () => [...O(), H, U], C = () => ["auto", "hidden", "clip", "visible", "scroll"], B = () => ["auto", "contain", "none"], N = () => [H, U, s], W = () => [Lt, "full", "auto", ...N()], S = () => [ht, "none", "subgrid", H, U], P = () => ["auto", {
|
|
348
348
|
span: ["full", ht, H, U]
|
|
349
|
-
}, ht, H, U],
|
|
349
|
+
}, ht, H, U], z = () => [ht, "auto", H, U], re = () => ["auto", "min", "max", "fr", H, U], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], J = () => ["auto", ...N()], ae = () => [Lt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...N()], Ee = () => [Lt, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...N()], Le = () => [Lt, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...N()], m = () => [e, H, U], Se = () => [...O(), tl, el, {
|
|
350
350
|
position: [H, U]
|
|
351
351
|
}], Pe = () => ["no-repeat", {
|
|
352
352
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -373,22 +373,22 @@ const Ac = (e, t) => {
|
|
|
373
373
|
theme: {
|
|
374
374
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
375
375
|
aspect: ["video"],
|
|
376
|
-
blur: [
|
|
377
|
-
breakpoint: [
|
|
376
|
+
blur: [xt],
|
|
377
|
+
breakpoint: [xt],
|
|
378
378
|
color: [qa],
|
|
379
|
-
container: [
|
|
380
|
-
"drop-shadow": [
|
|
379
|
+
container: [xt],
|
|
380
|
+
"drop-shadow": [xt],
|
|
381
381
|
ease: ["in", "out", "in-out"],
|
|
382
382
|
font: [nf],
|
|
383
383
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
384
|
-
"inset-shadow": [
|
|
384
|
+
"inset-shadow": [xt],
|
|
385
385
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
386
386
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
387
|
-
radius: [
|
|
388
|
-
shadow: [
|
|
387
|
+
radius: [xt],
|
|
388
|
+
shadow: [xt],
|
|
389
389
|
spacing: ["px", ee],
|
|
390
|
-
text: [
|
|
391
|
-
"text-shadow": [
|
|
390
|
+
text: [xt],
|
|
391
|
+
"text-shadow": [xt],
|
|
392
392
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
393
393
|
},
|
|
394
394
|
classGroups: {
|
|
@@ -503,7 +503,7 @@ const Ac = (e, t) => {
|
|
|
503
503
|
* @see https://tailwindcss.com/docs/object-position
|
|
504
504
|
*/
|
|
505
505
|
"object-position": [{
|
|
506
|
-
object:
|
|
506
|
+
object: F()
|
|
507
507
|
}],
|
|
508
508
|
/**
|
|
509
509
|
* Overflow
|
|
@@ -724,14 +724,14 @@ const Ac = (e, t) => {
|
|
|
724
724
|
* @see https://tailwindcss.com/docs/grid-column
|
|
725
725
|
*/
|
|
726
726
|
"col-start": [{
|
|
727
|
-
"col-start":
|
|
727
|
+
"col-start": z()
|
|
728
728
|
}],
|
|
729
729
|
/**
|
|
730
730
|
* Grid Column End
|
|
731
731
|
* @see https://tailwindcss.com/docs/grid-column
|
|
732
732
|
*/
|
|
733
733
|
"col-end": [{
|
|
734
|
-
"col-end":
|
|
734
|
+
"col-end": z()
|
|
735
735
|
}],
|
|
736
736
|
/**
|
|
737
737
|
* Grid Template Rows
|
|
@@ -752,14 +752,14 @@ const Ac = (e, t) => {
|
|
|
752
752
|
* @see https://tailwindcss.com/docs/grid-row
|
|
753
753
|
*/
|
|
754
754
|
"row-start": [{
|
|
755
|
-
"row-start":
|
|
755
|
+
"row-start": z()
|
|
756
756
|
}],
|
|
757
757
|
/**
|
|
758
758
|
* Grid Row End
|
|
759
759
|
* @see https://tailwindcss.com/docs/grid-row
|
|
760
760
|
*/
|
|
761
761
|
"row-end": [{
|
|
762
|
-
"row-end":
|
|
762
|
+
"row-end": z()
|
|
763
763
|
}],
|
|
764
764
|
/**
|
|
765
765
|
* Grid Auto Flow
|
|
@@ -1441,7 +1441,7 @@ const Ac = (e, t) => {
|
|
|
1441
1441
|
* @see https://tailwindcss.com/docs/background-position
|
|
1442
1442
|
*/
|
|
1443
1443
|
"bg-position": [{
|
|
1444
|
-
bg:
|
|
1444
|
+
bg: Se()
|
|
1445
1445
|
}],
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Background Repeat
|
|
@@ -2110,7 +2110,7 @@ const Ac = (e, t) => {
|
|
|
2110
2110
|
}]
|
|
2111
2111
|
}],
|
|
2112
2112
|
"mask-image-radial-pos": [{
|
|
2113
|
-
"mask-radial-at":
|
|
2113
|
+
"mask-radial-at": O()
|
|
2114
2114
|
}],
|
|
2115
2115
|
"mask-image-conic-pos": [{
|
|
2116
2116
|
"mask-conic": [ee]
|
|
@@ -2146,7 +2146,7 @@ const Ac = (e, t) => {
|
|
|
2146
2146
|
* @see https://tailwindcss.com/docs/mask-position
|
|
2147
2147
|
*/
|
|
2148
2148
|
"mask-position": [{
|
|
2149
|
-
mask:
|
|
2149
|
+
mask: Se()
|
|
2150
2150
|
}],
|
|
2151
2151
|
/**
|
|
2152
2152
|
* Mask Repeat
|
|
@@ -2457,7 +2457,7 @@ const Ac = (e, t) => {
|
|
|
2457
2457
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2458
2458
|
*/
|
|
2459
2459
|
"perspective-origin": [{
|
|
2460
|
-
"perspective-origin":
|
|
2460
|
+
"perspective-origin": F()
|
|
2461
2461
|
}],
|
|
2462
2462
|
/**
|
|
2463
2463
|
* Rotate
|
|
@@ -2553,7 +2553,7 @@ const Ac = (e, t) => {
|
|
|
2553
2553
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2554
2554
|
*/
|
|
2555
2555
|
"transform-origin": [{
|
|
2556
|
-
origin:
|
|
2556
|
+
origin: F()
|
|
2557
2557
|
}],
|
|
2558
2558
|
/**
|
|
2559
2559
|
* Transform Style
|
|
@@ -3034,7 +3034,7 @@ function te(...e) {
|
|
|
3034
3034
|
return gf(Cc(e));
|
|
3035
3035
|
}
|
|
3036
3036
|
function Xo(e) {
|
|
3037
|
-
const { className: t, bgColor: n, fgColor: r, src: o, ...l } = e, [i, a] =
|
|
3037
|
+
const { className: t, bgColor: n, fgColor: r, src: o, ...l } = e, [i, a] = Ae(!1), [s, u] = Ae(o);
|
|
3038
3038
|
s !== o && (u(o), a(!1));
|
|
3039
3039
|
const f = !o || i;
|
|
3040
3040
|
return /* @__PURE__ */ x(
|
|
@@ -3151,11 +3151,11 @@ const Zo = je(
|
|
|
3151
3151
|
)
|
|
3152
3152
|
);
|
|
3153
3153
|
Zo.displayName = "CardFooter";
|
|
3154
|
-
const
|
|
3154
|
+
const Ma = Ar(void 0);
|
|
3155
3155
|
function xf(e) {
|
|
3156
3156
|
const t = e.mode || "light";
|
|
3157
3157
|
return /* @__PURE__ */ x(
|
|
3158
|
-
|
|
3158
|
+
Ma.Provider,
|
|
3159
3159
|
{
|
|
3160
3160
|
value: {
|
|
3161
3161
|
mode: t,
|
|
@@ -3175,7 +3175,7 @@ function xf(e) {
|
|
|
3175
3175
|
);
|
|
3176
3176
|
}
|
|
3177
3177
|
const ei = () => {
|
|
3178
|
-
const e = Er(
|
|
3178
|
+
const e = Er(Ma);
|
|
3179
3179
|
if (!e)
|
|
3180
3180
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
3181
3181
|
return e;
|
|
@@ -3186,7 +3186,7 @@ const ei = () => {
|
|
|
3186
3186
|
* This source code is licensed under the ISC license.
|
|
3187
3187
|
* See the LICENSE file in the root directory of this source tree.
|
|
3188
3188
|
*/
|
|
3189
|
-
const
|
|
3189
|
+
const Oa = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
3190
3190
|
/**
|
|
3191
3191
|
* @license lucide-react v0.577.0 - ISC
|
|
3192
3192
|
*
|
|
@@ -3268,7 +3268,7 @@ const Cf = je(
|
|
|
3268
3268
|
height: t,
|
|
3269
3269
|
stroke: e,
|
|
3270
3270
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
3271
|
-
className:
|
|
3271
|
+
className: Oa("lucide", o),
|
|
3272
3272
|
...!l && !vf(a) && { "aria-hidden": "true" },
|
|
3273
3273
|
...a
|
|
3274
3274
|
},
|
|
@@ -3289,7 +3289,7 @@ const Re = (e, t) => {
|
|
|
3289
3289
|
({ className: r, ...o }, l) => Co(Cf, {
|
|
3290
3290
|
ref: l,
|
|
3291
3291
|
iconNode: t,
|
|
3292
|
-
className:
|
|
3292
|
+
className: Oa(
|
|
3293
3293
|
`lucide-${wf(rl(e))}`,
|
|
3294
3294
|
`lucide-${e}`,
|
|
3295
3295
|
r
|
|
@@ -3357,14 +3357,14 @@ const Lf = [
|
|
|
3357
3357
|
const Df = [
|
|
3358
3358
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
3359
3359
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
3360
|
-
],
|
|
3360
|
+
], Mf = Re("copy", Df);
|
|
3361
3361
|
/**
|
|
3362
3362
|
* @license lucide-react v0.577.0 - ISC
|
|
3363
3363
|
*
|
|
3364
3364
|
* This source code is licensed under the ISC license.
|
|
3365
3365
|
* See the LICENSE file in the root directory of this source tree.
|
|
3366
3366
|
*/
|
|
3367
|
-
const
|
|
3367
|
+
const Of = [
|
|
3368
3368
|
[
|
|
3369
3369
|
"path",
|
|
3370
3370
|
{
|
|
@@ -3376,7 +3376,7 @@ const Mf = [
|
|
|
3376
3376
|
["path", { d: "M10 9H8", key: "b1mrlr" }],
|
|
3377
3377
|
["path", { d: "M16 13H8", key: "t4e002" }],
|
|
3378
3378
|
["path", { d: "M16 17H8", key: "z1uh3a" }]
|
|
3379
|
-
], za = Re("file-text",
|
|
3379
|
+
], za = Re("file-text", Of);
|
|
3380
3380
|
/**
|
|
3381
3381
|
* @license lucide-react v0.577.0 - ISC
|
|
3382
3382
|
*
|
|
@@ -3814,13 +3814,13 @@ function Qa(...e) {
|
|
|
3814
3814
|
}
|
|
3815
3815
|
rt(Qa, "composeContextScopes");
|
|
3816
3816
|
var hp = Object.defineProperty, mp = (e, t) => hp(e, "name", { value: t, configurable: !0 });
|
|
3817
|
-
function
|
|
3817
|
+
function St(e) {
|
|
3818
3818
|
const t = R.useRef(e);
|
|
3819
3819
|
return R.useEffect(() => {
|
|
3820
3820
|
t.current = e;
|
|
3821
3821
|
}), R.useMemo(() => ((...n) => t.current?.(...n)), []);
|
|
3822
3822
|
}
|
|
3823
|
-
mp(
|
|
3823
|
+
mp(St, "useCallbackRef");
|
|
3824
3824
|
var gp = Object.defineProperty, bp = (e, t) => gp(e, "name", { value: t, configurable: !0 }), yp = R.createContext(void 0);
|
|
3825
3825
|
function Za(e) {
|
|
3826
3826
|
const t = R.useContext(yp);
|
|
@@ -3833,13 +3833,13 @@ function es(e, [t, n]) {
|
|
|
3833
3833
|
}
|
|
3834
3834
|
wp(es, "clamp");
|
|
3835
3835
|
var kp = Object.defineProperty, wn = (e, t) => kp(e, "name", { value: t, configurable: !0 }), ts = !!(typeof window < "u" && window.document && window.document.createElement);
|
|
3836
|
-
function
|
|
3836
|
+
function Ot(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3837
3837
|
return /* @__PURE__ */ wn(function(o) {
|
|
3838
3838
|
if (e?.(o), n === !1 || !o || !o.defaultPrevented)
|
|
3839
3839
|
return t?.(o);
|
|
3840
3840
|
}, "handleEvent");
|
|
3841
3841
|
}
|
|
3842
|
-
wn(
|
|
3842
|
+
wn(Ot, "composeEventHandlers");
|
|
3843
3843
|
function Sp(e) {
|
|
3844
3844
|
if (!ts)
|
|
3845
3845
|
throw new Error("Cannot access window outside of the DOM");
|
|
@@ -3878,7 +3878,7 @@ function os(e, t) {
|
|
|
3878
3878
|
return R.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3879
3879
|
}
|
|
3880
3880
|
ie(os, "useStateMachine");
|
|
3881
|
-
var is = "ScrollArea", [ls,
|
|
3881
|
+
var is = "ScrollArea", [ls, wk] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as = /* @__PURE__ */ R.forwardRef(
|
|
3882
3882
|
/* @__PURE__ */ ie(function(t, n) {
|
|
3883
3883
|
const {
|
|
3884
3884
|
__scopeScrollArea: r,
|
|
@@ -3886,7 +3886,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
3886
3886
|
dir: l,
|
|
3887
3887
|
scrollHideDelay: i = 600,
|
|
3888
3888
|
...a
|
|
3889
|
-
} = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E, _] = R.useState(0), [
|
|
3889
|
+
} = t, [s, u] = R.useState(null), [f, c] = R.useState(null), [d, p] = R.useState(null), [g, k] = R.useState(null), [v, w] = R.useState(null), [E, _] = R.useState(0), [O, F] = R.useState(0), [C, B] = R.useState(!1), [N, W] = R.useState(!1), S = Bt(n, u), P = Za(l);
|
|
3890
3890
|
return /* @__PURE__ */ x(
|
|
3891
3891
|
Cp,
|
|
3892
3892
|
{
|
|
@@ -3908,7 +3908,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
3908
3908
|
scrollbarYEnabled: N,
|
|
3909
3909
|
onScrollbarYEnabledChange: W,
|
|
3910
3910
|
onCornerWidthChange: _,
|
|
3911
|
-
onCornerHeightChange:
|
|
3911
|
+
onCornerHeightChange: F,
|
|
3912
3912
|
children: /* @__PURE__ */ x(
|
|
3913
3913
|
Ut.div,
|
|
3914
3914
|
{
|
|
@@ -3919,7 +3919,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
3919
3919
|
position: "relative",
|
|
3920
3920
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
3921
3921
|
"--radix-scroll-area-corner-width": E + "px",
|
|
3922
|
-
"--radix-scroll-area-corner-height":
|
|
3922
|
+
"--radix-scroll-area-corner-height": O + "px",
|
|
3923
3923
|
...t.style
|
|
3924
3924
|
}
|
|
3925
3925
|
}
|
|
@@ -4044,8 +4044,8 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4044
4044
|
"data-state": s === "hidden" ? "hidden" : "visible",
|
|
4045
4045
|
...o,
|
|
4046
4046
|
ref: n,
|
|
4047
|
-
onPointerEnter:
|
|
4048
|
-
onPointerLeave:
|
|
4047
|
+
onPointerEnter: Ot(t.onPointerEnter, () => u("POINTER_ENTER")),
|
|
4048
|
+
onPointerLeave: Ot(t.onPointerLeave, () => u("POINTER_LEAVE"))
|
|
4049
4049
|
}
|
|
4050
4050
|
) });
|
|
4051
4051
|
}, "ScrollAreaScrollbarScroll")), us = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ ie(function(t, n) {
|
|
@@ -4209,40 +4209,40 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4209
4209
|
onWheelScroll: c,
|
|
4210
4210
|
onResize: d,
|
|
4211
4211
|
...p
|
|
4212
|
-
} = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null), _ = R.useRef(""),
|
|
4212
|
+
} = t, g = ot(Et, r), [k, v] = R.useState(null), w = Bt(n, v), E = R.useRef(null), _ = R.useRef(""), O = g.viewport, F = o.content - o.viewport, C = St(c), B = St(u), N = Yn(d, 10);
|
|
4213
4213
|
function W(S) {
|
|
4214
4214
|
if (E.current) {
|
|
4215
|
-
const P = S.clientX - E.current.left,
|
|
4216
|
-
f({ x: P, y:
|
|
4215
|
+
const P = S.clientX - E.current.left, z = S.clientY - E.current.top;
|
|
4216
|
+
f({ x: P, y: z });
|
|
4217
4217
|
}
|
|
4218
4218
|
}
|
|
4219
4219
|
return ie(W, "handleDragScroll"), R.useEffect(() => {
|
|
4220
4220
|
const S = /* @__PURE__ */ ie((P) => {
|
|
4221
|
-
const
|
|
4222
|
-
k?.contains(
|
|
4221
|
+
const z = P.target;
|
|
4222
|
+
k?.contains(z) && C(P, F);
|
|
4223
4223
|
}, "handleWheel");
|
|
4224
4224
|
return document.addEventListener("wheel", S, { passive: !1 }), () => document.removeEventListener("wheel", S, { passive: !1 });
|
|
4225
|
-
}, [
|
|
4225
|
+
}, [O, k, F, C]), R.useEffect(B, [o, B]), Zt(k, N), Zt(g.content, N), /* @__PURE__ */ x(
|
|
4226
4226
|
Np,
|
|
4227
4227
|
{
|
|
4228
4228
|
scope: r,
|
|
4229
4229
|
scrollbar: k,
|
|
4230
4230
|
hasThumb: l,
|
|
4231
|
-
onThumbChange:
|
|
4232
|
-
onThumbPointerUp:
|
|
4231
|
+
onThumbChange: St(i),
|
|
4232
|
+
onThumbPointerUp: St(a),
|
|
4233
4233
|
onThumbPositionChange: B,
|
|
4234
|
-
onThumbPointerDown:
|
|
4234
|
+
onThumbPointerDown: St(s),
|
|
4235
4235
|
children: /* @__PURE__ */ x(
|
|
4236
4236
|
Ut.div,
|
|
4237
4237
|
{
|
|
4238
4238
|
...p,
|
|
4239
4239
|
ref: w,
|
|
4240
4240
|
style: { position: "absolute", ...p.style },
|
|
4241
|
-
onPointerDown:
|
|
4241
|
+
onPointerDown: Ot(t.onPointerDown, (S) => {
|
|
4242
4242
|
S.button === 0 && (S.target.setPointerCapture(S.pointerId), E.current = k.getBoundingClientRect(), _.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", g.viewport && (g.viewport.style.scrollBehavior = "auto"), W(S));
|
|
4243
4243
|
}),
|
|
4244
|
-
onPointerMove:
|
|
4245
|
-
onPointerUp:
|
|
4244
|
+
onPointerMove: Ot(t.onPointerMove, W),
|
|
4245
|
+
onPointerUp: Ot(t.onPointerUp, (S) => {
|
|
4246
4246
|
const P = S.target;
|
|
4247
4247
|
P.hasPointerCapture(S.pointerId) && P.releasePointerCapture(S.pointerId), document.body.style.webkitUserSelect = _.current, g.viewport && (g.viewport.style.scrollBehavior = ""), E.current = null;
|
|
4248
4248
|
})
|
|
@@ -4267,7 +4267,7 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4267
4267
|
if (d) {
|
|
4268
4268
|
const p = /* @__PURE__ */ ie(() => {
|
|
4269
4269
|
if (c(), !f.current) {
|
|
4270
|
-
const g =
|
|
4270
|
+
const g = Op(d, s);
|
|
4271
4271
|
f.current = g, s();
|
|
4272
4272
|
}
|
|
4273
4273
|
}, "handleScroll");
|
|
@@ -4284,11 +4284,11 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4284
4284
|
height: "var(--radix-scroll-area-thumb-height)",
|
|
4285
4285
|
...o
|
|
4286
4286
|
},
|
|
4287
|
-
onPointerDownCapture:
|
|
4287
|
+
onPointerDownCapture: Ot(t.onPointerDownCapture, (d) => {
|
|
4288
4288
|
const g = d.target.getBoundingClientRect(), k = d.clientX - g.left, v = d.clientY - g.top;
|
|
4289
4289
|
a.onThumbPointerDown({ x: k, y: v });
|
|
4290
4290
|
}),
|
|
4291
|
-
onPointerUp:
|
|
4291
|
+
onPointerUp: Ot(t.onPointerUp, a.onThumbPointerUp)
|
|
4292
4292
|
}
|
|
4293
4293
|
);
|
|
4294
4294
|
}, "ScrollAreaThumbImpl")
|
|
@@ -4296,9 +4296,9 @@ var is = "ScrollArea", [ls, Ck] = /* @__PURE__ */ ni(is), [Cp, ot] = ls(is), as
|
|
|
4296
4296
|
// blank line to reduce diff noise
|
|
4297
4297
|
/* @__PURE__ */ ie(function(t, n) {
|
|
4298
4298
|
const r = ot(ps, t.__scopeScrollArea), o = !!(r.scrollbarX && r.scrollbarY);
|
|
4299
|
-
return r.type !== "scroll" && o ? /* @__PURE__ */ x(
|
|
4299
|
+
return r.type !== "scroll" && o ? /* @__PURE__ */ x(Mp, { ...t, ref: n }) : null;
|
|
4300
4300
|
}, "ScrollAreaCorner")
|
|
4301
|
-
),
|
|
4301
|
+
), Mp = /* @__PURE__ */ R.forwardRef(/* @__PURE__ */ ie(function(t, n) {
|
|
4302
4302
|
const { __scopeScrollArea: r, ...o } = t, l = ot(ps, r), [i, a] = R.useState(0), [s, u] = R.useState(0), f = !!(i && s), { onCornerWidthChange: c, onCornerHeightChange: d } = l;
|
|
4303
4303
|
return Zt(l.scrollbarX, () => {
|
|
4304
4304
|
const p = l.scrollbarX?.offsetHeight || 0;
|
|
@@ -4361,7 +4361,7 @@ function li(e, t) {
|
|
|
4361
4361
|
return e > 0 && e < t;
|
|
4362
4362
|
}
|
|
4363
4363
|
ie(li, "isScrollingWithinScrollbarBounds");
|
|
4364
|
-
var
|
|
4364
|
+
var Op = /* @__PURE__ */ ie((e, t = () => {
|
|
4365
4365
|
}) => {
|
|
4366
4366
|
let n = { left: e.scrollLeft, top: e.scrollTop }, r = 0;
|
|
4367
4367
|
return (/* @__PURE__ */ ie((function o() {
|
|
@@ -4370,14 +4370,14 @@ var Mp = /* @__PURE__ */ ie((e, t = () => {
|
|
|
4370
4370
|
}), "loop"))(), () => window.cancelAnimationFrame(r);
|
|
4371
4371
|
}, "addUnlinkedScrollListener");
|
|
4372
4372
|
function Yn(e, t) {
|
|
4373
|
-
const n =
|
|
4373
|
+
const n = St(e), r = R.useRef(0);
|
|
4374
4374
|
return R.useEffect(() => () => window.clearTimeout(r.current), []), R.useCallback(() => {
|
|
4375
4375
|
window.clearTimeout(r.current), r.current = window.setTimeout(n, t);
|
|
4376
4376
|
}, [n, t]);
|
|
4377
4377
|
}
|
|
4378
4378
|
ie(Yn, "useDebounceCallback");
|
|
4379
4379
|
function Zt(e, t) {
|
|
4380
|
-
const n =
|
|
4380
|
+
const n = St(t);
|
|
4381
4381
|
Un(() => {
|
|
4382
4382
|
let r = 0;
|
|
4383
4383
|
if (e) {
|
|
@@ -4448,9 +4448,9 @@ const Kr = "eloq:text-gray-400 eloq:dark:text-gray-500 eloq:hover:text-primary e
|
|
|
4448
4448
|
function Up({
|
|
4449
4449
|
messageData: e
|
|
4450
4450
|
}) {
|
|
4451
|
-
const [t, n] =
|
|
4451
|
+
const [t, n] = Ae(
|
|
4452
4452
|
null
|
|
4453
|
-
), [r, o] =
|
|
4453
|
+
), [r, o] = Ae(!1), l = nn(), { collectUserFeedback: i } = l, a = l.hasCopyButton ?? (l.hideCopyButton != null ? !l.hideCopyButton : !0);
|
|
4454
4454
|
return /* @__PURE__ */ Z("div", { className: "eloq:inline-flex eloq:shrink-0 eloq:gap-2", children: [
|
|
4455
4455
|
a && /* @__PURE__ */ x(
|
|
4456
4456
|
"button",
|
|
@@ -4467,7 +4467,7 @@ function Up({
|
|
|
4467
4467
|
className: te(Kr, r && "eloq:text-primary"),
|
|
4468
4468
|
title: "Copy message",
|
|
4469
4469
|
"aria-label": "Copy message",
|
|
4470
|
-
children: /* @__PURE__ */ x(
|
|
4470
|
+
children: /* @__PURE__ */ x(Mf, { size: 16 })
|
|
4471
4471
|
}
|
|
4472
4472
|
),
|
|
4473
4473
|
!e.isWelcomeMessage && i && /* @__PURE__ */ Z(zt, { children: [
|
|
@@ -5713,13 +5713,13 @@ function ad() {
|
|
|
5713
5713
|
if (!v) return [];
|
|
5714
5714
|
w = w || {};
|
|
5715
5715
|
var E = 1, _ = 1;
|
|
5716
|
-
function
|
|
5716
|
+
function O(V) {
|
|
5717
5717
|
var D = V.match(t);
|
|
5718
5718
|
D && (E += D.length);
|
|
5719
5719
|
var J = V.lastIndexOf(s);
|
|
5720
5720
|
_ = ~J ? V.length - J : _ + V.length;
|
|
5721
5721
|
}
|
|
5722
|
-
function
|
|
5722
|
+
function F() {
|
|
5723
5723
|
var V = { line: E, column: _ };
|
|
5724
5724
|
return function(D) {
|
|
5725
5725
|
return D.position = new C(V), W(), D;
|
|
@@ -5739,7 +5739,7 @@ function ad() {
|
|
|
5739
5739
|
var D = V.exec(v);
|
|
5740
5740
|
if (D) {
|
|
5741
5741
|
var J = D[0];
|
|
5742
|
-
return
|
|
5742
|
+
return O(J), v = v.slice(J.length), D;
|
|
5743
5743
|
}
|
|
5744
5744
|
}
|
|
5745
5745
|
function W() {
|
|
@@ -5752,21 +5752,21 @@ function ad() {
|
|
|
5752
5752
|
return V;
|
|
5753
5753
|
}
|
|
5754
5754
|
function P() {
|
|
5755
|
-
var V =
|
|
5755
|
+
var V = F();
|
|
5756
5756
|
if (!(u != v.charAt(0) || f != v.charAt(1))) {
|
|
5757
5757
|
for (var D = 2; c != v.charAt(D) && (f != v.charAt(D) || u != v.charAt(D + 1)); )
|
|
5758
5758
|
++D;
|
|
5759
5759
|
if (D += 2, c === v.charAt(D - 1))
|
|
5760
5760
|
return B("End of comment missing");
|
|
5761
5761
|
var J = v.slice(2, D - 2);
|
|
5762
|
-
return _ += 2,
|
|
5762
|
+
return _ += 2, O(J), v = v.slice(D), _ += 2, V({
|
|
5763
5763
|
type: d,
|
|
5764
5764
|
comment: J
|
|
5765
5765
|
});
|
|
5766
5766
|
}
|
|
5767
5767
|
}
|
|
5768
|
-
function
|
|
5769
|
-
var V =
|
|
5768
|
+
function z() {
|
|
5769
|
+
var V = F(), D = N(r);
|
|
5770
5770
|
if (D) {
|
|
5771
5771
|
if (P(), !N(o)) return B("property missing ':'");
|
|
5772
5772
|
var J = N(l), ae = V({
|
|
@@ -5780,7 +5780,7 @@ function ad() {
|
|
|
5780
5780
|
function re() {
|
|
5781
5781
|
var V = [];
|
|
5782
5782
|
S(V);
|
|
5783
|
-
for (var D; D =
|
|
5783
|
+
for (var D; D = z(); )
|
|
5784
5784
|
D !== !1 && (V.push(D), S(V));
|
|
5785
5785
|
return V;
|
|
5786
5786
|
}
|
|
@@ -5864,13 +5864,13 @@ function _s(e) {
|
|
|
5864
5864
|
return { start: t, end: n };
|
|
5865
5865
|
}
|
|
5866
5866
|
function zn(e) {
|
|
5867
|
-
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? pl(e.position) : "start" in e || "end" in e ? pl(e) : "line" in e || "column" in e ?
|
|
5867
|
+
return !e || typeof e != "object" ? "" : "position" in e || "type" in e ? pl(e.position) : "start" in e || "end" in e ? pl(e) : "line" in e || "column" in e ? Mo(e) : "";
|
|
5868
5868
|
}
|
|
5869
|
-
function
|
|
5869
|
+
function Mo(e) {
|
|
5870
5870
|
return dl(e && e.line) + ":" + dl(e && e.column);
|
|
5871
5871
|
}
|
|
5872
5872
|
function pl(e) {
|
|
5873
|
-
return
|
|
5873
|
+
return Mo(e && e.start) + "-" + Mo(e && e.end);
|
|
5874
5874
|
}
|
|
5875
5875
|
function dl(e) {
|
|
5876
5876
|
return e && typeof e == "number" ? e : 1;
|
|
@@ -8446,10 +8446,10 @@ function Ds(e) {
|
|
|
8446
8446
|
const t = {};
|
|
8447
8447
|
let n = -1;
|
|
8448
8448
|
for (; ++n < e.length; )
|
|
8449
|
-
|
|
8449
|
+
Md(t, e[n]);
|
|
8450
8450
|
return t;
|
|
8451
8451
|
}
|
|
8452
|
-
function
|
|
8452
|
+
function Md(e, t) {
|
|
8453
8453
|
let n;
|
|
8454
8454
|
for (n in t) {
|
|
8455
8455
|
const o = (gl.call(e, n) ? e[n] : void 0) || (e[n] = {}), l = t[n];
|
|
@@ -8458,7 +8458,7 @@ function Od(e, t) {
|
|
|
8458
8458
|
for (i in l) {
|
|
8459
8459
|
gl.call(o, i) || (o[i] = []);
|
|
8460
8460
|
const a = l[i];
|
|
8461
|
-
|
|
8461
|
+
Od(
|
|
8462
8462
|
// @ts-expect-error Looks like a list.
|
|
8463
8463
|
o[i],
|
|
8464
8464
|
Array.isArray(a) ? a : a ? [a] : []
|
|
@@ -8466,14 +8466,14 @@ function Od(e, t) {
|
|
|
8466
8466
|
}
|
|
8467
8467
|
}
|
|
8468
8468
|
}
|
|
8469
|
-
function
|
|
8469
|
+
function Od(e, t) {
|
|
8470
8470
|
let n = -1;
|
|
8471
8471
|
const r = [];
|
|
8472
8472
|
for (; ++n < t.length; )
|
|
8473
8473
|
(t[n].add === "after" ? e : r).push(t[n]);
|
|
8474
8474
|
Ke(e, 0, 0, r);
|
|
8475
8475
|
}
|
|
8476
|
-
function
|
|
8476
|
+
function Ms(e, t) {
|
|
8477
8477
|
const n = Number.parseInt(e, t);
|
|
8478
8478
|
return (
|
|
8479
8479
|
// C0 except for HT, LF, FF, CR, space.
|
|
@@ -8489,7 +8489,7 @@ function Os(e, t) {
|
|
|
8489
8489
|
function ut(e) {
|
|
8490
8490
|
return e.replace(/[\t\n\r ]+/g, " ").replace(/^ | $/g, "").toLowerCase().toUpperCase();
|
|
8491
8491
|
}
|
|
8492
|
-
const
|
|
8492
|
+
const Oe = Ht(/[A-Za-z]/), Ie = Ht(/[\dA-Za-z]/), zd = Ht(/[#-'*+\--9=?A-Z^-~]/);
|
|
8493
8493
|
function kr(e) {
|
|
8494
8494
|
return (
|
|
8495
8495
|
// Special whitespace codes (which have negative values), C0 and Control
|
|
@@ -8497,7 +8497,7 @@ function kr(e) {
|
|
|
8497
8497
|
e !== null && (e < 32 || e === 127)
|
|
8498
8498
|
);
|
|
8499
8499
|
}
|
|
8500
|
-
const
|
|
8500
|
+
const Oo = Ht(/\d/), Fd = Ht(/[\dA-Fa-f]/), Bd = Ht(/[!-/:-@[-`{-~]/);
|
|
8501
8501
|
function Y(e) {
|
|
8502
8502
|
return e !== null && e < -2;
|
|
8503
8503
|
}
|
|
@@ -8587,28 +8587,28 @@ function Vd(e) {
|
|
|
8587
8587
|
return a;
|
|
8588
8588
|
function a(_) {
|
|
8589
8589
|
if (r < n.length) {
|
|
8590
|
-
const
|
|
8591
|
-
return t.containerState =
|
|
8590
|
+
const O = n[r];
|
|
8591
|
+
return t.containerState = O[1], e.attempt(O[0].continuation, s, u)(_);
|
|
8592
8592
|
}
|
|
8593
8593
|
return u(_);
|
|
8594
8594
|
}
|
|
8595
8595
|
function s(_) {
|
|
8596
8596
|
if (r++, t.containerState._closeFlow) {
|
|
8597
8597
|
t.containerState._closeFlow = void 0, o && E();
|
|
8598
|
-
const
|
|
8599
|
-
let
|
|
8600
|
-
for (;
|
|
8601
|
-
if (t.events[
|
|
8602
|
-
C = t.events[
|
|
8598
|
+
const O = t.events.length;
|
|
8599
|
+
let F = O, C;
|
|
8600
|
+
for (; F--; )
|
|
8601
|
+
if (t.events[F][0] === "exit" && t.events[F][1].type === "chunkFlow") {
|
|
8602
|
+
C = t.events[F][1].end;
|
|
8603
8603
|
break;
|
|
8604
8604
|
}
|
|
8605
8605
|
w(r);
|
|
8606
|
-
let B =
|
|
8606
|
+
let B = O;
|
|
8607
8607
|
for (; B < t.events.length; )
|
|
8608
8608
|
t.events[B][1].end = {
|
|
8609
8609
|
...C
|
|
8610
8610
|
}, B++;
|
|
8611
|
-
return Ke(t.events,
|
|
8611
|
+
return Ke(t.events, F + 1, 0, t.events.slice(O)), t.events.length = B, u(_);
|
|
8612
8612
|
}
|
|
8613
8613
|
return a(_);
|
|
8614
8614
|
}
|
|
@@ -8652,9 +8652,9 @@ function Vd(e) {
|
|
|
8652
8652
|
}
|
|
8653
8653
|
return Y(_) ? (e.consume(_), v(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, a) : (e.consume(_), k);
|
|
8654
8654
|
}
|
|
8655
|
-
function v(_,
|
|
8656
|
-
const
|
|
8657
|
-
if (
|
|
8655
|
+
function v(_, O) {
|
|
8656
|
+
const F = t.sliceStream(_);
|
|
8657
|
+
if (O && F.push(null), _.previous = l, l && (l.next = _), l = _, o.defineSkip(_.start), o.write(F), t.parser.lazy[_.start.line]) {
|
|
8658
8658
|
let C = o.events.length;
|
|
8659
8659
|
for (; C--; )
|
|
8660
8660
|
if (
|
|
@@ -8682,10 +8682,10 @@ function Vd(e) {
|
|
|
8682
8682
|
}
|
|
8683
8683
|
}
|
|
8684
8684
|
function w(_) {
|
|
8685
|
-
let
|
|
8686
|
-
for (;
|
|
8687
|
-
const
|
|
8688
|
-
t.containerState =
|
|
8685
|
+
let O = n.length;
|
|
8686
|
+
for (; O-- > _; ) {
|
|
8687
|
+
const F = n[O];
|
|
8688
|
+
t.containerState = F[1], F[0].exit.call(t, e);
|
|
8689
8689
|
}
|
|
8690
8690
|
n.length = _;
|
|
8691
8691
|
}
|
|
@@ -8799,7 +8799,7 @@ function Xd(e, t, n) {
|
|
|
8799
8799
|
return e.enter("autolink"), e.enter("autolinkMarker"), e.consume(p), e.exit("autolinkMarker"), e.enter("autolinkProtocol"), l;
|
|
8800
8800
|
}
|
|
8801
8801
|
function l(p) {
|
|
8802
|
-
return
|
|
8802
|
+
return Oe(p) ? (e.consume(p), i) : p === 64 ? n(p) : u(p);
|
|
8803
8803
|
}
|
|
8804
8804
|
function i(p) {
|
|
8805
8805
|
return p === 43 || p === 45 || p === 46 || Ie(p) ? (r = 1, a(p)) : u(p);
|
|
@@ -8840,7 +8840,7 @@ function Kd(e, t, n) {
|
|
|
8840
8840
|
return l === null || Y(l) ? t(l) : n(l);
|
|
8841
8841
|
}
|
|
8842
8842
|
}
|
|
8843
|
-
const
|
|
8843
|
+
const Os = {
|
|
8844
8844
|
continuation: {
|
|
8845
8845
|
tokenize: Qd
|
|
8846
8846
|
},
|
|
@@ -8871,7 +8871,7 @@ function Qd(e, t, n) {
|
|
|
8871
8871
|
return oe(i) ? se(e, l, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(i) : l(i);
|
|
8872
8872
|
}
|
|
8873
8873
|
function l(i) {
|
|
8874
|
-
return e.attempt(
|
|
8874
|
+
return e.attempt(Os, t, n)(i);
|
|
8875
8875
|
}
|
|
8876
8876
|
}
|
|
8877
8877
|
function Zd(e) {
|
|
@@ -8905,7 +8905,7 @@ function th(e, t, n) {
|
|
|
8905
8905
|
return c === 35 ? (e.enter("characterReferenceMarkerNumeric"), e.consume(c), e.exit("characterReferenceMarkerNumeric"), u) : (e.enter("characterReferenceValue"), l = 31, i = Ie, f(c));
|
|
8906
8906
|
}
|
|
8907
8907
|
function u(c) {
|
|
8908
|
-
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, i = Fd, f) : (e.enter("characterReferenceValue"), l = 7, i =
|
|
8908
|
+
return c === 88 || c === 120 ? (e.enter("characterReferenceMarkerHexadecimal"), e.consume(c), e.exit("characterReferenceMarkerHexadecimal"), e.enter("characterReferenceValue"), l = 6, i = Fd, f) : (e.enter("characterReferenceValue"), l = 7, i = Oo, f(c));
|
|
8909
8909
|
}
|
|
8910
8910
|
function f(c) {
|
|
8911
8911
|
if (c === 59 && o) {
|
|
@@ -8926,7 +8926,7 @@ const xl = {
|
|
|
8926
8926
|
function nh(e, t, n) {
|
|
8927
8927
|
const r = this, o = {
|
|
8928
8928
|
partial: !0,
|
|
8929
|
-
tokenize:
|
|
8929
|
+
tokenize: F
|
|
8930
8930
|
};
|
|
8931
8931
|
let l = 0, i = 0, a;
|
|
8932
8932
|
return s;
|
|
@@ -8941,7 +8941,7 @@ function nh(e, t, n) {
|
|
|
8941
8941
|
return C === a ? (i++, e.consume(C), f) : i < 3 ? n(C) : (e.exit("codeFencedFenceSequence"), oe(C) ? se(e, c, "whitespace")(C) : c(C));
|
|
8942
8942
|
}
|
|
8943
8943
|
function c(C) {
|
|
8944
|
-
return C === null || Y(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(xl, k,
|
|
8944
|
+
return C === null || Y(C) ? (e.exit("codeFencedFence"), r.interrupt ? t(C) : e.check(xl, k, O)(C)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
8945
8945
|
contentType: "string"
|
|
8946
8946
|
}), d(C));
|
|
8947
8947
|
}
|
|
@@ -8957,7 +8957,7 @@ function nh(e, t, n) {
|
|
|
8957
8957
|
return C === null || Y(C) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), c(C)) : C === 96 && C === a ? n(C) : (e.consume(C), g);
|
|
8958
8958
|
}
|
|
8959
8959
|
function k(C) {
|
|
8960
|
-
return e.attempt(o,
|
|
8960
|
+
return e.attempt(o, O, v)(C);
|
|
8961
8961
|
}
|
|
8962
8962
|
function v(C) {
|
|
8963
8963
|
return e.enter("lineEnding"), e.consume(C), e.exit("lineEnding"), w;
|
|
@@ -8966,24 +8966,24 @@ function nh(e, t, n) {
|
|
|
8966
8966
|
return l > 0 && oe(C) ? se(e, E, "linePrefix", l + 1)(C) : E(C);
|
|
8967
8967
|
}
|
|
8968
8968
|
function E(C) {
|
|
8969
|
-
return C === null || Y(C) ? e.check(xl, k,
|
|
8969
|
+
return C === null || Y(C) ? e.check(xl, k, O)(C) : (e.enter("codeFlowValue"), _(C));
|
|
8970
8970
|
}
|
|
8971
8971
|
function _(C) {
|
|
8972
8972
|
return C === null || Y(C) ? (e.exit("codeFlowValue"), E(C)) : (e.consume(C), _);
|
|
8973
8973
|
}
|
|
8974
|
-
function
|
|
8974
|
+
function O(C) {
|
|
8975
8975
|
return e.exit("codeFenced"), t(C);
|
|
8976
8976
|
}
|
|
8977
|
-
function
|
|
8977
|
+
function F(C, B, N) {
|
|
8978
8978
|
let W = 0;
|
|
8979
8979
|
return S;
|
|
8980
8980
|
function S(D) {
|
|
8981
8981
|
return C.enter("lineEnding"), C.consume(D), C.exit("lineEnding"), P;
|
|
8982
8982
|
}
|
|
8983
8983
|
function P(D) {
|
|
8984
|
-
return C.enter("codeFencedFence"), oe(D) ? se(C,
|
|
8984
|
+
return C.enter("codeFencedFence"), oe(D) ? se(C, z, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(D) : z(D);
|
|
8985
8985
|
}
|
|
8986
|
-
function
|
|
8986
|
+
function z(D) {
|
|
8987
8987
|
return D === a ? (C.enter("codeFencedFenceSequence"), re(D)) : N(D);
|
|
8988
8988
|
}
|
|
8989
8989
|
function re(D) {
|
|
@@ -9642,42 +9642,42 @@ function Nh(e, t, n) {
|
|
|
9642
9642
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(b), c;
|
|
9643
9643
|
}
|
|
9644
9644
|
function c(b) {
|
|
9645
|
-
return b === 33 ? (e.consume(b), d) : b === 47 ? (e.consume(b), l = !0, k) : b === 63 ? (e.consume(b), o = 3, r.interrupt ? t : m) :
|
|
9645
|
+
return b === 33 ? (e.consume(b), d) : b === 47 ? (e.consume(b), l = !0, k) : b === 63 ? (e.consume(b), o = 3, r.interrupt ? t : m) : Oe(b) ? (e.consume(b), i = String.fromCharCode(b), v) : n(b);
|
|
9646
9646
|
}
|
|
9647
9647
|
function d(b) {
|
|
9648
|
-
return b === 45 ? (e.consume(b), o = 2, p) : b === 91 ? (e.consume(b), o = 5, a = 0, g) :
|
|
9648
|
+
return b === 45 ? (e.consume(b), o = 2, p) : b === 91 ? (e.consume(b), o = 5, a = 0, g) : Oe(b) ? (e.consume(b), o = 4, r.interrupt ? t : m) : n(b);
|
|
9649
9649
|
}
|
|
9650
9650
|
function p(b) {
|
|
9651
9651
|
return b === 45 ? (e.consume(b), r.interrupt ? t : m) : n(b);
|
|
9652
9652
|
}
|
|
9653
9653
|
function g(b) {
|
|
9654
9654
|
const Te = "CDATA[";
|
|
9655
|
-
return b === Te.charCodeAt(a++) ? (e.consume(b), a === Te.length ? r.interrupt ? t :
|
|
9655
|
+
return b === Te.charCodeAt(a++) ? (e.consume(b), a === Te.length ? r.interrupt ? t : z : g) : n(b);
|
|
9656
9656
|
}
|
|
9657
9657
|
function k(b) {
|
|
9658
|
-
return
|
|
9658
|
+
return Oe(b) ? (e.consume(b), i = String.fromCharCode(b), v) : n(b);
|
|
9659
9659
|
}
|
|
9660
9660
|
function v(b) {
|
|
9661
9661
|
if (b === null || b === 47 || b === 62 || de(b)) {
|
|
9662
9662
|
const Te = b === 47, me = i.toLowerCase();
|
|
9663
|
-
return !Te && !l && kl.includes(me) ? (o = 1, r.interrupt ? t(b) :
|
|
9663
|
+
return !Te && !l && kl.includes(me) ? (o = 1, r.interrupt ? t(b) : z(b)) : Th.includes(i.toLowerCase()) ? (o = 6, Te ? (e.consume(b), w) : r.interrupt ? t(b) : z(b)) : (o = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(b) : l ? E(b) : _(b));
|
|
9664
9664
|
}
|
|
9665
9665
|
return b === 45 || Ie(b) ? (e.consume(b), i += String.fromCharCode(b), v) : n(b);
|
|
9666
9666
|
}
|
|
9667
9667
|
function w(b) {
|
|
9668
|
-
return b === 62 ? (e.consume(b), r.interrupt ? t :
|
|
9668
|
+
return b === 62 ? (e.consume(b), r.interrupt ? t : z) : n(b);
|
|
9669
9669
|
}
|
|
9670
9670
|
function E(b) {
|
|
9671
9671
|
return oe(b) ? (e.consume(b), E) : S(b);
|
|
9672
9672
|
}
|
|
9673
9673
|
function _(b) {
|
|
9674
|
-
return b === 47 ? (e.consume(b), S) : b === 58 || b === 95 ||
|
|
9674
|
+
return b === 47 ? (e.consume(b), S) : b === 58 || b === 95 || Oe(b) ? (e.consume(b), O) : oe(b) ? (e.consume(b), _) : S(b);
|
|
9675
9675
|
}
|
|
9676
|
-
function
|
|
9677
|
-
return b === 45 || b === 46 || b === 58 || b === 95 || Ie(b) ? (e.consume(b),
|
|
9676
|
+
function O(b) {
|
|
9677
|
+
return b === 45 || b === 46 || b === 58 || b === 95 || Ie(b) ? (e.consume(b), O) : F(b);
|
|
9678
9678
|
}
|
|
9679
|
-
function
|
|
9680
|
-
return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b),
|
|
9679
|
+
function F(b) {
|
|
9680
|
+
return b === 61 ? (e.consume(b), C) : oe(b) ? (e.consume(b), F) : _(b);
|
|
9681
9681
|
}
|
|
9682
9682
|
function C(b) {
|
|
9683
9683
|
return b === null || b === 60 || b === 61 || b === 62 || b === 96 ? n(b) : b === 34 || b === 39 ? (e.consume(b), s = b, B) : oe(b) ? (e.consume(b), C) : N(b);
|
|
@@ -9686,7 +9686,7 @@ function Nh(e, t, n) {
|
|
|
9686
9686
|
return b === s ? (e.consume(b), s = null, W) : b === null || Y(b) ? n(b) : (e.consume(b), B);
|
|
9687
9687
|
}
|
|
9688
9688
|
function N(b) {
|
|
9689
|
-
return b === null || b === 34 || b === 39 || b === 47 || b === 60 || b === 61 || b === 62 || b === 96 || de(b) ?
|
|
9689
|
+
return b === null || b === 34 || b === 39 || b === 47 || b === 60 || b === 61 || b === 62 || b === 96 || de(b) ? F(b) : (e.consume(b), N);
|
|
9690
9690
|
}
|
|
9691
9691
|
function W(b) {
|
|
9692
9692
|
return b === 47 || b === 62 || oe(b) ? _(b) : n(b);
|
|
@@ -9695,10 +9695,10 @@ function Nh(e, t, n) {
|
|
|
9695
9695
|
return b === 62 ? (e.consume(b), P) : n(b);
|
|
9696
9696
|
}
|
|
9697
9697
|
function P(b) {
|
|
9698
|
-
return b === null || Y(b) ?
|
|
9698
|
+
return b === null || Y(b) ? z(b) : oe(b) ? (e.consume(b), P) : n(b);
|
|
9699
9699
|
}
|
|
9700
|
-
function
|
|
9701
|
-
return b === 45 && o === 2 ? (e.consume(b), J) : b === 60 && o === 1 ? (e.consume(b), ae) : b === 62 && o === 4 ? (e.consume(b),
|
|
9700
|
+
function z(b) {
|
|
9701
|
+
return b === 45 && o === 2 ? (e.consume(b), J) : b === 60 && o === 1 ? (e.consume(b), ae) : b === 62 && o === 4 ? (e.consume(b), Se) : b === 63 && o === 3 ? (e.consume(b), m) : b === 93 && o === 5 ? (e.consume(b), Le) : Y(b) && (o === 6 || o === 7) ? (e.exit("htmlFlowData"), e.check(_h, Pe, re)(b)) : b === null || Y(b) ? (e.exit("htmlFlowData"), re(b)) : (e.consume(b), z);
|
|
9702
9702
|
}
|
|
9703
9703
|
function re(b) {
|
|
9704
9704
|
return e.check(Ih, V, Pe)(b);
|
|
@@ -9707,29 +9707,29 @@ function Nh(e, t, n) {
|
|
|
9707
9707
|
return e.enter("lineEnding"), e.consume(b), e.exit("lineEnding"), D;
|
|
9708
9708
|
}
|
|
9709
9709
|
function D(b) {
|
|
9710
|
-
return b === null || Y(b) ? re(b) : (e.enter("htmlFlowData"),
|
|
9710
|
+
return b === null || Y(b) ? re(b) : (e.enter("htmlFlowData"), z(b));
|
|
9711
9711
|
}
|
|
9712
9712
|
function J(b) {
|
|
9713
|
-
return b === 45 ? (e.consume(b), m) :
|
|
9713
|
+
return b === 45 ? (e.consume(b), m) : z(b);
|
|
9714
9714
|
}
|
|
9715
9715
|
function ae(b) {
|
|
9716
|
-
return b === 47 ? (e.consume(b), i = "", Ee) :
|
|
9716
|
+
return b === 47 ? (e.consume(b), i = "", Ee) : z(b);
|
|
9717
9717
|
}
|
|
9718
9718
|
function Ee(b) {
|
|
9719
9719
|
if (b === 62) {
|
|
9720
9720
|
const Te = i.toLowerCase();
|
|
9721
|
-
return kl.includes(Te) ? (e.consume(b),
|
|
9721
|
+
return kl.includes(Te) ? (e.consume(b), Se) : z(b);
|
|
9722
9722
|
}
|
|
9723
|
-
return
|
|
9723
|
+
return Oe(b) && i.length < 8 ? (e.consume(b), i += String.fromCharCode(b), Ee) : z(b);
|
|
9724
9724
|
}
|
|
9725
9725
|
function Le(b) {
|
|
9726
|
-
return b === 93 ? (e.consume(b), m) :
|
|
9726
|
+
return b === 93 ? (e.consume(b), m) : z(b);
|
|
9727
9727
|
}
|
|
9728
9728
|
function m(b) {
|
|
9729
|
-
return b === 62 ? (e.consume(b),
|
|
9729
|
+
return b === 62 ? (e.consume(b), Se) : b === 45 && o === 2 ? (e.consume(b), m) : z(b);
|
|
9730
9730
|
}
|
|
9731
|
-
function
|
|
9732
|
-
return b === null || Y(b) ? (e.exit("htmlFlowData"), Pe(b)) : (e.consume(b),
|
|
9731
|
+
function Se(b) {
|
|
9732
|
+
return b === null || Y(b) ? (e.exit("htmlFlowData"), Pe(b)) : (e.consume(b), Se);
|
|
9733
9733
|
}
|
|
9734
9734
|
function Pe(b) {
|
|
9735
9735
|
return e.exit("htmlFlow"), t(b);
|
|
@@ -9753,9 +9753,9 @@ function Ph(e, t, n) {
|
|
|
9753
9753
|
}
|
|
9754
9754
|
const Dh = {
|
|
9755
9755
|
name: "htmlText",
|
|
9756
|
-
tokenize:
|
|
9756
|
+
tokenize: Mh
|
|
9757
9757
|
};
|
|
9758
|
-
function
|
|
9758
|
+
function Mh(e, t, n) {
|
|
9759
9759
|
const r = this;
|
|
9760
9760
|
let o, l, i;
|
|
9761
9761
|
return a;
|
|
@@ -9763,10 +9763,10 @@ function Oh(e, t, n) {
|
|
|
9763
9763
|
return e.enter("htmlText"), e.enter("htmlTextData"), e.consume(m), s;
|
|
9764
9764
|
}
|
|
9765
9765
|
function s(m) {
|
|
9766
|
-
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m),
|
|
9766
|
+
return m === 33 ? (e.consume(m), u) : m === 47 ? (e.consume(m), F) : m === 63 ? (e.consume(m), _) : Oe(m) ? (e.consume(m), N) : n(m);
|
|
9767
9767
|
}
|
|
9768
9768
|
function u(m) {
|
|
9769
|
-
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), l = 0, g) :
|
|
9769
|
+
return m === 45 ? (e.consume(m), f) : m === 91 ? (e.consume(m), l = 0, g) : Oe(m) ? (e.consume(m), E) : n(m);
|
|
9770
9770
|
}
|
|
9771
9771
|
function f(m) {
|
|
9772
9772
|
return m === 45 ? (e.consume(m), p) : n(m);
|
|
@@ -9781,8 +9781,8 @@ function Oh(e, t, n) {
|
|
|
9781
9781
|
return m === 62 ? J(m) : m === 45 ? d(m) : c(m);
|
|
9782
9782
|
}
|
|
9783
9783
|
function g(m) {
|
|
9784
|
-
const
|
|
9785
|
-
return m ===
|
|
9784
|
+
const Se = "CDATA[";
|
|
9785
|
+
return m === Se.charCodeAt(l++) ? (e.consume(m), l === Se.length ? k : g) : n(m);
|
|
9786
9786
|
}
|
|
9787
9787
|
function k(m) {
|
|
9788
9788
|
return m === null ? n(m) : m === 93 ? (e.consume(m), v) : Y(m) ? (i = k, ae(m)) : (e.consume(m), k);
|
|
@@ -9797,13 +9797,13 @@ function Oh(e, t, n) {
|
|
|
9797
9797
|
return m === null || m === 62 ? J(m) : Y(m) ? (i = E, ae(m)) : (e.consume(m), E);
|
|
9798
9798
|
}
|
|
9799
9799
|
function _(m) {
|
|
9800
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m),
|
|
9800
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), O) : Y(m) ? (i = _, ae(m)) : (e.consume(m), _);
|
|
9801
9801
|
}
|
|
9802
|
-
function
|
|
9802
|
+
function O(m) {
|
|
9803
9803
|
return m === 62 ? J(m) : _(m);
|
|
9804
9804
|
}
|
|
9805
|
-
function
|
|
9806
|
-
return
|
|
9805
|
+
function F(m) {
|
|
9806
|
+
return Oe(m) ? (e.consume(m), C) : n(m);
|
|
9807
9807
|
}
|
|
9808
9808
|
function C(m) {
|
|
9809
9809
|
return m === 45 || Ie(m) ? (e.consume(m), C) : B(m);
|
|
@@ -9815,16 +9815,16 @@ function Oh(e, t, n) {
|
|
|
9815
9815
|
return m === 45 || Ie(m) ? (e.consume(m), N) : m === 47 || m === 62 || de(m) ? W(m) : n(m);
|
|
9816
9816
|
}
|
|
9817
9817
|
function W(m) {
|
|
9818
|
-
return m === 47 ? (e.consume(m), J) : m === 58 || m === 95 ||
|
|
9818
|
+
return m === 47 ? (e.consume(m), J) : m === 58 || m === 95 || Oe(m) ? (e.consume(m), S) : Y(m) ? (i = W, ae(m)) : oe(m) ? (e.consume(m), W) : J(m);
|
|
9819
9819
|
}
|
|
9820
9820
|
function S(m) {
|
|
9821
9821
|
return m === 45 || m === 46 || m === 58 || m === 95 || Ie(m) ? (e.consume(m), S) : P(m);
|
|
9822
9822
|
}
|
|
9823
9823
|
function P(m) {
|
|
9824
|
-
return m === 61 ? (e.consume(m),
|
|
9824
|
+
return m === 61 ? (e.consume(m), z) : Y(m) ? (i = P, ae(m)) : oe(m) ? (e.consume(m), P) : W(m);
|
|
9825
9825
|
}
|
|
9826
|
-
function
|
|
9827
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), o = m, re) : Y(m) ? (i =
|
|
9826
|
+
function z(m) {
|
|
9827
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), o = m, re) : Y(m) ? (i = z, ae(m)) : oe(m) ? (e.consume(m), z) : (e.consume(m), V);
|
|
9828
9828
|
}
|
|
9829
9829
|
function re(m) {
|
|
9830
9830
|
return m === o ? (e.consume(m), o = void 0, D) : m === null ? n(m) : Y(m) ? (i = re, ae(m)) : (e.consume(m), re);
|
|
@@ -9853,7 +9853,7 @@ const mi = {
|
|
|
9853
9853
|
resolveAll: Bh,
|
|
9854
9854
|
resolveTo: Uh,
|
|
9855
9855
|
tokenize: Hh
|
|
9856
|
-
},
|
|
9856
|
+
}, Oh = {
|
|
9857
9857
|
tokenize: jh
|
|
9858
9858
|
}, zh = {
|
|
9859
9859
|
tokenize: Vh
|
|
@@ -9928,7 +9928,7 @@ function Hh(e, t, n) {
|
|
|
9928
9928
|
}))), e.enter("labelEnd"), e.enter("labelMarker"), e.consume(d), e.exit("labelMarker"), e.exit("labelEnd"), s) : n(d);
|
|
9929
9929
|
}
|
|
9930
9930
|
function s(d) {
|
|
9931
|
-
return d === 40 ? e.attempt(
|
|
9931
|
+
return d === 40 ? e.attempt(Oh, f, i ? f : c)(d) : d === 91 ? e.attempt(zh, f, i ? u : c)(d) : i ? f(d) : c(d);
|
|
9932
9932
|
}
|
|
9933
9933
|
function u(d) {
|
|
9934
9934
|
return e.attempt(Fh, f, c)(d);
|
|
@@ -10072,7 +10072,7 @@ function em(e, t, n) {
|
|
|
10072
10072
|
return a;
|
|
10073
10073
|
function a(p) {
|
|
10074
10074
|
const g = r.containerState.type || (p === 42 || p === 43 || p === 45 ? "listUnordered" : "listOrdered");
|
|
10075
|
-
if (g === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker :
|
|
10075
|
+
if (g === "listUnordered" ? !r.containerState.marker || p === r.containerState.marker : Oo(p)) {
|
|
10076
10076
|
if (r.containerState.type || (r.containerState.type = g, e.enter(g, {
|
|
10077
10077
|
_container: !0
|
|
10078
10078
|
})), g === "listUnordered")
|
|
@@ -10083,7 +10083,7 @@ function em(e, t, n) {
|
|
|
10083
10083
|
return n(p);
|
|
10084
10084
|
}
|
|
10085
10085
|
function s(p) {
|
|
10086
|
-
return
|
|
10086
|
+
return Oo(p) && ++i < 10 ? (e.consume(p), s) : (!r.interrupt || i < 2) && (r.containerState.marker ? p === r.containerState.marker : p === 41 || p === 46) ? (e.exit("listItemValue"), u(p)) : n(p);
|
|
10087
10087
|
}
|
|
10088
10088
|
function u(p) {
|
|
10089
10089
|
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
@@ -10318,7 +10318,7 @@ const dm = {
|
|
|
10318
10318
|
55: Ue,
|
|
10319
10319
|
56: Ue,
|
|
10320
10320
|
57: Ue,
|
|
10321
|
-
62:
|
|
10321
|
+
62: Os
|
|
10322
10322
|
}, hm = {
|
|
10323
10323
|
91: yh
|
|
10324
10324
|
}, mm = {
|
|
@@ -10379,11 +10379,11 @@ function vm(e, t, n) {
|
|
|
10379
10379
|
const o = {}, l = [];
|
|
10380
10380
|
let i = [], a = [];
|
|
10381
10381
|
const s = {
|
|
10382
|
-
attempt: B(
|
|
10382
|
+
attempt: B(F),
|
|
10383
10383
|
check: B(C),
|
|
10384
10384
|
consume: E,
|
|
10385
10385
|
enter: _,
|
|
10386
|
-
exit:
|
|
10386
|
+
exit: O,
|
|
10387
10387
|
interrupt: B(C, {
|
|
10388
10388
|
interrupt: !0
|
|
10389
10389
|
})
|
|
@@ -10404,8 +10404,8 @@ function vm(e, t, n) {
|
|
|
10404
10404
|
function c(P) {
|
|
10405
10405
|
return i = nt(i, P), v(), i[i.length - 1] !== null ? [] : (N(t, 0), u.events = _r(l, u.events, u), u.events);
|
|
10406
10406
|
}
|
|
10407
|
-
function d(P,
|
|
10408
|
-
return Am(p(P),
|
|
10407
|
+
function d(P, z) {
|
|
10408
|
+
return Am(p(P), z);
|
|
10409
10409
|
}
|
|
10410
10410
|
function p(P) {
|
|
10411
10411
|
return Cm(i, P);
|
|
@@ -10413,14 +10413,14 @@ function vm(e, t, n) {
|
|
|
10413
10413
|
function g() {
|
|
10414
10414
|
const {
|
|
10415
10415
|
_bufferIndex: P,
|
|
10416
|
-
_index:
|
|
10416
|
+
_index: z,
|
|
10417
10417
|
line: re,
|
|
10418
10418
|
column: V,
|
|
10419
10419
|
offset: D
|
|
10420
10420
|
} = r;
|
|
10421
10421
|
return {
|
|
10422
10422
|
_bufferIndex: P,
|
|
10423
|
-
_index:
|
|
10423
|
+
_index: z,
|
|
10424
10424
|
line: re,
|
|
10425
10425
|
column: V,
|
|
10426
10426
|
offset: D
|
|
@@ -10432,12 +10432,12 @@ function vm(e, t, n) {
|
|
|
10432
10432
|
function v() {
|
|
10433
10433
|
let P;
|
|
10434
10434
|
for (; r._index < i.length; ) {
|
|
10435
|
-
const
|
|
10436
|
-
if (typeof
|
|
10437
|
-
for (P = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === P && r._bufferIndex <
|
|
10438
|
-
w(
|
|
10435
|
+
const z = i[r._index];
|
|
10436
|
+
if (typeof z == "string")
|
|
10437
|
+
for (P = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === P && r._bufferIndex < z.length; )
|
|
10438
|
+
w(z.charCodeAt(r._bufferIndex));
|
|
10439
10439
|
else
|
|
10440
|
-
w(
|
|
10440
|
+
w(z);
|
|
10441
10441
|
}
|
|
10442
10442
|
}
|
|
10443
10443
|
function w(P) {
|
|
@@ -10449,21 +10449,21 @@ function vm(e, t, n) {
|
|
|
10449
10449
|
/** @type {string} */
|
|
10450
10450
|
i[r._index].length && (r._bufferIndex = -1, r._index++)), u.previous = P;
|
|
10451
10451
|
}
|
|
10452
|
-
function _(P,
|
|
10453
|
-
const re =
|
|
10452
|
+
function _(P, z) {
|
|
10453
|
+
const re = z || {};
|
|
10454
10454
|
return re.type = P, re.start = g(), u.events.push(["enter", re, u]), a.push(re), re;
|
|
10455
10455
|
}
|
|
10456
|
-
function
|
|
10457
|
-
const
|
|
10458
|
-
return
|
|
10456
|
+
function O(P) {
|
|
10457
|
+
const z = a.pop();
|
|
10458
|
+
return z.end = g(), u.events.push(["exit", z, u]), z;
|
|
10459
10459
|
}
|
|
10460
|
-
function
|
|
10461
|
-
N(P,
|
|
10460
|
+
function F(P, z) {
|
|
10461
|
+
N(P, z.from);
|
|
10462
10462
|
}
|
|
10463
|
-
function C(P,
|
|
10464
|
-
|
|
10463
|
+
function C(P, z) {
|
|
10464
|
+
z.restore();
|
|
10465
10465
|
}
|
|
10466
|
-
function B(P,
|
|
10466
|
+
function B(P, z) {
|
|
10467
10467
|
return re;
|
|
10468
10468
|
function re(V, D, J) {
|
|
10469
10469
|
let ae, Ee, Le, m;
|
|
@@ -10476,8 +10476,8 @@ function vm(e, t, n) {
|
|
|
10476
10476
|
/** @type {Construct} */
|
|
10477
10477
|
V
|
|
10478
10478
|
])
|
|
10479
|
-
) :
|
|
10480
|
-
function
|
|
10479
|
+
) : Se(V);
|
|
10480
|
+
function Se(j) {
|
|
10481
10481
|
return Je;
|
|
10482
10482
|
function Je($e) {
|
|
10483
10483
|
const ce = $e !== null && j[$e], it = $e !== null && j.null, lt = [
|
|
@@ -10499,7 +10499,7 @@ function vm(e, t, n) {
|
|
|
10499
10499
|
// If we do have fields, create an object w/ `context` as its
|
|
10500
10500
|
// prototype.
|
|
10501
10501
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
10502
|
-
|
|
10502
|
+
z ? Object.assign(Object.create(u), z) : u,
|
|
10503
10503
|
s,
|
|
10504
10504
|
Te,
|
|
10505
10505
|
me
|
|
@@ -10514,17 +10514,17 @@ function vm(e, t, n) {
|
|
|
10514
10514
|
}
|
|
10515
10515
|
}
|
|
10516
10516
|
}
|
|
10517
|
-
function N(P,
|
|
10518
|
-
P.resolveAll && !l.includes(P) && l.push(P), P.resolve && Ke(u.events,
|
|
10517
|
+
function N(P, z) {
|
|
10518
|
+
P.resolveAll && !l.includes(P) && l.push(P), P.resolve && Ke(u.events, z, u.events.length - z, P.resolve(u.events.slice(z), u)), P.resolveTo && (u.events = P.resolveTo(u.events, u));
|
|
10519
10519
|
}
|
|
10520
10520
|
function W() {
|
|
10521
|
-
const P = g(),
|
|
10521
|
+
const P = g(), z = u.previous, re = u.currentConstruct, V = u.events.length, D = Array.from(a);
|
|
10522
10522
|
return {
|
|
10523
10523
|
from: V,
|
|
10524
10524
|
restore: J
|
|
10525
10525
|
};
|
|
10526
10526
|
function J() {
|
|
10527
|
-
r = P, u.previous =
|
|
10527
|
+
r = P, u.previous = z, u.currentConstruct = re, u.events.length = V, a = D, S();
|
|
10528
10528
|
}
|
|
10529
10529
|
}
|
|
10530
10530
|
function S() {
|
|
@@ -10657,7 +10657,7 @@ function Rm(e, t, n) {
|
|
|
10657
10657
|
return t;
|
|
10658
10658
|
if (n.charCodeAt(0) === 35) {
|
|
10659
10659
|
const o = n.charCodeAt(1), l = o === 120 || o === 88;
|
|
10660
|
-
return
|
|
10660
|
+
return Ms(n.slice(l ? 2 : 1), l ? 16 : 10);
|
|
10661
10661
|
}
|
|
10662
10662
|
return hi(n) || e;
|
|
10663
10663
|
}
|
|
@@ -10714,7 +10714,7 @@ function Lm(e) {
|
|
|
10714
10714
|
},
|
|
10715
10715
|
exit: {
|
|
10716
10716
|
atxHeading: s(),
|
|
10717
|
-
atxHeadingSequence:
|
|
10717
|
+
atxHeadingSequence: F,
|
|
10718
10718
|
autolink: s(),
|
|
10719
10719
|
autolinkEmail: ce,
|
|
10720
10720
|
autolinkProtocol: $e,
|
|
@@ -10734,12 +10734,12 @@ function Lm(e) {
|
|
|
10734
10734
|
codeTextData: S,
|
|
10735
10735
|
data: S,
|
|
10736
10736
|
definition: s(),
|
|
10737
|
-
definitionDestinationString:
|
|
10737
|
+
definitionDestinationString: O,
|
|
10738
10738
|
definitionLabelString: E,
|
|
10739
10739
|
definitionTitleString: _,
|
|
10740
10740
|
emphasis: s(),
|
|
10741
|
-
hardBreakEscape: s(
|
|
10742
|
-
hardBreakTrailing: s(
|
|
10741
|
+
hardBreakEscape: s(z),
|
|
10742
|
+
hardBreakTrailing: s(z),
|
|
10743
10743
|
htmlFlow: s(re),
|
|
10744
10744
|
htmlFlowData: S,
|
|
10745
10745
|
htmlText: s(V),
|
|
@@ -10755,7 +10755,7 @@ function Lm(e) {
|
|
|
10755
10755
|
paragraph: s(),
|
|
10756
10756
|
referenceString: Te,
|
|
10757
10757
|
resourceDestinationString: m,
|
|
10758
|
-
resourceTitleString:
|
|
10758
|
+
resourceTitleString: Se,
|
|
10759
10759
|
resource: Pe,
|
|
10760
10760
|
setextHeading: s(N),
|
|
10761
10761
|
setextHeadingLineSequence: B,
|
|
@@ -10768,12 +10768,12 @@ function Lm(e) {
|
|
|
10768
10768
|
const n = {};
|
|
10769
10769
|
return r;
|
|
10770
10770
|
function r(A) {
|
|
10771
|
-
let
|
|
10771
|
+
let M = {
|
|
10772
10772
|
type: "root",
|
|
10773
10773
|
children: []
|
|
10774
10774
|
};
|
|
10775
10775
|
const G = {
|
|
10776
|
-
stack: [
|
|
10776
|
+
stack: [M],
|
|
10777
10777
|
tokenStack: [],
|
|
10778
10778
|
config: t,
|
|
10779
10779
|
enter: a,
|
|
@@ -10801,7 +10801,7 @@ function Lm(e) {
|
|
|
10801
10801
|
const De = G.tokenStack[G.tokenStack.length - 1];
|
|
10802
10802
|
(De[1] || Cl).call(G, void 0, De[0]);
|
|
10803
10803
|
}
|
|
10804
|
-
for (
|
|
10804
|
+
for (M.position = {
|
|
10805
10805
|
start: Pt(A.length > 0 ? A[0][1].start : {
|
|
10806
10806
|
line: 1,
|
|
10807
10807
|
column: 1,
|
|
@@ -10813,22 +10813,22 @@ function Lm(e) {
|
|
|
10813
10813
|
offset: 0
|
|
10814
10814
|
})
|
|
10815
10815
|
}, le = -1; ++le < t.transforms.length; )
|
|
10816
|
-
|
|
10817
|
-
return
|
|
10816
|
+
M = t.transforms[le](M) || M;
|
|
10817
|
+
return M;
|
|
10818
10818
|
}
|
|
10819
|
-
function o(A,
|
|
10820
|
-
let Q =
|
|
10819
|
+
function o(A, M, G) {
|
|
10820
|
+
let Q = M - 1, le = -1, De = !1, Qe, ze, yt, Ze;
|
|
10821
10821
|
for (; ++Q <= G; ) {
|
|
10822
|
-
const
|
|
10823
|
-
switch (
|
|
10822
|
+
const ve = A[Q];
|
|
10823
|
+
switch (ve[1].type) {
|
|
10824
10824
|
case "listUnordered":
|
|
10825
10825
|
case "listOrdered":
|
|
10826
10826
|
case "blockQuote": {
|
|
10827
|
-
|
|
10827
|
+
ve[0] === "enter" ? le++ : le--, Ze = void 0;
|
|
10828
10828
|
break;
|
|
10829
10829
|
}
|
|
10830
10830
|
case "lineEndingBlank": {
|
|
10831
|
-
|
|
10831
|
+
ve[0] === "enter" && (Qe && !Ze && !le && !yt && (yt = Q), Ze = void 0);
|
|
10832
10832
|
break;
|
|
10833
10833
|
}
|
|
10834
10834
|
case "linePrefix":
|
|
@@ -10840,7 +10840,7 @@ function Lm(e) {
|
|
|
10840
10840
|
default:
|
|
10841
10841
|
Ze = void 0;
|
|
10842
10842
|
}
|
|
10843
|
-
if (!le &&
|
|
10843
|
+
if (!le && ve[0] === "enter" && ve[1].type === "listItemPrefix" || le === -1 && ve[0] === "exit" && (ve[1].type === "listUnordered" || ve[1].type === "listOrdered")) {
|
|
10844
10844
|
if (Qe) {
|
|
10845
10845
|
let at = Q;
|
|
10846
10846
|
for (ze = void 0; at--; ) {
|
|
@@ -10850,26 +10850,26 @@ function Lm(e) {
|
|
|
10850
10850
|
ze && (A[ze][1].type = "lineEndingBlank", De = !0), et[1].type = "lineEnding", ze = at;
|
|
10851
10851
|
} else if (!(et[1].type === "linePrefix" || et[1].type === "blockQuotePrefix" || et[1].type === "blockQuotePrefixWhitespace" || et[1].type === "blockQuoteMarker" || et[1].type === "listItemIndent")) break;
|
|
10852
10852
|
}
|
|
10853
|
-
|
|
10853
|
+
yt && (!ze || yt < ze) && (Qe._spread = !0), Qe.end = Object.assign({}, ze ? A[ze][1].start : ve[1].end), A.splice(ze || Q, 0, ["exit", Qe, ve[2]]), Q++, G++;
|
|
10854
10854
|
}
|
|
10855
|
-
if (
|
|
10855
|
+
if (ve[1].type === "listItemPrefix") {
|
|
10856
10856
|
const at = {
|
|
10857
10857
|
type: "listItem",
|
|
10858
10858
|
_spread: !1,
|
|
10859
|
-
start: Object.assign({},
|
|
10859
|
+
start: Object.assign({}, ve[1].start),
|
|
10860
10860
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
10861
10861
|
end: void 0
|
|
10862
10862
|
};
|
|
10863
|
-
Qe = at, A.splice(Q, 0, ["enter", at,
|
|
10863
|
+
Qe = at, A.splice(Q, 0, ["enter", at, ve[2]]), Q++, G++, yt = void 0, Ze = !0;
|
|
10864
10864
|
}
|
|
10865
10865
|
}
|
|
10866
10866
|
}
|
|
10867
|
-
return A[
|
|
10867
|
+
return A[M][1]._spread = De, G;
|
|
10868
10868
|
}
|
|
10869
|
-
function l(A,
|
|
10869
|
+
function l(A, M) {
|
|
10870
10870
|
return G;
|
|
10871
10871
|
function G(Q) {
|
|
10872
|
-
a.call(this, A(Q), Q),
|
|
10872
|
+
a.call(this, A(Q), Q), M && M.call(this, Q);
|
|
10873
10873
|
}
|
|
10874
10874
|
}
|
|
10875
10875
|
function i() {
|
|
@@ -10878,23 +10878,23 @@ function Lm(e) {
|
|
|
10878
10878
|
children: []
|
|
10879
10879
|
});
|
|
10880
10880
|
}
|
|
10881
|
-
function a(A,
|
|
10882
|
-
this.stack[this.stack.length - 1].children.push(A), this.stack.push(A), this.tokenStack.push([
|
|
10883
|
-
start: Pt(
|
|
10881
|
+
function a(A, M, G) {
|
|
10882
|
+
this.stack[this.stack.length - 1].children.push(A), this.stack.push(A), this.tokenStack.push([M, G || void 0]), A.position = {
|
|
10883
|
+
start: Pt(M.start),
|
|
10884
10884
|
// @ts-expect-error: `end` will be patched later.
|
|
10885
10885
|
end: void 0
|
|
10886
10886
|
};
|
|
10887
10887
|
}
|
|
10888
10888
|
function s(A) {
|
|
10889
|
-
return
|
|
10890
|
-
function
|
|
10889
|
+
return M;
|
|
10890
|
+
function M(G) {
|
|
10891
10891
|
A && A.call(this, G), u.call(this, G);
|
|
10892
10892
|
}
|
|
10893
10893
|
}
|
|
10894
|
-
function u(A,
|
|
10894
|
+
function u(A, M) {
|
|
10895
10895
|
const G = this.stack.pop(), Q = this.tokenStack.pop();
|
|
10896
10896
|
if (Q)
|
|
10897
|
-
Q[0].type !== A.type && (
|
|
10897
|
+
Q[0].type !== A.type && (M ? M.call(this, A, Q[0]) : (Q[1] || Cl).call(this, A, Q[0]));
|
|
10898
10898
|
else throw new Error("Cannot close `" + A.type + "` (" + zn({
|
|
10899
10899
|
start: A.start,
|
|
10900
10900
|
end: A.end
|
|
@@ -10909,54 +10909,54 @@ function Lm(e) {
|
|
|
10909
10909
|
}
|
|
10910
10910
|
function d(A) {
|
|
10911
10911
|
if (this.data.expectingFirstListItemValue) {
|
|
10912
|
-
const
|
|
10913
|
-
|
|
10912
|
+
const M = this.stack[this.stack.length - 2];
|
|
10913
|
+
M.start = Number.parseInt(this.sliceSerialize(A), 10), this.data.expectingFirstListItemValue = void 0;
|
|
10914
10914
|
}
|
|
10915
10915
|
}
|
|
10916
10916
|
function p() {
|
|
10917
|
-
const A = this.resume(),
|
|
10918
|
-
|
|
10917
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10918
|
+
M.lang = A;
|
|
10919
10919
|
}
|
|
10920
10920
|
function g() {
|
|
10921
|
-
const A = this.resume(),
|
|
10922
|
-
|
|
10921
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10922
|
+
M.meta = A;
|
|
10923
10923
|
}
|
|
10924
10924
|
function k() {
|
|
10925
10925
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
10926
10926
|
}
|
|
10927
10927
|
function v() {
|
|
10928
|
-
const A = this.resume(),
|
|
10929
|
-
|
|
10928
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10929
|
+
M.value = A.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
10930
10930
|
}
|
|
10931
10931
|
function w() {
|
|
10932
|
-
const A = this.resume(),
|
|
10933
|
-
|
|
10932
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10933
|
+
M.value = A.replace(/(\r?\n|\r)$/g, "");
|
|
10934
10934
|
}
|
|
10935
10935
|
function E(A) {
|
|
10936
|
-
const
|
|
10937
|
-
G.label =
|
|
10936
|
+
const M = this.resume(), G = this.stack[this.stack.length - 1];
|
|
10937
|
+
G.label = M, G.identifier = ut(this.sliceSerialize(A)).toLowerCase();
|
|
10938
10938
|
}
|
|
10939
10939
|
function _() {
|
|
10940
|
-
const A = this.resume(),
|
|
10941
|
-
|
|
10940
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10941
|
+
M.title = A;
|
|
10942
10942
|
}
|
|
10943
|
-
function
|
|
10944
|
-
const A = this.resume(),
|
|
10945
|
-
|
|
10943
|
+
function O() {
|
|
10944
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10945
|
+
M.url = A;
|
|
10946
10946
|
}
|
|
10947
|
-
function
|
|
10948
|
-
const
|
|
10949
|
-
if (!
|
|
10947
|
+
function F(A) {
|
|
10948
|
+
const M = this.stack[this.stack.length - 1];
|
|
10949
|
+
if (!M.depth) {
|
|
10950
10950
|
const G = this.sliceSerialize(A).length;
|
|
10951
|
-
|
|
10951
|
+
M.depth = G;
|
|
10952
10952
|
}
|
|
10953
10953
|
}
|
|
10954
10954
|
function C() {
|
|
10955
10955
|
this.data.setextHeadingSlurpLineEnding = !0;
|
|
10956
10956
|
}
|
|
10957
10957
|
function B(A) {
|
|
10958
|
-
const
|
|
10959
|
-
|
|
10958
|
+
const M = this.stack[this.stack.length - 1];
|
|
10959
|
+
M.depth = this.sliceSerialize(A).codePointAt(0) === 61 ? 1 : 2;
|
|
10960
10960
|
}
|
|
10961
10961
|
function N() {
|
|
10962
10962
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
@@ -10971,38 +10971,38 @@ function Lm(e) {
|
|
|
10971
10971
|
}, G.push(Q)), this.stack.push(Q);
|
|
10972
10972
|
}
|
|
10973
10973
|
function S(A) {
|
|
10974
|
-
const
|
|
10975
|
-
|
|
10974
|
+
const M = this.stack.pop();
|
|
10975
|
+
M.value += this.sliceSerialize(A), M.position.end = Pt(A.end);
|
|
10976
10976
|
}
|
|
10977
10977
|
function P(A) {
|
|
10978
|
-
const
|
|
10978
|
+
const M = this.stack[this.stack.length - 1];
|
|
10979
10979
|
if (this.data.atHardBreak) {
|
|
10980
|
-
const G =
|
|
10980
|
+
const G = M.children[M.children.length - 1];
|
|
10981
10981
|
G.position.end = Pt(A.end), this.data.atHardBreak = void 0;
|
|
10982
10982
|
return;
|
|
10983
10983
|
}
|
|
10984
|
-
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(
|
|
10984
|
+
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(M.type) && (W.call(this, A), S.call(this, A));
|
|
10985
10985
|
}
|
|
10986
|
-
function
|
|
10986
|
+
function z() {
|
|
10987
10987
|
this.data.atHardBreak = !0;
|
|
10988
10988
|
}
|
|
10989
10989
|
function re() {
|
|
10990
|
-
const A = this.resume(),
|
|
10991
|
-
|
|
10990
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10991
|
+
M.value = A;
|
|
10992
10992
|
}
|
|
10993
10993
|
function V() {
|
|
10994
|
-
const A = this.resume(),
|
|
10995
|
-
|
|
10994
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10995
|
+
M.value = A;
|
|
10996
10996
|
}
|
|
10997
10997
|
function D() {
|
|
10998
|
-
const A = this.resume(),
|
|
10999
|
-
|
|
10998
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
10999
|
+
M.value = A;
|
|
11000
11000
|
}
|
|
11001
11001
|
function J() {
|
|
11002
11002
|
const A = this.stack[this.stack.length - 1];
|
|
11003
11003
|
if (this.data.inReference) {
|
|
11004
|
-
const
|
|
11005
|
-
A.type += "Reference", A.referenceType =
|
|
11004
|
+
const M = this.data.referenceType || "shortcut";
|
|
11005
|
+
A.type += "Reference", A.referenceType = M, delete A.url, delete A.title;
|
|
11006
11006
|
} else
|
|
11007
11007
|
delete A.identifier, delete A.label;
|
|
11008
11008
|
this.data.referenceType = void 0;
|
|
@@ -11010,31 +11010,31 @@ function Lm(e) {
|
|
|
11010
11010
|
function ae() {
|
|
11011
11011
|
const A = this.stack[this.stack.length - 1];
|
|
11012
11012
|
if (this.data.inReference) {
|
|
11013
|
-
const
|
|
11014
|
-
A.type += "Reference", A.referenceType =
|
|
11013
|
+
const M = this.data.referenceType || "shortcut";
|
|
11014
|
+
A.type += "Reference", A.referenceType = M, delete A.url, delete A.title;
|
|
11015
11015
|
} else
|
|
11016
11016
|
delete A.identifier, delete A.label;
|
|
11017
11017
|
this.data.referenceType = void 0;
|
|
11018
11018
|
}
|
|
11019
11019
|
function Ee(A) {
|
|
11020
|
-
const
|
|
11021
|
-
G.label = Im(
|
|
11020
|
+
const M = this.sliceSerialize(A), G = this.stack[this.stack.length - 2];
|
|
11021
|
+
G.label = Im(M), G.identifier = ut(M).toLowerCase();
|
|
11022
11022
|
}
|
|
11023
11023
|
function Le() {
|
|
11024
|
-
const A = this.stack[this.stack.length - 1],
|
|
11024
|
+
const A = this.stack[this.stack.length - 1], M = this.resume(), G = this.stack[this.stack.length - 1];
|
|
11025
11025
|
if (this.data.inReference = !0, G.type === "link") {
|
|
11026
11026
|
const Q = A.children;
|
|
11027
11027
|
G.children = Q;
|
|
11028
11028
|
} else
|
|
11029
|
-
G.alt =
|
|
11029
|
+
G.alt = M;
|
|
11030
11030
|
}
|
|
11031
11031
|
function m() {
|
|
11032
|
-
const A = this.resume(),
|
|
11033
|
-
|
|
11032
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
11033
|
+
M.url = A;
|
|
11034
11034
|
}
|
|
11035
|
-
function
|
|
11036
|
-
const A = this.resume(),
|
|
11037
|
-
|
|
11035
|
+
function Se() {
|
|
11036
|
+
const A = this.resume(), M = this.stack[this.stack.length - 1];
|
|
11037
|
+
M.title = A;
|
|
11038
11038
|
}
|
|
11039
11039
|
function Pe() {
|
|
11040
11040
|
this.data.inReference = void 0;
|
|
@@ -11043,32 +11043,32 @@ function Lm(e) {
|
|
|
11043
11043
|
this.data.referenceType = "collapsed";
|
|
11044
11044
|
}
|
|
11045
11045
|
function Te(A) {
|
|
11046
|
-
const
|
|
11047
|
-
G.label =
|
|
11046
|
+
const M = this.resume(), G = this.stack[this.stack.length - 1];
|
|
11047
|
+
G.label = M, G.identifier = ut(this.sliceSerialize(A)).toLowerCase(), this.data.referenceType = "full";
|
|
11048
11048
|
}
|
|
11049
11049
|
function me(A) {
|
|
11050
11050
|
this.data.characterReferenceType = A.type;
|
|
11051
11051
|
}
|
|
11052
11052
|
function j(A) {
|
|
11053
|
-
const
|
|
11053
|
+
const M = this.sliceSerialize(A), G = this.data.characterReferenceType;
|
|
11054
11054
|
let Q;
|
|
11055
|
-
G ? (Q =
|
|
11055
|
+
G ? (Q = Ms(M, G === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : Q = hi(M);
|
|
11056
11056
|
const le = this.stack[this.stack.length - 1];
|
|
11057
11057
|
le.value += Q;
|
|
11058
11058
|
}
|
|
11059
11059
|
function Je(A) {
|
|
11060
|
-
const
|
|
11061
|
-
|
|
11060
|
+
const M = this.stack.pop();
|
|
11061
|
+
M.position.end = Pt(A.end);
|
|
11062
11062
|
}
|
|
11063
11063
|
function $e(A) {
|
|
11064
11064
|
S.call(this, A);
|
|
11065
|
-
const
|
|
11066
|
-
|
|
11065
|
+
const M = this.stack[this.stack.length - 1];
|
|
11066
|
+
M.url = this.sliceSerialize(A);
|
|
11067
11067
|
}
|
|
11068
11068
|
function ce(A) {
|
|
11069
11069
|
S.call(this, A);
|
|
11070
|
-
const
|
|
11071
|
-
|
|
11070
|
+
const M = this.stack[this.stack.length - 1];
|
|
11071
|
+
M.url = "mailto:" + this.sliceSerialize(A);
|
|
11072
11072
|
}
|
|
11073
11073
|
function it() {
|
|
11074
11074
|
return {
|
|
@@ -11245,7 +11245,7 @@ function Dm(e) {
|
|
|
11245
11245
|
});
|
|
11246
11246
|
}
|
|
11247
11247
|
}
|
|
11248
|
-
function
|
|
11248
|
+
function Mm(e, t) {
|
|
11249
11249
|
const n = {
|
|
11250
11250
|
type: "element",
|
|
11251
11251
|
tagName: "blockquote",
|
|
@@ -11254,7 +11254,7 @@ function Om(e, t) {
|
|
|
11254
11254
|
};
|
|
11255
11255
|
return e.patch(t, n), e.applyData(t, n);
|
|
11256
11256
|
}
|
|
11257
|
-
function
|
|
11257
|
+
function Om(e, t) {
|
|
11258
11258
|
const n = { type: "element", tagName: "br", properties: {}, children: [] };
|
|
11259
11259
|
return e.patch(t, n), [e.applyData(t, n), { type: "text", value: `
|
|
11260
11260
|
` }];
|
|
@@ -11564,8 +11564,8 @@ function lg(e, t) {
|
|
|
11564
11564
|
return e.patch(t, n), e.applyData(t, n);
|
|
11565
11565
|
}
|
|
11566
11566
|
const ag = {
|
|
11567
|
-
blockquote:
|
|
11568
|
-
break:
|
|
11567
|
+
blockquote: Mm,
|
|
11568
|
+
break: Om,
|
|
11569
11569
|
code: zm,
|
|
11570
11570
|
delete: Fm,
|
|
11571
11571
|
emphasis: Bm,
|
|
@@ -12221,7 +12221,7 @@ function Lg(e, t) {
|
|
|
12221
12221
|
o(null, i);
|
|
12222
12222
|
}
|
|
12223
12223
|
}
|
|
12224
|
-
const gt = { basename: Pg, dirname: Dg, extname:
|
|
12224
|
+
const gt = { basename: Pg, dirname: Dg, extname: Mg, join: Og, sep: "/" };
|
|
12225
12225
|
function Pg(e, t) {
|
|
12226
12226
|
if (t !== void 0 && typeof t != "string")
|
|
12227
12227
|
throw new TypeError('"ext" argument must be a string');
|
|
@@ -12263,7 +12263,7 @@ function Dg(e) {
|
|
|
12263
12263
|
} else r || (r = !0);
|
|
12264
12264
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
12265
12265
|
}
|
|
12266
|
-
function
|
|
12266
|
+
function Mg(e) {
|
|
12267
12267
|
Jn(e);
|
|
12268
12268
|
let t = e.length, n = -1, r = 0, o = -1, l = 0, i;
|
|
12269
12269
|
for (; t--; ) {
|
|
@@ -12281,7 +12281,7 @@ function Og(e) {
|
|
|
12281
12281
|
l === 0 || // The (right-most) trimmed path component is exactly `..`.
|
|
12282
12282
|
l === 1 && o === n - 1 && o === r + 1 ? "" : e.slice(o, n);
|
|
12283
12283
|
}
|
|
12284
|
-
function
|
|
12284
|
+
function Og(...e) {
|
|
12285
12285
|
let t = -1, n;
|
|
12286
12286
|
for (; ++t < e.length; )
|
|
12287
12287
|
Jn(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
@@ -13043,7 +13043,7 @@ class ki extends $g {
|
|
|
13043
13043
|
*/
|
|
13044
13044
|
processSync(t) {
|
|
13045
13045
|
let n = !1, r;
|
|
13046
|
-
return this.freeze(), ao("processSync", this.parser || this.Parser), so("processSync", this.compiler || this.Compiler), this.process(t, o),
|
|
13046
|
+
return this.freeze(), ao("processSync", this.parser || this.Parser), so("processSync", this.compiler || this.Compiler), this.process(t, o), Ol("processSync", "process", n), r;
|
|
13047
13047
|
function o(l, i) {
|
|
13048
13048
|
n = !0, Ll(l), r = i;
|
|
13049
13049
|
}
|
|
@@ -13087,7 +13087,7 @@ class ki extends $g {
|
|
|
13087
13087
|
* transformed tree.
|
|
13088
13088
|
*/
|
|
13089
13089
|
run(t, n, r) {
|
|
13090
|
-
|
|
13090
|
+
Ml(t), this.freeze();
|
|
13091
13091
|
const o = this.transformers;
|
|
13092
13092
|
return !r && typeof n == "function" && (r = n, n = void 0), r ? l(void 0, r) : new Promise(l);
|
|
13093
13093
|
function l(i, a) {
|
|
@@ -13121,7 +13121,7 @@ class ki extends $g {
|
|
|
13121
13121
|
*/
|
|
13122
13122
|
runSync(t, n) {
|
|
13123
13123
|
let r = !1, o;
|
|
13124
|
-
return this.run(t, n, l),
|
|
13124
|
+
return this.run(t, n, l), Ol("runSync", "run", r), o;
|
|
13125
13125
|
function l(i, a) {
|
|
13126
13126
|
Ll(i), o = a, r = !0;
|
|
13127
13127
|
}
|
|
@@ -13158,7 +13158,7 @@ class ki extends $g {
|
|
|
13158
13158
|
stringify(t, n) {
|
|
13159
13159
|
this.freeze();
|
|
13160
13160
|
const r = dr(n), o = this.compiler || this.Compiler;
|
|
13161
|
-
return so("stringify", o),
|
|
13161
|
+
return so("stringify", o), Ml(t), o(t, r);
|
|
13162
13162
|
}
|
|
13163
13163
|
/**
|
|
13164
13164
|
* Configure the processor to use a plugin, a list of usable values, or a
|
|
@@ -13290,11 +13290,11 @@ function uo(e, t) {
|
|
|
13290
13290
|
"Cannot call `" + e + "` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`."
|
|
13291
13291
|
);
|
|
13292
13292
|
}
|
|
13293
|
-
function
|
|
13293
|
+
function Ml(e) {
|
|
13294
13294
|
if (!Uo(e) || typeof e.type != "string")
|
|
13295
13295
|
throw new TypeError("Expected node, got `" + e + "`");
|
|
13296
13296
|
}
|
|
13297
|
-
function
|
|
13297
|
+
function Ol(e, t, n) {
|
|
13298
13298
|
if (!n)
|
|
13299
13299
|
throw new Error(
|
|
13300
13300
|
"`" + e + "` finished async. Use `" + t + "` instead"
|
|
@@ -13592,7 +13592,7 @@ const Gt = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Bl = {
|
|
|
13592
13592
|
"ul",
|
|
13593
13593
|
"var"
|
|
13594
13594
|
]
|
|
13595
|
-
},
|
|
13595
|
+
}, Mt = {}.hasOwnProperty;
|
|
13596
13596
|
function ib(e, t) {
|
|
13597
13597
|
let n = { type: "root", children: [] };
|
|
13598
13598
|
const r = {
|
|
@@ -13642,7 +13642,7 @@ function sb(e, t) {
|
|
|
13642
13642
|
), o = fb(e, t.properties);
|
|
13643
13643
|
e.stack.pop();
|
|
13644
13644
|
let l = !1;
|
|
13645
|
-
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (l = !0, e.schema.ancestors &&
|
|
13645
|
+
if (n && n !== "*" && (!e.schema.tagNames || e.schema.tagNames.includes(n)) && (l = !0, e.schema.ancestors && Mt.call(e.schema.ancestors, n))) {
|
|
13646
13646
|
const a = e.schema.ancestors[n];
|
|
13647
13647
|
let s = -1;
|
|
13648
13648
|
for (l = !1; ++s < a.length; )
|
|
@@ -13685,13 +13685,13 @@ function ou(e, t) {
|
|
|
13685
13685
|
return n;
|
|
13686
13686
|
}
|
|
13687
13687
|
function fb(e, t) {
|
|
13688
|
-
const n = e.stack[e.stack.length - 1], r = e.schema.attributes, o = e.schema.required, l = r &&
|
|
13688
|
+
const n = e.stack[e.stack.length - 1], r = e.schema.attributes, o = e.schema.required, l = r && Mt.call(r, n) ? r[n] : void 0, i = r && Mt.call(r, "*") ? r["*"] : void 0, a = (
|
|
13689
13689
|
/** @type {Readonly<Record<string, Readonly<unknown>>>} */
|
|
13690
13690
|
t && typeof t == "object" ? t : {}
|
|
13691
13691
|
), s = {};
|
|
13692
13692
|
let u;
|
|
13693
13693
|
for (u in a)
|
|
13694
|
-
if (
|
|
13694
|
+
if (Mt.call(a, u)) {
|
|
13695
13695
|
const f = a[u];
|
|
13696
13696
|
let c = Ul(
|
|
13697
13697
|
e,
|
|
@@ -13701,10 +13701,10 @@ function fb(e, t) {
|
|
|
13701
13701
|
);
|
|
13702
13702
|
c == null && (c = Ul(e, Hl(i, u), u, f)), c != null && (s[u] = c);
|
|
13703
13703
|
}
|
|
13704
|
-
if (o &&
|
|
13704
|
+
if (o && Mt.call(o, n)) {
|
|
13705
13705
|
const f = o[n];
|
|
13706
13706
|
for (u in f)
|
|
13707
|
-
|
|
13707
|
+
Mt.call(f, u) && !Mt.call(s, u) && (s[u] = f[u]);
|
|
13708
13708
|
}
|
|
13709
13709
|
return s;
|
|
13710
13710
|
}
|
|
@@ -13742,7 +13742,7 @@ function iu(e, t, n, r) {
|
|
|
13742
13742
|
}
|
|
13743
13743
|
}
|
|
13744
13744
|
function db(e, t, n) {
|
|
13745
|
-
const r = e.schema.protocols &&
|
|
13745
|
+
const r = e.schema.protocols && Mt.call(e.schema.protocols, t) ? e.schema.protocols[t] : void 0;
|
|
13746
13746
|
if (!r || r.length === 0)
|
|
13747
13747
|
return !0;
|
|
13748
13748
|
const o = String(n), l = o.indexOf(":"), i = o.indexOf("?"), a = o.indexOf("#"), s = o.indexOf("/");
|
|
@@ -13817,16 +13817,16 @@ function lu(e, t, n) {
|
|
|
13817
13817
|
d.lastIndex = 0;
|
|
13818
13818
|
let _ = d.exec(u.value);
|
|
13819
13819
|
for (; _; ) {
|
|
13820
|
-
const
|
|
13820
|
+
const O = _.index, F = {
|
|
13821
13821
|
index: _.index,
|
|
13822
13822
|
input: _.input,
|
|
13823
13823
|
stack: [...f, u]
|
|
13824
13824
|
};
|
|
13825
|
-
let C = p(..._,
|
|
13826
|
-
if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex =
|
|
13825
|
+
let C = p(..._, F);
|
|
13826
|
+
if (typeof C == "string" && (C = C.length > 0 ? { type: "text", value: C } : void 0), C === !1 ? d.lastIndex = O + 1 : (g !== O && E.push({
|
|
13827
13827
|
type: "text",
|
|
13828
|
-
value: u.value.slice(g,
|
|
13829
|
-
}), Array.isArray(C) ? E.push(...C) : C && E.push(C), g =
|
|
13828
|
+
value: u.value.slice(g, O)
|
|
13829
|
+
}), Array.isArray(C) ? E.push(...C) : C && E.push(C), g = O + _[0].length, w = !0), !d.global)
|
|
13830
13830
|
break;
|
|
13831
13831
|
_ = d.exec(u.value);
|
|
13832
13832
|
}
|
|
@@ -14002,10 +14002,10 @@ function Pb() {
|
|
|
14002
14002
|
function Db(e) {
|
|
14003
14003
|
this.enter({ type: "footnoteReference", identifier: "", label: "" }, e);
|
|
14004
14004
|
}
|
|
14005
|
-
function
|
|
14005
|
+
function Mb() {
|
|
14006
14006
|
this.buffer();
|
|
14007
14007
|
}
|
|
14008
|
-
function
|
|
14008
|
+
function Ob(e) {
|
|
14009
14009
|
this.enter(
|
|
14010
14010
|
{ type: "footnoteDefinition", identifier: "", label: "", children: [] },
|
|
14011
14011
|
e
|
|
@@ -14045,8 +14045,8 @@ function jb() {
|
|
|
14045
14045
|
enter: {
|
|
14046
14046
|
gfmFootnoteCallString: Pb,
|
|
14047
14047
|
gfmFootnoteCall: Db,
|
|
14048
|
-
gfmFootnoteDefinitionLabelString:
|
|
14049
|
-
gfmFootnoteDefinition:
|
|
14048
|
+
gfmFootnoteDefinitionLabelString: Mb,
|
|
14049
|
+
gfmFootnoteDefinition: Ob
|
|
14050
14050
|
},
|
|
14051
14051
|
exit: {
|
|
14052
14052
|
gfmFootnoteCallString: zb,
|
|
@@ -14179,14 +14179,14 @@ function Zb(e, t) {
|
|
|
14179
14179
|
const w = [];
|
|
14180
14180
|
for (; ++c < u; ) {
|
|
14181
14181
|
const E = k[c] || "";
|
|
14182
|
-
let _ = "",
|
|
14182
|
+
let _ = "", O = "";
|
|
14183
14183
|
if (n.alignDelimiters !== !1) {
|
|
14184
|
-
const
|
|
14185
|
-
C === 114 ? _ = " ".repeat(
|
|
14184
|
+
const F = s[c] - (v[c] || 0), C = l[c];
|
|
14185
|
+
C === 114 ? _ = " ".repeat(F) : C === 99 ? F % 2 ? (_ = " ".repeat(F / 2 + 0.5), O = " ".repeat(F / 2 - 0.5)) : (_ = " ".repeat(F / 2), O = _) : O = " ".repeat(F);
|
|
14186
14186
|
}
|
|
14187
14187
|
n.delimiterStart !== !1 && !c && w.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
14188
14188
|
// empty: there will be a closing space.
|
|
14189
|
-
!(n.alignDelimiters === !1 && E === "") && (n.delimiterStart !== !1 || c) && w.push(" "), n.alignDelimiters !== !1 && w.push(_), w.push(E), n.alignDelimiters !== !1 && w.push(
|
|
14189
|
+
!(n.alignDelimiters === !1 && E === "") && (n.delimiterStart !== !1 || c) && w.push(" "), n.alignDelimiters !== !1 && w.push(_), w.push(E), n.alignDelimiters !== !1 && w.push(O), n.padding !== !1 && w.push(" "), (n.delimiterEnd !== !1 || c !== u - 1) && w.push("|");
|
|
14190
14190
|
}
|
|
14191
14191
|
g.push(
|
|
14192
14192
|
n.delimiterEnd === !1 ? w.join("").replace(/ +$/, "") : w.join("")
|
|
@@ -14804,10 +14804,10 @@ function Ly() {
|
|
|
14804
14804
|
table: Py,
|
|
14805
14805
|
tableData: Gl,
|
|
14806
14806
|
tableHeader: Gl,
|
|
14807
|
-
tableRow:
|
|
14807
|
+
tableRow: My
|
|
14808
14808
|
},
|
|
14809
14809
|
exit: {
|
|
14810
|
-
codeText:
|
|
14810
|
+
codeText: Oy,
|
|
14811
14811
|
table: Dy,
|
|
14812
14812
|
tableData: ho,
|
|
14813
14813
|
tableHeader: ho,
|
|
@@ -14831,7 +14831,7 @@ function Py(e) {
|
|
|
14831
14831
|
function Dy(e) {
|
|
14832
14832
|
this.exit(e), this.data.inTable = void 0;
|
|
14833
14833
|
}
|
|
14834
|
-
function
|
|
14834
|
+
function My(e) {
|
|
14835
14835
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
14836
14836
|
}
|
|
14837
14837
|
function ho(e) {
|
|
@@ -14840,7 +14840,7 @@ function ho(e) {
|
|
|
14840
14840
|
function Gl(e) {
|
|
14841
14841
|
this.enter({ type: "tableCell", children: [] }, e);
|
|
14842
14842
|
}
|
|
14843
|
-
function
|
|
14843
|
+
function Oy(e) {
|
|
14844
14844
|
let t = this.resume();
|
|
14845
14845
|
this.data.inTable && (t = t.replace(/\\([\\|])/g, zy));
|
|
14846
14846
|
const n = this.stack[this.stack.length - 1];
|
|
@@ -15025,23 +15025,23 @@ const Wy = {
|
|
|
15025
15025
|
name: "emailAutolink",
|
|
15026
15026
|
tokenize: Xy,
|
|
15027
15027
|
previous: _u
|
|
15028
|
-
},
|
|
15028
|
+
}, bt = {};
|
|
15029
15029
|
function Yy() {
|
|
15030
15030
|
return {
|
|
15031
|
-
text:
|
|
15031
|
+
text: bt
|
|
15032
15032
|
};
|
|
15033
15033
|
}
|
|
15034
15034
|
let Yt = 48;
|
|
15035
15035
|
for (; Yt < 123; )
|
|
15036
|
-
|
|
15037
|
-
|
|
15038
|
-
|
|
15039
|
-
|
|
15040
|
-
|
|
15041
|
-
|
|
15042
|
-
|
|
15043
|
-
|
|
15044
|
-
|
|
15036
|
+
bt[Yt] = Tt, Yt++, Yt === 58 ? Yt = 65 : Yt === 91 && (Yt = 97);
|
|
15037
|
+
bt[43] = Tt;
|
|
15038
|
+
bt[45] = Tt;
|
|
15039
|
+
bt[46] = Tt;
|
|
15040
|
+
bt[95] = Tt;
|
|
15041
|
+
bt[72] = [Tt, Eu];
|
|
15042
|
+
bt[104] = [Tt, Eu];
|
|
15043
|
+
bt[87] = [Tt, Au];
|
|
15044
|
+
bt[119] = [Tt, Au];
|
|
15045
15045
|
function Xy(e, t, n) {
|
|
15046
15046
|
const r = this;
|
|
15047
15047
|
let o, l;
|
|
@@ -15059,7 +15059,7 @@ function Xy(e, t, n) {
|
|
|
15059
15059
|
return e.consume(c), o = !0, s;
|
|
15060
15060
|
}
|
|
15061
15061
|
function f(c) {
|
|
15062
|
-
return l && o &&
|
|
15062
|
+
return l && o && Oe(r.previous) ? (e.exit("literalAutolinkEmail"), e.exit("literalAutolink"), t(c)) : n(c);
|
|
15063
15063
|
}
|
|
15064
15064
|
}
|
|
15065
15065
|
function Ky(e, t, n) {
|
|
@@ -15080,7 +15080,7 @@ function Jy(e, t, n) {
|
|
|
15080
15080
|
return (c === 72 || c === 104) && qu.call(r, r.previous) && !Ci(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), o += String.fromCodePoint(c), e.consume(c), a) : n(c);
|
|
15081
15081
|
}
|
|
15082
15082
|
function a(c) {
|
|
15083
|
-
if (
|
|
15083
|
+
if (Oe(c) && o.length < 5)
|
|
15084
15084
|
return o += String.fromCodePoint(c), e.consume(c), a;
|
|
15085
15085
|
if (c === 58) {
|
|
15086
15086
|
const d = o.toLowerCase();
|
|
@@ -15145,10 +15145,10 @@ function tx(e, t, n) {
|
|
|
15145
15145
|
return a === null || a === 40 || a === 91 || de(a) || en(a) ? t(a) : r(a);
|
|
15146
15146
|
}
|
|
15147
15147
|
function l(a) {
|
|
15148
|
-
return
|
|
15148
|
+
return Oe(a) ? i(a) : n(a);
|
|
15149
15149
|
}
|
|
15150
15150
|
function i(a) {
|
|
15151
|
-
return a === 59 ? (e.consume(a), r) :
|
|
15151
|
+
return a === 59 ? (e.consume(a), r) : Oe(a) ? (e.consume(a), i) : n(a);
|
|
15152
15152
|
}
|
|
15153
15153
|
}
|
|
15154
15154
|
function nx(e, t, n) {
|
|
@@ -15164,7 +15164,7 @@ function Tu(e) {
|
|
|
15164
15164
|
return e === null || e === 40 || e === 42 || e === 95 || e === 91 || e === 93 || e === 126 || de(e);
|
|
15165
15165
|
}
|
|
15166
15166
|
function qu(e) {
|
|
15167
|
-
return !
|
|
15167
|
+
return !Oe(e);
|
|
15168
15168
|
}
|
|
15169
15169
|
function _u(e) {
|
|
15170
15170
|
return !(e === 47 || jo(e));
|
|
@@ -15544,7 +15544,7 @@ function bx(e, t, n) {
|
|
|
15544
15544
|
V === "linePrefix") P--;
|
|
15545
15545
|
else break;
|
|
15546
15546
|
}
|
|
15547
|
-
const
|
|
15547
|
+
const z = P > -1 ? r.events[P][1].type : null, re = z === "tableHead" || z === "tableRow" ? C : s;
|
|
15548
15548
|
return re === C && r.parser.lazy[r.now().line] ? n(S) : re(S);
|
|
15549
15549
|
}
|
|
15550
15550
|
function s(S) {
|
|
@@ -15566,27 +15566,27 @@ function bx(e, t, n) {
|
|
|
15566
15566
|
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(S) : (e.enter("tableDelimiterRow"), i = !1, oe(S) ? se(e, g, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(S) : g(S));
|
|
15567
15567
|
}
|
|
15568
15568
|
function g(S) {
|
|
15569
|
-
return S === 45 || S === 58 ? v(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), k) :
|
|
15569
|
+
return S === 45 || S === 58 ? v(S) : S === 124 ? (i = !0, e.enter("tableCellDivider"), e.consume(S), e.exit("tableCellDivider"), k) : F(S);
|
|
15570
15570
|
}
|
|
15571
15571
|
function k(S) {
|
|
15572
15572
|
return oe(S) ? se(e, v, "whitespace")(S) : v(S);
|
|
15573
15573
|
}
|
|
15574
15574
|
function v(S) {
|
|
15575
|
-
return S === 58 ? (l += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), w) : S === 45 ? (l += 1, w(S)) : S === null || Y(S) ?
|
|
15575
|
+
return S === 58 ? (l += 1, i = !0, e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), w) : S === 45 ? (l += 1, w(S)) : S === null || Y(S) ? O(S) : F(S);
|
|
15576
15576
|
}
|
|
15577
15577
|
function w(S) {
|
|
15578
|
-
return S === 45 ? (e.enter("tableDelimiterFiller"), E(S)) :
|
|
15578
|
+
return S === 45 ? (e.enter("tableDelimiterFiller"), E(S)) : F(S);
|
|
15579
15579
|
}
|
|
15580
15580
|
function E(S) {
|
|
15581
15581
|
return S === 45 ? (e.consume(S), E) : S === 58 ? (i = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(S), e.exit("tableDelimiterMarker"), _) : (e.exit("tableDelimiterFiller"), _(S));
|
|
15582
15582
|
}
|
|
15583
15583
|
function _(S) {
|
|
15584
|
-
return oe(S) ? se(e,
|
|
15584
|
+
return oe(S) ? se(e, O, "whitespace")(S) : O(S);
|
|
15585
15585
|
}
|
|
15586
|
-
function
|
|
15587
|
-
return S === 124 ? g(S) : S === null || Y(S) ? !i || o !== l ?
|
|
15586
|
+
function O(S) {
|
|
15587
|
+
return S === 124 ? g(S) : S === null || Y(S) ? !i || o !== l ? F(S) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(S)) : F(S);
|
|
15588
15588
|
}
|
|
15589
|
-
function
|
|
15589
|
+
function F(S) {
|
|
15590
15590
|
return n(S);
|
|
15591
15591
|
}
|
|
15592
15592
|
function C(S) {
|
|
@@ -15753,8 +15753,8 @@ function qx() {
|
|
|
15753
15753
|
return typeof window < "u" && typeof window.matchMedia == "function" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
15754
15754
|
}
|
|
15755
15755
|
function _x(e, t = !0) {
|
|
15756
|
-
const [n, r] =
|
|
15757
|
-
return
|
|
15756
|
+
const [n, r] = Ae(0), o = Xe(qx());
|
|
15757
|
+
return vt(() => {
|
|
15758
15758
|
if (!t || o.current) {
|
|
15759
15759
|
r(e.length);
|
|
15760
15760
|
return;
|
|
@@ -15818,8 +15818,8 @@ class Jt extends Error {
|
|
|
15818
15818
|
super(n), this.name = "ServerError", this.status = t, this.response = r;
|
|
15819
15819
|
}
|
|
15820
15820
|
}
|
|
15821
|
-
const
|
|
15822
|
-
class
|
|
15821
|
+
const Mx = "x-elo-chat-token", Ql = "x-elo-chat-token-renewed";
|
|
15822
|
+
class kk {
|
|
15823
15823
|
baseURL;
|
|
15824
15824
|
appId;
|
|
15825
15825
|
region = null;
|
|
@@ -15840,7 +15840,7 @@ class Ak {
|
|
|
15840
15840
|
return {
|
|
15841
15841
|
"ELO-APP-ID": this.appId,
|
|
15842
15842
|
...this.region ? { "X-Region": this.region } : {},
|
|
15843
|
-
...this.chatToken ? { [
|
|
15843
|
+
...this.chatToken ? { [Mx]: this.chatToken } : {}
|
|
15844
15844
|
};
|
|
15845
15845
|
}
|
|
15846
15846
|
async request(t, n = {}) {
|
|
@@ -15934,7 +15934,7 @@ class Ak {
|
|
|
15934
15934
|
return r;
|
|
15935
15935
|
}
|
|
15936
15936
|
}
|
|
15937
|
-
async function
|
|
15937
|
+
async function Ox(e) {
|
|
15938
15938
|
try {
|
|
15939
15939
|
return [await e, null];
|
|
15940
15940
|
} catch (t) {
|
|
@@ -15944,7 +15944,7 @@ async function Mx(e) {
|
|
|
15944
15944
|
class xr extends Error {
|
|
15945
15945
|
name = "AttachmentUploadError";
|
|
15946
15946
|
}
|
|
15947
|
-
function
|
|
15947
|
+
function Sk(e, t) {
|
|
15948
15948
|
return e instanceof Jt ? e.status === 413 ? new xr(`${t} is too large.`) : e.status === 415 ? new xr(
|
|
15949
15949
|
`${t} isn't a supported file type.`
|
|
15950
15950
|
) : e.status === 403 || e.status >= 500 ? new xr(Ru) : e : e;
|
|
@@ -15983,26 +15983,26 @@ function Fx(e, t) {
|
|
|
15983
15983
|
function Bx(e, t) {
|
|
15984
15984
|
return e instanceof xr ? e.message : t.length > 0 ? Ru : null;
|
|
15985
15985
|
}
|
|
15986
|
-
function
|
|
15986
|
+
function vk(e, t) {
|
|
15987
15987
|
return e.map((n, r) => ({
|
|
15988
15988
|
...n,
|
|
15989
15989
|
displayUrl: t[r].previewUrl
|
|
15990
15990
|
}));
|
|
15991
15991
|
}
|
|
15992
|
-
function
|
|
15992
|
+
function Ck(e, t, n) {
|
|
15993
15993
|
return Promise.all(
|
|
15994
15994
|
n.map(
|
|
15995
15995
|
(r) => Hx(e, t, r)
|
|
15996
15996
|
)
|
|
15997
15997
|
);
|
|
15998
15998
|
}
|
|
15999
|
-
function
|
|
15999
|
+
function Ak(e) {
|
|
16000
16000
|
return Pu(e).length > 0;
|
|
16001
16001
|
}
|
|
16002
16002
|
function Ux(e) {
|
|
16003
16003
|
return e.displayUrl ? e.displayUrl : Lu(e.url) ? void 0 : e.url;
|
|
16004
16004
|
}
|
|
16005
|
-
function
|
|
16005
|
+
function Ek(e) {
|
|
16006
16006
|
for (const t of e)
|
|
16007
16007
|
for (const n of t.attachments ?? [])
|
|
16008
16008
|
n.displayUrl && URL.revokeObjectURL(n.displayUrl);
|
|
@@ -16016,7 +16016,7 @@ function Lu(e) {
|
|
|
16016
16016
|
async function Hx(e, t, n) {
|
|
16017
16017
|
const r = Pu(n);
|
|
16018
16018
|
if (r.length === 0) return n;
|
|
16019
|
-
const [o, l] = await
|
|
16019
|
+
const [o, l] = await Ox(
|
|
16020
16020
|
e.getAttachmentUrls(t, r)
|
|
16021
16021
|
);
|
|
16022
16022
|
if (!o)
|
|
@@ -16086,8 +16086,8 @@ function $x({
|
|
|
16086
16086
|
}
|
|
16087
16087
|
) : /* @__PURE__ */ x("span", { className: "eloq:h-full eloq:w-full eloq:bg-muted eloq:animate-pulse" });
|
|
16088
16088
|
return /* @__PURE__ */ Z("li", { className: Du, title: e, children: [
|
|
16089
|
-
t && n === null ? /* @__PURE__ */ x(
|
|
16090
|
-
n !== null && /* @__PURE__ */ x(
|
|
16089
|
+
t && n === null ? /* @__PURE__ */ x(Mu, { href: t, children: r }) : r,
|
|
16090
|
+
n !== null && /* @__PURE__ */ x(Ou, { name: e, progress: n })
|
|
16091
16091
|
] });
|
|
16092
16092
|
}
|
|
16093
16093
|
function Wx({
|
|
@@ -16100,11 +16100,11 @@ function Wx({
|
|
|
16100
16100
|
/* @__PURE__ */ x("span", { className: "eloq:sr-only", children: e })
|
|
16101
16101
|
] });
|
|
16102
16102
|
return /* @__PURE__ */ Z("li", { className: `${Du} eloq:bg-muted`, title: e, children: [
|
|
16103
|
-
t && n === null ? /* @__PURE__ */ x(
|
|
16104
|
-
n !== null && /* @__PURE__ */ x(
|
|
16103
|
+
t && n === null ? /* @__PURE__ */ x(Mu, { href: t, children: r }) : r,
|
|
16104
|
+
n !== null && /* @__PURE__ */ x(Ou, { name: e, progress: n })
|
|
16105
16105
|
] });
|
|
16106
16106
|
}
|
|
16107
|
-
function
|
|
16107
|
+
function Mu({ href: e, children: t }) {
|
|
16108
16108
|
return /* @__PURE__ */ x(
|
|
16109
16109
|
"a",
|
|
16110
16110
|
{
|
|
@@ -16116,7 +16116,7 @@ function Ou({ href: e, children: t }) {
|
|
|
16116
16116
|
}
|
|
16117
16117
|
);
|
|
16118
16118
|
}
|
|
16119
|
-
function
|
|
16119
|
+
function Ou({ name: e, progress: t }) {
|
|
16120
16120
|
const n = Math.round(t * 100);
|
|
16121
16121
|
return /* @__PURE__ */ x(
|
|
16122
16122
|
"div",
|
|
@@ -16137,69 +16137,49 @@ function Mu({ name: e, progress: t }) {
|
|
|
16137
16137
|
}
|
|
16138
16138
|
);
|
|
16139
16139
|
}
|
|
16140
|
-
const Gx = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:animate-thinking-dot eloq:motion-reduce:animate-none eloq:motion-reduce:opacity-70"
|
|
16141
|
-
function Jx(e) {
|
|
16142
|
-
let t = e.length;
|
|
16143
|
-
for (; t > 0 && e.charCodeAt(t - 1) === 46; )
|
|
16144
|
-
t--;
|
|
16145
|
-
return e.slice(0, t);
|
|
16146
|
-
}
|
|
16140
|
+
const Gx = "eloq:h-[0.42em] eloq:w-[0.42em] eloq:rounded-full eloq:bg-gray-400 eloq:dark:bg-gray-200 eloq:animate-thinking-dot eloq:motion-reduce:animate-none eloq:motion-reduce:opacity-70";
|
|
16147
16141
|
function Zl({
|
|
16148
16142
|
messageData: e,
|
|
16149
16143
|
isBot: t,
|
|
16150
16144
|
isSibling: n
|
|
16151
16145
|
}) {
|
|
16152
16146
|
const r = ei(), { onMessageClick: o, highlightedMessageId: l } = nn(), i = l != null && l === e.id, a = Xe(null);
|
|
16153
|
-
|
|
16147
|
+
vt(() => {
|
|
16154
16148
|
if (!i) return;
|
|
16155
|
-
const
|
|
16149
|
+
const v = window.matchMedia?.(
|
|
16156
16150
|
"(prefers-reduced-motion: reduce)"
|
|
16157
16151
|
).matches;
|
|
16158
16152
|
a.current?.scrollIntoView?.({
|
|
16159
16153
|
block: "nearest",
|
|
16160
|
-
behavior:
|
|
16154
|
+
behavior: v ? "auto" : "smooth"
|
|
16161
16155
|
});
|
|
16162
16156
|
}, [i]);
|
|
16163
16157
|
const s = te({
|
|
16164
16158
|
[r.botBubbleColor]: e.sender === "assistant",
|
|
16165
16159
|
[r.userBubbleColor]: e.sender === "user"
|
|
16166
|
-
}), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || Ai(s), c = e.
|
|
16167
|
-
|
|
16168
|
-
|
|
16169
|
-
|
|
16170
|
-
return;
|
|
16171
|
-
}
|
|
16172
|
-
const M = setTimeout(
|
|
16173
|
-
() => k(!0),
|
|
16174
|
-
Yx
|
|
16175
|
-
);
|
|
16176
|
-
return () => clearTimeout(M);
|
|
16177
|
-
}, [c]);
|
|
16178
|
-
const v = Xx.has(
|
|
16179
|
-
Jx(e.content)
|
|
16180
|
-
), w = !!(t && e.isThinking), E = w && !c && !v, _ = _x(
|
|
16181
|
-
E ? e.content.replace(Kx, "Thinking") : "",
|
|
16182
|
-
E
|
|
16183
|
-
), z = () => w ? g ? /* @__PURE__ */ Z("div", { className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in", children: [
|
|
16160
|
+
}), f = (e.sender === "assistant" ? r.botBubbleTextColor : r.userBubbleTextColor) || Ai(s), c = e.attachments ?? [], d = e.type === "image" || e.content !== "" || c.length === 0, p = !!(t && e.isThinking), g = _x(
|
|
16161
|
+
p ? e.content : "",
|
|
16162
|
+
p
|
|
16163
|
+
), k = () => p ? /* @__PURE__ */ Z("div", { className: "eloq:ml-1 eloq:flex eloq:items-center eloq:gap-2 eloq:animate-message-in", children: [
|
|
16184
16164
|
/* @__PURE__ */ x(
|
|
16185
16165
|
"span",
|
|
16186
16166
|
{
|
|
16187
16167
|
className: "eloq:flex eloq:h-5 eloq:items-center eloq:gap-[0.25em] eloq:rounded-2xl eloq:px-[12px] eloq:py-[8px] eloq:text-sm eloq:box-content",
|
|
16188
16168
|
style: { backgroundColor: r.botBubbleColor },
|
|
16189
|
-
children: [0, 150, 300].map((
|
|
16169
|
+
children: [0, 150, 300].map((v) => /* @__PURE__ */ x(
|
|
16190
16170
|
"span",
|
|
16191
16171
|
{
|
|
16192
16172
|
className: Gx,
|
|
16193
|
-
style: { animationDelay: `${
|
|
16173
|
+
style: { animationDelay: `${v}ms` }
|
|
16194
16174
|
},
|
|
16195
|
-
|
|
16175
|
+
v
|
|
16196
16176
|
))
|
|
16197
16177
|
}
|
|
16198
16178
|
),
|
|
16199
|
-
|
|
16179
|
+
g && // Outside the bubble, on the panel background. Same wave as the
|
|
16200
16180
|
// dots, swept through the glyphs.
|
|
16201
|
-
/* @__PURE__ */ x("span", { className: "eloq-thinking-shimmer eloq:text-sm eloq:font-medium eloq:animate-thinking-shimmer eloq:motion-reduce:animate-none", children:
|
|
16202
|
-
] }) :
|
|
16181
|
+
/* @__PURE__ */ x("span", { className: "eloq-thinking-shimmer eloq:text-sm eloq:font-medium eloq:animate-thinking-shimmer eloq:motion-reduce:animate-none", children: g })
|
|
16182
|
+
] }) : /* @__PURE__ */ Z(
|
|
16203
16183
|
"div",
|
|
16204
16184
|
{
|
|
16205
16185
|
className: te(
|
|
@@ -16210,7 +16190,7 @@ function Zl({
|
|
|
16210
16190
|
role: o && !e.isWelcomeMessage ? "button" : void 0,
|
|
16211
16191
|
tabIndex: 0,
|
|
16212
16192
|
children: [
|
|
16213
|
-
|
|
16193
|
+
d && /* @__PURE__ */ x(
|
|
16214
16194
|
"div",
|
|
16215
16195
|
{
|
|
16216
16196
|
"data-highlighted": i || void 0,
|
|
@@ -16249,7 +16229,7 @@ function Zl({
|
|
|
16249
16229
|
) : /* @__PURE__ */ x("div", { className: "typewriter prose eloq:text-left eloq-wrap-anywhere", children: /* @__PURE__ */ x(Ex, { text: e.content }) })
|
|
16250
16230
|
}
|
|
16251
16231
|
),
|
|
16252
|
-
|
|
16232
|
+
c.length > 0 && /* @__PURE__ */ x(jx, { attachments: c })
|
|
16253
16233
|
]
|
|
16254
16234
|
}
|
|
16255
16235
|
);
|
|
@@ -16270,7 +16250,7 @@ function Zl({
|
|
|
16270
16250
|
"eloq:max-w-[75%]": !t,
|
|
16271
16251
|
"eloq:max-w-full": n
|
|
16272
16252
|
}),
|
|
16273
|
-
children:
|
|
16253
|
+
children: k()
|
|
16274
16254
|
}
|
|
16275
16255
|
)
|
|
16276
16256
|
]
|
|
@@ -16292,7 +16272,7 @@ const zu = "eloq:p-4 eloq:flex eloq:flex-row eloq:items-center eloq:justify-betw
|
|
|
16292
16272
|
"eloq:rounded-2xl eloq:border": !t
|
|
16293
16273
|
}
|
|
16294
16274
|
);
|
|
16295
|
-
function
|
|
16275
|
+
function Yx({
|
|
16296
16276
|
className: e,
|
|
16297
16277
|
message: t,
|
|
16298
16278
|
nextMessage: n,
|
|
@@ -16382,12 +16362,12 @@ function Qx({
|
|
|
16382
16362
|
o
|
|
16383
16363
|
);
|
|
16384
16364
|
}
|
|
16385
|
-
function
|
|
16365
|
+
function Xx({
|
|
16386
16366
|
value: e,
|
|
16387
16367
|
onChange: t,
|
|
16388
16368
|
disabled: n = !1
|
|
16389
16369
|
}) {
|
|
16390
|
-
const [r, o] =
|
|
16370
|
+
const [r, o] = Ae(0), l = r || e;
|
|
16391
16371
|
return /* @__PURE__ */ x(
|
|
16392
16372
|
"div",
|
|
16393
16373
|
{
|
|
@@ -16420,16 +16400,16 @@ function Zx({
|
|
|
16420
16400
|
}
|
|
16421
16401
|
);
|
|
16422
16402
|
}
|
|
16423
|
-
function
|
|
16424
|
-
const [t, n] =
|
|
16403
|
+
function Kx({ onRate: e }) {
|
|
16404
|
+
const [t, n] = Ae(0), [r, o] = Ae(!1);
|
|
16425
16405
|
return /* @__PURE__ */ x("div", { className: "eloq:flex eloq:justify-center eloq:pt-2 eloq:pb-2", children: /* @__PURE__ */ Z("div", { className: "eloq:rounded-2xl eloq:bg-muted eloq:px-4 eloq:py-3 eloq:flex eloq:flex-col eloq:items-center eloq:gap-1.5", children: [
|
|
16426
16406
|
/* @__PURE__ */ x("p", { className: "eloq:text-sm eloq:font-medium eloq:text-foreground", children: r ? "Thanks for your feedback!" : "How was your experience" }),
|
|
16427
|
-
/* @__PURE__ */ x(
|
|
16407
|
+
/* @__PURE__ */ x(Xx, { value: t, onChange: (i) => {
|
|
16428
16408
|
n(i), o(!0), e(i);
|
|
16429
16409
|
} })
|
|
16430
16410
|
] }) });
|
|
16431
16411
|
}
|
|
16432
|
-
const
|
|
16412
|
+
const Jx = Ar(null), Qx = {
|
|
16433
16413
|
isVisible: !1,
|
|
16434
16414
|
content: null,
|
|
16435
16415
|
showCognition: () => {
|
|
@@ -16437,11 +16417,11 @@ const tw = Ar(null), nw = {
|
|
|
16437
16417
|
hideCognition: () => {
|
|
16438
16418
|
}
|
|
16439
16419
|
};
|
|
16440
|
-
function
|
|
16441
|
-
return Er(
|
|
16420
|
+
function Zx() {
|
|
16421
|
+
return Er(Jx) ?? Qx;
|
|
16442
16422
|
}
|
|
16443
|
-
function
|
|
16444
|
-
const e = nn(), t =
|
|
16423
|
+
function ew() {
|
|
16424
|
+
const e = nn(), t = Zx(), n = Xe(null), r = Xe(!0), o = Xe(0), [l, i] = Ae(!1), [a, s] = Ae(!1), u = (p) => p.scrollHeight - p.scrollTop <= p.clientHeight + 60, f = (p) => {
|
|
16445
16425
|
const g = p.target;
|
|
16446
16426
|
u(g) ? (i(!1), s(!1)) : (i(!0), s(!0));
|
|
16447
16427
|
}, c = wa((p = "smooth") => {
|
|
@@ -16453,16 +16433,16 @@ function ow() {
|
|
|
16453
16433
|
});
|
|
16454
16434
|
}
|
|
16455
16435
|
}, []);
|
|
16456
|
-
|
|
16436
|
+
vt(() => {
|
|
16457
16437
|
const p = e.messages?.length ?? 0, g = p < o.current;
|
|
16458
16438
|
o.current = p, r.current ? (c("instant"), r.current = !1) : g ? (i(!1), s(!1), c("instant")) : a || c();
|
|
16459
|
-
}, [e.messages, a, c]),
|
|
16439
|
+
}, [e.messages, a, c]), vt(() => {
|
|
16460
16440
|
if (!e.isChatClosed) return;
|
|
16461
16441
|
const p = setTimeout(() => {
|
|
16462
16442
|
c("smooth");
|
|
16463
16443
|
}, 500);
|
|
16464
16444
|
return () => clearTimeout(p);
|
|
16465
|
-
}, [e.isChatClosed, c]),
|
|
16445
|
+
}, [e.isChatClosed, c]), vt(() => {
|
|
16466
16446
|
const p = n.current?.querySelector(
|
|
16467
16447
|
"div.chat-interface-body"
|
|
16468
16448
|
);
|
|
@@ -16496,7 +16476,7 @@ function ow() {
|
|
|
16496
16476
|
const v = Array.isArray(p) ? p.map((E) => E.id).join("-") : p.id;
|
|
16497
16477
|
if (!Array.isArray(p) && p.isRatingRequest)
|
|
16498
16478
|
return /* @__PURE__ */ x(
|
|
16499
|
-
|
|
16479
|
+
Kx,
|
|
16500
16480
|
{
|
|
16501
16481
|
onRate: (E) => e.onRateChat?.(E)
|
|
16502
16482
|
},
|
|
@@ -16504,7 +16484,7 @@ function ow() {
|
|
|
16504
16484
|
);
|
|
16505
16485
|
const w = e.suggestedMessages && !!e.suggestedMessageTexts?.length && !e.messages?.some((E) => E.sender === "user");
|
|
16506
16486
|
return /* @__PURE__ */ x(
|
|
16507
|
-
|
|
16487
|
+
Yx,
|
|
16508
16488
|
{
|
|
16509
16489
|
message: p,
|
|
16510
16490
|
nextMessage: k[g + 1],
|
|
@@ -16536,10 +16516,10 @@ function ea(e, t) {
|
|
|
16536
16516
|
for (var n = 0, r = Array(t); n < t; n++) r[n] = e[n];
|
|
16537
16517
|
return r;
|
|
16538
16518
|
}
|
|
16539
|
-
function
|
|
16519
|
+
function tw(e) {
|
|
16540
16520
|
if (Array.isArray(e)) return e;
|
|
16541
16521
|
}
|
|
16542
|
-
function
|
|
16522
|
+
function nw(e, t) {
|
|
16543
16523
|
var n = e == null ? null : typeof Symbol < "u" && e[Symbol.iterator] || e["@@iterator"];
|
|
16544
16524
|
if (n != null) {
|
|
16545
16525
|
var r, o, l, i, a = [], s = !0, u = !1;
|
|
@@ -16557,24 +16537,24 @@ function lw(e, t) {
|
|
|
16557
16537
|
return a;
|
|
16558
16538
|
}
|
|
16559
16539
|
}
|
|
16560
|
-
function
|
|
16540
|
+
function rw() {
|
|
16561
16541
|
throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
16562
16542
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
16563
16543
|
}
|
|
16564
16544
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
16565
|
-
function
|
|
16566
|
-
return
|
|
16545
|
+
function ow(e, t) {
|
|
16546
|
+
return tw(e) || nw(e, t) || iw(e, t) || rw();
|
|
16567
16547
|
}
|
|
16568
|
-
function
|
|
16548
|
+
function iw(e, t) {
|
|
16569
16549
|
if (e) {
|
|
16570
16550
|
if (typeof e == "string") return ea(e, t);
|
|
16571
16551
|
var n = {}.toString.call(e).slice(8, -1);
|
|
16572
16552
|
return n === "Object" && e.constructor && (n = e.constructor.name), n === "Map" || n === "Set" ? Array.from(e) : n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n) ? ea(e, t) : void 0;
|
|
16573
16553
|
}
|
|
16574
16554
|
}
|
|
16575
|
-
const Hu = Object.entries, ta = Object.setPrototypeOf,
|
|
16576
|
-
let
|
|
16577
|
-
|
|
16555
|
+
const Hu = Object.entries, ta = Object.setPrototypeOf, lw = Object.isFrozen, ju = Object.getPrototypeOf, Vu = Object.getOwnPropertyDescriptor;
|
|
16556
|
+
let Ce = Object.freeze, _e = Object.seal, bn = Object.create, $u = typeof Reflect < "u" && Reflect, Vo = $u.apply, $o = $u.construct;
|
|
16557
|
+
Ce || (Ce = function(t) {
|
|
16578
16558
|
return t;
|
|
16579
16559
|
});
|
|
16580
16560
|
_e || (_e = function(t) {
|
|
@@ -16588,7 +16568,7 @@ $o || ($o = function(t) {
|
|
|
16588
16568
|
for (var n = arguments.length, r = new Array(n > 1 ? n - 1 : 0), o = 1; o < n; o++) r[o - 1] = arguments[o];
|
|
16589
16569
|
return new t(...r);
|
|
16590
16570
|
});
|
|
16591
|
-
const
|
|
16571
|
+
const wt = ge(Array.prototype.forEach), aw = ge(Array.prototype.lastIndexOf), na = ge(Array.prototype.pop), Pn = ge(Array.prototype.push), sw = ge(Array.prototype.slice), uw = ge(Array.prototype.splice), yn = Array.isArray, mo = Wu(Set), go = ge(Set.prototype.add), Dn = ge(Set.prototype.has), Kt = ge(String.prototype.toLowerCase), bo = ge(String.prototype.toString), ra = ge(String.prototype.match), Mn = ge(String.prototype.replace), oa = ge(String.prototype.indexOf), cw = ge(String.prototype.trim), fw = ge(Number.prototype.toString), pw = ge(Boolean.prototype.toString), ia = typeof BigInt > "u" ? null : ge(BigInt.prototype.toString), la = typeof Symbol > "u" ? null : ge(Symbol.prototype.toString), He = ge(Object.prototype.hasOwnProperty), On = ge(Object.prototype.toString), qe = ge(RegExp.prototype.test), kt = Wu(TypeError);
|
|
16592
16572
|
function ge(e) {
|
|
16593
16573
|
return function(t) {
|
|
16594
16574
|
t instanceof RegExp && (t.lastIndex = 0);
|
|
@@ -16610,51 +16590,51 @@ function ue(e, t) {
|
|
|
16610
16590
|
let o = t[r];
|
|
16611
16591
|
if (typeof o == "string") {
|
|
16612
16592
|
const l = n(o);
|
|
16613
|
-
l !== o && (
|
|
16593
|
+
l !== o && (lw(t) || (t[r] = l), o = l);
|
|
16614
16594
|
}
|
|
16615
16595
|
e[o] = !0;
|
|
16616
16596
|
}
|
|
16617
16597
|
return e;
|
|
16618
16598
|
}
|
|
16619
|
-
function
|
|
16599
|
+
function dw(e) {
|
|
16620
16600
|
for (let t = 0; t < e.length; t++) He(e, t) || (e[t] = null);
|
|
16621
16601
|
return e;
|
|
16622
16602
|
}
|
|
16623
16603
|
function Ye(e) {
|
|
16624
16604
|
const t = bn(null);
|
|
16625
16605
|
for (const r of Hu(e)) {
|
|
16626
|
-
var n =
|
|
16606
|
+
var n = ow(r, 2);
|
|
16627
16607
|
const o = n[0], l = n[1];
|
|
16628
|
-
He(e, o) && (yn(l) ? t[o] =
|
|
16608
|
+
He(e, o) && (yn(l) ? t[o] = dw(l) : l && typeof l == "object" && l.constructor === Object ? t[o] = Ye(l) : t[o] = l);
|
|
16629
16609
|
}
|
|
16630
16610
|
return t;
|
|
16631
16611
|
}
|
|
16632
|
-
function
|
|
16612
|
+
function hw(e) {
|
|
16633
16613
|
switch (typeof e) {
|
|
16634
16614
|
case "string":
|
|
16635
16615
|
return e;
|
|
16636
16616
|
case "number":
|
|
16637
|
-
return
|
|
16617
|
+
return fw(e);
|
|
16638
16618
|
case "boolean":
|
|
16639
|
-
return
|
|
16619
|
+
return pw(e);
|
|
16640
16620
|
case "bigint":
|
|
16641
16621
|
return ia ? ia(e) : "0";
|
|
16642
16622
|
case "symbol":
|
|
16643
16623
|
return la ? la(e) : "Symbol()";
|
|
16644
16624
|
case "undefined":
|
|
16645
|
-
return
|
|
16625
|
+
return On(e);
|
|
16646
16626
|
case "function":
|
|
16647
16627
|
case "object": {
|
|
16648
|
-
if (e === null) return
|
|
16628
|
+
if (e === null) return On(e);
|
|
16649
16629
|
const t = e, n = tt(t, "toString");
|
|
16650
16630
|
if (typeof n == "function") {
|
|
16651
16631
|
const r = n(t);
|
|
16652
|
-
return typeof r == "string" ? r :
|
|
16632
|
+
return typeof r == "string" ? r : On(r);
|
|
16653
16633
|
}
|
|
16654
|
-
return
|
|
16634
|
+
return On(e);
|
|
16655
16635
|
}
|
|
16656
16636
|
default:
|
|
16657
|
-
return
|
|
16637
|
+
return On(e);
|
|
16658
16638
|
}
|
|
16659
16639
|
}
|
|
16660
16640
|
function tt(e, t) {
|
|
@@ -16671,7 +16651,7 @@ function tt(e, t) {
|
|
|
16671
16651
|
}
|
|
16672
16652
|
return n;
|
|
16673
16653
|
}
|
|
16674
|
-
function
|
|
16654
|
+
function mw(e, t) {
|
|
16675
16655
|
for (; e !== null; ) {
|
|
16676
16656
|
const n = Vu(e, t);
|
|
16677
16657
|
if (n) return n.get ? ge(n.get) : null;
|
|
@@ -16679,14 +16659,14 @@ function xw(e, t) {
|
|
|
16679
16659
|
}
|
|
16680
16660
|
return null;
|
|
16681
16661
|
}
|
|
16682
|
-
function
|
|
16662
|
+
function gw(e) {
|
|
16683
16663
|
try {
|
|
16684
16664
|
return qe(e, ""), !0;
|
|
16685
16665
|
} catch {
|
|
16686
16666
|
return !1;
|
|
16687
16667
|
}
|
|
16688
16668
|
}
|
|
16689
|
-
const aa =
|
|
16669
|
+
const aa = Ce([
|
|
16690
16670
|
"a",
|
|
16691
16671
|
"abbr",
|
|
16692
16672
|
"acronym",
|
|
@@ -16806,7 +16786,7 @@ const aa = Ae([
|
|
|
16806
16786
|
"var",
|
|
16807
16787
|
"video",
|
|
16808
16788
|
"wbr"
|
|
16809
|
-
]), yo =
|
|
16789
|
+
]), yo = Ce([
|
|
16810
16790
|
"svg",
|
|
16811
16791
|
"a",
|
|
16812
16792
|
"altglyph",
|
|
@@ -16854,7 +16834,7 @@ const aa = Ae([
|
|
|
16854
16834
|
"tspan",
|
|
16855
16835
|
"view",
|
|
16856
16836
|
"vkern"
|
|
16857
|
-
]), xo =
|
|
16837
|
+
]), xo = Ce([
|
|
16858
16838
|
"feBlend",
|
|
16859
16839
|
"feColorMatrix",
|
|
16860
16840
|
"feComponentTransfer",
|
|
@@ -16880,7 +16860,7 @@ const aa = Ae([
|
|
|
16880
16860
|
"feSpotLight",
|
|
16881
16861
|
"feTile",
|
|
16882
16862
|
"feTurbulence"
|
|
16883
|
-
]),
|
|
16863
|
+
]), bw = Ce([
|
|
16884
16864
|
"animate",
|
|
16885
16865
|
"color-profile",
|
|
16886
16866
|
"cursor",
|
|
@@ -16903,7 +16883,7 @@ const aa = Ae([
|
|
|
16903
16883
|
"solidcolor",
|
|
16904
16884
|
"unknown",
|
|
16905
16885
|
"use"
|
|
16906
|
-
]), wo =
|
|
16886
|
+
]), wo = Ce([
|
|
16907
16887
|
"math",
|
|
16908
16888
|
"menclose",
|
|
16909
16889
|
"merror",
|
|
@@ -16934,7 +16914,7 @@ const aa = Ae([
|
|
|
16934
16914
|
"munder",
|
|
16935
16915
|
"munderover",
|
|
16936
16916
|
"mprescripts"
|
|
16937
|
-
]),
|
|
16917
|
+
]), yw = Ce([
|
|
16938
16918
|
"maction",
|
|
16939
16919
|
"maligngroup",
|
|
16940
16920
|
"malignmark",
|
|
@@ -16950,7 +16930,7 @@ const aa = Ae([
|
|
|
16950
16930
|
"annotation-xml",
|
|
16951
16931
|
"mprescripts",
|
|
16952
16932
|
"none"
|
|
16953
|
-
]), sa =
|
|
16933
|
+
]), sa = Ce(["#text"]), ua = Ce([
|
|
16954
16934
|
"accept",
|
|
16955
16935
|
"action",
|
|
16956
16936
|
"align",
|
|
@@ -17069,7 +17049,7 @@ const aa = Ae([
|
|
|
17069
17049
|
"width",
|
|
17070
17050
|
"wrap",
|
|
17071
17051
|
"xmlns"
|
|
17072
|
-
]), ko =
|
|
17052
|
+
]), ko = Ce([
|
|
17073
17053
|
"accent-height",
|
|
17074
17054
|
"accumulate",
|
|
17075
17055
|
"additive",
|
|
@@ -17262,7 +17242,7 @@ const aa = Ae([
|
|
|
17262
17242
|
"y2",
|
|
17263
17243
|
"z",
|
|
17264
17244
|
"zoomandpan"
|
|
17265
|
-
]), ca =
|
|
17245
|
+
]), ca = Ce([
|
|
17266
17246
|
"accent",
|
|
17267
17247
|
"accentunder",
|
|
17268
17248
|
"align",
|
|
@@ -17317,13 +17297,13 @@ const aa = Ae([
|
|
|
17317
17297
|
"voffset",
|
|
17318
17298
|
"width",
|
|
17319
17299
|
"xmlns"
|
|
17320
|
-
]), mr =
|
|
17300
|
+
]), mr = Ce([
|
|
17321
17301
|
"xlink:href",
|
|
17322
17302
|
"xml:id",
|
|
17323
17303
|
"xlink:title",
|
|
17324
17304
|
"xml:space",
|
|
17325
17305
|
"xmlns:xlink"
|
|
17326
|
-
]),
|
|
17306
|
+
]), xw = _e(/{{[\w\W]*|^[\w\W]*}}/g), ww = _e(/<%[\w\W]*|^[\w\W]*%>/g), kw = _e(/\${[\w\W]*/g), Sw = _e(/^data-[\-\w.\u00B7-\uFFFF]+$/), vw = _e(/^aria-[\-\w]+$/), fa = _e(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i), Cw = _e(/^(?:\w+script|data):/i), Aw = _e(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g), Ew = _e(/^html$/i), Tw = _e(/^[a-z][.\w]*(-[.\w]+)+$/i), So = _e(/<[/\w!]/g), pa = _e(/<[/\w]/g), qw = _e(/<\/no(script|embed|frames)/i), da = _e(/\/>/i), ye = {
|
|
17327
17307
|
element: 1,
|
|
17328
17308
|
attribute: 2,
|
|
17329
17309
|
text: 3,
|
|
@@ -17336,7 +17316,7 @@ const aa = Ae([
|
|
|
17336
17316
|
documentType: 10,
|
|
17337
17317
|
documentFragment: 11,
|
|
17338
17318
|
notation: 12
|
|
17339
|
-
},
|
|
17319
|
+
}, _w = Ce(ue({}, [
|
|
17340
17320
|
"style",
|
|
17341
17321
|
"script",
|
|
17342
17322
|
"xmp",
|
|
@@ -17345,9 +17325,9 @@ const aa = Ae([
|
|
|
17345
17325
|
"noframes",
|
|
17346
17326
|
"plaintext",
|
|
17347
17327
|
"noscript"
|
|
17348
|
-
])),
|
|
17328
|
+
])), Iw = function() {
|
|
17349
17329
|
return typeof window > "u" ? null : window;
|
|
17350
|
-
},
|
|
17330
|
+
}, Rw = function(t, n) {
|
|
17351
17331
|
if (typeof t != "object" || typeof t.createPolicy != "function") return null;
|
|
17352
17332
|
let r = null;
|
|
17353
17333
|
const o = "data-tt-policy-suffix";
|
|
@@ -17384,7 +17364,7 @@ const aa = Ae([
|
|
|
17384
17364
|
return o && typeof o == "object" ? Ye(o) : r();
|
|
17385
17365
|
};
|
|
17386
17366
|
function Gu() {
|
|
17387
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] :
|
|
17367
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : Iw();
|
|
17388
17368
|
const t = (I) => Gu(I);
|
|
17389
17369
|
if (t.version = "3.4.17", t.removed = [], !e || !e.document || e.document.nodeType !== ye.document || !e.Element)
|
|
17390
17370
|
return t.isSupported = !1, t;
|
|
@@ -17393,20 +17373,20 @@ function Gu() {
|
|
|
17393
17373
|
e.DocumentFragment;
|
|
17394
17374
|
const l = e.HTMLTemplateElement, i = e.Node, a = e.Element, s = e.NodeFilter;
|
|
17395
17375
|
e.NamedNodeMap === void 0 && (e.NamedNodeMap || e.MozNamedAttrMap), e.HTMLFormElement;
|
|
17396
|
-
const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"), _ = tt(c, "attributes"),
|
|
17397
|
-
return
|
|
17376
|
+
const u = e.DOMParser, f = e.trustedTypes, c = a.prototype, d = tt(c, "cloneNode"), p = tt(c, "remove"), g = tt(c, "removeAttributeNode"), k = tt(c, "nextSibling"), v = tt(c, "childNodes"), w = tt(c, "parentNode"), E = tt(c, "shadowRoot"), _ = tt(c, "attributes"), O = i && i.prototype ? tt(i.prototype, "nodeType") : null, F = i && i.prototype ? tt(i.prototype, "nodeName") : null, C = i && i.prototype ? tt(i.prototype, "ownerDocument") : null, B = function(h) {
|
|
17377
|
+
return O ? O(h) : h.nodeType;
|
|
17398
17378
|
}, N = function(h) {
|
|
17399
|
-
return
|
|
17400
|
-
}, W =
|
|
17379
|
+
return F ? F(h) : h.nodeName;
|
|
17380
|
+
}, W = mw(c, "namespaceURI"), S = function(h) {
|
|
17401
17381
|
return W ? W(h) : h.namespaceURI;
|
|
17402
17382
|
};
|
|
17403
17383
|
if (typeof l == "function") {
|
|
17404
17384
|
const I = n.createElement("template");
|
|
17405
17385
|
I.content && I.content.ownerDocument && (n = I.content.ownerDocument);
|
|
17406
17386
|
}
|
|
17407
|
-
let P,
|
|
17387
|
+
let P, z = "", re, V = !1, D = 0;
|
|
17408
17388
|
const J = function() {
|
|
17409
|
-
if (D > 0) throw
|
|
17389
|
+
if (D > 0) throw kt('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.');
|
|
17410
17390
|
}, ae = function(h) {
|
|
17411
17391
|
J(), D++;
|
|
17412
17392
|
try {
|
|
@@ -17422,11 +17402,11 @@ function Gu() {
|
|
|
17422
17402
|
D--;
|
|
17423
17403
|
}
|
|
17424
17404
|
}, Le = function() {
|
|
17425
|
-
return V || (re =
|
|
17426
|
-
}, m = n,
|
|
17405
|
+
return V || (re = Rw(f, o), V = !0), re;
|
|
17406
|
+
}, m = n, Se = m.implementation, Pe = m.createNodeIterator, b = m.createDocumentFragment, Te = m.getElementsByTagName, me = r.importNode;
|
|
17427
17407
|
let j = ha();
|
|
17428
|
-
t.isSupported = typeof Hu == "function" && typeof w == "function" &&
|
|
17429
|
-
const Je =
|
|
17408
|
+
t.isSupported = typeof Hu == "function" && typeof w == "function" && Se && Se.createHTMLDocument !== void 0;
|
|
17409
|
+
const Je = xw, $e = ww, ce = kw, it = Sw, lt = vw, qt = Cw, _t = Aw, It = Tw;
|
|
17430
17410
|
let vn = fa, fe = null;
|
|
17431
17411
|
const on = ue({}, [
|
|
17432
17412
|
...aa,
|
|
@@ -17476,7 +17456,7 @@ function Gu() {
|
|
|
17476
17456
|
value: null
|
|
17477
17457
|
}
|
|
17478
17458
|
}));
|
|
17479
|
-
let er = !0, Cn = !0, A = !1,
|
|
17459
|
+
let er = !0, Cn = !0, A = !1, M = !0, G = !1, Q = !0, le = !1, De = !1, Qe = null, ze = null, yt = !1, Ze = !1, ve = !1, at = !1, et = !0, Ei = !1;
|
|
17480
17460
|
const Ti = "user-content-";
|
|
17481
17461
|
let Lr = !0, Pr = !1, Vt = null, an = {}, $t = null;
|
|
17482
17462
|
const qi = ue({}, [
|
|
@@ -17533,20 +17513,20 @@ function Gu() {
|
|
|
17533
17513
|
"style",
|
|
17534
17514
|
"xmlns"
|
|
17535
17515
|
]), tr = "http://www.w3.org/1998/Math/MathML", nr = "http://www.w3.org/2000/svg", pt = "http://www.w3.org/1999/xhtml";
|
|
17536
|
-
let sn = pt, Dr = !1,
|
|
17516
|
+
let sn = pt, Dr = !1, Mr = null;
|
|
17537
17517
|
const rc = ue({}, [
|
|
17538
17518
|
tr,
|
|
17539
17519
|
nr,
|
|
17540
17520
|
pt
|
|
17541
|
-
], bo), Li =
|
|
17521
|
+
], bo), Li = Ce([
|
|
17542
17522
|
"mi",
|
|
17543
17523
|
"mo",
|
|
17544
17524
|
"mn",
|
|
17545
17525
|
"ms",
|
|
17546
17526
|
"mtext"
|
|
17547
17527
|
]);
|
|
17548
|
-
let
|
|
17549
|
-
const Pi =
|
|
17528
|
+
let Or = ue({}, Li);
|
|
17529
|
+
const Pi = Ce(["annotation-xml"]);
|
|
17550
17530
|
let zr = ue({}, Pi);
|
|
17551
17531
|
const oc = ue({}, [
|
|
17552
17532
|
"title",
|
|
@@ -17563,50 +17543,50 @@ function Gu() {
|
|
|
17563
17543
|
}, Fr = function() {
|
|
17564
17544
|
let h = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
17565
17545
|
if (un && un === h) return;
|
|
17566
|
-
(!h || typeof h != "object") && (h = {}), h = Ye(h), An = ic.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? lc : h.PARSER_MEDIA_TYPE, be = An === "application/xhtml+xml" ? bo : Kt, fe = Dt(h, "ALLOWED_TAGS", on, { transform: be }), he = Dt(h, "ALLOWED_ATTR", ln, { transform: be }),
|
|
17546
|
+
(!h || typeof h != "object") && (h = {}), h = Ye(h), An = ic.indexOf(h.PARSER_MEDIA_TYPE) === -1 ? lc : h.PARSER_MEDIA_TYPE, be = An === "application/xhtml+xml" ? bo : Kt, fe = Dt(h, "ALLOWED_TAGS", on, { transform: be }), he = Dt(h, "ALLOWED_ATTR", ln, { transform: be }), Mr = Dt(h, "ALLOWED_NAMESPACES", rc, { transform: bo }), Ri = Dt(h, "ADD_URI_SAFE_ATTR", Ni, {
|
|
17567
17547
|
transform: be,
|
|
17568
17548
|
base: Ni
|
|
17569
17549
|
}), _i = Dt(h, "ADD_DATA_URI_TAGS", Ii, {
|
|
17570
17550
|
transform: be,
|
|
17571
17551
|
base: Ii
|
|
17572
|
-
}), $t = Dt(h, "FORBID_CONTENTS", qi, { transform: be }), jt = Dt(h, "FORBID_TAGS", Ye({}), { transform: be }), Zn = Dt(h, "FORBID_ATTR", Ye({}), { transform: be }), an = He(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Ye(h.USE_PROFILES) : h.USE_PROFILES : !1, er = h.ALLOW_ARIA_ATTR !== !1, Cn = h.ALLOW_DATA_ATTR !== !1, A = h.ALLOW_UNKNOWN_PROTOCOLS || !1,
|
|
17552
|
+
}), $t = Dt(h, "FORBID_CONTENTS", qi, { transform: be }), jt = Dt(h, "FORBID_TAGS", Ye({}), { transform: be }), Zn = Dt(h, "FORBID_ATTR", Ye({}), { transform: be }), an = He(h, "USE_PROFILES") ? h.USE_PROFILES && typeof h.USE_PROFILES == "object" ? Ye(h.USE_PROFILES) : h.USE_PROFILES : !1, er = h.ALLOW_ARIA_ATTR !== !1, Cn = h.ALLOW_DATA_ATTR !== !1, A = h.ALLOW_UNKNOWN_PROTOCOLS || !1, M = h.ALLOW_SELF_CLOSE_IN_ATTR !== !1, G = h.SAFE_FOR_TEMPLATES || !1, Q = h.SAFE_FOR_XML !== !1, le = h.WHOLE_DOCUMENT || !1, Ze = h.RETURN_DOM || !1, ve = h.RETURN_DOM_FRAGMENT || !1, at = h.RETURN_TRUSTED_TYPE || !1, yt = h.FORCE_BODY || !1, et = h.SANITIZE_DOM !== !1, Ei = h.SANITIZE_NAMED_PROPS || !1, Lr = h.KEEP_CONTENT !== !1, Pr = h.IN_PLACE || !1, vn = gw(h.ALLOWED_URI_REGEXP) ? h.ALLOWED_URI_REGEXP : fa, sn = typeof h.NAMESPACE == "string" ? h.NAMESPACE : pt, Or = vo(h, "MATHML_TEXT_INTEGRATION_POINTS", () => ue({}, Li)), zr = vo(h, "HTML_INTEGRATION_POINTS", () => ue({}, Pi));
|
|
17573
17553
|
const y = vo(h, "CUSTOM_ELEMENT_HANDLING", () => bn(null));
|
|
17574
|
-
if (We = bn(null), He(y, "tagNameCheck") && Di(y.tagNameCheck) && (We.tagNameCheck = y.tagNameCheck), He(y, "attributeNameCheck") && Di(y.attributeNameCheck) && (We.attributeNameCheck = y.attributeNameCheck), He(y, "allowCustomizedBuiltInElements") && typeof y.allowCustomizedBuiltInElements == "boolean" && (We.allowCustomizedBuiltInElements = y.allowCustomizedBuiltInElements), _e(We), G && (Cn = !1),
|
|
17554
|
+
if (We = bn(null), He(y, "tagNameCheck") && Di(y.tagNameCheck) && (We.tagNameCheck = y.tagNameCheck), He(y, "attributeNameCheck") && Di(y.attributeNameCheck) && (We.attributeNameCheck = y.attributeNameCheck), He(y, "allowCustomizedBuiltInElements") && typeof y.allowCustomizedBuiltInElements == "boolean" && (We.allowCustomizedBuiltInElements = y.allowCustomizedBuiltInElements), _e(We), G && (Cn = !1), ve && (Ze = !0), an && (fe = ue({}, sa), he = bn(null), an.html === !0 && (ue(fe, aa), ue(he, ua)), an.svg === !0 && (ue(fe, yo), ue(he, ko), ue(he, mr)), an.svgFilters === !0 && (ue(fe, xo), ue(he, ko), ue(he, mr)), an.mathMl === !0 && (ue(fe, wo), ue(he, ca), ue(he, mr))), ft.tagCheck = null, ft.attributeCheck = null, He(h, "ADD_TAGS") && (typeof h.ADD_TAGS == "function" ? ft.tagCheck = h.ADD_TAGS : yn(h.ADD_TAGS) && (fe === on && (fe = Ye(fe)), ue(fe, h.ADD_TAGS, be))), He(h, "ADD_ATTR") && (typeof h.ADD_ATTR == "function" ? ft.attributeCheck = h.ADD_ATTR : yn(h.ADD_ATTR) && (he === ln && (he = Ye(he)), ue(he, h.ADD_ATTR, be))), He(h, "ADD_FORBID_CONTENTS") && yn(h.ADD_FORBID_CONTENTS) && ($t === qi && ($t = Ye($t)), ue($t, h.ADD_FORBID_CONTENTS, be)), Lr && (fe["#text"] = !0), le && ue(fe, [
|
|
17575
17555
|
"html",
|
|
17576
17556
|
"head",
|
|
17577
17557
|
"body"
|
|
17578
17558
|
]), fe.table && (ue(fe, ["tbody"]), delete jt.tbody), h.TRUSTED_TYPES_POLICY) {
|
|
17579
|
-
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function") throw
|
|
17580
|
-
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw
|
|
17559
|
+
if (typeof h.TRUSTED_TYPES_POLICY.createHTML != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
17560
|
+
if (typeof h.TRUSTED_TYPES_POLICY.createScriptURL != "function") throw kt('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');
|
|
17581
17561
|
const T = P;
|
|
17582
17562
|
P = h.TRUSTED_TYPES_POLICY;
|
|
17583
17563
|
try {
|
|
17584
|
-
|
|
17564
|
+
z = ae("");
|
|
17585
17565
|
} catch (q) {
|
|
17586
17566
|
throw P = T, q;
|
|
17587
17567
|
}
|
|
17588
|
-
} else h.TRUSTED_TYPES_POLICY === null ? (P = void 0,
|
|
17589
|
-
|
|
17590
|
-
},
|
|
17568
|
+
} else h.TRUSTED_TYPES_POLICY === null ? (P = void 0, z = "") : (P === void 0 && (P = Le()), P && typeof z == "string" && (z = ae("")));
|
|
17569
|
+
Ce && Ce(h), un = h;
|
|
17570
|
+
}, Mi = ue({}, [
|
|
17591
17571
|
...yo,
|
|
17592
17572
|
...xo,
|
|
17593
|
-
...
|
|
17594
|
-
]),
|
|
17595
|
-
return y.namespaceURI === pt ? h === "svg" : y.namespaceURI === tr ? h === "svg" && (T === "annotation-xml" ||
|
|
17573
|
+
...bw
|
|
17574
|
+
]), Oi = ue({}, [...wo, ...yw]), sc = function(h, y, T) {
|
|
17575
|
+
return y.namespaceURI === pt ? h === "svg" : y.namespaceURI === tr ? h === "svg" && (T === "annotation-xml" || Or[T]) : !!Mi[h];
|
|
17596
17576
|
}, uc = function(h, y, T) {
|
|
17597
|
-
return y.namespaceURI === pt ? h === "math" : y.namespaceURI === nr ? h === "math" && zr[T] : !!
|
|
17577
|
+
return y.namespaceURI === pt ? h === "math" : y.namespaceURI === nr ? h === "math" && zr[T] : !!Oi[h];
|
|
17598
17578
|
}, cc = function(h, y, T) {
|
|
17599
|
-
return y.namespaceURI === nr && !zr[T] || y.namespaceURI === tr && !
|
|
17579
|
+
return y.namespaceURI === nr && !zr[T] || y.namespaceURI === tr && !Or[T] ? !1 : !Oi[h] && (oc[h] || !Mi[h]);
|
|
17600
17580
|
}, fc = function(h) {
|
|
17601
17581
|
const y = S(h), T = Kt(N(h)), q = w(h);
|
|
17602
17582
|
let $, X;
|
|
17603
|
-
return q && B(q) === ye.element ? ($ = { namespaceURI: S(q) }, X = Kt(N(q))) : ($ = { namespaceURI: sn }, X = "template"),
|
|
17583
|
+
return q && B(q) === ye.element ? ($ = { namespaceURI: S(q) }, X = Kt(N(q))) : ($ = { namespaceURI: sn }, X = "template"), Mr[y] ? y === nr ? sc(T, $, X) : y === tr ? uc(T, $, X) : y === pt ? cc(T, $, X) : !!(An === "application/xhtml+xml" && Mr[y]) : !1;
|
|
17604
17584
|
}, Rt = function(h) {
|
|
17605
17585
|
Pn(t.removed, { element: h });
|
|
17606
17586
|
try {
|
|
17607
17587
|
w(h).removeChild(h);
|
|
17608
17588
|
} catch {
|
|
17609
|
-
if (p(h), !w(h)) throw
|
|
17589
|
+
if (p(h), !w(h)) throw kt("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place");
|
|
17610
17590
|
}
|
|
17611
17591
|
}, zi = function(h, y, T) {
|
|
17612
17592
|
try {
|
|
@@ -17620,7 +17600,7 @@ function Gu() {
|
|
|
17620
17600
|
}, Br = function(h) {
|
|
17621
17601
|
Hr(h);
|
|
17622
17602
|
const y = v(h);
|
|
17623
|
-
y &&
|
|
17603
|
+
y && wt(sw(y), (q) => {
|
|
17624
17604
|
try {
|
|
17625
17605
|
p(q);
|
|
17626
17606
|
} catch {
|
|
@@ -17650,7 +17630,7 @@ function Gu() {
|
|
|
17650
17630
|
}
|
|
17651
17631
|
}
|
|
17652
17632
|
if (h === "is")
|
|
17653
|
-
if (Ze ||
|
|
17633
|
+
if (Ze || ve) try {
|
|
17654
17634
|
Rt(y);
|
|
17655
17635
|
} catch {
|
|
17656
17636
|
}
|
|
@@ -17689,31 +17669,31 @@ function Gu() {
|
|
|
17689
17669
|
}, !0), y;
|
|
17690
17670
|
}, pc = function(h, y) {
|
|
17691
17671
|
const T = mo();
|
|
17692
|
-
|
|
17672
|
+
wt(jr(h), (q) => {
|
|
17693
17673
|
B(q) === ye.element && go(T, q);
|
|
17694
|
-
}),
|
|
17674
|
+
}), wt(y, (q) => {
|
|
17695
17675
|
B(q) === ye.element && !Dn(T, q) && Fi(q);
|
|
17696
17676
|
});
|
|
17697
17677
|
}, Bi = function(h, y) {
|
|
17698
17678
|
let T = !1;
|
|
17699
|
-
return
|
|
17679
|
+
return wt(t.removed, (q) => {
|
|
17700
17680
|
q.element && (T = T || q.element === h, Hr(q.element));
|
|
17701
17681
|
}), pc(h, y), T;
|
|
17702
17682
|
}, dc = 8, hc = function(h, y) {
|
|
17703
17683
|
const T = Vt;
|
|
17704
17684
|
let q = null;
|
|
17705
|
-
const $ = () => (q || (q = mo(),
|
|
17685
|
+
const $ = () => (q || (q = mo(), wt(y, (X) => {
|
|
17706
17686
|
go(q, X);
|
|
17707
17687
|
})), q);
|
|
17708
17688
|
for (let X = 0; ; X++) {
|
|
17709
17689
|
const ne = jr(h), we = [h];
|
|
17710
17690
|
let dt = !1;
|
|
17711
|
-
if (
|
|
17712
|
-
B(
|
|
17691
|
+
if (wt(ne, (Me) => {
|
|
17692
|
+
B(Me) === ye.documentFragment ? Pn(we, Me) : !dt && !Dn(T, Me) && (dt = Dn($(), Me));
|
|
17713
17693
|
}), !dt) return;
|
|
17714
|
-
if (X >= dc) throw
|
|
17715
|
-
|
|
17716
|
-
mc(
|
|
17694
|
+
if (X >= dc) throw kt("the tree kept changing during in-place sanitization; refusing to return it");
|
|
17695
|
+
wt(we, (Me, Fe) => {
|
|
17696
|
+
mc(Me, Fe > 0, h, $());
|
|
17717
17697
|
});
|
|
17718
17698
|
}
|
|
17719
17699
|
}, mc = function(h, y, T, q) {
|
|
@@ -17746,7 +17726,7 @@ function Gu() {
|
|
|
17746
17726
|
});
|
|
17747
17727
|
}, Hi = function(h) {
|
|
17748
17728
|
let y = null, T = null;
|
|
17749
|
-
if (
|
|
17729
|
+
if (yt) h = "<remove></remove>" + h;
|
|
17750
17730
|
else {
|
|
17751
17731
|
const X = ra(h, /^[\r\n\t ]+/);
|
|
17752
17732
|
T = X && X[0];
|
|
@@ -17758,9 +17738,9 @@ function Gu() {
|
|
|
17758
17738
|
} catch {
|
|
17759
17739
|
}
|
|
17760
17740
|
if (!y || !y.documentElement) {
|
|
17761
|
-
y =
|
|
17741
|
+
y = Se.createDocument(sn, "template", null);
|
|
17762
17742
|
try {
|
|
17763
|
-
y.documentElement.innerHTML = Dr ?
|
|
17743
|
+
y.documentElement.innerHTML = Dr ? z : q;
|
|
17764
17744
|
} catch {
|
|
17765
17745
|
}
|
|
17766
17746
|
}
|
|
@@ -17770,12 +17750,12 @@ function Gu() {
|
|
|
17770
17750
|
const y = C ? C(h) : h.ownerDocument;
|
|
17771
17751
|
return Pe.call(y || h, h, s.SHOW_ELEMENT | s.SHOW_COMMENT | s.SHOW_TEXT | s.SHOW_PROCESSING_INSTRUCTION | s.SHOW_CDATA_SECTION, null);
|
|
17772
17752
|
}, rr = function(h) {
|
|
17773
|
-
return h =
|
|
17753
|
+
return h = Mn(h, Je, " "), h = Mn(h, $e, " "), h = Mn(h, ce, " "), h;
|
|
17774
17754
|
}, $r = function(h) {
|
|
17775
17755
|
var y;
|
|
17776
17756
|
ji(h);
|
|
17777
17757
|
const T = (y = h.querySelectorAll) === null || y === void 0 ? void 0 : y.call(h, "template");
|
|
17778
|
-
T &&
|
|
17758
|
+
T && wt(T, (q) => {
|
|
17779
17759
|
Nt(q.content) && $r(q.content);
|
|
17780
17760
|
});
|
|
17781
17761
|
}, ji = function(h) {
|
|
@@ -17785,30 +17765,30 @@ function Gu() {
|
|
|
17785
17765
|
for (; q; )
|
|
17786
17766
|
q.data = rr(q.data), q = T.nextNode();
|
|
17787
17767
|
}, or = function(h) {
|
|
17788
|
-
const y =
|
|
17789
|
-
return typeof y != "string" || be(y) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !== _(h) || typeof h.removeAttribute != "function" || typeof h.removeAttributeNode != "function" || typeof h.getAttributeNode != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function" || h.nodeType !==
|
|
17768
|
+
const y = F ? F(h) : null;
|
|
17769
|
+
return typeof y != "string" || be(y) !== "form" ? !1 : typeof h.nodeName != "string" || typeof h.textContent != "string" || typeof h.removeChild != "function" || h.attributes !== _(h) || typeof h.removeAttribute != "function" || typeof h.removeAttributeNode != "function" || typeof h.getAttributeNode != "function" || typeof h.setAttribute != "function" || typeof h.namespaceURI != "string" || typeof h.insertBefore != "function" || typeof h.hasChildNodes != "function" || h.nodeType !== O(h) || h.childNodes !== v(h);
|
|
17790
17770
|
}, Nt = function(h) {
|
|
17791
|
-
if (!
|
|
17771
|
+
if (!O || typeof h != "object" || h === null) return !1;
|
|
17792
17772
|
try {
|
|
17793
|
-
return
|
|
17773
|
+
return O(h) === ye.documentFragment;
|
|
17794
17774
|
} catch {
|
|
17795
17775
|
return !1;
|
|
17796
17776
|
}
|
|
17797
17777
|
}, En = function(h) {
|
|
17798
|
-
if (!
|
|
17778
|
+
if (!O || typeof h != "object" || h === null) return !1;
|
|
17799
17779
|
try {
|
|
17800
|
-
return typeof
|
|
17780
|
+
return typeof O(h) == "number";
|
|
17801
17781
|
} catch {
|
|
17802
17782
|
return !1;
|
|
17803
17783
|
}
|
|
17804
17784
|
};
|
|
17805
17785
|
function st(I, h, y) {
|
|
17806
|
-
I.length !== 0 &&
|
|
17786
|
+
I.length !== 0 && wt(I, (T) => {
|
|
17807
17787
|
T.call(t, h, y, un);
|
|
17808
17788
|
});
|
|
17809
17789
|
}
|
|
17810
17790
|
const yc = function(h, y) {
|
|
17811
|
-
return !!(Q && h.hasChildNodes() && !En(h.firstElementChild) && qe(So, h.textContent) && qe(So, h.innerHTML) || Q &&
|
|
17791
|
+
return !!(Q && h.hasChildNodes() && !En(h.firstElementChild) && qe(So, h.textContent) && qe(So, h.innerHTML) || Q && _w[y] && B(h) === ye.element && S(h) === pt && (En(h.firstElementChild) || typeof h.textContent == "string" && qe(So, h.textContent)) || h.nodeType === ye.processingInstruction || Q && h.nodeType === ye.comment && qe(pa, h.data));
|
|
17812
17792
|
}, ir = function(h, y) {
|
|
17813
17793
|
if (h instanceof RegExp) return qe(h, y);
|
|
17814
17794
|
if (h instanceof Function) {
|
|
@@ -17848,7 +17828,7 @@ function Gu() {
|
|
|
17848
17828
|
const q = xc(h, T, y);
|
|
17849
17829
|
return q === !1 && (st(j.afterSanitizeElements, h, null), fn(h, y)) ? !0 : q;
|
|
17850
17830
|
}
|
|
17851
|
-
if (B(h) === ye.element && !fc(h) || (T === "noscript" || T === "noembed" || T === "noframes") && qe(
|
|
17831
|
+
if (B(h) === ye.element && !fc(h) || (T === "noscript" || T === "noembed" || T === "noframes") && qe(qw, h.innerHTML))
|
|
17852
17832
|
return Rt(h), !0;
|
|
17853
17833
|
if (G && h.nodeType === ye.text) {
|
|
17854
17834
|
const q = rr(h.textContent);
|
|
@@ -17858,7 +17838,7 @@ function Gu() {
|
|
|
17858
17838
|
}, $i = function(h, y, T) {
|
|
17859
17839
|
if (Zn[y] || Ui(y, h) || et && (y === "id" || y === "name") && (T in n || T in ac)) return !1;
|
|
17860
17840
|
const q = he[y] || ft.attributeCheck instanceof Function && ft.attributeCheck(y, h);
|
|
17861
|
-
return Cn && qe(it, y) || er && qe(lt, y) ? !0 : q ? Ri[y] || qe(vn,
|
|
17841
|
+
return Cn && qe(it, y) || er && qe(lt, y) ? !0 : q ? Ri[y] || qe(vn, Mn(T, _t, "")) || (y === "src" || y === "xlink:href" || y === "href") && h !== "script" && oa(T, "data:") === 0 && _i[h] || A && !qe(qt, Mn(T, _t, "")) ? !0 : !T : Wi(h) && ir(We.tagNameCheck, h) && ir(We.attributeNameCheck, y, h) || y === "is" && We.allowCustomizedBuiltInElements && ir(We.tagNameCheck, T);
|
|
17862
17842
|
}, wc = ue({}, [
|
|
17863
17843
|
"annotation-xml",
|
|
17864
17844
|
"color-profile",
|
|
@@ -17901,8 +17881,8 @@ function Gu() {
|
|
|
17901
17881
|
let $ = T.length;
|
|
17902
17882
|
const X = be(h.nodeName);
|
|
17903
17883
|
for (; $--; ) {
|
|
17904
|
-
const ne = T[$], we = ne.name, dt = ne.namespaceURI,
|
|
17905
|
-
let Be = we === "value" ? pn :
|
|
17884
|
+
const ne = T[$], we = ne.name, dt = ne.namespaceURI, Me = ne.value, Fe = be(we), pn = Me;
|
|
17885
|
+
let Be = we === "value" ? pn : cw(pn), Yi = !1;
|
|
17906
17886
|
if (q.attrName = Fe, q.attrValue = Be, q.keepAttr = !0, q.forceKeepAttr = void 0, st(j.uponSanitizeAttribute, h, q), Be = q.attrValue, Ei && (Fe === "id" || Fe === "name") && oa(Be, Ti) !== 0 && (cn(we, h, ne), Be = Ti + Be, Yi = !0), Gi(we, Be)) {
|
|
17907
17887
|
cn(we, h, ne);
|
|
17908
17888
|
continue;
|
|
@@ -17912,7 +17892,7 @@ function Gu() {
|
|
|
17912
17892
|
cn(we, h, ne);
|
|
17913
17893
|
continue;
|
|
17914
17894
|
}
|
|
17915
|
-
if (!
|
|
17895
|
+
if (!M && qe(da, Be)) {
|
|
17916
17896
|
cn(we, h, ne);
|
|
17917
17897
|
continue;
|
|
17918
17898
|
}
|
|
@@ -17950,7 +17930,7 @@ function Gu() {
|
|
|
17950
17930
|
shadow: null
|
|
17951
17931
|
});
|
|
17952
17932
|
if ($) {
|
|
17953
|
-
const ne =
|
|
17933
|
+
const ne = F ? F(q) : null;
|
|
17954
17934
|
if (typeof ne == "string" && be(ne) === "template") {
|
|
17955
17935
|
const we = q.content;
|
|
17956
17936
|
Nt(we) && y.push({
|
|
@@ -17973,8 +17953,8 @@ function Gu() {
|
|
|
17973
17953
|
};
|
|
17974
17954
|
return t.sanitize = function(I) {
|
|
17975
17955
|
let h = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, y = null, T = null, q = null, $ = null;
|
|
17976
|
-
if (Dr = !I, Dr && (I = "<!-->"), typeof I != "string" && !En(I) && (I =
|
|
17977
|
-
throw
|
|
17956
|
+
if (Dr = !I, Dr && (I = "<!-->"), typeof I != "string" && !En(I) && (I = hw(I), typeof I != "string"))
|
|
17957
|
+
throw kt("dirty is not a string, aborting");
|
|
17978
17958
|
if (!t.isSupported) return I;
|
|
17979
17959
|
De ? (fe = Qe, he = ze) : Fr(h), (j.uponSanitizeElement.length > 0 || j.uponSanitizeAttribute.length > 0) && (fe = Ye(fe)), j.uponSanitizeAttribute.length > 0 && (he = Ye(he)), t.removed = [];
|
|
17980
17960
|
const X = Pr && typeof I != "string" && En(I);
|
|
@@ -17986,18 +17966,18 @@ function Gu() {
|
|
|
17986
17966
|
if (typeof Fe == "string") {
|
|
17987
17967
|
const pn = be(Fe);
|
|
17988
17968
|
if (!fe[pn] || jt[pn])
|
|
17989
|
-
throw Br(I),
|
|
17969
|
+
throw Br(I), kt("root node is forbidden and cannot be sanitized in-place");
|
|
17990
17970
|
}
|
|
17991
17971
|
if (or(I))
|
|
17992
|
-
throw Br(I),
|
|
17972
|
+
throw Br(I), kt("root node is clobbered and cannot be sanitized in-place");
|
|
17993
17973
|
ne = jr(I), Vt = mo();
|
|
17994
17974
|
} else if (En(I))
|
|
17995
17975
|
y = Hi("<!---->"), T = y.ownerDocument.importNode(I, !0), T.nodeType === ye.element && T.nodeName === "BODY" || T.nodeName === "HTML" ? y = T : y.appendChild(T), Yr(y);
|
|
17996
17976
|
else {
|
|
17997
17977
|
if (!Ze && !G && !le && I.indexOf("<") === -1) return P && at ? ae(I) : I;
|
|
17998
|
-
if (y = Hi(I), !y) return Ze ? null : at ?
|
|
17978
|
+
if (y = Hi(I), !y) return Ze ? null : at ? z : "";
|
|
17999
17979
|
}
|
|
18000
|
-
y &&
|
|
17980
|
+
y && yt && Rt(y.firstChild);
|
|
18001
17981
|
const dt = X ? I : y;
|
|
18002
17982
|
try {
|
|
18003
17983
|
X && Yr(I);
|
|
@@ -18011,34 +17991,34 @@ function Gu() {
|
|
|
18011
17991
|
Vt = we;
|
|
18012
17992
|
}
|
|
18013
17993
|
if (X) {
|
|
18014
|
-
if (Bi(I, ne)) throw
|
|
17994
|
+
if (Bi(I, ne)) throw kt("a node selected for removal could not be safely returned; refusing to sanitize in place");
|
|
18015
17995
|
return G && $r(I), I;
|
|
18016
17996
|
}
|
|
18017
17997
|
if (Ze) {
|
|
18018
|
-
if (G && $r(y),
|
|
17998
|
+
if (G && $r(y), ve)
|
|
18019
17999
|
for ($ = b.call(y.ownerDocument); y.firstChild; ) $.appendChild(y.firstChild);
|
|
18020
18000
|
else $ = y;
|
|
18021
18001
|
return (he.shadowroot || he.shadowrootmode) && ($ = me.call(r, $, !0)), $;
|
|
18022
18002
|
}
|
|
18023
|
-
let
|
|
18024
|
-
return le && fe["!doctype"] && y.ownerDocument && y.ownerDocument.doctype && y.ownerDocument.doctype.name && qe(
|
|
18025
|
-
` +
|
|
18003
|
+
let Me = le ? y.outerHTML : y.innerHTML;
|
|
18004
|
+
return le && fe["!doctype"] && y.ownerDocument && y.ownerDocument.doctype && y.ownerDocument.doctype.name && qe(Ew, y.ownerDocument.doctype.name) && (Me = "<!DOCTYPE " + y.ownerDocument.doctype.name + `>
|
|
18005
|
+
` + Me), G && (Me = rr(Me)), P && at ? ae(Me) : Me;
|
|
18026
18006
|
}, t.setConfig = function() {
|
|
18027
18007
|
let I = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
18028
18008
|
Fr(I), De = !0, Qe = fe, ze = he;
|
|
18029
18009
|
}, t.clearConfig = function() {
|
|
18030
|
-
un = null, De = !1, Qe = null, ze = null, P = re,
|
|
18010
|
+
un = null, De = !1, Qe = null, ze = null, P = re, z = "";
|
|
18031
18011
|
}, t.isValidAttribute = function(I, h, y) {
|
|
18032
18012
|
un || Fr({});
|
|
18033
18013
|
const T = be(I), q = be(h);
|
|
18034
|
-
return typeof y == "string" && (Gi(h, y) || !
|
|
18014
|
+
return typeof y == "string" && (Gi(h, y) || !M && qe(da, y)) ? !1 : $i(T, q, y);
|
|
18035
18015
|
}, t.addHook = function(I, h) {
|
|
18036
18016
|
typeof h == "function" && He(j, I) && Pn(j[I], h);
|
|
18037
18017
|
}, t.removeHook = function(I, h) {
|
|
18038
18018
|
if (He(j, I)) {
|
|
18039
18019
|
if (h !== void 0) {
|
|
18040
|
-
const y =
|
|
18041
|
-
return y === -1 ? void 0 :
|
|
18020
|
+
const y = aw(j[I], h);
|
|
18021
|
+
return y === -1 ? void 0 : uw(j[I], y, 1)[0];
|
|
18042
18022
|
}
|
|
18043
18023
|
return na(j[I]);
|
|
18044
18024
|
}
|
|
@@ -18063,7 +18043,7 @@ const Yu = je(
|
|
|
18063
18043
|
)
|
|
18064
18044
|
);
|
|
18065
18045
|
Yu.displayName = "Textarea";
|
|
18066
|
-
function
|
|
18046
|
+
function Nw({
|
|
18067
18047
|
isDisabled: e,
|
|
18068
18048
|
onFiles: t
|
|
18069
18049
|
}) {
|
|
@@ -18096,7 +18076,7 @@ function Ow({
|
|
|
18096
18076
|
)
|
|
18097
18077
|
] });
|
|
18098
18078
|
}
|
|
18099
|
-
function
|
|
18079
|
+
function Lw({
|
|
18100
18080
|
attachmentFiles: e,
|
|
18101
18081
|
error: t,
|
|
18102
18082
|
onRemove: n
|
|
@@ -18147,8 +18127,8 @@ function Mw({
|
|
|
18147
18127
|
)
|
|
18148
18128
|
] });
|
|
18149
18129
|
}
|
|
18150
|
-
function
|
|
18151
|
-
const [t, n] =
|
|
18130
|
+
function Pw(e) {
|
|
18131
|
+
const [t, n] = Ae([]), [r, o] = Ae(null), l = e && t.length < Wn;
|
|
18152
18132
|
return {
|
|
18153
18133
|
attachmentFiles: t,
|
|
18154
18134
|
attachmentError: r,
|
|
@@ -18171,18 +18151,18 @@ function zw(e) {
|
|
|
18171
18151
|
}
|
|
18172
18152
|
};
|
|
18173
18153
|
}
|
|
18174
|
-
function
|
|
18154
|
+
function Dw(e) {
|
|
18175
18155
|
const t = Xe(e);
|
|
18176
|
-
return
|
|
18156
|
+
return vt(() => {
|
|
18177
18157
|
t.current = e;
|
|
18178
18158
|
}), t;
|
|
18179
18159
|
}
|
|
18180
|
-
function
|
|
18181
|
-
const [t, n] =
|
|
18160
|
+
function Mw(e) {
|
|
18161
|
+
const [t, n] = Ae(!1), r = Dw(e), o = Xe(null), l = wa(
|
|
18182
18162
|
(i) => {
|
|
18183
18163
|
if (o.current?.abort(), o.current = null, !i) return;
|
|
18184
18164
|
const a = new AbortController();
|
|
18185
|
-
o.current = a,
|
|
18165
|
+
o.current = a, Ow(i.ownerDocument, a.signal, {
|
|
18186
18166
|
onDragChange: n,
|
|
18187
18167
|
onFiles: (s) => r.current(s)
|
|
18188
18168
|
});
|
|
@@ -18191,7 +18171,7 @@ function Bw(e) {
|
|
|
18191
18171
|
);
|
|
18192
18172
|
return { isDraggingFiles: t, listenForFiles: l };
|
|
18193
18173
|
}
|
|
18194
|
-
function
|
|
18174
|
+
function Ow(e, t, { onDragChange: n, onFiles: r }) {
|
|
18195
18175
|
const o = { signal: t };
|
|
18196
18176
|
let l = 0;
|
|
18197
18177
|
e.addEventListener(
|
|
@@ -18221,7 +18201,7 @@ function Uw(e, t, { onDragChange: n, onFiles: r }) {
|
|
|
18221
18201
|
), e.addEventListener(
|
|
18222
18202
|
"paste",
|
|
18223
18203
|
(i) => {
|
|
18224
|
-
const a =
|
|
18204
|
+
const a = zw(i);
|
|
18225
18205
|
a.length !== 0 && (i.preventDefault(), r(a));
|
|
18226
18206
|
},
|
|
18227
18207
|
o
|
|
@@ -18230,12 +18210,12 @@ function Uw(e, t, { onDragChange: n, onFiles: r }) {
|
|
|
18230
18210
|
function gr(e) {
|
|
18231
18211
|
return !!e.dataTransfer?.types.includes("Files");
|
|
18232
18212
|
}
|
|
18233
|
-
function
|
|
18213
|
+
function zw(e) {
|
|
18234
18214
|
return Array.from(e.clipboardData?.files ?? []);
|
|
18235
18215
|
}
|
|
18236
|
-
const
|
|
18237
|
-
function
|
|
18238
|
-
const t =
|
|
18216
|
+
const Fw = /^#?([0-9a-f]{3}|[0-9a-f]{6})$/i;
|
|
18217
|
+
function Bw(e) {
|
|
18218
|
+
const t = Fw.exec(e.trim());
|
|
18239
18219
|
if (!t) return null;
|
|
18240
18220
|
let n = t[1];
|
|
18241
18221
|
return n.length === 3 && (n = n.split("").map((r) => r + r).join("")), [
|
|
@@ -18244,7 +18224,7 @@ function Vw(e) {
|
|
|
18244
18224
|
Number.parseInt(n.slice(4, 6), 16)
|
|
18245
18225
|
];
|
|
18246
18226
|
}
|
|
18247
|
-
function
|
|
18227
|
+
function Uw([e, t, n]) {
|
|
18248
18228
|
const r = e / 255, o = t / 255, l = n / 255, i = Math.max(r, o, l), a = Math.min(r, o, l), s = i - a, u = (i + a) / 2;
|
|
18249
18229
|
if (s === 0)
|
|
18250
18230
|
return { hue: 0, saturation: 0, lightness: u };
|
|
@@ -18260,11 +18240,11 @@ function ma({ hue: e, saturation: t, lightness: n }) {
|
|
|
18260
18240
|
n * 100
|
|
18261
18241
|
)}%)`;
|
|
18262
18242
|
}
|
|
18263
|
-
function
|
|
18264
|
-
const t = e ?
|
|
18243
|
+
function Hw(e) {
|
|
18244
|
+
const t = e ? Bw(e) : null;
|
|
18265
18245
|
if (!t)
|
|
18266
18246
|
return { strong: "hsl(0 0% 62%)", soft: "hsl(0 0% 82%)" };
|
|
18267
|
-
const { hue: n, saturation: r, lightness: o } =
|
|
18247
|
+
const { hue: n, saturation: r, lightness: o } = Uw(t), l = {
|
|
18268
18248
|
hue: n,
|
|
18269
18249
|
saturation: br(Math.max(r * 1.35, r + 0.25)),
|
|
18270
18250
|
lightness: Math.min(br(o + 0.45), 0.95)
|
|
@@ -18275,7 +18255,7 @@ function Ww(e) {
|
|
|
18275
18255
|
};
|
|
18276
18256
|
return { strong: ma(l), soft: ma(i) };
|
|
18277
18257
|
}
|
|
18278
|
-
function
|
|
18258
|
+
function jw() {
|
|
18279
18259
|
const e = Xe(!1), t = Xe(0), n = Xe(0);
|
|
18280
18260
|
return {
|
|
18281
18261
|
onMouseDown: (a) => {
|
|
@@ -18297,18 +18277,18 @@ function Gw() {
|
|
|
18297
18277
|
}
|
|
18298
18278
|
};
|
|
18299
18279
|
}
|
|
18300
|
-
const
|
|
18301
|
-
function
|
|
18302
|
-
const [t, n] =
|
|
18303
|
-
return
|
|
18280
|
+
const Vw = 1100, ga = 4e3, $w = 9e3;
|
|
18281
|
+
function Ww(e) {
|
|
18282
|
+
const [t, n] = Ae(!1);
|
|
18283
|
+
return vt(() => {
|
|
18304
18284
|
if (!e) return;
|
|
18305
18285
|
let r, o = !1;
|
|
18306
18286
|
const l = () => {
|
|
18307
|
-
const i = ga + Math.random() * (
|
|
18287
|
+
const i = ga + Math.random() * ($w - ga);
|
|
18308
18288
|
r = setTimeout(() => {
|
|
18309
18289
|
o || (n(!0), r = setTimeout(() => {
|
|
18310
18290
|
o || (n(!1), l());
|
|
18311
|
-
},
|
|
18291
|
+
}, Vw));
|
|
18312
18292
|
}, i);
|
|
18313
18293
|
};
|
|
18314
18294
|
return l(), () => {
|
|
@@ -18316,8 +18296,8 @@ function Kw(e) {
|
|
|
18316
18296
|
};
|
|
18317
18297
|
}, [e]), t;
|
|
18318
18298
|
}
|
|
18319
|
-
function
|
|
18320
|
-
const [e, t] =
|
|
18299
|
+
function Gw() {
|
|
18300
|
+
const [e, t] = Ae(!1), n = Xe(null);
|
|
18321
18301
|
return { scrollContainerRef: (o) => {
|
|
18322
18302
|
if (n.current?.disconnect(), n.current = null, !o) return;
|
|
18323
18303
|
const l = () => {
|
|
@@ -18331,12 +18311,12 @@ function Jw() {
|
|
|
18331
18311
|
}
|
|
18332
18312
|
}, hasOverflow: e };
|
|
18333
18313
|
}
|
|
18334
|
-
function
|
|
18335
|
-
const t = nn(), n = ei(), r =
|
|
18314
|
+
function Yw({ onSelect: e }) {
|
|
18315
|
+
const t = nn(), n = ei(), r = jw(), { scrollContainerRef: o, hasOverflow: l } = Gw(), i = !!t.messages?.some(
|
|
18336
18316
|
(k) => k.sender === "user"
|
|
18337
|
-
), a = t.suggestedMessageTexts ?? [], s = !!t.suggestedMessages && a.length > 0 && !i, u = !!t.hasSuggestedMessageAura && s, f = !!t.hasSuggestedMessageShine && s, c =
|
|
18317
|
+
), a = t.suggestedMessageTexts ?? [], s = !!t.suggestedMessages && a.length > 0 && !i, u = !!t.hasSuggestedMessageAura && s, f = !!t.hasSuggestedMessageShine && s, c = Ww(f);
|
|
18338
18318
|
if (!s) return null;
|
|
18339
|
-
const d = u ?
|
|
18319
|
+
const d = u ? Hw(n.suggestedMessageBubbleColor || n.userBubbleColor) : null, p = n.suggestedMessageBubbleColor ? {
|
|
18340
18320
|
backgroundColor: n.suggestedMessageBubbleColor,
|
|
18341
18321
|
color: n.suggestedMessageBubbleTextColor || Ai(n.suggestedMessageBubbleColor)
|
|
18342
18322
|
} : void 0, g = (k, v = {
|
|
@@ -18427,7 +18407,7 @@ const ba = {
|
|
|
18427
18407
|
5034: "Sorry we are unable to help right now, please try again later.",
|
|
18428
18408
|
5001: "We are currently facing technical difficulties. Please try again later.",
|
|
18429
18409
|
DEFAULT: "Something went wrong. Please try again later."
|
|
18430
|
-
},
|
|
18410
|
+
}, Xw = (e) => ba[e] || ba.DEFAULT, Kw = Ar({
|
|
18431
18411
|
error: null,
|
|
18432
18412
|
hideSdk: !1,
|
|
18433
18413
|
publishApiError: () => {
|
|
@@ -18438,13 +18418,13 @@ const ba = {
|
|
|
18438
18418
|
},
|
|
18439
18419
|
clearError: () => {
|
|
18440
18420
|
}
|
|
18441
|
-
}),
|
|
18442
|
-
const e = Er(
|
|
18421
|
+
}), Jw = () => {
|
|
18422
|
+
const e = Er(Kw);
|
|
18443
18423
|
if (e === void 0)
|
|
18444
18424
|
throw new Error("useError must be used within an ErrorProvider");
|
|
18445
18425
|
return e;
|
|
18446
|
-
},
|
|
18447
|
-
const n = t instanceof Jt ? t.response?.errors?.[0] : void 0, r = Number(n?.error_code), o =
|
|
18426
|
+
}, Tk = (e) => (t) => {
|
|
18427
|
+
const n = t instanceof Jt ? t.response?.errors?.[0] : void 0, r = Number(n?.error_code), o = Xw(r);
|
|
18448
18428
|
e({ code: r, message: o });
|
|
18449
18429
|
}, ya = {
|
|
18450
18430
|
warning: {
|
|
@@ -18475,7 +18455,7 @@ const ba = {
|
|
|
18475
18455
|
iconColor: "eloq:text-green-500 eloq:dark:text-green-400",
|
|
18476
18456
|
icon: Nf
|
|
18477
18457
|
}
|
|
18478
|
-
},
|
|
18458
|
+
}, Qw = ({ message: e, type: t }) => {
|
|
18479
18459
|
const n = ya[t] || ya.warning, r = n.icon;
|
|
18480
18460
|
return /* @__PURE__ */ Z(
|
|
18481
18461
|
"div",
|
|
@@ -18491,24 +18471,24 @@ const ba = {
|
|
|
18491
18471
|
Cr.isSupported && Cr.addHook("afterSanitizeAttributes", (e) => {
|
|
18492
18472
|
e.tagName === "A" && (e.setAttribute("rel", "noopener noreferrer"), e.hasAttribute("target") && e.setAttribute("target", "_blank"));
|
|
18493
18473
|
});
|
|
18494
|
-
const
|
|
18495
|
-
function
|
|
18496
|
-
const [e, t] =
|
|
18497
|
-
return
|
|
18474
|
+
const Zw = "eloq:bg-card eloq:rounded-3xl eloq:shadow-[0_0_4px_0_rgba(0,0,0,0.20)] eloq:dark:shadow-none eloq:dark:border eloq:dark:border-border", ek = "eloq:w-full eloq:rounded-t-2xl eloq:bg-cream eloq:border-t eloq:border-x eloq:border-border eloq:px-5 eloq:pt-5 eloq:pb-4 eloq:shadow-[0_-8px_24px_rgba(0,0,0,0.08)] eloq:dark:shadow-none", tk = "eloq:flex eloq:items-center eloq:justify-between eloq:w-[70%] eloq:m-auto eloq:rounded-full eloq:py-2 eloq:pl-4 eloq:pr-2 eloq:text-sm eloq:font-semibold eloq:transition-opacity eloq:hover:opacity-90 eloq:focus-visible:outline-none eloq:focus-visible:ring-2 eloq:focus-visible:ring-primary eloq:focus-visible:ring-offset-2", nk = "eloq:bg-cream", rk = "eloq:bg-muted-foreground eloq:dark:bg-muted eloq:dark:text-muted-foreground/50";
|
|
18475
|
+
function ok() {
|
|
18476
|
+
const [e, t] = Ae(!1);
|
|
18477
|
+
return vt(() => {
|
|
18498
18478
|
t(!0);
|
|
18499
18479
|
}, []), e && Cr.isSupported;
|
|
18500
18480
|
}
|
|
18501
|
-
function
|
|
18502
|
-
const { error: e } =
|
|
18481
|
+
function ik() {
|
|
18482
|
+
const { error: e } = Jw(), t = !!e, n = nn(), r = Xe(null), [o, l] = Ae(""), i = ei(), a = !!n.messages?.some((O) => O.isRatingRequest), s = n.keyboardInset ?? 0, u = ok(), f = !!n.hasAttachments, c = t || a, d = Pw(
|
|
18503
18483
|
f && !c
|
|
18504
|
-
), p =
|
|
18484
|
+
), p = Mw(d.addFiles), g = !!o.trim() || d.attachmentFiles.length > 0, k = i.userBubbleTextColor || Ai(i.userBubbleColor), v = () => g && !c ? {
|
|
18505
18485
|
backgroundColor: i.userBubbleColor,
|
|
18506
18486
|
color: k
|
|
18507
|
-
} : {}, w = (
|
|
18508
|
-
l(
|
|
18509
|
-
}, E = async (
|
|
18510
|
-
|
|
18511
|
-
const
|
|
18487
|
+
} : {}, w = (O) => {
|
|
18488
|
+
l(O), r.current && r.current.focus();
|
|
18489
|
+
}, E = async (O) => {
|
|
18490
|
+
O.preventDefault();
|
|
18491
|
+
const F = o.trim();
|
|
18512
18492
|
if (!g || c) return;
|
|
18513
18493
|
l("");
|
|
18514
18494
|
const C = d.takeFiles();
|
|
@@ -18516,7 +18496,7 @@ function uk() {
|
|
|
18516
18496
|
if (await n.onSendMessage?.(
|
|
18517
18497
|
{
|
|
18518
18498
|
id: crypto.randomUUID(),
|
|
18519
|
-
content:
|
|
18499
|
+
content: F,
|
|
18520
18500
|
sender: "user",
|
|
18521
18501
|
timestamp: (/* @__PURE__ */ new Date()).toISOString()
|
|
18522
18502
|
},
|
|
@@ -18528,12 +18508,12 @@ function uk() {
|
|
|
18528
18508
|
B.style.height = `${N}px`;
|
|
18529
18509
|
}
|
|
18530
18510
|
} catch (B) {
|
|
18531
|
-
l(
|
|
18511
|
+
l(F), d.restoreFiles(C, B);
|
|
18532
18512
|
}
|
|
18533
18513
|
}, _ = () => n.isChatClosed ? /* @__PURE__ */ x("div", { className: "eloq:w-full eloq:z-20 eloq:animate-slide-up-in", children: /* @__PURE__ */ Z(
|
|
18534
18514
|
"div",
|
|
18535
18515
|
{
|
|
18536
|
-
className:
|
|
18516
|
+
className: ek,
|
|
18537
18517
|
role: "status",
|
|
18538
18518
|
"aria-live": "polite",
|
|
18539
18519
|
children: [
|
|
@@ -18543,7 +18523,7 @@ function uk() {
|
|
|
18543
18523
|
{
|
|
18544
18524
|
type: "button",
|
|
18545
18525
|
onClick: () => n.onStartNewChat?.(),
|
|
18546
|
-
className:
|
|
18526
|
+
className: tk,
|
|
18547
18527
|
style: {
|
|
18548
18528
|
backgroundColor: i.userBubbleColor,
|
|
18549
18529
|
color: k
|
|
@@ -18557,16 +18537,16 @@ function uk() {
|
|
|
18557
18537
|
]
|
|
18558
18538
|
}
|
|
18559
18539
|
) }) : /* @__PURE__ */ Z(zt, { children: [
|
|
18560
|
-
/* @__PURE__ */ x(
|
|
18540
|
+
/* @__PURE__ */ x(Yw, { onSelect: w }),
|
|
18561
18541
|
/* @__PURE__ */ Z(
|
|
18562
18542
|
"div",
|
|
18563
18543
|
{
|
|
18564
18544
|
className: "eloq:flex eloq:flex-col eloq:w-full eloq:items-center eloq:px-4 eloq:mx-1 eloq:pb-4 eloq:-mt-6 eloq:z-20",
|
|
18565
18545
|
style: s ? { transform: `translateY(-${s}px)` } : void 0,
|
|
18566
18546
|
children: [
|
|
18567
|
-
t && /* @__PURE__ */ x(
|
|
18547
|
+
t && /* @__PURE__ */ x(Qw, { message: e.message, type: "error" }),
|
|
18568
18548
|
f && /* @__PURE__ */ x(
|
|
18569
|
-
|
|
18549
|
+
Lw,
|
|
18570
18550
|
{
|
|
18571
18551
|
attachmentFiles: d.attachmentFiles,
|
|
18572
18552
|
error: d.attachmentError,
|
|
@@ -18579,7 +18559,7 @@ function uk() {
|
|
|
18579
18559
|
className: "eloq:relative eloq:flex eloq:items-center eloq:w-full eloq:m-0",
|
|
18580
18560
|
onSubmit: E,
|
|
18581
18561
|
children: [
|
|
18582
|
-
/* @__PURE__ */ x("div", { className: te("eloq:flex-1",
|
|
18562
|
+
/* @__PURE__ */ x("div", { className: te("eloq:flex-1", Zw), children: /* @__PURE__ */ x(
|
|
18583
18563
|
Yu,
|
|
18584
18564
|
{
|
|
18585
18565
|
ref: r,
|
|
@@ -18592,26 +18572,26 @@ function uk() {
|
|
|
18592
18572
|
rows: 1,
|
|
18593
18573
|
value: o,
|
|
18594
18574
|
disabled: c,
|
|
18595
|
-
onChange: (
|
|
18596
|
-
onKeyDown: (
|
|
18597
|
-
if (
|
|
18598
|
-
|
|
18599
|
-
const
|
|
18600
|
-
|
|
18575
|
+
onChange: (O) => l(O.target.value),
|
|
18576
|
+
onKeyDown: (O) => {
|
|
18577
|
+
if (O.key === "Enter" && !O.shiftKey) {
|
|
18578
|
+
O.preventDefault();
|
|
18579
|
+
const F = O.currentTarget.form;
|
|
18580
|
+
F && F.dispatchEvent(
|
|
18601
18581
|
new Event("submit", { bubbles: !0 })
|
|
18602
18582
|
);
|
|
18603
18583
|
}
|
|
18604
18584
|
},
|
|
18605
|
-
onInput: (
|
|
18606
|
-
const
|
|
18607
|
-
|
|
18608
|
-
const C = Math.min(
|
|
18609
|
-
|
|
18585
|
+
onInput: (O) => {
|
|
18586
|
+
const F = O.currentTarget;
|
|
18587
|
+
F.style.height = "auto";
|
|
18588
|
+
const C = Math.min(F.scrollHeight, 132);
|
|
18589
|
+
F.style.height = `${C}px`, l(F.value);
|
|
18610
18590
|
}
|
|
18611
18591
|
}
|
|
18612
18592
|
) }),
|
|
18613
18593
|
f && /* @__PURE__ */ x(
|
|
18614
|
-
|
|
18594
|
+
Nw,
|
|
18615
18595
|
{
|
|
18616
18596
|
isDisabled: !d.canAddFiles,
|
|
18617
18597
|
onFiles: d.addFiles
|
|
@@ -18624,7 +18604,7 @@ function uk() {
|
|
|
18624
18604
|
disabled: !g || c,
|
|
18625
18605
|
className: te(
|
|
18626
18606
|
"eloq:absolute eloq:top-0 eloq:bottom-2 eloq:right-2 eloq:self-end eloq:p-2 eloq:text-muted eloq:rounded-full eloq:transition-colors",
|
|
18627
|
-
g && !t ? "eloq:text-primary-foreground" :
|
|
18607
|
+
g && !t ? "eloq:text-primary-foreground" : rk
|
|
18628
18608
|
),
|
|
18629
18609
|
style: v(),
|
|
18630
18610
|
children: /* @__PURE__ */ x(Ef, { className: "eloq:h-4 eloq:w-4" })
|
|
@@ -18653,7 +18633,7 @@ function uk() {
|
|
|
18653
18633
|
{
|
|
18654
18634
|
className: te(
|
|
18655
18635
|
"eloq:w-full eloq:flex eloq:flex-col eloq:items-center eloq:justify-center eloq:space-x-2 eloq:px-0",
|
|
18656
|
-
|
|
18636
|
+
nk
|
|
18657
18637
|
),
|
|
18658
18638
|
children: [
|
|
18659
18639
|
/* @__PURE__ */ Z("div", { className: "eloq:w-full eloq:flex eloq:items-center eloq:justify-center eloq:space-x-2 eloq:py-1", children: [
|
|
@@ -18686,16 +18666,16 @@ function uk() {
|
|
|
18686
18666
|
}
|
|
18687
18667
|
);
|
|
18688
18668
|
}
|
|
18689
|
-
var
|
|
18669
|
+
var lk = Object.defineProperty, At = (e, t) => lk(e, "name", { value: t, configurable: !0 }), Xu = "Avatar", [ak, qk] = /* @__PURE__ */ ni(Xu), sk = [
|
|
18690
18670
|
0,
|
|
18691
18671
|
() => {
|
|
18692
18672
|
}
|
|
18693
|
-
], [
|
|
18673
|
+
], [uk, Ku] = ak(Xu), Ju = /* @__PURE__ */ R.forwardRef(
|
|
18694
18674
|
// blank line to reduce diff noise
|
|
18695
18675
|
/* @__PURE__ */ At(function(t, n) {
|
|
18696
18676
|
const { __scopeAvatar: r, ...o } = t, [l, i] = R.useState("idle"), [a, s] = tc();
|
|
18697
18677
|
return /* @__PURE__ */ x(
|
|
18698
|
-
|
|
18678
|
+
uk,
|
|
18699
18679
|
{
|
|
18700
18680
|
scope: r,
|
|
18701
18681
|
imageLoadingStatus: l,
|
|
@@ -18706,16 +18686,16 @@ var ck = Object.defineProperty, At = (e, t) => ck(e, "name", { value: t, configu
|
|
|
18706
18686
|
}
|
|
18707
18687
|
);
|
|
18708
18688
|
}, "Avatar")
|
|
18709
|
-
),
|
|
18689
|
+
), ck = "AvatarImage", Qu = /* @__PURE__ */ R.forwardRef(
|
|
18710
18690
|
/* @__PURE__ */ At(function(t, n) {
|
|
18711
|
-
const { __scopeAvatar: r, src: o, onLoadingStatusChange: l, ...i } = t, a = Ku(
|
|
18691
|
+
const { __scopeAvatar: r, src: o, onLoadingStatusChange: l, ...i } = t, a = Ku(ck, r);
|
|
18712
18692
|
a.setImageCount;
|
|
18713
18693
|
const s = ec(o, {
|
|
18714
18694
|
referrerPolicy: i.referrerPolicy,
|
|
18715
18695
|
crossOrigin: i.crossOrigin,
|
|
18716
18696
|
loadingStatus: a.imageLoadingStatus,
|
|
18717
18697
|
setLoadingStatus: a.setImageLoadingStatus
|
|
18718
|
-
}), u =
|
|
18698
|
+
}), u = St((c) => {
|
|
18719
18699
|
l?.(c);
|
|
18720
18700
|
}), f = R.useRef(s);
|
|
18721
18701
|
return Un(() => {
|
|
@@ -18723,9 +18703,9 @@ var ck = Object.defineProperty, At = (e, t) => ck(e, "name", { value: t, configu
|
|
|
18723
18703
|
f.current = s, s !== c && u(s);
|
|
18724
18704
|
}, [s, u]), s === "loaded" ? /* @__PURE__ */ x(Ut.img, { ...i, ref: n, src: o }) : null;
|
|
18725
18705
|
}, "AvatarImage")
|
|
18726
|
-
),
|
|
18706
|
+
), fk = "AvatarFallback", Zu = /* @__PURE__ */ R.forwardRef(
|
|
18727
18707
|
/* @__PURE__ */ At(function(t, n) {
|
|
18728
|
-
const { __scopeAvatar: r, delayMs: o, ...l } = t, i = Ku(
|
|
18708
|
+
const { __scopeAvatar: r, delayMs: o, ...l } = t, i = Ku(fk, r), [a, s] = R.useState(o === void 0);
|
|
18729
18709
|
return R.useEffect(() => {
|
|
18730
18710
|
if (o !== void 0) {
|
|
18731
18711
|
const u = window.setTimeout(() => s(!0), o);
|
|
@@ -18760,12 +18740,12 @@ function Wo(e) {
|
|
|
18760
18740
|
}
|
|
18761
18741
|
At(Wo, "getImageLoadingStatus");
|
|
18762
18742
|
function tc() {
|
|
18763
|
-
return
|
|
18743
|
+
return sk;
|
|
18764
18744
|
}
|
|
18765
18745
|
At(tc, "useImageCount");
|
|
18766
|
-
function
|
|
18746
|
+
function pk(e) {
|
|
18767
18747
|
}
|
|
18768
|
-
At(
|
|
18748
|
+
At(pk, "useUpdateImageCount");
|
|
18769
18749
|
const nc = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18770
18750
|
Ju,
|
|
18771
18751
|
{
|
|
@@ -18778,7 +18758,7 @@ const nc = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
18778
18758
|
}
|
|
18779
18759
|
));
|
|
18780
18760
|
nc.displayName = Ju.displayName;
|
|
18781
|
-
const
|
|
18761
|
+
const dk = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18782
18762
|
Qu,
|
|
18783
18763
|
{
|
|
18784
18764
|
ref: n,
|
|
@@ -18786,8 +18766,8 @@ const bk = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
18786
18766
|
...t
|
|
18787
18767
|
}
|
|
18788
18768
|
));
|
|
18789
|
-
|
|
18790
|
-
const
|
|
18769
|
+
dk.displayName = Qu.displayName;
|
|
18770
|
+
const hk = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
18791
18771
|
Zu,
|
|
18792
18772
|
{
|
|
18793
18773
|
ref: n,
|
|
@@ -18798,14 +18778,14 @@ const yk = je(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
18798
18778
|
...t
|
|
18799
18779
|
}
|
|
18800
18780
|
));
|
|
18801
|
-
|
|
18802
|
-
const
|
|
18803
|
-
function
|
|
18781
|
+
hk.displayName = Zu.displayName;
|
|
18782
|
+
const mk = "eloq:shadow-[0_3px_4px_-2px_rgba(0,0,0,0.04)] eloq:dark:shadow-none eloq:dark:border-b eloq:dark:border-border", xa = "eloq:text-gray-400 eloq:hover:text-gray-600 eloq:dark:hover:text-gray-300 eloq:p-2";
|
|
18783
|
+
function gk({
|
|
18804
18784
|
onCleanChat: e,
|
|
18805
18785
|
onClose: t
|
|
18806
18786
|
}) {
|
|
18807
18787
|
const n = nn(), r = n.hasCleanChatButton ?? n.cleanChatButton ?? !0, o = n.hasCloseButton ?? n.closeButton ?? !0;
|
|
18808
|
-
return /* @__PURE__ */ Z(Jo, { className: te(zu,
|
|
18788
|
+
return /* @__PURE__ */ Z(Jo, { className: te(zu, mk), children: [
|
|
18809
18789
|
/* @__PURE__ */ Z("div", { className: Fu, children: [
|
|
18810
18790
|
/* @__PURE__ */ x(nc, { className: "eloq:h-10 eloq:w-10", children: /* @__PURE__ */ x(
|
|
18811
18791
|
Xo,
|
|
@@ -18826,7 +18806,7 @@ function wk({
|
|
|
18826
18806
|
] })
|
|
18827
18807
|
] });
|
|
18828
18808
|
}
|
|
18829
|
-
function
|
|
18809
|
+
function _k(e) {
|
|
18830
18810
|
const {
|
|
18831
18811
|
isOpen: t = !1,
|
|
18832
18812
|
isMobile: n,
|
|
@@ -18853,14 +18833,14 @@ function Lk(e) {
|
|
|
18853
18833
|
}
|
|
18854
18834
|
),
|
|
18855
18835
|
/* @__PURE__ */ x(
|
|
18856
|
-
|
|
18836
|
+
gk,
|
|
18857
18837
|
{
|
|
18858
18838
|
onCleanChat: () => r?.(),
|
|
18859
18839
|
onClose: () => o?.()
|
|
18860
18840
|
}
|
|
18861
18841
|
),
|
|
18862
|
-
/* @__PURE__ */ x(
|
|
18863
|
-
/* @__PURE__ */ x(
|
|
18842
|
+
/* @__PURE__ */ x(ew, {}),
|
|
18843
|
+
/* @__PURE__ */ x(ik, {})
|
|
18864
18844
|
] });
|
|
18865
18845
|
return /* @__PURE__ */ x(xf, { ...l, children: /* @__PURE__ */ x(Bp, { ...e, children: /* @__PURE__ */ x(
|
|
18866
18846
|
"main",
|
|
@@ -18887,9 +18867,9 @@ function mt({ className: e, ...t }) {
|
|
|
18887
18867
|
}
|
|
18888
18868
|
);
|
|
18889
18869
|
}
|
|
18890
|
-
function
|
|
18891
|
-
const [n, r] =
|
|
18892
|
-
return
|
|
18870
|
+
function bk(e, t) {
|
|
18871
|
+
const [n, r] = Ae(e);
|
|
18872
|
+
return vt(() => {
|
|
18893
18873
|
const o = setTimeout(() => {
|
|
18894
18874
|
r(e);
|
|
18895
18875
|
}, t);
|
|
@@ -18898,12 +18878,12 @@ function kk(e, t) {
|
|
|
18898
18878
|
};
|
|
18899
18879
|
}, [e, t]), n;
|
|
18900
18880
|
}
|
|
18901
|
-
function
|
|
18881
|
+
function Ik({
|
|
18902
18882
|
isOpen: e = !1,
|
|
18903
18883
|
isMobile: t,
|
|
18904
18884
|
skipAnimation: n = !1
|
|
18905
18885
|
}) {
|
|
18906
|
-
const r =
|
|
18886
|
+
const r = bk(e, 10), o = Uu({
|
|
18907
18887
|
isOpen: n ? e : r,
|
|
18908
18888
|
isMobile: t,
|
|
18909
18889
|
skipAnimation: n
|
|
@@ -18937,37 +18917,37 @@ function Pk({
|
|
|
18937
18917
|
}
|
|
18938
18918
|
export {
|
|
18939
18919
|
Iu as A,
|
|
18940
|
-
|
|
18941
|
-
|
|
18942
|
-
|
|
18943
|
-
|
|
18920
|
+
Qw as B,
|
|
18921
|
+
_k as C,
|
|
18922
|
+
Kw as E,
|
|
18923
|
+
kk as H,
|
|
18944
18924
|
Xo as L,
|
|
18945
18925
|
Ex as M,
|
|
18946
18926
|
Jl as N,
|
|
18947
|
-
|
|
18948
|
-
|
|
18927
|
+
Kx as R,
|
|
18928
|
+
Ik as S,
|
|
18949
18929
|
xf as T,
|
|
18950
18930
|
Ba as X,
|
|
18951
18931
|
Bp as a,
|
|
18952
|
-
|
|
18932
|
+
Yx as b,
|
|
18953
18933
|
te as c,
|
|
18954
|
-
|
|
18955
|
-
|
|
18956
|
-
|
|
18934
|
+
Dw as d,
|
|
18935
|
+
Jw as e,
|
|
18936
|
+
Xw as f,
|
|
18957
18937
|
Ai as g,
|
|
18958
|
-
|
|
18938
|
+
Zx as h,
|
|
18959
18939
|
Lu as i,
|
|
18960
18940
|
xr as j,
|
|
18961
18941
|
Jt as k,
|
|
18962
|
-
|
|
18963
|
-
|
|
18964
|
-
|
|
18965
|
-
|
|
18966
|
-
|
|
18967
|
-
|
|
18968
|
-
|
|
18969
|
-
|
|
18942
|
+
vk as l,
|
|
18943
|
+
Ak as m,
|
|
18944
|
+
bk as n,
|
|
18945
|
+
Jx as o,
|
|
18946
|
+
Tk as p,
|
|
18947
|
+
Ek as r,
|
|
18948
|
+
Ck as s,
|
|
18949
|
+
Sk as t,
|
|
18970
18950
|
ei as u,
|
|
18971
|
-
|
|
18951
|
+
Ox as w
|
|
18972
18952
|
};
|
|
18973
|
-
//# sourceMappingURL=skeleton-
|
|
18953
|
+
//# sourceMappingURL=skeleton-CyUpDF_5.js.map
|