@eloquentai/chat-sdk 0.24.0-dev → 0.24.1-dev
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/components/chat/chat.hook.d.ts +2 -1
- package/dist/components/chat/sdk-initialization.hook.d.ts +2 -1
- package/dist/{index-DLHceM4_.js → index-BUaoeTBT.js} +2 -2
- package/dist/{index-DLHceM4_.js.map → index-BUaoeTBT.js.map} +1 -1
- package/dist/{index-B3OStgEa.js → index-LT_qtZ6J.js} +912 -907
- package/dist/{index-B3OStgEa.js.map → index-LT_qtZ6J.js.map} +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as x, jsxs as
|
|
1
|
+
import { jsx as x, jsxs as B, Fragment as Qe } from "react/jsx-runtime";
|
|
2
2
|
import { ChevronDown as qo, X as gr, Copy as nl, ThumbsUp as rl, ThumbsDown as il, FileSearch as ol, CheckCircle as al, Info as sl, XCircle as ll, AlertTriangle as cl, ArrowUp as ul, RefreshCcw as fl } from "lucide-react";
|
|
3
3
|
import { clsx as pl } from "clsx";
|
|
4
4
|
import { twMerge as dl } from "tailwind-merge";
|
|
5
5
|
import * as ue from "react";
|
|
6
|
-
import { useState as V, useEffect as
|
|
6
|
+
import { useState as V, useEffect as te, createContext as pn, useContext as dn, useMemo as st, useRef as se, useCallback as ee } from "react";
|
|
7
7
|
import { useDebounce as br } from "@uidotdev/usehooks";
|
|
8
8
|
import * as Xe from "@radix-ui/react-scroll-area";
|
|
9
9
|
import { ScrollArea as hl } from "@radix-ui/react-scroll-area";
|
|
@@ -11,20 +11,20 @@ import * as Pe from "@radix-ui/react-dialog";
|
|
|
11
11
|
import { useRive as ml, Layout as gl, Alignment as bl, Fit as yl, useStateMachineInput as wl } from "@rive-app/react-canvas";
|
|
12
12
|
import * as ht from "@radix-ui/react-avatar";
|
|
13
13
|
import { createPortal as Kn } from "react-dom";
|
|
14
|
-
import { z as
|
|
14
|
+
import { z as Z } from "zod";
|
|
15
15
|
import xl from "react-dom/client";
|
|
16
16
|
try {
|
|
17
17
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {}, t = new e.Error().stack;
|
|
18
|
-
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "
|
|
18
|
+
t && (e._sentryDebugIds = e._sentryDebugIds || {}, e._sentryDebugIds[t] = "57d60426-af3b-4498-a50e-91d7a02cb135", e._sentryDebugIdIdentifier = "sentry-dbid-57d60426-af3b-4498-a50e-91d7a02cb135");
|
|
19
19
|
} catch {
|
|
20
20
|
}
|
|
21
21
|
{
|
|
22
22
|
let e = typeof window < "u" ? window : typeof global < "u" ? global : typeof globalThis < "u" ? globalThis : typeof self < "u" ? self : {};
|
|
23
|
-
e.SENTRY_RELEASE = { id: "
|
|
23
|
+
e.SENTRY_RELEASE = { id: "468facbaab6485e37ccd7f80b199541c3c953268" };
|
|
24
24
|
}
|
|
25
25
|
if (typeof window < "u") {
|
|
26
26
|
const e = "development";
|
|
27
|
-
import("./index-
|
|
27
|
+
import("./index-BUaoeTBT.js").then((t) => {
|
|
28
28
|
t.init({
|
|
29
29
|
dsn: void 0,
|
|
30
30
|
environment: e,
|
|
@@ -51,7 +51,7 @@ async function kl(e) {
|
|
|
51
51
|
}
|
|
52
52
|
function hn(e) {
|
|
53
53
|
const { className: t, bgColor: n, fgColor: r, src: i, ...o } = e, [a, s] = V(!1);
|
|
54
|
-
|
|
54
|
+
te(() => {
|
|
55
55
|
s(!1);
|
|
56
56
|
}, [i]);
|
|
57
57
|
const l = !i || a;
|
|
@@ -63,7 +63,7 @@ function hn(e) {
|
|
|
63
63
|
t
|
|
64
64
|
),
|
|
65
65
|
...o,
|
|
66
|
-
children: l ? /* @__PURE__ */
|
|
66
|
+
children: l ? /* @__PURE__ */ B("svg", { viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
67
67
|
/* @__PURE__ */ x("circle", { cx: "40", cy: "40", r: "40", fill: n || "#6F33B7" }),
|
|
68
68
|
/* @__PURE__ */ x(
|
|
69
69
|
"path",
|
|
@@ -90,7 +90,7 @@ function Sl({
|
|
|
90
90
|
isOpen: e,
|
|
91
91
|
toggleBubble: t
|
|
92
92
|
}) {
|
|
93
|
-
return /* @__PURE__ */ x("div", { className: "absolute inset-0 m-auto flex items-center justify-center overflow-hidden", children: /* @__PURE__ */
|
|
93
|
+
return /* @__PURE__ */ x("div", { className: "absolute inset-0 m-auto flex items-center justify-center overflow-hidden", children: /* @__PURE__ */ B(
|
|
94
94
|
"div",
|
|
95
95
|
{
|
|
96
96
|
className: "chat-bubble relative flex items-center justify-center w-12 h-12 rounded-full bg-[#000] text-[#fff] cursor-pointer",
|
|
@@ -174,7 +174,7 @@ const vr = ue.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ x(
|
|
|
174
174
|
));
|
|
175
175
|
vr.displayName = "CardFooter";
|
|
176
176
|
const Fo = pn(void 0);
|
|
177
|
-
function
|
|
177
|
+
function Uo(e) {
|
|
178
178
|
return /* @__PURE__ */ x(
|
|
179
179
|
Fo.Provider,
|
|
180
180
|
{
|
|
@@ -193,7 +193,7 @@ const kr = () => {
|
|
|
193
193
|
if (!e)
|
|
194
194
|
throw new Error("useTheme must be used within a ThemeProvider");
|
|
195
195
|
return e;
|
|
196
|
-
},
|
|
196
|
+
}, Bo = ue.forwardRef(({ className: e, children: t, onViewportScroll: n, ...r }, i) => /* @__PURE__ */ B(
|
|
197
197
|
Xe.Root,
|
|
198
198
|
{
|
|
199
199
|
ref: i,
|
|
@@ -213,7 +213,7 @@ const kr = () => {
|
|
|
213
213
|
]
|
|
214
214
|
}
|
|
215
215
|
));
|
|
216
|
-
|
|
216
|
+
Bo.displayName = Xe.Root.displayName;
|
|
217
217
|
const jo = ue.forwardRef(({ className: e, orientation: t = "vertical", ...n }, r) => /* @__PURE__ */ x(
|
|
218
218
|
Xe.ScrollAreaScrollbar,
|
|
219
219
|
{
|
|
@@ -242,9 +242,9 @@ const _l = Pe.Root, Al = Pe.Portal, Ho = ue.forwardRef(({ className: e, ...t },
|
|
|
242
242
|
}
|
|
243
243
|
));
|
|
244
244
|
Ho.displayName = Pe.Overlay.displayName;
|
|
245
|
-
const Vo = ue.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */
|
|
245
|
+
const Vo = ue.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ B(Al, { children: [
|
|
246
246
|
/* @__PURE__ */ x(Ho, {}),
|
|
247
|
-
/* @__PURE__ */
|
|
247
|
+
/* @__PURE__ */ B(
|
|
248
248
|
Pe.Content,
|
|
249
249
|
{
|
|
250
250
|
ref: r,
|
|
@@ -255,7 +255,7 @@ const Vo = ue.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE_
|
|
|
255
255
|
...n,
|
|
256
256
|
children: [
|
|
257
257
|
t,
|
|
258
|
-
/* @__PURE__ */
|
|
258
|
+
/* @__PURE__ */ B(Pe.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground bg-white/90", children: [
|
|
259
259
|
/* @__PURE__ */ x(gr, { className: "h-4 w-4" }),
|
|
260
260
|
/* @__PURE__ */ x("span", { className: "sr-only", children: "Close" })
|
|
261
261
|
] })
|
|
@@ -330,13 +330,13 @@ function Yo({ isWaiting: e = !1, ...t }) {
|
|
|
330
330
|
alignment: bl.TopCenter
|
|
331
331
|
})
|
|
332
332
|
}), s = wl(a, "State Machine 1", "waiting");
|
|
333
|
-
return
|
|
333
|
+
return te(() => {
|
|
334
334
|
if (s)
|
|
335
335
|
try {
|
|
336
336
|
s.value = e;
|
|
337
337
|
} catch {
|
|
338
338
|
}
|
|
339
|
-
}, [a, s, e]),
|
|
339
|
+
}, [a, s, e]), te(() => {
|
|
340
340
|
a && r?.();
|
|
341
341
|
}, [a]), /* @__PURE__ */ x(
|
|
342
342
|
"div",
|
|
@@ -352,7 +352,7 @@ function Yo({ isWaiting: e = !1, ...t }) {
|
|
|
352
352
|
}
|
|
353
353
|
function Ml(e, t = 50, n = !0) {
|
|
354
354
|
const [r, i] = V("");
|
|
355
|
-
return
|
|
355
|
+
return te(() => {
|
|
356
356
|
if (!n) return;
|
|
357
357
|
let o = 0;
|
|
358
358
|
const s = ((c, u) => {
|
|
@@ -372,16 +372,16 @@ function zl(e, t) {
|
|
|
372
372
|
(n.padRight ? " " : "") + "," + (n.padLeft === !1 ? "" : " ")
|
|
373
373
|
).trim();
|
|
374
374
|
}
|
|
375
|
-
const ql = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Fl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,
|
|
375
|
+
const ql = /^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Fl = /^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u, Ul = {};
|
|
376
376
|
function oi(e, t) {
|
|
377
|
-
return (
|
|
377
|
+
return (Ul.jsx ? Fl : ql).test(e);
|
|
378
378
|
}
|
|
379
|
-
const
|
|
379
|
+
const Bl = /[ \t\n\f\r]/g;
|
|
380
380
|
function jl(e) {
|
|
381
381
|
return typeof e == "object" ? e.type === "text" ? ai(e.value) : !1 : ai(e);
|
|
382
382
|
}
|
|
383
383
|
function ai(e) {
|
|
384
|
-
return e.replace(
|
|
384
|
+
return e.replace(Bl, "") === "";
|
|
385
385
|
}
|
|
386
386
|
class Ft {
|
|
387
387
|
/**
|
|
@@ -436,17 +436,17 @@ be.prototype.property = "";
|
|
|
436
436
|
be.prototype.spaceSeparated = !1;
|
|
437
437
|
be.prototype.space = void 0;
|
|
438
438
|
let Hl = 0;
|
|
439
|
-
const j = tt(),
|
|
439
|
+
const j = tt(), re = tt(), Jn = tt(), N = tt(), Q = tt(), lt = tt(), we = tt();
|
|
440
440
|
function tt() {
|
|
441
441
|
return 2 ** ++Hl;
|
|
442
442
|
}
|
|
443
443
|
const Qn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
444
444
|
__proto__: null,
|
|
445
445
|
boolean: j,
|
|
446
|
-
booleanish:
|
|
446
|
+
booleanish: re,
|
|
447
447
|
commaOrSpaceSeparated: we,
|
|
448
448
|
commaSeparated: lt,
|
|
449
|
-
number:
|
|
449
|
+
number: N,
|
|
450
450
|
overloadedBoolean: Jn,
|
|
451
451
|
spaceSeparated: Q
|
|
452
452
|
}, Symbol.toStringTag, { value: "Module" })), Cn = (
|
|
@@ -496,52 +496,52 @@ function mt(e) {
|
|
|
496
496
|
const Qo = mt({
|
|
497
497
|
properties: {
|
|
498
498
|
ariaActiveDescendant: null,
|
|
499
|
-
ariaAtomic:
|
|
499
|
+
ariaAtomic: re,
|
|
500
500
|
ariaAutoComplete: null,
|
|
501
|
-
ariaBusy:
|
|
502
|
-
ariaChecked:
|
|
503
|
-
ariaColCount:
|
|
504
|
-
ariaColIndex:
|
|
505
|
-
ariaColSpan:
|
|
501
|
+
ariaBusy: re,
|
|
502
|
+
ariaChecked: re,
|
|
503
|
+
ariaColCount: N,
|
|
504
|
+
ariaColIndex: N,
|
|
505
|
+
ariaColSpan: N,
|
|
506
506
|
ariaControls: Q,
|
|
507
507
|
ariaCurrent: null,
|
|
508
508
|
ariaDescribedBy: Q,
|
|
509
509
|
ariaDetails: null,
|
|
510
|
-
ariaDisabled:
|
|
510
|
+
ariaDisabled: re,
|
|
511
511
|
ariaDropEffect: Q,
|
|
512
512
|
ariaErrorMessage: null,
|
|
513
|
-
ariaExpanded:
|
|
513
|
+
ariaExpanded: re,
|
|
514
514
|
ariaFlowTo: Q,
|
|
515
|
-
ariaGrabbed:
|
|
515
|
+
ariaGrabbed: re,
|
|
516
516
|
ariaHasPopup: null,
|
|
517
|
-
ariaHidden:
|
|
517
|
+
ariaHidden: re,
|
|
518
518
|
ariaInvalid: null,
|
|
519
519
|
ariaKeyShortcuts: null,
|
|
520
520
|
ariaLabel: null,
|
|
521
521
|
ariaLabelledBy: Q,
|
|
522
|
-
ariaLevel:
|
|
522
|
+
ariaLevel: N,
|
|
523
523
|
ariaLive: null,
|
|
524
|
-
ariaModal:
|
|
525
|
-
ariaMultiLine:
|
|
526
|
-
ariaMultiSelectable:
|
|
524
|
+
ariaModal: re,
|
|
525
|
+
ariaMultiLine: re,
|
|
526
|
+
ariaMultiSelectable: re,
|
|
527
527
|
ariaOrientation: null,
|
|
528
528
|
ariaOwns: Q,
|
|
529
529
|
ariaPlaceholder: null,
|
|
530
|
-
ariaPosInSet:
|
|
531
|
-
ariaPressed:
|
|
532
|
-
ariaReadOnly:
|
|
530
|
+
ariaPosInSet: N,
|
|
531
|
+
ariaPressed: re,
|
|
532
|
+
ariaReadOnly: re,
|
|
533
533
|
ariaRelevant: null,
|
|
534
|
-
ariaRequired:
|
|
534
|
+
ariaRequired: re,
|
|
535
535
|
ariaRoleDescription: Q,
|
|
536
|
-
ariaRowCount:
|
|
537
|
-
ariaRowIndex:
|
|
538
|
-
ariaRowSpan:
|
|
539
|
-
ariaSelected:
|
|
540
|
-
ariaSetSize:
|
|
536
|
+
ariaRowCount: N,
|
|
537
|
+
ariaRowIndex: N,
|
|
538
|
+
ariaRowSpan: N,
|
|
539
|
+
ariaSelected: re,
|
|
540
|
+
ariaSetSize: N,
|
|
541
541
|
ariaSort: null,
|
|
542
|
-
ariaValueMax:
|
|
543
|
-
ariaValueMin:
|
|
544
|
-
ariaValueNow:
|
|
542
|
+
ariaValueMax: N,
|
|
543
|
+
ariaValueMin: N,
|
|
544
|
+
ariaValueNow: N,
|
|
545
545
|
ariaValueText: null,
|
|
546
546
|
role: null
|
|
547
547
|
},
|
|
@@ -587,13 +587,13 @@ const Vl = mt({
|
|
|
587
587
|
checked: j,
|
|
588
588
|
cite: null,
|
|
589
589
|
className: Q,
|
|
590
|
-
cols:
|
|
590
|
+
cols: N,
|
|
591
591
|
colSpan: null,
|
|
592
592
|
content: null,
|
|
593
|
-
contentEditable:
|
|
593
|
+
contentEditable: re,
|
|
594
594
|
controls: j,
|
|
595
595
|
controlsList: Q,
|
|
596
|
-
coords:
|
|
596
|
+
coords: N | lt,
|
|
597
597
|
crossOrigin: null,
|
|
598
598
|
data: null,
|
|
599
599
|
dateTime: null,
|
|
@@ -604,7 +604,7 @@ const Vl = mt({
|
|
|
604
604
|
dirName: null,
|
|
605
605
|
disabled: j,
|
|
606
606
|
download: Jn,
|
|
607
|
-
draggable:
|
|
607
|
+
draggable: re,
|
|
608
608
|
encType: null,
|
|
609
609
|
enterKeyHint: null,
|
|
610
610
|
fetchPriority: null,
|
|
@@ -615,9 +615,9 @@ const Vl = mt({
|
|
|
615
615
|
formNoValidate: j,
|
|
616
616
|
formTarget: null,
|
|
617
617
|
headers: Q,
|
|
618
|
-
height:
|
|
618
|
+
height: N,
|
|
619
619
|
hidden: Jn,
|
|
620
|
-
high:
|
|
620
|
+
high: N,
|
|
621
621
|
href: null,
|
|
622
622
|
hrefLang: null,
|
|
623
623
|
htmlFor: Q,
|
|
@@ -642,14 +642,14 @@ const Vl = mt({
|
|
|
642
642
|
list: null,
|
|
643
643
|
loading: null,
|
|
644
644
|
loop: j,
|
|
645
|
-
low:
|
|
645
|
+
low: N,
|
|
646
646
|
manifest: null,
|
|
647
647
|
max: null,
|
|
648
|
-
maxLength:
|
|
648
|
+
maxLength: N,
|
|
649
649
|
media: null,
|
|
650
650
|
method: null,
|
|
651
651
|
min: null,
|
|
652
|
-
minLength:
|
|
652
|
+
minLength: N,
|
|
653
653
|
multiple: j,
|
|
654
654
|
muted: j,
|
|
655
655
|
name: null,
|
|
@@ -745,7 +745,7 @@ const Vl = mt({
|
|
|
745
745
|
onWaiting: null,
|
|
746
746
|
onWheel: null,
|
|
747
747
|
open: j,
|
|
748
|
-
optimum:
|
|
748
|
+
optimum: N,
|
|
749
749
|
pattern: null,
|
|
750
750
|
ping: Q,
|
|
751
751
|
placeholder: null,
|
|
@@ -760,8 +760,8 @@ const Vl = mt({
|
|
|
760
760
|
rel: Q,
|
|
761
761
|
required: j,
|
|
762
762
|
reversed: j,
|
|
763
|
-
rows:
|
|
764
|
-
rowSpan:
|
|
763
|
+
rows: N,
|
|
764
|
+
rowSpan: N,
|
|
765
765
|
sandbox: Q,
|
|
766
766
|
scope: null,
|
|
767
767
|
scoped: j,
|
|
@@ -771,27 +771,27 @@ const Vl = mt({
|
|
|
771
771
|
shadowRootDelegatesFocus: j,
|
|
772
772
|
shadowRootMode: null,
|
|
773
773
|
shape: null,
|
|
774
|
-
size:
|
|
774
|
+
size: N,
|
|
775
775
|
sizes: null,
|
|
776
776
|
slot: null,
|
|
777
|
-
span:
|
|
778
|
-
spellCheck:
|
|
777
|
+
span: N,
|
|
778
|
+
spellCheck: re,
|
|
779
779
|
src: null,
|
|
780
780
|
srcDoc: null,
|
|
781
781
|
srcLang: null,
|
|
782
782
|
srcSet: null,
|
|
783
|
-
start:
|
|
783
|
+
start: N,
|
|
784
784
|
step: null,
|
|
785
785
|
style: null,
|
|
786
|
-
tabIndex:
|
|
786
|
+
tabIndex: N,
|
|
787
787
|
target: null,
|
|
788
788
|
title: null,
|
|
789
789
|
translate: null,
|
|
790
790
|
type: null,
|
|
791
791
|
typeMustMatch: j,
|
|
792
792
|
useMap: null,
|
|
793
|
-
value:
|
|
794
|
-
width:
|
|
793
|
+
value: re,
|
|
794
|
+
width: N,
|
|
795
795
|
wrap: null,
|
|
796
796
|
writingSuggestions: null,
|
|
797
797
|
// Legacy.
|
|
@@ -808,11 +808,11 @@ const Vl = mt({
|
|
|
808
808
|
// `<body>`. Use CSS `background-image` instead
|
|
809
809
|
bgColor: null,
|
|
810
810
|
// `<body>` and table elements. Use CSS `background-color` instead
|
|
811
|
-
border:
|
|
811
|
+
border: N,
|
|
812
812
|
// `<table>`. Use CSS `border-width` instead,
|
|
813
813
|
borderColor: null,
|
|
814
814
|
// `<table>`. Use CSS `border-color` instead,
|
|
815
|
-
bottomMargin:
|
|
815
|
+
bottomMargin: N,
|
|
816
816
|
// `<body>`
|
|
817
817
|
cellPadding: null,
|
|
818
818
|
// `<table>`
|
|
@@ -846,9 +846,9 @@ const Vl = mt({
|
|
|
846
846
|
// `<table>`
|
|
847
847
|
frameBorder: null,
|
|
848
848
|
// `<iframe>`. Use CSS `border` instead
|
|
849
|
-
hSpace:
|
|
849
|
+
hSpace: N,
|
|
850
850
|
// `<img>` and `<object>`
|
|
851
|
-
leftMargin:
|
|
851
|
+
leftMargin: N,
|
|
852
852
|
// `<body>`
|
|
853
853
|
link: null,
|
|
854
854
|
// `<body>`. Use CSS `a:link {color: *}` instead
|
|
@@ -856,9 +856,9 @@ const Vl = mt({
|
|
|
856
856
|
// `<frame>`, `<iframe>`, and `<img>`. Use an `<a>`
|
|
857
857
|
lowSrc: null,
|
|
858
858
|
// `<img>`. Use a `<picture>`
|
|
859
|
-
marginHeight:
|
|
859
|
+
marginHeight: N,
|
|
860
860
|
// `<body>`
|
|
861
|
-
marginWidth:
|
|
861
|
+
marginWidth: N,
|
|
862
862
|
// `<body>`
|
|
863
863
|
noResize: j,
|
|
864
864
|
// `<frame>`
|
|
@@ -876,13 +876,13 @@ const Vl = mt({
|
|
|
876
876
|
// `<isindex>`
|
|
877
877
|
rev: null,
|
|
878
878
|
// `<link>`
|
|
879
|
-
rightMargin:
|
|
879
|
+
rightMargin: N,
|
|
880
880
|
// `<body>`
|
|
881
881
|
rules: null,
|
|
882
882
|
// `<table>`
|
|
883
883
|
scheme: null,
|
|
884
884
|
// `<meta>`
|
|
885
|
-
scrolling:
|
|
885
|
+
scrolling: re,
|
|
886
886
|
// `<frame>`. Use overflow in the child context
|
|
887
887
|
standby: null,
|
|
888
888
|
// `<object>`
|
|
@@ -890,7 +890,7 @@ const Vl = mt({
|
|
|
890
890
|
// `<table>`
|
|
891
891
|
text: null,
|
|
892
892
|
// `<body>`. Use CSS `color` instead
|
|
893
|
-
topMargin:
|
|
893
|
+
topMargin: N,
|
|
894
894
|
// `<body>`
|
|
895
895
|
valueType: null,
|
|
896
896
|
// `<param>`
|
|
@@ -900,7 +900,7 @@ const Vl = mt({
|
|
|
900
900
|
// Several. Use CSS `vertical-align` instead
|
|
901
901
|
vLink: null,
|
|
902
902
|
// `<body>`. Use CSS `a:visited {color}` instead
|
|
903
|
-
vSpace:
|
|
903
|
+
vSpace: N,
|
|
904
904
|
// `<img>` and `<object>`
|
|
905
905
|
// Non-standard Properties.
|
|
906
906
|
allowTransparency: null,
|
|
@@ -910,7 +910,7 @@ const Vl = mt({
|
|
|
910
910
|
disableRemotePlayback: j,
|
|
911
911
|
prefix: null,
|
|
912
912
|
property: null,
|
|
913
|
-
results:
|
|
913
|
+
results: N,
|
|
914
914
|
security: null,
|
|
915
915
|
unselectable: null
|
|
916
916
|
},
|
|
@@ -1094,27 +1094,27 @@ const Vl = mt({
|
|
|
1094
1094
|
},
|
|
1095
1095
|
properties: {
|
|
1096
1096
|
about: we,
|
|
1097
|
-
accentHeight:
|
|
1097
|
+
accentHeight: N,
|
|
1098
1098
|
accumulate: null,
|
|
1099
1099
|
additive: null,
|
|
1100
1100
|
alignmentBaseline: null,
|
|
1101
|
-
alphabetic:
|
|
1102
|
-
amplitude:
|
|
1101
|
+
alphabetic: N,
|
|
1102
|
+
amplitude: N,
|
|
1103
1103
|
arabicForm: null,
|
|
1104
|
-
ascent:
|
|
1104
|
+
ascent: N,
|
|
1105
1105
|
attributeName: null,
|
|
1106
1106
|
attributeType: null,
|
|
1107
|
-
azimuth:
|
|
1107
|
+
azimuth: N,
|
|
1108
1108
|
bandwidth: null,
|
|
1109
1109
|
baselineShift: null,
|
|
1110
1110
|
baseFrequency: null,
|
|
1111
1111
|
baseProfile: null,
|
|
1112
1112
|
bbox: null,
|
|
1113
1113
|
begin: null,
|
|
1114
|
-
bias:
|
|
1114
|
+
bias: N,
|
|
1115
1115
|
by: null,
|
|
1116
1116
|
calcMode: null,
|
|
1117
|
-
capHeight:
|
|
1117
|
+
capHeight: N,
|
|
1118
1118
|
className: Q,
|
|
1119
1119
|
clip: null,
|
|
1120
1120
|
clipPath: null,
|
|
@@ -1135,26 +1135,26 @@ const Vl = mt({
|
|
|
1135
1135
|
d: null,
|
|
1136
1136
|
dataType: null,
|
|
1137
1137
|
defaultAction: null,
|
|
1138
|
-
descent:
|
|
1139
|
-
diffuseConstant:
|
|
1138
|
+
descent: N,
|
|
1139
|
+
diffuseConstant: N,
|
|
1140
1140
|
direction: null,
|
|
1141
1141
|
display: null,
|
|
1142
1142
|
dur: null,
|
|
1143
|
-
divisor:
|
|
1143
|
+
divisor: N,
|
|
1144
1144
|
dominantBaseline: null,
|
|
1145
1145
|
download: j,
|
|
1146
1146
|
dx: null,
|
|
1147
1147
|
dy: null,
|
|
1148
1148
|
edgeMode: null,
|
|
1149
1149
|
editable: null,
|
|
1150
|
-
elevation:
|
|
1150
|
+
elevation: N,
|
|
1151
1151
|
enableBackground: null,
|
|
1152
1152
|
end: null,
|
|
1153
1153
|
event: null,
|
|
1154
|
-
exponent:
|
|
1154
|
+
exponent: N,
|
|
1155
1155
|
externalResourcesRequired: null,
|
|
1156
1156
|
fill: null,
|
|
1157
|
-
fillOpacity:
|
|
1157
|
+
fillOpacity: N,
|
|
1158
1158
|
fillRule: null,
|
|
1159
1159
|
filter: null,
|
|
1160
1160
|
filterRes: null,
|
|
@@ -1184,27 +1184,27 @@ const Vl = mt({
|
|
|
1184
1184
|
gradientTransform: null,
|
|
1185
1185
|
gradientUnits: null,
|
|
1186
1186
|
handler: null,
|
|
1187
|
-
hanging:
|
|
1187
|
+
hanging: N,
|
|
1188
1188
|
hatchContentUnits: null,
|
|
1189
1189
|
hatchUnits: null,
|
|
1190
1190
|
height: null,
|
|
1191
1191
|
href: null,
|
|
1192
1192
|
hrefLang: null,
|
|
1193
|
-
horizAdvX:
|
|
1194
|
-
horizOriginX:
|
|
1195
|
-
horizOriginY:
|
|
1193
|
+
horizAdvX: N,
|
|
1194
|
+
horizOriginX: N,
|
|
1195
|
+
horizOriginY: N,
|
|
1196
1196
|
id: null,
|
|
1197
|
-
ideographic:
|
|
1197
|
+
ideographic: N,
|
|
1198
1198
|
imageRendering: null,
|
|
1199
1199
|
initialVisibility: null,
|
|
1200
1200
|
in: null,
|
|
1201
1201
|
in2: null,
|
|
1202
|
-
intercept:
|
|
1203
|
-
k:
|
|
1204
|
-
k1:
|
|
1205
|
-
k2:
|
|
1206
|
-
k3:
|
|
1207
|
-
k4:
|
|
1202
|
+
intercept: N,
|
|
1203
|
+
k: N,
|
|
1204
|
+
k1: N,
|
|
1205
|
+
k2: N,
|
|
1206
|
+
k3: N,
|
|
1207
|
+
k4: N,
|
|
1208
1208
|
kernelMatrix: we,
|
|
1209
1209
|
kernelUnitLength: null,
|
|
1210
1210
|
keyPoints: null,
|
|
@@ -1218,7 +1218,7 @@ const Vl = mt({
|
|
|
1218
1218
|
lengthAdjust: null,
|
|
1219
1219
|
letterSpacing: null,
|
|
1220
1220
|
lightingColor: null,
|
|
1221
|
-
limitingConeAngle:
|
|
1221
|
+
limitingConeAngle: N,
|
|
1222
1222
|
local: null,
|
|
1223
1223
|
markerEnd: null,
|
|
1224
1224
|
markerMid: null,
|
|
@@ -1234,7 +1234,7 @@ const Vl = mt({
|
|
|
1234
1234
|
media: null,
|
|
1235
1235
|
mediaCharacterEncoding: null,
|
|
1236
1236
|
mediaContentEncodings: null,
|
|
1237
|
-
mediaSize:
|
|
1237
|
+
mediaSize: N,
|
|
1238
1238
|
mediaTime: null,
|
|
1239
1239
|
method: null,
|
|
1240
1240
|
min: null,
|
|
@@ -1340,12 +1340,12 @@ const Vl = mt({
|
|
|
1340
1340
|
origin: null,
|
|
1341
1341
|
overflow: null,
|
|
1342
1342
|
overlay: null,
|
|
1343
|
-
overlinePosition:
|
|
1344
|
-
overlineThickness:
|
|
1343
|
+
overlinePosition: N,
|
|
1344
|
+
overlineThickness: N,
|
|
1345
1345
|
paintOrder: null,
|
|
1346
1346
|
panose1: null,
|
|
1347
1347
|
path: null,
|
|
1348
|
-
pathLength:
|
|
1348
|
+
pathLength: N,
|
|
1349
1349
|
patternContentUnits: null,
|
|
1350
1350
|
patternTransform: null,
|
|
1351
1351
|
patternUnits: null,
|
|
@@ -1355,9 +1355,9 @@ const Vl = mt({
|
|
|
1355
1355
|
playbackOrder: null,
|
|
1356
1356
|
pointerEvents: null,
|
|
1357
1357
|
points: null,
|
|
1358
|
-
pointsAtX:
|
|
1359
|
-
pointsAtY:
|
|
1360
|
-
pointsAtZ:
|
|
1358
|
+
pointsAtX: N,
|
|
1359
|
+
pointsAtY: N,
|
|
1360
|
+
pointsAtZ: N,
|
|
1361
1361
|
preserveAlpha: null,
|
|
1362
1362
|
preserveAspectRatio: null,
|
|
1363
1363
|
primitiveUnits: null,
|
|
@@ -1389,8 +1389,8 @@ const Vl = mt({
|
|
|
1389
1389
|
side: null,
|
|
1390
1390
|
slope: null,
|
|
1391
1391
|
snapshotTime: null,
|
|
1392
|
-
specularConstant:
|
|
1393
|
-
specularExponent:
|
|
1392
|
+
specularConstant: N,
|
|
1393
|
+
specularExponent: N,
|
|
1394
1394
|
spreadMethod: null,
|
|
1395
1395
|
spacing: null,
|
|
1396
1396
|
startOffset: null,
|
|
@@ -1400,30 +1400,30 @@ const Vl = mt({
|
|
|
1400
1400
|
stitchTiles: null,
|
|
1401
1401
|
stopColor: null,
|
|
1402
1402
|
stopOpacity: null,
|
|
1403
|
-
strikethroughPosition:
|
|
1404
|
-
strikethroughThickness:
|
|
1403
|
+
strikethroughPosition: N,
|
|
1404
|
+
strikethroughThickness: N,
|
|
1405
1405
|
string: null,
|
|
1406
1406
|
stroke: null,
|
|
1407
1407
|
strokeDashArray: we,
|
|
1408
1408
|
strokeDashOffset: null,
|
|
1409
1409
|
strokeLineCap: null,
|
|
1410
1410
|
strokeLineJoin: null,
|
|
1411
|
-
strokeMiterLimit:
|
|
1412
|
-
strokeOpacity:
|
|
1411
|
+
strokeMiterLimit: N,
|
|
1412
|
+
strokeOpacity: N,
|
|
1413
1413
|
strokeWidth: null,
|
|
1414
1414
|
style: null,
|
|
1415
|
-
surfaceScale:
|
|
1415
|
+
surfaceScale: N,
|
|
1416
1416
|
syncBehavior: null,
|
|
1417
1417
|
syncBehaviorDefault: null,
|
|
1418
1418
|
syncMaster: null,
|
|
1419
1419
|
syncTolerance: null,
|
|
1420
1420
|
syncToleranceDefault: null,
|
|
1421
1421
|
systemLanguage: we,
|
|
1422
|
-
tabIndex:
|
|
1422
|
+
tabIndex: N,
|
|
1423
1423
|
tableValues: null,
|
|
1424
1424
|
target: null,
|
|
1425
|
-
targetX:
|
|
1426
|
-
targetY:
|
|
1425
|
+
targetX: N,
|
|
1426
|
+
targetY: N,
|
|
1427
1427
|
textAnchor: null,
|
|
1428
1428
|
textDecoration: null,
|
|
1429
1429
|
textRendering: null,
|
|
@@ -1438,22 +1438,22 @@ const Vl = mt({
|
|
|
1438
1438
|
transformOrigin: null,
|
|
1439
1439
|
u1: null,
|
|
1440
1440
|
u2: null,
|
|
1441
|
-
underlinePosition:
|
|
1442
|
-
underlineThickness:
|
|
1441
|
+
underlinePosition: N,
|
|
1442
|
+
underlineThickness: N,
|
|
1443
1443
|
unicode: null,
|
|
1444
1444
|
unicodeBidi: null,
|
|
1445
1445
|
unicodeRange: null,
|
|
1446
|
-
unitsPerEm:
|
|
1446
|
+
unitsPerEm: N,
|
|
1447
1447
|
values: null,
|
|
1448
|
-
vAlphabetic:
|
|
1449
|
-
vMathematical:
|
|
1448
|
+
vAlphabetic: N,
|
|
1449
|
+
vMathematical: N,
|
|
1450
1450
|
vectorEffect: null,
|
|
1451
|
-
vHanging:
|
|
1452
|
-
vIdeographic:
|
|
1451
|
+
vHanging: N,
|
|
1452
|
+
vIdeographic: N,
|
|
1453
1453
|
version: null,
|
|
1454
|
-
vertAdvY:
|
|
1455
|
-
vertOriginX:
|
|
1456
|
-
vertOriginY:
|
|
1454
|
+
vertAdvY: N,
|
|
1455
|
+
vertOriginX: N,
|
|
1456
|
+
vertOriginY: N,
|
|
1457
1457
|
viewBox: null,
|
|
1458
1458
|
viewTarget: null,
|
|
1459
1459
|
visibility: null,
|
|
@@ -1465,7 +1465,7 @@ const Vl = mt({
|
|
|
1465
1465
|
x1: null,
|
|
1466
1466
|
x2: null,
|
|
1467
1467
|
xChannelSelector: null,
|
|
1468
|
-
xHeight:
|
|
1468
|
+
xHeight: N,
|
|
1469
1469
|
y: null,
|
|
1470
1470
|
y1: null,
|
|
1471
1471
|
y2: null,
|
|
@@ -1558,81 +1558,81 @@ function ec() {
|
|
|
1558
1558
|
ci = 1;
|
|
1559
1559
|
var e = /\/\*[^*]*\*+([^/*][^*]*\*+)*\//g, t = /\n/g, n = /^\s*/, r = /^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/, i = /^:\s*/, o = /^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/, a = /^[;\s]*/, s = /^\s+|\s+$/g, l = `
|
|
1560
1560
|
`, c = "/", u = "*", f = "", d = "comment", p = "declaration";
|
|
1561
|
-
_n = function(b,
|
|
1561
|
+
_n = function(b, S) {
|
|
1562
1562
|
if (typeof b != "string")
|
|
1563
1563
|
throw new TypeError("First argument must be a string");
|
|
1564
1564
|
if (!b) return [];
|
|
1565
|
-
|
|
1566
|
-
var y = 1,
|
|
1565
|
+
S = S || {};
|
|
1566
|
+
var y = 1, k = 1;
|
|
1567
1567
|
function E(_) {
|
|
1568
|
-
var
|
|
1569
|
-
|
|
1568
|
+
var T = _.match(t);
|
|
1569
|
+
T && (y += T.length);
|
|
1570
1570
|
var z = _.lastIndexOf(l);
|
|
1571
|
-
|
|
1571
|
+
k = ~z ? _.length - z : k + _.length;
|
|
1572
1572
|
}
|
|
1573
1573
|
function P() {
|
|
1574
|
-
var _ = { line: y, column:
|
|
1575
|
-
return function(
|
|
1576
|
-
return
|
|
1574
|
+
var _ = { line: y, column: k };
|
|
1575
|
+
return function(T) {
|
|
1576
|
+
return T.position = new L(_), A(), T;
|
|
1577
1577
|
};
|
|
1578
1578
|
}
|
|
1579
1579
|
function L(_) {
|
|
1580
|
-
this.start = _, this.end = { line: y, column:
|
|
1580
|
+
this.start = _, this.end = { line: y, column: k }, this.source = S.source;
|
|
1581
1581
|
}
|
|
1582
1582
|
L.prototype.content = b;
|
|
1583
1583
|
function v(_) {
|
|
1584
|
-
var
|
|
1585
|
-
|
|
1584
|
+
var T = new Error(
|
|
1585
|
+
S.source + ":" + y + ":" + k + ": " + _
|
|
1586
1586
|
);
|
|
1587
|
-
if (
|
|
1587
|
+
if (T.reason = _, T.filename = S.source, T.line = y, T.column = k, T.source = b, !S.silent) throw T;
|
|
1588
1588
|
}
|
|
1589
1589
|
function M(_) {
|
|
1590
|
-
var
|
|
1591
|
-
if (
|
|
1592
|
-
var z =
|
|
1593
|
-
return E(z), b = b.slice(z.length),
|
|
1590
|
+
var T = _.exec(b);
|
|
1591
|
+
if (T) {
|
|
1592
|
+
var z = T[0];
|
|
1593
|
+
return E(z), b = b.slice(z.length), T;
|
|
1594
1594
|
}
|
|
1595
1595
|
}
|
|
1596
1596
|
function A() {
|
|
1597
1597
|
M(n);
|
|
1598
1598
|
}
|
|
1599
1599
|
function D(_) {
|
|
1600
|
-
var
|
|
1601
|
-
for (_ = _ || [];
|
|
1602
|
-
|
|
1600
|
+
var T;
|
|
1601
|
+
for (_ = _ || []; T = w(); )
|
|
1602
|
+
T !== !1 && _.push(T);
|
|
1603
1603
|
return _;
|
|
1604
1604
|
}
|
|
1605
1605
|
function w() {
|
|
1606
1606
|
var _ = P();
|
|
1607
1607
|
if (!(c != b.charAt(0) || u != b.charAt(1))) {
|
|
1608
|
-
for (var
|
|
1609
|
-
++
|
|
1610
|
-
if (
|
|
1608
|
+
for (var T = 2; f != b.charAt(T) && (u != b.charAt(T) || c != b.charAt(T + 1)); )
|
|
1609
|
+
++T;
|
|
1610
|
+
if (T += 2, f === b.charAt(T - 1))
|
|
1611
1611
|
return v("End of comment missing");
|
|
1612
|
-
var z = b.slice(2,
|
|
1613
|
-
return
|
|
1612
|
+
var z = b.slice(2, T - 2);
|
|
1613
|
+
return k += 2, E(z), b = b.slice(T), k += 2, _({
|
|
1614
1614
|
type: d,
|
|
1615
1615
|
comment: z
|
|
1616
1616
|
});
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
|
-
function
|
|
1620
|
-
var _ = P(),
|
|
1621
|
-
if (
|
|
1619
|
+
function R() {
|
|
1620
|
+
var _ = P(), T = M(r);
|
|
1621
|
+
if (T) {
|
|
1622
1622
|
if (w(), !M(i)) return v("property missing ':'");
|
|
1623
|
-
var z = M(o),
|
|
1623
|
+
var z = M(o), K = _({
|
|
1624
1624
|
type: p,
|
|
1625
|
-
property: h(
|
|
1625
|
+
property: h(T[0].replace(e, f)),
|
|
1626
1626
|
value: z ? h(z[0].replace(e, f)) : f
|
|
1627
1627
|
});
|
|
1628
|
-
return M(a),
|
|
1628
|
+
return M(a), K;
|
|
1629
1629
|
}
|
|
1630
1630
|
}
|
|
1631
1631
|
function I() {
|
|
1632
1632
|
var _ = [];
|
|
1633
1633
|
D(_);
|
|
1634
|
-
for (var
|
|
1635
|
-
|
|
1634
|
+
for (var T; T = R(); )
|
|
1635
|
+
T !== !1 && (_.push(T), D(_));
|
|
1636
1636
|
return _;
|
|
1637
1637
|
}
|
|
1638
1638
|
return A(), I();
|
|
@@ -4384,7 +4384,7 @@ function gt(e) {
|
|
|
4384
4384
|
}
|
|
4385
4385
|
return t.join("") + e.slice(r);
|
|
4386
4386
|
}
|
|
4387
|
-
function
|
|
4387
|
+
function W(e, t, n, r) {
|
|
4388
4388
|
const i = r ? r - 1 : Number.POSITIVE_INFINITY;
|
|
4389
4389
|
let o = 0;
|
|
4390
4390
|
return a;
|
|
@@ -4407,7 +4407,7 @@ function Pc(e) {
|
|
|
4407
4407
|
e.consume(s);
|
|
4408
4408
|
return;
|
|
4409
4409
|
}
|
|
4410
|
-
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"),
|
|
4410
|
+
return e.enter("lineEnding"), e.consume(s), e.exit("lineEnding"), W(e, t, "linePrefix");
|
|
4411
4411
|
}
|
|
4412
4412
|
function i(s) {
|
|
4413
4413
|
return e.enter("paragraph"), o(s);
|
|
@@ -4445,7 +4445,7 @@ function zc(e) {
|
|
|
4445
4445
|
}
|
|
4446
4446
|
function l(E) {
|
|
4447
4447
|
if (r++, t.containerState._closeFlow) {
|
|
4448
|
-
t.containerState._closeFlow = void 0, i &&
|
|
4448
|
+
t.containerState._closeFlow = void 0, i && k();
|
|
4449
4449
|
const P = t.events.length;
|
|
4450
4450
|
let L = P, v;
|
|
4451
4451
|
for (; L--; )
|
|
@@ -4474,7 +4474,7 @@ function zc(e) {
|
|
|
4474
4474
|
return t.containerState = {}, e.check(yi, u, f)(E);
|
|
4475
4475
|
}
|
|
4476
4476
|
function u(E) {
|
|
4477
|
-
return i &&
|
|
4477
|
+
return i && k(), y(r), d(E);
|
|
4478
4478
|
}
|
|
4479
4479
|
function f(E) {
|
|
4480
4480
|
return t.parser.lazy[t.now().line] = r !== n.length, a = t.now().offset, h(E);
|
|
@@ -4487,7 +4487,7 @@ function zc(e) {
|
|
|
4487
4487
|
}
|
|
4488
4488
|
function h(E) {
|
|
4489
4489
|
if (E === null) {
|
|
4490
|
-
i &&
|
|
4490
|
+
i && k(), y(0), e.consume(E);
|
|
4491
4491
|
return;
|
|
4492
4492
|
}
|
|
4493
4493
|
return i = i || t.parser.flow(t.now()), e.enter("chunkFlow", {
|
|
@@ -4498,12 +4498,12 @@ function zc(e) {
|
|
|
4498
4498
|
}
|
|
4499
4499
|
function b(E) {
|
|
4500
4500
|
if (E === null) {
|
|
4501
|
-
|
|
4501
|
+
S(e.exit("chunkFlow"), !0), y(0), e.consume(E);
|
|
4502
4502
|
return;
|
|
4503
4503
|
}
|
|
4504
|
-
return q(E) ? (e.consume(E),
|
|
4504
|
+
return q(E) ? (e.consume(E), S(e.exit("chunkFlow")), r = 0, t.interrupt = void 0, s) : (e.consume(E), b);
|
|
4505
4505
|
}
|
|
4506
|
-
function
|
|
4506
|
+
function S(E, P) {
|
|
4507
4507
|
const L = t.sliceStream(E);
|
|
4508
4508
|
if (P && L.push(null), E.previous = o, o && (o.next = E), o = E, i.defineSkip(E.start), i.write(L), t.parser.lazy[E.start.line]) {
|
|
4509
4509
|
let v = i.events.length;
|
|
@@ -4540,12 +4540,12 @@ function zc(e) {
|
|
|
4540
4540
|
}
|
|
4541
4541
|
n.length = E;
|
|
4542
4542
|
}
|
|
4543
|
-
function
|
|
4543
|
+
function k() {
|
|
4544
4544
|
i.write([null]), o = void 0, i = void 0, t.containerState._closeFlow = void 0;
|
|
4545
4545
|
}
|
|
4546
4546
|
}
|
|
4547
4547
|
function qc(e, t, n) {
|
|
4548
|
-
return
|
|
4548
|
+
return W(e, e.attempt(this.parser.constructs.document, t, n), "linePrefix", this.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4);
|
|
4549
4549
|
}
|
|
4550
4550
|
function ft(e) {
|
|
4551
4551
|
if (e === null || J(e) || et(e))
|
|
@@ -4565,7 +4565,7 @@ function bn(e, t, n) {
|
|
|
4565
4565
|
const er = {
|
|
4566
4566
|
name: "attention",
|
|
4567
4567
|
resolveAll: Fc,
|
|
4568
|
-
tokenize:
|
|
4568
|
+
tokenize: Uc
|
|
4569
4569
|
};
|
|
4570
4570
|
function Fc(e, t) {
|
|
4571
4571
|
let n = -1, r, i, o, a, s, l, c, u;
|
|
@@ -4622,7 +4622,7 @@ function Fc(e, t) {
|
|
|
4622
4622
|
e[n][1].type === "attentionSequence" && (e[n][1].type = "data");
|
|
4623
4623
|
return e;
|
|
4624
4624
|
}
|
|
4625
|
-
function
|
|
4625
|
+
function Uc(e, t) {
|
|
4626
4626
|
const n = this.parser.constructs.attentionMarkers.null, r = this.previous, i = ft(r);
|
|
4627
4627
|
let o;
|
|
4628
4628
|
return a;
|
|
@@ -4639,7 +4639,7 @@ function Bc(e, t) {
|
|
|
4639
4639
|
function wi(e, t) {
|
|
4640
4640
|
e.column += t, e.offset += t, e._bufferIndex += t;
|
|
4641
4641
|
}
|
|
4642
|
-
const
|
|
4642
|
+
const Bc = {
|
|
4643
4643
|
name: "autolink",
|
|
4644
4644
|
tokenize: jc
|
|
4645
4645
|
};
|
|
@@ -4678,14 +4678,14 @@ function jc(e, t, n) {
|
|
|
4678
4678
|
return n(p);
|
|
4679
4679
|
}
|
|
4680
4680
|
}
|
|
4681
|
-
const
|
|
4681
|
+
const Ut = {
|
|
4682
4682
|
partial: !0,
|
|
4683
4683
|
tokenize: Hc
|
|
4684
4684
|
};
|
|
4685
4685
|
function Hc(e, t, n) {
|
|
4686
4686
|
return r;
|
|
4687
4687
|
function r(o) {
|
|
4688
|
-
return H(o) ?
|
|
4688
|
+
return H(o) ? W(e, i, "linePrefix")(o) : i(o);
|
|
4689
4689
|
}
|
|
4690
4690
|
function i(o) {
|
|
4691
4691
|
return o === null || q(o) ? t(o) : n(o);
|
|
@@ -4719,7 +4719,7 @@ function $c(e, t, n) {
|
|
|
4719
4719
|
const r = this;
|
|
4720
4720
|
return i;
|
|
4721
4721
|
function i(a) {
|
|
4722
|
-
return H(a) ?
|
|
4722
|
+
return H(a) ? W(e, o, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(a) : o(a);
|
|
4723
4723
|
}
|
|
4724
4724
|
function o(a) {
|
|
4725
4725
|
return e.attempt(ha, t, n)(a);
|
|
@@ -4789,7 +4789,7 @@ function Yc(e, t, n) {
|
|
|
4789
4789
|
return o = M && M[1].type === "linePrefix" ? M[2].sliceSerialize(M[1], !0).length : 0, s = v, e.enter("codeFenced"), e.enter("codeFencedFence"), e.enter("codeFencedFenceSequence"), u(v);
|
|
4790
4790
|
}
|
|
4791
4791
|
function u(v) {
|
|
4792
|
-
return v === s ? (a++, e.consume(v), u) : a < 3 ? n(v) : (e.exit("codeFencedFenceSequence"), H(v) ?
|
|
4792
|
+
return v === s ? (a++, e.consume(v), u) : a < 3 ? n(v) : (e.exit("codeFencedFenceSequence"), H(v) ? W(e, f, "whitespace")(v) : f(v));
|
|
4793
4793
|
}
|
|
4794
4794
|
function f(v) {
|
|
4795
4795
|
return v === null || q(v) ? (e.exit("codeFencedFence"), r.interrupt ? t(v) : e.check(xi, b, P)(v)) : (e.enter("codeFencedFenceInfo"), e.enter("chunkString", {
|
|
@@ -4797,7 +4797,7 @@ function Yc(e, t, n) {
|
|
|
4797
4797
|
}), d(v));
|
|
4798
4798
|
}
|
|
4799
4799
|
function d(v) {
|
|
4800
|
-
return v === null || q(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(v)) : H(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"),
|
|
4800
|
+
return v === null || q(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), f(v)) : H(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceInfo"), W(e, p, "whitespace")(v)) : v === 96 && v === s ? n(v) : (e.consume(v), d);
|
|
4801
4801
|
}
|
|
4802
4802
|
function p(v) {
|
|
4803
4803
|
return v === null || q(v) ? f(v) : (e.enter("codeFencedFenceMeta"), e.enter("chunkString", {
|
|
@@ -4808,19 +4808,19 @@ function Yc(e, t, n) {
|
|
|
4808
4808
|
return v === null || q(v) ? (e.exit("chunkString"), e.exit("codeFencedFenceMeta"), f(v)) : v === 96 && v === s ? n(v) : (e.consume(v), h);
|
|
4809
4809
|
}
|
|
4810
4810
|
function b(v) {
|
|
4811
|
-
return e.attempt(i, P,
|
|
4811
|
+
return e.attempt(i, P, S)(v);
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function S(v) {
|
|
4814
4814
|
return e.enter("lineEnding"), e.consume(v), e.exit("lineEnding"), y;
|
|
4815
4815
|
}
|
|
4816
4816
|
function y(v) {
|
|
4817
|
-
return o > 0 && H(v) ?
|
|
4817
|
+
return o > 0 && H(v) ? W(e, k, "linePrefix", o + 1)(v) : k(v);
|
|
4818
4818
|
}
|
|
4819
|
-
function
|
|
4819
|
+
function k(v) {
|
|
4820
4820
|
return v === null || q(v) ? e.check(xi, b, P)(v) : (e.enter("codeFlowValue"), E(v));
|
|
4821
4821
|
}
|
|
4822
4822
|
function E(v) {
|
|
4823
|
-
return v === null || q(v) ? (e.exit("codeFlowValue"),
|
|
4823
|
+
return v === null || q(v) ? (e.exit("codeFlowValue"), k(v)) : (e.consume(v), E);
|
|
4824
4824
|
}
|
|
4825
4825
|
function P(v) {
|
|
4826
4826
|
return e.exit("codeFenced"), t(v);
|
|
@@ -4829,18 +4829,18 @@ function Yc(e, t, n) {
|
|
|
4829
4829
|
let D = 0;
|
|
4830
4830
|
return w;
|
|
4831
4831
|
function w(z) {
|
|
4832
|
-
return v.enter("lineEnding"), v.consume(z), v.exit("lineEnding"),
|
|
4832
|
+
return v.enter("lineEnding"), v.consume(z), v.exit("lineEnding"), R;
|
|
4833
4833
|
}
|
|
4834
|
-
function
|
|
4835
|
-
return v.enter("codeFencedFence"), H(z) ?
|
|
4834
|
+
function R(z) {
|
|
4835
|
+
return v.enter("codeFencedFence"), H(z) ? W(v, I, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(z) : I(z);
|
|
4836
4836
|
}
|
|
4837
4837
|
function I(z) {
|
|
4838
4838
|
return z === s ? (v.enter("codeFencedFenceSequence"), _(z)) : A(z);
|
|
4839
4839
|
}
|
|
4840
4840
|
function _(z) {
|
|
4841
|
-
return z === s ? (D++, v.consume(z), _) : D >= a ? (v.exit("codeFencedFenceSequence"), H(z) ?
|
|
4841
|
+
return z === s ? (D++, v.consume(z), _) : D >= a ? (v.exit("codeFencedFenceSequence"), H(z) ? W(v, T, "whitespace")(z) : T(z)) : A(z);
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4843
|
+
function T(z) {
|
|
4844
4844
|
return z === null || q(z) ? (v.exit("codeFencedFence"), M(z)) : A(z);
|
|
4845
4845
|
}
|
|
4846
4846
|
}
|
|
@@ -4866,7 +4866,7 @@ function Xc(e, t, n) {
|
|
|
4866
4866
|
const r = this;
|
|
4867
4867
|
return i;
|
|
4868
4868
|
function i(c) {
|
|
4869
|
-
return e.enter("codeIndented"),
|
|
4869
|
+
return e.enter("codeIndented"), W(e, o, "linePrefix", 5)(c);
|
|
4870
4870
|
}
|
|
4871
4871
|
function o(c) {
|
|
4872
4872
|
const u = r.events[r.events.length - 1];
|
|
@@ -4886,7 +4886,7 @@ function Zc(e, t, n) {
|
|
|
4886
4886
|
const r = this;
|
|
4887
4887
|
return i;
|
|
4888
4888
|
function i(a) {
|
|
4889
|
-
return r.parser.lazy[r.now().line] ? n(a) : q(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) :
|
|
4889
|
+
return r.parser.lazy[r.now().line] ? n(a) : q(a) ? (e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), i) : W(e, o, "linePrefix", 5)(a);
|
|
4890
4890
|
}
|
|
4891
4891
|
function o(a) {
|
|
4892
4892
|
const s = r.events[r.events.length - 1];
|
|
@@ -5138,7 +5138,7 @@ function ou(e, t) {
|
|
|
5138
5138
|
a || (a = r.parser[n.contentType](n.start), n._contentTypeTextTrailing && (a._contentTypeTextTrailing = !0));
|
|
5139
5139
|
const s = a.events, l = [], c = {};
|
|
5140
5140
|
let u, f, d = -1, p = n, h = 0, b = 0;
|
|
5141
|
-
const
|
|
5141
|
+
const S = [b];
|
|
5142
5142
|
for (; p; ) {
|
|
5143
5143
|
for (; e.get(++i)[1] !== p; )
|
|
5144
5144
|
;
|
|
@@ -5146,10 +5146,10 @@ function ou(e, t) {
|
|
|
5146
5146
|
}
|
|
5147
5147
|
for (p = n; ++d < s.length; )
|
|
5148
5148
|
// Find a void token that includes a break.
|
|
5149
|
-
s[d][0] === "exit" && s[d - 1][0] === "enter" && s[d][1].type === s[d - 1][1].type && s[d][1].start.line !== s[d][1].end.line && (b = d + 1,
|
|
5150
|
-
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) :
|
|
5151
|
-
const y = s.slice(
|
|
5152
|
-
l.push([
|
|
5149
|
+
s[d][0] === "exit" && s[d - 1][0] === "enter" && s[d][1].type === s[d - 1][1].type && s[d][1].start.line !== s[d][1].end.line && (b = d + 1, S.push(b), p._tokenizer = void 0, p.previous = void 0, p = p.next);
|
|
5150
|
+
for (a.events = [], p ? (p._tokenizer = void 0, p.previous = void 0) : S.pop(), d = S.length; d--; ) {
|
|
5151
|
+
const y = s.slice(S[d], S[d + 1]), k = o.pop();
|
|
5152
|
+
l.push([k, k + y.length - 1]), e.splice(k, 2, y);
|
|
5153
5153
|
}
|
|
5154
5154
|
for (l.reverse(), d = -1; ++d < l.length; )
|
|
5155
5155
|
c[h + l[d][0]] = h + l[d][1], h += l[d][1] - l[d][0] - 1;
|
|
@@ -5190,7 +5190,7 @@ function uu(e, t, n) {
|
|
|
5190
5190
|
const r = this;
|
|
5191
5191
|
return i;
|
|
5192
5192
|
function i(a) {
|
|
5193
|
-
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"),
|
|
5193
|
+
return e.exit("chunkContent"), e.enter("lineEnding"), e.consume(a), e.exit("lineEnding"), W(e, o, "linePrefix");
|
|
5194
5194
|
}
|
|
5195
5195
|
function o(a) {
|
|
5196
5196
|
if (a === null || q(a))
|
|
@@ -5220,9 +5220,9 @@ function ya(e, t, n, r, i, o, a, s, l) {
|
|
|
5220
5220
|
return y === 60 || y === 62 || y === 92 ? (e.consume(y), p) : p(y);
|
|
5221
5221
|
}
|
|
5222
5222
|
function b(y) {
|
|
5223
|
-
return !u && (y === null || y === 41 || J(y)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(y)) : u < c && y === 40 ? (e.consume(y), u++, b) : y === 41 ? (e.consume(y), u--, b) : y === null || y === 32 || y === 40 || cn(y) ? n(y) : (e.consume(y), y === 92 ?
|
|
5223
|
+
return !u && (y === null || y === 41 || J(y)) ? (e.exit("chunkString"), e.exit(s), e.exit(a), e.exit(r), t(y)) : u < c && y === 40 ? (e.consume(y), u++, b) : y === 41 ? (e.consume(y), u--, b) : y === null || y === 32 || y === 40 || cn(y) ? n(y) : (e.consume(y), y === 92 ? S : b);
|
|
5224
5224
|
}
|
|
5225
|
-
function
|
|
5225
|
+
function S(y) {
|
|
5226
5226
|
return y === 40 || y === 41 || y === 92 ? (e.consume(y), b) : b(y);
|
|
5227
5227
|
}
|
|
5228
5228
|
}
|
|
@@ -5260,7 +5260,7 @@ function xa(e, t, n, r, i, o) {
|
|
|
5260
5260
|
return d === a ? (e.enter(i), e.consume(d), e.exit(i), e.exit(r), t) : (e.enter(o), c(d));
|
|
5261
5261
|
}
|
|
5262
5262
|
function c(d) {
|
|
5263
|
-
return d === a ? (e.exit(o), l(a)) : d === null ? n(d) : q(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"),
|
|
5263
|
+
return d === a ? (e.exit(o), l(a)) : d === null ? n(d) : q(d) ? (e.enter("lineEnding"), e.consume(d), e.exit("lineEnding"), W(e, c, "linePrefix")) : (e.enter("chunkString", {
|
|
5264
5264
|
contentType: "string"
|
|
5265
5265
|
}), u(d));
|
|
5266
5266
|
}
|
|
@@ -5275,7 +5275,7 @@ function Tt(e, t) {
|
|
|
5275
5275
|
let n;
|
|
5276
5276
|
return r;
|
|
5277
5277
|
function r(i) {
|
|
5278
|
-
return q(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : H(i) ?
|
|
5278
|
+
return q(i) ? (e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), n = !0, r) : H(i) ? W(e, r, n ? "linePrefix" : "lineSuffix")(i) : t(i);
|
|
5279
5279
|
}
|
|
5280
5280
|
}
|
|
5281
5281
|
const fu = {
|
|
@@ -5327,7 +5327,7 @@ function du(e, t, n) {
|
|
|
5327
5327
|
return e.attempt(pu, f, f)(p);
|
|
5328
5328
|
}
|
|
5329
5329
|
function f(p) {
|
|
5330
|
-
return H(p) ?
|
|
5330
|
+
return H(p) ? W(e, d, "whitespace")(p) : d(p);
|
|
5331
5331
|
}
|
|
5332
5332
|
function d(p) {
|
|
5333
5333
|
return p === null || q(p) ? (e.exit("definition"), r.parser.defined.push(i), t(p)) : n(p);
|
|
@@ -5342,7 +5342,7 @@ function hu(e, t, n) {
|
|
|
5342
5342
|
return xa(e, o, n, "definitionTitle", "definitionTitleMarker", "definitionTitleString")(s);
|
|
5343
5343
|
}
|
|
5344
5344
|
function o(s) {
|
|
5345
|
-
return H(s) ?
|
|
5345
|
+
return H(s) ? W(e, a, "whitespace")(s) : a(s);
|
|
5346
5346
|
}
|
|
5347
5347
|
function a(s) {
|
|
5348
5348
|
return s === null || q(s) ? t(s) : n(s);
|
|
@@ -5392,7 +5392,7 @@ function wu(e, t, n) {
|
|
|
5392
5392
|
return u === 35 && r++ < 6 ? (e.consume(u), a) : u === null || J(u) ? (e.exit("atxHeadingSequence"), s(u)) : n(u);
|
|
5393
5393
|
}
|
|
5394
5394
|
function s(u) {
|
|
5395
|
-
return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || q(u) ? (e.exit("atxHeading"), t(u)) : H(u) ?
|
|
5395
|
+
return u === 35 ? (e.enter("atxHeadingSequence"), l(u)) : u === null || q(u) ? (e.exit("atxHeading"), t(u)) : H(u) ? W(e, s, "whitespace")(u) : (e.enter("atxHeadingText"), c(u));
|
|
5396
5396
|
}
|
|
5397
5397
|
function l(u) {
|
|
5398
5398
|
return u === 35 ? (e.consume(u), l) : (e.exit("atxHeadingSequence"), s(u));
|
|
@@ -5493,7 +5493,7 @@ function Cu(e, t, n) {
|
|
|
5493
5493
|
return e.enter("htmlFlow"), e.enter("htmlFlowData"), e.consume(g), f;
|
|
5494
5494
|
}
|
|
5495
5495
|
function f(g) {
|
|
5496
|
-
return g === 33 ? (e.consume(g), d) : g === 47 ? (e.consume(g), o = !0, b) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : he(g) ? (e.consume(g), a = String.fromCharCode(g),
|
|
5496
|
+
return g === 33 ? (e.consume(g), d) : g === 47 ? (e.consume(g), o = !0, b) : g === 63 ? (e.consume(g), i = 3, r.interrupt ? t : m) : he(g) ? (e.consume(g), a = String.fromCharCode(g), S) : n(g);
|
|
5497
5497
|
}
|
|
5498
5498
|
function d(g) {
|
|
5499
5499
|
return g === 45 ? (e.consume(g), i = 2, p) : g === 91 ? (e.consume(g), i = 5, s = 0, h) : he(g) ? (e.consume(g), i = 4, r.interrupt ? t : m) : n(g);
|
|
@@ -5502,24 +5502,24 @@ function Cu(e, t, n) {
|
|
|
5502
5502
|
return g === 45 ? (e.consume(g), r.interrupt ? t : m) : n(g);
|
|
5503
5503
|
}
|
|
5504
5504
|
function h(g) {
|
|
5505
|
-
const
|
|
5506
|
-
return g ===
|
|
5505
|
+
const G = "CDATA[";
|
|
5506
|
+
return g === G.charCodeAt(s++) ? (e.consume(g), s === G.length ? r.interrupt ? t : I : h) : n(g);
|
|
5507
5507
|
}
|
|
5508
5508
|
function b(g) {
|
|
5509
|
-
return he(g) ? (e.consume(g), a = String.fromCharCode(g),
|
|
5509
|
+
return he(g) ? (e.consume(g), a = String.fromCharCode(g), S) : n(g);
|
|
5510
5510
|
}
|
|
5511
|
-
function
|
|
5511
|
+
function S(g) {
|
|
5512
5512
|
if (g === null || g === 47 || g === 62 || J(g)) {
|
|
5513
|
-
const
|
|
5514
|
-
return !
|
|
5513
|
+
const G = g === 47, pe = a.toLowerCase();
|
|
5514
|
+
return !G && !o && ki.includes(pe) ? (i = 1, r.interrupt ? t(g) : I(g)) : xu.includes(a.toLowerCase()) ? (i = 6, G ? (e.consume(g), y) : r.interrupt ? t(g) : I(g)) : (i = 7, r.interrupt && !r.parser.lazy[r.now().line] ? n(g) : o ? k(g) : E(g));
|
|
5515
5515
|
}
|
|
5516
|
-
return g === 45 || ce(g) ? (e.consume(g), a += String.fromCharCode(g),
|
|
5516
|
+
return g === 45 || ce(g) ? (e.consume(g), a += String.fromCharCode(g), S) : n(g);
|
|
5517
5517
|
}
|
|
5518
5518
|
function y(g) {
|
|
5519
5519
|
return g === 62 ? (e.consume(g), r.interrupt ? t : I) : n(g);
|
|
5520
5520
|
}
|
|
5521
|
-
function
|
|
5522
|
-
return H(g) ? (e.consume(g),
|
|
5521
|
+
function k(g) {
|
|
5522
|
+
return H(g) ? (e.consume(g), k) : w(g);
|
|
5523
5523
|
}
|
|
5524
5524
|
function E(g) {
|
|
5525
5525
|
return g === 47 ? (e.consume(g), w) : g === 58 || g === 95 || he(g) ? (e.consume(g), P) : H(g) ? (e.consume(g), E) : w(g);
|
|
@@ -5543,33 +5543,33 @@ function Cu(e, t, n) {
|
|
|
5543
5543
|
return g === 47 || g === 62 || H(g) ? E(g) : n(g);
|
|
5544
5544
|
}
|
|
5545
5545
|
function w(g) {
|
|
5546
|
-
return g === 62 ? (e.consume(g),
|
|
5546
|
+
return g === 62 ? (e.consume(g), R) : n(g);
|
|
5547
5547
|
}
|
|
5548
|
-
function
|
|
5549
|
-
return g === null || q(g) ? I(g) : H(g) ? (e.consume(g),
|
|
5548
|
+
function R(g) {
|
|
5549
|
+
return g === null || q(g) ? I(g) : H(g) ? (e.consume(g), R) : n(g);
|
|
5550
5550
|
}
|
|
5551
5551
|
function I(g) {
|
|
5552
|
-
return g === 45 && i === 2 ? (e.consume(g),
|
|
5552
|
+
return g === 45 && i === 2 ? (e.consume(g), K) : g === 60 && i === 1 ? (e.consume(g), X) : g === 62 && i === 4 ? (e.consume(g), me) : g === 63 && i === 3 ? (e.consume(g), m) : g === 93 && i === 5 ? (e.consume(g), Te) : q(g) && (i === 6 || i === 7) ? (e.exit("htmlFlowData"), e.check(ku, Ne, _)(g)) : g === null || q(g) ? (e.exit("htmlFlowData"), _(g)) : (e.consume(g), I);
|
|
5553
5553
|
}
|
|
5554
5554
|
function _(g) {
|
|
5555
|
-
return e.check(Su,
|
|
5555
|
+
return e.check(Su, T, Ne)(g);
|
|
5556
5556
|
}
|
|
5557
|
-
function
|
|
5557
|
+
function T(g) {
|
|
5558
5558
|
return e.enter("lineEnding"), e.consume(g), e.exit("lineEnding"), z;
|
|
5559
5559
|
}
|
|
5560
5560
|
function z(g) {
|
|
5561
5561
|
return g === null || q(g) ? _(g) : (e.enter("htmlFlowData"), I(g));
|
|
5562
5562
|
}
|
|
5563
|
-
function
|
|
5563
|
+
function K(g) {
|
|
5564
5564
|
return g === 45 ? (e.consume(g), m) : I(g);
|
|
5565
5565
|
}
|
|
5566
|
-
function
|
|
5566
|
+
function X(g) {
|
|
5567
5567
|
return g === 47 ? (e.consume(g), a = "", Ee) : I(g);
|
|
5568
5568
|
}
|
|
5569
5569
|
function Ee(g) {
|
|
5570
5570
|
if (g === 62) {
|
|
5571
|
-
const
|
|
5572
|
-
return ki.includes(
|
|
5571
|
+
const G = a.toLowerCase();
|
|
5572
|
+
return ki.includes(G) ? (e.consume(g), me) : I(g);
|
|
5573
5573
|
}
|
|
5574
5574
|
return he(g) && a.length < 8 ? (e.consume(g), a += String.fromCharCode(g), Ee) : I(g);
|
|
5575
5575
|
}
|
|
@@ -5599,7 +5599,7 @@ function _u(e, t, n) {
|
|
|
5599
5599
|
function Au(e, t, n) {
|
|
5600
5600
|
return r;
|
|
5601
5601
|
function r(i) {
|
|
5602
|
-
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(
|
|
5602
|
+
return e.enter("lineEnding"), e.consume(i), e.exit("lineEnding"), e.attempt(Ut, t, n);
|
|
5603
5603
|
}
|
|
5604
5604
|
}
|
|
5605
5605
|
const Iu = {
|
|
@@ -5617,41 +5617,41 @@ function Tu(e, t, n) {
|
|
|
5617
5617
|
return m === 33 ? (e.consume(m), c) : m === 47 ? (e.consume(m), L) : m === 63 ? (e.consume(m), E) : he(m) ? (e.consume(m), A) : n(m);
|
|
5618
5618
|
}
|
|
5619
5619
|
function c(m) {
|
|
5620
|
-
return m === 45 ? (e.consume(m), u) : m === 91 ? (e.consume(m), o = 0, h) : he(m) ? (e.consume(m),
|
|
5620
|
+
return m === 45 ? (e.consume(m), u) : m === 91 ? (e.consume(m), o = 0, h) : he(m) ? (e.consume(m), k) : n(m);
|
|
5621
5621
|
}
|
|
5622
5622
|
function u(m) {
|
|
5623
5623
|
return m === 45 ? (e.consume(m), p) : n(m);
|
|
5624
5624
|
}
|
|
5625
5625
|
function f(m) {
|
|
5626
|
-
return m === null ? n(m) : m === 45 ? (e.consume(m), d) : q(m) ? (a = f,
|
|
5626
|
+
return m === null ? n(m) : m === 45 ? (e.consume(m), d) : q(m) ? (a = f, X(m)) : (e.consume(m), f);
|
|
5627
5627
|
}
|
|
5628
5628
|
function d(m) {
|
|
5629
5629
|
return m === 45 ? (e.consume(m), p) : f(m);
|
|
5630
5630
|
}
|
|
5631
5631
|
function p(m) {
|
|
5632
|
-
return m === 62 ?
|
|
5632
|
+
return m === 62 ? K(m) : m === 45 ? d(m) : f(m);
|
|
5633
5633
|
}
|
|
5634
5634
|
function h(m) {
|
|
5635
5635
|
const me = "CDATA[";
|
|
5636
5636
|
return m === me.charCodeAt(o++) ? (e.consume(m), o === me.length ? b : h) : n(m);
|
|
5637
5637
|
}
|
|
5638
5638
|
function b(m) {
|
|
5639
|
-
return m === null ? n(m) : m === 93 ? (e.consume(m),
|
|
5639
|
+
return m === null ? n(m) : m === 93 ? (e.consume(m), S) : q(m) ? (a = b, X(m)) : (e.consume(m), b);
|
|
5640
5640
|
}
|
|
5641
|
-
function
|
|
5641
|
+
function S(m) {
|
|
5642
5642
|
return m === 93 ? (e.consume(m), y) : b(m);
|
|
5643
5643
|
}
|
|
5644
5644
|
function y(m) {
|
|
5645
|
-
return m === 62 ?
|
|
5645
|
+
return m === 62 ? K(m) : m === 93 ? (e.consume(m), y) : b(m);
|
|
5646
5646
|
}
|
|
5647
|
-
function
|
|
5648
|
-
return m === null || m === 62 ?
|
|
5647
|
+
function k(m) {
|
|
5648
|
+
return m === null || m === 62 ? K(m) : q(m) ? (a = k, X(m)) : (e.consume(m), k);
|
|
5649
5649
|
}
|
|
5650
5650
|
function E(m) {
|
|
5651
|
-
return m === null ? n(m) : m === 63 ? (e.consume(m), P) : q(m) ? (a = E,
|
|
5651
|
+
return m === null ? n(m) : m === 63 ? (e.consume(m), P) : q(m) ? (a = E, X(m)) : (e.consume(m), E);
|
|
5652
5652
|
}
|
|
5653
5653
|
function P(m) {
|
|
5654
|
-
return m === 62 ?
|
|
5654
|
+
return m === 62 ? K(m) : E(m);
|
|
5655
5655
|
}
|
|
5656
5656
|
function L(m) {
|
|
5657
5657
|
return he(m) ? (e.consume(m), v) : n(m);
|
|
@@ -5660,40 +5660,40 @@ function Tu(e, t, n) {
|
|
|
5660
5660
|
return m === 45 || ce(m) ? (e.consume(m), v) : M(m);
|
|
5661
5661
|
}
|
|
5662
5662
|
function M(m) {
|
|
5663
|
-
return q(m) ? (a = M,
|
|
5663
|
+
return q(m) ? (a = M, X(m)) : H(m) ? (e.consume(m), M) : K(m);
|
|
5664
5664
|
}
|
|
5665
5665
|
function A(m) {
|
|
5666
5666
|
return m === 45 || ce(m) ? (e.consume(m), A) : m === 47 || m === 62 || J(m) ? D(m) : n(m);
|
|
5667
5667
|
}
|
|
5668
5668
|
function D(m) {
|
|
5669
|
-
return m === 47 ? (e.consume(m),
|
|
5669
|
+
return m === 47 ? (e.consume(m), K) : m === 58 || m === 95 || he(m) ? (e.consume(m), w) : q(m) ? (a = D, X(m)) : H(m) ? (e.consume(m), D) : K(m);
|
|
5670
5670
|
}
|
|
5671
5671
|
function w(m) {
|
|
5672
|
-
return m === 45 || m === 46 || m === 58 || m === 95 || ce(m) ? (e.consume(m), w) :
|
|
5672
|
+
return m === 45 || m === 46 || m === 58 || m === 95 || ce(m) ? (e.consume(m), w) : R(m);
|
|
5673
5673
|
}
|
|
5674
|
-
function
|
|
5675
|
-
return m === 61 ? (e.consume(m), I) : q(m) ? (a =
|
|
5674
|
+
function R(m) {
|
|
5675
|
+
return m === 61 ? (e.consume(m), I) : q(m) ? (a = R, X(m)) : H(m) ? (e.consume(m), R) : D(m);
|
|
5676
5676
|
}
|
|
5677
5677
|
function I(m) {
|
|
5678
|
-
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, _) : q(m) ? (a = I,
|
|
5678
|
+
return m === null || m === 60 || m === 61 || m === 62 || m === 96 ? n(m) : m === 34 || m === 39 ? (e.consume(m), i = m, _) : q(m) ? (a = I, X(m)) : H(m) ? (e.consume(m), I) : (e.consume(m), T);
|
|
5679
5679
|
}
|
|
5680
5680
|
function _(m) {
|
|
5681
|
-
return m === i ? (e.consume(m), i = void 0, z) : m === null ? n(m) : q(m) ? (a = _,
|
|
5681
|
+
return m === i ? (e.consume(m), i = void 0, z) : m === null ? n(m) : q(m) ? (a = _, X(m)) : (e.consume(m), _);
|
|
5682
5682
|
}
|
|
5683
|
-
function
|
|
5684
|
-
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || J(m) ? D(m) : (e.consume(m),
|
|
5683
|
+
function T(m) {
|
|
5684
|
+
return m === null || m === 34 || m === 39 || m === 60 || m === 61 || m === 96 ? n(m) : m === 47 || m === 62 || J(m) ? D(m) : (e.consume(m), T);
|
|
5685
5685
|
}
|
|
5686
5686
|
function z(m) {
|
|
5687
5687
|
return m === 47 || m === 62 || J(m) ? D(m) : n(m);
|
|
5688
5688
|
}
|
|
5689
|
-
function
|
|
5689
|
+
function K(m) {
|
|
5690
5690
|
return m === 62 ? (e.consume(m), e.exit("htmlTextData"), e.exit("htmlText"), t) : n(m);
|
|
5691
5691
|
}
|
|
5692
|
-
function
|
|
5692
|
+
function X(m) {
|
|
5693
5693
|
return e.exit("htmlTextData"), e.enter("lineEnding"), e.consume(m), e.exit("lineEnding"), Ee;
|
|
5694
5694
|
}
|
|
5695
5695
|
function Ee(m) {
|
|
5696
|
-
return H(m) ?
|
|
5696
|
+
return H(m) ? W(e, Te, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(m) : Te(m);
|
|
5697
5697
|
}
|
|
5698
5698
|
function Te(m) {
|
|
5699
5699
|
return e.enter("htmlTextData"), a(m);
|
|
@@ -5843,9 +5843,9 @@ function qu(e, t, n) {
|
|
|
5843
5843
|
const Fu = {
|
|
5844
5844
|
name: "labelStartImage",
|
|
5845
5845
|
resolveAll: Rr.resolveAll,
|
|
5846
|
-
tokenize:
|
|
5846
|
+
tokenize: Uu
|
|
5847
5847
|
};
|
|
5848
|
-
function
|
|
5848
|
+
function Uu(e, t, n) {
|
|
5849
5849
|
const r = this;
|
|
5850
5850
|
return i;
|
|
5851
5851
|
function i(s) {
|
|
@@ -5858,7 +5858,7 @@ function Bu(e, t, n) {
|
|
|
5858
5858
|
return s === 94 && "_hiddenFootnoteSupport" in r.parser.constructs ? n(s) : t(s);
|
|
5859
5859
|
}
|
|
5860
5860
|
}
|
|
5861
|
-
const
|
|
5861
|
+
const Bu = {
|
|
5862
5862
|
name: "labelStartLink",
|
|
5863
5863
|
resolveAll: Rr.resolveAll,
|
|
5864
5864
|
tokenize: ju
|
|
@@ -5880,7 +5880,7 @@ const Tn = {
|
|
|
5880
5880
|
function Hu(e, t) {
|
|
5881
5881
|
return n;
|
|
5882
5882
|
function n(r) {
|
|
5883
|
-
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"),
|
|
5883
|
+
return e.enter("lineEnding"), e.consume(r), e.exit("lineEnding"), W(e, t, "linePrefix");
|
|
5884
5884
|
}
|
|
5885
5885
|
}
|
|
5886
5886
|
const tn = {
|
|
@@ -5900,7 +5900,7 @@ function Vu(e, t, n) {
|
|
|
5900
5900
|
return c === i ? (e.enter("thematicBreakSequence"), l(c)) : r >= 3 && (c === null || q(c)) ? (e.exit("thematicBreak"), t(c)) : n(c);
|
|
5901
5901
|
}
|
|
5902
5902
|
function l(c) {
|
|
5903
|
-
return c === i ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), H(c) ?
|
|
5903
|
+
return c === i ? (e.consume(c), r++, l) : (e.exit("thematicBreakSequence"), H(c) ? W(e, s, "whitespace")(c) : s(c));
|
|
5904
5904
|
}
|
|
5905
5905
|
}
|
|
5906
5906
|
const ge = {
|
|
@@ -5938,7 +5938,7 @@ function Gu(e, t, n) {
|
|
|
5938
5938
|
}
|
|
5939
5939
|
function c(p) {
|
|
5940
5940
|
return e.enter("listItemMarker"), e.consume(p), e.exit("listItemMarker"), r.containerState.marker = r.containerState.marker || p, e.check(
|
|
5941
|
-
|
|
5941
|
+
Ut,
|
|
5942
5942
|
// Can’t be empty when interrupting.
|
|
5943
5943
|
r.interrupt ? n : u,
|
|
5944
5944
|
e.attempt($u, d, f)
|
|
@@ -5956,20 +5956,20 @@ function Gu(e, t, n) {
|
|
|
5956
5956
|
}
|
|
5957
5957
|
function Ku(e, t, n) {
|
|
5958
5958
|
const r = this;
|
|
5959
|
-
return r.containerState._closeFlow = void 0, e.check(
|
|
5959
|
+
return r.containerState._closeFlow = void 0, e.check(Ut, i, o);
|
|
5960
5960
|
function i(s) {
|
|
5961
|
-
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine,
|
|
5961
|
+
return r.containerState.furtherBlankLines = r.containerState.furtherBlankLines || r.containerState.initialBlankLine, W(e, t, "listItemIndent", r.containerState.size + 1)(s);
|
|
5962
5962
|
}
|
|
5963
5963
|
function o(s) {
|
|
5964
5964
|
return r.containerState.furtherBlankLines || !H(s) ? (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, a(s)) : (r.containerState.furtherBlankLines = void 0, r.containerState.initialBlankLine = void 0, e.attempt(Wu, t, a)(s));
|
|
5965
5965
|
}
|
|
5966
5966
|
function a(s) {
|
|
5967
|
-
return r.containerState._closeFlow = !0, r.interrupt = void 0,
|
|
5967
|
+
return r.containerState._closeFlow = !0, r.interrupt = void 0, W(e, e.attempt(ge, t, n), "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(s);
|
|
5968
5968
|
}
|
|
5969
5969
|
}
|
|
5970
5970
|
function Yu(e, t, n) {
|
|
5971
5971
|
const r = this;
|
|
5972
|
-
return
|
|
5972
|
+
return W(e, i, "listItemIndent", r.containerState.size + 1);
|
|
5973
5973
|
function i(o) {
|
|
5974
5974
|
const a = r.events[r.events.length - 1];
|
|
5975
5975
|
return a && a[1].type === "listItemIndent" && a[2].sliceSerialize(a[1], !0).length === r.containerState.size ? t(o) : n(o);
|
|
@@ -5980,7 +5980,7 @@ function Ju(e) {
|
|
|
5980
5980
|
}
|
|
5981
5981
|
function Qu(e, t, n) {
|
|
5982
5982
|
const r = this;
|
|
5983
|
-
return
|
|
5983
|
+
return W(e, i, "listItemPrefixWhitespace", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 5);
|
|
5984
5984
|
function i(o) {
|
|
5985
5985
|
const a = r.events[r.events.length - 1];
|
|
5986
5986
|
return !H(o) && a && a[1].type === "listItemPrefixWhitespace" ? t(o) : n(o);
|
|
@@ -6032,7 +6032,7 @@ function Zu(e, t, n) {
|
|
|
6032
6032
|
return e.enter("setextHeadingLineSequence"), s(c);
|
|
6033
6033
|
}
|
|
6034
6034
|
function s(c) {
|
|
6035
|
-
return c === i ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), H(c) ?
|
|
6035
|
+
return c === i ? (e.consume(c), s) : (e.exit("setextHeadingLineSequence"), H(c) ? W(e, l, "lineSuffix")(c) : l(c));
|
|
6036
6036
|
}
|
|
6037
6037
|
function l(c) {
|
|
6038
6038
|
return c === null || q(c) ? (e.exit("setextHeadingLine"), t(c)) : n(c);
|
|
@@ -6044,10 +6044,10 @@ const ef = {
|
|
|
6044
6044
|
function tf(e) {
|
|
6045
6045
|
const t = this, n = e.attempt(
|
|
6046
6046
|
// Try to parse a blank line.
|
|
6047
|
-
|
|
6047
|
+
Ut,
|
|
6048
6048
|
r,
|
|
6049
6049
|
// Try to parse initial flow (essentially, only code).
|
|
6050
|
-
e.attempt(this.parser.constructs.flowInitial, i,
|
|
6050
|
+
e.attempt(this.parser.constructs.flowInitial, i, W(e, e.attempt(this.parser.constructs.flow, i, e.attempt(au, i)), "linePrefix"))
|
|
6051
6051
|
);
|
|
6052
6052
|
return n;
|
|
6053
6053
|
function r(o) {
|
|
@@ -6195,8 +6195,8 @@ const sf = {
|
|
|
6195
6195
|
33: Fu,
|
|
6196
6196
|
38: ga,
|
|
6197
6197
|
42: er,
|
|
6198
|
-
60: [
|
|
6199
|
-
91:
|
|
6198
|
+
60: [Bc, Iu],
|
|
6199
|
+
91: Bu,
|
|
6200
6200
|
92: [mu, ma],
|
|
6201
6201
|
93: Rr,
|
|
6202
6202
|
95: er,
|
|
@@ -6232,7 +6232,7 @@ function bf(e, t, n) {
|
|
|
6232
6232
|
const l = {
|
|
6233
6233
|
attempt: M(L),
|
|
6234
6234
|
check: M(v),
|
|
6235
|
-
consume:
|
|
6235
|
+
consume: k,
|
|
6236
6236
|
enter: E,
|
|
6237
6237
|
exit: P,
|
|
6238
6238
|
interrupt: M(v, {
|
|
@@ -6252,82 +6252,82 @@ function bf(e, t, n) {
|
|
|
6252
6252
|
};
|
|
6253
6253
|
let u = t.tokenize.call(c, l);
|
|
6254
6254
|
return t.resolveAll && o.push(t), c;
|
|
6255
|
-
function f(
|
|
6256
|
-
return a = Ae(a,
|
|
6255
|
+
function f(R) {
|
|
6256
|
+
return a = Ae(a, R), S(), a[a.length - 1] !== null ? [] : (A(t, 0), c.events = bn(o, c.events, c), c.events);
|
|
6257
6257
|
}
|
|
6258
|
-
function d(
|
|
6259
|
-
return wf(p(
|
|
6258
|
+
function d(R, I) {
|
|
6259
|
+
return wf(p(R), I);
|
|
6260
6260
|
}
|
|
6261
|
-
function p(
|
|
6262
|
-
return yf(a,
|
|
6261
|
+
function p(R) {
|
|
6262
|
+
return yf(a, R);
|
|
6263
6263
|
}
|
|
6264
6264
|
function h() {
|
|
6265
6265
|
const {
|
|
6266
|
-
_bufferIndex:
|
|
6266
|
+
_bufferIndex: R,
|
|
6267
6267
|
_index: I,
|
|
6268
6268
|
line: _,
|
|
6269
|
-
column:
|
|
6269
|
+
column: T,
|
|
6270
6270
|
offset: z
|
|
6271
6271
|
} = r;
|
|
6272
6272
|
return {
|
|
6273
|
-
_bufferIndex:
|
|
6273
|
+
_bufferIndex: R,
|
|
6274
6274
|
_index: I,
|
|
6275
6275
|
line: _,
|
|
6276
|
-
column:
|
|
6276
|
+
column: T,
|
|
6277
6277
|
offset: z
|
|
6278
6278
|
};
|
|
6279
6279
|
}
|
|
6280
|
-
function b(
|
|
6281
|
-
i[
|
|
6280
|
+
function b(R) {
|
|
6281
|
+
i[R.line] = R.column, w();
|
|
6282
6282
|
}
|
|
6283
|
-
function
|
|
6284
|
-
let
|
|
6283
|
+
function S() {
|
|
6284
|
+
let R;
|
|
6285
6285
|
for (; r._index < a.length; ) {
|
|
6286
6286
|
const I = a[r._index];
|
|
6287
6287
|
if (typeof I == "string")
|
|
6288
|
-
for (
|
|
6288
|
+
for (R = r._index, r._bufferIndex < 0 && (r._bufferIndex = 0); r._index === R && r._bufferIndex < I.length; )
|
|
6289
6289
|
y(I.charCodeAt(r._bufferIndex));
|
|
6290
6290
|
else
|
|
6291
6291
|
y(I);
|
|
6292
6292
|
}
|
|
6293
6293
|
}
|
|
6294
|
-
function y(
|
|
6295
|
-
u = u(
|
|
6294
|
+
function y(R) {
|
|
6295
|
+
u = u(R);
|
|
6296
6296
|
}
|
|
6297
|
-
function
|
|
6298
|
-
q(
|
|
6297
|
+
function k(R) {
|
|
6298
|
+
q(R) ? (r.line++, r.column = 1, r.offset += R === -3 ? 2 : 1, w()) : R !== -1 && (r.column++, r.offset++), r._bufferIndex < 0 ? r._index++ : (r._bufferIndex++, r._bufferIndex === // Points w/ non-negative `_bufferIndex` reference
|
|
6299
6299
|
// strings.
|
|
6300
6300
|
/** @type {string} */
|
|
6301
|
-
a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous =
|
|
6301
|
+
a[r._index].length && (r._bufferIndex = -1, r._index++)), c.previous = R;
|
|
6302
6302
|
}
|
|
6303
|
-
function E(
|
|
6303
|
+
function E(R, I) {
|
|
6304
6304
|
const _ = I || {};
|
|
6305
|
-
return _.type =
|
|
6305
|
+
return _.type = R, _.start = h(), c.events.push(["enter", _, c]), s.push(_), _;
|
|
6306
6306
|
}
|
|
6307
|
-
function P(
|
|
6307
|
+
function P(R) {
|
|
6308
6308
|
const I = s.pop();
|
|
6309
6309
|
return I.end = h(), c.events.push(["exit", I, c]), I;
|
|
6310
6310
|
}
|
|
6311
|
-
function L(
|
|
6312
|
-
A(
|
|
6311
|
+
function L(R, I) {
|
|
6312
|
+
A(R, I.from);
|
|
6313
6313
|
}
|
|
6314
|
-
function v(
|
|
6314
|
+
function v(R, I) {
|
|
6315
6315
|
I.restore();
|
|
6316
6316
|
}
|
|
6317
|
-
function M(
|
|
6317
|
+
function M(R, I) {
|
|
6318
6318
|
return _;
|
|
6319
|
-
function _(
|
|
6320
|
-
let
|
|
6321
|
-
return Array.isArray(
|
|
6319
|
+
function _(T, z, K) {
|
|
6320
|
+
let X, Ee, Te, m;
|
|
6321
|
+
return Array.isArray(T) ? (
|
|
6322
6322
|
/* c8 ignore next 1 */
|
|
6323
|
-
Ne(
|
|
6324
|
-
) : "tokenize" in
|
|
6323
|
+
Ne(T)
|
|
6324
|
+
) : "tokenize" in T ? (
|
|
6325
6325
|
// Looks like a construct.
|
|
6326
6326
|
Ne([
|
|
6327
6327
|
/** @type {Construct} */
|
|
6328
|
-
|
|
6328
|
+
T
|
|
6329
6329
|
])
|
|
6330
|
-
) : me(
|
|
6330
|
+
) : me(T);
|
|
6331
6331
|
function me(ie) {
|
|
6332
6332
|
return Ge;
|
|
6333
6333
|
function Ge(Re) {
|
|
@@ -6341,7 +6341,7 @@ function bf(e, t, n) {
|
|
|
6341
6341
|
}
|
|
6342
6342
|
}
|
|
6343
6343
|
function Ne(ie) {
|
|
6344
|
-
return
|
|
6344
|
+
return X = ie, Ee = 0, ie.length === 0 ? K : g(ie[Ee]);
|
|
6345
6345
|
}
|
|
6346
6346
|
function g(ie) {
|
|
6347
6347
|
return Ge;
|
|
@@ -6352,30 +6352,30 @@ function bf(e, t, n) {
|
|
|
6352
6352
|
// This allows a “live binding”, which is needed for `interrupt`.
|
|
6353
6353
|
I ? Object.assign(Object.create(c), I) : c,
|
|
6354
6354
|
l,
|
|
6355
|
-
|
|
6355
|
+
G,
|
|
6356
6356
|
pe
|
|
6357
6357
|
)(Re);
|
|
6358
6358
|
}
|
|
6359
6359
|
}
|
|
6360
|
-
function
|
|
6361
|
-
return
|
|
6360
|
+
function G(ie) {
|
|
6361
|
+
return R(Te, m), z;
|
|
6362
6362
|
}
|
|
6363
6363
|
function pe(ie) {
|
|
6364
|
-
return m.restore(), ++Ee <
|
|
6364
|
+
return m.restore(), ++Ee < X.length ? g(X[Ee]) : K;
|
|
6365
6365
|
}
|
|
6366
6366
|
}
|
|
6367
6367
|
}
|
|
6368
|
-
function A(
|
|
6369
|
-
|
|
6368
|
+
function A(R, I) {
|
|
6369
|
+
R.resolveAll && !o.includes(R) && o.push(R), R.resolve && ke(c.events, I, c.events.length - I, R.resolve(c.events.slice(I), c)), R.resolveTo && (c.events = R.resolveTo(c.events, c));
|
|
6370
6370
|
}
|
|
6371
6371
|
function D() {
|
|
6372
|
-
const
|
|
6372
|
+
const R = h(), I = c.previous, _ = c.currentConstruct, T = c.events.length, z = Array.from(s);
|
|
6373
6373
|
return {
|
|
6374
|
-
from:
|
|
6375
|
-
restore:
|
|
6374
|
+
from: T,
|
|
6375
|
+
restore: K
|
|
6376
6376
|
};
|
|
6377
|
-
function
|
|
6378
|
-
r =
|
|
6377
|
+
function K() {
|
|
6378
|
+
r = R, c.previous = I, c.currentConstruct = _, c.events.length = T, s = z, w();
|
|
6379
6379
|
}
|
|
6380
6380
|
}
|
|
6381
6381
|
function w() {
|
|
@@ -6575,7 +6575,7 @@ function Af(e) {
|
|
|
6575
6575
|
characterReferenceMarkerNumeric: pe,
|
|
6576
6576
|
characterReferenceValue: ie,
|
|
6577
6577
|
characterReference: Ge,
|
|
6578
|
-
codeFenced: l(
|
|
6578
|
+
codeFenced: l(S),
|
|
6579
6579
|
codeFencedFence: b,
|
|
6580
6580
|
codeFencedFenceInfo: p,
|
|
6581
6581
|
codeFencedFenceMeta: h,
|
|
@@ -6586,25 +6586,25 @@ function Af(e) {
|
|
|
6586
6586
|
data: w,
|
|
6587
6587
|
definition: l(),
|
|
6588
6588
|
definitionDestinationString: P,
|
|
6589
|
-
definitionLabelString:
|
|
6589
|
+
definitionLabelString: k,
|
|
6590
6590
|
definitionTitleString: E,
|
|
6591
6591
|
emphasis: l(),
|
|
6592
6592
|
hardBreakEscape: l(I),
|
|
6593
6593
|
hardBreakTrailing: l(I),
|
|
6594
6594
|
htmlFlow: l(_),
|
|
6595
6595
|
htmlFlowData: w,
|
|
6596
|
-
htmlText: l(
|
|
6596
|
+
htmlText: l(T),
|
|
6597
6597
|
htmlTextData: w,
|
|
6598
|
-
image: l(
|
|
6598
|
+
image: l(X),
|
|
6599
6599
|
label: Te,
|
|
6600
6600
|
labelText: Ee,
|
|
6601
|
-
lineEnding:
|
|
6602
|
-
link: l(
|
|
6601
|
+
lineEnding: R,
|
|
6602
|
+
link: l(K),
|
|
6603
6603
|
listItem: l(),
|
|
6604
6604
|
listOrdered: l(),
|
|
6605
6605
|
listUnordered: l(),
|
|
6606
6606
|
paragraph: l(),
|
|
6607
|
-
referenceString:
|
|
6607
|
+
referenceString: G,
|
|
6608
6608
|
resourceDestinationString: m,
|
|
6609
6609
|
resourceTitleString: me,
|
|
6610
6610
|
resource: Ne,
|
|
@@ -6623,7 +6623,7 @@ function Af(e) {
|
|
|
6623
6623
|
type: "root",
|
|
6624
6624
|
children: []
|
|
6625
6625
|
};
|
|
6626
|
-
const
|
|
6626
|
+
const U = {
|
|
6627
6627
|
stack: [O],
|
|
6628
6628
|
tokenStack: [],
|
|
6629
6629
|
config: t,
|
|
@@ -6632,25 +6632,25 @@ function Af(e) {
|
|
|
6632
6632
|
buffer: a,
|
|
6633
6633
|
resume: u,
|
|
6634
6634
|
data: n
|
|
6635
|
-
},
|
|
6635
|
+
}, $ = [];
|
|
6636
6636
|
let Y = -1;
|
|
6637
6637
|
for (; ++Y < C.length; )
|
|
6638
6638
|
if (C[Y][1].type === "listOrdered" || C[Y][1].type === "listUnordered")
|
|
6639
6639
|
if (C[Y][0] === "enter")
|
|
6640
|
-
|
|
6640
|
+
$.push(Y);
|
|
6641
6641
|
else {
|
|
6642
|
-
const Le =
|
|
6642
|
+
const Le = $.pop();
|
|
6643
6643
|
Y = i(C, Le, Y);
|
|
6644
6644
|
}
|
|
6645
6645
|
for (Y = -1; ++Y < C.length; ) {
|
|
6646
6646
|
const Le = t[C[Y][0]];
|
|
6647
6647
|
Sa.call(Le, C[Y][1].type) && Le[C[Y][1].type].call(Object.assign({
|
|
6648
6648
|
sliceSerialize: C[Y][2].sliceSerialize
|
|
6649
|
-
},
|
|
6649
|
+
}, U), C[Y][1]);
|
|
6650
6650
|
}
|
|
6651
|
-
if (
|
|
6652
|
-
const Le =
|
|
6653
|
-
(Le[1] || Ci).call(
|
|
6651
|
+
if (U.tokenStack.length > 0) {
|
|
6652
|
+
const Le = U.tokenStack[U.tokenStack.length - 1];
|
|
6653
|
+
(Le[1] || Ci).call(U, void 0, Le[0]);
|
|
6654
6654
|
}
|
|
6655
6655
|
for (O.position = {
|
|
6656
6656
|
start: Ve(C.length > 0 ? C[0][1].start : {
|
|
@@ -6667,10 +6667,10 @@ function Af(e) {
|
|
|
6667
6667
|
O = t.transforms[Y](O) || O;
|
|
6668
6668
|
return O;
|
|
6669
6669
|
}
|
|
6670
|
-
function i(C, O,
|
|
6671
|
-
let
|
|
6672
|
-
for (;
|
|
6673
|
-
const ye = C[
|
|
6670
|
+
function i(C, O, U) {
|
|
6671
|
+
let $ = O - 1, Y = -1, Le = !1, Ke, Ue, yt, wt;
|
|
6672
|
+
for (; ++$ <= U; ) {
|
|
6673
|
+
const ye = C[$];
|
|
6674
6674
|
switch (ye[1].type) {
|
|
6675
6675
|
case "listUnordered":
|
|
6676
6676
|
case "listOrdered":
|
|
@@ -6679,7 +6679,7 @@ function Af(e) {
|
|
|
6679
6679
|
break;
|
|
6680
6680
|
}
|
|
6681
6681
|
case "lineEndingBlank": {
|
|
6682
|
-
ye[0] === "enter" && (Ke && !wt && !Y && !yt && (yt =
|
|
6682
|
+
ye[0] === "enter" && (Ke && !wt && !Y && !yt && (yt = $), wt = void 0);
|
|
6683
6683
|
break;
|
|
6684
6684
|
}
|
|
6685
6685
|
case "linePrefix":
|
|
@@ -6693,15 +6693,15 @@ function Af(e) {
|
|
|
6693
6693
|
}
|
|
6694
6694
|
if (!Y && ye[0] === "enter" && ye[1].type === "listItemPrefix" || Y === -1 && ye[0] === "exit" && (ye[1].type === "listUnordered" || ye[1].type === "listOrdered")) {
|
|
6695
6695
|
if (Ke) {
|
|
6696
|
-
let rt =
|
|
6697
|
-
for (
|
|
6698
|
-
const
|
|
6699
|
-
if (
|
|
6700
|
-
if (
|
|
6701
|
-
|
|
6702
|
-
} else if (!(
|
|
6696
|
+
let rt = $;
|
|
6697
|
+
for (Ue = void 0; rt--; ) {
|
|
6698
|
+
const Be = C[rt];
|
|
6699
|
+
if (Be[1].type === "lineEnding" || Be[1].type === "lineEndingBlank") {
|
|
6700
|
+
if (Be[0] === "exit") continue;
|
|
6701
|
+
Ue && (C[Ue][1].type = "lineEndingBlank", Le = !0), Be[1].type = "lineEnding", Ue = rt;
|
|
6702
|
+
} else if (!(Be[1].type === "linePrefix" || Be[1].type === "blockQuotePrefix" || Be[1].type === "blockQuotePrefixWhitespace" || Be[1].type === "blockQuoteMarker" || Be[1].type === "listItemIndent")) break;
|
|
6703
6703
|
}
|
|
6704
|
-
yt && (!
|
|
6704
|
+
yt && (!Ue || yt < Ue) && (Ke._spread = !0), Ke.end = Object.assign({}, Ue ? C[Ue][1].start : ye[1].end), C.splice(Ue || $, 0, ["exit", Ke, ye[2]]), $++, U++;
|
|
6705
6705
|
}
|
|
6706
6706
|
if (ye[1].type === "listItemPrefix") {
|
|
6707
6707
|
const rt = {
|
|
@@ -6711,16 +6711,16 @@ function Af(e) {
|
|
|
6711
6711
|
// @ts-expect-error: we’ll add `end` in a second.
|
|
6712
6712
|
end: void 0
|
|
6713
6713
|
};
|
|
6714
|
-
Ke = rt, C.splice(
|
|
6714
|
+
Ke = rt, C.splice($, 0, ["enter", rt, ye[2]]), $++, U++, yt = void 0, wt = !0;
|
|
6715
6715
|
}
|
|
6716
6716
|
}
|
|
6717
6717
|
}
|
|
6718
|
-
return C[O][1]._spread = Le,
|
|
6718
|
+
return C[O][1]._spread = Le, U;
|
|
6719
6719
|
}
|
|
6720
6720
|
function o(C, O) {
|
|
6721
|
-
return
|
|
6722
|
-
function
|
|
6723
|
-
s.call(this, C(
|
|
6721
|
+
return U;
|
|
6722
|
+
function U($) {
|
|
6723
|
+
s.call(this, C($), $), O && O.call(this, $);
|
|
6724
6724
|
}
|
|
6725
6725
|
}
|
|
6726
6726
|
function a() {
|
|
@@ -6729,8 +6729,8 @@ function Af(e) {
|
|
|
6729
6729
|
children: []
|
|
6730
6730
|
});
|
|
6731
6731
|
}
|
|
6732
|
-
function s(C, O,
|
|
6733
|
-
this.stack[this.stack.length - 1].children.push(C), this.stack.push(C), this.tokenStack.push([O,
|
|
6732
|
+
function s(C, O, U) {
|
|
6733
|
+
this.stack[this.stack.length - 1].children.push(C), this.stack.push(C), this.tokenStack.push([O, U || void 0]), C.position = {
|
|
6734
6734
|
start: Ve(O.start),
|
|
6735
6735
|
// @ts-expect-error: `end` will be patched later.
|
|
6736
6736
|
end: void 0
|
|
@@ -6738,19 +6738,19 @@ function Af(e) {
|
|
|
6738
6738
|
}
|
|
6739
6739
|
function l(C) {
|
|
6740
6740
|
return O;
|
|
6741
|
-
function O(
|
|
6742
|
-
C && C.call(this,
|
|
6741
|
+
function O(U) {
|
|
6742
|
+
C && C.call(this, U), c.call(this, U);
|
|
6743
6743
|
}
|
|
6744
6744
|
}
|
|
6745
6745
|
function c(C, O) {
|
|
6746
|
-
const
|
|
6747
|
-
if (
|
|
6748
|
-
|
|
6746
|
+
const U = this.stack.pop(), $ = this.tokenStack.pop();
|
|
6747
|
+
if ($)
|
|
6748
|
+
$[0].type !== C.type && (O ? O.call(this, C, $[0]) : ($[1] || Ci).call(this, C, $[0]));
|
|
6749
6749
|
else throw new Error("Cannot close `" + C.type + "` (" + It({
|
|
6750
6750
|
start: C.start,
|
|
6751
6751
|
end: C.end
|
|
6752
6752
|
}) + "): it’s not open");
|
|
6753
|
-
|
|
6753
|
+
U.position.end = Ve(C.end);
|
|
6754
6754
|
}
|
|
6755
6755
|
function u() {
|
|
6756
6756
|
return Tr(this.stack.pop());
|
|
@@ -6775,7 +6775,7 @@ function Af(e) {
|
|
|
6775
6775
|
function b() {
|
|
6776
6776
|
this.data.flowCodeInside || (this.buffer(), this.data.flowCodeInside = !0);
|
|
6777
6777
|
}
|
|
6778
|
-
function
|
|
6778
|
+
function S() {
|
|
6779
6779
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6780
6780
|
O.value = C.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g, ""), this.data.flowCodeInside = void 0;
|
|
6781
6781
|
}
|
|
@@ -6783,9 +6783,9 @@ function Af(e) {
|
|
|
6783
6783
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6784
6784
|
O.value = C.replace(/(\r?\n|\r)$/g, "");
|
|
6785
6785
|
}
|
|
6786
|
-
function
|
|
6787
|
-
const O = this.resume(),
|
|
6788
|
-
|
|
6786
|
+
function k(C) {
|
|
6787
|
+
const O = this.resume(), U = this.stack[this.stack.length - 1];
|
|
6788
|
+
U.label = O, U.identifier = De(this.sliceSerialize(C)).toLowerCase();
|
|
6789
6789
|
}
|
|
6790
6790
|
function E() {
|
|
6791
6791
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
@@ -6798,8 +6798,8 @@ function Af(e) {
|
|
|
6798
6798
|
function L(C) {
|
|
6799
6799
|
const O = this.stack[this.stack.length - 1];
|
|
6800
6800
|
if (!O.depth) {
|
|
6801
|
-
const
|
|
6802
|
-
O.depth =
|
|
6801
|
+
const U = this.sliceSerialize(C).length;
|
|
6802
|
+
O.depth = U;
|
|
6803
6803
|
}
|
|
6804
6804
|
}
|
|
6805
6805
|
function v() {
|
|
@@ -6813,23 +6813,23 @@ function Af(e) {
|
|
|
6813
6813
|
this.data.setextHeadingSlurpLineEnding = void 0;
|
|
6814
6814
|
}
|
|
6815
6815
|
function D(C) {
|
|
6816
|
-
const
|
|
6817
|
-
let
|
|
6818
|
-
(
|
|
6816
|
+
const U = this.stack[this.stack.length - 1].children;
|
|
6817
|
+
let $ = U[U.length - 1];
|
|
6818
|
+
(!$ || $.type !== "text") && ($ = el(), $.position = {
|
|
6819
6819
|
start: Ve(C.start),
|
|
6820
6820
|
// @ts-expect-error: we’ll add `end` later.
|
|
6821
6821
|
end: void 0
|
|
6822
|
-
},
|
|
6822
|
+
}, U.push($)), this.stack.push($);
|
|
6823
6823
|
}
|
|
6824
6824
|
function w(C) {
|
|
6825
6825
|
const O = this.stack.pop();
|
|
6826
6826
|
O.value += this.sliceSerialize(C), O.position.end = Ve(C.end);
|
|
6827
6827
|
}
|
|
6828
|
-
function
|
|
6828
|
+
function R(C) {
|
|
6829
6829
|
const O = this.stack[this.stack.length - 1];
|
|
6830
6830
|
if (this.data.atHardBreak) {
|
|
6831
|
-
const
|
|
6832
|
-
|
|
6831
|
+
const U = O.children[O.children.length - 1];
|
|
6832
|
+
U.position.end = Ve(C.end), this.data.atHardBreak = void 0;
|
|
6833
6833
|
return;
|
|
6834
6834
|
}
|
|
6835
6835
|
!this.data.setextHeadingSlurpLineEnding && t.canContainEols.includes(O.type) && (D.call(this, C), w.call(this, C));
|
|
@@ -6841,7 +6841,7 @@ function Af(e) {
|
|
|
6841
6841
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6842
6842
|
O.value = C;
|
|
6843
6843
|
}
|
|
6844
|
-
function
|
|
6844
|
+
function T() {
|
|
6845
6845
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6846
6846
|
O.value = C;
|
|
6847
6847
|
}
|
|
@@ -6849,7 +6849,7 @@ function Af(e) {
|
|
|
6849
6849
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
6850
6850
|
O.value = C;
|
|
6851
6851
|
}
|
|
6852
|
-
function
|
|
6852
|
+
function K() {
|
|
6853
6853
|
const C = this.stack[this.stack.length - 1];
|
|
6854
6854
|
if (this.data.inReference) {
|
|
6855
6855
|
const O = this.data.referenceType || "shortcut";
|
|
@@ -6858,7 +6858,7 @@ function Af(e) {
|
|
|
6858
6858
|
delete C.identifier, delete C.label;
|
|
6859
6859
|
this.data.referenceType = void 0;
|
|
6860
6860
|
}
|
|
6861
|
-
function
|
|
6861
|
+
function X() {
|
|
6862
6862
|
const C = this.stack[this.stack.length - 1];
|
|
6863
6863
|
if (this.data.inReference) {
|
|
6864
6864
|
const O = this.data.referenceType || "shortcut";
|
|
@@ -6868,16 +6868,16 @@ function Af(e) {
|
|
|
6868
6868
|
this.data.referenceType = void 0;
|
|
6869
6869
|
}
|
|
6870
6870
|
function Ee(C) {
|
|
6871
|
-
const O = this.sliceSerialize(C),
|
|
6872
|
-
|
|
6871
|
+
const O = this.sliceSerialize(C), U = this.stack[this.stack.length - 2];
|
|
6872
|
+
U.label = Ef(O), U.identifier = De(O).toLowerCase();
|
|
6873
6873
|
}
|
|
6874
6874
|
function Te() {
|
|
6875
|
-
const C = this.stack[this.stack.length - 1], O = this.resume(),
|
|
6876
|
-
if (this.data.inReference = !0,
|
|
6877
|
-
const
|
|
6878
|
-
|
|
6875
|
+
const C = this.stack[this.stack.length - 1], O = this.resume(), U = this.stack[this.stack.length - 1];
|
|
6876
|
+
if (this.data.inReference = !0, U.type === "link") {
|
|
6877
|
+
const $ = C.children;
|
|
6878
|
+
U.children = $;
|
|
6879
6879
|
} else
|
|
6880
|
-
|
|
6880
|
+
U.alt = O;
|
|
6881
6881
|
}
|
|
6882
6882
|
function m() {
|
|
6883
6883
|
const C = this.resume(), O = this.stack[this.stack.length - 1];
|
|
@@ -6893,19 +6893,19 @@ function Af(e) {
|
|
|
6893
6893
|
function g() {
|
|
6894
6894
|
this.data.referenceType = "collapsed";
|
|
6895
6895
|
}
|
|
6896
|
-
function
|
|
6897
|
-
const O = this.resume(),
|
|
6898
|
-
|
|
6896
|
+
function G(C) {
|
|
6897
|
+
const O = this.resume(), U = this.stack[this.stack.length - 1];
|
|
6898
|
+
U.label = O, U.identifier = De(this.sliceSerialize(C)).toLowerCase(), this.data.referenceType = "full";
|
|
6899
6899
|
}
|
|
6900
6900
|
function pe(C) {
|
|
6901
6901
|
this.data.characterReferenceType = C.type;
|
|
6902
6902
|
}
|
|
6903
6903
|
function ie(C) {
|
|
6904
|
-
const O = this.sliceSerialize(C),
|
|
6905
|
-
let
|
|
6906
|
-
|
|
6904
|
+
const O = this.sliceSerialize(C), U = this.data.characterReferenceType;
|
|
6905
|
+
let $;
|
|
6906
|
+
U ? ($ = da(O, U === "characterReferenceMarkerNumeric" ? 10 : 16), this.data.characterReferenceType = void 0) : $ = Nr(O);
|
|
6907
6907
|
const Y = this.stack[this.stack.length - 1];
|
|
6908
|
-
Y.value +=
|
|
6908
|
+
Y.value += $;
|
|
6909
6909
|
}
|
|
6910
6910
|
function Ge(C) {
|
|
6911
6911
|
const O = this.stack.pop();
|
|
@@ -7204,7 +7204,7 @@ function Ff(e, t) {
|
|
|
7204
7204
|
const r = { type: "element", tagName: "img", properties: n, children: [] };
|
|
7205
7205
|
return e.patch(t, r), e.applyData(t, r);
|
|
7206
7206
|
}
|
|
7207
|
-
function
|
|
7207
|
+
function Uf(e, t) {
|
|
7208
7208
|
const n = { type: "text", value: t.value.replace(/\r?\n|\r/g, " ") };
|
|
7209
7209
|
e.patch(t, n);
|
|
7210
7210
|
const r = {
|
|
@@ -7215,7 +7215,7 @@ function Bf(e, t) {
|
|
|
7215
7215
|
};
|
|
7216
7216
|
return e.patch(t, r), e.applyData(t, r);
|
|
7217
7217
|
}
|
|
7218
|
-
function
|
|
7218
|
+
function Bf(e, t) {
|
|
7219
7219
|
const n = String(t.identifier).toUpperCase(), r = e.definitionById.get(n);
|
|
7220
7220
|
if (!r)
|
|
7221
7221
|
return Ca(e, t);
|
|
@@ -7425,8 +7425,8 @@ const tp = {
|
|
|
7425
7425
|
html: zf,
|
|
7426
7426
|
imageReference: qf,
|
|
7427
7427
|
image: Ff,
|
|
7428
|
-
inlineCode:
|
|
7429
|
-
linkReference:
|
|
7428
|
+
inlineCode: Uf,
|
|
7429
|
+
linkReference: Bf,
|
|
7430
7430
|
link: jf,
|
|
7431
7431
|
listItem: Hf,
|
|
7432
7432
|
list: $f,
|
|
@@ -7636,8 +7636,8 @@ function lp(e) {
|
|
|
7636
7636
|
const h = [], b = e.footnoteCounts.get(f);
|
|
7637
7637
|
for (; b !== void 0 && ++p <= b; ) {
|
|
7638
7638
|
h.length > 0 && h.push({ type: "text", value: " " });
|
|
7639
|
-
let
|
|
7640
|
-
typeof
|
|
7639
|
+
let k = typeof n == "string" ? n : n(l, p);
|
|
7640
|
+
typeof k == "string" && (k = { type: "text", value: k }), h.push({
|
|
7641
7641
|
type: "element",
|
|
7642
7642
|
tagName: "a",
|
|
7643
7643
|
properties: {
|
|
@@ -7646,13 +7646,13 @@ function lp(e) {
|
|
|
7646
7646
|
ariaLabel: typeof r == "string" ? r : r(l, p),
|
|
7647
7647
|
className: ["data-footnote-backref"]
|
|
7648
7648
|
},
|
|
7649
|
-
children: Array.isArray(
|
|
7649
|
+
children: Array.isArray(k) ? k : [k]
|
|
7650
7650
|
});
|
|
7651
7651
|
}
|
|
7652
|
-
const
|
|
7653
|
-
if (
|
|
7654
|
-
const
|
|
7655
|
-
|
|
7652
|
+
const S = u[u.length - 1];
|
|
7653
|
+
if (S && S.type === "element" && S.tagName === "p") {
|
|
7654
|
+
const k = S.children[S.children.length - 1];
|
|
7655
|
+
k && k.type === "text" ? k.value += " " : S.children.push({ type: "text", value: " " }), S.children.push(...h);
|
|
7656
7656
|
} else
|
|
7657
7657
|
u.push(...h);
|
|
7658
7658
|
const y = {
|
|
@@ -7797,7 +7797,7 @@ function Ra(e, t, n, r) {
|
|
|
7797
7797
|
}
|
|
7798
7798
|
return d;
|
|
7799
7799
|
function d() {
|
|
7800
|
-
let p = Na, h, b,
|
|
7800
|
+
let p = Na, h, b, S;
|
|
7801
7801
|
if ((!t || o(l, c, u[u.length - 1] || void 0)) && (p = gp(n(l, u)), p[0] === tr))
|
|
7802
7802
|
return p;
|
|
7803
7803
|
if ("children" in l && l.children) {
|
|
@@ -7806,9 +7806,9 @@ function Ra(e, t, n, r) {
|
|
|
7806
7806
|
l
|
|
7807
7807
|
);
|
|
7808
7808
|
if (y.children && p[0] !== mp)
|
|
7809
|
-
for (b = (r ? y.children.length : -1) + a,
|
|
7810
|
-
const
|
|
7811
|
-
if (h = s(
|
|
7809
|
+
for (b = (r ? y.children.length : -1) + a, S = u.concat(y); b > -1 && b < y.children.length; ) {
|
|
7810
|
+
const k = y.children[b];
|
|
7811
|
+
if (h = s(k, b, S)(), h[0] === tr)
|
|
7812
7812
|
return h;
|
|
7813
7813
|
b = typeof h[1] == "number" ? h[1] : b + a;
|
|
7814
7814
|
}
|
|
@@ -7855,7 +7855,7 @@ function yp(e, t) {
|
|
|
7855
7855
|
return p(s, u, f);
|
|
7856
7856
|
if (s.options.passThrough && s.options.passThrough.includes(d)) {
|
|
7857
7857
|
if ("children" in u) {
|
|
7858
|
-
const { children: b, ...
|
|
7858
|
+
const { children: b, ...S } = u, y = Ot(S);
|
|
7859
7859
|
return y.children = s.all(u), y;
|
|
7860
7860
|
}
|
|
7861
7861
|
return Ot(u);
|
|
@@ -7979,11 +7979,11 @@ function Ep() {
|
|
|
7979
7979
|
return c[u];
|
|
7980
7980
|
};
|
|
7981
7981
|
return Nn = function l() {
|
|
7982
|
-
var c, u, f, d, p, h, b = arguments[0],
|
|
7983
|
-
for (typeof b == "boolean" && (
|
|
7984
|
-
if (c = arguments[
|
|
7982
|
+
var c, u, f, d, p, h, b = arguments[0], S = 1, y = arguments.length, k = !1;
|
|
7983
|
+
for (typeof b == "boolean" && (k = b, b = arguments[1] || {}, S = 2), (b == null || typeof b != "object" && typeof b != "function") && (b = {}); S < y; ++S)
|
|
7984
|
+
if (c = arguments[S], c != null)
|
|
7985
7985
|
for (u in c)
|
|
7986
|
-
f = s(b, u), d = s(c, u), b !== d && (
|
|
7986
|
+
f = s(b, u), d = s(c, u), b !== d && (k && d && (o(d) || (p = i(d))) ? (p ? (p = !1, h = f && i(f) ? f : []) : h = f && o(f) ? f : {}, a(b, { name: u, newValue: l(k, h, d) })) : typeof d < "u" && a(b, { name: u, newValue: d }));
|
|
7987
7987
|
return b;
|
|
7988
7988
|
}, Nn;
|
|
7989
7989
|
}
|
|
@@ -8055,7 +8055,7 @@ const ze = { basename: Ip, dirname: Tp, extname: Np, join: Rp, sep: "/" };
|
|
|
8055
8055
|
function Ip(e, t) {
|
|
8056
8056
|
if (t !== void 0 && typeof t != "string")
|
|
8057
8057
|
throw new TypeError('"ext" argument must be a string');
|
|
8058
|
-
|
|
8058
|
+
Bt(e);
|
|
8059
8059
|
let n = 0, r = -1, i = e.length, o;
|
|
8060
8060
|
if (t === void 0 || t.length === 0 || t.length > e.length) {
|
|
8061
8061
|
for (; i--; )
|
|
@@ -8081,7 +8081,7 @@ function Ip(e, t) {
|
|
|
8081
8081
|
return n === r ? r = a : r < 0 && (r = e.length), e.slice(n, r);
|
|
8082
8082
|
}
|
|
8083
8083
|
function Tp(e) {
|
|
8084
|
-
if (
|
|
8084
|
+
if (Bt(e), e.length === 0)
|
|
8085
8085
|
return ".";
|
|
8086
8086
|
let t = -1, n = e.length, r;
|
|
8087
8087
|
for (; --n; )
|
|
@@ -8094,7 +8094,7 @@ function Tp(e) {
|
|
|
8094
8094
|
return t < 0 ? e.codePointAt(0) === 47 ? "/" : "." : t === 1 && e.codePointAt(0) === 47 ? "//" : e.slice(0, t);
|
|
8095
8095
|
}
|
|
8096
8096
|
function Np(e) {
|
|
8097
|
-
|
|
8097
|
+
Bt(e);
|
|
8098
8098
|
let t = e.length, n = -1, r = 0, i = -1, o = 0, a;
|
|
8099
8099
|
for (; t--; ) {
|
|
8100
8100
|
const s = e.codePointAt(t);
|
|
@@ -8114,11 +8114,11 @@ function Np(e) {
|
|
|
8114
8114
|
function Rp(...e) {
|
|
8115
8115
|
let t = -1, n;
|
|
8116
8116
|
for (; ++t < e.length; )
|
|
8117
|
-
|
|
8117
|
+
Bt(e[t]), e[t] && (n = n === void 0 ? e[t] : n + "/" + e[t]);
|
|
8118
8118
|
return n === void 0 ? "." : Lp(n);
|
|
8119
8119
|
}
|
|
8120
8120
|
function Lp(e) {
|
|
8121
|
-
|
|
8121
|
+
Bt(e);
|
|
8122
8122
|
const t = e.codePointAt(0) === 47;
|
|
8123
8123
|
let n = Op(e, !t);
|
|
8124
8124
|
return n.length === 0 && !t && (n = "."), n.length > 0 && e.codePointAt(e.length - 1) === 47 && (n += "/"), t ? "/" + n : n;
|
|
@@ -8154,7 +8154,7 @@ function Op(e, t) {
|
|
|
8154
8154
|
}
|
|
8155
8155
|
return n;
|
|
8156
8156
|
}
|
|
8157
|
-
function
|
|
8157
|
+
function Bt(e) {
|
|
8158
8158
|
if (typeof e != "string")
|
|
8159
8159
|
throw new TypeError(
|
|
8160
8160
|
"Path must be a string. Received " + JSON.stringify(e)
|
|
@@ -8623,7 +8623,7 @@ const Fp = (
|
|
|
8623
8623
|
};
|
|
8624
8624
|
return Object.setPrototypeOf(o, r), o;
|
|
8625
8625
|
}
|
|
8626
|
-
),
|
|
8626
|
+
), Up = {}.hasOwnProperty;
|
|
8627
8627
|
class zr extends Fp {
|
|
8628
8628
|
/**
|
|
8629
8629
|
* Create a processor.
|
|
@@ -8714,7 +8714,7 @@ class zr extends Fp {
|
|
|
8714
8714
|
* the entire dataset when getting without key.
|
|
8715
8715
|
*/
|
|
8716
8716
|
data(t, n) {
|
|
8717
|
-
return typeof t == "string" ? arguments.length === 2 ? (zn("data", this.frozen), this.namespace[t] = n, this) :
|
|
8717
|
+
return typeof t == "string" ? arguments.length === 2 ? (zn("data", this.frozen), this.namespace[t] = n, this) : Up.call(this.namespace, t) && this.namespace[t] || void 0 : t ? (zn("data", this.frozen), this.namespace = t, this) : this.namespace;
|
|
8718
8718
|
}
|
|
8719
8719
|
/**
|
|
8720
8720
|
* Freeze a processor.
|
|
@@ -9105,7 +9105,7 @@ class zr extends Fp {
|
|
|
9105
9105
|
}
|
|
9106
9106
|
}
|
|
9107
9107
|
}
|
|
9108
|
-
const
|
|
9108
|
+
const Bp = new zr().freeze();
|
|
9109
9109
|
function Pn(e, t) {
|
|
9110
9110
|
if (typeof t != "function")
|
|
9111
9111
|
throw new TypeError("Cannot `" + e + "` without `parser`");
|
|
@@ -9142,7 +9142,7 @@ function Hp(e) {
|
|
|
9142
9142
|
function Vp(e) {
|
|
9143
9143
|
return !!(e && typeof e == "object" && "byteLength" in e && "byteOffset" in e);
|
|
9144
9144
|
}
|
|
9145
|
-
const $p = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Fi = [],
|
|
9145
|
+
const $p = "https://github.com/remarkjs/react-markdown/blob/main/changelog.md", Fi = [], Ui = { allowDangerousHtml: !0 }, Wp = /^(https?|ircs?|mailto|xmpp)$/i, Gp = [
|
|
9146
9146
|
{ from: "astPlugins", id: "remove-buggy-html-in-markdown-parser" },
|
|
9147
9147
|
{ from: "allowDangerousHtml", id: "remove-buggy-html-in-markdown-parser" },
|
|
9148
9148
|
{
|
|
@@ -9181,8 +9181,8 @@ function Kp(e) {
|
|
|
9181
9181
|
return Qp(t.runSync(t.parse(n), n), e);
|
|
9182
9182
|
}
|
|
9183
9183
|
function Yp(e) {
|
|
9184
|
-
const t = e.rehypePlugins || Fi, n = e.remarkPlugins || Fi, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...
|
|
9185
|
-
return
|
|
9184
|
+
const t = e.rehypePlugins || Fi, n = e.remarkPlugins || Fi, r = e.remarkRehypeOptions ? { ...e.remarkRehypeOptions, ...Ui } : Ui;
|
|
9185
|
+
return Bp().use(Tf).use(n).use(Sp, r).use(t);
|
|
9186
9186
|
}
|
|
9187
9187
|
function Jp(e) {
|
|
9188
9188
|
const t = e.children || "", n = new La();
|
|
@@ -9197,7 +9197,7 @@ function Qp(e, t) {
|
|
|
9197
9197
|
components: i,
|
|
9198
9198
|
ignoreInvalidStyle: !0,
|
|
9199
9199
|
jsx: x,
|
|
9200
|
-
jsxs:
|
|
9200
|
+
jsxs: B,
|
|
9201
9201
|
passKeys: !0,
|
|
9202
9202
|
passNode: !0
|
|
9203
9203
|
});
|
|
@@ -9228,7 +9228,7 @@ function Xp(e) {
|
|
|
9228
9228
|
Wp.test(e.slice(0, t)) ? e : ""
|
|
9229
9229
|
);
|
|
9230
9230
|
}
|
|
9231
|
-
const Ye = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"],
|
|
9231
|
+
const Ye = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Bi = {
|
|
9232
9232
|
ancestors: {
|
|
9233
9233
|
tbody: ["table"],
|
|
9234
9234
|
td: ["table"],
|
|
@@ -9426,7 +9426,7 @@ const Ye = ["ariaDescribedBy", "ariaLabel", "ariaLabelledBy"], Ui = {
|
|
|
9426
9426
|
function Zp(e, t) {
|
|
9427
9427
|
let n = { type: "root", children: [] };
|
|
9428
9428
|
const r = {
|
|
9429
|
-
schema: t ? { ...
|
|
9429
|
+
schema: t ? { ...Bi, ...t } : Bi,
|
|
9430
9430
|
stack: []
|
|
9431
9431
|
}, i = Oa(r, e);
|
|
9432
9432
|
return i && (Array.isArray(i) ? i.length === 1 ? n = i[0] : n.children = i : n = i), n;
|
|
@@ -9651,8 +9651,8 @@ function ud(e, t, n) {
|
|
|
9651
9651
|
function l(c, u) {
|
|
9652
9652
|
const f = u[u.length - 1], d = o[a][0], p = o[a][1];
|
|
9653
9653
|
let h = 0;
|
|
9654
|
-
const
|
|
9655
|
-
let y = !1,
|
|
9654
|
+
const S = f.children.indexOf(c);
|
|
9655
|
+
let y = !1, k = [];
|
|
9656
9656
|
d.lastIndex = 0;
|
|
9657
9657
|
let E = d.exec(c.value);
|
|
9658
9658
|
for (; E; ) {
|
|
@@ -9662,14 +9662,14 @@ function ud(e, t, n) {
|
|
|
9662
9662
|
stack: [...u, c]
|
|
9663
9663
|
};
|
|
9664
9664
|
let v = p(...E, L);
|
|
9665
|
-
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ? d.lastIndex = P + 1 : (h !== P &&
|
|
9665
|
+
if (typeof v == "string" && (v = v.length > 0 ? { type: "text", value: v } : void 0), v === !1 ? d.lastIndex = P + 1 : (h !== P && k.push({
|
|
9666
9666
|
type: "text",
|
|
9667
9667
|
value: c.value.slice(h, P)
|
|
9668
|
-
}), Array.isArray(v) ?
|
|
9668
|
+
}), Array.isArray(v) ? k.push(...v) : v && k.push(v), h = P + E[0].length, y = !0), !d.global)
|
|
9669
9669
|
break;
|
|
9670
9670
|
E = d.exec(c.value);
|
|
9671
9671
|
}
|
|
9672
|
-
return y ? (h < c.value.length &&
|
|
9672
|
+
return y ? (h < c.value.length && k.push({ type: "text", value: c.value.slice(h) }), f.children.splice(S, 1, ...k)) : k = [c], S + k.length;
|
|
9673
9673
|
}
|
|
9674
9674
|
}
|
|
9675
9675
|
function fd(e) {
|
|
@@ -9698,9 +9698,9 @@ function hd() {
|
|
|
9698
9698
|
transforms: [vd],
|
|
9699
9699
|
enter: {
|
|
9700
9700
|
literalAutolink: gd,
|
|
9701
|
-
literalAutolinkEmail:
|
|
9702
|
-
literalAutolinkHttp:
|
|
9703
|
-
literalAutolinkWww:
|
|
9701
|
+
literalAutolinkEmail: Un,
|
|
9702
|
+
literalAutolinkHttp: Un,
|
|
9703
|
+
literalAutolinkWww: Un
|
|
9704
9704
|
},
|
|
9705
9705
|
exit: {
|
|
9706
9706
|
literalAutolink: xd,
|
|
@@ -9740,7 +9740,7 @@ function md() {
|
|
|
9740
9740
|
function gd(e) {
|
|
9741
9741
|
this.enter({ type: "link", title: null, url: "", children: [] }, e);
|
|
9742
9742
|
}
|
|
9743
|
-
function
|
|
9743
|
+
function Un(e) {
|
|
9744
9744
|
this.config.enter.autolinkProtocol.call(this, e);
|
|
9745
9745
|
}
|
|
9746
9746
|
function bd(e) {
|
|
@@ -9915,11 +9915,11 @@ Fa.peek = Hd;
|
|
|
9915
9915
|
function Fd() {
|
|
9916
9916
|
return {
|
|
9917
9917
|
canContainEols: ["delete"],
|
|
9918
|
-
enter: { strikethrough:
|
|
9918
|
+
enter: { strikethrough: Bd },
|
|
9919
9919
|
exit: { strikethrough: jd }
|
|
9920
9920
|
};
|
|
9921
9921
|
}
|
|
9922
|
-
function
|
|
9922
|
+
function Ud() {
|
|
9923
9923
|
return {
|
|
9924
9924
|
unsafe: [
|
|
9925
9925
|
{
|
|
@@ -9931,7 +9931,7 @@ function Bd() {
|
|
|
9931
9931
|
handlers: { delete: Fa }
|
|
9932
9932
|
};
|
|
9933
9933
|
}
|
|
9934
|
-
function
|
|
9934
|
+
function Bd(e) {
|
|
9935
9935
|
this.enter({ type: "delete", children: [] }, e);
|
|
9936
9936
|
}
|
|
9937
9937
|
function jd(e) {
|
|
@@ -9956,17 +9956,17 @@ function $d(e, t) {
|
|
|
9956
9956
|
const n = t || {}, r = (n.align || []).concat(), i = n.stringLength || Vd, o = [], a = [], s = [], l = [];
|
|
9957
9957
|
let c = 0, u = -1;
|
|
9958
9958
|
for (; ++u < e.length; ) {
|
|
9959
|
-
const b = [],
|
|
9959
|
+
const b = [], S = [];
|
|
9960
9960
|
let y = -1;
|
|
9961
9961
|
for (e[u].length > c && (c = e[u].length); ++y < e[u].length; ) {
|
|
9962
|
-
const
|
|
9962
|
+
const k = Wd(e[u][y]);
|
|
9963
9963
|
if (n.alignDelimiters !== !1) {
|
|
9964
|
-
const E = i(
|
|
9965
|
-
|
|
9964
|
+
const E = i(k);
|
|
9965
|
+
S[y] = E, (l[y] === void 0 || E > l[y]) && (l[y] = E);
|
|
9966
9966
|
}
|
|
9967
|
-
b.push(
|
|
9967
|
+
b.push(k);
|
|
9968
9968
|
}
|
|
9969
|
-
a[u] = b, s[u] =
|
|
9969
|
+
a[u] = b, s[u] = S;
|
|
9970
9970
|
}
|
|
9971
9971
|
let f = -1;
|
|
9972
9972
|
if (typeof r == "object" && "length" in r)
|
|
@@ -9981,31 +9981,31 @@ function $d(e, t) {
|
|
|
9981
9981
|
const d = [], p = [];
|
|
9982
9982
|
for (; ++f < c; ) {
|
|
9983
9983
|
const b = o[f];
|
|
9984
|
-
let
|
|
9985
|
-
b === 99 ? (
|
|
9986
|
-
let
|
|
9984
|
+
let S = "", y = "";
|
|
9985
|
+
b === 99 ? (S = ":", y = ":") : b === 108 ? S = ":" : b === 114 && (y = ":");
|
|
9986
|
+
let k = n.alignDelimiters === !1 ? 1 : Math.max(
|
|
9987
9987
|
1,
|
|
9988
|
-
l[f] -
|
|
9988
|
+
l[f] - S.length - y.length
|
|
9989
9989
|
);
|
|
9990
|
-
const E =
|
|
9991
|
-
n.alignDelimiters !== !1 && (
|
|
9990
|
+
const E = S + "-".repeat(k) + y;
|
|
9991
|
+
n.alignDelimiters !== !1 && (k = S.length + k + y.length, k > l[f] && (l[f] = k), p[f] = k), d[f] = E;
|
|
9992
9992
|
}
|
|
9993
9993
|
a.splice(1, 0, d), s.splice(1, 0, p), u = -1;
|
|
9994
9994
|
const h = [];
|
|
9995
9995
|
for (; ++u < a.length; ) {
|
|
9996
|
-
const b = a[u],
|
|
9996
|
+
const b = a[u], S = s[u];
|
|
9997
9997
|
f = -1;
|
|
9998
9998
|
const y = [];
|
|
9999
9999
|
for (; ++f < c; ) {
|
|
10000
|
-
const
|
|
10000
|
+
const k = b[f] || "";
|
|
10001
10001
|
let E = "", P = "";
|
|
10002
10002
|
if (n.alignDelimiters !== !1) {
|
|
10003
|
-
const L = l[f] - (
|
|
10003
|
+
const L = l[f] - (S[f] || 0), v = o[f];
|
|
10004
10004
|
v === 114 ? E = " ".repeat(L) : v === 99 ? L % 2 ? (E = " ".repeat(L / 2 + 0.5), P = " ".repeat(L / 2 - 0.5)) : (E = " ".repeat(L / 2), P = E) : P = " ".repeat(L);
|
|
10005
10005
|
}
|
|
10006
10006
|
n.delimiterStart !== !1 && !f && y.push("|"), n.padding !== !1 && // Don’t add the opening space if we’re not aligning and the cell is
|
|
10007
10007
|
// empty: there will be a closing space.
|
|
10008
|
-
!(n.alignDelimiters === !1 &&
|
|
10008
|
+
!(n.alignDelimiters === !1 && k === "") && (n.delimiterStart !== !1 || f) && y.push(" "), n.alignDelimiters !== !1 && y.push(E), y.push(k), n.alignDelimiters !== !1 && y.push(P), n.padding !== !1 && y.push(" "), (n.delimiterEnd !== !1 || f !== c - 1) && y.push("|");
|
|
10009
10009
|
}
|
|
10010
10010
|
h.push(
|
|
10011
10011
|
n.delimiterEnd === !1 ? y.join("").replace(/ +$/, "") : y.join("")
|
|
@@ -10197,8 +10197,8 @@ function fn(e, t, n) {
|
|
|
10197
10197
|
{ inside: !1, outside: !1 }
|
|
10198
10198
|
);
|
|
10199
10199
|
}
|
|
10200
|
-
|
|
10201
|
-
function
|
|
10200
|
+
Ua.peek = rh;
|
|
10201
|
+
function Ua(e, t, n, r) {
|
|
10202
10202
|
const i = nh(n), o = n.enter("emphasis"), a = n.createTracker(r), s = a.move(i);
|
|
10203
10203
|
let l = a.move(
|
|
10204
10204
|
n.containerPhrasing(e, {
|
|
@@ -10260,8 +10260,8 @@ function oh(e, t, n, r) {
|
|
|
10260
10260
|
});
|
|
10261
10261
|
return /^[\t ]/.test(c) && (c = Dt(c.charCodeAt(0)) + c.slice(1)), c = c ? a + " " + c : a, n.options.closeAtx && (c += " " + a), l(), s(), c;
|
|
10262
10262
|
}
|
|
10263
|
-
|
|
10264
|
-
function
|
|
10263
|
+
Ba.peek = ah;
|
|
10264
|
+
function Ba(e) {
|
|
10265
10265
|
return e.value || "";
|
|
10266
10266
|
}
|
|
10267
10267
|
function ah() {
|
|
@@ -10600,10 +10600,10 @@ const Ja = {
|
|
|
10600
10600
|
break: Gi,
|
|
10601
10601
|
code: Zd,
|
|
10602
10602
|
definition: th,
|
|
10603
|
-
emphasis:
|
|
10603
|
+
emphasis: Ua,
|
|
10604
10604
|
hardBreak: Gi,
|
|
10605
10605
|
heading: oh,
|
|
10606
|
-
html:
|
|
10606
|
+
html: Ba,
|
|
10607
10607
|
image: ja,
|
|
10608
10608
|
imageReference: Ha,
|
|
10609
10609
|
inlineCode: Va,
|
|
@@ -10628,9 +10628,9 @@ function Ch() {
|
|
|
10628
10628
|
exit: {
|
|
10629
10629
|
codeText: Th,
|
|
10630
10630
|
table: Ah,
|
|
10631
|
-
tableData:
|
|
10632
|
-
tableHeader:
|
|
10633
|
-
tableRow:
|
|
10631
|
+
tableData: Bn,
|
|
10632
|
+
tableHeader: Bn,
|
|
10633
|
+
tableRow: Bn
|
|
10634
10634
|
}
|
|
10635
10635
|
};
|
|
10636
10636
|
}
|
|
@@ -10653,7 +10653,7 @@ function Ah(e) {
|
|
|
10653
10653
|
function Ih(e) {
|
|
10654
10654
|
this.enter({ type: "tableRow", children: [] }, e);
|
|
10655
10655
|
}
|
|
10656
|
-
function
|
|
10656
|
+
function Bn(e) {
|
|
10657
10657
|
this.exit(e);
|
|
10658
10658
|
}
|
|
10659
10659
|
function Ki(e) {
|
|
@@ -10697,21 +10697,21 @@ function Rh(e) {
|
|
|
10697
10697
|
tableRow: s
|
|
10698
10698
|
}
|
|
10699
10699
|
};
|
|
10700
|
-
function a(p, h, b,
|
|
10701
|
-
return c(u(p, b,
|
|
10700
|
+
function a(p, h, b, S) {
|
|
10701
|
+
return c(u(p, b, S), p.align);
|
|
10702
10702
|
}
|
|
10703
|
-
function s(p, h, b,
|
|
10704
|
-
const y = f(p, b,
|
|
10705
|
-
return
|
|
10703
|
+
function s(p, h, b, S) {
|
|
10704
|
+
const y = f(p, b, S), k = c([y]);
|
|
10705
|
+
return k.slice(0, k.indexOf(`
|
|
10706
10706
|
`));
|
|
10707
10707
|
}
|
|
10708
|
-
function l(p, h, b,
|
|
10709
|
-
const y = b.enter("tableCell"),
|
|
10710
|
-
...
|
|
10708
|
+
function l(p, h, b, S) {
|
|
10709
|
+
const y = b.enter("tableCell"), k = b.enter("phrasing"), E = b.containerPhrasing(p, {
|
|
10710
|
+
...S,
|
|
10711
10711
|
before: o,
|
|
10712
10712
|
after: o
|
|
10713
10713
|
});
|
|
10714
|
-
return
|
|
10714
|
+
return k(), y(), E;
|
|
10715
10715
|
}
|
|
10716
10716
|
function c(p, h) {
|
|
10717
10717
|
return $d(p, {
|
|
@@ -10725,24 +10725,24 @@ function Rh(e) {
|
|
|
10725
10725
|
});
|
|
10726
10726
|
}
|
|
10727
10727
|
function u(p, h, b) {
|
|
10728
|
-
const
|
|
10728
|
+
const S = p.children;
|
|
10729
10729
|
let y = -1;
|
|
10730
|
-
const
|
|
10731
|
-
for (; ++y <
|
|
10732
|
-
|
|
10733
|
-
return E(),
|
|
10730
|
+
const k = [], E = h.enter("table");
|
|
10731
|
+
for (; ++y < S.length; )
|
|
10732
|
+
k[y] = f(S[y], h, b);
|
|
10733
|
+
return E(), k;
|
|
10734
10734
|
}
|
|
10735
10735
|
function f(p, h, b) {
|
|
10736
|
-
const
|
|
10736
|
+
const S = p.children;
|
|
10737
10737
|
let y = -1;
|
|
10738
|
-
const
|
|
10739
|
-
for (; ++y <
|
|
10740
|
-
|
|
10741
|
-
return E(),
|
|
10738
|
+
const k = [], E = h.enter("tableRow");
|
|
10739
|
+
for (; ++y < S.length; )
|
|
10740
|
+
k[y] = l(S[y], p, h, b);
|
|
10741
|
+
return E(), k;
|
|
10742
10742
|
}
|
|
10743
10743
|
function d(p, h, b) {
|
|
10744
|
-
let
|
|
10745
|
-
return b.stack.includes("tableCell") && (
|
|
10744
|
+
let S = Ja.inlineCode(p, h, b);
|
|
10745
|
+
return b.stack.includes("tableCell") && (S = S.replace(/\|/g, "\\$&")), S;
|
|
10746
10746
|
}
|
|
10747
10747
|
}
|
|
10748
10748
|
function Lh() {
|
|
@@ -10811,7 +10811,7 @@ function zh(e) {
|
|
|
10811
10811
|
extensions: [
|
|
10812
10812
|
md(),
|
|
10813
10813
|
Md(e),
|
|
10814
|
-
|
|
10814
|
+
Ud(),
|
|
10815
10815
|
Rh(e),
|
|
10816
10816
|
Oh()
|
|
10817
10817
|
]
|
|
@@ -10842,10 +10842,10 @@ const qh = {
|
|
|
10842
10842
|
previous: rs
|
|
10843
10843
|
}, He = {
|
|
10844
10844
|
name: "emailAutolink",
|
|
10845
|
-
tokenize:
|
|
10845
|
+
tokenize: Bh,
|
|
10846
10846
|
previous: is
|
|
10847
10847
|
}, qe = {};
|
|
10848
|
-
function
|
|
10848
|
+
function Uh() {
|
|
10849
10849
|
return {
|
|
10850
10850
|
text: qe
|
|
10851
10851
|
};
|
|
@@ -10861,12 +10861,12 @@ qe[72] = [He, ts];
|
|
|
10861
10861
|
qe[104] = [He, ts];
|
|
10862
10862
|
qe[87] = [He, es];
|
|
10863
10863
|
qe[119] = [He, es];
|
|
10864
|
-
function
|
|
10864
|
+
function Bh(e, t, n) {
|
|
10865
10865
|
const r = this;
|
|
10866
10866
|
let i, o;
|
|
10867
10867
|
return a;
|
|
10868
10868
|
function a(f) {
|
|
10869
|
-
return !or(f) || !is.call(r, r.previous) ||
|
|
10869
|
+
return !or(f) || !is.call(r, r.previous) || Ur(r.events) ? n(f) : (e.enter("literalAutolink"), e.enter("literalAutolinkEmail"), s(f));
|
|
10870
10870
|
}
|
|
10871
10871
|
function s(f) {
|
|
10872
10872
|
return or(f) ? (e.consume(f), s) : f === 64 ? (e.consume(f), l) : n(f);
|
|
@@ -10885,7 +10885,7 @@ function jh(e, t, n) {
|
|
|
10885
10885
|
const r = this;
|
|
10886
10886
|
return i;
|
|
10887
10887
|
function i(a) {
|
|
10888
|
-
return a !== 87 && a !== 119 || !ns.call(r, r.previous) ||
|
|
10888
|
+
return a !== 87 && a !== 119 || !ns.call(r, r.previous) || Ur(r.events) ? n(a) : (e.enter("literalAutolink"), e.enter("literalAutolinkWww"), e.check(qh, e.attempt(Qa, e.attempt(Xa, o), n), n)(a));
|
|
10889
10889
|
}
|
|
10890
10890
|
function o(a) {
|
|
10891
10891
|
return e.exit("literalAutolinkWww"), e.exit("literalAutolink"), t(a);
|
|
@@ -10896,7 +10896,7 @@ function Hh(e, t, n) {
|
|
|
10896
10896
|
let i = "", o = !1;
|
|
10897
10897
|
return a;
|
|
10898
10898
|
function a(f) {
|
|
10899
|
-
return (f === 72 || f === 104) && rs.call(r, r.previous) && !
|
|
10899
|
+
return (f === 72 || f === 104) && rs.call(r, r.previous) && !Ur(r.events) ? (e.enter("literalAutolink"), e.enter("literalAutolinkHttp"), i += String.fromCodePoint(f), e.consume(f), s) : n(f);
|
|
10900
10900
|
}
|
|
10901
10901
|
function s(f) {
|
|
10902
10902
|
if (he(f) && i.length < 5)
|
|
@@ -10991,7 +10991,7 @@ function is(e) {
|
|
|
10991
10991
|
function or(e) {
|
|
10992
10992
|
return e === 43 || e === 45 || e === 46 || e === 95 || ce(e);
|
|
10993
10993
|
}
|
|
10994
|
-
function
|
|
10994
|
+
function Ur(e) {
|
|
10995
10995
|
let t = e.length, n = !1;
|
|
10996
10996
|
for (; t--; ) {
|
|
10997
10997
|
const r = e[t][1];
|
|
@@ -11171,21 +11171,21 @@ function em(e, t, n) {
|
|
|
11171
11171
|
return h === 91 || h === 92 || h === 93 ? (e.consume(h), a++, u) : u(h);
|
|
11172
11172
|
}
|
|
11173
11173
|
function d(h) {
|
|
11174
|
-
return h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), i.includes(o) || i.push(o),
|
|
11174
|
+
return h === 58 ? (e.enter("definitionMarker"), e.consume(h), e.exit("definitionMarker"), i.includes(o) || i.push(o), W(e, p, "gfmFootnoteDefinitionWhitespace")) : n(h);
|
|
11175
11175
|
}
|
|
11176
11176
|
function p(h) {
|
|
11177
11177
|
return t(h);
|
|
11178
11178
|
}
|
|
11179
11179
|
}
|
|
11180
11180
|
function tm(e, t, n) {
|
|
11181
|
-
return e.check(
|
|
11181
|
+
return e.check(Ut, t, e.attempt(Yh, t, n));
|
|
11182
11182
|
}
|
|
11183
11183
|
function nm(e) {
|
|
11184
11184
|
e.exit("gfmFootnoteDefinition");
|
|
11185
11185
|
}
|
|
11186
11186
|
function rm(e, t, n) {
|
|
11187
11187
|
const r = this;
|
|
11188
|
-
return
|
|
11188
|
+
return W(e, i, "gfmFootnoteDefinitionIndent", 5);
|
|
11189
11189
|
function i(o) {
|
|
11190
11190
|
const a = r.events[r.events.length - 1];
|
|
11191
11191
|
return a && a[1].type === "gfmFootnoteDefinitionIndent" && a[2].sliceSerialize(a[1], !0).length === 4 ? t(o) : n(o);
|
|
@@ -11247,8 +11247,8 @@ function im(e) {
|
|
|
11247
11247
|
if (h === 126)
|
|
11248
11248
|
return f > 1 ? l(h) : (a.consume(h), f++, p);
|
|
11249
11249
|
if (f < 2 && !n) return l(h);
|
|
11250
|
-
const
|
|
11251
|
-
return
|
|
11250
|
+
const S = a.exit("strikethroughSequenceTemporary"), y = ft(h);
|
|
11251
|
+
return S._open = !y || y === 2 && !!b, S._close = !b || b === 2 && !!y, s(h);
|
|
11252
11252
|
}
|
|
11253
11253
|
}
|
|
11254
11254
|
}
|
|
@@ -11356,14 +11356,14 @@ function cm(e, t, n) {
|
|
|
11356
11356
|
let i = 0, o = 0, a;
|
|
11357
11357
|
return s;
|
|
11358
11358
|
function s(w) {
|
|
11359
|
-
let
|
|
11360
|
-
for (;
|
|
11361
|
-
const
|
|
11362
|
-
if (
|
|
11363
|
-
|
|
11359
|
+
let R = r.events.length - 1;
|
|
11360
|
+
for (; R > -1; ) {
|
|
11361
|
+
const T = r.events[R][1].type;
|
|
11362
|
+
if (T === "lineEnding" || // Note: markdown-rs uses `whitespace` instead of `linePrefix`
|
|
11363
|
+
T === "linePrefix") R--;
|
|
11364
11364
|
else break;
|
|
11365
11365
|
}
|
|
11366
|
-
const I =
|
|
11366
|
+
const I = R > -1 ? r.events[R][1].type : null, _ = I === "tableHead" || I === "tableRow" ? v : l;
|
|
11367
11367
|
return _ === v && r.parser.lazy[r.now().line] ? n(w) : _(w);
|
|
11368
11368
|
}
|
|
11369
11369
|
function l(w) {
|
|
@@ -11373,7 +11373,7 @@ function cm(e, t, n) {
|
|
|
11373
11373
|
return w === 124 || (a = !0, o += 1), u(w);
|
|
11374
11374
|
}
|
|
11375
11375
|
function u(w) {
|
|
11376
|
-
return w === null ? n(w) : q(w) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), p) : n(w) : H(w) ?
|
|
11376
|
+
return w === null ? n(w) : q(w) ? o > 1 ? (o = 0, r.interrupt = !0, e.exit("tableRow"), e.enter("lineEnding"), e.consume(w), e.exit("lineEnding"), p) : n(w) : H(w) ? W(e, u, "whitespace")(w) : (o += 1, a && (a = !1, i += 1), w === 124 ? (e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), a = !0, u) : (e.enter("data"), f(w)));
|
|
11377
11377
|
}
|
|
11378
11378
|
function f(w) {
|
|
11379
11379
|
return w === null || w === 124 || J(w) ? (e.exit("data"), u(w)) : (e.consume(w), w === 92 ? d : f);
|
|
@@ -11382,25 +11382,25 @@ function cm(e, t, n) {
|
|
|
11382
11382
|
return w === 92 || w === 124 ? (e.consume(w), f) : f(w);
|
|
11383
11383
|
}
|
|
11384
11384
|
function p(w) {
|
|
11385
|
-
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(w) : (e.enter("tableDelimiterRow"), a = !1, H(w) ?
|
|
11385
|
+
return r.interrupt = !1, r.parser.lazy[r.now().line] ? n(w) : (e.enter("tableDelimiterRow"), a = !1, H(w) ? W(e, h, "linePrefix", r.parser.constructs.disable.null.includes("codeIndented") ? void 0 : 4)(w) : h(w));
|
|
11386
11386
|
}
|
|
11387
11387
|
function h(w) {
|
|
11388
|
-
return w === 45 || w === 58 ?
|
|
11388
|
+
return w === 45 || w === 58 ? S(w) : w === 124 ? (a = !0, e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), b) : L(w);
|
|
11389
11389
|
}
|
|
11390
11390
|
function b(w) {
|
|
11391
|
-
return H(w) ?
|
|
11391
|
+
return H(w) ? W(e, S, "whitespace")(w) : S(w);
|
|
11392
11392
|
}
|
|
11393
|
-
function
|
|
11393
|
+
function S(w) {
|
|
11394
11394
|
return w === 58 ? (o += 1, a = !0, e.enter("tableDelimiterMarker"), e.consume(w), e.exit("tableDelimiterMarker"), y) : w === 45 ? (o += 1, y(w)) : w === null || q(w) ? P(w) : L(w);
|
|
11395
11395
|
}
|
|
11396
11396
|
function y(w) {
|
|
11397
|
-
return w === 45 ? (e.enter("tableDelimiterFiller"),
|
|
11397
|
+
return w === 45 ? (e.enter("tableDelimiterFiller"), k(w)) : L(w);
|
|
11398
11398
|
}
|
|
11399
|
-
function
|
|
11400
|
-
return w === 45 ? (e.consume(w),
|
|
11399
|
+
function k(w) {
|
|
11400
|
+
return w === 45 ? (e.consume(w), k) : w === 58 ? (a = !0, e.exit("tableDelimiterFiller"), e.enter("tableDelimiterMarker"), e.consume(w), e.exit("tableDelimiterMarker"), E) : (e.exit("tableDelimiterFiller"), E(w));
|
|
11401
11401
|
}
|
|
11402
11402
|
function E(w) {
|
|
11403
|
-
return H(w) ?
|
|
11403
|
+
return H(w) ? W(e, P, "whitespace")(w) : P(w);
|
|
11404
11404
|
}
|
|
11405
11405
|
function P(w) {
|
|
11406
11406
|
return w === 124 ? h(w) : w === null || q(w) ? !a || i !== o ? L(w) : (e.exit("tableDelimiterRow"), e.exit("tableHead"), t(w)) : L(w);
|
|
@@ -11412,7 +11412,7 @@ function cm(e, t, n) {
|
|
|
11412
11412
|
return e.enter("tableRow"), M(w);
|
|
11413
11413
|
}
|
|
11414
11414
|
function M(w) {
|
|
11415
|
-
return w === 124 ? (e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), M) : w === null || q(w) ? (e.exit("tableRow"), t(w)) : H(w) ?
|
|
11415
|
+
return w === 124 ? (e.enter("tableCellDivider"), e.consume(w), e.exit("tableCellDivider"), M) : w === null || q(w) ? (e.exit("tableRow"), t(w)) : H(w) ? W(e, M, "whitespace")(w) : (e.enter("data"), A(w));
|
|
11416
11416
|
}
|
|
11417
11417
|
function A(w) {
|
|
11418
11418
|
return w === null || w === 124 || J(w) ? (e.exit("data"), M(w)) : (e.consume(w), w === 92 ? D : A);
|
|
@@ -11513,14 +11513,14 @@ function dm(e, t, n) {
|
|
|
11513
11513
|
}
|
|
11514
11514
|
}
|
|
11515
11515
|
function hm(e, t, n) {
|
|
11516
|
-
return
|
|
11516
|
+
return W(e, r, "whitespace");
|
|
11517
11517
|
function r(i) {
|
|
11518
11518
|
return i === null ? n(i) : t(i);
|
|
11519
11519
|
}
|
|
11520
11520
|
}
|
|
11521
11521
|
function mm(e) {
|
|
11522
11522
|
return pa([
|
|
11523
|
-
|
|
11523
|
+
Uh(),
|
|
11524
11524
|
Jh(),
|
|
11525
11525
|
im(e),
|
|
11526
11526
|
lm(),
|
|
@@ -11560,7 +11560,7 @@ const ym = ({ text: e }) => /* @__PURE__ */ x(
|
|
|
11560
11560
|
}
|
|
11561
11561
|
);
|
|
11562
11562
|
function wm() {
|
|
11563
|
-
return /* @__PURE__ */ x("div", { className: "bg-gray-100 rounded-2xl px-[12px] py-[10px]", children: /* @__PURE__ */
|
|
11563
|
+
return /* @__PURE__ */ x("div", { className: "bg-gray-100 rounded-2xl px-[12px] py-[10px]", children: /* @__PURE__ */ B("div", { className: "flex space-x-1", children: [
|
|
11564
11564
|
/* @__PURE__ */ x(
|
|
11565
11565
|
"div",
|
|
11566
11566
|
{
|
|
@@ -11595,13 +11595,13 @@ function Qi({
|
|
|
11595
11595
|
}) {
|
|
11596
11596
|
const s = !t, [l, c] = V(!1), [u, f] = V(
|
|
11597
11597
|
null
|
|
11598
|
-
), [d, p] = V(!1), [h, b] = V(!1),
|
|
11598
|
+
), [d, p] = V(!1), [h, b] = V(!1), S = kr(), { collectUserFeedback: y, onMessageClick: k } = mn(), E = !e.isWelcomeMessage && typeof k == "function", P = Ml(
|
|
11599
11599
|
e.content,
|
|
11600
11600
|
15,
|
|
11601
11601
|
n && s
|
|
11602
11602
|
), L = F({
|
|
11603
|
-
[
|
|
11604
|
-
[
|
|
11603
|
+
[S.botBubbleColor]: e.sender === "assistant",
|
|
11604
|
+
[S.userBubbleColor]: e.sender === "user"
|
|
11605
11605
|
}), v = F(
|
|
11606
11606
|
"text-gray-400 hover:text-primary transition-colors"
|
|
11607
11607
|
), M = e.content === "...", A = () => n && e.isThinking ? /* @__PURE__ */ x("div", { className: "flex flex-col justify-center flex-1", children: M ? /* @__PURE__ */ x("div", { className: "ml-3", children: /* @__PURE__ */ x(wm, {}) }) : /* @__PURE__ */ x(
|
|
@@ -11613,12 +11613,12 @@ function Qi({
|
|
|
11613
11613
|
}),
|
|
11614
11614
|
children: P
|
|
11615
11615
|
}
|
|
11616
|
-
) }) : /* @__PURE__ */
|
|
11616
|
+
) }) : /* @__PURE__ */ B(
|
|
11617
11617
|
"div",
|
|
11618
11618
|
{
|
|
11619
11619
|
className: "flex flex-col flex-1 self-stretch",
|
|
11620
|
-
onClick: () => !e.isWelcomeMessage &&
|
|
11621
|
-
role:
|
|
11620
|
+
onClick: () => !e.isWelcomeMessage && k?.(e),
|
|
11621
|
+
role: k && !e.isWelcomeMessage ? "button" : void 0,
|
|
11622
11622
|
tabIndex: 0,
|
|
11623
11623
|
children: [
|
|
11624
11624
|
!r && a && /* @__PURE__ */ x(
|
|
@@ -11659,8 +11659,8 @@ function Qi({
|
|
|
11659
11659
|
]
|
|
11660
11660
|
}
|
|
11661
11661
|
);
|
|
11662
|
-
return /* @__PURE__ */
|
|
11663
|
-
/* @__PURE__ */
|
|
11662
|
+
return /* @__PURE__ */ B(Qe, { children: [
|
|
11663
|
+
/* @__PURE__ */ B("div", { className: "flex flex-col flex-1 self-stretch", children: [
|
|
11664
11664
|
/* @__PURE__ */ x(
|
|
11665
11665
|
"div",
|
|
11666
11666
|
{
|
|
@@ -11680,7 +11680,7 @@ function Qi({
|
|
|
11680
11680
|
)
|
|
11681
11681
|
}
|
|
11682
11682
|
),
|
|
11683
|
-
n && !e.isThinking && /* @__PURE__ */ x("div", { className: "flex items-center mt-2 space-x-4", children: /* @__PURE__ */
|
|
11683
|
+
n && !e.isThinking && /* @__PURE__ */ x("div", { className: "flex items-center mt-2 space-x-4", children: /* @__PURE__ */ B(Qe, { children: [
|
|
11684
11684
|
o && /* @__PURE__ */ x(
|
|
11685
11685
|
"p",
|
|
11686
11686
|
{
|
|
@@ -11697,7 +11697,7 @@ function Qi({
|
|
|
11697
11697
|
)
|
|
11698
11698
|
}
|
|
11699
11699
|
),
|
|
11700
|
-
n && /* @__PURE__ */
|
|
11700
|
+
n && /* @__PURE__ */ B("div", { className: "inline-flex gap-2 justify-end", children: [
|
|
11701
11701
|
/* @__PURE__ */ x(
|
|
11702
11702
|
"button",
|
|
11703
11703
|
{
|
|
@@ -11712,7 +11712,7 @@ function Qi({
|
|
|
11712
11712
|
children: /* @__PURE__ */ x(nl, { size: 16 })
|
|
11713
11713
|
}
|
|
11714
11714
|
),
|
|
11715
|
-
!e.isWelcomeMessage && y && /* @__PURE__ */
|
|
11715
|
+
!e.isWelcomeMessage && y && /* @__PURE__ */ B(Qe, { children: [
|
|
11716
11716
|
/* @__PURE__ */ x(
|
|
11717
11717
|
"button",
|
|
11718
11718
|
{
|
|
@@ -11742,7 +11742,7 @@ function Qi({
|
|
|
11742
11742
|
"button",
|
|
11743
11743
|
{
|
|
11744
11744
|
onClick: () => {
|
|
11745
|
-
|
|
11745
|
+
k(e), b(!0), setTimeout(() => b(!1), 2e3);
|
|
11746
11746
|
},
|
|
11747
11747
|
className: F(v, {
|
|
11748
11748
|
"text-primary": h
|
|
@@ -11753,7 +11753,7 @@ function Qi({
|
|
|
11753
11753
|
] })
|
|
11754
11754
|
] }) })
|
|
11755
11755
|
] }),
|
|
11756
|
-
/* @__PURE__ */ x(_l, { open: l, onOpenChange: c, children: /* @__PURE__ */
|
|
11756
|
+
/* @__PURE__ */ x(_l, { open: l, onOpenChange: c, children: /* @__PURE__ */ B(Vo, { className: "max-w-[90vw] p-0 bg-transparent border-0", children: [
|
|
11757
11757
|
/* @__PURE__ */ x($o, { className: "hidden" }),
|
|
11758
11758
|
/* @__PURE__ */ x(Wo, { className: "hidden" }),
|
|
11759
11759
|
/* @__PURE__ */ x(
|
|
@@ -11815,7 +11815,7 @@ function xm({
|
|
|
11815
11815
|
},
|
|
11816
11816
|
t.id
|
|
11817
11817
|
);
|
|
11818
|
-
return /* @__PURE__ */ x("div", { children: /* @__PURE__ */
|
|
11818
|
+
return /* @__PURE__ */ x("div", { children: /* @__PURE__ */ B(
|
|
11819
11819
|
"div",
|
|
11820
11820
|
{
|
|
11821
11821
|
className: F(e, {
|
|
@@ -11831,11 +11831,11 @@ function xm({
|
|
|
11831
11831
|
}
|
|
11832
11832
|
function vm(e) {
|
|
11833
11833
|
const { className: t, src: n, ...r } = e, [i, o] = V(!1);
|
|
11834
|
-
|
|
11834
|
+
te(() => {
|
|
11835
11835
|
o(!1);
|
|
11836
11836
|
}, [n]);
|
|
11837
11837
|
const a = !n || i;
|
|
11838
|
-
return /* @__PURE__ */ x("div", { className: F("w-full h-full", t), ...r, children: a ? /* @__PURE__ */
|
|
11838
|
+
return /* @__PURE__ */ x("div", { className: F("w-full h-full", t), ...r, children: a ? /* @__PURE__ */ B("svg", { viewBox: "0 0 80 80", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: [
|
|
11839
11839
|
/* @__PURE__ */ x("rect", { width: "80", height: "80", fill: "#6F33B7" }),
|
|
11840
11840
|
/* @__PURE__ */ x(
|
|
11841
11841
|
"path",
|
|
@@ -11883,9 +11883,9 @@ function Sm() {
|
|
|
11883
11883
|
});
|
|
11884
11884
|
}
|
|
11885
11885
|
};
|
|
11886
|
-
|
|
11886
|
+
te(() => {
|
|
11887
11887
|
r.current ? (u("instant"), r.current = !1) : a || u();
|
|
11888
|
-
}, [e.messages, a]),
|
|
11888
|
+
}, [e.messages, a]), te(() => {
|
|
11889
11889
|
const d = n.current?.querySelector(
|
|
11890
11890
|
"div.chat-interface-body"
|
|
11891
11891
|
);
|
|
@@ -11908,18 +11908,18 @@ function Sm() {
|
|
|
11908
11908
|
}
|
|
11909
11909
|
] : []
|
|
11910
11910
|
];
|
|
11911
|
-
return /* @__PURE__ */
|
|
11912
|
-
/* @__PURE__ */
|
|
11913
|
-
|
|
11911
|
+
return /* @__PURE__ */ B(xr, { className: "relative flex-grow p-0 pl-4 overflow-hidden", children: [
|
|
11912
|
+
/* @__PURE__ */ B(
|
|
11913
|
+
Bo,
|
|
11914
11914
|
{
|
|
11915
11915
|
ref: n,
|
|
11916
11916
|
className: "h-full pr-4",
|
|
11917
11917
|
onViewportScroll: c,
|
|
11918
11918
|
children: [
|
|
11919
|
-
/* @__PURE__ */
|
|
11919
|
+
/* @__PURE__ */ B("div", { className: "chat-interface-head mt-10", children: [
|
|
11920
11920
|
/* @__PURE__ */ x("div", { className: "w-14 h-14 mx-auto rounded-md overflow-hidden", children: /* @__PURE__ */ x(vm, { src: e.assistantLogo }) }),
|
|
11921
|
-
/* @__PURE__ */
|
|
11922
|
-
/* @__PURE__ */
|
|
11921
|
+
/* @__PURE__ */ B("div", { className: "mt-2 space-y-1", children: [
|
|
11922
|
+
/* @__PURE__ */ B("h3", { className: "text-center font-semibold", children: [
|
|
11923
11923
|
e.assistantName,
|
|
11924
11924
|
" ",
|
|
11925
11925
|
e.title
|
|
@@ -11928,7 +11928,7 @@ function Sm() {
|
|
|
11928
11928
|
] })
|
|
11929
11929
|
] }),
|
|
11930
11930
|
/* @__PURE__ */ x("div", { className: "chat-interface-body flex flex-col space-y-4 mb-10", children: f.map((d, p, h) => {
|
|
11931
|
-
const b = Array.isArray(d) ? d.map((
|
|
11931
|
+
const b = Array.isArray(d) ? d.map((S) => S.id).join("-") : d.id;
|
|
11932
11932
|
return /* @__PURE__ */ x(
|
|
11933
11933
|
xm,
|
|
11934
11934
|
{
|
|
@@ -12042,7 +12042,7 @@ const Xi = {
|
|
|
12042
12042
|
}
|
|
12043
12043
|
}, _m = ({ message: e, type: t }) => {
|
|
12044
12044
|
const n = Zi[t] || Zi.warning, r = n.icon;
|
|
12045
|
-
return /* @__PURE__ */
|
|
12045
|
+
return /* @__PURE__ */ B(
|
|
12046
12046
|
"div",
|
|
12047
12047
|
{
|
|
12048
12048
|
className: `flex items-center gap-3 ${n.bgColor} text-sm sm:text-md border-l-4 ${n.borderColor} p-3 rounded-md my-4`,
|
|
@@ -12094,11 +12094,11 @@ function Am() {
|
|
|
12094
12094
|
o(d);
|
|
12095
12095
|
}
|
|
12096
12096
|
};
|
|
12097
|
-
return /* @__PURE__ */
|
|
12097
|
+
return /* @__PURE__ */ B(vr, { className: "flex flex-col bg-background p-0", children: [
|
|
12098
12098
|
c(),
|
|
12099
|
-
/* @__PURE__ */
|
|
12099
|
+
/* @__PURE__ */ B("div", { className: "flex flex-col w-full items-center px-4 pb-4 -mt-6 z-20", children: [
|
|
12100
12100
|
t && /* @__PURE__ */ x(_m, { message: e.message, type: "error" }),
|
|
12101
|
-
/* @__PURE__ */
|
|
12101
|
+
/* @__PURE__ */ B(
|
|
12102
12102
|
"form",
|
|
12103
12103
|
{
|
|
12104
12104
|
className: "relative flex items-center w-full m-0",
|
|
@@ -12147,8 +12147,8 @@ function Am() {
|
|
|
12147
12147
|
}
|
|
12148
12148
|
)
|
|
12149
12149
|
] }),
|
|
12150
|
-
/* @__PURE__ */
|
|
12151
|
-
/* @__PURE__ */
|
|
12150
|
+
/* @__PURE__ */ B("div", { className: "w-full flex flex-col items-center justify-center space-x-2 p-1 pt-0 px-0 bg-[#FAF9F7] dark:bg-background", children: [
|
|
12151
|
+
/* @__PURE__ */ B("div", { className: "w-full flex items-center justify-center space-x-2 py-1 bg-[#FAF9F7] dark:bg-card", children: [
|
|
12152
12152
|
/* @__PURE__ */ x(hn, { className: F("w-5 h-5"), bgColor: "#E5E3E1", fgColor: "#B2B0AE" }),
|
|
12153
12153
|
/* @__PURE__ */ x("div", { className: "text-xs text-center text-muted-foreground p-1", children: "Powered by EloquentAI" })
|
|
12154
12154
|
] }),
|
|
@@ -12200,8 +12200,8 @@ function Nm({
|
|
|
12200
12200
|
onClose: t
|
|
12201
12201
|
}) {
|
|
12202
12202
|
const n = mn();
|
|
12203
|
-
return /* @__PURE__ */
|
|
12204
|
-
/* @__PURE__ */
|
|
12203
|
+
return /* @__PURE__ */ B(wr, { className: "p-4 flex flex-row items-center justify-between shadow-sm space-y-0", children: [
|
|
12204
|
+
/* @__PURE__ */ B("div", { className: "flex flex-row items-center space-x-3", children: [
|
|
12205
12205
|
/* @__PURE__ */ x(us, { className: "h-8 w-8", children: /* @__PURE__ */ x(
|
|
12206
12206
|
hn,
|
|
12207
12207
|
{
|
|
@@ -12212,7 +12212,7 @@ function Nm({
|
|
|
12212
12212
|
) }),
|
|
12213
12213
|
/* @__PURE__ */ x("div", { className: "flex flex-col", children: /* @__PURE__ */ x("h2", { className: "text-foreground font-semibold", children: n.assistantName }) })
|
|
12214
12214
|
] }),
|
|
12215
|
-
/* @__PURE__ */
|
|
12215
|
+
/* @__PURE__ */ B("div", { children: [
|
|
12216
12216
|
n.cleanChatButton && /* @__PURE__ */ x(
|
|
12217
12217
|
"button",
|
|
12218
12218
|
{
|
|
@@ -12264,18 +12264,18 @@ function ps({
|
|
|
12264
12264
|
isOpen: n,
|
|
12265
12265
|
isMobile: t
|
|
12266
12266
|
});
|
|
12267
|
-
return /* @__PURE__ */
|
|
12268
|
-
/* @__PURE__ */ x(wr, { className: "p-4 flex flex-row items-center justify-between shadow-sm space-y-0", children: /* @__PURE__ */
|
|
12267
|
+
return /* @__PURE__ */ B(yr, { className: r, children: [
|
|
12268
|
+
/* @__PURE__ */ x(wr, { className: "p-4 flex flex-row items-center justify-between shadow-sm space-y-0", children: /* @__PURE__ */ B("div", { className: "flex flex-row items-center space-x-3", children: [
|
|
12269
12269
|
/* @__PURE__ */ x(Me, { className: "h-8 w-8" }),
|
|
12270
12270
|
/* @__PURE__ */ x(Me, { className: "h-6 w-32" })
|
|
12271
12271
|
] }) }),
|
|
12272
|
-
/* @__PURE__ */ x(xr, { className: "flex-1 px-4 overflow-hidden", children: /* @__PURE__ */
|
|
12273
|
-
/* @__PURE__ */
|
|
12272
|
+
/* @__PURE__ */ x(xr, { className: "flex-1 px-4 overflow-hidden", children: /* @__PURE__ */ B(hl, { children: [
|
|
12273
|
+
/* @__PURE__ */ B("div", { className: "flex flex-col items-center justify-center space-y-2 pt-10", children: [
|
|
12274
12274
|
/* @__PURE__ */ x(Me, { className: "w-14 h-14 mx-auto rounded-md" }),
|
|
12275
12275
|
/* @__PURE__ */ x("div", { children: /* @__PURE__ */ x(Me, { className: "h-6 w-32 mx-auto mt-2" }) }),
|
|
12276
12276
|
/* @__PURE__ */ x(Me, { className: "h-4 w-24 mx-auto" })
|
|
12277
12277
|
] }),
|
|
12278
|
-
/* @__PURE__ */
|
|
12278
|
+
/* @__PURE__ */ B("div", { className: "flex flex-col space-y-4 mt-10", children: [
|
|
12279
12279
|
/* @__PURE__ */ x(Me, { className: "h-12 w-2/3" }),
|
|
12280
12280
|
/* @__PURE__ */ x(Me, { className: "h-12 w-2/3 self-end" }),
|
|
12281
12281
|
/* @__PURE__ */ x(Me, { className: "h-12 w-2/3" }),
|
|
@@ -12289,7 +12289,7 @@ function Rm(e) {
|
|
|
12289
12289
|
const { isOpen: t = !1, isMobile: n, onCleanChat: r, onClose: i, theme: o } = e, a = br(t, 10), [s, l] = V(!1), c = fs({
|
|
12290
12290
|
isOpen: a,
|
|
12291
12291
|
isMobile: n
|
|
12292
|
-
}), u = () => s ? /* @__PURE__ */
|
|
12292
|
+
}), u = () => s ? /* @__PURE__ */ B(yr, { className: c, children: [
|
|
12293
12293
|
/* @__PURE__ */ x(
|
|
12294
12294
|
Nm,
|
|
12295
12295
|
{
|
|
@@ -12299,7 +12299,7 @@ function Rm(e) {
|
|
|
12299
12299
|
),
|
|
12300
12300
|
/* @__PURE__ */ x(Sm, {}),
|
|
12301
12301
|
/* @__PURE__ */ x(Am, {})
|
|
12302
|
-
] }) : /* @__PURE__ */
|
|
12302
|
+
] }) : /* @__PURE__ */ B(Qe, { children: [
|
|
12303
12303
|
/* @__PURE__ */ x(ps, { isOpen: t, isMobile: n }),
|
|
12304
12304
|
!s && /* @__PURE__ */ x(
|
|
12305
12305
|
Yo,
|
|
@@ -12309,7 +12309,7 @@ function Rm(e) {
|
|
|
12309
12309
|
}
|
|
12310
12310
|
)
|
|
12311
12311
|
] });
|
|
12312
|
-
return /* @__PURE__ */ x(
|
|
12312
|
+
return /* @__PURE__ */ x(Uo, { ...o, children: /* @__PURE__ */ x(Il, { ...e, children: /* @__PURE__ */ x(
|
|
12313
12313
|
"main",
|
|
12314
12314
|
{
|
|
12315
12315
|
className: F(
|
|
@@ -12324,7 +12324,7 @@ function Rm(e) {
|
|
|
12324
12324
|
}
|
|
12325
12325
|
function jn({ children: e, head: t, ...n }) {
|
|
12326
12326
|
const [r, i] = V(null), o = r?.contentWindow?.document?.head, a = r?.contentWindow?.document?.body;
|
|
12327
|
-
return /* @__PURE__ */
|
|
12327
|
+
return /* @__PURE__ */ B("iframe", { ...n, ref: i, children: [
|
|
12328
12328
|
o && Kn(t, o),
|
|
12329
12329
|
a && Kn(e, a)
|
|
12330
12330
|
] });
|
|
@@ -12340,7 +12340,7 @@ function Om({
|
|
|
12340
12340
|
autoHideDelay: i
|
|
12341
12341
|
}) {
|
|
12342
12342
|
const [o, a] = V(!1), [s, l] = V("entering"), c = kr();
|
|
12343
|
-
return
|
|
12343
|
+
return te(() => {
|
|
12344
12344
|
if (t) {
|
|
12345
12345
|
a(!0), l("entering");
|
|
12346
12346
|
const u = setTimeout(() => {
|
|
@@ -12369,7 +12369,7 @@ function Om({
|
|
|
12369
12369
|
s === "visible" && "translate-x-0 opacity-100 scale-100",
|
|
12370
12370
|
s === "exiting" && "translate-x-8 opacity-0 scale-95"
|
|
12371
12371
|
),
|
|
12372
|
-
children: /* @__PURE__ */ x("div", { className: "relative", children: /* @__PURE__ */
|
|
12372
|
+
children: /* @__PURE__ */ x("div", { className: "relative", children: /* @__PURE__ */ B(
|
|
12373
12373
|
"div",
|
|
12374
12374
|
{
|
|
12375
12375
|
className: F(
|
|
@@ -12392,7 +12392,7 @@ function Om({
|
|
|
12392
12392
|
children: /* @__PURE__ */ x("path", { d: "M5.75,0s0,.36,0,.51c-.09,4.52-5.74,10.64-5.74,10.64,8.19.02,10.54-2.26,10.54-2.26h0c-1.6-2.96-3.19-5.92-4.79-8.88Z" })
|
|
12393
12393
|
}
|
|
12394
12394
|
),
|
|
12395
|
-
/* @__PURE__ */
|
|
12395
|
+
/* @__PURE__ */ B("div", { className: "flex items-start justify-between gap-2", children: [
|
|
12396
12396
|
/* @__PURE__ */ x("p", { className: "text-sm text-gray-800 leading-relaxed flex-1", children: e }),
|
|
12397
12397
|
/* @__PURE__ */ x(
|
|
12398
12398
|
"button",
|
|
@@ -12501,33 +12501,33 @@ function Mm({
|
|
|
12501
12501
|
}), d = (A) => ({
|
|
12502
12502
|
message_id: A.message_id,
|
|
12503
12503
|
response: A.response
|
|
12504
|
-
}), p =
|
|
12504
|
+
}), p = ee(
|
|
12505
12505
|
(A, D) => {
|
|
12506
|
-
const w = D.map(f),
|
|
12507
|
-
for (let I = 0; I <
|
|
12506
|
+
const w = D.map(f), R = Math.min(A.length, w.length);
|
|
12507
|
+
for (let I = 0; I < R; I++)
|
|
12508
12508
|
if (A[I].id !== w[I].id)
|
|
12509
12509
|
return !1;
|
|
12510
12510
|
return !0;
|
|
12511
12511
|
},
|
|
12512
12512
|
[]
|
|
12513
|
-
), h =
|
|
12513
|
+
), h = ee(
|
|
12514
12514
|
(A) => {
|
|
12515
12515
|
setTimeout(() => {
|
|
12516
12516
|
o(d(A), t);
|
|
12517
12517
|
}, 100);
|
|
12518
12518
|
},
|
|
12519
12519
|
[o, t]
|
|
12520
|
-
), b =
|
|
12520
|
+
), b = ee(
|
|
12521
12521
|
(A, D = !1) => {
|
|
12522
|
-
const w = n.filter((I) => I.isWelcomeMessage),
|
|
12523
|
-
if (D &&
|
|
12522
|
+
const w = n.filter((I) => I.isWelcomeMessage), R = A.map(f);
|
|
12523
|
+
if (D && R.length > 0) {
|
|
12524
12524
|
const I = A[A.length - 1];
|
|
12525
|
-
r([...w, ...
|
|
12525
|
+
r([...w, ...R.slice(0, -1)]), h(I);
|
|
12526
12526
|
} else
|
|
12527
|
-
r([...w, ...
|
|
12527
|
+
r([...w, ...R]);
|
|
12528
12528
|
},
|
|
12529
12529
|
[n, r, h]
|
|
12530
|
-
),
|
|
12530
|
+
), S = ee(
|
|
12531
12531
|
(A) => {
|
|
12532
12532
|
if (A.role === "assistant")
|
|
12533
12533
|
o(
|
|
@@ -12537,8 +12537,8 @@ function Mm({
|
|
|
12537
12537
|
else {
|
|
12538
12538
|
const D = n.filter((I) => I.isWelcomeMessage), w = n.filter(
|
|
12539
12539
|
(I) => !I.isThinking && !I.isWelcomeMessage
|
|
12540
|
-
),
|
|
12541
|
-
r([...D, ...w,
|
|
12540
|
+
), R = f(A);
|
|
12541
|
+
r([...D, ...w, R]);
|
|
12542
12542
|
}
|
|
12543
12543
|
l.current = Math.max(
|
|
12544
12544
|
0,
|
|
@@ -12546,16 +12546,16 @@ function Mm({
|
|
|
12546
12546
|
);
|
|
12547
12547
|
},
|
|
12548
12548
|
[o, t, n, r]
|
|
12549
|
-
), y =
|
|
12549
|
+
), y = ee(
|
|
12550
12550
|
(A, D) => {
|
|
12551
|
-
const
|
|
12552
|
-
b(A,
|
|
12551
|
+
const R = D[D.length - 1].role === "assistant";
|
|
12552
|
+
b(A, R), l.current = Math.max(
|
|
12553
12553
|
0,
|
|
12554
12554
|
l.current - D.length
|
|
12555
12555
|
);
|
|
12556
12556
|
},
|
|
12557
12557
|
[b]
|
|
12558
|
-
),
|
|
12558
|
+
), k = ee(
|
|
12559
12559
|
(A, D, w) => {
|
|
12560
12560
|
if (D.length > 0) {
|
|
12561
12561
|
const I = D[D.length - 1].role === "assistant";
|
|
@@ -12564,36 +12564,36 @@ function Mm({
|
|
|
12564
12564
|
l.current - D.length
|
|
12565
12565
|
);
|
|
12566
12566
|
} else {
|
|
12567
|
-
const
|
|
12567
|
+
const R = n.filter((_) => _.isWelcomeMessage), I = A.map(f);
|
|
12568
12568
|
r([
|
|
12569
|
-
...
|
|
12569
|
+
...R,
|
|
12570
12570
|
...I,
|
|
12571
12571
|
...w
|
|
12572
12572
|
]);
|
|
12573
12573
|
}
|
|
12574
12574
|
},
|
|
12575
12575
|
[b, n, r]
|
|
12576
|
-
), E =
|
|
12576
|
+
), E = ee(async () => {
|
|
12577
12577
|
if (!(!e || !t || !c.current))
|
|
12578
12578
|
try {
|
|
12579
12579
|
const A = await e.getChatHistory(t), D = n.filter(
|
|
12580
|
-
(
|
|
12581
|
-
), w = new Set(D.map((
|
|
12582
|
-
(
|
|
12580
|
+
(T) => !T.isThinking && !T.isWelcomeMessage
|
|
12581
|
+
), w = new Set(D.map((T) => T.id)), R = new Set(A.map((T) => T.message_id)), I = A.filter(
|
|
12582
|
+
(T) => !w.has(T.message_id)
|
|
12583
12583
|
), _ = D.filter(
|
|
12584
|
-
(
|
|
12584
|
+
(T) => !R.has(T.id)
|
|
12585
12585
|
);
|
|
12586
12586
|
if (!(I.length === 0 && _.length === 0)) {
|
|
12587
|
-
const
|
|
12588
|
-
|
|
12587
|
+
const T = p(D, A), z = I.length === 1 && _.length === 0, K = I.length > 1 && _.length === 0;
|
|
12588
|
+
T && z ? S(I[0]) : T && K ? y(A, I) : k(
|
|
12589
12589
|
A,
|
|
12590
12590
|
I,
|
|
12591
12591
|
_
|
|
12592
12592
|
);
|
|
12593
12593
|
}
|
|
12594
12594
|
if (c.current) {
|
|
12595
|
-
const
|
|
12596
|
-
a.current = setTimeout(E,
|
|
12595
|
+
const T = Kt[s.current];
|
|
12596
|
+
a.current = setTimeout(E, T);
|
|
12597
12597
|
}
|
|
12598
12598
|
} catch (A) {
|
|
12599
12599
|
if (console.warn("Background polling failed:", A), c.current) {
|
|
@@ -12606,18 +12606,18 @@ function Mm({
|
|
|
12606
12606
|
t,
|
|
12607
12607
|
n,
|
|
12608
12608
|
p,
|
|
12609
|
-
|
|
12609
|
+
S,
|
|
12610
12610
|
y,
|
|
12611
|
-
|
|
12612
|
-
]), P =
|
|
12611
|
+
k
|
|
12612
|
+
]), P = ee(() => {
|
|
12613
12613
|
if (!t || c.current)
|
|
12614
12614
|
return;
|
|
12615
12615
|
c.current = !0;
|
|
12616
12616
|
const A = Kt[s.current];
|
|
12617
12617
|
a.current = setTimeout(E, A);
|
|
12618
|
-
}, [t, E]), L =
|
|
12618
|
+
}, [t, E]), L = ee(() => {
|
|
12619
12619
|
c.current = !1, u(), l.current = 0;
|
|
12620
|
-
}, []), v =
|
|
12620
|
+
}, []), v = ee(
|
|
12621
12621
|
(A) => {
|
|
12622
12622
|
const D = s.current;
|
|
12623
12623
|
if (s.current = A, D !== A && c.current) {
|
|
@@ -12630,10 +12630,10 @@ function Mm({
|
|
|
12630
12630
|
), M = () => {
|
|
12631
12631
|
l.current += 1, v("high");
|
|
12632
12632
|
};
|
|
12633
|
-
return
|
|
12633
|
+
return te(() => {
|
|
12634
12634
|
const A = l.current > 0 ? "high" : i ? "medium" : "low";
|
|
12635
12635
|
v(A);
|
|
12636
|
-
}, [i, v]),
|
|
12636
|
+
}, [i, v]), te(() => (t && e ? P() : L(), L), [t, e, P, L]), te(() => L, [L]), {
|
|
12637
12637
|
setPollingMode: v,
|
|
12638
12638
|
expectMessage: M,
|
|
12639
12639
|
startPolling: P,
|
|
@@ -12641,7 +12641,7 @@ function Mm({
|
|
|
12641
12641
|
};
|
|
12642
12642
|
}
|
|
12643
12643
|
const zm = "eloquent-ai::conversation-data", qm = 30 * 60 * 1e3;
|
|
12644
|
-
function
|
|
12644
|
+
function Br({ appId: e }) {
|
|
12645
12645
|
const t = st(() => `${zm}-${e}`, [e]), n = st(
|
|
12646
12646
|
() => ({
|
|
12647
12647
|
conversationId: null,
|
|
@@ -12650,7 +12650,7 @@ function Ur({ appId: e }) {
|
|
|
12650
12650
|
messages: []
|
|
12651
12651
|
}),
|
|
12652
12652
|
[]
|
|
12653
|
-
), r =
|
|
12653
|
+
), r = ee(() => {
|
|
12654
12654
|
try {
|
|
12655
12655
|
const l = localStorage.getItem(t);
|
|
12656
12656
|
return l ? JSON.parse(l) : n;
|
|
@@ -12660,14 +12660,14 @@ function Ur({ appId: e }) {
|
|
|
12660
12660
|
l
|
|
12661
12661
|
), n;
|
|
12662
12662
|
}
|
|
12663
|
-
}, [t, n]), i =
|
|
12663
|
+
}, [t, n]), i = ee(() => {
|
|
12664
12664
|
try {
|
|
12665
12665
|
const l = r();
|
|
12666
12666
|
return l.lastActivity ? Date.now() - l.lastActivity > qm : !0;
|
|
12667
12667
|
} catch (l) {
|
|
12668
12668
|
return console.error("Error checking conversation expiration:", l), !0;
|
|
12669
12669
|
}
|
|
12670
|
-
}, [r]), o =
|
|
12670
|
+
}, [r]), o = ee(
|
|
12671
12671
|
(l, c, u, f) => {
|
|
12672
12672
|
try {
|
|
12673
12673
|
const d = {
|
|
@@ -12683,7 +12683,7 @@ function Ur({ appId: e }) {
|
|
|
12683
12683
|
}
|
|
12684
12684
|
},
|
|
12685
12685
|
[t]
|
|
12686
|
-
), a =
|
|
12686
|
+
), a = ee(() => {
|
|
12687
12687
|
try {
|
|
12688
12688
|
const l = localStorage.getItem(t);
|
|
12689
12689
|
if (l) {
|
|
@@ -12703,7 +12703,7 @@ function Ur({ appId: e }) {
|
|
|
12703
12703
|
l
|
|
12704
12704
|
);
|
|
12705
12705
|
}
|
|
12706
|
-
}, [t, n]), s =
|
|
12706
|
+
}, [t, n]), s = ee(() => {
|
|
12707
12707
|
try {
|
|
12708
12708
|
const l = r();
|
|
12709
12709
|
l.conversationId && (l.lastActivity = Date.now(), localStorage.setItem(t, JSON.stringify(l)));
|
|
@@ -12719,7 +12719,7 @@ function Ur({ appId: e }) {
|
|
|
12719
12719
|
updateLastActivity: s
|
|
12720
12720
|
};
|
|
12721
12721
|
}
|
|
12722
|
-
const Fm = "Logging",
|
|
12722
|
+
const Fm = "Logging", Um = "x-amz-user-agent", Bm = "NoHubcallbackProvidedException";
|
|
12723
12723
|
var xe;
|
|
12724
12724
|
(function(e) {
|
|
12725
12725
|
e.DEBUG = "DEBUG", e.ERROR = "ERROR", e.INFO = "INFO", e.WARN = "WARN", e.VERBOSE = "VERBOSE", e.NONE = "NONE";
|
|
@@ -12910,7 +12910,7 @@ class jm {
|
|
|
12910
12910
|
let i;
|
|
12911
12911
|
if (typeof n != "function")
|
|
12912
12912
|
throw new pt({
|
|
12913
|
-
name:
|
|
12913
|
+
name: Bm,
|
|
12914
12914
|
message: "No callback supplied to Hub"
|
|
12915
12915
|
});
|
|
12916
12916
|
i = n;
|
|
@@ -13000,33 +13000,33 @@ const hs = (e) => {
|
|
|
13000
13000
|
message: "Invalid config parameter.",
|
|
13001
13001
|
recoverySuggestion: "Ensure passing the config object imported from `amplifyconfiguration.json`."
|
|
13002
13002
|
});
|
|
13003
|
-
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes: d, aws_cognito_social_providers: p, aws_cognito_username_attributes: h, aws_mandatory_sign_in: b, aws_mobile_analytics_app_id:
|
|
13004
|
-
|
|
13003
|
+
const { aws_appsync_apiKey: t, aws_appsync_authenticationType: n, aws_appsync_graphqlEndpoint: r, aws_appsync_region: i, aws_bots_config: o, aws_cognito_identity_pool_id: a, aws_cognito_sign_up_verification_method: s, aws_cognito_mfa_configuration: l, aws_cognito_mfa_types: c, aws_cognito_password_protection_settings: u, aws_cognito_verification_mechanisms: f, aws_cognito_signup_attributes: d, aws_cognito_social_providers: p, aws_cognito_username_attributes: h, aws_mandatory_sign_in: b, aws_mobile_analytics_app_id: S, aws_mobile_analytics_app_region: y, aws_user_files_s3_bucket: k, aws_user_files_s3_bucket_region: E, aws_user_files_s3_dangerously_connect_to_http_endpoint_for_testing: P, aws_user_pools_id: L, aws_user_pools_web_client_id: v, geo: M, oauth: A, predictions: D, aws_cloud_logic_custom: w, Notifications: R, modelIntrospection: I } = e, _ = {};
|
|
13004
|
+
S && (_.Analytics = {
|
|
13005
13005
|
Pinpoint: {
|
|
13006
|
-
appId:
|
|
13006
|
+
appId: S,
|
|
13007
13007
|
region: y
|
|
13008
13008
|
}
|
|
13009
13009
|
});
|
|
13010
|
-
const { InAppMessaging:
|
|
13011
|
-
if (
|
|
13012
|
-
if (
|
|
13013
|
-
const { appId:
|
|
13010
|
+
const { InAppMessaging: T, Push: z } = R ?? {};
|
|
13011
|
+
if (T?.AWSPinpoint || z?.AWSPinpoint) {
|
|
13012
|
+
if (T?.AWSPinpoint) {
|
|
13013
|
+
const { appId: G, region: pe } = T.AWSPinpoint;
|
|
13014
13014
|
_.Notifications = {
|
|
13015
13015
|
InAppMessaging: {
|
|
13016
13016
|
Pinpoint: {
|
|
13017
|
-
appId:
|
|
13017
|
+
appId: G,
|
|
13018
13018
|
region: pe
|
|
13019
13019
|
}
|
|
13020
13020
|
}
|
|
13021
13021
|
};
|
|
13022
13022
|
}
|
|
13023
13023
|
if (z?.AWSPinpoint) {
|
|
13024
|
-
const { appId:
|
|
13024
|
+
const { appId: G, region: pe } = z.AWSPinpoint;
|
|
13025
13025
|
_.Notifications = {
|
|
13026
13026
|
..._.Notifications,
|
|
13027
13027
|
PushNotification: {
|
|
13028
13028
|
Pinpoint: {
|
|
13029
|
-
appId:
|
|
13029
|
+
appId: G,
|
|
13030
13030
|
region: pe
|
|
13031
13031
|
}
|
|
13032
13032
|
}
|
|
@@ -13034,23 +13034,23 @@ const hs = (e) => {
|
|
|
13034
13034
|
}
|
|
13035
13035
|
}
|
|
13036
13036
|
if (Array.isArray(o) && (_.Interactions = {
|
|
13037
|
-
LexV1: Object.fromEntries(o.map((
|
|
13037
|
+
LexV1: Object.fromEntries(o.map((G) => [G.name, G]))
|
|
13038
13038
|
}), r) {
|
|
13039
|
-
const
|
|
13040
|
-
|
|
13039
|
+
const G = Wm[n];
|
|
13040
|
+
G || $m.debug(`Invalid authentication type ${n}. Falling back to IAM.`), _.API = {
|
|
13041
13041
|
GraphQL: {
|
|
13042
13042
|
endpoint: r,
|
|
13043
13043
|
apiKey: t,
|
|
13044
13044
|
region: i,
|
|
13045
|
-
defaultAuthMode:
|
|
13045
|
+
defaultAuthMode: G ?? "iam"
|
|
13046
13046
|
}
|
|
13047
13047
|
}, I && (_.API.GraphQL.modelIntrospection = I);
|
|
13048
13048
|
}
|
|
13049
|
-
const
|
|
13049
|
+
const K = l ? {
|
|
13050
13050
|
status: l && l.toLowerCase(),
|
|
13051
13051
|
totpEnabled: c?.includes("TOTP") ?? !1,
|
|
13052
13052
|
smsEnabled: c?.includes("SMS") ?? !1
|
|
13053
|
-
} : void 0,
|
|
13053
|
+
} : void 0, X = u ? {
|
|
13054
13054
|
minLength: u.passwordPolicyMinLength,
|
|
13055
13055
|
requireLowercase: u.passwordPolicyCharacters?.includes("REQUIRES_LOWERCASE") ?? !1,
|
|
13056
13056
|
requireUppercase: u.passwordPolicyCharacters?.includes("REQUIRES_UPPERCASE") ?? !1,
|
|
@@ -13059,8 +13059,8 @@ const hs = (e) => {
|
|
|
13059
13059
|
} : void 0, Te = Array.from(/* @__PURE__ */ new Set([
|
|
13060
13060
|
...f ?? [],
|
|
13061
13061
|
...d ?? []
|
|
13062
|
-
])).reduce((
|
|
13063
|
-
...
|
|
13062
|
+
])).reduce((G, pe) => ({
|
|
13063
|
+
...G,
|
|
13064
13064
|
// All user attributes generated by the CLI are required
|
|
13065
13065
|
[pe.toLowerCase()]: { required: !0 }
|
|
13066
13066
|
}), {}), m = h?.includes("EMAIL") ?? !1, me = h?.includes("PHONE_NUMBER") ?? !1;
|
|
@@ -13072,8 +13072,8 @@ const hs = (e) => {
|
|
|
13072
13072
|
userAttributes: Te,
|
|
13073
13073
|
userPoolClientId: v,
|
|
13074
13074
|
userPoolId: L,
|
|
13075
|
-
mfa:
|
|
13076
|
-
passwordFormat:
|
|
13075
|
+
mfa: K,
|
|
13076
|
+
passwordFormat: X,
|
|
13077
13077
|
loginWith: {
|
|
13078
13078
|
username: !(m || me),
|
|
13079
13079
|
email: m,
|
|
@@ -13090,29 +13090,29 @@ const hs = (e) => {
|
|
|
13090
13090
|
providers: Ym(p)
|
|
13091
13091
|
}
|
|
13092
13092
|
}
|
|
13093
|
-
}),
|
|
13093
|
+
}), k && (_.Storage = {
|
|
13094
13094
|
S3: {
|
|
13095
|
-
bucket:
|
|
13095
|
+
bucket: k,
|
|
13096
13096
|
region: E,
|
|
13097
13097
|
dangerouslyConnectToHttpEndpointForTesting: P
|
|
13098
13098
|
}
|
|
13099
13099
|
}), M) {
|
|
13100
|
-
const { amazon_location_service:
|
|
13100
|
+
const { amazon_location_service: G } = M;
|
|
13101
13101
|
_.Geo = {
|
|
13102
13102
|
LocationService: {
|
|
13103
|
-
maps:
|
|
13104
|
-
geofenceCollections:
|
|
13105
|
-
searchIndices:
|
|
13106
|
-
region:
|
|
13103
|
+
maps: G.maps,
|
|
13104
|
+
geofenceCollections: G.geofenceCollections,
|
|
13105
|
+
searchIndices: G.search_indices,
|
|
13106
|
+
region: G.region
|
|
13107
13107
|
}
|
|
13108
13108
|
};
|
|
13109
13109
|
}
|
|
13110
13110
|
if (w && (_.API = {
|
|
13111
13111
|
..._.API,
|
|
13112
|
-
REST: w.reduce((
|
|
13112
|
+
REST: w.reduce((G, pe) => {
|
|
13113
13113
|
const { name: ie, endpoint: Ge, region: Re, service: Fe } = pe;
|
|
13114
13114
|
return {
|
|
13115
|
-
...
|
|
13115
|
+
...G,
|
|
13116
13116
|
[ie]: {
|
|
13117
13117
|
endpoint: Ge,
|
|
13118
13118
|
...Fe ? { service: Fe } : void 0,
|
|
@@ -13121,14 +13121,14 @@ const hs = (e) => {
|
|
|
13121
13121
|
};
|
|
13122
13122
|
}, {})
|
|
13123
13123
|
}), D) {
|
|
13124
|
-
const { VoiceId:
|
|
13125
|
-
_.Predictions =
|
|
13124
|
+
const { VoiceId: G } = D?.convert?.speechGenerator?.defaults ?? {};
|
|
13125
|
+
_.Predictions = G ? {
|
|
13126
13126
|
...D,
|
|
13127
13127
|
convert: {
|
|
13128
13128
|
...D.convert,
|
|
13129
13129
|
speechGenerator: {
|
|
13130
13130
|
...D.convert.speechGenerator,
|
|
13131
|
-
defaults: { voiceId:
|
|
13131
|
+
defaults: { voiceId: G }
|
|
13132
13132
|
}
|
|
13133
13133
|
}
|
|
13134
13134
|
} : D;
|
|
@@ -13494,8 +13494,8 @@ function gg(e, t, n) {
|
|
|
13494
13494
|
}
|
|
13495
13495
|
function s(p, h) {
|
|
13496
13496
|
r[p] && (i[p] = function(b) {
|
|
13497
|
-
return new Promise(function(
|
|
13498
|
-
o.push([p, b,
|
|
13497
|
+
return new Promise(function(S, y) {
|
|
13498
|
+
o.push([p, b, S, y]) > 1 || l(p, b);
|
|
13499
13499
|
});
|
|
13500
13500
|
}, h && (i[p] = h(i[p])));
|
|
13501
13501
|
}
|
|
@@ -13651,8 +13651,8 @@ var Ce = 64, yg = 32, wg = new Uint32Array([
|
|
|
13651
13651
|
var b = (p >>> 7 | p << 25) ^ (p >>> 18 | p << 14) ^ p >>> 3;
|
|
13652
13652
|
this.temp[d] = (h + this.temp[d - 7] | 0) + (b + this.temp[d - 16] | 0);
|
|
13653
13653
|
}
|
|
13654
|
-
var
|
|
13655
|
-
f = u, u = c, c = l, l = s +
|
|
13654
|
+
var S = (((l >>> 6 | l << 26) ^ (l >>> 11 | l << 21) ^ (l >>> 25 | l << 7)) + (l & c ^ ~l & u) | 0) + (f + (wg[d] + this.temp[d] | 0) | 0) | 0, y = ((i >>> 2 | i << 30) ^ (i >>> 13 | i << 19) ^ (i >>> 22 | i << 10)) + (i & o ^ i & a ^ o & a) | 0;
|
|
13655
|
+
f = u, u = c, c = l, l = s + S | 0, s = a, a = o, o = i, i = S + y | 0;
|
|
13656
13656
|
}
|
|
13657
13657
|
r[0] += i, r[1] += o, r[2] += a, r[3] += s, r[4] += l, r[5] += c, r[6] += u, r[7] += f;
|
|
13658
13658
|
}, e;
|
|
@@ -13725,10 +13725,10 @@ function Ag(e) {
|
|
|
13725
13725
|
t += ys[e[n]];
|
|
13726
13726
|
return t;
|
|
13727
13727
|
}
|
|
13728
|
-
var
|
|
13728
|
+
var ne;
|
|
13729
13729
|
(function(e) {
|
|
13730
13730
|
e.WebUnknown = "0", e.React = "1", e.NextJs = "2", e.Angular = "3", e.VueJs = "4", e.Nuxt = "5", e.Svelte = "6", e.ServerSideUnknown = "100", e.ReactSSR = "101", e.NextJsSSR = "102", e.AngularSSR = "103", e.VueJsSSR = "104", e.NuxtSSR = "105", e.SvelteSSR = "106", e.ReactNative = "201", e.Expo = "202";
|
|
13731
|
-
})(
|
|
13731
|
+
})(ne || (ne = {}));
|
|
13732
13732
|
var io;
|
|
13733
13733
|
(function(e) {
|
|
13734
13734
|
e.AI = "ai", e.API = "api", e.Auth = "auth", e.Analytics = "analytics", e.DataStore = "datastore", e.Geo = "geo", e.InAppMessaging = "inappmessaging", e.Interactions = "interactions", e.Predictions = "predictions", e.PubSub = "pubsub", e.PushNotification = "pushnotification", e.Storage = "storage";
|
|
@@ -13817,10 +13817,10 @@ function Fg() {
|
|
|
13817
13817
|
const e = !!(ws() && document.querySelector("[ng-version]")), t = !!(bt() && typeof window.ng < "u");
|
|
13818
13818
|
return e || t;
|
|
13819
13819
|
}
|
|
13820
|
-
function
|
|
13820
|
+
function Ug() {
|
|
13821
13821
|
return Wr() && typeof process.env == "object" && "VITE_ENVIRONMENT=dev tsc -b && vite build --mode dev".startsWith("ng ") || !1;
|
|
13822
13822
|
}
|
|
13823
|
-
function
|
|
13823
|
+
function Bg() {
|
|
13824
13824
|
return typeof navigator < "u" && typeof navigator.product < "u" && navigator.product === "ReactNative";
|
|
13825
13825
|
}
|
|
13826
13826
|
function jg() {
|
|
@@ -13831,26 +13831,26 @@ function Hg() {
|
|
|
13831
13831
|
}
|
|
13832
13832
|
const Vg = [
|
|
13833
13833
|
// First, detect mobile
|
|
13834
|
-
{ platform:
|
|
13835
|
-
{ platform:
|
|
13834
|
+
{ platform: ne.Expo, detectionMethod: jg },
|
|
13835
|
+
{ platform: ne.ReactNative, detectionMethod: Bg },
|
|
13836
13836
|
// Next, detect web frameworks
|
|
13837
|
-
{ platform:
|
|
13838
|
-
{ platform:
|
|
13839
|
-
{ platform:
|
|
13840
|
-
{ platform:
|
|
13841
|
-
{ platform:
|
|
13842
|
-
{ platform:
|
|
13843
|
-
{ platform:
|
|
13837
|
+
{ platform: ne.NextJs, detectionMethod: Pg },
|
|
13838
|
+
{ platform: ne.Nuxt, detectionMethod: zg },
|
|
13839
|
+
{ platform: ne.Angular, detectionMethod: Fg },
|
|
13840
|
+
{ platform: ne.React, detectionMethod: Tg },
|
|
13841
|
+
{ platform: ne.VueJs, detectionMethod: Rg },
|
|
13842
|
+
{ platform: ne.Svelte, detectionMethod: Og },
|
|
13843
|
+
{ platform: ne.WebUnknown, detectionMethod: Hg },
|
|
13844
13844
|
// Last, detect ssr frameworks
|
|
13845
|
-
{ platform:
|
|
13846
|
-
{ platform:
|
|
13847
|
-
{ platform:
|
|
13848
|
-
{ platform:
|
|
13849
|
-
{ platform:
|
|
13850
|
-
{ platform:
|
|
13845
|
+
{ platform: ne.NextJsSSR, detectionMethod: Mg },
|
|
13846
|
+
{ platform: ne.NuxtSSR, detectionMethod: qg },
|
|
13847
|
+
{ platform: ne.ReactSSR, detectionMethod: Ng },
|
|
13848
|
+
{ platform: ne.VueJsSSR, detectionMethod: Lg },
|
|
13849
|
+
{ platform: ne.AngularSSR, detectionMethod: Ug },
|
|
13850
|
+
{ platform: ne.SvelteSSR, detectionMethod: Dg }
|
|
13851
13851
|
];
|
|
13852
13852
|
function $g() {
|
|
13853
|
-
return Vg.find((e) => e.detectionMethod())?.platform ||
|
|
13853
|
+
return Vg.find((e) => e.detectionMethod())?.platform || ne.ServerSideUnknown;
|
|
13854
13854
|
}
|
|
13855
13855
|
let Rt;
|
|
13856
13856
|
const Hn = [];
|
|
@@ -13864,7 +13864,7 @@ const Wg = 10, Gg = 10, Kg = 1e3, xs = () => {
|
|
|
13864
13864
|
Hn.forEach((e) => {
|
|
13865
13865
|
e();
|
|
13866
13866
|
});
|
|
13867
|
-
yo(
|
|
13867
|
+
yo(ne.ServerSideUnknown, Wg), yo(ne.WebUnknown, Gg);
|
|
13868
13868
|
}
|
|
13869
13869
|
return Rt;
|
|
13870
13870
|
};
|
|
@@ -14670,7 +14670,7 @@ function Pb(e = zs) {
|
|
|
14670
14670
|
return i > e ? !1 : i;
|
|
14671
14671
|
};
|
|
14672
14672
|
}
|
|
14673
|
-
const pr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t) => t.toLowerCase()).sort().join(";"), Mb = "X-Amz-Date", zb = "X-Amz-Security-Token", qb = "authorization", Fb = "host",
|
|
14673
|
+
const pr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t) => t.toLowerCase()).sort().join(";"), Mb = "X-Amz-Date", zb = "X-Amz-Security-Token", qb = "authorization", Fb = "host", Ub = Mb.toLowerCase(), Bb = zb.toLowerCase(), Us = "aws4_request", Bs = "AWS4-HMAC-SHA256", jb = "AWS4", Hb = "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", Vb = "UNSIGNED-PAYLOAD", $b = (e, t, n) => `${e}/${t}/${n}/${Us}`, Wb = (e) => {
|
|
14674
14674
|
const t = e.toISOString().replace(/[:-]|\.\d{3}/g, "");
|
|
14675
14675
|
return {
|
|
14676
14676
|
longDate: t,
|
|
@@ -14709,16 +14709,16 @@ const pr = tg, Zr = URL, qs = URLSearchParams, Fs = (e) => Object.keys(e).map((t
|
|
|
14709
14709
|
].join(`
|
|
14710
14710
|
`), ny = (e, t, n, r) => {
|
|
14711
14711
|
const i = `${jb}${e}`, o = _t(i, t), a = _t(o, n), s = _t(a, r);
|
|
14712
|
-
return _t(s,
|
|
14713
|
-
}, ry = (e, t, n) => [
|
|
14712
|
+
return _t(s, Us);
|
|
14713
|
+
}, ry = (e, t, n) => [Bs, e, t, n].join(`
|
|
14714
14714
|
`), iy = (e, { credentialScope: t, longDate: n, secretAccessKey: r, shortDate: i, signingRegion: o, signingService: a, uriEscapePath: s }) => {
|
|
14715
14715
|
const l = ty(e, s), c = dr(null, l), u = ry(n, t, c);
|
|
14716
14716
|
return dr(ny(r, i, o, a), u);
|
|
14717
14717
|
}, oy = (e, t) => {
|
|
14718
14718
|
const n = Gb(t), { accessKeyId: r, credentialScope: i, longDate: o, sessionToken: a } = n, s = { ...e.headers };
|
|
14719
|
-
s[Fb] = e.url.host, s[
|
|
14719
|
+
s[Fb] = e.url.host, s[Ub] = o, a && (s[Bb] = a);
|
|
14720
14720
|
const l = { ...e, headers: s }, c = iy(l, n), u = `Credential=${r}/${i}`, f = `SignedHeaders=${Fs(s)}`, d = `Signature=${c}`;
|
|
14721
|
-
return s[qb] = `${
|
|
14721
|
+
return s[qb] = `${Bs} ${u}, ${f}, ${d}`, l;
|
|
14722
14722
|
};
|
|
14723
14723
|
function rn(e) {
|
|
14724
14724
|
"@babel/helpers - typeof";
|
|
@@ -14749,8 +14749,8 @@ function js(e, t) {
|
|
|
14749
14749
|
if (f.length > 120) {
|
|
14750
14750
|
for (var d = Math.floor(l / 80), p = l % 80, h = [], b = 0; b < f.length; b += 80)
|
|
14751
14751
|
h.push(f.slice(b, b + 80));
|
|
14752
|
-
return c + _o([["".concat(a), h[0]]].concat(h.slice(1, d + 1).map(function(
|
|
14753
|
-
return ["",
|
|
14752
|
+
return c + _o([["".concat(a), h[0]]].concat(h.slice(1, d + 1).map(function(S) {
|
|
14753
|
+
return ["", S];
|
|
14754
14754
|
}), [[" ", on(p - 1) + "^"], ["", h[d + 1]]]));
|
|
14755
14755
|
}
|
|
14756
14756
|
return c + _o([
|
|
@@ -14905,8 +14905,8 @@ var $n = /* @__PURE__ */ function(e) {
|
|
|
14905
14905
|
function n(r, i, o, a, s, l, c) {
|
|
14906
14906
|
var u, f, d, p;
|
|
14907
14907
|
py(this, n), p = t.call(this, r), p.name = "GraphQLError", p.originalError = l ?? void 0, p.nodes = Io(Array.isArray(i) ? i : i ? [i] : void 0);
|
|
14908
|
-
for (var h = [], b = 0,
|
|
14909
|
-
var y,
|
|
14908
|
+
for (var h = [], b = 0, S = (y = p.nodes) !== null && y !== void 0 ? y : []; b < S.length; b++) {
|
|
14909
|
+
var y, k = S[b], E = k.loc;
|
|
14910
14910
|
E != null && h.push(E);
|
|
14911
14911
|
}
|
|
14912
14912
|
h = Io(h), p.source = o ?? ((u = h) === null || u === void 0 ? void 0 : u[0].source), p.positions = a ?? ((f = h) === null || f === void 0 ? void 0 : f.map(function(L) {
|
|
@@ -15158,7 +15158,7 @@ class Dy {
|
|
|
15158
15158
|
const Ro = "wss://", Py = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/graphql$/i, My = /^https:\/\/\w{26}\.\w+-api\.\w{2}(?:(?:-\w{2,})+)-\d\.amazonaws.com(?:\.cn)?\/event$/i, Lo = "/realtime", zy = (e) => e.match(Py) === null, qy = (e) => e.match(My) !== null, Fy = (e) => {
|
|
15159
15159
|
let t = e ?? "";
|
|
15160
15160
|
return qy(t) ? t = t.concat(Lo).replace("ddpg-api", "grt-gamma").replace("appsync-api", "appsync-realtime-api") : zy(t) ? t = t.concat(Lo) : t = t.replace("appsync-api", "appsync-realtime-api").replace("gogi-beta", "grt-beta").replace("ddpg-api", "grt-gamma"), t = t.replace("https://", Ro).replace("http://", Ro), new Zr(t);
|
|
15161
|
-
},
|
|
15161
|
+
}, Uy = (e) => {
|
|
15162
15162
|
if (!e)
|
|
15163
15163
|
return {};
|
|
15164
15164
|
if ("Authorization" in e) {
|
|
@@ -15166,8 +15166,8 @@ const Ro = "wss://", Py = /^https:\/\/\w{26}\.appsync-api\.\w{2}(?:(?:-\w{2,})+)
|
|
|
15166
15166
|
return n;
|
|
15167
15167
|
}
|
|
15168
15168
|
return e;
|
|
15169
|
-
},
|
|
15170
|
-
const t =
|
|
15169
|
+
}, By = (e) => {
|
|
15170
|
+
const t = Uy(e), n = new qs();
|
|
15171
15171
|
return Object.entries(t).forEach(([r, i]) => {
|
|
15172
15172
|
n.append(r, i);
|
|
15173
15173
|
}), n;
|
|
@@ -15346,7 +15346,7 @@ class $y {
|
|
|
15346
15346
|
const c = (p) => {
|
|
15347
15347
|
const h = JSON.parse(p.data);
|
|
15348
15348
|
if (h.id === r && h.type === "publish_success" && (this.awsRealTimeSocket && this.awsRealTimeSocket.removeEventListener("message", c), d(), s()), h.errors && h.errors.length > 0) {
|
|
15349
|
-
const b = h.errors.map((
|
|
15349
|
+
const b = h.errors.map((S) => S.errorType);
|
|
15350
15350
|
d(), l(new Error(`Publish errors: ${b.join(", ")}`));
|
|
15351
15351
|
}
|
|
15352
15352
|
}, u = (p) => {
|
|
@@ -15590,7 +15590,7 @@ class $y {
|
|
|
15590
15590
|
}), u = c ? JSON.stringify(c) : "", d = `header-${ky.convert(u, {
|
|
15591
15591
|
urlSafe: !0,
|
|
15592
15592
|
skipPadding: !0
|
|
15593
|
-
})}`, p =
|
|
15593
|
+
})}`, p = By(o), h = jy(t, p);
|
|
15594
15594
|
await this._establishRetryableConnection(h, d), this.promiseArray.forEach(({ res: b }) => {
|
|
15595
15595
|
this.logger.debug("Notifying connection successful"), b();
|
|
15596
15596
|
}), this.socketStatus = de.READY, this.promiseArray = [];
|
|
@@ -15732,8 +15732,8 @@ class Yy extends $y {
|
|
|
15732
15732
|
}),
|
|
15733
15733
|
...o,
|
|
15734
15734
|
...i,
|
|
15735
|
-
[
|
|
15736
|
-
},
|
|
15735
|
+
[Um]: tb(r)
|
|
15736
|
+
}, S = {
|
|
15737
15737
|
id: n,
|
|
15738
15738
|
channel: c,
|
|
15739
15739
|
events: d !== void 0 ? Gn(d) : void 0,
|
|
@@ -15751,7 +15751,7 @@ class Yy extends $y {
|
|
|
15751
15751
|
},
|
|
15752
15752
|
type: a ? ve.EVENT_PUBLISH : ve.EVENT_SUBSCRIBE
|
|
15753
15753
|
};
|
|
15754
|
-
return JSON.stringify(
|
|
15754
|
+
return JSON.stringify(S);
|
|
15755
15755
|
}
|
|
15756
15756
|
_handleSubscriptionData(t) {
|
|
15757
15757
|
this.logger.debug(`subscription message from AWS AppSync Events: ${t.data}`);
|
|
@@ -15808,39 +15808,39 @@ async function Jy(e, t) {
|
|
|
15808
15808
|
}
|
|
15809
15809
|
};
|
|
15810
15810
|
}
|
|
15811
|
-
const Qy =
|
|
15812
|
-
type:
|
|
15813
|
-
content:
|
|
15814
|
-
role:
|
|
15815
|
-
}), Xy =
|
|
15816
|
-
type:
|
|
15817
|
-
content:
|
|
15818
|
-
}), Zy =
|
|
15819
|
-
type:
|
|
15820
|
-
code:
|
|
15821
|
-
}), ew =
|
|
15822
|
-
message_id:
|
|
15823
|
-
created_at:
|
|
15811
|
+
const Qy = Z.object({
|
|
15812
|
+
type: Z.literal("utterance"),
|
|
15813
|
+
content: Z.string(),
|
|
15814
|
+
role: Z.string()
|
|
15815
|
+
}), Xy = Z.object({
|
|
15816
|
+
type: Z.literal("agent_cognition"),
|
|
15817
|
+
content: Z.string()
|
|
15818
|
+
}), Zy = Z.object({
|
|
15819
|
+
type: Z.literal("error"),
|
|
15820
|
+
code: Z.string()
|
|
15821
|
+
}), ew = Z.object({
|
|
15822
|
+
message_id: Z.string().nullable(),
|
|
15823
|
+
created_at: Z.string(),
|
|
15824
15824
|
data: Qy
|
|
15825
|
-
}), tw =
|
|
15826
|
-
created_at:
|
|
15825
|
+
}), tw = Z.object({
|
|
15826
|
+
created_at: Z.string(),
|
|
15827
15827
|
data: Zy
|
|
15828
|
-
}), nw =
|
|
15829
|
-
created_at:
|
|
15828
|
+
}), nw = Z.object({
|
|
15829
|
+
created_at: Z.string(),
|
|
15830
15830
|
data: Xy
|
|
15831
|
-
}), rw =
|
|
15831
|
+
}), rw = Z.union([
|
|
15832
15832
|
ew,
|
|
15833
15833
|
tw,
|
|
15834
15834
|
nw
|
|
15835
15835
|
]);
|
|
15836
|
-
|
|
15837
|
-
message_id:
|
|
15836
|
+
Z.object({
|
|
15837
|
+
message_id: Z.string(),
|
|
15838
15838
|
// message_id from api schema
|
|
15839
|
-
response:
|
|
15840
|
-
id:
|
|
15839
|
+
response: Z.object({
|
|
15840
|
+
id: Z.string(),
|
|
15841
15841
|
// message_id from api schema
|
|
15842
|
-
type:
|
|
15843
|
-
content:
|
|
15842
|
+
type: Z.string(),
|
|
15843
|
+
content: Z.string()
|
|
15844
15844
|
})
|
|
15845
15845
|
});
|
|
15846
15846
|
function iw({
|
|
@@ -15850,18 +15850,18 @@ function iw({
|
|
|
15850
15850
|
chatSettings: r
|
|
15851
15851
|
}) {
|
|
15852
15852
|
const [i, o] = V(!1), a = se(!1), s = se(null), { publishError: l } = vn(), c = r?.app_sync_url, u = r?.app_sync_region, f = r?.app_sync_api_key;
|
|
15853
|
-
|
|
15853
|
+
te(() => {
|
|
15854
15854
|
(c || u || f) && (Xr.configure(
|
|
15855
15855
|
Pl(c, f, u)
|
|
15856
15856
|
), o(!0));
|
|
15857
15857
|
}, [c, f, u]);
|
|
15858
|
-
const d = async (
|
|
15859
|
-
if (!i || !
|
|
15858
|
+
const d = async (k) => {
|
|
15859
|
+
if (!i || !k)
|
|
15860
15860
|
throw new Error(
|
|
15861
15861
|
"Cannot connect: Amplify not ready or missing conversationId"
|
|
15862
15862
|
);
|
|
15863
|
-
|
|
15864
|
-
const E = `/default/chat/${
|
|
15863
|
+
S();
|
|
15864
|
+
const E = `/default/chat/${k}`, P = await Jy(E);
|
|
15865
15865
|
s.current = P, P.subscribe({
|
|
15866
15866
|
next: (L) => {
|
|
15867
15867
|
if (console.log("Received event:", L), L.type !== "data")
|
|
@@ -15879,7 +15879,7 @@ function iw({
|
|
|
15879
15879
|
case "utterance":
|
|
15880
15880
|
return p(
|
|
15881
15881
|
M,
|
|
15882
|
-
|
|
15882
|
+
k
|
|
15883
15883
|
);
|
|
15884
15884
|
case "error":
|
|
15885
15885
|
return h(M);
|
|
@@ -15895,42 +15895,42 @@ function iw({
|
|
|
15895
15895
|
console.error("Error in conversation channel:", L);
|
|
15896
15896
|
}
|
|
15897
15897
|
}), await y();
|
|
15898
|
-
}, p = (
|
|
15898
|
+
}, p = (k, E) => {
|
|
15899
15899
|
const P = {
|
|
15900
|
-
message_id:
|
|
15900
|
+
message_id: k.message_id,
|
|
15901
15901
|
response: {
|
|
15902
|
-
id:
|
|
15903
|
-
type:
|
|
15904
|
-
content:
|
|
15902
|
+
id: k.message_id,
|
|
15903
|
+
type: k.data.type,
|
|
15904
|
+
content: k.data.content
|
|
15905
15905
|
}
|
|
15906
15906
|
};
|
|
15907
15907
|
e(P, E);
|
|
15908
|
-
}, h = (
|
|
15909
|
-
const E = parseInt(
|
|
15908
|
+
}, h = (k) => {
|
|
15909
|
+
const E = parseInt(k.data.code), P = ls(E);
|
|
15910
15910
|
n?.(), l({ code: E, message: P });
|
|
15911
|
-
}, b = (
|
|
15912
|
-
t(
|
|
15913
|
-
},
|
|
15911
|
+
}, b = (k) => {
|
|
15912
|
+
t(k.data.content);
|
|
15913
|
+
}, S = () => {
|
|
15914
15914
|
s.current && (s.current.close(), s.current = null);
|
|
15915
|
-
}, y = async (
|
|
15915
|
+
}, y = async (k = 1e4) => a.current ? Promise.resolve() : new Promise((E, P) => {
|
|
15916
15916
|
const L = setTimeout(() => {
|
|
15917
15917
|
P(
|
|
15918
15918
|
new Error(
|
|
15919
|
-
`AppSync connection timeout: Failed to connect within ${
|
|
15919
|
+
`AppSync connection timeout: Failed to connect within ${k}ms`
|
|
15920
15920
|
)
|
|
15921
15921
|
);
|
|
15922
|
-
},
|
|
15922
|
+
}, k), v = () => {
|
|
15923
15923
|
a.current ? (clearTimeout(L), E()) : setTimeout(v, 100);
|
|
15924
15924
|
};
|
|
15925
15925
|
v();
|
|
15926
15926
|
});
|
|
15927
15927
|
return Hr.listen(
|
|
15928
15928
|
"api",
|
|
15929
|
-
(
|
|
15930
|
-
const { payload: E } =
|
|
15929
|
+
(k) => {
|
|
15930
|
+
const { payload: E } = k;
|
|
15931
15931
|
E.event === $s && (E.data?.connectionState === "Connected" ? a.current = !0 : a.current = !1);
|
|
15932
15932
|
}
|
|
15933
|
-
), { connect: d, disconnect:
|
|
15933
|
+
), { connect: d, disconnect: S };
|
|
15934
15934
|
}
|
|
15935
15935
|
function ow({
|
|
15936
15936
|
appId: e,
|
|
@@ -15946,12 +15946,12 @@ function ow({
|
|
|
15946
15946
|
setCurrentConversation: u,
|
|
15947
15947
|
chatOpen: f
|
|
15948
15948
|
}) {
|
|
15949
|
-
const { saveConversationData: d, clearConversationData: p, updateLastActivity: h } =
|
|
15950
|
-
(w,
|
|
15949
|
+
const { saveConversationData: d, clearConversationData: p, updateLastActivity: h } = Br({ appId: e }), { publishApiError: b } = vn(), { showCognition: S, hideCognition: y } = as(), k = ee(
|
|
15950
|
+
(w, R) => {
|
|
15951
15951
|
y(), l((I) => {
|
|
15952
|
-
const _ = I.filter((
|
|
15952
|
+
const _ = I.filter((K) => !K.isThinking);
|
|
15953
15953
|
if (!w.response.content || _.some(
|
|
15954
|
-
(
|
|
15954
|
+
(K) => K.id === w.message_id
|
|
15955
15955
|
))
|
|
15956
15956
|
return _;
|
|
15957
15957
|
const z = [
|
|
@@ -15964,7 +15964,7 @@ function ow({
|
|
|
15964
15964
|
}
|
|
15965
15965
|
];
|
|
15966
15966
|
return d(
|
|
15967
|
-
|
|
15967
|
+
R,
|
|
15968
15968
|
t,
|
|
15969
15969
|
z,
|
|
15970
15970
|
i
|
|
@@ -15972,11 +15972,11 @@ function ow({
|
|
|
15972
15972
|
});
|
|
15973
15973
|
},
|
|
15974
15974
|
[i, y, d, l, t]
|
|
15975
|
-
), E =
|
|
15976
|
-
y(), l((w) => w.filter((
|
|
15975
|
+
), E = ee(() => {
|
|
15976
|
+
y(), l((w) => w.filter((R) => !R.isThinking));
|
|
15977
15977
|
}, [l, y]), { connect: P, disconnect: L } = iw({
|
|
15978
|
-
onReceiveMessage:
|
|
15979
|
-
onReceiveCognition:
|
|
15978
|
+
onReceiveMessage: k,
|
|
15979
|
+
onReceiveCognition: S,
|
|
15980
15980
|
onError: E,
|
|
15981
15981
|
chatSettings: a
|
|
15982
15982
|
}), { expectMessage: v, stopPolling: M } = Mm({
|
|
@@ -15985,10 +15985,10 @@ function ow({
|
|
|
15985
15985
|
messages: s,
|
|
15986
15986
|
setMessages: l,
|
|
15987
15987
|
chatOpen: f,
|
|
15988
|
-
onReceiveMessage:
|
|
15989
|
-
}), A =
|
|
15988
|
+
onReceiveMessage: k
|
|
15989
|
+
}), A = ee(() => {
|
|
15990
15990
|
L(), M(), l(
|
|
15991
|
-
(w) => w.filter((
|
|
15991
|
+
(w) => w.filter((R) => Array.isArray(R) ? !1 : R.isWelcomeMessage)
|
|
15992
15992
|
), p(), u(null);
|
|
15993
15993
|
}, [
|
|
15994
15994
|
L,
|
|
@@ -15996,16 +15996,16 @@ function ow({
|
|
|
15996
15996
|
p,
|
|
15997
15997
|
l,
|
|
15998
15998
|
u
|
|
15999
|
-
]), D =
|
|
15999
|
+
]), D = ee(
|
|
16000
16000
|
async (w) => {
|
|
16001
16001
|
if (!o) return;
|
|
16002
|
-
const
|
|
16002
|
+
const R = {
|
|
16003
16003
|
...w,
|
|
16004
16004
|
// Temporary ID
|
|
16005
16005
|
id: crypto.randomUUID()
|
|
16006
16006
|
};
|
|
16007
|
-
|
|
16008
|
-
const I = [...s,
|
|
16007
|
+
S();
|
|
16008
|
+
const I = [...s, R];
|
|
16009
16009
|
l(I), h();
|
|
16010
16010
|
try {
|
|
16011
16011
|
let _ = c?.id;
|
|
@@ -16014,7 +16014,7 @@ function ow({
|
|
|
16014
16014
|
deviceId: i,
|
|
16015
16015
|
userName: n
|
|
16016
16016
|
})).chat_id, u({ id: _ }), await P(_));
|
|
16017
|
-
const
|
|
16017
|
+
const T = await o.replyToConversation({
|
|
16018
16018
|
text: w.content,
|
|
16019
16019
|
conversationId: _,
|
|
16020
16020
|
userId: r || t,
|
|
@@ -16023,18 +16023,18 @@ function ow({
|
|
|
16023
16023
|
});
|
|
16024
16024
|
l(
|
|
16025
16025
|
(z) => z.map(
|
|
16026
|
-
(
|
|
16026
|
+
(K) => K.id === R.id ? { ...K, id: T.message_id } : K
|
|
16027
16027
|
)
|
|
16028
16028
|
), v();
|
|
16029
16029
|
} catch (_) {
|
|
16030
16030
|
throw y(), l(
|
|
16031
|
-
(
|
|
16032
|
-
), b(_), _ instanceof ar && _.status >= 500 && (u(null), p(), l((
|
|
16031
|
+
(T) => T.filter((z) => !z.isThinking)
|
|
16032
|
+
), b(_), _ instanceof ar && _.status >= 500 && (u(null), p(), l((T) => T.slice(0, -1)), o.reset()), _;
|
|
16033
16033
|
}
|
|
16034
16034
|
},
|
|
16035
16035
|
[
|
|
16036
16036
|
o,
|
|
16037
|
-
|
|
16037
|
+
S,
|
|
16038
16038
|
s,
|
|
16039
16039
|
l,
|
|
16040
16040
|
h,
|
|
@@ -16125,7 +16125,7 @@ function sw(e, t, n) {
|
|
|
16125
16125
|
se(() => (f.current = !0, () => {
|
|
16126
16126
|
f.current = !1;
|
|
16127
16127
|
}));
|
|
16128
|
-
const d =
|
|
16128
|
+
const d = ee(async () => {
|
|
16129
16129
|
if (Zt.has(e)) {
|
|
16130
16130
|
const p = Zt.get(e);
|
|
16131
16131
|
return o(p), p;
|
|
@@ -16147,8 +16147,8 @@ function sw(e, t, n) {
|
|
|
16147
16147
|
return { data: i, error: s, isLoading: c, fetch: d };
|
|
16148
16148
|
}
|
|
16149
16149
|
function lw(e) {
|
|
16150
|
-
const { appId: t, initialUserId: n } = e, { getSavedConversationData: r } =
|
|
16151
|
-
return
|
|
16150
|
+
const { appId: t, initialUserId: n } = e, { getSavedConversationData: r } = Br({ appId: t }), [i, o] = V(!1), [a, s] = V(""), [l, c] = V(""), [u, f] = V(null);
|
|
16151
|
+
return te(() => {
|
|
16152
16152
|
const d = r();
|
|
16153
16153
|
d?.userId ? d?.externalId !== n ? (s(d.userId), f(n)) : (s(d?.userId), f(d.externalId)) : n ? (s(n), f(n)) : s(crypto.randomUUID()), c(d?.deviceId || crypto.randomUUID()), o(!0);
|
|
16154
16154
|
}, [r, n]), {
|
|
@@ -16159,80 +16159,81 @@ function lw(e) {
|
|
|
16159
16159
|
};
|
|
16160
16160
|
}
|
|
16161
16161
|
function cw({
|
|
16162
|
-
|
|
16163
|
-
|
|
16164
|
-
|
|
16162
|
+
apiUrl: e,
|
|
16163
|
+
appId: t,
|
|
16164
|
+
initialUserId: n,
|
|
16165
|
+
initialUserName: r
|
|
16165
16166
|
}) {
|
|
16166
16167
|
const {
|
|
16167
|
-
userId:
|
|
16168
|
-
externalId:
|
|
16169
|
-
deviceId:
|
|
16170
|
-
isReady:
|
|
16171
|
-
} = lw({ appId:
|
|
16172
|
-
isConversationExpired:
|
|
16173
|
-
clearConversationData:
|
|
16174
|
-
getSavedConversationData:
|
|
16175
|
-
} =
|
|
16168
|
+
userId: i,
|
|
16169
|
+
externalId: o,
|
|
16170
|
+
deviceId: a,
|
|
16171
|
+
isReady: s
|
|
16172
|
+
} = lw({ appId: t, initialUserId: n }), {
|
|
16173
|
+
isConversationExpired: l,
|
|
16174
|
+
clearConversationData: c,
|
|
16175
|
+
getSavedConversationData: u
|
|
16176
|
+
} = Br({ appId: t }), { current: f } = se(e || Dl()), [d] = V(
|
|
16176
16177
|
new aw({
|
|
16177
|
-
baseURL:
|
|
16178
|
-
appId:
|
|
16178
|
+
baseURL: f,
|
|
16179
|
+
appId: t
|
|
16179
16180
|
})
|
|
16180
|
-
), [
|
|
16181
|
-
return
|
|
16182
|
-
if (
|
|
16183
|
-
|
|
16181
|
+
), [p, h] = V(null), [b, S] = V(null), [y, k] = V([]), [E, P] = V(!1), v = sw(`sdk-boot-${t}`, () => d.boot()).fetch;
|
|
16182
|
+
return te(() => {
|
|
16183
|
+
if (l())
|
|
16184
|
+
c();
|
|
16184
16185
|
else {
|
|
16185
16186
|
const {
|
|
16186
|
-
conversationId:
|
|
16187
|
-
userId:
|
|
16188
|
-
messages:
|
|
16189
|
-
} =
|
|
16190
|
-
|
|
16191
|
-
id:
|
|
16192
|
-
}),
|
|
16187
|
+
conversationId: M,
|
|
16188
|
+
userId: A,
|
|
16189
|
+
messages: D
|
|
16190
|
+
} = u();
|
|
16191
|
+
M && A && (S({
|
|
16192
|
+
id: M
|
|
16193
|
+
}), D && D.length > 0 && k(D));
|
|
16193
16194
|
}
|
|
16194
|
-
}, [
|
|
16195
|
-
if (!
|
|
16195
|
+
}, [u, l, c]), te(() => {
|
|
16196
|
+
if (!s) return;
|
|
16196
16197
|
(async () => {
|
|
16197
|
-
const [
|
|
16198
|
-
if (
|
|
16199
|
-
|
|
16198
|
+
const [A, D] = await kl(v());
|
|
16199
|
+
if (D) {
|
|
16200
|
+
P(!0);
|
|
16200
16201
|
return;
|
|
16201
16202
|
}
|
|
16202
|
-
const
|
|
16203
|
-
|
|
16203
|
+
const w = A.chat_settings.welcome_message;
|
|
16204
|
+
h(A.chat_settings), w && y.length === 0 && k([
|
|
16204
16205
|
{
|
|
16205
16206
|
id: crypto.randomUUID(),
|
|
16206
|
-
content:
|
|
16207
|
+
content: w,
|
|
16207
16208
|
sender: "assistant",
|
|
16208
16209
|
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
16209
16210
|
isWelcomeMessage: !0
|
|
16210
16211
|
}
|
|
16211
|
-
]),
|
|
16212
|
+
]), P(!0);
|
|
16212
16213
|
})();
|
|
16213
|
-
}, [
|
|
16214
|
-
userId:
|
|
16215
|
-
userName:
|
|
16216
|
-
externalId:
|
|
16217
|
-
deviceId:
|
|
16218
|
-
apiClient:
|
|
16219
|
-
chatSettings:
|
|
16220
|
-
currentConversation:
|
|
16221
|
-
messages:
|
|
16222
|
-
isReady:
|
|
16214
|
+
}, [s, y.length]), {
|
|
16215
|
+
userId: i,
|
|
16216
|
+
userName: r,
|
|
16217
|
+
externalId: o,
|
|
16218
|
+
deviceId: a,
|
|
16219
|
+
apiClient: d,
|
|
16220
|
+
chatSettings: p,
|
|
16221
|
+
currentConversation: b,
|
|
16222
|
+
messages: y,
|
|
16223
|
+
isReady: E
|
|
16223
16224
|
};
|
|
16224
16225
|
}
|
|
16225
16226
|
function uw(e) {
|
|
16226
16227
|
const [t, n] = V(!1), [r, i] = V(
|
|
16227
16228
|
null
|
|
16228
16229
|
), o = e ?? t, a = typeof window > "u";
|
|
16229
|
-
return
|
|
16230
|
+
return te(() => {
|
|
16230
16231
|
if (a) return;
|
|
16231
16232
|
const s = () => {
|
|
16232
16233
|
n(window.innerWidth <= 640);
|
|
16233
16234
|
};
|
|
16234
16235
|
return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
|
|
16235
|
-
}, [a]),
|
|
16236
|
+
}, [a]), te(() => {
|
|
16236
16237
|
if (a) return;
|
|
16237
16238
|
const s = document.createElement("div");
|
|
16238
16239
|
return s.className = "eloquent-ai-chat-portal", s.style.position = "relative", s.style.zIndex = "30", document.body.appendChild(s), i(s), () => {
|
|
@@ -16246,101 +16247,103 @@ function uw(e) {
|
|
|
16246
16247
|
}
|
|
16247
16248
|
function fw({
|
|
16248
16249
|
environment: e,
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
|
|
16252
|
-
|
|
16253
|
-
|
|
16254
|
-
|
|
16255
|
-
|
|
16250
|
+
apiUrl: t,
|
|
16251
|
+
appId: n,
|
|
16252
|
+
userId: r,
|
|
16253
|
+
userName: i,
|
|
16254
|
+
chatProps: o,
|
|
16255
|
+
isMobile: a,
|
|
16256
|
+
initialOpen: s = !1,
|
|
16257
|
+
proactiveMessageHideDelay: l = 5e3
|
|
16256
16258
|
}) {
|
|
16257
|
-
const { isMobile:
|
|
16258
|
-
userId:
|
|
16259
|
-
userName:
|
|
16260
|
-
externalId:
|
|
16261
|
-
deviceId:
|
|
16262
|
-
apiClient:
|
|
16263
|
-
chatSettings:
|
|
16264
|
-
currentConversation:
|
|
16265
|
-
messages:
|
|
16266
|
-
isReady:
|
|
16259
|
+
const { isMobile: c, portalContainer: u } = uw(a), {
|
|
16260
|
+
userId: f,
|
|
16261
|
+
userName: d,
|
|
16262
|
+
externalId: p,
|
|
16263
|
+
deviceId: h,
|
|
16264
|
+
apiClient: b,
|
|
16265
|
+
chatSettings: S,
|
|
16266
|
+
currentConversation: y,
|
|
16267
|
+
messages: k,
|
|
16268
|
+
isReady: E
|
|
16267
16269
|
} = cw({
|
|
16268
|
-
|
|
16269
|
-
|
|
16270
|
-
|
|
16271
|
-
|
|
16272
|
-
|
|
16273
|
-
|
|
16270
|
+
apiUrl: t,
|
|
16271
|
+
appId: n,
|
|
16272
|
+
initialUserId: r,
|
|
16273
|
+
initialUserName: i
|
|
16274
|
+
}), P = Dm({ chatProps: o, chatSettings: S }), [L, v] = V(s ?? c), M = br(L, 200), [A, D] = V(
|
|
16275
|
+
o?.messages ?? []
|
|
16276
|
+
), [w, R] = V(y), [I, _] = V({
|
|
16274
16277
|
text: "",
|
|
16275
16278
|
isVisible: !1,
|
|
16276
|
-
autoHideDelay:
|
|
16277
|
-
}), { onSendMessage:
|
|
16278
|
-
appId:
|
|
16279
|
-
userId:
|
|
16280
|
-
userName:
|
|
16281
|
-
externalId:
|
|
16282
|
-
deviceId:
|
|
16283
|
-
apiClient:
|
|
16284
|
-
chatSettings:
|
|
16285
|
-
setMessages:
|
|
16286
|
-
messages:
|
|
16287
|
-
currentConversation:
|
|
16288
|
-
setCurrentConversation:
|
|
16289
|
-
chatOpen:
|
|
16279
|
+
autoHideDelay: l
|
|
16280
|
+
}), { onSendMessage: T, onCleanMessages: z } = ow({
|
|
16281
|
+
appId: n,
|
|
16282
|
+
userId: f,
|
|
16283
|
+
userName: d,
|
|
16284
|
+
externalId: p,
|
|
16285
|
+
deviceId: h,
|
|
16286
|
+
apiClient: b,
|
|
16287
|
+
chatSettings: S,
|
|
16288
|
+
setMessages: D,
|
|
16289
|
+
messages: A,
|
|
16290
|
+
currentConversation: w,
|
|
16291
|
+
setCurrentConversation: R,
|
|
16292
|
+
chatOpen: L
|
|
16290
16293
|
});
|
|
16291
|
-
|
|
16292
|
-
|
|
16293
|
-
}, [
|
|
16294
|
-
|
|
16295
|
-
}, [
|
|
16296
|
-
|
|
16297
|
-
userId:
|
|
16298
|
-
userName:
|
|
16299
|
-
externalId:
|
|
16300
|
-
deviceId:
|
|
16301
|
-
conversationId:
|
|
16294
|
+
te(() => {
|
|
16295
|
+
k.length > 0 && D(k);
|
|
16296
|
+
}, [k]), te(() => {
|
|
16297
|
+
y && R(y);
|
|
16298
|
+
}, [y]), te(() => {
|
|
16299
|
+
w && p && b?.identifyUser({
|
|
16300
|
+
userId: f,
|
|
16301
|
+
userName: d,
|
|
16302
|
+
externalId: p,
|
|
16303
|
+
deviceId: h,
|
|
16304
|
+
conversationId: w.id
|
|
16302
16305
|
});
|
|
16303
|
-
}, [
|
|
16304
|
-
const
|
|
16305
|
-
|
|
16306
|
-
|
|
16306
|
+
}, [p, f, d, h, w, b]);
|
|
16307
|
+
const K = ee(() => {
|
|
16308
|
+
_((X) => ({
|
|
16309
|
+
...X,
|
|
16307
16310
|
isVisible: !1
|
|
16308
16311
|
}));
|
|
16309
16312
|
}, []);
|
|
16310
|
-
return
|
|
16311
|
-
|
|
16312
|
-
|
|
16313
|
-
text:
|
|
16313
|
+
return te(() => {
|
|
16314
|
+
S?.auto_display_welcome_message && S?.welcome_message && E && _((X) => ({
|
|
16315
|
+
...X,
|
|
16316
|
+
text: S.welcome_message || X.text,
|
|
16314
16317
|
isVisible: !0
|
|
16315
16318
|
}));
|
|
16316
16319
|
}, [
|
|
16317
|
-
|
|
16318
|
-
|
|
16319
|
-
|
|
16320
|
+
E,
|
|
16321
|
+
S?.auto_display_welcome_message,
|
|
16322
|
+
S?.welcome_message
|
|
16320
16323
|
]), {
|
|
16321
|
-
isReady:
|
|
16322
|
-
isMobile:
|
|
16323
|
-
chatInterfaceProps:
|
|
16324
|
-
chatOpen:
|
|
16325
|
-
chatOpenDebounced:
|
|
16326
|
-
messages:
|
|
16327
|
-
portalContainer:
|
|
16328
|
-
onSendMessage:
|
|
16329
|
-
setChatOpen:
|
|
16330
|
-
onCleanMessages:
|
|
16331
|
-
proactiveMessage:
|
|
16332
|
-
hideProactiveMessage:
|
|
16324
|
+
isReady: E,
|
|
16325
|
+
isMobile: c,
|
|
16326
|
+
chatInterfaceProps: P,
|
|
16327
|
+
chatOpen: L,
|
|
16328
|
+
chatOpenDebounced: M,
|
|
16329
|
+
messages: A,
|
|
16330
|
+
portalContainer: u,
|
|
16331
|
+
onSendMessage: T,
|
|
16332
|
+
setChatOpen: v,
|
|
16333
|
+
onCleanMessages: z,
|
|
16334
|
+
proactiveMessage: I,
|
|
16335
|
+
hideProactiveMessage: K
|
|
16333
16336
|
};
|
|
16334
16337
|
}
|
|
16335
16338
|
function pw() {
|
|
16336
|
-
const [e, t] = V(!1), [n, r] = V(null), i = se(null), o = se(null), a =
|
|
16339
|
+
const [e, t] = V(!1), [n, r] = V(null), i = se(null), o = se(null), a = ee((l = "...") => {
|
|
16337
16340
|
const c = () => {
|
|
16338
16341
|
r(l), t(!0), o.current = null, i.current && clearTimeout(i.current), i.current = setTimeout(() => {
|
|
16339
16342
|
i.current = null, o.current && c();
|
|
16340
16343
|
}, 1e3);
|
|
16341
16344
|
};
|
|
16342
16345
|
i.current ? o.current = l : c();
|
|
16343
|
-
}, []), s =
|
|
16346
|
+
}, []), s = ee(() => {
|
|
16344
16347
|
i.current && (clearTimeout(i.current), i.current = null), o.current = null, t(!1), r(null);
|
|
16345
16348
|
}, []);
|
|
16346
16349
|
return {
|
|
@@ -16382,23 +16385,25 @@ function mw({
|
|
|
16382
16385
|
INTERNAL_ONLY_BLOCK_STYLE: f = !1,
|
|
16383
16386
|
INTERNAL_ONLY_FEATURE_MESSAGE_CLICK: d = void 0,
|
|
16384
16387
|
INTERNAL_ONLY_FEATURE_CLEAR_CHAT_CLICK: p = void 0,
|
|
16385
|
-
INTERNAL_ONLY_ENVIRONMENT: h = "live"
|
|
16388
|
+
INTERNAL_ONLY_ENVIRONMENT: h = "live",
|
|
16389
|
+
INTERNAL_ONLY_API_URL: b
|
|
16386
16390
|
}) {
|
|
16387
16391
|
const {
|
|
16388
|
-
isReady:
|
|
16389
|
-
isMobile:
|
|
16390
|
-
chatOpen:
|
|
16391
|
-
chatInterfaceProps:
|
|
16392
|
-
chatOpenDebounced:
|
|
16393
|
-
messages:
|
|
16394
|
-
portalContainer:
|
|
16395
|
-
onSendMessage:
|
|
16396
|
-
setChatOpen:
|
|
16397
|
-
onCleanMessages:
|
|
16398
|
-
proactiveMessage:
|
|
16399
|
-
hideProactiveMessage:
|
|
16392
|
+
isReady: S,
|
|
16393
|
+
isMobile: y,
|
|
16394
|
+
chatOpen: k,
|
|
16395
|
+
chatInterfaceProps: E,
|
|
16396
|
+
chatOpenDebounced: P,
|
|
16397
|
+
messages: L,
|
|
16398
|
+
portalContainer: v,
|
|
16399
|
+
onSendMessage: M,
|
|
16400
|
+
setChatOpen: A,
|
|
16401
|
+
onCleanMessages: D,
|
|
16402
|
+
proactiveMessage: w,
|
|
16403
|
+
hideProactiveMessage: R
|
|
16400
16404
|
} = fw({
|
|
16401
16405
|
environment: h,
|
|
16406
|
+
apiUrl: b,
|
|
16402
16407
|
appId: e,
|
|
16403
16408
|
userId: t,
|
|
16404
16409
|
userName: n,
|
|
@@ -16406,7 +16411,7 @@ function mw({
|
|
|
16406
16411
|
isMobile: o,
|
|
16407
16412
|
initialOpen: l,
|
|
16408
16413
|
proactiveMessageHideDelay: i
|
|
16409
|
-
}),
|
|
16414
|
+
}), I = () => /* @__PURE__ */ B(
|
|
16410
16415
|
"div",
|
|
16411
16416
|
{
|
|
16412
16417
|
style: {
|
|
@@ -16427,7 +16432,7 @@ function mw({
|
|
|
16427
16432
|
jn,
|
|
16428
16433
|
{
|
|
16429
16434
|
className: "eloquentai-chat-messaging",
|
|
16430
|
-
head: /* @__PURE__ */
|
|
16435
|
+
head: /* @__PURE__ */ B(Qe, { children: [
|
|
16431
16436
|
/* @__PURE__ */ x("link", { rel: "preconnect", href: "https://fonts.googleapis.com" }),
|
|
16432
16437
|
/* @__PURE__ */ x("link", { rel: "preconnect", href: "https://fonts.gstatic.com" }),
|
|
16433
16438
|
/* @__PURE__ */ x(
|
|
@@ -16440,16 +16445,16 @@ function mw({
|
|
|
16440
16445
|
/* @__PURE__ */ x("style", { children: En })
|
|
16441
16446
|
] }),
|
|
16442
16447
|
style: {
|
|
16443
|
-
display:
|
|
16444
|
-
width:
|
|
16445
|
-
height:
|
|
16448
|
+
display: k || P ? "block" : "none",
|
|
16449
|
+
width: y ? "100vw" : "400px",
|
|
16450
|
+
height: y ? "100vh" : "700px",
|
|
16446
16451
|
border: "none",
|
|
16447
16452
|
zIndex: 2147483e3,
|
|
16448
16453
|
position: "fixed",
|
|
16449
|
-
top:
|
|
16450
|
-
left:
|
|
16451
|
-
right:
|
|
16452
|
-
bottom:
|
|
16454
|
+
top: y ? 0 : void 0,
|
|
16455
|
+
left: y ? 0 : void 0,
|
|
16456
|
+
right: y ? 0 : 17,
|
|
16457
|
+
bottom: y ? 0 : 84,
|
|
16453
16458
|
...f ? {
|
|
16454
16459
|
position: "relative",
|
|
16455
16460
|
top: 0,
|
|
@@ -16461,23 +16466,23 @@ function mw({
|
|
|
16461
16466
|
zIndex: 0
|
|
16462
16467
|
} : {}
|
|
16463
16468
|
},
|
|
16464
|
-
children:
|
|
16469
|
+
children: S ? /* @__PURE__ */ x(
|
|
16465
16470
|
Rm,
|
|
16466
16471
|
{
|
|
16467
|
-
...
|
|
16468
|
-
isOpen:
|
|
16469
|
-
messages:
|
|
16470
|
-
onSendMessage:
|
|
16472
|
+
...E,
|
|
16473
|
+
isOpen: k,
|
|
16474
|
+
messages: L,
|
|
16475
|
+
onSendMessage: M,
|
|
16471
16476
|
onMessageClick: d,
|
|
16472
|
-
isMobile:
|
|
16477
|
+
isMobile: y,
|
|
16473
16478
|
closeButton: a,
|
|
16474
16479
|
cleanChatButton: s,
|
|
16475
|
-
onClose: () =>
|
|
16480
|
+
onClose: () => A(!1),
|
|
16476
16481
|
onCleanChat: () => {
|
|
16477
|
-
|
|
16482
|
+
D(), p?.();
|
|
16478
16483
|
}
|
|
16479
16484
|
}
|
|
16480
|
-
) : /* @__PURE__ */ x(ps, { isOpen:
|
|
16485
|
+
) : /* @__PURE__ */ x(ps, { isOpen: k, isMobile: y })
|
|
16481
16486
|
}
|
|
16482
16487
|
),
|
|
16483
16488
|
!c && /* @__PURE__ */ x(
|
|
@@ -16493,18 +16498,18 @@ function mw({
|
|
|
16493
16498
|
width: 48,
|
|
16494
16499
|
height: 48,
|
|
16495
16500
|
border: "none",
|
|
16496
|
-
zIndex:
|
|
16501
|
+
zIndex: y ? 2147482999 : 2147483e3
|
|
16497
16502
|
},
|
|
16498
16503
|
children: /* @__PURE__ */ x(
|
|
16499
16504
|
Sl,
|
|
16500
16505
|
{
|
|
16501
|
-
isOpen:
|
|
16502
|
-
toggleBubble: () =>
|
|
16506
|
+
isOpen: k,
|
|
16507
|
+
toggleBubble: () => A((T) => !T)
|
|
16503
16508
|
}
|
|
16504
16509
|
)
|
|
16505
16510
|
}
|
|
16506
16511
|
),
|
|
16507
|
-
|
|
16512
|
+
E?.displayWelcomeMessages ? /* @__PURE__ */ x(
|
|
16508
16513
|
jn,
|
|
16509
16514
|
{
|
|
16510
16515
|
className: "eloquentai-chat-proactive-message",
|
|
@@ -16514,16 +16519,16 @@ function mw({
|
|
|
16514
16519
|
bottom: 30,
|
|
16515
16520
|
right: 17
|
|
16516
16521
|
},
|
|
16517
|
-
children: /* @__PURE__ */ x(
|
|
16522
|
+
children: /* @__PURE__ */ x(Uo, { ...E?.theme ?? {}, children: !u && w && !l && /* @__PURE__ */ x(
|
|
16518
16523
|
Om,
|
|
16519
16524
|
{
|
|
16520
|
-
message:
|
|
16521
|
-
isVisible:
|
|
16522
|
-
onDismiss:
|
|
16525
|
+
message: w.text,
|
|
16526
|
+
isVisible: w.isVisible,
|
|
16527
|
+
onDismiss: R,
|
|
16523
16528
|
onMessageClick: () => {
|
|
16524
|
-
|
|
16529
|
+
A(!0), R();
|
|
16525
16530
|
},
|
|
16526
|
-
autoHideDelay:
|
|
16531
|
+
autoHideDelay: w.autoHideDelay
|
|
16527
16532
|
}
|
|
16528
16533
|
) })
|
|
16529
16534
|
}
|
|
@@ -16531,7 +16536,7 @@ function mw({
|
|
|
16531
16536
|
]
|
|
16532
16537
|
}
|
|
16533
16538
|
);
|
|
16534
|
-
return /* @__PURE__ */ x(Qe, { children: f ?
|
|
16539
|
+
return /* @__PURE__ */ x(Qe, { children: f ? I() : v ? /* @__PURE__ */ x(Lm, { container: v, children: I() }) : null });
|
|
16535
16540
|
}
|
|
16536
16541
|
function gw(e) {
|
|
16537
16542
|
return /* @__PURE__ */ x(hw, { children: /* @__PURE__ */ x(dw, { children: /* @__PURE__ */ x(mw, { ...e }) }) });
|
|
@@ -16548,4 +16553,4 @@ export {
|
|
|
16548
16553
|
ra as g,
|
|
16549
16554
|
Iw as r
|
|
16550
16555
|
};
|
|
16551
|
-
//# sourceMappingURL=index-
|
|
16556
|
+
//# sourceMappingURL=index-LT_qtZ6J.js.map
|