@shopify/create-app 3.65.2 → 3.66.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.
Files changed (86) hide show
  1. package/dist/chunk-2RSJVBMF.js +5625 -0
  2. package/dist/{chunk-Z65QJ5D7.js → chunk-4DRC2PSU.js} +17 -30
  3. package/dist/chunk-4OD45DDO.js +31508 -0
  4. package/dist/chunk-522OB3EU.js +45 -0
  5. package/dist/{chunk-JTKTLA7L.js → chunk-5U24TEX5.js} +5434 -10324
  6. package/dist/{chunk-GJPZCXGT.js → chunk-6A7MXLVB.js} +159 -405
  7. package/dist/{chunk-ZYKRTO5P.js → chunk-7ZCQLP5Y.js} +3 -3
  8. package/dist/{chunk-5LBEKXRW.js → chunk-FIJKOZJF.js} +19 -55
  9. package/dist/{chunk-QSKQTKTB.js → chunk-FT6PCF6E.js} +2441 -5551
  10. package/dist/chunk-GIUM5DCQ.js +2144 -0
  11. package/dist/chunk-HIAKHDLR.js +54 -0
  12. package/dist/chunk-LLSRDN3T.js +15352 -0
  13. package/dist/chunk-LTDD2GRL.js +111 -0
  14. package/dist/{chunk-63QVG2CD.js → chunk-NGBYQF44.js} +9 -9
  15. package/dist/chunk-NLC7NBUB.js +80 -0
  16. package/dist/{chunk-FMKVOTQK.js → chunk-O5K4AU7Q.js} +18 -34
  17. package/dist/chunk-OMDEA7TV.js +10615 -0
  18. package/dist/chunk-PNN7RS7Y.js +105 -0
  19. package/dist/{chunk-ZPL24Y2D.js → chunk-POZ5MGPT.js} +13 -18
  20. package/dist/chunk-T7T35H4F.js +108 -0
  21. package/dist/chunk-UBB7JKND.js +55 -0
  22. package/dist/chunk-VSLR7ET4.js +3034 -0
  23. package/dist/{chunk-SAO7C4LP.js → chunk-VZVGAREJ.js} +46821 -101962
  24. package/dist/{chunk-KDNBKIH4.js → chunk-WBQF4CSV.js} +12 -22
  25. package/dist/chunk-XVNW332R.js +524 -0
  26. package/dist/{chunk-YB6D4XQ7.js → chunk-Y4ECGRAF.js} +13 -23
  27. package/dist/chunk-ZAUZQLNO.js +3774 -0
  28. package/dist/chunk-ZULFH3SL.js +1847 -0
  29. package/dist/commands/init.d.ts +0 -1
  30. package/dist/commands/init.js +27 -27
  31. package/dist/commands/init.test.js +51 -70
  32. package/dist/{constants-24TFXZKQ.js → constants-WG7I7G3O.js} +5 -5
  33. package/dist/custom-oclif-loader-JKRJZ56E.js +47 -0
  34. package/dist/del-NW5KFKFP.js +1820 -0
  35. package/dist/devtools-UBOREV57.js +2572 -0
  36. package/dist/error-handler-26SLAJTC.js +35 -0
  37. package/dist/hooks/postrun.js +35 -42
  38. package/dist/hooks/prerun.js +58 -36
  39. package/dist/index.js +7 -7
  40. package/dist/lib-3K5QYF3J.js +9 -0
  41. package/dist/{local-3VUKCW4R.js → local-H6TW5MNX.js} +13 -13
  42. package/dist/magic-string.es-3RXPUXZF.js +843 -0
  43. package/dist/multipart-parser-QKUAJJP5.js +193 -0
  44. package/dist/{node-package-manager-HYZRZNU6.js → node-package-manager-QAUN6HGS.js} +16 -14
  45. package/dist/open-MZGVNFZO.js +197 -0
  46. package/dist/out-KDGAD475.js +6 -0
  47. package/dist/{path-CFPIDSWV.js → path-L375JOQ2.js} +4 -4
  48. package/dist/prompts/init.js +13 -13
  49. package/dist/prompts/init.test.js +42 -59
  50. package/dist/services/init.js +20 -20
  51. package/dist/services/init.test.js +5 -5
  52. package/dist/system-ZI2HKAKO.js +26 -0
  53. package/dist/tsconfig.tsbuildinfo +1 -1
  54. package/dist/{ui-7NEDEALP.js → ui-727JEZUX.js} +13 -13
  55. package/dist/utils/template/cleanup.js +13 -13
  56. package/dist/utils/template/cleanup.test.js +18 -30
  57. package/dist/utils/template/npm.js +15 -15
  58. package/dist/utils/template/npm.test.js +48 -87
  59. package/oclif.manifest.json +1 -1
  60. package/package.json +3 -4
  61. package/dist/chunk-3US34ZNP.js +0 -145
  62. package/dist/chunk-3XYIOBQ2.js +0 -22131
  63. package/dist/chunk-6IZMEXPW.js +0 -105
  64. package/dist/chunk-7DRS5WXI.js +0 -7843
  65. package/dist/chunk-DL3MKXVR.js +0 -4754
  66. package/dist/chunk-HDVJ5FPK.js +0 -63
  67. package/dist/chunk-IKO7JBOJ.js +0 -14788
  68. package/dist/chunk-LSCXQWNO.js +0 -822
  69. package/dist/chunk-M2VKB6RG.js +0 -146
  70. package/dist/chunk-MCED27CG.js +0 -5626
  71. package/dist/chunk-SWNRLCC6.js +0 -61
  72. package/dist/chunk-T5LLJYYS.js +0 -195
  73. package/dist/chunk-U5LTJVWL.js +0 -3185
  74. package/dist/chunk-WR7YKB6H.js +0 -44962
  75. package/dist/chunk-YC4FLMDD.js +0 -74
  76. package/dist/chunk-ZRUHMMSQ.js +0 -2477
  77. package/dist/custom-oclif-loader-5KBN3RSN.js +0 -83
  78. package/dist/del-ZCPTGWOA.js +0 -2847
  79. package/dist/devtools-5N4JAP3R.js +0 -3588
  80. package/dist/error-handler-GTW2KSRC.js +0 -35
  81. package/dist/lib-CTSCLPNV.js +0 -9
  82. package/dist/magic-string.es-ATGURXGQ.js +0 -1353
  83. package/dist/multipart-parser-KYOHF24X.js +0 -360
  84. package/dist/open-JRS7RW22.js +0 -291
  85. package/dist/out-OKI3G7I5.js +0 -6
  86. package/dist/system-4S4YXUXZ.js +0 -26
