modern-cmdk 1.2.1 → 1.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +98 -0
- package/README.md +6 -2
- package/dist/codemod/cli.d.mts +1 -1
- package/dist/codemod/cli.mjs +1067 -603
- package/dist/codemod/transforms/data-attrs.d.mts +5 -7
- package/dist/codemod/transforms/forward-ref.d.mts +5 -7
- package/dist/codemod/transforms/import-rewrite.d.mts +5 -7
- package/dist/codemod/transforms/should-filter.d.mts +4 -6
- package/dist/core/index.d.mts +149 -149
- package/dist/core/index.mjs +5 -7
- package/dist/react/index.d.mts +76 -159
- package/dist/react/index.mjs +78 -81
- package/package.json +6 -6
package/dist/codemod/cli.mjs
CHANGED
|
@@ -46,7 +46,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
46
46
|
}
|
|
47
47
|
return to;
|
|
48
48
|
};
|
|
49
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", {
|
|
49
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
50
50
|
value: mod,
|
|
51
51
|
enumerable: true
|
|
52
52
|
}) : target, mod));
|
|
@@ -1389,11 +1389,12 @@ var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1389
1389
|
module.exports = braces;
|
|
1390
1390
|
}));
|
|
1391
1391
|
//#endregion
|
|
1392
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
1392
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/constants.js
|
|
1393
1393
|
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1394
1394
|
const path$8 = __require("path");
|
|
1395
1395
|
const WIN_SLASH = "\\\\/";
|
|
1396
1396
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1397
|
+
const DEFAULT_MAX_EXTGLOB_RECURSION = 0;
|
|
1397
1398
|
/**
|
|
1398
1399
|
* Posix glob regex
|
|
1399
1400
|
*/
|
|
@@ -1441,8 +1442,10 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1441
1442
|
END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
|
|
1442
1443
|
};
|
|
1443
1444
|
module.exports = {
|
|
1444
|
-
|
|
1445
|
+
DEFAULT_MAX_EXTGLOB_RECURSION,
|
|
1446
|
+
MAX_LENGTH: 65536,
|
|
1445
1447
|
POSIX_REGEX_SOURCE: {
|
|
1448
|
+
__proto__: null,
|
|
1446
1449
|
alnum: "a-zA-Z0-9",
|
|
1447
1450
|
alpha: "a-zA-Z",
|
|
1448
1451
|
ascii: "\\x00-\\x7F",
|
|
@@ -1465,6 +1468,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1465
1468
|
REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
|
|
1466
1469
|
REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
|
|
1467
1470
|
REPLACEMENTS: {
|
|
1471
|
+
__proto__: null,
|
|
1468
1472
|
"***": "*",
|
|
1469
1473
|
"**/**": "**",
|
|
1470
1474
|
"**/**/**": "**"
|
|
@@ -1554,7 +1558,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1554
1558
|
};
|
|
1555
1559
|
}));
|
|
1556
1560
|
//#endregion
|
|
1557
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
1561
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/utils.js
|
|
1558
1562
|
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1559
1563
|
const path$7 = __require("path");
|
|
1560
1564
|
const win32 = process.platform === "win32";
|
|
@@ -1599,7 +1603,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
1599
1603
|
};
|
|
1600
1604
|
}));
|
|
1601
1605
|
//#endregion
|
|
1602
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
1606
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/scan.js
|
|
1603
1607
|
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1604
1608
|
const utils = require_utils$2();
|
|
1605
1609
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
@@ -1886,7 +1890,7 @@ var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1886
1890
|
module.exports = scan;
|
|
1887
1891
|
}));
|
|
1888
1892
|
//#endregion
|
|
1889
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
1893
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/parse.js
|
|
1890
1894
|
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1891
1895
|
const constants = require_constants$1();
|
|
1892
1896
|
const utils = require_utils$2();
|
|
@@ -1914,6 +1918,177 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
1914
1918
|
const syntaxError = (type, char) => {
|
|
1915
1919
|
return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
|
|
1916
1920
|
};
|
|
1921
|
+
const splitTopLevel = (input) => {
|
|
1922
|
+
const parts = [];
|
|
1923
|
+
let bracket = 0;
|
|
1924
|
+
let paren = 0;
|
|
1925
|
+
let quote = 0;
|
|
1926
|
+
let value = "";
|
|
1927
|
+
let escaped = false;
|
|
1928
|
+
for (const ch of input) {
|
|
1929
|
+
if (escaped === true) {
|
|
1930
|
+
value += ch;
|
|
1931
|
+
escaped = false;
|
|
1932
|
+
continue;
|
|
1933
|
+
}
|
|
1934
|
+
if (ch === "\\") {
|
|
1935
|
+
value += ch;
|
|
1936
|
+
escaped = true;
|
|
1937
|
+
continue;
|
|
1938
|
+
}
|
|
1939
|
+
if (ch === "\"") {
|
|
1940
|
+
quote = quote === 1 ? 0 : 1;
|
|
1941
|
+
value += ch;
|
|
1942
|
+
continue;
|
|
1943
|
+
}
|
|
1944
|
+
if (quote === 0) {
|
|
1945
|
+
if (ch === "[") bracket++;
|
|
1946
|
+
else if (ch === "]" && bracket > 0) bracket--;
|
|
1947
|
+
else if (bracket === 0) {
|
|
1948
|
+
if (ch === "(") paren++;
|
|
1949
|
+
else if (ch === ")" && paren > 0) paren--;
|
|
1950
|
+
else if (ch === "|" && paren === 0) {
|
|
1951
|
+
parts.push(value);
|
|
1952
|
+
value = "";
|
|
1953
|
+
continue;
|
|
1954
|
+
}
|
|
1955
|
+
}
|
|
1956
|
+
}
|
|
1957
|
+
value += ch;
|
|
1958
|
+
}
|
|
1959
|
+
parts.push(value);
|
|
1960
|
+
return parts;
|
|
1961
|
+
};
|
|
1962
|
+
const isPlainBranch = (branch) => {
|
|
1963
|
+
let escaped = false;
|
|
1964
|
+
for (const ch of branch) {
|
|
1965
|
+
if (escaped === true) {
|
|
1966
|
+
escaped = false;
|
|
1967
|
+
continue;
|
|
1968
|
+
}
|
|
1969
|
+
if (ch === "\\") {
|
|
1970
|
+
escaped = true;
|
|
1971
|
+
continue;
|
|
1972
|
+
}
|
|
1973
|
+
if (/[?*+@!()[\]{}]/.test(ch)) return false;
|
|
1974
|
+
}
|
|
1975
|
+
return true;
|
|
1976
|
+
};
|
|
1977
|
+
const normalizeSimpleBranch = (branch) => {
|
|
1978
|
+
let value = branch.trim();
|
|
1979
|
+
let changed = true;
|
|
1980
|
+
while (changed === true) {
|
|
1981
|
+
changed = false;
|
|
1982
|
+
if (/^@\([^\\()[\]{}|]+\)$/.test(value)) {
|
|
1983
|
+
value = value.slice(2, -1);
|
|
1984
|
+
changed = true;
|
|
1985
|
+
}
|
|
1986
|
+
}
|
|
1987
|
+
if (!isPlainBranch(value)) return;
|
|
1988
|
+
return value.replace(/\\(.)/g, "$1");
|
|
1989
|
+
};
|
|
1990
|
+
const hasRepeatedCharPrefixOverlap = (branches) => {
|
|
1991
|
+
const values = branches.map(normalizeSimpleBranch).filter(Boolean);
|
|
1992
|
+
for (let i = 0; i < values.length; i++) for (let j = i + 1; j < values.length; j++) {
|
|
1993
|
+
const a = values[i];
|
|
1994
|
+
const b = values[j];
|
|
1995
|
+
const char = a[0];
|
|
1996
|
+
if (!char || a !== char.repeat(a.length) || b !== char.repeat(b.length)) continue;
|
|
1997
|
+
if (a === b || a.startsWith(b) || b.startsWith(a)) return true;
|
|
1998
|
+
}
|
|
1999
|
+
return false;
|
|
2000
|
+
};
|
|
2001
|
+
const parseRepeatedExtglob = (pattern, requireEnd = true) => {
|
|
2002
|
+
if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") return;
|
|
2003
|
+
let bracket = 0;
|
|
2004
|
+
let paren = 0;
|
|
2005
|
+
let quote = 0;
|
|
2006
|
+
let escaped = false;
|
|
2007
|
+
for (let i = 1; i < pattern.length; i++) {
|
|
2008
|
+
const ch = pattern[i];
|
|
2009
|
+
if (escaped === true) {
|
|
2010
|
+
escaped = false;
|
|
2011
|
+
continue;
|
|
2012
|
+
}
|
|
2013
|
+
if (ch === "\\") {
|
|
2014
|
+
escaped = true;
|
|
2015
|
+
continue;
|
|
2016
|
+
}
|
|
2017
|
+
if (ch === "\"") {
|
|
2018
|
+
quote = quote === 1 ? 0 : 1;
|
|
2019
|
+
continue;
|
|
2020
|
+
}
|
|
2021
|
+
if (quote === 1) continue;
|
|
2022
|
+
if (ch === "[") {
|
|
2023
|
+
bracket++;
|
|
2024
|
+
continue;
|
|
2025
|
+
}
|
|
2026
|
+
if (ch === "]" && bracket > 0) {
|
|
2027
|
+
bracket--;
|
|
2028
|
+
continue;
|
|
2029
|
+
}
|
|
2030
|
+
if (bracket > 0) continue;
|
|
2031
|
+
if (ch === "(") {
|
|
2032
|
+
paren++;
|
|
2033
|
+
continue;
|
|
2034
|
+
}
|
|
2035
|
+
if (ch === ")") {
|
|
2036
|
+
paren--;
|
|
2037
|
+
if (paren === 0) {
|
|
2038
|
+
if (requireEnd === true && i !== pattern.length - 1) return;
|
|
2039
|
+
return {
|
|
2040
|
+
type: pattern[0],
|
|
2041
|
+
body: pattern.slice(2, i),
|
|
2042
|
+
end: i
|
|
2043
|
+
};
|
|
2044
|
+
}
|
|
2045
|
+
}
|
|
2046
|
+
}
|
|
2047
|
+
};
|
|
2048
|
+
const getStarExtglobSequenceOutput = (pattern) => {
|
|
2049
|
+
let index = 0;
|
|
2050
|
+
const chars = [];
|
|
2051
|
+
while (index < pattern.length) {
|
|
2052
|
+
const match = parseRepeatedExtglob(pattern.slice(index), false);
|
|
2053
|
+
if (!match || match.type !== "*") return;
|
|
2054
|
+
const branches = splitTopLevel(match.body).map((branch) => branch.trim());
|
|
2055
|
+
if (branches.length !== 1) return;
|
|
2056
|
+
const branch = normalizeSimpleBranch(branches[0]);
|
|
2057
|
+
if (!branch || branch.length !== 1) return;
|
|
2058
|
+
chars.push(branch);
|
|
2059
|
+
index += match.end + 1;
|
|
2060
|
+
}
|
|
2061
|
+
if (chars.length < 1) return;
|
|
2062
|
+
return `${chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`}*`;
|
|
2063
|
+
};
|
|
2064
|
+
const repeatedExtglobRecursion = (pattern) => {
|
|
2065
|
+
let depth = 0;
|
|
2066
|
+
let value = pattern.trim();
|
|
2067
|
+
let match = parseRepeatedExtglob(value);
|
|
2068
|
+
while (match) {
|
|
2069
|
+
depth++;
|
|
2070
|
+
value = match.body.trim();
|
|
2071
|
+
match = parseRepeatedExtglob(value);
|
|
2072
|
+
}
|
|
2073
|
+
return depth;
|
|
2074
|
+
};
|
|
2075
|
+
const analyzeRepeatedExtglob = (body, options) => {
|
|
2076
|
+
if (options.maxExtglobRecursion === false) return { risky: false };
|
|
2077
|
+
const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
|
|
2078
|
+
const branches = splitTopLevel(body).map((branch) => branch.trim());
|
|
2079
|
+
if (branches.length > 1) {
|
|
2080
|
+
if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) return { risky: true };
|
|
2081
|
+
}
|
|
2082
|
+
for (const branch of branches) {
|
|
2083
|
+
const safeOutput = getStarExtglobSequenceOutput(branch);
|
|
2084
|
+
if (safeOutput) return {
|
|
2085
|
+
risky: true,
|
|
2086
|
+
safeOutput
|
|
2087
|
+
};
|
|
2088
|
+
if (repeatedExtglobRecursion(branch) > max) return { risky: true };
|
|
2089
|
+
}
|
|
2090
|
+
return { risky: false };
|
|
2091
|
+
};
|
|
1917
2092
|
/**
|
|
1918
2093
|
* Parse the given input string.
|
|
1919
2094
|
* @param {String} input
|
|
@@ -2044,6 +2219,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2044
2219
|
token.prev = prev;
|
|
2045
2220
|
token.parens = state.parens;
|
|
2046
2221
|
token.output = state.output;
|
|
2222
|
+
token.startIndex = state.index;
|
|
2223
|
+
token.tokensIndex = tokens.length;
|
|
2047
2224
|
const output = (opts.capture ? "(" : "") + token.open;
|
|
2048
2225
|
increment("parens");
|
|
2049
2226
|
push({
|
|
@@ -2060,6 +2237,31 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2060
2237
|
extglobs.push(token);
|
|
2061
2238
|
};
|
|
2062
2239
|
const extglobClose = (token) => {
|
|
2240
|
+
const literal = input.slice(token.startIndex, state.index + 1);
|
|
2241
|
+
const body = input.slice(token.startIndex + 2, state.index);
|
|
2242
|
+
const analysis = analyzeRepeatedExtglob(body, opts);
|
|
2243
|
+
if ((token.type === "plus" || token.type === "star") && analysis.risky) {
|
|
2244
|
+
const safeOutput = analysis.safeOutput ? (token.output ? "" : ONE_CHAR) + (opts.capture ? `(${analysis.safeOutput})` : analysis.safeOutput) : void 0;
|
|
2245
|
+
const open = tokens[token.tokensIndex];
|
|
2246
|
+
open.type = "text";
|
|
2247
|
+
open.value = literal;
|
|
2248
|
+
open.output = safeOutput || utils.escapeRegex(literal);
|
|
2249
|
+
for (let i = token.tokensIndex + 1; i < tokens.length; i++) {
|
|
2250
|
+
tokens[i].value = "";
|
|
2251
|
+
tokens[i].output = "";
|
|
2252
|
+
delete tokens[i].suffix;
|
|
2253
|
+
}
|
|
2254
|
+
state.output = token.output + open.output;
|
|
2255
|
+
state.backtrack = true;
|
|
2256
|
+
push({
|
|
2257
|
+
type: "paren",
|
|
2258
|
+
extglob: true,
|
|
2259
|
+
value,
|
|
2260
|
+
output: ""
|
|
2261
|
+
});
|
|
2262
|
+
decrement("parens");
|
|
2263
|
+
return;
|
|
2264
|
+
}
|
|
2063
2265
|
let output = token.close + (opts.capture ? ")" : "");
|
|
2064
2266
|
let rest;
|
|
2065
2267
|
if (token.type === "negate") {
|
|
@@ -2102,10 +2304,12 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2102
2304
|
}
|
|
2103
2305
|
return esc ? m : `\\${m}`;
|
|
2104
2306
|
});
|
|
2105
|
-
if (backslashes === true)
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2307
|
+
if (backslashes === true) {
|
|
2308
|
+
if (opts.unescape === true) output = output.replace(/\\/g, "");
|
|
2309
|
+
else output = output.replace(/\\+/g, (m) => {
|
|
2310
|
+
return m.length % 2 === 0 ? "\\\\" : m ? "\\" : "";
|
|
2311
|
+
});
|
|
2312
|
+
}
|
|
2109
2313
|
if (output === input && opts.contains === true) {
|
|
2110
2314
|
state.output = input;
|
|
2111
2315
|
return state;
|
|
@@ -2163,7 +2367,8 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2163
2367
|
if (inner.includes(":")) {
|
|
2164
2368
|
const idx = prev.value.lastIndexOf("[");
|
|
2165
2369
|
const pre = prev.value.slice(0, idx);
|
|
2166
|
-
const
|
|
2370
|
+
const rest = prev.value.slice(idx + 2);
|
|
2371
|
+
const posix = POSIX_REGEX_SOURCE[rest];
|
|
2167
2372
|
if (posix) {
|
|
2168
2373
|
prev.value = pre + posix;
|
|
2169
2374
|
state.backtrack = true;
|
|
@@ -2747,7 +2952,7 @@ var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2747
2952
|
module.exports = parse;
|
|
2748
2953
|
}));
|
|
2749
2954
|
//#endregion
|
|
2750
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
2955
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/lib/picomatch.js
|
|
2751
2956
|
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2752
2957
|
const path$6 = __require("path");
|
|
2753
2958
|
const scan = require_scan();
|
|
@@ -2866,8 +3071,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
2866
3071
|
output = format ? format(input) : input;
|
|
2867
3072
|
match = output === glob;
|
|
2868
3073
|
}
|
|
2869
|
-
if (match === false || opts.capture === true)
|
|
2870
|
-
|
|
3074
|
+
if (match === false || opts.capture === true) {
|
|
3075
|
+
if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options, posix);
|
|
3076
|
+
else match = regex.exec(output);
|
|
3077
|
+
}
|
|
2871
3078
|
return {
|
|
2872
3079
|
isMatch: Boolean(match),
|
|
2873
3080
|
match,
|
|
@@ -3040,7 +3247,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3040
3247
|
module.exports = picomatch;
|
|
3041
3248
|
}));
|
|
3042
3249
|
//#endregion
|
|
3043
|
-
//#region ../../node_modules/.pnpm/picomatch@2.3.
|
|
3250
|
+
//#region ../../node_modules/.pnpm/picomatch@2.3.2/node_modules/picomatch/index.js
|
|
3044
3251
|
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3045
3252
|
module.exports = require_picomatch$1();
|
|
3046
3253
|
}));
|
|
@@ -3645,7 +3852,7 @@ var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
3645
3852
|
const doEnd = options.end !== false;
|
|
3646
3853
|
const doPipeError = options.pipeError === true;
|
|
3647
3854
|
if (options.objectMode == null) options.objectMode = true;
|
|
3648
|
-
if (options.highWaterMark == null) options.highWaterMark =
|
|
3855
|
+
if (options.highWaterMark == null) options.highWaterMark = 65536;
|
|
3649
3856
|
const mergedStream = PassThrough$1(options);
|
|
3650
3857
|
function addStream() {
|
|
3651
3858
|
for (let i = 0, len = arguments.length; i < len; i++) streamsQueue.push(pauseStreams(arguments[i], options));
|
|
@@ -4113,7 +4320,8 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4113
4320
|
callSuccessCallback(callback, entries);
|
|
4114
4321
|
return;
|
|
4115
4322
|
}
|
|
4116
|
-
|
|
4323
|
+
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
|
4324
|
+
rpl(tasks, (rplError, rplEntries) => {
|
|
4117
4325
|
if (rplError !== null) {
|
|
4118
4326
|
callFailureCallback(callback, rplError);
|
|
4119
4327
|
return;
|
|
@@ -4149,7 +4357,7 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4149
4357
|
callFailureCallback(callback, readdirError);
|
|
4150
4358
|
return;
|
|
4151
4359
|
}
|
|
4152
|
-
|
|
4360
|
+
const tasks = names.map((name) => {
|
|
4153
4361
|
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4154
4362
|
return (done) => {
|
|
4155
4363
|
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
@@ -4166,7 +4374,8 @@ var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
4166
4374
|
done(null, entry);
|
|
4167
4375
|
});
|
|
4168
4376
|
};
|
|
4169
|
-
})
|
|
4377
|
+
});
|
|
4378
|
+
rpl(tasks, (rplError, entries) => {
|
|
4170
4379
|
if (rplError !== null) {
|
|
4171
4380
|
callFailureCallback(callback, rplError);
|
|
4172
4381
|
return;
|
|
@@ -4424,15 +4633,16 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4424
4633
|
current.value = value;
|
|
4425
4634
|
current.callback = done || noop;
|
|
4426
4635
|
current.errorHandler = errorHandler;
|
|
4427
|
-
if (_running >= _concurrency || self.paused)
|
|
4428
|
-
queueTail
|
|
4429
|
-
|
|
4636
|
+
if (_running >= _concurrency || self.paused) {
|
|
4637
|
+
if (queueTail) {
|
|
4638
|
+
queueTail.next = current;
|
|
4639
|
+
queueTail = current;
|
|
4640
|
+
} else {
|
|
4641
|
+
queueHead = current;
|
|
4642
|
+
queueTail = current;
|
|
4643
|
+
self.saturated();
|
|
4644
|
+
}
|
|
4430
4645
|
} else {
|
|
4431
|
-
queueHead = current;
|
|
4432
|
-
queueTail = current;
|
|
4433
|
-
self.saturated();
|
|
4434
|
-
}
|
|
4435
|
-
else {
|
|
4436
4646
|
_running++;
|
|
4437
4647
|
worker.call(context, current.value, current.worked);
|
|
4438
4648
|
}
|
|
@@ -4444,15 +4654,16 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4444
4654
|
current.value = value;
|
|
4445
4655
|
current.callback = done || noop;
|
|
4446
4656
|
current.errorHandler = errorHandler;
|
|
4447
|
-
if (_running >= _concurrency || self.paused)
|
|
4448
|
-
|
|
4449
|
-
|
|
4657
|
+
if (_running >= _concurrency || self.paused) {
|
|
4658
|
+
if (queueHead) {
|
|
4659
|
+
current.next = queueHead;
|
|
4660
|
+
queueHead = current;
|
|
4661
|
+
} else {
|
|
4662
|
+
queueHead = current;
|
|
4663
|
+
queueTail = current;
|
|
4664
|
+
self.saturated();
|
|
4665
|
+
}
|
|
4450
4666
|
} else {
|
|
4451
|
-
queueHead = current;
|
|
4452
|
-
queueTail = current;
|
|
4453
|
-
self.saturated();
|
|
4454
|
-
}
|
|
4455
|
-
else {
|
|
4456
4667
|
_running++;
|
|
4457
4668
|
worker.call(context, current.value, current.worked);
|
|
4458
4669
|
}
|
|
@@ -4460,14 +4671,15 @@ var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
4460
4671
|
function release(holder) {
|
|
4461
4672
|
if (holder) cache.release(holder);
|
|
4462
4673
|
var next = queueHead;
|
|
4463
|
-
if (next && _running <= _concurrency)
|
|
4464
|
-
if (
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
4674
|
+
if (next && _running <= _concurrency) {
|
|
4675
|
+
if (!self.paused) {
|
|
4676
|
+
if (queueTail === queueHead) queueTail = null;
|
|
4677
|
+
queueHead = next.next;
|
|
4678
|
+
next.next = null;
|
|
4679
|
+
worker.call(context, next.value, next.worked);
|
|
4680
|
+
if (queueTail === null) self.empty();
|
|
4681
|
+
} else _running--;
|
|
4682
|
+
} else if (--_running === 0) self.drain();
|
|
4471
4683
|
}
|
|
4472
4684
|
function kill() {
|
|
4473
4685
|
queueHead = null;
|
|
@@ -5833,7 +6045,8 @@ function slash(path) {
|
|
|
5833
6045
|
return path.replace(/\\/g, "/");
|
|
5834
6046
|
}
|
|
5835
6047
|
//#endregion
|
|
5836
|
-
//#region ../../node_modules/.pnpm/globby@16.2.
|
|
6048
|
+
//#region ../../node_modules/.pnpm/globby@16.2.4/node_modules/globby/utilities.js
|
|
6049
|
+
var import_micromatch = /* @__PURE__ */ __toESM(require_micromatch(), 1);
|
|
5837
6050
|
const isNegativePattern = (pattern) => pattern[0] === "!";
|
|
5838
6051
|
/**
|
|
5839
6052
|
Normalize a root-anchored pattern to be relative.
|
|
@@ -5968,7 +6181,8 @@ const findGitRootInChain = async (paths, statMethod) => {
|
|
|
5968
6181
|
for (const directory of paths) {
|
|
5969
6182
|
const gitPath = path.join(directory, ".git");
|
|
5970
6183
|
try {
|
|
5971
|
-
|
|
6184
|
+
const stats = await statMethod(gitPath);
|
|
6185
|
+
if (pathHasGitDirectory(stats)) return directory;
|
|
5972
6186
|
} catch {}
|
|
5973
6187
|
}
|
|
5974
6188
|
};
|
|
@@ -5981,7 +6195,8 @@ const findGitRootSyncUncached = (cwd, fsImplementation) => {
|
|
|
5981
6195
|
for (const directory of chain) {
|
|
5982
6196
|
const gitPath = path.join(directory, ".git");
|
|
5983
6197
|
try {
|
|
5984
|
-
|
|
6198
|
+
const stats = statSyncMethod(gitPath);
|
|
6199
|
+
if (pathHasGitDirectory(stats)) return directory;
|
|
5985
6200
|
} catch {}
|
|
5986
6201
|
}
|
|
5987
6202
|
};
|
|
@@ -5994,7 +6209,8 @@ const findGitRootAsyncUncached = async (cwd, fsImplementation) => {
|
|
|
5994
6209
|
if (!statMethod) return findGitRootSync(cwd, fsImplementation);
|
|
5995
6210
|
const currentPath = path.resolve(cwd);
|
|
5996
6211
|
const { root } = path.parse(currentPath);
|
|
5997
|
-
|
|
6212
|
+
const chain = buildPathChain(currentPath, root);
|
|
6213
|
+
return findGitRootInChain(chain, statMethod);
|
|
5998
6214
|
};
|
|
5999
6215
|
const findGitRoot = async (cwd, fsImplementation) => {
|
|
6000
6216
|
if (typeof cwd !== "string") throw new TypeError("cwd must be a string");
|
|
@@ -6019,30 +6235,183 @@ const getParentGitignorePaths = (gitRoot, cwd) => {
|
|
|
6019
6235
|
if (!isWithinGitRoot(gitRoot, cwd)) return [];
|
|
6020
6236
|
return [...buildPathChain(path.resolve(cwd), path.resolve(gitRoot))].reverse().map((directory) => path.join(directory, ".gitignore"));
|
|
6021
6237
|
};
|
|
6238
|
+
const GITIGNORE_WILDCARDS = /(?<!\\)[*?[]/u;
|
|
6239
|
+
const hasGitignoreWildcards = (value) => GITIGNORE_WILDCARDS.test(value);
|
|
6240
|
+
const MICROMATCH_ONLY_SYNTAX = /[(){}|\\]/u;
|
|
6241
|
+
const unescapeGitignorePattern = (value) => value.replaceAll(/\\(.)/gu, "$1");
|
|
6242
|
+
const normalizeGitignorePatternForIgnore = (value) => value.replaceAll(/\\(.)/gu, (match, character) => "*[]\\".includes(character) ? match : character);
|
|
6243
|
+
const toLiteralPattern = (value) => import_out.default.escapePath(unescapeGitignorePattern(value));
|
|
6244
|
+
const finalSegment = (value) => value.replace(/\/+$/u, "").split("/").pop();
|
|
6245
|
+
const toStandaloneRule = (value) => value.replace(/^([#!])/u, String.raw`\$1`);
|
|
6246
|
+
const isInsideCwd = (relativePath) => relativePath !== "" && !relativePath.startsWith("..") && !path.isAbsolute(relativePath);
|
|
6022
6247
|
/**
|
|
6023
|
-
|
|
6024
|
-
Returns empty array if patterns should be handled by predicate only.
|
|
6248
|
+
Resolve a pattern anchored at the directory of its ignore file into a cwd-relative one.
|
|
6025
6249
|
|
|
6026
|
-
@param {string
|
|
6027
|
-
@param {
|
|
6028
|
-
@param {
|
|
6029
|
-
@returns {string
|
|
6250
|
+
@param {string} directory - Directory of the ignore file that declared the rule.
|
|
6251
|
+
@param {string} body - The rule body, relative to that directory.
|
|
6252
|
+
@param {string} cwd - Directory the glob runs from.
|
|
6253
|
+
@returns {string|undefined} The cwd-relative pattern, or undefined when it targets something outside the cwd.
|
|
6030
6254
|
*/
|
|
6031
|
-
const
|
|
6032
|
-
|
|
6033
|
-
|
|
6034
|
-
|
|
6035
|
-
|
|
6036
|
-
|
|
6037
|
-
|
|
6038
|
-
|
|
6039
|
-
|
|
6040
|
-
|
|
6255
|
+
const anchorToCwd = (directory, body, cwd) => {
|
|
6256
|
+
const relativePath = slash(path.relative(cwd, path.join(directory, body)));
|
|
6257
|
+
return isInsideCwd(relativePath) ? relativePath : void 0;
|
|
6258
|
+
};
|
|
6259
|
+
const createNameComparer = () => {
|
|
6260
|
+
const nameMatchers = /* @__PURE__ */ new Map();
|
|
6261
|
+
const matchesName = (pattern, name) => {
|
|
6262
|
+
const namePath = unescapeGitignorePattern(name);
|
|
6263
|
+
if (!(0, import_ignore.isPathValid)(namePath)) return true;
|
|
6264
|
+
const normalizedPattern = normalizeGitignorePatternForIgnore(pattern);
|
|
6265
|
+
let nameMatcher = nameMatchers.get(normalizedPattern);
|
|
6266
|
+
if (!nameMatcher) {
|
|
6267
|
+
nameMatcher = (0, import_ignore.default)().add([toStandaloneRule(normalizedPattern)]);
|
|
6268
|
+
nameMatchers.set(normalizedPattern, nameMatcher);
|
|
6269
|
+
}
|
|
6270
|
+
return nameMatcher.ignores(namePath);
|
|
6271
|
+
};
|
|
6272
|
+
return (pattern, name) => {
|
|
6273
|
+
if (hasGitignoreWildcards(pattern) && hasGitignoreWildcards(name)) return true;
|
|
6274
|
+
return hasGitignoreWildcards(name) ? matchesName(name, pattern) : matchesName(pattern, name);
|
|
6275
|
+
};
|
|
6276
|
+
};
|
|
6277
|
+
const getNegationFinalSegments = (rules) => rules.filter((rule) => isNegativePattern(rule.pattern)).map((rule) => finalSegment(rule.pattern.slice(1))).filter(Boolean);
|
|
6278
|
+
/**
|
|
6279
|
+
Check whether any negation in the given rules could re-include a path with one of the given names.
|
|
6280
|
+
|
|
6281
|
+
Used after the pruned ignore-file search: a negation found by that search can re-include a directory the prune patterns skipped, which means ignore files inside it were never discovered.
|
|
6282
|
+
|
|
6283
|
+
@param {Array<{pattern: string, directory: string}>} rules - Raw ignore-file lines and the directory of the ignore file that declared them.
|
|
6284
|
+
@param {string[]} names - The guard names returned by `buildPrunePatternsAndGuards`.
|
|
6285
|
+
@returns {boolean} Whether a negation could name one of them.
|
|
6286
|
+
*/
|
|
6287
|
+
const negationsCouldRescue = (rules, names) => {
|
|
6288
|
+
if (names.length === 0) return false;
|
|
6289
|
+
const couldNameTheSamePath = createNameComparer();
|
|
6290
|
+
return getNegationFinalSegments(rules).some((negation) => names.some((name) => couldNameTheSamePath(name, negation)));
|
|
6291
|
+
};
|
|
6292
|
+
const expandBraceGroups = (pattern) => {
|
|
6293
|
+
if (!pattern.includes("{")) return [pattern];
|
|
6294
|
+
const expandedPatterns = import_out.default.generateTasks(pattern).flatMap((task) => task.patterns);
|
|
6295
|
+
return expandedPatterns.length > 0 ? expandedPatterns : [pattern];
|
|
6296
|
+
};
|
|
6297
|
+
/**
|
|
6298
|
+
Drop the `ignore` patterns that could exclude an ignore file from the search that looks for them.
|
|
6299
|
+
|
|
6300
|
+
`ignore` excludes paths from the results, while the ignore files decide what is ignored, so it must never be able to hide one of them. See https://github.com/sindresorhus/globby/issues/281
|
|
6301
|
+
|
|
6302
|
+
The rest are normally kept unchanged, so that unreadable or unwanted directories are still skipped while searching. Advanced micromatch syntax in the directory portion makes filename comparison unreliable, so optional pruning is disabled for that rare pattern shape. See https://github.com/sindresorhus/globby/pull/259
|
|
6303
|
+
|
|
6304
|
+
A pattern that names a directory is safe to keep even when that directory holds an ignore file: nothing inside an excluded directory ends up in the results either. Only the final segment can name the ignore file itself, and a trailing `/**` does not protect it, since fast-glob matches `foo/**` against `foo` as well.
|
|
6305
|
+
|
|
6306
|
+
@param {string[]} ignorePatterns - The `ignore` option, as an array.
|
|
6307
|
+
@param {string[]} searchPatterns - The patterns the ignore files are searched with.
|
|
6308
|
+
@returns {string[]} The patterns that are left, to be used as the `ignore` option of that search.
|
|
6309
|
+
*/
|
|
6310
|
+
const convertIgnorePatternsForIgnoreFileSearch = (ignorePatterns, searchPatterns) => {
|
|
6311
|
+
if (ignorePatterns.length === 0) return ignorePatterns;
|
|
6312
|
+
const couldNameTheSamePath = createNameComparer();
|
|
6313
|
+
const expandedSearchPatterns = searchPatterns.flatMap((pattern) => expandBraceGroups(pattern));
|
|
6314
|
+
if (expandedSearchPatterns.some((pattern) => MICROMATCH_ONLY_SYNTAX.test(pattern.slice(0, pattern.lastIndexOf("/") + 1)))) return [];
|
|
6315
|
+
const ignoreFileNames = expandedSearchPatterns.map((pattern) => finalSegment(pattern)).filter(Boolean);
|
|
6316
|
+
const couldNameAnIgnoreFile = (pattern) => {
|
|
6317
|
+
const name = finalSegment(pattern.replace(/\/\*\*$/u, ""));
|
|
6318
|
+
if (!name || MICROMATCH_ONLY_SYNTAX.test(name)) return true;
|
|
6319
|
+
return ignoreFileNames.some((ignoreFileName) => MICROMATCH_ONLY_SYNTAX.test(ignoreFileName) ? hasGitignoreWildcards(name) || import_micromatch.default.isMatch(unescapeGitignorePattern(name), ignoreFileName, {
|
|
6320
|
+
dot: true,
|
|
6321
|
+
nocase: true
|
|
6322
|
+
}) : couldNameTheSamePath(name, ignoreFileName));
|
|
6323
|
+
};
|
|
6324
|
+
return ignorePatterns.filter((pattern) => !expandBraceGroups(pattern).some((expanded) => couldNameAnIgnoreFile(expanded)));
|
|
6325
|
+
};
|
|
6326
|
+
const getRulePrune = ({ pattern, directory }, { cwd, matcher, hasNegations, canSkipAtAnyDepth, canMatchIgnoreFile, gitignoreOnlySearch }) => {
|
|
6327
|
+
if (isNegativePattern(pattern)) return;
|
|
6328
|
+
const isDirectoryPattern = pattern.endsWith("/");
|
|
6329
|
+
const clean = pattern.replace(/\/+$/u, "");
|
|
6330
|
+
if (!clean) return;
|
|
6331
|
+
const body = clean.startsWith("**/") && !clean.slice(3).includes("/") ? clean.slice(3) : clean;
|
|
6332
|
+
if (canMatchIgnoreFile(finalSegment(body))) return;
|
|
6333
|
+
const isGlob = hasGitignoreWildcards(body);
|
|
6334
|
+
if (isGlob && MICROMATCH_ONLY_SYNTAX.test(body)) return;
|
|
6335
|
+
const toFastGlob = (value) => normalizeDirectoryPatternForFastGlob(`/${value}${isDirectoryPattern ? "/" : ""}`).replace(/^\//u, "");
|
|
6336
|
+
if (!body.includes("/") && canSkipAtAnyDepth(body)) {
|
|
6337
|
+
const relativeDirectory = slash(path.relative(cwd, directory));
|
|
6338
|
+
return {
|
|
6339
|
+
pattern: toFastGlob(`${isInsideCwd(relativeDirectory) ? `${import_out.default.escapePath(relativeDirectory)}/` : ""}**/${isGlob ? body : toLiteralPattern(body)}`),
|
|
6340
|
+
guardName: body
|
|
6341
|
+
};
|
|
6342
|
+
}
|
|
6343
|
+
const anchoredBody = body.replace(/^\//u, "");
|
|
6344
|
+
const target = anchorToCwd(directory, isGlob ? anchoredBody : unescapeGitignorePattern(anchoredBody), cwd);
|
|
6345
|
+
if (target === void 0) return;
|
|
6346
|
+
const guardName = finalSegment(anchoredBody);
|
|
6347
|
+
if (isGlob) return hasNegations ? void 0 : {
|
|
6348
|
+
pattern: toFastGlob(target),
|
|
6349
|
+
guardName
|
|
6350
|
+
};
|
|
6351
|
+
if (!matcher(path.resolve(cwd, target) + path.sep).ignored) return;
|
|
6352
|
+
const needsGuard = !gitignoreOnlySearch || target.includes("/");
|
|
6353
|
+
return {
|
|
6354
|
+
pattern: toFastGlob(import_out.default.escapePath(target)),
|
|
6355
|
+
guardName: needsGuard ? guardName : void 0
|
|
6356
|
+
};
|
|
6357
|
+
};
|
|
6358
|
+
/**
|
|
6359
|
+
Build the ignore patterns handed to fast-glob so it can skip ignored directories while traversing.
|
|
6360
|
+
|
|
6361
|
+
The authoritative filter is always the predicate, so these patterns only ever need to be safe:
|
|
6362
|
+
skipping something the predicate would have kept loses files, while skipping less than possible
|
|
6363
|
+
merely costs time. Two facts from the gitignore spec make aggressive skipping safe anyway:
|
|
6364
|
+
|
|
6365
|
+
- "It is not possible to re-include a file if a parent directory of that file is excluded."
|
|
6366
|
+
So a directory that is still ignored once every negation has been applied can be skipped whole.
|
|
6367
|
+
- A pattern with no separator matches at any depth below its own ignore file, and one with a
|
|
6368
|
+
separator is anchored to that file's directory. Working from the raw rules - rather than from
|
|
6369
|
+
patterns already rebased onto some other directory - keeps that distinction intact, which is
|
|
6370
|
+
what lets this work from a subdirectory of the repository too.
|
|
6371
|
+
|
|
6372
|
+
The returned guard names are the directory names whose skipping relies on the given rules being
|
|
6373
|
+
complete. A caller working from a partial rule set (the ignore-file search) must watch for later
|
|
6374
|
+
negations that could name one of them; see `negationsCouldRescue`.
|
|
6375
|
+
|
|
6376
|
+
@param {Array<{pattern: string, directory: string}>} rules - Raw ignore-file lines and the directory of the ignore file that declared them.
|
|
6377
|
+
@param {Function} matcher - The authoritative gitignore matcher.
|
|
6378
|
+
@param {string} cwd - Directory the glob runs from.
|
|
6379
|
+
@param {Object} [options] - Options.
|
|
6380
|
+
@param {boolean} [options.gitignoreOnlySearch] - Whether the rule set can only grow through nested `.gitignore` files.
|
|
6381
|
+
@param {boolean} [options.searchesForGitignoreFiles] - Whether the search includes `.gitignore` files.
|
|
6382
|
+
@returns {{patterns: string[], guardNames: string[]}} Patterns safe to pass to fast-glob, and the names their safety depends on.
|
|
6383
|
+
*/
|
|
6384
|
+
const buildPrunePatternsAndGuards = (rules, matcher, cwd, { gitignoreOnlySearch = false, searchesForGitignoreFiles = false } = {}) => {
|
|
6385
|
+
if (!matcher || !cwd || !rules || rules.length === 0) return {
|
|
6386
|
+
patterns: [],
|
|
6387
|
+
guardNames: []
|
|
6388
|
+
};
|
|
6389
|
+
const negationNames = getNegationFinalSegments(rules);
|
|
6390
|
+
const couldNameTheSamePath = createNameComparer();
|
|
6391
|
+
const context = {
|
|
6392
|
+
cwd,
|
|
6393
|
+
matcher,
|
|
6394
|
+
hasNegations: negationNames.length > 0,
|
|
6395
|
+
canSkipAtAnyDepth: (pattern) => !negationNames.some((name) => couldNameTheSamePath(pattern, name)),
|
|
6396
|
+
canMatchIgnoreFile: (pattern) => searchesForGitignoreFiles && couldNameTheSamePath(pattern, ".gitignore"),
|
|
6397
|
+
gitignoreOnlySearch
|
|
6398
|
+
};
|
|
6399
|
+
const patterns = [];
|
|
6400
|
+
const guardNames = [];
|
|
6401
|
+
for (const rule of rules) {
|
|
6402
|
+
const prune = getRulePrune(rule, context);
|
|
6403
|
+
if (!prune) continue;
|
|
6404
|
+
patterns.push(prune.pattern);
|
|
6405
|
+
if (prune.guardName !== void 0) guardNames.push(prune.guardName);
|
|
6041
6406
|
}
|
|
6042
|
-
return
|
|
6407
|
+
return {
|
|
6408
|
+
patterns,
|
|
6409
|
+
guardNames
|
|
6410
|
+
};
|
|
6043
6411
|
};
|
|
6412
|
+
const convertPatternsForFastGlob = (rules, matcher, cwd) => buildPrunePatternsAndGuards(rules, matcher, cwd).patterns;
|
|
6044
6413
|
//#endregion
|
|
6045
|
-
//#region ../../node_modules/.pnpm/globby@16.2.
|
|
6414
|
+
//#region ../../node_modules/.pnpm/globby@16.2.4/node_modules/globby/ignore.js
|
|
6046
6415
|
const defaultIgnoredDirectories = [
|
|
6047
6416
|
"**/node_modules",
|
|
6048
6417
|
"**/flow-typed",
|
|
@@ -6093,14 +6462,35 @@ const globIgnoreFiles = (globFunction, patterns, normalizedOptions) => globFunct
|
|
|
6093
6462
|
...normalizedOptions,
|
|
6094
6463
|
...ignoreFilesGlobOptions
|
|
6095
6464
|
});
|
|
6096
|
-
const
|
|
6097
|
-
|
|
6465
|
+
const normalizeIgnoreFileLine = (line) => {
|
|
6466
|
+
line = line.replace(/^\uFEFF/u, "");
|
|
6467
|
+
let whitespaceStart = line.length;
|
|
6468
|
+
while (whitespaceStart > 0 && /\s/u.test(line[whitespaceStart - 1])) whitespaceStart--;
|
|
6469
|
+
if (whitespaceStart === line.length) return line;
|
|
6470
|
+
let backslashCount = 0;
|
|
6471
|
+
for (let index = whitespaceStart - 1; index >= 0 && line[index] === "\\"; index--) backslashCount++;
|
|
6472
|
+
return backslashCount % 2 === 1 ? line.slice(0, whitespaceStart) + " " : line.slice(0, whitespaceStart);
|
|
6473
|
+
};
|
|
6474
|
+
const readIgnoreFileLines = (content) => content.split(/\r?\n/).map((line) => normalizeIgnoreFileLine(line)).filter((line) => line && !line.startsWith("#"));
|
|
6475
|
+
/**
|
|
6476
|
+
Get the lines of every ignore file, as git reads them, each paired with the directory of the file that declared them.
|
|
6477
|
+
|
|
6478
|
+
Anchoring is only meaningful relative to that directory, and the rebased patterns have already lost it, so keep the originals for anything that has to reason about which paths a rule covers.
|
|
6479
|
+
*/
|
|
6480
|
+
const getIgnoreRules = (files) => files.flatMap((file) => {
|
|
6481
|
+
const directory = path.dirname(file.filePath);
|
|
6482
|
+
return readIgnoreFileLines(file.content).map((pattern) => ({
|
|
6483
|
+
pattern,
|
|
6484
|
+
directory
|
|
6485
|
+
}));
|
|
6486
|
+
});
|
|
6098
6487
|
const buildIgnoreResult = (files, normalizedOptions, gitRoot) => {
|
|
6099
6488
|
const baseDir = gitRoot || normalizedOptions.cwd;
|
|
6100
6489
|
const patterns = getPatternsFromIgnoreFiles(files, baseDir);
|
|
6101
6490
|
const matcher = createIgnoreMatcher(patterns, normalizedOptions.cwd, baseDir);
|
|
6102
6491
|
return {
|
|
6103
6492
|
patterns,
|
|
6493
|
+
rules: getIgnoreRules(files),
|
|
6104
6494
|
matcher,
|
|
6105
6495
|
predicate: (fileOrDirectory) => matcher(fileOrDirectory).ignored,
|
|
6106
6496
|
usingGitRoot: Boolean(gitRoot && gitRoot !== normalizedOptions.cwd)
|
|
@@ -6120,7 +6510,7 @@ const applyBaseToPattern = (pattern, base) => {
|
|
|
6120
6510
|
};
|
|
6121
6511
|
const parseIgnoreFile = (file, cwd) => {
|
|
6122
6512
|
const base = slash(path.relative(cwd, path.dirname(file.filePath)));
|
|
6123
|
-
return file.content
|
|
6513
|
+
return readIgnoreFileLines(file.content).map((pattern) => applyBaseToPattern(pattern, base));
|
|
6124
6514
|
};
|
|
6125
6515
|
const toRelativePath = (fileOrDirectory, cwd) => {
|
|
6126
6516
|
if (path.isAbsolute(fileOrDirectory)) {
|
|
@@ -6288,7 +6678,9 @@ const matchesIncludeIfCondition = (condition, gitDirectory, configFilePath) => {
|
|
|
6288
6678
|
const match = condition.match(/^(gitdir|gitdir\/i):(.*)$/i);
|
|
6289
6679
|
if (!match) return false;
|
|
6290
6680
|
const [, keyword, rawPattern] = match;
|
|
6291
|
-
const
|
|
6681
|
+
const pattern = normalizeGitConfigConditionPattern(rawPattern.trim(), configFilePath);
|
|
6682
|
+
const isCaseInsensitive = keyword.toLowerCase() === "gitdir/i";
|
|
6683
|
+
const regularExpression = gitConfigGlobToRegex(pattern, isCaseInsensitive ? "i" : void 0);
|
|
6292
6684
|
const normalizedGitDirectory = slash(path.resolve(gitDirectory));
|
|
6293
6685
|
return regularExpression.test(normalizedGitDirectory);
|
|
6294
6686
|
};
|
|
@@ -6303,6 +6695,7 @@ const createExcludesFileValue = (value, declaringFilePath) => ({
|
|
|
6303
6695
|
});
|
|
6304
6696
|
/**
|
|
6305
6697
|
Parse git config content and return the excludesFile value and any include paths to recurse into.
|
|
6698
|
+
|
|
6306
6699
|
The caller is responsible for reading files and recursing (sync or async).
|
|
6307
6700
|
*/
|
|
6308
6701
|
const parseGitConfigForExcludesFile = (content, normalizedPath, gitDirectory) => {
|
|
@@ -6329,37 +6722,6 @@ const parseGitConfigForExcludesFile = (content, normalizedPath, gitDirectory) =>
|
|
|
6329
6722
|
includePaths
|
|
6330
6723
|
};
|
|
6331
6724
|
};
|
|
6332
|
-
const readGitConfigFile = (normalizedPath, readMethod, suppressErrors) => {
|
|
6333
|
-
try {
|
|
6334
|
-
return readMethod(normalizedPath, "utf8");
|
|
6335
|
-
} catch (error) {
|
|
6336
|
-
if (shouldSkipIgnoreFileError(error, suppressErrors)) return;
|
|
6337
|
-
throw createGitConfigReadError(normalizedPath, error);
|
|
6338
|
-
}
|
|
6339
|
-
};
|
|
6340
|
-
const getExcludesFileFromGitConfigSync = (filePath, readFileSync, gitDirectory, options = {}) => {
|
|
6341
|
-
const { suppressErrors, includeStack = /* @__PURE__ */ new Set(), depth = 0 } = options;
|
|
6342
|
-
const normalizedPath = path.resolve(filePath);
|
|
6343
|
-
if (includeStack.has(normalizedPath)) return;
|
|
6344
|
-
if (depth >= MAX_INCLUDE_DEPTH) return;
|
|
6345
|
-
includeStack.add(normalizedPath);
|
|
6346
|
-
const content = readGitConfigFile(normalizedPath, readFileSync, suppressErrors);
|
|
6347
|
-
if (content === void 0) {
|
|
6348
|
-
includeStack.delete(normalizedPath);
|
|
6349
|
-
return;
|
|
6350
|
-
}
|
|
6351
|
-
let { excludesFile, includePaths } = parseGitConfigForExcludesFile(content, normalizedPath, gitDirectory);
|
|
6352
|
-
for (const includePath of includePaths) {
|
|
6353
|
-
const includedExcludesFile = getExcludesFileFromGitConfigSync(includePath, readFileSync, gitDirectory, {
|
|
6354
|
-
suppressErrors,
|
|
6355
|
-
includeStack,
|
|
6356
|
-
depth: depth + 1
|
|
6357
|
-
});
|
|
6358
|
-
if (includedExcludesFile !== void 0) excludesFile = includedExcludesFile;
|
|
6359
|
-
}
|
|
6360
|
-
includeStack.delete(normalizedPath);
|
|
6361
|
-
return excludesFile;
|
|
6362
|
-
};
|
|
6363
6725
|
const getExcludesFileFromGitConfigAsync = async (filePath, readFile, gitDirectory, options = {}) => {
|
|
6364
6726
|
const { suppressErrors, includeStack = /* @__PURE__ */ new Set(), depth = 0 } = options;
|
|
6365
6727
|
const normalizedPath = path.resolve(filePath);
|
|
@@ -6417,8 +6779,10 @@ const resolveExcludesFilePath = (excludesFileConfig) => {
|
|
|
6417
6779
|
const getGlobalGitignoreFileAsync = async (options = {}) => {
|
|
6418
6780
|
const cwd = toPath(options.cwd) ?? process$1.cwd();
|
|
6419
6781
|
const readFile = getReadFileMethod(options.fs);
|
|
6420
|
-
const
|
|
6421
|
-
const
|
|
6782
|
+
const gitRoot = await findGitRoot(cwd, options.fs);
|
|
6783
|
+
const gitDirectory = await getGitDirectoryAsync(gitRoot, readFile);
|
|
6784
|
+
const excludesFileConfig = (await Promise.all(getGitConfigPaths().map((gitConfigPath) => getExcludesFileFromGitConfigAsync(gitConfigPath, readFile, gitDirectory, { suppressErrors: options.suppressErrors })))).findLast((value) => value !== void 0);
|
|
6785
|
+
const filePath = resolveExcludesFilePath(excludesFileConfig);
|
|
6422
6786
|
if (filePath === void 0) return;
|
|
6423
6787
|
try {
|
|
6424
6788
|
return {
|
|
@@ -6431,14 +6795,78 @@ const getGlobalGitignoreFileAsync = async (options = {}) => {
|
|
|
6431
6795
|
}
|
|
6432
6796
|
};
|
|
6433
6797
|
const buildGlobalMatcher = (globalIgnoreFile, cwd, rootDirectory = cwd) => {
|
|
6434
|
-
|
|
6798
|
+
const patterns = parseIgnoreFile(globalIgnoreFile, path.dirname(globalIgnoreFile.filePath));
|
|
6799
|
+
return createIgnoreMatcher(patterns, cwd, rootDirectory);
|
|
6800
|
+
};
|
|
6801
|
+
/**
|
|
6802
|
+
Ignore files at or above the cwd can be located without traversing anything.
|
|
6803
|
+
|
|
6804
|
+
Reading them before searching for the nested ones lets the search itself skip whole ignored directories. Otherwise the recursive search for ignore files walks even the directories that the same `.gitignore` excludes, so a large ignored directory (a mounted share, a build output) is enumerated on every call.
|
|
6805
|
+
*/
|
|
6806
|
+
const getKnownIgnoreFilePaths = (patterns, normalizedOptions, gitRoot) => {
|
|
6807
|
+
if (![patterns].flat().includes("**/.gitignore")) return [];
|
|
6808
|
+
return gitRoot ? getParentGitignorePaths(gitRoot, normalizedOptions.cwd) : [path.join(normalizedOptions.cwd, ".gitignore")];
|
|
6809
|
+
};
|
|
6810
|
+
const getKnownIgnoreFileSearchOptions = (patterns, normalizedOptions) => ({
|
|
6811
|
+
...normalizedOptions,
|
|
6812
|
+
ignore: [...normalizedOptions.ignore, ...[patterns].flat().filter((pattern) => isNegativePattern(pattern)).map((pattern) => pattern.slice(1))]
|
|
6813
|
+
});
|
|
6814
|
+
const getKnownIgnoreFilePattern = (filePath, cwd) => {
|
|
6815
|
+
const pattern = isPathInside(filePath, cwd) ? path.relative(cwd, filePath) : filePath;
|
|
6816
|
+
return import_out.default.convertPathToPattern(pattern);
|
|
6817
|
+
};
|
|
6818
|
+
const getMatchingKnownIgnoreFilePaths = (knownPaths, matchingPaths) => {
|
|
6819
|
+
const matchingPathSet = new Set(matchingPaths.map((filePath) => path.resolve(filePath)));
|
|
6820
|
+
return knownPaths.filter((filePath) => matchingPathSet.has(path.resolve(filePath)));
|
|
6821
|
+
};
|
|
6822
|
+
const globKnownIgnoreFilePaths = (globFunction, knownPaths, patterns, normalizedOptions) => {
|
|
6823
|
+
if (knownPaths.length === 0) return [];
|
|
6824
|
+
return globIgnoreFiles(globFunction, knownPaths.map((filePath) => getKnownIgnoreFilePattern(filePath, normalizedOptions.cwd)), getKnownIgnoreFileSearchOptions(patterns, normalizedOptions));
|
|
6825
|
+
};
|
|
6826
|
+
const filterKnownIgnoreFilePathsAsync = async (knownPaths, patterns, normalizedOptions) => {
|
|
6827
|
+
const matchingPaths = await globKnownIgnoreFilePaths(import_out.default, knownPaths, patterns, normalizedOptions);
|
|
6828
|
+
return getMatchingKnownIgnoreFilePaths(knownPaths, matchingPaths);
|
|
6829
|
+
};
|
|
6830
|
+
const getIgnoreFileSearchPrune = (searchPatterns, files, normalizedOptions, gitRoot) => {
|
|
6831
|
+
if (files.length === 0) return {
|
|
6832
|
+
patterns: [],
|
|
6833
|
+
guardNames: []
|
|
6834
|
+
};
|
|
6835
|
+
const { cwd } = normalizedOptions;
|
|
6836
|
+
const baseDir = gitRoot || cwd;
|
|
6837
|
+
const ignorePatterns = getPatternsFromIgnoreFiles(files, baseDir);
|
|
6838
|
+
const matcher = createIgnoreMatcher(ignorePatterns, cwd, baseDir);
|
|
6839
|
+
const searchPatternsArray = [searchPatterns].flat();
|
|
6840
|
+
const gitignoreOnlySearch = searchPatternsArray.every((pattern) => pattern === GITIGNORE_FILES_PATTERN);
|
|
6841
|
+
const searchesForGitignoreFiles = searchPatternsArray.includes(GITIGNORE_FILES_PATTERN);
|
|
6842
|
+
return buildPrunePatternsAndGuards(getIgnoreRules(files), matcher, cwd, {
|
|
6843
|
+
gitignoreOnlySearch,
|
|
6844
|
+
searchesForGitignoreFiles
|
|
6845
|
+
});
|
|
6846
|
+
};
|
|
6847
|
+
const withPrunedSearch = (normalizedOptions, prunePatterns) => prunePatterns.length === 0 ? normalizedOptions : {
|
|
6848
|
+
...normalizedOptions,
|
|
6849
|
+
ignore: [...normalizedOptions.ignore, ...prunePatterns]
|
|
6850
|
+
};
|
|
6851
|
+
const getUnreadPaths = (childPaths, knownPaths) => {
|
|
6852
|
+
const alreadyRead = new Set(knownPaths.map((filePath) => path.resolve(filePath)));
|
|
6853
|
+
return dedupePaths(childPaths).filter((filePath) => !alreadyRead.has(path.resolve(filePath)));
|
|
6435
6854
|
};
|
|
6436
6855
|
const collectIgnoreFileArtifactsAsync = async (patterns, options, includeParentIgnoreFiles) => {
|
|
6437
6856
|
const normalizedOptions = normalizeOptions$1(options);
|
|
6438
|
-
const
|
|
6857
|
+
const readFileMethod = getReadFileMethod(normalizedOptions.fs);
|
|
6439
6858
|
const gitRoot = includeParentIgnoreFiles ? await findGitRoot(normalizedOptions.cwd, normalizedOptions.fs) : void 0;
|
|
6859
|
+
const knownPaths = await filterKnownIgnoreFilePathsAsync(getKnownIgnoreFilePaths(patterns, normalizedOptions, gitRoot), patterns, normalizedOptions);
|
|
6860
|
+
const knownFiles = await readIgnoreFilesSafely(knownPaths, readFileMethod, normalizedOptions.suppressErrors);
|
|
6861
|
+
const { patterns: prunePatterns, guardNames } = getIgnoreFileSearchPrune(patterns, knownFiles, normalizedOptions, gitRoot);
|
|
6862
|
+
const childPaths = await globIgnoreFiles(import_out.default, patterns, withPrunedSearch(normalizedOptions, prunePatterns));
|
|
6863
|
+
let childFiles = await readIgnoreFilesSafely(getUnreadPaths(childPaths, knownPaths), readFileMethod, normalizedOptions.suppressErrors);
|
|
6864
|
+
if (negationsCouldRescue(getIgnoreRules(childFiles), guardNames)) {
|
|
6865
|
+
const allPaths = await globIgnoreFiles(import_out.default, patterns, normalizedOptions);
|
|
6866
|
+
childFiles = await readIgnoreFilesSafely(getUnreadPaths(allPaths, knownPaths), readFileMethod, normalizedOptions.suppressErrors);
|
|
6867
|
+
}
|
|
6440
6868
|
return {
|
|
6441
|
-
files:
|
|
6869
|
+
files: [...knownFiles, ...childFiles],
|
|
6442
6870
|
normalizedOptions,
|
|
6443
6871
|
gitRoot
|
|
6444
6872
|
};
|
|
@@ -6451,14 +6879,14 @@ This avoids reading the same files twice (once for patterns, once for filtering)
|
|
|
6451
6879
|
@param {string[]} patterns - Patterns to find ignore files
|
|
6452
6880
|
@param {Object} options - Options object
|
|
6453
6881
|
@param {boolean} [includeParentIgnoreFiles=false] - Whether to search for parent .gitignore files
|
|
6454
|
-
@returns {Promise<{patterns: string[], matcher: Function, predicate: Function, usingGitRoot: boolean}>}
|
|
6882
|
+
@returns {Promise<{patterns: string[], rules: Array<{pattern: string, directory: string}>, matcher: Function, predicate: Function, usingGitRoot: boolean}>}
|
|
6455
6883
|
*/
|
|
6456
6884
|
const getIgnorePatternsAndPredicate = async (patterns, options, includeParentIgnoreFiles = false) => {
|
|
6457
6885
|
const { files, normalizedOptions, gitRoot } = await collectIgnoreFileArtifactsAsync(patterns, options, includeParentIgnoreFiles);
|
|
6458
6886
|
return buildIgnoreResult(files, normalizedOptions, gitRoot);
|
|
6459
6887
|
};
|
|
6460
6888
|
//#endregion
|
|
6461
|
-
//#region ../../node_modules/.pnpm/globby@16.2.
|
|
6889
|
+
//#region ../../node_modules/.pnpm/globby@16.2.4/node_modules/globby/index.js
|
|
6462
6890
|
const assertPatternsInput = (patterns) => {
|
|
6463
6891
|
if (patterns.some((pattern) => typeof pattern !== "string")) throw new TypeError("Patterns must be a string or an array of strings");
|
|
6464
6892
|
};
|
|
@@ -6491,12 +6919,14 @@ const getDirectoryGlob = ({ directoryPath, files, extensions }) => {
|
|
|
6491
6919
|
};
|
|
6492
6920
|
const directoryToGlob = async (directoryPaths, { cwd = process$1.cwd(), files, extensions, fs: fsImplementation } = {}) => {
|
|
6493
6921
|
return (await Promise.all(directoryPaths.map(async (directoryPath) => {
|
|
6494
|
-
|
|
6922
|
+
const checkPattern = isNegativePattern(directoryPath) ? directoryPath.slice(1) : directoryPath;
|
|
6923
|
+
if (shouldExpandGlobstarDirectory(checkPattern)) return getDirectoryGlob({
|
|
6495
6924
|
directoryPath,
|
|
6496
6925
|
files,
|
|
6497
6926
|
extensions
|
|
6498
6927
|
});
|
|
6499
|
-
|
|
6928
|
+
const pathToCheck = normalizePathForDirectoryGlob(directoryPath, cwd);
|
|
6929
|
+
return await isDirectory(pathToCheck, fsImplementation) ? getDirectoryGlob({
|
|
6500
6930
|
directoryPath,
|
|
6501
6931
|
files,
|
|
6502
6932
|
extensions
|
|
@@ -6558,27 +6988,27 @@ const combinePredicate = (matcher, globalMatcher) => {
|
|
|
6558
6988
|
return isPathIgnored(matcher, globalMatcher, file);
|
|
6559
6989
|
};
|
|
6560
6990
|
};
|
|
6561
|
-
const buildIgnoreFilterResult = (options, cwd, {
|
|
6991
|
+
const buildIgnoreFilterResult = ({ options, cwd, ignoreResult: { rules, matcher }, globalMatcher, createFilter }) => {
|
|
6562
6992
|
const finalPredicate = combinePredicate(matcher, globalMatcher);
|
|
6563
|
-
const patternsForFastGlob = convertPatternsForFastGlob(patterns, usingGitRoot, normalizeDirectoryPatternForFastGlob);
|
|
6564
6993
|
return {
|
|
6565
|
-
options
|
|
6566
|
-
|
|
6567
|
-
ignore: [...options.ignore, ...patternsForFastGlob]
|
|
6568
|
-
},
|
|
6994
|
+
options,
|
|
6995
|
+
pruneIgnorePatterns: convertPatternsForFastGlob(rules, matcher, cwd),
|
|
6569
6996
|
filter: createFilter(finalPredicate, cwd, options.fs)
|
|
6570
6997
|
};
|
|
6571
6998
|
};
|
|
6999
|
+
const getIgnoreFileSearchOptions = (options, searchPatterns) => ({
|
|
7000
|
+
...options,
|
|
7001
|
+
ignore: convertIgnorePatternsForIgnoreFileSearch(options.ignore, searchPatterns)
|
|
7002
|
+
});
|
|
6572
7003
|
/**
|
|
6573
|
-
Apply
|
|
6574
|
-
|
|
6575
|
-
When negation patterns are present (e.g., '!important.log'), we cannot pass positive patterns to fast-glob because it would filter out files before our predicate can re-include them. In this case, we rely entirely on the predicate for filtering, which handles negations correctly.
|
|
7004
|
+
Apply ignore files to options and return the filter predicate.
|
|
6576
7005
|
|
|
6577
|
-
|
|
7006
|
+
The predicate handles every rule, including negations, and is the authoritative filter applied
|
|
7007
|
+
to fast-glob's results. Rules that provably cannot be affected by negations are additionally
|
|
7008
|
+
translated into fast-glob `ignore` patterns, so whole ignored directories are skipped during
|
|
7009
|
+
traversal; see `convertPatternsForFastGlob`.
|
|
6578
7010
|
|
|
6579
|
-
|
|
6580
|
-
|
|
6581
|
-
@returns {Promise<{options: Object, filter: Function}>}
|
|
7011
|
+
@returns {Promise<{options: Object, pruneIgnorePatterns: string[], filter: Function}>}
|
|
6582
7012
|
*/
|
|
6583
7013
|
const applyIgnoreFilesAndGetFilter = async (options) => {
|
|
6584
7014
|
const cwd = options.cwd ?? process$1.cwd();
|
|
@@ -6586,16 +7016,23 @@ const applyIgnoreFilesAndGetFilter = async (options) => {
|
|
|
6586
7016
|
const globalIgnoreFile = options.globalGitignore ? await getGlobalGitignoreFileAsync(options) : void 0;
|
|
6587
7017
|
if (ignoreFilesPatterns.length === 0 && !globalIgnoreFile) return {
|
|
6588
7018
|
options,
|
|
7019
|
+
pruneIgnorePatterns: [],
|
|
6589
7020
|
filter: createFilterFunctionAsync(false, cwd, options.fs)
|
|
6590
7021
|
};
|
|
6591
7022
|
const includeParentIgnoreFiles = options.gitignore === true;
|
|
6592
|
-
const ignoreResult = ignoreFilesPatterns.length > 0 ? await getIgnorePatternsAndPredicate(ignoreFilesPatterns, options, includeParentIgnoreFiles) : {
|
|
6593
|
-
|
|
6594
|
-
matcher: false
|
|
6595
|
-
usingGitRoot: false
|
|
7023
|
+
const ignoreResult = ignoreFilesPatterns.length > 0 ? await getIgnorePatternsAndPredicate(ignoreFilesPatterns, getIgnoreFileSearchOptions(options, ignoreFilesPatterns), includeParentIgnoreFiles) : {
|
|
7024
|
+
rules: [],
|
|
7025
|
+
matcher: false
|
|
6596
7026
|
};
|
|
6597
7027
|
const globalGitRoot = globalIgnoreFile ? await findGitRoot(cwd, options.fs) : void 0;
|
|
6598
|
-
|
|
7028
|
+
const globalMatcher = globalIgnoreFile ? buildGlobalMatcher(globalIgnoreFile, cwd, globalGitRoot ?? cwd) : void 0;
|
|
7029
|
+
return buildIgnoreFilterResult({
|
|
7030
|
+
options,
|
|
7031
|
+
cwd,
|
|
7032
|
+
ignoreResult,
|
|
7033
|
+
globalMatcher,
|
|
7034
|
+
createFilter: createFilterFunctionAsync
|
|
7035
|
+
});
|
|
6599
7036
|
};
|
|
6600
7037
|
const globalGitignoreAsyncStatErrorMessage = "The `globalGitignore` option in `globby()` and `globbyStream()` requires `fs.promises.stat` or `fs.stat` when a custom `fs` is provided.";
|
|
6601
7038
|
const assertGlobalGitignoreAsyncSupport = (options) => {
|
|
@@ -6705,19 +7142,26 @@ const applyParentDirectoryIgnoreAdjustments = (tasks) => tasks.map((task) => ({
|
|
|
6705
7142
|
ignore: adjustIgnorePatternsForParentDirectories(task.patterns, task.options.ignore)
|
|
6706
7143
|
}
|
|
6707
7144
|
}));
|
|
7145
|
+
const appendPruneIgnorePatterns = (tasks, pruneIgnorePatterns) => pruneIgnorePatterns.length === 0 ? tasks : tasks.map((task) => ({
|
|
7146
|
+
patterns: task.patterns,
|
|
7147
|
+
options: {
|
|
7148
|
+
...task.options,
|
|
7149
|
+
ignore: [...task.options.ignore, ...pruneIgnorePatterns]
|
|
7150
|
+
}
|
|
7151
|
+
}));
|
|
6708
7152
|
const normalizeExpandDirectoriesOption = (options, cwd) => ({
|
|
6709
7153
|
...cwd ? { cwd } : {},
|
|
6710
7154
|
...Array.isArray(options) ? { files: options } : options
|
|
6711
7155
|
});
|
|
6712
|
-
const generateTasks = async (patterns, options) => {
|
|
7156
|
+
const generateTasks = async (patterns, options, pruneIgnorePatterns = []) => {
|
|
6713
7157
|
const globTasks = convertNegativePatterns(patterns, options);
|
|
6714
7158
|
const { cwd, expandDirectories, fs: fsImplementation } = options;
|
|
6715
|
-
if (!expandDirectories) return applyParentDirectoryIgnoreAdjustments(globTasks);
|
|
7159
|
+
if (!expandDirectories) return appendPruneIgnorePatterns(applyParentDirectoryIgnoreAdjustments(globTasks), pruneIgnorePatterns);
|
|
6716
7160
|
const directoryToGlobOptions = {
|
|
6717
7161
|
...normalizeExpandDirectoriesOption(expandDirectories, cwd),
|
|
6718
7162
|
fs: fsImplementation
|
|
6719
7163
|
};
|
|
6720
|
-
|
|
7164
|
+
const tasks = await Promise.all(globTasks.map(async (task) => {
|
|
6721
7165
|
let { patterns, options } = task;
|
|
6722
7166
|
[patterns, options.ignore] = await Promise.all([directoryToGlob(patterns, directoryToGlobOptions), directoryToGlob(options.ignore, {
|
|
6723
7167
|
cwd,
|
|
@@ -6729,16 +7173,18 @@ const generateTasks = async (patterns, options) => {
|
|
|
6729
7173
|
options
|
|
6730
7174
|
};
|
|
6731
7175
|
}));
|
|
7176
|
+
return appendPruneIgnorePatterns(tasks, pruneIgnorePatterns);
|
|
6732
7177
|
};
|
|
6733
7178
|
const globby = normalizeArguments(async (patterns, options) => {
|
|
6734
7179
|
assertGlobalGitignoreAsyncSupport(options);
|
|
6735
|
-
const { options: modifiedOptions, filter } = await applyIgnoreFilesAndGetFilter(options);
|
|
6736
|
-
const tasks = await generateTasks(patterns, modifiedOptions);
|
|
6737
|
-
|
|
7180
|
+
const { options: modifiedOptions, pruneIgnorePatterns, filter } = await applyIgnoreFilesAndGetFilter(options);
|
|
7181
|
+
const tasks = await generateTasks(patterns, modifiedOptions, pruneIgnorePatterns);
|
|
7182
|
+
const results = await Promise.all(tasks.map((task) => (0, import_out.default)(task.patterns, task.options)));
|
|
7183
|
+
return unionFastGlobResultsAsync(results, filter);
|
|
6738
7184
|
});
|
|
6739
7185
|
const { convertPathToPattern } = import_out.default;
|
|
6740
7186
|
//#endregion
|
|
6741
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
7187
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/utils/intersection.js
|
|
6742
7188
|
var require_intersection = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
6743
7189
|
/**
|
|
6744
7190
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -6854,8 +7300,10 @@ function __esDecorate(ctor, descriptorIn, decorators, contextIn, initializers, e
|
|
|
6854
7300
|
if (_ = accept(result.get)) descriptor.get = _;
|
|
6855
7301
|
if (_ = accept(result.set)) descriptor.set = _;
|
|
6856
7302
|
if (_ = accept(result.init)) initializers.unshift(_);
|
|
6857
|
-
} else if (_ = accept(result))
|
|
6858
|
-
|
|
7303
|
+
} else if (_ = accept(result)) {
|
|
7304
|
+
if (kind === "field") initializers.unshift(_);
|
|
7305
|
+
else descriptor[key] = _;
|
|
7306
|
+
}
|
|
6859
7307
|
}
|
|
6860
7308
|
if (target) Object.defineProperty(target, contextIn.name, descriptor);
|
|
6861
7309
|
done = true;
|
|
@@ -8228,8 +8676,10 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8228
8676
|
addTypeParameter(childPath, scopeTypes);
|
|
8229
8677
|
});
|
|
8230
8678
|
}
|
|
8231
|
-
if (ScopeType.check(node))
|
|
8232
|
-
|
|
8679
|
+
if (ScopeType.check(node)) {
|
|
8680
|
+
if (namedTypes.CatchClause.check(node)) addPattern(path.get("param"), bindings);
|
|
8681
|
+
else recursiveScanScope(path, bindings, scopeTypes);
|
|
8682
|
+
}
|
|
8233
8683
|
}
|
|
8234
8684
|
function recursiveScanScope(path, bindings, scopeTypes) {
|
|
8235
8685
|
var node = path.value;
|
|
@@ -8278,9 +8728,10 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8278
8728
|
function addPattern(patternPath, bindings) {
|
|
8279
8729
|
var pattern = patternPath.value;
|
|
8280
8730
|
namedTypes.Pattern.assert(pattern);
|
|
8281
|
-
if (namedTypes.Identifier.check(pattern))
|
|
8282
|
-
|
|
8283
|
-
|
|
8731
|
+
if (namedTypes.Identifier.check(pattern)) {
|
|
8732
|
+
if (hasOwn.call(bindings, pattern.name)) bindings[pattern.name].push(patternPath);
|
|
8733
|
+
else bindings[pattern.name] = [patternPath];
|
|
8734
|
+
} else if (namedTypes.AssignmentPattern && namedTypes.AssignmentPattern.check(pattern)) addPattern(patternPath.get("left"), bindings);
|
|
8284
8735
|
else if (namedTypes.ObjectPattern && namedTypes.ObjectPattern.check(pattern)) patternPath.get("properties").each(function(propertyPath) {
|
|
8285
8736
|
var property = propertyPath.value;
|
|
8286
8737
|
if (namedTypes.Pattern.check(property)) addPattern(propertyPath, bindings);
|
|
@@ -8298,8 +8749,10 @@ var require_scope = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8298
8749
|
function addTypePattern(patternPath, types) {
|
|
8299
8750
|
var pattern = patternPath.value;
|
|
8300
8751
|
namedTypes.Pattern.assert(pattern);
|
|
8301
|
-
if (namedTypes.Identifier.check(pattern))
|
|
8302
|
-
|
|
8752
|
+
if (namedTypes.Identifier.check(pattern)) {
|
|
8753
|
+
if (hasOwn.call(types, pattern.name)) types[pattern.name].push(patternPath);
|
|
8754
|
+
else types[pattern.name] = [patternPath];
|
|
8755
|
+
}
|
|
8303
8756
|
}
|
|
8304
8757
|
function addTypeParameter(parameterPath, types) {
|
|
8305
8758
|
var parameter = parameterPath.value;
|
|
@@ -8860,9 +9313,11 @@ var require_equiv = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
8860
9313
|
}
|
|
8861
9314
|
astNodesAreEquivalent.assert = function(a, b) {
|
|
8862
9315
|
var problemPath = [];
|
|
8863
|
-
if (!astNodesAreEquivalent(a, b, problemPath))
|
|
8864
|
-
if (
|
|
8865
|
-
|
|
9316
|
+
if (!astNodesAreEquivalent(a, b, problemPath)) {
|
|
9317
|
+
if (problemPath.length === 0) {
|
|
9318
|
+
if (a !== b) throw new Error("Nodes must be equal");
|
|
9319
|
+
} else throw new Error("Nodes differ in the following path: " + problemPath.map(subscriptForProperty).join(""));
|
|
9320
|
+
}
|
|
8866
9321
|
};
|
|
8867
9322
|
function subscriptForProperty(property) {
|
|
8868
9323
|
if (/[_$a-z][_$a-z0-9]*/i.test(property)) return "." + property;
|
|
@@ -9936,7 +10391,25 @@ var require_main$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
9936
10391
|
esprima_1.default,
|
|
9937
10392
|
babel_1.default,
|
|
9938
10393
|
typescript_1.default
|
|
9939
|
-
])
|
|
10394
|
+
]);
|
|
10395
|
+
var astNodesAreEquivalent = _a.astNodesAreEquivalent;
|
|
10396
|
+
var builders = _a.builders;
|
|
10397
|
+
var builtInTypes = _a.builtInTypes;
|
|
10398
|
+
var defineMethod = _a.defineMethod;
|
|
10399
|
+
var eachField = _a.eachField;
|
|
10400
|
+
var finalize = _a.finalize;
|
|
10401
|
+
var getBuilderName = _a.getBuilderName;
|
|
10402
|
+
var getFieldNames = _a.getFieldNames;
|
|
10403
|
+
var getFieldValue = _a.getFieldValue;
|
|
10404
|
+
var getSupertypeNames = _a.getSupertypeNames;
|
|
10405
|
+
var n = _a.namedTypes;
|
|
10406
|
+
var NodePath = _a.NodePath;
|
|
10407
|
+
var Path = _a.Path;
|
|
10408
|
+
var PathVisitor = _a.PathVisitor;
|
|
10409
|
+
var someField = _a.someField;
|
|
10410
|
+
var Type = _a.Type;
|
|
10411
|
+
var use = _a.use;
|
|
10412
|
+
var visit = _a.visit;
|
|
9940
10413
|
exports.astNodesAreEquivalent = astNodesAreEquivalent;
|
|
9941
10414
|
exports.builders = builders;
|
|
9942
10415
|
exports.builtInTypes = builtInTypes;
|
|
@@ -10137,12 +10610,14 @@ var require_util$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10137
10610
|
part = parts[i];
|
|
10138
10611
|
if (part === ".") parts.splice(i, 1);
|
|
10139
10612
|
else if (part === "..") up++;
|
|
10140
|
-
else if (up > 0)
|
|
10141
|
-
|
|
10142
|
-
|
|
10143
|
-
|
|
10144
|
-
|
|
10145
|
-
|
|
10613
|
+
else if (up > 0) {
|
|
10614
|
+
if (part === "") {
|
|
10615
|
+
parts.splice(i + 1, up);
|
|
10616
|
+
up = 0;
|
|
10617
|
+
} else {
|
|
10618
|
+
parts.splice(i, 2);
|
|
10619
|
+
up--;
|
|
10620
|
+
}
|
|
10146
10621
|
}
|
|
10147
10622
|
}
|
|
10148
10623
|
path = parts.join("/");
|
|
@@ -10394,8 +10869,10 @@ var require_array_set = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
10394
10869
|
var isDuplicate = hasNativeMap ? this.has(aStr) : has.call(this._set, sStr);
|
|
10395
10870
|
var idx = this._array.length;
|
|
10396
10871
|
if (!isDuplicate || aAllowDuplicates) this._array.push(aStr);
|
|
10397
|
-
if (!isDuplicate)
|
|
10398
|
-
|
|
10872
|
+
if (!isDuplicate) {
|
|
10873
|
+
if (hasNativeMap) this._set.set(aStr, idx);
|
|
10874
|
+
else this._set[sStr] = idx;
|
|
10875
|
+
}
|
|
10399
10876
|
};
|
|
10400
10877
|
/**
|
|
10401
10878
|
* Is the given string a member of this set?
|
|
@@ -11711,18 +12188,20 @@ var require_source_node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
11711
12188
|
var lastGeneratedLine = 1, lastGeneratedColumn = 0;
|
|
11712
12189
|
var lastMapping = null;
|
|
11713
12190
|
aSourceMapConsumer.eachMapping(function(mapping) {
|
|
11714
|
-
if (lastMapping !== null)
|
|
11715
|
-
|
|
11716
|
-
|
|
11717
|
-
|
|
11718
|
-
|
|
11719
|
-
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
|
|
11724
|
-
|
|
11725
|
-
|
|
12191
|
+
if (lastMapping !== null) {
|
|
12192
|
+
if (lastGeneratedLine < mapping.generatedLine) {
|
|
12193
|
+
addMappingWithCode(lastMapping, shiftNextLine());
|
|
12194
|
+
lastGeneratedLine++;
|
|
12195
|
+
lastGeneratedColumn = 0;
|
|
12196
|
+
} else {
|
|
12197
|
+
var nextLine = remainingLines[remainingLinesIndex] || "";
|
|
12198
|
+
var code = nextLine.substr(0, mapping.generatedColumn - lastGeneratedColumn);
|
|
12199
|
+
remainingLines[remainingLinesIndex] = nextLine.substr(mapping.generatedColumn - lastGeneratedColumn);
|
|
12200
|
+
lastGeneratedColumn = mapping.generatedColumn;
|
|
12201
|
+
addMappingWithCode(lastMapping, code);
|
|
12202
|
+
lastMapping = mapping;
|
|
12203
|
+
return;
|
|
12204
|
+
}
|
|
11726
12205
|
}
|
|
11727
12206
|
while (lastGeneratedLine < mapping.generatedLine) {
|
|
11728
12207
|
node.add(shiftNextLine());
|
|
@@ -12502,9 +12981,6 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12502
12981
|
case jsx_syntax_1.JSXSyntax.JSXMemberExpression:
|
|
12503
12982
|
var expr = elementName;
|
|
12504
12983
|
qualifiedName = getQualifiedElementName(expr.object) + "." + getQualifiedElementName(expr.property);
|
|
12505
|
-
break;
|
|
12506
|
-
/* istanbul ignore next */
|
|
12507
|
-
default: break;
|
|
12508
12984
|
}
|
|
12509
12985
|
return qualifiedName;
|
|
12510
12986
|
}
|
|
@@ -12570,7 +13046,6 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
12570
13046
|
default:
|
|
12571
13047
|
valid = valid && !(numeric && !character_1.Character.isDecimalDigit(ch.charCodeAt(0)));
|
|
12572
13048
|
valid = valid && !(hex && !character_1.Character.isHexDigit(ch.charCodeAt(0)));
|
|
12573
|
-
break;
|
|
12574
13049
|
}
|
|
12575
13050
|
}
|
|
12576
13051
|
if (valid && terminated && result.length > 2) {
|
|
@@ -14357,8 +14832,6 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14357
14832
|
expr.type = syntax_1.Syntax.AssignmentPattern;
|
|
14358
14833
|
delete expr.operator;
|
|
14359
14834
|
this.reinterpretExpressionAsPattern(expr.left);
|
|
14360
|
-
break;
|
|
14361
|
-
default: break;
|
|
14362
14835
|
}
|
|
14363
14836
|
};
|
|
14364
14837
|
Parser.prototype.parseGroupExpression = function() {
|
|
@@ -14736,10 +15209,7 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14736
15209
|
case syntax_1.Syntax.ArrayPattern:
|
|
14737
15210
|
for (var i = 0; i < param.elements.length; i++) if (param.elements[i] !== null) this.checkPatternParam(options, param.elements[i]);
|
|
14738
15211
|
break;
|
|
14739
|
-
case syntax_1.Syntax.ObjectPattern:
|
|
14740
|
-
for (var i = 0; i < param.properties.length; i++) this.checkPatternParam(options, param.properties[i].value);
|
|
14741
|
-
break;
|
|
14742
|
-
default: break;
|
|
15212
|
+
case syntax_1.Syntax.ObjectPattern: for (var i = 0; i < param.properties.length; i++) this.checkPatternParam(options, param.properties[i].value);
|
|
14743
15213
|
}
|
|
14744
15214
|
options.simple = options.simple && param instanceof Node.Identifier;
|
|
14745
15215
|
};
|
|
@@ -14900,9 +15370,7 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14900
15370
|
case "let":
|
|
14901
15371
|
statement = this.isLexicalDeclaration() ? this.parseLexicalDeclaration({ inFor: false }) : this.parseStatement();
|
|
14902
15372
|
break;
|
|
14903
|
-
default:
|
|
14904
|
-
statement = this.parseStatement();
|
|
14905
|
-
break;
|
|
15373
|
+
default: statement = this.parseStatement();
|
|
14906
15374
|
}
|
|
14907
15375
|
else statement = this.parseStatement();
|
|
14908
15376
|
return statement;
|
|
@@ -14926,10 +15394,12 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
14926
15394
|
}
|
|
14927
15395
|
var init = null;
|
|
14928
15396
|
if (kind === "const") {
|
|
14929
|
-
if (!this.matchKeyword("in") && !this.matchContextualKeyword("of"))
|
|
14930
|
-
this.
|
|
14931
|
-
|
|
14932
|
-
|
|
15397
|
+
if (!this.matchKeyword("in") && !this.matchContextualKeyword("of")) {
|
|
15398
|
+
if (this.match("=")) {
|
|
15399
|
+
this.nextToken();
|
|
15400
|
+
init = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
15401
|
+
} else this.throwError(messages_1.Messages.DeclarationMissingInitializer, "const");
|
|
15402
|
+
}
|
|
14933
15403
|
} else if (!options.inFor && id.type !== syntax_1.Syntax.Identifier || this.match("=")) {
|
|
14934
15404
|
this.expect("=");
|
|
14935
15405
|
init = this.isolateCoverGrammar(this.parseAssignmentExpression);
|
|
@@ -15516,9 +15986,7 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15516
15986
|
case "with":
|
|
15517
15987
|
statement = this.parseWithStatement();
|
|
15518
15988
|
break;
|
|
15519
|
-
default:
|
|
15520
|
-
statement = this.parseExpressionStatement();
|
|
15521
|
-
break;
|
|
15989
|
+
default: statement = this.parseExpressionStatement();
|
|
15522
15990
|
}
|
|
15523
15991
|
break;
|
|
15524
15992
|
default: statement = this.throwUnexpectedToken(this.lookahead);
|
|
@@ -15754,7 +16222,6 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15754
16222
|
case 6:
|
|
15755
16223
|
case 4: return true;
|
|
15756
16224
|
case 7: return token.value === "[";
|
|
15757
|
-
default: break;
|
|
15758
16225
|
}
|
|
15759
16226
|
return false;
|
|
15760
16227
|
};
|
|
@@ -15799,10 +16266,7 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
15799
16266
|
case 7:
|
|
15800
16267
|
start = value === "[" || value === "(" || value === "{" || value === "+" || value === "-" || value === "!" || value === "~" || value === "++" || value === "--" || value === "/" || value === "/=";
|
|
15801
16268
|
break;
|
|
15802
|
-
case 4:
|
|
15803
|
-
start = value === "class" || value === "delete" || value === "function" || value === "let" || value === "new" || value === "super" || value === "this" || value === "typeof" || value === "void" || value === "yield";
|
|
15804
|
-
break;
|
|
15805
|
-
default: break;
|
|
16269
|
+
case 4: start = value === "class" || value === "delete" || value === "function" || value === "let" || value === "new" || value === "super" || value === "this" || value === "typeof" || value === "void" || value === "yield";
|
|
15806
16270
|
}
|
|
15807
16271
|
return start;
|
|
15808
16272
|
};
|
|
@@ -16421,17 +16885,19 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16421
16885
|
var comment = this.skipMultiLineComment();
|
|
16422
16886
|
if (this.trackComment) comments = comments.concat(comment);
|
|
16423
16887
|
} else break;
|
|
16424
|
-
} else if (start && ch === 45)
|
|
16425
|
-
this.index
|
|
16426
|
-
|
|
16427
|
-
|
|
16428
|
-
|
|
16429
|
-
|
|
16430
|
-
|
|
16431
|
-
|
|
16432
|
-
|
|
16888
|
+
} else if (start && ch === 45) {
|
|
16889
|
+
if (this.source.charCodeAt(this.index + 1) === 45 && this.source.charCodeAt(this.index + 2) === 62) {
|
|
16890
|
+
this.index += 3;
|
|
16891
|
+
var comment = this.skipSingleLineComment(3);
|
|
16892
|
+
if (this.trackComment) comments = comments.concat(comment);
|
|
16893
|
+
} else break;
|
|
16894
|
+
} else if (ch === 60 && !this.isModule) {
|
|
16895
|
+
if (this.source.slice(this.index + 1, this.index + 4) === "!--") {
|
|
16896
|
+
this.index += 4;
|
|
16897
|
+
var comment = this.skipSingleLineComment(4);
|
|
16898
|
+
if (this.trackComment) comments = comments.concat(comment);
|
|
16899
|
+
} else break;
|
|
16433
16900
|
} else break;
|
|
16434
|
-
else break;
|
|
16435
16901
|
}
|
|
16436
16902
|
return comments;
|
|
16437
16903
|
};
|
|
@@ -16820,13 +17286,11 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16820
17286
|
str += ch;
|
|
16821
17287
|
this.tolerateUnexpectedToken();
|
|
16822
17288
|
break;
|
|
16823
|
-
default:
|
|
16824
|
-
|
|
16825
|
-
|
|
16826
|
-
|
|
16827
|
-
|
|
16828
|
-
} else str += ch;
|
|
16829
|
-
break;
|
|
17289
|
+
default: if (ch && character_1.Character.isOctalDigit(ch.charCodeAt(0))) {
|
|
17290
|
+
var octToDec = this.octalToDecimal(ch);
|
|
17291
|
+
octal = octToDec.octal || octal;
|
|
17292
|
+
str += String.fromCharCode(octToDec.code);
|
|
17293
|
+
} else str += ch;
|
|
16830
17294
|
}
|
|
16831
17295
|
else {
|
|
16832
17296
|
++this.lineNumber;
|
|
@@ -16913,13 +17377,11 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
16913
17377
|
case "v":
|
|
16914
17378
|
cooked += "\v";
|
|
16915
17379
|
break;
|
|
16916
|
-
default:
|
|
16917
|
-
if (
|
|
16918
|
-
|
|
16919
|
-
|
|
16920
|
-
|
|
16921
|
-
else cooked += ch;
|
|
16922
|
-
break;
|
|
17380
|
+
default: if (ch === "0") {
|
|
17381
|
+
if (character_1.Character.isDecimalDigit(this.source.charCodeAt(this.index))) this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral);
|
|
17382
|
+
cooked += "\0";
|
|
17383
|
+
} else if (character_1.Character.isOctalDigit(ch.charCodeAt(0))) this.throwUnexpectedToken(messages_1.Messages.TemplateOctalLiteral);
|
|
17384
|
+
else cooked += ch;
|
|
16923
17385
|
}
|
|
16924
17386
|
else {
|
|
16925
17387
|
++this.lineNumber;
|
|
@@ -17432,8 +17894,6 @@ var require_esprima$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
17432
17894
|
var check = this.values[this.curly - 5];
|
|
17433
17895
|
regex = check ? !this.beforeFunctionExpression(check) : true;
|
|
17434
17896
|
}
|
|
17435
|
-
break;
|
|
17436
|
-
default: break;
|
|
17437
17897
|
}
|
|
17438
17898
|
return regex;
|
|
17439
17899
|
};
|
|
@@ -17619,22 +18079,23 @@ var require_mapping = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
17619
18079
|
else (0, tiny_invariant_1.default)(name === "start");
|
|
17620
18080
|
return skipChars(sourceLines, sourceFromPos, lines, targetFromPos, targetToPos);
|
|
17621
18081
|
}
|
|
17622
|
-
if ((0, util_1.comparePos)(start, targetLoc.start) <= 0)
|
|
17623
|
-
|
|
17624
|
-
end: subtractPos(targetLoc.end, start.line, start.column)
|
|
17625
|
-
};
|
|
17626
|
-
else if ((0, util_1.comparePos)(end, targetLoc.start) <= 0) return null;
|
|
17627
|
-
else {
|
|
17628
|
-
sourceLoc = {
|
|
17629
|
-
start: sourceLoc.start,
|
|
17630
|
-
end: skip("end")
|
|
17631
|
-
};
|
|
17632
|
-
targetLoc = {
|
|
18082
|
+
if ((0, util_1.comparePos)(start, targetLoc.start) <= 0) {
|
|
18083
|
+
if ((0, util_1.comparePos)(targetLoc.end, end) <= 0) targetLoc = {
|
|
17633
18084
|
start: subtractPos(targetLoc.start, start.line, start.column),
|
|
17634
|
-
end: subtractPos(end, start.line, start.column)
|
|
18085
|
+
end: subtractPos(targetLoc.end, start.line, start.column)
|
|
17635
18086
|
};
|
|
17636
|
-
|
|
17637
|
-
|
|
18087
|
+
else if ((0, util_1.comparePos)(end, targetLoc.start) <= 0) return null;
|
|
18088
|
+
else {
|
|
18089
|
+
sourceLoc = {
|
|
18090
|
+
start: sourceLoc.start,
|
|
18091
|
+
end: skip("end")
|
|
18092
|
+
};
|
|
18093
|
+
targetLoc = {
|
|
18094
|
+
start: subtractPos(targetLoc.start, start.line, start.column),
|
|
18095
|
+
end: subtractPos(end, start.line, start.column)
|
|
18096
|
+
};
|
|
18097
|
+
}
|
|
18098
|
+
} else {
|
|
17638
18099
|
if ((0, util_1.comparePos)(targetLoc.end, start) <= 0) return null;
|
|
17639
18100
|
if ((0, util_1.comparePos)(targetLoc.end, end) <= 0) {
|
|
17640
18101
|
sourceLoc = {
|
|
@@ -18069,9 +18530,10 @@ var require_lines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18069
18530
|
var parts = [];
|
|
18070
18531
|
for (var line = start.line; line <= end.line; ++line) {
|
|
18071
18532
|
var info = this.infos[line - 1];
|
|
18072
|
-
if (line === start.line)
|
|
18073
|
-
|
|
18074
|
-
|
|
18533
|
+
if (line === start.line) {
|
|
18534
|
+
if (line === end.line) info = sliceInfo(info, start.column, end.column);
|
|
18535
|
+
else info = sliceInfo(info, start.column);
|
|
18536
|
+
} else if (line === end.line) info = sliceInfo(info, 0, end.column);
|
|
18075
18537
|
var indent = Math.max(info.indent, 0);
|
|
18076
18538
|
var before_1 = info.line.slice(0, info.sliceStart);
|
|
18077
18539
|
if (reuseWhitespace && isOnlyWhitespace(before_1) && countSpaces(before_1, tabWidth) === indent) {
|
|
@@ -18167,9 +18629,7 @@ var require_lines = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
18167
18629
|
case 12:
|
|
18168
18630
|
case 13:
|
|
18169
18631
|
case 65279: break;
|
|
18170
|
-
default:
|
|
18171
|
-
count += 1;
|
|
18172
|
-
break;
|
|
18632
|
+
default: count += 1;
|
|
18173
18633
|
}
|
|
18174
18634
|
return count;
|
|
18175
18635
|
}
|
|
@@ -19620,9 +20080,10 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
19620
20080
|
var printed_1 = path.map(print, "elements");
|
|
19621
20081
|
var joined = (0, lines_1.fromString)(", ").join(printed_1);
|
|
19622
20082
|
var oneLine_2 = joined.getLineLength(1) <= options.wrapColumn;
|
|
19623
|
-
if (oneLine_2)
|
|
19624
|
-
|
|
19625
|
-
|
|
20083
|
+
if (oneLine_2) {
|
|
20084
|
+
if (options.arrayBracketSpacing) parts.push("[ ");
|
|
20085
|
+
else parts.push("[");
|
|
20086
|
+
} else parts.push("[\n");
|
|
19626
20087
|
path.each(function(elemPath) {
|
|
19627
20088
|
var i = elemPath.getName();
|
|
19628
20089
|
if (!elemPath.getValue()) parts.push(",");
|
|
@@ -20020,9 +20481,10 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20020
20481
|
var printed_2 = path.map(print, "types");
|
|
20021
20482
|
var joined = (0, lines_1.fromString)(", ").join(printed_2);
|
|
20022
20483
|
var oneLine_3 = joined.getLineLength(1) <= options.wrapColumn;
|
|
20023
|
-
if (oneLine_3)
|
|
20024
|
-
|
|
20025
|
-
|
|
20484
|
+
if (oneLine_3) {
|
|
20485
|
+
if (options.arrayBracketSpacing) parts.push("[ ");
|
|
20486
|
+
else parts.push("[");
|
|
20487
|
+
} else parts.push("[\n");
|
|
20026
20488
|
path.each(function(elemPath) {
|
|
20027
20489
|
var i = elemPath.getName();
|
|
20028
20490
|
if (!elemPath.getValue()) parts.push(",");
|
|
@@ -20423,10 +20885,13 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20423
20885
|
if (parent.type === "TSModuleDeclaration") parts.push(".");
|
|
20424
20886
|
else {
|
|
20425
20887
|
if (n.declare) parts.push("declare ");
|
|
20426
|
-
if (!n.global)
|
|
20427
|
-
|
|
20428
|
-
|
|
20429
|
-
|
|
20888
|
+
if (!n.global) {
|
|
20889
|
+
if (n.id.type === "StringLiteral" || n.id.type === "Literal" && typeof n.id.value === "string") parts.push("module ");
|
|
20890
|
+
else if (n.loc && n.loc.lines && n.id.loc) {
|
|
20891
|
+
if (n.loc.lines.sliceString(n.loc.start, n.id.loc.start).indexOf("module") >= 0) parts.push("module ");
|
|
20892
|
+
else parts.push("namespace ");
|
|
20893
|
+
} else parts.push("namespace ");
|
|
20894
|
+
}
|
|
20430
20895
|
}
|
|
20431
20896
|
parts.push(path.call(print, "id"));
|
|
20432
20897
|
if (n.body) {
|
|
@@ -20492,19 +20957,21 @@ var require_printer = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20492
20957
|
var trailingSpace;
|
|
20493
20958
|
var lines = stmt && stmt.loc && stmt.loc.lines;
|
|
20494
20959
|
var trueLoc = lines && options.reuseWhitespace && util.getTrueLoc(stmt, lines);
|
|
20495
|
-
if (notFirst)
|
|
20496
|
-
|
|
20497
|
-
|
|
20498
|
-
|
|
20499
|
-
|
|
20500
|
-
|
|
20501
|
-
|
|
20502
|
-
|
|
20503
|
-
|
|
20504
|
-
|
|
20505
|
-
|
|
20506
|
-
|
|
20507
|
-
|
|
20960
|
+
if (notFirst) {
|
|
20961
|
+
if (trueLoc) {
|
|
20962
|
+
var beforeStart = lines.skipSpaces(trueLoc.start, true);
|
|
20963
|
+
var beforeStartLine = beforeStart ? beforeStart.line : 1;
|
|
20964
|
+
var leadingGap = trueLoc.start.line - beforeStartLine;
|
|
20965
|
+
leadingSpace = Array(leadingGap + 1).join("\n");
|
|
20966
|
+
} else leadingSpace = multiLine ? "\n\n" : "\n";
|
|
20967
|
+
} else leadingSpace = "";
|
|
20968
|
+
if (notLast) {
|
|
20969
|
+
if (trueLoc) {
|
|
20970
|
+
var afterEnd = lines.skipSpaces(trueLoc.end);
|
|
20971
|
+
var trailingGap = (afterEnd ? afterEnd.line : lines.length) - trueLoc.end.line;
|
|
20972
|
+
trailingSpace = Array(trailingGap + 1).join("\n");
|
|
20973
|
+
} else trailingSpace = multiLine ? "\n\n" : "\n";
|
|
20974
|
+
} else trailingSpace = "";
|
|
20508
20975
|
parts.push(maxSpace(prevTrailingSpace, leadingSpace), printed);
|
|
20509
20976
|
if (notLast) prevTrailingSpace = trailingSpace;
|
|
20510
20977
|
else if (trailingSpace) parts.push(trailingSpace);
|
|
@@ -20807,7 +21274,7 @@ var require_main = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20807
21274
|
}
|
|
20808
21275
|
}));
|
|
20809
21276
|
//#endregion
|
|
20810
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21277
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/utils/union.js
|
|
20811
21278
|
var require_union = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
20812
21279
|
/**
|
|
20813
21280
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20826,7 +21293,7 @@ var require_union = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
20826
21293
|
};
|
|
20827
21294
|
}));
|
|
20828
21295
|
//#endregion
|
|
20829
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21296
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/Collection.js
|
|
20830
21297
|
/**
|
|
20831
21298
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20832
21299
|
*
|
|
@@ -20880,6 +21347,14 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
20880
21347
|
return new this.constructor(this.__paths.filter(callback), this);
|
|
20881
21348
|
}
|
|
20882
21349
|
/**
|
|
21350
|
+
* Implements for-of iterator semantic for node paths of the collection.
|
|
21351
|
+
*
|
|
21352
|
+
* @returns {Iterator<import("ast-types").NodePath>}
|
|
21353
|
+
*/
|
|
21354
|
+
*[Symbol.iterator]() {
|
|
21355
|
+
yield* this.__paths;
|
|
21356
|
+
}
|
|
21357
|
+
/**
|
|
20883
21358
|
* Executes callback for each node/path in the collection.
|
|
20884
21359
|
*
|
|
20885
21360
|
* @param {function} callback
|
|
@@ -21152,7 +21627,7 @@ var require_Collection = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21152
21627
|
exports.setDefaultCollectionType = setDefaultCollectionType;
|
|
21153
21628
|
}));
|
|
21154
21629
|
//#endregion
|
|
21155
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21630
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/matchNode.js
|
|
21156
21631
|
/**
|
|
21157
21632
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21158
21633
|
*
|
|
@@ -21181,7 +21656,7 @@ var require_matchNode = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21181
21656
|
module.exports = matchNode;
|
|
21182
21657
|
}));
|
|
21183
21658
|
//#endregion
|
|
21184
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21659
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/utils/once.js
|
|
21185
21660
|
var require_once = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21186
21661
|
/**
|
|
21187
21662
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -21203,7 +21678,7 @@ var require_once = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
21203
21678
|
};
|
|
21204
21679
|
}));
|
|
21205
21680
|
//#endregion
|
|
21206
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21681
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/collections/Node.js
|
|
21207
21682
|
/**
|
|
21208
21683
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21209
21684
|
*
|
|
@@ -21352,7 +21827,7 @@ var require_Node = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21352
21827
|
exports.register = once(register);
|
|
21353
21828
|
}));
|
|
21354
21829
|
//#endregion
|
|
21355
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21830
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/collections/VariableDeclarator.js
|
|
21356
21831
|
/**
|
|
21357
21832
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21358
21833
|
*
|
|
@@ -21449,7 +21924,7 @@ renameTo: function(newName) {
|
|
|
21449
21924
|
exports.filters = filterMethods;
|
|
21450
21925
|
}));
|
|
21451
21926
|
//#endregion
|
|
21452
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
21927
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/collections/JSXElement.js
|
|
21453
21928
|
/**
|
|
21454
21929
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21455
21930
|
*
|
|
@@ -21607,7 +22082,7 @@ getRootName: function(path) {
|
|
|
21607
22082
|
exports.mappings = mappingMethods;
|
|
21608
22083
|
}));
|
|
21609
22084
|
//#endregion
|
|
21610
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
22085
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/collections/ImportDeclaration.js
|
|
21611
22086
|
/**
|
|
21612
22087
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
21613
22088
|
*
|
|
@@ -21679,7 +22154,7 @@ var require_ImportDeclaration = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
21679
22154
|
exports.register = once(register);
|
|
21680
22155
|
}));
|
|
21681
22156
|
//#endregion
|
|
21682
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
22157
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/collections/index.js
|
|
21683
22158
|
var require_collections = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
21684
22159
|
/**
|
|
21685
22160
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -22314,13 +22789,11 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
22314
22789
|
node.exported = node.specifiers[0].exported;
|
|
22315
22790
|
delete node.specifiers;
|
|
22316
22791
|
}
|
|
22317
|
-
case "ExportDefaultDeclaration":
|
|
22318
|
-
|
|
22319
|
-
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
}
|
|
22323
|
-
break;
|
|
22792
|
+
case "ExportDefaultDeclaration": {
|
|
22793
|
+
var _declaration$decorato;
|
|
22794
|
+
const { declaration } = node;
|
|
22795
|
+
if ((declaration == null ? void 0 : declaration.type) === "ClassDeclaration" && ((_declaration$decorato = declaration.decorators) == null ? void 0 : _declaration$decorato.length) > 0 && declaration.start === node.start) this.resetStartLocation(node, exportStartLoc);
|
|
22796
|
+
}
|
|
22324
22797
|
}
|
|
22325
22798
|
return node;
|
|
22326
22799
|
}
|
|
@@ -24226,12 +24699,13 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24226
24699
|
if (this.match(80)) return this.flowParseDeclareClass(node);
|
|
24227
24700
|
else if (this.match(68)) return this.flowParseDeclareFunction(node);
|
|
24228
24701
|
else if (this.match(74)) return this.flowParseDeclareVariable(node);
|
|
24229
|
-
else if (this.eatContextual(127))
|
|
24230
|
-
|
|
24231
|
-
|
|
24232
|
-
|
|
24233
|
-
|
|
24234
|
-
|
|
24702
|
+
else if (this.eatContextual(127)) {
|
|
24703
|
+
if (this.match(16)) return this.flowParseDeclareModuleExports(node);
|
|
24704
|
+
else {
|
|
24705
|
+
if (insideModule) this.raise(FlowErrors.NestedDeclareModule, this.state.lastTokStartLoc);
|
|
24706
|
+
return this.flowParseDeclareModule(node);
|
|
24707
|
+
}
|
|
24708
|
+
} else if (this.isContextual(130)) return this.flowParseDeclareTypeAlias(node);
|
|
24235
24709
|
else if (this.isContextual(131)) return this.flowParseDeclareOpaqueType(node);
|
|
24236
24710
|
else if (this.isContextual(129)) return this.flowParseDeclareInterface(node);
|
|
24237
24711
|
else if (this.match(82)) return this.flowParseDeclareExportDeclaration(node, insideModule);
|
|
@@ -24830,10 +25304,12 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
24830
25304
|
case 10: {
|
|
24831
25305
|
const node = this.startNode();
|
|
24832
25306
|
this.next();
|
|
24833
|
-
if (!this.match(11) && !this.match(21))
|
|
24834
|
-
|
|
24835
|
-
|
|
24836
|
-
|
|
25307
|
+
if (!this.match(11) && !this.match(21)) {
|
|
25308
|
+
if (tokenIsIdentifier(this.state.type) || this.match(78)) {
|
|
25309
|
+
const token = this.lookahead().type;
|
|
25310
|
+
isGroupedType = token !== 17 && token !== 14;
|
|
25311
|
+
} else isGroupedType = true;
|
|
25312
|
+
}
|
|
24837
25313
|
if (isGroupedType) {
|
|
24838
25314
|
this.state.noAnonFunctionType = false;
|
|
24839
25315
|
type = this.flowParseType();
|
|
@@ -25235,9 +25711,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
25235
25711
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
25236
25712
|
if (code === 123 && next === 124) this.finishOp(6, 2);
|
|
25237
25713
|
else if (this.state.inType && (code === 62 || code === 60)) this.finishOp(code === 62 ? 48 : 47, 1);
|
|
25238
|
-
else if (this.state.inType && code === 63)
|
|
25239
|
-
|
|
25240
|
-
|
|
25714
|
+
else if (this.state.inType && code === 63) {
|
|
25715
|
+
if (next === 46) this.finishOp(18, 2);
|
|
25716
|
+
else this.finishOp(17, 1);
|
|
25717
|
+
} else if (isIteratorStart(code, next, this.input.charCodeAt(this.state.pos + 2))) {
|
|
25241
25718
|
this.state.pos += 2;
|
|
25242
25719
|
this.readIterator();
|
|
25243
25720
|
} else super.getTokenFromCode(code);
|
|
@@ -26347,7 +26824,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26347
26824
|
let semi = false;
|
|
26348
26825
|
while (count++ < 10 && this.state.pos < this.length && !(semi = this.codePointAtPos(this.state.pos) === 59)) ++this.state.pos;
|
|
26349
26826
|
if (semi) {
|
|
26350
|
-
const
|
|
26827
|
+
const desc = this.input.slice(startPos, this.state.pos);
|
|
26828
|
+
const entity = entities[desc];
|
|
26351
26829
|
++this.state.pos;
|
|
26352
26830
|
if (entity) return entity;
|
|
26353
26831
|
}
|
|
@@ -26639,8 +27117,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
26639
27117
|
if (bindingType & 256) return !!(bindingType & 512) !== (type & 4) > 0;
|
|
26640
27118
|
return true;
|
|
26641
27119
|
}
|
|
26642
|
-
if (bindingType & 128 && (type & 8) > 0)
|
|
26643
|
-
|
|
27120
|
+
if (bindingType & 128 && (type & 8) > 0) {
|
|
27121
|
+
if (scope.names.get(name) & 2) return !!(bindingType & 1);
|
|
27122
|
+
else return false;
|
|
27123
|
+
}
|
|
26644
27124
|
if (bindingType & 2 && (type & 1) > 0) return true;
|
|
26645
27125
|
return super.isRedeclaredInScope(scope, name, bindingType);
|
|
26646
27126
|
}
|
|
@@ -27067,14 +27547,15 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27067
27547
|
++pos;
|
|
27068
27548
|
++curLine;
|
|
27069
27549
|
lineStart = pos;
|
|
27070
|
-
} else if (ch === 10 || ch === 13)
|
|
27071
|
-
|
|
27072
|
-
|
|
27073
|
-
|
|
27074
|
-
|
|
27075
|
-
|
|
27076
|
-
|
|
27077
|
-
|
|
27550
|
+
} else if (ch === 10 || ch === 13) {
|
|
27551
|
+
if (type === "template") {
|
|
27552
|
+
out += input.slice(chunkStart, pos) + "\n";
|
|
27553
|
+
++pos;
|
|
27554
|
+
if (ch === 13 && input.charCodeAt(pos) === 10) ++pos;
|
|
27555
|
+
++curLine;
|
|
27556
|
+
chunkStart = lineStart = pos;
|
|
27557
|
+
} else errors.unterminated(initialPos, initialLineStart, initialCurLine);
|
|
27558
|
+
} else ++pos;
|
|
27078
27559
|
}
|
|
27079
27560
|
return {
|
|
27080
27561
|
pos,
|
|
@@ -27136,8 +27617,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27136
27617
|
}
|
|
27137
27618
|
pos += octalStr.length - 1;
|
|
27138
27619
|
const next = input.charCodeAt(pos);
|
|
27139
|
-
if (octalStr !== "0" || next === 56 || next === 57)
|
|
27140
|
-
|
|
27620
|
+
if (octalStr !== "0" || next === 56 || next === 57) {
|
|
27621
|
+
if (inTemplate) return res(null);
|
|
27622
|
+
else errors.strictNumericEscape(startPos, lineStart, curLine);
|
|
27623
|
+
}
|
|
27141
27624
|
return res(String.fromCharCode(octal));
|
|
27142
27625
|
}
|
|
27143
27626
|
return res(String.fromCharCode(ch));
|
|
@@ -27147,8 +27630,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27147
27630
|
const initialPos = pos;
|
|
27148
27631
|
let n;
|
|
27149
27632
|
({n, pos} = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
|
|
27150
|
-
if (n === null)
|
|
27151
|
-
|
|
27633
|
+
if (n === null) {
|
|
27634
|
+
if (throwOnInvalid) errors.invalidEscapeSequence(initialPos, lineStart, curLine);
|
|
27635
|
+
else pos = initialPos - 1;
|
|
27636
|
+
}
|
|
27152
27637
|
return {
|
|
27153
27638
|
code: n,
|
|
27154
27639
|
pos
|
|
@@ -27186,15 +27671,17 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27186
27671
|
else if (code >= 65) val = code - 65 + 10;
|
|
27187
27672
|
else if (_isDigit(code)) val = code - 48;
|
|
27188
27673
|
else val = Infinity;
|
|
27189
|
-
if (val >= radix)
|
|
27190
|
-
|
|
27191
|
-
|
|
27192
|
-
|
|
27193
|
-
|
|
27194
|
-
|
|
27195
|
-
|
|
27196
|
-
|
|
27197
|
-
|
|
27674
|
+
if (val >= radix) {
|
|
27675
|
+
if (val <= 9 && bailOnError) return {
|
|
27676
|
+
n: null,
|
|
27677
|
+
pos
|
|
27678
|
+
};
|
|
27679
|
+
else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) val = 0;
|
|
27680
|
+
else if (forceLen) {
|
|
27681
|
+
val = 0;
|
|
27682
|
+
invalid = true;
|
|
27683
|
+
} else break;
|
|
27684
|
+
}
|
|
27198
27685
|
++pos;
|
|
27199
27686
|
total = total * radix + val;
|
|
27200
27687
|
}
|
|
@@ -27214,11 +27701,13 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27214
27701
|
++pos;
|
|
27215
27702
|
({code, pos} = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
|
|
27216
27703
|
++pos;
|
|
27217
|
-
if (code !== null && code > 1114111)
|
|
27218
|
-
|
|
27219
|
-
|
|
27220
|
-
|
|
27221
|
-
|
|
27704
|
+
if (code !== null && code > 1114111) {
|
|
27705
|
+
if (throwOnInvalid) errors.invalidCodePoint(pos, lineStart, curLine);
|
|
27706
|
+
else return {
|
|
27707
|
+
code: null,
|
|
27708
|
+
pos
|
|
27709
|
+
};
|
|
27710
|
+
}
|
|
27222
27711
|
} else ({code, pos} = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
|
|
27223
27712
|
return {
|
|
27224
27713
|
code,
|
|
@@ -27685,9 +28174,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
27685
28174
|
readToken_question() {
|
|
27686
28175
|
const next = this.input.charCodeAt(this.state.pos + 1);
|
|
27687
28176
|
const next2 = this.input.charCodeAt(this.state.pos + 2);
|
|
27688
|
-
if (next === 63)
|
|
27689
|
-
|
|
27690
|
-
|
|
28177
|
+
if (next === 63) {
|
|
28178
|
+
if (next2 === 61) this.finishOp(30, 3);
|
|
28179
|
+
else this.finishOp(40, 2);
|
|
28180
|
+
} else if (next === 46 && !(next2 >= 48 && next2 <= 57)) {
|
|
27691
28181
|
this.state.pos += 2;
|
|
27692
28182
|
this.finishToken(18);
|
|
27693
28183
|
} else {
|
|
@@ -28536,9 +29026,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
28536
29026
|
if (node.left.type === "VoidPattern") this.raise(Errors.VoidPatternInitializer, node.left);
|
|
28537
29027
|
this.toAssignable(node.left, isLHS);
|
|
28538
29028
|
break;
|
|
28539
|
-
case "ParenthesizedExpression":
|
|
28540
|
-
this.toAssignable(parenthesized, isLHS);
|
|
28541
|
-
break;
|
|
29029
|
+
case "ParenthesizedExpression": this.toAssignable(parenthesized, isLHS);
|
|
28542
29030
|
}
|
|
28543
29031
|
}
|
|
28544
29032
|
toAssignableObjectExpressionProp(prop, isLast, isLHS) {
|
|
@@ -28733,8 +29221,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
28733
29221
|
if (type === "Identifier") {
|
|
28734
29222
|
this.checkIdentifier(expression, binding, strictModeChanged);
|
|
28735
29223
|
const { name } = expression;
|
|
28736
|
-
if (checkClashes)
|
|
28737
|
-
|
|
29224
|
+
if (checkClashes) {
|
|
29225
|
+
if (checkClashes.has(name)) this.raise(Errors.ParamDupe, expression);
|
|
29226
|
+
else checkClashes.add(name);
|
|
29227
|
+
}
|
|
28738
29228
|
return;
|
|
28739
29229
|
} else if (type === "VoidPattern" && ancestor.type === "CatchClause") this.raise(Errors.VoidPatternCatchClauseParam, expression);
|
|
28740
29230
|
const unwrappedExpression = unwrapParenthesizedExpression(expression);
|
|
@@ -28758,8 +29248,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
28758
29248
|
} else if (val) this.checkLVal(val, nextAncestor, binding, checkClashes, strictModeChanged, isParenthesizedExpression, disallowCallExpression);
|
|
28759
29249
|
}
|
|
28760
29250
|
checkIdentifier(at, bindingType, strictModeChanged = false) {
|
|
28761
|
-
if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name)))
|
|
28762
|
-
|
|
29251
|
+
if (this.state.strict && (strictModeChanged ? isStrictBindReservedWord(at.name, this.inModule) : isStrictBindOnlyReservedWord(at.name))) {
|
|
29252
|
+
if (bindingType === 64) this.raise(Errors.StrictEvalArguments, at, { referenceName: at.name });
|
|
29253
|
+
else this.raise(Errors.StrictEvalArgumentsBinding, at, { bindingName: at.name });
|
|
29254
|
+
}
|
|
28763
29255
|
if (bindingType & 8192 && at.name === "let") this.raise(Errors.LetInLexicalBinding, at);
|
|
28764
29256
|
if (!(bindingType & 64)) this.declareNameFromIdentifier(at, bindingType);
|
|
28765
29257
|
}
|
|
@@ -28961,14 +29453,15 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
28961
29453
|
const { startLoc } = this.state;
|
|
28962
29454
|
const modifier = this.tsParseModifier(allowedModifiers.concat(disallowedModifiers != null ? disallowedModifiers : []), stopOnStartOfClassStaticBlock, modified.static);
|
|
28963
29455
|
if (!modifier) break;
|
|
28964
|
-
if (tsIsAccessModifier(modifier))
|
|
28965
|
-
|
|
28966
|
-
|
|
28967
|
-
|
|
28968
|
-
|
|
28969
|
-
|
|
28970
|
-
|
|
28971
|
-
|
|
29456
|
+
if (tsIsAccessModifier(modifier)) {
|
|
29457
|
+
if (modified.accessibility) this.raise(TSErrors.DuplicateAccessibilityModifier, startLoc, { modifier });
|
|
29458
|
+
else {
|
|
29459
|
+
enforceOrder(startLoc, modifier, modifier, "override");
|
|
29460
|
+
enforceOrder(startLoc, modifier, modifier, "static");
|
|
29461
|
+
enforceOrder(startLoc, modifier, modifier, "readonly");
|
|
29462
|
+
modified.accessibility = modifier;
|
|
29463
|
+
}
|
|
29464
|
+
} else if (tsIsVarianceAnnotations(modifier)) {
|
|
28972
29465
|
if (modified[modifier]) this.raise(TSErrors.DuplicateModifier, startLoc, { modifier });
|
|
28973
29466
|
modified[modifier] = true;
|
|
28974
29467
|
enforceOrder(startLoc, modifier, "in", "out");
|
|
@@ -29025,8 +29518,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
29025
29518
|
return result;
|
|
29026
29519
|
}
|
|
29027
29520
|
tsParseBracketedList(kind, parseElement, bracket, skipFirstToken, refTrailingCommaPos) {
|
|
29028
|
-
if (!skipFirstToken)
|
|
29029
|
-
|
|
29521
|
+
if (!skipFirstToken) {
|
|
29522
|
+
if (bracket) this.expect(0);
|
|
29523
|
+
else this.expect(47);
|
|
29524
|
+
}
|
|
29030
29525
|
const result = this.tsParseDelimitedList(kind, parseElement, refTrailingCommaPos);
|
|
29031
29526
|
if (bracket) this.expect(3);
|
|
29032
29527
|
else this.expect(48);
|
|
@@ -29080,13 +29575,14 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
29080
29575
|
}
|
|
29081
29576
|
tsParseEntityName(flags) {
|
|
29082
29577
|
let entity;
|
|
29083
|
-
if (flags & 1 && this.match(78))
|
|
29084
|
-
|
|
29085
|
-
|
|
29086
|
-
|
|
29087
|
-
|
|
29088
|
-
|
|
29089
|
-
|
|
29578
|
+
if (flags & 1 && this.match(78)) {
|
|
29579
|
+
if (flags & 2) entity = this.parseIdentifier(true);
|
|
29580
|
+
else {
|
|
29581
|
+
const node = this.startNode();
|
|
29582
|
+
this.next();
|
|
29583
|
+
entity = this.finishNode(node, "ThisExpression");
|
|
29584
|
+
}
|
|
29585
|
+
} else entity = this.parseIdentifier(!!(flags & 1));
|
|
29090
29586
|
while (this.eat(16)) {
|
|
29091
29587
|
const node = this.startNodeAtNode(entity);
|
|
29092
29588
|
node.left = entity;
|
|
@@ -29959,9 +30455,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
29959
30455
|
return this.tsParseModuleOrNamespaceDeclaration(node);
|
|
29960
30456
|
}
|
|
29961
30457
|
break;
|
|
29962
|
-
case 130:
|
|
29963
|
-
if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) return this.tsParseTypeAliasDeclaration(node);
|
|
29964
|
-
break;
|
|
30458
|
+
case 130: if (this.tsCheckLineTerminator(next) && tokenIsIdentifier(this.state.type)) return this.tsParseTypeAliasDeclaration(node);
|
|
29965
30459
|
}
|
|
29966
30460
|
}
|
|
29967
30461
|
tsCheckLineTerminator(next) {
|
|
@@ -30315,13 +30809,11 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
30315
30809
|
return this.tsParseDeclaration(node, 128, false, decorators);
|
|
30316
30810
|
}
|
|
30317
30811
|
break;
|
|
30318
|
-
case 130:
|
|
30319
|
-
|
|
30320
|
-
|
|
30321
|
-
|
|
30322
|
-
|
|
30323
|
-
}
|
|
30324
|
-
break;
|
|
30812
|
+
case 130: if (this.nextTokenIsIdentifierOnSameLine()) {
|
|
30813
|
+
const node = this.startNode();
|
|
30814
|
+
this.next();
|
|
30815
|
+
return this.tsParseTypeAliasDeclaration(node);
|
|
30816
|
+
}
|
|
30325
30817
|
}
|
|
30326
30818
|
return super.parseStatementContent(flags, decorators);
|
|
30327
30819
|
}
|
|
@@ -30791,11 +31283,13 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
30791
31283
|
if (this.match(80)) {
|
|
30792
31284
|
node.abstract = true;
|
|
30793
31285
|
return this.maybeTakeDecorators(decorators, this.parseClass(node, true, false));
|
|
30794
|
-
} else if (this.isContextual(129))
|
|
30795
|
-
|
|
30796
|
-
|
|
30797
|
-
|
|
30798
|
-
|
|
31286
|
+
} else if (this.isContextual(129)) {
|
|
31287
|
+
if (!this.hasFollowingLineBreak()) {
|
|
31288
|
+
node.abstract = true;
|
|
31289
|
+
this.raise(TSErrors.NonClassMethodPropertyHasAbstractModifier, node);
|
|
31290
|
+
return this.tsParseInterfaceDeclaration(node);
|
|
31291
|
+
} else return null;
|
|
31292
|
+
}
|
|
30799
31293
|
throw this.unexpected(null, 80);
|
|
30800
31294
|
}
|
|
30801
31295
|
parseMethod(node, isGenerator, isAsync, isConstructor, allowDirectSuper, type, inClassScope) {
|
|
@@ -31134,13 +31628,14 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31134
31628
|
this.next();
|
|
31135
31629
|
const oldStrict = this.state.strict;
|
|
31136
31630
|
const placeholder = this.parsePlaceholder("Identifier");
|
|
31137
|
-
if (placeholder)
|
|
31138
|
-
|
|
31139
|
-
|
|
31140
|
-
|
|
31141
|
-
|
|
31142
|
-
|
|
31143
|
-
|
|
31631
|
+
if (placeholder) {
|
|
31632
|
+
if (this.match(81) || this.match(133) || this.match(5)) node.id = placeholder;
|
|
31633
|
+
else if (optionalId || !isStatement) {
|
|
31634
|
+
node.id = null;
|
|
31635
|
+
node.body = this.finishPlaceholder(placeholder, "ClassBody");
|
|
31636
|
+
return this.finishNode(node, type);
|
|
31637
|
+
} else throw this.raise(PlaceholderErrors.ClassNameIsRequired, this.state.startLoc);
|
|
31638
|
+
} else this.parseClassId(node, isStatement, optionalId);
|
|
31144
31639
|
super.parseClassSuper(node);
|
|
31145
31640
|
node.body = this.parsePlaceholder("ClassBody") || super.parseClassBody(!!node.superClass, oldStrict);
|
|
31146
31641
|
return this.finishNode(node, type);
|
|
@@ -31311,9 +31806,11 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31311
31806
|
this.raise(Errors.RecordNoProto, key);
|
|
31312
31807
|
return true;
|
|
31313
31808
|
}
|
|
31314
|
-
if (sawProto)
|
|
31315
|
-
if (refExpressionErrors
|
|
31316
|
-
|
|
31809
|
+
if (sawProto) {
|
|
31810
|
+
if (refExpressionErrors) {
|
|
31811
|
+
if (refExpressionErrors.doubleProtoLoc === null) refExpressionErrors.doubleProtoLoc = key.loc.start;
|
|
31812
|
+
} else this.raise(Errors.DuplicateProto, key);
|
|
31813
|
+
}
|
|
31317
31814
|
return true;
|
|
31318
31815
|
}
|
|
31319
31816
|
return sawProto;
|
|
@@ -31729,9 +32226,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31729
32226
|
node = this.startNode();
|
|
31730
32227
|
this.next();
|
|
31731
32228
|
if (this.match(16)) return this.parseImportMetaPropertyOrPhaseCall(node);
|
|
31732
|
-
if (this.match(10))
|
|
31733
|
-
|
|
31734
|
-
|
|
32229
|
+
if (this.match(10)) {
|
|
32230
|
+
if (this.optionFlags & 512) return this.parseImportCall(node);
|
|
32231
|
+
else return this.finishNode(node, "Import");
|
|
32232
|
+
} else {
|
|
31735
32233
|
this.raise(Errors.UnsupportedImport, this.state.lastTokStartLoc);
|
|
31736
32234
|
return this.finishNode(node, "Import");
|
|
31737
32235
|
}
|
|
@@ -31808,9 +32306,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31808
32306
|
this.resetPreviousNodeTrailingComments(id);
|
|
31809
32307
|
this.next();
|
|
31810
32308
|
return this.parseAsyncFunctionExpression(this.startNodeAtNode(id));
|
|
31811
|
-
} else if (tokenIsIdentifier(type))
|
|
31812
|
-
|
|
31813
|
-
|
|
32309
|
+
} else if (tokenIsIdentifier(type)) {
|
|
32310
|
+
if (this.lookaheadCharCode() === 61) return this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(id));
|
|
32311
|
+
else return id;
|
|
32312
|
+
} else if (type === 90) {
|
|
31814
32313
|
this.resetPreviousNodeTrailingComments(id);
|
|
31815
32314
|
return this.parseDo(this.startNodeAtNode(id), true);
|
|
31816
32315
|
}
|
|
@@ -31843,16 +32342,17 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
31843
32342
|
return this.finishTopicReference(node, startLoc, pipeProposal, tokenType);
|
|
31844
32343
|
}
|
|
31845
32344
|
finishTopicReference(node, startLoc, pipeProposal, tokenType) {
|
|
31846
|
-
if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType))
|
|
31847
|
-
if (
|
|
31848
|
-
|
|
31849
|
-
|
|
31850
|
-
|
|
31851
|
-
|
|
31852
|
-
|
|
31853
|
-
|
|
31854
|
-
|
|
31855
|
-
|
|
32345
|
+
if (this.testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType)) {
|
|
32346
|
+
if (pipeProposal === "hack") {
|
|
32347
|
+
if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PipeTopicUnbound, startLoc);
|
|
32348
|
+
this.registerTopicReference();
|
|
32349
|
+
return this.finishNode(node, "TopicReference");
|
|
32350
|
+
} else {
|
|
32351
|
+
if (!this.topicReferenceIsAllowedInCurrentContext()) this.raise(Errors.PrimaryTopicNotAllowed, startLoc);
|
|
32352
|
+
this.registerTopicReference();
|
|
32353
|
+
return this.finishNode(node, "PipelinePrimaryTopicReference");
|
|
32354
|
+
}
|
|
32355
|
+
} else throw this.raise(Errors.PipeTopicUnconfiguredToken, startLoc, { token: tokenLabelName(tokenType) });
|
|
31856
32356
|
}
|
|
31857
32357
|
testTopicReferenceConfiguration(pipeProposal, startLoc, tokenType) {
|
|
31858
32358
|
switch (pipeProposal) {
|
|
@@ -32495,8 +32995,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
32495
32995
|
const node = this.startNodeAt(startLoc);
|
|
32496
32996
|
this.expressionScope.recordParameterInitializerError(Errors.AwaitExpressionFormalParameter, node);
|
|
32497
32997
|
if (this.eat(55)) this.raise(Errors.ObsoleteAwaitStar, node);
|
|
32498
|
-
if (!this.scope.inFunction && !(this.optionFlags & 1))
|
|
32499
|
-
|
|
32998
|
+
if (!this.scope.inFunction && !(this.optionFlags & 1)) {
|
|
32999
|
+
if (this.isAmbiguousPrefixOrIdentifier()) this.ambiguousScriptDifferentAst = true;
|
|
33000
|
+
else this.sawUnambiguousESM = true;
|
|
33001
|
+
}
|
|
32500
33002
|
if (!this.state.soloAwait) node.argument = this.parseMaybeUnary(null, true);
|
|
32501
33003
|
return this.finishNode(node, "AwaitExpression");
|
|
32502
33004
|
}
|
|
@@ -32532,18 +33034,20 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
32532
33034
|
this.next();
|
|
32533
33035
|
node.source = this.parseMaybeAssignAllowIn();
|
|
32534
33036
|
node.options = null;
|
|
32535
|
-
if (this.eat(12))
|
|
32536
|
-
|
|
32537
|
-
|
|
32538
|
-
this.
|
|
32539
|
-
|
|
32540
|
-
|
|
32541
|
-
|
|
32542
|
-
|
|
32543
|
-
|
|
33037
|
+
if (this.eat(12)) {
|
|
33038
|
+
if (!this.match(11)) {
|
|
33039
|
+
node.options = this.parseMaybeAssignAllowIn();
|
|
33040
|
+
if (this.eat(12)) {
|
|
33041
|
+
this.addTrailingCommaExtraToNode(node.options);
|
|
33042
|
+
if (!this.match(11)) {
|
|
33043
|
+
do
|
|
33044
|
+
this.parseMaybeAssignAllowIn();
|
|
33045
|
+
while (this.eat(12) && !this.match(11));
|
|
33046
|
+
this.raise(Errors.ImportCallArity, node);
|
|
33047
|
+
}
|
|
32544
33048
|
}
|
|
32545
|
-
}
|
|
32546
|
-
}
|
|
33049
|
+
} else this.addTrailingCommaExtraToNode(node.source);
|
|
33050
|
+
}
|
|
32547
33051
|
this.expect(11);
|
|
32548
33052
|
return this.finishNode(node, "ImportExpression");
|
|
32549
33053
|
}
|
|
@@ -32684,7 +33188,8 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
32684
33188
|
}
|
|
32685
33189
|
parsePropertyNamePrefixOperator(prop) {}
|
|
32686
33190
|
};
|
|
32687
|
-
const loopLabel = { kind: 1 }
|
|
33191
|
+
const loopLabel = { kind: 1 };
|
|
33192
|
+
const switchLabel = { kind: 2 };
|
|
32688
33193
|
const loneSurrogate = /[\uD800-\uDFFF]/u;
|
|
32689
33194
|
const keywordRelationalOperator = /in(?:stanceof)?/y;
|
|
32690
33195
|
function babel7CompatTokens(tokens, input, startIndex) {
|
|
@@ -33563,9 +34068,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33563
34068
|
allowsDirectSuper = state.hadSuperClass;
|
|
33564
34069
|
}
|
|
33565
34070
|
this.pushClassMethod(classBody, publicMethod, false, false, isConstructor, allowsDirectSuper);
|
|
33566
|
-
} else if (this.isClassProperty())
|
|
33567
|
-
|
|
33568
|
-
|
|
34071
|
+
} else if (this.isClassProperty()) {
|
|
34072
|
+
if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
|
|
34073
|
+
else this.pushClassProperty(classBody, publicProp);
|
|
34074
|
+
} else if (maybeContextualKw === "async" && !this.isLineTerminator()) {
|
|
33569
34075
|
this.resetPreviousNodeTrailingComments(key);
|
|
33570
34076
|
const isGenerator = this.eat(55);
|
|
33571
34077
|
if (publicMember.optional) this.unexpected(maybeQuestionTokenStartLoc);
|
|
@@ -33595,9 +34101,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33595
34101
|
const isPrivate = this.match(139);
|
|
33596
34102
|
this.parseClassElementName(publicProp);
|
|
33597
34103
|
this.pushClassAccessorProperty(classBody, accessorProp, isPrivate);
|
|
33598
|
-
} else if (this.isLineTerminator())
|
|
33599
|
-
|
|
33600
|
-
|
|
34104
|
+
} else if (this.isLineTerminator()) {
|
|
34105
|
+
if (isPrivate) this.pushClassPrivateProperty(classBody, privateProp);
|
|
34106
|
+
else this.pushClassProperty(classBody, publicProp);
|
|
34107
|
+
} else this.unexpected();
|
|
33601
34108
|
}
|
|
33602
34109
|
parseClassElementName(member) {
|
|
33603
34110
|
const { type, value } = this.state;
|
|
@@ -33908,8 +34415,10 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
33908
34415
|
else if (node.type === "AssignmentPattern") this.checkDeclaration(node.left);
|
|
33909
34416
|
}
|
|
33910
34417
|
checkDuplicateExports(node, exportName) {
|
|
33911
|
-
if (this.exportedIdentifiers.has(exportName))
|
|
33912
|
-
|
|
34418
|
+
if (this.exportedIdentifiers.has(exportName)) {
|
|
34419
|
+
if (exportName === "default") this.raise(Errors.DuplicateDefaultExport, node);
|
|
34420
|
+
else this.raise(Errors.DuplicateExport, node, { exportName });
|
|
34421
|
+
}
|
|
33913
34422
|
this.exportedIdentifiers.add(exportName);
|
|
33914
34423
|
}
|
|
33915
34424
|
parseExportSpecifiers(isInTypeExport) {
|
|
@@ -34269,7 +34778,7 @@ var require_lib = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34269
34778
|
exports.tokTypes = tokTypes;
|
|
34270
34779
|
}));
|
|
34271
34780
|
//#endregion
|
|
34272
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
34781
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/babylon.js
|
|
34273
34782
|
/**
|
|
34274
34783
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
34275
34784
|
*
|
|
@@ -34336,7 +34845,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34336
34845
|
})(Object);
|
|
34337
34846
|
(function(ab) {
|
|
34338
34847
|
"use strict";
|
|
34339
|
-
var sM = "loc", N2 = 70416, N3 = 69748, rO = 163, GC = 317, Kr = 92159, Dm = 43587, fr = "labeled_statement", GB = "&=", iD = "int_of_string", Kp = 110591, Kq = 92909, uQ = 11559, GA = "regexp", Ko = 43301, uP = 11703, Dl = 122654, iC = 255, N1 = "%ni", Dk = 68252, Gz = 232, Kn = 42785, h7 = "declare_variable", oz = "while", N0 = 66938, Km = 70301, NZ = 124907, rN = 126515, Kl = 218, h6 = "pattern_identifier", Dj = 67643, gC = "export_source", rM = 216, Gx = 64279, Gy = "Out_of_memory", Kk = 113788, NY = "comments", Dh = 126624, Di = "win32", gB = "object_key_bigint_literal", Dg = 185, uO = 123214, i6 = "constructor", Gw = 69955, gA = "import_declaration", NX = 68437, uN = "Failure", ok = "Unix.Unix_error", Df = 64255, De = 42539, Gv = 110579, fq = "export_default_declaration", d7 = "jsx_attribute_name", uM = 11727, Dd = 43002, rL = 126500, h5 = "component_param_pattern", Dc = "collect_comments_opt", fp = "match_unary_pattern", Db = 321, d6 = "keyof_type", Kj = "Invalid binary/octal ", Gu = "range", sL = 170, iH = "false", C$ = 43798, Da = ", characters ", h4 = "object_type_property_getter", Kh = 65547, Ki = 299, C_ = 126467, Kg = 65007, Kf = 42237, Gt = 8318, Ke = 71215, d5 = "object_property_type", fo = "type_alias", NW = 67742, h3 = "function_body", Kd = 68111, sK = 120745, Kc = 71959, tE = 43880, Gs = "Match_failure", d4 = "type_cast", jK = 109, ix = "void", uL = "generator", J$ = 125124, Ka = 101589, tD = 94179, Kb = ">>>", sJ = 70404, fn = "optional_indexed_access_type", aK = "argument", J_ = "unique", gz = "object_property", h2 = "object_type_property", NV = 67004, C9 = 42783, J8 = 68850, J9 = "@", Gq = 43741, Gr = 43487, n5 = "object", J7 = "end", rK = 126571, J6 = 71956, J5 = 208, NS = 126566, NT = 67702, NU = "EEXIST", fm = "this_expression", J4 = 203, J3 = 11507, C8 = 113807, rJ = 119893, Gp = 42735, oj = "rest", fl = "null_literal", jY = "protected", J2 = 43615, bb = 8231, Go = 68149, C7 = 73727, NR = 72348, C6 = 92995, jN = 224, C5 = 11686, Gn = 43013, fk = "assignment_pattern", J1 = 12329, gy = "function_type", kO = 192, fj = "jsx_element_name", NQ = 70018, sI = -57, h1 = "catch_clause_pattern", tC = 126540, gx = "template_literal", C4 = 120654, NO = 68497, NP = 67679, h0 = "readonly_type", C3 = 68735, rI = "<", n4 = ": No such file or directory", NM = 66915, uK = "chain", NN = "!", d3 = "object_type", Gm = 43712, uJ = 64297, Gl = 183969, oi = -105, J0 = 43503, NL = 67591, mk = 65278, Gk = 67669, hZ = "for_of_assignment_pattern", nS = "`", NK = 11502, hY = "catch_body", C2 = 42191, i9 = -744106340, rH = 182, mj = ":", rG = "a string", JZ = 65663, NJ = 66978, NI = 71947, uI = 43519, Gj = 71086, C1 = 125258, NH = 12538, fi = "expression_or_spread", Gi = "Printexc.handle_uncaught_exception", tB = 69956, rF = 120122, n3 = 247, C0 = 231, rE = " : flags Open_rdonly and Open_wronly are not compatible", hX = "statement_fork_point", Gh = 710, bA = "static", Gg = 55203, CX = 64324, CY = 64111, CZ = "!==", NG = 120132, CW = 124903, lP = "class", Gf = 222, gw = "pattern_number_literal", iw = "kind", CV = 71903, d2 = "variable_declarator", NF = " named `", d1 = "typeof_expression", Ge = 126627, JY = 70084, NE = 228, uH = 70480, fh = "class_private_field", tA = 239, rD = 120713, cI = 65535, ma = -26, fg = "private_name", JX = 43137, gv = "remote_identifier", CU = 70161, ff = "label_identifier", tz = "src/parser/statement_parser.ml", CT = 8335, JW = 19903, ND = 64310, jQ = "_", d0 = "for_init_declaration", Gd = "infer", NB = 64466, NC = 43018, CS = "tokens", JV = 92735, NA = 66954, CR = 65473, Nz = 70285, gu = "sequence", uG = "compare: functional value", CQ = 69890, mi = 1e3, CP = 65487, Ny = 42653, CO = "\\\\", JU = "%=", hW = "match_member_pattern_base", JT = 72367, dZ = "function_rest_param", CN = "/static/", CM = 124911, JS = 65276, ty = 126558, CK = 11498, CL = 137, gt = "export_default_declaration_decl", rC = "cases", rB = 126602, dY = "jsx_child", bR = "continue", CJ = 42962, uF = "importKind", ag = 122, kN = "Literal", hV = "pattern_object_property_identifier_key", Gc = 42508, jc = "in", JR = 55238, Gb = 67071, JQ = 70831, JO = 72161, JP = 67462, CI = "<<=", CH = 43009, CG = 66383, rA = 67827, JN = 72202, Ga = 69839, Nx = 66775, CF = "-=", l3 = 8202, Nw = 70105, JM = 120538, F$ = -92, dX = "for_in_left_declaration", tx = "rendersType", tw = 126563, Nv = 70708, rz = 126523, CE = 166, hU = "match_", CD = 202, JL = 110951, b9 = "component", sH = 126552, Nu = 66977, uE = 213, hT = "enum_member_identifier", JK = 210, hS = "enum_bigint_body", F_ = ">=", JJ = 126495, tv = "specifiers", tu = "=", F9 = 65338, lO = "members", CB = 123535, CC = 43702, F8 = 72767, jX = "get", JI = 126633, ry = 126536, JH = 94098, oh = "types", Nt = 113663, fe = "jsx_element", JG = 70366, F7 = 110959, sG = 120655, Ns = "trailingComments", i5 = 24029, Nr = 144, bk = "yield", dW = "binding_pattern", sF = "string literal", hR = "typeof_identifier", CA = "ENOTEMPTY", JF = 295, sE = 126468, tt = 1255, Cz = 120628, fd = "pattern_object_property_string_literal_key", Nq = 8521, Cx = "leadingComments", Cy = 8204, i8 = "@ ", F6 = 70319, iv = "left", JE = 188, og = "case", JD = 19967, ts = 42622, F5 = 43492, Np = 113770, fc = "match_instance_pattern_constructor", JC = 42774, tr = 183, sD = 8468, fb = "record_body", gs = "class_implements", rx = 126579, kx = "string", F4 = 211, aU = -48, No = 69926, Nn = 123213, dV = "if_consequent_statement", JB = 124927, Nm = 331, kM = "number", Cw = 126546, JA = 324, F3 = 68119, Jz = 70726, F2 = "Records cannot have computed keys", sC = 70750, Nk = 65489, Nl = "SpreadElement", Jy = "callee", Cv = 193, Jx = 70492, Jw = 71934, Cu = 164, Jv = 110580, Ni = 12320, Nj = 300, of = "any", br = "/", hQ = "type_guard", au = "body", Ju = 178, bE = "pattern", F1 = "comment_bounds", Jt = 297, gr = "binding_type_identifier", rw = 187, fa = "pattern_array_rest_element_pattern", Ct = 149, nR = "@])", Nf = 12543, Ng = 11623, Nh = "start", Cs = 67871, bp = "interface", Js = 8449, Cr = 67637, Cq = 42961, uD = 120085, Ne = 126463, Cp = "alternate", Jr = -1053382366, F0 = 70143, Co = "--", Jq = 68031, hP = "jsx_expression", e$ = "type_identifier_reference", tq = 11647, uC = "proto", cm = "identifier", Jp = 43696, b7 = "raw", Nd = 126529, Jo = 11564, uB = 126557, Nc = 64911, sB = 67592, FZ = 43493, uA = 215, Nb = 110588, Cn = 92927, Jn = 67861, M$ = 119980, Na = 43042, FY = -89, Jm = 66965, FX = 67391, iB = "computed", Jl = "unreachable jsxtext", M9 = 71167, M_ = 42559, Cm = 72966, rv = 180, sA = 197, ru = 64319, rt = 169, Cl = "*", oy = 129, Ck = 66335, lN = "meta", kA = "tsAccessibility", Jk = 43388, sz = 94178, bD = "optional", oe = "unknown", M8 = 120121, gq = "class_abstract_method", M7 = 123180, sy = 8469, Jj = 68220, Ji = "|", M6 = 43187, Jh = 94207, Cj = 124895, e_ = "declare_variable_declarator", uz = 120513, Ci = 42527, l2 = 8286, M5 = 94177, l1 = "var", gp = "component_type_param", M4 = 66421, FW = 92991, Jg = 68415, dU = "comment", hO = "match_pattern_array_element", jM = 244, od = "^", FV = 173791, FU = 136, Jf = 42890, rs = "ENOTDIR", uy = "??", Jd = 43711, Je = 66303, M3 = 113800, FT = "SymbolTypeAnnotation", Ch = 42239, M2 = 12703, hM = "variance_opt", hN = "+", Cg = ">>>=", FS = 147, nQ = "mixed", FR = 65613, Jc = 73029, FP = 68191, FQ = "*=", tp = 8487, Cf = 8477, go = "toplevel_statement_list", nO = "never", nP = "do", jf = 125, Cd = 72249, Ce = "Pervasives.do_at_exit", Cc = "visit_trailing_comment", dT = "jsx_closing_element", e8 = "jsx_namespaced_name", e9 = "import_equals_module_reference", Cb = 124908, Jb = 126651, gn = "component_declaration", to = 15, gm = "interface_type", e7 = "function_type_return_annotation", FO = 64109, sx = 65595, ux = 126560, Ca = 110927, tm = 65598, tn = 8488, iG = "`.", B$ = 154, M1 = 175, oc = "package", ox = "else", sw = 120771, B_ = 68023, FN = "fd ", l$ = 8238, nN = 888960333, rr = 119965, B9 = 42655, hL = "match_object_pattern", B8 = 11710, M0 = 119993, hK = "boolean_literal", dS = "statement_list", gl = "function_param", dR = "match_as_pattern", e6 = "pattern_object_property_bigint_literal_key", tl = 69959, B6 = 120485, B7 = 240, B5 = 191456, gk = "declare_enum", tk = 120597, tj = 70281, gi = "type_annotation", gj = "spread_element", rq = 126544, FM = 120069, bC = "key", FL = 43583, ro = "out", rp = "\n", FK = "**=", e5 = "pattern_object_property_pattern", sv = "e", B4 = 72712, MZ = "Internal Error: Found object private prop", ti = "ENOENT", rn = -42, e4 = "jsx_opening_attribute", Ja = 67646, e3 = "component_type", FJ = 64296, FI = 43887, I$ = "Division_by_zero", I_ = "EnumDefaultedMember", hJ = "typeof_member_identifier", B3 = 43792, dQ = "match_member_pattern_property", gh = "declare_export_declaration_decl", MY = 93026, gg = "type_annotation_hint", B2 = 42887, I9 = 43881, I8 = 43761, th = 8526, is = 119, MX = 43866, FG = 72847, FH = 8348, e2 = "class_abstract_property", af = 101, I7 = 94026, tg = 72272, B1 = "src/parser/flow_lexer.ml", I6 = 120744, l0 = 8191, kG = "implies", ob = 255, uw = 11711, hI = "match_unary_pattern_argument", B0 = 71235, tf = 68116, M = 100, gf = "match_expression", hH = "enum_body", oa = 1114111, hG = "assignment", BZ = 71955, rm = 43260, e1 = "pattern_array_e", MW = 126583, BY = "prefix", ge = "class_body", l_ = "shorthand", uv = 171, BX = 66256, n2 = -97, I5 = " =", MU = 94032, MV = 42606, gd = "match_case", FF = 71839, rl = 120134, FE = 55291, I4 = 92862, FD = 43019, MT = 126543, kz = "function", I3 = 111355, MS = 11389, BW = 70753, uu = 150, BV = 43249, MR = 64829, nM = "line", gc = "function_declaration", ow = "undefined", MQ = "([^/]+)", FC = 110947, MP = 70002, FB = "Cygwin", dP = "as_expression", MO = 12591, ut = 64285, us = 2048, BU = 73112, su = 126589, MN = 225, st = 43259, FA = 72817, ss = 64318, MM = 172, I2 = 209, hE = "match_binding_pattern", hF = " ", e0 = "import_source", lZ = "delete", I1 = "Enum `", ur = 126553, I0 = 67001, jP = "default", Fz = 11630, n1 = 206, eZ = "enum_bigint_member", IZ = 67504, uq = 67593, Fy = 113791, ML = "MatchObjectPatternProperty", BT = 69572, hD = "typeof_type", MJ = 212, MK = "%i", dO = "function_this_param", Fx = 72329, jb = "0x", mh = 8239, MI = 75075, IY = 57343, eY = "pattern_bigint_literal", MH = 12341, up = 201, cE = "hook", BS = ": closedir failed", MG = 42959, rk = 119970, Fw = 278, Fv = 43560, IX = "||=", hC = "member_private_name", BR = 120570, eX = "object_key_identifier", lM = 223, Fu = "Not_found", hB = "record_static_property", MF = 230, eW = "jsx_element_name_member_expression", hA = "string_literal", IW = 120596, ME = 43807, IV = 69687, BQ = 63743, uo = 72192, dN = "member_property", Ft = 43262, hz = "class_declaration", BP = "renders*", Fs = "%Li", Fr = 126578, gb = "jsx_attribute", kL = 254, bF = "empty", eV = "export_assignment", mg = "label", hy = "object_internal_slot_property_type", sr = 120133, BO = 43359, bQ = "predicate", IU = "??=", MC = 43697, MD = -43, ga = "default_opt", MB = "the start of a statement", BN = 67826, f9 = "record_element", f_ = "object_", f$ = "class_element", un = 11631, sq = 70855, eU = "opaque_type", f8 = "number_literal", MA = ", ", sp = 8319, um = 120004, n0 = 133, f7 = "type_params", dM = "pattern_object_rest_property", bc = "import", IT = 72e3, My = 67413, Mz = 12343, IS = 70080, hx = "intersection_type", a0 = -36, BM = 70005, je = "properties", Fp = 11679, Fq = 8483, IR = 110587, Fo = 43520, eT = "computed_key", rj = 207, hw = "class_identifier", ri = "Invalid number ", dL = "function_param_pattern", lY = 12288, IQ = 113817, Fn = 70730, IP = 178207, te = 71236, Mx = 167, dK = "object_indexer_property_type", BL = 64286, IN = "TypeAnnotation", IO = 220, f6 = "type_identifier", dI = "spread_property", dJ = "jsx_attribute_value_expression", IM = 126519, ul = 70108, lX = 126, rh = 42999, iF = "prototype", uk = " : flags Open_text and Open_binary are not compatible", BK = "**", so = 43823, uj = ": Not a directory", eS = "render_type", ui = 72349, kF = "test", Mw = 43776, BI = 92879, BJ = 11263, Fm = 241, BH = 93052, eR = "nullable_type", IL = 43704, Mv = 64321, Fl = "Property", IK = 72191, Mu = 165, l9 = "instanceof", Mt = 69247, Fk = 302, bY = "name", sn = 126634, IJ = 8516, kE = "typeArguments", II = 71127, hv = "jsx_spread_attribute", Fj = 66559, IH = "attributes", Ms = 44031, IG = 43645, Mr = "quasis", a6 = 8233, Fi = 71494, sm = "opaque", rg = 72967, Fh = 70106, eQ = "logical", BG = "@[%s =@ ", l8 = "0o", sl = 126554, BF = 71351, uh = 8484, Fg = 72242, rf = 120687, ky = 252, Ff = 183983, mf = "%S", dH = "function_this_param_type", Fe = 292, ov = "decorators", BE = 43255, dG = "catch_clause", bU = "-", IF = 67711, Mq = ": file descriptor already closed", sk = 64311, f5 = "record_declaration", ug = 120539, re = "arguments", sj = 73062, IE = 173823, BD = 42124, Mp = 72095, BB = 125259, BC = 42969, rd = 70280, ID = 12520, BA = 69749, Fd = 70066, f4 = "binary", f3 = "for_in_statement", IC = 43010, Bz = "^=", Fc = 126570, eP = "for_statement", si = 126584, eO = "function_return_annotation", Mo = 72144, IB = 8505, Mn = -101, eN = "class_expression", By = 120076, IA = 69807, Iz = 40981, uf = -24976191, Mm = 72768, Fb = 126550, ou = "\"", f2 = "call_type_arg", Iy = "f", jJ = "this", rc = 126628, Bx = "===", Fa = 56320, hu = "declare_module_exports", Ml = 120512, cN = 105, Bv = 119974, Bw = 71450, Bu = 71942, Ix = 195, td = 120629, Bt = "/=", E_ = "DeclareComponent", E$ = ">>", eM = "declare_interface", Iw = 4096, dF = "pattern_array_rest_element", E9 = 71338, sh = 126520, f1 = "as_const_expression", Mk = "Popping lex mode from empty stack", Mj = "renders?", E8 = 68405, eL = "member", ht = "class_extends", lW = 12287, tc = 126590, Bs = 66377, dE = "async", hs = "pattern_array_element", kD = 240, E7 = 308, Iv = 69864, ja = "readonly", Iu = 70460, Bq = 120779, Br = 66378, dD = "new_", sg = 126551, hr = "pattern_object_rest_property_pattern", eK = "for_statement_init", Bp = 43595, tb = 68296, Mi = 148, E4 = "\0\0\0\0", E5 = 120712, E6 = 64217, It = 69295, Bo = "||", ta = ";", Bn = 70461, E3 = 66939, b8 = "record", Mh = "collect_comments", ue = 279, dC = "generic_type", Is = 68295, Ir = 44002, s$ = 72162, f0 = "object_call_property_type", ud = 8305, sf = 119995, n$ = "with", hq = "class_property", E2 = "qualification", eI = "jsx_attribute_name_namespaced", eJ = "if_statement", dB = "typeof_qualified_identifier", Mg = 238, E0 = 65615, E1 = 176, aJ = "expression", uc = 126559, fZ = "jsx_attribute_value", ho = "<2>", hp = "component_param", ot = "Map.bal", l7 = 132, Mf = 70412, EY = 70440, EZ = "<<", n_ = "finally", EX = "v", fY = "syntax_opt", dA = "meta_property", Iq = 12447, EW = 67514, s_ = 12448, dz = "object_mapped_type_property", i7 = "operator", EV = "closedir", fX = "unary_expression", Md = 126588, Me = 70851, fW = "export_batch_specifier", jW = "renders", EU = 226, Ip = 73111, se = 221, j = "", ES = 66927, ET = 64967, nZ = "elements", s9 = "implicitDeclare", ER = 67640, Io = 43754, hn = "declare_export_declaration", nY = -26065557, EQ = 65855, lV = "boolean", hm = "typeof", Bm = 124902, In = 139, Mb = 65629, Mc = 224, Ma = 43123, rb = 70449, Im = 12735, bq = 107, ub = 11719, L$ = "!=", dy = "call_type_args", kK = "asserts", jI = -46, iA = "namespace", dw = "match_pattern", dx = "for_of_statement_lhs", sd = 126504, L_ = 69505, n9 = "for", Bl = 72703, s7 = 120127, s8 = 43471, L9 = 93047, EP = "Undefined_recursive_module", EO = 2147483647, hl = "template_literal_element", Bk = "Unexpected ", eH = "import_attribute", Ik = 101631, Il = 65497, s6 = 68120, fV = "import_default_specifier", cM = "array", Ij = "expressions", L8 = 110930, sc = 204, hj = "while_", hk = "function_rest_param_type", i$ = 63, L6 = 77808, L7 = "Unexpected token `", am = 114, fU = "pattern_object_p", EN = 65140, Bj = 123190, dv = "pattern_object_property_number_literal_key", lU = "enum", fT = "conditional_type", hi = 113, L5 = "TypeOperator", du = "array_type", EM = "minus", Bi = 43790, dt = "do_while", EL = 11567, L4 = 11694, lT = 256, Bh = 327, L3 = 119976, hh = "component_body", cl = 111, Ii = 177976, ra = 67644, EK = 73439, l6 = 951901561, Ig = "?", Ih = ")", q$ = 43867, sb = 65575, L1 = 69445, L2 = "FunctionTypeParam", ua = 119996, Bg = 65019, ds = "conditional", If = 11505, Bf = 135, EJ = 71295, Ie = 12799, L0 = 67382, eG = "type_guard_annotation", dr = "object_key_computed", cp = 123, hg = "pattern_object_property_key", Id = 119892, EI = 67505, Ic = 66962, dq = "with_", Be = 43273, dp = "interface_declaration", nL = "bool", Ib = 71945, t$ = "declaration", LZ = 11519, me = ">", Ia = 66771, nX = "}", EH = 8472, Bd = 43014, fS = "declare_function", ap = 127, t_ = "RestElement", H$ = 190, Bc = 8467, EF = "module", sa = 126522, EG = "Sys_blocked_io", hf = "jsx_opening_element", fQ = "object_key_number_literal", fR = "match_instance_pattern", LY = "|=", EE = "mixins", ED = 205, H_ = 217, os = "if", LX = "+=", dn = "match_object_pattern_property_key", eE = "match_rest_pattern", eF = "export_named_declaration_specifier", n7 = "try", n8 = "_bigarr02", LW = 70479, cL = "right", t9 = 245, H9 = 11718, he = "tuple_labeled_element", H8 = "TypeParameterInstantiation", t8 = "mkdir", LV = 71999, s5 = 870530776, H7 = "@[", EC = -908856609, H6 = 331416730, H5 = 11670, LU = 66735, Bb = 43709, t7 = 43642, Ba = 67002, H4 = 69375, fP = "function_body_any", LS = 119807, LT = "Assert_failure", eD = "function_identifier", LR = 65479, lL = 131, jV = "new", hd = "for_of_left_declaration", A$ = 120084, EB = 100343, LQ = 73030, s4 = 70452, nW = 134, LP = 152, q_ = 253, LN = 42954, LO = 227, hc = "jsx_member_expression_object", eC = "class_property_value", EA = 120144, LM = 66994, kw = "set", LL = 126498, hb = "tuple_element", dm = "arg_list", H3 = 65481, Ez = 8511, A_ = 42964, LK = 11492, t6 = 126555, A9 = 71039, or = "exportKind", dl = "program", H1 = 70187, H2 = 173, bz = "as", iz = 124, H0 = "visit_leading_comment", A8 = 110575, eB = "class_", LJ = 72440, LH = 67897, LI = 235, Ex = 8543, Ey = 141, co = 120, eA = "match_object_pattern_property", lK = 1024, Ev = 101640, Ew = 1027, LG = 236, kv = 246, Eu = "(", A7 = 66511, dk = "regexp_literal", HZ = 65574, HY = 43513, A5 = 43695, A6 = "&&", q9 = 11558, Et = 66503, LF = 93071, HX = 326, dj = "pattern_expression", LE = 65381, t5 = 126538, di = "import_attributes", LD = 12292, ha = "import_namespace_specifier", LC = 67583, A4 = 120137, Es = 69622, LB = 120770, LA = 71131, lS = 8287, HV = 110590, HW = 65135, r$ = "Fatal error: exception ", iE = 118, md = 181, t4 = 11687, a1 = "camlinternalFormat.ml", Lz = 72959, t3 = 249, ez = "union_type", Er = 8206, HU = 73064, Ly = 70271, Eq = 92728, q8 = 65344, r_ = 11695, g$ = "class_decorator", Lx = "the end of an expression statement (`;`)", A3 = 177983, HS = 8457, HT = 931, Lw = 66499, A1 = 94175, A2 = "#", Ep = 151, s3 = "Identifier", g_ = "for_in_statement_lhs", dh = "pattern_string_literal", s2 = 70302, t2 = 126496, HR = 66461, Lv = 82943, A0 = 333, q7 = 8450, AZ = 72271, Lt = 70853, t1 = "of", Lu = "Stack_overflow", lI = "hasUnknownMembers", lJ = "a", Ls = 153, ey = "variable_declarator_pattern", HQ = 73061, AY = 77711, r9 = 64317, HP = 73097, g9 = "enum_declaration", HO = 66966, t0 = 189, AX = "a template literal part", Eo = 119964, fO = "type_param", cD = 782176664, r8 = 65535, HN = -10, HM = 64433, q6 = "\"\"", r7 = 43815, q4 = 94031, q5 = 73065, En = 69958, Lr = 145, oq = "property", dg = "jsx_children", ex = "member_property_identifier", AW = 42537, df = "const", HL = 70278, ew = "enum_string_member", l5 = "local", fN = "jsx_element_name_identifier", AV = 68223, El = "", Em = 119967, s1 = 119994, AU = 66993, ev = "jsx_member_expression_identifier", n6 = "explicitType", Ek = 67589, Lq = 65597, q3 = "exported", HK = 94111, HJ = 113775, eu = "object_spread_property_type", Ej = 64847, g8 = "component_identifier", fM = "class_implements_interface", Lp = 162, AT = 243, AR = 12783, AS = "Fatal error: exception %s\n", r6 = 120093, g7 = "class_declare_method", lH = "column", et = "component_rest_param", Lo = "methods", AO = 70451, AP = 70312, AQ = 69967, tZ = 70279, Ei = 66463, AN = 92975, q2 = 70286, Eh = "cooked", dd = "pattern_object_property_computed_key", de = "object_key_string_literal", q1 = "jsError", fL = "type_args", AM = 8304, HI = "==", R = 115, g6 = "declare_component", HH = 120092, Ln = 43638, AL = 66811, iu = -87, Eg = 43334, Ef = 66863, AK = 77823, HG = 143, g5 = "optional_call", HF = 126562, s0 = 70162, g4 = 104, Ee = "static ", HE = 66963, jU = "await", q0 = 70107, fK = "import_equals_declaration", bj = "0", Ec = 72250, Ed = 8507, HD = 291, HC = 100351, op = "AssignmentPattern", cH = "type", HB = "%u", sZ = "NonNullExpression", es = "function_expression_or_method", HA = 43470, Hz = 146, Lm = 242, AJ = "camlinternalMod.ml", er = "match_or_pattern", Hy = 72750, Ll = 69414, AI = 65370, dc = "syntax", Hx = 32752, Lj = 42963, Lk = "End_of_file", Hw = 12294, Li = 8471, AH = "elementType", Lg = 43782, Lh = "++", Eb = 43641, Lf = 71944, db = "record_property", Ea = 126601, Hv = 78894, jT = "null", Hu = 177, D$ = "satisfies", Le = 131071, da = "import_specifier", g3 = "class_method", ep = "type_", eq = "generic_identifier_import_type", Ld = 126514, Ht = 8454, D_ = "inexact", AG = 67807, AF = 8525, AE = 65470, Lc = 71352, fJ = "tuple_spread_element", AD = 219, cq = "abstract", D9 = 73458, bT = "return", mc = 65536, qZ = 126548, eo = "array_element", Hs = -253313196, qY = 186, nV = "catch", en = "infer_type", La = 12295, Lb = "Invalid legacy octal ", AB = 69762, AC = 43311, Hr = 65437, c$ = "variable_declaration", AA = -696510241, g2 = "function_params", Hq = 64316, K$ = 311, r5 = 11565, K_ = "infinity", r4 = "@]", K9 = 65908, g1 = "extends", Ay = 66204, Az = 43784, Hp = 11742, tY = 126503, bS = "debugger", Ho = 70457, Ax = 315, K8 = 68786, oo = "keyof", tX = 69415, D8 = 12686, cJ = 127343600, fI = "declare_type_alias", Aw = "the", D7 = 233, em = "jsx_element_name_namespaced", D6 = 72283, Av = "tail", K7 = 161, c_ = "class_static_block", el = "function_param_type", cn = 128, sX = -673950933, sY = 126591, K6 = "Sys_error", Hn = 74649, Au = 74862, lR = "is", At = 43738, K5 = 68479, Hm = 196, tW = 70854, g0 = "enum_boolean_member", sW = 72163, Hl = 92783, gZ = "component_param_name", D5 = 68863, cG = 32768, K4 = 2048, D3 = 64284, D4 = "@{", sU = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", sV = 8455, gY = "update_expression", Hk = 65500, kJ = "from", D2 = 68447, qX = 12592, D1 = 92766, Hj = ">>=", be = 110, K3 = 66431, As = 43586, ek = "jsx_identifier", r3 = " : file already exists", aB = 128, fH = "import_attribute_key", K2 = 71958, Ar = 66717, c9 = "enum_boolean_body", Hi = 64262, b = "id", c8 = "component_renders_annotation", K1 = 42888, Aq = 8584, Ap = 73008, c7 = "enum_symbol_body", ej = "declare_namespace", r2 = 72713, Hh = 55215, c6 = "object_property_value_type", ei = "match_wildcard_pattern", fG = "for_in_assignment_pattern", qW = 8485, D0 = 43395, K0 = 229, it = "true", Hg = 43743, fF = "enum_number_member", Ao = 234, Hf = 72969, bB = 102, KZ = 200, lQ = "symbol", jS = "source", gX = "tparam_const_modifier", DZ = 43714, gW = "jsx_fragment", fE = "jsx_attribute_name_identifier", jH = "public", DY = 43442, eh = "pattern_object_property", KY = 65786, Am = 70783, An = 43713, DX = 72160, He = "*-/", DV = 334, DW = "declarations", c4 = "export_named_specifier", c5 = "arrow_function", DU = 122623, tV = 70006, DT = "${", Hd = 43814, fD = "generic_qualified_identifier_type", KX = 199, eg = "jsx_spread_child", tU = 8489, on = 184, Al = 2047, DS = 66955, ee = "try_catch", ef = "template_literal_type", Hc = 70497, tT = 237, DR = 67431, Hb = 125183, Ak = -602162310, fC = "params", r1 = "consequent", Ha = 68029, G$ = 67829, KW = 68095, gV = "enum_string_body", Ai = 93823, Aj = 68351, DQ = 65495, fB = "declare_module", ed = "match_as_pattern_target", ec = "body_expression", G_ = 66175, tS = 191, r0 = 70441, tR = 65141, om = "&", gU = "super_expression", rZ = 126564, Ah = 72105, sT = "fs", bX = "throw", Ag = 68287, DP = 67839, cC = 116, DO = 110882, KV = 69404, Af = 123197, lG = 65279, jG = "src/parser/type_parser.ml", KU = 68115, tQ = 126547, qV = 126556, G9 = 73055, gT = "member_property_expression", fA = "enum_defaulted_member", G8 = 43071, KT = 11726, gS = "component_type_rest_param", DN = 68607, gR = "object_key", G7 = 160, bd = "variance", KR = 70655, KS = 70414, kC = "super", Ae = 123583, G6 = 65594, l4 = "method", DM = 73648, eb = 121, KQ = 93951, tP = "Must be one of the above", fz = "pattern_array_element_pattern", DK = 43764, DL = 42993, rY = 120145, G5 = 74879, KP = 168, rX = 8486, G4 = 72001, fx = "tagged_template", fy = "module_ref_literal", KO = 65312, i_ = "implements", Ad = 43700, DJ = 120003, KN = "Invalid_argument", gQ = 16777215, Ac = 83526, qU = 69744, rW = 12336, gP = "switch_case", c3 = "optional_member", Ab = 64274, tO = 64322, qT = 126530, DI = 71998, sS = 72970, KM = 13311, DH = 73647, G3 = 120074, kB = "let", KL = "global", d$ = "expression_statement", ea = "component_type_params", rV = 512, G1 = 69634, G2 = 67461, KK = 123627, z$ = 64913, Aa = "children", DF = "PropertyDefinition", DG = 1026, KJ = "%li", gO = "declare_class", z_ = 43258, d_ = "indexed_access_type", G0 = 124926, bi = 112, sR = "b", gM = "predicate_expression", gN = "if_alternate_statement", jL = "private", GZ = -594953737, z9 = 140, sQ = "nan", DE = 72103, rT = 11735, d9 = "statement", rU = "rmdir", qS = 66512, tN = "match", KI = 198, GY = 11734, gL = "import_named_specifier", z8 = 69599, GX = 68799, KH = 194559, c2 = "match_array_pattern", KG = 174, gJ = "function_", gK = "bigint_literal", ah = 248, qR = 67638, tM = 126539, GW = 11557, z7 = 214, rS = 5760, bW = "break", cK = "block", d8 = "match_member_pattern", GV = 123565, DD = 66815, $ = "value", z6 = 1039100673, GU = 69746, KF = 70448, DC = 74751, gI = "init", KE = 69551, tL = 65548, gH = "jsx_member_expression", rR = 68096, bh = 108, sP = 126521, KD = 71487, gG = "match_statement", z5 = 178205, z4 = 12548, GT = " : is a directory", cF = ".", GS = 12348, mb = -835925911, ba = "typeParameters", KC = 66855, aD = "typeAnnotation", jR = "bigint", fw = "jsx_attribute_value_literal", tK = 194, KB = "T_JSX_TEXT", z3 = 68466, rQ = 126537, z1 = 67714067, z2 = 69487, nK = "export", KA = 43822, tJ = 126499, z0 = 55242, c1 = "member_type_identifier", DB = 138, GR = 71679, jO = 130, Kz = 12438, Dz = 119969, DA = 298, tI = 12539, GQ = 119972, Ky = ",", Dy = 71423, rP = "index out of bounds", iy = 106, ku = "%d", Dx = "T_RENDERS_QUESTION", tH = 120571, nU = "returnType", GO = 69423, sO = 120070, GP = "%", kI = 117, Kx = 179, qQ = "EBADF", GN = 93759, tG = 64325, gF = "component_params", GM = 66517, zZ = 67423, qP = 605857695, Dw = 43518, GL = 251, c0 = "for_of_statement", Dv = 71983, Du = "TemplateElement", Dt = "~", GK = 12442, bV = "switch", Kw = 66207, tF = 126535, zY = "&&=", Ds = 69289, GJ = 71723, gE = "generic_identifier_type", GI = 126619, fv = "object_type_property_setter", Ku = 70418, Kv = "<=", Dr = 125251, Kt = 11702, fu = "enum_number_body", kH = 250, zW = 124910, zX = 69297, GH = 67455, GG = 42511, cZ = "ts_satisfies", zV = 286, Dq = 68324, ol = "an identifier", zU = 126534, cY = 103, Dp = 120126, jd = 449540197, lF = "declare", Do = 68899, zT = 126502, ft = "function_expression", zS = 142, Ks = 123135, zR = 67967, GF = 120487, zQ = 120686, cX = "export_named_declaration", GE = 66348, sN = 119981, GD = 12352, gD = "tuple_type", Dn = 68680, nT = "target", fs = "call";
|
|
34848
|
+
var sM = "loc", N2 = 70416, N3 = 69748, rO = 163, GC = 317, Kr = 92159, Dm = 43587, fr = "labeled_statement", GB = "&=", iD = "int_of_string", Kp = 110591, Kq = 92909, uQ = 11559, GA = "regexp", Ko = 43301, uP = 11703, Dl = 122654, iC = 255, N1 = "%ni", Dk = 68252, Gz = 232, Kn = 42785, h7 = "declare_variable", oz = "while", N0 = 66938, Km = 70301, NZ = 124907, rN = 126515, Kl = 218, h6 = "pattern_identifier", Dj = 67643, gC = "export_source", rM = 216, Gx = 64279, Gy = "Out_of_memory", Kk = 113788, NY = "comments", Dh = 126624, Di = "win32", gB = "object_key_bigint_literal", Dg = 185, uO = 123214, i6 = "constructor", Gw = 69955, gA = "import_declaration", NX = 68437, uN = "Failure", ok = "Unix.Unix_error", Df = 64255, De = 42539, Gv = 110579, fq = "export_default_declaration", d7 = "jsx_attribute_name", uM = 11727, Dd = 43002, rL = 126500, h5 = "component_param_pattern", Dc = "collect_comments_opt", fp = "match_unary_pattern", Db = 321, d6 = "keyof_type", Kj = "Invalid binary/octal ", Gu = "range", sL = 170, iH = "false", C$ = 43798, Da = ", characters ", h4 = "object_type_property_getter", Kh = 65547, Ki = 299, C_ = 126467, Kg = 65007, Kf = 42237, Gt = 8318, Ke = 71215, d5 = "object_property_type", fo = "type_alias", NW = 67742, h3 = "function_body", Kd = 68111, sK = 120745, Kc = 71959, tE = 43880, Gs = "Match_failure", d4 = "type_cast", jK = 109, ix = "void", uL = "generator", J$ = 125124, Ka = 101589, tD = 94179, Kb = ">>>", sJ = 70404, fn = "optional_indexed_access_type", aK = "argument", J_ = "unique", gz = "object_property", h2 = "object_type_property", NV = 67004, C9 = 42783, J8 = 68850, J9 = "@", Gq = 43741, Gr = 43487, n5 = "object", J7 = "end", rK = 126571, J6 = 71956, J5 = 208, NS = 126566, NT = 67702, NU = "EEXIST", fm = "this_expression", J4 = 203, J3 = 11507, C8 = 113807, rJ = 119893, Gp = 42735, oj = "rest", fl = "null_literal", jY = "protected", J2 = 43615, bb = 8231, Go = 68149, C7 = 73727, NR = 72348, C6 = 92995, jN = 224, C5 = 11686, Gn = 43013, fk = "assignment_pattern", J1 = 12329, gy = "function_type", kO = 192, fj = "jsx_element_name", NQ = 70018, sI = -57, h1 = "catch_clause_pattern", tC = 126540, gx = "template_literal", C4 = 120654, NO = 68497, NP = 67679, h0 = "readonly_type", C3 = 68735, rI = "<", n4 = ": No such file or directory", NM = 66915, uK = "chain", NN = "!", d3 = "object_type", Gm = 43712, uJ = 64297, Gl = 183969, oi = -105, J0 = 43503, NL = 67591, mk = 65278, Gk = 67669, hZ = "for_of_assignment_pattern", nS = "`", NK = 11502, hY = "catch_body", C2 = 42191, i9 = -744106340, rH = 182, mj = ":", rG = "a string", JZ = 65663, NJ = 66978, NI = 71947, uI = 43519, Gj = 71086, C1 = 125258, NH = 12538, fi = "expression_or_spread", Gi = "Printexc.handle_uncaught_exception", tB = 69956, rF = 120122, n3 = 247, C0 = 231, rE = " : flags Open_rdonly and Open_wronly are not compatible", hX = "statement_fork_point", Gh = 710, bA = "static", Gg = 55203, CX = 64324, CY = 64111, CZ = "!==", NG = 120132, CW = 124903, lP = "class", Gf = 222, gw = "pattern_number_literal", iw = "kind", CV = 71903, d2 = "variable_declarator", NF = " named `", d1 = "typeof_expression", Ge = 126627, JY = 70084, NE = 228, uH = 70480, fh = "class_private_field", tA = 239, rD = 120713, cI = 65535, ma = -26, fg = "private_name", JX = 43137, gv = "remote_identifier", CU = 70161, ff = "label_identifier", tz = "src/parser/statement_parser.ml", CT = 8335, JW = 19903, ND = 64310, jQ = "_", d0 = "for_init_declaration", Gd = "infer", NB = 64466, NC = 43018, CS = "tokens", JV = 92735, NA = 66954, CR = 65473, Nz = 70285, gu = "sequence", uG = "compare: functional value", CQ = 69890, mi = 1e3, CP = 65487, Ny = 42653, CO = "\\\\", JU = "%=", hW = "match_member_pattern_base", JT = 72367, dZ = "function_rest_param", CN = "/static/", CM = 124911, JS = 65276, ty = 126558, CK = 11498, CL = 137, gt = "export_default_declaration_decl", rC = "cases", rB = 126602, dY = "jsx_child", bR = "continue", CJ = 42962, uF = "importKind", ag = 122, kN = "Literal", hV = "pattern_object_property_identifier_key", Gc = 42508, jc = "in", JR = 55238, Gb = 67071, JQ = 70831, JO = 72161, JP = 67462, CI = "<<=", CH = 43009, CG = 66383, rA = 67827, JN = 72202, Ga = 69839, Nx = 66775, CF = "-=", l3 = 8202, Nw = 70105, JM = 120538, F$ = -92, dX = "for_in_left_declaration", tx = "rendersType", tw = 126563, Nv = 70708, rz = 126523, CE = 166, hU = "match_", CD = 202, JL = 110951, b9 = "component", sH = 126552, Nu = 66977, uE = 213, hT = "enum_member_identifier", JK = 210, hS = "enum_bigint_body", F_ = ">=", JJ = 126495, tv = "specifiers", tu = "=", F9 = 65338, lO = "members", CB = 123535, CC = 43702, F8 = 72767, jX = "get", JI = 126633, ry = 126536, JH = 94098, oh = "types", Nt = 113663, fe = "jsx_element", JG = 70366, F7 = 110959, sG = 120655, Ns = "trailingComments", i5 = 24029, Nr = 144, bk = "yield", dW = "binding_pattern", sF = "string literal", hR = "typeof_identifier", CA = "ENOTEMPTY", JF = 295, sE = 126468, tt = 1255, Cz = 120628, fd = "pattern_object_property_string_literal_key", Nq = 8521, Cx = "leadingComments", Cy = 8204, i8 = "@ ", F6 = 70319, iv = "left", JE = 188, og = "case", JD = 19967, ts = 42622, F5 = 43492, Np = 113770, fc = "match_instance_pattern_constructor", JC = 42774, tr = 183, sD = 8468, fb = "record_body", gs = "class_implements", rx = 126579, kx = "string", F4 = 211, aU = -48, No = 69926, Nn = 123213, dV = "if_consequent_statement", JB = 124927, Nm = 331, kM = "number", Cw = 126546, JA = 324, F3 = 68119, Jz = 70726, F2 = "Records cannot have computed keys", sC = 70750, Nk = 65489, Nl = "SpreadElement", Jy = "callee", Cv = 193, Jx = 70492, Jw = 71934, Cu = 164, Jv = 110580, Ni = 12320, Nj = 300, of = "any", br = "/", hQ = "type_guard", au = "body", Ju = 178, bE = "pattern", F1 = "comment_bounds", Jt = 297, gr = "binding_type_identifier", rw = 187, fa = "pattern_array_rest_element_pattern", Ct = 149, nR = "@])", Nf = 12543, Ng = 11623, Nh = "start", Cs = 67871, bp = "interface", Js = 8449, Cr = 67637, Cq = 42961, uD = 120085, Ne = 126463, Cp = "alternate", Jr = -1053382366, F0 = 70143, Co = "--", Jq = 68031, hP = "jsx_expression", e$ = "type_identifier_reference", tq = 11647, uC = "proto", cm = "identifier", Jp = 43696, b7 = "raw", Nd = 126529, Jo = 11564, uB = 126557, Nc = 64911, sB = 67592, FZ = 43493, uA = 215, Nb = 110588, Cn = 92927, Jn = 67861, M$ = 119980, Na = 43042, FY = -89, Jm = 66965, FX = 67391, iB = "computed", Jl = "unreachable jsxtext", M9 = 71167, M_ = 42559, Cm = 72966, rv = 180, sA = 197, ru = 64319, rt = 169, Cl = "*", oy = 129, Ck = 66335, lN = "meta", kA = "tsAccessibility", Jk = 43388, sz = 94178, bD = "optional", oe = "unknown", M8 = 120121, gq = "class_abstract_method", M7 = 123180, sy = 8469, Jj = 68220, Ji = "|", M6 = 43187, Jh = 94207, Cj = 124895, e_ = "declare_variable_declarator", uz = 120513, Ci = 42527, l2 = 8286, M5 = 94177, l1 = "var", gp = "component_type_param", M4 = 66421, FW = 92991, Jg = 68415, dU = "comment", hO = "match_pattern_array_element", jM = 244, od = "^", FV = 173791, FU = 136, Jf = 42890, rs = "ENOTDIR", uy = "??", Jd = 43711, Je = 66303, M3 = 113800, FT = "SymbolTypeAnnotation", Ch = 42239, M2 = 12703, hM = "variance_opt", hN = "+", Cg = ">>>=", FS = 147, nQ = "mixed", FR = 65613, Jc = 73029, FP = 68191, FQ = "*=", tp = 8487, Cf = 8477, go = "toplevel_statement_list", nO = "never", nP = "do", jf = 125, Cd = 72249, Ce = "Pervasives.do_at_exit", Cc = "visit_trailing_comment", dT = "jsx_closing_element", e8 = "jsx_namespaced_name", e9 = "import_equals_module_reference", Cb = 124908, Jb = 126651, gn = "component_declaration", to = 15, gm = "interface_type", e7 = "function_type_return_annotation", FO = 64109, sx = 65595, ux = 126560, Ca = 110927, tm = 65598, tn = 8488, iG = "`.", B$ = 154, M1 = 175, oc = "package", ox = "else", sw = 120771, B_ = 68023, FN = "fd ", l$ = 8238, nN = 888960333, rr = 119965, B9 = 42655, hL = "match_object_pattern", B8 = 11710, M0 = 119993, hK = "boolean_literal", dS = "statement_list", gl = "function_param", dR = "match_as_pattern", e6 = "pattern_object_property_bigint_literal_key", tl = 69959, B6 = 120485, B7 = 240, B5 = 191456, gk = "declare_enum", tk = 120597, tj = 70281, gi = "type_annotation", gj = "spread_element", rq = 126544, FM = 120069, bC = "key", FL = 43583, ro = "out", rp = "\n", FK = "**=", e5 = "pattern_object_property_pattern", sv = "e", B4 = 72712, MZ = "Internal Error: Found object private prop", ti = "ENOENT", rn = -42, e4 = "jsx_opening_attribute", Ja = 67646, e3 = "component_type", FJ = 64296, FI = 43887, I$ = "Division_by_zero", I_ = "EnumDefaultedMember", hJ = "typeof_member_identifier", B3 = 43792, dQ = "match_member_pattern_property", gh = "declare_export_declaration_decl", MY = 93026, gg = "type_annotation_hint", B2 = 42887, I9 = 43881, I8 = 43761, th = 8526, is = 119, MX = 43866, FG = 72847, FH = 8348, e2 = "class_abstract_property", af = 101, I7 = 94026, tg = 72272, B1 = "src/parser/flow_lexer.ml", I6 = 120744, l0 = 8191, kG = "implies", ob = 255, uw = 11711, hI = "match_unary_pattern_argument", B0 = 71235, tf = 68116, M = 100, gf = "match_expression", hH = "enum_body", oa = 1114111, hG = "assignment", BZ = 71955, rm = 43260, e1 = "pattern_array_e", MW = 126583, BY = "prefix", ge = "class_body", l_ = "shorthand", uv = 171, BX = 66256, n2 = -97, I5 = " =", MU = 94032, MV = 42606, gd = "match_case", FF = 71839, rl = 120134, FE = 55291, I4 = 92862, FD = 43019, MT = 126543, kz = "function", I3 = 111355, MS = 11389, BW = 70753, uu = 150, BV = 43249, MR = 64829, nM = "line", gc = "function_declaration", ow = "undefined", MQ = "([^/]+)", FC = 110947, MP = 70002, FB = "Cygwin", dP = "as_expression", MO = 12591, ut = 64285, us = 2048, BU = 73112, su = 126589, MN = 225, st = 43259, FA = 72817, ss = 64318, MM = 172, I2 = 209, hE = "match_binding_pattern", hF = " ", e0 = "import_source", lZ = "delete", I1 = "Enum `", ur = 126553, I0 = 67001, jP = "default", Fz = 11630, n1 = 206, eZ = "enum_bigint_member", IZ = 67504, uq = 67593, Fy = 113791, ML = "MatchObjectPatternProperty", BT = 69572, hD = "typeof_type", MJ = 212, MK = "%i", dO = "function_this_param", Fx = 72329, jb = "0x", mh = 8239, MI = 75075, IY = 57343, eY = "pattern_bigint_literal", MH = 12341, up = 201, cE = "hook", BS = ": closedir failed", MG = 42959, rk = 119970, Fw = 278, Fv = 43560, IX = "||=", hC = "member_private_name", BR = 120570, eX = "object_key_identifier", lM = 223, Fu = "Not_found", hB = "record_static_property", MF = 230, eW = "jsx_element_name_member_expression", hA = "string_literal", IW = 120596, ME = 43807, IV = 69687, BQ = 63743, uo = 72192, dN = "member_property", Ft = 43262, hz = "class_declaration", BP = "renders*", Fs = "%Li", Fr = 126578, gb = "jsx_attribute", kL = 254, bF = "empty", eV = "export_assignment", mg = "label", hy = "object_internal_slot_property_type", sr = 120133, BO = 43359, bQ = "predicate", IU = "??=", MC = 43697, MD = -43, ga = "default_opt", MB = "the start of a statement", BN = 67826, f9 = "record_element", f_ = "object_", f$ = "class_element", un = 11631, sq = 70855, eU = "opaque_type", f8 = "number_literal", MA = ", ", sp = 8319, um = 120004, n0 = 133, f7 = "type_params", dM = "pattern_object_rest_property", bc = "import", IT = 72e3, My = 67413, Mz = 12343, IS = 70080, hx = "intersection_type", a0 = -36, BM = 70005, je = "properties", Fp = 11679, Fq = 8483, IR = 110587, Fo = 43520, eT = "computed_key", rj = 207, hw = "class_identifier", ri = "Invalid number ", dL = "function_param_pattern", lY = 12288, IQ = 113817, Fn = 70730, IP = 178207, te = 71236, Mx = 167, dK = "object_indexer_property_type", BL = 64286, IN = "TypeAnnotation", IO = 220, f6 = "type_identifier", dI = "spread_property", dJ = "jsx_attribute_value_expression", IM = 126519, ul = 70108, lX = 126, rh = 42999, iF = "prototype", uk = " : flags Open_text and Open_binary are not compatible", BK = "**", so = 43823, uj = ": Not a directory", eS = "render_type", ui = 72349, kF = "test", Mw = 43776, BI = 92879, BJ = 11263, Fm = 241, BH = 93052, eR = "nullable_type", IL = 43704, Mv = 64321, Fl = "Property", IK = 72191, Mu = 165, l9 = "instanceof", Mt = 69247, Fk = 302, bY = "name", sn = 126634, IJ = 8516, kE = "typeArguments", II = 71127, hv = "jsx_spread_attribute", Fj = 66559, IH = "attributes", Ms = 44031, IG = 43645, Mr = "quasis", a6 = 8233, Fi = 71494, sm = "opaque", rg = 72967, Fh = 70106, eQ = "logical", BG = "@[%s =@ ", l8 = "0o", sl = 126554, BF = 71351, uh = 8484, Fg = 72242, rf = 120687, ky = 252, Ff = 183983, mf = "%S", dH = "function_this_param_type", Fe = 292, ov = "decorators", BE = 43255, dG = "catch_clause", bU = "-", IF = 67711, Mq = ": file descriptor already closed", sk = 64311, f5 = "record_declaration", ug = 120539, re = "arguments", sj = 73062, IE = 173823, BD = 42124, Mp = 72095, BB = 125259, BC = 42969, rd = 70280, ID = 12520, BA = 69749, Fd = 70066, f4 = "binary", f3 = "for_in_statement", IC = 43010, Bz = "^=", Fc = 126570, eP = "for_statement", si = 126584, eO = "function_return_annotation", Mo = 72144, IB = 8505, Mn = -101, eN = "class_expression", By = 120076, IA = 69807, Iz = 40981, uf = -24976191, Mm = 72768, Fb = 126550, ou = "\"", f2 = "call_type_arg", Iy = "f", jJ = "this", rc = 126628, Bx = "===", Fa = 56320, hu = "declare_module_exports", Ml = 120512, cN = 105, Bv = 119974, Bw = 71450, Bu = 71942, Ix = 195, td = 120629, Bt = "/=", E_ = "DeclareComponent", E$ = ">>", eM = "declare_interface", Iw = 4096, dF = "pattern_array_rest_element", E9 = 71338, sh = 126520, f1 = "as_const_expression", Mk = "Popping lex mode from empty stack", Mj = "renders?", E8 = 68405, eL = "member", ht = "class_extends", lW = 12287, tc = 126590, Bs = 66377, dE = "async", hs = "pattern_array_element", kD = 240, E7 = 308, Iv = 69864, ja = "readonly", Iu = 70460, Bq = 120779, Br = 66378, dD = "new_", sg = 126551, hr = "pattern_object_rest_property_pattern", eK = "for_statement_init", Bp = 43595, tb = 68296, Mi = 148, E4 = "\0\0\0\0", E5 = 120712, E6 = 64217, It = 69295, Bo = "||", ta = ";", Bn = 70461, E3 = 66939, b8 = "record", Mh = "collect_comments", ue = 279, dC = "generic_type", Is = 68295, Ir = 44002, s$ = 72162, f0 = "object_call_property_type", ud = 8305, sf = 119995, n$ = "with", hq = "class_property", E2 = "qualification", eI = "jsx_attribute_name_namespaced", eJ = "if_statement", dB = "typeof_qualified_identifier", Mg = 238, E0 = 65615, E1 = 176, aJ = "expression", uc = 126559, fZ = "jsx_attribute_value", ho = "<2>", hp = "component_param", ot = "Map.bal", l7 = 132, Mf = 70412, EY = 70440, EZ = "<<", n_ = "finally", EX = "v", fY = "syntax_opt", dA = "meta_property", Iq = 12447, EW = 67514, s_ = 12448, dz = "object_mapped_type_property", i7 = "operator", EV = "closedir", fX = "unary_expression", Md = 126588, Me = 70851, fW = "export_batch_specifier", jW = "renders", EU = 226, Ip = 73111, se = 221, j = "", ES = 66927, ET = 64967, nZ = "elements", s9 = "implicitDeclare", ER = 67640, Io = 43754, hn = "declare_export_declaration", nY = -26065557, EQ = 65855, lV = "boolean", hm = "typeof", Bm = 124902, In = 139, Mb = 65629, Mc = 224, Ma = 43123, rb = 70449, Im = 12735, bq = 107, ub = 11719, L$ = "!=", dy = "call_type_args", kK = "asserts", jI = -46, iA = "namespace", dw = "match_pattern", dx = "for_of_statement_lhs", sd = 126504, L_ = 69505, n9 = "for", Bl = 72703, s7 = 120127, s8 = 43471, L9 = 93047, EP = "Undefined_recursive_module", EO = 2147483647, hl = "template_literal_element", Bk = "Unexpected ", eH = "import_attribute", Ik = 101631, Il = 65497, s6 = 68120, fV = "import_default_specifier", cM = "array", Ij = "expressions", L8 = 110930, sc = 204, hj = "while_", hk = "function_rest_param_type", i$ = 63, L6 = 77808, L7 = "Unexpected token `", am = 114, fU = "pattern_object_p", EN = 65140, Bj = 123190, dv = "pattern_object_property_number_literal_key", lU = "enum", fT = "conditional_type", hi = 113, L5 = "TypeOperator", du = "array_type", EM = "minus", Bi = 43790, dt = "do_while", EL = 11567, L4 = 11694, lT = 256, Bh = 327, L3 = 119976, hh = "component_body", cl = 111, Ii = 177976, ra = 67644, EK = 73439, l6 = 951901561, Ig = "?", Ih = ")", q$ = 43867, sb = 65575, L1 = 69445, L2 = "FunctionTypeParam", ua = 119996, Bg = 65019, ds = "conditional", If = 11505, Bf = 135, EJ = 71295, Ie = 12799, L0 = 67382, eG = "type_guard_annotation", dr = "object_key_computed", cp = 123, hg = "pattern_object_property_key", Id = 119892, EI = 67505, Ic = 66962, dq = "with_", Be = 43273, dp = "interface_declaration", nL = "bool", Ib = 71945, t$ = "declaration", LZ = 11519, me = ">", Ia = 66771, nX = "}", EH = 8472, Bd = 43014, fS = "declare_function", ap = 127, t_ = "RestElement", H$ = 190, Bc = 8467, EF = "module", sa = 126522, EG = "Sys_blocked_io", hf = "jsx_opening_element", fQ = "object_key_number_literal", fR = "match_instance_pattern", LY = "|=", EE = "mixins", ED = 205, H_ = 217, os = "if", LX = "+=", dn = "match_object_pattern_property_key", eE = "match_rest_pattern", eF = "export_named_declaration_specifier", n7 = "try", n8 = "_bigarr02", LW = 70479, cL = "right", t9 = 245, H9 = 11718, he = "tuple_labeled_element", H8 = "TypeParameterInstantiation", t8 = "mkdir", LV = 71999, s5 = 870530776, H7 = "@[", EC = -908856609, H6 = 331416730, H5 = 11670, LU = 66735, Bb = 43709, t7 = 43642, Ba = 67002, H4 = 69375, fP = "function_body_any", LS = 119807, LT = "Assert_failure", eD = "function_identifier", LR = 65479, lL = 131, jV = "new", hd = "for_of_left_declaration", A$ = 120084, EB = 100343, LQ = 73030, s4 = 70452, nW = 134, LP = 152, q_ = 253, LN = 42954, LO = 227, hc = "jsx_member_expression_object", eC = "class_property_value", EA = 120144, LM = 66994, kw = "set", LL = 126498, hb = "tuple_element", dm = "arg_list", H3 = 65481, Ez = 8511, A_ = 42964, LK = 11492, t6 = 126555, A9 = 71039, or = "exportKind", dl = "program", H1 = 70187, H2 = 173, bz = "as", iz = 124, H0 = "visit_leading_comment", A8 = 110575, eB = "class_", LJ = 72440, LH = 67897, LI = 235, Ex = 8543, Ey = 141, co = 120, eA = "match_object_pattern_property", lK = 1024, Ev = 101640, Ew = 1027, LG = 236, kv = 246, Eu = "(", A7 = 66511, dk = "regexp_literal", HZ = 65574, HY = 43513, A5 = 43695, A6 = "&&", q9 = 11558, Et = 66503, LF = 93071, HX = 326, dj = "pattern_expression", LE = 65381, t5 = 126538, di = "import_attributes", LD = 12292, ha = "import_namespace_specifier", LC = 67583, A4 = 120137, Es = 69622, LB = 120770, LA = 71131, lS = 8287, HV = 110590, HW = 65135, r$ = "Fatal error: exception ", iE = 118, md = 181, t4 = 11687, a1 = "camlinternalFormat.ml", Lz = 72959, t3 = 249, ez = "union_type", Er = 8206, HU = 73064, Ly = 70271, Eq = 92728, q8 = 65344, r_ = 11695, g$ = "class_decorator", Lx = "the end of an expression statement (`;`)", A3 = 177983, HS = 8457, HT = 931, Lw = 66499, A1 = 94175, A2 = "#", Ep = 151, s3 = "Identifier", g_ = "for_in_statement_lhs", dh = "pattern_string_literal", s2 = 70302, t2 = 126496, HR = 66461, Lv = 82943, A0 = 333, q7 = 8450, AZ = 72271, Lt = 70853, t1 = "of", Lu = "Stack_overflow", lI = "hasUnknownMembers", lJ = "a", Ls = 153, ey = "variable_declarator_pattern", HQ = 73061, AY = 77711, r9 = 64317, HP = 73097, g9 = "enum_declaration", HO = 66966, t0 = 189, AX = "a template literal part", Eo = 119964, fO = "type_param", cD = 782176664, r8 = 65535, HN = -10, HM = 64433, q6 = "\"\"", r7 = 43815, q4 = 94031, q5 = 73065, En = 69958, Lr = 145, oq = "property", dg = "jsx_children", ex = "member_property_identifier", AW = 42537, df = "const", HL = 70278, ew = "enum_string_member", l5 = "local", fN = "jsx_element_name_identifier", AV = 68223, El = "", Em = 119967, s1 = 119994, AU = 66993, ev = "jsx_member_expression_identifier", n6 = "explicitType", Ek = 67589, Lq = 65597, q3 = "exported", HK = 94111, HJ = 113775, eu = "object_spread_property_type", Ej = 64847, g8 = "component_identifier", fM = "class_implements_interface", Lp = 162, AT = 243, AR = 12783, AS = "Fatal error: exception %s\n", r6 = 120093, g7 = "class_declare_method", lH = "column", et = "component_rest_param", Lo = "methods", AO = 70451, AP = 70312, AQ = 69967, tZ = 70279, Ei = 66463, AN = 92975, q2 = 70286, Eh = "cooked", dd = "pattern_object_property_computed_key", de = "object_key_string_literal", q1 = "jsError", fL = "type_args", AM = 8304, HI = "==", R = 115, g6 = "declare_component", HH = 120092, Ln = 43638, AL = 66811, iu = -87, Eg = 43334, Ef = 66863, AK = 77823, HG = 143, g5 = "optional_call", HF = 126562, s0 = 70162, g4 = 104, Ee = "static ", HE = 66963, jU = "await", q0 = 70107, fK = "import_equals_declaration", bj = "0", Ec = 72250, Ed = 8507, HD = 291, HC = 100351, op = "AssignmentPattern", cH = "type", HB = "%u", sZ = "NonNullExpression", es = "function_expression_or_method", HA = 43470, Hz = 146, Lm = 242, AJ = "camlinternalMod.ml", er = "match_or_pattern", Hy = 72750, Ll = 69414, AI = 65370, dc = "syntax", Hx = 32752, Lj = 42963, Lk = "End_of_file", Hw = 12294, Li = 8471, AH = "elementType", Lg = 43782, Lh = "++", Eb = 43641, Lf = 71944, db = "record_property", Ea = 126601, Hv = 78894, jT = "null", Hu = 177, D$ = "satisfies", Le = 131071, da = "import_specifier", g3 = "class_method", ep = "type_", eq = "generic_identifier_import_type", Ld = 126514, Ht = 8454, D_ = "inexact", AG = 67807, AF = 8525, AE = 65470, Lc = 71352, fJ = "tuple_spread_element", AD = 219, cq = "abstract", D9 = 73458, bT = "return", mc = 65536, qZ = 126548, eo = "array_element", Hs = -253313196, qY = 186, nV = "catch", en = "infer_type", La = 12295, Lb = "Invalid legacy octal ", AB = 69762, AC = 43311, Hr = 65437, c$ = "variable_declaration", AA = -696510241, g2 = "function_params", Hq = 64316, K$ = 311, r5 = 11565, K_ = "infinity", r4 = "@]", K9 = 65908, g1 = "extends", Ay = 66204, Az = 43784, Hp = 11742, tY = 126503, bS = "debugger", Ho = 70457, Ax = 315, K8 = 68786, oo = "keyof", tX = 69415, D8 = 12686, cJ = 127343600, fI = "declare_type_alias", Aw = "the", D7 = 233, em = "jsx_element_name_namespaced", D6 = 72283, Av = "tail", K7 = 161, c_ = "class_static_block", el = "function_param_type", cn = 128, sX = -673950933, sY = 126591, K6 = "Sys_error", Hn = 74649, Au = 74862, lR = "is", At = 43738, K5 = 68479, Hm = 196, tW = 70854, g0 = "enum_boolean_member", sW = 72163, Hl = 92783, gZ = "component_param_name", D5 = 68863, cG = 32768, K4 = 2048, D3 = 64284, D4 = "@{", sU = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0", sV = 8455, gY = "update_expression", Hk = 65500, kJ = "from", D2 = 68447, qX = 12592, D1 = 92766, Hj = ">>=", be = 110, K3 = 66431, As = 43586, ek = "jsx_identifier", r3 = " : file already exists", aB = 128, fH = "import_attribute_key", K2 = 71958, Ar = 66717, c9 = "enum_boolean_body", Hi = 64262, b = "id", c8 = "component_renders_annotation", K1 = 42888, Aq = 8584, Ap = 73008, c7 = "enum_symbol_body", ej = "declare_namespace", r2 = 72713, Hh = 55215, c6 = "object_property_value_type", ei = "match_wildcard_pattern", fG = "for_in_assignment_pattern", qW = 8485, D0 = 43395, K0 = 229, it = "true", Hg = 43743, fF = "enum_number_member", Ao = 234, Hf = 72969, bB = 102, KZ = 200, lQ = "symbol", jS = "source", gX = "tparam_const_modifier", DZ = 43714, gW = "jsx_fragment", fE = "jsx_attribute_name_identifier", jH = "public", DY = 43442, eh = "pattern_object_property", KY = 65786, Am = 70783, An = 43713, DX = 72160, He = "*-/", DV = 334, DW = "declarations", c4 = "export_named_specifier", c5 = "arrow_function", DU = 122623, tV = 70006, DT = "${", Hd = 43814, fD = "generic_qualified_identifier_type", KX = 199, eg = "jsx_spread_child", tU = 8489, on = 184, Al = 2047, DS = 66955, ee = "try_catch", ef = "template_literal_type", Hc = 70497, tT = 237, DR = 67431, Hb = 125183, Ak = -602162310, fC = "params", r1 = "consequent", Ha = 68029, G$ = 67829, KW = 68095, gV = "enum_string_body", Ai = 93823, Aj = 68351, DQ = 65495, fB = "declare_module", ed = "match_as_pattern_target", ec = "body_expression", G_ = 66175, tS = 191, r0 = 70441, tR = 65141, om = "&", gU = "super_expression", rZ = 126564, Ah = 72105, sT = "fs", bX = "throw", Ag = 68287, DP = 67839, cC = 116, DO = 110882, KV = 69404, Af = 123197, lG = 65279, jG = "src/parser/type_parser.ml", KU = 68115, tQ = 126547, qV = 126556, G9 = 73055, gT = "member_property_expression", fA = "enum_defaulted_member", G8 = 43071, KT = 11726, gS = "component_type_rest_param", DN = 68607, gR = "object_key", G7 = 160, bd = "variance", KR = 70655, KS = 70414, kC = "super", Ae = 123583, G6 = 65594, l4 = "method", DM = 73648, eb = 121, KQ = 93951, tP = "Must be one of the above", fz = "pattern_array_element_pattern", DK = 43764, DL = 42993, rY = 120145, G5 = 74879, KP = 168, rX = 8486, G4 = 72001, fx = "tagged_template", fy = "module_ref_literal", KO = 65312, i_ = "implements", Ad = 43700, DJ = 120003, KN = "Invalid_argument", gQ = 16777215, Ac = 83526, qU = 69744, rW = 12336, gP = "switch_case", c3 = "optional_member", Ab = 64274, tO = 64322, qT = 126530, DI = 71998, sS = 72970, KM = 13311, DH = 73647, G3 = 120074, kB = "let", KL = "global", d$ = "expression_statement", ea = "component_type_params", rV = 512, G1 = 69634, G2 = 67461, KK = 123627, z$ = 64913, Aa = "children", DF = "PropertyDefinition", KJ = "%li", gO = "declare_class", z_ = 43258, d_ = "indexed_access_type", G0 = 124926, bi = 112, sR = "b", gM = "predicate_expression", gN = "if_alternate_statement", jL = "private", GZ = -594953737, z9 = 140, sQ = "nan", DE = 72103, rT = 11735, d9 = "statement", rU = "rmdir", qS = 66512, tN = "match", KI = 198, GY = 11734, gL = "import_named_specifier", z8 = 69599, GX = 68799, KH = 194559, c2 = "match_array_pattern", KG = 174, gJ = "function_", gK = "bigint_literal", ah = 248, qR = 67638, tM = 126539, GW = 11557, z7 = 214, rS = 5760, bW = "break", cK = "block", d8 = "match_member_pattern", GV = 123565, DD = 66815, $ = "value", z6 = 1039100673, GU = 69746, KF = 70448, DC = 74751, gI = "init", KE = 69551, tL = 65548, gH = "jsx_member_expression", rR = 68096, bh = 108, sP = 126521, KD = 71487, gG = "match_statement", z5 = 178205, z4 = 12548, GT = " : is a directory", cF = ".", GS = 12348, mb = -835925911, ba = "typeParameters", KC = 66855, aD = "typeAnnotation", jR = "bigint", fw = "jsx_attribute_value_literal", tK = 194, KB = "T_JSX_TEXT", z3 = 68466, rQ = 126537, z1 = 67714067, z2 = 69487, nK = "export", KA = 43822, tJ = 126499, z0 = 55242, c1 = "member_type_identifier", DB = 138, GR = 71679, jO = 130, Kz = 12438, Dz = 119969, DA = 298, tI = 12539, GQ = 119972, Ky = ",", Dy = 71423, rP = "index out of bounds", iy = 106, ku = "%d", Dx = "T_RENDERS_QUESTION", tH = 120571, nU = "returnType", GO = 69423, sO = 120070, GP = "%", kI = 117, Kx = 179, qQ = "EBADF", GN = 93759, tG = 64325, gF = "component_params", GM = 66517, zZ = 67423, qP = 605857695, Dw = 43518, GL = 251, c0 = "for_of_statement", Dv = 71983, Du = "TemplateElement", Dt = "~", GK = 12442, bV = "switch", Kw = 66207, tF = 126535, zY = "&&=", Ds = 69289, GJ = 71723, gE = "generic_identifier_type", GI = 126619, fv = "object_type_property_setter", Ku = 70418, Kv = "<=", Dr = 125251, Kt = 11702, fu = "enum_number_body", kH = 250, zW = 124910, zX = 69297, GH = 67455, GG = 42511, cZ = "ts_satisfies", zV = 286, Dq = 68324, ol = "an identifier", zU = 126534, cY = 103, Dp = 120126, jd = 449540197, lF = "declare", Do = 68899, zT = 126502, ft = "function_expression", zS = 142, Ks = 123135, zR = 67967, GF = 120487, zQ = 120686, cX = "export_named_declaration", GE = 66348, sN = 119981, GD = 12352, gD = "tuple_type", Dn = 68680, nT = "target", fs = "call";
|
|
34340
34849
|
function azV(a, b, c, d, e) {
|
|
34341
34850
|
if (d <= b) for (var f = 1; f <= e; f++) c[d + f] = a[b + f];
|
|
34342
34851
|
else for (var f = e; f >= 1; f--) c[d + f] = a[b + f];
|
|
@@ -34460,9 +34969,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34460
34969
|
case 11:
|
|
34461
34970
|
c = Float64Array;
|
|
34462
34971
|
break;
|
|
34463
|
-
case 12:
|
|
34464
|
-
c = Uint8Array;
|
|
34465
|
-
break;
|
|
34972
|
+
case 12: c = Uint8Array;
|
|
34466
34973
|
}
|
|
34467
34974
|
if (!c) aW("Bigarray.create: unsupported kind");
|
|
34468
34975
|
return new c(b * N8(a));
|
|
@@ -34698,9 +35205,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34698
35205
|
this.data[a * 2 + 0] = b[1];
|
|
34699
35206
|
this.data[a * 2 + 1] = b[2];
|
|
34700
35207
|
break;
|
|
34701
|
-
default:
|
|
34702
|
-
this.data[a] = b;
|
|
34703
|
-
break;
|
|
35208
|
+
default: this.data[a] = b;
|
|
34704
35209
|
}
|
|
34705
35210
|
return 0;
|
|
34706
35211
|
};
|
|
@@ -34717,9 +35222,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34717
35222
|
if (d == f) this.data.fill(d);
|
|
34718
35223
|
else for (var b = 0; b < this.data.length; b++) this.data[b] = b % 2 == 0 ? d : f;
|
|
34719
35224
|
break;
|
|
34720
|
-
default:
|
|
34721
|
-
this.data.fill(a);
|
|
34722
|
-
break;
|
|
35225
|
+
default: this.data.fill(a);
|
|
34723
35226
|
}
|
|
34724
35227
|
};
|
|
34725
35228
|
jg.prototype.compare = function(a, b) {
|
|
@@ -34762,12 +35265,10 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
34762
35265
|
case 6:
|
|
34763
35266
|
case 8:
|
|
34764
35267
|
case 9:
|
|
34765
|
-
case 12:
|
|
34766
|
-
|
|
34767
|
-
|
|
34768
|
-
|
|
34769
|
-
}
|
|
34770
|
-
break;
|
|
35268
|
+
case 12: for (var c = 0; c < this.data.length; c++) {
|
|
35269
|
+
if (this.data[c] < a.data[c]) return -1;
|
|
35270
|
+
if (this.data[c] > a.data[c]) return 1;
|
|
35271
|
+
}
|
|
34771
35272
|
}
|
|
34772
35273
|
return 0;
|
|
34773
35274
|
};
|
|
@@ -35092,7 +35593,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35092
35593
|
var b = aAS(a) + 1023;
|
|
35093
35594
|
if (b <= 0) {
|
|
35094
35595
|
b = 0;
|
|
35095
|
-
a /= Math.pow(2, -
|
|
35596
|
+
a /= Math.pow(2, -1026);
|
|
35096
35597
|
} else {
|
|
35097
35598
|
a /= Math.pow(2, b - Ew);
|
|
35098
35599
|
if (a < 16) {
|
|
@@ -35162,14 +35663,12 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35162
35663
|
a.write(32, uY(e[2]));
|
|
35163
35664
|
}
|
|
35164
35665
|
break;
|
|
35165
|
-
case 11:
|
|
35166
|
-
|
|
35167
|
-
|
|
35168
|
-
|
|
35169
|
-
|
|
35170
|
-
|
|
35171
|
-
}
|
|
35172
|
-
break;
|
|
35666
|
+
case 11: for (var d = 0; d < b.data.length / 2; d++) {
|
|
35667
|
+
var g = b.get(d), f = kS(oJ(g[1]));
|
|
35668
|
+
for (var e = 0; e < 8; e++) a.write(8, f[e]);
|
|
35669
|
+
var f = kS(oJ(g[2]));
|
|
35670
|
+
for (var e = 0; e < 8; e++) a.write(8, f[e]);
|
|
35671
|
+
}
|
|
35173
35672
|
}
|
|
35174
35673
|
c[0] = (4 + b.dims.length) * 4;
|
|
35175
35674
|
c[1] = (4 + b.dims.length) * 8;
|
|
@@ -35186,7 +35685,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35186
35685
|
if (d > 0) {
|
|
35187
35686
|
b += 16;
|
|
35188
35687
|
b *= Math.pow(2, d - Ew);
|
|
35189
|
-
} else b *= Math.pow(2, -
|
|
35688
|
+
} else b *= Math.pow(2, -1026);
|
|
35190
35689
|
if (c & cG) b = -b;
|
|
35191
35690
|
return b;
|
|
35192
35691
|
}
|
|
@@ -35280,7 +35779,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35280
35779
|
n
|
|
35281
35780
|
]);
|
|
35282
35781
|
}
|
|
35283
|
-
break;
|
|
35284
35782
|
}
|
|
35285
35783
|
b[0] = (4 + k) * 4;
|
|
35286
35784
|
return uR(l, q, j, h);
|
|
@@ -35361,7 +35859,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35361
35859
|
case 1:
|
|
35362
35860
|
if (c > 32) c = 32;
|
|
35363
35861
|
for (var b = 0; b < c; b++) d = Oi(d, a.data[b]);
|
|
35364
|
-
break;
|
|
35365
35862
|
}
|
|
35366
35863
|
return d;
|
|
35367
35864
|
}
|
|
@@ -35599,7 +36096,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35599
36096
|
}
|
|
35600
36097
|
if (a.length != b.length) return a.length < b.length ? -1 : 1;
|
|
35601
36098
|
if (a.length > 1) f.push(a, b, 1);
|
|
35602
|
-
break;
|
|
35603
36099
|
}
|
|
35604
36100
|
}
|
|
35605
36101
|
if (f.length == 0) return 0;
|
|
@@ -35752,7 +36248,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35752
36248
|
b.signedconv = true;
|
|
35753
36249
|
b.uppercase = true;
|
|
35754
36250
|
b.conv = c.toLowerCase();
|
|
35755
|
-
break;
|
|
35756
36251
|
}
|
|
35757
36252
|
}
|
|
35758
36253
|
return b;
|
|
@@ -35836,7 +36331,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35836
36331
|
c = c.slice(0, d + 1);
|
|
35837
36332
|
}
|
|
35838
36333
|
}
|
|
35839
|
-
break;
|
|
35840
36334
|
}
|
|
35841
36335
|
return uV(f, c);
|
|
35842
36336
|
}
|
|
@@ -35934,10 +36428,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
35934
36428
|
case 43:
|
|
35935
36429
|
f = hN;
|
|
35936
36430
|
break;
|
|
35937
|
-
case 32:
|
|
35938
|
-
f = hF;
|
|
35939
|
-
break;
|
|
35940
|
-
default: break;
|
|
36431
|
+
case 32: f = hF;
|
|
35941
36432
|
}
|
|
35942
36433
|
if (b >= 0 && b < 13) {
|
|
35943
36434
|
var h = Math.pow(2, b * 4);
|
|
@@ -36014,7 +36505,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36014
36505
|
case 43:
|
|
36015
36506
|
b++;
|
|
36016
36507
|
d = 1;
|
|
36017
|
-
break;
|
|
36018
36508
|
}
|
|
36019
36509
|
if (b + 1 < e && i(a, b) == 48) switch (i(a, b + 1)) {
|
|
36020
36510
|
case 120:
|
|
@@ -36033,9 +36523,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36033
36523
|
b += 2;
|
|
36034
36524
|
break;
|
|
36035
36525
|
case 117:
|
|
36036
|
-
case 85:
|
|
36037
|
-
b += 2;
|
|
36038
|
-
break;
|
|
36526
|
+
case 85: b += 2;
|
|
36039
36527
|
}
|
|
36040
36528
|
return [
|
|
36041
36529
|
b,
|
|
@@ -36848,9 +37336,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
36848
37336
|
case "text":
|
|
36849
37337
|
e |= d.O_TEXT;
|
|
36850
37338
|
break;
|
|
36851
|
-
case "nonblock":
|
|
36852
|
-
e |= d.O_NONBLOCK;
|
|
36853
|
-
break;
|
|
37339
|
+
case "nonblock": e |= d.O_NONBLOCK;
|
|
36854
37340
|
}
|
|
36855
37341
|
try {
|
|
36856
37342
|
var f = this.fs.openSync(this.nm(a), e);
|
|
@@ -37083,7 +37569,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
37083
37569
|
e.buffer.set(b.subarray(f + 1), e.buffer_curr);
|
|
37084
37570
|
e.buffer_curr += b.length - f - 1;
|
|
37085
37571
|
}
|
|
37086
|
-
break;
|
|
37087
37572
|
}
|
|
37088
37573
|
return 0;
|
|
37089
37574
|
}
|
|
@@ -40212,16 +40697,14 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
40212
40697
|
];
|
|
40213
40698
|
}
|
|
40214
40699
|
break;
|
|
40215
|
-
case 14:
|
|
40216
|
-
|
|
40217
|
-
|
|
40218
|
-
|
|
40219
|
-
|
|
40220
|
-
|
|
40221
|
-
|
|
40222
|
-
|
|
40223
|
-
}
|
|
40224
|
-
break;
|
|
40700
|
+
case 14: if (typeof c !== "number" && 14 === c[0]) {
|
|
40701
|
+
var v = bv(a[1], b, c[1]);
|
|
40702
|
+
return [
|
|
40703
|
+
0,
|
|
40704
|
+
[14, v[1]],
|
|
40705
|
+
v[2]
|
|
40706
|
+
];
|
|
40707
|
+
}
|
|
40225
40708
|
}
|
|
40226
40709
|
throw A(a3, 1);
|
|
40227
40710
|
}
|
|
@@ -66545,12 +67028,10 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
66545
67028
|
]);
|
|
66546
67029
|
var s = 0;
|
|
66547
67030
|
break a;
|
|
66548
|
-
case 11:
|
|
66549
|
-
|
|
66550
|
-
|
|
66551
|
-
|
|
66552
|
-
}
|
|
66553
|
-
break;
|
|
67031
|
+
case 11: if (E[1]) {
|
|
67032
|
+
var s = ahE;
|
|
67033
|
+
break a;
|
|
67034
|
+
}
|
|
66554
67035
|
}
|
|
66555
67036
|
H(c, [
|
|
66556
67037
|
7,
|
|
@@ -67893,21 +68374,19 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
67893
68374
|
s([0, m], 0, p)
|
|
67894
68375
|
]
|
|
67895
68376
|
]];
|
|
67896
|
-
case 128:
|
|
67897
|
-
|
|
67898
|
-
|
|
67899
|
-
|
|
67900
|
-
|
|
68377
|
+
case 128: if (k) {
|
|
68378
|
+
var n = u(c);
|
|
68379
|
+
v(c);
|
|
68380
|
+
return [0, [
|
|
68381
|
+
0,
|
|
68382
|
+
d,
|
|
68383
|
+
[
|
|
67901
68384
|
0,
|
|
67902
|
-
|
|
67903
|
-
[
|
|
67904
|
-
|
|
67905
|
-
|
|
67906
|
-
|
|
67907
|
-
]
|
|
67908
|
-
]];
|
|
67909
|
-
}
|
|
67910
|
-
break;
|
|
68385
|
+
2,
|
|
68386
|
+
s([0, n], 0, p)
|
|
68387
|
+
]
|
|
68388
|
+
]];
|
|
68389
|
+
}
|
|
67911
68390
|
}
|
|
67912
68391
|
else if (4 === e[0]) {
|
|
67913
68392
|
var h = e[3];
|
|
@@ -70956,36 +71435,34 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
70956
71435
|
if (typeof b === "number") switch (b) {
|
|
70957
71436
|
case 57:
|
|
70958
71437
|
case 58:
|
|
70959
|
-
case 59:
|
|
70960
|
-
|
|
70961
|
-
|
|
70962
|
-
|
|
70963
|
-
|
|
70964
|
-
|
|
70965
|
-
|
|
70966
|
-
|
|
70967
|
-
|
|
70968
|
-
|
|
70969
|
-
|
|
70970
|
-
|
|
70971
|
-
|
|
70972
|
-
|
|
70973
|
-
|
|
70974
|
-
default: var c = 0;
|
|
70975
|
-
}
|
|
70976
|
-
var e = c;
|
|
70977
|
-
break a;
|
|
71438
|
+
case 59: if (a$(1, a)) return [1, yO(a, [0, t(0, function(a) {
|
|
71439
|
+
var f = u(a);
|
|
71440
|
+
v(a);
|
|
71441
|
+
a: {
|
|
71442
|
+
if (typeof b === "number") {
|
|
71443
|
+
var d = b + sI | 0;
|
|
71444
|
+
if (2 >= d >>> 0) {
|
|
71445
|
+
switch (d) {
|
|
71446
|
+
case 0:
|
|
71447
|
+
var c = 2;
|
|
71448
|
+
break;
|
|
71449
|
+
case 1:
|
|
71450
|
+
var c = 1;
|
|
71451
|
+
break;
|
|
71452
|
+
default: var c = 0;
|
|
70978
71453
|
}
|
|
71454
|
+
var e = c;
|
|
71455
|
+
break a;
|
|
70979
71456
|
}
|
|
70980
|
-
var e = K(ai1);
|
|
70981
71457
|
}
|
|
70982
|
-
|
|
70983
|
-
|
|
70984
|
-
|
|
70985
|
-
|
|
70986
|
-
|
|
70987
|
-
|
|
70988
|
-
|
|
71458
|
+
var e = K(ai1);
|
|
71459
|
+
}
|
|
71460
|
+
return [
|
|
71461
|
+
0,
|
|
71462
|
+
e,
|
|
71463
|
+
s([0, f], 0, p)
|
|
71464
|
+
];
|
|
71465
|
+
}, a)])];
|
|
70989
71466
|
}
|
|
70990
71467
|
else if (4 === b[0] && !o(b[3], ja) && a$(1, a)) return [1, yO(a, 0)];
|
|
70991
71468
|
return [
|
|
@@ -71447,12 +71924,10 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
71447
71924
|
break a;
|
|
71448
71925
|
}
|
|
71449
71926
|
break;
|
|
71450
|
-
case 2:
|
|
71451
|
-
|
|
71452
|
-
|
|
71453
|
-
|
|
71454
|
-
}
|
|
71455
|
-
break;
|
|
71927
|
+
case 2: if (0 !== c[1][2][0]) {
|
|
71928
|
+
var d = 1;
|
|
71929
|
+
break a;
|
|
71930
|
+
}
|
|
71456
71931
|
}
|
|
71457
71932
|
var d = 0;
|
|
71458
71933
|
}
|
|
@@ -72097,21 +72572,19 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
72097
72572
|
s([0, aw], [0, y(a)], p)
|
|
72098
72573
|
]]
|
|
72099
72574
|
];
|
|
72100
|
-
case 4:
|
|
72101
|
-
|
|
72102
|
-
|
|
72103
|
-
|
|
72104
|
-
|
|
72575
|
+
case 4: if (!o(e[3], jQ)) {
|
|
72576
|
+
var ay = u(a), az = w(a);
|
|
72577
|
+
v(a);
|
|
72578
|
+
return [
|
|
72579
|
+
0,
|
|
72580
|
+
az,
|
|
72581
|
+
[0, [
|
|
72105
72582
|
0,
|
|
72106
|
-
|
|
72107
|
-
|
|
72108
|
-
|
|
72109
|
-
|
|
72110
|
-
|
|
72111
|
-
]]
|
|
72112
|
-
];
|
|
72113
|
-
}
|
|
72114
|
-
break;
|
|
72583
|
+
s([0, ay], [0, y(a)], p),
|
|
72584
|
+
0
|
|
72585
|
+
]]
|
|
72586
|
+
];
|
|
72587
|
+
}
|
|
72115
72588
|
}
|
|
72116
72589
|
if (!bM(a)) {
|
|
72117
72590
|
var ab = u(a), ac = w(a);
|
|
@@ -72207,10 +72680,11 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
72207
72680
|
let c = f;
|
|
72208
72681
|
var f = [1, t([0, h], function(a) {
|
|
72209
72682
|
v(a);
|
|
72683
|
+
var b = [3, aj(a)];
|
|
72210
72684
|
return [
|
|
72211
72685
|
0,
|
|
72212
72686
|
c,
|
|
72213
|
-
|
|
72687
|
+
b,
|
|
72214
72688
|
s(0, [0, y(a)], p)
|
|
72215
72689
|
];
|
|
72216
72690
|
}, a)];
|
|
@@ -73205,45 +73679,39 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
73205
73679
|
case 6:
|
|
73206
73680
|
v(c);
|
|
73207
73681
|
return ir(jC[1], g, aj8, c, d, f);
|
|
73208
|
-
case 100:
|
|
73209
|
-
if (ao(c)) return f;
|
|
73210
|
-
break;
|
|
73682
|
+
case 100: if (ao(c)) return f;
|
|
73211
73683
|
}
|
|
73212
73684
|
else if (3 === k[0]) {
|
|
73213
73685
|
H(c, 69);
|
|
73214
73686
|
return f;
|
|
73215
73687
|
}
|
|
73216
73688
|
return ir(jC[2], g, aj7, c, d, f);
|
|
73217
|
-
case 111:
|
|
73218
|
-
|
|
73219
|
-
|
|
73220
|
-
|
|
73221
|
-
|
|
73222
|
-
|
|
73223
|
-
|
|
73224
|
-
|
|
73225
|
-
|
|
73226
|
-
|
|
73227
|
-
|
|
73228
|
-
|
|
73229
|
-
|
|
73230
|
-
|
|
73231
|
-
|
|
73232
|
-
case 100:
|
|
73233
|
-
if (ao(c)) {
|
|
73234
|
-
v(c);
|
|
73235
|
-
return f;
|
|
73236
|
-
}
|
|
73237
|
-
break;
|
|
73238
|
-
}
|
|
73239
|
-
else if (3 === l[0]) {
|
|
73240
|
-
H(c, 69);
|
|
73689
|
+
case 111: if (i && c[32][9]) {
|
|
73690
|
+
var l = F(1, c);
|
|
73691
|
+
if (typeof l === "number") switch (l) {
|
|
73692
|
+
case 4:
|
|
73693
|
+
v(c);
|
|
73694
|
+
return f;
|
|
73695
|
+
case 6:
|
|
73696
|
+
v(c);
|
|
73697
|
+
v(c);
|
|
73698
|
+
return ir(jC[1], g, aj9, c, d, f);
|
|
73699
|
+
case 10:
|
|
73700
|
+
v(c);
|
|
73701
|
+
v(c);
|
|
73702
|
+
return ir(jC[2], g, aj_, c, d, f);
|
|
73703
|
+
case 100: if (ao(c)) {
|
|
73241
73704
|
v(c);
|
|
73242
73705
|
return f;
|
|
73243
73706
|
}
|
|
73707
|
+
}
|
|
73708
|
+
else if (3 === l[0]) {
|
|
73709
|
+
H(c, 69);
|
|
73710
|
+
v(c);
|
|
73244
73711
|
return f;
|
|
73245
73712
|
}
|
|
73246
|
-
|
|
73713
|
+
return f;
|
|
73714
|
+
}
|
|
73247
73715
|
}
|
|
73248
73716
|
else if (3 === j[0]) {
|
|
73249
73717
|
var o = j[1];
|
|
@@ -73730,9 +74198,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
73730
74198
|
$[1],
|
|
73731
74199
|
[33, $[2]]
|
|
73732
74200
|
]];
|
|
73733
|
-
case 4:
|
|
73734
|
-
if (!o(b[3], cq) && 42 === F(1, a)) return [0, l(z[22], a)];
|
|
73735
|
-
break;
|
|
74201
|
+
case 4: if (!o(b[3], cq) && 42 === F(1, a)) return [0, l(z[22], a)];
|
|
73736
74202
|
}
|
|
73737
74203
|
if (bM(a)) {
|
|
73738
74204
|
var L = n(z[13], 0, a);
|
|
@@ -76657,7 +77123,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
76657
77123
|
0
|
|
76658
77124
|
]
|
|
76659
77125
|
]);
|
|
76660
|
-
break;
|
|
76661
77126
|
}
|
|
76662
77127
|
var f = a, e = c;
|
|
76663
77128
|
break;
|
|
@@ -76976,11 +77441,12 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
76976
77441
|
var a = [
|
|
76977
77442
|
0,
|
|
76978
77443
|
[0, t([0, h], function(a) {
|
|
77444
|
+
var b = qy(Z, _, A)(a);
|
|
76979
77445
|
return [
|
|
76980
77446
|
0,
|
|
76981
77447
|
1,
|
|
76982
77448
|
$,
|
|
76983
|
-
|
|
77449
|
+
b,
|
|
76984
77450
|
P,
|
|
76985
77451
|
0,
|
|
76986
77452
|
0,
|
|
@@ -77867,7 +78333,6 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
77867
78333
|
break a;
|
|
77868
78334
|
}
|
|
77869
78335
|
}
|
|
77870
|
-
break;
|
|
77871
78336
|
}
|
|
77872
78337
|
else if (4 === k[0]) {
|
|
77873
78338
|
var G = k[3];
|
|
@@ -79925,21 +80390,19 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
79925
80390
|
]
|
|
79926
80391
|
]]];
|
|
79927
80392
|
break a;
|
|
79928
|
-
case 4:
|
|
79929
|
-
|
|
79930
|
-
|
|
80393
|
+
case 4: if (17 !== F(1, c)) {
|
|
80394
|
+
var Z = t(0, yU, c), w = Z[2], al = w[3], am = w[1], an = Z[1], e = al, a = [0, [1, [
|
|
80395
|
+
0,
|
|
80396
|
+
an,
|
|
80397
|
+
[
|
|
79931
80398
|
0,
|
|
79932
|
-
|
|
79933
|
-
|
|
79934
|
-
|
|
79935
|
-
|
|
79936
|
-
|
|
79937
|
-
|
|
79938
|
-
|
|
79939
|
-
]]];
|
|
79940
|
-
break a;
|
|
79941
|
-
}
|
|
79942
|
-
break;
|
|
80399
|
+
am,
|
|
80400
|
+
1,
|
|
80401
|
+
s([0, w[2]], 0, p)
|
|
80402
|
+
]
|
|
80403
|
+
]]];
|
|
80404
|
+
break a;
|
|
80405
|
+
}
|
|
79943
80406
|
}
|
|
79944
80407
|
} else if (8 === d) {
|
|
79945
80408
|
var e = 0, a = 0;
|
|
@@ -81130,12 +81593,10 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
81130
81593
|
var f = nv(a);
|
|
81131
81594
|
}
|
|
81132
81595
|
return f;
|
|
81133
|
-
case 11:
|
|
81134
|
-
|
|
81135
|
-
|
|
81136
|
-
|
|
81137
|
-
}
|
|
81138
|
-
break;
|
|
81596
|
+
case 11: if (51 === F(1, a)) {
|
|
81597
|
+
m7(a)(b);
|
|
81598
|
+
return yG(a);
|
|
81599
|
+
}
|
|
81139
81600
|
}
|
|
81140
81601
|
}
|
|
81141
81602
|
return nJ([0, b], a);
|
|
@@ -89542,7 +90003,7 @@ var require_flow_parser = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
|
89542
90003
|
})(globalThis);
|
|
89543
90004
|
}));
|
|
89544
90005
|
//#endregion
|
|
89545
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90006
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/flow.js
|
|
89546
90007
|
/**
|
|
89547
90008
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89548
90009
|
*
|
|
@@ -89572,7 +90033,7 @@ var require_flow = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89572
90033
|
};
|
|
89573
90034
|
}));
|
|
89574
90035
|
//#endregion
|
|
89575
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90036
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/tsOptions.js
|
|
89576
90037
|
/**
|
|
89577
90038
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89578
90039
|
*
|
|
@@ -89618,7 +90079,7 @@ var require_tsOptions = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89618
90079
|
};
|
|
89619
90080
|
}));
|
|
89620
90081
|
//#endregion
|
|
89621
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90082
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/ts.js
|
|
89622
90083
|
/**
|
|
89623
90084
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89624
90085
|
*
|
|
@@ -89639,7 +90100,7 @@ var require_ts = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89639
90100
|
};
|
|
89640
90101
|
}));
|
|
89641
90102
|
//#endregion
|
|
89642
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90103
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/tsx.js
|
|
89643
90104
|
/**
|
|
89644
90105
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89645
90106
|
*
|
|
@@ -89662,7 +90123,7 @@ var require_tsx = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89662
90123
|
};
|
|
89663
90124
|
}));
|
|
89664
90125
|
//#endregion
|
|
89665
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90126
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/parser/babel5Compat.js
|
|
89666
90127
|
/**
|
|
89667
90128
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89668
90129
|
*
|
|
@@ -89706,7 +90167,7 @@ var require_babel5Compat = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89706
90167
|
};
|
|
89707
90168
|
}));
|
|
89708
90169
|
//#endregion
|
|
89709
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90170
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/getParser.js
|
|
89710
90171
|
/**
|
|
89711
90172
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89712
90173
|
*
|
|
@@ -89725,7 +90186,7 @@ var require_getParser = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89725
90186
|
};
|
|
89726
90187
|
}));
|
|
89727
90188
|
//#endregion
|
|
89728
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90189
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/template.js
|
|
89729
90190
|
/**
|
|
89730
90191
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89731
90192
|
*
|
|
@@ -89757,14 +90218,15 @@ var require_template = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89757
90218
|
if (varIndex === -1) return;
|
|
89758
90219
|
let replacement = nodes[varIndex];
|
|
89759
90220
|
nodes[varIndex] = null;
|
|
89760
|
-
if (Array.isArray(replacement))
|
|
89761
|
-
|
|
89762
|
-
|
|
89763
|
-
|
|
89764
|
-
|
|
89765
|
-
|
|
89766
|
-
|
|
89767
|
-
|
|
90221
|
+
if (Array.isArray(replacement)) {
|
|
90222
|
+
if (types.Function.check(parent) && parent.params.indexOf(node) > -1) splice(parent.params, node, replacement);
|
|
90223
|
+
else if (types.VariableDeclarator.check(parent)) splice(path.parent.parent.node.declarations, parent, replacement);
|
|
90224
|
+
else if (types.ArrayExpression.check(parent)) splice(parent.elements, node, replacement);
|
|
90225
|
+
else if (types.Property.check(parent) && parent.shorthand) splice(path.parent.parent.node.properties, parent, replacement);
|
|
90226
|
+
else if (types.CallExpression.check(parent) && parent.arguments.indexOf(node) > -1) splice(parent.arguments, node, replacement);
|
|
90227
|
+
else if (types.ExpressionStatement.check(parent)) path.parent.replace.apply(path.parent, replacement.map(ensureStatement));
|
|
90228
|
+
else path.replace.apply(path, replacement);
|
|
90229
|
+
} else if (types.ExpressionStatement.check(parent)) path.parent.replace(ensureStatement(replacement));
|
|
89768
90230
|
else path.replace(replacement);
|
|
89769
90231
|
} };
|
|
89770
90232
|
}
|
|
@@ -89816,7 +90278,7 @@ var require_template = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89816
90278
|
};
|
|
89817
90279
|
}));
|
|
89818
90280
|
//#endregion
|
|
89819
|
-
//#region ../../node_modules/.pnpm/jscodeshift@17.
|
|
90281
|
+
//#region ../../node_modules/.pnpm/jscodeshift@17.4.0_supports-color@7.2.0/node_modules/jscodeshift/src/core.js
|
|
89820
90282
|
/**
|
|
89821
90283
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
89822
90284
|
*
|
|
@@ -89882,8 +90344,10 @@ var require_core = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
|
89882
90344
|
* @return boolean
|
|
89883
90345
|
*/
|
|
89884
90346
|
function match(path, filter) {
|
|
89885
|
-
if (!(path instanceof NodePath))
|
|
89886
|
-
|
|
90347
|
+
if (!(path instanceof NodePath)) {
|
|
90348
|
+
if (typeof path.get === "function") path = path.get();
|
|
90349
|
+
else path = { value: path };
|
|
90350
|
+
}
|
|
89887
90351
|
return matchNode(path.value, filter);
|
|
89888
90352
|
}
|
|
89889
90353
|
const plugins = [];
|