@rsbuild/core 1.5.12 → 1.5.13

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 (47) hide show
  1. package/compiled/@jridgewell/remapping/index.js +5 -848
  2. package/compiled/@jridgewell/trace-mapping/index.d.ts +194 -0
  3. package/compiled/@jridgewell/trace-mapping/index.js +1408 -0
  4. package/compiled/@jridgewell/trace-mapping/license +19 -0
  5. package/compiled/@jridgewell/trace-mapping/package.json +1 -0
  6. package/compiled/css-loader/index.js +22 -22
  7. package/compiled/html-rspack-plugin/index.js +14 -14
  8. package/compiled/launch-editor-middleware/index.js +3 -3
  9. package/compiled/memfs/index.d.ts +6 -1
  10. package/compiled/memfs/index.js +662 -636
  11. package/compiled/memfs/package.json +1 -1
  12. package/compiled/postcss/index.js +4 -4
  13. package/compiled/postcss-loader/index.js +6 -6
  14. package/compiled/rspack-manifest-plugin/index.js +4 -4
  15. package/dist/client/hmr.js +58 -19
  16. package/dist/index.cjs +426 -373
  17. package/dist/index.js +420 -369
  18. package/dist-types/configChain.d.ts +0 -4
  19. package/dist-types/server/assets-middleware/getFileFromUrl.d.ts +9 -0
  20. package/dist-types/server/assets-middleware/index.d.ts +48 -0
  21. package/dist-types/server/assets-middleware/middleware.d.ts +3 -0
  22. package/dist-types/server/assets-middleware/setupOutputFileSystem.d.ts +4 -0
  23. package/dist-types/server/assets-middleware/setupWriteToDisk.d.ts +15 -0
  24. package/dist-types/server/browserLogs.d.ts +7 -0
  25. package/dist-types/server/{compilationManager.d.ts → buildManager.d.ts} +11 -11
  26. package/dist-types/server/devMiddlewares.d.ts +2 -2
  27. package/dist-types/server/devServer.d.ts +3 -3
  28. package/dist-types/server/middlewares.d.ts +3 -3
  29. package/dist-types/server/socketServer.d.ts +22 -11
  30. package/dist-types/server/watchFiles.d.ts +2 -2
  31. package/dist-types/types/config.d.ts +13 -6
  32. package/dist-types/types/context.d.ts +14 -4
  33. package/dist-types/types/plugin.d.ts +1 -1
  34. package/dist-types/types/rsbuild.d.ts +8 -1
  35. package/package.json +5 -3
  36. package/dist-types/dev-middleware/index.d.ts +0 -53
  37. package/dist-types/dev-middleware/middleware.d.ts +0 -3
  38. package/dist-types/dev-middleware/utils/getFilenameFromUrl.d.ts +0 -7
  39. package/dist-types/dev-middleware/utils/getPaths.d.ts +0 -7
  40. package/dist-types/dev-middleware/utils/ready.d.ts +0 -2
  41. package/dist-types/dev-middleware/utils/setupHooks.d.ts +0 -3
  42. package/dist-types/dev-middleware/utils/setupOutputFileSystem.d.ts +0 -3
  43. package/dist-types/dev-middleware/utils/setupWriteToDisk.d.ts +0 -7
  44. package/dist-types/server/compilationMiddleware.d.ts +0 -36
  45. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/escapeHtml.d.ts +0 -0
  46. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/memorize.d.ts +0 -0
  47. /package/dist-types/{dev-middleware/utils → server/assets-middleware}/parseTokenList.d.ts +0 -0
@@ -146,7 +146,7 @@
146
146
  };
147
147
  exports.toMatcher = toMatcher;
148
148
  },
149
- 537: (__unused_webpack_module, exports) => {
149
+ 272: (__unused_webpack_module, exports) => {
150
150
  "use strict";
151
151
  Object.defineProperty(exports, "__esModule", { value: true });
152
152
  exports.constants = exports.SEP = void 0;
@@ -201,11 +201,11 @@
201
201
  COPYFILE_FICLONE_FORCE: 4,
202
202
  };
203
203
  },
204
- 162: (__unused_webpack_module, exports, __nccwpck_require__) => {
204
+ 943: (__unused_webpack_module, exports, __nccwpck_require__) => {
205
205
  "use strict";
206
206
  Object.defineProperty(exports, "__esModule", { value: true });
207
207
  exports.File = void 0;
208
- const constants_1 = __nccwpck_require__(537);
208
+ const constants_1 = __nccwpck_require__(272);
209
209
  const { O_APPEND } = constants_1.constants;
210
210
  class File {
211
211
  constructor(link, node, flags, fd) {
@@ -258,11 +258,11 @@
258
258
  }
259
259
  exports.File = File;
260
260
  },
261
- 480: (__unused_webpack_module, exports, __nccwpck_require__) => {
261
+ 193: (__unused_webpack_module, exports, __nccwpck_require__) => {
262
262
  "use strict";
263
263
  Object.defineProperty(exports, "__esModule", { value: true });
264
264
  exports.Link = void 0;
265
- const constants_1 = __nccwpck_require__(537);
265
+ const constants_1 = __nccwpck_require__(272);
266
266
  const fanout_1 = __nccwpck_require__(766);
267
267
  const { S_IFREG } = constants_1.constants;
268
268
  class Link {
@@ -358,14 +358,14 @@
358
358
  }
359
359
  exports.Link = Link;
360
360
  },
361
- 900: (__unused_webpack_module, exports, __nccwpck_require__) => {
361
+ 493: (__unused_webpack_module, exports, __nccwpck_require__) => {
362
362
  "use strict";
363
363
  Object.defineProperty(exports, "__esModule", { value: true });
364
364
  exports.Node = void 0;
365
365
  const fanout_1 = __nccwpck_require__(766);
366
- const process_1 = __nccwpck_require__(225);
367
- const buffer_1 = __nccwpck_require__(796);
368
- const constants_1 = __nccwpck_require__(537);
366
+ const process_1 = __nccwpck_require__(132);
367
+ const buffer_1 = __nccwpck_require__(913);
368
+ const constants_1 = __nccwpck_require__(272);
369
369
  const { S_IFMT, S_IFDIR, S_IFREG, S_IFLNK, S_IFCHR } =
370
370
  constants_1.constants;
371
371
  const getuid = () => process_1.default.getuid?.() ?? 0;
@@ -494,7 +494,11 @@
494
494
  const buf2 =
495
495
  buf instanceof buffer_1.Buffer
496
496
  ? buf
497
- : buffer_1.Buffer.from(buf.buffer);
497
+ : buffer_1.Buffer.from(
498
+ buf.buffer,
499
+ buf.byteOffset,
500
+ buf.byteLength,
501
+ );
498
502
  this.buf.copy(buf2, off, pos, pos + actualLen);
499
503
  return actualLen;
500
504
  }
@@ -595,24 +599,26 @@
595
599
  }
596
600
  exports.Node = Node;
597
601
  },
598
- 156: (__unused_webpack_module, exports, __nccwpck_require__) => {
602
+ 141: (__unused_webpack_module, exports, __nccwpck_require__) => {
599
603
  "use strict";
600
604
  Object.defineProperty(exports, "__esModule", { value: true });
601
605
  exports.Superblock = void 0;
602
- const NodePath = __nccwpck_require__(760);
603
- const Node_1 = __nccwpck_require__(900);
604
- const Link_1 = __nccwpck_require__(480);
605
- const File_1 = __nccwpck_require__(162);
606
- const buffer_1 = __nccwpck_require__(796);
607
- const process_1 = __nccwpck_require__(225);
608
- const constants_1 = __nccwpck_require__(537);
609
- const constants_2 = __nccwpck_require__(0);
610
- const util_1 = __nccwpck_require__(169);
611
- const util_2 = __nccwpck_require__(616);
612
- const json_1 = __nccwpck_require__(398);
613
- const { sep, relative, join, dirname } = NodePath.posix
614
- ? NodePath.posix
615
- : NodePath;
606
+ const path_1 = __nccwpck_require__(606);
607
+ const Node_1 = __nccwpck_require__(493);
608
+ const Link_1 = __nccwpck_require__(193);
609
+ const File_1 = __nccwpck_require__(943);
610
+ const buffer_1 = __nccwpck_require__(913);
611
+ const process_1 = __nccwpck_require__(132);
612
+ const constants_1 = __nccwpck_require__(272);
613
+ const constants_2 = __nccwpck_require__(379);
614
+ const util_1 = __nccwpck_require__(44);
615
+ const util_2 = __nccwpck_require__(37);
616
+ const json_1 = __nccwpck_require__(511);
617
+ const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
618
+ const pathRelative = path_1.posix
619
+ ? path_1.posix.relative
620
+ : path_1.relative;
621
+ const pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
616
622
  const {
617
623
  O_RDONLY,
618
624
  O_WRONLY,
@@ -622,10 +628,6 @@
622
628
  O_TRUNC,
623
629
  O_APPEND,
624
630
  O_DIRECTORY,
625
- O_SYMLINK,
626
- F_OK,
627
- COPYFILE_EXCL,
628
- COPYFILE_FICLONE_FORCE,
629
631
  } = constants_1.constants;
630
632
  class Superblock {
631
633
  static fromJSON(json, cwd) {
@@ -731,7 +733,7 @@
731
733
  );
732
734
  throw err;
733
735
  }
734
- const dirname2 = NodePath.dirname(filename2);
736
+ const dirname2 = (0, path_1.dirname)(filename2);
735
737
  let dir2;
736
738
  try {
737
739
  dir2 = this.getLinkOrThrow(dirname2, "link");
@@ -745,7 +747,7 @@
745
747
  );
746
748
  throw err;
747
749
  }
748
- const name = NodePath.basename(filename2);
750
+ const name = (0, path_1.basename)(filename2);
749
751
  if (dir2.getChild(name))
750
752
  throw (0, util_1.createError)(
751
753
  "EEXIST",
@@ -853,7 +855,7 @@
853
855
  );
854
856
  }
855
857
  oldLinkParent.deleteChild(link);
856
- const name = NodePath.basename(newPathFilename);
858
+ const name = (0, path_1.basename)(newPathFilename);
857
859
  link.name = name;
858
860
  link.steps = [...newPathDirLink.steps, name];
859
861
  newPathDirLink.setChild(link.getName(), link);
@@ -888,7 +890,7 @@
888
890
  i = 0;
889
891
  }
890
892
  curr = this.getResolvedLinkOrThrow(
891
- sep + steps.slice(0, i).join(sep),
893
+ path_1.sep + steps.slice(0, i).join(path_1.sep),
892
894
  "mkdir",
893
895
  );
894
896
  for (i; i < steps.length; i++) {
@@ -934,7 +936,6 @@
934
936
  };
935
937
  const root = this.createLink();
936
938
  root.setNode(this.createNode(constants_1.constants.S_IFDIR | 511));
937
- const self = this;
938
939
  root.setChild(".", root);
939
940
  root.getNode().nlink++;
940
941
  root.setChild("..", root);
@@ -1000,13 +1001,13 @@
1000
1001
  let filename;
1001
1002
  if (stepsOrFilenameOrLink instanceof Link_1.Link) {
1002
1003
  steps = stepsOrFilenameOrLink.steps;
1003
- filename = sep + steps.join(sep);
1004
+ filename = pathSep + steps.join(pathSep);
1004
1005
  } else if (typeof stepsOrFilenameOrLink === "string") {
1005
1006
  steps = (0, util_2.filenameToSteps)(stepsOrFilenameOrLink);
1006
1007
  filename = stepsOrFilenameOrLink;
1007
1008
  } else {
1008
1009
  steps = stepsOrFilenameOrLink;
1009
- filename = sep + steps.join(sep);
1010
+ filename = pathSep + steps.join(pathSep);
1010
1011
  }
1011
1012
  let curr = this.root;
1012
1013
  let i = 0;
@@ -1027,9 +1028,9 @@
1027
1028
  else return null;
1028
1029
  node = curr?.getNode();
1029
1030
  if (node.isSymlink() && (resolveSymlinks || i < steps.length - 1)) {
1030
- const resolvedPath = NodePath.isAbsolute(node.symlink)
1031
+ const resolvedPath = (0, path_1.isAbsolute)(node.symlink)
1031
1032
  ? node.symlink
1032
- : join(NodePath.dirname(curr.getPath()), node.symlink);
1033
+ : pathJoin((0, path_1.dirname)(curr.getPath()), node.symlink);
1033
1034
  steps = (0, util_2.filenameToSteps)(resolvedPath).concat(
1034
1035
  steps.slice(i + 1),
1035
1036
  );
@@ -1076,7 +1077,7 @@
1076
1077
  ? filenameOrSteps
1077
1078
  : (0, util_2.filenameToSteps)(filenameOrSteps)
1078
1079
  ).slice(0, -1);
1079
- const filename = sep + steps.join(sep);
1080
+ const filename = pathSep + steps.join(pathSep);
1080
1081
  const link = this.getLinkOrThrow(filename, funcName);
1081
1082
  if (!link.getNode().isDirectory())
1082
1083
  throw (0, util_1.createError)("ENOTDIR", funcName, filename);
@@ -1112,14 +1113,14 @@
1112
1113
  const node = child.getNode();
1113
1114
  if (node.isFile()) {
1114
1115
  let filename = child.getPath();
1115
- if (path) filename = relative(path, filename);
1116
+ if (path) filename = pathRelative(path, filename);
1116
1117
  json[filename] = asBuffer ? node.getBuffer() : node.getString();
1117
1118
  } else if (node.isDirectory()) {
1118
1119
  this._toJSON(child, json, path, asBuffer);
1119
1120
  }
1120
1121
  }
1121
1122
  let dirPath = link.getPath();
1122
- if (path) dirPath = relative(path, dirPath);
1123
+ if (path) dirPath = pathRelative(path, dirPath);
1123
1124
  if (dirPath && isEmpty) {
1124
1125
  json[dirPath] = null;
1125
1126
  }
@@ -1153,7 +1154,7 @@
1153
1154
  const data = json[filename];
1154
1155
  filename = (0, util_2.resolve)(filename, cwd);