@@ -0,0 +1,3774 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ init_cjs_shims
5
+ } from "./chunk-POZ5MGPT.js";
6
+
7
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js
8
+ var require_array = __commonJS({
9
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/array.js"(exports) {
10
+ "use strict";
11
+ init_cjs_shims();
12
+ Object.defineProperty(exports, "__esModule", { value: !0 });
13
+ exports.splitWhen = exports.flatten = void 0;
14
+ function flatten(items) {
15
+ return items.reduce((collection, item) => [].concat(collection, item), []);
16
+ }
17
+ exports.flatten = flatten;
18
+ function splitWhen(items, predicate) {
19
+ let result = [[]], groupIndex = 0;
20
+ for (let item of items)
21
+ predicate(item) ? (groupIndex++, result[groupIndex] = []) : result[groupIndex].push(item);
22
+ return result;
23
+ }
24
+ exports.splitWhen = splitWhen;
25
+ }
26
+ });
27
+
28
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/errno.js
29
+ var require_errno = __commonJS({
30
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/errno.js"(exports) {
31
+ "use strict";
32
+ init_cjs_shims();
33
+ Object.defineProperty(exports, "__esModule", { value: !0 });
34
+ exports.isEnoentCodeError = void 0;
35
+ function isEnoentCodeError(error) {
36
+ return error.code === "ENOENT";
37
+ }
38
+ exports.isEnoentCodeError = isEnoentCodeError;
39
+ }
40
+ });
41
+
42
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/fs.js
43
+ var require_fs = __commonJS({
44
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/fs.js"(exports) {
45
+ "use strict";
46
+ init_cjs_shims();
47
+ Object.defineProperty(exports, "__esModule", { value: !0 });
48
+ exports.createDirentFromStats = void 0;
49
+ var DirentFromStats = class {
50
+ constructor(name, stats) {
51
+ this.name = name, this.isBlockDevice = stats.isBlockDevice.bind(stats), this.isCharacterDevice = stats.isCharacterDevice.bind(stats), this.isDirectory = stats.isDirectory.bind(stats), this.isFIFO = stats.isFIFO.bind(stats), this.isFile = stats.isFile.bind(stats), this.isSocket = stats.isSocket.bind(stats), this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
52
+ }
53
+ };
54
+ function createDirentFromStats(name, stats) {
55
+ return new DirentFromStats(name, stats);
56
+ }
57
+ exports.createDirentFromStats = createDirentFromStats;
58
+ }
59
+ });
60
+
61
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/path.js
62
+ var require_path = __commonJS({
63
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/path.js"(exports) {
64
+ "use strict";
65
+ init_cjs_shims();
66
+ Object.defineProperty(exports, "__esModule", { value: !0 });
67
+ exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
68
+ 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;
69
+ function unixify(filepath) {
70
+ return filepath.replace(/\\/g, "/");
71
+ }
72
+ exports.unixify = unixify;
73
+ function makeAbsolute(cwd, filepath) {
74
+ return path.resolve(cwd, filepath);
75
+ }
76
+ exports.makeAbsolute = makeAbsolute;
77
+ function removeLeadingDotSegment(entry) {
78
+ if (entry.charAt(0) === ".") {
79
+ let secondCharactery = entry.charAt(1);
80
+ if (secondCharactery === "/" || secondCharactery === "\\")
81
+ return entry.slice(LEADING_DOT_SEGMENT_CHARACTERS_COUNT);
82
+ }
83
+ return entry;
84
+ }
85
+ exports.removeLeadingDotSegment = removeLeadingDotSegment;
86
+ exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
87
+ function escapeWindowsPath(pattern) {
88
+ return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
89
+ }
90
+ exports.escapeWindowsPath = escapeWindowsPath;
91
+ function escapePosixPath(pattern) {
92
+ return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
93
+ }
94
+ exports.escapePosixPath = escapePosixPath;
95
+ exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
96
+ function convertWindowsPathToPattern(filepath) {
97
+ return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
98
+ }
99
+ exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
100
+ function convertPosixPathToPattern(filepath) {
101
+ return escapePosixPath(filepath);
102
+ }
103
+ exports.convertPosixPathToPattern = convertPosixPathToPattern;
104
+ }
105
+ });
106
+
107
+ // ../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js
108
+ var require_is_extglob = __commonJS({
109
+ "../../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
110
+ init_cjs_shims();
111
+ module.exports = function(str) {
112
+ if (typeof str != "string" || str === "")
113
+ return !1;
114
+ for (var match; match = /(\\).|([@?!+*]\(.*\))/g.exec(str); ) {
115
+ if (match[2])
116
+ return !0;
117
+ str = str.slice(match.index + match[0].length);
118
+ }
119
+ return !1;
120
+ };
121
+ }
122
+ });
123
+
124
+ // ../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js
125
+ var require_is_glob = __commonJS({
126
+ "../../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
127
+ init_cjs_shims();
128
+ var isExtglob = require_is_extglob(), chars = { "{": "}", "(": ")", "[": "]" }, strictCheck = function(str) {
129
+ if (str[0] === "!")
130
+ return !0;
131
+ for (var index = 0, pipeIndex = -2, closeSquareIndex = -2, closeCurlyIndex = -2, closeParenIndex = -2, backSlashIndex = -2; index < str.length; ) {
132
+ if (str[index] === "*" || str[index + 1] === "?" && /[\].+)]/.test(str[index]) || closeSquareIndex !== -1 && str[index] === "[" && str[index + 1] !== "]" && (closeSquareIndex < index && (closeSquareIndex = str.indexOf("]", index)), closeSquareIndex > index && (backSlashIndex === -1 || backSlashIndex > closeSquareIndex || (backSlashIndex = str.indexOf("\\", index), backSlashIndex === -1 || backSlashIndex > closeSquareIndex))) || closeCurlyIndex !== -1 && str[index] === "{" && str[index + 1] !== "}" && (closeCurlyIndex = str.indexOf("}", index), closeCurlyIndex > index && (backSlashIndex = str.indexOf("\\", index), backSlashIndex === -1 || backSlashIndex > closeCurlyIndex)) || closeParenIndex !== -1 && str[index] === "(" && str[index + 1] === "?" && /[:!=]/.test(str[index + 2]) && str[index + 3] !== ")" && (closeParenIndex = str.indexOf(")", index), closeParenIndex > index && (backSlashIndex = str.indexOf("\\", index), backSlashIndex === -1 || backSlashIndex > closeParenIndex)) || pipeIndex !== -1 && str[index] === "(" && str[index + 1] !== "|" && (pipeIndex < index && (pipeIndex = str.indexOf("|", index)), pipeIndex !== -1 && str[pipeIndex + 1] !== ")" && (closeParenIndex = str.indexOf(")", pipeIndex), closeParenIndex > pipeIndex && (backSlashIndex = str.indexOf("\\", pipeIndex), backSlashIndex === -1 || backSlashIndex > closeParenIndex))))
133
+ return !0;
134
+ if (str[index] === "\\") {
135
+ var open = str[index + 1];
136
+ index += 2;
137
+ var close = chars[open];
138
+ if (close) {
139
+ var n = str.indexOf(close, index);
140
+ n !== -1 && (index = n + 1);
141
+ }
142
+ if (str[index] === "!")
143
+ return !0;
144
+ } else
145
+ index++;
146
+ }
147
+ return !1;
148
+ }, relaxedCheck = function(str) {
149
+ if (str[0] === "!")
150
+ return !0;
151
+ for (var index = 0; index < str.length; ) {
152
+ if (/[*?{}()[\]]/.test(str[index]))
153
+ return !0;
154
+ if (str[index] === "\\") {
155
+ var open = str[index + 1];
156
+ index += 2;
157
+ var close = chars[open];
158
+ if (close) {
159
+ var n = str.indexOf(close, index);
160
+ n !== -1 && (index = n + 1);
161
+ }
162
+ if (str[index] === "!")
163
+ return !0;
164
+ } else
165
+ index++;
166
+ }
167
+ return !1;
168
+ };
169
+ module.exports = function(str, options) {
170
+ if (typeof str != "string" || str === "")
171
+ return !1;
172
+ if (isExtglob(str))
173
+ return !0;
174
+ var check = strictCheck;
175
+ return options && options.strict === !1 && (check = relaxedCheck), check(str);
176
+ };
177
+ }
178
+ });
179
+
180
+ // ../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js
181
+ var require_glob_parent = __commonJS({
182
+ "../../node_modules/.pnpm/glob-parent@5.1.2/node_modules/glob-parent/index.js"(exports, module) {
183
+ "use strict";
184
+ init_cjs_shims();
185
+ var isGlob = require_is_glob(), pathPosixDirname = __require("path").posix.dirname, isWin32 = __require("os").platform() === "win32", slash = "/", backslash = /\\/g, enclosure = /[\{\[].*[\}\]]$/, globby = /(^|[^\\])([\{\[]|\([^\)]+$)/, escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
186
+ module.exports = function(str, opts) {
187
+ var options = Object.assign({ flipBackslashes: !0 }, opts);
188
+ options.flipBackslashes && isWin32 && str.indexOf(slash) < 0 && (str = str.replace(backslash, slash)), enclosure.test(str) && (str += slash), str += "a";
189
+ do
190
+ str = pathPosixDirname(str);
191
+ while (isGlob(str) || globby.test(str));
192
+ return str.replace(escaped, "$1");
193
+ };
194
+ }
195
+ });
196
+
197
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js
198
+ var require_utils = __commonJS({
199
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/utils.js"(exports) {
200
+ "use strict";
201
+ init_cjs_shims();
202
+ exports.isInteger = (num) => typeof num == "number" ? Number.isInteger(num) : typeof num == "string" && num.trim() !== "" ? Number.isInteger(Number(num)) : !1;
203
+ exports.find = (node, type) => node.nodes.find((node2) => node2.type === type);
204
+ exports.exceedsLimit = (min, max, step = 1, limit) => limit === !1 || !exports.isInteger(min) || !exports.isInteger(max) ? !1 : (Number(max) - Number(min)) / Number(step) >= limit;
205
+ exports.escapeNode = (block, n = 0, type) => {
206
+ let node = block.nodes[n];
207
+ node && (type && node.type === type || node.type === "open" || node.type === "close") && node.escaped !== !0 && (node.value = "\\" + node.value, node.escaped = !0);
208
+ };
209
+ exports.encloseBrace = (node) => node.type !== "brace" || node.commas >> 0 + node.ranges >> 0 ? !1 : (node.invalid = !0, !0);
210
+ 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;
211
+ exports.isOpenOrClose = (node) => node.type === "open" || node.type === "close" ? !0 : node.open === !0 || node.close === !0;
212
+ exports.reduce = (nodes) => nodes.reduce((acc, node) => (node.type === "text" && acc.push(node.value), node.type === "range" && (node.type = "text"), acc), []);
213
+ exports.flatten = (...args) => {
214
+ let result = [], flat = (arr) => {
215
+ for (let i = 0; i < arr.length; i++) {
216
+ let ele = arr[i];
217
+ Array.isArray(ele) ? flat(ele, result) : ele !== void 0 && result.push(ele);
218
+ }
219
+ return result;
220
+ };
221
+ return flat(args), result;
222
+ };
223
+ }
224
+ });
225
+
226
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js
227
+ var require_stringify = __commonJS({
228
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/stringify.js"(exports, module) {
229
+ "use strict";
230
+ init_cjs_shims();
231
+ var utils = require_utils();
232
+ module.exports = (ast, options = {}) => {
233
+ let stringify = (node, parent = {}) => {
234
+ let invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, output = "";
235
+ if (node.value)
236
+ return (invalidBlock || invalidNode) && utils.isOpenOrClose(node) ? "\\" + node.value : node.value;
237
+ if (node.value)
238
+ return node.value;
239
+ if (node.nodes)
240
+ for (let child of node.nodes)
241
+ output += stringify(child);
242
+ return output;
243
+ };
244
+ return stringify(ast);
245
+ };
246
+ }
247
+ });
248
+
249
+ // ../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js
250
+ var require_is_number = __commonJS({
251
+ "../../node_modules/.pnpm/is-number@7.0.0/node_modules/is-number/index.js"(exports, module) {
252
+ "use strict";
253
+ init_cjs_shims();
254
+ module.exports = function(num) {
255
+ return typeof num == "number" ? num - num === 0 : typeof num == "string" && num.trim() !== "" ? Number.isFinite ? Number.isFinite(+num) : isFinite(+num) : !1;
256
+ };
257
+ }
258
+ });
259
+
260
+ // ../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js
261
+ var require_to_regex_range = __commonJS({
262
+ "../../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
263
+ "use strict";
264
+ init_cjs_shims();
265
+ var isNumber = require_is_number(), toRegexRange = (min, max, options) => {
266
+ if (isNumber(min) === !1)
267
+ throw new TypeError("toRegexRange: expected the first argument to be a number");
268
+ if (max === void 0 || min === max)
269
+ return String(min);
270
+ if (isNumber(max) === !1)
271
+ throw new TypeError("toRegexRange: expected the second argument to be a number.");
272
+ let opts = { relaxZeros: !0, ...options };
273
+ typeof opts.strictZeros == "boolean" && (opts.relaxZeros = opts.strictZeros === !1);
274
+ let relax = String(opts.relaxZeros), shorthand = String(opts.shorthand), capture = String(opts.capture), wrap = String(opts.wrap), cacheKey = min + ":" + max + "=" + relax + shorthand + capture + wrap;
275
+ if (toRegexRange.cache.hasOwnProperty(cacheKey))
276
+ return toRegexRange.cache[cacheKey].result;
277
+ let a = Math.min(min, max), b = Math.max(min, max);
278
+ if (Math.abs(a - b) === 1) {
279
+ let result = min + "|" + max;
280
+ return opts.capture ? `(${result})` : opts.wrap === !1 ? result : `(?:${result})`;
281
+ }
282
+ let isPadded = hasPadding(min) || hasPadding(max), state = { min, max, a, b }, positives = [], negatives = [];
283
+ if (isPadded && (state.isPadded = isPadded, state.maxLen = String(state.max).length), a < 0) {
284
+ let newMin = b < 0 ? Math.abs(b) : 1;
285
+ negatives = splitToPatterns(newMin, Math.abs(a), state, opts), a = state.a = 0;
286
+ }
287
+ return b >= 0 && (positives = splitToPatterns(a, b, state, opts)), state.negatives = negatives, state.positives = positives, state.result = collatePatterns(negatives, positives, opts), opts.capture === !0 ? state.result = `(${state.result})` : opts.wrap !== !1 && positives.length + negatives.length > 1 && (state.result = `(?:${state.result})`), toRegexRange.cache[cacheKey] = state, state.result;
288
+ };
289
+ function collatePatterns(neg, pos, options) {
290
+ let onlyNegative = filterPatterns(neg, pos, "-", !1, options) || [], onlyPositive = filterPatterns(pos, neg, "", !1, options) || [], intersected = filterPatterns(neg, pos, "-?", !0, options) || [];
291
+ return onlyNegative.concat(intersected).concat(onlyPositive).join("|");
292
+ }
293
+ function splitToRanges(min, max) {
294
+ let nines = 1, zeros = 1, stop = countNines(min, nines), stops = /* @__PURE__ */ new Set([max]);
295
+ for (; min <= stop && stop <= max; )
296
+ stops.add(stop), nines += 1, stop = countNines(min, nines);
297
+ for (stop = countZeros(max + 1, zeros) - 1; min < stop && stop <= max; )
298
+ stops.add(stop), zeros += 1, stop = countZeros(max + 1, zeros) - 1;
299
+ return stops = [...stops], stops.sort(compare), stops;
300
+ }
301
+ function rangeToPattern(start, stop, options) {
302
+ if (start === stop)
303
+ return { pattern: start, count: [], digits: 0 };
304
+ let zipped = zip(start, stop), digits = zipped.length, pattern = "", count = 0;
305
+ for (let i = 0; i < digits; i++) {
306
+ let [startDigit, stopDigit] = zipped[i];
307
+ startDigit === stopDigit ? pattern += startDigit : startDigit !== "0" || stopDigit !== "9" ? pattern += toCharacterClass(startDigit, stopDigit, options) : count++;
308
+ }
309
+ return count && (pattern += options.shorthand === !0 ? "\\d" : "[0-9]"), { pattern, count: [count], digits };
310
+ }
311
+ function splitToPatterns(min, max, tok, options) {
312
+ let ranges = splitToRanges(min, max), tokens = [], start = min, prev;
313
+ for (let i = 0; i < ranges.length; i++) {
314
+ let max2 = ranges[i], obj = rangeToPattern(String(start), String(max2), options), zeros = "";
315
+ if (!tok.isPadded && prev && prev.pattern === obj.pattern) {
316
+ prev.count.length > 1 && prev.count.pop(), prev.count.push(obj.count[0]), prev.string = prev.pattern + toQuantifier(prev.count), start = max2 + 1;
317
+ continue;
318
+ }
319
+ tok.isPadded && (zeros = padZeros(max2, tok, options)), obj.string = zeros + obj.pattern + toQuantifier(obj.count), tokens.push(obj), start = max2 + 1, prev = obj;
320
+ }
321
+ return tokens;
322
+ }
323
+ function filterPatterns(arr, comparison, prefix, intersection, options) {
324
+ let result = [];
325
+ for (let ele of arr) {
326
+ let { string } = ele;
327
+ !intersection && !contains(comparison, "string", string) && result.push(prefix + string), intersection && contains(comparison, "string", string) && result.push(prefix + string);
328
+ }
329
+ return result;
330
+ }
331
+ function zip(a, b) {
332
+ let arr = [];
333
+ for (let i = 0; i < a.length; i++)
334
+ arr.push([a[i], b[i]]);
335
+ return arr;
336
+ }
337
+ function compare(a, b) {
338
+ return a > b ? 1 : b > a ? -1 : 0;
339
+ }
340
+ function contains(arr, key, val) {
341
+ return arr.some((ele) => ele[key] === val);
342
+ }
343
+ function countNines(min, len) {
344
+ return Number(String(min).slice(0, -len) + "9".repeat(len));
345
+ }
346
+ function countZeros(integer, zeros) {
347
+ return integer - integer % Math.pow(10, zeros);
348
+ }
349
+ function toQuantifier(digits) {
350
+ let [start = 0, stop = ""] = digits;
351
+ return stop || start > 1 ? `{${start + (stop ? "," + stop : "")}}` : "";
352
+ }
353
+ function toCharacterClass(a, b, options) {
354
+ return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
355
+ }
356
+ function hasPadding(str) {
357
+ return /^-?(0+)\d/.test(str);
358
+ }
359
+ function padZeros(value, tok, options) {
360
+ if (!tok.isPadded)
361
+ return value;
362
+ let diff = Math.abs(tok.maxLen - String(value).length), relax = options.relaxZeros !== !1;
363
+ switch (diff) {
364
+ case 0:
365
+ return "";
366
+ case 1:
367
+ return relax ? "0?" : "0";
368
+ case 2:
369
+ return relax ? "0{0,2}" : "00";
370
+ default:
371
+ return relax ? `0{0,${diff}}` : `0{${diff}}`;
372
+ }
373
+ }
374
+ toRegexRange.cache = {};
375
+ toRegexRange.clearCache = () => toRegexRange.cache = {};
376
+ module.exports = toRegexRange;
377
+ }
378
+ });
379
+
380
+ // ../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js
381
+ var require_fill_range = __commonJS({
382
+ "../../node_modules/.pnpm/fill-range@7.0.1/node_modules/fill-range/index.js"(exports, module) {
383
+ "use strict";
384
+ init_cjs_shims();
385
+ 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) => {
386
+ let value = `${input}`, index = -1;
387
+ if (value[0] === "-" && (value = value.slice(1)), value === "0")
388
+ return !1;
389
+ for (; value[++index] === "0"; )
390
+ ;
391
+ return index > 0;
392
+ }, stringify = (start, end, options) => typeof start == "string" || typeof end == "string" ? !0 : options.stringify === !0, pad = (input, maxLength, toNumber) => {
393
+ if (maxLength > 0) {
394
+ let dash = input[0] === "-" ? "-" : "";
395
+ dash && (input = input.slice(1)), input = dash + input.padStart(dash ? maxLength - 1 : maxLength, "0");
396
+ }
397
+ return toNumber === !1 ? String(input) : input;
398
+ }, toMaxLen = (input, maxLength) => {
399
+ let negative = input[0] === "-" ? "-" : "";
400
+ for (negative && (input = input.slice(1), maxLength--); input.length < maxLength; )
401
+ input = "0" + input;
402
+ return negative ? "-" + input : input;
403
+ }, toSequence = (parts, options) => {
404
+ parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0), parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
405
+ let prefix = options.capture ? "" : "?:", positives = "", negatives = "", result;
406
+ return parts.positives.length && (positives = parts.positives.join("|")), parts.negatives.length && (negatives = `-(${prefix}${parts.negatives.join("|")})`), positives && negatives ? result = `${positives}|${negatives}` : result = positives || negatives, options.wrap ? `(${prefix}${result})` : result;
407
+ }, toRange = (a, b, isNumbers, options) => {
408
+ if (isNumbers)
409
+ return toRegexRange(a, b, { wrap: !1, ...options });
410
+ let start = String.fromCharCode(a);
411
+ if (a === b)
412
+ return start;
413
+ let stop = String.fromCharCode(b);
414
+ return `[${start}-${stop}]`;
415
+ }, toRegex = (start, end, options) => {
416
+ if (Array.isArray(start)) {
417
+ let wrap = options.wrap === !0, prefix = options.capture ? "" : "?:";
418
+ return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
419
+ }
420
+ return toRegexRange(start, end, options);
421
+ }, rangeError = (...args) => new RangeError("Invalid range arguments: " + util.inspect(...args)), invalidRange = (start, end, options) => {
422
+ if (options.strictRanges === !0)
423
+ throw rangeError([start, end]);
424
+ return [];
425
+ }, invalidStep = (step, options) => {
426
+ if (options.strictRanges === !0)
427
+ throw new TypeError(`Expected step "${step}" to be a number`);
428
+ return [];
429
+ }, fillNumbers = (start, end, step = 1, options = {}) => {
430
+ let a = Number(start), b = Number(end);
431
+ if (!Number.isInteger(a) || !Number.isInteger(b)) {
432
+ if (options.strictRanges === !0)
433
+ throw rangeError([start, end]);
434
+ return [];
435
+ }
436
+ a === 0 && (a = 0), b === 0 && (b = 0);
437
+ let descending = a > b, startString = String(start), endString = String(end), stepString = String(step);
438
+ step = Math.max(Math.abs(step), 1);
439
+ 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);
440
+ if (options.toRegex && step === 1)
441
+ return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), !0, options);
442
+ let parts = { negatives: [], positives: [] }, push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), range = [], index = 0;
443
+ for (; descending ? a >= b : a <= b; )
444
+ options.toRegex === !0 && step > 1 ? push(a) : range.push(pad(format(a, index), maxLen, toNumber)), a = descending ? a - step : a + step, index++;
445
+ return options.toRegex === !0 ? step > 1 ? toSequence(parts, options) : toRegex(range, null, { wrap: !1, ...options }) : range;
446
+ }, fillLetters = (start, end, step = 1, options = {}) => {
447
+ if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1)
448
+ return invalidRange(start, end, options);
449
+ 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);
450
+ if (options.toRegex && step === 1)
451
+ return toRange(min, max, !1, options);
452
+ let range = [], index = 0;
453
+ for (; descending ? a >= b : a <= b; )
454
+ range.push(format(a, index)), a = descending ? a - step : a + step, index++;
455
+ return options.toRegex === !0 ? toRegex(range, null, { wrap: !1, options }) : range;
456
+ }, fill = (start, end, step, options = {}) => {
457
+ if (end == null && isValidValue(start))
458
+ return [start];
459
+ if (!isValidValue(start) || !isValidValue(end))
460
+ return invalidRange(start, end, options);
461
+ if (typeof step == "function")
462
+ return fill(start, end, 1, { transform: step });
463
+ if (isObject(step))
464
+ return fill(start, end, 0, step);
465
+ let opts = { ...options };
466
+ 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);
467
+ };
468
+ module.exports = fill;
469
+ }
470
+ });
471
+
472
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js
473
+ var require_compile = __commonJS({
474
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/compile.js"(exports, module) {
475
+ "use strict";
476
+ init_cjs_shims();
477
+ var fill = require_fill_range(), utils = require_utils(), compile = (ast, options = {}) => {
478
+ let walk = (node, parent = {}) => {
479
+ let invalidBlock = utils.isInvalidBrace(parent), invalidNode = node.invalid === !0 && options.escapeInvalid === !0, invalid = invalidBlock === !0 || invalidNode === !0, prefix = options.escapeInvalid === !0 ? "\\" : "", output = "";
480
+ if (node.isOpen === !0 || node.isClose === !0)
481
+ return prefix + node.value;
482
+ if (node.type === "open")
483
+ return invalid ? prefix + node.value : "(";
484
+ if (node.type === "close")
485
+ return invalid ? prefix + node.value : ")";
486
+ if (node.type === "comma")
487
+ return node.prev.type === "comma" ? "" : invalid ? node.value : "|";
488
+ if (node.value)
489
+ return node.value;
490
+ if (node.nodes && node.ranges > 0) {
491
+ let args = utils.reduce(node.nodes), range = fill(...args, { ...options, wrap: !1, toRegex: !0 });
492
+ if (range.length !== 0)
493
+ return args.length > 1 && range.length > 1 ? `(${range})` : range;
494
+ }
495
+ if (node.nodes)
496
+ for (let child of node.nodes)
497
+ output += walk(child, node);
498
+ return output;
499
+ };
500
+ return walk(ast);
501
+ };
502
+ module.exports = compile;
503
+ }
504
+ });
505
+
506
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js
507
+ var require_expand = __commonJS({
508
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/expand.js"(exports, module) {
509
+ "use strict";
510
+ init_cjs_shims();
511
+ var fill = require_fill_range(), stringify = require_stringify(), utils = require_utils(), append = (queue = "", stash = "", enclose = !1) => {
512
+ let result = [];
513
+ if (queue = [].concat(queue), stash = [].concat(stash), !stash.length)
514
+ return queue;
515
+ if (!queue.length)
516
+ return enclose ? utils.flatten(stash).map((ele) => `{${ele}}`) : stash;
517
+ for (let item of queue)
518
+ if (Array.isArray(item))
519
+ for (let value of item)
520
+ result.push(append(value, stash, enclose));
521
+ else
522
+ for (let ele of stash)
523
+ enclose === !0 && typeof ele == "string" && (ele = `{${ele}}`), result.push(Array.isArray(ele) ? append(item, ele, enclose) : item + ele);
524
+ return utils.flatten(result);
525
+ }, expand = (ast, options = {}) => {
526
+ let rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit, walk = (node, parent = {}) => {
527
+ node.queue = [];
528
+ let p = parent, q = parent.queue;
529
+ for (; p.type !== "brace" && p.type !== "root" && p.parent; )
530
+ p = p.parent, q = p.queue;
531
+ if (node.invalid || node.dollar) {
532
+ q.push(append(q.pop(), stringify(node, options)));
533
+ return;
534
+ }
535
+ if (node.type === "brace" && node.invalid !== !0 && node.nodes.length === 2) {
536
+ q.push(append(q.pop(), ["{}"]));
537
+ return;
538
+ }
539
+ if (node.nodes && node.ranges > 0) {
540
+ let args = utils.reduce(node.nodes);
541
+ if (utils.exceedsLimit(...args, options.step, rangeLimit))
542
+ throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");
543
+ let range = fill(...args, options);
544
+ range.length === 0 && (range = stringify(node, options)), q.push(append(q.pop(), range)), node.nodes = [];
545
+ return;
546
+ }
547
+ let enclose = utils.encloseBrace(node), queue = node.queue, block = node;
548
+ for (; block.type !== "brace" && block.type !== "root" && block.parent; )
549
+ block = block.parent, queue = block.queue;
550
+ for (let i = 0; i < node.nodes.length; i++) {
551
+ let child = node.nodes[i];
552
+ if (child.type === "comma" && node.type === "brace") {
553
+ i === 1 && queue.push(""), queue.push("");
554
+ continue;
555
+ }
556
+ if (child.type === "close") {
557
+ q.push(append(q.pop(), queue, enclose));
558
+ continue;
559
+ }
560
+ if (child.value && child.type !== "open") {
561
+ queue.push(append(queue.pop(), child.value));
562
+ continue;
563
+ }
564
+ child.nodes && walk(child, node);
565
+ }
566
+ return queue;
567
+ };
568
+ return utils.flatten(walk(ast));
569
+ };
570
+ module.exports = expand;
571
+ }
572
+ });
573
+
574
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js
575
+ var require_constants = __commonJS({
576
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/constants.js"(exports, module) {
577
+ "use strict";
578
+ init_cjs_shims();
579
+ module.exports = {
580
+ MAX_LENGTH: 1024 * 64,
581
+ // Digits
582
+ CHAR_0: "0",
583
+ /* 0 */
584
+ CHAR_9: "9",
585
+ /* 9 */
586
+ // Alphabet chars.
587
+ CHAR_UPPERCASE_A: "A",
588
+ /* A */
589
+ CHAR_LOWERCASE_A: "a",
590
+ /* a */
591
+ CHAR_UPPERCASE_Z: "Z",
592
+ /* Z */
593
+ CHAR_LOWERCASE_Z: "z",
594
+ /* z */
595
+ CHAR_LEFT_PARENTHESES: "(",
596
+ /* ( */
597
+ CHAR_RIGHT_PARENTHESES: ")",
598
+ /* ) */
599
+ CHAR_ASTERISK: "*",
600
+ /* * */
601
+ // Non-alphabetic chars.
602
+ CHAR_AMPERSAND: "&",
603
+ /* & */
604
+ CHAR_AT: "@",
605
+ /* @ */
606
+ CHAR_BACKSLASH: "\\",
607
+ /* \ */
608
+ CHAR_BACKTICK: "`",
609
+ /* ` */
610
+ CHAR_CARRIAGE_RETURN: "\r",
611
+ /* \r */
612
+ CHAR_CIRCUMFLEX_ACCENT: "^",
613
+ /* ^ */
614
+ CHAR_COLON: ":",
615
+ /* : */
616
+ CHAR_COMMA: ",",
617
+ /* , */
618
+ CHAR_DOLLAR: "$",
619
+ /* . */
620
+ CHAR_DOT: ".",
621
+ /* . */
622
+ CHAR_DOUBLE_QUOTE: '"',
623
+ /* " */
624
+ CHAR_EQUAL: "=",
625
+ /* = */
626
+ CHAR_EXCLAMATION_MARK: "!",
627
+ /* ! */
628
+ CHAR_FORM_FEED: "\f",
629
+ /* \f */
630
+ CHAR_FORWARD_SLASH: "/",
631
+ /* / */
632
+ CHAR_HASH: "#",
633
+ /* # */
634
+ CHAR_HYPHEN_MINUS: "-",
635
+ /* - */
636
+ CHAR_LEFT_ANGLE_BRACKET: "<",
637
+ /* < */
638
+ CHAR_LEFT_CURLY_BRACE: "{",
639
+ /* { */
640
+ CHAR_LEFT_SQUARE_BRACKET: "[",
641
+ /* [ */
642
+ CHAR_LINE_FEED: `
643
+ `,
644
+ /* \n */
645
+ CHAR_NO_BREAK_SPACE: "\xA0",
646
+ /* \u00A0 */
647
+ CHAR_PERCENT: "%",
648
+ /* % */
649
+ CHAR_PLUS: "+",
650
+ /* + */
651
+ CHAR_QUESTION_MARK: "?",
652
+ /* ? */
653
+ CHAR_RIGHT_ANGLE_BRACKET: ">",
654
+ /* > */
655
+ CHAR_RIGHT_CURLY_BRACE: "}",
656
+ /* } */
657
+ CHAR_RIGHT_SQUARE_BRACKET: "]",
658
+ /* ] */
659
+ CHAR_SEMICOLON: ";",
660
+ /* ; */
661
+ CHAR_SINGLE_QUOTE: "'",
662
+ /* ' */
663
+ CHAR_SPACE: " ",
664
+ /* */
665
+ CHAR_TAB: " ",
666
+ /* \t */
667
+ CHAR_UNDERSCORE: "_",
668
+ /* _ */
669
+ CHAR_VERTICAL_LINE: "|",
670
+ /* | */
671
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: "\uFEFF"
672
+ /* \uFEFF */
673
+ };
674
+ }
675
+ });
676
+
677
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js
678
+ var require_parse = __commonJS({
679
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/lib/parse.js"(exports, module) {
680
+ "use strict";
681
+ init_cjs_shims();
682
+ var stringify = require_stringify(), {
683
+ MAX_LENGTH,
684
+ CHAR_BACKSLASH,
685
+ /* \ */
686
+ CHAR_BACKTICK,
687
+ /* ` */
688
+ CHAR_COMMA,
689
+ /* , */
690
+ CHAR_DOT,
691
+ /* . */
692
+ CHAR_LEFT_PARENTHESES,
693
+ /* ( */
694
+ CHAR_RIGHT_PARENTHESES,
695
+ /* ) */
696
+ CHAR_LEFT_CURLY_BRACE,
697
+ /* { */
698
+ CHAR_RIGHT_CURLY_BRACE,
699
+ /* } */
700
+ CHAR_LEFT_SQUARE_BRACKET,
701
+ /* [ */
702
+ CHAR_RIGHT_SQUARE_BRACKET,
703
+ /* ] */
704
+ CHAR_DOUBLE_QUOTE,
705
+ /* " */
706
+ CHAR_SINGLE_QUOTE,
707
+ /* ' */
708
+ CHAR_NO_BREAK_SPACE,
709
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE
710
+ } = require_constants(), parse = (input, options = {}) => {
711
+ if (typeof input != "string")
712
+ throw new TypeError("Expected a string");
713
+ let opts = options || {}, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
714
+ if (input.length > max)
715
+ throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
716
+ let ast = { type: "root", input, nodes: [] }, stack = [ast], block = ast, prev = ast, brackets = 0, length = input.length, index = 0, depth = 0, value, memo = {}, advance = () => input[index++], push = (node) => {
717
+ if (node.type === "text" && prev.type === "dot" && (prev.type = "text"), prev && prev.type === "text" && node.type === "text") {
718
+ prev.value += node.value;
719
+ return;
720
+ }
721
+ return block.nodes.push(node), node.parent = block, node.prev = prev, prev = node, node;
722
+ };
723
+ for (push({ type: "bos" }); index < length; )
724
+ if (block = stack[stack.length - 1], value = advance(), !(value === CHAR_ZERO_WIDTH_NOBREAK_SPACE || value === CHAR_NO_BREAK_SPACE)) {
725
+ if (value === CHAR_BACKSLASH) {
726
+ push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
727
+ continue;
728
+ }
729
+ if (value === CHAR_RIGHT_SQUARE_BRACKET) {
730
+ push({ type: "text", value: "\\" + value });
731
+ continue;
732
+ }
733
+ if (value === CHAR_LEFT_SQUARE_BRACKET) {
734
+ brackets++;
735
+ let closed = !0, next;
736
+ for (; index < length && (next = advance()); ) {
737
+ if (value += next, next === CHAR_LEFT_SQUARE_BRACKET) {
738
+ brackets++;
739
+ continue;
740
+ }
741
+ if (next === CHAR_BACKSLASH) {
742
+ value += advance();
743
+ continue;
744
+ }
745
+ if (next === CHAR_RIGHT_SQUARE_BRACKET && (brackets--, brackets === 0))
746
+ break;
747
+ }
748
+ push({ type: "text", value });
749
+ continue;
750
+ }
751
+ if (value === CHAR_LEFT_PARENTHESES) {
752
+ block = push({ type: "paren", nodes: [] }), stack.push(block), push({ type: "text", value });
753
+ continue;
754
+ }
755
+ if (value === CHAR_RIGHT_PARENTHESES) {
756
+ if (block.type !== "paren") {
757
+ push({ type: "text", value });
758
+ continue;
759
+ }
760
+ block = stack.pop(), push({ type: "text", value }), block = stack[stack.length - 1];
761
+ continue;
762
+ }
763
+ if (value === CHAR_DOUBLE_QUOTE || value === CHAR_SINGLE_QUOTE || value === CHAR_BACKTICK) {
764
+ let open = value, next;
765
+ for (options.keepQuotes !== !0 && (value = ""); index < length && (next = advance()); ) {
766
+ if (next === CHAR_BACKSLASH) {
767
+ value += next + advance();
768
+ continue;
769
+ }
770
+ if (next === open) {
771
+ options.keepQuotes === !0 && (value += next);
772
+ break;
773
+ }
774
+ value += next;
775
+ }
776
+ push({ type: "text", value });
777
+ continue;
778
+ }
779
+ if (value === CHAR_LEFT_CURLY_BRACE) {
780
+ depth++;
781
+ let brace = {
782
+ type: "brace",
783
+ open: !0,
784
+ close: !1,
785
+ dollar: prev.value && prev.value.slice(-1) === "$" || block.dollar === !0,
786
+ depth,
787
+ commas: 0,
788
+ ranges: 0,
789
+ nodes: []
790
+ };
791
+ block = push(brace), stack.push(block), push({ type: "open", value });
792
+ continue;
793
+ }
794
+ if (value === CHAR_RIGHT_CURLY_BRACE) {
795
+ if (block.type !== "brace") {
796
+ push({ type: "text", value });
797
+ continue;
798
+ }
799
+ let type = "close";
800
+ block = stack.pop(), block.close = !0, push({ type, value }), depth--, block = stack[stack.length - 1];
801
+ continue;
802
+ }
803
+ if (value === CHAR_COMMA && depth > 0) {
804
+ if (block.ranges > 0) {
805
+ block.ranges = 0;
806
+ let open = block.nodes.shift();
807
+ block.nodes = [open, { type: "text", value: stringify(block) }];
808
+ }
809
+ push({ type: "comma", value }), block.commas++;
810
+ continue;
811
+ }
812
+ if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
813
+ let siblings = block.nodes;
814
+ if (depth === 0 || siblings.length === 0) {
815
+ push({ type: "text", value });
816
+ continue;
817
+ }
818
+ if (prev.type === "dot") {
819
+ if (block.range = [], prev.value += value, prev.type = "range", block.nodes.length !== 3 && block.nodes.length !== 5) {
820
+ block.invalid = !0, block.ranges = 0, prev.type = "text";
821
+ continue;
822
+ }
823
+ block.ranges++, block.args = [];
824
+ continue;
825
+ }
826
+ if (prev.type === "range") {
827
+ siblings.pop();
828
+ let before = siblings[siblings.length - 1];
829
+ before.value += prev.value + value, prev = before, block.ranges--;
830
+ continue;
831
+ }
832
+ push({ type: "dot", value });
833
+ continue;
834
+ }
835
+ push({ type: "text", value });
836
+ }
837
+ do
838
+ if (block = stack.pop(), block.type !== "root") {
839
+ block.nodes.forEach((node) => {
840
+ node.nodes || (node.type === "open" && (node.isOpen = !0), node.type === "close" && (node.isClose = !0), node.nodes || (node.type = "text"), node.invalid = !0);
841
+ });
842
+ let parent = stack[stack.length - 1], index2 = parent.nodes.indexOf(block);
843
+ parent.nodes.splice(index2, 1, ...block.nodes);
844
+ }
845
+ while (stack.length > 0);
846
+ return push({ type: "eos" }), ast;
847
+ };
848
+ module.exports = parse;
849
+ }
850
+ });
851
+
852
+ // ../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js
853
+ var require_braces = __commonJS({
854
+ "../../node_modules/.pnpm/braces@3.0.2/node_modules/braces/index.js"(exports, module) {
855
+ "use strict";
856
+ init_cjs_shims();
857
+ var stringify = require_stringify(), compile = require_compile(), expand = require_expand(), parse = require_parse(), braces = (input, options = {}) => {
858
+ let output = [];
859
+ if (Array.isArray(input))
860
+ for (let pattern of input) {
861
+ let result = braces.create(pattern, options);
862
+ Array.isArray(result) ? output.push(...result) : output.push(result);
863
+ }
864
+ else
865
+ output = [].concat(braces.create(input, options));
866
+ return options && options.expand === !0 && options.nodupes === !0 && (output = [...new Set(output)]), output;
867
+ };
868
+ braces.parse = (input, options = {}) => parse(input, options);
869
+ braces.stringify = (input, options = {}) => stringify(typeof input == "string" ? braces.parse(input, options) : input, options);
870
+ braces.compile = (input, options = {}) => (typeof input == "string" && (input = braces.parse(input, options)), compile(input, options));
871
+ braces.expand = (input, options = {}) => {
872
+ typeof input == "string" && (input = braces.parse(input, options));
873
+ let result = expand(input, options);
874
+ return options.noempty === !0 && (result = result.filter(Boolean)), options.nodupes === !0 && (result = [...new Set(result)]), result;
875
+ };
876
+ braces.create = (input, options = {}) => input === "" || input.length < 3 ? [input] : options.expand !== !0 ? braces.compile(input, options) : braces.expand(input, options);
877
+ module.exports = braces;
878
+ }
879
+ });
880
+
881
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js
882
+ var require_constants2 = __commonJS({
883
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/constants.js"(exports, module) {
884
+ "use strict";
885
+ init_cjs_shims();
886
+ var path = __require("path"), WIN_SLASH = "\\\\/", WIN_NO_SLASH = `[^${WIN_SLASH}]`, DOT_LITERAL = "\\.", PLUS_LITERAL = "\\+", QMARK_LITERAL = "\\?", SLASH_LITERAL = "\\/", ONE_CHAR = "(?=.)", QMARK = "[^/]", END_ANCHOR = `(?:${SLASH_LITERAL}|$)`, START_ANCHOR = `(?:^|${SLASH_LITERAL})`, DOTS_SLASH = `${DOT_LITERAL}{1,2}${END_ANCHOR}`, NO_DOT = `(?!${DOT_LITERAL})`, NO_DOTS = `(?!${START_ANCHOR}${DOTS_SLASH})`, NO_DOT_SLASH = `(?!${DOT_LITERAL}{0,1}${END_ANCHOR})`, NO_DOTS_SLASH = `(?!${DOTS_SLASH})`, QMARK_NO_DOT = `[^.${SLASH_LITERAL}]`, STAR = `${QMARK}*?`, POSIX_CHARS = {
887
+ DOT_LITERAL,
888
+ PLUS_LITERAL,
889
+ QMARK_LITERAL,
890
+ SLASH_LITERAL,
891
+ ONE_CHAR,
892
+ QMARK,
893
+ END_ANCHOR,
894
+ DOTS_SLASH,
895
+ NO_DOT,
896
+ NO_DOTS,
897
+ NO_DOT_SLASH,
898
+ NO_DOTS_SLASH,
899
+ QMARK_NO_DOT,
900
+ STAR,
901
+ START_ANCHOR
902
+ }, WINDOWS_CHARS = {
903
+ ...POSIX_CHARS,
904
+ SLASH_LITERAL: `[${WIN_SLASH}]`,
905
+ QMARK: WIN_NO_SLASH,
906
+ STAR: `${WIN_NO_SLASH}*?`,
907
+ DOTS_SLASH: `${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$)`,
908
+ NO_DOT: `(?!${DOT_LITERAL})`,
909
+ NO_DOTS: `(?!(?:^|[${WIN_SLASH}])${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
910
+ NO_DOT_SLASH: `(?!${DOT_LITERAL}{0,1}(?:[${WIN_SLASH}]|$))`,
911
+ NO_DOTS_SLASH: `(?!${DOT_LITERAL}{1,2}(?:[${WIN_SLASH}]|$))`,
912
+ QMARK_NO_DOT: `[^.${WIN_SLASH}]`,
913
+ START_ANCHOR: `(?:^|[${WIN_SLASH}])`,
914
+ END_ANCHOR: `(?:[${WIN_SLASH}]|$)`
915
+ }, POSIX_REGEX_SOURCE = {
916
+ alnum: "a-zA-Z0-9",
917
+ alpha: "a-zA-Z",
918
+ ascii: "\\x00-\\x7F",
919
+ blank: " \\t",
920
+ cntrl: "\\x00-\\x1F\\x7F",
921
+ digit: "0-9",
922
+ graph: "\\x21-\\x7E",
923
+ lower: "a-z",
924
+ print: "\\x20-\\x7E ",
925
+ punct: "\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",
926
+ space: " \\t\\r\\n\\v\\f",
927
+ upper: "A-Z",
928
+ word: "A-Za-z0-9_",
929
+ xdigit: "A-Fa-f0-9"
930
+ };
931
+ module.exports = {
932
+ MAX_LENGTH: 1024 * 64,
933
+ POSIX_REGEX_SOURCE,
934
+ // regular expressions
935
+ REGEX_BACKSLASH: /\\(?![*+?^${}(|)[\]])/g,
936
+ REGEX_NON_SPECIAL_CHARS: /^[^@![\].,$*+?^{}()|\\/]+/,
937
+ REGEX_SPECIAL_CHARS: /[-*+?.^${}(|)[\]]/,
938
+ REGEX_SPECIAL_CHARS_BACKREF: /(\\?)((\W)(\3*))/g,
939
+ REGEX_SPECIAL_CHARS_GLOBAL: /([-*+?.^${}(|)[\]])/g,
940
+ REGEX_REMOVE_BACKSLASH: /(?:\[.*?[^\\]\]|\\(?=.))/g,
941
+ // Replace globs with equivalent patterns to reduce parsing time.
942
+ REPLACEMENTS: {
943
+ "***": "*",
944
+ "**/**": "**",
945
+ "**/**/**": "**"
946
+ },
947
+ // Digits
948
+ CHAR_0: 48,
949
+ /* 0 */
950
+ CHAR_9: 57,
951
+ /* 9 */
952
+ // Alphabet chars.
953
+ CHAR_UPPERCASE_A: 65,
954
+ /* A */
955
+ CHAR_LOWERCASE_A: 97,
956
+ /* a */
957
+ CHAR_UPPERCASE_Z: 90,
958
+ /* Z */
959
+ CHAR_LOWERCASE_Z: 122,
960
+ /* z */
961
+ CHAR_LEFT_PARENTHESES: 40,
962
+ /* ( */
963
+ CHAR_RIGHT_PARENTHESES: 41,
964
+ /* ) */
965
+ CHAR_ASTERISK: 42,
966
+ /* * */
967
+ // Non-alphabetic chars.
968
+ CHAR_AMPERSAND: 38,
969
+ /* & */
970
+ CHAR_AT: 64,
971
+ /* @ */
972
+ CHAR_BACKWARD_SLASH: 92,
973
+ /* \ */
974
+ CHAR_CARRIAGE_RETURN: 13,
975
+ /* \r */
976
+ CHAR_CIRCUMFLEX_ACCENT: 94,
977
+ /* ^ */
978
+ CHAR_COLON: 58,
979
+ /* : */
980
+ CHAR_COMMA: 44,
981
+ /* , */
982
+ CHAR_DOT: 46,
983
+ /* . */
984
+ CHAR_DOUBLE_QUOTE: 34,
985
+ /* " */
986
+ CHAR_EQUAL: 61,
987
+ /* = */
988
+ CHAR_EXCLAMATION_MARK: 33,
989
+ /* ! */
990
+ CHAR_FORM_FEED: 12,
991
+ /* \f */
992
+ CHAR_FORWARD_SLASH: 47,
993
+ /* / */
994
+ CHAR_GRAVE_ACCENT: 96,
995
+ /* ` */
996
+ CHAR_HASH: 35,
997
+ /* # */
998
+ CHAR_HYPHEN_MINUS: 45,
999
+ /* - */
1000
+ CHAR_LEFT_ANGLE_BRACKET: 60,
1001
+ /* < */
1002
+ CHAR_LEFT_CURLY_BRACE: 123,
1003
+ /* { */
1004
+ CHAR_LEFT_SQUARE_BRACKET: 91,
1005
+ /* [ */
1006
+ CHAR_LINE_FEED: 10,
1007
+ /* \n */
1008
+ CHAR_NO_BREAK_SPACE: 160,
1009
+ /* \u00A0 */
1010
+ CHAR_PERCENT: 37,
1011
+ /* % */
1012
+ CHAR_PLUS: 43,
1013
+ /* + */
1014
+ CHAR_QUESTION_MARK: 63,
1015
+ /* ? */
1016
+ CHAR_RIGHT_ANGLE_BRACKET: 62,
1017
+ /* > */
1018
+ CHAR_RIGHT_CURLY_BRACE: 125,
1019
+ /* } */
1020
+ CHAR_RIGHT_SQUARE_BRACKET: 93,
1021
+ /* ] */
1022
+ CHAR_SEMICOLON: 59,
1023
+ /* ; */
1024
+ CHAR_SINGLE_QUOTE: 39,
1025
+ /* ' */
1026
+ CHAR_SPACE: 32,
1027
+ /* */
1028
+ CHAR_TAB: 9,
1029
+ /* \t */
1030
+ CHAR_UNDERSCORE: 95,
1031
+ /* _ */
1032
+ CHAR_VERTICAL_LINE: 124,
1033
+ /* | */
1034
+ CHAR_ZERO_WIDTH_NOBREAK_SPACE: 65279,
1035
+ /* \uFEFF */
1036
+ SEP: path.sep,
1037
+ /**
1038
+ * Create EXTGLOB_CHARS
1039
+ */
1040
+ extglobChars(chars) {
1041
+ return {
1042
+ "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
1043
+ "?": { type: "qmark", open: "(?:", close: ")?" },
1044
+ "+": { type: "plus", open: "(?:", close: ")+" },
1045
+ "*": { type: "star", open: "(?:", close: ")*" },
1046
+ "@": { type: "at", open: "(?:", close: ")" }
1047
+ };
1048
+ },
1049
+ /**
1050
+ * Create GLOB_CHARS
1051
+ */
1052
+ globChars(win32) {
1053
+ return win32 === !0 ? WINDOWS_CHARS : POSIX_CHARS;
1054
+ }
1055
+ };
1056
+ }
1057
+ });
1058
+
1059
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js
1060
+ var require_utils2 = __commonJS({
1061
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/utils.js"(exports) {
1062
+ "use strict";
1063
+ init_cjs_shims();
1064
+ var path = __require("path"), win32 = process.platform === "win32", {
1065
+ REGEX_BACKSLASH,
1066
+ REGEX_REMOVE_BACKSLASH,
1067
+ REGEX_SPECIAL_CHARS,
1068
+ REGEX_SPECIAL_CHARS_GLOBAL
1069
+ } = require_constants2();
1070
+ exports.isObject = (val) => val !== null && typeof val == "object" && !Array.isArray(val);
1071
+ exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1072
+ exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
1073
+ exports.escapeRegex = (str) => str.replace(REGEX_SPECIAL_CHARS_GLOBAL, "\\$1");
1074
+ exports.toPosixSlashes = (str) => str.replace(REGEX_BACKSLASH, "/");
1075
+ exports.removeBackslashes = (str) => str.replace(REGEX_REMOVE_BACKSLASH, (match) => match === "\\" ? "" : match);
1076
+ exports.supportsLookbehinds = () => {
1077
+ let segs = process.version.slice(1).split(".").map(Number);
1078
+ return segs.length === 3 && segs[0] >= 9 || segs[0] === 8 && segs[1] >= 10;
1079
+ };
1080
+ exports.isWindows = (options) => options && typeof options.windows == "boolean" ? options.windows : win32 === !0 || path.sep === "\\";
1081
+ exports.escapeLast = (input, char, lastIdx) => {
1082
+ let idx = input.lastIndexOf(char, lastIdx);
1083
+ return idx === -1 ? input : input[idx - 1] === "\\" ? exports.escapeLast(input, char, idx - 1) : `${input.slice(0, idx)}\\${input.slice(idx)}`;
1084
+ };
1085
+ exports.removePrefix = (input, state = {}) => {
1086
+ let output = input;
1087
+ return output.startsWith("./") && (output = output.slice(2), state.prefix = "./"), output;
1088
+ };
1089
+ exports.wrapOutput = (input, state = {}, options = {}) => {
1090
+ let prepend = options.contains ? "" : "^", append = options.contains ? "" : "$", output = `${prepend}(?:${input})${append}`;
1091
+ return state.negated === !0 && (output = `(?:^(?!${output}).*$)`), output;
1092
+ };
1093
+ }
1094
+ });
1095
+
1096
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js
1097
+ var require_scan = __commonJS({
1098
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/scan.js"(exports, module) {
1099
+ "use strict";
1100
+ init_cjs_shims();
1101
+ var utils = require_utils2(), {
1102
+ CHAR_ASTERISK,
1103
+ /* * */
1104
+ CHAR_AT,
1105
+ /* @ */
1106
+ CHAR_BACKWARD_SLASH,
1107
+ /* \ */
1108
+ CHAR_COMMA,
1109
+ /* , */
1110
+ CHAR_DOT,
1111
+ /* . */
1112
+ CHAR_EXCLAMATION_MARK,
1113
+ /* ! */
1114
+ CHAR_FORWARD_SLASH,
1115
+ /* / */
1116
+ CHAR_LEFT_CURLY_BRACE,
1117
+ /* { */
1118
+ CHAR_LEFT_PARENTHESES,
1119
+ /* ( */
1120
+ CHAR_LEFT_SQUARE_BRACKET,
1121
+ /* [ */
1122
+ CHAR_PLUS,
1123
+ /* + */
1124
+ CHAR_QUESTION_MARK,
1125
+ /* ? */
1126
+ CHAR_RIGHT_CURLY_BRACE,
1127
+ /* } */
1128
+ CHAR_RIGHT_PARENTHESES,
1129
+ /* ) */
1130
+ CHAR_RIGHT_SQUARE_BRACKET
1131
+ /* ] */
1132
+ } = require_constants2(), isPathSeparator = (code) => code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH, depth = (token) => {
1133
+ token.isPrefix !== !0 && (token.depth = token.isGlobstar ? 1 / 0 : 1);
1134
+ }, scan = (input, options) => {
1135
+ let opts = options || {}, length = input.length - 1, scanToEnd = opts.parts === !0 || opts.scanToEnd === !0, slashes = [], tokens = [], parts = [], str = input, index = -1, start = 0, lastIndex = 0, isBrace = !1, isBracket = !1, isGlob = !1, isExtglob = !1, isGlobstar = !1, braceEscaped = !1, backslashes = !1, negated = !1, negatedExtglob = !1, finished = !1, braces = 0, prev, code, token = { value: "", depth: 0, isGlob: !1 }, eos = () => index >= length, peek = () => str.charCodeAt(index + 1), advance = () => (prev = code, str.charCodeAt(++index));
1136
+ for (; index < length; ) {
1137
+ code = advance();
1138
+ let next;
1139
+ if (code === CHAR_BACKWARD_SLASH) {
1140
+ backslashes = token.backslashes = !0, code = advance(), code === CHAR_LEFT_CURLY_BRACE && (braceEscaped = !0);
1141
+ continue;
1142
+ }
1143
+ if (braceEscaped === !0 || code === CHAR_LEFT_CURLY_BRACE) {
1144
+ for (braces++; eos() !== !0 && (code = advance()); ) {
1145
+ if (code === CHAR_BACKWARD_SLASH) {
1146
+ backslashes = token.backslashes = !0, advance();
1147
+ continue;
1148
+ }
1149
+ if (code === CHAR_LEFT_CURLY_BRACE) {
1150
+ braces++;
1151
+ continue;
1152
+ }
1153
+ if (braceEscaped !== !0 && code === CHAR_DOT && (code = advance()) === CHAR_DOT) {
1154
+ if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1155
+ continue;
1156
+ break;
1157
+ }
1158
+ if (braceEscaped !== !0 && code === CHAR_COMMA) {
1159
+ if (isBrace = token.isBrace = !0, isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1160
+ continue;
1161
+ break;
1162
+ }
1163
+ if (code === CHAR_RIGHT_CURLY_BRACE && (braces--, braces === 0)) {
1164
+ braceEscaped = !1, isBrace = token.isBrace = !0, finished = !0;
1165
+ break;
1166
+ }
1167
+ }
1168
+ if (scanToEnd === !0)
1169
+ continue;
1170
+ break;
1171
+ }
1172
+ if (code === CHAR_FORWARD_SLASH) {
1173
+ if (slashes.push(index), tokens.push(token), token = { value: "", depth: 0, isGlob: !1 }, finished === !0)
1174
+ continue;
1175
+ if (prev === CHAR_DOT && index === start + 1) {
1176
+ start += 2;
1177
+ continue;
1178
+ }
1179
+ lastIndex = index + 1;
1180
+ continue;
1181
+ }
1182
+ if (opts.noext !== !0 && (code === CHAR_PLUS || code === CHAR_AT || code === CHAR_ASTERISK || code === CHAR_QUESTION_MARK || code === CHAR_EXCLAMATION_MARK) === !0 && peek() === CHAR_LEFT_PARENTHESES) {
1183
+ if (isGlob = token.isGlob = !0, isExtglob = token.isExtglob = !0, finished = !0, code === CHAR_EXCLAMATION_MARK && index === start && (negatedExtglob = !0), scanToEnd === !0) {
1184
+ for (; eos() !== !0 && (code = advance()); ) {
1185
+ if (code === CHAR_BACKWARD_SLASH) {
1186
+ backslashes = token.backslashes = !0, code = advance();
1187
+ continue;
1188
+ }
1189
+ if (code === CHAR_RIGHT_PARENTHESES) {
1190
+ isGlob = token.isGlob = !0, finished = !0;
1191
+ break;
1192
+ }
1193
+ }
1194
+ continue;
1195
+ }
1196
+ break;
1197
+ }
1198
+ if (code === CHAR_ASTERISK) {
1199
+ if (prev === CHAR_ASTERISK && (isGlobstar = token.isGlobstar = !0), isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1200
+ continue;
1201
+ break;
1202
+ }
1203
+ if (code === CHAR_QUESTION_MARK) {
1204
+ if (isGlob = token.isGlob = !0, finished = !0, scanToEnd === !0)
1205
+ continue;
1206
+ break;
1207
+ }
1208
+ if (code === CHAR_LEFT_SQUARE_BRACKET) {
1209
+ for (; eos() !== !0 && (next = advance()); ) {
1210
+ if (next === CHAR_BACKWARD_SLASH) {
1211
+ backslashes = token.backslashes = !0, advance();
1212
+ continue;
1213
+ }
1214
+ if (next === CHAR_RIGHT_SQUARE_BRACKET) {
1215
+ isBracket = token.isBracket = !0, isGlob = token.isGlob = !0, finished = !0;
1216
+ break;
1217
+ }
1218
+ }
1219
+ if (scanToEnd === !0)
1220
+ continue;
1221
+ break;
1222
+ }
1223
+ if (opts.nonegate !== !0 && code === CHAR_EXCLAMATION_MARK && index === start) {
1224
+ negated = token.negated = !0, start++;
1225
+ continue;
1226
+ }
1227
+ if (opts.noparen !== !0 && code === CHAR_LEFT_PARENTHESES) {
1228
+ if (isGlob = token.isGlob = !0, scanToEnd === !0) {
1229
+ for (; eos() !== !0 && (code = advance()); ) {
1230
+ if (code === CHAR_LEFT_PARENTHESES) {
1231
+ backslashes = token.backslashes = !0, code = advance();
1232
+ continue;
1233
+ }
1234
+ if (code === CHAR_RIGHT_PARENTHESES) {
1235
+ finished = !0;
1236
+ break;
1237
+ }
1238
+ }
1239
+ continue;
1240
+ }
1241
+ break;
1242
+ }
1243
+ if (isGlob === !0) {
1244
+ if (finished = !0, scanToEnd === !0)
1245
+ continue;
1246
+ break;
1247
+ }
1248
+ }
1249
+ opts.noext === !0 && (isExtglob = !1, isGlob = !1);
1250
+ let base = str, prefix = "", glob = "";
1251
+ start > 0 && (prefix = str.slice(0, start), str = str.slice(start), lastIndex -= start), base && isGlob === !0 && lastIndex > 0 ? (base = str.slice(0, lastIndex), glob = str.slice(lastIndex)) : isGlob === !0 ? (base = "", glob = str) : base = str, base && base !== "" && base !== "/" && base !== str && isPathSeparator(base.charCodeAt(base.length - 1)) && (base = base.slice(0, -1)), opts.unescape === !0 && (glob && (glob = utils.removeBackslashes(glob)), base && backslashes === !0 && (base = utils.removeBackslashes(base)));
1252
+ let state = {
1253
+ prefix,
1254
+ input,
1255
+ start,
1256
+ base,
1257
+ glob,
1258
+ isBrace,
1259
+ isBracket,
1260
+ isGlob,
1261
+ isExtglob,
1262
+ isGlobstar,
1263
+ negated,
1264
+ negatedExtglob
1265
+ };
1266
+ if (opts.tokens === !0 && (state.maxDepth = 0, isPathSeparator(code) || tokens.push(token), state.tokens = tokens), opts.parts === !0 || opts.tokens === !0) {
1267
+ let prevIndex;
1268
+ for (let idx = 0; idx < slashes.length; idx++) {
1269
+ let n = prevIndex ? prevIndex + 1 : start, i = slashes[idx], value = input.slice(n, i);
1270
+ opts.tokens && (idx === 0 && start !== 0 ? (tokens[idx].isPrefix = !0, tokens[idx].value = prefix) : tokens[idx].value = value, depth(tokens[idx]), state.maxDepth += tokens[idx].depth), (idx !== 0 || value !== "") && parts.push(value), prevIndex = i;
1271
+ }
1272
+ if (prevIndex && prevIndex + 1 < input.length) {
1273
+ let value = input.slice(prevIndex + 1);
1274
+ parts.push(value), opts.tokens && (tokens[tokens.length - 1].value = value, depth(tokens[tokens.length - 1]), state.maxDepth += tokens[tokens.length - 1].depth);
1275
+ }
1276
+ state.slashes = slashes, state.parts = parts;
1277
+ }
1278
+ return state;
1279
+ };
1280
+ module.exports = scan;
1281
+ }
1282
+ });
1283
+
1284
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js
1285
+ var require_parse2 = __commonJS({
1286
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/parse.js"(exports, module) {
1287
+ "use strict";
1288
+ init_cjs_shims();
1289
+ var constants = require_constants2(), utils = require_utils2(), {
1290
+ MAX_LENGTH,
1291
+ POSIX_REGEX_SOURCE,
1292
+ REGEX_NON_SPECIAL_CHARS,
1293
+ REGEX_SPECIAL_CHARS_BACKREF,
1294
+ REPLACEMENTS
1295
+ } = constants, expandRange = (args, options) => {
1296
+ if (typeof options.expandRange == "function")
1297
+ return options.expandRange(...args, options);
1298
+ args.sort();
1299
+ let value = `[${args.join("-")}]`;
1300
+ try {
1301
+ new RegExp(value);
1302
+ } catch {
1303
+ return args.map((v) => utils.escapeRegex(v)).join("..");
1304
+ }
1305
+ return value;
1306
+ }, syntaxError = (type, char) => `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`, parse = (input, options) => {
1307
+ if (typeof input != "string")
1308
+ throw new TypeError("Expected a string");
1309
+ input = REPLACEMENTS[input] || input;
1310
+ let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
1311
+ if (len > max)
1312
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1313
+ let bos = { type: "bos", value: "", output: opts.prepend || "" }, tokens = [bos], capture = opts.capture ? "" : "?:", win32 = utils.isWindows(options), PLATFORM_CHARS = constants.globChars(win32), EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS), {
1314
+ DOT_LITERAL,
1315
+ PLUS_LITERAL,
1316
+ SLASH_LITERAL,
1317
+ ONE_CHAR,
1318
+ DOTS_SLASH,
1319
+ NO_DOT,
1320
+ NO_DOT_SLASH,
1321
+ NO_DOTS_SLASH,
1322
+ QMARK,
1323
+ QMARK_NO_DOT,
1324
+ STAR,
1325
+ START_ANCHOR
1326
+ } = PLATFORM_CHARS, globstar = (opts2) => `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, nodot = opts.dot ? "" : NO_DOT, qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT, star = opts.bash === !0 ? globstar(opts) : STAR;
1327
+ opts.capture && (star = `(${star})`), typeof opts.noext == "boolean" && (opts.noextglob = opts.noext);
1328
+ let state = {
1329
+ input,
1330
+ index: -1,
1331
+ start: 0,
1332
+ dot: opts.dot === !0,
1333
+ consumed: "",
1334
+ output: "",
1335
+ prefix: "",
1336
+ backtrack: !1,
1337
+ negated: !1,
1338
+ brackets: 0,
1339
+ braces: 0,
1340
+ parens: 0,
1341
+ quotes: 0,
1342
+ globstar: !1,
1343
+ tokens
1344
+ };
1345
+ input = utils.removePrefix(input, state), len = input.length;
1346
+ let extglobs = [], braces = [], stack = [], prev = bos, value, eos = () => state.index === len - 1, peek = state.peek = (n = 1) => input[state.index + n], advance = state.advance = () => input[++state.index] || "", remaining = () => input.slice(state.index + 1), consume = (value2 = "", num = 0) => {
1347
+ state.consumed += value2, state.index += num;
1348
+ }, append = (token) => {
1349
+ state.output += token.output != null ? token.output : token.value, consume(token.value);
1350
+ }, negate = () => {
1351
+ let count = 1;
1352
+ for (; peek() === "!" && (peek(2) !== "(" || peek(3) === "?"); )
1353
+ advance(), state.start++, count++;
1354
+ return count % 2 === 0 ? !1 : (state.negated = !0, state.start++, !0);
1355
+ }, increment = (type) => {
1356
+ state[type]++, stack.push(type);
1357
+ }, decrement = (type) => {
1358
+ state[type]--, stack.pop();
1359
+ }, push = (tok) => {
1360
+ if (prev.type === "globstar") {
1361
+ let isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace"), isExtglob = tok.extglob === !0 || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
1362
+ tok.type !== "slash" && tok.type !== "paren" && !isBrace && !isExtglob && (state.output = state.output.slice(0, -prev.output.length), prev.type = "star", prev.value = "*", prev.output = star, state.output += prev.output);
1363
+ }
1364
+ if (extglobs.length && tok.type !== "paren" && (extglobs[extglobs.length - 1].inner += tok.value), (tok.value || tok.output) && append(tok), prev && prev.type === "text" && tok.type === "text") {
1365
+ prev.value += tok.value, prev.output = (prev.output || "") + tok.value;
1366
+ return;
1367
+ }
1368
+ tok.prev = prev, tokens.push(tok), prev = tok;
1369
+ }, extglobOpen = (type, value2) => {
1370
+ let token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
1371
+ token.prev = prev, token.parens = state.parens, token.output = state.output;
1372
+ let output = (opts.capture ? "(" : "") + token.open;
1373
+ increment("parens"), push({ type, value: value2, output: state.output ? "" : ONE_CHAR }), push({ type: "paren", extglob: !0, value: advance(), output }), extglobs.push(token);
1374
+ }, extglobClose = (token) => {
1375
+ let output = token.close + (opts.capture ? ")" : ""), rest;
1376
+ if (token.type === "negate") {
1377
+ let extglobStar = star;
1378
+ if (token.inner && token.inner.length > 1 && token.inner.includes("/") && (extglobStar = globstar(opts)), (extglobStar !== star || eos() || /^\)+$/.test(remaining())) && (output = token.close = `)$))${extglobStar}`), token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
1379
+ let expression = parse(rest, { ...options, fastpaths: !1 }).output;
1380
+ output = token.close = `)${expression})${extglobStar})`;
1381
+ }
1382
+ token.prev.type === "bos" && (state.negatedExtglob = !0);
1383
+ }
1384
+ push({ type: "paren", extglob: !0, value, output }), decrement("parens");
1385
+ };
1386
+ if (opts.fastpaths !== !1 && !/(^[*!]|[/()[\]{}"])/.test(input)) {
1387
+ let backslashes = !1, output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => first === "\\" ? (backslashes = !0, m) : first === "?" ? esc ? esc + first + (rest ? QMARK.repeat(rest.length) : "") : index === 0 ? qmarkNoDot + (rest ? QMARK.repeat(rest.length) : "") : QMARK.repeat(chars.length) : first === "." ? DOT_LITERAL.repeat(chars.length) : first === "*" ? esc ? esc + first + (rest ? star : "") : star : esc ? m : `\\${m}`);
1388
+ return backslashes === !0 && (opts.unescape === !0 ? output = output.replace(/\\/g, "") : output = output.replace(/\\+/g, (m) => m.length % 2 === 0 ? "\\\\" : m ? "\\" : "")), output === input && opts.contains === !0 ? (state.output = input, state) : (state.output = utils.wrapOutput(output, state, options), state);
1389
+ }
1390
+ for (; !eos(); ) {
1391
+ if (value = advance(), value === "\0")
1392
+ continue;
1393
+ if (value === "\\") {
1394
+ let next = peek();
1395
+ if (next === "/" && opts.bash !== !0 || next === "." || next === ";")
1396
+ continue;
1397
+ if (!next) {
1398
+ value += "\\", push({ type: "text", value });
1399
+ continue;
1400
+ }
1401
+ let match = /^\\+/.exec(remaining()), slashes = 0;
1402
+ if (match && match[0].length > 2 && (slashes = match[0].length, state.index += slashes, slashes % 2 !== 0 && (value += "\\")), opts.unescape === !0 ? value = advance() : value += advance(), state.brackets === 0) {
1403
+ push({ type: "text", value });
1404
+ continue;
1405
+ }
1406
+ }
1407
+ if (state.brackets > 0 && (value !== "]" || prev.value === "[" || prev.value === "[^")) {
1408
+ if (opts.posix !== !1 && value === ":") {
1409
+ let inner = prev.value.slice(1);
1410
+ if (inner.includes("[") && (prev.posix = !0, inner.includes(":"))) {
1411
+ let idx = prev.value.lastIndexOf("["), pre = prev.value.slice(0, idx), rest2 = prev.value.slice(idx + 2), posix = POSIX_REGEX_SOURCE[rest2];
1412
+ if (posix) {
1413
+ prev.value = pre + posix, state.backtrack = !0, advance(), !bos.output && tokens.indexOf(prev) === 1 && (bos.output = ONE_CHAR);
1414
+ continue;
1415
+ }
1416
+ }
1417
+ }
1418
+ (value === "[" && peek() !== ":" || value === "-" && peek() === "]") && (value = `\\${value}`), value === "]" && (prev.value === "[" || prev.value === "[^") && (value = `\\${value}`), opts.posix === !0 && value === "!" && prev.value === "[" && (value = "^"), prev.value += value, append({ value });
1419
+ continue;
1420
+ }
1421
+ if (state.quotes === 1 && value !== '"') {
1422
+ value = utils.escapeRegex(value), prev.value += value, append({ value });
1423
+ continue;
1424
+ }
1425
+ if (value === '"') {
1426
+ state.quotes = state.quotes === 1 ? 0 : 1, opts.keepQuotes === !0 && push({ type: "text", value });
1427
+ continue;
1428
+ }
1429
+ if (value === "(") {
1430
+ increment("parens"), push({ type: "paren", value });
1431
+ continue;
1432
+ }
1433
+ if (value === ")") {
1434
+ if (state.parens === 0 && opts.strictBrackets === !0)
1435
+ throw new SyntaxError(syntaxError("opening", "("));
1436
+ let extglob = extglobs[extglobs.length - 1];
1437
+ if (extglob && state.parens === extglob.parens + 1) {
1438
+ extglobClose(extglobs.pop());
1439
+ continue;
1440
+ }
1441
+ push({ type: "paren", value, output: state.parens ? ")" : "\\)" }), decrement("parens");
1442
+ continue;
1443
+ }
1444
+ if (value === "[") {
1445
+ if (opts.nobracket === !0 || !remaining().includes("]")) {
1446
+ if (opts.nobracket !== !0 && opts.strictBrackets === !0)
1447
+ throw new SyntaxError(syntaxError("closing", "]"));
1448
+ value = `\\${value}`;
1449
+ } else
1450
+ increment("brackets");
1451
+ push({ type: "bracket", value });
1452
+ continue;
1453
+ }
1454
+ if (value === "]") {
1455
+ if (opts.nobracket === !0 || prev && prev.type === "bracket" && prev.value.length === 1) {
1456
+ push({ type: "text", value, output: `\\${value}` });
1457
+ continue;
1458
+ }
1459
+ if (state.brackets === 0) {
1460
+ if (opts.strictBrackets === !0)
1461
+ throw new SyntaxError(syntaxError("opening", "["));
1462
+ push({ type: "text", value, output: `\\${value}` });
1463
+ continue;
1464
+ }
1465
+ decrement("brackets");
1466
+ let prevValue = prev.value.slice(1);
1467
+ if (prev.posix !== !0 && prevValue[0] === "^" && !prevValue.includes("/") && (value = `/${value}`), prev.value += value, append({ value }), opts.literalBrackets === !1 || utils.hasRegexChars(prevValue))
1468
+ continue;
1469
+ let escaped = utils.escapeRegex(prev.value);
1470
+ if (state.output = state.output.slice(0, -prev.value.length), opts.literalBrackets === !0) {
1471
+ state.output += escaped, prev.value = escaped;
1472
+ continue;
1473
+ }
1474
+ prev.value = `(${capture}${escaped}|${prev.value})`, state.output += prev.value;
1475
+ continue;
1476
+ }
1477
+ if (value === "{" && opts.nobrace !== !0) {
1478
+ increment("braces");
1479
+ let open = {
1480
+ type: "brace",
1481
+ value,
1482
+ output: "(",
1483
+ outputIndex: state.output.length,
1484
+ tokensIndex: state.tokens.length
1485
+ };
1486
+ braces.push(open), push(open);
1487
+ continue;
1488
+ }
1489
+ if (value === "}") {
1490
+ let brace = braces[braces.length - 1];
1491
+ if (opts.nobrace === !0 || !brace) {
1492
+ push({ type: "text", value, output: value });
1493
+ continue;
1494
+ }
1495
+ let output = ")";
1496
+ if (brace.dots === !0) {
1497
+ let arr = tokens.slice(), range = [];
1498
+ for (let i = arr.length - 1; i >= 0 && (tokens.pop(), arr[i].type !== "brace"); i--)
1499
+ arr[i].type !== "dots" && range.unshift(arr[i].value);
1500
+ output = expandRange(range, opts), state.backtrack = !0;
1501
+ }
1502
+ if (brace.comma !== !0 && brace.dots !== !0) {
1503
+ let out = state.output.slice(0, brace.outputIndex), toks = state.tokens.slice(brace.tokensIndex);
1504
+ brace.value = brace.output = "\\{", value = output = "\\}", state.output = out;
1505
+ for (let t of toks)
1506
+ state.output += t.output || t.value;
1507
+ }
1508
+ push({ type: "brace", value, output }), decrement("braces"), braces.pop();
1509
+ continue;
1510
+ }
1511
+ if (value === "|") {
1512
+ extglobs.length > 0 && extglobs[extglobs.length - 1].conditions++, push({ type: "text", value });
1513
+ continue;
1514
+ }
1515
+ if (value === ",") {
1516
+ let output = value, brace = braces[braces.length - 1];
1517
+ brace && stack[stack.length - 1] === "braces" && (brace.comma = !0, output = "|"), push({ type: "comma", value, output });
1518
+ continue;
1519
+ }
1520
+ if (value === "/") {
1521
+ if (prev.type === "dot" && state.index === state.start + 1) {
1522
+ state.start = state.index + 1, state.consumed = "", state.output = "", tokens.pop(), prev = bos;
1523
+ continue;
1524
+ }
1525
+ push({ type: "slash", value, output: SLASH_LITERAL });
1526
+ continue;
1527
+ }
1528
+ if (value === ".") {
1529
+ if (state.braces > 0 && prev.type === "dot") {
1530
+ prev.value === "." && (prev.output = DOT_LITERAL);
1531
+ let brace = braces[braces.length - 1];
1532
+ prev.type = "dots", prev.output += value, prev.value += value, brace.dots = !0;
1533
+ continue;
1534
+ }
1535
+ if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
1536
+ push({ type: "text", value, output: DOT_LITERAL });
1537
+ continue;
1538
+ }
1539
+ push({ type: "dot", value, output: DOT_LITERAL });
1540
+ continue;
1541
+ }
1542
+ if (value === "?") {
1543
+ if (!(prev && prev.value === "(") && opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1544
+ extglobOpen("qmark", value);
1545
+ continue;
1546
+ }
1547
+ if (prev && prev.type === "paren") {
1548
+ let next = peek(), output = value;
1549
+ if (next === "<" && !utils.supportsLookbehinds())
1550
+ throw new Error("Node.js v10 or higher is required for regex lookbehinds");
1551
+ (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) && (output = `\\${value}`), push({ type: "text", value, output });
1552
+ continue;
1553
+ }
1554
+ if (opts.dot !== !0 && (prev.type === "slash" || prev.type === "bos")) {
1555
+ push({ type: "qmark", value, output: QMARK_NO_DOT });
1556
+ continue;
1557
+ }
1558
+ push({ type: "qmark", value, output: QMARK });
1559
+ continue;
1560
+ }
1561
+ if (value === "!") {
1562
+ if (opts.noextglob !== !0 && peek() === "(" && (peek(2) !== "?" || !/[!=<:]/.test(peek(3)))) {
1563
+ extglobOpen("negate", value);
1564
+ continue;
1565
+ }
1566
+ if (opts.nonegate !== !0 && state.index === 0) {
1567
+ negate();
1568
+ continue;
1569
+ }
1570
+ }
1571
+ if (value === "+") {
1572
+ if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1573
+ extglobOpen("plus", value);
1574
+ continue;
1575
+ }
1576
+ if (prev && prev.value === "(" || opts.regex === !1) {
1577
+ push({ type: "plus", value, output: PLUS_LITERAL });
1578
+ continue;
1579
+ }
1580
+ if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
1581
+ push({ type: "plus", value });
1582
+ continue;
1583
+ }
1584
+ push({ type: "plus", value: PLUS_LITERAL });
1585
+ continue;
1586
+ }
1587
+ if (value === "@") {
1588
+ if (opts.noextglob !== !0 && peek() === "(" && peek(2) !== "?") {
1589
+ push({ type: "at", extglob: !0, value, output: "" });
1590
+ continue;
1591
+ }
1592
+ push({ type: "text", value });
1593
+ continue;
1594
+ }
1595
+ if (value !== "*") {
1596
+ (value === "$" || value === "^") && (value = `\\${value}`);
1597
+ let match = REGEX_NON_SPECIAL_CHARS.exec(remaining());
1598
+ match && (value += match[0], state.index += match[0].length), push({ type: "text", value });
1599
+ continue;
1600
+ }
1601
+ if (prev && (prev.type === "globstar" || prev.star === !0)) {
1602
+ prev.type = "star", prev.star = !0, prev.value += value, prev.output = star, state.backtrack = !0, state.globstar = !0, consume(value);
1603
+ continue;
1604
+ }
1605
+ let rest = remaining();
1606
+ if (opts.noextglob !== !0 && /^\([^?]/.test(rest)) {
1607
+ extglobOpen("star", value);
1608
+ continue;
1609
+ }
1610
+ if (prev.type === "star") {
1611
+ if (opts.noglobstar === !0) {
1612
+ consume(value);
1613
+ continue;
1614
+ }
1615
+ let prior = prev.prev, before = prior.prev, isStart = prior.type === "slash" || prior.type === "bos", afterStar = before && (before.type === "star" || before.type === "globstar");
1616
+ if (opts.bash === !0 && (!isStart || rest[0] && rest[0] !== "/")) {
1617
+ push({ type: "star", value, output: "" });
1618
+ continue;
1619
+ }
1620
+ let isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace"), isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
1621
+ if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
1622
+ push({ type: "star", value, output: "" });
1623
+ continue;
1624
+ }
1625
+ for (; rest.slice(0, 3) === "/**"; ) {
1626
+ let after = input[state.index + 4];
1627
+ if (after && after !== "/")
1628
+ break;
1629
+ rest = rest.slice(3), consume("/**", 3);
1630
+ }
1631
+ if (prior.type === "bos" && eos()) {
1632
+ prev.type = "globstar", prev.value += value, prev.output = globstar(opts), state.output = prev.output, state.globstar = !0, consume(value);
1633
+ continue;
1634
+ }
1635
+ if (prior.type === "slash" && prior.prev.type !== "bos" && !afterStar && eos()) {
1636
+ state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = globstar(opts) + (opts.strictSlashes ? ")" : "|$)"), prev.value += value, state.globstar = !0, state.output += prior.output + prev.output, consume(value);
1637
+ continue;
1638
+ }
1639
+ if (prior.type === "slash" && prior.prev.type !== "bos" && rest[0] === "/") {
1640
+ let end = rest[1] !== void 0 ? "|$" : "";
1641
+ state.output = state.output.slice(0, -(prior.output + prev.output).length), prior.output = `(?:${prior.output}`, prev.type = "globstar", prev.output = `${globstar(opts)}${SLASH_LITERAL}|${SLASH_LITERAL}${end})`, prev.value += value, state.output += prior.output + prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
1642
+ continue;
1643
+ }
1644
+ if (prior.type === "bos" && rest[0] === "/") {
1645
+ prev.type = "globstar", prev.value += value, prev.output = `(?:^|${SLASH_LITERAL}|${globstar(opts)}${SLASH_LITERAL})`, state.output = prev.output, state.globstar = !0, consume(value + advance()), push({ type: "slash", value: "/", output: "" });
1646
+ continue;
1647
+ }
1648
+ state.output = state.output.slice(0, -prev.output.length), prev.type = "globstar", prev.output = globstar(opts), prev.value += value, state.output += prev.output, state.globstar = !0, consume(value);
1649
+ continue;
1650
+ }
1651
+ let token = { type: "star", value, output: star };
1652
+ if (opts.bash === !0) {
1653
+ token.output = ".*?", (prev.type === "bos" || prev.type === "slash") && (token.output = nodot + token.output), push(token);
1654
+ continue;
1655
+ }
1656
+ if (prev && (prev.type === "bracket" || prev.type === "paren") && opts.regex === !0) {
1657
+ token.output = value, push(token);
1658
+ continue;
1659
+ }
1660
+ (state.index === state.start || prev.type === "slash" || prev.type === "dot") && (prev.type === "dot" ? (state.output += NO_DOT_SLASH, prev.output += NO_DOT_SLASH) : opts.dot === !0 ? (state.output += NO_DOTS_SLASH, prev.output += NO_DOTS_SLASH) : (state.output += nodot, prev.output += nodot), peek() !== "*" && (state.output += ONE_CHAR, prev.output += ONE_CHAR)), push(token);
1661
+ }
1662
+ for (; state.brackets > 0; ) {
1663
+ if (opts.strictBrackets === !0)
1664
+ throw new SyntaxError(syntaxError("closing", "]"));
1665
+ state.output = utils.escapeLast(state.output, "["), decrement("brackets");
1666
+ }
1667
+ for (; state.parens > 0; ) {
1668
+ if (opts.strictBrackets === !0)
1669
+ throw new SyntaxError(syntaxError("closing", ")"));
1670
+ state.output = utils.escapeLast(state.output, "("), decrement("parens");
1671
+ }
1672
+ for (; state.braces > 0; ) {
1673
+ if (opts.strictBrackets === !0)
1674
+ throw new SyntaxError(syntaxError("closing", "}"));
1675
+ state.output = utils.escapeLast(state.output, "{"), decrement("braces");
1676
+ }
1677
+ if (opts.strictSlashes !== !0 && (prev.type === "star" || prev.type === "bracket") && push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` }), state.backtrack === !0) {
1678
+ state.output = "";
1679
+ for (let token of state.tokens)
1680
+ state.output += token.output != null ? token.output : token.value, token.suffix && (state.output += token.suffix);
1681
+ }
1682
+ return state;
1683
+ };
1684
+ parse.fastpaths = (input, options) => {
1685
+ let opts = { ...options }, max = typeof opts.maxLength == "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH, len = input.length;
1686
+ if (len > max)
1687
+ throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
1688
+ input = REPLACEMENTS[input] || input;
1689
+ let win32 = utils.isWindows(options), {
1690
+ DOT_LITERAL,
1691
+ SLASH_LITERAL,
1692
+ ONE_CHAR,
1693
+ DOTS_SLASH,
1694
+ NO_DOT,
1695
+ NO_DOTS,
1696
+ NO_DOTS_SLASH,
1697
+ STAR,
1698
+ START_ANCHOR
1699
+ } = constants.globChars(win32), nodot = opts.dot ? NO_DOTS : NO_DOT, slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT, capture = opts.capture ? "" : "?:", state = { negated: !1, prefix: "" }, star = opts.bash === !0 ? ".*?" : STAR;
1700
+ opts.capture && (star = `(${star})`);
1701
+ let globstar = (opts2) => opts2.noglobstar === !0 ? star : `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`, create = (str) => {
1702
+ switch (str) {
1703
+ case "*":
1704
+ return `${nodot}${ONE_CHAR}${star}`;
1705
+ case ".*":
1706
+ return `${DOT_LITERAL}${ONE_CHAR}${star}`;
1707
+ case "*.*":
1708
+ return `${nodot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
1709
+ case "*/*":
1710
+ return `${nodot}${star}${SLASH_LITERAL}${ONE_CHAR}${slashDot}${star}`;
1711
+ case "**":
1712
+ return nodot + globstar(opts);
1713
+ case "**/*":
1714
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${ONE_CHAR}${star}`;
1715
+ case "**/*.*":
1716
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${slashDot}${star}${DOT_LITERAL}${ONE_CHAR}${star}`;
1717
+ case "**/.*":
1718
+ return `(?:${nodot}${globstar(opts)}${SLASH_LITERAL})?${DOT_LITERAL}${ONE_CHAR}${star}`;
1719
+ default: {
1720
+ let match = /^(.*?)\.(\w+)$/.exec(str);
1721
+ if (!match)
1722
+ return;
1723
+ let source2 = create(match[1]);
1724
+ return source2 ? source2 + DOT_LITERAL + match[2] : void 0;
1725
+ }
1726
+ }
1727
+ }, output = utils.removePrefix(input, state), source = create(output);
1728
+ return source && opts.strictSlashes !== !0 && (source += `${SLASH_LITERAL}?`), source;
1729
+ };
1730
+ module.exports = parse;
1731
+ }
1732
+ });
1733
+
1734
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js
1735
+ var require_picomatch = __commonJS({
1736
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/lib/picomatch.js"(exports, module) {
1737
+ "use strict";
1738
+ init_cjs_shims();
1739
+ var path = __require("path"), scan = require_scan(), parse = require_parse2(), utils = require_utils2(), constants = require_constants2(), isObject = (val) => val && typeof val == "object" && !Array.isArray(val), picomatch = (glob, options, returnState = !1) => {
1740
+ if (Array.isArray(glob)) {
1741
+ let fns = glob.map((input) => picomatch(input, options, returnState));
1742
+ return (str) => {
1743
+ for (let isMatch of fns) {
1744
+ let state2 = isMatch(str);
1745
+ if (state2)
1746
+ return state2;
1747
+ }
1748
+ return !1;
1749
+ };
1750
+ }
1751
+ let isState = isObject(glob) && glob.tokens && glob.input;
1752
+ if (glob === "" || typeof glob != "string" && !isState)
1753
+ throw new TypeError("Expected pattern to be a non-empty string");
1754
+ let opts = options || {}, posix = utils.isWindows(options), regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, !1, !0), state = regex.state;
1755
+ delete regex.state;
1756
+ let isIgnored = () => !1;
1757
+ if (opts.ignore) {
1758
+ let ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
1759
+ isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
1760
+ }
1761
+ let matcher = (input, returnObject = !1) => {
1762
+ let { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix }), result = { glob, state, regex, posix, input, output, match, isMatch };
1763
+ return typeof opts.onResult == "function" && opts.onResult(result), isMatch === !1 ? (result.isMatch = !1, returnObject ? result : !1) : isIgnored(input) ? (typeof opts.onIgnore == "function" && opts.onIgnore(result), result.isMatch = !1, returnObject ? result : !1) : (typeof opts.onMatch == "function" && opts.onMatch(result), returnObject ? result : !0);
1764
+ };
1765
+ return returnState && (matcher.state = state), matcher;
1766
+ };
1767
+ picomatch.test = (input, regex, options, { glob, posix } = {}) => {
1768
+ if (typeof input != "string")
1769
+ throw new TypeError("Expected input to be a string");
1770
+ if (input === "")
1771
+ return { isMatch: !1, output: "" };
1772
+ let opts = options || {}, format = opts.format || (posix ? utils.toPosixSlashes : null), match = input === glob, output = match && format ? format(input) : input;
1773
+ return match === !1 && (output = format ? format(input) : input, match = output === glob), (match === !1 || opts.capture === !0) && (opts.matchBase === !0 || opts.basename === !0 ? match = picomatch.matchBase(input, regex, options, posix) : match = regex.exec(output)), { isMatch: !!match, match, output };
1774
+ };
1775
+ picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => (glob instanceof RegExp ? glob : picomatch.makeRe(glob, options)).test(path.basename(input));
1776
+ picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
1777
+ picomatch.parse = (pattern, options) => Array.isArray(pattern) ? pattern.map((p) => picomatch.parse(p, options)) : parse(pattern, { ...options, fastpaths: !1 });
1778
+ picomatch.scan = (input, options) => scan(input, options);
1779
+ picomatch.compileRe = (state, options, returnOutput = !1, returnState = !1) => {
1780
+ if (returnOutput === !0)
1781
+ return state.output;
1782
+ let opts = options || {}, prepend = opts.contains ? "" : "^", append = opts.contains ? "" : "$", source = `${prepend}(?:${state.output})${append}`;
1783
+ state && state.negated === !0 && (source = `^(?!${source}).*$`);
1784
+ let regex = picomatch.toRegex(source, options);
1785
+ return returnState === !0 && (regex.state = state), regex;
1786
+ };
1787
+ picomatch.makeRe = (input, options = {}, returnOutput = !1, returnState = !1) => {
1788
+ if (!input || typeof input != "string")
1789
+ throw new TypeError("Expected a non-empty string");
1790
+ let parsed = { negated: !1, fastpaths: !0 };
1791
+ return options.fastpaths !== !1 && (input[0] === "." || input[0] === "*") && (parsed.output = parse.fastpaths(input, options)), parsed.output || (parsed = parse(input, options)), picomatch.compileRe(parsed, options, returnOutput, returnState);
1792
+ };
1793
+ picomatch.toRegex = (source, options) => {
1794
+ try {
1795
+ let opts = options || {};
1796
+ return new RegExp(source, opts.flags || (opts.nocase ? "i" : ""));
1797
+ } catch (err) {
1798
+ if (options && options.debug === !0)
1799
+ throw err;
1800
+ return /$^/;
1801
+ }
1802
+ };
1803
+ picomatch.constants = constants;
1804
+ module.exports = picomatch;
1805
+ }
1806
+ });
1807
+
1808
+ // ../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js
1809
+ var require_picomatch2 = __commonJS({
1810
+ "../../node_modules/.pnpm/picomatch@2.3.1/node_modules/picomatch/index.js"(exports, module) {
1811
+ "use strict";
1812
+ init_cjs_shims();
1813
+ module.exports = require_picomatch();
1814
+ }
1815
+ });
1816
+
1817
+ // ../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js
1818
+ var require_micromatch = __commonJS({
1819
+ "../../node_modules/.pnpm/micromatch@4.0.5/node_modules/micromatch/index.js"(exports, module) {
1820
+ "use strict";
1821
+ init_cjs_shims();
1822
+ var util = __require("util"), braces = require_braces(), picomatch = require_picomatch2(), utils = require_utils2(), isEmptyString = (val) => val === "" || val === "./", micromatch = (list, patterns, options) => {
1823
+ patterns = [].concat(patterns), list = [].concat(list);
1824
+ let omit = /* @__PURE__ */ new Set(), keep = /* @__PURE__ */ new Set(), items = /* @__PURE__ */ new Set(), negatives = 0, onResult = (state) => {
1825
+ items.add(state.output), options && options.onResult && options.onResult(state);
1826
+ };
1827
+ for (let i = 0; i < patterns.length; i++) {
1828
+ let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, !0), negated = isMatch.state.negated || isMatch.state.negatedExtglob;
1829
+ negated && negatives++;
1830
+ for (let item of list) {
1831
+ let matched = isMatch(item, !0);
1832
+ (negated ? !matched.isMatch : matched.isMatch) && (negated ? omit.add(matched.output) : (omit.delete(matched.output), keep.add(matched.output)));
1833
+ }
1834
+ }
1835
+ let matches = (negatives === patterns.length ? [...items] : [...keep]).filter((item) => !omit.has(item));
1836
+ if (options && matches.length === 0) {
1837
+ if (options.failglob === !0)
1838
+ throw new Error(`No matches found for "${patterns.join(", ")}"`);
1839
+ if (options.nonull === !0 || options.nullglob === !0)
1840
+ return options.unescape ? patterns.map((p) => p.replace(/\\/g, "")) : patterns;
1841
+ }
1842
+ return matches;
1843
+ };
1844
+ micromatch.match = micromatch;
1845
+ micromatch.matcher = (pattern, options) => picomatch(pattern, options);
1846
+ micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
1847
+ micromatch.any = micromatch.isMatch;
1848
+ micromatch.not = (list, patterns, options = {}) => {
1849
+ patterns = [].concat(patterns).map(String);
1850
+ let result = /* @__PURE__ */ new Set(), items = [], onResult = (state) => {
1851
+ options.onResult && options.onResult(state), items.push(state.output);
1852
+ }, matches = new Set(micromatch(list, patterns, { ...options, onResult }));
1853
+ for (let item of items)
1854
+ matches.has(item) || result.add(item);
1855
+ return [...result];
1856
+ };
1857
+ micromatch.contains = (str, pattern, options) => {
1858
+ if (typeof str != "string")
1859
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
1860
+ if (Array.isArray(pattern))
1861
+ return pattern.some((p) => micromatch.contains(str, p, options));
1862
+ if (typeof pattern == "string") {
1863
+ if (isEmptyString(str) || isEmptyString(pattern))
1864
+ return !1;
1865
+ if (str.includes(pattern) || str.startsWith("./") && str.slice(2).includes(pattern))
1866
+ return !0;
1867
+ }
1868
+ return micromatch.isMatch(str, pattern, { ...options, contains: !0 });
1869
+ };
1870
+ micromatch.matchKeys = (obj, patterns, options) => {
1871
+ if (!utils.isObject(obj))
1872
+ throw new TypeError("Expected the first argument to be an object");
1873
+ let keys = micromatch(Object.keys(obj), patterns, options), res = {};
1874
+ for (let key of keys)
1875
+ res[key] = obj[key];
1876
+ return res;
1877
+ };
1878
+ micromatch.some = (list, patterns, options) => {
1879
+ let items = [].concat(list);
1880
+ for (let pattern of [].concat(patterns)) {
1881
+ let isMatch = picomatch(String(pattern), options);
1882
+ if (items.some((item) => isMatch(item)))
1883
+ return !0;
1884
+ }
1885
+ return !1;
1886
+ };
1887
+ micromatch.every = (list, patterns, options) => {
1888
+ let items = [].concat(list);
1889
+ for (let pattern of [].concat(patterns)) {
1890
+ let isMatch = picomatch(String(pattern), options);
1891
+ if (!items.every((item) => isMatch(item)))
1892
+ return !1;
1893
+ }
1894
+ return !0;
1895
+ };
1896
+ micromatch.all = (str, patterns, options) => {
1897
+ if (typeof str != "string")
1898
+ throw new TypeError(`Expected a string: "${util.inspect(str)}"`);
1899
+ return [].concat(patterns).every((p) => picomatch(p, options)(str));
1900
+ };
1901
+ micromatch.capture = (glob, input, options) => {
1902
+ let posix = utils.isWindows(options), match = picomatch.makeRe(String(glob), { ...options, capture: !0 }).exec(posix ? utils.toPosixSlashes(input) : input);
1903
+ if (match)
1904
+ return match.slice(1).map((v) => v === void 0 ? "" : v);
1905
+ };
1906
+ micromatch.makeRe = (...args) => picomatch.makeRe(...args);
1907
+ micromatch.scan = (...args) => picomatch.scan(...args);
1908
+ micromatch.parse = (patterns, options) => {
1909
+ let res = [];
1910
+ for (let pattern of [].concat(patterns || []))
1911
+ for (let str of braces(String(pattern), options))
1912
+ res.push(picomatch.parse(str, options));
1913
+ return res;
1914
+ };
1915
+ micromatch.braces = (pattern, options) => {
1916
+ if (typeof pattern != "string")
1917
+ throw new TypeError("Expected a string");
1918
+ return options && options.nobrace === !0 || !/\{.*\}/.test(pattern) ? [pattern] : braces(pattern, options);
1919
+ };
1920
+ micromatch.braceExpand = (pattern, options) => {
1921
+ if (typeof pattern != "string")
1922
+ throw new TypeError("Expected a string");
1923
+ return micromatch.braces(pattern, { ...options, expand: !0 });
1924
+ };
1925
+ module.exports = micromatch;
1926
+ }
1927
+ });
1928
+
1929
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/pattern.js
1930
+ var require_pattern = __commonJS({
1931
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/pattern.js"(exports) {
1932
+ "use strict";
1933
+ init_cjs_shims();
1934
+ Object.defineProperty(exports, "__esModule", { value: !0 });
1935
+ 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;
1936
+ 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;
1937
+ function isStaticPattern(pattern, options = {}) {
1938
+ return !isDynamicPattern(pattern, options);
1939
+ }
1940
+ exports.isStaticPattern = isStaticPattern;
1941
+ function isDynamicPattern(pattern, options = {}) {
1942
+ return pattern === "" ? !1 : !!(options.caseSensitiveMatch === !1 || pattern.includes(ESCAPE_SYMBOL) || COMMON_GLOB_SYMBOLS_RE.test(pattern) || REGEX_CHARACTER_CLASS_SYMBOLS_RE.test(pattern) || REGEX_GROUP_SYMBOLS_RE.test(pattern) || options.extglob !== !1 && GLOB_EXTENSION_SYMBOLS_RE.test(pattern) || options.braceExpansion !== !1 && hasBraceExpansion(pattern));
1943
+ }
1944
+ exports.isDynamicPattern = isDynamicPattern;
1945
+ function hasBraceExpansion(pattern) {
1946
+ let openingBraceIndex = pattern.indexOf("{");
1947
+ if (openingBraceIndex === -1)
1948
+ return !1;
1949
+ let closingBraceIndex = pattern.indexOf("}", openingBraceIndex + 1);
1950
+ if (closingBraceIndex === -1)
1951
+ return !1;
1952
+ let braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
1953
+ return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
1954
+ }
1955
+ function convertToPositivePattern(pattern) {
1956
+ return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
1957
+ }
1958
+ exports.convertToPositivePattern = convertToPositivePattern;
1959
+ function convertToNegativePattern(pattern) {
1960
+ return "!" + pattern;
1961
+ }
1962
+ exports.convertToNegativePattern = convertToNegativePattern;
1963
+ function isNegativePattern(pattern) {
1964
+ return pattern.startsWith("!") && pattern[1] !== "(";
1965
+ }
1966
+ exports.isNegativePattern = isNegativePattern;
1967
+ function isPositivePattern(pattern) {
1968
+ return !isNegativePattern(pattern);
1969
+ }
1970
+ exports.isPositivePattern = isPositivePattern;
1971
+ function getNegativePatterns(patterns) {
1972
+ return patterns.filter(isNegativePattern);
1973
+ }
1974
+ exports.getNegativePatterns = getNegativePatterns;
1975
+ function getPositivePatterns(patterns) {
1976
+ return patterns.filter(isPositivePattern);
1977
+ }
1978
+ exports.getPositivePatterns = getPositivePatterns;
1979
+ function getPatternsInsideCurrentDirectory(patterns) {
1980
+ return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
1981
+ }
1982
+ exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
1983
+ function getPatternsOutsideCurrentDirectory(patterns) {
1984
+ return patterns.filter(isPatternRelatedToParentDirectory);
1985
+ }
1986
+ exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
1987
+ function isPatternRelatedToParentDirectory(pattern) {
1988
+ return pattern.startsWith("..") || pattern.startsWith("./..");
1989
+ }
1990
+ exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
1991
+ function getBaseDirectory(pattern) {
1992
+ return globParent(pattern, { flipBackslashes: !1 });
1993
+ }
1994
+ exports.getBaseDirectory = getBaseDirectory;
1995
+ function hasGlobStar(pattern) {
1996
+ return pattern.includes(GLOBSTAR);
1997
+ }
1998
+ exports.hasGlobStar = hasGlobStar;
1999
+ function endsWithSlashGlobStar(pattern) {
2000
+ return pattern.endsWith("/" + GLOBSTAR);
2001
+ }
2002
+ exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
2003
+ function isAffectDepthOfReadingPattern(pattern) {
2004
+ let basename = path.basename(pattern);
2005
+ return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
2006
+ }
2007
+ exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
2008
+ function expandPatternsWithBraceExpansion(patterns) {
2009
+ return patterns.reduce((collection, pattern) => collection.concat(expandBraceExpansion(pattern)), []);
2010
+ }
2011
+ exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
2012
+ function expandBraceExpansion(pattern) {
2013
+ let patterns = micromatch.braces(pattern, { expand: !0, nodupes: !0 });
2014
+ return patterns.sort((a, b) => a.length - b.length), patterns.filter((pattern2) => pattern2 !== "");
2015
+ }
2016
+ exports.expandBraceExpansion = expandBraceExpansion;
2017
+ function getPatternParts(pattern, options) {
2018
+ let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: !0 }));
2019
+ return parts.length === 0 && (parts = [pattern]), parts[0].startsWith("/") && (parts[0] = parts[0].slice(1), parts.unshift("")), parts;
2020
+ }
2021
+ exports.getPatternParts = getPatternParts;
2022
+ function makeRe(pattern, options) {
2023
+ return micromatch.makeRe(pattern, options);
2024
+ }
2025
+ exports.makeRe = makeRe;
2026
+ function convertPatternsToRe(patterns, options) {
2027
+ return patterns.map((pattern) => makeRe(pattern, options));
2028
+ }
2029
+ exports.convertPatternsToRe = convertPatternsToRe;
2030
+ function matchAny(entry, patternsRe) {
2031
+ return patternsRe.some((patternRe) => patternRe.test(entry));
2032
+ }
2033
+ exports.matchAny = matchAny;
2034
+ function removeDuplicateSlashes(pattern) {
2035
+ return pattern.replace(DOUBLE_SLASH_RE, "/");
2036
+ }
2037
+ exports.removeDuplicateSlashes = removeDuplicateSlashes;
2038
+ }
2039
+ });
2040
+
2041
+ // ../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js
2042
+ var require_merge2 = __commonJS({
2043
+ "../../node_modules/.pnpm/merge2@1.4.1/node_modules/merge2/index.js"(exports, module) {
2044
+ "use strict";
2045
+ init_cjs_shims();
2046
+ var Stream = __require("stream"), PassThrough = Stream.PassThrough, slice = Array.prototype.slice;
2047
+ module.exports = merge2;
2048
+ function merge2() {
2049
+ let streamsQueue = [], args = slice.call(arguments), merging = !1, options = args[args.length - 1];
2050
+ options && !Array.isArray(options) && options.pipe == null ? args.pop() : options = {};
2051
+ let doEnd = options.end !== !1, doPipeError = options.pipeError === !0;
2052
+ options.objectMode == null && (options.objectMode = !0), options.highWaterMark == null && (options.highWaterMark = 64 * 1024);
2053
+ let mergedStream = PassThrough(options);
2054
+ function addStream() {
2055
+ for (let i = 0, len = arguments.length; i < len; i++)
2056
+ streamsQueue.push(pauseStreams(arguments[i], options));
2057
+ return mergeStream(), this;
2058
+ }
2059
+ function mergeStream() {
2060
+ if (merging)
2061
+ return;
2062
+ merging = !0;
2063
+ let streams = streamsQueue.shift();
2064
+ if (!streams) {
2065
+ process.nextTick(endStream);
2066
+ return;
2067
+ }
2068
+ Array.isArray(streams) || (streams = [streams]);
2069
+ let pipesCount = streams.length + 1;
2070
+ function next() {
2071
+ --pipesCount > 0 || (merging = !1, mergeStream());
2072
+ }
2073
+ function pipe(stream) {
2074
+ function onend() {
2075
+ stream.removeListener("merge2UnpipeEnd", onend), stream.removeListener("end", onend), doPipeError && stream.removeListener("error", onerror), next();
2076
+ }
2077
+ function onerror(err) {
2078
+ mergedStream.emit("error", err);
2079
+ }
2080
+ if (stream._readableState.endEmitted)
2081
+ return next();
2082
+ stream.on("merge2UnpipeEnd", onend), stream.on("end", onend), doPipeError && stream.on("error", onerror), stream.pipe(mergedStream, { end: !1 }), stream.resume();
2083
+ }
2084
+ for (let i = 0; i < streams.length; i++)
2085
+ pipe(streams[i]);
2086
+ next();
2087
+ }
2088
+ function endStream() {
2089
+ merging = !1, mergedStream.emit("queueDrain"), doEnd && mergedStream.end();
2090
+ }
2091
+ return mergedStream.setMaxListeners(0), mergedStream.add = addStream, mergedStream.on("unpipe", function(stream) {
2092
+ stream.emit("merge2UnpipeEnd");
2093
+ }), args.length && addStream.apply(null, args), mergedStream;
2094
+ }
2095
+ function pauseStreams(streams, options) {
2096
+ if (Array.isArray(streams))
2097
+ for (let i = 0, len = streams.length; i < len; i++)
2098
+ streams[i] = pauseStreams(streams[i], options);
2099
+ else {
2100
+ if (!streams._readableState && streams.pipe && (streams = streams.pipe(PassThrough(options))), !streams._readableState || !streams.pause || !streams.pipe)
2101
+ throw new Error("Only readable stream can be merged.");
2102
+ streams.pause();
2103
+ }
2104
+ return streams;
2105
+ }
2106
+ }
2107
+ });
2108
+
2109
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/stream.js
2110
+ var require_stream = __commonJS({
2111
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/stream.js"(exports) {
2112
+ "use strict";
2113
+ init_cjs_shims();
2114
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2115
+ exports.merge = void 0;
2116
+ var merge2 = require_merge2();
2117
+ function merge(streams) {
2118
+ let mergedStream = merge2(streams);
2119
+ return streams.forEach((stream) => {
2120
+ stream.once("error", (error) => mergedStream.emit("error", error));
2121
+ }), mergedStream.once("close", () => propagateCloseEventToSources(streams)), mergedStream.once("end", () => propagateCloseEventToSources(streams)), mergedStream;
2122
+ }
2123
+ exports.merge = merge;
2124
+ function propagateCloseEventToSources(streams) {
2125
+ streams.forEach((stream) => stream.emit("close"));
2126
+ }
2127
+ }
2128
+ });
2129
+
2130
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/string.js
2131
+ var require_string = __commonJS({
2132
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/string.js"(exports) {
2133
+ "use strict";
2134
+ init_cjs_shims();
2135
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2136
+ exports.isEmpty = exports.isString = void 0;
2137
+ function isString(input) {
2138
+ return typeof input == "string";
2139
+ }
2140
+ exports.isString = isString;
2141
+ function isEmpty(input) {
2142
+ return input === "";
2143
+ }
2144
+ exports.isEmpty = isEmpty;
2145
+ }
2146
+ });
2147
+
2148
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/index.js
2149
+ var require_utils3 = __commonJS({
2150
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/utils/index.js"(exports) {
2151
+ "use strict";
2152
+ init_cjs_shims();
2153
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2154
+ exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
2155
+ var array = require_array();
2156
+ exports.array = array;
2157
+ var errno = require_errno();
2158
+ exports.errno = errno;
2159
+ var fs = require_fs();
2160
+ exports.fs = fs;
2161
+ var path = require_path();
2162
+ exports.path = path;
2163
+ var pattern = require_pattern();
2164
+ exports.pattern = pattern;
2165
+ var stream = require_stream();
2166
+ exports.stream = stream;
2167
+ var string = require_string();
2168
+ exports.string = string;
2169
+ }
2170
+ });
2171
+
2172
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/managers/tasks.js
2173
+ var require_tasks = __commonJS({
2174
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/managers/tasks.js"(exports) {
2175
+ "use strict";
2176
+ init_cjs_shims();
2177
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2178
+ exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
2179
+ var utils = require_utils3();
2180
+ function generate(input, settings) {
2181
+ 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(
2182
+ staticPatterns,
2183
+ negativePatterns,
2184
+ /* dynamic */
2185
+ !1
2186
+ ), dynamicTasks = convertPatternsToTasks(
2187
+ dynamicPatterns,
2188
+ negativePatterns,
2189
+ /* dynamic */
2190
+ !0
2191
+ );
2192
+ return staticTasks.concat(dynamicTasks);
2193
+ }
2194
+ exports.generate = generate;
2195
+ function processPatterns(input, settings) {
2196
+ let patterns = input;
2197
+ return settings.braceExpansion && (patterns = utils.pattern.expandPatternsWithBraceExpansion(patterns)), settings.baseNameMatch && (patterns = patterns.map((pattern) => pattern.includes("/") ? pattern : `**/${pattern}`)), patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
2198
+ }
2199
+ function convertPatternsToTasks(positive, negative, dynamic) {
2200
+ let tasks = [], patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive), patternsInsideCurrentDirectory = utils.pattern.getPatternsInsideCurrentDirectory(positive), outsideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsOutsideCurrentDirectory), insideCurrentDirectoryGroup = groupPatternsByBaseDirectory(patternsInsideCurrentDirectory);
2201
+ return tasks.push(...convertPatternGroupsToTasks(outsideCurrentDirectoryGroup, negative, dynamic)), "." in insideCurrentDirectoryGroup ? tasks.push(convertPatternGroupToTask(".", patternsInsideCurrentDirectory, negative, dynamic)) : tasks.push(...convertPatternGroupsToTasks(insideCurrentDirectoryGroup, negative, dynamic)), tasks;
2202
+ }
2203
+ exports.convertPatternsToTasks = convertPatternsToTasks;
2204
+ function getPositivePatterns(patterns) {
2205
+ return utils.pattern.getPositivePatterns(patterns);
2206
+ }
2207
+ exports.getPositivePatterns = getPositivePatterns;
2208
+ function getNegativePatternsAsPositive(patterns, ignore) {
2209
+ return utils.pattern.getNegativePatterns(patterns).concat(ignore).map(utils.pattern.convertToPositivePattern);
2210
+ }
2211
+ exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
2212
+ function groupPatternsByBaseDirectory(patterns) {
2213
+ let group = {};
2214
+ return patterns.reduce((collection, pattern) => {
2215
+ let base = utils.pattern.getBaseDirectory(pattern);
2216
+ return base in collection ? collection[base].push(pattern) : collection[base] = [pattern], collection;
2217
+ }, group);
2218
+ }
2219
+ exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
2220
+ function convertPatternGroupsToTasks(positive, negative, dynamic) {
2221
+ return Object.keys(positive).map((base) => convertPatternGroupToTask(base, positive[base], negative, dynamic));
2222
+ }
2223
+ exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
2224
+ function convertPatternGroupToTask(base, positive, negative, dynamic) {
2225
+ return {
2226
+ dynamic,
2227
+ positive,
2228
+ negative,
2229
+ base,
2230
+ patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
2231
+ };
2232
+ }
2233
+ exports.convertPatternGroupToTask = convertPatternGroupToTask;
2234
+ }
2235
+ });
2236
+
2237
+ // ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js
2238
+ var require_async = __commonJS({
2239
+ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
2240
+ "use strict";
2241
+ init_cjs_shims();
2242
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2243
+ exports.read = void 0;
2244
+ function read(path, settings, callback) {
2245
+ settings.fs.lstat(path, (lstatError, lstat) => {
2246
+ if (lstatError !== null) {
2247
+ callFailureCallback(callback, lstatError);
2248
+ return;
2249
+ }
2250
+ if (!lstat.isSymbolicLink() || !settings.followSymbolicLink) {
2251
+ callSuccessCallback(callback, lstat);
2252
+ return;
2253
+ }
2254
+ settings.fs.stat(path, (statError, stat) => {
2255
+ if (statError !== null) {
2256
+ if (settings.throwErrorOnBrokenSymbolicLink) {
2257
+ callFailureCallback(callback, statError);
2258
+ return;
2259
+ }
2260
+ callSuccessCallback(callback, lstat);
2261
+ return;
2262
+ }
2263
+ settings.markSymbolicLink && (stat.isSymbolicLink = () => !0), callSuccessCallback(callback, stat);
2264
+ });
2265
+ });
2266
+ }
2267
+ exports.read = read;
2268
+ function callFailureCallback(callback, error) {
2269
+ callback(error);
2270
+ }
2271
+ function callSuccessCallback(callback, result) {
2272
+ callback(null, result);
2273
+ }
2274
+ }
2275
+ });
2276
+
2277
+ // ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js
2278
+ var require_sync = __commonJS({
2279
+ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
2280
+ "use strict";
2281
+ init_cjs_shims();
2282
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2283
+ exports.read = void 0;
2284
+ function read(path, settings) {
2285
+ let lstat = settings.fs.lstatSync(path);
2286
+ if (!lstat.isSymbolicLink() || !settings.followSymbolicLink)
2287
+ return lstat;
2288
+ try {
2289
+ let stat = settings.fs.statSync(path);
2290
+ return settings.markSymbolicLink && (stat.isSymbolicLink = () => !0), stat;
2291
+ } catch (error) {
2292
+ if (!settings.throwErrorOnBrokenSymbolicLink)
2293
+ return lstat;
2294
+ throw error;
2295
+ }
2296
+ }
2297
+ exports.read = read;
2298
+ }
2299
+ });
2300
+
2301
+ // ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js
2302
+ var require_fs2 = __commonJS({
2303
+ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
2304
+ "use strict";
2305
+ init_cjs_shims();
2306
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2307
+ exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
2308
+ var fs = __require("fs");
2309
+ exports.FILE_SYSTEM_ADAPTER = {
2310
+ lstat: fs.lstat,
2311
+ stat: fs.stat,
2312
+ lstatSync: fs.lstatSync,
2313
+ statSync: fs.statSync
2314
+ };
2315
+ function createFileSystemAdapter(fsMethods) {
2316
+ return fsMethods === void 0 ? exports.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
2317
+ }
2318
+ exports.createFileSystemAdapter = createFileSystemAdapter;
2319
+ }
2320
+ });
2321
+
2322
+ // ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js
2323
+ var require_settings = __commonJS({
2324
+ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
2325
+ "use strict";
2326
+ init_cjs_shims();
2327
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2328
+ var fs = require_fs2(), Settings = class {
2329
+ constructor(_options = {}) {
2330
+ this._options = _options, this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, !0), this.fs = fs.createFileSystemAdapter(this._options.fs), this.markSymbolicLink = this._getValue(this._options.markSymbolicLink, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0);
2331
+ }
2332
+ _getValue(option, value) {
2333
+ return option ?? value;
2334
+ }
2335
+ };
2336
+ exports.default = Settings;
2337
+ }
2338
+ });
2339
+
2340
+ // ../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js
2341
+ var require_out = __commonJS({
2342
+ "../../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
2343
+ "use strict";
2344
+ init_cjs_shims();
2345
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2346
+ exports.statSync = exports.stat = exports.Settings = void 0;
2347
+ var async = require_async(), sync = require_sync(), settings_1 = require_settings();
2348
+ exports.Settings = settings_1.default;
2349
+ function stat(path, optionsOrSettingsOrCallback, callback) {
2350
+ if (typeof optionsOrSettingsOrCallback == "function") {
2351
+ async.read(path, getSettings(), optionsOrSettingsOrCallback);
2352
+ return;
2353
+ }
2354
+ async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
2355
+ }
2356
+ exports.stat = stat;
2357
+ function statSync(path, optionsOrSettings) {
2358
+ let settings = getSettings(optionsOrSettings);
2359
+ return sync.read(path, settings);
2360
+ }
2361
+ exports.statSync = statSync;
2362
+ function getSettings(settingsOrOptions = {}) {
2363
+ return settingsOrOptions instanceof settings_1.default ? settingsOrOptions : new settings_1.default(settingsOrOptions);
2364
+ }
2365
+ }
2366
+ });
2367
+
2368
+ // ../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js
2369
+ var require_queue_microtask = __commonJS({
2370
+ "../../node_modules/.pnpm/queue-microtask@1.2.3/node_modules/queue-microtask/index.js"(exports, module) {
2371
+ init_cjs_shims();
2372
+ var promise;
2373
+ module.exports = typeof queueMicrotask == "function" ? queueMicrotask.bind(typeof window < "u" ? window : global) : (cb) => (promise || (promise = Promise.resolve())).then(cb).catch((err) => setTimeout(() => {
2374
+ throw err;
2375
+ }, 0));
2376
+ }
2377
+ });
2378
+
2379
+ // ../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js
2380
+ var require_run_parallel = __commonJS({
2381
+ "../../node_modules/.pnpm/run-parallel@1.2.0/node_modules/run-parallel/index.js"(exports, module) {
2382
+ init_cjs_shims();
2383
+ module.exports = runParallel;
2384
+ var queueMicrotask2 = require_queue_microtask();
2385
+ function runParallel(tasks, cb) {
2386
+ let results, pending, keys, isSync = !0;
2387
+ Array.isArray(tasks) ? (results = [], pending = tasks.length) : (keys = Object.keys(tasks), results = {}, pending = keys.length);
2388
+ function done(err) {
2389
+ function end() {
2390
+ cb && cb(err, results), cb = null;
2391
+ }
2392
+ isSync ? queueMicrotask2(end) : end();
2393
+ }
2394
+ function each(i, err, result) {
2395
+ results[i] = result, (--pending === 0 || err) && done(err);
2396
+ }
2397
+ pending ? keys ? keys.forEach(function(key) {
2398
+ tasks[key](function(err, result) {
2399
+ each(key, err, result);
2400
+ });
2401
+ }) : tasks.forEach(function(task, i) {
2402
+ task(function(err, result) {
2403
+ each(i, err, result);
2404
+ });
2405
+ }) : done(null), isSync = !1;
2406
+ }
2407
+ }
2408
+ });
2409
+
2410
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js
2411
+ var require_constants3 = __commonJS({
2412
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
2413
+ "use strict";
2414
+ init_cjs_shims();
2415
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2416
+ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
2417
+ var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
2418
+ if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0)
2419
+ throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
2420
+ var MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10), MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10), SUPPORTED_MAJOR_VERSION = 10, SUPPORTED_MINOR_VERSION = 10, IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION, IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
2421
+ exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
2422
+ }
2423
+ });
2424
+
2425
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js
2426
+ var require_fs3 = __commonJS({
2427
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
2428
+ "use strict";
2429
+ init_cjs_shims();
2430
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2431
+ exports.createDirentFromStats = void 0;
2432
+ var DirentFromStats = class {
2433
+ constructor(name, stats) {
2434
+ this.name = name, this.isBlockDevice = stats.isBlockDevice.bind(stats), this.isCharacterDevice = stats.isCharacterDevice.bind(stats), this.isDirectory = stats.isDirectory.bind(stats), this.isFIFO = stats.isFIFO.bind(stats), this.isFile = stats.isFile.bind(stats), this.isSocket = stats.isSocket.bind(stats), this.isSymbolicLink = stats.isSymbolicLink.bind(stats);
2435
+ }
2436
+ };
2437
+ function createDirentFromStats(name, stats) {
2438
+ return new DirentFromStats(name, stats);
2439
+ }
2440
+ exports.createDirentFromStats = createDirentFromStats;
2441
+ }
2442
+ });
2443
+
2444
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js
2445
+ var require_utils4 = __commonJS({
2446
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
2447
+ "use strict";
2448
+ init_cjs_shims();
2449
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2450
+ exports.fs = void 0;
2451
+ var fs = require_fs3();
2452
+ exports.fs = fs;
2453
+ }
2454
+ });
2455
+
2456
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js
2457
+ var require_common = __commonJS({
2458
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
2459
+ "use strict";
2460
+ init_cjs_shims();
2461
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2462
+ exports.joinPathSegments = void 0;
2463
+ function joinPathSegments(a, b, separator) {
2464
+ return a.endsWith(separator) ? a + b : a + separator + b;
2465
+ }
2466
+ exports.joinPathSegments = joinPathSegments;
2467
+ }
2468
+ });
2469
+
2470
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js
2471
+ var require_async2 = __commonJS({
2472
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
2473
+ "use strict";
2474
+ init_cjs_shims();
2475
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2476
+ exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
2477
+ var fsStat = require_out(), rpl = require_run_parallel(), constants_1 = require_constants3(), utils = require_utils4(), common = require_common();
2478
+ function read(directory, settings, callback) {
2479
+ if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
2480
+ readdirWithFileTypes(directory, settings, callback);
2481
+ return;
2482
+ }
2483
+ readdir(directory, settings, callback);
2484
+ }
2485
+ exports.read = read;
2486
+ function readdirWithFileTypes(directory, settings, callback) {
2487
+ settings.fs.readdir(directory, { withFileTypes: !0 }, (readdirError, dirents) => {
2488
+ if (readdirError !== null) {
2489
+ callFailureCallback(callback, readdirError);
2490
+ return;
2491
+ }
2492
+ let entries = dirents.map((dirent) => ({
2493
+ dirent,
2494
+ name: dirent.name,
2495
+ path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
2496
+ }));
2497
+ if (!settings.followSymbolicLinks) {
2498
+ callSuccessCallback(callback, entries);
2499
+ return;
2500
+ }
2501
+ let tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
2502
+ rpl(tasks, (rplError, rplEntries) => {
2503
+ if (rplError !== null) {
2504
+ callFailureCallback(callback, rplError);
2505
+ return;
2506
+ }
2507
+ callSuccessCallback(callback, rplEntries);
2508
+ });
2509
+ });
2510
+ }
2511
+ exports.readdirWithFileTypes = readdirWithFileTypes;
2512
+ function makeRplTaskEntry(entry, settings) {
2513
+ return (done) => {
2514
+ if (!entry.dirent.isSymbolicLink()) {
2515
+ done(null, entry);
2516
+ return;
2517
+ }
2518
+ settings.fs.stat(entry.path, (statError, stats) => {
2519
+ if (statError !== null) {
2520
+ if (settings.throwErrorOnBrokenSymbolicLink) {
2521
+ done(statError);
2522
+ return;
2523
+ }
2524
+ done(null, entry);
2525
+ return;
2526
+ }
2527
+ entry.dirent = utils.fs.createDirentFromStats(entry.name, stats), done(null, entry);
2528
+ });
2529
+ };
2530
+ }
2531
+ function readdir(directory, settings, callback) {
2532
+ settings.fs.readdir(directory, (readdirError, names) => {
2533
+ if (readdirError !== null) {
2534
+ callFailureCallback(callback, readdirError);
2535
+ return;
2536
+ }
2537
+ let tasks = names.map((name) => {
2538
+ let path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
2539
+ return (done) => {
2540
+ fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
2541
+ if (error !== null) {
2542
+ done(error);
2543
+ return;
2544
+ }
2545
+ let entry = {
2546
+ name,
2547
+ path,
2548
+ dirent: utils.fs.createDirentFromStats(name, stats)
2549
+ };
2550
+ settings.stats && (entry.stats = stats), done(null, entry);
2551
+ });
2552
+ };
2553
+ });
2554
+ rpl(tasks, (rplError, entries) => {
2555
+ if (rplError !== null) {
2556
+ callFailureCallback(callback, rplError);
2557
+ return;
2558
+ }
2559
+ callSuccessCallback(callback, entries);
2560
+ });
2561
+ });
2562
+ }
2563
+ exports.readdir = readdir;
2564
+ function callFailureCallback(callback, error) {
2565
+ callback(error);
2566
+ }
2567
+ function callSuccessCallback(callback, result) {
2568
+ callback(null, result);
2569
+ }
2570
+ }
2571
+ });
2572
+
2573
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js
2574
+ var require_sync2 = __commonJS({
2575
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
2576
+ "use strict";
2577
+ init_cjs_shims();
2578
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2579
+ exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
2580
+ var fsStat = require_out(), constants_1 = require_constants3(), utils = require_utils4(), common = require_common();
2581
+ function read(directory, settings) {
2582
+ return !settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES ? readdirWithFileTypes(directory, settings) : readdir(directory, settings);
2583
+ }
2584
+ exports.read = read;
2585
+ function readdirWithFileTypes(directory, settings) {
2586
+ return settings.fs.readdirSync(directory, { withFileTypes: !0 }).map((dirent) => {
2587
+ let entry = {
2588
+ dirent,
2589
+ name: dirent.name,
2590
+ path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
2591
+ };
2592
+ if (entry.dirent.isSymbolicLink() && settings.followSymbolicLinks)
2593
+ try {
2594
+ let stats = settings.fs.statSync(entry.path);
2595
+ entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
2596
+ } catch (error) {
2597
+ if (settings.throwErrorOnBrokenSymbolicLink)
2598
+ throw error;
2599
+ }
2600
+ return entry;
2601
+ });
2602
+ }
2603
+ exports.readdirWithFileTypes = readdirWithFileTypes;
2604
+ function readdir(directory, settings) {
2605
+ return settings.fs.readdirSync(directory).map((name) => {
2606
+ let entryPath = common.joinPathSegments(directory, name, settings.pathSegmentSeparator), stats = fsStat.statSync(entryPath, settings.fsStatSettings), entry = {
2607
+ name,
2608
+ path: entryPath,
2609
+ dirent: utils.fs.createDirentFromStats(name, stats)
2610
+ };
2611
+ return settings.stats && (entry.stats = stats), entry;
2612
+ });
2613
+ }
2614
+ exports.readdir = readdir;
2615
+ }
2616
+ });
2617
+
2618
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js
2619
+ var require_fs4 = __commonJS({
2620
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
2621
+ "use strict";
2622
+ init_cjs_shims();
2623
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2624
+ exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
2625
+ var fs = __require("fs");
2626
+ exports.FILE_SYSTEM_ADAPTER = {
2627
+ lstat: fs.lstat,
2628
+ stat: fs.stat,
2629
+ lstatSync: fs.lstatSync,
2630
+ statSync: fs.statSync,
2631
+ readdir: fs.readdir,
2632
+ readdirSync: fs.readdirSync
2633
+ };
2634
+ function createFileSystemAdapter(fsMethods) {
2635
+ return fsMethods === void 0 ? exports.FILE_SYSTEM_ADAPTER : Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
2636
+ }
2637
+ exports.createFileSystemAdapter = createFileSystemAdapter;
2638
+ }
2639
+ });
2640
+
2641
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js
2642
+ var require_settings2 = __commonJS({
2643
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
2644
+ "use strict";
2645
+ init_cjs_shims();
2646
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2647
+ var path = __require("path"), fsStat = require_out(), fs = require_fs4(), Settings = class {
2648
+ constructor(_options = {}) {
2649
+ this._options = _options, this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !1), this.fs = fs.createFileSystemAdapter(this._options.fs), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep), this.stats = this._getValue(this._options.stats, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !0), this.fsStatSettings = new fsStat.Settings({
2650
+ followSymbolicLink: this.followSymbolicLinks,
2651
+ fs: this.fs,
2652
+ throwErrorOnBrokenSymbolicLink: this.throwErrorOnBrokenSymbolicLink
2653
+ });
2654
+ }
2655
+ _getValue(option, value) {
2656
+ return option ?? value;
2657
+ }
2658
+ };
2659
+ exports.default = Settings;
2660
+ }
2661
+ });
2662
+
2663
+ // ../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js
2664
+ var require_out2 = __commonJS({
2665
+ "../../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
2666
+ "use strict";
2667
+ init_cjs_shims();
2668
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2669
+ exports.Settings = exports.scandirSync = exports.scandir = void 0;
2670
+ var async = require_async2(), sync = require_sync2(), settings_1 = require_settings2();
2671
+ exports.Settings = settings_1.default;
2672
+ function scandir(path, optionsOrSettingsOrCallback, callback) {
2673
+ if (typeof optionsOrSettingsOrCallback == "function") {
2674
+ async.read(path, getSettings(), optionsOrSettingsOrCallback);
2675
+ return;
2676
+ }
2677
+ async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
2678
+ }
2679
+ exports.scandir = scandir;
2680
+ function scandirSync(path, optionsOrSettings) {
2681
+ let settings = getSettings(optionsOrSettings);
2682
+ return sync.read(path, settings);
2683
+ }
2684
+ exports.scandirSync = scandirSync;
2685
+ function getSettings(settingsOrOptions = {}) {
2686
+ return settingsOrOptions instanceof settings_1.default ? settingsOrOptions : new settings_1.default(settingsOrOptions);
2687
+ }
2688
+ }
2689
+ });
2690
+
2691
+ // ../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js
2692
+ var require_reusify = __commonJS({
2693
+ "../../node_modules/.pnpm/reusify@1.0.4/node_modules/reusify/reusify.js"(exports, module) {
2694
+ "use strict";
2695
+ init_cjs_shims();
2696
+ function reusify(Constructor) {
2697
+ var head = new Constructor(), tail = head;
2698
+ function get() {
2699
+ var current = head;
2700
+ return current.next ? head = current.next : (head = new Constructor(), tail = head), current.next = null, current;
2701
+ }
2702
+ function release(obj) {
2703
+ tail.next = obj, tail = obj;
2704
+ }
2705
+ return {
2706
+ get,
2707
+ release
2708
+ };
2709
+ }
2710
+ module.exports = reusify;
2711
+ }
2712
+ });
2713
+
2714
+ // ../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js
2715
+ var require_queue = __commonJS({
2716
+ "../../node_modules/.pnpm/fastq@1.17.1/node_modules/fastq/queue.js"(exports, module) {
2717
+ "use strict";
2718
+ init_cjs_shims();
2719
+ var reusify = require_reusify();
2720
+ function fastqueue(context, worker, _concurrency) {
2721
+ if (typeof context == "function" && (_concurrency = worker, worker = context, context = null), !(_concurrency >= 1))
2722
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
2723
+ var cache = reusify(Task), queueHead = null, queueTail = null, _running = 0, errorHandler = null, self = {
2724
+ push,
2725
+ drain: noop,
2726
+ saturated: noop,
2727
+ pause,
2728
+ paused: !1,
2729
+ get concurrency() {
2730
+ return _concurrency;
2731
+ },
2732
+ set concurrency(value) {
2733
+ if (!(value >= 1))
2734
+ throw new Error("fastqueue concurrency must be equal to or greater than 1");
2735
+ if (_concurrency = value, !self.paused)
2736
+ for (; queueHead && _running < _concurrency; )
2737
+ _running++, release();
2738
+ },
2739
+ running,
2740
+ resume,
2741
+ idle,
2742
+ length,
2743
+ getQueue,
2744
+ unshift,
2745
+ empty: noop,
2746
+ kill,
2747
+ killAndDrain,
2748
+ error
2749
+ };
2750
+ return self;
2751
+ function running() {
2752
+ return _running;
2753
+ }
2754
+ function pause() {
2755
+ self.paused = !0;
2756
+ }
2757
+ function length() {
2758
+ for (var current = queueHead, counter = 0; current; )
2759
+ current = current.next, counter++;
2760
+ return counter;
2761
+ }
2762
+ function getQueue() {
2763
+ for (var current = queueHead, tasks = []; current; )
2764
+ tasks.push(current.value), current = current.next;
2765
+ return tasks;
2766
+ }
2767
+ function resume() {
2768
+ if (self.paused) {
2769
+ if (self.paused = !1, queueHead === null) {
2770
+ _running++, release();
2771
+ return;
2772
+ }
2773
+ for (; queueHead && _running < _concurrency; )
2774
+ _running++, release();
2775
+ }
2776
+ }
2777
+ function idle() {
2778
+ return _running === 0 && self.length() === 0;
2779
+ }
2780
+ function push(value, done) {
2781
+ var current = cache.get();
2782
+ current.context = context, current.release = release, current.value = value, current.callback = done || noop, current.errorHandler = errorHandler, _running >= _concurrency || self.paused ? queueTail ? (queueTail.next = current, queueTail = current) : (queueHead = current, queueTail = current, self.saturated()) : (_running++, worker.call(context, current.value, current.worked));
2783
+ }
2784
+ function unshift(value, done) {
2785
+ var current = cache.get();
2786
+ current.context = context, current.release = release, current.value = value, current.callback = done || noop, current.errorHandler = errorHandler, _running >= _concurrency || self.paused ? queueHead ? (current.next = queueHead, queueHead = current) : (queueHead = current, queueTail = current, self.saturated()) : (_running++, worker.call(context, current.value, current.worked));
2787
+ }
2788
+ function release(holder) {
2789
+ holder && cache.release(holder);
2790
+ var next = queueHead;
2791
+ next && _running <= _concurrency ? self.paused ? _running-- : (queueTail === queueHead && (queueTail = null), queueHead = next.next, next.next = null, worker.call(context, next.value, next.worked), queueTail === null && self.empty()) : --_running === 0 && self.drain();
2792
+ }
2793
+ function kill() {
2794
+ queueHead = null, queueTail = null, self.drain = noop;
2795
+ }
2796
+ function killAndDrain() {
2797
+ queueHead = null, queueTail = null, self.drain(), self.drain = noop;
2798
+ }
2799
+ function error(handler) {
2800
+ errorHandler = handler;
2801
+ }
2802
+ }
2803
+ function noop() {
2804
+ }
2805
+ function Task() {
2806
+ this.value = null, this.callback = noop, this.next = null, this.release = noop, this.context = null, this.errorHandler = null;
2807
+ var self = this;
2808
+ this.worked = function(err, result) {
2809
+ var callback = self.callback, errorHandler = self.errorHandler, val = self.value;
2810
+ self.value = null, self.callback = noop, self.errorHandler && errorHandler(err, val), callback.call(self.context, err, result), self.release(self);
2811
+ };
2812
+ }
2813
+ function queueAsPromised(context, worker, _concurrency) {
2814
+ typeof context == "function" && (_concurrency = worker, worker = context, context = null);
2815
+ function asyncWrapper(arg, cb) {
2816
+ worker.call(this, arg).then(function(res) {
2817
+ cb(null, res);
2818
+ }, cb);
2819
+ }
2820
+ var queue = fastqueue(context, asyncWrapper, _concurrency), pushCb = queue.push, unshiftCb = queue.unshift;
2821
+ return queue.push = push, queue.unshift = unshift, queue.drained = drained, queue;
2822
+ function push(value) {
2823
+ var p = new Promise(function(resolve, reject) {
2824
+ pushCb(value, function(err, result) {
2825
+ if (err) {
2826
+ reject(err);
2827
+ return;
2828
+ }
2829
+ resolve(result);
2830
+ });
2831
+ });
2832
+ return p.catch(noop), p;
2833
+ }
2834
+ function unshift(value) {
2835
+ var p = new Promise(function(resolve, reject) {
2836
+ unshiftCb(value, function(err, result) {
2837
+ if (err) {
2838
+ reject(err);
2839
+ return;
2840
+ }
2841
+ resolve(result);
2842
+ });
2843
+ });
2844
+ return p.catch(noop), p;
2845
+ }
2846
+ function drained() {
2847
+ if (queue.idle())
2848
+ return new Promise(function(resolve) {
2849
+ resolve();
2850
+ });
2851
+ var previousDrain = queue.drain, p = new Promise(function(resolve) {
2852
+ queue.drain = function() {
2853
+ previousDrain(), resolve();
2854
+ };
2855
+ });
2856
+ return p;
2857
+ }
2858
+ }
2859
+ module.exports = fastqueue;
2860
+ module.exports.promise = queueAsPromised;
2861
+ }
2862
+ });
2863
+
2864
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js
2865
+ var require_common2 = __commonJS({
2866
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
2867
+ "use strict";
2868
+ init_cjs_shims();
2869
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2870
+ exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
2871
+ function isFatalError(settings, error) {
2872
+ return settings.errorFilter === null ? !0 : !settings.errorFilter(error);
2873
+ }
2874
+ exports.isFatalError = isFatalError;
2875
+ function isAppliedFilter(filter, value) {
2876
+ return filter === null || filter(value);
2877
+ }
2878
+ exports.isAppliedFilter = isAppliedFilter;
2879
+ function replacePathSegmentSeparator(filepath, separator) {
2880
+ return filepath.split(/[/\\]/).join(separator);
2881
+ }
2882
+ exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
2883
+ function joinPathSegments(a, b, separator) {
2884
+ return a === "" ? b : a.endsWith(separator) ? a + b : a + separator + b;
2885
+ }
2886
+ exports.joinPathSegments = joinPathSegments;
2887
+ }
2888
+ });
2889
+
2890
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js
2891
+ var require_reader = __commonJS({
2892
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
2893
+ "use strict";
2894
+ init_cjs_shims();
2895
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2896
+ var common = require_common2(), Reader = class {
2897
+ constructor(_root, _settings) {
2898
+ this._root = _root, this._settings = _settings, this._root = common.replacePathSegmentSeparator(_root, _settings.pathSegmentSeparator);
2899
+ }
2900
+ };
2901
+ exports.default = Reader;
2902
+ }
2903
+ });
2904
+
2905
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js
2906
+ var require_async3 = __commonJS({
2907
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
2908
+ "use strict";
2909
+ init_cjs_shims();
2910
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2911
+ var events_1 = __require("events"), fsScandir = require_out2(), fastq = require_queue(), common = require_common2(), reader_1 = require_reader(), AsyncReader = class extends reader_1.default {
2912
+ constructor(_root, _settings) {
2913
+ super(_root, _settings), this._settings = _settings, this._scandir = fsScandir.scandir, this._emitter = new events_1.EventEmitter(), this._queue = fastq(this._worker.bind(this), this._settings.concurrency), this._isFatalError = !1, this._isDestroyed = !1, this._queue.drain = () => {
2914
+ this._isFatalError || this._emitter.emit("end");
2915
+ };
2916
+ }
2917
+ read() {
2918
+ return this._isFatalError = !1, this._isDestroyed = !1, setImmediate(() => {
2919
+ this._pushToQueue(this._root, this._settings.basePath);
2920
+ }), this._emitter;
2921
+ }
2922
+ get isDestroyed() {
2923
+ return this._isDestroyed;
2924
+ }
2925
+ destroy() {
2926
+ if (this._isDestroyed)
2927
+ throw new Error("The reader is already destroyed");
2928
+ this._isDestroyed = !0, this._queue.killAndDrain();
2929
+ }
2930
+ onEntry(callback) {
2931
+ this._emitter.on("entry", callback);
2932
+ }
2933
+ onError(callback) {
2934
+ this._emitter.once("error", callback);
2935
+ }
2936
+ onEnd(callback) {
2937
+ this._emitter.once("end", callback);
2938
+ }
2939
+ _pushToQueue(directory, base) {
2940
+ let queueItem = { directory, base };
2941
+ this._queue.push(queueItem, (error) => {
2942
+ error !== null && this._handleError(error);
2943
+ });
2944
+ }
2945
+ _worker(item, done) {
2946
+ this._scandir(item.directory, this._settings.fsScandirSettings, (error, entries) => {
2947
+ if (error !== null) {
2948
+ done(error, void 0);
2949
+ return;
2950
+ }
2951
+ for (let entry of entries)
2952
+ this._handleEntry(entry, item.base);
2953
+ done(null, void 0);
2954
+ });
2955
+ }
2956
+ _handleError(error) {
2957
+ this._isDestroyed || !common.isFatalError(this._settings, error) || (this._isFatalError = !0, this._isDestroyed = !0, this._emitter.emit("error", error));
2958
+ }
2959
+ _handleEntry(entry, base) {
2960
+ if (this._isDestroyed || this._isFatalError)
2961
+ return;
2962
+ let fullpath = entry.path;
2963
+ base !== void 0 && (entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator)), common.isAppliedFilter(this._settings.entryFilter, entry) && this._emitEntry(entry), entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry) && this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
2964
+ }
2965
+ _emitEntry(entry) {
2966
+ this._emitter.emit("entry", entry);
2967
+ }
2968
+ };
2969
+ exports.default = AsyncReader;
2970
+ }
2971
+ });
2972
+
2973
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js
2974
+ var require_async4 = __commonJS({
2975
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
2976
+ "use strict";
2977
+ init_cjs_shims();
2978
+ Object.defineProperty(exports, "__esModule", { value: !0 });
2979
+ var async_1 = require_async3(), AsyncProvider = class {
2980
+ constructor(_root, _settings) {
2981
+ this._root = _root, this._settings = _settings, this._reader = new async_1.default(this._root, this._settings), this._storage = [];
2982
+ }
2983
+ read(callback) {
2984
+ this._reader.onError((error) => {
2985
+ callFailureCallback(callback, error);
2986
+ }), this._reader.onEntry((entry) => {
2987
+ this._storage.push(entry);
2988
+ }), this._reader.onEnd(() => {
2989
+ callSuccessCallback(callback, this._storage);
2990
+ }), this._reader.read();
2991
+ }
2992
+ };
2993
+ exports.default = AsyncProvider;
2994
+ function callFailureCallback(callback, error) {
2995
+ callback(error);
2996
+ }
2997
+ function callSuccessCallback(callback, entries) {
2998
+ callback(null, entries);
2999
+ }
3000
+ }
3001
+ });
3002
+
3003
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js
3004
+ var require_stream2 = __commonJS({
3005
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
3006
+ "use strict";
3007
+ init_cjs_shims();
3008
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3009
+ var stream_1 = __require("stream"), async_1 = require_async3(), StreamProvider = class {
3010
+ constructor(_root, _settings) {
3011
+ this._root = _root, this._settings = _settings, this._reader = new async_1.default(this._root, this._settings), this._stream = new stream_1.Readable({
3012
+ objectMode: !0,
3013
+ read: () => {
3014
+ },
3015
+ destroy: () => {
3016
+ this._reader.isDestroyed || this._reader.destroy();
3017
+ }
3018
+ });
3019
+ }
3020
+ read() {
3021
+ return this._reader.onError((error) => {
3022
+ this._stream.emit("error", error);
3023
+ }), this._reader.onEntry((entry) => {
3024
+ this._stream.push(entry);
3025
+ }), this._reader.onEnd(() => {
3026
+ this._stream.push(null);
3027
+ }), this._reader.read(), this._stream;
3028
+ }
3029
+ };
3030
+ exports.default = StreamProvider;
3031
+ }
3032
+ });
3033
+
3034
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js
3035
+ var require_sync3 = __commonJS({
3036
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
3037
+ "use strict";
3038
+ init_cjs_shims();
3039
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3040
+ var fsScandir = require_out2(), common = require_common2(), reader_1 = require_reader(), SyncReader = class extends reader_1.default {
3041
+ constructor() {
3042
+ super(...arguments), this._scandir = fsScandir.scandirSync, this._storage = [], this._queue = /* @__PURE__ */ new Set();
3043
+ }
3044
+ read() {
3045
+ return this._pushToQueue(this._root, this._settings.basePath), this._handleQueue(), this._storage;
3046
+ }
3047
+ _pushToQueue(directory, base) {
3048
+ this._queue.add({ directory, base });
3049
+ }
3050
+ _handleQueue() {
3051
+ for (let item of this._queue.values())
3052
+ this._handleDirectory(item.directory, item.base);
3053
+ }
3054
+ _handleDirectory(directory, base) {
3055
+ try {
3056
+ let entries = this._scandir(directory, this._settings.fsScandirSettings);
3057
+ for (let entry of entries)
3058
+ this._handleEntry(entry, base);
3059
+ } catch (error) {
3060
+ this._handleError(error);
3061
+ }
3062
+ }
3063
+ _handleError(error) {
3064
+ if (common.isFatalError(this._settings, error))
3065
+ throw error;
3066
+ }
3067
+ _handleEntry(entry, base) {
3068
+ let fullpath = entry.path;
3069
+ base !== void 0 && (entry.path = common.joinPathSegments(base, entry.name, this._settings.pathSegmentSeparator)), common.isAppliedFilter(this._settings.entryFilter, entry) && this._pushToStorage(entry), entry.dirent.isDirectory() && common.isAppliedFilter(this._settings.deepFilter, entry) && this._pushToQueue(fullpath, base === void 0 ? void 0 : entry.path);
3070
+ }
3071
+ _pushToStorage(entry) {
3072
+ this._storage.push(entry);
3073
+ }
3074
+ };
3075
+ exports.default = SyncReader;
3076
+ }
3077
+ });
3078
+
3079
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js
3080
+ var require_sync4 = __commonJS({
3081
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
3082
+ "use strict";
3083
+ init_cjs_shims();
3084
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3085
+ var sync_1 = require_sync3(), SyncProvider = class {
3086
+ constructor(_root, _settings) {
3087
+ this._root = _root, this._settings = _settings, this._reader = new sync_1.default(this._root, this._settings);
3088
+ }
3089
+ read() {
3090
+ return this._reader.read();
3091
+ }
3092
+ };
3093
+ exports.default = SyncProvider;
3094
+ }
3095
+ });
3096
+
3097
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js
3098
+ var require_settings3 = __commonJS({
3099
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
3100
+ "use strict";
3101
+ init_cjs_shims();
3102
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3103
+ var path = __require("path"), fsScandir = require_out2(), Settings = class {
3104
+ constructor(_options = {}) {
3105
+ this._options = _options, this.basePath = this._getValue(this._options.basePath, void 0), this.concurrency = this._getValue(this._options.concurrency, Number.POSITIVE_INFINITY), this.deepFilter = this._getValue(this._options.deepFilter, null), this.entryFilter = this._getValue(this._options.entryFilter, null), this.errorFilter = this._getValue(this._options.errorFilter, null), this.pathSegmentSeparator = this._getValue(this._options.pathSegmentSeparator, path.sep), this.fsScandirSettings = new fsScandir.Settings({
3106
+ followSymbolicLinks: this._options.followSymbolicLinks,
3107
+ fs: this._options.fs,
3108
+ pathSegmentSeparator: this._options.pathSegmentSeparator,
3109
+ stats: this._options.stats,
3110
+ throwErrorOnBrokenSymbolicLink: this._options.throwErrorOnBrokenSymbolicLink
3111
+ });
3112
+ }
3113
+ _getValue(option, value) {
3114
+ return option ?? value;
3115
+ }
3116
+ };
3117
+ exports.default = Settings;
3118
+ }
3119
+ });
3120
+
3121
+ // ../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js
3122
+ var require_out3 = __commonJS({
3123
+ "../../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
3124
+ "use strict";
3125
+ init_cjs_shims();
3126
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3127
+ exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
3128
+ var async_1 = require_async4(), stream_1 = require_stream2(), sync_1 = require_sync4(), settings_1 = require_settings3();
3129
+ exports.Settings = settings_1.default;
3130
+ function walk(directory, optionsOrSettingsOrCallback, callback) {
3131
+ if (typeof optionsOrSettingsOrCallback == "function") {
3132
+ new async_1.default(directory, getSettings()).read(optionsOrSettingsOrCallback);
3133
+ return;
3134
+ }
3135
+ new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
3136
+ }
3137
+ exports.walk = walk;
3138
+ function walkSync(directory, optionsOrSettings) {
3139
+ let settings = getSettings(optionsOrSettings);
3140
+ return new sync_1.default(directory, settings).read();
3141
+ }
3142
+ exports.walkSync = walkSync;
3143
+ function walkStream(directory, optionsOrSettings) {
3144
+ let settings = getSettings(optionsOrSettings);
3145
+ return new stream_1.default(directory, settings).read();
3146
+ }
3147
+ exports.walkStream = walkStream;
3148
+ function getSettings(settingsOrOptions = {}) {
3149
+ return settingsOrOptions instanceof settings_1.default ? settingsOrOptions : new settings_1.default(settingsOrOptions);
3150
+ }
3151
+ }
3152
+ });
3153
+
3154
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js
3155
+ var require_reader2 = __commonJS({
3156
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/reader.js"(exports) {
3157
+ "use strict";
3158
+ init_cjs_shims();
3159
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3160
+ var path = __require("path"), fsStat = require_out(), utils = require_utils3(), Reader = class {
3161
+ constructor(_settings) {
3162
+ this._settings = _settings, this._fsStatSettings = new fsStat.Settings({
3163
+ followSymbolicLink: this._settings.followSymbolicLinks,
3164
+ fs: this._settings.fs,
3165
+ throwErrorOnBrokenSymbolicLink: this._settings.followSymbolicLinks
3166
+ });
3167
+ }
3168
+ _getFullEntryPath(filepath) {
3169
+ return path.resolve(this._settings.cwd, filepath);
3170
+ }
3171
+ _makeEntry(stats, pattern) {
3172
+ let entry = {
3173
+ name: pattern,
3174
+ path: pattern,
3175
+ dirent: utils.fs.createDirentFromStats(pattern, stats)
3176
+ };
3177
+ return this._settings.stats && (entry.stats = stats), entry;
3178
+ }
3179
+ _isFatalError(error) {
3180
+ return !utils.errno.isEnoentCodeError(error) && !this._settings.suppressErrors;
3181
+ }
3182
+ };
3183
+ exports.default = Reader;
3184
+ }
3185
+ });
3186
+
3187
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/stream.js
3188
+ var require_stream3 = __commonJS({
3189
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/stream.js"(exports) {
3190
+ "use strict";
3191
+ init_cjs_shims();
3192
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3193
+ var stream_1 = __require("stream"), fsStat = require_out(), fsWalk = require_out3(), reader_1 = require_reader2(), ReaderStream = class extends reader_1.default {
3194
+ constructor() {
3195
+ super(...arguments), this._walkStream = fsWalk.walkStream, this._stat = fsStat.stat;
3196
+ }
3197
+ dynamic(root, options) {
3198
+ return this._walkStream(root, options);
3199
+ }
3200
+ static(patterns, options) {
3201
+ let filepaths = patterns.map(this._getFullEntryPath, this), stream = new stream_1.PassThrough({ objectMode: !0 });
3202
+ stream._write = (index, _enc, done) => this._getEntry(filepaths[index], patterns[index], options).then((entry) => {
3203
+ entry !== null && options.entryFilter(entry) && stream.push(entry), index === filepaths.length - 1 && stream.end(), done();
3204
+ }).catch(done);
3205
+ for (let i = 0; i < filepaths.length; i++)
3206
+ stream.write(i);
3207
+ return stream;
3208
+ }
3209
+ _getEntry(filepath, pattern, options) {
3210
+ return this._getStat(filepath).then((stats) => this._makeEntry(stats, pattern)).catch((error) => {
3211
+ if (options.errorFilter(error))
3212
+ return null;
3213
+ throw error;
3214
+ });
3215
+ }
3216
+ _getStat(filepath) {
3217
+ return new Promise((resolve, reject) => {
3218
+ this._stat(filepath, this._fsStatSettings, (error, stats) => error === null ? resolve(stats) : reject(error));
3219
+ });
3220
+ }
3221
+ };
3222
+ exports.default = ReaderStream;
3223
+ }
3224
+ });
3225
+
3226
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/async.js
3227
+ var require_async5 = __commonJS({
3228
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/async.js"(exports) {
3229
+ "use strict";
3230
+ init_cjs_shims();
3231
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3232
+ var fsWalk = require_out3(), reader_1 = require_reader2(), stream_1 = require_stream3(), ReaderAsync = class extends reader_1.default {
3233
+ constructor() {
3234
+ super(...arguments), this._walkAsync = fsWalk.walk, this._readerStream = new stream_1.default(this._settings);
3235
+ }
3236
+ dynamic(root, options) {
3237
+ return new Promise((resolve, reject) => {
3238
+ this._walkAsync(root, options, (error, entries) => {
3239
+ error === null ? resolve(entries) : reject(error);
3240
+ });
3241
+ });
3242
+ }
3243
+ async static(patterns, options) {
3244
+ let entries = [], stream = this._readerStream.static(patterns, options);
3245
+ return new Promise((resolve, reject) => {
3246
+ stream.once("error", reject), stream.on("data", (entry) => entries.push(entry)), stream.once("end", () => resolve(entries));
3247
+ });
3248
+ }
3249
+ };
3250
+ exports.default = ReaderAsync;
3251
+ }
3252
+ });
3253
+
3254
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/matcher.js
3255
+ var require_matcher = __commonJS({
3256
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
3257
+ "use strict";
3258
+ init_cjs_shims();
3259
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3260
+ var utils = require_utils3(), Matcher = class {
3261
+ constructor(_patterns, _settings, _micromatchOptions) {
3262
+ this._patterns = _patterns, this._settings = _settings, this._micromatchOptions = _micromatchOptions, this._storage = [], this._fillStorage();
3263
+ }
3264
+ _fillStorage() {
3265
+ for (let pattern of this._patterns) {
3266
+ let segments = this._getPatternSegments(pattern), sections = this._splitSegmentsIntoSections(segments);
3267
+ this._storage.push({
3268
+ complete: sections.length <= 1,
3269
+ pattern,
3270
+ segments,
3271
+ sections
3272
+ });
3273
+ }
3274
+ }
3275
+ _getPatternSegments(pattern) {
3276
+ return utils.pattern.getPatternParts(pattern, this._micromatchOptions).map((part) => utils.pattern.isDynamicPattern(part, this._settings) ? {
3277
+ dynamic: !0,
3278
+ pattern: part,
3279
+ patternRe: utils.pattern.makeRe(part, this._micromatchOptions)
3280
+ } : {
3281
+ dynamic: !1,
3282
+ pattern: part
3283
+ });
3284
+ }
3285
+ _splitSegmentsIntoSections(segments) {
3286
+ return utils.array.splitWhen(segments, (segment) => segment.dynamic && utils.pattern.hasGlobStar(segment.pattern));
3287
+ }
3288
+ };
3289
+ exports.default = Matcher;
3290
+ }
3291
+ });
3292
+
3293
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/partial.js
3294
+ var require_partial = __commonJS({
3295
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
3296
+ "use strict";
3297
+ init_cjs_shims();
3298
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3299
+ var matcher_1 = require_matcher(), PartialMatcher = class extends matcher_1.default {
3300
+ match(filepath) {
3301
+ let parts = filepath.split("/"), levels = parts.length, patterns = this._storage.filter((info) => !info.complete || info.segments.length > levels);
3302
+ for (let pattern of patterns) {
3303
+ let section = pattern.sections[0];
3304
+ if (!pattern.complete && levels > section.length || parts.every((part, index) => {
3305
+ let segment = pattern.segments[index];
3306
+ return !!(segment.dynamic && segment.patternRe.test(part) || !segment.dynamic && segment.pattern === part);
3307
+ }))
3308
+ return !0;
3309
+ }
3310
+ return !1;
3311
+ }
3312
+ };
3313
+ exports.default = PartialMatcher;
3314
+ }
3315
+ });
3316
+
3317
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/deep.js
3318
+ var require_deep = __commonJS({
3319
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
3320
+ "use strict";
3321
+ init_cjs_shims();
3322
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3323
+ var utils = require_utils3(), partial_1 = require_partial(), DeepFilter = class {
3324
+ constructor(_settings, _micromatchOptions) {
3325
+ this._settings = _settings, this._micromatchOptions = _micromatchOptions;
3326
+ }
3327
+ getFilter(basePath, positive, negative) {
3328
+ let matcher = this._getMatcher(positive), negativeRe = this._getNegativePatternsRe(negative);
3329
+ return (entry) => this._filter(basePath, entry, matcher, negativeRe);
3330
+ }
3331
+ _getMatcher(patterns) {
3332
+ return new partial_1.default(patterns, this._settings, this._micromatchOptions);
3333
+ }
3334
+ _getNegativePatternsRe(patterns) {
3335
+ let affectDepthOfReadingPatterns = patterns.filter(utils.pattern.isAffectDepthOfReadingPattern);
3336
+ return utils.pattern.convertPatternsToRe(affectDepthOfReadingPatterns, this._micromatchOptions);
3337
+ }
3338
+ _filter(basePath, entry, matcher, negativeRe) {
3339
+ if (this._isSkippedByDeep(basePath, entry.path) || this._isSkippedSymbolicLink(entry))
3340
+ return !1;
3341
+ let filepath = utils.path.removeLeadingDotSegment(entry.path);
3342
+ return this._isSkippedByPositivePatterns(filepath, matcher) ? !1 : this._isSkippedByNegativePatterns(filepath, negativeRe);
3343
+ }
3344
+ _isSkippedByDeep(basePath, entryPath) {
3345
+ return this._settings.deep === 1 / 0 ? !1 : this._getEntryLevel(basePath, entryPath) >= this._settings.deep;
3346
+ }
3347
+ _getEntryLevel(basePath, entryPath) {
3348
+ let entryPathDepth = entryPath.split("/").length;
3349
+ if (basePath === "")
3350
+ return entryPathDepth;
3351
+ let basePathDepth = basePath.split("/").length;
3352
+ return entryPathDepth - basePathDepth;
3353
+ }
3354
+ _isSkippedSymbolicLink(entry) {
3355
+ return !this._settings.followSymbolicLinks && entry.dirent.isSymbolicLink();
3356
+ }
3357
+ _isSkippedByPositivePatterns(entryPath, matcher) {
3358
+ return !this._settings.baseNameMatch && !matcher.match(entryPath);
3359
+ }
3360
+ _isSkippedByNegativePatterns(entryPath, patternsRe) {
3361
+ return !utils.pattern.matchAny(entryPath, patternsRe);
3362
+ }
3363
+ };
3364
+ exports.default = DeepFilter;
3365
+ }
3366
+ });
3367
+
3368
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/entry.js
3369
+ var require_entry = __commonJS({
3370
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
3371
+ "use strict";
3372
+ init_cjs_shims();
3373
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3374
+ var utils = require_utils3(), EntryFilter = class {
3375
+ constructor(_settings, _micromatchOptions) {
3376
+ this._settings = _settings, this._micromatchOptions = _micromatchOptions, this.index = /* @__PURE__ */ new Map();
3377
+ }
3378
+ getFilter(positive, negative) {
3379
+ let positiveRe = utils.pattern.convertPatternsToRe(positive, this._micromatchOptions), negativeRe = utils.pattern.convertPatternsToRe(negative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: !0 }));
3380
+ return (entry) => this._filter(entry, positiveRe, negativeRe);
3381
+ }
3382
+ _filter(entry, positiveRe, negativeRe) {
3383
+ let filepath = utils.path.removeLeadingDotSegment(entry.path);
3384
+ if (this._settings.unique && this._isDuplicateEntry(filepath) || this._onlyFileFilter(entry) || this._onlyDirectoryFilter(entry) || this._isSkippedByAbsoluteNegativePatterns(filepath, negativeRe))
3385
+ return !1;
3386
+ let isDirectory = entry.dirent.isDirectory(), isMatched = this._isMatchToPatterns(filepath, positiveRe, isDirectory) && !this._isMatchToPatterns(filepath, negativeRe, isDirectory);
3387
+ return this._settings.unique && isMatched && this._createIndexRecord(filepath), isMatched;
3388
+ }
3389
+ _isDuplicateEntry(filepath) {
3390
+ return this.index.has(filepath);
3391
+ }
3392
+ _createIndexRecord(filepath) {
3393
+ this.index.set(filepath, void 0);
3394
+ }
3395
+ _onlyFileFilter(entry) {
3396
+ return this._settings.onlyFiles && !entry.dirent.isFile();
3397
+ }
3398
+ _onlyDirectoryFilter(entry) {
3399
+ return this._settings.onlyDirectories && !entry.dirent.isDirectory();
3400
+ }
3401
+ _isSkippedByAbsoluteNegativePatterns(entryPath, patternsRe) {
3402
+ if (!this._settings.absolute)
3403
+ return !1;
3404
+ let fullpath = utils.path.makeAbsolute(this._settings.cwd, entryPath);
3405
+ return utils.pattern.matchAny(fullpath, patternsRe);
3406
+ }
3407
+ _isMatchToPatterns(filepath, patternsRe, isDirectory) {
3408
+ let isMatched = utils.pattern.matchAny(filepath, patternsRe);
3409
+ return !isMatched && isDirectory ? utils.pattern.matchAny(filepath + "/", patternsRe) : isMatched;
3410
+ }
3411
+ };
3412
+ exports.default = EntryFilter;
3413
+ }
3414
+ });
3415
+
3416
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/error.js
3417
+ var require_error = __commonJS({
3418
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
3419
+ "use strict";
3420
+ init_cjs_shims();
3421
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3422
+ var utils = require_utils3(), ErrorFilter = class {
3423
+ constructor(_settings) {
3424
+ this._settings = _settings;
3425
+ }
3426
+ getFilter() {
3427
+ return (error) => this._isNonFatalError(error);
3428
+ }
3429
+ _isNonFatalError(error) {
3430
+ return utils.errno.isEnoentCodeError(error) || this._settings.suppressErrors;
3431
+ }
3432
+ };
3433
+ exports.default = ErrorFilter;
3434
+ }
3435
+ });
3436
+
3437
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/transformers/entry.js
3438
+ var require_entry2 = __commonJS({
3439
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
3440
+ "use strict";
3441
+ init_cjs_shims();
3442
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3443
+ var utils = require_utils3(), EntryTransformer = class {
3444
+ constructor(_settings) {
3445
+ this._settings = _settings;
3446
+ }
3447
+ getTransformer() {
3448
+ return (entry) => this._transform(entry);
3449
+ }
3450
+ _transform(entry) {
3451
+ let filepath = entry.path;
3452
+ return this._settings.absolute && (filepath = utils.path.makeAbsolute(this._settings.cwd, filepath), filepath = utils.path.unixify(filepath)), this._settings.markDirectories && entry.dirent.isDirectory() && (filepath += "/"), this._settings.objectMode ? Object.assign(Object.assign({}, entry), { path: filepath }) : filepath;
3453
+ }
3454
+ };
3455
+ exports.default = EntryTransformer;
3456
+ }
3457
+ });
3458
+
3459
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js
3460
+ var require_provider = __commonJS({
3461
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/provider.js"(exports) {
3462
+ "use strict";
3463
+ init_cjs_shims();
3464
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3465
+ var path = __require("path"), deep_1 = require_deep(), entry_1 = require_entry(), error_1 = require_error(), entry_2 = require_entry2(), Provider = class {
3466
+ constructor(_settings) {
3467
+ this._settings = _settings, this.errorFilter = new error_1.default(this._settings), this.entryFilter = new entry_1.default(this._settings, this._getMicromatchOptions()), this.deepFilter = new deep_1.default(this._settings, this._getMicromatchOptions()), this.entryTransformer = new entry_2.default(this._settings);
3468
+ }
3469
+ _getRootDirectory(task) {
3470
+ return path.resolve(this._settings.cwd, task.base);
3471
+ }
3472
+ _getReaderOptions(task) {
3473
+ let basePath = task.base === "." ? "" : task.base;
3474
+ return {
3475
+ basePath,
3476
+ pathSegmentSeparator: "/",
3477
+ concurrency: this._settings.concurrency,
3478
+ deepFilter: this.deepFilter.getFilter(basePath, task.positive, task.negative),
3479
+ entryFilter: this.entryFilter.getFilter(task.positive, task.negative),
3480
+ errorFilter: this.errorFilter.getFilter(),
3481
+ followSymbolicLinks: this._settings.followSymbolicLinks,
3482
+ fs: this._settings.fs,
3483
+ stats: this._settings.stats,
3484
+ throwErrorOnBrokenSymbolicLink: this._settings.throwErrorOnBrokenSymbolicLink,
3485
+ transform: this.entryTransformer.getTransformer()
3486
+ };
3487
+ }
3488
+ _getMicromatchOptions() {
3489
+ return {
3490
+ dot: this._settings.dot,
3491
+ matchBase: this._settings.baseNameMatch,
3492
+ nobrace: !this._settings.braceExpansion,
3493
+ nocase: !this._settings.caseSensitiveMatch,
3494
+ noext: !this._settings.extglob,
3495
+ noglobstar: !this._settings.globstar,
3496
+ posix: !0,
3497
+ strictSlashes: !1
3498
+ };
3499
+ }
3500
+ };
3501
+ exports.default = Provider;
3502
+ }
3503
+ });
3504
+
3505
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/async.js
3506
+ var require_async6 = __commonJS({
3507
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/async.js"(exports) {
3508
+ "use strict";
3509
+ init_cjs_shims();
3510
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3511
+ var async_1 = require_async5(), provider_1 = require_provider(), ProviderAsync = class extends provider_1.default {
3512
+ constructor() {
3513
+ super(...arguments), this._reader = new async_1.default(this._settings);
3514
+ }
3515
+ async read(task) {
3516
+ let root = this._getRootDirectory(task), options = this._getReaderOptions(task);
3517
+ return (await this.api(root, task, options)).map((entry) => options.transform(entry));
3518
+ }
3519
+ api(root, task, options) {
3520
+ return task.dynamic ? this._reader.dynamic(root, options) : this._reader.static(task.patterns, options);
3521
+ }
3522
+ };
3523
+ exports.default = ProviderAsync;
3524
+ }
3525
+ });
3526
+
3527
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/stream.js
3528
+ var require_stream4 = __commonJS({
3529
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/stream.js"(exports) {
3530
+ "use strict";
3531
+ init_cjs_shims();
3532
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3533
+ var stream_1 = __require("stream"), stream_2 = require_stream3(), provider_1 = require_provider(), ProviderStream = class extends provider_1.default {
3534
+ constructor() {
3535
+ super(...arguments), this._reader = new stream_2.default(this._settings);
3536
+ }
3537
+ read(task) {
3538
+ let root = this._getRootDirectory(task), options = this._getReaderOptions(task), source = this.api(root, task, options), destination = new stream_1.Readable({ objectMode: !0, read: () => {
3539
+ } });
3540
+ return source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end")), destination.once("close", () => source.destroy()), destination;
3541
+ }
3542
+ api(root, task, options) {
3543
+ return task.dynamic ? this._reader.dynamic(root, options) : this._reader.static(task.patterns, options);
3544
+ }
3545
+ };
3546
+ exports.default = ProviderStream;
3547
+ }
3548
+ });
3549
+
3550
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/sync.js
3551
+ var require_sync5 = __commonJS({
3552
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/readers/sync.js"(exports) {
3553
+ "use strict";
3554
+ init_cjs_shims();
3555
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3556
+ var fsStat = require_out(), fsWalk = require_out3(), reader_1 = require_reader2(), ReaderSync = class extends reader_1.default {
3557
+ constructor() {
3558
+ super(...arguments), this._walkSync = fsWalk.walkSync, this._statSync = fsStat.statSync;
3559
+ }
3560
+ dynamic(root, options) {
3561
+ return this._walkSync(root, options);
3562
+ }
3563
+ static(patterns, options) {
3564
+ let entries = [];
3565
+ for (let pattern of patterns) {
3566
+ let filepath = this._getFullEntryPath(pattern), entry = this._getEntry(filepath, pattern, options);
3567
+ entry === null || !options.entryFilter(entry) || entries.push(entry);
3568
+ }
3569
+ return entries;
3570
+ }
3571
+ _getEntry(filepath, pattern, options) {
3572
+ try {
3573
+ let stats = this._getStat(filepath);
3574
+ return this._makeEntry(stats, pattern);
3575
+ } catch (error) {
3576
+ if (options.errorFilter(error))
3577
+ return null;
3578
+ throw error;
3579
+ }
3580
+ }
3581
+ _getStat(filepath) {
3582
+ return this._statSync(filepath, this._fsStatSettings);
3583
+ }
3584
+ };
3585
+ exports.default = ReaderSync;
3586
+ }
3587
+ });
3588
+
3589
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/sync.js
3590
+ var require_sync6 = __commonJS({
3591
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/providers/sync.js"(exports) {
3592
+ "use strict";
3593
+ init_cjs_shims();
3594
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3595
+ var sync_1 = require_sync5(), provider_1 = require_provider(), ProviderSync = class extends provider_1.default {
3596
+ constructor() {
3597
+ super(...arguments), this._reader = new sync_1.default(this._settings);
3598
+ }
3599
+ read(task) {
3600
+ let root = this._getRootDirectory(task), options = this._getReaderOptions(task);
3601
+ return this.api(root, task, options).map(options.transform);
3602
+ }
3603
+ api(root, task, options) {
3604
+ return task.dynamic ? this._reader.dynamic(root, options) : this._reader.static(task.patterns, options);
3605
+ }
3606
+ };
3607
+ exports.default = ProviderSync;
3608
+ }
3609
+ });
3610
+
3611
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/settings.js
3612
+ var require_settings4 = __commonJS({
3613
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/settings.js"(exports) {
3614
+ "use strict";
3615
+ init_cjs_shims();
3616
+ Object.defineProperty(exports, "__esModule", { value: !0 });
3617
+ exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
3618
+ var fs = __require("fs"), os = __require("os"), CPU_COUNT = Math.max(os.cpus().length, 1);
3619
+ exports.DEFAULT_FILE_SYSTEM_ADAPTER = {
3620
+ lstat: fs.lstat,
3621
+ lstatSync: fs.lstatSync,
3622
+ stat: fs.stat,
3623
+ statSync: fs.statSync,
3624
+ readdir: fs.readdir,
3625
+ readdirSync: fs.readdirSync
3626
+ };
3627
+ var Settings = class {
3628
+ constructor(_options = {}) {
3629
+ this._options = _options, this.absolute = this._getValue(this._options.absolute, !1), this.baseNameMatch = this._getValue(this._options.baseNameMatch, !1), this.braceExpansion = this._getValue(this._options.braceExpansion, !0), this.caseSensitiveMatch = this._getValue(this._options.caseSensitiveMatch, !0), this.concurrency = this._getValue(this._options.concurrency, CPU_COUNT), this.cwd = this._getValue(this._options.cwd, process.cwd()), this.deep = this._getValue(this._options.deep, 1 / 0), this.dot = this._getValue(this._options.dot, !1), this.extglob = this._getValue(this._options.extglob, !0), this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, !0), this.fs = this._getFileSystemMethods(this._options.fs), this.globstar = this._getValue(this._options.globstar, !0), this.ignore = this._getValue(this._options.ignore, []), this.markDirectories = this._getValue(this._options.markDirectories, !1), this.objectMode = this._getValue(this._options.objectMode, !1), this.onlyDirectories = this._getValue(this._options.onlyDirectories, !1), this.onlyFiles = this._getValue(this._options.onlyFiles, !0), this.stats = this._getValue(this._options.stats, !1), this.suppressErrors = this._getValue(this._options.suppressErrors, !1), this.throwErrorOnBrokenSymbolicLink = this._getValue(this._options.throwErrorOnBrokenSymbolicLink, !1), this.unique = this._getValue(this._options.unique, !0), this.onlyDirectories && (this.onlyFiles = !1), this.stats && (this.objectMode = !0), this.ignore = [].concat(this.ignore);
3630
+ }
3631
+ _getValue(option, value) {
3632
+ return option === void 0 ? value : option;
3633
+ }
3634
+ _getFileSystemMethods(methods = {}) {
3635
+ return Object.assign(Object.assign({}, exports.DEFAULT_FILE_SYSTEM_ADAPTER), methods);
3636
+ }
3637
+ };
3638
+ exports.default = Settings;
3639
+ }
3640
+ });
3641
+
3642
+ // ../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/index.js
3643
+ var require_out4 = __commonJS({
3644
+ "../../node_modules/.pnpm/fast-glob@3.3.1/node_modules/fast-glob/out/index.js"(exports, module) {
3645
+ init_cjs_shims();
3646
+ var taskManager = require_tasks(), async_1 = require_async6(), stream_1 = require_stream4(), sync_1 = require_sync6(), settings_1 = require_settings4(), utils = require_utils3();
3647
+ async function FastGlob(source, options) {
3648
+ assertPatternsInput(source);
3649
+ let works = getWorks(source, async_1.default, options), result = await Promise.all(works);
3650
+ return utils.array.flatten(result);
3651
+ }
3652
+ (function(FastGlob2) {
3653
+ FastGlob2.glob = FastGlob2, FastGlob2.globSync = sync, FastGlob2.globStream = stream, FastGlob2.async = FastGlob2;
3654
+ function sync(source, options) {
3655
+ assertPatternsInput(source);
3656
+ let works = getWorks(source, sync_1.default, options);
3657
+ return utils.array.flatten(works);
3658
+ }
3659
+ FastGlob2.sync = sync;
3660
+ function stream(source, options) {
3661
+ assertPatternsInput(source);
3662
+ let works = getWorks(source, stream_1.default, options);
3663
+ return utils.stream.merge(works);
3664
+ }
3665
+ FastGlob2.stream = stream;
3666
+ function generateTasks(source, options) {
3667
+ assertPatternsInput(source);
3668
+ let patterns = [].concat(source), settings = new settings_1.default(options);
3669
+ return taskManager.generate(patterns, settings);
3670
+ }
3671
+ FastGlob2.generateTasks = generateTasks;
3672
+ function isDynamicPattern(source, options) {
3673
+ assertPatternsInput(source);
3674
+ let settings = new settings_1.default(options);
3675
+ return utils.pattern.isDynamicPattern(source, settings);
3676
+ }
3677
+ FastGlob2.isDynamicPattern = isDynamicPattern;
3678
+ function escapePath(source) {
3679
+ return assertPatternsInput(source), utils.path.escape(source);
3680
+ }
3681
+ FastGlob2.escapePath = escapePath;
3682
+ function convertPathToPattern(source) {
3683
+ return assertPatternsInput(source), utils.path.convertPathToPattern(source);
3684
+ }
3685
+ FastGlob2.convertPathToPattern = convertPathToPattern;
3686
+ let posix;
3687
+ (function(posix2) {
3688
+ function escapePath2(source) {
3689
+ return assertPatternsInput(source), utils.path.escapePosixPath(source);
3690
+ }
3691
+ posix2.escapePath = escapePath2;
3692
+ function convertPathToPattern2(source) {
3693
+ return assertPatternsInput(source), utils.path.convertPosixPathToPattern(source);
3694
+ }
3695
+ posix2.convertPathToPattern = convertPathToPattern2;
3696
+ })(posix = FastGlob2.posix || (FastGlob2.posix = {}));
3697
+ let win32;
3698
+ (function(win322) {
3699
+ function escapePath2(source) {
3700
+ return assertPatternsInput(source), utils.path.escapeWindowsPath(source);
3701
+ }
3702
+ win322.escapePath = escapePath2;
3703
+ function convertPathToPattern2(source) {
3704
+ return assertPatternsInput(source), utils.path.convertWindowsPathToPattern(source);
3705
+ }
3706
+ win322.convertPathToPattern = convertPathToPattern2;
3707
+ })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
3708
+ })(FastGlob || (FastGlob = {}));
3709
+ function getWorks(source, _Provider, options) {
3710
+ let patterns = [].concat(source), settings = new settings_1.default(options), tasks = taskManager.generate(patterns, settings), provider = new _Provider(settings);
3711
+ return tasks.map(provider.read, provider);
3712
+ }
3713
+ function assertPatternsInput(input) {
3714
+ if (![].concat(input).every((item) => utils.string.isString(item) && !utils.string.isEmpty(item)))
3715
+ throw new TypeError("Patterns must be a string (non empty) or an array of strings");
3716
+ }
3717
+ module.exports = FastGlob;
3718
+ }
3719
+ });
3720
+
3721
+ export {
3722
+ require_merge2,
3723
+ require_is_glob,
3724
+ require_out4 as require_out
3725
+ };
3726
+ /*! Bundled license information:
3727
+
3728
+ is-extglob/index.js:
3729
+ (*!
3730
+ * is-extglob <https://github.com/jonschlinkert/is-extglob>
3731
+ *
3732
+ * Copyright (c) 2014-2016, Jon Schlinkert.
3733
+ * Licensed under the MIT License.
3734
+ *)
3735
+
3736
+ is-glob/index.js:
3737
+ (*!
3738
+ * is-glob <https://github.com/jonschlinkert/is-glob>
3739
+ *
3740
+ * Copyright (c) 2014-2017, Jon Schlinkert.
3741
+ * Released under the MIT License.
3742
+ *)
3743
+
3744
+ is-number/index.js:
3745
+ (*!
3746
+ * is-number <https://github.com/jonschlinkert/is-number>
3747
+ *
3748
+ * Copyright (c) 2014-present, Jon Schlinkert.
3749
+ * Released under the MIT License.
3750
+ *)
3751
+
3752
+ to-regex-range/index.js:
3753
+ (*!
3754
+ * to-regex-range <https://github.com/micromatch/to-regex-range>
3755
+ *
3756
+ * Copyright (c) 2015-present, Jon Schlinkert.
3757
+ * Released under the MIT License.
3758
+ *)
3759
+
3760
+ fill-range/index.js:
3761
+ (*!
3762
+ * fill-range <https://github.com/jonschlinkert/fill-range>
3763
+ *
3764
+ * Copyright (c) 2014-present, Jon Schlinkert.
3765
+ * Licensed under the MIT License.
3766
+ *)
3767
+
3768
+ queue-microtask/index.js:
3769
+ (*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
3770
+
3771
+ run-parallel/index.js:
3772
+ (*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
3773
+ */
3774
+ //# sourceMappingURL=chunk-ZAUZQLNO.js.map