@storm-software/git-tools 2.89.19 → 2.89.20
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/bin/{chunk-YMPZZ63R.js → chunk-2I5IZB7I.js} +1 -1
- package/bin/{chunk-WOZSAFMN.cjs → chunk-4EXZWKXK.cjs} +138 -138
- package/bin/{chunk-SDAFIVIF.cjs → chunk-4GTGG7FG.cjs} +11 -11
- package/bin/{chunk-UAKVQGZU.cjs → chunk-7FWXX5NN.cjs} +3 -3
- package/bin/{chunk-JHLNALI2.js → chunk-7JKZEVN7.js} +7 -7
- package/bin/{chunk-MUULUJFG.js → chunk-CZZS5O6X.js} +1 -1
- package/bin/{chunk-NHO7HSOE.cjs → chunk-D7E6FHYG.cjs} +32 -32
- package/bin/{chunk-43ATVBTN.cjs → chunk-EE6YDWP4.cjs} +44 -44
- package/bin/{chunk-EM6PLOYY.cjs → chunk-EVP6BIDZ.cjs} +7 -3
- package/bin/{chunk-JMRHG3KS.cjs → chunk-F6YMONH3.cjs} +233 -392
- package/bin/{chunk-5ZJZTDLU.js → chunk-FHVPOT6G.js} +1441 -1276
- package/bin/{chunk-BXSXKKIZ.cjs → chunk-P2UJ7X76.cjs} +4 -4
- package/bin/{chunk-GAD5S6RI.js → chunk-P7LQIJOK.js} +2 -2
- package/bin/{chunk-4NALH4AO.js → chunk-PRYU3CEH.js} +2 -2
- package/bin/{chunk-3QBEWJXQ.js → chunk-S3A47QIS.js} +2 -2
- package/bin/{chunk-4MENWQJO.js → chunk-TYQRCC7E.js} +2 -2
- package/bin/{chunk-427CJVMZ.js → chunk-UZIBTESG.js} +1 -1
- package/bin/{chunk-TJ5BVZGX.js → chunk-V65N3PBL.js} +2 -2
- package/bin/{chunk-C34WMFNS.cjs → chunk-VOJH3O6K.cjs} +40 -40
- package/bin/{chunk-6L7OVDLD.cjs → chunk-W4EY6QRJ.cjs} +393 -393
- package/bin/{chunk-WS6FE5KD.cjs → chunk-WFAIEAPC.cjs} +3642 -3477
- package/bin/{chunk-BNZUDAPR.js → chunk-ZEYLUM4B.js} +94 -253
- package/bin/dist-EX76TC3D.js +17570 -0
- package/bin/dist-MDJEMGZH.cjs +17584 -0
- package/bin/{esm-ADC7HY7G.cjs → esm-SEHCMT4E.cjs} +46 -46
- package/bin/{esm-PISMAGAM.js → esm-UXKHSPHY.js} +1 -1
- package/bin/git.cjs +4316 -4073
- package/bin/git.js +404 -161
- package/bin/json5-E6MR7H4J.cjs +10 -0
- package/bin/json5-HE6DANEW.js +10 -0
- package/bin/jsonc-CWW22DWU.cjs +15 -0
- package/bin/{jsonc-CHJ3SQ64.js → jsonc-TLFMS47G.js} +3 -3
- package/bin/{multipart-parser-QOE3NE7W.js → multipart-parser-KCGB6E6J.js} +4 -4
- package/bin/{multipart-parser-CN3QNGEE.cjs → multipart-parser-S4YB5ALJ.cjs} +13 -13
- package/bin/post-checkout.cjs +22 -22
- package/bin/post-checkout.js +10 -10
- package/bin/post-commit.cjs +22 -22
- package/bin/post-commit.js +10 -10
- package/bin/post-merge.cjs +22 -22
- package/bin/post-merge.js +10 -10
- package/bin/pre-commit.cjs +20 -20
- package/bin/pre-commit.js +9 -9
- package/bin/pre-install.cjs +19 -19
- package/bin/pre-install.js +9 -9
- package/bin/pre-push.cjs +27 -27
- package/bin/pre-push.js +10 -10
- package/bin/prepare.cjs +17 -17
- package/bin/prepare.js +9 -9
- package/bin/toml-PO23EX2W.js +10 -0
- package/bin/toml-TV5QPP5J.cjs +10 -0
- package/bin/version-warning.cjs +15 -15
- package/bin/version-warning.js +9 -9
- package/bin/yaml-NB7XNCSN.js +10 -0
- package/bin/yaml-WOAAZHQN.cjs +10 -0
- package/package.json +1 -1
- package/bin/chunk-EDTRL3GR.cjs +0 -259
- package/bin/chunk-K7RQNYFN.js +0 -259
- package/bin/dist-GN3JYRFA.js +0 -17570
- package/bin/dist-ZUU4T6MR.cjs +0 -17571
- package/bin/execa-45OZD4HI.js +0 -2174
- package/bin/execa-E3LSHKN4.cjs +0 -2174
- package/bin/json5-MEVIN4CB.cjs +0 -10
- package/bin/json5-VNZS6NRW.js +0 -10
- package/bin/jsonc-Q2LSC5PJ.cjs +0 -15
- package/bin/toml-24JQBPT6.cjs +0 -10
- package/bin/toml-5RFTLUCR.js +0 -10
- package/bin/yaml-76CIIR2C.cjs +0 -10
- package/bin/yaml-MEEY2W2C.js +0 -10
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } 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; }
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
var
|
|
4
|
+
var _chunkEE6YDWP4cjs = require('./chunk-EE6YDWP4.cjs');
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
-
var
|
|
8
|
+
var _chunkEVP6BIDZcjs = require('./chunk-EVP6BIDZ.cjs');
|
|
9
9
|
|
|
10
|
-
// ../../node_modules/.pnpm/pathe@
|
|
11
|
-
|
|
10
|
+
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/index.mjs
|
|
11
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
12
|
+
|
|
13
|
+
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
14
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
12
15
|
var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
|
|
13
16
|
function normalizeWindowsPath(input = "") {
|
|
14
17
|
if (!input) {
|
|
@@ -16,58 +19,60 @@ function normalizeWindowsPath(input = "") {
|
|
|
16
19
|
}
|
|
17
20
|
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r2) => r2.toUpperCase());
|
|
18
21
|
}
|
|
19
|
-
|
|
22
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, normalizeWindowsPath, "normalizeWindowsPath");
|
|
20
23
|
var _UNC_REGEX = /^[/\\]{2}/;
|
|
21
24
|
var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
22
25
|
var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
23
26
|
var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
24
|
-
var normalize = /* @__PURE__ */
|
|
25
|
-
if (
|
|
27
|
+
var normalize = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(path2) {
|
|
28
|
+
if (path2.length === 0) {
|
|
26
29
|
return ".";
|
|
27
30
|
}
|
|
28
|
-
|
|
29
|
-
const isUNCPath =
|
|
30
|
-
const isPathAbsolute = isAbsolute(
|
|
31
|
-
const trailingSeparator =
|
|
32
|
-
|
|
33
|
-
if (
|
|
31
|
+
path2 = normalizeWindowsPath(path2);
|
|
32
|
+
const isUNCPath = path2.match(_UNC_REGEX);
|
|
33
|
+
const isPathAbsolute = isAbsolute(path2);
|
|
34
|
+
const trailingSeparator = path2[path2.length - 1] === "/";
|
|
35
|
+
path2 = normalizeString(path2, !isPathAbsolute);
|
|
36
|
+
if (path2.length === 0) {
|
|
34
37
|
if (isPathAbsolute) {
|
|
35
38
|
return "/";
|
|
36
39
|
}
|
|
37
40
|
return trailingSeparator ? "./" : ".";
|
|
38
41
|
}
|
|
39
42
|
if (trailingSeparator) {
|
|
40
|
-
|
|
43
|
+
path2 += "/";
|
|
41
44
|
}
|
|
42
|
-
if (_DRIVE_LETTER_RE.test(
|
|
43
|
-
|
|
45
|
+
if (_DRIVE_LETTER_RE.test(path2)) {
|
|
46
|
+
path2 += "/";
|
|
44
47
|
}
|
|
45
48
|
if (isUNCPath) {
|
|
46
49
|
if (!isPathAbsolute) {
|
|
47
|
-
return `//./${
|
|
50
|
+
return `//./${path2}`;
|
|
48
51
|
}
|
|
49
|
-
return `//${
|
|
52
|
+
return `//${path2}`;
|
|
50
53
|
}
|
|
51
|
-
return isPathAbsolute && !isAbsolute(
|
|
54
|
+
return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
|
|
52
55
|
}, "normalize");
|
|
53
|
-
var join = /* @__PURE__ */
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
if (
|
|
60
|
-
|
|
61
|
-
|
|
56
|
+
var join = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(...segments) {
|
|
57
|
+
let path2 = "";
|
|
58
|
+
for (const seg of segments) {
|
|
59
|
+
if (!seg) {
|
|
60
|
+
continue;
|
|
61
|
+
}
|
|
62
|
+
if (path2.length > 0) {
|
|
63
|
+
const pathTrailing = path2[path2.length - 1] === "/";
|
|
64
|
+
const segLeading = seg[0] === "/";
|
|
65
|
+
const both = pathTrailing && segLeading;
|
|
66
|
+
if (both) {
|
|
67
|
+
path2 += seg.slice(1);
|
|
62
68
|
} else {
|
|
63
|
-
|
|
69
|
+
path2 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
64
70
|
}
|
|
71
|
+
} else {
|
|
72
|
+
path2 += seg;
|
|
65
73
|
}
|
|
66
74
|
}
|
|
67
|
-
|
|
68
|
-
return ".";
|
|
69
|
-
}
|
|
70
|
-
return normalize(joined.replace(/\/\/+/g, "/"));
|
|
75
|
+
return normalize(path2);
|
|
71
76
|
}, "join");
|
|
72
77
|
function cwd() {
|
|
73
78
|
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
@@ -75,18 +80,18 @@ function cwd() {
|
|
|
75
80
|
}
|
|
76
81
|
return "/";
|
|
77
82
|
}
|
|
78
|
-
|
|
79
|
-
var resolve = /* @__PURE__ */
|
|
83
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, cwd, "cwd");
|
|
84
|
+
var resolve = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(...arguments_) {
|
|
80
85
|
arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
|
|
81
86
|
let resolvedPath = "";
|
|
82
87
|
let resolvedAbsolute = false;
|
|
83
88
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
84
|
-
const
|
|
85
|
-
if (!
|
|
89
|
+
const path2 = index >= 0 ? arguments_[index] : cwd();
|
|
90
|
+
if (!path2 || path2.length === 0) {
|
|
86
91
|
continue;
|
|
87
92
|
}
|
|
88
|
-
resolvedPath = `${
|
|
89
|
-
resolvedAbsolute = isAbsolute(
|
|
93
|
+
resolvedPath = `${path2}/${resolvedPath}`;
|
|
94
|
+
resolvedAbsolute = isAbsolute(path2);
|
|
90
95
|
}
|
|
91
96
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
92
97
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
|
|
@@ -94,15 +99,15 @@ var resolve = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(...
|
|
|
94
99
|
}
|
|
95
100
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
96
101
|
}, "resolve");
|
|
97
|
-
function normalizeString(
|
|
102
|
+
function normalizeString(path2, allowAboveRoot) {
|
|
98
103
|
let res = "";
|
|
99
104
|
let lastSegmentLength = 0;
|
|
100
105
|
let lastSlash = -1;
|
|
101
106
|
let dots = 0;
|
|
102
107
|
let char = null;
|
|
103
|
-
for (let index = 0; index <=
|
|
104
|
-
if (index <
|
|
105
|
-
char =
|
|
108
|
+
for (let index = 0; index <= path2.length; ++index) {
|
|
109
|
+
if (index < path2.length) {
|
|
110
|
+
char = path2[index];
|
|
106
111
|
} else if (char === "/") {
|
|
107
112
|
break;
|
|
108
113
|
} else {
|
|
@@ -138,9 +143,9 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
138
143
|
}
|
|
139
144
|
} else {
|
|
140
145
|
if (res.length > 0) {
|
|
141
|
-
res += `/${
|
|
146
|
+
res += `/${path2.slice(lastSlash + 1, index)}`;
|
|
142
147
|
} else {
|
|
143
|
-
res =
|
|
148
|
+
res = path2.slice(lastSlash + 1, index);
|
|
144
149
|
}
|
|
145
150
|
lastSegmentLength = index - lastSlash - 1;
|
|
146
151
|
}
|
|
@@ -154,16 +159,11 @@ function normalizeString(path3, allowAboveRoot) {
|
|
|
154
159
|
}
|
|
155
160
|
return res;
|
|
156
161
|
}
|
|
157
|
-
|
|
158
|
-
var isAbsolute = /* @__PURE__ */
|
|
162
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, normalizeString, "normalizeString");
|
|
163
|
+
var isAbsolute = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(p) {
|
|
159
164
|
return _IS_ABSOLUTE_RE.test(p);
|
|
160
165
|
}, "isAbsolute");
|
|
161
|
-
var
|
|
162
|
-
var extname = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(p) {
|
|
163
|
-
const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
|
|
164
|
-
return match && match[1] || "";
|
|
165
|
-
}, "extname");
|
|
166
|
-
var relative = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(from, to) {
|
|
166
|
+
var relative = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(from, to) {
|
|
167
167
|
const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
168
168
|
const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
|
|
169
169
|
if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
|
|
@@ -179,23 +179,28 @@ var relative = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(fr
|
|
|
179
179
|
}
|
|
180
180
|
return [..._from.map(() => ".."), ..._to].join("/");
|
|
181
181
|
}, "relative");
|
|
182
|
-
var dirname = /* @__PURE__ */
|
|
182
|
+
var dirname = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(p) {
|
|
183
183
|
const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
184
184
|
if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
|
|
185
185
|
segments[0] += "/";
|
|
186
186
|
}
|
|
187
187
|
return segments.join("/") || (isAbsolute(p) ? "/" : ".");
|
|
188
188
|
}, "dirname");
|
|
189
|
-
var basename = /* @__PURE__ */
|
|
190
|
-
const
|
|
189
|
+
var basename = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function(p, extension) {
|
|
190
|
+
const segments = normalizeWindowsPath(p).split("/");
|
|
191
|
+
let lastSegment = "";
|
|
192
|
+
for (let i = segments.length - 1; i >= 0; i--) {
|
|
193
|
+
const val = segments[i];
|
|
194
|
+
if (val) {
|
|
195
|
+
lastSegment = val;
|
|
196
|
+
break;
|
|
197
|
+
}
|
|
198
|
+
}
|
|
191
199
|
return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
|
|
192
200
|
}, "basename");
|
|
193
201
|
|
|
194
|
-
// ../../node_modules/.pnpm/pathe@1.1.2/node_modules/pathe/dist/index.mjs
|
|
195
|
-
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
196
|
-
|
|
197
202
|
// ../../node_modules/.pnpm/defu@6.1.4/node_modules/defu/dist/defu.mjs
|
|
198
|
-
|
|
203
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
199
204
|
function isPlainObject(value) {
|
|
200
205
|
if (value === null || typeof value !== "object") {
|
|
201
206
|
return false;
|
|
@@ -212,7 +217,7 @@ function isPlainObject(value) {
|
|
|
212
217
|
}
|
|
213
218
|
return true;
|
|
214
219
|
}
|
|
215
|
-
|
|
220
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isPlainObject, "isPlainObject");
|
|
216
221
|
function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
217
222
|
if (!isPlainObject(defaults)) {
|
|
218
223
|
return _defu(baseObject, {}, namespace, merger);
|
|
@@ -244,14 +249,14 @@ function _defu(baseObject, defaults, namespace = ".", merger) {
|
|
|
244
249
|
}
|
|
245
250
|
return object;
|
|
246
251
|
}
|
|
247
|
-
|
|
252
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, _defu, "_defu");
|
|
248
253
|
function createDefu(merger) {
|
|
249
254
|
return (...arguments_) => (
|
|
250
255
|
// eslint-disable-next-line unicorn/no-array-reduce
|
|
251
256
|
arguments_.reduce((p, c) => _defu(p, c, "", merger), {})
|
|
252
257
|
);
|
|
253
258
|
}
|
|
254
|
-
|
|
259
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, createDefu, "createDefu");
|
|
255
260
|
var defu = createDefu();
|
|
256
261
|
var defuFn = createDefu((object, key, currentValue) => {
|
|
257
262
|
if (object[key] !== void 0 && typeof currentValue === "function") {
|
|
@@ -267,7 +272,7 @@ var defuArrayFn = createDefu((object, key, currentValue) => {
|
|
|
267
272
|
});
|
|
268
273
|
|
|
269
274
|
// ../../node_modules/.pnpm/ufo@1.5.4/node_modules/ufo/dist/index.mjs
|
|
270
|
-
|
|
275
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
271
276
|
var r = String.fromCharCode;
|
|
272
277
|
var TRAILING_SLASH_RE = /\/$|\/\?|\/#/;
|
|
273
278
|
var JOIN_LEADING_SLASH_RE = /^\.?\//;
|
|
@@ -277,7 +282,7 @@ function hasTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
277
282
|
}
|
|
278
283
|
return TRAILING_SLASH_RE.test(input);
|
|
279
284
|
}
|
|
280
|
-
|
|
285
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, hasTrailingSlash, "hasTrailingSlash");
|
|
281
286
|
function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
282
287
|
if (!respectQueryAndFragment) {
|
|
283
288
|
return input.endsWith("/") ? input : input + "/";
|
|
@@ -285,24 +290,24 @@ function withTrailingSlash(input = "", respectQueryAndFragment) {
|
|
|
285
290
|
if (hasTrailingSlash(input, true)) {
|
|
286
291
|
return input || "/";
|
|
287
292
|
}
|
|
288
|
-
let
|
|
293
|
+
let path2 = input;
|
|
289
294
|
let fragment = "";
|
|
290
295
|
const fragmentIndex = input.indexOf("#");
|
|
291
296
|
if (fragmentIndex >= 0) {
|
|
292
|
-
|
|
297
|
+
path2 = input.slice(0, fragmentIndex);
|
|
293
298
|
fragment = input.slice(fragmentIndex);
|
|
294
|
-
if (!
|
|
299
|
+
if (!path2) {
|
|
295
300
|
return fragment;
|
|
296
301
|
}
|
|
297
302
|
}
|
|
298
|
-
const [s0, ...s] =
|
|
303
|
+
const [s0, ...s] = path2.split("?");
|
|
299
304
|
return s0 + "/" + (s.length > 0 ? `?${s.join("?")}` : "") + fragment;
|
|
300
305
|
}
|
|
301
|
-
|
|
306
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, withTrailingSlash, "withTrailingSlash");
|
|
302
307
|
function isNonEmptyURL(url) {
|
|
303
308
|
return url && url !== "/";
|
|
304
309
|
}
|
|
305
|
-
|
|
310
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isNonEmptyURL, "isNonEmptyURL");
|
|
306
311
|
function joinURL(base, ...input) {
|
|
307
312
|
let url = base || "";
|
|
308
313
|
for (const segment of input.filter((url2) => isNonEmptyURL(url2))) {
|
|
@@ -315,181 +320,18 @@ function joinURL(base, ...input) {
|
|
|
315
320
|
}
|
|
316
321
|
return url;
|
|
317
322
|
}
|
|
318
|
-
|
|
323
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, joinURL, "joinURL");
|
|
319
324
|
var protocolRelative = Symbol.for("ufo:protocolRelative");
|
|
320
325
|
|
|
321
326
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
322
|
-
|
|
327
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
323
328
|
var _fs = require('fs'); var _fs2 = _interopRequireDefault(_fs);
|
|
324
329
|
|
|
325
|
-
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/index.mjs
|
|
326
|
-
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
327
|
-
|
|
328
|
-
// ../../node_modules/.pnpm/pathe@2.0.2/node_modules/pathe/dist/shared/pathe.UZ-hd4nF.mjs
|
|
329
|
-
_chunkEM6PLOYYcjs.init_cjs_shims.call(void 0, );
|
|
330
|
-
var _DRIVE_LETTER_START_RE2 = /^[A-Za-z]:\//;
|
|
331
|
-
function normalizeWindowsPath2(input = "") {
|
|
332
|
-
if (!input) {
|
|
333
|
-
return input;
|
|
334
|
-
}
|
|
335
|
-
return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE2, (r2) => r2.toUpperCase());
|
|
336
|
-
}
|
|
337
|
-
_chunkEM6PLOYYcjs.__name.call(void 0, normalizeWindowsPath2, "normalizeWindowsPath");
|
|
338
|
-
var _UNC_REGEX2 = /^[/\\]{2}/;
|
|
339
|
-
var _IS_ABSOLUTE_RE2 = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
340
|
-
var _DRIVE_LETTER_RE2 = /^[A-Za-z]:$/;
|
|
341
|
-
var normalize2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(path3) {
|
|
342
|
-
if (path3.length === 0) {
|
|
343
|
-
return ".";
|
|
344
|
-
}
|
|
345
|
-
path3 = normalizeWindowsPath2(path3);
|
|
346
|
-
const isUNCPath = path3.match(_UNC_REGEX2);
|
|
347
|
-
const isPathAbsolute = isAbsolute2(path3);
|
|
348
|
-
const trailingSeparator = path3[path3.length - 1] === "/";
|
|
349
|
-
path3 = normalizeString2(path3, !isPathAbsolute);
|
|
350
|
-
if (path3.length === 0) {
|
|
351
|
-
if (isPathAbsolute) {
|
|
352
|
-
return "/";
|
|
353
|
-
}
|
|
354
|
-
return trailingSeparator ? "./" : ".";
|
|
355
|
-
}
|
|
356
|
-
if (trailingSeparator) {
|
|
357
|
-
path3 += "/";
|
|
358
|
-
}
|
|
359
|
-
if (_DRIVE_LETTER_RE2.test(path3)) {
|
|
360
|
-
path3 += "/";
|
|
361
|
-
}
|
|
362
|
-
if (isUNCPath) {
|
|
363
|
-
if (!isPathAbsolute) {
|
|
364
|
-
return `//./${path3}`;
|
|
365
|
-
}
|
|
366
|
-
return `//${path3}`;
|
|
367
|
-
}
|
|
368
|
-
return isPathAbsolute && !isAbsolute2(path3) ? `/${path3}` : path3;
|
|
369
|
-
}, "normalize");
|
|
370
|
-
var join2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(...segments) {
|
|
371
|
-
let path3 = "";
|
|
372
|
-
for (const seg of segments) {
|
|
373
|
-
if (!seg) {
|
|
374
|
-
continue;
|
|
375
|
-
}
|
|
376
|
-
if (path3.length > 0) {
|
|
377
|
-
const pathTrailing = path3[path3.length - 1] === "/";
|
|
378
|
-
const segLeading = seg[0] === "/";
|
|
379
|
-
const both = pathTrailing && segLeading;
|
|
380
|
-
if (both) {
|
|
381
|
-
path3 += seg.slice(1);
|
|
382
|
-
} else {
|
|
383
|
-
path3 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
384
|
-
}
|
|
385
|
-
} else {
|
|
386
|
-
path3 += seg;
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
return normalize2(path3);
|
|
390
|
-
}, "join");
|
|
391
|
-
function cwd2() {
|
|
392
|
-
if (typeof process !== "undefined" && typeof process.cwd === "function") {
|
|
393
|
-
return process.cwd().replace(/\\/g, "/");
|
|
394
|
-
}
|
|
395
|
-
return "/";
|
|
396
|
-
}
|
|
397
|
-
_chunkEM6PLOYYcjs.__name.call(void 0, cwd2, "cwd");
|
|
398
|
-
var resolve2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(...arguments_) {
|
|
399
|
-
arguments_ = arguments_.map((argument) => normalizeWindowsPath2(argument));
|
|
400
|
-
let resolvedPath = "";
|
|
401
|
-
let resolvedAbsolute = false;
|
|
402
|
-
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
403
|
-
const path3 = index >= 0 ? arguments_[index] : cwd2();
|
|
404
|
-
if (!path3 || path3.length === 0) {
|
|
405
|
-
continue;
|
|
406
|
-
}
|
|
407
|
-
resolvedPath = `${path3}/${resolvedPath}`;
|
|
408
|
-
resolvedAbsolute = isAbsolute2(path3);
|
|
409
|
-
}
|
|
410
|
-
resolvedPath = normalizeString2(resolvedPath, !resolvedAbsolute);
|
|
411
|
-
if (resolvedAbsolute && !isAbsolute2(resolvedPath)) {
|
|
412
|
-
return `/${resolvedPath}`;
|
|
413
|
-
}
|
|
414
|
-
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
415
|
-
}, "resolve");
|
|
416
|
-
function normalizeString2(path3, allowAboveRoot) {
|
|
417
|
-
let res = "";
|
|
418
|
-
let lastSegmentLength = 0;
|
|
419
|
-
let lastSlash = -1;
|
|
420
|
-
let dots = 0;
|
|
421
|
-
let char = null;
|
|
422
|
-
for (let index = 0; index <= path3.length; ++index) {
|
|
423
|
-
if (index < path3.length) {
|
|
424
|
-
char = path3[index];
|
|
425
|
-
} else if (char === "/") {
|
|
426
|
-
break;
|
|
427
|
-
} else {
|
|
428
|
-
char = "/";
|
|
429
|
-
}
|
|
430
|
-
if (char === "/") {
|
|
431
|
-
if (lastSlash === index - 1 || dots === 1) ;
|
|
432
|
-
else if (dots === 2) {
|
|
433
|
-
if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
|
|
434
|
-
if (res.length > 2) {
|
|
435
|
-
const lastSlashIndex = res.lastIndexOf("/");
|
|
436
|
-
if (lastSlashIndex === -1) {
|
|
437
|
-
res = "";
|
|
438
|
-
lastSegmentLength = 0;
|
|
439
|
-
} else {
|
|
440
|
-
res = res.slice(0, lastSlashIndex);
|
|
441
|
-
lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
|
|
442
|
-
}
|
|
443
|
-
lastSlash = index;
|
|
444
|
-
dots = 0;
|
|
445
|
-
continue;
|
|
446
|
-
} else if (res.length > 0) {
|
|
447
|
-
res = "";
|
|
448
|
-
lastSegmentLength = 0;
|
|
449
|
-
lastSlash = index;
|
|
450
|
-
dots = 0;
|
|
451
|
-
continue;
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
if (allowAboveRoot) {
|
|
455
|
-
res += res.length > 0 ? "/.." : "..";
|
|
456
|
-
lastSegmentLength = 2;
|
|
457
|
-
}
|
|
458
|
-
} else {
|
|
459
|
-
if (res.length > 0) {
|
|
460
|
-
res += `/${path3.slice(lastSlash + 1, index)}`;
|
|
461
|
-
} else {
|
|
462
|
-
res = path3.slice(lastSlash + 1, index);
|
|
463
|
-
}
|
|
464
|
-
lastSegmentLength = index - lastSlash - 1;
|
|
465
|
-
}
|
|
466
|
-
lastSlash = index;
|
|
467
|
-
dots = 0;
|
|
468
|
-
} else if (char === "." && dots !== -1) {
|
|
469
|
-
++dots;
|
|
470
|
-
} else {
|
|
471
|
-
dots = -1;
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
return res;
|
|
475
|
-
}
|
|
476
|
-
_chunkEM6PLOYYcjs.__name.call(void 0, normalizeString2, "normalizeString");
|
|
477
|
-
var isAbsolute2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(p) {
|
|
478
|
-
return _IS_ABSOLUTE_RE2.test(p);
|
|
479
|
-
}, "isAbsolute");
|
|
480
|
-
var dirname2 = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function(p) {
|
|
481
|
-
const segments = normalizeWindowsPath2(p).replace(/\/$/, "").split("/").slice(0, -1);
|
|
482
|
-
if (segments.length === 1 && _DRIVE_LETTER_RE2.test(segments[0])) {
|
|
483
|
-
segments[0] += "/";
|
|
484
|
-
}
|
|
485
|
-
return segments.join("/") || (isAbsolute2(p) ? "/" : ".");
|
|
486
|
-
}, "dirname");
|
|
487
|
-
|
|
488
330
|
// ../../node_modules/.pnpm/mlly@1.7.4/node_modules/mlly/dist/index.mjs
|
|
489
|
-
|
|
331
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
490
332
|
|
|
491
333
|
// ../../node_modules/.pnpm/acorn@8.14.0/node_modules/acorn/dist/acorn.mjs
|
|
492
|
-
|
|
334
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
493
335
|
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];
|
|
494
336
|
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];
|
|
495
337
|
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";
|
|
@@ -524,7 +366,7 @@ function isInAstralSet(code, set) {
|
|
|
524
366
|
}
|
|
525
367
|
return false;
|
|
526
368
|
}
|
|
527
|
-
|
|
369
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isInAstralSet, "isInAstralSet");
|
|
528
370
|
function isIdentifierStart(code, astral) {
|
|
529
371
|
if (code < 65) {
|
|
530
372
|
return code === 36;
|
|
@@ -546,7 +388,7 @@ function isIdentifierStart(code, astral) {
|
|
|
546
388
|
}
|
|
547
389
|
return isInAstralSet(code, astralIdentifierStartCodes);
|
|
548
390
|
}
|
|
549
|
-
|
|
391
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isIdentifierStart, "isIdentifierStart");
|
|
550
392
|
function isIdentifierChar(code, astral) {
|
|
551
393
|
if (code < 48) {
|
|
552
394
|
return code === 36;
|
|
@@ -574,8 +416,8 @@ function isIdentifierChar(code, astral) {
|
|
|
574
416
|
}
|
|
575
417
|
return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
|
|
576
418
|
}
|
|
577
|
-
|
|
578
|
-
var TokenType = /* @__PURE__ */
|
|
419
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isIdentifierChar, "isIdentifierChar");
|
|
420
|
+
var TokenType = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function TokenType2(label, conf) {
|
|
579
421
|
if (conf === void 0) conf = {};
|
|
580
422
|
this.label = label;
|
|
581
423
|
this.keyword = conf.keyword;
|
|
@@ -591,7 +433,7 @@ var TokenType = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function T
|
|
|
591
433
|
function binop(name, prec) {
|
|
592
434
|
return new TokenType(name, { beforeExpr: true, binop: prec });
|
|
593
435
|
}
|
|
594
|
-
|
|
436
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, binop, "binop");
|
|
595
437
|
var beforeExpr = { beforeExpr: true };
|
|
596
438
|
var startsExpr = { startsExpr: true };
|
|
597
439
|
var keywords = {};
|
|
@@ -600,7 +442,7 @@ function kw(name, options) {
|
|
|
600
442
|
options.keyword = name;
|
|
601
443
|
return keywords[name] = new TokenType(name, options);
|
|
602
444
|
}
|
|
603
|
-
|
|
445
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, kw, "kw");
|
|
604
446
|
var types$1 = {
|
|
605
447
|
num: new TokenType("num", startsExpr),
|
|
606
448
|
regexp: new TokenType("regexp", startsExpr),
|
|
@@ -700,7 +542,7 @@ var lineBreakG = new RegExp(lineBreak.source, "g");
|
|
|
700
542
|
function isNewLine(code) {
|
|
701
543
|
return code === 10 || code === 13 || code === 8232 || code === 8233;
|
|
702
544
|
}
|
|
703
|
-
|
|
545
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isNewLine, "isNewLine");
|
|
704
546
|
function nextLineBreak(code, from, end) {
|
|
705
547
|
if (end === void 0) end = code.length;
|
|
706
548
|
for (var i = from; i < end; i++) {
|
|
@@ -711,7 +553,7 @@ function nextLineBreak(code, from, end) {
|
|
|
711
553
|
}
|
|
712
554
|
return -1;
|
|
713
555
|
}
|
|
714
|
-
|
|
556
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, nextLineBreak, "nextLineBreak");
|
|
715
557
|
var nonASCIIwhitespace = /[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/;
|
|
716
558
|
var skipWhiteSpace = /(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;
|
|
717
559
|
var ref = Object.prototype;
|
|
@@ -727,7 +569,7 @@ var regexpCache = /* @__PURE__ */ Object.create(null);
|
|
|
727
569
|
function wordsRegexp(words) {
|
|
728
570
|
return regexpCache[words] || (regexpCache[words] = new RegExp("^(?:" + words.replace(/ /g, "|") + ")$"));
|
|
729
571
|
}
|
|
730
|
-
|
|
572
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, wordsRegexp, "wordsRegexp");
|
|
731
573
|
function codePointToString(code) {
|
|
732
574
|
if (code <= 65535) {
|
|
733
575
|
return String.fromCharCode(code);
|
|
@@ -735,16 +577,16 @@ function codePointToString(code) {
|
|
|
735
577
|
code -= 65536;
|
|
736
578
|
return String.fromCharCode((code >> 10) + 55296, (code & 1023) + 56320);
|
|
737
579
|
}
|
|
738
|
-
|
|
580
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, codePointToString, "codePointToString");
|
|
739
581
|
var loneSurrogate = /(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/;
|
|
740
|
-
var Position = /* @__PURE__ */
|
|
582
|
+
var Position = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Position2(line, col) {
|
|
741
583
|
this.line = line;
|
|
742
584
|
this.column = col;
|
|
743
585
|
}, "Position");
|
|
744
|
-
Position.prototype.offset = /* @__PURE__ */
|
|
586
|
+
Position.prototype.offset = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function offset(n) {
|
|
745
587
|
return new Position(this.line, this.column + n);
|
|
746
588
|
}, "offset");
|
|
747
|
-
var SourceLocation = /* @__PURE__ */
|
|
589
|
+
var SourceLocation = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function SourceLocation2(p, start, end) {
|
|
748
590
|
this.start = start;
|
|
749
591
|
this.end = end;
|
|
750
592
|
if (p.sourceFile !== null) {
|
|
@@ -761,7 +603,7 @@ function getLineInfo(input, offset2) {
|
|
|
761
603
|
cur = nextBreak;
|
|
762
604
|
}
|
|
763
605
|
}
|
|
764
|
-
|
|
606
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getLineInfo, "getLineInfo");
|
|
765
607
|
var defaultOptions = {
|
|
766
608
|
// `ecmaVersion` indicates the ECMAScript version to parse. Must be
|
|
767
609
|
// either 3, 5, 6 (or 2015), 7 (2016), 8 (2017), 9 (2018), 10
|
|
@@ -893,7 +735,7 @@ function getOptions(opts) {
|
|
|
893
735
|
}
|
|
894
736
|
return options;
|
|
895
737
|
}
|
|
896
|
-
|
|
738
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getOptions, "getOptions");
|
|
897
739
|
function pushComment(options, array) {
|
|
898
740
|
return function(block, text, start, end, startLoc, endLoc) {
|
|
899
741
|
var comment = {
|
|
@@ -911,7 +753,7 @@ function pushComment(options, array) {
|
|
|
911
753
|
array.push(comment);
|
|
912
754
|
};
|
|
913
755
|
}
|
|
914
|
-
|
|
756
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, pushComment, "pushComment");
|
|
915
757
|
var SCOPE_TOP = 1;
|
|
916
758
|
var SCOPE_FUNCTION = 2;
|
|
917
759
|
var SCOPE_ASYNC = 4;
|
|
@@ -925,14 +767,14 @@ var SCOPE_VAR = SCOPE_TOP | SCOPE_FUNCTION | SCOPE_CLASS_STATIC_BLOCK;
|
|
|
925
767
|
function functionFlags(async, generator) {
|
|
926
768
|
return SCOPE_FUNCTION | (async ? SCOPE_ASYNC : 0) | (generator ? SCOPE_GENERATOR : 0);
|
|
927
769
|
}
|
|
928
|
-
|
|
770
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, functionFlags, "functionFlags");
|
|
929
771
|
var BIND_NONE = 0;
|
|
930
772
|
var BIND_VAR = 1;
|
|
931
773
|
var BIND_LEXICAL = 2;
|
|
932
774
|
var BIND_FUNCTION = 3;
|
|
933
775
|
var BIND_SIMPLE_CATCH = 4;
|
|
934
776
|
var BIND_OUTSIDE = 5;
|
|
935
|
-
var Parser = /* @__PURE__ */
|
|
777
|
+
var Parser = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Parser2(options, input, startPos) {
|
|
936
778
|
this.options = options = getOptions(options);
|
|
937
779
|
this.sourceFile = options.sourceFile;
|
|
938
780
|
this.keywords = wordsRegexp(keywords$1[options.ecmaVersion >= 6 ? 6 : options.sourceType === "module" ? "5module" : 5]);
|
|
@@ -981,7 +823,7 @@ var Parser = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function Pars
|
|
|
981
823
|
this.privateNameStack = [];
|
|
982
824
|
}, "Parser");
|
|
983
825
|
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 } };
|
|
984
|
-
Parser.prototype.parse = /* @__PURE__ */
|
|
826
|
+
Parser.prototype.parse = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function parse2() {
|
|
985
827
|
var node = this.options.program || this.startNode();
|
|
986
828
|
this.nextToken();
|
|
987
829
|
return this.parseTopLevel(node);
|
|
@@ -1028,7 +870,7 @@ prototypeAccessors.allowNewDotTarget.get = function() {
|
|
|
1028
870
|
prototypeAccessors.inClassStaticBlock.get = function() {
|
|
1029
871
|
return (this.currentVarScope().flags & SCOPE_CLASS_STATIC_BLOCK) > 0;
|
|
1030
872
|
};
|
|
1031
|
-
Parser.extend = /* @__PURE__ */
|
|
873
|
+
Parser.extend = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function extend() {
|
|
1032
874
|
var plugins = [], len = arguments.length;
|
|
1033
875
|
while (len--) plugins[len] = arguments[len];
|
|
1034
876
|
var cls = this;
|
|
@@ -1037,15 +879,15 @@ Parser.extend = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0, function e
|
|
|
1037
879
|
}
|
|
1038
880
|
return cls;
|
|
1039
881
|
}, "extend");
|
|
1040
|
-
Parser.parse = /* @__PURE__ */
|
|
882
|
+
Parser.parse = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function parse3(input, options) {
|
|
1041
883
|
return new this(options, input).parse();
|
|
1042
884
|
}, "parse");
|
|
1043
|
-
Parser.parseExpressionAt = /* @__PURE__ */
|
|
885
|
+
Parser.parseExpressionAt = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function parseExpressionAt(input, pos, options) {
|
|
1044
886
|
var parser = new this(options, input, pos);
|
|
1045
887
|
parser.nextToken();
|
|
1046
888
|
return parser.parseExpression();
|
|
1047
889
|
}, "parseExpressionAt");
|
|
1048
|
-
Parser.tokenizer = /* @__PURE__ */
|
|
890
|
+
Parser.tokenizer = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function tokenizer(input, options) {
|
|
1049
891
|
return new this(options, input);
|
|
1050
892
|
}, "tokenizer");
|
|
1051
893
|
Object.defineProperties(Parser.prototype, prototypeAccessors);
|
|
@@ -1132,7 +974,7 @@ pp$9.expect = function(type) {
|
|
|
1132
974
|
pp$9.unexpected = function(pos) {
|
|
1133
975
|
this.raise(pos != null ? pos : this.start, "Unexpected token");
|
|
1134
976
|
};
|
|
1135
|
-
var DestructuringErrors = /* @__PURE__ */
|
|
977
|
+
var DestructuringErrors = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function DestructuringErrors2() {
|
|
1136
978
|
this.shorthandAssign = this.trailingComma = this.parenthesizedAssign = this.parenthesizedBind = this.doubleProto = -1;
|
|
1137
979
|
}, "DestructuringErrors");
|
|
1138
980
|
pp$9.checkPatternErrors = function(refDestructuringErrors, isAssign) {
|
|
@@ -1949,13 +1791,13 @@ function isPrivateNameConflicted(privateNameMap, element) {
|
|
|
1949
1791
|
return true;
|
|
1950
1792
|
}
|
|
1951
1793
|
}
|
|
1952
|
-
|
|
1794
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isPrivateNameConflicted, "isPrivateNameConflicted");
|
|
1953
1795
|
function checkKeyName(node, name) {
|
|
1954
1796
|
var computed = node.computed;
|
|
1955
1797
|
var key = node.key;
|
|
1956
1798
|
return !computed && (key.type === "Identifier" && key.name === name || key.type === "Literal" && key.value === name);
|
|
1957
1799
|
}
|
|
1958
|
-
|
|
1800
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, checkKeyName, "checkKeyName");
|
|
1959
1801
|
pp$8.parseExportAllDeclaration = function(node, exports) {
|
|
1960
1802
|
if (this.options.ecmaVersion >= 11) {
|
|
1961
1803
|
if (this.eatContextual("as")) {
|
|
@@ -2481,7 +2323,7 @@ pp$7.checkLValInnerPattern = function(expr, bindingType, checkClashes) {
|
|
|
2481
2323
|
this.checkLValPattern(expr, bindingType, checkClashes);
|
|
2482
2324
|
}
|
|
2483
2325
|
};
|
|
2484
|
-
var TokContext = /* @__PURE__ */
|
|
2326
|
+
var TokContext = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function TokContext2(token, isExpr, preserveSpace, override, generator) {
|
|
2485
2327
|
this.token = token;
|
|
2486
2328
|
this.isExpr = !!isExpr;
|
|
2487
2329
|
this.preserveSpace = !!preserveSpace;
|
|
@@ -2871,11 +2713,11 @@ pp$5.parseMaybeUnary = function(refDestructuringErrors, sawUnary, incDec, forIni
|
|
|
2871
2713
|
function isLocalVariableAccess(node) {
|
|
2872
2714
|
return node.type === "Identifier" || node.type === "ParenthesizedExpression" && isLocalVariableAccess(node.expression);
|
|
2873
2715
|
}
|
|
2874
|
-
|
|
2716
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isLocalVariableAccess, "isLocalVariableAccess");
|
|
2875
2717
|
function isPrivateFieldAccess(node) {
|
|
2876
2718
|
return node.type === "MemberExpression" && node.property.type === "PrivateIdentifier" || node.type === "ChainExpression" && isPrivateFieldAccess(node.expression) || node.type === "ParenthesizedExpression" && isPrivateFieldAccess(node.expression);
|
|
2877
2719
|
}
|
|
2878
|
-
|
|
2720
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isPrivateFieldAccess, "isPrivateFieldAccess");
|
|
2879
2721
|
pp$5.parseExprSubscripts = function(refDestructuringErrors, forInit) {
|
|
2880
2722
|
var startPos = this.start, startLoc = this.startLoc;
|
|
2881
2723
|
var expr = this.parseExprAtom(refDestructuringErrors, forInit);
|
|
@@ -3687,7 +3529,7 @@ pp$4.curPosition = function() {
|
|
|
3687
3529
|
}
|
|
3688
3530
|
};
|
|
3689
3531
|
var pp$3 = Parser.prototype;
|
|
3690
|
-
var Scope = /* @__PURE__ */
|
|
3532
|
+
var Scope = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Scope2(flags) {
|
|
3691
3533
|
this.flags = flags;
|
|
3692
3534
|
this.var = [];
|
|
3693
3535
|
this.lexical = [];
|
|
@@ -3767,7 +3609,7 @@ pp$3.currentThisScope = function() {
|
|
|
3767
3609
|
}
|
|
3768
3610
|
}
|
|
3769
3611
|
};
|
|
3770
|
-
var Node = /* @__PURE__ */
|
|
3612
|
+
var Node = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Node2(parser, pos, loc) {
|
|
3771
3613
|
this.type = "";
|
|
3772
3614
|
this.start = pos;
|
|
3773
3615
|
this.end = 0;
|
|
@@ -3799,7 +3641,7 @@ function finishNodeAt(node, type, pos, loc) {
|
|
|
3799
3641
|
}
|
|
3800
3642
|
return node;
|
|
3801
3643
|
}
|
|
3802
|
-
|
|
3644
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, finishNodeAt, "finishNodeAt");
|
|
3803
3645
|
pp$2.finishNode = function(node, type) {
|
|
3804
3646
|
return finishNodeAt.call(this, node, type, this.lastTokEnd, this.lastTokEndLoc);
|
|
3805
3647
|
};
|
|
@@ -3867,7 +3709,7 @@ function buildUnicodeData(ecmaVersion) {
|
|
|
3867
3709
|
d2.nonBinary.sc = d2.nonBinary.Script;
|
|
3868
3710
|
d2.nonBinary.scx = d2.nonBinary.Script_Extensions;
|
|
3869
3711
|
}
|
|
3870
|
-
|
|
3712
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, buildUnicodeData, "buildUnicodeData");
|
|
3871
3713
|
for (i = 0, list = [9, 10, 11, 12, 13, 14]; i < list.length; i += 1) {
|
|
3872
3714
|
ecmaVersion = list[i];
|
|
3873
3715
|
buildUnicodeData(ecmaVersion);
|
|
@@ -3876,11 +3718,11 @@ var ecmaVersion;
|
|
|
3876
3718
|
var i;
|
|
3877
3719
|
var list;
|
|
3878
3720
|
var pp$1 = Parser.prototype;
|
|
3879
|
-
var BranchID = /* @__PURE__ */
|
|
3721
|
+
var BranchID = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function BranchID2(parent, base) {
|
|
3880
3722
|
this.parent = parent;
|
|
3881
3723
|
this.base = base || this;
|
|
3882
3724
|
}, "BranchID");
|
|
3883
|
-
BranchID.prototype.separatedFrom = /* @__PURE__ */
|
|
3725
|
+
BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function separatedFrom(alt) {
|
|
3884
3726
|
for (var self = this; self; self = self.parent) {
|
|
3885
3727
|
for (var other = alt; other; other = other.parent) {
|
|
3886
3728
|
if (self.base === other.base && self !== other) {
|
|
@@ -3890,10 +3732,10 @@ BranchID.prototype.separatedFrom = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call
|
|
|
3890
3732
|
}
|
|
3891
3733
|
return false;
|
|
3892
3734
|
}, "separatedFrom");
|
|
3893
|
-
BranchID.prototype.sibling = /* @__PURE__ */
|
|
3735
|
+
BranchID.prototype.sibling = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function sibling() {
|
|
3894
3736
|
return new BranchID(this.parent, this.base);
|
|
3895
3737
|
}, "sibling");
|
|
3896
|
-
var RegExpValidationState = /* @__PURE__ */
|
|
3738
|
+
var RegExpValidationState = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function RegExpValidationState2(parser) {
|
|
3897
3739
|
this.parser = parser;
|
|
3898
3740
|
this.validFlags = "gim" + (parser.options.ecmaVersion >= 6 ? "uy" : "") + (parser.options.ecmaVersion >= 9 ? "s" : "") + (parser.options.ecmaVersion >= 13 ? "d" : "") + (parser.options.ecmaVersion >= 15 ? "v" : "");
|
|
3899
3741
|
this.unicodeProperties = data[parser.options.ecmaVersion >= 14 ? 14 : parser.options.ecmaVersion];
|
|
@@ -3913,7 +3755,7 @@ var RegExpValidationState = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.call(void 0
|
|
|
3913
3755
|
this.backReferenceNames = [];
|
|
3914
3756
|
this.branchID = null;
|
|
3915
3757
|
}, "RegExpValidationState");
|
|
3916
|
-
RegExpValidationState.prototype.reset = /* @__PURE__ */
|
|
3758
|
+
RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function reset(start, pattern, flags) {
|
|
3917
3759
|
var unicodeSets = flags.indexOf("v") !== -1;
|
|
3918
3760
|
var unicode = flags.indexOf("u") !== -1;
|
|
3919
3761
|
this.start = start | 0;
|
|
@@ -3929,10 +3771,10 @@ RegExpValidationState.prototype.reset = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name
|
|
|
3929
3771
|
this.switchN = unicode && this.parser.options.ecmaVersion >= 9;
|
|
3930
3772
|
}
|
|
3931
3773
|
}, "reset");
|
|
3932
|
-
RegExpValidationState.prototype.raise = /* @__PURE__ */
|
|
3774
|
+
RegExpValidationState.prototype.raise = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function raise(message) {
|
|
3933
3775
|
this.parser.raiseRecoverable(this.start, "Invalid regular expression: /" + this.source + "/: " + message);
|
|
3934
3776
|
}, "raise");
|
|
3935
|
-
RegExpValidationState.prototype.at = /* @__PURE__ */
|
|
3777
|
+
RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function at(i, forceU) {
|
|
3936
3778
|
if (forceU === void 0) forceU = false;
|
|
3937
3779
|
var s = this.source;
|
|
3938
3780
|
var l = s.length;
|
|
@@ -3946,7 +3788,7 @@ RegExpValidationState.prototype.at = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.ca
|
|
|
3946
3788
|
var next = s.charCodeAt(i + 1);
|
|
3947
3789
|
return next >= 56320 && next <= 57343 ? (c << 10) + next - 56613888 : c;
|
|
3948
3790
|
}, "at");
|
|
3949
|
-
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */
|
|
3791
|
+
RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function nextIndex(i, forceU) {
|
|
3950
3792
|
if (forceU === void 0) forceU = false;
|
|
3951
3793
|
var s = this.source;
|
|
3952
3794
|
var l = s.length;
|
|
@@ -3959,19 +3801,19 @@ RegExpValidationState.prototype.nextIndex = /* @__PURE__ */ _chunkEM6PLOYYcjs.__
|
|
|
3959
3801
|
}
|
|
3960
3802
|
return i + 2;
|
|
3961
3803
|
}, "nextIndex");
|
|
3962
|
-
RegExpValidationState.prototype.current = /* @__PURE__ */
|
|
3804
|
+
RegExpValidationState.prototype.current = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function current(forceU) {
|
|
3963
3805
|
if (forceU === void 0) forceU = false;
|
|
3964
3806
|
return this.at(this.pos, forceU);
|
|
3965
3807
|
}, "current");
|
|
3966
|
-
RegExpValidationState.prototype.lookahead = /* @__PURE__ */
|
|
3808
|
+
RegExpValidationState.prototype.lookahead = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function lookahead(forceU) {
|
|
3967
3809
|
if (forceU === void 0) forceU = false;
|
|
3968
3810
|
return this.at(this.nextIndex(this.pos, forceU), forceU);
|
|
3969
3811
|
}, "lookahead");
|
|
3970
|
-
RegExpValidationState.prototype.advance = /* @__PURE__ */
|
|
3812
|
+
RegExpValidationState.prototype.advance = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function advance(forceU) {
|
|
3971
3813
|
if (forceU === void 0) forceU = false;
|
|
3972
3814
|
this.pos = this.nextIndex(this.pos, forceU);
|
|
3973
3815
|
}, "advance");
|
|
3974
|
-
RegExpValidationState.prototype.eat = /* @__PURE__ */
|
|
3816
|
+
RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function eat(ch, forceU) {
|
|
3975
3817
|
if (forceU === void 0) forceU = false;
|
|
3976
3818
|
if (this.current(forceU) === ch) {
|
|
3977
3819
|
this.advance(forceU);
|
|
@@ -3979,7 +3821,7 @@ RegExpValidationState.prototype.eat = /* @__PURE__ */ _chunkEM6PLOYYcjs.__name.c
|
|
|
3979
3821
|
}
|
|
3980
3822
|
return false;
|
|
3981
3823
|
}, "eat");
|
|
3982
|
-
RegExpValidationState.prototype.eatChars = /* @__PURE__ */
|
|
3824
|
+
RegExpValidationState.prototype.eatChars = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function eatChars(chs, forceU) {
|
|
3983
3825
|
if (forceU === void 0) forceU = false;
|
|
3984
3826
|
var pos = this.pos;
|
|
3985
3827
|
for (var i = 0, list = chs; i < list.length; i += 1) {
|
|
@@ -4023,7 +3865,7 @@ function hasProp(obj) {
|
|
|
4023
3865
|
}
|
|
4024
3866
|
return false;
|
|
4025
3867
|
}
|
|
4026
|
-
|
|
3868
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, hasProp, "hasProp");
|
|
4027
3869
|
pp$1.validateRegExpPattern = function(state) {
|
|
4028
3870
|
this.regexp_pattern(state);
|
|
4029
3871
|
if (!state.switchN && this.options.ecmaVersion >= 9 && hasProp(state.groupNames)) {
|
|
@@ -4341,7 +4183,7 @@ pp$1.regexp_eatModifiers = function(state) {
|
|
|
4341
4183
|
function isRegularExpressionModifier(ch) {
|
|
4342
4184
|
return ch === 105 || ch === 109 || ch === 115;
|
|
4343
4185
|
}
|
|
4344
|
-
|
|
4186
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isRegularExpressionModifier, "isRegularExpressionModifier");
|
|
4345
4187
|
pp$1.regexp_eatExtendedAtom = function(state) {
|
|
4346
4188
|
return state.eat(
|
|
4347
4189
|
46
|
|
@@ -4366,7 +4208,7 @@ pp$1.regexp_eatSyntaxCharacter = function(state) {
|
|
|
4366
4208
|
function isSyntaxCharacter(ch) {
|
|
4367
4209
|
return ch === 36 || ch >= 40 && ch <= 43 || ch === 46 || ch === 63 || ch >= 91 && ch <= 94 || ch >= 123 && ch <= 125;
|
|
4368
4210
|
}
|
|
4369
|
-
|
|
4211
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isSyntaxCharacter, "isSyntaxCharacter");
|
|
4370
4212
|
pp$1.regexp_eatPatternCharacters = function(state) {
|
|
4371
4213
|
var start = state.pos;
|
|
4372
4214
|
var ch = 0;
|
|
@@ -4457,7 +4299,7 @@ pp$1.regexp_eatRegExpIdentifierStart = function(state) {
|
|
|
4457
4299
|
function isRegExpIdentifierStart(ch) {
|
|
4458
4300
|
return isIdentifierStart(ch, true) || ch === 36 || ch === 95;
|
|
4459
4301
|
}
|
|
4460
|
-
|
|
4302
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isRegExpIdentifierStart, "isRegExpIdentifierStart");
|
|
4461
4303
|
pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
4462
4304
|
var start = state.pos;
|
|
4463
4305
|
var forceU = this.options.ecmaVersion >= 11;
|
|
@@ -4476,7 +4318,7 @@ pp$1.regexp_eatRegExpIdentifierPart = function(state) {
|
|
|
4476
4318
|
function isRegExpIdentifierPart(ch) {
|
|
4477
4319
|
return isIdentifierChar(ch, true) || ch === 36 || ch === 95 || ch === 8204 || ch === 8205;
|
|
4478
4320
|
}
|
|
4479
|
-
|
|
4321
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isRegExpIdentifierPart, "isRegExpIdentifierPart");
|
|
4480
4322
|
pp$1.regexp_eatAtomEscape = function(state) {
|
|
4481
4323
|
if (this.regexp_eatBackReference(state) || this.regexp_eatCharacterClassEscape(state) || this.regexp_eatCharacterEscape(state) || state.switchN && this.regexp_eatKGroupName(state)) {
|
|
4482
4324
|
return true;
|
|
@@ -4584,7 +4426,7 @@ pp$1.regexp_eatControlLetter = function(state) {
|
|
|
4584
4426
|
function isControlLetter(ch) {
|
|
4585
4427
|
return ch >= 65 && ch <= 90 || ch >= 97 && ch <= 122;
|
|
4586
4428
|
}
|
|
4587
|
-
|
|
4429
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isControlLetter, "isControlLetter");
|
|
4588
4430
|
pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
4589
4431
|
if (forceU === void 0) forceU = false;
|
|
4590
4432
|
var start = state.pos;
|
|
@@ -4634,7 +4476,7 @@ pp$1.regexp_eatRegExpUnicodeEscapeSequence = function(state, forceU) {
|
|
|
4634
4476
|
function isValidUnicode(ch) {
|
|
4635
4477
|
return ch >= 0 && ch <= 1114111;
|
|
4636
4478
|
}
|
|
4637
|
-
|
|
4479
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isValidUnicode, "isValidUnicode");
|
|
4638
4480
|
pp$1.regexp_eatIdentityEscape = function(state) {
|
|
4639
4481
|
if (state.switchU) {
|
|
4640
4482
|
if (this.regexp_eatSyntaxCharacter(state)) {
|
|
@@ -4703,7 +4545,7 @@ pp$1.regexp_eatCharacterClassEscape = function(state) {
|
|
|
4703
4545
|
function isCharacterClassEscape(ch) {
|
|
4704
4546
|
return ch === 100 || ch === 68 || ch === 115 || ch === 83 || ch === 119 || ch === 87;
|
|
4705
4547
|
}
|
|
4706
|
-
|
|
4548
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isCharacterClassEscape, "isCharacterClassEscape");
|
|
4707
4549
|
pp$1.regexp_eatUnicodePropertyValueExpression = function(state) {
|
|
4708
4550
|
var start = state.pos;
|
|
4709
4551
|
if (this.regexp_eatUnicodePropertyName(state) && state.eat(
|
|
@@ -4753,7 +4595,7 @@ pp$1.regexp_eatUnicodePropertyName = function(state) {
|
|
|
4753
4595
|
function isUnicodePropertyNameCharacter(ch) {
|
|
4754
4596
|
return isControlLetter(ch) || ch === 95;
|
|
4755
4597
|
}
|
|
4756
|
-
|
|
4598
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isUnicodePropertyNameCharacter, "isUnicodePropertyNameCharacter");
|
|
4757
4599
|
pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
4758
4600
|
var ch = 0;
|
|
4759
4601
|
state.lastStringValue = "";
|
|
@@ -4766,7 +4608,7 @@ pp$1.regexp_eatUnicodePropertyValue = function(state) {
|
|
|
4766
4608
|
function isUnicodePropertyValueCharacter(ch) {
|
|
4767
4609
|
return isUnicodePropertyNameCharacter(ch) || isDecimalDigit(ch);
|
|
4768
4610
|
}
|
|
4769
|
-
|
|
4611
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isUnicodePropertyValueCharacter, "isUnicodePropertyValueCharacter");
|
|
4770
4612
|
pp$1.regexp_eatLoneUnicodePropertyNameOrValue = function(state) {
|
|
4771
4613
|
return this.regexp_eatUnicodePropertyValue(state);
|
|
4772
4614
|
};
|
|
@@ -5058,11 +4900,11 @@ pp$1.regexp_eatClassSetCharacter = function(state) {
|
|
|
5058
4900
|
function isClassSetReservedDoublePunctuatorCharacter(ch) {
|
|
5059
4901
|
return ch === 33 || ch >= 35 && ch <= 38 || ch >= 42 && ch <= 44 || ch === 46 || ch >= 58 && ch <= 64 || ch === 94 || ch === 96 || ch === 126;
|
|
5060
4902
|
}
|
|
5061
|
-
|
|
4903
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isClassSetReservedDoublePunctuatorCharacter, "isClassSetReservedDoublePunctuatorCharacter");
|
|
5062
4904
|
function isClassSetSyntaxCharacter(ch) {
|
|
5063
4905
|
return ch === 40 || ch === 41 || ch === 45 || ch === 47 || ch >= 91 && ch <= 93 || ch >= 123 && ch <= 125;
|
|
5064
4906
|
}
|
|
5065
|
-
|
|
4907
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isClassSetSyntaxCharacter, "isClassSetSyntaxCharacter");
|
|
5066
4908
|
pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
5067
4909
|
var ch = state.current();
|
|
5068
4910
|
if (isClassSetReservedPunctuator(ch)) {
|
|
@@ -5075,7 +4917,7 @@ pp$1.regexp_eatClassSetReservedPunctuator = function(state) {
|
|
|
5075
4917
|
function isClassSetReservedPunctuator(ch) {
|
|
5076
4918
|
return ch === 33 || ch === 35 || ch === 37 || ch === 38 || ch === 44 || ch === 45 || ch >= 58 && ch <= 62 || ch === 64 || ch === 96 || ch === 126;
|
|
5077
4919
|
}
|
|
5078
|
-
|
|
4920
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isClassSetReservedPunctuator, "isClassSetReservedPunctuator");
|
|
5079
4921
|
pp$1.regexp_eatClassControlLetter = function(state) {
|
|
5080
4922
|
var ch = state.current();
|
|
5081
4923
|
if (isDecimalDigit(ch) || ch === 95) {
|
|
@@ -5114,7 +4956,7 @@ pp$1.regexp_eatDecimalDigits = function(state) {
|
|
|
5114
4956
|
function isDecimalDigit(ch) {
|
|
5115
4957
|
return ch >= 48 && ch <= 57;
|
|
5116
4958
|
}
|
|
5117
|
-
|
|
4959
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isDecimalDigit, "isDecimalDigit");
|
|
5118
4960
|
pp$1.regexp_eatHexDigits = function(state) {
|
|
5119
4961
|
var start = state.pos;
|
|
5120
4962
|
var ch = 0;
|
|
@@ -5128,7 +4970,7 @@ pp$1.regexp_eatHexDigits = function(state) {
|
|
|
5128
4970
|
function isHexDigit(ch) {
|
|
5129
4971
|
return ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102;
|
|
5130
4972
|
}
|
|
5131
|
-
|
|
4973
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isHexDigit, "isHexDigit");
|
|
5132
4974
|
function hexToInt(ch) {
|
|
5133
4975
|
if (ch >= 65 && ch <= 70) {
|
|
5134
4976
|
return 10 + (ch - 65);
|
|
@@ -5138,7 +4980,7 @@ function hexToInt(ch) {
|
|
|
5138
4980
|
}
|
|
5139
4981
|
return ch - 48;
|
|
5140
4982
|
}
|
|
5141
|
-
|
|
4983
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, hexToInt, "hexToInt");
|
|
5142
4984
|
pp$1.regexp_eatLegacyOctalEscapeSequence = function(state) {
|
|
5143
4985
|
if (this.regexp_eatOctalDigit(state)) {
|
|
5144
4986
|
var n1 = state.lastIntValue;
|
|
@@ -5169,7 +5011,7 @@ pp$1.regexp_eatOctalDigit = function(state) {
|
|
|
5169
5011
|
function isOctalDigit(ch) {
|
|
5170
5012
|
return ch >= 48 && ch <= 55;
|
|
5171
5013
|
}
|
|
5172
|
-
|
|
5014
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isOctalDigit, "isOctalDigit");
|
|
5173
5015
|
pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
5174
5016
|
var start = state.pos;
|
|
5175
5017
|
state.lastIntValue = 0;
|
|
@@ -5184,7 +5026,7 @@ pp$1.regexp_eatFixedHexDigits = function(state, length) {
|
|
|
5184
5026
|
}
|
|
5185
5027
|
return true;
|
|
5186
5028
|
};
|
|
5187
|
-
var Token = /* @__PURE__ */
|
|
5029
|
+
var Token = /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function Token2(p) {
|
|
5188
5030
|
this.type = p.type;
|
|
5189
5031
|
this.value = p.value;
|
|
5190
5032
|
this.start = p.start;
|
|
@@ -5218,7 +5060,7 @@ if (typeof Symbol !== "undefined") {
|
|
|
5218
5060
|
pp[Symbol.iterator] = function() {
|
|
5219
5061
|
var this$1$1 = this;
|
|
5220
5062
|
return {
|
|
5221
|
-
next: /* @__PURE__ */
|
|
5063
|
+
next: /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, function() {
|
|
5222
5064
|
var token = this$1$1.getToken();
|
|
5223
5065
|
return {
|
|
5224
5066
|
done: token.type === types$1.eof,
|
|
@@ -5692,14 +5534,14 @@ function stringToNumber(str, isLegacyOctalNumericLiteral) {
|
|
|
5692
5534
|
}
|
|
5693
5535
|
return parseFloat(str.replace(/_/g, ""));
|
|
5694
5536
|
}
|
|
5695
|
-
|
|
5537
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, stringToNumber, "stringToNumber");
|
|
5696
5538
|
function stringToBigInt(str) {
|
|
5697
5539
|
if (typeof BigInt !== "function") {
|
|
5698
5540
|
return null;
|
|
5699
5541
|
}
|
|
5700
5542
|
return BigInt(str.replace(/_/g, ""));
|
|
5701
5543
|
}
|
|
5702
|
-
|
|
5544
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, stringToBigInt, "stringToBigInt");
|
|
5703
5545
|
pp.readRadixNumber = function(radix) {
|
|
5704
5546
|
var start = this.pos;
|
|
5705
5547
|
this.pos += 2;
|
|
@@ -6064,10 +5906,10 @@ var _path = require('path'); var _path2 = _interopRequireDefault(_path);
|
|
|
6064
5906
|
var _v8 = require('v8'); var _v82 = _interopRequireDefault(_v8);
|
|
6065
5907
|
var _util = require('util');
|
|
6066
5908
|
var BUILTIN_MODULES = new Set(_module.builtinModules);
|
|
6067
|
-
function normalizeSlash(
|
|
6068
|
-
return
|
|
5909
|
+
function normalizeSlash(path2) {
|
|
5910
|
+
return path2.replace(/\\/g, "/");
|
|
6069
5911
|
}
|
|
6070
|
-
|
|
5912
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, normalizeSlash, "normalizeSlash");
|
|
6071
5913
|
var own$1 = {}.hasOwnProperty;
|
|
6072
5914
|
var classRegExp = /^([A-Z][a-z\d]*)+$/;
|
|
6073
5915
|
var kTypes = /* @__PURE__ */ new Set([
|
|
@@ -6086,7 +5928,7 @@ var codes = {};
|
|
|
6086
5928
|
function formatList(array, type = "and") {
|
|
6087
5929
|
return array.length < 3 ? array.join(` ${type} `) : `${array.slice(0, -1).join(", ")}, ${type} ${array[array.length - 1]}`;
|
|
6088
5930
|
}
|
|
6089
|
-
|
|
5931
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, formatList, "formatList");
|
|
6090
5932
|
var messages = /* @__PURE__ */ new Map();
|
|
6091
5933
|
var nodeInternalPrefix = "__node_internal_";
|
|
6092
5934
|
var userStackTraceLimit;
|
|
@@ -6180,8 +6022,8 @@ codes.ERR_INVALID_PACKAGE_CONFIG = createError(
|
|
|
6180
6022
|
* @param {string} [base]
|
|
6181
6023
|
* @param {string} [message]
|
|
6182
6024
|
*/
|
|
6183
|
-
(
|
|
6184
|
-
return `Invalid package config ${
|
|
6025
|
+
(path2, base, message) => {
|
|
6026
|
+
return `Invalid package config ${path2}${base ? ` while importing ${base}` : ""}${message ? `. ${message}` : ""}`;
|
|
6185
6027
|
},
|
|
6186
6028
|
Error
|
|
6187
6029
|
);
|
|
@@ -6213,8 +6055,8 @@ codes.ERR_MODULE_NOT_FOUND = createError(
|
|
|
6213
6055
|
* @param {string} base
|
|
6214
6056
|
* @param {boolean} [exactUrl]
|
|
6215
6057
|
*/
|
|
6216
|
-
(
|
|
6217
|
-
return `Cannot find ${exactUrl ? "module" : "package"} '${
|
|
6058
|
+
(path2, base, exactUrl = false) => {
|
|
6059
|
+
return `Cannot find ${exactUrl ? "module" : "package"} '${path2}' imported from ${base}`;
|
|
6218
6060
|
},
|
|
6219
6061
|
Error
|
|
6220
6062
|
);
|
|
@@ -6265,8 +6107,8 @@ codes.ERR_UNKNOWN_FILE_EXTENSION = createError(
|
|
|
6265
6107
|
* @param {string} extension
|
|
6266
6108
|
* @param {string} path
|
|
6267
6109
|
*/
|
|
6268
|
-
(extension,
|
|
6269
|
-
return `Unknown file extension "${extension}" for ${
|
|
6110
|
+
(extension, path2) => {
|
|
6111
|
+
return `Unknown file extension "${extension}" for ${path2}`;
|
|
6270
6112
|
},
|
|
6271
6113
|
TypeError
|
|
6272
6114
|
);
|
|
@@ -6293,7 +6135,7 @@ function createError(sym, value, constructor) {
|
|
|
6293
6135
|
messages.set(sym, value);
|
|
6294
6136
|
return makeNodeErrorWithCode(constructor, sym);
|
|
6295
6137
|
}
|
|
6296
|
-
|
|
6138
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, createError, "createError");
|
|
6297
6139
|
function makeNodeErrorWithCode(Base, key) {
|
|
6298
6140
|
return NodeError;
|
|
6299
6141
|
function NodeError(...parameters) {
|
|
@@ -6325,9 +6167,9 @@ function makeNodeErrorWithCode(Base, key) {
|
|
|
6325
6167
|
error.code = key;
|
|
6326
6168
|
return error;
|
|
6327
6169
|
}
|
|
6328
|
-
|
|
6170
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, NodeError, "NodeError");
|
|
6329
6171
|
}
|
|
6330
|
-
|
|
6172
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, makeNodeErrorWithCode, "makeNodeErrorWithCode");
|
|
6331
6173
|
function isErrorStackTraceLimitWritable() {
|
|
6332
6174
|
try {
|
|
6333
6175
|
if (_v82.default.startupSnapshot.isBuildingSnapshot()) {
|
|
@@ -6341,13 +6183,13 @@ function isErrorStackTraceLimitWritable() {
|
|
|
6341
6183
|
}
|
|
6342
6184
|
return own$1.call(desc, "writable") && desc.writable !== void 0 ? desc.writable : desc.set !== void 0;
|
|
6343
6185
|
}
|
|
6344
|
-
|
|
6186
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isErrorStackTraceLimitWritable, "isErrorStackTraceLimitWritable");
|
|
6345
6187
|
function hideStackFrames(wrappedFunction) {
|
|
6346
6188
|
const hidden = nodeInternalPrefix + wrappedFunction.name;
|
|
6347
6189
|
Object.defineProperty(wrappedFunction, "name", { value: hidden });
|
|
6348
6190
|
return wrappedFunction;
|
|
6349
6191
|
}
|
|
6350
|
-
|
|
6192
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, hideStackFrames, "hideStackFrames");
|
|
6351
6193
|
var captureLargerStackTrace = hideStackFrames(
|
|
6352
6194
|
/**
|
|
6353
6195
|
* @param {Error} error
|
|
@@ -6387,7 +6229,7 @@ function getMessage(key, parameters, self) {
|
|
|
6387
6229
|
parameters.unshift(message);
|
|
6388
6230
|
return Reflect.apply(_util.format, null, parameters);
|
|
6389
6231
|
}
|
|
6390
|
-
|
|
6232
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getMessage, "getMessage");
|
|
6391
6233
|
function determineSpecificType(value) {
|
|
6392
6234
|
if (value === null || value === void 0) {
|
|
6393
6235
|
return String(value);
|
|
@@ -6407,7 +6249,7 @@ function determineSpecificType(value) {
|
|
|
6407
6249
|
}
|
|
6408
6250
|
return `type ${typeof value} (${inspected})`;
|
|
6409
6251
|
}
|
|
6410
|
-
|
|
6252
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, determineSpecificType, "determineSpecificType");
|
|
6411
6253
|
var hasOwnProperty$1 = {}.hasOwnProperty;
|
|
6412
6254
|
var { ERR_INVALID_PACKAGE_CONFIG: ERR_INVALID_PACKAGE_CONFIG$1 } = codes;
|
|
6413
6255
|
var cache = /* @__PURE__ */ new Map();
|
|
@@ -6475,7 +6317,7 @@ function read(jsonPath, { base, specifier }) {
|
|
|
6475
6317
|
cache.set(jsonPath, result);
|
|
6476
6318
|
return result;
|
|
6477
6319
|
}
|
|
6478
|
-
|
|
6320
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, read, "read");
|
|
6479
6321
|
function getPackageScopeConfig(resolved) {
|
|
6480
6322
|
let packageJSONUrl = new URL("package.json", resolved);
|
|
6481
6323
|
while (true) {
|
|
@@ -6502,11 +6344,11 @@ function getPackageScopeConfig(resolved) {
|
|
|
6502
6344
|
type: "none"
|
|
6503
6345
|
};
|
|
6504
6346
|
}
|
|
6505
|
-
|
|
6347
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getPackageScopeConfig, "getPackageScopeConfig");
|
|
6506
6348
|
function getPackageType(url) {
|
|
6507
6349
|
return getPackageScopeConfig(url).type;
|
|
6508
6350
|
}
|
|
6509
|
-
|
|
6351
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getPackageType, "getPackageType");
|
|
6510
6352
|
var { ERR_UNKNOWN_FILE_EXTENSION } = codes;
|
|
6511
6353
|
var hasOwnProperty2 = {}.hasOwnProperty;
|
|
6512
6354
|
var extensionFormatMap = {
|
|
@@ -6523,7 +6365,7 @@ function mimeToFormat(mime) {
|
|
|
6523
6365
|
if (mime === "application/json") return "json";
|
|
6524
6366
|
return null;
|
|
6525
6367
|
}
|
|
6526
|
-
|
|
6368
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, mimeToFormat, "mimeToFormat");
|
|
6527
6369
|
var protocolHandlers = {
|
|
6528
6370
|
// @ts-expect-error: hush.
|
|
6529
6371
|
__proto__: null,
|
|
@@ -6541,8 +6383,8 @@ function getDataProtocolModuleFormat(parsed) {
|
|
|
6541
6383
|
) || [null, null, null];
|
|
6542
6384
|
return mimeToFormat(mime);
|
|
6543
6385
|
}
|
|
6544
|
-
|
|
6545
|
-
function
|
|
6386
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getDataProtocolModuleFormat, "getDataProtocolModuleFormat");
|
|
6387
|
+
function extname2(url) {
|
|
6546
6388
|
const pathname = url.pathname;
|
|
6547
6389
|
let index = pathname.length;
|
|
6548
6390
|
while (index--) {
|
|
@@ -6556,9 +6398,9 @@ function extname3(url) {
|
|
|
6556
6398
|
}
|
|
6557
6399
|
return "";
|
|
6558
6400
|
}
|
|
6559
|
-
|
|
6401
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, extname2, "extname");
|
|
6560
6402
|
function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
6561
|
-
const value =
|
|
6403
|
+
const value = extname2(url);
|
|
6562
6404
|
if (value === ".js") {
|
|
6563
6405
|
const packageType = getPackageType(url);
|
|
6564
6406
|
if (packageType !== "none") {
|
|
@@ -6573,18 +6415,18 @@ function getFileProtocolModuleFormat(url, _context, ignoreErrors) {
|
|
|
6573
6415
|
}
|
|
6574
6416
|
return "module";
|
|
6575
6417
|
}
|
|
6576
|
-
const
|
|
6577
|
-
if (
|
|
6418
|
+
const format3 = extensionFormatMap[value];
|
|
6419
|
+
if (format3) return format3;
|
|
6578
6420
|
if (ignoreErrors) {
|
|
6579
6421
|
return void 0;
|
|
6580
6422
|
}
|
|
6581
6423
|
const filepath = _url.fileURLToPath.call(void 0, url);
|
|
6582
6424
|
throw new ERR_UNKNOWN_FILE_EXTENSION(value, filepath);
|
|
6583
6425
|
}
|
|
6584
|
-
|
|
6426
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getFileProtocolModuleFormat, "getFileProtocolModuleFormat");
|
|
6585
6427
|
function getHttpProtocolModuleFormat() {
|
|
6586
6428
|
}
|
|
6587
|
-
|
|
6429
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, getHttpProtocolModuleFormat, "getHttpProtocolModuleFormat");
|
|
6588
6430
|
function defaultGetFormatWithoutErrors(url, context) {
|
|
6589
6431
|
const protocol = url.protocol;
|
|
6590
6432
|
if (!hasOwnProperty2.call(protocolHandlers, protocol)) {
|
|
@@ -6592,7 +6434,7 @@ function defaultGetFormatWithoutErrors(url, context) {
|
|
|
6592
6434
|
}
|
|
6593
6435
|
return protocolHandlers[protocol](url, context, true) || null;
|
|
6594
6436
|
}
|
|
6595
|
-
|
|
6437
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, defaultGetFormatWithoutErrors, "defaultGetFormatWithoutErrors");
|
|
6596
6438
|
var RegExpPrototypeSymbolReplace = RegExp.prototype[Symbol.replace];
|
|
6597
6439
|
var {
|
|
6598
6440
|
ERR_NETWORK_IMPORT_DISALLOWED,
|
|
@@ -6625,13 +6467,13 @@ function emitInvalidSegmentDeprecation(target, request, match, packageJsonUrl, i
|
|
|
6625
6467
|
"DEP0166"
|
|
6626
6468
|
);
|
|
6627
6469
|
}
|
|
6628
|
-
|
|
6470
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, emitInvalidSegmentDeprecation, "emitInvalidSegmentDeprecation");
|
|
6629
6471
|
function emitLegacyIndexDeprecation(url, packageJsonUrl, base, main) {
|
|
6630
6472
|
if (_process2.default.noDeprecation) {
|
|
6631
6473
|
return;
|
|
6632
6474
|
}
|
|
6633
|
-
const
|
|
6634
|
-
if (
|
|
6475
|
+
const format3 = defaultGetFormatWithoutErrors(url, { parentURL: base.href });
|
|
6476
|
+
if (format3 !== "module") return;
|
|
6635
6477
|
const urlPath = _url.fileURLToPath.call(void 0, url.href);
|
|
6636
6478
|
const packagePath = _url.fileURLToPath.call(void 0, new (0, _url.URL)(".", packageJsonUrl));
|
|
6637
6479
|
const basePath = _url.fileURLToPath.call(void 0, base);
|
|
@@ -6655,20 +6497,20 @@ Default "index" lookups for the main are deprecated for ES modules.`,
|
|
|
6655
6497
|
);
|
|
6656
6498
|
}
|
|
6657
6499
|
}
|
|
6658
|
-
|
|
6659
|
-
function tryStatSync(
|
|
6500
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, emitLegacyIndexDeprecation, "emitLegacyIndexDeprecation");
|
|
6501
|
+
function tryStatSync(path2) {
|
|
6660
6502
|
try {
|
|
6661
|
-
return _fs.statSync.call(void 0,
|
|
6503
|
+
return _fs.statSync.call(void 0, path2);
|
|
6662
6504
|
} catch (e3) {
|
|
6663
6505
|
}
|
|
6664
6506
|
}
|
|
6665
|
-
|
|
6507
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, tryStatSync, "tryStatSync");
|
|
6666
6508
|
function fileExists(url) {
|
|
6667
6509
|
const stats = _fs.statSync.call(void 0, url, { throwIfNoEntry: false });
|
|
6668
6510
|
const isFile = stats ? stats.isFile() : void 0;
|
|
6669
6511
|
return isFile === null || isFile === void 0 ? false : isFile;
|
|
6670
6512
|
}
|
|
6671
|
-
|
|
6513
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, fileExists, "fileExists");
|
|
6672
6514
|
function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
6673
6515
|
let guess;
|
|
6674
6516
|
if (packageConfig.main !== void 0) {
|
|
@@ -6714,7 +6556,7 @@ function legacyMainResolve(packageJsonUrl, packageConfig, base) {
|
|
|
6714
6556
|
_url.fileURLToPath.call(void 0, base)
|
|
6715
6557
|
);
|
|
6716
6558
|
}
|
|
6717
|
-
|
|
6559
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, legacyMainResolve, "legacyMainResolve");
|
|
6718
6560
|
function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
6719
6561
|
if (encodedSeparatorRegEx.exec(resolved.pathname) !== null) {
|
|
6720
6562
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6761,7 +6603,7 @@ function finalizeResolution(resolved, base, preserveSymlinks) {
|
|
|
6761
6603
|
}
|
|
6762
6604
|
return resolved;
|
|
6763
6605
|
}
|
|
6764
|
-
|
|
6606
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, finalizeResolution, "finalizeResolution");
|
|
6765
6607
|
function importNotDefined(specifier, packageJsonUrl, base) {
|
|
6766
6608
|
return new ERR_PACKAGE_IMPORT_NOT_DEFINED(
|
|
6767
6609
|
specifier,
|
|
@@ -6769,7 +6611,7 @@ function importNotDefined(specifier, packageJsonUrl, base) {
|
|
|
6769
6611
|
_url.fileURLToPath.call(void 0, base)
|
|
6770
6612
|
);
|
|
6771
6613
|
}
|
|
6772
|
-
|
|
6614
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, importNotDefined, "importNotDefined");
|
|
6773
6615
|
function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
6774
6616
|
return new ERR_PACKAGE_PATH_NOT_EXPORTED(
|
|
6775
6617
|
_url.fileURLToPath.call(void 0, new (0, _url.URL)(".", packageJsonUrl)),
|
|
@@ -6777,7 +6619,7 @@ function exportsNotFound(subpath, packageJsonUrl, base) {
|
|
|
6777
6619
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6778
6620
|
);
|
|
6779
6621
|
}
|
|
6780
|
-
|
|
6622
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, exportsNotFound, "exportsNotFound");
|
|
6781
6623
|
function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
6782
6624
|
const reason = `request is not a valid match in pattern "${match}" for the "${internal ? "imports" : "exports"}" resolution of ${_url.fileURLToPath.call(void 0, packageJsonUrl)}`;
|
|
6783
6625
|
throw new ERR_INVALID_MODULE_SPECIFIER(
|
|
@@ -6786,7 +6628,7 @@ function throwInvalidSubpath(request, match, packageJsonUrl, internal, base) {
|
|
|
6786
6628
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6787
6629
|
);
|
|
6788
6630
|
}
|
|
6789
|
-
|
|
6631
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, throwInvalidSubpath, "throwInvalidSubpath");
|
|
6790
6632
|
function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
6791
6633
|
target = typeof target === "object" && target !== null ? JSON.stringify(target, null, "") : `${target}`;
|
|
6792
6634
|
return new ERR_INVALID_PACKAGE_TARGET(
|
|
@@ -6797,7 +6639,7 @@ function invalidPackageTarget(subpath, target, packageJsonUrl, internal, base) {
|
|
|
6797
6639
|
base && _url.fileURLToPath.call(void 0, base)
|
|
6798
6640
|
);
|
|
6799
6641
|
}
|
|
6800
|
-
|
|
6642
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, invalidPackageTarget, "invalidPackageTarget");
|
|
6801
6643
|
function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base, pattern, internal, isPathMap, conditions) {
|
|
6802
6644
|
if (subpath !== "" && !pattern && target[target.length - 1] !== "/")
|
|
6803
6645
|
throw invalidPackageTarget(match, target, packageJsonUrl, internal, base);
|
|
@@ -6883,13 +6725,13 @@ function resolvePackageTargetString(target, subpath, match, packageJsonUrl, base
|
|
|
6883
6725
|
}
|
|
6884
6726
|
return new (0, _url.URL)(subpath, resolved);
|
|
6885
6727
|
}
|
|
6886
|
-
|
|
6728
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolvePackageTargetString, "resolvePackageTargetString");
|
|
6887
6729
|
function isArrayIndex(key) {
|
|
6888
6730
|
const keyNumber = Number(key);
|
|
6889
6731
|
if (`${keyNumber}` !== key) return false;
|
|
6890
6732
|
return keyNumber >= 0 && keyNumber < 4294967295;
|
|
6891
6733
|
}
|
|
6892
|
-
|
|
6734
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isArrayIndex, "isArrayIndex");
|
|
6893
6735
|
function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, base, pattern, internal, isPathMap, conditions) {
|
|
6894
6736
|
if (typeof target === "string") {
|
|
6895
6737
|
return resolvePackageTargetString(
|
|
@@ -6994,7 +6836,7 @@ function resolvePackageTarget(packageJsonUrl, target, subpath, packageSubpath, b
|
|
|
6994
6836
|
base
|
|
6995
6837
|
);
|
|
6996
6838
|
}
|
|
6997
|
-
|
|
6839
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolvePackageTarget, "resolvePackageTarget");
|
|
6998
6840
|
function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
6999
6841
|
if (typeof exports === "string" || Array.isArray(exports)) return true;
|
|
7000
6842
|
if (typeof exports !== "object" || exports === null) return false;
|
|
@@ -7017,7 +6859,7 @@ function isConditionalExportsMainSugar(exports, packageJsonUrl, base) {
|
|
|
7017
6859
|
}
|
|
7018
6860
|
return isConditionalSugar;
|
|
7019
6861
|
}
|
|
7020
|
-
|
|
6862
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isConditionalExportsMainSugar, "isConditionalExportsMainSugar");
|
|
7021
6863
|
function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
7022
6864
|
if (_process2.default.noDeprecation) {
|
|
7023
6865
|
return;
|
|
@@ -7031,7 +6873,7 @@ function emitTrailingSlashPatternDeprecation(match, pjsonUrl, base) {
|
|
|
7031
6873
|
"DEP0155"
|
|
7032
6874
|
);
|
|
7033
6875
|
}
|
|
7034
|
-
|
|
6876
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, emitTrailingSlashPatternDeprecation, "emitTrailingSlashPatternDeprecation");
|
|
7035
6877
|
function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, base, conditions) {
|
|
7036
6878
|
let exports = packageConfig.exports;
|
|
7037
6879
|
if (isConditionalExportsMainSugar(exports, packageJsonUrl, base)) {
|
|
@@ -7103,7 +6945,7 @@ function packageExportsResolve(packageJsonUrl, packageSubpath, packageConfig, ba
|
|
|
7103
6945
|
}
|
|
7104
6946
|
throw exportsNotFound(packageSubpath, packageJsonUrl, base);
|
|
7105
6947
|
}
|
|
7106
|
-
|
|
6948
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, packageExportsResolve, "packageExportsResolve");
|
|
7107
6949
|
function patternKeyCompare(a, b) {
|
|
7108
6950
|
const aPatternIndex = a.indexOf("*");
|
|
7109
6951
|
const bPatternIndex = b.indexOf("*");
|
|
@@ -7117,7 +6959,7 @@ function patternKeyCompare(a, b) {
|
|
|
7117
6959
|
if (b.length > a.length) return 1;
|
|
7118
6960
|
return 0;
|
|
7119
6961
|
}
|
|
7120
|
-
|
|
6962
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, patternKeyCompare, "patternKeyCompare");
|
|
7121
6963
|
function packageImportsResolve(name, base, conditions) {
|
|
7122
6964
|
if (name === "#" || name.startsWith("#/") || name.endsWith("/")) {
|
|
7123
6965
|
const reason = "is not a valid internal imports specifier name";
|
|
@@ -7185,7 +7027,7 @@ function packageImportsResolve(name, base, conditions) {
|
|
|
7185
7027
|
}
|
|
7186
7028
|
throw importNotDefined(name, packageJsonUrl, base);
|
|
7187
7029
|
}
|
|
7188
|
-
|
|
7030
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, packageImportsResolve, "packageImportsResolve");
|
|
7189
7031
|
function parsePackageName(specifier, base) {
|
|
7190
7032
|
let separatorIndex = specifier.indexOf("/");
|
|
7191
7033
|
let validPackageName = true;
|
|
@@ -7212,7 +7054,7 @@ function parsePackageName(specifier, base) {
|
|
|
7212
7054
|
const packageSubpath = "." + (separatorIndex === -1 ? "" : specifier.slice(separatorIndex));
|
|
7213
7055
|
return { packageName, packageSubpath, isScoped };
|
|
7214
7056
|
}
|
|
7215
|
-
|
|
7057
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, parsePackageName, "parsePackageName");
|
|
7216
7058
|
function packageResolve(specifier, base, conditions) {
|
|
7217
7059
|
if (_module.builtinModules.includes(specifier)) {
|
|
7218
7060
|
return new (0, _url.URL)("node:" + specifier);
|
|
@@ -7268,7 +7110,7 @@ function packageResolve(specifier, base, conditions) {
|
|
|
7268
7110
|
} while (packageJsonPath.length !== lastPath.length);
|
|
7269
7111
|
throw new ERR_MODULE_NOT_FOUND(packageName, _url.fileURLToPath.call(void 0, base), false);
|
|
7270
7112
|
}
|
|
7271
|
-
|
|
7113
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, packageResolve, "packageResolve");
|
|
7272
7114
|
function isRelativeSpecifier(specifier) {
|
|
7273
7115
|
if (specifier[0] === ".") {
|
|
7274
7116
|
if (specifier.length === 1 || specifier[1] === "/") return true;
|
|
@@ -7278,13 +7120,13 @@ function isRelativeSpecifier(specifier) {
|
|
|
7278
7120
|
}
|
|
7279
7121
|
return false;
|
|
7280
7122
|
}
|
|
7281
|
-
|
|
7123
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, isRelativeSpecifier, "isRelativeSpecifier");
|
|
7282
7124
|
function shouldBeTreatedAsRelativeOrAbsolutePath(specifier) {
|
|
7283
7125
|
if (specifier === "") return false;
|
|
7284
7126
|
if (specifier[0] === "/") return true;
|
|
7285
7127
|
return isRelativeSpecifier(specifier);
|
|
7286
7128
|
}
|
|
7287
|
-
|
|
7129
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, shouldBeTreatedAsRelativeOrAbsolutePath, "shouldBeTreatedAsRelativeOrAbsolutePath");
|
|
7288
7130
|
function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
7289
7131
|
const protocol = base.protocol;
|
|
7290
7132
|
const isData = protocol === "data:";
|
|
@@ -7318,18 +7160,18 @@ function moduleResolve(specifier, base, conditions, preserveSymlinks) {
|
|
|
7318
7160
|
}
|
|
7319
7161
|
return finalizeResolution(resolved, base);
|
|
7320
7162
|
}
|
|
7321
|
-
|
|
7163
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, moduleResolve, "moduleResolve");
|
|
7322
7164
|
function fileURLToPath(id) {
|
|
7323
7165
|
if (typeof id === "string" && !id.startsWith("file://")) {
|
|
7324
7166
|
return normalizeSlash(id);
|
|
7325
7167
|
}
|
|
7326
7168
|
return normalizeSlash(_url.fileURLToPath.call(void 0, id));
|
|
7327
7169
|
}
|
|
7328
|
-
|
|
7170
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, fileURLToPath, "fileURLToPath");
|
|
7329
7171
|
function pathToFileURL(id) {
|
|
7330
7172
|
return _url.pathToFileURL.call(void 0, fileURLToPath(id)).toString();
|
|
7331
7173
|
}
|
|
7332
|
-
|
|
7174
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, pathToFileURL, "pathToFileURL");
|
|
7333
7175
|
function normalizeid(id) {
|
|
7334
7176
|
if (typeof id !== "string") {
|
|
7335
7177
|
id = id.toString();
|
|
@@ -7342,7 +7184,7 @@ function normalizeid(id) {
|
|
|
7342
7184
|
}
|
|
7343
7185
|
return "file://" + encodeURI(normalizeSlash(id));
|
|
7344
7186
|
}
|
|
7345
|
-
|
|
7187
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, normalizeid, "normalizeid");
|
|
7346
7188
|
var DEFAULT_CONDITIONS_SET = /* @__PURE__ */ new Set(["node", "import"]);
|
|
7347
7189
|
var DEFAULT_EXTENSIONS = [".mjs", ".cjs", ".js", ".json"];
|
|
7348
7190
|
var NOT_FOUND_ERRORS = /* @__PURE__ */ new Set([
|
|
@@ -7360,7 +7202,7 @@ function _tryModuleResolve(id, url, conditions) {
|
|
|
7360
7202
|
}
|
|
7361
7203
|
}
|
|
7362
7204
|
}
|
|
7363
|
-
|
|
7205
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, _tryModuleResolve, "_tryModuleResolve");
|
|
7364
7206
|
function _resolve(id, options = {}) {
|
|
7365
7207
|
if (typeof id !== "string") {
|
|
7366
7208
|
if (id instanceof URL) {
|
|
@@ -7378,7 +7220,7 @@ function _resolve(id, options = {}) {
|
|
|
7378
7220
|
if (id.startsWith("file://")) {
|
|
7379
7221
|
id = fileURLToPath(id);
|
|
7380
7222
|
}
|
|
7381
|
-
if (
|
|
7223
|
+
if (isAbsolute(id)) {
|
|
7382
7224
|
try {
|
|
7383
7225
|
const stat = _fs.statSync.call(void 0, id);
|
|
7384
7226
|
if (stat.isFile()) {
|
|
@@ -7441,15 +7283,15 @@ function _resolve(id, options = {}) {
|
|
|
7441
7283
|
}
|
|
7442
7284
|
return pathToFileURL(resolved);
|
|
7443
7285
|
}
|
|
7444
|
-
|
|
7286
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, _resolve, "_resolve");
|
|
7445
7287
|
function resolveSync(id, options) {
|
|
7446
7288
|
return _resolve(id, options);
|
|
7447
7289
|
}
|
|
7448
|
-
|
|
7290
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolveSync, "resolveSync");
|
|
7449
7291
|
function resolvePathSync(id, options) {
|
|
7450
7292
|
return fileURLToPath(resolveSync(id, options));
|
|
7451
7293
|
}
|
|
7452
|
-
|
|
7294
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolvePathSync, "resolvePathSync");
|
|
7453
7295
|
function resolvePath(id, options) {
|
|
7454
7296
|
try {
|
|
7455
7297
|
return Promise.resolve(resolvePathSync(id, options));
|
|
@@ -7457,17 +7299,17 @@ function resolvePath(id, options) {
|
|
|
7457
7299
|
return Promise.reject(error);
|
|
7458
7300
|
}
|
|
7459
7301
|
}
|
|
7460
|
-
|
|
7302
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolvePath, "resolvePath");
|
|
7461
7303
|
|
|
7462
7304
|
// ../../node_modules/.pnpm/confbox@0.1.8/node_modules/confbox/dist/index.mjs
|
|
7463
|
-
|
|
7305
|
+
_chunkEVP6BIDZcjs.init_cjs_shims.call(void 0, );
|
|
7464
7306
|
|
|
7465
7307
|
// ../../node_modules/.pnpm/pkg-types@1.3.1/node_modules/pkg-types/dist/index.mjs
|
|
7466
7308
|
var defaultFindOptions = {
|
|
7467
7309
|
startingFrom: ".",
|
|
7468
7310
|
rootPattern: /^node_modules$/,
|
|
7469
7311
|
reverse: false,
|
|
7470
|
-
test: /* @__PURE__ */
|
|
7312
|
+
test: /* @__PURE__ */ _chunkEVP6BIDZcjs.__name.call(void 0, (filePath) => {
|
|
7471
7313
|
try {
|
|
7472
7314
|
if (_fs.statSync.call(void 0, filePath).isFile()) {
|
|
7473
7315
|
return true;
|
|
@@ -7479,7 +7321,7 @@ var defaultFindOptions = {
|
|
|
7479
7321
|
async function findFile(filename, _options = {}) {
|
|
7480
7322
|
const filenames = Array.isArray(filename) ? filename : [filename];
|
|
7481
7323
|
const options = { ...defaultFindOptions, ..._options };
|
|
7482
|
-
const basePath =
|
|
7324
|
+
const basePath = resolve(options.startingFrom);
|
|
7483
7325
|
const leadingSlash = basePath[0] === "/";
|
|
7484
7326
|
const segments = basePath.split("/").filter(Boolean);
|
|
7485
7327
|
if (leadingSlash) {
|
|
@@ -7492,7 +7334,7 @@ async function findFile(filename, _options = {}) {
|
|
|
7492
7334
|
if (options.reverse) {
|
|
7493
7335
|
for (let index = root + 1; index <= segments.length; index++) {
|
|
7494
7336
|
for (const filename2 of filenames) {
|
|
7495
|
-
const filePath =
|
|
7337
|
+
const filePath = join(...segments.slice(0, index), filename2);
|
|
7496
7338
|
if (await options.test(filePath)) {
|
|
7497
7339
|
return filePath;
|
|
7498
7340
|
}
|
|
@@ -7501,7 +7343,7 @@ async function findFile(filename, _options = {}) {
|
|
|
7501
7343
|
} else {
|
|
7502
7344
|
for (let index = segments.length; index > root; index--) {
|
|
7503
7345
|
for (const filename2 of filenames) {
|
|
7504
|
-
const filePath =
|
|
7346
|
+
const filePath = join(...segments.slice(0, index), filename2);
|
|
7505
7347
|
if (await options.test(filePath)) {
|
|
7506
7348
|
return filePath;
|
|
7507
7349
|
}
|
|
@@ -7512,11 +7354,11 @@ async function findFile(filename, _options = {}) {
|
|
|
7512
7354
|
`Cannot find matching ${filename} in ${options.startingFrom} or parent directories`
|
|
7513
7355
|
);
|
|
7514
7356
|
}
|
|
7515
|
-
|
|
7357
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, findFile, "findFile");
|
|
7516
7358
|
function findNearestFile(filename, _options = {}) {
|
|
7517
7359
|
return findFile(filename, _options);
|
|
7518
7360
|
}
|
|
7519
|
-
|
|
7361
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, findNearestFile, "findNearestFile");
|
|
7520
7362
|
var FileCache = /* @__PURE__ */ new Map();
|
|
7521
7363
|
async function readPackageJSON(id, options = {}) {
|
|
7522
7364
|
const resolvedPath = await resolvePackageJSON(id, options);
|
|
@@ -7527,22 +7369,22 @@ async function readPackageJSON(id, options = {}) {
|
|
|
7527
7369
|
const blob = await _fs.promises.readFile(resolvedPath, "utf8");
|
|
7528
7370
|
let parsed;
|
|
7529
7371
|
try {
|
|
7530
|
-
parsed =
|
|
7372
|
+
parsed = _chunkEE6YDWP4cjs.x.call(void 0, blob);
|
|
7531
7373
|
} catch (e6) {
|
|
7532
|
-
parsed =
|
|
7374
|
+
parsed = _chunkEE6YDWP4cjs.h.call(void 0, blob);
|
|
7533
7375
|
}
|
|
7534
7376
|
cache2.set(resolvedPath, parsed);
|
|
7535
7377
|
return parsed;
|
|
7536
7378
|
}
|
|
7537
|
-
|
|
7379
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, readPackageJSON, "readPackageJSON");
|
|
7538
7380
|
async function resolvePackageJSON(id = process.cwd(), options = {}) {
|
|
7539
|
-
const resolvedPath =
|
|
7381
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7540
7382
|
return findNearestFile("package.json", {
|
|
7541
7383
|
startingFrom: resolvedPath,
|
|
7542
7384
|
...options
|
|
7543
7385
|
});
|
|
7544
7386
|
}
|
|
7545
|
-
|
|
7387
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolvePackageJSON, "resolvePackageJSON");
|
|
7546
7388
|
var lockFiles = [
|
|
7547
7389
|
"yarn.lock",
|
|
7548
7390
|
"package-lock.json",
|
|
@@ -7552,7 +7394,7 @@ var lockFiles = [
|
|
|
7552
7394
|
"bun.lock"
|
|
7553
7395
|
];
|
|
7554
7396
|
async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
7555
|
-
const resolvedPath =
|
|
7397
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7556
7398
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
7557
7399
|
try {
|
|
7558
7400
|
return await findNearestFile(lockFiles, _options);
|
|
@@ -7560,13 +7402,13 @@ async function resolveLockfile(id = process.cwd(), options = {}) {
|
|
|
7560
7402
|
}
|
|
7561
7403
|
throw new Error("No lockfile found from " + id);
|
|
7562
7404
|
}
|
|
7563
|
-
|
|
7405
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, resolveLockfile, "resolveLockfile");
|
|
7564
7406
|
async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
7565
|
-
const resolvedPath =
|
|
7407
|
+
const resolvedPath = isAbsolute(id) ? id : await resolvePath(id, options);
|
|
7566
7408
|
const _options = { startingFrom: resolvedPath, ...options };
|
|
7567
7409
|
try {
|
|
7568
7410
|
const r2 = await findNearestFile(".git/config", _options);
|
|
7569
|
-
return
|
|
7411
|
+
return resolve(r2, "../..");
|
|
7570
7412
|
} catch (e8) {
|
|
7571
7413
|
}
|
|
7572
7414
|
try {
|
|
@@ -7574,18 +7416,17 @@ async function findWorkspaceDir(id = process.cwd(), options = {}) {
|
|
|
7574
7416
|
..._options,
|
|
7575
7417
|
reverse: true
|
|
7576
7418
|
});
|
|
7577
|
-
return
|
|
7419
|
+
return dirname(r2);
|
|
7578
7420
|
} catch (e9) {
|
|
7579
7421
|
}
|
|
7580
7422
|
try {
|
|
7581
7423
|
const r2 = await findFile(resolvedPath, _options);
|
|
7582
|
-
return
|
|
7424
|
+
return dirname(r2);
|
|
7583
7425
|
} catch (e10) {
|
|
7584
7426
|
}
|
|
7585
7427
|
throw new Error("Cannot detect workspace root from " + id);
|
|
7586
7428
|
}
|
|
7587
|
-
|
|
7588
|
-
|
|
7429
|
+
_chunkEVP6BIDZcjs.__name.call(void 0, findWorkspaceDir, "findWorkspaceDir");
|
|
7589
7430
|
|
|
7590
7431
|
|
|
7591
7432
|
|
|
@@ -7598,4 +7439,4 @@ _chunkEM6PLOYYcjs.__name.call(void 0, findWorkspaceDir, "findWorkspaceDir");
|
|
|
7598
7439
|
|
|
7599
7440
|
|
|
7600
7441
|
|
|
7601
|
-
exports.normalize = normalize; exports.join = join; exports.resolve = resolve; exports.
|
|
7442
|
+
exports.normalize = normalize; exports.join = join; exports.resolve = resolve; exports.relative = relative; exports.dirname = dirname; exports.basename = basename; exports.readPackageJSON = readPackageJSON; exports.findWorkspaceDir = findWorkspaceDir; exports.fileURLToPath = fileURLToPath; exports.defu = defu;
|