@kubb/core 2.0.4 → 2.0.5

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 (41) hide show
  1. package/dist/{chunk-5Z57Z2SO.js → chunk-4A7WG6IA.js} +3 -3
  2. package/dist/{chunk-NZHABRCW.js → chunk-54P4AWHI.js} +3 -3
  3. package/dist/chunk-54P4AWHI.js.map +1 -0
  4. package/dist/{chunk-QS3TLDZN.cjs → chunk-5TK7TMV6.cjs} +5 -5
  5. package/dist/{chunk-IYT5Y4GK.js → chunk-7S67BJXQ.js} +2 -2
  6. package/dist/{chunk-TCVNI37N.cjs → chunk-E3ANGQ5N.cjs} +90 -90
  7. package/dist/{chunk-ANP6S23V.cjs → chunk-H47IKRXJ.cjs} +7 -7
  8. package/dist/{chunk-FGFTYKQS.js → chunk-HIE46T3F.js} +2 -2
  9. package/dist/{chunk-OTFKQILI.js → chunk-K2H7BYQB.js} +3 -3
  10. package/dist/{chunk-FVK2YAOX.js → chunk-NAWI7UXW.js} +2 -2
  11. package/dist/{chunk-MYRGSDE5.cjs → chunk-PLVKILIY.cjs} +7 -7
  12. package/dist/{chunk-5VM4RVM5.cjs → chunk-W2FP7ZWW.cjs} +7 -7
  13. package/dist/{chunk-PAJNBSPO.cjs → chunk-WZQO3EPM.cjs} +3 -3
  14. package/dist/chunk-WZQO3EPM.cjs.map +1 -0
  15. package/dist/{chunk-UICUGNAR.cjs → chunk-XDHI63G7.cjs} +4 -4
  16. package/dist/{chunk-WT27HKBG.js → chunk-XPOF4D5N.js} +2 -2
  17. package/dist/fs.cjs +14 -14
  18. package/dist/fs.js +3 -3
  19. package/dist/index.cjs +297 -297
  20. package/dist/index.js +7 -7
  21. package/dist/logger.cjs +11 -11
  22. package/dist/logger.js +3 -3
  23. package/dist/transformers.cjs +27 -27
  24. package/dist/transformers.js +5 -5
  25. package/dist/utils.cjs +15 -15
  26. package/dist/utils.js +3 -3
  27. package/package.json +3 -3
  28. package/dist/chunk-NZHABRCW.js.map +0 -1
  29. package/dist/chunk-PAJNBSPO.cjs.map +0 -1
  30. /package/dist/{chunk-5Z57Z2SO.js.map → chunk-4A7WG6IA.js.map} +0 -0
  31. /package/dist/{chunk-QS3TLDZN.cjs.map → chunk-5TK7TMV6.cjs.map} +0 -0
  32. /package/dist/{chunk-IYT5Y4GK.js.map → chunk-7S67BJXQ.js.map} +0 -0
  33. /package/dist/{chunk-TCVNI37N.cjs.map → chunk-E3ANGQ5N.cjs.map} +0 -0
  34. /package/dist/{chunk-ANP6S23V.cjs.map → chunk-H47IKRXJ.cjs.map} +0 -0
  35. /package/dist/{chunk-FGFTYKQS.js.map → chunk-HIE46T3F.js.map} +0 -0
  36. /package/dist/{chunk-OTFKQILI.js.map → chunk-K2H7BYQB.js.map} +0 -0
  37. /package/dist/{chunk-FVK2YAOX.js.map → chunk-NAWI7UXW.js.map} +0 -0
  38. /package/dist/{chunk-MYRGSDE5.cjs.map → chunk-PLVKILIY.cjs.map} +0 -0
  39. /package/dist/{chunk-5VM4RVM5.cjs.map → chunk-W2FP7ZWW.cjs.map} +0 -0
  40. /package/dist/{chunk-UICUGNAR.cjs.map → chunk-XDHI63G7.cjs.map} +0 -0
  41. /package/dist/{chunk-WT27HKBG.js.map → chunk-XPOF4D5N.js.map} +0 -0
package/dist/index.cjs CHANGED
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- var chunkQS3TLDZN_cjs = require('./chunk-QS3TLDZN.cjs');
6
- var chunkANP6S23V_cjs = require('./chunk-ANP6S23V.cjs');
7
- require('./chunk-UICUGNAR.cjs');
8
- var chunkMYRGSDE5_cjs = require('./chunk-MYRGSDE5.cjs');
9
- var chunk5VM4RVM5_cjs = require('./chunk-5VM4RVM5.cjs');
10
- var chunkTCVNI37N_cjs = require('./chunk-TCVNI37N.cjs');
11
- var chunkPAJNBSPO_cjs = require('./chunk-PAJNBSPO.cjs');
5
+ var chunk5TK7TMV6_cjs = require('./chunk-5TK7TMV6.cjs');
6
+ var chunkH47IKRXJ_cjs = require('./chunk-H47IKRXJ.cjs');
7
+ require('./chunk-XDHI63G7.cjs');
8
+ var chunkPLVKILIY_cjs = require('./chunk-PLVKILIY.cjs');
9
+ var chunkW2FP7ZWW_cjs = require('./chunk-W2FP7ZWW.cjs');
10
+ var chunkE3ANGQ5N_cjs = require('./chunk-E3ANGQ5N.cjs');
11
+ var chunkWZQO3EPM_cjs = require('./chunk-WZQO3EPM.cjs');
12
12
  var crypto = require('crypto');
13
13
  var path4 = require('path');
14
14
  var parser = require('@kubb/parser');
@@ -53,9 +53,9 @@ var process__default = /*#__PURE__*/_interopDefault(process);
53
53
  var fs__default = /*#__PURE__*/_interopDefault(fs);
54
54
 
55
55
  // ../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js
