@kubb/core 2.7.0 → 2.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. package/dist/{chunk-6453B5D6.js → chunk-77TYOFGF.js} +3 -3
  2. package/dist/{chunk-6453B5D6.js.map → chunk-77TYOFGF.js.map} +1 -1
  3. package/dist/{chunk-VCS7BATE.js → chunk-AHK6WOW6.js} +3 -3
  4. package/dist/{chunk-AMVMOCJ4.cjs → chunk-AWUFUNOJ.cjs} +4 -4
  5. package/dist/{chunk-3HKED6KQ.js → chunk-BHNAGXM3.js} +7 -7
  6. package/dist/{chunk-M5H5RXTY.cjs → chunk-CUO3T7RA.cjs} +6 -6
  7. package/dist/{chunk-2JNTDAI2.cjs → chunk-DJLNT4KC.cjs} +3 -3
  8. package/dist/{chunk-2JNTDAI2.cjs.map → chunk-DJLNT4KC.cjs.map} +1 -1
  9. package/dist/chunk-EXBYWEC2.cjs +19 -0
  10. package/dist/{chunk-BCD4E3IZ.cjs → chunk-FNHECX2X.cjs} +214 -214
  11. package/dist/{chunk-WCUXF325.cjs → chunk-GNWOOGXA.cjs} +3 -3
  12. package/dist/{chunk-WDKUUZXN.cjs → chunk-IXCRUQPC.cjs} +5 -5
  13. package/dist/{chunk-HTCJOTLL.js → chunk-J2ES4PYI.js} +2 -2
  14. package/dist/{chunk-QDUQWRFO.js → chunk-JPSCPXBD.js} +2 -2
  15. package/dist/{chunk-YNFGR7GL.js → chunk-L3XMZMJ5.js} +2 -2
  16. package/dist/{chunk-YFNYSIDY.js → chunk-SEATGNQM.js} +2 -2
  17. package/dist/{chunk-DUZFWQUE.js → chunk-SV7GUBBD.js} +2 -2
  18. package/dist/{chunk-E4QOZYOP.js → chunk-WRGVBPK2.js} +3 -3
  19. package/dist/{chunk-PHI4BK5K.cjs → chunk-X2JM3GAC.cjs} +90 -90
  20. package/dist/{chunk-7LKI2367.js → chunk-XDO5ZSKZ.js} +2 -2
  21. package/dist/{chunk-JWYPCGK5.cjs → chunk-XXN4BH6X.cjs} +5 -5
  22. package/dist/{chunk-KRX65PCH.cjs → chunk-ZJ6GI35A.cjs} +14 -14
  23. package/dist/fs.cjs +6 -6
  24. package/dist/fs.js +4 -4
  25. package/dist/index.cjs +96 -96
  26. package/dist/index.js +10 -10
  27. package/dist/logger.cjs +4 -4
  28. package/dist/logger.js +3 -3
  29. package/dist/mocks.cjs +10 -10
  30. package/dist/mocks.js +8 -8
  31. package/dist/transformers.cjs +17 -17
  32. package/dist/transformers.js +3 -3
  33. package/dist/utils.cjs +11 -11
  34. package/dist/utils.js +4 -4
  35. package/package.json +5 -5
  36. package/dist/chunk-EFAVSUDO.cjs +0 -19
  37. /package/dist/{chunk-VCS7BATE.js.map → chunk-AHK6WOW6.js.map} +0 -0
  38. /package/dist/{chunk-AMVMOCJ4.cjs.map → chunk-AWUFUNOJ.cjs.map} +0 -0
  39. /package/dist/{chunk-3HKED6KQ.js.map → chunk-BHNAGXM3.js.map} +0 -0
  40. /package/dist/{chunk-M5H5RXTY.cjs.map → chunk-CUO3T7RA.cjs.map} +0 -0
  41. /package/dist/{chunk-EFAVSUDO.cjs.map → chunk-EXBYWEC2.cjs.map} +0 -0
  42. /package/dist/{chunk-BCD4E3IZ.cjs.map → chunk-FNHECX2X.cjs.map} +0 -0
  43. /package/dist/{chunk-WCUXF325.cjs.map → chunk-GNWOOGXA.cjs.map} +0 -0
  44. /package/dist/{chunk-WDKUUZXN.cjs.map → chunk-IXCRUQPC.cjs.map} +0 -0
  45. /package/dist/{chunk-HTCJOTLL.js.map → chunk-J2ES4PYI.js.map} +0 -0
  46. /package/dist/{chunk-QDUQWRFO.js.map → chunk-JPSCPXBD.js.map} +0 -0
  47. /package/dist/{chunk-YNFGR7GL.js.map → chunk-L3XMZMJ5.js.map} +0 -0
  48. /package/dist/{chunk-YFNYSIDY.js.map → chunk-SEATGNQM.js.map} +0 -0
  49. /package/dist/{chunk-DUZFWQUE.js.map → chunk-SV7GUBBD.js.map} +0 -0
  50. /package/dist/{chunk-E4QOZYOP.js.map → chunk-WRGVBPK2.js.map} +0 -0
  51. /package/dist/{chunk-PHI4BK5K.cjs.map → chunk-X2JM3GAC.cjs.map} +0 -0
  52. /package/dist/{chunk-7LKI2367.js.map → chunk-XDO5ZSKZ.js.map} +0 -0
  53. /package/dist/{chunk-JWYPCGK5.cjs.map → chunk-XXN4BH6X.cjs.map} +0 -0
  54. /package/dist/{chunk-KRX65PCH.cjs.map → chunk-ZJ6GI35A.cjs.map} +0 -0
@@ -2,21 +2,21 @@
2
2
 
3
3
 
4
4
 
5
- var _chunkJWYPCGK5cjs = require('./chunk-JWYPCGK5.cjs');
5
+ var _chunkXXN4BH6Xcjs = require('./chunk-XXN4BH6X.cjs');
6
6
 
7
7
 
8
- var _chunkWCUXF325cjs = require('./chunk-WCUXF325.cjs');
8
+ var _chunkGNWOOGXAcjs = require('./chunk-GNWOOGXA.cjs');
9
9
 
10
10
 
11
11
 
12
- var _chunkKRX65PCHcjs = require('./chunk-KRX65PCH.cjs');
12
+ var _chunkZJ6GI35Acjs = require('./chunk-ZJ6GI35A.cjs');
13
13
 
14
14
 
15
15
 
16
- var _chunkWDKUUZXNcjs = require('./chunk-WDKUUZXN.cjs');
16
+ var _chunkIXCRUQPCcjs = require('./chunk-IXCRUQPC.cjs');
17
17
 
18
18
 
19
- var _chunkPHI4BK5Kcjs = require('./chunk-PHI4BK5K.cjs');
19
+ var _chunkX2JM3GACcjs = require('./chunk-X2JM3GAC.cjs');
20
20
 
21
21
 
22
22
 
@@ -27,13 +27,13 @@ var _chunkPHI4BK5Kcjs = require('./chunk-PHI4BK5K.cjs');
27
27
 
28
28
 
29
29
 
30
- var _chunk2JNTDAI2cjs = require('./chunk-2JNTDAI2.cjs');
30
+ var _chunkDJLNT4KCcjs = require('./chunk-DJLNT4KC.cjs');
31
31
 
32
32
  // ../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js