1155
1156
  if (typeof data === "string" || data instanceof buffer_1.Buffer) {
1156
- const dir = dirname(filename);
1157
+ const dir = (0, path_1.dirname)(filename);
1157
1158
  this.mkdirp(dir, 511);
1158
1159
  const buffer = (0, util_2.dataToBuffer)(data);
1159
1160
  this.writeFile(filename, buffer, constants_2.FLAGS.w, 438);
@@ -1227,8 +1228,8 @@
1227
1228
  throw (0, util_1.createError)("EEXIST", "open", filename);
1228
1229
  } catch (err) {
1229
1230
  if (err.code === "ENOENT" && flagsNum & O_CREAT) {
1230
- const dirname = NodePath.dirname(filename);
1231
- const dirLink = this.getResolvedLinkOrThrow(dirname);
1231
+ const dirName = (0, path_1.dirname)(filename);
1232
+ const dirLink = this.getResolvedLinkOrThrow(dirName);
1232
1233
  const dirNode = dirLink.getNode();
1233
1234
  if (!dirNode.isDirectory())
1234
1235
  throw (0, util_1.createError)("ENOTDIR", "open", filename);
@@ -1274,35 +1275,35 @@
1274
1275
  exports.Superblock = Superblock;
1275
1276
  Superblock.fd = 2147483647;
1276
1277
  },
1277
- 550: (__unused_webpack_module, exports, __nccwpck_require__) => {
1278
+ 973: (__unused_webpack_module, exports, __nccwpck_require__) => {
1278
1279
  "use strict";
1279
1280
  Object.defineProperty(exports, "__esModule", { value: true });
1280
1281
  exports.Superblock = exports.File = exports.Link = exports.Node = void 0;
1281
1282
  const tslib_1 = __nccwpck_require__(477);
1282
- tslib_1.__exportStar(__nccwpck_require__(675), exports);
1283
- tslib_1.__exportStar(__nccwpck_require__(398), exports);
1284
- var Node_1 = __nccwpck_require__(900);
1283
+ tslib_1.__exportStar(__nccwpck_require__(876), exports);
1284
+ tslib_1.__exportStar(__nccwpck_require__(511), exports);
1285
+ var Node_1 = __nccwpck_require__(493);
1285
1286
  Object.defineProperty(exports, "Node", {
1286
1287
  enumerable: true,
1287
1288
  get: function () {
1288
1289
  return Node_1.Node;
1289
1290
  },
1290
1291
  });
1291
- var Link_1 = __nccwpck_require__(480);
1292
+ var Link_1 = __nccwpck_require__(193);
1292
1293
  Object.defineProperty(exports, "Link", {
1293
1294
  enumerable: true,
1294
1295
  get: function () {
1295
1296
  return Link_1.Link;
1296
1297
  },
1297
1298
  });
1298
- var File_1 = __nccwpck_require__(162);
1299
+ var File_1 = __nccwpck_require__(943);
1299
1300
  Object.defineProperty(exports, "File", {
1300
1301
  enumerable: true,
1301
1302
  get: function () {
1302
1303
  return File_1.File;
1303
1304
  },
1304
1305
  });
1305
- var Superblock_1 = __nccwpck_require__(156);
1306
+ var Superblock_1 = __nccwpck_require__(141);
1306
1307
  Object.defineProperty(exports, "Superblock", {
1307
1308
  enumerable: true,
1308
1309
  get: function () {
@@ -1310,19 +1311,19 @@
1310
1311
  },
1311
1312
  });
1312
1313
  },
1313
- 398: (__unused_webpack_module, exports, __nccwpck_require__) => {
1314
+ 511: (__unused_webpack_module, exports, __nccwpck_require__) => {
1314
1315
  "use strict";
1315
1316
  Object.defineProperty(exports, "__esModule", { value: true });
1316
1317
  exports.flattenJSON = void 0;
1317
- const buffer_1 = __nccwpck_require__(796);
1318
- const pathModule = __nccwpck_require__(760);
1319
- const { join } = pathModule.posix ? pathModule.posix : pathModule;
1318
+ const buffer_1 = __nccwpck_require__(913);
1319
+ const path_1 = __nccwpck_require__(606);
1320
+ const pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
1320
1321
  const flattenJSON = (nestedJSON) => {
1321
1322
  const flatJSON = {};
1322
1323
  function flatten(pathPrefix, node) {
1323
1324
  for (const path in node) {
1324
1325
  const contentOrNode = node[path];
1325
- const joinedPath = join(pathPrefix, path);
1326
+ const joinedPath = pathJoin(pathPrefix, path);
1326
1327
  if (
1327
1328
  typeof contentOrNode === "string" ||
1328
1329
  contentOrNode instanceof buffer_1.Buffer
@@ -1345,11 +1346,11 @@
1345
1346
  };
1346
1347
  exports.flattenJSON = flattenJSON;
1347
1348
  },
1348
- 675: (__unused_webpack_module, exports) => {
1349
+ 876: (__unused_webpack_module, exports) => {
1349
1350
  "use strict";
1350
1351
  Object.defineProperty(exports, "__esModule", { value: true });
1351
1352
  },
1352
- 616: (__unused_webpack_module, exports, __nccwpck_require__) => {
1353
+ 37: (__unused_webpack_module, exports, __nccwpck_require__) => {
1353
1354
  "use strict";
1354
1355
  Object.defineProperty(exports, "__esModule", { value: true });
1355
1356
  exports.filenameToSteps =
@@ -1360,14 +1361,14 @@
1360
1361
  exports.isFd = isFd;
1361
1362
  exports.validateFd = validateFd;
1362
1363
  exports.dataToBuffer = dataToBuffer;
1363
- const pathModule = __nccwpck_require__(760);
1364
- const buffer_1 = __nccwpck_require__(796);
1365
- const process_1 = __nccwpck_require__(225);
1366
- const encoding_1 = __nccwpck_require__(979);
1367
- const constants_1 = __nccwpck_require__(0);
1364
+ const path_1 = __nccwpck_require__(606);
1365
+ const buffer_1 = __nccwpck_require__(913);
1366
+ const process_1 = __nccwpck_require__(132);
1367
+ const encoding_1 = __nccwpck_require__(688);
1368
+ const constants_1 = __nccwpck_require__(379);
1368
1369
  exports.isWin = process_1.default.platform === "win32";
1369
- const resolveCrossPlatform = pathModule.resolve;
1370
- const { sep } = pathModule.posix ? pathModule.posix : pathModule;
1370
+ const resolveCrossPlatform = path_1.resolve;
1371
+ const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
1371
1372
  const isSeparator = (str, i) => {
1372
1373
  let char = str[i];
1373
1374
  return i > 0 && (char === "/" || (exports.isWin && char === "\\"));
@@ -1404,7 +1405,7 @@
1404
1405
  const fullPath = resolve(filename, base);
1405
1406
  const fullPathSansSlash = fullPath.substring(1);
1406
1407
  if (!fullPathSansSlash) return [];
1407
- return fullPathSansSlash.split(sep);
1408
+ return fullPathSansSlash.split(pathSep);
1408
1409
  };
1409
1410
  exports.filenameToSteps = filenameToSteps;
1410
1411
  function isFd(path) {
@@ -1422,14 +1423,14 @@
1422
1423
  else return (0, buffer_1.bufferFrom)(String(data), encoding);
1423
1424
  }
1424
1425
  },
1425
- 979: (__unused_webpack_module, exports, __nccwpck_require__) => {
1426
+ 688: (__unused_webpack_module, exports, __nccwpck_require__) => {
1426
1427
  "use strict";
1427
1428
  Object.defineProperty(exports, "__esModule", { value: true });
1428
1429
  exports.ENCODING_UTF8 = void 0;
1429
1430
  exports.assertEncoding = assertEncoding;
1430
1431
  exports.strToEncoding = strToEncoding;
1431
- const buffer_1 = __nccwpck_require__(796);
1432
- const errors = __nccwpck_require__(421);
1432
+ const buffer_1 = __nccwpck_require__(913);
1433
+ const errors = __nccwpck_require__(891);
1433
1434
  exports.ENCODING_UTF8 = "utf8";
1434
1435
  function assertEncoding(encoding) {
1435
1436
  if (encoding && !buffer_1.Buffer.isEncoding(encoding))
@@ -1444,23 +1445,23 @@
1444
1445
  return new buffer_1.Buffer(str).toString(encoding);
1445
1446
  }
1446
1447
  },
1447
- 356: (module, exports, __nccwpck_require__) => {
1448
+ 905: (module, exports, __nccwpck_require__) => {
1448
1449
  "use strict";
1449
1450
  Object.defineProperty(exports, "__esModule", { value: true });
1450
1451
  exports.memfs = exports.fs = exports.vol = exports.Volume = void 0;
1451
1452
  exports.createFsFromVolume = createFsFromVolume;
1452
- const Stats_1 = __nccwpck_require__(970);
1453
- const Dirent_1 = __nccwpck_require__(321);
1454
- const volume_1 = __nccwpck_require__(59);
1453
+ const Stats_1 = __nccwpck_require__(337);
1454
+ const Dirent_1 = __nccwpck_require__(164);
1455
+ const volume_1 = __nccwpck_require__(230);
1455
1456
  Object.defineProperty(exports, "Volume", {
1456
1457
  enumerable: true,
1457
1458
  get: function () {
1458
1459
  return volume_1.Volume;
1459
1460
  },
1460
1461
  });
1461
- const constants_1 = __nccwpck_require__(537);
1462
- const fsSynchronousApiList_1 = __nccwpck_require__(213);
1463
- const fsCallbackApiList_1 = __nccwpck_require__(107);
1462
+ const constants_1 = __nccwpck_require__(272);
1463
+ const fsSynchronousApiList_1 = __nccwpck_require__(594);
1464
+ const fsCallbackApiList_1 = __nccwpck_require__(32);
1464
1465
  const { F_OK, R_OK, W_OK, X_OK } = constants_1.constants;
1465
1466
  exports.vol = new volume_1.Volume();
1466
1467
  function createFsFromVolume(vol) {
@@ -1510,311 +1511,7 @@
1510
1511
  module.exports = { ...module.exports, ...exports.fs };
1511
1512
  module.exports.semantic = true;
1512
1513
  },
1513
- 796: (__unused_webpack_module, exports, __nccwpck_require__) => {
1514
- "use strict";
1515
- Object.defineProperty(exports, "__esModule", { value: true });
1516
- exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
1517
- const node_buffer_1 = __nccwpck_require__(573);
1518
- Object.defineProperty(exports, "Buffer", {
1519
- enumerable: true,
1520
- get: function () {
1521
- return node_buffer_1.Buffer;
1522
- },
1523
- });
1524
- function bufferV0P12Ponyfill(arg0, ...args) {
1525
- return new node_buffer_1.Buffer(arg0, ...args);
1526
- }
1527
- const bufferAllocUnsafe =
1528
- node_buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
1529
- exports.bufferAllocUnsafe = bufferAllocUnsafe;
1530
- const bufferFrom = node_buffer_1.Buffer.from || bufferV0P12Ponyfill;
1531
- exports.bufferFrom = bufferFrom;
1532
- },
1533
- 421: (__unused_webpack_module, exports, __nccwpck_require__) => {
1534
- "use strict";
1535
- Object.defineProperty(exports, "__esModule", { value: true });
1536
- exports.AssertionError =
1537
- exports.RangeError =
1538
- exports.TypeError =
1539
- exports.Error =
1540
- void 0;
1541
- exports.message = message;
1542
- exports.E = E;
1543
- const assert = __nccwpck_require__(613);
1544
- const util = __nccwpck_require__(975);
1545
- const kCode = typeof Symbol === "undefined" ? "_kCode" : Symbol("code");
1546
- const messages = {};
1547
- function makeNodeError(Base) {
1548
- return class NodeError extends Base {
1549
- constructor(key, ...args) {
1550
- super(message(key, args));
1551
- this.code = key;
1552
- this[kCode] = key;
1553
- this.name = `${super.name} [${this[kCode]}]`;
1554
- }
1555
- };
1556
- }
1557
- const g = typeof globalThis !== "undefined" ? globalThis : global;
1558
- class AssertionError extends g.Error {
1559
- constructor(options) {
1560
- if (typeof options !== "object" || options === null) {
1561
- throw new exports.TypeError(
1562
- "ERR_INVALID_ARG_TYPE",
1563
- "options",
1564
- "object",
1565
- );
1566
- }
1567
- if (options.message) {
1568
- super(options.message);
1569
- } else {
1570
- super(
1571
- `${util.inspect(options.actual).slice(0, 128)} ` +
1572
- `${options.operator} ${util.inspect(options.expected).slice(0, 128)}`,
1573
- );
1574
- }
1575
- this.generatedMessage = !options.message;
1576
- this.name = "AssertionError [ERR_ASSERTION]";
1577
- this.code = "ERR_ASSERTION";
1578
- this.actual = options.actual;
1579
- this.expected = options.expected;
1580
- this.operator = options.operator;
1581
- exports.Error.captureStackTrace(this, options.stackStartFunction);
1582
- }
1583
- }
1584
- exports.AssertionError = AssertionError;
1585
- function message(key, args) {
1586
- assert.strictEqual(typeof key, "string");
1587
- const msg = messages[key];
1588
- assert(msg, `An invalid error message key was used: ${key}.`);
1589
- let fmt;
1590
- if (typeof msg === "function") {
1591
- fmt = msg;
1592
- } else {
1593
- fmt = util.format;
1594
- if (args === undefined || args.length === 0) return msg;
1595
- args.unshift(msg);
1596
- }
1597
- return String(fmt.apply(null, args));
1598
- }
1599
- function E(sym, val) {
1600
- messages[sym] = typeof val === "function" ? val : String(val);
1601
- }
1602
- exports.Error = makeNodeError(g.Error);
1603
- exports.TypeError = makeNodeError(g.TypeError);
1604
- exports.RangeError = makeNodeError(g.RangeError);
1605
- E("ERR_ARG_NOT_ITERABLE", "%s must be iterable");
1606
- E("ERR_ASSERTION", "%s");
1607
- E("ERR_BUFFER_OUT_OF_BOUNDS", bufferOutOfBounds);
1608
- E("ERR_CHILD_CLOSED_BEFORE_REPLY", "Child closed before reply received");
1609
- E(
1610
- "ERR_CONSOLE_WRITABLE_STREAM",
1611
- "Console expects a writable stream instance for %s",
1612
- );
1613
- E("ERR_CPU_USAGE", "Unable to obtain cpu usage %s");
1614
- E(
1615
- "ERR_DNS_SET_SERVERS_FAILED",
1616
- (err, servers) => `c-ares failed to set servers: "${err}" [${servers}]`,
1617
- );
1618
- E("ERR_FALSY_VALUE_REJECTION", "Promise was rejected with falsy value");
1619
- E(
1620
- "ERR_ENCODING_NOT_SUPPORTED",
1621
- (enc) => `The "${enc}" encoding is not supported`,
1622
- );
1623
- E(
1624
- "ERR_ENCODING_INVALID_ENCODED_DATA",
1625
- (enc) => `The encoded data was not valid for encoding ${enc}`,
1626
- );
1627
- E(
1628
- "ERR_HTTP_HEADERS_SENT",
1629
- "Cannot render headers after they are sent to the client",
1630
- );
1631
- E("ERR_HTTP_INVALID_STATUS_CODE", "Invalid status code: %s");
1632
- E(
1633
- "ERR_HTTP_TRAILER_INVALID",
1634
- "Trailers are invalid with this transfer encoding",
1635
- );
1636
- E("ERR_INDEX_OUT_OF_RANGE", "Index out of range");
1637
- E("ERR_INVALID_ARG_TYPE", invalidArgType);
1638
- E("ERR_INVALID_ARRAY_LENGTH", (name, len, actual) => {
1639
- assert.strictEqual(typeof actual, "number");
1640
- return `The array "${name}" (length ${actual}) must be of length ${len}.`;
1641
- });
1642
- E("ERR_INVALID_BUFFER_SIZE", "Buffer size must be a multiple of %s");
1643
- E("ERR_INVALID_CALLBACK", "Callback must be a function");
1644
- E("ERR_INVALID_CHAR", "Invalid character in %s");
1645
- E(
1646
- "ERR_INVALID_CURSOR_POS",
1647
- "Cannot set cursor row without setting its column",
1648
- );
1649
- E("ERR_INVALID_FD", '"fd" must be a positive integer: %s');
1650
- E(
1651
- "ERR_INVALID_FILE_URL_HOST",
1652
- 'File URL host must be "localhost" or empty on %s',
1653
- );
1654
- E("ERR_INVALID_FILE_URL_PATH", "File URL path %s");
1655
- E("ERR_INVALID_HANDLE_TYPE", "This handle type cannot be sent");
1656
- E("ERR_INVALID_IP_ADDRESS", "Invalid IP address: %s");
1657
- E(
1658
- "ERR_INVALID_OPT_VALUE",
1659
- (name, value) =>
1660
- `The value "${String(value)}" is invalid for option "${name}"`,
1661
- );
1662
- E(
1663
- "ERR_INVALID_OPT_VALUE_ENCODING",
1664
- (value) =>
1665
- `The value "${String(value)}" is invalid for option "encoding"`,
1666
- );
1667
- E(
1668
- "ERR_INVALID_REPL_EVAL_CONFIG",
1669
- 'Cannot specify both "breakEvalOnSigint" and "eval" for REPL',
1670
- );
1671
- E(
1672
- "ERR_INVALID_SYNC_FORK_INPUT",
1673
- "Asynchronous forks do not support Buffer, Uint8Array or string input: %s",
1674
- );
1675
- E("ERR_INVALID_THIS", 'Value of "this" must be of type %s');
1676
- E("ERR_INVALID_TUPLE", "%s must be an iterable %s tuple");
1677
- E("ERR_INVALID_URL", "Invalid URL: %s");
1678
- E(
1679
- "ERR_INVALID_URL_SCHEME",
1680
- (expected) => `The URL must be ${oneOf(expected, "scheme")}`,
1681
- );
1682
- E("ERR_IPC_CHANNEL_CLOSED", "Channel closed");
1683
- E("ERR_IPC_DISCONNECTED", "IPC channel is already disconnected");
1684
- E("ERR_IPC_ONE_PIPE", "Child process can have only one IPC pipe");
1685
- E("ERR_IPC_SYNC_FORK", "IPC cannot be used with synchronous forks");
1686
- E("ERR_MISSING_ARGS", missingArgs);
1687
- E("ERR_MULTIPLE_CALLBACK", "Callback called multiple times");
1688
- E("ERR_NAPI_CONS_FUNCTION", "Constructor must be a function");
1689
- E(
1690
- "ERR_NAPI_CONS_PROTOTYPE_OBJECT",
1691
- "Constructor.prototype must be an object",
1692
- );
1693
- E("ERR_NO_CRYPTO", "Node.js is not compiled with OpenSSL crypto support");
1694
- E("ERR_NO_LONGER_SUPPORTED", "%s is no longer supported");
1695
- E("ERR_PARSE_HISTORY_DATA", "Could not parse history data in %s");
1696
- E("ERR_SOCKET_ALREADY_BOUND", "Socket is already bound");
1697
- E("ERR_SOCKET_BAD_PORT", "Port should be > 0 and < 65536");
1698
- E(
1699
- "ERR_SOCKET_BAD_TYPE",
1700
- "Bad socket type specified. Valid types are: udp4, udp6",
1701
- );
1702
- E("ERR_SOCKET_CANNOT_SEND", "Unable to send data");
1703
- E("ERR_SOCKET_CLOSED", "Socket is closed");
1704
- E("ERR_SOCKET_DGRAM_NOT_RUNNING", "Not running");
1705
- E("ERR_STDERR_CLOSE", "process.stderr cannot be closed");
1706
- E("ERR_STDOUT_CLOSE", "process.stdout cannot be closed");
1707
- E("ERR_STREAM_WRAP", "Stream has StringDecoder set or is in objectMode");
1708
- E(
1709
- "ERR_TLS_CERT_ALTNAME_INVALID",
1710
- "Hostname/IP does not match certificate's altnames: %s",
1711
- );
1712
- E(
1713
- "ERR_TLS_DH_PARAM_SIZE",
1714
- (size) => `DH parameter size ${size} is less than 2048`,
1715
- );
1716
- E("ERR_TLS_HANDSHAKE_TIMEOUT", "TLS handshake timeout");
1717
- E("ERR_TLS_RENEGOTIATION_FAILED", "Failed to renegotiate");
1718
- E(
1719
- "ERR_TLS_REQUIRED_SERVER_NAME",
1720
- '"servername" is required parameter for Server.addContext',
1721
- );
1722
- E("ERR_TLS_SESSION_ATTACK", "TSL session renegotiation attack detected");
1723
- E(
1724
- "ERR_TRANSFORM_ALREADY_TRANSFORMING",
1725
- "Calling transform done when still transforming",
1726
- );
1727
- E(
1728
- "ERR_TRANSFORM_WITH_LENGTH_0",
1729
- "Calling transform done when writableState.length != 0",
1730
- );
1731
- E("ERR_UNKNOWN_ENCODING", "Unknown encoding: %s");
1732
- E("ERR_UNKNOWN_SIGNAL", "Unknown signal: %s");
1733
- E("ERR_UNKNOWN_STDIN_TYPE", "Unknown stdin file type");
1734
- E("ERR_UNKNOWN_STREAM_TYPE", "Unknown stream file type");
1735
- E(
1736
- "ERR_V8BREAKITERATOR",
1737
- "Full ICU data not installed. " +
1738
- "See https://github.com/nodejs/node/wiki/Intl",
1739
- );
1740
- E("ERR_DIR_CLOSED", "Directory handle was closed");
1741
- E(
1742
- "ERR_DIR_CONCURRENT_OPERATION",
1743
- "Cannot do synchronous work on directory handle with concurrent asynchronous operations",
1744
- );
1745
- function invalidArgType(name, expected, actual) {
1746
- assert(name, "name is required");
1747
- let determiner;
1748
- if (expected.includes("not ")) {
1749
- determiner = "must not be";
1750
- expected = expected.split("not ")[1];
1751
- } else {
1752
- determiner = "must be";
1753
- }
1754
- let msg;
1755
- if (Array.isArray(name)) {
1756
- const names = name.map((val) => `"${val}"`).join(", ");
1757
- msg = `The ${names} arguments ${determiner} ${oneOf(expected, "type")}`;
1758
- } else if (name.includes(" argument")) {
1759
- msg = `The ${name} ${determiner} ${oneOf(expected, "type")}`;
1760
- } else {
1761
- const type = name.includes(".") ? "property" : "argument";
1762
- msg = `The "${name}" ${type} ${determiner} ${oneOf(expected, "type")}`;
1763
- }
1764
- if (arguments.length >= 3) {
1765
- msg += `. Received type ${actual !== null ? typeof actual : "null"}`;
1766
- }
1767
- return msg;
1768
- }
1769
- function missingArgs(...args) {
1770
- assert(args.length > 0, "At least one arg needs to be specified");
1771
- let msg = "The ";
1772
- const len = args.length;
1773
- args = args.map((a) => `"${a}"`);
1774
- switch (len) {
1775
- case 1:
1776
- msg += `${args[0]} argument`;
1777
- break;
1778
- case 2:
1779
- msg += `${args[0]} and ${args[1]} arguments`;
1780
- break;
1781
- default:
1782
- msg += args.slice(0, len - 1).join(", ");
1783
- msg += `, and ${args[len - 1]} arguments`;
1784
- break;
1785
- }
1786
- return `${msg} must be specified`;
1787
- }
1788
- function oneOf(expected, thing) {
1789
- assert(expected, "expected is required");
1790
- assert(typeof thing === "string", "thing is required");
1791
- if (Array.isArray(expected)) {
1792
- const len = expected.length;
1793
- assert(len > 0, "At least one expected value needs to be specified");
1794
- expected = expected.map((i) => String(i));
1795
- if (len > 2) {
1796
- return (
1797
- `one of ${thing} ${expected.slice(0, len - 1).join(", ")}, or ` +
1798
- expected[len - 1]
1799
- );
1800
- } else if (len === 2) {
1801
- return `one of ${thing} ${expected[0]} or ${expected[1]}`;
1802
- } else {
1803
- return `of ${thing} ${expected[0]}`;
1804
- }
1805
- } else {
1806
- return `of ${thing} ${String(expected)}`;
1807
- }
1808
- }
1809
- function bufferOutOfBounds(name, isWriting) {
1810
- if (isWriting) {
1811
- return "Attempt to write outside buffer bounds";
1812
- } else {
1813
- return `"${name}" is outside of buffer bounds`;
1814
- }
1815
- }
1816
- },
1817
- 775: (__unused_webpack_module, exports) => {
1514
+ 415: (__unused_webpack_module, exports) => {
1818
1515
  "use strict";
1819
1516
  Object.defineProperty(exports, "__esModule", { value: true });
1820
1517
  exports.newNotAllowedError =
@@ -1871,13 +1568,13 @@
1871
1568
  new DOMException("Permission not granted.", "NotAllowedError");
1872
1569
  exports.newNotAllowedError = newNotAllowedError;
1873
1570
  },
1874
- 122: (__unused_webpack_module, exports, __nccwpck_require__) => {
1571
+ 525: (__unused_webpack_module, exports, __nccwpck_require__) => {
1875
1572
  "use strict";
1876
1573
  Object.defineProperty(exports, "__esModule", { value: true });
1877
1574
  exports.Dir = void 0;
1878
- const util_1 = __nccwpck_require__(169);
1879
- const Dirent_1 = __nccwpck_require__(321);
1880
- const errors = __nccwpck_require__(421);
1575
+ const util_1 = __nccwpck_require__(44);
1576
+ const Dirent_1 = __nccwpck_require__(164);
1577
+ const errors = __nccwpck_require__(891);
1881
1578
  class Dir {
1882
1579
  constructor(link, options) {
1883
1580
  this.link = link;
@@ -2029,12 +1726,12 @@
2029
1726
  }
2030
1727
  exports.Dir = Dir;
2031
1728
  },
2032
- 321: (__unused_webpack_module, exports, __nccwpck_require__) => {
1729
+ 164: (__unused_webpack_module, exports, __nccwpck_require__) => {
2033
1730
  "use strict";
2034
1731
  Object.defineProperty(exports, "__esModule", { value: true });
2035
1732
  exports.Dirent = void 0;
2036
- const constants_1 = __nccwpck_require__(537);
2037
- const encoding_1 = __nccwpck_require__(979);
1733
+ const constants_1 = __nccwpck_require__(272);
1734
+ const encoding_1 = __nccwpck_require__(688);
2038
1735
  const {
2039
1736
  S_IFMT,
2040
1737
  S_IFDIR,
@@ -2089,13 +1786,13 @@
2089
1786
  exports.Dirent = Dirent;
2090
1787
  exports["default"] = Dirent;
2091
1788
  },
2092
- 205: (__unused_webpack_module, exports, __nccwpck_require__) => {
1789
+ 376: (__unused_webpack_module, exports, __nccwpck_require__) => {
2093
1790
  "use strict";
2094
1791
  Object.defineProperty(exports, "__esModule", { value: true });
2095
1792
  exports.FileHandle = void 0;
2096
- const util_1 = __nccwpck_require__(169);
2097
- const node_events_1 = __nccwpck_require__(474);
2098
- class FileHandle extends node_events_1.EventEmitter {
1793
+ const util_1 = __nccwpck_require__(44);
1794
+ const events_1 = __nccwpck_require__(104);
1795
+ class FileHandle extends events_1.EventEmitter {
2099
1796
  constructor(fs, fd) {
2100
1797
  super();
2101
1798
  this.refs = 1;
@@ -2316,12 +2013,12 @@
2316
2013
  }
2317
2014
  exports.FileHandle = FileHandle;
2318
2015
  },
2319
- 472: (__unused_webpack_module, exports, __nccwpck_require__) => {
2016
+ 229: (__unused_webpack_module, exports, __nccwpck_require__) => {
2320
2017
  "use strict";
2321
2018
  Object.defineProperty(exports, "__esModule", { value: true });
2322
2019
  exports.FsPromises = void 0;
2323
- const util_1 = __nccwpck_require__(169);
2324
- const constants_1 = __nccwpck_require__(537);
2020
+ const util_1 = __nccwpck_require__(44);
2021
+ const constants_1 = __nccwpck_require__(272);
2325
2022
  class FSWatchAsyncIterator {
2326
2023
  constructor(fs, path, options = {}) {
2327
2024
  this.fs = fs;
@@ -2491,7 +2188,7 @@
2491
2188
  }
2492
2189
  exports.FsPromises = FsPromises;
2493
2190
  },
2494
- 632: (__unused_webpack_module, exports) => {
2191
+ 357: (__unused_webpack_module, exports) => {
2495
2192
  "use strict";
2496
2193
  Object.defineProperty(exports, "__esModule", { value: true });
2497
2194
  exports.StatFs = void 0;
@@ -2519,11 +2216,11 @@
2519
2216
  exports.StatFs = StatFs;
2520
2217
  exports["default"] = StatFs;
2521
2218
  },
2522
- 970: (__unused_webpack_module, exports, __nccwpck_require__) => {
2219
+ 337: (__unused_webpack_module, exports, __nccwpck_require__) => {
2523
2220
  "use strict";
2524
2221
  Object.defineProperty(exports, "__esModule", { value: true });
2525
2222
  exports.Stats = void 0;
2526
- const constants_1 = __nccwpck_require__(537);
2223
+ const constants_1 = __nccwpck_require__(272);
2527
2224
  const {
2528
2225
  S_IFMT,
2529
2226
  S_IFDIR,
@@ -2597,11 +2294,11 @@
2597
2294
  exports.Stats = Stats;
2598
2295
  exports["default"] = Stats;
2599
2296
  },
2600
- 0: (__unused_webpack_module, exports, __nccwpck_require__) => {
2297
+ 379: (__unused_webpack_module, exports, __nccwpck_require__) => {
2601
2298
  "use strict";
2602
2299
  Object.defineProperty(exports, "__esModule", { value: true });
2603
2300
  exports.FLAGS = exports.ERRSTR = void 0;
2604
- const constants_1 = __nccwpck_require__(537);
2301
+ const constants_1 = __nccwpck_require__(272);
2605
2302
  exports.ERRSTR = {
2606
2303
  PATH_STR: "path must be a string, Buffer, or Uint8Array",
2607
2304
  FD: "fd must be a file descriptor",
@@ -2650,14 +2347,16 @@
2650
2347
  FLAGS[(FLAGS["xa+"] = FLAGS["ax+"])] = "xa+";
2651
2348
  })(FLAGS || (exports.FLAGS = FLAGS = {}));
2652
2349
  },
2653
- 519: (__unused_webpack_module, exports, __nccwpck_require__) => {
2350
+ 6: (__unused_webpack_module, exports, __nccwpck_require__) => {
2654
2351
  "use strict";
2655
2352
  Object.defineProperty(exports, "__esModule", { value: true });
2656
2353
  exports.globSync = globSync;
2657
- const pathModule = __nccwpck_require__(760);
2354
+ const path_1 = __nccwpck_require__(606);
2658
2355
  const glob_to_regex_js_1 = __nccwpck_require__(728);
2659
- const util_1 = __nccwpck_require__(169);
2660
- const { join, relative, resolve } = pathModule.posix;
2356
+ const util_1 = __nccwpck_require__(44);
2357
+ const pathJoin = path_1.posix.join;
2358
+ const pathRelative = path_1.posix.relative;
2359
+ const pathResolve = path_1.posix.resolve;
2661
2360
  function matchesPattern(path, pattern) {
2662
2361
  const regex = (0, glob_to_regex_js_1.toRegex)(pattern);
2663
2362
  return regex.test(path);
@@ -2682,8 +2381,8 @@
2682
2381
  try {
2683
2382
  const entries = fs.readdirSync(dir, { withFileTypes: true });
2684
2383
  for (const entry of entries) {
2685
- const fullPath = join(dir, entry.name.toString());
2686
- const relativePath = relative(baseCwd, fullPath);
2384
+ const fullPath = pathJoin(dir, entry.name.toString());
2385
+ const relativePath = pathRelative(baseCwd, fullPath);
2687
2386
  if (isExcluded(relativePath, options.exclude)) {
2688
2387
  continue;
2689
2388
  }
@@ -2711,7 +2410,7 @@
2711
2410
  const cwd = options.cwd
2712
2411
  ? (0, util_1.pathToFilename)(options.cwd)
2713
2412
  : process.cwd();
2714
- const resolvedCwd = resolve(cwd);
2413
+ const resolvedCwd = pathResolve(cwd);
2715
2414
  const globOptions = {
2716
2415
  cwd: resolvedCwd,
2717
2416
  exclude: options.exclude,
@@ -2719,16 +2418,14 @@
2719
2418
  withFileTypes: options.withFileTypes || false,
2720
2419
  };
2721
2420
  let results = [];
2722
- if (pathModule.posix.isAbsolute(pattern)) {
2723
- const dir = pathModule.posix.dirname(pattern);
2724
- const basename = pathModule.posix.basename(pattern);
2725
- const dirResults = walkDirectory(fs, dir, [basename], {
2421
+ if (path_1.posix.isAbsolute(pattern)) {
2422
+ const dir = path_1.posix.dirname(pattern);
2423
+ const patternBasename = path_1.posix.basename(pattern);
2424
+ const dirResults = walkDirectory(fs, dir, [patternBasename], {
2726
2425
  ...globOptions,
2727
2426
  cwd: dir,
2728
2427
  });
2729
- results.push(
2730
- ...dirResults.map((r) => pathModule.posix.resolve(dir, r)),
2731
- );
2428
+ results.push(...dirResults.map((r) => path_1.posix.resolve(dir, r)));
2732
2429
  } else {
2733
2430
  const dirResults = walkDirectory(
2734
2431
  fs,
@@ -2742,7 +2439,7 @@
2742
2439
  return results;
2743
2440
  }
2744
2441
  },
2745
- 107: (__unused_webpack_module, exports) => {
2442
+ 32: (__unused_webpack_module, exports) => {
2746
2443
  "use strict";
2747
2444
  Object.defineProperty(exports, "__esModule", { value: true });
2748
2445
  exports.fsCallbackApiList = void 0;
@@ -2797,7 +2494,7 @@
2797
2494
  "writeFile",
2798
2495
  ];
2799
2496
  },
2800
- 213: (__unused_webpack_module, exports) => {
2497
+ 594: (__unused_webpack_module, exports) => {
2801
2498
  "use strict";
2802
2499
  Object.defineProperty(exports, "__esModule", { value: true });
2803
2500
  exports.fsSynchronousApiList = void 0;
@@ -2844,7 +2541,7 @@
2844
2541
  "writevSync",
2845
2542
  ];
2846
2543
  },
2847
- 579: (__unused_webpack_module, exports, __nccwpck_require__) => {
2544
+ 180: (__unused_webpack_module, exports, __nccwpck_require__) => {
2848
2545
  "use strict";
2849
2546
  Object.defineProperty(exports, "__esModule", { value: true });
2850
2547
  exports.getWriteFileOptions =
@@ -2872,9 +2569,9 @@
2872
2569
  exports.getOptions = getOptions;
2873
2570
  exports.optsGenerator = optsGenerator;
2874
2571
  exports.optsAndCbGenerator = optsAndCbGenerator;
2875
- const constants_1 = __nccwpck_require__(0);
2876
- const encoding_1 = __nccwpck_require__(979);
2877
- const util_1 = __nccwpck_require__(169);
2572
+ const constants_1 = __nccwpck_require__(379);
2573
+ const encoding_1 = __nccwpck_require__(688);
2574
+ const util_1 = __nccwpck_require__(44);
2878
2575
  const mkdirDefaults = { mode: 511, recursive: false };
2879
2576
  const getMkdirOptions = (options) => {
2880
2577
  if (typeof options === "number")
@@ -2987,7 +2684,7 @@
2987
2684
  };
2988
2685
  exports.getWriteFileOptions = optsGenerator(exports.writeFileDefaults);
2989
2686
  },
2990
- 169: (__unused_webpack_module, exports, __nccwpck_require__) => {
2687
+ 44: (__unused_webpack_module, exports, __nccwpck_require__) => {
2991
2688
  "use strict";
2992
2689
  Object.defineProperty(exports, "__esModule", { value: true });
2993
2690
  exports.getWriteSyncArgs =
@@ -3005,12 +2702,11 @@
3005
2702
  exports.streamToBuffer = streamToBuffer;
3006
2703
  exports.bufferToEncoding = bufferToEncoding;
3007
2704
  exports.isReadableStream = isReadableStream;
3008
- const constants_1 = __nccwpck_require__(0);
3009
- const errors = __nccwpck_require__(421);
3010
- const buffer_1 = __nccwpck_require__(796);
3011
- const buffer_2 = __nccwpck_require__(796);
3012
- const queueMicrotask_1 = __nccwpck_require__(38);
3013
- const util_1 = __nccwpck_require__(616);
2705
+ const constants_1 = __nccwpck_require__(379);
2706
+ const errors = __nccwpck_require__(891);
2707
+ const buffer_1 = __nccwpck_require__(913);
2708
+ const queueMicrotask_1 = __nccwpck_require__(690);
2709
+ const util_1 = __nccwpck_require__(37);
3014
2710
  function promisify(fs, fn, getResult = (input) => input) {
3015
2711
  return (...args) =>
3016
2712
  new Promise((resolve, reject) => {
@@ -3072,7 +2768,7 @@
3072
2768
  }
3073
2769
  function pathToFilename(path) {
3074
2770
  if (path instanceof Uint8Array) {
3075
- path = (0, buffer_2.bufferFrom)(path);
2771
+ path = (0, buffer_1.bufferFrom)(path);
3076
2772
  }
3077
2773
  if (typeof path !== "string" && !buffer_1.Buffer.isBuffer(path)) {
3078
2774
  try {
@@ -3267,35 +2963,36 @@
3267
2963
  );
3268
2964
  }
3269
2965
  },
3270
- 59: (__unused_webpack_module, exports, __nccwpck_require__) => {
2966
+ 230: (__unused_webpack_module, exports, __nccwpck_require__) => {
3271
2967
  "use strict";
3272
2968
  Object.defineProperty(exports, "__esModule", { value: true });
3273
2969
  exports.FSWatcher = exports.StatWatcher = exports.Volume = void 0;
3274
2970
  exports.pathToSteps = pathToSteps;
3275
2971
  exports.dataToStr = dataToStr;
3276
2972
  exports.toUnixTimestamp = toUnixTimestamp;
3277
- const pathModule = __nccwpck_require__(760);
3278
- const core_1 = __nccwpck_require__(550);
3279
- const Stats_1 = __nccwpck_require__(970);
3280
- const Dirent_1 = __nccwpck_require__(321);
3281
- const StatFs_1 = __nccwpck_require__(632);
3282
- const buffer_1 = __nccwpck_require__(796);
3283
- const queueMicrotask_1 = __nccwpck_require__(38);
3284
- const setTimeoutUnref_1 = __nccwpck_require__(697);
3285
- const node_stream_1 = __nccwpck_require__(75);
3286
- const constants_1 = __nccwpck_require__(537);
3287
- const node_events_1 = __nccwpck_require__(474);
3288
- const encoding_1 = __nccwpck_require__(979);
3289
- const FileHandle_1 = __nccwpck_require__(205);
3290
- const util = __nccwpck_require__(975);
3291
- const FsPromises_1 = __nccwpck_require__(472);
3292
- const print_1 = __nccwpck_require__(516);
3293
- const constants_2 = __nccwpck_require__(0);
3294
- const options_1 = __nccwpck_require__(579);
3295
- const util_1 = __nccwpck_require__(169);
3296
- const Dir_1 = __nccwpck_require__(122);
3297
- const util_2 = __nccwpck_require__(616);
3298
- const resolveCrossPlatform = pathModule.resolve;
2973
+ const path_1 = __nccwpck_require__(606);
2974
+ const core_1 = __nccwpck_require__(973);
2975
+ const Stats_1 = __nccwpck_require__(337);
2976
+ const Dirent_1 = __nccwpck_require__(164);
2977
+ const StatFs_1 = __nccwpck_require__(357);
2978
+ const buffer_1 = __nccwpck_require__(913);
2979
+ const queueMicrotask_1 = __nccwpck_require__(690);
2980
+ const setTimeoutUnref_1 = __nccwpck_require__(488);
2981
+ const stream_1 = __nccwpck_require__(745);
2982
+ const constants_1 = __nccwpck_require__(272);
2983
+ const events_1 = __nccwpck_require__(104);
2984
+ const encoding_1 = __nccwpck_require__(688);
2985
+ const FileHandle_1 = __nccwpck_require__(376);
2986
+ const util_1 = __nccwpck_require__(309);
2987
+ const FsPromises_1 = __nccwpck_require__(229);
2988
+ const print_1 = __nccwpck_require__(354);
2989
+ const constants_2 = __nccwpck_require__(379);
2990
+ const errors = __nccwpck_require__(891);
2991
+ const options_1 = __nccwpck_require__(180);
2992
+ const util_2 = __nccwpck_require__(44);
2993
+ const Dir_1 = __nccwpck_require__(525);
2994
+ const util_3 = __nccwpck_require__(37);
2995
+ const resolveCrossPlatform = path_1.resolve;
3299
2996
  const {
3300
2997
  O_SYMLINK,
3301
2998
  F_OK,
@@ -3305,12 +3002,18 @@
3305
3002
  COPYFILE_EXCL,
3306
3003
  COPYFILE_FICLONE_FORCE,
3307
3004
  } = constants_1.constants;
3308
- const { sep, relative, join, dirname, normalize } = pathModule.posix
3309
- ? pathModule.posix
3310
- : pathModule;
3005
+ const pathSep = path_1.posix ? path_1.posix.sep : path_1.sep;
3006
+ const pathRelative = path_1.posix
3007
+ ? path_1.posix.relative
3008
+ : path_1.relative;
3009
+ const pathJoin = path_1.posix ? path_1.posix.join : path_1.join;
3010
+ const pathDirname = path_1.posix ? path_1.posix.dirname : path_1.dirname;
3011
+ const pathNormalize = path_1.posix
3012
+ ? path_1.posix.normalize
3013
+ : path_1.normalize;
3311
3014
  const kMinPoolSpace = 128;
3312
3015
  function pathToSteps(path) {
3313
- return (0, util_2.filenameToSteps)((0, util_1.pathToFilename)(path));
3016
+ return (0, util_3.filenameToSteps)((0, util_2.pathToFilename)(path));
3314
3017
  }
3315
3018
  function dataToStr(data, encoding = encoding_1.ENCODING_UTF8) {
3316
3019
  if (buffer_1.Buffer.isBuffer(data)) return data.toString(encoding);
@@ -3352,9 +3055,9 @@
3352
3055
  FileHandle_1.FileHandle,
3353
3056
  );
3354
3057
  this.openSync = (path, flags, mode = 438) => {
3355
- const modeNum = (0, util_1.modeToNumber)(mode);
3356
- const fileName = (0, util_1.pathToFilename)(path);
3357
- const flagsNum = (0, util_1.flagsToNumber)(flags);
3058
+ const modeNum = (0, util_2.modeToNumber)(mode);
3059
+ const fileName = (0, util_2.pathToFilename)(path);
3060
+ const flagsNum = (0, util_2.flagsToNumber)(flags);
3358
3061
  return this._core.open(
3359
3062
  fileName,
3360
3063
  flagsNum,
@@ -3370,9 +3073,9 @@
3370
3073
  callback = a;
3371
3074
  }
3372
3075
  mode = mode || 438;
3373
- const modeNum = (0, util_1.modeToNumber)(mode);
3374
- const fileName = (0, util_1.pathToFilename)(path);
3375
- const flagsNum = (0, util_1.flagsToNumber)(flags);
3076
+ const modeNum = (0, util_2.modeToNumber)(mode);
3077
+ const fileName = (0, util_2.pathToFilename)(path);
3078
+ const flagsNum = (0, util_2.flagsToNumber)(flags);
3376
3079
  this.wrapAsync(
3377
3080
  this._core.open,
3378
3081
  [fileName, flagsNum, modeNum, !(flagsNum & O_SYMLINK)],
@@ -3383,16 +3086,16 @@
3383
3086
  this._core.close(fd);
3384
3087
  };
3385
3088
  this.close = (fd, callback) => {
3386
- (0, util_2.validateFd)(fd);
3089
+ (0, util_3.validateFd)(fd);
3387
3090
  const file = this._core.getFileByFdOrThrow(fd, "close");
3388
3091
  this.wrapAsync(this._core.close, [file.fd], callback);
3389
3092
  };
3390
3093
  this.readSync = (fd, buffer, offset, length, position) => {
3391
- (0, util_2.validateFd)(fd);
3094
+ (0, util_3.validateFd)(fd);
3392
3095
  return this._core.read(fd, buffer, offset, length, position);
3393
3096
  };
3394
3097
  this.read = (fd, buffer, offset, length, position, callback) => {
3395
- (0, util_1.validateCallback)(callback);
3098
+ (0, util_2.validateCallback)(callback);
3396
3099
  if (length === 0) {
3397
3100
  return (0, queueMicrotask_1.default)(() => {
3398
3101
  if (callback) callback(null, 0, buffer);
@@ -3417,7 +3120,7 @@
3417
3120
  let position = a;
3418
3121
  let callback = b;
3419
3122
  if (typeof a === "function") [position, callback] = [null, a];
3420
- (0, util_1.validateCallback)(callback);
3123
+ (0, util_2.validateCallback)(callback);
3421
3124
  Promise.resolve().then(() => {
3422
3125
  try {
3423
3126
  const bytes = this._core.readv(fd, buffers, position);
@@ -3428,31 +3131,31 @@
3428
3131
  });
3429
3132
  };
3430
3133
  this.readvSync = (fd, buffers, position) => {
3431
- (0, util_2.validateFd)(fd);
3134
+ (0, util_3.validateFd)(fd);
3432
3135
  return this._core.readv(fd, buffers, position ?? null);
3433
3136
  };
3434
3137
  this._readfile = (id, flagsNum, encoding) => {
3435
3138
  let result;
3436
3139
  const isUserFd = typeof id === "number";
3437
- const userOwnsFd = isUserFd && (0, util_2.isFd)(id);
3140
+ const userOwnsFd = isUserFd && (0, util_3.isFd)(id);
3438
3141
  let fd;
3439
3142
  if (userOwnsFd) fd = id;
3440
3143
  else {
3441
- const filename = (0, util_1.pathToFilename)(id);
3144
+ const filename = (0, util_2.pathToFilename)(id);
3442
3145
  const originalPath = String(id);
3443
3146
  const hasTrailingSlash =
3444
3147
  originalPath.length > 1 && originalPath.endsWith("/");
3445
3148
  const link = this._core.getResolvedLinkOrThrow(filename, "open");
3446
3149
  const node = link.getNode();
3447
3150
  if (node.isDirectory())
3448
- throw (0, util_1.createError)("EISDIR", "open", link.getPath());
3151
+ throw (0, util_2.createError)("EISDIR", "open", link.getPath());
3449
3152
  if (hasTrailingSlash && node.isFile()) {
3450
- throw (0, util_1.createError)("ENOTDIR", "open", originalPath);
3153
+ throw (0, util_2.createError)("ENOTDIR", "open", originalPath);
3451
3154
  }
3452
3155
  fd = this.openSync(id, flagsNum);
3453
3156
  }
3454
3157
  try {
3455
- result = (0, util_1.bufferToEncoding)(
3158
+ result = (0, util_2.bufferToEncoding)(
3456
3159
  this._core.getFileByFdOrThrow(fd).getBuffer(),
3457
3160
  encoding,
3458
3161
  );
@@ -3465,14 +3168,14 @@
3465
3168
  };
3466
3169
  this.readFileSync = (file, options) => {
3467
3170
  const opts = (0, options_1.getReadFileOptions)(options);
3468
- const flagsNum = (0, util_1.flagsToNumber)(opts.flag);
3171
+ const flagsNum = (0, util_2.flagsToNumber)(opts.flag);
3469
3172
  return this._readfile(file, flagsNum, opts.encoding);
3470
3173
  };
3471
3174
  this.readFile = (id, a, b) => {
3472
3175
  const [opts, callback] = (0, options_1.optsAndCbGenerator)(
3473
3176
  options_1.getReadFileOptions,
3474
3177
  )(a, b);
3475
- const flagsNum = (0, util_1.flagsToNumber)(opts.flag);
3178
+ const flagsNum = (0, util_2.flagsToNumber)(opts.flag);
3476
3179
  this.wrapAsync(
3477
3180
  this._readfile,
3478
3181
  [id, flagsNum, opts.encoding],
@@ -3481,12 +3184,12 @@
3481
3184
  };
3482
3185
  this.writeSync = (fd, a, b, c, d) => {
3483
3186
  const [, buf, offset, length, position] = (0,
3484
- util_1.getWriteSyncArgs)(fd, a, b, c, d);
3187
+ util_2.getWriteSyncArgs)(fd, a, b, c, d);
3485
3188
  return this._write(fd, buf, offset, length, position);
3486
3189
  };
3487
3190
  this.write = (fd, a, b, c, d, e) => {
3488
3191
  const [, asStr, buf, offset, length, position, cb] = (0,
3489
- util_1.getWriteArgs)(fd, a, b, c, d, e);
3192
+ util_2.getWriteArgs)(fd, a, b, c, d, e);
3490
3193
  Promise.resolve().then(() => {
3491
3194
  try {
3492
3195
  const bytes = this._write(fd, buf, offset, length, position);
@@ -3504,7 +3207,7 @@
3504
3207
  let position = a;
3505
3208
  let callback = b;
3506
3209
  if (typeof a === "function") [position, callback] = [null, a];
3507
- (0, util_1.validateCallback)(callback);
3210
+ (0, util_2.validateCallback)(callback);
3508
3211
  Promise.resolve().then(() => {
3509
3212
  try {
3510
3213
  const bytes = this.writevBase(fd, buffers, position);
@@ -3515,14 +3218,14 @@
3515
3218
  });
3516
3219
  };
3517
3220
  this.writevSync = (fd, buffers, position) => {
3518
- (0, util_2.validateFd)(fd);
3221
+ (0, util_3.validateFd)(fd);
3519
3222
  return this.writevBase(fd, buffers, position ?? null);
3520
3223
  };
3521
3224
  this.writeFileSync = (id, data, options) => {
3522
3225
  const opts = (0, options_1.getWriteFileOptions)(options);
3523
- const flagsNum = (0, util_1.flagsToNumber)(opts.flag);
3524
- const modeNum = (0, util_1.modeToNumber)(opts.mode);
3525
- const buf = (0, util_2.dataToBuffer)(data, opts.encoding);
3226
+ const flagsNum = (0, util_2.flagsToNumber)(opts.flag);
3227
+ const modeNum = (0, util_2.modeToNumber)(opts.mode);
3228
+ const buf = (0, util_3.dataToBuffer)(data, opts.encoding);
3526
3229
  this._core.writeFile(id, buf, flagsNum, modeNum);
3527
3230
  };
3528
3231
  this.writeFile = (id, data, a, b) => {
@@ -3530,11 +3233,11 @@
3530
3233
  let callback = b;
3531
3234
  if (typeof a === "function")
3532
3235
  [options, callback] = [options_1.writeFileDefaults, a];
3533
- const cb = (0, util_1.validateCallback)(callback);
3236
+ const cb = (0, util_2.validateCallback)(callback);
3534
3237
  const opts = (0, options_1.getWriteFileOptions)(options);
3535
- const flagsNum = (0, util_1.flagsToNumber)(opts.flag);
3536
- const modeNum = (0, util_1.modeToNumber)(opts.mode);
3537
- const buf = (0, util_2.dataToBuffer)(data, opts.encoding);
3238
+ const flagsNum = (0, util_2.flagsToNumber)(opts.flag);
3239
+ const modeNum = (0, util_2.modeToNumber)(opts.mode);
3240
+ const buf = (0, util_3.dataToBuffer)(data, opts.encoding);
3538
3241
  this.wrapAsync(
3539
3242
  this._core.writeFile,
3540
3243
  [id, buf, flagsNum, modeNum],
@@ -3542,18 +3245,18 @@
3542
3245
  );
3543
3246
  };
3544
3247
  this.copyFileSync = (src, dest, flags) => {
3545
- const srcFilename = (0, util_1.pathToFilename)(src);
3546
- const destFilename = (0, util_1.pathToFilename)(dest);
3248
+ const srcFilename = (0, util_2.pathToFilename)(src);
3249
+ const destFilename = (0, util_2.pathToFilename)(dest);
3547
3250
  return this._copyFile(srcFilename, destFilename, (flags || 0) | 0);
3548
3251
  };
3549
3252
  this.copyFile = (src, dest, a, b) => {
3550
- const srcFilename = (0, util_1.pathToFilename)(src);
3551
- const destFilename = (0, util_1.pathToFilename)(dest);
3253
+ const srcFilename = (0, util_2.pathToFilename)(src);
3254
+ const destFilename = (0, util_2.pathToFilename)(dest);
3552
3255
  let flags;
3553
3256
  let callback;
3554
3257
  if (typeof a === "function") [flags, callback] = [0, a];
3555
3258
  else [flags, callback] = [a, b];
3556
- (0, util_1.validateCallback)(callback);
3259
+ (0, util_2.validateCallback)(callback);
3557
3260
  this.wrapAsync(
3558
3261
  this._copyFile,
3559
3262
  [srcFilename, destFilename, flags],
@@ -3578,23 +3281,23 @@
3578
3281
  srcStat.ino === destStat.ino &&
3579
3282
  srcStat.dev === destStat.dev
3580
3283
  )
3581
- throw (0, util_1.createError)("EINVAL", "cp", src, dest);
3284
+ throw (0, util_2.createError)("EINVAL", "cp", src, dest);
3582
3285
  if (destStat) {
3583
3286
  if (srcStat.isDirectory() && !destStat.isDirectory())
3584
- throw (0, util_1.createError)("EISDIR", "cp", src, dest);
3287
+ throw (0, util_2.createError)("EISDIR", "cp", src, dest);
3585
3288
  if (!srcStat.isDirectory() && destStat.isDirectory())
3586
- throw (0, util_1.createError)("ENOTDIR", "cp", src, dest);
3289
+ throw (0, util_2.createError)("ENOTDIR", "cp", src, dest);
3587
3290
  }
3588
3291
  if (srcStat.isDirectory() && this.isSrcSubdir(src, dest))
3589
- throw (0, util_1.createError)("EINVAL", "cp", src, dest);
3292
+ throw (0, util_2.createError)("EINVAL", "cp", src, dest);
3590
3293
  ENDURE_PARENT_DIR_EXISTS: {
3591
- const parent = dirname(dest);
3294
+ const parent = pathDirname(dest);
3592
3295
  if (!this.existsSync(parent))
3593
3296
  this.mkdirSync(parent, { recursive: true });
3594
3297
  }
3595
3298
  if (srcStat.isDirectory()) {
3596
3299
  if (!options.recursive)
3597
- throw (0, util_1.createError)("EISDIR", "cp", src);
3300
+ throw (0, util_2.createError)("EISDIR", "cp", src);
3598
3301
  this.cpDirSync(srcStat, destStat, src, dest, options);
3599
3302
  } else if (
3600
3303
  srcStat.isFile() ||
@@ -3605,21 +3308,21 @@
3605
3308
  } else if (srcStat.isSymbolicLink() && !options.dereference) {
3606
3309
  this.cpSymlinkSync(destStat, src, dest, options);
3607
3310
  } else {
3608
- throw (0, util_1.createError)("EINVAL", "cp", src);
3311
+ throw (0, util_2.createError)("EINVAL", "cp", src);
3609
3312
  }
3610
3313
  };
3611
3314
  this.linkSync = (existingPath, newPath) => {
3612
- const existingPathFilename = (0, util_1.pathToFilename)(
3315
+ const existingPathFilename = (0, util_2.pathToFilename)(
3613
3316
  existingPath,
3614
3317
  );
3615
- const newPathFilename = (0, util_1.pathToFilename)(newPath);
3318
+ const newPathFilename = (0, util_2.pathToFilename)(newPath);
3616
3319
  this._core.link(existingPathFilename, newPathFilename);
3617
3320
  };
3618
3321
  this.link = (existingPath, newPath, callback) => {
3619
- const existingPathFilename = (0, util_1.pathToFilename)(
3322
+ const existingPathFilename = (0, util_2.pathToFilename)(
3620
3323
  existingPath,
3621
3324
  );
3622
- const newPathFilename = (0, util_1.pathToFilename)(newPath);
3325
+ const newPathFilename = (0, util_2.pathToFilename)(newPath);
3623
3326
  this.wrapAsync(
3624
3327
  this._core.link,
3625
3328
  [existingPathFilename, newPathFilename],
@@ -3627,24 +3330,24 @@
3627
3330
  );
3628
3331
  };
3629
3332
  this.unlinkSync = (path) => {
3630
- const filename = (0, util_1.pathToFilename)(path);
3333
+ const filename = (0, util_2.pathToFilename)(path);
3631
3334
  this._core.unlink(filename);
3632
3335
  };
3633
3336
  this.unlink = (path, callback) => {
3634
- const filename = (0, util_1.pathToFilename)(path);
3337
+ const filename = (0, util_2.pathToFilename)(path);
3635
3338
  this.wrapAsync(this._core.unlink, [filename], callback);
3636
3339
  };
3637
3340
  this.symlinkSync = (target, path, type) => {
3638
- const targetFilename = (0, util_1.pathToFilename)(target);
3639
- const pathFilename = (0, util_1.pathToFilename)(path);
3341
+ const targetFilename = (0, util_2.pathToFilename)(target);
3342
+ const pathFilename = (0, util_2.pathToFilename)(path);
3640
3343
  this._core.symlink(targetFilename, pathFilename);
3641
3344
  };
3642
3345
  this.symlink = (target, path, a, b) => {
3643
- const callback = (0, util_1.validateCallback)(
3346
+ const callback = (0, util_2.validateCallback)(
3644
3347
  typeof a === "function" ? a : b,
3645
3348
  );
3646
- const targetFilename = (0, util_1.pathToFilename)(target);
3647
- const pathFilename = (0, util_1.pathToFilename)(path);
3349
+ const targetFilename = (0, util_2.pathToFilename)(target);
3350
+ const pathFilename = (0, util_2.pathToFilename)(path);
3648
3351
  this.wrapAsync(
3649
3352
  this._core.symlink,
3650
3353
  [targetFilename, pathFilename],
@@ -3665,19 +3368,19 @@
3665
3368
  const { throwIfNoEntry = true, bigint = false } = (0,
3666
3369
  options_1.getStatOptions)(options);
3667
3370
  return this._lstat(
3668
- (0, util_1.pathToFilename)(path),
3371
+ (0, util_2.pathToFilename)(path),
3669
3372
  bigint,
3670
3373
  throwIfNoEntry,
3671
3374
  );
3672
3375
  };
3673
3376
  this.renameSync = (oldPath, newPath) => {
3674
- const oldPathFilename = (0, util_1.pathToFilename)(oldPath);
3675
- const newPathFilename = (0, util_1.pathToFilename)(newPath);
3377
+ const oldPathFilename = (0, util_2.pathToFilename)(oldPath);
3378
+ const newPathFilename = (0, util_2.pathToFilename)(newPath);
3676
3379
  this._core.rename(oldPathFilename, newPathFilename);
3677
3380
  };
3678
3381
  this.rename = (oldPath, newPath, callback) => {
3679
- const oldPathFilename = (0, util_1.pathToFilename)(oldPath);
3680
- const newPathFilename = (0, util_1.pathToFilename)(newPath);
3382
+ const oldPathFilename = (0, util_2.pathToFilename)(oldPath);
3383
+ const newPathFilename = (0, util_2.pathToFilename)(newPath);
3681
3384
  this.wrapAsync(
3682
3385
  this._core.rename,
3683
3386
  [oldPathFilename, newPathFilename],
@@ -3686,13 +3389,13 @@
3686
3389
  };
3687
3390
  this.existsSync = (path) => {
3688
3391
  try {
3689
- return this._exists((0, util_1.pathToFilename)(path));
3392
+ return this._exists((0, util_2.pathToFilename)(path));
3690
3393
  } catch (err) {
3691
3394
  return false;
3692
3395
  }
3693
3396
  };
3694
3397
  this.exists = (path, callback) => {
3695
- const filename = (0, util_1.pathToFilename)(path);
3398
+ const filename = (0, util_2.pathToFilename)(path);
3696
3399
  if (typeof callback !== "function")
3697
3400
  throw Error(constants_2.ERRSTR.CB);
3698
3401
  Promise.resolve().then(() => {
@@ -3704,7 +3407,7 @@
3704
3407
  });
3705
3408
  };
3706
3409
  this.accessSync = (path, mode = F_OK) => {
3707
- const filename = (0, util_1.pathToFilename)(path);
3410
+ const filename = (0, util_2.pathToFilename)(path);
3708
3411
  mode = mode | 0;
3709
3412
  this._access(filename, mode);
3710
3413
  };
@@ -3712,14 +3415,14 @@
3712
3415
  let mode = F_OK;
3713
3416
  let callback;
3714
3417
  if (typeof a !== "function")
3715
- [mode, callback] = [a | 0, (0, util_1.validateCallback)(b)];
3418
+ [mode, callback] = [a | 0, (0, util_2.validateCallback)(b)];
3716
3419
  else callback = a;
3717
- const filename = (0, util_1.pathToFilename)(path);
3420
+ const filename = (0, util_2.pathToFilename)(path);
3718
3421
  this.wrapAsync(this._access, [filename, mode], callback);
3719
3422
  };
3720
3423
  this.appendFileSync = (id, data, options) => {
3721
3424
  const opts = (0, options_1.getAppendFileOpts)(options);
3722
- if (!opts.flag || (0, util_2.isFd)(id)) opts.flag = "a";
3425
+ if (!opts.flag || (0, util_3.isFd)(id)) opts.flag = "a";
3723
3426
  this.writeFileSync(id, data, opts);
3724
3427
  };
3725
3428
  this.appendFile = (id, data, a, b) => {
@@ -3727,17 +3430,17 @@
3727
3430
  a,
3728
3431
  b,
3729
3432
  );
3730
- if (!opts.flag || (0, util_2.isFd)(id)) opts.flag = "a";
3433
+ if (!opts.flag || (0, util_3.isFd)(id)) opts.flag = "a";
3731
3434
  this.writeFile(id, data, opts, callback);
3732
3435
  };
3733
3436
  this._readdir = (filename, options) => {
3734
- const steps = (0, util_2.filenameToSteps)(filename);
3437
+ const steps = (0, util_3.filenameToSteps)(filename);
3735
3438
  const link = this._core.getResolvedLinkOrThrow(filename, "scandir");
3736
3439
  const node = link.getNode();
3737
3440
  if (!node.isDirectory())
3738
- throw (0, util_1.createError)("ENOTDIR", "scandir", filename);
3441
+ throw (0, util_2.createError)("ENOTDIR", "scandir", filename);
3739
3442
  if (!node.canRead())
3740
- throw (0, util_1.createError)("EACCES", "scandir", filename);
3443
+ throw (0, util_2.createError)("EACCES", "scandir", filename);
3741
3444
  const list = [];
3742
3445
  for (const name of link.children.keys()) {
3743
3446
  const child = link.getChild(name);
@@ -3756,7 +3459,7 @@
3756
3459
  list.push(...childList);
3757
3460
  }
3758
3461
  }
3759
- if (!util_2.isWin && options.encoding !== "buffer")
3462
+ if (!util_3.isWin && options.encoding !== "buffer")
3760
3463
  list.sort((a, b) => {
3761
3464
  if (a.name < b.name) return -1;
3762
3465
  if (a.name > b.name) return 1;
@@ -3764,24 +3467,24 @@
3764
3467
  });
3765
3468
  if (options.withFileTypes) return list;
3766
3469
  let filename2 = filename;
3767
- if (util_2.isWin) filename2 = filename2.replace(/\\/g, "/");
3470
+ if (util_3.isWin) filename2 = filename2.replace(/\\/g, "/");
3768
3471
  return list.map((dirent) => {
3769
3472
  if (options.recursive) {
3770
- let fullPath = pathModule.join(
3473
+ let fullPath = pathJoin(
3771
3474
  dirent.parentPath,
3772
3475
  dirent.name.toString(),
3773
3476
  );
3774
- if (util_2.isWin) {
3477
+ if (util_3.isWin) {
3775
3478
  fullPath = fullPath.replace(/\\/g, "/");
3776
3479
  }
3777
- return fullPath.replace(filename2 + pathModule.posix.sep, "");
3480
+ return fullPath.replace(filename2 + path_1.posix.sep, "");
3778
3481
  }
3779
3482
  return dirent.name;
3780
3483
  });
3781
3484
  };
3782
3485
  this.readdirSync = (path, options) => {
3783
3486
  const opts = (0, options_1.getReaddirOptions)(options);
3784
- const filename = (0, util_1.pathToFilename)(path);
3487
+ const filename = (0, util_2.pathToFilename)(path);
3785
3488
  return this._readdir(filename, opts);
3786
3489
  };
3787
3490
  this.readdir = (path, a, b) => {
@@ -3789,24 +3492,24 @@
3789
3492
  a,
3790
3493
  b,
3791
3494
  );
3792
- const filename = (0, util_1.pathToFilename)(path);
3495
+ const filename = (0, util_2.pathToFilename)(path);
3793
3496
  this.wrapAsync(this._readdir, [filename, options], callback);
3794
3497
  };
3795
3498
  this._readlink = (filename, encoding) => {
3796
3499
  const link = this._core.getLinkOrThrow(filename, "readlink");
3797
3500
  const node = link.getNode();
3798
3501
  if (!node.isSymlink())
3799
- throw (0, util_1.createError)("EINVAL", "readlink", filename);
3502
+ throw (0, util_2.createError)("EINVAL", "readlink", filename);
3800
3503
  return (0, encoding_1.strToEncoding)(node.symlink, encoding);
3801
3504
  };
3802
3505
  this.readlinkSync = (path, options) => {
3803
3506
  const opts = (0, options_1.getDefaultOpts)(options);
3804
- const filename = (0, util_1.pathToFilename)(path);
3507
+ const filename = (0, util_2.pathToFilename)(path);
3805
3508
  return this._readlink(filename, opts.encoding);
3806
3509
  };
3807
3510
  this.readlink = (path, a, b) => {
3808
3511
  const [opts, callback] = (0, options_1.getDefaultOptsAndCb)(a, b);
3809
- const filename = (0, util_1.pathToFilename)(path);
3512
+ const filename = (0, util_2.pathToFilename)(path);
3810
3513
  this.wrapAsync(this._readlink, [filename, opts.encoding], callback);
3811
3514
  };
3812
3515
  this._fsync = (fd) => {
@@ -3836,7 +3539,7 @@
3836
3539
  };
3837
3540
  this.ftruncate = (fd, a, b) => {
3838
3541
  const len = typeof a === "number" ? a : 0;
3839
- const callback = (0, util_1.validateCallback)(
3542
+ const callback = (0, util_2.validateCallback)(
3840
3543
  typeof a === "number" ? b : a,
3841
3544
  );
3842
3545
  this.wrapAsync(this._ftruncate, [fd, len], callback);
@@ -3850,15 +3553,15 @@
3850
3553
  }
3851
3554
  };
3852
3555
  this.truncateSync = (id, len) => {
3853
- if ((0, util_2.isFd)(id)) return this.ftruncateSync(id, len);
3556
+ if ((0, util_3.isFd)(id)) return this.ftruncateSync(id, len);
3854
3557
  this._truncate(id, len);
3855
3558
  };
3856
3559
  this.truncate = (id, a, b) => {
3857
3560
  const len = typeof a === "number" ? a : 0;
3858
- const callback = (0, util_1.validateCallback)(
3561
+ const callback = (0, util_2.validateCallback)(
3859
3562
  typeof a === "number" ? b : a,
3860
3563
  );
3861
- if ((0, util_2.isFd)(id)) return this.ftruncate(id, len, callback);
3564
+ if ((0, util_3.isFd)(id)) return this.ftruncate(id, len, callback);
3862
3565
  this.wrapAsync(this._truncate, [id, len], callback);
3863
3566
  };
3864
3567
  this._futimes = (fd, atime, mtime) => {
@@ -3888,7 +3591,7 @@
3888
3591
  };
3889
3592
  this.utimesSync = (path, atime, mtime) => {
3890
3593
  this._utimes(
3891
- (0, util_1.pathToFilename)(path),
3594
+ (0, util_2.pathToFilename)(path),
3892
3595
  toUnixTimestamp(atime),
3893
3596
  toUnixTimestamp(mtime),
3894
3597
  true,
@@ -3898,7 +3601,7 @@
3898
3601
  this.wrapAsync(
3899
3602
  this._utimes,
3900
3603
  [
3901
- (0, util_1.pathToFilename)(path),
3604
+ (0, util_2.pathToFilename)(path),
3902
3605
  toUnixTimestamp(atime),
3903
3606
  toUnixTimestamp(mtime),
3904
3607
  true,
@@ -3908,7 +3611,7 @@
3908
3611
  };
3909
3612
  this.lutimesSync = (path, atime, mtime) => {
3910
3613
  this._utimes(
3911
- (0, util_1.pathToFilename)(path),
3614
+ (0, util_2.pathToFilename)(path),
3912
3615
  toUnixTimestamp(atime),
3913
3616
  toUnixTimestamp(mtime),
3914
3617
  false,
@@ -3918,7 +3621,7 @@
3918
3621
  this.wrapAsync(
3919
3622
  this._utimes,
3920
3623
  [
3921
- (0, util_1.pathToFilename)(path),
3624
+ (0, util_2.pathToFilename)(path),
3922
3625
  toUnixTimestamp(atime),
3923
3626
  toUnixTimestamp(mtime),
3924
3627
  false,
@@ -3928,25 +3631,25 @@
3928
3631
  };
3929
3632
  this.mkdirSync = (path, options) => {
3930
3633
  const opts = (0, options_1.getMkdirOptions)(options);
3931
- const modeNum = (0, util_1.modeToNumber)(opts.mode, 511);
3932
- const filename = (0, util_1.pathToFilename)(path);
3634
+ const modeNum = (0, util_2.modeToNumber)(opts.mode, 511);
3635
+ const filename = (0, util_2.pathToFilename)(path);
3933
3636
  if (opts.recursive) return this._core.mkdirp(filename, modeNum);
3934
3637
  this._core.mkdir(filename, modeNum);
3935
3638
  };
3936
3639
  this.mkdir = (path, a, b) => {
3937
3640
  const opts = (0, options_1.getMkdirOptions)(a);
3938
- const callback = (0, util_1.validateCallback)(
3641
+ const callback = (0, util_2.validateCallback)(
3939
3642
  typeof a === "function" ? a : b,
3940
3643
  );
3941
- const modeNum = (0, util_1.modeToNumber)(opts.mode, 511);
3942
- const filename = (0, util_1.pathToFilename)(path);
3644
+ const modeNum = (0, util_2.modeToNumber)(opts.mode, 511);
3645
+ const filename = (0, util_2.pathToFilename)(path);
3943
3646
  if (opts.recursive)
3944
3647
  this.wrapAsync(this._core.mkdirp, [filename, modeNum], callback);
3945
3648
  else
3946
3649
  this.wrapAsync(this._core.mkdir, [filename, modeNum], callback);
3947
3650
  };
3948
3651
  this._mkdtemp = (prefix, encoding, retry = 5) => {
3949
- const filename = prefix + (0, util_1.genRndStr6)();
3652
+ const filename = prefix + (0, util_2.genRndStr6)();
3950
3653
  try {
3951
3654
  this._core.mkdir(filename, 511);
3952
3655
  return (0, encoding_1.strToEncoding)(filename, encoding);
@@ -3962,7 +3665,7 @@
3962
3665
  const { encoding } = (0, options_1.getDefaultOpts)(options);
3963
3666
  if (!prefix || typeof prefix !== "string")
3964
3667
  throw new TypeError("filename prefix is required");
3965
- (0, util_1.nullCheck)(prefix);
3668
+ (0, util_2.nullCheck)(prefix);
3966
3669
  return this._mkdtemp(prefix, encoding);
3967
3670
  };
3968
3671
  this.mkdtemp = (prefix, a, b) => {
@@ -3972,27 +3675,27 @@
3972
3675
  );
3973
3676
  if (!prefix || typeof prefix !== "string")
3974
3677
  throw new TypeError("filename prefix is required");
3975
- if (!(0, util_1.nullCheck)(prefix)) return;
3678
+ if (!(0, util_2.nullCheck)(prefix)) return;
3976
3679
  this.wrapAsync(this._mkdtemp, [prefix, encoding], callback);
3977
3680
  };
3978
3681
  this.rmdirSync = (path, options) => {
3979
3682
  const opts = (0, options_1.getRmdirOptions)(options);
3980
- this._core.rmdir((0, util_1.pathToFilename)(path), opts.recursive);
3683
+ this._core.rmdir((0, util_2.pathToFilename)(path), opts.recursive);
3981
3684
  };
3982
3685
  this.rmdir = (path, a, b) => {
3983
3686
  const opts = (0, options_1.getRmdirOptions)(a);
3984
- const callback = (0, util_1.validateCallback)(
3687
+ const callback = (0, util_2.validateCallback)(
3985
3688
  typeof a === "function" ? a : b,
3986
3689
  );
3987
3690
  this.wrapAsync(
3988
3691
  this._core.rmdir,
3989
- [(0, util_1.pathToFilename)(path), opts.recursive],
3692
+ [(0, util_2.pathToFilename)(path), opts.recursive],
3990
3693
  callback,
3991
3694
  );
3992
3695
  };
3993
3696
  this.rmSync = (path, options) => {
3994
3697
  this._core.rm(
3995
- (0, util_1.pathToFilename)(path),
3698
+ (0, util_2.pathToFilename)(path),
3996
3699
  options?.force,
3997
3700
  options?.recursive,
3998
3701
  );
@@ -4001,7 +3704,7 @@
4001
3704
  const [opts, callback] = (0, options_1.getRmOptsAndCb)(a, b);
4002
3705
  this.wrapAsync(
4003
3706
  this._core.rm,
4004
- [(0, util_1.pathToFilename)(path), opts?.force, opts?.recursive],
3707
+ [(0, util_2.pathToFilename)(path), opts?.force, opts?.recursive],
4005
3708
  callback,
4006
3709
  );
4007
3710
  };
@@ -4010,12 +3713,12 @@
4010
3713
  file.chmod(modeNum);
4011
3714
  };
4012
3715
  this.fchmodSync = (fd, mode) => {
4013
- this._fchmod(fd, (0, util_1.modeToNumber)(mode));
3716
+ this._fchmod(fd, (0, util_2.modeToNumber)(mode));
4014
3717
  };
4015
3718
  this.fchmod = (fd, mode, callback) => {
4016
3719
  this.wrapAsync(
4017
3720
  this._fchmod,
4018
- [fd, (0, util_1.modeToNumber)(mode)],
3721
+ [fd, (0, util_2.modeToNumber)(mode)],
4019
3722
  callback,
4020
3723
  );
4021
3724
  };
@@ -4027,26 +3730,26 @@
4027
3730
  node.chmod(modeNum);
4028
3731
  };
4029
3732
  this.chmodSync = (path, mode) => {
4030
- const modeNum = (0, util_1.modeToNumber)(mode);
4031
- const filename = (0, util_1.pathToFilename)(path);
3733
+ const modeNum = (0, util_2.modeToNumber)(mode);
3734
+ const filename = (0, util_2.pathToFilename)(path);
4032
3735
  this._chmod(filename, modeNum, true);
4033
3736
  };
4034
3737
  this.chmod = (path, mode, callback) => {
4035
- const modeNum = (0, util_1.modeToNumber)(mode);
4036
- const filename = (0, util_1.pathToFilename)(path);
3738
+ const modeNum = (0, util_2.modeToNumber)(mode);
3739
+ const filename = (0, util_2.pathToFilename)(path);
4037
3740
  this.wrapAsync(this._chmod, [filename, modeNum], callback);
4038
3741
  };
4039
3742
  this._lchmod = (filename, modeNum) => {
4040
3743
  this._chmod(filename, modeNum, false);
4041
3744
  };
4042
3745
  this.lchmodSync = (path, mode) => {
4043
- const modeNum = (0, util_1.modeToNumber)(mode);
4044
- const filename = (0, util_1.pathToFilename)(path);
3746
+ const modeNum = (0, util_2.modeToNumber)(mode);
3747
+ const filename = (0, util_2.pathToFilename)(path);
4045
3748
  this._lchmod(filename, modeNum);
4046
3749
  };
4047
3750
  this.lchmod = (path, mode, callback) => {
4048
- const modeNum = (0, util_1.modeToNumber)(mode);
4049
- const filename = (0, util_1.pathToFilename)(path);
3751
+ const modeNum = (0, util_2.modeToNumber)(mode);
3752
+ const filename = (0, util_2.pathToFilename)(path);
4050
3753
  this.wrapAsync(this._lchmod, [filename, modeNum], callback);
4051
3754
  };
4052
3755
  this._fchown = (fd, uid, gid) => {
@@ -4070,14 +3773,14 @@
4070
3773
  this.chownSync = (path, uid, gid) => {
4071
3774
  validateUid(uid);
4072
3775
  validateGid(gid);
4073
- this._chown((0, util_1.pathToFilename)(path), uid, gid);
3776
+ this._chown((0, util_2.pathToFilename)(path), uid, gid);
4074
3777
  };
4075
3778
  this.chown = (path, uid, gid, callback) => {
4076
3779
  validateUid(uid);
4077
3780
  validateGid(gid);
4078
3781
  this.wrapAsync(
4079
3782
  this._chown,
4080
- [(0, util_1.pathToFilename)(path), uid, gid],
3783
+ [(0, util_2.pathToFilename)(path), uid, gid],
4081
3784
  callback,
4082
3785
  );
4083
3786
  };
@@ -4090,21 +3793,21 @@
4090
3793
  this.lchownSync = (path, uid, gid) => {
4091
3794
  validateUid(uid);
4092
3795
  validateGid(gid);
4093
- this._lchown((0, util_1.pathToFilename)(path), uid, gid);
3796
+ this._lchown((0, util_2.pathToFilename)(path), uid, gid);
4094
3797
  };
4095
3798
  this.lchown = (path, uid, gid, callback) => {
4096
3799
  validateUid(uid);
4097
3800
  validateGid(gid);
4098
3801
  this.wrapAsync(
4099
3802
  this._lchown,
4100
- [(0, util_1.pathToFilename)(path), uid, gid],
3803
+ [(0, util_2.pathToFilename)(path), uid, gid],
4101
3804
  callback,
4102
3805
  );
4103
3806
  };
4104
3807
  this.statWatchers = {};
4105
3808
  this.cpSync = (src, dest, options) => {
4106
- const srcFilename = (0, util_1.pathToFilename)(src);
4107
- const destFilename = (0, util_1.pathToFilename)(dest);
3809
+ const srcFilename = (0, util_2.pathToFilename)(src);
3810
+ const destFilename = (0, util_2.pathToFilename)(dest);
4108
3811
  const opts_ = {
4109
3812
  dereference: options?.dereference ?? false,
4110
3813
  errorOnExist: options?.errorOnExist ?? false,
@@ -4118,13 +3821,13 @@
4118
3821
  return this._cp(srcFilename, destFilename, opts_);
4119
3822
  };
4120
3823
  this.cp = (src, dest, a, b) => {
4121
- const srcFilename = (0, util_1.pathToFilename)(src);
4122
- const destFilename = (0, util_1.pathToFilename)(dest);
3824
+ const srcFilename = (0, util_2.pathToFilename)(src);
3825
+ const destFilename = (0, util_2.pathToFilename)(dest);
4123
3826
  let options;
4124
3827
  let callback;
4125
3828
  if (typeof a === "function") [options, callback] = [{}, a];
4126
3829
  else [options, callback] = [a || {}, b];
4127
- (0, util_1.validateCallback)(callback);
3830
+ (0, util_2.validateCallback)(callback);
4128
3831
  const opts_ = {
4129
3832
  dereference: options?.dereference ?? false,
4130
3833
  errorOnExist: options?.errorOnExist ?? false,
@@ -4142,11 +3845,22 @@
4142
3845
  );
4143
3846
  };
4144
3847
  this.openAsBlob = async (path, options) => {
4145
- const filename = (0, util_1.pathToFilename)(path);
4146
- const link = this._core.getResolvedLinkOrThrow(filename, "open");
3848
+ const filename = (0, util_2.pathToFilename)(path);
3849
+ let link;
3850
+ try {
3851
+ link = this._core.getResolvedLinkOrThrow(filename, "open");
3852
+ } catch (error) {
3853
+ if (
3854
+ error &&
3855
+ typeof error === "object" &&
3856
+ error.code === "ENOENT"
3857
+ ) {
3858
+ const nodeError = new errors.TypeError("ERR_INVALID_ARG_VALUE");
3859
+ throw nodeError;
3860
+ }
3861
+ throw error;
3862
+ }
4147
3863
  const node = link.getNode();
4148
- if (node.isDirectory())
4149
- throw (0, util_1.createError)("EISDIR", "open", link.getPath());
4150
3864
  const buffer = node.getBuffer();
4151
3865
  const type = options?.type || "";
4152
3866
  return new Blob([buffer], { type });
@@ -4159,19 +3873,19 @@
4159
3873
  this.globSync = (pattern, options = {}) =>
4160
3874
  this._globSync(pattern, options);
4161
3875
  this._globSync = (pattern, options = {}) => {
4162
- const { globSync } = __nccwpck_require__(519);
3876
+ const { globSync } = __nccwpck_require__(6);
4163
3877
  return globSync(this, pattern, options);
4164
3878
  };
4165
3879
  this._opendir = (filename, options) => {
4166
3880
  const link = this._core.getResolvedLinkOrThrow(filename, "scandir");
4167
3881
  const node = link.getNode();
4168
3882
  if (!node.isDirectory())
4169
- throw (0, util_1.createError)("ENOTDIR", "scandir", filename);
3883
+ throw (0, util_2.createError)("ENOTDIR", "scandir", filename);
4170
3884
  return new Dir_1.Dir(link, options);
4171
3885
  };
4172
3886
  this.opendirSync = (path, options) => {
4173
3887
  const opts = (0, options_1.getOpendirOptions)(options);
4174
- const filename = (0, util_1.pathToFilename)(path);
3888
+ const filename = (0, util_2.pathToFilename)(path);
4175
3889
  return this._opendir(filename, opts);
4176
3890
  };
4177
3891
  this.opendir = (path, a, b) => {
@@ -4179,7 +3893,7 @@
4179
3893
  a,
4180
3894
  b,
4181
3895
  );
4182
- const filename = (0, util_1.pathToFilename)(path);
3896
+ const filename = (0, util_2.pathToFilename)(path);
4183
3897
  this.wrapAsync(this._opendir, [filename, options], callback);
4184
3898
  };
4185
3899
  const self = this;
@@ -4217,12 +3931,12 @@
4217
3931
  };
4218
3932
  const realpathImpl = (path, a, b) => {
4219
3933
  const [opts, callback] = (0, options_1.getRealpathOptsAndCb)(a, b);
4220
- const pathFilename = (0, util_1.pathToFilename)(path);
3934
+ const pathFilename = (0, util_2.pathToFilename)(path);
4221
3935
  self.wrapAsync(_realpath, [pathFilename, opts.encoding], callback);
4222
3936
  };
4223
3937
  const realpathSyncImpl = (path, options) =>
4224
3938
  _realpath(
4225
- (0, util_1.pathToFilename)(path),
3939
+ (0, util_2.pathToFilename)(path),
4226
3940
  (0, options_1.getRealpathOptions)(options).encoding,
4227
3941
  );
4228
3942
  this.realpath = realpathImpl;
@@ -4231,7 +3945,7 @@
4231
3945
  this.realpathSync.native = realpathSyncImpl;
4232
3946
  }
4233
3947
  wrapAsync(method, args, callback) {
4234
- (0, util_1.validateCallback)(callback);
3948
+ (0, util_2.validateCallback)(callback);
4235
3949
  Promise.resolve().then(() => {
4236
3950
  let result;
4237
3951
  try {
@@ -4243,7 +3957,7 @@
4243
3957
  callback(null, result);
4244
3958
  });
4245
3959
  }
4246
- toTree(opts = { separator: sep }) {
3960
+ toTree(opts = { separator: path_1.sep }) {
4247
3961
  return (0, print_1.toTreeSync)(this, opts);
4248
3962
  }
4249
3963
  reset() {
@@ -4264,7 +3978,7 @@
4264
3978
  _write(fd, buf, offset, length, position) {
4265
3979
  const file = this._core.getFileByFdOrThrow(fd, "write");
4266
3980
  if (file.node.isSymlink()) {
4267
- throw (0, util_1.createError)(
3981
+ throw (0, util_2.createError)(
4268
3982
  "EBADF",
4269
3983
  "write",
4270
3984
  file.link.getPath(),
@@ -4302,25 +4016,25 @@
4302
4016
  _copyFile(src, dest, flags) {
4303
4017
  const buf = this.readFileSync(src);
4304
4018
  if (flags & COPYFILE_EXCL && this.existsSync(dest))
4305
- throw (0, util_1.createError)("EEXIST", "copyFile", src, dest);
4019
+ throw (0, util_2.createError)("EEXIST", "copyFile", src, dest);
4306
4020
  if (flags & COPYFILE_FICLONE_FORCE)
4307
- throw (0, util_1.createError)("ENOSYS", "copyFile", src, dest);
4021
+ throw (0, util_2.createError)("ENOSYS", "copyFile", src, dest);
4308
4022
  this._core.writeFile(dest, buf, constants_2.FLAGS.w, 438);
4309
4023
  }
4310
4024
  isSrcSubdir(src, dest) {
4311
4025
  try {
4312
- const normalizedSrc = normalize(
4026
+ const normalizedSrc = pathNormalize(
4313
4027
  src.startsWith("/") ? src : "/" + src,
4314
4028
  );
4315
- const normalizedDest = normalize(
4029
+ const normalizedDest = pathNormalize(
4316
4030
  dest.startsWith("/") ? dest : "/" + dest,
4317
4031
  );
4318
4032
  if (normalizedSrc === normalizedDest) return true;
4319
- const relativePath = relative(normalizedSrc, normalizedDest);
4033
+ const relativePath = pathRelative(normalizedSrc, normalizedDest);
4320
4034
  return (
4321
4035
  relativePath === "" ||
4322
4036
  (!relativePath.startsWith("..") &&
4323
- !pathModule.isAbsolute(relativePath))
4037
+ !(0, path_1.isAbsolute)(relativePath))
4324
4038
  );
4325
4039
  } catch (error) {
4326
4040
  return false;
@@ -4329,7 +4043,7 @@
4329
4043
  cpFileSync(srcStat, destStat, src, dest, options) {
4330
4044
  if (destStat) {
4331
4045
  if (options.errorOnExist)
4332
- throw (0, util_1.createError)("EEXIST", "cp", dest);
4046
+ throw (0, util_2.createError)("EEXIST", "cp", dest);
4333
4047
  if (!options.force) return;
4334
4048
  this.unlinkSync(dest);
4335
4049
  }
@@ -4344,8 +4058,8 @@
4344
4058
  }
4345
4059
  const entries = this.readdirSync(src);
4346
4060
  for (const entry of entries) {
4347
- const srcItem = join(src, String(entry));
4348
- const destItem = join(dest, String(entry));
4061
+ const srcItem = pathJoin(src, String(entry));
4062
+ const destItem = pathJoin(dest, String(entry));
4349
4063
  if (options.filter && !options.filter(srcItem, destItem)) {
4350
4064
  continue;
4351
4065
  }
@@ -4355,8 +4069,8 @@
4355
4069
  }
4356
4070
  cpSymlinkSync(destStat, src, dest, options) {
4357
4071
  let linkTarget = String(this.readlinkSync(src));
4358
- if (!options.verbatimSymlinks && !pathModule.isAbsolute(linkTarget))
4359
- linkTarget = resolveCrossPlatform(dirname(src), linkTarget);
4072
+ if (!options.verbatimSymlinks && !(0, path_1.isAbsolute)(linkTarget))
4073
+ linkTarget = resolveCrossPlatform(pathDirname(src), linkTarget);
4360
4074
  if (destStat) this.unlinkSync(dest);
4361
4075
  this.symlinkSync(linkTarget, dest);
4362
4076
  }
@@ -4365,7 +4079,7 @@
4365
4079
  options_1.getStatOptsAndCb)(a, b);
4366
4080
  this.wrapAsync(
4367
4081
  this._lstat,
4368
- [(0, util_1.pathToFilename)(path), bigint, throwIfNoEntry],
4082
+ [(0, util_2.pathToFilename)(path), bigint, throwIfNoEntry],
4369
4083
  callback,
4370
4084
  );
4371
4085
  }
@@ -4383,7 +4097,7 @@
4383
4097
  const { bigint = true, throwIfNoEntry = true } = (0,
4384
4098
  options_1.getStatOptions)(options);
4385
4099
  return this._stat(
4386
- (0, util_1.pathToFilename)(path),
4100
+ (0, util_2.pathToFilename)(path),
4387
4101
  bigint,
4388
4102
  throwIfNoEntry,
4389
4103
  );
@@ -4393,13 +4107,13 @@
4393
4107
  options_1.getStatOptsAndCb)(a, b);
4394
4108
  this.wrapAsync(
4395
4109
  this._stat,
4396
- [(0, util_1.pathToFilename)(path), bigint, throwIfNoEntry],
4110
+ [(0, util_2.pathToFilename)(path), bigint, throwIfNoEntry],
4397
4111
  callback,
4398
4112
  );
4399
4113
  }
4400
4114
  fstatBase(fd, bigint = false) {
4401
4115
  const file = this._core.getFileByFd(fd);
4402
- if (!file) throw (0, util_1.createError)("EBADF", "fstat");
4116
+ if (!file) throw (0, util_2.createError)("EBADF", "fstat");
4403
4117
  return Stats_1.default.build(file.node, bigint);
4404
4118
  }
4405
4119
  fstatSync(fd, options) {
@@ -4422,17 +4136,17 @@
4422
4136
  return;
4423
4137
  }
4424
4138
  if (mode & R_OK && !node.canRead()) {
4425
- throw (0, util_1.createError)("EACCES", "access", filename);
4139
+ throw (0, util_2.createError)("EACCES", "access", filename);
4426
4140
  }
4427
4141
  if (mode & W_OK && !node.canWrite()) {
4428
- throw (0, util_1.createError)("EACCES", "access", filename);
4142
+ throw (0, util_2.createError)("EACCES", "access", filename);
4429
4143
  }
4430
4144
  if (mode & X_OK && !node.canExecute()) {
4431
- throw (0, util_1.createError)("EACCES", "access", filename);
4145
+ throw (0, util_2.createError)("EACCES", "access", filename);
4432
4146
  }
4433
4147
  }
4434
4148
  watchFile(path, a, b) {
4435
- const filename = (0, util_1.pathToFilename)(path);
4149
+ const filename = (0, util_2.pathToFilename)(path);
4436
4150
  let options = a;
4437
4151
  let listener = b;
4438
4152
  if (typeof options === "function") {
@@ -4460,7 +4174,7 @@
4460
4174
  return watcher;
4461
4175
  }
4462
4176
  unwatchFile(path, listener) {
4463
- const filename = (0, util_1.pathToFilename)(path);
4177
+ const filename = (0, util_2.pathToFilename)(path);
4464
4178
  const watcher = this.statWatchers[filename];
4465
4179
  if (!watcher) return;
4466
4180
  if (typeof listener === "function") {
@@ -4480,7 +4194,7 @@
4480
4194
  return new this.WriteStream(path, options);
4481
4195
  }
4482
4196
  watch(path, options, listener) {
4483
- const filename = (0, util_1.pathToFilename)(path);
4197
+ const filename = (0, util_2.pathToFilename)(path);
4484
4198
  let givenOptions = options;
4485
4199
  if (typeof options === "function") {
4486
4200
  listener = options;
@@ -4503,14 +4217,14 @@
4503
4217
  }
4504
4218
  statfsSync(path, options) {
4505
4219
  const { bigint = false } = (0, options_1.getStatfsOptions)(options);
4506
- return this._statfs((0, util_1.pathToFilename)(path), bigint);
4220
+ return this._statfs((0, util_2.pathToFilename)(path), bigint);
4507
4221
  }
4508
4222
  statfs(path, a, b) {
4509
4223
  const [{ bigint = false }, callback] = (0,
4510
4224
  options_1.getStatfsOptsAndCb)(a, b);
4511
4225
  this.wrapAsync(
4512
4226
  this._statfs,
4513
- [(0, util_1.pathToFilename)(path), bigint],
4227
+ [(0, util_2.pathToFilename)(path), bigint],
4514
4228
  callback,
4515
4229
  );
4516
4230
  }
@@ -4523,7 +4237,7 @@
4523
4237
  function emitStop(self) {
4524
4238
  self.emit("stop");
4525
4239
  }
4526
- class StatWatcher extends node_events_1.EventEmitter {
4240
+ class StatWatcher extends events_1.EventEmitter {
4527
4241
  constructor(vol) {
4528
4242
  super();
4529
4243
  this.onInterval = () => {
@@ -4548,7 +4262,7 @@
4548
4262
  return false;
4549
4263
  }
4550
4264
  start(path, persistent = true, interval = 5007) {
4551
- this.filename = (0, util_1.pathToFilename)(path);
4265
+ this.filename = (0, util_2.pathToFilename)(path);
4552
4266
  this.setTimeout = persistent
4553
4267
  ? setTimeout.bind(
4554
4268
  typeof globalThis !== "undefined" ? globalThis : global,
@@ -4571,7 +4285,7 @@
4571
4285
  pool = (0, buffer_1.bufferAllocUnsafe)(poolSize);
4572
4286
  pool.used = 0;
4573
4287
  }
4574
- util.inherits(FsReadStream, node_stream_1.Readable);
4288
+ (0, util_1.inherits)(FsReadStream, stream_1.Readable);
4575
4289
  exports.ReadStream = FsReadStream;
4576
4290
  function FsReadStream(vol, path, options) {
4577
4291
  if (!(this instanceof FsReadStream))
@@ -4580,8 +4294,8 @@
4580
4294
  options = Object.assign({}, (0, options_1.getOptions)(options, {}));
4581
4295
  if (options.highWaterMark === undefined)
4582
4296
  options.highWaterMark = 64 * 1024;
4583
- node_stream_1.Readable.call(this, options);
4584
- this.path = (0, util_1.pathToFilename)(path);
4297
+ stream_1.Readable.call(this, options);
4298
+ this.path = (0, util_2.pathToFilename)(path);
4585
4299
  this.fd =
4586
4300
  options.fd === undefined
4587
4301
  ? null
@@ -4696,15 +4410,15 @@
4696
4410
  function closeOnOpen(fd) {
4697
4411
  this.close();
4698
4412
  }
4699
- util.inherits(FsWriteStream, node_stream_1.Writable);
4413
+ (0, util_1.inherits)(FsWriteStream, stream_1.Writable);
4700
4414
  exports.WriteStream = FsWriteStream;
4701
4415
  function FsWriteStream(vol, path, options) {
4702
4416
  if (!(this instanceof FsWriteStream))
4703
4417
  return new FsWriteStream(vol, path, options);
4704
4418
  this._vol = vol;
4705
4419
  options = Object.assign({}, (0, options_1.getOptions)(options, {}));
4706
- node_stream_1.Writable.call(this, options);
4707
- this.path = (0, util_1.pathToFilename)(path);
4420
+ stream_1.Writable.call(this, options);
4421
+ this.path = (0, util_2.pathToFilename)(path);
4708
4422
  this.fd =
4709
4423
  options.fd === undefined
4710
4424
  ? null
@@ -4831,7 +4545,7 @@
4831
4545
  };
4832
4546
  FsWriteStream.prototype._destroy = FsReadStream.prototype._destroy;
4833
4547
  FsWriteStream.prototype.destroySoon = FsWriteStream.prototype.end;
4834
- class FSWatcher extends node_events_1.EventEmitter {
4548
+ class FSWatcher extends events_1.EventEmitter {
4835
4549
  constructor(vol) {
4836
4550
  super();
4837
4551
  this._filename = "";
@@ -4861,8 +4575,8 @@
4861
4575
  recursive = false,
4862
4576
  encoding = encoding_1.ENCODING_UTF8,
4863
4577
  ) {
4864
- this._filename = (0, util_1.pathToFilename)(path);
4865
- this._steps = (0, util_2.filenameToSteps)(this._filename);
4578
+ this._filename = (0, util_2.pathToFilename)(path);
4579
+ this._steps = (0, util_3.filenameToSteps)(this._filename);
4866
4580
  this._filenameEncoded = (0, encoding_1.strToEncoding)(this._filename);
4867
4581
  this._recursive = recursive;
4868
4582
  this._encoding = encoding;
@@ -4881,7 +4595,7 @@
4881
4595
  const filepath = link.getPath();
4882
4596
  const node = link.getNode();
4883
4597
  const onNodeChange = () => {
4884
- let filename = relative(this._filename, filepath);
4598
+ let filename = pathRelative(this._filename, filepath);
4885
4599
  if (!filename) filename = this._getName();
4886
4600
  return this.emit("change", "change", filename);
4887
4601
  };
@@ -4898,7 +4612,7 @@
4898
4612
  this.emit(
4899
4613
  "change",
4900
4614
  "rename",
4901
- relative(this._filename, l.getPath()),
4615
+ pathRelative(this._filename, l.getPath()),
4902
4616
  );
4903
4617
  watchLinkNodeChanged(l);
4904
4618
  watchLinkChildrenChanged(l);
@@ -4921,7 +4635,7 @@
4921
4635
  this.emit(
4922
4636
  "change",
4923
4637
  "rename",
4924
- relative(this._filename, l.getPath()),
4638
+ pathRelative(this._filename, l.getPath()),
4925
4639
  );
4926
4640
  };
4927
4641
  for (const [name, childLink] of link.children.entries()) {
@@ -4968,12 +4682,12 @@
4968
4682
  }
4969
4683
  exports.FSWatcher = FSWatcher;
4970
4684
  },
4971
- 516: (__unused_webpack_module, exports, __nccwpck_require__) => {
4685
+ 354: (__unused_webpack_module, exports, __nccwpck_require__) => {
4972
4686
  "use strict";
4973
4687
  Object.defineProperty(exports, "__esModule", { value: true });
4974
4688
  exports.toTreeSync = void 0;
4975
4689
  const tree_dump_1 = __nccwpck_require__(752);
4976
- const util_1 = __nccwpck_require__(775);
4690
+ const util_1 = __nccwpck_require__(415);
4977
4691
  const toTreeSync = (fs, opts = {}) => {
4978
4692
  const separator = opts.separator || "/";
4979
4693
  let dir = opts.dir || separator;
@@ -5007,7 +4721,7 @@
5007
4721
  };
5008
4722
  exports.toTreeSync = toTreeSync;
5009
4723
  },
5010
- 225: (__unused_webpack_module, exports, __nccwpck_require__) => {
4724
+ 132: (__unused_webpack_module, exports, __nccwpck_require__) => {
5011
4725
  "use strict";
5012
4726
  Object.defineProperty(exports, "__esModule", { value: true });
5013
4727
  exports.createProcess = createProcess;
@@ -5033,7 +4747,7 @@
5033
4747
  }
5034
4748
  exports["default"] = createProcess();
5035
4749
  },
5036
- 38: (__unused_webpack_module, exports) => {
4750
+ 690: (__unused_webpack_module, exports) => {
5037
4751
  "use strict";
5038
4752
  Object.defineProperty(exports, "__esModule", { value: true });
5039
4753
  exports["default"] =
@@ -5044,7 +4758,7 @@
5044
4758
  .then(() => cb())
5045
4759
  .catch(() => {});
5046
4760
  },
5047
- 697: (__unused_webpack_module, exports) => {
4761
+ 488: (__unused_webpack_module, exports) => {
5048
4762
  "use strict";
5049
4763
  Object.defineProperty(exports, "__esModule", { value: true });
5050
4764
  function setTimeoutUnref(callback, time, args) {
@@ -5058,6 +4772,326 @@
5058
4772
  }
5059
4773
  exports["default"] = setTimeoutUnref;
5060
4774
  },
4775
+ 975: (__unused_webpack_module, exports, __nccwpck_require__) => {
4776
+ "use strict";
4777
+ Object.defineProperty(exports, "__esModule", { value: true });
4778
+ exports.Buffer = void 0;
4779
+ var node_buffer_1 = __nccwpck_require__(573);
4780
+ Object.defineProperty(exports, "Buffer", {
4781
+ enumerable: true,
4782
+ get: function () {
4783
+ return node_buffer_1.Buffer;
4784
+ },
4785
+ });
4786
+ },
4787
+ 104: (__unused_webpack_module, exports, __nccwpck_require__) => {
4788
+ "use strict";
4789
+ Object.defineProperty(exports, "__esModule", { value: true });
4790
+ exports.EventEmitter = void 0;
4791
+ var node_events_1 = __nccwpck_require__(474);
4792
+ Object.defineProperty(exports, "EventEmitter", {
4793
+ enumerable: true,
4794
+ get: function () {
4795
+ return node_events_1.EventEmitter;
4796
+ },
4797
+ });
4798
+ },
4799
+ 913: (__unused_webpack_module, exports, __nccwpck_require__) => {
4800
+ "use strict";
4801
+ Object.defineProperty(exports, "__esModule", { value: true });
4802
+ exports.bufferFrom = exports.bufferAllocUnsafe = exports.Buffer = void 0;
4803
+ const buffer_1 = __nccwpck_require__(975);
4804
+ Object.defineProperty(exports, "Buffer", {
4805
+ enumerable: true,
4806
+ get: function () {
4807
+ return buffer_1.Buffer;
4808
+ },
4809
+ });
4810
+ function bufferV0P12Ponyfill(arg0, ...args) {
4811
+ return new buffer_1.Buffer(arg0, ...args);
4812
+ }
4813
+ const bufferAllocUnsafe =
4814
+ buffer_1.Buffer.allocUnsafe || bufferV0P12Ponyfill;
4815
+ exports.bufferAllocUnsafe = bufferAllocUnsafe;
4816
+ const bufferFrom = buffer_1.Buffer.from || bufferV0P12Ponyfill;
4817
+ exports.bufferFrom = bufferFrom;
4818
+ },
4819
+ 891: (__unused_webpack_module, exports, __nccwpck_require__) => {
4820
+ "use strict";
4821
+ Object.defineProperty(exports, "__esModule", { value: true });
4822
+ exports.AssertionError =
4823
+ exports.RangeError =
4824
+ exports.TypeError =
4825
+ exports.Error =
4826
+ void 0;
4827
+ exports.message = message;
4828
+ exports.E = E;
4829
+ const util_1 = __nccwpck_require__(309);
4830
+ const kCode = typeof Symbol === "undefined" ? "_kCode" : Symbol("code");
4831
+ const messages = {};
4832
+ function makeNodeError(Base) {
4833
+ return class NodeError extends Base {
4834
+ constructor(key, ...args) {
4835
+ super(message(key, args));
4836
+ this.code = key;
4837
+ this[kCode] = key;
4838
+ this.name = `${super.name} [${this[kCode]}]`;
4839
+ }
4840
+ };
4841
+ }
4842
+ const g = typeof globalThis !== "undefined" ? globalThis : global;
4843
+ class AssertionError extends g.Error {
4844
+ constructor(options) {
4845
+ if (typeof options !== "object" || options === null) {
4846
+ throw new exports.TypeError(
4847
+ "ERR_INVALID_ARG_TYPE",
4848
+ "options",
4849
+ "object",
4850
+ );
4851
+ }
4852
+ if (options.message) {
4853
+ super(options.message);
4854
+ } else {
4855
+ super(
4856
+ `${(0, util_1.inspect)(options.actual).slice(0, 128)} ` +
4857
+ `${options.operator} ${(0, util_1.inspect)(options.expected).slice(0, 128)}`,
4858
+ );
4859
+ }
4860
+ this.generatedMessage = !options.message;
4861
+ this.name = "AssertionError [ERR_ASSERTION]";
4862
+ this.code = "ERR_ASSERTION";
4863
+ this.actual = options.actual;
4864
+ this.expected = options.expected;
4865
+ this.operator = options.operator;
4866
+ exports.Error.captureStackTrace(this, options.stackStartFunction);
4867
+ }
4868
+ }
4869
+ exports.AssertionError = AssertionError;
4870
+ function message(key, args) {
4871
+ if (typeof key !== "string")
4872
+ throw new exports.Error("Error message key must be a string");
4873
+ const msg = messages[key];
4874
+ if (!msg)
4875
+ throw new exports.Error(
4876
+ `An invalid error message key was used: ${key}.`,
4877
+ );
4878
+ let fmt;
4879
+ if (typeof msg === "function") {
4880
+ fmt = msg;
4881
+ } else {
4882
+ fmt = util_1.format;
4883
+ if (args === undefined || args.length === 0) return msg;
4884
+ args.unshift(msg);
4885
+ }
4886
+ return String(fmt.apply(null, args));
4887
+ }
4888
+ function E(sym, val) {
4889
+ messages[sym] = typeof val === "function" ? val : String(val);
4890
+ }
4891
+ exports.Error = makeNodeError(g.Error);
4892
+ exports.TypeError = makeNodeError(g.TypeError);
4893
+ exports.RangeError = makeNodeError(g.RangeError);
4894
+ E("ERR_DIR_CLOSED", "Directory handle was closed");
4895
+ E(
4896
+ "ERR_DIR_CONCURRENT_OPERATION",
4897
+ "Cannot do synchronous work on directory handle with concurrent asynchronous operations",
4898
+ );
4899
+ E(
4900
+ "ERR_INVALID_FILE_URL_HOST",
4901
+ 'File URL host must be "localhost" or empty on %s',
4902
+ );
4903
+ E("ERR_INVALID_FILE_URL_PATH", "File URL path %s");
4904
+ E(
4905
+ "ERR_INVALID_OPT_VALUE",
4906
+ (name, value) =>
4907
+ `The value "${String(value)}" is invalid for option "${name}"`,
4908
+ );
4909
+ E(
4910
+ "ERR_INVALID_OPT_VALUE_ENCODING",
4911
+ (value) =>
4912
+ `The value "${String(value)}" is invalid for option "encoding"`,
4913
+ );
4914
+ E("ERR_INVALID_ARG_VALUE", "Unable to open file as blob");
4915
+ },
4916
+ 606: (__unused_webpack_module, exports, __nccwpck_require__) => {
4917
+ "use strict";
4918
+ Object.defineProperty(exports, "__esModule", { value: true });
4919
+ exports.basename =
4920
+ exports.isAbsolute =
4921
+ exports.normalize =
4922
+ exports.dirname =
4923
+ exports.relative =
4924
+ exports.join =
4925
+ exports.posix =
4926
+ exports.sep =
4927
+ exports.resolve =
4928
+ void 0;
4929
+ var node_path_1 = __nccwpck_require__(760);
4930
+ Object.defineProperty(exports, "resolve", {
4931
+ enumerable: true,
4932
+ get: function () {
4933
+ return node_path_1.resolve;
4934
+ },
4935
+ });
4936
+ Object.defineProperty(exports, "sep", {
4937
+ enumerable: true,
4938
+ get: function () {
4939
+ return node_path_1.sep;
4940
+ },
4941
+ });
4942
+ Object.defineProperty(exports, "posix", {
4943
+ enumerable: true,
4944
+ get: function () {
4945
+ return node_path_1.posix;
4946
+ },
4947
+ });
4948
+ Object.defineProperty(exports, "join", {
4949
+ enumerable: true,
4950
+ get: function () {
4951
+ return node_path_1.join;
4952
+ },
4953
+ });
4954
+ Object.defineProperty(exports, "relative", {
4955
+ enumerable: true,
4956
+ get: function () {
4957
+ return node_path_1.relative;
4958
+ },
4959
+ });
4960
+ Object.defineProperty(exports, "dirname", {
4961
+ enumerable: true,
4962
+ get: function () {
4963
+ return node_path_1.dirname;
4964
+ },
4965
+ });
4966
+ Object.defineProperty(exports, "normalize", {
4967
+ enumerable: true,
4968
+ get: function () {
4969
+ return node_path_1.normalize;
4970
+ },
4971
+ });
4972
+ Object.defineProperty(exports, "isAbsolute", {
4973
+ enumerable: true,
4974
+ get: function () {
4975
+ return node_path_1.isAbsolute;
4976
+ },
4977
+ });
4978
+ Object.defineProperty(exports, "basename", {
4979
+ enumerable: true,
4980
+ get: function () {
4981
+ return node_path_1.basename;
4982
+ },
4983
+ });
4984
+ },
4985
+ 745: (__unused_webpack_module, exports, __nccwpck_require__) => {
4986
+ "use strict";
4987
+ Object.defineProperty(exports, "__esModule", { value: true });
4988
+ exports.Writable = exports.Readable = void 0;
4989
+ var node_stream_1 = __nccwpck_require__(75);
4990
+ Object.defineProperty(exports, "Readable", {
4991
+ enumerable: true,
4992
+ get: function () {
4993
+ return node_stream_1.Readable;
4994
+ },
4995
+ });
4996
+ Object.defineProperty(exports, "Writable", {
4997
+ enumerable: true,
4998
+ get: function () {
4999
+ return node_stream_1.Writable;
5000
+ },
5001
+ });
5002
+ },
5003
+ 309: (__unused_webpack_module, exports) => {
5004
+ "use strict";
5005
+ Object.defineProperty(exports, "__esModule", { value: true });
5006
+ exports.inherits = inherits;
5007
+ exports.promisify = promisify;
5008
+ exports.inspect = inspect;
5009
+ exports.format = format;
5010
+ function inherits(ctor, superCtor) {
5011
+ if (ctor === undefined || ctor === null) {
5012
+ throw new TypeError("The constructor to inherit from is not defined");
5013
+ }
5014
+ if (superCtor === undefined || superCtor === null) {
5015
+ throw new TypeError(
5016
+ "The super constructor to inherit from is not defined",
5017
+ );
5018
+ }
5019
+ ctor.super_ = superCtor;
5020
+ ctor.prototype = Object.create(superCtor.prototype, {
5021
+ constructor: {
5022
+ value: ctor,
5023
+ enumerable: false,
5024
+ writable: true,
5025
+ configurable: true,
5026
+ },
5027
+ });
5028
+ }
5029
+ function promisify(fn) {
5030
+ if (typeof fn !== "function") {
5031
+ throw new TypeError(
5032
+ 'The "original" argument must be of type function',
5033
+ );
5034
+ }
5035
+ return function (...args) {
5036
+ return new Promise((resolve, reject) => {
5037
+ fn.call(this, ...args, (err, result) => {
5038
+ if (err) {
5039
+ reject(err);
5040
+ } else {
5041
+ resolve(result);
5042
+ }
5043
+ });
5044
+ });
5045
+ };
5046
+ }
5047
+ function inspect(value) {
5048
+ if (value === null) return "null";
5049
+ if (value === undefined) return "undefined";
5050
+ if (typeof value === "string") return `'${value}'`;
5051
+ if (typeof value === "number" || typeof value === "boolean")
5052
+ return String(value);
5053
+ if (Array.isArray(value)) {
5054
+ const items = value.map((item) => inspect(item)).join(", ");
5055
+ return `[ ${items} ]`;
5056
+ }
5057
+ if (typeof value === "object") {
5058
+ const entries = Object.entries(value)
5059
+ .map(([key, val]) => `${key}: ${inspect(val)}`)
5060
+ .join(", ");
5061
+ return `{ ${entries} }`;
5062
+ }
5063
+ return String(value);
5064
+ }
5065
+ function format(template, ...args) {
5066
+ if (args.length === 0) return template;
5067
+ let result = template;
5068
+ let argIndex = 0;
5069
+ result = result.replace(/%[sdj%]/g, (match) => {
5070
+ if (argIndex >= args.length) return match;
5071
+ const arg = args[argIndex++];
5072
+ switch (match) {
5073
+ case "%s":
5074
+ return String(arg);
5075
+ case "%d":
5076
+ return Number(arg).toString();
5077
+ case "%j":
5078
+ try {
5079
+ return JSON.stringify(arg);
5080
+ } catch {
5081
+ return "[Circular]";
5082
+ }
5083
+ case "%%":
5084
+ return "%";
5085
+ default:
5086
+ return match;
5087
+ }
5088
+ });
5089
+ while (argIndex < args.length) {
5090
+ result += " " + String(args[argIndex++]);
5091
+ }
5092
+ return result;
5093
+ }
5094
+ },
5061
5095
  766: (__unused_webpack_module, exports) => {
5062
5096
  "use strict";
5063
5097
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -5939,10 +5973,6 @@
5939
5973
  });
5940
5974
  0 && 0;
5941
5975
  },
5942
- 613: (module) => {
5943
- "use strict";
5944
- module.exports = require("assert");
5945
- },
5946
5976
  573: (module) => {
5947
5977
  "use strict";
5948
5978
  module.exports = require("node:buffer");
@@ -5959,10 +5989,6 @@
5959
5989
  "use strict";
5960
5990
  module.exports = require("node:stream");
5961
5991
  },
5962
- 975: (module) => {
5963
- "use strict";
5964
- module.exports = require("node:util");
5965
- },
5966
5992
  932: (module) => {
5967
5993
  "use strict";
5968
5994
  module.exports = require("process");
@@ -5994,6 +6020,6 @@
5994
6020
  }
5995
6021
  if (typeof __nccwpck_require__ !== "undefined")
5996
6022
  __nccwpck_require__.ab = __dirname + "/";
5997
- var __webpack_exports__ = __nccwpck_require__(356);
6023
+ var __webpack_exports__ = __nccwpck_require__(905);
5998
6024
  module.exports = __webpack_exports__;
5999
6025
  })();