@palbase/backend 25.0.4 → 27.0.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 (104) hide show
  1. package/dist/bin/palbase-backend.cjs +2622 -1012
  2. package/dist/bin/palbase-backend.cjs.map +1 -1
  3. package/dist/bin/palbase-backend.js +87 -51
  4. package/dist/bin/palbase-backend.js.map +1 -1
  5. package/dist/chunk-CGNN2PUH.js +213 -0
  6. package/dist/chunk-CGNN2PUH.js.map +1 -0
  7. package/dist/chunk-DRZFQRJI.js +370 -0
  8. package/dist/chunk-DRZFQRJI.js.map +1 -0
  9. package/dist/chunk-GYK6QYS4.js +708 -0
  10. package/dist/chunk-GYK6QYS4.js.map +1 -0
  11. package/dist/chunk-I3C4PFIW.js +930 -0
  12. package/dist/chunk-I3C4PFIW.js.map +1 -0
  13. package/dist/{chunk-AILPKEK5.js → chunk-OO7R25AI.js} +1433 -563
  14. package/dist/chunk-OO7R25AI.js.map +1 -0
  15. package/dist/chunk-TS4U7NBD.js +885 -0
  16. package/dist/chunk-TS4U7NBD.js.map +1 -0
  17. package/dist/{chunk-YOY5DFQS.js → chunk-TWX6JTGJ.js} +76 -34
  18. package/dist/{chunk-YOY5DFQS.js.map → chunk-TWX6JTGJ.js.map} +1 -1
  19. package/dist/{chunk-35PNTIRN.js → chunk-VVMJEVQP.js} +63 -162
  20. package/dist/chunk-VVMJEVQP.js.map +1 -0
  21. package/dist/{chunk-7D4SUZUM.js → chunk-VXPNPVAG.js} +3 -1
  22. package/dist/db/env.cjs.map +1 -1
  23. package/dist/db/env.d.cts +2 -2
  24. package/dist/db/env.d.ts +2 -2
  25. package/dist/db/index.cjs +754 -344
  26. package/dist/db/index.cjs.map +1 -1
  27. package/dist/db/index.d.cts +2 -2
  28. package/dist/db/index.d.ts +2 -2
  29. package/dist/db/index.js +7 -4
  30. package/dist/engine/index.cjs +2562 -981
  31. package/dist/engine/index.cjs.map +1 -1
  32. package/dist/engine/index.d.cts +6 -6
  33. package/dist/engine/index.d.ts +6 -6
  34. package/dist/engine/index.js +7 -6
  35. package/dist/index-BrvvxSpn.d.ts +4844 -0
  36. package/dist/index-Bve7BBTL.d.cts +4844 -0
  37. package/dist/{index-CUomTA3e.d.ts → index-NuzRCuxe.d.ts} +171 -296
  38. package/dist/{index-ClpDeSos.d.cts → index-VtToZmUm.d.cts} +171 -296
  39. package/dist/index.cjs +2694 -1169
  40. package/dist/index.cjs.map +1 -1
  41. package/dist/index.d.cts +165 -19
  42. package/dist/index.d.ts +165 -19
  43. package/dist/index.js +738 -477
  44. package/dist/index.js.map +1 -1
  45. package/dist/module-Dl1KFVtc.d.cts +54 -0
  46. package/dist/module-Dl1KFVtc.d.ts +54 -0
  47. package/dist/openapi/index.cjs +1330 -484
  48. package/dist/openapi/index.cjs.map +1 -1
  49. package/dist/openapi/index.d.cts +4 -2
  50. package/dist/openapi/index.d.ts +4 -2
  51. package/dist/openapi/index.js +1264 -474
  52. package/dist/openapi/index.js.map +1 -1
  53. package/dist/{registry-dZZ5JKYg.d.ts → registry-B0eyOF9x.d.ts} +1 -1
  54. package/dist/{registry-CC0WBQq6.d.cts → registry-Bk9_rbNd.d.cts} +1 -1
  55. package/dist/stack.cjs.map +1 -1
  56. package/dist/test/index.cjs +705 -141
  57. package/dist/test/index.cjs.map +1 -1
  58. package/dist/test/index.d.cts +30 -4
  59. package/dist/test/index.d.ts +30 -4
  60. package/dist/test/index.js +472 -124
  61. package/dist/test/index.js.map +1 -1
  62. package/docs/README.md +34 -18
  63. package/docs/auth.md +1 -1
  64. package/docs/background.md +2 -2
  65. package/docs/database.md +221 -50
  66. package/docs/endpoints.md +3 -4
  67. package/docs/events.md +3 -3
  68. package/docs/getting-started.md +1 -1
  69. package/docs/llms-full.txt +402 -117
  70. package/docs/migrations.md +2 -2
  71. package/docs/schema.md +19 -10
  72. package/docs/services.md +116 -26
  73. package/package.json +8 -4
  74. package/stager/generics.js +205 -0
  75. package/stager/stage.js +39 -3
  76. package/template/AGENTS.md +110 -70
  77. package/template/db/public.ts +1 -1
  78. package/template/{controllers → modules/health}/health.controller.ts +1 -1
  79. package/template/modules/health/health.module.ts +24 -0
  80. package/template/modules/notes/note.service.test.ts +49 -0
  81. package/template/modules/notes/note.service.ts +108 -0
  82. package/template/{controllers → modules/notes}/notes.controller.ts +17 -11
  83. package/template/modules/notes/notes.module.ts +37 -0
  84. package/template/package.json +5 -3
  85. package/template/scripts/test.sh +33 -0
  86. package/template/tsconfig.json +29 -30
  87. package/dist/chunk-35PNTIRN.js.map +0 -1
  88. package/dist/chunk-AILPKEK5.js.map +0 -1
  89. package/dist/chunk-CJSKYY76.js +0 -627
  90. package/dist/chunk-CJSKYY76.js.map +0 -1
  91. package/dist/chunk-CRQKCRGF.js +0 -276
  92. package/dist/chunk-CRQKCRGF.js.map +0 -1
  93. package/dist/chunk-G4R6BTLV.js +0 -662
  94. package/dist/chunk-G4R6BTLV.js.map +0 -1
  95. package/dist/chunk-XABBC7JP.js +0 -55
  96. package/dist/chunk-XABBC7JP.js.map +0 -1
  97. package/dist/endpoint-CTEHhb7A.d.ts +0 -2386
  98. package/dist/endpoint-DYHMo6cC.d.cts +0 -2386
  99. package/dist/index-CW21M9Z3.d.ts +0 -1222
  100. package/dist/index-CmBK76nx.d.cts +0 -1222
  101. package/template/services/note.service.test.ts +0 -45
  102. package/template/services/note.service.ts +0 -74
  103. /package/dist/{chunk-7D4SUZUM.js.map → chunk-VXPNPVAG.js.map} +0 -0
  104. /package/template/{models/notes → modules/notes/dto}/create.ts +0 -0
@@ -1,31 +1,38 @@
1
1
  import {
2
2
  getErrorRegistry
3
- } from "../chunk-YOY5DFQS.js";
3
+ } from "../chunk-TWX6JTGJ.js";
4
4
  import {
5
5
  getRoom,
6
6
  getRoutes,
7
7
  isController,
8
8
  resolveController,
9
9
  resolveEffectiveAuth
10
- } from "../chunk-35PNTIRN.js";
10
+ } from "../chunk-VVMJEVQP.js";
11
+ import "../chunk-CGNN2PUH.js";
11
12
  import {
12
13
  __commonJS,
14
+ __name,
13
15
  __require,
14
16
  __toESM
15
- } from "../chunk-7D4SUZUM.js";
17
+ } from "../chunk-VXPNPVAG.js";
16
18
 
17
19
  // ../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js