33
- var require_lodash = _chunk2JNTDAI2cjs.__commonJS.call(void 0, {
33
+ var require_lodash = _chunkDJLNT4KCcjs.__commonJS.call(void 0, {
34
34
  "../../node_modules/.pnpm/lodash.isequal@4.5.0/node_modules/lodash.isequal/index.js"(exports, module) {
35
35
  "use strict";
36
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
36
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
37
37
  var LARGE_ARRAY_SIZE = 200;
38
38
  var HASH_UNDEFINED = "__lodash_hash_undefined__";
39
39
  var COMPARE_PARTIAL_FLAG = 1;
@@ -733,10 +733,10 @@ var require_lodash = _chunk2JNTDAI2cjs.__commonJS.call(void 0, {
733
733
  });
734
734
 
735
735
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js
736
- var require_eventemitter3 = _chunk2JNTDAI2cjs.__commonJS.call(void 0, {
736
+ var require_eventemitter3 = _chunkDJLNT4KCcjs.__commonJS.call(void 0, {
737
737
  "../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.js"(exports, module) {
738
738
  "use strict";
739
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
739
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
740
740
  var has = Object.prototype.hasOwnProperty;
741
741
  var prefix = "~";
742
742
  function Events() {
@@ -916,8 +916,8 @@ var require_eventemitter3 = _chunk2JNTDAI2cjs.__commonJS.call(void 0, {
916
916
  });
917
917
 
918
918
  // src/FileManager.ts
919
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
920
- var import_lodash = _chunk2JNTDAI2cjs.__toESM.call(void 0, require_lodash(), 1);
919
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
920
+ var import_lodash = _chunkDJLNT4KCcjs.__toESM.call(void 0, require_lodash(), 1);
921
921
  var _crypto = require('crypto'); var _crypto2 = _interopRequireDefault(_crypto);
922
922
  var _path = require('path'); var _path2 = _interopRequireDefault(_path);
923
923
  var _parser = require('@kubb/parser');
@@ -925,14 +925,14 @@ var _factory = require('@kubb/parser/factory'); var factory = _interopRequireWil
925
925
  var _naturalorderby = require('natural-orderby');
926
926
 
927
927
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/index.js
928
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
928
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
929
929
 
930
930
  // ../../node_modules/.pnpm/eventemitter3@5.0.1/node_modules/eventemitter3/index.mjs
931
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
932
- var import_index = _chunk2JNTDAI2cjs.__toESM.call(void 0, require_eventemitter3(), 1);
931
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
932
+ var import_index = _chunkDJLNT4KCcjs.__toESM.call(void 0, require_eventemitter3(), 1);
933
933
 
934
934
  // ../../node_modules/.pnpm/p-timeout@6.1.2/node_modules/p-timeout/index.js
935
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
935
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
936
936
  var TimeoutError = class extends Error {
937
937
  constructor(message) {
938
938
  super(message);
@@ -1017,10 +1017,10 @@ function pTimeout(promise, options) {
1017
1017
  }
1018
1018
 
1019
1019
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/priority-queue.js
1020
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1020
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1021
1021
 
1022
1022
  // ../../node_modules/.pnpm/p-queue@8.0.1/node_modules/p-queue/dist/lower-bound.js
1023
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1023
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1024
1024
  function lowerBound(array, value, comparator) {
1025
1025
  let first = 0;
1026
1026
  let count = array.length;
@@ -1041,7 +1041,7 @@ function lowerBound(array, value, comparator) {
1041
1041
  var _queue;
1042
1042
  var PriorityQueue = class {
1043
1043
  constructor() {
1044
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _queue, []);
1044
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _queue, []);
1045
1045
  }
1046
1046
  enqueue(run, options) {
1047
1047
  options = {
@@ -1052,22 +1052,22 @@ var PriorityQueue = class {
1052
1052
  priority: options.priority,
1053
1053
  run
1054
1054
  };
1055
- if (this.size && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue)[this.size - 1].priority >= options.priority) {
1056
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue).push(element);
1055
+ if (this.size && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue)[this.size - 1].priority >= options.priority) {
1056
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue).push(element);
1057
1057
  return;
1058
1058
  }
1059
- const index = lowerBound(_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue), element, (a, b) => b.priority - a.priority);
1060
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue).splice(index, 0, element);
1059
+ const index = lowerBound(_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue), element, (a, b) => b.priority - a.priority);
1060
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue).splice(index, 0, element);
1061
1061
  }
1062
1062
  dequeue() {
1063
- const item = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue).shift();
1063
+ const item = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue).shift();
1064
1064
  return _optionalChain([item, 'optionalAccess', _2 => _2.run]);
1065
1065
  }
1066
1066
  filter(options) {
1067
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1067
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue).filter((element) => element.priority === options.priority).map((element) => element.run);
1068
1068
  }
1069
1069
  get size() {
1070
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue).length;
1070
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue).length;
1071
1071
  }
1072
1072
  };
1073
1073
  _queue = new WeakMap();
@@ -1078,41 +1078,41 @@ var PQueue = class extends import_index.default {
1078
1078
  // TODO: The `throwOnTimeout` option should affect the return types of `add()` and `addAll()`
1079
1079
  constructor(options) {
1080
1080
  super();
1081
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _doesIntervalAllowAnother);
1082
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _doesConcurrentAllowAnother);
1083
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _next);
1084
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _onResumeInterval);
1085
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _isIntervalPaused);
1086
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _tryToStartAnother);
1087
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _initializeIntervalIfNeeded);
1088
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _onInterval);
1081
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _doesIntervalAllowAnother);
1082
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _doesConcurrentAllowAnother);
1083
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _next);
1084
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _onResumeInterval);
1085
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _isIntervalPaused);
1086
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _tryToStartAnother);
1087
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _initializeIntervalIfNeeded);
1088
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _onInterval);
1089
1089
  /**
1090
1090
  Executes all queued functions until it reaches the limit.
1091
1091
  */
1092
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _processQueue);
1093
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _throwOnAbort);
1094
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _onEvent);
1095
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _carryoverConcurrencyCount, void 0);
1096
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _isIntervalIgnored, void 0);
1097
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _intervalCount, 0);
1098
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _intervalCap, void 0);
1099
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _interval, void 0);
1100
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _intervalEnd, 0);
1101
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _intervalId, void 0);
1102
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _timeoutId, void 0);
1103
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _queue2, void 0);
1104
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _queueClass, void 0);
1105
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _pending, 0);
1092
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _processQueue);
1093
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _throwOnAbort);
1094
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _onEvent);
1095
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _carryoverConcurrencyCount, void 0);
1096
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _isIntervalIgnored, void 0);
1097
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _intervalCount, 0);
1098
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _intervalCap, void 0);
1099
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _interval, void 0);
1100
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _intervalEnd, 0);
1101
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _intervalId, void 0);
1102
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _timeoutId, void 0);
1103
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _queue2, void 0);
1104
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _queueClass, void 0);
1105
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _pending, 0);
1106
1106
  // The `!` is needed because of https://github.com/microsoft/TypeScript/issues/32194
1107
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _concurrency, void 0);
1108
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _isPaused, void 0);
1109
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _throwOnTimeout, void 0);
1107
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _concurrency, void 0);
1108
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _isPaused, void 0);
1109
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _throwOnTimeout, void 0);
1110
1110
  /**
1111
1111
  Per-operation timeout in milliseconds. Operations fulfill once `timeout` elapses if they haven't already.
1112
1112
 
1113
1113
  Applies to each future operation.
1114
1114
  */
