@uva-glass/component-library 3.2.0 → 3.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{Lexical.prod-Bu-Iw9VX.js → Lexical.prod-CniF7zEE.js} +670 -666
- package/dist/Lexical.prod-CniF7zEE.js.map +1 -0
- package/dist/{LexicalClipboard.prod-C5dHfEke.js → LexicalClipboard.prod-BXVNkwwS.js} +42 -42
- package/dist/{LexicalClipboard.prod-C5dHfEke.js.map → LexicalClipboard.prod-BXVNkwwS.js.map} +1 -1
- package/dist/{LexicalLink.prod-DdERpPPj.js → LexicalLink.prod-Du8ZoNsh.js} +3 -3
- package/dist/{LexicalLink.prod-DdERpPPj.js.map → LexicalLink.prod-Du8ZoNsh.js.map} +1 -1
- package/dist/{LexicalList.prod-CzJqqstH.js → LexicalList.prod-BUcoZhe4.js} +35 -35
- package/dist/{LexicalList.prod-CzJqqstH.js.map → LexicalList.prod-BUcoZhe4.js.map} +1 -1
- package/dist/{LexicalSelection.prod-CkM-3E0b.js → LexicalSelection.prod-BfAlhGGm.js} +25 -25
- package/dist/{LexicalSelection.prod-CkM-3E0b.js.map → LexicalSelection.prod-BfAlhGGm.js.map} +1 -1
- package/dist/{LexicalTable.prod-BsmIydKv.js → LexicalTable.prod-CYafu_j9.js} +458 -453
- package/dist/LexicalTable.prod-CYafu_j9.js.map +1 -0
- package/dist/{LexicalUtils.prod-BVZbsLIa.js → LexicalUtils.prod-DVr8VsHc.js} +36 -36
- package/dist/{LexicalUtils.prod-BVZbsLIa.js.map → LexicalUtils.prod-DVr8VsHc.js.map} +1 -1
- package/dist/{TablePlugin-DKzssVbg.js → TablePlugin-MjKuocl4.js} +53 -53
- package/dist/{TablePlugin-DKzssVbg.js.map → TablePlugin-MjKuocl4.js.map} +1 -1
- package/dist/components/Accordion/Accordion.test.js +2 -2
- package/dist/components/AccordionCard/AccordionCard.test.js +2 -2
- package/dist/components/ActionList/ActionList.test.js +2 -2
- package/dist/components/AppStatusBar/AppStatusBar.test.js +1 -1
- package/dist/components/Attention/Attention.test.js +1 -1
- package/dist/components/Backdrop/Backdrop.test.js +1 -1
- package/dist/components/Buttons/Button.stories.js +1 -1
- package/dist/components/Buttons/Button.test.js +1 -1
- package/dist/components/Buttons/LinkButton.stories.js +1 -1
- package/dist/components/Buttons/LinkButton.test.js +1 -1
- package/dist/components/Buttons/MenuButton.stories.js +1 -1
- package/dist/components/Buttons/MenuButton.test.js +1 -1
- package/dist/components/Card/Card.test.js +1 -1
- package/dist/components/Checkbox/Checkbox.stories.js +1 -1
- package/dist/components/Checkbox/Checkbox.test.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.stories.js +1 -1
- package/dist/components/CheckboxButton/CheckboxButton.test.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.stories.js +1 -1
- package/dist/components/CheckboxButtonBar/CheckboxButtonBar.test.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.js +1 -1
- package/dist/components/CheckboxTree/CheckboxTree.stories.js +1 -1
- package/dist/components/Chip/Chip.stories.js +1 -1
- package/dist/components/Drawer/Drawer.stories.js +1 -1
- package/dist/components/FeedbackBar/FeedbackBar.test.js +1 -1
- package/dist/components/FormInput/FormInput.js +1 -1
- package/dist/components/FormInput/FormInput.stories.js +1 -1
- package/dist/components/IconButton/IconButton.stories.js +1 -1
- package/dist/components/InputField/InputField.stories.js +2 -2
- package/dist/components/Label/Label.test.js +1 -1
- package/dist/components/ModalDialog/ModalDialog.stories.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.js +1 -1
- package/dist/components/MultiSelect/MultiSelect.stories.js +2 -2
- package/dist/components/MultiSelect/components/MultiSelectHeader.js +1 -1
- package/dist/components/MultiSelect/index.js +1 -1
- package/dist/components/OverlayCloseButton/OverlayCloseButton.stories.js +1 -1
- package/dist/components/OverlayStepBar/OverlayStepBar.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.js +1 -1
- package/dist/components/PeriodSelector/PeriodSelector.stories.js +1 -1
- package/dist/components/ProgrammeCard/ProgrammeCard.stories.js +2 -2
- package/dist/components/RteEditor/EditorHeader/EditorHeader.js +1 -1
- package/dist/components/RteEditor/Plugins/BlockFormatPlugin/BlockFormatPlugin.js +11 -11
- package/dist/components/RteEditor/Plugins/HistoryPlugin/HistoryPlugin.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/AddLinkForm/AddLinkFrom.js +2 -2
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkContextMenu/LinkContextMenu.js +1 -1
- package/dist/components/RteEditor/Plugins/LinkPlugin/LinkPlugin.js +29 -29
- package/dist/components/RteEditor/Plugins/LinkPlugin/helpers.js +1 -1
- package/dist/components/RteEditor/Plugins/ListPlugin/ListPlugin.js +26 -26
- package/dist/components/RteEditor/Plugins/PasteHandlerPlugin/PasteHandlerPlugin.js +5 -5
- package/dist/components/RteEditor/Plugins/TablePlugin/AddTableFrom.js +1 -1
- package/dist/components/RteEditor/Plugins/TablePlugin/TablePlugin.js +3 -3
- package/dist/components/RteEditor/Plugins/TablePlugin/helpers.js +14 -14
- package/dist/components/RteEditor/Plugins/TablePlugin/index.js +1 -1
- package/dist/components/RteEditor/Plugins/ToolbarPlugin/ToolbarPlugin.js +22 -22
- package/dist/components/RteEditor/Plugins/index.js +1 -1
- package/dist/components/RteEditor/RteEditor.js +116 -116
- package/dist/components/RteEditor/RteEditor.js.map +1 -1
- package/dist/components/RteEditor/helpers.js +4 -4
- package/dist/components/SelectListbox/SelectListBox.stories.js +1 -1
- package/dist/components/Sortable/Sortable.stories.js +1 -1
- package/dist/components/StatusBadge/StatusBadge.test.js +1 -1
- package/dist/components/Timeline/Timeline.test.js +2 -2
- package/dist/components/ToggleSwitch/ToggleSwitch.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.stories.js +1 -1
- package/dist/components/VarIndicator/VarIndicator.test.js +2 -2
- package/dist/components/index.js +1 -1
- package/dist/{helpers-D13uK95u.js → helpers-ChM6xtQG.js} +63 -63
- package/dist/{helpers-D13uK95u.js.map → helpers-ChM6xtQG.js.map} +1 -1
- package/dist/{index-DMVXQIB9.js → index-COab4Oy9.js} +2 -2
- package/dist/{index-DMVXQIB9.js.map → index-COab4Oy9.js.map} +1 -1
- package/dist/{index-C7jFUWYs.js → index-DXR-TB1d.js} +2155 -2135
- package/dist/index-DXR-TB1d.js.map +1 -0
- package/dist/index.js +1 -1
- package/dist/{react.esm-BOUd0cvD.js → react.esm-B8teOYlo.js} +2 -2
- package/dist/{react.esm-BOUd0cvD.js.map → react.esm-B8teOYlo.js.map} +1 -1
- package/dist/storybook__react.d.js +641 -637
- package/dist/storybook__react.d.js.map +1 -1
- package/dist/{test-utils-uaSbIYda.js → test-utils-Brqoydie.js} +279 -259
- package/dist/{test-utils-uaSbIYda.js.map → test-utils-Brqoydie.js.map} +1 -1
- package/package.json +18 -18
- package/dist/Lexical.prod-Bu-Iw9VX.js.map +0 -1
- package/dist/LexicalTable.prod-BsmIydKv.js.map +0 -1
- package/dist/index-C7jFUWYs.js.map +0 -1
|
@@ -1,27 +1,26 @@
|
|
|
1
1
|
var Ms = (e, t) => () => (t || e((t = { exports: {} }).exports, t), t.exports);
|
|
2
2
|
import * as jt from "react";
|
|
3
|
-
import at, { StrictMode as Vs, Fragment as
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
var
|
|
7
|
-
|
|
8
|
-
return e && (t = (0, e[qn(e)[0]])(e = 0)), t;
|
|
3
|
+
import at, { StrictMode as Vs, Fragment as Mn, Component as Js, createElement as qs, isValidElement as Vn } from "react";
|
|
4
|
+
import { s as eu, Z as tu, M as Us, V as Gs, a as Ws, H as zs, b as Dr } from "./index-DH9Vbk37.js";
|
|
5
|
+
var Hc = Ms((tp, er) => {
|
|
6
|
+
var Ys = Object.create, Or = Object.defineProperty, Xs = Object.getOwnPropertyDescriptor, Jn = Object.getOwnPropertyNames, Ks = Object.getPrototypeOf, Hs = Object.prototype.hasOwnProperty, Qs = (e, t) => function() {
|
|
7
|
+
return e && (t = (0, e[Jn(e)[0]])(e = 0)), t;
|
|
9
8
|
}, K = (e, t) => function() {
|
|
10
|
-
return t || (0, e[
|
|
11
|
-
},
|
|
12
|
-
for (var r in t)
|
|
13
|
-
},
|
|
14
|
-
if (t && typeof t == "object" || typeof t == "function") for (let i of
|
|
9
|
+
return t || (0, e[Jn(e)[0]])((t = { exports: {} }).exports, t), t.exports;
|
|
10
|
+
}, qn = (e, t) => {
|
|
11
|
+
for (var r in t) Or(e, r, { get: t[r], enumerable: !0 });
|
|
12
|
+
}, ru = (e, t, r, n) => {
|
|
13
|
+
if (t && typeof t == "object" || typeof t == "function") for (let i of Jn(t)) !Hs.call(e, i) && i !== r && Or(e, i, { get: () => t[i], enumerable: !(n = Xs(t, i)) || n.enumerable });
|
|
15
14
|
return e;
|
|
16
|
-
}, wt = (e, t, r) => (r = e != null ?
|
|
15
|
+
}, wt = (e, t, r) => (r = e != null ? Ys(Ks(e)) : {}, ru(!e || !e.__esModule ? Or(r, "default", { value: e, enumerable: !0 }) : r, e)), yi = (e) => ru(Or({}, "__esModule", { value: !0 }), e), Lr = K({ "../../node_modules/semver/internal/constants.js"(e, t) {
|
|
17
16
|
var r = "2.0.0", n = Number.MAX_SAFE_INTEGER || 9007199254740991, i = 16, s = 250, o = ["major", "premajor", "minor", "preminor", "patch", "prepatch", "prerelease"];
|
|
18
17
|
t.exports = { MAX_LENGTH: 256, MAX_SAFE_COMPONENT_LENGTH: i, MAX_SAFE_BUILD_LENGTH: s, MAX_SAFE_INTEGER: n, RELEASE_TYPES: o, SEMVER_SPEC_VERSION: r, FLAG_INCLUDE_PRERELEASE: 1, FLAG_LOOSE: 2 };
|
|
19
|
-
} }),
|
|
18
|
+
} }), jr = K({ "../../node_modules/semver/internal/debug.js"(e, t) {
|
|
20
19
|
var r = typeof process == "object" && process.env && process.env.NODE_DEBUG && /\bsemver\b/i.test(process.env.NODE_DEBUG) ? (...n) => console.error("SEMVER", ...n) : () => {
|
|
21
20
|
};
|
|
22
21
|
t.exports = r;
|
|
23
22
|
} }), sr = K({ "../../node_modules/semver/internal/re.js"(e, t) {
|
|
24
|
-
var { MAX_SAFE_COMPONENT_LENGTH: r, MAX_SAFE_BUILD_LENGTH: n, MAX_LENGTH: i } =
|
|
23
|
+
var { MAX_SAFE_COMPONENT_LENGTH: r, MAX_SAFE_BUILD_LENGTH: n, MAX_LENGTH: i } = Lr(), s = jr();
|
|
25
24
|
e = t.exports = {};
|
|
26
25
|
var o = e.re = [], c = e.safeRe = [], l = e.src = [], f = e.safeSrc = [], p = e.t = {}, v = 0, E = "[a-zA-Z0-9-]", D = [["\\s", 1], ["\\d", i], [E, n]], A = (B) => {
|
|
27
26
|
for (let [b, T] of D) B = B.split(`${b}*`).join(`${b}{0,${T}}`).split(`${b}+`).join(`${b}{1,${T}}`);
|
|
@@ -31,17 +30,17 @@ var Zc = Ms((ip, er) => {
|
|
|
31
30
|
s(B, w, b), p[B] = w, l[w] = b, f[w] = J, o[w] = new RegExp(b, T ? "g" : void 0), c[w] = new RegExp(J, T ? "g" : void 0);
|
|
32
31
|
};
|
|
33
32
|
g("NUMERICIDENTIFIER", "0|[1-9]\\d*"), g("NUMERICIDENTIFIERLOOSE", "\\d+"), g("NONNUMERICIDENTIFIER", `\\d*[a-zA-Z-]${E}*`), g("MAINVERSION", `(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})\\.(${l[p.NUMERICIDENTIFIER]})`), g("MAINVERSIONLOOSE", `(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})\\.(${l[p.NUMERICIDENTIFIERLOOSE]})`), g("PRERELEASEIDENTIFIER", `(?:${l[p.NUMERICIDENTIFIER]}|${l[p.NONNUMERICIDENTIFIER]})`), g("PRERELEASEIDENTIFIERLOOSE", `(?:${l[p.NUMERICIDENTIFIERLOOSE]}|${l[p.NONNUMERICIDENTIFIER]})`), g("PRERELEASE", `(?:-(${l[p.PRERELEASEIDENTIFIER]}(?:\\.${l[p.PRERELEASEIDENTIFIER]})*))`), g("PRERELEASELOOSE", `(?:-?(${l[p.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[p.PRERELEASEIDENTIFIERLOOSE]})*))`), g("BUILDIDENTIFIER", `${E}+`), g("BUILD", `(?:\\+(${l[p.BUILDIDENTIFIER]}(?:\\.${l[p.BUILDIDENTIFIER]})*))`), g("FULLPLAIN", `v?${l[p.MAINVERSION]}${l[p.PRERELEASE]}?${l[p.BUILD]}?`), g("FULL", `^${l[p.FULLPLAIN]}$`), g("LOOSEPLAIN", `[v=\\s]*${l[p.MAINVERSIONLOOSE]}${l[p.PRERELEASELOOSE]}?${l[p.BUILD]}?`), g("LOOSE", `^${l[p.LOOSEPLAIN]}$`), g("GTLT", "((?:<|>)?=?)"), g("XRANGEIDENTIFIERLOOSE", `${l[p.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`), g("XRANGEIDENTIFIER", `${l[p.NUMERICIDENTIFIER]}|x|X|\\*`), g("XRANGEPLAIN", `[v=\\s]*(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:\\.(${l[p.XRANGEIDENTIFIER]})(?:${l[p.PRERELEASE]})?${l[p.BUILD]}?)?)?`), g("XRANGEPLAINLOOSE", `[v=\\s]*(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[p.XRANGEIDENTIFIERLOOSE]})(?:${l[p.PRERELEASELOOSE]})?${l[p.BUILD]}?)?)?`), g("XRANGE", `^${l[p.GTLT]}\\s*${l[p.XRANGEPLAIN]}$`), g("XRANGELOOSE", `^${l[p.GTLT]}\\s*${l[p.XRANGEPLAINLOOSE]}$`), g("COERCEPLAIN", `(^|[^\\d])(\\d{1,${r}})(?:\\.(\\d{1,${r}}))?(?:\\.(\\d{1,${r}}))?`), g("COERCE", `${l[p.COERCEPLAIN]}(?:$|[^\\d])`), g("COERCEFULL", l[p.COERCEPLAIN] + `(?:${l[p.PRERELEASE]})?(?:${l[p.BUILD]})?(?:$|[^\\d])`), g("COERCERTL", l[p.COERCE], !0), g("COERCERTLFULL", l[p.COERCEFULL], !0), g("LONETILDE", "(?:~>?)"), g("TILDETRIM", `(\\s*)${l[p.LONETILDE]}\\s+`, !0), e.tildeTrimReplace = "$1~", g("TILDE", `^${l[p.LONETILDE]}${l[p.XRANGEPLAIN]}$`), g("TILDELOOSE", `^${l[p.LONETILDE]}${l[p.XRANGEPLAINLOOSE]}$`), g("LONECARET", "(?:\\^)"), g("CARETTRIM", `(\\s*)${l[p.LONECARET]}\\s+`, !0), e.caretTrimReplace = "$1^", g("CARET", `^${l[p.LONECARET]}${l[p.XRANGEPLAIN]}$`), g("CARETLOOSE", `^${l[p.LONECARET]}${l[p.XRANGEPLAINLOOSE]}$`), g("COMPARATORLOOSE", `^${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]})$|^$`), g("COMPARATOR", `^${l[p.GTLT]}\\s*(${l[p.FULLPLAIN]})$|^$`), g("COMPARATORTRIM", `(\\s*)${l[p.GTLT]}\\s*(${l[p.LOOSEPLAIN]}|${l[p.XRANGEPLAIN]})`, !0), e.comparatorTrimReplace = "$1$2$3", g("HYPHENRANGE", `^\\s*(${l[p.XRANGEPLAIN]})\\s+-\\s+(${l[p.XRANGEPLAIN]})\\s*$`), g("HYPHENRANGELOOSE", `^\\s*(${l[p.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[p.XRANGEPLAINLOOSE]})\\s*$`), g("STAR", "(<|>)?=?\\s*\\*"), g("GTE0", "^\\s*>=\\s*0\\.0\\.0\\s*$"), g("GTE0PRE", "^\\s*>=\\s*0\\.0\\.0-0\\s*$");
|
|
34
|
-
} }),
|
|
33
|
+
} }), Un = K({ "../../node_modules/semver/internal/parse-options.js"(e, t) {
|
|
35
34
|
var r = Object.freeze({ loose: !0 }), n = Object.freeze({}), i = (s) => s ? typeof s != "object" ? r : s : n;
|
|
36
35
|
t.exports = i;
|
|
37
|
-
} }),
|
|
36
|
+
} }), nu = K({ "../../node_modules/semver/internal/identifiers.js"(e, t) {
|
|
38
37
|
var r = /^[0-9]+$/, n = (s, o) => {
|
|
39
38
|
let c = r.test(s), l = r.test(o);
|
|
40
39
|
return c && l && (s = +s, o = +o), s === o ? 0 : c && !l ? -1 : l && !c ? 1 : s < o ? -1 : 1;
|
|
41
40
|
}, i = (s, o) => n(o, s);
|
|
42
41
|
t.exports = { compareIdentifiers: n, rcompareIdentifiers: i };
|
|
43
42
|
} }), qe = K({ "../../node_modules/semver/classes/semver.js"(e, t) {
|
|
44
|
-
var r =
|
|
43
|
+
var r = jr(), { MAX_LENGTH: n, MAX_SAFE_INTEGER: i } = Lr(), { safeRe: s, safeSrc: o, t: c } = sr(), l = Un(), { compareIdentifiers: f } = nu(), p = class ut {
|
|
45
44
|
constructor(E, D) {
|
|
46
45
|
if (D = l(D), E instanceof ut) {
|
|
47
46
|
if (E.loose === !!D.loose && E.includePrerelease === !!D.includePrerelease) return E;
|
|
@@ -173,19 +172,19 @@ var Zc = Ms((ip, er) => {
|
|
|
173
172
|
}
|
|
174
173
|
};
|
|
175
174
|
t.exports = n;
|
|
176
|
-
} }),
|
|
175
|
+
} }), Zs = K({ "../../node_modules/semver/functions/valid.js"(e, t) {
|
|
177
176
|
var r = Jt(), n = (i, s) => {
|
|
178
177
|
let o = r(i, s);
|
|
179
178
|
return o ? o.version : null;
|
|
180
179
|
};
|
|
181
180
|
t.exports = n;
|
|
182
|
-
} }),
|
|
181
|
+
} }), ea = K({ "../../node_modules/semver/functions/clean.js"(e, t) {
|
|
183
182
|
var r = Jt(), n = (i, s) => {
|
|
184
183
|
let o = r(i.trim().replace(/^[=v]+/, ""), s);
|
|
185
184
|
return o ? o.version : null;
|
|
186
185
|
};
|
|
187
186
|
t.exports = n;
|
|
188
|
-
} }),
|
|
187
|
+
} }), ta = K({ "../../node_modules/semver/functions/inc.js"(e, t) {
|
|
189
188
|
var r = qe(), n = (i, s, o, c, l) => {
|
|
190
189
|
typeof o == "string" && (l = c, c = o, o = void 0);
|
|
191
190
|
try {
|
|
@@ -195,7 +194,7 @@ var Zc = Ms((ip, er) => {
|
|
|
195
194
|
}
|
|
196
195
|
};
|
|
197
196
|
t.exports = n;
|
|
198
|
-
} }),
|
|
197
|
+
} }), ra = K({ "../../node_modules/semver/functions/diff.js"(e, t) {
|
|
199
198
|
var r = Jt(), n = (i, s) => {
|
|
200
199
|
let o = r(i, null, !0), c = r(s, null, !0), l = o.compare(c);
|
|
201
200
|
if (l === 0) return null;
|
|
@@ -208,16 +207,16 @@ var Zc = Ms((ip, er) => {
|
|
|
208
207
|
return o.major !== c.major ? D + "major" : o.minor !== c.minor ? D + "minor" : o.patch !== c.patch ? D + "patch" : "prerelease";
|
|
209
208
|
};
|
|
210
209
|
t.exports = n;
|
|
211
|
-
} }),
|
|
210
|
+
} }), na = K({ "../../node_modules/semver/functions/major.js"(e, t) {
|
|
212
211
|
var r = qe(), n = (i, s) => new r(i, s).major;
|
|
213
212
|
t.exports = n;
|
|
214
|
-
} }),
|
|
213
|
+
} }), ia = K({ "../../node_modules/semver/functions/minor.js"(e, t) {
|
|
215
214
|
var r = qe(), n = (i, s) => new r(i, s).minor;
|
|
216
215
|
t.exports = n;
|
|
217
|
-
} }),
|
|
216
|
+
} }), ua = K({ "../../node_modules/semver/functions/patch.js"(e, t) {
|
|
218
217
|
var r = qe(), n = (i, s) => new r(i, s).patch;
|
|
219
218
|
t.exports = n;
|
|
220
|
-
} }),
|
|
219
|
+
} }), sa = K({ "../../node_modules/semver/functions/prerelease.js"(e, t) {
|
|
221
220
|
var r = Jt(), n = (i, s) => {
|
|
222
221
|
let o = r(i, s);
|
|
223
222
|
return o && o.prerelease.length ? o.prerelease : null;
|
|
@@ -226,44 +225,44 @@ var Zc = Ms((ip, er) => {
|
|
|
226
225
|
} }), Ze = K({ "../../node_modules/semver/functions/compare.js"(e, t) {
|
|
227
226
|
var r = qe(), n = (i, s, o) => new r(i, o).compare(new r(s, o));
|
|
228
227
|
t.exports = n;
|
|
229
|
-
} }),
|
|
228
|
+
} }), aa = K({ "../../node_modules/semver/functions/rcompare.js"(e, t) {
|
|
230
229
|
var r = Ze(), n = (i, s, o) => r(s, i, o);
|
|
231
230
|
t.exports = n;
|
|
232
|
-
} }),
|
|
231
|
+
} }), oa = K({ "../../node_modules/semver/functions/compare-loose.js"(e, t) {
|
|
233
232
|
var r = Ze(), n = (i, s) => r(i, s, !0);
|
|
234
233
|
t.exports = n;
|
|
235
|
-
} }),
|
|
234
|
+
} }), Gn = K({ "../../node_modules/semver/functions/compare-build.js"(e, t) {
|
|
236
235
|
var r = qe(), n = (i, s, o) => {
|
|
237
236
|
let c = new r(i, o), l = new r(s, o);
|
|
238
237
|
return c.compare(l) || c.compareBuild(l);
|
|
239
238
|
};
|
|
240
239
|
t.exports = n;
|
|
241
|
-
} }),
|
|
242
|
-
var r =
|
|
240
|
+
} }), la = K({ "../../node_modules/semver/functions/sort.js"(e, t) {
|
|
241
|
+
var r = Gn(), n = (i, s) => i.sort((o, c) => r(o, c, s));
|
|
243
242
|
t.exports = n;
|
|
244
|
-
} }),
|
|
245
|
-
var r =
|
|
243
|
+
} }), ca = K({ "../../node_modules/semver/functions/rsort.js"(e, t) {
|
|
244
|
+
var r = Gn(), n = (i, s) => i.sort((o, c) => r(c, o, s));
|
|
246
245
|
t.exports = n;
|
|
247
|
-
} }),
|
|
246
|
+
} }), $r = K({ "../../node_modules/semver/functions/gt.js"(e, t) {
|
|
248
247
|
var r = Ze(), n = (i, s, o) => r(i, s, o) > 0;
|
|
249
248
|
t.exports = n;
|
|
250
|
-
} }),
|
|
249
|
+
} }), Wn = K({ "../../node_modules/semver/functions/lt.js"(e, t) {
|
|
251
250
|
var r = Ze(), n = (i, s, o) => r(i, s, o) < 0;
|
|
252
251
|
t.exports = n;
|
|
253
|
-
} }),
|
|
252
|
+
} }), iu = K({ "../../node_modules/semver/functions/eq.js"(e, t) {
|
|
254
253
|
var r = Ze(), n = (i, s, o) => r(i, s, o) === 0;
|
|
255
254
|
t.exports = n;
|
|
256
|
-
} }),
|
|
255
|
+
} }), uu = K({ "../../node_modules/semver/functions/neq.js"(e, t) {
|
|
257
256
|
var r = Ze(), n = (i, s, o) => r(i, s, o) !== 0;
|
|
258
257
|
t.exports = n;
|
|
259
|
-
} }),
|
|
258
|
+
} }), zn = K({ "../../node_modules/semver/functions/gte.js"(e, t) {
|
|
260
259
|
var r = Ze(), n = (i, s, o) => r(i, s, o) >= 0;
|
|
261
260
|
t.exports = n;
|
|
262
|
-
} }),
|
|
261
|
+
} }), Yn = K({ "../../node_modules/semver/functions/lte.js"(e, t) {
|
|
263
262
|
var r = Ze(), n = (i, s, o) => r(i, s, o) <= 0;
|
|
264
263
|
t.exports = n;
|
|
265
|
-
} }),
|
|
266
|
-
var r =
|
|
264
|
+
} }), su = K({ "../../node_modules/semver/functions/cmp.js"(e, t) {
|
|
265
|
+
var r = iu(), n = uu(), i = $r(), s = zn(), o = Wn(), c = Yn(), l = (f, p, v, E) => {
|
|
267
266
|
switch (p) {
|
|
268
267
|
case "===":
|
|
269
268
|
return typeof f == "object" && (f = f.version), typeof v == "object" && (v = v.version), f === v;
|
|
@@ -288,7 +287,7 @@ var Zc = Ms((ip, er) => {
|
|
|
288
287
|
}
|
|
289
288
|
};
|
|
290
289
|
t.exports = l;
|
|
291
|
-
} }),
|
|
290
|
+
} }), pa = K({ "../../node_modules/semver/functions/coerce.js"(e, t) {
|
|
292
291
|
var r = qe(), n = Jt(), { safeRe: i, t: s } = sr(), o = (c, l) => {
|
|
293
292
|
if (c instanceof r) return c;
|
|
294
293
|
if (typeof c == "number" && (c = String(c)), typeof c != "string") return null;
|
|
@@ -305,7 +304,7 @@ var Zc = Ms((ip, er) => {
|
|
|
305
304
|
return n(`${p}.${v}.${E}${D}${A}`, l);
|
|
306
305
|
};
|
|
307
306
|
t.exports = o;
|
|
308
|
-
} }),
|
|
307
|
+
} }), ha = K({ "../../node_modules/semver/internal/lrucache.js"(e, t) {
|
|
309
308
|
var r = class {
|
|
310
309
|
constructor() {
|
|
311
310
|
this.max = 1e3, this.map = /* @__PURE__ */ new Map();
|
|
@@ -396,7 +395,7 @@ var Zc = Ms((ip, er) => {
|
|
|
396
395
|
}
|
|
397
396
|
};
|
|
398
397
|
t.exports = n;
|
|
399
|
-
var i =
|
|
398
|
+
var i = ha(), s = new i(), o = Un(), c = Mr(), l = jr(), f = qe(), { safeRe: p, t: v, comparatorTrimReplace: E, tildeTrimReplace: D, caretTrimReplace: A } = sr(), { FLAG_INCLUDE_PRERELEASE: g, FLAG_LOOSE: B } = Lr(), b = (O) => O.value === "<0.0.0-0", T = (O) => O.value === "", J = (O, V) => {
|
|
400
399
|
let G = !0, Q = O.slice(), se = Q.pop();
|
|
401
400
|
for (; G && Q.length; ) G = Q.every((re) => se.intersects(re, V)), se = Q.pop();
|
|
402
401
|
return G;
|
|
@@ -434,13 +433,13 @@ var Zc = Ms((ip, er) => {
|
|
|
434
433
|
}
|
|
435
434
|
return !0;
|
|
436
435
|
};
|
|
437
|
-
} }),
|
|
438
|
-
var r = Symbol("SemVer ANY"), n = class
|
|
436
|
+
} }), Mr = K({ "../../node_modules/semver/classes/comparator.js"(e, t) {
|
|
437
|
+
var r = Symbol("SemVer ANY"), n = class Dn {
|
|
439
438
|
static get ANY() {
|
|
440
439
|
return r;
|
|
441
440
|
}
|
|
442
441
|
constructor(E, D) {
|
|
443
|
-
if (D = i(D), E instanceof
|
|
442
|
+
if (D = i(D), E instanceof Dn) {
|
|
444
443
|
if (E.loose === !!D.loose) return E;
|
|
445
444
|
E = E.value;
|
|
446
445
|
}
|
|
@@ -464,13 +463,13 @@ var Zc = Ms((ip, er) => {
|
|
|
464
463
|
return c(E, this.operator, this.semver, this.options);
|
|
465
464
|
}
|
|
466
465
|
intersects(E, D) {
|
|
467
|
-
if (!(E instanceof
|
|
466
|
+
if (!(E instanceof Dn)) throw new TypeError("a Comparator is required");
|
|
468
467
|
return this.operator === "" ? this.value === "" ? !0 : new p(E.value, D).test(this.value) : E.operator === "" ? E.value === "" ? !0 : new p(this.value, D).test(E.semver) : (D = i(D), D.includePrerelease && (this.value === "<0.0.0-0" || E.value === "<0.0.0-0") || !D.includePrerelease && (this.value.startsWith("<0.0.0") || E.value.startsWith("<0.0.0")) ? !1 : !!(this.operator.startsWith(">") && E.operator.startsWith(">") || this.operator.startsWith("<") && E.operator.startsWith("<") || this.semver.version === E.semver.version && this.operator.includes("=") && E.operator.includes("=") || c(this.semver, "<", E.semver, D) && this.operator.startsWith(">") && E.operator.startsWith("<") || c(this.semver, ">", E.semver, D) && this.operator.startsWith("<") && E.operator.startsWith(">")));
|
|
469
468
|
}
|
|
470
469
|
};
|
|
471
470
|
t.exports = n;
|
|
472
|
-
var i =
|
|
473
|
-
} }),
|
|
471
|
+
var i = Un(), { safeRe: s, t: o } = sr(), c = su(), l = jr(), f = qe(), p = et();
|
|
472
|
+
} }), Vr = K({ "../../node_modules/semver/functions/satisfies.js"(e, t) {
|
|
474
473
|
var r = et(), n = (i, s, o) => {
|
|
475
474
|
try {
|
|
476
475
|
s = new r(s, o);
|
|
@@ -480,10 +479,10 @@ var Zc = Ms((ip, er) => {
|
|
|
480
479
|
return s.test(i);
|
|
481
480
|
};
|
|
482
481
|
t.exports = n;
|
|
483
|
-
} }),
|
|
482
|
+
} }), fa = K({ "../../node_modules/semver/ranges/to-comparators.js"(e, t) {
|
|
484
483
|
var r = et(), n = (i, s) => new r(i, s).set.map((o) => o.map((c) => c.value).join(" ").trim().split(" "));
|
|
485
484
|
t.exports = n;
|
|
486
|
-
} }),
|
|
485
|
+
} }), da = K({ "../../node_modules/semver/ranges/max-satisfying.js"(e, t) {
|
|
487
486
|
var r = qe(), n = et(), i = (s, o, c) => {
|
|
488
487
|
let l = null, f = null, p = null;
|
|
489
488
|
try {
|
|
@@ -496,7 +495,7 @@ var Zc = Ms((ip, er) => {
|
|
|
496
495
|
}), l;
|
|
497
496
|
};
|
|
498
497
|
t.exports = i;
|
|
499
|
-
} }),
|
|
498
|
+
} }), ma = K({ "../../node_modules/semver/ranges/min-satisfying.js"(e, t) {
|
|
500
499
|
var r = qe(), n = et(), i = (s, o, c) => {
|
|
501
500
|
let l = null, f = null, p = null;
|
|
502
501
|
try {
|
|
@@ -509,8 +508,8 @@ var Zc = Ms((ip, er) => {
|
|
|
509
508
|
}), l;
|
|
510
509
|
};
|
|
511
510
|
t.exports = i;
|
|
512
|
-
} }),
|
|
513
|
-
var r = qe(), n = et(), i =
|
|
511
|
+
} }), ya = K({ "../../node_modules/semver/ranges/min-version.js"(e, t) {
|
|
512
|
+
var r = qe(), n = et(), i = $r(), s = (o, c) => {
|
|
514
513
|
o = new n(o, c);
|
|
515
514
|
let l = new r("0.0.0");
|
|
516
515
|
if (o.test(l) || (l = new r("0.0.0-0"), o.test(l))) return l;
|
|
@@ -537,7 +536,7 @@ var Zc = Ms((ip, er) => {
|
|
|
537
536
|
return l && o.test(l) ? l : null;
|
|
538
537
|
};
|
|
539
538
|
t.exports = s;
|
|
540
|
-
} }),
|
|
539
|
+
} }), Ea = K({ "../../node_modules/semver/ranges/valid.js"(e, t) {
|
|
541
540
|
var r = et(), n = (i, s) => {
|
|
542
541
|
try {
|
|
543
542
|
return new r(i, s).range || "*";
|
|
@@ -546,8 +545,8 @@ var Zc = Ms((ip, er) => {
|
|
|
546
545
|
}
|
|
547
546
|
};
|
|
548
547
|
t.exports = n;
|
|
549
|
-
} }),
|
|
550
|
-
var r = qe(), n =
|
|
548
|
+
} }), Xn = K({ "../../node_modules/semver/ranges/outside.js"(e, t) {
|
|
549
|
+
var r = qe(), n = Mr(), { ANY: i } = n, s = et(), o = Vr(), c = $r(), l = Wn(), f = Yn(), p = zn(), v = (E, D, A, g) => {
|
|
551
550
|
E = new r(E, g), D = new s(D, g);
|
|
552
551
|
let B, b, T, J, w;
|
|
553
552
|
switch (A) {
|
|
@@ -570,17 +569,17 @@ var Zc = Ms((ip, er) => {
|
|
|
570
569
|
return !0;
|
|
571
570
|
};
|
|
572
571
|
t.exports = v;
|
|
573
|
-
} }),
|
|
574
|
-
var r =
|
|
572
|
+
} }), Aa = K({ "../../node_modules/semver/ranges/gtr.js"(e, t) {
|
|
573
|
+
var r = Xn(), n = (i, s, o) => r(i, s, ">", o);
|
|
575
574
|
t.exports = n;
|
|
576
|
-
} }),
|
|
577
|
-
var r =
|
|
575
|
+
} }), ga = K({ "../../node_modules/semver/ranges/ltr.js"(e, t) {
|
|
576
|
+
var r = Xn(), n = (i, s, o) => r(i, s, "<", o);
|
|
578
577
|
t.exports = n;
|
|
579
|
-
} }),
|
|
578
|
+
} }), Da = K({ "../../node_modules/semver/ranges/intersects.js"(e, t) {
|
|
580
579
|
var r = et(), n = (i, s, o) => (i = new r(i, o), s = new r(s, o), i.intersects(s, o));
|
|
581
580
|
t.exports = n;
|
|
582
|
-
} }),
|
|
583
|
-
var r =
|
|
581
|
+
} }), Ca = K({ "../../node_modules/semver/ranges/simplify.js"(e, t) {
|
|
582
|
+
var r = Vr(), n = Ze();
|
|
584
583
|
t.exports = (i, s, o) => {
|
|
585
584
|
let c = [], l = null, f = null, p = i.sort((A, g) => n(A, g, o));
|
|
586
585
|
for (let A of p) r(A, s, o) ? (f = A, l || (l = A)) : (f && c.push([l, f]), f = null, l = null);
|
|
@@ -590,8 +589,8 @@ var Zc = Ms((ip, er) => {
|
|
|
590
589
|
let E = v.join(" || "), D = typeof s.raw == "string" ? s.raw : String(s);
|
|
591
590
|
return E.length < D.length ? E : s;
|
|
592
591
|
};
|
|
593
|
-
} }),
|
|
594
|
-
var r = et(), n =
|
|
592
|
+
} }), Fa = K({ "../../node_modules/semver/ranges/subset.js"(e, t) {
|
|
593
|
+
var r = et(), n = Mr(), { ANY: i } = n, s = Vr(), o = Ze(), c = (D, A, g = {}) => {
|
|
595
594
|
if (D === A) return !0;
|
|
596
595
|
D = new r(D, g), A = new r(A, g);
|
|
597
596
|
let B = !1;
|
|
@@ -650,21 +649,21 @@ var Zc = Ms((ip, er) => {
|
|
|
650
649
|
return B < 0 ? D : B > 0 || A.operator === "<" && D.operator === "<=" ? A : D;
|
|
651
650
|
};
|
|
652
651
|
t.exports = c;
|
|
653
|
-
} }),
|
|
654
|
-
var r = sr(), n =
|
|
652
|
+
} }), va = K({ "../../node_modules/semver/index.js"(e, t) {
|
|
653
|
+
var r = sr(), n = Lr(), i = qe(), s = nu(), o = Jt(), c = Zs(), l = ea(), f = ta(), p = ra(), v = na(), E = ia(), D = ua(), A = sa(), g = Ze(), B = aa(), b = oa(), T = Gn(), J = la(), w = ca(), _ = $r(), F = Wn(), I = iu(), N = uu(), j = zn(), M = Yn(), te = su(), $ = pa(), ue = Mr(), he = et(), Fe = Vr(), O = fa(), V = da(), G = ma(), Q = ya(), se = Ea(), re = Xn(), P = Aa(), q = ga(), X = Da(), Z = Ca(), U = Fa();
|
|
655
654
|
t.exports = { parse: o, valid: c, clean: l, inc: f, diff: p, major: v, minor: E, patch: D, prerelease: A, compare: g, rcompare: B, compareLoose: b, compareBuild: T, sort: J, rsort: w, gt: _, lt: F, eq: I, neq: N, gte: j, lte: M, cmp: te, coerce: $, Comparator: ue, Range: he, satisfies: Fe, toComparators: O, maxSatisfying: V, minSatisfying: G, minVersion: Q, validRange: se, outside: re, gtr: P, ltr: q, intersects: X, simplifyRange: Z, subset: U, SemVer: i, re: r.re, src: r.src, tokens: r.t, SEMVER_SPEC_VERSION: n.SEMVER_SPEC_VERSION, RELEASE_TYPES: n.RELEASE_TYPES, compareIdentifiers: s.compareIdentifiers, rcompareIdentifiers: s.rcompareIdentifiers };
|
|
656
|
-
} }),
|
|
657
|
-
|
|
658
|
-
var
|
|
655
|
+
} }), au = {};
|
|
656
|
+
qn(au, { beforeAll: () => Pa, decorators: () => wa, mount: () => Ta, parameters: () => Ba, render: () => xa, renderToCanvas: () => ba });
|
|
657
|
+
var Ei = wt(va()), Ai = { ...jt };
|
|
659
658
|
function St(e) {
|
|
660
659
|
globalThis.IS_REACT_ACT_ENVIRONMENT = e;
|
|
661
660
|
}
|
|
662
|
-
function
|
|
661
|
+
function ou() {
|
|
663
662
|
return globalThis.IS_REACT_ACT_ENVIRONMENT;
|
|
664
663
|
}
|
|
665
|
-
function
|
|
664
|
+
function Sa(e) {
|
|
666
665
|
return (t) => {
|
|
667
|
-
let r =
|
|
666
|
+
let r = ou();
|
|
668
667
|
St(!0);
|
|
669
668
|
try {
|
|
670
669
|
let n = !1, i = e(() => {
|
|
@@ -686,11 +685,14 @@ var Zc = Ms((ip, er) => {
|
|
|
686
685
|
}
|
|
687
686
|
};
|
|
688
687
|
}
|
|
689
|
-
var
|
|
688
|
+
var lu = async () => {
|
|
689
|
+
let e = typeof Ai.act == "function" ? Ai.act : (await import("./test-utils-Brqoydie.js").then((t) => t.t)).act;
|
|
690
|
+
return process.env.NODE_ENV === "production" ? (t) => t() : Sa(e);
|
|
691
|
+
}, xa = (e, t) => {
|
|
690
692
|
let { id: r, component: n } = t;
|
|
691
693
|
if (!n) throw new Error(`Unable to render story ${r} as the component annotation is missing from the default export`);
|
|
692
694
|
return at.createElement(n, { ...e });
|
|
693
|
-
}, { FRAMEWORK_OPTIONS:
|
|
695
|
+
}, { FRAMEWORK_OPTIONS: Kr } = eu, _a = class extends Js {
|
|
694
696
|
constructor() {
|
|
695
697
|
super(...arguments), this.state = { hasError: !1 };
|
|
696
698
|
}
|
|
@@ -709,69 +711,71 @@ var Zc = Ms((ip, er) => {
|
|
|
709
711
|
let { hasError: e } = this.state, { children: t } = this.props;
|
|
710
712
|
return e ? null : t;
|
|
711
713
|
}
|
|
712
|
-
},
|
|
713
|
-
if (
|
|
714
|
-
|
|
715
|
-
let e =
|
|
716
|
-
e && await e(),
|
|
714
|
+
}, gi = Kr != null && Kr.strictMode ? Vs : Mn, Cn = [], Hr = !1, cu = async () => {
|
|
715
|
+
if (Hr || Cn.length === 0) return;
|
|
716
|
+
Hr = !0;
|
|
717
|
+
let e = Cn.shift();
|
|
718
|
+
e && await e(), Hr = !1, cu();
|
|
717
719
|
};
|
|
718
|
-
async function
|
|
719
|
-
let { renderElement: o, unmountElement: c } = await import("./react-18-CcyoHPTJ.js"), l = t, f = e.parameters.__isPortableStory ? at.createElement(l, { ...e }) : at.createElement(
|
|
720
|
-
|
|
721
|
-
|
|
720
|
+
async function ba({ storyContext: e, unboundStoryFn: t, showMain: r, showException: n, forceRemount: i }, s) {
|
|
721
|
+
let { renderElement: o, unmountElement: c } = await import("./react-18-CcyoHPTJ.js"), l = t, f = e.parameters.__isPortableStory ? at.createElement(l, { ...e }) : at.createElement(_a, { showMain: r, showException: n }, at.createElement(l, { ...e })), p = gi ? at.createElement(gi, null, f) : f;
|
|
722
|
+
i && c(s);
|
|
723
|
+
let v = await lu();
|
|
724
|
+
return await new Promise(async (E, D) => {
|
|
725
|
+
Cn.push(async () => {
|
|
722
726
|
try {
|
|
723
|
-
await
|
|
724
|
-
var
|
|
725
|
-
await o(p, s, (
|
|
726
|
-
}),
|
|
727
|
-
} catch (
|
|
728
|
-
|
|
727
|
+
await v(async () => {
|
|
728
|
+
var A, g;
|
|
729
|
+
await o(p, s, (g = (A = e == null ? void 0 : e.parameters) == null ? void 0 : A.react) == null ? void 0 : g.rootOptions);
|
|
730
|
+
}), E();
|
|
731
|
+
} catch (A) {
|
|
732
|
+
D(A);
|
|
729
733
|
}
|
|
730
734
|
}), cu();
|
|
731
735
|
}), async () => {
|
|
732
|
-
await
|
|
736
|
+
await v(() => {
|
|
733
737
|
c(s);
|
|
734
738
|
});
|
|
735
739
|
};
|
|
736
740
|
}
|
|
737
|
-
var
|
|
741
|
+
var Ta = (e) => async (t) => (t != null && (e.originalStoryFn = () => t), await e.renderToCanvas(), e.canvas), Ba = { renderer: "react" }, wa = [(e, t) => {
|
|
738
742
|
var i, s;
|
|
739
743
|
if (!((s = (i = t.parameters) == null ? void 0 : i.react) != null && s.rsc)) return e();
|
|
740
|
-
let r =
|
|
744
|
+
let r = Ei.default.major(jt.version), n = Ei.default.minor(jt.version);
|
|
741
745
|
if (r < 18 || r === 18 && n < 3) throw new Error("React Server Components require React >= 18.3");
|
|
742
746
|
return jt.createElement(jt.Suspense, null, e());
|
|
743
|
-
}],
|
|
747
|
+
}], Pa = async () => {
|
|
744
748
|
try {
|
|
745
|
-
let { configure: e } = await import("./index-
|
|
746
|
-
e({ unstable_advanceTimersWrapper: (
|
|
747
|
-
let
|
|
749
|
+
let { configure: e } = await import("./index-DXR-TB1d.js"), t = await lu();
|
|
750
|
+
e({ unstable_advanceTimersWrapper: (r) => t(r), asyncWrapper: async (r) => {
|
|
751
|
+
let n = ou();
|
|
748
752
|
St(!1);
|
|
749
753
|
try {
|
|
750
|
-
let
|
|
751
|
-
return await new Promise((
|
|
754
|
+
let i = await r();
|
|
755
|
+
return await new Promise((s) => {
|
|
752
756
|
setTimeout(() => {
|
|
753
|
-
|
|
754
|
-
}, 0),
|
|
755
|
-
}),
|
|
757
|
+
s();
|
|
758
|
+
}, 0), Ia() && jest.advanceTimersByTime(0);
|
|
759
|
+
}), i;
|
|
756
760
|
} finally {
|
|
757
|
-
St(
|
|
761
|
+
St(n);
|
|
758
762
|
}
|
|
759
|
-
}, eventWrapper: (
|
|
760
|
-
let
|
|
761
|
-
return
|
|
763
|
+
}, eventWrapper: (r) => {
|
|
764
|
+
let n;
|
|
765
|
+
return t(() => (n = r(), n)), n;
|
|
762
766
|
} });
|
|
763
767
|
} catch {
|
|
764
768
|
}
|
|
765
769
|
};
|
|
766
|
-
function
|
|
770
|
+
function Ia() {
|
|
767
771
|
return typeof jest < "u" && jest !== null ? setTimeout._isMockFunction === !0 || Object.prototype.hasOwnProperty.call(setTimeout, "clock") : !1;
|
|
768
772
|
}
|
|
769
|
-
var Kt = { exports: {} },
|
|
770
|
-
function
|
|
771
|
-
return
|
|
773
|
+
var Kt = { exports: {} }, Na = Kt.exports, Di;
|
|
774
|
+
function Ra() {
|
|
775
|
+
return Di || (Di = 1, function(e, t) {
|
|
772
776
|
(function(r, n) {
|
|
773
777
|
n(t);
|
|
774
|
-
})(
|
|
778
|
+
})(Na, function(r) {
|
|
775
779
|
function n(u) {
|
|
776
780
|
return u.text !== void 0 && u.text !== "" ? `'${u.type}' with value '${u.text}'` : `'${u.type}'`;
|
|
777
781
|
}
|
|
@@ -1251,8 +1255,8 @@ var Zc = Ms((ip, er) => {
|
|
|
1251
1255
|
return null;
|
|
1252
1256
|
let Ke, gr = !1;
|
|
1253
1257
|
Y.consume(".") ? Ke = "property" : Y.consume("[") ? (Ke = "property-brackets", gr = !0) : Y.consume("~") ? Ke = "inner" : (Y.consume("#"), Ke = "instance");
|
|
1254
|
-
const
|
|
1255
|
-
Y.acceptLexerState(
|
|
1258
|
+
const di = x !== null ? new ue(x, Y.lexer, Y) : Y, ht = di.parseIntermediateType($.NAME_PATH);
|
|
1259
|
+
Y.acceptLexerState(di);
|
|
1256
1260
|
let Wt;
|
|
1257
1261
|
switch (ht.type) {
|
|
1258
1262
|
case "JsdocTypeName":
|
|
@@ -1292,8 +1296,8 @@ var Zc = Ms((ip, er) => {
|
|
|
1292
1296
|
throw new o(ht, "Expecting 'JsdocTypeName', 'JsdocTypeNumber', 'JsdocStringValue' or 'JsdocTypeSpecialNamePath'");
|
|
1293
1297
|
}
|
|
1294
1298
|
if (gr && !Y.consume("]")) {
|
|
1295
|
-
const
|
|
1296
|
-
throw new Error(`Unterminated square brackets. Next token is '${
|
|
1299
|
+
const mi = Y.lexer.current;
|
|
1300
|
+
throw new Error(`Unterminated square brackets. Next token is '${mi.type}' with text '${mi.text}'`);
|
|
1297
1301
|
}
|
|
1298
1302
|
return {
|
|
1299
1303
|
type: "JsdocTypeNamePath",
|
|
@@ -1673,7 +1677,7 @@ var Zc = Ms((ip, er) => {
|
|
|
1673
1677
|
allowJsdocNamePaths: !0,
|
|
1674
1678
|
pathGrammar: Ee
|
|
1675
1679
|
})
|
|
1676
|
-
],
|
|
1680
|
+
], zr = [
|
|
1677
1681
|
...pr,
|
|
1678
1682
|
lt({
|
|
1679
1683
|
// jsdoc syntax allows full types as keys, so we need to pull in the full grammar here
|
|
@@ -1814,14 +1818,14 @@ var Zc = Ms((ip, er) => {
|
|
|
1814
1818
|
element: d
|
|
1815
1819
|
};
|
|
1816
1820
|
}
|
|
1817
|
-
}),
|
|
1821
|
+
}), Yr = O({
|
|
1818
1822
|
name: "readonlyPropertyParslet",
|
|
1819
1823
|
accept: (u) => u === "readonly",
|
|
1820
1824
|
parsePrefix: (u) => (u.consume("readonly"), {
|
|
1821
1825
|
type: "JsdocTypeReadonlyProperty",
|
|
1822
1826
|
element: u.parseType($.KEY_VALUE)
|
|
1823
1827
|
})
|
|
1824
|
-
}),
|
|
1828
|
+
}), Xr = O({
|
|
1825
1829
|
name: "arrowFunctionParslet",
|
|
1826
1830
|
precedence: $.ARROW,
|
|
1827
1831
|
accept: (u) => u === "=>",
|
|
@@ -1892,7 +1896,7 @@ var Zc = Ms((ip, er) => {
|
|
|
1892
1896
|
return x;
|
|
1893
1897
|
}
|
|
1894
1898
|
}), Re = [
|
|
1895
|
-
|
|
1899
|
+
Yr,
|
|
1896
1900
|
ae({
|
|
1897
1901
|
allowedAdditionalTokens: ["module", "event", "keyof", "event", "external", "in"]
|
|
1898
1902
|
}),
|
|
@@ -1939,7 +1943,7 @@ var Zc = Ms((ip, er) => {
|
|
|
1939
1943
|
pathGrammar: Ee
|
|
1940
1944
|
}),
|
|
1941
1945
|
ot,
|
|
1942
|
-
|
|
1946
|
+
Xr,
|
|
1943
1947
|
U({
|
|
1944
1948
|
allowSquareBracketsOnAnyType: !0,
|
|
1945
1949
|
allowJsdocNamePaths: !1,
|
|
@@ -1957,7 +1961,7 @@ var Zc = Ms((ip, er) => {
|
|
|
1957
1961
|
case "closure":
|
|
1958
1962
|
return new ue(be, u).parse();
|
|
1959
1963
|
case "jsdoc":
|
|
1960
|
-
return new ue(
|
|
1964
|
+
return new ue(zr, u).parse();
|
|
1961
1965
|
case "typescript":
|
|
1962
1966
|
return new ue(mr, u).parse();
|
|
1963
1967
|
}
|
|
@@ -2679,7 +2683,7 @@ var Zc = Ms((ip, er) => {
|
|
|
2679
2683
|
});
|
|
2680
2684
|
}(Kt, Kt.exports)), Kt.exports;
|
|
2681
2685
|
}
|
|
2682
|
-
var
|
|
2686
|
+
var Kn = Ra(), ka = Object.defineProperty, W = (e, t) => ka(e, "name", { value: t, configurable: !0 }), Oa = /* @__PURE__ */ W((e) => e.name === "literal", "isLiteral"), La = /* @__PURE__ */ W((e) => e.value.replace(/['|"]/g, ""), "toEnumOption"), ja = /* @__PURE__ */ W((e) => {
|
|
2683
2687
|
switch (e.type) {
|
|
2684
2688
|
case "function":
|
|
2685
2689
|
return { name: "function" };
|
|
@@ -2692,7 +2696,7 @@ var Zc = Ms((ip, er) => {
|
|
|
2692
2696
|
value: t
|
|
2693
2697
|
};
|
|
2694
2698
|
default:
|
|
2695
|
-
throw new
|
|
2699
|
+
throw new tu({ type: e, language: "Flow" });
|
|
2696
2700
|
}
|
|
2697
2701
|
}, "convertSig"), tr = /* @__PURE__ */ W((e) => {
|
|
2698
2702
|
var i, s, o, c;
|
|
@@ -2708,9 +2712,9 @@ var Zc = Ms((ip, er) => {
|
|
|
2708
2712
|
case "Array":
|
|
2709
2713
|
return { ...n, name: "array", value: e.elements.map(tr) };
|
|
2710
2714
|
case "signature":
|
|
2711
|
-
return { ...n, ...
|
|
2715
|
+
return { ...n, ...ja(e) };
|
|
2712
2716
|
case "union":
|
|
2713
|
-
return (i = e.elements) != null && i.every(
|
|
2717
|
+
return (i = e.elements) != null && i.every(Oa) ? { ...n, name: "enum", value: (s = e.elements) == null ? void 0 : s.map(La) } : { ...n, name: t, value: (o = e.elements) == null ? void 0 : o.map(tr) };
|
|
2714
2718
|
case "intersection":
|
|
2715
2719
|
return { ...n, name: t, value: (c = e.elements) == null ? void 0 : c.map(tr) };
|
|
2716
2720
|
default:
|
|
@@ -2726,10 +2730,10 @@ var Zc = Ms((ip, er) => {
|
|
|
2726
2730
|
return r;
|
|
2727
2731
|
}
|
|
2728
2732
|
W(pu, "mapValues");
|
|
2729
|
-
var hu = /^['"]|['"]$/g,
|
|
2730
|
-
let t =
|
|
2731
|
-
return
|
|
2732
|
-
}, "parseLiteral"),
|
|
2733
|
+
var hu = /^['"]|['"]$/g, $a = /* @__PURE__ */ W((e) => e.replace(hu, ""), "trimQuotes"), Ma = /* @__PURE__ */ W((e) => hu.test(e), "includesQuotes"), fu = /* @__PURE__ */ W((e) => {
|
|
2734
|
+
let t = $a(e);
|
|
2735
|
+
return Ma(e) || Number.isNaN(Number(t)) ? t : Number(t);
|
|
2736
|
+
}, "parseLiteral"), Va = /^\(.*\) => /, Ht = /* @__PURE__ */ W((e) => {
|
|
2733
2737
|
let { name: t, raw: r, computed: n, value: i } = e, s = {};
|
|
2734
2738
|
switch (typeof r < "u" && (s.raw = r), t) {
|
|
2735
2739
|
case "enum": {
|
|
@@ -2768,11 +2772,11 @@ var Zc = Ms((ip, er) => {
|
|
|
2768
2772
|
return { ...s, name: "enum", value: f };
|
|
2769
2773
|
} catch {
|
|
2770
2774
|
}
|
|
2771
|
-
let c = i ? `${t}(${i})` : t, l =
|
|
2775
|
+
let c = i ? `${t}(${i})` : t, l = Va.test(t) ? "function" : "other";
|
|
2772
2776
|
return { ...s, name: l, value: c };
|
|
2773
2777
|
}
|
|
2774
2778
|
}
|
|
2775
|
-
}, "convert"),
|
|
2779
|
+
}, "convert"), Ja = /* @__PURE__ */ W((e) => {
|
|
2776
2780
|
switch (e.type) {
|
|
2777
2781
|
case "function":
|
|
2778
2782
|
return { name: "function" };
|
|
@@ -2785,7 +2789,7 @@ var Zc = Ms((ip, er) => {
|
|
|
2785
2789
|
value: t
|
|
2786
2790
|
};
|
|
2787
2791
|
default:
|
|
2788
|
-
throw new
|
|
2792
|
+
throw new tu({ type: e, language: "Typescript" });
|
|
2789
2793
|
}
|
|
2790
2794
|
}, "convertSig"), rr = /* @__PURE__ */ W((e) => {
|
|
2791
2795
|
var i, s, o, c;
|
|
@@ -2799,7 +2803,7 @@ var Zc = Ms((ip, er) => {
|
|
|
2799
2803
|
case "Array":
|
|
2800
2804
|
return { ...n, name: "array", value: e.elements.map(rr) };
|
|
2801
2805
|
case "signature":
|
|
2802
|
-
return { ...n, ...
|
|
2806
|
+
return { ...n, ...Ja(e) };
|
|
2803
2807
|
case "union":
|
|
2804
2808
|
let l;
|
|
2805
2809
|
return (i = e.elements) != null && i.every((f) => f.name === "literal") ? l = {
|
|
@@ -2813,7 +2817,7 @@ var Zc = Ms((ip, er) => {
|
|
|
2813
2817
|
default:
|
|
2814
2818
|
return { ...n, name: "other", value: t };
|
|
2815
2819
|
}
|
|
2816
|
-
}, "convert"),
|
|
2820
|
+
}, "convert"), Hn = /* @__PURE__ */ W((e) => {
|
|
2817
2821
|
let { type: t, tsType: r, flowType: n } = e;
|
|
2818
2822
|
try {
|
|
2819
2823
|
if (t != null)
|
|
@@ -2826,32 +2830,32 @@ var Zc = Ms((ip, er) => {
|
|
|
2826
2830
|
console.error(i);
|
|
2827
2831
|
}
|
|
2828
2832
|
return null;
|
|
2829
|
-
}, "convert"),
|
|
2830
|
-
function
|
|
2831
|
-
return
|
|
2833
|
+
}, "convert"), Fn = /* @__PURE__ */ ((e) => (e.JAVASCRIPT = "JavaScript", e.FLOW = "Flow", e.TYPESCRIPT = "TypeScript", e.UNKNOWN = "Unknown", e))(Fn || {}), qa = ["null", "undefined"];
|
|
2834
|
+
function Jr(e) {
|
|
2835
|
+
return qa.some((t) => t === e);
|
|
2832
2836
|
}
|
|
2833
|
-
W(
|
|
2834
|
-
var
|
|
2837
|
+
W(Jr, "isDefaultValueBlacklisted");
|
|
2838
|
+
var Ua = /* @__PURE__ */ W((e) => {
|
|
2835
2839
|
if (!e)
|
|
2836
2840
|
return "";
|
|
2837
2841
|
if (typeof e == "string")
|
|
2838
2842
|
return e;
|
|
2839
2843
|
throw new Error(`Description: expected string, got: ${JSON.stringify(e)}`);
|
|
2840
2844
|
}, "str");
|
|
2841
|
-
function
|
|
2845
|
+
function qr(e) {
|
|
2842
2846
|
return !!e.__docgenInfo;
|
|
2843
2847
|
}
|
|
2844
|
-
W(
|
|
2848
|
+
W(qr, "hasDocgen");
|
|
2845
2849
|
function du(e) {
|
|
2846
2850
|
return e != null && Object.keys(e).length > 0;
|
|
2847
2851
|
}
|
|
2848
2852
|
W(du, "isValidDocgenSection");
|
|
2849
|
-
function
|
|
2850
|
-
return
|
|
2853
|
+
function Rr(e, t) {
|
|
2854
|
+
return qr(e) ? e.__docgenInfo[t] : null;
|
|
2851
2855
|
}
|
|
2852
|
-
W(
|
|
2856
|
+
W(Rr, "getDocgenSection");
|
|
2853
2857
|
function mu(e) {
|
|
2854
|
-
return
|
|
2858
|
+
return qr(e) ? Ua(e.__docgenInfo.description) : "";
|
|
2855
2859
|
}
|
|
2856
2860
|
W(mu, "getDocgenDescription");
|
|
2857
2861
|
var At;
|
|
@@ -2897,13 +2901,13 @@ var Zc = Ms((ip, er) => {
|
|
|
2897
2901
|
}, e);
|
|
2898
2902
|
}
|
|
2899
2903
|
W(Du, "seedTokens");
|
|
2900
|
-
var
|
|
2904
|
+
var Ga = /^@\S+/;
|
|
2901
2905
|
function Cu({ fence: e = "```" } = {}) {
|
|
2902
2906
|
let t = Fu(e), r = /* @__PURE__ */ W((n, i) => t(n) ? !i : i, "toggleFence");
|
|
2903
2907
|
return /* @__PURE__ */ W(function(n) {
|
|
2904
2908
|
let i = [[]], s = !1;
|
|
2905
2909
|
for (let o of n)
|
|
2906
|
-
|
|
2910
|
+
Ga.test(o.tokens.description) && !s ? i.push([o]) : i[i.length - 1].push(o), s = r(o.tokens.description, s);
|
|
2907
2911
|
return i;
|
|
2908
2912
|
}, "parseBlock");
|
|
2909
2913
|
}
|
|
@@ -2985,13 +2989,13 @@ var Zc = Ms((ip, er) => {
|
|
|
2985
2989
|
};
|
|
2986
2990
|
}
|
|
2987
2991
|
W(_u, "typeTokenizer");
|
|
2988
|
-
var
|
|
2992
|
+
var Wa = /* @__PURE__ */ W((e) => e.trim(), "trim");
|
|
2989
2993
|
function bu(e) {
|
|
2990
|
-
return e === "compact" ? (t) => t.map(
|
|
2994
|
+
return e === "compact" ? (t) => t.map(Wa).join("") : e === "preserve" ? (t) => t.join(`
|
|
2991
2995
|
`) : e;
|
|
2992
2996
|
}
|
|
2993
2997
|
W(bu, "getJoiner");
|
|
2994
|
-
var
|
|
2998
|
+
var za = /* @__PURE__ */ W((e) => e && e.startsWith('"') && e.endsWith('"'), "isQuoted");
|
|
2995
2999
|
function Tu() {
|
|
2996
3000
|
let e = /* @__PURE__ */ W((t, { tokens: r }, n) => r.type === "" ? t : n, "typeEnd");
|
|
2997
3001
|
return (t) => {
|
|
@@ -3029,7 +3033,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3029
3033
|
line: t.source[0].number,
|
|
3030
3034
|
critical: !0
|
|
3031
3035
|
}), t;
|
|
3032
|
-
if (!
|
|
3036
|
+
if (!za(l) && /=(?!>)/.test(l))
|
|
3033
3037
|
return t.problems.push({
|
|
3034
3038
|
code: "spec:name:invalid-default",
|
|
3035
3039
|
message: "invalid default value syntax",
|
|
@@ -3042,25 +3046,25 @@ var Zc = Ms((ip, er) => {
|
|
|
3042
3046
|
}
|
|
3043
3047
|
W(Tu, "nameTokenizer");
|
|
3044
3048
|
function Bu(e = "compact", t = At) {
|
|
3045
|
-
let r =
|
|
3049
|
+
let r = Qn(e);
|
|
3046
3050
|
return (n) => (n.description = r(n.source, t), n);
|
|
3047
3051
|
}
|
|
3048
3052
|
W(Bu, "descriptionTokenizer");
|
|
3049
|
-
function
|
|
3053
|
+
function Qn(e) {
|
|
3050
3054
|
return e === "compact" ? wu : e === "preserve" ? Pu : e;
|
|
3051
3055
|
}
|
|
3052
|
-
W(
|
|
3056
|
+
W(Qn, "getJoiner");
|
|
3053
3057
|
function wu(e, t = At) {
|
|
3054
3058
|
return e.map(({ tokens: { description: r } }) => r.trim()).filter((r) => r !== "").join(" ");
|
|
3055
3059
|
}
|
|
3056
3060
|
W(wu, "compactJoiner");
|
|
3057
|
-
var
|
|
3061
|
+
var Ya = /* @__PURE__ */ W((e, { tokens: t }, r) => t.type === "" ? e : r, "lineNo"), Xa = /* @__PURE__ */ W(({ tokens: e }) => (e.delimiter === "" ? e.start : e.postDelimiter.slice(1)) + e.description, "getDescription");
|
|
3058
3062
|
function Pu(e, t = At) {
|
|
3059
3063
|
if (e.length === 0)
|
|
3060
3064
|
return "";
|
|
3061
3065
|
e[0].tokens.description === "" && e[0].tokens.delimiter === t.start && (e = e.slice(1));
|
|
3062
3066
|
let r = e[e.length - 1];
|
|
3063
|
-
return r !== void 0 && r.tokens.description === "" && r.tokens.end.endsWith(t.end) && (e = e.slice(0, -1)), e = e.slice(e.reduce(
|
|
3067
|
+
return r !== void 0 && r.tokens.description === "" && r.tokens.end.endsWith(t.end) && (e = e.slice(0, -1)), e = e.slice(e.reduce(Ya, 0)), e.map(Xa).join(`
|
|
3064
3068
|
`);
|
|
3065
3069
|
}
|
|
3066
3070
|
W(Pu, "preserveJoiner");
|
|
@@ -3072,7 +3076,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3072
3076
|
] } = {}) {
|
|
3073
3077
|
if (e < 0 || e % 1 > 0)
|
|
3074
3078
|
throw new Error("Invalid startLine");
|
|
3075
|
-
let s = vu({ startLine: e, markers: n }), o = Cu({ fence: t }), c = Su({ tokenizers: i }), l =
|
|
3079
|
+
let s = vu({ startLine: e, markers: n }), o = Cu({ fence: t }), c = Su({ tokenizers: i }), l = Qn(r);
|
|
3076
3080
|
return function(f) {
|
|
3077
3081
|
let p = [];
|
|
3078
3082
|
for (let v of Au(f)) {
|
|
@@ -3095,11 +3099,11 @@ var Zc = Ms((ip, er) => {
|
|
|
3095
3099
|
return e.start + e.delimiter + e.postDelimiter + e.tag + e.postTag + e.type + e.postType + e.name + e.postName + e.description + e.end + e.lineEnd;
|
|
3096
3100
|
}
|
|
3097
3101
|
W(Nu, "join");
|
|
3098
|
-
function
|
|
3102
|
+
function Ka() {
|
|
3099
3103
|
return (e) => e.source.map(({ tokens: t }) => Nu(t)).join(`
|
|
3100
3104
|
`);
|
|
3101
3105
|
}
|
|
3102
|
-
W(
|
|
3106
|
+
W(Ka, "getStringifier");
|
|
3103
3107
|
function Ru(e, t = {}) {
|
|
3104
3108
|
return Iu(t)(e);
|
|
3105
3109
|
}
|
|
@@ -3121,9 +3125,9 @@ var Zc = Ms((ip, er) => {
|
|
|
3121
3125
|
return r[0];
|
|
3122
3126
|
}
|
|
3123
3127
|
W(Ou, "parse");
|
|
3124
|
-
var
|
|
3128
|
+
var Ha = {
|
|
3125
3129
|
tags: ["param", "arg", "argument", "returns", "ignore", "deprecated"]
|
|
3126
|
-
},
|
|
3130
|
+
}, Qa = /* @__PURE__ */ W((e, t = Ha) => {
|
|
3127
3131
|
if (!ku(e))
|
|
3128
3132
|
return {
|
|
3129
3133
|
includesJsDoc: !1,
|
|
@@ -3184,62 +3188,62 @@ var Zc = Ms((ip, er) => {
|
|
|
3184
3188
|
function $u(e) {
|
|
3185
3189
|
if (!e.name || e.name === "-")
|
|
3186
3190
|
return null;
|
|
3187
|
-
let t =
|
|
3191
|
+
let t = ti(e.type);
|
|
3188
3192
|
return {
|
|
3189
3193
|
name: e.name,
|
|
3190
3194
|
type: t,
|
|
3191
|
-
description:
|
|
3195
|
+
description: ei(e.description),
|
|
3192
3196
|
getPrettyName: /* @__PURE__ */ W(() => ju(e.name), "getPrettyName"),
|
|
3193
|
-
getTypeName: /* @__PURE__ */ W(() => t ?
|
|
3197
|
+
getTypeName: /* @__PURE__ */ W(() => t ? ri(t) : null, "getTypeName")
|
|
3194
3198
|
};
|
|
3195
3199
|
}
|
|
3196
3200
|
W($u, "extractParam");
|
|
3197
3201
|
function Mu(e) {
|
|
3198
|
-
return e.name ?
|
|
3202
|
+
return e.name ? Zn(e.name, e.description) : null;
|
|
3199
3203
|
}
|
|
3200
3204
|
W(Mu, "extractDeprecated");
|
|
3201
|
-
function
|
|
3205
|
+
function Zn(e, t) {
|
|
3202
3206
|
let r = e === "" ? t : `${e} ${t}`;
|
|
3203
|
-
return
|
|
3207
|
+
return ei(r);
|
|
3204
3208
|
}
|
|
3205
|
-
W(
|
|
3206
|
-
function
|
|
3209
|
+
W(Zn, "joinNameAndDescription");
|
|
3210
|
+
function ei(e) {
|
|
3207
3211
|
let t = e.replace(/^- /g, "").trim();
|
|
3208
3212
|
return t === "" ? null : t;
|
|
3209
3213
|
}
|
|
3210
|
-
W(
|
|
3214
|
+
W(ei, "normaliseDescription");
|
|
3211
3215
|
function Vu(e) {
|
|
3212
|
-
let t =
|
|
3216
|
+
let t = ti(e.type);
|
|
3213
3217
|
return t ? {
|
|
3214
3218
|
type: t,
|
|
3215
|
-
description:
|
|
3216
|
-
getTypeName: /* @__PURE__ */ W(() =>
|
|
3219
|
+
description: Zn(e.name, e.description),
|
|
3220
|
+
getTypeName: /* @__PURE__ */ W(() => ri(t), "getTypeName")
|
|
3217
3221
|
} : null;
|
|
3218
3222
|
}
|
|
3219
3223
|
W(Vu, "extractReturns");
|
|
3220
|
-
var Ct =
|
|
3224
|
+
var Ct = Kn.stringifyRules(), Za = Ct.JsdocTypeObject;
|
|
3221
3225
|
Ct.JsdocTypeAny = () => "any";
|
|
3222
|
-
Ct.JsdocTypeObject = (e, t) => `(${
|
|
3226
|
+
Ct.JsdocTypeObject = (e, t) => `(${Za(e, t)})`;
|
|
3223
3227
|
Ct.JsdocTypeOptional = (e, t) => t(e.element);
|
|
3224
3228
|
Ct.JsdocTypeNullable = (e, t) => t(e.element);
|
|
3225
3229
|
Ct.JsdocTypeNotNullable = (e, t) => t(e.element);
|
|
3226
3230
|
Ct.JsdocTypeUnion = (e, t) => e.elements.map(t).join("|");
|
|
3227
|
-
function
|
|
3231
|
+
function ti(e) {
|
|
3228
3232
|
try {
|
|
3229
|
-
return
|
|
3233
|
+
return Kn.parse(e, "typescript");
|
|
3230
3234
|
} catch {
|
|
3231
3235
|
return null;
|
|
3232
3236
|
}
|
|
3233
3237
|
}
|
|
3234
|
-
W(
|
|
3235
|
-
function
|
|
3236
|
-
return
|
|
3238
|
+
W(ti, "extractType");
|
|
3239
|
+
function ri(e) {
|
|
3240
|
+
return Kn.transform(Ct, e);
|
|
3237
3241
|
}
|
|
3238
|
-
W(
|
|
3239
|
-
function
|
|
3242
|
+
W(ri, "extractTypeName");
|
|
3243
|
+
function Ur(e) {
|
|
3240
3244
|
return e.length > 90;
|
|
3241
3245
|
}
|
|
3242
|
-
W(
|
|
3246
|
+
W(Ur, "isTooLongForTypeSummary");
|
|
3243
3247
|
function Pt(e) {
|
|
3244
3248
|
return e.length > 50;
|
|
3245
3249
|
}
|
|
@@ -3251,18 +3255,18 @@ var Zc = Ms((ip, er) => {
|
|
|
3251
3255
|
function Ju(e, t) {
|
|
3252
3256
|
if (e != null) {
|
|
3253
3257
|
let { value: r } = e;
|
|
3254
|
-
if (!
|
|
3258
|
+
if (!Jr(r))
|
|
3255
3259
|
return Pt(r) ? me(t == null ? void 0 : t.name, r) : me(r);
|
|
3256
3260
|
}
|
|
3257
3261
|
return null;
|
|
3258
3262
|
}
|
|
3259
3263
|
W(Ju, "createDefaultValue");
|
|
3260
|
-
function
|
|
3261
|
-
return t ?? (r != null ? r.map(
|
|
3264
|
+
function ni({ name: e, value: t, elements: r, raw: n }) {
|
|
3265
|
+
return t ?? (r != null ? r.map(ni).join(" | ") : n ?? e);
|
|
3262
3266
|
}
|
|
3263
|
-
W(
|
|
3267
|
+
W(ni, "generateUnionElement");
|
|
3264
3268
|
function qu({ name: e, raw: t, elements: r }) {
|
|
3265
|
-
return r != null ? me(r.map(
|
|
3269
|
+
return r != null ? me(r.map(ni).join(" | ")) : t != null ? me(t.replace(/^\|\s*/, "")) : me(e);
|
|
3266
3270
|
}
|
|
3267
3271
|
W(qu, "generateUnion");
|
|
3268
3272
|
function Uu({ type: e, raw: t }) {
|
|
@@ -3270,7 +3274,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3270
3274
|
}
|
|
3271
3275
|
W(Uu, "generateFuncSignature");
|
|
3272
3276
|
function Gu({ type: e, raw: t }) {
|
|
3273
|
-
return t != null ?
|
|
3277
|
+
return t != null ? Ur(t) ? me(e, t) : me(t) : me(e);
|
|
3274
3278
|
}
|
|
3275
3279
|
W(Gu, "generateObjectSignature");
|
|
3276
3280
|
function Wu(e) {
|
|
@@ -3279,7 +3283,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3279
3283
|
}
|
|
3280
3284
|
W(Wu, "generateSignature");
|
|
3281
3285
|
function zu({ name: e, raw: t }) {
|
|
3282
|
-
return t != null ?
|
|
3286
|
+
return t != null ? Ur(t) ? me(e, t) : me(t) : me(e);
|
|
3283
3287
|
}
|
|
3284
3288
|
W(zu, "generateDefault");
|
|
3285
3289
|
function Yu(e) {
|
|
@@ -3295,7 +3299,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3295
3299
|
}
|
|
3296
3300
|
}
|
|
3297
3301
|
W(Yu, "createType");
|
|
3298
|
-
var
|
|
3302
|
+
var eo = /* @__PURE__ */ W((e, t) => {
|
|
3299
3303
|
let { flowType: r, description: n, required: i, defaultValue: s } = t;
|
|
3300
3304
|
return {
|
|
3301
3305
|
name: e,
|
|
@@ -3308,7 +3312,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3308
3312
|
function Xu({ defaultValue: e }) {
|
|
3309
3313
|
if (e != null) {
|
|
3310
3314
|
let { value: t } = e;
|
|
3311
|
-
if (!
|
|
3315
|
+
if (!Jr(t))
|
|
3312
3316
|
return me(t);
|
|
3313
3317
|
}
|
|
3314
3318
|
return null;
|
|
@@ -3323,7 +3327,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3323
3327
|
);
|
|
3324
3328
|
}
|
|
3325
3329
|
W(Ku, "createType");
|
|
3326
|
-
var
|
|
3330
|
+
var to = /* @__PURE__ */ W((e, t) => {
|
|
3327
3331
|
let { description: r, required: n } = t;
|
|
3328
3332
|
return {
|
|
3329
3333
|
name: e,
|
|
@@ -3351,13 +3355,13 @@ var Zc = Ms((ip, er) => {
|
|
|
3351
3355
|
function es(e, t) {
|
|
3352
3356
|
if (e != null) {
|
|
3353
3357
|
let { value: r } = e;
|
|
3354
|
-
if (!
|
|
3358
|
+
if (!Jr(r))
|
|
3355
3359
|
return Qu(e) && Zu(t) ? me(JSON.stringify(r)) : me(r);
|
|
3356
3360
|
}
|
|
3357
3361
|
return null;
|
|
3358
3362
|
}
|
|
3359
3363
|
W(es, "createDefaultValue");
|
|
3360
|
-
function
|
|
3364
|
+
function ii(e, t, r) {
|
|
3361
3365
|
let { description: n, required: i, defaultValue: s } = r;
|
|
3362
3366
|
return {
|
|
3363
3367
|
name: e,
|
|
@@ -3367,7 +3371,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3367
3371
|
defaultValue: es(s, t)
|
|
3368
3372
|
};
|
|
3369
3373
|
}
|
|
3370
|
-
W(
|
|
3374
|
+
W(ii, "createBasicPropDef");
|
|
3371
3375
|
function ar(e, t) {
|
|
3372
3376
|
var r;
|
|
3373
3377
|
if (t != null && t.includesJsDoc) {
|
|
@@ -3387,33 +3391,33 @@ var Zc = Ms((ip, er) => {
|
|
|
3387
3391
|
return e;
|
|
3388
3392
|
}
|
|
3389
3393
|
W(ar, "applyJsDocResult");
|
|
3390
|
-
var
|
|
3391
|
-
let n =
|
|
3392
|
-
return n.sbType =
|
|
3393
|
-
}, "javaScriptFactory"),
|
|
3394
|
-
let n =
|
|
3395
|
-
return n.sbType =
|
|
3396
|
-
}, "tsFactory"),
|
|
3397
|
-
let n =
|
|
3398
|
-
return n.sbType =
|
|
3399
|
-
}, "flowFactory"),
|
|
3400
|
-
let n =
|
|
3394
|
+
var ro = /* @__PURE__ */ W((e, t, r) => {
|
|
3395
|
+
let n = ii(e, t.type, t);
|
|
3396
|
+
return n.sbType = Hn(t), ar(n, r);
|
|
3397
|
+
}, "javaScriptFactory"), no = /* @__PURE__ */ W((e, t, r) => {
|
|
3398
|
+
let n = to(e, t);
|
|
3399
|
+
return n.sbType = Hn(t), ar(n, r);
|
|
3400
|
+
}, "tsFactory"), io = /* @__PURE__ */ W((e, t, r) => {
|
|
3401
|
+
let n = eo(e, t);
|
|
3402
|
+
return n.sbType = Hn(t), ar(n, r);
|
|
3403
|
+
}, "flowFactory"), uo = /* @__PURE__ */ W((e, t, r) => {
|
|
3404
|
+
let n = ii(e, { name: "unknown" }, t);
|
|
3401
3405
|
return ar(n, r);
|
|
3402
3406
|
}, "unknownFactory"), ts = /* @__PURE__ */ W((e) => {
|
|
3403
3407
|
switch (e) {
|
|
3404
3408
|
case "JavaScript":
|
|
3405
|
-
return
|
|
3409
|
+
return ro;
|
|
3406
3410
|
case "TypeScript":
|
|
3407
|
-
return
|
|
3411
|
+
return no;
|
|
3408
3412
|
case "Flow":
|
|
3409
|
-
return
|
|
3413
|
+
return io;
|
|
3410
3414
|
default:
|
|
3411
|
-
return
|
|
3415
|
+
return uo;
|
|
3412
3416
|
}
|
|
3413
3417
|
}, "getPropDefFactory"), rs = /* @__PURE__ */ W(
|
|
3414
3418
|
(e) => e.type != null ? "JavaScript" : e.flowType != null ? "Flow" : e.tsType != null ? "TypeScript" : "Unknown",
|
|
3415
3419
|
"getTypeSystem"
|
|
3416
|
-
),
|
|
3420
|
+
), so = /* @__PURE__ */ W((e) => {
|
|
3417
3421
|
let t = rs(e[0]), r = ts(t);
|
|
3418
3422
|
return e.map((n) => {
|
|
3419
3423
|
var s;
|
|
@@ -3424,20 +3428,20 @@ var Zc = Ms((ip, er) => {
|
|
|
3424
3428
|
...n.type,
|
|
3425
3429
|
value: n.type.elements
|
|
3426
3430
|
}
|
|
3427
|
-
}),
|
|
3431
|
+
}), ui(i.name, i, t, r);
|
|
3428
3432
|
});
|
|
3429
|
-
}, "extractComponentSectionArray"),
|
|
3433
|
+
}, "extractComponentSectionArray"), ao = /* @__PURE__ */ W((e) => {
|
|
3430
3434
|
let t = Object.keys(e), r = rs(e[t[0]]), n = ts(r);
|
|
3431
3435
|
return t.map((i) => {
|
|
3432
3436
|
let s = e[i];
|
|
3433
|
-
return s != null ?
|
|
3437
|
+
return s != null ? ui(i, s, r, n) : null;
|
|
3434
3438
|
}).filter(Boolean);
|
|
3435
|
-
}, "extractComponentSectionObject"),
|
|
3436
|
-
let r =
|
|
3437
|
-
return du(r) ? Array.isArray(r) ?
|
|
3439
|
+
}, "extractComponentSectionObject"), oo = /* @__PURE__ */ W((e, t) => {
|
|
3440
|
+
let r = Rr(e, t);
|
|
3441
|
+
return du(r) ? Array.isArray(r) ? so(r) : ao(r) : [];
|
|
3438
3442
|
}, "extractComponentProps");
|
|
3439
|
-
function
|
|
3440
|
-
let i =
|
|
3443
|
+
function ui(e, t, r, n) {
|
|
3444
|
+
let i = Qa(t.description);
|
|
3441
3445
|
return i.includesJsDoc && i.ignore ? null : {
|
|
3442
3446
|
propDef: n(e, t, i),
|
|
3443
3447
|
jsDocTags: i.extractedTags,
|
|
@@ -3445,19 +3449,19 @@ var Zc = Ms((ip, er) => {
|
|
|
3445
3449
|
typeSystem: r
|
|
3446
3450
|
};
|
|
3447
3451
|
}
|
|
3448
|
-
W(
|
|
3452
|
+
W(ui, "extractProp");
|
|
3449
3453
|
function ns(e) {
|
|
3450
3454
|
return e != null ? mu(e) : "";
|
|
3451
3455
|
}
|
|
3452
3456
|
W(ns, "extractComponentDescription");
|
|
3453
|
-
var
|
|
3457
|
+
var lo = /* @__PURE__ */ W((e) => {
|
|
3454
3458
|
let {
|
|
3455
3459
|
component: t,
|
|
3456
3460
|
argTypes: r,
|
|
3457
3461
|
parameters: { docs: n = {} }
|
|
3458
3462
|
} = e, { extractArgTypes: i } = n, s = i && t ? i(t) : {};
|
|
3459
|
-
return s ?
|
|
3460
|
-
}, "enhanceArgTypes"),
|
|
3463
|
+
return s ? Us(s, r) : r;
|
|
3464
|
+
}, "enhanceArgTypes"), co = "storybook/docs", po = `${co}/snippet-rendered`, vn = /* @__PURE__ */ ((e) => (e.AUTO = "auto", e.CODE = "code", e.DYNAMIC = "dynamic", e))(vn || {}), ho = K({ "../../node_modules/react-is/cjs/react-is.production.min.js"(e) {
|
|
3461
3465
|
var t = typeof Symbol == "function" && Symbol.for, r = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, E = t ? Symbol.for("react.suspense") : 60113, D = t ? Symbol.for("react.suspense_list") : 60120, A = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, T = t ? Symbol.for("react.responder") : 60118, J = t ? Symbol.for("react.scope") : 60119;
|
|
3462
3466
|
function w(F) {
|
|
3463
3467
|
if (typeof F == "object" && F !== null) {
|
|
@@ -3519,7 +3523,7 @@ var Zc = Ms((ip, er) => {
|
|
|
3519
3523
|
}, e.isValidElementType = function(F) {
|
|
3520
3524
|
return typeof F == "string" || typeof F == "function" || F === i || F === p || F === o || F === s || F === E || F === D || typeof F == "object" && F !== null && (F.$$typeof === g || F.$$typeof === A || F.$$typeof === c || F.$$typeof === l || F.$$typeof === v || F.$$typeof === b || F.$$typeof === T || F.$$typeof === J || F.$$typeof === B);
|
|
3521
3525
|
}, e.typeOf = w;
|
|
3522
|
-
} }),
|
|
3526
|
+
} }), fo = K({ "../../node_modules/react-is/cjs/react-is.development.js"(e) {
|
|
3523
3527
|
process.env.NODE_ENV !== "production" && function() {
|
|
3524
3528
|
var t = typeof Symbol == "function" && Symbol.for, r = t ? Symbol.for("react.element") : 60103, n = t ? Symbol.for("react.portal") : 60106, i = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, o = t ? Symbol.for("react.profiler") : 60114, c = t ? Symbol.for("react.provider") : 60109, l = t ? Symbol.for("react.context") : 60110, f = t ? Symbol.for("react.async_mode") : 60111, p = t ? Symbol.for("react.concurrent_mode") : 60111, v = t ? Symbol.for("react.forward_ref") : 60112, E = t ? Symbol.for("react.suspense") : 60113, D = t ? Symbol.for("react.suspense_list") : 60120, A = t ? Symbol.for("react.memo") : 60115, g = t ? Symbol.for("react.lazy") : 60116, B = t ? Symbol.for("react.block") : 60121, b = t ? Symbol.for("react.fundamental") : 60117, T = t ? Symbol.for("react.responder") : 60118, J = t ? Symbol.for("react.scope") : 60119;
|
|
3525
3529
|
function w(ee) {
|
|
@@ -3600,8 +3604,8 @@ var Zc = Ms((ip, er) => {
|
|
|
3600
3604
|
e.AsyncMode = F, e.ConcurrentMode = I, e.ContextConsumer = N, e.ContextProvider = j, e.Element = M, e.ForwardRef = te, e.Fragment = $, e.Lazy = ue, e.Memo = he, e.Portal = Fe, e.Profiler = O, e.StrictMode = V, e.Suspense = G, e.isAsyncMode = se, e.isConcurrentMode = re, e.isContextConsumer = P, e.isContextProvider = q, e.isElement = X, e.isForwardRef = Z, e.isFragment = U, e.isLazy = ae, e.isMemo = oe, e.isPortal = de, e.isProfiler = Ce, e.isStrictMode = Ee, e.isSuspense = fe, e.isValidElementType = w, e.typeOf = _;
|
|
3601
3605
|
}();
|
|
3602
3606
|
} }), is = K({ "../../node_modules/react-is/index.js"(e, t) {
|
|
3603
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
3604
|
-
} }),
|
|
3607
|
+
process.env.NODE_ENV === "production" ? t.exports = ho() : t.exports = fo();
|
|
3608
|
+
} }), mo = K({ "../../node_modules/object-assign/index.js"(e, t) {
|
|
3605
3609
|
var r = Object.getOwnPropertySymbols, n = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
3606
3610
|
function s(c) {
|
|
3607
3611
|
if (c == null) throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
@@ -3636,15 +3640,15 @@ var Zc = Ms((ip, er) => {
|
|
|
3636
3640
|
}
|
|
3637
3641
|
return p;
|
|
3638
3642
|
};
|
|
3639
|
-
} }),
|
|
3643
|
+
} }), si = K({ "../../node_modules/prop-types/lib/ReactPropTypesSecret.js"(e, t) {
|
|
3640
3644
|
var r = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
3641
3645
|
t.exports = r;
|
|
3642
3646
|
} }), us = K({ "../../node_modules/prop-types/lib/has.js"(e, t) {
|
|
3643
3647
|
t.exports = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
3644
|
-
} }),
|
|
3648
|
+
} }), yo = K({ "../../node_modules/prop-types/checkPropTypes.js"(e, t) {
|
|
3645
3649
|
var r = function() {
|
|
3646
3650
|
};
|
|
3647
|
-
process.env.NODE_ENV !== "production" && (n =
|
|
3651
|
+
process.env.NODE_ENV !== "production" && (n = si(), i = {}, s = us(), r = function(c) {
|
|
3648
3652
|
var l = "Warning: " + c;
|
|
3649
3653
|
typeof console < "u" && console.error(l);
|
|
3650
3654
|
try {
|
|
@@ -3677,8 +3681,8 @@ var Zc = Ms((ip, er) => {
|
|
|
3677
3681
|
o.resetWarningCache = function() {
|
|
3678
3682
|
process.env.NODE_ENV !== "production" && (i = {});
|
|
3679
3683
|
}, t.exports = o;
|
|
3680
|
-
} }),
|
|
3681
|
-
var r = is(), n =
|
|
3684
|
+
} }), Eo = K({ "../../node_modules/prop-types/factoryWithTypeCheckers.js"(e, t) {
|
|
3685
|
+
var r = is(), n = mo(), i = si(), s = us(), o = yo(), c = function() {
|
|
3682
3686
|
};
|
|
3683
3687
|
process.env.NODE_ENV !== "production" && (c = function(f) {
|
|
3684
3688
|
var p = "Warning: " + f;
|
|
@@ -3927,8 +3931,8 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
3927
3931
|
}
|
|
3928
3932
|
return g.checkPropTypes = o, g.resetWarningCache = o.resetWarningCache, g.PropTypes = g, g;
|
|
3929
3933
|
};
|
|
3930
|
-
} }),
|
|
3931
|
-
var r =
|
|
3934
|
+
} }), Ao = K({ "../../node_modules/prop-types/factoryWithThrowingShims.js"(e, t) {
|
|
3935
|
+
var r = si();
|
|
3932
3936
|
function n() {
|
|
3933
3937
|
}
|
|
3934
3938
|
function i() {
|
|
@@ -3947,14 +3951,14 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
3947
3951
|
var c = { array: s, bigint: s, bool: s, func: s, number: s, object: s, string: s, symbol: s, any: s, arrayOf: o, element: s, elementType: s, instanceOf: o, node: s, objectOf: o, oneOf: o, oneOfType: o, shape: o, exact: o, checkPropTypes: i, resetWarningCache: n };
|
|
3948
3952
|
return c.PropTypes = c, c;
|
|
3949
3953
|
};
|
|
3950
|
-
} }),
|
|
3951
|
-
process.env.NODE_ENV !== "production" ? (r = is(), n = !0, t.exports =
|
|
3954
|
+
} }), go = K({ "../../node_modules/prop-types/index.js"(e, t) {
|
|
3955
|
+
process.env.NODE_ENV !== "production" ? (r = is(), n = !0, t.exports = Eo()(r.isElement, n)) : t.exports = Ao()();
|
|
3952
3956
|
var r, n;
|
|
3953
|
-
} }),
|
|
3957
|
+
} }), Do = K({ "../../node_modules/html-tags/html-tags.json"(e, t) {
|
|
3954
3958
|
t.exports = ["a", "abbr", "address", "area", "article", "aside", "audio", "b", "base", "bdi", "bdo", "blockquote", "body", "br", "button", "canvas", "caption", "cite", "code", "col", "colgroup", "data", "datalist", "dd", "del", "details", "dfn", "dialog", "div", "dl", "dt", "em", "embed", "fieldset", "figcaption", "figure", "footer", "form", "h1", "h2", "h3", "h4", "h5", "h6", "head", "header", "hgroup", "hr", "html", "i", "iframe", "img", "input", "ins", "kbd", "label", "legend", "li", "link", "main", "map", "mark", "math", "menu", "menuitem", "meta", "meter", "nav", "noscript", "object", "ol", "optgroup", "option", "output", "p", "param", "picture", "pre", "progress", "q", "rb", "rp", "rt", "rtc", "ruby", "s", "samp", "script", "search", "section", "select", "slot", "small", "source", "span", "strong", "style", "sub", "summary", "sup", "svg", "table", "tbody", "td", "template", "textarea", "tfoot", "th", "thead", "time", "title", "tr", "track", "u", "ul", "var", "video", "wbr"];
|
|
3955
|
-
} }),
|
|
3956
|
-
t.exports =
|
|
3957
|
-
} }),
|
|
3959
|
+
} }), Co = K({ "../../node_modules/html-tags/index.js"(e, t) {
|
|
3960
|
+
t.exports = Do();
|
|
3961
|
+
} }), Fo = K({ "../../node_modules/estraverse/estraverse.js"(e) {
|
|
3958
3962
|
(function t(r) {
|
|
3959
3963
|
var n, i, s, o, c, l;
|
|
3960
3964
|
function f(_) {
|
|
@@ -4121,7 +4125,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4121
4125
|
return t({});
|
|
4122
4126
|
}, r;
|
|
4123
4127
|
})(e);
|
|
4124
|
-
} }),
|
|
4128
|
+
} }), vo = K({ "../../node_modules/esutils/lib/ast.js"(e, t) {
|
|
4125
4129
|
(function() {
|
|
4126
4130
|
function r(l) {
|
|
4127
4131
|
if (l == null) return !1;
|
|
@@ -4251,7 +4255,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4251
4255
|
}
|
|
4252
4256
|
t.exports = { isDecimalDigit: l, isHexDigit: f, isOctalDigit: p, isWhiteSpace: v, isLineTerminator: E, isIdentifierStartES5: A, isIdentifierPartES5: g, isIdentifierStartES6: B, isIdentifierPartES6: b };
|
|
4253
4257
|
})();
|
|
4254
|
-
} }),
|
|
4258
|
+
} }), So = K({ "../../node_modules/esutils/lib/keyword.js"(e, t) {
|
|
4255
4259
|
(function() {
|
|
4256
4260
|
var r = ss();
|
|
4257
4261
|
function n(A) {
|
|
@@ -4334,11 +4338,11 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4334
4338
|
}
|
|
4335
4339
|
t.exports = { isKeywordES5: i, isKeywordES6: s, isReservedWordES5: o, isReservedWordES6: c, isRestrictedWord: l, isIdentifierNameES5: f, isIdentifierNameES6: v, isIdentifierES5: E, isIdentifierES6: D };
|
|
4336
4340
|
})();
|
|
4337
|
-
} }),
|
|
4341
|
+
} }), xo = K({ "../../node_modules/esutils/lib/utils.js"(e) {
|
|
4338
4342
|
(function() {
|
|
4339
|
-
e.ast =
|
|
4343
|
+
e.ast = vo(), e.code = ss(), e.keyword = So();
|
|
4340
4344
|
})();
|
|
4341
|
-
} }),
|
|
4345
|
+
} }), _o = K({ "../../node_modules/escodegen/node_modules/source-map/lib/base64.js"(e) {
|
|
4342
4346
|
var t = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");
|
|
4343
4347
|
e.encode = function(r) {
|
|
4344
4348
|
if (0 <= r && r < t.length) return t[r];
|
|
@@ -4348,7 +4352,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4348
4352
|
return n <= r && r <= i ? r - n : s <= r && r <= o ? r - s + v : c <= r && r <= l ? r - c + E : r == f ? 62 : r == p ? 63 : -1;
|
|
4349
4353
|
};
|
|
4350
4354
|
} }), as = K({ "../../node_modules/escodegen/node_modules/source-map/lib/base64-vlq.js"(e) {
|
|
4351
|
-
var t =
|
|
4355
|
+
var t = _o(), r = 5, n = 1 << r, i = n - 1, s = n;
|
|
4352
4356
|
function o(l) {
|
|
4353
4357
|
return l < 0 ? (-l << 1) + 1 : (l << 1) + 0;
|
|
4354
4358
|
}
|
|
@@ -4510,7 +4514,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4510
4514
|
}, i.prototype.toArray = function() {
|
|
4511
4515
|
return this._array.slice();
|
|
4512
4516
|
}, e.ArraySet = i;
|
|
4513
|
-
} }),
|
|
4517
|
+
} }), bo = K({ "../../node_modules/escodegen/node_modules/source-map/lib/mapping-list.js"(e) {
|
|
4514
4518
|
var t = or();
|
|
4515
4519
|
function r(i, s) {
|
|
4516
4520
|
var o = i.generatedLine, c = s.generatedLine, l = i.generatedColumn, f = s.generatedColumn;
|
|
@@ -4527,7 +4531,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4527
4531
|
return this._sorted || (this._array.sort(t.compareByGeneratedPositionsInflated), this._sorted = !0), this._array;
|
|
4528
4532
|
}, e.MappingList = n;
|
|
4529
4533
|
} }), ls = K({ "../../node_modules/escodegen/node_modules/source-map/lib/source-map-generator.js"(e) {
|
|
4530
|
-
var t = as(), r = or(), n = os().ArraySet, i =
|
|
4534
|
+
var t = as(), r = or(), n = os().ArraySet, i = bo().MappingList;
|
|
4531
4535
|
function s(o) {
|
|
4532
4536
|
o || (o = {}), this._file = r.getArg(o, "file", null), this._sourceRoot = r.getArg(o, "sourceRoot", null), this._skipValidation = r.getArg(o, "skipValidation", !1), this._sources = new n(), this._names = new n(), this._mappings = new i(), this._sourcesContents = null;
|
|
4533
4537
|
}
|
|
@@ -4599,7 +4603,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4599
4603
|
}, s.prototype.toString = function() {
|
|
4600
4604
|
return JSON.stringify(this.toJSON());
|
|
4601
4605
|
}, e.SourceMapGenerator = s;
|
|
4602
|
-
} }),
|
|
4606
|
+
} }), To = K({ "../../node_modules/escodegen/node_modules/source-map/lib/binary-search.js"(e) {
|
|
4603
4607
|
e.GREATEST_LOWER_BOUND = 1, e.LEAST_UPPER_BOUND = 2;
|
|
4604
4608
|
function t(r, n, i, s, o, c) {
|
|
4605
4609
|
var l = Math.floor((n - r) / 2) + r, f = o(i, s[l], !0);
|
|
@@ -4612,7 +4616,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4612
4616
|
for (; o - 1 >= 0 && i(n[o], n[o - 1], !0) === 0; ) --o;
|
|
4613
4617
|
return o;
|
|
4614
4618
|
};
|
|
4615
|
-
} }),
|
|
4619
|
+
} }), Bo = K({ "../../node_modules/escodegen/node_modules/source-map/lib/quick-sort.js"(e) {
|
|
4616
4620
|
function t(i, s, o) {
|
|
4617
4621
|
var c = i[s];
|
|
4618
4622
|
i[s] = i[o], i[o] = c;
|
|
@@ -4633,8 +4637,8 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4633
4637
|
e.quickSort = function(i, s) {
|
|
4634
4638
|
n(i, s, 0, i.length - 1);
|
|
4635
4639
|
};
|
|
4636
|
-
} }),
|
|
4637
|
-
var t = or(), r =
|
|
4640
|
+
} }), wo = K({ "../../node_modules/escodegen/node_modules/source-map/lib/source-map-consumer.js"(e) {
|
|
4641
|
+
var t = or(), r = To(), n = os().ArraySet, i = as(), s = Bo().quickSort;
|
|
4638
4642
|
function o(p, v) {
|
|
4639
4643
|
var E = p;
|
|
4640
4644
|
return typeof p == "string" && (E = t.parseSourceMapInput(p)), E.sections != null ? new f(E, v) : new c(E, v);
|
|
@@ -4840,7 +4844,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4840
4844
|
}
|
|
4841
4845
|
s(this.__generatedMappings, t.compareByGeneratedPositionsDeflated), s(this.__originalMappings, t.compareByOriginalPositions);
|
|
4842
4846
|
}, e.IndexedSourceMapConsumer = f;
|
|
4843
|
-
} }),
|
|
4847
|
+
} }), Po = K({ "../../node_modules/escodegen/node_modules/source-map/lib/source-node.js"(e) {
|
|
4844
4848
|
var t = ls().SourceMapGenerator, r = or(), n = /(\r?\n)/, i = 10, s = "$$$isSourceNode$$$";
|
|
4845
4849
|
function o(c, l, f, p, v) {
|
|
4846
4850
|
this.children = [], this.sourceContents = {}, this.line = c ?? null, this.column = l ?? null, this.source = f ?? null, this.name = v ?? null, this[s] = !0, p != null && this.add(p);
|
|
@@ -4920,14 +4924,14 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4920
4924
|
f.setSourceContent(g, B);
|
|
4921
4925
|
}), { code: l.code, map: f };
|
|
4922
4926
|
}, e.SourceNode = o;
|
|
4923
|
-
} }),
|
|
4924
|
-
e.SourceMapGenerator = ls().SourceMapGenerator, e.SourceMapConsumer =
|
|
4925
|
-
} }),
|
|
4927
|
+
} }), Io = K({ "../../node_modules/escodegen/node_modules/source-map/source-map.js"(e) {
|
|
4928
|
+
e.SourceMapGenerator = ls().SourceMapGenerator, e.SourceMapConsumer = wo().SourceMapConsumer, e.SourceNode = Po().SourceNode;
|
|
4929
|
+
} }), No = K({ "../../node_modules/escodegen/package.json"(e, t) {
|
|
4926
4930
|
t.exports = { name: "escodegen", description: "ECMAScript code generator", homepage: "http://github.com/estools/escodegen", main: "escodegen.js", bin: { esgenerate: "./bin/esgenerate.js", escodegen: "./bin/escodegen.js" }, files: ["LICENSE.BSD", "README.md", "bin", "escodegen.js", "package.json"], version: "2.1.0", engines: { node: ">=6.0" }, maintainers: [{ name: "Yusuke Suzuki", email: "utatane.tea@gmail.com", web: "http://github.com/Constellation" }], repository: { type: "git", url: "http://github.com/estools/escodegen.git" }, dependencies: { estraverse: "^5.2.0", esutils: "^2.0.2", esprima: "^4.0.1" }, optionalDependencies: { "source-map": "~0.6.1" }, devDependencies: { acorn: "^8.0.4", bluebird: "^3.4.7", "bower-registry-client": "^1.0.0", chai: "^4.2.0", "chai-exclude": "^2.0.2", "commonjs-everywhere": "^0.9.7", gulp: "^4.0.2", "gulp-eslint": "^6.0.0", "gulp-mocha": "^7.0.2", minimist: "^1.2.5", optionator: "^0.9.1", semver: "^7.3.4" }, license: "BSD-2-Clause", scripts: { test: "gulp travis", "unit-test": "gulp test", lint: "gulp lint", release: "node tools/release.js", "build-min": "./node_modules/.bin/cjsify -ma path: tools/entry-point.js > escodegen.browser.min.js", build: "./node_modules/.bin/cjsify -a path: tools/entry-point.js > escodegen.browser.js" } };
|
|
4927
|
-
} }),
|
|
4931
|
+
} }), Ro = K({ "../../node_modules/escodegen/escodegen.js"(e) {
|
|
4928
4932
|
(function() {
|
|
4929
4933
|
var t, r, n, i, s, o, c, l, f, p, v, E, D, A, g, B, b, T, J, w, _, F, I, N, j, M;
|
|
4930
|
-
s =
|
|
4934
|
+
s = Fo(), o = xo(), t = s.Syntax;
|
|
4931
4935
|
function te(a) {
|
|
4932
4936
|
return Ie.Expression.hasOwnProperty(a.type);
|
|
4933
4937
|
}
|
|
@@ -4998,7 +5002,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
4998
5002
|
if (a === 8233) return "\\u2029";
|
|
4999
5003
|
throw new Error("Incorrectly classified character");
|
|
5000
5004
|
}
|
|
5001
|
-
function
|
|
5005
|
+
function zr(a) {
|
|
5002
5006
|
var y, h, m, S;
|
|
5003
5007
|
for (S = E === "double" ? '"' : "'", y = 0, h = a.length; y < h; ++y) if (m = a.charCodeAt(y), m === 39) {
|
|
5004
5008
|
S = '"';
|
|
@@ -5055,12 +5059,12 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5055
5059
|
var y;
|
|
5056
5060
|
y = c, c += l, a(c), c = y;
|
|
5057
5061
|
}
|
|
5058
|
-
function
|
|
5062
|
+
function Yr(a) {
|
|
5059
5063
|
var y;
|
|
5060
5064
|
for (y = a.length - 1; y >= 0 && !o.code.isLineTerminator(a.charCodeAt(y)); --y) ;
|
|
5061
5065
|
return a.length - 1 - y;
|
|
5062
5066
|
}
|
|
5063
|
-
function
|
|
5067
|
+
function Xr(a, y) {
|
|
5064
5068
|
var h, m, S, R, L, z, ne, ve;
|
|
5065
5069
|
for (h = a.split(/\r\n|[\r\n]/), z = Number.MAX_VALUE, m = 1, S = h.length; m < S; ++m) {
|
|
5066
5070
|
for (R = h[m], L = 0; L < R.length && o.code.isWhiteSpace(R.charCodeAt(L)); ) ++L;
|
|
@@ -5077,7 +5081,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5077
5081
|
return N || (h += `
|
|
5078
5082
|
`), h;
|
|
5079
5083
|
}
|
|
5080
|
-
return w.format.indent.adjustMultilineComment && /[\n\r]/.test(a.value) ?
|
|
5084
|
+
return w.format.indent.adjustMultilineComment && /[\n\r]/.test(a.value) ? Xr("/*" + a.value + "*/", y) : "/*" + a.value + "*/";
|
|
5081
5085
|
}
|
|
5082
5086
|
function dr(a, y) {
|
|
5083
5087
|
var h, m, S, R, L, z, ne, ve, ke, ct, pt, Nt, Ar, u;
|
|
@@ -5096,7 +5100,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5096
5100
|
}
|
|
5097
5101
|
if (a.trailingComments) if (N) S = a.trailingComments[0], ve = S.extendedRange, ke = S.range, pt = I.substring(ve[0], ke[0]), u = (pt.match(/\n/g) || []).length, u > 0 ? (y.push(fe(`
|
|
5098
5102
|
`, u)), y.push(je(Qe(S)))) : (y.push(pt), y.push(Qe(S)));
|
|
5099
|
-
else for (L = !ge(be(y).toString()), z = fe(" ",
|
|
5103
|
+
else for (L = !ge(be(y).toString()), z = fe(" ", Yr(be([c, y, l]).toString())), h = 0, m = a.trailingComments.length; h < m; ++h) S = a.trailingComments[h], L ? (h === 0 ? y = [y, l] : y = [y, z], y.push(Qe(S, z))) : y = [y, je(Qe(S))], h !== m - 1 && !ge(be(y).toString()) && (y = [y, `
|
|
5100
5104
|
`]);
|
|
5101
5105
|
return y;
|
|
5102
5106
|
}
|
|
@@ -5193,7 +5197,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5193
5197
|
var h, m;
|
|
5194
5198
|
return h = ["class"], a.id && (h = pe(h, this.generateExpression(a.id, r.Sequence, P))), a.superClass && (m = pe("extends", this.generateExpression(a.superClass, r.Unary, P)), h = pe(h, m)), h.push(g), h.push(this.generateStatement(a.body, ae)), h;
|
|
5195
5199
|
}, DirectiveStatement: function(a, y) {
|
|
5196
|
-
return w.raw && a.raw ? a.raw + this.semicolon(y) :
|
|
5200
|
+
return w.raw && a.raw ? a.raw + this.semicolon(y) : zr(a.directive) + this.semicolon(y);
|
|
5197
5201
|
}, DoWhileStatement: function(a, y) {
|
|
5198
5202
|
var h = pe("do", this.maybeBlock(a.body, U));
|
|
5199
5203
|
return h = this.maybeBlockSuffix(a.body, h), pe(h, ["while" + g + "(", this.generateExpression(a.test, r.Sequence, P), ")" + this.semicolon(y)]);
|
|
@@ -5466,23 +5470,23 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5466
5470
|
}
|
|
5467
5471
|
function Er(a, y) {
|
|
5468
5472
|
var h = Ee(), m, S;
|
|
5469
|
-
return y != null ? (typeof y.indent == "string" && (h.format.indent.style = y.indent), typeof y.base == "number" && (h.format.indent.base = y.base), y = Ue(h, y), l = y.format.indent.style, typeof y.base == "string" ? c = y.base : c = fe(l, y.format.indent.base)) : (y = h, l = y.format.indent.style, c = fe(l, y.format.indent.base)), f = y.format.json, p = y.format.renumber, v = f ? !1 : y.format.hexadecimal, E = f ? "double" : y.format.quotes, D = y.format.escapeless, A = y.format.newline, g = y.format.space, y.format.compact && (A = g = l = c = ""), B = y.format.parentheses, b = y.format.semicolons, T = y.format.safeConcatenation, J = y.directive, _ = f ? null : y.parse, F = y.sourceMap, I = y.sourceCode, N = y.format.preserveBlankLines && I !== null, w = y, F && (e.browser ? i = global.sourceMap.SourceNode : i =
|
|
5473
|
+
return y != null ? (typeof y.indent == "string" && (h.format.indent.style = y.indent), typeof y.base == "number" && (h.format.indent.base = y.base), y = Ue(h, y), l = y.format.indent.style, typeof y.base == "string" ? c = y.base : c = fe(l, y.format.indent.base)) : (y = h, l = y.format.indent.style, c = fe(l, y.format.indent.base)), f = y.format.json, p = y.format.renumber, v = f ? !1 : y.format.hexadecimal, E = f ? "double" : y.format.quotes, D = y.format.escapeless, A = y.format.newline, g = y.format.space, y.format.compact && (A = g = l = c = ""), B = y.format.parentheses, b = y.format.semicolons, T = y.format.safeConcatenation, J = y.directive, _ = f ? null : y.parse, F = y.sourceMap, I = y.sourceCode, N = y.format.preserveBlankLines && I !== null, w = y, F && (e.browser ? i = global.sourceMap.SourceNode : i = Io().SourceNode), m = tt(a), F ? (S = m.toStringWithSourceMap({ file: y.file, sourceRoot: y.sourceMapRoot }), y.sourceContent && S.map.setSourceContent(y.sourceMap, y.sourceContent), y.sourceMapWithCode ? S : S.map.toString()) : (S = { code: m.toString(), map: null }, y.sourceMapWithCode ? S : S.code);
|
|
5470
5474
|
}
|
|
5471
|
-
j = { indent: { style: "", base: 0 }, renumber: !0, hexadecimal: !0, quotes: "auto", escapeless: !0, compact: !0, parentheses: !1, semicolons: !1 }, M = Ee().format, e.version =
|
|
5475
|
+
j = { indent: { style: "", base: 0 }, renumber: !0, hexadecimal: !0, quotes: "auto", escapeless: !0, compact: !0, parentheses: !1, semicolons: !1 }, M = Ee().format, e.version = No().version, e.generate = Er, e.attachComments = s.attachComments, e.Precedence = Ue({}, r), e.browser = !1, e.FORMAT_MINIFY = j, e.FORMAT_DEFAULTS = M;
|
|
5472
5476
|
})();
|
|
5473
|
-
} }),
|
|
5474
|
-
|
|
5475
|
-
function
|
|
5477
|
+
} }), Sn = {};
|
|
5478
|
+
qn(Sn, { Node: () => Qt, Parser: () => Be, Position: () => _t, SourceLocation: () => $t, TokContext: () => Xe, Token: () => Zt, TokenType: () => _e, defaultOptions: () => ir, getLineInfo: () => _n, isIdentifierChar: () => xt, isIdentifierStart: () => dt, isNewLine: () => Ot, keywordTypes: () => nr, lineBreak: () => We, lineBreakG: () => Tt, nonASCIIwhitespace: () => Nr, parse: () => qo, parseExpressionAt: () => Uo, tokContexts: () => we, tokTypes: () => C, tokenizer: () => Go, version: () => In });
|
|
5479
|
+
function xn(e, t) {
|
|
5476
5480
|
for (var r = 65536, n = 0; n < t.length; n += 2) {
|
|
5477
5481
|
if (r += t[n], r > e) return !1;
|
|
5478
5482
|
if (r += t[n + 1], r >= e) return !0;
|
|
5479
5483
|
}
|
|
5480
5484
|
}
|
|
5481
5485
|
function dt(e, t) {
|
|
5482
|
-
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && hs.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
5486
|
+
return e < 65 ? e === 36 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && hs.test(String.fromCharCode(e)) : t === !1 ? !1 : xn(e, ai);
|
|
5483
5487
|
}
|
|
5484
5488
|
function xt(e, t) {
|
|
5485
|
-
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && fs.test(String.fromCharCode(e)) : t === !1 ? !1 :
|
|
5489
|
+
return e < 48 ? e === 36 : e < 58 ? !0 : e < 65 ? !1 : e < 91 ? !0 : e < 97 ? e === 95 : e < 123 ? !0 : e <= 65535 ? e >= 170 && fs.test(String.fromCharCode(e)) : t === !1 ? !1 : xn(e, ai) || xn(e, ds);
|
|
5486
5490
|
}
|
|
5487
5491
|
function He(e, t) {
|
|
5488
5492
|
return new _e(e, { beforeExpr: !0, binop: t });
|
|
@@ -5499,7 +5503,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5499
5503
|
function bt(e) {
|
|
5500
5504
|
return new RegExp("^(?:" + e.replace(/ /g, "|") + ")$");
|
|
5501
5505
|
}
|
|
5502
|
-
function
|
|
5506
|
+
function _n(e, t) {
|
|
5503
5507
|
for (var r = 1, n = 0; ; ) {
|
|
5504
5508
|
Tt.lastIndex = n;
|
|
5505
5509
|
var i = Tt.exec(e);
|
|
@@ -5507,106 +5511,106 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5507
5511
|
else return new _t(r, t - n);
|
|
5508
5512
|
}
|
|
5509
5513
|
}
|
|
5510
|
-
function
|
|
5514
|
+
function ko(e) {
|
|
5511
5515
|
var t = {};
|
|
5512
5516
|
for (var r in ir) t[r] = e && Pr(e, r) ? e[r] : ir[r];
|
|
5513
|
-
if (t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5),
|
|
5517
|
+
if (t.ecmaVersion >= 2015 && (t.ecmaVersion -= 2009), t.allowReserved == null && (t.allowReserved = t.ecmaVersion < 5), bn(t.onToken)) {
|
|
5514
5518
|
var n = t.onToken;
|
|
5515
5519
|
t.onToken = function(i) {
|
|
5516
5520
|
return n.push(i);
|
|
5517
5521
|
};
|
|
5518
5522
|
}
|
|
5519
|
-
return
|
|
5523
|
+
return bn(t.onComment) && (t.onComment = Oo(t, t.onComment)), t;
|
|
5520
5524
|
}
|
|
5521
|
-
function
|
|
5525
|
+
function Oo(e, t) {
|
|
5522
5526
|
return function(r, n, i, s, o, c) {
|
|
5523
5527
|
var l = { type: r ? "Block" : "Line", value: n, start: i, end: s };
|
|
5524
5528
|
e.locations && (l.loc = new $t(this, o, c)), e.ranges && (l.range = [i, s]), t.push(l);
|
|
5525
5529
|
};
|
|
5526
5530
|
}
|
|
5527
|
-
function
|
|
5528
|
-
return Lt | (e ?
|
|
5531
|
+
function Qr(e, t) {
|
|
5532
|
+
return Lt | (e ? Tn : 0) | (t ? Bn : 0);
|
|
5529
5533
|
}
|
|
5530
5534
|
function Cr() {
|
|
5531
5535
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
5532
5536
|
}
|
|
5533
|
-
function
|
|
5537
|
+
function Ci(e, t, r, n) {
|
|
5534
5538
|
return e.type = t, e.end = r, this.options.locations && (e.loc.end = n), this.options.ranges && (e.range[1] = r), e;
|
|
5535
5539
|
}
|
|
5536
|
-
function
|
|
5537
|
-
var t =
|
|
5540
|
+
function Zr(e) {
|
|
5541
|
+
var t = Pn[e] = { binary: bt(ys[e] + " " + wn), nonBinary: { General_Category: bt(wn), Script: bt(Es[e]) } };
|
|
5538
5542
|
t.nonBinary.Script_Extensions = t.nonBinary.Script, t.nonBinary.gc = t.nonBinary.General_Category, t.nonBinary.sc = t.nonBinary.Script, t.nonBinary.scx = t.nonBinary.Script_Extensions;
|
|
5539
5543
|
}
|
|
5540
5544
|
function Fr(e) {
|
|
5541
5545
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
5542
5546
|
}
|
|
5543
|
-
function
|
|
5547
|
+
function Fi(e) {
|
|
5544
5548
|
return e === 36 || e >= 40 && e <= 43 || e === 46 || e === 63 || e >= 91 && e <= 94 || e >= 123 && e <= 125;
|
|
5545
5549
|
}
|
|
5546
|
-
function
|
|
5550
|
+
function Lo(e) {
|
|
5547
5551
|
return dt(e, !0) || e === 36 || e === 95;
|
|
5548
5552
|
}
|
|
5549
|
-
function
|
|
5553
|
+
function jo(e) {
|
|
5550
5554
|
return xt(e, !0) || e === 36 || e === 95 || e === 8204 || e === 8205;
|
|
5551
5555
|
}
|
|
5552
5556
|
function cs(e) {
|
|
5553
5557
|
return e >= 65 && e <= 90 || e >= 97 && e <= 122;
|
|
5554
5558
|
}
|
|
5555
|
-
function
|
|
5559
|
+
function $o(e) {
|
|
5556
5560
|
return e >= 0 && e <= 1114111;
|
|
5557
5561
|
}
|
|
5558
|
-
function
|
|
5562
|
+
function Mo(e) {
|
|
5559
5563
|
return e === 100 || e === 68 || e === 115 || e === 83 || e === 119 || e === 87;
|
|
5560
5564
|
}
|
|
5561
5565
|
function ps(e) {
|
|
5562
5566
|
return cs(e) || e === 95;
|
|
5563
5567
|
}
|
|
5564
|
-
function
|
|
5568
|
+
function Vo(e) {
|
|
5565
5569
|
return ps(e) || Ir(e);
|
|
5566
5570
|
}
|
|
5567
5571
|
function Ir(e) {
|
|
5568
5572
|
return e >= 48 && e <= 57;
|
|
5569
5573
|
}
|
|
5570
|
-
function
|
|
5574
|
+
function vi(e) {
|
|
5571
5575
|
return e >= 48 && e <= 57 || e >= 65 && e <= 70 || e >= 97 && e <= 102;
|
|
5572
5576
|
}
|
|
5573
|
-
function
|
|
5577
|
+
function Si(e) {
|
|
5574
5578
|
return e >= 65 && e <= 70 ? 10 + (e - 65) : e >= 97 && e <= 102 ? 10 + (e - 97) : e - 48;
|
|
5575
5579
|
}
|
|
5576
|
-
function
|
|
5580
|
+
function xi(e) {
|
|
5577
5581
|
return e >= 48 && e <= 55;
|
|
5578
5582
|
}
|
|
5579
|
-
function
|
|
5583
|
+
function Jo(e, t) {
|
|
5580
5584
|
return t ? parseInt(e, 8) : parseFloat(e.replace(/_/g, ""));
|
|
5581
5585
|
}
|
|
5582
|
-
function
|
|
5586
|
+
function _i(e) {
|
|
5583
5587
|
return typeof BigInt != "function" ? null : BigInt(e.replace(/_/g, ""));
|
|
5584
5588
|
}
|
|
5585
|
-
function
|
|
5589
|
+
function en(e) {
|
|
5586
5590
|
return e <= 65535 ? String.fromCharCode(e) : (e -= 65536, String.fromCharCode((e >> 10) + 55296, (e & 1023) + 56320));
|
|
5587
5591
|
}
|
|
5588
|
-
function
|
|
5592
|
+
function qo(e, t) {
|
|
5589
5593
|
return Be.parse(e, t);
|
|
5590
5594
|
}
|
|
5591
|
-
function
|
|
5595
|
+
function Uo(e, t, r) {
|
|
5592
5596
|
return Be.parseExpressionAt(e, t, r);
|
|
5593
5597
|
}
|
|
5594
|
-
function
|
|
5598
|
+
function Go(e, t) {
|
|
5595
5599
|
return Be.tokenizer(e, t);
|
|
5596
5600
|
}
|
|
5597
|
-
var vr, Sr,
|
|
5598
|
-
vr = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Sr = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",
|
|
5601
|
+
var vr, Sr, bi, Ti, xr, tn, hs, fs, ai, ds, _e, ze, Ge, nr, C, We, Tt, Nr, Ye, rn, ms, Bi, bn, _t, $t, ir, Rt, Lt, _r, Tn, Bn, nn, un, sn, an, on, br, rt, ln, cn, pn, Be, Et, Ve, wi, ye, Tr, Pi, Ii, kt, Br, hn, nt, De, Ni, zt, ft, Ri, Qt, Yt, Xe, we, Xt, fn, dn, ki, ys, wn, mn, yn, Oi, Es, Pn, ce, it, Zt, Se, En, In, Nn = Qs({ "../../node_modules/acorn/dist/acorn.mjs"() {
|
|
5602
|
+
vr = { 3: "abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile", 5: "class enum extends super const export import", 6: "enum", strict: "implements interface let package private protected public static yield", strictBind: "eval arguments" }, Sr = "break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this", bi = { 5: Sr, "5module": Sr + " export import", 6: Sr + " const class extends export import super" }, Ti = /^in(stanceof)?$/, xr = "ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࢠ-ࢴࢶ-ࣇऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭋᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-Ⱞⰰ-ⱞⱠ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-鿼ꀀ-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꞿꟂ-ꟊꟵ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ", tn = "·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࣓-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-ໍ໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜔ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠐-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿᫀᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷹᷻-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_", hs = new RegExp("[" + xr + "]"), fs = new RegExp("[" + xr + tn + "]"), xr = tn = null, ai = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 157, 310, 10, 21, 11, 7, 153, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 107, 20, 28, 22, 13, 52, 76, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 85, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 230, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 35, 56, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 190, 0, 80, 921, 103, 110, 18, 195, 2749, 1070, 4050, 582, 8634, 568, 8, 30, 114, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8952, 286, 50, 2, 18, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 2357, 44, 11, 6, 17, 0, 370, 43, 1301, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42717, 35, 4148, 12, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938], ds = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 154, 10, 176, 2, 54, 14, 32, 9, 16, 3, 46, 10, 54, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 161, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 19306, 9, 135, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 5319, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 262, 6, 10, 9, 419, 13, 1495, 6, 110, 6, 6, 9, 4759, 9, 787719, 239], _e = function(e, t) {
|
|
5599
5603
|
t === void 0 && (t = {}), this.label = e, this.keyword = t.keyword, this.beforeExpr = !!t.beforeExpr, this.startsExpr = !!t.startsExpr, this.isLoop = !!t.isLoop, this.isAssign = !!t.isAssign, this.prefix = !!t.prefix, this.postfix = !!t.postfix, this.binop = t.binop || null, this.updateContext = null;
|
|
5600
|
-
}, ze = { beforeExpr: !0 }, Ge = { startsExpr: !0 }, nr = {}, C = { num: new _e("num", Ge), regexp: new _e("regexp", Ge), string: new _e("string", Ge), name: new _e("name", Ge), eof: new _e("eof"), bracketL: new _e("[", { beforeExpr: !0, startsExpr: !0 }), bracketR: new _e("]"), braceL: new _e("{", { beforeExpr: !0, startsExpr: !0 }), braceR: new _e("}"), parenL: new _e("(", { beforeExpr: !0, startsExpr: !0 }), parenR: new _e(")"), comma: new _e(",", ze), semi: new _e(";", ze), colon: new _e(":", ze), dot: new _e("."), question: new _e("?", ze), questionDot: new _e("?."), arrow: new _e("=>", ze), template: new _e("template"), invalidTemplate: new _e("invalidTemplate"), ellipsis: new _e("...", ze), backQuote: new _e("`", Ge), dollarBraceL: new _e("${", { beforeExpr: !0, startsExpr: !0 }), eq: new _e("=", { beforeExpr: !0, isAssign: !0 }), assign: new _e("_=", { beforeExpr: !0, isAssign: !0 }), incDec: new _e("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new _e("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), logicalOR: He("||", 1), logicalAND: He("&&", 2), bitwiseOR: He("|", 3), bitwiseXOR: He("^", 4), bitwiseAND: He("&", 5), equality: He("==/!=/===/!==", 6), relational: He("</>/<=/>=", 7), bitShift: He("<</>>/>>>", 8), plusMin: new _e("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }), modulo: He("%", 10), star: He("*", 10), slash: He("/", 10), starstar: new _e("**", { beforeExpr: !0 }), coalesce: He("??", 1), _break: xe("break"), _case: xe("case", ze), _catch: xe("catch"), _continue: xe("continue"), _debugger: xe("debugger"), _default: xe("default", ze), _do: xe("do", { isLoop: !0, beforeExpr: !0 }), _else: xe("else", ze), _finally: xe("finally"), _for: xe("for", { isLoop: !0 }), _function: xe("function", Ge), _if: xe("if"), _return: xe("return", ze), _switch: xe("switch"), _throw: xe("throw", ze), _try: xe("try"), _var: xe("var"), _const: xe("const"), _while: xe("while", { isLoop: !0 }), _with: xe("with"), _new: xe("new", { beforeExpr: !0, startsExpr: !0 }), _this: xe("this", Ge), _super: xe("super", Ge), _class: xe("class", Ge), _extends: xe("extends", ze), _export: xe("export"), _import: xe("import", Ge), _null: xe("null", Ge), _true: xe("true", Ge), _false: xe("false", Ge), _in: xe("in", { beforeExpr: !0, binop: 7 }), _instanceof: xe("instanceof", { beforeExpr: !0, binop: 7 }), _typeof: xe("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _void: xe("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _delete: xe("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 }) }, We = /\r\n?|\n|\u2028|\u2029/, Tt = new RegExp(We.source, "g"), Nr = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ye = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,
|
|
5601
|
-
return
|
|
5604
|
+
}, ze = { beforeExpr: !0 }, Ge = { startsExpr: !0 }, nr = {}, C = { num: new _e("num", Ge), regexp: new _e("regexp", Ge), string: new _e("string", Ge), name: new _e("name", Ge), eof: new _e("eof"), bracketL: new _e("[", { beforeExpr: !0, startsExpr: !0 }), bracketR: new _e("]"), braceL: new _e("{", { beforeExpr: !0, startsExpr: !0 }), braceR: new _e("}"), parenL: new _e("(", { beforeExpr: !0, startsExpr: !0 }), parenR: new _e(")"), comma: new _e(",", ze), semi: new _e(";", ze), colon: new _e(":", ze), dot: new _e("."), question: new _e("?", ze), questionDot: new _e("?."), arrow: new _e("=>", ze), template: new _e("template"), invalidTemplate: new _e("invalidTemplate"), ellipsis: new _e("...", ze), backQuote: new _e("`", Ge), dollarBraceL: new _e("${", { beforeExpr: !0, startsExpr: !0 }), eq: new _e("=", { beforeExpr: !0, isAssign: !0 }), assign: new _e("_=", { beforeExpr: !0, isAssign: !0 }), incDec: new _e("++/--", { prefix: !0, postfix: !0, startsExpr: !0 }), prefix: new _e("!/~", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), logicalOR: He("||", 1), logicalAND: He("&&", 2), bitwiseOR: He("|", 3), bitwiseXOR: He("^", 4), bitwiseAND: He("&", 5), equality: He("==/!=/===/!==", 6), relational: He("</>/<=/>=", 7), bitShift: He("<</>>/>>>", 8), plusMin: new _e("+/-", { beforeExpr: !0, binop: 9, prefix: !0, startsExpr: !0 }), modulo: He("%", 10), star: He("*", 10), slash: He("/", 10), starstar: new _e("**", { beforeExpr: !0 }), coalesce: He("??", 1), _break: xe("break"), _case: xe("case", ze), _catch: xe("catch"), _continue: xe("continue"), _debugger: xe("debugger"), _default: xe("default", ze), _do: xe("do", { isLoop: !0, beforeExpr: !0 }), _else: xe("else", ze), _finally: xe("finally"), _for: xe("for", { isLoop: !0 }), _function: xe("function", Ge), _if: xe("if"), _return: xe("return", ze), _switch: xe("switch"), _throw: xe("throw", ze), _try: xe("try"), _var: xe("var"), _const: xe("const"), _while: xe("while", { isLoop: !0 }), _with: xe("with"), _new: xe("new", { beforeExpr: !0, startsExpr: !0 }), _this: xe("this", Ge), _super: xe("super", Ge), _class: xe("class", Ge), _extends: xe("extends", ze), _export: xe("export"), _import: xe("import", Ge), _null: xe("null", Ge), _true: xe("true", Ge), _false: xe("false", Ge), _in: xe("in", { beforeExpr: !0, binop: 7 }), _instanceof: xe("instanceof", { beforeExpr: !0, binop: 7 }), _typeof: xe("typeof", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _void: xe("void", { beforeExpr: !0, prefix: !0, startsExpr: !0 }), _delete: xe("delete", { beforeExpr: !0, prefix: !0, startsExpr: !0 }) }, We = /\r\n?|\n|\u2028|\u2029/, Tt = new RegExp(We.source, "g"), Nr = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/, Ye = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g, rn = Object.prototype, ms = rn.hasOwnProperty, Bi = rn.toString, bn = Array.isArray || function(e) {
|
|
5605
|
+
return Bi.call(e) === "[object Array]";
|
|
5602
5606
|
}, _t = function(e, t) {
|
|
5603
5607
|
this.line = e, this.column = t;
|
|
5604
5608
|
}, _t.prototype.offset = function(e) {
|
|
5605
5609
|
return new _t(this.line, this.column + e);
|
|
5606
5610
|
}, $t = function(e, t, r) {
|
|
5607
5611
|
this.start = t, this.end = r, e.sourceFile !== null && (this.source = e.sourceFile);
|
|
5608
|
-
}, ir = { ecmaVersion: 10, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowAwaitOutsideFunction: !1, allowHashBang: !1, locations: !1, onToken: null, onComment: null, ranges: !1, program: null, sourceFile: null, directSourceFile: null, preserveParens: !1 }, Rt = 1, Lt = 2, _r = Rt | Lt,
|
|
5609
|
-
this.options = e =
|
|
5612
|
+
}, ir = { ecmaVersion: 10, sourceType: "script", onInsertedSemicolon: null, onTrailingComma: null, allowReserved: null, allowReturnOutsideFunction: !1, allowImportExportEverywhere: !1, allowAwaitOutsideFunction: !1, allowHashBang: !1, locations: !1, onToken: null, onComment: null, ranges: !1, program: null, sourceFile: null, directSourceFile: null, preserveParens: !1 }, Rt = 1, Lt = 2, _r = Rt | Lt, Tn = 4, Bn = 8, nn = 16, un = 32, sn = 64, an = 128, on = 0, br = 1, rt = 2, ln = 3, cn = 4, pn = 5, Be = function(e, t, r) {
|
|
5613
|
+
this.options = e = ko(e), this.sourceFile = e.sourceFile, this.keywords = bt(bi[e.ecmaVersion >= 6 ? 6 : e.sourceType === "module" ? "5module" : 5]);
|
|
5610
5614
|
var n = "";
|
|
5611
5615
|
if (e.allowReserved !== !0) {
|
|
5612
5616
|
for (var i = e.ecmaVersion; !(n = vr[i]); i--) ;
|
|
@@ -5622,13 +5626,13 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5622
5626
|
}, Et.inFunction.get = function() {
|
|
5623
5627
|
return (this.currentVarScope().flags & Lt) > 0;
|
|
5624
5628
|
}, Et.inGenerator.get = function() {
|
|
5625
|
-
return (this.currentVarScope().flags & wn) > 0;
|
|
5626
|
-
}, Et.inAsync.get = function() {
|
|
5627
5629
|
return (this.currentVarScope().flags & Bn) > 0;
|
|
5630
|
+
}, Et.inAsync.get = function() {
|
|
5631
|
+
return (this.currentVarScope().flags & Tn) > 0;
|
|
5628
5632
|
}, Et.allowSuper.get = function() {
|
|
5629
|
-
return (this.currentThisScope().flags &
|
|
5633
|
+
return (this.currentThisScope().flags & sn) > 0;
|
|
5630
5634
|
}, Et.allowDirectSuper.get = function() {
|
|
5631
|
-
return (this.currentThisScope().flags &
|
|
5635
|
+
return (this.currentThisScope().flags & an) > 0;
|
|
5632
5636
|
}, Et.treatFunctionsAsVar.get = function() {
|
|
5633
5637
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
5634
5638
|
}, Be.prototype.inNonArrowFunction = function() {
|
|
@@ -5644,10 +5648,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5644
5648
|
return n.nextToken(), n.parseExpression();
|
|
5645
5649
|
}, Be.tokenizer = function(e, t) {
|
|
5646
5650
|
return new this(t, e);
|
|
5647
|
-
}, Object.defineProperties(Be.prototype, Et), Ve = Be.prototype,
|
|
5651
|
+
}, Object.defineProperties(Be.prototype, Et), Ve = Be.prototype, wi = /^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/, Ve.strictDirective = function(e) {
|
|
5648
5652
|
for (; ; ) {
|
|
5649
5653
|
Ye.lastIndex = e, e += Ye.exec(this.input)[0].length;
|
|
5650
|
-
var t =
|
|
5654
|
+
var t = wi.exec(this.input.slice(e));
|
|
5651
5655
|
if (!t) return !1;
|
|
5652
5656
|
if ((t[1] || t[2]) === "use strict") {
|
|
5653
5657
|
Ye.lastIndex = e + t[0].length;
|
|
@@ -5702,7 +5706,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5702
5706
|
this.raiseRecoverable(this.undefinedExports[s].start, "Export '" + s + "' is not defined");
|
|
5703
5707
|
}
|
|
5704
5708
|
return this.adaptDirectivePrologue(e.body), this.next(), e.sourceType = this.options.sourceType, this.finishNode(e, "Program");
|
|
5705
|
-
}, Tr = { kind: "loop" },
|
|
5709
|
+
}, Tr = { kind: "loop" }, Pi = { kind: "switch" }, ye.isLet = function(e) {
|
|
5706
5710
|
if (this.options.ecmaVersion < 6 || !this.isContextual("let")) return !1;
|
|
5707
5711
|
Ye.lastIndex = this.pos;
|
|
5708
5712
|
var t = Ye.exec(this.input), r = this.pos + t[0].length, n = this.input.charCodeAt(r);
|
|
@@ -5712,7 +5716,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5712
5716
|
if (dt(n, !0)) {
|
|
5713
5717
|
for (var i = r + 1; xt(this.input.charCodeAt(i), !0); ) ++i;
|
|
5714
5718
|
var s = this.input.slice(r, i);
|
|
5715
|
-
if (!
|
|
5719
|
+
if (!Ti.test(s)) return !0;
|
|
5716
5720
|
}
|
|
5717
5721
|
return !1;
|
|
5718
5722
|
}, ye.isAsyncFunction = function() {
|
|
@@ -5800,7 +5804,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5800
5804
|
}, ye.parseReturnStatement = function(e) {
|
|
5801
5805
|
return !this.inFunction && !this.options.allowReturnOutsideFunction && this.raise(this.start, "'return' outside of function"), this.next(), this.eat(C.semi) || this.insertSemicolon() ? e.argument = null : (e.argument = this.parseExpression(), this.semicolon()), this.finishNode(e, "ReturnStatement");
|
|
5802
5806
|
}, ye.parseSwitchStatement = function(e) {
|
|
5803
|
-
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(C.braceL), this.labels.push(
|
|
5807
|
+
this.next(), e.discriminant = this.parseParenExpression(), e.cases = [], this.expect(C.braceL), this.labels.push(Pi), this.enterScope(0);
|
|
5804
5808
|
for (var t, r = !1; this.type !== C.braceR; ) if (this.type === C._case || this.type === C._default) {
|
|
5805
5809
|
var n = this.type === C._case;
|
|
5806
5810
|
t && this.finishNode(t, "SwitchCase"), e.cases.push(t = this.startNode()), t.consequent = [], this.next(), n ? t.test = this.parseExpression() : (r && this.raiseRecoverable(this.lastTokStart, "Multiple default clauses"), r = !0, t.test = null), this.expect(C.colon);
|
|
@@ -5808,13 +5812,13 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5808
5812
|
return this.exitScope(), t && this.finishNode(t, "SwitchCase"), this.next(), this.labels.pop(), this.finishNode(e, "SwitchStatement");
|
|
5809
5813
|
}, ye.parseThrowStatement = function(e) {
|
|
5810
5814
|
return this.next(), We.test(this.input.slice(this.lastTokEnd, this.start)) && this.raise(this.lastTokEnd, "Illegal newline after throw"), e.argument = this.parseExpression(), this.semicolon(), this.finishNode(e, "ThrowStatement");
|
|
5811
|
-
},
|
|
5815
|
+
}, Ii = [], ye.parseTryStatement = function(e) {
|
|
5812
5816
|
if (this.next(), e.block = this.parseBlock(), e.handler = null, this.type === C._catch) {
|
|
5813
5817
|
var t = this.startNode();
|
|
5814
5818
|
if (this.next(), this.eat(C.parenL)) {
|
|
5815
5819
|
t.param = this.parseBindingAtom();
|
|
5816
5820
|
var r = t.param.type === "Identifier";
|
|
5817
|
-
this.enterScope(r ?
|
|
5821
|
+
this.enterScope(r ? un : 0), this.checkLVal(t.param, r ? cn : rt), this.expect(C.parenR);
|
|
5818
5822
|
} else this.options.ecmaVersion < 10 && this.unexpected(), t.param = null, this.enterScope(0);
|
|
5819
5823
|
t.body = this.parseBlock(!1), this.exitScope(), e.handler = this.finishNode(t, "CatchClause");
|
|
5820
5824
|
}
|
|
@@ -5859,10 +5863,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5859
5863
|
return e;
|
|
5860
5864
|
}, ye.parseVarId = function(e, t) {
|
|
5861
5865
|
e.id = this.parseBindingAtom(), this.checkLVal(e.id, t === "var" ? br : rt, !1);
|
|
5862
|
-
}, kt = 1, Br = 2,
|
|
5863
|
-
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !n) && (this.type === C.star && t & Br && this.unexpected(), e.generator = this.eat(C.star)), this.options.ecmaVersion >= 8 && (e.async = !!n), t & kt && (e.id = t &
|
|
5866
|
+
}, kt = 1, Br = 2, hn = 4, ye.parseFunction = function(e, t, r, n) {
|
|
5867
|
+
this.initFunction(e), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !n) && (this.type === C.star && t & Br && this.unexpected(), e.generator = this.eat(C.star)), this.options.ecmaVersion >= 8 && (e.async = !!n), t & kt && (e.id = t & hn && this.type !== C.name ? null : this.parseIdent(), e.id && !(t & Br) && this.checkLVal(e.id, this.strict || e.generator || e.async ? this.treatFunctionsAsVar ? br : rt : ln));
|
|
5864
5868
|
var i = this.yieldPos, s = this.awaitPos, o = this.awaitIdentPos;
|
|
5865
|
-
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
5869
|
+
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Qr(e.async, e.generator)), t & kt || (e.id = this.type === C.name ? this.parseIdent() : null), this.parseFunctionParams(e), this.parseFunctionBody(e, r, !1), this.yieldPos = i, this.awaitPos = s, this.awaitIdentPos = o, this.finishNode(e, t & kt ? "FunctionDeclaration" : "FunctionExpression");
|
|
5866
5870
|
}, ye.parseFunctionParams = function(e) {
|
|
5867
5871
|
this.expect(C.parenL), e.params = this.parseBindingList(C.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams();
|
|
5868
5872
|
}, ye.parseClass = function(e, t) {
|
|
@@ -5901,7 +5905,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5901
5905
|
var r;
|
|
5902
5906
|
if (this.type === C._function || (r = this.isAsyncFunction())) {
|
|
5903
5907
|
var n = this.startNode();
|
|
5904
|
-
this.next(), r && this.next(), e.declaration = this.parseFunction(n, kt |
|
|
5908
|
+
this.next(), r && this.next(), e.declaration = this.parseFunction(n, kt | hn, !1, r);
|
|
5905
5909
|
} else if (this.type === C._class) {
|
|
5906
5910
|
var i = this.startNode();
|
|
5907
5911
|
e.declaration = this.parseClass(i, "nullableID");
|
|
@@ -5952,7 +5956,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
5952
5956
|
}
|
|
5953
5957
|
return t;
|
|
5954
5958
|
}, ye.parseImport = function(e) {
|
|
5955
|
-
return this.next(), this.type === C.string ? (e.specifiers =
|
|
5959
|
+
return this.next(), this.type === C.string ? (e.specifiers = Ii, e.source = this.parseExprAtom()) : (e.specifiers = this.parseImportSpecifiers(), this.expectContextual("from"), e.source = this.type === C.string ? this.parseExprAtom() : this.unexpected()), this.semicolon(), this.finishNode(e, "ImportDeclaration");
|
|
5956
5960
|
}, ye.parseImportSpecifiers = function() {
|
|
5957
5961
|
var e = [], t = !0;
|
|
5958
5962
|
if (this.type === C.name) {
|
|
@@ -6062,9 +6066,9 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6062
6066
|
var n = this.startNodeAt(e, t);
|
|
6063
6067
|
return n.left = r, n.right = this.parseMaybeAssign(), this.finishNode(n, "AssignmentPattern");
|
|
6064
6068
|
}, nt.checkLVal = function(e, t, r) {
|
|
6065
|
-
switch (t === void 0 && (t =
|
|
6069
|
+
switch (t === void 0 && (t = on), e.type) {
|
|
6066
6070
|
case "Identifier":
|
|
6067
|
-
t === rt && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (t ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (Pr(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), r[e.name] = !0), t !==
|
|
6071
|
+
t === rt && e.name === "let" && this.raiseRecoverable(e.start, "let is disallowed as a lexically bound name"), this.strict && this.reservedWordsStrictBind.test(e.name) && this.raiseRecoverable(e.start, (t ? "Binding " : "Assigning to ") + e.name + " in strict mode"), r && (Pr(r, e.name) && this.raiseRecoverable(e.start, "Argument name clash"), r[e.name] = !0), t !== on && t !== pn && this.declareName(e.name, t, e.start);
|
|
6068
6072
|
break;
|
|
6069
6073
|
case "ChainExpression":
|
|
6070
6074
|
this.raiseRecoverable(e.start, "Optional chaining cannot appear in left-hand side");
|
|
@@ -6324,7 +6328,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6324
6328
|
return e;
|
|
6325
6329
|
}, De.parseParenArrowList = function(e, t, r) {
|
|
6326
6330
|
return this.parseArrowExpression(this.startNodeAt(e, t), r);
|
|
6327
|
-
},
|
|
6331
|
+
}, Ni = [], De.parseNew = function() {
|
|
6328
6332
|
this.containsEsc && this.raiseRecoverable(this.start, "Escape sequence in keyword new");
|
|
6329
6333
|
var e = this.startNode(), t = this.parseIdent(!0);
|
|
6330
6334
|
if (this.options.ecmaVersion >= 6 && this.eat(C.dot)) {
|
|
@@ -6333,7 +6337,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6333
6337
|
return e.property = this.parseIdent(!0), e.property.name !== "target" && this.raiseRecoverable(e.property.start, "The only valid meta property for new is 'new.target'"), r && this.raiseRecoverable(e.start, "'new.target' must not contain escaped characters"), this.inNonArrowFunction() || this.raiseRecoverable(e.start, "'new.target' can only be used in functions"), this.finishNode(e, "MetaProperty");
|
|
6334
6338
|
}
|
|
6335
6339
|
var n = this.start, i = this.startLoc, s = this.type === C._import;
|
|
6336
|
-
return e.callee = this.parseSubscripts(this.parseExprAtom(), n, i, !0), s && e.callee.type === "ImportExpression" && this.raise(n, "Cannot use new with import()"), this.eat(C.parenL) ? e.arguments = this.parseExprList(C.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments =
|
|
6340
|
+
return e.callee = this.parseSubscripts(this.parseExprAtom(), n, i, !0), s && e.callee.type === "ImportExpression" && this.raise(n, "Cannot use new with import()"), this.eat(C.parenL) ? e.arguments = this.parseExprList(C.parenR, this.options.ecmaVersion >= 8, !1) : e.arguments = Ni, this.finishNode(e, "NewExpression");
|
|
6337
6341
|
}, De.parseTemplateElement = function(e) {
|
|
6338
6342
|
var t = e.isTagged, r = this.startNode();
|
|
6339
6343
|
return this.type === C.invalidTemplate ? (t || this.raiseRecoverable(this.start, "Bad escape sequence in untagged template literal"), r.value = { raw: this.value, cooked: null }) : r.value = { raw: this.input.slice(this.start, this.end).replace(/\r\n?/g, `
|
|
@@ -6385,10 +6389,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6385
6389
|
e.id = null, this.options.ecmaVersion >= 6 && (e.generator = e.expression = !1), this.options.ecmaVersion >= 8 && (e.async = !1);
|
|
6386
6390
|
}, De.parseMethod = function(e, t, r) {
|
|
6387
6391
|
var n = this.startNode(), i = this.yieldPos, s = this.awaitPos, o = this.awaitIdentPos;
|
|
6388
|
-
return this.initFunction(n), this.options.ecmaVersion >= 6 && (n.generator = e), this.options.ecmaVersion >= 8 && (n.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(
|
|
6392
|
+
return this.initFunction(n), this.options.ecmaVersion >= 6 && (n.generator = e), this.options.ecmaVersion >= 8 && (n.async = !!t), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Qr(t, n.generator) | sn | (r ? an : 0)), this.expect(C.parenL), n.params = this.parseBindingList(C.parenR, !1, this.options.ecmaVersion >= 8), this.checkYieldAwaitInDefaultParams(), this.parseFunctionBody(n, !1, !0), this.yieldPos = i, this.awaitPos = s, this.awaitIdentPos = o, this.finishNode(n, "FunctionExpression");
|
|
6389
6393
|
}, De.parseArrowExpression = function(e, t, r) {
|
|
6390
6394
|
var n = this.yieldPos, i = this.awaitPos, s = this.awaitIdentPos;
|
|
6391
|
-
return this.enterScope(
|
|
6395
|
+
return this.enterScope(Qr(r, !1) | nn), this.initFunction(e), this.options.ecmaVersion >= 8 && (e.async = !!r), this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, e.params = this.toAssignableList(t, !0), this.parseFunctionBody(e, !0, !1), this.yieldPos = n, this.awaitPos = i, this.awaitIdentPos = s, this.finishNode(e, "ArrowFunctionExpression");
|
|
6392
6396
|
}, De.parseFunctionBody = function(e, t, r) {
|
|
6393
6397
|
var n = t && this.type !== C.braceL, i = this.strict, s = !1;
|
|
6394
6398
|
if (n) e.body = this.parseMaybeAssign(), e.expression = !0, this.checkParams(e, !1);
|
|
@@ -6396,7 +6400,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6396
6400
|
var o = this.options.ecmaVersion >= 7 && !this.isSimpleParamList(e.params);
|
|
6397
6401
|
(!i || o) && (s = this.strictDirective(this.end), s && o && this.raiseRecoverable(e.start, "Illegal 'use strict' directive in function with non-simple parameter list"));
|
|
6398
6402
|
var c = this.labels;
|
|
6399
|
-
this.labels = [], s && (this.strict = !0), this.checkParams(e, !i && !s && !t && !r && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLVal(e.id,
|
|
6403
|
+
this.labels = [], s && (this.strict = !0), this.checkParams(e, !i && !s && !t && !r && this.isSimpleParamList(e.params)), this.strict && e.id && this.checkLVal(e.id, pn), e.body = this.parseBlock(!1, void 0, s && !i), e.expression = !1, this.adaptDirectivePrologue(e.body.body), this.labels = c;
|
|
6400
6404
|
}
|
|
6401
6405
|
this.exitScope();
|
|
6402
6406
|
}, De.isSimpleParamList = function(e) {
|
|
@@ -6436,16 +6440,16 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6436
6440
|
var e = this.startNode();
|
|
6437
6441
|
return this.next(), e.argument = this.parseMaybeUnary(null, !1), this.finishNode(e, "AwaitExpression");
|
|
6438
6442
|
}, zt = Be.prototype, zt.raise = function(e, t) {
|
|
6439
|
-
var r =
|
|
6443
|
+
var r = _n(this.input, e);
|
|
6440
6444
|
t += " (" + r.line + ":" + r.column + ")";
|
|
6441
6445
|
var n = new SyntaxError(t);
|
|
6442
6446
|
throw n.pos = e, n.loc = r, n.raisedAt = this.pos, n;
|
|
6443
6447
|
}, zt.raiseRecoverable = zt.raise, zt.curPosition = function() {
|
|
6444
6448
|
if (this.options.locations) return new _t(this.curLine, this.pos - this.lineStart);
|
|
6445
|
-
}, ft = Be.prototype,
|
|
6449
|
+
}, ft = Be.prototype, Ri = function(e) {
|
|
6446
6450
|
this.flags = e, this.var = [], this.lexical = [], this.functions = [];
|
|
6447
6451
|
}, ft.enterScope = function(e) {
|
|
6448
|
-
this.scopeStack.push(new
|
|
6452
|
+
this.scopeStack.push(new Ri(e));
|
|
6449
6453
|
}, ft.exitScope = function() {
|
|
6450
6454
|
this.scopeStack.pop();
|
|
6451
6455
|
}, ft.treatFunctionsAsVarInScope = function(e) {
|
|
@@ -6455,15 +6459,15 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6455
6459
|
if (t === rt) {
|
|
6456
6460
|
var i = this.currentScope();
|
|
6457
6461
|
n = i.lexical.indexOf(e) > -1 || i.functions.indexOf(e) > -1 || i.var.indexOf(e) > -1, i.lexical.push(e), this.inModule && i.flags & Rt && delete this.undefinedExports[e];
|
|
6458
|
-
} else if (t ===
|
|
6462
|
+
} else if (t === cn) {
|
|
6459
6463
|
var s = this.currentScope();
|
|
6460
6464
|
s.lexical.push(e);
|
|
6461
|
-
} else if (t ===
|
|
6465
|
+
} else if (t === ln) {
|
|
6462
6466
|
var o = this.currentScope();
|
|
6463
6467
|
this.treatFunctionsAsVar ? n = o.lexical.indexOf(e) > -1 : n = o.lexical.indexOf(e) > -1 || o.var.indexOf(e) > -1, o.functions.push(e);
|
|
6464
6468
|
} else for (var c = this.scopeStack.length - 1; c >= 0; --c) {
|
|
6465
6469
|
var l = this.scopeStack[c];
|
|
6466
|
-
if (l.lexical.indexOf(e) > -1 && !(l.flags &
|
|
6470
|
+
if (l.lexical.indexOf(e) > -1 && !(l.flags & un && l.lexical[0] === e) || !this.treatFunctionsAsVarInScope(l) && l.functions.indexOf(e) > -1) {
|
|
6467
6471
|
n = !0;
|
|
6468
6472
|
break;
|
|
6469
6473
|
}
|
|
@@ -6482,7 +6486,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6482
6486
|
}, ft.currentThisScope = function() {
|
|
6483
6487
|
for (var e = this.scopeStack.length - 1; ; e--) {
|
|
6484
6488
|
var t = this.scopeStack[e];
|
|
6485
|
-
if (t.flags & _r && !(t.flags &
|
|
6489
|
+
if (t.flags & _r && !(t.flags & nn)) return t;
|
|
6486
6490
|
}
|
|
6487
6491
|
}, Qt = function(e, t, r) {
|
|
6488
6492
|
this.type = "", this.start = t, this.end = 0, e.options.locations && (this.loc = new $t(e, r)), e.options.directSourceFile && (this.sourceFile = e.options.directSourceFile), e.options.ranges && (this.range = [t, 0]);
|
|
@@ -6491,9 +6495,9 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6491
6495
|
}, Yt.startNodeAt = function(e, t) {
|
|
6492
6496
|
return new Qt(this, e, t);
|
|
6493
6497
|
}, Yt.finishNode = function(e, t) {
|
|
6494
|
-
return
|
|
6498
|
+
return Ci.call(this, e, t, this.lastTokEnd, this.lastTokEndLoc);
|
|
6495
6499
|
}, Yt.finishNodeAt = function(e, t, r, n) {
|
|
6496
|
-
return
|
|
6500
|
+
return Ci.call(this, e, t, r, n);
|
|
6497
6501
|
}, Xe = function(e, t, r, n, i) {
|
|
6498
6502
|
this.token = e, this.isExpr = !!t, this.preserveSpace = !!r, this.override = n, this.generator = !!i;
|
|
6499
6503
|
}, we = { b_stat: new Xe("{", !1), b_expr: new Xe("{", !0), b_tmpl: new Xe("${", !1), p_stat: new Xe("(", !1), p_expr: new Xe("(", !0), q_tmpl: new Xe("`", !0, !0, function(e) {
|
|
@@ -6540,8 +6544,8 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6540
6544
|
}, C.name.updateContext = function(e) {
|
|
6541
6545
|
var t = !1;
|
|
6542
6546
|
this.options.ecmaVersion >= 6 && e !== C.dot && (this.value === "of" && !this.exprAllowed || this.value === "yield" && this.inGeneratorContext()) && (t = !0), this.exprAllowed = t;
|
|
6543
|
-
},
|
|
6544
|
-
this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties =
|
|
6547
|
+
}, fn = "ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS", dn = fn + " Extended_Pictographic", ki = dn, ys = { 9: fn, 10: dn, 11: ki }, wn = "Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu", mn = "Adlam Adlm Ahom Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb", yn = mn + " Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd", Oi = yn + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho", Es = { 9: mn, 10: yn, 11: Oi }, Pn = {}, Zr(9), Zr(10), Zr(11), ce = Be.prototype, it = function(e) {
|
|
6548
|
+
this.parser = e, this.validFlags = "gim" + (e.options.ecmaVersion >= 6 ? "uy" : "") + (e.options.ecmaVersion >= 9 ? "s" : ""), this.unicodeProperties = Pn[e.options.ecmaVersion >= 11 ? 11 : e.options.ecmaVersion], this.source = "", this.flags = "", this.start = 0, this.switchU = !1, this.switchN = !1, this.pos = 0, this.lastIntValue = 0, this.lastStringValue = "", this.lastAssertionIsQuantifiable = !1, this.numCapturingParens = 0, this.maxBackReference = 0, this.groupNames = [], this.backReferenceNames = [];
|
|
6545
6549
|
}, it.prototype.reset = function(e, t, r) {
|
|
6546
6550
|
var n = r.indexOf("u") !== -1;
|
|
6547
6551
|
this.start = e | 0, this.source = t + "", this.flags = r, this.switchU = n && this.parser.options.ecmaVersion >= 6, this.switchN = n && this.parser.options.ecmaVersion >= 9;
|
|
@@ -6644,9 +6648,9 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6644
6648
|
return this.regexp_eatBracedQuantifier(e, !0) && e.raise("Nothing to repeat"), !1;
|
|
6645
6649
|
}, ce.regexp_eatSyntaxCharacter = function(e) {
|
|
6646
6650
|
var t = e.current();
|
|
6647
|
-
return
|
|
6651
|
+
return Fi(t) ? (e.lastIntValue = t, e.advance(), !0) : !1;
|
|
6648
6652
|
}, ce.regexp_eatPatternCharacters = function(e) {
|
|
6649
|
-
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !
|
|
6653
|
+
for (var t = e.pos, r = 0; (r = e.current()) !== -1 && !Fi(r); ) e.advance();
|
|
6650
6654
|
return e.pos !== t;
|
|
6651
6655
|
}, ce.regexp_eatExtendedPatternCharacter = function(e) {
|
|
6652
6656
|
var t = e.current();
|
|
@@ -6673,10 +6677,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6673
6677
|
return !1;
|
|
6674
6678
|
}, ce.regexp_eatRegExpIdentifierStart = function(e) {
|
|
6675
6679
|
var t = e.pos, r = this.options.ecmaVersion >= 11, n = e.current(r);
|
|
6676
|
-
return e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue),
|
|
6680
|
+
return e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue), Lo(n) ? (e.lastIntValue = n, !0) : (e.pos = t, !1);
|
|
6677
6681
|
}, ce.regexp_eatRegExpIdentifierPart = function(e) {
|
|
6678
6682
|
var t = e.pos, r = this.options.ecmaVersion >= 11, n = e.current(r);
|
|
6679
|
-
return e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue),
|
|
6683
|
+
return e.advance(r), n === 92 && this.regexp_eatRegExpUnicodeEscapeSequence(e, r) && (n = e.lastIntValue), jo(n) ? (e.lastIntValue = n, !0) : (e.pos = t, !1);
|
|
6680
6684
|
}, ce.regexp_eatAtomEscape = function(e) {
|
|
6681
6685
|
return this.regexp_eatBackReference(e) || this.regexp_eatCharacterClassEscape(e) || this.regexp_eatCharacterEscape(e) || e.switchN && this.regexp_eatKGroupName(e) ? !0 : (e.switchU && (e.current() === 99 && e.raise("Invalid unicode escape"), e.raise("Invalid escape")), !1);
|
|
6682
6686
|
}, ce.regexp_eatBackReference = function(e) {
|
|
@@ -6727,7 +6731,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6727
6731
|
}
|
|
6728
6732
|
return !0;
|
|
6729
6733
|
}
|
|
6730
|
-
if (n && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) &&
|
|
6734
|
+
if (n && e.eat(123) && this.regexp_eatHexDigits(e) && e.eat(125) && $o(e.lastIntValue)) return !0;
|
|
6731
6735
|
n && e.raise("Invalid unicode escape"), e.pos = r;
|
|
6732
6736
|
}
|
|
6733
6737
|
return !1;
|
|
@@ -6747,7 +6751,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6747
6751
|
return !1;
|
|
6748
6752
|
}, ce.regexp_eatCharacterClassEscape = function(e) {
|
|
6749
6753
|
var t = e.current();
|
|
6750
|
-
if (
|
|
6754
|
+
if (Mo(t)) return e.lastIntValue = -1, e.advance(), !0;
|
|
6751
6755
|
if (e.switchU && this.options.ecmaVersion >= 9 && (t === 80 || t === 112)) {
|
|
6752
6756
|
if (e.lastIntValue = -1, e.advance(), e.eat(123) && this.regexp_eatUnicodePropertyValueExpression(e) && e.eat(125)) return !0;
|
|
6753
6757
|
e.raise("Invalid property name");
|
|
@@ -6777,7 +6781,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6777
6781
|
return e.lastStringValue !== "";
|
|
6778
6782
|
}, ce.regexp_eatUnicodePropertyValue = function(e) {
|
|
6779
6783
|
var t = 0;
|
|
6780
|
-
for (e.lastStringValue = "";
|
|
6784
|
+
for (e.lastStringValue = ""; Vo(t = e.current()); ) e.lastStringValue += Fr(t), e.advance();
|
|
6781
6785
|
return e.lastStringValue !== "";
|
|
6782
6786
|
}, ce.regexp_eatLoneUnicodePropertyNameOrValue = function(e) {
|
|
6783
6787
|
return this.regexp_eatUnicodePropertyValue(e);
|
|
@@ -6801,7 +6805,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6801
6805
|
if (this.regexp_eatClassEscape(e)) return !0;
|
|
6802
6806
|
if (e.switchU) {
|
|
6803
6807
|
var r = e.current();
|
|
6804
|
-
(r === 99 ||
|
|
6808
|
+
(r === 99 || xi(r)) && e.raise("Invalid class escape"), e.raise("Invalid escape");
|
|
6805
6809
|
}
|
|
6806
6810
|
e.pos = t;
|
|
6807
6811
|
}
|
|
@@ -6832,7 +6836,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6832
6836
|
return e.pos !== t;
|
|
6833
6837
|
}, ce.regexp_eatHexDigits = function(e) {
|
|
6834
6838
|
var t = e.pos, r = 0;
|
|
6835
|
-
for (e.lastIntValue = 0;
|
|
6839
|
+
for (e.lastIntValue = 0; vi(r = e.current()); ) e.lastIntValue = 16 * e.lastIntValue + Si(r), e.advance();
|
|
6836
6840
|
return e.pos !== t;
|
|
6837
6841
|
}, ce.regexp_eatLegacyOctalEscapeSequence = function(e) {
|
|
6838
6842
|
if (this.regexp_eatOctalDigit(e)) {
|
|
@@ -6846,14 +6850,14 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
6846
6850
|
return !1;
|
|
6847
6851
|
}, ce.regexp_eatOctalDigit = function(e) {
|
|
6848
6852
|
var t = e.current();
|
|
6849
|
-
return
|
|
6853
|
+
return xi(t) ? (e.lastIntValue = t - 48, e.advance(), !0) : (e.lastIntValue = 0, !1);
|
|
6850
6854
|
}, ce.regexp_eatFixedHexDigits = function(e, t) {
|
|
6851
6855
|
var r = e.pos;
|
|
6852
6856
|
e.lastIntValue = 0;
|
|
6853
6857
|
for (var n = 0; n < t; ++n) {
|
|
6854
6858
|
var i = e.current();
|
|
6855
|
-
if (!
|
|
6856
|
-
e.lastIntValue = 16 * e.lastIntValue +
|
|
6859
|
+
if (!vi(i)) return e.pos = r, !1;
|
|
6860
|
+
e.lastIntValue = 16 * e.lastIntValue + Si(i), e.advance();
|
|
6857
6861
|
}
|
|
6858
6862
|
return !0;
|
|
6859
6863
|
}, Zt = function(e) {
|
|
@@ -7047,7 +7051,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7047
7051
|
case 126:
|
|
7048
7052
|
return this.finishOp(C.prefix, 1);
|
|
7049
7053
|
}
|
|
7050
|
-
this.raise(this.pos, "Unexpected character '" +
|
|
7054
|
+
this.raise(this.pos, "Unexpected character '" + en(e) + "'");
|
|
7051
7055
|
}, Se.finishOp = function(e, t) {
|
|
7052
7056
|
var r = this.input.slice(this.pos, this.pos + t);
|
|
7053
7057
|
return this.pos += t, this.finishToken(e, r);
|
|
@@ -7091,7 +7095,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7091
7095
|
var t = this.pos;
|
|
7092
7096
|
this.pos += 2;
|
|
7093
7097
|
var r = this.readInt(e);
|
|
7094
|
-
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r =
|
|
7098
|
+
return r == null && this.raise(this.start + 2, "Expected number in radix " + e), this.options.ecmaVersion >= 11 && this.input.charCodeAt(this.pos) === 110 ? (r = _i(this.input.slice(t, this.pos)), ++this.pos) : dt(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(C.num, r);
|
|
7095
7099
|
}, Se.readNumber = function(e) {
|
|
7096
7100
|
var t = this.pos;
|
|
7097
7101
|
!e && this.readInt(10, void 0, !0) === null && this.raise(t, "Invalid number");
|
|
@@ -7099,11 +7103,11 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7099
7103
|
r && this.strict && this.raise(t, "Invalid number");
|
|
7100
7104
|
var n = this.input.charCodeAt(this.pos);
|
|
7101
7105
|
if (!r && !e && this.options.ecmaVersion >= 11 && n === 110) {
|
|
7102
|
-
var i =
|
|
7106
|
+
var i = _i(this.input.slice(t, this.pos));
|
|
7103
7107
|
return ++this.pos, dt(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(C.num, i);
|
|
7104
7108
|
}
|
|
7105
7109
|
r && /[89]/.test(this.input.slice(t, this.pos)) && (r = !1), n === 46 && !r && (++this.pos, this.readInt(10), n = this.input.charCodeAt(this.pos)), (n === 69 || n === 101) && !r && (n = this.input.charCodeAt(++this.pos), (n === 43 || n === 45) && ++this.pos, this.readInt(10) === null && this.raise(t, "Invalid number")), dt(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
7106
|
-
var s =
|
|
7110
|
+
var s = Jo(this.input.slice(t, this.pos), r);
|
|
7107
7111
|
return this.finishToken(C.num, s);
|
|
7108
7112
|
}, Se.readCodePoint = function() {
|
|
7109
7113
|
var e = this.input.charCodeAt(this.pos), t;
|
|
@@ -7121,17 +7125,17 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7121
7125
|
n === 92 ? (t += this.input.slice(r, this.pos), t += this.readEscapedChar(!1), r = this.pos) : (Ot(n, this.options.ecmaVersion >= 10) && this.raise(this.start, "Unterminated string constant"), ++this.pos);
|
|
7122
7126
|
}
|
|
7123
7127
|
return t += this.input.slice(r, this.pos++), this.finishToken(C.string, t);
|
|
7124
|
-
},
|
|
7128
|
+
}, En = {}, Se.tryReadTemplateToken = function() {
|
|
7125
7129
|
this.inTemplateElement = !0;
|
|
7126
7130
|
try {
|
|
7127
7131
|
this.readTmplToken();
|
|
7128
7132
|
} catch (e) {
|
|
7129
|
-
if (e ===
|
|
7133
|
+
if (e === En) this.readInvalidTemplateToken();
|
|
7130
7134
|
else throw e;
|
|
7131
7135
|
}
|
|
7132
7136
|
this.inTemplateElement = !1;
|
|
7133
7137
|
}, Se.invalidStringToken = function(e, t) {
|
|
7134
|
-
if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw
|
|
7138
|
+
if (this.inTemplateElement && this.options.ecmaVersion >= 9) throw En;
|
|
7135
7139
|
this.raise(e, t);
|
|
7136
7140
|
}, Se.readTmplToken = function() {
|
|
7137
7141
|
for (var e = "", t = this.pos; ; ) {
|
|
@@ -7176,7 +7180,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7176
7180
|
case 120:
|
|
7177
7181
|
return String.fromCharCode(this.readHexChar(2));
|
|
7178
7182
|
case 117:
|
|
7179
|
-
return
|
|
7183
|
+
return en(this.readCodePoint());
|
|
7180
7184
|
case 116:
|
|
7181
7185
|
return " ";
|
|
7182
7186
|
case 98:
|
|
@@ -7215,7 +7219,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7215
7219
|
var s = this.pos;
|
|
7216
7220
|
this.input.charCodeAt(++this.pos) !== 117 && this.invalidStringToken(this.pos, "Expecting Unicode escape sequence \\uXXXX"), ++this.pos;
|
|
7217
7221
|
var o = this.readCodePoint();
|
|
7218
|
-
(t ? dt : xt)(o, n) || this.invalidStringToken(s, "Invalid Unicode escape"), e +=
|
|
7222
|
+
(t ? dt : xt)(o, n) || this.invalidStringToken(s, "Invalid Unicode escape"), e += en(o), r = this.pos;
|
|
7219
7223
|
} else break;
|
|
7220
7224
|
t = !1;
|
|
7221
7225
|
}
|
|
@@ -7223,11 +7227,11 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7223
7227
|
}, Se.readWord = function() {
|
|
7224
7228
|
var e = this.readWord1(), t = C.name;
|
|
7225
7229
|
return this.keywords.test(e) && (t = nr[e]), this.finishToken(t, e);
|
|
7226
|
-
},
|
|
7227
|
-
} }),
|
|
7230
|
+
}, In = "7.4.1", Be.acorn = { Parser: Be, version: In, defaultOptions: ir, Position: _t, SourceLocation: $t, getLineInfo: _n, Node: Qt, TokenType: _e, tokTypes: C, keywordTypes: nr, TokContext: Xe, tokContexts: we, isIdentifierChar: xt, isIdentifierStart: dt, Token: Zt, isNewLine: Ot, lineBreak: We, lineBreakG: Tt, nonASCIIwhitespace: Nr };
|
|
7231
|
+
} }), Wo = K({ "../../node_modules/acorn-jsx/xhtml.js"(e, t) {
|
|
7228
7232
|
t.exports = { quot: '"', amp: "&", apos: "'", lt: "<", gt: ">", nbsp: " ", iexcl: "¡", cent: "¢", pound: "£", curren: "¤", yen: "¥", brvbar: "¦", sect: "§", uml: "¨", copy: "©", ordf: "ª", laquo: "«", not: "¬", shy: "", reg: "®", macr: "¯", deg: "°", plusmn: "±", sup2: "²", sup3: "³", acute: "´", micro: "µ", para: "¶", middot: "·", cedil: "¸", sup1: "¹", ordm: "º", raquo: "»", frac14: "¼", frac12: "½", frac34: "¾", iquest: "¿", Agrave: "À", Aacute: "Á", Acirc: "Â", Atilde: "Ã", Auml: "Ä", Aring: "Å", AElig: "Æ", Ccedil: "Ç", Egrave: "È", Eacute: "É", Ecirc: "Ê", Euml: "Ë", Igrave: "Ì", Iacute: "Í", Icirc: "Î", Iuml: "Ï", ETH: "Ð", Ntilde: "Ñ", Ograve: "Ò", Oacute: "Ó", Ocirc: "Ô", Otilde: "Õ", Ouml: "Ö", times: "×", Oslash: "Ø", Ugrave: "Ù", Uacute: "Ú", Ucirc: "Û", Uuml: "Ü", Yacute: "Ý", THORN: "Þ", szlig: "ß", agrave: "à", aacute: "á", acirc: "â", atilde: "ã", auml: "ä", aring: "å", aelig: "æ", ccedil: "ç", egrave: "è", eacute: "é", ecirc: "ê", euml: "ë", igrave: "ì", iacute: "í", icirc: "î", iuml: "ï", eth: "ð", ntilde: "ñ", ograve: "ò", oacute: "ó", ocirc: "ô", otilde: "õ", ouml: "ö", divide: "÷", oslash: "ø", ugrave: "ù", uacute: "ú", ucirc: "û", uuml: "ü", yacute: "ý", thorn: "þ", yuml: "ÿ", OElig: "Œ", oelig: "œ", Scaron: "Š", scaron: "š", Yuml: "Ÿ", fnof: "ƒ", circ: "ˆ", tilde: "˜", Alpha: "Α", Beta: "Β", Gamma: "Γ", Delta: "Δ", Epsilon: "Ε", Zeta: "Ζ", Eta: "Η", Theta: "Θ", Iota: "Ι", Kappa: "Κ", Lambda: "Λ", Mu: "Μ", Nu: "Ν", Xi: "Ξ", Omicron: "Ο", Pi: "Π", Rho: "Ρ", Sigma: "Σ", Tau: "Τ", Upsilon: "Υ", Phi: "Φ", Chi: "Χ", Psi: "Ψ", Omega: "Ω", alpha: "α", beta: "β", gamma: "γ", delta: "δ", epsilon: "ε", zeta: "ζ", eta: "η", theta: "θ", iota: "ι", kappa: "κ", lambda: "λ", mu: "μ", nu: "ν", xi: "ξ", omicron: "ο", pi: "π", rho: "ρ", sigmaf: "ς", sigma: "σ", tau: "τ", upsilon: "υ", phi: "φ", chi: "χ", psi: "ψ", omega: "ω", thetasym: "ϑ", upsih: "ϒ", piv: "ϖ", ensp: " ", emsp: " ", thinsp: " ", zwnj: "", zwj: "", lrm: "", rlm: "", ndash: "–", mdash: "—", lsquo: "‘", rsquo: "’", sbquo: "‚", ldquo: "“", rdquo: "”", bdquo: "„", dagger: "†", Dagger: "‡", bull: "•", hellip: "…", permil: "‰", prime: "′", Prime: "″", lsaquo: "‹", rsaquo: "›", oline: "‾", frasl: "⁄", euro: "€", image: "ℑ", weierp: "℘", real: "ℜ", trade: "™", alefsym: "ℵ", larr: "←", uarr: "↑", rarr: "→", darr: "↓", harr: "↔", crarr: "↵", lArr: "⇐", uArr: "⇑", rArr: "⇒", dArr: "⇓", hArr: "⇔", forall: "∀", part: "∂", exist: "∃", empty: "∅", nabla: "∇", isin: "∈", notin: "∉", ni: "∋", prod: "∏", sum: "∑", minus: "−", lowast: "∗", radic: "√", prop: "∝", infin: "∞", ang: "∠", and: "∧", or: "∨", cap: "∩", cup: "∪", int: "∫", there4: "∴", sim: "∼", cong: "≅", asymp: "≈", ne: "≠", equiv: "≡", le: "≤", ge: "≥", sub: "⊂", sup: "⊃", nsub: "⊄", sube: "⊆", supe: "⊇", oplus: "⊕", otimes: "⊗", perp: "⊥", sdot: "⋅", lceil: "⌈", rceil: "⌉", lfloor: "⌊", rfloor: "⌋", lang: "〈", rang: "〉", loz: "◊", spades: "♠", clubs: "♣", hearts: "♥", diams: "♦" };
|
|
7229
|
-
} }),
|
|
7230
|
-
var r =
|
|
7233
|
+
} }), zo = K({ "../../node_modules/acorn-jsx/index.js"(e, t) {
|
|
7234
|
+
var r = Wo(), n = /^[\da-fA-F]+$/, i = /^\d+$/, s = /* @__PURE__ */ new WeakMap();
|
|
7231
7235
|
function o(f) {
|
|
7232
7236
|
f = f.Parser.acorn || f;
|
|
7233
7237
|
let p = s.get(f);
|
|
@@ -7253,10 +7257,10 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7253
7257
|
return l({ allowNamespaces: f.allowNamespaces !== !1, allowNamespacedObjects: !!f.allowNamespacedObjects }, p);
|
|
7254
7258
|
};
|
|
7255
7259
|
}, Object.defineProperty(t.exports, "tokTypes", { get: function() {
|
|
7256
|
-
return o((
|
|
7260
|
+
return o((Nn(), yi(Sn))).tokTypes;
|
|
7257
7261
|
}, configurable: !0, enumerable: !0 });
|
|
7258
7262
|
function l(f, p) {
|
|
7259
|
-
let v = p.acorn || (
|
|
7263
|
+
let v = p.acorn || (Nn(), yi(Sn)), E = o(v), D = v.tokTypes, A = E.tokTypes, g = v.tokContexts, B = E.tokContexts.tc_oTag, b = E.tokContexts.tc_cTag, T = E.tokContexts.tc_expr, J = v.isNewLine, w = v.isIdentifierStart, _ = v.isIdentifierChar;
|
|
7260
7264
|
return class extends p {
|
|
7261
7265
|
static get acornJsx() {
|
|
7262
7266
|
return E;
|
|
@@ -7426,7 +7430,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7426
7430
|
}
|
|
7427
7431
|
};
|
|
7428
7432
|
}
|
|
7429
|
-
} }),
|
|
7433
|
+
} }), Yo = K({ "../../node_modules/@base2/pretty-print-object/dist/index.js"(e) {
|
|
7430
7434
|
var t = e && e.__assign || function() {
|
|
7431
7435
|
return t = Object.assign || function(l) {
|
|
7432
7436
|
for (var f, p = 1, v = arguments.length; p < v; p++) {
|
|
@@ -7496,7 +7500,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7496
7500
|
}), E.singleQuotes ? (l = l.replace(/\\?'/g, "\\'"), "'" + l + "'") : (l = l.replace(/"/g, '\\"'), '"' + l + '"');
|
|
7497
7501
|
}
|
|
7498
7502
|
e.prettyPrint = c;
|
|
7499
|
-
} }),
|
|
7503
|
+
} }), Xo = K({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.production.min.js"(e) {
|
|
7500
7504
|
var t = Symbol.for("react.element"), r = Symbol.for("react.portal"), n = Symbol.for("react.fragment"), i = Symbol.for("react.strict_mode"), s = Symbol.for("react.profiler"), o = Symbol.for("react.provider"), c = Symbol.for("react.context"), l = Symbol.for("react.server_context"), f = Symbol.for("react.forward_ref"), p = Symbol.for("react.suspense"), v = Symbol.for("react.suspense_list"), E = Symbol.for("react.memo"), D = Symbol.for("react.lazy"), A = Symbol.for("react.offscreen"), g;
|
|
7501
7505
|
g = Symbol.for("react.module.reference");
|
|
7502
7506
|
function B(b) {
|
|
@@ -7560,7 +7564,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7560
7564
|
}, e.isValidElementType = function(b) {
|
|
7561
7565
|
return typeof b == "string" || typeof b == "function" || b === n || b === s || b === i || b === p || b === v || b === A || typeof b == "object" && b !== null && (b.$$typeof === D || b.$$typeof === E || b.$$typeof === o || b.$$typeof === c || b.$$typeof === f || b.$$typeof === g || b.getModuleId !== void 0);
|
|
7562
7566
|
}, e.typeOf = B;
|
|
7563
|
-
} }),
|
|
7567
|
+
} }), Ko = K({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/cjs/react-is.development.js"(e) {
|
|
7564
7568
|
process.env.NODE_ENV !== "production" && function() {
|
|
7565
7569
|
var t = !1, r = !1, n = !1, i = !1, s = !1, o = Symbol.for("react.element"), c = Symbol.for("react.portal"), l = Symbol.for("react.fragment"), f = Symbol.for("react.strict_mode"), p = Symbol.for("react.profiler"), v = Symbol.for("react.provider"), E = Symbol.for("react.context"), D = Symbol.for("react.server_context"), A = Symbol.for("react.forward_ref"), g = Symbol.for("react.suspense"), B = Symbol.for("react.suspense_list"), b = Symbol.for("react.memo"), T = Symbol.for("react.lazy"), J = Symbol.for("react.offscreen"), w;
|
|
7566
7570
|
w = Symbol.for("react.module.reference");
|
|
@@ -7644,16 +7648,16 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7644
7648
|
}
|
|
7645
7649
|
e.ContextConsumer = I, e.ContextProvider = N, e.Element = j, e.ForwardRef = M, e.Fragment = te, e.Lazy = $, e.Memo = ue, e.Portal = he, e.Profiler = Fe, e.StrictMode = O, e.Suspense = V, e.SuspenseList = G, e.isAsyncMode = re, e.isConcurrentMode = P, e.isContextConsumer = q, e.isContextProvider = X, e.isElement = Z, e.isForwardRef = U, e.isFragment = ae, e.isLazy = oe, e.isMemo = de, e.isPortal = Ce, e.isProfiler = Ee, e.isStrictMode = fe, e.isSuspense = ee, e.isSuspenseList = ge, e.isValidElementType = _, e.typeOf = F;
|
|
7646
7650
|
}();
|
|
7647
|
-
} }),
|
|
7648
|
-
process.env.NODE_ENV === "production" ? t.exports =
|
|
7649
|
-
} }),
|
|
7650
|
-
|
|
7651
|
-
var
|
|
7652
|
-
function
|
|
7653
|
-
return
|
|
7654
|
-
}
|
|
7655
|
-
var
|
|
7656
|
-
function
|
|
7651
|
+
} }), Ho = K({ "../../node_modules/react-element-to-jsx-string/node_modules/react-is/index.js"(e, t) {
|
|
7652
|
+
process.env.NODE_ENV === "production" ? t.exports = Xo() : t.exports = Ko();
|
|
7653
|
+
} }), Qo = {};
|
|
7654
|
+
qn(Qo, { applyDecorators: () => zc, argTypesEnhancers: () => Kc, decorators: () => Xc, parameters: () => Yc });
|
|
7655
|
+
var Li = wt(go()), Rn = "custom", lr = "object", oi = "array", Zo = "class", Mt = "func", qt = "element", el = wt(Co());
|
|
7656
|
+
function li(e) {
|
|
7657
|
+
return el.default.includes(e.toLowerCase());
|
|
7658
|
+
}
|
|
7659
|
+
var tl = wt(Ro());
|
|
7660
|
+
function rl(e) {
|
|
7657
7661
|
for (var t = [], r = 1; r < arguments.length; r++) t[r - 1] = arguments[r];
|
|
7658
7662
|
var n = Array.from(typeof e == "string" ? [e] : e);
|
|
7659
7663
|
n[n.length - 1] = n[n.length - 1].replace(/\r?\n([\t ]*)$/, "");
|
|
@@ -7684,45 +7688,45 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7684
7688
|
`)), o += v + n[l + 1];
|
|
7685
7689
|
}), o;
|
|
7686
7690
|
}
|
|
7687
|
-
var As = { format: { indent: { style: " " }, semicolons: !1 } },
|
|
7691
|
+
var As = { format: { indent: { style: " " }, semicolons: !1 } }, nl = { ...As, format: { newline: "" } }, il = { ...As };
|
|
7688
7692
|
function gt(e, t = !1) {
|
|
7689
|
-
return (0,
|
|
7693
|
+
return (0, tl.generate)(e, t ? nl : il);
|
|
7690
7694
|
}
|
|
7691
|
-
function
|
|
7692
|
-
return t ?
|
|
7695
|
+
function kn(e, t = !1) {
|
|
7696
|
+
return t ? ul(e) : gt(e);
|
|
7693
7697
|
}
|
|
7694
|
-
function
|
|
7698
|
+
function ul(e) {
|
|
7695
7699
|
let t = gt(e, !0);
|
|
7696
7700
|
return t.endsWith(" }") || (t = `${t.slice(0, -1)} }`), t;
|
|
7697
7701
|
}
|
|
7698
|
-
function
|
|
7699
|
-
return t ?
|
|
7702
|
+
function ji(e, t = !1) {
|
|
7703
|
+
return t ? al(e) : sl(e);
|
|
7700
7704
|
}
|
|
7701
|
-
function
|
|
7705
|
+
function sl(e) {
|
|
7702
7706
|
let t = gt(e);
|
|
7703
|
-
return t.endsWith(" }]") && (t =
|
|
7707
|
+
return t.endsWith(" }]") && (t = rl(t)), t;
|
|
7704
7708
|
}
|
|
7705
|
-
function
|
|
7709
|
+
function al(e) {
|
|
7706
7710
|
let t = gt(e, !0);
|
|
7707
7711
|
return t.startsWith("[ ") && (t = t.replace("[ ", "[")), t;
|
|
7708
7712
|
}
|
|
7709
|
-
var gs = (e) => e.$$typeof === Symbol.for("react.memo"),
|
|
7710
|
-
|
|
7711
|
-
var
|
|
7713
|
+
var gs = (e) => e.$$typeof === Symbol.for("react.memo"), ol = (e) => e.$$typeof === Symbol.for("react.forward_ref");
|
|
7714
|
+
Nn();
|
|
7715
|
+
var ll = wt(zo());
|
|
7712
7716
|
function Ds(e, t, r, n, i) {
|
|
7713
7717
|
r || (r = H), function s(o, c, l) {
|
|
7714
7718
|
var f = l || o.type, p = t[f];
|
|
7715
7719
|
r[f](o, c, s), p && p(o, c);
|
|
7716
7720
|
}(e, n, i);
|
|
7717
7721
|
}
|
|
7718
|
-
function
|
|
7722
|
+
function cl(e, t, r, n, i) {
|
|
7719
7723
|
var s = [];
|
|
7720
7724
|
r || (r = H), function o(c, l, f) {
|
|
7721
7725
|
var p = f || c.type, v = t[p], E = c !== s[s.length - 1];
|
|
7722
7726
|
E && s.push(c), r[p](c, l, o), v && v(c, l || s, s), E && s.pop();
|
|
7723
7727
|
}(e, n, i);
|
|
7724
7728
|
}
|
|
7725
|
-
function
|
|
7729
|
+
function ci(e, t, r) {
|
|
7726
7730
|
r(e, t);
|
|
7727
7731
|
}
|
|
7728
7732
|
function It(e, t, r) {
|
|
@@ -7734,7 +7738,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7734
7738
|
r(s, t, "Statement");
|
|
7735
7739
|
}
|
|
7736
7740
|
};
|
|
7737
|
-
H.Statement =
|
|
7741
|
+
H.Statement = ci;
|
|
7738
7742
|
H.EmptyStatement = It;
|
|
7739
7743
|
H.ExpressionStatement = H.ParenthesizedExpression = H.ChainExpression = function(e, t, r) {
|
|
7740
7744
|
return r(e.expression, t, "Expression");
|
|
@@ -7816,7 +7820,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7816
7820
|
e.type === "Identifier" ? r(e, t, "VariablePattern") : e.type === "MemberExpression" ? r(e, t, "MemberPattern") : r(e, t);
|
|
7817
7821
|
};
|
|
7818
7822
|
H.VariablePattern = It;
|
|
7819
|
-
H.MemberPattern =
|
|
7823
|
+
H.MemberPattern = ci;
|
|
7820
7824
|
H.RestElement = function(e, t, r) {
|
|
7821
7825
|
return r(e.argument, t, "Pattern");
|
|
7822
7826
|
};
|
|
@@ -7832,7 +7836,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7832
7836
|
s.type === "Property" ? (s.computed && r(s.key, t, "Expression"), r(s.value, t, "Pattern")) : s.type === "RestElement" && r(s.argument, t, "Pattern");
|
|
7833
7837
|
}
|
|
7834
7838
|
};
|
|
7835
|
-
H.Expression =
|
|
7839
|
+
H.Expression = ci;
|
|
7836
7840
|
H.ThisExpression = H.Super = H.MetaProperty = It;
|
|
7837
7841
|
H.ArrayExpression = function(e, t, r) {
|
|
7838
7842
|
for (var n = 0, i = e.elements; n < i.length; n += 1) {
|
|
@@ -7920,86 +7924,86 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
7920
7924
|
H.MethodDefinition = H.Property = function(e, t, r) {
|
|
7921
7925
|
e.computed && r(e.key, t, "Expression"), r(e.value, t, "Expression");
|
|
7922
7926
|
};
|
|
7923
|
-
var
|
|
7924
|
-
} },
|
|
7927
|
+
var pi = { ...H, JSXElement: () => {
|
|
7928
|
+
} }, pl = Be.extend((0, ll.default)());
|
|
7925
7929
|
function cr(e) {
|
|
7926
7930
|
return e != null ? e.name : null;
|
|
7927
7931
|
}
|
|
7928
|
-
function
|
|
7932
|
+
function $i(e) {
|
|
7929
7933
|
return e.filter((t) => t.type === "ObjectExpression" || t.type === "ArrayExpression");
|
|
7930
7934
|
}
|
|
7931
7935
|
function Cs(e) {
|
|
7932
7936
|
let t = [];
|
|
7933
|
-
return
|
|
7934
|
-
t.push(
|
|
7937
|
+
return cl(e, { ObjectExpression(r, n) {
|
|
7938
|
+
t.push($i(n).length);
|
|
7935
7939
|
}, ArrayExpression(r, n) {
|
|
7936
|
-
t.push(
|
|
7937
|
-
} },
|
|
7940
|
+
t.push($i(n).length);
|
|
7941
|
+
} }, pi), Math.max(...t);
|
|
7938
7942
|
}
|
|
7939
|
-
function
|
|
7943
|
+
function hl(e) {
|
|
7940
7944
|
return { inferredType: { type: "Identifier", identifier: cr(e) }, ast: e };
|
|
7941
7945
|
}
|
|
7942
|
-
function
|
|
7946
|
+
function fl(e) {
|
|
7943
7947
|
return { inferredType: { type: "Literal" }, ast: e };
|
|
7944
7948
|
}
|
|
7945
|
-
function
|
|
7949
|
+
function dl(e) {
|
|
7946
7950
|
let t;
|
|
7947
7951
|
Ds(e.body, { JSXElement(i) {
|
|
7948
7952
|
t = i;
|
|
7949
|
-
} },
|
|
7953
|
+
} }, pi);
|
|
7950
7954
|
let r = { type: t != null ? "Element" : "Function", params: e.params, hasParams: e.params.length !== 0 }, n = cr(e.id);
|
|
7951
7955
|
return n != null && (r.identifier = n), { inferredType: r, ast: e };
|
|
7952
7956
|
}
|
|
7953
|
-
function
|
|
7957
|
+
function ml(e) {
|
|
7954
7958
|
let t;
|
|
7955
7959
|
return Ds(e.body, { JSXElement(r) {
|
|
7956
7960
|
t = r;
|
|
7957
|
-
} },
|
|
7961
|
+
} }, pi), { inferredType: { type: t != null ? "Element" : "Class", identifier: cr(e.id) }, ast: e };
|
|
7958
7962
|
}
|
|
7959
|
-
function
|
|
7963
|
+
function yl(e) {
|
|
7960
7964
|
let t = { type: "Element" }, r = cr(e.openingElement.name);
|
|
7961
7965
|
return r != null && (t.identifier = r), { inferredType: t, ast: e };
|
|
7962
7966
|
}
|
|
7963
|
-
function
|
|
7967
|
+
function El(e) {
|
|
7964
7968
|
let t = e.callee.type === "MemberExpression" ? e.callee.property : e.callee;
|
|
7965
7969
|
return cr(t) === "shape" ? Fs(e.arguments[0]) : null;
|
|
7966
7970
|
}
|
|
7967
7971
|
function Fs(e) {
|
|
7968
7972
|
return { inferredType: { type: "Object", depth: Cs(e) }, ast: e };
|
|
7969
7973
|
}
|
|
7970
|
-
function
|
|
7974
|
+
function Al(e) {
|
|
7971
7975
|
return { inferredType: { type: "Array", depth: Cs(e) }, ast: e };
|
|
7972
7976
|
}
|
|
7973
|
-
function
|
|
7977
|
+
function gl(e) {
|
|
7974
7978
|
switch (e.type) {
|
|
7975
7979
|
case "Identifier":
|
|
7976
|
-
return
|
|
7980
|
+
return hl(e);
|
|
7977
7981
|
case "Literal":
|
|
7978
|
-
return
|
|
7982
|
+
return fl(e);
|
|
7979
7983
|
case "FunctionExpression":
|
|
7980
7984
|
case "ArrowFunctionExpression":
|
|
7981
|
-
return
|
|
7985
|
+
return dl(e);
|
|
7982
7986
|
case "ClassExpression":
|
|
7983
|
-
return
|
|
7987
|
+
return ml(e);
|
|
7984
7988
|
case "JSXElement":
|
|
7985
|
-
return
|
|
7989
|
+
return yl(e);
|
|
7986
7990
|
case "CallExpression":
|
|
7987
|
-
return
|
|
7991
|
+
return El(e);
|
|
7988
7992
|
case "ObjectExpression":
|
|
7989
7993
|
return Fs(e);
|
|
7990
7994
|
case "ArrayExpression":
|
|
7991
|
-
return
|
|
7995
|
+
return Al(e);
|
|
7992
7996
|
default:
|
|
7993
7997
|
return null;
|
|
7994
7998
|
}
|
|
7995
7999
|
}
|
|
7996
|
-
function
|
|
7997
|
-
let t =
|
|
8000
|
+
function Dl(e) {
|
|
8001
|
+
let t = pl.parse(`(${e})`, { ecmaVersion: 2020 }), r = { inferredType: { type: "Unknown" }, ast: t };
|
|
7998
8002
|
if (t.body[0] != null) {
|
|
7999
8003
|
let n = t.body[0];
|
|
8000
8004
|
switch (n.type) {
|
|
8001
8005
|
case "ExpressionStatement": {
|
|
8002
|
-
let i =
|
|
8006
|
+
let i = gl(n.expression);
|
|
8003
8007
|
i != null && (r = i);
|
|
8004
8008
|
break;
|
|
8005
8009
|
}
|
|
@@ -8009,7 +8013,7 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8009
8013
|
}
|
|
8010
8014
|
function Dt(e) {
|
|
8011
8015
|
try {
|
|
8012
|
-
return { ...
|
|
8016
|
+
return { ...Dl(e) };
|
|
8013
8017
|
} catch {
|
|
8014
8018
|
}
|
|
8015
8019
|
return { inferredType: { type: "Unknown" } };
|
|
@@ -8017,45 +8021,45 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8017
8021
|
function vs({ inferredType: e, ast: t }) {
|
|
8018
8022
|
let { depth: r } = e;
|
|
8019
8023
|
if (r <= 2) {
|
|
8020
|
-
let n =
|
|
8024
|
+
let n = ji(t, !0);
|
|
8021
8025
|
if (!Pt(n)) return me(n);
|
|
8022
8026
|
}
|
|
8023
|
-
return me(
|
|
8027
|
+
return me(oi, ji(t));
|
|
8024
8028
|
}
|
|
8025
8029
|
function Ss({ inferredType: e, ast: t }) {
|
|
8026
8030
|
let { depth: r } = e;
|
|
8027
8031
|
if (r === 1) {
|
|
8028
|
-
let n =
|
|
8032
|
+
let n = kn(t, !0);
|
|
8029
8033
|
if (!Pt(n)) return me(n);
|
|
8030
8034
|
}
|
|
8031
|
-
return me(lr,
|
|
8035
|
+
return me(lr, kn(t));
|
|
8032
8036
|
}
|
|
8033
|
-
function
|
|
8037
|
+
function hi(e, t) {
|
|
8034
8038
|
return t ? `${e}( ... )` : `${e}()`;
|
|
8035
8039
|
}
|
|
8036
|
-
function
|
|
8040
|
+
function Gr(e) {
|
|
8037
8041
|
return `<${e} />`;
|
|
8038
8042
|
}
|
|
8039
8043
|
function xs(e) {
|
|
8040
8044
|
let { type: t, identifier: r } = e;
|
|
8041
8045
|
switch (t) {
|
|
8042
8046
|
case "Function":
|
|
8043
|
-
return
|
|
8047
|
+
return hi(r, e.hasParams);
|
|
8044
8048
|
case "Element":
|
|
8045
|
-
return
|
|
8049
|
+
return Gr(r);
|
|
8046
8050
|
default:
|
|
8047
8051
|
return r;
|
|
8048
8052
|
}
|
|
8049
8053
|
}
|
|
8050
|
-
function
|
|
8054
|
+
function Cl({ inferredType: e, ast: t }) {
|
|
8051
8055
|
let { identifier: r } = e;
|
|
8052
8056
|
if (r != null) return me(xs(e), gt(t));
|
|
8053
8057
|
let n = gt(t, !0);
|
|
8054
8058
|
return Pt(n) ? me(Mt, gt(t)) : me(n);
|
|
8055
8059
|
}
|
|
8056
|
-
function
|
|
8060
|
+
function Fl(e, t) {
|
|
8057
8061
|
let { inferredType: r } = t, { identifier: n } = r;
|
|
8058
|
-
if (n != null && !
|
|
8062
|
+
if (n != null && !li(n)) {
|
|
8059
8063
|
let i = xs(r);
|
|
8060
8064
|
return me(i, e);
|
|
8061
8065
|
}
|
|
@@ -8068,9 +8072,9 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8068
8072
|
case "Object":
|
|
8069
8073
|
return Ss(t);
|
|
8070
8074
|
case "Function":
|
|
8071
|
-
return
|
|
8075
|
+
return Cl(t);
|
|
8072
8076
|
case "Element":
|
|
8073
|
-
return
|
|
8077
|
+
return Fl(e, t);
|
|
8074
8078
|
case "Array":
|
|
8075
8079
|
return vs(t);
|
|
8076
8080
|
default:
|
|
@@ -8081,13 +8085,13 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8081
8085
|
}
|
|
8082
8086
|
return null;
|
|
8083
8087
|
}
|
|
8084
|
-
function
|
|
8088
|
+
function Mi(e) {
|
|
8085
8089
|
return typeof e == "function";
|
|
8086
8090
|
}
|
|
8087
|
-
function
|
|
8091
|
+
function vl(e) {
|
|
8088
8092
|
return typeof e == "string" || e instanceof String;
|
|
8089
8093
|
}
|
|
8090
|
-
function
|
|
8094
|
+
function Sl(e) {
|
|
8091
8095
|
var r;
|
|
8092
8096
|
if (typeof e != "object" || e == null) return !1;
|
|
8093
8097
|
if (Object.getPrototypeOf(e) === null) return !0;
|
|
@@ -8099,14 +8103,14 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8099
8103
|
for (; Object.getPrototypeOf(t) !== null; ) t = Object.getPrototypeOf(t);
|
|
8100
8104
|
return Object.getPrototypeOf(e) === t;
|
|
8101
8105
|
}
|
|
8102
|
-
function
|
|
8106
|
+
function Vi(e) {
|
|
8103
8107
|
return Object.prototype.toString.call(e) === "[object Object]";
|
|
8104
8108
|
}
|
|
8105
|
-
function
|
|
8109
|
+
function xl(e) {
|
|
8106
8110
|
var t, r;
|
|
8107
|
-
return
|
|
8111
|
+
return Vi(e) === !1 ? !1 : (t = e.constructor, t === void 0 ? !0 : (r = t.prototype, !(Vi(r) === !1 || r.hasOwnProperty("isPrototypeOf") === !1)));
|
|
8108
8112
|
}
|
|
8109
|
-
var
|
|
8113
|
+
var _l = wt(Yo()), st = wt(Ho()), mt = function(e, t) {
|
|
8110
8114
|
return e === 0 ? "" : new Array(e * t).fill(" ").join("");
|
|
8111
8115
|
};
|
|
8112
8116
|
function ur(e) {
|
|
@@ -8117,53 +8121,53 @@ Valid keys: ` + JSON.stringify(Object.keys(P), null, " "));
|
|
|
8117
8121
|
return t && typeof Symbol == "function" && t.constructor === Symbol && t !== Symbol.prototype ? "symbol" : typeof t;
|
|
8118
8122
|
}, ur(e);
|
|
8119
8123
|
}
|
|
8120
|
-
function
|
|
8121
|
-
return
|
|
8124
|
+
function bl(e) {
|
|
8125
|
+
return Tl(e) || Bl(e) || wl(e) || Pl();
|
|
8122
8126
|
}
|
|
8123
|
-
function
|
|
8124
|
-
if (Array.isArray(e)) return
|
|
8127
|
+
function Tl(e) {
|
|
8128
|
+
if (Array.isArray(e)) return On(e);
|
|
8125
8129
|
}
|
|
8126
|
-
function
|
|
8130
|
+
function Bl(e) {
|
|
8127
8131
|
if (typeof Symbol < "u" && e[Symbol.iterator] != null || e["@@iterator"] != null) return Array.from(e);
|
|
8128
8132
|
}
|
|
8129
|
-
function
|
|
8133
|
+
function wl(e, t) {
|
|
8130
8134
|
if (e) {
|
|
8131
|
-
if (typeof e == "string") return
|
|
8135
|
+
if (typeof e == "string") return On(e, t);
|
|
8132
8136
|
var r = Object.prototype.toString.call(e).slice(8, -1);
|
|
8133
8137
|
if (r === "Object" && e.constructor && (r = e.constructor.name), r === "Map" || r === "Set") return Array.from(e);
|
|
8134
|
-
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return
|
|
8138
|
+
if (r === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)) return On(e, t);
|
|
8135
8139
|
}
|
|
8136
8140
|
}
|
|
8137
|
-
function
|
|
8141
|
+
function On(e, t) {
|
|
8138
8142
|
(t == null || t > e.length) && (t = e.length);
|
|
8139
8143
|
for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
|
|
8140
8144
|
return n;
|
|
8141
8145
|
}
|
|
8142
|
-
function
|
|
8146
|
+
function Pl() {
|
|
8143
8147
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8144
8148
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
8145
8149
|
}
|
|
8146
|
-
function
|
|
8150
|
+
function Ln(e, t) {
|
|
8147
8151
|
return e === null || ur(e) !== "object" || e instanceof Date || e instanceof RegExp || jt.isValidElement(e) ? e : (t.add(e), Array.isArray(e) ? e.map(function(r) {
|
|
8148
|
-
return
|
|
8152
|
+
return Ln(r, t);
|
|
8149
8153
|
}) : Object.keys(e).sort().reduce(function(r, n) {
|
|
8150
|
-
return n === "_owner" || (n === "current" || t.has(e[n]) ? r[n] = "[Circular]" : r[n] =
|
|
8154
|
+
return n === "_owner" || (n === "current" || t.has(e[n]) ? r[n] = "[Circular]" : r[n] = Ln(e[n], t)), r;
|
|
8151
8155
|
}, {}));
|
|
8152
8156
|
}
|
|
8153
|
-
function
|
|
8154
|
-
return
|
|
8157
|
+
function Il(e) {
|
|
8158
|
+
return Ln(e, /* @__PURE__ */ new WeakSet());
|
|
8155
8159
|
}
|
|
8156
8160
|
var bs = function(e) {
|
|
8157
8161
|
return { type: "string", value: e };
|
|
8158
|
-
},
|
|
8162
|
+
}, Nl = function(e) {
|
|
8159
8163
|
return { type: "number", value: e };
|
|
8160
|
-
},
|
|
8164
|
+
}, Rl = function(e, t, r, n) {
|
|
8161
8165
|
return { type: "ReactElement", displayName: e, props: t, defaultProps: r, childrens: n };
|
|
8162
|
-
},
|
|
8166
|
+
}, kl = function(e, t) {
|
|
8163
8167
|
return { type: "ReactFragment", key: e, childrens: t };
|
|
8164
|
-
},
|
|
8168
|
+
}, Ol = !!Mn, Ts = function(e) {
|
|
8165
8169
|
return !e.name || e.name === "_default" ? "No Display Name" : e.name;
|
|
8166
|
-
},
|
|
8170
|
+
}, Ll = function e(t) {
|
|
8167
8171
|
switch (!0) {
|
|
8168
8172
|
case !!t.displayName:
|
|
8169
8173
|
return t.displayName;
|
|
@@ -8174,7 +8178,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8174
8178
|
default:
|
|
8175
8179
|
return Ts(t);
|
|
8176
8180
|
}
|
|
8177
|
-
},
|
|
8181
|
+
}, jl = function(e) {
|
|
8178
8182
|
switch (!0) {
|
|
8179
8183
|
case typeof e.type == "string":
|
|
8180
8184
|
return e.type;
|
|
@@ -8182,7 +8186,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8182
8186
|
return e.type.displayName ? e.type.displayName : Ts(e.type);
|
|
8183
8187
|
case (0, st.isForwardRef)(e):
|
|
8184
8188
|
case (0, st.isMemo)(e):
|
|
8185
|
-
return
|
|
8189
|
+
return Ll(e.type);
|
|
8186
8190
|
case (0, st.isContextConsumer)(e):
|
|
8187
8191
|
return "".concat(e.type._context.displayName || "Context", ".Consumer");
|
|
8188
8192
|
case (0, st.isContextProvider)(e):
|
|
@@ -8198,109 +8202,109 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8198
8202
|
default:
|
|
8199
8203
|
return "UnknownElementType";
|
|
8200
8204
|
}
|
|
8201
|
-
},
|
|
8205
|
+
}, Ji = function(e, t) {
|
|
8202
8206
|
return t !== "children";
|
|
8203
|
-
},
|
|
8207
|
+
}, $l = function(e) {
|
|
8204
8208
|
return e !== !0 && e !== !1 && e !== null && e !== "";
|
|
8205
|
-
},
|
|
8209
|
+
}, qi = function(e, t) {
|
|
8206
8210
|
var r = {};
|
|
8207
8211
|
return Object.keys(e).filter(function(n) {
|
|
8208
8212
|
return t(e[n], n);
|
|
8209
8213
|
}).forEach(function(n) {
|
|
8210
8214
|
return r[n] = e[n];
|
|
8211
8215
|
}), r;
|
|
8212
|
-
},
|
|
8213
|
-
var n = r.displayName, i = n === void 0 ?
|
|
8216
|
+
}, fi = function e(t, r) {
|
|
8217
|
+
var n = r.displayName, i = n === void 0 ? jl : n;
|
|
8214
8218
|
if (typeof t == "string") return bs(t);
|
|
8215
|
-
if (typeof t == "number") return
|
|
8219
|
+
if (typeof t == "number") return Nl(t);
|
|
8216
8220
|
if (!at.isValidElement(t)) throw new Error("react-element-to-jsx-string: Expected a React.Element, got `".concat(ur(t), "`"));
|
|
8217
|
-
var s = i(t), o =
|
|
8221
|
+
var s = i(t), o = qi(t.props, Ji);
|
|
8218
8222
|
t.ref !== null && (o.ref = t.ref);
|
|
8219
8223
|
var c = t.key;
|
|
8220
8224
|
typeof c == "string" && c.search(/^\./) && (o.key = c);
|
|
8221
|
-
var l =
|
|
8225
|
+
var l = qi(t.type.defaultProps || {}, Ji), f = at.Children.toArray(t.props.children).filter($l).map(function(p) {
|
|
8222
8226
|
return e(p, r);
|
|
8223
8227
|
});
|
|
8224
|
-
return
|
|
8228
|
+
return Ol && t.type === Mn ? kl(c, f) : Rl(s, o, l, f);
|
|
8225
8229
|
};
|
|
8226
|
-
function
|
|
8230
|
+
function Ml() {
|
|
8227
8231
|
}
|
|
8228
|
-
var
|
|
8232
|
+
var Vl = function(e) {
|
|
8229
8233
|
return e.toString().split(`
|
|
8230
8234
|
`).map(function(t) {
|
|
8231
8235
|
return t.trim();
|
|
8232
8236
|
}).join("");
|
|
8233
|
-
},
|
|
8234
|
-
var r = t.functionValue, n = r === void 0 ?
|
|
8235
|
-
return n(!i && n ===
|
|
8236
|
-
},
|
|
8237
|
-
var i =
|
|
8237
|
+
}, Ui = Vl, Bs = function(e, t) {
|
|
8238
|
+
var r = t.functionValue, n = r === void 0 ? Ui : r, i = t.showFunctions;
|
|
8239
|
+
return n(!i && n === Ui ? Ml : e);
|
|
8240
|
+
}, Jl = function(e, t, r, n) {
|
|
8241
|
+
var i = Il(e), s = (0, _l.prettyPrint)(i, { transform: function(o, c, l) {
|
|
8238
8242
|
var f = o[c];
|
|
8239
|
-
return f &&
|
|
8243
|
+
return f && Vn(f) ? Wr(fi(f, n), !0, r, n) : typeof f == "function" ? Bs(f, n) : l;
|
|
8240
8244
|
} });
|
|
8241
8245
|
return t ? s.replace(/\s+/g, " ").replace(/{ /g, "{").replace(/ }/g, "}").replace(/\[ /g, "[").replace(/ ]/g, "]") : s.replace(/\t/g, mt(1, n.tabStop)).replace(/\n([^$])/g, `
|
|
8242
8246
|
`.concat(mt(r + 1, n.tabStop), "$1"));
|
|
8243
|
-
},
|
|
8247
|
+
}, ql = function(e) {
|
|
8244
8248
|
return e.replace(/"/g, """);
|
|
8245
|
-
},
|
|
8249
|
+
}, Ul = function(e, t, r, n) {
|
|
8246
8250
|
if (typeof e == "number") return "{".concat(String(e), "}");
|
|
8247
|
-
if (typeof e == "string") return '"'.concat(
|
|
8251
|
+
if (typeof e == "string") return '"'.concat(ql(e), '"');
|
|
8248
8252
|
if (ur(e) === "symbol") {
|
|
8249
8253
|
var i = e.valueOf().toString().replace(/Symbol\((.*)\)/, "$1");
|
|
8250
8254
|
return i ? "{Symbol('".concat(i, "')}") : "{Symbol()}";
|
|
8251
8255
|
}
|
|
8252
|
-
return typeof e == "function" ? "{".concat(Bs(e, n), "}") :
|
|
8253
|
-
},
|
|
8256
|
+
return typeof e == "function" ? "{".concat(Bs(e, n), "}") : Vn(e) ? "{".concat(Wr(fi(e, n), !0, r, n), "}") : e instanceof Date ? isNaN(e.valueOf()) ? "{new Date(NaN)}" : '{new Date("'.concat(e.toISOString(), '")}') : xl(e) || Array.isArray(e) ? "{".concat(Jl(e, t, r, n), "}") : "{".concat(String(e), "}");
|
|
8257
|
+
}, Gl = function(e, t, r, n, i, s, o, c) {
|
|
8254
8258
|
if (!t && !n) throw new Error('The prop "'.concat(e, '" has no value and no default: could not be formatted'));
|
|
8255
|
-
var l = t ? r : i, f = c.useBooleanShorthandSyntax, p = c.tabStop, v =
|
|
8259
|
+
var l = t ? r : i, f = c.useBooleanShorthandSyntax, p = c.tabStop, v = Ul(l, s, o, c), E = " ", D = `
|
|
8256
8260
|
`.concat(mt(o + 1, p)), A = v.includes(`
|
|
8257
8261
|
`);
|
|
8258
8262
|
return f && v === "{false}" && !n ? (E = "", D = "") : f && v === "{true}" ? (E += "".concat(e), D += "".concat(e)) : (E += "".concat(e, "=").concat(v), D += "".concat(e, "=").concat(v)), { attributeFormattedInline: E, attributeFormattedMultiline: D, isMultilineAttribute: A };
|
|
8259
|
-
},
|
|
8263
|
+
}, Wl = function(e, t) {
|
|
8260
8264
|
var r = e.slice(0, e.length > 0 ? e.length - 1 : 0), n = e[e.length - 1];
|
|
8261
8265
|
return n && (t.type === "string" || t.type === "number") && (n.type === "string" || n.type === "number") ? r.push(bs(String(n.value) + String(t.value))) : (n && r.push(n), r.push(t)), r;
|
|
8262
|
-
},
|
|
8266
|
+
}, zl = function(e) {
|
|
8263
8267
|
return ["key", "ref"].includes(e);
|
|
8264
|
-
},
|
|
8268
|
+
}, Yl = function(e) {
|
|
8265
8269
|
return function(t) {
|
|
8266
8270
|
var r = t.includes("key"), n = t.includes("ref"), i = t.filter(function(o) {
|
|
8267
|
-
return !
|
|
8268
|
-
}), s =
|
|
8271
|
+
return !zl(o);
|
|
8272
|
+
}), s = bl(e ? i.sort() : i);
|
|
8269
8273
|
return n && s.unshift("ref"), r && s.unshift("key"), s;
|
|
8270
8274
|
};
|
|
8271
8275
|
};
|
|
8272
|
-
function
|
|
8276
|
+
function Xl(e, t) {
|
|
8273
8277
|
return Array.isArray(t) ? function(r) {
|
|
8274
8278
|
return t.indexOf(r) === -1;
|
|
8275
8279
|
} : function(r) {
|
|
8276
8280
|
return t(e[r], r);
|
|
8277
8281
|
};
|
|
8278
8282
|
}
|
|
8279
|
-
var
|
|
8283
|
+
var Kl = function(e, t, r, n, i) {
|
|
8280
8284
|
var s = i.tabStop;
|
|
8281
8285
|
return e.type === "string" ? t.split(`
|
|
8282
8286
|
`).map(function(o, c) {
|
|
8283
8287
|
return c === 0 ? o : "".concat(mt(n, s)).concat(o);
|
|
8284
8288
|
}).join(`
|
|
8285
8289
|
`) : t;
|
|
8286
|
-
},
|
|
8290
|
+
}, Hl = function(e, t, r) {
|
|
8287
8291
|
return function(n) {
|
|
8288
|
-
return
|
|
8292
|
+
return Kl(n, Wr(n, e, t, r), e, t, r);
|
|
8289
8293
|
};
|
|
8290
|
-
},
|
|
8294
|
+
}, Ql = function(e, t) {
|
|
8291
8295
|
return function(r) {
|
|
8292
8296
|
var n = Object.keys(e).includes(r);
|
|
8293
8297
|
return !n || n && e[r] !== t[r];
|
|
8294
8298
|
};
|
|
8295
8299
|
}, ws = function(e, t, r, n, i) {
|
|
8296
8300
|
return i ? mt(r, n).length + t.length > i : e.length > 1;
|
|
8297
|
-
},
|
|
8301
|
+
}, Zl = function(e, t, r, n, i, s, o) {
|
|
8298
8302
|
return (ws(e, t, i, s, o) || r) && !n;
|
|
8299
8303
|
}, Ps = function(e, t, r, n) {
|
|
8300
8304
|
var i = e.type, s = e.displayName, o = s === void 0 ? "" : s, c = e.childrens, l = e.props, f = l === void 0 ? {} : l, p = e.defaultProps, v = p === void 0 ? {} : p;
|
|
8301
8305
|
if (i !== "ReactElement") throw new Error('The "formatReactElementNode" function could only format node of type "ReactElement". Given: '.concat(i));
|
|
8302
|
-
var E = n.filterProps, D = n.maxInlineAttributesLineLength, A = n.showDefaultProps, g = n.sortProps, B = n.tabStop, b = "<".concat(o), T = b, J = b, w = !1, _ = [], F =
|
|
8303
|
-
Object.keys(f).filter(F).filter(
|
|
8306
|
+
var E = n.filterProps, D = n.maxInlineAttributesLineLength, A = n.showDefaultProps, g = n.sortProps, B = n.tabStop, b = "<".concat(o), T = b, J = b, w = !1, _ = [], F = Xl(f, E);
|
|
8307
|
+
Object.keys(f).filter(F).filter(Ql(v, f)).forEach(function(j) {
|
|
8304
8308
|
return _.push(j);
|
|
8305
8309
|
}), Object.keys(v).filter(F).filter(function() {
|
|
8306
8310
|
return A;
|
|
@@ -8309,56 +8313,56 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8309
8313
|
}).forEach(function(j) {
|
|
8310
8314
|
return _.push(j);
|
|
8311
8315
|
});
|
|
8312
|
-
var I =
|
|
8316
|
+
var I = Yl(g)(_);
|
|
8313
8317
|
if (I.forEach(function(j) {
|
|
8314
|
-
var M =
|
|
8318
|
+
var M = Gl(j, Object.keys(f).includes(j), f[j], Object.keys(v).includes(j), v[j], t, r, n), te = M.attributeFormattedInline, $ = M.attributeFormattedMultiline, ue = M.isMultilineAttribute;
|
|
8315
8319
|
ue && (w = !0), T += te, J += $;
|
|
8316
8320
|
}), J += `
|
|
8317
|
-
`.concat(mt(r, B)),
|
|
8321
|
+
`.concat(mt(r, B)), Zl(I, T, w, t, r, B, D) ? b = J : b = T, c && c.length > 0) {
|
|
8318
8322
|
var N = r + 1;
|
|
8319
8323
|
b += ">", t || (b += `
|
|
8320
|
-
`, b += mt(N, B)), b += c.reduce(
|
|
8324
|
+
`, b += mt(N, B)), b += c.reduce(Wl, []).map(Hl(t, N, n)).join(t ? "" : `
|
|
8321
8325
|
`.concat(mt(N, B))), t || (b += `
|
|
8322
8326
|
`, b += mt(N - 1, B)), b += "</".concat(o, ">");
|
|
8323
8327
|
} else ws(I, T, r, B, D) || (b += " "), b += "/>";
|
|
8324
8328
|
return b;
|
|
8325
|
-
},
|
|
8329
|
+
}, ec = "", Gi = "React.Fragment", tc = function(e, t, r) {
|
|
8326
8330
|
var n = {};
|
|
8327
8331
|
return t && (n = { key: t }), { type: "ReactElement", displayName: e, props: n, defaultProps: {}, childrens: r };
|
|
8328
|
-
},
|
|
8332
|
+
}, rc = function(e) {
|
|
8329
8333
|
var t = e.key;
|
|
8330
8334
|
return !!t;
|
|
8331
|
-
},
|
|
8335
|
+
}, nc = function(e) {
|
|
8332
8336
|
var t = e.childrens;
|
|
8333
8337
|
return t.length === 0;
|
|
8334
|
-
},
|
|
8338
|
+
}, ic = function(e, t, r, n) {
|
|
8335
8339
|
var i = e.type, s = e.key, o = e.childrens;
|
|
8336
8340
|
if (i !== "ReactFragment") throw new Error('The "formatReactFragmentNode" function could only format node of type "ReactFragment". Given: '.concat(i));
|
|
8337
8341
|
var c = n.useFragmentShortSyntax, l;
|
|
8338
|
-
return c ?
|
|
8339
|
-
},
|
|
8340
|
-
return
|
|
8342
|
+
return c ? nc(e) || rc(e) ? l = Gi : l = ec : l = Gi, Ps(tc(l, s, o), t, r, n);
|
|
8343
|
+
}, uc = ["<", ">", "{", "}"], sc = function(e) {
|
|
8344
|
+
return uc.some(function(t) {
|
|
8341
8345
|
return e.includes(t);
|
|
8342
8346
|
});
|
|
8343
|
-
},
|
|
8344
|
-
return
|
|
8345
|
-
},
|
|
8347
|
+
}, ac = function(e) {
|
|
8348
|
+
return sc(e) ? "{`".concat(e, "`}") : e;
|
|
8349
|
+
}, oc = function(e) {
|
|
8346
8350
|
var t = e;
|
|
8347
8351
|
return t.endsWith(" ") && (t = t.replace(/^(.*?)(\s+)$/, "$1{'$2'}")), t.startsWith(" ") && (t = t.replace(/^(\s+)(.*)$/, "{'$1'}$2")), t;
|
|
8348
|
-
},
|
|
8352
|
+
}, Wr = function(e, t, r, n) {
|
|
8349
8353
|
if (e.type === "number") return String(e.value);
|
|
8350
|
-
if (e.type === "string") return e.value ? "".concat(
|
|
8354
|
+
if (e.type === "string") return e.value ? "".concat(oc(ac(String(e.value)))) : "";
|
|
8351
8355
|
if (e.type === "ReactElement") return Ps(e, t, r, n);
|
|
8352
|
-
if (e.type === "ReactFragment") return
|
|
8356
|
+
if (e.type === "ReactFragment") return ic(e, t, r, n);
|
|
8353
8357
|
throw new TypeError('Unknow format type "'.concat(e.type, '"'));
|
|
8354
|
-
},
|
|
8355
|
-
return
|
|
8358
|
+
}, lc = function(e, t) {
|
|
8359
|
+
return Wr(e, !1, 0, t);
|
|
8356
8360
|
}, Is = function(e) {
|
|
8357
8361
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, r = t.filterProps, n = r === void 0 ? [] : r, i = t.showDefaultProps, s = i === void 0 ? !0 : i, o = t.showFunctions, c = o === void 0 ? !1 : o, l = t.functionValue, f = t.tabStop, p = f === void 0 ? 2 : f, v = t.useBooleanShorthandSyntax, E = v === void 0 ? !0 : v, D = t.useFragmentShortSyntax, A = D === void 0 ? !0 : D, g = t.sortProps, B = g === void 0 ? !0 : g, b = t.maxInlineAttributesLineLength, T = t.displayName;
|
|
8358
8362
|
if (!e) throw new Error("react-element-to-jsx-string: Expected a ReactElement");
|
|
8359
8363
|
var J = { filterProps: n, showDefaultProps: s, showFunctions: c, functionValue: l, tabStop: p, useBooleanShorthandSyntax: E, useFragmentShortSyntax: A, sortProps: B, maxInlineAttributesLineLength: b, displayName: T };
|
|
8360
|
-
return
|
|
8361
|
-
},
|
|
8364
|
+
return lc(fi(e, J), J);
|
|
8365
|
+
}, Wi = Is;
|
|
8362
8366
|
function Ns(e) {
|
|
8363
8367
|
return e.$$typeof != null;
|
|
8364
8368
|
}
|
|
@@ -8366,22 +8370,22 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8366
8370
|
let { name: r } = e;
|
|
8367
8371
|
return r !== "" && r !== "anonymous" && r !== t ? r : null;
|
|
8368
8372
|
}
|
|
8369
|
-
var
|
|
8370
|
-
function
|
|
8371
|
-
let { type: t } = e, { displayName: r } = t, n =
|
|
8373
|
+
var cc = (e) => me(JSON.stringify(e));
|
|
8374
|
+
function pc(e) {
|
|
8375
|
+
let { type: t } = e, { displayName: r } = t, n = Wi(e, {});
|
|
8372
8376
|
if (r != null) {
|
|
8373
|
-
let i =
|
|
8377
|
+
let i = Gr(r);
|
|
8374
8378
|
return me(i, n);
|
|
8375
8379
|
}
|
|
8376
|
-
if (
|
|
8377
|
-
let i =
|
|
8380
|
+
if (vl(t) && li(t)) {
|
|
8381
|
+
let i = Wi(e, { tabStop: 0 }).replace(/\r?\n|\r/g, "");
|
|
8378
8382
|
if (!Pt(i)) return me(i);
|
|
8379
8383
|
}
|
|
8380
8384
|
return me(qt, n);
|
|
8381
8385
|
}
|
|
8382
|
-
var
|
|
8383
|
-
if (Ns(e) && e.type != null) return
|
|
8384
|
-
if (
|
|
8386
|
+
var hc = (e) => {
|
|
8387
|
+
if (Ns(e) && e.type != null) return pc(e);
|
|
8388
|
+
if (Sl(e)) {
|
|
8385
8389
|
let t = Dt(JSON.stringify(e));
|
|
8386
8390
|
return Ss(t);
|
|
8387
8391
|
}
|
|
@@ -8390,10 +8394,10 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8390
8394
|
return vs(t);
|
|
8391
8395
|
}
|
|
8392
8396
|
return me(lr);
|
|
8393
|
-
},
|
|
8397
|
+
}, fc = (e, t) => {
|
|
8394
8398
|
let r = !1, n;
|
|
8395
|
-
if (
|
|
8396
|
-
else if (e.prototype != null &&
|
|
8399
|
+
if (Mi(e.render)) r = !0;
|
|
8400
|
+
else if (e.prototype != null && Mi(e.prototype.render)) r = !0;
|
|
8397
8401
|
else {
|
|
8398
8402
|
let s;
|
|
8399
8403
|
try {
|
|
@@ -8405,17 +8409,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8405
8409
|
}
|
|
8406
8410
|
let i = Rs(e, t.name);
|
|
8407
8411
|
if (i != null) {
|
|
8408
|
-
if (r) return me(
|
|
8412
|
+
if (r) return me(Gr(i));
|
|
8409
8413
|
n != null && (n = Dt(e.toString()));
|
|
8410
8414
|
let { hasParams: s } = n.inferredType;
|
|
8411
|
-
return me(
|
|
8415
|
+
return me(hi(i, s));
|
|
8412
8416
|
}
|
|
8413
8417
|
return me(r ? qt : Mt);
|
|
8414
|
-
},
|
|
8415
|
-
function
|
|
8418
|
+
}, dc = (e) => me(e.toString()), ks = { string: cc, object: hc, function: fc, default: dc };
|
|
8419
|
+
function mc(e = {}) {
|
|
8416
8420
|
return { ...ks, ...e };
|
|
8417
8421
|
}
|
|
8418
|
-
function
|
|
8422
|
+
function yc(e, t, r = ks) {
|
|
8419
8423
|
try {
|
|
8420
8424
|
switch (typeof e) {
|
|
8421
8425
|
case "string":
|
|
@@ -8432,7 +8436,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8432
8436
|
}
|
|
8433
8437
|
return null;
|
|
8434
8438
|
}
|
|
8435
|
-
function
|
|
8439
|
+
function Ec(e, t) {
|
|
8436
8440
|
let r = e != null, n = t != null;
|
|
8437
8441
|
if (!r && !n) return "";
|
|
8438
8442
|
let i = [];
|
|
@@ -8445,46 +8449,46 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8445
8449
|
} else i.push("()");
|
|
8446
8450
|
return n && i.push(`=> ${t.getTypeName()}`), i.join(" ");
|
|
8447
8451
|
}
|
|
8448
|
-
function
|
|
8452
|
+
function Ac(e, t) {
|
|
8449
8453
|
let r = e != null, n = t != null;
|
|
8450
8454
|
if (!r && !n) return "";
|
|
8451
8455
|
let i = [];
|
|
8452
8456
|
return r ? i.push("( ... )") : i.push("()"), n && i.push(`=> ${t.getTypeName()}`), i.join(" ");
|
|
8453
8457
|
}
|
|
8454
|
-
function
|
|
8458
|
+
function gc(e) {
|
|
8455
8459
|
return e.replace(/,/g, `,\r
|
|
8456
8460
|
`);
|
|
8457
8461
|
}
|
|
8458
|
-
var
|
|
8462
|
+
var Dc = 150;
|
|
8459
8463
|
function Je({ name: e, short: t, compact: r, full: n, inferredType: i }) {
|
|
8460
8464
|
return { name: e, short: t, compact: r, full: n ?? t, inferredType: i };
|
|
8461
8465
|
}
|
|
8462
8466
|
function Os(e) {
|
|
8463
8467
|
return e.replace(/PropTypes./g, "").replace(/.isRequired/g, "");
|
|
8464
8468
|
}
|
|
8465
|
-
function
|
|
8469
|
+
function zi(e) {
|
|
8466
8470
|
return e.split(/\r?\n/);
|
|
8467
8471
|
}
|
|
8468
|
-
function
|
|
8469
|
-
return Os(
|
|
8472
|
+
function kr(e, t = !1) {
|
|
8473
|
+
return Os(kn(e, t));
|
|
8470
8474
|
}
|
|
8471
|
-
function
|
|
8475
|
+
function Yi(e, t = !1) {
|
|
8472
8476
|
return Os(gt(e, t));
|
|
8473
8477
|
}
|
|
8474
|
-
function
|
|
8478
|
+
function Cc(e) {
|
|
8475
8479
|
switch (e) {
|
|
8476
8480
|
case "Object":
|
|
8477
8481
|
return lr;
|
|
8478
8482
|
case "Array":
|
|
8479
|
-
return
|
|
8483
|
+
return oi;
|
|
8480
8484
|
case "Class":
|
|
8481
|
-
return
|
|
8485
|
+
return Zo;
|
|
8482
8486
|
case "Function":
|
|
8483
8487
|
return Mt;
|
|
8484
8488
|
case "Element":
|
|
8485
8489
|
return qt;
|
|
8486
8490
|
default:
|
|
8487
|
-
return
|
|
8491
|
+
return Rn;
|
|
8488
8492
|
}
|
|
8489
8493
|
}
|
|
8490
8494
|
function Ls(e, t) {
|
|
@@ -8496,44 +8500,44 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8496
8500
|
break;
|
|
8497
8501
|
case "Object": {
|
|
8498
8502
|
let { depth: l } = r;
|
|
8499
|
-
s = lr, o = l === 1 ?
|
|
8503
|
+
s = lr, o = l === 1 ? kr(n, !0) : null, c = kr(n);
|
|
8500
8504
|
break;
|
|
8501
8505
|
}
|
|
8502
8506
|
case "Element": {
|
|
8503
8507
|
let { identifier: l } = r;
|
|
8504
|
-
s = l != null && !
|
|
8508
|
+
s = l != null && !li(l) ? l : qt, o = zi(e).length === 1 ? e : null, c = e;
|
|
8505
8509
|
break;
|
|
8506
8510
|
}
|
|
8507
8511
|
case "Array": {
|
|
8508
8512
|
let { depth: l } = r;
|
|
8509
|
-
s =
|
|
8513
|
+
s = oi, o = l <= 2 ? Yi(n, !0) : null, c = Yi(n);
|
|
8510
8514
|
break;
|
|
8511
8515
|
}
|
|
8512
8516
|
default:
|
|
8513
|
-
s =
|
|
8517
|
+
s = Cc(i), o = zi(e).length === 1 ? e : null, c = e;
|
|
8514
8518
|
break;
|
|
8515
8519
|
}
|
|
8516
8520
|
return Je({ name: t, short: s, compact: o, full: c, inferredType: i });
|
|
8517
8521
|
}
|
|
8518
|
-
function
|
|
8519
|
-
return e != null ? Ls(e, "custom") : Je({ name: "custom", short:
|
|
8522
|
+
function Fc({ raw: e }) {
|
|
8523
|
+
return e != null ? Ls(e, "custom") : Je({ name: "custom", short: Rn, compact: Rn });
|
|
8520
8524
|
}
|
|
8521
|
-
function
|
|
8525
|
+
function vc(e) {
|
|
8522
8526
|
let { jsDocTags: t } = e;
|
|
8523
|
-
return t != null && (t.params != null || t.returns != null) ? Je({ name: "func", short:
|
|
8527
|
+
return t != null && (t.params != null || t.returns != null) ? Je({ name: "func", short: Ac(t.params, t.returns), compact: null, full: Ec(t.params, t.returns) }) : Je({ name: "func", short: Mt, compact: Mt });
|
|
8524
8528
|
}
|
|
8525
|
-
function
|
|
8529
|
+
function Sc(e, t) {
|
|
8526
8530
|
let r = Object.keys(e.value).map((o) => `${o}: ${Vt(e.value[o], t).full}`).join(", "), { inferredType: n, ast: i } = Dt(`{ ${r} }`), { depth: s } = n;
|
|
8527
|
-
return Je({ name: "shape", short: lr, compact: s === 1 && i ?
|
|
8531
|
+
return Je({ name: "shape", short: lr, compact: s === 1 && i ? kr(i, !0) : null, full: i ? kr(i) : null });
|
|
8528
8532
|
}
|
|
8529
|
-
function
|
|
8533
|
+
function An(e) {
|
|
8530
8534
|
return `objectOf(${e})`;
|
|
8531
8535
|
}
|
|
8532
|
-
function
|
|
8536
|
+
function xc(e, t) {
|
|
8533
8537
|
let { short: r, compact: n, full: i } = Vt(e.value, t);
|
|
8534
|
-
return Je({ name: "objectOf", short:
|
|
8538
|
+
return Je({ name: "objectOf", short: An(r), compact: n != null ? An(n) : null, full: i && An(i) });
|
|
8535
8539
|
}
|
|
8536
|
-
function
|
|
8540
|
+
function _c(e, t) {
|
|
8537
8541
|
if (Array.isArray(e.value)) {
|
|
8538
8542
|
let r = e.value.reduce((n, i) => {
|
|
8539
8543
|
let { short: s, compact: o, full: c } = Vt(i, t);
|
|
@@ -8543,54 +8547,54 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8543
8547
|
}
|
|
8544
8548
|
return Je({ name: "union", short: e.value, compact: null });
|
|
8545
8549
|
}
|
|
8546
|
-
function
|
|
8550
|
+
function bc({ value: e, computed: t }) {
|
|
8547
8551
|
return t ? Ls(e, "enumvalue") : Je({ name: "enumvalue", short: e, compact: e });
|
|
8548
8552
|
}
|
|
8549
|
-
function
|
|
8553
|
+
function Tc(e) {
|
|
8550
8554
|
if (Array.isArray(e.value)) {
|
|
8551
8555
|
let t = e.value.reduce((r, n) => {
|
|
8552
|
-
let { short: i, compact: s, full: o } =
|
|
8556
|
+
let { short: i, compact: s, full: o } = bc(n);
|
|
8553
8557
|
return r.short.push(i), r.compact.push(s), r.full.push(o), r;
|
|
8554
8558
|
}, { short: [], compact: [], full: [] });
|
|
8555
8559
|
return Je({ name: "enum", short: t.short.join(" | "), compact: t.compact.every((r) => r != null) ? t.compact.join(" | ") : null, full: t.full.join(" | ") });
|
|
8556
8560
|
}
|
|
8557
8561
|
return Je({ name: "enum", short: e.value, compact: e.value });
|
|
8558
8562
|
}
|
|
8559
|
-
function
|
|
8563
|
+
function jn(e) {
|
|
8560
8564
|
return `${e}[]`;
|
|
8561
8565
|
}
|
|
8562
|
-
function
|
|
8566
|
+
function Xi(e) {
|
|
8563
8567
|
return `[${e}]`;
|
|
8564
8568
|
}
|
|
8565
|
-
function
|
|
8566
|
-
return Je({ name: "arrayOf", short:
|
|
8569
|
+
function Ki(e, t, r) {
|
|
8570
|
+
return Je({ name: "arrayOf", short: jn(e), compact: t != null ? Xi(t) : null, full: r && Xi(r) });
|
|
8567
8571
|
}
|
|
8568
|
-
function
|
|
8572
|
+
function Bc(e, t) {
|
|
8569
8573
|
let { name: r, short: n, compact: i, full: s, inferredType: o } = Vt(e.value, t);
|
|
8570
8574
|
if (r === "custom") {
|
|
8571
|
-
if (o === "Object") return
|
|
8572
|
-
} else if (r === "shape") return
|
|
8573
|
-
return Je({ name: "arrayOf", short:
|
|
8575
|
+
if (o === "Object") return Ki(n, i, s);
|
|
8576
|
+
} else if (r === "shape") return Ki(n, i, s);
|
|
8577
|
+
return Je({ name: "arrayOf", short: jn(n), compact: jn(n) });
|
|
8574
8578
|
}
|
|
8575
8579
|
function Vt(e, t) {
|
|
8576
8580
|
try {
|
|
8577
8581
|
switch (e.name) {
|
|
8578
8582
|
case "custom":
|
|
8579
|
-
return
|
|
8583
|
+
return Fc(e);
|
|
8580
8584
|
case "func":
|
|
8581
|
-
return
|
|
8585
|
+
return vc(t);
|
|
8582
8586
|
case "shape":
|
|
8583
|
-
return
|
|
8587
|
+
return Sc(e, t);
|
|
8584
8588
|
case "instanceOf":
|
|
8585
8589
|
return Je({ name: "instanceOf", short: e.value, compact: e.value });
|
|
8586
8590
|
case "objectOf":
|
|
8587
|
-
return
|
|
8591
|
+
return xc(e, t);
|
|
8588
8592
|
case "union":
|
|
8589
|
-
return
|
|
8593
|
+
return _c(e, t);
|
|
8590
8594
|
case "enum":
|
|
8591
|
-
return
|
|
8595
|
+
return Tc(e);
|
|
8592
8596
|
case "arrayOf":
|
|
8593
|
-
return
|
|
8597
|
+
return Bc(e, t);
|
|
8594
8598
|
default:
|
|
8595
8599
|
return Je({ name: e.name, short: e.name, compact: e.name });
|
|
8596
8600
|
}
|
|
@@ -8599,7 +8603,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8599
8603
|
}
|
|
8600
8604
|
return Je({ name: "unknown", short: "unknown", compact: "unknown" });
|
|
8601
8605
|
}
|
|
8602
|
-
function
|
|
8606
|
+
function wc(e) {
|
|
8603
8607
|
let { type: t } = e.docgenInfo;
|
|
8604
8608
|
if (t == null) return null;
|
|
8605
8609
|
try {
|
|
@@ -8612,11 +8616,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8612
8616
|
case "enum":
|
|
8613
8617
|
case "arrayOf": {
|
|
8614
8618
|
let { short: r, compact: n, full: i } = Vt(t, e);
|
|
8615
|
-
return n != null && !
|
|
8619
|
+
return n != null && !Ur(n) ? me(n) : i ? me(r, i) : me(r);
|
|
8616
8620
|
}
|
|
8617
8621
|
case "func": {
|
|
8618
8622
|
let { short: r, full: n } = Vt(t, e), i = r, s;
|
|
8619
|
-
return n && n.length <
|
|
8623
|
+
return n && n.length < Dc ? i = n : n && (s = gc(n)), me(i, s);
|
|
8620
8624
|
}
|
|
8621
8625
|
default:
|
|
8622
8626
|
return null;
|
|
@@ -8626,37 +8630,37 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8626
8630
|
}
|
|
8627
8631
|
return null;
|
|
8628
8632
|
}
|
|
8629
|
-
var
|
|
8633
|
+
var Pc = (e, { name: t, type: r }) => {
|
|
8630
8634
|
let n = (r == null ? void 0 : r.summary) === "element" || (r == null ? void 0 : r.summary) === "elementType", i = Rs(e, t);
|
|
8631
8635
|
if (i != null) {
|
|
8632
|
-
if (n) return me(
|
|
8636
|
+
if (n) return me(Gr(i));
|
|
8633
8637
|
let { hasParams: s } = Dt(e.toString()).inferredType;
|
|
8634
|
-
return me(
|
|
8638
|
+
return me(hi(i, s));
|
|
8635
8639
|
}
|
|
8636
8640
|
return me(n ? qt : Mt);
|
|
8637
|
-
},
|
|
8638
|
-
function
|
|
8641
|
+
}, Ic = mc({ function: Pc });
|
|
8642
|
+
function Nc(e, t) {
|
|
8639
8643
|
let { propTypes: r } = t;
|
|
8640
8644
|
return r != null ? Object.keys(r).map((n) => e.find((i) => i.name === n)).filter(Boolean) : e;
|
|
8641
8645
|
}
|
|
8642
|
-
function
|
|
8643
|
-
let { propDef: r } = e, n =
|
|
8646
|
+
function Rc(e, t) {
|
|
8647
|
+
let { propDef: r } = e, n = wc(e);
|
|
8644
8648
|
n != null && (r.type = n);
|
|
8645
8649
|
let { defaultValue: i } = e.docgenInfo;
|
|
8646
8650
|
if (i != null && i.value != null) {
|
|
8647
8651
|
let s = _s(i.value);
|
|
8648
8652
|
s != null && (r.defaultValue = s);
|
|
8649
8653
|
} else if (t != null) {
|
|
8650
|
-
let s =
|
|
8654
|
+
let s = yc(t, r, Ic);
|
|
8651
8655
|
s != null && (r.defaultValue = s);
|
|
8652
8656
|
}
|
|
8653
8657
|
return r;
|
|
8654
8658
|
}
|
|
8655
|
-
function
|
|
8656
|
-
let r = t.defaultProps != null ? t.defaultProps : {}, n = e.map((i) =>
|
|
8657
|
-
return
|
|
8659
|
+
function kc(e, t) {
|
|
8660
|
+
let r = t.defaultProps != null ? t.defaultProps : {}, n = e.map((i) => Rc(i, r[i.propDef.name]));
|
|
8661
|
+
return Nc(n, t);
|
|
8658
8662
|
}
|
|
8659
|
-
function
|
|
8663
|
+
function Oc(e, t) {
|
|
8660
8664
|
let { propDef: r } = e, { defaultValue: n } = e.docgenInfo;
|
|
8661
8665
|
if (n != null && n.value != null) {
|
|
8662
8666
|
let i = _s(n.value);
|
|
@@ -8664,46 +8668,46 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8664
8668
|
}
|
|
8665
8669
|
return r;
|
|
8666
8670
|
}
|
|
8667
|
-
function
|
|
8668
|
-
return e.map((t) =>
|
|
8671
|
+
function Lc(e) {
|
|
8672
|
+
return e.map((t) => Oc(t));
|
|
8669
8673
|
}
|
|
8670
|
-
var
|
|
8671
|
-
Object.keys(
|
|
8672
|
-
let t =
|
|
8673
|
-
|
|
8674
|
+
var Hi = /* @__PURE__ */ new Map();
|
|
8675
|
+
Object.keys(Li.default).forEach((e) => {
|
|
8676
|
+
let t = Li.default[e];
|
|
8677
|
+
Hi.set(t, e), Hi.set(t.isRequired, e);
|
|
8674
8678
|
});
|
|
8675
|
-
function
|
|
8679
|
+
function jc(e, t) {
|
|
8676
8680
|
let r = e;
|
|
8677
|
-
!
|
|
8678
|
-
let n =
|
|
8681
|
+
!qr(e) && !e.propTypes && gs(e) && (r = e.type);
|
|
8682
|
+
let n = oo(r, t);
|
|
8679
8683
|
if (n.length === 0) return [];
|
|
8680
8684
|
switch (n[0].typeSystem) {
|
|
8681
|
-
case
|
|
8682
|
-
return
|
|
8683
|
-
case
|
|
8684
|
-
return
|
|
8685
|
+
case Fn.JAVASCRIPT:
|
|
8686
|
+
return kc(n, e);
|
|
8687
|
+
case Fn.TYPESCRIPT:
|
|
8688
|
+
return Lc(n);
|
|
8685
8689
|
default:
|
|
8686
8690
|
return n.map((i) => i.propDef);
|
|
8687
8691
|
}
|
|
8688
8692
|
}
|
|
8689
|
-
var
|
|
8693
|
+
var $c = (e) => ({ rows: jc(e, "props") }), Mc = (e) => {
|
|
8690
8694
|
if (e) {
|
|
8691
|
-
let { rows: t } =
|
|
8695
|
+
let { rows: t } = $c(e);
|
|
8692
8696
|
if (t) return t.reduce((r, n) => {
|
|
8693
8697
|
let { name: i, description: s, type: o, sbType: c, defaultValue: l, jsDocTags: f, required: p } = n;
|
|
8694
8698
|
return r[i] = { name: i, description: s, type: { required: p, ...c }, table: { type: o ?? void 0, jsDocTags: f, defaultValue: l ?? void 0 } }, r;
|
|
8695
8699
|
}, {});
|
|
8696
8700
|
}
|
|
8697
8701
|
return null;
|
|
8698
|
-
},
|
|
8699
|
-
function
|
|
8700
|
-
if (
|
|
8701
|
-
let t = Object.keys(e.props).reduce((r, n) => (r[n] =
|
|
8702
|
+
}, gn = Is, Vc = (e) => e.charAt(0).toUpperCase() + e.slice(1), Jc = (e) => (e.$$typeof || e).toString().replace(/^Symbol\((.*)\)$/, "$1").split(".").map((t) => t.split("_").map(Vc).join("")).join(".");
|
|
8703
|
+
function $n(e) {
|
|
8704
|
+
if (Vn(e)) {
|
|
8705
|
+
let t = Object.keys(e.props).reduce((r, n) => (r[n] = $n(e.props[n]), r), {});
|
|
8702
8706
|
return { ...e, props: t, _owner: null };
|
|
8703
8707
|
}
|
|
8704
|
-
return Array.isArray(e) ? e.map(
|
|
8708
|
+
return Array.isArray(e) ? e.map($n) : e;
|
|
8705
8709
|
}
|
|
8706
|
-
var
|
|
8710
|
+
var qc = (e, t) => {
|
|
8707
8711
|
if (typeof e > "u") return Dr.warn("Too many skip or undefined component"), null;
|
|
8708
8712
|
let r = e, n = r.type;
|
|
8709
8713
|
for (let o = 0; o < (t == null ? void 0 : t.skip); o += 1) {
|
|
@@ -8714,11 +8718,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8714
8718
|
let i;
|
|
8715
8719
|
typeof (t == null ? void 0 : t.displayName) == "string" ? i = { showFunctions: !0, displayName: () => t.displayName } : i = { displayName: (o) => {
|
|
8716
8720
|
var c;
|
|
8717
|
-
return o.type.displayName ? o.type.displayName :
|
|
8721
|
+
return o.type.displayName ? o.type.displayName : Rr(o.type, "displayName") ? Rr(o.type, "displayName") : (c = o.type.render) != null && c.displayName ? o.type.render.displayName : typeof o.type == "symbol" || o.type.$$typeof && typeof o.type.$$typeof == "symbol" ? Jc(o.type) : o.type.name && o.type.name !== "_default" ? o.type.name : typeof o.type == "function" ? "No Display Name" : ol(o.type) ? o.type.render.name : gs(o.type) ? o.type.type.name : o.type;
|
|
8718
8722
|
} };
|
|
8719
8723
|
let s = { ...i, filterProps: (o, c) => o !== void 0, ...t };
|
|
8720
8724
|
return at.Children.map(e, (o) => {
|
|
8721
|
-
let c = typeof o == "number" ? o.toString() : o, l = (typeof
|
|
8725
|
+
let c = typeof o == "number" ? o.toString() : o, l = (typeof gn == "function" ? gn : gn.default)($n(c), s);
|
|
8722
8726
|
if (l.indexOf(""") > -1) {
|
|
8723
8727
|
let f = l.match(/\S+=\\"([^"]*)\\"/g);
|
|
8724
8728
|
f && f.forEach((p) => {
|
|
@@ -8728,38 +8732,38 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
8728
8732
|
return l;
|
|
8729
8733
|
}).join(`
|
|
8730
8734
|
`).replace(/function\s+noRefCheck\(\)\s*\{\}/g, "() => {}");
|
|
8731
|
-
},
|
|
8735
|
+
}, Uc = { skip: 0, showFunctions: !1, enableBeautify: !0, showDefaultProps: !1 }, Gc = (e) => {
|
|
8732
8736
|
var n;
|
|
8733
8737
|
let t = (n = e == null ? void 0 : e.parameters.docs) == null ? void 0 : n.source, r = e == null ? void 0 : e.parameters.__isArgsStory;
|
|
8734
|
-
return (t == null ? void 0 : t.type) ===
|
|
8735
|
-
},
|
|
8738
|
+
return (t == null ? void 0 : t.type) === vn.DYNAMIC ? !1 : !r || (t == null ? void 0 : t.code) || (t == null ? void 0 : t.type) === vn.CODE;
|
|
8739
|
+
}, Wc = (e) => {
|
|
8736
8740
|
var t, r;
|
|
8737
8741
|
return ((t = e.type) == null ? void 0 : t.displayName) === "MDXCreateElement" && !!((r = e.props) != null && r.mdxType);
|
|
8738
8742
|
}, js = (e) => {
|
|
8739
|
-
if (!
|
|
8743
|
+
if (!Wc(e)) return e;
|
|
8740
8744
|
let { mdxType: t, originalType: r, children: n, ...i } = e.props, s = [];
|
|
8741
8745
|
return n && (s = (Array.isArray(n) ? n : [n]).map(js)), qs(r, i, ...s);
|
|
8742
8746
|
}, $s = (e, t) => {
|
|
8743
8747
|
var p, v;
|
|
8744
|
-
let r =
|
|
8745
|
-
|
|
8748
|
+
let r = Gs.getChannel(), n = Gc(t), i = "";
|
|
8749
|
+
Ws(() => {
|
|
8746
8750
|
if (!n) {
|
|
8747
8751
|
let { id: E, unmappedArgs: D } = t;
|
|
8748
|
-
r.emit(
|
|
8752
|
+
r.emit(po, { id: E, source: i, args: D });
|
|
8749
8753
|
}
|
|
8750
8754
|
});
|
|
8751
8755
|
let s = e();
|
|
8752
8756
|
if (n) return s;
|
|
8753
|
-
let o = { ...
|
|
8757
|
+
let o = { ...Uc, ...(t == null ? void 0 : t.parameters.jsx) || {} }, c = (v = (p = t == null ? void 0 : t.parameters.docs) == null ? void 0 : p.source) != null && v.excludeDecorators ? t.originalStoryFn(t.args, t) : s, l = js(c), f = qc(l, o);
|
|
8754
8758
|
return f && (i = f), s;
|
|
8755
|
-
},
|
|
8759
|
+
}, zc = (e, t) => {
|
|
8756
8760
|
let r = t.findIndex((i) => i.originalFn === $s), n = r === -1 ? t : [...t.splice(r, 1), ...t];
|
|
8757
|
-
return
|
|
8758
|
-
},
|
|
8759
|
-
|
|
8760
|
-
({ ...
|
|
8761
|
-
var
|
|
8762
|
-
typeof er < "u" && ((
|
|
8761
|
+
return zs(e, n);
|
|
8762
|
+
}, Yc = { docs: { story: { inline: !0 }, extractArgTypes: Mc, extractComponentDescription: ns } }, Xc = [$s], Kc = [lo], { window: Qi } = eu;
|
|
8763
|
+
Qi && (Qi.STORYBOOK_ENV = "react");
|
|
8764
|
+
({ ...au });
|
|
8765
|
+
var Zi;
|
|
8766
|
+
typeof er < "u" && ((Zi = er == null ? void 0 : er.hot) == null || Zi.decline());
|
|
8763
8767
|
});
|
|
8764
|
-
export default
|
|
8768
|
+
export default Hc();
|
|
8765
8769
|
//# sourceMappingURL=storybook__react.d.js.map
|