@shopify/cli 3.73.2 → 3.74.0
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/assets/dev-console/extensions/dev-console/assets/{index-D7F9wNys.js → index-lyGm6l3x.js} +12 -12
- package/dist/assets/dev-console/index.html +2 -2
- package/dist/assets/speedscope/SourceCodePro-Regular.ttf.f546cbe0.woff2 +0 -0
- package/dist/assets/speedscope/demangle-cpp.1768f4cc.js +4 -0
- package/dist/assets/speedscope/favicon-16x16.f74b3187.png +0 -0
- package/dist/assets/speedscope/favicon-32x32.bc503437.png +0 -0
- package/dist/assets/speedscope/file-format-schema.json +324 -0
- package/dist/assets/speedscope/import.bcbb2033.js +123 -0
- package/dist/assets/speedscope/index.html +2 -0
- package/dist/assets/speedscope/perf-vertx-stacks-01-collapsed-all.2681da68.txt +199 -0
- package/dist/assets/speedscope/release.txt +3 -0
- package/dist/assets/speedscope/reset.8c46b7a1.css +2 -0
- package/dist/assets/speedscope/source-code-pro.52b1676f.css +2 -0
- package/dist/assets/speedscope/source-code-pro.LICENSE.md +93 -0
- package/dist/assets/speedscope/source-map.438fa06b.js +24 -0
- package/dist/assets/speedscope/speedscope.6f107512.js +193 -0
- package/dist/{chokidar-5LLC6S6D.js → chokidar-BLUAYFAB.js} +13 -1044
- package/dist/chokidar-OATAHMV6.js +1122 -0
- package/dist/{chunk-ES3T7FIW.js → chunk-2GCE2GUM.js} +3 -3
- package/dist/chunk-3I3GQNEW.js +95 -0
- package/dist/{chunk-5NHIBL5K.js → chunk-4QRIOWN3.js} +2 -2
- package/dist/{chunk-Y2KXNORY.js → chunk-4W33LVQQ.js} +3 -3
- package/dist/{chunk-CKC5C2DR.js → chunk-53WQGP7S.js} +4 -4
- package/dist/chunk-57Q6OQG4.js +111 -0
- package/dist/{chunk-MHUINF7I.js → chunk-5CLGH5PH.js} +2 -2
- package/dist/{chunk-CRHXI6PS.js → chunk-5DBS6QOU.js} +102 -638
- package/dist/{chunk-ZOCACHGF.js → chunk-5JC3BUPR.js} +3 -3
- package/dist/{chunk-YMB5HUU3.js → chunk-5JWRABV2.js} +8 -8
- package/dist/{chunk-LLWX47E4.js → chunk-6JNRBEP6.js} +7 -9
- package/dist/{chunk-Y43XESY2.js → chunk-76NEANNG.js} +6442 -3165
- package/dist/{chunk-LVEURM2X.js → chunk-7T4EKFVU.js} +16 -2
- package/dist/{chunk-WKN62GWH.js → chunk-ACIVN2Q4.js} +502 -699
- package/dist/{chunk-ZX3L2JKV.js → chunk-AKL7T64Q.js} +80 -133
- package/dist/{chunk-2QGVACPR.js → chunk-B27LGWRZ.js} +3 -3
- package/dist/{chunk-BUFIEXZ5.js → chunk-B3YWYURY.js} +701 -141
- package/dist/{chunk-7VQ2QADA.js → chunk-BWBSJLZN.js} +333 -156
- package/dist/{chunk-K7HGDAI4.js → chunk-CDBXAE2F.js} +20 -104
- package/dist/{chunk-SBPFWO4S.js → chunk-CDQA3SST.js} +56182 -37290
- package/dist/chunk-CP3BRHWK.js +33 -0
- package/dist/{chunk-XEZJEXCU.js → chunk-D5AR5HKB.js} +2 -2
- package/dist/chunk-EMPP4I5H.js +497 -0
- package/dist/{chunk-DVCOVWXF.js → chunk-FCWD4NEK.js} +3 -3
- package/dist/{chunk-PJZVGRJ6.js → chunk-FMXC2O6H.js} +2 -2
- package/dist/{chunk-2GWO5FJL.js → chunk-GVMUVIT5.js} +7 -7
- package/dist/{chunk-KUM3DVPF.js → chunk-HMDWNGIV.js} +142 -471
- package/dist/{chunk-SVSIFM5Y.js → chunk-I6YWZKVU.js} +2 -2
- package/dist/{chunk-7TAOK36E.js → chunk-IYQNHNNP.js} +4 -4
- package/dist/{chunk-KXGCBBJW.js → chunk-JWRRKMF2.js} +2 -2
- package/dist/{chunk-IY7TUSI2.js → chunk-L3FVJFIT.js} +498 -412
- package/dist/{chunk-FJHGD37G.js → chunk-LH6BHL6J.js} +3 -3
- package/dist/{chunk-OAZFIMJ3.js → chunk-LQ2ZKVR6.js} +45 -115
- package/dist/{chunk-ONK6AXDE.js → chunk-MDJOXUMQ.js} +4 -4
- package/dist/{chunk-52WEPVL5.js → chunk-MSBZRBI5.js} +4 -4
- package/dist/{chunk-3HBRMIPY.js → chunk-MW7RWHY5.js} +341 -211
- package/dist/{chunk-O73CKGH7.js → chunk-NUW6LQU4.js} +4 -4
- package/dist/{chunk-ZQ55XXD5.js → chunk-PMOQBQSE.js} +3 -3
- package/dist/{chunk-2RKSPXIM.js → chunk-QEUQO265.js} +5 -7
- package/dist/chunk-QRARFXIM.js +1137 -0
- package/dist/{chunk-NQFTYLP6.js → chunk-R7RENZQC.js} +3 -3
- package/dist/chunk-UB7RN523.js +15933 -0
- package/dist/{chunk-GSPOKRGB.js → chunk-VI4NVMJH.js} +2 -2
- package/dist/{chunk-WNQ6HYKJ.js → chunk-WBTJ7MQU.js} +3 -3
- package/dist/{chunk-2EKHINO6.js → chunk-WKO4CJCL.js} +5 -7
- package/dist/{chunk-YP35ARHU.js → chunk-WNUVUNTL.js} +41 -23
- package/dist/{chunk-AWW6JHWH.js → chunk-XBIDXV7B.js} +4 -4
- package/dist/{chunk-KETZRITQ.js → chunk-XJNTFQIK.js} +5 -5
- package/dist/cli/commands/auth/logout.js +20 -19
- package/dist/cli/commands/auth/logout.test.js +22 -21
- package/dist/cli/commands/cache/clear.js +19 -18
- package/dist/cli/commands/debug/command-flags.js +19 -18
- package/dist/cli/commands/docs/generate.js +19 -18
- package/dist/cli/commands/docs/generate.test.js +20 -19
- package/dist/cli/commands/help.js +19 -18
- package/dist/cli/commands/kitchen-sink/async.js +20 -19
- package/dist/cli/commands/kitchen-sink/async.test.js +21 -20
- package/dist/cli/commands/kitchen-sink/index.js +22 -21
- package/dist/cli/commands/kitchen-sink/index.test.js +23 -22
- package/dist/cli/commands/kitchen-sink/prompts.js +20 -19
- package/dist/cli/commands/kitchen-sink/prompts.test.js +21 -20
- package/dist/cli/commands/kitchen-sink/static.js +20 -19
- package/dist/cli/commands/kitchen-sink/static.test.js +21 -20
- package/dist/cli/commands/notifications/generate.js +20 -19
- package/dist/cli/commands/notifications/list.js +20 -19
- package/dist/cli/commands/search.js +20 -19
- package/dist/cli/commands/upgrade.js +20 -19
- package/dist/cli/commands/upgrade.test.js +2 -1
- package/dist/cli/commands/version.js +20 -19
- package/dist/cli/commands/version.test.js +21 -20
- package/dist/cli/services/commands/notifications.js +14 -13
- package/dist/cli/services/commands/search.js +9 -8
- package/dist/cli/services/commands/search.test.js +10 -9
- package/dist/cli/services/commands/version.js +10 -9
- package/dist/cli/services/commands/version.test.js +12 -11
- package/dist/cli/services/kitchen-sink/async.js +9 -8
- package/dist/cli/services/kitchen-sink/prompts.js +9 -8
- package/dist/cli/services/kitchen-sink/static.js +9 -8
- package/dist/cli/services/upgrade.d.ts +0 -1
- package/dist/cli/services/upgrade.js +11 -10
- package/dist/cli/services/upgrade.test.js +14 -13
- package/dist/configs/all.yml +6 -0
- package/dist/configs/recommended.yml +6 -0
- package/dist/{custom-oclif-loader-4X7Y4CNS.js → custom-oclif-loader-ZY5GUSB3.js} +9 -8
- package/dist/{del-P2RS6GN2.js → del-FBU5JYXS.js} +4 -4
- package/dist/{devtools-K7FXBBFZ.js → devtools-6LOQORRT.js} +2 -2
- package/dist/{error-handler-KHFKBXR4.js → error-handler-YRN4E6SY.js} +17 -16
- package/dist/hooks/postrun.js +18 -16
- package/dist/hooks/prerun.js +15 -14
- package/dist/{http-proxy-FXWKYHZ3.js → http-proxy-L3MCJRQS.js} +3 -2
- package/dist/index.js +18712 -17414
- package/dist/lib-E2DSNKUX.js +13 -0
- package/dist/{local-PBMBK3CF.js → local-VTZT5Q4L.js} +11 -10
- package/dist/{morph-OSHCID2F.js → morph-ACVSDUS7.js} +3 -3
- package/dist/{node-ENALIQ2H.js → node-ONVZF27D.js} +23 -20
- package/dist/{node-package-manager-CVGCLCTC.js → node-package-manager-BZNXJETD.js} +11 -10
- package/dist/{npa-TM76BGG3.js → npa-JAX2F6CO.js} +2 -2
- package/dist/out-AZBX4ITJ.js +7 -0
- package/dist/{path-2HZUSAGR.js → path-2K5HIMHZ.js} +3 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-BBB46DQS.js → ui-3RKZNTJR.js} +9 -8
- package/dist/{workerd-F7DWDIYO.js → workerd-PSNADDQA.js} +23 -20
- package/oclif.manifest.json +103 -2
- package/package.json +9 -9
- package/LICENSE +0 -8
- package/dist/chunk-KIOWYILS.js +0 -3811
- package/dist/chunk-R4HZPLY4.js +0 -15746
- package/dist/lib-QZGSY5YB.js +0 -13
- package/dist/out-JR4DWQ2G.js +0 -7
- /package/dist/assets/dev-console/extensions/dev-console/assets/{index-Cgb-oKsM.css → index-n8yr6cxq.css} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
|
+
require_braces,
|
|
2
3
|
require_glob_parent,
|
|
3
4
|
require_picomatch,
|
|
4
|
-
require_to_regex_range,
|
|
5
5
|
require_utils
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-B3YWYURY.js";
|
|
7
7
|
import {
|
|
8
8
|
__commonJS,
|
|
9
9
|
__require,
|
|
10
10
|
init_cjs_shims
|
|
11
11
|
} from "./chunk-PKR7KJ6P.js";
|
|
12
12
|
|
|
13
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
13
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
|
|
14
14
|
var require_array = __commonJS({
|
|
15
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
15
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
|
|
16
16
|
"use strict";
|
|
17
17
|
init_cjs_shims();
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -31,9 +31,9 @@ var require_array = __commonJS({
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
|
|
34
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
34
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js
|
|
35
35
|
var require_errno = __commonJS({
|
|
36
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
36
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
|
|
37
37
|
"use strict";
|
|
38
38
|
init_cjs_shims();
|
|
39
39
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -45,9 +45,9 @@ var require_errno = __commonJS({
|
|
|
45
45
|
}
|
|
46
46
|
});
|
|
47
47
|
|
|
48
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
48
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js
|
|
49
49
|
var require_fs = __commonJS({
|
|
50
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
50
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
|
|
51
51
|
"use strict";
|
|
52
52
|
init_cjs_shims();
|
|
53
53
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -64,14 +64,14 @@ var require_fs = __commonJS({
|
|
|
64
64
|
}
|
|
65
65
|
});
|
|
66
66
|
|
|
67
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
67
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js
|
|
68
68
|
var require_path = __commonJS({
|
|
69
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
69
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
|
|
70
70
|
"use strict";
|
|
71
71
|
init_cjs_shims();
|
|
72
72
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
73
73
|
exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
|
|
74
|
-
var os = __require("os"), path = __require("path"), IS_WINDOWS_PLATFORM = os.platform() === "win32", LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2, POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([(){}]|^!|[!+@](?=\())/g, DOS_DEVICE_PATH_RE = /^\\\\([.?])/, WINDOWS_BACKSLASHES_RE = /\\(?![!()+@{}])/g;
|
|
74
|
+
var os = __require("os"), path = __require("path"), IS_WINDOWS_PLATFORM = os.platform() === "win32", LEADING_DOT_SEGMENT_CHARACTERS_COUNT = 2, POSIX_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g, WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE = /(\\?)([()[\]{}]|^!|[!+@](?=\())/g, DOS_DEVICE_PATH_RE = /^\\\\([.?])/, WINDOWS_BACKSLASHES_RE = /\\(?![!()+@[\]{}])/g;
|
|
75
75
|
function unixify(filepath) {
|
|
76
76
|
return filepath.replace(/\\/g, "/");
|
|
77
77
|
}
|
|
@@ -110,558 +110,6 @@ var require_path = __commonJS({
|
|
|
110
110
|
}
|
|
111
111
|
});
|
|
112
112
|
|
|
113
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js
|
|
114
|
-
var require_utils2 = __commonJS({
|
|
115
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/utils.js"(exports) {
|
|
116
|
-
"use strict";
|
|
117
|
-
init_cjs_shims();
|
|
118
|
-
exports.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1;
|
|
119
|
-
exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
|
|
120
|
-
exports.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports.isInteger(min) || !exports.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit;
|
|
121
|
-
exports.escapeNode = (block, n = 0, type) => {
|
|
122
|
-
let node = block.nodes[n];
|
|
123
|
-
node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
|
|
124
|
-
};
|
|
125
|
-
exports.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0);
|
|
126
|
-
exports.isInvalidBrace = (block) => block.type !== "brace" ? !1 : block.invalid === !0 || block.dollar ? !0 : !(block.commas >> 0 + block.ranges >> 0) || block.open !== !0 || block.close !== !0 ? (block.invalid = !0, !0) : !1;
|
|
127
|
-
exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
|
|
128
|
-
exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
|
|
129
|
-
exports.flatten = (...args) => {
|
|
130
|
-
let result = [], flat = (arr) => {
|
|
131
|
-
for (let i = 0; i < arr.length; i++) {
|
|
132
|
-
let ele = arr[i];
|
|
133
|
-
if (Array.isArray(ele)) {
|
|
134
|
-
flat(ele);
|
|
135
|
-
continue;
|
|
136
|
-
}
|
|
137
|
-
ele !== void 0 && result.push(ele);
|
|
138
|
-
}
|
|
139
|
-
return result;
|
|
140
|
-
};
|
|
141
|
-
return flat(args), result;
|
|
142
|
-
};
|
|
143
|
-
}
|
|
144
|
-
});
|
|
145
|
-
|
|
146
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js
|
|
147
|
-
var require_stringify = __commonJS({
|
|
148
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/stringify.js"(exports, module) {
|
|
149
|
-
"use strict";
|
|
150
|
-
init_cjs_shims();
|
|
151
|
-
var utils = require_utils2();
|
|
152
|
-
module.exports = (ast, options = {}) => {
|
|
153
|
-
let stringify = (node, parent = {}) => {
|
|
154
|
-
let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, output = "";
|
|
155
|
-
if (node.value)
|
|
156
|
-
return (invalidBlock || invalidNode) && utils.isOpenOrClose(node) ? "\\" + node.value : node.value;
|
|
157
|
-
if (node.value)
|
|
158
|
-
return node.value;
|
|
159
|
-
if (node.nodes)
|
|
160
|
-
for (let child of node.nodes)
|
|
161
|
-
output += stringify(child);
|
|
162
|
-
return output;
|
|
163
|
-
};
|
|
164
|
-
return stringify(ast);
|
|
165
|
-
};
|
|
166
|
-
}
|
|
167
|
-
});
|
|
168
|
-
|
|
169
|
-
// ../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js
|
|
170
|
-
var require_fill_range = __commonJS({
|
|
171
|
-
"../../node_modules/.pnpm/fill-range@7.1.1/node_modules/fill-range/index.js"(exports, module) {
|
|
172
|
-
"use strict";
|
|
173
|
-
init_cjs_shims();
|
|
174
|
-
var util = __require("util"), toRegexRange = require_to_regex_range(), isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val), transform = (toNumber) => (value) => toNumber === !0 ? Number(value) : String(value), isValidValue = (value) => typeof value == "number" || typeof value == "string" && value !== "", isNumber = (num) => Number.isInteger(+num), zeros = (input) => {
|
|
175
|
-
let value = `${input}`, index = -1;
|
|
176
|
-
if (value[0] === "-" && (value = value.slice(1)), value === "0") return !1;
|
|
177
|
-
for (; value[++index] === "0"; ) ;
|
|
178
|
-
return index > 0;
|
|
179
|
-
}, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
|
|
180
|
-
if (maxLength > 0) {
|
|
181
|
-
let dash = input[0] === "-" ? "-" : "";
|
|
182
|
-
dash && (input = input.slice(1)), input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
|
|
183
|
-
}
|
|
184
|
-
return toNumber === !1 ? String(input) : input;
|
|
185
|
-
}, toMaxLen = (input, maxLength) => {
|
|
186
|
-
let negative = input[0] === "-" ? "-" : "";
|
|
187
|
-
for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; ) input = "0" + input;
|
|
188
|
-
return negative ? "-" + input : input;
|
|
189
|
-
}, toSequence = (parts, options, maxLen) => {
|
|
190
|
-
parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
|
|
191
|
-
let prefix = options.capture ? "" : "?:", positives = "", negatives = "", result;
|
|
192
|
-
return parts.positives.length && (positives = parts.positives.map((v) => toMaxLen(String(v), maxLen)).join("|")), parts.negatives.length && (negatives = `-(${prefix}${parts.negatives.map((v) => toMaxLen(String(v), maxLen)).join("|")})`), positives && negatives ? result = `${positives}|${negatives}` : result = positives || negatives, options.wrap ? `(${prefix}${result})` : result;
|
|
193
|
-
}, toRange = (a, b, isNumbers, options) => {
|
|
194
|
-
if (isNumbers)
|
|
195
|
-
return toRegexRange(a, b, { wrap: !1, ...options });
|
|
196
|
-
let start = String.fromCharCode(a);
|
|
197
|
-
if (a === b) return start;
|
|
198
|
-
let stop = String.fromCharCode(b);
|
|
199
|
-
return `[${start}-${stop}]`;
|
|
200
|
-
}, toRegex = (start, end, options) => {
|
|
201
|
-
if (Array.isArray(start)) {
|
|
202
|
-
let wrap = options.wrap === !0, prefix = options.capture ? "" : "?:";
|
|
203
|
-
return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
|
|
204
|
-
}
|
|
205
|
-
return toRegexRange(start, end, options);
|
|
206
|
-
}, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
|
|
207
|
-
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
208
|
-
return [];
|
|
209
|
-
}, invalidStep = (step, options) => {
|
|
210
|
-
if (options.strictRanges === !0)
|
|
211
|
-
throw new TypeError(`Expected step "${step}" to be a number`);
|
|
212
|
-
return [];
|
|
213
|
-
}, fillNumbers = (start, end, step = 1, options = {}) => {
|
|
214
|
-
let a = Number(start), b = Number(end);
|
|
215
|
-
if (!Number.isInteger(a) || !Number.isInteger(b)) {
|
|
216
|
-
if (options.strictRanges === !0) throw rangeError([start, end]);
|
|
217
|
-
return [];
|
|
218
|
-
}
|
|
219
|
-
a === 0 && (a = 0), b === 0 && (b = 0);
|
|
220
|
-
let descending = a > b, startString = String(start), endString = String(end), stepString = String(step);
|
|
221
|
-
step = Math.max(Math.abs(step), 1);
|
|
222
|
-
let padded = zeros(startString) || zeros(endString) || zeros(stepString), maxLen = padded ? Math.max(startString.length, endString.length, stepString.length) : 0, toNumber = padded === !1 && stringify(start, end, options) === !1, format = options.transform || transform(toNumber);
|
|
223
|
-
if (options.toRegex && step === 1)
|
|
224
|
-
return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), !0, options);
|
|
225
|
-
let parts = { negatives: [], positives: [] }, push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), range = [], index = 0;
|
|
226
|
-
for (; descending ? a >= b : a <= b; )
|
|
227
|
-
options.toRegex === !0 && step > 1 ? push(a) : range.push(pad(format(a, index), maxLen, toNumber)), a = descending ? a - step : a + step, index++;
|
|
228
|
-
return options.toRegex === !0 ? step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: !1, ...options }) : range;
|
|
229
|
-
}, fillLetters = (start, end, step = 1, options = {}) => {
|
|
230
|
-
if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1)
|
|
231
|
-
return invalidRange(start, end, options);
|
|
232
|
-
let format = options.transform || ((val) => String.fromCharCode(val)), a = `${start}`.charCodeAt(0), b = `${end}`.charCodeAt(0), descending = a > b, min = Math.min(a, b), max = Math.max(a, b);
|
|
233
|
-
if (options.toRegex && step === 1)
|
|
234
|
-
return toRange(min, max, !1, options);
|
|
235
|
-
let range = [], index = 0;
|
|
236
|
-
for (; descending ? a >= b : a <= b; )
|
|
237
|
-
range.push(format(a, index)), a = descending ? a - step : a + step, index++;
|
|
238
|
-
return options.toRegex === !0 ? toRegex(range, null, { wrap: !1, options }) : range;
|
|
239
|
-
}, fill = (start, end, step, options = {}) => {
|
|
240
|
-
if (end == null && isValidValue(start))
|
|
241
|
-
return [start];
|
|
242
|
-
if (!isValidValue(start) || !isValidValue(end))
|
|
243
|
-
return invalidRange(start, end, options);
|
|
244
|
-
if (typeof step == "function")
|
|
245
|
-
return fill(start, end, 1, { transform: step });
|
|
246
|
-
if (isObject(step))
|
|
247
|
-
return fill(start, end, 0, step);
|
|
248
|
-
let opts = { ...options };
|
|
249
|
-
return opts.capture === !0 && (opts.wrap = !0), step = step || opts.step || 1, isNumber(step) ? isNumber(start) && isNumber(end) ? fillNumbers(start, end, step, opts) : fillLetters(start, end, Math.max(Math.abs(step), 1), opts) : step != null && !isObject(step) ? invalidStep(step, opts) : fill(start, end, 1, step);
|
|
250
|
-
};
|
|
251
|
-
module.exports = fill;
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
|
|
255
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js
|
|
256
|
-
var require_compile = __commonJS({
|
|
257
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/compile.js"(exports, module) {
|
|
258
|
-
"use strict";
|
|
259
|
-
init_cjs_shims();
|
|
260
|
-
var fill = require_fill_range(), utils = require_utils2(), compile = (ast, options = {}) => {
|
|
261
|
-
let walk = (node, parent = {}) => {
|
|
262
|
-
let invalidBlock = utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, invalid = invalidBlock === !0 || invalidNode === !0, prefix = options.escapeInvalid === !0 ? "\\" : "", output = "";
|
|
263
|
-
if (node.isOpen === !0)
|
|
264
|
-
return prefix + node.value;
|
|
265
|
-
if (node.isClose === !0)
|
|
266
|
-
return console.log("node.isClose", prefix, node.value), prefix + node.value;
|
|
267
|
-
if (node.type === "open")
|
|
268
|
-
return invalid ? prefix + node.value : "(";
|
|
269
|
-
if (node.type === "close")
|
|
270
|
-
return invalid ? prefix + node.value : ")";
|
|
271
|
-
if (node.type === "comma")
|
|
272
|
-
return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
|
|
273
|
-
if (node.value)
|
|
274
|
-
return node.value;
|
|
275
|
-
if (node.nodes && node.ranges > 0) {
|
|
276
|
-
let args = utils.reduce(node.nodes), range = fill(...args, { ...options, wrap: !1, toRegex: !0, strictZeros: !0 });
|
|
277
|
-
if (range.length !== 0)
|
|
278
|
-
return args.length > 1 && range.length > 1 ? `(${range})` : range;
|
|
279
|
-
}
|
|
280
|
-
if (node.nodes)
|
|
281
|
-
for (let child of node.nodes)
|
|
282
|
-
output += walk(child, node);
|
|
283
|
-
return output;
|
|
284
|
-
};
|
|
285
|
-
return walk(ast);
|
|
286
|
-
};
|
|
287
|
-
module.exports = compile;
|
|
288
|
-
}
|
|
289
|
-
});
|
|
290
|
-
|
|
291
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js
|
|
292
|
-
var require_expand = __commonJS({
|
|
293
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/expand.js"(exports, module) {
|
|
294
|
-
"use strict";
|
|
295
|
-
init_cjs_shims();
|
|
296
|
-
var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils2(), append = (queue = "", stash = "", enclose = !1) => {
|
|
297
|
-
let result = [];
|
|
298
|
-
if (queue = [].concat(queue), stash = [].concat(stash), !stash.length) return queue;
|
|
299
|
-
if (!queue.length)
|
|
300
|
-
return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
|
|
301
|
-
for (let item of queue)
|
|
302
|
-
if (Array.isArray(item))
|
|
303
|
-
for (let value of item)
|
|
304
|
-
result.push(append(value, stash, enclose));
|
|
305
|
-
else
|
|
306
|
-
for (let ele of stash)
|
|
307
|
-
enclose === !0 && typeof ele == "string" && (ele = `{${ele}}`), result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
|
|
308
|
-
return utils.flatten(result);
|
|
309
|
-
}, expand = (ast, options = {}) => {
|
|
310
|
-
let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit, walk = (node, parent = {}) => {
|
|
311
|
-
node.queue = [];
|
|
312
|
-
let p = parent, q = parent.queue;
|
|
313
|
-
for (; p.type !== "brace" && p.type !== "root" && p.parent; )
|
|
314
|
-
p = p.parent, q = p.queue;
|
|
315
|
-
if (node.invalid || node.dollar) {
|
|
316
|
-
q.push(append(q.pop(), stringify(node, options)));
|
|
317
|
-
return;
|
|
318
|
-
}
|
|
319
|
-
if (node.type === "brace" && node.invalid !== !0 && node.nodes.length === 2) {
|
|
320
|
-
q.push(append(q.pop(), ["{}"]));
|
|
321
|
-
return;
|
|
322
|
-
}
|
|
323
|
-
if (node.nodes && node.ranges > 0) {
|
|
324
|
-
let args = utils.reduce(node.nodes);
|
|
325
|
-
if (utils.exceedsLimit(...args, options.step, rangeLimit))
|
|
326
|
-
throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
|
|
327
|
-
let range = fill(...args, options);
|
|
328
|
-
range.length === 0 && (range = stringify(node, options)), q.push(append(q.pop(), range)), node.nodes = [];
|
|
329
|
-
return;
|
|
330
|
-
}
|
|
331
|
-
let enclose = utils.encloseBrace(node), queue = node.queue, block = node;
|
|
332
|
-
for (; block.type !== "brace" && block.type !== "root" && block.parent; )
|
|
333
|
-
block = block.parent, queue = block.queue;
|
|
334
|
-
for (let i = 0; i < node.nodes.length; i++) {
|
|
335
|
-
let child = node.nodes[i];
|
|
336
|
-
if (child.type === "comma" && node.type === "brace") {
|
|
337
|
-
i === 1 && queue.push(""), queue.push("");
|
|
338
|
-
continue;
|
|
339
|
-
}
|
|
340
|
-
if (child.type === "close") {
|
|
341
|
-
q.push(append(q.pop(), queue, enclose));
|
|
342
|
-
continue;
|
|
343
|
-
}
|
|
344
|
-
if (child.value && child.type !== "open") {
|
|
345
|
-
queue.push(append(queue.pop(), child.value));
|
|
346
|
-
continue;
|
|
347
|
-
}
|
|
348
|
-
child.nodes && walk(child, node);
|
|
349
|
-
}
|
|
350
|
-
return queue;
|
|
351
|
-
};
|
|
352
|
-
return utils.flatten(walk(ast));
|
|
353
|
-
};
|
|
354
|
-
module.exports = expand;
|
|
355
|
-
}
|
|
356
|
-
});
|
|
357
|
-
|
|
358
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js
|
|
359
|
-
var require_constants = __commonJS({
|
|
360
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/constants.js"(exports, module) {
|
|
361
|
-
"use strict";
|
|
362
|
-
init_cjs_shims();
|
|
363
|
-
module.exports = {
|
|
364
|
-
MAX_LENGTH: 1e4,
|
|
365
|
-
// Digits
|
|
366
|
-
CHAR_0: "0",
|
|
367
|
-
/* 0 */
|
|
368
|
-
CHAR_9: "9",
|
|
369
|
-
/* 9 */
|
|
370
|
-
// Alphabet chars.
|
|
371
|
-
CHAR_UPPERCASE_A: "A",
|
|
372
|
-
/* A */
|
|
373
|
-
CHAR_LOWERCASE_A: "a",
|
|
374
|
-
/* a */
|
|
375
|
-
CHAR_UPPERCASE_Z: "Z",
|
|
376
|
-
/* Z */
|
|
377
|
-
CHAR_LOWERCASE_Z: "z",
|
|
378
|
-
/* z */
|
|
379
|
-
CHAR_LEFT_PARENTHESES: "(",
|
|
380
|
-
/* ( */
|
|
381
|
-
CHAR_RIGHT_PARENTHESES: ")",
|
|
382
|
-
/* ) */
|
|
383
|
-
CHAR_ASTERISK: "*",
|
|
384
|
-
/* * */
|
|
385
|
-
// Non-alphabetic chars.
|
|
386
|
-
CHAR_AMPERSAND: "&",
|
|
387
|
-
/* & */
|
|
388
|
-
CHAR_AT: "@",
|
|
389
|
-
/* @ */
|
|
390
|
-
CHAR_BACKSLASH: "\\",
|
|
391
|
-
/* \ */
|
|
392
|
-
CHAR_BACKTICK: "`",
|
|
393
|
-
/* ` */
|
|
394
|
-
CHAR_CARRIAGE_RETURN: "\r",
|
|
395
|
-
/* \r */
|
|
396
|
-
CHAR_CIRCUMFLEX_ACCENT: "^",
|
|
397
|
-
/* ^ */
|
|
398
|
-
CHAR_COLON: ":",
|
|
399
|
-
/* : */
|
|
400
|
-
CHAR_COMMA: ",",
|
|
401
|
-
/* , */
|
|
402
|
-
CHAR_DOLLAR: "$",
|
|
403
|
-
/* . */
|
|
404
|
-
CHAR_DOT: ".",
|
|
405
|
-
/* . */
|
|
406
|
-
CHAR_DOUBLE_QUOTE: '"',
|
|
407
|
-
/* " */
|
|
408
|
-
CHAR_EQUAL: "=",
|
|
409
|
-
/* = */
|
|
410
|
-
CHAR_EXCLAMATION_MARK: "!",
|
|
411
|
-
/* ! */
|
|
412
|
-
CHAR_FORM_FEED: "\f",
|
|
413
|
-
/* \f */
|
|
414
|
-
CHAR_FORWARD_SLASH: "/",
|
|
415
|
-
/* / */
|
|
416
|
-
CHAR_HASH: "#",
|
|
417
|
-
/* # */
|
|
418
|
-
CHAR_HYPHEN_MINUS: "-",
|
|
419
|
-
/* - */
|
|
420
|
-
CHAR_LEFT_ANGLE_BRACKET: "<",
|
|
421
|
-
/* < */
|
|
422
|
-
CHAR_LEFT_CURLY_BRACE: "{",
|
|
423
|
-
/* { */
|
|
424
|
-
CHAR_LEFT_SQUARE_BRACKET: "[",
|
|
425
|
-
/* [ */
|
|
426
|
-
CHAR_LINE_FEED: `
|
|
427
|
-
`,
|
|
428
|
-
/* \n */
|
|
429
|
-
CHAR_NO_BREAK_SPACE: "\xA0",
|
|
430
|
-
/* \u00A0 */
|
|
431
|
-
CHAR_PERCENT: "%",
|
|
432
|
-
/* % */
|
|
433
|
-
CHAR_PLUS: "+",
|
|
434
|
-
/* + */
|
|
435
|
-
CHAR_QUESTION_MARK: "?",
|
|
436
|
-
/* ? */
|
|
437
|
-
CHAR_RIGHT_ANGLE_BRACKET: ">",
|
|
438
|
-
/* > */
|
|
439
|
-
CHAR_RIGHT_CURLY_BRACE: "}",
|
|
440
|
-
/* } */
|
|
441
|
-
CHAR_RIGHT_SQUARE_BRACKET: "]",
|
|
442
|
-
/* ] */
|
|
443
|
-
CHAR_SEMICOLON: ";",
|
|
444
|
-
/* ; */
|
|
445
|
-
CHAR_SINGLE_QUOTE: "'",
|
|
446
|
-
/* ' */
|
|
447
|
-
CHAR_SPACE: " ",
|
|
448
|
-
/* */
|
|
449
|
-
CHAR_TAB: " ",
|
|
450
|
-
/* \t */
|
|
451
|
-
CHAR_UNDERSCORE: "_",
|
|
452
|
-
/* _ */
|
|
453
|
-
CHAR_VERTICAL_LINE: "|",
|
|
454
|
-
/* | */
|
|
455
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
|
|
456
|
-
/* \uFEFF */
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
});
|
|
460
|
-
|
|
461
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js
|
|
462
|
-
var require_parse = __commonJS({
|
|
463
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/lib/parse.js"(exports, module) {
|
|
464
|
-
"use strict";
|
|
465
|
-
init_cjs_shims();
|
|
466
|
-
var stringify = require_stringify(), {
|
|
467
|
-
MAX_LENGTH,
|
|
468
|
-
CHAR_BACKSLASH,
|
|
469
|
-
/* \ */
|
|
470
|
-
CHAR_BACKTICK,
|
|
471
|
-
/* ` */
|
|
472
|
-
CHAR_COMMA,
|
|
473
|
-
/* , */
|
|
474
|
-
CHAR_DOT,
|
|
475
|
-
/* . */
|
|
476
|
-
CHAR_LEFT_PARENTHESES,
|
|
477
|
-
/* ( */
|
|
478
|
-
CHAR_RIGHT_PARENTHESES,
|
|
479
|
-
/* ) */
|
|
480
|
-
CHAR_LEFT_CURLY_BRACE,
|
|
481
|
-
/* { */
|
|
482
|
-
CHAR_RIGHT_CURLY_BRACE,
|
|
483
|
-
/* } */
|
|
484
|
-
CHAR_LEFT_SQUARE_BRACKET,
|
|
485
|
-
/* [ */
|
|
486
|
-
CHAR_RIGHT_SQUARE_BRACKET,
|
|
487
|
-
/* ] */
|
|
488
|
-
CHAR_DOUBLE_QUOTE,
|
|
489
|
-
/* " */
|
|
490
|
-
CHAR_SINGLE_QUOTE,
|
|
491
|
-
/* ' */
|
|
492
|
-
CHAR_NO_BREAK_SPACE,
|
|
493
|
-
CHAR_ZERO_WIDTH_NOBREAK_SPACE
|
|
494
|
-
} = require_constants(), parse = (input, options = {}) => {
|
|
495
|
-
if (typeof input != "string")
|
|
496
|
-
throw new TypeError("Expected a string");
|
|
497
|
-
let opts = options || {}, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
|
|
498
|
-
if (input.length > max)
|
|
499
|
-
throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
|
|
500
|
-
let ast = { type: "root", input, nodes: [] }, stack = [ast], block = ast, prev = ast, brackets = 0, length = input.length, index = 0, depth = 0, value, advance = () => input[index++], push = (node) => {
|
|
501
|
-
if (node.type === "text" && prev.type === "dot" && (prev.type = "text"), prev && prev.type === "text" && node.type === "text") {
|
|
502
|
-
prev.value += node.value;
|
|
503
|
-
return;
|
|
504
|
-
}
|
|
505
|
-
return block.nodes.push(node), node.parent = block, node.prev = prev, prev = node, node;
|
|
506
|
-
};
|
|
507
|
-
for (push({ type: "bos" }); index < length; )
|
|
508
|
-
if (block = stack[stack.length - 1], value = advance(), !(value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE)) {
|
|
509
|
-
if (value === CHAR_BACKSLASH) {
|
|
510
|
-
push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
|
|
511
|
-
continue;
|
|
512
|
-
}
|
|
513
|
-
if (value === CHAR_RIGHT_SQUARE_BRACKET) {
|
|
514
|
-
push({ type: "text", value: "\\" + value });
|
|
515
|
-
continue;
|
|
516
|
-
}
|
|
517
|
-
if (value === CHAR_LEFT_SQUARE_BRACKET) {
|
|
518
|
-
brackets++;
|
|
519
|
-
let next;
|
|
520
|
-
for (; index < length && (next = advance()); ) {
|
|
521
|
-
if (value += next, next === CHAR_LEFT_SQUARE_BRACKET) {
|
|
522
|
-
brackets++;
|
|
523
|
-
continue;
|
|
524
|
-
}
|
|
525
|
-
if (next === CHAR_BACKSLASH) {
|
|
526
|
-
value += advance();
|
|
527
|
-
continue;
|
|
528
|
-
}
|
|
529
|
-
if (next === CHAR_RIGHT_SQUARE_BRACKET && (brackets--, brackets === 0))
|
|
530
|
-
break;
|
|
531
|
-
}
|
|
532
|
-
push({ type: "text", value });
|
|
533
|
-
continue;
|
|
534
|
-
}
|
|
535
|
-
if (value === CHAR_LEFT_PARENTHESES) {
|
|
536
|
-
block = push({ type: "paren", nodes: [] }), stack.push(block), push({ type: "text", value });
|
|
537
|
-
continue;
|
|
538
|
-
}
|
|
539
|
-
if (value === CHAR_RIGHT_PARENTHESES) {
|
|
540
|
-
if (block.type !== "paren") {
|
|
541
|
-
push({ type: "text", value });
|
|
542
|
-
continue;
|
|
543
|
-
}
|
|
544
|
-
block = stack.pop(), push({ type: "text", value }), block = stack[stack.length - 1];
|
|
545
|
-
continue;
|
|
546
|
-
}
|
|
547
|
-
if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
|
|
548
|
-
let open = value, next;
|
|
549
|
-
for (options.keepQuotes !== !0 && (value = ""); index < length && (next = advance()); ) {
|
|
550
|
-
if (next === CHAR_BACKSLASH) {
|
|
551
|
-
value += next + advance();
|
|
552
|
-
continue;
|
|
553
|
-
}
|
|
554
|
-
if (next === open) {
|
|
555
|
-
options.keepQuotes === !0 && (value += next);
|
|
556
|
-
break;
|
|
557
|
-
}
|
|
558
|
-
value += next;
|
|
559
|
-
}
|
|
560
|
-
push({ type: "text", value });
|
|
561
|
-
continue;
|
|
562
|
-
}
|
|
563
|
-
if (value === CHAR_LEFT_CURLY_BRACE) {
|
|
564
|
-
depth++;
|
|
565
|
-
let brace = {
|
|
566
|
-
type: "brace",
|
|
567
|
-
open: !0,
|
|
568
|
-
close: !1,
|
|
569
|
-
dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === !0,
|
|
570
|
-
depth,
|
|
571
|
-
commas: 0,
|
|
572
|
-
ranges: 0,
|
|
573
|
-
nodes: []
|
|
574
|
-
};
|
|
575
|
-
block = push(brace), stack.push(block), push({ type: "open", value });
|
|
576
|
-
continue;
|
|
577
|
-
}
|
|
578
|
-
if (value === CHAR_RIGHT_CURLY_BRACE) {
|
|
579
|
-
if (block.type !== "brace") {
|
|
580
|
-
push({ type: "text", value });
|
|
581
|
-
continue;
|
|
582
|
-
}
|
|
583
|
-
let type = "close";
|
|
584
|
-
block = stack.pop(), block.close = !0, push({ type, value }), depth--, block = stack[stack.length - 1];
|
|
585
|
-
continue;
|
|
586
|
-
}
|
|
587
|
-
if (value === CHAR_COMMA && depth > 0) {
|
|
588
|
-
if (block.ranges > 0) {
|
|
589
|
-
block.ranges = 0;
|
|
590
|
-
let open = block.nodes.shift();
|
|
591
|
-
block.nodes = [open, { type: "text", value: stringify(block) }];
|
|
592
|
-
}
|
|
593
|
-
push({ type: "comma", value }), block.commas++;
|
|
594
|
-
continue;
|
|
595
|
-
}
|
|
596
|
-
if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
|
|
597
|
-
let siblings = block.nodes;
|
|
598
|
-
if (depth === 0 || siblings.length === 0) {
|
|
599
|
-
push({ type: "text", value });
|
|
600
|
-
continue;
|
|
601
|
-
}
|
|
602
|
-
if (prev.type === "dot") {
|
|
603
|
-
if (block.range = [], prev.value += value, prev.type = "range", block.nodes.length !== 3 && block.nodes.length !== 5) {
|
|
604
|
-
block.invalid = !0, block.ranges = 0, prev.type = "text";
|
|
605
|
-
continue;
|
|
606
|
-
}
|
|
607
|
-
block.ranges++, block.args = [];
|
|
608
|
-
continue;
|
|
609
|
-
}
|
|
610
|
-
if (prev.type === "range") {
|
|
611
|
-
siblings.pop();
|
|
612
|
-
let before = siblings[siblings.length - 1];
|
|
613
|
-
before.value += prev.value + value, prev = before, block.ranges--;
|
|
614
|
-
continue;
|
|
615
|
-
}
|
|
616
|
-
push({ type: "dot", value });
|
|
617
|
-
continue;
|
|
618
|
-
}
|
|
619
|
-
push({ type: "text", value });
|
|
620
|
-
}
|
|
621
|
-
do
|
|
622
|
-
if (block = stack.pop(), block.type !== "root") {
|
|
623
|
-
block.nodes.forEach((node) => {
|
|
624
|
-
node.nodes || (node.type === "open" && (node.isOpen = !0), node.type === "close" && (node.isClose = !0), node.nodes || (node.type = "text"), node.invalid = !0);
|
|
625
|
-
});
|
|
626
|
-
let parent = stack[stack.length - 1], index2 = parent.nodes.indexOf(block);
|
|
627
|
-
parent.nodes.splice(index2, 1, ...block.nodes);
|
|
628
|
-
}
|
|
629
|
-
while (stack.length > 0);
|
|
630
|
-
return push({ type: "eos" }), ast;
|
|
631
|
-
};
|
|
632
|
-
module.exports = parse;
|
|
633
|
-
}
|
|
634
|
-
});
|
|
635
|
-
|
|
636
|
-
// ../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js
|
|
637
|
-
var require_braces = __commonJS({
|
|
638
|
-
"../../node_modules/.pnpm/braces@3.0.3/node_modules/braces/index.js"(exports, module) {
|
|
639
|
-
"use strict";
|
|
640
|
-
init_cjs_shims();
|
|
641
|
-
var stringify = require_stringify(), compile = require_compile(), expand = require_expand(), parse = require_parse(), braces = (input, options = {}) => {
|
|
642
|
-
let output = [];
|
|
643
|
-
if (Array.isArray(input))
|
|
644
|
-
for (let pattern of input) {
|
|
645
|
-
let result = braces.create(pattern, options);
|
|
646
|
-
Array.isArray(result) ? output.push(...result) : output.push(result);
|
|
647
|
-
}
|
|
648
|
-
else
|
|
649
|
-
output = [].concat(braces.create(input, options));
|
|
650
|
-
return options && options.expand === !0 && options.nodupes === !0 && (output = [...new Set(output)]), output;
|
|
651
|
-
};
|
|
652
|
-
braces.parse = (input, options = {}) => parse(input, options);
|
|
653
|
-
braces.stringify = (input, options = {}) => stringify(typeof input == "string" ? braces.parse(input, options) : input, options);
|
|
654
|
-
braces.compile = (input, options = {}) => (typeof input == "string" && (input = braces.parse(input, options)), compile(input, options));
|
|
655
|
-
braces.expand = (input, options = {}) => {
|
|
656
|
-
typeof input == "string" && (input = braces.parse(input, options));
|
|
657
|
-
let result = expand(input, options);
|
|
658
|
-
return options.noempty === !0 && (result = result.filter(Boolean)), options.nodupes === !0 && (result = [...new Set(result)]), result;
|
|
659
|
-
};
|
|
660
|
-
braces.create = (input, options = {}) => input === "" || input.length < 3 ? [input] : options.expand !== !0 ? braces.compile(input, options) : braces.expand(input, options);
|
|
661
|
-
module.exports = braces;
|
|
662
|
-
}
|
|
663
|
-
});
|
|
664
|
-
|
|
665
113
|
// ../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js
|
|
666
114
|
var require_micromatch = __commonJS({
|
|
667
115
|
"../../node_modules/.pnpm/micromatch@4.0.8/node_modules/micromatch/index.js"(exports, module) {
|
|
@@ -775,13 +223,13 @@ var require_micromatch = __commonJS({
|
|
|
775
223
|
}
|
|
776
224
|
});
|
|
777
225
|
|
|
778
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
226
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js
|
|
779
227
|
var require_pattern = __commonJS({
|
|
780
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
228
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
|
|
781
229
|
"use strict";
|
|
782
230
|
init_cjs_shims();
|
|
783
231
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
784
|
-
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;
|
|
232
|
+
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;
|
|
785
233
|
var path = __require("path"), globParent = require_glob_parent(), micromatch = require_micromatch(), GLOBSTAR = "**", ESCAPE_SYMBOL = "\\", COMMON_GLOB_SYMBOLS_RE = /[*?]|^!/, REGEX_CHARACTER_CLASS_SYMBOLS_RE = /\[[^[]*]/, REGEX_GROUP_SYMBOLS_RE = /(?:^|[^!*+?@])\([^(]*\|[^|]*\)/, GLOB_EXTENSION_SYMBOLS_RE = /[!*+?@]\([^(]*\)/, BRACE_EXPANSION_SEPARATORS_RE = /,|\.\./, DOUBLE_SLASH_RE = /(?!^)\/{2,}/g;
|
|
786
234
|
function isStaticPattern(pattern, options = {}) {
|
|
787
235
|
return !isDynamicPattern(pattern, options);
|
|
@@ -859,7 +307,7 @@ var require_pattern = __commonJS({
|
|
|
859
307
|
}
|
|
860
308
|
exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
|
|
861
309
|
function expandBraceExpansion(pattern) {
|
|
862
|
-
let patterns = micromatch.braces(pattern, { expand: !0, nodupes: !0 });
|
|
310
|
+
let patterns = micromatch.braces(pattern, { expand: !0, nodupes: !0, keepEscaping: !0 });
|
|
863
311
|
return patterns.sort((a, b) => a.length - b.length), patterns.filter((pattern2) => pattern2 !== "");
|
|
864
312
|
}
|
|
865
313
|
exports.expandBraceExpansion = expandBraceExpansion;
|
|
@@ -884,6 +332,17 @@ var require_pattern = __commonJS({
|
|
|
884
332
|
return pattern.replace(DOUBLE_SLASH_RE, "/");
|
|
885
333
|
}
|
|
886
334
|
exports.removeDuplicateSlashes = removeDuplicateSlashes;
|
|
335
|
+
function partitionAbsoluteAndRelative(patterns) {
|
|
336
|
+
let absolute = [], relative = [];
|
|
337
|
+
for (let pattern of patterns)
|
|
338
|
+
isAbsolute(pattern) ? absolute.push(pattern) : relative.push(pattern);
|
|
339
|
+
return [absolute, relative];
|
|
340
|
+
}
|
|
341
|
+
exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
|
|
342
|
+
function isAbsolute(pattern) {
|
|
343
|
+
return path.isAbsolute(pattern);
|
|
344
|
+
}
|
|
345
|
+
exports.isAbsolute = isAbsolute;
|
|
887
346
|
}
|
|
888
347
|
});
|
|
889
348
|
|
|
@@ -955,9 +414,9 @@ var require_merge2 = __commonJS({
|
|
|
955
414
|
}
|
|
956
415
|
});
|
|
957
416
|
|
|
958
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
417
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js
|
|
959
418
|
var require_stream = __commonJS({
|
|
960
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
419
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
|
|
961
420
|
"use strict";
|
|
962
421
|
init_cjs_shims();
|
|
963
422
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -976,9 +435,9 @@ var require_stream = __commonJS({
|
|
|
976
435
|
}
|
|
977
436
|
});
|
|
978
437
|
|
|
979
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
438
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js
|
|
980
439
|
var require_string = __commonJS({
|
|
981
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
440
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
|
|
982
441
|
"use strict";
|
|
983
442
|
init_cjs_shims();
|
|
984
443
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -994,9 +453,9 @@ var require_string = __commonJS({
|
|
|
994
453
|
}
|
|
995
454
|
});
|
|
996
455
|
|
|
997
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
998
|
-
var
|
|
999
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
456
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js
|
|
457
|
+
var require_utils2 = __commonJS({
|
|
458
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
|
|
1000
459
|
"use strict";
|
|
1001
460
|
init_cjs_shims();
|
|
1002
461
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -1018,14 +477,14 @@ var require_utils3 = __commonJS({
|
|
|
1018
477
|
}
|
|
1019
478
|
});
|
|
1020
479
|
|
|
1021
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
480
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js
|
|
1022
481
|
var require_tasks = __commonJS({
|
|
1023
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
482
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
|
|
1024
483
|
"use strict";
|
|
1025
484
|
init_cjs_shims();
|
|
1026
485
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
1027
486
|
exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
|
|
1028
|
-
var utils =
|
|
487
|
+
var utils = require_utils2();
|
|
1029
488
|
function generate(input, settings) {
|
|
1030
489
|
let patterns = processPatterns(input, settings), ignore = processPatterns(settings.ignore, settings), positivePatterns = getPositivePatterns(patterns), negativePatterns = getNegativePatternsAsPositive(patterns, ignore), staticPatterns = positivePatterns.filter((pattern) => utils.pattern.isStaticPattern(pattern, settings)), dynamicPatterns = positivePatterns.filter((pattern) => utils.pattern.isDynamicPattern(pattern, settings)), staticTasks = convertPatternsToTasks(
|
|
1031
490
|
staticPatterns,
|
|
@@ -1257,7 +716,7 @@ var require_run_parallel = __commonJS({
|
|
|
1257
716
|
});
|
|
1258
717
|
|
|
1259
718
|
// ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
|
|
1260
|
-
var
|
|
719
|
+
var require_constants = __commonJS({
|
|
1261
720
|
"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
|
|
1262
721
|
"use strict";
|
|
1263
722
|
init_cjs_shims();
|
|
@@ -1291,7 +750,7 @@ var require_fs3 = __commonJS({
|
|
|
1291
750
|
});
|
|
1292
751
|
|
|
1293
752
|
// ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
|
|
1294
|
-
var
|
|
753
|
+
var require_utils3 = __commonJS({
|
|
1295
754
|
"../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
|
|
1296
755
|
"use strict";
|
|
1297
756
|
init_cjs_shims();
|
|
@@ -1323,7 +782,7 @@ var require_async2 = __commonJS({
|
|
|
1323
782
|
init_cjs_shims();
|
|
1324
783
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
1325
784
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
1326
|
-
var fsStat = require_out(), rpl = require_run_parallel(), constants_1 =
|
|
785
|
+
var fsStat = require_out(), rpl = require_run_parallel(), constants_1 = require_constants(), utils = require_utils3(), common = require_common();
|
|
1327
786
|
function read(directory, settings, callback) {
|
|
1328
787
|
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
1329
788
|
readdirWithFileTypes(directory, settings, callback);
|
|
@@ -1426,7 +885,7 @@ var require_sync2 = __commonJS({
|
|
|
1426
885
|
init_cjs_shims();
|
|
1427
886
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
1428
887
|
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
1429
|
-
var fsStat = require_out(), constants_1 =
|
|
888
|
+
var fsStat = require_out(), constants_1 = require_constants(), utils = require_utils3(), common = require_common();
|
|
1430
889
|
function read(directory, settings) {
|
|
1431
890
|
return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) : readdir(directory, settings);
|
|
1432
891
|
}
|
|
@@ -2000,13 +1459,13 @@ var require_out3 = __commonJS({
|
|
|
2000
1459
|
}
|
|
2001
1460
|
});
|
|
2002
1461
|
|
|
2003
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1462
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js
|
|
2004
1463
|
var require_reader2 = __commonJS({
|
|
2005
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1464
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
|
|
2006
1465
|
"use strict";
|
|
2007
1466
|
init_cjs_shims();
|
|
2008
1467
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2009
|
-
var path = __require("path"), fsStat = require_out(), utils =
|
|
1468
|
+
var path = __require("path"), fsStat = require_out(), utils = require_utils2(), Reader = class {
|
|
2010
1469
|
constructor(_settings) {
|
|
2011
1470
|
this._settings = _settings, this._fsStatSettings = new fsStat.Settings({
|
|
2012
1471
|
followSymbolicLink: this._settings.followSymbolicLinks,
|
|
@@ -2033,9 +1492,9 @@ var require_reader2 = __commonJS({
|
|
|
2033
1492
|
}
|
|
2034
1493
|
});
|
|
2035
1494
|
|
|
2036
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1495
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js
|
|
2037
1496
|
var require_stream3 = __commonJS({
|
|
2038
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1497
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
|
|
2039
1498
|
"use strict";
|
|
2040
1499
|
init_cjs_shims();
|
|
2041
1500
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2072,9 +1531,9 @@ var require_stream3 = __commonJS({
|
|
|
2072
1531
|
}
|
|
2073
1532
|
});
|
|
2074
1533
|
|
|
2075
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1534
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js
|
|
2076
1535
|
var require_async5 = __commonJS({
|
|
2077
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1536
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
|
|
2078
1537
|
"use strict";
|
|
2079
1538
|
init_cjs_shims();
|
|
2080
1539
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2100,13 +1559,13 @@ var require_async5 = __commonJS({
|
|
|
2100
1559
|
}
|
|
2101
1560
|
});
|
|
2102
1561
|
|
|
2103
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1562
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js
|
|
2104
1563
|
var require_matcher = __commonJS({
|
|
2105
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1564
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
|
|
2106
1565
|
"use strict";
|
|
2107
1566
|
init_cjs_shims();
|
|
2108
1567
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2109
|
-
var utils =
|
|
1568
|
+
var utils = require_utils2(), Matcher = class {
|
|
2110
1569
|
constructor(_patterns, _settings, _micromatchOptions) {
|
|
2111
1570
|
this._patterns = _patterns, this._settings = _settings, this._micromatchOptions = _micromatchOptions, this._storage = [], this._fillStorage();
|
|
2112
1571
|
}
|
|
@@ -2139,9 +1598,9 @@ var require_matcher = __commonJS({
|
|
|
2139
1598
|
}
|
|
2140
1599
|
});
|
|
2141
1600
|
|
|
2142
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1601
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js
|
|
2143
1602
|
var require_partial = __commonJS({
|
|
2144
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1603
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
|
|
2145
1604
|
"use strict";
|
|
2146
1605
|
init_cjs_shims();
|
|
2147
1606
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2163,13 +1622,13 @@ var require_partial = __commonJS({
|
|
|
2163
1622
|
}
|
|
2164
1623
|
});
|
|
2165
1624
|
|
|
2166
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1625
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js
|
|
2167
1626
|
var require_deep = __commonJS({
|
|
2168
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1627
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
|
|
2169
1628
|
"use strict";
|
|
2170
1629
|
init_cjs_shims();
|
|
2171
1630
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2172
|
-
var utils =
|
|
1631
|
+
var utils = require_utils2(), partial_1 = require_partial(), DeepFilter = class {
|
|
2173
1632
|
constructor(_settings, _micromatchOptions) {
|
|
2174
1633
|
this._settings = _settings, this._micromatchOptions = _micromatchOptions;
|
|
2175
1634
|
}
|
|
@@ -2214,25 +1673,33 @@ var require_deep = __commonJS({
|
|
|
2214
1673
|
}
|
|
2215
1674
|
});
|
|
2216
1675
|
|
|
2217
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1676
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js
|
|
2218
1677
|
var require_entry = __commonJS({
|
|
2219
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1678
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
|
|
2220
1679
|
"use strict";
|
|
2221
1680
|
init_cjs_shims();
|
|
2222
1681
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2223
|
-
var utils =
|
|
1682
|
+
var utils = require_utils2(), EntryFilter = class {
|
|
2224
1683
|
constructor(_settings, _micromatchOptions) {
|
|
2225
1684
|
this._settings = _settings, this._micromatchOptions = _micromatchOptions, this.index = /* @__PURE__ */ new Map();
|
|
2226
1685
|
}
|
|
2227
1686
|
getFilter(positive, negative) {
|
|
2228
|
-
let
|
|
2229
|
-
|
|
1687
|
+
let [absoluteNegative, relativeNegative] = utils.pattern.partitionAbsoluteAndRelative(negative), patterns = {
|
|
1688
|
+
positive: {
|
|
1689
|
+
all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
|
|
1690
|
+
},
|
|
1691
|
+
negative: {
|
|
1692
|
+
absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 })),
|
|
1693
|
+
relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 }))
|
|
1694
|
+
}
|
|
1695
|
+
};
|
|
1696
|
+
return (entry) => this._filter(entry, patterns);
|
|
2230
1697
|
}
|
|
2231
|
-
_filter(entry,
|
|
1698
|
+
_filter(entry, patterns) {
|
|
2232
1699
|
let filepath = utils.path.removeLeadingDotSegment(entry.path);
|
|
2233
|
-
if (this._settings.unique && this._isDuplicateEntry(filepath) || this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry)
|
|
1700
|
+
if (this._settings.unique && this._isDuplicateEntry(filepath) || this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry))
|
|
2234
1701
|
return !1;
|
|
2235
|
-
let
|
|
1702
|
+
let isMatched = this._isMatchToPatternsSet(filepath, patterns, entry.dirent.isDirectory());
|
|
2236
1703
|
return this._settings.unique && isMatched && this._createIndexRecord(filepath), isMatched;
|
|
2237
1704
|
}
|
|
2238
1705
|
_isDuplicateEntry(filepath) {
|
|
@@ -2247,13 +1714,18 @@ var require_entry = __commonJS({
|
|
|
2247
1714
|
_onlyDirectoryFilter(entry) {
|
|
2248
1715
|
return this._settings.onlyDirectories && !entry.dirent.isDirectory();
|
|
2249
1716
|
}
|
|
2250
|
-
|
|
2251
|
-
|
|
1717
|
+
_isMatchToPatternsSet(filepath, patterns, isDirectory) {
|
|
1718
|
+
return !(!this._isMatchToPatterns(filepath, patterns.positive.all, isDirectory) || this._isMatchToPatterns(filepath, patterns.negative.relative, isDirectory) || this._isMatchToAbsoluteNegative(filepath, patterns.negative.absolute, isDirectory));
|
|
1719
|
+
}
|
|
1720
|
+
_isMatchToAbsoluteNegative(filepath, patternsRe, isDirectory) {
|
|
1721
|
+
if (patternsRe.length === 0)
|
|
2252
1722
|
return !1;
|
|
2253
|
-
let fullpath = utils.path.makeAbsolute(this._settings.cwd,
|
|
2254
|
-
return
|
|
1723
|
+
let fullpath = utils.path.makeAbsolute(this._settings.cwd, filepath);
|
|
1724
|
+
return this._isMatchToPatterns(fullpath, patternsRe, isDirectory);
|
|
2255
1725
|
}
|
|
2256
1726
|
_isMatchToPatterns(filepath, patternsRe, isDirectory) {
|
|
1727
|
+
if (patternsRe.length === 0)
|
|
1728
|
+
return !1;
|
|
2257
1729
|
let isMatched = utils.pattern.matchAny(filepath, patternsRe);
|
|
2258
1730
|
return !isMatched && isDirectory ? utils.pattern.matchAny(filepath + "/", patternsRe) : isMatched;
|
|
2259
1731
|
}
|
|
@@ -2262,13 +1734,13 @@ var require_entry = __commonJS({
|
|
|
2262
1734
|
}
|
|
2263
1735
|
});
|
|
2264
1736
|
|
|
2265
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1737
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js
|
|
2266
1738
|
var require_error = __commonJS({
|
|
2267
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1739
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
|
|
2268
1740
|
"use strict";
|
|
2269
1741
|
init_cjs_shims();
|
|
2270
1742
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2271
|
-
var utils =
|
|
1743
|
+
var utils = require_utils2(), ErrorFilter = class {
|
|
2272
1744
|
constructor(_settings) {
|
|
2273
1745
|
this._settings = _settings;
|
|
2274
1746
|
}
|
|
@@ -2283,13 +1755,13 @@ var require_error = __commonJS({
|
|
|
2283
1755
|
}
|
|
2284
1756
|
});
|
|
2285
1757
|
|
|
2286
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1758
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js
|
|
2287
1759
|
var require_entry2 = __commonJS({
|
|
2288
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1760
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
|
|
2289
1761
|
"use strict";
|
|
2290
1762
|
init_cjs_shims();
|
|
2291
1763
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
2292
|
-
var utils =
|
|
1764
|
+
var utils = require_utils2(), EntryTransformer = class {
|
|
2293
1765
|
constructor(_settings) {
|
|
2294
1766
|
this._settings = _settings;
|
|
2295
1767
|
}
|
|
@@ -2305,9 +1777,9 @@ var require_entry2 = __commonJS({
|
|
|
2305
1777
|
}
|
|
2306
1778
|
});
|
|
2307
1779
|
|
|
2308
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1780
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js
|
|
2309
1781
|
var require_provider = __commonJS({
|
|
2310
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1782
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
|
|
2311
1783
|
"use strict";
|
|
2312
1784
|
init_cjs_shims();
|
|
2313
1785
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2351,9 +1823,9 @@ var require_provider = __commonJS({
|
|
|
2351
1823
|
}
|
|
2352
1824
|
});
|
|
2353
1825
|
|
|
2354
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1826
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js
|
|
2355
1827
|
var require_async6 = __commonJS({
|
|
2356
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1828
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
|
|
2357
1829
|
"use strict";
|
|
2358
1830
|
init_cjs_shims();
|
|
2359
1831
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2373,9 +1845,9 @@ var require_async6 = __commonJS({
|
|
|
2373
1845
|
}
|
|
2374
1846
|
});
|
|
2375
1847
|
|
|
2376
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1848
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js
|
|
2377
1849
|
var require_stream4 = __commonJS({
|
|
2378
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1850
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
|
|
2379
1851
|
"use strict";
|
|
2380
1852
|
init_cjs_shims();
|
|
2381
1853
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2396,9 +1868,9 @@ var require_stream4 = __commonJS({
|
|
|
2396
1868
|
}
|
|
2397
1869
|
});
|
|
2398
1870
|
|
|
2399
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1871
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js
|
|
2400
1872
|
var require_sync5 = __commonJS({
|
|
2401
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1873
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
|
|
2402
1874
|
"use strict";
|
|
2403
1875
|
init_cjs_shims();
|
|
2404
1876
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2435,9 +1907,9 @@ var require_sync5 = __commonJS({
|
|
|
2435
1907
|
}
|
|
2436
1908
|
});
|
|
2437
1909
|
|
|
2438
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1910
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js
|
|
2439
1911
|
var require_sync6 = __commonJS({
|
|
2440
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1912
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
|
|
2441
1913
|
"use strict";
|
|
2442
1914
|
init_cjs_shims();
|
|
2443
1915
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2457,9 +1929,9 @@ var require_sync6 = __commonJS({
|
|
|
2457
1929
|
}
|
|
2458
1930
|
});
|
|
2459
1931
|
|
|
2460
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1932
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js
|
|
2461
1933
|
var require_settings4 = __commonJS({
|
|
2462
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1934
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
|
|
2463
1935
|
"use strict";
|
|
2464
1936
|
init_cjs_shims();
|
|
2465
1937
|
Object.defineProperty(exports, "__esModule", { value: !0 });
|
|
@@ -2488,11 +1960,11 @@ var require_settings4 = __commonJS({
|
|
|
2488
1960
|
}
|
|
2489
1961
|
});
|
|
2490
1962
|
|
|
2491
|
-
// ../../node_modules/.pnpm/fast-glob@3.3.
|
|
1963
|
+
// ../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js
|
|
2492
1964
|
var require_out4 = __commonJS({
|
|
2493
|
-
"../../node_modules/.pnpm/fast-glob@3.3.
|
|
1965
|
+
"../../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/index.js"(exports, module) {
|
|
2494
1966
|
init_cjs_shims();
|
|
2495
|
-
var taskManager = require_tasks(), async_1 = require_async6(), stream_1 = require_stream4(), sync_1 = require_sync6(), settings_1 = require_settings4(), utils =
|
|
1967
|
+
var taskManager = require_tasks(), async_1 = require_async6(), stream_1 = require_stream4(), sync_1 = require_sync6(), settings_1 = require_settings4(), utils = require_utils2();
|
|
2496
1968
|
async function FastGlob(source, options) {
|
|
2497
1969
|
assertPatternsInput(source);
|
|
2498
1970
|
let works = getWorks(source, async_1.default, options), result = await Promise.all(works);
|
|
@@ -2573,18 +2045,10 @@ export {
|
|
|
2573
2045
|
};
|
|
2574
2046
|
/*! Bundled license information:
|
|
2575
2047
|
|
|
2576
|
-
fill-range/index.js:
|
|
2577
|
-
(*!
|
|
2578
|
-
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
2579
|
-
*
|
|
2580
|
-
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
2581
|
-
* Licensed under the MIT License.
|
|
2582
|
-
*)
|
|
2583
|
-
|
|
2584
2048
|
queue-microtask/index.js:
|
|
2585
2049
|
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
2586
2050
|
|
|
2587
2051
|
run-parallel/index.js:
|
|
2588
2052
|
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
2589
2053
|
*/
|
|
2590
|
-
//# sourceMappingURL=chunk-
|
|
2054
|
+
//# sourceMappingURL=chunk-5DBS6QOU.js.map
|