1115
- _chunk2JNTDAI2cjs.__publicField.call(void 0, this, "timeout");
1115
+ _chunkDJLNT4KCcjs.__publicField.call(void 0, this, "timeout");
1116
1116
  options = {
1117
1117
  carryoverConcurrencyCount: false,
1118
1118
  intervalCap: Number.POSITIVE_INFINITY,
@@ -1128,37 +1128,37 @@ var PQueue = class extends import_index.default {
1128
1128
  if (options.interval === void 0 || !(Number.isFinite(options.interval) && options.interval >= 0)) {
1129
1129
  throw new TypeError(`Expected \`interval\` to be a finite number >= 0, got \`${_nullishCoalesce(_optionalChain([options, 'access', _6 => _6.interval, 'optionalAccess', _7 => _7.toString, 'call', _8 => _8()]), () => ( ""))}\` (${typeof options.interval})`);
1130
1130
  }
1131
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1132
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1133
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalCap, options.intervalCap);
1134
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _interval, options.interval);
1135
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _queue2, new options.queueClass());
1136
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _queueClass, options.queueClass);
1131
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _carryoverConcurrencyCount, options.carryoverConcurrencyCount);
1132
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _isIntervalIgnored, options.intervalCap === Number.POSITIVE_INFINITY || options.interval === 0);
1133
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalCap, options.intervalCap);
1134
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _interval, options.interval);
1135
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _queue2, new options.queueClass());
1136
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _queueClass, options.queueClass);
1137
1137
  this.concurrency = options.concurrency;
1138
1138
  this.timeout = options.timeout;
1139
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _throwOnTimeout, options.throwOnTimeout === true);
1140
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _isPaused, options.autoStart === false);
1139
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _throwOnTimeout, options.throwOnTimeout === true);
1140
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _isPaused, options.autoStart === false);
1141
1141
  }
1142
1142
  get concurrency() {
1143
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _concurrency);
1143
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _concurrency);
1144
1144
  }
1145
1145
  set concurrency(newConcurrency) {
1146
1146
  if (!(typeof newConcurrency === "number" && newConcurrency >= 1)) {
1147
1147
  throw new TypeError(`Expected \`concurrency\` to be a number from 1 and up, got \`${newConcurrency}\` (${typeof newConcurrency})`);
1148
1148
  }
1149
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _concurrency, newConcurrency);
1150
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1149
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _concurrency, newConcurrency);
1150
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1151
1151
  }
1152
1152
  async add(function_, options = {}) {
1153
1153
  options = {
1154
1154
  timeout: this.timeout,
1155
- throwOnTimeout: _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _throwOnTimeout),
1155
+ throwOnTimeout: _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _throwOnTimeout),
1156
1156
  ...options
1157
1157
  };
1158
1158
  return new Promise((resolve2, reject) => {
1159
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).enqueue(async () => {
1160
- _chunk2JNTDAI2cjs.__privateWrapper.call(void 0, this, _pending)._++;
1161
- _chunk2JNTDAI2cjs.__privateWrapper.call(void 0, this, _intervalCount)._++;
1159
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).enqueue(async () => {
1160
+ _chunkDJLNT4KCcjs.__privateWrapper.call(void 0, this, _pending)._++;
1161
+ _chunkDJLNT4KCcjs.__privateWrapper.call(void 0, this, _intervalCount)._++;
1162
1162
  try {
1163
1163
  _optionalChain([options, 'access', _9 => _9.signal, 'optionalAccess', _10 => _10.throwIfAborted, 'call', _11 => _11()]);
1164
1164
  let operation = function_({ signal: options.signal });
@@ -1166,7 +1166,7 @@ var PQueue = class extends import_index.default {
1166
1166
  operation = pTimeout(Promise.resolve(operation), { milliseconds: options.timeout });
1167
1167
  }
1168
1168
  if (options.signal) {
1169
- operation = Promise.race([operation, _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1169
+ operation = Promise.race([operation, _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _throwOnAbort, throwOnAbort_fn).call(this, options.signal)]);
1170
1170
  }
1171
1171
  const result = await operation;
1172
1172
  resolve2(result);
@@ -1179,11 +1179,11 @@ var PQueue = class extends import_index.default {
1179
1179
  reject(error);
1180
1180
  this.emit("error", error);
1181
1181
  } finally {
1182
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _next, next_fn).call(this);
1182
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _next, next_fn).call(this);
1183
1183
  }
1184
1184
  }, options);
1185
1185
  this.emit("add");
1186
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1186
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1187
1187
  });
1188
1188
  }
1189
1189
  async addAll(functions, options) {
@@ -1193,24 +1193,24 @@ var PQueue = class extends import_index.default {
1193
1193
  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.)
1194
1194
  */
1195
1195
  start() {
1196
- if (!_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isPaused)) {
1196
+ if (!_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isPaused)) {
1197
1197
  return this;
1198
1198
  }
1199
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _isPaused, false);
1200
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1199
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _isPaused, false);
1200
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1201
1201
  return this;
1202
1202
  }
1203
1203
  /**
1204
1204
  Put queue execution on hold.
1205
1205
  */
1206
1206
  pause() {
1207
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _isPaused, true);
1207
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _isPaused, true);
1208
1208
  }
1209
1209
  /**
1210
1210
  Clear the queue.
1211
1211
  */
1212
1212
  clear() {
1213
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _queue2, new (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queueClass))());
1213
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _queue2, new (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queueClass))());
1214
1214
  }
1215
1215
  /**
1216
1216
  Can be called multiple times. Useful if you for example add additional items at a later time.
@@ -1218,10 +1218,10 @@ var PQueue = class extends import_index.default {
1218
1218
  @returns A promise that settles when the queue becomes empty.
1219
1219
  */
1220
1220
  async onEmpty() {
1221
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1221
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1222
1222
  return;
1223
1223
  }
1224
- await _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "empty");
1224
+ await _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "empty");
1225
1225
  }
1226
1226
  /**
1227
1227
  @returns A promise that settles when the queue size is less than the given limit: `queue.size < limit`.
@@ -1231,10 +1231,10 @@ var PQueue = class extends import_index.default {
1231
1231
  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.
1232
1232
  */
1233
1233
  async onSizeLessThan(limit) {
1234
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size < limit) {
1234
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size < limit) {
1235
1235
  return;
1236
1236
  }
1237
- await _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "next", () => _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size < limit);
1237
+ await _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "next", () => _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size < limit);
1238
1238
  }
1239
1239
  /**
1240
1240
  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.
@@ -1242,16 +1242,16 @@ var PQueue = class extends import_index.default {
1242
1242
  @returns A promise that settles when the queue becomes empty, and all promises have completed; `queue.size === 0 && queue.pending === 0`.
1243
1243
  */
1244
1244
  async onIdle() {
1245
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) === 0 && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1245
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1246
1246
  return;
1247
1247
  }
1248
- await _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "idle");
1248
+ await _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onEvent, onEvent_fn).call(this, "idle");
1249
1249
  }
1250
1250
  /**
1251
1251
  Size of the queue, the number of queued items waiting to run.
1252
1252
  */
1253
1253
  get size() {
1254
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size;
1254
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size;
1255
1255
  }
