@tinacms/mdx 1.3.21 → 1.3.22
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/index.browser.mjs +889 -326
- package/dist/index.js +889 -326
- package/dist/index.mjs +889 -326
- package/dist/parse/acorn.d.ts +0 -5
- package/package.json +3 -3
package/dist/index.browser.mjs
CHANGED
|
@@ -129,9 +129,9 @@ var require_extend = __commonJS({
|
|
|
129
129
|
}
|
|
130
130
|
});
|
|
131
131
|
|
|
132
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
132
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js
|
|
133
133
|
var require_xhtml = __commonJS({
|
|
134
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
134
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/xhtml.js"(exports, module) {
|
|
135
135
|
module.exports = {
|
|
136
136
|
quot: '"',
|
|
137
137
|
amp: "&",
|
|
@@ -390,16 +390,16 @@ var require_xhtml = __commonJS({
|
|
|
390
390
|
}
|
|
391
391
|
});
|
|
392
392
|
|
|
393
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
393
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js
|
|
394
394
|
var require_acorn = __commonJS({
|
|
395
|
-
"../../../node_modules/.pnpm/acorn@8.
|
|
395
|
+
"../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.js"(exports, module) {
|
|
396
396
|
(function(global2, factory) {
|
|
397
397
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global2 = typeof globalThis !== "undefined" ? globalThis : global2 || self, factory(global2.acorn = {}));
|
|
398
398
|
})(exports, function(exports2) {
|
|
399
399
|
"use strict";
|
|
400
|
-
var astralIdentifierCodes3 = [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,
|
|
401
|
-
var astralIdentifierStartCodes3 = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 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,
|
|
402
|
-
var nonASCIIidentifierChars3 = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\
|
|
400
|
+
var astralIdentifierCodes3 = [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, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
401
|
+
var astralIdentifierStartCodes3 = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 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, 20, 1, 64, 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, 38, 6, 186, 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, 19, 72, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 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, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
402
|
+
var nonASCIIidentifierChars3 = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
|
|
403
403
|
var nonASCIIidentifierStartChars3 = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
404
404
|
var reservedWords3 = {
|
|
405
405
|
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",
|
|
@@ -429,6 +429,7 @@ var require_acorn = __commonJS({
|
|
|
429
429
|
return true;
|
|
430
430
|
}
|
|
431
431
|
}
|
|
432
|
+
return false;
|
|
432
433
|
}
|
|
433
434
|
function isIdentifierStart3(code3, astral) {
|
|
434
435
|
if (code3 < 65) {
|
|
@@ -684,7 +685,7 @@ var require_acorn = __commonJS({
|
|
|
684
685
|
if (options.allowReserved == null) {
|
|
685
686
|
options.allowReserved = options.ecmaVersion < 5;
|
|
686
687
|
}
|
|
687
|
-
if (opts.allowHashBang == null) {
|
|
688
|
+
if (!opts || opts.allowHashBang == null) {
|
|
688
689
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
689
690
|
}
|
|
690
691
|
if (isArray4(options.onToken)) {
|
|
@@ -995,13 +996,13 @@ var require_acorn = __commonJS({
|
|
|
995
996
|
skipWhiteSpace3.lastIndex = this.pos;
|
|
996
997
|
var skip = skipWhiteSpace3.exec(this.input);
|
|
997
998
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
998
|
-
if (nextCh === 91 || nextCh === 92
|
|
999
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
999
1000
|
return true;
|
|
1000
1001
|
}
|
|
1001
1002
|
if (context) {
|
|
1002
1003
|
return false;
|
|
1003
1004
|
}
|
|
1004
|
-
if (nextCh === 123) {
|
|
1005
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
1005
1006
|
return true;
|
|
1006
1007
|
}
|
|
1007
1008
|
if (isIdentifierStart3(nextCh, true)) {
|
|
@@ -1299,6 +1300,14 @@ var require_acorn = __commonJS({
|
|
|
1299
1300
|
return this.finishNode(node, "ThrowStatement");
|
|
1300
1301
|
};
|
|
1301
1302
|
var empty$13 = [];
|
|
1303
|
+
pp$83.parseCatchClauseParam = function() {
|
|
1304
|
+
var param = this.parseBindingAtom();
|
|
1305
|
+
var simple = param.type === "Identifier";
|
|
1306
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1307
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1308
|
+
this.expect(types$13.parenR);
|
|
1309
|
+
return param;
|
|
1310
|
+
};
|
|
1302
1311
|
pp$83.parseTryStatement = function(node) {
|
|
1303
1312
|
this.next();
|
|
1304
1313
|
node.block = this.parseBlock();
|
|
@@ -1307,11 +1316,7 @@ var require_acorn = __commonJS({
|
|
|
1307
1316
|
var clause = this.startNode();
|
|
1308
1317
|
this.next();
|
|
1309
1318
|
if (this.eat(types$13.parenL)) {
|
|
1310
|
-
clause.param = this.
|
|
1311
|
-
var simple = clause.param.type === "Identifier";
|
|
1312
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH3 : 0);
|
|
1313
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH3 : BIND_LEXICAL3);
|
|
1314
|
-
this.expect(types$13.parenR);
|
|
1319
|
+
clause.param = this.parseCatchClauseParam();
|
|
1315
1320
|
} else {
|
|
1316
1321
|
if (this.options.ecmaVersion < 10) {
|
|
1317
1322
|
this.unexpected();
|
|
@@ -1329,9 +1334,9 @@ var require_acorn = __commonJS({
|
|
|
1329
1334
|
}
|
|
1330
1335
|
return this.finishNode(node, "TryStatement");
|
|
1331
1336
|
};
|
|
1332
|
-
pp$83.parseVarStatement = function(node, kind) {
|
|
1337
|
+
pp$83.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
1333
1338
|
this.next();
|
|
1334
|
-
this.parseVar(node, false, kind);
|
|
1339
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
1335
1340
|
this.semicolon();
|
|
1336
1341
|
return this.finishNode(node, "VariableDeclaration");
|
|
1337
1342
|
};
|
|
@@ -1436,7 +1441,7 @@ var require_acorn = __commonJS({
|
|
|
1436
1441
|
this.labels.pop();
|
|
1437
1442
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
1438
1443
|
};
|
|
1439
|
-
pp$83.parseVar = function(node, isFor, kind) {
|
|
1444
|
+
pp$83.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
1440
1445
|
node.declarations = [];
|
|
1441
1446
|
node.kind = kind;
|
|
1442
1447
|
for (; ; ) {
|
|
@@ -1444,9 +1449,9 @@ var require_acorn = __commonJS({
|
|
|
1444
1449
|
this.parseVarId(decl, kind);
|
|
1445
1450
|
if (this.eat(types$13.eq)) {
|
|
1446
1451
|
decl.init = this.parseMaybeAssign(isFor);
|
|
1447
|
-
} else if (kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1452
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$13._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
1448
1453
|
this.unexpected();
|
|
1449
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1454
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$13._in || this.isContextual("of")))) {
|
|
1450
1455
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
1451
1456
|
} else {
|
|
1452
1457
|
decl.init = null;
|
|
@@ -1517,7 +1522,7 @@ var require_acorn = __commonJS({
|
|
|
1517
1522
|
classBody.body.push(element2);
|
|
1518
1523
|
if (element2.type === "MethodDefinition" && element2.kind === "constructor") {
|
|
1519
1524
|
if (hadConstructor) {
|
|
1520
|
-
this.
|
|
1525
|
+
this.raiseRecoverable(element2.start, "Duplicate constructor in the same class");
|
|
1521
1526
|
}
|
|
1522
1527
|
hadConstructor = true;
|
|
1523
1528
|
} else if (element2.key && element2.key.type === "PrivateIdentifier" && isPrivateNameConflicted3(privateNameMap, element2)) {
|
|
@@ -1679,7 +1684,7 @@ var require_acorn = __commonJS({
|
|
|
1679
1684
|
}
|
|
1680
1685
|
};
|
|
1681
1686
|
pp$83.parseClassSuper = function(node) {
|
|
1682
|
-
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(false) : null;
|
|
1687
|
+
node.superClass = this.eat(types$13._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
1683
1688
|
};
|
|
1684
1689
|
pp$83.enterClassBody = function() {
|
|
1685
1690
|
var element2 = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -1725,46 +1730,35 @@ var require_acorn = __commonJS({
|
|
|
1725
1730
|
var key = node.key;
|
|
1726
1731
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
1727
1732
|
}
|
|
1733
|
+
pp$83.parseExportAllDeclaration = function(node, exports3) {
|
|
1734
|
+
if (this.options.ecmaVersion >= 11) {
|
|
1735
|
+
if (this.eatContextual("as")) {
|
|
1736
|
+
node.exported = this.parseModuleExportName();
|
|
1737
|
+
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1738
|
+
} else {
|
|
1739
|
+
node.exported = null;
|
|
1740
|
+
}
|
|
1741
|
+
}
|
|
1742
|
+
this.expectContextual("from");
|
|
1743
|
+
if (this.type !== types$13.string) {
|
|
1744
|
+
this.unexpected();
|
|
1745
|
+
}
|
|
1746
|
+
node.source = this.parseExprAtom();
|
|
1747
|
+
this.semicolon();
|
|
1748
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
1749
|
+
};
|
|
1728
1750
|
pp$83.parseExport = function(node, exports3) {
|
|
1729
1751
|
this.next();
|
|
1730
1752
|
if (this.eat(types$13.star)) {
|
|
1731
|
-
|
|
1732
|
-
if (this.eatContextual("as")) {
|
|
1733
|
-
node.exported = this.parseModuleExportName();
|
|
1734
|
-
this.checkExport(exports3, node.exported, this.lastTokStart);
|
|
1735
|
-
} else {
|
|
1736
|
-
node.exported = null;
|
|
1737
|
-
}
|
|
1738
|
-
}
|
|
1739
|
-
this.expectContextual("from");
|
|
1740
|
-
if (this.type !== types$13.string) {
|
|
1741
|
-
this.unexpected();
|
|
1742
|
-
}
|
|
1743
|
-
node.source = this.parseExprAtom();
|
|
1744
|
-
this.semicolon();
|
|
1745
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
1753
|
+
return this.parseExportAllDeclaration(node, exports3);
|
|
1746
1754
|
}
|
|
1747
1755
|
if (this.eat(types$13._default)) {
|
|
1748
1756
|
this.checkExport(exports3, "default", this.lastTokStart);
|
|
1749
|
-
|
|
1750
|
-
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1751
|
-
var fNode = this.startNode();
|
|
1752
|
-
this.next();
|
|
1753
|
-
if (isAsync) {
|
|
1754
|
-
this.next();
|
|
1755
|
-
}
|
|
1756
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1757
|
-
} else if (this.type === types$13._class) {
|
|
1758
|
-
var cNode = this.startNode();
|
|
1759
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
1760
|
-
} else {
|
|
1761
|
-
node.declaration = this.parseMaybeAssign();
|
|
1762
|
-
this.semicolon();
|
|
1763
|
-
}
|
|
1757
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
1764
1758
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
1765
1759
|
}
|
|
1766
1760
|
if (this.shouldParseExportStatement()) {
|
|
1767
|
-
node.declaration = this.
|
|
1761
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
1768
1762
|
if (node.declaration.type === "VariableDeclaration") {
|
|
1769
1763
|
this.checkVariableExport(exports3, node.declaration.declarations);
|
|
1770
1764
|
} else {
|
|
@@ -1795,6 +1789,27 @@ var require_acorn = __commonJS({
|
|
|
1795
1789
|
}
|
|
1796
1790
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
1797
1791
|
};
|
|
1792
|
+
pp$83.parseExportDeclaration = function(node) {
|
|
1793
|
+
return this.parseStatement(null);
|
|
1794
|
+
};
|
|
1795
|
+
pp$83.parseExportDefaultDeclaration = function() {
|
|
1796
|
+
var isAsync;
|
|
1797
|
+
if (this.type === types$13._function || (isAsync = this.isAsyncFunction())) {
|
|
1798
|
+
var fNode = this.startNode();
|
|
1799
|
+
this.next();
|
|
1800
|
+
if (isAsync) {
|
|
1801
|
+
this.next();
|
|
1802
|
+
}
|
|
1803
|
+
return this.parseFunction(fNode, FUNC_STATEMENT3 | FUNC_NULLABLE_ID3, false, isAsync);
|
|
1804
|
+
} else if (this.type === types$13._class) {
|
|
1805
|
+
var cNode = this.startNode();
|
|
1806
|
+
return this.parseClass(cNode, "nullableID");
|
|
1807
|
+
} else {
|
|
1808
|
+
var declaration = this.parseMaybeAssign();
|
|
1809
|
+
this.semicolon();
|
|
1810
|
+
return declaration;
|
|
1811
|
+
}
|
|
1812
|
+
};
|
|
1798
1813
|
pp$83.checkExport = function(exports3, name2, pos) {
|
|
1799
1814
|
if (!exports3) {
|
|
1800
1815
|
return;
|
|
@@ -1845,6 +1860,17 @@ var require_acorn = __commonJS({
|
|
|
1845
1860
|
pp$83.shouldParseExportStatement = function() {
|
|
1846
1861
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
1847
1862
|
};
|
|
1863
|
+
pp$83.parseExportSpecifier = function(exports3) {
|
|
1864
|
+
var node = this.startNode();
|
|
1865
|
+
node.local = this.parseModuleExportName();
|
|
1866
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1867
|
+
this.checkExport(
|
|
1868
|
+
exports3,
|
|
1869
|
+
node.exported,
|
|
1870
|
+
node.exported.start
|
|
1871
|
+
);
|
|
1872
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
1873
|
+
};
|
|
1848
1874
|
pp$83.parseExportSpecifiers = function(exports3) {
|
|
1849
1875
|
var nodes = [], first = true;
|
|
1850
1876
|
this.expect(types$13.braceL);
|
|
@@ -1857,15 +1883,7 @@ var require_acorn = __commonJS({
|
|
|
1857
1883
|
} else {
|
|
1858
1884
|
first = false;
|
|
1859
1885
|
}
|
|
1860
|
-
|
|
1861
|
-
node.local = this.parseModuleExportName();
|
|
1862
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
1863
|
-
this.checkExport(
|
|
1864
|
-
exports3,
|
|
1865
|
-
node.exported,
|
|
1866
|
-
node.exported.start
|
|
1867
|
-
);
|
|
1868
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
1886
|
+
nodes.push(this.parseExportSpecifier(exports3));
|
|
1869
1887
|
}
|
|
1870
1888
|
return nodes;
|
|
1871
1889
|
};
|
|
@@ -1882,24 +1900,42 @@ var require_acorn = __commonJS({
|
|
|
1882
1900
|
this.semicolon();
|
|
1883
1901
|
return this.finishNode(node, "ImportDeclaration");
|
|
1884
1902
|
};
|
|
1903
|
+
pp$83.parseImportSpecifier = function() {
|
|
1904
|
+
var node = this.startNode();
|
|
1905
|
+
node.imported = this.parseModuleExportName();
|
|
1906
|
+
if (this.eatContextual("as")) {
|
|
1907
|
+
node.local = this.parseIdent();
|
|
1908
|
+
} else {
|
|
1909
|
+
this.checkUnreserved(node.imported);
|
|
1910
|
+
node.local = node.imported;
|
|
1911
|
+
}
|
|
1912
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1913
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
1914
|
+
};
|
|
1915
|
+
pp$83.parseImportDefaultSpecifier = function() {
|
|
1916
|
+
var node = this.startNode();
|
|
1917
|
+
node.local = this.parseIdent();
|
|
1918
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1919
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
1920
|
+
};
|
|
1921
|
+
pp$83.parseImportNamespaceSpecifier = function() {
|
|
1922
|
+
var node = this.startNode();
|
|
1923
|
+
this.next();
|
|
1924
|
+
this.expectContextual("as");
|
|
1925
|
+
node.local = this.parseIdent();
|
|
1926
|
+
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1927
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
1928
|
+
};
|
|
1885
1929
|
pp$83.parseImportSpecifiers = function() {
|
|
1886
1930
|
var nodes = [], first = true;
|
|
1887
1931
|
if (this.type === types$13.name) {
|
|
1888
|
-
|
|
1889
|
-
node.local = this.parseIdent();
|
|
1890
|
-
this.checkLValSimple(node.local, BIND_LEXICAL3);
|
|
1891
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
1932
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
1892
1933
|
if (!this.eat(types$13.comma)) {
|
|
1893
1934
|
return nodes;
|
|
1894
1935
|
}
|
|
1895
1936
|
}
|
|
1896
1937
|
if (this.type === types$13.star) {
|
|
1897
|
-
|
|
1898
|
-
this.next();
|
|
1899
|
-
this.expectContextual("as");
|
|
1900
|
-
node$1.local = this.parseIdent();
|
|
1901
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL3);
|
|
1902
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
1938
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
1903
1939
|
return nodes;
|
|
1904
1940
|
}
|
|
1905
1941
|
this.expect(types$13.braceL);
|
|
@@ -1912,16 +1948,7 @@ var require_acorn = __commonJS({
|
|
|
1912
1948
|
} else {
|
|
1913
1949
|
first = false;
|
|
1914
1950
|
}
|
|
1915
|
-
|
|
1916
|
-
node$2.imported = this.parseModuleExportName();
|
|
1917
|
-
if (this.eatContextual("as")) {
|
|
1918
|
-
node$2.local = this.parseIdent();
|
|
1919
|
-
} else {
|
|
1920
|
-
this.checkUnreserved(node$2.imported);
|
|
1921
|
-
node$2.local = node$2.imported;
|
|
1922
|
-
}
|
|
1923
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL3);
|
|
1924
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
1951
|
+
nodes.push(this.parseImportSpecifier());
|
|
1925
1952
|
}
|
|
1926
1953
|
return nodes;
|
|
1927
1954
|
};
|
|
@@ -2061,7 +2088,7 @@ var require_acorn = __commonJS({
|
|
|
2061
2088
|
}
|
|
2062
2089
|
return this.parseIdent();
|
|
2063
2090
|
};
|
|
2064
|
-
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
2091
|
+
pp$73.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
2065
2092
|
var elts = [], first = true;
|
|
2066
2093
|
while (!this.eat(close)) {
|
|
2067
2094
|
if (first) {
|
|
@@ -2078,18 +2105,21 @@ var require_acorn = __commonJS({
|
|
|
2078
2105
|
this.parseBindingListItem(rest);
|
|
2079
2106
|
elts.push(rest);
|
|
2080
2107
|
if (this.type === types$13.comma) {
|
|
2081
|
-
this.
|
|
2108
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
2082
2109
|
}
|
|
2083
2110
|
this.expect(close);
|
|
2084
2111
|
break;
|
|
2085
2112
|
} else {
|
|
2086
|
-
|
|
2087
|
-
this.parseBindingListItem(elem);
|
|
2088
|
-
elts.push(elem);
|
|
2113
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
2089
2114
|
}
|
|
2090
2115
|
}
|
|
2091
2116
|
return elts;
|
|
2092
2117
|
};
|
|
2118
|
+
pp$73.parseAssignableListItem = function(allowModifiers) {
|
|
2119
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
2120
|
+
this.parseBindingListItem(elem);
|
|
2121
|
+
return elem;
|
|
2122
|
+
};
|
|
2093
2123
|
pp$73.parseBindingListItem = function(param) {
|
|
2094
2124
|
return param;
|
|
2095
2125
|
};
|
|
@@ -2606,6 +2636,12 @@ var require_acorn = __commonJS({
|
|
|
2606
2636
|
base2 = element2;
|
|
2607
2637
|
}
|
|
2608
2638
|
};
|
|
2639
|
+
pp$53.shouldParseAsyncArrow = function() {
|
|
2640
|
+
return !this.canInsertSemicolon() && this.eat(types$13.arrow);
|
|
2641
|
+
};
|
|
2642
|
+
pp$53.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
2643
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
2644
|
+
};
|
|
2609
2645
|
pp$53.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
2610
2646
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
2611
2647
|
var optional = optionalSupported && this.eat(types$13.questionDot);
|
|
@@ -2635,7 +2671,7 @@ var require_acorn = __commonJS({
|
|
|
2635
2671
|
this.awaitPos = 0;
|
|
2636
2672
|
this.awaitIdentPos = 0;
|
|
2637
2673
|
var exprList = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
2638
|
-
if (maybeAsyncArrow && !optional &&
|
|
2674
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
2639
2675
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2640
2676
|
this.checkYieldAwaitInDefaultParams();
|
|
2641
2677
|
if (this.awaitIdentPos > 0) {
|
|
@@ -2644,7 +2680,7 @@ var require_acorn = __commonJS({
|
|
|
2644
2680
|
this.yieldPos = oldYieldPos;
|
|
2645
2681
|
this.awaitPos = oldAwaitPos;
|
|
2646
2682
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
2647
|
-
return this.
|
|
2683
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
2648
2684
|
}
|
|
2649
2685
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
2650
2686
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -2668,7 +2704,7 @@ var require_acorn = __commonJS({
|
|
|
2668
2704
|
}
|
|
2669
2705
|
return base2;
|
|
2670
2706
|
};
|
|
2671
|
-
pp$53.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
2707
|
+
pp$53.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
2672
2708
|
if (this.type === types$13.slash) {
|
|
2673
2709
|
this.readRegexp();
|
|
2674
2710
|
}
|
|
@@ -2758,28 +2794,30 @@ var require_acorn = __commonJS({
|
|
|
2758
2794
|
return this.parseTemplate();
|
|
2759
2795
|
case types$13._import:
|
|
2760
2796
|
if (this.options.ecmaVersion >= 11) {
|
|
2761
|
-
return this.parseExprImport();
|
|
2797
|
+
return this.parseExprImport(forNew);
|
|
2762
2798
|
} else {
|
|
2763
2799
|
return this.unexpected();
|
|
2764
2800
|
}
|
|
2765
2801
|
default:
|
|
2766
|
-
this.
|
|
2802
|
+
return this.parseExprAtomDefault();
|
|
2767
2803
|
}
|
|
2768
2804
|
};
|
|
2769
|
-
pp$53.
|
|
2805
|
+
pp$53.parseExprAtomDefault = function() {
|
|
2806
|
+
this.unexpected();
|
|
2807
|
+
};
|
|
2808
|
+
pp$53.parseExprImport = function(forNew) {
|
|
2770
2809
|
var node = this.startNode();
|
|
2771
2810
|
if (this.containsEsc) {
|
|
2772
2811
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
2773
2812
|
}
|
|
2774
2813
|
var meta = this.parseIdent(true);
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
this.unexpected();
|
|
2814
|
+
if (this.type === types$13.parenL && !forNew) {
|
|
2815
|
+
return this.parseDynamicImport(node);
|
|
2816
|
+
} else if (this.type === types$13.dot) {
|
|
2817
|
+
node.meta = meta;
|
|
2818
|
+
return this.parseImportMeta(node);
|
|
2819
|
+
} else {
|
|
2820
|
+
this.unexpected();
|
|
2783
2821
|
}
|
|
2784
2822
|
};
|
|
2785
2823
|
pp$53.parseDynamicImport = function(node) {
|
|
@@ -2826,6 +2864,9 @@ var require_acorn = __commonJS({
|
|
|
2826
2864
|
this.expect(types$13.parenR);
|
|
2827
2865
|
return val;
|
|
2828
2866
|
};
|
|
2867
|
+
pp$53.shouldParseArrow = function(exprList) {
|
|
2868
|
+
return !this.canInsertSemicolon();
|
|
2869
|
+
};
|
|
2829
2870
|
pp$53.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
2830
2871
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
2831
2872
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -2844,7 +2885,10 @@ var require_acorn = __commonJS({
|
|
|
2844
2885
|
spreadStart = this.start;
|
|
2845
2886
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
2846
2887
|
if (this.type === types$13.comma) {
|
|
2847
|
-
this.
|
|
2888
|
+
this.raiseRecoverable(
|
|
2889
|
+
this.start,
|
|
2890
|
+
"Comma is not permitted after the rest element"
|
|
2891
|
+
);
|
|
2848
2892
|
}
|
|
2849
2893
|
break;
|
|
2850
2894
|
} else {
|
|
@@ -2853,7 +2897,7 @@ var require_acorn = __commonJS({
|
|
|
2853
2897
|
}
|
|
2854
2898
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
2855
2899
|
this.expect(types$13.parenR);
|
|
2856
|
-
if (canBeArrow &&
|
|
2900
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$13.arrow)) {
|
|
2857
2901
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
2858
2902
|
this.checkYieldAwaitInDefaultParams();
|
|
2859
2903
|
this.yieldPos = oldYieldPos;
|
|
@@ -2915,11 +2959,8 @@ var require_acorn = __commonJS({
|
|
|
2915
2959
|
}
|
|
2916
2960
|
return this.finishNode(node, "MetaProperty");
|
|
2917
2961
|
}
|
|
2918
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
2919
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
2920
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
2921
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
2922
|
-
}
|
|
2962
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
2963
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
2923
2964
|
if (this.eat(types$13.parenL)) {
|
|
2924
2965
|
node.arguments = this.parseExprList(types$13.parenR, this.options.ecmaVersion >= 8, false);
|
|
2925
2966
|
} else {
|
|
@@ -3001,7 +3042,7 @@ var require_acorn = __commonJS({
|
|
|
3001
3042
|
if (isPattern) {
|
|
3002
3043
|
prop.argument = this.parseIdent(false);
|
|
3003
3044
|
if (this.type === types$13.comma) {
|
|
3004
|
-
this.
|
|
3045
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
3005
3046
|
}
|
|
3006
3047
|
return this.finishNode(prop, "RestElement");
|
|
3007
3048
|
}
|
|
@@ -3027,13 +3068,31 @@ var require_acorn = __commonJS({
|
|
|
3027
3068
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
3028
3069
|
isAsync = true;
|
|
3029
3070
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$13.star);
|
|
3030
|
-
this.parsePropertyName(prop
|
|
3071
|
+
this.parsePropertyName(prop);
|
|
3031
3072
|
} else {
|
|
3032
3073
|
isAsync = false;
|
|
3033
3074
|
}
|
|
3034
3075
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
3035
3076
|
return this.finishNode(prop, "Property");
|
|
3036
3077
|
};
|
|
3078
|
+
pp$53.parseGetterSetter = function(prop) {
|
|
3079
|
+
prop.kind = prop.key.name;
|
|
3080
|
+
this.parsePropertyName(prop);
|
|
3081
|
+
prop.value = this.parseMethod(false);
|
|
3082
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3083
|
+
if (prop.value.params.length !== paramCount) {
|
|
3084
|
+
var start3 = prop.value.start;
|
|
3085
|
+
if (prop.kind === "get") {
|
|
3086
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
3087
|
+
} else {
|
|
3088
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3089
|
+
}
|
|
3090
|
+
} else {
|
|
3091
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3092
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3093
|
+
}
|
|
3094
|
+
}
|
|
3095
|
+
};
|
|
3037
3096
|
pp$53.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
3038
3097
|
if ((isGenerator || isAsync) && this.type === types$13.colon) {
|
|
3039
3098
|
this.unexpected();
|
|
@@ -3052,22 +3111,7 @@ var require_acorn = __commonJS({
|
|
|
3052
3111
|
if (isGenerator || isAsync) {
|
|
3053
3112
|
this.unexpected();
|
|
3054
3113
|
}
|
|
3055
|
-
|
|
3056
|
-
this.parsePropertyName(prop);
|
|
3057
|
-
prop.value = this.parseMethod(false);
|
|
3058
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3059
|
-
if (prop.value.params.length !== paramCount) {
|
|
3060
|
-
var start3 = prop.value.start;
|
|
3061
|
-
if (prop.kind === "get") {
|
|
3062
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
3063
|
-
} else {
|
|
3064
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
3065
|
-
}
|
|
3066
|
-
} else {
|
|
3067
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
3068
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
3069
|
-
}
|
|
3070
|
-
}
|
|
3114
|
+
this.parseGetterSetter(prop);
|
|
3071
3115
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
3072
3116
|
if (isGenerator || isAsync) {
|
|
3073
3117
|
this.unexpected();
|
|
@@ -3256,7 +3300,19 @@ var require_acorn = __commonJS({
|
|
|
3256
3300
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
3257
3301
|
}
|
|
3258
3302
|
};
|
|
3259
|
-
pp$53.parseIdent = function(liberal
|
|
3303
|
+
pp$53.parseIdent = function(liberal) {
|
|
3304
|
+
var node = this.parseIdentNode();
|
|
3305
|
+
this.next(!!liberal);
|
|
3306
|
+
this.finishNode(node, "Identifier");
|
|
3307
|
+
if (!liberal) {
|
|
3308
|
+
this.checkUnreserved(node);
|
|
3309
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3310
|
+
this.awaitIdentPos = node.start;
|
|
3311
|
+
}
|
|
3312
|
+
}
|
|
3313
|
+
return node;
|
|
3314
|
+
};
|
|
3315
|
+
pp$53.parseIdentNode = function() {
|
|
3260
3316
|
var node = this.startNode();
|
|
3261
3317
|
if (this.type === types$13.name) {
|
|
3262
3318
|
node.name = this.value;
|
|
@@ -3268,14 +3324,6 @@ var require_acorn = __commonJS({
|
|
|
3268
3324
|
} else {
|
|
3269
3325
|
this.unexpected();
|
|
3270
3326
|
}
|
|
3271
|
-
this.next(!!liberal);
|
|
3272
|
-
this.finishNode(node, "Identifier");
|
|
3273
|
-
if (!liberal) {
|
|
3274
|
-
this.checkUnreserved(node);
|
|
3275
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
3276
|
-
this.awaitIdentPos = node.start;
|
|
3277
|
-
}
|
|
3278
|
-
}
|
|
3279
3327
|
return node;
|
|
3280
3328
|
};
|
|
3281
3329
|
pp$53.parsePrivateIdent = function() {
|
|
@@ -3465,12 +3513,23 @@ var require_acorn = __commonJS({
|
|
|
3465
3513
|
var ecma11BinaryProperties3 = ecma10BinaryProperties3;
|
|
3466
3514
|
var ecma12BinaryProperties3 = ecma11BinaryProperties3 + " EBase EComp EMod EPres ExtPict";
|
|
3467
3515
|
var ecma13BinaryProperties3 = ecma12BinaryProperties3;
|
|
3516
|
+
var ecma14BinaryProperties3 = ecma13BinaryProperties3;
|
|
3468
3517
|
var unicodeBinaryProperties3 = {
|
|
3469
3518
|
9: ecma9BinaryProperties3,
|
|
3470
3519
|
10: ecma10BinaryProperties3,
|
|
3471
3520
|
11: ecma11BinaryProperties3,
|
|
3472
3521
|
12: ecma12BinaryProperties3,
|
|
3473
|
-
13: ecma13BinaryProperties3
|
|
3522
|
+
13: ecma13BinaryProperties3,
|
|
3523
|
+
14: ecma14BinaryProperties3
|
|
3524
|
+
};
|
|
3525
|
+
var ecma14BinaryPropertiesOfStrings2 = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
3526
|
+
var unicodeBinaryPropertiesOfStrings2 = {
|
|
3527
|
+
9: "",
|
|
3528
|
+
10: "",
|
|
3529
|
+
11: "",
|
|
3530
|
+
12: "",
|
|
3531
|
+
13: "",
|
|
3532
|
+
14: ecma14BinaryPropertiesOfStrings2
|
|
3474
3533
|
};
|
|
3475
3534
|
var unicodeGeneralCategoryValues3 = "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";
|
|
3476
3535
|
var ecma9ScriptValues3 = "Adlam Adlm 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 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";
|
|
@@ -3478,17 +3537,20 @@ var require_acorn = __commonJS({
|
|
|
3478
3537
|
var ecma11ScriptValues3 = ecma10ScriptValues3 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
3479
3538
|
var ecma12ScriptValues3 = ecma11ScriptValues3 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
3480
3539
|
var ecma13ScriptValues3 = ecma12ScriptValues3 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
3540
|
+
var ecma14ScriptValues3 = ecma13ScriptValues3 + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
3481
3541
|
var unicodeScriptValues3 = {
|
|
3482
3542
|
9: ecma9ScriptValues3,
|
|
3483
3543
|
10: ecma10ScriptValues3,
|
|
3484
3544
|
11: ecma11ScriptValues3,
|
|
3485
3545
|
12: ecma12ScriptValues3,
|
|
3486
|
-
13: ecma13ScriptValues3
|
|
3546
|
+
13: ecma13ScriptValues3,
|
|
3547
|
+
14: ecma14ScriptValues3
|
|
3487
3548
|
};
|
|
3488
3549
|
var data3 = {};
|
|
3489
3550
|
function buildUnicodeData3(ecmaVersion2) {
|
|
3490
3551
|
var d = data3[ecmaVersion2] = {
|
|
3491
3552
|
binary: wordsRegexp3(unicodeBinaryProperties3[ecmaVersion2] + " " + unicodeGeneralCategoryValues3),
|
|
3553
|
+
binaryOfStrings: wordsRegexp3(unicodeBinaryPropertiesOfStrings2[ecmaVersion2]),
|
|
3492
3554
|
nonBinary: {
|
|
3493
3555
|
General_Category: wordsRegexp3(unicodeGeneralCategoryValues3),
|
|
3494
3556
|
Script: wordsRegexp3(unicodeScriptValues3[ecmaVersion2])
|
|
@@ -3499,19 +3561,20 @@ var require_acorn = __commonJS({
|
|
|
3499
3561
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
3500
3562
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
3501
3563
|
}
|
|
3502
|
-
for (var i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
3564
|
+
for (var i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
3503
3565
|
var ecmaVersion = list3[i];
|
|
3504
3566
|
buildUnicodeData3(ecmaVersion);
|
|
3505
3567
|
}
|
|
3506
3568
|
var pp$13 = Parser5.prototype;
|
|
3507
3569
|
var RegExpValidationState5 = function RegExpValidationState6(parser) {
|
|
3508
3570
|
this.parser = parser;
|
|
3509
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
3510
|
-
this.unicodeProperties = data3[parser.options.ecmaVersion >=
|
|
3571
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3572
|
+
this.unicodeProperties = data3[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
3511
3573
|
this.source = "";
|
|
3512
3574
|
this.flags = "";
|
|
3513
3575
|
this.start = 0;
|
|
3514
3576
|
this.switchU = false;
|
|
3577
|
+
this.switchV = false;
|
|
3515
3578
|
this.switchN = false;
|
|
3516
3579
|
this.pos = 0;
|
|
3517
3580
|
this.lastIntValue = 0;
|
|
@@ -3523,12 +3586,20 @@ var require_acorn = __commonJS({
|
|
|
3523
3586
|
this.backReferenceNames = [];
|
|
3524
3587
|
};
|
|
3525
3588
|
RegExpValidationState5.prototype.reset = function reset3(start3, pattern, flags) {
|
|
3589
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3526
3590
|
var unicode = flags.indexOf("u") !== -1;
|
|
3527
3591
|
this.start = start3 | 0;
|
|
3528
3592
|
this.source = pattern + "";
|
|
3529
3593
|
this.flags = flags;
|
|
3530
|
-
|
|
3531
|
-
|
|
3594
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
3595
|
+
this.switchU = true;
|
|
3596
|
+
this.switchV = true;
|
|
3597
|
+
this.switchN = true;
|
|
3598
|
+
} else {
|
|
3599
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
3600
|
+
this.switchV = false;
|
|
3601
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3602
|
+
}
|
|
3532
3603
|
};
|
|
3533
3604
|
RegExpValidationState5.prototype.raise = function raise3(message) {
|
|
3534
3605
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -3586,9 +3657,26 @@ var require_acorn = __commonJS({
|
|
|
3586
3657
|
}
|
|
3587
3658
|
return false;
|
|
3588
3659
|
};
|
|
3660
|
+
RegExpValidationState5.prototype.eatChars = function eatChars2(chs, forceU) {
|
|
3661
|
+
if (forceU === void 0)
|
|
3662
|
+
forceU = false;
|
|
3663
|
+
var pos = this.pos;
|
|
3664
|
+
for (var i2 = 0, list4 = chs; i2 < list4.length; i2 += 1) {
|
|
3665
|
+
var ch2 = list4[i2];
|
|
3666
|
+
var current3 = this.at(pos, forceU);
|
|
3667
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
3668
|
+
return false;
|
|
3669
|
+
}
|
|
3670
|
+
pos = this.nextIndex(pos, forceU);
|
|
3671
|
+
}
|
|
3672
|
+
this.pos = pos;
|
|
3673
|
+
return true;
|
|
3674
|
+
};
|
|
3589
3675
|
pp$13.validateRegExpFlags = function(state) {
|
|
3590
3676
|
var validFlags = state.validFlags;
|
|
3591
3677
|
var flags = state.flags;
|
|
3678
|
+
var u = false;
|
|
3679
|
+
var v = false;
|
|
3592
3680
|
for (var i2 = 0; i2 < flags.length; i2++) {
|
|
3593
3681
|
var flag = flags.charAt(i2);
|
|
3594
3682
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -3597,6 +3685,15 @@ var require_acorn = __commonJS({
|
|
|
3597
3685
|
if (flags.indexOf(flag, i2 + 1) > -1) {
|
|
3598
3686
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
3599
3687
|
}
|
|
3688
|
+
if (flag === "u") {
|
|
3689
|
+
u = true;
|
|
3690
|
+
}
|
|
3691
|
+
if (flag === "v") {
|
|
3692
|
+
v = true;
|
|
3693
|
+
}
|
|
3694
|
+
}
|
|
3695
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
3696
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
3600
3697
|
}
|
|
3601
3698
|
};
|
|
3602
3699
|
pp$13.validateRegExpPattern = function(state) {
|
|
@@ -4045,22 +4142,30 @@ var require_acorn = __commonJS({
|
|
|
4045
4142
|
}
|
|
4046
4143
|
return false;
|
|
4047
4144
|
};
|
|
4145
|
+
var CharSetNone2 = 0;
|
|
4146
|
+
var CharSetOk2 = 1;
|
|
4147
|
+
var CharSetString2 = 2;
|
|
4048
4148
|
pp$13.regexp_eatCharacterClassEscape = function(state) {
|
|
4049
4149
|
var ch2 = state.current();
|
|
4050
4150
|
if (isCharacterClassEscape3(ch2)) {
|
|
4051
4151
|
state.lastIntValue = -1;
|
|
4052
4152
|
state.advance();
|
|
4053
|
-
return
|
|
4153
|
+
return CharSetOk2;
|
|
4054
4154
|
}
|
|
4055
|
-
|
|
4155
|
+
var negate = false;
|
|
4156
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
4056
4157
|
state.lastIntValue = -1;
|
|
4057
4158
|
state.advance();
|
|
4058
|
-
|
|
4059
|
-
|
|
4159
|
+
var result;
|
|
4160
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
4161
|
+
if (negate && result === CharSetString2) {
|
|
4162
|
+
state.raise("Invalid property name");
|
|
4163
|
+
}
|
|
4164
|
+
return result;
|
|
4060
4165
|
}
|
|
4061
4166
|
state.raise("Invalid property name");
|
|
4062
4167
|
}
|
|
4063
|
-
return
|
|
4168
|
+
return CharSetNone2;
|
|
4064
4169
|
};
|
|
4065
4170
|
function isCharacterClassEscape3(ch2) {
|
|
4066
4171
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -4072,16 +4177,15 @@ var require_acorn = __commonJS({
|
|
|
4072
4177
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
4073
4178
|
var value = state.lastStringValue;
|
|
4074
4179
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
4075
|
-
return
|
|
4180
|
+
return CharSetOk2;
|
|
4076
4181
|
}
|
|
4077
4182
|
}
|
|
4078
4183
|
state.pos = start3;
|
|
4079
4184
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
4080
4185
|
var nameOrValue = state.lastStringValue;
|
|
4081
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4082
|
-
return true;
|
|
4186
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
4083
4187
|
}
|
|
4084
|
-
return
|
|
4188
|
+
return CharSetNone2;
|
|
4085
4189
|
};
|
|
4086
4190
|
pp$13.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
4087
4191
|
if (!hasOwn3(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -4092,9 +4196,13 @@ var require_acorn = __commonJS({
|
|
|
4092
4196
|
}
|
|
4093
4197
|
};
|
|
4094
4198
|
pp$13.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
4095
|
-
if (
|
|
4096
|
-
|
|
4199
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
4200
|
+
return CharSetOk2;
|
|
4201
|
+
}
|
|
4202
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
4203
|
+
return CharSetString2;
|
|
4097
4204
|
}
|
|
4205
|
+
state.raise("Invalid property name");
|
|
4098
4206
|
};
|
|
4099
4207
|
pp$13.regexp_eatUnicodePropertyName = function(state) {
|
|
4100
4208
|
var ch2 = 0;
|
|
@@ -4125,16 +4233,29 @@ var require_acorn = __commonJS({
|
|
|
4125
4233
|
};
|
|
4126
4234
|
pp$13.regexp_eatCharacterClass = function(state) {
|
|
4127
4235
|
if (state.eat(91)) {
|
|
4128
|
-
state.eat(94);
|
|
4129
|
-
this.
|
|
4130
|
-
if (state.eat(93)) {
|
|
4131
|
-
|
|
4236
|
+
var negate = state.eat(94);
|
|
4237
|
+
var result = this.regexp_classContents(state);
|
|
4238
|
+
if (!state.eat(93)) {
|
|
4239
|
+
state.raise("Unterminated character class");
|
|
4132
4240
|
}
|
|
4133
|
-
|
|
4241
|
+
if (negate && result === CharSetString2) {
|
|
4242
|
+
state.raise("Negated character class may contain strings");
|
|
4243
|
+
}
|
|
4244
|
+
return true;
|
|
4134
4245
|
}
|
|
4135
4246
|
return false;
|
|
4136
4247
|
};
|
|
4137
|
-
pp$13.
|
|
4248
|
+
pp$13.regexp_classContents = function(state) {
|
|
4249
|
+
if (state.current() === 93) {
|
|
4250
|
+
return CharSetOk2;
|
|
4251
|
+
}
|
|
4252
|
+
if (state.switchV) {
|
|
4253
|
+
return this.regexp_classSetExpression(state);
|
|
4254
|
+
}
|
|
4255
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
4256
|
+
return CharSetOk2;
|
|
4257
|
+
};
|
|
4258
|
+
pp$13.regexp_nonEmptyClassRanges = function(state) {
|
|
4138
4259
|
while (this.regexp_eatClassAtom(state)) {
|
|
4139
4260
|
var left = state.lastIntValue;
|
|
4140
4261
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -4189,6 +4310,168 @@ var require_acorn = __commonJS({
|
|
|
4189
4310
|
}
|
|
4190
4311
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
4191
4312
|
};
|
|
4313
|
+
pp$13.regexp_classSetExpression = function(state) {
|
|
4314
|
+
var result = CharSetOk2, subResult;
|
|
4315
|
+
if (this.regexp_eatClassSetRange(state))
|
|
4316
|
+
;
|
|
4317
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
4318
|
+
if (subResult === CharSetString2) {
|
|
4319
|
+
result = CharSetString2;
|
|
4320
|
+
}
|
|
4321
|
+
var start3 = state.pos;
|
|
4322
|
+
while (state.eatChars([38, 38])) {
|
|
4323
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
4324
|
+
if (subResult !== CharSetString2) {
|
|
4325
|
+
result = CharSetOk2;
|
|
4326
|
+
}
|
|
4327
|
+
continue;
|
|
4328
|
+
}
|
|
4329
|
+
state.raise("Invalid character in character class");
|
|
4330
|
+
}
|
|
4331
|
+
if (start3 !== state.pos) {
|
|
4332
|
+
return result;
|
|
4333
|
+
}
|
|
4334
|
+
while (state.eatChars([45, 45])) {
|
|
4335
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
4336
|
+
continue;
|
|
4337
|
+
}
|
|
4338
|
+
state.raise("Invalid character in character class");
|
|
4339
|
+
}
|
|
4340
|
+
if (start3 !== state.pos) {
|
|
4341
|
+
return result;
|
|
4342
|
+
}
|
|
4343
|
+
} else {
|
|
4344
|
+
state.raise("Invalid character in character class");
|
|
4345
|
+
}
|
|
4346
|
+
for (; ; ) {
|
|
4347
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
4348
|
+
continue;
|
|
4349
|
+
}
|
|
4350
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
4351
|
+
if (!subResult) {
|
|
4352
|
+
return result;
|
|
4353
|
+
}
|
|
4354
|
+
if (subResult === CharSetString2) {
|
|
4355
|
+
result = CharSetString2;
|
|
4356
|
+
}
|
|
4357
|
+
}
|
|
4358
|
+
};
|
|
4359
|
+
pp$13.regexp_eatClassSetRange = function(state) {
|
|
4360
|
+
var start3 = state.pos;
|
|
4361
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4362
|
+
var left = state.lastIntValue;
|
|
4363
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
4364
|
+
var right = state.lastIntValue;
|
|
4365
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
4366
|
+
state.raise("Range out of order in character class");
|
|
4367
|
+
}
|
|
4368
|
+
return true;
|
|
4369
|
+
}
|
|
4370
|
+
state.pos = start3;
|
|
4371
|
+
}
|
|
4372
|
+
return false;
|
|
4373
|
+
};
|
|
4374
|
+
pp$13.regexp_eatClassSetOperand = function(state) {
|
|
4375
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
4376
|
+
return CharSetOk2;
|
|
4377
|
+
}
|
|
4378
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
4379
|
+
};
|
|
4380
|
+
pp$13.regexp_eatNestedClass = function(state) {
|
|
4381
|
+
var start3 = state.pos;
|
|
4382
|
+
if (state.eat(91)) {
|
|
4383
|
+
var negate = state.eat(94);
|
|
4384
|
+
var result = this.regexp_classContents(state);
|
|
4385
|
+
if (state.eat(93)) {
|
|
4386
|
+
if (negate && result === CharSetString2) {
|
|
4387
|
+
state.raise("Negated character class may contain strings");
|
|
4388
|
+
}
|
|
4389
|
+
return result;
|
|
4390
|
+
}
|
|
4391
|
+
state.pos = start3;
|
|
4392
|
+
}
|
|
4393
|
+
if (state.eat(92)) {
|
|
4394
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
4395
|
+
if (result$1) {
|
|
4396
|
+
return result$1;
|
|
4397
|
+
}
|
|
4398
|
+
state.pos = start3;
|
|
4399
|
+
}
|
|
4400
|
+
return null;
|
|
4401
|
+
};
|
|
4402
|
+
pp$13.regexp_eatClassStringDisjunction = function(state) {
|
|
4403
|
+
var start3 = state.pos;
|
|
4404
|
+
if (state.eatChars([92, 113])) {
|
|
4405
|
+
if (state.eat(123)) {
|
|
4406
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
4407
|
+
if (state.eat(125)) {
|
|
4408
|
+
return result;
|
|
4409
|
+
}
|
|
4410
|
+
} else {
|
|
4411
|
+
state.raise("Invalid escape");
|
|
4412
|
+
}
|
|
4413
|
+
state.pos = start3;
|
|
4414
|
+
}
|
|
4415
|
+
return null;
|
|
4416
|
+
};
|
|
4417
|
+
pp$13.regexp_classStringDisjunctionContents = function(state) {
|
|
4418
|
+
var result = this.regexp_classString(state);
|
|
4419
|
+
while (state.eat(124)) {
|
|
4420
|
+
if (this.regexp_classString(state) === CharSetString2) {
|
|
4421
|
+
result = CharSetString2;
|
|
4422
|
+
}
|
|
4423
|
+
}
|
|
4424
|
+
return result;
|
|
4425
|
+
};
|
|
4426
|
+
pp$13.regexp_classString = function(state) {
|
|
4427
|
+
var count = 0;
|
|
4428
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
4429
|
+
count++;
|
|
4430
|
+
}
|
|
4431
|
+
return count === 1 ? CharSetOk2 : CharSetString2;
|
|
4432
|
+
};
|
|
4433
|
+
pp$13.regexp_eatClassSetCharacter = function(state) {
|
|
4434
|
+
var start3 = state.pos;
|
|
4435
|
+
if (state.eat(92)) {
|
|
4436
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
4437
|
+
return true;
|
|
4438
|
+
}
|
|
4439
|
+
if (state.eat(98)) {
|
|
4440
|
+
state.lastIntValue = 8;
|
|
4441
|
+
return true;
|
|
4442
|
+
}
|
|
4443
|
+
state.pos = start3;
|
|
4444
|
+
return false;
|
|
4445
|
+
}
|
|
4446
|
+
var ch2 = state.current();
|
|
4447
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter2(ch2)) {
|
|
4448
|
+
return false;
|
|
4449
|
+
}
|
|
4450
|
+
if (isClassSetSyntaxCharacter2(ch2)) {
|
|
4451
|
+
return false;
|
|
4452
|
+
}
|
|
4453
|
+
state.advance();
|
|
4454
|
+
state.lastIntValue = ch2;
|
|
4455
|
+
return true;
|
|
4456
|
+
};
|
|
4457
|
+
function isClassSetReservedDoublePunctuatorCharacter2(ch2) {
|
|
4458
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
4459
|
+
}
|
|
4460
|
+
function isClassSetSyntaxCharacter2(ch2) {
|
|
4461
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
4462
|
+
}
|
|
4463
|
+
pp$13.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4464
|
+
var ch2 = state.current();
|
|
4465
|
+
if (isClassSetReservedPunctuator2(ch2)) {
|
|
4466
|
+
state.lastIntValue = ch2;
|
|
4467
|
+
state.advance();
|
|
4468
|
+
return true;
|
|
4469
|
+
}
|
|
4470
|
+
return false;
|
|
4471
|
+
};
|
|
4472
|
+
function isClassSetReservedPunctuator2(ch2) {
|
|
4473
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
4474
|
+
}
|
|
4192
4475
|
pp$13.regexp_eatClassControlLetter = function(state) {
|
|
4193
4476
|
var ch2 = state.current();
|
|
4194
4477
|
if (isDecimalDigit3(ch2) || ch2 === 95) {
|
|
@@ -5031,7 +5314,6 @@ var require_acorn = __commonJS({
|
|
|
5031
5314
|
codePos,
|
|
5032
5315
|
"Invalid escape sequence in template string"
|
|
5033
5316
|
);
|
|
5034
|
-
return null;
|
|
5035
5317
|
}
|
|
5036
5318
|
default:
|
|
5037
5319
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -5102,7 +5384,7 @@ var require_acorn = __commonJS({
|
|
|
5102
5384
|
}
|
|
5103
5385
|
return this.finishToken(type, word);
|
|
5104
5386
|
};
|
|
5105
|
-
var version3 = "8.
|
|
5387
|
+
var version3 = "8.9.0";
|
|
5106
5388
|
Parser5.acorn = {
|
|
5107
5389
|
Parser: Parser5,
|
|
5108
5390
|
version: version3,
|
|
@@ -5155,14 +5437,13 @@ var require_acorn = __commonJS({
|
|
|
5155
5437
|
exports2.tokTypes = types$13;
|
|
5156
5438
|
exports2.tokenizer = tokenizer4;
|
|
5157
5439
|
exports2.version = version3;
|
|
5158
|
-
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
5159
5440
|
});
|
|
5160
5441
|
}
|
|
5161
5442
|
});
|
|
5162
5443
|
|
|
5163
|
-
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5444
|
+
// ../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js
|
|
5164
5445
|
var require_acorn_jsx = __commonJS({
|
|
5165
|
-
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.
|
|
5446
|
+
"../../../node_modules/.pnpm/acorn-jsx@5.3.2_acorn@8.9.0/node_modules/acorn-jsx/index.js"(exports, module) {
|
|
5166
5447
|
"use strict";
|
|
5167
5448
|
var XHTMLEntities = require_xhtml();
|
|
5168
5449
|
var hexNumber = /^[\da-fA-F]+$/;
|
|
@@ -12524,10 +12805,10 @@ var remark_stringify_default = remarkStringify;
|
|
|
12524
12805
|
// ../../../node_modules/.pnpm/remark@14.0.2/node_modules/remark/index.js
|
|
12525
12806
|
var remark = unified().use(remark_parse_default).use(remark_stringify_default).freeze();
|
|
12526
12807
|
|
|
12527
|
-
// ../../../node_modules/.pnpm/acorn@8.
|
|
12528
|
-
var astralIdentifierCodes = [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,
|
|
12529
|
-
var astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 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,
|
|
12530
|
-
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\
|
|
12808
|
+
// ../../../node_modules/.pnpm/acorn@8.9.0/node_modules/acorn/dist/acorn.mjs
|
|
12809
|
+
var astralIdentifierCodes = [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, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 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, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 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, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
12810
|
+
var astralIdentifierStartCodes = [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, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 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, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 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, 20, 1, 64, 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, 38, 6, 186, 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, 19, 72, 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, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 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, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 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, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 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, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 3104, 541, 1507, 4938, 6, 4191];
|
|
12811
|
+
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F";
|
|
12531
12812
|
var nonASCIIidentifierStartChars = "\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC";
|
|
12532
12813
|
var reservedWords = {
|
|
12533
12814
|
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",
|
|
@@ -12557,6 +12838,7 @@ function isInAstralSet(code3, set) {
|
|
|
12557
12838
|
return true;
|
|
12558
12839
|
}
|
|
12559
12840
|
}
|
|
12841
|
+
return false;
|
|
12560
12842
|
}
|
|
12561
12843
|
function isIdentifierStart(code3, astral) {
|
|
12562
12844
|
if (code3 < 65) {
|
|
@@ -12813,7 +13095,7 @@ function getOptions(opts) {
|
|
|
12813
13095
|
if (options.allowReserved == null) {
|
|
12814
13096
|
options.allowReserved = options.ecmaVersion < 5;
|
|
12815
13097
|
}
|
|
12816
|
-
if (opts.allowHashBang == null) {
|
|
13098
|
+
if (!opts || opts.allowHashBang == null) {
|
|
12817
13099
|
options.allowHashBang = options.ecmaVersion >= 14;
|
|
12818
13100
|
}
|
|
12819
13101
|
if (isArray(options.onToken)) {
|
|
@@ -13139,13 +13421,13 @@ pp$8.isLet = function(context) {
|
|
|
13139
13421
|
skipWhiteSpace.lastIndex = this.pos;
|
|
13140
13422
|
var skip = skipWhiteSpace.exec(this.input);
|
|
13141
13423
|
var next = this.pos + skip[0].length, nextCh = this.input.charCodeAt(next);
|
|
13142
|
-
if (nextCh === 91 || nextCh === 92
|
|
13424
|
+
if (nextCh === 91 || nextCh === 92) {
|
|
13143
13425
|
return true;
|
|
13144
13426
|
}
|
|
13145
13427
|
if (context) {
|
|
13146
13428
|
return false;
|
|
13147
13429
|
}
|
|
13148
|
-
if (nextCh === 123) {
|
|
13430
|
+
if (nextCh === 123 || nextCh > 55295 && nextCh < 56320) {
|
|
13149
13431
|
return true;
|
|
13150
13432
|
}
|
|
13151
13433
|
if (isIdentifierStart(nextCh, true)) {
|
|
@@ -13443,6 +13725,14 @@ pp$8.parseThrowStatement = function(node) {
|
|
|
13443
13725
|
return this.finishNode(node, "ThrowStatement");
|
|
13444
13726
|
};
|
|
13445
13727
|
var empty$1 = [];
|
|
13728
|
+
pp$8.parseCatchClauseParam = function() {
|
|
13729
|
+
var param = this.parseBindingAtom();
|
|
13730
|
+
var simple = param.type === "Identifier";
|
|
13731
|
+
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
13732
|
+
this.checkLValPattern(param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
13733
|
+
this.expect(types$1.parenR);
|
|
13734
|
+
return param;
|
|
13735
|
+
};
|
|
13446
13736
|
pp$8.parseTryStatement = function(node) {
|
|
13447
13737
|
this.next();
|
|
13448
13738
|
node.block = this.parseBlock();
|
|
@@ -13451,11 +13741,7 @@ pp$8.parseTryStatement = function(node) {
|
|
|
13451
13741
|
var clause = this.startNode();
|
|
13452
13742
|
this.next();
|
|
13453
13743
|
if (this.eat(types$1.parenL)) {
|
|
13454
|
-
clause.param = this.
|
|
13455
|
-
var simple = clause.param.type === "Identifier";
|
|
13456
|
-
this.enterScope(simple ? SCOPE_SIMPLE_CATCH : 0);
|
|
13457
|
-
this.checkLValPattern(clause.param, simple ? BIND_SIMPLE_CATCH : BIND_LEXICAL);
|
|
13458
|
-
this.expect(types$1.parenR);
|
|
13744
|
+
clause.param = this.parseCatchClauseParam();
|
|
13459
13745
|
} else {
|
|
13460
13746
|
if (this.options.ecmaVersion < 10) {
|
|
13461
13747
|
this.unexpected();
|
|
@@ -13473,9 +13759,9 @@ pp$8.parseTryStatement = function(node) {
|
|
|
13473
13759
|
}
|
|
13474
13760
|
return this.finishNode(node, "TryStatement");
|
|
13475
13761
|
};
|
|
13476
|
-
pp$8.parseVarStatement = function(node, kind) {
|
|
13762
|
+
pp$8.parseVarStatement = function(node, kind, allowMissingInitializer) {
|
|
13477
13763
|
this.next();
|
|
13478
|
-
this.parseVar(node, false, kind);
|
|
13764
|
+
this.parseVar(node, false, kind, allowMissingInitializer);
|
|
13479
13765
|
this.semicolon();
|
|
13480
13766
|
return this.finishNode(node, "VariableDeclaration");
|
|
13481
13767
|
};
|
|
@@ -13580,7 +13866,7 @@ pp$8.parseForIn = function(node, init2) {
|
|
|
13580
13866
|
this.labels.pop();
|
|
13581
13867
|
return this.finishNode(node, isForIn ? "ForInStatement" : "ForOfStatement");
|
|
13582
13868
|
};
|
|
13583
|
-
pp$8.parseVar = function(node, isFor, kind) {
|
|
13869
|
+
pp$8.parseVar = function(node, isFor, kind, allowMissingInitializer) {
|
|
13584
13870
|
node.declarations = [];
|
|
13585
13871
|
node.kind = kind;
|
|
13586
13872
|
for (; ; ) {
|
|
@@ -13588,9 +13874,9 @@ pp$8.parseVar = function(node, isFor, kind) {
|
|
|
13588
13874
|
this.parseVarId(decl, kind);
|
|
13589
13875
|
if (this.eat(types$1.eq)) {
|
|
13590
13876
|
decl.init = this.parseMaybeAssign(isFor);
|
|
13591
|
-
} else if (kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
13877
|
+
} else if (!allowMissingInitializer && kind === "const" && !(this.type === types$1._in || this.options.ecmaVersion >= 6 && this.isContextual("of"))) {
|
|
13592
13878
|
this.unexpected();
|
|
13593
|
-
} else if (decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
13879
|
+
} else if (!allowMissingInitializer && decl.id.type !== "Identifier" && !(isFor && (this.type === types$1._in || this.isContextual("of")))) {
|
|
13594
13880
|
this.raise(this.lastTokEnd, "Complex binding patterns require an initialization value");
|
|
13595
13881
|
} else {
|
|
13596
13882
|
decl.init = null;
|
|
@@ -13663,7 +13949,7 @@ pp$8.parseClass = function(node, isStatement) {
|
|
|
13663
13949
|
classBody.body.push(element2);
|
|
13664
13950
|
if (element2.type === "MethodDefinition" && element2.kind === "constructor") {
|
|
13665
13951
|
if (hadConstructor) {
|
|
13666
|
-
this.
|
|
13952
|
+
this.raiseRecoverable(element2.start, "Duplicate constructor in the same class");
|
|
13667
13953
|
}
|
|
13668
13954
|
hadConstructor = true;
|
|
13669
13955
|
} else if (element2.key && element2.key.type === "PrivateIdentifier" && isPrivateNameConflicted(privateNameMap, element2)) {
|
|
@@ -13825,7 +14111,7 @@ pp$8.parseClassId = function(node, isStatement) {
|
|
|
13825
14111
|
}
|
|
13826
14112
|
};
|
|
13827
14113
|
pp$8.parseClassSuper = function(node) {
|
|
13828
|
-
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(false) : null;
|
|
14114
|
+
node.superClass = this.eat(types$1._extends) ? this.parseExprSubscripts(null, false) : null;
|
|
13829
14115
|
};
|
|
13830
14116
|
pp$8.enterClassBody = function() {
|
|
13831
14117
|
var element2 = { declared: /* @__PURE__ */ Object.create(null), used: [] };
|
|
@@ -13871,46 +14157,35 @@ function checkKeyName(node, name2) {
|
|
|
13871
14157
|
var key = node.key;
|
|
13872
14158
|
return !computed && (key.type === "Identifier" && key.name === name2 || key.type === "Literal" && key.value === name2);
|
|
13873
14159
|
}
|
|
14160
|
+
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
14161
|
+
if (this.options.ecmaVersion >= 11) {
|
|
14162
|
+
if (this.eatContextual("as")) {
|
|
14163
|
+
node.exported = this.parseModuleExportName();
|
|
14164
|
+
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
14165
|
+
} else {
|
|
14166
|
+
node.exported = null;
|
|
14167
|
+
}
|
|
14168
|
+
}
|
|
14169
|
+
this.expectContextual("from");
|
|
14170
|
+
if (this.type !== types$1.string) {
|
|
14171
|
+
this.unexpected();
|
|
14172
|
+
}
|
|
14173
|
+
node.source = this.parseExprAtom();
|
|
14174
|
+
this.semicolon();
|
|
14175
|
+
return this.finishNode(node, "ExportAllDeclaration");
|
|
14176
|
+
};
|
|
13874
14177
|
pp$8.parseExport = function(node, exports) {
|
|
13875
14178
|
this.next();
|
|
13876
14179
|
if (this.eat(types$1.star)) {
|
|
13877
|
-
|
|
13878
|
-
if (this.eatContextual("as")) {
|
|
13879
|
-
node.exported = this.parseModuleExportName();
|
|
13880
|
-
this.checkExport(exports, node.exported, this.lastTokStart);
|
|
13881
|
-
} else {
|
|
13882
|
-
node.exported = null;
|
|
13883
|
-
}
|
|
13884
|
-
}
|
|
13885
|
-
this.expectContextual("from");
|
|
13886
|
-
if (this.type !== types$1.string) {
|
|
13887
|
-
this.unexpected();
|
|
13888
|
-
}
|
|
13889
|
-
node.source = this.parseExprAtom();
|
|
13890
|
-
this.semicolon();
|
|
13891
|
-
return this.finishNode(node, "ExportAllDeclaration");
|
|
14180
|
+
return this.parseExportAllDeclaration(node, exports);
|
|
13892
14181
|
}
|
|
13893
14182
|
if (this.eat(types$1._default)) {
|
|
13894
14183
|
this.checkExport(exports, "default", this.lastTokStart);
|
|
13895
|
-
|
|
13896
|
-
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
13897
|
-
var fNode = this.startNode();
|
|
13898
|
-
this.next();
|
|
13899
|
-
if (isAsync) {
|
|
13900
|
-
this.next();
|
|
13901
|
-
}
|
|
13902
|
-
node.declaration = this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
13903
|
-
} else if (this.type === types$1._class) {
|
|
13904
|
-
var cNode = this.startNode();
|
|
13905
|
-
node.declaration = this.parseClass(cNode, "nullableID");
|
|
13906
|
-
} else {
|
|
13907
|
-
node.declaration = this.parseMaybeAssign();
|
|
13908
|
-
this.semicolon();
|
|
13909
|
-
}
|
|
14184
|
+
node.declaration = this.parseExportDefaultDeclaration();
|
|
13910
14185
|
return this.finishNode(node, "ExportDefaultDeclaration");
|
|
13911
14186
|
}
|
|
13912
14187
|
if (this.shouldParseExportStatement()) {
|
|
13913
|
-
node.declaration = this.
|
|
14188
|
+
node.declaration = this.parseExportDeclaration(node);
|
|
13914
14189
|
if (node.declaration.type === "VariableDeclaration") {
|
|
13915
14190
|
this.checkVariableExport(exports, node.declaration.declarations);
|
|
13916
14191
|
} else {
|
|
@@ -13941,6 +14216,27 @@ pp$8.parseExport = function(node, exports) {
|
|
|
13941
14216
|
}
|
|
13942
14217
|
return this.finishNode(node, "ExportNamedDeclaration");
|
|
13943
14218
|
};
|
|
14219
|
+
pp$8.parseExportDeclaration = function(node) {
|
|
14220
|
+
return this.parseStatement(null);
|
|
14221
|
+
};
|
|
14222
|
+
pp$8.parseExportDefaultDeclaration = function() {
|
|
14223
|
+
var isAsync;
|
|
14224
|
+
if (this.type === types$1._function || (isAsync = this.isAsyncFunction())) {
|
|
14225
|
+
var fNode = this.startNode();
|
|
14226
|
+
this.next();
|
|
14227
|
+
if (isAsync) {
|
|
14228
|
+
this.next();
|
|
14229
|
+
}
|
|
14230
|
+
return this.parseFunction(fNode, FUNC_STATEMENT | FUNC_NULLABLE_ID, false, isAsync);
|
|
14231
|
+
} else if (this.type === types$1._class) {
|
|
14232
|
+
var cNode = this.startNode();
|
|
14233
|
+
return this.parseClass(cNode, "nullableID");
|
|
14234
|
+
} else {
|
|
14235
|
+
var declaration = this.parseMaybeAssign();
|
|
14236
|
+
this.semicolon();
|
|
14237
|
+
return declaration;
|
|
14238
|
+
}
|
|
14239
|
+
};
|
|
13944
14240
|
pp$8.checkExport = function(exports, name2, pos) {
|
|
13945
14241
|
if (!exports) {
|
|
13946
14242
|
return;
|
|
@@ -13991,6 +14287,17 @@ pp$8.checkVariableExport = function(exports, decls) {
|
|
|
13991
14287
|
pp$8.shouldParseExportStatement = function() {
|
|
13992
14288
|
return this.type.keyword === "var" || this.type.keyword === "const" || this.type.keyword === "class" || this.type.keyword === "function" || this.isLet() || this.isAsyncFunction();
|
|
13993
14289
|
};
|
|
14290
|
+
pp$8.parseExportSpecifier = function(exports) {
|
|
14291
|
+
var node = this.startNode();
|
|
14292
|
+
node.local = this.parseModuleExportName();
|
|
14293
|
+
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
14294
|
+
this.checkExport(
|
|
14295
|
+
exports,
|
|
14296
|
+
node.exported,
|
|
14297
|
+
node.exported.start
|
|
14298
|
+
);
|
|
14299
|
+
return this.finishNode(node, "ExportSpecifier");
|
|
14300
|
+
};
|
|
13994
14301
|
pp$8.parseExportSpecifiers = function(exports) {
|
|
13995
14302
|
var nodes = [], first = true;
|
|
13996
14303
|
this.expect(types$1.braceL);
|
|
@@ -14003,15 +14310,7 @@ pp$8.parseExportSpecifiers = function(exports) {
|
|
|
14003
14310
|
} else {
|
|
14004
14311
|
first = false;
|
|
14005
14312
|
}
|
|
14006
|
-
|
|
14007
|
-
node.local = this.parseModuleExportName();
|
|
14008
|
-
node.exported = this.eatContextual("as") ? this.parseModuleExportName() : node.local;
|
|
14009
|
-
this.checkExport(
|
|
14010
|
-
exports,
|
|
14011
|
-
node.exported,
|
|
14012
|
-
node.exported.start
|
|
14013
|
-
);
|
|
14014
|
-
nodes.push(this.finishNode(node, "ExportSpecifier"));
|
|
14313
|
+
nodes.push(this.parseExportSpecifier(exports));
|
|
14015
14314
|
}
|
|
14016
14315
|
return nodes;
|
|
14017
14316
|
};
|
|
@@ -14028,24 +14327,42 @@ pp$8.parseImport = function(node) {
|
|
|
14028
14327
|
this.semicolon();
|
|
14029
14328
|
return this.finishNode(node, "ImportDeclaration");
|
|
14030
14329
|
};
|
|
14330
|
+
pp$8.parseImportSpecifier = function() {
|
|
14331
|
+
var node = this.startNode();
|
|
14332
|
+
node.imported = this.parseModuleExportName();
|
|
14333
|
+
if (this.eatContextual("as")) {
|
|
14334
|
+
node.local = this.parseIdent();
|
|
14335
|
+
} else {
|
|
14336
|
+
this.checkUnreserved(node.imported);
|
|
14337
|
+
node.local = node.imported;
|
|
14338
|
+
}
|
|
14339
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
14340
|
+
return this.finishNode(node, "ImportSpecifier");
|
|
14341
|
+
};
|
|
14342
|
+
pp$8.parseImportDefaultSpecifier = function() {
|
|
14343
|
+
var node = this.startNode();
|
|
14344
|
+
node.local = this.parseIdent();
|
|
14345
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
14346
|
+
return this.finishNode(node, "ImportDefaultSpecifier");
|
|
14347
|
+
};
|
|
14348
|
+
pp$8.parseImportNamespaceSpecifier = function() {
|
|
14349
|
+
var node = this.startNode();
|
|
14350
|
+
this.next();
|
|
14351
|
+
this.expectContextual("as");
|
|
14352
|
+
node.local = this.parseIdent();
|
|
14353
|
+
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
14354
|
+
return this.finishNode(node, "ImportNamespaceSpecifier");
|
|
14355
|
+
};
|
|
14031
14356
|
pp$8.parseImportSpecifiers = function() {
|
|
14032
14357
|
var nodes = [], first = true;
|
|
14033
14358
|
if (this.type === types$1.name) {
|
|
14034
|
-
|
|
14035
|
-
node.local = this.parseIdent();
|
|
14036
|
-
this.checkLValSimple(node.local, BIND_LEXICAL);
|
|
14037
|
-
nodes.push(this.finishNode(node, "ImportDefaultSpecifier"));
|
|
14359
|
+
nodes.push(this.parseImportDefaultSpecifier());
|
|
14038
14360
|
if (!this.eat(types$1.comma)) {
|
|
14039
14361
|
return nodes;
|
|
14040
14362
|
}
|
|
14041
14363
|
}
|
|
14042
14364
|
if (this.type === types$1.star) {
|
|
14043
|
-
|
|
14044
|
-
this.next();
|
|
14045
|
-
this.expectContextual("as");
|
|
14046
|
-
node$1.local = this.parseIdent();
|
|
14047
|
-
this.checkLValSimple(node$1.local, BIND_LEXICAL);
|
|
14048
|
-
nodes.push(this.finishNode(node$1, "ImportNamespaceSpecifier"));
|
|
14365
|
+
nodes.push(this.parseImportNamespaceSpecifier());
|
|
14049
14366
|
return nodes;
|
|
14050
14367
|
}
|
|
14051
14368
|
this.expect(types$1.braceL);
|
|
@@ -14058,16 +14375,7 @@ pp$8.parseImportSpecifiers = function() {
|
|
|
14058
14375
|
} else {
|
|
14059
14376
|
first = false;
|
|
14060
14377
|
}
|
|
14061
|
-
|
|
14062
|
-
node$2.imported = this.parseModuleExportName();
|
|
14063
|
-
if (this.eatContextual("as")) {
|
|
14064
|
-
node$2.local = this.parseIdent();
|
|
14065
|
-
} else {
|
|
14066
|
-
this.checkUnreserved(node$2.imported);
|
|
14067
|
-
node$2.local = node$2.imported;
|
|
14068
|
-
}
|
|
14069
|
-
this.checkLValSimple(node$2.local, BIND_LEXICAL);
|
|
14070
|
-
nodes.push(this.finishNode(node$2, "ImportSpecifier"));
|
|
14378
|
+
nodes.push(this.parseImportSpecifier());
|
|
14071
14379
|
}
|
|
14072
14380
|
return nodes;
|
|
14073
14381
|
};
|
|
@@ -14207,7 +14515,7 @@ pp$7.parseBindingAtom = function() {
|
|
|
14207
14515
|
}
|
|
14208
14516
|
return this.parseIdent();
|
|
14209
14517
|
};
|
|
14210
|
-
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
14518
|
+
pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma, allowModifiers) {
|
|
14211
14519
|
var elts = [], first = true;
|
|
14212
14520
|
while (!this.eat(close)) {
|
|
14213
14521
|
if (first) {
|
|
@@ -14224,18 +14532,21 @@ pp$7.parseBindingList = function(close, allowEmpty, allowTrailingComma) {
|
|
|
14224
14532
|
this.parseBindingListItem(rest);
|
|
14225
14533
|
elts.push(rest);
|
|
14226
14534
|
if (this.type === types$1.comma) {
|
|
14227
|
-
this.
|
|
14535
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
14228
14536
|
}
|
|
14229
14537
|
this.expect(close);
|
|
14230
14538
|
break;
|
|
14231
14539
|
} else {
|
|
14232
|
-
|
|
14233
|
-
this.parseBindingListItem(elem);
|
|
14234
|
-
elts.push(elem);
|
|
14540
|
+
elts.push(this.parseAssignableListItem(allowModifiers));
|
|
14235
14541
|
}
|
|
14236
14542
|
}
|
|
14237
14543
|
return elts;
|
|
14238
14544
|
};
|
|
14545
|
+
pp$7.parseAssignableListItem = function(allowModifiers) {
|
|
14546
|
+
var elem = this.parseMaybeDefault(this.start, this.startLoc);
|
|
14547
|
+
this.parseBindingListItem(elem);
|
|
14548
|
+
return elem;
|
|
14549
|
+
};
|
|
14239
14550
|
pp$7.parseBindingListItem = function(param) {
|
|
14240
14551
|
return param;
|
|
14241
14552
|
};
|
|
@@ -14752,6 +15063,12 @@ pp$5.parseSubscripts = function(base2, startPos, startLoc, noCalls, forInit) {
|
|
|
14752
15063
|
base2 = element2;
|
|
14753
15064
|
}
|
|
14754
15065
|
};
|
|
15066
|
+
pp$5.shouldParseAsyncArrow = function() {
|
|
15067
|
+
return !this.canInsertSemicolon() && this.eat(types$1.arrow);
|
|
15068
|
+
};
|
|
15069
|
+
pp$5.parseSubscriptAsyncArrow = function(startPos, startLoc, exprList, forInit) {
|
|
15070
|
+
return this.parseArrowExpression(this.startNodeAt(startPos, startLoc), exprList, true, forInit);
|
|
15071
|
+
};
|
|
14755
15072
|
pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArrow, optionalChained, forInit) {
|
|
14756
15073
|
var optionalSupported = this.options.ecmaVersion >= 11;
|
|
14757
15074
|
var optional = optionalSupported && this.eat(types$1.questionDot);
|
|
@@ -14781,7 +15098,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
14781
15098
|
this.awaitPos = 0;
|
|
14782
15099
|
this.awaitIdentPos = 0;
|
|
14783
15100
|
var exprList = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false, refDestructuringErrors);
|
|
14784
|
-
if (maybeAsyncArrow && !optional &&
|
|
15101
|
+
if (maybeAsyncArrow && !optional && this.shouldParseAsyncArrow()) {
|
|
14785
15102
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
14786
15103
|
this.checkYieldAwaitInDefaultParams();
|
|
14787
15104
|
if (this.awaitIdentPos > 0) {
|
|
@@ -14790,7 +15107,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
14790
15107
|
this.yieldPos = oldYieldPos;
|
|
14791
15108
|
this.awaitPos = oldAwaitPos;
|
|
14792
15109
|
this.awaitIdentPos = oldAwaitIdentPos;
|
|
14793
|
-
return this.
|
|
15110
|
+
return this.parseSubscriptAsyncArrow(startPos, startLoc, exprList, forInit);
|
|
14794
15111
|
}
|
|
14795
15112
|
this.checkExpressionErrors(refDestructuringErrors, true);
|
|
14796
15113
|
this.yieldPos = oldYieldPos || this.yieldPos;
|
|
@@ -14814,7 +15131,7 @@ pp$5.parseSubscript = function(base2, startPos, startLoc, noCalls, maybeAsyncArr
|
|
|
14814
15131
|
}
|
|
14815
15132
|
return base2;
|
|
14816
15133
|
};
|
|
14817
|
-
pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
15134
|
+
pp$5.parseExprAtom = function(refDestructuringErrors, forInit, forNew) {
|
|
14818
15135
|
if (this.type === types$1.slash) {
|
|
14819
15136
|
this.readRegexp();
|
|
14820
15137
|
}
|
|
@@ -14904,28 +15221,30 @@ pp$5.parseExprAtom = function(refDestructuringErrors, forInit) {
|
|
|
14904
15221
|
return this.parseTemplate();
|
|
14905
15222
|
case types$1._import:
|
|
14906
15223
|
if (this.options.ecmaVersion >= 11) {
|
|
14907
|
-
return this.parseExprImport();
|
|
15224
|
+
return this.parseExprImport(forNew);
|
|
14908
15225
|
} else {
|
|
14909
15226
|
return this.unexpected();
|
|
14910
15227
|
}
|
|
14911
15228
|
default:
|
|
14912
|
-
this.
|
|
15229
|
+
return this.parseExprAtomDefault();
|
|
14913
15230
|
}
|
|
14914
15231
|
};
|
|
14915
|
-
pp$5.
|
|
15232
|
+
pp$5.parseExprAtomDefault = function() {
|
|
15233
|
+
this.unexpected();
|
|
15234
|
+
};
|
|
15235
|
+
pp$5.parseExprImport = function(forNew) {
|
|
14916
15236
|
var node = this.startNode();
|
|
14917
15237
|
if (this.containsEsc) {
|
|
14918
15238
|
this.raiseRecoverable(this.start, "Escape sequence in keyword import");
|
|
14919
15239
|
}
|
|
14920
15240
|
var meta = this.parseIdent(true);
|
|
14921
|
-
|
|
14922
|
-
|
|
14923
|
-
|
|
14924
|
-
|
|
14925
|
-
|
|
14926
|
-
|
|
14927
|
-
|
|
14928
|
-
this.unexpected();
|
|
15241
|
+
if (this.type === types$1.parenL && !forNew) {
|
|
15242
|
+
return this.parseDynamicImport(node);
|
|
15243
|
+
} else if (this.type === types$1.dot) {
|
|
15244
|
+
node.meta = meta;
|
|
15245
|
+
return this.parseImportMeta(node);
|
|
15246
|
+
} else {
|
|
15247
|
+
this.unexpected();
|
|
14929
15248
|
}
|
|
14930
15249
|
};
|
|
14931
15250
|
pp$5.parseDynamicImport = function(node) {
|
|
@@ -14972,6 +15291,9 @@ pp$5.parseParenExpression = function() {
|
|
|
14972
15291
|
this.expect(types$1.parenR);
|
|
14973
15292
|
return val;
|
|
14974
15293
|
};
|
|
15294
|
+
pp$5.shouldParseArrow = function(exprList) {
|
|
15295
|
+
return !this.canInsertSemicolon();
|
|
15296
|
+
};
|
|
14975
15297
|
pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
14976
15298
|
var startPos = this.start, startLoc = this.startLoc, val, allowTrailingComma = this.options.ecmaVersion >= 8;
|
|
14977
15299
|
if (this.options.ecmaVersion >= 6) {
|
|
@@ -14990,7 +15312,10 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
14990
15312
|
spreadStart = this.start;
|
|
14991
15313
|
exprList.push(this.parseParenItem(this.parseRestBinding()));
|
|
14992
15314
|
if (this.type === types$1.comma) {
|
|
14993
|
-
this.
|
|
15315
|
+
this.raiseRecoverable(
|
|
15316
|
+
this.start,
|
|
15317
|
+
"Comma is not permitted after the rest element"
|
|
15318
|
+
);
|
|
14994
15319
|
}
|
|
14995
15320
|
break;
|
|
14996
15321
|
} else {
|
|
@@ -14999,7 +15324,7 @@ pp$5.parseParenAndDistinguishExpression = function(canBeArrow, forInit) {
|
|
|
14999
15324
|
}
|
|
15000
15325
|
var innerEndPos = this.lastTokEnd, innerEndLoc = this.lastTokEndLoc;
|
|
15001
15326
|
this.expect(types$1.parenR);
|
|
15002
|
-
if (canBeArrow &&
|
|
15327
|
+
if (canBeArrow && this.shouldParseArrow(exprList) && this.eat(types$1.arrow)) {
|
|
15003
15328
|
this.checkPatternErrors(refDestructuringErrors, false);
|
|
15004
15329
|
this.checkYieldAwaitInDefaultParams();
|
|
15005
15330
|
this.yieldPos = oldYieldPos;
|
|
@@ -15061,11 +15386,8 @@ pp$5.parseNew = function() {
|
|
|
15061
15386
|
}
|
|
15062
15387
|
return this.finishNode(node, "MetaProperty");
|
|
15063
15388
|
}
|
|
15064
|
-
var startPos = this.start, startLoc = this.startLoc
|
|
15065
|
-
node.callee = this.parseSubscripts(this.parseExprAtom(), startPos, startLoc, true, false);
|
|
15066
|
-
if (isImport && node.callee.type === "ImportExpression") {
|
|
15067
|
-
this.raise(startPos, "Cannot use new with import()");
|
|
15068
|
-
}
|
|
15389
|
+
var startPos = this.start, startLoc = this.startLoc;
|
|
15390
|
+
node.callee = this.parseSubscripts(this.parseExprAtom(null, false, true), startPos, startLoc, true, false);
|
|
15069
15391
|
if (this.eat(types$1.parenL)) {
|
|
15070
15392
|
node.arguments = this.parseExprList(types$1.parenR, this.options.ecmaVersion >= 8, false);
|
|
15071
15393
|
} else {
|
|
@@ -15147,7 +15469,7 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
15147
15469
|
if (isPattern) {
|
|
15148
15470
|
prop.argument = this.parseIdent(false);
|
|
15149
15471
|
if (this.type === types$1.comma) {
|
|
15150
|
-
this.
|
|
15472
|
+
this.raiseRecoverable(this.start, "Comma is not permitted after the rest element");
|
|
15151
15473
|
}
|
|
15152
15474
|
return this.finishNode(prop, "RestElement");
|
|
15153
15475
|
}
|
|
@@ -15173,13 +15495,31 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
15173
15495
|
if (!isPattern && !containsEsc && this.options.ecmaVersion >= 8 && !isGenerator && this.isAsyncProp(prop)) {
|
|
15174
15496
|
isAsync = true;
|
|
15175
15497
|
isGenerator = this.options.ecmaVersion >= 9 && this.eat(types$1.star);
|
|
15176
|
-
this.parsePropertyName(prop
|
|
15498
|
+
this.parsePropertyName(prop);
|
|
15177
15499
|
} else {
|
|
15178
15500
|
isAsync = false;
|
|
15179
15501
|
}
|
|
15180
15502
|
this.parsePropertyValue(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc);
|
|
15181
15503
|
return this.finishNode(prop, "Property");
|
|
15182
15504
|
};
|
|
15505
|
+
pp$5.parseGetterSetter = function(prop) {
|
|
15506
|
+
prop.kind = prop.key.name;
|
|
15507
|
+
this.parsePropertyName(prop);
|
|
15508
|
+
prop.value = this.parseMethod(false);
|
|
15509
|
+
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
15510
|
+
if (prop.value.params.length !== paramCount) {
|
|
15511
|
+
var start3 = prop.value.start;
|
|
15512
|
+
if (prop.kind === "get") {
|
|
15513
|
+
this.raiseRecoverable(start3, "getter should have no params");
|
|
15514
|
+
} else {
|
|
15515
|
+
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
15516
|
+
}
|
|
15517
|
+
} else {
|
|
15518
|
+
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
15519
|
+
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
15520
|
+
}
|
|
15521
|
+
}
|
|
15522
|
+
};
|
|
15183
15523
|
pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startPos, startLoc, refDestructuringErrors, containsEsc) {
|
|
15184
15524
|
if ((isGenerator || isAsync) && this.type === types$1.colon) {
|
|
15185
15525
|
this.unexpected();
|
|
@@ -15198,22 +15538,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
15198
15538
|
if (isGenerator || isAsync) {
|
|
15199
15539
|
this.unexpected();
|
|
15200
15540
|
}
|
|
15201
|
-
|
|
15202
|
-
this.parsePropertyName(prop);
|
|
15203
|
-
prop.value = this.parseMethod(false);
|
|
15204
|
-
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
15205
|
-
if (prop.value.params.length !== paramCount) {
|
|
15206
|
-
var start3 = prop.value.start;
|
|
15207
|
-
if (prop.kind === "get") {
|
|
15208
|
-
this.raiseRecoverable(start3, "getter should have no params");
|
|
15209
|
-
} else {
|
|
15210
|
-
this.raiseRecoverable(start3, "setter should have exactly one param");
|
|
15211
|
-
}
|
|
15212
|
-
} else {
|
|
15213
|
-
if (prop.kind === "set" && prop.value.params[0].type === "RestElement") {
|
|
15214
|
-
this.raiseRecoverable(prop.value.params[0].start, "Setter cannot use rest params");
|
|
15215
|
-
}
|
|
15216
|
-
}
|
|
15541
|
+
this.parseGetterSetter(prop);
|
|
15217
15542
|
} else if (this.options.ecmaVersion >= 6 && !prop.computed && prop.key.type === "Identifier") {
|
|
15218
15543
|
if (isGenerator || isAsync) {
|
|
15219
15544
|
this.unexpected();
|
|
@@ -15402,7 +15727,19 @@ pp$5.checkUnreserved = function(ref3) {
|
|
|
15402
15727
|
this.raiseRecoverable(start3, "The keyword '" + name2 + "' is reserved");
|
|
15403
15728
|
}
|
|
15404
15729
|
};
|
|
15405
|
-
pp$5.parseIdent = function(liberal
|
|
15730
|
+
pp$5.parseIdent = function(liberal) {
|
|
15731
|
+
var node = this.parseIdentNode();
|
|
15732
|
+
this.next(!!liberal);
|
|
15733
|
+
this.finishNode(node, "Identifier");
|
|
15734
|
+
if (!liberal) {
|
|
15735
|
+
this.checkUnreserved(node);
|
|
15736
|
+
if (node.name === "await" && !this.awaitIdentPos) {
|
|
15737
|
+
this.awaitIdentPos = node.start;
|
|
15738
|
+
}
|
|
15739
|
+
}
|
|
15740
|
+
return node;
|
|
15741
|
+
};
|
|
15742
|
+
pp$5.parseIdentNode = function() {
|
|
15406
15743
|
var node = this.startNode();
|
|
15407
15744
|
if (this.type === types$1.name) {
|
|
15408
15745
|
node.name = this.value;
|
|
@@ -15414,14 +15751,6 @@ pp$5.parseIdent = function(liberal, isBinding) {
|
|
|
15414
15751
|
} else {
|
|
15415
15752
|
this.unexpected();
|
|
15416
15753
|
}
|
|
15417
|
-
this.next(!!liberal);
|
|
15418
|
-
this.finishNode(node, "Identifier");
|
|
15419
|
-
if (!liberal) {
|
|
15420
|
-
this.checkUnreserved(node);
|
|
15421
|
-
if (node.name === "await" && !this.awaitIdentPos) {
|
|
15422
|
-
this.awaitIdentPos = node.start;
|
|
15423
|
-
}
|
|
15424
|
-
}
|
|
15425
15754
|
return node;
|
|
15426
15755
|
};
|
|
15427
15756
|
pp$5.parsePrivateIdent = function() {
|
|
@@ -15611,12 +15940,23 @@ var ecma10BinaryProperties = ecma9BinaryProperties + " Extended_Pictographic";
|
|
|
15611
15940
|
var ecma11BinaryProperties = ecma10BinaryProperties;
|
|
15612
15941
|
var ecma12BinaryProperties = ecma11BinaryProperties + " EBase EComp EMod EPres ExtPict";
|
|
15613
15942
|
var ecma13BinaryProperties = ecma12BinaryProperties;
|
|
15943
|
+
var ecma14BinaryProperties = ecma13BinaryProperties;
|
|
15614
15944
|
var unicodeBinaryProperties = {
|
|
15615
15945
|
9: ecma9BinaryProperties,
|
|
15616
15946
|
10: ecma10BinaryProperties,
|
|
15617
15947
|
11: ecma11BinaryProperties,
|
|
15618
15948
|
12: ecma12BinaryProperties,
|
|
15619
|
-
13: ecma13BinaryProperties
|
|
15949
|
+
13: ecma13BinaryProperties,
|
|
15950
|
+
14: ecma14BinaryProperties
|
|
15951
|
+
};
|
|
15952
|
+
var ecma14BinaryPropertiesOfStrings = "Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji";
|
|
15953
|
+
var unicodeBinaryPropertiesOfStrings = {
|
|
15954
|
+
9: "",
|
|
15955
|
+
10: "",
|
|
15956
|
+
11: "",
|
|
15957
|
+
12: "",
|
|
15958
|
+
13: "",
|
|
15959
|
+
14: ecma14BinaryPropertiesOfStrings
|
|
15620
15960
|
};
|
|
15621
15961
|
var unicodeGeneralCategoryValues = "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";
|
|
15622
15962
|
var ecma9ScriptValues = "Adlam Adlm 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 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";
|
|
@@ -15624,17 +15964,20 @@ var ecma10ScriptValues = ecma9ScriptValues + " Dogra Dogr Gunjala_Gondi Gong Han
|
|
|
15624
15964
|
var ecma11ScriptValues = ecma10ScriptValues + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
15625
15965
|
var ecma12ScriptValues = ecma11ScriptValues + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
15626
15966
|
var ecma13ScriptValues = ecma12ScriptValues + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
15967
|
+
var ecma14ScriptValues = ecma13ScriptValues + " Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz";
|
|
15627
15968
|
var unicodeScriptValues = {
|
|
15628
15969
|
9: ecma9ScriptValues,
|
|
15629
15970
|
10: ecma10ScriptValues,
|
|
15630
15971
|
11: ecma11ScriptValues,
|
|
15631
15972
|
12: ecma12ScriptValues,
|
|
15632
|
-
13: ecma13ScriptValues
|
|
15973
|
+
13: ecma13ScriptValues,
|
|
15974
|
+
14: ecma14ScriptValues
|
|
15633
15975
|
};
|
|
15634
15976
|
var data = {};
|
|
15635
15977
|
function buildUnicodeData(ecmaVersion) {
|
|
15636
15978
|
var d = data[ecmaVersion] = {
|
|
15637
15979
|
binary: wordsRegexp(unicodeBinaryProperties[ecmaVersion] + " " + unicodeGeneralCategoryValues),
|
|
15980
|
+
binaryOfStrings: wordsRegexp(unicodeBinaryPropertiesOfStrings[ecmaVersion]),
|
|
15638
15981
|
nonBinary: {
|
|
15639
15982
|
General_Category: wordsRegexp(unicodeGeneralCategoryValues),
|
|
15640
15983
|
Script: wordsRegexp(unicodeScriptValues[ecmaVersion])
|
|
@@ -15645,7 +15988,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
15645
15988
|
d.nonBinary.sc = d.nonBinary.Script;
|
|
15646
15989
|
d.nonBinary.scx = d.nonBinary.Script_Extensions;
|
|
15647
15990
|
}
|
|
15648
|
-
for (i = 0, list3 = [9, 10, 11, 12, 13]; i < list3.length; i += 1) {
|
|
15991
|
+
for (i = 0, list3 = [9, 10, 11, 12, 13, 14]; i < list3.length; i += 1) {
|
|
15649
15992
|
ecmaVersion = list3[i];
|
|
15650
15993
|
buildUnicodeData(ecmaVersion);
|
|
15651
15994
|
}
|
|
@@ -15655,12 +15998,13 @@ var list3;
|
|
|
15655
15998
|
var pp$1 = Parser.prototype;
|
|
15656
15999
|
var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
15657
16000
|
this.parser = parser;
|
|
15658
|
-
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "");
|
|
15659
|
-
this.unicodeProperties = data[parser.options.ecmaVersion >=
|
|
16001
|
+
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
16002
|
+
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
15660
16003
|
this.source = "";
|
|
15661
16004
|
this.flags = "";
|
|
15662
16005
|
this.start = 0;
|
|
15663
16006
|
this.switchU = false;
|
|
16007
|
+
this.switchV = false;
|
|
15664
16008
|
this.switchN = false;
|
|
15665
16009
|
this.pos = 0;
|
|
15666
16010
|
this.lastIntValue = 0;
|
|
@@ -15672,12 +16016,20 @@ var RegExpValidationState = function RegExpValidationState2(parser) {
|
|
|
15672
16016
|
this.backReferenceNames = [];
|
|
15673
16017
|
};
|
|
15674
16018
|
RegExpValidationState.prototype.reset = function reset(start3, pattern, flags) {
|
|
16019
|
+
var unicodeSets = flags.indexOf("v") !== -1;
|
|
15675
16020
|
var unicode = flags.indexOf("u") !== -1;
|
|
15676
16021
|
this.start = start3 | 0;
|
|
15677
16022
|
this.source = pattern + "";
|
|
15678
16023
|
this.flags = flags;
|
|
15679
|
-
|
|
15680
|
-
|
|
16024
|
+
if (unicodeSets && this.parser.options.ecmaVersion >= 15) {
|
|
16025
|
+
this.switchU = true;
|
|
16026
|
+
this.switchV = true;
|
|
16027
|
+
this.switchN = true;
|
|
16028
|
+
} else {
|
|
16029
|
+
this.switchU = unicode && this.parser.options.ecmaVersion >= 6;
|
|
16030
|
+
this.switchV = false;
|
|
16031
|
+
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
16032
|
+
}
|
|
15681
16033
|
};
|
|
15682
16034
|
RegExpValidationState.prototype.raise = function raise(message) {
|
|
15683
16035
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
@@ -15735,9 +16087,26 @@ RegExpValidationState.prototype.eat = function eat(ch2, forceU) {
|
|
|
15735
16087
|
}
|
|
15736
16088
|
return false;
|
|
15737
16089
|
};
|
|
16090
|
+
RegExpValidationState.prototype.eatChars = function eatChars(chs, forceU) {
|
|
16091
|
+
if (forceU === void 0)
|
|
16092
|
+
forceU = false;
|
|
16093
|
+
var pos = this.pos;
|
|
16094
|
+
for (var i = 0, list3 = chs; i < list3.length; i += 1) {
|
|
16095
|
+
var ch2 = list3[i];
|
|
16096
|
+
var current3 = this.at(pos, forceU);
|
|
16097
|
+
if (current3 === -1 || current3 !== ch2) {
|
|
16098
|
+
return false;
|
|
16099
|
+
}
|
|
16100
|
+
pos = this.nextIndex(pos, forceU);
|
|
16101
|
+
}
|
|
16102
|
+
this.pos = pos;
|
|
16103
|
+
return true;
|
|
16104
|
+
};
|
|
15738
16105
|
pp$1.validateRegExpFlags = function(state) {
|
|
15739
16106
|
var validFlags = state.validFlags;
|
|
15740
16107
|
var flags = state.flags;
|
|
16108
|
+
var u = false;
|
|
16109
|
+
var v = false;
|
|
15741
16110
|
for (var i = 0; i < flags.length; i++) {
|
|
15742
16111
|
var flag = flags.charAt(i);
|
|
15743
16112
|
if (validFlags.indexOf(flag) === -1) {
|
|
@@ -15746,6 +16115,15 @@ pp$1.validateRegExpFlags = function(state) {
|
|
|
15746
16115
|
if (flags.indexOf(flag, i + 1) > -1) {
|
|
15747
16116
|
this.raise(state.start, "Duplicate regular expression flag");
|
|
15748
16117
|
}
|
|
16118
|
+
if (flag === "u") {
|
|
16119
|
+
u = true;
|
|
16120
|
+
}
|
|
16121
|
+
if (flag === "v") {
|
|
16122
|
+
v = true;
|
|
16123
|
+
}
|
|
16124
|
+
}
|
|
16125
|
+
if (this.options.ecmaVersion >= 15 && u && v) {
|
|
16126
|
+
this.raise(state.start, "Invalid regular expression flag");
|
|
15749
16127
|
}
|
|
15750
16128
|
};
|
|
15751
16129
|
pp$1.validateRegExpPattern = function(state) {
|
|
@@ -16194,22 +16572,30 @@ pp$1.regexp_eatDecimalEscape = function(state) {
|
|
|
16194
16572
|
}
|
|
16195
16573
|
return false;
|
|
16196
16574
|
};
|
|
16575
|
+
var CharSetNone = 0;
|
|
16576
|
+
var CharSetOk = 1;
|
|
16577
|
+
var CharSetString = 2;
|
|
16197
16578
|
pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
16198
16579
|
var ch2 = state.current();
|
|
16199
16580
|
if (isCharacterClassEscape(ch2)) {
|
|
16200
16581
|
state.lastIntValue = -1;
|
|
16201
16582
|
state.advance();
|
|
16202
|
-
return
|
|
16583
|
+
return CharSetOk;
|
|
16203
16584
|
}
|
|
16204
|
-
|
|
16585
|
+
var negate = false;
|
|
16586
|
+
if (state.switchU && this.options.ecmaVersion >= 9 && ((negate = ch2 === 80) || ch2 === 112)) {
|
|
16205
16587
|
state.lastIntValue = -1;
|
|
16206
16588
|
state.advance();
|
|
16207
|
-
|
|
16208
|
-
|
|
16589
|
+
var result;
|
|
16590
|
+
if (state.eat(123) && (result = this.regexp_eatUnicodePropertyValueExpression(state)) && state.eat(125)) {
|
|
16591
|
+
if (negate && result === CharSetString) {
|
|
16592
|
+
state.raise("Invalid property name");
|
|
16593
|
+
}
|
|
16594
|
+
return result;
|
|
16209
16595
|
}
|
|
16210
16596
|
state.raise("Invalid property name");
|
|
16211
16597
|
}
|
|
16212
|
-
return
|
|
16598
|
+
return CharSetNone;
|
|
16213
16599
|
};
|
|
16214
16600
|
function isCharacterClassEscape(ch2) {
|
|
16215
16601
|
return ch2 === 100 || ch2 === 68 || ch2 === 115 || ch2 === 83 || ch2 === 119 || ch2 === 87;
|
|
@@ -16221,16 +16607,15 @@ pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
|
16221
16607
|
if (this.regexp_eatUnicodePropertyValue(state)) {
|
|
16222
16608
|
var value = state.lastStringValue;
|
|
16223
16609
|
this.regexp_validateUnicodePropertyNameAndValue(state, name2, value);
|
|
16224
|
-
return
|
|
16610
|
+
return CharSetOk;
|
|
16225
16611
|
}
|
|
16226
16612
|
}
|
|
16227
16613
|
state.pos = start3;
|
|
16228
16614
|
if (this.regexp_eatLoneUnicodePropertyNameOrValue(state)) {
|
|
16229
16615
|
var nameOrValue = state.lastStringValue;
|
|
16230
|
-
this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
16231
|
-
return true;
|
|
16616
|
+
return this.regexp_validateUnicodePropertyNameOrValue(state, nameOrValue);
|
|
16232
16617
|
}
|
|
16233
|
-
return
|
|
16618
|
+
return CharSetNone;
|
|
16234
16619
|
};
|
|
16235
16620
|
pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value) {
|
|
16236
16621
|
if (!hasOwn(state.unicodeProperties.nonBinary, name2)) {
|
|
@@ -16241,9 +16626,13 @@ pp$1.regexp_validateUnicodePropertyNameAndValue = function(state, name2, value)
|
|
|
16241
16626
|
}
|
|
16242
16627
|
};
|
|
16243
16628
|
pp$1.regexp_validateUnicodePropertyNameOrValue = function(state, nameOrValue) {
|
|
16244
|
-
if (
|
|
16245
|
-
|
|
16629
|
+
if (state.unicodeProperties.binary.test(nameOrValue)) {
|
|
16630
|
+
return CharSetOk;
|
|
16631
|
+
}
|
|
16632
|
+
if (state.switchV && state.unicodeProperties.binaryOfStrings.test(nameOrValue)) {
|
|
16633
|
+
return CharSetString;
|
|
16246
16634
|
}
|
|
16635
|
+
state.raise("Invalid property name");
|
|
16247
16636
|
};
|
|
16248
16637
|
pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
16249
16638
|
var ch2 = 0;
|
|
@@ -16274,16 +16663,29 @@ pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
|
16274
16663
|
};
|
|
16275
16664
|
pp$1.regexp_eatCharacterClass = function(state) {
|
|
16276
16665
|
if (state.eat(91)) {
|
|
16277
|
-
state.eat(94);
|
|
16278
|
-
this.
|
|
16279
|
-
if (state.eat(93)) {
|
|
16280
|
-
|
|
16666
|
+
var negate = state.eat(94);
|
|
16667
|
+
var result = this.regexp_classContents(state);
|
|
16668
|
+
if (!state.eat(93)) {
|
|
16669
|
+
state.raise("Unterminated character class");
|
|
16281
16670
|
}
|
|
16282
|
-
|
|
16671
|
+
if (negate && result === CharSetString) {
|
|
16672
|
+
state.raise("Negated character class may contain strings");
|
|
16673
|
+
}
|
|
16674
|
+
return true;
|
|
16283
16675
|
}
|
|
16284
16676
|
return false;
|
|
16285
16677
|
};
|
|
16286
|
-
pp$1.
|
|
16678
|
+
pp$1.regexp_classContents = function(state) {
|
|
16679
|
+
if (state.current() === 93) {
|
|
16680
|
+
return CharSetOk;
|
|
16681
|
+
}
|
|
16682
|
+
if (state.switchV) {
|
|
16683
|
+
return this.regexp_classSetExpression(state);
|
|
16684
|
+
}
|
|
16685
|
+
this.regexp_nonEmptyClassRanges(state);
|
|
16686
|
+
return CharSetOk;
|
|
16687
|
+
};
|
|
16688
|
+
pp$1.regexp_nonEmptyClassRanges = function(state) {
|
|
16287
16689
|
while (this.regexp_eatClassAtom(state)) {
|
|
16288
16690
|
var left = state.lastIntValue;
|
|
16289
16691
|
if (state.eat(45) && this.regexp_eatClassAtom(state)) {
|
|
@@ -16338,6 +16740,168 @@ pp$1.regexp_eatClassEscape = function(state) {
|
|
|
16338
16740
|
}
|
|
16339
16741
|
return this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state);
|
|
16340
16742
|
};
|
|
16743
|
+
pp$1.regexp_classSetExpression = function(state) {
|
|
16744
|
+
var result = CharSetOk, subResult;
|
|
16745
|
+
if (this.regexp_eatClassSetRange(state))
|
|
16746
|
+
;
|
|
16747
|
+
else if (subResult = this.regexp_eatClassSetOperand(state)) {
|
|
16748
|
+
if (subResult === CharSetString) {
|
|
16749
|
+
result = CharSetString;
|
|
16750
|
+
}
|
|
16751
|
+
var start3 = state.pos;
|
|
16752
|
+
while (state.eatChars([38, 38])) {
|
|
16753
|
+
if (state.current() !== 38 && (subResult = this.regexp_eatClassSetOperand(state))) {
|
|
16754
|
+
if (subResult !== CharSetString) {
|
|
16755
|
+
result = CharSetOk;
|
|
16756
|
+
}
|
|
16757
|
+
continue;
|
|
16758
|
+
}
|
|
16759
|
+
state.raise("Invalid character in character class");
|
|
16760
|
+
}
|
|
16761
|
+
if (start3 !== state.pos) {
|
|
16762
|
+
return result;
|
|
16763
|
+
}
|
|
16764
|
+
while (state.eatChars([45, 45])) {
|
|
16765
|
+
if (this.regexp_eatClassSetOperand(state)) {
|
|
16766
|
+
continue;
|
|
16767
|
+
}
|
|
16768
|
+
state.raise("Invalid character in character class");
|
|
16769
|
+
}
|
|
16770
|
+
if (start3 !== state.pos) {
|
|
16771
|
+
return result;
|
|
16772
|
+
}
|
|
16773
|
+
} else {
|
|
16774
|
+
state.raise("Invalid character in character class");
|
|
16775
|
+
}
|
|
16776
|
+
for (; ; ) {
|
|
16777
|
+
if (this.regexp_eatClassSetRange(state)) {
|
|
16778
|
+
continue;
|
|
16779
|
+
}
|
|
16780
|
+
subResult = this.regexp_eatClassSetOperand(state);
|
|
16781
|
+
if (!subResult) {
|
|
16782
|
+
return result;
|
|
16783
|
+
}
|
|
16784
|
+
if (subResult === CharSetString) {
|
|
16785
|
+
result = CharSetString;
|
|
16786
|
+
}
|
|
16787
|
+
}
|
|
16788
|
+
};
|
|
16789
|
+
pp$1.regexp_eatClassSetRange = function(state) {
|
|
16790
|
+
var start3 = state.pos;
|
|
16791
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
16792
|
+
var left = state.lastIntValue;
|
|
16793
|
+
if (state.eat(45) && this.regexp_eatClassSetCharacter(state)) {
|
|
16794
|
+
var right = state.lastIntValue;
|
|
16795
|
+
if (left !== -1 && right !== -1 && left > right) {
|
|
16796
|
+
state.raise("Range out of order in character class");
|
|
16797
|
+
}
|
|
16798
|
+
return true;
|
|
16799
|
+
}
|
|
16800
|
+
state.pos = start3;
|
|
16801
|
+
}
|
|
16802
|
+
return false;
|
|
16803
|
+
};
|
|
16804
|
+
pp$1.regexp_eatClassSetOperand = function(state) {
|
|
16805
|
+
if (this.regexp_eatClassSetCharacter(state)) {
|
|
16806
|
+
return CharSetOk;
|
|
16807
|
+
}
|
|
16808
|
+
return this.regexp_eatClassStringDisjunction(state) || this.regexp_eatNestedClass(state);
|
|
16809
|
+
};
|
|
16810
|
+
pp$1.regexp_eatNestedClass = function(state) {
|
|
16811
|
+
var start3 = state.pos;
|
|
16812
|
+
if (state.eat(91)) {
|
|
16813
|
+
var negate = state.eat(94);
|
|
16814
|
+
var result = this.regexp_classContents(state);
|
|
16815
|
+
if (state.eat(93)) {
|
|
16816
|
+
if (negate && result === CharSetString) {
|
|
16817
|
+
state.raise("Negated character class may contain strings");
|
|
16818
|
+
}
|
|
16819
|
+
return result;
|
|
16820
|
+
}
|
|
16821
|
+
state.pos = start3;
|
|
16822
|
+
}
|
|
16823
|
+
if (state.eat(92)) {
|
|
16824
|
+
var result$1 = this.regexp_eatCharacterClassEscape(state);
|
|
16825
|
+
if (result$1) {
|
|
16826
|
+
return result$1;
|
|
16827
|
+
}
|
|
16828
|
+
state.pos = start3;
|
|
16829
|
+
}
|
|
16830
|
+
return null;
|
|
16831
|
+
};
|
|
16832
|
+
pp$1.regexp_eatClassStringDisjunction = function(state) {
|
|
16833
|
+
var start3 = state.pos;
|
|
16834
|
+
if (state.eatChars([92, 113])) {
|
|
16835
|
+
if (state.eat(123)) {
|
|
16836
|
+
var result = this.regexp_classStringDisjunctionContents(state);
|
|
16837
|
+
if (state.eat(125)) {
|
|
16838
|
+
return result;
|
|
16839
|
+
}
|
|
16840
|
+
} else {
|
|
16841
|
+
state.raise("Invalid escape");
|
|
16842
|
+
}
|
|
16843
|
+
state.pos = start3;
|
|
16844
|
+
}
|
|
16845
|
+
return null;
|
|
16846
|
+
};
|
|
16847
|
+
pp$1.regexp_classStringDisjunctionContents = function(state) {
|
|
16848
|
+
var result = this.regexp_classString(state);
|
|
16849
|
+
while (state.eat(124)) {
|
|
16850
|
+
if (this.regexp_classString(state) === CharSetString) {
|
|
16851
|
+
result = CharSetString;
|
|
16852
|
+
}
|
|
16853
|
+
}
|
|
16854
|
+
return result;
|
|
16855
|
+
};
|
|
16856
|
+
pp$1.regexp_classString = function(state) {
|
|
16857
|
+
var count = 0;
|
|
16858
|
+
while (this.regexp_eatClassSetCharacter(state)) {
|
|
16859
|
+
count++;
|
|
16860
|
+
}
|
|
16861
|
+
return count === 1 ? CharSetOk : CharSetString;
|
|
16862
|
+
};
|
|
16863
|
+
pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
16864
|
+
var start3 = state.pos;
|
|
16865
|
+
if (state.eat(92)) {
|
|
16866
|
+
if (this.regexp_eatCharacterEscape(state) || this.regexp_eatClassSetReservedPunctuator(state)) {
|
|
16867
|
+
return true;
|
|
16868
|
+
}
|
|
16869
|
+
if (state.eat(98)) {
|
|
16870
|
+
state.lastIntValue = 8;
|
|
16871
|
+
return true;
|
|
16872
|
+
}
|
|
16873
|
+
state.pos = start3;
|
|
16874
|
+
return false;
|
|
16875
|
+
}
|
|
16876
|
+
var ch2 = state.current();
|
|
16877
|
+
if (ch2 < 0 || ch2 === state.lookahead() && isClassSetReservedDoublePunctuatorCharacter(ch2)) {
|
|
16878
|
+
return false;
|
|
16879
|
+
}
|
|
16880
|
+
if (isClassSetSyntaxCharacter(ch2)) {
|
|
16881
|
+
return false;
|
|
16882
|
+
}
|
|
16883
|
+
state.advance();
|
|
16884
|
+
state.lastIntValue = ch2;
|
|
16885
|
+
return true;
|
|
16886
|
+
};
|
|
16887
|
+
function isClassSetReservedDoublePunctuatorCharacter(ch2) {
|
|
16888
|
+
return ch2 === 33 || ch2 >= 35 && ch2 <= 38 || ch2 >= 42 && ch2 <= 44 || ch2 === 46 || ch2 >= 58 && ch2 <= 64 || ch2 === 94 || ch2 === 96 || ch2 === 126;
|
|
16889
|
+
}
|
|
16890
|
+
function isClassSetSyntaxCharacter(ch2) {
|
|
16891
|
+
return ch2 === 40 || ch2 === 41 || ch2 === 45 || ch2 === 47 || ch2 >= 91 && ch2 <= 93 || ch2 >= 123 && ch2 <= 125;
|
|
16892
|
+
}
|
|
16893
|
+
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
16894
|
+
var ch2 = state.current();
|
|
16895
|
+
if (isClassSetReservedPunctuator(ch2)) {
|
|
16896
|
+
state.lastIntValue = ch2;
|
|
16897
|
+
state.advance();
|
|
16898
|
+
return true;
|
|
16899
|
+
}
|
|
16900
|
+
return false;
|
|
16901
|
+
};
|
|
16902
|
+
function isClassSetReservedPunctuator(ch2) {
|
|
16903
|
+
return ch2 === 33 || ch2 === 35 || ch2 === 37 || ch2 === 38 || ch2 === 44 || ch2 === 45 || ch2 >= 58 && ch2 <= 62 || ch2 === 64 || ch2 === 96 || ch2 === 126;
|
|
16904
|
+
}
|
|
16341
16905
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
16342
16906
|
var ch2 = state.current();
|
|
16343
16907
|
if (isDecimalDigit(ch2) || ch2 === 95) {
|
|
@@ -17180,7 +17744,6 @@ pp.readEscapedChar = function(inTemplate) {
|
|
|
17180
17744
|
codePos,
|
|
17181
17745
|
"Invalid escape sequence in template string"
|
|
17182
17746
|
);
|
|
17183
|
-
return null;
|
|
17184
17747
|
}
|
|
17185
17748
|
default:
|
|
17186
17749
|
if (ch2 >= 48 && ch2 <= 55) {
|
|
@@ -17251,7 +17814,7 @@ pp.readWord = function() {
|
|
|
17251
17814
|
}
|
|
17252
17815
|
return this.finishToken(type, word);
|
|
17253
17816
|
};
|
|
17254
|
-
var version = "8.
|
|
17817
|
+
var version = "8.9.0";
|
|
17255
17818
|
Parser.acorn = {
|
|
17256
17819
|
Parser,
|
|
17257
17820
|
version,
|
|
@@ -44185,14 +44748,14 @@ var ecma10BinaryProperties2 = ecma9BinaryProperties2 + " Extended_Pictographic";
|
|
|
44185
44748
|
var ecma11BinaryProperties2 = ecma10BinaryProperties2;
|
|
44186
44749
|
var ecma12BinaryProperties2 = ecma11BinaryProperties2 + " EBase EComp EMod EPres ExtPict";
|
|
44187
44750
|
var ecma13BinaryProperties2 = ecma12BinaryProperties2;
|
|
44188
|
-
var
|
|
44751
|
+
var ecma14BinaryProperties2 = ecma13BinaryProperties2;
|
|
44189
44752
|
var unicodeBinaryProperties2 = {
|
|
44190
44753
|
9: ecma9BinaryProperties2,
|
|
44191
44754
|
10: ecma10BinaryProperties2,
|
|
44192
44755
|
11: ecma11BinaryProperties2,
|
|
44193
44756
|
12: ecma12BinaryProperties2,
|
|
44194
44757
|
13: ecma13BinaryProperties2,
|
|
44195
|
-
14:
|
|
44758
|
+
14: ecma14BinaryProperties2
|
|
44196
44759
|
};
|
|
44197
44760
|
var unicodeGeneralCategoryValues2 = "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";
|
|
44198
44761
|
var ecma9ScriptValues2 = "Adlam Adlm 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 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";
|
|
@@ -44200,14 +44763,14 @@ var ecma10ScriptValues2 = ecma9ScriptValues2 + " Dogra Dogr Gunjala_Gondi Gong H
|
|
|
44200
44763
|
var ecma11ScriptValues2 = ecma10ScriptValues2 + " Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho";
|
|
44201
44764
|
var ecma12ScriptValues2 = ecma11ScriptValues2 + " Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi";
|
|
44202
44765
|
var ecma13ScriptValues2 = ecma12ScriptValues2 + " Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith";
|
|
44203
|
-
var
|
|
44766
|
+
var ecma14ScriptValues2 = ecma13ScriptValues2 + " Kawi Nag_Mundari Nagm";
|
|
44204
44767
|
var unicodeScriptValues2 = {
|
|
44205
44768
|
9: ecma9ScriptValues2,
|
|
44206
44769
|
10: ecma10ScriptValues2,
|
|
44207
44770
|
11: ecma11ScriptValues2,
|
|
44208
44771
|
12: ecma12ScriptValues2,
|
|
44209
44772
|
13: ecma13ScriptValues2,
|
|
44210
|
-
14:
|
|
44773
|
+
14: ecma14ScriptValues2
|
|
44211
44774
|
};
|
|
44212
44775
|
var data2 = {};
|
|
44213
44776
|
function buildUnicodeData2(ecmaVersion) {
|