18
20
  var require_array = __commonJS({
19
21
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/array.js"(exports) {
20
22
  "use strict";
21
- Object.defineProperty(exports, "__esModule", { value: true });
23
+ Object.defineProperty(exports, "__esModule", {
24
+ value: true
25
+ });
22
26
  exports.splitWhen = exports.flatten = void 0;
23
27
  function flatten(items) {
24
28
  return items.reduce((collection, item) => [].concat(collection, item), []);
25
29
  }
30
+ __name(flatten, "flatten");
26
31
  exports.flatten = flatten;
27
32
  function splitWhen(items, predicate) {
28
- const result = [[]];
33
+ const result = [
34
+ []
35
+ ];
29
36
  let groupIndex = 0;
30
37
  for (const item of items) {
31
38
  if (predicate(item)) {
@@ -37,6 +44,7 @@ var require_array = __commonJS({
37
44
  }
38
45
  return result;
39
46
  }
47
+ __name(splitWhen, "splitWhen");
40
48
  exports.splitWhen = splitWhen;
41
49
  }
42
50
  });
@@ -45,11 +53,14 @@ var require_array = __commonJS({
45
53
  var require_errno = __commonJS({
46
54
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/errno.js"(exports) {
47
55
  "use strict";
48
- Object.defineProperty(exports, "__esModule", { value: true });
56
+ Object.defineProperty(exports, "__esModule", {
57
+ value: true
58
+ });
49
59
  exports.isEnoentCodeError = void 0;
50
60
  function isEnoentCodeError(error) {
51
61
  return error.code === "ENOENT";
52
62
  }
63
+ __name(isEnoentCodeError, "isEnoentCodeError");
53
64
  exports.isEnoentCodeError = isEnoentCodeError;
54
65
  }
55
66
  });
@@ -58,9 +69,14 @@ var require_errno = __commonJS({
58
69
  var require_fs = __commonJS({
59
70
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/fs.js"(exports) {
60
71
  "use strict";
61
- Object.defineProperty(exports, "__esModule", { value: true });
72
+ Object.defineProperty(exports, "__esModule", {
73
+ value: true
74
+ });
62
75
  exports.createDirentFromStats = void 0;
63
- var DirentFromStats = class {
76
+ var DirentFromStats = class DirentFromStats {
77
+ static {
78
+ __name(this, "DirentFromStats");
79
+ }
64
80
  constructor(name, stats) {
65
81
  this.name = name;
66
82
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
@@ -75,6 +91,7 @@ var require_fs = __commonJS({
75
91
  function createDirentFromStats(name, stats) {
76
92
  return new DirentFromStats(name, stats);
77
93
  }
94
+ __name(createDirentFromStats, "createDirentFromStats");
78
95
  exports.createDirentFromStats = createDirentFromStats;
79
96
  }
80
97
  });
@@ -83,7 +100,9 @@ var require_fs = __commonJS({
83
100
  var require_path = __commonJS({
84
101
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/path.js"(exports) {
85
102
  "use strict";
86
- Object.defineProperty(exports, "__esModule", { value: true });
103
+ Object.defineProperty(exports, "__esModule", {
104
+ value: true
105
+ });
87
106
  exports.convertPosixPathToPattern = exports.convertWindowsPathToPattern = exports.convertPathToPattern = exports.escapePosixPath = exports.escapeWindowsPath = exports.escape = exports.removeLeadingDotSegment = exports.makeAbsolute = exports.unixify = void 0;
88
107
  var os = __require("os");
89
108
  var path2 = __require("path");
@@ -96,10 +115,12 @@ var require_path = __commonJS({
96
115
  function unixify(filepath) {
97
116
  return filepath.replace(/\\/g, "/");
98
117
  }
118
+ __name(unixify, "unixify");
99
119
  exports.unixify = unixify;
100
120
  function makeAbsolute(cwd, filepath) {
101
121
  return path2.resolve(cwd, filepath);
102
122
  }
123
+ __name(makeAbsolute, "makeAbsolute");
103
124
  exports.makeAbsolute = makeAbsolute;
104
125
  function removeLeadingDotSegment(entry) {
105
126
  if (entry.charAt(0) === ".") {
@@ -110,24 +131,29 @@ var require_path = __commonJS({
110
131
  }
111
132
  return entry;
112
133
  }
134
+ __name(removeLeadingDotSegment, "removeLeadingDotSegment");
113
135
  exports.removeLeadingDotSegment = removeLeadingDotSegment;
114
136
  exports.escape = IS_WINDOWS_PLATFORM ? escapeWindowsPath : escapePosixPath;
115
137
  function escapeWindowsPath(pattern) {
116
138
  return pattern.replace(WINDOWS_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
117
139
  }
140
+ __name(escapeWindowsPath, "escapeWindowsPath");
118
141
  exports.escapeWindowsPath = escapeWindowsPath;
119
142
  function escapePosixPath(pattern) {
120
143
  return pattern.replace(POSIX_UNESCAPED_GLOB_SYMBOLS_RE, "\\$2");
121
144
  }
145
+ __name(escapePosixPath, "escapePosixPath");
122
146
  exports.escapePosixPath = escapePosixPath;
123
147
  exports.convertPathToPattern = IS_WINDOWS_PLATFORM ? convertWindowsPathToPattern : convertPosixPathToPattern;
124
148
  function convertWindowsPathToPattern(filepath) {
125
149
  return escapeWindowsPath(filepath).replace(DOS_DEVICE_PATH_RE, "//$1").replace(WINDOWS_BACKSLASHES_RE, "/");
126
150
  }
151
+ __name(convertWindowsPathToPattern, "convertWindowsPathToPattern");
127
152
  exports.convertWindowsPathToPattern = convertWindowsPathToPattern;
128
153
  function convertPosixPathToPattern(filepath) {
129
154
  return escapePosixPath(filepath);
130
155
  }
156
+ __name(convertPosixPathToPattern, "convertPosixPathToPattern");
131
157
  exports.convertPosixPathToPattern = convertPosixPathToPattern;
132
158
  }
133
159
  });
@@ -136,7 +162,7 @@ var require_path = __commonJS({
136
162
  var require_is_extglob = __commonJS({
137
163
  "../node_modules/.pnpm/is-extglob@2.1.1/node_modules/is-extglob/index.js"(exports, module) {
138
164
  "use strict";
139
- module.exports = function isExtglob(str) {
165
+ module.exports = /* @__PURE__ */ __name(function isExtglob(str) {
140
166
  if (typeof str !== "string" || str === "") {
141
167
  return false;
142
168
  }
@@ -146,7 +172,7 @@ var require_is_extglob = __commonJS({
146
172
  str = str.slice(match.index + match[0].length);
147
173
  }
148
174
  return false;
149
- };
175
+ }, "isExtglob");
150
176
  }
151
177
  });
152
178
 
@@ -155,8 +181,12 @@ var require_is_glob = __commonJS({
155
181
  "../node_modules/.pnpm/is-glob@4.0.3/node_modules/is-glob/index.js"(exports, module) {
156
182
  "use strict";
157
183
  var isExtglob = require_is_extglob();
158
- var chars = { "{": "}", "(": ")", "[": "]" };
159
- var strictCheck = function(str) {
184
+ var chars = {
185
+ "{": "}",
186
+ "(": ")",
187
+ "[": "]"
188
+ };
189
+ var strictCheck = /* @__PURE__ */ __name(function(str) {
160
190
  if (str[0] === "!") {
161
191
  return true;
162
192
  }
@@ -237,8 +267,8 @@ var require_is_glob = __commonJS({
237
267
  }
238
268
  }
239
269
  return false;
240
- };
241
- var relaxedCheck = function(str) {
270
+ }, "strictCheck");
271
+ var relaxedCheck = /* @__PURE__ */ __name(function(str) {
242
272
  if (str[0] === "!") {
243
273
  return true;
244
274
  }
@@ -265,8 +295,8 @@ var require_is_glob = __commonJS({
265
295
  }
266
296
  }
267
297
  return false;
268
- };
269
- module.exports = function isGlob(str, options) {
298
+ }, "relaxedCheck");
299
+ module.exports = /* @__PURE__ */ __name(function isGlob(str, options) {
270
300
  if (typeof str !== "string" || str === "") {
271
301
  return false;
272
302
  }
@@ -278,7 +308,7 @@ var require_is_glob = __commonJS({
278
308
  check = relaxedCheck;
279
309
  }
280
310
  return check(str);
281
- };
311
+ }, "isGlob");
282
312
  }
283
313
  });
284
314
 
@@ -294,8 +324,10 @@ var require_glob_parent = __commonJS({
294
324
  var enclosure = /[\{\[].*[\}\]]$/;
295
325
  var globby = /(^|[^\\])([\{\[]|\([^\)]+$)/;
296
326
  var escaped = /\\([\!\*\?\|\[\]\(\)\{\}])/g;
297
- module.exports = function globParent(str, opts) {
298
- var options = Object.assign({ flipBackslashes: true }, opts);
327
+ module.exports = /* @__PURE__ */ __name(function globParent(str, opts) {
328
+ var options = Object.assign({
329
+ flipBackslashes: true
330
+ }, opts);
299
331
  if (options.flipBackslashes && isWin32 && str.indexOf(slash) < 0) {
300
332
  str = str.replace(backslash, slash);
301
333
  }
@@ -307,7 +339,7 @@ var require_glob_parent = __commonJS({
307
339
  str = pathPosixDirname(str);
308
340
  } while (isGlob(str) || globby.test(str));
309
341
  return str.replace(escaped, "$1");
310
- };
342
+ }, "globParent");
311
343
  }
312
344
  });
313
345
 
@@ -374,7 +406,7 @@ var require_utils = __commonJS({
374
406
  }, []);
375
407
  exports.flatten = (...args) => {
376
408
  const result = [];
377
- const flat = (arr) => {
409
+ const flat = /* @__PURE__ */ __name((arr) => {
378
410
  for (let i = 0; i < arr.length; i++) {
379
411
  const ele = arr[i];
380
412
  if (Array.isArray(ele)) {
@@ -386,7 +418,7 @@ var require_utils = __commonJS({
386
418
  }
387
419
  }
388
420
  return result;
389
- };
421
+ }, "flat");
390
422
  flat(args);
391
423
  return result;
392
424
  };
@@ -399,7 +431,7 @@ var require_stringify = __commonJS({
399
431
  "use strict";
400
432
  var utils = require_utils();
401
433
  module.exports = (ast, options = {}) => {
402
- const stringify = (node, parent = {}) => {
434
+ const stringify = /* @__PURE__ */ __name((node, parent = {}) => {
403
435
  const invalidBlock = options.escapeInvalid && utils.isInvalidBrace(parent);
404
436
  const invalidNode = node.invalid === true && options.escapeInvalid === true;
405
437
  let output = "";
@@ -418,7 +450,7 @@ var require_stringify = __commonJS({
418
450
  }
419
451
  }
420
452
  return output;
421
- };
453
+ }, "stringify");
422
454
  return stringify(ast);
423
455
  };
424
456
  }
@@ -445,7 +477,7 @@ var require_to_regex_range = __commonJS({
445
477
  "../node_modules/.pnpm/to-regex-range@5.0.1/node_modules/to-regex-range/index.js"(exports, module) {
446
478
  "use strict";
447
479
  var isNumber = require_is_number();
448
- var toRegexRange = (min, max, options) => {
480
+ var toRegexRange = /* @__PURE__ */ __name((min, max, options) => {
449
481
  if (isNumber(min) === false) {
450
482
  throw new TypeError("toRegexRange: expected the first argument to be a number");
451
483
  }
@@ -455,7 +487,10 @@ var require_to_regex_range = __commonJS({
455
487
  if (isNumber(max) === false) {
456
488
  throw new TypeError("toRegexRange: expected the second argument to be a number.");
457
489
  }
458
- let opts = { relaxZeros: true, ...options };
490
+ let opts = {
491
+ relaxZeros: true,
492
+ ...options
493
+ };
459
494
  if (typeof opts.strictZeros === "boolean") {
460
495
  opts.relaxZeros = opts.strictZeros === false;
461
496
  }
@@ -480,7 +515,12 @@ var require_to_regex_range = __commonJS({
480
515
  return `(?:${result})`;
481
516
  }
482
517
  let isPadded = hasPadding(min) || hasPadding(max);
483
- let state = { min, max, a, b };
518
+ let state = {
519
+ min,
520
+ max,
521
+ a,
522
+ b
523
+ };
484
524
  let positives = [];
485
525
  let negatives = [];
486
526
  if (isPadded) {
@@ -505,7 +545,7 @@ var require_to_regex_range = __commonJS({
505
545
  }
506
546
  toRegexRange.cache[cacheKey] = state;
507
547
  return state.result;
508
- };
548
+ }, "toRegexRange");
509
549
  function collatePatterns(neg, pos, options) {
510
550
  let onlyNegative = filterPatterns(neg, pos, "-", false, options) || [];
511
551
  let onlyPositive = filterPatterns(pos, neg, "", false, options) || [];
@@ -513,11 +553,14 @@ var require_to_regex_range = __commonJS({
513
553
  let subpatterns = onlyNegative.concat(intersected).concat(onlyPositive);
514
554
  return subpatterns.join("|");
515
555
  }
556
+ __name(collatePatterns, "collatePatterns");
516
557
  function splitToRanges(min, max) {
517
558
  let nines = 1;
518
559
  let zeros = 1;
519
560
  let stop = countNines(min, nines);
520
- let stops = /* @__PURE__ */ new Set([max]);
561
+ let stops = /* @__PURE__ */ new Set([
562
+ max
563
+ ]);
521
564
  while (min <= stop && stop <= max) {
522
565
  stops.add(stop);
523
566
  nines += 1;
@@ -529,13 +572,20 @@ var require_to_regex_range = __commonJS({
529
572
  zeros += 1;
530
573
  stop = countZeros(max + 1, zeros) - 1;
531
574
  }
532
- stops = [...stops];
575
+ stops = [
576
+ ...stops
577
+ ];
533
578
  stops.sort(compare);
534
579
  return stops;
535
580
  }
581
+ __name(splitToRanges, "splitToRanges");
536
582
  function rangeToPattern(start, stop, options) {
537
583
  if (start === stop) {
538
- return { pattern: start, count: [], digits: 0 };
584
+ return {
585
+ pattern: start,
586
+ count: [],
587
+ digits: 0
588
+ };
539
589
  }
540
590
  let zipped = zip(start, stop);
541
591
  let digits = zipped.length;
@@ -554,8 +604,15 @@ var require_to_regex_range = __commonJS({
554
604
  if (count) {
555
605
  pattern += options.shorthand === true ? "\\d" : "[0-9]";
556
606
  }
557
- return { pattern, count: [count], digits };
607
+ return {
608
+ pattern,
609
+ count: [
610
+ count
611
+ ],
612
+ digits
613
+ };
558
614
  }
615
+ __name(rangeToPattern, "rangeToPattern");
559
616
  function splitToPatterns(min, max, tok, options) {
560
617
  let ranges = splitToRanges(min, max);
561
618
  let tokens = [];
@@ -584,6 +641,7 @@ var require_to_regex_range = __commonJS({
584
641
  }
585
642
  return tokens;
586
643
  }
644
+ __name(splitToPatterns, "splitToPatterns");
587
645
  function filterPatterns(arr, comparison, prefix, intersection, options) {
588
646
  let result = [];
589
647
  for (let ele of arr) {
@@ -597,23 +655,32 @@ var require_to_regex_range = __commonJS({
597
655
  }
598
656
  return result;
599
657
  }
658
+ __name(filterPatterns, "filterPatterns");
600
659
  function zip(a, b) {
601
660
  let arr = [];
602
- for (let i = 0; i < a.length; i++) arr.push([a[i], b[i]]);
661
+ for (let i = 0; i < a.length; i++) arr.push([
662
+ a[i],
663
+ b[i]
664
+ ]);
603
665
  return arr;
604
666
  }
667
+ __name(zip, "zip");
605
668
  function compare(a, b) {
606
669
  return a > b ? 1 : b > a ? -1 : 0;
607
670
  }
671
+ __name(compare, "compare");
608
672
  function contains(arr, key, val) {
609
673
  return arr.some((ele) => ele[key] === val);
610
674
  }
675
+ __name(contains, "contains");
611
676
  function countNines(min, len) {
612
677
  return Number(String(min).slice(0, -len) + "9".repeat(len));
613
678
  }
679
+ __name(countNines, "countNines");
614
680
  function countZeros(integer, zeros) {
615
681
  return integer - integer % Math.pow(10, zeros);
616
682
  }
683
+ __name(countZeros, "countZeros");
617
684
  function toQuantifier(digits) {
618
685
  let [start = 0, stop = ""] = digits;
619
686
  if (stop || start > 1) {
@@ -621,12 +688,15 @@ var require_to_regex_range = __commonJS({
621
688
  }
622
689
  return "";
623
690
  }
691
+ __name(toQuantifier, "toQuantifier");
624
692
  function toCharacterClass(a, b, options) {
625
693
  return `[${a}${b - a === 1 ? "" : "-"}${b}]`;
626
694
  }
695
+ __name(toCharacterClass, "toCharacterClass");
627
696
  function hasPadding(str) {
628
697
  return /^-?(0+)\d/.test(str);
629
698
  }
699
+ __name(hasPadding, "hasPadding");
630
700
  function padZeros(value, tok, options) {
631
701
  if (!tok.isPadded) {
632
702
  return value;
@@ -645,6 +715,7 @@ var require_to_regex_range = __commonJS({
645
715
  }
646
716
  }
647
717
  }
718
+ __name(padZeros, "padZeros");
648
719
  toRegexRange.cache = {};
649
720
  toRegexRange.clearCache = () => toRegexRange.cache = {};
650
721
  module.exports = toRegexRange;
@@ -657,29 +728,29 @@ var require_fill_range = __commonJS({
657
728
  "use strict";
658
729
  var util = __require("util");
659
730
  var toRegexRange = require_to_regex_range();
660
- var isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
661
- var transform = (toNumber) => {
731
+ var isObject = /* @__PURE__ */ __name((val) => val !== null && typeof val === "object" && !Array.isArray(val), "isObject");
732
+ var transform = /* @__PURE__ */ __name((toNumber) => {
662
733
  return (value) => toNumber === true ? Number(value) : String(value);
663
- };
664
- var isValidValue = (value) => {
734
+ }, "transform");
735
+ var isValidValue = /* @__PURE__ */ __name((value) => {
665
736
  return typeof value === "number" || typeof value === "string" && value !== "";
666
- };
667
- var isNumber = (num) => Number.isInteger(+num);
668
- var zeros = (input) => {
737
+ }, "isValidValue");
738
+ var isNumber = /* @__PURE__ */ __name((num) => Number.isInteger(+num), "isNumber");
739
+ var zeros = /* @__PURE__ */ __name((input) => {
669
740
  let value = `${input}`;
670
741
  let index = -1;
671
742
  if (value[0] === "-") value = value.slice(1);
672
743
  if (value === "0") return false;
673
744
  while (value[++index] === "0") ;
674
745
  return index > 0;
675
- };
676
- var stringify = (start, end, options) => {
746
+ }, "zeros");
747
+ var stringify = /* @__PURE__ */ __name((start, end, options) => {
677
748
  if (typeof start === "string" || typeof end === "string") {
678
749
  return true;
679
750
  }
680
751
  return options.stringify === true;
681
- };
682
- var pad = (input, maxLength, toNumber) => {
752
+ }, "stringify");
753
+ var pad = /* @__PURE__ */ __name((input, maxLength, toNumber) => {
683
754
  if (maxLength > 0) {
684
755
  let dash = input[0] === "-" ? "-" : "";
685
756
  if (dash) input = input.slice(1);
@@ -689,8 +760,8 @@ var require_fill_range = __commonJS({
689
760
  return String(input);
690
761
  }
691
762
  return input;
692
- };
693
- var toMaxLen = (input, maxLength) => {
763
+ }, "pad");
764
+ var toMaxLen = /* @__PURE__ */ __name((input, maxLength) => {
694
765
  let negative = input[0] === "-" ? "-" : "";
695
766
  if (negative) {
696
767
  input = input.slice(1);
@@ -698,8 +769,8 @@ var require_fill_range = __commonJS({
698
769
  }
699
770
  while (input.length < maxLength) input = "0" + input;
700
771
  return negative ? "-" + input : input;
701
- };
702
- var toSequence = (parts, options, maxLen) => {
772
+ }, "toMaxLen");
773
+ var toSequence = /* @__PURE__ */ __name((parts, options, maxLen) => {
703
774
  parts.negatives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
704
775
  parts.positives.sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
705
776
  let prefix = options.capture ? "" : "?:";
@@ -721,42 +792,51 @@ var require_fill_range = __commonJS({
721
792
  return `(${prefix}${result})`;
722
793
  }
723
794
  return result;
724
- };
725
- var toRange = (a, b, isNumbers, options) => {
795
+ }, "toSequence");
796
+ var toRange = /* @__PURE__ */ __name((a, b, isNumbers, options) => {
726
797
  if (isNumbers) {
727
- return toRegexRange(a, b, { wrap: false, ...options });
798
+ return toRegexRange(a, b, {
799
+ wrap: false,
800
+ ...options
801
+ });
728
802
  }
729
803
  let start = String.fromCharCode(a);
730
804
  if (a === b) return start;
731
805
  let stop = String.fromCharCode(b);
732
806
  return `[${start}-${stop}]`;
733
- };
734
- var toRegex = (start, end, options) => {
807
+ }, "toRange");
808
+ var toRegex = /* @__PURE__ */ __name((start, end, options) => {
735
809
  if (Array.isArray(start)) {
736
810
  let wrap = options.wrap === true;
737
811
  let prefix = options.capture ? "" : "?:";
738
812
  return wrap ? `(${prefix}${start.join("|")})` : start.join("|");
739
813
  }
740
814
  return toRegexRange(start, end, options);
741
- };
742
- var rangeError = (...args) => {
815
+ }, "toRegex");
816
+ var rangeError = /* @__PURE__ */ __name((...args) => {
743
817
  return new RangeError("Invalid range arguments: " + util.inspect(...args));
744
- };
745
- var invalidRange = (start, end, options) => {
746
- if (options.strictRanges === true) throw rangeError([start, end]);
818
+ }, "rangeError");
819
+ var invalidRange = /* @__PURE__ */ __name((start, end, options) => {
820
+ if (options.strictRanges === true) throw rangeError([
821
+ start,
822
+ end
823
+ ]);
747
824
  return [];
748
- };
749
- var invalidStep = (step, options) => {
825
+ }, "invalidRange");
826
+ var invalidStep = /* @__PURE__ */ __name((step, options) => {
750
827
  if (options.strictRanges === true) {
751
828
  throw new TypeError(`Expected step "${step}" to be a number`);
752
829
  }
753
830
  return [];
754
- };
755
- var fillNumbers = (start, end, step = 1, options = {}) => {
831
+ }, "invalidStep");
832
+ var fillNumbers = /* @__PURE__ */ __name((start, end, step = 1, options = {}) => {
756
833
  let a = Number(start);
757
834
  let b = Number(end);
758
835
  if (!Number.isInteger(a) || !Number.isInteger(b)) {
759
- if (options.strictRanges === true) throw rangeError([start, end]);
836
+ if (options.strictRanges === true) throw rangeError([
837
+ start,
838
+ end
839
+ ]);
760
840
  return [];
761
841
  }
762
842
  if (a === 0) a = 0;
@@ -773,8 +853,11 @@ var require_fill_range = __commonJS({
773
853
  if (options.toRegex && step === 1) {
774
854
  return toRange(toMaxLen(start, maxLen), toMaxLen(end, maxLen), true, options);
775
855
  }
776
- let parts = { negatives: [], positives: [] };
777
- let push = (num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num));
856
+ let parts = {
857
+ negatives: [],
858
+ positives: []
859
+ };
860
+ let push = /* @__PURE__ */ __name((num) => parts[num < 0 ? "negatives" : "positives"].push(Math.abs(num)), "push");
778
861
  let range = [];
779
862
  let index = 0;
780
863
  while (descending ? a >= b : a <= b) {
@@ -787,11 +870,14 @@ var require_fill_range = __commonJS({
787
870
  index++;
788
871
  }
789
872
  if (options.toRegex === true) {
790
- return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, { wrap: false, ...options });
873
+ return step > 1 ? toSequence(parts, options, maxLen) : toRegex(range, null, {
874
+ wrap: false,
875
+ ...options
876
+ });
791
877
  }
792
878
  return range;
793
- };
794
- var fillLetters = (start, end, step = 1, options = {}) => {
879
+ }, "fillNumbers");
880
+ var fillLetters = /* @__PURE__ */ __name((start, end, step = 1, options = {}) => {
795
881
  if (!isNumber(start) && start.length > 1 || !isNumber(end) && end.length > 1) {
796
882
  return invalidRange(start, end, options);
797
883
  }
@@ -812,24 +898,33 @@ var require_fill_range = __commonJS({
812
898
  index++;
813
899
  }
814
900
  if (options.toRegex === true) {
815
- return toRegex(range, null, { wrap: false, options });
901
+ return toRegex(range, null, {
902
+ wrap: false,
903
+ options
904
+ });
816
905
  }
817
906
  return range;
818
- };
819
- var fill = (start, end, step, options = {}) => {
907
+ }, "fillLetters");
908
+ var fill = /* @__PURE__ */ __name((start, end, step, options = {}) => {
820
909
  if (end == null && isValidValue(start)) {
821
- return [start];
910
+ return [
911
+ start
912
+ ];
822
913
  }
823
914
  if (!isValidValue(start) || !isValidValue(end)) {
824
915
  return invalidRange(start, end, options);
825
916
  }
826
917
  if (typeof step === "function") {
827
- return fill(start, end, 1, { transform: step });
918
+ return fill(start, end, 1, {
919
+ transform: step
920
+ });
828
921
  }
829
922
  if (isObject(step)) {
830
923
  return fill(start, end, 0, step);
831
924
  }
832
- let opts = { ...options };
925
+ let opts = {
926
+ ...options
927
+ };
833
928
  if (opts.capture === true) opts.wrap = true;
834
929
  step = step || opts.step || 1;
835
930
  if (!isNumber(step)) {
@@ -840,7 +935,7 @@ var require_fill_range = __commonJS({
840
935
  return fillNumbers(start, end, step, opts);
841
936
  }
842
937
  return fillLetters(start, end, Math.max(Math.abs(step), 1), opts);
843
- };
938
+ }, "fill");
844
939
  module.exports = fill;
845
940
  }
846
941
  });
@@ -851,8 +946,8 @@ var require_compile = __commonJS({
851
946
  "use strict";
852
947
  var fill = require_fill_range();
853
948
  var utils = require_utils();
854
- var compile = (ast, options = {}) => {
855
- const walk = (node, parent = {}) => {
949
+ var compile = /* @__PURE__ */ __name((ast, options = {}) => {
950
+ const walk = /* @__PURE__ */ __name((node, parent = {}) => {
856
951
  const invalidBlock = utils.isInvalidBrace(parent);
857
952
  const invalidNode = node.invalid === true && options.escapeInvalid === true;
858
953
  const invalid = invalidBlock === true || invalidNode === true;
@@ -879,7 +974,12 @@ var require_compile = __commonJS({
879
974
  }
880
975
  if (node.nodes && node.ranges > 0) {
881
976
  const args = utils.reduce(node.nodes);
882
- const range = fill(...args, { ...options, wrap: false, toRegex: true, strictZeros: true });
977
+ const range = fill(...args, {
978
+ ...options,
979
+ wrap: false,
980
+ toRegex: true,
981
+ strictZeros: true
982
+ });
883
983
  if (range.length !== 0) {
884
984
  return args.length > 1 && range.length > 1 ? `(${range})` : range;
885
985
  }
@@ -890,9 +990,9 @@ var require_compile = __commonJS({
890
990
  }
891
991
  }
892
992
  return output;
893
- };
993
+ }, "walk");
894
994
  return walk(ast);
895
- };
995
+ }, "compile");
896
996
  module.exports = compile;
897
997
  }
898
998
  });
@@ -904,7 +1004,7 @@ var require_expand = __commonJS({
904
1004
  var fill = require_fill_range();
905
1005
  var stringify = require_stringify();
906
1006
  var utils = require_utils();
907
- var append = (queue = "", stash = "", enclose = false) => {
1007
+ var append = /* @__PURE__ */ __name((queue = "", stash = "", enclose = false) => {
908
1008
  const result = [];
909
1009
  queue = [].concat(queue);
910
1010
  stash = [].concat(stash);
@@ -925,10 +1025,10 @@ var require_expand = __commonJS({
925
1025
  }
926
1026
  }
927
1027
  return utils.flatten(result);
928
- };
929
- var expand = (ast, options = {}) => {
1028
+ }, "append");
1029
+ var expand = /* @__PURE__ */ __name((ast, options = {}) => {
930
1030
  const rangeLimit = options.rangeLimit === void 0 ? 1e3 : options.rangeLimit;
931
- const walk = (node, parent = {}) => {
1031
+ const walk = /* @__PURE__ */ __name((node, parent = {}) => {
932
1032
  node.queue = [];
933
1033
  let p = parent;
934
1034
  let q = parent.queue;
@@ -941,7 +1041,9 @@ var require_expand = __commonJS({
941
1041
  return;
942
1042
  }
943
1043
  if (node.type === "brace" && node.invalid !== true && node.nodes.length === 2) {
944
- q.push(append(q.pop(), ["{}"]));
1044
+ q.push(append(q.pop(), [
1045
+ "{}"
1046
+ ]));
945
1047
  return;
946
1048
  }
947
1049
  if (node.nodes && node.ranges > 0) {
@@ -984,9 +1086,9 @@ var require_expand = __commonJS({
984
1086
  }
985
1087
  }
986
1088
  return queue;
987
- };
1089
+ }, "walk");
988
1090
  return utils.flatten(walk(ast));
989
- };
1091
+ }, "expand");
990
1092
  module.exports = expand;
991
1093
  }
992
1094
  });
@@ -1126,7 +1228,7 @@ var require_parse = __commonJS({
1126
1228
  CHAR_NO_BREAK_SPACE,
1127
1229
  CHAR_ZERO_WIDTH_NOBREAK_SPACE
1128
1230
  } = require_constants();
1129
- var parse = (input, options = {}) => {
1231
+ var parse = /* @__PURE__ */ __name((input, options = {}) => {
1130
1232
  if (typeof input !== "string") {
1131
1233
  throw new TypeError("Expected a string");
1132
1234
  }
@@ -1135,8 +1237,14 @@ var require_parse = __commonJS({
1135
1237
  if (input.length > max) {
1136
1238
  throw new SyntaxError(`Input length (${input.length}), exceeds max characters (${max})`);
1137
1239
  }
1138
- const ast = { type: "root", input, nodes: [] };
1139
- const stack = [ast];
1240
+ const ast = {
1241
+ type: "root",
1242
+ input,
1243
+ nodes: []
1244
+ };
1245
+ const stack = [
1246
+ ast
1247
+ ];
1140
1248
  let block = ast;
1141
1249
  let prev = ast;
1142
1250
  let brackets = 0;
@@ -1144,8 +1252,8 @@ var require_parse = __commonJS({
1144
1252
  let index = 0;
1145
1253
  let depth = 0;
1146
1254
  let value;
1147
- const advance = () => input[index++];
1148
- const push = (node) => {
1255
+ const advance = /* @__PURE__ */ __name(() => input[index++], "advance");
1256
+ const push = /* @__PURE__ */ __name((node) => {
1149
1257
  if (node.type === "text" && prev.type === "dot") {
1150
1258
  prev.type = "text";
1151
1259
  }
@@ -1158,8 +1266,10 @@ var require_parse = __commonJS({
1158
1266
  node.prev = prev;
1159
1267
  prev = node;
1160
1268
  return node;
1161
- };
1162
- push({ type: "bos" });
1269
+ }, "push");
1270
+ push({
1271
+ type: "bos"
1272
+ });
1163
1273
  while (index < length) {
1164
1274
  block = stack[stack.length - 1];
1165
1275
  value = advance();
@@ -1167,11 +1277,17 @@ var require_parse = __commonJS({
1167
1277
  continue;
1168
1278
  }
1169
1279
  if (value === CHAR_BACKSLASH) {
1170
- push({ type: "text", value: (options.keepEscaping ? value : "") + advance() });
1280
+ push({
1281
+ type: "text",
1282
+ value: (options.keepEscaping ? value : "") + advance()
1283
+ });
1171
1284
  continue;
1172
1285
  }
1173
1286
  if (value === CHAR_RIGHT_SQUARE_BRACKET) {
1174
- push({ type: "text", value: "\\" + value });
1287
+ push({
1288
+ type: "text",
1289
+ value: "\\" + value
1290
+ });
1175
1291
  continue;
1176
1292
  }
1177
1293
  if (value === CHAR_LEFT_SQUARE_BRACKET) {
@@ -1194,22 +1310,37 @@ var require_parse = __commonJS({
1194
1310
  }
1195
1311
  }
1196
1312
  }
1197
- push({ type: "text", value });
1313
+ push({
1314
+ type: "text",
1315
+ value
1316
+ });
1198
1317
  continue;
1199
1318
  }
1200
1319
  if (value === CHAR_LEFT_PARENTHESES) {
1201
- block = push({ type: "paren", nodes: [] });
1320
+ block = push({
1321
+ type: "paren",
1322
+ nodes: []
1323
+ });
1202
1324
  stack.push(block);
1203
- push({ type: "text", value });
1325
+ push({
1326
+ type: "text",
1327
+ value
1328
+ });
1204
1329
  continue;
1205
1330
  }
1206
1331
  if (value === CHAR_RIGHT_PARENTHESES) {
1207
1332
  if (block.type !== "paren") {
1208
- push({ type: "text", value });
1333
+ push({
1334
+ type: "text",
1335
+ value
1336
+ });
1209
1337
  continue;
1210
1338
  }
1211
1339
  block = stack.pop();
1212
- push({ type: "text", value });
1340
+ push({
1341
+ type: "text",
1342
+ value
1343
+ });
1213
1344
  block = stack[stack.length - 1];
1214
1345
  continue;
1215
1346
  }
@@ -1230,7 +1361,10 @@ var require_parse = __commonJS({
1230
1361
  }
1231
1362
  value += next;
1232
1363
  }
1233
- push({ type: "text", value });
1364
+ push({
1365
+ type: "text",
1366
+ value
1367
+ });
1234
1368
  continue;
1235
1369
  }
1236
1370
  if (value === CHAR_LEFT_CURLY_BRACE) {
@@ -1248,18 +1382,27 @@ var require_parse = __commonJS({
1248
1382
  };
1249
1383
  block = push(brace);
1250
1384
  stack.push(block);
1251
- push({ type: "open", value });
1385
+ push({
1386
+ type: "open",
1387
+ value
1388
+ });
1252
1389
  continue;
1253
1390
  }
1254
1391
  if (value === CHAR_RIGHT_CURLY_BRACE) {
1255
1392
  if (block.type !== "brace") {
1256
- push({ type: "text", value });
1393
+ push({
1394
+ type: "text",
1395
+ value
1396
+ });
1257
1397
  continue;
1258
1398
  }
1259
1399
  const type = "close";
1260
1400
  block = stack.pop();
1261
1401
  block.close = true;
1262
- push({ type, value });
1402
+ push({
1403
+ type,
1404
+ value
1405
+ });
1263
1406
  depth--;
1264
1407
  block = stack[stack.length - 1];
1265
1408
  continue;
@@ -1268,16 +1411,28 @@ var require_parse = __commonJS({
1268
1411
  if (block.ranges > 0) {
1269
1412
  block.ranges = 0;
1270
1413
  const open = block.nodes.shift();
1271
- block.nodes = [open, { type: "text", value: stringify(block) }];
1414
+ block.nodes = [
1415
+ open,
1416
+ {
1417
+ type: "text",
1418
+ value: stringify(block)
1419
+ }
1420
+ ];
1272
1421
  }
1273
- push({ type: "comma", value });
1422
+ push({
1423
+ type: "comma",
1424
+ value
1425
+ });
1274
1426
  block.commas++;
1275
1427
  continue;
1276
1428
  }
1277
1429
  if (value === CHAR_DOT && depth > 0 && block.commas === 0) {
1278
1430
  const siblings = block.nodes;
1279
1431
  if (depth === 0 || siblings.length === 0) {
1280
- push({ type: "text", value });
1432
+ push({
1433
+ type: "text",
1434
+ value
1435
+ });
1281
1436
  continue;
1282
1437
  }
1283
1438
  if (prev.type === "dot") {
@@ -1302,10 +1457,16 @@ var require_parse = __commonJS({
1302
1457
  block.ranges--;
1303
1458
  continue;
1304
1459
  }
1305
- push({ type: "dot", value });
1460
+ push({
1461
+ type: "dot",
1462
+ value
1463
+ });
1306
1464
  continue;
1307
1465
  }
1308
- push({ type: "text", value });
1466
+ push({
1467
+ type: "text",
1468
+ value
1469
+ });
1309
1470
  }
1310
1471
  do {
1311
1472
  block = stack.pop();
@@ -1323,9 +1484,11 @@ var require_parse = __commonJS({
1323
1484
  parent.nodes.splice(index2, 1, ...block.nodes);
1324
1485
  }
1325
1486
  } while (stack.length > 0);
1326
- push({ type: "eos" });
1487
+ push({
1488
+ type: "eos"
1489
+ });
1327
1490
  return ast;
1328
- };
1491
+ }, "parse");
1329
1492
  module.exports = parse;
1330
1493
  }
1331
1494
  });
@@ -1338,7 +1501,7 @@ var require_braces = __commonJS({
1338
1501
  var compile = require_compile();
1339
1502
  var expand = require_expand();
1340
1503
  var parse = require_parse();
1341
- var braces = (input, options = {}) => {
1504
+ var braces = /* @__PURE__ */ __name((input, options = {}) => {
1342
1505
  let output = [];
1343
1506
  if (Array.isArray(input)) {
1344
1507
  for (const pattern of input) {
@@ -1353,10 +1516,12 @@ var require_braces = __commonJS({
1353
1516
  output = [].concat(braces.create(input, options));
1354
1517
  }
1355
1518
  if (options && options.expand === true && options.nodupes === true) {
1356
- output = [...new Set(output)];
1519
+ output = [
1520
+ ...new Set(output)
1521
+ ];
1357
1522
  }
1358
1523
  return output;
1359
- };
1524
+ }, "braces");
1360
1525
  braces.parse = (input, options = {}) => parse(input, options);
1361
1526
  braces.stringify = (input, options = {}) => {
1362
1527
  if (typeof input === "string") {
@@ -1379,13 +1544,17 @@ var require_braces = __commonJS({
1379
1544
  result = result.filter(Boolean);
1380
1545
  }
1381
1546
  if (options.nodupes === true) {
1382
- result = [...new Set(result)];
1547
+ result = [
1548
+ ...new Set(result)
1549
+ ];
1383
1550
  }
1384
1551
  return result;
1385
1552
  };
1386
1553
  braces.create = (input, options = {}) => {
1387
1554
  if (input === "" || input.length < 3) {
1388
- return [input];
1555
+ return [
1556
+ input
1557
+ ];
1389
1558
  }
1390
1559
  return options.expand !== true ? braces.compile(input, options) : braces.expand(input, options);
1391
1560
  };
@@ -1573,20 +1742,40 @@ var require_constants2 = __commonJS({
1573
1742
  /* \uFEFF */
1574
1743
  SEP: path2.sep,
1575
1744
  /**
1576
- * Create EXTGLOB_CHARS
1577
- */
1745
+ * Create EXTGLOB_CHARS
1746
+ */
1578
1747
  extglobChars(chars) {
1579
1748
  return {
1580
- "!": { type: "negate", open: "(?:(?!(?:", close: `))${chars.STAR})` },
1581
- "?": { type: "qmark", open: "(?:", close: ")?" },
1582
- "+": { type: "plus", open: "(?:", close: ")+" },
1583
- "*": { type: "star", open: "(?:", close: ")*" },
1584
- "@": { type: "at", open: "(?:", close: ")" }
1749
+ "!": {
1750
+ type: "negate",
1751
+ open: "(?:(?!(?:",
1752
+ close: `))${chars.STAR})`
1753
+ },
1754
+ "?": {
1755
+ type: "qmark",
1756
+ open: "(?:",
1757
+ close: ")?"
1758
+ },
1759
+ "+": {
1760
+ type: "plus",
1761
+ open: "(?:",
1762
+ close: ")+"
1763
+ },
1764
+ "*": {
1765
+ type: "star",
1766
+ open: "(?:",
1767
+ close: ")*"
1768
+ },
1769
+ "@": {
1770
+ type: "at",
1771
+ open: "(?:",
1772
+ close: ")"
1773
+ }
1585
1774
  };
1586
1775
  },
1587
1776
  /**
1588
- * Create GLOB_CHARS
1589
- */
1777
+ * Create GLOB_CHARS
1778
+ */
1590
1779
  globChars(win32) {
1591
1780
  return win32 === true ? WINDOWS_CHARS : POSIX_CHARS;
1592
1781
  }
@@ -1600,12 +1789,7 @@ var require_utils2 = __commonJS({
1600
1789
  "use strict";
1601
1790
  var path2 = __require("path");
1602
1791
  var win32 = process.platform === "win32";
1603
- var {
1604
- REGEX_BACKSLASH,
1605
- REGEX_REMOVE_BACKSLASH,
1606
- REGEX_SPECIAL_CHARS,
1607
- REGEX_SPECIAL_CHARS_GLOBAL
1608
- } = require_constants2();
1792
+ var { REGEX_BACKSLASH, REGEX_REMOVE_BACKSLASH, REGEX_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_GLOBAL } = require_constants2();
1609
1793
  exports.isObject = (val) => val !== null && typeof val === "object" && !Array.isArray(val);
1610
1794
  exports.hasRegexChars = (str) => REGEX_SPECIAL_CHARS.test(str);
1611
1795
  exports.isRegexChar = (str) => str.length === 1 && exports.hasRegexChars(str);
@@ -1692,15 +1876,15 @@ var require_scan = __commonJS({
1692
1876
  CHAR_RIGHT_SQUARE_BRACKET
1693
1877
  /* ] */
1694
1878
  } = require_constants2();
1695
- var isPathSeparator = (code) => {
1879
+ var isPathSeparator = /* @__PURE__ */ __name((code) => {
1696
1880
  return code === CHAR_FORWARD_SLASH || code === CHAR_BACKWARD_SLASH;
1697
- };
1698
- var depth = (token) => {
1881
+ }, "isPathSeparator");
1882
+ var depth = /* @__PURE__ */ __name((token) => {
1699
1883
  if (token.isPrefix !== true) {
1700
1884
  token.depth = token.isGlobstar ? Infinity : 1;
1701
1885
  }
1702
- };
1703
- var scan = (input, options) => {
1886
+ }, "depth");
1887
+ var scan = /* @__PURE__ */ __name((input, options) => {
1704
1888
  const opts = options || {};
1705
1889
  const length = input.length - 1;
1706
1890
  const scanToEnd = opts.parts === true || opts.scanToEnd === true;
@@ -1724,13 +1908,17 @@ var require_scan = __commonJS({
1724
1908
  let braces = 0;
1725
1909
  let prev;
1726
1910
  let code;
1727
- let token = { value: "", depth: 0, isGlob: false };
1728
- const eos = () => index >= length;
1729
- const peek = () => str.charCodeAt(index + 1);
1730
- const advance = () => {
1911
+ let token = {
1912
+ value: "",
1913
+ depth: 0,
1914
+ isGlob: false
1915
+ };
1916
+ const eos = /* @__PURE__ */ __name(() => index >= length, "eos");
1917
+ const peek = /* @__PURE__ */ __name(() => str.charCodeAt(index + 1), "peek");
1918
+ const advance = /* @__PURE__ */ __name(() => {
1731
1919
  prev = code;
1732
1920
  return str.charCodeAt(++index);
1733
- };
1921
+ }, "advance");
1734
1922
  while (index < length) {
1735
1923
  code = advance();
1736
1924
  let next;
@@ -1790,7 +1978,11 @@ var require_scan = __commonJS({
1790
1978
  if (code === CHAR_FORWARD_SLASH) {
1791
1979
  slashes.push(index);
1792
1980
  tokens.push(token);
1793
- token = { value: "", depth: 0, isGlob: false };
1981
+ token = {
1982
+ value: "",
1983
+ depth: 0,
1984
+ isGlob: false
1985
+ };
1794
1986
  if (finished === true) continue;
1795
1987
  if (prev === CHAR_DOT && index === start + 1) {
1796
1988
  start += 2;
@@ -1980,7 +2172,7 @@ var require_scan = __commonJS({
1980
2172
  state.parts = parts;
1981
2173
  }
1982
2174
  return state;
1983
- };
2175
+ }, "scan");
1984
2176
  module.exports = scan;
1985
2177
  }
1986
2178
  });
@@ -1991,14 +2183,8 @@ var require_parse2 = __commonJS({
1991
2183
  "use strict";
1992
2184
  var constants = require_constants2();
1993
2185
  var utils = require_utils2();
1994
- var {
1995
- MAX_LENGTH,
1996
- POSIX_REGEX_SOURCE,
1997
- REGEX_NON_SPECIAL_CHARS,
1998
- REGEX_SPECIAL_CHARS_BACKREF,
1999
- REPLACEMENTS
2000
- } = constants;
2001
- var expandRange = (args, options) => {
2186
+ var { MAX_LENGTH, POSIX_REGEX_SOURCE, REGEX_NON_SPECIAL_CHARS, REGEX_SPECIAL_CHARS_BACKREF, REPLACEMENTS } = constants;
2187
+ var expandRange = /* @__PURE__ */ __name((args, options) => {
2002
2188
  if (typeof options.expandRange === "function") {
2003
2189
  return options.expandRange(...args, options);
2004
2190
  }
@@ -2010,11 +2196,11 @@ var require_parse2 = __commonJS({
2010
2196
  return args.map((v) => utils.escapeRegex(v)).join("..");
2011
2197
  }
2012
2198
  return value;
2013
- };
2014
- var syntaxError = (type, char) => {
2199
+ }, "expandRange");
2200
+ var syntaxError = /* @__PURE__ */ __name((type, char) => {
2015
2201
  return `Missing ${type}: "${char}" - use "\\\\${char}" to match literal characters`;
2016
- };
2017
- var splitTopLevel = (input) => {
2202
+ }, "syntaxError");
2203
+ var splitTopLevel = /* @__PURE__ */ __name((input) => {
2018
2204
  const parts = [];
2019
2205
  let bracket = 0;
2020
2206
  let paren = 0;
@@ -2058,8 +2244,8 @@ var require_parse2 = __commonJS({
2058
2244
  }
2059
2245
  parts.push(value);
2060
2246
  return parts;
2061
- };
2062
- var isPlainBranch = (branch) => {
2247
+ }, "splitTopLevel");
2248
+ var isPlainBranch = /* @__PURE__ */ __name((branch) => {
2063
2249
  let escaped = false;
2064
2250
  for (const ch of branch) {
2065
2251
  if (escaped === true) {
@@ -2075,8 +2261,8 @@ var require_parse2 = __commonJS({
2075
2261
  }
2076
2262
  }
2077
2263
  return true;
2078
- };
2079
- var normalizeSimpleBranch = (branch) => {
2264
+ }, "isPlainBranch");
2265
+ var normalizeSimpleBranch = /* @__PURE__ */ __name((branch) => {
2080
2266
  let value = branch.trim();
2081
2267
  let changed = true;
2082
2268
  while (changed === true) {
@@ -2090,8 +2276,8 @@ var require_parse2 = __commonJS({
2090
2276
  return;
2091
2277
  }
2092
2278
  return value.replace(/\\(.)/g, "$1");
2093
- };
2094
- var hasRepeatedCharPrefixOverlap = (branches) => {
2279
+ }, "normalizeSimpleBranch");
2280
+ var hasRepeatedCharPrefixOverlap = /* @__PURE__ */ __name((branches) => {
2095
2281
  const values = branches.map(normalizeSimpleBranch).filter(Boolean);
2096
2282
  for (let i = 0; i < values.length; i++) {
2097
2283
  for (let j = i + 1; j < values.length; j++) {
@@ -2107,8 +2293,8 @@ var require_parse2 = __commonJS({
2107
2293
  }
2108
2294
  }
2109
2295
  return false;
2110
- };
2111
- var parseRepeatedExtglob = (pattern, requireEnd = true) => {
2296
+ }, "hasRepeatedCharPrefixOverlap");
2297
+ var parseRepeatedExtglob = /* @__PURE__ */ __name((pattern, requireEnd = true) => {
2112
2298
  if (pattern[0] !== "+" && pattern[0] !== "*" || pattern[1] !== "(") {
2113
2299
  return;
2114
2300
  }
@@ -2162,8 +2348,8 @@ var require_parse2 = __commonJS({
2162
2348
  }
2163
2349
  }
2164
2350
  }
2165
- };
2166
- var getStarExtglobSequenceOutput = (pattern) => {
2351
+ }, "parseRepeatedExtglob");
2352
+ var getStarExtglobSequenceOutput = /* @__PURE__ */ __name((pattern) => {
2167
2353
  let index = 0;
2168
2354
  const chars = [];
2169
2355
  while (index < pattern.length) {
@@ -2187,8 +2373,8 @@ var require_parse2 = __commonJS({
2187
2373
  }
2188
2374
  const source = chars.length === 1 ? utils.escapeRegex(chars[0]) : `[${chars.map((ch) => utils.escapeRegex(ch)).join("")}]`;
2189
2375
  return `${source}*`;
2190
- };
2191
- var repeatedExtglobRecursion = (pattern) => {
2376
+ }, "getStarExtglobSequenceOutput");
2377
+ var repeatedExtglobRecursion = /* @__PURE__ */ __name((pattern) => {
2192
2378
  let depth = 0;
2193
2379
  let value = pattern.trim();
2194
2380
  let match = parseRepeatedExtglob(value);
@@ -2198,63 +2384,69 @@ var require_parse2 = __commonJS({
2198
2384
  match = parseRepeatedExtglob(value);
2199
2385
  }
2200
2386
  return depth;
2201
- };
2202
- var analyzeRepeatedExtglob = (body, options) => {
2387
+ }, "repeatedExtglobRecursion");
2388
+ var analyzeRepeatedExtglob = /* @__PURE__ */ __name((body, options) => {
2203
2389
  if (options.maxExtglobRecursion === false) {
2204
- return { risky: false };
2390
+ return {
2391
+ risky: false
2392
+ };
2205
2393
  }
2206
2394
  const max = typeof options.maxExtglobRecursion === "number" ? options.maxExtglobRecursion : constants.DEFAULT_MAX_EXTGLOB_RECURSION;
2207
2395
  const branches = splitTopLevel(body).map((branch) => branch.trim());
2208
2396
  if (branches.length > 1) {
2209
2397
  if (branches.some((branch) => branch === "") || branches.some((branch) => /^[*?]+$/.test(branch)) || hasRepeatedCharPrefixOverlap(branches)) {
2210
- return { risky: true };
2398
+ return {
2399
+ risky: true
2400
+ };
2211
2401
  }
2212
2402
  }
2213
2403
  for (const branch of branches) {
2214
2404
  const safeOutput = getStarExtglobSequenceOutput(branch);
2215
2405
  if (safeOutput) {
2216
- return { risky: true, safeOutput };
2406
+ return {
2407
+ risky: true,
2408
+ safeOutput
2409
+ };
2217
2410
  }
2218
2411
  if (repeatedExtglobRecursion(branch) > max) {
2219
- return { risky: true };
2412
+ return {
2413
+ risky: true
2414
+ };
2220
2415
  }
2221
2416
  }
2222
- return { risky: false };
2223
- };
2224
- var parse = (input, options) => {
2417
+ return {
2418
+ risky: false
2419
+ };
2420
+ }, "analyzeRepeatedExtglob");
2421
+ var parse = /* @__PURE__ */ __name((input, options) => {
2225
2422
  if (typeof input !== "string") {
2226
2423
  throw new TypeError("Expected a string");
2227
2424
  }
2228
2425
  input = REPLACEMENTS[input] || input;
2229
- const opts = { ...options };
2426
+ const opts = {
2427
+ ...options
2428
+ };
2230
2429
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
2231
2430
  let len = input.length;
2232
2431
  if (len > max) {
2233
2432
  throw new SyntaxError(`Input length: ${len}, exceeds maximum allowed length: ${max}`);
2234
2433
  }
2235
- const bos = { type: "bos", value: "", output: opts.prepend || "" };
2236
- const tokens = [bos];
2434
+ const bos = {
2435
+ type: "bos",
2436
+ value: "",
2437
+ output: opts.prepend || ""
2438
+ };
2439
+ const tokens = [
2440
+ bos
2441
+ ];
2237
2442
  const capture = opts.capture ? "" : "?:";
2238
2443
  const win32 = utils.isWindows(options);
2239
2444
  const PLATFORM_CHARS = constants.globChars(win32);
2240
2445
  const EXTGLOB_CHARS = constants.extglobChars(PLATFORM_CHARS);
2241
- const {
2242
- DOT_LITERAL,
2243
- PLUS_LITERAL,
2244
- SLASH_LITERAL,
2245
- ONE_CHAR,
2246
- DOTS_SLASH,
2247
- NO_DOT,
2248
- NO_DOT_SLASH,
2249
- NO_DOTS_SLASH,
2250
- QMARK,
2251
- QMARK_NO_DOT,
2252
- STAR,
2253
- START_ANCHOR
2254
- } = PLATFORM_CHARS;
2255
- const globstar = (opts2) => {
2446
+ const { DOT_LITERAL, PLUS_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOT_SLASH, NO_DOTS_SLASH, QMARK, QMARK_NO_DOT, STAR, START_ANCHOR } = PLATFORM_CHARS;
2447
+ const globstar = /* @__PURE__ */ __name((opts2) => {
2256
2448
  return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
2257
- };
2449
+ }, "globstar");
2258
2450
  const nodot = opts.dot ? "" : NO_DOT;
2259
2451
  const qmarkNoDot = opts.dot ? QMARK : QMARK_NO_DOT;
2260
2452
  let star = opts.bash === true ? globstar(opts) : STAR;
@@ -2288,19 +2480,19 @@ var require_parse2 = __commonJS({
2288
2480
  const stack = [];
2289
2481
  let prev = bos;
2290
2482
  let value;
2291
- const eos = () => state.index === len - 1;
2483
+ const eos = /* @__PURE__ */ __name(() => state.index === len - 1, "eos");
2292
2484
  const peek = state.peek = (n = 1) => input[state.index + n];
2293
2485
  const advance = state.advance = () => input[++state.index] || "";
2294
- const remaining = () => input.slice(state.index + 1);
2295
- const consume = (value2 = "", num = 0) => {
2486
+ const remaining = /* @__PURE__ */ __name(() => input.slice(state.index + 1), "remaining");
2487
+ const consume = /* @__PURE__ */ __name((value2 = "", num = 0) => {
2296
2488
  state.consumed += value2;
2297
2489
  state.index += num;
2298
- };
2299
- const append = (token) => {
2490
+ }, "consume");
2491
+ const append = /* @__PURE__ */ __name((token) => {
2300
2492
  state.output += token.output != null ? token.output : token.value;
2301
2493
  consume(token.value);
2302
- };
2303
- const negate = () => {
2494
+ }, "append");
2495
+ const negate = /* @__PURE__ */ __name(() => {
2304
2496
  let count = 1;
2305
2497
  while (peek() === "!" && (peek(2) !== "(" || peek(3) === "?")) {
2306
2498
  advance();
@@ -2313,16 +2505,16 @@ var require_parse2 = __commonJS({
2313
2505
  state.negated = true;
2314
2506
  state.start++;
2315
2507
  return true;
2316
- };
2317
- const increment = (type) => {
2508
+ }, "negate");
2509
+ const increment = /* @__PURE__ */ __name((type) => {
2318
2510
  state[type]++;
2319
2511
  stack.push(type);
2320
- };
2321
- const decrement = (type) => {
2512
+ }, "increment");
2513
+ const decrement = /* @__PURE__ */ __name((type) => {
2322
2514
  state[type]--;
2323
2515
  stack.pop();
2324
- };
2325
- const push = (tok) => {
2516
+ }, "decrement");
2517
+ const push = /* @__PURE__ */ __name((tok) => {
2326
2518
  if (prev.type === "globstar") {
2327
2519
  const isBrace = state.braces > 0 && (tok.type === "comma" || tok.type === "brace");
2328
2520
  const isExtglob = tok.extglob === true || extglobs.length && (tok.type === "pipe" || tok.type === "paren");
@@ -2346,9 +2538,13 @@ var require_parse2 = __commonJS({
2346
2538
  tok.prev = prev;
2347
2539
  tokens.push(tok);
2348
2540
  prev = tok;
2349
- };
2350
- const extglobOpen = (type, value2) => {
2351
- const token = { ...EXTGLOB_CHARS[value2], conditions: 1, inner: "" };
2541
+ }, "push");
2542
+ const extglobOpen = /* @__PURE__ */ __name((type, value2) => {
2543
+ const token = {
2544
+ ...EXTGLOB_CHARS[value2],
2545
+ conditions: 1,
2546
+ inner: ""
2547
+ };
2352
2548
  token.prev = prev;
2353
2549
  token.parens = state.parens;
2354
2550
  token.output = state.output;
@@ -2356,11 +2552,20 @@ var require_parse2 = __commonJS({
2356
2552
  token.tokensIndex = tokens.length;
2357
2553
  const output = (opts.capture ? "(" : "") + token.open;
2358
2554
  increment("parens");
2359
- push({ type, value: value2, output: state.output ? "" : ONE_CHAR });
2360
- push({ type: "paren", extglob: true, value: advance(), output });
2555
+ push({
2556
+ type,
2557
+ value: value2,
2558
+ output: state.output ? "" : ONE_CHAR
2559
+ });
2560
+ push({
2561
+ type: "paren",
2562
+ extglob: true,
2563
+ value: advance(),
2564
+ output
2565
+ });
2361
2566
  extglobs.push(token);
2362
- };
2363
- const extglobClose = (token) => {
2567
+ }, "extglobOpen");
2568
+ const extglobClose = /* @__PURE__ */ __name((token) => {
2364
2569
  const literal = input.slice(token.startIndex, state.index + 1);
2365
2570
  const body = input.slice(token.startIndex + 2, state.index);
2366
2571
  const analysis = analyzeRepeatedExtglob(body, opts);
@@ -2377,7 +2582,12 @@ var require_parse2 = __commonJS({
2377
2582
  }
2378
2583
  state.output = token.output + open.output;
2379
2584
  state.backtrack = true;
2380
- push({ type: "paren", extglob: true, value, output: "" });
2585
+ push({
2586
+ type: "paren",
2587
+ extglob: true,
2588
+ value,
2589
+ output: ""
2590
+ });
2381
2591
  decrement("parens");
2382
2592
  return;
2383
2593
  }
@@ -2392,16 +2602,24 @@ var require_parse2 = __commonJS({
2392
2602
  output = token.close = `)$))${extglobStar}`;
2393
2603
  }
2394
2604
  if (token.inner.includes("*") && (rest = remaining()) && /^\.[^\\/.]+$/.test(rest)) {
2395
- const expression = parse(rest, { ...options, fastpaths: false }).output;
2605
+ const expression = parse(rest, {
2606
+ ...options,
2607
+ fastpaths: false
2608
+ }).output;
2396
2609
  output = token.close = `)${expression})${extglobStar})`;
2397
2610
  }
2398
2611
  if (token.prev.type === "bos") {
2399
2612
  state.negatedExtglob = true;
2400
2613
  }
2401
2614
  }
2402
- push({ type: "paren", extglob: true, value, output });
2615
+ push({
2616
+ type: "paren",
2617
+ extglob: true,
2618
+ value,
2619
+ output
2620
+ });
2403
2621
  decrement("parens");
2404
- };
2622
+ }, "extglobClose");
2405
2623
  if (opts.fastpaths !== false && !/(^[*!]|[/()[\]{}"])/.test(input)) {
2406
2624
  let backslashes = false;
2407
2625
  let output = input.replace(REGEX_SPECIAL_CHARS_BACKREF, (m, esc, chars, first, rest, index) => {
@@ -2460,7 +2678,10 @@ var require_parse2 = __commonJS({
2460
2678
  }
2461
2679
  if (!next) {
2462
2680
  value += "\\";
2463
- push({ type: "text", value });
2681
+ push({
2682
+ type: "text",
2683
+ value
2684
+ });
2464
2685
  continue;
2465
2686
  }
2466
2687
  const match = /^\\+/.exec(remaining());
@@ -2478,7 +2699,10 @@ var require_parse2 = __commonJS({
2478
2699
  value += advance();
2479
2700
  }
2480
2701
  if (state.brackets === 0) {
2481
- push({ type: "text", value });
2702
+ push({
2703
+ type: "text",
2704
+ value
2705
+ });
2482
2706
  continue;
2483
2707
  }
2484
2708
  }
@@ -2514,25 +2738,35 @@ var require_parse2 = __commonJS({
2514
2738
  value = "^";
2515
2739
  }
2516
2740
  prev.value += value;
2517
- append({ value });
2741
+ append({
2742
+ value
2743
+ });
2518
2744
  continue;
2519
2745
  }
2520
2746
  if (state.quotes === 1 && value !== '"') {
2521
2747
  value = utils.escapeRegex(value);
2522
2748
  prev.value += value;
2523
- append({ value });
2749
+ append({
2750
+ value
2751
+ });
2524
2752
  continue;
2525
2753
  }
2526
2754
  if (value === '"') {
2527
2755
  state.quotes = state.quotes === 1 ? 0 : 1;
2528
2756
  if (opts.keepQuotes === true) {
2529
- push({ type: "text", value });
2757
+ push({
2758
+ type: "text",
2759
+ value
2760
+ });
2530
2761
  }
2531
2762
  continue;
2532
2763
  }
2533
2764
  if (value === "(") {
2534
2765
  increment("parens");
2535
- push({ type: "paren", value });
2766
+ push({
2767
+ type: "paren",
2768
+ value
2769
+ });
2536
2770
  continue;
2537
2771
  }
2538
2772
  if (value === ")") {
@@ -2544,7 +2778,11 @@ var require_parse2 = __commonJS({
2544
2778
  extglobClose(extglobs.pop());
2545
2779
  continue;
2546
2780
  }
2547
- push({ type: "paren", value, output: state.parens ? ")" : "\\)" });
2781
+ push({
2782
+ type: "paren",
2783
+ value,
2784
+ output: state.parens ? ")" : "\\)"
2785
+ });
2548
2786
  decrement("parens");
2549
2787
  continue;
2550
2788
  }
@@ -2557,19 +2795,30 @@ var require_parse2 = __commonJS({
2557
2795
  } else {
2558
2796
  increment("brackets");
2559
2797
  }
2560
- push({ type: "bracket", value });
2798
+ push({
2799
+ type: "bracket",
2800
+ value
2801
+ });
2561
2802
  continue;
2562
2803
  }
2563
2804
  if (value === "]") {
2564
2805
  if (opts.nobracket === true || prev && prev.type === "bracket" && prev.value.length === 1) {
2565
- push({ type: "text", value, output: `\\${value}` });
2806
+ push({
2807
+ type: "text",
2808
+ value,
2809
+ output: `\\${value}`
2810
+ });
2566
2811
  continue;
2567
2812
  }
2568
2813
  if (state.brackets === 0) {
2569
2814
  if (opts.strictBrackets === true) {
2570
2815
  throw new SyntaxError(syntaxError("opening", "["));
2571
2816
  }
2572
- push({ type: "text", value, output: `\\${value}` });
2817
+ push({
2818
+ type: "text",
2819
+ value,
2820
+ output: `\\${value}`
2821
+ });
2573
2822
  continue;
2574
2823
  }
2575
2824
  decrement("brackets");
@@ -2578,7 +2827,9 @@ var require_parse2 = __commonJS({
2578
2827
  value = `/${value}`;
2579
2828
  }
2580
2829
  prev.value += value;
2581
- append({ value });
2830
+ append({
2831
+ value
2832
+ });
2582
2833
  if (opts.literalBrackets === false || utils.hasRegexChars(prevValue)) {
2583
2834
  continue;
2584
2835
  }
@@ -2609,7 +2860,11 @@ var require_parse2 = __commonJS({
2609
2860
  if (value === "}") {
2610
2861
  const brace = braces[braces.length - 1];
2611
2862
  if (opts.nobrace === true || !brace) {
2612
- push({ type: "text", value, output: value });
2863
+ push({
2864
+ type: "text",
2865
+ value,
2866
+ output: value
2867
+ });
2613
2868
  continue;
2614
2869
  }
2615
2870
  let output = ")";
@@ -2638,7 +2893,11 @@ var require_parse2 = __commonJS({
2638
2893
  state.output += t.output || t.value;
2639
2894
  }
2640
2895
  }
2641
- push({ type: "brace", value, output });
2896
+ push({
2897
+ type: "brace",
2898
+ value,
2899
+ output
2900
+ });
2642
2901
  decrement("braces");
2643
2902
  braces.pop();
2644
2903
  continue;
@@ -2647,7 +2906,10 @@ var require_parse2 = __commonJS({
2647
2906
  if (extglobs.length > 0) {
2648
2907
  extglobs[extglobs.length - 1].conditions++;
2649
2908
  }
2650
- push({ type: "text", value });
2909
+ push({
2910
+ type: "text",
2911
+ value
2912
+ });
2651
2913
  continue;
2652
2914
  }
2653
2915
  if (value === ",") {
@@ -2657,7 +2919,11 @@ var require_parse2 = __commonJS({
2657
2919
  brace.comma = true;
2658
2920
  output = "|";
2659
2921
  }
2660
- push({ type: "comma", value, output });
2922
+ push({
2923
+ type: "comma",
2924
+ value,
2925
+ output
2926
+ });
2661
2927
  continue;
2662
2928
  }
2663
2929
  if (value === "/") {
@@ -2669,7 +2935,11 @@ var require_parse2 = __commonJS({
2669
2935
  prev = bos;
2670
2936
  continue;
2671
2937
  }
2672
- push({ type: "slash", value, output: SLASH_LITERAL });
2938
+ push({
2939
+ type: "slash",
2940
+ value,
2941
+ output: SLASH_LITERAL
2942
+ });
2673
2943
  continue;
2674
2944
  }
2675
2945
  if (value === ".") {
@@ -2683,10 +2953,18 @@ var require_parse2 = __commonJS({
2683
2953
  continue;
2684
2954
  }
2685
2955
  if (state.braces + state.parens === 0 && prev.type !== "bos" && prev.type !== "slash") {
2686
- push({ type: "text", value, output: DOT_LITERAL });
2956
+ push({
2957
+ type: "text",
2958
+ value,
2959
+ output: DOT_LITERAL
2960
+ });
2687
2961
  continue;
2688
2962
  }
2689
- push({ type: "dot", value, output: DOT_LITERAL });
2963
+ push({
2964
+ type: "dot",
2965
+ value,
2966
+ output: DOT_LITERAL
2967
+ });
2690
2968
  continue;
2691
2969
  }
2692
2970
  if (value === "?") {
@@ -2704,14 +2982,26 @@ var require_parse2 = __commonJS({
2704
2982
  if (prev.value === "(" && !/[!=<:]/.test(next) || next === "<" && !/<([!=]|\w+>)/.test(remaining())) {
2705
2983
  output = `\\${value}`;
2706
2984
  }
2707
- push({ type: "text", value, output });
2985
+ push({
2986
+ type: "text",
2987
+ value,
2988
+ output
2989
+ });
2708
2990
  continue;
2709
2991
  }
2710
2992
  if (opts.dot !== true && (prev.type === "slash" || prev.type === "bos")) {
2711
- push({ type: "qmark", value, output: QMARK_NO_DOT });
2993
+ push({
2994
+ type: "qmark",
2995
+ value,
2996
+ output: QMARK_NO_DOT
2997
+ });
2712
2998
  continue;
2713
2999
  }
2714
- push({ type: "qmark", value, output: QMARK });
3000
+ push({
3001
+ type: "qmark",
3002
+ value,
3003
+ output: QMARK
3004
+ });
2715
3005
  continue;
2716
3006
  }
2717
3007
  if (value === "!") {
@@ -2732,22 +3022,40 @@ var require_parse2 = __commonJS({
2732
3022
  continue;
2733
3023
  }
2734
3024
  if (prev && prev.value === "(" || opts.regex === false) {
2735
- push({ type: "plus", value, output: PLUS_LITERAL });
3025
+ push({
3026
+ type: "plus",
3027
+ value,
3028
+ output: PLUS_LITERAL
3029
+ });
2736
3030
  continue;
2737
3031
  }
2738
3032
  if (prev && (prev.type === "bracket" || prev.type === "paren" || prev.type === "brace") || state.parens > 0) {
2739
- push({ type: "plus", value });
3033
+ push({
3034
+ type: "plus",
3035
+ value
3036
+ });
2740
3037
  continue;
2741
3038
  }
2742
- push({ type: "plus", value: PLUS_LITERAL });
3039
+ push({
3040
+ type: "plus",
3041
+ value: PLUS_LITERAL
3042
+ });
2743
3043
  continue;
2744
3044
  }
2745
3045
  if (value === "@") {
2746
3046
  if (opts.noextglob !== true && peek() === "(" && peek(2) !== "?") {
2747
- push({ type: "at", extglob: true, value, output: "" });
3047
+ push({
3048
+ type: "at",
3049
+ extglob: true,
3050
+ value,
3051
+ output: ""
3052
+ });
2748
3053
  continue;
2749
3054
  }
2750
- push({ type: "text", value });
3055
+ push({
3056
+ type: "text",
3057
+ value
3058
+ });
2751
3059
  continue;
2752
3060
  }
2753
3061
  if (value !== "*") {
@@ -2759,7 +3067,10 @@ var require_parse2 = __commonJS({
2759
3067
  value += match[0];
2760
3068
  state.index += match[0].length;
2761
3069
  }
2762
- push({ type: "text", value });
3070
+ push({
3071
+ type: "text",
3072
+ value
3073
+ });
2763
3074
  continue;
2764
3075
  }
2765
3076
  if (prev && (prev.type === "globstar" || prev.star === true)) {
@@ -2787,13 +3098,21 @@ var require_parse2 = __commonJS({
2787
3098
  const isStart = prior.type === "slash" || prior.type === "bos";
2788
3099
  const afterStar = before && (before.type === "star" || before.type === "globstar");
2789
3100
  if (opts.bash === true && (!isStart || rest[0] && rest[0] !== "/")) {
2790
- push({ type: "star", value, output: "" });
3101
+ push({
3102
+ type: "star",
3103
+ value,
3104
+ output: ""
3105
+ });
2791
3106
  continue;
2792
3107
  }
2793
3108
  const isBrace = state.braces > 0 && (prior.type === "comma" || prior.type === "brace");
2794
3109
  const isExtglob = extglobs.length && (prior.type === "pipe" || prior.type === "paren");
2795
3110
  if (!isStart && prior.type !== "paren" && !isBrace && !isExtglob) {
2796
- push({ type: "star", value, output: "" });
3111
+ push({
3112
+ type: "star",
3113
+ value,
3114
+ output: ""
3115
+ });
2797
3116
  continue;
2798
3117
  }
2799
3118
  while (rest.slice(0, 3) === "/**") {
@@ -2834,7 +3153,11 @@ var require_parse2 = __commonJS({
2834
3153
  state.output += prior.output + prev.output;
2835
3154
  state.globstar = true;
2836
3155
  consume(value + advance());
2837
- push({ type: "slash", value: "/", output: "" });
3156
+ push({
3157
+ type: "slash",
3158
+ value: "/",
3159
+ output: ""
3160
+ });
2838
3161
  continue;
2839
3162
  }
2840
3163
  if (prior.type === "bos" && rest[0] === "/") {
@@ -2844,7 +3167,11 @@ var require_parse2 = __commonJS({
2844
3167
  state.output = prev.output;
2845
3168
  state.globstar = true;
2846
3169
  consume(value + advance());
2847
- push({ type: "slash", value: "/", output: "" });
3170
+ push({
3171
+ type: "slash",
3172
+ value: "/",
3173
+ output: ""
3174
+ });
2848
3175
  continue;
2849
3176
  }
2850
3177
  state.output = state.output.slice(0, -prev.output.length);
@@ -2856,7 +3183,11 @@ var require_parse2 = __commonJS({
2856
3183
  consume(value);
2857
3184
  continue;
2858
3185
  }
2859
- const token = { type: "star", value, output: star };
3186
+ const token = {
3187
+ type: "star",
3188
+ value,
3189
+ output: star
3190
+ };
2860
3191
  if (opts.bash === true) {
2861
3192
  token.output = ".*?";
2862
3193
  if (prev.type === "bos" || prev.type === "slash") {
@@ -2904,7 +3235,11 @@ var require_parse2 = __commonJS({
2904
3235
  decrement("braces");
2905
3236
  }
2906
3237
  if (opts.strictSlashes !== true && (prev.type === "star" || prev.type === "bracket")) {
2907
- push({ type: "maybe_slash", value: "", output: `${SLASH_LITERAL}?` });
3238
+ push({
3239
+ type: "maybe_slash",
3240
+ value: "",
3241
+ output: `${SLASH_LITERAL}?`
3242
+ });
2908
3243
  }
2909
3244
  if (state.backtrack === true) {
2910
3245
  state.output = "";
@@ -2916,9 +3251,11 @@ var require_parse2 = __commonJS({
2916
3251
  }
2917
3252
  }
2918
3253
  return state;
2919
- };
3254
+ }, "parse");
2920
3255
  parse.fastpaths = (input, options) => {
2921
- const opts = { ...options };
3256
+ const opts = {
3257
+ ...options
3258
+ };
2922
3259
  const max = typeof opts.maxLength === "number" ? Math.min(MAX_LENGTH, opts.maxLength) : MAX_LENGTH;
2923
3260
  const len = input.length;
2924
3261
  if (len > max) {
@@ -2926,30 +3263,23 @@ var require_parse2 = __commonJS({
2926
3263
  }
2927
3264
  input = REPLACEMENTS[input] || input;
2928
3265
  const win32 = utils.isWindows(options);
2929
- const {
2930
- DOT_LITERAL,
2931
- SLASH_LITERAL,
2932
- ONE_CHAR,
2933
- DOTS_SLASH,
2934
- NO_DOT,
2935
- NO_DOTS,
2936
- NO_DOTS_SLASH,
2937
- STAR,
2938
- START_ANCHOR
2939
- } = constants.globChars(win32);
3266
+ const { DOT_LITERAL, SLASH_LITERAL, ONE_CHAR, DOTS_SLASH, NO_DOT, NO_DOTS, NO_DOTS_SLASH, STAR, START_ANCHOR } = constants.globChars(win32);
2940
3267
  const nodot = opts.dot ? NO_DOTS : NO_DOT;
2941
3268
  const slashDot = opts.dot ? NO_DOTS_SLASH : NO_DOT;
2942
3269
  const capture = opts.capture ? "" : "?:";
2943
- const state = { negated: false, prefix: "" };
3270
+ const state = {
3271
+ negated: false,
3272
+ prefix: ""
3273
+ };
2944
3274
  let star = opts.bash === true ? ".*?" : STAR;
2945
3275
  if (opts.capture) {
2946
3276
  star = `(${star})`;
2947
3277
  }
2948
- const globstar = (opts2) => {
3278
+ const globstar = /* @__PURE__ */ __name((opts2) => {
2949
3279
  if (opts2.noglobstar === true) return star;
2950
3280
  return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;
2951
- };
2952
- const create = (str) => {
3281
+ }, "globstar");
3282
+ const create = /* @__PURE__ */ __name((str) => {
2953
3283
  switch (str) {
2954
3284
  case "*":
2955
3285
  return `${nodot}${ONE_CHAR}${star}`;
@@ -2975,7 +3305,7 @@ var require_parse2 = __commonJS({
2975
3305
  return source2 + DOT_LITERAL + match[2];
2976
3306
  }
2977
3307
  }
2978
- };
3308
+ }, "create");
2979
3309
  const output = utils.removePrefix(input, state);
2980
3310
  let source = create(output);
2981
3311
  if (source && opts.strictSlashes !== true) {
@@ -2996,17 +3326,17 @@ var require_picomatch = __commonJS({
2996
3326
  var parse = require_parse2();
2997
3327
  var utils = require_utils2();
2998
3328
  var constants = require_constants2();
2999
- var isObject = (val) => val && typeof val === "object" && !Array.isArray(val);
3000
- var picomatch = (glob, options, returnState = false) => {
3329
+ var isObject = /* @__PURE__ */ __name((val) => val && typeof val === "object" && !Array.isArray(val), "isObject");
3330
+ var picomatch = /* @__PURE__ */ __name((glob, options, returnState = false) => {
3001
3331
  if (Array.isArray(glob)) {
3002
3332
  const fns = glob.map((input) => picomatch(input, options, returnState));
3003
- const arrayMatcher = (str) => {
3333
+ const arrayMatcher = /* @__PURE__ */ __name((str) => {
3004
3334
  for (const isMatch of fns) {
3005
3335
  const state2 = isMatch(str);
3006
3336
  if (state2) return state2;
3007
3337
  }
3008
3338
  return false;
3009
- };
3339
+ }, "arrayMatcher");
3010
3340
  return arrayMatcher;
3011
3341
  }
3012
3342
  const isState = isObject(glob) && glob.tokens && glob.input;
@@ -3018,14 +3348,31 @@ var require_picomatch = __commonJS({
3018
3348
  const regex = isState ? picomatch.compileRe(glob, options) : picomatch.makeRe(glob, options, false, true);
3019
3349
  const state = regex.state;
3020
3350
  delete regex.state;
3021
- let isIgnored = () => false;
3351
+ let isIgnored = /* @__PURE__ */ __name(() => false, "isIgnored");
3022
3352
  if (opts.ignore) {
3023
- const ignoreOpts = { ...options, ignore: null, onMatch: null, onResult: null };
3353
+ const ignoreOpts = {
3354
+ ...options,
3355
+ ignore: null,
3356
+ onMatch: null,
3357
+ onResult: null
3358
+ };
3024
3359
  isIgnored = picomatch(opts.ignore, ignoreOpts, returnState);
3025
3360
  }
3026
- const matcher = (input, returnObject = false) => {
3027
- const { isMatch, match, output } = picomatch.test(input, regex, options, { glob, posix });
3028
- const result = { glob, state, regex, posix, input, output, match, isMatch };
3361
+ const matcher = /* @__PURE__ */ __name((input, returnObject = false) => {
3362
+ const { isMatch, match, output } = picomatch.test(input, regex, options, {
3363
+ glob,
3364
+ posix
3365
+ });
3366
+ const result = {
3367
+ glob,
3368
+ state,
3369
+ regex,
3370
+ posix,
3371
+ input,
3372
+ output,
3373
+ match,
3374
+ isMatch
3375
+ };
3029
3376
  if (typeof opts.onResult === "function") {
3030
3377
  opts.onResult(result);
3031
3378
  }
@@ -3044,18 +3391,21 @@ var require_picomatch = __commonJS({
3044
3391
  opts.onMatch(result);
3045
3392
  }
3046
3393
  return returnObject ? result : true;
3047
- };
3394
+ }, "matcher");
3048
3395
  if (returnState) {
3049
3396
  matcher.state = state;
3050
3397
  }
3051
3398
  return matcher;
3052
- };
3399
+ }, "picomatch");
3053
3400
  picomatch.test = (input, regex, options, { glob, posix } = {}) => {
3054
3401
  if (typeof input !== "string") {
3055
3402
  throw new TypeError("Expected input to be a string");
3056
3403
  }
3057
3404
  if (input === "") {
3058
- return { isMatch: false, output: "" };
3405
+ return {
3406
+ isMatch: false,
3407
+ output: ""
3408
+ };
3059
3409
  }
3060
3410
  const opts = options || {};
3061
3411
  const format = opts.format || (posix ? utils.toPosixSlashes : null);
@@ -3072,7 +3422,11 @@ var require_picomatch = __commonJS({
3072
3422
  match = regex.exec(output);
3073
3423
  }
3074
3424
  }
3075
- return { isMatch: Boolean(match), match, output };
3425
+ return {
3426
+ isMatch: Boolean(match),
3427
+ match,
3428
+ output
3429
+ };
3076
3430
  };
3077
3431
  picomatch.matchBase = (input, glob, options, posix = utils.isWindows(options)) => {
3078
3432
  const regex = glob instanceof RegExp ? glob : picomatch.makeRe(glob, options);
@@ -3081,7 +3435,10 @@ var require_picomatch = __commonJS({
3081
3435
  picomatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
3082
3436
  picomatch.parse = (pattern, options) => {
3083
3437
  if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
3084
- return parse(pattern, { ...options, fastpaths: false });
3438
+ return parse(pattern, {
3439
+ ...options,
3440
+ fastpaths: false
3441
+ });
3085
3442
  };
3086
3443
  picomatch.scan = (input, options) => scan(input, options);
3087
3444
  picomatch.compileRe = (state, options, returnOutput = false, returnState = false) => {
@@ -3105,7 +3462,10 @@ var require_picomatch = __commonJS({
3105
3462
  if (!input || typeof input !== "string") {
3106
3463
  throw new TypeError("Expected a non-empty string");
3107
3464
  }
3108
- let parsed = { negated: false, fastpaths: true };
3465
+ let parsed = {
3466
+ negated: false,
3467
+ fastpaths: true
3468
+ };
3109
3469
  if (options.fastpaths !== false && (input[0] === "." || input[0] === "*")) {
3110
3470
  parsed.output = parse.fastpaths(input, options);
3111
3471
  }
@@ -3144,26 +3504,29 @@ var require_micromatch = __commonJS({
3144
3504
  var braces = require_braces();
3145
3505
  var picomatch = require_picomatch2();
3146
3506
  var utils = require_utils2();
3147
- var isEmptyString = (v) => v === "" || v === "./";
3148
- var hasBraces = (v) => {
3507
+ var isEmptyString = /* @__PURE__ */ __name((v) => v === "" || v === "./", "isEmptyString");
3508
+ var hasBraces = /* @__PURE__ */ __name((v) => {
3149
3509
  const index = v.indexOf("{");
3150
3510
  return index > -1 && v.indexOf("}", index) > -1;
3151
- };
3152
- var micromatch = (list, patterns, options) => {
3511
+ }, "hasBraces");
3512
+ var micromatch = /* @__PURE__ */ __name((list, patterns, options) => {
3153
3513
  patterns = [].concat(patterns);
3154
3514
  list = [].concat(list);
3155
3515
  let omit = /* @__PURE__ */ new Set();
3156
3516
  let keep = /* @__PURE__ */ new Set();
3157
3517
  let items = /* @__PURE__ */ new Set();
3158
3518
  let negatives = 0;
3159
- let onResult = (state) => {
3519
+ let onResult = /* @__PURE__ */ __name((state) => {
3160
3520
  items.add(state.output);
3161
3521
  if (options && options.onResult) {
3162
3522
  options.onResult(state);
3163
3523
  }
3164
- };
3524
+ }, "onResult");
3165
3525
  for (let i = 0; i < patterns.length; i++) {
3166
- let isMatch = picomatch(String(patterns[i]), { ...options, onResult }, true);
3526
+ let isMatch = picomatch(String(patterns[i]), {
3527
+ ...options,
3528
+ onResult
3529
+ }, true);
3167
3530
  let negated = isMatch.state.negated || isMatch.state.negatedExtglob;
3168
3531
  if (negated) negatives++;
3169
3532
  for (let item of list) {
@@ -3178,7 +3541,11 @@ var require_micromatch = __commonJS({
3178
3541
  }
3179
3542
  }
3180
3543
  }
3181
- let result = negatives === patterns.length ? [...items] : [...keep];
3544
+ let result = negatives === patterns.length ? [
3545
+ ...items
3546
+ ] : [
3547
+ ...keep
3548
+ ];
3182
3549
  let matches = result.filter((item) => !omit.has(item));
3183
3550
  if (options && matches.length === 0) {
3184
3551
  if (options.failglob === true) {
@@ -3189,7 +3556,7 @@ var require_micromatch = __commonJS({
3189
3556
  }
3190
3557
  }
3191
3558
  return matches;
3192
- };
3559
+ }, "micromatch");
3193
3560
  micromatch.match = micromatch;
3194
3561
  micromatch.matcher = (pattern, options) => picomatch(pattern, options);
3195
3562
  micromatch.isMatch = (str, patterns, options) => picomatch(patterns, options)(str);
@@ -3198,17 +3565,22 @@ var require_micromatch = __commonJS({
3198
3565
  patterns = [].concat(patterns).map(String);
3199
3566
  let result = /* @__PURE__ */ new Set();
3200
3567
  let items = [];
3201
- let onResult = (state) => {
3568
+ let onResult = /* @__PURE__ */ __name((state) => {
3202
3569
  if (options.onResult) options.onResult(state);
3203
3570
  items.push(state.output);
3204
- };
3205
- let matches = new Set(micromatch(list, patterns, { ...options, onResult }));
3571
+ }, "onResult");
3572
+ let matches = new Set(micromatch(list, patterns, {
3573
+ ...options,
3574
+ onResult
3575
+ }));
3206
3576
  for (let item of items) {
3207
3577
  if (!matches.has(item)) {
3208
3578
  result.add(item);
3209
3579
  }
3210
3580
  }
3211
- return [...result];
3581
+ return [
3582
+ ...result
3583
+ ];
3212
3584
  };
3213
3585
  micromatch.contains = (str, pattern, options) => {
3214
3586
  if (typeof str !== "string") {
@@ -3225,7 +3597,10 @@ var require_micromatch = __commonJS({
3225
3597
  return true;
3226
3598
  }
3227
3599
  }
3228
- return micromatch.isMatch(str, pattern, { ...options, contains: true });
3600
+ return micromatch.isMatch(str, pattern, {
3601
+ ...options,
3602
+ contains: true
3603
+ });
3229
3604
  };
3230
3605
  micromatch.matchKeys = (obj, patterns, options) => {
3231
3606
  if (!utils.isObject(obj)) {
@@ -3264,7 +3639,10 @@ var require_micromatch = __commonJS({
3264
3639
  };
3265
3640
  micromatch.capture = (glob, input, options) => {
3266
3641
  let posix = utils.isWindows(options);
3267
- let regex = picomatch.makeRe(String(glob), { ...options, capture: true });
3642
+ let regex = picomatch.makeRe(String(glob), {
3643
+ ...options,
3644
+ capture: true
3645
+ });
3268
3646
  let match = regex.exec(posix ? utils.toPosixSlashes(input) : input);
3269
3647
  if (match) {
3270
3648
  return match.slice(1).map((v) => v === void 0 ? "" : v);
@@ -3284,13 +3662,18 @@ var require_micromatch = __commonJS({
3284
3662
  micromatch.braces = (pattern, options) => {
3285
3663
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
3286
3664
  if (options && options.nobrace === true || !hasBraces(pattern)) {
3287
- return [pattern];
3665
+ return [
3666
+ pattern
3667
+ ];
3288
3668
  }
3289
3669
  return braces(pattern, options);
3290
3670
  };
3291
3671
  micromatch.braceExpand = (pattern, options) => {
3292
3672
  if (typeof pattern !== "string") throw new TypeError("Expected a string");
3293
- return micromatch.braces(pattern, { ...options, expand: true });
3673
+ return micromatch.braces(pattern, {
3674
+ ...options,
3675
+ expand: true
3676
+ });
3294
3677
  };
3295
3678
  micromatch.hasBraces = hasBraces;
3296
3679
  module.exports = micromatch;
@@ -3301,7 +3684,9 @@ var require_micromatch = __commonJS({
3301
3684
  var require_pattern = __commonJS({
3302
3685
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/pattern.js"(exports) {
3303
3686
  "use strict";
3304
- Object.defineProperty(exports, "__esModule", { value: true });
3687
+ Object.defineProperty(exports, "__esModule", {
3688
+ value: true
3689
+ });
3305
3690
  exports.isAbsolute = exports.partitionAbsoluteAndRelative = exports.removeDuplicateSlashes = exports.matchAny = exports.convertPatternsToRe = exports.makeRe = exports.getPatternParts = exports.expandBraceExpansion = exports.expandPatternsWithBraceExpansion = exports.isAffectDepthOfReadingPattern = exports.endsWithSlashGlobStar = exports.hasGlobStar = exports.getBaseDirectory = exports.isPatternRelatedToParentDirectory = exports.getPatternsOutsideCurrentDirectory = exports.getPatternsInsideCurrentDirectory = exports.getPositivePatterns = exports.getNegativePatterns = exports.isPositivePattern = exports.isNegativePattern = exports.convertToNegativePattern = exports.convertToPositivePattern = exports.isDynamicPattern = exports.isStaticPattern = void 0;
3306
3691
  var path2 = __require("path");
3307
3692
  var globParent = require_glob_parent();
@@ -3317,6 +3702,7 @@ var require_pattern = __commonJS({
3317
3702
  function isStaticPattern(pattern, options = {}) {
3318
3703
  return !isDynamicPattern(pattern, options);
3319
3704
  }
3705
+ __name(isStaticPattern, "isStaticPattern");
3320
3706
  exports.isStaticPattern = isStaticPattern;
3321
3707
  function isDynamicPattern(pattern, options = {}) {
3322
3708
  if (pattern === "") {
@@ -3336,6 +3722,7 @@ var require_pattern = __commonJS({
3336
3722
  }
3337
3723
  return false;
3338
3724
  }
3725
+ __name(isDynamicPattern, "isDynamicPattern");
3339
3726
  exports.isDynamicPattern = isDynamicPattern;
3340
3727
  function hasBraceExpansion(pattern) {
3341
3728
  const openingBraceIndex = pattern.indexOf("{");
@@ -3349,75 +3736,101 @@ var require_pattern = __commonJS({
3349
3736
  const braceContent = pattern.slice(openingBraceIndex, closingBraceIndex);
3350
3737
  return BRACE_EXPANSION_SEPARATORS_RE.test(braceContent);
3351
3738
  }
3739
+ __name(hasBraceExpansion, "hasBraceExpansion");
3352
3740
  function convertToPositivePattern(pattern) {
3353
3741
  return isNegativePattern(pattern) ? pattern.slice(1) : pattern;
3354
3742
  }
3743
+ __name(convertToPositivePattern, "convertToPositivePattern");
3355
3744
  exports.convertToPositivePattern = convertToPositivePattern;
3356
3745
  function convertToNegativePattern(pattern) {
3357
3746
  return "!" + pattern;
3358
3747
  }
3748
+ __name(convertToNegativePattern, "convertToNegativePattern");
3359
3749
  exports.convertToNegativePattern = convertToNegativePattern;
3360
3750
  function isNegativePattern(pattern) {
3361
3751
  return pattern.startsWith("!") && pattern[1] !== "(";
3362
3752
  }
3753
+ __name(isNegativePattern, "isNegativePattern");
3363
3754
  exports.isNegativePattern = isNegativePattern;
3364
3755
  function isPositivePattern(pattern) {
3365
3756
  return !isNegativePattern(pattern);
3366
3757
  }
3758
+ __name(isPositivePattern, "isPositivePattern");
3367
3759
  exports.isPositivePattern = isPositivePattern;
3368
3760
  function getNegativePatterns(patterns) {
3369
3761
  return patterns.filter(isNegativePattern);
3370
3762
  }
3763
+ __name(getNegativePatterns, "getNegativePatterns");
3371
3764
  exports.getNegativePatterns = getNegativePatterns;
3372
3765
  function getPositivePatterns(patterns) {
3373
3766
  return patterns.filter(isPositivePattern);
3374
3767
  }
3768
+ __name(getPositivePatterns, "getPositivePatterns");
3375
3769
  exports.getPositivePatterns = getPositivePatterns;
3376
3770
  function getPatternsInsideCurrentDirectory(patterns) {
3377
3771
  return patterns.filter((pattern) => !isPatternRelatedToParentDirectory(pattern));
3378
3772
  }
3773
+ __name(getPatternsInsideCurrentDirectory, "getPatternsInsideCurrentDirectory");
3379
3774
  exports.getPatternsInsideCurrentDirectory = getPatternsInsideCurrentDirectory;
3380
3775
  function getPatternsOutsideCurrentDirectory(patterns) {
3381
3776
  return patterns.filter(isPatternRelatedToParentDirectory);
3382
3777
  }
3778
+ __name(getPatternsOutsideCurrentDirectory, "getPatternsOutsideCurrentDirectory");
3383
3779
  exports.getPatternsOutsideCurrentDirectory = getPatternsOutsideCurrentDirectory;
3384
3780
  function isPatternRelatedToParentDirectory(pattern) {
3385
3781
  return pattern.startsWith("..") || pattern.startsWith("./..");
3386
3782
  }
3783
+ __name(isPatternRelatedToParentDirectory, "isPatternRelatedToParentDirectory");
3387
3784
  exports.isPatternRelatedToParentDirectory = isPatternRelatedToParentDirectory;
3388
3785
  function getBaseDirectory(pattern) {
3389
- return globParent(pattern, { flipBackslashes: false });
3786
+ return globParent(pattern, {
3787
+ flipBackslashes: false
3788
+ });
3390
3789
  }
3790
+ __name(getBaseDirectory, "getBaseDirectory");
3391
3791
  exports.getBaseDirectory = getBaseDirectory;
3392
3792
  function hasGlobStar(pattern) {
3393
3793
  return pattern.includes(GLOBSTAR);
3394
3794
  }
3795
+ __name(hasGlobStar, "hasGlobStar");
3395
3796
  exports.hasGlobStar = hasGlobStar;
3396
3797
  function endsWithSlashGlobStar(pattern) {
3397
3798
  return pattern.endsWith("/" + GLOBSTAR);
3398
3799
  }
3800
+ __name(endsWithSlashGlobStar, "endsWithSlashGlobStar");
3399
3801
  exports.endsWithSlashGlobStar = endsWithSlashGlobStar;
3400
3802
  function isAffectDepthOfReadingPattern(pattern) {
3401
3803
  const basename = path2.basename(pattern);
3402
3804
  return endsWithSlashGlobStar(pattern) || isStaticPattern(basename);
3403
3805
  }
3806
+ __name(isAffectDepthOfReadingPattern, "isAffectDepthOfReadingPattern");
3404
3807
  exports.isAffectDepthOfReadingPattern = isAffectDepthOfReadingPattern;
3405
3808
  function expandPatternsWithBraceExpansion(patterns) {
3406
3809
  return patterns.reduce((collection, pattern) => {
3407
3810
  return collection.concat(expandBraceExpansion(pattern));
3408
3811
  }, []);
3409
3812
  }
3813
+ __name(expandPatternsWithBraceExpansion, "expandPatternsWithBraceExpansion");
3410
3814
  exports.expandPatternsWithBraceExpansion = expandPatternsWithBraceExpansion;
3411
3815
  function expandBraceExpansion(pattern) {
3412
- const patterns = micromatch.braces(pattern, { expand: true, nodupes: true, keepEscaping: true });
3816
+ const patterns = micromatch.braces(pattern, {
3817
+ expand: true,
3818
+ nodupes: true,
3819
+ keepEscaping: true
3820
+ });
3413
3821
  patterns.sort((a, b) => a.length - b.length);
3414
3822
  return patterns.filter((pattern2) => pattern2 !== "");
3415
3823
  }
3824
+ __name(expandBraceExpansion, "expandBraceExpansion");
3416
3825
  exports.expandBraceExpansion = expandBraceExpansion;
3417
3826
  function getPatternParts(pattern, options) {
3418
- let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), { parts: true }));
3827
+ let { parts } = micromatch.scan(pattern, Object.assign(Object.assign({}, options), {
3828
+ parts: true
3829
+ }));
3419
3830
  if (parts.length === 0) {
3420
- parts = [pattern];
3831
+ parts = [
3832
+ pattern
3833
+ ];
3421
3834
  }
3422
3835
  if (parts[0].startsWith("/")) {
3423
3836
  parts[0] = parts[0].slice(1);
@@ -3425,22 +3838,27 @@ var require_pattern = __commonJS({
3425
3838
  }
3426
3839
  return parts;
3427
3840
  }
3841
+ __name(getPatternParts, "getPatternParts");
3428
3842
  exports.getPatternParts = getPatternParts;
3429
3843
  function makeRe(pattern, options) {
3430
3844
  return micromatch.makeRe(pattern, options);
3431
3845
  }
3846
+ __name(makeRe, "makeRe");
3432
3847
  exports.makeRe = makeRe;
3433
3848
  function convertPatternsToRe(patterns, options) {
3434
3849
  return patterns.map((pattern) => makeRe(pattern, options));
3435
3850
  }
3851
+ __name(convertPatternsToRe, "convertPatternsToRe");
3436
3852
  exports.convertPatternsToRe = convertPatternsToRe;
3437
3853
  function matchAny(entry, patternsRe) {
3438
3854
  return patternsRe.some((patternRe) => patternRe.test(entry));
3439
3855
  }
3856
+ __name(matchAny, "matchAny");
3440
3857
  exports.matchAny = matchAny;
3441
3858
  function removeDuplicateSlashes(pattern) {
3442
3859
  return pattern.replace(DOUBLE_SLASH_RE, "/");
3443
3860
  }
3861
+ __name(removeDuplicateSlashes, "removeDuplicateSlashes");
3444
3862
  exports.removeDuplicateSlashes = removeDuplicateSlashes;
3445
3863
  function partitionAbsoluteAndRelative(patterns) {
3446
3864
  const absolute = [];
@@ -3452,12 +3870,17 @@ var require_pattern = __commonJS({
3452
3870
  relative.push(pattern);
3453
3871
  }
3454
3872
  }
3455
- return [absolute, relative];
3873
+ return [
3874
+ absolute,
3875
+ relative
3876
+ ];
3456
3877
  }
3878
+ __name(partitionAbsoluteAndRelative, "partitionAbsoluteAndRelative");
3457
3879
  exports.partitionAbsoluteAndRelative = partitionAbsoluteAndRelative;
3458
3880
  function isAbsolute(pattern) {
3459
3881
  return path2.isAbsolute(pattern);
3460
3882
  }
3883
+ __name(isAbsolute, "isAbsolute");
3461
3884
  exports.isAbsolute = isAbsolute;
3462
3885
  }
3463
3886
  });
@@ -3496,6 +3919,7 @@ var require_merge2 = __commonJS({
3496
3919
  mergeStream();
3497
3920
  return this;
3498
3921
  }
3922
+ __name(addStream, "addStream");
3499
3923
  function mergeStream() {
3500
3924
  if (merging) {
3501
3925
  return;
@@ -3507,7 +3931,9 @@ var require_merge2 = __commonJS({
3507
3931
  return;
3508
3932
  }
3509
3933
  if (!Array.isArray(streams)) {
3510
- streams = [streams];
3934
+ streams = [
3935
+ streams
3936
+ ];
3511
3937
  }
3512
3938
  let pipesCount = streams.length + 1;
3513
3939
  function next() {
@@ -3517,6 +3943,7 @@ var require_merge2 = __commonJS({
3517
3943
  merging = false;
3518
3944
  mergeStream();
3519
3945
  }
3946
+ __name(next, "next");
3520
3947
  function pipe(stream) {
3521
3948
  function onend() {
3522
3949
  stream.removeListener("merge2UnpipeEnd", onend);
@@ -3526,9 +3953,11 @@ var require_merge2 = __commonJS({
3526
3953
  }
3527
3954
  next();
3528
3955
  }
3956
+ __name(onend, "onend");
3529
3957
  function onerror(err) {
3530
3958
  mergedStream.emit("error", err);
3531
3959
  }
3960
+ __name(onerror, "onerror");
3532
3961
  if (stream._readableState.endEmitted) {
3533
3962
  return next();
3534
3963
  }
@@ -3537,14 +3966,18 @@ var require_merge2 = __commonJS({
3537
3966
  if (doPipeError) {
3538
3967
  stream.on("error", onerror);
3539
3968
  }
3540
- stream.pipe(mergedStream, { end: false });
3969
+ stream.pipe(mergedStream, {
3970
+ end: false
3971
+ });
3541
3972
  stream.resume();
3542
3973
  }
3974
+ __name(pipe, "pipe");
3543
3975
  for (let i = 0; i < streams.length; i++) {
3544
3976
  pipe(streams[i]);
3545
3977
  }
3546
3978
  next();
3547
3979
  }
3980
+ __name(mergeStream, "mergeStream");
3548
3981
  function endStream() {
3549
3982
  merging = false;
3550
3983
  mergedStream.emit("queueDrain");
@@ -3552,6 +3985,7 @@ var require_merge2 = __commonJS({
3552
3985
  mergedStream.end();
3553
3986
  }
3554
3987
  }
3988
+ __name(endStream, "endStream");
3555
3989
  mergedStream.setMaxListeners(0);
3556
3990
  mergedStream.add = addStream;
3557
3991
  mergedStream.on("unpipe", function(stream) {
@@ -3562,6 +3996,7 @@ var require_merge2 = __commonJS({
3562
3996
  }
3563
3997
  return mergedStream;
3564
3998
  }
3999
+ __name(merge2, "merge2");
3565
4000
  function pauseStreams(streams, options) {
3566
4001
  if (!Array.isArray(streams)) {
3567
4002
  if (!streams._readableState && streams.pipe) {
@@ -3578,6 +4013,7 @@ var require_merge2 = __commonJS({
3578
4013
  }
3579
4014
  return streams;
3580
4015
  }
4016
+ __name(pauseStreams, "pauseStreams");
3581
4017
  }
3582
4018
  });
3583
4019
 
@@ -3585,7 +4021,9 @@ var require_merge2 = __commonJS({
3585
4021
  var require_stream = __commonJS({
3586
4022
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/stream.js"(exports) {
3587
4023
  "use strict";
3588
- Object.defineProperty(exports, "__esModule", { value: true });
4024
+ Object.defineProperty(exports, "__esModule", {
4025
+ value: true
4026
+ });
3589
4027
  exports.merge = void 0;
3590
4028
  var merge2 = require_merge2();
3591
4029
  function merge(streams) {
@@ -3597,10 +4035,12 @@ var require_stream = __commonJS({
3597
4035
  mergedStream.once("end", () => propagateCloseEventToSources(streams));
3598
4036
  return mergedStream;
3599
4037
  }
4038
+ __name(merge, "merge");
3600
4039
  exports.merge = merge;
3601
4040
  function propagateCloseEventToSources(streams) {
3602
4041
  streams.forEach((stream) => stream.emit("close"));
3603
4042
  }
4043
+ __name(propagateCloseEventToSources, "propagateCloseEventToSources");
3604
4044
  }
3605
4045
  });
3606
4046
 
@@ -3608,15 +4048,19 @@ var require_stream = __commonJS({
3608
4048
  var require_string = __commonJS({
3609
4049
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/string.js"(exports) {
3610
4050
  "use strict";
3611
- Object.defineProperty(exports, "__esModule", { value: true });
4051
+ Object.defineProperty(exports, "__esModule", {
4052
+ value: true
4053
+ });
3612
4054
  exports.isEmpty = exports.isString = void 0;
3613
4055
  function isString(input) {
3614
4056
  return typeof input === "string";
3615
4057
  }
4058
+ __name(isString, "isString");
3616
4059
  exports.isString = isString;
3617
4060
  function isEmpty(input) {
3618
4061
  return input === "";
3619
4062
  }
4063
+ __name(isEmpty, "isEmpty");
3620
4064
  exports.isEmpty = isEmpty;
3621
4065
  }
3622
4066
  });
@@ -3625,7 +4069,9 @@ var require_string = __commonJS({
3625
4069
  var require_utils3 = __commonJS({
3626
4070
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/utils/index.js"(exports) {
3627
4071
  "use strict";
3628
- Object.defineProperty(exports, "__esModule", { value: true });
4072
+ Object.defineProperty(exports, "__esModule", {
4073
+ value: true
4074
+ });
3629
4075
  exports.string = exports.stream = exports.pattern = exports.path = exports.fs = exports.errno = exports.array = void 0;
3630
4076
  var array = require_array();
3631
4077
  exports.array = array;
@@ -3648,7 +4094,9 @@ var require_utils3 = __commonJS({
3648
4094
  var require_tasks = __commonJS({
3649
4095
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/managers/tasks.js"(exports) {
3650
4096
  "use strict";
3651
- Object.defineProperty(exports, "__esModule", { value: true });
4097
+ Object.defineProperty(exports, "__esModule", {
4098
+ value: true
4099
+ });
3652
4100
  exports.convertPatternGroupToTask = exports.convertPatternGroupsToTasks = exports.groupPatternsByBaseDirectory = exports.getNegativePatternsAsPositive = exports.getPositivePatterns = exports.convertPatternsToTasks = exports.generate = void 0;
3653
4101
  var utils = require_utils3();
3654
4102
  function generate(input, settings) {
@@ -3672,6 +4120,7 @@ var require_tasks = __commonJS({
3672
4120
  );
3673
4121
  return staticTasks.concat(dynamicTasks);
3674
4122
  }
4123
+ __name(generate, "generate");
3675
4124
  exports.generate = generate;
3676
4125
  function processPatterns(input, settings) {
3677
4126
  let patterns = input;
@@ -3683,6 +4132,7 @@ var require_tasks = __commonJS({
3683
4132
  }
3684
4133
  return patterns.map((pattern) => utils.pattern.removeDuplicateSlashes(pattern));
3685
4134
  }
4135
+ __name(processPatterns, "processPatterns");
3686
4136
  function convertPatternsToTasks(positive, negative, dynamic) {
3687
4137
  const tasks = [];
3688
4138
  const patternsOutsideCurrentDirectory = utils.pattern.getPatternsOutsideCurrentDirectory(positive);
@@ -3697,16 +4147,19 @@ var require_tasks = __commonJS({
3697
4147
  }
3698
4148
  return tasks;
3699
4149
  }
4150
+ __name(convertPatternsToTasks, "convertPatternsToTasks");
3700
4151
  exports.convertPatternsToTasks = convertPatternsToTasks;
3701
4152
  function getPositivePatterns(patterns) {
3702
4153
  return utils.pattern.getPositivePatterns(patterns);
3703
4154
  }
4155
+ __name(getPositivePatterns, "getPositivePatterns");
3704
4156
  exports.getPositivePatterns = getPositivePatterns;
3705
4157
  function getNegativePatternsAsPositive(patterns, ignore) {
3706
4158
  const negative = utils.pattern.getNegativePatterns(patterns).concat(ignore);
3707
4159
  const positive = negative.map(utils.pattern.convertToPositivePattern);
3708
4160
  return positive;
3709
4161
  }
4162
+ __name(getNegativePatternsAsPositive, "getNegativePatternsAsPositive");
3710
4163
  exports.getNegativePatternsAsPositive = getNegativePatternsAsPositive;
3711
4164
  function groupPatternsByBaseDirectory(patterns) {
3712
4165
  const group = {};
@@ -3715,17 +4168,21 @@ var require_tasks = __commonJS({
3715
4168
  if (base in collection) {
3716
4169
  collection[base].push(pattern);
3717
4170
  } else {
3718
- collection[base] = [pattern];
4171
+ collection[base] = [
4172
+ pattern
4173
+ ];
3719
4174
  }
3720
4175
  return collection;
3721
4176
  }, group);
3722
4177
  }
4178
+ __name(groupPatternsByBaseDirectory, "groupPatternsByBaseDirectory");
3723
4179
  exports.groupPatternsByBaseDirectory = groupPatternsByBaseDirectory;
3724
4180
  function convertPatternGroupsToTasks(positive, negative, dynamic) {
3725
4181
  return Object.keys(positive).map((base) => {
3726
4182
  return convertPatternGroupToTask(base, positive[base], negative, dynamic);
3727
4183
  });
3728
4184
  }
4185
+ __name(convertPatternGroupsToTasks, "convertPatternGroupsToTasks");
3729
4186
  exports.convertPatternGroupsToTasks = convertPatternGroupsToTasks;
3730
4187
  function convertPatternGroupToTask(base, positive, negative, dynamic) {
3731
4188
  return {
@@ -3736,6 +4193,7 @@ var require_tasks = __commonJS({
3736
4193
  patterns: [].concat(positive, negative.map(utils.pattern.convertToNegativePattern))
3737
4194
  };
3738
4195
  }
4196
+ __name(convertPatternGroupToTask, "convertPatternGroupToTask");
3739
4197
  exports.convertPatternGroupToTask = convertPatternGroupToTask;
3740
4198
  }
3741
4199
  });
@@ -3744,7 +4202,9 @@ var require_tasks = __commonJS({
3744
4202
  var require_async = __commonJS({
3745
4203
  "../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/async.js"(exports) {
3746
4204
  "use strict";
3747
- Object.defineProperty(exports, "__esModule", { value: true });
4205
+ Object.defineProperty(exports, "__esModule", {
4206
+ value: true
4207
+ });
3748
4208
  exports.read = void 0;
3749
4209
  function read(path2, settings, callback) {
3750
4210
  settings.fs.lstat(path2, (lstatError, lstat) => {
@@ -3772,13 +4232,16 @@ var require_async = __commonJS({
3772
4232
  });
3773
4233
  });
3774
4234
  }
4235
+ __name(read, "read");
3775
4236
  exports.read = read;
3776
4237
  function callFailureCallback(callback, error) {
3777
4238
  callback(error);
3778
4239
  }
4240
+ __name(callFailureCallback, "callFailureCallback");
3779
4241
  function callSuccessCallback(callback, result) {
3780
4242
  callback(null, result);
3781
4243
  }
4244
+ __name(callSuccessCallback, "callSuccessCallback");
3782
4245
  }
3783
4246
  });
3784
4247
 
@@ -3786,7 +4249,9 @@ var require_async = __commonJS({
3786
4249
  var require_sync = __commonJS({
3787
4250
  "../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/providers/sync.js"(exports) {
3788
4251
  "use strict";
3789
- Object.defineProperty(exports, "__esModule", { value: true });
4252
+ Object.defineProperty(exports, "__esModule", {
4253
+ value: true
4254
+ });
3790
4255
  exports.read = void 0;
3791
4256
  function read(path2, settings) {
3792
4257
  const lstat = settings.fs.lstatSync(path2);
@@ -3806,6 +4271,7 @@ var require_sync = __commonJS({
3806
4271
  throw error;
3807
4272
  }
3808
4273
  }
4274
+ __name(read, "read");
3809
4275
  exports.read = read;
3810
4276
  }
3811
4277
  });
@@ -3814,7 +4280,9 @@ var require_sync = __commonJS({
3814
4280
  var require_fs2 = __commonJS({
3815
4281
  "../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/adapters/fs.js"(exports) {
3816
4282
  "use strict";
3817
- Object.defineProperty(exports, "__esModule", { value: true });
4283
+ Object.defineProperty(exports, "__esModule", {
4284
+ value: true
4285
+ });
3818
4286
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
3819
4287
  var fs = __require("fs");
3820
4288
  exports.FILE_SYSTEM_ADAPTER = {
@@ -3829,6 +4297,7 @@ var require_fs2 = __commonJS({
3829
4297
  }
3830
4298
  return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
3831
4299
  }
4300
+ __name(createFileSystemAdapter, "createFileSystemAdapter");
3832
4301
  exports.createFileSystemAdapter = createFileSystemAdapter;
3833
4302
  }
3834
4303
  });
@@ -3837,9 +4306,14 @@ var require_fs2 = __commonJS({
3837
4306
  var require_settings = __commonJS({
3838
4307
  "../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/settings.js"(exports) {
3839
4308
  "use strict";
3840
- Object.defineProperty(exports, "__esModule", { value: true });
4309
+ Object.defineProperty(exports, "__esModule", {
4310
+ value: true
4311
+ });
3841
4312
  var fs = require_fs2();
3842
- var Settings = class {
4313
+ var Settings = class Settings {
4314
+ static {
4315
+ __name(this, "Settings");
4316
+ }
3843
4317
  constructor(_options = {}) {
3844
4318
  this._options = _options;
3845
4319
  this.followSymbolicLink = this._getValue(this._options.followSymbolicLink, true);
@@ -3859,7 +4333,9 @@ var require_settings = __commonJS({
3859
4333
  var require_out = __commonJS({
3860
4334
  "../node_modules/.pnpm/@nodelib+fs.stat@2.0.5/node_modules/@nodelib/fs.stat/out/index.js"(exports) {
3861
4335
  "use strict";
3862
- Object.defineProperty(exports, "__esModule", { value: true });
4336
+ Object.defineProperty(exports, "__esModule", {
4337
+ value: true
4338
+ });
3863
4339
  exports.statSync = exports.stat = exports.Settings = void 0;
3864
4340
  var async = require_async();
3865
4341
  var sync = require_sync();
@@ -3872,11 +4348,13 @@ var require_out = __commonJS({
3872
4348
  }
3873
4349
  async.read(path2, getSettings(optionsOrSettingsOrCallback), callback);
3874
4350
  }
4351
+ __name(stat, "stat");
3875
4352
  exports.stat = stat;
3876
4353
  function statSync(path2, optionsOrSettings) {
3877
4354
  const settings = getSettings(optionsOrSettings);
3878
4355
  return sync.read(path2, settings);
3879
4356
  }
4357
+ __name(statSync, "statSync");
3880
4358
  exports.statSync = statSync;
3881
4359
  function getSettings(settingsOrOptions = {}) {
3882
4360
  if (settingsOrOptions instanceof settings_1.default) {
@@ -3884,6 +4362,7 @@ var require_out = __commonJS({
3884
4362
  }
3885
4363
  return new settings_1.default(settingsOrOptions);
3886
4364
  }
4365
+ __name(getSettings, "getSettings");
3887
4366
  }
3888
4367
  });
3889
4368
 
@@ -3920,15 +4399,18 @@ var require_run_parallel = __commonJS({
3920
4399
  if (cb) cb(err, results);
3921
4400
  cb = null;
3922
4401
  }
4402
+ __name(end, "end");
3923
4403
  if (isSync) queueMicrotask2(end);
3924
4404
  else end();
3925
4405
  }
4406
+ __name(done, "done");
3926
4407
  function each(i, err, result) {
3927
4408
  results[i] = result;
3928
4409
  if (--pending === 0 || err) {
3929
4410
  done(err);
3930
4411
  }
3931
4412
  }
4413
+ __name(each, "each");
3932
4414
  if (!pending) {
3933
4415
  done(null);
3934
4416
  } else if (keys) {
@@ -3946,6 +4428,7 @@ var require_run_parallel = __commonJS({
3946
4428
  }
3947
4429
  isSync = false;
3948
4430
  }
4431
+ __name(runParallel, "runParallel");
3949
4432
  }
3950
4433
  });
3951
4434
 
@@ -3953,7 +4436,9 @@ var require_run_parallel = __commonJS({
3953
4436
  var require_constants3 = __commonJS({
3954
4437
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/constants.js"(exports) {
3955
4438
  "use strict";
3956
- Object.defineProperty(exports, "__esModule", { value: true });
4439
+ Object.defineProperty(exports, "__esModule", {
4440
+ value: true
4441
+ });
3957
4442
  exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
3958
4443
  var NODE_PROCESS_VERSION_PARTS = process.versions.node.split(".");
3959
4444
  if (NODE_PROCESS_VERSION_PARTS[0] === void 0 || NODE_PROCESS_VERSION_PARTS[1] === void 0) {
@@ -3973,9 +4458,14 @@ var require_constants3 = __commonJS({
3973
4458
  var require_fs3 = __commonJS({
3974
4459
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/fs.js"(exports) {
3975
4460
  "use strict";
3976
- Object.defineProperty(exports, "__esModule", { value: true });
4461
+ Object.defineProperty(exports, "__esModule", {
4462
+ value: true
4463
+ });
3977
4464
  exports.createDirentFromStats = void 0;
3978
- var DirentFromStats = class {
4465
+ var DirentFromStats = class DirentFromStats {
4466
+ static {
4467
+ __name(this, "DirentFromStats");
4468
+ }
3979
4469
  constructor(name, stats) {
3980
4470
  this.name = name;
3981
4471
  this.isBlockDevice = stats.isBlockDevice.bind(stats);
@@ -3990,6 +4480,7 @@ var require_fs3 = __commonJS({
3990
4480
  function createDirentFromStats(name, stats) {
3991
4481
  return new DirentFromStats(name, stats);
3992
4482
  }
4483
+ __name(createDirentFromStats, "createDirentFromStats");
3993
4484
  exports.createDirentFromStats = createDirentFromStats;
3994
4485
  }
3995
4486
  });
@@ -3998,7 +4489,9 @@ var require_fs3 = __commonJS({
3998
4489
  var require_utils4 = __commonJS({
3999
4490
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/utils/index.js"(exports) {
4000
4491
  "use strict";
4001
- Object.defineProperty(exports, "__esModule", { value: true });
4492
+ Object.defineProperty(exports, "__esModule", {
4493
+ value: true
4494
+ });
4002
4495
  exports.fs = void 0;
4003
4496
  var fs = require_fs3();
4004
4497
  exports.fs = fs;
@@ -4009,7 +4502,9 @@ var require_utils4 = __commonJS({
4009
4502
  var require_common = __commonJS({
4010
4503
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/common.js"(exports) {
4011
4504
  "use strict";
4012
- Object.defineProperty(exports, "__esModule", { value: true });
4505
+ Object.defineProperty(exports, "__esModule", {
4506
+ value: true
4507
+ });
4013
4508
  exports.joinPathSegments = void 0;
4014
4509
  function joinPathSegments(a, b, separator) {
4015
4510
  if (a.endsWith(separator)) {
@@ -4017,6 +4512,7 @@ var require_common = __commonJS({
4017
4512
  }
4018
4513
  return a + separator + b;
4019
4514
  }
4515
+ __name(joinPathSegments, "joinPathSegments");
4020
4516
  exports.joinPathSegments = joinPathSegments;
4021
4517
  }
4022
4518
  });
@@ -4025,7 +4521,9 @@ var require_common = __commonJS({
4025
4521
  var require_async2 = __commonJS({
4026
4522
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/async.js"(exports) {
4027
4523
  "use strict";
4028
- Object.defineProperty(exports, "__esModule", { value: true });
4524
+ Object.defineProperty(exports, "__esModule", {
4525
+ value: true
4526
+ });
4029
4527
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4030
4528
  var fsStat = require_out();
4031
4529
  var rpl = require_run_parallel();
@@ -4039,9 +4537,12 @@ var require_async2 = __commonJS({
4039
4537
  }
4040
4538
  readdir(directory, settings, callback);
4041
4539
  }
4540
+ __name(read, "read");
4042
4541
  exports.read = read;
4043
4542
  function readdirWithFileTypes(directory, settings, callback) {
4044
- settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
4543
+ settings.fs.readdir(directory, {
4544
+ withFileTypes: true
4545
+ }, (readdirError, dirents) => {
4045
4546
  if (readdirError !== null) {
4046
4547
  callFailureCallback(callback, readdirError);
4047
4548
  return;
@@ -4065,6 +4566,7 @@ var require_async2 = __commonJS({
4065
4566
  });
4066
4567
  });
4067
4568
  }
4569
+ __name(readdirWithFileTypes, "readdirWithFileTypes");
4068
4570
  exports.readdirWithFileTypes = readdirWithFileTypes;
4069
4571
  function makeRplTaskEntry(entry, settings) {
4070
4572
  return (done) => {
@@ -4086,6 +4588,7 @@ var require_async2 = __commonJS({
4086
4588
  });
4087
4589
  };
4088
4590
  }
4591
+ __name(makeRplTaskEntry, "makeRplTaskEntry");
4089
4592
  function readdir(directory, settings, callback) {
4090
4593
  settings.fs.readdir(directory, (readdirError, names) => {
4091
4594
  if (readdirError !== null) {
@@ -4121,13 +4624,16 @@ var require_async2 = __commonJS({
4121
4624
  });
4122
4625
  });
4123
4626
  }
4627
+ __name(readdir, "readdir");
4124
4628
  exports.readdir = readdir;
4125
4629
  function callFailureCallback(callback, error) {
4126
4630
  callback(error);
4127
4631
  }
4632
+ __name(callFailureCallback, "callFailureCallback");
4128
4633
  function callSuccessCallback(callback, result) {
4129
4634
  callback(null, result);
4130
4635
  }
4636
+ __name(callSuccessCallback, "callSuccessCallback");
4131
4637
  }
4132
4638
  });
4133
4639
 
@@ -4135,7 +4641,9 @@ var require_async2 = __commonJS({
4135
4641
  var require_sync2 = __commonJS({
4136
4642
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/providers/sync.js"(exports) {
4137
4643
  "use strict";
4138
- Object.defineProperty(exports, "__esModule", { value: true });
4644
+ Object.defineProperty(exports, "__esModule", {
4645
+ value: true
4646
+ });
4139
4647
  exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
4140
4648
  var fsStat = require_out();
4141
4649
  var constants_1 = require_constants3();
@@ -4147,9 +4655,12 @@ var require_sync2 = __commonJS({
4147
4655
  }
4148
4656
  return readdir(directory, settings);
4149
4657
  }
4658
+ __name(read, "read");
4150
4659
  exports.read = read;
4151
4660
  function readdirWithFileTypes(directory, settings) {
4152
- const dirents = settings.fs.readdirSync(directory, { withFileTypes: true });
4661
+ const dirents = settings.fs.readdirSync(directory, {
4662
+ withFileTypes: true
4663
+ });
4153
4664
  return dirents.map((dirent) => {
4154
4665
  const entry = {
4155
4666
  dirent,
@@ -4169,6 +4680,7 @@ var require_sync2 = __commonJS({
4169
4680
  return entry;
4170
4681
  });
4171
4682
  }
4683
+ __name(readdirWithFileTypes, "readdirWithFileTypes");
4172
4684
  exports.readdirWithFileTypes = readdirWithFileTypes;
4173
4685
  function readdir(directory, settings) {
4174
4686
  const names = settings.fs.readdirSync(directory);
@@ -4186,6 +4698,7 @@ var require_sync2 = __commonJS({
4186
4698
  return entry;
4187
4699
  });
4188
4700
  }
4701
+ __name(readdir, "readdir");
4189
4702
  exports.readdir = readdir;
4190
4703
  }
4191
4704
  });
@@ -4194,7 +4707,9 @@ var require_sync2 = __commonJS({
4194
4707
  var require_fs4 = __commonJS({
4195
4708
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/adapters/fs.js"(exports) {
4196
4709
  "use strict";
4197
- Object.defineProperty(exports, "__esModule", { value: true });
4710
+ Object.defineProperty(exports, "__esModule", {
4711
+ value: true
4712
+ });
4198
4713
  exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
4199
4714
  var fs = __require("fs");
4200
4715
  exports.FILE_SYSTEM_ADAPTER = {
@@ -4211,6 +4726,7 @@ var require_fs4 = __commonJS({
4211
4726
  }
4212
4727
  return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
4213
4728
  }
4729
+ __name(createFileSystemAdapter, "createFileSystemAdapter");
4214
4730
  exports.createFileSystemAdapter = createFileSystemAdapter;
4215
4731
  }
4216
4732
  });
@@ -4219,11 +4735,16 @@ var require_fs4 = __commonJS({
4219
4735
  var require_settings2 = __commonJS({
4220
4736
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/settings.js"(exports) {
4221
4737
  "use strict";
4222
- Object.defineProperty(exports, "__esModule", { value: true });
4738
+ Object.defineProperty(exports, "__esModule", {
4739
+ value: true
4740
+ });
4223
4741
  var path2 = __require("path");
4224
4742
  var fsStat = require_out();
4225
4743
  var fs = require_fs4();
4226
- var Settings = class {
4744
+ var Settings = class Settings {
4745
+ static {
4746
+ __name(this, "Settings");
4747
+ }
4227
4748
  constructor(_options = {}) {
4228
4749
  this._options = _options;
4229
4750
  this.followSymbolicLinks = this._getValue(this._options.followSymbolicLinks, false);
@@ -4249,7 +4770,9 @@ var require_settings2 = __commonJS({
4249
4770
  var require_out2 = __commonJS({
4250
4771
  "../node_modules/.pnpm/@nodelib+fs.scandir@2.1.5/node_modules/@nodelib/fs.scandir/out/index.js"(exports) {
4251
4772
  "use strict";
4252
- Object.defineProperty(exports, "__esModule", { value: true });
4773
+ Object.defineProperty(exports, "__esModule", {
4774
+ value: true
4775
+ });
4253
4776
  exports.Settings = exports.scandirSync = exports.scandir = void 0;
4254
4777
  var async = require_async2();
4255
4778
  var sync = require_sync2();
@@ -4262,11 +4785,13 @@ var require_out2 = __commonJS({
4262
4785
  }
4263
4786
  async.read(path2, getSettings(optionsOrSettingsOrCallback), callback);
4264
4787
  }
4788
+ __name(scandir, "scandir");
4265
4789
  exports.scandir = scandir;
4266
4790
  function scandirSync(path2, optionsOrSettings) {
4267
4791
  const settings = getSettings(optionsOrSettings);
4268
4792
  return sync.read(path2, settings);
4269
4793
  }
4794
+ __name(scandirSync, "scandirSync");
4270
4795
  exports.scandirSync = scandirSync;
4271
4796
  function getSettings(settingsOrOptions = {}) {
4272
4797
  if (settingsOrOptions instanceof settings_1.default) {
@@ -4274,6 +4799,7 @@ var require_out2 = __commonJS({
4274
4799
  }
4275
4800
  return new settings_1.default(settingsOrOptions);
4276
4801
  }
4802
+ __name(getSettings, "getSettings");
4277
4803
  }
4278
4804
  });
4279
4805
 
@@ -4295,15 +4821,18 @@ var require_reusify = __commonJS({
4295
4821
  current.next = null;
4296
4822
  return current;
4297
4823
  }
4824
+ __name(get, "get");
4298
4825
  function release(obj) {
4299
4826
  tail.next = obj;
4300
4827
  tail = obj;
4301
4828
  }
4829
+ __name(release, "release");
4302
4830
  return {
4303
4831
  get,
4304
4832
  release
4305
4833
  };
4306
4834
  }
4835
+ __name(reusify, "reusify");
4307
4836
  module.exports = reusify;
4308
4837
  }
4309
4838
  });
@@ -4363,9 +4892,11 @@ var require_queue = __commonJS({
4363
4892
  function running() {
4364
4893
  return _running;
4365
4894
  }
4895
+ __name(running, "running");
4366
4896
  function pause() {
4367
4897
  self.paused = true;
4368
4898
  }
4899
+ __name(pause, "pause");
4369
4900
  function length() {
4370
4901
  var current = queueHead;
4371
4902
  var counter = 0;
@@ -4375,6 +4906,7 @@ var require_queue = __commonJS({
4375
4906
  }
4376
4907
  return counter;
4377
4908
  }
4909
+ __name(length, "length");
4378
4910
  function getQueue() {
4379
4911
  var current = queueHead;
4380
4912
  var tasks = [];
@@ -4384,6 +4916,7 @@ var require_queue = __commonJS({
4384
4916
  }
4385
4917
  return tasks;
4386
4918
  }
4919
+ __name(getQueue, "getQueue");
4387
4920
  function resume() {
4388
4921
  if (!self.paused) return;
4389
4922
  self.paused = false;
@@ -4397,9 +4930,11 @@ var require_queue = __commonJS({
4397
4930
  release();
4398
4931
  }
4399
4932
  }
4933
+ __name(resume, "resume");
4400
4934
  function idle() {
4401
4935
  return _running === 0 && self.length() === 0;
4402
4936
  }
4937
+ __name(idle, "idle");
4403
4938
  function push(value, done) {
4404
4939
  var current = cache.get();
4405
4940
  current.context = context;
@@ -4421,6 +4956,7 @@ var require_queue = __commonJS({
4421
4956
  worker.call(context, current.value, current.worked);
4422
4957
  }
4423
4958
  }
4959
+ __name(push, "push");
4424
4960
  function unshift(value, done) {
4425
4961
  var current = cache.get();
4426
4962
  current.context = context;
@@ -4442,6 +4978,7 @@ var require_queue = __commonJS({
4442
4978
  worker.call(context, current.value, current.worked);
4443
4979
  }
4444
4980
  }
4981
+ __name(unshift, "unshift");
4445
4982
  function release(holder) {
4446
4983
  if (holder) {
4447
4984
  cache.release(holder);
@@ -4465,17 +5002,20 @@ var require_queue = __commonJS({
4465
5002
  self.drain();
4466
5003
  }
4467
5004
  }
5005
+ __name(release, "release");
4468
5006
  function kill() {
4469
5007
  queueHead = null;
4470
5008
  queueTail = null;
4471
5009
  self.drain = noop;
4472
5010
  }
5011
+ __name(kill, "kill");
4473
5012
  function killAndDrain() {
4474
5013
  queueHead = null;
4475
5014
  queueTail = null;
4476
5015
  self.drain();
4477
5016
  self.drain = noop;
4478
5017
  }
5018
+ __name(killAndDrain, "killAndDrain");
4479
5019
  function abort() {
4480
5020
  var current = queueHead;
4481
5021
  queueHead = null;
@@ -4498,12 +5038,16 @@ var require_queue = __commonJS({
4498
5038
  }
4499
5039
  self.drain = noop;
4500
5040
  }
5041
+ __name(abort, "abort");
4501
5042
  function error(handler) {
4502
5043
  errorHandler = handler;
4503
5044
  }
5045
+ __name(error, "error");
4504
5046
  }
5047
+ __name(fastqueue, "fastqueue");
4505
5048
  function noop() {
4506
5049
  }
5050
+ __name(noop, "noop");
4507
5051
  function Task() {
4508
5052
  this.value = null;
4509
5053
  this.callback = noop;
@@ -4512,7 +5056,7 @@ var require_queue = __commonJS({
4512
5056
  this.context = null;
4513
5057
  this.errorHandler = null;
4514
5058
  var self = this;
4515
- this.worked = function worked(err, result) {
5059
+ this.worked = /* @__PURE__ */ __name(function worked(err, result) {
4516
5060
  var callback = self.callback;
4517
5061
  var errorHandler = self.errorHandler;
4518
5062
  var val = self.value;
@@ -4523,8 +5067,9 @@ var require_queue = __commonJS({
4523
5067
  }
4524
5068
  callback.call(self.context, err, result);
4525
5069
  self.release(self);
4526
- };
5070
+ }, "worked");
4527
5071
  }
5072
+ __name(Task, "Task");
4528
5073
  function queueAsPromised(context, worker, _concurrency) {
4529
5074
  if (typeof context === "function") {
4530
5075
  _concurrency = worker;
@@ -4536,6 +5081,7 @@ var require_queue = __commonJS({
4536
5081
  cb(null, res);
4537
5082
  }, cb);
4538
5083
  }
5084
+ __name(asyncWrapper, "asyncWrapper");
4539
5085
  var queue = fastqueue(context, asyncWrapper, _concurrency);
4540
5086
  var pushCb = queue.push;
4541
5087
  var unshiftCb = queue.unshift;
@@ -4556,6 +5102,7 @@ var require_queue = __commonJS({
4556
5102
  p.catch(noop);
4557
5103
  return p;
4558
5104
  }
5105
+ __name(push, "push");
4559
5106
  function unshift(value) {
4560
5107
  var p = new Promise(function(resolve, reject) {
4561
5108
  unshiftCb(value, function(err, result) {
@@ -4569,6 +5116,7 @@ var require_queue = __commonJS({
4569
5116
  p.catch(noop);
4570
5117
  return p;
4571
5118
  }
5119
+ __name(unshift, "unshift");
4572
5120
  function drained() {
4573
5121
  var p = new Promise(function(resolve) {
4574
5122
  process.nextTick(function() {
@@ -4586,7 +5134,9 @@ var require_queue = __commonJS({
4586
5134
  });
4587
5135
  return p;
4588
5136
  }
5137
+ __name(drained, "drained");
4589
5138
  }
5139
+ __name(queueAsPromised, "queueAsPromised");
4590
5140
  module.exports = fastqueue;
4591
5141
  module.exports.promise = queueAsPromised;
4592
5142
  }
@@ -4596,7 +5146,9 @@ var require_queue = __commonJS({
4596
5146
  var require_common2 = __commonJS({
4597
5147
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/common.js"(exports) {
4598
5148
  "use strict";
4599
- Object.defineProperty(exports, "__esModule", { value: true });
5149
+ Object.defineProperty(exports, "__esModule", {
5150
+ value: true
5151
+ });
4600
5152
  exports.joinPathSegments = exports.replacePathSegmentSeparator = exports.isAppliedFilter = exports.isFatalError = void 0;
4601
5153
  function isFatalError(settings, error) {
4602
5154
  if (settings.errorFilter === null) {
@@ -4604,14 +5156,17 @@ var require_common2 = __commonJS({
4604
5156
  }
4605
5157
  return !settings.errorFilter(error);
4606
5158
  }
5159
+ __name(isFatalError, "isFatalError");
4607
5160
  exports.isFatalError = isFatalError;
4608
5161
  function isAppliedFilter(filter, value) {
4609
5162
  return filter === null || filter(value);
4610
5163
  }
5164
+ __name(isAppliedFilter, "isAppliedFilter");
4611
5165
  exports.isAppliedFilter = isAppliedFilter;
4612
5166
  function replacePathSegmentSeparator(filepath, separator) {
4613
5167
  return filepath.split(/[/\\]/).join(separator);
4614
5168
  }
5169
+ __name(replacePathSegmentSeparator, "replacePathSegmentSeparator");
4615
5170
  exports.replacePathSegmentSeparator = replacePathSegmentSeparator;
4616
5171
  function joinPathSegments(a, b, separator) {
4617
5172
  if (a === "") {
@@ -4622,6 +5177,7 @@ var require_common2 = __commonJS({
4622
5177
  }
4623
5178
  return a + separator + b;
4624
5179
  }
5180
+ __name(joinPathSegments, "joinPathSegments");
4625
5181
  exports.joinPathSegments = joinPathSegments;
4626
5182
  }
4627
5183
  });
@@ -4630,9 +5186,14 @@ var require_common2 = __commonJS({
4630
5186
  var require_reader = __commonJS({
4631
5187
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/reader.js"(exports) {
4632
5188
  "use strict";
4633
- Object.defineProperty(exports, "__esModule", { value: true });
5189
+ Object.defineProperty(exports, "__esModule", {
5190
+ value: true
5191
+ });
4634
5192
  var common = require_common2();
4635
- var Reader = class {
5193
+ var Reader = class Reader {
5194
+ static {
5195
+ __name(this, "Reader");
5196
+ }
4636
5197
  constructor(_root, _settings) {
4637
5198
  this._root = _root;
4638
5199
  this._settings = _settings;
@@ -4647,13 +5208,18 @@ var require_reader = __commonJS({
4647
5208
  var require_async3 = __commonJS({
4648
5209
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/async.js"(exports) {
4649
5210
  "use strict";
4650
- Object.defineProperty(exports, "__esModule", { value: true });
5211
+ Object.defineProperty(exports, "__esModule", {
5212
+ value: true
5213
+ });
4651
5214
  var events_1 = __require("events");
4652
5215
  var fsScandir = require_out2();
4653
5216
  var fastq = require_queue();
4654
5217
  var common = require_common2();
4655
5218
  var reader_1 = require_reader();
4656
- var AsyncReader = class extends reader_1.default {
5219
+ var AsyncReader = class AsyncReader extends reader_1.default {
5220
+ static {
5221
+ __name(this, "AsyncReader");
5222
+ }
4657
5223
  constructor(_root, _settings) {
4658
5224
  super(_root, _settings);
4659
5225
  this._settings = _settings;
@@ -4696,7 +5262,10 @@ var require_async3 = __commonJS({
4696
5262
  this._emitter.once("end", callback);
4697
5263
  }
4698
5264
  _pushToQueue(directory, base) {
4699
- const queueItem = { directory, base };
5265
+ const queueItem = {
5266
+ directory,
5267
+ base
5268
+ };
4700
5269
  this._queue.push(queueItem, (error) => {
4701
5270
  if (error !== null) {
4702
5271
  this._handleError(error);
@@ -4750,9 +5319,14 @@ var require_async3 = __commonJS({
4750
5319
  var require_async4 = __commonJS({
4751
5320
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/async.js"(exports) {
4752
5321
  "use strict";
4753
- Object.defineProperty(exports, "__esModule", { value: true });
5322
+ Object.defineProperty(exports, "__esModule", {
5323
+ value: true
5324
+ });
4754
5325
  var async_1 = require_async3();
4755
- var AsyncProvider = class {
5326
+ var AsyncProvider = class AsyncProvider {
5327
+ static {
5328
+ __name(this, "AsyncProvider");
5329
+ }
4756
5330
  constructor(_root, _settings) {
4757
5331
  this._root = _root;
4758
5332
  this._settings = _settings;
@@ -4776,9 +5350,11 @@ var require_async4 = __commonJS({
4776
5350
  function callFailureCallback(callback, error) {
4777
5351
  callback(error);
4778
5352
  }
5353
+ __name(callFailureCallback, "callFailureCallback");
4779
5354
  function callSuccessCallback(callback, entries) {
4780
5355
  callback(null, entries);
4781
5356
  }
5357
+ __name(callSuccessCallback, "callSuccessCallback");
4782
5358
  }
4783
5359
  });
4784
5360
 
@@ -4786,23 +5362,28 @@ var require_async4 = __commonJS({
4786
5362
  var require_stream2 = __commonJS({
4787
5363
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/stream.js"(exports) {
4788
5364
  "use strict";
4789
- Object.defineProperty(exports, "__esModule", { value: true });
5365
+ Object.defineProperty(exports, "__esModule", {
5366
+ value: true
5367
+ });
4790
5368
  var stream_1 = __require("stream");
4791
5369
  var async_1 = require_async3();
4792
- var StreamProvider = class {
5370
+ var StreamProvider = class StreamProvider {
5371
+ static {
5372
+ __name(this, "StreamProvider");
5373
+ }
4793
5374
  constructor(_root, _settings) {
4794
5375
  this._root = _root;
4795
5376
  this._settings = _settings;
4796
5377
  this._reader = new async_1.default(this._root, this._settings);
4797
5378
  this._stream = new stream_1.Readable({
4798
5379
  objectMode: true,
4799
- read: () => {
4800
- },
4801
- destroy: () => {
5380
+ read: /* @__PURE__ */ __name(() => {
5381
+ }, "read"),
5382
+ destroy: /* @__PURE__ */ __name(() => {
4802
5383
  if (!this._reader.isDestroyed) {
4803
5384
  this._reader.destroy();
4804
5385
  }
4805
- }
5386
+ }, "destroy")
4806
5387
  });
4807
5388
  }
4808
5389
  read() {
@@ -4827,11 +5408,16 @@ var require_stream2 = __commonJS({
4827
5408
  var require_sync3 = __commonJS({
4828
5409
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/readers/sync.js"(exports) {
4829
5410
  "use strict";
4830
- Object.defineProperty(exports, "__esModule", { value: true });
5411
+ Object.defineProperty(exports, "__esModule", {
5412
+ value: true
5413
+ });
4831
5414
  var fsScandir = require_out2();
4832
5415
  var common = require_common2();
4833
5416
  var reader_1 = require_reader();
4834
- var SyncReader = class extends reader_1.default {
5417
+ var SyncReader = class SyncReader extends reader_1.default {
5418
+ static {
5419
+ __name(this, "SyncReader");
5420
+ }
4835
5421
  constructor() {
4836
5422
  super(...arguments);
4837
5423
  this._scandir = fsScandir.scandirSync;
@@ -4844,7 +5430,10 @@ var require_sync3 = __commonJS({
4844
5430
  return this._storage;
4845
5431
  }
4846
5432
  _pushToQueue(directory, base) {
4847
- this._queue.add({ directory, base });
5433
+ this._queue.add({
5434
+ directory,
5435
+ base
5436
+ });
4848
5437
  }
4849
5438
  _handleQueue() {
4850
5439
  for (const item of this._queue.values()) {
@@ -4891,9 +5480,14 @@ var require_sync3 = __commonJS({
4891
5480
  var require_sync4 = __commonJS({
4892
5481
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/providers/sync.js"(exports) {
4893
5482
  "use strict";
4894
- Object.defineProperty(exports, "__esModule", { value: true });
5483
+ Object.defineProperty(exports, "__esModule", {
5484
+ value: true
5485
+ });
4895
5486
  var sync_1 = require_sync3();
4896
- var SyncProvider = class {
5487
+ var SyncProvider = class SyncProvider {
5488
+ static {
5489
+ __name(this, "SyncProvider");
5490
+ }
4897
5491
  constructor(_root, _settings) {
4898
5492
  this._root = _root;
4899
5493
  this._settings = _settings;
@@ -4911,10 +5505,15 @@ var require_sync4 = __commonJS({
4911
5505
  var require_settings3 = __commonJS({
4912
5506
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/settings.js"(exports) {
4913
5507
  "use strict";
4914
- Object.defineProperty(exports, "__esModule", { value: true });
5508
+ Object.defineProperty(exports, "__esModule", {
5509
+ value: true
5510
+ });
4915
5511
  var path2 = __require("path");
4916
5512
  var fsScandir = require_out2();
4917
- var Settings = class {
5513
+ var Settings = class Settings {
5514
+ static {
5515
+ __name(this, "Settings");
5516
+ }
4918
5517
  constructor(_options = {}) {
4919
5518
  this._options = _options;
4920
5519
  this.basePath = this._getValue(this._options.basePath, void 0);
@@ -4943,7 +5542,9 @@ var require_settings3 = __commonJS({
4943
5542
  var require_out3 = __commonJS({
4944
5543
  "../node_modules/.pnpm/@nodelib+fs.walk@1.2.8/node_modules/@nodelib/fs.walk/out/index.js"(exports) {
4945
5544
  "use strict";
4946
- Object.defineProperty(exports, "__esModule", { value: true });
5545
+ Object.defineProperty(exports, "__esModule", {
5546
+ value: true
5547
+ });
4947
5548
  exports.Settings = exports.walkStream = exports.walkSync = exports.walk = void 0;
4948
5549
  var async_1 = require_async4();
4949
5550
  var stream_1 = require_stream2();
@@ -4957,18 +5558,21 @@ var require_out3 = __commonJS({
4957
5558
  }
4958
5559
  new async_1.default(directory, getSettings(optionsOrSettingsOrCallback)).read(callback);
4959
5560
  }
5561
+ __name(walk, "walk");
4960
5562
  exports.walk = walk;
4961
5563
  function walkSync(directory, optionsOrSettings) {
4962
5564
  const settings = getSettings(optionsOrSettings);
4963
5565
  const provider = new sync_1.default(directory, settings);
4964
5566
  return provider.read();
4965
5567
  }
5568
+ __name(walkSync, "walkSync");
4966
5569
  exports.walkSync = walkSync;
4967
5570
  function walkStream(directory, optionsOrSettings) {
4968
5571
  const settings = getSettings(optionsOrSettings);
4969
5572
  const provider = new stream_1.default(directory, settings);
4970
5573
  return provider.read();
4971
5574
  }
5575
+ __name(walkStream, "walkStream");
4972
5576
  exports.walkStream = walkStream;
4973
5577
  function getSettings(settingsOrOptions = {}) {
4974
5578
  if (settingsOrOptions instanceof settings_1.default) {
@@ -4976,6 +5580,7 @@ var require_out3 = __commonJS({
4976
5580
  }
4977
5581
  return new settings_1.default(settingsOrOptions);
4978
5582
  }
5583
+ __name(getSettings, "getSettings");
4979
5584
  }
4980
5585
  });
4981
5586
 
@@ -4983,11 +5588,16 @@ var require_out3 = __commonJS({
4983
5588
  var require_reader2 = __commonJS({
4984
5589
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/reader.js"(exports) {
4985
5590
  "use strict";
4986
- Object.defineProperty(exports, "__esModule", { value: true });
5591
+ Object.defineProperty(exports, "__esModule", {
5592
+ value: true
5593
+ });
4987
5594
  var path2 = __require("path");
4988
5595
  var fsStat = require_out();
4989
5596
  var utils = require_utils3();
4990
- var Reader = class {
5597
+ var Reader = class Reader {
5598
+ static {
5599
+ __name(this, "Reader");
5600
+ }
4991
5601
  constructor(_settings) {
4992
5602
  this._settings = _settings;
4993
5603
  this._fsStatSettings = new fsStat.Settings({
@@ -5022,12 +5632,17 @@ var require_reader2 = __commonJS({
5022
5632
  var require_stream3 = __commonJS({
5023
5633
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/stream.js"(exports) {
5024
5634
  "use strict";
5025
- Object.defineProperty(exports, "__esModule", { value: true });
5635
+ Object.defineProperty(exports, "__esModule", {
5636
+ value: true
5637
+ });
5026
5638
  var stream_1 = __require("stream");
5027
5639
  var fsStat = require_out();
5028
5640
  var fsWalk = require_out3();
5029
5641
  var reader_1 = require_reader2();
5030
- var ReaderStream = class extends reader_1.default {
5642
+ var ReaderStream = class ReaderStream extends reader_1.default {
5643
+ static {
5644
+ __name(this, "ReaderStream");
5645
+ }
5031
5646
  constructor() {
5032
5647
  super(...arguments);
5033
5648
  this._walkStream = fsWalk.walkStream;
@@ -5038,7 +5653,9 @@ var require_stream3 = __commonJS({
5038
5653
  }
5039
5654
  static(patterns, options) {
5040
5655
  const filepaths = patterns.map(this._getFullEntryPath, this);
5041
- const stream = new stream_1.PassThrough({ objectMode: true });
5656
+ const stream = new stream_1.PassThrough({
5657
+ objectMode: true
5658
+ });
5042
5659
  stream._write = (index, _enc, done) => {
5043
5660
  return this._getEntry(filepaths[index], patterns[index], options).then((entry) => {
5044
5661
  if (entry !== null && options.entryFilter(entry)) {
@@ -5079,11 +5696,16 @@ var require_stream3 = __commonJS({
5079
5696
  var require_async5 = __commonJS({
5080
5697
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/async.js"(exports) {
5081
5698
  "use strict";
5082
- Object.defineProperty(exports, "__esModule", { value: true });
5699
+ Object.defineProperty(exports, "__esModule", {
5700
+ value: true
5701
+ });
5083
5702
  var fsWalk = require_out3();
5084
5703
  var reader_1 = require_reader2();
5085
5704
  var stream_1 = require_stream3();
5086
- var ReaderAsync = class extends reader_1.default {
5705
+ var ReaderAsync = class ReaderAsync extends reader_1.default {
5706
+ static {
5707
+ __name(this, "ReaderAsync");
5708
+ }
5087
5709
  constructor() {
5088
5710
  super(...arguments);
5089
5711
  this._walkAsync = fsWalk.walk;
@@ -5118,9 +5740,14 @@ var require_async5 = __commonJS({
5118
5740
  var require_matcher = __commonJS({
5119
5741
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/matcher.js"(exports) {
5120
5742
  "use strict";
5121
- Object.defineProperty(exports, "__esModule", { value: true });
5743
+ Object.defineProperty(exports, "__esModule", {
5744
+ value: true
5745
+ });
5122
5746
  var utils = require_utils3();
5123
- var Matcher = class {
5747
+ var Matcher = class Matcher {
5748
+ static {
5749
+ __name(this, "Matcher");
5750
+ }
5124
5751
  constructor(_patterns, _settings, _micromatchOptions) {
5125
5752
  this._patterns = _patterns;
5126
5753
  this._settings = _settings;
@@ -5169,9 +5796,14 @@ var require_matcher = __commonJS({
5169
5796
  var require_partial = __commonJS({
5170
5797
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/matchers/partial.js"(exports) {
5171
5798
  "use strict";
5172
- Object.defineProperty(exports, "__esModule", { value: true });
5799
+ Object.defineProperty(exports, "__esModule", {
5800
+ value: true
5801
+ });
5173
5802
  var matcher_1 = require_matcher();
5174
- var PartialMatcher = class extends matcher_1.default {
5803
+ var PartialMatcher = class PartialMatcher extends matcher_1.default {
5804
+ static {
5805
+ __name(this, "PartialMatcher");
5806
+ }
5175
5807
  match(filepath) {
5176
5808
  const parts = filepath.split("/");
5177
5809
  const levels = parts.length;
@@ -5206,10 +5838,15 @@ var require_partial = __commonJS({
5206
5838
  var require_deep = __commonJS({
5207
5839
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/deep.js"(exports) {
5208
5840
  "use strict";
5209
- Object.defineProperty(exports, "__esModule", { value: true });
5841
+ Object.defineProperty(exports, "__esModule", {
5842
+ value: true
5843
+ });
5210
5844
  var utils = require_utils3();
5211
5845
  var partial_1 = require_partial();
5212
- var DeepFilter = class {
5846
+ var DeepFilter = class DeepFilter {
5847
+ static {
5848
+ __name(this, "DeepFilter");
5849
+ }
5213
5850
  constructor(_settings, _micromatchOptions) {
5214
5851
  this._settings = _settings;
5215
5852
  this._micromatchOptions = _micromatchOptions;
@@ -5271,9 +5908,14 @@ var require_deep = __commonJS({
5271
5908
  var require_entry = __commonJS({
5272
5909
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/entry.js"(exports) {
5273
5910
  "use strict";
5274
- Object.defineProperty(exports, "__esModule", { value: true });
5911
+ Object.defineProperty(exports, "__esModule", {
5912
+ value: true
5913
+ });
5275
5914
  var utils = require_utils3();
5276
- var EntryFilter = class {
5915
+ var EntryFilter = class EntryFilter {
5916
+ static {
5917
+ __name(this, "EntryFilter");
5918
+ }
5277
5919
  constructor(_settings, _micromatchOptions) {
5278
5920
  this._settings = _settings;
5279
5921
  this._micromatchOptions = _micromatchOptions;
@@ -5286,8 +5928,12 @@ var require_entry = __commonJS({
5286
5928
  all: utils.pattern.convertPatternsToRe(positive, this._micromatchOptions)
5287
5929
  },
5288
5930
  negative: {
5289
- absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true })),
5290
- relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), { dot: true }))
5931
+ absolute: utils.pattern.convertPatternsToRe(absoluteNegative, Object.assign(Object.assign({}, this._micromatchOptions), {
5932
+ dot: true
5933
+ })),
5934
+ relative: utils.pattern.convertPatternsToRe(relativeNegative, Object.assign(Object.assign({}, this._micromatchOptions), {
5935
+ dot: true
5936
+ }))
5291
5937
  }
5292
5938
  };
5293
5939
  return (entry) => this._filter(entry, patterns);
@@ -5359,9 +6005,14 @@ var require_entry = __commonJS({
5359
6005
  var require_error = __commonJS({
5360
6006
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/filters/error.js"(exports) {
5361
6007
  "use strict";
5362
- Object.defineProperty(exports, "__esModule", { value: true });
6008
+ Object.defineProperty(exports, "__esModule", {
6009
+ value: true
6010
+ });
5363
6011
  var utils = require_utils3();
5364
- var ErrorFilter = class {
6012
+ var ErrorFilter = class ErrorFilter {
6013
+ static {
6014
+ __name(this, "ErrorFilter");
6015
+ }
5365
6016
  constructor(_settings) {
5366
6017
  this._settings = _settings;
5367
6018
  }
@@ -5380,9 +6031,14 @@ var require_error = __commonJS({
5380
6031
  var require_entry2 = __commonJS({
5381
6032
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/transformers/entry.js"(exports) {
5382
6033
  "use strict";
5383
- Object.defineProperty(exports, "__esModule", { value: true });
6034
+ Object.defineProperty(exports, "__esModule", {
6035
+ value: true
6036
+ });
5384
6037
  var utils = require_utils3();
5385
- var EntryTransformer = class {
6038
+ var EntryTransformer = class EntryTransformer {
6039
+ static {
6040
+ __name(this, "EntryTransformer");
6041
+ }
5386
6042
  constructor(_settings) {
5387
6043
  this._settings = _settings;
5388
6044
  }
@@ -5401,7 +6057,9 @@ var require_entry2 = __commonJS({
5401
6057
  if (!this._settings.objectMode) {
5402
6058
  return filepath;
5403
6059
  }
5404
- return Object.assign(Object.assign({}, entry), { path: filepath });
6060
+ return Object.assign(Object.assign({}, entry), {
6061
+ path: filepath
6062
+ });
5405
6063
  }
5406
6064
  };
5407
6065
  exports.default = EntryTransformer;
@@ -5412,13 +6070,18 @@ var require_entry2 = __commonJS({
5412
6070
  var require_provider = __commonJS({
5413
6071
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/provider.js"(exports) {
5414
6072
  "use strict";
5415
- Object.defineProperty(exports, "__esModule", { value: true });
6073
+ Object.defineProperty(exports, "__esModule", {
6074
+ value: true
6075
+ });
5416
6076
  var path2 = __require("path");
5417
6077
  var deep_1 = require_deep();
5418
6078
  var entry_1 = require_entry();
5419
6079
  var error_1 = require_error();
5420
6080
  var entry_2 = require_entry2();
5421
- var Provider = class {
6081
+ var Provider = class Provider {
6082
+ static {
6083
+ __name(this, "Provider");
6084
+ }
5422
6085
  constructor(_settings) {
5423
6086
  this._settings = _settings;
5424
6087
  this.errorFilter = new error_1.default(this._settings);
@@ -5466,10 +6129,15 @@ var require_provider = __commonJS({
5466
6129
  var require_async6 = __commonJS({
5467
6130
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/async.js"(exports) {
5468
6131
  "use strict";
5469
- Object.defineProperty(exports, "__esModule", { value: true });
6132
+ Object.defineProperty(exports, "__esModule", {
6133
+ value: true
6134
+ });
5470
6135
  var async_1 = require_async5();
5471
6136
  var provider_1 = require_provider();
5472
- var ProviderAsync = class extends provider_1.default {
6137
+ var ProviderAsync = class ProviderAsync extends provider_1.default {
6138
+ static {
6139
+ __name(this, "ProviderAsync");
6140
+ }
5473
6141
  constructor() {
5474
6142
  super(...arguments);
5475
6143
  this._reader = new async_1.default(this._settings);
@@ -5495,11 +6163,16 @@ var require_async6 = __commonJS({
5495
6163
  var require_stream4 = __commonJS({
5496
6164
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/stream.js"(exports) {
5497
6165
  "use strict";
5498
- Object.defineProperty(exports, "__esModule", { value: true });
6166
+ Object.defineProperty(exports, "__esModule", {
6167
+ value: true
6168
+ });
5499
6169
  var stream_1 = __require("stream");
5500
6170
  var stream_2 = require_stream3();
5501
6171
  var provider_1 = require_provider();
5502
- var ProviderStream = class extends provider_1.default {
6172
+ var ProviderStream = class ProviderStream extends provider_1.default {
6173
+ static {
6174
+ __name(this, "ProviderStream");
6175
+ }
5503
6176
  constructor() {
5504
6177
  super(...arguments);
5505
6178
  this._reader = new stream_2.default(this._settings);
@@ -5508,8 +6181,11 @@ var require_stream4 = __commonJS({
5508
6181
  const root = this._getRootDirectory(task);
5509
6182
  const options = this._getReaderOptions(task);
5510
6183
  const source = this.api(root, task, options);
5511
- const destination = new stream_1.Readable({ objectMode: true, read: () => {
5512
- } });
6184
+ const destination = new stream_1.Readable({
6185
+ objectMode: true,
6186
+ read: /* @__PURE__ */ __name(() => {
6187
+ }, "read")
6188
+ });
5513
6189
  source.once("error", (error) => destination.emit("error", error)).on("data", (entry) => destination.emit("data", options.transform(entry))).once("end", () => destination.emit("end"));
5514
6190
  destination.once("close", () => source.destroy());
5515
6191
  return destination;
@@ -5529,11 +6205,16 @@ var require_stream4 = __commonJS({
5529
6205
  var require_sync5 = __commonJS({
5530
6206
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/readers/sync.js"(exports) {
5531
6207
  "use strict";
5532
- Object.defineProperty(exports, "__esModule", { value: true });
6208
+ Object.defineProperty(exports, "__esModule", {
6209
+ value: true
6210
+ });
5533
6211
  var fsStat = require_out();
5534
6212
  var fsWalk = require_out3();
5535
6213
  var reader_1 = require_reader2();
5536
- var ReaderSync = class extends reader_1.default {
6214
+ var ReaderSync = class ReaderSync extends reader_1.default {
6215
+ static {
6216
+ __name(this, "ReaderSync");
6217
+ }
5537
6218
  constructor() {
5538
6219
  super(...arguments);
5539
6220
  this._walkSync = fsWalk.walkSync;
@@ -5577,10 +6258,15 @@ var require_sync5 = __commonJS({
5577
6258
  var require_sync6 = __commonJS({
5578
6259
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/providers/sync.js"(exports) {
5579
6260
  "use strict";
5580
- Object.defineProperty(exports, "__esModule", { value: true });
6261
+ Object.defineProperty(exports, "__esModule", {
6262
+ value: true
6263
+ });
5581
6264
  var sync_1 = require_sync5();
5582
6265
  var provider_1 = require_provider();
5583
- var ProviderSync = class extends provider_1.default {
6266
+ var ProviderSync = class ProviderSync extends provider_1.default {
6267
+ static {
6268
+ __name(this, "ProviderSync");
6269
+ }
5584
6270
  constructor() {
5585
6271
  super(...arguments);
5586
6272
  this._reader = new sync_1.default(this._settings);
@@ -5606,7 +6292,9 @@ var require_sync6 = __commonJS({
5606
6292
  var require_settings4 = __commonJS({
5607
6293
  "../node_modules/.pnpm/fast-glob@3.3.3/node_modules/fast-glob/out/settings.js"(exports) {
5608
6294
  "use strict";
5609
- Object.defineProperty(exports, "__esModule", { value: true });
6295
+ Object.defineProperty(exports, "__esModule", {
6296
+ value: true
6297
+ });
5610
6298
  exports.DEFAULT_FILE_SYSTEM_ADAPTER = void 0;
5611
6299
  var fs = __require("fs");
5612
6300
  var os = __require("os");
@@ -5619,7 +6307,10 @@ var require_settings4 = __commonJS({
5619
6307
  readdir: fs.readdir,
5620
6308
  readdirSync: fs.readdirSync
5621
6309
  };
5622
- var Settings = class {
6310
+ var Settings = class Settings {
6311
+ static {
6312
+ __name(this, "Settings");
6313
+ }
5623
6314
  constructor(_options = {}) {
5624
6315
  this._options = _options;
5625
6316
  this.absolute = this._getValue(this._options.absolute, false);
@@ -5678,6 +6369,7 @@ var require_out4 = __commonJS({
5678
6369
  const result = await Promise.all(works);
5679
6370
  return utils.array.flatten(result);
5680
6371
  }
6372
+ __name(FastGlob, "FastGlob");
5681
6373
  (function(FastGlob2) {
5682
6374
  FastGlob2.glob = FastGlob2;
5683
6375
  FastGlob2.globSync = sync;
@@ -5688,12 +6380,14 @@ var require_out4 = __commonJS({
5688
6380
  const works = getWorks(source, sync_1.default, options);
5689
6381
  return utils.array.flatten(works);
5690
6382
  }
6383
+ __name(sync, "sync");
5691
6384
  FastGlob2.sync = sync;
5692
6385
  function stream(source, options) {
5693
6386
  assertPatternsInput(source);
5694
6387
  const works = getWorks(source, stream_1.default, options);
5695
6388
  return utils.stream.merge(works);
5696
6389
  }
6390
+ __name(stream, "stream");
5697
6391
  FastGlob2.stream = stream;
5698
6392
  function generateTasks(source, options) {
5699
6393
  assertPatternsInput(source);
@@ -5701,22 +6395,26 @@ var require_out4 = __commonJS({
5701
6395
  const settings = new settings_1.default(options);
5702
6396
  return taskManager.generate(patterns, settings);
5703
6397
  }
6398
+ __name(generateTasks, "generateTasks");
5704
6399
  FastGlob2.generateTasks = generateTasks;
5705
6400
  function isDynamicPattern(source, options) {
5706
6401
  assertPatternsInput(source);
5707
6402
  const settings = new settings_1.default(options);
5708
6403
  return utils.pattern.isDynamicPattern(source, settings);
5709
6404
  }
6405
+ __name(isDynamicPattern, "isDynamicPattern");
5710
6406
  FastGlob2.isDynamicPattern = isDynamicPattern;
5711
6407
  function escapePath(source) {
5712
6408
  assertPatternsInput(source);
5713
6409
  return utils.path.escape(source);
5714
6410
  }
6411
+ __name(escapePath, "escapePath");
5715
6412
  FastGlob2.escapePath = escapePath;
5716
6413
  function convertPathToPattern(source) {
5717
6414
  assertPatternsInput(source);
5718
6415
  return utils.path.convertPathToPattern(source);
5719
6416
  }
6417
+ __name(convertPathToPattern, "convertPathToPattern");
5720
6418
  FastGlob2.convertPathToPattern = convertPathToPattern;
5721
6419
  let posix;
5722
6420
  (function(posix2) {
@@ -5724,11 +6422,13 @@ var require_out4 = __commonJS({
5724
6422
  assertPatternsInput(source);
5725
6423
  return utils.path.escapePosixPath(source);
5726
6424
  }
6425
+ __name(escapePath2, "escapePath");
5727
6426
  posix2.escapePath = escapePath2;
5728
6427
  function convertPathToPattern2(source) {
5729
6428
  assertPatternsInput(source);
5730
6429
  return utils.path.convertPosixPathToPattern(source);
5731
6430
  }
6431
+ __name(convertPathToPattern2, "convertPathToPattern");
5732
6432
  posix2.convertPathToPattern = convertPathToPattern2;
5733
6433
  })(posix = FastGlob2.posix || (FastGlob2.posix = {}));
5734
6434
  let win32;
@@ -5737,11 +6437,13 @@ var require_out4 = __commonJS({
5737
6437
  assertPatternsInput(source);
5738
6438
  return utils.path.escapeWindowsPath(source);
5739
6439
  }
6440
+ __name(escapePath2, "escapePath");
5740
6441
  win322.escapePath = escapePath2;
5741
6442
  function convertPathToPattern2(source) {
5742
6443
  assertPatternsInput(source);
5743
6444
  return utils.path.convertWindowsPathToPattern(source);
5744
6445
  }
6446
+ __name(convertPathToPattern2, "convertPathToPattern");
5745
6447
  win322.convertPathToPattern = convertPathToPattern2;
5746
6448
  })(win32 = FastGlob2.win32 || (FastGlob2.win32 = {}));
5747
6449
  })(FastGlob || (FastGlob = {}));
@@ -5752,6 +6454,7 @@ var require_out4 = __commonJS({
5752
6454
  const provider = new _Provider(settings);
5753
6455
  return tasks.map(provider.read, provider);
5754
6456
  }
6457
+ __name(getWorks, "getWorks");
5755
6458
  function assertPatternsInput(input) {
5756
6459
  const source = [].concat(input);
5757
6460
  const isValidSource = source.every((item) => utils.string.isString(item) && !utils.string.isEmpty(item));
@@ -5759,24 +6462,17 @@ var require_out4 = __commonJS({
5759
6462
  throw new TypeError("Patterns must be a string (non empty) or an array of strings");
5760
6463
  }
5761
6464
  }
6465
+ __name(assertPatternsInput, "assertPatternsInput");
5762
6466
  module.exports = FastGlob;
5763
6467
  }
5764
6468
  });
5765
6469
 
5766
6470
  // src/openapi/aggregate.ts
5767
- import {
5768
- OpenApiGeneratorV31 as OpenApiGeneratorV312,
5769
- OpenAPIRegistry as OpenAPIRegistry2,
5770
- extendZodWithOpenApi as extendZodWithOpenApi2
5771
- } from "@asteasolutions/zod-to-openapi";
6471
+ import { OpenApiGeneratorV31 as OpenApiGeneratorV312, OpenAPIRegistry as OpenAPIRegistry2, extendZodWithOpenApi as extendZodWithOpenApi2 } from "@asteasolutions/zod-to-openapi";
5772
6472
  import { z as z2 } from "zod";
5773
6473
 
5774
6474
  // src/openapi/convert.ts
5775
- import {
5776
- OpenAPIRegistry,
5777
- OpenApiGeneratorV31,
5778
- extendZodWithOpenApi
5779
- } from "@asteasolutions/zod-to-openapi";
6475
+ import { OpenAPIRegistry, OpenApiGeneratorV31, extendZodWithOpenApi } from "@asteasolutions/zod-to-openapi";
5780
6476
  import { z } from "zod";
5781
6477
 
5782
6478
  // src/openapi/auth.ts
@@ -5784,6 +6480,7 @@ function isAuthEffectivelyRequired(auth) {
5784
6480
  if (typeof auth === "boolean") return auth;
5785
6481
  return auth.required !== false;
5786
6482
  }
6483
+ __name(isAuthEffectivelyRequired, "isAuthEffectivelyRequired");
5787
6484
 
5788
6485
  // src/openapi/controllers.ts
5789
6486
  var import_fast_glob = __toESM(require_out4(), 1);
@@ -5795,12 +6492,14 @@ function capitalizeSegment(s) {
5795
6492
  if (s.length === 0) return s;
5796
6493
  return s.charAt(0).toUpperCase() + s.slice(1);
5797
6494
  }
6495
+ __name(capitalizeSegment, "capitalizeSegment");
5798
6496
  function deriveControllerName(className) {
5799
6497
  let name = className;
5800
6498
  if (name.endsWith("Controller")) name = name.slice(0, -"Controller".length);
5801
6499
  if (name === "") return "";
5802
6500
  return name.charAt(0).toLowerCase() + name.slice(1);
5803
6501
  }
6502
+ __name(deriveControllerName, "deriveControllerName");
5804
6503
  function deriveControllerOperationId(method, fullPath) {
5805
6504
  const trimmed = fullPath.replace(/^\//, "");
5806
6505
  const parts = trimmed.split("/");
@@ -5816,6 +6515,7 @@ function deriveControllerOperationId(method, fullPath) {
5816
6515
  }
5817
6516
  return result;
5818
6517
  }
6518
+ __name(deriveControllerOperationId, "deriveControllerOperationId");
5819
6519
  function joinControllerPath(basePath, subpath) {
5820
6520
  const combined = `${basePath}/${subpath}`.replace(/\/{2,}/g, "/");
5821
6521
  if (combined.length > 1 && combined.endsWith("/")) {
@@ -5823,6 +6523,7 @@ function joinControllerPath(basePath, subpath) {
5823
6523
  }
5824
6524
  return combined;
5825
6525
  }
6526
+ __name(joinControllerPath, "joinControllerPath");
5826
6527
 
5827
6528
  // src/openapi/controllers.ts
5828
6529
  var CONTROLLER_GLOB = "controllers/**/*.ts";
@@ -5841,16 +6542,17 @@ function flattenController(controller) {
5841
6542
  const routes = getRoutes(controller);
5842
6543
  const kindsByMethod = /* @__PURE__ */ new Map();
5843
6544
  for (const route of routes) {
5844
- const seen = kindsByMethod.get(route.fnName) ?? { sse: false, upload: false };
6545
+ const seen = kindsByMethod.get(route.fnName) ?? {
6546
+ sse: false,
6547
+ upload: false
6548
+ };
5845
6549
  if (route.options.sseConfig !== void 0) seen.sse = true;
5846
6550
  if (route.options.uploadConfig !== void 0) seen.upload = true;
5847
6551
  kindsByMethod.set(route.fnName, seen);
5848
6552
  }
5849
6553
  for (const [fnName, seen] of kindsByMethod) {
5850
6554
  if (seen.sse && seen.upload) {
5851
- throw new Error(
5852
- `${controller.name}.${fnName} declares BOTH @Sse and @Upload. One method cannot be both a streaming response and an upload completion handler \u2014 the two describe the same handler twice and the second one read silently wins. Split them into two methods.`
5853
- );
6555
+ throw new Error(`${controller.name}.${fnName} declares BOTH @Sse and @Upload. One method cannot be both a streaming response and an upload completion handler \u2014 the two describe the same handler twice and the second one read silently wins. Split them into two methods.`);
5854
6556
  }
5855
6557
  }
5856
6558
  const out = [];
@@ -5890,21 +6592,33 @@ function flattenController(controller) {
5890
6592
  params: route.params,
5891
6593
  inputSchemas,
5892
6594
  pathParams,
5893
- ...route.returnSchema !== void 0 ? { returnSchema: route.returnSchema } : {},
5894
- ...route.options.rateLimit !== void 0 ? { rateLimit: route.options.rateLimit } : {},
5895
- ...allThrows.length > 0 ? { throws: allThrows } : {},
5896
- ...route.options.uploadConfig !== void 0 ? { uploadConfig: route.options.uploadConfig } : {},
5897
- ...route.options.sseConfig !== void 0 ? { sseConfig: route.options.sseConfig } : {}
6595
+ ...route.returnSchema !== void 0 ? {
6596
+ returnSchema: route.returnSchema
6597
+ } : {},
6598
+ ...route.options.rateLimit !== void 0 ? {
6599
+ rateLimit: route.options.rateLimit
6600
+ } : {},
6601
+ ...allThrows.length > 0 ? {
6602
+ throws: allThrows
6603
+ } : {},
6604
+ ...route.options.uploadConfig !== void 0 ? {
6605
+ uploadConfig: route.options.uploadConfig
6606
+ } : {},
6607
+ ...route.options.sseConfig !== void 0 ? {
6608
+ sseConfig: route.options.sseConfig
6609
+ } : {}
5898
6610
  });
5899
6611
  }
5900
6612
  return out;
5901
6613
  }
6614
+ __name(flattenController, "flattenController");
5902
6615
  function operationIdFor(route) {
5903
6616
  if (route.controllerName !== "" && route.fnName !== "") {
5904
6617
  return `${route.controllerName}.${route.fnName}`;
5905
6618
  }
5906
6619
  return deriveControllerOperationId(route.method, route.fullPath);
5907
6620
  }
6621
+ __name(operationIdFor, "operationIdFor");
5908
6622
  async function discoverControllerFiles(projectRoot) {
5909
6623
  const matches = await (0, import_fast_glob.default)(CONTROLLER_GLOB, {
5910
6624
  cwd: projectRoot,
@@ -5913,19 +6627,24 @@ async function discoverControllerFiles(projectRoot) {
5913
6627
  onlyFiles: true,
5914
6628
  dot: false
5915
6629
  });
5916
- const collator = new Intl.Collator("en", { numeric: true, sensitivity: "base" });
6630
+ const collator = new Intl.Collator("en", {
6631
+ numeric: true,
6632
+ sensitivity: "base"
6633
+ });
5917
6634
  matches.sort(collator.compare);
5918
6635
  return matches;
5919
6636
  }
6637
+ __name(discoverControllerFiles, "discoverControllerFiles");
5920
6638
  var ControllerLoadError = class extends Error {
5921
- constructor(relativePath, message, cause) {
5922
- super(`${message} (file: ${relativePath})`);
5923
- this.relativePath = relativePath;
5924
- this.cause = cause;
5925
- this.name = "ControllerLoadError";
6639
+ static {
6640
+ __name(this, "ControllerLoadError");
5926
6641
  }
5927
6642
  relativePath;
5928
6643
  cause;
6644
+ constructor(relativePath, message, cause) {
6645
+ super(`${message} (file: ${relativePath})`), this.relativePath = relativePath, this.cause = cause;
6646
+ this.name = "ControllerLoadError";
6647
+ }
5929
6648
  };
5930
6649
  async function loadControllers(absolutePaths, projectRoot, options = {}) {
5931
6650
  const timeoutMs = options.timeoutMs ?? 5e3;
@@ -5934,24 +6653,21 @@ async function loadControllers(absolutePaths, projectRoot, options = {}) {
5934
6653
  const relativePath = path.relative(projectRoot, absolutePath).split(path.sep).join("/");
5935
6654
  let mod;
5936
6655
  try {
5937
- mod = await withTimeout(
5938
- () => import(pathToFileURL(absolutePath).href),
5939
- timeoutMs,
5940
- `import timed out after ${timeoutMs}ms`
5941
- );
6656
+ mod = await withTimeout(() => import(pathToFileURL(absolutePath).href), timeoutMs, `import timed out after ${timeoutMs}ms`);
5942
6657
  } catch (cause) {
5943
6658
  throw new ControllerLoadError(relativePath, "failed to import controller module", cause);
5944
6659
  }
5945
6660
  if (!isController(mod.default)) {
5946
- throw new ControllerLoadError(
5947
- relativePath,
5948
- "module has no default-exported @Controller class \u2014 every controller file must `export default` a @Controller-decorated class"
5949
- );
6661
+ throw new ControllerLoadError(relativePath, "module has no default-exported @Controller class \u2014 every controller file must `export default` a @Controller-decorated class");
5950
6662
  }
5951
- out.push({ relativePath, controller: mod.default });
6663
+ out.push({
6664
+ relativePath,
6665
+ controller: mod.default
6666
+ });
5952
6667
  }
5953
6668
  return out;
5954
6669
  }
6670
+ __name(loadControllers, "loadControllers");
5955
6671
  function withTimeout(fn, ms, message) {
5956
6672
  return new Promise((resolve, reject) => {
5957
6673
  const t = setTimeout(() => reject(new Error(message)), ms);
@@ -5964,6 +6680,7 @@ function withTimeout(fn, ms, message) {
5964
6680
  });
5965
6681
  });
5966
6682
  }
6683
+ __name(withTimeout, "withTimeout");
5967
6684
 
5968
6685
  // src/openapi/convert.ts
5969
6686
  extendZodWithOpenApi(z);
@@ -5980,6 +6697,7 @@ function registerErrorEnvelope(registry) {
5980
6697
  });
5981
6698
  registry.register(ERROR_ENVELOPE_REF, envelope);
5982
6699
  }
6700
+ __name(registerErrorEnvelope, "registerErrorEnvelope");
5983
6701
  function registerControllerRoute(registry, route) {
5984
6702
  registerOperation(registry, {
5985
6703
  method: route.method,
@@ -5992,21 +6710,44 @@ function registerControllerRoute(registry, route) {
5992
6710
  returnSchema: route.returnSchema,
5993
6711
  effectiveAuth: route.effectiveAuth,
5994
6712
  throws: route.throws,
5995
- ...route.uploadConfig !== void 0 ? { uploadConfig: route.uploadConfig } : {},
5996
- ...route.sseConfig !== void 0 ? { sseConfig: route.sseConfig } : {}
6713
+ ...route.uploadConfig !== void 0 ? {
6714
+ uploadConfig: route.uploadConfig
6715
+ } : {},
6716
+ ...route.sseConfig !== void 0 ? {
6717
+ sseConfig: route.sseConfig
6718
+ } : {}
5997
6719
  });
5998
6720
  }
6721
+ __name(registerControllerRoute, "registerControllerRoute");
5999
6722
  function registerOperation(registry, op) {
6000
6723
  const endpointPath = op.path;
6001
6724
  const method = op.method.toLowerCase();
6002
6725
  const refined = isRefinedSchema(op.body) || isRefinedSchema(op.query) || isRefinedSchema(op.returnSchema);
6003
- const requestBody = op.body !== void 0 ? { required: true, content: { "application/json": { schema: op.body } } } : void 0;
6004
- const paramsSchema = op.pathParams.length > 0 ? z.object(Object.fromEntries(op.pathParams.map((n) => [n, z.string()]))) : void 0;
6726
+ const requestBody = op.body !== void 0 ? {
6727
+ required: true,
6728
+ content: {
6729
+ "application/json": {
6730
+ schema: op.body
6731
+ }
6732
+ }
6733
+ } : void 0;
6734
+ const paramsSchema = op.pathParams.length > 0 ? z.object(Object.fromEntries(op.pathParams.map((n) => [
6735
+ n,
6736
+ z.string()
6737
+ ]))) : void 0;
6005
6738
  const request = {
6006
- ...requestBody ? { body: requestBody } : {},
6007
- ...paramsSchema ? { params: paramsSchema } : {},
6008
- ...op.query ? { query: op.query } : {},
6009
- ...op.headers ? { headers: op.headers } : {}
6739
+ ...requestBody ? {
6740
+ body: requestBody
6741
+ } : {},
6742
+ ...paramsSchema ? {
6743
+ params: paramsSchema
6744
+ } : {},
6745
+ ...op.query ? {
6746
+ query: op.query
6747
+ } : {},
6748
+ ...op.headers ? {
6749
+ headers: op.headers
6750
+ } : {}
6010
6751
  };
6011
6752
  const resolvedThrows = resolveThrows(op.throws);
6012
6753
  const responses = {
@@ -6029,7 +6770,11 @@ function registerOperation(registry, op) {
6029
6770
  500: errorResponse("Internal error"),
6030
6771
  ...typedErrorResponses(resolvedThrows)
6031
6772
  };
6032
- const security = isAuthEffectivelyRequired(op.effectiveAuth) ? [{ [BEARER_SCHEME]: [] }] : void 0;
6773
+ const security = isAuthEffectivelyRequired(op.effectiveAuth) ? [
6774
+ {
6775
+ [BEARER_SCHEME]: []
6776
+ }
6777
+ ] : void 0;
6033
6778
  registry.registerPath({
6034
6779
  // zod-to-openapi@7.3.4's `Method` union predates RFC 10008 and lacks
6035
6780
  // "query"; the union is type-only (the lib never validates the method at
@@ -6038,14 +6783,24 @@ function registerOperation(registry, op) {
6038
6783
  method,
6039
6784
  path: endpointPath,
6040
6785
  operationId: op.operationId,
6041
- tags: ["backend"],
6786
+ tags: [
6787
+ "backend"
6788
+ ],
6042
6789
  summary: `Invoke the ${op.operationId} backend endpoint.`,
6043
6790
  description: `Runtime path: ${endpointPath}`,
6044
- ...Object.keys(request).length > 0 ? { request } : {},
6045
- ...security ? { security } : {},
6791
+ ...Object.keys(request).length > 0 ? {
6792
+ request
6793
+ } : {},
6794
+ ...security ? {
6795
+ security
6796
+ } : {},
6046
6797
  responses,
6047
- ...refined ? { "x-palbase-refined": true } : {},
6048
- ...resolvedThrows.length > 0 ? { "x-palbase-errors": errorExtension(resolvedThrows) } : {},
6798
+ ...refined ? {
6799
+ "x-palbase-refined": true
6800
+ } : {},
6801
+ ...resolvedThrows.length > 0 ? {
6802
+ "x-palbase-errors": errorExtension(resolvedThrows)
6803
+ } : {},
6049
6804
  // WHAT MAKES AN UPLOAD ROUTE AN UPLOAD ROUTE, to every generator.
6050
6805
  //
6051
6806
  // An `@Upload` route's bytes never pass through the backend: the client
@@ -6070,9 +6825,12 @@ function registerOperation(registry, op) {
6070
6825
  // plain POST, and every client generated from it reads the body ONCE
6071
6826
  // instead of iterating frames — a generated client that compiles, runs and
6072
6827
  // is simply wrong. Same failure class as the upload extension above.
6073
- ...op.sseConfig !== void 0 ? { "x-palbase-sse": {} } : {}
6828
+ ...op.sseConfig !== void 0 ? {
6829
+ "x-palbase-sse": {}
6830
+ } : {}
6074
6831
  });
6075
6832
  }
6833
+ __name(registerOperation, "registerOperation");
6076
6834
  function resolveThrows(throws) {
6077
6835
  if (!throws || throws.length === 0) return [];
6078
6836
  const registry = getErrorRegistry();
@@ -6087,11 +6845,14 @@ function resolveThrows(throws) {
6087
6845
  name: t.name,
6088
6846
  code: t.code,
6089
6847
  status: entry.status,
6090
- ...entry.dataSchema ? { dataSchema: entry.dataSchema } : {}
6848
+ ...entry.dataSchema ? {
6849
+ dataSchema: entry.dataSchema
6850
+ } : {}
6091
6851
  });
6092
6852
  }
6093
6853
  return out;
6094
6854
  }
6855
+ __name(resolveThrows, "resolveThrows");
6095
6856
  function errorExtension(resolved) {
6096
6857
  const out = {};
6097
6858
  for (const t of resolved) {
@@ -6104,42 +6865,61 @@ function errorExtension(resolved) {
6104
6865
  }
6105
6866
  return out;
6106
6867
  }
6868
+ __name(errorExtension, "errorExtension");
6107
6869
  function lowerCamel(name) {
6108
6870
  return name.charAt(0).toLowerCase() + name.slice(1);
6109
6871
  }
6872
+ __name(lowerCamel, "lowerCamel");
6110
6873
  function typedErrorResponses(resolved) {
6111
6874
  const byStatus = /* @__PURE__ */ new Map();
6112
6875
  for (const t of resolved) {
6113
6876
  const group = byStatus.get(t.status);
6114
6877
  if (group) group.push(t);
6115
- else byStatus.set(t.status, [t]);
6878
+ else byStatus.set(t.status, [
6879
+ t
6880
+ ]);
6116
6881
  }
6117
6882
  const out = {};
6118
- for (const status of [...byStatus.keys()].sort((a, b) => a - b)) {
6883
+ for (const status of [
6884
+ ...byStatus.keys()
6885
+ ].sort((a, b) => a - b)) {
6119
6886
  const group = byStatus.get(status) ?? [];
6120
6887
  const schemas = group.map((t) => envelopeSchemaObject(t));
6121
- const schema = schemas.length === 1 && schemas[0] ? schemas[0] : { oneOf: schemas };
6888
+ const schema = schemas.length === 1 && schemas[0] ? schemas[0] : {
6889
+ oneOf: schemas
6890
+ };
6122
6891
  out[String(status)] = {
6123
6892
  description: group.map((t) => t.code).join(" | "),
6124
- content: { "application/json": { schema } }
6893
+ content: {
6894
+ "application/json": {
6895
+ schema
6896
+ }
6897
+ }
6125
6898
  };
6126
6899
  }
6127
6900
  return out;
6128
6901
  }
6902
+ __name(typedErrorResponses, "typedErrorResponses");
6129
6903
  function envelopeSchemaObject(t) {
6130
6904
  const envelope = z.object({
6131
6905
  error: z.literal(t.code),
6132
6906
  error_description: z.string(),
6133
6907
  status: z.number().int(),
6134
6908
  request_id: z.string(),
6135
- ...t.dataSchema ? { data: t.dataSchema } : {}
6909
+ ...t.dataSchema ? {
6910
+ data: t.dataSchema
6911
+ } : {}
6136
6912
  });
6137
6913
  const obj = toSchemaObject(envelope);
6138
6914
  if (obj.properties) {
6139
- obj.properties["error"] = { type: "string", const: t.code };
6915
+ obj.properties["error"] = {
6916
+ type: "string",
6917
+ const: t.code
6918
+ };
6140
6919
  }
6141
6920
  return obj;
6142
6921
  }
6922
+ __name(envelopeSchemaObject, "envelopeSchemaObject");
6143
6923
  function toSchemaObject(schema) {
6144
6924
  const TMP_REF = "__PalbaseTypedErrorEnvelope";
6145
6925
  const tmpRegistry = new OpenAPIRegistry();
@@ -6151,20 +6931,27 @@ function toSchemaObject(schema) {
6151
6931
  }
6152
6932
  return out;
6153
6933
  }
6934
+ __name(toSchemaObject, "toSchemaObject");
6154
6935
  function errorResponse(description) {
6155
6936
  return {
6156
6937
  description,
6157
6938
  content: {
6158
- "application/json": { schema: { $ref: `#/components/schemas/${ERROR_ENVELOPE_REF}` } }
6939
+ "application/json": {
6940
+ schema: {
6941
+ $ref: `#/components/schemas/${ERROR_ENVELOPE_REF}`
6942
+ }
6943
+ }
6159
6944
  }
6160
6945
  };
6161
6946
  }
6947
+ __name(errorResponse, "errorResponse");
6162
6948
  function isRefinedSchema(schema) {
6163
6949
  if (!schema) return false;
6164
6950
  const typeName = schema._def?.typeName;
6165
6951
  if (!typeName) return false;
6166
6952
  return typeName === "ZodEffects" || typeName === "ZodPreprocess" || typeName === "ZodTransform";
6167
6953
  }
6954
+ __name(isRefinedSchema, "isRefinedSchema");
6168
6955
  function firstUntypedField(schema) {
6169
6956
  const shape = schema?.shape;
6170
6957
  if (!shape) return void 0;
@@ -6174,47 +6961,50 @@ function firstUntypedField(schema) {
6174
6961
  }
6175
6962
  return void 0;
6176
6963
  }
6964
+ __name(firstUntypedField, "firstUntypedField");
6177
6965
  function assertRoomFieldsTyped(pattern, room) {
6178
6966
  for (const [event, schema] of Object.entries(room.events)) {
6179
6967
  const field = firstUntypedField(schema);
6180
6968
  if (field !== void 0) {
6181
- throw new Error(
6182
- `@Room("${pattern}") event "${event}" has an untyped field "${field}". An untyped payload makes every generated client opaque \u2014 declare its shape.`
6183
- );
6969
+ throw new Error(`@Room("${pattern}") event "${event}" has an untyped field "${field}". An untyped payload makes every generated client opaque \u2014 declare its shape.`);
6184
6970
  }
6185
6971
  }
6186
6972
  for (const [message, meta] of Object.entries(room.messages)) {
6187
6973
  const field = firstUntypedField(meta.schema);
6188
6974
  if (field !== void 0) {
6189
- throw new Error(
6190
- `@Room("${pattern}") message "${message}" has an untyped field "${field}". Inbound payloads reach the server \u2014 declare the shape so it can be validated.`
6191
- );
6975
+ throw new Error(`@Room("${pattern}") message "${message}" has an untyped field "${field}". Inbound payloads reach the server \u2014 declare the shape so it can be validated.`);
6192
6976
  }
6193
6977
  }
6194
6978
  }
6979
+ __name(assertRoomFieldsTyped, "assertRoomFieldsTyped");
6195
6980
  function roomExtension(room, register) {
6196
6981
  const events = {};
6197
6982
  for (const [name, schema] of Object.entries(room.events)) {
6198
- events[name] = { $ref: register(name, schema) };
6983
+ events[name] = {
6984
+ $ref: register(name, schema)
6985
+ };
6199
6986
  }
6200
6987
  const messages = {};
6201
6988
  for (const [name, meta] of Object.entries(room.messages)) {
6202
- messages[name] = { $ref: register(name, meta.schema) };
6989
+ messages[name] = {
6990
+ $ref: register(name, meta.schema)
6991
+ };
6203
6992
  }
6204
- return { events, messages, graceMs: room.graceMs };
6993
+ return {
6994
+ events,
6995
+ messages,
6996
+ graceMs: room.graceMs
6997
+ };
6205
6998
  }
6999
+ __name(roomExtension, "roomExtension");
6206
7000
 
6207
7001
  // src/openapi/aggregate.ts
6208
7002
  extendZodWithOpenApi2(z2);
6209
7003
  async function aggregateOpenAPI(projectRoot, options = {}) {
6210
- const loadedControllers = options.loadedControllers ?? await loadControllers(
6211
- await discoverControllerFiles(projectRoot),
6212
- projectRoot,
6213
- { timeoutMs: options.timeoutMs }
6214
- );
6215
- const controllerRoutes = loadedControllers.flatMap(
6216
- (lc) => flattenController(lc.controller)
6217
- );
7004
+ const loadedControllers = options.loadedControllers ?? await loadControllers(await discoverControllerFiles(projectRoot), projectRoot, {
7005
+ timeoutMs: options.timeoutMs
7006
+ });
7007
+ const controllerRoutes = loadedControllers.flatMap((lc) => flattenController(lc.controller));
6218
7008
  const allOperationIds = controllerRoutes.map((r) => operationIdFor(r));
6219
7009
  detectDuplicateOperationIds(allOperationIds);
6220
7010
  const registry = new OpenAPIRegistry2();
@@ -6257,17 +7047,17 @@ async function aggregateOpenAPI(projectRoot, options = {}) {
6257
7047
  operationIds: allOperationIds
6258
7048
  };
6259
7049
  }
7050
+ __name(aggregateOpenAPI, "aggregateOpenAPI");
6260
7051
  function detectDuplicateOperationIds(operationIds) {
6261
7052
  const seen = /* @__PURE__ */ new Set();
6262
7053
  for (const id of operationIds) {
6263
7054
  if (seen.has(id)) {
6264
- throw new Error(
6265
- `operationId collision for "${id}": two routes derive the same operationId. Rename the controller class or method so the derived operationId is unique.`
6266
- );
7055
+ throw new Error(`operationId collision for "${id}": two routes derive the same operationId. Rename the controller class or method so the derived operationId is unique.`);
6267
7056
  }
6268
7057
  seen.add(id);
6269
7058
  }
6270
7059
  }
7060
+ __name(detectDuplicateOperationIds, "detectDuplicateOperationIds");
6271
7061
  export {
6272
7062
  BEARER_SCHEME,
6273
7063
  ControllerLoadError,