@putout/babel 2.3.0 → 2.5.0
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/bundle/index.d.ts +7 -7
- package/bundle/index.js +906 -1711
- package/package.json +10 -10
package/bundle/index.js
CHANGED
|
@@ -123,45 +123,6 @@ function _non_iterable_rest() {
|
|
|
123
123
|
function _non_iterable_spread() {
|
|
124
124
|
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
125
125
|
}
|
|
126
|
-
function _object_spread(target) {
|
|
127
|
-
for(var i = 1; i < arguments.length; i++){
|
|
128
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
129
|
-
var ownKeys = Object.keys(source);
|
|
130
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
131
|
-
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
132
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
133
|
-
}));
|
|
134
|
-
}
|
|
135
|
-
ownKeys.forEach(function(key) {
|
|
136
|
-
_define_property(target, key, source[key]);
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
return target;
|
|
140
|
-
}
|
|
141
|
-
function ownKeys(object, enumerableOnly) {
|
|
142
|
-
var keys = Object.keys(object);
|
|
143
|
-
if (Object.getOwnPropertySymbols) {
|
|
144
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
145
|
-
if (enumerableOnly) {
|
|
146
|
-
symbols = symbols.filter(function(sym) {
|
|
147
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
keys.push.apply(keys, symbols);
|
|
151
|
-
}
|
|
152
|
-
return keys;
|
|
153
|
-
}
|
|
154
|
-
function _object_spread_props(target, source) {
|
|
155
|
-
source = source != null ? source : {};
|
|
156
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
157
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
158
|
-
} else {
|
|
159
|
-
ownKeys(Object(source)).forEach(function(key) {
|
|
160
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
161
|
-
});
|
|
162
|
-
}
|
|
163
|
-
return target;
|
|
164
|
-
}
|
|
165
126
|
function _possible_constructor_return(self, call) {
|
|
166
127
|
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
167
128
|
return call;
|
|
@@ -402,7 +363,7 @@ var __export = function(target, all) {
|
|
|
402
363
|
});
|
|
403
364
|
};
|
|
404
365
|
var __copyProps = function(to, from, except, desc) {
|
|
405
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
366
|
+
if (from && (typeof from === "undefined" ? "undefined" : _type_of(from)) === "object" || typeof from === "function") {
|
|
406
367
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
407
368
|
try {
|
|
408
369
|
var _loop = function() {
|
|
@@ -448,8 +409,7 @@ var __toCommonJS = function(mod) {
|
|
|
448
409
|
}), mod);
|
|
449
410
|
};
|
|
450
411
|
var __publicField = function(obj, key, value1) {
|
|
451
|
-
__defNormalProp(obj, (typeof key === "undefined" ? "undefined" : _type_of(key)) !== "symbol" ? key + "" : key, value1);
|
|
452
|
-
return value1;
|
|
412
|
+
return __defNormalProp(obj, (typeof key === "undefined" ? "undefined" : _type_of(key)) !== "symbol" ? key + "" : key, value1);
|
|
453
413
|
};
|
|
454
414
|
// node_modules/to-fast-properties/index.js
|
|
455
415
|
var require_to_fast_properties = __commonJS({
|
|
@@ -1293,6 +1253,68 @@ var require_js_tokens = __commonJS({
|
|
|
1293
1253
|
};
|
|
1294
1254
|
}
|
|
1295
1255
|
});
|
|
1256
|
+
// node_modules/picocolors/picocolors.js
|
|
1257
|
+
var require_picocolors = __commonJS({
|
|
1258
|
+
"node_modules/picocolors/picocolors.js": function(exports2, module2) {
|
|
1259
|
+
var argv = process.argv || [];
|
|
1260
|
+
var env = process.env;
|
|
1261
|
+
var isColorSupported = !("NO_COLOR" in env || argv.includes("--no-color")) && ("FORCE_COLOR" in env || argv.includes("--color") || process.platform === "win32" || require != null && require("tty").isatty(1) && env.TERM !== "dumb" || "CI" in env);
|
|
1262
|
+
var formatter = function(open, close) {
|
|
1263
|
+
var replace = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : open;
|
|
1264
|
+
return function(input) {
|
|
1265
|
+
var string = "" + input;
|
|
1266
|
+
var index3 = string.indexOf(close, open.length);
|
|
1267
|
+
return ~index3 ? open + replaceClose(string, close, replace, index3) + close : open + string + close;
|
|
1268
|
+
};
|
|
1269
|
+
};
|
|
1270
|
+
var replaceClose = function(string, close, replace, index3) {
|
|
1271
|
+
var result = "";
|
|
1272
|
+
var cursor = 0;
|
|
1273
|
+
do {
|
|
1274
|
+
result += string.substring(cursor, index3) + replace;
|
|
1275
|
+
cursor = index3 + close.length;
|
|
1276
|
+
index3 = string.indexOf(close, cursor);
|
|
1277
|
+
}while (~index3);
|
|
1278
|
+
return result + string.substring(cursor);
|
|
1279
|
+
};
|
|
1280
|
+
var createColors3 = function() {
|
|
1281
|
+
var enabled = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : isColorSupported;
|
|
1282
|
+
var init = enabled ? formatter : function() {
|
|
1283
|
+
return String;
|
|
1284
|
+
};
|
|
1285
|
+
return {
|
|
1286
|
+
isColorSupported: enabled,
|
|
1287
|
+
reset: init("\x1B[0m", "\x1B[0m"),
|
|
1288
|
+
bold: init("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
1289
|
+
dim: init("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
1290
|
+
italic: init("\x1B[3m", "\x1B[23m"),
|
|
1291
|
+
underline: init("\x1B[4m", "\x1B[24m"),
|
|
1292
|
+
inverse: init("\x1B[7m", "\x1B[27m"),
|
|
1293
|
+
hidden: init("\x1B[8m", "\x1B[28m"),
|
|
1294
|
+
strikethrough: init("\x1B[9m", "\x1B[29m"),
|
|
1295
|
+
black: init("\x1B[30m", "\x1B[39m"),
|
|
1296
|
+
red: init("\x1B[31m", "\x1B[39m"),
|
|
1297
|
+
green: init("\x1B[32m", "\x1B[39m"),
|
|
1298
|
+
yellow: init("\x1B[33m", "\x1B[39m"),
|
|
1299
|
+
blue: init("\x1B[34m", "\x1B[39m"),
|
|
1300
|
+
magenta: init("\x1B[35m", "\x1B[39m"),
|
|
1301
|
+
cyan: init("\x1B[36m", "\x1B[39m"),
|
|
1302
|
+
white: init("\x1B[37m", "\x1B[39m"),
|
|
1303
|
+
gray: init("\x1B[90m", "\x1B[39m"),
|
|
1304
|
+
bgBlack: init("\x1B[40m", "\x1B[49m"),
|
|
1305
|
+
bgRed: init("\x1B[41m", "\x1B[49m"),
|
|
1306
|
+
bgGreen: init("\x1B[42m", "\x1B[49m"),
|
|
1307
|
+
bgYellow: init("\x1B[43m", "\x1B[49m"),
|
|
1308
|
+
bgBlue: init("\x1B[44m", "\x1B[49m"),
|
|
1309
|
+
bgMagenta: init("\x1B[45m", "\x1B[49m"),
|
|
1310
|
+
bgCyan: init("\x1B[46m", "\x1B[49m"),
|
|
1311
|
+
bgWhite: init("\x1B[47m", "\x1B[49m")
|
|
1312
|
+
};
|
|
1313
|
+
};
|
|
1314
|
+
module2.exports = createColors3();
|
|
1315
|
+
module2.exports.createColors = createColors3;
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1296
1318
|
// node_modules/jsesc/jsesc.js
|
|
1297
1319
|
var require_jsesc = __commonJS({
|
|
1298
1320
|
"node_modules/jsesc/jsesc.js": function(exports2, module2) {
|
|
@@ -1666,7 +1688,7 @@ var require_ms = __commonJS({
|
|
|
1666
1688
|
// node_modules/debug/src/common.js
|
|
1667
1689
|
var require_common = __commonJS({
|
|
1668
1690
|
"node_modules/debug/src/common.js": function(exports2, module2) {
|
|
1669
|
-
function setup2(
|
|
1691
|
+
function setup2(env) {
|
|
1670
1692
|
createDebug.debug = createDebug;
|
|
1671
1693
|
createDebug.default = createDebug;
|
|
1672
1694
|
createDebug.coerce = coerce;
|
|
@@ -1675,8 +1697,8 @@ var require_common = __commonJS({
|
|
|
1675
1697
|
createDebug.enabled = enabled;
|
|
1676
1698
|
createDebug.humanize = require_ms();
|
|
1677
1699
|
createDebug.destroy = destroy;
|
|
1678
|
-
Object.keys(
|
|
1679
|
-
createDebug[key] =
|
|
1700
|
+
Object.keys(env).forEach(function(key) {
|
|
1701
|
+
createDebug[key] = env[key];
|
|
1680
1702
|
});
|
|
1681
1703
|
createDebug.names = [];
|
|
1682
1704
|
createDebug.skips = [];
|
|
@@ -2008,26 +2030,26 @@ var require_has_flag = __commonJS({
|
|
|
2008
2030
|
var require_supports_color = __commonJS({
|
|
2009
2031
|
"node_modules/supports-color/index.js": function(exports2, module2) {
|
|
2010
2032
|
"use strict";
|
|
2011
|
-
var
|
|
2012
|
-
var
|
|
2013
|
-
var
|
|
2014
|
-
var
|
|
2033
|
+
var os = require("os");
|
|
2034
|
+
var tty = require("tty");
|
|
2035
|
+
var hasFlag = require_has_flag();
|
|
2036
|
+
var env = process.env;
|
|
2015
2037
|
var forceColor;
|
|
2016
|
-
if (
|
|
2038
|
+
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
2017
2039
|
forceColor = 0;
|
|
2018
|
-
} else if (
|
|
2040
|
+
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
2019
2041
|
forceColor = 1;
|
|
2020
2042
|
}
|
|
2021
|
-
if ("FORCE_COLOR" in
|
|
2022
|
-
if (
|
|
2043
|
+
if ("FORCE_COLOR" in env) {
|
|
2044
|
+
if (env.FORCE_COLOR === "true") {
|
|
2023
2045
|
forceColor = 1;
|
|
2024
|
-
} else if (
|
|
2046
|
+
} else if (env.FORCE_COLOR === "false") {
|
|
2025
2047
|
forceColor = 0;
|
|
2026
2048
|
} else {
|
|
2027
|
-
forceColor =
|
|
2049
|
+
forceColor = env.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env.FORCE_COLOR, 10), 3);
|
|
2028
2050
|
}
|
|
2029
2051
|
}
|
|
2030
|
-
function
|
|
2052
|
+
function translateLevel(level) {
|
|
2031
2053
|
if (level === 0) {
|
|
2032
2054
|
return false;
|
|
2033
2055
|
}
|
|
@@ -2038,31 +2060,31 @@ var require_supports_color = __commonJS({
|
|
|
2038
2060
|
has16m: level >= 3
|
|
2039
2061
|
};
|
|
2040
2062
|
}
|
|
2041
|
-
function
|
|
2063
|
+
function supportsColor(haveStream, streamIsTTY) {
|
|
2042
2064
|
if (forceColor === 0) {
|
|
2043
2065
|
return 0;
|
|
2044
2066
|
}
|
|
2045
|
-
if (
|
|
2067
|
+
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
2046
2068
|
return 3;
|
|
2047
2069
|
}
|
|
2048
|
-
if (
|
|
2070
|
+
if (hasFlag("color=256")) {
|
|
2049
2071
|
return 2;
|
|
2050
2072
|
}
|
|
2051
2073
|
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
2052
2074
|
return 0;
|
|
2053
2075
|
}
|
|
2054
2076
|
var min = forceColor || 0;
|
|
2055
|
-
if (
|
|
2077
|
+
if (env.TERM === "dumb") {
|
|
2056
2078
|
return min;
|
|
2057
2079
|
}
|
|
2058
2080
|
if (process.platform === "win32") {
|
|
2059
|
-
var osRelease =
|
|
2081
|
+
var osRelease = os.release().split(".");
|
|
2060
2082
|
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
2061
2083
|
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
2062
2084
|
}
|
|
2063
2085
|
return 1;
|
|
2064
2086
|
}
|
|
2065
|
-
if ("CI" in
|
|
2087
|
+
if ("CI" in env) {
|
|
2066
2088
|
if ([
|
|
2067
2089
|
"TRAVIS",
|
|
2068
2090
|
"CIRCLECI",
|
|
@@ -2071,53 +2093,53 @@ var require_supports_color = __commonJS({
|
|
|
2071
2093
|
"GITHUB_ACTIONS",
|
|
2072
2094
|
"BUILDKITE"
|
|
2073
2095
|
].some(function(sign) {
|
|
2074
|
-
return sign in
|
|
2075
|
-
}) ||
|
|
2096
|
+
return sign in env;
|
|
2097
|
+
}) || env.CI_NAME === "codeship") {
|
|
2076
2098
|
return 1;
|
|
2077
2099
|
}
|
|
2078
2100
|
return min;
|
|
2079
2101
|
}
|
|
2080
|
-
if ("TEAMCITY_VERSION" in
|
|
2081
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(
|
|
2102
|
+
if ("TEAMCITY_VERSION" in env) {
|
|
2103
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
2082
2104
|
}
|
|
2083
|
-
if (
|
|
2105
|
+
if (env.COLORTERM === "truecolor") {
|
|
2084
2106
|
return 3;
|
|
2085
2107
|
}
|
|
2086
|
-
if ("TERM_PROGRAM" in
|
|
2087
|
-
var version = parseInt((
|
|
2088
|
-
switch(
|
|
2108
|
+
if ("TERM_PROGRAM" in env) {
|
|
2109
|
+
var version = parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
2110
|
+
switch(env.TERM_PROGRAM){
|
|
2089
2111
|
case "iTerm.app":
|
|
2090
2112
|
return version >= 3 ? 3 : 2;
|
|
2091
2113
|
case "Apple_Terminal":
|
|
2092
2114
|
return 2;
|
|
2093
2115
|
}
|
|
2094
2116
|
}
|
|
2095
|
-
if (/-256(color)?$/i.test(
|
|
2117
|
+
if (/-256(color)?$/i.test(env.TERM)) {
|
|
2096
2118
|
return 2;
|
|
2097
2119
|
}
|
|
2098
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(
|
|
2120
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
2099
2121
|
return 1;
|
|
2100
2122
|
}
|
|
2101
|
-
if ("COLORTERM" in
|
|
2123
|
+
if ("COLORTERM" in env) {
|
|
2102
2124
|
return 1;
|
|
2103
2125
|
}
|
|
2104
2126
|
return min;
|
|
2105
2127
|
}
|
|
2106
2128
|
function getSupportLevel(stream) {
|
|
2107
|
-
var level =
|
|
2108
|
-
return
|
|
2129
|
+
var level = supportsColor(stream, stream && stream.isTTY);
|
|
2130
|
+
return translateLevel(level);
|
|
2109
2131
|
}
|
|
2110
2132
|
module2.exports = {
|
|
2111
2133
|
supportsColor: getSupportLevel,
|
|
2112
|
-
stdout:
|
|
2113
|
-
stderr:
|
|
2134
|
+
stdout: translateLevel(supportsColor(true, tty.isatty(1))),
|
|
2135
|
+
stderr: translateLevel(supportsColor(true, tty.isatty(2)))
|
|
2114
2136
|
};
|
|
2115
2137
|
}
|
|
2116
2138
|
});
|
|
2117
2139
|
// node_modules/debug/src/node.js
|
|
2118
2140
|
var require_node = __commonJS({
|
|
2119
2141
|
"node_modules/debug/src/node.js": function(exports2, module2) {
|
|
2120
|
-
var
|
|
2142
|
+
var tty = require("tty");
|
|
2121
2143
|
var util = require("util");
|
|
2122
2144
|
exports2.init = init;
|
|
2123
2145
|
exports2.log = log;
|
|
@@ -2135,8 +2157,8 @@ var require_node = __commonJS({
|
|
|
2135
2157
|
1
|
|
2136
2158
|
];
|
|
2137
2159
|
try {
|
|
2138
|
-
var
|
|
2139
|
-
if (
|
|
2160
|
+
var supportsColor = require_supports_color();
|
|
2161
|
+
if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) {
|
|
2140
2162
|
exports2.colors = [
|
|
2141
2163
|
20,
|
|
2142
2164
|
21,
|
|
@@ -2237,16 +2259,16 @@ var require_node = __commonJS({
|
|
|
2237
2259
|
return obj;
|
|
2238
2260
|
}, {});
|
|
2239
2261
|
function useColors() {
|
|
2240
|
-
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) :
|
|
2262
|
+
return "colors" in exports2.inspectOpts ? Boolean(exports2.inspectOpts.colors) : tty.isatty(process.stderr.fd);
|
|
2241
2263
|
}
|
|
2242
2264
|
function formatArgs(args) {
|
|
2243
2265
|
var _this = this, name = _this.namespace, useColors2 = _this.useColors;
|
|
2244
2266
|
if (useColors2) {
|
|
2245
2267
|
var c = this.color;
|
|
2246
|
-
var colorCode = "\
|
|
2268
|
+
var colorCode = "\x1B[3" + (c < 8 ? c : "8;5;" + c);
|
|
2247
2269
|
var prefix2 = " ".concat(colorCode, ";1m").concat(name, " \x1b[0m");
|
|
2248
2270
|
args[0] = prefix2 + args[0].split("\n").join("\n" + prefix2);
|
|
2249
|
-
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\
|
|
2271
|
+
args.push(colorCode + "m+" + module2.exports.humanize(this.diff) + "\x1B[0m");
|
|
2250
2272
|
} else {
|
|
2251
2273
|
args[0] = getDate() + name + " " + args[0];
|
|
2252
2274
|
}
|
|
@@ -2262,7 +2284,9 @@ var require_node = __commonJS({
|
|
|
2262
2284
|
args[_key] = arguments[_key];
|
|
2263
2285
|
}
|
|
2264
2286
|
var _util;
|
|
2265
|
-
return process.stderr.write((_util = util).
|
|
2287
|
+
return process.stderr.write((_util = util).formatWithOptions.apply(_util, [
|
|
2288
|
+
exports2.inspectOpts
|
|
2289
|
+
].concat(_to_consumable_array(args))) + "\n");
|
|
2266
2290
|
}
|
|
2267
2291
|
function save(namespaces) {
|
|
2268
2292
|
if (namespaces) {
|
|
@@ -8355,8 +8379,8 @@ __export(lib_exports, {
|
|
|
8355
8379
|
});
|
|
8356
8380
|
var import_to_fast_properties = __toESM(require_to_fast_properties(), 1);
|
|
8357
8381
|
// node_modules/@babel/helper-validator-identifier/lib/index.js
|
|
8358
|
-
var nonASCIIidentifierStartChars = "\
|
|
8359
|
-
var nonASCIIidentifierChars = "
|
|
8382
|
+
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";
|
|
8383
|
+
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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65";
|
|
8360
8384
|
var nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
|
|
8361
8385
|
var nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
|
|
8362
8386
|
nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
|
|
@@ -12612,7 +12636,7 @@ function defineType$5(type) {
|
|
|
12612
12636
|
var key = _step.value;
|
|
12613
12637
|
var field = inherits2.fields[key];
|
|
12614
12638
|
var def = field.default;
|
|
12615
|
-
if (Array.isArray(def) ? def.length > 0 : def && typeof def === "object") {
|
|
12639
|
+
if (Array.isArray(def) ? def.length > 0 : def && (typeof def === "undefined" ? "undefined" : _type_of(def)) === "object") {
|
|
12616
12640
|
throw new Error("field defaults can only be primitives or empty arrays currently");
|
|
12617
12641
|
}
|
|
12618
12642
|
fields[key] = {
|
|
@@ -12928,7 +12952,7 @@ defineType$4("CallExpression", {
|
|
|
12928
12952
|
validate: assertNodeType("Expression", "Super", "V8IntrinsicIdentifier")
|
|
12929
12953
|
},
|
|
12930
12954
|
arguments: {
|
|
12931
|
-
validate: chain(assertValueType("array"), assertEach(assertNodeType("Expression", "SpreadElement", "
|
|
12955
|
+
validate: chain(assertValueType("array"), assertEach(assertNodeType("Expression", "SpreadElement", "ArgumentPlaceholder")))
|
|
12932
12956
|
}
|
|
12933
12957
|
}, !process.env.BABEL_TYPES_8_BREAKING ? {
|
|
12934
12958
|
optional: {
|
|
@@ -14917,7 +14941,7 @@ defineType$4("OptionalCallExpression", {
|
|
|
14917
14941
|
validate: assertNodeType("Expression")
|
|
14918
14942
|
},
|
|
14919
14943
|
arguments: {
|
|
14920
|
-
validate: chain(assertValueType("array"), assertEach(assertNodeType("Expression", "SpreadElement", "
|
|
14944
|
+
validate: chain(assertValueType("array"), assertEach(assertNodeType("Expression", "SpreadElement", "ArgumentPlaceholder")))
|
|
14921
14945
|
},
|
|
14922
14946
|
optional: {
|
|
14923
14947
|
validate: !process.env.BABEL_TYPES_8_BREAKING ? assertValueType("boolean") : chain(assertValueType("boolean"), assertOptionalChainStart())
|
|
@@ -20823,11 +20847,11 @@ function isRegExp(value1) {
|
|
|
20823
20847
|
return objectToString(value1) === "[object RegExp]";
|
|
20824
20848
|
}
|
|
20825
20849
|
function isPlainObject(value1) {
|
|
20826
|
-
if (typeof value1 !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
|
|
20850
|
+
if ((typeof value1 === "undefined" ? "undefined" : _type_of(value1)) !== "object" || value1 === null || Object.prototype.toString.call(value1) !== "[object Object]") {
|
|
20827
20851
|
return false;
|
|
20828
20852
|
}
|
|
20829
|
-
var
|
|
20830
|
-
return
|
|
20853
|
+
var proto = Object.getPrototypeOf(value1);
|
|
20854
|
+
return proto === null || Object.getPrototypeOf(proto) === null;
|
|
20831
20855
|
}
|
|
20832
20856
|
function valueToNode(value1) {
|
|
20833
20857
|
if (value1 === void 0) {
|
|
@@ -21245,7 +21269,7 @@ function isImmutable(node) {
|
|
|
21245
21269
|
return false;
|
|
21246
21270
|
}
|
|
21247
21271
|
function isNodesEquivalent(a, b) {
|
|
21248
|
-
if (typeof a !== "object" || typeof b !== "object" || a == null || b == null) {
|
|
21272
|
+
if ((typeof a === "undefined" ? "undefined" : _type_of(a)) !== "object" || (typeof b === "undefined" ? "undefined" : _type_of(b)) !== "object" || a == null || b == null) {
|
|
21249
21273
|
return a === b;
|
|
21250
21274
|
}
|
|
21251
21275
|
if (a.type !== b.type) {
|
|
@@ -21281,7 +21305,7 @@ function isNodesEquivalent(a, b) {
|
|
|
21281
21305
|
}
|
|
21282
21306
|
continue;
|
|
21283
21307
|
}
|
|
21284
|
-
if (typeof val_a === "object" && !(visitorKeys === null || visitorKeys === void 0 ? void 0 : visitorKeys.includes(field))) {
|
|
21308
|
+
if ((typeof val_a === "undefined" ? "undefined" : _type_of(val_a)) === "object" && !(visitorKeys === null || visitorKeys === void 0 ? void 0 : visitorKeys.includes(field))) {
|
|
21285
21309
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
21286
21310
|
try {
|
|
21287
21311
|
for(var _iterator1 = Object.keys(val_a)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
@@ -21540,9 +21564,8 @@ var NodeDescriptions = {
|
|
|
21540
21564
|
VariableDeclarator: "variable declaration",
|
|
21541
21565
|
YieldExpression: "yield expression"
|
|
21542
21566
|
};
|
|
21543
|
-
var toNodeDescription = function(
|
|
21544
|
-
|
|
21545
|
-
return type === "UpdateExpression" ? NodeDescriptions.UpdateExpression[String(prefix2)] : NodeDescriptions[type];
|
|
21567
|
+
var toNodeDescription = function(node) {
|
|
21568
|
+
return node.type === "UpdateExpression" ? NodeDescriptions.UpdateExpression["".concat(node.prefix)] : NodeDescriptions[node.type];
|
|
21546
21569
|
};
|
|
21547
21570
|
var StandardErrors = {
|
|
21548
21571
|
AccessorIsGenerator: function(param) {
|
|
@@ -21784,6 +21807,7 @@ var StandardErrors = {
|
|
|
21784
21807
|
UnterminatedRegExp: "Unterminated regular expression.",
|
|
21785
21808
|
UnterminatedString: "Unterminated string constant.",
|
|
21786
21809
|
UnterminatedTemplate: "Unterminated template.",
|
|
21810
|
+
UsingDeclarationExport: "Using declaration cannot be exported.",
|
|
21787
21811
|
UsingDeclarationHasBindingPattern: "Using declaration cannot have destructuring patterns.",
|
|
21788
21812
|
VarRedeclaration: function(param) {
|
|
21789
21813
|
var identifierName = param.identifierName;
|
|
@@ -22167,6 +22191,13 @@ var estree = function(superClass) {
|
|
|
22167
22191
|
return this.finishNode(node, "MethodDefinition");
|
|
22168
22192
|
}
|
|
22169
22193
|
},
|
|
22194
|
+
{
|
|
22195
|
+
key: "nameIsConstructor",
|
|
22196
|
+
value: function nameIsConstructor(key) {
|
|
22197
|
+
if (key.type === "Literal") return key.value === "constructor";
|
|
22198
|
+
return _get(_get_prototype_of(ESTreeParserMixin.prototype), "nameIsConstructor", this).call(this, key);
|
|
22199
|
+
}
|
|
22200
|
+
},
|
|
22170
22201
|
{
|
|
22171
22202
|
key: "parseClassProperty",
|
|
22172
22203
|
value: function parseClassProperty() {
|
|
@@ -22254,9 +22285,9 @@ var estree = function(superClass) {
|
|
|
22254
22285
|
{
|
|
22255
22286
|
key: "toAssignableObjectExpressionProp",
|
|
22256
22287
|
value: function toAssignableObjectExpressionProp(prop, isLast, isLHS) {
|
|
22257
|
-
if (prop.kind === "get" || prop.kind === "set") {
|
|
22288
|
+
if (prop.type === "Property" && (prop.kind === "get" || prop.kind === "set")) {
|
|
22258
22289
|
this.raise(Errors.PatternHasAccessor, prop.key);
|
|
22259
|
-
} else if (prop.method) {
|
|
22290
|
+
} else if (prop.type === "Property" && prop.method) {
|
|
22260
22291
|
this.raise(Errors.PatternHasMethod, prop.key);
|
|
22261
22292
|
} else {
|
|
22262
22293
|
_get(_get_prototype_of(ESTreeParserMixin.prototype), "toAssignableObjectExpressionProp", this).call(this, prop, isLast, isLHS);
|
|
@@ -22365,7 +22396,7 @@ var estree = function(superClass) {
|
|
|
22365
22396
|
{
|
|
22366
22397
|
key: "isObjectMethod",
|
|
22367
22398
|
value: function isObjectMethod(node) {
|
|
22368
|
-
return node.method || node.kind === "get" || node.kind === "set";
|
|
22399
|
+
return node.type === "Property" && (node.method || node.kind === "get" || node.kind === "set");
|
|
22369
22400
|
}
|
|
22370
22401
|
},
|
|
22371
22402
|
{
|
|
@@ -22946,8 +22977,8 @@ function tokenIsTemplate(token) {
|
|
|
22946
22977
|
function getExportedToken(token) {
|
|
22947
22978
|
return tokenTypes[token];
|
|
22948
22979
|
}
|
|
22949
|
-
var nonASCIIidentifierStartChars2 = "\
|
|
22950
|
-
var nonASCIIidentifierChars2 = "
|
|
22980
|
+
var nonASCIIidentifierStartChars2 = "\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";
|
|
22981
|
+
var nonASCIIidentifierChars2 = "\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\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\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\uFF65";
|
|
22951
22982
|
var nonASCIIidentifierStart2 = new RegExp("[" + nonASCIIidentifierStartChars2 + "]");
|
|
22952
22983
|
var nonASCIIidentifier2 = new RegExp("[" + nonASCIIidentifierStartChars2 + nonASCIIidentifierChars2 + "]");
|
|
22953
22984
|
nonASCIIidentifierStartChars2 = nonASCIIidentifierChars2 = null;
|
|
@@ -24349,7 +24380,9 @@ var CommentsParser = /*#__PURE__*/ function(BaseParser) {
|
|
|
24349
24380
|
value: function addComment(comment) {
|
|
24350
24381
|
if (this.filename) comment.loc.filename = this.filename;
|
|
24351
24382
|
var commentsLen = this.state.commentsLen;
|
|
24352
|
-
if (this.comments.length
|
|
24383
|
+
if (this.comments.length !== commentsLen) {
|
|
24384
|
+
this.comments.length = commentsLen;
|
|
24385
|
+
}
|
|
24353
24386
|
this.comments.push(comment);
|
|
24354
24387
|
this.state.commentsLen++;
|
|
24355
24388
|
}
|
|
@@ -24578,12 +24611,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24578
24611
|
get: function get() {
|
|
24579
24612
|
return (this.flags & 1) > 0;
|
|
24580
24613
|
},
|
|
24581
|
-
set: function set(
|
|
24582
|
-
if (
|
|
24583
|
-
|
|
24584
|
-
} else {
|
|
24585
|
-
this.flags &= ~1;
|
|
24586
|
-
}
|
|
24614
|
+
set: function set(v) {
|
|
24615
|
+
if (v) this.flags |= 1;
|
|
24616
|
+
else this.flags &= -2;
|
|
24587
24617
|
}
|
|
24588
24618
|
},
|
|
24589
24619
|
{
|
|
@@ -24601,12 +24631,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24601
24631
|
get: function get() {
|
|
24602
24632
|
return (this.flags & 2) > 0;
|
|
24603
24633
|
},
|
|
24604
|
-
set: function set(
|
|
24605
|
-
if (
|
|
24606
|
-
|
|
24607
|
-
} else {
|
|
24608
|
-
this.flags &= ~2;
|
|
24609
|
-
}
|
|
24634
|
+
set: function set(v) {
|
|
24635
|
+
if (v) this.flags |= 2;
|
|
24636
|
+
else this.flags &= -3;
|
|
24610
24637
|
}
|
|
24611
24638
|
},
|
|
24612
24639
|
{
|
|
@@ -24614,12 +24641,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24614
24641
|
get: function get() {
|
|
24615
24642
|
return (this.flags & 4) > 0;
|
|
24616
24643
|
},
|
|
24617
|
-
set: function set(
|
|
24618
|
-
if (
|
|
24619
|
-
|
|
24620
|
-
} else {
|
|
24621
|
-
this.flags &= ~4;
|
|
24622
|
-
}
|
|
24644
|
+
set: function set(v) {
|
|
24645
|
+
if (v) this.flags |= 4;
|
|
24646
|
+
else this.flags &= -5;
|
|
24623
24647
|
}
|
|
24624
24648
|
},
|
|
24625
24649
|
{
|
|
@@ -24627,12 +24651,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24627
24651
|
get: function get() {
|
|
24628
24652
|
return (this.flags & 8) > 0;
|
|
24629
24653
|
},
|
|
24630
|
-
set: function set(
|
|
24631
|
-
if (
|
|
24632
|
-
|
|
24633
|
-
} else {
|
|
24634
|
-
this.flags &= ~8;
|
|
24635
|
-
}
|
|
24654
|
+
set: function set(v) {
|
|
24655
|
+
if (v) this.flags |= 8;
|
|
24656
|
+
else this.flags &= -9;
|
|
24636
24657
|
}
|
|
24637
24658
|
},
|
|
24638
24659
|
{
|
|
@@ -24640,12 +24661,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24640
24661
|
get: function get() {
|
|
24641
24662
|
return (this.flags & 16) > 0;
|
|
24642
24663
|
},
|
|
24643
|
-
set: function set(
|
|
24644
|
-
if (
|
|
24645
|
-
|
|
24646
|
-
} else {
|
|
24647
|
-
this.flags &= ~16;
|
|
24648
|
-
}
|
|
24664
|
+
set: function set(v) {
|
|
24665
|
+
if (v) this.flags |= 16;
|
|
24666
|
+
else this.flags &= -17;
|
|
24649
24667
|
}
|
|
24650
24668
|
},
|
|
24651
24669
|
{
|
|
@@ -24653,12 +24671,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24653
24671
|
get: function get() {
|
|
24654
24672
|
return (this.flags & 32) > 0;
|
|
24655
24673
|
},
|
|
24656
|
-
set: function set(
|
|
24657
|
-
if (
|
|
24658
|
-
|
|
24659
|
-
} else {
|
|
24660
|
-
this.flags &= ~32;
|
|
24661
|
-
}
|
|
24674
|
+
set: function set(v) {
|
|
24675
|
+
if (v) this.flags |= 32;
|
|
24676
|
+
else this.flags &= -33;
|
|
24662
24677
|
}
|
|
24663
24678
|
},
|
|
24664
24679
|
{
|
|
@@ -24666,12 +24681,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24666
24681
|
get: function get() {
|
|
24667
24682
|
return (this.flags & 64) > 0;
|
|
24668
24683
|
},
|
|
24669
|
-
set: function set(
|
|
24670
|
-
if (
|
|
24671
|
-
|
|
24672
|
-
} else {
|
|
24673
|
-
this.flags &= ~64;
|
|
24674
|
-
}
|
|
24684
|
+
set: function set(v) {
|
|
24685
|
+
if (v) this.flags |= 64;
|
|
24686
|
+
else this.flags &= -65;
|
|
24675
24687
|
}
|
|
24676
24688
|
},
|
|
24677
24689
|
{
|
|
@@ -24679,12 +24691,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24679
24691
|
get: function get() {
|
|
24680
24692
|
return (this.flags & 128) > 0;
|
|
24681
24693
|
},
|
|
24682
|
-
set: function set(
|
|
24683
|
-
if (
|
|
24684
|
-
|
|
24685
|
-
} else {
|
|
24686
|
-
this.flags &= ~128;
|
|
24687
|
-
}
|
|
24694
|
+
set: function set(v) {
|
|
24695
|
+
if (v) this.flags |= 128;
|
|
24696
|
+
else this.flags &= -129;
|
|
24688
24697
|
}
|
|
24689
24698
|
},
|
|
24690
24699
|
{
|
|
@@ -24692,12 +24701,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24692
24701
|
get: function get() {
|
|
24693
24702
|
return (this.flags & 256) > 0;
|
|
24694
24703
|
},
|
|
24695
|
-
set: function set(
|
|
24696
|
-
if (
|
|
24697
|
-
|
|
24698
|
-
} else {
|
|
24699
|
-
this.flags &= ~256;
|
|
24700
|
-
}
|
|
24704
|
+
set: function set(v) {
|
|
24705
|
+
if (v) this.flags |= 256;
|
|
24706
|
+
else this.flags &= -257;
|
|
24701
24707
|
}
|
|
24702
24708
|
},
|
|
24703
24709
|
{
|
|
@@ -24705,12 +24711,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24705
24711
|
get: function get() {
|
|
24706
24712
|
return (this.flags & 512) > 0;
|
|
24707
24713
|
},
|
|
24708
|
-
set: function set(
|
|
24709
|
-
if (
|
|
24710
|
-
|
|
24711
|
-
} else {
|
|
24712
|
-
this.flags &= ~512;
|
|
24713
|
-
}
|
|
24714
|
+
set: function set(v) {
|
|
24715
|
+
if (v) this.flags |= 512;
|
|
24716
|
+
else this.flags &= -513;
|
|
24714
24717
|
}
|
|
24715
24718
|
},
|
|
24716
24719
|
{
|
|
@@ -24718,12 +24721,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24718
24721
|
get: function get() {
|
|
24719
24722
|
return (this.flags & 1024) > 0;
|
|
24720
24723
|
},
|
|
24721
|
-
set: function set(
|
|
24722
|
-
if (
|
|
24723
|
-
|
|
24724
|
-
} else {
|
|
24725
|
-
this.flags &= ~1024;
|
|
24726
|
-
}
|
|
24724
|
+
set: function set(v) {
|
|
24725
|
+
if (v) this.flags |= 1024;
|
|
24726
|
+
else this.flags &= -1025;
|
|
24727
24727
|
}
|
|
24728
24728
|
},
|
|
24729
24729
|
{
|
|
@@ -24731,12 +24731,9 @@ var State = /*#__PURE__*/ function() {
|
|
|
24731
24731
|
get: function get() {
|
|
24732
24732
|
return (this.flags & 2048) > 0;
|
|
24733
24733
|
},
|
|
24734
|
-
set: function set(
|
|
24735
|
-
if (
|
|
24736
|
-
|
|
24737
|
-
} else {
|
|
24738
|
-
this.flags &= ~2048;
|
|
24739
|
-
}
|
|
24734
|
+
set: function set(v) {
|
|
24735
|
+
if (v) this.flags |= 2048;
|
|
24736
|
+
else this.flags &= -2049;
|
|
24740
24737
|
}
|
|
24741
24738
|
},
|
|
24742
24739
|
{
|
|
@@ -25476,9 +25473,6 @@ var Tokenizer = /*#__PURE__*/ function(CommentsParser) {
|
|
|
25476
25473
|
}
|
|
25477
25474
|
if (next === 123 || next === 91 && this.hasPlugin("recordAndTuple")) {
|
|
25478
25475
|
this.expectPlugin("recordAndTuple");
|
|
25479
|
-
if (this.getPluginOption("recordAndTuple", "syntaxType") === "bar") {
|
|
25480
|
-
throw this.raise(next === 123 ? Errors.RecordExpressionHashIncorrectStartSyntaxType : Errors.TupleExpressionHashIncorrectStartSyntaxType, this.state.curPosition());
|
|
25481
|
-
}
|
|
25482
25476
|
this.state.pos += 2;
|
|
25483
25477
|
if (next === 123) {
|
|
25484
25478
|
this.finishToken(7);
|
|
@@ -25575,22 +25569,6 @@ var Tokenizer = /*#__PURE__*/ function(CommentsParser) {
|
|
|
25575
25569
|
this.finishOp(39, 2);
|
|
25576
25570
|
return;
|
|
25577
25571
|
}
|
|
25578
|
-
if (this.hasPlugin("recordAndTuple") && next === 125) {
|
|
25579
|
-
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
|
|
25580
|
-
throw this.raise(Errors.RecordExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
|
|
25581
|
-
}
|
|
25582
|
-
this.state.pos += 2;
|
|
25583
|
-
this.finishToken(9);
|
|
25584
|
-
return;
|
|
25585
|
-
}
|
|
25586
|
-
if (this.hasPlugin("recordAndTuple") && next === 93) {
|
|
25587
|
-
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
|
|
25588
|
-
throw this.raise(Errors.TupleExpressionBarIncorrectEndSyntaxType, this.state.curPosition());
|
|
25589
|
-
}
|
|
25590
|
-
this.state.pos += 2;
|
|
25591
|
-
this.finishToken(4);
|
|
25592
|
-
return;
|
|
25593
|
-
}
|
|
25594
25572
|
}
|
|
25595
25573
|
if (next === 61) {
|
|
25596
25574
|
this.finishOp(30, 2);
|
|
@@ -25755,13 +25733,7 @@ var Tokenizer = /*#__PURE__*/ function(CommentsParser) {
|
|
|
25755
25733
|
this.finishToken(12);
|
|
25756
25734
|
return;
|
|
25757
25735
|
case 91:
|
|
25758
|
-
|
|
25759
|
-
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
|
|
25760
|
-
throw this.raise(Errors.TupleExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
|
|
25761
|
-
}
|
|
25762
|
-
this.state.pos += 2;
|
|
25763
|
-
this.finishToken(2);
|
|
25764
|
-
} else {
|
|
25736
|
+
{
|
|
25765
25737
|
++this.state.pos;
|
|
25766
25738
|
this.finishToken(0);
|
|
25767
25739
|
}
|
|
@@ -25771,13 +25743,7 @@ var Tokenizer = /*#__PURE__*/ function(CommentsParser) {
|
|
|
25771
25743
|
this.finishToken(3);
|
|
25772
25744
|
return;
|
|
25773
25745
|
case 123:
|
|
25774
|
-
|
|
25775
|
-
if (this.getPluginOption("recordAndTuple", "syntaxType") !== "bar") {
|
|
25776
|
-
throw this.raise(Errors.RecordExpressionBarIncorrectStartSyntaxType, this.state.curPosition());
|
|
25777
|
-
}
|
|
25778
|
-
this.state.pos += 2;
|
|
25779
|
-
this.finishToken(6);
|
|
25780
|
-
} else {
|
|
25746
|
+
{
|
|
25781
25747
|
++this.state.pos;
|
|
25782
25748
|
this.finishToken(5);
|
|
25783
25749
|
}
|
|
@@ -28158,52 +28124,58 @@ var flow = function(superClass) {
|
|
|
28158
28124
|
this.state.noAnonFunctionType = oldNoAnonFunctionType;
|
|
28159
28125
|
return type;
|
|
28160
28126
|
case 47:
|
|
28161
|
-
|
|
28162
|
-
|
|
28163
|
-
|
|
28164
|
-
|
|
28165
|
-
|
|
28166
|
-
|
|
28167
|
-
|
|
28168
|
-
|
|
28169
|
-
|
|
28170
|
-
|
|
28127
|
+
{
|
|
28128
|
+
var node2 = this.startNode();
|
|
28129
|
+
node2.typeParameters = this.flowParseTypeParameterDeclaration();
|
|
28130
|
+
this.expect(10);
|
|
28131
|
+
tmp = this.flowParseFunctionTypeParams();
|
|
28132
|
+
node2.params = tmp.params;
|
|
28133
|
+
node2.rest = tmp.rest;
|
|
28134
|
+
node2.this = tmp._this;
|
|
28135
|
+
this.expect(11);
|
|
28136
|
+
this.expect(19);
|
|
28137
|
+
node2.returnType = this.flowParseType();
|
|
28138
|
+
return this.finishNode(node2, "FunctionTypeAnnotation");
|
|
28139
|
+
}
|
|
28171
28140
|
case 10:
|
|
28172
|
-
|
|
28173
|
-
|
|
28174
|
-
|
|
28175
|
-
|
|
28176
|
-
|
|
28177
|
-
|
|
28178
|
-
|
|
28141
|
+
{
|
|
28142
|
+
var node21 = this.startNode();
|
|
28143
|
+
this.next();
|
|
28144
|
+
if (!this.match(11) && !this.match(21)) {
|
|
28145
|
+
if (tokenIsIdentifier(this.state.type) || this.match(78)) {
|
|
28146
|
+
var token = this.lookahead().type;
|
|
28147
|
+
isGroupedType = token !== 17 && token !== 14;
|
|
28148
|
+
} else {
|
|
28149
|
+
isGroupedType = true;
|
|
28150
|
+
}
|
|
28179
28151
|
}
|
|
28180
|
-
|
|
28181
|
-
|
|
28182
|
-
|
|
28183
|
-
|
|
28184
|
-
|
|
28185
|
-
|
|
28186
|
-
|
|
28187
|
-
|
|
28152
|
+
if (isGroupedType) {
|
|
28153
|
+
this.state.noAnonFunctionType = false;
|
|
28154
|
+
type = this.flowParseType();
|
|
28155
|
+
this.state.noAnonFunctionType = oldNoAnonFunctionType;
|
|
28156
|
+
if (this.state.noAnonFunctionType || !(this.match(12) || this.match(11) && this.lookahead().type === 19)) {
|
|
28157
|
+
this.expect(11);
|
|
28158
|
+
return type;
|
|
28159
|
+
} else {
|
|
28160
|
+
this.eat(12);
|
|
28161
|
+
}
|
|
28162
|
+
}
|
|
28163
|
+
if (type) {
|
|
28164
|
+
tmp = this.flowParseFunctionTypeParams([
|
|
28165
|
+
this.reinterpretTypeAsFunctionTypeParam(type)
|
|
28166
|
+
]);
|
|
28188
28167
|
} else {
|
|
28189
|
-
this.
|
|
28168
|
+
tmp = this.flowParseFunctionTypeParams();
|
|
28190
28169
|
}
|
|
28170
|
+
node21.params = tmp.params;
|
|
28171
|
+
node21.rest = tmp.rest;
|
|
28172
|
+
node21.this = tmp._this;
|
|
28173
|
+
this.expect(11);
|
|
28174
|
+
this.expect(19);
|
|
28175
|
+
node21.returnType = this.flowParseType();
|
|
28176
|
+
node21.typeParameters = null;
|
|
28177
|
+
return this.finishNode(node21, "FunctionTypeAnnotation");
|
|
28191
28178
|
}
|
|
28192
|
-
if (type) {
|
|
28193
|
-
tmp = this.flowParseFunctionTypeParams([
|
|
28194
|
-
this.reinterpretTypeAsFunctionTypeParam(type)
|
|
28195
|
-
]);
|
|
28196
|
-
} else {
|
|
28197
|
-
tmp = this.flowParseFunctionTypeParams();
|
|
28198
|
-
}
|
|
28199
|
-
node.params = tmp.params;
|
|
28200
|
-
node.rest = tmp.rest;
|
|
28201
|
-
node.this = tmp._this;
|
|
28202
|
-
this.expect(11);
|
|
28203
|
-
this.expect(19);
|
|
28204
|
-
node.returnType = this.flowParseType();
|
|
28205
|
-
node.typeParameters = null;
|
|
28206
|
-
return this.finishNode(node, "FunctionTypeAnnotation");
|
|
28207
28179
|
case 133:
|
|
28208
28180
|
return this.parseLiteral(this.state.value, "StringLiteralTypeAnnotation");
|
|
28209
28181
|
case 85:
|
|
@@ -28590,7 +28562,7 @@ var flow = function(superClass) {
|
|
|
28590
28562
|
var arrows = [];
|
|
28591
28563
|
while(stack.length !== 0){
|
|
28592
28564
|
var node2 = stack.pop();
|
|
28593
|
-
if (node2.type === "ArrowFunctionExpression") {
|
|
28565
|
+
if (node2.type === "ArrowFunctionExpression" && node2.body.type !== "BlockStatement") {
|
|
28594
28566
|
if (node2.typeParameters || !node2.returnType) {
|
|
28595
28567
|
this.finishArrowValidation(node2);
|
|
28596
28568
|
} else {
|
|
@@ -28645,18 +28617,18 @@ var flow = function(superClass) {
|
|
|
28645
28617
|
{
|
|
28646
28618
|
key: "parseParenItem",
|
|
28647
28619
|
value: function parseParenItem(node, startLoc) {
|
|
28648
|
-
|
|
28620
|
+
var newNode = _get(_get_prototype_of(FlowParserMixin.prototype), "parseParenItem", this).call(this, node, startLoc);
|
|
28649
28621
|
if (this.eat(17)) {
|
|
28650
|
-
|
|
28622
|
+
newNode.optional = true;
|
|
28651
28623
|
this.resetEndLocation(node);
|
|
28652
28624
|
}
|
|
28653
28625
|
if (this.match(14)) {
|
|
28654
28626
|
var typeCastNode = this.startNodeAt(startLoc);
|
|
28655
|
-
typeCastNode.expression =
|
|
28627
|
+
typeCastNode.expression = newNode;
|
|
28656
28628
|
typeCastNode.typeAnnotation = this.flowParseTypeAnnotation();
|
|
28657
28629
|
return this.finishNode(typeCastNode, "TypeCastExpression");
|
|
28658
28630
|
}
|
|
28659
|
-
return
|
|
28631
|
+
return newNode;
|
|
28660
28632
|
}
|
|
28661
28633
|
},
|
|
28662
28634
|
{
|
|
@@ -29927,254 +29899,254 @@ var entities = {
|
|
|
29927
29899
|
apos: "'",
|
|
29928
29900
|
lt: "<",
|
|
29929
29901
|
gt: ">",
|
|
29930
|
-
nbsp: "\
|
|
29931
|
-
iexcl: "\
|
|
29932
|
-
cent: "\
|
|
29933
|
-
pound: "\
|
|
29934
|
-
curren: "\
|
|
29935
|
-
yen: "\
|
|
29936
|
-
brvbar: "\
|
|
29937
|
-
sect: "\
|
|
29938
|
-
uml: "\
|
|
29939
|
-
copy: "\
|
|
29940
|
-
ordf: "\
|
|
29941
|
-
laquo: "\
|
|
29942
|
-
not: "\
|
|
29943
|
-
shy: "\
|
|
29944
|
-
reg: "\
|
|
29945
|
-
macr: "\
|
|
29946
|
-
deg: "\
|
|
29947
|
-
plusmn: "\
|
|
29948
|
-
sup2: "\
|
|
29949
|
-
sup3: "\
|
|
29950
|
-
acute: "\
|
|
29951
|
-
micro: "\
|
|
29952
|
-
para: "\
|
|
29953
|
-
middot: "\
|
|
29954
|
-
cedil: "\
|
|
29955
|
-
sup1: "\
|
|
29956
|
-
ordm: "\
|
|
29957
|
-
raquo: "\
|
|
29958
|
-
frac14: "\
|
|
29959
|
-
frac12: "\
|
|
29960
|
-
frac34: "\
|
|
29961
|
-
iquest: "\
|
|
29962
|
-
Agrave: "\
|
|
29963
|
-
Aacute: "\
|
|
29964
|
-
Acirc: "\
|
|
29965
|
-
Atilde: "\
|
|
29966
|
-
Auml: "\
|
|
29967
|
-
Aring: "\
|
|
29968
|
-
AElig: "\
|
|
29969
|
-
Ccedil: "\
|
|
29970
|
-
Egrave: "\
|
|
29971
|
-
Eacute: "\
|
|
29972
|
-
Ecirc: "\
|
|
29973
|
-
Euml: "\
|
|
29974
|
-
Igrave: "\
|
|
29975
|
-
Iacute: "\
|
|
29976
|
-
Icirc: "\
|
|
29977
|
-
Iuml: "\
|
|
29978
|
-
ETH: "\
|
|
29979
|
-
Ntilde: "\
|
|
29980
|
-
Ograve: "\
|
|
29981
|
-
Oacute: "\
|
|
29982
|
-
Ocirc: "\
|
|
29983
|
-
Otilde: "\
|
|
29984
|
-
Ouml: "\
|
|
29985
|
-
times: "\
|
|
29986
|
-
Oslash: "\
|
|
29987
|
-
Ugrave: "\
|
|
29988
|
-
Uacute: "\
|
|
29989
|
-
Ucirc: "\
|
|
29990
|
-
Uuml: "\
|
|
29991
|
-
Yacute: "\
|
|
29992
|
-
THORN: "\
|
|
29993
|
-
szlig: "\
|
|
29994
|
-
agrave: "\
|
|
29995
|
-
aacute: "\
|
|
29996
|
-
acirc: "\
|
|
29997
|
-
atilde: "\
|
|
29998
|
-
auml: "\
|
|
29999
|
-
aring: "\
|
|
30000
|
-
aelig: "\
|
|
30001
|
-
ccedil: "\
|
|
30002
|
-
egrave: "\
|
|
30003
|
-
eacute: "\
|
|
30004
|
-
ecirc: "\
|
|
30005
|
-
euml: "\
|
|
30006
|
-
igrave: "\
|
|
30007
|
-
iacute: "\
|
|
30008
|
-
icirc: "\
|
|
30009
|
-
iuml: "\
|
|
30010
|
-
eth: "\
|
|
30011
|
-
ntilde: "\
|
|
30012
|
-
ograve: "\
|
|
30013
|
-
oacute: "\
|
|
30014
|
-
ocirc: "\
|
|
30015
|
-
otilde: "\
|
|
30016
|
-
ouml: "\
|
|
30017
|
-
divide: "\
|
|
30018
|
-
oslash: "\
|
|
30019
|
-
ugrave: "\
|
|
30020
|
-
uacute: "\
|
|
30021
|
-
ucirc: "\
|
|
30022
|
-
uuml: "\
|
|
30023
|
-
yacute: "\
|
|
30024
|
-
thorn: "\
|
|
30025
|
-
yuml: "\
|
|
30026
|
-
OElig: "
|
|
30027
|
-
oelig: "
|
|
30028
|
-
Scaron: "
|
|
30029
|
-
scaron: "
|
|
30030
|
-
Yuml: "
|
|
30031
|
-
fnof: "
|
|
30032
|
-
circ: "
|
|
30033
|
-
tilde: "
|
|
30034
|
-
Alpha: "
|
|
30035
|
-
Beta: "
|
|
30036
|
-
Gamma: "
|
|
30037
|
-
Delta: "
|
|
30038
|
-
Epsilon: "
|
|
30039
|
-
Zeta: "
|
|
30040
|
-
Eta: "
|
|
30041
|
-
Theta: "
|
|
30042
|
-
Iota: "
|
|
30043
|
-
Kappa: "
|
|
30044
|
-
Lambda: "
|
|
30045
|
-
Mu: "
|
|
30046
|
-
Nu: "
|
|
30047
|
-
Xi: "
|
|
30048
|
-
Omicron: "
|
|
30049
|
-
Pi: "
|
|
30050
|
-
Rho: "
|
|
30051
|
-
Sigma: "
|
|
30052
|
-
Tau: "
|
|
30053
|
-
Upsilon: "
|
|
30054
|
-
Phi: "
|
|
30055
|
-
Chi: "
|
|
30056
|
-
Psi: "
|
|
30057
|
-
Omega: "
|
|
30058
|
-
alpha: "
|
|
30059
|
-
beta: "
|
|
30060
|
-
gamma: "
|
|
30061
|
-
delta: "
|
|
30062
|
-
epsilon: "
|
|
30063
|
-
zeta: "
|
|
30064
|
-
eta: "
|
|
30065
|
-
theta: "
|
|
30066
|
-
iota: "
|
|
30067
|
-
kappa: "
|
|
30068
|
-
lambda: "
|
|
30069
|
-
mu: "
|
|
30070
|
-
nu: "
|
|
30071
|
-
xi: "
|
|
30072
|
-
omicron: "
|
|
30073
|
-
pi: "
|
|
30074
|
-
rho: "
|
|
30075
|
-
sigmaf: "
|
|
30076
|
-
sigma: "
|
|
30077
|
-
tau: "
|
|
30078
|
-
upsilon: "
|
|
30079
|
-
phi: "
|
|
30080
|
-
chi: "
|
|
30081
|
-
psi: "
|
|
30082
|
-
omega: "
|
|
30083
|
-
thetasym: "
|
|
30084
|
-
upsih: "
|
|
30085
|
-
piv: "
|
|
30086
|
-
ensp: "
|
|
30087
|
-
emsp: "
|
|
30088
|
-
thinsp: "
|
|
30089
|
-
zwnj: "
|
|
30090
|
-
zwj: "
|
|
30091
|
-
lrm: "
|
|
30092
|
-
rlm: "
|
|
30093
|
-
ndash: "
|
|
30094
|
-
mdash: "
|
|
30095
|
-
lsquo: "
|
|
30096
|
-
rsquo: "
|
|
30097
|
-
sbquo: "
|
|
30098
|
-
ldquo: "
|
|
30099
|
-
rdquo: "
|
|
30100
|
-
bdquo: "
|
|
30101
|
-
dagger: "
|
|
30102
|
-
Dagger: "
|
|
30103
|
-
bull: "
|
|
30104
|
-
hellip: "
|
|
30105
|
-
permil: "
|
|
30106
|
-
prime: "
|
|
30107
|
-
Prime: "
|
|
30108
|
-
lsaquo: "
|
|
30109
|
-
rsaquo: "
|
|
30110
|
-
oline: "
|
|
30111
|
-
frasl: "
|
|
30112
|
-
euro: "
|
|
30113
|
-
image: "
|
|
30114
|
-
weierp: "
|
|
30115
|
-
real: "
|
|
30116
|
-
trade: "
|
|
30117
|
-
alefsym: "
|
|
30118
|
-
larr: "
|
|
30119
|
-
uarr: "
|
|
30120
|
-
rarr: "
|
|
30121
|
-
darr: "
|
|
30122
|
-
harr: "
|
|
30123
|
-
crarr: "
|
|
30124
|
-
lArr: "
|
|
30125
|
-
uArr: "
|
|
30126
|
-
rArr: "
|
|
30127
|
-
dArr: "
|
|
30128
|
-
hArr: "
|
|
30129
|
-
forall: "
|
|
30130
|
-
part: "
|
|
30131
|
-
exist: "
|
|
30132
|
-
empty: "
|
|
30133
|
-
nabla: "
|
|
30134
|
-
isin: "
|
|
30135
|
-
notin: "
|
|
30136
|
-
ni: "
|
|
30137
|
-
prod: "
|
|
30138
|
-
sum: "
|
|
30139
|
-
minus: "
|
|
30140
|
-
lowast: "
|
|
30141
|
-
radic: "
|
|
30142
|
-
prop: "
|
|
30143
|
-
infin: "
|
|
30144
|
-
ang: "
|
|
30145
|
-
and: "
|
|
30146
|
-
or: "
|
|
30147
|
-
cap: "
|
|
30148
|
-
cup: "
|
|
30149
|
-
int: "
|
|
30150
|
-
there4: "
|
|
30151
|
-
sim: "
|
|
30152
|
-
cong: "
|
|
30153
|
-
asymp: "
|
|
30154
|
-
ne: "
|
|
30155
|
-
equiv: "
|
|
30156
|
-
le: "
|
|
30157
|
-
ge: "
|
|
30158
|
-
sub: "
|
|
30159
|
-
sup: "
|
|
30160
|
-
nsub: "
|
|
30161
|
-
sube: "
|
|
30162
|
-
supe: "
|
|
30163
|
-
oplus: "
|
|
30164
|
-
otimes: "
|
|
30165
|
-
perp: "
|
|
30166
|
-
sdot: "
|
|
30167
|
-
lceil: "
|
|
30168
|
-
rceil: "
|
|
30169
|
-
lfloor: "
|
|
30170
|
-
rfloor: "
|
|
30171
|
-
lang: "
|
|
30172
|
-
rang: "
|
|
30173
|
-
loz: "
|
|
30174
|
-
spades: "
|
|
30175
|
-
clubs: "
|
|
30176
|
-
hearts: "
|
|
30177
|
-
diams: "
|
|
29902
|
+
nbsp: "\xA0",
|
|
29903
|
+
iexcl: "\xA1",
|
|
29904
|
+
cent: "\xA2",
|
|
29905
|
+
pound: "\xA3",
|
|
29906
|
+
curren: "\xA4",
|
|
29907
|
+
yen: "\xA5",
|
|
29908
|
+
brvbar: "\xA6",
|
|
29909
|
+
sect: "\xA7",
|
|
29910
|
+
uml: "\xA8",
|
|
29911
|
+
copy: "\xA9",
|
|
29912
|
+
ordf: "\xAA",
|
|
29913
|
+
laquo: "\xAB",
|
|
29914
|
+
not: "\xAC",
|
|
29915
|
+
shy: "\xAD",
|
|
29916
|
+
reg: "\xAE",
|
|
29917
|
+
macr: "\xAF",
|
|
29918
|
+
deg: "\xB0",
|
|
29919
|
+
plusmn: "\xB1",
|
|
29920
|
+
sup2: "\xB2",
|
|
29921
|
+
sup3: "\xB3",
|
|
29922
|
+
acute: "\xB4",
|
|
29923
|
+
micro: "\xB5",
|
|
29924
|
+
para: "\xB6",
|
|
29925
|
+
middot: "\xB7",
|
|
29926
|
+
cedil: "\xB8",
|
|
29927
|
+
sup1: "\xB9",
|
|
29928
|
+
ordm: "\xBA",
|
|
29929
|
+
raquo: "\xBB",
|
|
29930
|
+
frac14: "\xBC",
|
|
29931
|
+
frac12: "\xBD",
|
|
29932
|
+
frac34: "\xBE",
|
|
29933
|
+
iquest: "\xBF",
|
|
29934
|
+
Agrave: "\xC0",
|
|
29935
|
+
Aacute: "\xC1",
|
|
29936
|
+
Acirc: "\xC2",
|
|
29937
|
+
Atilde: "\xC3",
|
|
29938
|
+
Auml: "\xC4",
|
|
29939
|
+
Aring: "\xC5",
|
|
29940
|
+
AElig: "\xC6",
|
|
29941
|
+
Ccedil: "\xC7",
|
|
29942
|
+
Egrave: "\xC8",
|
|
29943
|
+
Eacute: "\xC9",
|
|
29944
|
+
Ecirc: "\xCA",
|
|
29945
|
+
Euml: "\xCB",
|
|
29946
|
+
Igrave: "\xCC",
|
|
29947
|
+
Iacute: "\xCD",
|
|
29948
|
+
Icirc: "\xCE",
|
|
29949
|
+
Iuml: "\xCF",
|
|
29950
|
+
ETH: "\xD0",
|
|
29951
|
+
Ntilde: "\xD1",
|
|
29952
|
+
Ograve: "\xD2",
|
|
29953
|
+
Oacute: "\xD3",
|
|
29954
|
+
Ocirc: "\xD4",
|
|
29955
|
+
Otilde: "\xD5",
|
|
29956
|
+
Ouml: "\xD6",
|
|
29957
|
+
times: "\xD7",
|
|
29958
|
+
Oslash: "\xD8",
|
|
29959
|
+
Ugrave: "\xD9",
|
|
29960
|
+
Uacute: "\xDA",
|
|
29961
|
+
Ucirc: "\xDB",
|
|
29962
|
+
Uuml: "\xDC",
|
|
29963
|
+
Yacute: "\xDD",
|
|
29964
|
+
THORN: "\xDE",
|
|
29965
|
+
szlig: "\xDF",
|
|
29966
|
+
agrave: "\xE0",
|
|
29967
|
+
aacute: "\xE1",
|
|
29968
|
+
acirc: "\xE2",
|
|
29969
|
+
atilde: "\xE3",
|
|
29970
|
+
auml: "\xE4",
|
|
29971
|
+
aring: "\xE5",
|
|
29972
|
+
aelig: "\xE6",
|
|
29973
|
+
ccedil: "\xE7",
|
|
29974
|
+
egrave: "\xE8",
|
|
29975
|
+
eacute: "\xE9",
|
|
29976
|
+
ecirc: "\xEA",
|
|
29977
|
+
euml: "\xEB",
|
|
29978
|
+
igrave: "\xEC",
|
|
29979
|
+
iacute: "\xED",
|
|
29980
|
+
icirc: "\xEE",
|
|
29981
|
+
iuml: "\xEF",
|
|
29982
|
+
eth: "\xF0",
|
|
29983
|
+
ntilde: "\xF1",
|
|
29984
|
+
ograve: "\xF2",
|
|
29985
|
+
oacute: "\xF3",
|
|
29986
|
+
ocirc: "\xF4",
|
|
29987
|
+
otilde: "\xF5",
|
|
29988
|
+
ouml: "\xF6",
|
|
29989
|
+
divide: "\xF7",
|
|
29990
|
+
oslash: "\xF8",
|
|
29991
|
+
ugrave: "\xF9",
|
|
29992
|
+
uacute: "\xFA",
|
|
29993
|
+
ucirc: "\xFB",
|
|
29994
|
+
uuml: "\xFC",
|
|
29995
|
+
yacute: "\xFD",
|
|
29996
|
+
thorn: "\xFE",
|
|
29997
|
+
yuml: "\xFF",
|
|
29998
|
+
OElig: "\u0152",
|
|
29999
|
+
oelig: "\u0153",
|
|
30000
|
+
Scaron: "\u0160",
|
|
30001
|
+
scaron: "\u0161",
|
|
30002
|
+
Yuml: "\u0178",
|
|
30003
|
+
fnof: "\u0192",
|
|
30004
|
+
circ: "\u02C6",
|
|
30005
|
+
tilde: "\u02DC",
|
|
30006
|
+
Alpha: "\u0391",
|
|
30007
|
+
Beta: "\u0392",
|
|
30008
|
+
Gamma: "\u0393",
|
|
30009
|
+
Delta: "\u0394",
|
|
30010
|
+
Epsilon: "\u0395",
|
|
30011
|
+
Zeta: "\u0396",
|
|
30012
|
+
Eta: "\u0397",
|
|
30013
|
+
Theta: "\u0398",
|
|
30014
|
+
Iota: "\u0399",
|
|
30015
|
+
Kappa: "\u039A",
|
|
30016
|
+
Lambda: "\u039B",
|
|
30017
|
+
Mu: "\u039C",
|
|
30018
|
+
Nu: "\u039D",
|
|
30019
|
+
Xi: "\u039E",
|
|
30020
|
+
Omicron: "\u039F",
|
|
30021
|
+
Pi: "\u03A0",
|
|
30022
|
+
Rho: "\u03A1",
|
|
30023
|
+
Sigma: "\u03A3",
|
|
30024
|
+
Tau: "\u03A4",
|
|
30025
|
+
Upsilon: "\u03A5",
|
|
30026
|
+
Phi: "\u03A6",
|
|
30027
|
+
Chi: "\u03A7",
|
|
30028
|
+
Psi: "\u03A8",
|
|
30029
|
+
Omega: "\u03A9",
|
|
30030
|
+
alpha: "\u03B1",
|
|
30031
|
+
beta: "\u03B2",
|
|
30032
|
+
gamma: "\u03B3",
|
|
30033
|
+
delta: "\u03B4",
|
|
30034
|
+
epsilon: "\u03B5",
|
|
30035
|
+
zeta: "\u03B6",
|
|
30036
|
+
eta: "\u03B7",
|
|
30037
|
+
theta: "\u03B8",
|
|
30038
|
+
iota: "\u03B9",
|
|
30039
|
+
kappa: "\u03BA",
|
|
30040
|
+
lambda: "\u03BB",
|
|
30041
|
+
mu: "\u03BC",
|
|
30042
|
+
nu: "\u03BD",
|
|
30043
|
+
xi: "\u03BE",
|
|
30044
|
+
omicron: "\u03BF",
|
|
30045
|
+
pi: "\u03C0",
|
|
30046
|
+
rho: "\u03C1",
|
|
30047
|
+
sigmaf: "\u03C2",
|
|
30048
|
+
sigma: "\u03C3",
|
|
30049
|
+
tau: "\u03C4",
|
|
30050
|
+
upsilon: "\u03C5",
|
|
30051
|
+
phi: "\u03C6",
|
|
30052
|
+
chi: "\u03C7",
|
|
30053
|
+
psi: "\u03C8",
|
|
30054
|
+
omega: "\u03C9",
|
|
30055
|
+
thetasym: "\u03D1",
|
|
30056
|
+
upsih: "\u03D2",
|
|
30057
|
+
piv: "\u03D6",
|
|
30058
|
+
ensp: "\u2002",
|
|
30059
|
+
emsp: "\u2003",
|
|
30060
|
+
thinsp: "\u2009",
|
|
30061
|
+
zwnj: "\u200C",
|
|
30062
|
+
zwj: "\u200D",
|
|
30063
|
+
lrm: "\u200E",
|
|
30064
|
+
rlm: "\u200F",
|
|
30065
|
+
ndash: "\u2013",
|
|
30066
|
+
mdash: "\u2014",
|
|
30067
|
+
lsquo: "\u2018",
|
|
30068
|
+
rsquo: "\u2019",
|
|
30069
|
+
sbquo: "\u201A",
|
|
30070
|
+
ldquo: "\u201C",
|
|
30071
|
+
rdquo: "\u201D",
|
|
30072
|
+
bdquo: "\u201E",
|
|
30073
|
+
dagger: "\u2020",
|
|
30074
|
+
Dagger: "\u2021",
|
|
30075
|
+
bull: "\u2022",
|
|
30076
|
+
hellip: "\u2026",
|
|
30077
|
+
permil: "\u2030",
|
|
30078
|
+
prime: "\u2032",
|
|
30079
|
+
Prime: "\u2033",
|
|
30080
|
+
lsaquo: "\u2039",
|
|
30081
|
+
rsaquo: "\u203A",
|
|
30082
|
+
oline: "\u203E",
|
|
30083
|
+
frasl: "\u2044",
|
|
30084
|
+
euro: "\u20AC",
|
|
30085
|
+
image: "\u2111",
|
|
30086
|
+
weierp: "\u2118",
|
|
30087
|
+
real: "\u211C",
|
|
30088
|
+
trade: "\u2122",
|
|
30089
|
+
alefsym: "\u2135",
|
|
30090
|
+
larr: "\u2190",
|
|
30091
|
+
uarr: "\u2191",
|
|
30092
|
+
rarr: "\u2192",
|
|
30093
|
+
darr: "\u2193",
|
|
30094
|
+
harr: "\u2194",
|
|
30095
|
+
crarr: "\u21B5",
|
|
30096
|
+
lArr: "\u21D0",
|
|
30097
|
+
uArr: "\u21D1",
|
|
30098
|
+
rArr: "\u21D2",
|
|
30099
|
+
dArr: "\u21D3",
|
|
30100
|
+
hArr: "\u21D4",
|
|
30101
|
+
forall: "\u2200",
|
|
30102
|
+
part: "\u2202",
|
|
30103
|
+
exist: "\u2203",
|
|
30104
|
+
empty: "\u2205",
|
|
30105
|
+
nabla: "\u2207",
|
|
30106
|
+
isin: "\u2208",
|
|
30107
|
+
notin: "\u2209",
|
|
30108
|
+
ni: "\u220B",
|
|
30109
|
+
prod: "\u220F",
|
|
30110
|
+
sum: "\u2211",
|
|
30111
|
+
minus: "\u2212",
|
|
30112
|
+
lowast: "\u2217",
|
|
30113
|
+
radic: "\u221A",
|
|
30114
|
+
prop: "\u221D",
|
|
30115
|
+
infin: "\u221E",
|
|
30116
|
+
ang: "\u2220",
|
|
30117
|
+
and: "\u2227",
|
|
30118
|
+
or: "\u2228",
|
|
30119
|
+
cap: "\u2229",
|
|
30120
|
+
cup: "\u222A",
|
|
30121
|
+
int: "\u222B",
|
|
30122
|
+
there4: "\u2234",
|
|
30123
|
+
sim: "\u223C",
|
|
30124
|
+
cong: "\u2245",
|
|
30125
|
+
asymp: "\u2248",
|
|
30126
|
+
ne: "\u2260",
|
|
30127
|
+
equiv: "\u2261",
|
|
30128
|
+
le: "\u2264",
|
|
30129
|
+
ge: "\u2265",
|
|
30130
|
+
sub: "\u2282",
|
|
30131
|
+
sup: "\u2283",
|
|
30132
|
+
nsub: "\u2284",
|
|
30133
|
+
sube: "\u2286",
|
|
30134
|
+
supe: "\u2287",
|
|
30135
|
+
oplus: "\u2295",
|
|
30136
|
+
otimes: "\u2297",
|
|
30137
|
+
perp: "\u22A5",
|
|
30138
|
+
sdot: "\u22C5",
|
|
30139
|
+
lceil: "\u2308",
|
|
30140
|
+
rceil: "\u2309",
|
|
30141
|
+
lfloor: "\u230A",
|
|
30142
|
+
rfloor: "\u230B",
|
|
30143
|
+
lang: "\u2329",
|
|
30144
|
+
rang: "\u232A",
|
|
30145
|
+
loz: "\u25CA",
|
|
30146
|
+
spades: "\u2660",
|
|
30147
|
+
clubs: "\u2663",
|
|
30148
|
+
hearts: "\u2665",
|
|
30149
|
+
diams: "\u2666"
|
|
30178
30150
|
};
|
|
30179
30151
|
var JsxErrors = ParseErrorEnum(_templateObject2())({
|
|
30180
30152
|
AttributeIsEmpty: "JSX attributes must only be assigned a non-empty expression.",
|
|
@@ -30330,7 +30302,7 @@ var jsx = function(superClass) {
|
|
|
30330
30302
|
} else {
|
|
30331
30303
|
var count = 0;
|
|
30332
30304
|
var semi = false;
|
|
30333
|
-
while(count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos)
|
|
30305
|
+
while(count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) === 59)){
|
|
30334
30306
|
++this.state.pos;
|
|
30335
30307
|
}
|
|
30336
30308
|
if (semi) {
|
|
@@ -30537,7 +30509,7 @@ var jsx = function(superClass) {
|
|
|
30537
30509
|
children.push(this.jsxParseElementAt(startLoc));
|
|
30538
30510
|
break;
|
|
30539
30511
|
case 141:
|
|
30540
|
-
children.push(this.
|
|
30512
|
+
children.push(this.parseLiteral(this.state.value, "JSXText"));
|
|
30541
30513
|
break;
|
|
30542
30514
|
case 5:
|
|
30543
30515
|
{
|
|
@@ -30601,9 +30573,7 @@ var jsx = function(superClass) {
|
|
|
30601
30573
|
{
|
|
30602
30574
|
key: "parseExprAtom",
|
|
30603
30575
|
value: function parseExprAtom(refExpressionErrors) {
|
|
30604
|
-
if (this.match(
|
|
30605
|
-
return this.parseLiteral(this.state.value, "JSXText");
|
|
30606
|
-
} else if (this.match(142)) {
|
|
30576
|
+
if (this.match(142)) {
|
|
30607
30577
|
return this.jsxParseElement();
|
|
30608
30578
|
} else if (this.match(47) && this.input.charCodeAt(this.state.pos) !== 33) {
|
|
30609
30579
|
this.replaceToken(142);
|
|
@@ -30718,7 +30688,7 @@ var TypeScriptScopeHandler = /*#__PURE__*/ function(ScopeHandler) {
|
|
|
30718
30688
|
{
|
|
30719
30689
|
key: "enter",
|
|
30720
30690
|
value: function enter(flags) {
|
|
30721
|
-
if (flags
|
|
30691
|
+
if (flags === 256) {
|
|
30722
30692
|
this.importsStack.push(/* @__PURE__ */ new Set());
|
|
30723
30693
|
}
|
|
30724
30694
|
_get(_get_prototype_of(TypeScriptScopeHandler.prototype), "enter", this).call(this, flags);
|
|
@@ -30728,7 +30698,7 @@ var TypeScriptScopeHandler = /*#__PURE__*/ function(ScopeHandler) {
|
|
|
30728
30698
|
key: "exit",
|
|
30729
30699
|
value: function exit() {
|
|
30730
30700
|
var flags = _get(_get_prototype_of(TypeScriptScopeHandler.prototype), "exit", this).call(this);
|
|
30731
|
-
if (flags
|
|
30701
|
+
if (flags === 256) {
|
|
30732
30702
|
this.importsStack.pop();
|
|
30733
30703
|
}
|
|
30734
30704
|
return flags;
|
|
@@ -31114,11 +31084,12 @@ var LValParser = /*#__PURE__*/ function(NodeUtils) {
|
|
|
31114
31084
|
{
|
|
31115
31085
|
key: "parseBindingProperty",
|
|
31116
31086
|
value: function parseBindingProperty() {
|
|
31117
|
-
var prop = this.startNode();
|
|
31118
31087
|
var _this_state = this.state, type = _this_state.type, startLoc = _this_state.startLoc;
|
|
31119
31088
|
if (type === 21) {
|
|
31120
|
-
return this.parseBindingRestProperty(
|
|
31121
|
-
}
|
|
31089
|
+
return this.parseBindingRestProperty(this.startNode());
|
|
31090
|
+
}
|
|
31091
|
+
var prop = this.startNode();
|
|
31092
|
+
if (type === 138) {
|
|
31122
31093
|
this.expectPlugin("destructuringPrivate", startLoc);
|
|
31123
31094
|
this.classScope.usePrivateName(this.state.value, startLoc);
|
|
31124
31095
|
prop.key = this.parsePrivateName();
|
|
@@ -33512,13 +33483,14 @@ var typescript = function(superClass) {
|
|
|
33512
33483
|
value: function parseExport(node, decorators) {
|
|
33513
33484
|
if (this.match(83)) {
|
|
33514
33485
|
this.next();
|
|
33486
|
+
var nodeImportEquals = node;
|
|
33515
33487
|
var maybeDefaultIdentifier = null;
|
|
33516
33488
|
if (this.isContextual(130) && this.isPotentialImportPhase(false)) {
|
|
33517
|
-
maybeDefaultIdentifier = this.parseMaybeImportPhase(
|
|
33489
|
+
maybeDefaultIdentifier = this.parseMaybeImportPhase(nodeImportEquals, false);
|
|
33518
33490
|
} else {
|
|
33519
|
-
|
|
33491
|
+
nodeImportEquals.importKind = "value";
|
|
33520
33492
|
}
|
|
33521
|
-
return this.tsParseImportEqualsDeclaration(
|
|
33493
|
+
return this.tsParseImportEqualsDeclaration(nodeImportEquals, maybeDefaultIdentifier, true);
|
|
33522
33494
|
} else if (this.eat(29)) {
|
|
33523
33495
|
var assign = node;
|
|
33524
33496
|
assign.expression = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseExpression", this).call(this);
|
|
@@ -33765,9 +33737,9 @@ var typescript = function(superClass) {
|
|
|
33765
33737
|
{
|
|
33766
33738
|
key: "parseParenItem",
|
|
33767
33739
|
value: function parseParenItem(node, startLoc) {
|
|
33768
|
-
|
|
33740
|
+
var newNode = _get(_get_prototype_of(TypeScriptParserMixin.prototype), "parseParenItem", this).call(this, node, startLoc);
|
|
33769
33741
|
if (this.eat(17)) {
|
|
33770
|
-
|
|
33742
|
+
newNode.optional = true;
|
|
33771
33743
|
this.resetEndLocation(node);
|
|
33772
33744
|
}
|
|
33773
33745
|
if (this.match(14)) {
|
|
@@ -33901,7 +33873,9 @@ var typescript = function(superClass) {
|
|
|
33901
33873
|
key: "declareClassPrivateMethodInScope",
|
|
33902
33874
|
value: function declareClassPrivateMethodInScope(node, kind) {
|
|
33903
33875
|
if (node.type === "TSDeclareMethod") return;
|
|
33904
|
-
if (node.type === "MethodDefinition" && !node.value
|
|
33876
|
+
if (node.type === "MethodDefinition" && !Object.hasOwn(node.value, "body")) {
|
|
33877
|
+
return;
|
|
33878
|
+
}
|
|
33905
33879
|
_get(_get_prototype_of(TypeScriptParserMixin.prototype), "declareClassPrivateMethodInScope", this).call(this, node, kind);
|
|
33906
33880
|
}
|
|
33907
33881
|
},
|
|
@@ -34160,6 +34134,7 @@ var typescript = function(superClass) {
|
|
|
34160
34134
|
TSTypeCastExpression: true,
|
|
34161
34135
|
TSParameterProperty: "parameter",
|
|
34162
34136
|
TSNonNullExpression: "expression",
|
|
34137
|
+
TSInstantiationExpression: "expression",
|
|
34163
34138
|
TSAsExpression: (binding !== 64 || !isUnparenthesizedInAssign) && [
|
|
34164
34139
|
"expression",
|
|
34165
34140
|
true
|
|
@@ -34615,9 +34590,12 @@ var placeholders = function(superClass) {
|
|
|
34615
34590
|
{
|
|
34616
34591
|
key: "finishPlaceholder",
|
|
34617
34592
|
value: function finishPlaceholder(node, expectedNode) {
|
|
34618
|
-
var
|
|
34619
|
-
|
|
34620
|
-
|
|
34593
|
+
var placeholder2 = node;
|
|
34594
|
+
if (!placeholder2.expectedNode || !placeholder2.type) {
|
|
34595
|
+
placeholder2 = this.finishNode(placeholder2, "Placeholder");
|
|
34596
|
+
}
|
|
34597
|
+
placeholder2.expectedNode = expectedNode;
|
|
34598
|
+
return placeholder2;
|
|
34621
34599
|
}
|
|
34622
34600
|
},
|
|
34623
34601
|
{
|
|
@@ -34707,8 +34685,9 @@ var placeholders = function(superClass) {
|
|
|
34707
34685
|
return this.finishNode(stmt, "LabeledStatement");
|
|
34708
34686
|
}
|
|
34709
34687
|
this.semicolon();
|
|
34710
|
-
|
|
34711
|
-
|
|
34688
|
+
var stmtPlaceholder = node;
|
|
34689
|
+
stmtPlaceholder.name = expr.name;
|
|
34690
|
+
return this.finishPlaceholder(stmtPlaceholder, "Statement");
|
|
34712
34691
|
}
|
|
34713
34692
|
},
|
|
34714
34693
|
{
|
|
@@ -34753,19 +34732,20 @@ var placeholders = function(superClass) {
|
|
|
34753
34732
|
value: function parseExport(node, decorators) {
|
|
34754
34733
|
var placeholder2 = this.parsePlaceholder("Identifier");
|
|
34755
34734
|
if (!placeholder2) return _get(_get_prototype_of(PlaceholdersParserMixin.prototype), "parseExport", this).call(this, node, decorators);
|
|
34735
|
+
var node2 = node;
|
|
34756
34736
|
if (!this.isContextual(98) && !this.match(12)) {
|
|
34757
|
-
|
|
34758
|
-
|
|
34759
|
-
|
|
34760
|
-
return this.finishNode(
|
|
34737
|
+
node2.specifiers = [];
|
|
34738
|
+
node2.source = null;
|
|
34739
|
+
node2.declaration = this.finishPlaceholder(placeholder2, "Declaration");
|
|
34740
|
+
return this.finishNode(node2, "ExportNamedDeclaration");
|
|
34761
34741
|
}
|
|
34762
34742
|
this.expectPlugin("exportDefaultFrom");
|
|
34763
34743
|
var specifier = this.startNode();
|
|
34764
34744
|
specifier.exported = placeholder2;
|
|
34765
|
-
|
|
34745
|
+
node2.specifiers = [
|
|
34766
34746
|
this.finishNode(specifier, "ExportDefaultSpecifier")
|
|
34767
34747
|
];
|
|
34768
|
-
return _get(_get_prototype_of(PlaceholdersParserMixin.prototype), "parseExport", this).call(this,
|
|
34748
|
+
return _get(_get_prototype_of(PlaceholdersParserMixin.prototype), "parseExport", this).call(this, node2, decorators);
|
|
34769
34749
|
}
|
|
34770
34750
|
},
|
|
34771
34751
|
{
|
|
@@ -34955,10 +34935,6 @@ var TOPIC_TOKENS = [
|
|
|
34955
34935
|
"%",
|
|
34956
34936
|
"#"
|
|
34957
34937
|
];
|
|
34958
|
-
var RECORD_AND_TUPLE_SYNTAX_TYPES = [
|
|
34959
|
-
"hash",
|
|
34960
|
-
"bar"
|
|
34961
|
-
];
|
|
34962
34938
|
function validatePlugins(plugins) {
|
|
34963
34939
|
if (hasPlugin(plugins, "decorators")) {
|
|
34964
34940
|
if (hasPlugin(plugins, "decorators-legacy")) {
|
|
@@ -34987,12 +34963,8 @@ function validatePlugins(plugins) {
|
|
|
34987
34963
|
}).join(", ");
|
|
34988
34964
|
throw new Error('"pipelineOperator" requires "proposal" option whose value must be one of: '.concat(proposalList, "."));
|
|
34989
34965
|
}
|
|
34990
|
-
var
|
|
34991
|
-
|
|
34992
|
-
{
|
|
34993
|
-
syntaxType: "hash"
|
|
34994
|
-
}
|
|
34995
|
-
]);
|
|
34966
|
+
var recordAndTupleConfigItem = "recordAndTuple";
|
|
34967
|
+
var tupleSyntaxIsHash = hasPlugin(plugins, recordAndTupleConfigItem);
|
|
34996
34968
|
if (proposal === "hack") {
|
|
34997
34969
|
if (hasPlugin(plugins, "placeholders")) {
|
|
34998
34970
|
throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");
|
|
@@ -35008,10 +34980,10 @@ function validatePlugins(plugins) {
|
|
|
35008
34980
|
throw new Error('"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: '.concat(tokenList, "."));
|
|
35009
34981
|
}
|
|
35010
34982
|
if (topicToken === "#" && tupleSyntaxIsHash) {
|
|
35011
|
-
throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `
|
|
34983
|
+
throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "hack", topicToken: "#" }]` and `'.concat(JSON.stringify(recordAndTupleConfigItem), "`."));
|
|
35012
34984
|
}
|
|
35013
34985
|
} else if (proposal === "smart" && tupleSyntaxIsHash) {
|
|
35014
|
-
throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `
|
|
34986
|
+
throw new Error('Plugin conflict between `["pipelineOperator", { proposal: "smart" }]` and `'.concat(JSON.stringify(recordAndTupleConfigItem), "`."));
|
|
35015
34987
|
}
|
|
35016
34988
|
}
|
|
35017
34989
|
if (hasPlugin(plugins, "moduleAttributes")) {
|
|
@@ -35022,10 +34994,17 @@ function validatePlugins(plugins) {
|
|
|
35022
34994
|
if (hasPlugin(plugins, "importAssertions") && hasPlugin(plugins, "importAttributes")) {
|
|
35023
34995
|
throw new Error("Cannot combine importAssertions and importAttributes plugins.");
|
|
35024
34996
|
}
|
|
35025
|
-
if (hasPlugin(plugins, "recordAndTuple")
|
|
35026
|
-
|
|
35027
|
-
|
|
35028
|
-
|
|
34997
|
+
if (hasPlugin(plugins, "recordAndTuple")) {
|
|
34998
|
+
var syntaxType = getPluginOption(plugins, "recordAndTuple", "syntaxType");
|
|
34999
|
+
if (syntaxType != null) {
|
|
35000
|
+
{
|
|
35001
|
+
if (syntaxType === "hash") {
|
|
35002
|
+
throw new Error('The syntaxType option is no longer required in Babel 8. You can safely remove { syntaxType: "hash" } from the recordAndTuple config.');
|
|
35003
|
+
} else {
|
|
35004
|
+
throw new Error('The syntaxType option is no longer required in Babel 8. Please remove { syntaxType: "bar" } from the recordAndTuple config and migrate to the hash syntax #{} and #[].');
|
|
35005
|
+
}
|
|
35006
|
+
}
|
|
35007
|
+
}
|
|
35029
35008
|
}
|
|
35030
35009
|
if (hasPlugin(plugins, "asyncDoExpressions") && !hasPlugin(plugins, "doExpressions")) {
|
|
35031
35010
|
var error = new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");
|
|
@@ -36389,16 +36368,18 @@ var ExpressionParser = /*#__PURE__*/ function(LValParser) {
|
|
|
36389
36368
|
key: "parseTemplate",
|
|
36390
36369
|
value: function parseTemplate(isTagged) {
|
|
36391
36370
|
var node = this.startNode();
|
|
36392
|
-
node.expressions = [];
|
|
36393
36371
|
var curElt = this.parseTemplateElement(isTagged);
|
|
36394
|
-
|
|
36372
|
+
var quasis = [
|
|
36395
36373
|
curElt
|
|
36396
36374
|
];
|
|
36375
|
+
var substitutions = [];
|
|
36397
36376
|
while(!curElt.tail){
|
|
36398
|
-
|
|
36377
|
+
substitutions.push(this.parseTemplateSubstitution());
|
|
36399
36378
|
this.readTemplateContinuation();
|
|
36400
|
-
|
|
36379
|
+
quasis.push(curElt = this.parseTemplateElement(isTagged));
|
|
36401
36380
|
}
|
|
36381
|
+
node.expressions = substitutions;
|
|
36382
|
+
node.quasis = quasis;
|
|
36402
36383
|
return this.finishNode(node, "TemplateLiteral");
|
|
36403
36384
|
}
|
|
36404
36385
|
},
|
|
@@ -36441,9 +36422,6 @@ var ExpressionParser = /*#__PURE__*/ function(LValParser) {
|
|
|
36441
36422
|
if (isRecord && !this.isObjectProperty(prop) && prop.type !== "SpreadElement") {
|
|
36442
36423
|
this.raise(Errors.InvalidRecordProperty, prop);
|
|
36443
36424
|
}
|
|
36444
|
-
if (prop.shorthand) {
|
|
36445
|
-
this.addExtra(prop, "shorthand", true);
|
|
36446
|
-
}
|
|
36447
36425
|
node.properties.push(prop);
|
|
36448
36426
|
}
|
|
36449
36427
|
this.next();
|
|
@@ -36501,8 +36479,9 @@ var ExpressionParser = /*#__PURE__*/ function(LValParser) {
|
|
|
36501
36479
|
var isGenerator = this.eat(55);
|
|
36502
36480
|
this.parsePropertyNamePrefixOperator(prop);
|
|
36503
36481
|
var containsEsc = this.state.containsEsc;
|
|
36504
|
-
|
|
36482
|
+
this.parsePropertyName(prop, refExpressionErrors);
|
|
36505
36483
|
if (!isGenerator && !containsEsc && this.maybeAsyncOrAccessorProp(prop)) {
|
|
36484
|
+
var key = prop.key;
|
|
36506
36485
|
var keyName = key.name;
|
|
36507
36486
|
if (keyName === "async" && !this.hasPrecedingLineBreak()) {
|
|
36508
36487
|
isAsync = true;
|
|
@@ -36655,7 +36634,6 @@ var ExpressionParser = /*#__PURE__*/ function(LValParser) {
|
|
|
36655
36634
|
prop.computed = false;
|
|
36656
36635
|
}
|
|
36657
36636
|
}
|
|
36658
|
-
return prop.key;
|
|
36659
36637
|
}
|
|
36660
36638
|
},
|
|
36661
36639
|
{
|
|
@@ -38230,9 +38208,9 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38230
38208
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
38231
38209
|
kind: "destructuring"
|
|
38232
38210
|
});
|
|
38233
|
-
} else if (kind === "const" && !(this.match(58) || this.isContextual(102))) {
|
|
38211
|
+
} else if ((kind === "const" || kind === "using" || kind === "await using") && !(this.match(58) || this.isContextual(102))) {
|
|
38234
38212
|
this.raise(Errors.DeclarationMissingInitializer, this.state.lastTokEndLoc, {
|
|
38235
|
-
kind:
|
|
38213
|
+
kind: kind
|
|
38236
38214
|
});
|
|
38237
38215
|
}
|
|
38238
38216
|
}
|
|
@@ -38267,8 +38245,8 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38267
38245
|
var _this = this;
|
|
38268
38246
|
var flags = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
38269
38247
|
var hangingDeclaration = flags & 2;
|
|
38270
|
-
var
|
|
38271
|
-
var requireId =
|
|
38248
|
+
var isDeclaration2 = !!(flags & 1);
|
|
38249
|
+
var requireId = isDeclaration2 && !(flags & 4);
|
|
38272
38250
|
var isAsync = !!(flags & 8);
|
|
38273
38251
|
this.initFunction(node, isAsync);
|
|
38274
38252
|
if (this.match(55)) {
|
|
@@ -38278,23 +38256,23 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38278
38256
|
this.next();
|
|
38279
38257
|
node.generator = true;
|
|
38280
38258
|
}
|
|
38281
|
-
if (
|
|
38259
|
+
if (isDeclaration2) {
|
|
38282
38260
|
node.id = this.parseFunctionId(requireId);
|
|
38283
38261
|
}
|
|
38284
38262
|
var oldMaybeInArrowParameters = this.state.maybeInArrowParameters;
|
|
38285
38263
|
this.state.maybeInArrowParameters = false;
|
|
38286
38264
|
this.scope.enter(2);
|
|
38287
38265
|
this.prodParam.enter(functionFlags(isAsync, node.generator));
|
|
38288
|
-
if (!
|
|
38266
|
+
if (!isDeclaration2) {
|
|
38289
38267
|
node.id = this.parseFunctionId();
|
|
38290
38268
|
}
|
|
38291
38269
|
this.parseFunctionParams(node, false);
|
|
38292
38270
|
this.withSmartMixTopicForbiddingContext(function() {
|
|
38293
|
-
_this.parseFunctionBodyAndFinish(node,
|
|
38271
|
+
_this.parseFunctionBodyAndFinish(node, isDeclaration2 ? "FunctionDeclaration" : "FunctionExpression");
|
|
38294
38272
|
});
|
|
38295
38273
|
this.prodParam.exit();
|
|
38296
38274
|
this.scope.exit();
|
|
38297
|
-
if (
|
|
38275
|
+
if (isDeclaration2 && !hangingDeclaration) {
|
|
38298
38276
|
this.registerFunctionStatementId(node);
|
|
38299
38277
|
}
|
|
38300
38278
|
this.state.maybeInArrowParameters = oldMaybeInArrowParameters;
|
|
@@ -38347,10 +38325,16 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38347
38325
|
return this.match(10);
|
|
38348
38326
|
}
|
|
38349
38327
|
},
|
|
38328
|
+
{
|
|
38329
|
+
key: "nameIsConstructor",
|
|
38330
|
+
value: function nameIsConstructor(key) {
|
|
38331
|
+
return key.type === "Identifier" && key.name === "constructor" || key.type === "StringLiteral" && key.value === "constructor";
|
|
38332
|
+
}
|
|
38333
|
+
},
|
|
38350
38334
|
{
|
|
38351
38335
|
key: "isNonstaticConstructor",
|
|
38352
38336
|
value: function isNonstaticConstructor(method) {
|
|
38353
|
-
return !method.computed && !method.static && (method.key
|
|
38337
|
+
return !method.computed && !method.static && this.nameIsConstructor(method.key);
|
|
38354
38338
|
}
|
|
38355
38339
|
},
|
|
38356
38340
|
{
|
|
@@ -38465,9 +38449,10 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38465
38449
|
this.pushClassMethod(classBody2, publicMethod, true, false, false, false);
|
|
38466
38450
|
return;
|
|
38467
38451
|
}
|
|
38468
|
-
var isContextual =
|
|
38469
|
-
var isPrivate2 = this.match(138);
|
|
38452
|
+
var isContextual = !this.state.containsEsc && tokenIsIdentifier(this.state.type);
|
|
38470
38453
|
var key = this.parseClassElementName(member);
|
|
38454
|
+
var maybeContextualKw = isContextual ? key.name : null;
|
|
38455
|
+
var isPrivate2 = this.isPrivateName(key);
|
|
38471
38456
|
var maybeQuestionTokenStartLoc = this.state.startLoc;
|
|
38472
38457
|
this.parsePostMemberNameModifiers(publicMember);
|
|
38473
38458
|
if (this.isClassMethod()) {
|
|
@@ -38496,7 +38481,7 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38496
38481
|
} else {
|
|
38497
38482
|
this.pushClassProperty(classBody2, publicProp);
|
|
38498
38483
|
}
|
|
38499
|
-
} else if (
|
|
38484
|
+
} else if (maybeContextualKw === "async" && !this.isLineTerminator()) {
|
|
38500
38485
|
this.resetPreviousNodeTrailingComments(key);
|
|
38501
38486
|
var isGenerator = this.eat(55);
|
|
38502
38487
|
if (publicMember.optional) {
|
|
@@ -38514,9 +38499,9 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38514
38499
|
}
|
|
38515
38500
|
this.pushClassMethod(classBody2, publicMethod, isGenerator, true, false, false);
|
|
38516
38501
|
}
|
|
38517
|
-
} else if (
|
|
38502
|
+
} else if ((maybeContextualKw === "get" || maybeContextualKw === "set") && !(this.match(55) && this.isLineTerminator())) {
|
|
38518
38503
|
this.resetPreviousNodeTrailingComments(key);
|
|
38519
|
-
method.kind =
|
|
38504
|
+
method.kind = maybeContextualKw;
|
|
38520
38505
|
var isPrivate31 = this.match(138);
|
|
38521
38506
|
this.parseClassElementName(publicMethod);
|
|
38522
38507
|
if (isPrivate31) {
|
|
@@ -38528,7 +38513,7 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38528
38513
|
this.pushClassMethod(classBody2, publicMethod, false, false, false, false);
|
|
38529
38514
|
}
|
|
38530
38515
|
this.checkGetterSetterParams(publicMethod);
|
|
38531
|
-
} else if (
|
|
38516
|
+
} else if (maybeContextualKw === "accessor" && !this.isLineTerminator()) {
|
|
38532
38517
|
this.expectPlugin("decoratorAutoAccessors");
|
|
38533
38518
|
this.resetPreviousNodeTrailingComments(key);
|
|
38534
38519
|
var isPrivate32 = this.match(138);
|
|
@@ -38560,7 +38545,8 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38560
38545
|
member.key = key;
|
|
38561
38546
|
return key;
|
|
38562
38547
|
}
|
|
38563
|
-
|
|
38548
|
+
this.parsePropertyName(member);
|
|
38549
|
+
return member.key;
|
|
38564
38550
|
}
|
|
38565
38551
|
},
|
|
38566
38552
|
{
|
|
@@ -38585,7 +38571,7 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38585
38571
|
{
|
|
38586
38572
|
key: "pushClassProperty",
|
|
38587
38573
|
value: function pushClassProperty(classBody2, prop) {
|
|
38588
|
-
if (!prop.computed && (prop.key
|
|
38574
|
+
if (!prop.computed && this.nameIsConstructor(prop.key)) {
|
|
38589
38575
|
this.raise(Errors.ConstructorClassField, prop.key);
|
|
38590
38576
|
}
|
|
38591
38577
|
classBody2.body.push(this.parseClassProperty(prop));
|
|
@@ -38602,11 +38588,8 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38602
38588
|
{
|
|
38603
38589
|
key: "pushClassAccessorProperty",
|
|
38604
38590
|
value: function pushClassAccessorProperty(classBody2, prop, isPrivate2) {
|
|
38605
|
-
if (!isPrivate2 && !prop.computed) {
|
|
38606
|
-
|
|
38607
|
-
if (key.name === "constructor" || key.value === "constructor") {
|
|
38608
|
-
this.raise(Errors.ConstructorClassField, key);
|
|
38609
|
-
}
|
|
38591
|
+
if (!isPrivate2 && !prop.computed && this.nameIsConstructor(prop.key)) {
|
|
38592
|
+
this.raise(Errors.ConstructorClassField, prop.key);
|
|
38610
38593
|
}
|
|
38611
38594
|
var node = this.parseClassAccessorProperty(prop);
|
|
38612
38595
|
classBody2.body.push(node);
|
|
@@ -38787,7 +38770,8 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38787
38770
|
key: "maybeParseExportNamespaceSpecifier",
|
|
38788
38771
|
value: function maybeParseExportNamespaceSpecifier(node) {
|
|
38789
38772
|
if (this.isContextual(93)) {
|
|
38790
|
-
|
|
38773
|
+
var _node_specifiers;
|
|
38774
|
+
(_node_specifiers = node.specifiers) !== null && _node_specifiers !== void 0 ? _node_specifiers : node.specifiers = [];
|
|
38791
38775
|
var specifier = this.startNodeAt(this.state.lastTokStartLoc);
|
|
38792
38776
|
this.next();
|
|
38793
38777
|
specifier.exported = this.parseModuleExportName();
|
|
@@ -38801,14 +38785,15 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38801
38785
|
key: "maybeParseExportNamedSpecifiers",
|
|
38802
38786
|
value: function maybeParseExportNamedSpecifiers(node) {
|
|
38803
38787
|
if (this.match(5)) {
|
|
38804
|
-
var
|
|
38805
|
-
|
|
38806
|
-
|
|
38807
|
-
|
|
38808
|
-
|
|
38809
|
-
|
|
38788
|
+
var _node2_specifiers;
|
|
38789
|
+
var node2 = node;
|
|
38790
|
+
if (!node2.specifiers) node2.specifiers = [];
|
|
38791
|
+
var isTypeExport = node2.exportKind === "type";
|
|
38792
|
+
(_node2_specifiers = node2.specifiers).push.apply(_node2_specifiers, _to_consumable_array(this.parseExportSpecifiers(isTypeExport)));
|
|
38793
|
+
node2.source = null;
|
|
38794
|
+
node2.declaration = null;
|
|
38810
38795
|
if (this.hasPlugin("importAssertions")) {
|
|
38811
|
-
|
|
38796
|
+
node2.assertions = [];
|
|
38812
38797
|
}
|
|
38813
38798
|
return true;
|
|
38814
38799
|
}
|
|
@@ -38940,6 +38925,14 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38940
38925
|
return true;
|
|
38941
38926
|
}
|
|
38942
38927
|
}
|
|
38928
|
+
if (this.isContextual(107)) {
|
|
38929
|
+
this.raise(Errors.UsingDeclarationExport, this.state.startLoc);
|
|
38930
|
+
return true;
|
|
38931
|
+
}
|
|
38932
|
+
if (this.isContextual(96) && this.startsAwaitUsing()) {
|
|
38933
|
+
this.raise(Errors.UsingDeclarationExport, this.state.startLoc);
|
|
38934
|
+
return true;
|
|
38935
|
+
}
|
|
38943
38936
|
return type === 74 || type === 75 || type === 68 || type === 80 || this.isLet() || this.isAsyncFunction();
|
|
38944
38937
|
}
|
|
38945
38938
|
},
|
|
@@ -38993,14 +38986,15 @@ var StatementParser = /*#__PURE__*/ function(ExpressionParser) {
|
|
|
38993
38986
|
}
|
|
38994
38987
|
}
|
|
38995
38988
|
} else if (node.declaration) {
|
|
38996
|
-
|
|
38997
|
-
|
|
38989
|
+
var decl = node.declaration;
|
|
38990
|
+
if (decl.type === "FunctionDeclaration" || decl.type === "ClassDeclaration") {
|
|
38991
|
+
var id = decl.id;
|
|
38998
38992
|
if (!id) throw new Error("Assertion failure");
|
|
38999
38993
|
this.checkDuplicateExports(node, id.name);
|
|
39000
|
-
} else if (
|
|
38994
|
+
} else if (decl.type === "VariableDeclaration") {
|
|
39001
38995
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
39002
38996
|
try {
|
|
39003
|
-
for(var _iterator1 =
|
|
38997
|
+
for(var _iterator1 = decl.declarations[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
39004
38998
|
var declaration1 = _step1.value;
|
|
39005
38999
|
this.checkDeclaration(declaration1.id);
|
|
39006
39000
|
}
|
|
@@ -39678,790 +39672,13 @@ function getParserClass(pluginsFromOptions) {
|
|
|
39678
39672
|
}
|
|
39679
39673
|
// node_modules/@babel/highlight/lib/index.js
|
|
39680
39674
|
var import_js_tokens = __toESM(require_js_tokens(), 1);
|
|
39681
|
-
|
|
39682
|
-
var
|
|
39683
|
-
var
|
|
39684
|
-
|
|
39685
|
-
|
|
39686
|
-
return "\x1b[".concat(code2 + offset, "m");
|
|
39675
|
+
var import_picocolors = __toESM(require_picocolors(), 1);
|
|
39676
|
+
var colors = (typeof process === "undefined" ? "undefined" : _type_of(process)) === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors.createColors)(false) : import_picocolors.default;
|
|
39677
|
+
var compose = function(f, g) {
|
|
39678
|
+
return function(v) {
|
|
39679
|
+
return f(g(v));
|
|
39687
39680
|
};
|
|
39688
39681
|
};
|
|
39689
|
-
var wrapAnsi256 = function() {
|
|
39690
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
39691
|
-
return function(code2) {
|
|
39692
|
-
return "\x1b[".concat(38 + offset, ";5;").concat(code2, "m");
|
|
39693
|
-
};
|
|
39694
|
-
};
|
|
39695
|
-
var wrapAnsi16m = function() {
|
|
39696
|
-
var offset = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 0;
|
|
39697
|
-
return function(red, green, blue) {
|
|
39698
|
-
return "\x1b[".concat(38 + offset, ";2;").concat(red, ";").concat(green, ";").concat(blue, "m");
|
|
39699
|
-
};
|
|
39700
|
-
};
|
|
39701
|
-
var styles = {
|
|
39702
|
-
modifier: {
|
|
39703
|
-
reset: [
|
|
39704
|
-
0,
|
|
39705
|
-
0
|
|
39706
|
-
],
|
|
39707
|
-
// 21 isn't widely supported and 22 does the same thing
|
|
39708
|
-
bold: [
|
|
39709
|
-
1,
|
|
39710
|
-
22
|
|
39711
|
-
],
|
|
39712
|
-
dim: [
|
|
39713
|
-
2,
|
|
39714
|
-
22
|
|
39715
|
-
],
|
|
39716
|
-
italic: [
|
|
39717
|
-
3,
|
|
39718
|
-
23
|
|
39719
|
-
],
|
|
39720
|
-
underline: [
|
|
39721
|
-
4,
|
|
39722
|
-
24
|
|
39723
|
-
],
|
|
39724
|
-
overline: [
|
|
39725
|
-
53,
|
|
39726
|
-
55
|
|
39727
|
-
],
|
|
39728
|
-
inverse: [
|
|
39729
|
-
7,
|
|
39730
|
-
27
|
|
39731
|
-
],
|
|
39732
|
-
hidden: [
|
|
39733
|
-
8,
|
|
39734
|
-
28
|
|
39735
|
-
],
|
|
39736
|
-
strikethrough: [
|
|
39737
|
-
9,
|
|
39738
|
-
29
|
|
39739
|
-
]
|
|
39740
|
-
},
|
|
39741
|
-
color: {
|
|
39742
|
-
black: [
|
|
39743
|
-
30,
|
|
39744
|
-
39
|
|
39745
|
-
],
|
|
39746
|
-
red: [
|
|
39747
|
-
31,
|
|
39748
|
-
39
|
|
39749
|
-
],
|
|
39750
|
-
green: [
|
|
39751
|
-
32,
|
|
39752
|
-
39
|
|
39753
|
-
],
|
|
39754
|
-
yellow: [
|
|
39755
|
-
33,
|
|
39756
|
-
39
|
|
39757
|
-
],
|
|
39758
|
-
blue: [
|
|
39759
|
-
34,
|
|
39760
|
-
39
|
|
39761
|
-
],
|
|
39762
|
-
magenta: [
|
|
39763
|
-
35,
|
|
39764
|
-
39
|
|
39765
|
-
],
|
|
39766
|
-
cyan: [
|
|
39767
|
-
36,
|
|
39768
|
-
39
|
|
39769
|
-
],
|
|
39770
|
-
white: [
|
|
39771
|
-
37,
|
|
39772
|
-
39
|
|
39773
|
-
],
|
|
39774
|
-
// Bright color
|
|
39775
|
-
blackBright: [
|
|
39776
|
-
90,
|
|
39777
|
-
39
|
|
39778
|
-
],
|
|
39779
|
-
gray: [
|
|
39780
|
-
90,
|
|
39781
|
-
39
|
|
39782
|
-
],
|
|
39783
|
-
// Alias of `blackBright`
|
|
39784
|
-
grey: [
|
|
39785
|
-
90,
|
|
39786
|
-
39
|
|
39787
|
-
],
|
|
39788
|
-
// Alias of `blackBright`
|
|
39789
|
-
redBright: [
|
|
39790
|
-
91,
|
|
39791
|
-
39
|
|
39792
|
-
],
|
|
39793
|
-
greenBright: [
|
|
39794
|
-
92,
|
|
39795
|
-
39
|
|
39796
|
-
],
|
|
39797
|
-
yellowBright: [
|
|
39798
|
-
93,
|
|
39799
|
-
39
|
|
39800
|
-
],
|
|
39801
|
-
blueBright: [
|
|
39802
|
-
94,
|
|
39803
|
-
39
|
|
39804
|
-
],
|
|
39805
|
-
magentaBright: [
|
|
39806
|
-
95,
|
|
39807
|
-
39
|
|
39808
|
-
],
|
|
39809
|
-
cyanBright: [
|
|
39810
|
-
96,
|
|
39811
|
-
39
|
|
39812
|
-
],
|
|
39813
|
-
whiteBright: [
|
|
39814
|
-
97,
|
|
39815
|
-
39
|
|
39816
|
-
]
|
|
39817
|
-
},
|
|
39818
|
-
bgColor: {
|
|
39819
|
-
bgBlack: [
|
|
39820
|
-
40,
|
|
39821
|
-
49
|
|
39822
|
-
],
|
|
39823
|
-
bgRed: [
|
|
39824
|
-
41,
|
|
39825
|
-
49
|
|
39826
|
-
],
|
|
39827
|
-
bgGreen: [
|
|
39828
|
-
42,
|
|
39829
|
-
49
|
|
39830
|
-
],
|
|
39831
|
-
bgYellow: [
|
|
39832
|
-
43,
|
|
39833
|
-
49
|
|
39834
|
-
],
|
|
39835
|
-
bgBlue: [
|
|
39836
|
-
44,
|
|
39837
|
-
49
|
|
39838
|
-
],
|
|
39839
|
-
bgMagenta: [
|
|
39840
|
-
45,
|
|
39841
|
-
49
|
|
39842
|
-
],
|
|
39843
|
-
bgCyan: [
|
|
39844
|
-
46,
|
|
39845
|
-
49
|
|
39846
|
-
],
|
|
39847
|
-
bgWhite: [
|
|
39848
|
-
47,
|
|
39849
|
-
49
|
|
39850
|
-
],
|
|
39851
|
-
// Bright color
|
|
39852
|
-
bgBlackBright: [
|
|
39853
|
-
100,
|
|
39854
|
-
49
|
|
39855
|
-
],
|
|
39856
|
-
bgGray: [
|
|
39857
|
-
100,
|
|
39858
|
-
49
|
|
39859
|
-
],
|
|
39860
|
-
// Alias of `bgBlackBright`
|
|
39861
|
-
bgGrey: [
|
|
39862
|
-
100,
|
|
39863
|
-
49
|
|
39864
|
-
],
|
|
39865
|
-
// Alias of `bgBlackBright`
|
|
39866
|
-
bgRedBright: [
|
|
39867
|
-
101,
|
|
39868
|
-
49
|
|
39869
|
-
],
|
|
39870
|
-
bgGreenBright: [
|
|
39871
|
-
102,
|
|
39872
|
-
49
|
|
39873
|
-
],
|
|
39874
|
-
bgYellowBright: [
|
|
39875
|
-
103,
|
|
39876
|
-
49
|
|
39877
|
-
],
|
|
39878
|
-
bgBlueBright: [
|
|
39879
|
-
104,
|
|
39880
|
-
49
|
|
39881
|
-
],
|
|
39882
|
-
bgMagentaBright: [
|
|
39883
|
-
105,
|
|
39884
|
-
49
|
|
39885
|
-
],
|
|
39886
|
-
bgCyanBright: [
|
|
39887
|
-
106,
|
|
39888
|
-
49
|
|
39889
|
-
],
|
|
39890
|
-
bgWhiteBright: [
|
|
39891
|
-
107,
|
|
39892
|
-
49
|
|
39893
|
-
]
|
|
39894
|
-
}
|
|
39895
|
-
};
|
|
39896
|
-
var modifierNames = Object.keys(styles.modifier);
|
|
39897
|
-
var foregroundColorNames = Object.keys(styles.color);
|
|
39898
|
-
var backgroundColorNames = Object.keys(styles.bgColor);
|
|
39899
|
-
var colorNames = _to_consumable_array(foregroundColorNames).concat(_to_consumable_array(backgroundColorNames));
|
|
39900
|
-
function assembleStyles() {
|
|
39901
|
-
var _styles;
|
|
39902
|
-
var codes = /* @__PURE__ */ new Map();
|
|
39903
|
-
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
39904
|
-
try {
|
|
39905
|
-
for(var _iterator = Object.entries(styles)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
39906
|
-
var _step_value = _sliced_to_array(_step.value, 2), groupName = _step_value[0], group = _step_value[1];
|
|
39907
|
-
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
39908
|
-
try {
|
|
39909
|
-
for(var _iterator1 = Object.entries(group)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
39910
|
-
var _step_value1 = _sliced_to_array(_step1.value, 2), styleName = _step_value1[0], style = _step_value1[1];
|
|
39911
|
-
styles[styleName] = {
|
|
39912
|
-
open: "\x1b[".concat(style[0], "m"),
|
|
39913
|
-
close: "\x1b[".concat(style[1], "m")
|
|
39914
|
-
};
|
|
39915
|
-
group[styleName] = styles[styleName];
|
|
39916
|
-
codes.set(style[0], style[1]);
|
|
39917
|
-
}
|
|
39918
|
-
} catch (err) {
|
|
39919
|
-
_didIteratorError1 = true;
|
|
39920
|
-
_iteratorError1 = err;
|
|
39921
|
-
} finally{
|
|
39922
|
-
try {
|
|
39923
|
-
if (!_iteratorNormalCompletion1 && _iterator1.return != null) {
|
|
39924
|
-
_iterator1.return();
|
|
39925
|
-
}
|
|
39926
|
-
} finally{
|
|
39927
|
-
if (_didIteratorError1) {
|
|
39928
|
-
throw _iteratorError1;
|
|
39929
|
-
}
|
|
39930
|
-
}
|
|
39931
|
-
}
|
|
39932
|
-
Object.defineProperty(styles, groupName, {
|
|
39933
|
-
value: group,
|
|
39934
|
-
enumerable: false
|
|
39935
|
-
});
|
|
39936
|
-
}
|
|
39937
|
-
} catch (err) {
|
|
39938
|
-
_didIteratorError = true;
|
|
39939
|
-
_iteratorError = err;
|
|
39940
|
-
} finally{
|
|
39941
|
-
try {
|
|
39942
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
39943
|
-
_iterator.return();
|
|
39944
|
-
}
|
|
39945
|
-
} finally{
|
|
39946
|
-
if (_didIteratorError) {
|
|
39947
|
-
throw _iteratorError;
|
|
39948
|
-
}
|
|
39949
|
-
}
|
|
39950
|
-
}
|
|
39951
|
-
Object.defineProperty(styles, "codes", {
|
|
39952
|
-
value: codes,
|
|
39953
|
-
enumerable: false
|
|
39954
|
-
});
|
|
39955
|
-
styles.color.close = "\x1b[39m";
|
|
39956
|
-
styles.bgColor.close = "\x1b[49m";
|
|
39957
|
-
styles.color.ansi = wrapAnsi16();
|
|
39958
|
-
styles.color.ansi256 = wrapAnsi256();
|
|
39959
|
-
styles.color.ansi16m = wrapAnsi16m();
|
|
39960
|
-
styles.bgColor.ansi = wrapAnsi16(ANSI_BACKGROUND_OFFSET);
|
|
39961
|
-
styles.bgColor.ansi256 = wrapAnsi256(ANSI_BACKGROUND_OFFSET);
|
|
39962
|
-
styles.bgColor.ansi16m = wrapAnsi16m(ANSI_BACKGROUND_OFFSET);
|
|
39963
|
-
Object.defineProperties(styles, {
|
|
39964
|
-
rgbToAnsi256: {
|
|
39965
|
-
value: function value1(red, green, blue) {
|
|
39966
|
-
if (red === green && green === blue) {
|
|
39967
|
-
if (red < 8) {
|
|
39968
|
-
return 16;
|
|
39969
|
-
}
|
|
39970
|
-
if (red > 248) {
|
|
39971
|
-
return 231;
|
|
39972
|
-
}
|
|
39973
|
-
return Math.round((red - 8) / 247 * 24) + 232;
|
|
39974
|
-
}
|
|
39975
|
-
return 16 + 36 * Math.round(red / 255 * 5) + 6 * Math.round(green / 255 * 5) + Math.round(blue / 255 * 5);
|
|
39976
|
-
},
|
|
39977
|
-
enumerable: false
|
|
39978
|
-
},
|
|
39979
|
-
hexToRgb: {
|
|
39980
|
-
value: function value1(hex) {
|
|
39981
|
-
var matches = /[a-f\d]{6}|[a-f\d]{3}/i.exec(hex.toString(16));
|
|
39982
|
-
if (!matches) {
|
|
39983
|
-
return [
|
|
39984
|
-
0,
|
|
39985
|
-
0,
|
|
39986
|
-
0
|
|
39987
|
-
];
|
|
39988
|
-
}
|
|
39989
|
-
var _matches = _sliced_to_array(matches, 1), colorString = _matches[0];
|
|
39990
|
-
if (colorString.length === 3) {
|
|
39991
|
-
colorString = _to_consumable_array(colorString).map(function(character) {
|
|
39992
|
-
return character + character;
|
|
39993
|
-
}).join("");
|
|
39994
|
-
}
|
|
39995
|
-
var integer = Number.parseInt(colorString, 16);
|
|
39996
|
-
return [
|
|
39997
|
-
/* eslint-disable no-bitwise */ integer >> 16 & 255,
|
|
39998
|
-
integer >> 8 & 255,
|
|
39999
|
-
integer & 255
|
|
40000
|
-
];
|
|
40001
|
-
},
|
|
40002
|
-
enumerable: false
|
|
40003
|
-
},
|
|
40004
|
-
hexToAnsi256: {
|
|
40005
|
-
value: function(hex) {
|
|
40006
|
-
return (_styles = styles).rgbToAnsi256.apply(_styles, _to_consumable_array(styles.hexToRgb(hex)));
|
|
40007
|
-
},
|
|
40008
|
-
enumerable: false
|
|
40009
|
-
},
|
|
40010
|
-
ansi256ToAnsi: {
|
|
40011
|
-
value: function value1(code2) {
|
|
40012
|
-
if (code2 < 8) {
|
|
40013
|
-
return 30 + code2;
|
|
40014
|
-
}
|
|
40015
|
-
if (code2 < 16) {
|
|
40016
|
-
return 90 + (code2 - 8);
|
|
40017
|
-
}
|
|
40018
|
-
var red;
|
|
40019
|
-
var green;
|
|
40020
|
-
var blue;
|
|
40021
|
-
if (code2 >= 232) {
|
|
40022
|
-
red = ((code2 - 232) * 10 + 8) / 255;
|
|
40023
|
-
green = red;
|
|
40024
|
-
blue = red;
|
|
40025
|
-
} else {
|
|
40026
|
-
code2 -= 16;
|
|
40027
|
-
var remainder = code2 % 36;
|
|
40028
|
-
red = Math.floor(code2 / 36) / 5;
|
|
40029
|
-
green = Math.floor(remainder / 6) / 5;
|
|
40030
|
-
blue = remainder % 6 / 5;
|
|
40031
|
-
}
|
|
40032
|
-
var value1 = Math.max(red, green, blue) * 2;
|
|
40033
|
-
if (value1 === 0) {
|
|
40034
|
-
return 30;
|
|
40035
|
-
}
|
|
40036
|
-
var result = 30 + (Math.round(blue) << 2 | Math.round(green) << 1 | Math.round(red));
|
|
40037
|
-
if (value1 === 2) {
|
|
40038
|
-
result += 60;
|
|
40039
|
-
}
|
|
40040
|
-
return result;
|
|
40041
|
-
},
|
|
40042
|
-
enumerable: false
|
|
40043
|
-
},
|
|
40044
|
-
rgbToAnsi: {
|
|
40045
|
-
value: function(red, green, blue) {
|
|
40046
|
-
return styles.ansi256ToAnsi(styles.rgbToAnsi256(red, green, blue));
|
|
40047
|
-
},
|
|
40048
|
-
enumerable: false
|
|
40049
|
-
},
|
|
40050
|
-
hexToAnsi: {
|
|
40051
|
-
value: function(hex) {
|
|
40052
|
-
return styles.ansi256ToAnsi(styles.hexToAnsi256(hex));
|
|
40053
|
-
},
|
|
40054
|
-
enumerable: false
|
|
40055
|
-
}
|
|
40056
|
-
});
|
|
40057
|
-
return styles;
|
|
40058
|
-
}
|
|
40059
|
-
var ansiStyles = assembleStyles();
|
|
40060
|
-
var ansi_styles_default = ansiStyles;
|
|
40061
|
-
// node_modules/chalk/source/vendor/supports-color/index.js
|
|
40062
|
-
var import_node_process = __toESM(require("process"), 1);
|
|
40063
|
-
var import_node_os = __toESM(require("os"), 1);
|
|
40064
|
-
var import_node_tty = __toESM(require("tty"), 1);
|
|
40065
|
-
function hasFlag(flag) {
|
|
40066
|
-
var argv = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : globalThis.Deno ? globalThis.Deno.args : import_node_process.default.argv;
|
|
40067
|
-
var prefix2 = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
40068
|
-
var position = argv.indexOf(prefix2 + flag);
|
|
40069
|
-
var terminatorPosition = argv.indexOf("--");
|
|
40070
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
40071
|
-
}
|
|
40072
|
-
var env = import_node_process.default.env;
|
|
40073
|
-
var flagForceColor;
|
|
40074
|
-
if (hasFlag("no-color") || hasFlag("no-colors") || hasFlag("color=false") || hasFlag("color=never")) {
|
|
40075
|
-
flagForceColor = 0;
|
|
40076
|
-
} else if (hasFlag("color") || hasFlag("colors") || hasFlag("color=true") || hasFlag("color=always")) {
|
|
40077
|
-
flagForceColor = 1;
|
|
40078
|
-
}
|
|
40079
|
-
function envForceColor() {
|
|
40080
|
-
if ("FORCE_COLOR" in env) {
|
|
40081
|
-
if (env.FORCE_COLOR === "true") {
|
|
40082
|
-
return 1;
|
|
40083
|
-
}
|
|
40084
|
-
if (env.FORCE_COLOR === "false") {
|
|
40085
|
-
return 0;
|
|
40086
|
-
}
|
|
40087
|
-
return env.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env.FORCE_COLOR, 10), 3);
|
|
40088
|
-
}
|
|
40089
|
-
}
|
|
40090
|
-
function translateLevel(level) {
|
|
40091
|
-
if (level === 0) {
|
|
40092
|
-
return false;
|
|
40093
|
-
}
|
|
40094
|
-
return {
|
|
40095
|
-
level: level,
|
|
40096
|
-
hasBasic: true,
|
|
40097
|
-
has256: level >= 2,
|
|
40098
|
-
has16m: level >= 3
|
|
40099
|
-
};
|
|
40100
|
-
}
|
|
40101
|
-
function _supportsColor(haveStream) {
|
|
40102
|
-
var _ref = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, streamIsTTY = _ref.streamIsTTY, _ref_sniffFlags = _ref.sniffFlags, sniffFlags = _ref_sniffFlags === void 0 ? true : _ref_sniffFlags;
|
|
40103
|
-
var noFlagForceColor = envForceColor();
|
|
40104
|
-
if (noFlagForceColor !== void 0) {
|
|
40105
|
-
flagForceColor = noFlagForceColor;
|
|
40106
|
-
}
|
|
40107
|
-
var forceColor = sniffFlags ? flagForceColor : noFlagForceColor;
|
|
40108
|
-
if (forceColor === 0) {
|
|
40109
|
-
return 0;
|
|
40110
|
-
}
|
|
40111
|
-
if (sniffFlags) {
|
|
40112
|
-
if (hasFlag("color=16m") || hasFlag("color=full") || hasFlag("color=truecolor")) {
|
|
40113
|
-
return 3;
|
|
40114
|
-
}
|
|
40115
|
-
if (hasFlag("color=256")) {
|
|
40116
|
-
return 2;
|
|
40117
|
-
}
|
|
40118
|
-
}
|
|
40119
|
-
if ("TF_BUILD" in env && "AGENT_NAME" in env) {
|
|
40120
|
-
return 1;
|
|
40121
|
-
}
|
|
40122
|
-
if (haveStream && !streamIsTTY && forceColor === void 0) {
|
|
40123
|
-
return 0;
|
|
40124
|
-
}
|
|
40125
|
-
var min = forceColor || 0;
|
|
40126
|
-
if (env.TERM === "dumb") {
|
|
40127
|
-
return min;
|
|
40128
|
-
}
|
|
40129
|
-
if (import_node_process.default.platform === "win32") {
|
|
40130
|
-
var osRelease = import_node_os.default.release().split(".");
|
|
40131
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
40132
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
40133
|
-
}
|
|
40134
|
-
return 1;
|
|
40135
|
-
}
|
|
40136
|
-
if ("CI" in env) {
|
|
40137
|
-
if ("GITHUB_ACTIONS" in env || "GITEA_ACTIONS" in env) {
|
|
40138
|
-
return 3;
|
|
40139
|
-
}
|
|
40140
|
-
if ([
|
|
40141
|
-
"TRAVIS",
|
|
40142
|
-
"CIRCLECI",
|
|
40143
|
-
"APPVEYOR",
|
|
40144
|
-
"GITLAB_CI",
|
|
40145
|
-
"BUILDKITE",
|
|
40146
|
-
"DRONE"
|
|
40147
|
-
].some(function(sign) {
|
|
40148
|
-
return sign in env;
|
|
40149
|
-
}) || env.CI_NAME === "codeship") {
|
|
40150
|
-
return 1;
|
|
40151
|
-
}
|
|
40152
|
-
return min;
|
|
40153
|
-
}
|
|
40154
|
-
if ("TEAMCITY_VERSION" in env) {
|
|
40155
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env.TEAMCITY_VERSION) ? 1 : 0;
|
|
40156
|
-
}
|
|
40157
|
-
if (env.COLORTERM === "truecolor") {
|
|
40158
|
-
return 3;
|
|
40159
|
-
}
|
|
40160
|
-
if (env.TERM === "xterm-kitty") {
|
|
40161
|
-
return 3;
|
|
40162
|
-
}
|
|
40163
|
-
if ("TERM_PROGRAM" in env) {
|
|
40164
|
-
var version = Number.parseInt((env.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
40165
|
-
switch(env.TERM_PROGRAM){
|
|
40166
|
-
case "iTerm.app":
|
|
40167
|
-
{
|
|
40168
|
-
return version >= 3 ? 3 : 2;
|
|
40169
|
-
}
|
|
40170
|
-
case "Apple_Terminal":
|
|
40171
|
-
{
|
|
40172
|
-
return 2;
|
|
40173
|
-
}
|
|
40174
|
-
}
|
|
40175
|
-
}
|
|
40176
|
-
if (/-256(color)?$/i.test(env.TERM)) {
|
|
40177
|
-
return 2;
|
|
40178
|
-
}
|
|
40179
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env.TERM)) {
|
|
40180
|
-
return 1;
|
|
40181
|
-
}
|
|
40182
|
-
if ("COLORTERM" in env) {
|
|
40183
|
-
return 1;
|
|
40184
|
-
}
|
|
40185
|
-
return min;
|
|
40186
|
-
}
|
|
40187
|
-
function createSupportsColor(stream) {
|
|
40188
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40189
|
-
var level = _supportsColor(stream, _object_spread({
|
|
40190
|
-
streamIsTTY: stream && stream.isTTY
|
|
40191
|
-
}, options));
|
|
40192
|
-
return translateLevel(level);
|
|
40193
|
-
}
|
|
40194
|
-
var supportsColor = {
|
|
40195
|
-
stdout: createSupportsColor({
|
|
40196
|
-
isTTY: import_node_tty.default.isatty(1)
|
|
40197
|
-
}),
|
|
40198
|
-
stderr: createSupportsColor({
|
|
40199
|
-
isTTY: import_node_tty.default.isatty(2)
|
|
40200
|
-
})
|
|
40201
|
-
};
|
|
40202
|
-
var supports_color_default = supportsColor;
|
|
40203
|
-
// node_modules/chalk/source/utilities.js
|
|
40204
|
-
function stringReplaceAll(string, substring, replacer) {
|
|
40205
|
-
var index3 = string.indexOf(substring);
|
|
40206
|
-
if (index3 === -1) {
|
|
40207
|
-
return string;
|
|
40208
|
-
}
|
|
40209
|
-
var substringLength = substring.length;
|
|
40210
|
-
var endIndex = 0;
|
|
40211
|
-
var returnValue = "";
|
|
40212
|
-
do {
|
|
40213
|
-
returnValue += string.slice(endIndex, index3) + substring + replacer;
|
|
40214
|
-
endIndex = index3 + substringLength;
|
|
40215
|
-
index3 = string.indexOf(substring, endIndex);
|
|
40216
|
-
}while (index3 !== -1);
|
|
40217
|
-
returnValue += string.slice(endIndex);
|
|
40218
|
-
return returnValue;
|
|
40219
|
-
}
|
|
40220
|
-
function stringEncaseCRLFWithFirstIndex(string, prefix2, postfix2, index3) {
|
|
40221
|
-
var endIndex = 0;
|
|
40222
|
-
var returnValue = "";
|
|
40223
|
-
do {
|
|
40224
|
-
var gotCR = string[index3 - 1] === "\r";
|
|
40225
|
-
returnValue += string.slice(endIndex, gotCR ? index3 - 1 : index3) + prefix2 + (gotCR ? "\r\n" : "\n") + postfix2;
|
|
40226
|
-
endIndex = index3 + 1;
|
|
40227
|
-
index3 = string.indexOf("\n", endIndex);
|
|
40228
|
-
}while (index3 !== -1);
|
|
40229
|
-
returnValue += string.slice(endIndex);
|
|
40230
|
-
return returnValue;
|
|
40231
|
-
}
|
|
40232
|
-
// node_modules/chalk/source/index.js
|
|
40233
|
-
var stdoutColor = supports_color_default.stdout, stderrColor = supports_color_default.stderr;
|
|
40234
|
-
var GENERATOR = Symbol("GENERATOR");
|
|
40235
|
-
var STYLER = Symbol("STYLER");
|
|
40236
|
-
var IS_EMPTY = Symbol("IS_EMPTY");
|
|
40237
|
-
var levelMapping = [
|
|
40238
|
-
"ansi",
|
|
40239
|
-
"ansi",
|
|
40240
|
-
"ansi256",
|
|
40241
|
-
"ansi16m"
|
|
40242
|
-
];
|
|
40243
|
-
var styles2 = /* @__PURE__ */ Object.create(null);
|
|
40244
|
-
var applyOptions = function(object) {
|
|
40245
|
-
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40246
|
-
if (options.level && !(Number.isInteger(options.level) && options.level >= 0 && options.level <= 3)) {
|
|
40247
|
-
throw new Error("The `level` option should be an integer from 0 to 3");
|
|
40248
|
-
}
|
|
40249
|
-
var colorLevel = stdoutColor ? stdoutColor.level : 0;
|
|
40250
|
-
object.level = options.level === void 0 ? colorLevel : options.level;
|
|
40251
|
-
};
|
|
40252
|
-
var Chalk = function Chalk(options) {
|
|
40253
|
-
"use strict";
|
|
40254
|
-
_class_call_check(this, Chalk);
|
|
40255
|
-
return chalkFactory(options);
|
|
40256
|
-
};
|
|
40257
|
-
var chalkFactory = function(options) {
|
|
40258
|
-
var chalk2 = function() {
|
|
40259
|
-
for(var _len = arguments.length, strings = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40260
|
-
strings[_key] = arguments[_key];
|
|
40261
|
-
}
|
|
40262
|
-
return strings.join(" ");
|
|
40263
|
-
};
|
|
40264
|
-
applyOptions(chalk2, options);
|
|
40265
|
-
Object.setPrototypeOf(chalk2, createChalk.prototype);
|
|
40266
|
-
return chalk2;
|
|
40267
|
-
};
|
|
40268
|
-
function createChalk(options) {
|
|
40269
|
-
return chalkFactory(options);
|
|
40270
|
-
}
|
|
40271
|
-
Object.setPrototypeOf(createChalk.prototype, Function.prototype);
|
|
40272
|
-
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
40273
|
-
try {
|
|
40274
|
-
var _loop = function() {
|
|
40275
|
-
var _step_value = _sliced_to_array(_step2.value, 2), styleName = _step_value[0], style = _step_value[1];
|
|
40276
|
-
styles2[styleName] = {
|
|
40277
|
-
get: function get() {
|
|
40278
|
-
var builder = createBuilder(this, createStyler(style.open, style.close, this[STYLER]), this[IS_EMPTY]);
|
|
40279
|
-
Object.defineProperty(this, styleName, {
|
|
40280
|
-
value: builder
|
|
40281
|
-
});
|
|
40282
|
-
return builder;
|
|
40283
|
-
}
|
|
40284
|
-
};
|
|
40285
|
-
};
|
|
40286
|
-
for(var _iterator2 = Object.entries(ansi_styles_default)[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
|
|
40287
|
-
} catch (err) {
|
|
40288
|
-
_didIteratorError2 = true;
|
|
40289
|
-
_iteratorError2 = err;
|
|
40290
|
-
} finally{
|
|
40291
|
-
try {
|
|
40292
|
-
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
40293
|
-
_iterator2.return();
|
|
40294
|
-
}
|
|
40295
|
-
} finally{
|
|
40296
|
-
if (_didIteratorError2) {
|
|
40297
|
-
throw _iteratorError2;
|
|
40298
|
-
}
|
|
40299
|
-
}
|
|
40300
|
-
}
|
|
40301
|
-
styles2.visible = {
|
|
40302
|
-
get: function get() {
|
|
40303
|
-
var builder = createBuilder(this, this[STYLER], true);
|
|
40304
|
-
Object.defineProperty(this, "visible", {
|
|
40305
|
-
value: builder
|
|
40306
|
-
});
|
|
40307
|
-
return builder;
|
|
40308
|
-
}
|
|
40309
|
-
};
|
|
40310
|
-
var getModelAnsi = function(model, level, type) {
|
|
40311
|
-
for(var _len = arguments.length, arguments_ = new Array(_len > 3 ? _len - 3 : 0), _key = 3; _key < _len; _key++){
|
|
40312
|
-
arguments_[_key - 3] = arguments[_key];
|
|
40313
|
-
}
|
|
40314
|
-
var _ansi_styles_default_type;
|
|
40315
|
-
if (model === "rgb") {
|
|
40316
|
-
var _ansi_styles_default;
|
|
40317
|
-
if (level === "ansi16m") {
|
|
40318
|
-
var _ansi_styles_default_type1;
|
|
40319
|
-
return (_ansi_styles_default_type1 = ansi_styles_default[type]).ansi16m.apply(_ansi_styles_default_type1, _to_consumable_array(arguments_));
|
|
40320
|
-
}
|
|
40321
|
-
if (level === "ansi256") {
|
|
40322
|
-
var _ansi_styles_default1;
|
|
40323
|
-
return ansi_styles_default[type].ansi256((_ansi_styles_default1 = ansi_styles_default).rgbToAnsi256.apply(_ansi_styles_default1, _to_consumable_array(arguments_)));
|
|
40324
|
-
}
|
|
40325
|
-
return ansi_styles_default[type].ansi((_ansi_styles_default = ansi_styles_default).rgbToAnsi.apply(_ansi_styles_default, _to_consumable_array(arguments_)));
|
|
40326
|
-
}
|
|
40327
|
-
if (model === "hex") {
|
|
40328
|
-
var _ansi_styles_default2;
|
|
40329
|
-
return getModelAnsi.apply(void 0, [
|
|
40330
|
-
"rgb",
|
|
40331
|
-
level,
|
|
40332
|
-
type
|
|
40333
|
-
].concat(_to_consumable_array((_ansi_styles_default2 = ansi_styles_default).hexToRgb.apply(_ansi_styles_default2, _to_consumable_array(arguments_)))));
|
|
40334
|
-
}
|
|
40335
|
-
return (_ansi_styles_default_type = ansi_styles_default[type])[model].apply(_ansi_styles_default_type, _to_consumable_array(arguments_));
|
|
40336
|
-
};
|
|
40337
|
-
var usedModels = [
|
|
40338
|
-
"rgb",
|
|
40339
|
-
"hex",
|
|
40340
|
-
"ansi256"
|
|
40341
|
-
];
|
|
40342
|
-
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
40343
|
-
try {
|
|
40344
|
-
var _loop1 = function() {
|
|
40345
|
-
var model = _step3.value;
|
|
40346
|
-
styles2[model] = {
|
|
40347
|
-
get: function get() {
|
|
40348
|
-
var level = this.level;
|
|
40349
|
-
return function() {
|
|
40350
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40351
|
-
arguments_[_key] = arguments[_key];
|
|
40352
|
-
}
|
|
40353
|
-
var styler = createStyler(getModelAnsi.apply(void 0, [
|
|
40354
|
-
model,
|
|
40355
|
-
levelMapping[level],
|
|
40356
|
-
"color"
|
|
40357
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default.color.close, this[STYLER]);
|
|
40358
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
40359
|
-
};
|
|
40360
|
-
}
|
|
40361
|
-
};
|
|
40362
|
-
var bgModel = "bg" + model[0].toUpperCase() + model.slice(1);
|
|
40363
|
-
styles2[bgModel] = {
|
|
40364
|
-
get: function get() {
|
|
40365
|
-
var level = this.level;
|
|
40366
|
-
return function() {
|
|
40367
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40368
|
-
arguments_[_key] = arguments[_key];
|
|
40369
|
-
}
|
|
40370
|
-
var styler = createStyler(getModelAnsi.apply(void 0, [
|
|
40371
|
-
model,
|
|
40372
|
-
levelMapping[level],
|
|
40373
|
-
"bgColor"
|
|
40374
|
-
].concat(_to_consumable_array(arguments_))), ansi_styles_default.bgColor.close, this[STYLER]);
|
|
40375
|
-
return createBuilder(this, styler, this[IS_EMPTY]);
|
|
40376
|
-
};
|
|
40377
|
-
}
|
|
40378
|
-
};
|
|
40379
|
-
};
|
|
40380
|
-
for(var _iterator3 = usedModels[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true)_loop1();
|
|
40381
|
-
} catch (err) {
|
|
40382
|
-
_didIteratorError3 = true;
|
|
40383
|
-
_iteratorError3 = err;
|
|
40384
|
-
} finally{
|
|
40385
|
-
try {
|
|
40386
|
-
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
40387
|
-
_iterator3.return();
|
|
40388
|
-
}
|
|
40389
|
-
} finally{
|
|
40390
|
-
if (_didIteratorError3) {
|
|
40391
|
-
throw _iteratorError3;
|
|
40392
|
-
}
|
|
40393
|
-
}
|
|
40394
|
-
}
|
|
40395
|
-
var proto = Object.defineProperties(function() {}, _object_spread_props(_object_spread({}, styles2), {
|
|
40396
|
-
level: {
|
|
40397
|
-
enumerable: true,
|
|
40398
|
-
get: function get() {
|
|
40399
|
-
return this[GENERATOR].level;
|
|
40400
|
-
},
|
|
40401
|
-
set: function set(level) {
|
|
40402
|
-
this[GENERATOR].level = level;
|
|
40403
|
-
}
|
|
40404
|
-
}
|
|
40405
|
-
}));
|
|
40406
|
-
var createStyler = function(open, close, parent) {
|
|
40407
|
-
var openAll;
|
|
40408
|
-
var closeAll;
|
|
40409
|
-
if (parent === void 0) {
|
|
40410
|
-
openAll = open;
|
|
40411
|
-
closeAll = close;
|
|
40412
|
-
} else {
|
|
40413
|
-
openAll = parent.openAll + open;
|
|
40414
|
-
closeAll = close + parent.closeAll;
|
|
40415
|
-
}
|
|
40416
|
-
return {
|
|
40417
|
-
open: open,
|
|
40418
|
-
close: close,
|
|
40419
|
-
openAll: openAll,
|
|
40420
|
-
closeAll: closeAll,
|
|
40421
|
-
parent: parent
|
|
40422
|
-
};
|
|
40423
|
-
};
|
|
40424
|
-
var createBuilder = function(self, _styler, _isEmpty) {
|
|
40425
|
-
var builder = function() {
|
|
40426
|
-
for(var _len = arguments.length, arguments_ = new Array(_len), _key = 0; _key < _len; _key++){
|
|
40427
|
-
arguments_[_key] = arguments[_key];
|
|
40428
|
-
}
|
|
40429
|
-
return applyStyle(builder, arguments_.length === 1 ? "" + arguments_[0] : arguments_.join(" "));
|
|
40430
|
-
};
|
|
40431
|
-
Object.setPrototypeOf(builder, proto);
|
|
40432
|
-
builder[GENERATOR] = self;
|
|
40433
|
-
builder[STYLER] = _styler;
|
|
40434
|
-
builder[IS_EMPTY] = _isEmpty;
|
|
40435
|
-
return builder;
|
|
40436
|
-
};
|
|
40437
|
-
var applyStyle = function(self, string) {
|
|
40438
|
-
if (self.level <= 0 || !string) {
|
|
40439
|
-
return self[IS_EMPTY] ? "" : string;
|
|
40440
|
-
}
|
|
40441
|
-
var styler = self[STYLER];
|
|
40442
|
-
if (styler === void 0) {
|
|
40443
|
-
return string;
|
|
40444
|
-
}
|
|
40445
|
-
var openAll = styler.openAll, closeAll = styler.closeAll;
|
|
40446
|
-
if (string.includes("\x1b")) {
|
|
40447
|
-
while(styler !== void 0){
|
|
40448
|
-
string = stringReplaceAll(string, styler.close, styler.open);
|
|
40449
|
-
styler = styler.parent;
|
|
40450
|
-
}
|
|
40451
|
-
}
|
|
40452
|
-
var lfIndex = string.indexOf("\n");
|
|
40453
|
-
if (lfIndex !== -1) {
|
|
40454
|
-
string = stringEncaseCRLFWithFirstIndex(string, closeAll, openAll, lfIndex);
|
|
40455
|
-
}
|
|
40456
|
-
return openAll + string + closeAll;
|
|
40457
|
-
};
|
|
40458
|
-
Object.defineProperties(createChalk.prototype, styles2);
|
|
40459
|
-
var chalk = createChalk();
|
|
40460
|
-
var chalkStderr = createChalk({
|
|
40461
|
-
level: stderrColor ? stderrColor.level : 0
|
|
40462
|
-
});
|
|
40463
|
-
var source_default = chalk;
|
|
40464
|
-
// node_modules/@babel/highlight/lib/index.js
|
|
40465
39682
|
var sometimesKeywords = /* @__PURE__ */ new Set([
|
|
40466
39683
|
"as",
|
|
40467
39684
|
"async",
|
|
@@ -40470,17 +39687,17 @@ var sometimesKeywords = /* @__PURE__ */ new Set([
|
|
|
40470
39687
|
"of",
|
|
40471
39688
|
"set"
|
|
40472
39689
|
]);
|
|
40473
|
-
function getDefs(
|
|
39690
|
+
function getDefs(colors3) {
|
|
40474
39691
|
return {
|
|
40475
|
-
keyword:
|
|
40476
|
-
capitalized:
|
|
40477
|
-
jsxIdentifier:
|
|
40478
|
-
punctuator:
|
|
40479
|
-
number:
|
|
40480
|
-
string:
|
|
40481
|
-
regex:
|
|
40482
|
-
comment:
|
|
40483
|
-
invalid:
|
|
39692
|
+
keyword: colors3.cyan,
|
|
39693
|
+
capitalized: colors3.yellow,
|
|
39694
|
+
jsxIdentifier: colors3.yellow,
|
|
39695
|
+
punctuator: colors3.yellow,
|
|
39696
|
+
number: colors3.magenta,
|
|
39697
|
+
string: colors3.green,
|
|
39698
|
+
regex: colors3.magenta,
|
|
39699
|
+
comment: colors3.gray,
|
|
39700
|
+
invalid: compose(compose(colors3.white, colors3.bgRed), colors3.bold)
|
|
40484
39701
|
};
|
|
40485
39702
|
}
|
|
40486
39703
|
var NEWLINE = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -40733,43 +39950,46 @@ var tokenize;
|
|
|
40733
39950
|
return highlighted;
|
|
40734
39951
|
}
|
|
40735
39952
|
function shouldHighlight(options) {
|
|
40736
|
-
return
|
|
39953
|
+
return colors.isColorSupported || options.forceColor;
|
|
40737
39954
|
}
|
|
40738
|
-
var
|
|
40739
|
-
function
|
|
39955
|
+
var pcWithForcedColor = void 0;
|
|
39956
|
+
function getColors(forceColor) {
|
|
40740
39957
|
if (forceColor) {
|
|
40741
|
-
|
|
40742
|
-
|
|
40743
|
-
});
|
|
40744
|
-
return chalkWithForcedColor;
|
|
39958
|
+
pcWithForcedColor !== null && pcWithForcedColor !== void 0 ? pcWithForcedColor : pcWithForcedColor = (0, import_picocolors.createColors)(true);
|
|
39959
|
+
return pcWithForcedColor;
|
|
40745
39960
|
}
|
|
40746
|
-
return
|
|
39961
|
+
return colors;
|
|
40747
39962
|
}
|
|
40748
39963
|
function highlight(code2) {
|
|
40749
39964
|
var options = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
40750
39965
|
if (code2 !== "" && shouldHighlight(options)) {
|
|
40751
|
-
var defs = getDefs(
|
|
39966
|
+
var defs = getDefs(getColors(options.forceColor));
|
|
40752
39967
|
return highlightTokens(defs, code2);
|
|
40753
39968
|
} else {
|
|
40754
39969
|
return code2;
|
|
40755
39970
|
}
|
|
40756
39971
|
}
|
|
40757
39972
|
// node_modules/@babel/code-frame/lib/index.js
|
|
40758
|
-
var
|
|
40759
|
-
|
|
39973
|
+
var import_picocolors2 = __toESM(require_picocolors(), 1);
|
|
39974
|
+
var colors2 = (typeof process === "undefined" ? "undefined" : _type_of(process)) === "object" && (process.env.FORCE_COLOR === "0" || process.env.FORCE_COLOR === "false") ? (0, import_picocolors2.createColors)(false) : import_picocolors2.default;
|
|
39975
|
+
var compose2 = function(f, g) {
|
|
39976
|
+
return function(v) {
|
|
39977
|
+
return f(g(v));
|
|
39978
|
+
};
|
|
39979
|
+
};
|
|
39980
|
+
var pcWithForcedColor2 = void 0;
|
|
39981
|
+
function getColors2(forceColor) {
|
|
40760
39982
|
if (forceColor) {
|
|
40761
|
-
|
|
40762
|
-
|
|
40763
|
-
});
|
|
40764
|
-
return chalkWithForcedColor2;
|
|
39983
|
+
pcWithForcedColor2 !== null && pcWithForcedColor2 !== void 0 ? pcWithForcedColor2 : pcWithForcedColor2 = (0, import_picocolors2.createColors)(true);
|
|
39984
|
+
return pcWithForcedColor2;
|
|
40765
39985
|
}
|
|
40766
|
-
return
|
|
39986
|
+
return colors2;
|
|
40767
39987
|
}
|
|
40768
|
-
function getDefs2(
|
|
39988
|
+
function getDefs2(colors3) {
|
|
40769
39989
|
return {
|
|
40770
|
-
gutter:
|
|
40771
|
-
marker:
|
|
40772
|
-
message:
|
|
39990
|
+
gutter: colors3.gray,
|
|
39991
|
+
marker: compose2(colors3.red, colors3.bold),
|
|
39992
|
+
message: compose2(colors3.red, colors3.bold)
|
|
40773
39993
|
};
|
|
40774
39994
|
}
|
|
40775
39995
|
var NEWLINE2 = /\r\n|[\n\r\u2028\u2029]/;
|
|
@@ -40844,10 +40064,10 @@ function getMarkerLines(loc, source, opts) {
|
|
|
40844
40064
|
function codeFrameColumns(rawLines, loc) {
|
|
40845
40065
|
var opts = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
40846
40066
|
var highlighted = (opts.highlightCode || opts.forceColor) && shouldHighlight(opts);
|
|
40847
|
-
var
|
|
40848
|
-
var defs = getDefs2(
|
|
40849
|
-
var maybeHighlight = function(
|
|
40850
|
-
return highlighted ?
|
|
40067
|
+
var colors3 = getColors2(opts.forceColor);
|
|
40068
|
+
var defs = getDefs2(colors3);
|
|
40069
|
+
var maybeHighlight = function(fmt, string) {
|
|
40070
|
+
return highlighted ? fmt(string) : string;
|
|
40851
40071
|
};
|
|
40852
40072
|
var lines = rawLines.split(NEWLINE2);
|
|
40853
40073
|
var _getMarkerLines = getMarkerLines(loc, lines, opts), start = _getMarkerLines.start, end = _getMarkerLines.end, markerLines = _getMarkerLines.markerLines;
|
|
@@ -40890,7 +40110,7 @@ function codeFrameColumns(rawLines, loc) {
|
|
|
40890
40110
|
frame = "".concat(" ".repeat(numberMaxWidth + 1)).concat(opts.message, "\n").concat(frame);
|
|
40891
40111
|
}
|
|
40892
40112
|
if (highlighted) {
|
|
40893
|
-
return
|
|
40113
|
+
return colors3.reset(frame);
|
|
40894
40114
|
} else {
|
|
40895
40115
|
return frame;
|
|
40896
40116
|
}
|
|
@@ -40984,7 +40204,7 @@ function merge(a, b) {
|
|
|
40984
40204
|
};
|
|
40985
40205
|
}
|
|
40986
40206
|
function validate$12(opts) {
|
|
40987
|
-
if (opts != null && typeof opts !== "object") {
|
|
40207
|
+
if (opts != null && (typeof opts === "undefined" ? "undefined" : _type_of(opts)) !== "object") {
|
|
40988
40208
|
throw new Error("Unknown template options.");
|
|
40989
40209
|
}
|
|
40990
40210
|
var _ref = opts || {}, placeholderWhitelist = _ref.placeholderWhitelist, placeholderPattern = _ref.placeholderPattern, preserveComments = _ref.preserveComments, syntacticPlaceholders = _ref.syntacticPlaceholders, parser = _objectWithoutPropertiesLoose2(_ref, _excluded3);
|
|
@@ -41017,7 +40237,7 @@ function normalizeReplacements(replacements) {
|
|
|
41017
40237
|
acc["$" + i] = replacement;
|
|
41018
40238
|
return acc;
|
|
41019
40239
|
}, {});
|
|
41020
|
-
} else if (typeof replacements === "object" || replacements == null) {
|
|
40240
|
+
} else if ((typeof replacements === "undefined" ? "undefined" : _type_of(replacements)) === "object" || replacements == null) {
|
|
41021
40241
|
return replacements || void 0;
|
|
41022
40242
|
}
|
|
41023
40243
|
throw new Error("Template replacements must be an array, object, null, or undefined");
|
|
@@ -41176,7 +40396,7 @@ function applyReplacement(placeholder2, ast, replacement) {
|
|
|
41176
40396
|
replacement = replacement.map(function(node) {
|
|
41177
40397
|
return cloneNode2(node);
|
|
41178
40398
|
});
|
|
41179
|
-
} else if (typeof replacement === "object") {
|
|
40399
|
+
} else if ((typeof replacement === "undefined" ? "undefined" : _type_of(replacement)) === "object") {
|
|
41180
40400
|
replacement = cloneNode2(replacement);
|
|
41181
40401
|
}
|
|
41182
40402
|
}
|
|
@@ -41328,7 +40548,7 @@ function createTemplateBuilder(formatter, defaultOpts) {
|
|
|
41328
40548
|
templateFnCache.set(tpl, builder);
|
|
41329
40549
|
}
|
|
41330
40550
|
return extendedTrace(builder(args));
|
|
41331
|
-
} else if (typeof tpl === "object" && tpl) {
|
|
40551
|
+
} else if ((typeof tpl === "undefined" ? "undefined" : _type_of(tpl)) === "object" && tpl) {
|
|
41332
40552
|
if (args.length > 0) throw new Error("Unexpected extra params.");
|
|
41333
40553
|
return createTemplateBuilder(formatter, merge(cachedOpts, validate$12(tpl)));
|
|
41334
40554
|
}
|
|
@@ -41385,9 +40605,6 @@ var index = Object.assign(smart.bind(void 0), {
|
|
|
41385
40605
|
ast: smart.ast
|
|
41386
40606
|
});
|
|
41387
40607
|
// node_modules/@jridgewell/set-array/dist/set-array.mjs
|
|
41388
|
-
var get;
|
|
41389
|
-
var put;
|
|
41390
|
-
var pop;
|
|
41391
40608
|
var SetArray = function SetArray() {
|
|
41392
40609
|
"use strict";
|
|
41393
40610
|
_class_call_check(this, SetArray);
|
|
@@ -41396,23 +40613,19 @@ var SetArray = function SetArray() {
|
|
|
41396
40613
|
};
|
|
41397
40614
|
this.array = [];
|
|
41398
40615
|
};
|
|
41399
|
-
|
|
41400
|
-
|
|
41401
|
-
|
|
41402
|
-
|
|
41403
|
-
|
|
41404
|
-
|
|
41405
|
-
|
|
41406
|
-
|
|
41407
|
-
|
|
41408
|
-
|
|
41409
|
-
|
|
41410
|
-
|
|
41411
|
-
|
|
41412
|
-
var last2 = array.pop();
|
|
41413
|
-
indexes[last2] = void 0;
|
|
41414
|
-
};
|
|
41415
|
-
})();
|
|
40616
|
+
function cast(set) {
|
|
40617
|
+
return set;
|
|
40618
|
+
}
|
|
40619
|
+
function get(setarr, key) {
|
|
40620
|
+
return cast(setarr)._indexes[key];
|
|
40621
|
+
}
|
|
40622
|
+
function put(setarr, key) {
|
|
40623
|
+
var index3 = get(setarr, key);
|
|
40624
|
+
if (index3 !== void 0) return index3;
|
|
40625
|
+
var _cast = cast(setarr), array = _cast.array, indexes = _cast._indexes;
|
|
40626
|
+
var length = array.push(key);
|
|
40627
|
+
return indexes[key] = length - 1;
|
|
40628
|
+
}
|
|
41416
40629
|
// node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs
|
|
41417
40630
|
var comma = ",".charCodeAt(0);
|
|
41418
40631
|
var semicolon = ";".charCodeAt(0);
|
|
@@ -41845,6 +41058,7 @@ var TraceMap = function TraceMap(map, mapUrl) {
|
|
|
41845
41058
|
this.sourceRoot = sourceRoot;
|
|
41846
41059
|
this.sources = sources;
|
|
41847
41060
|
this.sourcesContent = sourcesContent;
|
|
41061
|
+
this.ignoreList = parsed.ignoreList || parsed.x_google_ignoreList || void 0;
|
|
41848
41062
|
var from = resolve2(sourceRoot || "", stripFilename(mapUrl));
|
|
41849
41063
|
this.resolvedSources = sources.map(function(s) {
|
|
41850
41064
|
return resolve2(s || "", from);
|
|
@@ -41861,12 +41075,12 @@ var TraceMap = function TraceMap(map, mapUrl) {
|
|
|
41861
41075
|
this._bySources = void 0;
|
|
41862
41076
|
this._bySourceMemos = void 0;
|
|
41863
41077
|
};
|
|
41864
|
-
function
|
|
41078
|
+
function cast2(map) {
|
|
41865
41079
|
return map;
|
|
41866
41080
|
}
|
|
41867
41081
|
function decodedMappings(map) {
|
|
41868
41082
|
var _a;
|
|
41869
|
-
return (_a =
|
|
41083
|
+
return (_a = cast2(map))._decoded || (_a._decoded = decode(cast2(map)._encoded));
|
|
41870
41084
|
}
|
|
41871
41085
|
function originalPositionFor(map, needle) {
|
|
41872
41086
|
var line = needle.line, column = needle.column, bias = needle.bias;
|
|
@@ -41876,7 +41090,7 @@ function originalPositionFor(map, needle) {
|
|
|
41876
41090
|
var decoded = decodedMappings(map);
|
|
41877
41091
|
if (line >= decoded.length) return OMapping(null, null, null, null);
|
|
41878
41092
|
var segments = decoded[line];
|
|
41879
|
-
var index3 = traceSegmentInternal(segments,
|
|
41093
|
+
var index3 = traceSegmentInternal(segments, cast2(map)._decodedMemo, line, column, bias || GREATEST_LOWER_BOUND);
|
|
41880
41094
|
if (index3 === -1) return OMapping(null, null, null, null);
|
|
41881
41095
|
var segment = segments[index3];
|
|
41882
41096
|
if (segment.length === 1) return OMapping(null, null, null, null);
|
|
@@ -41916,19 +41130,21 @@ var GenMapping = function GenMapping() {
|
|
|
41916
41130
|
this._mappings = [];
|
|
41917
41131
|
this.file = file2;
|
|
41918
41132
|
this.sourceRoot = sourceRoot;
|
|
41133
|
+
this._ignoreList = new SetArray();
|
|
41919
41134
|
};
|
|
41920
|
-
function
|
|
41135
|
+
function cast3(map) {
|
|
41921
41136
|
return map;
|
|
41922
41137
|
}
|
|
41923
41138
|
var maybeAddMapping = function(map, mapping) {
|
|
41924
41139
|
return addMappingInternal(true, map, mapping);
|
|
41925
41140
|
};
|
|
41926
41141
|
function setSourceContent(map, source, content) {
|
|
41927
|
-
var
|
|
41928
|
-
|
|
41142
|
+
var _cast3 = cast3(map), sources = _cast3._sources, sourcesContent = _cast3._sourcesContent;
|
|
41143
|
+
var index3 = put(sources, source);
|
|
41144
|
+
sourcesContent[index3] = content;
|
|
41929
41145
|
}
|
|
41930
41146
|
function toDecodedMap(map) {
|
|
41931
|
-
var
|
|
41147
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names, ignoreList = _cast3._ignoreList;
|
|
41932
41148
|
removeEmptyFinalLines(mappings);
|
|
41933
41149
|
return {
|
|
41934
41150
|
version: 3,
|
|
@@ -41937,7 +41153,8 @@ function toDecodedMap(map) {
|
|
|
41937
41153
|
sourceRoot: map.sourceRoot || void 0,
|
|
41938
41154
|
sources: sources.array,
|
|
41939
41155
|
sourcesContent: sourcesContent,
|
|
41940
|
-
mappings: mappings
|
|
41156
|
+
mappings: mappings,
|
|
41157
|
+
ignoreList: ignoreList.array
|
|
41941
41158
|
};
|
|
41942
41159
|
}
|
|
41943
41160
|
function toEncodedMap(map) {
|
|
@@ -41948,7 +41165,7 @@ function toEncodedMap(map) {
|
|
|
41948
41165
|
}
|
|
41949
41166
|
function allMappings(map) {
|
|
41950
41167
|
var out = [];
|
|
41951
|
-
var
|
|
41168
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, names = _cast3._names;
|
|
41952
41169
|
for(var i = 0; i < mappings.length; i++){
|
|
41953
41170
|
var line = mappings[i];
|
|
41954
41171
|
for(var j = 0; j < line.length; j++){
|
|
@@ -41979,7 +41196,7 @@ function allMappings(map) {
|
|
|
41979
41196
|
return out;
|
|
41980
41197
|
}
|
|
41981
41198
|
function addSegmentInternal(skipable, map, genLine, genColumn, source, sourceLine, sourceColumn, name, content) {
|
|
41982
|
-
var
|
|
41199
|
+
var _cast3 = cast3(map), mappings = _cast3._mappings, sources = _cast3._sources, sourcesContent = _cast3._sourcesContent, names = _cast3._names;
|
|
41983
41200
|
var line = getLine(mappings, genLine);
|
|
41984
41201
|
var index3 = getColumnIndex(line, genColumn);
|
|
41985
41202
|
if (!source) {
|
|
@@ -42084,7 +41301,7 @@ var SourceMap = /*#__PURE__*/ function() {
|
|
|
42084
41301
|
}
|
|
42085
41302
|
if (typeof code2 === "string" && !opts.inputSourceMap) {
|
|
42086
41303
|
setSourceContent(map, this._sourceFileName, code2);
|
|
42087
|
-
} else if (typeof code2 === "object") {
|
|
41304
|
+
} else if ((typeof code2 === "undefined" ? "undefined" : _type_of(code2)) === "object") {
|
|
42088
41305
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
42089
41306
|
try {
|
|
42090
41307
|
for(var _iterator = Object.keys(code2)[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
@@ -43123,20 +42340,21 @@ function TaggedTemplateExpression(node) {
|
|
|
43123
42340
|
this.print(node.typeParameters, node);
|
|
43124
42341
|
this.print(node.quasi, node);
|
|
43125
42342
|
}
|
|
43126
|
-
function TemplateElement(
|
|
43127
|
-
|
|
43128
|
-
var isLast = parent.quasis[parent.quasis.length - 1] === node;
|
|
43129
|
-
var value1 = (isFirst ? "`" : "}") + node.value.raw + (isLast ? "`" : "${");
|
|
43130
|
-
this.token(value1, true);
|
|
42343
|
+
function TemplateElement() {
|
|
42344
|
+
throw new Error("TemplateElement printing is handled in TemplateLiteral");
|
|
43131
42345
|
}
|
|
43132
42346
|
function TemplateLiteral(node) {
|
|
43133
42347
|
var quasis = node.quasis;
|
|
42348
|
+
var partRaw = "`";
|
|
43134
42349
|
for(var i = 0; i < quasis.length; i++){
|
|
43135
|
-
|
|
42350
|
+
partRaw += quasis[i].value.raw;
|
|
43136
42351
|
if (i + 1 < quasis.length) {
|
|
42352
|
+
this.token(partRaw + "${", true);
|
|
43137
42353
|
this.print(node.expressions[i], node);
|
|
42354
|
+
partRaw = "}";
|
|
43138
42355
|
}
|
|
43139
42356
|
}
|
|
42357
|
+
this.token(partRaw + "`", true);
|
|
43140
42358
|
}
|
|
43141
42359
|
var isCallExpression3 = lib_exports.isCallExpression, isLiteral2 = lib_exports.isLiteral, isMemberExpression2 = lib_exports.isMemberExpression, isNewExpression3 = lib_exports.isNewExpression;
|
|
43142
42360
|
function UnaryExpression(node) {
|
|
@@ -44272,12 +43490,7 @@ function RecordExpression(node) {
|
|
|
44272
43490
|
var props = node.properties;
|
|
44273
43491
|
var startToken;
|
|
44274
43492
|
var endToken;
|
|
44275
|
-
|
|
44276
|
-
startToken = "{|";
|
|
44277
|
-
endToken = "|}";
|
|
44278
|
-
} else if (this.format.recordAndTupleSyntaxType !== "hash" && this.format.recordAndTupleSyntaxType != null) {
|
|
44279
|
-
throw new Error('The "recordAndTupleSyntaxType" generator option must be "bar" or "hash" ('.concat(JSON.stringify(this.format.recordAndTupleSyntaxType), " received)."));
|
|
44280
|
-
} else {
|
|
43493
|
+
{
|
|
44281
43494
|
startToken = "#{";
|
|
44282
43495
|
endToken = "}";
|
|
44283
43496
|
}
|
|
@@ -44297,14 +43510,9 @@ function TupleExpression(node) {
|
|
|
44297
43510
|
var len = elems.length;
|
|
44298
43511
|
var startToken;
|
|
44299
43512
|
var endToken;
|
|
44300
|
-
|
|
44301
|
-
startToken = "[|";
|
|
44302
|
-
endToken = "|]";
|
|
44303
|
-
} else if (this.format.recordAndTupleSyntaxType === "hash") {
|
|
43513
|
+
{
|
|
44304
43514
|
startToken = "#[";
|
|
44305
43515
|
endToken = "]";
|
|
44306
|
-
} else {
|
|
44307
|
-
throw new Error("".concat(this.format.recordAndTupleSyntaxType, " is not a valid recordAndTuple syntax type"));
|
|
44308
43516
|
}
|
|
44309
43517
|
this.token(startToken);
|
|
44310
43518
|
for(var i = 0; i < elems.length; i++){
|
|
@@ -45515,7 +44723,7 @@ function TSIndexedAccessType(node) {
|
|
|
45515
44723
|
this.tokenChar(93);
|
|
45516
44724
|
}
|
|
45517
44725
|
function TSMappedType(node) {
|
|
45518
|
-
var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter;
|
|
44726
|
+
var nameType = node.nameType, optional = node.optional, readonly = node.readonly, typeParameter2 = node.typeParameter, typeAnnotation2 = node.typeAnnotation;
|
|
45519
44727
|
this.tokenChar(123);
|
|
45520
44728
|
this.space();
|
|
45521
44729
|
if (readonly) {
|
|
@@ -45540,9 +44748,11 @@ function TSMappedType(node) {
|
|
|
45540
44748
|
tokenIfPlusMinus(this, optional);
|
|
45541
44749
|
this.tokenChar(63);
|
|
45542
44750
|
}
|
|
45543
|
-
|
|
45544
|
-
|
|
45545
|
-
|
|
44751
|
+
if (typeAnnotation2) {
|
|
44752
|
+
this.tokenChar(58);
|
|
44753
|
+
this.space();
|
|
44754
|
+
this.print(typeAnnotation2, node);
|
|
44755
|
+
}
|
|
45546
44756
|
this.space();
|
|
45547
44757
|
this.tokenChar(125);
|
|
45548
44758
|
}
|
|
@@ -46449,7 +45659,7 @@ var Printer = /*#__PURE__*/ function() {
|
|
|
46449
45659
|
}
|
|
46450
45660
|
this._printStack.push(node);
|
|
46451
45661
|
var oldInAux = this._insideAux;
|
|
46452
|
-
this._insideAux = node.loc ==
|
|
45662
|
+
this._insideAux = node.loc == null;
|
|
46453
45663
|
this._maybeAddAuxComment(this._insideAux && !oldInAux);
|
|
46454
45664
|
var parenthesized = (_node_extra = node.extra) === null || _node_extra === void 0 ? void 0 : _node_extra.parenthesized;
|
|
46455
45665
|
var shouldPrintParens = forceParens || parenthesized && format.retainFunctionParens && nodeType === "FunctionExpression" || needsParens(node, parent, this._printStack);
|
|
@@ -46794,7 +46004,7 @@ var Printer = /*#__PURE__*/ function() {
|
|
|
46794
46004
|
if (type === 0) {
|
|
46795
46005
|
var offset = 0;
|
|
46796
46006
|
if (i === 0) {
|
|
46797
|
-
if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine
|
|
46007
|
+
if (this._buf.hasContent() && (comment.type === "CommentLine" || commentStartLine !== commentEndLine)) {
|
|
46798
46008
|
offset = leadingCommentNewline = 1;
|
|
46799
46009
|
}
|
|
46800
46010
|
} else {
|
|
@@ -46860,7 +46070,6 @@ function commaSeparator() {
|
|
|
46860
46070
|
this.space();
|
|
46861
46071
|
}
|
|
46862
46072
|
function normalizeOptions(code2, opts) {
|
|
46863
|
-
var _opts_recordAndTupleSyntaxType;
|
|
46864
46073
|
var format = {
|
|
46865
46074
|
auxiliaryCommentBefore: opts.auxiliaryCommentBefore,
|
|
46866
46075
|
auxiliaryCommentAfter: opts.auxiliaryCommentAfter,
|
|
@@ -46880,7 +46089,6 @@ function normalizeOptions(code2, opts) {
|
|
|
46880
46089
|
wrap: true,
|
|
46881
46090
|
minimal: true
|
|
46882
46091
|
}, opts.jsescOption),
|
|
46883
|
-
recordAndTupleSyntaxType: (_opts_recordAndTupleSyntaxType = opts.recordAndTupleSyntaxType) !== null && _opts_recordAndTupleSyntaxType !== void 0 ? _opts_recordAndTupleSyntaxType : "hash",
|
|
46884
46092
|
topicToken: opts.topicToken,
|
|
46885
46093
|
importAttributesKeyword: opts.importAttributesKeyword
|
|
46886
46094
|
};
|
|
@@ -47283,7 +46491,7 @@ var virtualTypes = /* @__PURE__ */ Object.freeze({
|
|
|
47283
46491
|
User: User,
|
|
47284
46492
|
Var: Var
|
|
47285
46493
|
});
|
|
47286
|
-
var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression,
|
|
46494
|
+
var isBinding2 = lib_exports.isBinding, nodeIsBlockScoped = lib_exports.isBlockScoped, isExportDeclaration$1 = lib_exports.isExportDeclaration, nodeIsExpression = lib_exports.isExpression, nodeIsFlow = lib_exports.isFlow, isForStatement3 = lib_exports.isForStatement, isForXStatement2 = lib_exports.isForXStatement, isIdentifier$6 = lib_exports.isIdentifier, isImportDeclaration$1 = lib_exports.isImportDeclaration, isImportSpecifier2 = lib_exports.isImportSpecifier, isJSXIdentifier3 = lib_exports.isJSXIdentifier, isJSXMemberExpression2 = lib_exports.isJSXMemberExpression, isMemberExpression$12 = lib_exports.isMemberExpression, nodeIsRestElement = lib_exports.isRestElement, nodeIsReferenced = lib_exports.isReferenced, nodeIsScope = lib_exports.isScope, nodeIsStatement = lib_exports.isStatement, nodeIsVar = lib_exports.isVar, isVariableDeclaration$2 = lib_exports.isVariableDeclaration, react$1 = lib_exports.react, isForOfStatement3 = lib_exports.isForOfStatement;
|
|
47287
46495
|
var isCompatTag2 = react$1.isCompatTag;
|
|
47288
46496
|
function isReferencedIdentifier(opts) {
|
|
47289
46497
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
@@ -47298,7 +46506,7 @@ function isReferencedIdentifier(opts) {
|
|
|
47298
46506
|
}
|
|
47299
46507
|
function isReferencedMemberExpression() {
|
|
47300
46508
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
47301
|
-
return
|
|
46509
|
+
return isMemberExpression$12(node) && nodeIsReferenced(node, parent);
|
|
47302
46510
|
}
|
|
47303
46511
|
function isBindingIdentifier() {
|
|
47304
46512
|
var _this = this, node = _this.node, parent = _this.parent;
|
|
@@ -47364,10 +46572,12 @@ function isFlow2() {
|
|
|
47364
46572
|
}
|
|
47365
46573
|
}
|
|
47366
46574
|
function isRestProperty2() {
|
|
47367
|
-
|
|
46575
|
+
var _this_parentPath;
|
|
46576
|
+
return nodeIsRestElement(this.node) && ((_this_parentPath = this.parentPath) === null || _this_parentPath === void 0 ? void 0 : _this_parentPath.isObjectPattern());
|
|
47368
46577
|
}
|
|
47369
46578
|
function isSpreadProperty2() {
|
|
47370
|
-
|
|
46579
|
+
var _this_parentPath;
|
|
46580
|
+
return nodeIsRestElement(this.node) && ((_this_parentPath = this.parentPath) === null || _this_parentPath === void 0 ? void 0 : _this_parentPath.isObjectExpression());
|
|
47371
46581
|
}
|
|
47372
46582
|
function isForAwaitStatement() {
|
|
47373
46583
|
return isForOfStatement3(this.node, {
|
|
@@ -47400,7 +46610,7 @@ function isVirtualType(type) {
|
|
|
47400
46610
|
function isExplodedVisitor(visitor4) {
|
|
47401
46611
|
return visitor4 === null || visitor4 === void 0 ? void 0 : visitor4._exploded;
|
|
47402
46612
|
}
|
|
47403
|
-
function explode(visitor4) {
|
|
46613
|
+
function explode$1(visitor4) {
|
|
47404
46614
|
if (isExplodedVisitor(visitor4)) return visitor4;
|
|
47405
46615
|
visitor4._exploded = true;
|
|
47406
46616
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
@@ -47447,7 +46657,7 @@ function explode(visitor4) {
|
|
|
47447
46657
|
}
|
|
47448
46658
|
}
|
|
47449
46659
|
}
|
|
47450
|
-
verify(visitor4);
|
|
46660
|
+
verify$1(visitor4);
|
|
47451
46661
|
delete visitor4.__esModule;
|
|
47452
46662
|
ensureEntranceObjects(visitor4);
|
|
47453
46663
|
ensureCallbackArrays(visitor4);
|
|
@@ -47606,7 +46816,7 @@ function explode(visitor4) {
|
|
|
47606
46816
|
}
|
|
47607
46817
|
return visitor4;
|
|
47608
46818
|
}
|
|
47609
|
-
function verify(visitor4) {
|
|
46819
|
+
function verify$1(visitor4) {
|
|
47610
46820
|
if (visitor4._verified) return;
|
|
47611
46821
|
if (typeof visitor4 === "function") {
|
|
47612
46822
|
throw new Error("You passed `traverse()` a function when it expected a visitor object, are you sure you didn't mean `{ enter: Function }`?");
|
|
@@ -47623,7 +46833,7 @@ function verify(visitor4) {
|
|
|
47623
46833
|
throw new Error("You gave us a visitor for the node type ".concat(nodeType, " but it's not a valid type"));
|
|
47624
46834
|
}
|
|
47625
46835
|
var visitors2 = visitor4[nodeType];
|
|
47626
|
-
if (typeof visitors2 === "object") {
|
|
46836
|
+
if ((typeof visitors2 === "undefined" ? "undefined" : _type_of(visitors2)) === "object") {
|
|
47627
46837
|
var _iteratorNormalCompletion1 = true, _didIteratorError1 = false, _iteratorError1 = undefined;
|
|
47628
46838
|
try {
|
|
47629
46839
|
for(var _iterator1 = Object.keys(visitors2)[Symbol.iterator](), _step1; !(_iteratorNormalCompletion1 = (_step1 = _iterator1.next()).done); _iteratorNormalCompletion1 = true){
|
|
@@ -47695,7 +46905,7 @@ function merge2(visitors2) {
|
|
|
47695
46905
|
var states = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : [], wrapper = arguments.length > 2 ? arguments[2] : void 0;
|
|
47696
46906
|
var mergedVisitor = {};
|
|
47697
46907
|
for(var i = 0; i < visitors2.length; i++){
|
|
47698
|
-
var visitor4 = explode(visitors2[i]);
|
|
46908
|
+
var visitor4 = explode$1(visitors2[i]);
|
|
47699
46909
|
var state = states[i];
|
|
47700
46910
|
var topVisitor = visitor4;
|
|
47701
46911
|
if (state || wrapper) {
|
|
@@ -47836,10 +47046,10 @@ function mergePair(dest, src) {
|
|
|
47836
47046
|
}
|
|
47837
47047
|
var visitors = /* @__PURE__ */ Object.freeze({
|
|
47838
47048
|
__proto__: null,
|
|
47839
|
-
explode: explode,
|
|
47049
|
+
explode: explode$1,
|
|
47840
47050
|
isExplodedVisitor: isExplodedVisitor,
|
|
47841
47051
|
merge: merge2,
|
|
47842
|
-
verify: verify
|
|
47052
|
+
verify: verify$1
|
|
47843
47053
|
});
|
|
47844
47054
|
var pathsCache = /* @__PURE__ */ new WeakMap();
|
|
47845
47055
|
var scope = /* @__PURE__ */ new WeakMap();
|
|
@@ -47898,9 +47108,7 @@ var renameVisitor = {
|
|
|
47898
47108
|
var node = param.node, scope2 = param.scope;
|
|
47899
47109
|
var name = node.key.name;
|
|
47900
47110
|
if (node.shorthand && (name === state.oldName || name === state.newName) && scope2.getBindingIdentifier(name) === state.binding.identifier) {
|
|
47901
|
-
var _node_extra;
|
|
47902
47111
|
node.shorthand = false;
|
|
47903
|
-
if ((_node_extra = node.extra) === null || _node_extra === void 0 ? void 0 : _node_extra.shorthand) node.extra.shorthand = false;
|
|
47904
47112
|
}
|
|
47905
47113
|
},
|
|
47906
47114
|
"AssignmentExpression|Declaration|VariableDeclarator": function(path, state) {
|
|
@@ -47966,7 +47174,7 @@ var Renamer = /*#__PURE__*/ function() {
|
|
|
47966
47174
|
}
|
|
47967
47175
|
}
|
|
47968
47176
|
var blockToTraverse = scope2.block;
|
|
47969
|
-
traverseNode(blockToTraverse, explode(renameVisitor), scope2, this, scope2.path, {
|
|
47177
|
+
traverseNode(blockToTraverse, explode$1(renameVisitor), scope2, this, scope2.path, {
|
|
47970
47178
|
discriminant: true
|
|
47971
47179
|
});
|
|
47972
47180
|
{
|
|
@@ -48071,7 +47279,7 @@ function isDeclaredInLoop(path) {
|
|
|
48071
47279
|
}
|
|
48072
47280
|
return false;
|
|
48073
47281
|
}
|
|
48074
|
-
var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
|
|
47282
|
+
var NOT_LOCAL_BINDING3 = lib_exports.NOT_LOCAL_BINDING, callExpression$3 = lib_exports.callExpression, cloneNode$3 = lib_exports.cloneNode, getBindingIdentifiers$3 = lib_exports.getBindingIdentifiers, identifier$3 = lib_exports.identifier, isArrayExpression3 = lib_exports.isArrayExpression, isBinary3 = lib_exports.isBinary, isCallExpression$12 = lib_exports.isCallExpression, isClass2 = lib_exports.isClass, isClassBody3 = lib_exports.isClassBody, isClassDeclaration3 = lib_exports.isClassDeclaration, isExportAllDeclaration2 = lib_exports.isExportAllDeclaration, isExportDefaultDeclaration3 = lib_exports.isExportDefaultDeclaration, isExportNamedDeclaration$1 = lib_exports.isExportNamedDeclaration, isFunctionDeclaration2 = lib_exports.isFunctionDeclaration, isIdentifier$5 = lib_exports.isIdentifier, isImportDeclaration2 = lib_exports.isImportDeclaration, isLiteral$12 = lib_exports.isLiteral, isMemberExpression3 = lib_exports.isMemberExpression, isMethod2 = lib_exports.isMethod, isModuleSpecifier2 = lib_exports.isModuleSpecifier, isNullLiteral3 = lib_exports.isNullLiteral, isObjectExpression3 = lib_exports.isObjectExpression, isProperty2 = lib_exports.isProperty, isPureish2 = lib_exports.isPureish, isRegExpLiteral3 = lib_exports.isRegExpLiteral, isSuper$1 = lib_exports.isSuper, isTaggedTemplateExpression2 = lib_exports.isTaggedTemplateExpression, isTemplateLiteral3 = lib_exports.isTemplateLiteral, isThisExpression2 = lib_exports.isThisExpression, isUnaryExpression2 = lib_exports.isUnaryExpression, isVariableDeclaration$1 = lib_exports.isVariableDeclaration, matchesPattern$1 = lib_exports.matchesPattern, memberExpression$1 = lib_exports.memberExpression, numericLiteral$2 = lib_exports.numericLiteral, toIdentifier2 = lib_exports.toIdentifier, variableDeclaration$1 = lib_exports.variableDeclaration, variableDeclarator$1 = lib_exports.variableDeclarator, isRecordExpression2 = lib_exports.isRecordExpression, isTupleExpression2 = lib_exports.isTupleExpression, isObjectProperty3 = lib_exports.isObjectProperty, isTopicReference2 = lib_exports.isTopicReference, isMetaProperty2 = lib_exports.isMetaProperty, isPrivateName2 = lib_exports.isPrivateName, isExportDeclaration3 = lib_exports.isExportDeclaration, buildUndefinedNode$1 = lib_exports.buildUndefinedNode;
|
|
48075
47283
|
function gatherNodeParts(node, parts) {
|
|
48076
47284
|
switch(node === null || node === void 0 ? void 0 : node.type){
|
|
48077
47285
|
default:
|
|
@@ -48368,6 +47576,9 @@ var collectorVisitor = {
|
|
|
48368
47576
|
if (path.has("id") && !path.get("id").node[NOT_LOCAL_BINDING3]) {
|
|
48369
47577
|
path.scope.registerBinding("local", path);
|
|
48370
47578
|
}
|
|
47579
|
+
},
|
|
47580
|
+
TSTypeAnnotation: function TSTypeAnnotation(path) {
|
|
47581
|
+
path.skip();
|
|
48371
47582
|
}
|
|
48372
47583
|
};
|
|
48373
47584
|
var uid = 0;
|
|
@@ -48407,7 +47618,7 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
48407
47618
|
var shouldSkip = path.key === "key" || path.listKey === "decorators";
|
|
48408
47619
|
path = path.parentPath;
|
|
48409
47620
|
if (shouldSkip && path.isMethod()) path = path.parentPath;
|
|
48410
|
-
if (path
|
|
47621
|
+
if (path === null || path === void 0 ? void 0 : path.isScope()) parent = path;
|
|
48411
47622
|
}while (path && !parent);
|
|
48412
47623
|
return parent === null || parent === void 0 ? void 0 : parent.scope;
|
|
48413
47624
|
}
|
|
@@ -48975,8 +48186,6 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
48975
48186
|
return true;
|
|
48976
48187
|
} else if (isUnaryExpression2(node)) {
|
|
48977
48188
|
return this.isPure(node.argument, constantsOnly);
|
|
48978
|
-
} else if (isTaggedTemplateExpression2(node)) {
|
|
48979
|
-
return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", true) && this.isPure(node.quasi, constantsOnly);
|
|
48980
48189
|
} else if (isTemplateLiteral3(node)) {
|
|
48981
48190
|
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
48982
48191
|
try {
|
|
@@ -48999,6 +48208,18 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
48999
48208
|
}
|
|
49000
48209
|
}
|
|
49001
48210
|
return true;
|
|
48211
|
+
} else if (isTaggedTemplateExpression2(node)) {
|
|
48212
|
+
return matchesPattern$1(node.tag, "String.raw") && !this.hasBinding("String", {
|
|
48213
|
+
noGlobals: true
|
|
48214
|
+
}) && this.isPure(node.quasi, constantsOnly);
|
|
48215
|
+
} else if (isMemberExpression3(node)) {
|
|
48216
|
+
return !node.computed && isIdentifier$5(node.object) && node.object.name === "Symbol" && isIdentifier$5(node.property) && node.property.name !== "for" && !this.hasBinding("Symbol", {
|
|
48217
|
+
noGlobals: true
|
|
48218
|
+
});
|
|
48219
|
+
} else if (isCallExpression$12(node)) {
|
|
48220
|
+
return matchesPattern$1(node.callee, "Symbol.for") && !this.hasBinding("Symbol", {
|
|
48221
|
+
noGlobals: true
|
|
48222
|
+
}) && node.arguments.length === 1 && isStringLiteral(node.arguments[0]);
|
|
49002
48223
|
} else {
|
|
49003
48224
|
return isPureish2(node);
|
|
49004
48225
|
}
|
|
@@ -49205,9 +48426,9 @@ var _Scope = /*#__PURE__*/ function() {
|
|
|
49205
48426
|
path = (this.getFunctionParent() || this.getProgramParent()).path;
|
|
49206
48427
|
}
|
|
49207
48428
|
var init = opts.init, unique = opts.unique, _opts_kind = opts.kind, kind = _opts_kind === void 0 ? "var" : _opts_kind, id = opts.id;
|
|
49208
|
-
if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression(path.parent, {
|
|
48429
|
+
if (!init && !unique && (kind === "var" || kind === "let") && path.isFunction() && !path.node.name && isCallExpression$12(path.parent, {
|
|
49209
48430
|
callee: path.node
|
|
49210
|
-
}) && path.parent.arguments.length <= path.node.params.length && isIdentifier(id)) {
|
|
48431
|
+
}) && path.parent.arguments.length <= path.node.params.length && isIdentifier$5(id)) {
|
|
49211
48432
|
path.pushContainer("params", id);
|
|
49212
48433
|
path.scope.registerBinding("param", path.get("params")[path.node.params.length - 1]);
|
|
49213
48434
|
return;
|
|
@@ -49664,19 +48885,6 @@ function inType() {
|
|
|
49664
48885
|
}
|
|
49665
48886
|
return false;
|
|
49666
48887
|
}
|
|
49667
|
-
var NodePath_ancestry = /* @__PURE__ */ Object.freeze({
|
|
49668
|
-
__proto__: null,
|
|
49669
|
-
find: find,
|
|
49670
|
-
findParent: findParent,
|
|
49671
|
-
getAncestry: getAncestry,
|
|
49672
|
-
getDeepestCommonAncestorFrom: getDeepestCommonAncestorFrom,
|
|
49673
|
-
getEarliestCommonAncestorFrom: getEarliestCommonAncestorFrom,
|
|
49674
|
-
getFunctionParent: getFunctionParent,
|
|
49675
|
-
getStatementParent: getStatementParent,
|
|
49676
|
-
inType: inType,
|
|
49677
|
-
isAncestor: isAncestor,
|
|
49678
|
-
isDescendant: isDescendant
|
|
49679
|
-
});
|
|
49680
48888
|
var createFlowUnionType2 = lib_exports.createFlowUnionType, createTSUnionType2 = lib_exports.createTSUnionType, createUnionTypeAnnotation = lib_exports.createUnionTypeAnnotation, isFlowType2 = lib_exports.isFlowType, isTSType2 = lib_exports.isTSType;
|
|
49681
48889
|
function createUnionType(types2) {
|
|
49682
48890
|
{
|
|
@@ -50167,15 +49375,6 @@ function isGenericType(genericName) {
|
|
|
50167
49375
|
name: genericName
|
|
50168
49376
|
});
|
|
50169
49377
|
}
|
|
50170
|
-
var NodePath_inference = /* @__PURE__ */ Object.freeze({
|
|
50171
|
-
__proto__: null,
|
|
50172
|
-
_getTypeAnnotation: _getTypeAnnotation,
|
|
50173
|
-
baseTypeStrictlyMatches: baseTypeStrictlyMatches,
|
|
50174
|
-
couldBeBaseType: couldBeBaseType,
|
|
50175
|
-
getTypeAnnotation: getTypeAnnotation,
|
|
50176
|
-
isBaseType: isBaseType,
|
|
50177
|
-
isGenericType: isGenericType
|
|
50178
|
-
});
|
|
50179
49378
|
var FUNCTION_TYPES2 = lib_exports.FUNCTION_TYPES, arrowFunctionExpression$2 = lib_exports.arrowFunctionExpression, assignmentExpression$2 = lib_exports.assignmentExpression, awaitExpression2 = lib_exports.awaitExpression, blockStatement$2 = lib_exports.blockStatement, buildUndefinedNode2 = lib_exports.buildUndefinedNode, callExpression$2 = lib_exports.callExpression, cloneNode$2 = lib_exports.cloneNode, conditionalExpression$1 = lib_exports.conditionalExpression, expressionStatement$2 = lib_exports.expressionStatement, getBindingIdentifiers$2 = lib_exports.getBindingIdentifiers, identifier$1 = lib_exports.identifier, inheritLeadingComments2 = lib_exports.inheritLeadingComments, inheritTrailingComments2 = lib_exports.inheritTrailingComments, inheritsComments2 = lib_exports.inheritsComments, isBlockStatement$1 = lib_exports.isBlockStatement, isEmptyStatement2 = lib_exports.isEmptyStatement, isExpression$2 = lib_exports.isExpression, isExpressionStatement4 = lib_exports.isExpressionStatement, isIfStatement3 = lib_exports.isIfStatement, isProgram2 = lib_exports.isProgram, isStatement4 = lib_exports.isStatement, isVariableDeclaration2 = lib_exports.isVariableDeclaration, removeComments2 = lib_exports.removeComments, returnStatement$1 = lib_exports.returnStatement, sequenceExpression$1 = lib_exports.sequenceExpression, validate$13 = lib_exports.validate, yieldExpression2 = lib_exports.yieldExpression;
|
|
50180
49379
|
function replaceWithMultiple(nodes2) {
|
|
50181
49380
|
var _getCachedPaths;
|
|
@@ -50221,7 +49420,7 @@ function replaceWith(replacementPath) {
|
|
|
50221
49420
|
if (this.removed) {
|
|
50222
49421
|
throw new Error("You can't replace this node, we've already removed it");
|
|
50223
49422
|
}
|
|
50224
|
-
var replacement = _instanceof(replacementPath,
|
|
49423
|
+
var replacement = _instanceof(replacementPath, NodePath_Final) ? replacementPath.node : replacementPath;
|
|
50225
49424
|
if (!replacement) {
|
|
50226
49425
|
throw new Error("You passed `path.replaceWith()` a falsy node, use `path.remove()` instead");
|
|
50227
49426
|
}
|
|
@@ -50493,15 +49692,6 @@ function replaceInline(nodes2) {
|
|
|
50493
49692
|
return this.replaceWith(nodes2);
|
|
50494
49693
|
}
|
|
50495
49694
|
}
|
|
50496
|
-
var NodePath_replacement = /* @__PURE__ */ Object.freeze({
|
|
50497
|
-
__proto__: null,
|
|
50498
|
-
_replaceWith: _replaceWith,
|
|
50499
|
-
replaceExpressionWithStatements: replaceExpressionWithStatements,
|
|
50500
|
-
replaceInline: replaceInline,
|
|
50501
|
-
replaceWith: replaceWith,
|
|
50502
|
-
replaceWithMultiple: replaceWithMultiple,
|
|
50503
|
-
replaceWithSourceString: replaceWithSourceString
|
|
50504
|
-
});
|
|
50505
49695
|
var VALID_OBJECT_CALLEES = [
|
|
50506
49696
|
"Number",
|
|
50507
49697
|
"String",
|
|
@@ -50916,11 +50106,6 @@ function evaluate() {
|
|
|
50916
50106
|
value: value1
|
|
50917
50107
|
};
|
|
50918
50108
|
}
|
|
50919
|
-
var NodePath_evaluation = /* @__PURE__ */ Object.freeze({
|
|
50920
|
-
__proto__: null,
|
|
50921
|
-
evaluate: evaluate,
|
|
50922
|
-
evaluateTruthy: evaluateTruthy
|
|
50923
|
-
});
|
|
50924
50109
|
var arrowFunctionExpression$1 = lib_exports.arrowFunctionExpression, assignmentExpression$1 = lib_exports.assignmentExpression, binaryExpression2 = lib_exports.binaryExpression, blockStatement$1 = lib_exports.blockStatement, callExpression$1 = lib_exports.callExpression, conditionalExpression2 = lib_exports.conditionalExpression, expressionStatement$1 = lib_exports.expressionStatement, identifier6 = lib_exports.identifier, isIdentifier$22 = lib_exports.isIdentifier, jsxIdentifier2 = lib_exports.jsxIdentifier, logicalExpression2 = lib_exports.logicalExpression, LOGICAL_OPERATORS2 = lib_exports.LOGICAL_OPERATORS, memberExpression2 = lib_exports.memberExpression, metaProperty2 = lib_exports.metaProperty, numericLiteral$1 = lib_exports.numericLiteral, objectExpression2 = lib_exports.objectExpression, restElement2 = lib_exports.restElement, returnStatement2 = lib_exports.returnStatement, sequenceExpression2 = lib_exports.sequenceExpression, spreadElement2 = lib_exports.spreadElement, stringLiteral3 = lib_exports.stringLiteral, _super2 = lib_exports.super, thisExpression$1 = lib_exports.thisExpression, toExpression2 = lib_exports.toExpression, unaryExpression$1 = lib_exports.unaryExpression;
|
|
50925
50110
|
function toComputedKey2() {
|
|
50926
50111
|
var key;
|
|
@@ -51361,19 +50546,13 @@ function getScopeInformation(fnPath) {
|
|
|
51361
50546
|
superCalls: superCalls
|
|
51362
50547
|
};
|
|
51363
50548
|
}
|
|
51364
|
-
var NodePath_conversion = /* @__PURE__ */ Object.freeze({
|
|
51365
|
-
__proto__: null,
|
|
51366
|
-
arrowFunctionToExpression: arrowFunctionToExpression,
|
|
51367
|
-
ensureBlock: ensureBlock2,
|
|
51368
|
-
toComputedKey: toComputedKey2,
|
|
51369
|
-
unwrapFunctionEnvironment: unwrapFunctionEnvironment
|
|
51370
|
-
});
|
|
51371
50549
|
var STATEMENT_OR_BLOCK_KEYS2 = lib_exports.STATEMENT_OR_BLOCK_KEYS, VISITOR_KEYS$3 = lib_exports.VISITOR_KEYS, isBlockStatement3 = lib_exports.isBlockStatement, isExpression$1 = lib_exports.isExpression, isIdentifier$12 = lib_exports.isIdentifier, isLiteral4 = lib_exports.isLiteral, isStringLiteral4 = lib_exports.isStringLiteral, isType3 = lib_exports.isType, _matchesPattern = lib_exports.matchesPattern;
|
|
51372
50550
|
function matchesPattern2(pattern, allowPartial) {
|
|
51373
50551
|
return _matchesPattern(this.node, pattern, allowPartial);
|
|
51374
50552
|
}
|
|
51375
50553
|
function has(key) {
|
|
51376
|
-
var
|
|
50554
|
+
var _this_node;
|
|
50555
|
+
var val = (_this_node = this.node) === null || _this_node === void 0 ? void 0 : _this_node[key];
|
|
51377
50556
|
if (val && Array.isArray(val)) {
|
|
51378
50557
|
return !!val.length;
|
|
51379
50558
|
} else {
|
|
@@ -51722,6 +50901,18 @@ function isConstantExpression() {
|
|
|
51722
50901
|
var operator = this.node.operator;
|
|
51723
50902
|
return operator !== "in" && operator !== "instanceof" && this.get("left").isConstantExpression() && this.get("right").isConstantExpression();
|
|
51724
50903
|
}
|
|
50904
|
+
if (this.isMemberExpression()) {
|
|
50905
|
+
return !this.node.computed && this.get("object").isIdentifier({
|
|
50906
|
+
name: "Symbol"
|
|
50907
|
+
}) && !this.scope.hasBinding("Symbol", {
|
|
50908
|
+
noGlobals: true
|
|
50909
|
+
});
|
|
50910
|
+
}
|
|
50911
|
+
if (this.isCallExpression()) {
|
|
50912
|
+
return this.node.arguments.length === 1 && this.get("callee").matchesPattern("Symbol.for") && !this.scope.hasBinding("Symbol", {
|
|
50913
|
+
noGlobals: true
|
|
50914
|
+
}) && this.get("arguments")[0].isStringLiteral();
|
|
50915
|
+
}
|
|
51725
50916
|
return false;
|
|
51726
50917
|
}
|
|
51727
50918
|
function isInStrictMode() {
|
|
@@ -51767,28 +50958,6 @@ function isInStrictMode() {
|
|
|
51767
50958
|
});
|
|
51768
50959
|
return !!strictParent;
|
|
51769
50960
|
}
|
|
51770
|
-
var NodePath_introspection = /* @__PURE__ */ Object.freeze({
|
|
51771
|
-
__proto__: null,
|
|
51772
|
-
_guessExecutionStatusRelativeTo: _guessExecutionStatusRelativeTo,
|
|
51773
|
-
_resolve: _resolve,
|
|
51774
|
-
canHaveVariableDeclarationOrExpression: canHaveVariableDeclarationOrExpression,
|
|
51775
|
-
canSwapBetweenExpressionAndStatement: canSwapBetweenExpressionAndStatement,
|
|
51776
|
-
equals: equals,
|
|
51777
|
-
getSource: getSource,
|
|
51778
|
-
has: has,
|
|
51779
|
-
is: is2,
|
|
51780
|
-
isCompletionRecord: isCompletionRecord,
|
|
51781
|
-
isConstantExpression: isConstantExpression,
|
|
51782
|
-
isInStrictMode: isInStrictMode,
|
|
51783
|
-
isNodeType: isNodeType,
|
|
51784
|
-
isStatementOrBlock: isStatementOrBlock,
|
|
51785
|
-
isStatic: isStatic,
|
|
51786
|
-
isnt: isnt,
|
|
51787
|
-
matchesPattern: matchesPattern2,
|
|
51788
|
-
referencesImport: referencesImport,
|
|
51789
|
-
resolve: resolve3,
|
|
51790
|
-
willIMaybeExecuteBefore: willIMaybeExecuteBefore
|
|
51791
|
-
});
|
|
51792
50961
|
function call(key) {
|
|
51793
50962
|
var opts = this.opts;
|
|
51794
50963
|
this.debug(key);
|
|
@@ -51811,7 +50980,7 @@ function _call(fns) {
|
|
|
51811
50980
|
var node = this.node;
|
|
51812
50981
|
if (!node) return true;
|
|
51813
50982
|
var ret = fn.call(this.state, this, this.state);
|
|
51814
|
-
if (ret && typeof ret === "object" && typeof ret.then === "function") {
|
|
50983
|
+
if (ret && (typeof ret === "undefined" ? "undefined" : _type_of(ret)) === "object" && typeof ret.then === "function") {
|
|
51815
50984
|
throw new Error("You appear to be using a plugin with an async traversal visitor, which your current version of Babel does not support. If you're using a published plugin, you may need to upgrade your @babel/core version.");
|
|
51816
50985
|
}
|
|
51817
50986
|
if (ret) {
|
|
@@ -52036,30 +51205,6 @@ function _getQueueContexts() {
|
|
|
52036
51205
|
}
|
|
52037
51206
|
return contexts;
|
|
52038
51207
|
}
|
|
52039
|
-
var NodePath_context = /* @__PURE__ */ Object.freeze({
|
|
52040
|
-
__proto__: null,
|
|
52041
|
-
_call: _call,
|
|
52042
|
-
_getQueueContexts: _getQueueContexts,
|
|
52043
|
-
_resyncKey: _resyncKey,
|
|
52044
|
-
_resyncList: _resyncList,
|
|
52045
|
-
_resyncParent: _resyncParent,
|
|
52046
|
-
_resyncRemoved: _resyncRemoved,
|
|
52047
|
-
call: call,
|
|
52048
|
-
isBlacklisted: isDenylisted,
|
|
52049
|
-
isDenylisted: isDenylisted,
|
|
52050
|
-
popContext: popContext,
|
|
52051
|
-
pushContext: pushContext,
|
|
52052
|
-
requeue: requeue,
|
|
52053
|
-
resync: resync,
|
|
52054
|
-
setContext: setContext,
|
|
52055
|
-
setKey: setKey,
|
|
52056
|
-
setScope: setScope,
|
|
52057
|
-
setup: setup,
|
|
52058
|
-
skip: skip,
|
|
52059
|
-
skipKey: skipKey,
|
|
52060
|
-
stop: stop,
|
|
52061
|
-
visit: visit2
|
|
52062
|
-
});
|
|
52063
51208
|
var hooks = [
|
|
52064
51209
|
function(self, parent) {
|
|
52065
51210
|
var removeParent = self.key === "test" && (parent.isWhile() || parent.isSwitchCase()) || self.key === "declaration" && parent.isExportDeclaration() || self.key === "body" && parent.isLabeledStatement() || self.listKey === "declarations" && parent.isVariableDeclaration() && parent.node.declarations.length === 1 || self.key === "expression" && parent.isExpressionStatement();
|
|
@@ -52095,7 +51240,7 @@ var hooks = [
|
|
|
52095
51240
|
}
|
|
52096
51241
|
];
|
|
52097
51242
|
var getBindingIdentifiers$1 = lib_exports.getBindingIdentifiers;
|
|
52098
|
-
function
|
|
51243
|
+
function remove2() {
|
|
52099
51244
|
var _this_opts;
|
|
52100
51245
|
this._assertUnremoved();
|
|
52101
51246
|
this.resync();
|
|
@@ -52161,15 +51306,6 @@ function _assertUnremoved() {
|
|
|
52161
51306
|
throw this.buildCodeFrameError("NodePath has been removed so is read-only.");
|
|
52162
51307
|
}
|
|
52163
51308
|
}
|
|
52164
|
-
var NodePath_removal = /* @__PURE__ */ Object.freeze({
|
|
52165
|
-
__proto__: null,
|
|
52166
|
-
_assertUnremoved: _assertUnremoved,
|
|
52167
|
-
_callRemovalHooks: _callRemovalHooks,
|
|
52168
|
-
_markRemoved: _markRemoved,
|
|
52169
|
-
_remove: _remove,
|
|
52170
|
-
_removeFromScope: _removeFromScope,
|
|
52171
|
-
remove: remove
|
|
52172
|
-
});
|
|
52173
51309
|
var react2 = lib_exports.react;
|
|
52174
51310
|
var cloneNode$1 = lib_exports.cloneNode, jsxExpressionContainer2 = lib_exports.jsxExpressionContainer, variableDeclaration3 = lib_exports.variableDeclaration, variableDeclarator3 = lib_exports.variableDeclarator;
|
|
52175
51311
|
var referenceVisitor = {
|
|
@@ -52556,18 +51692,19 @@ function insertAfter(nodes_) {
|
|
|
52556
51692
|
return isExpression2(node) ? expressionStatement4(node) : node;
|
|
52557
51693
|
}));
|
|
52558
51694
|
} else if (this.isNodeType("Expression") && !this.isJSXElement() && !parentPath.isJSXElement() || parentPath.isForStatement() && this.key === "init") {
|
|
52559
|
-
|
|
52560
|
-
|
|
51695
|
+
var self = this;
|
|
51696
|
+
if (self.node) {
|
|
51697
|
+
var node = self.node;
|
|
52561
51698
|
var _this1 = this, scope2 = _this1.scope;
|
|
52562
51699
|
if (scope2.path.isPattern()) {
|
|
52563
51700
|
assertExpression2(node);
|
|
52564
|
-
|
|
52565
|
-
|
|
51701
|
+
self.replaceWith(callExpression2(arrowFunctionExpression2([], node), []));
|
|
51702
|
+
self.get("callee.body").insertAfter(nodes2);
|
|
52566
51703
|
return [
|
|
52567
|
-
|
|
51704
|
+
self
|
|
52568
51705
|
];
|
|
52569
51706
|
}
|
|
52570
|
-
if (isHiddenInSequenceExpression(
|
|
51707
|
+
if (isHiddenInSequenceExpression(self)) {
|
|
52571
51708
|
nodes2.unshift(node);
|
|
52572
51709
|
} else if (isCallExpression4(node) && isSuper2(node.callee)) {
|
|
52573
51710
|
nodes2.unshift(node);
|
|
@@ -52643,11 +51780,11 @@ function _verifyNodeList(nodes2) {
|
|
|
52643
51780
|
var msg = void 0;
|
|
52644
51781
|
if (!node) {
|
|
52645
51782
|
msg = "has falsy node";
|
|
52646
|
-
} else if (typeof node !== "object") {
|
|
51783
|
+
} else if ((typeof node === "undefined" ? "undefined" : _type_of(node)) !== "object") {
|
|
52647
51784
|
msg = "contains a non-object node";
|
|
52648
51785
|
} else if (!node.type) {
|
|
52649
51786
|
msg = "without a type";
|
|
52650
|
-
} else if (_instanceof(node,
|
|
51787
|
+
} else if (_instanceof(node, NodePath_Final)) {
|
|
52651
51788
|
msg = "has a NodePath when it expected a raw object";
|
|
52652
51789
|
}
|
|
52653
51790
|
if (msg) {
|
|
@@ -52660,7 +51797,7 @@ function _verifyNodeList(nodes2) {
|
|
|
52660
51797
|
function unshiftContainer(listKey, nodes2) {
|
|
52661
51798
|
this._assertUnremoved();
|
|
52662
51799
|
nodes2 = this._verifyNodeList(nodes2);
|
|
52663
|
-
var path =
|
|
51800
|
+
var path = NodePath_Final.get({
|
|
52664
51801
|
parentPath: this,
|
|
52665
51802
|
parent: this.node,
|
|
52666
51803
|
container: this.node[listKey],
|
|
@@ -52673,7 +51810,7 @@ function pushContainer(listKey, nodes2) {
|
|
|
52673
51810
|
this._assertUnremoved();
|
|
52674
51811
|
var verifiedNodes = this._verifyNodeList(nodes2);
|
|
52675
51812
|
var container = this.node[listKey];
|
|
52676
|
-
var path =
|
|
51813
|
+
var path = NodePath_Final.get({
|
|
52677
51814
|
parentPath: this,
|
|
52678
51815
|
parent: this.node,
|
|
52679
51816
|
container: container,
|
|
@@ -52687,20 +51824,7 @@ function hoist() {
|
|
|
52687
51824
|
var hoister = new PathHoister(this, scope2);
|
|
52688
51825
|
return hoister.run();
|
|
52689
51826
|
}
|
|
52690
|
-
var
|
|
52691
|
-
__proto__: null,
|
|
52692
|
-
_containerInsert: _containerInsert,
|
|
52693
|
-
_containerInsertAfter: _containerInsertAfter,
|
|
52694
|
-
_containerInsertBefore: _containerInsertBefore,
|
|
52695
|
-
_verifyNodeList: _verifyNodeList,
|
|
52696
|
-
hoist: hoist,
|
|
52697
|
-
insertAfter: insertAfter,
|
|
52698
|
-
insertBefore: insertBefore,
|
|
52699
|
-
pushContainer: pushContainer,
|
|
52700
|
-
unshiftContainer: unshiftContainer,
|
|
52701
|
-
updateSiblingKeys: updateSiblingKeys
|
|
52702
|
-
});
|
|
52703
|
-
var _getBindingIdentifiers = lib_exports.getBindingIdentifiers, _getOuterBindingIdentifiers = lib_exports.getOuterBindingIdentifiers, isDeclaration2 = lib_exports.isDeclaration, numericLiteral2 = lib_exports.numericLiteral, unaryExpression2 = lib_exports.unaryExpression;
|
|
51827
|
+
var _getBindingIdentifiers = lib_exports.getBindingIdentifiers, _getOuterBindingIdentifiers = lib_exports.getOuterBindingIdentifiers, numericLiteral2 = lib_exports.numericLiteral, unaryExpression2 = lib_exports.unaryExpression;
|
|
52704
51828
|
var NORMAL_COMPLETION = 0;
|
|
52705
51829
|
var BREAK_COMPLETION = 1;
|
|
52706
51830
|
function NormalCompletion(path) {
|
|
@@ -52907,7 +52031,7 @@ function getCompletionRecords() {
|
|
|
52907
52031
|
});
|
|
52908
52032
|
}
|
|
52909
52033
|
function getSibling(key) {
|
|
52910
|
-
return
|
|
52034
|
+
return NodePath_Final.get({
|
|
52911
52035
|
parentPath: this.parentPath,
|
|
52912
52036
|
parent: this.parent,
|
|
52913
52037
|
container: this.container,
|
|
@@ -52957,7 +52081,7 @@ function _getKey(key, context) {
|
|
|
52957
52081
|
var container = node[key];
|
|
52958
52082
|
if (Array.isArray(container)) {
|
|
52959
52083
|
return container.map(function(_, i) {
|
|
52960
|
-
return
|
|
52084
|
+
return NodePath_Final.get({
|
|
52961
52085
|
listKey: key,
|
|
52962
52086
|
parentPath: _this,
|
|
52963
52087
|
parent: node,
|
|
@@ -52966,7 +52090,7 @@ function _getKey(key, context) {
|
|
|
52966
52090
|
}).setContext(context);
|
|
52967
52091
|
});
|
|
52968
52092
|
} else {
|
|
52969
|
-
return
|
|
52093
|
+
return NodePath_Final.get({
|
|
52970
52094
|
parentPath: this,
|
|
52971
52095
|
parent: node,
|
|
52972
52096
|
container: node,
|
|
@@ -53035,7 +52159,7 @@ function getBindingIdentifierPaths() {
|
|
|
53035
52159
|
}
|
|
53036
52160
|
if (id.isExportDeclaration()) {
|
|
53037
52161
|
var declaration = id.get("declaration");
|
|
53038
|
-
if (
|
|
52162
|
+
if (declaration.isDeclaration()) {
|
|
53039
52163
|
search.push(declaration);
|
|
53040
52164
|
}
|
|
53041
52165
|
continue;
|
|
@@ -53068,23 +52192,6 @@ function getOuterBindingIdentifierPaths() {
|
|
|
53068
52192
|
var duplicates = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
|
|
53069
52193
|
return this.getBindingIdentifierPaths(duplicates, true);
|
|
53070
52194
|
}
|
|
53071
|
-
var NodePath_family = /* @__PURE__ */ Object.freeze({
|
|
53072
|
-
__proto__: null,
|
|
53073
|
-
_getKey: _getKey,
|
|
53074
|
-
_getPattern: _getPattern,
|
|
53075
|
-
get: get2,
|
|
53076
|
-
getAllNextSiblings: getAllNextSiblings,
|
|
53077
|
-
getAllPrevSiblings: getAllPrevSiblings,
|
|
53078
|
-
getBindingIdentifierPaths: getBindingIdentifierPaths,
|
|
53079
|
-
getBindingIdentifiers: getBindingIdentifiers2,
|
|
53080
|
-
getCompletionRecords: getCompletionRecords,
|
|
53081
|
-
getNextSibling: getNextSibling,
|
|
53082
|
-
getOpposite: getOpposite,
|
|
53083
|
-
getOuterBindingIdentifierPaths: getOuterBindingIdentifierPaths,
|
|
53084
|
-
getOuterBindingIdentifiers: getOuterBindingIdentifiers2,
|
|
53085
|
-
getPrevSibling: getPrevSibling,
|
|
53086
|
-
getSibling: getSibling
|
|
53087
|
-
});
|
|
53088
52195
|
var _addComment = lib_exports.addComment, _addComments = lib_exports.addComments;
|
|
53089
52196
|
function shareCommentsWithSiblings() {
|
|
53090
52197
|
if (typeof this.key === "string") return;
|
|
@@ -53123,21 +52230,15 @@ function addComment2(type, content, line) {
|
|
|
53123
52230
|
function addComments2(type, comments) {
|
|
53124
52231
|
_addComments(this.node, type, comments);
|
|
53125
52232
|
}
|
|
53126
|
-
var NodePath_comments = /* @__PURE__ */ Object.freeze({
|
|
53127
|
-
__proto__: null,
|
|
53128
|
-
addComment: addComment2,
|
|
53129
|
-
addComments: addComments2,
|
|
53130
|
-
shareCommentsWithSiblings: shareCommentsWithSiblings
|
|
53131
|
-
});
|
|
53132
52233
|
var validate3 = lib_exports.validate;
|
|
53133
52234
|
var debug = (0, import_debug.default)("babel");
|
|
53134
52235
|
var REMOVED = 1 << 0;
|
|
53135
52236
|
var SHOULD_STOP = 1 << 1;
|
|
53136
52237
|
var SHOULD_SKIP = 1 << 2;
|
|
53137
|
-
var
|
|
52238
|
+
var NodePath_Final = /*#__PURE__*/ function() {
|
|
53138
52239
|
"use strict";
|
|
53139
|
-
function
|
|
53140
|
-
_class_call_check(this,
|
|
52240
|
+
function NodePath(hub, parent) {
|
|
52241
|
+
_class_call_check(this, NodePath);
|
|
53141
52242
|
__publicField(this, "contexts", []);
|
|
53142
52243
|
__publicField(this, "state", null);
|
|
53143
52244
|
__publicField(this, "opts", null);
|
|
@@ -53155,7 +52256,37 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
53155
52256
|
this.context = null;
|
|
53156
52257
|
this.scope = null;
|
|
53157
52258
|
}
|
|
53158
|
-
_create_class(
|
|
52259
|
+
_create_class(NodePath, [
|
|
52260
|
+
{
|
|
52261
|
+
key: "removed",
|
|
52262
|
+
get: function get() {
|
|
52263
|
+
return (this._traverseFlags & 1) > 0;
|
|
52264
|
+
},
|
|
52265
|
+
set: function set(v) {
|
|
52266
|
+
if (v) this._traverseFlags |= 1;
|
|
52267
|
+
else this._traverseFlags &= -2;
|
|
52268
|
+
}
|
|
52269
|
+
},
|
|
52270
|
+
{
|
|
52271
|
+
key: "shouldStop",
|
|
52272
|
+
get: function get() {
|
|
52273
|
+
return (this._traverseFlags & 2) > 0;
|
|
52274
|
+
},
|
|
52275
|
+
set: function set(v) {
|
|
52276
|
+
if (v) this._traverseFlags |= 2;
|
|
52277
|
+
else this._traverseFlags &= -3;
|
|
52278
|
+
}
|
|
52279
|
+
},
|
|
52280
|
+
{
|
|
52281
|
+
key: "shouldSkip",
|
|
52282
|
+
get: function get() {
|
|
52283
|
+
return (this._traverseFlags & 4) > 0;
|
|
52284
|
+
},
|
|
52285
|
+
set: function set(v) {
|
|
52286
|
+
if (v) this._traverseFlags |= 4;
|
|
52287
|
+
else this._traverseFlags &= -5;
|
|
52288
|
+
}
|
|
52289
|
+
},
|
|
53159
52290
|
{
|
|
53160
52291
|
key: "getScope",
|
|
53161
52292
|
value: function getScope(scope2) {
|
|
@@ -53250,45 +52381,6 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
53250
52381
|
get: function get() {
|
|
53251
52382
|
return this.listKey || this.key;
|
|
53252
52383
|
}
|
|
53253
|
-
},
|
|
53254
|
-
{
|
|
53255
|
-
key: "shouldSkip",
|
|
53256
|
-
get: function get() {
|
|
53257
|
-
return !!(this._traverseFlags & SHOULD_SKIP);
|
|
53258
|
-
},
|
|
53259
|
-
set: function set(v) {
|
|
53260
|
-
if (v) {
|
|
53261
|
-
this._traverseFlags |= SHOULD_SKIP;
|
|
53262
|
-
} else {
|
|
53263
|
-
this._traverseFlags &= ~SHOULD_SKIP;
|
|
53264
|
-
}
|
|
53265
|
-
}
|
|
53266
|
-
},
|
|
53267
|
-
{
|
|
53268
|
-
key: "shouldStop",
|
|
53269
|
-
get: function get() {
|
|
53270
|
-
return !!(this._traverseFlags & SHOULD_STOP);
|
|
53271
|
-
},
|
|
53272
|
-
set: function set(v) {
|
|
53273
|
-
if (v) {
|
|
53274
|
-
this._traverseFlags |= SHOULD_STOP;
|
|
53275
|
-
} else {
|
|
53276
|
-
this._traverseFlags &= ~SHOULD_STOP;
|
|
53277
|
-
}
|
|
53278
|
-
}
|
|
53279
|
-
},
|
|
53280
|
-
{
|
|
53281
|
-
key: "removed",
|
|
53282
|
-
get: function get() {
|
|
53283
|
-
return !!(this._traverseFlags & REMOVED);
|
|
53284
|
-
},
|
|
53285
|
-
set: function set(v) {
|
|
53286
|
-
if (v) {
|
|
53287
|
-
this._traverseFlags |= REMOVED;
|
|
53288
|
-
} else {
|
|
53289
|
-
this._traverseFlags &= ~REMOVED;
|
|
53290
|
-
}
|
|
53291
|
-
}
|
|
53292
52384
|
}
|
|
53293
52385
|
], [
|
|
53294
52386
|
{
|
|
@@ -53305,7 +52397,7 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
53305
52397
|
var paths = getOrCreateCachedPaths(hub, parent);
|
|
53306
52398
|
var path = paths.get(targetNode);
|
|
53307
52399
|
if (!path) {
|
|
53308
|
-
path = new
|
|
52400
|
+
path = new NodePath(hub, parent);
|
|
53309
52401
|
if (targetNode) paths.set(targetNode, path);
|
|
53310
52402
|
}
|
|
53311
52403
|
path.setup(parentPath, container, listKey, key);
|
|
@@ -53313,58 +52405,161 @@ var NodePath = /*#__PURE__*/ function() {
|
|
|
53313
52405
|
}
|
|
53314
52406
|
}
|
|
53315
52407
|
]);
|
|
53316
|
-
return
|
|
52408
|
+
return NodePath;
|
|
53317
52409
|
}();
|
|
53318
|
-
|
|
53319
|
-
|
|
52410
|
+
var methods = {
|
|
52411
|
+
findParent: findParent,
|
|
52412
|
+
find: find,
|
|
52413
|
+
getFunctionParent: getFunctionParent,
|
|
52414
|
+
getStatementParent: getStatementParent,
|
|
52415
|
+
getEarliestCommonAncestorFrom: getEarliestCommonAncestorFrom,
|
|
52416
|
+
getDeepestCommonAncestorFrom: getDeepestCommonAncestorFrom,
|
|
52417
|
+
getAncestry: getAncestry,
|
|
52418
|
+
isAncestor: isAncestor,
|
|
52419
|
+
isDescendant: isDescendant,
|
|
52420
|
+
inType: inType,
|
|
52421
|
+
getTypeAnnotation: getTypeAnnotation,
|
|
52422
|
+
_getTypeAnnotation: _getTypeAnnotation,
|
|
52423
|
+
isBaseType: isBaseType,
|
|
52424
|
+
couldBeBaseType: couldBeBaseType,
|
|
52425
|
+
baseTypeStrictlyMatches: baseTypeStrictlyMatches,
|
|
52426
|
+
isGenericType: isGenericType,
|
|
52427
|
+
replaceWithMultiple: replaceWithMultiple,
|
|
52428
|
+
replaceWithSourceString: replaceWithSourceString,
|
|
52429
|
+
replaceWith: replaceWith,
|
|
52430
|
+
_replaceWith: _replaceWith,
|
|
52431
|
+
replaceExpressionWithStatements: replaceExpressionWithStatements,
|
|
52432
|
+
replaceInline: replaceInline,
|
|
52433
|
+
evaluateTruthy: evaluateTruthy,
|
|
52434
|
+
evaluate: evaluate,
|
|
52435
|
+
toComputedKey: toComputedKey2,
|
|
52436
|
+
ensureBlock: ensureBlock2,
|
|
52437
|
+
unwrapFunctionEnvironment: unwrapFunctionEnvironment,
|
|
52438
|
+
arrowFunctionToExpression: arrowFunctionToExpression,
|
|
52439
|
+
matchesPattern: matchesPattern2,
|
|
52440
|
+
has: has,
|
|
52441
|
+
isStatic: isStatic,
|
|
52442
|
+
is: is2,
|
|
52443
|
+
isnt: isnt,
|
|
52444
|
+
equals: equals,
|
|
52445
|
+
isNodeType: isNodeType,
|
|
52446
|
+
canHaveVariableDeclarationOrExpression: canHaveVariableDeclarationOrExpression,
|
|
52447
|
+
canSwapBetweenExpressionAndStatement: canSwapBetweenExpressionAndStatement,
|
|
52448
|
+
isCompletionRecord: isCompletionRecord,
|
|
52449
|
+
isStatementOrBlock: isStatementOrBlock,
|
|
52450
|
+
referencesImport: referencesImport,
|
|
52451
|
+
getSource: getSource,
|
|
52452
|
+
willIMaybeExecuteBefore: willIMaybeExecuteBefore,
|
|
52453
|
+
_guessExecutionStatusRelativeTo: _guessExecutionStatusRelativeTo,
|
|
52454
|
+
resolve: resolve3,
|
|
52455
|
+
_resolve: _resolve,
|
|
52456
|
+
isConstantExpression: isConstantExpression,
|
|
52457
|
+
isInStrictMode: isInStrictMode,
|
|
52458
|
+
call: call,
|
|
52459
|
+
_call: _call,
|
|
52460
|
+
isDenylisted: isDenylisted,
|
|
52461
|
+
isBlacklisted: isDenylisted,
|
|
52462
|
+
visit: visit2,
|
|
52463
|
+
skip: skip,
|
|
52464
|
+
skipKey: skipKey,
|
|
52465
|
+
stop: stop,
|
|
52466
|
+
setScope: setScope,
|
|
52467
|
+
setContext: setContext,
|
|
52468
|
+
resync: resync,
|
|
52469
|
+
_resyncParent: _resyncParent,
|
|
52470
|
+
_resyncKey: _resyncKey,
|
|
52471
|
+
_resyncList: _resyncList,
|
|
52472
|
+
_resyncRemoved: _resyncRemoved,
|
|
52473
|
+
popContext: popContext,
|
|
52474
|
+
pushContext: pushContext,
|
|
52475
|
+
setup: setup,
|
|
52476
|
+
setKey: setKey,
|
|
52477
|
+
requeue: requeue,
|
|
52478
|
+
_getQueueContexts: _getQueueContexts,
|
|
52479
|
+
remove: remove2,
|
|
52480
|
+
_removeFromScope: _removeFromScope,
|
|
52481
|
+
_callRemovalHooks: _callRemovalHooks,
|
|
52482
|
+
_remove: _remove,
|
|
52483
|
+
_markRemoved: _markRemoved,
|
|
52484
|
+
_assertUnremoved: _assertUnremoved,
|
|
52485
|
+
insertBefore: insertBefore,
|
|
52486
|
+
_containerInsert: _containerInsert,
|
|
52487
|
+
_containerInsertBefore: _containerInsertBefore,
|
|
52488
|
+
_containerInsertAfter: _containerInsertAfter,
|
|
52489
|
+
insertAfter: insertAfter,
|
|
52490
|
+
updateSiblingKeys: updateSiblingKeys,
|
|
52491
|
+
_verifyNodeList: _verifyNodeList,
|
|
52492
|
+
unshiftContainer: unshiftContainer,
|
|
52493
|
+
pushContainer: pushContainer,
|
|
52494
|
+
hoist: hoist,
|
|
52495
|
+
getOpposite: getOpposite,
|
|
52496
|
+
getCompletionRecords: getCompletionRecords,
|
|
52497
|
+
getSibling: getSibling,
|
|
52498
|
+
getPrevSibling: getPrevSibling,
|
|
52499
|
+
getNextSibling: getNextSibling,
|
|
52500
|
+
getAllNextSiblings: getAllNextSiblings,
|
|
52501
|
+
getAllPrevSiblings: getAllPrevSiblings,
|
|
52502
|
+
get: get2,
|
|
52503
|
+
_getKey: _getKey,
|
|
52504
|
+
_getPattern: _getPattern,
|
|
52505
|
+
getBindingIdentifiers: getBindingIdentifiers2,
|
|
52506
|
+
getOuterBindingIdentifiers: getOuterBindingIdentifiers2,
|
|
52507
|
+
getBindingIdentifierPaths: getBindingIdentifierPaths,
|
|
52508
|
+
getOuterBindingIdentifierPaths: getOuterBindingIdentifierPaths,
|
|
52509
|
+
shareCommentsWithSiblings: shareCommentsWithSiblings,
|
|
52510
|
+
addComment: addComment2,
|
|
52511
|
+
addComments: addComments2
|
|
52512
|
+
};
|
|
52513
|
+
Object.assign(NodePath_Final.prototype, methods);
|
|
52514
|
+
var _iteratorNormalCompletion2 = true, _didIteratorError2 = false, _iteratorError2 = undefined;
|
|
53320
52515
|
try {
|
|
53321
|
-
var
|
|
53322
|
-
var type =
|
|
52516
|
+
var _loop = function() {
|
|
52517
|
+
var type = _step2.value;
|
|
53323
52518
|
var typeKey = "is".concat(type);
|
|
53324
52519
|
var fn = lib_exports[typeKey];
|
|
53325
|
-
|
|
52520
|
+
NodePath_Final.prototype[typeKey] = function(opts) {
|
|
53326
52521
|
return fn(this.node, opts);
|
|
53327
52522
|
};
|
|
53328
|
-
|
|
52523
|
+
NodePath_Final.prototype["assert".concat(type)] = function(opts) {
|
|
53329
52524
|
if (!fn(this.node, opts)) {
|
|
53330
52525
|
throw new TypeError("Expected node path of type ".concat(type));
|
|
53331
52526
|
}
|
|
53332
52527
|
};
|
|
53333
52528
|
};
|
|
53334
|
-
for(var
|
|
52529
|
+
for(var _iterator2 = TYPES[Symbol.iterator](), _step2; !(_iteratorNormalCompletion2 = (_step2 = _iterator2.next()).done); _iteratorNormalCompletion2 = true)_loop();
|
|
53335
52530
|
} catch (err) {
|
|
53336
|
-
|
|
53337
|
-
|
|
52531
|
+
_didIteratorError2 = true;
|
|
52532
|
+
_iteratorError2 = err;
|
|
53338
52533
|
} finally{
|
|
53339
52534
|
try {
|
|
53340
|
-
if (!
|
|
53341
|
-
|
|
52535
|
+
if (!_iteratorNormalCompletion2 && _iterator2.return != null) {
|
|
52536
|
+
_iterator2.return();
|
|
53342
52537
|
}
|
|
53343
52538
|
} finally{
|
|
53344
|
-
if (
|
|
53345
|
-
throw
|
|
52539
|
+
if (_didIteratorError2) {
|
|
52540
|
+
throw _iteratorError2;
|
|
53346
52541
|
}
|
|
53347
52542
|
}
|
|
53348
52543
|
}
|
|
53349
|
-
Object.assign(
|
|
53350
|
-
var
|
|
52544
|
+
Object.assign(NodePath_Final.prototype, NodePath_virtual_types_validator);
|
|
52545
|
+
var _iteratorNormalCompletion3 = true, _didIteratorError3 = false, _iteratorError3 = undefined;
|
|
53351
52546
|
try {
|
|
53352
|
-
for(var
|
|
53353
|
-
var type2 =
|
|
52547
|
+
for(var _iterator3 = Object.keys(virtualTypes)[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true){
|
|
52548
|
+
var type2 = _step3.value;
|
|
53354
52549
|
if (type2[0] === "_") continue;
|
|
53355
52550
|
if (!TYPES.includes(type2)) TYPES.push(type2);
|
|
53356
52551
|
}
|
|
53357
52552
|
} catch (err) {
|
|
53358
|
-
|
|
53359
|
-
|
|
52553
|
+
_didIteratorError3 = true;
|
|
52554
|
+
_iteratorError3 = err;
|
|
53360
52555
|
} finally{
|
|
53361
52556
|
try {
|
|
53362
|
-
if (!
|
|
53363
|
-
|
|
52557
|
+
if (!_iteratorNormalCompletion3 && _iterator3.return != null) {
|
|
52558
|
+
_iterator3.return();
|
|
53364
52559
|
}
|
|
53365
52560
|
} finally{
|
|
53366
|
-
if (
|
|
53367
|
-
throw
|
|
52561
|
+
if (_didIteratorError3) {
|
|
52562
|
+
throw _iteratorError3;
|
|
53368
52563
|
}
|
|
53369
52564
|
}
|
|
53370
52565
|
}
|
|
@@ -53417,7 +52612,7 @@ var TraversalContext = /*#__PURE__*/ function() {
|
|
|
53417
52612
|
{
|
|
53418
52613
|
key: "create",
|
|
53419
52614
|
value: function create(node, container, key, listKey) {
|
|
53420
|
-
return
|
|
52615
|
+
return NodePath_Final.get({
|
|
53421
52616
|
parentPath: this.parentPath,
|
|
53422
52617
|
parent: node,
|
|
53423
52618
|
container: container,
|
|
@@ -53567,12 +52762,12 @@ function traverse3(parent) {
|
|
|
53567
52762
|
if (!VISITOR_KEYS2[parent.type]) {
|
|
53568
52763
|
return;
|
|
53569
52764
|
}
|
|
53570
|
-
explode(opts);
|
|
52765
|
+
explode$1(opts);
|
|
53571
52766
|
traverseNode(parent, opts, scope2, state, parentPath, null, visitSelf);
|
|
53572
52767
|
}
|
|
53573
52768
|
traverse3.visitors = visitors;
|
|
53574
|
-
traverse3.verify = verify;
|
|
53575
|
-
traverse3.explode = explode;
|
|
52769
|
+
traverse3.verify = verify$1;
|
|
52770
|
+
traverse3.explode = explode$1;
|
|
53576
52771
|
traverse3.cheap = function(node, enter) {
|
|
53577
52772
|
traverseFast2(node, enter);
|
|
53578
52773
|
return;
|