1256
1256
  /**
1257
1257
  Size of the queue, filtered by the given options.
@@ -1259,19 +1259,19 @@ var PQueue = class extends import_index.default {
1259
1259
  For example, this can be used to find the number of items remaining in the queue with a specific priority level.
1260
1260
  */
1261
1261
  sizeBy(options) {
1262
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).filter(options).length;
1262
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).filter(options).length;
1263
1263
  }
1264
1264
  /**
1265
1265
  Number of running items (no longer in the queue).
1266
1266
  */
1267
1267
  get pending() {
1268
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending);
1268
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending);
1269
1269
  }
1270
1270
  /**
1271
1271
  Whether the queue is currently paused.
1272
1272
  */
1273
1273
  get isPaused() {
1274
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isPaused);
1274
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isPaused);
1275
1275
  }
1276
1276
  };
1277
1277
  _carryoverConcurrencyCount = new WeakMap();
@@ -1290,35 +1290,35 @@ _isPaused = new WeakMap();
1290
1290
  _throwOnTimeout = new WeakMap();
1291
1291
  _doesIntervalAllowAnother = new WeakSet();
1292
1292
  doesIntervalAllowAnother_get = function() {
1293
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalCount) < _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalCap);
1293
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalCount) < _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalCap);
1294
1294
  };
1295
1295
  _doesConcurrentAllowAnother = new WeakSet();
1296
1296
  doesConcurrentAllowAnother_get = function() {
1297
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) < _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _concurrency);
1297
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) < _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _concurrency);
1298
1298
  };
1299
1299
  _next = new WeakSet();
1300
1300
  next_fn = function() {
1301
- _chunk2JNTDAI2cjs.__privateWrapper.call(void 0, this, _pending)._--;
1302
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1301
+ _chunkDJLNT4KCcjs.__privateWrapper.call(void 0, this, _pending)._--;
1302
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this);
1303
1303
  this.emit("next");
1304
1304
  };
1305
1305
  _onResumeInterval = new WeakSet();
1306
1306
  onResumeInterval_fn = function() {
1307
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1308
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1309
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _timeoutId, void 0);
1307
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1308
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1309
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _timeoutId, void 0);
1310
1310
  };
1311
1311
  _isIntervalPaused = new WeakSet();
1312
1312
  isIntervalPaused_get = function() {
1313
1313
  const now = Date.now();
1314
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId) === void 0) {
1315
- const delay = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalEnd) - now;
1314
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId) === void 0) {
1315
+ const delay = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalEnd) - now;
1316
1316
  if (delay < 0) {
1317
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalCount, _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) : 0);
1317
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalCount, _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) : 0);
1318
1318
  } else {
1319
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _timeoutId) === void 0) {
1320
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _timeoutId, setTimeout(() => {
1321
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onResumeInterval, onResumeInterval_fn).call(this);
1319
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _timeoutId) === void 0) {
1320
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _timeoutId, setTimeout(() => {
1321
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onResumeInterval, onResumeInterval_fn).call(this);
1322
1322
  }, delay));
1323
1323
  }
1324
1324
  return true;
@@ -1328,28 +1328,28 @@ isIntervalPaused_get = function() {
1328
1328
  };
1329
1329
  _tryToStartAnother = new WeakSet();
1330
1330
  tryToStartAnother_fn = function() {
1331
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1332
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId)) {
1333
- clearInterval(_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId));
1331
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).size === 0) {
1332
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId)) {
1333
+ clearInterval(_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId));
1334
1334
  }
1335
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalId, void 0);
1335
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1336
1336
  this.emit("empty");
1337
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) === 0) {
1337
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) === 0) {
1338
1338
  this.emit("idle");
1339
1339
  }
1340
1340
  return false;
1341
1341
  }
1342
- if (!_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isPaused)) {
1343
- const canInitializeInterval = !_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isIntervalPaused, isIntervalPaused_get);
1344
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1345
- const job = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue2).dequeue();
1342
+ if (!_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isPaused)) {
1343
+ const canInitializeInterval = !_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isIntervalPaused, isIntervalPaused_get);
1344
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _doesIntervalAllowAnother, doesIntervalAllowAnother_get) && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _doesConcurrentAllowAnother, doesConcurrentAllowAnother_get)) {
1345
+ const job = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue2).dequeue();
1346
1346
  if (!job) {
1347
1347
  return false;
1348
1348
  }
1349
1349
  this.emit("active");
1350
1350
  job();
1351
1351
  if (canInitializeInterval) {
1352
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1352
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _initializeIntervalIfNeeded, initializeIntervalIfNeeded_fn).call(this);
1353
1353
  }
1354
1354
  return true;
1355
1355
  }
@@ -1358,26 +1358,26 @@ tryToStartAnother_fn = function() {
1358
1358
  };
1359
1359
  _initializeIntervalIfNeeded = new WeakSet();
1360
1360
  initializeIntervalIfNeeded_fn = function() {
1361
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId) !== void 0) {
1361
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _isIntervalIgnored) || _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId) !== void 0) {
1362
1362
  return;
1363
1363
  }
1364
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalId, setInterval(() => {
1365
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1366
- }, _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _interval)));
1367
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalEnd, Date.now() + _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _interval));
1364
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalId, setInterval(() => {
1365
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _onInterval, onInterval_fn).call(this);
1366
+ }, _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _interval)));
1367
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalEnd, Date.now() + _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _interval));
1368
1368
  };
1369
1369
  _onInterval = new WeakSet();
1370
1370
  onInterval_fn = function() {
1371
- if (_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalCount) === 0 && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) === 0 && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId)) {
1372
- clearInterval(_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _intervalId));
1373
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalId, void 0);
1371
+ if (_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalCount) === 0 && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) === 0 && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId)) {
1372
+ clearInterval(_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _intervalId));
1373
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalId, void 0);
1374
1374
  }
1375
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _intervalCount, _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _pending) : 0);
1376
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1375
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _intervalCount, _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _carryoverConcurrencyCount) ? _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _pending) : 0);
1376
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _processQueue, processQueue_fn).call(this);
1377
1377
  };
1378
1378
  _processQueue = new WeakSet();
1379
1379
  processQueue_fn = function() {
1380
- while (_chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1380
+ while (_chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _tryToStartAnother, tryToStartAnother_fn).call(this)) {
1381
1381
  }
1382
1382
  };
1383
1383
  _throwOnAbort = new WeakSet();
@@ -1403,12 +1403,12 @@ onEvent_fn = async function(event, filter) {
1403
1403
  };
1404
1404
 
1405
1405
  // src/BarrelManager.ts
1406
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1406
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1407
1407
 
1408
1408
 
1409
1409
 
1410
1410
  // src/utils/TreeNode.ts
1411
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1411
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1412
1412
  var _directorytree = require('directory-tree'); var _directorytree2 = _interopRequireDefault(_directorytree);
1413
1413
  var TreeNode = class _TreeNode {
1414
1414
  constructor(data, parent) {
@@ -1500,8 +1500,8 @@ var TreeNode = class _TreeNode {
1500
1500
  var _options;
1501
1501
  var BarrelManager = class {
1502
1502
  constructor(options = {}) {
1503
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _options, void 0);
1504
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _options, options);
1503
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _options, void 0);
1504
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _options, options);
1505
1505
  return this;
1506
1506
  }
1507
1507
  getNamedExport(root, item) {
@@ -1535,7 +1535,7 @@ var BarrelManager = class {
1535
1535
  }), 'access', _28 => _28.flat, 'call', _29 => _29()]);
