vite-plugin-vue-devtools 8.0.6 → 8.0.7
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/client/assets/{IconTitle.vue_vue_type_script_setup_true_lang-CpX2D0eB.js → IconTitle.vue_vue_type_script_setup_true_lang-DWMTtST_.js} +1 -1
- package/client/assets/{SectionBlock-AVyx7eI3.js → SectionBlock-FW2e-EfO.js} +1 -1
- package/client/assets/{assets-DQ5t0Lyv.js → assets-BdWpWia9.js} +1 -1
- package/client/assets/components-BJTYv_f2.js +1 -0
- package/client/assets/{custom-inspector-tab-view--xvNl1tr.js → custom-inspector-tab-view-jNKZjEFE.js} +1 -1
- package/client/assets/{custom-tab-view-Dj55ko4k.js → custom-tab-view-Djz5OIIA.js} +1 -1
- package/client/assets/{graph-OcNja-b1.js → graph-CCabbOi3.js} +1 -1
- package/client/assets/{index-lUvZHcVj.css → index-DHoFh1q_.css} +1 -1
- package/client/assets/{index-BSzMGd0T.js → index-E3YKiktg.js} +220 -220
- package/client/assets/{overview-Db00jfdl.js → overview-Bb5V6n6L.js} +1 -1
- package/client/assets/{pages-D8jrLM3L.js → pages-D0Xl3qvp.js} +1 -1
- package/client/assets/pinia-BoMbl4iP.js +1 -0
- package/client/assets/{router-B_oZ_D-R.js → router-CZ5CeOIc.js} +1 -1
- package/client/assets/{settings-CE60W7is.js → settings-BruolvbP.js} +1 -1
- package/client/assets/{timeline-DLJJg6FW.js → timeline-Bzqsvc_i.js} +1 -1
- package/client/index.html +1 -1
- package/dist/vite.cjs +872 -869
- package/dist/vite.js +866 -863
- package/package.json +5 -5
- package/src/overlay/devtools-overlay.mjs +3 -3
- package/client/assets/components-D5nEERiq.js +0 -1
- package/client/assets/pinia-CkkNceK-.js +0 -1
package/dist/vite.cjs
CHANGED
|
@@ -5,16 +5,18 @@ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
|
5
5
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
6
|
var __getProtoOf = Object.getPrototypeOf;
|
|
7
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var
|
|
9
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
10
|
-
};
|
|
8
|
+
var __commonJSMin = (cb, mod) => () => (mod || cb((mod = { exports: {} }).exports, mod), mod.exports);
|
|
11
9
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function")
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
10
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
11
|
+
for (var keys$1 = __getOwnPropNames(from), i = 0, n = keys$1.length, key; i < n; i++) {
|
|
12
|
+
key = keys$1[i];
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
14
|
+
__defProp(to, key, {
|
|
15
|
+
get: ((k) => from[k]).bind(null, key),
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
}
|
|
18
20
|
}
|
|
19
21
|
return to;
|
|
20
22
|
};
|
|
@@ -29,8 +31,8 @@ node_fs = __toESM(node_fs);
|
|
|
29
31
|
let node_path = require("node:path");
|
|
30
32
|
node_path = __toESM(node_path);
|
|
31
33
|
let node_url = require("node:url");
|
|
32
|
-
let
|
|
33
|
-
let
|
|
34
|
+
let _vue_devtools_core = require("@vue/devtools-core");
|
|
35
|
+
let _vue_devtools_kit = require("@vue/devtools-kit");
|
|
34
36
|
let sirv = require("sirv");
|
|
35
37
|
sirv = __toESM(sirv);
|
|
36
38
|
let vite = require("vite");
|
|
@@ -128,7 +130,7 @@ const DIR_CLIENT = (0, node_path.resolve)(DIR_DIST, "../client");
|
|
|
128
130
|
|
|
129
131
|
//#endregion
|
|
130
132
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
131
|
-
var require_array = /* @__PURE__ */
|
|
133
|
+
var require_array = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
132
134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
133
135
|
exports.splitWhen = exports.flatten = void 0;
|
|
134
136
|
function flatten(items) {
|
|
@@ -145,25 +147,25 @@ var require_array = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
145
147
|
return result;
|
|
146
148
|
}
|
|
147
149
|
exports.splitWhen = splitWhen;
|
|
148
|
-
})
|
|
150
|
+
}));
|
|
149
151
|
|
|
150
152
|
//#endregion
|
|
151
153
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
152
|
-
var require_errno = /* @__PURE__ */
|
|
154
|
+
var require_errno = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
153
155
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
154
156
|
exports.isEnoentCodeError = void 0;
|
|
155
157
|
function isEnoentCodeError(error) {
|
|
156
158
|
return error.code === "ENOENT";
|
|
157
159
|
}
|
|
158
160
|
exports.isEnoentCodeError = isEnoentCodeError;
|
|
159
|
-
})
|
|
161
|
+
}));
|
|
160
162
|
|
|
161
163
|
//#endregion
|
|
162
164
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
163
|
-
var require_fs$3 = /* @__PURE__ */
|
|
165
|
+
var require_fs$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
164
166
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
165
167
|
exports.createDirentFromStats = void 0;
|
|
166
|
-
var DirentFromStats
|
|
168
|
+
var DirentFromStats = class {
|
|
167
169
|
constructor(name, stats) {
|
|
168
170
|
this.name = name;
|
|
169
171
|
this.isBlockDevice = stats.isBlockDevice.bind(stats);
|
|
@@ -175,19 +177,19 @@ var require_fs$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
175
177
|
this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
|
|
176
178
|
}
|
|
177
179
|
};
|
|
178
|
-
function createDirentFromStats
|
|
179
|
-
return new DirentFromStats
|
|
180
|
+
function createDirentFromStats(name, stats) {
|
|
181
|
+
return new DirentFromStats(name, stats);
|
|
180
182
|
}
|
|
181
|
-
exports.createDirentFromStats = createDirentFromStats
|
|
182
|
-
})
|
|
183
|
+
exports.createDirentFromStats = createDirentFromStats;
|
|
184
|
+
}));
|
|
183
185
|
|
|
184
186
|
//#endregion
|
|
185
187
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
186
|
-
var require_path = /* @__PURE__ */
|
|
188
|
+
var require_path = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
187
189
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
188
190
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
189
191
|
const os$1 = require("os");
|
|
190
|
-
const path$
|
|
192
|
+
const path$9 = require("path");
|
|
191
193
|
const IS_WINDOWS_PLATFORM = os$1.platform() === "win32";
|
|
192
194
|
const LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2;
|
|
193
195
|
/**
|
|
@@ -216,7 +218,7 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
216
218
|
}
|
|
217
219
|
exports.unixify = unixify;
|
|
218
220
|
function makeAbsolute(cwd$1, filepath) {
|
|
219
|
-
return path$
|
|
221
|
+
return path$9.resolve(cwd$1, filepath);
|
|
220
222
|
}
|
|
221
223
|
exports.makeAbsolute = makeAbsolute;
|
|
222
224
|
function removeLeadingDotSegment(entry) {
|
|
@@ -228,12 +230,12 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
228
230
|
}
|
|
229
231
|
exports.removeLeadingDotSegment = removeLeadingDotSegment;
|
|
230
232
|
exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
|
|
231
|
-
function escapeWindowsPath(pattern
|
|
232
|
-
return pattern
|
|
233
|
+
function escapeWindowsPath(pattern) {
|
|
234
|
+
return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
233
235
|
}
|
|
234
236
|
exports.escapeWindowsPath = escapeWindowsPath;
|
|
235
|
-
function escapePosixPath(pattern
|
|
236
|
-
return pattern
|
|
237
|
+
function escapePosixPath(pattern) {
|
|
238
|
+
return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
|
|
237
239
|
}
|
|
238
240
|
exports.escapePosixPath = escapePosixPath;
|
|
239
241
|
exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
|
|
@@ -245,18 +247,18 @@ var require_path = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
245
247
|
return escapePosixPath(filepath);
|
|
246
248
|
}
|
|
247
249
|
exports.convertPosixPathToPattern = convertPosixPathToPattern;
|
|
248
|
-
})
|
|
250
|
+
}));
|
|
249
251
|
|
|
250
252
|
//#endregion
|
|
251
253
|
//#region ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
|
|
252
|
-
var require_is_extglob = /* @__PURE__ */
|
|
254
|
+
var require_is_extglob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
253
255
|
/*!
|
|
254
256
|
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
255
257
|
*
|
|
256
258
|
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
257
259
|
* Licensed under the MIT License.
|
|
258
260
|
*/
|
|
259
|
-
module.exports = function isExtglob
|
|
261
|
+
module.exports = function isExtglob(str) {
|
|
260
262
|
if (typeof str !== "string" || str === "") return false;
|
|
261
263
|
var match;
|
|
262
264
|
while (match = /(\\).|([@?!+*]\(.*\))/g.exec(str)) {
|
|
@@ -265,11 +267,11 @@ var require_is_extglob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
265
267
|
}
|
|
266
268
|
return false;
|
|
267
269
|
};
|
|
268
|
-
})
|
|
270
|
+
}));
|
|
269
271
|
|
|
270
272
|
//#endregion
|
|
271
273
|
//#region ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
|
|
272
|
-
var require_is_glob = /* @__PURE__ */
|
|
274
|
+
var require_is_glob = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
273
275
|
/*!
|
|
274
276
|
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
275
277
|
*
|
|
@@ -356,18 +358,18 @@ var require_is_glob = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/is-
|
|
|
356
358
|
}
|
|
357
359
|
return false;
|
|
358
360
|
};
|
|
359
|
-
module.exports = function isGlob
|
|
361
|
+
module.exports = function isGlob(str, options$1) {
|
|
360
362
|
if (typeof str !== "string" || str === "") return false;
|
|
361
363
|
if (isExtglob(str)) return true;
|
|
362
364
|
var check = strictCheck;
|
|
363
365
|
if (options$1 && options$1.strict === false) check = relaxedCheck;
|
|
364
366
|
return check(str);
|
|
365
367
|
};
|
|
366
|
-
})
|
|
368
|
+
}));
|
|
367
369
|
|
|
368
370
|
//#endregion
|
|
369
371
|
//#region ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
|
|
370
|
-
var require_glob_parent = /* @__PURE__ */
|
|
372
|
+
var require_glob_parent = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
371
373
|
var isGlob = require_is_glob();
|
|
372
374
|
var pathPosixDirname = require("path").posix.dirname;
|
|
373
375
|
var isWin32 = require("os").platform() === "win32";
|
|
@@ -382,7 +384,7 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
382
384
|
* @param {boolean} [opts.flipBackslashes=true]
|
|
383
385
|
* @returns {string}
|
|
384
386
|
*/
|
|
385
|
-
module.exports = function globParent
|
|
387
|
+
module.exports = function globParent(str, opts) {
|
|
386
388
|
if (Object.assign({ flipBackslashes: true }, opts).flipBackslashes && isWin32 && str.indexOf(slash) < 0) str = str.replace(backslash, slash);
|
|
387
389
|
if (enclosure.test(str)) str += slash;
|
|
388
390
|
str += "a";
|
|
@@ -391,11 +393,11 @@ var require_glob_parent = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
391
393
|
while (isGlob(str) || globby.test(str));
|
|
392
394
|
return str.replace(escaped, "$1");
|
|
393
395
|
};
|
|
394
|
-
})
|
|
396
|
+
}));
|
|
395
397
|
|
|
396
398
|
//#endregion
|
|
397
399
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
398
|
-
var require_utils$3 = /* @__PURE__ */
|
|
400
|
+
var require_utils$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
399
401
|
exports.isInteger = (num) => {
|
|
400
402
|
if (typeof num === "number") return Number.isInteger(num);
|
|
401
403
|
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
@@ -487,28 +489,28 @@ var require_utils$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
487
489
|
flat(args);
|
|
488
490
|
return result;
|
|
489
491
|
};
|
|
490
|
-
})
|
|
492
|
+
}));
|
|
491
493
|
|
|
492
494
|
//#endregion
|
|
493
495
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
494
|
-
var require_stringify = /* @__PURE__ */
|
|
495
|
-
const utils
|
|
496
|
+
var require_stringify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
497
|
+
const utils = require_utils$3();
|
|
496
498
|
module.exports = (ast, options$1 = {}) => {
|
|
497
|
-
const stringify
|
|
498
|
-
const invalidBlock = options$1.escapeInvalid && utils
|
|
499
|
+
const stringify = (node, parent = {}) => {
|
|
500
|
+
const invalidBlock = options$1.escapeInvalid && utils.isInvalidBrace(parent);
|
|
499
501
|
const invalidNode = node.invalid === true && options$1.escapeInvalid === true;
|
|
500
502
|
let output = "";
|
|
501
503
|
if (node.value) {
|
|
502
|
-
if ((invalidBlock || invalidNode) && utils
|
|
504
|
+
if ((invalidBlock || invalidNode) && utils.isOpenOrClose(node)) return "\\" + node.value;
|
|
503
505
|
return node.value;
|
|
504
506
|
}
|
|
505
507
|
if (node.value) return node.value;
|
|
506
|
-
if (node.nodes) for (const child of node.nodes) output += stringify
|
|
508
|
+
if (node.nodes) for (const child of node.nodes) output += stringify(child);
|
|
507
509
|
return output;
|
|
508
510
|
};
|
|
509
|
-
return stringify
|
|
511
|
+
return stringify(ast);
|
|
510
512
|
};
|
|
511
|
-
})
|
|
513
|
+
}));
|
|
512
514
|
|
|
513
515
|
//#endregion
|
|
514
516
|
//#region ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
|
|
@@ -518,13 +520,13 @@ var require_stringify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/b
|
|
|
518
520
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
519
521
|
* Released under the MIT License.
|
|
520
522
|
*/
|
|
521
|
-
var require_is_number = /* @__PURE__ */
|
|
523
|
+
var require_is_number = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
522
524
|
module.exports = function(num) {
|
|
523
525
|
if (typeof num === "number") return num - num === 0;
|
|
524
526
|
if (typeof num === "string" && num.trim() !== "") return Number.isFinite ? Number.isFinite(+num) : isFinite(+num);
|
|
525
527
|
return false;
|
|
526
528
|
};
|
|
527
|
-
})
|
|
529
|
+
}));
|
|
528
530
|
|
|
529
531
|
//#endregion
|
|
530
532
|
//#region ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
|
|
@@ -534,12 +536,12 @@ var require_is_number = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/i
|
|
|
534
536
|
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
535
537
|
* Released under the MIT License.
|
|
536
538
|
*/
|
|
537
|
-
var require_to_regex_range = /* @__PURE__ */
|
|
538
|
-
const isNumber
|
|
539
|
-
const toRegexRange
|
|
540
|
-
if (isNumber
|
|
539
|
+
var require_to_regex_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
540
|
+
const isNumber = require_is_number();
|
|
541
|
+
const toRegexRange = (min, max, options$1) => {
|
|
542
|
+
if (isNumber(min) === false) throw new TypeError("toRegexRange: expected the first argument to be a number");
|
|
541
543
|
if (max === void 0 || min === max) return String(min);
|
|
542
|
-
if (isNumber
|
|
544
|
+
if (isNumber(max) === false) throw new TypeError("toRegexRange: expected the second argument to be a number.");
|
|
543
545
|
let opts = {
|
|
544
546
|
relaxZeros: true,
|
|
545
547
|
...options$1
|
|
@@ -550,7 +552,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
550
552
|
let capture = String(opts.capture);
|
|
551
553
|
let wrap = String(opts.wrap);
|
|
552
554
|
let cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
|
|
553
|
-
if (toRegexRange
|
|
555
|
+
if (toRegexRange.cache.hasOwnProperty(cacheKey)) return toRegexRange.cache[cacheKey].result;
|
|
554
556
|
let a = Math.min(min, max);
|
|
555
557
|
let b = Math.max(min, max);
|
|
556
558
|
if (Math.abs(a - b) === 1) {
|
|
@@ -582,7 +584,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
582
584
|
state.result = collatePatterns(negatives, positives, opts);
|
|
583
585
|
if (opts.capture === true) state.result = `(${state.result})`;
|
|
584
586
|
else if (opts.wrap !== false && positives.length + negatives.length > 1) state.result = `(?:${state.result})`;
|
|
585
|
-
toRegexRange
|
|
587
|
+
toRegexRange.cache[cacheKey] = state;
|
|
586
588
|
return state.result;
|
|
587
589
|
};
|
|
588
590
|
function collatePatterns(neg, pos, options$1) {
|
|
@@ -593,7 +595,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
593
595
|
}
|
|
594
596
|
function splitToRanges(min, max) {
|
|
595
597
|
let nines = 1;
|
|
596
|
-
let zeros
|
|
598
|
+
let zeros = 1;
|
|
597
599
|
let stop = countNines(min, nines);
|
|
598
600
|
let stops = new Set([max]);
|
|
599
601
|
while (min <= stop && stop <= max) {
|
|
@@ -601,11 +603,11 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
601
603
|
nines += 1;
|
|
602
604
|
stop = countNines(min, nines);
|
|
603
605
|
}
|
|
604
|
-
stop = countZeros(max + 1, zeros
|
|
606
|
+
stop = countZeros(max + 1, zeros) - 1;
|
|
605
607
|
while (min < stop && stop <= max) {
|
|
606
608
|
stops.add(stop);
|
|
607
|
-
zeros
|
|
608
|
-
stop = countZeros(max + 1, zeros
|
|
609
|
+
zeros += 1;
|
|
610
|
+
stop = countZeros(max + 1, zeros) - 1;
|
|
609
611
|
}
|
|
610
612
|
stops = [...stops];
|
|
611
613
|
stops.sort(compare);
|
|
@@ -625,17 +627,17 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
625
627
|
};
|
|
626
628
|
let zipped = zip(start, stop);
|
|
627
629
|
let digits = zipped.length;
|
|
628
|
-
let pattern
|
|
630
|
+
let pattern = "";
|
|
629
631
|
let count = 0;
|
|
630
632
|
for (let i = 0; i < digits; i++) {
|
|
631
633
|
let [startDigit, stopDigit] = zipped[i];
|
|
632
|
-
if (startDigit === stopDigit) pattern
|
|
633
|
-
else if (startDigit !== "0" || stopDigit !== "9") pattern
|
|
634
|
+
if (startDigit === stopDigit) pattern += startDigit;
|
|
635
|
+
else if (startDigit !== "0" || stopDigit !== "9") pattern += toCharacterClass(startDigit, stopDigit, options$1);
|
|
634
636
|
else count++;
|
|
635
637
|
}
|
|
636
|
-
if (count) pattern
|
|
638
|
+
if (count) pattern += options$1.shorthand === true ? "\\d" : "[0-9]";
|
|
637
639
|
return {
|
|
638
|
-
pattern
|
|
640
|
+
pattern,
|
|
639
641
|
count: [count],
|
|
640
642
|
digits
|
|
641
643
|
};
|
|
@@ -648,7 +650,7 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
648
650
|
for (let i = 0; i < ranges.length; i++) {
|
|
649
651
|
let max$1 = ranges[i];
|
|
650
652
|
let obj = rangeToPattern(String(start), String(max$1), options$1);
|
|
651
|
-
let zeros
|
|
653
|
+
let zeros = "";
|
|
652
654
|
if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
|
|
653
655
|
if (prev.count.length > 1) prev.count.pop();
|
|
654
656
|
prev.count.push(obj.count[0]);
|
|
@@ -656,8 +658,8 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
656
658
|
start = max$1 + 1;
|
|
657
659
|
continue;
|
|
658
660
|
}
|
|
659
|
-
if (tok.isPadded) zeros
|
|
660
|
-
obj.string = zeros
|
|
661
|
+
if (tok.isPadded) zeros = padZeros(max$1, tok, options$1);
|
|
662
|
+
obj.string = zeros + obj.pattern + toQuantifier(obj.count);
|
|
661
663
|
tokens.push(obj);
|
|
662
664
|
start = max$1 + 1;
|
|
663
665
|
prev = obj;
|
|
@@ -667,9 +669,9 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
667
669
|
function filterPatterns(arr, comparison, prefix, intersection, options$1) {
|
|
668
670
|
let result = [];
|
|
669
671
|
for (let ele of arr) {
|
|
670
|
-
let { string
|
|
671
|
-
if (!intersection && !contains(comparison, "string", string
|
|
672
|
-
if (intersection && contains(comparison, "string", string
|
|
672
|
+
let { string } = ele;
|
|
673
|
+
if (!intersection && !contains(comparison, "string", string)) result.push(prefix + string);
|
|
674
|
+
if (intersection && contains(comparison, "string", string)) result.push(prefix + string);
|
|
673
675
|
}
|
|
674
676
|
return result;
|
|
675
677
|
}
|
|
@@ -690,8 +692,8 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
690
692
|
function countNines(min, len) {
|
|
691
693
|
return Number(String(min).slice(0, -len) + "9".repeat(len));
|
|
692
694
|
}
|
|
693
|
-
function countZeros(integer, zeros
|
|
694
|
-
return integer - integer % Math.pow(10, zeros
|
|
695
|
+
function countZeros(integer, zeros) {
|
|
696
|
+
return integer - integer % Math.pow(10, zeros);
|
|
695
697
|
}
|
|
696
698
|
function toQuantifier(digits) {
|
|
697
699
|
let [start = 0, stop = ""] = digits;
|
|
@@ -718,13 +720,13 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
718
720
|
/**
|
|
719
721
|
* Cache
|
|
720
722
|
*/
|
|
721
|
-
toRegexRange
|
|
722
|
-
toRegexRange
|
|
723
|
+
toRegexRange.cache = {};
|
|
724
|
+
toRegexRange.clearCache = () => toRegexRange.cache = {};
|
|
723
725
|
/**
|
|
724
726
|
* Expose `toRegexRange`
|
|
725
727
|
*/
|
|
726
|
-
module.exports = toRegexRange
|
|
727
|
-
})
|
|
728
|
+
module.exports = toRegexRange;
|
|
729
|
+
}));
|
|
728
730
|
|
|
729
731
|
//#endregion
|
|
730
732
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
@@ -734,10 +736,10 @@ var require_to_regex_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.p
|
|
|
734
736
|
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
735
737
|
* Licensed under the MIT License.
|
|
736
738
|
*/
|
|
737
|
-
var require_fill_range = /* @__PURE__ */
|
|
739
|
+
var require_fill_range = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
738
740
|
const util$1 = require("util");
|
|
739
741
|
const toRegexRange = require_to_regex_range();
|
|
740
|
-
const isObject
|
|
742
|
+
const isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
741
743
|
const transform = (toNumber) => {
|
|
742
744
|
return (value) => toNumber === true ? Number(value) : String(value);
|
|
743
745
|
};
|
|
@@ -753,7 +755,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
753
755
|
while (value[++index] === "0");
|
|
754
756
|
return index > 0;
|
|
755
757
|
};
|
|
756
|
-
const stringify
|
|
758
|
+
const stringify = (start, end, options$1) => {
|
|
757
759
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
758
760
|
return options$1.stringify === true;
|
|
759
761
|
};
|
|
@@ -833,7 +835,7 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
833
835
|
step = Math.max(Math.abs(step), 1);
|
|
834
836
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
835
837
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
836
|
-
let toNumber = padded === false && stringify
|
|
838
|
+
let toNumber = padded === false && stringify(start, end, options$1) === false;
|
|
837
839
|
let format = options$1.transform || transform(toNumber);
|
|
838
840
|
if (options$1.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options$1);
|
|
839
841
|
let parts = {
|
|
@@ -877,32 +879,32 @@ var require_fill_range = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
877
879
|
});
|
|
878
880
|
return range;
|
|
879
881
|
};
|
|
880
|
-
const fill
|
|
882
|
+
const fill = (start, end, step, options$1 = {}) => {
|
|
881
883
|
if (end == null && isValidValue(start)) return [start];
|
|
882
884
|
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options$1);
|
|
883
|
-
if (typeof step === "function") return fill
|
|
884
|
-
if (isObject
|
|
885
|
+
if (typeof step === "function") return fill(start, end, 1, { transform: step });
|
|
886
|
+
if (isObject(step)) return fill(start, end, 0, step);
|
|
885
887
|
let opts = { ...options$1 };
|
|
886
888
|
if (opts.capture === true) opts.wrap = true;
|
|
887
889
|
step = step || opts.step || 1;
|
|
888
890
|
if (!isNumber(step)) {
|
|
889
|
-
if (step != null && !isObject
|
|
890
|
-
return fill
|
|
891
|
+
if (step != null && !isObject(step)) return invalidStep(step, opts);
|
|
892
|
+
return fill(start, end, 1, step);
|
|
891
893
|
}
|
|
892
894
|
if (isNumber(start) && isNumber(end)) return fillNumbers(start, end, step, opts);
|
|
893
895
|
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
894
896
|
};
|
|
895
|
-
module.exports = fill
|
|
896
|
-
})
|
|
897
|
+
module.exports = fill;
|
|
898
|
+
}));
|
|
897
899
|
|
|
898
900
|
//#endregion
|
|
899
901
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
900
|
-
var require_compile = /* @__PURE__ */
|
|
901
|
-
const fill
|
|
902
|
-
const utils
|
|
903
|
-
const compile
|
|
904
|
-
const walk
|
|
905
|
-
const invalidBlock = utils
|
|
902
|
+
var require_compile = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
903
|
+
const fill = require_fill_range();
|
|
904
|
+
const utils = require_utils$3();
|
|
905
|
+
const compile = (ast, options$1 = {}) => {
|
|
906
|
+
const walk = (node, parent = {}) => {
|
|
907
|
+
const invalidBlock = utils.isInvalidBrace(parent);
|
|
906
908
|
const invalidNode = node.invalid === true && options$1.escapeInvalid === true;
|
|
907
909
|
const invalid = invalidBlock === true || invalidNode === true;
|
|
908
910
|
const prefix = options$1.escapeInvalid === true ? "\\" : "";
|
|
@@ -917,8 +919,8 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
917
919
|
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
918
920
|
if (node.value) return node.value;
|
|
919
921
|
if (node.nodes && node.ranges > 0) {
|
|
920
|
-
const args = utils
|
|
921
|
-
const range = fill
|
|
922
|
+
const args = utils.reduce(node.nodes);
|
|
923
|
+
const range = fill(...args, {
|
|
922
924
|
...options$1,
|
|
923
925
|
wrap: false,
|
|
924
926
|
toRegex: true,
|
|
@@ -926,36 +928,36 @@ var require_compile = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
926
928
|
});
|
|
927
929
|
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
928
930
|
}
|
|
929
|
-
if (node.nodes) for (const child of node.nodes) output += walk
|
|
931
|
+
if (node.nodes) for (const child of node.nodes) output += walk(child, node);
|
|
930
932
|
return output;
|
|
931
933
|
};
|
|
932
|
-
return walk
|
|
934
|
+
return walk(ast);
|
|
933
935
|
};
|
|
934
|
-
module.exports = compile
|
|
935
|
-
})
|
|
936
|
+
module.exports = compile;
|
|
937
|
+
}));
|
|
936
938
|
|
|
937
939
|
//#endregion
|
|
938
940
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
939
|
-
var require_expand = /* @__PURE__ */
|
|
941
|
+
var require_expand = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
940
942
|
const fill = require_fill_range();
|
|
941
|
-
const stringify
|
|
942
|
-
const utils
|
|
943
|
+
const stringify = require_stringify();
|
|
944
|
+
const utils = require_utils$3();
|
|
943
945
|
const append = (queue = "", stash = "", enclose = false) => {
|
|
944
946
|
const result = [];
|
|
945
947
|
queue = [].concat(queue);
|
|
946
948
|
stash = [].concat(stash);
|
|
947
949
|
if (!stash.length) return queue;
|
|
948
|
-
if (!queue.length) return enclose ? utils
|
|
950
|
+
if (!queue.length) return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
949
951
|
for (const item of queue) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
950
952
|
else for (let ele of stash) {
|
|
951
953
|
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
952
954
|
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
953
955
|
}
|
|
954
|
-
return utils
|
|
956
|
+
return utils.flatten(result);
|
|
955
957
|
};
|
|
956
|
-
const expand
|
|
958
|
+
const expand = (ast, options$1 = {}) => {
|
|
957
959
|
const rangeLimit = options$1.rangeLimit === void 0 ? 1e3 : options$1.rangeLimit;
|
|
958
|
-
const walk
|
|
960
|
+
const walk = (node, parent = {}) => {
|
|
959
961
|
node.queue = [];
|
|
960
962
|
let p = parent;
|
|
961
963
|
let q = parent.queue;
|
|
@@ -964,7 +966,7 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
964
966
|
q = p.queue;
|
|
965
967
|
}
|
|
966
968
|
if (node.invalid || node.dollar) {
|
|
967
|
-
q.push(append(q.pop(), stringify
|
|
969
|
+
q.push(append(q.pop(), stringify(node, options$1)));
|
|
968
970
|
return;
|
|
969
971
|
}
|
|
970
972
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
@@ -972,15 +974,15 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
972
974
|
return;
|
|
973
975
|
}
|
|
974
976
|
if (node.nodes && node.ranges > 0) {
|
|
975
|
-
const args = utils
|
|
976
|
-
if (utils
|
|
977
|
+
const args = utils.reduce(node.nodes);
|
|
978
|
+
if (utils.exceedsLimit(...args, options$1.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
977
979
|
let range = fill(...args, options$1);
|
|
978
|
-
if (range.length === 0) range = stringify
|
|
980
|
+
if (range.length === 0) range = stringify(node, options$1);
|
|
979
981
|
q.push(append(q.pop(), range));
|
|
980
982
|
node.nodes = [];
|
|
981
983
|
return;
|
|
982
984
|
}
|
|
983
|
-
const enclose = utils
|
|
985
|
+
const enclose = utils.encloseBrace(node);
|
|
984
986
|
let queue = node.queue;
|
|
985
987
|
let block = node;
|
|
986
988
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -1002,18 +1004,18 @@ var require_expand = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1002
1004
|
queue.push(append(queue.pop(), child.value));
|
|
1003
1005
|
continue;
|
|
1004
1006
|
}
|
|
1005
|
-
if (child.nodes) walk
|
|
1007
|
+
if (child.nodes) walk(child, node);
|
|
1006
1008
|
}
|
|
1007
1009
|
return queue;
|
|
1008
1010
|
};
|
|
1009
|
-
return utils
|
|
1011
|
+
return utils.flatten(walk(ast));
|
|
1010
1012
|
};
|
|
1011
|
-
module.exports = expand
|
|
1012
|
-
})
|
|
1013
|
+
module.exports = expand;
|
|
1014
|
+
}));
|
|
1013
1015
|
|
|
1014
1016
|
//#endregion
|
|
1015
1017
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
1016
|
-
var require_constants$2 = /* @__PURE__ */
|
|
1018
|
+
var require_constants$2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1017
1019
|
module.exports = {
|
|
1018
1020
|
MAX_LENGTH: 1e4,
|
|
1019
1021
|
CHAR_0: "0",
|
|
@@ -1061,23 +1063,23 @@ var require_constants$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1061
1063
|
CHAR_VERTICAL_LINE: "|",
|
|
1062
1064
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
1063
1065
|
};
|
|
1064
|
-
})
|
|
1066
|
+
}));
|
|
1065
1067
|
|
|
1066
1068
|
//#endregion
|
|
1067
1069
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
1068
|
-
var require_parse$1 = /* @__PURE__ */
|
|
1069
|
-
const stringify
|
|
1070
|
+
var require_parse$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1071
|
+
const stringify = require_stringify();
|
|
1070
1072
|
/**
|
|
1071
1073
|
* Constants
|
|
1072
1074
|
*/
|
|
1073
|
-
const { MAX_LENGTH
|
|
1075
|
+
const { MAX_LENGTH, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA, CHAR_DOT, CHAR_LEFT_PARENTHESES, CHAR_RIGHT_PARENTHESES, CHAR_LEFT_CURLY_BRACE, CHAR_RIGHT_CURLY_BRACE, CHAR_LEFT_SQUARE_BRACKET, CHAR_RIGHT_SQUARE_BRACKET, CHAR_DOUBLE_QUOTE, CHAR_SINGLE_QUOTE, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$2();
|
|
1074
1076
|
/**
|
|
1075
1077
|
* parse
|
|
1076
1078
|
*/
|
|
1077
|
-
const parse
|
|
1079
|
+
const parse = (input, options$1 = {}) => {
|
|
1078
1080
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
1079
1081
|
const opts = options$1 || {};
|
|
1080
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
1082
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
1081
1083
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
1082
1084
|
const ast = {
|
|
1083
1085
|
type: "root",
|
|
@@ -1090,7 +1092,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1090
1092
|
let brackets = 0;
|
|
1091
1093
|
const length = input.length;
|
|
1092
1094
|
let index = 0;
|
|
1093
|
-
let depth
|
|
1095
|
+
let depth = 0;
|
|
1094
1096
|
let value;
|
|
1095
1097
|
/**
|
|
1096
1098
|
* Helpers
|
|
@@ -1129,7 +1131,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1129
1131
|
/**
|
|
1130
1132
|
* Right square bracket (literal): ']'
|
|
1131
1133
|
*/
|
|
1132
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET
|
|
1134
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1133
1135
|
push({
|
|
1134
1136
|
type: "text",
|
|
1135
1137
|
value: "\\" + value
|
|
@@ -1139,12 +1141,12 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1139
1141
|
/**
|
|
1140
1142
|
* Left square bracket: '['
|
|
1141
1143
|
*/
|
|
1142
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET
|
|
1144
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
1143
1145
|
brackets++;
|
|
1144
1146
|
let next;
|
|
1145
1147
|
while (index < length && (next = advance())) {
|
|
1146
1148
|
value += next;
|
|
1147
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET
|
|
1149
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
1148
1150
|
brackets++;
|
|
1149
1151
|
continue;
|
|
1150
1152
|
}
|
|
@@ -1152,7 +1154,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1152
1154
|
value += advance();
|
|
1153
1155
|
continue;
|
|
1154
1156
|
}
|
|
1155
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET
|
|
1157
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1156
1158
|
brackets--;
|
|
1157
1159
|
if (brackets === 0) break;
|
|
1158
1160
|
}
|
|
@@ -1166,7 +1168,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1166
1168
|
/**
|
|
1167
1169
|
* Parentheses
|
|
1168
1170
|
*/
|
|
1169
|
-
if (value === CHAR_LEFT_PARENTHESES
|
|
1171
|
+
if (value === CHAR_LEFT_PARENTHESES) {
|
|
1170
1172
|
block = push({
|
|
1171
1173
|
type: "paren",
|
|
1172
1174
|
nodes: []
|
|
@@ -1178,7 +1180,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1178
1180
|
});
|
|
1179
1181
|
continue;
|
|
1180
1182
|
}
|
|
1181
|
-
if (value === CHAR_RIGHT_PARENTHESES
|
|
1183
|
+
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
1182
1184
|
if (block.type !== "paren") {
|
|
1183
1185
|
push({
|
|
1184
1186
|
type: "text",
|
|
@@ -1221,14 +1223,14 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1221
1223
|
/**
|
|
1222
1224
|
* Left curly brace: '{'
|
|
1223
1225
|
*/
|
|
1224
|
-
if (value === CHAR_LEFT_CURLY_BRACE
|
|
1225
|
-
depth
|
|
1226
|
+
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
1227
|
+
depth++;
|
|
1226
1228
|
block = push({
|
|
1227
1229
|
type: "brace",
|
|
1228
1230
|
open: true,
|
|
1229
1231
|
close: false,
|
|
1230
1232
|
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === true,
|
|
1231
|
-
depth
|
|
1233
|
+
depth,
|
|
1232
1234
|
commas: 0,
|
|
1233
1235
|
ranges: 0,
|
|
1234
1236
|
nodes: []
|
|
@@ -1243,7 +1245,7 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1243
1245
|
/**
|
|
1244
1246
|
* Right curly brace: '}'
|
|
1245
1247
|
*/
|
|
1246
|
-
if (value === CHAR_RIGHT_CURLY_BRACE
|
|
1248
|
+
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
1247
1249
|
if (block.type !== "brace") {
|
|
1248
1250
|
push({
|
|
1249
1251
|
type: "text",
|
|
@@ -1258,19 +1260,20 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1258
1260
|
type,
|
|
1259
1261
|
value
|
|
1260
1262
|
});
|
|
1261
|
-
depth
|
|
1263
|
+
depth--;
|
|
1262
1264
|
block = stack[stack.length - 1];
|
|
1263
1265
|
continue;
|
|
1264
1266
|
}
|
|
1265
1267
|
/**
|
|
1266
1268
|
* Comma: ','
|
|
1267
1269
|
*/
|
|
1268
|
-
if (value === CHAR_COMMA
|
|
1270
|
+
if (value === CHAR_COMMA && depth > 0) {
|
|
1269
1271
|
if (block.ranges > 0) {
|
|
1270
1272
|
block.ranges = 0;
|
|
1271
|
-
|
|
1273
|
+
const open = block.nodes.shift();
|
|
1274
|
+
block.nodes = [open, {
|
|
1272
1275
|
type: "text",
|
|
1273
|
-
value: stringify
|
|
1276
|
+
value: stringify(block)
|
|
1274
1277
|
}];
|
|
1275
1278
|
}
|
|
1276
1279
|
push({
|
|
@@ -1283,9 +1286,9 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1283
1286
|
/**
|
|
1284
1287
|
* Dot: '.'
|
|
1285
1288
|
*/
|
|
1286
|
-
if (value === CHAR_DOT
|
|
1289
|
+
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
1287
1290
|
const siblings = block.nodes;
|
|
1288
|
-
if (depth
|
|
1291
|
+
if (depth === 0 || siblings.length === 0) {
|
|
1289
1292
|
push({
|
|
1290
1293
|
type: "text",
|
|
1291
1294
|
value
|
|
@@ -1347,16 +1350,16 @@ var require_parse$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/bra
|
|
|
1347
1350
|
push({ type: "eos" });
|
|
1348
1351
|
return ast;
|
|
1349
1352
|
};
|
|
1350
|
-
module.exports = parse
|
|
1351
|
-
})
|
|
1353
|
+
module.exports = parse;
|
|
1354
|
+
}));
|
|
1352
1355
|
|
|
1353
1356
|
//#endregion
|
|
1354
1357
|
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
1355
|
-
var require_braces = /* @__PURE__ */
|
|
1358
|
+
var require_braces = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1356
1359
|
const stringify = require_stringify();
|
|
1357
1360
|
const compile = require_compile();
|
|
1358
1361
|
const expand = require_expand();
|
|
1359
|
-
const parse
|
|
1362
|
+
const parse = require_parse$1();
|
|
1360
1363
|
/**
|
|
1361
1364
|
* Expand the given pattern or create a regex-compatible string.
|
|
1362
1365
|
*
|
|
@@ -1370,14 +1373,14 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1370
1373
|
* @return {String}
|
|
1371
1374
|
* @api public
|
|
1372
1375
|
*/
|
|
1373
|
-
const braces
|
|
1376
|
+
const braces = (input, options$1 = {}) => {
|
|
1374
1377
|
let output = [];
|
|
1375
|
-
if (Array.isArray(input)) for (const pattern
|
|
1376
|
-
const result = braces
|
|
1378
|
+
if (Array.isArray(input)) for (const pattern of input) {
|
|
1379
|
+
const result = braces.create(pattern, options$1);
|
|
1377
1380
|
if (Array.isArray(result)) output.push(...result);
|
|
1378
1381
|
else output.push(result);
|
|
1379
1382
|
}
|
|
1380
|
-
else output = [].concat(braces
|
|
1383
|
+
else output = [].concat(braces.create(input, options$1));
|
|
1381
1384
|
if (options$1 && options$1.expand === true && options$1.nodupes === true) output = [...new Set(output)];
|
|
1382
1385
|
return output;
|
|
1383
1386
|
};
|
|
@@ -1394,7 +1397,7 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1394
1397
|
* @return {Object} Returns an AST
|
|
1395
1398
|
* @api public
|
|
1396
1399
|
*/
|
|
1397
|
-
braces
|
|
1400
|
+
braces.parse = (input, options$1 = {}) => parse(input, options$1);
|
|
1398
1401
|
/**
|
|
1399
1402
|
* Creates a braces string from an AST, or an AST node.
|
|
1400
1403
|
*
|
|
@@ -1408,8 +1411,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1408
1411
|
* @return {Array} Returns an array of expanded values.
|
|
1409
1412
|
* @api public
|
|
1410
1413
|
*/
|
|
1411
|
-
braces
|
|
1412
|
-
if (typeof input === "string") return stringify(braces
|
|
1414
|
+
braces.stringify = (input, options$1 = {}) => {
|
|
1415
|
+
if (typeof input === "string") return stringify(braces.parse(input, options$1), options$1);
|
|
1413
1416
|
return stringify(input, options$1);
|
|
1414
1417
|
};
|
|
1415
1418
|
/**
|
|
@@ -1426,8 +1429,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1426
1429
|
* @return {Array} Returns an array of expanded values.
|
|
1427
1430
|
* @api public
|
|
1428
1431
|
*/
|
|
1429
|
-
braces
|
|
1430
|
-
if (typeof input === "string") input = braces
|
|
1432
|
+
braces.compile = (input, options$1 = {}) => {
|
|
1433
|
+
if (typeof input === "string") input = braces.parse(input, options$1);
|
|
1431
1434
|
return compile(input, options$1);
|
|
1432
1435
|
};
|
|
1433
1436
|
/**
|
|
@@ -1446,8 +1449,8 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1446
1449
|
* @return {Array} Returns an array of expanded values.
|
|
1447
1450
|
* @api public
|
|
1448
1451
|
*/
|
|
1449
|
-
braces
|
|
1450
|
-
if (typeof input === "string") input = braces
|
|
1452
|
+
braces.expand = (input, options$1 = {}) => {
|
|
1453
|
+
if (typeof input === "string") input = braces.parse(input, options$1);
|
|
1451
1454
|
let result = expand(input, options$1);
|
|
1452
1455
|
if (options$1.noempty === true) result = result.filter(Boolean);
|
|
1453
1456
|
if (options$1.nodupes === true) result = [...new Set(result)];
|
|
@@ -1468,20 +1471,20 @@ var require_braces = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/brac
|
|
|
1468
1471
|
* @return {Array} Returns an array of expanded values.
|
|
1469
1472
|
* @api public
|
|
1470
1473
|
*/
|
|
1471
|
-
braces
|
|
1474
|
+
braces.create = (input, options$1 = {}) => {
|
|
1472
1475
|
if (input === "" || input.length < 3) return [input];
|
|
1473
|
-
return options$1.expand !== true ? braces
|
|
1476
|
+
return options$1.expand !== true ? braces.compile(input, options$1) : braces.expand(input, options$1);
|
|
1474
1477
|
};
|
|
1475
1478
|
/**
|
|
1476
1479
|
* Expose "braces"
|
|
1477
1480
|
*/
|
|
1478
|
-
module.exports = braces
|
|
1479
|
-
})
|
|
1481
|
+
module.exports = braces;
|
|
1482
|
+
}));
|
|
1480
1483
|
|
|
1481
1484
|
//#endregion
|
|
1482
1485
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
1483
|
-
var require_constants$1 = /* @__PURE__ */
|
|
1484
|
-
const path$
|
|
1486
|
+
var require_constants$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1487
|
+
const path$8 = require("path");
|
|
1485
1488
|
const WIN_SLASH = "\\\\/";
|
|
1486
1489
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
1487
1490
|
/**
|
|
@@ -1533,7 +1536,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1533
1536
|
/**
|
|
1534
1537
|
* POSIX Bracket Regex
|
|
1535
1538
|
*/
|
|
1536
|
-
const POSIX_REGEX_SOURCE
|
|
1539
|
+
const POSIX_REGEX_SOURCE = {
|
|
1537
1540
|
alnum: "a-zA-Z0-9",
|
|
1538
1541
|
alpha: "a-zA-Z",
|
|
1539
1542
|
ascii: "\\x00-\\x7F",
|
|
@@ -1551,7 +1554,7 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1551
1554
|
};
|
|
1552
1555
|
module.exports = {
|
|
1553
1556
|
MAX_LENGTH: 1024 * 64,
|
|
1554
|
-
POSIX_REGEX_SOURCE
|
|
1557
|
+
POSIX_REGEX_SOURCE,
|
|
1555
1558
|
REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
|
|
1556
1559
|
REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
|
|
1557
1560
|
REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
|
|
@@ -1606,13 +1609,13 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1606
1609
|
CHAR_UNDERSCORE: 95,
|
|
1607
1610
|
CHAR_VERTICAL_LINE: 124,
|
|
1608
1611
|
CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
|
|
1609
|
-
SEP: path$
|
|
1610
|
-
extglobChars(chars
|
|
1612
|
+
SEP: path$8.sep,
|
|
1613
|
+
extglobChars(chars) {
|
|
1611
1614
|
return {
|
|
1612
1615
|
"!": {
|
|
1613
1616
|
type: "negate",
|
|
1614
1617
|
open: "(?:(?!(?:",
|
|
1615
|
-
close: `))${chars
|
|
1618
|
+
close: `))${chars.STAR})`
|
|
1616
1619
|
},
|
|
1617
1620
|
"?": {
|
|
1618
1621
|
type: "qmark",
|
|
@@ -1636,16 +1639,16 @@ var require_constants$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
1636
1639
|
}
|
|
1637
1640
|
};
|
|
1638
1641
|
},
|
|
1639
|
-
globChars(win32
|
|
1640
|
-
return win32
|
|
1642
|
+
globChars(win32) {
|
|
1643
|
+
return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
|
|
1641
1644
|
}
|
|
1642
1645
|
};
|
|
1643
|
-
})
|
|
1646
|
+
}));
|
|
1644
1647
|
|
|
1645
1648
|
//#endregion
|
|
1646
1649
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
1647
|
-
var require_utils$2 = /* @__PURE__ */
|
|
1648
|
-
const path$
|
|
1650
|
+
var require_utils$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
1651
|
+
const path$7 = require("path");
|
|
1649
1652
|
const win32 = process.platform === "win32";
|
|
1650
1653
|
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$1();
|
|
1651
1654
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
@@ -1665,7 +1668,7 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
1665
1668
|
};
|
|
1666
1669
|
exports.isWindows = (options$1) => {
|
|
1667
1670
|
if (options$1 && typeof options$1.windows === "boolean") return options$1.windows;
|
|
1668
|
-
return win32 === true || path$
|
|
1671
|
+
return win32 === true || path$7.sep === "\\";
|
|
1669
1672
|
};
|
|
1670
1673
|
exports.escapeLast = (input, char, lastIdx) => {
|
|
1671
1674
|
const idx = input.lastIndexOf(char, lastIdx);
|
|
@@ -1686,12 +1689,12 @@ var require_utils$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/pic
|
|
|
1686
1689
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
1687
1690
|
return output;
|
|
1688
1691
|
};
|
|
1689
|
-
})
|
|
1692
|
+
}));
|
|
1690
1693
|
|
|
1691
1694
|
//#endregion
|
|
1692
1695
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
1693
|
-
var require_scan = /* @__PURE__ */
|
|
1694
|
-
const utils
|
|
1696
|
+
var require_scan = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1697
|
+
const utils = require_utils$2();
|
|
1695
1698
|
const { CHAR_ASTERISK, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET } = require_constants$1();
|
|
1696
1699
|
const isPathSeparator = (code) => {
|
|
1697
1700
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
@@ -1715,7 +1718,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1715
1718
|
* @return {Object} Returns an object with tokens and regex source string.
|
|
1716
1719
|
* @api public
|
|
1717
1720
|
*/
|
|
1718
|
-
const scan
|
|
1721
|
+
const scan = (input, options$1) => {
|
|
1719
1722
|
const opts = options$1 || {};
|
|
1720
1723
|
const length = input.length - 1;
|
|
1721
1724
|
const scanToEnd = opts.parts === true || opts.scanToEnd === true;
|
|
@@ -1728,15 +1731,15 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1728
1731
|
let lastIndex = 0;
|
|
1729
1732
|
let isBrace = false;
|
|
1730
1733
|
let isBracket = false;
|
|
1731
|
-
let isGlob
|
|
1732
|
-
let isExtglob
|
|
1734
|
+
let isGlob = false;
|
|
1735
|
+
let isExtglob = false;
|
|
1733
1736
|
let isGlobstar = false;
|
|
1734
1737
|
let braceEscaped = false;
|
|
1735
1738
|
let backslashes = false;
|
|
1736
1739
|
let negated = false;
|
|
1737
1740
|
let negatedExtglob = false;
|
|
1738
1741
|
let finished = false;
|
|
1739
|
-
let braces
|
|
1742
|
+
let braces = 0;
|
|
1740
1743
|
let prev;
|
|
1741
1744
|
let code;
|
|
1742
1745
|
let token = {
|
|
@@ -1760,7 +1763,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1760
1763
|
continue;
|
|
1761
1764
|
}
|
|
1762
1765
|
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
1763
|
-
braces
|
|
1766
|
+
braces++;
|
|
1764
1767
|
while (eos() !== true && (code = advance())) {
|
|
1765
1768
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
1766
1769
|
backslashes = token.backslashes = true;
|
|
@@ -1768,26 +1771,26 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1768
1771
|
continue;
|
|
1769
1772
|
}
|
|
1770
1773
|
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
1771
|
-
braces
|
|
1774
|
+
braces++;
|
|
1772
1775
|
continue;
|
|
1773
1776
|
}
|
|
1774
1777
|
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
1775
1778
|
isBrace = token.isBrace = true;
|
|
1776
|
-
isGlob
|
|
1779
|
+
isGlob = token.isGlob = true;
|
|
1777
1780
|
finished = true;
|
|
1778
1781
|
if (scanToEnd === true) continue;
|
|
1779
1782
|
break;
|
|
1780
1783
|
}
|
|
1781
1784
|
if (braceEscaped !== true && code === CHAR_COMMA) {
|
|
1782
1785
|
isBrace = token.isBrace = true;
|
|
1783
|
-
isGlob
|
|
1786
|
+
isGlob = token.isGlob = true;
|
|
1784
1787
|
finished = true;
|
|
1785
1788
|
if (scanToEnd === true) continue;
|
|
1786
1789
|
break;
|
|
1787
1790
|
}
|
|
1788
1791
|
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
1789
|
-
braces
|
|
1790
|
-
if (braces
|
|
1792
|
+
braces--;
|
|
1793
|
+
if (braces === 0) {
|
|
1791
1794
|
braceEscaped = false;
|
|
1792
1795
|
isBrace = token.isBrace = true;
|
|
1793
1796
|
finished = true;
|
|
@@ -1816,8 +1819,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1816
1819
|
}
|
|
1817
1820
|
if (opts.noext !== true) {
|
|
1818
1821
|
if ((code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
1819
|
-
isGlob
|
|
1820
|
-
isExtglob
|
|
1822
|
+
isGlob = token.isGlob = true;
|
|
1823
|
+
isExtglob = token.isExtglob = true;
|
|
1821
1824
|
finished = true;
|
|
1822
1825
|
if (code === CHAR_EXCLAMATION_MARK && index === start) negatedExtglob = true;
|
|
1823
1826
|
if (scanToEnd === true) {
|
|
@@ -1828,7 +1831,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1828
1831
|
continue;
|
|
1829
1832
|
}
|
|
1830
1833
|
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
1831
|
-
isGlob
|
|
1834
|
+
isGlob = token.isGlob = true;
|
|
1832
1835
|
finished = true;
|
|
1833
1836
|
break;
|
|
1834
1837
|
}
|
|
@@ -1840,13 +1843,13 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1840
1843
|
}
|
|
1841
1844
|
if (code === CHAR_ASTERISK) {
|
|
1842
1845
|
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
|
|
1843
|
-
isGlob
|
|
1846
|
+
isGlob = token.isGlob = true;
|
|
1844
1847
|
finished = true;
|
|
1845
1848
|
if (scanToEnd === true) continue;
|
|
1846
1849
|
break;
|
|
1847
1850
|
}
|
|
1848
1851
|
if (code === CHAR_QUESTION_MARK) {
|
|
1849
|
-
isGlob
|
|
1852
|
+
isGlob = token.isGlob = true;
|
|
1850
1853
|
finished = true;
|
|
1851
1854
|
if (scanToEnd === true) continue;
|
|
1852
1855
|
break;
|
|
@@ -1860,7 +1863,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1860
1863
|
}
|
|
1861
1864
|
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
1862
1865
|
isBracket = token.isBracket = true;
|
|
1863
|
-
isGlob
|
|
1866
|
+
isGlob = token.isGlob = true;
|
|
1864
1867
|
finished = true;
|
|
1865
1868
|
break;
|
|
1866
1869
|
}
|
|
@@ -1874,7 +1877,7 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1874
1877
|
continue;
|
|
1875
1878
|
}
|
|
1876
1879
|
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
1877
|
-
isGlob
|
|
1880
|
+
isGlob = token.isGlob = true;
|
|
1878
1881
|
if (scanToEnd === true) {
|
|
1879
1882
|
while (eos() !== true && (code = advance())) {
|
|
1880
1883
|
if (code === CHAR_LEFT_PARENTHESES) {
|
|
@@ -1891,15 +1894,15 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1891
1894
|
}
|
|
1892
1895
|
break;
|
|
1893
1896
|
}
|
|
1894
|
-
if (isGlob
|
|
1897
|
+
if (isGlob === true) {
|
|
1895
1898
|
finished = true;
|
|
1896
1899
|
if (scanToEnd === true) continue;
|
|
1897
1900
|
break;
|
|
1898
1901
|
}
|
|
1899
1902
|
}
|
|
1900
1903
|
if (opts.noext === true) {
|
|
1901
|
-
isExtglob
|
|
1902
|
-
isGlob
|
|
1904
|
+
isExtglob = false;
|
|
1905
|
+
isGlob = false;
|
|
1903
1906
|
}
|
|
1904
1907
|
let base = str;
|
|
1905
1908
|
let prefix = "";
|
|
@@ -1909,10 +1912,10 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1909
1912
|
str = str.slice(start);
|
|
1910
1913
|
lastIndex -= start;
|
|
1911
1914
|
}
|
|
1912
|
-
if (base && isGlob
|
|
1915
|
+
if (base && isGlob === true && lastIndex > 0) {
|
|
1913
1916
|
base = str.slice(0, lastIndex);
|
|
1914
1917
|
glob = str.slice(lastIndex);
|
|
1915
|
-
} else if (isGlob
|
|
1918
|
+
} else if (isGlob === true) {
|
|
1916
1919
|
base = "";
|
|
1917
1920
|
glob = str;
|
|
1918
1921
|
} else base = str;
|
|
@@ -1920,8 +1923,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1920
1923
|
if (isPathSeparator(base.charCodeAt(base.length - 1))) base = base.slice(0, -1);
|
|
1921
1924
|
}
|
|
1922
1925
|
if (opts.unescape === true) {
|
|
1923
|
-
if (glob) glob = utils
|
|
1924
|
-
if (base && backslashes === true) base = utils
|
|
1926
|
+
if (glob) glob = utils.removeBackslashes(glob);
|
|
1927
|
+
if (base && backslashes === true) base = utils.removeBackslashes(base);
|
|
1925
1928
|
}
|
|
1926
1929
|
const state = {
|
|
1927
1930
|
prefix,
|
|
@@ -1931,8 +1934,8 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1931
1934
|
glob,
|
|
1932
1935
|
isBrace,
|
|
1933
1936
|
isBracket,
|
|
1934
|
-
isGlob
|
|
1935
|
-
isExtglob
|
|
1937
|
+
isGlob,
|
|
1938
|
+
isExtglob,
|
|
1936
1939
|
isGlobstar,
|
|
1937
1940
|
negated,
|
|
1938
1941
|
negatedExtglob
|
|
@@ -1973,18 +1976,18 @@ var require_scan = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picoma
|
|
|
1973
1976
|
}
|
|
1974
1977
|
return state;
|
|
1975
1978
|
};
|
|
1976
|
-
module.exports = scan
|
|
1977
|
-
})
|
|
1979
|
+
module.exports = scan;
|
|
1980
|
+
}));
|
|
1978
1981
|
|
|
1979
1982
|
//#endregion
|
|
1980
1983
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
1981
|
-
var require_parse = /* @__PURE__ */
|
|
1982
|
-
const constants
|
|
1983
|
-
const utils
|
|
1984
|
+
var require_parse = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
1985
|
+
const constants = require_constants$1();
|
|
1986
|
+
const utils = require_utils$2();
|
|
1984
1987
|
/**
|
|
1985
1988
|
* Constants
|
|
1986
1989
|
*/
|
|
1987
|
-
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants
|
|
1990
|
+
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
|
|
1988
1991
|
/**
|
|
1989
1992
|
* Helpers
|
|
1990
1993
|
*/
|
|
@@ -1995,7 +1998,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
1995
1998
|
try {
|
|
1996
1999
|
new RegExp(value);
|
|
1997
2000
|
} catch (ex) {
|
|
1998
|
-
return args.map((v) => utils
|
|
2001
|
+
return args.map((v) => utils.escapeRegex(v)).join("..");
|
|
1999
2002
|
}
|
|
2000
2003
|
return value;
|
|
2001
2004
|
};
|
|
@@ -2011,7 +2014,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2011
2014
|
* @param {Object} options
|
|
2012
2015
|
* @return {Object}
|
|
2013
2016
|
*/
|
|
2014
|
-
const parse
|
|
2017
|
+
const parse = (input, options$1) => {
|
|
2015
2018
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2016
2019
|
input = REPLACEMENTS[input] || input;
|
|
2017
2020
|
const opts = { ...options$1 };
|
|
@@ -2025,15 +2028,15 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2025
2028
|
};
|
|
2026
2029
|
const tokens = [bos];
|
|
2027
2030
|
const capture = opts.capture ? "" : "?:";
|
|
2028
|
-
const win32
|
|
2029
|
-
const PLATFORM_CHARS = constants
|
|
2030
|
-
const EXTGLOB_CHARS = constants
|
|
2031
|
-
const { DOT_LITERAL
|
|
2031
|
+
const win32 = utils.isWindows(options$1);
|
|
2032
|
+
const PLATFORM_CHARS = constants.globChars(win32);
|
|
2033
|
+
const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
|
|
2034
|
+
const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
|
|
2032
2035
|
const globstar = (opts$1) => {
|
|
2033
|
-
return `(${capture}(?:(?!${START_ANCHOR
|
|
2036
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2034
2037
|
};
|
|
2035
2038
|
const nodot = opts.dot ? "" : NO_DOT;
|
|
2036
|
-
const qmarkNoDot = opts.dot ? QMARK
|
|
2039
|
+
const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
|
|
2037
2040
|
let star = opts.bash === true ? globstar(opts) : STAR;
|
|
2038
2041
|
if (opts.capture) star = `(${star})`;
|
|
2039
2042
|
if (typeof opts.noext === "boolean") opts.noextglob = opts.noext;
|
|
@@ -2054,10 +2057,10 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2054
2057
|
globstar: false,
|
|
2055
2058
|
tokens
|
|
2056
2059
|
};
|
|
2057
|
-
input = utils
|
|
2060
|
+
input = utils.removePrefix(input, state);
|
|
2058
2061
|
len = input.length;
|
|
2059
2062
|
const extglobs = [];
|
|
2060
|
-
const braces
|
|
2063
|
+
const braces = [];
|
|
2061
2064
|
const stack = [];
|
|
2062
2065
|
let prev = bos;
|
|
2063
2066
|
let value;
|
|
@@ -2072,7 +2075,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2072
2075
|
state.consumed += value$1;
|
|
2073
2076
|
state.index += num;
|
|
2074
2077
|
};
|
|
2075
|
-
const append
|
|
2078
|
+
const append = (token) => {
|
|
2076
2079
|
state.output += token.output != null ? token.output : token.value;
|
|
2077
2080
|
consume(token.value);
|
|
2078
2081
|
};
|
|
@@ -2106,8 +2109,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2106
2109
|
const push = (tok) => {
|
|
2107
2110
|
if (prev.type === "globstar") {
|
|
2108
2111
|
const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace");
|
|
2109
|
-
const isExtglob
|
|
2110
|
-
if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob
|
|
2112
|
+
const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
|
|
2113
|
+
if (tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob) {
|
|
2111
2114
|
state.output = state.output.slice(0, -prev.output.length);
|
|
2112
2115
|
prev.type = "star";
|
|
2113
2116
|
prev.value = "*";
|
|
@@ -2116,7 +2119,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2116
2119
|
}
|
|
2117
2120
|
}
|
|
2118
2121
|
if (extglobs.length && tok.type !== "paren") extglobs[extglobs.length - 1].inner += tok.value;
|
|
2119
|
-
if (tok.value || tok.output) append
|
|
2122
|
+
if (tok.value || tok.output) append(tok);
|
|
2120
2123
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
2121
2124
|
prev.value += tok.value;
|
|
2122
2125
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -2140,7 +2143,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2140
2143
|
push({
|
|
2141
2144
|
type,
|
|
2142
2145
|
value: value$1,
|
|
2143
|
-
output: state.output ? "" : ONE_CHAR
|
|
2146
|
+
output: state.output ? "" : ONE_CHAR
|
|
2144
2147
|
});
|
|
2145
2148
|
push({
|
|
2146
2149
|
type: "paren",
|
|
@@ -2157,7 +2160,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2157
2160
|
let extglobStar = star;
|
|
2158
2161
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
2159
2162
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
2160
|
-
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse
|
|
2163
|
+
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) output = token.close = `)${parse(rest, {
|
|
2161
2164
|
...options$1,
|
|
2162
2165
|
fastpaths: false
|
|
2163
2166
|
}).output})${extglobStar})`;
|
|
@@ -2176,17 +2179,17 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2176
2179
|
*/
|
|
2177
2180
|
if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
|
|
2178
2181
|
let backslashes = false;
|
|
2179
|
-
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars
|
|
2182
|
+
let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
|
|
2180
2183
|
if (first === "\\") {
|
|
2181
2184
|
backslashes = true;
|
|
2182
2185
|
return m;
|
|
2183
2186
|
}
|
|
2184
2187
|
if (first === "?") {
|
|
2185
|
-
if (esc) return esc + first + (rest ? QMARK
|
|
2186
|
-
if (index === 0) return qmarkNoDot + (rest ? QMARK
|
|
2187
|
-
return QMARK
|
|
2188
|
+
if (esc) return esc + first + (rest ? QMARK.repeat(rest.length) : "");
|
|
2189
|
+
if (index === 0) return qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "");
|
|
2190
|
+
return QMARK.repeat(chars.length);
|
|
2188
2191
|
}
|
|
2189
|
-
if (first === ".") return DOT_LITERAL
|
|
2192
|
+
if (first === ".") return DOT_LITERAL.repeat(chars.length);
|
|
2190
2193
|
if (first === "*") {
|
|
2191
2194
|
if (esc) return esc + first + (rest ? star : "");
|
|
2192
2195
|
return star;
|
|
@@ -2201,7 +2204,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2201
2204
|
state.output = input;
|
|
2202
2205
|
return state;
|
|
2203
2206
|
}
|
|
2204
|
-
state.output = utils
|
|
2207
|
+
state.output = utils.wrapOutput(output, state, options$1);
|
|
2205
2208
|
return state;
|
|
2206
2209
|
}
|
|
2207
2210
|
/**
|
|
@@ -2259,7 +2262,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2259
2262
|
prev.value = pre + posix;
|
|
2260
2263
|
state.backtrack = true;
|
|
2261
2264
|
advance();
|
|
2262
|
-
if (!bos.output && tokens.indexOf(prev) === 1) bos.output = ONE_CHAR
|
|
2265
|
+
if (!bos.output && tokens.indexOf(prev) === 1) bos.output = ONE_CHAR;
|
|
2263
2266
|
continue;
|
|
2264
2267
|
}
|
|
2265
2268
|
}
|
|
@@ -2269,7 +2272,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2269
2272
|
if (value === "]" && (prev.value === "[" || prev.value === "[^")) value = `\\${value}`;
|
|
2270
2273
|
if (opts.posix === true && value === "!" && prev.value === "[") value = "^";
|
|
2271
2274
|
prev.value += value;
|
|
2272
|
-
append
|
|
2275
|
+
append({ value });
|
|
2273
2276
|
continue;
|
|
2274
2277
|
}
|
|
2275
2278
|
/**
|
|
@@ -2277,9 +2280,9 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2277
2280
|
* until we reach the closing double quote.
|
|
2278
2281
|
*/
|
|
2279
2282
|
if (state.quotes === 1 && value !== "\"") {
|
|
2280
|
-
value = utils
|
|
2283
|
+
value = utils.escapeRegex(value);
|
|
2281
2284
|
prev.value += value;
|
|
2282
|
-
append
|
|
2285
|
+
append({ value });
|
|
2283
2286
|
continue;
|
|
2284
2287
|
}
|
|
2285
2288
|
/**
|
|
@@ -2355,16 +2358,16 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2355
2358
|
const prevValue = prev.value.slice(1);
|
|
2356
2359
|
if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) value = `/${value}`;
|
|
2357
2360
|
prev.value += value;
|
|
2358
|
-
append
|
|
2359
|
-
if (opts.literalBrackets === false || utils
|
|
2360
|
-
const escaped
|
|
2361
|
+
append({ value });
|
|
2362
|
+
if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) continue;
|
|
2363
|
+
const escaped = utils.escapeRegex(prev.value);
|
|
2361
2364
|
state.output = state.output.slice(0, -prev.value.length);
|
|
2362
2365
|
if (opts.literalBrackets === true) {
|
|
2363
|
-
state.output += escaped
|
|
2364
|
-
prev.value = escaped
|
|
2366
|
+
state.output += escaped;
|
|
2367
|
+
prev.value = escaped;
|
|
2365
2368
|
continue;
|
|
2366
2369
|
}
|
|
2367
|
-
prev.value = `(${capture}${escaped
|
|
2370
|
+
prev.value = `(${capture}${escaped}|${prev.value})`;
|
|
2368
2371
|
state.output += prev.value;
|
|
2369
2372
|
continue;
|
|
2370
2373
|
}
|
|
@@ -2380,12 +2383,12 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2380
2383
|
outputIndex: state.output.length,
|
|
2381
2384
|
tokensIndex: state.tokens.length
|
|
2382
2385
|
};
|
|
2383
|
-
braces
|
|
2386
|
+
braces.push(open);
|
|
2384
2387
|
push(open);
|
|
2385
2388
|
continue;
|
|
2386
2389
|
}
|
|
2387
2390
|
if (value === "}") {
|
|
2388
|
-
const brace = braces
|
|
2391
|
+
const brace = braces[braces.length - 1];
|
|
2389
2392
|
if (opts.nobrace === true || !brace) {
|
|
2390
2393
|
push({
|
|
2391
2394
|
type: "text",
|
|
@@ -2420,7 +2423,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2420
2423
|
output
|
|
2421
2424
|
});
|
|
2422
2425
|
decrement("braces");
|
|
2423
|
-
braces
|
|
2426
|
+
braces.pop();
|
|
2424
2427
|
continue;
|
|
2425
2428
|
}
|
|
2426
2429
|
/**
|
|
@@ -2439,7 +2442,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2439
2442
|
*/
|
|
2440
2443
|
if (value === ",") {
|
|
2441
2444
|
let output = value;
|
|
2442
|
-
const brace = braces
|
|
2445
|
+
const brace = braces[braces.length - 1];
|
|
2443
2446
|
if (brace && stack[stack.length - 1] === "braces") {
|
|
2444
2447
|
brace.comma = true;
|
|
2445
2448
|
output = "|";
|
|
@@ -2466,7 +2469,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2466
2469
|
push({
|
|
2467
2470
|
type: "slash",
|
|
2468
2471
|
value,
|
|
2469
|
-
output: SLASH_LITERAL
|
|
2472
|
+
output: SLASH_LITERAL
|
|
2470
2473
|
});
|
|
2471
2474
|
continue;
|
|
2472
2475
|
}
|
|
@@ -2475,8 +2478,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2475
2478
|
*/
|
|
2476
2479
|
if (value === ".") {
|
|
2477
2480
|
if (state.braces > 0 && prev.type === "dot") {
|
|
2478
|
-
if (prev.value === ".") prev.output = DOT_LITERAL
|
|
2479
|
-
const brace = braces
|
|
2481
|
+
if (prev.value === ".") prev.output = DOT_LITERAL;
|
|
2482
|
+
const brace = braces[braces.length - 1];
|
|
2480
2483
|
prev.type = "dots";
|
|
2481
2484
|
prev.output += value;
|
|
2482
2485
|
prev.value += value;
|
|
@@ -2487,14 +2490,14 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2487
2490
|
push({
|
|
2488
2491
|
type: "text",
|
|
2489
2492
|
value,
|
|
2490
|
-
output: DOT_LITERAL
|
|
2493
|
+
output: DOT_LITERAL
|
|
2491
2494
|
});
|
|
2492
2495
|
continue;
|
|
2493
2496
|
}
|
|
2494
2497
|
push({
|
|
2495
2498
|
type: "dot",
|
|
2496
2499
|
value,
|
|
2497
|
-
output: DOT_LITERAL
|
|
2500
|
+
output: DOT_LITERAL
|
|
2498
2501
|
});
|
|
2499
2502
|
continue;
|
|
2500
2503
|
}
|
|
@@ -2509,7 +2512,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2509
2512
|
if (prev && prev.type === "paren") {
|
|
2510
2513
|
const next = peek();
|
|
2511
2514
|
let output = value;
|
|
2512
|
-
if (next === "<" && !utils
|
|
2515
|
+
if (next === "<" && !utils.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
2513
2516
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
|
|
2514
2517
|
push({
|
|
2515
2518
|
type: "text",
|
|
@@ -2529,7 +2532,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2529
2532
|
push({
|
|
2530
2533
|
type: "qmark",
|
|
2531
2534
|
value,
|
|
2532
|
-
output: QMARK
|
|
2535
|
+
output: QMARK
|
|
2533
2536
|
});
|
|
2534
2537
|
continue;
|
|
2535
2538
|
}
|
|
@@ -2560,7 +2563,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2560
2563
|
push({
|
|
2561
2564
|
type: "plus",
|
|
2562
2565
|
value,
|
|
2563
|
-
output: PLUS_LITERAL
|
|
2566
|
+
output: PLUS_LITERAL
|
|
2564
2567
|
});
|
|
2565
2568
|
continue;
|
|
2566
2569
|
}
|
|
@@ -2573,7 +2576,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2573
2576
|
}
|
|
2574
2577
|
push({
|
|
2575
2578
|
type: "plus",
|
|
2576
|
-
value: PLUS_LITERAL
|
|
2579
|
+
value: PLUS_LITERAL
|
|
2577
2580
|
});
|
|
2578
2581
|
continue;
|
|
2579
2582
|
}
|
|
@@ -2648,8 +2651,8 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2648
2651
|
continue;
|
|
2649
2652
|
}
|
|
2650
2653
|
const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace");
|
|
2651
|
-
const isExtglob
|
|
2652
|
-
if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob
|
|
2654
|
+
const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
|
|
2655
|
+
if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
|
|
2653
2656
|
push({
|
|
2654
2657
|
type: "star",
|
|
2655
2658
|
value,
|
|
@@ -2688,7 +2691,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2688
2691
|
state.output = state.output.slice(0, -(prior.output + prev.output).length);
|
|
2689
2692
|
prior.output = `(?:${prior.output}`;
|
|
2690
2693
|
prev.type = "globstar";
|
|
2691
|
-
prev.output = `${globstar(opts)}${SLASH_LITERAL
|
|
2694
|
+
prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`;
|
|
2692
2695
|
prev.value += value;
|
|
2693
2696
|
state.output += prior.output + prev.output;
|
|
2694
2697
|
state.globstar = true;
|
|
@@ -2703,7 +2706,7 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2703
2706
|
if (prior.type === "bos" && rest[0] === "/") {
|
|
2704
2707
|
prev.type = "globstar";
|
|
2705
2708
|
prev.value += value;
|
|
2706
|
-
prev.output = `(?:^|${SLASH_LITERAL
|
|
2709
|
+
prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`;
|
|
2707
2710
|
state.output = prev.output;
|
|
2708
2711
|
state.globstar = true;
|
|
2709
2712
|
consume(value + advance());
|
|
@@ -2751,31 +2754,31 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2751
2754
|
prev.output += nodot;
|
|
2752
2755
|
}
|
|
2753
2756
|
if (peek() !== "*") {
|
|
2754
|
-
state.output += ONE_CHAR
|
|
2755
|
-
prev.output += ONE_CHAR
|
|
2757
|
+
state.output += ONE_CHAR;
|
|
2758
|
+
prev.output += ONE_CHAR;
|
|
2756
2759
|
}
|
|
2757
2760
|
}
|
|
2758
2761
|
push(token);
|
|
2759
2762
|
}
|
|
2760
2763
|
while (state.brackets > 0) {
|
|
2761
2764
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
2762
|
-
state.output = utils
|
|
2765
|
+
state.output = utils.escapeLast(state.output, "[");
|
|
2763
2766
|
decrement("brackets");
|
|
2764
2767
|
}
|
|
2765
2768
|
while (state.parens > 0) {
|
|
2766
2769
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
2767
|
-
state.output = utils
|
|
2770
|
+
state.output = utils.escapeLast(state.output, "(");
|
|
2768
2771
|
decrement("parens");
|
|
2769
2772
|
}
|
|
2770
2773
|
while (state.braces > 0) {
|
|
2771
2774
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
2772
|
-
state.output = utils
|
|
2775
|
+
state.output = utils.escapeLast(state.output, "{");
|
|
2773
2776
|
decrement("braces");
|
|
2774
2777
|
}
|
|
2775
2778
|
if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) push({
|
|
2776
2779
|
type: "maybe_slash",
|
|
2777
2780
|
value: "",
|
|
2778
|
-
output: `${SLASH_LITERAL
|
|
2781
|
+
output: `${SLASH_LITERAL}?`
|
|
2779
2782
|
});
|
|
2780
2783
|
if (state.backtrack === true) {
|
|
2781
2784
|
state.output = "";
|
|
@@ -2791,14 +2794,14 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2791
2794
|
* This can significantly speed up processing and has very little downside
|
|
2792
2795
|
* impact when none of the fast paths match.
|
|
2793
2796
|
*/
|
|
2794
|
-
parse
|
|
2797
|
+
parse.fastpaths = (input, options$1) => {
|
|
2795
2798
|
const opts = { ...options$1 };
|
|
2796
2799
|
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
2797
2800
|
const len = input.length;
|
|
2798
2801
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
2799
2802
|
input = REPLACEMENTS[input] || input;
|
|
2800
|
-
const win32
|
|
2801
|
-
const { DOT_LITERAL
|
|
2803
|
+
const win32 = utils.isWindows(options$1);
|
|
2804
|
+
const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(win32);
|
|
2802
2805
|
const nodot = opts.dot ? NO_DOTS : NO_DOT;
|
|
2803
2806
|
const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
|
|
2804
2807
|
const capture = opts.capture ? "" : "?:";
|
|
@@ -2810,41 +2813,41 @@ var require_parse = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/picom
|
|
|
2810
2813
|
if (opts.capture) star = `(${star})`;
|
|
2811
2814
|
const globstar = (opts$1) => {
|
|
2812
2815
|
if (opts$1.noglobstar === true) return star;
|
|
2813
|
-
return `(${capture}(?:(?!${START_ANCHOR
|
|
2816
|
+
return `(${capture}(?:(?!${START_ANCHOR}${opts$1.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
|
|
2814
2817
|
};
|
|
2815
2818
|
const create = (str) => {
|
|
2816
2819
|
switch (str) {
|
|
2817
|
-
case "*": return `${nodot}${ONE_CHAR
|
|
2818
|
-
case ".*": return `${DOT_LITERAL
|
|
2819
|
-
case "*.*": return `${nodot}${star}${DOT_LITERAL
|
|
2820
|
-
case "*/*": return `${nodot}${star}${SLASH_LITERAL
|
|
2820
|
+
case "*": return `${nodot}${ONE_CHAR}${star}`;
|
|
2821
|
+
case ".*": return `${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2822
|
+
case "*.*": return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2823
|
+
case "*/*": return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
|
|
2821
2824
|
case "**": return nodot + globstar(opts);
|
|
2822
|
-
case "**/*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2823
|
-
case "**/*.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2824
|
-
case "**/.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL
|
|
2825
|
+
case "**/*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
|
|
2826
|
+
case "**/*.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2827
|
+
case "**/.*": return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
|
|
2825
2828
|
default: {
|
|
2826
2829
|
const match = /^(.*?)\.(\w+)$/.exec(str);
|
|
2827
2830
|
if (!match) return;
|
|
2828
2831
|
const source$1 = create(match[1]);
|
|
2829
2832
|
if (!source$1) return;
|
|
2830
|
-
return source$1 + DOT_LITERAL
|
|
2833
|
+
return source$1 + DOT_LITERAL + match[2];
|
|
2831
2834
|
}
|
|
2832
2835
|
}
|
|
2833
2836
|
};
|
|
2834
|
-
let source = create(utils
|
|
2835
|
-
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL
|
|
2837
|
+
let source = create(utils.removePrefix(input, state));
|
|
2838
|
+
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL}?`;
|
|
2836
2839
|
return source;
|
|
2837
2840
|
};
|
|
2838
|
-
module.exports = parse
|
|
2839
|
-
})
|
|
2841
|
+
module.exports = parse;
|
|
2842
|
+
}));
|
|
2840
2843
|
|
|
2841
2844
|
//#endregion
|
|
2842
2845
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
|
|
2843
|
-
var require_picomatch$1 = /* @__PURE__ */
|
|
2844
|
-
const path$
|
|
2846
|
+
var require_picomatch$1 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
2847
|
+
const path$6 = require("path");
|
|
2845
2848
|
const scan = require_scan();
|
|
2846
2849
|
const parse = require_parse();
|
|
2847
|
-
const utils
|
|
2850
|
+
const utils = require_utils$2();
|
|
2848
2851
|
const constants = require_constants$1();
|
|
2849
2852
|
const isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
2850
2853
|
/**
|
|
@@ -2868,9 +2871,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2868
2871
|
* @return {Function=} Returns a matcher function.
|
|
2869
2872
|
* @api public
|
|
2870
2873
|
*/
|
|
2871
|
-
const picomatch
|
|
2874
|
+
const picomatch = (glob, options$1, returnState = false) => {
|
|
2872
2875
|
if (Array.isArray(glob)) {
|
|
2873
|
-
const fns = glob.map((input) => picomatch
|
|
2876
|
+
const fns = glob.map((input) => picomatch(input, options$1, returnState));
|
|
2874
2877
|
const arrayMatcher = (str) => {
|
|
2875
2878
|
for (const isMatch of fns) {
|
|
2876
2879
|
const state$1 = isMatch(str);
|
|
@@ -2883,8 +2886,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2883
2886
|
const isState = isObject(glob) && glob.tokens && glob.input;
|
|
2884
2887
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
2885
2888
|
const opts = options$1 || {};
|
|
2886
|
-
const posix = utils
|
|
2887
|
-
const regex = isState ? picomatch
|
|
2889
|
+
const posix = utils.isWindows(options$1);
|
|
2890
|
+
const regex = isState ? picomatch.compileRe(glob, options$1) : picomatch.makeRe(glob, options$1, false, true);
|
|
2888
2891
|
const state = regex.state;
|
|
2889
2892
|
delete regex.state;
|
|
2890
2893
|
let isIgnored = () => false;
|
|
@@ -2895,10 +2898,10 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2895
2898
|
onMatch: null,
|
|
2896
2899
|
onResult: null
|
|
2897
2900
|
};
|
|
2898
|
-
isIgnored = picomatch
|
|
2901
|
+
isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
|
|
2899
2902
|
}
|
|
2900
2903
|
const matcher = (input, returnObject = false) => {
|
|
2901
|
-
const { isMatch, match, output } = picomatch
|
|
2904
|
+
const { isMatch, match, output } = picomatch.test(input, regex, options$1, {
|
|
2902
2905
|
glob,
|
|
2903
2906
|
posix
|
|
2904
2907
|
});
|
|
@@ -2944,21 +2947,21 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2944
2947
|
* @return {Object} Returns an object with matching info.
|
|
2945
2948
|
* @api public
|
|
2946
2949
|
*/
|
|
2947
|
-
picomatch
|
|
2950
|
+
picomatch.test = (input, regex, options$1, { glob, posix } = {}) => {
|
|
2948
2951
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
2949
2952
|
if (input === "") return {
|
|
2950
2953
|
isMatch: false,
|
|
2951
2954
|
output: ""
|
|
2952
2955
|
};
|
|
2953
2956
|
const opts = options$1 || {};
|
|
2954
|
-
const format = opts.format || (posix ? utils
|
|
2957
|
+
const format = opts.format || (posix ? utils.toPosixSlashes : null);
|
|
2955
2958
|
let match = input === glob;
|
|
2956
2959
|
let output = match && format ? format(input) : input;
|
|
2957
2960
|
if (match === false) {
|
|
2958
2961
|
output = format ? format(input) : input;
|
|
2959
2962
|
match = output === glob;
|
|
2960
2963
|
}
|
|
2961
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch
|
|
2964
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch.matchBase(input, regex, options$1, posix);
|
|
2962
2965
|
else match = regex.exec(output);
|
|
2963
2966
|
return {
|
|
2964
2967
|
isMatch: Boolean(match),
|
|
@@ -2979,8 +2982,8 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2979
2982
|
* @return {Boolean}
|
|
2980
2983
|
* @api public
|
|
2981
2984
|
*/
|
|
2982
|
-
picomatch
|
|
2983
|
-
return (glob instanceof RegExp ? glob : picomatch
|
|
2985
|
+
picomatch.matchBase = (input, glob, options$1, posix = utils.isWindows(options$1)) => {
|
|
2986
|
+
return (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options$1)).test(path$6.basename(input));
|
|
2984
2987
|
};
|
|
2985
2988
|
/**
|
|
2986
2989
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
@@ -2998,7 +3001,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
2998
3001
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
2999
3002
|
* @api public
|
|
3000
3003
|
*/
|
|
3001
|
-
picomatch
|
|
3004
|
+
picomatch.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
|
|
3002
3005
|
/**
|
|
3003
3006
|
* Parse a glob pattern to create the source string for a regular
|
|
3004
3007
|
* expression.
|
|
@@ -3012,9 +3015,9 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3012
3015
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
3013
3016
|
* @api public
|
|
3014
3017
|
*/
|
|
3015
|
-
picomatch
|
|
3016
|
-
if (Array.isArray(pattern
|
|
3017
|
-
return parse(pattern
|
|
3018
|
+
picomatch.parse = (pattern, options$1) => {
|
|
3019
|
+
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options$1));
|
|
3020
|
+
return parse(pattern, {
|
|
3018
3021
|
...options$1,
|
|
3019
3022
|
fastpaths: false
|
|
3020
3023
|
});
|
|
@@ -3045,7 +3048,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3045
3048
|
* @return {Object} Returns an object with
|
|
3046
3049
|
* @api public
|
|
3047
3050
|
*/
|
|
3048
|
-
picomatch
|
|
3051
|
+
picomatch.scan = (input, options$1) => scan(input, options$1);
|
|
3049
3052
|
/**
|
|
3050
3053
|
* Compile a regular expression from the `state` object returned by the
|
|
3051
3054
|
* [parse()](#parse) method.
|
|
@@ -3057,14 +3060,14 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3057
3060
|
* @return {RegExp}
|
|
3058
3061
|
* @api public
|
|
3059
3062
|
*/
|
|
3060
|
-
picomatch
|
|
3063
|
+
picomatch.compileRe = (state, options$1, returnOutput = false, returnState = false) => {
|
|
3061
3064
|
if (returnOutput === true) return state.output;
|
|
3062
3065
|
const opts = options$1 || {};
|
|
3063
3066
|
const prepend = opts.contains ? "" : "^";
|
|
3064
|
-
const append
|
|
3065
|
-
let source = `${prepend}(?:${state.output})${append
|
|
3067
|
+
const append = opts.contains ? "" : "$";
|
|
3068
|
+
let source = `${prepend}(?:${state.output})${append}`;
|
|
3066
3069
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
3067
|
-
const regex = picomatch
|
|
3070
|
+
const regex = picomatch.toRegex(source, options$1);
|
|
3068
3071
|
if (returnState === true) regex.state = state;
|
|
3069
3072
|
return regex;
|
|
3070
3073
|
};
|
|
@@ -3086,7 +3089,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3086
3089
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3087
3090
|
* @api public
|
|
3088
3091
|
*/
|
|
3089
|
-
picomatch
|
|
3092
|
+
picomatch.makeRe = (input, options$1 = {}, returnOutput = false, returnState = false) => {
|
|
3090
3093
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
3091
3094
|
let parsed = {
|
|
3092
3095
|
negated: false,
|
|
@@ -3094,7 +3097,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3094
3097
|
};
|
|
3095
3098
|
if (options$1.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse.fastpaths(input, options$1);
|
|
3096
3099
|
if (!parsed.output) parsed = parse(input, options$1);
|
|
3097
|
-
return picomatch
|
|
3100
|
+
return picomatch.compileRe(parsed, options$1, returnOutput, returnState);
|
|
3098
3101
|
};
|
|
3099
3102
|
/**
|
|
3100
3103
|
* Create a regular expression from the given regex source string.
|
|
@@ -3112,7 +3115,7 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3112
3115
|
* @return {RegExp}
|
|
3113
3116
|
* @api public
|
|
3114
3117
|
*/
|
|
3115
|
-
picomatch
|
|
3118
|
+
picomatch.toRegex = (source, options$1) => {
|
|
3116
3119
|
try {
|
|
3117
3120
|
const opts = options$1 || {};
|
|
3118
3121
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
@@ -3125,26 +3128,26 @@ var require_picomatch$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm
|
|
|
3125
3128
|
* Picomatch constants.
|
|
3126
3129
|
* @return {Object}
|
|
3127
3130
|
*/
|
|
3128
|
-
picomatch
|
|
3131
|
+
picomatch.constants = constants;
|
|
3129
3132
|
/**
|
|
3130
3133
|
* Expose "picomatch"
|
|
3131
3134
|
*/
|
|
3132
|
-
module.exports = picomatch
|
|
3133
|
-
})
|
|
3135
|
+
module.exports = picomatch;
|
|
3136
|
+
}));
|
|
3134
3137
|
|
|
3135
3138
|
//#endregion
|
|
3136
3139
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
|
|
3137
|
-
var require_picomatch = /* @__PURE__ */
|
|
3140
|
+
var require_picomatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3138
3141
|
module.exports = require_picomatch$1();
|
|
3139
|
-
})
|
|
3142
|
+
}));
|
|
3140
3143
|
|
|
3141
3144
|
//#endregion
|
|
3142
3145
|
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
3143
|
-
var require_micromatch = /* @__PURE__ */
|
|
3146
|
+
var require_micromatch = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3144
3147
|
const util = require("util");
|
|
3145
3148
|
const braces = require_braces();
|
|
3146
3149
|
const picomatch = require_picomatch();
|
|
3147
|
-
const utils
|
|
3150
|
+
const utils = require_utils$2();
|
|
3148
3151
|
const isEmptyString = (v) => v === "" || v === "./";
|
|
3149
3152
|
const hasBraces = (v) => {
|
|
3150
3153
|
const index = v.indexOf("{");
|
|
@@ -3167,7 +3170,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3167
3170
|
* @summary false
|
|
3168
3171
|
* @api public
|
|
3169
3172
|
*/
|
|
3170
|
-
const micromatch
|
|
3173
|
+
const micromatch = (list, patterns, options$1) => {
|
|
3171
3174
|
patterns = [].concat(patterns);
|
|
3172
3175
|
list = [].concat(list);
|
|
3173
3176
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -3205,7 +3208,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3205
3208
|
/**
|
|
3206
3209
|
* Backwards compatibility
|
|
3207
3210
|
*/
|
|
3208
|
-
micromatch
|
|
3211
|
+
micromatch.match = micromatch;
|
|
3209
3212
|
/**
|
|
3210
3213
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
3211
3214
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -3224,7 +3227,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3224
3227
|
* @return {Function} Returns a matcher function.
|
|
3225
3228
|
* @api public
|
|
3226
3229
|
*/
|
|
3227
|
-
micromatch
|
|
3230
|
+
micromatch.matcher = (pattern, options$1) => picomatch(pattern, options$1);
|
|
3228
3231
|
/**
|
|
3229
3232
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
3230
3233
|
*
|
|
@@ -3241,11 +3244,11 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3241
3244
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3242
3245
|
* @api public
|
|
3243
3246
|
*/
|
|
3244
|
-
micromatch
|
|
3247
|
+
micromatch.isMatch = (str, patterns, options$1) => picomatch(patterns, options$1)(str);
|
|
3245
3248
|
/**
|
|
3246
3249
|
* Backwards compatibility
|
|
3247
3250
|
*/
|
|
3248
|
-
micromatch
|
|
3251
|
+
micromatch.any = micromatch.isMatch;
|
|
3249
3252
|
/**
|
|
3250
3253
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
3251
3254
|
*
|
|
@@ -3262,7 +3265,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3262
3265
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
3263
3266
|
* @api public
|
|
3264
3267
|
*/
|
|
3265
|
-
micromatch
|
|
3268
|
+
micromatch.not = (list, patterns, options$1 = {}) => {
|
|
3266
3269
|
patterns = [].concat(patterns).map(String);
|
|
3267
3270
|
let result = /* @__PURE__ */ new Set();
|
|
3268
3271
|
let items = [];
|
|
@@ -3270,7 +3273,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3270
3273
|
if (options$1.onResult) options$1.onResult(state);
|
|
3271
3274
|
items.push(state.output);
|
|
3272
3275
|
};
|
|
3273
|
-
let matches = new Set(micromatch
|
|
3276
|
+
let matches = new Set(micromatch(list, patterns, {
|
|
3274
3277
|
...options$1,
|
|
3275
3278
|
onResult
|
|
3276
3279
|
}));
|
|
@@ -3296,14 +3299,14 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3296
3299
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
3297
3300
|
* @api public
|
|
3298
3301
|
*/
|
|
3299
|
-
micromatch
|
|
3302
|
+
micromatch.contains = (str, pattern, options$1) => {
|
|
3300
3303
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3301
|
-
if (Array.isArray(pattern
|
|
3302
|
-
if (typeof pattern
|
|
3303
|
-
if (isEmptyString(str) || isEmptyString(pattern
|
|
3304
|
-
if (str.includes(pattern
|
|
3304
|
+
if (Array.isArray(pattern)) return pattern.some((p) => micromatch.contains(str, p, options$1));
|
|
3305
|
+
if (typeof pattern === "string") {
|
|
3306
|
+
if (isEmptyString(str) || isEmptyString(pattern)) return false;
|
|
3307
|
+
if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern)) return true;
|
|
3305
3308
|
}
|
|
3306
|
-
return micromatch
|
|
3309
|
+
return micromatch.isMatch(str, pattern, {
|
|
3307
3310
|
...options$1,
|
|
3308
3311
|
contains: true
|
|
3309
3312
|
});
|
|
@@ -3327,9 +3330,9 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3327
3330
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
3328
3331
|
* @api public
|
|
3329
3332
|
*/
|
|
3330
|
-
micromatch
|
|
3331
|
-
if (!utils
|
|
3332
|
-
let keys$1 = micromatch
|
|
3333
|
+
micromatch.matchKeys = (obj, patterns, options$1) => {
|
|
3334
|
+
if (!utils.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
3335
|
+
let keys$1 = micromatch(Object.keys(obj), patterns, options$1);
|
|
3333
3336
|
let res = {};
|
|
3334
3337
|
for (let key of keys$1) res[key] = obj[key];
|
|
3335
3338
|
return res;
|
|
@@ -3352,10 +3355,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3352
3355
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
3353
3356
|
* @api public
|
|
3354
3357
|
*/
|
|
3355
|
-
micromatch
|
|
3358
|
+
micromatch.some = (list, patterns, options$1) => {
|
|
3356
3359
|
let items = [].concat(list);
|
|
3357
|
-
for (let pattern
|
|
3358
|
-
let isMatch = picomatch(String(pattern
|
|
3360
|
+
for (let pattern of [].concat(patterns)) {
|
|
3361
|
+
let isMatch = picomatch(String(pattern), options$1);
|
|
3359
3362
|
if (items.some((item) => isMatch(item))) return true;
|
|
3360
3363
|
}
|
|
3361
3364
|
return false;
|
|
@@ -3383,10 +3386,10 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3383
3386
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
3384
3387
|
* @api public
|
|
3385
3388
|
*/
|
|
3386
|
-
micromatch
|
|
3389
|
+
micromatch.every = (list, patterns, options$1) => {
|
|
3387
3390
|
let items = [].concat(list);
|
|
3388
|
-
for (let pattern
|
|
3389
|
-
let isMatch = picomatch(String(pattern
|
|
3391
|
+
for (let pattern of [].concat(patterns)) {
|
|
3392
|
+
let isMatch = picomatch(String(pattern), options$1);
|
|
3390
3393
|
if (!items.every((item) => isMatch(item))) return false;
|
|
3391
3394
|
}
|
|
3392
3395
|
return true;
|
|
@@ -3417,7 +3420,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3417
3420
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
3418
3421
|
* @api public
|
|
3419
3422
|
*/
|
|
3420
|
-
micromatch
|
|
3423
|
+
micromatch.all = (str, patterns, options$1) => {
|
|
3421
3424
|
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
|
|
3422
3425
|
return [].concat(patterns).every((p) => picomatch(p, options$1)(str));
|
|
3423
3426
|
};
|
|
@@ -3439,12 +3442,12 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3439
3442
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
3440
3443
|
* @api public
|
|
3441
3444
|
*/
|
|
3442
|
-
micromatch
|
|
3443
|
-
let posix = utils
|
|
3445
|
+
micromatch.capture = (glob, input, options$1) => {
|
|
3446
|
+
let posix = utils.isWindows(options$1);
|
|
3444
3447
|
let match = picomatch.makeRe(String(glob), {
|
|
3445
3448
|
...options$1,
|
|
3446
3449
|
capture: true
|
|
3447
|
-
}).exec(posix ? utils
|
|
3450
|
+
}).exec(posix ? utils.toPosixSlashes(input) : input);
|
|
3448
3451
|
if (match) return match.slice(1).map((v) => v === void 0 ? "" : v);
|
|
3449
3452
|
};
|
|
3450
3453
|
/**
|
|
@@ -3462,7 +3465,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3462
3465
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
3463
3466
|
* @api public
|
|
3464
3467
|
*/
|
|
3465
|
-
micromatch
|
|
3468
|
+
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
3466
3469
|
/**
|
|
3467
3470
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
3468
3471
|
* by the [split](#split) method.
|
|
@@ -3476,7 +3479,7 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3476
3479
|
* @return {Object} Returns an object with
|
|
3477
3480
|
* @api public
|
|
3478
3481
|
*/
|
|
3479
|
-
micromatch
|
|
3482
|
+
micromatch.scan = (...args) => picomatch.scan(...args);
|
|
3480
3483
|
/**
|
|
3481
3484
|
* Parse a glob pattern to create the source string for a regular
|
|
3482
3485
|
* expression.
|
|
@@ -3490,9 +3493,9 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3490
3493
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
3491
3494
|
* @api public
|
|
3492
3495
|
*/
|
|
3493
|
-
micromatch
|
|
3496
|
+
micromatch.parse = (patterns, options$1) => {
|
|
3494
3497
|
let res = [];
|
|
3495
|
-
for (let pattern
|
|
3498
|
+
for (let pattern of [].concat(patterns || [])) for (let str of braces(String(pattern), options$1)) res.push(picomatch.parse(str, options$1));
|
|
3496
3499
|
return res;
|
|
3497
3500
|
};
|
|
3498
3501
|
/**
|
|
@@ -3511,17 +3514,17 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3511
3514
|
* @return {Array}
|
|
3512
3515
|
* @api public
|
|
3513
3516
|
*/
|
|
3514
|
-
micromatch
|
|
3515
|
-
if (typeof pattern
|
|
3516
|
-
if (options$1 && options$1.nobrace === true || !hasBraces(pattern
|
|
3517
|
-
return braces(pattern
|
|
3517
|
+
micromatch.braces = (pattern, options$1) => {
|
|
3518
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3519
|
+
if (options$1 && options$1.nobrace === true || !hasBraces(pattern)) return [pattern];
|
|
3520
|
+
return braces(pattern, options$1);
|
|
3518
3521
|
};
|
|
3519
3522
|
/**
|
|
3520
3523
|
* Expand braces
|
|
3521
3524
|
*/
|
|
3522
|
-
micromatch
|
|
3523
|
-
if (typeof pattern
|
|
3524
|
-
return micromatch
|
|
3525
|
+
micromatch.braceExpand = (pattern, options$1) => {
|
|
3526
|
+
if (typeof pattern !== "string") throw new TypeError("Expected a string");
|
|
3527
|
+
return micromatch.braces(pattern, {
|
|
3525
3528
|
...options$1,
|
|
3526
3529
|
expand: true
|
|
3527
3530
|
});
|
|
@@ -3529,16 +3532,16 @@ var require_micromatch = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
3529
3532
|
/**
|
|
3530
3533
|
* Expose micromatch
|
|
3531
3534
|
*/
|
|
3532
|
-
micromatch
|
|
3533
|
-
module.exports = micromatch
|
|
3534
|
-
})
|
|
3535
|
+
micromatch.hasBraces = hasBraces;
|
|
3536
|
+
module.exports = micromatch;
|
|
3537
|
+
}));
|
|
3535
3538
|
|
|
3536
3539
|
//#endregion
|
|
3537
3540
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
3538
|
-
var require_pattern = /* @__PURE__ */
|
|
3541
|
+
var require_pattern = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3539
3542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3540
3543
|
exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
|
|
3541
|
-
const path$
|
|
3544
|
+
const path$5 = require("path");
|
|
3542
3545
|
const globParent = require_glob_parent();
|
|
3543
3546
|
const micromatch = require_micromatch();
|
|
3544
3547
|
const GLOBSTAR = "**";
|
|
@@ -3553,60 +3556,60 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3553
3556
|
* The latter is due to the presence of the device path at the beginning of the UNC path.
|
|
3554
3557
|
*/
|
|
3555
3558
|
const DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
3556
|
-
function isStaticPattern(pattern
|
|
3557
|
-
return !isDynamicPattern(pattern
|
|
3559
|
+
function isStaticPattern(pattern, options$1 = {}) {
|
|
3560
|
+
return !isDynamicPattern(pattern, options$1);
|
|
3558
3561
|
}
|
|
3559
3562
|
exports.isStaticPattern = isStaticPattern;
|
|
3560
|
-
function isDynamicPattern(pattern
|
|
3563
|
+
function isDynamicPattern(pattern, options$1 = {}) {
|
|
3561
3564
|
/**
|
|
3562
3565
|
* A special case with an empty string is necessary for matching patterns that start with a forward slash.
|
|
3563
3566
|
* An empty string cannot be a dynamic pattern.
|
|
3564
3567
|
* For example, the pattern `/lib/*` will be spread into parts: '', 'lib', '*'.
|
|
3565
3568
|
*/
|
|
3566
|
-
if (pattern
|
|
3569
|
+
if (pattern === "") return false;
|
|
3567
3570
|
/**
|
|
3568
3571
|
* When the `caseSensitiveMatch` option is disabled, all patterns must be marked as dynamic, because we cannot check
|
|
3569
3572
|
* filepath directly (without read directory).
|
|
3570
3573
|
*/
|
|
3571
|
-
if (options$1.caseSensitiveMatch === false || pattern
|
|
3572
|
-
if (COMMON_GLOB_SYMBOLS_RE.test(pattern
|
|
3573
|
-
if (options$1.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern
|
|
3574
|
-
if (options$1.braceExpansion !== false && hasBraceExpansion(pattern
|
|
3574
|
+
if (options$1.caseSensitiveMatch === false || pattern.includes(ESCAPE_SYMBOL)) return true;
|
|
3575
|
+
if (COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern)) return true;
|
|
3576
|
+
if (options$1.extglob !== false && GLOB_EXTENSION_SYMBOLS_RE.test(pattern)) return true;
|
|
3577
|
+
if (options$1.braceExpansion !== false && hasBraceExpansion(pattern)) return true;
|
|
3575
3578
|
return false;
|
|
3576
3579
|
}
|
|
3577
3580
|
exports.isDynamicPattern = isDynamicPattern;
|
|
3578
|
-
function hasBraceExpansion(pattern
|
|
3579
|
-
const openingBraceIndex = pattern
|
|
3581
|
+
function hasBraceExpansion(pattern) {
|
|
3582
|
+
const openingBraceIndex = pattern.indexOf("{");
|
|
3580
3583
|
if (openingBraceIndex === -1) return false;
|
|
3581
|
-
const closingBraceIndex = pattern
|
|
3584
|
+
const closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
|
|
3582
3585
|
if (closingBraceIndex === -1) return false;
|
|
3583
|
-
const braceContent = pattern
|
|
3586
|
+
const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
|
|
3584
3587
|
return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
|
|
3585
3588
|
}
|
|
3586
|
-
function convertToPositivePattern(pattern
|
|
3587
|
-
return isNegativePattern(pattern
|
|
3589
|
+
function convertToPositivePattern(pattern) {
|
|
3590
|
+
return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
|
|
3588
3591
|
}
|
|
3589
3592
|
exports.convertToPositivePattern = convertToPositivePattern;
|
|
3590
|
-
function convertToNegativePattern(pattern
|
|
3591
|
-
return "!" + pattern
|
|
3593
|
+
function convertToNegativePattern(pattern) {
|
|
3594
|
+
return "!" + pattern;
|
|
3592
3595
|
}
|
|
3593
3596
|
exports.convertToNegativePattern = convertToNegativePattern;
|
|
3594
|
-
function isNegativePattern(pattern
|
|
3595
|
-
return pattern
|
|
3597
|
+
function isNegativePattern(pattern) {
|
|
3598
|
+
return pattern.startsWith("!") && pattern[1] !== "(";
|
|
3596
3599
|
}
|
|
3597
3600
|
exports.isNegativePattern = isNegativePattern;
|
|
3598
|
-
function isPositivePattern(pattern
|
|
3599
|
-
return !isNegativePattern(pattern
|
|
3601
|
+
function isPositivePattern(pattern) {
|
|
3602
|
+
return !isNegativePattern(pattern);
|
|
3600
3603
|
}
|
|
3601
3604
|
exports.isPositivePattern = isPositivePattern;
|
|
3602
3605
|
function getNegativePatterns(patterns) {
|
|
3603
3606
|
return patterns.filter(isNegativePattern);
|
|
3604
3607
|
}
|
|
3605
3608
|
exports.getNegativePatterns = getNegativePatterns;
|
|
3606
|
-
function getPositivePatterns
|
|
3609
|
+
function getPositivePatterns(patterns) {
|
|
3607
3610
|
return patterns.filter(isPositivePattern);
|
|
3608
3611
|
}
|
|
3609
|
-
exports.getPositivePatterns = getPositivePatterns
|
|
3612
|
+
exports.getPositivePatterns = getPositivePatterns;
|
|
3610
3613
|
/**
|
|
3611
3614
|
* Returns patterns that can be applied inside the current directory.
|
|
3612
3615
|
*
|
|
@@ -3615,7 +3618,7 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3615
3618
|
* getPatternsInsideCurrentDirectory(['./*', '*', 'a/*', '../*', './../*'])
|
|
3616
3619
|
*/
|
|
3617
3620
|
function getPatternsInsideCurrentDirectory(patterns) {
|
|
3618
|
-
return patterns.filter((pattern
|
|
3621
|
+
return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
|
|
3619
3622
|
}
|
|
3620
3623
|
exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
|
|
3621
3624
|
/**
|
|
@@ -3629,35 +3632,35 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3629
3632
|
return patterns.filter(isPatternRelatedToParentDirectory);
|
|
3630
3633
|
}
|
|
3631
3634
|
exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
|
|
3632
|
-
function isPatternRelatedToParentDirectory(pattern
|
|
3633
|
-
return pattern
|
|
3635
|
+
function isPatternRelatedToParentDirectory(pattern) {
|
|
3636
|
+
return pattern.startsWith("..") || pattern.startsWith("./..");
|
|
3634
3637
|
}
|
|
3635
3638
|
exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
|
|
3636
|
-
function getBaseDirectory(pattern
|
|
3637
|
-
return globParent(pattern
|
|
3639
|
+
function getBaseDirectory(pattern) {
|
|
3640
|
+
return globParent(pattern, { flipBackslashes: false });
|
|
3638
3641
|
}
|
|
3639
3642
|
exports.getBaseDirectory = getBaseDirectory;
|
|
3640
|
-
function hasGlobStar(pattern
|
|
3641
|
-
return pattern
|
|
3643
|
+
function hasGlobStar(pattern) {
|
|
3644
|
+
return pattern.includes(GLOBSTAR);
|
|
3642
3645
|
}
|
|
3643
3646
|
exports.hasGlobStar = hasGlobStar;
|
|
3644
|
-
function endsWithSlashGlobStar(pattern
|
|
3645
|
-
return pattern
|
|
3647
|
+
function endsWithSlashGlobStar(pattern) {
|
|
3648
|
+
return pattern.endsWith("/" + GLOBSTAR);
|
|
3646
3649
|
}
|
|
3647
3650
|
exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
|
|
3648
|
-
function isAffectDepthOfReadingPattern(pattern
|
|
3649
|
-
const basename = path$
|
|
3650
|
-
return endsWithSlashGlobStar(pattern
|
|
3651
|
+
function isAffectDepthOfReadingPattern(pattern) {
|
|
3652
|
+
const basename = path$5.basename(pattern);
|
|
3653
|
+
return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
|
|
3651
3654
|
}
|
|
3652
3655
|
exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
|
|
3653
3656
|
function expandPatternsWithBraceExpansion(patterns) {
|
|
3654
|
-
return patterns.reduce((collection, pattern
|
|
3655
|
-
return collection.concat(expandBraceExpansion(pattern
|
|
3657
|
+
return patterns.reduce((collection, pattern) => {
|
|
3658
|
+
return collection.concat(expandBraceExpansion(pattern));
|
|
3656
3659
|
}, []);
|
|
3657
3660
|
}
|
|
3658
3661
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
3659
|
-
function expandBraceExpansion(pattern
|
|
3660
|
-
const patterns = micromatch.braces(pattern
|
|
3662
|
+
function expandBraceExpansion(pattern) {
|
|
3663
|
+
const patterns = micromatch.braces(pattern, {
|
|
3661
3664
|
expand: true,
|
|
3662
3665
|
nodupes: true,
|
|
3663
3666
|
keepEscaping: true
|
|
@@ -3670,16 +3673,16 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3670
3673
|
/**
|
|
3671
3674
|
* Micromatch can return an empty string in the case of patterns like `{a,}`.
|
|
3672
3675
|
*/
|
|
3673
|
-
return patterns.filter((pattern$
|
|
3676
|
+
return patterns.filter((pattern$1) => pattern$1 !== "");
|
|
3674
3677
|
}
|
|
3675
3678
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
3676
|
-
function getPatternParts(pattern
|
|
3677
|
-
let { parts } = micromatch.scan(pattern
|
|
3679
|
+
function getPatternParts(pattern, options$1) {
|
|
3680
|
+
let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options$1), { parts: true }));
|
|
3678
3681
|
/**
|
|
3679
3682
|
* The scan method returns an empty array in some cases.
|
|
3680
3683
|
* See micromatch/picomatch#58 for more details.
|
|
3681
3684
|
*/
|
|
3682
|
-
if (parts.length === 0) parts = [pattern
|
|
3685
|
+
if (parts.length === 0) parts = [pattern];
|
|
3683
3686
|
/**
|
|
3684
3687
|
* The scan method does not return an empty part for the pattern with a forward slash.
|
|
3685
3688
|
* This is another part of micromatch/picomatch#58.
|
|
@@ -3691,12 +3694,12 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3691
3694
|
return parts;
|
|
3692
3695
|
}
|
|
3693
3696
|
exports.getPatternParts = getPatternParts;
|
|
3694
|
-
function makeRe(pattern
|
|
3695
|
-
return micromatch.makeRe(pattern
|
|
3697
|
+
function makeRe(pattern, options$1) {
|
|
3698
|
+
return micromatch.makeRe(pattern, options$1);
|
|
3696
3699
|
}
|
|
3697
3700
|
exports.makeRe = makeRe;
|
|
3698
3701
|
function convertPatternsToRe(patterns, options$1) {
|
|
3699
|
-
return patterns.map((pattern
|
|
3702
|
+
return patterns.map((pattern) => makeRe(pattern, options$1));
|
|
3700
3703
|
}
|
|
3701
3704
|
exports.convertPatternsToRe = convertPatternsToRe;
|
|
3702
3705
|
function matchAny(entry, patternsRe) {
|
|
@@ -3707,31 +3710,31 @@ var require_pattern = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
3707
3710
|
* This package only works with forward slashes as a path separator.
|
|
3708
3711
|
* Because of this, we cannot use the standard `path.normalize` method, because on Windows platform it will use of backslashes.
|
|
3709
3712
|
*/
|
|
3710
|
-
function removeDuplicateSlashes(pattern
|
|
3711
|
-
return pattern
|
|
3713
|
+
function removeDuplicateSlashes(pattern) {
|
|
3714
|
+
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
3712
3715
|
}
|
|
3713
3716
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
3714
3717
|
function partitionAbsoluteAndRelative(patterns) {
|
|
3715
3718
|
const absolute = [];
|
|
3716
3719
|
const relative$1 = [];
|
|
3717
|
-
for (const pattern
|
|
3718
|
-
else relative$1.push(pattern
|
|
3720
|
+
for (const pattern of patterns) if (isAbsolute(pattern)) absolute.push(pattern);
|
|
3721
|
+
else relative$1.push(pattern);
|
|
3719
3722
|
return [absolute, relative$1];
|
|
3720
3723
|
}
|
|
3721
3724
|
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
3722
|
-
function isAbsolute
|
|
3723
|
-
return path$
|
|
3725
|
+
function isAbsolute(pattern) {
|
|
3726
|
+
return path$5.isAbsolute(pattern);
|
|
3724
3727
|
}
|
|
3725
|
-
exports.isAbsolute = isAbsolute
|
|
3726
|
-
})
|
|
3728
|
+
exports.isAbsolute = isAbsolute;
|
|
3729
|
+
}));
|
|
3727
3730
|
|
|
3728
3731
|
//#endregion
|
|
3729
3732
|
//#region ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
|
|
3730
|
-
var require_merge2 = /* @__PURE__ */
|
|
3733
|
+
var require_merge2 = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
3731
3734
|
const PassThrough = require("stream").PassThrough;
|
|
3732
3735
|
const slice = Array.prototype.slice;
|
|
3733
|
-
module.exports = merge2
|
|
3734
|
-
function merge2
|
|
3736
|
+
module.exports = merge2;
|
|
3737
|
+
function merge2() {
|
|
3735
3738
|
const streamsQueue = [];
|
|
3736
3739
|
const args = slice.call(arguments);
|
|
3737
3740
|
let merging = false;
|
|
@@ -3763,22 +3766,22 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3763
3766
|
merging = false;
|
|
3764
3767
|
mergeStream();
|
|
3765
3768
|
}
|
|
3766
|
-
function pipe(stream
|
|
3769
|
+
function pipe(stream) {
|
|
3767
3770
|
function onend() {
|
|
3768
|
-
stream
|
|
3769
|
-
stream
|
|
3770
|
-
if (doPipeError) stream
|
|
3771
|
+
stream.removeListener("merge2UnpipeEnd", onend);
|
|
3772
|
+
stream.removeListener("end", onend);
|
|
3773
|
+
if (doPipeError) stream.removeListener("error", onerror);
|
|
3771
3774
|
next();
|
|
3772
3775
|
}
|
|
3773
3776
|
function onerror(err) {
|
|
3774
3777
|
mergedStream.emit("error", err);
|
|
3775
3778
|
}
|
|
3776
|
-
if (stream
|
|
3777
|
-
stream
|
|
3778
|
-
stream
|
|
3779
|
-
if (doPipeError) stream
|
|
3780
|
-
stream
|
|
3781
|
-
stream
|
|
3779
|
+
if (stream._readableState.endEmitted) return next();
|
|
3780
|
+
stream.on("merge2UnpipeEnd", onend);
|
|
3781
|
+
stream.on("end", onend);
|
|
3782
|
+
if (doPipeError) stream.on("error", onerror);
|
|
3783
|
+
stream.pipe(mergedStream, { end: false });
|
|
3784
|
+
stream.resume();
|
|
3782
3785
|
}
|
|
3783
3786
|
for (let i = 0; i < streams.length; i++) pipe(streams[i]);
|
|
3784
3787
|
next();
|
|
@@ -3790,8 +3793,8 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3790
3793
|
}
|
|
3791
3794
|
mergedStream.setMaxListeners(0);
|
|
3792
3795
|
mergedStream.add = addStream;
|
|
3793
|
-
mergedStream.on("unpipe", function(stream
|
|
3794
|
-
stream
|
|
3796
|
+
mergedStream.on("unpipe", function(stream) {
|
|
3797
|
+
stream.emit("merge2UnpipeEnd");
|
|
3795
3798
|
});
|
|
3796
3799
|
if (args.length) addStream.apply(null, args);
|
|
3797
3800
|
return mergedStream;
|
|
@@ -3804,18 +3807,18 @@ var require_merge2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/merg
|
|
|
3804
3807
|
} else for (let i = 0, len = streams.length; i < len; i++) streams[i] = pauseStreams(streams[i], options$1);
|
|
3805
3808
|
return streams;
|
|
3806
3809
|
}
|
|
3807
|
-
})
|
|
3810
|
+
}));
|
|
3808
3811
|
|
|
3809
3812
|
//#endregion
|
|
3810
3813
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
3811
|
-
var require_stream$3 = /* @__PURE__ */
|
|
3814
|
+
var require_stream$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3812
3815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3813
3816
|
exports.merge = void 0;
|
|
3814
3817
|
const merge2 = require_merge2();
|
|
3815
3818
|
function merge(streams) {
|
|
3816
3819
|
const mergedStream = merge2(streams);
|
|
3817
|
-
streams.forEach((stream
|
|
3818
|
-
stream
|
|
3820
|
+
streams.forEach((stream) => {
|
|
3821
|
+
stream.once("error", (error) => mergedStream.emit("error", error));
|
|
3819
3822
|
});
|
|
3820
3823
|
mergedStream.once("close", () => propagateCloseEventToSources(streams));
|
|
3821
3824
|
mergedStream.once("end", () => propagateCloseEventToSources(streams));
|
|
@@ -3823,13 +3826,13 @@ var require_stream$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
3823
3826
|
}
|
|
3824
3827
|
exports.merge = merge;
|
|
3825
3828
|
function propagateCloseEventToSources(streams) {
|
|
3826
|
-
streams.forEach((stream
|
|
3829
|
+
streams.forEach((stream) => stream.emit("close"));
|
|
3827
3830
|
}
|
|
3828
|
-
})
|
|
3831
|
+
}));
|
|
3829
3832
|
|
|
3830
3833
|
//#endregion
|
|
3831
3834
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
3832
|
-
var require_string = /* @__PURE__ */
|
|
3835
|
+
var require_string = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3833
3836
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3834
3837
|
exports.isEmpty = exports.isString = void 0;
|
|
3835
3838
|
function isString(input) {
|
|
@@ -3840,42 +3843,42 @@ var require_string = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
3840
3843
|
return input === "";
|
|
3841
3844
|
}
|
|
3842
3845
|
exports.isEmpty = isEmpty;
|
|
3843
|
-
})
|
|
3846
|
+
}));
|
|
3844
3847
|
|
|
3845
3848
|
//#endregion
|
|
3846
3849
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
3847
|
-
var require_utils$1 = /* @__PURE__ */
|
|
3850
|
+
var require_utils$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3848
3851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3849
3852
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
3850
3853
|
const array = require_array();
|
|
3851
3854
|
exports.array = array;
|
|
3852
3855
|
const errno = require_errno();
|
|
3853
3856
|
exports.errno = errno;
|
|
3854
|
-
const fs
|
|
3855
|
-
exports.fs = fs
|
|
3856
|
-
const path
|
|
3857
|
-
exports.path = path
|
|
3857
|
+
const fs = require_fs$3();
|
|
3858
|
+
exports.fs = fs;
|
|
3859
|
+
const path = require_path();
|
|
3860
|
+
exports.path = path;
|
|
3858
3861
|
const pattern = require_pattern();
|
|
3859
3862
|
exports.pattern = pattern;
|
|
3860
3863
|
const stream = require_stream$3();
|
|
3861
3864
|
exports.stream = stream;
|
|
3862
3865
|
const string = require_string();
|
|
3863
3866
|
exports.string = string;
|
|
3864
|
-
})
|
|
3867
|
+
}));
|
|
3865
3868
|
|
|
3866
3869
|
//#endregion
|
|
3867
3870
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
3868
|
-
var require_tasks = /* @__PURE__ */
|
|
3871
|
+
var require_tasks = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3869
3872
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3870
3873
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
3871
|
-
const utils
|
|
3874
|
+
const utils = require_utils$1();
|
|
3872
3875
|
function generate(input, settings) {
|
|
3873
3876
|
const patterns = processPatterns(input, settings);
|
|
3874
3877
|
const ignore = processPatterns(settings.ignore, settings);
|
|
3875
3878
|
const positivePatterns = getPositivePatterns(patterns);
|
|
3876
3879
|
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
3877
|
-
const staticPatterns = positivePatterns.filter((pattern
|
|
3878
|
-
const dynamicPatterns = positivePatterns.filter((pattern
|
|
3880
|
+
const staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings));
|
|
3881
|
+
const dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings));
|
|
3879
3882
|
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, false);
|
|
3880
3883
|
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, true);
|
|
3881
3884
|
return staticTasks.concat(dynamicTasks);
|
|
@@ -3890,7 +3893,7 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3890
3893
|
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
|
3891
3894
|
* in matching in the case of a large set of patterns after expansion.
|
|
3892
3895
|
*/
|
|
3893
|
-
if (settings.braceExpansion) patterns = utils
|
|
3896
|
+
if (settings.braceExpansion) patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
3894
3897
|
/**
|
|
3895
3898
|
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
|
3896
3899
|
* at any nesting level.
|
|
@@ -3899,11 +3902,11 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3899
3902
|
* the pattern in the filter before creating a regular expression. There is no need to change the patterns
|
|
3900
3903
|
* in the application. Only on the input.
|
|
3901
3904
|
*/
|
|
3902
|
-
if (settings.baseNameMatch) patterns = patterns.map((pattern
|
|
3905
|
+
if (settings.baseNameMatch) patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`);
|
|
3903
3906
|
/**
|
|
3904
3907
|
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
|
3905
3908
|
*/
|
|
3906
|
-
return patterns.map((pattern
|
|
3909
|
+
return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
|
|
3907
3910
|
}
|
|
3908
3911
|
/**
|
|
3909
3912
|
* Returns tasks grouped by basic pattern directories.
|
|
@@ -3913,8 +3916,8 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3913
3916
|
*/
|
|
3914
3917
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
3915
3918
|
const tasks = [];
|
|
3916
|
-
const patternsOutsideCurrentDirectory = utils
|
|
3917
|
-
const patternsInsideCurrentDirectory = utils
|
|
3919
|
+
const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
3920
|
+
const patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
3918
3921
|
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
3919
3922
|
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
3920
3923
|
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
@@ -3924,18 +3927,18 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3924
3927
|
}
|
|
3925
3928
|
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
3926
3929
|
function getPositivePatterns(patterns) {
|
|
3927
|
-
return utils
|
|
3930
|
+
return utils.pattern.getPositivePatterns(patterns);
|
|
3928
3931
|
}
|
|
3929
3932
|
exports.getPositivePatterns = getPositivePatterns;
|
|
3930
3933
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
3931
|
-
return utils
|
|
3934
|
+
return utils.pattern.getNegativePatterns(patterns).concat(ignore).map(utils.pattern.convertToPositivePattern);
|
|
3932
3935
|
}
|
|
3933
3936
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
3934
3937
|
function groupPatternsByBaseDirectory(patterns) {
|
|
3935
|
-
return patterns.reduce((collection, pattern
|
|
3936
|
-
const base = utils
|
|
3937
|
-
if (base in collection) collection[base].push(pattern
|
|
3938
|
-
else collection[base] = [pattern
|
|
3938
|
+
return patterns.reduce((collection, pattern) => {
|
|
3939
|
+
const base = utils.pattern.getBaseDirectory(pattern);
|
|
3940
|
+
if (base in collection) collection[base].push(pattern);
|
|
3941
|
+
else collection[base] = [pattern];
|
|
3939
3942
|
return collection;
|
|
3940
3943
|
}, {});
|
|
3941
3944
|
}
|
|
@@ -3952,99 +3955,99 @@ var require_tasks = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
3952
3955
|
positive,
|
|
3953
3956
|
negative,
|
|
3954
3957
|
base,
|
|
3955
|
-
patterns: [].concat(positive, negative.map(utils
|
|
3958
|
+
patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
|
|
3956
3959
|
};
|
|
3957
3960
|
}
|
|
3958
3961
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
3959
|
-
})
|
|
3962
|
+
}));
|
|
3960
3963
|
|
|
3961
3964
|
//#endregion
|
|
3962
3965
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
|
|
3963
|
-
var require_async$5 = /* @__PURE__ */
|
|
3966
|
+
var require_async$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
3964
3967
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3965
3968
|
exports.read = void 0;
|
|
3966
|
-
function read
|
|
3967
|
-
settings.fs.lstat(path$
|
|
3969
|
+
function read(path$10, settings, callback) {
|
|
3970
|
+
settings.fs.lstat(path$10, (lstatError, lstat) => {
|
|
3968
3971
|
if (lstatError !== null) {
|
|
3969
|
-
callFailureCallback
|
|
3972
|
+
callFailureCallback(callback, lstatError);
|
|
3970
3973
|
return;
|
|
3971
3974
|
}
|
|
3972
3975
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
|
|
3973
|
-
callSuccessCallback
|
|
3976
|
+
callSuccessCallback(callback, lstat);
|
|
3974
3977
|
return;
|
|
3975
3978
|
}
|
|
3976
|
-
settings.fs.stat(path$
|
|
3979
|
+
settings.fs.stat(path$10, (statError, stat) => {
|
|
3977
3980
|
if (statError !== null) {
|
|
3978
3981
|
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
3979
|
-
callFailureCallback
|
|
3982
|
+
callFailureCallback(callback, statError);
|
|
3980
3983
|
return;
|
|
3981
3984
|
}
|
|
3982
|
-
callSuccessCallback
|
|
3985
|
+
callSuccessCallback(callback, lstat);
|
|
3983
3986
|
return;
|
|
3984
3987
|
}
|
|
3985
|
-
if (settings.markSymbolicLink) stat
|
|
3986
|
-
callSuccessCallback
|
|
3988
|
+
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
3989
|
+
callSuccessCallback(callback, stat);
|
|
3987
3990
|
});
|
|
3988
3991
|
});
|
|
3989
3992
|
}
|
|
3990
|
-
exports.read = read
|
|
3991
|
-
function callFailureCallback
|
|
3993
|
+
exports.read = read;
|
|
3994
|
+
function callFailureCallback(callback, error) {
|
|
3992
3995
|
callback(error);
|
|
3993
3996
|
}
|
|
3994
|
-
function callSuccessCallback
|
|
3997
|
+
function callSuccessCallback(callback, result) {
|
|
3995
3998
|
callback(null, result);
|
|
3996
3999
|
}
|
|
3997
|
-
})
|
|
4000
|
+
}));
|
|
3998
4001
|
|
|
3999
4002
|
//#endregion
|
|
4000
4003
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
|
|
4001
|
-
var require_sync$5 = /* @__PURE__ */
|
|
4004
|
+
var require_sync$5 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4002
4005
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4003
4006
|
exports.read = void 0;
|
|
4004
|
-
function read
|
|
4005
|
-
const lstat = settings.fs.lstatSync(path$
|
|
4007
|
+
function read(path$10, settings) {
|
|
4008
|
+
const lstat = settings.fs.lstatSync(path$10);
|
|
4006
4009
|
if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) return lstat;
|
|
4007
4010
|
try {
|
|
4008
|
-
const stat
|
|
4009
|
-
if (settings.markSymbolicLink) stat
|
|
4010
|
-
return stat
|
|
4011
|
+
const stat = settings.fs.statSync(path$10);
|
|
4012
|
+
if (settings.markSymbolicLink) stat.isSymbolicLink = () => true;
|
|
4013
|
+
return stat;
|
|
4011
4014
|
} catch (error) {
|
|
4012
4015
|
if (!settings.throwErrorOnBrokenSymbolicLink) return lstat;
|
|
4013
4016
|
throw error;
|
|
4014
4017
|
}
|
|
4015
4018
|
}
|
|
4016
|
-
exports.read = read
|
|
4017
|
-
})
|
|
4019
|
+
exports.read = read;
|
|
4020
|
+
}));
|
|
4018
4021
|
|
|
4019
4022
|
//#endregion
|
|
4020
4023
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
|
|
4021
|
-
var require_fs$2 = /* @__PURE__ */
|
|
4024
|
+
var require_fs$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4022
4025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4023
4026
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4024
|
-
const fs$
|
|
4027
|
+
const fs$3 = require("fs");
|
|
4025
4028
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
4026
|
-
lstat: fs$
|
|
4027
|
-
stat: fs$
|
|
4028
|
-
lstatSync: fs$
|
|
4029
|
-
statSync: fs$
|
|
4029
|
+
lstat: fs$3.lstat,
|
|
4030
|
+
stat: fs$3.stat,
|
|
4031
|
+
lstatSync: fs$3.lstatSync,
|
|
4032
|
+
statSync: fs$3.statSync
|
|
4030
4033
|
};
|
|
4031
|
-
function createFileSystemAdapter
|
|
4034
|
+
function createFileSystemAdapter(fsMethods) {
|
|
4032
4035
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
4033
4036
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
4034
4037
|
}
|
|
4035
|
-
exports.createFileSystemAdapter = createFileSystemAdapter
|
|
4036
|
-
})
|
|
4038
|
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4039
|
+
}));
|
|
4037
4040
|
|
|
4038
4041
|
//#endregion
|
|
4039
4042
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
|
|
4040
|
-
var require_settings$3 = /* @__PURE__ */
|
|
4043
|
+
var require_settings$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4041
4044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4042
|
-
const fs
|
|
4043
|
-
var Settings
|
|
4045
|
+
const fs = require_fs$2();
|
|
4046
|
+
var Settings = class {
|
|
4044
4047
|
constructor(_options = {}) {
|
|
4045
4048
|
this._options = _options;
|
|
4046
4049
|
this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
|
|
4047
|
-
this.fs = fs
|
|
4050
|
+
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4048
4051
|
this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, false);
|
|
4049
4052
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4050
4053
|
}
|
|
@@ -4052,53 +4055,53 @@ var require_settings$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4052
4055
|
return option !== null && option !== void 0 ? option : value;
|
|
4053
4056
|
}
|
|
4054
4057
|
};
|
|
4055
|
-
exports.default = Settings
|
|
4056
|
-
})
|
|
4058
|
+
exports.default = Settings;
|
|
4059
|
+
}));
|
|
4057
4060
|
|
|
4058
4061
|
//#endregion
|
|
4059
4062
|
//#region ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
|
|
4060
|
-
var require_out$3 = /* @__PURE__ */
|
|
4063
|
+
var require_out$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4061
4064
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4062
4065
|
exports.statSync = exports.stat = exports.Settings = void 0;
|
|
4063
|
-
const async
|
|
4064
|
-
const sync
|
|
4065
|
-
const settings_1
|
|
4066
|
-
exports.Settings = settings_1
|
|
4067
|
-
function stat(path$
|
|
4066
|
+
const async = require_async$5();
|
|
4067
|
+
const sync = require_sync$5();
|
|
4068
|
+
const settings_1 = require_settings$3();
|
|
4069
|
+
exports.Settings = settings_1.default;
|
|
4070
|
+
function stat(path$10, optionsOrSettingsOrCallback, callback) {
|
|
4068
4071
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4069
|
-
async
|
|
4072
|
+
async.read(path$10, getSettings(), optionsOrSettingsOrCallback);
|
|
4070
4073
|
return;
|
|
4071
4074
|
}
|
|
4072
|
-
async
|
|
4075
|
+
async.read(path$10, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4073
4076
|
}
|
|
4074
4077
|
exports.stat = stat;
|
|
4075
|
-
function statSync(path$
|
|
4076
|
-
const settings = getSettings
|
|
4077
|
-
return sync
|
|
4078
|
+
function statSync(path$10, optionsOrSettings) {
|
|
4079
|
+
const settings = getSettings(optionsOrSettings);
|
|
4080
|
+
return sync.read(path$10, settings);
|
|
4078
4081
|
}
|
|
4079
4082
|
exports.statSync = statSync;
|
|
4080
|
-
function getSettings
|
|
4081
|
-
if (settingsOrOptions instanceof settings_1
|
|
4082
|
-
return new settings_1
|
|
4083
|
+
function getSettings(settingsOrOptions = {}) {
|
|
4084
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
4085
|
+
return new settings_1.default(settingsOrOptions);
|
|
4083
4086
|
}
|
|
4084
|
-
})
|
|
4087
|
+
}));
|
|
4085
4088
|
|
|
4086
4089
|
//#endregion
|
|
4087
4090
|
//#region ../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
|
|
4088
|
-
var require_queue_microtask = /* @__PURE__ */
|
|
4091
|
+
var require_queue_microtask = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4089
4092
|
/*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4090
4093
|
let promise;
|
|
4091
4094
|
module.exports = typeof queueMicrotask === "function" ? queueMicrotask.bind(typeof window !== "undefined" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
|
|
4092
4095
|
throw err;
|
|
4093
4096
|
}, 0));
|
|
4094
|
-
})
|
|
4097
|
+
}));
|
|
4095
4098
|
|
|
4096
4099
|
//#endregion
|
|
4097
4100
|
//#region ../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js
|
|
4098
|
-
var require_run_parallel = /* @__PURE__ */
|
|
4101
|
+
var require_run_parallel = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4099
4102
|
/*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
4100
4103
|
module.exports = runParallel;
|
|
4101
|
-
const queueMicrotask
|
|
4104
|
+
const queueMicrotask = require_queue_microtask();
|
|
4102
4105
|
function runParallel(tasks, cb) {
|
|
4103
4106
|
let results, pending, keys$1;
|
|
4104
4107
|
let isSync = true;
|
|
@@ -4115,7 +4118,7 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4115
4118
|
if (cb) cb(err, results);
|
|
4116
4119
|
cb = null;
|
|
4117
4120
|
}
|
|
4118
|
-
if (isSync) queueMicrotask
|
|
4121
|
+
if (isSync) queueMicrotask(end);
|
|
4119
4122
|
else end();
|
|
4120
4123
|
}
|
|
4121
4124
|
function each(i, err, result) {
|
|
@@ -4135,11 +4138,11 @@ var require_run_parallel = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnp
|
|
|
4135
4138
|
});
|
|
4136
4139
|
isSync = false;
|
|
4137
4140
|
}
|
|
4138
|
-
})
|
|
4141
|
+
}));
|
|
4139
4142
|
|
|
4140
4143
|
//#endregion
|
|
4141
4144
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
4142
|
-
var require_constants = /* @__PURE__ */
|
|
4145
|
+
var require_constants = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4143
4146
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4144
4147
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4145
4148
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -4154,11 +4157,11 @@ var require_constants = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@
|
|
|
4154
4157
|
* IS `true` for Node.js 10.10 and greater.
|
|
4155
4158
|
*/
|
|
4156
4159
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
|
4157
|
-
})
|
|
4160
|
+
}));
|
|
4158
4161
|
|
|
4159
4162
|
//#endregion
|
|
4160
4163
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
|
|
4161
|
-
var require_fs$1 = /* @__PURE__ */
|
|
4164
|
+
var require_fs$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4162
4165
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4163
4166
|
exports.createDirentFromStats = void 0;
|
|
4164
4167
|
var DirentFromStats = class {
|
|
@@ -4177,75 +4180,75 @@ var require_fs$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nodel
|
|
|
4177
4180
|
return new DirentFromStats(name, stats);
|
|
4178
4181
|
}
|
|
4179
4182
|
exports.createDirentFromStats = createDirentFromStats;
|
|
4180
|
-
})
|
|
4183
|
+
}));
|
|
4181
4184
|
|
|
4182
4185
|
//#endregion
|
|
4183
4186
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
4184
|
-
var require_utils = /* @__PURE__ */
|
|
4187
|
+
var require_utils = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4185
4188
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4186
4189
|
exports.fs = void 0;
|
|
4187
|
-
const fs
|
|
4188
|
-
exports.fs = fs
|
|
4189
|
-
})
|
|
4190
|
+
const fs = require_fs$1();
|
|
4191
|
+
exports.fs = fs;
|
|
4192
|
+
}));
|
|
4190
4193
|
|
|
4191
4194
|
//#endregion
|
|
4192
4195
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
|
|
4193
|
-
var require_common$1 = /* @__PURE__ */
|
|
4196
|
+
var require_common$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4194
4197
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4195
4198
|
exports.joinPathSegments = void 0;
|
|
4196
|
-
function joinPathSegments
|
|
4199
|
+
function joinPathSegments(a, b, separator) {
|
|
4197
4200
|
/**
|
|
4198
4201
|
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
|
4199
4202
|
*/
|
|
4200
4203
|
if (a.endsWith(separator)) return a + b;
|
|
4201
4204
|
return a + separator + b;
|
|
4202
4205
|
}
|
|
4203
|
-
exports.joinPathSegments = joinPathSegments
|
|
4204
|
-
})
|
|
4206
|
+
exports.joinPathSegments = joinPathSegments;
|
|
4207
|
+
}));
|
|
4205
4208
|
|
|
4206
4209
|
//#endregion
|
|
4207
4210
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
|
|
4208
|
-
var require_async$4 = /* @__PURE__ */
|
|
4211
|
+
var require_async$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4209
4212
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4210
4213
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4211
|
-
const fsStat
|
|
4214
|
+
const fsStat = require_out$3();
|
|
4212
4215
|
const rpl = require_run_parallel();
|
|
4213
|
-
const constants_1
|
|
4214
|
-
const utils
|
|
4215
|
-
const common
|
|
4216
|
-
function read
|
|
4217
|
-
if (!settings.stats && constants_1
|
|
4218
|
-
readdirWithFileTypes
|
|
4216
|
+
const constants_1 = require_constants();
|
|
4217
|
+
const utils = require_utils();
|
|
4218
|
+
const common = require_common$1();
|
|
4219
|
+
function read(directory, settings, callback) {
|
|
4220
|
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
4221
|
+
readdirWithFileTypes(directory, settings, callback);
|
|
4219
4222
|
return;
|
|
4220
4223
|
}
|
|
4221
|
-
readdir
|
|
4224
|
+
readdir(directory, settings, callback);
|
|
4222
4225
|
}
|
|
4223
|
-
exports.read = read
|
|
4224
|
-
function readdirWithFileTypes
|
|
4226
|
+
exports.read = read;
|
|
4227
|
+
function readdirWithFileTypes(directory, settings, callback) {
|
|
4225
4228
|
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
|
4226
4229
|
if (readdirError !== null) {
|
|
4227
|
-
callFailureCallback
|
|
4230
|
+
callFailureCallback(callback, readdirError);
|
|
4228
4231
|
return;
|
|
4229
4232
|
}
|
|
4230
4233
|
const entries = dirents.map((dirent) => ({
|
|
4231
4234
|
dirent,
|
|
4232
4235
|
name: dirent.name,
|
|
4233
|
-
path: common
|
|
4236
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
4234
4237
|
}));
|
|
4235
4238
|
if (!settings.followSymbolicLinks) {
|
|
4236
|
-
callSuccessCallback
|
|
4239
|
+
callSuccessCallback(callback, entries);
|
|
4237
4240
|
return;
|
|
4238
4241
|
}
|
|
4239
4242
|
rpl(entries.map((entry) => makeRplTaskEntry(entry, settings)), (rplError, rplEntries) => {
|
|
4240
4243
|
if (rplError !== null) {
|
|
4241
|
-
callFailureCallback
|
|
4244
|
+
callFailureCallback(callback, rplError);
|
|
4242
4245
|
return;
|
|
4243
4246
|
}
|
|
4244
|
-
callSuccessCallback
|
|
4247
|
+
callSuccessCallback(callback, rplEntries);
|
|
4245
4248
|
});
|
|
4246
4249
|
});
|
|
4247
4250
|
}
|
|
4248
|
-
exports.readdirWithFileTypes = readdirWithFileTypes
|
|
4251
|
+
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
4249
4252
|
function makeRplTaskEntry(entry, settings) {
|
|
4250
4253
|
return (done) => {
|
|
4251
4254
|
if (!entry.dirent.isSymbolicLink()) {
|
|
@@ -4261,29 +4264,29 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4261
4264
|
done(null, entry);
|
|
4262
4265
|
return;
|
|
4263
4266
|
}
|
|
4264
|
-
entry.dirent = utils
|
|
4267
|
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
4265
4268
|
done(null, entry);
|
|
4266
4269
|
});
|
|
4267
4270
|
};
|
|
4268
4271
|
}
|
|
4269
|
-
function readdir
|
|
4272
|
+
function readdir(directory, settings, callback) {
|
|
4270
4273
|
settings.fs.readdir(directory, (readdirError, names) => {
|
|
4271
4274
|
if (readdirError !== null) {
|
|
4272
|
-
callFailureCallback
|
|
4275
|
+
callFailureCallback(callback, readdirError);
|
|
4273
4276
|
return;
|
|
4274
4277
|
}
|
|
4275
4278
|
rpl(names.map((name) => {
|
|
4276
|
-
const path$
|
|
4279
|
+
const path$10 = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4277
4280
|
return (done) => {
|
|
4278
|
-
fsStat
|
|
4281
|
+
fsStat.stat(path$10, settings.fsStatSettings, (error, stats) => {
|
|
4279
4282
|
if (error !== null) {
|
|
4280
4283
|
done(error);
|
|
4281
4284
|
return;
|
|
4282
4285
|
}
|
|
4283
4286
|
const entry = {
|
|
4284
4287
|
name,
|
|
4285
|
-
path: path$
|
|
4286
|
-
dirent: utils
|
|
4288
|
+
path: path$10,
|
|
4289
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4287
4290
|
};
|
|
4288
4291
|
if (settings.stats) entry.stats = stats;
|
|
4289
4292
|
done(null, entry);
|
|
@@ -4291,31 +4294,31 @@ var require_async$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4291
4294
|
};
|
|
4292
4295
|
}), (rplError, entries) => {
|
|
4293
4296
|
if (rplError !== null) {
|
|
4294
|
-
callFailureCallback
|
|
4297
|
+
callFailureCallback(callback, rplError);
|
|
4295
4298
|
return;
|
|
4296
4299
|
}
|
|
4297
|
-
callSuccessCallback
|
|
4300
|
+
callSuccessCallback(callback, entries);
|
|
4298
4301
|
});
|
|
4299
4302
|
});
|
|
4300
4303
|
}
|
|
4301
|
-
exports.readdir = readdir
|
|
4302
|
-
function callFailureCallback
|
|
4304
|
+
exports.readdir = readdir;
|
|
4305
|
+
function callFailureCallback(callback, error) {
|
|
4303
4306
|
callback(error);
|
|
4304
4307
|
}
|
|
4305
|
-
function callSuccessCallback
|
|
4308
|
+
function callSuccessCallback(callback, result) {
|
|
4306
4309
|
callback(null, result);
|
|
4307
4310
|
}
|
|
4308
|
-
})
|
|
4311
|
+
}));
|
|
4309
4312
|
|
|
4310
4313
|
//#endregion
|
|
4311
4314
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
|
|
4312
|
-
var require_sync$4 = /* @__PURE__ */
|
|
4315
|
+
var require_sync$4 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4313
4316
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4314
4317
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4315
|
-
const fsStat
|
|
4318
|
+
const fsStat = require_out$3();
|
|
4316
4319
|
const constants_1 = require_constants();
|
|
4317
|
-
const utils
|
|
4318
|
-
const common
|
|
4320
|
+
const utils = require_utils();
|
|
4321
|
+
const common = require_common$1();
|
|
4319
4322
|
function read(directory, settings) {
|
|
4320
4323
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(directory, settings);
|
|
4321
4324
|
return readdir(directory, settings);
|
|
@@ -4326,11 +4329,11 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4326
4329
|
const entry = {
|
|
4327
4330
|
dirent,
|
|
4328
4331
|
name: dirent.name,
|
|
4329
|
-
path: common
|
|
4332
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
4330
4333
|
};
|
|
4331
4334
|
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) try {
|
|
4332
4335
|
const stats = settings.fs.statSync(entry.path);
|
|
4333
|
-
entry.dirent = utils
|
|
4336
|
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
4334
4337
|
} catch (error) {
|
|
4335
4338
|
if (settings.throwErrorOnBrokenSymbolicLink) throw error;
|
|
4336
4339
|
}
|
|
@@ -4340,57 +4343,57 @@ var require_sync$4 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4340
4343
|
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
4341
4344
|
function readdir(directory, settings) {
|
|
4342
4345
|
return settings.fs.readdirSync(directory).map((name) => {
|
|
4343
|
-
const entryPath = common
|
|
4344
|
-
const stats = fsStat
|
|
4346
|
+
const entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
4347
|
+
const stats = fsStat.statSync(entryPath, settings.fsStatSettings);
|
|
4345
4348
|
const entry = {
|
|
4346
4349
|
name,
|
|
4347
4350
|
path: entryPath,
|
|
4348
|
-
dirent: utils
|
|
4351
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
4349
4352
|
};
|
|
4350
4353
|
if (settings.stats) entry.stats = stats;
|
|
4351
4354
|
return entry;
|
|
4352
4355
|
});
|
|
4353
4356
|
}
|
|
4354
4357
|
exports.readdir = readdir;
|
|
4355
|
-
})
|
|
4358
|
+
}));
|
|
4356
4359
|
|
|
4357
4360
|
//#endregion
|
|
4358
4361
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
|
|
4359
|
-
var require_fs = /* @__PURE__ */
|
|
4362
|
+
var require_fs = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4360
4363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4361
4364
|
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4362
|
-
const fs$
|
|
4365
|
+
const fs$2 = require("fs");
|
|
4363
4366
|
exports.FILE_SYSTEM_ADAPTER = {
|
|
4364
|
-
lstat: fs$
|
|
4365
|
-
stat: fs$
|
|
4366
|
-
lstatSync: fs$
|
|
4367
|
-
statSync: fs$
|
|
4368
|
-
readdir: fs$
|
|
4369
|
-
readdirSync: fs$
|
|
4367
|
+
lstat: fs$2.lstat,
|
|
4368
|
+
stat: fs$2.stat,
|
|
4369
|
+
lstatSync: fs$2.lstatSync,
|
|
4370
|
+
statSync: fs$2.statSync,
|
|
4371
|
+
readdir: fs$2.readdir,
|
|
4372
|
+
readdirSync: fs$2.readdirSync
|
|
4370
4373
|
};
|
|
4371
4374
|
function createFileSystemAdapter(fsMethods) {
|
|
4372
4375
|
if (fsMethods === void 0) return exports.FILE_SYSTEM_ADAPTER;
|
|
4373
4376
|
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
4374
4377
|
}
|
|
4375
4378
|
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
4376
|
-
})
|
|
4379
|
+
}));
|
|
4377
4380
|
|
|
4378
4381
|
//#endregion
|
|
4379
4382
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
|
|
4380
|
-
var require_settings$2 = /* @__PURE__ */
|
|
4383
|
+
var require_settings$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4381
4384
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4382
4385
|
const path$4 = require("path");
|
|
4383
|
-
const fsStat
|
|
4384
|
-
const fs
|
|
4385
|
-
var Settings
|
|
4386
|
+
const fsStat = require_out$3();
|
|
4387
|
+
const fs = require_fs();
|
|
4388
|
+
var Settings = class {
|
|
4386
4389
|
constructor(_options = {}) {
|
|
4387
4390
|
this._options = _options;
|
|
4388
4391
|
this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
|
|
4389
|
-
this.fs = fs
|
|
4392
|
+
this.fs = fs.createFileSystemAdapter(this._options.fs);
|
|
4390
4393
|
this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path$4.sep);
|
|
4391
4394
|
this.stats = this._getValue(this._options.stats, false);
|
|
4392
4395
|
this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, true);
|
|
4393
|
-
this.fsStatSettings = new fsStat
|
|
4396
|
+
this.fsStatSettings = new fsStat.Settings({
|
|
4394
4397
|
followSymbolicLink: this.followSymbolicLinks,
|
|
4395
4398
|
fs: this.fs,
|
|
4396
4399
|
throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
|
|
@@ -4400,41 +4403,41 @@ var require_settings$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4400
4403
|
return option !== null && option !== void 0 ? option : value;
|
|
4401
4404
|
}
|
|
4402
4405
|
};
|
|
4403
|
-
exports.default = Settings
|
|
4404
|
-
})
|
|
4406
|
+
exports.default = Settings;
|
|
4407
|
+
}));
|
|
4405
4408
|
|
|
4406
4409
|
//#endregion
|
|
4407
4410
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
|
|
4408
|
-
var require_out$2 = /* @__PURE__ */
|
|
4411
|
+
var require_out$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4409
4412
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4410
4413
|
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
4411
4414
|
const async = require_async$4();
|
|
4412
4415
|
const sync = require_sync$4();
|
|
4413
|
-
const settings_1
|
|
4414
|
-
exports.Settings = settings_1
|
|
4415
|
-
function scandir(path$
|
|
4416
|
+
const settings_1 = require_settings$2();
|
|
4417
|
+
exports.Settings = settings_1.default;
|
|
4418
|
+
function scandir(path$10, optionsOrSettingsOrCallback, callback) {
|
|
4416
4419
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
4417
|
-
async.read(path$
|
|
4420
|
+
async.read(path$10, getSettings(), optionsOrSettingsOrCallback);
|
|
4418
4421
|
return;
|
|
4419
4422
|
}
|
|
4420
|
-
async.read(path$
|
|
4423
|
+
async.read(path$10, getSettings(optionsOrSettingsOrCallback), callback);
|
|
4421
4424
|
}
|
|
4422
4425
|
exports.scandir = scandir;
|
|
4423
|
-
function scandirSync(path$
|
|
4424
|
-
const settings = getSettings
|
|
4425
|
-
return sync.read(path$
|
|
4426
|
+
function scandirSync(path$10, optionsOrSettings) {
|
|
4427
|
+
const settings = getSettings(optionsOrSettings);
|
|
4428
|
+
return sync.read(path$10, settings);
|
|
4426
4429
|
}
|
|
4427
4430
|
exports.scandirSync = scandirSync;
|
|
4428
|
-
function getSettings
|
|
4429
|
-
if (settingsOrOptions instanceof settings_1
|
|
4430
|
-
return new settings_1
|
|
4431
|
+
function getSettings(settingsOrOptions = {}) {
|
|
4432
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
4433
|
+
return new settings_1.default(settingsOrOptions);
|
|
4431
4434
|
}
|
|
4432
|
-
})
|
|
4435
|
+
}));
|
|
4433
4436
|
|
|
4434
4437
|
//#endregion
|
|
4435
4438
|
//#region ../../node_modules/.pnpm/reusify@1.1.0/node_modules/reusify/reusify.js
|
|
4436
|
-
var require_reusify = /* @__PURE__ */
|
|
4437
|
-
function reusify
|
|
4439
|
+
var require_reusify = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4440
|
+
function reusify(Constructor) {
|
|
4438
4441
|
var head = new Constructor();
|
|
4439
4442
|
var tail = head;
|
|
4440
4443
|
function get() {
|
|
@@ -4456,12 +4459,12 @@ var require_reusify = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/reu
|
|
|
4456
4459
|
release
|
|
4457
4460
|
};
|
|
4458
4461
|
}
|
|
4459
|
-
module.exports = reusify
|
|
4460
|
-
})
|
|
4462
|
+
module.exports = reusify;
|
|
4463
|
+
}));
|
|
4461
4464
|
|
|
4462
4465
|
//#endregion
|
|
4463
4466
|
//#region ../../node_modules/.pnpm/fastq@1.19.1/node_modules/fastq/queue.js
|
|
4464
|
-
var require_queue = /* @__PURE__ */
|
|
4467
|
+
var require_queue = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
4465
4468
|
var reusify = require_reusify();
|
|
4466
4469
|
function fastqueue(context, worker, _concurrency) {
|
|
4467
4470
|
if (typeof context === "function") {
|
|
@@ -4475,7 +4478,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4475
4478
|
var queueTail = null;
|
|
4476
4479
|
var _running = 0;
|
|
4477
4480
|
var errorHandler = null;
|
|
4478
|
-
var self
|
|
4481
|
+
var self = {
|
|
4479
4482
|
push,
|
|
4480
4483
|
drain: noop,
|
|
4481
4484
|
saturated: noop,
|
|
@@ -4487,7 +4490,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4487
4490
|
set concurrency(value) {
|
|
4488
4491
|
if (!(value >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
4489
4492
|
_concurrency = value;
|
|
4490
|
-
if (self
|
|
4493
|
+
if (self.paused) return;
|
|
4491
4494
|
for (; queueHead && _running < _concurrency;) {
|
|
4492
4495
|
_running++;
|
|
4493
4496
|
release();
|
|
@@ -4504,12 +4507,12 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4504
4507
|
killAndDrain,
|
|
4505
4508
|
error
|
|
4506
4509
|
};
|
|
4507
|
-
return self
|
|
4510
|
+
return self;
|
|
4508
4511
|
function running() {
|
|
4509
4512
|
return _running;
|
|
4510
4513
|
}
|
|
4511
4514
|
function pause() {
|
|
4512
|
-
self
|
|
4515
|
+
self.paused = true;
|
|
4513
4516
|
}
|
|
4514
4517
|
function length() {
|
|
4515
4518
|
var current = queueHead;
|
|
@@ -4530,8 +4533,8 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4530
4533
|
return tasks;
|
|
4531
4534
|
}
|
|
4532
4535
|
function resume() {
|
|
4533
|
-
if (!self
|
|
4534
|
-
self
|
|
4536
|
+
if (!self.paused) return;
|
|
4537
|
+
self.paused = false;
|
|
4535
4538
|
if (queueHead === null) {
|
|
4536
4539
|
_running++;
|
|
4537
4540
|
release();
|
|
@@ -4543,7 +4546,7 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4543
4546
|
}
|
|
4544
4547
|
}
|
|
4545
4548
|
function idle() {
|
|
4546
|
-
return _running === 0 && self
|
|
4549
|
+
return _running === 0 && self.length() === 0;
|
|
4547
4550
|
}
|
|
4548
4551
|
function push(value, done) {
|
|
4549
4552
|
var current = cache.get();
|
|
@@ -4552,13 +4555,13 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4552
4555
|
current.value = value;
|
|
4553
4556
|
current.callback = done || noop;
|
|
4554
4557
|
current.errorHandler = errorHandler;
|
|
4555
|
-
if (_running >= _concurrency || self
|
|
4558
|
+
if (_running >= _concurrency || self.paused) if (queueTail) {
|
|
4556
4559
|
queueTail.next = current;
|
|
4557
4560
|
queueTail = current;
|
|
4558
4561
|
} else {
|
|
4559
4562
|
queueHead = current;
|
|
4560
4563
|
queueTail = current;
|
|
4561
|
-
self
|
|
4564
|
+
self.saturated();
|
|
4562
4565
|
}
|
|
4563
4566
|
else {
|
|
4564
4567
|
_running++;
|
|
@@ -4572,13 +4575,13 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4572
4575
|
current.value = value;
|
|
4573
4576
|
current.callback = done || noop;
|
|
4574
4577
|
current.errorHandler = errorHandler;
|
|
4575
|
-
if (_running >= _concurrency || self
|
|
4578
|
+
if (_running >= _concurrency || self.paused) if (queueHead) {
|
|
4576
4579
|
current.next = queueHead;
|
|
4577
4580
|
queueHead = current;
|
|
4578
4581
|
} else {
|
|
4579
4582
|
queueHead = current;
|
|
4580
4583
|
queueTail = current;
|
|
4581
|
-
self
|
|
4584
|
+
self.saturated();
|
|
4582
4585
|
}
|
|
4583
4586
|
else {
|
|
4584
4587
|
_running++;
|
|
@@ -4588,25 +4591,25 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4588
4591
|
function release(holder) {
|
|
4589
4592
|
if (holder) cache.release(holder);
|
|
4590
4593
|
var next = queueHead;
|
|
4591
|
-
if (next && _running <= _concurrency) if (!self
|
|
4594
|
+
if (next && _running <= _concurrency) if (!self.paused) {
|
|
4592
4595
|
if (queueTail === queueHead) queueTail = null;
|
|
4593
4596
|
queueHead = next.next;
|
|
4594
4597
|
next.next = null;
|
|
4595
4598
|
worker.call(context, next.value, next.worked);
|
|
4596
|
-
if (queueTail === null) self
|
|
4599
|
+
if (queueTail === null) self.empty();
|
|
4597
4600
|
} else _running--;
|
|
4598
|
-
else if (--_running === 0) self
|
|
4601
|
+
else if (--_running === 0) self.drain();
|
|
4599
4602
|
}
|
|
4600
4603
|
function kill() {
|
|
4601
4604
|
queueHead = null;
|
|
4602
4605
|
queueTail = null;
|
|
4603
|
-
self
|
|
4606
|
+
self.drain = noop;
|
|
4604
4607
|
}
|
|
4605
4608
|
function killAndDrain() {
|
|
4606
4609
|
queueHead = null;
|
|
4607
4610
|
queueTail = null;
|
|
4608
|
-
self
|
|
4609
|
-
self
|
|
4611
|
+
self.drain();
|
|
4612
|
+
self.drain = noop;
|
|
4610
4613
|
}
|
|
4611
4614
|
function error(handler) {
|
|
4612
4615
|
errorHandler = handler;
|
|
@@ -4620,16 +4623,16 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4620
4623
|
this.release = noop;
|
|
4621
4624
|
this.context = null;
|
|
4622
4625
|
this.errorHandler = null;
|
|
4623
|
-
var self
|
|
4626
|
+
var self = this;
|
|
4624
4627
|
this.worked = function worked(err, result) {
|
|
4625
|
-
var callback = self
|
|
4626
|
-
var errorHandler = self
|
|
4627
|
-
var val = self
|
|
4628
|
-
self
|
|
4629
|
-
self
|
|
4630
|
-
if (self
|
|
4631
|
-
callback.call(self
|
|
4632
|
-
self
|
|
4628
|
+
var callback = self.callback;
|
|
4629
|
+
var errorHandler = self.errorHandler;
|
|
4630
|
+
var val = self.value;
|
|
4631
|
+
self.value = null;
|
|
4632
|
+
self.callback = noop;
|
|
4633
|
+
if (self.errorHandler) errorHandler(err, val);
|
|
4634
|
+
callback.call(self.context, err, result);
|
|
4635
|
+
self.release(self);
|
|
4633
4636
|
};
|
|
4634
4637
|
}
|
|
4635
4638
|
function queueAsPromised(context, worker, _concurrency) {
|
|
@@ -4694,11 +4697,11 @@ var require_queue = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fastq
|
|
|
4694
4697
|
}
|
|
4695
4698
|
module.exports = fastqueue;
|
|
4696
4699
|
module.exports.promise = queueAsPromised;
|
|
4697
|
-
})
|
|
4700
|
+
}));
|
|
4698
4701
|
|
|
4699
4702
|
//#endregion
|
|
4700
4703
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
|
|
4701
|
-
var require_common = /* @__PURE__ */
|
|
4704
|
+
var require_common = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4702
4705
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4703
4706
|
exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
|
|
4704
4707
|
function isFatalError(settings, error) {
|
|
@@ -4723,37 +4726,37 @@ var require_common = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4723
4726
|
return a + separator + b;
|
|
4724
4727
|
}
|
|
4725
4728
|
exports.joinPathSegments = joinPathSegments;
|
|
4726
|
-
})
|
|
4729
|
+
}));
|
|
4727
4730
|
|
|
4728
4731
|
//#endregion
|
|
4729
4732
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
|
|
4730
|
-
var require_reader$1 = /* @__PURE__ */
|
|
4733
|
+
var require_reader$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4731
4734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4732
|
-
const common
|
|
4733
|
-
var Reader
|
|
4735
|
+
const common = require_common();
|
|
4736
|
+
var Reader = class {
|
|
4734
4737
|
constructor(_root, _settings) {
|
|
4735
4738
|
this._root = _root;
|
|
4736
4739
|
this._settings = _settings;
|
|
4737
|
-
this._root = common
|
|
4740
|
+
this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
|
|
4738
4741
|
}
|
|
4739
4742
|
};
|
|
4740
|
-
exports.default = Reader
|
|
4741
|
-
})
|
|
4743
|
+
exports.default = Reader;
|
|
4744
|
+
}));
|
|
4742
4745
|
|
|
4743
4746
|
//#endregion
|
|
4744
4747
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
|
|
4745
|
-
var require_async$3 = /* @__PURE__ */
|
|
4748
|
+
var require_async$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4746
4749
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4747
4750
|
const events_1 = require("events");
|
|
4748
|
-
const fsScandir
|
|
4751
|
+
const fsScandir = require_out$2();
|
|
4749
4752
|
const fastq = require_queue();
|
|
4750
|
-
const common
|
|
4751
|
-
const reader_1
|
|
4752
|
-
var AsyncReader = class extends reader_1
|
|
4753
|
+
const common = require_common();
|
|
4754
|
+
const reader_1 = require_reader$1();
|
|
4755
|
+
var AsyncReader = class extends reader_1.default {
|
|
4753
4756
|
constructor(_root, _settings) {
|
|
4754
4757
|
super(_root, _settings);
|
|
4755
4758
|
this._settings = _settings;
|
|
4756
|
-
this._scandir = fsScandir
|
|
4759
|
+
this._scandir = fsScandir.scandir;
|
|
4757
4760
|
this._emitter = new events_1.EventEmitter();
|
|
4758
4761
|
this._queue = fastq(this._worker.bind(this), this._settings.concurrency);
|
|
4759
4762
|
this._isFatalError = false;
|
|
@@ -4807,7 +4810,7 @@ var require_async$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4807
4810
|
});
|
|
4808
4811
|
}
|
|
4809
4812
|
_handleError(error) {
|
|
4810
|
-
if (this._isDestroyed || !common
|
|
4813
|
+
if (this._isDestroyed || !common.isFatalError(this._settings, error)) return;
|
|
4811
4814
|
this._isFatalError = true;
|
|
4812
4815
|
this._isDestroyed = true;
|
|
4813
4816
|
this._emitter.emit("error", error);
|
|
@@ -4815,27 +4818,27 @@ var require_async$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4815
4818
|
_handleEntry(entry, base) {
|
|
4816
4819
|
if (this._isDestroyed || this._isFatalError) return;
|
|
4817
4820
|
const fullpath = entry.path;
|
|
4818
|
-
if (base !== void 0) entry.path = common
|
|
4819
|
-
if (common
|
|
4820
|
-
if (entry.dirent.isDirectory() && common
|
|
4821
|
+
if (base !== void 0) entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator);
|
|
4822
|
+
if (common.isAppliedFilter(this._settings.entryFilter, entry)) this._emitEntry(entry);
|
|
4823
|
+
if (entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry)) this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
|
|
4821
4824
|
}
|
|
4822
4825
|
_emitEntry(entry) {
|
|
4823
4826
|
this._emitter.emit("entry", entry);
|
|
4824
4827
|
}
|
|
4825
4828
|
};
|
|
4826
4829
|
exports.default = AsyncReader;
|
|
4827
|
-
})
|
|
4830
|
+
}));
|
|
4828
4831
|
|
|
4829
4832
|
//#endregion
|
|
4830
4833
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
|
|
4831
|
-
var require_async$2 = /* @__PURE__ */
|
|
4834
|
+
var require_async$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4832
4835
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4833
|
-
const async_1
|
|
4836
|
+
const async_1 = require_async$3();
|
|
4834
4837
|
var AsyncProvider = class {
|
|
4835
4838
|
constructor(_root, _settings) {
|
|
4836
4839
|
this._root = _root;
|
|
4837
4840
|
this._settings = _settings;
|
|
4838
|
-
this._reader = new async_1
|
|
4841
|
+
this._reader = new async_1.default(this._root, this._settings);
|
|
4839
4842
|
this._storage = [];
|
|
4840
4843
|
}
|
|
4841
4844
|
read(callback) {
|
|
@@ -4858,20 +4861,20 @@ var require_async$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@no
|
|
|
4858
4861
|
function callSuccessCallback(callback, entries) {
|
|
4859
4862
|
callback(null, entries);
|
|
4860
4863
|
}
|
|
4861
|
-
})
|
|
4864
|
+
}));
|
|
4862
4865
|
|
|
4863
4866
|
//#endregion
|
|
4864
4867
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
|
|
4865
|
-
var require_stream$2 = /* @__PURE__ */
|
|
4868
|
+
var require_stream$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4866
4869
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4867
|
-
const stream_1$
|
|
4868
|
-
const async_1
|
|
4870
|
+
const stream_1$2 = require("stream");
|
|
4871
|
+
const async_1 = require_async$3();
|
|
4869
4872
|
var StreamProvider = class {
|
|
4870
4873
|
constructor(_root, _settings) {
|
|
4871
4874
|
this._root = _root;
|
|
4872
4875
|
this._settings = _settings;
|
|
4873
|
-
this._reader = new async_1
|
|
4874
|
-
this._stream = new stream_1$
|
|
4876
|
+
this._reader = new async_1.default(this._root, this._settings);
|
|
4877
|
+
this._stream = new stream_1$2.Readable({
|
|
4875
4878
|
objectMode: true,
|
|
4876
4879
|
read: () => {},
|
|
4877
4880
|
destroy: () => {
|
|
@@ -4894,19 +4897,19 @@ var require_stream$2 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@n
|
|
|
4894
4897
|
}
|
|
4895
4898
|
};
|
|
4896
4899
|
exports.default = StreamProvider;
|
|
4897
|
-
})
|
|
4900
|
+
}));
|
|
4898
4901
|
|
|
4899
4902
|
//#endregion
|
|
4900
4903
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
|
|
4901
|
-
var require_sync$3 = /* @__PURE__ */
|
|
4904
|
+
var require_sync$3 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4902
4905
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4903
|
-
const fsScandir
|
|
4906
|
+
const fsScandir = require_out$2();
|
|
4904
4907
|
const common = require_common();
|
|
4905
|
-
const reader_1
|
|
4906
|
-
var SyncReader = class extends reader_1
|
|
4908
|
+
const reader_1 = require_reader$1();
|
|
4909
|
+
var SyncReader = class extends reader_1.default {
|
|
4907
4910
|
constructor() {
|
|
4908
4911
|
super(...arguments);
|
|
4909
|
-
this._scandir = fsScandir
|
|
4912
|
+
this._scandir = fsScandir.scandirSync;
|
|
4910
4913
|
this._storage = [];
|
|
4911
4914
|
this._queue = /* @__PURE__ */ new Set();
|
|
4912
4915
|
}
|
|
@@ -4947,33 +4950,33 @@ var require_sync$3 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/@nod
|
|
|
4947
4950
|
}
|
|
4948
4951
|
};
|
|
4949
4952
|
exports.default = SyncReader;
|
|
4950
|
-
})
|
|
4953
|
+
}));
|
|
4951
4954
|
|
|
4952
4955
|
//#endregion
|
|
4953
4956
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
|
|
4954
|
-
var require_sync$2 = /* @__PURE__ */
|
|
4957
|
+
var require_sync$2 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4955
4958
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4956
|
-
const sync_1
|
|
4959
|
+
const sync_1 = require_sync$3();
|
|
4957
4960
|
var SyncProvider = class {
|
|
4958
4961
|
constructor(_root, _settings) {
|
|
4959
4962
|
this._root = _root;
|
|
4960
4963
|
this._settings = _settings;
|
|
4961
|
-
this._reader = new sync_1
|
|
4964
|
+
this._reader = new sync_1.default(this._root, this._settings);
|
|
4962
4965
|
}
|
|
4963
4966
|
read() {
|
|
4964
4967
|
return this._reader.read();
|
|
4965
4968
|
}
|
|
4966
4969
|
};
|
|
4967
4970
|
exports.default = SyncProvider;
|
|
4968
|
-
})
|
|
4971
|
+
}));
|
|
4969
4972
|
|
|
4970
4973
|
//#endregion
|
|
4971
4974
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
|
|
4972
|
-
var require_settings$1 = /* @__PURE__ */
|
|
4975
|
+
var require_settings$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
4973
4976
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4974
4977
|
const path$3 = require("path");
|
|
4975
4978
|
const fsScandir = require_out$2();
|
|
4976
|
-
var Settings
|
|
4979
|
+
var Settings = class {
|
|
4977
4980
|
constructor(_options = {}) {
|
|
4978
4981
|
this._options = _options;
|
|
4979
4982
|
this.basePath = this._getValue(this._options.basePath, void 0);
|
|
@@ -4994,54 +4997,54 @@ var require_settings$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/
|
|
|
4994
4997
|
return option !== null && option !== void 0 ? option : value;
|
|
4995
4998
|
}
|
|
4996
4999
|
};
|
|
4997
|
-
exports.default = Settings
|
|
4998
|
-
})
|
|
5000
|
+
exports.default = Settings;
|
|
5001
|
+
}));
|
|
4999
5002
|
|
|
5000
5003
|
//#endregion
|
|
5001
5004
|
//#region ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
|
|
5002
|
-
var require_out$1 = /* @__PURE__ */
|
|
5005
|
+
var require_out$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5003
5006
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5004
5007
|
exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
|
|
5005
|
-
const async_1
|
|
5006
|
-
const stream_1
|
|
5007
|
-
const sync_1
|
|
5008
|
-
const settings_1
|
|
5009
|
-
exports.Settings = settings_1
|
|
5008
|
+
const async_1 = require_async$2();
|
|
5009
|
+
const stream_1 = require_stream$2();
|
|
5010
|
+
const sync_1 = require_sync$2();
|
|
5011
|
+
const settings_1 = require_settings$1();
|
|
5012
|
+
exports.Settings = settings_1.default;
|
|
5010
5013
|
function walk(directory, optionsOrSettingsOrCallback, callback) {
|
|
5011
5014
|
if (typeof optionsOrSettingsOrCallback === "function") {
|
|
5012
|
-
new async_1
|
|
5015
|
+
new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
|
|
5013
5016
|
return;
|
|
5014
5017
|
}
|
|
5015
|
-
new async_1
|
|
5018
|
+
new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
|
|
5016
5019
|
}
|
|
5017
5020
|
exports.walk = walk;
|
|
5018
5021
|
function walkSync(directory, optionsOrSettings) {
|
|
5019
5022
|
const settings = getSettings(optionsOrSettings);
|
|
5020
|
-
return new sync_1
|
|
5023
|
+
return new sync_1.default(directory, settings).read();
|
|
5021
5024
|
}
|
|
5022
5025
|
exports.walkSync = walkSync;
|
|
5023
5026
|
function walkStream(directory, optionsOrSettings) {
|
|
5024
5027
|
const settings = getSettings(optionsOrSettings);
|
|
5025
|
-
return new stream_1
|
|
5028
|
+
return new stream_1.default(directory, settings).read();
|
|
5026
5029
|
}
|
|
5027
5030
|
exports.walkStream = walkStream;
|
|
5028
5031
|
function getSettings(settingsOrOptions = {}) {
|
|
5029
|
-
if (settingsOrOptions instanceof settings_1
|
|
5030
|
-
return new settings_1
|
|
5032
|
+
if (settingsOrOptions instanceof settings_1.default) return settingsOrOptions;
|
|
5033
|
+
return new settings_1.default(settingsOrOptions);
|
|
5031
5034
|
}
|
|
5032
|
-
})
|
|
5035
|
+
}));
|
|
5033
5036
|
|
|
5034
5037
|
//#endregion
|
|
5035
5038
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
5036
|
-
var require_reader = /* @__PURE__ */
|
|
5039
|
+
var require_reader = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5037
5040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5038
5041
|
const path$2 = require("path");
|
|
5039
|
-
const fsStat
|
|
5040
|
-
const utils
|
|
5042
|
+
const fsStat = require_out$3();
|
|
5043
|
+
const utils = require_utils$1();
|
|
5041
5044
|
var Reader = class {
|
|
5042
5045
|
constructor(_settings) {
|
|
5043
5046
|
this._settings = _settings;
|
|
5044
|
-
this._fsStatSettings = new fsStat
|
|
5047
|
+
this._fsStatSettings = new fsStat.Settings({
|
|
5045
5048
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
5046
5049
|
fs: this._settings.fs,
|
|
5047
5050
|
throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
|
|
@@ -5050,54 +5053,54 @@ var require_reader = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5050
5053
|
_getFullEntryPath(filepath) {
|
|
5051
5054
|
return path$2.resolve(this._settings.cwd, filepath);
|
|
5052
5055
|
}
|
|
5053
|
-
_makeEntry(stats, pattern
|
|
5056
|
+
_makeEntry(stats, pattern) {
|
|
5054
5057
|
const entry = {
|
|
5055
|
-
name: pattern
|
|
5056
|
-
path: pattern
|
|
5057
|
-
dirent: utils
|
|
5058
|
+
name: pattern,
|
|
5059
|
+
path: pattern,
|
|
5060
|
+
dirent: utils.fs.createDirentFromStats(pattern, stats)
|
|
5058
5061
|
};
|
|
5059
5062
|
if (this._settings.stats) entry.stats = stats;
|
|
5060
5063
|
return entry;
|
|
5061
5064
|
}
|
|
5062
5065
|
_isFatalError(error) {
|
|
5063
|
-
return !utils
|
|
5066
|
+
return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
5064
5067
|
}
|
|
5065
5068
|
};
|
|
5066
5069
|
exports.default = Reader;
|
|
5067
|
-
})
|
|
5070
|
+
}));
|
|
5068
5071
|
|
|
5069
5072
|
//#endregion
|
|
5070
5073
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
5071
|
-
var require_stream$1 = /* @__PURE__ */
|
|
5074
|
+
var require_stream$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5072
5075
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5073
|
-
const stream_1$
|
|
5074
|
-
const fsStat
|
|
5075
|
-
const fsWalk
|
|
5076
|
-
const reader_1
|
|
5077
|
-
var ReaderStream = class extends reader_1
|
|
5076
|
+
const stream_1$1 = require("stream");
|
|
5077
|
+
const fsStat = require_out$3();
|
|
5078
|
+
const fsWalk = require_out$1();
|
|
5079
|
+
const reader_1 = require_reader();
|
|
5080
|
+
var ReaderStream = class extends reader_1.default {
|
|
5078
5081
|
constructor() {
|
|
5079
5082
|
super(...arguments);
|
|
5080
|
-
this._walkStream = fsWalk
|
|
5081
|
-
this._stat = fsStat
|
|
5083
|
+
this._walkStream = fsWalk.walkStream;
|
|
5084
|
+
this._stat = fsStat.stat;
|
|
5082
5085
|
}
|
|
5083
5086
|
dynamic(root, options$1) {
|
|
5084
5087
|
return this._walkStream(root, options$1);
|
|
5085
5088
|
}
|
|
5086
5089
|
static(patterns, options$1) {
|
|
5087
5090
|
const filepaths = patterns.map(this._getFullEntryPath, this);
|
|
5088
|
-
const stream
|
|
5089
|
-
stream
|
|
5091
|
+
const stream = new stream_1$1.PassThrough({ objectMode: true });
|
|
5092
|
+
stream._write = (index, _enc, done) => {
|
|
5090
5093
|
return this._getEntry(filepaths[index], patterns[index], options$1).then((entry) => {
|
|
5091
|
-
if (entry !== null && options$1.entryFilter(entry)) stream
|
|
5092
|
-
if (index === filepaths.length - 1) stream
|
|
5094
|
+
if (entry !== null && options$1.entryFilter(entry)) stream.push(entry);
|
|
5095
|
+
if (index === filepaths.length - 1) stream.end();
|
|
5093
5096
|
done();
|
|
5094
5097
|
}).catch(done);
|
|
5095
5098
|
};
|
|
5096
|
-
for (let i = 0; i < filepaths.length; i++) stream
|
|
5097
|
-
return stream
|
|
5099
|
+
for (let i = 0; i < filepaths.length; i++) stream.write(i);
|
|
5100
|
+
return stream;
|
|
5098
5101
|
}
|
|
5099
|
-
_getEntry(filepath, pattern
|
|
5100
|
-
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern
|
|
5102
|
+
_getEntry(filepath, pattern, options$1) {
|
|
5103
|
+
return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => {
|
|
5101
5104
|
if (options$1.errorFilter(error)) return null;
|
|
5102
5105
|
throw error;
|
|
5103
5106
|
});
|
|
@@ -5111,20 +5114,20 @@ var require_stream$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5111
5114
|
}
|
|
5112
5115
|
};
|
|
5113
5116
|
exports.default = ReaderStream;
|
|
5114
|
-
})
|
|
5117
|
+
}));
|
|
5115
5118
|
|
|
5116
5119
|
//#endregion
|
|
5117
5120
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
5118
|
-
var require_async$1 = /* @__PURE__ */
|
|
5121
|
+
var require_async$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5119
5122
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5120
|
-
const fsWalk
|
|
5121
|
-
const reader_1
|
|
5122
|
-
const stream_1
|
|
5123
|
-
var ReaderAsync = class extends reader_1
|
|
5123
|
+
const fsWalk = require_out$1();
|
|
5124
|
+
const reader_1 = require_reader();
|
|
5125
|
+
const stream_1 = require_stream$1();
|
|
5126
|
+
var ReaderAsync = class extends reader_1.default {
|
|
5124
5127
|
constructor() {
|
|
5125
5128
|
super(...arguments);
|
|
5126
|
-
this._walkAsync = fsWalk
|
|
5127
|
-
this._readerStream = new stream_1
|
|
5129
|
+
this._walkAsync = fsWalk.walk;
|
|
5130
|
+
this._readerStream = new stream_1.default(this._settings);
|
|
5128
5131
|
}
|
|
5129
5132
|
dynamic(root, options$1) {
|
|
5130
5133
|
return new Promise((resolve$2, reject) => {
|
|
@@ -5136,22 +5139,22 @@ var require_async$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5136
5139
|
}
|
|
5137
5140
|
async static(patterns, options$1) {
|
|
5138
5141
|
const entries = [];
|
|
5139
|
-
const stream
|
|
5142
|
+
const stream = this._readerStream.static(patterns, options$1);
|
|
5140
5143
|
return new Promise((resolve$2, reject) => {
|
|
5141
|
-
stream
|
|
5142
|
-
stream
|
|
5143
|
-
stream
|
|
5144
|
+
stream.once("error", reject);
|
|
5145
|
+
stream.on("data", (entry) => entries.push(entry));
|
|
5146
|
+
stream.once("end", () => resolve$2(entries));
|
|
5144
5147
|
});
|
|
5145
5148
|
}
|
|
5146
5149
|
};
|
|
5147
5150
|
exports.default = ReaderAsync;
|
|
5148
|
-
})
|
|
5151
|
+
}));
|
|
5149
5152
|
|
|
5150
5153
|
//#endregion
|
|
5151
5154
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
5152
|
-
var require_matcher = /* @__PURE__ */
|
|
5155
|
+
var require_matcher = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5153
5156
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5154
|
-
const utils
|
|
5157
|
+
const utils = require_utils$1();
|
|
5155
5158
|
var Matcher = class {
|
|
5156
5159
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
5157
5160
|
this._patterns = _patterns;
|
|
@@ -5161,40 +5164,40 @@ var require_matcher = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5161
5164
|
this._fillStorage();
|
|
5162
5165
|
}
|
|
5163
5166
|
_fillStorage() {
|
|
5164
|
-
for (const pattern
|
|
5165
|
-
const segments = this._getPatternSegments(pattern
|
|
5167
|
+
for (const pattern of this._patterns) {
|
|
5168
|
+
const segments = this._getPatternSegments(pattern);
|
|
5166
5169
|
const sections = this._splitSegmentsIntoSections(segments);
|
|
5167
5170
|
this._storage.push({
|
|
5168
5171
|
complete: sections.length <= 1,
|
|
5169
|
-
pattern
|
|
5172
|
+
pattern,
|
|
5170
5173
|
segments,
|
|
5171
5174
|
sections
|
|
5172
5175
|
});
|
|
5173
5176
|
}
|
|
5174
5177
|
}
|
|
5175
|
-
_getPatternSegments(pattern
|
|
5176
|
-
return utils
|
|
5177
|
-
if (!utils
|
|
5178
|
+
_getPatternSegments(pattern) {
|
|
5179
|
+
return utils.pattern.getPatternParts(pattern, this._micromatchOptions).map((part) => {
|
|
5180
|
+
if (!utils.pattern.isDynamicPattern(part, this._settings)) return {
|
|
5178
5181
|
dynamic: false,
|
|
5179
5182
|
pattern: part
|
|
5180
5183
|
};
|
|
5181
5184
|
return {
|
|
5182
5185
|
dynamic: true,
|
|
5183
5186
|
pattern: part,
|
|
5184
|
-
patternRe: utils
|
|
5187
|
+
patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
|
|
5185
5188
|
};
|
|
5186
5189
|
});
|
|
5187
5190
|
}
|
|
5188
5191
|
_splitSegmentsIntoSections(segments) {
|
|
5189
|
-
return utils
|
|
5192
|
+
return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
|
|
5190
5193
|
}
|
|
5191
5194
|
};
|
|
5192
5195
|
exports.default = Matcher;
|
|
5193
|
-
})
|
|
5196
|
+
}));
|
|
5194
5197
|
|
|
5195
5198
|
//#endregion
|
|
5196
5199
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
5197
|
-
var require_partial = /* @__PURE__ */
|
|
5200
|
+
var require_partial = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5198
5201
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5199
5202
|
const matcher_1 = require_matcher();
|
|
5200
5203
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -5202,8 +5205,8 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5202
5205
|
const parts = filepath.split("/");
|
|
5203
5206
|
const levels = parts.length;
|
|
5204
5207
|
const patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
|
|
5205
|
-
for (const pattern
|
|
5206
|
-
const section = pattern
|
|
5208
|
+
for (const pattern of patterns) {
|
|
5209
|
+
const section = pattern.sections[0];
|
|
5207
5210
|
/**
|
|
5208
5211
|
* In this case, the pattern has a globstar and we must read all directories unconditionally,
|
|
5209
5212
|
* but only if the level has reached the end of the first group.
|
|
@@ -5211,9 +5214,9 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5211
5214
|
* fixtures/{a,b}/**
|
|
5212
5215
|
* ^ true/false ^ always true
|
|
5213
5216
|
*/
|
|
5214
|
-
if (!pattern
|
|
5217
|
+
if (!pattern.complete && levels > section.length) return true;
|
|
5215
5218
|
if (parts.every((part, index) => {
|
|
5216
|
-
const segment = pattern
|
|
5219
|
+
const segment = pattern.segments[index];
|
|
5217
5220
|
if (segment.dynamic && segment.patternRe.test(part)) return true;
|
|
5218
5221
|
if (!segment.dynamic && segment.pattern === part) return true;
|
|
5219
5222
|
return false;
|
|
@@ -5223,13 +5226,13 @@ var require_partial = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5223
5226
|
}
|
|
5224
5227
|
};
|
|
5225
5228
|
exports.default = PartialMatcher;
|
|
5226
|
-
})
|
|
5229
|
+
}));
|
|
5227
5230
|
|
|
5228
5231
|
//#endregion
|
|
5229
5232
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
5230
|
-
var require_deep = /* @__PURE__ */
|
|
5233
|
+
var require_deep = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5231
5234
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5232
|
-
const utils
|
|
5235
|
+
const utils = require_utils$1();
|
|
5233
5236
|
const partial_1 = require_partial();
|
|
5234
5237
|
var DeepFilter = class {
|
|
5235
5238
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -5245,13 +5248,13 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5245
5248
|
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
|
5246
5249
|
}
|
|
5247
5250
|
_getNegativePatternsRe(patterns) {
|
|
5248
|
-
const affectDepthOfReadingPatterns = patterns.filter(utils
|
|
5249
|
-
return utils
|
|
5251
|
+
const affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
|
|
5252
|
+
return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
5250
5253
|
}
|
|
5251
5254
|
_filter(basePath, entry, matcher, negativeRe) {
|
|
5252
5255
|
if (this._isSkippedByDeep(basePath, entry.path)) return false;
|
|
5253
5256
|
if (this._isSkippedSymbolicLink(entry)) return false;
|
|
5254
|
-
const filepath = utils
|
|
5257
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5255
5258
|
if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
|
|
5256
5259
|
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
5257
5260
|
}
|
|
@@ -5274,17 +5277,17 @@ var require_deep = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5274
5277
|
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
5275
5278
|
}
|
|
5276
5279
|
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
5277
|
-
return !utils
|
|
5280
|
+
return !utils.pattern.matchAny(entryPath, patternsRe);
|
|
5278
5281
|
}
|
|
5279
5282
|
};
|
|
5280
5283
|
exports.default = DeepFilter;
|
|
5281
|
-
})
|
|
5284
|
+
}));
|
|
5282
5285
|
|
|
5283
5286
|
//#endregion
|
|
5284
5287
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
5285
|
-
var require_entry$1 = /* @__PURE__ */
|
|
5288
|
+
var require_entry$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5286
5289
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5287
|
-
const utils
|
|
5290
|
+
const utils = require_utils$1();
|
|
5288
5291
|
var EntryFilter = class {
|
|
5289
5292
|
constructor(_settings, _micromatchOptions) {
|
|
5290
5293
|
this._settings = _settings;
|
|
@@ -5292,18 +5295,18 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5292
5295
|
this.index = /* @__PURE__ */ new Map();
|
|
5293
5296
|
}
|
|
5294
5297
|
getFilter(positive, negative) {
|
|
5295
|
-
const [absoluteNegative, relativeNegative] = utils
|
|
5298
|
+
const [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative);
|
|
5296
5299
|
const patterns = {
|
|
5297
|
-
positive: { all: utils
|
|
5300
|
+
positive: { all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions) },
|
|
5298
5301
|
negative: {
|
|
5299
|
-
absolute: utils
|
|
5300
|
-
relative: utils
|
|
5302
|
+
absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
|
|
5303
|
+
relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
|
|
5301
5304
|
}
|
|
5302
5305
|
};
|
|
5303
5306
|
return (entry) => this._filter(entry, patterns);
|
|
5304
5307
|
}
|
|
5305
5308
|
_filter(entry, patterns) {
|
|
5306
|
-
const filepath = utils
|
|
5309
|
+
const filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
5307
5310
|
if (this._settings.unique && this._isDuplicateEntry(filepath)) return false;
|
|
5308
5311
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
|
|
5309
5312
|
const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
|
|
@@ -5330,24 +5333,24 @@ var require_entry$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fas
|
|
|
5330
5333
|
}
|
|
5331
5334
|
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
5332
5335
|
if (patternsRe.length === 0) return false;
|
|
5333
|
-
const fullpath = utils
|
|
5336
|
+
const fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
5334
5337
|
return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
|
|
5335
5338
|
}
|
|
5336
5339
|
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
5337
5340
|
if (patternsRe.length === 0) return false;
|
|
5338
|
-
const isMatched = utils
|
|
5339
|
-
if (!isMatched && isDirectory) return utils
|
|
5341
|
+
const isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
5342
|
+
if (!isMatched && isDirectory) return utils.pattern.matchAny(filepath + "/", patternsRe);
|
|
5340
5343
|
return isMatched;
|
|
5341
5344
|
}
|
|
5342
5345
|
};
|
|
5343
5346
|
exports.default = EntryFilter;
|
|
5344
|
-
})
|
|
5347
|
+
}));
|
|
5345
5348
|
|
|
5346
5349
|
//#endregion
|
|
5347
5350
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
5348
|
-
var require_error = /* @__PURE__ */
|
|
5351
|
+
var require_error = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5349
5352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5350
|
-
const utils
|
|
5353
|
+
const utils = require_utils$1();
|
|
5351
5354
|
var ErrorFilter = class {
|
|
5352
5355
|
constructor(_settings) {
|
|
5353
5356
|
this._settings = _settings;
|
|
@@ -5356,17 +5359,17 @@ var require_error = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5356
5359
|
return (error) => this._isNonFatalError(error);
|
|
5357
5360
|
}
|
|
5358
5361
|
_isNonFatalError(error) {
|
|
5359
|
-
return utils
|
|
5362
|
+
return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
5360
5363
|
}
|
|
5361
5364
|
};
|
|
5362
5365
|
exports.default = ErrorFilter;
|
|
5363
|
-
})
|
|
5366
|
+
}));
|
|
5364
5367
|
|
|
5365
5368
|
//#endregion
|
|
5366
5369
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
5367
|
-
var require_entry = /* @__PURE__ */
|
|
5370
|
+
var require_entry = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5368
5371
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5369
|
-
const utils
|
|
5372
|
+
const utils = require_utils$1();
|
|
5370
5373
|
var EntryTransformer = class {
|
|
5371
5374
|
constructor(_settings) {
|
|
5372
5375
|
this._settings = _settings;
|
|
@@ -5377,8 +5380,8 @@ var require_entry = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5377
5380
|
_transform(entry) {
|
|
5378
5381
|
let filepath = entry.path;
|
|
5379
5382
|
if (this._settings.absolute) {
|
|
5380
|
-
filepath = utils
|
|
5381
|
-
filepath = utils
|
|
5383
|
+
filepath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
5384
|
+
filepath = utils.path.unixify(filepath);
|
|
5382
5385
|
}
|
|
5383
5386
|
if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
|
|
5384
5387
|
if (!this._settings.objectMode) return filepath;
|
|
@@ -5386,11 +5389,11 @@ var require_entry = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5386
5389
|
}
|
|
5387
5390
|
};
|
|
5388
5391
|
exports.default = EntryTransformer;
|
|
5389
|
-
})
|
|
5392
|
+
}));
|
|
5390
5393
|
|
|
5391
5394
|
//#endregion
|
|
5392
5395
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
5393
|
-
var require_provider = /* @__PURE__ */
|
|
5396
|
+
var require_provider = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5394
5397
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5395
5398
|
const path$1 = require("path");
|
|
5396
5399
|
const deep_1 = require_deep();
|
|
@@ -5438,18 +5441,18 @@ var require_provider = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5438
5441
|
}
|
|
5439
5442
|
};
|
|
5440
5443
|
exports.default = Provider;
|
|
5441
|
-
})
|
|
5444
|
+
}));
|
|
5442
5445
|
|
|
5443
5446
|
//#endregion
|
|
5444
5447
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
5445
|
-
var require_async = /* @__PURE__ */
|
|
5448
|
+
var require_async = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5446
5449
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5447
|
-
const async_1
|
|
5448
|
-
const provider_1
|
|
5449
|
-
var ProviderAsync = class extends provider_1
|
|
5450
|
+
const async_1 = require_async$1();
|
|
5451
|
+
const provider_1 = require_provider();
|
|
5452
|
+
var ProviderAsync = class extends provider_1.default {
|
|
5450
5453
|
constructor() {
|
|
5451
5454
|
super(...arguments);
|
|
5452
|
-
this._reader = new async_1
|
|
5455
|
+
this._reader = new async_1.default(this._settings);
|
|
5453
5456
|
}
|
|
5454
5457
|
async read(task) {
|
|
5455
5458
|
const root = this._getRootDirectory(task);
|
|
@@ -5462,16 +5465,16 @@ var require_async = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-
|
|
|
5462
5465
|
}
|
|
5463
5466
|
};
|
|
5464
5467
|
exports.default = ProviderAsync;
|
|
5465
|
-
})
|
|
5468
|
+
}));
|
|
5466
5469
|
|
|
5467
5470
|
//#endregion
|
|
5468
5471
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
5469
|
-
var require_stream = /* @__PURE__ */
|
|
5472
|
+
var require_stream = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5470
5473
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5471
|
-
const stream_1
|
|
5474
|
+
const stream_1 = require("stream");
|
|
5472
5475
|
const stream_2 = require_stream$1();
|
|
5473
|
-
const provider_1
|
|
5474
|
-
var ProviderStream = class extends provider_1
|
|
5476
|
+
const provider_1 = require_provider();
|
|
5477
|
+
var ProviderStream = class extends provider_1.default {
|
|
5475
5478
|
constructor() {
|
|
5476
5479
|
super(...arguments);
|
|
5477
5480
|
this._reader = new stream_2.default(this._settings);
|
|
@@ -5480,7 +5483,7 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5480
5483
|
const root = this._getRootDirectory(task);
|
|
5481
5484
|
const options$1 = this._getReaderOptions(task);
|
|
5482
5485
|
const source = this.api(root, task, options$1);
|
|
5483
|
-
const destination = new stream_1
|
|
5486
|
+
const destination = new stream_1.Readable({
|
|
5484
5487
|
objectMode: true,
|
|
5485
5488
|
read: () => {}
|
|
5486
5489
|
});
|
|
@@ -5494,11 +5497,11 @@ var require_stream = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5494
5497
|
}
|
|
5495
5498
|
};
|
|
5496
5499
|
exports.default = ProviderStream;
|
|
5497
|
-
})
|
|
5500
|
+
}));
|
|
5498
5501
|
|
|
5499
5502
|
//#endregion
|
|
5500
5503
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
5501
|
-
var require_sync$1 = /* @__PURE__ */
|
|
5504
|
+
var require_sync$1 = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5502
5505
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5503
5506
|
const fsStat = require_out$3();
|
|
5504
5507
|
const fsWalk = require_out$1();
|
|
@@ -5514,18 +5517,18 @@ var require_sync$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5514
5517
|
}
|
|
5515
5518
|
static(patterns, options$1) {
|
|
5516
5519
|
const entries = [];
|
|
5517
|
-
for (const pattern
|
|
5518
|
-
const filepath = this._getFullEntryPath(pattern
|
|
5519
|
-
const entry = this._getEntry(filepath, pattern
|
|
5520
|
+
for (const pattern of patterns) {
|
|
5521
|
+
const filepath = this._getFullEntryPath(pattern);
|
|
5522
|
+
const entry = this._getEntry(filepath, pattern, options$1);
|
|
5520
5523
|
if (entry === null || !options$1.entryFilter(entry)) continue;
|
|
5521
5524
|
entries.push(entry);
|
|
5522
5525
|
}
|
|
5523
5526
|
return entries;
|
|
5524
5527
|
}
|
|
5525
|
-
_getEntry(filepath, pattern
|
|
5528
|
+
_getEntry(filepath, pattern, options$1) {
|
|
5526
5529
|
try {
|
|
5527
5530
|
const stats = this._getStat(filepath);
|
|
5528
|
-
return this._makeEntry(stats, pattern
|
|
5531
|
+
return this._makeEntry(stats, pattern);
|
|
5529
5532
|
} catch (error) {
|
|
5530
5533
|
if (options$1.errorFilter(error)) return null;
|
|
5531
5534
|
throw error;
|
|
@@ -5536,18 +5539,18 @@ var require_sync$1 = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast
|
|
|
5536
5539
|
}
|
|
5537
5540
|
};
|
|
5538
5541
|
exports.default = ReaderSync;
|
|
5539
|
-
})
|
|
5542
|
+
}));
|
|
5540
5543
|
|
|
5541
5544
|
//#endregion
|
|
5542
5545
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
5543
|
-
var require_sync = /* @__PURE__ */
|
|
5546
|
+
var require_sync = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5544
5547
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5545
|
-
const sync_1
|
|
5548
|
+
const sync_1 = require_sync$1();
|
|
5546
5549
|
const provider_1 = require_provider();
|
|
5547
5550
|
var ProviderSync = class extends provider_1.default {
|
|
5548
5551
|
constructor() {
|
|
5549
5552
|
super(...arguments);
|
|
5550
|
-
this._reader = new sync_1
|
|
5553
|
+
this._reader = new sync_1.default(this._settings);
|
|
5551
5554
|
}
|
|
5552
5555
|
read(task) {
|
|
5553
5556
|
const root = this._getRootDirectory(task);
|
|
@@ -5560,11 +5563,11 @@ var require_sync = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-g
|
|
|
5560
5563
|
}
|
|
5561
5564
|
};
|
|
5562
5565
|
exports.default = ProviderSync;
|
|
5563
|
-
})
|
|
5566
|
+
}));
|
|
5564
5567
|
|
|
5565
5568
|
//#endregion
|
|
5566
5569
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
5567
|
-
var require_settings = /* @__PURE__ */
|
|
5570
|
+
var require_settings = /* @__PURE__ */ __commonJSMin(((exports) => {
|
|
5568
5571
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5569
5572
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
5570
5573
|
const fs$1 = require("fs");
|
|
@@ -5618,11 +5621,11 @@ var require_settings = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fa
|
|
|
5618
5621
|
}
|
|
5619
5622
|
};
|
|
5620
5623
|
exports.default = Settings;
|
|
5621
|
-
})
|
|
5624
|
+
}));
|
|
5622
5625
|
|
|
5623
5626
|
//#endregion
|
|
5624
5627
|
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
5625
|
-
var require_out = /* @__PURE__ */
|
|
5628
|
+
var require_out = /* @__PURE__ */ __commonJSMin(((exports, module) => {
|
|
5626
5629
|
const taskManager = require_tasks();
|
|
5627
5630
|
const async_1 = require_async();
|
|
5628
5631
|
const stream_1 = require_stream();
|
|
@@ -5635,18 +5638,18 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5635
5638
|
const result = await Promise.all(works);
|
|
5636
5639
|
return utils.array.flatten(result);
|
|
5637
5640
|
}
|
|
5638
|
-
(function(FastGlob
|
|
5639
|
-
FastGlob
|
|
5640
|
-
FastGlob
|
|
5641
|
-
FastGlob
|
|
5642
|
-
FastGlob
|
|
5643
|
-
function sync
|
|
5641
|
+
(function(FastGlob) {
|
|
5642
|
+
FastGlob.glob = FastGlob;
|
|
5643
|
+
FastGlob.globSync = sync;
|
|
5644
|
+
FastGlob.globStream = stream;
|
|
5645
|
+
FastGlob.async = FastGlob;
|
|
5646
|
+
function sync(source, options$1) {
|
|
5644
5647
|
assertPatternsInput(source);
|
|
5645
5648
|
const works = getWorks(source, sync_1.default, options$1);
|
|
5646
5649
|
return utils.array.flatten(works);
|
|
5647
5650
|
}
|
|
5648
|
-
FastGlob
|
|
5649
|
-
function stream
|
|
5651
|
+
FastGlob.sync = sync;
|
|
5652
|
+
function stream(source, options$1) {
|
|
5650
5653
|
assertPatternsInput(source);
|
|
5651
5654
|
const works = getWorks(source, stream_1.default, options$1);
|
|
5652
5655
|
/**
|
|
@@ -5656,30 +5659,30 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5656
5659
|
*/
|
|
5657
5660
|
return utils.stream.merge(works);
|
|
5658
5661
|
}
|
|
5659
|
-
FastGlob
|
|
5662
|
+
FastGlob.stream = stream;
|
|
5660
5663
|
function generateTasks(source, options$1) {
|
|
5661
5664
|
assertPatternsInput(source);
|
|
5662
5665
|
const patterns = [].concat(source);
|
|
5663
5666
|
const settings = new settings_1.default(options$1);
|
|
5664
5667
|
return taskManager.generate(patterns, settings);
|
|
5665
5668
|
}
|
|
5666
|
-
FastGlob
|
|
5667
|
-
function isDynamicPattern
|
|
5669
|
+
FastGlob.generateTasks = generateTasks;
|
|
5670
|
+
function isDynamicPattern(source, options$1) {
|
|
5668
5671
|
assertPatternsInput(source);
|
|
5669
5672
|
const settings = new settings_1.default(options$1);
|
|
5670
5673
|
return utils.pattern.isDynamicPattern(source, settings);
|
|
5671
5674
|
}
|
|
5672
|
-
FastGlob
|
|
5675
|
+
FastGlob.isDynamicPattern = isDynamicPattern;
|
|
5673
5676
|
function escapePath(source) {
|
|
5674
5677
|
assertPatternsInput(source);
|
|
5675
5678
|
return utils.path.escape(source);
|
|
5676
5679
|
}
|
|
5677
|
-
FastGlob
|
|
5680
|
+
FastGlob.escapePath = escapePath;
|
|
5678
5681
|
function convertPathToPattern(source) {
|
|
5679
5682
|
assertPatternsInput(source);
|
|
5680
5683
|
return utils.path.convertPathToPattern(source);
|
|
5681
5684
|
}
|
|
5682
|
-
FastGlob
|
|
5685
|
+
FastGlob.convertPathToPattern = convertPathToPattern;
|
|
5683
5686
|
(function(posix) {
|
|
5684
5687
|
function escapePath$1(source) {
|
|
5685
5688
|
assertPatternsInput(source);
|
|
@@ -5691,19 +5694,19 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5691
5694
|
return utils.path.convertPosixPathToPattern(source);
|
|
5692
5695
|
}
|
|
5693
5696
|
posix.convertPathToPattern = convertPathToPattern$1;
|
|
5694
|
-
})(FastGlob
|
|
5695
|
-
(function(win32
|
|
5697
|
+
})(FastGlob.posix || (FastGlob.posix = {}));
|
|
5698
|
+
(function(win32) {
|
|
5696
5699
|
function escapePath$1(source) {
|
|
5697
5700
|
assertPatternsInput(source);
|
|
5698
5701
|
return utils.path.escapeWindowsPath(source);
|
|
5699
5702
|
}
|
|
5700
|
-
win32
|
|
5703
|
+
win32.escapePath = escapePath$1;
|
|
5701
5704
|
function convertPathToPattern$1(source) {
|
|
5702
5705
|
assertPatternsInput(source);
|
|
5703
5706
|
return utils.path.convertWindowsPathToPattern(source);
|
|
5704
5707
|
}
|
|
5705
|
-
win32
|
|
5706
|
-
})(FastGlob
|
|
5708
|
+
win32.convertPathToPattern = convertPathToPattern$1;
|
|
5709
|
+
})(FastGlob.win32 || (FastGlob.win32 = {}));
|
|
5707
5710
|
})(FastGlob || (FastGlob = {}));
|
|
5708
5711
|
function getWorks(source, _Provider, options$1) {
|
|
5709
5712
|
const patterns = [].concat(source);
|
|
@@ -5716,7 +5719,7 @@ var require_out = /* @__PURE__ */ __commonJS({ "../../node_modules/.pnpm/fast-gl
|
|
|
5716
5719
|
if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item))) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
5717
5720
|
}
|
|
5718
5721
|
module.exports = FastGlob;
|
|
5719
|
-
})
|
|
5722
|
+
}));
|
|
5720
5723
|
|
|
5721
5724
|
//#endregion
|
|
5722
5725
|
//#region ../../node_modules/.pnpm/image-meta@0.2.2/node_modules/image-meta/dist/index.mjs
|
|
@@ -6413,37 +6416,37 @@ const _UNC_REGEX = /^[/\\]{2}/;
|
|
|
6413
6416
|
const _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
|
|
6414
6417
|
const _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
|
|
6415
6418
|
const _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
|
|
6416
|
-
const normalize = function(path$
|
|
6417
|
-
if (path$
|
|
6418
|
-
path$
|
|
6419
|
-
const isUNCPath = path$
|
|
6420
|
-
const isPathAbsolute = isAbsolute(path$
|
|
6421
|
-
const trailingSeparator = path$
|
|
6422
|
-
path$
|
|
6423
|
-
if (path$
|
|
6419
|
+
const normalize = function(path$10) {
|
|
6420
|
+
if (path$10.length === 0) return ".";
|
|
6421
|
+
path$10 = normalizeWindowsPath(path$10);
|
|
6422
|
+
const isUNCPath = path$10.match(_UNC_REGEX);
|
|
6423
|
+
const isPathAbsolute = isAbsolute(path$10);
|
|
6424
|
+
const trailingSeparator = path$10[path$10.length - 1] === "/";
|
|
6425
|
+
path$10 = normalizeString(path$10, !isPathAbsolute);
|
|
6426
|
+
if (path$10.length === 0) {
|
|
6424
6427
|
if (isPathAbsolute) return "/";
|
|
6425
6428
|
return trailingSeparator ? "./" : ".";
|
|
6426
6429
|
}
|
|
6427
|
-
if (trailingSeparator) path$
|
|
6428
|
-
if (_DRIVE_LETTER_RE.test(path$
|
|
6430
|
+
if (trailingSeparator) path$10 += "/";
|
|
6431
|
+
if (_DRIVE_LETTER_RE.test(path$10)) path$10 += "/";
|
|
6429
6432
|
if (isUNCPath) {
|
|
6430
|
-
if (!isPathAbsolute) return `//./${path$
|
|
6431
|
-
return `//${path$
|
|
6433
|
+
if (!isPathAbsolute) return `//./${path$10}`;
|
|
6434
|
+
return `//${path$10}`;
|
|
6432
6435
|
}
|
|
6433
|
-
return isPathAbsolute && !isAbsolute(path$
|
|
6436
|
+
return isPathAbsolute && !isAbsolute(path$10) ? `/${path$10}` : path$10;
|
|
6434
6437
|
};
|
|
6435
6438
|
const join = function(...segments) {
|
|
6436
|
-
let path$
|
|
6439
|
+
let path$10 = "";
|
|
6437
6440
|
for (const seg of segments) {
|
|
6438
6441
|
if (!seg) continue;
|
|
6439
|
-
if (path$
|
|
6440
|
-
const pathTrailing = path$
|
|
6442
|
+
if (path$10.length > 0) {
|
|
6443
|
+
const pathTrailing = path$10[path$10.length - 1] === "/";
|
|
6441
6444
|
const segLeading = seg[0] === "/";
|
|
6442
|
-
if (pathTrailing && segLeading) path$
|
|
6443
|
-
else path$
|
|
6444
|
-
} else path$
|
|
6445
|
+
if (pathTrailing && segLeading) path$10 += seg.slice(1);
|
|
6446
|
+
else path$10 += pathTrailing || segLeading ? seg : `/${seg}`;
|
|
6447
|
+
} else path$10 += seg;
|
|
6445
6448
|
}
|
|
6446
|
-
return normalize(path$
|
|
6449
|
+
return normalize(path$10);
|
|
6447
6450
|
};
|
|
6448
6451
|
function cwd() {
|
|
6449
6452
|
if (typeof process !== "undefined" && typeof process.cwd === "function") return process.cwd().replace(/\\/g, "/");
|
|
@@ -6454,23 +6457,23 @@ const resolve = function(...arguments_) {
|
|
|
6454
6457
|
let resolvedPath = "";
|
|
6455
6458
|
let resolvedAbsolute = false;
|
|
6456
6459
|
for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
|
|
6457
|
-
const path$
|
|
6458
|
-
if (!path$
|
|
6459
|
-
resolvedPath = `${path$
|
|
6460
|
-
resolvedAbsolute = isAbsolute(path$
|
|
6460
|
+
const path$10 = index >= 0 ? arguments_[index] : cwd();
|
|
6461
|
+
if (!path$10 || path$10.length === 0) continue;
|
|
6462
|
+
resolvedPath = `${path$10}/${resolvedPath}`;
|
|
6463
|
+
resolvedAbsolute = isAbsolute(path$10);
|
|
6461
6464
|
}
|
|
6462
6465
|
resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
|
|
6463
6466
|
if (resolvedAbsolute && !isAbsolute(resolvedPath)) return `/${resolvedPath}`;
|
|
6464
6467
|
return resolvedPath.length > 0 ? resolvedPath : ".";
|
|
6465
6468
|
};
|
|
6466
|
-
function normalizeString(path$
|
|
6469
|
+
function normalizeString(path$10, allowAboveRoot) {
|
|
6467
6470
|
let res = "";
|
|
6468
6471
|
let lastSegmentLength = 0;
|
|
6469
6472
|
let lastSlash = -1;
|
|
6470
6473
|
let dots = 0;
|
|
6471
6474
|
let char = null;
|
|
6472
|
-
for (let index = 0; index <= path$
|
|
6473
|
-
if (index < path$
|
|
6475
|
+
for (let index = 0; index <= path$10.length; ++index) {
|
|
6476
|
+
if (index < path$10.length) char = path$10[index];
|
|
6474
6477
|
else if (char === "/") break;
|
|
6475
6478
|
else char = "/";
|
|
6476
6479
|
if (char === "/") {
|
|
@@ -6502,8 +6505,8 @@ function normalizeString(path$11, allowAboveRoot) {
|
|
|
6502
6505
|
lastSegmentLength = 2;
|
|
6503
6506
|
}
|
|
6504
6507
|
} else {
|
|
6505
|
-
if (res.length > 0) res += `/${path$
|
|
6506
|
-
else res = path$
|
|
6508
|
+
if (res.length > 0) res += `/${path$10.slice(lastSlash + 1, index)}`;
|
|
6509
|
+
else res = path$10.slice(lastSlash + 1, index);
|
|
6507
6510
|
lastSegmentLength = index - lastSlash - 1;
|
|
6508
6511
|
}
|
|
6509
6512
|
lastSlash = index;
|
|
@@ -6566,9 +6569,9 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6566
6569
|
currentPromise.finally(() => {
|
|
6567
6570
|
currentPromise = null;
|
|
6568
6571
|
if (options$1.trailing && trailingArgs && !timeout) {
|
|
6569
|
-
const promise
|
|
6572
|
+
const promise = applyFn(_this, trailingArgs);
|
|
6570
6573
|
trailingArgs = null;
|
|
6571
|
-
return promise
|
|
6574
|
+
return promise;
|
|
6572
6575
|
}
|
|
6573
6576
|
});
|
|
6574
6577
|
return currentPromise;
|
|
@@ -6581,9 +6584,9 @@ function debounce(fn, wait = 25, options$1 = {}) {
|
|
|
6581
6584
|
clearTimeout(timeout);
|
|
6582
6585
|
timeout = setTimeout(() => {
|
|
6583
6586
|
timeout = null;
|
|
6584
|
-
const promise
|
|
6587
|
+
const promise = options$1.leading ? leadingValue : applyFn(this, args);
|
|
6585
6588
|
trailingArgs = null;
|
|
6586
|
-
for (const _resolve of resolveList) _resolve(promise
|
|
6589
|
+
for (const _resolve of resolveList) _resolve(promise);
|
|
6587
6590
|
resolveList = [];
|
|
6588
6591
|
}, wait);
|
|
6589
6592
|
if (shouldCallNow) {
|
|
@@ -6619,20 +6622,20 @@ async function _applyPromised(fn, _this, args) {
|
|
|
6619
6622
|
|
|
6620
6623
|
//#endregion
|
|
6621
6624
|
//#region src/rpc/assets.ts
|
|
6622
|
-
function guessType(path$
|
|
6623
|
-
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path$
|
|
6624
|
-
if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path$
|
|
6625
|
-
if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path$
|
|
6626
|
-
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path$
|
|
6627
|
-
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path$
|
|
6628
|
-
if (/\.wasm/i.test(path$
|
|
6625
|
+
function guessType(path$10) {
|
|
6626
|
+
if (/\.(?:png|jpe?g|jxl|gif|svg|webp|avif|ico|bmp|tiff?)$/i.test(path$10)) return "image";
|
|
6627
|
+
if (/\.(?:mp4|webm|ogv|mov|avi|flv|wmv|mpg|mpeg|mkv|3gp|3g2|ts|mts|m2ts|vob|ogm|ogx|rm|rmvb|asf|amv|divx|m4v|svi|viv|f4v|f4p|f4a|f4b)$/i.test(path$10)) return "video";
|
|
6628
|
+
if (/\.(?:mp3|wav|ogg|flac|aac|wma|alac|ape|ac3|dts|tta|opus|amr|aiff|au|mid|midi|ra|rm|wv|weba|dss|spx|vox|tak|dsf|dff|dsd|cda)$/i.test(path$10)) return "audio";
|
|
6629
|
+
if (/\.(?:woff2?|eot|ttf|otf|ttc|pfa|pfb|pfm|afm)/i.test(path$10)) return "font";
|
|
6630
|
+
if (/\.(?:json[5c]?|te?xt|[mc]?[jt]sx?|md[cx]?|markdown|ya?ml|toml)/i.test(path$10)) return "text";
|
|
6631
|
+
if (/\.wasm/i.test(path$10)) return "wasm";
|
|
6629
6632
|
return "other";
|
|
6630
6633
|
}
|
|
6631
6634
|
function getAssetsFunctions(ctx) {
|
|
6632
6635
|
const { server, config } = ctx;
|
|
6633
6636
|
const _imageMetaCache = /* @__PURE__ */ new Map();
|
|
6634
6637
|
let cache = null;
|
|
6635
|
-
async function scan
|
|
6638
|
+
async function scan() {
|
|
6636
6639
|
const dir = resolve(config.root);
|
|
6637
6640
|
const baseURL = config.base;
|
|
6638
6641
|
const publicDir = config.publicDir;
|
|
@@ -6658,24 +6661,24 @@ function getAssetsFunctions(ctx) {
|
|
|
6658
6661
|
});
|
|
6659
6662
|
cache = await Promise.all(files.map(async (relativePath) => {
|
|
6660
6663
|
const filePath = resolve(dir, relativePath);
|
|
6661
|
-
const stat
|
|
6662
|
-
const path$
|
|
6664
|
+
const stat = await node_fs_promises.default.lstat(filePath);
|
|
6665
|
+
const path$10 = relativePath.replace(relativePublicDir, "");
|
|
6663
6666
|
return {
|
|
6664
|
-
path: path$
|
|
6667
|
+
path: path$10,
|
|
6665
6668
|
relativePath,
|
|
6666
|
-
publicPath: join(baseURL, path$
|
|
6669
|
+
publicPath: join(baseURL, path$10),
|
|
6667
6670
|
filePath,
|
|
6668
6671
|
type: guessType(relativePath),
|
|
6669
|
-
size: stat
|
|
6670
|
-
mtime: stat
|
|
6672
|
+
size: stat.size,
|
|
6673
|
+
mtime: stat.mtimeMs
|
|
6671
6674
|
};
|
|
6672
6675
|
}));
|
|
6673
6676
|
return cache;
|
|
6674
6677
|
}
|
|
6675
6678
|
async function getAssetImporters(url) {
|
|
6676
6679
|
const importers = [];
|
|
6677
|
-
const module
|
|
6678
|
-
if (module
|
|
6680
|
+
const module = await server.moduleGraph.getModuleByUrl(url);
|
|
6681
|
+
if (module) for (const importer of module.importers) importers.push({
|
|
6679
6682
|
url: importer.url,
|
|
6680
6683
|
id: importer.id
|
|
6681
6684
|
});
|
|
@@ -6683,14 +6686,14 @@ function getAssetsFunctions(ctx) {
|
|
|
6683
6686
|
}
|
|
6684
6687
|
const debouncedAssetsUpdated = debounce(() => {
|
|
6685
6688
|
var _ref;
|
|
6686
|
-
|
|
6689
|
+
_vue_devtools_kit.getViteRpcServer === null || _vue_devtools_kit.getViteRpcServer === void 0 || (_ref = (0, _vue_devtools_kit.getViteRpcServer)()) === null || _ref === void 0 || (_ref = _ref.broadcast) === null || _ref === void 0 || _ref.emit("assetsUpdated");
|
|
6687
6690
|
}, 100);
|
|
6688
6691
|
server.watcher.on("all", (event) => {
|
|
6689
6692
|
if (event !== "change") debouncedAssetsUpdated();
|
|
6690
6693
|
});
|
|
6691
6694
|
return {
|
|
6692
6695
|
async getStaticAssets() {
|
|
6693
|
-
return await scan
|
|
6696
|
+
return await scan();
|
|
6694
6697
|
},
|
|
6695
6698
|
async getAssetImporters(url) {
|
|
6696
6699
|
return await getAssetImporters(url);
|
|
@@ -6732,7 +6735,7 @@ function getGraphFunctions(ctx) {
|
|
|
6732
6735
|
const { rpc, server } = ctx;
|
|
6733
6736
|
const debouncedModuleUpdated = debounce(() => {
|
|
6734
6737
|
var _ref;
|
|
6735
|
-
|
|
6738
|
+
_vue_devtools_kit.getViteRpcServer === null || _vue_devtools_kit.getViteRpcServer === void 0 || (_ref = (0, _vue_devtools_kit.getViteRpcServer)()) === null || _ref === void 0 || (_ref = _ref.broadcast) === null || _ref === void 0 || _ref.emit("graphModuleUpdated");
|
|
6736
6739
|
}, 100);
|
|
6737
6740
|
server.middlewares.use((_, __, next) => {
|
|
6738
6741
|
debouncedModuleUpdated();
|
|
@@ -6751,9 +6754,9 @@ function getGraphFunctions(ctx) {
|
|
|
6751
6754
|
function searchForVueDeps(id, seen = /* @__PURE__ */ new Set()) {
|
|
6752
6755
|
if (seen.has(id)) return [];
|
|
6753
6756
|
seen.add(id);
|
|
6754
|
-
const module
|
|
6755
|
-
if (!module
|
|
6756
|
-
return module
|
|
6757
|
+
const module = modules.find((m) => m.id === id);
|
|
6758
|
+
if (!module) return [];
|
|
6759
|
+
return module.deps.flatMap((i$1) => {
|
|
6757
6760
|
if (filteredModules.find((m) => m.id === i$1)) return [i$1];
|
|
6758
6761
|
return searchForVueDeps(i$1, seen);
|
|
6759
6762
|
});
|
|
@@ -6825,8 +6828,8 @@ function VitePluginVueDevTools(options$1) {
|
|
|
6825
6828
|
});
|
|
6826
6829
|
}
|
|
6827
6830
|
}));
|
|
6828
|
-
(0,
|
|
6829
|
-
(0,
|
|
6831
|
+
(0, _vue_devtools_kit.setViteServerContext)(server);
|
|
6832
|
+
(0, _vue_devtools_core.createViteServerRpc)(getRpcFunctions({
|
|
6830
6833
|
rpc: inspect.api.rpc,
|
|
6831
6834
|
server,
|
|
6832
6835
|
config
|