cdk-assets 4.3.4 → 4.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/cdk-assets.js CHANGED
@@ -755,14 +755,14 @@ var require_helpers = __commonJS({
755
755
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
756
756
  "use strict";
757
757
  var uri = require("url");
758
- var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path13, name, argument) {
759
- if (Array.isArray(path13)) {
760
- this.path = path13;
761
- this.property = path13.reduce(function(sum, item) {
758
+ var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path14, name, argument) {
759
+ if (Array.isArray(path14)) {
760
+ this.path = path14;
761
+ this.property = path14.reduce(function(sum, item) {
762
762
  return sum + makeSuffix(item);
763
763
  }, "instance");
764
- } else if (path13 !== void 0) {
765
- this.property = path13;
764
+ } else if (path14 !== void 0) {
765
+ this.property = path14;
766
766
  }
767
767
  if (message) {
768
768
  this.message = message;
@@ -855,16 +855,16 @@ var require_helpers = __commonJS({
855
855
  name: { value: "SchemaError", enumerable: false }
856
856
  }
857
857
  );
858
- var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path13, base, schemas) {
858
+ var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path14, base, schemas) {
859
859
  this.schema = schema;
860
860
  this.options = options;
861
- if (Array.isArray(path13)) {
862
- this.path = path13;
863
- this.propertyPath = path13.reduce(function(sum, item) {
861
+ if (Array.isArray(path14)) {
862
+ this.path = path14;
863
+ this.propertyPath = path14.reduce(function(sum, item) {
864
864
  return sum + makeSuffix(item);
865
865
  }, "instance");
866
866
  } else {
867
- this.propertyPath = path13;
867
+ this.propertyPath = path14;
868
868
  }
869
869
  this.base = base;
870
870
  this.schemas = schemas;
@@ -873,10 +873,10 @@ var require_helpers = __commonJS({
873
873
  return uri.resolve(this.base, target);
874
874
  }, "resolve");
875
875
  SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
876
- var path13 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
876
+ var path14 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
877
877
  var id = schema.$id || schema.id;
878
878
  var base = uri.resolve(this.base, id || "");
879
- var ctx = new SchemaContext(schema, this.options, path13, base, Object.create(this.schemas));
879
+ var ctx = new SchemaContext(schema, this.options, path14, base, Object.create(this.schemas));
880
880
  if (id && !ctx.schemas[base]) {
881
881
  ctx.schemas[base] = schema;
882
882
  }
@@ -4008,7 +4008,7 @@ var require_semver2 = __commonJS({
4008
4008
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4009
4009
  var require_cli_version = __commonJS({
4010
4010
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4011
- module2.exports = { version: "2.1104.0" };
4011
+ module2.exports = { version: "2.1106.1" };
4012
4012
  }
4013
4013
  });
4014
4014
 
@@ -4343,7 +4343,7 @@ var require_cloud_assembly_schema = __commonJS({
4343
4343
  type: "string"
4344
4344
  },
4345
4345
  metadata: {
4346
- description: "Associated metadata. (Default - no metadata.)",
4346
+ description: "Associated metadata.\n\nMetadata can be stored directly in the assembly manifest, as well as in a\nseparate file (see `additionalMetadataFile`). It should prefer to be stored\nin the additional file, as that will reduce the size of the assembly\nmanifest in cases of a lot of metdata (which CDK does emit by default). (Default - no metadata.)",
4347
4347
  type: "object",
4348
4348
  additionalProperties: {
4349
4349
  type: "array",
@@ -4352,6 +4352,10 @@ var require_cloud_assembly_schema = __commonJS({
4352
4352
  }
4353
4353
  }
4354
4354
  },
4355
+ additionalMetadataFile: {
4356
+ description: "A file with additional metadata entries.\n\nThe schema of this file is exactly the same as the type of the `metadata` field.\nIn other words, that file contains an object mapping construct paths to arrays\nof metadata entries. (Default - no additional metadata)",
4357
+ type: "string"
4358
+ },
4355
4359
  dependencies: {
4356
4360
  description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
4357
4361
  type: "array",
@@ -5996,9 +6000,9 @@ var require_integ_schema = __commonJS({
5996
6000
  var require_version = __commonJS({
5997
6001
  "../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
5998
6002
  module2.exports = {
5999
- schemaHash: "1b06659a117c44714e2e52854571bb1b45b765b277bb1c208bc4b7ea01f6a684",
6003
+ schemaHash: "22c511a4ddd185761b8d56ac21d48c8384873ffe4b953b3567654746f8dd26f1",
6000
6004
  $comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
6001
- revision: 50
6005
+ revision: 52
6002
6006
  };
6003
6007
  }
6004
6008
  });
@@ -6133,20 +6137,21 @@ var init_manifest = __esm({
6133
6137
  `${VERSION_MISMATCH}: Maximum schema version supported is ${maxSupported}.x.x, but found ${actual}${cliWarning}`
6134
6138
  );
6135
6139
  }
6136
- const validator = new jsonschema.Validator();
6137
- const result = validator.validate(manifest, schema, {
6138
- // does exist but is not in the TypeScript definitions
6139
- nestedErrors: true,
6140
- allowUnknownAttributes: false,
6141
- preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6142
- });
6143
- let errors = result.errors;
6144
- if (options?.skipEnumCheck) {
6145
- errors = stripEnumErrors(errors);
6146
- }
6147
- if (errors.length > 0) {
6148
- throw new Error(`Invalid assembly manifest:
6140
+ if (options?.validateSchema ?? process.env.TESTING_CDK === "1") {
6141
+ const validator = new jsonschema.Validator();
6142
+ const result = validator.validate(manifest, schema, {
6143
+ nestedErrors: true,
6144
+ allowUnknownAttributes: false,
6145
+ preValidateProperty: _Manifest.validateAssumeRoleAdditionalOptions
6146
+ });
6147
+ let errors = result.errors;
6148
+ if (options?.skipEnumCheck) {
6149
+ errors = stripEnumErrors(errors);
6150
+ }
6151
+ if (errors.length > 0) {
6152
+ throw new Error(`Invalid assembly manifest:
6149
6153
  ${errors.map((e4) => e4.stack).join("\n")}`);
6154
+ }
6150
6155
  }
6151
6156
  }
6152
6157
  static saveManifest(manifest, filePath, schema, preprocess) {
@@ -6392,14 +6397,16 @@ var cloud_artifact_exports = {};
6392
6397
  __export(cloud_artifact_exports, {
6393
6398
  CloudArtifact: () => CloudArtifact
6394
6399
  });
6395
- var cxschema, CloudArtifact;
6400
+ var fs4, path3, cxschema, CloudArtifact;
6396
6401
  var init_cloud_artifact = __esm({
6397
6402
  "../@aws-cdk/cloud-assembly-api/lib/cloud-artifact.ts"() {
6398
6403
  "use strict";
6404
+ fs4 = __toESM(require("fs"));
6405
+ path3 = __toESM(require("path"));
6399
6406
  cxschema = __toESM(require_lib2());
6400
6407
  init_metadata();
6401
6408
  init_error();
6402
- CloudArtifact = class {
6409
+ CloudArtifact = class _CloudArtifact {
6403
6410
  constructor(assembly, id, manifest) {
6404
6411
  this.assembly = assembly;
6405
6412
  this.id = id;
@@ -6410,6 +6417,31 @@ var init_cloud_artifact = __esm({
6410
6417
  static {
6411
6418
  __name(this, "CloudArtifact");
6412
6419
  }
6420
+ /**
6421
+ * Read the metadata for the given artifact
6422
+ *
6423
+ * HISTORICAL OR PRIVATE USE ONLY
6424
+ *
6425
+ * This is publicly exposed as a static function for downstream libraries that
6426
+ * don't use the `CloudAssembly`/`CloudArtifact` API, yet still need to read
6427
+ * an artifact's metadata.
6428
+ *
6429
+ * 99% of consumers should just access `artifact.metadata`.
6430
+ */
6431
+ static readMetadata(assemblyDirectory, x4) {
6432
+ const ret = {};
6433
+ if (x4.additionalMetadataFile) {
6434
+ Object.assign(ret, JSON.parse(fs4.readFileSync(path3.join(assemblyDirectory, x4.additionalMetadataFile), "utf-8")));
6435
+ }
6436
+ for (const [p4, entries] of Object.entries(x4.metadata ?? {})) {
6437
+ if (ret[p4]) {
6438
+ ret[p4].push(...entries);
6439
+ } else {
6440
+ ret[p4] = entries;
6441
+ }
6442
+ }
6443
+ return ret;
6444
+ }
6413
6445
  /**
6414
6446
  * Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
6415
6447
  *
@@ -6422,6 +6454,12 @@ var init_cloud_artifact = __esm({
6422
6454
  void assembly, void id, void artifact;
6423
6455
  throw new CloudAssemblyError("Implementation not overridden yet");
6424
6456
  }
6457
+ /**
6458
+ * Returns the metadata associated with this Cloud Artifact
6459
+ */
6460
+ get metadata() {
6461
+ return _CloudArtifact.readMetadata(this.assembly.directory, this.manifest);
6462
+ }
6425
6463
  /**
6426
6464
  * Returns all the artifacts that this artifact depends on.
6427
6465
  */
@@ -6442,11 +6480,12 @@ var init_cloud_artifact = __esm({
6442
6480
  * @returns all the metadata entries of a specific type in this artifact.
6443
6481
  */
6444
6482
  findMetadataByType(type) {
6483
+ const metadata = this.metadata;
6445
6484
  const result = new Array();
6446
- for (const path13 of Object.keys(this.manifest.metadata || {})) {
6447
- for (const entry of (this.manifest.metadata || {})[path13]) {
6485
+ for (const p4 of Object.keys(metadata || {})) {
6486
+ for (const entry of (metadata || {})[p4]) {
6448
6487
  if (entry.type === type) {
6449
- result.push({ path: path13, ...entry });
6488
+ result.push({ path: p4, ...entry });
6450
6489
  }
6451
6490
  }
6452
6491
  }
@@ -6454,7 +6493,7 @@ var init_cloud_artifact = __esm({
6454
6493
  }
6455
6494
  renderMessages() {
6456
6495
  const messages = new Array();
6457
- for (const [id, metadata] of Object.entries(this.manifest.metadata || {})) {
6496
+ for (const [id, metadata] of Object.entries(this.metadata || {})) {
6458
6497
  for (const entry of metadata) {
6459
6498
  let level;
6460
6499
  switch (entry.type) {
@@ -6492,12 +6531,12 @@ var asset_manifest_artifact_exports = {};
6492
6531
  __export(asset_manifest_artifact_exports, {
6493
6532
  AssetManifestArtifact: () => AssetManifestArtifact
6494
6533
  });
6495
- var fs4, path3, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6534
+ var fs5, path4, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6496
6535
  var init_asset_manifest_artifact = __esm({
6497
6536
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/asset-manifest-artifact.ts"() {
6498
6537
  "use strict";
6499
- fs4 = __toESM(require("fs"));
6500
- path3 = __toESM(require("path"));
6538
+ fs5 = __toESM(require("fs"));
6539
+ path4 = __toESM(require("path"));
6501
6540
  init_cloud_artifact();
6502
6541
  init_error();
6503
6542
  ASSET_MANIFEST_ARTIFACT_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
@@ -6531,7 +6570,7 @@ var init_asset_manifest_artifact = __esm({
6531
6570
  if (!properties.file) {
6532
6571
  throw new CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
6533
6572
  }
6534
- this.file = path3.resolve(this.assembly.directory, properties.file);
6573
+ this.file = path4.resolve(this.assembly.directory, properties.file);
6535
6574
  this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
6536
6575
  this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
6537
6576
  }
@@ -6542,7 +6581,7 @@ var init_asset_manifest_artifact = __esm({
6542
6581
  if (this._contents !== void 0) {
6543
6582
  return this._contents;
6544
6583
  }
6545
- const contents = this._contents = JSON.parse(fs4.readFileSync(this.file, "utf-8"));
6584
+ const contents = this._contents = JSON.parse(fs5.readFileSync(this.file, "utf-8"));
6546
6585
  return contents;
6547
6586
  }
6548
6587
  };
@@ -6607,12 +6646,12 @@ var cloudformation_artifact_exports = {};
6607
6646
  __export(cloudformation_artifact_exports, {
6608
6647
  CloudFormationStackArtifact: () => CloudFormationStackArtifact
6609
6648
  });
6610
- var fs5, path4, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6649
+ var fs6, path5, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6611
6650
  var init_cloudformation_artifact = __esm({
6612
6651
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/cloudformation-artifact.ts"() {
6613
6652
  "use strict";
6614
- fs5 = __toESM(require("fs"));
6615
- path4 = __toESM(require("path"));
6653
+ fs6 = __toESM(require("fs"));
6654
+ path5 = __toESM(require("path"));
6616
6655
  cxschema2 = __toESM(require_lib2());
6617
6656
  init_cloud_artifact();
6618
6657
  init_environment();
@@ -6676,14 +6715,14 @@ var init_cloudformation_artifact = __esm({
6676
6715
  * Full path to the template file
6677
6716
  */
6678
6717
  get templateFullPath() {
6679
- return path4.join(this.assembly.directory, this.templateFile);
6718
+ return path5.join(this.assembly.directory, this.templateFile);
6680
6719
  }
6681
6720
  /**
6682
6721
  * The CloudFormation template for this stack.
6683
6722
  */
6684
6723
  get template() {
6685
6724
  if (this._template === void 0) {
6686
- this._template = JSON.parse(fs5.readFileSync(this.templateFullPath, "utf-8"));
6725
+ this._template = JSON.parse(fs6.readFileSync(this.templateFullPath, "utf-8"));
6687
6726
  }
6688
6727
  return this._template;
6689
6728
  }
@@ -6701,11 +6740,11 @@ var nested_cloud_assembly_artifact_exports = {};
6701
6740
  __export(nested_cloud_assembly_artifact_exports, {
6702
6741
  NestedCloudAssemblyArtifact: () => NestedCloudAssemblyArtifact
6703
6742
  });
6704
- var path5, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6743
+ var path6, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6705
6744
  var init_nested_cloud_assembly_artifact = __esm({
6706
6745
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/nested-cloud-assembly-artifact.ts"() {
6707
6746
  "use strict";
6708
- path5 = __toESM(require("path"));
6747
+ path6 = __toESM(require("path"));
6709
6748
  init_cloud_artifact();
6710
6749
  NESTED_CLOUD_ASSEMBLY_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
6711
6750
  NestedCloudAssemblyArtifact = class extends CloudArtifact {
@@ -6742,7 +6781,7 @@ var init_nested_cloud_assembly_artifact = __esm({
6742
6781
  * Full path to the nested assembly directory
6743
6782
  */
6744
6783
  get fullPath() {
6745
- return path5.join(this.assembly.directory, this.directoryName);
6784
+ return path6.join(this.assembly.directory, this.directoryName);
6746
6785
  }
6747
6786
  };
6748
6787
  Object.defineProperty(NestedCloudAssemblyArtifact.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
@@ -6893,26 +6932,26 @@ function determineOutputDirectory(outdir) {
6893
6932
  if (outdir) {
6894
6933
  return outdir;
6895
6934
  }
6896
- const tmpDir = fs6.mkdtempSync(path6.join(fs6.realpathSync(os3.tmpdir()), "cdk.out"));
6935
+ const tmpDir = fs7.mkdtempSync(path7.join(fs7.realpathSync(os3.tmpdir()), "cdk.out"));
6897
6936
  TEMPORARY_ASSEMBLY_DIRS.push(tmpDir);
6898
6937
  return outdir ?? tmpDir;
6899
6938
  }
6900
6939
  function ensureDirSync(dir) {
6901
- if (fs6.existsSync(dir)) {
6902
- if (!fs6.statSync(dir).isDirectory()) {
6940
+ if (fs7.existsSync(dir)) {
6941
+ if (!fs7.statSync(dir).isDirectory()) {
6903
6942
  throw new CloudAssemblyError(`${dir} must be a directory`);
6904
6943
  }
6905
6944
  } else {
6906
- fs6.mkdirSync(dir, { recursive: true });
6945
+ fs7.mkdirSync(dir, { recursive: true });
6907
6946
  }
6908
6947
  }
6909
- var fs6, os3, path6, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6948
+ var fs7, os3, path7, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6910
6949
  var init_cloud_assembly2 = __esm({
6911
6950
  "../@aws-cdk/cloud-assembly-api/lib/cloud-assembly.ts"() {
6912
6951
  "use strict";
6913
- fs6 = __toESM(require("fs"));
6952
+ fs7 = __toESM(require("fs"));
6914
6953
  os3 = __toESM(require("os"));
6915
- path6 = __toESM(require("path"));
6954
+ path7 = __toESM(require("path"));
6916
6955
  cxschema4 = __toESM(require_lib2());
6917
6956
  init_cloudformation_artifact();
6918
6957
  init_nested_cloud_assembly_artifact();
@@ -6976,7 +7015,7 @@ var init_cloud_assembly2 = __esm({
6976
7015
  */
6977
7016
  static cleanupTemporaryDirectories() {
6978
7017
  for (const dir of TEMPORARY_ASSEMBLY_DIRS) {
6979
- fs6.rmSync(dir, { recursive: true, force: true });
7018
+ fs7.rmSync(dir, { recursive: true, force: true });
6980
7019
  }
6981
7020
  TEMPORARY_ASSEMBLY_DIRS.splice(0, TEMPORARY_ASSEMBLY_DIRS.length);
6982
7021
  }
@@ -6986,7 +7025,7 @@ var init_cloud_assembly2 = __esm({
6986
7025
  */
6987
7026
  constructor(directory, loadOptions) {
6988
7027
  this.directory = directory;
6989
- this.manifest = cxschema4.Manifest.loadAssemblyManifest(path6.join(directory, MANIFEST_FILE), loadOptions);
7028
+ this.manifest = cxschema4.Manifest.loadAssemblyManifest(path7.join(directory, MANIFEST_FILE), loadOptions);
6990
7029
  this.version = this.manifest.version;
6991
7030
  this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
6992
7031
  this.runtime = this.manifest.runtime || { libraries: {} };
@@ -7187,9 +7226,9 @@ var init_cloud_assembly2 = __esm({
7187
7226
  missing: this.missing.length > 0 ? this.missing : void 0
7188
7227
  };
7189
7228
  manifest = filterUndefined(manifest);
7190
- const manifestFilePath = path6.join(this.outdir, MANIFEST_FILE);
7229
+ const manifestFilePath = path7.join(this.outdir, MANIFEST_FILE);
7191
7230
  cxschema4.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
7192
- fs6.writeFileSync(path6.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7231
+ fs7.writeFileSync(path7.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7193
7232
  return new CloudAssembly(this.outdir);
7194
7233
  }
7195
7234
  /**
@@ -7197,7 +7236,7 @@ var init_cloud_assembly2 = __esm({
7197
7236
  */
7198
7237
  createNestedAssembly(artifactId, displayName) {
7199
7238
  const directoryName = artifactId;
7200
- const innerAsmDir = path6.join(this.outdir, directoryName);
7239
+ const innerAsmDir = path7.join(this.outdir, directoryName);
7201
7240
  this.addArtifact(artifactId, {
7202
7241
  type: cxschema4.ArtifactType.NESTED_CLOUD_ASSEMBLY,
7203
7242
  properties: {
@@ -7215,7 +7254,7 @@ var init_cloud_assembly2 = __esm({
7215
7254
  * Delete the cloud assembly directory
7216
7255
  */
7217
7256
  delete() {
7218
- fs6.rmSync(this.outdir, { recursive: true, force: true });
7257
+ fs7.rmSync(this.outdir, { recursive: true, force: true });
7219
7258
  }
7220
7259
  };
7221
7260
  __name(filterUndefined, "filterUndefined");
@@ -7503,11 +7542,11 @@ async function repositoryUri(ecr, repositoryName) {
7503
7542
  return void 0;
7504
7543
  }
7505
7544
  }
7506
- var path7, ContainerImageAssetHandler, ContainerImageBuilder;
7545
+ var path8, ContainerImageAssetHandler, ContainerImageBuilder;
7507
7546
  var init_container_images = __esm({
7508
7547
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
7509
7548
  "use strict";
7510
- path7 = __toESM(require("path"));
7549
+ path8 = __toESM(require("path"));
7511
7550
  init_client_options();
7512
7551
  init_progress();
7513
7552
  init_placeholders2();
@@ -7678,7 +7717,7 @@ var init_container_images = __esm({
7678
7717
  `'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
7679
7718
  );
7680
7719
  }
7681
- const fullPath = path7.resolve(this.workDir, source.directory);
7720
+ const fullPath = path8.resolve(this.workDir, source.directory);
7682
7721
  this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
7683
7722
  await this.docker.build({
7684
7723
  directory: fullPath,
@@ -7748,11 +7787,11 @@ var require_Mime = __commonJS({
7748
7787
  }
7749
7788
  }
7750
7789
  };
7751
- Mime.prototype.getType = function(path13) {
7752
- path13 = String(path13);
7753
- let last = path13.replace(/^.*[/\\]/, "").toLowerCase();
7790
+ Mime.prototype.getType = function(path14) {
7791
+ path14 = String(path14);
7792
+ let last = path14.replace(/^.*[/\\]/, "").toLowerCase();
7754
7793
  let ext2 = last.replace(/^.*\./, "").toLowerCase();
7755
- let hasPath = last.length < path13.length;
7794
+ let hasPath = last.length < path14.length;
7756
7795
  let hasDot = ext2.length < last.length - 1;
7757
7796
  return (hasDot || !hasPath) && this._types[ext2] || null;
7758
7797
  };
@@ -8019,10 +8058,10 @@ var init_esm2 = __esm({
8019
8058
  }
8020
8059
  });
8021
8060
 
8022
- // ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
8061
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8023
8062
  var MAX_PATTERN_LENGTH, assertValidPattern;
8024
8063
  var init_assert_valid_pattern = __esm({
8025
- "../../node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8064
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8026
8065
  MAX_PATTERN_LENGTH = 1024 * 64;
8027
8066
  assertValidPattern = /* @__PURE__ */ __name((pattern) => {
8028
8067
  if (typeof pattern !== "string") {
@@ -8035,10 +8074,10 @@ var init_assert_valid_pattern = __esm({
8035
8074
  }
8036
8075
  });
8037
8076
 
8038
- // ../../node_modules/minimatch/dist/esm/brace-expressions.js
8077
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
8039
8078
  var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
8040
8079
  var init_brace_expressions = __esm({
8041
- "../../node_modules/minimatch/dist/esm/brace-expressions.js"() {
8080
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
8042
8081
  posixClasses = {
8043
8082
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
8044
8083
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -8149,10 +8188,10 @@ var init_brace_expressions = __esm({
8149
8188
  }
8150
8189
  });
8151
8190
 
8152
- // ../../node_modules/minimatch/dist/esm/unescape.js
8191
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
8153
8192
  var unescape;
8154
8193
  var init_unescape = __esm({
8155
- "../../node_modules/minimatch/dist/esm/unescape.js"() {
8194
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
8156
8195
  unescape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
8157
8196
  if (magicalBraces) {
8158
8197
  return windowsPathsNoEscape ? s4.replace(/\[([^\/\\])\]/g, "$1") : s4.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
@@ -8162,10 +8201,10 @@ var init_unescape = __esm({
8162
8201
  }
8163
8202
  });
8164
8203
 
8165
- // ../../node_modules/minimatch/dist/esm/ast.js
8204
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
8166
8205
  var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
8167
8206
  var init_ast = __esm({
8168
- "../../node_modules/minimatch/dist/esm/ast.js"() {
8207
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
8169
8208
  init_brace_expressions();
8170
8209
  init_unescape();
8171
8210
  types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
@@ -8648,10 +8687,10 @@ var init_ast = __esm({
8648
8687
  }
8649
8688
  });
8650
8689
 
8651
- // ../../node_modules/minimatch/dist/esm/escape.js
8690
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
8652
8691
  var escape;
8653
8692
  var init_escape = __esm({
8654
- "../../node_modules/minimatch/dist/esm/escape.js"() {
8693
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
8655
8694
  escape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
8656
8695
  if (magicalBraces) {
8657
8696
  return windowsPathsNoEscape ? s4.replace(/[?*()[\]{}]/g, "[$&]") : s4.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -8661,10 +8700,10 @@ var init_escape = __esm({
8661
8700
  }
8662
8701
  });
8663
8702
 
8664
- // ../../node_modules/minimatch/dist/esm/index.js
8665
- var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path8, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
8703
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
8704
+ var minimatch, starDotExtRE, starDotExtTest, starDotExtTestDot, starDotExtTestNocase, starDotExtTestNocaseDot, starDotStarRE, starDotStarTest, starDotStarTestDot, dotStarRE, dotStarTest, starRE, starTest, starTestDot, qmarksRE, qmarksTestNocase, qmarksTestNocaseDot, qmarksTestDot, qmarksTest, qmarksTestNoExt, qmarksTestNoExtDot, defaultPlatform, path9, sep, GLOBSTAR, qmark2, star2, twoStarDot, twoStarNoDot, filter, ext, defaults, braceExpand, makeRe, match, globMagic, regExpEscape2, Minimatch;
8666
8705
  var init_esm3 = __esm({
8667
- "../../node_modules/minimatch/dist/esm/index.js"() {
8706
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
8668
8707
  init_esm2();
8669
8708
  init_assert_valid_pattern();
8670
8709
  init_ast();
@@ -8731,11 +8770,11 @@ var init_esm3 = __esm({
8731
8770
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
8732
8771
  }, "qmarksTestNoExtDot");
8733
8772
  defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
8734
- path8 = {
8773
+ path9 = {
8735
8774
  win32: { sep: "\\" },
8736
8775
  posix: { sep: "/" }
8737
8776
  };
8738
- sep = defaultPlatform === "win32" ? path8.win32.sep : path8.posix.sep;
8777
+ sep = defaultPlatform === "win32" ? path9.win32.sep : path9.posix.sep;
8739
8778
  minimatch.sep = sep;
8740
8779
  GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
8741
8780
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -12032,12 +12071,12 @@ var init_esm6 = __esm({
12032
12071
  /**
12033
12072
  * Get the Path object referenced by the string path, resolved from this Path
12034
12073
  */
12035
- resolve(path13) {
12036
- if (!path13) {
12074
+ resolve(path14) {
12075
+ if (!path14) {
12037
12076
  return this;
12038
12077
  }
12039
- const rootPath = this.getRootString(path13);
12040
- const dir = path13.substring(rootPath.length);
12078
+ const rootPath = this.getRootString(path14);
12079
+ const dir = path14.substring(rootPath.length);
12041
12080
  const dirParts = dir.split(this.splitSep);
12042
12081
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
12043
12082
  return result;
@@ -12792,8 +12831,8 @@ var init_esm6 = __esm({
12792
12831
  /**
12793
12832
  * @internal
12794
12833
  */
12795
- getRootString(path13) {
12796
- return import_node_path.win32.parse(path13).root;
12834
+ getRootString(path14) {
12835
+ return import_node_path.win32.parse(path14).root;
12797
12836
  }
12798
12837
  /**
12799
12838
  * @internal
@@ -12842,8 +12881,8 @@ var init_esm6 = __esm({
12842
12881
  /**
12843
12882
  * @internal
12844
12883
  */
12845
- getRootString(path13) {
12846
- return path13.startsWith("/") ? "/" : "";
12884
+ getRootString(path14) {
12885
+ return path14.startsWith("/") ? "/" : "";
12847
12886
  }
12848
12887
  /**
12849
12888
  * @internal
@@ -12895,8 +12934,8 @@ var init_esm6 = __esm({
12895
12934
  *
12896
12935
  * @internal
12897
12936
  */
12898
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS } = {}) {
12899
- this.#fs = fsFromOption(fs12);
12937
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
12938
+ this.#fs = fsFromOption(fs13);
12900
12939
  if (cwd instanceof URL || cwd.startsWith("file://")) {
12901
12940
  cwd = (0, import_node_url.fileURLToPath)(cwd);
12902
12941
  }
@@ -12935,11 +12974,11 @@ var init_esm6 = __esm({
12935
12974
  /**
12936
12975
  * Get the depth of a provided path, string, or the cwd
12937
12976
  */
12938
- depth(path13 = this.cwd) {
12939
- if (typeof path13 === "string") {
12940
- path13 = this.cwd.resolve(path13);
12977
+ depth(path14 = this.cwd) {
12978
+ if (typeof path14 === "string") {
12979
+ path14 = this.cwd.resolve(path14);
12941
12980
  }
12942
- return path13.depth();
12981
+ return path14.depth();
12943
12982
  }
12944
12983
  /**
12945
12984
  * Return the cache of child entries. Exposed so subclasses can create
@@ -13426,9 +13465,9 @@ var init_esm6 = __esm({
13426
13465
  process2();
13427
13466
  return results;
13428
13467
  }
13429
- chdir(path13 = this.cwd) {
13468
+ chdir(path14 = this.cwd) {
13430
13469
  const oldCwd = this.cwd;
13431
- this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
13470
+ this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
13432
13471
  this.cwd[setAsCwd](oldCwd);
13433
13472
  }
13434
13473
  };
@@ -13457,8 +13496,8 @@ var init_esm6 = __esm({
13457
13496
  /**
13458
13497
  * @internal
13459
13498
  */
13460
- newRoot(fs12) {
13461
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13499
+ newRoot(fs13) {
13500
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13462
13501
  }
13463
13502
  /**
13464
13503
  * Return true if the provided path string is an absolute path
@@ -13489,8 +13528,8 @@ var init_esm6 = __esm({
13489
13528
  /**
13490
13529
  * @internal
13491
13530
  */
13492
- newRoot(fs12) {
13493
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13531
+ newRoot(fs13) {
13532
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13494
13533
  }
13495
13534
  /**
13496
13535
  * Return true if the provided path string is an absolute path
@@ -13824,8 +13863,8 @@ var init_processor = __esm({
13824
13863
  }
13825
13864
  // match, absolute, ifdir
13826
13865
  entries() {
13827
- return [...this.store.entries()].map(([path13, n4]) => [
13828
- path13,
13866
+ return [...this.store.entries()].map(([path14, n4]) => [
13867
+ path14,
13829
13868
  !!(n4 & 2),
13830
13869
  !!(n4 & 1)
13831
13870
  ]);
@@ -14047,9 +14086,9 @@ var init_walker = __esm({
14047
14086
  signal;
14048
14087
  maxDepth;
14049
14088
  includeChildMatches;
14050
- constructor(patterns, path13, opts) {
14089
+ constructor(patterns, path14, opts) {
14051
14090
  this.patterns = patterns;
14052
- this.path = path13;
14091
+ this.path = path14;
14053
14092
  this.opts = opts;
14054
14093
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
14055
14094
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -14068,11 +14107,11 @@ var init_walker = __esm({
14068
14107
  });
14069
14108
  }
14070
14109
  }
14071
- #ignored(path13) {
14072
- return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
14110
+ #ignored(path14) {
14111
+ return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
14073
14112
  }
14074
- #childrenIgnored(path13) {
14075
- return !!this.#ignore?.childrenIgnored?.(path13);
14113
+ #childrenIgnored(path14) {
14114
+ return !!this.#ignore?.childrenIgnored?.(path14);
14076
14115
  }
14077
14116
  // backpressure mechanism
14078
14117
  pause() {
@@ -14290,8 +14329,8 @@ var init_walker = __esm({
14290
14329
  __name(this, "GlobWalker");
14291
14330
  }
14292
14331
  matches = /* @__PURE__ */ new Set();
14293
- constructor(patterns, path13, opts) {
14294
- super(patterns, path13, opts);
14332
+ constructor(patterns, path14, opts) {
14333
+ super(patterns, path14, opts);
14295
14334
  }
14296
14335
  matchEmit(e4) {
14297
14336
  this.matches.add(e4);
@@ -14331,8 +14370,8 @@ var init_walker = __esm({
14331
14370
  __name(this, "GlobStream");
14332
14371
  }
14333
14372
  results;
14334
- constructor(patterns, path13, opts) {
14335
- super(patterns, path13, opts);
14373
+ constructor(patterns, path14, opts) {
14374
+ super(patterns, path14, opts);
14336
14375
  this.results = new Minipass({
14337
14376
  signal: this.signal,
14338
14377
  objectMode: true
@@ -14904,8 +14943,8 @@ var require_minimatch = __commonJS({
14904
14943
  return new Minimatch2(pattern, options).match(p4);
14905
14944
  };
14906
14945
  module2.exports = minimatch2;
14907
- var path13 = require_path();
14908
- minimatch2.sep = path13.sep;
14946
+ var path14 = require_path();
14947
+ minimatch2.sep = path14.sep;
14909
14948
  var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **");
14910
14949
  minimatch2.GLOBSTAR = GLOBSTAR2;
14911
14950
  var expand2 = require_brace_expansion();
@@ -15420,8 +15459,8 @@ var require_minimatch = __commonJS({
15420
15459
  if (this.empty) return f4 === "";
15421
15460
  if (f4 === "/" && partial) return true;
15422
15461
  const options = this.options;
15423
- if (path13.sep !== "/") {
15424
- f4 = f4.split(path13.sep).join("/");
15462
+ if (path14.sep !== "/") {
15463
+ f4 = f4.split(path14.sep).join("/");
15425
15464
  }
15426
15465
  f4 = f4.split(slashSplit);
15427
15466
  this.debug(this.pattern, "split", f4);
@@ -15459,13 +15498,13 @@ var require_minimatch = __commonJS({
15459
15498
  var require_readdir_glob = __commonJS({
15460
15499
  "../../node_modules/readdir-glob/index.js"(exports2, module2) {
15461
15500
  module2.exports = readdirGlob;
15462
- var fs12 = require("fs");
15501
+ var fs13 = require("fs");
15463
15502
  var { EventEmitter: EventEmitter2 } = require("events");
15464
15503
  var { Minimatch: Minimatch2 } = require_minimatch();
15465
15504
  var { resolve: resolve6 } = require("path");
15466
15505
  function readdir2(dir, strict) {
15467
15506
  return new Promise((resolve7, reject) => {
15468
- fs12.readdir(dir, { withFileTypes: true }, (err, files) => {
15507
+ fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
15469
15508
  if (err) {
15470
15509
  switch (err.code) {
15471
15510
  case "ENOTDIR":
@@ -15499,7 +15538,7 @@ var require_readdir_glob = __commonJS({
15499
15538
  __name(readdir2, "readdir");
15500
15539
  function stat(file, followSymlinks) {
15501
15540
  return new Promise((resolve7, reject) => {
15502
- const statFunc = followSymlinks ? fs12.stat : fs12.lstat;
15541
+ const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
15503
15542
  statFunc(file, (err, stats) => {
15504
15543
  if (err) {
15505
15544
  switch (err.code) {
@@ -15521,8 +15560,8 @@ var require_readdir_glob = __commonJS({
15521
15560
  });
15522
15561
  }
15523
15562
  __name(stat, "stat");
15524
- async function* exploreWalkAsync(dir, path13, followSymlinks, useStat, shouldSkip, strict) {
15525
- let files = await readdir2(path13 + dir, strict);
15563
+ async function* exploreWalkAsync(dir, path14, followSymlinks, useStat, shouldSkip, strict) {
15564
+ let files = await readdir2(path14 + dir, strict);
15526
15565
  for (const file of files) {
15527
15566
  let name = file.name;
15528
15567
  if (name === void 0) {
@@ -15531,7 +15570,7 @@ var require_readdir_glob = __commonJS({
15531
15570
  }
15532
15571
  const filename = dir + "/" + name;
15533
15572
  const relative = filename.slice(1);
15534
- const absolute = path13 + "/" + relative;
15573
+ const absolute = path14 + "/" + relative;
15535
15574
  let stats = null;
15536
15575
  if (useStat || followSymlinks) {
15537
15576
  stats = await stat(absolute, followSymlinks);
@@ -15545,7 +15584,7 @@ var require_readdir_glob = __commonJS({
15545
15584
  if (stats.isDirectory()) {
15546
15585
  if (!shouldSkip(relative)) {
15547
15586
  yield { relative, absolute, stats };
15548
- yield* exploreWalkAsync(filename, path13, followSymlinks, useStat, shouldSkip, false);
15587
+ yield* exploreWalkAsync(filename, path14, followSymlinks, useStat, shouldSkip, false);
15549
15588
  }
15550
15589
  } else {
15551
15590
  yield { relative, absolute, stats };
@@ -15553,8 +15592,8 @@ var require_readdir_glob = __commonJS({
15553
15592
  }
15554
15593
  }
15555
15594
  __name(exploreWalkAsync, "exploreWalkAsync");
15556
- async function* explore(path13, followSymlinks, useStat, shouldSkip) {
15557
- yield* exploreWalkAsync("", path13, followSymlinks, useStat, shouldSkip, true);
15595
+ async function* explore(path14, followSymlinks, useStat, shouldSkip) {
15596
+ yield* exploreWalkAsync("", path14, followSymlinks, useStat, shouldSkip, true);
15558
15597
  }
15559
15598
  __name(explore, "explore");
15560
15599
  function readOptions(options) {
@@ -17726,54 +17765,54 @@ var require_polyfills = __commonJS({
17726
17765
  }
17727
17766
  var chdir;
17728
17767
  module2.exports = patch;
17729
- function patch(fs12) {
17768
+ function patch(fs13) {
17730
17769
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
17731
- patchLchmod(fs12);
17732
- }
17733
- if (!fs12.lutimes) {
17734
- patchLutimes(fs12);
17735
- }
17736
- fs12.chown = chownFix(fs12.chown);
17737
- fs12.fchown = chownFix(fs12.fchown);
17738
- fs12.lchown = chownFix(fs12.lchown);
17739
- fs12.chmod = chmodFix(fs12.chmod);
17740
- fs12.fchmod = chmodFix(fs12.fchmod);
17741
- fs12.lchmod = chmodFix(fs12.lchmod);
17742
- fs12.chownSync = chownFixSync(fs12.chownSync);
17743
- fs12.fchownSync = chownFixSync(fs12.fchownSync);
17744
- fs12.lchownSync = chownFixSync(fs12.lchownSync);
17745
- fs12.chmodSync = chmodFixSync(fs12.chmodSync);
17746
- fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
17747
- fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
17748
- fs12.stat = statFix(fs12.stat);
17749
- fs12.fstat = statFix(fs12.fstat);
17750
- fs12.lstat = statFix(fs12.lstat);
17751
- fs12.statSync = statFixSync(fs12.statSync);
17752
- fs12.fstatSync = statFixSync(fs12.fstatSync);
17753
- fs12.lstatSync = statFixSync(fs12.lstatSync);
17754
- if (fs12.chmod && !fs12.lchmod) {
17755
- fs12.lchmod = function(path13, mode, cb) {
17770
+ patchLchmod(fs13);
17771
+ }
17772
+ if (!fs13.lutimes) {
17773
+ patchLutimes(fs13);
17774
+ }
17775
+ fs13.chown = chownFix(fs13.chown);
17776
+ fs13.fchown = chownFix(fs13.fchown);
17777
+ fs13.lchown = chownFix(fs13.lchown);
17778
+ fs13.chmod = chmodFix(fs13.chmod);
17779
+ fs13.fchmod = chmodFix(fs13.fchmod);
17780
+ fs13.lchmod = chmodFix(fs13.lchmod);
17781
+ fs13.chownSync = chownFixSync(fs13.chownSync);
17782
+ fs13.fchownSync = chownFixSync(fs13.fchownSync);
17783
+ fs13.lchownSync = chownFixSync(fs13.lchownSync);
17784
+ fs13.chmodSync = chmodFixSync(fs13.chmodSync);
17785
+ fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
17786
+ fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
17787
+ fs13.stat = statFix(fs13.stat);
17788
+ fs13.fstat = statFix(fs13.fstat);
17789
+ fs13.lstat = statFix(fs13.lstat);
17790
+ fs13.statSync = statFixSync(fs13.statSync);
17791
+ fs13.fstatSync = statFixSync(fs13.fstatSync);
17792
+ fs13.lstatSync = statFixSync(fs13.lstatSync);
17793
+ if (fs13.chmod && !fs13.lchmod) {
17794
+ fs13.lchmod = function(path14, mode, cb) {
17756
17795
  if (cb) process.nextTick(cb);
17757
17796
  };
17758
- fs12.lchmodSync = function() {
17797
+ fs13.lchmodSync = function() {
17759
17798
  };
17760
17799
  }
17761
- if (fs12.chown && !fs12.lchown) {
17762
- fs12.lchown = function(path13, uid, gid, cb) {
17800
+ if (fs13.chown && !fs13.lchown) {
17801
+ fs13.lchown = function(path14, uid, gid, cb) {
17763
17802
  if (cb) process.nextTick(cb);
17764
17803
  };
17765
- fs12.lchownSync = function() {
17804
+ fs13.lchownSync = function() {
17766
17805
  };
17767
17806
  }
17768
17807
  if (platform === "win32") {
17769
- fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : (function(fs$rename) {
17808
+ fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
17770
17809
  function rename(from, to, cb) {
17771
17810
  var start = Date.now();
17772
17811
  var backoff = 0;
17773
17812
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
17774
17813
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
17775
17814
  setTimeout(function() {
17776
- fs12.stat(to, function(stater, st) {
17815
+ fs13.stat(to, function(stater, st) {
17777
17816
  if (stater && stater.code === "ENOENT")
17778
17817
  fs$rename(from, to, CB);
17779
17818
  else
@@ -17790,9 +17829,9 @@ var require_polyfills = __commonJS({
17790
17829
  __name(rename, "rename");
17791
17830
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
17792
17831
  return rename;
17793
- })(fs12.rename);
17832
+ })(fs13.rename);
17794
17833
  }
17795
- fs12.read = typeof fs12.read !== "function" ? fs12.read : (function(fs$read) {
17834
+ fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
17796
17835
  function read(fd, buffer, offset, length, position, callback_) {
17797
17836
  var callback;
17798
17837
  if (callback_ && typeof callback_ === "function") {
@@ -17800,23 +17839,23 @@ var require_polyfills = __commonJS({
17800
17839
  callback = /* @__PURE__ */ __name(function(er, _2, __) {
17801
17840
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
17802
17841
  eagCounter++;
17803
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17842
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17804
17843
  }
17805
17844
  callback_.apply(this, arguments);
17806
17845
  }, "callback");
17807
17846
  }
17808
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17847
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17809
17848
  }
17810
17849
  __name(read, "read");
17811
17850
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
17812
17851
  return read;
17813
- })(fs12.read);
17814
- fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ (function(fs$readSync) {
17852
+ })(fs13.read);
17853
+ fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
17815
17854
  return function(fd, buffer, offset, length, position) {
17816
17855
  var eagCounter = 0;
17817
17856
  while (true) {
17818
17857
  try {
17819
- return fs$readSync.call(fs12, fd, buffer, offset, length, position);
17858
+ return fs$readSync.call(fs13, fd, buffer, offset, length, position);
17820
17859
  } catch (er) {
17821
17860
  if (er.code === "EAGAIN" && eagCounter < 10) {
17822
17861
  eagCounter++;
@@ -17826,11 +17865,11 @@ var require_polyfills = __commonJS({
17826
17865
  }
17827
17866
  }
17828
17867
  };
17829
- })(fs12.readSync);
17830
- function patchLchmod(fs13) {
17831
- fs13.lchmod = function(path13, mode, callback) {
17832
- fs13.open(
17833
- path13,
17868
+ })(fs13.readSync);
17869
+ function patchLchmod(fs14) {
17870
+ fs14.lchmod = function(path14, mode, callback) {
17871
+ fs14.open(
17872
+ path14,
17834
17873
  constants.O_WRONLY | constants.O_SYMLINK,
17835
17874
  mode,
17836
17875
  function(err, fd) {
@@ -17838,74 +17877,74 @@ var require_polyfills = __commonJS({
17838
17877
  if (callback) callback(err);
17839
17878
  return;
17840
17879
  }
17841
- fs13.fchmod(fd, mode, function(err2) {
17842
- fs13.close(fd, function(err22) {
17880
+ fs14.fchmod(fd, mode, function(err2) {
17881
+ fs14.close(fd, function(err22) {
17843
17882
  if (callback) callback(err2 || err22);
17844
17883
  });
17845
17884
  });
17846
17885
  }
17847
17886
  );
17848
17887
  };
17849
- fs13.lchmodSync = function(path13, mode) {
17850
- var fd = fs13.openSync(path13, constants.O_WRONLY | constants.O_SYMLINK, mode);
17888
+ fs14.lchmodSync = function(path14, mode) {
17889
+ var fd = fs14.openSync(path14, constants.O_WRONLY | constants.O_SYMLINK, mode);
17851
17890
  var threw = true;
17852
17891
  var ret;
17853
17892
  try {
17854
- ret = fs13.fchmodSync(fd, mode);
17893
+ ret = fs14.fchmodSync(fd, mode);
17855
17894
  threw = false;
17856
17895
  } finally {
17857
17896
  if (threw) {
17858
17897
  try {
17859
- fs13.closeSync(fd);
17898
+ fs14.closeSync(fd);
17860
17899
  } catch (er) {
17861
17900
  }
17862
17901
  } else {
17863
- fs13.closeSync(fd);
17902
+ fs14.closeSync(fd);
17864
17903
  }
17865
17904
  }
17866
17905
  return ret;
17867
17906
  };
17868
17907
  }
17869
17908
  __name(patchLchmod, "patchLchmod");
17870
- function patchLutimes(fs13) {
17871
- if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
17872
- fs13.lutimes = function(path13, at, mt, cb) {
17873
- fs13.open(path13, constants.O_SYMLINK, function(er, fd) {
17909
+ function patchLutimes(fs14) {
17910
+ if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
17911
+ fs14.lutimes = function(path14, at, mt, cb) {
17912
+ fs14.open(path14, constants.O_SYMLINK, function(er, fd) {
17874
17913
  if (er) {
17875
17914
  if (cb) cb(er);
17876
17915
  return;
17877
17916
  }
17878
- fs13.futimes(fd, at, mt, function(er2) {
17879
- fs13.close(fd, function(er22) {
17917
+ fs14.futimes(fd, at, mt, function(er2) {
17918
+ fs14.close(fd, function(er22) {
17880
17919
  if (cb) cb(er2 || er22);
17881
17920
  });
17882
17921
  });
17883
17922
  });
17884
17923
  };
17885
- fs13.lutimesSync = function(path13, at, mt) {
17886
- var fd = fs13.openSync(path13, constants.O_SYMLINK);
17924
+ fs14.lutimesSync = function(path14, at, mt) {
17925
+ var fd = fs14.openSync(path14, constants.O_SYMLINK);
17887
17926
  var ret;
17888
17927
  var threw = true;
17889
17928
  try {
17890
- ret = fs13.futimesSync(fd, at, mt);
17929
+ ret = fs14.futimesSync(fd, at, mt);
17891
17930
  threw = false;
17892
17931
  } finally {
17893
17932
  if (threw) {
17894
17933
  try {
17895
- fs13.closeSync(fd);
17934
+ fs14.closeSync(fd);
17896
17935
  } catch (er) {
17897
17936
  }
17898
17937
  } else {
17899
- fs13.closeSync(fd);
17938
+ fs14.closeSync(fd);
17900
17939
  }
17901
17940
  }
17902
17941
  return ret;
17903
17942
  };
17904
- } else if (fs13.futimes) {
17905
- fs13.lutimes = function(_a2, _b, _c4, cb) {
17943
+ } else if (fs14.futimes) {
17944
+ fs14.lutimes = function(_a2, _b, _c4, cb) {
17906
17945
  if (cb) process.nextTick(cb);
17907
17946
  };
17908
- fs13.lutimesSync = function() {
17947
+ fs14.lutimesSync = function() {
17909
17948
  };
17910
17949
  }
17911
17950
  }
@@ -17913,7 +17952,7 @@ var require_polyfills = __commonJS({
17913
17952
  function chmodFix(orig) {
17914
17953
  if (!orig) return orig;
17915
17954
  return function(target, mode, cb) {
17916
- return orig.call(fs12, target, mode, function(er) {
17955
+ return orig.call(fs13, target, mode, function(er) {
17917
17956
  if (chownErOk(er)) er = null;
17918
17957
  if (cb) cb.apply(this, arguments);
17919
17958
  });
@@ -17924,7 +17963,7 @@ var require_polyfills = __commonJS({
17924
17963
  if (!orig) return orig;
17925
17964
  return function(target, mode) {
17926
17965
  try {
17927
- return orig.call(fs12, target, mode);
17966
+ return orig.call(fs13, target, mode);
17928
17967
  } catch (er) {
17929
17968
  if (!chownErOk(er)) throw er;
17930
17969
  }
@@ -17934,7 +17973,7 @@ var require_polyfills = __commonJS({
17934
17973
  function chownFix(orig) {
17935
17974
  if (!orig) return orig;
17936
17975
  return function(target, uid, gid, cb) {
17937
- return orig.call(fs12, target, uid, gid, function(er) {
17976
+ return orig.call(fs13, target, uid, gid, function(er) {
17938
17977
  if (chownErOk(er)) er = null;
17939
17978
  if (cb) cb.apply(this, arguments);
17940
17979
  });
@@ -17945,7 +17984,7 @@ var require_polyfills = __commonJS({
17945
17984
  if (!orig) return orig;
17946
17985
  return function(target, uid, gid) {
17947
17986
  try {
17948
- return orig.call(fs12, target, uid, gid);
17987
+ return orig.call(fs13, target, uid, gid);
17949
17988
  } catch (er) {
17950
17989
  if (!chownErOk(er)) throw er;
17951
17990
  }
@@ -17967,14 +18006,14 @@ var require_polyfills = __commonJS({
17967
18006
  if (cb) cb.apply(this, arguments);
17968
18007
  }
17969
18008
  __name(callback, "callback");
17970
- return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
18009
+ return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
17971
18010
  };
17972
18011
  }
17973
18012
  __name(statFix, "statFix");
17974
18013
  function statFixSync(orig) {
17975
18014
  if (!orig) return orig;
17976
18015
  return function(target, options) {
17977
- var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
18016
+ var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
17978
18017
  if (stats) {
17979
18018
  if (stats.uid < 0) stats.uid += 4294967296;
17980
18019
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -18006,16 +18045,16 @@ var require_legacy_streams = __commonJS({
18006
18045
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
18007
18046
  var Stream2 = require("stream").Stream;
18008
18047
  module2.exports = legacy;
18009
- function legacy(fs12) {
18048
+ function legacy(fs13) {
18010
18049
  return {
18011
18050
  ReadStream,
18012
18051
  WriteStream
18013
18052
  };
18014
- function ReadStream(path13, options) {
18015
- if (!(this instanceof ReadStream)) return new ReadStream(path13, options);
18053
+ function ReadStream(path14, options) {
18054
+ if (!(this instanceof ReadStream)) return new ReadStream(path14, options);
18016
18055
  Stream2.call(this);
18017
18056
  var self2 = this;
18018
- this.path = path13;
18057
+ this.path = path14;
18019
18058
  this.fd = null;
18020
18059
  this.readable = true;
18021
18060
  this.paused = false;
@@ -18049,7 +18088,7 @@ var require_legacy_streams = __commonJS({
18049
18088
  });
18050
18089
  return;
18051
18090
  }
18052
- fs12.open(this.path, this.flags, this.mode, function(err, fd) {
18091
+ fs13.open(this.path, this.flags, this.mode, function(err, fd) {
18053
18092
  if (err) {
18054
18093
  self2.emit("error", err);
18055
18094
  self2.readable = false;
@@ -18061,10 +18100,10 @@ var require_legacy_streams = __commonJS({
18061
18100
  });
18062
18101
  }
18063
18102
  __name(ReadStream, "ReadStream");
18064
- function WriteStream(path13, options) {
18065
- if (!(this instanceof WriteStream)) return new WriteStream(path13, options);
18103
+ function WriteStream(path14, options) {
18104
+ if (!(this instanceof WriteStream)) return new WriteStream(path14, options);
18066
18105
  Stream2.call(this);
18067
- this.path = path13;
18106
+ this.path = path14;
18068
18107
  this.fd = null;
18069
18108
  this.writable = true;
18070
18109
  this.flags = "w";
@@ -18089,7 +18128,7 @@ var require_legacy_streams = __commonJS({
18089
18128
  this.busy = false;
18090
18129
  this._queue = [];
18091
18130
  if (this.fd === null) {
18092
- this._open = fs12.open;
18131
+ this._open = fs13.open;
18093
18132
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
18094
18133
  this.flush();
18095
18134
  }
@@ -18127,7 +18166,7 @@ var require_clone = __commonJS({
18127
18166
  // ../../node_modules/graceful-fs/graceful-fs.js
18128
18167
  var require_graceful_fs = __commonJS({
18129
18168
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
18130
- var fs12 = require("fs");
18169
+ var fs13 = require("fs");
18131
18170
  var polyfills = require_polyfills();
18132
18171
  var legacy = require_legacy_streams();
18133
18172
  var clone = require_clone();
@@ -18161,12 +18200,12 @@ var require_graceful_fs = __commonJS({
18161
18200
  m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
18162
18201
  console.error(m4);
18163
18202
  }, "debug");
18164
- if (!fs12[gracefulQueue]) {
18203
+ if (!fs13[gracefulQueue]) {
18165
18204
  queue = global[gracefulQueue] || [];
18166
- publishQueue(fs12, queue);
18167
- fs12.close = (function(fs$close) {
18205
+ publishQueue(fs13, queue);
18206
+ fs13.close = (function(fs$close) {
18168
18207
  function close(fd, cb) {
18169
- return fs$close.call(fs12, fd, function(err) {
18208
+ return fs$close.call(fs13, fd, function(err) {
18170
18209
  if (!err) {
18171
18210
  resetQueue();
18172
18211
  }
@@ -18179,10 +18218,10 @@ var require_graceful_fs = __commonJS({
18179
18218
  value: fs$close
18180
18219
  });
18181
18220
  return close;
18182
- })(fs12.close);
18183
- fs12.closeSync = (function(fs$closeSync) {
18221
+ })(fs13.close);
18222
+ fs13.closeSync = (function(fs$closeSync) {
18184
18223
  function closeSync(fd) {
18185
- fs$closeSync.apply(fs12, arguments);
18224
+ fs$closeSync.apply(fs13, arguments);
18186
18225
  resetQueue();
18187
18226
  }
18188
18227
  __name(closeSync, "closeSync");
@@ -18190,38 +18229,38 @@ var require_graceful_fs = __commonJS({
18190
18229
  value: fs$closeSync
18191
18230
  });
18192
18231
  return closeSync;
18193
- })(fs12.closeSync);
18232
+ })(fs13.closeSync);
18194
18233
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
18195
18234
  process.on("exit", function() {
18196
- debug(fs12[gracefulQueue]);
18197
- require("assert").equal(fs12[gracefulQueue].length, 0);
18235
+ debug(fs13[gracefulQueue]);
18236
+ require("assert").equal(fs13[gracefulQueue].length, 0);
18198
18237
  });
18199
18238
  }
18200
18239
  }
18201
18240
  var queue;
18202
18241
  if (!global[gracefulQueue]) {
18203
- publishQueue(global, fs12[gracefulQueue]);
18204
- }
18205
- module2.exports = patch(clone(fs12));
18206
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
18207
- module2.exports = patch(fs12);
18208
- fs12.__patched = true;
18209
- }
18210
- function patch(fs13) {
18211
- polyfills(fs13);
18212
- fs13.gracefulify = patch;
18213
- fs13.createReadStream = createReadStream2;
18214
- fs13.createWriteStream = createWriteStream2;
18215
- var fs$readFile = fs13.readFile;
18216
- fs13.readFile = readFile;
18217
- function readFile(path13, options, cb) {
18242
+ publishQueue(global, fs13[gracefulQueue]);
18243
+ }
18244
+ module2.exports = patch(clone(fs13));
18245
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
18246
+ module2.exports = patch(fs13);
18247
+ fs13.__patched = true;
18248
+ }
18249
+ function patch(fs14) {
18250
+ polyfills(fs14);
18251
+ fs14.gracefulify = patch;
18252
+ fs14.createReadStream = createReadStream2;
18253
+ fs14.createWriteStream = createWriteStream2;
18254
+ var fs$readFile = fs14.readFile;
18255
+ fs14.readFile = readFile;
18256
+ function readFile(path14, options, cb) {
18218
18257
  if (typeof options === "function")
18219
18258
  cb = options, options = null;
18220
- return go$readFile(path13, options, cb);
18221
- function go$readFile(path14, options2, cb2, startTime) {
18222
- return fs$readFile(path14, options2, function(err) {
18259
+ return go$readFile(path14, options, cb);
18260
+ function go$readFile(path15, options2, cb2, startTime) {
18261
+ return fs$readFile(path15, options2, function(err) {
18223
18262
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18224
- enqueue([go$readFile, [path14, options2, cb2], err, startTime || Date.now(), Date.now()]);
18263
+ enqueue([go$readFile, [path15, options2, cb2], err, startTime || Date.now(), Date.now()]);
18225
18264
  else {
18226
18265
  if (typeof cb2 === "function")
18227
18266
  cb2.apply(this, arguments);
@@ -18231,16 +18270,16 @@ var require_graceful_fs = __commonJS({
18231
18270
  __name(go$readFile, "go$readFile");
18232
18271
  }
18233
18272
  __name(readFile, "readFile");
18234
- var fs$writeFile = fs13.writeFile;
18235
- fs13.writeFile = writeFile;
18236
- function writeFile(path13, data2, options, cb) {
18273
+ var fs$writeFile = fs14.writeFile;
18274
+ fs14.writeFile = writeFile;
18275
+ function writeFile(path14, data2, options, cb) {
18237
18276
  if (typeof options === "function")
18238
18277
  cb = options, options = null;
18239
- return go$writeFile(path13, data2, options, cb);
18240
- function go$writeFile(path14, data3, options2, cb2, startTime) {
18241
- return fs$writeFile(path14, data3, options2, function(err) {
18278
+ return go$writeFile(path14, data2, options, cb);
18279
+ function go$writeFile(path15, data3, options2, cb2, startTime) {
18280
+ return fs$writeFile(path15, data3, options2, function(err) {
18242
18281
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18243
- enqueue([go$writeFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18282
+ enqueue([go$writeFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18244
18283
  else {
18245
18284
  if (typeof cb2 === "function")
18246
18285
  cb2.apply(this, arguments);
@@ -18250,17 +18289,17 @@ var require_graceful_fs = __commonJS({
18250
18289
  __name(go$writeFile, "go$writeFile");
18251
18290
  }
18252
18291
  __name(writeFile, "writeFile");
18253
- var fs$appendFile = fs13.appendFile;
18292
+ var fs$appendFile = fs14.appendFile;
18254
18293
  if (fs$appendFile)
18255
- fs13.appendFile = appendFile;
18256
- function appendFile(path13, data2, options, cb) {
18294
+ fs14.appendFile = appendFile;
18295
+ function appendFile(path14, data2, options, cb) {
18257
18296
  if (typeof options === "function")
18258
18297
  cb = options, options = null;
18259
- return go$appendFile(path13, data2, options, cb);
18260
- function go$appendFile(path14, data3, options2, cb2, startTime) {
18261
- return fs$appendFile(path14, data3, options2, function(err) {
18298
+ return go$appendFile(path14, data2, options, cb);
18299
+ function go$appendFile(path15, data3, options2, cb2, startTime) {
18300
+ return fs$appendFile(path15, data3, options2, function(err) {
18262
18301
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18263
- enqueue([go$appendFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18302
+ enqueue([go$appendFile, [path15, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18264
18303
  else {
18265
18304
  if (typeof cb2 === "function")
18266
18305
  cb2.apply(this, arguments);
@@ -18270,9 +18309,9 @@ var require_graceful_fs = __commonJS({
18270
18309
  __name(go$appendFile, "go$appendFile");
18271
18310
  }
18272
18311
  __name(appendFile, "appendFile");
18273
- var fs$copyFile = fs13.copyFile;
18312
+ var fs$copyFile = fs14.copyFile;
18274
18313
  if (fs$copyFile)
18275
- fs13.copyFile = copyFile;
18314
+ fs14.copyFile = copyFile;
18276
18315
  function copyFile(src, dest, flags, cb) {
18277
18316
  if (typeof flags === "function") {
18278
18317
  cb = flags;
@@ -18292,34 +18331,34 @@ var require_graceful_fs = __commonJS({
18292
18331
  __name(go$copyFile, "go$copyFile");
18293
18332
  }
18294
18333
  __name(copyFile, "copyFile");
18295
- var fs$readdir = fs13.readdir;
18296
- fs13.readdir = readdir2;
18334
+ var fs$readdir = fs14.readdir;
18335
+ fs14.readdir = readdir2;
18297
18336
  var noReaddirOptionVersions = /^v[0-5]\./;
18298
- function readdir2(path13, options, cb) {
18337
+ function readdir2(path14, options, cb) {
18299
18338
  if (typeof options === "function")
18300
18339
  cb = options, options = null;
18301
- var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18302
- return fs$readdir(path14, fs$readdirCallback(
18303
- path14,
18340
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
18341
+ return fs$readdir(path15, fs$readdirCallback(
18342
+ path15,
18304
18343
  options2,
18305
18344
  cb2,
18306
18345
  startTime
18307
18346
  ));
18308
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18309
- return fs$readdir(path14, options2, fs$readdirCallback(
18310
- path14,
18347
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path15, options2, cb2, startTime) {
18348
+ return fs$readdir(path15, options2, fs$readdirCallback(
18349
+ path15,
18311
18350
  options2,
18312
18351
  cb2,
18313
18352
  startTime
18314
18353
  ));
18315
18354
  }, "go$readdir");
18316
- return go$readdir(path13, options, cb);
18317
- function fs$readdirCallback(path14, options2, cb2, startTime) {
18355
+ return go$readdir(path14, options, cb);
18356
+ function fs$readdirCallback(path15, options2, cb2, startTime) {
18318
18357
  return function(err, files) {
18319
18358
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18320
18359
  enqueue([
18321
18360
  go$readdir,
18322
- [path14, options2, cb2],
18361
+ [path15, options2, cb2],
18323
18362
  err,
18324
18363
  startTime || Date.now(),
18325
18364
  Date.now()
@@ -18336,21 +18375,21 @@ var require_graceful_fs = __commonJS({
18336
18375
  }
18337
18376
  __name(readdir2, "readdir");
18338
18377
  if (process.version.substr(0, 4) === "v0.8") {
18339
- var legStreams = legacy(fs13);
18378
+ var legStreams = legacy(fs14);
18340
18379
  ReadStream = legStreams.ReadStream;
18341
18380
  WriteStream = legStreams.WriteStream;
18342
18381
  }
18343
- var fs$ReadStream = fs13.ReadStream;
18382
+ var fs$ReadStream = fs14.ReadStream;
18344
18383
  if (fs$ReadStream) {
18345
18384
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
18346
18385
  ReadStream.prototype.open = ReadStream$open;
18347
18386
  }
18348
- var fs$WriteStream = fs13.WriteStream;
18387
+ var fs$WriteStream = fs14.WriteStream;
18349
18388
  if (fs$WriteStream) {
18350
18389
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
18351
18390
  WriteStream.prototype.open = WriteStream$open;
18352
18391
  }
18353
- Object.defineProperty(fs13, "ReadStream", {
18392
+ Object.defineProperty(fs14, "ReadStream", {
18354
18393
  get: /* @__PURE__ */ __name(function() {
18355
18394
  return ReadStream;
18356
18395
  }, "get"),
@@ -18360,7 +18399,7 @@ var require_graceful_fs = __commonJS({
18360
18399
  enumerable: true,
18361
18400
  configurable: true
18362
18401
  });
18363
- Object.defineProperty(fs13, "WriteStream", {
18402
+ Object.defineProperty(fs14, "WriteStream", {
18364
18403
  get: /* @__PURE__ */ __name(function() {
18365
18404
  return WriteStream;
18366
18405
  }, "get"),
@@ -18371,7 +18410,7 @@ var require_graceful_fs = __commonJS({
18371
18410
  configurable: true
18372
18411
  });
18373
18412
  var FileReadStream = ReadStream;
18374
- Object.defineProperty(fs13, "FileReadStream", {
18413
+ Object.defineProperty(fs14, "FileReadStream", {
18375
18414
  get: /* @__PURE__ */ __name(function() {
18376
18415
  return FileReadStream;
18377
18416
  }, "get"),
@@ -18382,7 +18421,7 @@ var require_graceful_fs = __commonJS({
18382
18421
  configurable: true
18383
18422
  });
18384
18423
  var FileWriteStream = WriteStream;
18385
- Object.defineProperty(fs13, "FileWriteStream", {
18424
+ Object.defineProperty(fs14, "FileWriteStream", {
18386
18425
  get: /* @__PURE__ */ __name(function() {
18387
18426
  return FileWriteStream;
18388
18427
  }, "get"),
@@ -18392,7 +18431,7 @@ var require_graceful_fs = __commonJS({
18392
18431
  enumerable: true,
18393
18432
  configurable: true
18394
18433
  });
18395
- function ReadStream(path13, options) {
18434
+ function ReadStream(path14, options) {
18396
18435
  if (this instanceof ReadStream)
18397
18436
  return fs$ReadStream.apply(this, arguments), this;
18398
18437
  else
@@ -18414,7 +18453,7 @@ var require_graceful_fs = __commonJS({
18414
18453
  });
18415
18454
  }
18416
18455
  __name(ReadStream$open, "ReadStream$open");
18417
- function WriteStream(path13, options) {
18456
+ function WriteStream(path14, options) {
18418
18457
  if (this instanceof WriteStream)
18419
18458
  return fs$WriteStream.apply(this, arguments), this;
18420
18459
  else
@@ -18434,24 +18473,24 @@ var require_graceful_fs = __commonJS({
18434
18473
  });
18435
18474
  }
18436
18475
  __name(WriteStream$open, "WriteStream$open");
18437
- function createReadStream2(path13, options) {
18438
- return new fs13.ReadStream(path13, options);
18476
+ function createReadStream2(path14, options) {
18477
+ return new fs14.ReadStream(path14, options);
18439
18478
  }
18440
18479
  __name(createReadStream2, "createReadStream");
18441
- function createWriteStream2(path13, options) {
18442
- return new fs13.WriteStream(path13, options);
18480
+ function createWriteStream2(path14, options) {
18481
+ return new fs14.WriteStream(path14, options);
18443
18482
  }
18444
18483
  __name(createWriteStream2, "createWriteStream");
18445
- var fs$open = fs13.open;
18446
- fs13.open = open;
18447
- function open(path13, flags, mode, cb) {
18484
+ var fs$open = fs14.open;
18485
+ fs14.open = open;
18486
+ function open(path14, flags, mode, cb) {
18448
18487
  if (typeof mode === "function")
18449
18488
  cb = mode, mode = null;
18450
- return go$open(path13, flags, mode, cb);
18451
- function go$open(path14, flags2, mode2, cb2, startTime) {
18452
- return fs$open(path14, flags2, mode2, function(err, fd) {
18489
+ return go$open(path14, flags, mode, cb);
18490
+ function go$open(path15, flags2, mode2, cb2, startTime) {
18491
+ return fs$open(path15, flags2, mode2, function(err, fd) {
18453
18492
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18454
- enqueue([go$open, [path14, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18493
+ enqueue([go$open, [path15, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18455
18494
  else {
18456
18495
  if (typeof cb2 === "function")
18457
18496
  cb2.apply(this, arguments);
@@ -18461,22 +18500,22 @@ var require_graceful_fs = __commonJS({
18461
18500
  __name(go$open, "go$open");
18462
18501
  }
18463
18502
  __name(open, "open");
18464
- return fs13;
18503
+ return fs14;
18465
18504
  }
18466
18505
  __name(patch, "patch");
18467
18506
  function enqueue(elem) {
18468
18507
  debug("ENQUEUE", elem[0].name, elem[1]);
18469
- fs12[gracefulQueue].push(elem);
18508
+ fs13[gracefulQueue].push(elem);
18470
18509
  retry();
18471
18510
  }
18472
18511
  __name(enqueue, "enqueue");
18473
18512
  var retryTimer;
18474
18513
  function resetQueue() {
18475
18514
  var now = Date.now();
18476
- for (var i4 = 0; i4 < fs12[gracefulQueue].length; ++i4) {
18477
- if (fs12[gracefulQueue][i4].length > 2) {
18478
- fs12[gracefulQueue][i4][3] = now;
18479
- fs12[gracefulQueue][i4][4] = now;
18515
+ for (var i4 = 0; i4 < fs13[gracefulQueue].length; ++i4) {
18516
+ if (fs13[gracefulQueue][i4].length > 2) {
18517
+ fs13[gracefulQueue][i4][3] = now;
18518
+ fs13[gracefulQueue][i4][4] = now;
18480
18519
  }
18481
18520
  }
18482
18521
  retry();
@@ -18485,9 +18524,9 @@ var require_graceful_fs = __commonJS({
18485
18524
  function retry() {
18486
18525
  clearTimeout(retryTimer);
18487
18526
  retryTimer = void 0;
18488
- if (fs12[gracefulQueue].length === 0)
18527
+ if (fs13[gracefulQueue].length === 0)
18489
18528
  return;
18490
- var elem = fs12[gracefulQueue].shift();
18529
+ var elem = fs13[gracefulQueue].shift();
18491
18530
  var fn = elem[0];
18492
18531
  var args = elem[1];
18493
18532
  var err = elem[2];
@@ -18509,7 +18548,7 @@ var require_graceful_fs = __commonJS({
18509
18548
  debug("RETRY", fn.name, args);
18510
18549
  fn.apply(null, args.concat([startTime]));
18511
18550
  } else {
18512
- fs12[gracefulQueue].push(elem);
18551
+ fs13[gracefulQueue].push(elem);
18513
18552
  }
18514
18553
  }
18515
18554
  if (retryTimer === void 0) {
@@ -18835,7 +18874,7 @@ var require_BufferList = __commonJS({
18835
18874
  this.head = this.tail = null;
18836
18875
  this.length = 0;
18837
18876
  }, "clear");
18838
- BufferList.prototype.join = /* @__PURE__ */ __name(function join9(s4) {
18877
+ BufferList.prototype.join = /* @__PURE__ */ __name(function join10(s4) {
18839
18878
  if (this.length === 0) return "";
18840
18879
  var p4 = this.head;
18841
18880
  var ret = "" + p4.data;
@@ -20671,22 +20710,22 @@ var require_lazystream = __commonJS({
20671
20710
  // ../../node_modules/normalize-path/index.js
20672
20711
  var require_normalize_path = __commonJS({
20673
20712
  "../../node_modules/normalize-path/index.js"(exports2, module2) {
20674
- module2.exports = function(path13, stripTrailing) {
20675
- if (typeof path13 !== "string") {
20713
+ module2.exports = function(path14, stripTrailing) {
20714
+ if (typeof path14 !== "string") {
20676
20715
  throw new TypeError("expected path to be a string");
20677
20716
  }
20678
- if (path13 === "\\" || path13 === "/") return "/";
20679
- var len = path13.length;
20680
- if (len <= 1) return path13;
20717
+ if (path14 === "\\" || path14 === "/") return "/";
20718
+ var len = path14.length;
20719
+ if (len <= 1) return path14;
20681
20720
  var prefix = "";
20682
- if (len > 4 && path13[3] === "\\") {
20683
- var ch = path13[2];
20684
- if ((ch === "?" || ch === ".") && path13.slice(0, 2) === "\\\\") {
20685
- path13 = path13.slice(2);
20721
+ if (len > 4 && path14[3] === "\\") {
20722
+ var ch = path14[2];
20723
+ if ((ch === "?" || ch === ".") && path14.slice(0, 2) === "\\\\") {
20724
+ path14 = path14.slice(2);
20686
20725
  prefix = "//";
20687
20726
  }
20688
20727
  }
20689
- var segs = path13.split(/[/\\]+/);
20728
+ var segs = path14.split(/[/\\]+/);
20690
20729
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
20691
20730
  segs.pop();
20692
20731
  }
@@ -29715,11 +29754,11 @@ var require_commonjs = __commonJS({
29715
29754
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
29716
29755
  }, "qmarksTestNoExtDot");
29717
29756
  var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
29718
- var path13 = {
29757
+ var path14 = {
29719
29758
  win32: { sep: "\\" },
29720
29759
  posix: { sep: "/" }
29721
29760
  };
29722
- exports2.sep = defaultPlatform4 === "win32" ? path13.win32.sep : path13.posix.sep;
29761
+ exports2.sep = defaultPlatform4 === "win32" ? path14.win32.sep : path14.posix.sep;
29723
29762
  exports2.minimatch.sep = exports2.sep;
29724
29763
  exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
29725
29764
  exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
@@ -33008,12 +33047,12 @@ var require_commonjs4 = __commonJS({
33008
33047
  /**
33009
33048
  * Get the Path object referenced by the string path, resolved from this Path
33010
33049
  */
33011
- resolve(path13) {
33012
- if (!path13) {
33050
+ resolve(path14) {
33051
+ if (!path14) {
33013
33052
  return this;
33014
33053
  }
33015
- const rootPath = this.getRootString(path13);
33016
- const dir = path13.substring(rootPath.length);
33054
+ const rootPath = this.getRootString(path14);
33055
+ const dir = path14.substring(rootPath.length);
33017
33056
  const dirParts = dir.split(this.splitSep);
33018
33057
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
33019
33058
  return result;
@@ -33769,8 +33808,8 @@ var require_commonjs4 = __commonJS({
33769
33808
  /**
33770
33809
  * @internal
33771
33810
  */
33772
- getRootString(path13) {
33773
- return node_path_1.win32.parse(path13).root;
33811
+ getRootString(path14) {
33812
+ return node_path_1.win32.parse(path14).root;
33774
33813
  }
33775
33814
  /**
33776
33815
  * @internal
@@ -33820,8 +33859,8 @@ var require_commonjs4 = __commonJS({
33820
33859
  /**
33821
33860
  * @internal
33822
33861
  */
33823
- getRootString(path13) {
33824
- return path13.startsWith("/") ? "/" : "";
33862
+ getRootString(path14) {
33863
+ return path14.startsWith("/") ? "/" : "";
33825
33864
  }
33826
33865
  /**
33827
33866
  * @internal
@@ -33874,8 +33913,8 @@ var require_commonjs4 = __commonJS({
33874
33913
  *
33875
33914
  * @internal
33876
33915
  */
33877
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS2 } = {}) {
33878
- this.#fs = fsFromOption2(fs12);
33916
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
33917
+ this.#fs = fsFromOption2(fs13);
33879
33918
  if (cwd instanceof URL || cwd.startsWith("file://")) {
33880
33919
  cwd = (0, node_url_1.fileURLToPath)(cwd);
33881
33920
  }
@@ -33914,11 +33953,11 @@ var require_commonjs4 = __commonJS({
33914
33953
  /**
33915
33954
  * Get the depth of a provided path, string, or the cwd
33916
33955
  */
33917
- depth(path13 = this.cwd) {
33918
- if (typeof path13 === "string") {
33919
- path13 = this.cwd.resolve(path13);
33956
+ depth(path14 = this.cwd) {
33957
+ if (typeof path14 === "string") {
33958
+ path14 = this.cwd.resolve(path14);
33920
33959
  }
33921
- return path13.depth();
33960
+ return path14.depth();
33922
33961
  }
33923
33962
  /**
33924
33963
  * Return the cache of child entries. Exposed so subclasses can create
@@ -34405,9 +34444,9 @@ var require_commonjs4 = __commonJS({
34405
34444
  process2();
34406
34445
  return results;
34407
34446
  }
34408
- chdir(path13 = this.cwd) {
34447
+ chdir(path14 = this.cwd) {
34409
34448
  const oldCwd = this.cwd;
34410
- this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
34449
+ this.cwd = typeof path14 === "string" ? this.cwd.resolve(path14) : path14;
34411
34450
  this.cwd[setAsCwd2](oldCwd);
34412
34451
  }
34413
34452
  };
@@ -34437,8 +34476,8 @@ var require_commonjs4 = __commonJS({
34437
34476
  /**
34438
34477
  * @internal
34439
34478
  */
34440
- newRoot(fs12) {
34441
- return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34479
+ newRoot(fs13) {
34480
+ return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34442
34481
  }
34443
34482
  /**
34444
34483
  * Return true if the provided path string is an absolute path
@@ -34470,8 +34509,8 @@ var require_commonjs4 = __commonJS({
34470
34509
  /**
34471
34510
  * @internal
34472
34511
  */
34473
- newRoot(fs12) {
34474
- return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34512
+ newRoot(fs13) {
34513
+ return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34475
34514
  }
34476
34515
  /**
34477
34516
  * Return true if the provided path string is an absolute path
@@ -34816,8 +34855,8 @@ var require_processor = __commonJS({
34816
34855
  }
34817
34856
  // match, absolute, ifdir
34818
34857
  entries() {
34819
- return [...this.store.entries()].map(([path13, n4]) => [
34820
- path13,
34858
+ return [...this.store.entries()].map(([path14, n4]) => [
34859
+ path14,
34821
34860
  !!(n4 & 2),
34822
34861
  !!(n4 & 1)
34823
34862
  ]);
@@ -35044,9 +35083,9 @@ var require_walker = __commonJS({
35044
35083
  signal;
35045
35084
  maxDepth;
35046
35085
  includeChildMatches;
35047
- constructor(patterns, path13, opts) {
35086
+ constructor(patterns, path14, opts) {
35048
35087
  this.patterns = patterns;
35049
- this.path = path13;
35088
+ this.path = path14;
35050
35089
  this.opts = opts;
35051
35090
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
35052
35091
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -35065,11 +35104,11 @@ var require_walker = __commonJS({
35065
35104
  });
35066
35105
  }
35067
35106
  }
35068
- #ignored(path13) {
35069
- return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
35107
+ #ignored(path14) {
35108
+ return this.seen.has(path14) || !!this.#ignore?.ignored?.(path14);
35070
35109
  }
35071
- #childrenIgnored(path13) {
35072
- return !!this.#ignore?.childrenIgnored?.(path13);
35110
+ #childrenIgnored(path14) {
35111
+ return !!this.#ignore?.childrenIgnored?.(path14);
35073
35112
  }
35074
35113
  // backpressure mechanism
35075
35114
  pause() {
@@ -35288,8 +35327,8 @@ var require_walker = __commonJS({
35288
35327
  __name(this, "GlobWalker");
35289
35328
  }
35290
35329
  matches = /* @__PURE__ */ new Set();
35291
- constructor(patterns, path13, opts) {
35292
- super(patterns, path13, opts);
35330
+ constructor(patterns, path14, opts) {
35331
+ super(patterns, path14, opts);
35293
35332
  }
35294
35333
  matchEmit(e4) {
35295
35334
  this.matches.add(e4);
@@ -35330,8 +35369,8 @@ var require_walker = __commonJS({
35330
35369
  __name(this, "GlobStream");
35331
35370
  }
35332
35371
  results;
35333
- constructor(patterns, path13, opts) {
35334
- super(patterns, path13, opts);
35372
+ constructor(patterns, path14, opts) {
35373
+ super(patterns, path14, opts);
35335
35374
  this.results = new minipass_1.Minipass({
35336
35375
  signal: this.signal,
35337
35376
  objectMode: true
@@ -35695,8 +35734,8 @@ var require_commonjs5 = __commonJS({
35695
35734
  // ../../node_modules/archiver-utils/file.js
35696
35735
  var require_file = __commonJS({
35697
35736
  "../../node_modules/archiver-utils/file.js"(exports2, module2) {
35698
- var fs12 = require_graceful_fs();
35699
- var path13 = require("path");
35737
+ var fs13 = require_graceful_fs();
35738
+ var path14 = require("path");
35700
35739
  var flatten2 = require_flatten();
35701
35740
  var difference = require_difference();
35702
35741
  var union = require_union();
@@ -35721,8 +35760,8 @@ var require_file = __commonJS({
35721
35760
  return result;
35722
35761
  }, "processPatterns");
35723
35762
  file.exists = function() {
35724
- var filepath = path13.join.apply(path13, arguments);
35725
- return fs12.existsSync(filepath);
35763
+ var filepath = path14.join.apply(path14, arguments);
35764
+ return fs13.existsSync(filepath);
35726
35765
  };
35727
35766
  file.expand = function(...args) {
35728
35767
  var options = isPlainObject(args[0]) ? args.shift() : {};
@@ -35735,12 +35774,12 @@ var require_file = __commonJS({
35735
35774
  });
35736
35775
  if (options.filter) {
35737
35776
  matches = matches.filter(function(filepath) {
35738
- filepath = path13.join(options.cwd || "", filepath);
35777
+ filepath = path14.join(options.cwd || "", filepath);
35739
35778
  try {
35740
35779
  if (typeof options.filter === "function") {
35741
35780
  return options.filter(filepath);
35742
35781
  } else {
35743
- return fs12.statSync(filepath)[options.filter]();
35782
+ return fs13.statSync(filepath)[options.filter]();
35744
35783
  }
35745
35784
  } catch (e4) {
35746
35785
  return false;
@@ -35752,7 +35791,7 @@ var require_file = __commonJS({
35752
35791
  file.expandMapping = function(patterns, destBase, options) {
35753
35792
  options = Object.assign({
35754
35793
  rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
35755
- return path13.join(destBase2 || "", destPath);
35794
+ return path14.join(destBase2 || "", destPath);
35756
35795
  }, "rename")
35757
35796
  }, options);
35758
35797
  var files = [];
@@ -35760,14 +35799,14 @@ var require_file = __commonJS({
35760
35799
  file.expand(options, patterns).forEach(function(src) {
35761
35800
  var destPath = src;
35762
35801
  if (options.flatten) {
35763
- destPath = path13.basename(destPath);
35802
+ destPath = path14.basename(destPath);
35764
35803
  }
35765
35804
  if (options.ext) {
35766
35805
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
35767
35806
  }
35768
35807
  var dest = options.rename(destBase, destPath, options);
35769
35808
  if (options.cwd) {
35770
- src = path13.join(options.cwd, src);
35809
+ src = path14.join(options.cwd, src);
35771
35810
  }
35772
35811
  dest = dest.replace(pathSeparatorRe, "/");
35773
35812
  src = src.replace(pathSeparatorRe, "/");
@@ -35848,8 +35887,8 @@ var require_file = __commonJS({
35848
35887
  // ../../node_modules/archiver-utils/index.js
35849
35888
  var require_archiver_utils = __commonJS({
35850
35889
  "../../node_modules/archiver-utils/index.js"(exports2, module2) {
35851
- var fs12 = require_graceful_fs();
35852
- var path13 = require("path");
35890
+ var fs13 = require_graceful_fs();
35891
+ var path14 = require("path");
35853
35892
  var isStream2 = require_is_stream();
35854
35893
  var lazystream = require_lazystream();
35855
35894
  var normalizePath = require_normalize_path();
@@ -35897,7 +35936,7 @@ var require_archiver_utils = __commonJS({
35897
35936
  };
35898
35937
  utils.lazyReadStream = function(filepath) {
35899
35938
  return new lazystream.Readable(function() {
35900
- return fs12.createReadStream(filepath);
35939
+ return fs13.createReadStream(filepath);
35901
35940
  });
35902
35941
  };
35903
35942
  utils.normalizeInputSource = function(source) {
@@ -35925,7 +35964,7 @@ var require_archiver_utils = __commonJS({
35925
35964
  callback = base;
35926
35965
  base = dirpath;
35927
35966
  }
35928
- fs12.readdir(dirpath, function(err, list3) {
35967
+ fs13.readdir(dirpath, function(err, list3) {
35929
35968
  var i4 = 0;
35930
35969
  var file;
35931
35970
  var filepath;
@@ -35937,11 +35976,11 @@ var require_archiver_utils = __commonJS({
35937
35976
  if (!file) {
35938
35977
  return callback(null, results);
35939
35978
  }
35940
- filepath = path13.join(dirpath, file);
35941
- fs12.stat(filepath, function(err2, stats) {
35979
+ filepath = path14.join(dirpath, file);
35980
+ fs13.stat(filepath, function(err2, stats) {
35942
35981
  results.push({
35943
35982
  path: filepath,
35944
- relative: path13.relative(base, filepath).replace(/\\/g, "/"),
35983
+ relative: path14.relative(base, filepath).replace(/\\/g, "/"),
35945
35984
  stats
35946
35985
  });
35947
35986
  if (stats && stats.isDirectory()) {
@@ -41668,10 +41707,10 @@ var require_ours2 = __commonJS({
41668
41707
  // ../../node_modules/archiver/lib/core.js
41669
41708
  var require_core = __commonJS({
41670
41709
  "../../node_modules/archiver/lib/core.js"(exports2, module2) {
41671
- var fs12 = require("fs");
41710
+ var fs13 = require("fs");
41672
41711
  var glob2 = require_readdir_glob();
41673
41712
  var async = require_async();
41674
- var path13 = require("path");
41713
+ var path14 = require("path");
41675
41714
  var util = require_archiver_utils();
41676
41715
  var inherits = require("util").inherits;
41677
41716
  var ArchiverError = require_error();
@@ -41732,7 +41771,7 @@ var require_core = __commonJS({
41732
41771
  data2.sourcePath = filepath;
41733
41772
  task.data = data2;
41734
41773
  this._entriesCount++;
41735
- if (data2.stats && data2.stats instanceof fs12.Stats) {
41774
+ if (data2.stats && data2.stats instanceof fs13.Stats) {
41736
41775
  task = this._updateQueueTaskWithStats(task, data2.stats);
41737
41776
  if (task) {
41738
41777
  if (data2.stats.size) {
@@ -41903,7 +41942,7 @@ var require_core = __commonJS({
41903
41942
  callback();
41904
41943
  return;
41905
41944
  }
41906
- fs12.lstat(task.filepath, function(err, stats) {
41945
+ fs13.lstat(task.filepath, function(err, stats) {
41907
41946
  if (this._state.aborted) {
41908
41947
  setImmediate(callback);
41909
41948
  return;
@@ -41946,10 +41985,10 @@ var require_core = __commonJS({
41946
41985
  task.data.sourceType = "buffer";
41947
41986
  task.source = Buffer.concat([]);
41948
41987
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
41949
- var linkPath = fs12.readlinkSync(task.filepath);
41950
- var dirName = path13.dirname(task.filepath);
41988
+ var linkPath = fs13.readlinkSync(task.filepath);
41989
+ var dirName = path14.dirname(task.filepath);
41951
41990
  task.data.type = "symlink";
41952
- task.data.linkname = path13.relative(dirName, path13.resolve(dirName, linkPath));
41991
+ task.data.linkname = path14.relative(dirName, path14.resolve(dirName, linkPath));
41953
41992
  task.data.sourceType = "buffer";
41954
41993
  task.source = Buffer.concat([]);
41955
41994
  } else {
@@ -57652,7 +57691,7 @@ function writeZipFile(directory, outputFile) {
57652
57691
  output.once("close", ok);
57653
57692
  archive.pipe(output);
57654
57693
  for (const file of files) {
57655
- const fullPath = path9.resolve(directory, file);
57694
+ const fullPath = path10.resolve(directory, file);
57656
57695
  const [data2, stat] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
57657
57696
  archive.append(data2, {
57658
57697
  name: file,
@@ -57687,12 +57726,12 @@ function sleep(ms) {
57687
57726
  function randomString() {
57688
57727
  return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
57689
57728
  }
57690
- var import_fs2, path9, archiver;
57729
+ var import_fs2, path10, archiver;
57691
57730
  var init_archive = __esm({
57692
57731
  "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
57693
57732
  "use strict";
57694
57733
  import_fs2 = require("fs");
57695
- path9 = __toESM(require("path"));
57734
+ path10 = __toESM(require("path"));
57696
57735
  init_esm7();
57697
57736
  archiver = require_archiver();
57698
57737
  __name(zipDirectory, "zipDirectory");
@@ -57715,12 +57754,12 @@ async function pathExists(pathName) {
57715
57754
  return false;
57716
57755
  }
57717
57756
  }
57718
- var fs8, pfs;
57757
+ var fs9, pfs;
57719
57758
  var init_fs_extra = __esm({
57720
57759
  "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
57721
57760
  "use strict";
57722
- fs8 = __toESM(require("fs"));
57723
- pfs = fs8.promises;
57761
+ fs9 = __toESM(require("fs"));
57762
+ pfs = fs9.promises;
57724
57763
  __name(pathExists, "pathExists");
57725
57764
  }
57726
57765
  });
@@ -57744,12 +57783,12 @@ async function cached(cache4, key, factory) {
57744
57783
  cache4.set(key, fresh);
57745
57784
  return fresh;
57746
57785
  }
57747
- var import_fs3, path10, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57786
+ var import_fs3, path11, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57748
57787
  var init_files = __esm({
57749
57788
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
57750
57789
  "use strict";
57751
57790
  import_fs3 = require("fs");
57752
- path10 = __toESM(require("path"));
57791
+ path11 = __toESM(require("path"));
57753
57792
  import_cloud_assembly_schema = __toESM(require_lib2());
57754
57793
  mime = __toESM(require_mime());
57755
57794
  init_client_options();
@@ -57764,7 +57803,7 @@ var init_files = __esm({
57764
57803
  this.workDir = workDir;
57765
57804
  this.asset = asset;
57766
57805
  this.host = host;
57767
- this.fileCacheRoot = path10.join(workDir, ".cache");
57806
+ this.fileCacheRoot = path11.join(workDir, ".cache");
57768
57807
  }
57769
57808
  static {
57770
57809
  __name(this, "FileAssetHandler");
@@ -57892,11 +57931,11 @@ var init_files = __esm({
57892
57931
  `'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
57893
57932
  );
57894
57933
  }
57895
- const fullPath = path10.resolve(this.workDir, source.path);
57934
+ const fullPath = path11.resolve(this.workDir, source.path);
57896
57935
  if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
57897
57936
  const contentType = "application/zip";
57898
57937
  await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
57899
- const packagedPath = path10.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57938
+ const packagedPath = path11.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57900
57939
  if (await pathExists(packagedPath)) {
57901
57940
  this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
57902
57941
  return { packagedPath, contentType };
@@ -58037,12 +58076,12 @@ function prefixTreeChars(xs, prefix = "") {
58037
58076
  }
58038
58077
  return ret;
58039
58078
  }
58040
- var fs10, path11, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58079
+ var fs11, path12, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58041
58080
  var init_asset_manifest = __esm({
58042
58081
  "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
58043
58082
  "use strict";
58044
- fs10 = __toESM(require("fs"));
58045
- path11 = __toESM(require("path"));
58083
+ fs11 = __toESM(require("fs"));
58084
+ path12 = __toESM(require("path"));
58046
58085
  import_cloud_assembly_schema2 = __toESM(require_lib2());
58047
58086
  AssetManifest = class _AssetManifest {
58048
58087
  constructor(directory, manifest) {
@@ -58064,7 +58103,7 @@ var init_asset_manifest = __esm({
58064
58103
  static fromFile(fileName) {
58065
58104
  try {
58066
58105
  const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
58067
- return new _AssetManifest(path11.dirname(fileName), obj);
58106
+ return new _AssetManifest(path12.dirname(fileName), obj);
58068
58107
  } catch (e4) {
58069
58108
  throw new Error(`Cannot read asset manifest '${fileName}': ${e4.message}`);
58070
58109
  }
@@ -58077,12 +58116,12 @@ var init_asset_manifest = __esm({
58077
58116
  static fromPath(filePath) {
58078
58117
  let st;
58079
58118
  try {
58080
- st = fs10.statSync(filePath);
58119
+ st = fs11.statSync(filePath);
58081
58120
  } catch (e4) {
58082
58121
  throw new Error(`Cannot read asset manifest at '${filePath}': ${e4.message}`);
58083
58122
  }
58084
58123
  if (st.isDirectory()) {
58085
- return _AssetManifest.fromFile(path11.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58124
+ return _AssetManifest.fromFile(path12.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58086
58125
  }
58087
58126
  return _AssetManifest.fromFile(filePath);
58088
58127
  }
@@ -59455,9 +59494,9 @@ var init_createPaginator = __esm({
59455
59494
  return await client.send(command, ...args);
59456
59495
  }, "makePagedClientRequest");
59457
59496
  __name(createPaginator, "createPaginator");
59458
- get = /* @__PURE__ */ __name((fromObject, path13) => {
59497
+ get = /* @__PURE__ */ __name((fromObject, path14) => {
59459
59498
  let cursor2 = fromObject;
59460
- const pathComponents = path13.split(".");
59499
+ const pathComponents = path14.split(".");
59461
59500
  for (const step of pathComponents) {
59462
59501
  if (!cursor2 || typeof cursor2 !== "object") {
59463
59502
  return void 0;
@@ -60495,12 +60534,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60495
60534
  const password = request.password ?? "";
60496
60535
  auth = `${username}:${password}`;
60497
60536
  }
60498
- let path13 = request.path;
60537
+ let path14 = request.path;
60499
60538
  if (queryString) {
60500
- path13 += `?${queryString}`;
60539
+ path14 += `?${queryString}`;
60501
60540
  }
60502
60541
  if (request.fragment) {
60503
- path13 += `#${request.fragment}`;
60542
+ path14 += `#${request.fragment}`;
60504
60543
  }
60505
60544
  let hostname = request.hostname ?? "";
60506
60545
  if (hostname[0] === "[" && hostname.endsWith("]")) {
@@ -60512,7 +60551,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60512
60551
  headers: request.headers,
60513
60552
  host: hostname,
60514
60553
  method: request.method,
60515
- path: path13,
60554
+ path: path14,
60516
60555
  port: request.port,
60517
60556
  agent,
60518
60557
  auth
@@ -60776,16 +60815,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60776
60815
  reject(err);
60777
60816
  }, "rejectWithDestroy");
60778
60817
  const queryString = querystringBuilder.buildQueryString(query || {});
60779
- let path13 = request.path;
60818
+ let path14 = request.path;
60780
60819
  if (queryString) {
60781
- path13 += `?${queryString}`;
60820
+ path14 += `?${queryString}`;
60782
60821
  }
60783
60822
  if (request.fragment) {
60784
- path13 += `#${request.fragment}`;
60823
+ path14 += `#${request.fragment}`;
60785
60824
  }
60786
60825
  const req = session.request({
60787
60826
  ...request.headers,
60788
- [http2.constants.HTTP2_HEADER_PATH]: path13,
60827
+ [http2.constants.HTTP2_HEADER_PATH]: path14,
60789
60828
  [http2.constants.HTTP2_HEADER_METHOD]: method
60790
60829
  });
60791
60830
  session.ref();
@@ -60983,13 +61022,13 @@ var require_dist_cjs15 = __commonJS({
60983
61022
  abortError.name = "AbortError";
60984
61023
  return Promise.reject(abortError);
60985
61024
  }
60986
- let path13 = request.path;
61025
+ let path14 = request.path;
60987
61026
  const queryString = querystringBuilder.buildQueryString(request.query || {});
60988
61027
  if (queryString) {
60989
- path13 += `?${queryString}`;
61028
+ path14 += `?${queryString}`;
60990
61029
  }
60991
61030
  if (request.fragment) {
60992
- path13 += `#${request.fragment}`;
61031
+ path14 += `#${request.fragment}`;
60993
61032
  }
60994
61033
  let auth = "";
60995
61034
  if (request.username != null || request.password != null) {
@@ -60998,7 +61037,7 @@ var require_dist_cjs15 = __commonJS({
60998
61037
  auth = `${username}:${password}@`;
60999
61038
  }
61000
61039
  const { port, method } = request;
61001
- const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path13}`;
61040
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path14}`;
61002
61041
  const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
61003
61042
  const requestOptions = {
61004
61043
  body,
@@ -61926,7 +61965,7 @@ var init_NormalizedSchema = __esm({
61926
61965
  }
61927
61966
  getSchema() {
61928
61967
  const sc = this.schema;
61929
- if (sc[0] === 0) {
61968
+ if (Array.isArray(sc) && sc[0] === 0) {
61930
61969
  return sc[4];
61931
61970
  }
61932
61971
  return sc;
@@ -61952,11 +61991,17 @@ var init_NormalizedSchema = __esm({
61952
61991
  }
61953
61992
  isStructSchema() {
61954
61993
  const sc = this.getSchema();
61994
+ if (typeof sc !== "object") {
61995
+ return false;
61996
+ }
61955
61997
  const id = sc[0];
61956
61998
  return id === 3 || id === -3 || id === 4;
61957
61999
  }
61958
62000
  isUnionSchema() {
61959
62001
  const sc = this.getSchema();
62002
+ if (typeof sc !== "object") {
62003
+ return false;
62004
+ }
61960
62005
  return sc[0] === 4;
61961
62006
  }
61962
62007
  isBlobSchema() {
@@ -63142,13 +63187,13 @@ function __disposeResources(env) {
63142
63187
  __name(next, "next");
63143
63188
  return next();
63144
63189
  }
63145
- function __rewriteRelativeImportExtension(path13, preserveJsx) {
63146
- if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
63147
- return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63190
+ function __rewriteRelativeImportExtension(path14, preserveJsx) {
63191
+ if (typeof path14 === "string" && /^\.\.?\//.test(path14)) {
63192
+ return path14.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63148
63193
  return tsx ? preserveJsx ? ".jsx" : ".js" : d4 && (!ext2 || !cm) ? m4 : d4 + ext2 + "." + cm.toLowerCase() + "js";
63149
63194
  });
63150
63195
  }
63151
- return path13;
63196
+ return path14;
63152
63197
  }
63153
63198
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
63154
63199
  var init_tslib_es6 = __esm({
@@ -64077,11 +64122,11 @@ var init_HttpBindingProtocol = __esm({
64077
64122
  const opTraits = translateTraits(operationSchema.traits);
64078
64123
  if (opTraits.http) {
64079
64124
  request.method = opTraits.http[0];
64080
- const [path13, search] = opTraits.http[1].split("?");
64125
+ const [path14, search] = opTraits.http[1].split("?");
64081
64126
  if (request.path == "/") {
64082
- request.path = path13;
64127
+ request.path = path14;
64083
64128
  } else {
64084
- request.path += path13;
64129
+ request.path += path14;
64085
64130
  }
64086
64131
  const traitSearchParams = new URLSearchParams(search ?? "");
64087
64132
  Object.assign(query, Object.fromEntries(traitSearchParams));
@@ -64471,8 +64516,8 @@ var init_requestBuilder = __esm({
64471
64516
  return this;
64472
64517
  }
64473
64518
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
64474
- this.resolvePathStack.push((path13) => {
64475
- this.path = resolvedPath(path13, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64519
+ this.resolvePathStack.push((path14) => {
64520
+ this.path = resolvedPath(path14, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64476
64521
  });
64477
64522
  return this;
64478
64523
  }
@@ -65155,18 +65200,18 @@ var require_dist_cjs19 = __commonJS({
65155
65200
  }
65156
65201
  };
65157
65202
  var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
65158
- var getAttrPathList = /* @__PURE__ */ __name((path13) => {
65159
- const parts = path13.split(".");
65203
+ var getAttrPathList = /* @__PURE__ */ __name((path14) => {
65204
+ const parts = path14.split(".");
65160
65205
  const pathList = [];
65161
65206
  for (const part of parts) {
65162
65207
  const squareBracketIndex = part.indexOf("[");
65163
65208
  if (squareBracketIndex !== -1) {
65164
65209
  if (part.indexOf("]") !== part.length - 1) {
65165
- throw new EndpointError(`Path: '${path13}' does not end with ']'`);
65210
+ throw new EndpointError(`Path: '${path14}' does not end with ']'`);
65166
65211
  }
65167
65212
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
65168
65213
  if (Number.isNaN(parseInt(arrayIndex))) {
65169
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path13}'`);
65214
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path14}'`);
65170
65215
  }
65171
65216
  if (squareBracketIndex !== 0) {
65172
65217
  pathList.push(part.slice(0, squareBracketIndex));
@@ -65178,9 +65223,9 @@ var require_dist_cjs19 = __commonJS({
65178
65223
  }
65179
65224
  return pathList;
65180
65225
  }, "getAttrPathList");
65181
- var getAttr = /* @__PURE__ */ __name((value, path13) => getAttrPathList(path13).reduce((acc, index) => {
65226
+ var getAttr = /* @__PURE__ */ __name((value, path14) => getAttrPathList(path14).reduce((acc, index) => {
65182
65227
  if (typeof acc !== "object") {
65183
- throw new EndpointError(`Index '${index}' in '${path13}' not found in '${JSON.stringify(value)}'`);
65228
+ throw new EndpointError(`Index '${index}' in '${path14}' not found in '${JSON.stringify(value)}'`);
65184
65229
  } else if (Array.isArray(acc)) {
65185
65230
  return acc[parseInt(index)];
65186
65231
  }
@@ -65199,8 +65244,8 @@ var require_dist_cjs19 = __commonJS({
65199
65244
  return value;
65200
65245
  }
65201
65246
  if (typeof value === "object" && "hostname" in value) {
65202
- const { hostname: hostname2, port, protocol: protocol2 = "", path: path13 = "", query = {} } = value;
65203
- const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path13}`);
65247
+ const { hostname: hostname2, port, protocol: protocol2 = "", path: path14 = "", query = {} } = value;
65248
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path14}`);
65204
65249
  url.search = Object.entries(query).map(([k4, v4]) => `${k4}=${v4}`).join("&");
65205
65250
  return url;
65206
65251
  }
@@ -66744,10 +66789,10 @@ ${longDate}
66744
66789
  ${credentialScope}
66745
66790
  ${utilHexEncoding.toHex(hashedRequest)}`;
66746
66791
  }
66747
- getCanonicalPath({ path: path13 }) {
66792
+ getCanonicalPath({ path: path14 }) {
66748
66793
  if (this.uriEscapePath) {
66749
66794
  const normalizedPathSegments = [];
66750
- for (const pathSegment of path13.split("/")) {
66795
+ for (const pathSegment of path14.split("/")) {
66751
66796
  if (pathSegment?.length === 0)
66752
66797
  continue;
66753
66798
  if (pathSegment === ".")
@@ -66758,11 +66803,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
66758
66803
  normalizedPathSegments.push(pathSegment);
66759
66804
  }
66760
66805
  }
66761
- const normalizedPath = `${path13?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path13?.endsWith("/") ? "/" : ""}`;
66806
+ const normalizedPath = `${path14?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path14?.endsWith("/") ? "/" : ""}`;
66762
66807
  const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
66763
66808
  return doubleEncoded.replace(/%2F/g, "/");
66764
66809
  }
66765
- return path13;
66810
+ return path14;
66766
66811
  }
66767
66812
  validateResolvedCredentials(credentials) {
66768
66813
  if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
@@ -68103,11 +68148,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
68103
68148
  }
68104
68149
  }
68105
68150
  const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context);
68106
- const path13 = `/service/${service}/operation/${operation2}`;
68151
+ const path14 = `/service/${service}/operation/${operation2}`;
68107
68152
  if (request.path.endsWith("/")) {
68108
- request.path += path13.slice(1);
68153
+ request.path += path14.slice(1);
68109
68154
  } else {
68110
- request.path += path13;
68155
+ request.path += path14;
68111
68156
  }
68112
68157
  return request;
68113
68158
  }
@@ -68662,9 +68707,8 @@ var require_dist_cjs26 = __commonJS({
68662
68707
  }
68663
68708
  };
68664
68709
  var SENSITIVE_STRING = "***SensitiveInformation***";
68665
- var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2) => {
68666
- for (const command of Object.keys(commands4)) {
68667
- const CommandCtor = commands4[command];
68710
+ var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2, options) => {
68711
+ for (const [command, CommandCtor] of Object.entries(commands4)) {
68668
68712
  const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
68669
68713
  const command2 = new CommandCtor(args);
68670
68714
  if (typeof optionsOrCb === "function") {
@@ -68680,6 +68724,33 @@ var require_dist_cjs26 = __commonJS({
68680
68724
  const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
68681
68725
  Client2.prototype[methodName] = methodImpl;
68682
68726
  }
68727
+ const { paginators = {}, waiters = {} } = options ?? {};
68728
+ for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
68729
+ if (Client2.prototype[paginatorName] === void 0) {
68730
+ Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
68731
+ return paginatorFn({
68732
+ ...paginationConfiguration,
68733
+ client: this
68734
+ }, commandInput, ...rest);
68735
+ };
68736
+ }
68737
+ }
68738
+ for (const [waiterName, waiterFn] of Object.entries(waiters)) {
68739
+ if (Client2.prototype[waiterName] === void 0) {
68740
+ Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
68741
+ let config = waiterConfiguration;
68742
+ if (typeof waiterConfiguration === "number") {
68743
+ config = {
68744
+ maxWaitTime: waiterConfiguration
68745
+ };
68746
+ }
68747
+ return waiterFn({
68748
+ ...config,
68749
+ client: this
68750
+ }, commandInput, ...rest);
68751
+ };
68752
+ }
68753
+ }
68683
68754
  }, "createAggregatedClient");
68684
68755
  var ServiceException = class _ServiceException extends Error {
68685
68756
  static {
@@ -72585,14 +72656,14 @@ var require_readFile = __commonJS({
72585
72656
  var promises_1 = require("node:fs/promises");
72586
72657
  exports2.filePromises = {};
72587
72658
  exports2.fileIntercept = {};
72588
- var readFile = /* @__PURE__ */ __name((path13, options) => {
72589
- if (exports2.fileIntercept[path13] !== void 0) {
72590
- return exports2.fileIntercept[path13];
72659
+ var readFile = /* @__PURE__ */ __name((path14, options) => {
72660
+ if (exports2.fileIntercept[path14] !== void 0) {
72661
+ return exports2.fileIntercept[path14];
72591
72662
  }
72592
- if (!exports2.filePromises[path13] || options?.ignoreCache) {
72593
- exports2.filePromises[path13] = (0, promises_1.readFile)(path13, "utf8");
72663
+ if (!exports2.filePromises[path14] || options?.ignoreCache) {
72664
+ exports2.filePromises[path14] = (0, promises_1.readFile)(path14, "utf8");
72594
72665
  }
72595
- return exports2.filePromises[path13];
72666
+ return exports2.filePromises[path14];
72596
72667
  }, "readFile");
72597
72668
  exports2.readFile = readFile;
72598
72669
  }
@@ -72605,7 +72676,7 @@ var require_dist_cjs32 = __commonJS({
72605
72676
  var getHomeDir = require_getHomeDir();
72606
72677
  var getSSOTokenFilepath = require_getSSOTokenFilepath();
72607
72678
  var getSSOTokenFromFile = require_getSSOTokenFromFile();
72608
- var path13 = require("path");
72679
+ var path14 = require("path");
72609
72680
  var types2 = require_dist_cjs();
72610
72681
  var readFile = require_readFile();
72611
72682
  var ENV_PROFILE = "AWS_PROFILE";
@@ -72627,9 +72698,9 @@ var require_dist_cjs32 = __commonJS({
72627
72698
  ...data2.default && { default: data2.default }
72628
72699
  }), "getConfigData");
72629
72700
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
72630
- var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72701
+ var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72631
72702
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
72632
- var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72703
+ var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path14.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72633
72704
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
72634
72705
  var profileNameBlockList = ["__proto__", "profile __proto__"];
72635
72706
  var parseIni = /* @__PURE__ */ __name((iniData) => {
@@ -72684,11 +72755,11 @@ var require_dist_cjs32 = __commonJS({
72684
72755
  const relativeHomeDirPrefix = "~/";
72685
72756
  let resolvedFilepath = filepath;
72686
72757
  if (filepath.startsWith(relativeHomeDirPrefix)) {
72687
- resolvedFilepath = path13.join(homeDir, filepath.slice(2));
72758
+ resolvedFilepath = path14.join(homeDir, filepath.slice(2));
72688
72759
  }
72689
72760
  let resolvedConfigFilepath = configFilepath;
72690
72761
  if (configFilepath.startsWith(relativeHomeDirPrefix)) {
72691
- resolvedConfigFilepath = path13.join(homeDir, configFilepath.slice(2));
72762
+ resolvedConfigFilepath = path14.join(homeDir, configFilepath.slice(2));
72692
72763
  }
72693
72764
  const parsedFiles = await Promise.all([
72694
72765
  readFile.readFile(resolvedConfigFilepath, {
@@ -72727,8 +72798,8 @@ var require_dist_cjs32 = __commonJS({
72727
72798
  getFileRecord() {
72728
72799
  return readFile.fileIntercept;
72729
72800
  },
72730
- interceptFile(path14, contents) {
72731
- readFile.fileIntercept[path14] = Promise.resolve(contents);
72801
+ interceptFile(path15, contents) {
72802
+ readFile.fileIntercept[path15] = Promise.resolve(contents);
72732
72803
  },
72733
72804
  getTokenRecord() {
72734
72805
  return getSSOTokenFromFile.tokenIntercept;
@@ -72967,8 +73038,8 @@ var require_dist_cjs34 = __commonJS({
72967
73038
  return endpoint.url.href;
72968
73039
  }
72969
73040
  if ("hostname" in endpoint) {
72970
- const { protocol, hostname, port, path: path13 } = endpoint;
72971
- return `${protocol}//${hostname}${port ? ":" + port : ""}${path13}`;
73041
+ const { protocol, hostname, port, path: path14 } = endpoint;
73042
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path14}`;
72972
73043
  }
72973
73044
  }
72974
73045
  return endpoint;
@@ -76228,7 +76299,7 @@ var require_dist_cjs47 = __commonJS({
76228
76299
  var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
76229
76300
  var propertyProvider = require_dist_cjs23();
76230
76301
  var sharedIniFileLoader = require_dist_cjs32();
76231
- var fs12 = require("fs");
76302
+ var fs13 = require("fs");
76232
76303
  var fromEnvSigningName = /* @__PURE__ */ __name(({ logger: logger2, signingName } = {}) => async () => {
76233
76304
  logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
76234
76305
  if (!signingName) {
@@ -76274,7 +76345,7 @@ var require_dist_cjs47 = __commonJS({
76274
76345
  throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
76275
76346
  }
76276
76347
  }, "validateTokenKey");
76277
- var { writeFile } = fs12.promises;
76348
+ var { writeFile } = fs13.promises;
76278
76349
  var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
76279
76350
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
76280
76351
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -87628,7 +87699,7 @@ var require_dist_cjs69 = __commonJS({
87628
87699
  var require_dist_cjs70 = __commonJS({
87629
87700
  "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
87630
87701
  "use strict";
87631
- var fs12 = require("fs");
87702
+ var fs13 = require("fs");
87632
87703
  var utilUtf8 = require_dist_cjs10();
87633
87704
  var stream2 = require("stream");
87634
87705
  var HashCalculator = class extends stream2.Writable {
@@ -87654,7 +87725,7 @@ var require_dist_cjs70 = __commonJS({
87654
87725
  reject(new Error("Unable to calculate hash for non-file streams."));
87655
87726
  return;
87656
87727
  }
87657
- const fileStreamTee = fs12.createReadStream(fileStream.path, {
87728
+ const fileStreamTee = fs13.createReadStream(fileStream.path, {
87658
87729
  start: fileStream.start,
87659
87730
  end: fileStream.end
87660
87731
  });
@@ -103039,9 +103110,9 @@ var require_lib5 = __commonJS({
103039
103110
  var require_build = __commonJS({
103040
103111
  "../../node_modules/y18n/build/index.cjs"(exports2, module2) {
103041
103112
  "use strict";
103042
- var fs12 = require("fs");
103113
+ var fs13 = require("fs");
103043
103114
  var util = require("util");
103044
- var path13 = require("path");
103115
+ var path14 = require("path");
103045
103116
  var shim;
103046
103117
  var Y18N = class {
103047
103118
  static {
@@ -103207,14 +103278,14 @@ var require_build = __commonJS({
103207
103278
  __name(y18n$1, "y18n$1");
103208
103279
  var nodePlatformShim = {
103209
103280
  fs: {
103210
- readFileSync: fs12.readFileSync,
103211
- writeFile: fs12.writeFile
103281
+ readFileSync: fs13.readFileSync,
103282
+ writeFile: fs13.writeFile
103212
103283
  },
103213
103284
  format: util.format,
103214
- resolve: path13.resolve,
103285
+ resolve: path14.resolve,
103215
103286
  exists: /* @__PURE__ */ __name((file) => {
103216
103287
  try {
103217
- return fs12.statSync(file).isFile();
103288
+ return fs13.statSync(file).isFile();
103218
103289
  } catch (err) {
103219
103290
  return false;
103220
103291
  }
@@ -103232,8 +103303,8 @@ var require_build2 = __commonJS({
103232
103303
  "../../node_modules/yargs-parser/build/index.cjs"(exports2, module2) {
103233
103304
  "use strict";
103234
103305
  var util = require("util");
103235
- var path13 = require("path");
103236
- var fs12 = require("fs");
103306
+ var path14 = require("path");
103307
+ var fs13 = require("fs");
103237
103308
  function camelCase(str) {
103238
103309
  const isCamelCase = str !== str.toLowerCase() && str !== str.toUpperCase();
103239
103310
  if (!isCamelCase) {
@@ -104215,13 +104286,13 @@ var require_build2 = __commonJS({
104215
104286
  return env;
104216
104287
  }, "env"),
104217
104288
  format: util.format,
104218
- normalize: path13.normalize,
104219
- resolve: path13.resolve,
104220
- require: /* @__PURE__ */ __name((path14) => {
104289
+ normalize: path14.normalize,
104290
+ resolve: path14.resolve,
104291
+ require: /* @__PURE__ */ __name((path15) => {
104221
104292
  if (typeof require !== "undefined") {
104222
- return require(path14);
104223
- } else if (path14.match(/\.json$/)) {
104224
- return JSON.parse(fs12.readFileSync(path14, "utf8"));
104293
+ return require(path15);
104294
+ } else if (path15.match(/\.json$/)) {
104295
+ return JSON.parse(fs13.readFileSync(path15, "utf8"));
104225
104296
  } else {
104226
104297
  throw Error("only .json config files are supported in ESM");
104227
104298
  }
@@ -105218,15 +105289,15 @@ var require_route = __commonJS({
105218
105289
  }
105219
105290
  __name(link, "link");
105220
105291
  function wrapConversion(toModel, graph) {
105221
- const path13 = [graph[toModel].parent, toModel];
105292
+ const path14 = [graph[toModel].parent, toModel];
105222
105293
  let fn = conversions[graph[toModel].parent][toModel];
105223
105294
  let cur = graph[toModel].parent;
105224
105295
  while (graph[cur].parent) {
105225
- path13.unshift(graph[cur].parent);
105296
+ path14.unshift(graph[cur].parent);
105226
105297
  fn = link(conversions[graph[cur].parent][cur], fn);
105227
105298
  cur = graph[cur].parent;
105228
105299
  }
105229
- fn.conversion = path13;
105300
+ fn.conversion = path14;
105230
105301
  return fn;
105231
105302
  }
105232
105303
  __name(wrapConversion, "wrapConversion");
@@ -105943,8 +106014,8 @@ var require_get_caller_file = __commonJS({
105943
106014
  var require_require_directory = __commonJS({
105944
106015
  "../../node_modules/require-directory/index.js"(exports2, module2) {
105945
106016
  "use strict";
105946
- var fs12 = require("fs");
105947
- var join9 = require("path").join;
106017
+ var fs13 = require("fs");
106018
+ var join10 = require("path").join;
105948
106019
  var resolve6 = require("path").resolve;
105949
106020
  var dirname2 = require("path").dirname;
105950
106021
  var defaultOptions = {
@@ -105957,22 +106028,22 @@ var require_require_directory = __commonJS({
105957
106028
  return obj;
105958
106029
  }, "visit")
105959
106030
  };
105960
- function checkFileInclusion(path13, filename, options) {
106031
+ function checkFileInclusion(path14, filename, options) {
105961
106032
  return (
105962
106033
  // verify file has valid extension
105963
106034
  new RegExp("\\.(" + options.extensions.join("|") + ")$", "i").test(filename) && // if options.include is a RegExp, evaluate it and make sure the path passes
105964
- !(options.include && options.include instanceof RegExp && !options.include.test(path13)) && // if options.include is a function, evaluate it and make sure the path passes
105965
- !(options.include && typeof options.include === "function" && !options.include(path13, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
105966
- !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path13)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
105967
- !(options.exclude && typeof options.exclude === "function" && options.exclude(path13, filename))
106035
+ !(options.include && options.include instanceof RegExp && !options.include.test(path14)) && // if options.include is a function, evaluate it and make sure the path passes
106036
+ !(options.include && typeof options.include === "function" && !options.include(path14, filename)) && // if options.exclude is a RegExp, evaluate it and make sure the path doesn't pass
106037
+ !(options.exclude && options.exclude instanceof RegExp && options.exclude.test(path14)) && // if options.exclude is a function, evaluate it and make sure the path doesn't pass
106038
+ !(options.exclude && typeof options.exclude === "function" && options.exclude(path14, filename))
105968
106039
  );
105969
106040
  }
105970
106041
  __name(checkFileInclusion, "checkFileInclusion");
105971
- function requireDirectory(m4, path13, options) {
106042
+ function requireDirectory(m4, path14, options) {
105972
106043
  var retval = {};
105973
- if (path13 && !options && typeof path13 !== "string") {
105974
- options = path13;
105975
- path13 = null;
106044
+ if (path14 && !options && typeof path14 !== "string") {
106045
+ options = path14;
106046
+ path14 = null;
105976
106047
  }
105977
106048
  options = options || {};
105978
106049
  for (var prop in defaultOptions) {
@@ -105980,10 +106051,10 @@ var require_require_directory = __commonJS({
105980
106051
  options[prop] = defaultOptions[prop];
105981
106052
  }
105982
106053
  }
105983
- path13 = !path13 ? dirname2(m4.filename) : resolve6(dirname2(m4.filename), path13);
105984
- fs12.readdirSync(path13).forEach(function(filename) {
105985
- var joined = join9(path13, filename), files, key, obj;
105986
- if (fs12.statSync(joined).isDirectory() && options.recurse) {
106054
+ path14 = !path14 ? dirname2(m4.filename) : resolve6(dirname2(m4.filename), path14);
106055
+ fs13.readdirSync(path14).forEach(function(filename) {
106056
+ var joined = join10(path14, filename), files, key, obj;
106057
+ if (fs13.statSync(joined).isDirectory() && options.recurse) {
105987
106058
  files = requireDirectory(m4, joined, options);
105988
106059
  if (Object.keys(files).length) {
105989
106060
  retval[options.rename(filename, joined, filename)] = files;
@@ -107752,15 +107823,15 @@ function log(level, message, stream2) {
107752
107823
  }
107753
107824
  }
107754
107825
  }
107755
- var fs11, path12, logThreshold, VERSION, LOG_LEVELS;
107826
+ var fs12, path13, logThreshold, VERSION, LOG_LEVELS;
107756
107827
  var init_logging = __esm({
107757
107828
  "bin/logging.ts"() {
107758
107829
  "use strict";
107759
- fs11 = __toESM(require("fs"));
107760
- path12 = __toESM(require("path"));
107830
+ fs12 = __toESM(require("fs"));
107831
+ path13 = __toESM(require("path"));
107761
107832
  logThreshold = "info";
107762
107833
  VERSION = JSON.parse(
107763
- fs11.readFileSync(path12.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
107834
+ fs12.readFileSync(path13.join(__dirname, "..", "package.json"), { encoding: "utf-8" })
107764
107835
  ).version;
107765
107836
  LOG_LEVELS = {
107766
107837
  verbose: 1,