@storm-software/linting-tools 1.119.24 → 1.119.26
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/README.md +1 -1
- package/{dist/chunk-YGKJSNX7.js → bin/chunk-32XQHFGE.js} +2 -2
- package/{dist/chunk-ZDJ6A2LW.cjs → bin/chunk-3UGTJRWY.cjs} +152 -152
- package/{dist/chunk-SG7EAXX4.cjs → bin/chunk-4RF6THIX.cjs} +138 -138
- package/{dist/chunk-EF2QNWS4.cjs → bin/chunk-C22CM2QI.cjs} +243 -231
- package/bin/{chunk-2KDMIKWU.cjs → chunk-EIO5QEUI.cjs} +11 -11
- package/{dist/chunk-YPA2QUMR.cjs → bin/chunk-I2JYD3H6.cjs} +24 -19
- package/{dist/chunk-SQCSB444.cjs → bin/chunk-JMC2RKOQ.cjs} +32 -32
- package/{dist/chunk-NBPTD76Q.js → bin/chunk-K6MMXF46.js} +2 -2
- package/{dist/chunk-A4TZZH23.js → bin/chunk-LIJ5WV4A.js} +2 -2
- package/bin/{chunk-2HPUSEOW.cjs → chunk-LKG4W7DJ.cjs} +2 -2
- package/bin/{chunk-HEZ4RO23.js → chunk-MABAGCQ6.js} +41 -29
- package/{dist/chunk-PQ5PUA5Y.cjs → bin/chunk-MMZUGSMN.cjs} +40 -40
- package/bin/{chunk-2IE4DLUN.js → chunk-NDKCDPQO.js} +1 -1
- package/bin/{chunk-NJWQ5DAN.js → chunk-NDQ2CW4A.js} +2 -2
- package/bin/{chunk-BPGBQ4AU.cjs → chunk-PDUGQAZO.cjs} +388 -388
- package/bin/{chunk-BLCDYU3V.js → chunk-RBBW5SMK.js} +1 -1
- package/{dist/chunk-F6SMOBG3.js → bin/chunk-RHDLCCAJ.js} +20 -15
- package/bin/{chunk-FH3GDOOO.js → chunk-ULL57BC3.js} +2 -2
- package/bin/{chunk-VO3ZJK3W.js → chunk-ZJGO7CH5.js} +2 -2
- package/bin/{chunk-B5GG3XCQ.cjs → chunk-ZTPDBXJ7.cjs} +44 -44
- package/bin/{dist-RWR2JNAL.js → dist-LKHUGSWR.js} +5 -5
- package/bin/{dist-OHY4PLS2.cjs → dist-NMN4MHNO.cjs} +989 -989
- package/{dist/dist-7LMLAWUP.cjs → bin/dist-UIFUFPNF.cjs} +11 -11
- package/bin/{dist-VFELXY4D.js → dist-VQR5XTRX.js} +8 -8
- package/{dist/esm-HY37SH6N.js → bin/esm-RKT3LFXX.js} +1 -1
- package/{dist/esm-XU4H3B2N.cjs → bin/esm-U35YC6KQ.cjs} +46 -46
- package/bin/json5-CWKRIV7X.js +10 -0
- package/bin/json5-XI6JKVFM.cjs +10 -0
- package/{dist/jsonc-KYPEKHOV.js → bin/jsonc-6CGHMLZO.js} +3 -3
- package/bin/jsonc-BYJLN6Q4.cjs +15 -0
- package/bin/lint.cjs +31839 -31612
- package/bin/lint.js +5153 -4925
- package/{dist/multipart-parser-5HBMD6JO.js → bin/multipart-parser-LGBOR4F3.js} +2 -2
- package/{dist/multipart-parser-CF3BQORX.cjs → bin/multipart-parser-TTCELASL.cjs} +11 -11
- package/bin/{package-json-V5Z5DK5X.js → package-json-ITRNRAWE.js} +250 -153
- package/{dist/package-json-6XHUARKD.cjs → bin/package-json-L3F3J6R4.cjs} +487 -390
- package/bin/toml-I3FOMOEL.js +10 -0
- package/bin/toml-YQ3ON7DN.cjs +10 -0
- package/{dist/utils-DUARF7MU.js → bin/utils-ITF452JH.js} +3 -3
- package/bin/{utils-ZLRC2VXJ.cjs → utils-ZQ55RYQ3.cjs} +11 -11
- package/bin/yaml-EMLF46N6.js +10 -0
- package/bin/yaml-WRJ2JXLS.cjs +10 -0
- package/{bin/chunk-YGKJSNX7.js → dist/chunk-32XQHFGE.js} +2 -2
- package/{bin/chunk-ZDJ6A2LW.cjs → dist/chunk-3UGTJRWY.cjs} +152 -152
- package/{bin/chunk-SG7EAXX4.cjs → dist/chunk-4RF6THIX.cjs} +138 -138
- package/{bin/chunk-EF2QNWS4.cjs → dist/chunk-C22CM2QI.cjs} +243 -231
- package/dist/{chunk-2KDMIKWU.cjs → chunk-EIO5QEUI.cjs} +11 -11
- package/{bin/chunk-YPA2QUMR.cjs → dist/chunk-I2JYD3H6.cjs} +24 -19
- package/{bin/chunk-SQCSB444.cjs → dist/chunk-JMC2RKOQ.cjs} +32 -32
- package/{bin/chunk-NBPTD76Q.js → dist/chunk-K6MMXF46.js} +2 -2
- package/{bin/chunk-A4TZZH23.js → dist/chunk-LIJ5WV4A.js} +2 -2
- package/dist/{chunk-2HPUSEOW.cjs → chunk-LKG4W7DJ.cjs} +2 -2
- package/dist/{chunk-HEZ4RO23.js → chunk-MABAGCQ6.js} +41 -29
- package/{bin/chunk-PQ5PUA5Y.cjs → dist/chunk-MMZUGSMN.cjs} +40 -40
- package/dist/{chunk-2IE4DLUN.js → chunk-NDKCDPQO.js} +1 -1
- package/dist/{chunk-NJWQ5DAN.js → chunk-NDQ2CW4A.js} +2 -2
- package/dist/{chunk-BPGBQ4AU.cjs → chunk-PDUGQAZO.cjs} +388 -388
- package/dist/{chunk-BLCDYU3V.js → chunk-RBBW5SMK.js} +1 -1
- package/{bin/chunk-F6SMOBG3.js → dist/chunk-RHDLCCAJ.js} +20 -15
- package/dist/{chunk-FH3GDOOO.js → chunk-ULL57BC3.js} +2 -2
- package/dist/{chunk-VO3ZJK3W.js → chunk-ZJGO7CH5.js} +2 -2
- package/dist/{chunk-B5GG3XCQ.cjs → chunk-ZTPDBXJ7.cjs} +44 -44
- package/dist/{dist-RWR2JNAL.js → dist-LKHUGSWR.js} +5 -5
- package/dist/{dist-OHY4PLS2.cjs → dist-NMN4MHNO.cjs} +989 -989
- package/{bin/dist-7LMLAWUP.cjs → dist/dist-UIFUFPNF.cjs} +11 -11
- package/dist/{dist-VFELXY4D.js → dist-VQR5XTRX.js} +8 -8
- package/{bin/esm-HY37SH6N.js → dist/esm-RKT3LFXX.js} +1 -1
- package/{bin/esm-XU4H3B2N.cjs → dist/esm-U35YC6KQ.cjs} +46 -46
- package/dist/index.cjs +31834 -31607
- package/dist/index.js +5153 -4925
- package/dist/json5-CWKRIV7X.js +10 -0
- package/dist/json5-XI6JKVFM.cjs +10 -0
- package/{bin/jsonc-KYPEKHOV.js → dist/jsonc-6CGHMLZO.js} +3 -3
- package/dist/jsonc-BYJLN6Q4.cjs +15 -0
- package/{bin/multipart-parser-5HBMD6JO.js → dist/multipart-parser-LGBOR4F3.js} +2 -2
- package/{bin/multipart-parser-CF3BQORX.cjs → dist/multipart-parser-TTCELASL.cjs} +11 -11
- package/dist/{package-json-V5Z5DK5X.js → package-json-ITRNRAWE.js} +250 -153
- package/{bin/package-json-6XHUARKD.cjs → dist/package-json-L3F3J6R4.cjs} +487 -390
- package/dist/toml-I3FOMOEL.js +10 -0
- package/dist/toml-YQ3ON7DN.cjs +10 -0
- package/{bin/utils-DUARF7MU.js → dist/utils-ITF452JH.js} +3 -3
- package/dist/{utils-ZLRC2VXJ.cjs → utils-ZQ55RYQ3.cjs} +11 -11
- package/dist/yaml-EMLF46N6.js +10 -0
- package/dist/yaml-WRJ2JXLS.cjs +10 -0
- package/package.json +1 -1
- package/bin/json5-3VVARTPN.cjs +0 -10
- package/bin/json5-WUIP5FMS.js +0 -10
- package/bin/jsonc-IS6EPVRJ.cjs +0 -15
- package/bin/toml-BAOM6BGG.js +0 -10
- package/bin/toml-JQMR5ASK.cjs +0 -10
- package/bin/yaml-LF4MDF3I.cjs +0 -10
- package/bin/yaml-TI2L6CZN.js +0 -10
- package/dist/json5-3VVARTPN.cjs +0 -10
- package/dist/json5-WUIP5FMS.js +0 -10
- package/dist/jsonc-IS6EPVRJ.cjs +0 -15
- package/dist/toml-BAOM6BGG.js +0 -10
- package/dist/toml-JQMR5ASK.cjs +0 -10
- package/dist/yaml-LF4MDF3I.cjs +0 -10
- package/dist/yaml-TI2L6CZN.js +0 -10
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class2;
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkZTPDBXJ7cjs = require('./chunk-ZTPDBXJ7.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
8
|
|
|
9
|
-
var
|
|
9
|
+
var _chunkLKG4W7DJcjs = require('./chunk-LKG4W7DJ.cjs');
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/index.mjs
|
|
12
|
-
|
|
12
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
13
13
|
|
|
14
14
|
// ../../node_modules/.pnpm/pathe@2.0.3/node_modules/pathe/dist/shared/pathe.M-eThtNZ.mjs
|
|
15
|
-
|
|
15
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
16
16
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
17
17
|
function normalizeWindowsPath(input = "") {
|
|
18
18
|
if (!input) {
|
|
@@ -20,13 +20,13 @@ function normalizeWindowsPath(input = "") {
|
|
|
20
20
|
}
|
|
21
21
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r2) => r2.toUpperCase());
|
|
22
22
|
}
|
|
23
|
-
|
|
23
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
24
24
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
25
25
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
26
26
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
27
27
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
28
28
|
var _EXTNAME_RE = /.(\.[^./]+|\.)$/;
|
|
29
|
-
var normalize = /* @__PURE__ */
|
|
29
|
+
var normalize = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(path2) {
|
|
30
30
|
if (path2.length === 0) {
|
|
31
31
|
return ".";
|
|
32
32
|
}
|
|
@@ -55,7 +55,7 @@ var normalize = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function(p
|
|
|
55
55
|
}
|
|
56
56
|
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
57
57
|
}, "normalize");
|
|
58
|
-
var join = /* @__PURE__ */
|
|
58
|
+
var join = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(...segments) {
|
|
59
59
|
let path2 = "";
|
|
60
60
|
for (const seg of segments) {
|
|
61
61
|
if (!seg) {
|
|
@@ -82,8 +82,8 @@ function cwd() {
|
|
|
82
82
|
}
|
|
83
83
|
return "/";
|
|
84
84
|
}
|
|
85
|
-
|
|
86
|
-
var resolve = /* @__PURE__ */
|
|
85
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, cwd, "cwd");
|
|
86
|
+
var resolve = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(...arguments_) {
|
|
87
87
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
88
88
|
let resolvedPath = "";
|
|
89
89
|
let resolvedAbsolute = false;
|
|
@@ -161,16 +161,16 @@ function normalizeString(path2, allowAboveRoot) {
|
|
|
161
161
|
}
|
|
162
162
|
return res;
|
|
163
163
|
}
|
|
164
|
-
|
|
165
|
-
var isAbsolute = /* @__PURE__ */
|
|
164
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
165
|
+
var isAbsolute = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(p) {
|
|
166
166
|
return _IS_ABSOLUTE_RE.test(p);
|
|
167
167
|
}, "isAbsolute");
|
|
168
|
-
var extname = /* @__PURE__ */
|
|
168
|
+
var extname = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(p) {
|
|
169
169
|
if (p === "..") return "";
|
|
170
170
|
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
171
171
|
return match && match[1] || "";
|
|
172
172
|
}, "extname");
|
|
173
|
-
var relative = /* @__PURE__ */
|
|
173
|
+
var relative = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(from, to) {
|
|
174
174
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
175
175
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
176
176
|
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
@@ -186,14 +186,14 @@ var relative = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function(fr
|
|
|
186
186
|
}
|
|
187
187
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
188
188
|
}, "relative");
|
|
189
|
-
var dirname = /* @__PURE__ */
|
|
189
|
+
var dirname = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(p) {
|
|
190
190
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
191
191
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
192
192
|
segments[0] += "/";
|
|
193
193
|
}
|
|
194
194
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
195
195
|
}, "dirname");
|
|
196
|
-
var basename = /* @__PURE__ */
|
|
196
|
+
var basename = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function(p, extension) {
|
|
197
197
|
const segments = normalizeWindowsPath(p).split("/");
|
|
198
198
|
let lastSegment = "";
|
|
199
199
|
for (let i = segments.length - 1; i >= 0; i--) {
|
|
@@ -207,7 +207,7 @@ var basename = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function(p,
|
|
|
207
207
|
}, "basename");
|
|
208
208
|
|
|
209
209
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
210
|
-
|
|
210
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
211
211
|
function isPlainObject(value) {
|
|
212
212
|
if (value === null || typeof value !== "object") {
|
|
213
213
|
return false;
|
|
@@ -224,7 +224,7 @@ function isPlainObject(value) {
|
|
|
224
224
|
}
|
|
225
225
|
return true;
|
|
226
226
|
}
|
|
227
|
-
|
|
227
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isPlainObject, "isPlainObject");
|
|
228
228
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
229
229
|
if (!isPlainObject(defaults)) {
|
|
230
230
|
return _defu(baseObject, {}, namespace, merger);
|
|
@@ -256,14 +256,14 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
256
256
|
}
|
|
257
257
|
return object;
|
|
258
258
|
}
|
|
259
|
-
|
|
259
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, _defu, "_defu");
|
|
260
260
|
function createDefu(merger) {
|
|
261
261
|
return (...arguments_) => (
|
|
262
262
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
263
263
|
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
|
|
266
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, createDefu, "createDefu");
|
|
267
267
|
var defu = createDefu();
|
|
268
268
|
var defuFn = createDefu((object, key, currentValue) => {
|
|
269
269
|
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
@@ -278,8 +278,8 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
278
278
|
}
|
|
279
279
|
});
|
|
280
280
|
|
|
281
|
-
// ../../node_modules/.pnpm/ufo@1.
|
|
282
|
-
|
|
281
|
+
// ../../node_modules/.pnpm/ufo@1.6.1/node_modules/ufo/dist/index.mjs
|
|
282
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
283
283
|
var r = String.fromCharCode;
|
|
284
284
|
var TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
285
285
|
var JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
@@ -289,7 +289,7 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
289
289
|
}
|
|
290
290
|
return TRAILING_SLASH_RE.test(input);
|
|
291
291
|
}
|
|
292
|
-
|
|
292
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, hasTrailingSlash, "hasTrailingSlash");
|
|
293
293
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
294
294
|
if (!respectQueryAndFragment) {
|
|
295
295
|
return input.endsWith("/") ? input : input + "/";
|
|
@@ -300,7 +300,7 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
300
300
|
let path2 = input;
|
|
301
301
|
let fragment = "";
|
|
302
302
|
const fragmentIndex = input.indexOf("#");
|
|
303
|
-
if (fragmentIndex
|
|
303
|
+
if (fragmentIndex !== -1) {
|
|
304
304
|
path2 = input.slice(0, fragmentIndex);
|
|
305
305
|
fragment = input.slice(fragmentIndex);
|
|
306
306
|
if (!path2) {
|
|
@@ -310,11 +310,11 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
310
310
|
const [s0, ...s] = path2.split("?");
|
|
311
311
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
312
312
|
}
|
|
313
|
-
|
|
313
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, withTrailingSlash, "withTrailingSlash");
|
|
314
314
|
function isNonEmptyURL(url) {
|
|
315
315
|
return url && url !== "/";
|
|
316
316
|
}
|
|
317
|
-
|
|
317
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isNonEmptyURL, "isNonEmptyURL");
|
|
318
318
|
function joinURL(base, ...input) {
|
|
319
319
|
let url = base || "";
|
|
320
320
|
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
|
|
@@ -327,18 +327,18 @@ function joinURL(base, ...input) {
|
|
|
327
327
|
}
|
|
328
328
|
return url;
|
|
329
329
|
}
|
|
330
|
-
|
|
330
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, joinURL, "joinURL");
|
|
331
331
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
332
332
|
|
|
333
333
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
334
|
-
|
|
334
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
335
335
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
336
336
|
|
|
337
337
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
338
|
-
|
|
338
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
339
339
|
|
|
340
|
-
// ../../node_modules/.pnpm/acorn@8.14.
|
|
341
|
-
|
|
340
|
+
// ../../node_modules/.pnpm/acorn@8.14.1/node_modules/acorn/dist/acorn.mjs
|
|
341
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
342
342
|
var astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 7, 9, 32, 4, 318, 1, 80, 3, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 68, 8, 2, 0, 3, 0, 2, 3, 2, 4, 2, 0, 15, 1, 83, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 7, 19, 58, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 343, 9, 54, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 10, 5350, 0, 7, 14, 11465, 27, 2343, 9, 87, 9, 39, 4, 60, 6, 26, 9, 535, 9, 470, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4178, 9, 519, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 245, 1, 2, 9, 726, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
|
|
343
343
|
var astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 4, 51, 13, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 39, 27, 10, 22, 251, 41, 7, 1, 17, 2, 60, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 31, 9, 2, 0, 3, 0, 2, 37, 2, 0, 26, 0, 2, 0, 45, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 200, 32, 32, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 26, 3994, 6, 582, 6842, 29, 1763, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 433, 44, 212, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 42, 9, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 229, 29, 3, 0, 496, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
|
|
344
344
|
var nonASCIIidentifierChars = "\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0897-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65";
|
|
@@ -373,7 +373,7 @@ function isInAstralSet(code, set) {
|
|
|
373
373
|
}
|
|
374
374
|
return false;
|
|
375
375
|
}
|
|
376
|
-
|
|
376
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isInAstralSet, "isInAstralSet");
|
|
377
377
|
function isIdentifierStart(code, astral) {
|
|
378
378
|
if (code < 65) {
|
|
379
379
|
return code === 36;
|
|
@@ -395,7 +395,7 @@ function isIdentifierStart(code, astral) {
|
|
|
395
395
|
}
|
|
396
396
|
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
397
397
|
}
|
|
398
|
-
|
|
398
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isIdentifierStart, "isIdentifierStart");
|
|
399
399
|
function isIdentifierChar(code, astral) {
|
|
400
400
|
if (code < 48) {
|
|
401
401
|
return code === 36;
|
|
@@ -423,8 +423,8 @@ function isIdentifierChar(code, astral) {
|
|
|
423
423
|
}
|
|
424
424
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
425
425
|
}
|
|
426
|
-
|
|
427
|
-
var TokenType = /* @__PURE__ */
|
|
426
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isIdentifierChar, "isIdentifierChar");
|
|
427
|
+
var TokenType = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function TokenType2(label, conf) {
|
|
428
428
|
if (conf === void 0) conf = {};
|
|
429
429
|
this.label = label;
|
|
430
430
|
this.keyword = conf.keyword;
|
|
@@ -440,7 +440,7 @@ var TokenType = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function T
|
|
|
440
440
|
function binop(name, prec) {
|
|
441
441
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
442
442
|
}
|
|
443
|
-
|
|
443
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, binop, "binop");
|
|
444
444
|
var beforeExpr = { beforeExpr: true };
|
|
445
445
|
var startsExpr = { startsExpr: true };
|
|
446
446
|
var keywords = {};
|
|
@@ -449,7 +449,7 @@ function kw(name, options) {
|
|
|
449
449
|
options.keyword = name;
|
|
450
450
|
return keywords[name] = new TokenType(name, options);
|
|
451
451
|
}
|
|
452
|
-
|
|
452
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, kw, "kw");
|
|
453
453
|
var types$1 = {
|
|
454
454
|
num: new TokenType("num", startsExpr),
|
|
455
455
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -549,7 +549,7 @@ var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
|
549
549
|
function isNewLine(code) {
|
|
550
550
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
551
551
|
}
|
|
552
|
-
|
|
552
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isNewLine, "isNewLine");
|
|
553
553
|
function nextLineBreak(code, from, end) {
|
|
554
554
|
if (end === void 0) end = code.length;
|
|
555
555
|
for (var i = from; i < end; i++) {
|
|
@@ -560,7 +560,7 @@ function nextLineBreak(code, from, end) {
|
|
|
560
560
|
}
|
|
561
561
|
return -1;
|
|
562
562
|
}
|
|
563
|
-
|
|
563
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, nextLineBreak, "nextLineBreak");
|
|
564
564
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
565
565
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
566
566
|
var ref = Object.prototype;
|
|
@@ -576,7 +576,7 @@ var regexpCache = /* @__PURE__ */ Object.create(null);
|
|
|
576
576
|
function wordsRegexp(words) {
|
|
577
577
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
578
578
|
}
|
|
579
|
-
|
|
579
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, wordsRegexp, "wordsRegexp");
|
|
580
580
|
function codePointToString(code) {
|
|
581
581
|
if (code <= 65535) {
|
|
582
582
|
return String.fromCharCode(code);
|
|
@@ -584,16 +584,16 @@ function codePointToString(code) {
|
|
|
584
584
|
code -= 65536;
|
|
585
585
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
586
586
|
}
|
|
587
|
-
|
|
587
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, codePointToString, "codePointToString");
|
|
588
588
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
589
|
-
var Position = /* @__PURE__ */
|
|
589
|
+
var Position = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function Position2(line, col) {
|
|
590
590
|
this.line = line;
|
|
591
591
|
this.column = col;
|
|
592
592
|
}, "Position");
|
|
593
|
-
Position.prototype.offset = /* @__PURE__ */
|
|
593
|
+
Position.prototype.offset = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function offset(n) {
|
|
594
594
|
return new Position(this.line, this.column + n);
|
|
595
595
|
}, "offset");
|
|
596
|
-
var SourceLocation = /* @__PURE__ */
|
|
596
|
+
var SourceLocation = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function SourceLocation2(p, start, end) {
|
|
597
597
|
this.start = start;
|
|
598
598
|
this.end = end;
|
|
599
599
|
if (p.sourceFile !== null) {
|
|
@@ -610,7 +610,7 @@ function getLineInfo(input, offset2) {
|
|
|
610
610
|
cur = nextBreak;
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
|
-
|
|
613
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getLineInfo, "getLineInfo");
|
|
614
614
|
var defaultOptions = {
|
|
615
615
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
616
616
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -742,7 +742,7 @@ function getOptions(opts) {
|
|
|
742
742
|
}
|
|
743
743
|
return options;
|
|
744
744
|
}
|
|
745
|
-
|
|
745
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getOptions, "getOptions");
|
|
746
746
|
function pushComment(options, array) {
|
|
747
747
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
748
748
|
var comment = {
|
|
@@ -760,7 +760,7 @@ function pushComment(options, array) {
|
|
|
760
760
|
array.push(comment);
|
|
761
761
|
};
|
|
762
762
|
}
|
|
763
|
-
|
|
763
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, pushComment, "pushComment");
|
|
764
764
|
var SCOPE_TOP = 1;
|
|
765
765
|
var SCOPE_FUNCTION = 2;
|
|
766
766
|
var SCOPE_ASYNC = 4;
|
|
@@ -770,18 +770,19 @@ var SCOPE_SIMPLE_CATCH = 32;
|
|
|
770
770
|
var SCOPE_SUPER = 64;
|
|
771
771
|
var SCOPE_DIRECT_SUPER = 128;
|
|
772
772
|
var SCOPE_CLASS_STATIC_BLOCK = 256;
|
|
773
|
+
var SCOPE_CLASS_FIELD_INIT = 512;
|
|
773
774
|
var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
774
775
|
function functionFlags(async, generator) {
|
|
775
776
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
776
777
|
}
|
|
777
|
-
|
|
778
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, functionFlags, "functionFlags");
|
|
778
779
|
var BIND_NONE = 0;
|
|
779
780
|
var BIND_VAR = 1;
|
|
780
781
|
var BIND_LEXICAL = 2;
|
|
781
782
|
var BIND_FUNCTION = 3;
|
|
782
783
|
var BIND_SIMPLE_CATCH = 4;
|
|
783
784
|
var BIND_OUTSIDE = 5;
|
|
784
|
-
var Parser = /* @__PURE__ */
|
|
785
|
+
var Parser = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function Parser2(options, input, startPos) {
|
|
785
786
|
this.options = options = getOptions(options);
|
|
786
787
|
this.sourceFile = options.sourceFile;
|
|
787
788
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -830,7 +831,7 @@ var Parser = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function Pars
|
|
|
830
831
|
this.privateNameStack = [];
|
|
831
832
|
}, "Parser");
|
|
832
833
|
var prototypeAccessors = { inFunction: { configurable: true }, inGenerator: { configurable: true }, inAsync: { configurable: true }, canAwait: { configurable: true }, allowSuper: { configurable: true }, allowDirectSuper: { configurable: true }, treatFunctionsAsVar: { configurable: true }, allowNewDotTarget: { configurable: true }, inClassStaticBlock: { configurable: true } };
|
|
833
|
-
Parser.prototype.parse = /* @__PURE__ */
|
|
834
|
+
Parser.prototype.parse = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function parse2() {
|
|
834
835
|
var node = this.options.program || this.startNode();
|
|
835
836
|
this.nextToken();
|
|
836
837
|
return this.parseTopLevel(node);
|
|
@@ -839,19 +840,20 @@ prototypeAccessors.inFunction.get = function() {
|
|
|
839
840
|
return (this.currentVarScope().flags & SCOPE_FUNCTION) > 0;
|
|
840
841
|
};
|
|
841
842
|
prototypeAccessors.inGenerator.get = function() {
|
|
842
|
-
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0
|
|
843
|
+
return (this.currentVarScope().flags & SCOPE_GENERATOR) > 0;
|
|
843
844
|
};
|
|
844
845
|
prototypeAccessors.inAsync.get = function() {
|
|
845
|
-
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0
|
|
846
|
+
return (this.currentVarScope().flags & SCOPE_ASYNC) > 0;
|
|
846
847
|
};
|
|
847
848
|
prototypeAccessors.canAwait.get = function() {
|
|
848
849
|
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
849
|
-
var
|
|
850
|
-
|
|
850
|
+
var ref2 = this.scopeStack[i];
|
|
851
|
+
var flags = ref2.flags;
|
|
852
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT)) {
|
|
851
853
|
return false;
|
|
852
854
|
}
|
|
853
|
-
if (
|
|
854
|
-
return (
|
|
855
|
+
if (flags & SCOPE_FUNCTION) {
|
|
856
|
+
return (flags & SCOPE_ASYNC) > 0;
|
|
855
857
|
}
|
|
856
858
|
}
|
|
857
859
|
return this.inModule && this.options.ecmaVersion >= 13 || this.options.allowAwaitOutsideFunction;
|
|
@@ -859,8 +861,7 @@ prototypeAccessors.canAwait.get = function() {
|
|
|
859
861
|
prototypeAccessors.allowSuper.get = function() {
|
|
860
862
|
var ref2 = this.currentThisScope();
|
|
861
863
|
var flags = ref2.flags;
|
|
862
|
-
|
|
863
|
-
return (flags & SCOPE_SUPER) > 0 || inClassFieldInit || this.options.allowSuperOutsideMethod;
|
|
864
|
+
return (flags & SCOPE_SUPER) > 0 || this.options.allowSuperOutsideMethod;
|
|
864
865
|
};
|
|
865
866
|
prototypeAccessors.allowDirectSuper.get = function() {
|
|
866
867
|
return (this.currentThisScope().flags & SCOPE_DIRECT_SUPER) > 0;
|
|
@@ -869,15 +870,19 @@ prototypeAccessors.treatFunctionsAsVar.get = function() {
|
|
|
869
870
|
return this.treatFunctionsAsVarInScope(this.currentScope());
|
|
870
871
|
};
|
|
871
872
|
prototypeAccessors.allowNewDotTarget.get = function() {
|
|
872
|
-
var
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
873
|
+
for (var i = this.scopeStack.length - 1; i >= 0; i--) {
|
|
874
|
+
var ref2 = this.scopeStack[i];
|
|
875
|
+
var flags = ref2.flags;
|
|
876
|
+
if (flags & (SCOPE_CLASS_STATIC_BLOCK | SCOPE_CLASS_FIELD_INIT) || flags & SCOPE_FUNCTION && !(flags & SCOPE_ARROW)) {
|
|
877
|
+
return true;
|
|
878
|
+
}
|
|
879
|
+
}
|
|
880
|
+
return false;
|
|
876
881
|
};
|
|
877
882
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
878
883
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
879
884
|
};
|
|
880
|
-
Parser.extend = /* @__PURE__ */
|
|
885
|
+
Parser.extend = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function extend() {
|
|
881
886
|
var plugins = [], len = arguments.length;
|
|
882
887
|
while (len--) plugins[len] = arguments[len];
|
|
883
888
|
var cls = this;
|
|
@@ -886,15 +891,15 @@ Parser.extend = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, function e
|
|
|
886
891
|
}
|
|
887
892
|
return cls;
|
|
888
893
|
}, "extend");
|
|
889
|
-
Parser.parse = /* @__PURE__ */
|
|
894
|
+
Parser.parse = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function parse3(input, options) {
|
|
890
895
|
return new this(options, input).parse();
|
|
891
896
|
}, "parse");
|
|
892
|
-
Parser.parseExpressionAt = /* @__PURE__ */
|
|
897
|
+
Parser.parseExpressionAt = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function parseExpressionAt(input, pos, options) {
|
|
893
898
|
var parser = new this(options, input, pos);
|
|
894
899
|
parser.nextToken();
|
|
895
900
|
return parser.parseExpression();
|
|
896
901
|
}, "parseExpressionAt");
|
|
897
|
-
Parser.tokenizer = /* @__PURE__ */
|
|
902
|
+
Parser.tokenizer = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function tokenizer(input, options) {
|
|
898
903
|
return new this(options, input);
|
|
899
904
|
}, "tokenizer");
|
|
900
905
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
@@ -981,7 +986,7 @@ pp$9.expect = function(type) {
|
|
|
981
986
|
pp$9.unexpected = function(pos) {
|
|
982
987
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
983
988
|
};
|
|
984
|
-
var DestructuringErrors = /* @__PURE__ */
|
|
989
|
+
var DestructuringErrors = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function DestructuringErrors2() {
|
|
985
990
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
986
991
|
}, "DestructuringErrors");
|
|
987
992
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -1715,11 +1720,9 @@ pp$8.parseClassField = function(field) {
|
|
|
1715
1720
|
this.raise(field.key.start, "Classes can't have a static field named 'prototype'");
|
|
1716
1721
|
}
|
|
1717
1722
|
if (this.eat(types$1.eq)) {
|
|
1718
|
-
|
|
1719
|
-
var inClassFieldInit = scope.inClassFieldInit;
|
|
1720
|
-
scope.inClassFieldInit = true;
|
|
1723
|
+
this.enterScope(SCOPE_CLASS_FIELD_INIT | SCOPE_SUPER);
|
|
1721
1724
|
field.value = this.parseMaybeAssign();
|
|
1722
|
-
|
|
1725
|
+
this.exitScope();
|
|
1723
1726
|
} else {
|
|
1724
1727
|
field.value = null;
|
|
1725
1728
|
}
|
|
@@ -1798,13 +1801,13 @@ function isPrivateNameConflicted(privateNameMap, element) {
|
|
|
1798
1801
|
return true;
|
|
1799
1802
|
}
|
|
1800
1803
|
}
|
|
1801
|
-
|
|
1804
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isPrivateNameConflicted, "isPrivateNameConflicted");
|
|
1802
1805
|
function checkKeyName(node, name) {
|
|
1803
1806
|
var computed = node.computed;
|
|
1804
1807
|
var key = node.key;
|
|
1805
1808
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
1806
1809
|
}
|
|
1807
|
-
|
|
1810
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, checkKeyName, "checkKeyName");
|
|
1808
1811
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1809
1812
|
if (this.options.ecmaVersion >= 11) {
|
|
1810
1813
|
if (this.eatContextual("as")) {
|
|
@@ -1844,6 +1847,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
1844
1847
|
}
|
|
1845
1848
|
node.specifiers = [];
|
|
1846
1849
|
node.source = null;
|
|
1850
|
+
if (this.options.ecmaVersion >= 16) {
|
|
1851
|
+
node.attributes = [];
|
|
1852
|
+
}
|
|
1847
1853
|
} else {
|
|
1848
1854
|
node.declaration = null;
|
|
1849
1855
|
node.specifiers = this.parseExportSpecifiers(exports);
|
|
@@ -1865,6 +1871,9 @@ pp$8.parseExport = function(node, exports) {
|
|
|
1865
1871
|
}
|
|
1866
1872
|
}
|
|
1867
1873
|
node.source = null;
|
|
1874
|
+
if (this.options.ecmaVersion >= 16) {
|
|
1875
|
+
node.attributes = [];
|
|
1876
|
+
}
|
|
1868
1877
|
}
|
|
1869
1878
|
this.semicolon();
|
|
1870
1879
|
}
|
|
@@ -2330,7 +2339,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
2330
2339
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
2331
2340
|
}
|
|
2332
2341
|
};
|
|
2333
|
-
var TokContext = /* @__PURE__ */
|
|
2342
|
+
var TokContext = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function TokContext2(token, isExpr, preserveSpace, override, generator) {
|
|
2334
2343
|
this.token = token;
|
|
2335
2344
|
this.isExpr = !!isExpr;
|
|
2336
2345
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -2720,11 +2729,11 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
|
|
|
2720
2729
|
function isLocalVariableAccess(node) {
|
|
2721
2730
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
2722
2731
|
}
|
|
2723
|
-
|
|
2732
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isLocalVariableAccess, "isLocalVariableAccess");
|
|
2724
2733
|
function isPrivateFieldAccess(node) {
|
|
2725
2734
|
return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
|
|
2726
2735
|
}
|
|
2727
|
-
|
|
2736
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isPrivateFieldAccess, "isPrivateFieldAccess");
|
|
2728
2737
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2729
2738
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2730
2739
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -3226,9 +3235,10 @@ pp$5.parseProperty = function(isPattern, refDestructuringErrors) {
|
|
|
3226
3235
|
return this.finishNode(prop, "Property");
|
|
3227
3236
|
};
|
|
3228
3237
|
pp$5.parseGetterSetter = function(prop) {
|
|
3229
|
-
|
|
3238
|
+
var kind = prop.key.name;
|
|
3230
3239
|
this.parsePropertyName(prop);
|
|
3231
3240
|
prop.value = this.parseMethod(false);
|
|
3241
|
+
prop.kind = kind;
|
|
3232
3242
|
var paramCount = prop.kind === "get" ? 0 : 1;
|
|
3233
3243
|
if (prop.value.params.length !== paramCount) {
|
|
3234
3244
|
var start = prop.value.start;
|
|
@@ -3254,9 +3264,9 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3254
3264
|
if (isPattern) {
|
|
3255
3265
|
this.unexpected();
|
|
3256
3266
|
}
|
|
3257
|
-
prop.kind = "init";
|
|
3258
3267
|
prop.method = true;
|
|
3259
3268
|
prop.value = this.parseMethod(isGenerator, isAsync);
|
|
3269
|
+
prop.kind = "init";
|
|
3260
3270
|
} else if (!isPattern && !containsEsc && this.options.ecmaVersion >= 5 && !prop.computed && prop.key.type === "Identifier" && (prop.key.name === "get" || prop.key.name === "set") && (this.type !== types$1.comma && this.type !== types$1.braceR && this.type !== types$1.eq)) {
|
|
3261
3271
|
if (isGenerator || isAsync) {
|
|
3262
3272
|
this.unexpected();
|
|
@@ -3270,7 +3280,6 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3270
3280
|
if (prop.key.name === "await" && !this.awaitIdentPos) {
|
|
3271
3281
|
this.awaitIdentPos = startPos;
|
|
3272
3282
|
}
|
|
3273
|
-
prop.kind = "init";
|
|
3274
3283
|
if (isPattern) {
|
|
3275
3284
|
prop.value = this.parseMaybeDefault(startPos, startLoc, this.copyNode(prop.key));
|
|
3276
3285
|
} else if (this.type === types$1.eq && refDestructuringErrors) {
|
|
@@ -3281,6 +3290,7 @@ pp$5.parsePropertyValue = function(prop, isPattern, isGenerator, isAsync, startP
|
|
|
3281
3290
|
} else {
|
|
3282
3291
|
prop.value = this.copyNode(prop.key);
|
|
3283
3292
|
}
|
|
3293
|
+
prop.kind = "init";
|
|
3284
3294
|
prop.shorthand = true;
|
|
3285
3295
|
} else {
|
|
3286
3296
|
this.unexpected();
|
|
@@ -3430,7 +3440,7 @@ pp$5.checkUnreserved = function(ref2) {
|
|
|
3430
3440
|
if (this.inAsync && name === "await") {
|
|
3431
3441
|
this.raiseRecoverable(start, "Cannot use 'await' as identifier inside an async function");
|
|
3432
3442
|
}
|
|
3433
|
-
if (this.currentThisScope().
|
|
3443
|
+
if (!(this.currentThisScope().flags & SCOPE_VAR) && name === "arguments") {
|
|
3434
3444
|
this.raiseRecoverable(start, "Cannot use 'arguments' in class field initializer");
|
|
3435
3445
|
}
|
|
3436
3446
|
if (this.inClassStaticBlock && (name === "arguments" || name === "await")) {
|
|
@@ -3523,6 +3533,9 @@ var pp$4 = Parser.prototype;
|
|
|
3523
3533
|
pp$4.raise = function(pos, message) {
|
|
3524
3534
|
var loc = getLineInfo(this.input, pos);
|
|
3525
3535
|
message += " (" + loc.line + ":" + loc.column + ")";
|
|
3536
|
+
if (this.sourceFile) {
|
|
3537
|
+
message += " in " + this.sourceFile;
|
|
3538
|
+
}
|
|
3526
3539
|
var err = new SyntaxError(message);
|
|
3527
3540
|
err.pos = pos;
|
|
3528
3541
|
err.loc = loc;
|
|
@@ -3536,12 +3549,11 @@ pp$4.curPosition = function() {
|
|
|
3536
3549
|
}
|
|
3537
3550
|
};
|
|
3538
3551
|
var pp$3 = Parser.prototype;
|
|
3539
|
-
var Scope = /* @__PURE__ */
|
|
3552
|
+
var Scope = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function Scope2(flags) {
|
|
3540
3553
|
this.flags = flags;
|
|
3541
3554
|
this.var = [];
|
|
3542
3555
|
this.lexical = [];
|
|
3543
3556
|
this.functions = [];
|
|
3544
|
-
this.inClassFieldInit = false;
|
|
3545
3557
|
}, "Scope");
|
|
3546
3558
|
pp$3.enterScope = function(flags) {
|
|
3547
3559
|
this.scopeStack.push(new Scope(flags));
|
|
@@ -3603,7 +3615,7 @@ pp$3.currentScope = function() {
|
|
|
3603
3615
|
pp$3.currentVarScope = function() {
|
|
3604
3616
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
3605
3617
|
var scope = this.scopeStack[i];
|
|
3606
|
-
if (scope.flags & SCOPE_VAR) {
|
|
3618
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK)) {
|
|
3607
3619
|
return scope;
|
|
3608
3620
|
}
|
|
3609
3621
|
}
|
|
@@ -3611,12 +3623,12 @@ pp$3.currentVarScope = function() {
|
|
|
3611
3623
|
pp$3.currentThisScope = function() {
|
|
3612
3624
|
for (var i = this.scopeStack.length - 1; ; i--) {
|
|
3613
3625
|
var scope = this.scopeStack[i];
|
|
3614
|
-
if (scope.flags & SCOPE_VAR && !(scope.flags & SCOPE_ARROW)) {
|
|
3626
|
+
if (scope.flags & (SCOPE_VAR | SCOPE_CLASS_FIELD_INIT | SCOPE_CLASS_STATIC_BLOCK) && !(scope.flags & SCOPE_ARROW)) {
|
|
3615
3627
|
return scope;
|
|
3616
3628
|
}
|
|
3617
3629
|
}
|
|
3618
3630
|
};
|
|
3619
|
-
var Node = /* @__PURE__ */
|
|
3631
|
+
var Node = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function Node2(parser, pos, loc) {
|
|
3620
3632
|
this.type = "";
|
|
3621
3633
|
this.start = pos;
|
|
3622
3634
|
this.end = 0;
|
|
@@ -3648,7 +3660,7 @@ function finishNodeAt(node, type, pos, loc) {
|
|
|
3648
3660
|
}
|
|
3649
3661
|
return node;
|
|
3650
3662
|
}
|
|
3651
|
-
|
|
3663
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, finishNodeAt, "finishNodeAt");
|
|
3652
3664
|
pp$2.finishNode = function(node, type) {
|
|
3653
3665
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
3654
3666
|
};
|
|
@@ -3716,7 +3728,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
3716
3728
|
d2.nonBinary.sc = d2.nonBinary.Script;
|
|
3717
3729
|
d2.nonBinary.scx = d2.nonBinary.Script_Extensions;
|
|
3718
3730
|
}
|
|
3719
|
-
|
|
3731
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, buildUnicodeData, "buildUnicodeData");
|
|
3720
3732
|
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3721
3733
|
ecmaVersion = list[i];
|
|
3722
3734
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3725,11 +3737,11 @@ var ecmaVersion;
|
|
|
3725
3737
|
var i;
|
|
3726
3738
|
var list;
|
|
3727
3739
|
var pp$1 = Parser.prototype;
|
|
3728
|
-
var BranchID = /* @__PURE__ */
|
|
3740
|
+
var BranchID = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function BranchID2(parent, base) {
|
|
3729
3741
|
this.parent = parent;
|
|
3730
3742
|
this.base = base || this;
|
|
3731
3743
|
}, "BranchID");
|
|
3732
|
-
BranchID.prototype.separatedFrom = /* @__PURE__ */
|
|
3744
|
+
BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function separatedFrom(alt) {
|
|
3733
3745
|
for (var self = this; self; self = self.parent) {
|
|
3734
3746
|
for (var other = alt; other; other = other.parent) {
|
|
3735
3747
|
if (self.base === other.base && self !== other) {
|
|
@@ -3739,10 +3751,10 @@ BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call
|
|
|
3739
3751
|
}
|
|
3740
3752
|
return false;
|
|
3741
3753
|
}, "separatedFrom");
|
|
3742
|
-
BranchID.prototype.sibling = /* @__PURE__ */
|
|
3754
|
+
BranchID.prototype.sibling = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function sibling() {
|
|
3743
3755
|
return new BranchID(this.parent, this.base);
|
|
3744
3756
|
}, "sibling");
|
|
3745
|
-
var RegExpValidationState = /* @__PURE__ */
|
|
3757
|
+
var RegExpValidationState = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function RegExpValidationState2(parser) {
|
|
3746
3758
|
this.parser = parser;
|
|
3747
3759
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3748
3760
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -3762,7 +3774,7 @@ var RegExpValidationState = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0
|
|
|
3762
3774
|
this.backReferenceNames = [];
|
|
3763
3775
|
this.branchID = null;
|
|
3764
3776
|
}, "RegExpValidationState");
|
|
3765
|
-
RegExpValidationState.prototype.reset = /* @__PURE__ */
|
|
3777
|
+
RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function reset(start, pattern, flags) {
|
|
3766
3778
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3767
3779
|
var unicode = flags.indexOf("u") !== -1;
|
|
3768
3780
|
this.start = start | 0;
|
|
@@ -3778,10 +3790,10 @@ RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name
|
|
|
3778
3790
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3779
3791
|
}
|
|
3780
3792
|
}, "reset");
|
|
3781
|
-
RegExpValidationState.prototype.raise = /* @__PURE__ */
|
|
3793
|
+
RegExpValidationState.prototype.raise = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function raise(message) {
|
|
3782
3794
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
3783
3795
|
}, "raise");
|
|
3784
|
-
RegExpValidationState.prototype.at = /* @__PURE__ */
|
|
3796
|
+
RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function at(i, forceU) {
|
|
3785
3797
|
if (forceU === void 0) forceU = false;
|
|
3786
3798
|
var s = this.source;
|
|
3787
3799
|
var l2 = s.length;
|
|
@@ -3795,7 +3807,7 @@ RegExpValidationState.prototype.at = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.ca
|
|
|
3795
3807
|
var next = s.charCodeAt(i + 1);
|
|
3796
3808
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
3797
3809
|
}, "at");
|
|
3798
|
-
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */
|
|
3810
|
+
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function nextIndex(i, forceU) {
|
|
3799
3811
|
if (forceU === void 0) forceU = false;
|
|
3800
3812
|
var s = this.source;
|
|
3801
3813
|
var l2 = s.length;
|
|
@@ -3808,19 +3820,19 @@ RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunk2HPUSEOWcjs.__
|
|
|
3808
3820
|
}
|
|
3809
3821
|
return i + 2;
|
|
3810
3822
|
}, "nextIndex");
|
|
3811
|
-
RegExpValidationState.prototype.current = /* @__PURE__ */
|
|
3823
|
+
RegExpValidationState.prototype.current = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function current(forceU) {
|
|
3812
3824
|
if (forceU === void 0) forceU = false;
|
|
3813
3825
|
return this.at(this.pos, forceU);
|
|
3814
3826
|
}, "current");
|
|
3815
|
-
RegExpValidationState.prototype.lookahead = /* @__PURE__ */
|
|
3827
|
+
RegExpValidationState.prototype.lookahead = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function lookahead(forceU) {
|
|
3816
3828
|
if (forceU === void 0) forceU = false;
|
|
3817
3829
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
3818
3830
|
}, "lookahead");
|
|
3819
|
-
RegExpValidationState.prototype.advance = /* @__PURE__ */
|
|
3831
|
+
RegExpValidationState.prototype.advance = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function advance(forceU) {
|
|
3820
3832
|
if (forceU === void 0) forceU = false;
|
|
3821
3833
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
3822
3834
|
}, "advance");
|
|
3823
|
-
RegExpValidationState.prototype.eat = /* @__PURE__ */
|
|
3835
|
+
RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function eat(ch, forceU) {
|
|
3824
3836
|
if (forceU === void 0) forceU = false;
|
|
3825
3837
|
if (this.current(forceU) === ch) {
|
|
3826
3838
|
this.advance(forceU);
|
|
@@ -3828,7 +3840,7 @@ RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.c
|
|
|
3828
3840
|
}
|
|
3829
3841
|
return false;
|
|
3830
3842
|
}, "eat");
|
|
3831
|
-
RegExpValidationState.prototype.eatChars = /* @__PURE__ */
|
|
3843
|
+
RegExpValidationState.prototype.eatChars = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function eatChars(chs, forceU) {
|
|
3832
3844
|
if (forceU === void 0) forceU = false;
|
|
3833
3845
|
var pos = this.pos;
|
|
3834
3846
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
@@ -3872,7 +3884,7 @@ function hasProp(obj) {
|
|
|
3872
3884
|
}
|
|
3873
3885
|
return false;
|
|
3874
3886
|
}
|
|
3875
|
-
|
|
3887
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, hasProp, "hasProp");
|
|
3876
3888
|
pp$1.validateRegExpPattern = function(state) {
|
|
3877
3889
|
this.regexp_pattern(state);
|
|
3878
3890
|
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
@@ -4190,7 +4202,7 @@ pp$1.regexp_eatModifiers = function(state) {
|
|
|
4190
4202
|
function isRegularExpressionModifier(ch) {
|
|
4191
4203
|
return ch === 105 || ch === 109 || ch === 115;
|
|
4192
4204
|
}
|
|
4193
|
-
|
|
4205
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isRegularExpressionModifier, "isRegularExpressionModifier");
|
|
4194
4206
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
4195
4207
|
return state.eat(
|
|
4196
4208
|
46
|
|
@@ -4215,7 +4227,7 @@ pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
|
4215
4227
|
function isSyntaxCharacter(ch) {
|
|
4216
4228
|
return ch === 36 || ch >= 40 && ch <= 43 || ch === 46 || ch === 63 || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
4217
4229
|
}
|
|
4218
|
-
|
|
4230
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isSyntaxCharacter, "isSyntaxCharacter");
|
|
4219
4231
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
4220
4232
|
var start = state.pos;
|
|
4221
4233
|
var ch = 0;
|
|
@@ -4306,7 +4318,7 @@ pp$1.regexp_eatRegExpIdentifierStart = function(state) {
|
|
|
4306
4318
|
function isRegExpIdentifierStart(ch) {
|
|
4307
4319
|
return isIdentifierStart(ch, true) || ch === 36 || ch === 95;
|
|
4308
4320
|
}
|
|
4309
|
-
|
|
4321
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isRegExpIdentifierStart, "isRegExpIdentifierStart");
|
|
4310
4322
|
pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
4311
4323
|
var start = state.pos;
|
|
4312
4324
|
var forceU = this.options.ecmaVersion >= 11;
|
|
@@ -4325,7 +4337,7 @@ pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
|
4325
4337
|
function isRegExpIdentifierPart(ch) {
|
|
4326
4338
|
return isIdentifierChar(ch, true) || ch === 36 || ch === 95 || ch === 8204 || ch === 8205;
|
|
4327
4339
|
}
|
|
4328
|
-
|
|
4340
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isRegExpIdentifierPart, "isRegExpIdentifierPart");
|
|
4329
4341
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
4330
4342
|
if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) {
|
|
4331
4343
|
return true;
|
|
@@ -4433,7 +4445,7 @@ pp$1.regexp_eatControlLetter = function(state) {
|
|
|
4433
4445
|
function isControlLetter(ch) {
|
|
4434
4446
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
|
|
4435
4447
|
}
|
|
4436
|
-
|
|
4448
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isControlLetter, "isControlLetter");
|
|
4437
4449
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4438
4450
|
if (forceU === void 0) forceU = false;
|
|
4439
4451
|
var start = state.pos;
|
|
@@ -4483,7 +4495,7 @@ pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
|
4483
4495
|
function isValidUnicode(ch) {
|
|
4484
4496
|
return ch >= 0 && ch <= 1114111;
|
|
4485
4497
|
}
|
|
4486
|
-
|
|
4498
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isValidUnicode, "isValidUnicode");
|
|
4487
4499
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4488
4500
|
if (state.switchU) {
|
|
4489
4501
|
if (this.regexp_eatSyntaxCharacter(state)) {
|
|
@@ -4552,7 +4564,7 @@ pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
|
4552
4564
|
function isCharacterClassEscape(ch) {
|
|
4553
4565
|
return ch === 100 || ch === 68 || ch === 115 || ch === 83 || ch === 119 || ch === 87;
|
|
4554
4566
|
}
|
|
4555
|
-
|
|
4567
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isCharacterClassEscape, "isCharacterClassEscape");
|
|
4556
4568
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4557
4569
|
var start = state.pos;
|
|
4558
4570
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(
|
|
@@ -4602,7 +4614,7 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
|
4602
4614
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4603
4615
|
return isControlLetter(ch) || ch === 95;
|
|
4604
4616
|
}
|
|
4605
|
-
|
|
4617
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
|
|
4606
4618
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
4607
4619
|
var ch = 0;
|
|
4608
4620
|
state.lastStringValue = "";
|
|
@@ -4615,7 +4627,7 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
|
4615
4627
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4616
4628
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch);
|
|
4617
4629
|
}
|
|
4618
|
-
|
|
4630
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
|
|
4619
4631
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4620
4632
|
return this.regexp_eatUnicodePropertyValue(state);
|
|
4621
4633
|
};
|
|
@@ -4907,11 +4919,11 @@ pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
|
4907
4919
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
4908
4920
|
return ch === 33 || ch >= 35 && ch <= 38 || ch >= 42 && ch <= 44 || ch === 46 || ch >= 58 && ch <= 64 || ch === 94 || ch === 96 || ch === 126;
|
|
4909
4921
|
}
|
|
4910
|
-
|
|
4922
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isClassSetReservedDoublePunctuatorCharacter, "isClassSetReservedDoublePunctuatorCharacter");
|
|
4911
4923
|
function isClassSetSyntaxCharacter(ch) {
|
|
4912
4924
|
return ch === 40 || ch === 41 || ch === 45 || ch === 47 || ch >= 91 && ch <= 93 || ch >= 123 && ch <= 125;
|
|
4913
4925
|
}
|
|
4914
|
-
|
|
4926
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isClassSetSyntaxCharacter, "isClassSetSyntaxCharacter");
|
|
4915
4927
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
4916
4928
|
var ch = state.current();
|
|
4917
4929
|
if (isClassSetReservedPunctuator(ch)) {
|
|
@@ -4924,7 +4936,7 @@ pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
|
4924
4936
|
function isClassSetReservedPunctuator(ch) {
|
|
4925
4937
|
return ch === 33 || ch === 35 || ch === 37 || ch === 38 || ch === 44 || ch === 45 || ch >= 58 && ch <= 62 || ch === 64 || ch === 96 || ch === 126;
|
|
4926
4938
|
}
|
|
4927
|
-
|
|
4939
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isClassSetReservedPunctuator, "isClassSetReservedPunctuator");
|
|
4928
4940
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
4929
4941
|
var ch = state.current();
|
|
4930
4942
|
if (isDecimalDigit(ch) || ch === 95) {
|
|
@@ -4963,7 +4975,7 @@ pp$1.regexp_eatDecimalDigits = function(state) {
|
|
|
4963
4975
|
function isDecimalDigit(ch) {
|
|
4964
4976
|
return ch >= 48 && ch <= 57;
|
|
4965
4977
|
}
|
|
4966
|
-
|
|
4978
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isDecimalDigit, "isDecimalDigit");
|
|
4967
4979
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
4968
4980
|
var start = state.pos;
|
|
4969
4981
|
var ch = 0;
|
|
@@ -4977,7 +4989,7 @@ pp$1.regexp_eatHexDigits = function(state) {
|
|
|
4977
4989
|
function isHexDigit(ch) {
|
|
4978
4990
|
return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
|
|
4979
4991
|
}
|
|
4980
|
-
|
|
4992
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isHexDigit, "isHexDigit");
|
|
4981
4993
|
function hexToInt(ch) {
|
|
4982
4994
|
if (ch >= 65 && ch <= 70) {
|
|
4983
4995
|
return 10 + (ch - 65);
|
|
@@ -4987,7 +4999,7 @@ function hexToInt(ch) {
|
|
|
4987
4999
|
}
|
|
4988
5000
|
return ch - 48;
|
|
4989
5001
|
}
|
|
4990
|
-
|
|
5002
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, hexToInt, "hexToInt");
|
|
4991
5003
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
4992
5004
|
if (this.regexp_eatOctalDigit(state)) {
|
|
4993
5005
|
var n1 = state.lastIntValue;
|
|
@@ -5018,7 +5030,7 @@ pp$1.regexp_eatOctalDigit = function(state) {
|
|
|
5018
5030
|
function isOctalDigit(ch) {
|
|
5019
5031
|
return ch >= 48 && ch <= 55;
|
|
5020
5032
|
}
|
|
5021
|
-
|
|
5033
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isOctalDigit, "isOctalDigit");
|
|
5022
5034
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
5023
5035
|
var start = state.pos;
|
|
5024
5036
|
state.lastIntValue = 0;
|
|
@@ -5033,7 +5045,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
5033
5045
|
}
|
|
5034
5046
|
return true;
|
|
5035
5047
|
};
|
|
5036
|
-
var Token = /* @__PURE__ */
|
|
5048
|
+
var Token = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function Token2(p) {
|
|
5037
5049
|
this.type = p.type;
|
|
5038
5050
|
this.value = p.value;
|
|
5039
5051
|
this.start = p.start;
|
|
@@ -5067,7 +5079,7 @@ if (typeof Symbol !== "undefined") {
|
|
|
5067
5079
|
pp[Symbol.iterator] = function() {
|
|
5068
5080
|
var this$1$1 = this;
|
|
5069
5081
|
return {
|
|
5070
|
-
next: /* @__PURE__ */
|
|
5082
|
+
next: /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, function() {
|
|
5071
5083
|
var token = this$1$1.getToken();
|
|
5072
5084
|
return {
|
|
5073
5085
|
done: token.type === types$1.eof,
|
|
@@ -5541,14 +5553,14 @@ function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
|
5541
5553
|
}
|
|
5542
5554
|
return parseFloat(str.replace(/_/g, ""));
|
|
5543
5555
|
}
|
|
5544
|
-
|
|
5556
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, stringToNumber, "stringToNumber");
|
|
5545
5557
|
function stringToBigInt(str) {
|
|
5546
5558
|
if (typeof BigInt !== "function") {
|
|
5547
5559
|
return null;
|
|
5548
5560
|
}
|
|
5549
5561
|
return BigInt(str.replace(/_/g, ""));
|
|
5550
5562
|
}
|
|
5551
|
-
|
|
5563
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, stringToBigInt, "stringToBigInt");
|
|
5552
5564
|
pp.readRadixNumber = function(radix) {
|
|
5553
5565
|
var start = this.pos;
|
|
5554
5566
|
this.pos += 2;
|
|
@@ -5880,7 +5892,7 @@ pp.readWord = function() {
|
|
|
5880
5892
|
}
|
|
5881
5893
|
return this.finishToken(type, word);
|
|
5882
5894
|
};
|
|
5883
|
-
var version = "8.14.
|
|
5895
|
+
var version = "8.14.1";
|
|
5884
5896
|
Parser.acorn = {
|
|
5885
5897
|
Parser,
|
|
5886
5898
|
version,
|
|
@@ -5916,7 +5928,7 @@ var BUILTIN_MODULES = new Set(_module.builtinModules);
|
|
|
5916
5928
|
function normalizeSlash(path2) {
|
|
5917
5929
|
return path2.replace(/\\/g, "/");
|
|
5918
5930
|
}
|
|
5919
|
-
|
|
5931
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, normalizeSlash, "normalizeSlash");
|
|
5920
5932
|
var own$1 = {}.hasOwnProperty;
|
|
5921
5933
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
5922
5934
|
var kTypes = /* @__PURE__ */ new Set([
|
|
@@ -5935,7 +5947,7 @@ var codes = {};
|
|
|
5935
5947
|
function formatList(array, type = "and") {
|
|
5936
5948
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
5937
5949
|
}
|
|
5938
|
-
|
|
5950
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, formatList, "formatList");
|
|
5939
5951
|
var messages = /* @__PURE__ */ new Map();
|
|
5940
5952
|
var nodeInternalPrefix = "__node_internal_";
|
|
5941
5953
|
var userStackTraceLimit;
|
|
@@ -6142,7 +6154,7 @@ function createError(sym, value, constructor) {
|
|
|
6142
6154
|
messages.set(sym, value);
|
|
6143
6155
|
return makeNodeErrorWithCode(constructor, sym);
|
|
6144
6156
|
}
|
|
6145
|
-
|
|
6157
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, createError, "createError");
|
|
6146
6158
|
function makeNodeErrorWithCode(Base, key) {
|
|
6147
6159
|
return NodeError;
|
|
6148
6160
|
function NodeError(...parameters) {
|
|
@@ -6174,9 +6186,9 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
6174
6186
|
error.code = key;
|
|
6175
6187
|
return error;
|
|
6176
6188
|
}
|
|
6177
|
-
|
|
6189
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, NodeError, "NodeError");
|
|
6178
6190
|
}
|
|
6179
|
-
|
|
6191
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
6180
6192
|
function isErrorStackTraceLimitWritable() {
|
|
6181
6193
|
try {
|
|
6182
6194
|
if (_v82.default.startupSnapshot.isBuildingSnapshot()) {
|
|
@@ -6190,13 +6202,13 @@ function isErrorStackTraceLimitWritable() {
|
|
|
6190
6202
|
}
|
|
6191
6203
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
6192
6204
|
}
|
|
6193
|
-
|
|
6205
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
6194
6206
|
function hideStackFrames(wrappedFunction) {
|
|
6195
6207
|
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
6196
6208
|
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
6197
6209
|
return wrappedFunction;
|
|
6198
6210
|
}
|
|
6199
|
-
|
|
6211
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, hideStackFrames, "hideStackFrames");
|
|
6200
6212
|
var captureLargerStackTrace = hideStackFrames(
|
|
6201
6213
|
/**
|
|
6202
6214
|
* @param {Error} error
|
|
@@ -6236,7 +6248,7 @@ function getMessage(key, parameters, self) {
|
|
|
6236
6248
|
parameters.unshift(message);
|
|
6237
6249
|
return Reflect.apply(_util.format, null, parameters);
|
|
6238
6250
|
}
|
|
6239
|
-
|
|
6251
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getMessage, "getMessage");
|
|
6240
6252
|
function determineSpecificType(value) {
|
|
6241
6253
|
if (value === null || value === void 0) {
|
|
6242
6254
|
return String(value);
|
|
@@ -6256,7 +6268,7 @@ function determineSpecificType(value) {
|
|
|
6256
6268
|
}
|
|
6257
6269
|
return `type ${typeof value} (${inspected})`;
|
|
6258
6270
|
}
|
|
6259
|
-
|
|
6271
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, determineSpecificType, "determineSpecificType");
|
|
6260
6272
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
6261
6273
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
6262
6274
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -6324,7 +6336,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6324
6336
|
cache.set(jsonPath, result);
|
|
6325
6337
|
return result;
|
|
6326
6338
|
}
|
|
6327
|
-
|
|
6339
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, read, "read");
|
|
6328
6340
|
function getPackageScopeConfig(resolved) {
|
|
6329
6341
|
let packageJSONUrl = new URL("package.json", resolved);
|
|
6330
6342
|
while (true) {
|
|
@@ -6351,11 +6363,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
6351
6363
|
type: "none"
|
|
6352
6364
|
};
|
|
6353
6365
|
}
|
|
6354
|
-
|
|
6366
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getPackageScopeConfig, "getPackageScopeConfig");
|
|
6355
6367
|
function getPackageType(url) {
|
|
6356
6368
|
return getPackageScopeConfig(url).type;
|
|
6357
6369
|
}
|
|
6358
|
-
|
|
6370
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getPackageType, "getPackageType");
|
|
6359
6371
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
6360
6372
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
6361
6373
|
var extensionFormatMap = {
|
|
@@ -6372,7 +6384,7 @@ function mimeToFormat(mime) {
|
|
|
6372
6384
|
if (mime === "application/json") return "json";
|
|
6373
6385
|
return null;
|
|
6374
6386
|
}
|
|
6375
|
-
|
|
6387
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, mimeToFormat, "mimeToFormat");
|
|
6376
6388
|
var protocolHandlers = {
|
|
6377
6389
|
// @ts-expect-error: hush.
|
|
6378
6390
|
__proto__: null,
|
|
@@ -6390,7 +6402,7 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6390
6402
|
) || [null, null, null];
|
|
6391
6403
|
return mimeToFormat(mime);
|
|
6392
6404
|
}
|
|
6393
|
-
|
|
6405
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6394
6406
|
function extname2(url) {
|
|
6395
6407
|
const pathname = url.pathname;
|
|
6396
6408
|
let index = pathname.length;
|
|
@@ -6405,7 +6417,7 @@ function extname2(url) {
|
|
|
6405
6417
|
}
|
|
6406
6418
|
return "";
|
|
6407
6419
|
}
|
|
6408
|
-
|
|
6420
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, extname2, "extname");
|
|
6409
6421
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6410
6422
|
const value = extname2(url);
|
|
6411
6423
|
if (value === ".js") {
|
|
@@ -6430,10 +6442,10 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6430
6442
|
const filepath = _url.fileURLToPath.call(void 0, url);
|
|
6431
6443
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
6432
6444
|
}
|
|
6433
|
-
|
|
6445
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
6434
6446
|
function getHttpProtocolModuleFormat() {
|
|
6435
6447
|
}
|
|
6436
|
-
|
|
6448
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
6437
6449
|
function defaultGetFormatWithoutErrors(url, context) {
|
|
6438
6450
|
const protocol = url.protocol;
|
|
6439
6451
|
if (!hasOwnProperty2.call(protocolHandlers, protocol)) {
|
|
@@ -6441,7 +6453,7 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
6441
6453
|
}
|
|
6442
6454
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
6443
6455
|
}
|
|
6444
|
-
|
|
6456
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
6445
6457
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
6446
6458
|
var {
|
|
6447
6459
|
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
@@ -6474,7 +6486,7 @@ function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, i
|
|
|
6474
6486
|
"DEP0166"
|
|
6475
6487
|
);
|
|
6476
6488
|
}
|
|
6477
|
-
|
|
6489
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
|
|
6478
6490
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
6479
6491
|
if (_process3.default.noDeprecation) {
|
|
6480
6492
|
return;
|
|
@@ -6504,20 +6516,20 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6504
6516
|
);
|
|
6505
6517
|
}
|
|
6506
6518
|
}
|
|
6507
|
-
|
|
6519
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6508
6520
|
function tryStatSync(path2) {
|
|
6509
6521
|
try {
|
|
6510
6522
|
return _fs.statSync.call(void 0, path2);
|
|
6511
6523
|
} catch (e3) {
|
|
6512
6524
|
}
|
|
6513
6525
|
}
|
|
6514
|
-
|
|
6526
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, tryStatSync, "tryStatSync");
|
|
6515
6527
|
function fileExists(url) {
|
|
6516
6528
|
const stats = _fs.statSync.call(void 0, url, { throwIfNoEntry: false });
|
|
6517
6529
|
const isFile = stats ? stats.isFile() : void 0;
|
|
6518
6530
|
return isFile === null || isFile === void 0 ? false : isFile;
|
|
6519
6531
|
}
|
|
6520
|
-
|
|
6532
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, fileExists, "fileExists");
|
|
6521
6533
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
6522
6534
|
let guess;
|
|
6523
6535
|
if (packageConfig.main !== void 0) {
|
|
@@ -6563,7 +6575,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
6563
6575
|
_url.fileURLToPath.call(void 0, base)
|
|
6564
6576
|
);
|
|
6565
6577
|
}
|
|
6566
|
-
|
|
6578
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, legacyMainResolve, "legacyMainResolve");
|
|
6567
6579
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
6568
6580
|
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
6569
6581
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6610,7 +6622,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6610
6622
|
}
|
|
6611
6623
|
return resolved;
|
|
6612
6624
|
}
|
|
6613
|
-
|
|
6625
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, finalizeResolution, "finalizeResolution");
|
|
6614
6626
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
6615
6627
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
6616
6628
|
specifier,
|
|
@@ -6618,7 +6630,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
6618
6630
|
_url.fileURLToPath.call(void 0, base)
|
|
6619
6631
|
);
|
|
6620
6632
|
}
|
|
6621
|
-
|
|
6633
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, importNotDefined, "importNotDefined");
|
|
6622
6634
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
6623
6635
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
6624
6636
|
_url.fileURLToPath.call(void 0, new (0, _url.URL)(".", packageJsonUrl)),
|
|
@@ -6626,7 +6638,7 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
6626
6638
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6627
6639
|
);
|
|
6628
6640
|
}
|
|
6629
|
-
|
|
6641
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, exportsNotFound, "exportsNotFound");
|
|
6630
6642
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
6631
6643
|
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${_url.fileURLToPath.call(void 0, packageJsonUrl)}`;
|
|
6632
6644
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6635,7 +6647,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
6635
6647
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6636
6648
|
);
|
|
6637
6649
|
}
|
|
6638
|
-
|
|
6650
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, throwInvalidSubpath, "throwInvalidSubpath");
|
|
6639
6651
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
6640
6652
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
6641
6653
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
@@ -6646,7 +6658,7 @@ function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
|
6646
6658
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6647
6659
|
);
|
|
6648
6660
|
}
|
|
6649
|
-
|
|
6661
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, invalidPackageTarget, "invalidPackageTarget");
|
|
6650
6662
|
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
6651
6663
|
if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
|
|
6652
6664
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
@@ -6732,13 +6744,13 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
6732
6744
|
}
|
|
6733
6745
|
return new (0, _url.URL)(subpath, resolved);
|
|
6734
6746
|
}
|
|
6735
|
-
|
|
6747
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolvePackageTargetString, "resolvePackageTargetString");
|
|
6736
6748
|
function isArrayIndex(key) {
|
|
6737
6749
|
const keyNumber = Number(key);
|
|
6738
6750
|
if (`${keyNumber}` !== key) return false;
|
|
6739
6751
|
return keyNumber >= 0 && keyNumber < 4294967295;
|
|
6740
6752
|
}
|
|
6741
|
-
|
|
6753
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isArrayIndex, "isArrayIndex");
|
|
6742
6754
|
function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) {
|
|
6743
6755
|
if (typeof target === "string") {
|
|
6744
6756
|
return resolvePackageTargetString(
|
|
@@ -6843,7 +6855,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
6843
6855
|
base
|
|
6844
6856
|
);
|
|
6845
6857
|
}
|
|
6846
|
-
|
|
6858
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolvePackageTarget, "resolvePackageTarget");
|
|
6847
6859
|
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
6848
6860
|
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
6849
6861
|
if (typeof exports !== "object" || exports === null) return false;
|
|
@@ -6866,7 +6878,7 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
6866
6878
|
}
|
|
6867
6879
|
return isConditionalSugar;
|
|
6868
6880
|
}
|
|
6869
|
-
|
|
6881
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isConditionalExportsMainSugar, "isConditionalExportsMainSugar");
|
|
6870
6882
|
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
6871
6883
|
if (_process3.default.noDeprecation) {
|
|
6872
6884
|
return;
|
|
@@ -6880,7 +6892,7 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
6880
6892
|
"DEP0155"
|
|
6881
6893
|
);
|
|
6882
6894
|
}
|
|
6883
|
-
|
|
6895
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
|
|
6884
6896
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
6885
6897
|
let exports = packageConfig.exports;
|
|
6886
6898
|
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
@@ -6952,7 +6964,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
6952
6964
|
}
|
|
6953
6965
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
6954
6966
|
}
|
|
6955
|
-
|
|
6967
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, packageExportsResolve, "packageExportsResolve");
|
|
6956
6968
|
function patternKeyCompare(a, b) {
|
|
6957
6969
|
const aPatternIndex = a.indexOf("*");
|
|
6958
6970
|
const bPatternIndex = b.indexOf("*");
|
|
@@ -6966,7 +6978,7 @@ function patternKeyCompare(a, b) {
|
|
|
6966
6978
|
if (b.length > a.length) return 1;
|
|
6967
6979
|
return 0;
|
|
6968
6980
|
}
|
|
6969
|
-
|
|
6981
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, patternKeyCompare, "patternKeyCompare");
|
|
6970
6982
|
function packageImportsResolve(name, base, conditions) {
|
|
6971
6983
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
6972
6984
|
const reason = "is not a valid internal imports specifier name";
|
|
@@ -7034,7 +7046,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
7034
7046
|
}
|
|
7035
7047
|
throw importNotDefined(name, packageJsonUrl, base);
|
|
7036
7048
|
}
|
|
7037
|
-
|
|
7049
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, packageImportsResolve, "packageImportsResolve");
|
|
7038
7050
|
function parsePackageName(specifier, base) {
|
|
7039
7051
|
let separatorIndex = specifier.indexOf("/");
|
|
7040
7052
|
let validPackageName = true;
|
|
@@ -7061,7 +7073,7 @@ function parsePackageName(specifier, base) {
|
|
|
7061
7073
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
7062
7074
|
return { packageName, packageSubpath, isScoped };
|
|
7063
7075
|
}
|
|
7064
|
-
|
|
7076
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, parsePackageName, "parsePackageName");
|
|
7065
7077
|
function packageResolve(specifier, base, conditions) {
|
|
7066
7078
|
if (_module.builtinModules.includes(specifier)) {
|
|
7067
7079
|
return new (0, _url.URL)("node:" + specifier);
|
|
@@ -7117,7 +7129,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
7117
7129
|
} while (packageJsonPath.length !== lastPath.length);
|
|
7118
7130
|
throw new ERR_MODULE_NOT_FOUND(packageName, _url.fileURLToPath.call(void 0, base), false);
|
|
7119
7131
|
}
|
|
7120
|
-
|
|
7132
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, packageResolve, "packageResolve");
|
|
7121
7133
|
function isRelativeSpecifier(specifier) {
|
|
7122
7134
|
if (specifier[0] === ".") {
|
|
7123
7135
|
if (specifier.length === 1 || specifier[1] === "/") return true;
|
|
@@ -7127,13 +7139,13 @@ function isRelativeSpecifier(specifier) {
|
|
|
7127
7139
|
}
|
|
7128
7140
|
return false;
|
|
7129
7141
|
}
|
|
7130
|
-
|
|
7142
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, isRelativeSpecifier, "isRelativeSpecifier");
|
|
7131
7143
|
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
7132
7144
|
if (specifier === "") return false;
|
|
7133
7145
|
if (specifier[0] === "/") return true;
|
|
7134
7146
|
return isRelativeSpecifier(specifier);
|
|
7135
7147
|
}
|
|
7136
|
-
|
|
7148
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, shouldBeTreatedAsRelativeOrAbsolutePath, "shouldBeTreatedAsRelativeOrAbsolutePath");
|
|
7137
7149
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
7138
7150
|
const protocol = base.protocol;
|
|
7139
7151
|
const isData = protocol === "data:";
|
|
@@ -7167,18 +7179,18 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
7167
7179
|
}
|
|
7168
7180
|
return finalizeResolution(resolved, base);
|
|
7169
7181
|
}
|
|
7170
|
-
|
|
7182
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, moduleResolve, "moduleResolve");
|
|
7171
7183
|
function fileURLToPath(id) {
|
|
7172
7184
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
7173
7185
|
return normalizeSlash(id);
|
|
7174
7186
|
}
|
|
7175
7187
|
return normalizeSlash(_url.fileURLToPath.call(void 0, id));
|
|
7176
7188
|
}
|
|
7177
|
-
|
|
7189
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, fileURLToPath, "fileURLToPath");
|
|
7178
7190
|
function pathToFileURL(id) {
|
|
7179
7191
|
return _url.pathToFileURL.call(void 0, fileURLToPath(id)).toString();
|
|
7180
7192
|
}
|
|
7181
|
-
|
|
7193
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, pathToFileURL, "pathToFileURL");
|
|
7182
7194
|
function normalizeid(id) {
|
|
7183
7195
|
if (typeof id !== "string") {
|
|
7184
7196
|
id = id.toString();
|
|
@@ -7191,7 +7203,7 @@ function normalizeid(id) {
|
|
|
7191
7203
|
}
|
|
7192
7204
|
return "file://" + encodeURI(normalizeSlash(id));
|
|
7193
7205
|
}
|
|
7194
|
-
|
|
7206
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, normalizeid, "normalizeid");
|
|
7195
7207
|
var DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
7196
7208
|
var DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
|
|
7197
7209
|
var NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
|
|
@@ -7209,7 +7221,7 @@ function _tryModuleResolve(id, url, conditions) {
|
|
|
7209
7221
|
}
|
|
7210
7222
|
}
|
|
7211
7223
|
}
|
|
7212
|
-
|
|
7224
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, _tryModuleResolve, "_tryModuleResolve");
|
|
7213
7225
|
function _resolve(id, options = {}) {
|
|
7214
7226
|
if (typeof id !== "string") {
|
|
7215
7227
|
if (id instanceof URL) {
|
|
@@ -7290,15 +7302,15 @@ function _resolve(id, options = {}) {
|
|
|
7290
7302
|
}
|
|
7291
7303
|
return pathToFileURL(resolved);
|
|
7292
7304
|
}
|
|
7293
|
-
|
|
7305
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, _resolve, "_resolve");
|
|
7294
7306
|
function resolveSync(id, options) {
|
|
7295
7307
|
return _resolve(id, options);
|
|
7296
7308
|
}
|
|
7297
|
-
|
|
7309
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolveSync, "resolveSync");
|
|
7298
7310
|
function resolvePathSync(id, options) {
|
|
7299
7311
|
return fileURLToPath(resolveSync(id, options));
|
|
7300
7312
|
}
|
|
7301
|
-
|
|
7313
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolvePathSync, "resolvePathSync");
|
|
7302
7314
|
function resolvePath(id, options) {
|
|
7303
7315
|
try {
|
|
7304
7316
|
return Promise.resolve(resolvePathSync(id, options));
|
|
@@ -7306,17 +7318,17 @@ function resolvePath(id, options) {
|
|
|
7306
7318
|
return Promise.reject(error);
|
|
7307
7319
|
}
|
|
7308
7320
|
}
|
|
7309
|
-
|
|
7321
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolvePath, "resolvePath");
|
|
7310
7322
|
|
|
7311
7323
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
7312
|
-
|
|
7324
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
7313
7325
|
|
|
7314
7326
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
7315
7327
|
var defaultFindOptions = {
|
|
7316
7328
|
startingFrom: ".",
|
|
7317
7329
|
rootPattern: /^node_modules$/,
|
|
7318
7330
|
reverse: false,
|
|
7319
|
-
test: /* @__PURE__ */
|
|
7331
|
+
test: /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (filePath) => {
|
|
7320
7332
|
try {
|
|
7321
7333
|
if (_fs.statSync.call(void 0, filePath).isFile()) {
|
|
7322
7334
|
return true;
|
|
@@ -7361,11 +7373,11 @@ async function findFile(filename, _options = {}) {
|
|
|
7361
7373
|
`Cannot find matching ${filename} in ${options.startingFrom} or parent directories`
|
|
7362
7374
|
);
|
|
7363
7375
|
}
|
|
7364
|
-
|
|
7376
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, findFile, "findFile");
|
|
7365
7377
|
function findNearestFile(filename, _options = {}) {
|
|
7366
7378
|
return findFile(filename, _options);
|
|
7367
7379
|
}
|
|
7368
|
-
|
|
7380
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, findNearestFile, "findNearestFile");
|
|
7369
7381
|
var FileCache = /* @__PURE__ */ new Map();
|
|
7370
7382
|
async function readPackageJSON(id, options = {}) {
|
|
7371
7383
|
const resolvedPath = await resolvePackageJSON(id, options);
|
|
@@ -7376,14 +7388,14 @@ async function readPackageJSON(id, options = {}) {
|
|
|
7376
7388
|
const blob = await _fs.promises.readFile(resolvedPath, "utf8");
|
|
7377
7389
|
let parsed;
|
|
7378
7390
|
try {
|
|
7379
|
-
parsed =
|
|
7391
|
+
parsed = _chunkZTPDBXJ7cjs.x.call(void 0, blob);
|
|
7380
7392
|
} catch (e6) {
|
|
7381
|
-
parsed =
|
|
7393
|
+
parsed = _chunkZTPDBXJ7cjs.h.call(void 0, blob);
|
|
7382
7394
|
}
|
|
7383
7395
|
cache2.set(resolvedPath, parsed);
|
|
7384
7396
|
return parsed;
|
|
7385
7397
|
}
|
|
7386
|
-
|
|
7398
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, readPackageJSON, "readPackageJSON");
|
|
7387
7399
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
7388
7400
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7389
7401
|
return findNearestFile("package.json", {
|
|
@@ -7391,7 +7403,7 @@ async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
|
7391
7403
|
...options
|
|
7392
7404
|
});
|
|
7393
7405
|
}
|
|
7394
|
-
|
|
7406
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolvePackageJSON, "resolvePackageJSON");
|
|
7395
7407
|
var lockFiles = [
|
|
7396
7408
|
"yarn.lock",
|
|
7397
7409
|
"package-lock.json",
|
|
@@ -7409,7 +7421,7 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
7409
7421
|
}
|
|
7410
7422
|
throw new Error("No lockfile found from " + id);
|
|
7411
7423
|
}
|
|
7412
|
-
|
|
7424
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, resolveLockfile, "resolveLockfile");
|
|
7413
7425
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
7414
7426
|
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7415
7427
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
@@ -7433,10 +7445,10 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
7433
7445
|
}
|
|
7434
7446
|
throw new Error("Cannot detect workspace root from " + id);
|
|
7435
7447
|
}
|
|
7436
|
-
|
|
7448
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, findWorkspaceDir, "findWorkspaceDir");
|
|
7437
7449
|
|
|
7438
7450
|
// ../../node_modules/.pnpm/tinyexec@0.3.2/node_modules/tinyexec/dist/main.js
|
|
7439
|
-
|
|
7451
|
+
_chunkLKG4W7DJcjs.init_cjs_shims.call(void 0, );
|
|
7440
7452
|
|
|
7441
7453
|
var _child_process = require('child_process');
|
|
7442
7454
|
|
|
@@ -7444,7 +7456,7 @@ var _child_process = require('child_process');
|
|
|
7444
7456
|
|
|
7445
7457
|
var _stream = require('stream');
|
|
7446
7458
|
var _readline = require('readline'); var _readline2 = _interopRequireDefault(_readline);
|
|
7447
|
-
var require2 = _module.createRequire.call(void 0,
|
|
7459
|
+
var require2 = _module.createRequire.call(void 0, _chunkLKG4W7DJcjs.importMetaUrl);
|
|
7448
7460
|
var St = Object.create;
|
|
7449
7461
|
var $ = Object.defineProperty;
|
|
7450
7462
|
var kt = Object.getOwnPropertyDescriptor;
|
|
@@ -7452,22 +7464,22 @@ var Tt = Object.getOwnPropertyNames;
|
|
|
7452
7464
|
var At = Object.getPrototypeOf;
|
|
7453
7465
|
var Rt = Object.prototype.hasOwnProperty;
|
|
7454
7466
|
var h2 = /* @__PURE__ */ ((t) => typeof require2 < "u" ? require2 : typeof Proxy < "u" ? new Proxy(t, {
|
|
7455
|
-
get: /* @__PURE__ */
|
|
7467
|
+
get: /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (e, n) => (typeof require2 < "u" ? require2 : e)[n], "get")
|
|
7456
7468
|
}) : t)(function(t) {
|
|
7457
7469
|
if (typeof require2 < "u") return require2.apply(this, arguments);
|
|
7458
7470
|
throw Error('Dynamic require of "' + t + '" is not supported');
|
|
7459
7471
|
});
|
|
7460
|
-
var l = /* @__PURE__ */
|
|
7472
|
+
var l = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e) => () => (e || t((e = {
|
|
7461
7473
|
exports: {}
|
|
7462
7474
|
}).exports, e), e.exports), "l");
|
|
7463
|
-
var $t = /* @__PURE__ */
|
|
7475
|
+
var $t = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e, n, r2) => {
|
|
7464
7476
|
if (e && typeof e == "object" || typeof e == "function") for (let s of Tt(e)) !Rt.call(t, s) && s !== n && $(t, s, {
|
|
7465
|
-
get: /* @__PURE__ */
|
|
7477
|
+
get: /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => e[s], "get"),
|
|
7466
7478
|
enumerable: !(r2 = kt(e, s)) || r2.enumerable
|
|
7467
7479
|
});
|
|
7468
7480
|
return t;
|
|
7469
7481
|
}, "$t");
|
|
7470
|
-
var Nt = /* @__PURE__ */
|
|
7482
|
+
var Nt = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e, n) => (n = t != null ? St(At(t)) : {}, $t(
|
|
7471
7483
|
// If the importer is in node compatibility mode or this is not an ESM
|
|
7472
7484
|
// file that has been converted to a CommonJS file using a Babel-
|
|
7473
7485
|
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
@@ -7492,21 +7504,21 @@ var W = l((Se, H) => {
|
|
|
7492
7504
|
}
|
|
7493
7505
|
return false;
|
|
7494
7506
|
}
|
|
7495
|
-
|
|
7507
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Ht, "Ht");
|
|
7496
7508
|
function F(t, e, n) {
|
|
7497
7509
|
return !t.isSymbolicLink() && !t.isFile() ? false : Ht(e, n);
|
|
7498
7510
|
}
|
|
7499
|
-
|
|
7511
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, F, "F");
|
|
7500
7512
|
function z2(t, e, n) {
|
|
7501
7513
|
j.stat(t, function(r2, s) {
|
|
7502
7514
|
n(r2, r2 ? false : F(s, t, e));
|
|
7503
7515
|
});
|
|
7504
7516
|
}
|
|
7505
|
-
|
|
7517
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, z2, "z");
|
|
7506
7518
|
function Wt(t, e) {
|
|
7507
7519
|
return F(j.statSync(t), t, e);
|
|
7508
7520
|
}
|
|
7509
|
-
|
|
7521
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Wt, "Wt");
|
|
7510
7522
|
});
|
|
7511
7523
|
var X = l((ke, B) => {
|
|
7512
7524
|
"use strict";
|
|
@@ -7518,20 +7530,20 @@ var X = l((ke, B) => {
|
|
|
7518
7530
|
n(r2, r2 ? false : M(s, e));
|
|
7519
7531
|
});
|
|
7520
7532
|
}
|
|
7521
|
-
|
|
7533
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, K, "K");
|
|
7522
7534
|
function Dt(t, e) {
|
|
7523
7535
|
return M(D.statSync(t), e);
|
|
7524
7536
|
}
|
|
7525
|
-
|
|
7537
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Dt, "Dt");
|
|
7526
7538
|
function M(t, e) {
|
|
7527
7539
|
return t.isFile() && Kt(t, e);
|
|
7528
7540
|
}
|
|
7529
|
-
|
|
7541
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, M, "M");
|
|
7530
7542
|
function Kt(t, e) {
|
|
7531
7543
|
var n = t.mode, r2 = t.uid, s = t.gid, o = e.uid !== void 0 ? e.uid : process.getuid && process.getuid(), i = e.gid !== void 0 ? e.gid : process.getgid && process.getgid(), a = parseInt("100", 8), c = parseInt("010", 8), u = parseInt("001", 8), f = a | c, p = n & u || n & c && s === i || n & a && r2 === o || n & f && o === 0;
|
|
7532
7544
|
return p;
|
|
7533
7545
|
}
|
|
7534
|
-
|
|
7546
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Kt, "Kt");
|
|
7535
7547
|
});
|
|
7536
7548
|
var U = l((Ae, G) => {
|
|
7537
7549
|
"use strict";
|
|
@@ -7552,7 +7564,7 @@ var U = l((Ae, G) => {
|
|
|
7552
7564
|
r2 && (r2.code === "EACCES" || e && e.ignoreErrors) && (r2 = null, s = false), n(r2, s);
|
|
7553
7565
|
});
|
|
7554
7566
|
}
|
|
7555
|
-
|
|
7567
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, y, "y");
|
|
7556
7568
|
function Mt(t, e) {
|
|
7557
7569
|
try {
|
|
7558
7570
|
return v.sync(t, e || {});
|
|
@@ -7561,13 +7573,13 @@ var U = l((Ae, G) => {
|
|
|
7561
7573
|
throw n;
|
|
7562
7574
|
}
|
|
7563
7575
|
}
|
|
7564
|
-
|
|
7576
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Mt, "Mt");
|
|
7565
7577
|
});
|
|
7566
7578
|
var et = l((Re, tt) => {
|
|
7567
7579
|
"use strict";
|
|
7568
|
-
var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h2("path"), Bt = g ? ";" : ":", V = U(), J = /* @__PURE__ */
|
|
7580
|
+
var g = process.platform === "win32" || process.env.OSTYPE === "cygwin" || process.env.OSTYPE === "msys", Y = h2("path"), Bt = g ? ";" : ":", V = U(), J = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t) => Object.assign(new Error(`not found: ${t}`), {
|
|
7569
7581
|
code: "ENOENT"
|
|
7570
|
-
}), "J"), Q = /* @__PURE__ */
|
|
7582
|
+
}), "J"), Q = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e) => {
|
|
7571
7583
|
let n = e.colon || Bt, r2 = t.match(/\//) || g && t.match(/\\/) ? [
|
|
7572
7584
|
""
|
|
7573
7585
|
] : [
|
|
@@ -7585,13 +7597,13 @@ var et = l((Re, tt) => {
|
|
|
7585
7597
|
pathExt: o,
|
|
7586
7598
|
pathExtExe: s
|
|
7587
7599
|
};
|
|
7588
|
-
}, "Q"), Z = /* @__PURE__ */
|
|
7600
|
+
}, "Q"), Z = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e, n) => {
|
|
7589
7601
|
typeof e == "function" && (n = e, e = {}), e || (e = {});
|
|
7590
|
-
let { pathEnv: r2, pathExt: s, pathExtExe: o } = Q(t, e), i = [], a = /* @__PURE__ */
|
|
7602
|
+
let { pathEnv: r2, pathExt: s, pathExtExe: o } = Q(t, e), i = [], a = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (u) => new Promise((f, p) => {
|
|
7591
7603
|
if (u === r2.length) return e.all && i.length ? f(i) : p(J(t));
|
|
7592
7604
|
let d2 = r2[u], w = /^".*"$/.test(d2) ? d2.slice(1, -1) : d2, m = Y.join(w, t), b = !w && /^\.[\\\/]/.test(t) ? t.slice(0, 2) + m : m;
|
|
7593
7605
|
f(c(b, u, 0));
|
|
7594
|
-
}), "a"), c = /* @__PURE__ */
|
|
7606
|
+
}), "a"), c = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (u, f, p) => new Promise((d2, w) => {
|
|
7595
7607
|
if (p === s.length) return d2(a(f + 1));
|
|
7596
7608
|
let m = s[p];
|
|
7597
7609
|
V(u + m, {
|
|
@@ -7603,7 +7615,7 @@ var et = l((Re, tt) => {
|
|
|
7603
7615
|
});
|
|
7604
7616
|
}), "c");
|
|
7605
7617
|
return n ? a(0).then((u) => n(null, u), n) : a(0);
|
|
7606
|
-
}, "Z"), Xt = /* @__PURE__ */
|
|
7618
|
+
}, "Z"), Xt = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e) => {
|
|
7607
7619
|
e = e || {};
|
|
7608
7620
|
let { pathEnv: n, pathExt: r2, pathExtExe: s } = Q(t, e), o = [];
|
|
7609
7621
|
for (let i = 0; i < n.length; i++) {
|
|
@@ -7628,7 +7640,7 @@ var et = l((Re, tt) => {
|
|
|
7628
7640
|
});
|
|
7629
7641
|
var rt = l(($e, _) => {
|
|
7630
7642
|
"use strict";
|
|
7631
|
-
var nt = /* @__PURE__ */
|
|
7643
|
+
var nt = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t = {}) => {
|
|
7632
7644
|
let e = t.env || process.env;
|
|
7633
7645
|
return (t.platform || process.platform) !== "win32" ? "PATH" : Object.keys(e).reverse().find((r2) => r2.toUpperCase() === "PATH") || "Path";
|
|
7634
7646
|
}, "nt");
|
|
@@ -7658,11 +7670,11 @@ var ct = l((Ne, it) => {
|
|
|
7658
7670
|
}
|
|
7659
7671
|
return i && (i = st.resolve(s ? t.options.cwd : "", i)), i;
|
|
7660
7672
|
}
|
|
7661
|
-
|
|
7673
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, ot, "ot");
|
|
7662
7674
|
function Yt(t) {
|
|
7663
7675
|
return ot(t) || ot(t, true);
|
|
7664
7676
|
}
|
|
7665
|
-
|
|
7677
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Yt, "Yt");
|
|
7666
7678
|
it.exports = Yt;
|
|
7667
7679
|
});
|
|
7668
7680
|
var ut = l((qe, P) => {
|
|
@@ -7671,11 +7683,11 @@ var ut = l((qe, P) => {
|
|
|
7671
7683
|
function Vt(t) {
|
|
7672
7684
|
return t = t.replace(C, "^$1"), t;
|
|
7673
7685
|
}
|
|
7674
|
-
|
|
7686
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Vt, "Vt");
|
|
7675
7687
|
function Jt(t, e) {
|
|
7676
7688
|
return t = `${t}`, t = t.replace(/(\\*)"/g, '$1$1\\"'), t = t.replace(/(\\*)$/, "$1$1"), t = `"${t}"`, t = t.replace(C, "^$1"), e && (t = t.replace(C, "^$1")), t;
|
|
7677
7689
|
}
|
|
7678
|
-
|
|
7690
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Jt, "Jt");
|
|
7679
7691
|
P.exports.command = Vt;
|
|
7680
7692
|
P.exports.argument = Jt;
|
|
7681
7693
|
});
|
|
@@ -7704,7 +7716,7 @@ var ht = l((je, ft) => {
|
|
|
7704
7716
|
}
|
|
7705
7717
|
return Zt(n.toString());
|
|
7706
7718
|
}
|
|
7707
|
-
|
|
7719
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, te, "te");
|
|
7708
7720
|
ft.exports = te;
|
|
7709
7721
|
});
|
|
7710
7722
|
var wt = l((Fe, Et) => {
|
|
@@ -7715,7 +7727,7 @@ var wt = l((Fe, Et) => {
|
|
|
7715
7727
|
let e = t.file && ne(t.file);
|
|
7716
7728
|
return e ? (t.args.unshift(t.file), t.command = e, mt(t)) : t.file;
|
|
7717
7729
|
}
|
|
7718
|
-
|
|
7730
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, ie, "ie");
|
|
7719
7731
|
function ce(t) {
|
|
7720
7732
|
if (!re) return t;
|
|
7721
7733
|
let e = ie(t), n = !se.test(e);
|
|
@@ -7734,7 +7746,7 @@ var wt = l((Fe, Et) => {
|
|
|
7734
7746
|
}
|
|
7735
7747
|
return t;
|
|
7736
7748
|
}
|
|
7737
|
-
|
|
7749
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, ce, "ce");
|
|
7738
7750
|
function ue(t, e, n) {
|
|
7739
7751
|
e && !Array.isArray(e) && (n = e, e = null), e = e ? e.slice(0) : [], n = Object.assign({}, n);
|
|
7740
7752
|
let r2 = {
|
|
@@ -7749,7 +7761,7 @@ var wt = l((Fe, Et) => {
|
|
|
7749
7761
|
};
|
|
7750
7762
|
return n.shell ? r2 : ce(r2);
|
|
7751
7763
|
}
|
|
7752
|
-
|
|
7764
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, ue, "ue");
|
|
7753
7765
|
Et.exports = ue;
|
|
7754
7766
|
});
|
|
7755
7767
|
var bt = l((ze, vt) => {
|
|
@@ -7764,7 +7776,7 @@ var bt = l((ze, vt) => {
|
|
|
7764
7776
|
spawnargs: t.args
|
|
7765
7777
|
});
|
|
7766
7778
|
}
|
|
7767
|
-
|
|
7779
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, k, "k");
|
|
7768
7780
|
function ae(t, e) {
|
|
7769
7781
|
if (!S) return;
|
|
7770
7782
|
let n = t.emit;
|
|
@@ -7776,15 +7788,15 @@ var bt = l((ze, vt) => {
|
|
|
7776
7788
|
return n.apply(t, arguments);
|
|
7777
7789
|
};
|
|
7778
7790
|
}
|
|
7779
|
-
|
|
7791
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, ae, "ae");
|
|
7780
7792
|
function xt(t, e) {
|
|
7781
7793
|
return S && t === 1 && !e.file ? k(e.original, "spawn") : null;
|
|
7782
7794
|
}
|
|
7783
|
-
|
|
7795
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, xt, "xt");
|
|
7784
7796
|
function le(t, e) {
|
|
7785
7797
|
return S && t === 1 && !e.file ? k(e.original, "spawnSync") : null;
|
|
7786
7798
|
}
|
|
7787
|
-
|
|
7799
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, le, "le");
|
|
7788
7800
|
vt.exports = {
|
|
7789
7801
|
hookChildProcess: ae,
|
|
7790
7802
|
verifyENOENT: xt,
|
|
@@ -7799,12 +7811,12 @@ var Ct = l((He, E) => {
|
|
|
7799
7811
|
let r2 = T(t, e, n), s = yt.spawn(r2.command, r2.args, r2.options);
|
|
7800
7812
|
return A.hookChildProcess(s, r2), s;
|
|
7801
7813
|
}
|
|
7802
|
-
|
|
7814
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, _t, "_t");
|
|
7803
7815
|
function pe(t, e, n) {
|
|
7804
7816
|
let r2 = T(t, e, n), s = yt.spawnSync(r2.command, r2.args, r2.options);
|
|
7805
7817
|
return s.error = s.error || A.verifyENOENTSync(s.status, r2), s;
|
|
7806
7818
|
}
|
|
7807
|
-
|
|
7819
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, pe, "pe");
|
|
7808
7820
|
E.exports = _t;
|
|
7809
7821
|
E.exports.spawn = _t;
|
|
7810
7822
|
E.exports.sync = pe;
|
|
@@ -7827,7 +7839,7 @@ function jt(t) {
|
|
|
7827
7839
|
}
|
|
7828
7840
|
return q;
|
|
7829
7841
|
}
|
|
7830
|
-
|
|
7842
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, jt, "jt");
|
|
7831
7843
|
function Ft(t, e) {
|
|
7832
7844
|
let n = e.value.split(_path.delimiter), r2 = t, s;
|
|
7833
7845
|
do
|
|
@@ -7838,7 +7850,7 @@ function Ft(t, e) {
|
|
|
7838
7850
|
value: n.join(_path.delimiter)
|
|
7839
7851
|
};
|
|
7840
7852
|
}
|
|
7841
|
-
|
|
7853
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, Ft, "Ft");
|
|
7842
7854
|
function I(t, e) {
|
|
7843
7855
|
let n = {
|
|
7844
7856
|
...process.env,
|
|
@@ -7846,9 +7858,9 @@ function I(t, e) {
|
|
|
7846
7858
|
}, r2 = Ft(t, jt(n));
|
|
7847
7859
|
return n[r2.key] = r2.value, n;
|
|
7848
7860
|
}
|
|
7849
|
-
|
|
7850
|
-
var L = /* @__PURE__ */
|
|
7851
|
-
let e = t.length, n = new (0, _stream.PassThrough)(), r2 = /* @__PURE__ */
|
|
7861
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, I, "I");
|
|
7862
|
+
var L = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t) => {
|
|
7863
|
+
let e = t.length, n = new (0, _stream.PassThrough)(), r2 = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => {
|
|
7852
7864
|
--e === 0 && n.emit("end");
|
|
7853
7865
|
}, "r");
|
|
7854
7866
|
for (let s of t) s.pipe(n, {
|
|
@@ -7859,7 +7871,7 @@ var L = /* @__PURE__ */ _chunk2HPUSEOWcjs.__name.call(void 0, (t) => {
|
|
|
7859
7871
|
var Pt = Nt(Ct(), 1);
|
|
7860
7872
|
var x2 = class extends Error {
|
|
7861
7873
|
static {
|
|
7862
|
-
|
|
7874
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, this, "x");
|
|
7863
7875
|
}
|
|
7864
7876
|
|
|
7865
7877
|
|
|
@@ -7883,12 +7895,12 @@ function we(t, e) {
|
|
|
7883
7895
|
args: _nullishCoalesce(e, () => ( []))
|
|
7884
7896
|
};
|
|
7885
7897
|
}
|
|
7886
|
-
|
|
7898
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, we, "we");
|
|
7887
7899
|
function xe(t) {
|
|
7888
7900
|
let e = new AbortController();
|
|
7889
7901
|
for (let n of t) {
|
|
7890
7902
|
if (n.aborted) return e.abort(), n;
|
|
7891
|
-
let r2 = /* @__PURE__ */
|
|
7903
|
+
let r2 = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => {
|
|
7892
7904
|
e.abort(n.reason);
|
|
7893
7905
|
}, "r");
|
|
7894
7906
|
n.addEventListener("abort", r2, {
|
|
@@ -7897,10 +7909,10 @@ function xe(t) {
|
|
|
7897
7909
|
}
|
|
7898
7910
|
return e.signal;
|
|
7899
7911
|
}
|
|
7900
|
-
|
|
7912
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, xe, "xe");
|
|
7901
7913
|
var R = (_class2 = class {
|
|
7902
7914
|
static {
|
|
7903
|
-
|
|
7915
|
+
_chunkLKG4W7DJcjs.__name.call(void 0, this, "R");
|
|
7904
7916
|
}
|
|
7905
7917
|
|
|
7906
7918
|
__init() {this._aborted = false}
|
|
@@ -7991,18 +8003,18 @@ var R = (_class2 = class {
|
|
|
7991
8003
|
this._resolveClose = e;
|
|
7992
8004
|
}), this._thrownError = void 0;
|
|
7993
8005
|
}
|
|
7994
|
-
__init2() {this._onError = /* @__PURE__ */
|
|
8006
|
+
__init2() {this._onError = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (e) => {
|
|
7995
8007
|
if (e.name === "AbortError" && (!(e.cause instanceof Error) || e.cause.name !== "TimeoutError")) {
|
|
7996
8008
|
this._aborted = true;
|
|
7997
8009
|
return;
|
|
7998
8010
|
}
|
|
7999
8011
|
this._thrownError = e;
|
|
8000
8012
|
}, "_onError")}
|
|
8001
|
-
__init3() {this._onClose = /* @__PURE__ */
|
|
8013
|
+
__init3() {this._onClose = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, () => {
|
|
8002
8014
|
this._resolveClose && this._resolveClose();
|
|
8003
8015
|
}, "_onClose")}
|
|
8004
8016
|
}, _class2);
|
|
8005
|
-
var ve = /* @__PURE__ */
|
|
8017
|
+
var ve = /* @__PURE__ */ _chunkLKG4W7DJcjs.__name.call(void 0, (t, e, n) => {
|
|
8006
8018
|
let r2 = new R(t, e, n);
|
|
8007
8019
|
return r2.spawn(), r2;
|
|
8008
8020
|
}, "ve");
|