@storm-software/esbuild 0.35.5 → 0.35.6

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 (55) hide show
  1. package/README.md +2 -1
  2. package/dist/assets.cjs +6 -6
  3. package/dist/assets.js +5 -5
  4. package/dist/build.cjs +14 -14
  5. package/dist/build.js +13 -13
  6. package/dist/{chunk-N5MGZ2YM.cjs → chunk-2O4ICDGO.cjs} +7 -7
  7. package/dist/{chunk-2SU3HI5Q.cjs → chunk-2VOJGBTN.cjs} +51 -51
  8. package/dist/{chunk-FBR7AR6F.cjs → chunk-3RAC4FZO.cjs} +734 -459
  9. package/dist/{chunk-WCXP7IBU.js → chunk-65VVMOZG.js} +2 -2
  10. package/dist/{chunk-FWIPARM7.js → chunk-6FTOKP4Y.js} +2 -2
  11. package/dist/{chunk-V5SXPYDB.js → chunk-7GTV27I3.js} +2 -2
  12. package/dist/{chunk-XWGV6MFZ.js → chunk-CT2JN373.js} +6 -6
  13. package/dist/{chunk-AEHXBLG2.cjs → chunk-EKHZJ4M2.cjs} +7 -7
  14. package/dist/{chunk-T2DBJGI2.cjs → chunk-FD7TNV2W.cjs} +8 -8
  15. package/dist/chunk-IDUGUMC5.cjs +6 -0
  16. package/dist/{chunk-RT5QOWTF.js → chunk-JHNO43TF.js} +514 -237
  17. package/dist/{chunk-6WPLL2C2.cjs → chunk-K3P3M3WZ.cjs} +7 -7
  18. package/dist/{chunk-POL6NUTY.cjs → chunk-K7O5MSIA.cjs} +19 -19
  19. package/dist/{chunk-IGG5GIIV.js → chunk-KIU5S3AJ.js} +2 -2
  20. package/dist/{chunk-2DAVPJ7D.cjs → chunk-KJZPYCZ3.cjs} +106 -106
  21. package/dist/{chunk-QNVXA3GL.js → chunk-MKWQ32YS.js} +3 -3
  22. package/dist/{chunk-SJESTPEC.cjs → chunk-NDGCAOGY.cjs} +2 -2
  23. package/dist/{chunk-X3XWFR6F.js → chunk-OI72SBIC.js} +1 -1
  24. package/dist/{chunk-C23H24WU.cjs → chunk-PWNHPJJM.cjs} +5 -5
  25. package/dist/{chunk-6YDZYQLV.js → chunk-QCVGEU2D.js} +2 -2
  26. package/dist/{chunk-CQGBWOR4.cjs → chunk-RLF3EK6Q.cjs} +28 -28
  27. package/dist/{chunk-EP4M3VJ3.cjs → chunk-U4QY2FDF.cjs} +14 -14
  28. package/dist/{chunk-MFZUNTR7.js → chunk-VA4XN7N3.js} +4 -4
  29. package/dist/{chunk-VW5VOVX7.js → chunk-VSA5PVM5.js} +2 -2
  30. package/dist/{chunk-RIGD2PFD.cjs → chunk-WOKMOSA3.cjs} +7 -7
  31. package/dist/{chunk-ODOBFGX6.js → chunk-XNZ7JM4N.js} +8 -8
  32. package/dist/{chunk-347I4FKJ.js → chunk-YZMPHNIX.js} +1 -1
  33. package/dist/{chunk-DK7FJ3YJ.js → chunk-Z6V4NRWA.js} +3 -3
  34. package/dist/clean.cjs +5 -5
  35. package/dist/clean.js +4 -4
  36. package/dist/config.cjs +6 -6
  37. package/dist/config.js +5 -5
  38. package/dist/context.cjs +8 -8
  39. package/dist/context.js +7 -7
  40. package/dist/index.cjs +16 -16
  41. package/dist/index.js +14 -14
  42. package/dist/package-json.cjs +6 -6
  43. package/dist/package-json.js +5 -5
  44. package/dist/plugins/deps-check.cjs +5 -5
  45. package/dist/plugins/deps-check.js +4 -4
  46. package/dist/plugins/resolve-paths.cjs +4 -4
  47. package/dist/plugins/resolve-paths.js +3 -3
  48. package/dist/tsup.cjs +5 -5
  49. package/dist/tsup.js +4 -4
  50. package/dist/types.cjs +2 -2
  51. package/dist/types.js +2 -2
  52. package/dist/watch.cjs +14 -14
  53. package/dist/watch.js +3 -3
  54. package/package.json +4 -4
  55. package/dist/chunk-N3AYB46G.cjs +0 -6
@@ -1,46 +1,46 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _optionalChain3(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard2(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _nullishCoalesce2(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain2(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; } var _class2;
2
2
 
3
3
 
4
- var _chunk2SU3HI5Qcjs = require('./chunk-2SU3HI5Q.cjs');
4
+ var _chunk2VOJGBTNcjs = require('./chunk-2VOJGBTN.cjs');
5
5
 
6
6
 
7
- var _chunkRIGD2PFDcjs = require('./chunk-RIGD2PFD.cjs');
7
+ var _chunkWOKMOSA3cjs = require('./chunk-WOKMOSA3.cjs');
8
8
 
9
9
 
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkSJESTPECcjs = require('./chunk-SJESTPEC.cjs');
14
+ var _chunkNDGCAOGYcjs = require('./chunk-NDGCAOGY.cjs');
15
15
 
16
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-BYH4XDRH.js
17
- var require_chunk_BYH4XDRH = _chunkSJESTPECcjs.__commonJS.call(void 0, {
18
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports2) {
16
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-BYH4XDRH.js
17
+ var require_chunk_BYH4XDRH = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
18
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-BYH4XDRH.js"(exports) {
19
19
  "use strict";
20
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
21
- Object.defineProperty(exports2, "__esModule", {
20
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
21
+ Object.defineProperty(exports, "__esModule", {
22
22
  value: true
23
23
  });
24
24
  var version = "8.4.0";
25
- exports2.version = version;
25
+ exports.version = version;
26
26
  }
27
27
  });
28
28
 
29
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-TWFEYLU4.js
30
- var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
31
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports2) {
29
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-TWFEYLU4.js
30
+ var require_chunk_TWFEYLU4 = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
31
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-TWFEYLU4.js"(exports) {
32
32
  "use strict";
33
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
34
- Object.defineProperty(exports2, "__esModule", {
33
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
34
+ Object.defineProperty(exports, "__esModule", {
35
35
  value: true
36
36
  });
37
- function _interopRequireDefault2(obj) {
37
+ function _interopRequireDefault(obj) {
38
38
  return obj && obj.__esModule ? obj : {
39
39
  default: obj
40
40
  };
41
41
  }
42
- _chunkSJESTPECcjs.__name.call(void 0, _interopRequireDefault2, "_interopRequireDefault");
43
- function _optionalChain2(ops) {
42
+ _chunkNDGCAOGYcjs.__name.call(void 0, _interopRequireDefault, "_interopRequireDefault");
43
+ function _optionalChain(ops) {
44
44
  let lastAccessLHS = void 0;
45
45
  let value = ops[0];
46
46
  let i = 1;
@@ -55,40 +55,40 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
55
55
  lastAccessLHS = value;
56
56
  value = fn(value);
57
57
  } else if (op === "call" || op === "optionalCall") {
58
- value = fn((...args2) => value.call(lastAccessLHS, ...args2));
58
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
59
59
  lastAccessLHS = void 0;
60
60
  }
61
61
  }
62
62
  return value;
63
63
  }
64
- _chunkSJESTPECcjs.__name.call(void 0, _optionalChain2, "_optionalChain");
64
+ _chunkNDGCAOGYcjs.__name.call(void 0, _optionalChain, "_optionalChain");
65
65
  var __create = Object.create;
66
66
  var __defProp = Object.defineProperty;
67
67
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
68
68
  var __getOwnPropNames = Object.getOwnPropertyNames;
69
69
  var __getProtoOf = Object.getPrototypeOf;
70
70
  var __hasOwnProp = Object.prototype.hasOwnProperty;
71
- var __require2 = /* @__PURE__ */ ((x) => typeof _chunkSJESTPECcjs.__require !== "undefined" ? _chunkSJESTPECcjs.__require : typeof Proxy !== "undefined" ? new Proxy(x, {
72
- get: /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (a, b) => (typeof _chunkSJESTPECcjs.__require !== "undefined" ? _chunkSJESTPECcjs.__require : a)[b], "get")
71
+ var __require2 = /* @__PURE__ */ ((x) => typeof _chunkNDGCAOGYcjs.__require !== "undefined" ? _chunkNDGCAOGYcjs.__require : typeof Proxy !== "undefined" ? new Proxy(x, {
72
+ get: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (a, b) => (typeof _chunkNDGCAOGYcjs.__require !== "undefined" ? _chunkNDGCAOGYcjs.__require : a)[b], "get")
73
73
  }) : x)(function(x) {
74
- if (typeof _chunkSJESTPECcjs.__require !== "undefined") return _chunkSJESTPECcjs.__require.apply(this, arguments);
74
+ if (typeof _chunkNDGCAOGYcjs.__require !== "undefined") return _chunkNDGCAOGYcjs.__require.apply(this, arguments);
75
75
  throw Error('Dynamic require of "' + x + '" is not supported');
76
76
  });
77
- var __commonJS2 = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (cb, mod) => /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, function __require22() {
77
+ var __commonJS2 = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (cb, mod) => /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, function __require22() {
78
78
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = {
79
79
  exports: {}
80
80
  }).exports, mod), mod.exports;
81
81
  }, "__require2"), "__commonJS");
82
- var __copyProps = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (to, from, except, desc) => {
82
+ var __copyProps = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (to, from, except, desc) => {
83
83
  if (from && typeof from === "object" || typeof from === "function") {
84
84
  for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
85
- get: /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => from[key], "get"),
85
+ get: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => from[key], "get"),
86
86
  enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
87
87
  });
88
88
  }
89
89
  return to;
90
90
  }, "__copyProps");
91
- var __toESM2 = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
91
+ var __toESM2 = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
92
92
  // If the importer is in node compatibility mode or this is not an ESM
93
93
  // file that has been converted to a CommonJS file using a Babel-
94
94
  // compatible transform (i.e. "__esModule" has not been set), then set
@@ -99,17 +99,17 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
99
99
  }) : target,
100
100
  mod
101
101
  )), "__toESM");
102
- var _fs3 = _chunkSJESTPECcjs.__require.call(void 0, "fs");
103
- var _fs22 = _interopRequireDefault2(_fs3);
104
- var _path3 = _chunkSJESTPECcjs.__require.call(void 0, "path");
105
- var _path22 = _interopRequireDefault2(_path3);
106
- var _resolvefrom = _chunkSJESTPECcjs.__require.call(void 0, "resolve-from");
107
- var _resolvefrom2 = _interopRequireDefault2(_resolvefrom);
102
+ var _fs = _chunkNDGCAOGYcjs.__require.call(void 0, "fs");
103
+ var _fs2 = _interopRequireDefault(_fs);
104
+ var _path = _chunkNDGCAOGYcjs.__require.call(void 0, "path");
105
+ var _path2 = _interopRequireDefault(_path);
106
+ var _resolvefrom = _chunkNDGCAOGYcjs.__require.call(void 0, "resolve-from");
107
+ var _resolvefrom2 = _interopRequireDefault(_resolvefrom);
108
108
  var singleComment = Symbol("singleComment");
109
109
  var multiComment = Symbol("multiComment");
110
- var stripWithoutWhitespace = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => "", "stripWithoutWhitespace");
111
- var stripWithWhitespace = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (string, start, end) => string.slice(start, end).replace(/\S/g, " "), "stripWithWhitespace");
112
- var isEscaped = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (jsonString, quotePosition) => {
110
+ var stripWithoutWhitespace = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => "", "stripWithoutWhitespace");
111
+ var stripWithWhitespace = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (string, start, end) => string.slice(start, end).replace(/\S/g, " "), "stripWithWhitespace");
112
+ var isEscaped = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (jsonString, quotePosition) => {
113
113
  let index = quotePosition - 1;
114
114
  let backslashCount = 0;
115
115
  while (jsonString[index] === "\\") {
@@ -125,7 +125,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
125
125
  const strip = whitespace ? stripWithWhitespace : stripWithoutWhitespace;
126
126
  let isInsideString = false;
127
127
  let isInsideComment = false;
128
- let offset2 = 0;
128
+ let offset = 0;
129
129
  let buffer = "";
130
130
  let result = "";
131
131
  let commaIndex = -1;
@@ -142,93 +142,93 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
142
142
  continue;
143
143
  }
144
144
  if (!isInsideComment && currentCharacter + nextCharacter === "//") {
145
- buffer += jsonString.slice(offset2, index);
146
- offset2 = index;
145
+ buffer += jsonString.slice(offset, index);
146
+ offset = index;
147
147
  isInsideComment = singleComment;
148
148
  index++;
149
149
  } else if (isInsideComment === singleComment && currentCharacter + nextCharacter === "\r\n") {
150
150
  index++;
151
151
  isInsideComment = false;
152
- buffer += strip(jsonString, offset2, index);
153
- offset2 = index;
152
+ buffer += strip(jsonString, offset, index);
153
+ offset = index;
154
154
  continue;
155
155
  } else if (isInsideComment === singleComment && currentCharacter === "\n") {
156
156
  isInsideComment = false;
157
- buffer += strip(jsonString, offset2, index);
158
- offset2 = index;
157
+ buffer += strip(jsonString, offset, index);
158
+ offset = index;
159
159
  } else if (!isInsideComment && currentCharacter + nextCharacter === "/*") {
160
- buffer += jsonString.slice(offset2, index);
161
- offset2 = index;
160
+ buffer += jsonString.slice(offset, index);
161
+ offset = index;
162
162
  isInsideComment = multiComment;
163
163
  index++;
164
164
  continue;
165
165
  } else if (isInsideComment === multiComment && currentCharacter + nextCharacter === "*/") {
166
166
  index++;
167
167
  isInsideComment = false;
168
- buffer += strip(jsonString, offset2, index + 1);
169
- offset2 = index + 1;
168
+ buffer += strip(jsonString, offset, index + 1);
169
+ offset = index + 1;
170
170
  continue;
171
171
  } else if (trailingCommas && !isInsideComment) {
172
172
  if (commaIndex !== -1) {
173
173
  if (currentCharacter === "}" || currentCharacter === "]") {
174
- buffer += jsonString.slice(offset2, index);
174
+ buffer += jsonString.slice(offset, index);
175
175
  result += strip(buffer, 0, 1) + buffer.slice(1);
176
176
  buffer = "";
177
- offset2 = index;
177
+ offset = index;
178
178
  commaIndex = -1;
179
179
  } else if (currentCharacter !== " " && currentCharacter !== " " && currentCharacter !== "\r" && currentCharacter !== "\n") {
180
- buffer += jsonString.slice(offset2, index);
181
- offset2 = index;
180
+ buffer += jsonString.slice(offset, index);
181
+ offset = index;
182
182
  commaIndex = -1;
183
183
  }
184
184
  } else if (currentCharacter === ",") {
185
- result += buffer + jsonString.slice(offset2, index);
185
+ result += buffer + jsonString.slice(offset, index);
186
186
  buffer = "";
187
- offset2 = index;
187
+ offset = index;
188
188
  commaIndex = index;
189
189
  }
190
190
  }
191
191
  }
192
- return result + buffer + (isInsideComment ? strip(jsonString.slice(offset2)) : jsonString.slice(offset2));
192
+ return result + buffer + (isInsideComment ? strip(jsonString.slice(offset)) : jsonString.slice(offset));
193
193
  }
194
- _chunkSJESTPECcjs.__name.call(void 0, stripJsonComments, "stripJsonComments");
195
- var _tinyglobby2 = _chunkSJESTPECcjs.__require.call(void 0, "tinyglobby");
194
+ _chunkNDGCAOGYcjs.__name.call(void 0, stripJsonComments, "stripJsonComments");
195
+ var _tinyglobby = _chunkNDGCAOGYcjs.__require.call(void 0, "tinyglobby");
196
196
  function getPostcss() {
197
197
  return localRequire("postcss");
198
198
  }