1536
1536
  }
1537
1537
  getIndexes(root) {
1538
- const { treeNode = {}, isTypeOnly, extName } = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _options);
1538
+ const { treeNode = {}, isTypeOnly, extName } = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _options);
1539
1539
  const tree = TreeNode.build(root, treeNode);
1540
1540
  if (!tree) {
1541
1541
  return null;
@@ -1547,7 +1547,7 @@ var BarrelManager = class {
1547
1547
  if (treeNode2.children.length > 1) {
1548
1548
  const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
1549
1549
  const exports = treeNode2.children.filter(Boolean).map((file) => {
1550
- const importPath = file.data.type === "directory" ? `./${file.data.name}/index` : `./${_chunkJWYPCGK5cjs.trimExtName.call(void 0, file.data.name)}`;
1550
+ const importPath = file.data.type === "directory" ? `./${file.data.name}/index` : `./${_chunkXXN4BH6Xcjs.trimExtName.call(void 0, file.data.name)}`;
1551
1551
  if (importPath.endsWith("index") && file.data.type === "file") {
1552
1552
  return void 0;
1553
1553
  }
@@ -1565,7 +1565,7 @@ var BarrelManager = class {
1565
1565
  } else if (treeNode2.children.length === 1) {
1566
1566
  const [treeNodeChild] = treeNode2.children;
1567
1567
  const indexPath = _path2.default.resolve(treeNode2.data.path, "index.ts");
1568
- const importPath = treeNodeChild.data.type === "directory" ? `./${treeNodeChild.data.name}/index` : `./${_chunkJWYPCGK5cjs.trimExtName.call(void 0, treeNodeChild.data.name)}`;
1568
+ const importPath = treeNodeChild.data.type === "directory" ? `./${treeNodeChild.data.name}/index` : `./${_chunkXXN4BH6Xcjs.trimExtName.call(void 0, treeNodeChild.data.name)}`;
1569
1569
  const exports = [
1570
1570
  {
1571
1571
  path: extName ? `${importPath}${extName}` : importPath,
@@ -1596,31 +1596,31 @@ var KubbFile;
1596
1596
  var _cache, _task, _queue3, _add, add_fn, _addOrAppend, addOrAppend_fn;
1597
1597
  var _FileManager = class _FileManager {
1598
1598
  constructor({ task = async (file) => file, queue = new PQueue() } = {}) {
1599
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _add);
1600
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _addOrAppend);
1601
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _cache, /* @__PURE__ */ new Map());
1602
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _task, void 0);
1603
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _queue3, void 0);
1604
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _task, task);
1605
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _queue3, queue);
1599
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _add);
1600
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _addOrAppend);
1601
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _cache, /* @__PURE__ */ new Map());
1602
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _task, void 0);
1603
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _queue3, void 0);
1604
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _task, task);
1605
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _queue3, queue);
1606
1606
  return this;
1607
1607
  }
1608
1608
  get files() {
1609
1609
  const files = [];
1610
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).forEach((item) => {
1610
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).forEach((item) => {
1611
1611
  files.push(...item.flat(1));
1612
1612
  });
1613
1613
  return files;
1614
1614
  }
1615
1615
  get isExecuting() {
1616
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue3).size !== 0 && _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue3).pending !== 0;
1616
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue3).size !== 0 && _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue3).pending !== 0;
1617
1617
  }
1618
1618
  async add(...files) {
1619
1619
  const promises = combineFiles(files).map((file) => {
1620
1620
  if (file.override) {
1621
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1621
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1622
1622
  }
1623
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, file);
1623
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, file);
1624
1624
  });
1625
1625
  const resolvedFiles = await Promise.all(promises);
1626
1626
  if (files.length > 1) {
@@ -1634,7 +1634,7 @@ var _FileManager = class _FileManager {
1634
1634
  return void 0;
1635
1635
  }
1636
1636
  const pathToBuildFrom = _path.resolve.call(void 0, root, output.path);
1637
- const exportPath = output.path.startsWith("./") ? _chunkJWYPCGK5cjs.trimExtName.call(void 0, output.path) : `./${_chunkJWYPCGK5cjs.trimExtName.call(void 0, output.path)}`;
1637
+ const exportPath = output.path.startsWith("./") ? _chunkXXN4BH6Xcjs.trimExtName.call(void 0, output.path) : `./${_chunkXXN4BH6Xcjs.trimExtName.call(void 0, output.path)}`;
1638
1638
  const mode = _FileManager.getMode(output.path);
1639
1639
  const barrelManager = new BarrelManager({ extName: output.extName, ...options });
1640
1640
  let files = barrelManager.getIndexes(pathToBuildFrom);
@@ -1654,7 +1654,7 @@ var _FileManager = class _FileManager {
1654
1654
  }
1655
1655
  await Promise.all(
1656
1656
  files.map((file) => {
1657
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1657
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1658
1658
  ...file,
1659
1659
  meta: meta ? meta : file.meta
1660
1660
  });
@@ -1680,33 +1680,33 @@ var _FileManager = class _FileManager {
1680
1680
  if (exportType === "barrelNamed" && !output.exportAs && _optionalChain([rootFile, 'access', _30 => _30.exports, 'optionalAccess', _31 => _31[0]])) {
1681
1681
  rootFile.exports = barrelManager.getNamedExport(root, rootFile.exports[0]);
1682
1682
  }
1683
- await _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1683
+ await _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _addOrAppend, addOrAppend_fn).call(this, {
1684
1684
  ...rootFile,
1685
1685
  meta: meta ? meta : rootFile.meta
1686
1686
  });
1687
1687
  }
1688
1688
  getCacheByUUID(UUID) {
1689
1689
  let cache;
1690
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).forEach((files) => {
1690
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).forEach((files) => {
1691
1691
  cache = files.find((item) => item.id === UUID);
1692
1692
  });
1693
1693
  return cache;
1694
1694
  }
1695
1695
  get(path3) {
1696
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).get(path3);
1696
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).get(path3);
1697
1697
  }
1698
1698
  remove(path3) {
1699
1699
  const cacheItem = this.get(path3);
1700
1700
  if (!cacheItem) {
1701
1701
  return;
1702
1702
  }
1703
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).delete(path3);
1703
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).delete(path3);
1704
1704
  }
1705
1705
  async write(...params) {
1706
- return _chunkPHI4BK5Kcjs.write.call(void 0, ...params);
1706
+ return _chunkX2JM3GACcjs.write.call(void 0, ...params);
1707
1707
  }
1708
1708
  async read(...params) {
1709
- return _chunkWDKUUZXNcjs.read.call(void 0, ...params);
1709
+ return _chunkIXCRUQPCcjs.read.call(void 0, ...params);
1710
1710
  }
1711
1711
  // statics
1712
1712
  static getSource(file) {
@@ -1734,23 +1734,23 @@ _queue3 = new WeakMap();
1734
1734
  _add = new WeakSet();
1735
1735
  add_fn = async function(file) {
1736
1736
  const controller = new AbortController();
1737
- const resolvedFile = { id: _crypto2.default.randomUUID(), name: _chunkJWYPCGK5cjs.trimExtName.call(void 0, file.baseName), ...file };
1738
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1739
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _queue3).add(
1737
+ const resolvedFile = { id: _crypto2.default.randomUUID(), name: _chunkXXN4BH6Xcjs.trimExtName.call(void 0, file.baseName), ...file };
1738
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).set(resolvedFile.path, [{ cancel: () => controller.abort(), ...resolvedFile }]);
1739
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _queue3).add(
1740
1740
  async () => {
1741
1741
  var _a;
1742
- return (_a = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1742
+ return (_a = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _task)) == null ? void 0 : _a.call(this, resolvedFile);
1743
1743
  },
1744
1744
  { signal: controller.signal }
1745
1745
  );
