@hot-updater/plugin-core 0.19.1 → 0.19.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +559 -1606
- package/dist/index.js +559 -1606
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -1600,8 +1600,8 @@ var require_getWorkspaceManagerAndRoot = __commonJS({ "../../node_modules/.pnpm/
|
|
|
1600
1600
|
} });
|
|
1601
1601
|
|
|
1602
1602
|
//#endregion
|
|
1603
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1604
|
-
var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1603
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
1604
|
+
var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
1605
1605
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1606
1606
|
exports.splitWhen = exports.flatten = void 0;
|
|
1607
1607
|
function flatten(items) {
|
|
@@ -1621,8 +1621,8 @@ var require_array = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
1621
1621
|
} });
|
|
1622
1622
|
|
|
1623
1623
|
//#endregion
|
|
1624
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1625
|
-
var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1624
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
1625
|
+
var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
1626
1626
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1627
1627
|
exports.isEnoentCodeError = void 0;
|
|
1628
1628
|
function isEnoentCodeError(error) {
|
|
@@ -1632,8 +1632,8 @@ var require_errno = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
1632
1632
|
} });
|
|
1633
1633
|
|
|
1634
1634
|
//#endregion
|
|
1635
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1636
|
-
var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1635
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
1636
|
+
var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
1637
1637
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1638
1638
|
exports.createDirentFromStats = void 0;
|
|
1639
1639
|
var DirentFromStats$1 = class {
|
|
@@ -1655,8 +1655,8 @@ var require_fs$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
1655
1655
|
} });
|
|
1656
1656
|
|
|
1657
1657
|
//#endregion
|
|
1658
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1659
|
-
var require_path = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
1658
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
1659
|
+
var require_path = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
1660
1660
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1661
1661
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
1662
1662
|
const os$2 = require("os");
|
|
@@ -1868,8 +1868,8 @@ var require_glob_parent = __commonJS({ "../../node_modules/.pnpm/glob-parent@5.1
|
|
|
1868
1868
|
} });
|
|
1869
1869
|
|
|
1870
1870
|
//#endregion
|
|
1871
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
1872
|
-
var require_utils$
|
|
1871
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
1872
|
+
var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
1873
1873
|
exports.isInteger = (num) => {
|
|
1874
1874
|
if (typeof num === "number") return Number.isInteger(num);
|
|
1875
1875
|
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
@@ -1891,7 +1891,7 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1891
1891
|
* Escape the given node with '\\' before node.value
|
|
1892
1892
|
*/
|
|
1893
1893
|
exports.escapeNode = (block, n = 0, type) => {
|
|
1894
|
-
|
|
1894
|
+
const node = block.nodes[n];
|
|
1895
1895
|
if (!node) return;
|
|
1896
1896
|
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
1897
1897
|
if (node.escaped !== true) {
|
|
@@ -1949,8 +1949,12 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1949
1949
|
const result = [];
|
|
1950
1950
|
const flat = (arr) => {
|
|
1951
1951
|
for (let i$3 = 0; i$3 < arr.length; i$3++) {
|
|
1952
|
-
|
|
1953
|
-
Array.isArray(ele)
|
|
1952
|
+
const ele = arr[i$3];
|
|
1953
|
+
if (Array.isArray(ele)) {
|
|
1954
|
+
flat(ele);
|
|
1955
|
+
continue;
|
|
1956
|
+
}
|
|
1957
|
+
if (ele !== void 0) result.push(ele);
|
|
1954
1958
|
}
|
|
1955
1959
|
return result;
|
|
1956
1960
|
};
|
|
@@ -1960,23 +1964,23 @@ var require_utils$6 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
1960
1964
|
} });
|
|
1961
1965
|
|
|
1962
1966
|
//#endregion
|
|
1963
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
1964
|
-
var require_stringify$
|
|
1965
|
-
const utils$
|
|
1967
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
1968
|
+
var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
1969
|
+
const utils$45 = require_utils$5();
|
|
1966
1970
|
module.exports = (ast, options = {}) => {
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1971
|
+
const stringify$5 = (node, parent = {}) => {
|
|
1972
|
+
const invalidBlock = options.escapeInvalid && utils$45.isInvalidBrace(parent);
|
|
1973
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
1970
1974
|
let output = "";
|
|
1971
1975
|
if (node.value) {
|
|
1972
|
-
if ((invalidBlock || invalidNode) && utils$
|
|
1976
|
+
if ((invalidBlock || invalidNode) && utils$45.isOpenOrClose(node)) return "\\" + node.value;
|
|
1973
1977
|
return node.value;
|
|
1974
1978
|
}
|
|
1975
1979
|
if (node.value) return node.value;
|
|
1976
|
-
if (node.nodes) for (
|
|
1980
|
+
if (node.nodes) for (const child of node.nodes) output += stringify$5(child);
|
|
1977
1981
|
return output;
|
|
1978
1982
|
};
|
|
1979
|
-
return stringify$
|
|
1983
|
+
return stringify$5(ast);
|
|
1980
1984
|
};
|
|
1981
1985
|
} });
|
|
1982
1986
|
|
|
@@ -2189,7 +2193,7 @@ var require_to_regex_range = __commonJS({ "../../node_modules/.pnpm/to-regex-ran
|
|
|
2189
2193
|
//#endregion
|
|
2190
2194
|
//#region ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
2191
2195
|
var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
2192
|
-
const util$
|
|
2196
|
+
const util$8 = require("util");
|
|
2193
2197
|
const toRegexRange = require_to_regex_range();
|
|
2194
2198
|
const isObject$4 = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
2195
2199
|
const transform$2 = (toNumber) => {
|
|
@@ -2207,7 +2211,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2207
2211
|
while (value[++index] === "0");
|
|
2208
2212
|
return index > 0;
|
|
2209
2213
|
};
|
|
2210
|
-
const stringify$
|
|
2214
|
+
const stringify$4 = (start, end, options) => {
|
|
2211
2215
|
if (typeof start === "string" || typeof end === "string") return true;
|
|
2212
2216
|
return options.stringify === true;
|
|
2213
2217
|
};
|
|
@@ -2262,7 +2266,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2262
2266
|
return toRegexRange(start, end, options);
|
|
2263
2267
|
};
|
|
2264
2268
|
const rangeError = (...args) => {
|
|
2265
|
-
return new RangeError("Invalid range arguments: " + util$
|
|
2269
|
+
return new RangeError("Invalid range arguments: " + util$8.inspect(...args));
|
|
2266
2270
|
};
|
|
2267
2271
|
const invalidRange = (start, end, options) => {
|
|
2268
2272
|
if (options.strictRanges === true) throw rangeError([start, end]);
|
|
@@ -2288,7 +2292,7 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2288
2292
|
step = Math.max(Math.abs(step), 1);
|
|
2289
2293
|
let padded = zeros(startString) || zeros(endString) || zeros(stepString);
|
|
2290
2294
|
let maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0;
|
|
2291
|
-
let toNumber = padded === false && stringify$
|
|
2295
|
+
let toNumber = padded === false && stringify$4(start, end, options) === false;
|
|
2292
2296
|
let format = options.transform || transform$2(toNumber);
|
|
2293
2297
|
if (options.toRegex && step === 1) return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
|
|
2294
2298
|
let parts = {
|
|
@@ -2332,81 +2336,85 @@ var require_fill_range = __commonJS({ "../../node_modules/.pnpm/fill-range@7.1.1
|
|
|
2332
2336
|
});
|
|
2333
2337
|
return range;
|
|
2334
2338
|
};
|
|
2335
|
-
const fill$
|
|
2339
|
+
const fill$2 = (start, end, step, options = {}) => {
|
|
2336
2340
|
if (end == null && isValidValue(start)) return [start];
|
|
2337
2341
|
if (!isValidValue(start) || !isValidValue(end)) return invalidRange(start, end, options);
|
|
2338
|
-
if (typeof step === "function") return fill$
|
|
2339
|
-
if (isObject$4(step)) return fill$
|
|
2342
|
+
if (typeof step === "function") return fill$2(start, end, 1, { transform: step });
|
|
2343
|
+
if (isObject$4(step)) return fill$2(start, end, 0, step);
|
|
2340
2344
|
let opts = { ...options };
|
|
2341
2345
|
if (opts.capture === true) opts.wrap = true;
|
|
2342
2346
|
step = step || opts.step || 1;
|
|
2343
2347
|
if (!isNumber$1(step)) {
|
|
2344
2348
|
if (step != null && !isObject$4(step)) return invalidStep(step, opts);
|
|
2345
|
-
return fill$
|
|
2349
|
+
return fill$2(start, end, 1, step);
|
|
2346
2350
|
}
|
|
2347
2351
|
if (isNumber$1(start) && isNumber$1(end)) return fillNumbers(start, end, step, opts);
|
|
2348
2352
|
return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
|
|
2349
2353
|
};
|
|
2350
|
-
module.exports = fill$
|
|
2354
|
+
module.exports = fill$2;
|
|
2351
2355
|
} });
|
|
2352
2356
|
|
|
2353
2357
|
//#endregion
|
|
2354
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2355
|
-
var require_compile
|
|
2356
|
-
const fill$
|
|
2357
|
-
const utils$
|
|
2358
|
-
const compile$
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2358
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
2359
|
+
var require_compile = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
2360
|
+
const fill$1 = require_fill_range();
|
|
2361
|
+
const utils$44 = require_utils$5();
|
|
2362
|
+
const compile$1 = (ast, options = {}) => {
|
|
2363
|
+
const walk$1 = (node, parent = {}) => {
|
|
2364
|
+
const invalidBlock = utils$44.isInvalidBrace(parent);
|
|
2365
|
+
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
2366
|
+
const invalid = invalidBlock === true || invalidNode === true;
|
|
2367
|
+
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
2364
2368
|
let output = "";
|
|
2365
2369
|
if (node.isOpen === true) return prefix + node.value;
|
|
2366
|
-
if (node.isClose === true)
|
|
2370
|
+
if (node.isClose === true) {
|
|
2371
|
+
console.log("node.isClose", prefix, node.value);
|
|
2372
|
+
return prefix + node.value;
|
|
2373
|
+
}
|
|
2367
2374
|
if (node.type === "open") return invalid ? prefix + node.value : "(";
|
|
2368
2375
|
if (node.type === "close") return invalid ? prefix + node.value : ")";
|
|
2369
2376
|
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
2370
2377
|
if (node.value) return node.value;
|
|
2371
2378
|
if (node.nodes && node.ranges > 0) {
|
|
2372
|
-
|
|
2373
|
-
|
|
2379
|
+
const args = utils$44.reduce(node.nodes);
|
|
2380
|
+
const range = fill$1(...args, {
|
|
2374
2381
|
...options,
|
|
2375
2382
|
wrap: false,
|
|
2376
|
-
toRegex: true
|
|
2383
|
+
toRegex: true,
|
|
2384
|
+
strictZeros: true
|
|
2377
2385
|
});
|
|
2378
2386
|
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
2379
2387
|
}
|
|
2380
|
-
if (node.nodes) for (
|
|
2388
|
+
if (node.nodes) for (const child of node.nodes) output += walk$1(child, node);
|
|
2381
2389
|
return output;
|
|
2382
2390
|
};
|
|
2383
2391
|
return walk$1(ast);
|
|
2384
2392
|
};
|
|
2385
|
-
module.exports = compile$
|
|
2393
|
+
module.exports = compile$1;
|
|
2386
2394
|
} });
|
|
2387
2395
|
|
|
2388
2396
|
//#endregion
|
|
2389
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2390
|
-
var require_expand
|
|
2391
|
-
const fill
|
|
2392
|
-
const stringify$
|
|
2393
|
-
const utils$
|
|
2394
|
-
const append
|
|
2395
|
-
|
|
2397
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
2398
|
+
var require_expand = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
2399
|
+
const fill = require_fill_range();
|
|
2400
|
+
const stringify$3 = require_stringify$1();
|
|
2401
|
+
const utils$43 = require_utils$5();
|
|
2402
|
+
const append = (queue$1 = "", stash = "", enclose = false) => {
|
|
2403
|
+
const result = [];
|
|
2396
2404
|
queue$1 = [].concat(queue$1);
|
|
2397
2405
|
stash = [].concat(stash);
|
|
2398
2406
|
if (!stash.length) return queue$1;
|
|
2399
|
-
if (!queue$1.length) return enclose ? utils$
|
|
2400
|
-
for (
|
|
2407
|
+
if (!queue$1.length) return enclose ? utils$43.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
2408
|
+
for (const item of queue$1) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
2401
2409
|
else for (let ele of stash) {
|
|
2402
2410
|
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
2403
|
-
result.push(Array.isArray(ele) ? append
|
|
2411
|
+
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
2404
2412
|
}
|
|
2405
|
-
return utils$
|
|
2413
|
+
return utils$43.flatten(result);
|
|
2406
2414
|
};
|
|
2407
|
-
const expand$
|
|
2408
|
-
|
|
2409
|
-
|
|
2415
|
+
const expand$1 = (ast, options = {}) => {
|
|
2416
|
+
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
2417
|
+
const walk$1 = (node, parent = {}) => {
|
|
2410
2418
|
node.queue = [];
|
|
2411
2419
|
let p$1 = parent;
|
|
2412
2420
|
let q$1 = parent.queue;
|
|
@@ -2415,23 +2423,23 @@ var require_expand$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2415
2423
|
q$1 = p$1.queue;
|
|
2416
2424
|
}
|
|
2417
2425
|
if (node.invalid || node.dollar) {
|
|
2418
|
-
q$1.push(append
|
|
2426
|
+
q$1.push(append(q$1.pop(), stringify$3(node, options)));
|
|
2419
2427
|
return;
|
|
2420
2428
|
}
|
|
2421
2429
|
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
2422
|
-
q$1.push(append
|
|
2430
|
+
q$1.push(append(q$1.pop(), ["{}"]));
|
|
2423
2431
|
return;
|
|
2424
2432
|
}
|
|
2425
2433
|
if (node.nodes && node.ranges > 0) {
|
|
2426
|
-
|
|
2427
|
-
if (utils$
|
|
2428
|
-
let range = fill
|
|
2429
|
-
if (range.length === 0) range = stringify$
|
|
2430
|
-
q$1.push(append
|
|
2434
|
+
const args = utils$43.reduce(node.nodes);
|
|
2435
|
+
if (utils$43.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
2436
|
+
let range = fill(...args, options);
|
|
2437
|
+
if (range.length === 0) range = stringify$3(node, options);
|
|
2438
|
+
q$1.push(append(q$1.pop(), range));
|
|
2431
2439
|
node.nodes = [];
|
|
2432
2440
|
return;
|
|
2433
2441
|
}
|
|
2434
|
-
|
|
2442
|
+
const enclose = utils$43.encloseBrace(node);
|
|
2435
2443
|
let queue$1 = node.queue;
|
|
2436
2444
|
let block = node;
|
|
2437
2445
|
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
@@ -2439,34 +2447,34 @@ var require_expand$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2439
2447
|
queue$1 = block.queue;
|
|
2440
2448
|
}
|
|
2441
2449
|
for (let i$3 = 0; i$3 < node.nodes.length; i$3++) {
|
|
2442
|
-
|
|
2450
|
+
const child = node.nodes[i$3];
|
|
2443
2451
|
if (child.type === "comma" && node.type === "brace") {
|
|
2444
2452
|
if (i$3 === 1) queue$1.push("");
|
|
2445
2453
|
queue$1.push("");
|
|
2446
2454
|
continue;
|
|
2447
2455
|
}
|
|
2448
2456
|
if (child.type === "close") {
|
|
2449
|
-
q$1.push(append
|
|
2457
|
+
q$1.push(append(q$1.pop(), queue$1, enclose));
|
|
2450
2458
|
continue;
|
|
2451
2459
|
}
|
|
2452
2460
|
if (child.value && child.type !== "open") {
|
|
2453
|
-
queue$1.push(append
|
|
2461
|
+
queue$1.push(append(queue$1.pop(), child.value));
|
|
2454
2462
|
continue;
|
|
2455
2463
|
}
|
|
2456
2464
|
if (child.nodes) walk$1(child, node);
|
|
2457
2465
|
}
|
|
2458
2466
|
return queue$1;
|
|
2459
2467
|
};
|
|
2460
|
-
return utils$
|
|
2468
|
+
return utils$43.flatten(walk$1(ast));
|
|
2461
2469
|
};
|
|
2462
|
-
module.exports = expand$
|
|
2470
|
+
module.exports = expand$1;
|
|
2463
2471
|
} });
|
|
2464
2472
|
|
|
2465
2473
|
//#endregion
|
|
2466
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2467
|
-
var require_constants$
|
|
2474
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
2475
|
+
var require_constants$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
2468
2476
|
module.exports = {
|
|
2469
|
-
MAX_LENGTH:
|
|
2477
|
+
MAX_LENGTH: 1e4,
|
|
2470
2478
|
CHAR_0: "0",
|
|
2471
2479
|
CHAR_9: "9",
|
|
2472
2480
|
CHAR_UPPERCASE_A: "A",
|
|
@@ -2515,35 +2523,34 @@ var require_constants$4 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/no
|
|
|
2515
2523
|
} });
|
|
2516
2524
|
|
|
2517
2525
|
//#endregion
|
|
2518
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2519
|
-
var require_parse$
|
|
2520
|
-
const stringify$
|
|
2526
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
2527
|
+
var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
2528
|
+
const stringify$2 = require_stringify$1();
|
|
2521
2529
|
/**
|
|
2522
2530
|
* Constants
|
|
2523
2531
|
*/
|
|
2524
|
-
const { MAX_LENGTH: MAX_LENGTH$
|
|
2532
|
+
const { MAX_LENGTH: MAX_LENGTH$1, CHAR_BACKSLASH, CHAR_BACKTICK, CHAR_COMMA: CHAR_COMMA$2, CHAR_DOT: CHAR_DOT$1, CHAR_LEFT_PARENTHESES: CHAR_LEFT_PARENTHESES$1, CHAR_RIGHT_PARENTHESES: CHAR_RIGHT_PARENTHESES$1, CHAR_LEFT_CURLY_BRACE: CHAR_LEFT_CURLY_BRACE$1, CHAR_RIGHT_CURLY_BRACE: CHAR_RIGHT_CURLY_BRACE$1, CHAR_LEFT_SQUARE_BRACKET: CHAR_LEFT_SQUARE_BRACKET$2, CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$2, CHAR_DOUBLE_QUOTE: CHAR_DOUBLE_QUOTE$1, CHAR_SINGLE_QUOTE: CHAR_SINGLE_QUOTE$1, CHAR_NO_BREAK_SPACE, CHAR_ZERO_WIDTH_NOBREAK_SPACE } = require_constants$3();
|
|
2525
2533
|
/**
|
|
2526
2534
|
* parse
|
|
2527
2535
|
*/
|
|
2528
|
-
const parse$
|
|
2536
|
+
const parse$4 = (input, options = {}) => {
|
|
2529
2537
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
2530
|
-
|
|
2531
|
-
|
|
2538
|
+
const opts = options || {};
|
|
2539
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH$1, opts.maxLength) : MAX_LENGTH$1;
|
|
2532
2540
|
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
2533
|
-
|
|
2541
|
+
const ast = {
|
|
2534
2542
|
type: "root",
|
|
2535
2543
|
input,
|
|
2536
2544
|
nodes: []
|
|
2537
2545
|
};
|
|
2538
|
-
|
|
2546
|
+
const stack = [ast];
|
|
2539
2547
|
let block = ast;
|
|
2540
2548
|
let prev = ast;
|
|
2541
2549
|
let brackets = 0;
|
|
2542
|
-
|
|
2550
|
+
const length = input.length;
|
|
2543
2551
|
let index = 0;
|
|
2544
2552
|
let depth$1 = 0;
|
|
2545
2553
|
let value;
|
|
2546
|
-
let memo = {};
|
|
2547
2554
|
/**
|
|
2548
2555
|
* Helpers
|
|
2549
2556
|
*/
|
|
@@ -2567,11 +2574,11 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2567
2574
|
/**
|
|
2568
2575
|
* Invalid chars
|
|
2569
2576
|
*/
|
|
2570
|
-
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
2577
|
+
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) continue;
|
|
2571
2578
|
/**
|
|
2572
2579
|
* Escaped chars
|
|
2573
2580
|
*/
|
|
2574
|
-
if (value === CHAR_BACKSLASH
|
|
2581
|
+
if (value === CHAR_BACKSLASH) {
|
|
2575
2582
|
push({
|
|
2576
2583
|
type: "text",
|
|
2577
2584
|
value: (options.keepEscaping ? value : "") + advance()
|
|
@@ -2581,7 +2588,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2581
2588
|
/**
|
|
2582
2589
|
* Right square bracket (literal): ']'
|
|
2583
2590
|
*/
|
|
2584
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET$
|
|
2591
|
+
if (value === CHAR_RIGHT_SQUARE_BRACKET$2) {
|
|
2585
2592
|
push({
|
|
2586
2593
|
type: "text",
|
|
2587
2594
|
value: "\\" + value
|
|
@@ -2591,21 +2598,20 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2591
2598
|
/**
|
|
2592
2599
|
* Left square bracket: '['
|
|
2593
2600
|
*/
|
|
2594
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET$
|
|
2601
|
+
if (value === CHAR_LEFT_SQUARE_BRACKET$2) {
|
|
2595
2602
|
brackets++;
|
|
2596
|
-
let closed = true;
|
|
2597
2603
|
let next;
|
|
2598
2604
|
while (index < length && (next = advance())) {
|
|
2599
2605
|
value += next;
|
|
2600
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET$
|
|
2606
|
+
if (next === CHAR_LEFT_SQUARE_BRACKET$2) {
|
|
2601
2607
|
brackets++;
|
|
2602
2608
|
continue;
|
|
2603
2609
|
}
|
|
2604
|
-
if (next === CHAR_BACKSLASH
|
|
2610
|
+
if (next === CHAR_BACKSLASH) {
|
|
2605
2611
|
value += advance();
|
|
2606
2612
|
continue;
|
|
2607
2613
|
}
|
|
2608
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET$
|
|
2614
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET$2) {
|
|
2609
2615
|
brackets--;
|
|
2610
2616
|
if (brackets === 0) break;
|
|
2611
2617
|
}
|
|
@@ -2619,7 +2625,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2619
2625
|
/**
|
|
2620
2626
|
* Parentheses
|
|
2621
2627
|
*/
|
|
2622
|
-
if (value === CHAR_LEFT_PARENTHESES$
|
|
2628
|
+
if (value === CHAR_LEFT_PARENTHESES$1) {
|
|
2623
2629
|
block = push({
|
|
2624
2630
|
type: "paren",
|
|
2625
2631
|
nodes: []
|
|
@@ -2631,7 +2637,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2631
2637
|
});
|
|
2632
2638
|
continue;
|
|
2633
2639
|
}
|
|
2634
|
-
if (value === CHAR_RIGHT_PARENTHESES$
|
|
2640
|
+
if (value === CHAR_RIGHT_PARENTHESES$1) {
|
|
2635
2641
|
if (block.type !== "paren") {
|
|
2636
2642
|
push({
|
|
2637
2643
|
type: "text",
|
|
@@ -2650,12 +2656,12 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2650
2656
|
/**
|
|
2651
2657
|
* Quotes: '|"|`
|
|
2652
2658
|
*/
|
|
2653
|
-
if (value === CHAR_DOUBLE_QUOTE$
|
|
2654
|
-
|
|
2659
|
+
if (value === CHAR_DOUBLE_QUOTE$1 || value === CHAR_SINGLE_QUOTE$1 || value === CHAR_BACKTICK) {
|
|
2660
|
+
const open = value;
|
|
2655
2661
|
let next;
|
|
2656
2662
|
if (options.keepQuotes !== true) value = "";
|
|
2657
2663
|
while (index < length && (next = advance())) {
|
|
2658
|
-
if (next === CHAR_BACKSLASH
|
|
2664
|
+
if (next === CHAR_BACKSLASH) {
|
|
2659
2665
|
value += next + advance();
|
|
2660
2666
|
continue;
|
|
2661
2667
|
}
|
|
@@ -2674,10 +2680,10 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2674
2680
|
/**
|
|
2675
2681
|
* Left curly brace: '{'
|
|
2676
2682
|
*/
|
|
2677
|
-
if (value === CHAR_LEFT_CURLY_BRACE$
|
|
2683
|
+
if (value === CHAR_LEFT_CURLY_BRACE$1) {
|
|
2678
2684
|
depth$1++;
|
|
2679
|
-
|
|
2680
|
-
|
|
2685
|
+
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
2686
|
+
const brace = {
|
|
2681
2687
|
type: "brace",
|
|
2682
2688
|
open: true,
|
|
2683
2689
|
close: false,
|
|
@@ -2698,7 +2704,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2698
2704
|
/**
|
|
2699
2705
|
* Right curly brace: '}'
|
|
2700
2706
|
*/
|
|
2701
|
-
if (value === CHAR_RIGHT_CURLY_BRACE$
|
|
2707
|
+
if (value === CHAR_RIGHT_CURLY_BRACE$1) {
|
|
2702
2708
|
if (block.type !== "brace") {
|
|
2703
2709
|
push({
|
|
2704
2710
|
type: "text",
|
|
@@ -2706,7 +2712,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2706
2712
|
});
|
|
2707
2713
|
continue;
|
|
2708
2714
|
}
|
|
2709
|
-
|
|
2715
|
+
const type = "close";
|
|
2710
2716
|
block = stack.pop();
|
|
2711
2717
|
block.close = true;
|
|
2712
2718
|
push({
|
|
@@ -2720,13 +2726,13 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2720
2726
|
/**
|
|
2721
2727
|
* Comma: ','
|
|
2722
2728
|
*/
|
|
2723
|
-
if (value === CHAR_COMMA$
|
|
2729
|
+
if (value === CHAR_COMMA$2 && depth$1 > 0) {
|
|
2724
2730
|
if (block.ranges > 0) {
|
|
2725
2731
|
block.ranges = 0;
|
|
2726
|
-
|
|
2732
|
+
const open = block.nodes.shift();
|
|
2727
2733
|
block.nodes = [open, {
|
|
2728
2734
|
type: "text",
|
|
2729
|
-
value: stringify$
|
|
2735
|
+
value: stringify$2(block)
|
|
2730
2736
|
}];
|
|
2731
2737
|
}
|
|
2732
2738
|
push({
|
|
@@ -2739,8 +2745,8 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2739
2745
|
/**
|
|
2740
2746
|
* Dot: '.'
|
|
2741
2747
|
*/
|
|
2742
|
-
if (value === CHAR_DOT$
|
|
2743
|
-
|
|
2748
|
+
if (value === CHAR_DOT$1 && depth$1 > 0 && block.commas === 0) {
|
|
2749
|
+
const siblings = block.nodes;
|
|
2744
2750
|
if (depth$1 === 0 || siblings.length === 0) {
|
|
2745
2751
|
push({
|
|
2746
2752
|
type: "text",
|
|
@@ -2764,7 +2770,7 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2764
2770
|
}
|
|
2765
2771
|
if (prev.type === "range") {
|
|
2766
2772
|
siblings.pop();
|
|
2767
|
-
|
|
2773
|
+
const before = siblings[siblings.length - 1];
|
|
2768
2774
|
before.value += prev.value + value;
|
|
2769
2775
|
prev = before;
|
|
2770
2776
|
block.ranges--;
|
|
@@ -2795,24 +2801,24 @@ var require_parse$3 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_m
|
|
|
2795
2801
|
node.invalid = true;
|
|
2796
2802
|
}
|
|
2797
2803
|
});
|
|
2798
|
-
|
|
2799
|
-
|
|
2804
|
+
const parent = stack[stack.length - 1];
|
|
2805
|
+
const index$1 = parent.nodes.indexOf(block);
|
|
2800
2806
|
parent.nodes.splice(index$1, 1, ...block.nodes);
|
|
2801
2807
|
}
|
|
2802
2808
|
} while (stack.length > 0);
|
|
2803
2809
|
push({ type: "eos" });
|
|
2804
2810
|
return ast;
|
|
2805
2811
|
};
|
|
2806
|
-
module.exports = parse$
|
|
2812
|
+
module.exports = parse$4;
|
|
2807
2813
|
} });
|
|
2808
2814
|
|
|
2809
2815
|
//#endregion
|
|
2810
|
-
//#region ../../node_modules/.pnpm/braces@3.0.
|
|
2811
|
-
var require_braces
|
|
2812
|
-
const stringify$
|
|
2813
|
-
const compile
|
|
2814
|
-
const expand
|
|
2815
|
-
const parse$
|
|
2816
|
+
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
2817
|
+
var require_braces = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
2818
|
+
const stringify$1 = require_stringify$1();
|
|
2819
|
+
const compile = require_compile();
|
|
2820
|
+
const expand = require_expand();
|
|
2821
|
+
const parse$3 = require_parse$2();
|
|
2816
2822
|
/**
|
|
2817
2823
|
* Expand the given pattern or create a regex-compatible string.
|
|
2818
2824
|
*
|
|
@@ -2826,14 +2832,14 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2826
2832
|
* @return {String}
|
|
2827
2833
|
* @api public
|
|
2828
2834
|
*/
|
|
2829
|
-
const braces$
|
|
2835
|
+
const braces$1 = (input, options = {}) => {
|
|
2830
2836
|
let output = [];
|
|
2831
|
-
if (Array.isArray(input)) for (
|
|
2832
|
-
|
|
2837
|
+
if (Array.isArray(input)) for (const pattern$1 of input) {
|
|
2838
|
+
const result = braces$1.create(pattern$1, options);
|
|
2833
2839
|
if (Array.isArray(result)) output.push(...result);
|
|
2834
2840
|
else output.push(result);
|
|
2835
2841
|
}
|
|
2836
|
-
else output = [].concat(braces$
|
|
2842
|
+
else output = [].concat(braces$1.create(input, options));
|
|
2837
2843
|
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
2838
2844
|
return output;
|
|
2839
2845
|
};
|
|
@@ -2850,7 +2856,7 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2850
2856
|
* @return {Object} Returns an AST
|
|
2851
2857
|
* @api public
|
|
2852
2858
|
*/
|
|
2853
|
-
braces$
|
|
2859
|
+
braces$1.parse = (input, options = {}) => parse$3(input, options);
|
|
2854
2860
|
/**
|
|
2855
2861
|
* Creates a braces string from an AST, or an AST node.
|
|
2856
2862
|
*
|
|
@@ -2864,9 +2870,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2864
2870
|
* @return {Array} Returns an array of expanded values.
|
|
2865
2871
|
* @api public
|
|
2866
2872
|
*/
|
|
2867
|
-
braces$
|
|
2868
|
-
if (typeof input === "string") return stringify$
|
|
2869
|
-
return stringify$
|
|
2873
|
+
braces$1.stringify = (input, options = {}) => {
|
|
2874
|
+
if (typeof input === "string") return stringify$1(braces$1.parse(input, options), options);
|
|
2875
|
+
return stringify$1(input, options);
|
|
2870
2876
|
};
|
|
2871
2877
|
/**
|
|
2872
2878
|
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
@@ -2882,9 +2888,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2882
2888
|
* @return {Array} Returns an array of expanded values.
|
|
2883
2889
|
* @api public
|
|
2884
2890
|
*/
|
|
2885
|
-
braces$
|
|
2886
|
-
if (typeof input === "string") input = braces$
|
|
2887
|
-
return compile
|
|
2891
|
+
braces$1.compile = (input, options = {}) => {
|
|
2892
|
+
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
2893
|
+
return compile(input, options);
|
|
2888
2894
|
};
|
|
2889
2895
|
/**
|
|
2890
2896
|
* Expands a brace pattern into an array. This method is called by the
|
|
@@ -2902,9 +2908,9 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2902
2908
|
* @return {Array} Returns an array of expanded values.
|
|
2903
2909
|
* @api public
|
|
2904
2910
|
*/
|
|
2905
|
-
braces$
|
|
2906
|
-
if (typeof input === "string") input = braces$
|
|
2907
|
-
let result = expand
|
|
2911
|
+
braces$1.expand = (input, options = {}) => {
|
|
2912
|
+
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
2913
|
+
let result = expand(input, options);
|
|
2908
2914
|
if (options.noempty === true) result = result.filter(Boolean);
|
|
2909
2915
|
if (options.nodupes === true) result = [...new Set(result)];
|
|
2910
2916
|
return result;
|
|
@@ -2924,19 +2930,19 @@ var require_braces$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.2/node_
|
|
|
2924
2930
|
* @return {Array} Returns an array of expanded values.
|
|
2925
2931
|
* @api public
|
|
2926
2932
|
*/
|
|
2927
|
-
braces$
|
|
2933
|
+
braces$1.create = (input, options = {}) => {
|
|
2928
2934
|
if (input === "" || input.length < 3) return [input];
|
|
2929
|
-
return options.expand !== true ? braces$
|
|
2935
|
+
return options.expand !== true ? braces$1.compile(input, options) : braces$1.expand(input, options);
|
|
2930
2936
|
};
|
|
2931
2937
|
/**
|
|
2932
2938
|
* Expose "braces"
|
|
2933
2939
|
*/
|
|
2934
|
-
module.exports = braces$
|
|
2940
|
+
module.exports = braces$1;
|
|
2935
2941
|
} });
|
|
2936
2942
|
|
|
2937
2943
|
//#endregion
|
|
2938
2944
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
|
|
2939
|
-
var require_constants$
|
|
2945
|
+
var require_constants$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
|
|
2940
2946
|
const path$11 = require("path");
|
|
2941
2947
|
const WIN_SLASH = "\\\\/";
|
|
2942
2948
|
const WIN_NO_SLASH = `[^${WIN_SLASH}]`;
|
|
@@ -3106,10 +3112,10 @@ var require_constants$3 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
3106
3112
|
|
|
3107
3113
|
//#endregion
|
|
3108
3114
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
|
|
3109
|
-
var require_utils$
|
|
3115
|
+
var require_utils$4 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
|
|
3110
3116
|
const path$10 = require("path");
|
|
3111
3117
|
const win32 = process.platform === "win32";
|
|
3112
|
-
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$
|
|
3118
|
+
const { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants$2();
|
|
3113
3119
|
exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
|
|
3114
3120
|
exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
|
|
3115
3121
|
exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
|
|
@@ -3145,8 +3151,8 @@ var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3145
3151
|
};
|
|
3146
3152
|
exports.wrapOutput = (input, state = {}, options = {}) => {
|
|
3147
3153
|
const prepend = options.contains ? "" : "^";
|
|
3148
|
-
const append$
|
|
3149
|
-
let output = `${prepend}(?:${input})${append$
|
|
3154
|
+
const append$1 = options.contains ? "" : "$";
|
|
3155
|
+
let output = `${prepend}(?:${input})${append$1}`;
|
|
3150
3156
|
if (state.negated === true) output = `(?:^(?!${output}).*$)`;
|
|
3151
3157
|
return output;
|
|
3152
3158
|
};
|
|
@@ -3155,8 +3161,8 @@ var require_utils$5 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3155
3161
|
//#endregion
|
|
3156
3162
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
|
|
3157
3163
|
var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
|
|
3158
|
-
const utils$
|
|
3159
|
-
const { CHAR_ASTERISK: CHAR_ASTERISK$1, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA: CHAR_COMMA$
|
|
3164
|
+
const utils$42 = require_utils$4();
|
|
3165
|
+
const { CHAR_ASTERISK: CHAR_ASTERISK$1, CHAR_AT, CHAR_BACKWARD_SLASH, CHAR_COMMA: CHAR_COMMA$1, CHAR_DOT, CHAR_EXCLAMATION_MARK, CHAR_FORWARD_SLASH, CHAR_LEFT_CURLY_BRACE, CHAR_LEFT_PARENTHESES, CHAR_LEFT_SQUARE_BRACKET: CHAR_LEFT_SQUARE_BRACKET$1, CHAR_PLUS, CHAR_QUESTION_MARK, CHAR_RIGHT_CURLY_BRACE, CHAR_RIGHT_PARENTHESES, CHAR_RIGHT_SQUARE_BRACKET: CHAR_RIGHT_SQUARE_BRACKET$1 } = require_constants$2();
|
|
3160
3166
|
const isPathSeparator = (code) => {
|
|
3161
3167
|
return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
|
|
3162
3168
|
};
|
|
@@ -3200,7 +3206,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3200
3206
|
let negated = false;
|
|
3201
3207
|
let negatedExtglob = false;
|
|
3202
3208
|
let finished = false;
|
|
3203
|
-
let braces$
|
|
3209
|
+
let braces$2 = 0;
|
|
3204
3210
|
let prev;
|
|
3205
3211
|
let code;
|
|
3206
3212
|
let token = {
|
|
@@ -3220,38 +3226,38 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3220
3226
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
3221
3227
|
backslashes = token.backslashes = true;
|
|
3222
3228
|
code = advance();
|
|
3223
|
-
if (code === CHAR_LEFT_CURLY_BRACE
|
|
3229
|
+
if (code === CHAR_LEFT_CURLY_BRACE) braceEscaped = true;
|
|
3224
3230
|
continue;
|
|
3225
3231
|
}
|
|
3226
|
-
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE
|
|
3227
|
-
braces$
|
|
3232
|
+
if (braceEscaped === true || code === CHAR_LEFT_CURLY_BRACE) {
|
|
3233
|
+
braces$2++;
|
|
3228
3234
|
while (eos() !== true && (code = advance())) {
|
|
3229
3235
|
if (code === CHAR_BACKWARD_SLASH) {
|
|
3230
3236
|
backslashes = token.backslashes = true;
|
|
3231
3237
|
advance();
|
|
3232
3238
|
continue;
|
|
3233
3239
|
}
|
|
3234
|
-
if (code === CHAR_LEFT_CURLY_BRACE
|
|
3235
|
-
braces$
|
|
3240
|
+
if (code === CHAR_LEFT_CURLY_BRACE) {
|
|
3241
|
+
braces$2++;
|
|
3236
3242
|
continue;
|
|
3237
3243
|
}
|
|
3238
|
-
if (braceEscaped !== true && code === CHAR_DOT
|
|
3244
|
+
if (braceEscaped !== true && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
|
|
3239
3245
|
isBrace = token.isBrace = true;
|
|
3240
3246
|
isGlob$1 = token.isGlob = true;
|
|
3241
3247
|
finished = true;
|
|
3242
3248
|
if (scanToEnd === true) continue;
|
|
3243
3249
|
break;
|
|
3244
3250
|
}
|
|
3245
|
-
if (braceEscaped !== true && code === CHAR_COMMA$
|
|
3251
|
+
if (braceEscaped !== true && code === CHAR_COMMA$1) {
|
|
3246
3252
|
isBrace = token.isBrace = true;
|
|
3247
3253
|
isGlob$1 = token.isGlob = true;
|
|
3248
3254
|
finished = true;
|
|
3249
3255
|
if (scanToEnd === true) continue;
|
|
3250
3256
|
break;
|
|
3251
3257
|
}
|
|
3252
|
-
if (code === CHAR_RIGHT_CURLY_BRACE
|
|
3253
|
-
braces$
|
|
3254
|
-
if (braces$
|
|
3258
|
+
if (code === CHAR_RIGHT_CURLY_BRACE) {
|
|
3259
|
+
braces$2--;
|
|
3260
|
+
if (braces$2 === 0) {
|
|
3255
3261
|
braceEscaped = false;
|
|
3256
3262
|
isBrace = token.isBrace = true;
|
|
3257
3263
|
finished = true;
|
|
@@ -3271,7 +3277,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3271
3277
|
isGlob: false
|
|
3272
3278
|
};
|
|
3273
3279
|
if (finished === true) continue;
|
|
3274
|
-
if (prev === CHAR_DOT
|
|
3280
|
+
if (prev === CHAR_DOT && index === start + 1) {
|
|
3275
3281
|
start += 2;
|
|
3276
3282
|
continue;
|
|
3277
3283
|
}
|
|
@@ -3280,7 +3286,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3280
3286
|
}
|
|
3281
3287
|
if (opts.noext !== true) {
|
|
3282
3288
|
const isExtglobChar = code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK$1 || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK;
|
|
3283
|
-
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES
|
|
3289
|
+
if (isExtglobChar === true && peek() === CHAR_LEFT_PARENTHESES) {
|
|
3284
3290
|
isGlob$1 = token.isGlob = true;
|
|
3285
3291
|
isExtglob$1 = token.isExtglob = true;
|
|
3286
3292
|
finished = true;
|
|
@@ -3292,7 +3298,7 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3292
3298
|
code = advance();
|
|
3293
3299
|
continue;
|
|
3294
3300
|
}
|
|
3295
|
-
if (code === CHAR_RIGHT_PARENTHESES
|
|
3301
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
3296
3302
|
isGlob$1 = token.isGlob = true;
|
|
3297
3303
|
finished = true;
|
|
3298
3304
|
break;
|
|
@@ -3316,14 +3322,14 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3316
3322
|
if (scanToEnd === true) continue;
|
|
3317
3323
|
break;
|
|
3318
3324
|
}
|
|
3319
|
-
if (code === CHAR_LEFT_SQUARE_BRACKET$
|
|
3325
|
+
if (code === CHAR_LEFT_SQUARE_BRACKET$1) {
|
|
3320
3326
|
while (eos() !== true && (next = advance())) {
|
|
3321
3327
|
if (next === CHAR_BACKWARD_SLASH) {
|
|
3322
3328
|
backslashes = token.backslashes = true;
|
|
3323
3329
|
advance();
|
|
3324
3330
|
continue;
|
|
3325
3331
|
}
|
|
3326
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET$
|
|
3332
|
+
if (next === CHAR_RIGHT_SQUARE_BRACKET$1) {
|
|
3327
3333
|
isBracket = token.isBracket = true;
|
|
3328
3334
|
isGlob$1 = token.isGlob = true;
|
|
3329
3335
|
finished = true;
|
|
@@ -3338,16 +3344,16 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3338
3344
|
start++;
|
|
3339
3345
|
continue;
|
|
3340
3346
|
}
|
|
3341
|
-
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES
|
|
3347
|
+
if (opts.noparen !== true && code === CHAR_LEFT_PARENTHESES) {
|
|
3342
3348
|
isGlob$1 = token.isGlob = true;
|
|
3343
3349
|
if (scanToEnd === true) {
|
|
3344
3350
|
while (eos() !== true && (code = advance())) {
|
|
3345
|
-
if (code === CHAR_LEFT_PARENTHESES
|
|
3351
|
+
if (code === CHAR_LEFT_PARENTHESES) {
|
|
3346
3352
|
backslashes = token.backslashes = true;
|
|
3347
3353
|
code = advance();
|
|
3348
3354
|
continue;
|
|
3349
3355
|
}
|
|
3350
|
-
if (code === CHAR_RIGHT_PARENTHESES
|
|
3356
|
+
if (code === CHAR_RIGHT_PARENTHESES) {
|
|
3351
3357
|
finished = true;
|
|
3352
3358
|
break;
|
|
3353
3359
|
}
|
|
@@ -3385,8 +3391,8 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3385
3391
|
if (isPathSeparator(base.charCodeAt(base.length - 1))) base = base.slice(0, -1);
|
|
3386
3392
|
}
|
|
3387
3393
|
if (opts.unescape === true) {
|
|
3388
|
-
if (glob) glob = utils$
|
|
3389
|
-
if (base && backslashes === true) base = utils$
|
|
3394
|
+
if (glob) glob = utils$42.removeBackslashes(glob);
|
|
3395
|
+
if (base && backslashes === true) base = utils$42.removeBackslashes(base);
|
|
3390
3396
|
}
|
|
3391
3397
|
const state = {
|
|
3392
3398
|
prefix,
|
|
@@ -3443,13 +3449,13 @@ var require_scan = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_m
|
|
|
3443
3449
|
|
|
3444
3450
|
//#endregion
|
|
3445
3451
|
//#region ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
|
|
3446
|
-
var require_parse$
|
|
3447
|
-
const constants$2 = require_constants$
|
|
3448
|
-
const utils$
|
|
3452
|
+
var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
|
|
3453
|
+
const constants$2 = require_constants$2();
|
|
3454
|
+
const utils$41 = require_utils$4();
|
|
3449
3455
|
/**
|
|
3450
3456
|
* Constants
|
|
3451
3457
|
*/
|
|
3452
|
-
const { MAX_LENGTH
|
|
3458
|
+
const { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants$2;
|
|
3453
3459
|
/**
|
|
3454
3460
|
* Helpers
|
|
3455
3461
|
*/
|
|
@@ -3460,7 +3466,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3460
3466
|
try {
|
|
3461
3467
|
new RegExp(value);
|
|
3462
3468
|
} catch (ex) {
|
|
3463
|
-
return args.map((v$1) => utils$
|
|
3469
|
+
return args.map((v$1) => utils$41.escapeRegex(v$1)).join("..");
|
|
3464
3470
|
}
|
|
3465
3471
|
return value;
|
|
3466
3472
|
};
|
|
@@ -3476,11 +3482,11 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3476
3482
|
* @param {Object} options
|
|
3477
3483
|
* @return {Object}
|
|
3478
3484
|
*/
|
|
3479
|
-
const parse$
|
|
3485
|
+
const parse$2 = (input, options) => {
|
|
3480
3486
|
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
3481
3487
|
input = REPLACEMENTS[input] || input;
|
|
3482
3488
|
const opts = { ...options };
|
|
3483
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
3489
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
3484
3490
|
let len = input.length;
|
|
3485
3491
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
3486
3492
|
const bos = {
|
|
@@ -3490,7 +3496,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3490
3496
|
};
|
|
3491
3497
|
const tokens = [bos];
|
|
3492
3498
|
const capture = opts.capture ? "" : "?:";
|
|
3493
|
-
const win32$1 = utils$
|
|
3499
|
+
const win32$1 = utils$41.isWindows(options);
|
|
3494
3500
|
const PLATFORM_CHARS = constants$2.globChars(win32$1);
|
|
3495
3501
|
const EXTGLOB_CHARS = constants$2.extglobChars(PLATFORM_CHARS);
|
|
3496
3502
|
const { DOT_LITERAL: DOT_LITERAL$1, PLUS_LITERAL: PLUS_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOT_SLASH: NO_DOT_SLASH$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, QMARK: QMARK$1, QMARK_NO_DOT: QMARK_NO_DOT$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = PLATFORM_CHARS;
|
|
@@ -3519,10 +3525,10 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3519
3525
|
globstar: false,
|
|
3520
3526
|
tokens
|
|
3521
3527
|
};
|
|
3522
|
-
input = utils$
|
|
3528
|
+
input = utils$41.removePrefix(input, state);
|
|
3523
3529
|
len = input.length;
|
|
3524
3530
|
const extglobs = [];
|
|
3525
|
-
const braces$
|
|
3531
|
+
const braces$2 = [];
|
|
3526
3532
|
const stack = [];
|
|
3527
3533
|
let prev = bos;
|
|
3528
3534
|
let value;
|
|
@@ -3537,7 +3543,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3537
3543
|
state.consumed += value$1;
|
|
3538
3544
|
state.index += num;
|
|
3539
3545
|
};
|
|
3540
|
-
const append$
|
|
3546
|
+
const append$1 = (token) => {
|
|
3541
3547
|
state.output += token.output != null ? token.output : token.value;
|
|
3542
3548
|
consume(token.value);
|
|
3543
3549
|
};
|
|
@@ -3581,7 +3587,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3581
3587
|
}
|
|
3582
3588
|
}
|
|
3583
3589
|
if (extglobs.length && tok.type !== "paren") extglobs[extglobs.length - 1].inner += tok.value;
|
|
3584
|
-
if (tok.value || tok.output) append$
|
|
3590
|
+
if (tok.value || tok.output) append$1(tok);
|
|
3585
3591
|
if (prev && prev.type === "text" && tok.type === "text") {
|
|
3586
3592
|
prev.value += tok.value;
|
|
3587
3593
|
prev.output = (prev.output || "") + tok.value;
|
|
@@ -3623,7 +3629,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3623
3629
|
if (token.inner && token.inner.length > 1 && token.inner.includes("/")) extglobStar = globstar(opts);
|
|
3624
3630
|
if (extglobStar !== star || eos() || /^\)+$/.test(remaining())) output = token.close = `)$))${extglobStar}`;
|
|
3625
3631
|
if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
|
|
3626
|
-
const expression = parse$
|
|
3632
|
+
const expression = parse$2(rest, {
|
|
3627
3633
|
...options,
|
|
3628
3634
|
fastpaths: false
|
|
3629
3635
|
}).output;
|
|
@@ -3669,7 +3675,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3669
3675
|
state.output = input;
|
|
3670
3676
|
return state;
|
|
3671
3677
|
}
|
|
3672
|
-
state.output = utils$
|
|
3678
|
+
state.output = utils$41.wrapOutput(output, state, options);
|
|
3673
3679
|
return state;
|
|
3674
3680
|
}
|
|
3675
3681
|
/**
|
|
@@ -3738,7 +3744,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3738
3744
|
if (value === "]" && (prev.value === "[" || prev.value === "[^")) value = `\\${value}`;
|
|
3739
3745
|
if (opts.posix === true && value === "!" && prev.value === "[") value = "^";
|
|
3740
3746
|
prev.value += value;
|
|
3741
|
-
append$
|
|
3747
|
+
append$1({ value });
|
|
3742
3748
|
continue;
|
|
3743
3749
|
}
|
|
3744
3750
|
/**
|
|
@@ -3746,9 +3752,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3746
3752
|
* until we reach the closing double quote.
|
|
3747
3753
|
*/
|
|
3748
3754
|
if (state.quotes === 1 && value !== "\"") {
|
|
3749
|
-
value = utils$
|
|
3755
|
+
value = utils$41.escapeRegex(value);
|
|
3750
3756
|
prev.value += value;
|
|
3751
|
-
append$
|
|
3757
|
+
append$1({ value });
|
|
3752
3758
|
continue;
|
|
3753
3759
|
}
|
|
3754
3760
|
/**
|
|
@@ -3824,9 +3830,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3824
3830
|
const prevValue = prev.value.slice(1);
|
|
3825
3831
|
if (prev.posix !== true && prevValue[0] === "^" && !prevValue.includes("/")) value = `/${value}`;
|
|
3826
3832
|
prev.value += value;
|
|
3827
|
-
append$
|
|
3828
|
-
if (opts.literalBrackets === false || utils$
|
|
3829
|
-
const escaped$1 = utils$
|
|
3833
|
+
append$1({ value });
|
|
3834
|
+
if (opts.literalBrackets === false || utils$41.hasRegexChars(prevValue)) continue;
|
|
3835
|
+
const escaped$1 = utils$41.escapeRegex(prev.value);
|
|
3830
3836
|
state.output = state.output.slice(0, -prev.value.length);
|
|
3831
3837
|
if (opts.literalBrackets === true) {
|
|
3832
3838
|
state.output += escaped$1;
|
|
@@ -3849,12 +3855,12 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3849
3855
|
outputIndex: state.output.length,
|
|
3850
3856
|
tokensIndex: state.tokens.length
|
|
3851
3857
|
};
|
|
3852
|
-
braces$
|
|
3858
|
+
braces$2.push(open);
|
|
3853
3859
|
push(open);
|
|
3854
3860
|
continue;
|
|
3855
3861
|
}
|
|
3856
3862
|
if (value === "}") {
|
|
3857
|
-
const brace = braces$
|
|
3863
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3858
3864
|
if (opts.nobrace === true || !brace) {
|
|
3859
3865
|
push({
|
|
3860
3866
|
type: "text",
|
|
@@ -3889,7 +3895,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3889
3895
|
output
|
|
3890
3896
|
});
|
|
3891
3897
|
decrement("braces");
|
|
3892
|
-
braces$
|
|
3898
|
+
braces$2.pop();
|
|
3893
3899
|
continue;
|
|
3894
3900
|
}
|
|
3895
3901
|
/**
|
|
@@ -3908,7 +3914,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3908
3914
|
*/
|
|
3909
3915
|
if (value === ",") {
|
|
3910
3916
|
let output = value;
|
|
3911
|
-
const brace = braces$
|
|
3917
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3912
3918
|
if (brace && stack[stack.length - 1] === "braces") {
|
|
3913
3919
|
brace.comma = true;
|
|
3914
3920
|
output = "|";
|
|
@@ -3945,7 +3951,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3945
3951
|
if (value === ".") {
|
|
3946
3952
|
if (state.braces > 0 && prev.type === "dot") {
|
|
3947
3953
|
if (prev.value === ".") prev.output = DOT_LITERAL$1;
|
|
3948
|
-
const brace = braces$
|
|
3954
|
+
const brace = braces$2[braces$2.length - 1];
|
|
3949
3955
|
prev.type = "dots";
|
|
3950
3956
|
prev.output += value;
|
|
3951
3957
|
prev.value += value;
|
|
@@ -3979,7 +3985,7 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
3979
3985
|
if (prev && prev.type === "paren") {
|
|
3980
3986
|
const next = peek();
|
|
3981
3987
|
let output = value;
|
|
3982
|
-
if (next === "<" && !utils$
|
|
3988
|
+
if (next === "<" && !utils$41.supportsLookbehinds()) throw new Error("Node.js v10 or higher is required for regex lookbehinds");
|
|
3983
3989
|
if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) output = `\\${value}`;
|
|
3984
3990
|
push({
|
|
3985
3991
|
type: "text",
|
|
@@ -4229,17 +4235,17 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4229
4235
|
}
|
|
4230
4236
|
while (state.brackets > 0) {
|
|
4231
4237
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
|
|
4232
|
-
state.output = utils$
|
|
4238
|
+
state.output = utils$41.escapeLast(state.output, "[");
|
|
4233
4239
|
decrement("brackets");
|
|
4234
4240
|
}
|
|
4235
4241
|
while (state.parens > 0) {
|
|
4236
4242
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
|
|
4237
|
-
state.output = utils$
|
|
4243
|
+
state.output = utils$41.escapeLast(state.output, "(");
|
|
4238
4244
|
decrement("parens");
|
|
4239
4245
|
}
|
|
4240
4246
|
while (state.braces > 0) {
|
|
4241
4247
|
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
|
|
4242
|
-
state.output = utils$
|
|
4248
|
+
state.output = utils$41.escapeLast(state.output, "{");
|
|
4243
4249
|
decrement("braces");
|
|
4244
4250
|
}
|
|
4245
4251
|
if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) push({
|
|
@@ -4261,13 +4267,13 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4261
4267
|
* This can significantly speed up processing and has very little downside
|
|
4262
4268
|
* impact when none of the fast paths match.
|
|
4263
4269
|
*/
|
|
4264
|
-
parse$
|
|
4270
|
+
parse$2.fastpaths = (input, options) => {
|
|
4265
4271
|
const opts = { ...options };
|
|
4266
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH
|
|
4272
|
+
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
4267
4273
|
const len = input.length;
|
|
4268
4274
|
if (len > max) throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
|
|
4269
4275
|
input = REPLACEMENTS[input] || input;
|
|
4270
|
-
const win32$1 = utils$
|
|
4276
|
+
const win32$1 = utils$41.isWindows(options);
|
|
4271
4277
|
const { DOT_LITERAL: DOT_LITERAL$1, SLASH_LITERAL: SLASH_LITERAL$1, ONE_CHAR: ONE_CHAR$1, DOTS_SLASH: DOTS_SLASH$1, NO_DOT: NO_DOT$1, NO_DOTS: NO_DOTS$1, NO_DOTS_SLASH: NO_DOTS_SLASH$1, STAR: STAR$1, START_ANCHOR: START_ANCHOR$1 } = constants$2.globChars(win32$1);
|
|
4272
4278
|
const nodot = opts.dot ? NO_DOTS$1 : NO_DOT$1;
|
|
4273
4279
|
const slashDot = opts.dot ? NO_DOTS_SLASH$1 : NO_DOT$1;
|
|
@@ -4301,12 +4307,12 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4301
4307
|
}
|
|
4302
4308
|
}
|
|
4303
4309
|
};
|
|
4304
|
-
const output = utils$
|
|
4310
|
+
const output = utils$41.removePrefix(input, state);
|
|
4305
4311
|
let source = create(output);
|
|
4306
4312
|
if (source && opts.strictSlashes !== true) source += `${SLASH_LITERAL$1}?`;
|
|
4307
4313
|
return source;
|
|
4308
4314
|
};
|
|
4309
|
-
module.exports = parse$
|
|
4315
|
+
module.exports = parse$2;
|
|
4310
4316
|
} });
|
|
4311
4317
|
|
|
4312
4318
|
//#endregion
|
|
@@ -4314,9 +4320,9 @@ var require_parse$2 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/nod
|
|
|
4314
4320
|
var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
|
|
4315
4321
|
const path$9 = require("path");
|
|
4316
4322
|
const scan = require_scan();
|
|
4317
|
-
const parse$
|
|
4318
|
-
const utils$
|
|
4319
|
-
const constants$1 = require_constants$
|
|
4323
|
+
const parse$1 = require_parse$1();
|
|
4324
|
+
const utils$40 = require_utils$4();
|
|
4325
|
+
const constants$1 = require_constants$2();
|
|
4320
4326
|
const isObject$3 = (val) => val && typeof val === "object" && !Array.isArray(val);
|
|
4321
4327
|
/**
|
|
4322
4328
|
* Creates a matcher function from one or more glob patterns. The
|
|
@@ -4339,9 +4345,9 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4339
4345
|
* @return {Function=} Returns a matcher function.
|
|
4340
4346
|
* @api public
|
|
4341
4347
|
*/
|
|
4342
|
-
const picomatch$
|
|
4348
|
+
const picomatch$1 = (glob, options, returnState = false) => {
|
|
4343
4349
|
if (Array.isArray(glob)) {
|
|
4344
|
-
const fns = glob.map((input) => picomatch$
|
|
4350
|
+
const fns = glob.map((input) => picomatch$1(input, options, returnState));
|
|
4345
4351
|
const arrayMatcher = (str) => {
|
|
4346
4352
|
for (const isMatch of fns) {
|
|
4347
4353
|
const state$1 = isMatch(str);
|
|
@@ -4354,8 +4360,8 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4354
4360
|
const isState = isObject$3(glob) && glob.tokens && glob.input;
|
|
4355
4361
|
if (glob === "" || typeof glob !== "string" && !isState) throw new TypeError("Expected pattern to be a non-empty string");
|
|
4356
4362
|
const opts = options || {};
|
|
4357
|
-
const posix = utils$
|
|
4358
|
-
const regex$1 = isState ? picomatch$
|
|
4363
|
+
const posix = utils$40.isWindows(options);
|
|
4364
|
+
const regex$1 = isState ? picomatch$1.compileRe(glob, options) : picomatch$1.makeRe(glob, options, false, true);
|
|
4359
4365
|
const state = regex$1.state;
|
|
4360
4366
|
delete regex$1.state;
|
|
4361
4367
|
let isIgnored = () => false;
|
|
@@ -4366,10 +4372,10 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4366
4372
|
onMatch: null,
|
|
4367
4373
|
onResult: null
|
|
4368
4374
|
};
|
|
4369
|
-
isIgnored = picomatch$
|
|
4375
|
+
isIgnored = picomatch$1(opts.ignore, ignoreOpts, returnState);
|
|
4370
4376
|
}
|
|
4371
4377
|
const matcher = (input, returnObject = false) => {
|
|
4372
|
-
const { isMatch, match, output } = picomatch$
|
|
4378
|
+
const { isMatch, match, output } = picomatch$1.test(input, regex$1, options, {
|
|
4373
4379
|
glob,
|
|
4374
4380
|
posix
|
|
4375
4381
|
});
|
|
@@ -4415,21 +4421,21 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4415
4421
|
* @return {Object} Returns an object with matching info.
|
|
4416
4422
|
* @api public
|
|
4417
4423
|
*/
|
|
4418
|
-
picomatch$
|
|
4424
|
+
picomatch$1.test = (input, regex$1, options, { glob, posix } = {}) => {
|
|
4419
4425
|
if (typeof input !== "string") throw new TypeError("Expected input to be a string");
|
|
4420
4426
|
if (input === "") return {
|
|
4421
4427
|
isMatch: false,
|
|
4422
4428
|
output: ""
|
|
4423
4429
|
};
|
|
4424
4430
|
const opts = options || {};
|
|
4425
|
-
const format = opts.format || (posix ? utils$
|
|
4431
|
+
const format = opts.format || (posix ? utils$40.toPosixSlashes : null);
|
|
4426
4432
|
let match = input === glob;
|
|
4427
4433
|
let output = match && format ? format(input) : input;
|
|
4428
4434
|
if (match === false) {
|
|
4429
4435
|
output = format ? format(input) : input;
|
|
4430
4436
|
match = output === glob;
|
|
4431
4437
|
}
|
|
4432
|
-
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$
|
|
4438
|
+
if (match === false || opts.capture === true) if (opts.matchBase === true || opts.basename === true) match = picomatch$1.matchBase(input, regex$1, options, posix);
|
|
4433
4439
|
else match = regex$1.exec(output);
|
|
4434
4440
|
return {
|
|
4435
4441
|
isMatch: Boolean(match),
|
|
@@ -4450,8 +4456,8 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4450
4456
|
* @return {Boolean}
|
|
4451
4457
|
* @api public
|
|
4452
4458
|
*/
|
|
4453
|
-
picomatch$
|
|
4454
|
-
const regex$1 = glob instanceof RegExp ? glob : picomatch$
|
|
4459
|
+
picomatch$1.matchBase = (input, glob, options, posix = utils$40.isWindows(options)) => {
|
|
4460
|
+
const regex$1 = glob instanceof RegExp ? glob : picomatch$1.makeRe(glob, options);
|
|
4455
4461
|
return regex$1.test(path$9.basename(input));
|
|
4456
4462
|
};
|
|
4457
4463
|
/**
|
|
@@ -4470,7 +4476,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4470
4476
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4471
4477
|
* @api public
|
|
4472
4478
|
*/
|
|
4473
|
-
picomatch$
|
|
4479
|
+
picomatch$1.isMatch = (str, patterns, options) => picomatch$1(patterns, options)(str);
|
|
4474
4480
|
/**
|
|
4475
4481
|
* Parse a glob pattern to create the source string for a regular
|
|
4476
4482
|
* expression.
|
|
@@ -4484,9 +4490,9 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4484
4490
|
* @return {Object} Returns an object with useful properties and output to be used as a regex source string.
|
|
4485
4491
|
* @api public
|
|
4486
4492
|
*/
|
|
4487
|
-
picomatch$
|
|
4488
|
-
if (Array.isArray(pattern$1)) return pattern$1.map((p$1) => picomatch$
|
|
4489
|
-
return parse$
|
|
4493
|
+
picomatch$1.parse = (pattern$1, options) => {
|
|
4494
|
+
if (Array.isArray(pattern$1)) return pattern$1.map((p$1) => picomatch$1.parse(p$1, options));
|
|
4495
|
+
return parse$1(pattern$1, {
|
|
4490
4496
|
...options,
|
|
4491
4497
|
fastpaths: false
|
|
4492
4498
|
});
|
|
@@ -4517,7 +4523,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4517
4523
|
* @return {Object} Returns an object with
|
|
4518
4524
|
* @api public
|
|
4519
4525
|
*/
|
|
4520
|
-
picomatch$
|
|
4526
|
+
picomatch$1.scan = (input, options) => scan(input, options);
|
|
4521
4527
|
/**
|
|
4522
4528
|
* Compile a regular expression from the `state` object returned by the
|
|
4523
4529
|
* [parse()](#parse) method.
|
|
@@ -4529,14 +4535,14 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4529
4535
|
* @return {RegExp}
|
|
4530
4536
|
* @api public
|
|
4531
4537
|
*/
|
|
4532
|
-
picomatch$
|
|
4538
|
+
picomatch$1.compileRe = (state, options, returnOutput = false, returnState = false) => {
|
|
4533
4539
|
if (returnOutput === true) return state.output;
|
|
4534
4540
|
const opts = options || {};
|
|
4535
4541
|
const prepend = opts.contains ? "" : "^";
|
|
4536
|
-
const append$
|
|
4537
|
-
let source = `${prepend}(?:${state.output})${append$
|
|
4542
|
+
const append$1 = opts.contains ? "" : "$";
|
|
4543
|
+
let source = `${prepend}(?:${state.output})${append$1}`;
|
|
4538
4544
|
if (state && state.negated === true) source = `^(?!${source}).*$`;
|
|
4539
|
-
const regex$1 = picomatch$
|
|
4545
|
+
const regex$1 = picomatch$1.toRegex(source, options);
|
|
4540
4546
|
if (returnState === true) regex$1.state = state;
|
|
4541
4547
|
return regex$1;
|
|
4542
4548
|
};
|
|
@@ -4558,15 +4564,15 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4558
4564
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
4559
4565
|
* @api public
|
|
4560
4566
|
*/
|
|
4561
|
-
picomatch$
|
|
4567
|
+
picomatch$1.makeRe = (input, options = {}, returnOutput = false, returnState = false) => {
|
|
4562
4568
|
if (!input || typeof input !== "string") throw new TypeError("Expected a non-empty string");
|
|
4563
4569
|
let parsed = {
|
|
4564
4570
|
negated: false,
|
|
4565
4571
|
fastpaths: true
|
|
4566
4572
|
};
|
|
4567
|
-
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse$
|
|
4568
|
-
if (!parsed.output) parsed = parse$
|
|
4569
|
-
return picomatch$
|
|
4573
|
+
if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) parsed.output = parse$1.fastpaths(input, options);
|
|
4574
|
+
if (!parsed.output) parsed = parse$1(input, options);
|
|
4575
|
+
return picomatch$1.compileRe(parsed, options, returnOutput, returnState);
|
|
4570
4576
|
};
|
|
4571
4577
|
/**
|
|
4572
4578
|
* Create a regular expression from the given regex source string.
|
|
@@ -4584,7 +4590,7 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4584
4590
|
* @return {RegExp}
|
|
4585
4591
|
* @api public
|
|
4586
4592
|
*/
|
|
4587
|
-
picomatch$
|
|
4593
|
+
picomatch$1.toRegex = (source, options) => {
|
|
4588
4594
|
try {
|
|
4589
4595
|
const opts = options || {};
|
|
4590
4596
|
return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
|
|
@@ -4597,11 +4603,11 @@ var require_picomatch$1 = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1
|
|
|
4597
4603
|
* Picomatch constants.
|
|
4598
4604
|
* @return {Object}
|
|
4599
4605
|
*/
|
|
4600
|
-
picomatch$
|
|
4606
|
+
picomatch$1.constants = constants$1;
|
|
4601
4607
|
/**
|
|
4602
4608
|
* Expose "picomatch"
|
|
4603
4609
|
*/
|
|
4604
|
-
module.exports = picomatch$
|
|
4610
|
+
module.exports = picomatch$1;
|
|
4605
4611
|
} });
|
|
4606
4612
|
|
|
4607
4613
|
//#endregion
|
|
@@ -4611,13 +4617,17 @@ var require_picomatch = __commonJS({ "../../node_modules/.pnpm/picomatch@2.3.1/n
|
|
|
4611
4617
|
} });
|
|
4612
4618
|
|
|
4613
4619
|
//#endregion
|
|
4614
|
-
//#region ../../node_modules/.pnpm/micromatch@4.0.
|
|
4615
|
-
var require_micromatch
|
|
4616
|
-
const util$
|
|
4617
|
-
const braces
|
|
4618
|
-
const picomatch
|
|
4619
|
-
const utils$
|
|
4620
|
-
const isEmptyString
|
|
4620
|
+
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
4621
|
+
var require_micromatch = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
4622
|
+
const util$7 = require("util");
|
|
4623
|
+
const braces = require_braces();
|
|
4624
|
+
const picomatch = require_picomatch();
|
|
4625
|
+
const utils$39 = require_utils$4();
|
|
4626
|
+
const isEmptyString = (v$1) => v$1 === "" || v$1 === "./";
|
|
4627
|
+
const hasBraces = (v$1) => {
|
|
4628
|
+
const index = v$1.indexOf("{");
|
|
4629
|
+
return index > -1 && v$1.indexOf("}", index) > -1;
|
|
4630
|
+
};
|
|
4621
4631
|
/**
|
|
4622
4632
|
* Returns an array of strings that match one or more glob patterns.
|
|
4623
4633
|
*
|
|
@@ -4635,7 +4645,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4635
4645
|
* @summary false
|
|
4636
4646
|
* @api public
|
|
4637
4647
|
*/
|
|
4638
|
-
const micromatch$
|
|
4648
|
+
const micromatch$1 = (list, patterns, options) => {
|
|
4639
4649
|
patterns = [].concat(patterns);
|
|
4640
4650
|
list = [].concat(list);
|
|
4641
4651
|
let omit = /* @__PURE__ */ new Set();
|
|
@@ -4647,7 +4657,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4647
4657
|
if (options && options.onResult) options.onResult(state);
|
|
4648
4658
|
};
|
|
4649
4659
|
for (let i$3 = 0; i$3 < patterns.length; i$3++) {
|
|
4650
|
-
let isMatch = picomatch
|
|
4660
|
+
let isMatch = picomatch(String(patterns[i$3]), {
|
|
4651
4661
|
...options,
|
|
4652
4662
|
onResult
|
|
4653
4663
|
}, true);
|
|
@@ -4675,7 +4685,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4675
4685
|
/**
|
|
4676
4686
|
* Backwards compatibility
|
|
4677
4687
|
*/
|
|
4678
|
-
micromatch$
|
|
4688
|
+
micromatch$1.match = micromatch$1;
|
|
4679
4689
|
/**
|
|
4680
4690
|
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
4681
4691
|
* The returned function takes a string to match as its only argument and returns
|
|
@@ -4694,7 +4704,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4694
4704
|
* @return {Function} Returns a matcher function.
|
|
4695
4705
|
* @api public
|
|
4696
4706
|
*/
|
|
4697
|
-
micromatch$
|
|
4707
|
+
micromatch$1.matcher = (pattern$1, options) => picomatch(pattern$1, options);
|
|
4698
4708
|
/**
|
|
4699
4709
|
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
4700
4710
|
*
|
|
@@ -4711,11 +4721,11 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4711
4721
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4712
4722
|
* @api public
|
|
4713
4723
|
*/
|
|
4714
|
-
micromatch$
|
|
4724
|
+
micromatch$1.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
4715
4725
|
/**
|
|
4716
4726
|
* Backwards compatibility
|
|
4717
4727
|
*/
|
|
4718
|
-
micromatch$
|
|
4728
|
+
micromatch$1.any = micromatch$1.isMatch;
|
|
4719
4729
|
/**
|
|
4720
4730
|
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
4721
4731
|
*
|
|
@@ -4732,7 +4742,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4732
4742
|
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
4733
4743
|
* @api public
|
|
4734
4744
|
*/
|
|
4735
|
-
micromatch$
|
|
4745
|
+
micromatch$1.not = (list, patterns, options = {}) => {
|
|
4736
4746
|
patterns = [].concat(patterns).map(String);
|
|
4737
4747
|
let result = /* @__PURE__ */ new Set();
|
|
4738
4748
|
let items = [];
|
|
@@ -4740,7 +4750,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4740
4750
|
if (options.onResult) options.onResult(state);
|
|
4741
4751
|
items.push(state.output);
|
|
4742
4752
|
};
|
|
4743
|
-
let matches = new Set(micromatch$
|
|
4753
|
+
let matches = new Set(micromatch$1(list, patterns, {
|
|
4744
4754
|
...options,
|
|
4745
4755
|
onResult
|
|
4746
4756
|
}));
|
|
@@ -4766,14 +4776,14 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4766
4776
|
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
4767
4777
|
* @api public
|
|
4768
4778
|
*/
|
|
4769
|
-
micromatch$
|
|
4770
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$
|
|
4771
|
-
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$
|
|
4779
|
+
micromatch$1.contains = (str, pattern$1, options) => {
|
|
4780
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
4781
|
+
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch$1.contains(str, p$1, options));
|
|
4772
4782
|
if (typeof pattern$1 === "string") {
|
|
4773
|
-
if (isEmptyString
|
|
4783
|
+
if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
|
|
4774
4784
|
if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
|
|
4775
4785
|
}
|
|
4776
|
-
return micromatch$
|
|
4786
|
+
return micromatch$1.isMatch(str, pattern$1, {
|
|
4777
4787
|
...options,
|
|
4778
4788
|
contains: true
|
|
4779
4789
|
});
|
|
@@ -4797,9 +4807,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4797
4807
|
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
4798
4808
|
* @api public
|
|
4799
4809
|
*/
|
|
4800
|
-
micromatch$
|
|
4801
|
-
if (!utils$
|
|
4802
|
-
let keys$1 = micromatch$
|
|
4810
|
+
micromatch$1.matchKeys = (obj, patterns, options) => {
|
|
4811
|
+
if (!utils$39.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
4812
|
+
let keys$1 = micromatch$1(Object.keys(obj), patterns, options);
|
|
4803
4813
|
let res = {};
|
|
4804
4814
|
for (let key of keys$1) res[key] = obj[key];
|
|
4805
4815
|
return res;
|
|
@@ -4822,10 +4832,10 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4822
4832
|
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
4823
4833
|
* @api public
|
|
4824
4834
|
*/
|
|
4825
|
-
micromatch$
|
|
4835
|
+
micromatch$1.some = (list, patterns, options) => {
|
|
4826
4836
|
let items = [].concat(list);
|
|
4827
4837
|
for (let pattern$1 of [].concat(patterns)) {
|
|
4828
|
-
let isMatch = picomatch
|
|
4838
|
+
let isMatch = picomatch(String(pattern$1), options);
|
|
4829
4839
|
if (items.some((item) => isMatch(item))) return true;
|
|
4830
4840
|
}
|
|
4831
4841
|
return false;
|
|
@@ -4853,10 +4863,10 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4853
4863
|
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
4854
4864
|
* @api public
|
|
4855
4865
|
*/
|
|
4856
|
-
micromatch$
|
|
4866
|
+
micromatch$1.every = (list, patterns, options) => {
|
|
4857
4867
|
let items = [].concat(list);
|
|
4858
4868
|
for (let pattern$1 of [].concat(patterns)) {
|
|
4859
|
-
let isMatch = picomatch
|
|
4869
|
+
let isMatch = picomatch(String(pattern$1), options);
|
|
4860
4870
|
if (!items.every((item) => isMatch(item))) return false;
|
|
4861
4871
|
}
|
|
4862
4872
|
return true;
|
|
@@ -4887,9 +4897,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4887
4897
|
* @return {Boolean} Returns true if any patterns match `str`
|
|
4888
4898
|
* @api public
|
|
4889
4899
|
*/
|
|
4890
|
-
micromatch$
|
|
4891
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$
|
|
4892
|
-
return [].concat(patterns).every((p$1) => picomatch
|
|
4900
|
+
micromatch$1.all = (str, patterns, options) => {
|
|
4901
|
+
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
4902
|
+
return [].concat(patterns).every((p$1) => picomatch(p$1, options)(str));
|
|
4893
4903
|
};
|
|
4894
4904
|
/**
|
|
4895
4905
|
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
@@ -4909,13 +4919,13 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4909
4919
|
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
4910
4920
|
* @api public
|
|
4911
4921
|
*/
|
|
4912
|
-
micromatch$
|
|
4913
|
-
let posix = utils$
|
|
4914
|
-
let regex$1 = picomatch
|
|
4922
|
+
micromatch$1.capture = (glob, input, options) => {
|
|
4923
|
+
let posix = utils$39.isWindows(options);
|
|
4924
|
+
let regex$1 = picomatch.makeRe(String(glob), {
|
|
4915
4925
|
...options,
|
|
4916
4926
|
capture: true
|
|
4917
4927
|
});
|
|
4918
|
-
let match = regex$1.exec(posix ? utils$
|
|
4928
|
+
let match = regex$1.exec(posix ? utils$39.toPosixSlashes(input) : input);
|
|
4919
4929
|
if (match) return match.slice(1).map((v$1) => v$1 === void 0 ? "" : v$1);
|
|
4920
4930
|
};
|
|
4921
4931
|
/**
|
|
@@ -4933,7 +4943,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4933
4943
|
* @return {RegExp} Returns a regex created from the given pattern.
|
|
4934
4944
|
* @api public
|
|
4935
4945
|
*/
|
|
4936
|
-
micromatch$
|
|
4946
|
+
micromatch$1.makeRe = (...args) => picomatch.makeRe(...args);
|
|
4937
4947
|
/**
|
|
4938
4948
|
* Scan a glob pattern to separate the pattern into segments. Used
|
|
4939
4949
|
* by the [split](#split) method.
|
|
@@ -4947,7 +4957,7 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4947
4957
|
* @return {Object} Returns an object with
|
|
4948
4958
|
* @api public
|
|
4949
4959
|
*/
|
|
4950
|
-
micromatch$
|
|
4960
|
+
micromatch$1.scan = (...args) => picomatch.scan(...args);
|
|
4951
4961
|
/**
|
|
4952
4962
|
* Parse a glob pattern to create the source string for a regular
|
|
4953
4963
|
* expression.
|
|
@@ -4961,9 +4971,9 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4961
4971
|
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
4962
4972
|
* @api public
|
|
4963
4973
|
*/
|
|
4964
|
-
micromatch$
|
|
4974
|
+
micromatch$1.parse = (patterns, options) => {
|
|
4965
4975
|
let res = [];
|
|
4966
|
-
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces
|
|
4976
|
+
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces(String(pattern$1), options)) res.push(picomatch.parse(str, options));
|
|
4967
4977
|
return res;
|
|
4968
4978
|
};
|
|
4969
4979
|
/**
|
|
@@ -4982,17 +4992,17 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
4982
4992
|
* @return {Array}
|
|
4983
4993
|
* @api public
|
|
4984
4994
|
*/
|
|
4985
|
-
micromatch$
|
|
4995
|
+
micromatch$1.braces = (pattern$1, options) => {
|
|
4986
4996
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
4987
|
-
if (options && options.nobrace === true ||
|
|
4988
|
-
return braces
|
|
4997
|
+
if (options && options.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
|
|
4998
|
+
return braces(pattern$1, options);
|
|
4989
4999
|
};
|
|
4990
5000
|
/**
|
|
4991
5001
|
* Expand braces
|
|
4992
5002
|
*/
|
|
4993
|
-
micromatch$
|
|
5003
|
+
micromatch$1.braceExpand = (pattern$1, options) => {
|
|
4994
5004
|
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
4995
|
-
return micromatch$
|
|
5005
|
+
return micromatch$1.braces(pattern$1, {
|
|
4996
5006
|
...options,
|
|
4997
5007
|
expand: true
|
|
4998
5008
|
});
|
|
@@ -5000,17 +5010,18 @@ var require_micromatch$1 = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0
|
|
|
5000
5010
|
/**
|
|
5001
5011
|
* Expose micromatch
|
|
5002
5012
|
*/
|
|
5003
|
-
|
|
5013
|
+
micromatch$1.hasBraces = hasBraces;
|
|
5014
|
+
module.exports = micromatch$1;
|
|
5004
5015
|
} });
|
|
5005
5016
|
|
|
5006
5017
|
//#endregion
|
|
5007
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5008
|
-
var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5018
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
5019
|
+
var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
5009
5020
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5010
|
-
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;
|
|
5021
|
+
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;
|
|
5011
5022
|
const path$8 = require("path");
|
|
5012
5023
|
const globParent = require_glob_parent();
|
|
5013
|
-
const micromatch
|
|
5024
|
+
const micromatch = require_micromatch();
|
|
5014
5025
|
const GLOBSTAR = "**";
|
|
5015
5026
|
const ESCAPE_SYMBOL = "\\";
|
|
5016
5027
|
const COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/;
|
|
@@ -5127,7 +5138,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5127
5138
|
}
|
|
5128
5139
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
5129
5140
|
function expandBraceExpansion(pattern$1) {
|
|
5130
|
-
const patterns = micromatch
|
|
5141
|
+
const patterns = micromatch.braces(pattern$1, {
|
|
5131
5142
|
expand: true,
|
|
5132
5143
|
nodupes: true,
|
|
5133
5144
|
keepEscaping: true
|
|
@@ -5144,7 +5155,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5144
5155
|
}
|
|
5145
5156
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
5146
5157
|
function getPatternParts(pattern$1, options) {
|
|
5147
|
-
let { parts } = micromatch
|
|
5158
|
+
let { parts } = micromatch.scan(pattern$1, Object.assign(Object.assign({}, options), { parts: true }));
|
|
5148
5159
|
/**
|
|
5149
5160
|
* The scan method returns an empty array in some cases.
|
|
5150
5161
|
* See micromatch/picomatch#58 for more details.
|
|
@@ -5162,7 +5173,7 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5162
5173
|
}
|
|
5163
5174
|
exports.getPatternParts = getPatternParts;
|
|
5164
5175
|
function makeRe(pattern$1, options) {
|
|
5165
|
-
return micromatch
|
|
5176
|
+
return micromatch.makeRe(pattern$1, options);
|
|
5166
5177
|
}
|
|
5167
5178
|
exports.makeRe = makeRe;
|
|
5168
5179
|
function convertPatternsToRe(patterns, options) {
|
|
@@ -5181,6 +5192,18 @@ var require_pattern = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5181
5192
|
return pattern$1.replace(DOUBLE_SLASH_RE, "/");
|
|
5182
5193
|
}
|
|
5183
5194
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
5195
|
+
function partitionAbsoluteAndRelative(patterns) {
|
|
5196
|
+
const absolute = [];
|
|
5197
|
+
const relative = [];
|
|
5198
|
+
for (const pattern$1 of patterns) if (isAbsolute(pattern$1)) absolute.push(pattern$1);
|
|
5199
|
+
else relative.push(pattern$1);
|
|
5200
|
+
return [absolute, relative];
|
|
5201
|
+
}
|
|
5202
|
+
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
5203
|
+
function isAbsolute(pattern$1) {
|
|
5204
|
+
return path$8.isAbsolute(pattern$1);
|
|
5205
|
+
}
|
|
5206
|
+
exports.isAbsolute = isAbsolute;
|
|
5184
5207
|
} });
|
|
5185
5208
|
|
|
5186
5209
|
//#endregion
|
|
@@ -5266,8 +5289,8 @@ var require_merge2 = __commonJS({ "../../node_modules/.pnpm/merge2@1.4.1/node_mo
|
|
|
5266
5289
|
} });
|
|
5267
5290
|
|
|
5268
5291
|
//#endregion
|
|
5269
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5270
|
-
var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5292
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
5293
|
+
var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
5271
5294
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5272
5295
|
exports.merge = void 0;
|
|
5273
5296
|
const merge2 = require_merge2();
|
|
@@ -5287,8 +5310,8 @@ var require_stream$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
5287
5310
|
} });
|
|
5288
5311
|
|
|
5289
5312
|
//#endregion
|
|
5290
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5291
|
-
var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5313
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
5314
|
+
var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
5292
5315
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5293
5316
|
exports.isEmpty = exports.isString = void 0;
|
|
5294
5317
|
function isString$1(input) {
|
|
@@ -5302,8 +5325,8 @@ var require_string = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
5302
5325
|
} });
|
|
5303
5326
|
|
|
5304
5327
|
//#endregion
|
|
5305
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5306
|
-
var require_utils$
|
|
5328
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
5329
|
+
var require_utils$3 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
5307
5330
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5308
5331
|
exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
|
|
5309
5332
|
const array = require_array();
|
|
@@ -5323,18 +5346,18 @@ var require_utils$4 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
5323
5346
|
} });
|
|
5324
5347
|
|
|
5325
5348
|
//#endregion
|
|
5326
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
5327
|
-
var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
5349
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
5350
|
+
var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
5328
5351
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5329
5352
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
5330
|
-
const utils$
|
|
5353
|
+
const utils$38 = require_utils$3();
|
|
5331
5354
|
function generate$1(input, settings) {
|
|
5332
5355
|
const patterns = processPatterns(input, settings);
|
|
5333
5356
|
const ignore = processPatterns(settings.ignore, settings);
|
|
5334
5357
|
const positivePatterns = getPositivePatterns(patterns);
|
|
5335
5358
|
const negativePatterns = getNegativePatternsAsPositive(patterns, ignore);
|
|
5336
|
-
const staticPatterns = positivePatterns.filter((pattern$1) => utils$
|
|
5337
|
-
const dynamicPatterns = positivePatterns.filter((pattern$1) => utils$
|
|
5359
|
+
const staticPatterns = positivePatterns.filter((pattern$1) => utils$38.pattern.isStaticPattern(pattern$1, settings));
|
|
5360
|
+
const dynamicPatterns = positivePatterns.filter((pattern$1) => utils$38.pattern.isDynamicPattern(pattern$1, settings));
|
|
5338
5361
|
const staticTasks = convertPatternsToTasks(staticPatterns, negativePatterns, false);
|
|
5339
5362
|
const dynamicTasks = convertPatternsToTasks(dynamicPatterns, negativePatterns, true);
|
|
5340
5363
|
return staticTasks.concat(dynamicTasks);
|
|
@@ -5349,7 +5372,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5349
5372
|
* To solve this problem, we expand all patterns containing brace expansion. This can lead to a slight slowdown
|
|
5350
5373
|
* in matching in the case of a large set of patterns after expansion.
|
|
5351
5374
|
*/
|
|
5352
|
-
if (settings.braceExpansion) patterns = utils$
|
|
5375
|
+
if (settings.braceExpansion) patterns = utils$38.pattern.expandPatternsWithBraceExpansion(patterns);
|
|
5353
5376
|
/**
|
|
5354
5377
|
* If the `baseNameMatch` option is enabled, we must add globstar to patterns, so that they can be used
|
|
5355
5378
|
* at any nesting level.
|
|
@@ -5362,7 +5385,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5362
5385
|
/**
|
|
5363
5386
|
* This method also removes duplicate slashes that may have been in the pattern or formed as a result of expansion.
|
|
5364
5387
|
*/
|
|
5365
|
-
return patterns.map((pattern$1) => utils$
|
|
5388
|
+
return patterns.map((pattern$1) => utils$38.pattern.removeDuplicateSlashes(pattern$1));
|
|
5366
5389
|
}
|
|
5367
5390
|
/**
|
|
5368
5391
|
* Returns tasks grouped by basic pattern directories.
|
|
@@ -5372,8 +5395,8 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5372
5395
|
*/
|
|
5373
5396
|
function convertPatternsToTasks(positive, negative, dynamic) {
|
|
5374
5397
|
const tasks = [];
|
|
5375
|
-
const patternsOutsideCurrentDirectory = utils$
|
|
5376
|
-
const patternsInsideCurrentDirectory = utils$
|
|
5398
|
+
const patternsOutsideCurrentDirectory = utils$38.pattern.getPatternsOutsideCurrentDirectory(positive);
|
|
5399
|
+
const patternsInsideCurrentDirectory = utils$38.pattern.getPatternsInsideCurrentDirectory(positive);
|
|
5377
5400
|
const outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory);
|
|
5378
5401
|
const insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
|
|
5379
5402
|
tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic));
|
|
@@ -5383,19 +5406,19 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5383
5406
|
}
|
|
5384
5407
|
exports.convertPatternsToTasks = convertPatternsToTasks;
|
|
5385
5408
|
function getPositivePatterns(patterns) {
|
|
5386
|
-
return utils$
|
|
5409
|
+
return utils$38.pattern.getPositivePatterns(patterns);
|
|
5387
5410
|
}
|
|
5388
5411
|
exports.getPositivePatterns = getPositivePatterns;
|
|
5389
5412
|
function getNegativePatternsAsPositive(patterns, ignore) {
|
|
5390
|
-
const negative = utils$
|
|
5391
|
-
const positive = negative.map(utils$
|
|
5413
|
+
const negative = utils$38.pattern.getNegativePatterns(patterns).concat(ignore);
|
|
5414
|
+
const positive = negative.map(utils$38.pattern.convertToPositivePattern);
|
|
5392
5415
|
return positive;
|
|
5393
5416
|
}
|
|
5394
5417
|
exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
|
|
5395
5418
|
function groupPatternsByBaseDirectory(patterns) {
|
|
5396
5419
|
const group = {};
|
|
5397
5420
|
return patterns.reduce((collection, pattern$1) => {
|
|
5398
|
-
const base = utils$
|
|
5421
|
+
const base = utils$38.pattern.getBaseDirectory(pattern$1);
|
|
5399
5422
|
if (base in collection) collection[base].push(pattern$1);
|
|
5400
5423
|
else collection[base] = [pattern$1];
|
|
5401
5424
|
return collection;
|
|
@@ -5414,7 +5437,7 @@ var require_tasks = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
5414
5437
|
positive,
|
|
5415
5438
|
negative,
|
|
5416
5439
|
base,
|
|
5417
|
-
patterns: [].concat(positive, negative.map(utils$
|
|
5440
|
+
patterns: [].concat(positive, negative.map(utils$38.pattern.convertToNegativePattern))
|
|
5418
5441
|
};
|
|
5419
5442
|
}
|
|
5420
5443
|
exports.convertPatternGroupToTask = convertPatternGroupToTask;
|
|
@@ -5601,7 +5624,7 @@ var require_run_parallel = __commonJS({ "../../node_modules/.pnpm/run-parallel@1
|
|
|
5601
5624
|
|
|
5602
5625
|
//#endregion
|
|
5603
5626
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
5604
|
-
var require_constants$
|
|
5627
|
+
var require_constants$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
5605
5628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5606
5629
|
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
5607
5630
|
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
|
|
@@ -5643,7 +5666,7 @@ var require_fs$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.
|
|
|
5643
5666
|
|
|
5644
5667
|
//#endregion
|
|
5645
5668
|
//#region ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
5646
|
-
var require_utils$
|
|
5669
|
+
var require_utils$2 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
5647
5670
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5648
5671
|
exports.fs = void 0;
|
|
5649
5672
|
const fs$8 = require_fs$1();
|
|
@@ -5672,8 +5695,8 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5672
5695
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5673
5696
|
const fsStat$5 = require_out$3();
|
|
5674
5697
|
const rpl = require_run_parallel();
|
|
5675
|
-
const constants_1$1 = require_constants$
|
|
5676
|
-
const utils$
|
|
5698
|
+
const constants_1$1 = require_constants$1();
|
|
5699
|
+
const utils$37 = require_utils$2();
|
|
5677
5700
|
const common$9 = require_common$3();
|
|
5678
5701
|
function read$1(directory, settings, callback) {
|
|
5679
5702
|
if (!settings.stats && constants_1$1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
@@ -5724,7 +5747,7 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5724
5747
|
done$1(null, entry);
|
|
5725
5748
|
return;
|
|
5726
5749
|
}
|
|
5727
|
-
entry.dirent = utils$
|
|
5750
|
+
entry.dirent = utils$37.fs.createDirentFromStats(entry.name, stats);
|
|
5728
5751
|
done$1(null, entry);
|
|
5729
5752
|
});
|
|
5730
5753
|
};
|
|
@@ -5746,7 +5769,7 @@ var require_async$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir
|
|
|
5746
5769
|
const entry = {
|
|
5747
5770
|
name,
|
|
5748
5771
|
path: path$13,
|
|
5749
|
-
dirent: utils$
|
|
5772
|
+
dirent: utils$37.fs.createDirentFromStats(name, stats)
|
|
5750
5773
|
};
|
|
5751
5774
|
if (settings.stats) entry.stats = stats;
|
|
5752
5775
|
done$1(null, entry);
|
|
@@ -5777,8 +5800,8 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5777
5800
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5778
5801
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
5779
5802
|
const fsStat$4 = require_out$3();
|
|
5780
|
-
const constants_1 = require_constants$
|
|
5781
|
-
const utils$
|
|
5803
|
+
const constants_1 = require_constants$1();
|
|
5804
|
+
const utils$36 = require_utils$2();
|
|
5782
5805
|
const common$8 = require_common$3();
|
|
5783
5806
|
function read(directory, settings) {
|
|
5784
5807
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) return readdirWithFileTypes(directory, settings);
|
|
@@ -5795,7 +5818,7 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5795
5818
|
};
|
|
5796
5819
|
if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks) try {
|
|
5797
5820
|
const stats = settings.fs.statSync(entry.path);
|
|
5798
|
-
entry.dirent = utils$
|
|
5821
|
+
entry.dirent = utils$36.fs.createDirentFromStats(entry.name, stats);
|
|
5799
5822
|
} catch (error) {
|
|
5800
5823
|
if (settings.throwErrorOnBrokenSymbolicLink) throw error;
|
|
5801
5824
|
}
|
|
@@ -5811,7 +5834,7 @@ var require_sync$4 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.scandir@
|
|
|
5811
5834
|
const entry = {
|
|
5812
5835
|
name,
|
|
5813
5836
|
path: entryPath,
|
|
5814
|
-
dirent: utils$
|
|
5837
|
+
dirent: utils$36.fs.createDirentFromStats(name, stats)
|
|
5815
5838
|
};
|
|
5816
5839
|
if (settings.stats) entry.stats = stats;
|
|
5817
5840
|
return entry;
|
|
@@ -5926,16 +5949,16 @@ var require_reusify = __commonJS({ "../../node_modules/.pnpm/reusify@1.0.4/node_
|
|
|
5926
5949
|
} });
|
|
5927
5950
|
|
|
5928
5951
|
//#endregion
|
|
5929
|
-
//#region ../../node_modules/.pnpm/fastq@1.
|
|
5930
|
-
var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.
|
|
5952
|
+
//#region ../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js
|
|
5953
|
+
var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js"(exports, module) {
|
|
5931
5954
|
var reusify = require_reusify();
|
|
5932
|
-
function fastqueue(context, worker,
|
|
5955
|
+
function fastqueue(context, worker, _concurrency) {
|
|
5933
5956
|
if (typeof context === "function") {
|
|
5934
|
-
|
|
5957
|
+
_concurrency = worker;
|
|
5935
5958
|
worker = context;
|
|
5936
5959
|
context = null;
|
|
5937
5960
|
}
|
|
5938
|
-
if (
|
|
5961
|
+
if (!(_concurrency >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
5939
5962
|
var cache$1 = reusify(Task);
|
|
5940
5963
|
var queueHead = null;
|
|
5941
5964
|
var queueTail = null;
|
|
@@ -5947,7 +5970,18 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
5947
5970
|
saturated: noop,
|
|
5948
5971
|
pause,
|
|
5949
5972
|
paused: false,
|
|
5950
|
-
concurrency
|
|
5973
|
+
get concurrency() {
|
|
5974
|
+
return _concurrency;
|
|
5975
|
+
},
|
|
5976
|
+
set concurrency(value) {
|
|
5977
|
+
if (!(value >= 1)) throw new Error("fastqueue concurrency must be equal to or greater than 1");
|
|
5978
|
+
_concurrency = value;
|
|
5979
|
+
if (self$1.paused) return;
|
|
5980
|
+
for (; queueHead && _running < _concurrency;) {
|
|
5981
|
+
_running++;
|
|
5982
|
+
release();
|
|
5983
|
+
}
|
|
5984
|
+
},
|
|
5951
5985
|
running,
|
|
5952
5986
|
resume: resume$1,
|
|
5953
5987
|
idle,
|
|
@@ -5987,7 +6021,12 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
5987
6021
|
function resume$1() {
|
|
5988
6022
|
if (!self$1.paused) return;
|
|
5989
6023
|
self$1.paused = false;
|
|
5990
|
-
|
|
6024
|
+
if (queueHead === null) {
|
|
6025
|
+
_running++;
|
|
6026
|
+
release();
|
|
6027
|
+
return;
|
|
6028
|
+
}
|
|
6029
|
+
for (; queueHead && _running < _concurrency;) {
|
|
5991
6030
|
_running++;
|
|
5992
6031
|
release();
|
|
5993
6032
|
}
|
|
@@ -6002,7 +6041,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6002
6041
|
current.value = value;
|
|
6003
6042
|
current.callback = done$1 || noop;
|
|
6004
6043
|
current.errorHandler = errorHandler;
|
|
6005
|
-
if (_running
|
|
6044
|
+
if (_running >= _concurrency || self$1.paused) if (queueTail) {
|
|
6006
6045
|
queueTail.next = current;
|
|
6007
6046
|
queueTail = current;
|
|
6008
6047
|
} else {
|
|
@@ -6021,7 +6060,8 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6021
6060
|
current.release = release;
|
|
6022
6061
|
current.value = value;
|
|
6023
6062
|
current.callback = done$1 || noop;
|
|
6024
|
-
|
|
6063
|
+
current.errorHandler = errorHandler;
|
|
6064
|
+
if (_running >= _concurrency || self$1.paused) if (queueHead) {
|
|
6025
6065
|
current.next = queueHead;
|
|
6026
6066
|
queueHead = current;
|
|
6027
6067
|
} else {
|
|
@@ -6037,7 +6077,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6037
6077
|
function release(holder) {
|
|
6038
6078
|
if (holder) cache$1.release(holder);
|
|
6039
6079
|
var next = queueHead;
|
|
6040
|
-
if (next) if (!self$1.paused) {
|
|
6080
|
+
if (next && _running <= _concurrency) if (!self$1.paused) {
|
|
6041
6081
|
if (queueTail === queueHead) queueTail = null;
|
|
6042
6082
|
queueHead = next.next;
|
|
6043
6083
|
next.next = null;
|
|
@@ -6081,9 +6121,9 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6081
6121
|
self$1.release(self$1);
|
|
6082
6122
|
};
|
|
6083
6123
|
}
|
|
6084
|
-
function queueAsPromised(context, worker,
|
|
6124
|
+
function queueAsPromised(context, worker, _concurrency) {
|
|
6085
6125
|
if (typeof context === "function") {
|
|
6086
|
-
|
|
6126
|
+
_concurrency = worker;
|
|
6087
6127
|
worker = context;
|
|
6088
6128
|
context = null;
|
|
6089
6129
|
}
|
|
@@ -6092,7 +6132,7 @@ var require_queue = __commonJS({ "../../node_modules/.pnpm/fastq@1.15.0/node_mod
|
|
|
6092
6132
|
cb(null, res);
|
|
6093
6133
|
}, cb);
|
|
6094
6134
|
}
|
|
6095
|
-
var queue$1 = fastqueue(context, asyncWrapper,
|
|
6135
|
+
var queue$1 = fastqueue(context, asyncWrapper, _concurrency);
|
|
6096
6136
|
var pushCb = queue$1.push;
|
|
6097
6137
|
var unshiftCb = queue$1.unshift;
|
|
6098
6138
|
queue$1.push = push;
|
|
@@ -6481,12 +6521,12 @@ var require_out$1 = __commonJS({ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.
|
|
|
6481
6521
|
} });
|
|
6482
6522
|
|
|
6483
6523
|
//#endregion
|
|
6484
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6485
|
-
var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6524
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
6525
|
+
var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
6486
6526
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6487
6527
|
const path$4 = require("path");
|
|
6488
6528
|
const fsStat$2 = require_out$3();
|
|
6489
|
-
const utils$
|
|
6529
|
+
const utils$35 = require_utils$3();
|
|
6490
6530
|
var Reader = class {
|
|
6491
6531
|
constructor(_settings) {
|
|
6492
6532
|
this._settings = _settings;
|
|
@@ -6503,21 +6543,21 @@ var require_reader = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
6503
6543
|
const entry = {
|
|
6504
6544
|
name: pattern$1,
|
|
6505
6545
|
path: pattern$1,
|
|
6506
|
-
dirent: utils$
|
|
6546
|
+
dirent: utils$35.fs.createDirentFromStats(pattern$1, stats)
|
|
6507
6547
|
};
|
|
6508
6548
|
if (this._settings.stats) entry.stats = stats;
|
|
6509
6549
|
return entry;
|
|
6510
6550
|
}
|
|
6511
6551
|
_isFatalError(error) {
|
|
6512
|
-
return !utils$
|
|
6552
|
+
return !utils$35.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
|
|
6513
6553
|
}
|
|
6514
6554
|
};
|
|
6515
6555
|
exports.default = Reader;
|
|
6516
6556
|
} });
|
|
6517
6557
|
|
|
6518
6558
|
//#endregion
|
|
6519
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6520
|
-
var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6559
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
6560
|
+
var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
6521
6561
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6522
6562
|
const stream_1$3 = require("stream");
|
|
6523
6563
|
const fsStat$1 = require_out$3();
|
|
@@ -6563,8 +6603,8 @@ var require_stream$2 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6563
6603
|
} });
|
|
6564
6604
|
|
|
6565
6605
|
//#endregion
|
|
6566
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6567
|
-
var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6606
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
6607
|
+
var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
6568
6608
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6569
6609
|
const fsWalk$1 = require_out$1();
|
|
6570
6610
|
const reader_1$1 = require_reader();
|
|
@@ -6597,10 +6637,10 @@ var require_async$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6597
6637
|
} });
|
|
6598
6638
|
|
|
6599
6639
|
//#endregion
|
|
6600
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6601
|
-
var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6640
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
6641
|
+
var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
6602
6642
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6603
|
-
const utils$
|
|
6643
|
+
const utils$34 = require_utils$3();
|
|
6604
6644
|
var Matcher = class {
|
|
6605
6645
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
6606
6646
|
this._patterns = _patterns;
|
|
@@ -6622,9 +6662,9 @@ var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6622
6662
|
}
|
|
6623
6663
|
}
|
|
6624
6664
|
_getPatternSegments(pattern$1) {
|
|
6625
|
-
const parts = utils$
|
|
6665
|
+
const parts = utils$34.pattern.getPatternParts(pattern$1, this._micromatchOptions);
|
|
6626
6666
|
return parts.map((part) => {
|
|
6627
|
-
const dynamic = utils$
|
|
6667
|
+
const dynamic = utils$34.pattern.isDynamicPattern(part, this._settings);
|
|
6628
6668
|
if (!dynamic) return {
|
|
6629
6669
|
dynamic: false,
|
|
6630
6670
|
pattern: part
|
|
@@ -6632,20 +6672,20 @@ var require_matcher = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6632
6672
|
return {
|
|
6633
6673
|
dynamic: true,
|
|
6634
6674
|
pattern: part,
|
|
6635
|
-
patternRe: utils$
|
|
6675
|
+
patternRe: utils$34.pattern.makeRe(part, this._micromatchOptions)
|
|
6636
6676
|
};
|
|
6637
6677
|
});
|
|
6638
6678
|
}
|
|
6639
6679
|
_splitSegmentsIntoSections(segments) {
|
|
6640
|
-
return utils$
|
|
6680
|
+
return utils$34.array.splitWhen(segments, (segment) => segment.dynamic && utils$34.pattern.hasGlobStar(segment.pattern));
|
|
6641
6681
|
}
|
|
6642
6682
|
};
|
|
6643
6683
|
exports.default = Matcher;
|
|
6644
6684
|
} });
|
|
6645
6685
|
|
|
6646
6686
|
//#endregion
|
|
6647
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6648
|
-
var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6687
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
6688
|
+
var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
6649
6689
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6650
6690
|
const matcher_1 = require_matcher();
|
|
6651
6691
|
var PartialMatcher = class extends matcher_1.default {
|
|
@@ -6678,10 +6718,10 @@ var require_partial = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6678
6718
|
} });
|
|
6679
6719
|
|
|
6680
6720
|
//#endregion
|
|
6681
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6682
|
-
var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6721
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
6722
|
+
var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
6683
6723
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6684
|
-
const utils$
|
|
6724
|
+
const utils$33 = require_utils$3();
|
|
6685
6725
|
const partial_1 = require_partial();
|
|
6686
6726
|
var DeepFilter = class {
|
|
6687
6727
|
constructor(_settings, _micromatchOptions) {
|
|
@@ -6697,13 +6737,13 @@ var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
6697
6737
|
return new partial_1.default(patterns, this._settings, this._micromatchOptions);
|
|
6698
6738
|
}
|
|
6699
6739
|
_getNegativePatternsRe(patterns) {
|
|
6700
|
-
const affectDepthOfReadingPatterns = patterns.filter(utils$
|
|
6701
|
-
return utils$
|
|
6740
|
+
const affectDepthOfReadingPatterns = patterns.filter(utils$33.pattern.isAffectDepthOfReadingPattern);
|
|
6741
|
+
return utils$33.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
|
|
6702
6742
|
}
|
|
6703
6743
|
_filter(basePath, entry, matcher, negativeRe) {
|
|
6704
6744
|
if (this._isSkippedByDeep(basePath, entry.path)) return false;
|
|
6705
6745
|
if (this._isSkippedSymbolicLink(entry)) return false;
|
|
6706
|
-
const filepath = utils$
|
|
6746
|
+
const filepath = utils$33.path.removeLeadingDotSegment(entry.path);
|
|
6707
6747
|
if (this._isSkippedByPositivePatterns(filepath, matcher)) return false;
|
|
6708
6748
|
return this._isSkippedByNegativePatterns(filepath, negativeRe);
|
|
6709
6749
|
}
|
|
@@ -6727,17 +6767,17 @@ var require_deep = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
6727
6767
|
return !this._settings.baseNameMatch && !matcher.match(entryPath);
|
|
6728
6768
|
}
|
|
6729
6769
|
_isSkippedByNegativePatterns(entryPath, patternsRe) {
|
|
6730
|
-
return !utils$
|
|
6770
|
+
return !utils$33.pattern.matchAny(entryPath, patternsRe);
|
|
6731
6771
|
}
|
|
6732
6772
|
};
|
|
6733
6773
|
exports.default = DeepFilter;
|
|
6734
6774
|
} });
|
|
6735
6775
|
|
|
6736
6776
|
//#endregion
|
|
6737
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6738
|
-
var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6777
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
6778
|
+
var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
6739
6779
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6740
|
-
const utils$
|
|
6780
|
+
const utils$32 = require_utils$3();
|
|
6741
6781
|
var EntryFilter = class {
|
|
6742
6782
|
constructor(_settings, _micromatchOptions) {
|
|
6743
6783
|
this._settings = _settings;
|
|
@@ -6745,17 +6785,21 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6745
6785
|
this.index = /* @__PURE__ */ new Map();
|
|
6746
6786
|
}
|
|
6747
6787
|
getFilter(positive, negative) {
|
|
6748
|
-
const
|
|
6749
|
-
const
|
|
6750
|
-
|
|
6788
|
+
const [absoluteNegative, relativeNegative] = utils$32.pattern.partitionAbsoluteAndRelative(negative);
|
|
6789
|
+
const patterns = {
|
|
6790
|
+
positive: { all: utils$32.pattern.convertPatternsToRe(positive, this._micromatchOptions) },
|
|
6791
|
+
negative: {
|
|
6792
|
+
absolute: utils$32.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
|
|
6793
|
+
relative: utils$32.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
|
|
6794
|
+
}
|
|
6795
|
+
};
|
|
6796
|
+
return (entry) => this._filter(entry, patterns);
|
|
6751
6797
|
}
|
|
6752
|
-
_filter(entry,
|
|
6753
|
-
const filepath = utils$
|
|
6798
|
+
_filter(entry, patterns) {
|
|
6799
|
+
const filepath = utils$32.path.removeLeadingDotSegment(entry.path);
|
|
6754
6800
|
if (this._settings.unique && this._isDuplicateEntry(filepath)) return false;
|
|
6755
6801
|
if (this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)) return false;
|
|
6756
|
-
|
|
6757
|
-
const isDirectory = entry.dirent.isDirectory();
|
|
6758
|
-
const isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
|
|
6802
|
+
const isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
|
|
6759
6803
|
if (this._settings.unique && isMatched) this._createIndexRecord(filepath);
|
|
6760
6804
|
return isMatched;
|
|
6761
6805
|
}
|
|
@@ -6771,14 +6815,24 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6771
6815
|
_onlyDirectoryFilter(entry) {
|
|
6772
6816
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
6773
6817
|
}
|
|
6774
|
-
|
|
6775
|
-
|
|
6776
|
-
|
|
6777
|
-
|
|
6818
|
+
_isMatchToPatternsSet(filepath, patterns, isDirectory) {
|
|
6819
|
+
const isMatched = this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory);
|
|
6820
|
+
if (!isMatched) return false;
|
|
6821
|
+
const isMatchedByRelativeNegative = this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory);
|
|
6822
|
+
if (isMatchedByRelativeNegative) return false;
|
|
6823
|
+
const isMatchedByAbsoluteNegative = this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory);
|
|
6824
|
+
if (isMatchedByAbsoluteNegative) return false;
|
|
6825
|
+
return true;
|
|
6826
|
+
}
|
|
6827
|
+
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
6828
|
+
if (patternsRe.length === 0) return false;
|
|
6829
|
+
const fullpath = utils$32.path.makeAbsolute(this._settings.cwd, filepath);
|
|
6830
|
+
return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
|
|
6778
6831
|
}
|
|
6779
6832
|
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
6780
|
-
|
|
6781
|
-
|
|
6833
|
+
if (patternsRe.length === 0) return false;
|
|
6834
|
+
const isMatched = utils$32.pattern.matchAny(filepath, patternsRe);
|
|
6835
|
+
if (!isMatched && isDirectory) return utils$32.pattern.matchAny(filepath + "/", patternsRe);
|
|
6782
6836
|
return isMatched;
|
|
6783
6837
|
}
|
|
6784
6838
|
};
|
|
@@ -6786,10 +6840,10 @@ var require_entry$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/nod
|
|
|
6786
6840
|
} });
|
|
6787
6841
|
|
|
6788
6842
|
//#endregion
|
|
6789
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6790
|
-
var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6843
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
6844
|
+
var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
6791
6845
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6792
|
-
const utils$
|
|
6846
|
+
const utils$31 = require_utils$3();
|
|
6793
6847
|
var ErrorFilter = class {
|
|
6794
6848
|
constructor(_settings) {
|
|
6795
6849
|
this._settings = _settings;
|
|
@@ -6798,17 +6852,17 @@ var require_error = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6798
6852
|
return (error) => this._isNonFatalError(error);
|
|
6799
6853
|
}
|
|
6800
6854
|
_isNonFatalError(error) {
|
|
6801
|
-
return utils$
|
|
6855
|
+
return utils$31.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
|
|
6802
6856
|
}
|
|
6803
6857
|
};
|
|
6804
6858
|
exports.default = ErrorFilter;
|
|
6805
6859
|
} });
|
|
6806
6860
|
|
|
6807
6861
|
//#endregion
|
|
6808
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6809
|
-
var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6862
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
6863
|
+
var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
6810
6864
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6811
|
-
const utils$
|
|
6865
|
+
const utils$30 = require_utils$3();
|
|
6812
6866
|
var EntryTransformer = class {
|
|
6813
6867
|
constructor(_settings) {
|
|
6814
6868
|
this._settings = _settings;
|
|
@@ -6819,8 +6873,8 @@ var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6819
6873
|
_transform(entry) {
|
|
6820
6874
|
let filepath = entry.path;
|
|
6821
6875
|
if (this._settings.absolute) {
|
|
6822
|
-
filepath = utils$
|
|
6823
|
-
filepath = utils$
|
|
6876
|
+
filepath = utils$30.path.makeAbsolute(this._settings.cwd, filepath);
|
|
6877
|
+
filepath = utils$30.path.unixify(filepath);
|
|
6824
6878
|
}
|
|
6825
6879
|
if (this._settings.markDirectories && entry.dirent.isDirectory()) filepath += "/";
|
|
6826
6880
|
if (!this._settings.objectMode) return filepath;
|
|
@@ -6831,8 +6885,8 @@ var require_entry = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6831
6885
|
} });
|
|
6832
6886
|
|
|
6833
6887
|
//#endregion
|
|
6834
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6835
|
-
var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6888
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
6889
|
+
var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
6836
6890
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6837
6891
|
const path$3 = require("path");
|
|
6838
6892
|
const deep_1 = require_deep();
|
|
@@ -6883,8 +6937,8 @@ var require_provider = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6883
6937
|
} });
|
|
6884
6938
|
|
|
6885
6939
|
//#endregion
|
|
6886
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6887
|
-
var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6940
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
6941
|
+
var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
6888
6942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6889
6943
|
const async_1$1 = require_async$1();
|
|
6890
6944
|
const provider_1$2 = require_provider();
|
|
@@ -6908,8 +6962,8 @@ var require_async = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_
|
|
|
6908
6962
|
} });
|
|
6909
6963
|
|
|
6910
6964
|
//#endregion
|
|
6911
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6912
|
-
var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6965
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
6966
|
+
var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
6913
6967
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6914
6968
|
const stream_1$1 = require("stream");
|
|
6915
6969
|
const stream_2 = require_stream$2();
|
|
@@ -6940,8 +6994,8 @@ var require_stream$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
6940
6994
|
} });
|
|
6941
6995
|
|
|
6942
6996
|
//#endregion
|
|
6943
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6944
|
-
var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
6997
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
6998
|
+
var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
6945
6999
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6946
7000
|
const fsStat = require_out$3();
|
|
6947
7001
|
const fsWalk = require_out$1();
|
|
@@ -6982,8 +7036,8 @@ var require_sync$1 = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node
|
|
|
6982
7036
|
} });
|
|
6983
7037
|
|
|
6984
7038
|
//#endregion
|
|
6985
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
6986
|
-
var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7039
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
7040
|
+
var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
6987
7041
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6988
7042
|
const sync_1$1 = require_sync$1();
|
|
6989
7043
|
const provider_1 = require_provider();
|
|
@@ -7007,8 +7061,8 @@ var require_sync = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_m
|
|
|
7007
7061
|
} });
|
|
7008
7062
|
|
|
7009
7063
|
//#endregion
|
|
7010
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
7011
|
-
var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7064
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
7065
|
+
var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
7012
7066
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7013
7067
|
exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
|
|
7014
7068
|
const fs$5 = require("fs");
|
|
@@ -7065,19 +7119,19 @@ var require_settings = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/no
|
|
|
7065
7119
|
} });
|
|
7066
7120
|
|
|
7067
7121
|
//#endregion
|
|
7068
|
-
//#region ../../node_modules/.pnpm/fast-glob@3.3.
|
|
7069
|
-
var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.
|
|
7122
|
+
//#region ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
7123
|
+
var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
7070
7124
|
const taskManager = require_tasks();
|
|
7071
7125
|
const async_1 = require_async();
|
|
7072
7126
|
const stream_1 = require_stream$1();
|
|
7073
7127
|
const sync_1 = require_sync();
|
|
7074
7128
|
const settings_1 = require_settings();
|
|
7075
|
-
const utils$
|
|
7129
|
+
const utils$29 = require_utils$3();
|
|
7076
7130
|
async function FastGlob(source, options) {
|
|
7077
7131
|
assertPatternsInput(source);
|
|
7078
7132
|
const works = getWorks(source, async_1.default, options);
|
|
7079
7133
|
const result = await Promise.all(works);
|
|
7080
|
-
return utils$
|
|
7134
|
+
return utils$29.array.flatten(result);
|
|
7081
7135
|
}
|
|
7082
7136
|
(function(FastGlob$1) {
|
|
7083
7137
|
FastGlob$1.glob = FastGlob$1;
|
|
@@ -7087,7 +7141,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7087
7141
|
function sync$2(source, options) {
|
|
7088
7142
|
assertPatternsInput(source);
|
|
7089
7143
|
const works = getWorks(source, sync_1.default, options);
|
|
7090
|
-
return utils$
|
|
7144
|
+
return utils$29.array.flatten(works);
|
|
7091
7145
|
}
|
|
7092
7146
|
FastGlob$1.sync = sync$2;
|
|
7093
7147
|
function stream$1(source, options) {
|
|
@@ -7098,7 +7152,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7098
7152
|
* To support asynchronous iterators, regardless of the number of tasks, we always multiplex streams.
|
|
7099
7153
|
* This affects performance (+25%). I don't see best solution right now.
|
|
7100
7154
|
*/
|
|
7101
|
-
return utils$
|
|
7155
|
+
return utils$29.stream.merge(works);
|
|
7102
7156
|
}
|
|
7103
7157
|
FastGlob$1.stream = stream$1;
|
|
7104
7158
|
function generateTasks(source, options) {
|
|
@@ -7111,29 +7165,29 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7111
7165
|
function isDynamicPattern$1(source, options) {
|
|
7112
7166
|
assertPatternsInput(source);
|
|
7113
7167
|
const settings = new settings_1.default(options);
|
|
7114
|
-
return utils$
|
|
7168
|
+
return utils$29.pattern.isDynamicPattern(source, settings);
|
|
7115
7169
|
}
|
|
7116
7170
|
FastGlob$1.isDynamicPattern = isDynamicPattern$1;
|
|
7117
7171
|
function escapePath(source) {
|
|
7118
7172
|
assertPatternsInput(source);
|
|
7119
|
-
return utils$
|
|
7173
|
+
return utils$29.path.escape(source);
|
|
7120
7174
|
}
|
|
7121
7175
|
FastGlob$1.escapePath = escapePath;
|
|
7122
7176
|
function convertPathToPattern(source) {
|
|
7123
7177
|
assertPatternsInput(source);
|
|
7124
|
-
return utils$
|
|
7178
|
+
return utils$29.path.convertPathToPattern(source);
|
|
7125
7179
|
}
|
|
7126
7180
|
FastGlob$1.convertPathToPattern = convertPathToPattern;
|
|
7127
7181
|
let posix;
|
|
7128
7182
|
(function(posix$1) {
|
|
7129
7183
|
function escapePath$1(source) {
|
|
7130
7184
|
assertPatternsInput(source);
|
|
7131
|
-
return utils$
|
|
7185
|
+
return utils$29.path.escapePosixPath(source);
|
|
7132
7186
|
}
|
|
7133
7187
|
posix$1.escapePath = escapePath$1;
|
|
7134
7188
|
function convertPathToPattern$1(source) {
|
|
7135
7189
|
assertPatternsInput(source);
|
|
7136
|
-
return utils$
|
|
7190
|
+
return utils$29.path.convertPosixPathToPattern(source);
|
|
7137
7191
|
}
|
|
7138
7192
|
posix$1.convertPathToPattern = convertPathToPattern$1;
|
|
7139
7193
|
})(posix = FastGlob$1.posix || (FastGlob$1.posix = {}));
|
|
@@ -7141,12 +7195,12 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7141
7195
|
(function(win32$2) {
|
|
7142
7196
|
function escapePath$1(source) {
|
|
7143
7197
|
assertPatternsInput(source);
|
|
7144
|
-
return utils$
|
|
7198
|
+
return utils$29.path.escapeWindowsPath(source);
|
|
7145
7199
|
}
|
|
7146
7200
|
win32$2.escapePath = escapePath$1;
|
|
7147
7201
|
function convertPathToPattern$1(source) {
|
|
7148
7202
|
assertPatternsInput(source);
|
|
7149
|
-
return utils$
|
|
7203
|
+
return utils$29.path.convertWindowsPathToPattern(source);
|
|
7150
7204
|
}
|
|
7151
7205
|
win32$2.convertPathToPattern = convertPathToPattern$1;
|
|
7152
7206
|
})(win32$1 = FastGlob$1.win32 || (FastGlob$1.win32 = {}));
|
|
@@ -7160,7 +7214,7 @@ var require_out = __commonJS({ "../../node_modules/.pnpm/fast-glob@3.3.2/node_mo
|
|
|
7160
7214
|
}
|
|
7161
7215
|
function assertPatternsInput(input) {
|
|
7162
7216
|
const source = [].concat(input);
|
|
7163
|
-
const isValidSource = source.every((item) => utils$
|
|
7217
|
+
const isValidSource = source.every((item) => utils$29.string.isString(item) && !utils$29.string.isEmpty(item));
|
|
7164
7218
|
if (!isValidSource) throw new TypeError("Patterns must be a string (non empty) or an array of strings");
|
|
7165
7219
|
}
|
|
7166
7220
|
module.exports = FastGlob;
|
|
@@ -9104,21 +9158,21 @@ var require_dumper = __commonJS({ "../../node_modules/.pnpm/js-yaml@4.1.0/node_m
|
|
|
9104
9158
|
var CHAR_CARRIAGE_RETURN = 13;
|
|
9105
9159
|
var CHAR_SPACE = 32;
|
|
9106
9160
|
var CHAR_EXCLAMATION = 33;
|
|
9107
|
-
var CHAR_DOUBLE_QUOTE
|
|
9161
|
+
var CHAR_DOUBLE_QUOTE = 34;
|
|
9108
9162
|
var CHAR_SHARP = 35;
|
|
9109
9163
|
var CHAR_PERCENT = 37;
|
|
9110
9164
|
var CHAR_AMPERSAND = 38;
|
|
9111
|
-
var CHAR_SINGLE_QUOTE
|
|
9165
|
+
var CHAR_SINGLE_QUOTE = 39;
|
|
9112
9166
|
var CHAR_ASTERISK = 42;
|
|
9113
|
-
var CHAR_COMMA
|
|
9167
|
+
var CHAR_COMMA = 44;
|
|
9114
9168
|
var CHAR_MINUS = 45;
|
|
9115
9169
|
var CHAR_COLON = 58;
|
|
9116
9170
|
var CHAR_EQUALS = 61;
|
|
9117
9171
|
var CHAR_GREATER_THAN = 62;
|
|
9118
9172
|
var CHAR_QUESTION = 63;
|
|
9119
9173
|
var CHAR_COMMERCIAL_AT = 64;
|
|
9120
|
-
var CHAR_LEFT_SQUARE_BRACKET
|
|
9121
|
-
var CHAR_RIGHT_SQUARE_BRACKET
|
|
9174
|
+
var CHAR_LEFT_SQUARE_BRACKET = 91;
|
|
9175
|
+
var CHAR_RIGHT_SQUARE_BRACKET = 93;
|
|
9122
9176
|
var CHAR_GRAVE_ACCENT = 96;
|
|
9123
9177
|
var CHAR_LEFT_CURLY_BRACKET = 123;
|
|
9124
9178
|
var CHAR_VERTICAL_LINE = 124;
|
|
@@ -9250,10 +9304,10 @@ var require_dumper = __commonJS({ "../../node_modules/.pnpm/js-yaml@4.1.0/node_m
|
|
|
9250
9304
|
function isPlainSafe(c$1, prev, inblock) {
|
|
9251
9305
|
var cIsNsCharOrWhitespace = isNsCharOrWhitespace(c$1);
|
|
9252
9306
|
var cIsNsChar = cIsNsCharOrWhitespace && !isWhitespace(c$1);
|
|
9253
|
-
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c$1 !== CHAR_COMMA
|
|
9307
|
+
return (inblock ? cIsNsCharOrWhitespace : cIsNsCharOrWhitespace && c$1 !== CHAR_COMMA && c$1 !== CHAR_LEFT_SQUARE_BRACKET && c$1 !== CHAR_RIGHT_SQUARE_BRACKET && c$1 !== CHAR_LEFT_CURLY_BRACKET && c$1 !== CHAR_RIGHT_CURLY_BRACKET) && c$1 !== CHAR_SHARP && !(prev === CHAR_COLON && !cIsNsChar) || isNsCharOrWhitespace(prev) && !isWhitespace(prev) && c$1 === CHAR_SHARP || prev === CHAR_COLON && cIsNsChar;
|
|
9254
9308
|
}
|
|
9255
9309
|
function isPlainSafeFirst(c$1) {
|
|
9256
|
-
return isPrintable(c$1) && c$1 !== CHAR_BOM && !isWhitespace(c$1) && c$1 !== CHAR_MINUS && c$1 !== CHAR_QUESTION && c$1 !== CHAR_COLON && c$1 !== CHAR_COMMA
|
|
9310
|
+
return isPrintable(c$1) && c$1 !== CHAR_BOM && !isWhitespace(c$1) && c$1 !== CHAR_MINUS && c$1 !== CHAR_QUESTION && c$1 !== CHAR_COLON && c$1 !== CHAR_COMMA && c$1 !== CHAR_LEFT_SQUARE_BRACKET && c$1 !== CHAR_RIGHT_SQUARE_BRACKET && c$1 !== CHAR_LEFT_CURLY_BRACKET && c$1 !== CHAR_RIGHT_CURLY_BRACKET && c$1 !== CHAR_SHARP && c$1 !== CHAR_AMPERSAND && c$1 !== CHAR_ASTERISK && c$1 !== CHAR_EXCLAMATION && c$1 !== CHAR_VERTICAL_LINE && c$1 !== CHAR_EQUALS && c$1 !== CHAR_GREATER_THAN && c$1 !== CHAR_SINGLE_QUOTE && c$1 !== CHAR_DOUBLE_QUOTE && c$1 !== CHAR_PERCENT && c$1 !== CHAR_COMMERCIAL_AT && c$1 !== CHAR_GRAVE_ACCENT;
|
|
9257
9311
|
}
|
|
9258
9312
|
function isPlainSafeLast(c$1) {
|
|
9259
9313
|
return !isWhitespace(c$1) && c$1 !== CHAR_COLON;
|
|
@@ -9722,7 +9776,7 @@ var require_unicode = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
9722
9776
|
|
|
9723
9777
|
//#endregion
|
|
9724
9778
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/parse.js
|
|
9725
|
-
var require_parse
|
|
9779
|
+
var require_parse = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/parse.js"(exports, module) {
|
|
9726
9780
|
var Uni$1 = require_unicode();
|
|
9727
9781
|
function isHexDigit(x) {
|
|
9728
9782
|
return x >= "0" && x <= "9" || x >= "A" && x <= "F" || x >= "a" && x <= "f";
|
|
@@ -9762,7 +9816,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
9762
9816
|
}
|
|
9763
9817
|
return result + "\n" + srcline + "\n" + underline;
|
|
9764
9818
|
}
|
|
9765
|
-
function parse
|
|
9819
|
+
function parse(input, options) {
|
|
9766
9820
|
var json5 = false;
|
|
9767
9821
|
var cjson = false;
|
|
9768
9822
|
if (options.legacy || options.mode === "json") {} else if (options.mode === "cjson") cjson = true;
|
|
@@ -10142,7 +10196,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10142
10196
|
if (options.null_prototype == null) options.null_prototype = true;
|
|
10143
10197
|
}
|
|
10144
10198
|
try {
|
|
10145
|
-
return parse
|
|
10199
|
+
return parse(input, options);
|
|
10146
10200
|
} catch (err$1) {
|
|
10147
10201
|
if (err$1 instanceof SyntaxError && err$1.row != null && err$1.column != null) {
|
|
10148
10202
|
var old_err = err$1;
|
|
@@ -10167,7 +10221,7 @@ var require_parse$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10167
10221
|
|
|
10168
10222
|
//#endregion
|
|
10169
10223
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/stringify.js
|
|
10170
|
-
var require_stringify
|
|
10224
|
+
var require_stringify = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/stringify.js"(exports, module) {
|
|
10171
10225
|
var Uni = require_unicode();
|
|
10172
10226
|
if (!function f() {}.name) Object.defineProperty(function() {}.constructor.prototype, "name", { get: function() {
|
|
10173
10227
|
var name = this.toString().match(/^\s*function\s*(\S*)\s*\(/)[1];
|
|
@@ -10240,9 +10294,9 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10240
10294
|
}
|
|
10241
10295
|
function _stringify_object() {
|
|
10242
10296
|
if (object === null) return "null";
|
|
10243
|
-
var result = [], len = 0, braces$
|
|
10297
|
+
var result = [], len = 0, braces$2;
|
|
10244
10298
|
if (Array.isArray(object)) {
|
|
10245
|
-
braces$
|
|
10299
|
+
braces$2 = "[]";
|
|
10246
10300
|
for (var i$3 = 0; i$3 < object.length; i$3++) {
|
|
10247
10301
|
var s = _stringify(object[i$3], options, recursiveLvl + 1, String(i$3));
|
|
10248
10302
|
if (s === void 0) s = "null";
|
|
@@ -10250,7 +10304,7 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10250
10304
|
result.push(s + ",");
|
|
10251
10305
|
}
|
|
10252
10306
|
} else {
|
|
10253
|
-
braces$
|
|
10307
|
+
braces$2 = "{}";
|
|
10254
10308
|
var fn = function(key) {
|
|
10255
10309
|
var t = _stringify(object[key], options, recursiveLvl + 1, key);
|
|
10256
10310
|
if (t !== void 0) {
|
|
@@ -10273,11 +10327,11 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10273
10327
|
var innerStuff = result.map(function(x) {
|
|
10274
10328
|
return indent(x, 1);
|
|
10275
10329
|
}).join("");
|
|
10276
|
-
return braces$
|
|
10330
|
+
return braces$2[0] + (options.indent ? "\n" : "") + innerStuff + indent(braces$2[1]);
|
|
10277
10331
|
} else {
|
|
10278
10332
|
if (result.length) result[result.length - 1] = result[result.length - 1].substring(0, result[result.length - 1].length - 1);
|
|
10279
10333
|
var innerStuff = result.join(options.indent ? " " : "");
|
|
10280
|
-
return braces$
|
|
10334
|
+
return braces$2[0] + innerStuff + braces$2[1];
|
|
10281
10335
|
}
|
|
10282
10336
|
}
|
|
10283
10337
|
function _stringify_nonobject(object$1) {
|
|
@@ -10343,7 +10397,7 @@ var require_stringify$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_
|
|
|
10343
10397
|
//#endregion
|
|
10344
10398
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/analyze.js
|
|
10345
10399
|
var require_analyze = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/analyze.js"(exports, module) {
|
|
10346
|
-
var tokenize$1 = require_parse
|
|
10400
|
+
var tokenize$1 = require_parse().tokenize;
|
|
10347
10401
|
module.exports.analyze = function analyzeJSON(input, options) {
|
|
10348
10402
|
if (options == null) options = {};
|
|
10349
10403
|
if (!Array.isArray(input)) input = tokenize$1(input, options);
|
|
@@ -10402,8 +10456,8 @@ var require_analyze = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10402
10456
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/document.js
|
|
10403
10457
|
var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/document.js"(exports, module) {
|
|
10404
10458
|
var assert = require("assert");
|
|
10405
|
-
var tokenize = require_parse
|
|
10406
|
-
var stringify
|
|
10459
|
+
var tokenize = require_parse().tokenize;
|
|
10460
|
+
var stringify = require_stringify().stringify;
|
|
10407
10461
|
var analyze = require_analyze().analyze;
|
|
10408
10462
|
function isObject$1(x) {
|
|
10409
10463
|
return typeof x === "object" && x !== null;
|
|
@@ -10416,7 +10470,7 @@ var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_mod
|
|
|
10416
10470
|
}).join("");
|
|
10417
10471
|
if (options._splitMin == null) options._splitMin = 0;
|
|
10418
10472
|
if (options._splitMax == null) options._splitMax = 0;
|
|
10419
|
-
var stringified = stringify
|
|
10473
|
+
var stringified = stringify(value, options);
|
|
10420
10474
|
if (is_key) return [{
|
|
10421
10475
|
raw: stringified,
|
|
10422
10476
|
type: "key",
|
|
@@ -10683,7 +10737,7 @@ var require_document = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_mod
|
|
|
10683
10737
|
|
|
10684
10738
|
//#endregion
|
|
10685
10739
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/utils.js
|
|
10686
|
-
var require_utils$
|
|
10740
|
+
var require_utils$1 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/lib/utils.js"(exports, module) {
|
|
10687
10741
|
var FS = require("fs");
|
|
10688
10742
|
var jju = require_jju();
|
|
10689
10743
|
module.exports.register = function() {
|
|
@@ -10720,13 +10774,13 @@ var require_utils$2 = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modu
|
|
|
10720
10774
|
//#region ../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/index.js
|
|
10721
10775
|
var require_jju = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/jju/index.js"(exports, module) {
|
|
10722
10776
|
module.exports.__defineGetter__("parse", function() {
|
|
10723
|
-
return require_parse
|
|
10777
|
+
return require_parse().parse;
|
|
10724
10778
|
});
|
|
10725
10779
|
module.exports.__defineGetter__("stringify", function() {
|
|
10726
|
-
return require_stringify
|
|
10780
|
+
return require_stringify().stringify;
|
|
10727
10781
|
});
|
|
10728
10782
|
module.exports.__defineGetter__("tokenize", function() {
|
|
10729
|
-
return require_parse
|
|
10783
|
+
return require_parse().tokenize;
|
|
10730
10784
|
});
|
|
10731
10785
|
module.exports.__defineGetter__("update", function() {
|
|
10732
10786
|
return require_document().update;
|
|
@@ -10735,7 +10789,7 @@ var require_jju = __commonJS({ "../../node_modules/.pnpm/jju@1.4.0/node_modules/
|
|
|
10735
10789
|
return require_analyze().analyze;
|
|
10736
10790
|
});
|
|
10737
10791
|
module.exports.__defineGetter__("utils", function() {
|
|
10738
|
-
return require_utils$
|
|
10792
|
+
return require_utils$1();
|
|
10739
10793
|
});
|
|
10740
10794
|
} });
|
|
10741
10795
|
/**package
|
|
@@ -10983,8 +11037,8 @@ var require_getWorkspaces = __commonJS({ "../../node_modules/.pnpm/workspace-too
|
|
|
10983
11037
|
* package.json config used by npm/yarn (instead of referring to the entire monorepo).
|
|
10984
11038
|
*/
|
|
10985
11039
|
function getWorkspaces(cwd) {
|
|
10986
|
-
const utils$
|
|
10987
|
-
return utils$
|
|
11040
|
+
const utils$46 = (0, implementations_1$1.getWorkspaceUtilities)(cwd);
|
|
11041
|
+
return utils$46?.getWorkspaces(cwd) || [];
|
|
10988
11042
|
}
|
|
10989
11043
|
exports.getWorkspaces = getWorkspaces;
|
|
10990
11044
|
/**
|
|
@@ -10996,13 +11050,13 @@ var require_getWorkspaces = __commonJS({ "../../node_modules/.pnpm/workspace-too
|
|
|
10996
11050
|
* package.json config used by npm/yarn (instead of referring to the entire monorepo).
|
|
10997
11051
|
*/
|
|
10998
11052
|
async function getWorkspacesAsync(cwd) {
|
|
10999
|
-
const utils$
|
|
11000
|
-
if (!utils$
|
|
11001
|
-
if (!utils$
|
|
11053
|
+
const utils$46 = (0, implementations_1$1.getWorkspaceUtilities)(cwd);
|
|
11054
|
+
if (!utils$46) return [];
|
|
11055
|
+
if (!utils$46.getWorkspacesAsync) {
|
|
11002
11056
|
const managerName = (0, implementations_1$1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
11003
11057
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
11004
11058
|
}
|
|
11005
|
-
return utils$
|
|
11059
|
+
return utils$46.getWorkspacesAsync(cwd);
|
|
11006
11060
|
}
|
|
11007
11061
|
exports.getWorkspacesAsync = getWorkspacesAsync;
|
|
11008
11062
|
} });
|
|
@@ -11081,1107 +11135,6 @@ var require_createDependencyMap = __commonJS({ "../../node_modules/.pnpm/workspa
|
|
|
11081
11135
|
exports.createDependencyMap = createDependencyMap;
|
|
11082
11136
|
} });
|
|
11083
11137
|
|
|
11084
|
-
//#endregion
|
|
11085
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
11086
|
-
var require_utils$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
11087
|
-
exports.isInteger = (num) => {
|
|
11088
|
-
if (typeof num === "number") return Number.isInteger(num);
|
|
11089
|
-
if (typeof num === "string" && num.trim() !== "") return Number.isInteger(Number(num));
|
|
11090
|
-
return false;
|
|
11091
|
-
};
|
|
11092
|
-
/**
|
|
11093
|
-
* Find a node of the given type
|
|
11094
|
-
*/
|
|
11095
|
-
exports.find = (node, type) => node.nodes.find((node$1) => node$1.type === type);
|
|
11096
|
-
/**
|
|
11097
|
-
* Find a node of the given type
|
|
11098
|
-
*/
|
|
11099
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => {
|
|
11100
|
-
if (limit === false) return false;
|
|
11101
|
-
if (!exports.isInteger(min) || !exports.isInteger(max)) return false;
|
|
11102
|
-
return (Number(max) - Number(min)) / Number(step) >= limit;
|
|
11103
|
-
};
|
|
11104
|
-
/**
|
|
11105
|
-
* Escape the given node with '\\' before node.value
|
|
11106
|
-
*/
|
|
11107
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
11108
|
-
const node = block.nodes[n];
|
|
11109
|
-
if (!node) return;
|
|
11110
|
-
if (type && node.type === type || node.type === "open" || node.type === "close") {
|
|
11111
|
-
if (node.escaped !== true) {
|
|
11112
|
-
node.value = "\\" + node.value;
|
|
11113
|
-
node.escaped = true;
|
|
11114
|
-
}
|
|
11115
|
-
}
|
|
11116
|
-
};
|
|
11117
|
-
/**
|
|
11118
|
-
* Returns true if the given brace node should be enclosed in literal braces
|
|
11119
|
-
*/
|
|
11120
|
-
exports.encloseBrace = (node) => {
|
|
11121
|
-
if (node.type !== "brace") return false;
|
|
11122
|
-
if (node.commas >> 0 + node.ranges >> 0 === 0) {
|
|
11123
|
-
node.invalid = true;
|
|
11124
|
-
return true;
|
|
11125
|
-
}
|
|
11126
|
-
return false;
|
|
11127
|
-
};
|
|
11128
|
-
/**
|
|
11129
|
-
* Returns true if a brace node is invalid.
|
|
11130
|
-
*/
|
|
11131
|
-
exports.isInvalidBrace = (block) => {
|
|
11132
|
-
if (block.type !== "brace") return false;
|
|
11133
|
-
if (block.invalid === true || block.dollar) return true;
|
|
11134
|
-
if (block.commas >> 0 + block.ranges >> 0 === 0) {
|
|
11135
|
-
block.invalid = true;
|
|
11136
|
-
return true;
|
|
11137
|
-
}
|
|
11138
|
-
if (block.open !== true || block.close !== true) {
|
|
11139
|
-
block.invalid = true;
|
|
11140
|
-
return true;
|
|
11141
|
-
}
|
|
11142
|
-
return false;
|
|
11143
|
-
};
|
|
11144
|
-
/**
|
|
11145
|
-
* Returns true if a node is an open or close node
|
|
11146
|
-
*/
|
|
11147
|
-
exports.isOpenOrClose = (node) => {
|
|
11148
|
-
if (node.type === "open" || node.type === "close") return true;
|
|
11149
|
-
return node.open === true || node.close === true;
|
|
11150
|
-
};
|
|
11151
|
-
/**
|
|
11152
|
-
* Reduce an array of text nodes.
|
|
11153
|
-
*/
|
|
11154
|
-
exports.reduce = (nodes) => nodes.reduce((acc, node) => {
|
|
11155
|
-
if (node.type === "text") acc.push(node.value);
|
|
11156
|
-
if (node.type === "range") node.type = "text";
|
|
11157
|
-
return acc;
|
|
11158
|
-
}, []);
|
|
11159
|
-
/**
|
|
11160
|
-
* Flatten an array
|
|
11161
|
-
*/
|
|
11162
|
-
exports.flatten = (...args) => {
|
|
11163
|
-
const result = [];
|
|
11164
|
-
const flat = (arr) => {
|
|
11165
|
-
for (let i$3 = 0; i$3 < arr.length; i$3++) {
|
|
11166
|
-
const ele = arr[i$3];
|
|
11167
|
-
if (Array.isArray(ele)) {
|
|
11168
|
-
flat(ele);
|
|
11169
|
-
continue;
|
|
11170
|
-
}
|
|
11171
|
-
if (ele !== void 0) result.push(ele);
|
|
11172
|
-
}
|
|
11173
|
-
return result;
|
|
11174
|
-
};
|
|
11175
|
-
flat(args);
|
|
11176
|
-
return result;
|
|
11177
|
-
};
|
|
11178
|
-
} });
|
|
11179
|
-
|
|
11180
|
-
//#endregion
|
|
11181
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
11182
|
-
var require_stringify = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
11183
|
-
const utils$32 = require_utils$1();
|
|
11184
|
-
module.exports = (ast, options = {}) => {
|
|
11185
|
-
const stringify$8 = (node, parent = {}) => {
|
|
11186
|
-
const invalidBlock = options.escapeInvalid && utils$32.isInvalidBrace(parent);
|
|
11187
|
-
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
11188
|
-
let output = "";
|
|
11189
|
-
if (node.value) {
|
|
11190
|
-
if ((invalidBlock || invalidNode) && utils$32.isOpenOrClose(node)) return "\\" + node.value;
|
|
11191
|
-
return node.value;
|
|
11192
|
-
}
|
|
11193
|
-
if (node.value) return node.value;
|
|
11194
|
-
if (node.nodes) for (const child of node.nodes) output += stringify$8(child);
|
|
11195
|
-
return output;
|
|
11196
|
-
};
|
|
11197
|
-
return stringify$8(ast);
|
|
11198
|
-
};
|
|
11199
|
-
} });
|
|
11200
|
-
|
|
11201
|
-
//#endregion
|
|
11202
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
11203
|
-
var require_compile = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
11204
|
-
const fill$1 = require_fill_range();
|
|
11205
|
-
const utils$31 = require_utils$1();
|
|
11206
|
-
const compile$1 = (ast, options = {}) => {
|
|
11207
|
-
const walk$1 = (node, parent = {}) => {
|
|
11208
|
-
const invalidBlock = utils$31.isInvalidBrace(parent);
|
|
11209
|
-
const invalidNode = node.invalid === true && options.escapeInvalid === true;
|
|
11210
|
-
const invalid = invalidBlock === true || invalidNode === true;
|
|
11211
|
-
const prefix = options.escapeInvalid === true ? "\\" : "";
|
|
11212
|
-
let output = "";
|
|
11213
|
-
if (node.isOpen === true) return prefix + node.value;
|
|
11214
|
-
if (node.isClose === true) {
|
|
11215
|
-
console.log("node.isClose", prefix, node.value);
|
|
11216
|
-
return prefix + node.value;
|
|
11217
|
-
}
|
|
11218
|
-
if (node.type === "open") return invalid ? prefix + node.value : "(";
|
|
11219
|
-
if (node.type === "close") return invalid ? prefix + node.value : ")";
|
|
11220
|
-
if (node.type === "comma") return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
11221
|
-
if (node.value) return node.value;
|
|
11222
|
-
if (node.nodes && node.ranges > 0) {
|
|
11223
|
-
const args = utils$31.reduce(node.nodes);
|
|
11224
|
-
const range = fill$1(...args, {
|
|
11225
|
-
...options,
|
|
11226
|
-
wrap: false,
|
|
11227
|
-
toRegex: true,
|
|
11228
|
-
strictZeros: true
|
|
11229
|
-
});
|
|
11230
|
-
if (range.length !== 0) return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
11231
|
-
}
|
|
11232
|
-
if (node.nodes) for (const child of node.nodes) output += walk$1(child, node);
|
|
11233
|
-
return output;
|
|
11234
|
-
};
|
|
11235
|
-
return walk$1(ast);
|
|
11236
|
-
};
|
|
11237
|
-
module.exports = compile$1;
|
|
11238
|
-
} });
|
|
11239
|
-
|
|
11240
|
-
//#endregion
|
|
11241
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
11242
|
-
var require_expand = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
11243
|
-
const fill = require_fill_range();
|
|
11244
|
-
const stringify$2 = require_stringify();
|
|
11245
|
-
const utils$30 = require_utils$1();
|
|
11246
|
-
const append = (queue$1 = "", stash = "", enclose = false) => {
|
|
11247
|
-
const result = [];
|
|
11248
|
-
queue$1 = [].concat(queue$1);
|
|
11249
|
-
stash = [].concat(stash);
|
|
11250
|
-
if (!stash.length) return queue$1;
|
|
11251
|
-
if (!queue$1.length) return enclose ? utils$30.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
11252
|
-
for (const item of queue$1) if (Array.isArray(item)) for (const value of item) result.push(append(value, stash, enclose));
|
|
11253
|
-
else for (let ele of stash) {
|
|
11254
|
-
if (enclose === true && typeof ele === "string") ele = `{${ele}}`;
|
|
11255
|
-
result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
11256
|
-
}
|
|
11257
|
-
return utils$30.flatten(result);
|
|
11258
|
-
};
|
|
11259
|
-
const expand$1 = (ast, options = {}) => {
|
|
11260
|
-
const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
|
|
11261
|
-
const walk$1 = (node, parent = {}) => {
|
|
11262
|
-
node.queue = [];
|
|
11263
|
-
let p$1 = parent;
|
|
11264
|
-
let q$1 = parent.queue;
|
|
11265
|
-
while (p$1.type !== "brace" && p$1.type !== "root" && p$1.parent) {
|
|
11266
|
-
p$1 = p$1.parent;
|
|
11267
|
-
q$1 = p$1.queue;
|
|
11268
|
-
}
|
|
11269
|
-
if (node.invalid || node.dollar) {
|
|
11270
|
-
q$1.push(append(q$1.pop(), stringify$2(node, options)));
|
|
11271
|
-
return;
|
|
11272
|
-
}
|
|
11273
|
-
if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
|
|
11274
|
-
q$1.push(append(q$1.pop(), ["{}"]));
|
|
11275
|
-
return;
|
|
11276
|
-
}
|
|
11277
|
-
if (node.nodes && node.ranges > 0) {
|
|
11278
|
-
const args = utils$30.reduce(node.nodes);
|
|
11279
|
-
if (utils$30.exceedsLimit(...args, options.step, rangeLimit)) throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
11280
|
-
let range = fill(...args, options);
|
|
11281
|
-
if (range.length === 0) range = stringify$2(node, options);
|
|
11282
|
-
q$1.push(append(q$1.pop(), range));
|
|
11283
|
-
node.nodes = [];
|
|
11284
|
-
return;
|
|
11285
|
-
}
|
|
11286
|
-
const enclose = utils$30.encloseBrace(node);
|
|
11287
|
-
let queue$1 = node.queue;
|
|
11288
|
-
let block = node;
|
|
11289
|
-
while (block.type !== "brace" && block.type !== "root" && block.parent) {
|
|
11290
|
-
block = block.parent;
|
|
11291
|
-
queue$1 = block.queue;
|
|
11292
|
-
}
|
|
11293
|
-
for (let i$3 = 0; i$3 < node.nodes.length; i$3++) {
|
|
11294
|
-
const child = node.nodes[i$3];
|
|
11295
|
-
if (child.type === "comma" && node.type === "brace") {
|
|
11296
|
-
if (i$3 === 1) queue$1.push("");
|
|
11297
|
-
queue$1.push("");
|
|
11298
|
-
continue;
|
|
11299
|
-
}
|
|
11300
|
-
if (child.type === "close") {
|
|
11301
|
-
q$1.push(append(q$1.pop(), queue$1, enclose));
|
|
11302
|
-
continue;
|
|
11303
|
-
}
|
|
11304
|
-
if (child.value && child.type !== "open") {
|
|
11305
|
-
queue$1.push(append(queue$1.pop(), child.value));
|
|
11306
|
-
continue;
|
|
11307
|
-
}
|
|
11308
|
-
if (child.nodes) walk$1(child, node);
|
|
11309
|
-
}
|
|
11310
|
-
return queue$1;
|
|
11311
|
-
};
|
|
11312
|
-
return utils$30.flatten(walk$1(ast));
|
|
11313
|
-
};
|
|
11314
|
-
module.exports = expand$1;
|
|
11315
|
-
} });
|
|
11316
|
-
|
|
11317
|
-
//#endregion
|
|
11318
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
11319
|
-
var require_constants$1 = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
11320
|
-
module.exports = {
|
|
11321
|
-
MAX_LENGTH: 1e4,
|
|
11322
|
-
CHAR_0: "0",
|
|
11323
|
-
CHAR_9: "9",
|
|
11324
|
-
CHAR_UPPERCASE_A: "A",
|
|
11325
|
-
CHAR_LOWERCASE_A: "a",
|
|
11326
|
-
CHAR_UPPERCASE_Z: "Z",
|
|
11327
|
-
CHAR_LOWERCASE_Z: "z",
|
|
11328
|
-
CHAR_LEFT_PARENTHESES: "(",
|
|
11329
|
-
CHAR_RIGHT_PARENTHESES: ")",
|
|
11330
|
-
CHAR_ASTERISK: "*",
|
|
11331
|
-
CHAR_AMPERSAND: "&",
|
|
11332
|
-
CHAR_AT: "@",
|
|
11333
|
-
CHAR_BACKSLASH: "\\",
|
|
11334
|
-
CHAR_BACKTICK: "`",
|
|
11335
|
-
CHAR_CARRIAGE_RETURN: "\r",
|
|
11336
|
-
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
11337
|
-
CHAR_COLON: ":",
|
|
11338
|
-
CHAR_COMMA: ",",
|
|
11339
|
-
CHAR_DOLLAR: "$",
|
|
11340
|
-
CHAR_DOT: ".",
|
|
11341
|
-
CHAR_DOUBLE_QUOTE: "\"",
|
|
11342
|
-
CHAR_EQUAL: "=",
|
|
11343
|
-
CHAR_EXCLAMATION_MARK: "!",
|
|
11344
|
-
CHAR_FORM_FEED: "\f",
|
|
11345
|
-
CHAR_FORWARD_SLASH: "/",
|
|
11346
|
-
CHAR_HASH: "#",
|
|
11347
|
-
CHAR_HYPHEN_MINUS: "-",
|
|
11348
|
-
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
11349
|
-
CHAR_LEFT_CURLY_BRACE: "{",
|
|
11350
|
-
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
11351
|
-
CHAR_LINE_FEED: "\n",
|
|
11352
|
-
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
11353
|
-
CHAR_PERCENT: "%",
|
|
11354
|
-
CHAR_PLUS: "+",
|
|
11355
|
-
CHAR_QUESTION_MARK: "?",
|
|
11356
|
-
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
11357
|
-
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
11358
|
-
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
11359
|
-
CHAR_SEMICOLON: ";",
|
|
11360
|
-
CHAR_SINGLE_QUOTE: "'",
|
|
11361
|
-
CHAR_SPACE: " ",
|
|
11362
|
-
CHAR_TAB: " ",
|
|
11363
|
-
CHAR_UNDERSCORE: "_",
|
|
11364
|
-
CHAR_VERTICAL_LINE: "|",
|
|
11365
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE: ""
|
|
11366
|
-
};
|
|
11367
|
-
} });
|
|
11368
|
-
|
|
11369
|
-
//#endregion
|
|
11370
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
11371
|
-
var require_parse = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
11372
|
-
const stringify$1 = require_stringify();
|
|
11373
|
-
/**
|
|
11374
|
-
* Constants
|
|
11375
|
-
*/
|
|
11376
|
-
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$1();
|
|
11377
|
-
/**
|
|
11378
|
-
* parse
|
|
11379
|
-
*/
|
|
11380
|
-
const parse$1 = (input, options = {}) => {
|
|
11381
|
-
if (typeof input !== "string") throw new TypeError("Expected a string");
|
|
11382
|
-
const opts = options || {};
|
|
11383
|
-
const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
11384
|
-
if (input.length > max) throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
11385
|
-
const ast = {
|
|
11386
|
-
type: "root",
|
|
11387
|
-
input,
|
|
11388
|
-
nodes: []
|
|
11389
|
-
};
|
|
11390
|
-
const stack = [ast];
|
|
11391
|
-
let block = ast;
|
|
11392
|
-
let prev = ast;
|
|
11393
|
-
let brackets = 0;
|
|
11394
|
-
const length = input.length;
|
|
11395
|
-
let index = 0;
|
|
11396
|
-
let depth$1 = 0;
|
|
11397
|
-
let value;
|
|
11398
|
-
/**
|
|
11399
|
-
* Helpers
|
|
11400
|
-
*/
|
|
11401
|
-
const advance = () => input[index++];
|
|
11402
|
-
const push = (node) => {
|
|
11403
|
-
if (node.type === "text" && prev.type === "dot") prev.type = "text";
|
|
11404
|
-
if (prev && prev.type === "text" && node.type === "text") {
|
|
11405
|
-
prev.value += node.value;
|
|
11406
|
-
return;
|
|
11407
|
-
}
|
|
11408
|
-
block.nodes.push(node);
|
|
11409
|
-
node.parent = block;
|
|
11410
|
-
node.prev = prev;
|
|
11411
|
-
prev = node;
|
|
11412
|
-
return node;
|
|
11413
|
-
};
|
|
11414
|
-
push({ type: "bos" });
|
|
11415
|
-
while (index < length) {
|
|
11416
|
-
block = stack[stack.length - 1];
|
|
11417
|
-
value = advance();
|
|
11418
|
-
/**
|
|
11419
|
-
* Invalid chars
|
|
11420
|
-
*/
|
|
11421
|
-
if (value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE) continue;
|
|
11422
|
-
/**
|
|
11423
|
-
* Escaped chars
|
|
11424
|
-
*/
|
|
11425
|
-
if (value === CHAR_BACKSLASH) {
|
|
11426
|
-
push({
|
|
11427
|
-
type: "text",
|
|
11428
|
-
value: (options.keepEscaping ? value : "") + advance()
|
|
11429
|
-
});
|
|
11430
|
-
continue;
|
|
11431
|
-
}
|
|
11432
|
-
/**
|
|
11433
|
-
* Right square bracket (literal): ']'
|
|
11434
|
-
*/
|
|
11435
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
11436
|
-
push({
|
|
11437
|
-
type: "text",
|
|
11438
|
-
value: "\\" + value
|
|
11439
|
-
});
|
|
11440
|
-
continue;
|
|
11441
|
-
}
|
|
11442
|
-
/**
|
|
11443
|
-
* Left square bracket: '['
|
|
11444
|
-
*/
|
|
11445
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
11446
|
-
brackets++;
|
|
11447
|
-
let next;
|
|
11448
|
-
while (index < length && (next = advance())) {
|
|
11449
|
-
value += next;
|
|
11450
|
-
if (next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
11451
|
-
brackets++;
|
|
11452
|
-
continue;
|
|
11453
|
-
}
|
|
11454
|
-
if (next === CHAR_BACKSLASH) {
|
|
11455
|
-
value += advance();
|
|
11456
|
-
continue;
|
|
11457
|
-
}
|
|
11458
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
11459
|
-
brackets--;
|
|
11460
|
-
if (brackets === 0) break;
|
|
11461
|
-
}
|
|
11462
|
-
}
|
|
11463
|
-
push({
|
|
11464
|
-
type: "text",
|
|
11465
|
-
value
|
|
11466
|
-
});
|
|
11467
|
-
continue;
|
|
11468
|
-
}
|
|
11469
|
-
/**
|
|
11470
|
-
* Parentheses
|
|
11471
|
-
*/
|
|
11472
|
-
if (value === CHAR_LEFT_PARENTHESES) {
|
|
11473
|
-
block = push({
|
|
11474
|
-
type: "paren",
|
|
11475
|
-
nodes: []
|
|
11476
|
-
});
|
|
11477
|
-
stack.push(block);
|
|
11478
|
-
push({
|
|
11479
|
-
type: "text",
|
|
11480
|
-
value
|
|
11481
|
-
});
|
|
11482
|
-
continue;
|
|
11483
|
-
}
|
|
11484
|
-
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
11485
|
-
if (block.type !== "paren") {
|
|
11486
|
-
push({
|
|
11487
|
-
type: "text",
|
|
11488
|
-
value
|
|
11489
|
-
});
|
|
11490
|
-
continue;
|
|
11491
|
-
}
|
|
11492
|
-
block = stack.pop();
|
|
11493
|
-
push({
|
|
11494
|
-
type: "text",
|
|
11495
|
-
value
|
|
11496
|
-
});
|
|
11497
|
-
block = stack[stack.length - 1];
|
|
11498
|
-
continue;
|
|
11499
|
-
}
|
|
11500
|
-
/**
|
|
11501
|
-
* Quotes: '|"|`
|
|
11502
|
-
*/
|
|
11503
|
-
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
11504
|
-
const open = value;
|
|
11505
|
-
let next;
|
|
11506
|
-
if (options.keepQuotes !== true) value = "";
|
|
11507
|
-
while (index < length && (next = advance())) {
|
|
11508
|
-
if (next === CHAR_BACKSLASH) {
|
|
11509
|
-
value += next + advance();
|
|
11510
|
-
continue;
|
|
11511
|
-
}
|
|
11512
|
-
if (next === open) {
|
|
11513
|
-
if (options.keepQuotes === true) value += next;
|
|
11514
|
-
break;
|
|
11515
|
-
}
|
|
11516
|
-
value += next;
|
|
11517
|
-
}
|
|
11518
|
-
push({
|
|
11519
|
-
type: "text",
|
|
11520
|
-
value
|
|
11521
|
-
});
|
|
11522
|
-
continue;
|
|
11523
|
-
}
|
|
11524
|
-
/**
|
|
11525
|
-
* Left curly brace: '{'
|
|
11526
|
-
*/
|
|
11527
|
-
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
11528
|
-
depth$1++;
|
|
11529
|
-
const dollar = prev.value && prev.value.slice(-1) === "$" || block.dollar === true;
|
|
11530
|
-
const brace = {
|
|
11531
|
-
type: "brace",
|
|
11532
|
-
open: true,
|
|
11533
|
-
close: false,
|
|
11534
|
-
dollar,
|
|
11535
|
-
depth: depth$1,
|
|
11536
|
-
commas: 0,
|
|
11537
|
-
ranges: 0,
|
|
11538
|
-
nodes: []
|
|
11539
|
-
};
|
|
11540
|
-
block = push(brace);
|
|
11541
|
-
stack.push(block);
|
|
11542
|
-
push({
|
|
11543
|
-
type: "open",
|
|
11544
|
-
value
|
|
11545
|
-
});
|
|
11546
|
-
continue;
|
|
11547
|
-
}
|
|
11548
|
-
/**
|
|
11549
|
-
* Right curly brace: '}'
|
|
11550
|
-
*/
|
|
11551
|
-
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
11552
|
-
if (block.type !== "brace") {
|
|
11553
|
-
push({
|
|
11554
|
-
type: "text",
|
|
11555
|
-
value
|
|
11556
|
-
});
|
|
11557
|
-
continue;
|
|
11558
|
-
}
|
|
11559
|
-
const type = "close";
|
|
11560
|
-
block = stack.pop();
|
|
11561
|
-
block.close = true;
|
|
11562
|
-
push({
|
|
11563
|
-
type,
|
|
11564
|
-
value
|
|
11565
|
-
});
|
|
11566
|
-
depth$1--;
|
|
11567
|
-
block = stack[stack.length - 1];
|
|
11568
|
-
continue;
|
|
11569
|
-
}
|
|
11570
|
-
/**
|
|
11571
|
-
* Comma: ','
|
|
11572
|
-
*/
|
|
11573
|
-
if (value === CHAR_COMMA && depth$1 > 0) {
|
|
11574
|
-
if (block.ranges > 0) {
|
|
11575
|
-
block.ranges = 0;
|
|
11576
|
-
const open = block.nodes.shift();
|
|
11577
|
-
block.nodes = [open, {
|
|
11578
|
-
type: "text",
|
|
11579
|
-
value: stringify$1(block)
|
|
11580
|
-
}];
|
|
11581
|
-
}
|
|
11582
|
-
push({
|
|
11583
|
-
type: "comma",
|
|
11584
|
-
value
|
|
11585
|
-
});
|
|
11586
|
-
block.commas++;
|
|
11587
|
-
continue;
|
|
11588
|
-
}
|
|
11589
|
-
/**
|
|
11590
|
-
* Dot: '.'
|
|
11591
|
-
*/
|
|
11592
|
-
if (value === CHAR_DOT && depth$1 > 0 && block.commas === 0) {
|
|
11593
|
-
const siblings = block.nodes;
|
|
11594
|
-
if (depth$1 === 0 || siblings.length === 0) {
|
|
11595
|
-
push({
|
|
11596
|
-
type: "text",
|
|
11597
|
-
value
|
|
11598
|
-
});
|
|
11599
|
-
continue;
|
|
11600
|
-
}
|
|
11601
|
-
if (prev.type === "dot") {
|
|
11602
|
-
block.range = [];
|
|
11603
|
-
prev.value += value;
|
|
11604
|
-
prev.type = "range";
|
|
11605
|
-
if (block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
11606
|
-
block.invalid = true;
|
|
11607
|
-
block.ranges = 0;
|
|
11608
|
-
prev.type = "text";
|
|
11609
|
-
continue;
|
|
11610
|
-
}
|
|
11611
|
-
block.ranges++;
|
|
11612
|
-
block.args = [];
|
|
11613
|
-
continue;
|
|
11614
|
-
}
|
|
11615
|
-
if (prev.type === "range") {
|
|
11616
|
-
siblings.pop();
|
|
11617
|
-
const before = siblings[siblings.length - 1];
|
|
11618
|
-
before.value += prev.value + value;
|
|
11619
|
-
prev = before;
|
|
11620
|
-
block.ranges--;
|
|
11621
|
-
continue;
|
|
11622
|
-
}
|
|
11623
|
-
push({
|
|
11624
|
-
type: "dot",
|
|
11625
|
-
value
|
|
11626
|
-
});
|
|
11627
|
-
continue;
|
|
11628
|
-
}
|
|
11629
|
-
/**
|
|
11630
|
-
* Text
|
|
11631
|
-
*/
|
|
11632
|
-
push({
|
|
11633
|
-
type: "text",
|
|
11634
|
-
value
|
|
11635
|
-
});
|
|
11636
|
-
}
|
|
11637
|
-
do {
|
|
11638
|
-
block = stack.pop();
|
|
11639
|
-
if (block.type !== "root") {
|
|
11640
|
-
block.nodes.forEach((node) => {
|
|
11641
|
-
if (!node.nodes) {
|
|
11642
|
-
if (node.type === "open") node.isOpen = true;
|
|
11643
|
-
if (node.type === "close") node.isClose = true;
|
|
11644
|
-
if (!node.nodes) node.type = "text";
|
|
11645
|
-
node.invalid = true;
|
|
11646
|
-
}
|
|
11647
|
-
});
|
|
11648
|
-
const parent = stack[stack.length - 1];
|
|
11649
|
-
const index$1 = parent.nodes.indexOf(block);
|
|
11650
|
-
parent.nodes.splice(index$1, 1, ...block.nodes);
|
|
11651
|
-
}
|
|
11652
|
-
} while (stack.length > 0);
|
|
11653
|
-
push({ type: "eos" });
|
|
11654
|
-
return ast;
|
|
11655
|
-
};
|
|
11656
|
-
module.exports = parse$1;
|
|
11657
|
-
} });
|
|
11658
|
-
|
|
11659
|
-
//#endregion
|
|
11660
|
-
//#region ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
11661
|
-
var require_braces = __commonJS({ "../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
11662
|
-
const stringify = require_stringify();
|
|
11663
|
-
const compile = require_compile();
|
|
11664
|
-
const expand = require_expand();
|
|
11665
|
-
const parse = require_parse();
|
|
11666
|
-
/**
|
|
11667
|
-
* Expand the given pattern or create a regex-compatible string.
|
|
11668
|
-
*
|
|
11669
|
-
* ```js
|
|
11670
|
-
* const braces = require('braces');
|
|
11671
|
-
* console.log(braces('{a,b,c}', { compile: true })); //=> ['(a|b|c)']
|
|
11672
|
-
* console.log(braces('{a,b,c}')); //=> ['a', 'b', 'c']
|
|
11673
|
-
* ```
|
|
11674
|
-
* @param {String} `str`
|
|
11675
|
-
* @param {Object} `options`
|
|
11676
|
-
* @return {String}
|
|
11677
|
-
* @api public
|
|
11678
|
-
*/
|
|
11679
|
-
const braces$1 = (input, options = {}) => {
|
|
11680
|
-
let output = [];
|
|
11681
|
-
if (Array.isArray(input)) for (const pattern$1 of input) {
|
|
11682
|
-
const result = braces$1.create(pattern$1, options);
|
|
11683
|
-
if (Array.isArray(result)) output.push(...result);
|
|
11684
|
-
else output.push(result);
|
|
11685
|
-
}
|
|
11686
|
-
else output = [].concat(braces$1.create(input, options));
|
|
11687
|
-
if (options && options.expand === true && options.nodupes === true) output = [...new Set(output)];
|
|
11688
|
-
return output;
|
|
11689
|
-
};
|
|
11690
|
-
/**
|
|
11691
|
-
* Parse the given `str` with the given `options`.
|
|
11692
|
-
*
|
|
11693
|
-
* ```js
|
|
11694
|
-
* // braces.parse(pattern, [, options]);
|
|
11695
|
-
* const ast = braces.parse('a/{b,c}/d');
|
|
11696
|
-
* console.log(ast);
|
|
11697
|
-
* ```
|
|
11698
|
-
* @param {String} pattern Brace pattern to parse
|
|
11699
|
-
* @param {Object} options
|
|
11700
|
-
* @return {Object} Returns an AST
|
|
11701
|
-
* @api public
|
|
11702
|
-
*/
|
|
11703
|
-
braces$1.parse = (input, options = {}) => parse(input, options);
|
|
11704
|
-
/**
|
|
11705
|
-
* Creates a braces string from an AST, or an AST node.
|
|
11706
|
-
*
|
|
11707
|
-
* ```js
|
|
11708
|
-
* const braces = require('braces');
|
|
11709
|
-
* let ast = braces.parse('foo/{a,b}/bar');
|
|
11710
|
-
* console.log(stringify(ast.nodes[2])); //=> '{a,b}'
|
|
11711
|
-
* ```
|
|
11712
|
-
* @param {String} `input` Brace pattern or AST.
|
|
11713
|
-
* @param {Object} `options`
|
|
11714
|
-
* @return {Array} Returns an array of expanded values.
|
|
11715
|
-
* @api public
|
|
11716
|
-
*/
|
|
11717
|
-
braces$1.stringify = (input, options = {}) => {
|
|
11718
|
-
if (typeof input === "string") return stringify(braces$1.parse(input, options), options);
|
|
11719
|
-
return stringify(input, options);
|
|
11720
|
-
};
|
|
11721
|
-
/**
|
|
11722
|
-
* Compiles a brace pattern into a regex-compatible, optimized string.
|
|
11723
|
-
* This method is called by the main [braces](#braces) function by default.
|
|
11724
|
-
*
|
|
11725
|
-
* ```js
|
|
11726
|
-
* const braces = require('braces');
|
|
11727
|
-
* console.log(braces.compile('a/{b,c}/d'));
|
|
11728
|
-
* //=> ['a/(b|c)/d']
|
|
11729
|
-
* ```
|
|
11730
|
-
* @param {String} `input` Brace pattern or AST.
|
|
11731
|
-
* @param {Object} `options`
|
|
11732
|
-
* @return {Array} Returns an array of expanded values.
|
|
11733
|
-
* @api public
|
|
11734
|
-
*/
|
|
11735
|
-
braces$1.compile = (input, options = {}) => {
|
|
11736
|
-
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
11737
|
-
return compile(input, options);
|
|
11738
|
-
};
|
|
11739
|
-
/**
|
|
11740
|
-
* Expands a brace pattern into an array. This method is called by the
|
|
11741
|
-
* main [braces](#braces) function when `options.expand` is true. Before
|
|
11742
|
-
* using this method it's recommended that you read the [performance notes](#performance))
|
|
11743
|
-
* and advantages of using [.compile](#compile) instead.
|
|
11744
|
-
*
|
|
11745
|
-
* ```js
|
|
11746
|
-
* const braces = require('braces');
|
|
11747
|
-
* console.log(braces.expand('a/{b,c}/d'));
|
|
11748
|
-
* //=> ['a/b/d', 'a/c/d'];
|
|
11749
|
-
* ```
|
|
11750
|
-
* @param {String} `pattern` Brace pattern
|
|
11751
|
-
* @param {Object} `options`
|
|
11752
|
-
* @return {Array} Returns an array of expanded values.
|
|
11753
|
-
* @api public
|
|
11754
|
-
*/
|
|
11755
|
-
braces$1.expand = (input, options = {}) => {
|
|
11756
|
-
if (typeof input === "string") input = braces$1.parse(input, options);
|
|
11757
|
-
let result = expand(input, options);
|
|
11758
|
-
if (options.noempty === true) result = result.filter(Boolean);
|
|
11759
|
-
if (options.nodupes === true) result = [...new Set(result)];
|
|
11760
|
-
return result;
|
|
11761
|
-
};
|
|
11762
|
-
/**
|
|
11763
|
-
* Processes a brace pattern and returns either an expanded array
|
|
11764
|
-
* (if `options.expand` is true), a highly optimized regex-compatible string.
|
|
11765
|
-
* This method is called by the main [braces](#braces) function.
|
|
11766
|
-
*
|
|
11767
|
-
* ```js
|
|
11768
|
-
* const braces = require('braces');
|
|
11769
|
-
* console.log(braces.create('user-{200..300}/project-{a,b,c}-{1..10}'))
|
|
11770
|
-
* //=> 'user-(20[0-9]|2[1-9][0-9]|300)/project-(a|b|c)-([1-9]|10)'
|
|
11771
|
-
* ```
|
|
11772
|
-
* @param {String} `pattern` Brace pattern
|
|
11773
|
-
* @param {Object} `options`
|
|
11774
|
-
* @return {Array} Returns an array of expanded values.
|
|
11775
|
-
* @api public
|
|
11776
|
-
*/
|
|
11777
|
-
braces$1.create = (input, options = {}) => {
|
|
11778
|
-
if (input === "" || input.length < 3) return [input];
|
|
11779
|
-
return options.expand !== true ? braces$1.compile(input, options) : braces$1.expand(input, options);
|
|
11780
|
-
};
|
|
11781
|
-
/**
|
|
11782
|
-
* Expose "braces"
|
|
11783
|
-
*/
|
|
11784
|
-
module.exports = braces$1;
|
|
11785
|
-
} });
|
|
11786
|
-
|
|
11787
|
-
//#endregion
|
|
11788
|
-
//#region ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
11789
|
-
var require_micromatch = __commonJS({ "../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
11790
|
-
const util$7 = require("util");
|
|
11791
|
-
const braces = require_braces();
|
|
11792
|
-
const picomatch = require_picomatch();
|
|
11793
|
-
const utils$29 = require_utils$5();
|
|
11794
|
-
const isEmptyString = (v$1) => v$1 === "" || v$1 === "./";
|
|
11795
|
-
const hasBraces = (v$1) => {
|
|
11796
|
-
const index = v$1.indexOf("{");
|
|
11797
|
-
return index > -1 && v$1.indexOf("}", index) > -1;
|
|
11798
|
-
};
|
|
11799
|
-
/**
|
|
11800
|
-
* Returns an array of strings that match one or more glob patterns.
|
|
11801
|
-
*
|
|
11802
|
-
* ```js
|
|
11803
|
-
* const mm = require('micromatch');
|
|
11804
|
-
* // mm(list, patterns[, options]);
|
|
11805
|
-
*
|
|
11806
|
-
* console.log(mm(['a.js', 'a.txt'], ['*.js']));
|
|
11807
|
-
* //=> [ 'a.js' ]
|
|
11808
|
-
* ```
|
|
11809
|
-
* @param {String|Array<string>} `list` List of strings to match.
|
|
11810
|
-
* @param {String|Array<string>} `patterns` One or more glob patterns to use for matching.
|
|
11811
|
-
* @param {Object} `options` See available [options](#options)
|
|
11812
|
-
* @return {Array} Returns an array of matches
|
|
11813
|
-
* @summary false
|
|
11814
|
-
* @api public
|
|
11815
|
-
*/
|
|
11816
|
-
const micromatch = (list, patterns, options) => {
|
|
11817
|
-
patterns = [].concat(patterns);
|
|
11818
|
-
list = [].concat(list);
|
|
11819
|
-
let omit = /* @__PURE__ */ new Set();
|
|
11820
|
-
let keep = /* @__PURE__ */ new Set();
|
|
11821
|
-
let items = /* @__PURE__ */ new Set();
|
|
11822
|
-
let negatives = 0;
|
|
11823
|
-
let onResult = (state) => {
|
|
11824
|
-
items.add(state.output);
|
|
11825
|
-
if (options && options.onResult) options.onResult(state);
|
|
11826
|
-
};
|
|
11827
|
-
for (let i$3 = 0; i$3 < patterns.length; i$3++) {
|
|
11828
|
-
let isMatch = picomatch(String(patterns[i$3]), {
|
|
11829
|
-
...options,
|
|
11830
|
-
onResult
|
|
11831
|
-
}, true);
|
|
11832
|
-
let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
|
|
11833
|
-
if (negated) negatives++;
|
|
11834
|
-
for (let item of list) {
|
|
11835
|
-
let matched = isMatch(item, true);
|
|
11836
|
-
let match = negated ? !matched.isMatch : matched.isMatch;
|
|
11837
|
-
if (!match) continue;
|
|
11838
|
-
if (negated) omit.add(matched.output);
|
|
11839
|
-
else {
|
|
11840
|
-
omit.delete(matched.output);
|
|
11841
|
-
keep.add(matched.output);
|
|
11842
|
-
}
|
|
11843
|
-
}
|
|
11844
|
-
}
|
|
11845
|
-
let result = negatives === patterns.length ? [...items] : [...keep];
|
|
11846
|
-
let matches = result.filter((item) => !omit.has(item));
|
|
11847
|
-
if (options && matches.length === 0) {
|
|
11848
|
-
if (options.failglob === true) throw new Error(`No matches found for "${patterns.join(", ")}"`);
|
|
11849
|
-
if (options.nonull === true || options.nullglob === true) return options.unescape ? patterns.map((p$1) => p$1.replace(/\\/g, "")) : patterns;
|
|
11850
|
-
}
|
|
11851
|
-
return matches;
|
|
11852
|
-
};
|
|
11853
|
-
/**
|
|
11854
|
-
* Backwards compatibility
|
|
11855
|
-
*/
|
|
11856
|
-
micromatch.match = micromatch;
|
|
11857
|
-
/**
|
|
11858
|
-
* Returns a matcher function from the given glob `pattern` and `options`.
|
|
11859
|
-
* The returned function takes a string to match as its only argument and returns
|
|
11860
|
-
* true if the string is a match.
|
|
11861
|
-
*
|
|
11862
|
-
* ```js
|
|
11863
|
-
* const mm = require('micromatch');
|
|
11864
|
-
* // mm.matcher(pattern[, options]);
|
|
11865
|
-
*
|
|
11866
|
-
* const isMatch = mm.matcher('*.!(*a)');
|
|
11867
|
-
* console.log(isMatch('a.a')); //=> false
|
|
11868
|
-
* console.log(isMatch('a.b')); //=> true
|
|
11869
|
-
* ```
|
|
11870
|
-
* @param {String} `pattern` Glob pattern
|
|
11871
|
-
* @param {Object} `options`
|
|
11872
|
-
* @return {Function} Returns a matcher function.
|
|
11873
|
-
* @api public
|
|
11874
|
-
*/
|
|
11875
|
-
micromatch.matcher = (pattern$1, options) => picomatch(pattern$1, options);
|
|
11876
|
-
/**
|
|
11877
|
-
* Returns true if **any** of the given glob `patterns` match the specified `string`.
|
|
11878
|
-
*
|
|
11879
|
-
* ```js
|
|
11880
|
-
* const mm = require('micromatch');
|
|
11881
|
-
* // mm.isMatch(string, patterns[, options]);
|
|
11882
|
-
*
|
|
11883
|
-
* console.log(mm.isMatch('a.a', ['b.*', '*.a'])); //=> true
|
|
11884
|
-
* console.log(mm.isMatch('a.a', 'b.*')); //=> false
|
|
11885
|
-
* ```
|
|
11886
|
-
* @param {String} `str` The string to test.
|
|
11887
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
11888
|
-
* @param {Object} `[options]` See available [options](#options).
|
|
11889
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
11890
|
-
* @api public
|
|
11891
|
-
*/
|
|
11892
|
-
micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
|
|
11893
|
-
/**
|
|
11894
|
-
* Backwards compatibility
|
|
11895
|
-
*/
|
|
11896
|
-
micromatch.any = micromatch.isMatch;
|
|
11897
|
-
/**
|
|
11898
|
-
* Returns a list of strings that _**do not match any**_ of the given `patterns`.
|
|
11899
|
-
*
|
|
11900
|
-
* ```js
|
|
11901
|
-
* const mm = require('micromatch');
|
|
11902
|
-
* // mm.not(list, patterns[, options]);
|
|
11903
|
-
*
|
|
11904
|
-
* console.log(mm.not(['a.a', 'b.b', 'c.c'], '*.a'));
|
|
11905
|
-
* //=> ['b.b', 'c.c']
|
|
11906
|
-
* ```
|
|
11907
|
-
* @param {Array} `list` Array of strings to match.
|
|
11908
|
-
* @param {String|Array} `patterns` One or more glob pattern to use for matching.
|
|
11909
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11910
|
-
* @return {Array} Returns an array of strings that **do not match** the given patterns.
|
|
11911
|
-
* @api public
|
|
11912
|
-
*/
|
|
11913
|
-
micromatch.not = (list, patterns, options = {}) => {
|
|
11914
|
-
patterns = [].concat(patterns).map(String);
|
|
11915
|
-
let result = /* @__PURE__ */ new Set();
|
|
11916
|
-
let items = [];
|
|
11917
|
-
let onResult = (state) => {
|
|
11918
|
-
if (options.onResult) options.onResult(state);
|
|
11919
|
-
items.push(state.output);
|
|
11920
|
-
};
|
|
11921
|
-
let matches = new Set(micromatch(list, patterns, {
|
|
11922
|
-
...options,
|
|
11923
|
-
onResult
|
|
11924
|
-
}));
|
|
11925
|
-
for (let item of items) if (!matches.has(item)) result.add(item);
|
|
11926
|
-
return [...result];
|
|
11927
|
-
};
|
|
11928
|
-
/**
|
|
11929
|
-
* Returns true if the given `string` contains the given pattern. Similar
|
|
11930
|
-
* to [.isMatch](#isMatch) but the pattern can match any part of the string.
|
|
11931
|
-
*
|
|
11932
|
-
* ```js
|
|
11933
|
-
* var mm = require('micromatch');
|
|
11934
|
-
* // mm.contains(string, pattern[, options]);
|
|
11935
|
-
*
|
|
11936
|
-
* console.log(mm.contains('aa/bb/cc', '*b'));
|
|
11937
|
-
* //=> true
|
|
11938
|
-
* console.log(mm.contains('aa/bb/cc', '*d'));
|
|
11939
|
-
* //=> false
|
|
11940
|
-
* ```
|
|
11941
|
-
* @param {String} `str` The string to match.
|
|
11942
|
-
* @param {String|Array} `patterns` Glob pattern to use for matching.
|
|
11943
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11944
|
-
* @return {Boolean} Returns true if any of the patterns matches any part of `str`.
|
|
11945
|
-
* @api public
|
|
11946
|
-
*/
|
|
11947
|
-
micromatch.contains = (str, pattern$1, options) => {
|
|
11948
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
11949
|
-
if (Array.isArray(pattern$1)) return pattern$1.some((p$1) => micromatch.contains(str, p$1, options));
|
|
11950
|
-
if (typeof pattern$1 === "string") {
|
|
11951
|
-
if (isEmptyString(str) || isEmptyString(pattern$1)) return false;
|
|
11952
|
-
if (str.includes(pattern$1) || str.startsWith("./") && str.slice(2).includes(pattern$1)) return true;
|
|
11953
|
-
}
|
|
11954
|
-
return micromatch.isMatch(str, pattern$1, {
|
|
11955
|
-
...options,
|
|
11956
|
-
contains: true
|
|
11957
|
-
});
|
|
11958
|
-
};
|
|
11959
|
-
/**
|
|
11960
|
-
* Filter the keys of the given object with the given `glob` pattern
|
|
11961
|
-
* and `options`. Does not attempt to match nested keys. If you need this feature,
|
|
11962
|
-
* use [glob-object][] instead.
|
|
11963
|
-
*
|
|
11964
|
-
* ```js
|
|
11965
|
-
* const mm = require('micromatch');
|
|
11966
|
-
* // mm.matchKeys(object, patterns[, options]);
|
|
11967
|
-
*
|
|
11968
|
-
* const obj = { aa: 'a', ab: 'b', ac: 'c' };
|
|
11969
|
-
* console.log(mm.matchKeys(obj, '*b'));
|
|
11970
|
-
* //=> { ab: 'b' }
|
|
11971
|
-
* ```
|
|
11972
|
-
* @param {Object} `object` The object with keys to filter.
|
|
11973
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
11974
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
11975
|
-
* @return {Object} Returns an object with only keys that match the given patterns.
|
|
11976
|
-
* @api public
|
|
11977
|
-
*/
|
|
11978
|
-
micromatch.matchKeys = (obj, patterns, options) => {
|
|
11979
|
-
if (!utils$29.isObject(obj)) throw new TypeError("Expected the first argument to be an object");
|
|
11980
|
-
let keys$1 = micromatch(Object.keys(obj), patterns, options);
|
|
11981
|
-
let res = {};
|
|
11982
|
-
for (let key of keys$1) res[key] = obj[key];
|
|
11983
|
-
return res;
|
|
11984
|
-
};
|
|
11985
|
-
/**
|
|
11986
|
-
* Returns true if some of the strings in the given `list` match any of the given glob `patterns`.
|
|
11987
|
-
*
|
|
11988
|
-
* ```js
|
|
11989
|
-
* const mm = require('micromatch');
|
|
11990
|
-
* // mm.some(list, patterns[, options]);
|
|
11991
|
-
*
|
|
11992
|
-
* console.log(mm.some(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
11993
|
-
* // true
|
|
11994
|
-
* console.log(mm.some(['foo.js'], ['*.js', '!foo.js']));
|
|
11995
|
-
* // false
|
|
11996
|
-
* ```
|
|
11997
|
-
* @param {String|Array} `list` The string or array of strings to test. Returns as soon as the first match is found.
|
|
11998
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
11999
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12000
|
-
* @return {Boolean} Returns true if any `patterns` matches any of the strings in `list`
|
|
12001
|
-
* @api public
|
|
12002
|
-
*/
|
|
12003
|
-
micromatch.some = (list, patterns, options) => {
|
|
12004
|
-
let items = [].concat(list);
|
|
12005
|
-
for (let pattern$1 of [].concat(patterns)) {
|
|
12006
|
-
let isMatch = picomatch(String(pattern$1), options);
|
|
12007
|
-
if (items.some((item) => isMatch(item))) return true;
|
|
12008
|
-
}
|
|
12009
|
-
return false;
|
|
12010
|
-
};
|
|
12011
|
-
/**
|
|
12012
|
-
* Returns true if every string in the given `list` matches
|
|
12013
|
-
* any of the given glob `patterns`.
|
|
12014
|
-
*
|
|
12015
|
-
* ```js
|
|
12016
|
-
* const mm = require('micromatch');
|
|
12017
|
-
* // mm.every(list, patterns[, options]);
|
|
12018
|
-
*
|
|
12019
|
-
* console.log(mm.every('foo.js', ['foo.js']));
|
|
12020
|
-
* // true
|
|
12021
|
-
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js']));
|
|
12022
|
-
* // true
|
|
12023
|
-
* console.log(mm.every(['foo.js', 'bar.js'], ['*.js', '!foo.js']));
|
|
12024
|
-
* // false
|
|
12025
|
-
* console.log(mm.every(['foo.js'], ['*.js', '!foo.js']));
|
|
12026
|
-
* // false
|
|
12027
|
-
* ```
|
|
12028
|
-
* @param {String|Array} `list` The string or array of strings to test.
|
|
12029
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
12030
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12031
|
-
* @return {Boolean} Returns true if all `patterns` matches all of the strings in `list`
|
|
12032
|
-
* @api public
|
|
12033
|
-
*/
|
|
12034
|
-
micromatch.every = (list, patterns, options) => {
|
|
12035
|
-
let items = [].concat(list);
|
|
12036
|
-
for (let pattern$1 of [].concat(patterns)) {
|
|
12037
|
-
let isMatch = picomatch(String(pattern$1), options);
|
|
12038
|
-
if (!items.every((item) => isMatch(item))) return false;
|
|
12039
|
-
}
|
|
12040
|
-
return true;
|
|
12041
|
-
};
|
|
12042
|
-
/**
|
|
12043
|
-
* Returns true if **all** of the given `patterns` match
|
|
12044
|
-
* the specified string.
|
|
12045
|
-
*
|
|
12046
|
-
* ```js
|
|
12047
|
-
* const mm = require('micromatch');
|
|
12048
|
-
* // mm.all(string, patterns[, options]);
|
|
12049
|
-
*
|
|
12050
|
-
* console.log(mm.all('foo.js', ['foo.js']));
|
|
12051
|
-
* // true
|
|
12052
|
-
*
|
|
12053
|
-
* console.log(mm.all('foo.js', ['*.js', '!foo.js']));
|
|
12054
|
-
* // false
|
|
12055
|
-
*
|
|
12056
|
-
* console.log(mm.all('foo.js', ['*.js', 'foo.js']));
|
|
12057
|
-
* // true
|
|
12058
|
-
*
|
|
12059
|
-
* console.log(mm.all('foo.js', ['*.js', 'f*', '*o*', '*o.js']));
|
|
12060
|
-
* // true
|
|
12061
|
-
* ```
|
|
12062
|
-
* @param {String|Array} `str` The string to test.
|
|
12063
|
-
* @param {String|Array} `patterns` One or more glob patterns to use for matching.
|
|
12064
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12065
|
-
* @return {Boolean} Returns true if any patterns match `str`
|
|
12066
|
-
* @api public
|
|
12067
|
-
*/
|
|
12068
|
-
micromatch.all = (str, patterns, options) => {
|
|
12069
|
-
if (typeof str !== "string") throw new TypeError(`Expected a string: "${util$7.inspect(str)}"`);
|
|
12070
|
-
return [].concat(patterns).every((p$1) => picomatch(p$1, options)(str));
|
|
12071
|
-
};
|
|
12072
|
-
/**
|
|
12073
|
-
* Returns an array of matches captured by `pattern` in `string, or `null` if the pattern did not match.
|
|
12074
|
-
*
|
|
12075
|
-
* ```js
|
|
12076
|
-
* const mm = require('micromatch');
|
|
12077
|
-
* // mm.capture(pattern, string[, options]);
|
|
12078
|
-
*
|
|
12079
|
-
* console.log(mm.capture('test/*.js', 'test/foo.js'));
|
|
12080
|
-
* //=> ['foo']
|
|
12081
|
-
* console.log(mm.capture('test/*.js', 'foo/bar.css'));
|
|
12082
|
-
* //=> null
|
|
12083
|
-
* ```
|
|
12084
|
-
* @param {String} `glob` Glob pattern to use for matching.
|
|
12085
|
-
* @param {String} `input` String to match
|
|
12086
|
-
* @param {Object} `options` See available [options](#options) for changing how matches are performed
|
|
12087
|
-
* @return {Array|null} Returns an array of captures if the input matches the glob pattern, otherwise `null`.
|
|
12088
|
-
* @api public
|
|
12089
|
-
*/
|
|
12090
|
-
micromatch.capture = (glob, input, options) => {
|
|
12091
|
-
let posix = utils$29.isWindows(options);
|
|
12092
|
-
let regex$1 = picomatch.makeRe(String(glob), {
|
|
12093
|
-
...options,
|
|
12094
|
-
capture: true
|
|
12095
|
-
});
|
|
12096
|
-
let match = regex$1.exec(posix ? utils$29.toPosixSlashes(input) : input);
|
|
12097
|
-
if (match) return match.slice(1).map((v$1) => v$1 === void 0 ? "" : v$1);
|
|
12098
|
-
};
|
|
12099
|
-
/**
|
|
12100
|
-
* Create a regular expression from the given glob `pattern`.
|
|
12101
|
-
*
|
|
12102
|
-
* ```js
|
|
12103
|
-
* const mm = require('micromatch');
|
|
12104
|
-
* // mm.makeRe(pattern[, options]);
|
|
12105
|
-
*
|
|
12106
|
-
* console.log(mm.makeRe('*.js'));
|
|
12107
|
-
* //=> /^(?:(\.[\\\/])?(?!\.)(?=.)[^\/]*?\.js)$/
|
|
12108
|
-
* ```
|
|
12109
|
-
* @param {String} `pattern` A glob pattern to convert to regex.
|
|
12110
|
-
* @param {Object} `options`
|
|
12111
|
-
* @return {RegExp} Returns a regex created from the given pattern.
|
|
12112
|
-
* @api public
|
|
12113
|
-
*/
|
|
12114
|
-
micromatch.makeRe = (...args) => picomatch.makeRe(...args);
|
|
12115
|
-
/**
|
|
12116
|
-
* Scan a glob pattern to separate the pattern into segments. Used
|
|
12117
|
-
* by the [split](#split) method.
|
|
12118
|
-
*
|
|
12119
|
-
* ```js
|
|
12120
|
-
* const mm = require('micromatch');
|
|
12121
|
-
* const state = mm.scan(pattern[, options]);
|
|
12122
|
-
* ```
|
|
12123
|
-
* @param {String} `pattern`
|
|
12124
|
-
* @param {Object} `options`
|
|
12125
|
-
* @return {Object} Returns an object with
|
|
12126
|
-
* @api public
|
|
12127
|
-
*/
|
|
12128
|
-
micromatch.scan = (...args) => picomatch.scan(...args);
|
|
12129
|
-
/**
|
|
12130
|
-
* Parse a glob pattern to create the source string for a regular
|
|
12131
|
-
* expression.
|
|
12132
|
-
*
|
|
12133
|
-
* ```js
|
|
12134
|
-
* const mm = require('micromatch');
|
|
12135
|
-
* const state = mm.parse(pattern[, options]);
|
|
12136
|
-
* ```
|
|
12137
|
-
* @param {String} `glob`
|
|
12138
|
-
* @param {Object} `options`
|
|
12139
|
-
* @return {Object} Returns an object with useful properties and output to be used as regex source string.
|
|
12140
|
-
* @api public
|
|
12141
|
-
*/
|
|
12142
|
-
micromatch.parse = (patterns, options) => {
|
|
12143
|
-
let res = [];
|
|
12144
|
-
for (let pattern$1 of [].concat(patterns || [])) for (let str of braces(String(pattern$1), options)) res.push(picomatch.parse(str, options));
|
|
12145
|
-
return res;
|
|
12146
|
-
};
|
|
12147
|
-
/**
|
|
12148
|
-
* Process the given brace `pattern`.
|
|
12149
|
-
*
|
|
12150
|
-
* ```js
|
|
12151
|
-
* const { braces } = require('micromatch');
|
|
12152
|
-
* console.log(braces('foo/{a,b,c}/bar'));
|
|
12153
|
-
* //=> [ 'foo/(a|b|c)/bar' ]
|
|
12154
|
-
*
|
|
12155
|
-
* console.log(braces('foo/{a,b,c}/bar', { expand: true }));
|
|
12156
|
-
* //=> [ 'foo/a/bar', 'foo/b/bar', 'foo/c/bar' ]
|
|
12157
|
-
* ```
|
|
12158
|
-
* @param {String} `pattern` String with brace pattern to process.
|
|
12159
|
-
* @param {Object} `options` Any [options](#options) to change how expansion is performed. See the [braces][] library for all available options.
|
|
12160
|
-
* @return {Array}
|
|
12161
|
-
* @api public
|
|
12162
|
-
*/
|
|
12163
|
-
micromatch.braces = (pattern$1, options) => {
|
|
12164
|
-
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
12165
|
-
if (options && options.nobrace === true || !hasBraces(pattern$1)) return [pattern$1];
|
|
12166
|
-
return braces(pattern$1, options);
|
|
12167
|
-
};
|
|
12168
|
-
/**
|
|
12169
|
-
* Expand braces
|
|
12170
|
-
*/
|
|
12171
|
-
micromatch.braceExpand = (pattern$1, options) => {
|
|
12172
|
-
if (typeof pattern$1 !== "string") throw new TypeError("Expected a string");
|
|
12173
|
-
return micromatch.braces(pattern$1, {
|
|
12174
|
-
...options,
|
|
12175
|
-
expand: true
|
|
12176
|
-
});
|
|
12177
|
-
};
|
|
12178
|
-
/**
|
|
12179
|
-
* Expose micromatch
|
|
12180
|
-
*/
|
|
12181
|
-
micromatch.hasBraces = hasBraces;
|
|
12182
|
-
module.exports = micromatch;
|
|
12183
|
-
} });
|
|
12184
|
-
|
|
12185
11138
|
//#endregion
|
|
12186
11139
|
//#region ../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createPackageGraph.js
|
|
12187
11140
|
var require_createPackageGraph = __commonJS({ "../../node_modules/.pnpm/workspace-tools@0.36.4/node_modules/workspace-tools/lib/graph/createPackageGraph.js"(exports) {
|
|
@@ -13907,11 +12860,11 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
13907
12860
|
if (typeof arg === "number") throw new TypeError("Argument must not be a number");
|
|
13908
12861
|
return Buffer$6(arg, encodingOrOffset, length);
|
|
13909
12862
|
};
|
|
13910
|
-
SafeBuffer$1.alloc = function(size, fill$
|
|
12863
|
+
SafeBuffer$1.alloc = function(size, fill$3, encoding) {
|
|
13911
12864
|
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
13912
12865
|
var buf = Buffer$6(size);
|
|
13913
|
-
if (fill$
|
|
13914
|
-
else buf.fill(fill$
|
|
12866
|
+
if (fill$3 !== void 0) if (typeof encoding === "string") buf.fill(fill$3, encoding);
|
|
12867
|
+
else buf.fill(fill$3);
|
|
13915
12868
|
else buf.fill(0);
|
|
13916
12869
|
return buf;
|
|
13917
12870
|
};
|
|
@@ -14050,9 +13003,9 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14050
13003
|
},
|
|
14051
13004
|
function(module$1, exports$1, __webpack_require__) {
|
|
14052
13005
|
try {
|
|
14053
|
-
var util$
|
|
14054
|
-
if (typeof util$
|
|
14055
|
-
module$1.exports = util$
|
|
13006
|
+
var util$9 = __webpack_require__(2);
|
|
13007
|
+
if (typeof util$9.inherits !== "function") throw "";
|
|
13008
|
+
module$1.exports = util$9.inherits;
|
|
14056
13009
|
} catch (e) {
|
|
14057
13010
|
module$1.exports = __webpack_require__(224);
|
|
14058
13011
|
}
|
|
@@ -14198,14 +13151,14 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14198
13151
|
}).filter((x) => x.length).join(sep);
|
|
14199
13152
|
}
|
|
14200
13153
|
concat(integrity, opts) {
|
|
14201
|
-
const other = typeof integrity === "string" ? integrity : stringify$
|
|
14202
|
-
return parse$
|
|
13154
|
+
const other = typeof integrity === "string" ? integrity : stringify$5(integrity, opts);
|
|
13155
|
+
return parse$5(`${this.toString(opts)} ${other}`, opts);
|
|
14203
13156
|
}
|
|
14204
13157
|
hexDigest() {
|
|
14205
|
-
return parse$
|
|
13158
|
+
return parse$5(this, { single: true }).hexDigest();
|
|
14206
13159
|
}
|
|
14207
13160
|
match(integrity, opts) {
|
|
14208
|
-
const other = parse$
|
|
13161
|
+
const other = parse$5(integrity, opts);
|
|
14209
13162
|
const algo = other.pickAlgorithm(opts);
|
|
14210
13163
|
return this[algo] && other[algo] && this[algo].find((hash) => other[algo].find((otherhash) => hash.digest === otherhash.digest)) || false;
|
|
14211
13164
|
}
|
|
@@ -14218,15 +13171,15 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14218
13171
|
});
|
|
14219
13172
|
}
|
|
14220
13173
|
}
|
|
14221
|
-
module$1.exports.parse = parse$
|
|
14222
|
-
function parse$
|
|
13174
|
+
module$1.exports.parse = parse$5;
|
|
13175
|
+
function parse$5(sri, opts) {
|
|
14223
13176
|
opts = opts || {};
|
|
14224
13177
|
if (typeof sri === "string") return _parse(sri, opts);
|
|
14225
13178
|
else if (sri.algorithm && sri.digest) {
|
|
14226
13179
|
const fullSri = new Integrity();
|
|
14227
13180
|
fullSri[sri.algorithm] = [sri];
|
|
14228
|
-
return _parse(stringify$
|
|
14229
|
-
} else return _parse(stringify$
|
|
13181
|
+
return _parse(stringify$5(fullSri, opts), opts);
|
|
13182
|
+
} else return _parse(stringify$5(sri, opts), opts);
|
|
14230
13183
|
}
|
|
14231
13184
|
function _parse(integrity, opts) {
|
|
14232
13185
|
if (opts.single) return new Hash(integrity, opts);
|
|
@@ -14240,16 +13193,16 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14240
13193
|
return acc;
|
|
14241
13194
|
}, new Integrity());
|
|
14242
13195
|
}
|
|
14243
|
-
module$1.exports.stringify = stringify$
|
|
14244
|
-
function stringify$
|
|
13196
|
+
module$1.exports.stringify = stringify$5;
|
|
13197
|
+
function stringify$5(obj, opts) {
|
|
14245
13198
|
if (obj.algorithm && obj.digest) return Hash.prototype.toString.call(obj, opts);
|
|
14246
|
-
else if (typeof obj === "string") return stringify$
|
|
13199
|
+
else if (typeof obj === "string") return stringify$5(parse$5(obj, opts), opts);
|
|
14247
13200
|
else return Integrity.prototype.toString.call(obj, opts);
|
|
14248
13201
|
}
|
|
14249
13202
|
module$1.exports.fromHex = fromHex;
|
|
14250
13203
|
function fromHex(hexDigest, algorithm, opts) {
|
|
14251
13204
|
const optString = opts && opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
|
|
14252
|
-
return parse$
|
|
13205
|
+
return parse$5(`${algorithm}-${Buffer$6.from(hexDigest, "hex").toString("base64")}${optString}`, opts);
|
|
14253
13206
|
}
|
|
14254
13207
|
module$1.exports.fromData = fromData;
|
|
14255
13208
|
function fromData(data, opts) {
|
|
@@ -14287,12 +13240,12 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14287
13240
|
module$1.exports.checkData = checkData;
|
|
14288
13241
|
function checkData(data, sri, opts) {
|
|
14289
13242
|
opts = opts || {};
|
|
14290
|
-
sri = parse$
|
|
13243
|
+
sri = parse$5(sri, opts);
|
|
14291
13244
|
if (!Object.keys(sri).length) if (opts.error) throw Object.assign(new Error("No valid integrity hashes to check against"), { code: "EINTEGRITY" });
|
|
14292
13245
|
else return false;
|
|
14293
13246
|
const algorithm = sri.pickAlgorithm(opts);
|
|
14294
13247
|
const digest = crypto.createHash(algorithm).update(data).digest("base64");
|
|
14295
|
-
const newSri = parse$
|
|
13248
|
+
const newSri = parse$5({
|
|
14296
13249
|
algorithm,
|
|
14297
13250
|
digest
|
|
14298
13251
|
});
|
|
@@ -14335,7 +13288,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14335
13288
|
module$1.exports.integrityStream = integrityStream;
|
|
14336
13289
|
function integrityStream(opts) {
|
|
14337
13290
|
opts = opts || {};
|
|
14338
|
-
const sri = opts.integrity && parse$
|
|
13291
|
+
const sri = opts.integrity && parse$5(opts.integrity, opts);
|
|
14339
13292
|
const goodSri = sri && Object.keys(sri).length;
|
|
14340
13293
|
const algorithm = goodSri && sri.pickAlgorithm(opts);
|
|
14341
13294
|
const digests = goodSri && sri[algorithm];
|
|
@@ -14348,7 +13301,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14348
13301
|
cb(null, chunk, enc);
|
|
14349
13302
|
} }).on("end", () => {
|
|
14350
13303
|
const optString = opts.options && opts.options.length ? `?${opts.options.join("?")}` : "";
|
|
14351
|
-
const newSri = parse$
|
|
13304
|
+
const newSri = parse$5(hashes.map((h, i$3) => {
|
|
14352
13305
|
return `${algorithms[i$3]}-${h.digest("base64")}${optString}`;
|
|
14353
13306
|
}).join(" "), opts);
|
|
14354
13307
|
const match = goodSri && newSri.match(sri, opts);
|
|
@@ -14434,7 +13387,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14434
13387
|
path$13 = __webpack_require__(0);
|
|
14435
13388
|
} catch (er) {}
|
|
14436
13389
|
var GLOBSTAR$1 = minimatch.GLOBSTAR = Minimatch.GLOBSTAR = {};
|
|
14437
|
-
var expand$
|
|
13390
|
+
var expand$2 = __webpack_require__(175);
|
|
14438
13391
|
var plTypes = {
|
|
14439
13392
|
"!": {
|
|
14440
13393
|
open: "(?:(?!(?:",
|
|
@@ -14581,11 +13534,11 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
14581
13534
|
pattern$1 = typeof pattern$1 === "undefined" ? this.pattern : pattern$1;
|
|
14582
13535
|
if (typeof pattern$1 === "undefined") throw new TypeError("undefined pattern");
|
|
14583
13536
|
if (options.nobrace || !pattern$1.match(/\{.*\}/)) return [pattern$1];
|
|
14584
|
-
return expand$
|
|
13537
|
+
return expand$2(pattern$1);
|
|
14585
13538
|
}
|
|
14586
|
-
Minimatch.prototype.parse = parse$
|
|
13539
|
+
Minimatch.prototype.parse = parse$5;
|
|
14587
13540
|
var SUBPARSE = {};
|
|
14588
|
-
function parse$
|
|
13541
|
+
function parse$5(pattern$1, isSub) {
|
|
14589
13542
|
if (pattern$1.length > 1024 * 64) throw new TypeError("pattern is too long");
|
|
14590
13543
|
var options = this.options;
|
|
14591
13544
|
if (!options.noglobstar && pattern$1 === "**") return GLOBSTAR$1;
|
|
@@ -15051,7 +14004,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15051
14004
|
var EE$1 = __webpack_require__(54).EventEmitter;
|
|
15052
14005
|
var path$13 = __webpack_require__(0);
|
|
15053
14006
|
var assert$1 = __webpack_require__(22);
|
|
15054
|
-
var isAbsolute = __webpack_require__(76);
|
|
14007
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
15055
14008
|
var globSync = __webpack_require__(218);
|
|
15056
14009
|
var common$10 = __webpack_require__(115);
|
|
15057
14010
|
var alphasort = common$10.alphasort;
|
|
@@ -15059,7 +14012,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15059
14012
|
var setopts = common$10.setopts;
|
|
15060
14013
|
var ownProp = common$10.ownProp;
|
|
15061
14014
|
var inflight = __webpack_require__(223);
|
|
15062
|
-
var util$
|
|
14015
|
+
var util$9 = __webpack_require__(2);
|
|
15063
14016
|
var childrenIgnored = common$10.childrenIgnored;
|
|
15064
14017
|
var isIgnored = common$10.isIgnored;
|
|
15065
14018
|
var once = __webpack_require__(61);
|
|
@@ -15242,8 +14195,8 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15242
14195
|
var remain = pattern$1.slice(n);
|
|
15243
14196
|
var read$4;
|
|
15244
14197
|
if (prefix === null) read$4 = ".";
|
|
15245
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern$1.join("/"))) {
|
|
15246
|
-
if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix;
|
|
14198
|
+
else if (isAbsolute$1(prefix) || isAbsolute$1(pattern$1.join("/"))) {
|
|
14199
|
+
if (!prefix || !isAbsolute$1(prefix)) prefix = "/" + prefix;
|
|
15247
14200
|
read$4 = prefix;
|
|
15248
14201
|
} else read$4 = prefix;
|
|
15249
14202
|
var abs = this._makeAbs(read$4);
|
|
@@ -15304,7 +14257,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15304
14257
|
this._emitQueue.push([index, e]);
|
|
15305
14258
|
return;
|
|
15306
14259
|
}
|
|
15307
|
-
var abs = isAbsolute(e) ? e : this._makeAbs(e);
|
|
14260
|
+
var abs = isAbsolute$1(e) ? e : this._makeAbs(e);
|
|
15308
14261
|
if (this.mark) e = this._mark(e);
|
|
15309
14262
|
if (this.absolute) e = abs;
|
|
15310
14263
|
if (this.matches[index][e]) return;
|
|
@@ -15430,7 +14383,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15430
14383
|
Glob.prototype._processSimple2 = function(prefix, index, er, exists, cb) {
|
|
15431
14384
|
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
15432
14385
|
if (!exists) return cb();
|
|
15433
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
14386
|
+
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
15434
14387
|
var trail = /[\/\\]$/.test(prefix);
|
|
15435
14388
|
if (prefix.charAt(0) === "/") prefix = path$13.join(this.root, prefix);
|
|
15436
14389
|
else {
|
|
@@ -15515,7 +14468,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15515
14468
|
str = (0, (_stripBom || _load_stripBom()).default)(str);
|
|
15516
14469
|
return hasMergeConflicts(str) ? parseWithConflict(str, fileLoc) : {
|
|
15517
14470
|
type: "success",
|
|
15518
|
-
object: parse$
|
|
14471
|
+
object: parse$5(str, fileLoc)
|
|
15519
14472
|
};
|
|
15520
14473
|
};
|
|
15521
14474
|
var _util;
|
|
@@ -15806,7 +14759,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15806
14759
|
/**
|
|
15807
14760
|
* Parse the lockfile.
|
|
15808
14761
|
*/
|
|
15809
|
-
function parse$
|
|
14762
|
+
function parse$5(str, fileLoc) {
|
|
15810
14763
|
const parser = new Parser(str, fileLoc);
|
|
15811
14764
|
parser.next();
|
|
15812
14765
|
return parser.parse();
|
|
@@ -15819,7 +14772,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
15819
14772
|
try {
|
|
15820
14773
|
return {
|
|
15821
14774
|
type: "merge",
|
|
15822
|
-
object: Object.assign({}, parse$
|
|
14775
|
+
object: Object.assign({}, parse$5(variants[0], fileLoc), parse$5(variants[1], fileLoc))
|
|
15823
14776
|
};
|
|
15824
14777
|
} catch (err$1) {
|
|
15825
14778
|
if (err$1 instanceof SyntaxError) return {
|
|
@@ -16409,7 +15362,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16409
15362
|
}
|
|
16410
15363
|
var path$13 = __webpack_require__(0);
|
|
16411
15364
|
var minimatch = __webpack_require__(60);
|
|
16412
|
-
var isAbsolute = __webpack_require__(76);
|
|
15365
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
16413
15366
|
var Minimatch = minimatch.Minimatch;
|
|
16414
15367
|
function alphasorti(a, b) {
|
|
16415
15368
|
return a.toLowerCase().localeCompare(b.toLowerCase());
|
|
@@ -16472,7 +15425,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16472
15425
|
self$1.root = options.root || path$13.resolve(self$1.cwd, "/");
|
|
16473
15426
|
self$1.root = path$13.resolve(self$1.root);
|
|
16474
15427
|
if (process.platform === "win32") self$1.root = self$1.root.replace(/\\/g, "/");
|
|
16475
|
-
self$1.cwdAbs = isAbsolute(self$1.cwd) ? self$1.cwd : makeAbs(self$1, self$1.cwd);
|
|
15428
|
+
self$1.cwdAbs = isAbsolute$1(self$1.cwd) ? self$1.cwd : makeAbs(self$1, self$1.cwd);
|
|
16476
15429
|
if (process.platform === "win32") self$1.cwdAbs = self$1.cwdAbs.replace(/\\/g, "/");
|
|
16477
15430
|
self$1.nomount = !!options.nomount;
|
|
16478
15431
|
options.nonegate = true;
|
|
@@ -16535,7 +15488,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16535
15488
|
function makeAbs(self$1, f) {
|
|
16536
15489
|
var abs = f;
|
|
16537
15490
|
if (f.charAt(0) === "/") abs = path$13.join(self$1.root, f);
|
|
16538
|
-
else if (isAbsolute(f) || f === "") abs = f;
|
|
15491
|
+
else if (isAbsolute$1(f) || f === "") abs = f;
|
|
16539
15492
|
else if (self$1.changedCwd) abs = path$13.resolve(self$1.cwd, f);
|
|
16540
15493
|
else abs = path$13.resolve(f);
|
|
16541
15494
|
if (process.platform === "win32") abs = abs.replace(/\\/g, "/");
|
|
@@ -16845,7 +15798,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16845
15798
|
function(module$1, exports$1, __webpack_require__) {
|
|
16846
15799
|
"use strict";
|
|
16847
15800
|
Object.defineProperty(exports$1, "__esModule", { value: true });
|
|
16848
|
-
exports$1.default = stringify$
|
|
15801
|
+
exports$1.default = stringify$5;
|
|
16849
15802
|
var _misc;
|
|
16850
15803
|
function _load_misc() {
|
|
16851
15804
|
return _misc = __webpack_require__(12);
|
|
@@ -16902,7 +15855,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
16902
15855
|
}
|
|
16903
15856
|
return indent + lines.join(`\n${indent}`);
|
|
16904
15857
|
}
|
|
16905
|
-
function stringify$
|
|
15858
|
+
function stringify$5(obj, noHeader, enableVersions) {
|
|
16906
15859
|
const val = _stringify$1(obj, {
|
|
16907
15860
|
indent: "",
|
|
16908
15861
|
topLevel: true
|
|
@@ -17188,7 +16141,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17188
16141
|
function expandTop(str) {
|
|
17189
16142
|
if (!str) return [];
|
|
17190
16143
|
if (str.substr(0, 2) === "{}") str = "\\{\\}" + str.substr(2);
|
|
17191
|
-
return expand$
|
|
16144
|
+
return expand$2(escapeBraces(str), true).map(unescapeBraces);
|
|
17192
16145
|
}
|
|
17193
16146
|
function identity$1(e) {
|
|
17194
16147
|
return e;
|
|
@@ -17205,7 +16158,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17205
16158
|
function gte(i$3, y) {
|
|
17206
16159
|
return i$3 >= y;
|
|
17207
16160
|
}
|
|
17208
|
-
function expand$
|
|
16161
|
+
function expand$2(str, isTop) {
|
|
17209
16162
|
var expansions = [];
|
|
17210
16163
|
var m = balanced("{", "}", str);
|
|
17211
16164
|
if (!m || /\$$/.test(m.pre)) return [str];
|
|
@@ -17216,7 +16169,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17216
16169
|
if (!isSequence && !isOptions) {
|
|
17217
16170
|
if (m.post.match(/,.*\}/)) {
|
|
17218
16171
|
str = m.pre + "{" + m.body + escClose + m.post;
|
|
17219
|
-
return expand$
|
|
16172
|
+
return expand$2(str);
|
|
17220
16173
|
}
|
|
17221
16174
|
return [str];
|
|
17222
16175
|
}
|
|
@@ -17225,9 +16178,9 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17225
16178
|
else {
|
|
17226
16179
|
n = parseCommaParts(m.body);
|
|
17227
16180
|
if (n.length === 1) {
|
|
17228
|
-
n = expand$
|
|
16181
|
+
n = expand$2(n[0], false).map(embrace);
|
|
17229
16182
|
if (n.length === 1) {
|
|
17230
|
-
var post = m.post.length ? expand$
|
|
16183
|
+
var post = m.post.length ? expand$2(m.post, false) : [""];
|
|
17231
16184
|
return post.map(function(p$1) {
|
|
17232
16185
|
return m.pre + n[0] + p$1;
|
|
17233
16186
|
});
|
|
@@ -17235,7 +16188,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17235
16188
|
}
|
|
17236
16189
|
}
|
|
17237
16190
|
var pre = m.pre;
|
|
17238
|
-
var post = m.post.length ? expand$
|
|
16191
|
+
var post = m.post.length ? expand$2(m.post, false) : [""];
|
|
17239
16192
|
var N;
|
|
17240
16193
|
if (isSequence) {
|
|
17241
16194
|
var x = numeric(n[0]);
|
|
@@ -17269,7 +16222,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
17269
16222
|
N.push(c$1);
|
|
17270
16223
|
}
|
|
17271
16224
|
} else N = concatMap(n, function(el) {
|
|
17272
|
-
return expand$
|
|
16225
|
+
return expand$2(el, false);
|
|
17273
16226
|
});
|
|
17274
16227
|
for (var j = 0; j < N.length; j++) for (var k = 0; k < post.length; k++) {
|
|
17275
16228
|
var expansion = pre + N[j] + post[k];
|
|
@@ -18262,7 +17215,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18262
17215
|
* Module dependencies.
|
|
18263
17216
|
*/
|
|
18264
17217
|
var tty$1 = __webpack_require__(79);
|
|
18265
|
-
var util$
|
|
17218
|
+
var util$9 = __webpack_require__(2);
|
|
18266
17219
|
/**
|
|
18267
17220
|
* This is the Node.js implementation of `debug()`.
|
|
18268
17221
|
*
|
|
@@ -18397,7 +17350,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18397
17350
|
*/
|
|
18398
17351
|
exports$1.formatters.o = function(v$1) {
|
|
18399
17352
|
this.inspectOpts.colors = this.useColors;
|
|
18400
|
-
return util$
|
|
17353
|
+
return util$9.inspect(v$1, this.inspectOpts).split("\n").map(function(str) {
|
|
18401
17354
|
return str.trim();
|
|
18402
17355
|
}).join(" ");
|
|
18403
17356
|
};
|
|
@@ -18406,7 +17359,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18406
17359
|
*/
|
|
18407
17360
|
exports$1.formatters.O = function(v$1) {
|
|
18408
17361
|
this.inspectOpts.colors = this.useColors;
|
|
18409
|
-
return util$
|
|
17362
|
+
return util$9.inspect(v$1, this.inspectOpts);
|
|
18410
17363
|
};
|
|
18411
17364
|
/**
|
|
18412
17365
|
* Adds ANSI color escape codes if enabled.
|
|
@@ -18432,7 +17385,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18432
17385
|
* Invokes `util.format()` with the specified arguments and writes to stderr.
|
|
18433
17386
|
*/
|
|
18434
17387
|
function log$1() {
|
|
18435
|
-
return process.stderr.write(util$
|
|
17388
|
+
return process.stderr.write(util$9.format.apply(util$9, arguments) + "\n");
|
|
18436
17389
|
}
|
|
18437
17390
|
/**
|
|
18438
17391
|
* Save `namespaces`.
|
|
@@ -18646,10 +17599,10 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18646
17599
|
var minimatch = __webpack_require__(60);
|
|
18647
17600
|
var Minimatch = minimatch.Minimatch;
|
|
18648
17601
|
var Glob = __webpack_require__(75).Glob;
|
|
18649
|
-
var util$
|
|
17602
|
+
var util$9 = __webpack_require__(2);
|
|
18650
17603
|
var path$13 = __webpack_require__(0);
|
|
18651
17604
|
var assert$1 = __webpack_require__(22);
|
|
18652
|
-
var isAbsolute = __webpack_require__(76);
|
|
17605
|
+
var isAbsolute$1 = __webpack_require__(76);
|
|
18653
17606
|
var common$10 = __webpack_require__(115);
|
|
18654
17607
|
var alphasort = common$10.alphasort;
|
|
18655
17608
|
var alphasorti = common$10.alphasorti;
|
|
@@ -18709,8 +17662,8 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18709
17662
|
var remain = pattern$1.slice(n);
|
|
18710
17663
|
var read$4;
|
|
18711
17664
|
if (prefix === null) read$4 = ".";
|
|
18712
|
-
else if (isAbsolute(prefix) || isAbsolute(pattern$1.join("/"))) {
|
|
18713
|
-
if (!prefix || !isAbsolute(prefix)) prefix = "/" + prefix;
|
|
17665
|
+
else if (isAbsolute$1(prefix) || isAbsolute$1(pattern$1.join("/"))) {
|
|
17666
|
+
if (!prefix || !isAbsolute$1(prefix)) prefix = "/" + prefix;
|
|
18714
17667
|
read$4 = prefix;
|
|
18715
17668
|
} else read$4 = prefix;
|
|
18716
17669
|
var abs = this._makeAbs(read$4);
|
|
@@ -18861,7 +17814,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
18861
17814
|
var exists = this._stat(prefix);
|
|
18862
17815
|
if (!this.matches[index]) this.matches[index] = Object.create(null);
|
|
18863
17816
|
if (!exists) return;
|
|
18864
|
-
if (prefix && isAbsolute(prefix) && !this.nomount) {
|
|
17817
|
+
if (prefix && isAbsolute$1(prefix) && !this.nomount) {
|
|
18865
17818
|
var trail = /[\/\\]$/.test(prefix);
|
|
18866
17819
|
if (prefix.charAt(0) === "/") prefix = path$13.join(this.root, prefix);
|
|
18867
17820
|
else {
|
|
@@ -19015,7 +17968,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
19015
17968
|
module$1.exports = function(val, options) {
|
|
19016
17969
|
options = options || {};
|
|
19017
17970
|
var type = typeof val;
|
|
19018
|
-
if (type === "string" && val.length > 0) return parse$
|
|
17971
|
+
if (type === "string" && val.length > 0) return parse$5(val);
|
|
19019
17972
|
else if (type === "number" && isNaN(val) === false) return options.long ? fmtLong(val) : fmtShort(val);
|
|
19020
17973
|
throw new Error("val is not a non-empty string or a valid number. val=" + JSON.stringify(val));
|
|
19021
17974
|
};
|
|
@@ -19026,7 +17979,7 @@ var require_lockfile$1 = __commonJS({ "../../node_modules/.pnpm/@yarnpkg+lockfil
|
|
|
19026
17979
|
* @return {Number}
|
|
19027
17980
|
* @api private
|
|
19028
17981
|
*/
|
|
19029
|
-
function parse$
|
|
17982
|
+
function parse$5(str) {
|
|
19030
17983
|
str = String(str);
|
|
19031
17984
|
if (str.length > 100) return;
|
|
19032
17985
|
var match = /^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(str);
|
|
@@ -19590,8 +18543,8 @@ var require_getWorkspacePackagePaths = __commonJS({ "../../node_modules/.pnpm/wo
|
|
|
19590
18543
|
* the manager's config file and matching package folders (which must contain package.json) on disk.
|
|
19591
18544
|
*/
|
|
19592
18545
|
function getWorkspacePackagePaths(cwd) {
|
|
19593
|
-
const utils$
|
|
19594
|
-
return utils$
|
|
18546
|
+
const utils$46 = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
18547
|
+
return utils$46?.getWorkspacePackagePaths(cwd) || [];
|
|
19595
18548
|
}
|
|
19596
18549
|
exports.getWorkspacePackagePaths = getWorkspacePackagePaths;
|
|
19597
18550
|
/**
|
|
@@ -19599,13 +18552,13 @@ var require_getWorkspacePackagePaths = __commonJS({ "../../node_modules/.pnpm/wo
|
|
|
19599
18552
|
* the manager's config file and matching package folders (which must contain package.json) on disk.
|
|
19600
18553
|
*/
|
|
19601
18554
|
async function getWorkspacePackagePathsAsync(cwd) {
|
|
19602
|
-
const utils$
|
|
19603
|
-
if (!utils$
|
|
19604
|
-
if (!utils$
|
|
18555
|
+
const utils$46 = (0, implementations_1.getWorkspaceUtilities)(cwd);
|
|
18556
|
+
if (!utils$46) return [];
|
|
18557
|
+
if (!utils$46.getWorkspacePackagePathsAsync) {
|
|
19605
18558
|
const managerName = (0, implementations_1.getWorkspaceManagerAndRoot)(cwd)?.manager;
|
|
19606
18559
|
throw new Error(`${cwd} is using ${managerName} which has not been converted to async yet`);
|
|
19607
18560
|
}
|
|
19608
|
-
return utils$
|
|
18561
|
+
return utils$46.getWorkspacePackagePathsAsync(cwd);
|
|
19609
18562
|
}
|
|
19610
18563
|
exports.getWorkspacePackagePathsAsync = getWorkspacePackagePathsAsync;
|
|
19611
18564
|
} });
|
|
@@ -21554,11 +20507,11 @@ var require_safe_buffer = __commonJS({ "../../node_modules/.pnpm/safe-buffer@5.1
|
|
|
21554
20507
|
if (typeof arg === "number") throw new TypeError("Argument must not be a number");
|
|
21555
20508
|
return Buffer$5(arg, encodingOrOffset, length);
|
|
21556
20509
|
};
|
|
21557
|
-
SafeBuffer.alloc = function(size, fill$
|
|
20510
|
+
SafeBuffer.alloc = function(size, fill$3, encoding) {
|
|
21558
20511
|
if (typeof size !== "number") throw new TypeError("Argument must be a number");
|
|
21559
20512
|
var buf = Buffer$5(size);
|
|
21560
|
-
if (fill$
|
|
21561
|
-
else buf.fill(fill$
|
|
20513
|
+
if (fill$3 !== void 0) if (typeof encoding === "string") buf.fill(fill$3, encoding);
|
|
20514
|
+
else buf.fill(fill$3);
|
|
21562
20515
|
else buf.fill(0);
|
|
21563
20516
|
return buf;
|
|
21564
20517
|
};
|
|
@@ -27468,7 +26421,7 @@ var require_inftrees = __commonJS({ "../../node_modules/.pnpm/pako@1.0.11/node_m
|
|
|
27468
26421
|
var used = 0;
|
|
27469
26422
|
var huff = 0;
|
|
27470
26423
|
var incr;
|
|
27471
|
-
var fill$
|
|
26424
|
+
var fill$3;
|
|
27472
26425
|
var low;
|
|
27473
26426
|
var mask;
|
|
27474
26427
|
var next;
|
|
@@ -27540,12 +26493,12 @@ var require_inftrees = __commonJS({ "../../node_modules/.pnpm/pako@1.0.11/node_m
|
|
|
27540
26493
|
here_val = 0;
|
|
27541
26494
|
}
|
|
27542
26495
|
incr = 1 << len - drop;
|
|
27543
|
-
fill$
|
|
27544
|
-
min = fill$
|
|
26496
|
+
fill$3 = 1 << curr;
|
|
26497
|
+
min = fill$3;
|
|
27545
26498
|
do {
|
|
27546
|
-
fill$
|
|
27547
|
-
table[next + (huff >> drop) + fill$
|
|
27548
|
-
} while (fill$
|
|
26499
|
+
fill$3 -= incr;
|
|
26500
|
+
table[next + (huff >> drop) + fill$3] = here_bits << 24 | here_op << 16 | here_val | 0;
|
|
26501
|
+
} while (fill$3 !== 0);
|
|
27549
26502
|
incr = 1 << len - 1;
|
|
27550
26503
|
while (huff & incr) incr >>= 1;
|
|
27551
26504
|
if (incr !== 0) {
|