199
- _chunkSJESTPECcjs.__name.call(void 0, getPostcss, "getPostcss");
199
+ _chunkNDGCAOGYcjs.__name.call(void 0, getPostcss, "getPostcss");
200
200
  function getApiExtractor() {
201
201
  return localRequire("@microsoft/api-extractor");
202
202
  }
203
- _chunkSJESTPECcjs.__name.call(void 0, getApiExtractor, "getApiExtractor");
203
+ _chunkNDGCAOGYcjs.__name.call(void 0, getApiExtractor, "getApiExtractor");
204
204
  function localRequire(moduleName) {
205
205
  const p = _resolvefrom2.default.silent(process.cwd(), moduleName);
206
206
  return p && __require2(p);
207
207
  }
208
- _chunkSJESTPECcjs.__name.call(void 0, localRequire, "localRequire");
208
+ _chunkNDGCAOGYcjs.__name.call(void 0, localRequire, "localRequire");
209
209
  async function removeFiles(patterns, dir) {
210
- const files = await _tinyglobby2.glob.call(void 0, patterns, {
210
+ const files = await _tinyglobby.glob.call(void 0, patterns, {
211
211
  cwd: dir,
212
212
  absolute: true
213
213
  });
214
- files.forEach((file) => _fs22.default.existsSync(file) && _fs22.default.unlinkSync(file));
214
+ files.forEach((file) => _fs2.default.existsSync(file) && _fs2.default.unlinkSync(file));
215
215
  }
216
- _chunkSJESTPECcjs.__name.call(void 0, removeFiles, "removeFiles");
216
+ _chunkNDGCAOGYcjs.__name.call(void 0, removeFiles, "removeFiles");
217
217
  function debouncePromise(fn, delay, onError) {
218
218
  let timeout;
219
219
  let promiseInFly;
220
220
  let callbackPending;
221
- return /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, function debounced(...args2) {
221
+ return /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, function debounced(...args) {
222
222
  if (promiseInFly) {
223
- callbackPending = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
224
- debounced(...args2);
223
+ callbackPending = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
224
+ debounced(...args);
225
225
  callbackPending = void 0;
226
226
  }, "callbackPending");
227
227
  } else {
228
228
  if (timeout != null) clearTimeout(timeout);
229
229
  timeout = setTimeout(() => {
230
230
  timeout = void 0;
231
- promiseInFly = fn(...args2).catch(onError).finally(() => {
231
+ promiseInFly = fn(...args).catch(onError).finally(() => {
232
232
  promiseInFly = void 0;
233
233
  if (callbackPending) callbackPending();
234
234
  });
@@ -236,7 +236,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
236
236
  }
237
237
  }, "debounced");
238
238
  }
239
- _chunkSJESTPECcjs.__name.call(void 0, debouncePromise, "debouncePromise");
239
+ _chunkNDGCAOGYcjs.__name.call(void 0, debouncePromise, "debouncePromise");
240
240
  function slash(path2) {
241
241
  const isExtendedLengthPath = path2.startsWith("\\\\?\\");
242
242
  if (isExtendedLengthPath) {
@@ -244,11 +244,11 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
244
244
  }
245
245
  return path2.replace(/\\/g, "/");
246
246
  }
247
- _chunkSJESTPECcjs.__name.call(void 0, slash, "slash");
247
+ _chunkNDGCAOGYcjs.__name.call(void 0, slash, "slash");
248
248
  function truthy(value) {
249
249
  return Boolean(value);
250
250
  }
251
- _chunkSJESTPECcjs.__name.call(void 0, truthy, "truthy");
251
+ _chunkNDGCAOGYcjs.__name.call(void 0, truthy, "truthy");
252
252
  function jsoncParse(data) {
253
253
  try {
254
254
  return new Function(`return ${stripJsonComments(data).trim()}`)();
@@ -256,7 +256,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
256
256
  return {};
257
257
  }
258
258
  }
259
- _chunkSJESTPECcjs.__name.call(void 0, jsoncParse, "jsoncParse");
259
+ _chunkNDGCAOGYcjs.__name.call(void 0, jsoncParse, "jsoncParse");
260
260
  function defaultOutExtension({ format, pkgType }) {
261
261
  let jsExtension = ".js";
262
262
  let dtsExtension = ".d.ts";
@@ -277,22 +277,22 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
277
277
  dts: dtsExtension
278
278
  };
279
279
  }
280
- _chunkSJESTPECcjs.__name.call(void 0, defaultOutExtension, "defaultOutExtension");
280
+ _chunkNDGCAOGYcjs.__name.call(void 0, defaultOutExtension, "defaultOutExtension");
281
281
  function ensureTempDeclarationDir(options2) {
282
- const cwd = _optionalChain3([options2, 'access', _40 => _40.workspaceConfig, 'optionalAccess', _41 => _41.workspaceRoot]) || process.cwd();
283
- const dirPath = _path22.default.join(cwd, ".tsup", "declaration");
284
- if (_fs22.default.existsSync(dirPath)) {
282
+ const cwd = _optionalChain2([options2, 'access', _40 => _40.workspaceConfig, 'optionalAccess', _41 => _41.workspaceRoot]) || process.cwd();
283
+ const dirPath = _path2.default.join(cwd, ".tsup", "declaration");
284
+ if (_fs2.default.existsSync(dirPath)) {
285
285
  return dirPath;
286
286
  }
287
- _fs22.default.mkdirSync(dirPath, {
287
+ _fs2.default.mkdirSync(dirPath, {
288
288
  recursive: true
289
289
  });
290
- const gitIgnorePath = _path22.default.join(cwd, ".tsup", ".gitignore");
290
+ const gitIgnorePath = _path2.default.join(cwd, ".tsup", ".gitignore");
291
291
  writeFileSync(gitIgnorePath, "**/*\n");
292
292
  return dirPath;
293
293
  }
294
- _chunkSJESTPECcjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
295
- var toObjectEntry = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (entry) => {
294
+ _chunkNDGCAOGYcjs.__name.call(void 0, ensureTempDeclarationDir, "ensureTempDeclarationDir");
295
+ var toObjectEntry = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (entry) => {
296
296
  if (typeof entry === "string") {
297
297
  entry = [
298
298
  entry
@@ -311,7 +311,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
311
311
  };
312
312
  }, {});
313
313
  }, "toObjectEntry");
314
- var findLowestCommonAncestor = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (filepaths) => {
314
+ var findLowestCommonAncestor = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (filepaths) => {
315
315
  if (filepaths.length <= 1) return "";
316
316
  const [first, ...rest] = filepaths;
317
317
  let ancestor = first.split("/");
@@ -331,19 +331,19 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
331
331
  return ancestor.length <= 1 && ancestor[0] === "" ? `/${ancestor[0]}` : ancestor.join("/");
332
332
  }, "findLowestCommonAncestor");
333
333
  function toAbsolutePath(p, cwd) {
334
- if (_path22.default.isAbsolute(p)) {
334
+ if (_path2.default.isAbsolute(p)) {
335
335
  return p;
336
336
  }
337
- return slash(_path22.default.normalize(_path22.default.join(cwd || process.cwd(), p)));
337
+ return slash(_path2.default.normalize(_path2.default.join(cwd || process.cwd(), p)));
338
338
  }
339
- _chunkSJESTPECcjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
339
+ _chunkNDGCAOGYcjs.__name.call(void 0, toAbsolutePath, "toAbsolutePath");
340
340
  function writeFileSync(filePath, content) {
341
- _fs22.default.mkdirSync(_path22.default.dirname(filePath), {
341
+ _fs2.default.mkdirSync(_path2.default.dirname(filePath), {
342
342
  recursive: true
343
343
  });
344
- _fs22.default.writeFileSync(filePath, content);
344
+ _fs2.default.writeFileSync(filePath, content);
345
345
  }
346
- _chunkSJESTPECcjs.__name.call(void 0, writeFileSync, "writeFileSync");
346
+ _chunkNDGCAOGYcjs.__name.call(void 0, writeFileSync, "writeFileSync");
347
347
  function replaceDtsWithJsExtensions(dtsFilePath) {
348
348
  return dtsFilePath.replace(/\.d\.(ts|mts|cts)$/, (_, fileExtension) => {
349
349
  switch (fileExtension) {
@@ -358,20 +358,20 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
358
358
  }
359
359
  });
360
360
  }
361
- _chunkSJESTPECcjs.__name.call(void 0, replaceDtsWithJsExtensions, "replaceDtsWithJsExtensions");
362
- var convertArrayEntriesToObjectEntries = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (arrayOfEntries) => {
361
+ _chunkNDGCAOGYcjs.__name.call(void 0, replaceDtsWithJsExtensions, "replaceDtsWithJsExtensions");
362
+ var convertArrayEntriesToObjectEntries = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (arrayOfEntries) => {
363
363
  const objectEntries = Object.fromEntries(arrayOfEntries.map((entry) => [
364
- _path22.default.posix.join(...entry.split(_path22.default.posix.sep).slice(1, -1).concat(_path22.default.parse(entry).name)),
364
+ _path2.default.posix.join(...entry.split(_path2.default.posix.sep).slice(1, -1).concat(_path2.default.parse(entry).name)),
365
365
  entry
366
366
  ]));
367
367
  return objectEntries;
368
368
  }, "convertArrayEntriesToObjectEntries");
369
- var resolveEntryPaths = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (entryPaths) => {
370
- const resolvedEntryPaths = typeof entryPaths === "string" || Array.isArray(entryPaths) ? convertArrayEntriesToObjectEntries(await _tinyglobby2.glob.call(void 0, entryPaths)) : entryPaths;
369
+ var resolveEntryPaths = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (entryPaths) => {
370
+ const resolvedEntryPaths = typeof entryPaths === "string" || Array.isArray(entryPaths) ? convertArrayEntriesToObjectEntries(await _tinyglobby.glob.call(void 0, entryPaths)) : entryPaths;
371
371
  return resolvedEntryPaths;
372
372
  }, "resolveEntryPaths");
373
- var resolveExperimentalDtsConfig = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (options2, tsconfig) => {
374
- const resolvedEntryPaths = await resolveEntryPaths(_optionalChain2([
373
+ var resolveExperimentalDtsConfig = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (options2, tsconfig) => {
374
+ const resolvedEntryPaths = await resolveEntryPaths(_optionalChain([
375
375
  options2,
376
376
  "access",
377
377
  (_2) => _2.experimentalDts,
@@ -382,7 +382,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
382
382
  const normalizedExperimentalDtsConfig = {
383
383
  compilerOptions: {
384
384
  ...tsconfig.data.compilerOptions || {},
385
- ..._optionalChain2([
385
+ ..._optionalChain([
386
386
  options2,
387
387
  "access",
388
388
  (_4) => _4.experimentalDts,
@@ -394,7 +394,7 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
394
394
  };
395
395
  return normalizedExperimentalDtsConfig;
396
396
  }, "resolveExperimentalDtsConfig");
397
- var resolveInitialExperimentalDtsConfig = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (experimentalDts) => {
397
+ var resolveInitialExperimentalDtsConfig = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (experimentalDts) => {
398
398
  if (experimentalDts == null) {
399
399
  return;
400
400
  }
@@ -403,55 +403,55 @@ var require_chunk_TWFEYLU4 = _chunkSJESTPECcjs.__commonJS.call(void 0, {
403
403
  } : void 0;
404
404
  if (typeof experimentalDts === "string") {
405
405
  return {
406
- entry: convertArrayEntriesToObjectEntries(await _tinyglobby2.glob.call(void 0, experimentalDts))
406
+ entry: convertArrayEntriesToObjectEntries(await _tinyglobby.glob.call(void 0, experimentalDts))
407
407
  };
408
408
  }
409
409
  return {
410
410
  ...experimentalDts,
411
- entry: _optionalChain2([
411
+ entry: _optionalChain([
412
412
  experimentalDts,
413
413
  "optionalAccess",
414
414
  (_6) => _6.entry
415
415
  ]) == null ? {} : await resolveEntryPaths(experimentalDts.entry)
416
416
  };
417
417
  }, "resolveInitialExperimentalDtsConfig");
418
- exports2.__require = __require2;
419
- exports2.__commonJS = __commonJS2;
420
- exports2.__toESM = __toESM2;
421
- exports2.getPostcss = getPostcss;
422
- exports2.getApiExtractor = getApiExtractor;
423
- exports2.localRequire = localRequire;
424
- exports2.removeFiles = removeFiles;
425
- exports2.debouncePromise = debouncePromise;
426
- exports2.slash = slash;
427
- exports2.truthy = truthy;
428
- exports2.jsoncParse = jsoncParse;
429
- exports2.defaultOutExtension = defaultOutExtension;
430
- exports2.ensureTempDeclarationDir = ensureTempDeclarationDir;
431
- exports2.toObjectEntry = toObjectEntry;
432
- exports2.toAbsolutePath = toAbsolutePath;
433
- exports2.writeFileSync = writeFileSync;
434
- exports2.replaceDtsWithJsExtensions = replaceDtsWithJsExtensions;
435
- exports2.resolveExperimentalDtsConfig = resolveExperimentalDtsConfig;
436
- exports2.resolveInitialExperimentalDtsConfig = resolveInitialExperimentalDtsConfig;
418
+ exports.__require = __require2;
419
+ exports.__commonJS = __commonJS2;
420
+ exports.__toESM = __toESM2;
421
+ exports.getPostcss = getPostcss;
422
+ exports.getApiExtractor = getApiExtractor;
423
+ exports.localRequire = localRequire;
424
+ exports.removeFiles = removeFiles;
425
+ exports.debouncePromise = debouncePromise;
426
+ exports.slash = slash;
427
+ exports.truthy = truthy;
428
+ exports.jsoncParse = jsoncParse;
429
+ exports.defaultOutExtension = defaultOutExtension;
430
+ exports.ensureTempDeclarationDir = ensureTempDeclarationDir;
431
+ exports.toObjectEntry = toObjectEntry;
432
+ exports.toAbsolutePath = toAbsolutePath;
433
+ exports.writeFileSync = writeFileSync;
434
+ exports.replaceDtsWithJsExtensions = replaceDtsWithJsExtensions;
435
+ exports.resolveExperimentalDtsConfig = resolveExperimentalDtsConfig;
436
+ exports.resolveInitialExperimentalDtsConfig = resolveInitialExperimentalDtsConfig;
437
437
  }
438
438
  });
439
439
 
440
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-VGC3FXLU.js
441
- var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
442
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports2) {
440
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-VGC3FXLU.js
441
+ var require_chunk_VGC3FXLU = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
442
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-VGC3FXLU.js"(exports) {
443
443
  "use strict";
444
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
445
- Object.defineProperty(exports2, "__esModule", {
444
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
445
+ Object.defineProperty(exports, "__esModule", {
446
446
  value: true
447
447
  });
448
- function _interopRequireDefault2(obj) {
448
+ function _interopRequireDefault(obj) {
449
449
  return obj && obj.__esModule ? obj : {
450
450
  default: obj
451
451
  };
452
452
  }
453
- _chunkSJESTPECcjs.__name.call(void 0, _interopRequireDefault2, "_interopRequireDefault");
454
- function _optionalChain2(ops) {
453
+ _chunkNDGCAOGYcjs.__name.call(void 0, _interopRequireDefault, "_interopRequireDefault");
454
+ function _optionalChain(ops) {
455
455
  let lastAccessLHS = void 0;
456
456
  let value = ops[0];
457
457
  let i = 1;
@@ -466,28 +466,28 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
466
466
  lastAccessLHS = value;
467
467
  value = fn(value);
468
468
  } else if (op === "call" || op === "optionalCall") {
469
- value = fn((...args2) => value.call(lastAccessLHS, ...args2));
469
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
470
470
  lastAccessLHS = void 0;
471
471
  }
472
472
  }
473
473
  return value;
474
474
  }
475
- _chunkSJESTPECcjs.__name.call(void 0, _optionalChain2, "_optionalChain");
476
- var _chunkTWFEYLU4js2 = require_chunk_TWFEYLU4();
477
- var _fs3 = _chunkSJESTPECcjs.__require.call(void 0, "fs");
478
- var _fs22 = _interopRequireDefault2(_fs3);
479
- var _path3 = _chunkSJESTPECcjs.__require.call(void 0, "path");
480
- var _path22 = _interopRequireDefault2(_path3);
481
- var _joycon = _chunkSJESTPECcjs.__require.call(void 0, "joycon");
482
- var _joycon2 = _interopRequireDefault2(_joycon);
483
- var _bundlerequire2 = _chunkSJESTPECcjs.__require.call(void 0, "bundle-require");
475
+ _chunkNDGCAOGYcjs.__name.call(void 0, _optionalChain, "_optionalChain");
476
+ var _chunkTWFEYLU4js = require_chunk_TWFEYLU4();
477
+ var _fs = _chunkNDGCAOGYcjs.__require.call(void 0, "fs");
478
+ var _fs2 = _interopRequireDefault(_fs);
479
+ var _path = _chunkNDGCAOGYcjs.__require.call(void 0, "path");
480
+ var _path2 = _interopRequireDefault(_path);
481
+ var _joycon = _chunkNDGCAOGYcjs.__require.call(void 0, "joycon");
482
+ var _joycon2 = _interopRequireDefault(_joycon);
483
+ var _bundlerequire = _chunkNDGCAOGYcjs.__require.call(void 0, "bundle-require");
484
484
  var joycon = new (0, _joycon2.default)();
485
- var loadJson = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (filepath, options2) => {
485
+ var loadJson = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (filepath, options2) => {
486
486
  try {
487
- return _chunkTWFEYLU4js2.jsoncParse.call(void 0, await _fs22.default.promises.readFile(filepath, "utf8"));
487
+ return _chunkTWFEYLU4js.jsoncParse.call(void 0, await _fs2.default.promises.readFile(filepath, "utf8"));
488
488
  } catch (error) {
489
489
  if (error instanceof Error) {
490
- throw new Error(`Failed to parse ${_path22.default.relative(_optionalChain3([options2, 'access', _42 => _42.workspaceConfig, 'optionalAccess', _43 => _43.workspaceRoot]) || process.cwd(), filepath)}: ${error.message}`);
490
+ throw new Error(`Failed to parse ${_path2.default.relative(_optionalChain2([options2, 'access', _42 => _42.workspaceConfig, 'optionalAccess', _43 => _43.workspaceRoot]) || process.cwd(), filepath)}: ${error.message}`);
491
491
  } else {
492
492
  throw error;
493
493
  }
@@ -516,7 +516,7 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
516
516
  "package.json"
517
517
  ],
518
518
  cwd,
519
- stopDir: _path22.default.parse(cwd).root,
519
+ stopDir: _path2.default.parse(cwd).root,
520
520
  packageKey: "tsup"
521
521
  });
522
522
  if (configPath) {
@@ -533,7 +533,7 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
533
533
  }
534
534
  return {};
535
535
  }
536
- const config = await _bundlerequire2.bundleRequire.call(void 0, {
536
+ const config = await _bundlerequire.bundleRequire.call(void 0, {
537
537
  filepath: configPath
538
538
  });
539
539
  return {
@@ -543,17 +543,17 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
543
543
  }
544
544
  return {};
545
545
  }
546
- _chunkSJESTPECcjs.__name.call(void 0, loadTsupConfig, "loadTsupConfig");
546
+ _chunkNDGCAOGYcjs.__name.call(void 0, loadTsupConfig, "loadTsupConfig");
547
547
  async function loadPkg(cwd, clearCache = false) {
548
548
  if (clearCache) {
549
549
  joycon.clearCache();
550
550
  }
551
551
  const { data } = await joycon.load([
552
552
  "package.json"
553
- ], cwd, _path22.default.dirname(cwd));
553
+ ], cwd, _path2.default.dirname(cwd));
554
554
  return data || {};
555
555
  }
556
- _chunkSJESTPECcjs.__name.call(void 0, loadPkg, "loadPkg");
556
+ _chunkNDGCAOGYcjs.__name.call(void 0, loadPkg, "loadPkg");
557
557
  async function getProductionDeps(cwd, clearCache = false) {
558
558
  const data = await loadPkg(cwd, clearCache);
559
559
  const deps = Array.from(/* @__PURE__ */ new Set([
@@ -562,7 +562,7 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
562
562
  ]));
563
563
  return deps;
564
564
  }
565
- _chunkSJESTPECcjs.__name.call(void 0, getProductionDeps, "getProductionDeps");
565
+ _chunkNDGCAOGYcjs.__name.call(void 0, getProductionDeps, "getProductionDeps");
566
566
  async function getAllDepsHash(cwd) {
567
567
  const data = await loadPkg(cwd, true);
568
568
  return JSON.stringify({
@@ -571,20 +571,20 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
571
571
  ...data.devDependencies
572
572
  });
573
573
  }
574
- _chunkSJESTPECcjs.__name.call(void 0, getAllDepsHash, "getAllDepsHash");
575
- var _util = _chunkSJESTPECcjs.__require.call(void 0, "util");
576
- var _util2 = _interopRequireDefault2(_util);
577
- var _worker_threads2 = _chunkSJESTPECcjs.__require.call(void 0, "worker_threads");
578
- var _picocolors = _chunkSJESTPECcjs.__require.call(void 0, "picocolors");
579
- var _picocolors2 = _interopRequireDefault2(_picocolors);
580
- var colorize = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (type, data, onlyImportant = false) => {
574
+ _chunkNDGCAOGYcjs.__name.call(void 0, getAllDepsHash, "getAllDepsHash");
575
+ var _util = _chunkNDGCAOGYcjs.__require.call(void 0, "util");
576
+ var _util2 = _interopRequireDefault(_util);
577
+ var _worker_threads = _chunkNDGCAOGYcjs.__require.call(void 0, "worker_threads");
578
+ var _picocolors = _chunkNDGCAOGYcjs.__require.call(void 0, "picocolors");
579
+ var _picocolors2 = _interopRequireDefault(_picocolors);
580
+ var colorize = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (type, data, onlyImportant = false) => {
581
581
  if (onlyImportant && (type === "info" || type === "success")) return data;
582
582
  const color = type === "info" ? "blue" : type === "error" ? "red" : type === "warn" ? "yellow" : "green";
583
583
  return _picocolors2.default[color](data);
584
584
  }, "colorize");
585
- var makeLabel = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (name2, input, type) => {
585
+ var makeLabel = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (name, input, type) => {
586
586
  return [
587
- name2 && `${_picocolors2.default.dim("[")}${name2.toUpperCase()}${_picocolors2.default.dim("]")}`,
587
+ name && `${_picocolors2.default.dim("[")}${name.toUpperCase()}${_picocolors2.default.dim("]")}`,
588
588
  colorize(type, input.toUpperCase())
589
589
  ].filter(Boolean).join(" ");
590
590
  }, "makeLabel");
@@ -592,71 +592,71 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
592
592
  function setSilent(isSilent) {
593
593
  silent = !!isSilent;
594
594
  }
595
- _chunkSJESTPECcjs.__name.call(void 0, setSilent, "setSilent");
595
+ _chunkNDGCAOGYcjs.__name.call(void 0, setSilent, "setSilent");
596
596
  function getSilent() {
597
597
  return silent;
598
598
  }
599
- _chunkSJESTPECcjs.__name.call(void 0, getSilent, "getSilent");
600
- var createLogger = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (name2) => {
599
+ _chunkNDGCAOGYcjs.__name.call(void 0, getSilent, "getSilent");
600
+ var createLogger = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (name) => {
601
601
  return {
602
602
  setName(_name) {
603
- name2 = _name;
603
+ name = _name;
604
604
  },
605
- success(label, ...args2) {
606
- return this.log(label, "success", ...args2);
605
+ success(label, ...args) {
606
+ return this.log(label, "success", ...args);
607
607
  },
608
- info(label, ...args2) {
609
- return this.log(label, "info", ...args2);
608
+ info(label, ...args) {
609
+ return this.log(label, "info", ...args);
610
610
  },
611
- error(label, ...args2) {
612
- return this.log(label, "error", ...args2);
611
+ error(label, ...args) {
612
+ return this.log(label, "error", ...args);
613
613
  },
614
- warn(label, ...args2) {
615
- return this.log(label, "warn", ...args2);
614
+ warn(label, ...args) {
615
+ return this.log(label, "warn", ...args);
616
616
  },
617
617
  log(label, type, ...data) {
618
- const args2 = [
619
- makeLabel(name2, label, type),
618
+ const args = [
619
+ makeLabel(name, label, type),
620
620
  ...data.map((item) => colorize(type, item, true))
621
621
  ];
622
622
  switch (type) {
623
623
  case "error": {
624
- if (!_worker_threads2.isMainThread) {
625
- _optionalChain2([
626
- _worker_threads2.parentPort,
624
+ if (!_worker_threads.isMainThread) {
625
+ _optionalChain([
626
+ _worker_threads.parentPort,
627
627
  "optionalAccess",
628
628
  (_) => _.postMessage,
629
629
  "call",
630
630
  (_2) => _2({
631
631
  type: "error",
632
- text: _util2.default.format(...args2)
632
+ text: _util2.default.format(...args)
633
633
  })
634
634
  ]);
635
635
  return;
636
636
  }
637
- return console.error(...args2);
637
+ return console.error(...args);
638
638
  }
639
639
  default:
640
640
  if (silent) return;
641
- if (!_worker_threads2.isMainThread) {
642
- _optionalChain2([
643
- _worker_threads2.parentPort,
641
+ if (!_worker_threads.isMainThread) {
642
+ _optionalChain([
643
+ _worker_threads.parentPort,
644
644
  "optionalAccess",
645
645
  (_3) => _3.postMessage,
646
646
  "call",
647
647
  (_4) => _4({
648
648
  type: "log",
649
- text: _util2.default.format(...args2)
649
+ text: _util2.default.format(...args)
650
650
  })
651
651
  ]);
652
652
  return;
653
653
  }
654
- console.log(...args2);
654
+ console.log(...args);
655
655
  }
656
656
  }
657
657
  };
658
658
  }, "createLogger");
659
- var prettyBytes = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (bytes) => {
659
+ var prettyBytes = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (bytes) => {
660
660
  if (bytes === 0) return "0 B";
661
661
  const unit = [
662
662
  "B",
@@ -672,52 +672,52 @@ var require_chunk_VGC3FXLU = _chunkSJESTPECcjs.__commonJS.call(void 0, {
672
672
  const exp = Math.floor(Math.log(bytes) / Math.log(1024));
673
673
  return `${(bytes / 1024 ** exp).toFixed(2)} ${unit[exp]}`;
674
674
  }, "prettyBytes");
675
- var getLengthOfLongestString = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (strings) => {
675
+ var getLengthOfLongestString = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (strings) => {
676
676
  return strings.reduce((max, str) => {
677
677
  return Math.max(max, str.length);
678
678
  }, 0);
679
679
  }, "getLengthOfLongestString");
680
- var padRight = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (str, maxLength) => {
680
+ var padRight = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (str, maxLength) => {
681
681
  return str + " ".repeat(maxLength - str.length);
682
682
  }, "padRight");
683
- var reportSize = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (logger3, format, files) => {
683
+ var reportSize = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (logger, format, files) => {
684
684
  const filenames = Object.keys(files);
685
685
  const maxLength = getLengthOfLongestString(filenames) + 1;
686
- for (const name2 of filenames) {
687
- logger3.success(format, `${_picocolors2.default.bold(padRight(name2, maxLength))}${_picocolors2.default.green(prettyBytes(files[name2]))}`);
686
+ for (const name of filenames) {
687
+ logger.success(format, `${_picocolors2.default.bold(padRight(name, maxLength))}${_picocolors2.default.green(prettyBytes(files[name]))}`);
688
688
  }
689
689
  }, "reportSize");
690
- exports2.loadTsupConfig = loadTsupConfig;
691
- exports2.loadPkg = loadPkg;
692
- exports2.getProductionDeps = getProductionDeps;
693
- exports2.getAllDepsHash = getAllDepsHash;
694
- exports2.setSilent = setSilent;
695
- exports2.getSilent = getSilent;
696
- exports2.createLogger = createLogger;
697
- exports2.reportSize = reportSize;
690
+ exports.loadTsupConfig = loadTsupConfig;
691
+ exports.loadPkg = loadPkg;
692
+ exports.getProductionDeps = getProductionDeps;
693
+ exports.getAllDepsHash = getAllDepsHash;
694
+ exports.setSilent = setSilent;
695
+ exports.getSilent = getSilent;
696
+ exports.createLogger = createLogger;
697
+ exports.reportSize = reportSize;
698
698
  }
699
699
  });
700
700
 
701
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-JZ25TPTY.js
702
- var require_chunk_JZ25TPTY = _chunkSJESTPECcjs.__commonJS.call(void 0, {
703
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports2) {
701
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-JZ25TPTY.js
702
+ var require_chunk_JZ25TPTY = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
703
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/chunk-JZ25TPTY.js"(exports) {
704
704
  "use strict";
705
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
706
- Object.defineProperty(exports2, "__esModule", {
705
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
706
+ Object.defineProperty(exports, "__esModule", {
707
707
  value: true
708
708
  });
709
- function _interopRequireDefault2(obj) {
709
+ function _interopRequireDefault(obj) {
710
710
  return obj && obj.__esModule ? obj : {
711
711
  default: obj
712
712
  };
713
713
  }
714
- _chunkSJESTPECcjs.__name.call(void 0, _interopRequireDefault2, "_interopRequireDefault");
715
- var _worker_threads2 = _chunkSJESTPECcjs.__require.call(void 0, "worker_threads");
716
- var _picocolors = _chunkSJESTPECcjs.__require.call(void 0, "picocolors");
717
- var _picocolors2 = _interopRequireDefault2(_picocolors);
714
+ _chunkNDGCAOGYcjs.__name.call(void 0, _interopRequireDefault, "_interopRequireDefault");
715
+ var _worker_threads = _chunkNDGCAOGYcjs.__require.call(void 0, "worker_threads");
716
+ var _picocolors = _chunkNDGCAOGYcjs.__require.call(void 0, "picocolors");
717
+ var _picocolors2 = _interopRequireDefault(_picocolors);
718
718
  var PrettyError = class extends Error {
719
719
  static {
720
- _chunkSJESTPECcjs.__name.call(void 0, this, "PrettyError");
720
+ _chunkNDGCAOGYcjs.__name.call(void 0, this, "PrettyError");
721
721
  }
722
722
  constructor(message) {
723
723
  super(message);
@@ -742,21 +742,375 @@ var require_chunk_JZ25TPTY = _chunkSJESTPECcjs.__commonJS.call(void 0, {
742
742
  console.error(_picocolors2.default.red(error.stack));
743
743
  }
744
744
  process.exitCode = 1;
745
- if (!_worker_threads2.isMainThread && _worker_threads2.parentPort) {
746
- _worker_threads2.parentPort.postMessage("error");
745
+ if (!_worker_threads.isMainThread && _worker_threads.parentPort) {
746
+ _worker_threads.parentPort.postMessage("error");
747
747
  }
748
748
  }
749
- _chunkSJESTPECcjs.__name.call(void 0, handleError, "handleError");
750
- exports2.PrettyError = PrettyError;
751
- exports2.handleError = handleError;
749
+ _chunkNDGCAOGYcjs.__name.call(void 0, handleError, "handleError");
750
+ exports.PrettyError = PrettyError;
751
+ exports.handleError = handleError;
752
752
  }
753
753
  });
754
754
 
755
- // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/index.js
756
- var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
757
- "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=d6d235bacb1b52781b6422127cf8179bf4fa7087e1b44c74b6d276e3935d9a55__7a3232d6d9fb61feedaa124fde7a8801/node_modules/tsup/dist/index.js"(exports, module) {
755
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/commonjs-plugin.js
756
+ var require_commonjs_plugin = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
757
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/commonjs-plugin.js"(exports, module) {
758
758
  "use strict";
759
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
759
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
760
+ var __defProp = Object.defineProperty;
761
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
762
+ var __getOwnPropNames = Object.getOwnPropertyNames;
763
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
764
+ var __export = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (target, all) => {
765
+ for (var name in all) __defProp(target, name, {
766
+ get: all[name],
767
+ enumerable: true
768
+ });
769
+ }, "__export");
770
+ var __copyProps = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (to, from, except, desc) => {
771
+ if (from && typeof from === "object" || typeof from === "function") {
772
+ for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
773
+ get: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => from[key], "get"),
774
+ enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
775
+ });
776
+ }
777
+ return to;
778
+ }, "__copyProps");
779
+ var __toCommonJS = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (mod) => __copyProps(__defProp({}, "__esModule", {
780
+ value: true
781
+ }), mod), "__toCommonJS");
782
+ var index_exports = {};
783
+ __export(index_exports, {
784
+ commonjs: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => commonjs, "commonjs"),
785
+ default: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => index_default, "default")
786
+ });
787
+ module.exports = __toCommonJS(index_exports);
788
+ var import_fs = _chunkNDGCAOGYcjs.__require.call(void 0, "fs");
789
+ function isNewLine(code) {
790
+ return code === 10 || code === 13 || code === 8232 || code === 8233;
791
+ }
792
+ _chunkNDGCAOGYcjs.__name.call(void 0, isNewLine, "isNewLine");
793
+ function codePointToString(ch) {
794
+ if (ch <= 65535) return String.fromCharCode(ch);
795
+ ch -= 65536;
796
+ return String.fromCharCode((ch >> 10) + 55296, (ch & 1023) + 56320);
797
+ }
798
+ _chunkNDGCAOGYcjs.__name.call(void 0, codePointToString, "codePointToString");
799
+ var Lexer = (_class2 = class {constructor() { _class2.prototype.__init2.call(this);_class2.prototype.__init3.call(this); }
800
+ static {
801
+ _chunkNDGCAOGYcjs.__name.call(void 0, this, "Lexer");
802
+ }
803
+ __init2() {this.input = ""}
804
+ __init3() {this.pos = 0}
805
+ readString(input, pos) {
806
+ if (pos >= input.length) return null;
807
+ this.input = input;
808
+ this.pos = pos;
809
+ const quote = this.input.charCodeAt(pos);
810
+ if (!(quote === 34 || quote === 39)) return null;
811
+ let out = "";
812
+ let chunkStart = ++this.pos;
813
+ while (true) {
814
+ if (this.pos >= this.input.length) return null;
815
+ let ch = this.input.charCodeAt(this.pos);
816
+ if (ch === quote) break;
817
+ if (ch === 92) {
818
+ out += this.input.slice(chunkStart, this.pos);
819
+ const escaped = this.readEscapedChar();
820
+ if (escaped === null) return null;
821
+ out += escaped;
822
+ chunkStart = this.pos;
823
+ } else {
824
+ if (isNewLine(ch)) return null;
825
+ ++this.pos;
826
+ }
827
+ }
828
+ out += this.input.slice(chunkStart, this.pos++);
829
+ return out;
830
+ }
831
+ readEscapedChar() {
832
+ let ch = this.input.charCodeAt(++this.pos);
833
+ let code;
834
+ ++this.pos;
835
+ switch (ch) {
836
+ case 110:
837
+ return "\n";
838
+ case 114:
839
+ return "\r";
840
+ case 120:
841
+ code = this.readHexChar(2);
842
+ if (code === null) return null;
843
+ return String.fromCharCode(code);
844
+ case 117:
845
+ code = this.readCodePoint();
846
+ if (code === null) return null;
847
+ return codePointToString(code);
848
+ case 116:
849
+ return " ";
850
+ case 98:
851
+ return "\b";
852
+ case 118:
853
+ return "\v";
854
+ case 102:
855
+ return "\f";
856
+ case 13:
857
+ if (this.input.charCodeAt(this.pos) === 10) {
858
+ ++this.pos;
859
+ }
860
+ case 10:
861
+ return "";
862
+ case 56:
863
+ case 57:
864
+ return null;
865
+ default:
866
+ if (ch >= 48 && ch <= 55) {
867
+ let match = this.input.slice(this.pos - 1, this.pos + 2).match(/^[0-7]+/);
868
+ if (match === null) return null;
869
+ let octalStr = match[0];
870
+ let octal = parseInt(octalStr, 8);
871
+ if (octal > 255) {
872
+ octalStr = octalStr.slice(0, -1);
873
+ octal = parseInt(octalStr, 8);
874
+ }
875
+ this.pos += octalStr.length - 1;
876
+ ch = this.input.charCodeAt(this.pos);
877
+ if (octalStr !== "0" || ch === 56 || ch === 57) return null;
878
+ return String.fromCharCode(octal);
879
+ }
880
+ if (isNewLine(ch)) return "";
881
+ return String.fromCharCode(ch);
882
+ }
883
+ }
884
+ readInt(radix, len) {
885
+ let start = this.pos;
886
+ let total = 0;
887
+ for (let i = 0; i < len; ++i, ++this.pos) {
888
+ let code = this.input.charCodeAt(this.pos);
889
+ let val;
890
+ if (code >= 97) {
891
+ val = code - 97 + 10;
892
+ } else if (code >= 65) {
893
+ val = code - 65 + 10;
894
+ } else if (code >= 48 && code <= 57) {
895
+ val = code - 48;
896
+ } else {
897
+ val = Infinity;
898
+ }
899
+ if (val >= radix) break;
900
+ total = total * radix + val;
901
+ }
902
+ if (this.pos === start || len != null && this.pos - start !== len) return null;
903
+ return total;
904
+ }
905
+ readHexChar(len) {
906
+ return this.readInt(16, len);
907
+ }
908
+ readCodePoint() {
909
+ let ch = this.input.charCodeAt(this.pos);
910
+ let code;
911
+ if (ch === 123) {
912
+ ++this.pos;
913
+ code = this.readHexChar(this.input.indexOf("}", this.pos) - this.pos);
914
+ ++this.pos;
915
+ if (code && code > 1114111) return null;
916
+ } else {
917
+ code = this.readHexChar(4);
918
+ }
919
+ return code;
920
+ }
921
+ }, _class2);
922
+ function orderedUniq(array) {
923
+ let ret = [], visited = /* @__PURE__ */ new Set();
924
+ for (let val of array) if (!visited.has(val)) visited.add(val), ret.push(val);
925
+ return ret;
926
+ }
927
+ _chunkNDGCAOGYcjs.__name.call(void 0, orderedUniq, "orderedUniq");
928
+ function cachedReduce(array, reducer, s) {
929
+ let cache = [
930
+ s
931
+ ], cacheLen = 1, last = s;
932
+ return (len) => {
933
+ while (cacheLen <= len) cacheLen = cache.push(last = reducer(last, array[cacheLen - 1]));
934
+ return cache[len];
935
+ };
936
+ }
937
+ _chunkNDGCAOGYcjs.__name.call(void 0, cachedReduce, "cachedReduce");
938
+ var reservedWords = "break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public";
939
+ var builtin = "arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl";
940
+ var forbiddenIdentifiers = new Set(`${reservedWords} ${builtin}`.split(" "));
941
+ forbiddenIdentifiers.add("");
942
+ var makeLegalIdentifier = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, function makeLegalIdentifier2(str) {
943
+ let identifier = str.replace(/-(\w)/g, (_, letter) => letter.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, "_");
944
+ if (/\d/.test(identifier[0]) || forbiddenIdentifiers.has(identifier)) {
945
+ identifier = `_${identifier}`;
946
+ }
947
+ return identifier || "_";
948
+ }, "makeLegalIdentifier2");
949
+ function prepend(code, prefix) {
950
+ if (code.startsWith("#!")) {
951
+ const i = code.indexOf("\n") + 1;
952
+ return code.slice(0, i) + prefix + code.slice(i);
953
+ }
954
+ return prefix + code;
955
+ }
956
+ _chunkNDGCAOGYcjs.__name.call(void 0, prepend, "prepend");
957
+ function commonjs({ filter = /\.c?js$/, transform = false, transformConfig, requireReturnsDefault = false, ignore } = {}) {
958
+ const init_cjs_module_lexer = transform ? Promise.resolve().then(() => _interopRequireWildcard2(require("cjs-module-lexer"))) : void 0;
959
+ const use_default_export = typeof requireReturnsDefault === "function" ? requireReturnsDefault : (_path) => requireReturnsDefault;
960
+ const is_ignored = typeof ignore === "function" ? ignore : Array.isArray(ignore) ? (path) => ignore.includes(path) : () => false;
961
+ return {
962
+ name: "commonjs",
963
+ setup({ onLoad, esbuild }) {
964
+ let esbuild_shim;
965
+ const require_esbuild = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => esbuild || esbuild_shim || (esbuild_shim = _chunkNDGCAOGYcjs.__require.call(void 0, "esbuild")), "require_esbuild");
966
+ const read = import_fs.promises.readFile;
967
+ const lexer = new Lexer();
968
+ onLoad({
969
+ filter
970
+ }, async (args) => {
971
+ let parseCJS;
972
+ if (init_cjs_module_lexer) {
973
+ const { init, parse } = await init_cjs_module_lexer;
974
+ await init();
975
+ parseCJS = parse;
976
+ }
977
+ let contents;
978
+ try {
979
+ contents = await read(args.path, "utf8");
980
+ } catch (e3) {
981
+ return null;
982
+ }
983
+ const willTransform = transform === true || typeof transform === "function" && transform(args.path);
984
+ let cjsExports;
985
+ if (parseCJS && willTransform) {
986
+ let sourcemapIndex = contents.lastIndexOf("//# sourceMappingURL=");
987
+ let sourcemap;
988
+ if (sourcemapIndex !== -1) {
989
+ sourcemap = contents.slice(sourcemapIndex);
990
+ let sourcemapEnd = sourcemap.indexOf("\n");
991
+ if (sourcemapEnd !== -1 && sourcemap.slice(sourcemapEnd + 1).trimStart().length > 0) {
992
+ sourcemap = void 0;
993
+ } else {
994
+ contents = contents.slice(0, sourcemapIndex);
995
+ }
996
+ }
997
+ cjsExports = parseCJS(contents);
998
+ let { behavior, exports: exports2, sideEffects } = typeof willTransform === "object" ? willTransform : {};
999
+ _nullishCoalesce2(behavior, () => ( (behavior = _nullishCoalesce2((transformConfig == null ? void 0 : transformConfig.behavior), () => ( "node")))));
1000
+ exports2 = orderedUniq(cjsExports.exports.concat(_nullishCoalesce2(exports2, () => ( []))));
1001
+ _nullishCoalesce2(sideEffects, () => ( (sideEffects = _nullishCoalesce2((transformConfig == null ? void 0 : transformConfig.sideEffects), () => ( true)))));
1002
+ let exportDefault = behavior === "node" ? "export default exports;" : "export default exports.__esModule ? exports.default : exports;";
1003
+ let exportsMap = exports2.map((e) => [
1004
+ e,
1005
+ makeLegalIdentifier(e)
1006
+ ]);
1007
+ if (exportsMap.some(([e]) => e === "default")) {
1008
+ if (behavior === "node") {
1009
+ exportsMap = exportsMap.filter(([e]) => e !== "default");
1010
+ } else {
1011
+ exportDefault = "";
1012
+ }
1013
+ }
1014
+ let reexports = cjsExports.reexports.map((e) => `export * from ${JSON.stringify(e)};`).join("");
1015
+ let transformed;
1016
+ if (sideEffects === false) {
1017
+ transformed = [
1018
+ // make sure we don't manipulate the first line so that sourcemap is fine
1019
+ reexports + "var mod, exports = /* @__PURE__ */ ((exports, module) => {" + contents,
1020
+ "return module.exports})((mod = { exports: {} }).exports, mod); " + exportDefault
1021
+ ];
1022
+ if (exportsMap.length > 0) {
1023
+ for (const [e, name] of exportsMap) {
1024
+ transformed.push(`var ${name} = /* @__PURE__ */ (() => exports[${JSON.stringify(e)}])();`);
1025
+ }
1026
+ transformed.push(`export { ${exportsMap.map(([e, name]) => e === name ? e : `${name} as ${JSON.stringify(e)}`).join(", ")} };`);
1027
+ }
1028
+ } else {
1029
+ transformed = [
1030
+ reexports + "var exports = {}, module = { exports }; {" + contents,
1031
+ "}; exports = module.exports; " + exportDefault
1032
+ ];
1033
+ if (exportsMap.length > 0) {
1034
+ transformed.push(`var { ${exportsMap.map(([e, name]) => e === name ? e : `${JSON.stringify(e)}: ${name}`).join(", ")} } = exports;`, `export { ${exportsMap.map(([e, name]) => e === name ? e : `${name} as ${JSON.stringify(e)}`).join(", ")} };`);
1035
+ }
1036
+ }
1037
+ contents = transformed.join("\n") + (sourcemap ? "\n" + sourcemap : "");
1038
+ }
1039
+ function makeName(path) {
1040
+ let name = `__import_${makeLegalIdentifier(path)}`;
1041
+ if (contents.includes(name)) {
1042
+ let suffix = 2;
1043
+ while (contents.includes(`${name}${suffix}`)) suffix++;
1044
+ name = `${name}${suffix}`;
1045
+ }
1046
+ return name;
1047
+ }
1048
+ _chunkNDGCAOGYcjs.__name.call(void 0, makeName, "makeName");
1049
+ let warnings;
1050
+ try {
1051
+ ({ warnings } = await require_esbuild().transform(contents, {
1052
+ format: "esm",
1053
+ logLevel: "silent"
1054
+ }));
1055
+ } catch (err) {
1056
+ ({ warnings } = err);
1057
+ }
1058
+ let lines = contents.split("\n");
1059
+ let getOffset = cachedReduce(lines, (a, b) => a + 1 + b.length, 0);
1060
+ if (warnings && (warnings = warnings.filter((e) => e.text.includes('"require" to "esm"'))).length) {
1061
+ let edits = [];
1062
+ let imports = [];
1063
+ for (const { location } of warnings) {
1064
+ if (location === null) continue;
1065
+ const { line, lineText, column, length } = location;
1066
+ const leftBrace = column + length + 1;
1067
+ const path = lexer.readString(lineText, leftBrace);
1068
+ if (path === null || is_ignored(path)) continue;
1069
+ const rightBrace = lineText.indexOf(")", leftBrace + 2 + path.length) + 1;
1070
+ let name = makeName(path);
1071
+ let import_statement;
1072
+ if (use_default_export(path)) {
1073
+ import_statement = `import ${name} from ${JSON.stringify(path)};`;
1074
+ } else {
1075
+ import_statement = `import * as ${name} from ${JSON.stringify(path)};`;
1076
+ }
1077
+ let offset2 = getOffset(line - 1);
1078
+ edits.push([
1079
+ offset2 + column,
1080
+ offset2 + rightBrace,
1081
+ name
1082
+ ]);
1083
+ imports.push(import_statement);
1084
+ }
1085
+ if (imports.length === 0) return null;
1086
+ imports = orderedUniq(imports);
1087
+ let offset = 0;
1088
+ for (const [start, end, name] of edits) {
1089
+ contents = contents.slice(0, start + offset) + name + contents.slice(end + offset);
1090
+ offset += name.length - (end - start);
1091
+ }
1092
+ contents = prepend(contents, [
1093
+ ...imports,
1094
+ cjsExports ? "exports;" : ""
1095
+ ].join(""));
1096
+ return {
1097
+ contents
1098
+ };
1099
+ }
1100
+ });
1101
+ }
1102
+ };
1103
+ }
1104
+ _chunkNDGCAOGYcjs.__name.call(void 0, commonjs, "commonjs");
1105
+ var index_default = commonjs;
1106
+ }
1107
+ });
1108
+
1109
+ // ../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/index.js
1110
+ var require_dist = _chunkNDGCAOGYcjs.__commonJS.call(void 0, {
1111
+ "../../node_modules/.pnpm/tsup@8.4.0_patch_hash=214cbeb07445a723854c8fc34007a4790e4ea2ad2a5d1919d7b09d653a83dae4__6de9fcd47df2c892d30c447d02dc88da/node_modules/tsup/dist/index.js"(exports) {
1112
+ "use strict";
1113
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
760
1114
  Object.defineProperty(exports, "__esModule", {
761
1115
  value: true
762
1116
  });
@@ -776,13 +1130,13 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
776
1130
  return newObj;
777
1131
  }
778
1132
  }
779
- _chunkSJESTPECcjs.__name.call(void 0, _interopRequireWildcard, "_interopRequireWildcard");
1133
+ _chunkNDGCAOGYcjs.__name.call(void 0, _interopRequireWildcard, "_interopRequireWildcard");
780
1134
  function _interopRequireDefault(obj) {
781
1135
  return obj && obj.__esModule ? obj : {
782
1136
  default: obj
783
1137
  };
784
1138
  }
785
- _chunkSJESTPECcjs.__name.call(void 0, _interopRequireDefault, "_interopRequireDefault");
1139
+ _chunkNDGCAOGYcjs.__name.call(void 0, _interopRequireDefault, "_interopRequireDefault");
786
1140
  function _nullishCoalesce(lhs, rhsFn) {
787
1141
  if (lhs != null) {
788
1142
  return lhs;
@@ -790,7 +1144,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
790
1144
  return rhsFn();
791
1145
  }
792
1146
  }
793
- _chunkSJESTPECcjs.__name.call(void 0, _nullishCoalesce, "_nullishCoalesce");
1147
+ _chunkNDGCAOGYcjs.__name.call(void 0, _nullishCoalesce, "_nullishCoalesce");
794
1148
  function _optionalChain(ops) {
795
1149
  let lastAccessLHS = void 0;
796
1150
  let value = ops[0];
@@ -806,37 +1160,38 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
806
1160
  lastAccessLHS = value;
807
1161
  value = fn(value);
808
1162
  } else if (op === "call" || op === "optionalCall") {
809
- value = fn((...args2) => value.call(lastAccessLHS, ...args2));
1163
+ value = fn((...args) => value.call(lastAccessLHS, ...args));
810
1164
  lastAccessLHS = void 0;
811
1165
  }
812
1166
  }
813
1167
  return value;
814
1168
  }
815
- _chunkSJESTPECcjs.__name.call(void 0, _optionalChain, "_optionalChain");
1169
+ _chunkNDGCAOGYcjs.__name.call(void 0, _optionalChain, "_optionalChain");
816
1170
  var _class;
817
1171
  var _chunkBYH4XDRHjs = require_chunk_BYH4XDRH();
818
1172
  var _chunkVGC3FXLUjs = require_chunk_VGC3FXLU();
819
1173
  var _chunkJZ25TPTYjs = require_chunk_JZ25TPTY();
820
1174
  var _chunkTWFEYLU4js = require_chunk_TWFEYLU4();
821
- var _path = _chunkSJESTPECcjs.__require.call(void 0, "path");
1175
+ var _commonjsPluginjs = require_commonjs_plugin();
1176
+ var _path = _chunkNDGCAOGYcjs.__require.call(void 0, "path");
822
1177
  var _path2 = _interopRequireDefault(_path);
823
- var _fs = _chunkSJESTPECcjs.__require.call(void 0, "fs");
1178
+ var _fs = _chunkNDGCAOGYcjs.__require.call(void 0, "fs");
824
1179
  var _fs2 = _interopRequireDefault(_fs);
825
- var _worker_threads = _chunkSJESTPECcjs.__require.call(void 0, "worker_threads");
826
- var _bundlerequire = _chunkSJESTPECcjs.__require.call(void 0, "bundle-require");
827
- var _tinyexec = _chunkSJESTPECcjs.__require.call(void 0, "tinyexec");
828
- var _tinyglobby = _chunkSJESTPECcjs.__require.call(void 0, "tinyglobby");
829
- var _treekill = _chunkSJESTPECcjs.__require.call(void 0, "tree-kill");
1180
+ var _worker_threads = _chunkNDGCAOGYcjs.__require.call(void 0, "worker_threads");
1181
+ var _bundlerequire = _chunkNDGCAOGYcjs.__require.call(void 0, "bundle-require");
1182
+ var _tinyexec = _chunkNDGCAOGYcjs.__require.call(void 0, "tinyexec");
1183
+ var _tinyglobby = _chunkNDGCAOGYcjs.__require.call(void 0, "tinyglobby");
1184
+ var _treekill = _chunkNDGCAOGYcjs.__require.call(void 0, "tree-kill");
830
1185
  var _treekill2 = _interopRequireDefault(_treekill);
831
- var _esbuild = _chunkSJESTPECcjs.__require.call(void 0, "esbuild");
832
- var _consola = _chunkSJESTPECcjs.__require.call(void 0, "consola");
1186
+ var _esbuild = _chunkNDGCAOGYcjs.__require.call(void 0, "esbuild");
1187
+ var _consola = _chunkNDGCAOGYcjs.__require.call(void 0, "consola");
833
1188
  var _consola2 = _interopRequireDefault(_consola);
834
- var nodeProtocolPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
1189
+ var nodeProtocolPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
835
1190
  const nodeProtocol = "node:";
836
1191
  return {
837
1192
  name: "node-protocol-plugin",
838
- setup({ onResolve: onResolve2 }) {
839
- onResolve2({
1193
+ setup({ onResolve }) {
1194
+ onResolve({
840
1195
  filter: /^node:/
841
1196
  }, ({ path: path12 }) => ({
842
1197
  path: path12.slice(nodeProtocol.length),
@@ -845,88 +1200,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
845
1200
  }
846
1201
  };
847
1202
  }, "nodeProtocolPlugin");
848
- var requireToImportPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
849
- return {
850
- name: "require-to-import",
851
- setup({ onResolve, onLoad, esbuild }) {
852
- function matchBrace(text, from) {
853
- if (!(text[from] === "(")) return -1;
854
- let i, k = 1;
855
- for (i = from + 1; i < text.length && k > 0; ++i) {
856
- if (text[i] === "(") k++;
857
- if (text[i] === ")") k--;
858
- }
859
- let to = i - 1;
860
- if (!(text[to] === ")") || k !== 0) return -1;
861
- return to;
862
- }
863
- _chunkSJESTPECcjs.__name.call(void 0, matchBrace, "matchBrace");
864
- function makeName(path2) {
865
- return path2.replace(/-(\w)/g, (_, x) => x.toUpperCase()).replace(/[^$_a-zA-Z0-9]/g, "_");
866
- }
867
- _chunkSJESTPECcjs.__name.call(void 0, makeName, "makeName");
868
- onLoad({
869
- filter: /\.c?js/
870
- }, async (args) => {
871
- let contents = await _fs2.default.promises.readFile(args.path, "utf8");
872
- let warnings;
873
- try {
874
- ({ warnings } = await esbuild.transform(contents, {
875
- format: "esm",
876
- logLevel: "silent"
877
- }));
878
- } catch (err) {
879
- ({ warnings } = err);
880
- }
881
- let lines = contents.split("\n");
882
- if (warnings && warnings.some((e) => e.text.includes('"require" to "esm"'))) {
883
- let modifications = [], imports = [];
884
- for (const { location: { line, lineText, column, length } } of warnings) {
885
- let left = column + length;
886
- let right = matchBrace(lineText, left);
887
- if (right === -1) continue;
888
- let raw = lineText.slice(left + 1, right);
889
- let path;
890
- try {
891
- path = eval(raw);
892
- if (typeof path !== "string") continue;
893
- } catch (e) {
894
- continue;
895
- }
896
- let name = `__import_${makeName(path)}`;
897
- let import_statement = `import ${name} from ${raw};`;
898
- let offset = lines.slice(0, line - 1).map((line2) => line2.length).reduce((a, b) => a + 1 + b, 0);
899
- modifications.push([
900
- offset + column,
901
- offset + right + 1,
902
- name
903
- ]);
904
- imports.push(import_statement);
905
- }
906
- if (imports.length === 0) return null;
907
- imports = [
908
- ...new Set(imports)
909
- ];
910
- let offset = 0;
911
- for (const [start, end, name2] of modifications) {
912
- contents = contents.slice(0, start + offset) + name2 + contents.slice(end + offset);
913
- offset += name2.length - (end - start);
914
- }
915
- contents = [
916
- ...imports,
917
- "module.exports",
918
- contents
919
- ].join(";");
920
- return {
921
- contents
922
- };
923
- }
924
- });
925
- }
926
- };
927
- }, "requireToImportPlugin");
928
1203
  var NON_NODE_MODULE_RE = /^[A-Z]:[/\\]|^\.{0,2}\/|^\.{1,2}$/;
929
- var externalPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ external, noExternal, skipNodeModulesBundle, tsconfigResolvePaths }) => {
1204
+ var externalPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ external, noExternal, skipNodeModulesBundle, tsconfigResolvePaths }) => {
930
1205
  return {
931
1206
  name: `external`,
932
1207
  setup(build2) {
@@ -934,21 +1209,21 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
934
1209
  const resolvePatterns = _bundlerequire.tsconfigPathsToRegExp.call(void 0, tsconfigResolvePaths || {});
935
1210
  build2.onResolve({
936
1211
  filter: /.*/
937
- }, (args2) => {
938
- if (_bundlerequire.match.call(void 0, args2.path, resolvePatterns)) {
1212
+ }, (args) => {
1213
+ if (_bundlerequire.match.call(void 0, args.path, resolvePatterns)) {
939
1214
  return;
940
1215
  }
941
- if (_bundlerequire.match.call(void 0, args2.path, noExternal)) {
1216
+ if (_bundlerequire.match.call(void 0, args.path, noExternal)) {
942
1217
  return;
943
1218
  }
944
- if (_bundlerequire.match.call(void 0, args2.path, external)) {
1219
+ if (_bundlerequire.match.call(void 0, args.path, external)) {
945
1220
  return {
946
1221
  external: true
947
1222
  };
948
1223
  }
949
- if (!NON_NODE_MODULE_RE.test(args2.path)) {
1224
+ if (!NON_NODE_MODULE_RE.test(args.path)) {
950
1225
  return {
951
- path: args2.path,
1226
+ path: args.path,
952
1227
  external: true
953
1228
  };
954
1229
  }
@@ -956,11 +1231,11 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
956
1231
  } else {
957
1232
  build2.onResolve({
958
1233
  filter: /.*/
959
- }, (args2) => {
960
- if (_bundlerequire.match.call(void 0, args2.path, noExternal)) {
1234
+ }, (args) => {
1235
+ if (_bundlerequire.match.call(void 0, args.path, noExternal)) {
961
1236
  return;
962
1237
  }
963
- if (_bundlerequire.match.call(void 0, args2.path, external)) {
1238
+ if (_bundlerequire.match.call(void 0, args.path, external)) {
964
1239
  return {
965
1240
  external: true
966
1241
  };
@@ -970,18 +1245,18 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
970
1245
  }
971
1246
  };
972
1247
  }, "externalPlugin");
973
- var postcssPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ options: options1, css, inject, cssLoader }) => {
1248
+ var postcssPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ options: options1, css, inject, cssLoader }) => {
974
1249
  return {
975
1250
  name: "postcss",
976
1251
  setup(build2) {
977
1252
  let configCache;
978
- const getPostcssConfig = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
1253
+ const getPostcssConfig = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
979
1254
  const loadConfig = _chunkTWFEYLU4js.__require.call(void 0, "postcss-load-config");
980
1255
  if (configCache) {
981
1256
  return configCache;
982
1257
  }
983
1258
  try {
984
- const result = await loadConfig({}, _optionalChain3([options1, 'access', _44 => _44.workspaceConfig, 'optionalAccess', _45 => _45.workspaceRoot]) || process.cwd());
1259
+ const result = await loadConfig({}, _optionalChain2([options1, 'access', _44 => _44.workspaceConfig, 'optionalAccess', _45 => _45.workspaceRoot]) || process.cwd());
985
1260
  configCache = result;
986
1261
  return result;
987
1262
  } catch (error) {
@@ -1039,12 +1314,12 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1039
1314
  });
1040
1315
  build2.onLoad({
1041
1316
  filter: /\.css$/
1042
- }, async (args2) => {
1043
- let contents2;
1044
- if (css && args2.path.endsWith(".svelte.css")) {
1045
- contents2 = css.get(args2.path);
1317
+ }, async (args) => {
1318
+ let contents;
1319
+ if (css && args.path.endsWith(".svelte.css")) {
1320
+ contents = css.get(args.path);
1046
1321
  } else {
1047
- contents2 = await _fs2.default.promises.readFile(args2.path, "utf8");
1322
+ contents = await _fs2.default.promises.readFile(args.path, "utf8");
1048
1323
  }
1049
1324
  const { plugins, options: options12 } = await getPostcssConfig();
1050
1325
  if (plugins && plugins.length > 0) {
@@ -1067,15 +1342,15 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1067
1342
  "access",
1068
1343
  (_4) => _4.process,
1069
1344
  "call",
1070
- (_5) => _5(contents2, {
1345
+ (_5) => _5(contents, {
1071
1346
  ...options12,
1072
- from: args2.path
1347
+ from: args.path
1073
1348
  })
1074
1349
  ]);
1075
- contents2 = result.css;
1350
+ contents = result.css;
1076
1351
  }
1077
1352
  if (inject) {
1078
- contents2 = (await _esbuild.transform.call(void 0, contents2, {
1353
+ contents = (await _esbuild.transform.call(void 0, contents, {
1079
1354
  minify: build2.initialOptions.minify,
1080
1355
  minifyIdentifiers: build2.initialOptions.minifyIdentifiers,
1081
1356
  minifySyntax: build2.initialOptions.minifySyntax,
@@ -1083,22 +1358,22 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1083
1358
  logLevel: build2.initialOptions.logLevel,
1084
1359
  loader: "css"
1085
1360
  })).code;
1086
- contents2 = typeof inject === "function" ? await inject(JSON.stringify(contents2), args2.path) : `import styleInject from '#style-inject';styleInject(${JSON.stringify(contents2)})`;
1361
+ contents = typeof inject === "function" ? await inject(JSON.stringify(contents), args.path) : `import styleInject from '#style-inject';styleInject(${JSON.stringify(contents)})`;
1087
1362
  return {
1088
- contents: contents2,
1363
+ contents,
1089
1364
  loader: "js"
1090
1365
  };
1091
1366
  }
1092
1367
  return {
1093
- contents: contents2,
1368
+ contents,
1094
1369
  loader: _nullishCoalesce(cssLoader, () => "css")
1095
1370
  };
1096
1371
  });
1097
1372
  }
1098
1373
  };
1099
1374
  }, "postcssPlugin");
1100
- var useSvelteCssExtension = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (p) => p.replace(/\.svelte$/, ".svelte.css"), "useSvelteCssExtension");
1101
- var sveltePlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ css, options: options1 }) => {
1375
+ var useSvelteCssExtension = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (p) => p.replace(/\.svelte$/, ".svelte.css"), "useSvelteCssExtension");
1376
+ var sveltePlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ css, options: options1 }) => {
1102
1377
  return {
1103
1378
  name: "svelte",
1104
1379
  setup(build2) {
@@ -1106,15 +1381,15 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1106
1381
  let sveltePreprocessor;
1107
1382
  build2.onResolve({
1108
1383
  filter: /\.svelte\.css$/
1109
- }, (args2) => {
1384
+ }, (args) => {
1110
1385
  return {
1111
- path: _path2.default.relative(_optionalChain3([options1, 'access', _46 => _46.workspaceConfig, 'optionalAccess', _47 => _47.workspaceRoot]) || process.cwd(), _path2.default.join(args2.resolveDir, args2.path)),
1386
+ path: _path2.default.relative(_optionalChain2([options1, 'access', _46 => _46.workspaceConfig, 'optionalAccess', _47 => _47.workspaceRoot]) || process.cwd(), _path2.default.join(args.resolveDir, args.path)),
1112
1387
  namespace: "svelte-css"
1113
1388
  };
1114
1389
  });
1115
1390
  build2.onLoad({
1116
1391
  filter: /\.svelte$/
1117
- }, async (args2) => {
1392
+ }, async (args) => {
1118
1393
  svelte = svelte || _chunkTWFEYLU4js.localRequire.call(void 0, "svelte/compiler");
1119
1394
  sveltePreprocessor = sveltePreprocessor || _chunkTWFEYLU4js.localRequire.call(void 0, "svelte-preprocess");
1120
1395
  if (!svelte) {
@@ -1126,17 +1401,17 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1126
1401
  ]
1127
1402
  };
1128
1403
  }
1129
- const convertMessage = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ message, start, end }) => {
1404
+ const convertMessage = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ message, start, end }) => {
1130
1405
  let location;
1131
1406
  if (start && end) {
1132
- const lineText2 = source.split(/\r\n|\r|\n/g)[start.line - 1];
1133
- const lineEnd = start.line === end.line ? end.column : lineText2.length;
1407
+ const lineText = source.split(/\r\n|\r|\n/g)[start.line - 1];
1408
+ const lineEnd = start.line === end.line ? end.column : lineText.length;
1134
1409
  location = {
1135
1410
  file: filename,
1136
1411
  line: start.line,
1137
1412
  column: start.column,
1138
1413
  length: lineEnd - start.column,
1139
- lineText: lineText2
1414
+ lineText
1140
1415
  };
1141
1416
  }
1142
1417
  return {
@@ -1144,8 +1419,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1144
1419
  location
1145
1420
  };
1146
1421
  }, "convertMessage");
1147
- const source = await _fs2.default.promises.readFile(args2.path, "utf8");
1148
- const filename = _path2.default.relative(_optionalChain3([options1, 'access', _48 => _48.workspaceConfig, 'optionalAccess', _49 => _49.workspaceRoot]) || process.cwd(), args2.path);
1422
+ const source = await _fs2.default.promises.readFile(args.path, "utf8");
1423
+ const filename = _path2.default.relative(_optionalChain2([options1, 'access', _48 => _48.workspaceConfig, 'optionalAccess', _49 => _49.workspaceRoot]) || process.cwd(), args.path);
1149
1424
  try {
1150
1425
  const preprocess = await svelte.preprocess(source, sveltePreprocessor ? sveltePreprocessor({
1151
1426
  sourceMap: true,
@@ -1160,7 +1435,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1160
1435
  code: content
1161
1436
  };
1162
1437
  const { code, map } = await _esbuild.transform.call(void 0, content, {
1163
- sourcefile: args2.path,
1438
+ sourcefile: args.path,
1164
1439
  loader: "ts",
1165
1440
  sourcemap: true,
1166
1441
  tsconfigRaw: {
@@ -1176,20 +1451,20 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1176
1451
  };
1177
1452
  }
1178
1453
  }, {
1179
- filename: args2.path
1454
+ filename: args.path
1180
1455
  });
1181
1456
  const result = svelte.compile(preprocess.code, {
1182
1457
  filename,
1183
1458
  css: "external"
1184
1459
  });
1185
- let contents2 = result.js.code;
1460
+ let contents = result.js.code;
1186
1461
  if (css && result.css && result.css.code) {
1187
1462
  const cssPath = useSvelteCssExtension(filename);
1188
1463
  css.set(cssPath, result.css.code);
1189
- contents2 = `import '${useSvelteCssExtension(_path2.default.basename(args2.path))}';${contents2}`;
1464
+ contents = `import '${useSvelteCssExtension(_path2.default.basename(args.path))}';${contents}`;
1190
1465
  }
1191
1466
  return {
1192
- contents: contents2,
1467
+ contents,
1193
1468
  warnings: result.warnings.map(convertMessage)
1194
1469
  };
1195
1470
  } catch (error) {
@@ -1203,7 +1478,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1203
1478
  }
1204
1479
  };
1205
1480
  }, "sveltePlugin");
1206
- var swcPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ logger: logger3 }) => {
1481
+ var swcPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ logger: logger3 }) => {
1207
1482
  return {
1208
1483
  name: "swc",
1209
1484
  setup(build2) {
@@ -1215,8 +1490,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1215
1490
  build2.initialOptions.keepNames = true;
1216
1491
  build2.onLoad({
1217
1492
  filter: /\.[jt]sx?$/
1218
- }, async (args2) => {
1219
- const isTs = /\.tsx?$/.test(args2.path);
1493
+ }, async (args) => {
1494
+ const isTs = /\.tsx?$/.test(args.path);
1220
1495
  const jsc = {
1221
1496
  parser: {
1222
1497
  syntax: isTs ? "typescript" : "ecmascript",
@@ -1229,7 +1504,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1229
1504
  keepClassNames: true,
1230
1505
  target: "es2022"
1231
1506
  };
1232
- const result = await swc.transformFile(args2.path, {
1507
+ const result = await swc.transformFile(args.path, {
1233
1508
  jsc,
1234
1509
  sourceMaps: true,
1235
1510
  configFile: false,
@@ -1239,7 +1514,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1239
1514
  if (result.map) {
1240
1515
  const map = JSON.parse(result.map);
1241
1516
  map.sources = map.sources.map((source) => {
1242
- return _path2.default.isAbsolute(source) ? _path2.default.relative(_path2.default.dirname(args2.path), source) : source;
1517
+ return _path2.default.isAbsolute(source) ? _path2.default.relative(_path2.default.dirname(args.path), source) : source;
1243
1518
  });
1244
1519
  code += `//# sourceMappingURL=data:application/json;base64,${Buffer.from(JSON.stringify(map)).toString("base64")}`;
1245
1520
  }
@@ -1250,17 +1525,17 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1250
1525
  }
1251
1526
  };
1252
1527
  }, "swcPlugin");
1253
- var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
1528
+ var nativeNodeModulesPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
1254
1529
  return {
1255
1530
  name: "native-node-modules",
1256
1531
  setup(build2) {
1257
1532
  build2.onResolve({
1258
1533
  filter: /\.node$/,
1259
1534
  namespace: "file"
1260
- }, (args2) => {
1261
- const resolvedId = _chunkTWFEYLU4js.__require.resolve(args2.path, {
1535
+ }, (args) => {
1536
+ const resolvedId = _chunkTWFEYLU4js.__require.resolve(args.path, {
1262
1537
  paths: [
1263
- args2.resolveDir
1538
+ args.resolveDir
1264
1539
  ]
1265
1540
  });
1266
1541
  if (resolvedId.endsWith(".node")) {
@@ -1276,21 +1551,21 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1276
1551
  build2.onLoad({
1277
1552
  filter: /.*/,
1278
1553
  namespace: "node-file"
1279
- }, (args2) => {
1554
+ }, (args) => {
1280
1555
  return {
1281
1556
  contents: `
1282
- import path from ${JSON.stringify(args2.path)}
1557
+ import path from ${JSON.stringify(args.path)}
1283
1558
  try { module.exports = require(path) }
1284
1559
  catch {}
1285
1560
  `,
1286
- resolveDir: _path2.default.dirname(args2.path)
1561
+ resolveDir: _path2.default.dirname(args.path)
1287
1562
  };
1288
1563
  });
1289
1564
  build2.onResolve({
1290
1565
  filter: /\.node$/,
1291
1566
  namespace: "node-file"
1292
- }, (args2) => ({
1293
- path: args2.path,
1567
+ }, (args) => ({
1568
+ path: args.path,
1294
1569
  namespace: "file"
1295
1570
  }));
1296
1571
  const opts = build2.initialOptions;
@@ -1299,7 +1574,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1299
1574
  }
1300
1575
  };
1301
1576
  }, "nativeNodeModulesPlugin");
1302
- var getOutputExtensionMap = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (options1, format, pkgType) => {
1577
+ var getOutputExtensionMap = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (options1, format, pkgType) => {
1303
1578
  const outExtension = options1.outExtension || _chunkTWFEYLU4js.defaultOutExtension;
1304
1579
  const defaultExtension = _chunkTWFEYLU4js.defaultOutExtension.call(void 0, {
1305
1580
  format,
@@ -1314,22 +1589,22 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1314
1589
  ".js": extension.js || defaultExtension.js
1315
1590
  };
1316
1591
  }, "getOutputExtensionMap");
1317
- var generateExternal = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (external) => {
1592
+ var generateExternal = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (external) => {
1318
1593
  const result = [];
1319
1594
  for (const item of external) {
1320
1595
  if (typeof item !== "string" || !item.endsWith("package.json")) {
1321
1596
  result.push(item);
1322
1597
  continue;
1323
1598
  }
1324
- const pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(_optionalChain3([options, 'access', _50 => _50.workspaceConfig, 'optionalAccess', _51 => _51.workspaceRoot]) || process.cwd(), item));
1599
+ const pkgPath = _path2.default.isAbsolute(item) ? _path2.default.dirname(item) : _path2.default.dirname(_path2.default.resolve(_optionalChain2([options, 'access', _50 => _50.workspaceConfig, 'optionalAccess', _51 => _51.workspaceRoot]) || process.cwd(), item));
1325
1600
  const deps = await _chunkVGC3FXLUjs.getProductionDeps.call(void 0, pkgPath);
1326
1601
  result.push(...deps);
1327
1602
  }
1328
1603
  return result;
1329
1604
  }, "generateExternal");
1330
1605
  async function runEsbuild(options1, { format, css, logger: logger3, buildDependencies, pluginContainer }) {
1331
- const pkg = await _chunkVGC3FXLUjs.loadPkg.call(void 0, _optionalChain3([options1, 'access', _52 => _52.workspaceConfig, 'optionalAccess', _53 => _53.workspaceRoot]) || process.cwd());
1332
- const deps = await _chunkVGC3FXLUjs.getProductionDeps.call(void 0, _optionalChain3([options1, 'access', _54 => _54.workspaceConfig, 'optionalAccess', _55 => _55.workspaceRoot]) || process.cwd());
1606
+ const pkg = await _chunkVGC3FXLUjs.loadPkg.call(void 0, _optionalChain2([options1, 'access', _52 => _52.workspaceConfig, 'optionalAccess', _53 => _53.workspaceRoot]) || process.cwd());
1607
+ const deps = await _chunkVGC3FXLUjs.getProductionDeps.call(void 0, _optionalChain2([options1, 'access', _54 => _54.workspaceConfig, 'optionalAccess', _55 => _55.workspaceRoot]) || process.cwd());
1333
1608
  const external = [
1334
1609
  // Exclude dependencies, e.g. `lodash`, `lodash/get`
1335
1610
  ...deps.map((dep) => new RegExp(`^${dep}($|\\/|\\\\)`)),
@@ -1360,7 +1635,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1360
1635
  await pluginContainer.buildStarted();
1361
1636
  const esbuildPlugins = [
1362
1637
  format === "cjs" && options1.removeNodeProtocol && nodeProtocolPlugin(),
1363
- format === "esm" && bundle && options1.requireToImport && requireToImportPlugin(),
1638
+ format === "esm" && bundle && _commonjsPluginjs.commonjs.call(void 0),
1364
1639
  {
1365
1640
  name: "modify-options",
1366
1641
  setup(build2) {
@@ -1521,8 +1796,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1521
1796
  }
1522
1797
  }
1523
1798
  }
1524
- _chunkSJESTPECcjs.__name.call(void 0, runEsbuild, "runEsbuild");
1525
- var shebang = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
1799
+ _chunkNDGCAOGYcjs.__name.call(void 0, runEsbuild, "runEsbuild");
1800
+ var shebang = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
1526
1801
  return {
1527
1802
  name: "shebang",
1528
1803
  renderChunk(_, info) {
@@ -1532,7 +1807,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1532
1807
  }
1533
1808
  };
1534
1809
  }, "shebang");
1535
- var cjsSplitting = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
1810
+ var cjsSplitting = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
1536
1811
  return {
1537
1812
  name: "cjs-splitting",
1538
1813
  async renderChunk(code, info) {
@@ -1540,7 +1815,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1540
1815
  this.format !== "cjs" || info.type !== "chunk" || !/\.(js|cjs)$/.test(info.path)) {
1541
1816
  return;
1542
1817
  }
1543
- const { transform: transform3 } = await Promise.resolve().then(() => _interopRequireWildcard(_chunkSJESTPECcjs.__require.call(void 0, "sucrase")));
1818
+ const { transform: transform3 } = await Promise.resolve().then(() => _interopRequireWildcard(_chunkNDGCAOGYcjs.__require.call(void 0, "sucrase")));
1544
1819
  const result = transform3(code, {
1545
1820
  filePath: info.path,
1546
1821
  transforms: [
@@ -1557,8 +1832,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1557
1832
  }
1558
1833
  };
1559
1834
  }, "cjsSplitting");
1560
- var _sourcemap = _chunkSJESTPECcjs.__require.call(void 0, "source-map");
1561
- var outputFile = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (filepath, data, options1) => {
1835
+ var _sourcemap = _chunkNDGCAOGYcjs.__require.call(void 0, "source-map");
1836
+ var outputFile = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (filepath, data, options1) => {
1562
1837
  await _fs2.default.promises.mkdir(_path2.default.dirname(filepath), {
1563
1838
  recursive: true
1564
1839
  });
@@ -1583,15 +1858,15 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1583
1858
  }
1584
1859
  }
1585
1860
  }
1586
- _chunkSJESTPECcjs.__name.call(void 0, copyDirSync, "copyDirSync");
1587
- var parseSourceMap = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (map) => {
1861
+ _chunkNDGCAOGYcjs.__name.call(void 0, copyDirSync, "copyDirSync");
1862
+ var parseSourceMap = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (map) => {
1588
1863
  return typeof map === "string" ? JSON.parse(map) : map;
1589
1864
  }, "parseSourceMap");
1590
- var isJS = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (path12) => /\.(js|mjs|cjs)$/.test(path12), "isJS");
1591
- var isCSS = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (path12) => /\.css$/.test(path12), "isCSS");
1865
+ var isJS = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (path12) => /\.(js|mjs|cjs)$/.test(path12), "isJS");
1866
+ var isCSS = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (path12) => /\.css$/.test(path12), "isCSS");
1592
1867
  var PluginContainer = class {
1593
1868
  static {
1594
- _chunkSJESTPECcjs.__name.call(void 0, this, "PluginContainer");
1869
+ _chunkNDGCAOGYcjs.__name.call(void 0, this, "PluginContainer");
1595
1870
  }
1596
1871
  constructor(plugins) {
1597
1872
  this.plugins = plugins;
@@ -1620,7 +1895,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1620
1895
  async buildFinished({ options: options1, outputFiles, metafile }) {
1621
1896
  const files = outputFiles.filter((file) => !file.path.endsWith(".map")).map((file) => {
1622
1897
  if (isJS(file.path) || isCSS(file.path)) {
1623
- const relativePath = _chunkTWFEYLU4js.slash.call(void 0, _path2.default.relative(_optionalChain3([options1, 'access', _56 => _56.workspaceConfig, 'optionalAccess', _57 => _57.workspaceRoot]) || process.cwd(), file.path));
1898
+ const relativePath = _chunkTWFEYLU4js.slash.call(void 0, _path2.default.relative(_optionalChain2([options1, 'access', _56 => _56.workspaceConfig, 'optionalAccess', _57 => _57.workspaceRoot]) || process.cwd(), file.path));
1624
1899
  const meta = _optionalChain([
1625
1900
  metafile,
1626
1901
  "optionalAccess",
@@ -1685,29 +1960,29 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1685
1960
  }
1686
1961
  }
1687
1962
  const inlineSourceMap = this.context.options.sourcemap === "inline";
1688
- const contents2 = info.type === "chunk" ? info.code + getSourcemapComment(inlineSourceMap, info.map, info.path, isCSS(info.path)) : info.contents;
1689
- await outputFile(info.path, contents2, {
1963
+ const contents = info.type === "chunk" ? info.code + getSourcemapComment(inlineSourceMap, info.map, info.path, isCSS(info.path)) : info.contents;
1964
+ await outputFile(info.path, contents, {
1690
1965
  mode: info.type === "chunk" ? info.mode : void 0
1691
1966
  });
1692
1967
  writtenFiles.push({
1693
1968
  get name() {
1694
- return _path2.default.relative(_optionalChain3([options1, 'access', _58 => _58.workspaceConfig, 'optionalAccess', _59 => _59.workspaceRoot]) || process.cwd(), info.path);
1969
+ return _path2.default.relative(_optionalChain2([options1, 'access', _58 => _58.workspaceConfig, 'optionalAccess', _59 => _59.workspaceRoot]) || process.cwd(), info.path);
1695
1970
  },
1696
1971
  get size() {
1697
- return contents2.length;
1972
+ return contents.length;
1698
1973
  }
1699
1974
  });
1700
1975
  if (info.type === "chunk" && info.map && !inlineSourceMap) {
1701
1976
  const map = typeof info.map === "string" ? JSON.parse(info.map) : info.map;
1702
1977
  const outPath = `${info.path}.map`;
1703
- const contents22 = JSON.stringify(map);
1704
- await outputFile(outPath, contents22);
1978
+ const contents2 = JSON.stringify(map);
1979
+ await outputFile(outPath, contents2);
1705
1980
  writtenFiles.push({
1706
1981
  get name() {
1707
- return _path2.default.relative(_optionalChain3([options1, 'access', _60 => _60.workspaceConfig, 'optionalAccess', _61 => _61.workspaceRoot]) || process.cwd(), outPath);
1982
+ return _path2.default.relative(_optionalChain2([options1, 'access', _60 => _60.workspaceConfig, 'optionalAccess', _61 => _61.workspaceRoot]) || process.cwd(), outPath);
1708
1983
  },
1709
1984
  get size() {
1710
- return contents22.length;
1985
+ return contents2.length;
1711
1986
  }
1712
1987
  });
1713
1988
  }
@@ -1721,7 +1996,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1721
1996
  }
1722
1997
  }
1723
1998
  };
1724
- var getSourcemapComment = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (inline, map, filepath, isCssFile) => {
1999
+ var getSourcemapComment = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (inline, map, filepath, isCssFile) => {
1725
2000
  if (!map) return "";
1726
2001
  const prefix = isCssFile ? "/*" : "//";
1727
2002
  const suffix = isCssFile ? " */" : "";
@@ -1732,7 +2007,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1732
2007
  "es5",
1733
2008
  "es3"
1734
2009
  ];
1735
- var swcTarget = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2010
+ var swcTarget = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
1736
2011
  let enabled = false;
1737
2012
  let target;
1738
2013
  return {
@@ -1781,7 +2056,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1781
2056
  }
1782
2057
  };
1783
2058
  }, "swcTarget");
1784
- var sizeReporter = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2059
+ var sizeReporter = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
1785
2060
  return {
1786
2061
  name: "size-reporter",
1787
2062
  buildEnd({ writtenFiles }) {
@@ -1794,8 +2069,8 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1794
2069
  }
1795
2070
  };
1796
2071
  }, "sizeReporter");
1797
- var _rollup = _chunkSJESTPECcjs.__require.call(void 0, "rollup");
1798
- var treeShakingPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ treeshake, name: name2, silent }) => {
2072
+ var _rollup = _chunkNDGCAOGYcjs.__require.call(void 0, "rollup");
2073
+ var treeShakingPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ treeshake, name, silent }) => {
1799
2074
  return {
1800
2075
  name: "tree-shaking",
1801
2076
  async renderChunk(code, info) {
@@ -1831,7 +2106,7 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1831
2106
  file: info.path,
1832
2107
  sourcemap: !!this.options.sourcemap,
1833
2108
  compact: !!this.options.minify,
1834
- name: name2
2109
+ name
1835
2110
  });
1836
2111
  for (const file of result.output) {
1837
2112
  if (file.type === "chunk" && file.fileName === _path2.default.basename(info.path)) {
@@ -1844,16 +2119,16 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1844
2119
  }
1845
2120
  };
1846
2121
  }, "treeShakingPlugin");
1847
- var copyPublicDir = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (publicDir, outDir) => {
2122
+ var copyPublicDir = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (publicDir, outDir) => {
1848
2123
  if (!publicDir) return;
1849
2124
  copyDirSync(_path2.default.resolve(publicDir === true ? "public" : publicDir), outDir);
1850
2125
  }, "copyPublicDir");
1851
- var isInPublicDir = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (publicDir, filePath) => {
2126
+ var isInPublicDir = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (publicDir, filePath) => {
1852
2127
  if (!publicDir) return false;
1853
2128
  const publicPath = _chunkTWFEYLU4js.slash.call(void 0, _path2.default.resolve(publicDir === true ? "public" : publicDir));
1854
2129
  return _chunkTWFEYLU4js.slash.call(void 0, _path2.default.resolve(filePath)).startsWith(`${publicPath}/`);
1855
2130
  }, "isInPublicDir");
1856
- var terserPlugin = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ minifyOptions, format, terserOptions = {}, globalName, logger: logger3 }) => {
2131
+ var terserPlugin = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ minifyOptions, format, terserOptions = {}, globalName, logger: logger3 }) => {
1857
2132
  return {
1858
2133
  name: "terser",
1859
2134
  async renderChunk(code, info) {
@@ -1896,12 +2171,12 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1896
2171
  }
1897
2172
  };
1898
2173
  }, "terserPlugin");
1899
- var _typescript = _chunkSJESTPECcjs.__require.call(void 0, "typescript");
2174
+ var _typescript = _chunkNDGCAOGYcjs.__require.call(void 0, "typescript");
1900
2175
  var _typescript2 = _interopRequireDefault(_typescript);
1901
2176
  var logger = _chunkVGC3FXLUjs.createLogger.call(void 0);
1902
2177
  var AliasPool = (_class = class {
1903
2178
  static {
1904
- _chunkSJESTPECcjs.__name.call(void 0, this, "_class");
2179
+ _chunkNDGCAOGYcjs.__name.call(void 0, this, "_class");
1905
2180
  }
1906
2181
  constructor() {
1907
2182
  _class.prototype.__init.call(this);
@@ -1909,11 +2184,11 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1909
2184
  __init() {
1910
2185
  this.seen = /* @__PURE__ */ new Set();
1911
2186
  }
1912
- assign(name2) {
2187
+ assign(name) {
1913
2188
  let suffix = 0;
1914
- let alias = name2 === "default" ? "default_alias" : name2;
2189
+ let alias = name === "default" ? "default_alias" : name;
1915
2190
  while (this.seen.has(alias)) {
1916
- alias = `${name2}_alias_${++suffix}`;
2191
+ alias = `${name}_alias_${++suffix}`;
1917
2192
  if (suffix >= 1e3) {
1918
2193
  throw new Error("Alias generation exceeded limit. Possible infinite loop detected.");
1919
2194
  }
@@ -1944,25 +2219,25 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1944
2219
  const exports1 = [];
1945
2220
  const exportSymbols = checker.getExportsOfModule(moduleSymbol);
1946
2221
  exportSymbols.forEach((symbol) => {
1947
- const name2 = symbol.getName();
2222
+ const name = symbol.getName();
1948
2223
  exports1.push({
1949
2224
  kind: "named",
1950
2225
  sourceFileName,
1951
2226
  destFileName,
1952
- name: name2,
1953
- alias: assignAlias(name2),
2227
+ name,
2228
+ alias: assignAlias(name),
1954
2229
  isTypeOnly: false
1955
2230
  });
1956
2231
  });
1957
2232
  return exports1;
1958
2233
  }
1959
- _chunkSJESTPECcjs.__name.call(void 0, extractExports, "extractExports");
2234
+ _chunkNDGCAOGYcjs.__name.call(void 0, extractExports, "extractExports");
1960
2235
  return program.getRootFileNames().flatMap(extractExports);
1961
2236
  }
1962
- _chunkSJESTPECcjs.__name.call(void 0, getExports, "getExports");
2237
+ _chunkNDGCAOGYcjs.__name.call(void 0, getExports, "getExports");
1963
2238
  function emitDtsFiles(program, host) {
1964
2239
  const fileMapping = /* @__PURE__ */ new Map();
1965
- const writeFile = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
2240
+ const writeFile = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (fileName, text, writeByteOrderMark, onError, sourceFiles, data) => {
1966
2241
  const sourceFile = _optionalChain([
1967
2242
  sourceFiles,
1968
2243
  "optionalAccess",
@@ -1984,9 +2259,9 @@ var require_dist = _chunkSJESTPECcjs.__commonJS.call(void 0, {
1984
2259
  const diagnosticMessages = [];
1985
2260
  diagnostics.forEach((diagnostic) => {
1986
2261
  if (diagnostic.file) {
1987
- const { line: line2, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
2262
+ const { line, character } = _typescript2.default.getLineAndCharacterOfPosition(diagnostic.file, diagnostic.start);
1988
2263
  const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1989
- diagnosticMessages.push(`${diagnostic.file.fileName} (${line2 + 1},${character + 1}): ${message}`);
2264
+ diagnosticMessages.push(`${diagnostic.file.fileName} (${line + 1},${character + 1}): ${message}`);
1990
2265
  } else {
1991
2266
  const message = _typescript2.default.flattenDiagnosticMessageText(diagnostic.messageText, "\n");
1992
2267
  diagnosticMessages.push(message);
@@ -2001,9 +2276,9 @@ ${diagnosticMessage}`);
2001
2276
  }
2002
2277
  return fileMapping;
2003
2278
  }
2004
- _chunkSJESTPECcjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
2279
+ _chunkNDGCAOGYcjs.__name.call(void 0, emitDtsFiles, "emitDtsFiles");
2005
2280
  function emit(compilerOptions, tsconfig, _options) {
2006
- const cwd = _optionalChain3([_options, 'access', _62 => _62.workspaceConfig, 'optionalAccess', _63 => _63.workspaceRoot]) || process.cwd();
2281
+ const cwd = _optionalChain2([_options, 'access', _62 => _62.workspaceConfig, 'optionalAccess', _63 => _63.workspaceRoot]) || process.cwd();
2007
2282
  let rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, cwd, tsconfig);
2008
2283
  if (!rawTsconfig) {
2009
2284
  rawTsconfig = _bundlerequire.loadTsConfig.call(void 0, process.cwd(), tsconfig);
@@ -2037,11 +2312,11 @@ ${diagnosticMessage}`);
2037
2312
  const fileMapping = emitDtsFiles(program, host);
2038
2313
  return getExports(program, fileMapping);
2039
2314
  }
2040
- _chunkSJESTPECcjs.__name.call(void 0, emit, "emit");
2315
+ _chunkNDGCAOGYcjs.__name.call(void 0, emit, "emit");
2041
2316
  function runTypeScriptCompiler(options1) {
2042
2317
  try {
2043
2318
  const start = Date.now();
2044
- const getDuration = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2319
+ const getDuration = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
2045
2320
  return `${Math.floor(Date.now() - start)}ms`;
2046
2321
  }, "getDuration");
2047
2322
  logger.info("tsc", "Build start");
@@ -2054,16 +2329,16 @@ ${diagnosticMessage}`);
2054
2329
  logger.error("tsc", "Build error");
2055
2330
  }
2056
2331
  }
2057
- _chunkSJESTPECcjs.__name.call(void 0, runTypeScriptCompiler, "runTypeScriptCompiler");
2332
+ _chunkNDGCAOGYcjs.__name.call(void 0, runTypeScriptCompiler, "runTypeScriptCompiler");
2058
2333
  function formatAggregationExports(exports1, declarationDirPath) {
2059
- const lines2 = exports1.map((declaration) => formatAggregationExport(declaration, declarationDirPath)).filter(_chunkTWFEYLU4js.truthy);
2060
- if (lines2.length === 0) {
2061
- lines2.push("export {};");
2334
+ const lines = exports1.map((declaration) => formatAggregationExport(declaration, declarationDirPath)).filter(_chunkTWFEYLU4js.truthy);
2335
+ if (lines.length === 0) {
2336
+ lines.push("export {};");
2062
2337
  }
2063
- return `${lines2.join("\n")}
2338
+ return `${lines.join("\n")}
2064
2339
  `;
2065
2340
  }
2066
- _chunkSJESTPECcjs.__name.call(void 0, formatAggregationExports, "formatAggregationExports");
2341
+ _chunkNDGCAOGYcjs.__name.call(void 0, formatAggregationExports, "formatAggregationExports");
2067
2342
  function formatAggregationExport(declaration, declarationDirPath) {
2068
2343
  const dest = _chunkTWFEYLU4js.replaceDtsWithJsExtensions.call(void 0, `./${_path2.default.posix.normalize(_chunkTWFEYLU4js.slash.call(void 0, _path2.default.relative(declarationDirPath, declaration.destFileName)))}`);
2069
2344
  if (declaration.kind === "module") {
@@ -2082,7 +2357,7 @@ ${diagnosticMessage}`);
2082
2357
  throw new Error("Unknown declaration");
2083
2358
  }
2084
2359
  }
2085
- _chunkSJESTPECcjs.__name.call(void 0, formatAggregationExport, "formatAggregationExport");
2360
+ _chunkNDGCAOGYcjs.__name.call(void 0, formatAggregationExport, "formatAggregationExport");
2086
2361
  function formatDistributionExports(exports1, fromFilePath, toFilePath) {
2087
2362
  let importPath = _chunkTWFEYLU4js.replaceDtsWithJsExtensions.call(void 0, _path2.default.posix.relative(_path2.default.posix.dirname(_path2.default.posix.normalize(_chunkTWFEYLU4js.slash.call(void 0, fromFilePath))), _path2.default.posix.normalize(_chunkTWFEYLU4js.slash.call(void 0, toFilePath))));
2088
2363
  if (!/^\.+\//.test(importPath)) {
@@ -2092,7 +2367,7 @@ ${diagnosticMessage}`);
2092
2367
  named: /* @__PURE__ */ new Set(),
2093
2368
  module: /* @__PURE__ */ new Set()
2094
2369
  };
2095
- const lines2 = exports1.filter((declaration) => {
2370
+ const lines = exports1.filter((declaration) => {
2096
2371
  if (declaration.kind === "module") {
2097
2372
  if (seen.module.has(declaration.moduleName)) {
2098
2373
  return false;
@@ -2109,13 +2384,13 @@ ${diagnosticMessage}`);
2109
2384
  return false;
2110
2385
  }
2111
2386
  }).map((declaration) => formatDistributionExport(declaration, importPath)).filter(_chunkTWFEYLU4js.truthy);
2112
- if (lines2.length === 0) {
2113
- lines2.push("export {};");
2387
+ if (lines.length === 0) {
2388
+ lines.push("export {};");
2114
2389
  }
2115
- return `${lines2.join("\n")}
2390
+ return `${lines.join("\n")}
2116
2391
  `;
2117
2392
  }
2118
- _chunkSJESTPECcjs.__name.call(void 0, formatDistributionExports, "formatDistributionExports");
2393
+ _chunkNDGCAOGYcjs.__name.call(void 0, formatDistributionExports, "formatDistributionExports");
2119
2394
  function formatDistributionExport(declaration, dest) {
2120
2395
  if (declaration.kind === "named") {
2121
2396
  return [
@@ -2132,10 +2407,10 @@ ${diagnosticMessage}`);
2132
2407
  }
2133
2408
  return "";
2134
2409
  }
2135
- _chunkSJESTPECcjs.__name.call(void 0, formatDistributionExport, "formatDistributionExport");
2410
+ _chunkNDGCAOGYcjs.__name.call(void 0, formatDistributionExport, "formatDistributionExport");
2136
2411
  var logger2 = _chunkVGC3FXLUjs.createLogger.call(void 0);
2137
2412
  function rollupDtsFile(inputFilePath, outputFilePath, tsconfigFilePath, options1) {
2138
- const cwd = _optionalChain3([options1, 'access', _64 => _64.workspaceConfig, 'optionalAccess', _65 => _65.workspaceRoot]) || process.cwd();
2413
+ const cwd = _optionalChain2([options1, 'access', _64 => _64.workspaceConfig, 'optionalAccess', _65 => _65.workspaceRoot]) || process.cwd();
2139
2414
  const packageJsonFullPath = _path2.default.join(cwd, "package.json");
2140
2415
  const configObject = {
2141
2416
  mainEntryPointFilePath: inputFilePath,
@@ -2181,7 +2456,7 @@ ${diagnosticMessage}`);
2181
2456
  throw new Error(`API Extractor completed with ${extractorResult.errorCount} errors and ${extractorResult.warningCount} warnings when processing ${inputFilePath}`);
2182
2457
  }
2183
2458
  }
2184
- _chunkSJESTPECcjs.__name.call(void 0, rollupDtsFile, "rollupDtsFile");
2459
+ _chunkNDGCAOGYcjs.__name.call(void 0, rollupDtsFile, "rollupDtsFile");
2185
2460
  async function rollupDtsFiles(options1, exports1, format) {
2186
2461
  if (!options1.experimentalDts || !_optionalChain([
2187
2462
  options1,
@@ -2194,7 +2469,7 @@ ${diagnosticMessage}`);
2194
2469
  }
2195
2470
  const declarationDir = _chunkTWFEYLU4js.ensureTempDeclarationDir.call(void 0, options1);
2196
2471
  const outDir = options1.outDir || "dist";
2197
- const pkg = await _chunkVGC3FXLUjs.loadPkg.call(void 0, _optionalChain3([options1, 'access', _66 => _66.workspaceConfig, 'optionalAccess', _67 => _67.workspaceRoot]) || process.cwd());
2472
+ const pkg = await _chunkVGC3FXLUjs.loadPkg.call(void 0, _optionalChain2([options1, 'access', _66 => _66.workspaceConfig, 'optionalAccess', _67 => _67.workspaceRoot]) || process.cwd());
2198
2473
  const dtsExtension = _chunkTWFEYLU4js.defaultOutExtension.call(void 0, {
2199
2474
  format,
2200
2475
  pkgType: pkg.type
@@ -2212,7 +2487,7 @@ ${diagnosticMessage}`);
2212
2487
  _chunkTWFEYLU4js.writeFileSync.call(void 0, outFileName, formatDistributionExports(currentExports, outFileName, dtsOutputFilePath));
2213
2488
  }
2214
2489
  }
2215
- _chunkSJESTPECcjs.__name.call(void 0, rollupDtsFiles, "rollupDtsFiles");
2490
+ _chunkNDGCAOGYcjs.__name.call(void 0, rollupDtsFiles, "rollupDtsFiles");
2216
2491
  async function cleanDtsFiles(options1) {
2217
2492
  if (options1.clean) {
2218
2493
  await _chunkTWFEYLU4js.removeFiles.call(void 0, [
@@ -2220,11 +2495,11 @@ ${diagnosticMessage}`);
2220
2495
  ], options1.outDir);
2221
2496
  }
2222
2497
  }
2223
- _chunkSJESTPECcjs.__name.call(void 0, cleanDtsFiles, "cleanDtsFiles");
2498
+ _chunkNDGCAOGYcjs.__name.call(void 0, cleanDtsFiles, "cleanDtsFiles");
2224
2499
  async function runDtsRollup(options1, exports1) {
2225
2500
  try {
2226
2501
  const start = Date.now();
2227
- const getDuration = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2502
+ const getDuration = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
2228
2503
  return `${Math.floor(Date.now() - start)}ms`;
2229
2504
  }, "getDuration");
2230
2505
  logger2.info("dts", "Build start");
@@ -2241,8 +2516,8 @@ ${diagnosticMessage}`);
2241
2516
  logger2.error("dts", "Build error");
2242
2517
  }
2243
2518
  }
2244
- _chunkSJESTPECcjs.__name.call(void 0, runDtsRollup, "runDtsRollup");
2245
- var cjsInterop = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2519
+ _chunkNDGCAOGYcjs.__name.call(void 0, runDtsRollup, "runDtsRollup");
2520
+ var cjsInterop = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
2246
2521
  return {
2247
2522
  name: "cjs-interop",
2248
2523
  renderChunk(code, info) {
@@ -2264,17 +2539,17 @@ module.exports = exports.default;
2264
2539
  }
2265
2540
  };
2266
2541
  }, "cjsInterop");
2267
- var defineConfig = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (options1) => options1, "defineConfig");
2268
- var isTaskkillCmdProcessNotFoundError = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (err) => {
2542
+ var defineConfig = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (options1) => options1, "defineConfig");
2543
+ var isTaskkillCmdProcessNotFoundError = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (err) => {
2269
2544
  return process.platform === "win32" && "cmd" in err && "code" in err && typeof err.cmd === "string" && err.cmd.startsWith("taskkill") && err.code === 128;
2270
2545
  }, "isTaskkillCmdProcessNotFoundError");
2271
- var killProcess = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, ({ pid, signal }) => new Promise((resolve, reject) => {
2546
+ var killProcess = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, ({ pid, signal }) => new Promise((resolve, reject) => {
2272
2547
  _treekill2.default.call(void 0, pid, signal, (err) => {
2273
2548
  if (err && !isTaskkillCmdProcessNotFoundError(err)) return reject(err);
2274
2549
  resolve();
2275
2550
  });
2276
2551
  }), "killProcess");
2277
- var normalizeOptions = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async (logger3, optionsFromConfigFile, optionsOverride) => {
2552
+ var normalizeOptions = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async (logger3, optionsFromConfigFile, optionsOverride) => {
2278
2553
  const _options = {
2279
2554
  ...optionsFromConfigFile,
2280
2555
  ...optionsOverride
@@ -2317,9 +2592,9 @@ module.exports = exports.default;
2317
2592
  options1.entry = entry;
2318
2593
  logger3.info("CLI", `Building entry: ${JSON.stringify(entry)}`);
2319
2594
  }
2320
- const tsconfig = _bundlerequire.loadTsConfig.call(void 0, _optionalChain3([options1, 'access', _68 => _68.workspaceConfig, 'optionalAccess', _69 => _69.workspaceRoot]) || process.cwd(), options1.tsconfig);
2595
+ const tsconfig = _bundlerequire.loadTsConfig.call(void 0, _optionalChain2([options1, 'access', _68 => _68.workspaceConfig, 'optionalAccess', _69 => _69.workspaceRoot]) || process.cwd(), options1.tsconfig);
2321
2596
  if (tsconfig) {
2322
- logger3.info("CLI", `Using tsconfig: ${_path2.default.relative(_optionalChain3([options1, 'access', _70 => _70.workspaceConfig, 'optionalAccess', _71 => _71.workspaceRoot]) || process.cwd(), tsconfig.path)}`);
2597
+ logger3.info("CLI", `Using tsconfig: ${_path2.default.relative(_optionalChain2([options1, 'access', _70 => _70.workspaceConfig, 'optionalAccess', _71 => _71.workspaceRoot]) || process.cwd(), tsconfig.path)}`);
2323
2598
  options1.tsconfig = tsconfig.path;
2324
2599
  options1.tsconfigResolvePaths = _optionalChain([
2325
2600
  tsconfig,
@@ -2372,7 +2647,7 @@ module.exports = exports.default;
2372
2647
  return options1;
2373
2648
  }, "normalizeOptions");
2374
2649
  async function build(_options) {
2375
- const config = _options.config === false ? {} : await _chunkVGC3FXLUjs.loadTsupConfig.call(void 0, _optionalChain3([_options, 'access', _72 => _72.workspaceConfig, 'optionalAccess', _73 => _73.workspaceRoot]) || process.cwd(), _options.config === true ? void 0 : _options.config);
2650
+ const config = _options.config === false ? {} : await _chunkVGC3FXLUjs.loadTsupConfig.call(void 0, _optionalChain2([_options, 'access', _72 => _72.workspaceConfig, 'optionalAccess', _73 => _73.workspaceRoot]) || process.cwd(), _options.config === true ? void 0 : _options.config);
2376
2651
  const configData = typeof config.data === "function" ? await config.data(_options) : config.data;
2377
2652
  await Promise.all([
2378
2653
  ...Array.isArray(configData) ? configData : [
@@ -2392,13 +2667,13 @@ module.exports = exports.default;
2392
2667
  if (options1.watch) {
2393
2668
  logger3.info("CLI", "Running in watch mode");
2394
2669
  }
2395
- const experimentalDtsTask = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2670
+ const experimentalDtsTask = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2396
2671
  if (!options1.dts && options1.experimentalDts) {
2397
2672
  const exports1 = runTypeScriptCompiler(options1);
2398
2673
  await runDtsRollup(options1, exports1);
2399
2674
  }
2400
2675
  }, "experimentalDtsTask");
2401
- const dtsTask = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2676
+ const dtsTask = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2402
2677
  if (options1.dts && options1.experimentalDts) {
2403
2678
  throw new Error("You can't use both `dts` and `experimentalDts` at the same time");
2404
2679
  }
@@ -2406,7 +2681,7 @@ module.exports = exports.default;
2406
2681
  if (options1.dts) {
2407
2682
  await new Promise((resolve, reject) => {
2408
2683
  const worker = new (0, _worker_threads.Worker)(_path2.default.join(__dirname, "./rollup.js"));
2409
- const terminateWorker = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, () => {
2684
+ const terminateWorker = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, () => {
2410
2685
  if (options1.watch) return;
2411
2686
  worker.terminate();
2412
2687
  }, "terminateWorker");
@@ -2449,7 +2724,7 @@ module.exports = exports.default;
2449
2724
  });
2450
2725
  }
2451
2726
  }, "dtsTask");
2452
- const mainTasks = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2727
+ const mainTasks = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2453
2728
  if (!_optionalChain([
2454
2729
  options1,
2455
2730
  "access",
@@ -2460,8 +2735,8 @@ module.exports = exports.default;
2460
2735
  let onSuccessProcess;
2461
2736
  let onSuccessCleanup;
2462
2737
  const buildDependencies = /* @__PURE__ */ new Set();
2463
- let depsHash = await _chunkVGC3FXLUjs.getAllDepsHash.call(void 0, _optionalChain3([options1, 'access', _74 => _74.workspaceConfig, 'optionalAccess', _75 => _75.workspaceRoot]) || process.cwd());
2464
- const doOnSuccessCleanup = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2738
+ let depsHash = await _chunkVGC3FXLUjs.getAllDepsHash.call(void 0, _optionalChain2([options1, 'access', _74 => _74.workspaceConfig, 'optionalAccess', _75 => _75.workspaceRoot]) || process.cwd());
2739
+ const doOnSuccessCleanup = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2465
2740
  if (onSuccessProcess) {
2466
2741
  await killProcess({
2467
2742
  pid: onSuccessProcess.pid,
@@ -2476,7 +2751,7 @@ module.exports = exports.default;
2476
2751
  const debouncedBuildAll = _chunkTWFEYLU4js.debouncePromise.call(void 0, () => {
2477
2752
  return buildAll();
2478
2753
  }, 100, _chunkJZ25TPTYjs.handleError);
2479
- const buildAll = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2754
+ const buildAll = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2480
2755
  await doOnSuccessCleanup();
2481
2756
  const previousBuildDependencies = new Set(buildDependencies);
2482
2757
  buildDependencies.clear();
@@ -2552,9 +2827,9 @@ module.exports = exports.default;
2552
2827
  }
2553
2828
  }
2554
2829
  }, "buildAll");
2555
- const startWatcher = /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, async () => {
2830
+ const startWatcher = /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, async () => {
2556
2831
  if (!options1.watch) return;
2557
- const { watch } = await Promise.resolve().then(() => _interopRequireWildcard(_chunkSJESTPECcjs.__require.call(void 0, "chokidar")));
2832
+ const { watch } = await Promise.resolve().then(() => _interopRequireWildcard(_chunkNDGCAOGYcjs.__require.call(void 0, "chokidar")));
2558
2833
  const customIgnores = options1.ignoreWatch ? Array.isArray(options1.ignoreWatch) ? options1.ignoreWatch : [
2559
2834
  options1.ignoreWatch
2560
2835
  ] : [];
@@ -2569,7 +2844,7 @@ module.exports = exports.default;
2569
2844
  const watcher = watch(await _tinyglobby.glob.call(void 0, watchPaths), {
2570
2845
  ignoreInitial: true,
2571
2846
  ignorePermissionErrors: true,
2572
- ignored: /* @__PURE__ */ _chunkSJESTPECcjs.__name.call(void 0, (p) => _tinyglobby.globSync.call(void 0, p, {
2847
+ ignored: /* @__PURE__ */ _chunkNDGCAOGYcjs.__name.call(void 0, (p) => _tinyglobby.globSync.call(void 0, p, {
2573
2848
  ignore: ignored
2574
2849
  }).length === 0, "ignored")
2575
2850
  });
@@ -2583,7 +2858,7 @@ module.exports = exports.default;
2583
2858
  let shouldSkipChange = false;
2584
2859
  if (options1.watch === true) {
2585
2860
  if (file === "package.json" && !buildDependencies.has(file)) {
2586
- const currentHash = await _chunkVGC3FXLUjs.getAllDepsHash.call(void 0, _optionalChain3([options1, 'access', _76 => _76.workspaceConfig, 'optionalAccess', _77 => _77.workspaceRoot]) || process.cwd());
2861
+ const currentHash = await _chunkVGC3FXLUjs.getAllDepsHash.call(void 0, _optionalChain2([options1, 'access', _76 => _76.workspaceConfig, 'optionalAccess', _77 => _77.workspaceRoot]) || process.cwd());
2587
2862
  shouldSkipChange = currentHash === depsHash;
2588
2863
  depsHash = currentHash;
2589
2864
  } else if (!buildDependencies.has(file)) {
@@ -2609,27 +2884,27 @@ module.exports = exports.default;
2609
2884
  ]);
2610
2885
  }));
2611
2886
  }
2612
- _chunkSJESTPECcjs.__name.call(void 0, build, "build");
2887
+ _chunkNDGCAOGYcjs.__name.call(void 0, build, "build");
2613
2888
  exports.build = build;
2614
2889
  exports.defineConfig = defineConfig;
2615
2890
  }
2616
2891
  });
2617
2892
 
2618
2893
  // src/tsup.ts
2619
- _chunkSJESTPECcjs.init_cjs_shims.call(void 0, );
2620
- var import_tsup = _chunkSJESTPECcjs.__toESM.call(void 0, require_dist(), 1);
2894
+ _chunkNDGCAOGYcjs.init_cjs_shims.call(void 0, );
2895
+ var import_tsup = _chunkNDGCAOGYcjs.__toESM.call(void 0, require_dist(), 1);
2621
2896
  async function executeTsup(context) {
2622
- _chunk2SU3HI5Qcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
2623
- const stopwatch = _chunk2SU3HI5Qcjs.getStopwatch.call(void 0, `${context.options.name} build`);
2897
+ _chunk2VOJGBTNcjs.writeDebug.call(void 0, ` \u{1F680} Running ${context.options.name} build`, context.workspaceConfig);
2898
+ const stopwatch = _chunk2VOJGBTNcjs.getStopwatch.call(void 0, `${context.options.name} build`);
2624
2899
  await (0, import_tsup.build)({
2625
2900
  ...context.options,
2626
- outDir: context.options.distDir ? _chunkRIGD2PFDcjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
2901
+ outDir: context.options.distDir ? _chunkWOKMOSA3cjs.joinPaths.call(void 0, context.outputPath, context.options.distDir) : context.outputPath,
2627
2902
  workspaceConfig: context.workspaceConfig
2628
2903
  });
2629
2904
  stopwatch();
2630
2905
  return context;
2631
2906
  }
2632
- _chunkSJESTPECcjs.__name.call(void 0, executeTsup, "executeTsup");
2907
+ _chunkNDGCAOGYcjs.__name.call(void 0, executeTsup, "executeTsup");
2633
2908
 
2634
2909
 
2635
2910