1746
1746
  };
1747
1747
  _addOrAppend = new WeakSet();
1748
1748
  addOrAppend_fn = async function(file) {
1749
- const previousCaches = _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).get(file.path);
1749
+ const previousCaches = _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).get(file.path);
1750
1750
  const previousCache = previousCaches ? previousCaches.at(previousCaches.length - 1) : void 0;
1751
1751
  if (previousCache) {
1752
- _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _cache).delete(previousCache.path);
1753
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, {
1752
+ _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _cache).delete(previousCache.path);
1753
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, {
1754
1754
  ...file,
1755
1755
  source: previousCache.source && file.source ? `${previousCache.source}
1756
1756
  ${file.source}` : "",
@@ -1759,7 +1759,7 @@ ${file.source}` : "",
1759
1759
  env: { ...previousCache.env || {}, ...file.env || {} }
1760
1760
  });
1761
1761
  }
1762
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1762
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _add, add_fn).call(this, file);
1763
1763
  };
1764
1764
  var FileManager = _FileManager;
1765
1765
  function combineFiles(files) {
@@ -1797,11 +1797,11 @@ function getSource(file) {
1797
1797
  const exports = file.exports ? combineExports(file.exports) : [];
1798
1798
  const imports = file.imports && file.source ? combineImports(file.imports, exports, file.source) : [];
1799
1799
  const importNodes = imports.filter((item) => {
1800
- return item.path !== _chunkJWYPCGK5cjs.trimExtName.call(void 0, file.path);
1800
+ return item.path !== _chunkXXN4BH6Xcjs.trimExtName.call(void 0, file.path);
1801
1801
  }).map((item) => {
1802
1802
  return factory.createImportDeclaration({
1803
1803
  name: item.name,
1804
- path: item.root ? _chunkWDKUUZXNcjs.getRelativePath.call(void 0, item.root, item.path) : item.path,
1804
+ path: item.root ? _chunkIXCRUQPCcjs.getRelativePath.call(void 0, item.root, item.path) : item.path,
1805
1805
  isTypeOnly: item.isTypeOnly
1806
1806
  });
1807
1807
  });
@@ -1904,8 +1904,8 @@ function getEnvSource(source, env) {
1904
1904
  throw new TypeError(`Environment should be in upperCase for ${key}`);
1905
1905
  }
1906
1906
  if (typeof replaceBy === "string") {
1907
- prev = _chunkJWYPCGK5cjs.searchAndReplace.call(void 0, { text: prev.replaceAll(`process.env.${key}`, replaceBy), replaceBy, prefix: "process.env", key });
1908
- prev = _chunkJWYPCGK5cjs.searchAndReplace.call(void 0, { text: prev.replaceAll(new RegExp(`(declare const).*
1907
+ prev = _chunkXXN4BH6Xcjs.searchAndReplace.call(void 0, { text: prev.replaceAll(`process.env.${key}`, replaceBy), replaceBy, prefix: "process.env", key });
1908
+ prev = _chunkXXN4BH6Xcjs.searchAndReplace.call(void 0, { text: prev.replaceAll(new RegExp(`(declare const).*
1909
1909
  `, "ig"), ""), replaceBy, key });
1910
1910
  }
1911
1911
  return prev;
@@ -1913,7 +1913,7 @@ function getEnvSource(source, env) {
1913
1913
  }
1914
1914
 
1915
1915
  // src/errors.ts
1916
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1916
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1917
1917
  var Warning = class extends Error {
1918
1918
  constructor(message, options) {
1919
1919
  super(message, { cause: _optionalChain([options, 'optionalAccess', _37 => _37.cause]) });
@@ -1924,11 +1924,11 @@ var ValidationPluginError = class extends Error {
1924
1924
  };
1925
1925
 
1926
1926
  // src/plugin.ts
1927
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1927
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1928
1928
 
1929
1929
 
1930
1930
  // src/utils/cache.ts
1931
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
1931
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
1932
1932
  function createPluginCache(Store = /* @__PURE__ */ Object.create(null)) {
1933
1933
  return {
1934
1934
  set(id, value) {
@@ -2006,10 +2006,10 @@ var definePlugin = createPlugin((options) => {
2006
2006
  });
2007
2007
 
2008
2008
  // src/PromiseManager.ts
2009
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
2009
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
2010
2010
 
2011
2011
  // src/utils/executeStrategies.ts
2012
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
2012
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
2013
2013
  function hookSeq(promises) {
2014
2014
  return promises.filter(Boolean).reduce(
2015
2015
  (promise, func) => {
@@ -2047,8 +2047,8 @@ function hookParallel(promises) {
2047
2047
  var _options2;
2048
2048
  var PromiseManager = class {
2049
2049
  constructor(options = {}) {
2050
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _options2, {});
2051
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _options2, options);
2050
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _options2, {});
2051
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _options2, options);
2052
2052
  return this;
2053
2053
  }
2054
2054
  run(strategy, promises) {
@@ -2056,7 +2056,7 @@ var PromiseManager = class {
2056
2056
  return hookSeq(promises);
2057
2057
  }
2058
2058
  if (strategy === "first") {
2059
- return hookFirst(promises, _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _options2).nullCheck);
2059
+ return hookFirst(promises, _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _options2).nullCheck);
2060
2060
  }
2061
2061
  if (strategy === "parallel") {
2062
2062
  return hookParallel(promises);
@@ -2073,12 +2073,12 @@ function isPromiseRejectedResult(result) {
2073
2073
  }
2074
2074
 
2075
2075
  // src/PluginManager.ts
2076
- _chunk2JNTDAI2cjs.init_cjs_shims.call(void 0, );
2076
+ _chunkDJLNT4KCcjs.init_cjs_shims.call(void 0, );
2077
2077
  var _core, _usedPluginNames, _promiseManager, _getSortedPlugins, getSortedPlugins_fn, _addExecutedToCallStack, addExecutedToCallStack_fn, _execute, execute_fn, _executeSync, executeSync_fn, _catcher, catcher_fn, _parse, parse_fn;
2078
2078
  var PluginManager = class {
2079
2079
  constructor(config, options) {
2080
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _getSortedPlugins);
2081
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
2080
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _getSortedPlugins);
2081
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _addExecutedToCallStack);
2082
2082
  /**
2083
2083
  * Run an async plugin hook and return the result.
2084
2084
  * @param hookName Name of the plugin hook. Must be either in `PluginHooks` or `OutputPluginValueHooks`.
@@ -2086,7 +2086,7 @@ var PluginManager = class {
2086
2086
  * @param plugin The actual pluginObject to run.
2087
2087
  */
2088
2088
  // Implementation signature
2089
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _execute);
2089
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _execute);
2090
2090
  /**
2091
2091
  * Run a sync plugin hook and return the result.
2092
2092
  * @param hookName Name of the plugin hook. Must be in `PluginHooks`.
@@ -2094,14 +2094,14 @@ var PluginManager = class {
2094
2094
  * @param plugin The acutal plugin
2095
2095
  * @param replaceContext When passed, the plugin context can be overridden.
2096
2096
  */
2097
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _executeSync);
2098
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _catcher);
2099
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _parse);
2100
- this.events = new (0, _chunkKRX65PCHcjs.EventEmitter)();
2097
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _executeSync);
2098
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _catcher);
2099
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _parse);
2100
+ this.events = new (0, _chunkZJ6GI35Acjs.EventEmitter)();
2101
2101
  this.executed = [];