56
- var require_lodash = chunkPAJNBSPO_cjs.__commonJS({
56
+ var require_lodash = chunkWZQO3EPM_cjs.__commonJS({
57
57
  "../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js"(exports, module) {
58
- chunkPAJNBSPO_cjs.init_cjs_shims();
58
+ chunkWZQO3EPM_cjs.init_cjs_shims();
59
59
  var LARGE_ARRAY_SIZE = 200;
60
60
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
61
61
  var COMPARE_PARTIAL_FLAG = 1;
@@ -755,9 +755,9 @@ var require_lodash = chunkPAJNBSPO_cjs.__commonJS({
755
755
  });
756
756
 
757
757
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
758
- var require_eventemitter3 = chunkPAJNBSPO_cjs.__commonJS({
758
+ var require_eventemitter3 = chunkWZQO3EPM_cjs.__commonJS({
759
759
  "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
760
- chunkPAJNBSPO_cjs.init_cjs_shims();
760
+ chunkWZQO3EPM_cjs.init_cjs_shims();
761
761
  var has = Object.prototype.hasOwnProperty;
762
762
  var prefix = "~";
763
763
  function Events() {
@@ -937,13 +937,13 @@ var require_eventemitter3 = chunkPAJNBSPO_cjs.__commonJS({
937
937
  });
938
938
 
939
939
  // src/index.ts
940
- chunkPAJNBSPO_cjs.init_cjs_shims();
940
+ chunkWZQO3EPM_cjs.init_cjs_shims();
941
941
 
942
942
  // src/build.ts
943
- chunkPAJNBSPO_cjs.init_cjs_shims();
943
+ chunkWZQO3EPM_cjs.init_cjs_shims();
944
944
 
945
945
  // src/config.ts
946
- chunkPAJNBSPO_cjs.init_cjs_shims();
946
+ chunkWZQO3EPM_cjs.init_cjs_shims();
947
947
  function defineConfig(options) {
948
948
  return options;
949
949
  }
@@ -952,18 +952,18 @@ function isInputPath(result) {
952
952
  }
953
953
 
954
954
  // src/FileManager.ts
955
- chunkPAJNBSPO_cjs.init_cjs_shims();
956
- var import_lodash = chunkPAJNBSPO_cjs.__toESM(require_lodash(), 1);
955
+ chunkWZQO3EPM_cjs.init_cjs_shims();
956
+ var import_lodash = chunkWZQO3EPM_cjs.__toESM(require_lodash(), 1);
957
957
 
958
958
  // ../../node_modules/.pnpm/p-queue@8.0.0/node_modules/p-queue/dist/index.js
959
- chunkPAJNBSPO_cjs.init_cjs_shims();
959
+ chunkWZQO3EPM_cjs.init_cjs_shims();
960
960
 
961
961
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
962
- chunkPAJNBSPO_cjs.init_cjs_shims();
963
- var import_index = chunkPAJNBSPO_cjs.__toESM(require_eventemitter3(), 1);
962
+ chunkWZQO3EPM_cjs.init_cjs_shims();
963
+ var import_index = chunkWZQO3EPM_cjs.__toESM(require_eventemitter3(), 1);
964
964
 
965
965
  // ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
966
- chunkPAJNBSPO_cjs.init_cjs_shims();
966
+ chunkWZQO3EPM_cjs.init_cjs_shims();
967
967
  var TimeoutError = class extends Error {
968
968
  constructor(message) {
969
969
  super(message);
@@ -1048,10 +1048,10 @@ function pTimeout(promise, options) {
1048
1048
  }
1049
1049
 
1050
1050
  // ../../node_modules/.pnpm/p-queue@8.0.0/node_modules/p-queue/dist/priority-queue.js
1051
- chunkPAJNBSPO_cjs.init_cjs_shims();
1051
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1052
1052
 
1053
1053
  // ../../node_modules/.pnpm/p-queue@8.0.0/node_modules/p-queue/dist/lower-bound.js
1054
- chunkPAJNBSPO_cjs.init_cjs_shims();
1054
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1055
1055
  function lowerBound(array, value, comparator) {
1056
1056
  let first = 0;
1057
1057
  let count = array.length;
@@ -1072,7 +1072,7 @@ function lowerBound(array, value, comparator) {
1072
1072
  var _queue;
1073
1073
  var PriorityQueue = class {
1074
1074
  constructor() {
1075
- chunkPAJNBSPO_cjs.__privateAdd(this, _queue, []);
1075
+ chunkWZQO3EPM_cjs.__privateAdd(this, _queue, []);
1076
1076
  }
1077
1077
  enqueue(run, options) {
1078
1078
  options = {
@@ -1083,22 +1083,22 @@ var PriorityQueue = class {
1083
1083
  priority: options.priority,
1084
1084
  run
1085
1085
  };
1086
- if (this.size && chunkPAJNBSPO_cjs.__privateGet(this, _queue)[this.size - 1].priority >= options.priority) {
1087
- chunkPAJNBSPO_cjs.__privateGet(this, _queue).push(element);
1086
+ if (this.size && chunkWZQO3EPM_cjs.__privateGet(this, _queue)[this.size - 1].priority >= options.priority) {
1087
+ chunkWZQO3EPM_cjs.__privateGet(this, _queue).push(element);
1088
1088
  return;
1089
1089
  }
1090
- const index = lowerBound(chunkPAJNBSPO_cjs.__privateGet(this, _queue), element, (a, b) => b.priority - a.priority);
1091
- chunkPAJNBSPO_cjs.__privateGet(this, _queue).splice(index, 0, element);
1090
+ const index = lowerBound(chunkWZQO3EPM_cjs.__privateGet(this, _queue), element, (a, b) => b.priority - a.priority);
1091
+ chunkWZQO3EPM_cjs.__privateGet(this, _queue).splice(index, 0, element);
1092
1092
  }
1093
1093
  dequeue() {
1094
- const item = chunkPAJNBSPO_cjs.__privateGet(this, _queue).shift();
1094
+ const item = chunkWZQO3EPM_cjs.__privateGet(this, _queue).shift();
1095
1095
  return item?.run;
1096
1096
  }
1097
1097
  filter(options) {
1098
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1098
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1099
1099
  }
1100
1100
  get size() {
1101
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue).length;
1101
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue).length;
1102
1102
  }
1103
1103
  };
1104
1104
  _queue = new WeakMap();
@@ -1109,41 +1109,41 @@ var PQueue = class extends import_index.default {
1109
1109
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
1110
1110
  constructor(options) {
1111
1111
  super();
1112
- chunkPAJNBSPO_cjs.__privateAdd(this, _doesIntervalAllowAnother);
1113
- chunkPAJNBSPO_cjs.__privateAdd(this, _doesConcurrentAllowAnother);
1114
- chunkPAJNBSPO_cjs.__privateAdd(this, _next);
1115
- chunkPAJNBSPO_cjs.__privateAdd(this, _onResumeInterval);
1116
- chunkPAJNBSPO_cjs.__privateAdd(this, _isIntervalPaused);
1117
- chunkPAJNBSPO_cjs.__privateAdd(this, _tryToStartAnother);
1118
- chunkPAJNBSPO_cjs.__privateAdd(this, _initializeIntervalIfNeeded);
1119
- chunkPAJNBSPO_cjs.__privateAdd(this, _onInterval);
1112
+ chunkWZQO3EPM_cjs.__privateAdd(this, _doesIntervalAllowAnother);
1113
+ chunkWZQO3EPM_cjs.__privateAdd(this, _doesConcurrentAllowAnother);
1114
+ chunkWZQO3EPM_cjs.__privateAdd(this, _next);
1115
+ chunkWZQO3EPM_cjs.__privateAdd(this, _onResumeInterval);
1116
+ chunkWZQO3EPM_cjs.__privateAdd(this, _isIntervalPaused);
1117
+ chunkWZQO3EPM_cjs.__privateAdd(this, _tryToStartAnother);
1118
+ chunkWZQO3EPM_cjs.__privateAdd(this, _initializeIntervalIfNeeded);
1119
+ chunkWZQO3EPM_cjs.__privateAdd(this, _onInterval);
1120
1120
  /**
1121
1121
  Executes all queued functions until it reaches the limit.
1122
1122
  */
1123
- chunkPAJNBSPO_cjs.__privateAdd(this, _processQueue);
1124
- chunkPAJNBSPO_cjs.__privateAdd(this, _throwOnAbort);
1125
- chunkPAJNBSPO_cjs.__privateAdd(this, _onEvent);
1126
- chunkPAJNBSPO_cjs.__privateAdd(this, _carryoverConcurrencyCount, void 0);
1127
- chunkPAJNBSPO_cjs.__privateAdd(this, _isIntervalIgnored, void 0);
1128
- chunkPAJNBSPO_cjs.__privateAdd(this, _intervalCount, 0);
1129
- chunkPAJNBSPO_cjs.__privateAdd(this, _intervalCap, void 0);
1130
- chunkPAJNBSPO_cjs.__privateAdd(this, _interval, void 0);
1131
- chunkPAJNBSPO_cjs.__privateAdd(this, _intervalEnd, 0);
1132
- chunkPAJNBSPO_cjs.__privateAdd(this, _intervalId, void 0);
1133
- chunkPAJNBSPO_cjs.__privateAdd(this, _timeoutId, void 0);
1134
- chunkPAJNBSPO_cjs.__privateAdd(this, _queue2, void 0);
1135
- chunkPAJNBSPO_cjs.__privateAdd(this, _queueClass, void 0);
1136
- chunkPAJNBSPO_cjs.__privateAdd(this, _pending, 0);
1123
+ chunkWZQO3EPM_cjs.__privateAdd(this, _processQueue);
1124
+ chunkWZQO3EPM_cjs.__privateAdd(this, _throwOnAbort);
1125
+ chunkWZQO3EPM_cjs.__privateAdd(this, _onEvent);
1126
+ chunkWZQO3EPM_cjs.__privateAdd(this, _carryoverConcurrencyCount, void 0);
1127
+ chunkWZQO3EPM_cjs.__privateAdd(this, _isIntervalIgnored, void 0);
1128
+ chunkWZQO3EPM_cjs.__privateAdd(this, _intervalCount, 0);
1129
+ chunkWZQO3EPM_cjs.__privateAdd(this, _intervalCap, void 0);
1130
+ chunkWZQO3EPM_cjs.__privateAdd(this, _interval, void 0);
1131
+ chunkWZQO3EPM_cjs.__privateAdd(this, _intervalEnd, 0);
1132
+ chunkWZQO3EPM_cjs.__privateAdd(this, _intervalId, void 0);
1133
+ chunkWZQO3EPM_cjs.__privateAdd(this, _timeoutId, void 0);
1134
+ chunkWZQO3EPM_cjs.__privateAdd(this, _queue2, void 0);
1135
+ chunkWZQO3EPM_cjs.__privateAdd(this, _queueClass, void 0);
1136
+ chunkWZQO3EPM_cjs.__privateAdd(this, _pending, 0);
1137
1137
  // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
1138
- chunkPAJNBSPO_cjs.__privateAdd(this, _concurrency, void 0);
1139
- chunkPAJNBSPO_cjs.__privateAdd(this, _isPaused, void 0);
1140
- chunkPAJNBSPO_cjs.__privateAdd(this, _throwOnTimeout, void 0);
1138
+ chunkWZQO3EPM_cjs.__privateAdd(this, _concurrency, void 0);
1139
+ chunkWZQO3EPM_cjs.__privateAdd(this, _isPaused, void 0);
1140
+ chunkWZQO3EPM_cjs.__privateAdd(this, _throwOnTimeout, void 0);
1141
1141
  /**
1142
1142
  Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
1143
1143
 
1144
1144
  Applies to each future operation.
1145
1145
  */
1146
- chunkPAJNBSPO_cjs.__publicField(this, "timeout");
1146
+ chunkWZQO3EPM_cjs.__publicField(this, "timeout");
1147
1147
  options = {
1148
1148
  carryoverConcurrencyCount: false,
1149
1149
  intervalCap: Number.POSITIVE_INFINITY,
@@ -1159,37 +1159,37 @@ var PQueue = class extends import_index.default {
1159
1159
  if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
1160
1160
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${options.interval?.toString() ?? ""}\` (${typeof options.interval})`);
1161
1161
  }
1162
- chunkPAJNBSPO_cjs.__privateSet(this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1163
- chunkPAJNBSPO_cjs.__privateSet(this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1164
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalCap, options.intervalCap);
1165
- chunkPAJNBSPO_cjs.__privateSet(this, _interval, options.interval);
1166
- chunkPAJNBSPO_cjs.__privateSet(this, _queue2, new options.queueClass());
1167
- chunkPAJNBSPO_cjs.__privateSet(this, _queueClass, options.queueClass);
1162
+ chunkWZQO3EPM_cjs.__privateSet(this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1163
+ chunkWZQO3EPM_cjs.__privateSet(this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1164
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalCap, options.intervalCap);
1165
+ chunkWZQO3EPM_cjs.__privateSet(this, _interval, options.interval);
1166
+ chunkWZQO3EPM_cjs.__privateSet(this, _queue2, new options.queueClass());
1167
+ chunkWZQO3EPM_cjs.__privateSet(this, _queueClass, options.queueClass);
1168
1168
  this.concurrency = options.concurrency;
1169
1169
  this.timeout = options.timeout;
1170
- chunkPAJNBSPO_cjs.__privateSet(this, _throwOnTimeout, options.throwOnTimeout === true);
1171
- chunkPAJNBSPO_cjs.__privateSet(this, _isPaused, options.autoStart === false);
1170
+ chunkWZQO3EPM_cjs.__privateSet(this, _throwOnTimeout, options.throwOnTimeout === true);
1171
+ chunkWZQO3EPM_cjs.__privateSet(this, _isPaused, options.autoStart === false);
1172
1172
  }
1173
1173
  get concurrency() {
1174
- return chunkPAJNBSPO_cjs.__privateGet(this, _concurrency);
1174
+ return chunkWZQO3EPM_cjs.__privateGet(this, _concurrency);
1175
1175
  }
1176
1176
  set concurrency(newConcurrency) {
1177
1177
  if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
1178
1178
  throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
1179
1179
  }
1180
- chunkPAJNBSPO_cjs.__privateSet(this, _concurrency, newConcurrency);
1181
- chunkPAJNBSPO_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1180
+ chunkWZQO3EPM_cjs.__privateSet(this, _concurrency, newConcurrency);
1181
+ chunkWZQO3EPM_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1182
1182
  }
1183
1183
  async add(function_, options = {}) {
1184
1184
  options = {
1185
1185
  timeout: this.timeout,
1186
- throwOnTimeout: chunkPAJNBSPO_cjs.__privateGet(this, _throwOnTimeout),
1186
+ throwOnTimeout: chunkWZQO3EPM_cjs.__privateGet(this, _throwOnTimeout),
1187
1187
  ...options
1188
1188
  };
1189
1189
  return new Promise((resolve2, reject) => {
1190
- chunkPAJNBSPO_cjs.__privateGet(this, _queue2).enqueue(async () => {
1191
- chunkPAJNBSPO_cjs.__privateWrapper(this, _pending)._++;
1192
- chunkPAJNBSPO_cjs.__privateWrapper(this, _intervalCount)._++;
1190
+ chunkWZQO3EPM_cjs.__privateGet(this, _queue2).enqueue(async () => {
1191
+ chunkWZQO3EPM_cjs.__privateWrapper(this, _pending)._++;
1192
+ chunkWZQO3EPM_cjs.__privateWrapper(this, _intervalCount)._++;
1193
1193
  try {
1194
1194
  options.signal?.throwIfAborted();
1195
1195
  let operation = function_({ signal: options.signal });
@@ -1197,7 +1197,7 @@ var PQueue = class extends import_index.default {
1197
1197
  operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
1198
1198
  }
1199
1199
  if (options.signal) {
1200
- operation = Promise.race([operation, chunkPAJNBSPO_cjs.__privateMethod(this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1200
+ operation = Promise.race([operation, chunkWZQO3EPM_cjs.__privateMethod(this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1201
1201
  }
1202
1202
  const result = await operation;
1203
1203
  resolve2(result);
@@ -1210,11 +1210,11 @@ var PQueue = class extends import_index.default {
1210
1210
  reject(error);
1211
1211
  this.emit("error", error);
1212
1212
  } finally {
1213
- chunkPAJNBSPO_cjs.__privateMethod(this, _next, next_fn).call(this);
1213
+ chunkWZQO3EPM_cjs.__privateMethod(this, _next, next_fn).call(this);
1214
1214
  }
1215
1215
  }, options);
1216
1216
  this.emit("add");
1217
- chunkPAJNBSPO_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1217
+ chunkWZQO3EPM_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1218
1218
  });
1219
1219
  }
1220
1220
  async addAll(functions, options) {
@@ -1224,24 +1224,24 @@ var PQueue = class extends import_index.default {
1224
1224
  Start (or resume) executing enqueued tasks within concurrency limit. No need to call this if queue is not paused (via `options.autoStart = false` or by `.pause()` method.)
1225
1225
  */
1226
1226
  start() {
1227
- if (!chunkPAJNBSPO_cjs.__privateGet(this, _isPaused)) {
1227
+ if (!chunkWZQO3EPM_cjs.__privateGet(this, _isPaused)) {
1228
1228
  return this;
1229
1229
  }
1230
- chunkPAJNBSPO_cjs.__privateSet(this, _isPaused, false);
1231
- chunkPAJNBSPO_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1230
+ chunkWZQO3EPM_cjs.__privateSet(this, _isPaused, false);
1231
+ chunkWZQO3EPM_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1232
1232
  return this;
1233
1233
  }
1234
1234
  /**
1235
1235
  Put queue execution on hold.
1236
1236
  */
1237
1237
  pause() {
1238
- chunkPAJNBSPO_cjs.__privateSet(this, _isPaused, true);
1238
+ chunkWZQO3EPM_cjs.__privateSet(this, _isPaused, true);
1239
1239
  }
1240
1240
  /**
1241
1241
  Clear the queue.
1242
1242
  */
1243
1243
  clear() {
1244
- chunkPAJNBSPO_cjs.__privateSet(this, _queue2, new (chunkPAJNBSPO_cjs.__privateGet(this, _queueClass))());
1244
+ chunkWZQO3EPM_cjs.__privateSet(this, _queue2, new (chunkWZQO3EPM_cjs.__privateGet(this, _queueClass))());
1245
1245
  }
1246
1246
  /**
1247
1247
  Can be called multiple times. Useful if you for example add additional items at a later time.
@@ -1249,10 +1249,10 @@ var PQueue = class extends import_index.default {
1249
1249
  @returns A promise that settles when the queue becomes empty.
1250
1250
  */
1251
1251
  async onEmpty() {
1252
- if (chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size === 0) {
1252
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size === 0) {
1253
1253
  return;
1254
1254
  }
1255
- await chunkPAJNBSPO_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "empty");
1255
+ await chunkWZQO3EPM_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "empty");
1256
1256
  }
1257
1257
  /**
1258
1258
  @returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
@@ -1262,10 +1262,10 @@ var PQueue = class extends import_index.default {
1262
1262
  Note that this only limits the number of items waiting to start. There could still be up to `concurrency` jobs already running that this call does not include in its calculation.
1263
1263
  */
1264
1264
  async onSizeLessThan(limit) {
1265
- if (chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size < limit) {
1265
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size < limit) {
1266
1266
  return;
1267
1267
  }
1268
- await chunkPAJNBSPO_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "next", () => chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size < limit);
1268
+ await chunkWZQO3EPM_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "next", () => chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size < limit);
1269
1269
  }
1270
1270
  /**
1271
1271
  The difference with `.onEmpty` is that `.onIdle` guarantees that all work from the queue has finished. `.onEmpty` merely signals that the queue is empty, but it could mean that some promises haven't completed yet.
@@ -1273,16 +1273,16 @@ var PQueue = class extends import_index.default {
1273
1273
  @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
1274
1274
  */
1275
1275
  async onIdle() {
1276
- if (chunkPAJNBSPO_cjs.__privateGet(this, _pending) === 0 && chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size === 0) {
1276
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _pending) === 0 && chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size === 0) {
1277
1277
  return;
1278
1278
  }
1279
- await chunkPAJNBSPO_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "idle");
1279
+ await chunkWZQO3EPM_cjs.__privateMethod(this, _onEvent, onEvent_fn).call(this, "idle");
1280
1280
  }
1281
1281
  /**
1282
1282
  Size of the queue, the number of queued items waiting to run.
1283
1283
  */
1284
1284
  get size() {
1285
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size;
1285
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size;
1286
1286
  }
1287
1287
  /**
1288
1288
  Size of the queue, filtered by the given options.
@@ -1290,19 +1290,19 @@ var PQueue = class extends import_index.default {
1290
1290
  For example, this can be used to find the number of items remaining in the queue with a specific priority level.
1291
1291
  */
1292
1292
  sizeBy(options) {
1293
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue2).filter(options).length;
1293
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue2).filter(options).length;
1294
1294
  }
1295
1295
  /**
1296
1296
  Number of running items (no longer in the queue).
1297
1297
  */
1298
1298
  get pending() {
1299
- return chunkPAJNBSPO_cjs.__privateGet(this, _pending);
1299
+ return chunkWZQO3EPM_cjs.__privateGet(this, _pending);
1300
1300
  }
1301
1301
  /**
1302
1302
  Whether the queue is currently paused.
1303
1303
  */
1304
1304
  get isPaused() {
1305
- return chunkPAJNBSPO_cjs.__privateGet(this, _isPaused);
1305
+ return chunkWZQO3EPM_cjs.__privateGet(this, _isPaused);
1306
1306
  }
1307
1307
  };
1308
1308
  _carryoverConcurrencyCount = new WeakMap();
@@ -1321,35 +1321,35 @@ _isPaused = new WeakMap();
1321
1321
  _throwOnTimeout = new WeakMap();
1322
1322
  _doesIntervalAllowAnother = new WeakSet();
1323
1323
  doesIntervalAllowAnother_get = function() {
1324
- return chunkPAJNBSPO_cjs.__privateGet(this, _isIntervalIgnored) || chunkPAJNBSPO_cjs.__privateGet(this, _intervalCount) < chunkPAJNBSPO_cjs.__privateGet(this, _intervalCap);
1324
+ return chunkWZQO3EPM_cjs.__privateGet(this, _isIntervalIgnored) || chunkWZQO3EPM_cjs.__privateGet(this, _intervalCount) < chunkWZQO3EPM_cjs.__privateGet(this, _intervalCap);
1325
1325
  };
1326
1326
  _doesConcurrentAllowAnother = new WeakSet();
1327
1327
  doesConcurrentAllowAnother_get = function() {
1328
- return chunkPAJNBSPO_cjs.__privateGet(this, _pending) < chunkPAJNBSPO_cjs.__privateGet(this, _concurrency);
1328
+ return chunkWZQO3EPM_cjs.__privateGet(this, _pending) < chunkWZQO3EPM_cjs.__privateGet(this, _concurrency);
1329
1329
  };
1330
1330
  _next = new WeakSet();
1331
1331
  next_fn = function() {
1332
- chunkPAJNBSPO_cjs.__privateWrapper(this, _pending)._--;
1333
- chunkPAJNBSPO_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1332
+ chunkWZQO3EPM_cjs.__privateWrapper(this, _pending)._--;
1333
+ chunkWZQO3EPM_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1334
1334
  this.emit("next");
1335
1335
  };
1336
1336
  _onResumeInterval = new WeakSet();
1337
1337
  onResumeInterval_fn = function() {
1338
- chunkPAJNBSPO_cjs.__privateMethod(this, _onInterval, onInterval_fn).call(this);
1339
- chunkPAJNBSPO_cjs.__privateMethod(this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1340
- chunkPAJNBSPO_cjs.__privateSet(this, _timeoutId, void 0);
1338
+ chunkWZQO3EPM_cjs.__privateMethod(this, _onInterval, onInterval_fn).call(this);
1339
+ chunkWZQO3EPM_cjs.__privateMethod(this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1340
+ chunkWZQO3EPM_cjs.__privateSet(this, _timeoutId, void 0);
1341
1341
  };
1342
1342
  _isIntervalPaused = new WeakSet();
1343
1343
  isIntervalPaused_get = function() {
1344
1344
  const now = Date.now();
1345
- if (chunkPAJNBSPO_cjs.__privateGet(this, _intervalId) === void 0) {
1346
- const delay = chunkPAJNBSPO_cjs.__privateGet(this, _intervalEnd) - now;
1345
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _intervalId) === void 0) {
1346
+ const delay = chunkWZQO3EPM_cjs.__privateGet(this, _intervalEnd) - now;
1347
1347
  if (delay < 0) {
1348
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalCount, chunkPAJNBSPO_cjs.__privateGet(this, _carryoverConcurrencyCount) ? chunkPAJNBSPO_cjs.__privateGet(this, _pending) : 0);
1348
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalCount, chunkWZQO3EPM_cjs.__privateGet(this, _carryoverConcurrencyCount) ? chunkWZQO3EPM_cjs.__privateGet(this, _pending) : 0);
1349
1349
  } else {
1350
- if (chunkPAJNBSPO_cjs.__privateGet(this, _timeoutId) === void 0) {
1351
- chunkPAJNBSPO_cjs.__privateSet(this, _timeoutId, setTimeout(() => {
1352
- chunkPAJNBSPO_cjs.__privateMethod(this, _onResumeInterval, onResumeInterval_fn).call(this);
1350
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _timeoutId) === void 0) {
1351
+ chunkWZQO3EPM_cjs.__privateSet(this, _timeoutId, setTimeout(() => {
1352
+ chunkWZQO3EPM_cjs.__privateMethod(this, _onResumeInterval, onResumeInterval_fn).call(this);
1353
1353
  }, delay));
1354
1354
  }
1355
1355
  return true;
@@ -1359,28 +1359,28 @@ isIntervalPaused_get = function() {
1359
1359
  };
1360
1360
  _tryToStartAnother = new WeakSet();
1361
1361
  tryToStartAnother_fn = function() {
1362
- if (chunkPAJNBSPO_cjs.__privateGet(this, _queue2).size === 0) {
1363
- if (chunkPAJNBSPO_cjs.__privateGet(this, _intervalId)) {
1364
- clearInterval(chunkPAJNBSPO_cjs.__privateGet(this, _intervalId));
1362
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _queue2).size === 0) {
1363
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _intervalId)) {
1364
+ clearInterval(chunkWZQO3EPM_cjs.__privateGet(this, _intervalId));
1365
1365
  }
1366
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalId, void 0);
1366
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalId, void 0);
1367
1367
  this.emit("empty");
1368
- if (chunkPAJNBSPO_cjs.__privateGet(this, _pending) === 0) {
1368
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _pending) === 0) {
1369
1369
  this.emit("idle");
1370
1370
  }
1371
1371
  return false;
1372
1372
  }
1373
- if (!chunkPAJNBSPO_cjs.__privateGet(this, _isPaused)) {
1374
- const canInitializeInterval = !chunkPAJNBSPO_cjs.__privateGet(this, _isIntervalPaused, isIntervalPaused_get);
1375
- if (chunkPAJNBSPO_cjs.__privateGet(this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && chunkPAJNBSPO_cjs.__privateGet(this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1376
- const job = chunkPAJNBSPO_cjs.__privateGet(this, _queue2).dequeue();
1373
+ if (!chunkWZQO3EPM_cjs.__privateGet(this, _isPaused)) {
1374
+ const canInitializeInterval = !chunkWZQO3EPM_cjs.__privateGet(this, _isIntervalPaused, isIntervalPaused_get);
1375
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && chunkWZQO3EPM_cjs.__privateGet(this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1376
+ const job = chunkWZQO3EPM_cjs.__privateGet(this, _queue2).dequeue();
1377
1377
  if (!job) {
1378
1378
  return false;
1379
1379
  }
1380
1380
  this.emit("active");
1381
1381
  job();
1382
1382
  if (canInitializeInterval) {
1383
- chunkPAJNBSPO_cjs.__privateMethod(this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1383
+ chunkWZQO3EPM_cjs.__privateMethod(this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1384
1384
  }
1385
1385
  return true;
1386
1386
  }
@@ -1389,26 +1389,26 @@ tryToStartAnother_fn = function() {
1389
1389
  };
1390
1390
  _initializeIntervalIfNeeded = new WeakSet();
1391
1391
  initializeIntervalIfNeeded_fn = function() {
1392
- if (chunkPAJNBSPO_cjs.__privateGet(this, _isIntervalIgnored) || chunkPAJNBSPO_cjs.__privateGet(this, _intervalId) !== void 0) {
1392
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _isIntervalIgnored) || chunkWZQO3EPM_cjs.__privateGet(this, _intervalId) !== void 0) {
1393
1393
  return;
1394
1394
  }
1395
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalId, setInterval(() => {
1396
- chunkPAJNBSPO_cjs.__privateMethod(this, _onInterval, onInterval_fn).call(this);
1397
- }, chunkPAJNBSPO_cjs.__privateGet(this, _interval)));
1398
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalEnd, Date.now() + chunkPAJNBSPO_cjs.__privateGet(this, _interval));
1395
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalId, setInterval(() => {
1396
+ chunkWZQO3EPM_cjs.__privateMethod(this, _onInterval, onInterval_fn).call(this);
1397
+ }, chunkWZQO3EPM_cjs.__privateGet(this, _interval)));
1398
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalEnd, Date.now() + chunkWZQO3EPM_cjs.__privateGet(this, _interval));
1399
1399
  };
1400
1400
  _onInterval = new WeakSet();
1401
1401
  onInterval_fn = function() {
1402
- if (chunkPAJNBSPO_cjs.__privateGet(this, _intervalCount) === 0 && chunkPAJNBSPO_cjs.__privateGet(this, _pending) === 0 && chunkPAJNBSPO_cjs.__privateGet(this, _intervalId)) {
1403
- clearInterval(chunkPAJNBSPO_cjs.__privateGet(this, _intervalId));
1404
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalId, void 0);
1402
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _intervalCount) === 0 && chunkWZQO3EPM_cjs.__privateGet(this, _pending) === 0 && chunkWZQO3EPM_cjs.__privateGet(this, _intervalId)) {
1403
+ clearInterval(chunkWZQO3EPM_cjs.__privateGet(this, _intervalId));
1404
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalId, void 0);
1405
1405
  }
1406
- chunkPAJNBSPO_cjs.__privateSet(this, _intervalCount, chunkPAJNBSPO_cjs.__privateGet(this, _carryoverConcurrencyCount) ? chunkPAJNBSPO_cjs.__privateGet(this, _pending) : 0);
1407
- chunkPAJNBSPO_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1406
+ chunkWZQO3EPM_cjs.__privateSet(this, _intervalCount, chunkWZQO3EPM_cjs.__privateGet(this, _carryoverConcurrencyCount) ? chunkWZQO3EPM_cjs.__privateGet(this, _pending) : 0);
1407
+ chunkWZQO3EPM_cjs.__privateMethod(this, _processQueue, processQueue_fn).call(this);
1408
1408
  };
1409
1409
  _processQueue = new WeakSet();
1410
1410
  processQueue_fn = function() {
1411
- while (chunkPAJNBSPO_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1411
+ while (chunkWZQO3EPM_cjs.__privateMethod(this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1412
1412
  }
1413
1413
  };
1414
1414
  _throwOnAbort = new WeakSet();
@@ -1434,10 +1434,10 @@ onEvent_fn = async function(event, filter) {
1434
1434
  };
1435
1435
 
1436
1436
  // src/BarrelManager.ts
1437
- chunkPAJNBSPO_cjs.init_cjs_shims();
1437
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1438
1438
 
1439
1439
  // src/utils/TreeNode.ts
1440
- chunkPAJNBSPO_cjs.init_cjs_shims();
1440
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1441
1441
  var TreeNode = class _TreeNode {
1442
1442
  constructor(data, parent) {
1443
1443
  this.children = [];
@@ -1528,12 +1528,12 @@ var TreeNode = class _TreeNode {
1528
1528
  var _options;
1529
1529
  var BarrelManager = class {
1530
1530
  constructor(options = {}) {
1531
- chunkPAJNBSPO_cjs.__privateAdd(this, _options, void 0);
1532
- chunkPAJNBSPO_cjs.__privateSet(this, _options, options);
1531
+ chunkWZQO3EPM_cjs.__privateAdd(this, _options, void 0);
1532
+ chunkWZQO3EPM_cjs.__privateSet(this, _options, options);
1533
1533
  return this;
1534
1534
  }
1535
1535
  getIndexes(pathToBuild) {
1536
- const { treeNode = {}, isTypeOnly, extName } = chunkPAJNBSPO_cjs.__privateGet(this, _options);
1536
+ const { treeNode = {}, isTypeOnly, extName } = chunkWZQO3EPM_cjs.__privateGet(this, _options);
1537
1537
  const tree = TreeNode.build(pathToBuild, treeNode);
1538
1538
  if (!tree) {
1539
1539
  return null;
@@ -1545,7 +1545,7 @@ var BarrelManager = class {
1545
1545
  if (treeNode2.children.length > 1) {
1546
1546
  const indexPath = path4__default.default.resolve(treeNode2.data.path, "index.ts");
1547
1547
  const exports = treeNode2.children.filter(Boolean).map((file) => {
1548
- const importPath = file.data.type === "directory" ? `./${file.data.name}/index` : `./${chunkQS3TLDZN_cjs.trimExtName(file.data.name)}`;
1548
+ const importPath = file.data.type === "directory" ? `./${file.data.name}/index` : `./${chunk5TK7TMV6_cjs.trimExtName(file.data.name)}`;
1549
1549
  if (importPath.endsWith("index") && file.data.type === "file") {
1550
1550
  return void 0;
1551
1551
  }
@@ -1566,7 +1566,7 @@ var BarrelManager = class {
1566
1566
  } else if (treeNode2.children.length === 1) {
1567
1567
  const [treeNodeChild] = treeNode2.children;
1568
1568
  const indexPath = path4__default.default.resolve(treeNode2.data.path, "index.ts");
1569
- const importPath = treeNodeChild.data.type === "directory" ? `./${treeNodeChild.data.name}/index` : `./${chunkQS3TLDZN_cjs.trimExtName(treeNodeChild.data.name)}`;
1569
+ const importPath = treeNodeChild.data.type === "directory" ? `./${treeNodeChild.data.name}/index` : `./${chunk5TK7TMV6_cjs.trimExtName(treeNodeChild.data.name)}`;
1570
1570
  const exports = [
1571
1571
  {
1572
1572
  path: extName ? `${importPath}${extName}` : importPath,
@@ -1600,31 +1600,31 @@ exports.KubbFile = void 0;
1600
1600
  var _cache, _task, _queue3, _add, add_fn, _addOrAppend, addOrAppend_fn;
1601
1601
  var _FileManager = class _FileManager {
1602
1602
  constructor({ task = async (file) => file, queue = new PQueue() } = {}) {
1603
- chunkPAJNBSPO_cjs.__privateAdd(this, _add);
1604
- chunkPAJNBSPO_cjs.__privateAdd(this, _addOrAppend);
1605
- chunkPAJNBSPO_cjs.__privateAdd(this, _cache, /* @__PURE__ */ new Map());
1606
- chunkPAJNBSPO_cjs.__privateAdd(this, _task, void 0);
1607
- chunkPAJNBSPO_cjs.__privateAdd(this, _queue3, void 0);
1608
- chunkPAJNBSPO_cjs.__privateSet(this, _task, task);
1609
- chunkPAJNBSPO_cjs.__privateSet(this, _queue3, queue);
1603
+ chunkWZQO3EPM_cjs.__privateAdd(this, _add);
1604
+ chunkWZQO3EPM_cjs.__privateAdd(this, _addOrAppend);
1605
+ chunkWZQO3EPM_cjs.__privateAdd(this, _cache, /* @__PURE__ */ new Map());
1606
+ chunkWZQO3EPM_cjs.__privateAdd(this, _task, void 0);
1607
+ chunkWZQO3EPM_cjs.__privateAdd(this, _queue3, void 0);
1608
+ chunkWZQO3EPM_cjs.__privateSet(this, _task, task);
1609
+ chunkWZQO3EPM_cjs.__privateSet(this, _queue3, queue);
1610
1610
  return this;
1611
1611
  }
1612
1612
  get files() {
1613
1613
  const files = [];
1614
- chunkPAJNBSPO_cjs.__privateGet(this, _cache).forEach((item) => {
1614
+ chunkWZQO3EPM_cjs.__privateGet(this, _cache).forEach((item) => {
1615
1615
  files.push(...item.flat(1));
1616
1616
  });
1617
1617
  return files;
1618
1618
  }
1619
1619
  get isExecuting() {
1620
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue3).size !== 0 && chunkPAJNBSPO_cjs.__privateGet(this, _queue3).pending !== 0;
1620
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue3).size !== 0 && chunkWZQO3EPM_cjs.__privateGet(this, _queue3).pending !== 0;
1621
1621
  }
1622
1622
  async add(...files) {
1623
1623
  const promises = combineFiles(files).map((file) => {
1624
1624
  if (file.override) {
1625
- return chunkPAJNBSPO_cjs.__privateMethod(this, _add, add_fn).call(this, file);
1625
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _add, add_fn).call(this, file);
1626
1626
  }
1627
- return chunkPAJNBSPO_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, file);
1627
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, file);
1628
1628
  });
1629
1629
  const resolvedFiles = await Promise.all(promises);
1630
1630
  if (files.length > 1) {
@@ -1637,7 +1637,7 @@ var _FileManager = class _FileManager {
1637
1637
  if (!exportType) {
1638
1638
  return void 0;
1639
1639
  }
1640
- const exportPath = output.path.startsWith("./") ? chunkQS3TLDZN_cjs.trimExtName(output.path) : `./${chunkQS3TLDZN_cjs.trimExtName(output.path)}`;
1640
+ const exportPath = output.path.startsWith("./") ? chunk5TK7TMV6_cjs.trimExtName(output.path) : `./${chunk5TK7TMV6_cjs.trimExtName(output.path)}`;
1641
1641
  const mode = _FileManager.getMode(output.path);
1642
1642
  const barrelManager = new BarrelManager({ extName: output.extName, ...options });
1643
1643
  const files = barrelManager.getIndexes(path4.resolve(root, output.path));
@@ -1669,13 +1669,13 @@ var _FileManager = class _FileManager {
1669
1669
  }
1670
1670
  ]
1671
1671
  };
1672
- await chunkPAJNBSPO_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, {
1672
+ await chunkWZQO3EPM_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, {
1673
1673
  ...rootFile,
1674
1674
  meta: meta ? meta : rootFile.meta
1675
1675
  });
1676
1676
  return await Promise.all(
1677
1677
  files.map((file) => {
1678
- return chunkPAJNBSPO_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, {
1678
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _addOrAppend, addOrAppend_fn).call(this, {
1679
1679
  ...file,
1680
1680
  meta: meta ? meta : file.meta
1681
1681
  });
@@ -1684,26 +1684,26 @@ var _FileManager = class _FileManager {
1684
1684
  }
1685
1685
  getCacheByUUID(UUID) {
1686
1686
  let cache;
1687
- chunkPAJNBSPO_cjs.__privateGet(this, _cache).forEach((files) => {
1687
+ chunkWZQO3EPM_cjs.__privateGet(this, _cache).forEach((files) => {
1688
1688
  cache = files.find((item) => item.id === UUID);
1689
1689
  });
1690
1690
  return cache;
1691
1691
  }
1692
1692
  get(path5) {
1693
- return chunkPAJNBSPO_cjs.__privateGet(this, _cache).get(path5);
1693
+ return chunkWZQO3EPM_cjs.__privateGet(this, _cache).get(path5);
1694
1694
  }
1695
1695
  remove(path5) {
1696
1696
  const cacheItem = this.get(path5);
1697
1697
  if (!cacheItem) {
1698
1698
  return;
1699
1699
  }
1700
- chunkPAJNBSPO_cjs.__privateGet(this, _cache).delete(path5);
1700
+ chunkWZQO3EPM_cjs.__privateGet(this, _cache).delete(path5);
1701
1701
  }
1702
1702
  async write(...params) {
1703
- return chunkTCVNI37N_cjs.write(...params);
1703
+ return chunkE3ANGQ5N_cjs.write(...params);
1704
1704
  }
1705
1705
  async read(...params) {
1706
- return chunk5VM4RVM5_cjs.read(...params);
1706
+ return chunkW2FP7ZWW_cjs.read(...params);
1707
1707
  }
1708
1708
  // statics
1709
1709
  static getSource(file) {
@@ -1731,23 +1731,23 @@ _queue3 = new WeakMap();
1731
1731
  _add = new WeakSet();
1732
1732
  add_fn = async function(file) {
1733
1733
  const controller = new AbortController();
1734
- const resolvedFile = { id: crypto__default.default.randomUUID(), name: chunkQS3TLDZN_cjs.trimExtName(file.baseName), ...file };
1735
- chunkPAJNBSPO_cjs.__privateGet(this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1736
- return chunkPAJNBSPO_cjs.__privateGet(this, _queue3).add(
1734
+ const resolvedFile = { id: crypto__default.default.randomUUID(), name: chunk5TK7TMV6_cjs.trimExtName(file.baseName), ...file };
1735
+ chunkWZQO3EPM_cjs.__privateGet(this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1736
+ return chunkWZQO3EPM_cjs.__privateGet(this, _queue3).add(
1737
1737
  async () => {
1738
1738
  var _a;
1739
- return (_a = chunkPAJNBSPO_cjs.__privateGet(this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1739
+ return (_a = chunkWZQO3EPM_cjs.__privateGet(this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1740
1740
  },
1741
1741
  { signal: controller.signal }
1742
1742
  );
1743
1743
  };
1744
1744
  _addOrAppend = new WeakSet();
1745
1745
  addOrAppend_fn = async function(file) {
1746
- const previousCaches = chunkPAJNBSPO_cjs.__privateGet(this, _cache).get(file.path);
1746
+ const previousCaches = chunkWZQO3EPM_cjs.__privateGet(this, _cache).get(file.path);
1747
1747
  const previousCache = previousCaches ? previousCaches.at(previousCaches.length - 1) : void 0;
1748
1748
  if (previousCache) {
1749
- chunkPAJNBSPO_cjs.__privateGet(this, _cache).delete(previousCache.path);
1750
- return chunkPAJNBSPO_cjs.__privateMethod(this, _add, add_fn).call(this, {
1749
+ chunkWZQO3EPM_cjs.__privateGet(this, _cache).delete(previousCache.path);
1750
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _add, add_fn).call(this, {
1751
1751
  ...file,
1752
1752
  source: previousCache.source && file.source ? `${previousCache.source}
1753
1753
  ${file.source}` : "",
@@ -1756,7 +1756,7 @@ ${file.source}` : "",
1756
1756
  env: { ...previousCache.env || {}, ...file.env || {} }
1757
1757
  });
1758
1758
  }
1759
- return chunkPAJNBSPO_cjs.__privateMethod(this, _add, add_fn).call(this, file);
1759
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _add, add_fn).call(this, file);
1760
1760
  };
1761
1761
  var FileManager = _FileManager;
1762
1762
  function combineFiles(files) {
@@ -1794,11 +1794,11 @@ function getSource(file) {
1794
1794
  const exports = file.exports ? combineExports(file.exports) : [];
1795
1795
  const imports = file.imports ? combineImports(file.imports, exports, file.source) : [];
1796
1796
  const importNodes = imports.filter((item) => {
1797
- return item.path !== chunkQS3TLDZN_cjs.trimExtName(file.path);
1797
+ return item.path !== chunk5TK7TMV6_cjs.trimExtName(file.path);
1798
1798
  }).map((item) => {
1799
1799
  return factory__namespace.createImportDeclaration({
1800
1800
  name: item.name,
1801
- path: item.root ? chunk5VM4RVM5_cjs.getRelativePath(item.root, item.path) : item.path,
1801
+ path: item.root ? chunkW2FP7ZWW_cjs.getRelativePath(item.root, item.path) : item.path,
1802
1802
  isTypeOnly: item.isTypeOnly
1803
1803
  });
1804
1804
  });
@@ -1900,8 +1900,8 @@ function getEnvSource(source, env) {
1900
1900
  throw new TypeError(`Environment should be in upperCase for ${key}`);
1901
1901
  }
1902
1902
  if (typeof replaceBy === "string") {
1903
- prev = chunkQS3TLDZN_cjs.searchAndReplace({ text: prev.replaceAll(`process.env.${key}`, replaceBy), replaceBy, prefix: "process.env", key });
1904
- prev = chunkQS3TLDZN_cjs.searchAndReplace({ text: prev.replaceAll(new RegExp(`(declare const).*
1903
+ prev = chunk5TK7TMV6_cjs.searchAndReplace({ text: prev.replaceAll(`process.env.${key}`, replaceBy), replaceBy, prefix: "process.env", key });
1904
+ prev = chunk5TK7TMV6_cjs.searchAndReplace({ text: prev.replaceAll(new RegExp(`(declare const).*
1905
1905
  `, "ig"), ""), replaceBy, key });
1906
1906
  }
1907
1907
  return prev;
@@ -1909,33 +1909,33 @@ function getEnvSource(source, env) {
1909
1909
  }
1910
1910
 
1911
1911
  // src/PluginManager.ts
1912
- chunkPAJNBSPO_cjs.init_cjs_shims();
1912
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1913
1913
 
1914
1914
  // src/utils/EventEmitter.ts
1915
- chunkPAJNBSPO_cjs.init_cjs_shims();
1915
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1916
1916
  var _emitter;
1917
1917
  var EventEmitter2 = class {
1918
1918
  constructor() {
1919
- chunkPAJNBSPO_cjs.__privateAdd(this, _emitter, new events.EventEmitter());
1920
- chunkPAJNBSPO_cjs.__privateGet(this, _emitter).setMaxListeners(100);
1919
+ chunkWZQO3EPM_cjs.__privateAdd(this, _emitter, new events.EventEmitter());
1920
+ chunkWZQO3EPM_cjs.__privateGet(this, _emitter).setMaxListeners(100);
1921
1921
  }
1922
1922
  emit(eventName, ...eventArg) {
1923
- chunkPAJNBSPO_cjs.__privateGet(this, _emitter).emit(eventName, ...eventArg);
1923
+ chunkWZQO3EPM_cjs.__privateGet(this, _emitter).emit(eventName, ...eventArg);
1924
1924
  }
1925
1925
  on(eventName, handler) {
1926
- chunkPAJNBSPO_cjs.__privateGet(this, _emitter).on(eventName, handler);
1926
+ chunkWZQO3EPM_cjs.__privateGet(this, _emitter).on(eventName, handler);
1927
1927
  }
1928
1928
  off(eventName, handler) {
1929
- chunkPAJNBSPO_cjs.__privateGet(this, _emitter).off(eventName, handler);
1929
+ chunkWZQO3EPM_cjs.__privateGet(this, _emitter).off(eventName, handler);
1930
1930
  }
1931
1931
  removeAll() {
1932
- chunkPAJNBSPO_cjs.__privateGet(this, _emitter).removeAllListeners();
1932
+ chunkWZQO3EPM_cjs.__privateGet(this, _emitter).removeAllListeners();
1933
1933
  }
1934
1934
  };
1935
1935
  _emitter = new WeakMap();
1936
1936
 
1937
1937
  // src/errors.ts
1938
- chunkPAJNBSPO_cjs.init_cjs_shims();
1938
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1939
1939
  var Warning = class extends Error {
1940
1940
  constructor(message, options) {
1941
1941
  super(message, { cause: options?.cause });
@@ -1946,10 +1946,10 @@ var ValidationPluginError = class extends Error {
1946
1946
  };
1947
1947
 
1948
1948
  // src/plugin.ts
1949
- chunkPAJNBSPO_cjs.init_cjs_shims();
1949
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1950
1950
 
1951
1951
  // src/utils/cache.ts
1952
- chunkPAJNBSPO_cjs.init_cjs_shims();
1952
+ chunkWZQO3EPM_cjs.init_cjs_shims();
1953
1953
  function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
1954
1954
  return {
1955
1955
  set(id, value) {
@@ -2027,10 +2027,10 @@ var definePlugin = createPlugin((options) => {
2027
2027
  });
2028
2028
 
2029
2029
  // src/PromiseManager.ts
2030
- chunkPAJNBSPO_cjs.init_cjs_shims();
2030
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2031
2031
 
2032
2032
  // src/utils/executeStrategies.ts
2033
- chunkPAJNBSPO_cjs.init_cjs_shims();
2033
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2034
2034
  function hookSeq(promises) {
2035
2035
  return promises.filter(Boolean).reduce(
2036
2036
  (promise, func) => {
@@ -2068,8 +2068,8 @@ function hookParallel(promises) {
2068
2068
  var _options2;
2069
2069
  var PromiseManager = class {
2070
2070
  constructor(options = {}) {
2071
- chunkPAJNBSPO_cjs.__privateAdd(this, _options2, {});
2072
- chunkPAJNBSPO_cjs.__privateSet(this, _options2, options);
2071
+ chunkWZQO3EPM_cjs.__privateAdd(this, _options2, {});
2072
+ chunkWZQO3EPM_cjs.__privateSet(this, _options2, options);
2073
2073
  return this;
2074
2074
  }
2075
2075
  run(strategy, promises) {
@@ -2077,7 +2077,7 @@ var PromiseManager = class {
2077
2077
  return hookSeq(promises);
2078
2078
  }
2079
2079
  if (strategy === "first") {
2080
- return hookFirst(promises, chunkPAJNBSPO_cjs.__privateGet(this, _options2).nullCheck);
2080
+ return hookFirst(promises, chunkWZQO3EPM_cjs.__privateGet(this, _options2).nullCheck);
2081
2081
  }
2082
2082
  if (strategy === "parallel") {
2083
2083
  return hookParallel(promises);
@@ -2097,8 +2097,8 @@ function isPromiseRejectedResult(result) {
2097
2097
  var _core, _usedPluginNames, _promiseManager, _getSortedPlugins, getSortedPlugins_fn, _addExecutedToCallStack, addExecutedToCallStack_fn, _execute, execute_fn, _executeSync, executeSync_fn, _catcher, catcher_fn, _parse, parse_fn;
2098
2098
  var PluginManager = class {
2099
2099
  constructor(config, options) {
2100
- chunkPAJNBSPO_cjs.__privateAdd(this, _getSortedPlugins);
2101
- chunkPAJNBSPO_cjs.__privateAdd(this, _addExecutedToCallStack);
2100
+ chunkWZQO3EPM_cjs.__privateAdd(this, _getSortedPlugins);
2101
+ chunkWZQO3EPM_cjs.__privateAdd(this, _addExecutedToCallStack);
2102
2102
  /**
2103
2103
  * Run an async plugin hook and return the result.
2104
2104
  * @param hookName Name of the plugin hook. Must be either in `PluginHooks` or `OutputPluginValueHooks`.
@@ -2106,7 +2106,7 @@ var PluginManager = class {
2106
2106
  * @param plugin The actual pluginObject to run.
2107
2107
  */
2108
2108
  // Implementation signature
2109
- chunkPAJNBSPO_cjs.__privateAdd(this, _execute);
2109
+ chunkWZQO3EPM_cjs.__privateAdd(this, _execute);
2110
2110
  /**
2111
2111
  * Run a sync plugin hook and return the result.
2112
2112
  * @param hookName Name of the plugin hook. Must be in `PluginHooks`.
@@ -2114,14 +2114,14 @@ var PluginManager = class {
2114
2114
  * @param plugin The acutal plugin
2115
2115
  * @param replaceContext When passed, the plugin context can be overridden.
2116
2116
  */
2117
- chunkPAJNBSPO_cjs.__privateAdd(this, _executeSync);
2118
- chunkPAJNBSPO_cjs.__privateAdd(this, _catcher);
2119
- chunkPAJNBSPO_cjs.__privateAdd(this, _parse);
2117
+ chunkWZQO3EPM_cjs.__privateAdd(this, _executeSync);
2118
+ chunkWZQO3EPM_cjs.__privateAdd(this, _catcher);
2119
+ chunkWZQO3EPM_cjs.__privateAdd(this, _parse);
2120
2120
  this.events = new EventEmitter2();
2121
2121
  this.executed = [];
2122
- chunkPAJNBSPO_cjs.__privateAdd(this, _core, void 0);
2123
- chunkPAJNBSPO_cjs.__privateAdd(this, _usedPluginNames, {});
2124
- chunkPAJNBSPO_cjs.__privateAdd(this, _promiseManager, void 0);
2122
+ chunkWZQO3EPM_cjs.__privateAdd(this, _core, void 0);
2123
+ chunkWZQO3EPM_cjs.__privateAdd(this, _usedPluginNames, {});
2124
+ chunkWZQO3EPM_cjs.__privateAdd(this, _promiseManager, void 0);
2125
2125
  this.resolvePath = (params) => {
2126
2126
  if (params.pluginKey) {
2127
2127
  const paths = this.hookForPluginSync({
@@ -2129,7 +2129,7 @@ var PluginManager = class {
2129
2129
  hookName: "resolvePath",
2130
2130
  parameters: [params.baseName, params.directory, params.options]
2131
2131
  });
2132
- if (paths && paths?.length > 1 && this.logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.debug) {
2132
+ if (paths && paths?.length > 1 && this.logger.logLevel === chunkPLVKILIY_cjs.LogLevel.debug) {
2133
2133
  this.logger.debug(
2134
2134
  `Cannot return a path where the 'pluginKey' ${params.pluginKey ? JSON.stringify(params.pluginKey) : '"'} is not unique enough
2135
2135
 
@@ -2153,7 +2153,7 @@ Falling back on the first item.
2153
2153
  hookName: "resolveName",
2154
2154
  parameters: [params.name, params.type]
2155
2155
  });
2156
- if (names && names?.length > 1 && this.logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.debug) {
2156
+ if (names && names?.length > 1 && this.logger.logLevel === chunkPLVKILIY_cjs.LogLevel.debug) {
2157
2157
  this.logger.debug(
2158
2158
  `Cannot return a name where the 'pluginKey' ${params.pluginKey ? JSON.stringify(params.pluginKey) : '"'} is not unique enough
2159
2159
 
@@ -2163,19 +2163,19 @@ Falling back on the first item.
2163
2163
  `
2164
2164
  );
2165
2165
  }
2166
- return chunkQS3TLDZN_cjs.transformReservedWord(names?.at(0) || params.name);
2166
+ return chunk5TK7TMV6_cjs.transformReservedWord(names?.at(0) || params.name);
2167
2167
  }
2168
2168
  const name = this.hookFirstSync({
2169
2169
  hookName: "resolveName",
2170
2170
  parameters: [params.name, params.type]
2171
2171
  }).result;
2172
- return chunkQS3TLDZN_cjs.transformReservedWord(name);
2172
+ return chunk5TK7TMV6_cjs.transformReservedWord(name);
2173
2173
  };
2174
2174
  this.config = config;
2175
2175
  this.logger = options.logger;
2176
2176
  this.queue = new PQueue({ concurrency: 1 });
2177
2177
  this.fileManager = new FileManager({ task: options.task, queue: this.queue });
2178
- chunkPAJNBSPO_cjs.__privateSet(this, _promiseManager, new PromiseManager({ nullCheck: (state) => !!state?.result }));
2178
+ chunkWZQO3EPM_cjs.__privateSet(this, _promiseManager, new PromiseManager({ nullCheck: (state) => !!state?.result }));
2179
2179
  const plugins = config.plugins || [];
2180
2180
  const core = definePlugin({
2181
2181
  config,
@@ -2184,11 +2184,11 @@ Falling back on the first item.
2184
2184
  fileManager: this.fileManager,
2185
2185
  resolvePath: this.resolvePath.bind(this),
2186
2186
  resolveName: this.resolveName.bind(this),
2187
- getPlugins: chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2187
+ getPlugins: chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2188
2188
  });
2189
- chunkPAJNBSPO_cjs.__privateSet(this, _core, chunkPAJNBSPO_cjs.__privateMethod(this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2190
- this.plugins = [chunkPAJNBSPO_cjs.__privateGet(this, _core), ...plugins].map((plugin) => {
2191
- return chunkPAJNBSPO_cjs.__privateMethod(this, _parse, parse_fn).call(this, plugin, this, chunkPAJNBSPO_cjs.__privateGet(this, _core).api);
2189
+ chunkWZQO3EPM_cjs.__privateSet(this, _core, chunkWZQO3EPM_cjs.__privateMethod(this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2190
+ this.plugins = [chunkWZQO3EPM_cjs.__privateGet(this, _core), ...plugins].map((plugin) => {
2191
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _parse, parse_fn).call(this, plugin, this, chunkWZQO3EPM_cjs.__privateGet(this, _core).api);
2192
2192
  });
2193
2193
  return this;
2194
2194
  }
@@ -2208,7 +2208,7 @@ Falling back on the first item.
2208
2208
  }) {
2209
2209
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2210
2210
  const promises = plugins.map((plugin) => {
2211
- return chunkPAJNBSPO_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2211
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2212
2212
  strategy: "hookFirst",
2213
2213
  hookName,
2214
2214
  parameters,
@@ -2227,7 +2227,7 @@ Falling back on the first item.
2227
2227
  }) {
2228
2228
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2229
2229
  return plugins.map((plugin) => {
2230
- return chunkPAJNBSPO_cjs.__privateMethod(this, _executeSync, executeSync_fn).call(this, {
2230
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _executeSync, executeSync_fn).call(this, {
2231
2231
  strategy: "hookFirst",
2232
2232
  hookName,
2233
2233
  parameters,
@@ -2243,11 +2243,11 @@ Falling back on the first item.
2243
2243
  parameters,
2244
2244
  skipped
2245
2245
  }) {
2246
- const promises = chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2246
+ const promises = chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2247
2247
  return skipped ? skipped.has(plugin) : true;
2248
2248
  }).map((plugin) => {
2249
2249
  return async () => {
2250
- const value = await chunkPAJNBSPO_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2250
+ const value = await chunkWZQO3EPM_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2251
2251
  strategy: "hookFirst",
2252
2252
  hookName,
2253
2253
  parameters,
@@ -2261,7 +2261,7 @@ Falling back on the first item.
2261
2261
  );
2262
2262
  };
2263
2263
  });
2264
- return chunkPAJNBSPO_cjs.__privateGet(this, _promiseManager).run("first", promises);
2264
+ return chunkWZQO3EPM_cjs.__privateGet(this, _promiseManager).run("first", promises);
2265
2265
  }
2266
2266
  /**
2267
2267
  * First non-null result stops and will return it's value.
@@ -2272,12 +2272,12 @@ Falling back on the first item.
2272
2272
  skipped
2273
2273
  }) {
2274
2274
  let parseResult = null;
2275
- for (const plugin of chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2275
+ for (const plugin of chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2276
2276
  if (skipped && skipped.has(plugin)) {
2277
2277
  continue;
2278
2278
  }
2279
2279
  parseResult = {
2280
- result: chunkPAJNBSPO_cjs.__privateMethod(this, _executeSync, executeSync_fn).call(this, {
2280
+ result: chunkWZQO3EPM_cjs.__privateMethod(this, _executeSync, executeSync_fn).call(this, {
2281
2281
  strategy: "hookFirst",
2282
2282
  hookName,
2283
2283
  parameters,
@@ -2298,14 +2298,14 @@ Falling back on the first item.
2298
2298
  hookName,
2299
2299
  parameters
2300
2300
  }) {
2301
- const promises = chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2302
- return () => chunkPAJNBSPO_cjs.__privateMethod(this, _execute, execute_fn).call(this, { strategy: "hookParallel", hookName, parameters, plugin });
2301
+ const promises = chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2302
+ return () => chunkWZQO3EPM_cjs.__privateMethod(this, _execute, execute_fn).call(this, { strategy: "hookParallel", hookName, parameters, plugin });
2303
2303
  });
2304
- const results = await chunkPAJNBSPO_cjs.__privateGet(this, _promiseManager).run("parallel", promises);
2304
+ const results = await chunkWZQO3EPM_cjs.__privateGet(this, _promiseManager).run("parallel", promises);
2305
2305
  results.forEach((result, index) => {
2306
2306
  if (isPromiseRejectedResult(result)) {
2307
- const plugin = chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2308
- chunkPAJNBSPO_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2307
+ const plugin = chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2308
+ chunkWZQO3EPM_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2309
2309
  }
2310
2310
  });
2311
2311
  return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
@@ -2320,16 +2320,16 @@ Falling back on the first item.
2320
2320
  }) {
2321
2321
  const [argument0, ...rest] = parameters;
2322
2322
  let promise = Promise.resolve(argument0);
2323
- for (const plugin of chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2323
+ for (const plugin of chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2324
2324
  promise = promise.then((arg0) => {
2325
- const value = chunkPAJNBSPO_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2325
+ const value = chunkWZQO3EPM_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2326
2326
  strategy: "hookReduceArg0",
2327
2327
  hookName,
2328
2328
  parameters: [arg0, ...rest],
2329
2329
  plugin
2330
2330
  });
2331
2331
  return value;
2332
- }).then((result) => reduce.call(chunkPAJNBSPO_cjs.__privateGet(this, _core).api, argument0, result, plugin));
2332
+ }).then((result) => reduce.call(chunkWZQO3EPM_cjs.__privateGet(this, _core).api, argument0, result, plugin));
2333
2333
  }
2334
2334
  return promise;
2335
2335
  }
@@ -2337,15 +2337,15 @@ Falling back on the first item.
2337
2337
  * Chains plugins
2338
2338
  */
2339
2339
  async hookSeq({ hookName, parameters }) {
2340
- const promises = chunkPAJNBSPO_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2341
- return () => chunkPAJNBSPO_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2340
+ const promises = chunkWZQO3EPM_cjs.__privateMethod(this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2341
+ return () => chunkWZQO3EPM_cjs.__privateMethod(this, _execute, execute_fn).call(this, {
2342
2342
  strategy: "hookSeq",
2343
2343
  hookName,
2344
2344
  parameters,
2345
2345
  plugin
2346
2346
  });
2347
2347
  });
2348
- return chunkPAJNBSPO_cjs.__privateGet(this, _promiseManager).run("seq", promises);
2348
+ return chunkWZQO3EPM_cjs.__privateGet(this, _promiseManager).run("seq", promises);
2349
2349
  }
2350
2350
  getPluginsByKey(hookName, pluginKey) {
2351
2351
  const plugins = [...this.plugins];
@@ -2361,7 +2361,7 @@ Falling back on the first item.
2361
2361
  });
2362
2362
  if (!pluginByPluginName?.length) {
2363
2363
  const corePlugin = plugins.find((plugin) => plugin.name === "core" && plugin[hookName]);
2364
- if (this.logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.debug) {
2364
+ if (this.logger.logLevel === chunkPLVKILIY_cjs.LogLevel.debug) {
2365
2365
  if (corePlugin) {
2366
2366
  this.logger.debug(`No hook '${hookName}' for pluginKey '${JSON.stringify(pluginKey)}' found, falling back on the '@kubb/core' plugin`);
2367
2367
  } else {
@@ -2399,7 +2399,7 @@ _getSortedPlugins = new WeakSet();
2399
2399
  getSortedPlugins_fn = function(hookName) {
2400
2400
  const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
2401
2401
  if (hookName) {
2402
- if (this.logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.info) {
2402
+ if (this.logger.logLevel === chunkPLVKILIY_cjs.LogLevel.info) {
2403
2403
  const containsHookName = plugins.some((item) => item[hookName]);
2404
2404
  if (!containsHookName) {
2405
2405
  this.logger.warn(`No hook ${hookName} found`);
@@ -2447,7 +2447,7 @@ execute_fn = function({
2447
2447
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2448
2448
  const task = Promise.resolve().then(() => {
2449
2449
  if (typeof hook === "function") {
2450
- const possiblePromiseResult = hook.apply({ ...chunkPAJNBSPO_cjs.__privateGet(this, _core).api, plugin }, parameters);
2450
+ const possiblePromiseResult = hook.apply({ ...chunkWZQO3EPM_cjs.__privateGet(this, _core).api, plugin }, parameters);
2451
2451
  if (isPromise(possiblePromiseResult)) {
2452
2452
  return Promise.resolve(possiblePromiseResult);
2453
2453
  }
@@ -2456,7 +2456,7 @@ execute_fn = function({
2456
2456
  return hook;
2457
2457
  }).then((result) => {
2458
2458
  output = result;
2459
- chunkPAJNBSPO_cjs.__privateMethod(this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2459
+ chunkWZQO3EPM_cjs.__privateMethod(this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2460
2460
  parameters,
2461
2461
  output,
2462
2462
  strategy,
@@ -2465,7 +2465,7 @@ execute_fn = function({
2465
2465
  });
2466
2466
  return result;
2467
2467
  }).catch((e) => {
2468
- chunkPAJNBSPO_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2468
+ chunkWZQO3EPM_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2469
2469
  return null;
2470
2470
  });
2471
2471
  return task;
@@ -2485,12 +2485,12 @@ executeSync_fn = function({
2485
2485
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2486
2486
  try {
2487
2487
  if (typeof hook === "function") {
2488
- const fn = hook.apply({ ...chunkPAJNBSPO_cjs.__privateGet(this, _core).api, plugin }, parameters);
2488
+ const fn = hook.apply({ ...chunkWZQO3EPM_cjs.__privateGet(this, _core).api, plugin }, parameters);
2489
2489
  output = fn;
2490
2490
  return fn;
2491
2491
  }
2492
2492
  output = hook;
2493
- chunkPAJNBSPO_cjs.__privateMethod(this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2493
+ chunkWZQO3EPM_cjs.__privateMethod(this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2494
2494
  parameters,
2495
2495
  output,
2496
2496
  strategy,
@@ -2499,7 +2499,7 @@ executeSync_fn = function({
2499
2499
  });
2500
2500
  return hook;
2501
2501
  } catch (e) {
2502
- chunkPAJNBSPO_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2502
+ chunkWZQO3EPM_cjs.__privateMethod(this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2503
2503
  return null;
2504
2504
  }
2505
2505
  };
@@ -2512,8 +2512,8 @@ catcher_fn = function(e, plugin, hookName) {
2512
2512
  };
2513
2513
  _parse = new WeakSet();
2514
2514
  parse_fn = function(plugin, pluginManager, context) {
2515
- const usedPluginNames = chunkPAJNBSPO_cjs.__privateGet(pluginManager, _usedPluginNames);
2516
- chunkANP6S23V_cjs.setUniqueName(plugin.name, usedPluginNames);
2515
+ const usedPluginNames = chunkWZQO3EPM_cjs.__privateGet(pluginManager, _usedPluginNames);
2516
+ chunkH47IKRXJ_cjs.setUniqueName(plugin.name, usedPluginNames);
2517
2517
  const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
2518
2518
  if (!plugin.transform) {
2519
2519
  plugin.transform = function transform(code) {
@@ -2539,16 +2539,16 @@ async function transformReducer(_previousCode, result, _plugin) {
2539
2539
  return result;
2540
2540
  }
2541
2541
  async function setup(options) {
2542
- const { config, logger = chunkMYRGSDE5_cjs.createLogger({ logLevel: chunkMYRGSDE5_cjs.LogLevel.silent }) } = options;
2542
+ const { config, logger = chunkPLVKILIY_cjs.createLogger({ logLevel: chunkPLVKILIY_cjs.LogLevel.silent }) } = options;
2543
2543
  let count = 0;
2544
2544
  try {
2545
- if (isInputPath(config) && !new chunkANP6S23V_cjs.URLPath(config.input.path).isURL) {
2546
- await chunk5VM4RVM5_cjs.read(config.input.path);
2545
+ if (isInputPath(config) && !new chunkH47IKRXJ_cjs.URLPath(config.input.path).isURL) {
2546
+ await chunkW2FP7ZWW_cjs.read(config.input.path);
2547
2547
  }
2548
2548
  } catch (e) {
2549
2549
  if (isInputPath(config)) {
2550
2550
  throw new Error(
2551
- "Cannot read file/URL defined in `input.path` or set with `kubb generate PATH` in the CLI of your Kubb config " + chunkMYRGSDE5_cjs.p.dim(config.input.path),
2551
+ "Cannot read file/URL defined in `input.path` or set with `kubb generate PATH` in the CLI of your Kubb config " + chunkPLVKILIY_cjs.p.dim(config.input.path),
2552
2552
  {
2553
2553
  cause: e
2554
2554
  }
@@ -2556,7 +2556,7 @@ async function setup(options) {
2556
2556
  }
2557
2557
  }
2558
2558
  if (config.output.clean) {
2559
- await chunk5VM4RVM5_cjs.clean(config.output.path);
2559
+ await chunkW2FP7ZWW_cjs.clean(config.output.path);
2560
2560
  }
2561
2561
  const task = async (file) => {
2562
2562
  const { path: path5 } = file;
@@ -2601,8 +2601,8 @@ async function setup(options) {
2601
2601
  const { hookName, parameters, plugin } = executer;
2602
2602
  if (hookName === "writeFile" && logger.spinner) {
2603
2603
  const [code] = parameters;
2604
- if (logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.debug) {
2605
- logger.debug(`PluginKey ${chunkMYRGSDE5_cjs.p.dim(JSON.stringify(plugin.key))}
2604
+ if (logger.logLevel === chunkPLVKILIY_cjs.LogLevel.debug) {
2605
+ logger.debug(`PluginKey ${chunkPLVKILIY_cjs.p.dim(JSON.stringify(plugin.key))}
2606
2606
  with source
2607
2607
 
2608
2608
  ${code}`);
@@ -2610,7 +2610,7 @@ ${code}`);
2610
2610
  }
2611
2611
  });
2612
2612
  pluginManager.queue.on("add", () => {
2613
- if (logger.logLevel !== chunkMYRGSDE5_cjs.LogLevel.info) {
2613
+ if (logger.logLevel !== chunkPLVKILIY_cjs.LogLevel.info) {
2614
2614
  return;
2615
2615
  }
2616
2616
  if (logger.spinner && count === 0) {
@@ -2618,32 +2618,32 @@ ${code}`);
2618
2618
  }
2619
2619
  });
2620
2620
  pluginManager.queue.on("active", () => {
2621
- if (logger.logLevel !== chunkMYRGSDE5_cjs.LogLevel.info) {
2621
+ if (logger.logLevel !== chunkPLVKILIY_cjs.LogLevel.info) {
2622
2622
  return;
2623
2623
  }
2624
2624
  if (logger.spinner && pluginManager.queue.size > 0) {
2625
2625
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
2626
- logger.spinner.suffixText = chunkMYRGSDE5_cjs.p.dim(text);
2626
+ logger.spinner.suffixText = chunkPLVKILIY_cjs.p.dim(text);
2627
2627
  }
2628
2628
  ++count;
2629
2629
  });
2630
2630
  pluginManager.queue.on("completed", () => {
2631
- if (logger.logLevel !== chunkMYRGSDE5_cjs.LogLevel.info) {
2631
+ if (logger.logLevel !== chunkPLVKILIY_cjs.LogLevel.info) {
2632
2632
  return;
2633
2633
  }
2634
2634
  if (logger.spinner) {
2635
2635
  const text = `Item: ${count} Size: ${pluginManager.queue.size} Pending: ${pluginManager.queue.pending}`;
2636
- logger.spinner.suffixText = chunkMYRGSDE5_cjs.p.dim(text);
2636
+ logger.spinner.suffixText = chunkPLVKILIY_cjs.p.dim(text);
2637
2637
  }
2638
2638
  });
2639
2639
  pluginManager.on("executed", (executer) => {
2640
2640
  const { hookName, plugin, output, parameters } = executer;
2641
- if (logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.debug) {
2641
+ if (logger.logLevel === chunkPLVKILIY_cjs.LogLevel.debug) {
2642
2642
  const logs = [
2643
- `${chunkMYRGSDE5_cjs.randomCliColour(plugin.name)} Executing ${hookName}`,
2644
- parameters && `${chunkMYRGSDE5_cjs.p.bgWhite(`Parameters`)} ${chunkMYRGSDE5_cjs.randomCliColour(plugin.name)} ${hookName}`,
2643
+ `${chunkPLVKILIY_cjs.randomCliColour(plugin.name)} Executing ${hookName}`,
2644
+ parameters && `${chunkPLVKILIY_cjs.p.bgWhite(`Parameters`)} ${chunkPLVKILIY_cjs.randomCliColour(plugin.name)} ${hookName}`,
2645
2645
  JSON.stringify(parameters, void 0, 2),
2646
- output && `${chunkMYRGSDE5_cjs.p.bgWhite("Output")} ${chunkMYRGSDE5_cjs.randomCliColour(plugin.name)} ${hookName}`,
2646
+ output && `${chunkPLVKILIY_cjs.p.bgWhite("Output")} ${chunkPLVKILIY_cjs.randomCliColour(plugin.name)} ${hookName}`,
2647
2647
  output
2648
2648
  ].filter(Boolean);
2649
2649
  logger.debug(logs.join("\n"));
@@ -2659,7 +2659,7 @@ async function build(options) {
2659
2659
  parameters: [options.config]
2660
2660
  });
2661
2661
  await pluginManager.hookParallel({ hookName: "buildEnd" });
2662
- if (logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.info && logger.spinner) {
2662
+ if (logger.logLevel === chunkPLVKILIY_cjs.LogLevel.info && logger.spinner) {
2663
2663
  logger.spinner.suffixText = "";
2664
2664
  logger.spinner.succeed(`\u{1F4BE} Writing completed`);
2665
2665
  }
@@ -2674,7 +2674,7 @@ async function safeBuild(options) {
2674
2674
  parameters: [options.config]
2675
2675
  });
2676
2676
  await pluginManager.hookParallel({ hookName: "buildEnd" });
2677
- if (logger.logLevel === chunkMYRGSDE5_cjs.LogLevel.info && logger.spinner) {
2677
+ if (logger.logLevel === chunkPLVKILIY_cjs.LogLevel.info && logger.spinner) {
2678
2678
  logger.spinner.suffixText = "";
2679
2679
  logger.spinner.succeed(`\u{1F4BE} Writing completed`);
2680
2680
  }
@@ -2685,95 +2685,95 @@ async function safeBuild(options) {
2685
2685
  }
2686
2686
 
2687
2687
  // src/Generator.ts
2688
- chunkPAJNBSPO_cjs.init_cjs_shims();
2688
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2689
2689
  var _options3, _context;
2690
2690
  var Generator = class {
2691
2691
  constructor(options, context) {
2692
- chunkPAJNBSPO_cjs.__privateAdd(this, _options3, {});
2693
- chunkPAJNBSPO_cjs.__privateAdd(this, _context, {});
2692
+ chunkWZQO3EPM_cjs.__privateAdd(this, _options3, {});
2693
+ chunkWZQO3EPM_cjs.__privateAdd(this, _context, {});
2694
2694
  if (context) {
2695
- chunkPAJNBSPO_cjs.__privateSet(this, _context, context);
2695
+ chunkWZQO3EPM_cjs.__privateSet(this, _context, context);
2696
2696
  }
2697
2697
  if (options) {
2698
- chunkPAJNBSPO_cjs.__privateSet(this, _options3, options);
2698
+ chunkWZQO3EPM_cjs.__privateSet(this, _options3, options);
2699
2699
  }
2700
2700
  return this;
2701
2701
  }
2702
2702
  get options() {
2703
- return chunkPAJNBSPO_cjs.__privateGet(this, _options3);
2703
+ return chunkWZQO3EPM_cjs.__privateGet(this, _options3);
2704
2704
  }
2705
2705
  get context() {
2706
- return chunkPAJNBSPO_cjs.__privateGet(this, _context);
2706
+ return chunkWZQO3EPM_cjs.__privateGet(this, _context);
2707
2707
  }
2708
2708
  set options(options) {
2709
- chunkPAJNBSPO_cjs.__privateSet(this, _options3, { ...chunkPAJNBSPO_cjs.__privateGet(this, _options3), ...options });
2709
+ chunkWZQO3EPM_cjs.__privateSet(this, _options3, { ...chunkWZQO3EPM_cjs.__privateGet(this, _options3), ...options });
2710
2710
  }
2711
2711
  };
2712
2712
  _options3 = new WeakMap();
2713
2713
  _context = new WeakMap();
2714
2714
 
2715
2715
  // src/PackageManager.ts
2716
- chunkPAJNBSPO_cjs.init_cjs_shims();
2716
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2717
2717
 
2718
2718
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
2719
- chunkPAJNBSPO_cjs.init_cjs_shims();
2719
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2720
2720
 
2721
2721
  // ../../node_modules/.pnpm/locate-path@7.2.0/node_modules/locate-path/index.js
2722
- chunkPAJNBSPO_cjs.init_cjs_shims();
2722
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2723
2723
 
2724
2724
  // ../../node_modules/.pnpm/p-locate@6.0.0/node_modules/p-locate/index.js
2725
- chunkPAJNBSPO_cjs.init_cjs_shims();
2725
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2726
2726
 
2727
2727
  // ../../node_modules/.pnpm/p-limit@4.0.0/node_modules/p-limit/index.js
2728
- chunkPAJNBSPO_cjs.init_cjs_shims();
2728
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2729
2729
 
2730
2730
  // ../../node_modules/.pnpm/yocto-queue@1.0.0/node_modules/yocto-queue/index.js
2731
- chunkPAJNBSPO_cjs.init_cjs_shims();
2731
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2732
2732
  var Node = class {
2733
2733
  constructor(value) {
2734
- chunkPAJNBSPO_cjs.__publicField(this, "value");
2735
- chunkPAJNBSPO_cjs.__publicField(this, "next");
2734
+ chunkWZQO3EPM_cjs.__publicField(this, "value");
2735
+ chunkWZQO3EPM_cjs.__publicField(this, "next");
2736
2736
  this.value = value;
2737
2737
  }
2738
2738
  };
2739
2739
  var _head, _tail, _size;
2740
2740
  var Queue = class {
2741
2741
  constructor() {
2742
- chunkPAJNBSPO_cjs.__privateAdd(this, _head, void 0);
2743
- chunkPAJNBSPO_cjs.__privateAdd(this, _tail, void 0);
2744
- chunkPAJNBSPO_cjs.__privateAdd(this, _size, void 0);
2742
+ chunkWZQO3EPM_cjs.__privateAdd(this, _head, void 0);
2743
+ chunkWZQO3EPM_cjs.__privateAdd(this, _tail, void 0);
2744
+ chunkWZQO3EPM_cjs.__privateAdd(this, _size, void 0);
2745
2745
  this.clear();
2746
2746
  }
2747
2747
  enqueue(value) {
2748
2748
  const node = new Node(value);
2749
- if (chunkPAJNBSPO_cjs.__privateGet(this, _head)) {
2750
- chunkPAJNBSPO_cjs.__privateGet(this, _tail).next = node;
2751
- chunkPAJNBSPO_cjs.__privateSet(this, _tail, node);
2749
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _head)) {
2750
+ chunkWZQO3EPM_cjs.__privateGet(this, _tail).next = node;
2751
+ chunkWZQO3EPM_cjs.__privateSet(this, _tail, node);
2752
2752
  } else {
2753
- chunkPAJNBSPO_cjs.__privateSet(this, _head, node);
2754
- chunkPAJNBSPO_cjs.__privateSet(this, _tail, node);
2753
+ chunkWZQO3EPM_cjs.__privateSet(this, _head, node);
2754
+ chunkWZQO3EPM_cjs.__privateSet(this, _tail, node);
2755
2755
  }
2756
- chunkPAJNBSPO_cjs.__privateWrapper(this, _size)._++;
2756
+ chunkWZQO3EPM_cjs.__privateWrapper(this, _size)._++;
2757
2757
  }
2758
2758
  dequeue() {
2759
- const current = chunkPAJNBSPO_cjs.__privateGet(this, _head);
2759
+ const current = chunkWZQO3EPM_cjs.__privateGet(this, _head);
2760
2760
  if (!current) {
2761
2761
  return;
2762
2762
  }
2763
- chunkPAJNBSPO_cjs.__privateSet(this, _head, chunkPAJNBSPO_cjs.__privateGet(this, _head).next);
2764
- chunkPAJNBSPO_cjs.__privateWrapper(this, _size)._--;
2763
+ chunkWZQO3EPM_cjs.__privateSet(this, _head, chunkWZQO3EPM_cjs.__privateGet(this, _head).next);
2764
+ chunkWZQO3EPM_cjs.__privateWrapper(this, _size)._--;
2765
2765
  return current.value;
2766
2766
  }
2767
2767
  clear() {
2768
- chunkPAJNBSPO_cjs.__privateSet(this, _head, void 0);
2769
- chunkPAJNBSPO_cjs.__privateSet(this, _tail, void 0);
2770
- chunkPAJNBSPO_cjs.__privateSet(this, _size, 0);
2768
+ chunkWZQO3EPM_cjs.__privateSet(this, _head, void 0);
2769
+ chunkWZQO3EPM_cjs.__privateSet(this, _tail, void 0);
2770
+ chunkWZQO3EPM_cjs.__privateSet(this, _size, 0);
2771
2771
  }
2772
2772
  get size() {
2773
- return chunkPAJNBSPO_cjs.__privateGet(this, _size);
2773
+ return chunkWZQO3EPM_cjs.__privateGet(this, _size);
2774
2774
  }
2775
2775
  *[Symbol.iterator]() {
2776
- let current = chunkPAJNBSPO_cjs.__privateGet(this, _head);
2776
+ let current = chunkWZQO3EPM_cjs.__privateGet(this, _head);
2777
2777
  while (current) {
2778
2778
  yield current.value;
2779
2779
  current = current.next;
@@ -2924,13 +2924,13 @@ function locatePathSync(paths, {
2924
2924
  }
2925
2925
 
2926
2926
  // ../../node_modules/.pnpm/unicorn-magic@0.1.0/node_modules/unicorn-magic/node.js
2927
- chunkPAJNBSPO_cjs.init_cjs_shims();
2927
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2928
2928
  function toPath2(urlOrPath) {
2929
2929
  return urlOrPath instanceof URL ? url.fileURLToPath(urlOrPath) : urlOrPath;
2930
2930
  }
2931
2931
 
2932
2932
  // ../../node_modules/.pnpm/path-exists@5.0.0/node_modules/path-exists/index.js
2933
- chunkPAJNBSPO_cjs.init_cjs_shims();
2933
+ chunkWZQO3EPM_cjs.init_cjs_shims();
2934
2934
 
2935
2935
  // ../../node_modules/.pnpm/find-up@7.0.0/node_modules/find-up/index.js
2936
2936
  var findUpStop = Symbol("findUpStop");
@@ -3009,30 +3009,30 @@ function findUpSync(name, options = {}) {
3009
3009
  var _cache2, _cwd, _SLASHES, _match, match_fn;
3010
3010
  var _PackageManager = class _PackageManager {
3011
3011
  constructor(workspace) {
3012
- chunkPAJNBSPO_cjs.__privateAdd(this, _match);
3013
- chunkPAJNBSPO_cjs.__privateAdd(this, _cwd, void 0);
3014
- chunkPAJNBSPO_cjs.__privateAdd(this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
3012
+ chunkWZQO3EPM_cjs.__privateAdd(this, _match);
3013
+ chunkWZQO3EPM_cjs.__privateAdd(this, _cwd, void 0);
3014
+ chunkWZQO3EPM_cjs.__privateAdd(this, _SLASHES, /* @__PURE__ */ new Set(["/", "\\"]));
3015
3015
  if (workspace) {
3016
- chunkPAJNBSPO_cjs.__privateSet(this, _cwd, workspace);
3016
+ chunkWZQO3EPM_cjs.__privateSet(this, _cwd, workspace);
3017
3017
  }
3018
3018
  return this;
3019
3019
  }
3020
3020
  set workspace(workspace) {
3021
- chunkPAJNBSPO_cjs.__privateSet(this, _cwd, workspace);
3021
+ chunkWZQO3EPM_cjs.__privateSet(this, _cwd, workspace);
3022
3022
  }
3023
3023
  get workspace() {
3024
- return chunkPAJNBSPO_cjs.__privateGet(this, _cwd);
3024
+ return chunkWZQO3EPM_cjs.__privateGet(this, _cwd);
3025
3025
  }
3026
3026
  normalizeDirectory(directory) {
3027
- if (!chunkPAJNBSPO_cjs.__privateGet(this, _SLASHES).has(directory[directory.length - 1])) {
3027
+ if (!chunkWZQO3EPM_cjs.__privateGet(this, _SLASHES).has(directory[directory.length - 1])) {
3028
3028
  return `${directory}/`;
3029
3029
  }
3030
3030
  return directory;
3031
3031
  }
3032
3032
  getLocation(path5) {
3033
3033
  let location = path5;
3034
- if (chunkPAJNBSPO_cjs.__privateGet(this, _cwd)) {
3035
- const require2 = mod__default.default.createRequire(this.normalizeDirectory(chunkPAJNBSPO_cjs.__privateGet(this, _cwd)));
3034
+ if (chunkWZQO3EPM_cjs.__privateGet(this, _cwd)) {
3035
+ const require2 = mod__default.default.createRequire(this.normalizeDirectory(chunkWZQO3EPM_cjs.__privateGet(this, _cwd)));
3036
3036
  location = require2.resolve(path5);
3037
3037
  }
3038
3038
  return location;
@@ -3052,44 +3052,44 @@ var _PackageManager = class _PackageManager {
3052
3052
  }
3053
3053
  async getPackageJSON() {
3054
3054
  const pkgPath = await findUp(["package.json"], {
3055
- cwd: chunkPAJNBSPO_cjs.__privateGet(this, _cwd)
3055
+ cwd: chunkWZQO3EPM_cjs.__privateGet(this, _cwd)
3056
3056
  });
3057
3057
  if (!pkgPath) {
3058
3058
  return void 0;
3059
3059
  }
3060
- return chunkPAJNBSPO_cjs.__require(pkgPath);
3060
+ return chunkWZQO3EPM_cjs.__require(pkgPath);
3061
3061
  }
3062
3062
  getPackageJSONSync() {
3063
3063
  const pkgPath = findUpSync(["package.json"], {
3064
- cwd: chunkPAJNBSPO_cjs.__privateGet(this, _cwd)
3064
+ cwd: chunkWZQO3EPM_cjs.__privateGet(this, _cwd)
3065
3065
  });
3066
3066
  if (!pkgPath) {
3067
3067
  return void 0;
3068
3068
  }
3069
- return chunkPAJNBSPO_cjs.__require(pkgPath);
3069
+ return chunkWZQO3EPM_cjs.__require(pkgPath);
3070
3070
  }
3071
3071
  static setVersion(dependency, version) {
3072
- chunkPAJNBSPO_cjs.__privateGet(_PackageManager, _cache2)[dependency] = version;
3072
+ chunkWZQO3EPM_cjs.__privateGet(_PackageManager, _cache2)[dependency] = version;
3073
3073
  }
3074
3074
  async getVersion(dependency) {
3075
- if (typeof dependency === "string" && chunkPAJNBSPO_cjs.__privateGet(_PackageManager, _cache2)[dependency]) {
3076
- return chunkPAJNBSPO_cjs.__privateGet(_PackageManager, _cache2)[dependency];
3075
+ if (typeof dependency === "string" && chunkWZQO3EPM_cjs.__privateGet(_PackageManager, _cache2)[dependency]) {
3076
+ return chunkWZQO3EPM_cjs.__privateGet(_PackageManager, _cache2)[dependency];
3077
3077
  }
3078
3078
  const packageJSON = await this.getPackageJSON();
3079
3079
  if (!packageJSON) {
3080
3080
  return void 0;
3081
3081
  }
3082
- return chunkPAJNBSPO_cjs.__privateMethod(this, _match, match_fn).call(this, packageJSON, dependency);
3082
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _match, match_fn).call(this, packageJSON, dependency);
3083
3083
  }
3084
3084
  getVersionSync(dependency) {
3085
- if (typeof dependency === "string" && chunkPAJNBSPO_cjs.__privateGet(_PackageManager, _cache2)[dependency]) {
3086
- return chunkPAJNBSPO_cjs.__privateGet(_PackageManager, _cache2)[dependency];
3085
+ if (typeof dependency === "string" && chunkWZQO3EPM_cjs.__privateGet(_PackageManager, _cache2)[dependency]) {
3086
+ return chunkWZQO3EPM_cjs.__privateGet(_PackageManager, _cache2)[dependency];
3087
3087
  }
3088
3088
  const packageJSON = this.getPackageJSONSync();
3089
3089
  if (!packageJSON) {
3090
3090
  return void 0;
3091
3091
  }
3092
- return chunkPAJNBSPO_cjs.__privateMethod(this, _match, match_fn).call(this, packageJSON, dependency);
3092
+ return chunkWZQO3EPM_cjs.__privateMethod(this, _match, match_fn).call(this, packageJSON, dependency);
3093
3093
  }
3094
3094
  async isValid(dependency, version) {
3095
3095
  const packageVersion = await this.getVersion(dependency);
@@ -3132,7 +3132,7 @@ match_fn = function(packageJSON, dependency) {
3132
3132
  const matchedDependency = Object.keys(dependencies).find((dep) => dep.match(dependency));
3133
3133
  return matchedDependency ? dependencies[matchedDependency] : void 0;
3134
3134
  };
3135
- chunkPAJNBSPO_cjs.__privateAdd(_PackageManager, _cache2, {});
3135
+ chunkWZQO3EPM_cjs.__privateAdd(_PackageManager, _cache2, {});
3136
3136
  var PackageManager = _PackageManager;
3137
3137
 
3138
3138
  // src/index.ts