2102
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _core, void 0);
2103
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
2104
- _chunk2JNTDAI2cjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
2102
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _core, void 0);
2103
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _usedPluginNames, {});
2104
+ _chunkDJLNT4KCcjs.__privateAdd.call(void 0, this, _promiseManager, void 0);
2105
2105
  this.resolvePath = (params) => {
2106
2106
  if (params.pluginKey) {
2107
2107
  const paths = this.hookForPluginSync({
@@ -2109,7 +2109,7 @@ var PluginManager = class {
2109
2109
  hookName: "resolvePath",
2110
2110
  parameters: [params.baseName, params.directory, params.options]
2111
2111
  });
2112
- if (paths && _optionalChain([paths, 'optionalAccess', _39 => _39.length]) > 1 && this.logger.logLevel === _chunkKRX65PCHcjs.LogLevel.debug) {
2112
+ if (paths && _optionalChain([paths, 'optionalAccess', _39 => _39.length]) > 1 && this.logger.logLevel === _chunkZJ6GI35Acjs.LogLevel.debug) {
2113
2113
  this.logger.emit("debug", [
2114
2114
  `Cannot return a path where the 'pluginKey' ${params.pluginKey ? JSON.stringify(params.pluginKey) : '"'} is not unique enough
2115
2115
 
@@ -2133,7 +2133,7 @@ Falling back on the first item.
2133
2133
  hookName: "resolveName",
2134
2134
  parameters: [params.name, params.type]
2135
2135
  });
2136
- if (names && _optionalChain([names, 'optionalAccess', _42 => _42.length]) > 1 && this.logger.logLevel === _chunkKRX65PCHcjs.LogLevel.debug) {
2136
+ if (names && _optionalChain([names, 'optionalAccess', _42 => _42.length]) > 1 && this.logger.logLevel === _chunkZJ6GI35Acjs.LogLevel.debug) {
2137
2137
  this.logger.emit("debug", [
2138
2138
  `Cannot return a name where the 'pluginKey' ${params.pluginKey ? JSON.stringify(params.pluginKey) : '"'} is not unique enough
2139
2139
 
@@ -2143,19 +2143,19 @@ Falling back on the first item.
2143
2143
  `
2144
2144
  ]);
2145
2145
  }
2146
- return _chunkJWYPCGK5cjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _43 => _43.at, 'call', _44 => _44(0)]) || params.name);
2146
+ return _chunkXXN4BH6Xcjs.transformReservedWord.call(void 0, _optionalChain([names, 'optionalAccess', _43 => _43.at, 'call', _44 => _44(0)]) || params.name);
2147
2147
  }
2148
2148
  const name = this.hookFirstSync({
2149
2149
  hookName: "resolveName",
2150
2150
  parameters: [params.name, params.type]
2151
2151
  }).result;
2152
- return _chunkJWYPCGK5cjs.transformReservedWord.call(void 0, name);
2152
+ return _chunkXXN4BH6Xcjs.transformReservedWord.call(void 0, name);
2153
2153
  };
2154
2154
  this.config = config;
2155
2155
  this.logger = options.logger;
2156
2156
  this.queue = new PQueue({ concurrency: 1 });
2157
2157
  this.fileManager = new FileManager({ task: options.task, queue: this.queue });
2158
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({ nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _45 => _45.result]) }));
2158
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _promiseManager, new PromiseManager({ nullCheck: (state) => !!_optionalChain([state, 'optionalAccess', _45 => _45.result]) }));
2159
2159
  const plugins = config.plugins || [];
2160
2160
  const core = definePlugin({
2161
2161
  config,
@@ -2164,11 +2164,11 @@ Falling back on the first item.
2164
2164
  fileManager: this.fileManager,
2165
2165
  resolvePath: this.resolvePath.bind(this),
2166
2166
  resolveName: this.resolveName.bind(this),
2167
- getPlugins: _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2167
+ getPlugins: _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).bind(this)
2168
2168
  });
2169
- _chunk2JNTDAI2cjs.__privateSet.call(void 0, this, _core, _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2170
- this.plugins = [_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
2171
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _core).api);
2169
+ _chunkDJLNT4KCcjs.__privateSet.call(void 0, this, _core, _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, core, this, core.api.call(null)));
2170
+ this.plugins = [_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _core), ...plugins].map((plugin) => {
2171
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _parse, parse_fn).call(this, plugin, this, _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _core).api);
2172
2172
  });
2173
2173
  return this;
2174
2174
  }
@@ -2188,7 +2188,7 @@ Falling back on the first item.
2188
2188
  }) {
2189
2189
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2190
2190
  const promises = plugins.map((plugin) => {
2191
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2191
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2192
2192
  strategy: "hookFirst",
2193
2193
  hookName,
2194
2194
  parameters,
@@ -2207,7 +2207,7 @@ Falling back on the first item.
2207
2207
  }) {
2208
2208
  const plugins = this.getPluginsByKey(hookName, pluginKey);
2209
2209
  return plugins.map((plugin) => {
2210
- return _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2210
+ return _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2211
2211
  strategy: "hookFirst",
2212
2212
  hookName,
2213
2213
  parameters,
@@ -2223,11 +2223,11 @@ Falling back on the first item.
2223
2223
  parameters,
2224
2224
  skipped
2225
2225
  }) {
2226
- const promises = _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2226
+ const promises = _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).filter((plugin) => {
2227
2227
  return skipped ? skipped.has(plugin) : true;
2228
2228
  }).map((plugin) => {
2229
2229
  return async () => {
2230
- const value = await _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2230
+ const value = await _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2231
2231
  strategy: "hookFirst",
2232
2232
  hookName,
2233
2233
  parameters,
@@ -2241,7 +2241,7 @@ Falling back on the first item.
2241
2241
  );
2242
2242
  };
2243
2243
  });
2244
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
2244
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _promiseManager).run("first", promises);
2245
2245
  }
2246
2246
  /**
2247
2247
  * First non-null result stops and will return it's value.
@@ -2252,12 +2252,12 @@ Falling back on the first item.
2252
2252
  skipped
2253
2253
  }) {
2254
2254
  let parseResult = null;
2255
- for (const plugin of _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2255
+ for (const plugin of _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2256
2256
  if (skipped && skipped.has(plugin)) {
2257
2257
  continue;
2258
2258
  }
2259
2259
  parseResult = {
2260
- result: _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2260
+ result: _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _executeSync, executeSync_fn).call(this, {
2261
2261
  strategy: "hookFirst",
2262
2262
  hookName,
2263
2263
  parameters,
@@ -2278,14 +2278,14 @@ Falling back on the first item.
2278
2278
  hookName,
2279
2279
  parameters
2280
2280
  }) {
2281
- const promises = _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2282
- return () => _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, { strategy: "hookParallel", hookName, parameters, plugin });
2281
+ const promises = _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2282
+ return () => _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, { strategy: "hookParallel", hookName, parameters, plugin });
2283
2283
  });
2284
- const results = await _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
2284
+ const results = await _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _promiseManager).run("parallel", promises);
2285
2285
  results.forEach((result, index) => {
2286
2286
  if (isPromiseRejectedResult(result)) {
2287
- const plugin = _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2288
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2287
+ const plugin = _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)[index];
2288
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, result.reason, plugin, hookName);
2289
2289
  }
2290
2290
  });
2291
2291
  return results.filter((result) => result.status === "fulfilled").map((result) => result.value);
@@ -2300,16 +2300,16 @@ Falling back on the first item.
2300
2300
  }) {
2301
2301
  const [argument0, ...rest] = parameters;
2302
2302
  let promise = Promise.resolve(argument0);
2303
- for (const plugin of _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2303
+ for (const plugin of _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this)) {
2304
2304
  promise = promise.then((arg0) => {
2305
- const value = _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2305
+ const value = _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2306
2306
  strategy: "hookReduceArg0",
2307
2307
  hookName,
2308
2308
  parameters: [arg0, ...rest],
2309
2309
  plugin
2310
2310
  });
2311
2311
  return value;
2312
- }).then((result) => reduce.call(_chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
2312
+ }).then((result) => reduce.call(_chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _core).api, argument0, result, plugin));
2313
2313
  }
2314
2314
  return promise;
2315
2315
  }
@@ -2317,15 +2317,15 @@ Falling back on the first item.
2317
2317
  * Chains plugins
2318
2318
  */
2319
2319
  async hookSeq({ hookName, parameters }) {
2320
- const promises = _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2321
- return () => _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2320
+ const promises = _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _getSortedPlugins, getSortedPlugins_fn).call(this).map((plugin) => {
2321
+ return () => _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _execute, execute_fn).call(this, {
2322
2322
  strategy: "hookSeq",
2323
2323
  hookName,
2324
2324
  parameters,
2325
2325
  plugin
2326
2326
  });
2327
2327
  });
2328
- return _chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
2328
+ return _chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _promiseManager).run("seq", promises);
2329
2329
  }
2330
2330
  getPluginsByKey(hookName, pluginKey) {
2331
2331
  const plugins = [...this.plugins];
@@ -2341,7 +2341,7 @@ Falling back on the first item.
2341
2341
  });
2342
2342
  if (!_optionalChain([pluginByPluginName, 'optionalAccess', _51 => _51.length])) {
2343
2343
  const corePlugin = plugins.find((plugin) => plugin.name === "core" && plugin[hookName]);
2344
- if (this.logger.logLevel === _chunkKRX65PCHcjs.LogLevel.debug) {
2344
+ if (this.logger.logLevel === _chunkZJ6GI35Acjs.LogLevel.debug) {
2345
2345
  if (corePlugin) {
2346
2346
  this.logger.emit("debug", [`No hook '${hookName}' for pluginKey '${JSON.stringify(pluginKey)}' found, falling back on the '@kubb/core' plugin`]);
2347
2347
  } else {
@@ -2379,7 +2379,7 @@ _getSortedPlugins = new WeakSet();
2379
2379
  getSortedPlugins_fn = function(hookName) {
2380
2380
  const plugins = [...this.plugins].filter((plugin) => plugin.name !== "core");
2381
2381
  if (hookName) {
2382
- if (this.logger.logLevel === _chunkKRX65PCHcjs.LogLevel.info) {
2382
+ if (this.logger.logLevel === _chunkZJ6GI35Acjs.LogLevel.info) {
2383
2383
  const containsHookName = plugins.some((item) => item[hookName]);
2384
2384
  if (!containsHookName) {
2385
2385
  this.logger.emit("warning", `No hook ${hookName} found`);
@@ -2427,7 +2427,7 @@ execute_fn = function({
2427
2427
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2428
2428
  const task = Promise.resolve().then(() => {
2429
2429
  if (typeof hook === "function") {
2430
- const possiblePromiseResult = hook.apply({ ..._chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2430
+ const possiblePromiseResult = hook.apply({ ..._chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2431
2431
  if (isPromise(possiblePromiseResult)) {
2432
2432
  return Promise.resolve(possiblePromiseResult);
2433
2433
  }
@@ -2436,7 +2436,7 @@ execute_fn = function({
2436
2436
  return hook;
2437
2437
  }).then((result) => {
2438
2438
  output = result;
2439
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2439
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2440
2440
  parameters,
2441
2441
  output,
2442
2442
  strategy,
@@ -2445,7 +2445,7 @@ execute_fn = function({
2445
2445
  });
2446
2446
  return result;
2447
2447
  }).catch((e) => {
2448
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2448
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2449
2449
  return null;
2450
2450
  });
2451
2451
  return task;
@@ -2465,12 +2465,12 @@ executeSync_fn = function({
2465
2465
  this.events.emit("execute", { strategy, hookName, parameters, plugin });
2466
2466
  try {
2467
2467
  if (typeof hook === "function") {
2468
- const fn = hook.apply({ ..._chunk2JNTDAI2cjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2468
+ const fn = hook.apply({ ..._chunkDJLNT4KCcjs.__privateGet.call(void 0, this, _core).api, plugin }, parameters);
2469
2469
  output = fn;
2470
2470
  return fn;
2471
2471
  }
2472
2472
  output = hook;
2473
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2473
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _addExecutedToCallStack, addExecutedToCallStack_fn).call(this, {
2474
2474
  parameters,
2475
2475
  output,
2476
2476
  strategy,
@@ -2479,7 +2479,7 @@ executeSync_fn = function({
2479
2479
  });
2480
2480
  return hook;
2481
2481
  } catch (e) {
2482
- _chunk2JNTDAI2cjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2482
+ _chunkDJLNT4KCcjs.__privateMethod.call(void 0, this, _catcher, catcher_fn).call(this, e, plugin, hookName);
2483
2483
  return null;
2484
2484
  }
2485
2485
  };
@@ -2492,8 +2492,8 @@ catcher_fn = function(e, plugin, hookName) {
2492
2492
  };
2493
2493
  _parse = new WeakSet();
2494
2494
  parse_fn = function(plugin, pluginManager, context) {
2495
- const usedPluginNames = _chunk2JNTDAI2cjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
2496
- _chunkWCUXF325cjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
2495
+ const usedPluginNames = _chunkDJLNT4KCcjs.__privateGet.call(void 0, pluginManager, _usedPluginNames);
2496
+ _chunkGNWOOGXAcjs.setUniqueName.call(void 0, plugin.name, usedPluginNames);
2497
2497
  const key = [plugin.name, usedPluginNames[plugin.name]].filter(Boolean);
2498
2498
  if (!plugin.transform) {
2499
2499
  plugin.transform = function transform(code) {
@@ -2524,4 +2524,4 @@ parse_fn = function(plugin, pluginManager, context) {
2524
2524
 
2525
2525
 
2526
2526
  exports.KubbFile = KubbFile; exports.FileManager = FileManager; exports.Warning = Warning; exports.createPlugin = createPlugin; exports.pluginName = pluginName; exports.PromiseManager = PromiseManager; exports.isPromise = isPromise; exports.PluginManager = PluginManager;
2527
- //# sourceMappingURL=chunk-BCD4E3IZ.cjs.map
2527
+ //# sourceMappingURL=chunk-FNHECX2X.cjs.map