cdk-assets 4.3.3 → 4.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -802,14 +802,14 @@ var require_helpers = __commonJS({
802
802
  "../@aws-cdk/cloud-assembly-schema/node_modules/jsonschema/lib/helpers.js"(exports2, module2) {
803
803
  "use strict";
804
804
  var uri = require("url");
805
- var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path12, name, argument) {
806
- if (Array.isArray(path12)) {
807
- this.path = path12;
808
- this.property = path12.reduce(function(sum, item) {
805
+ var ValidationError = exports2.ValidationError = /* @__PURE__ */ __name(function ValidationError2(message, instance, schema, path13, name, argument) {
806
+ if (Array.isArray(path13)) {
807
+ this.path = path13;
808
+ this.property = path13.reduce(function(sum, item) {
809
809
  return sum + makeSuffix(item);
810
810
  }, "instance");
811
- } else if (path12 !== void 0) {
812
- this.property = path12;
811
+ } else if (path13 !== void 0) {
812
+ this.property = path13;
813
813
  }
814
814
  if (message) {
815
815
  this.message = message;
@@ -902,16 +902,16 @@ var require_helpers = __commonJS({
902
902
  name: { value: "SchemaError", enumerable: false }
903
903
  }
904
904
  );
905
- var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path12, base, schemas) {
905
+ var SchemaContext = exports2.SchemaContext = /* @__PURE__ */ __name(function SchemaContext2(schema, options, path13, base, schemas) {
906
906
  this.schema = schema;
907
907
  this.options = options;
908
- if (Array.isArray(path12)) {
909
- this.path = path12;
910
- this.propertyPath = path12.reduce(function(sum, item) {
908
+ if (Array.isArray(path13)) {
909
+ this.path = path13;
910
+ this.propertyPath = path13.reduce(function(sum, item) {
911
911
  return sum + makeSuffix(item);
912
912
  }, "instance");
913
913
  } else {
914
- this.propertyPath = path12;
914
+ this.propertyPath = path13;
915
915
  }
916
916
  this.base = base;
917
917
  this.schemas = schemas;
@@ -920,10 +920,10 @@ var require_helpers = __commonJS({
920
920
  return uri.resolve(this.base, target);
921
921
  }, "resolve");
922
922
  SchemaContext.prototype.makeChild = /* @__PURE__ */ __name(function makeChild(schema, propertyName) {
923
- var path12 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
923
+ var path13 = propertyName === void 0 ? this.path : this.path.concat([propertyName]);
924
924
  var id = schema.$id || schema.id;
925
925
  var base = uri.resolve(this.base, id || "");
926
- var ctx = new SchemaContext(schema, this.options, path12, base, Object.create(this.schemas));
926
+ var ctx = new SchemaContext(schema, this.options, path13, base, Object.create(this.schemas));
927
927
  if (id && !ctx.schemas[base]) {
928
928
  ctx.schemas[base] = schema;
929
929
  }
@@ -4055,7 +4055,7 @@ var require_semver2 = __commonJS({
4055
4055
  // ../@aws-cdk/cloud-assembly-schema/cli-version.json
4056
4056
  var require_cli_version = __commonJS({
4057
4057
  "../@aws-cdk/cloud-assembly-schema/cli-version.json"(exports2, module2) {
4058
- module2.exports = { version: "2.1103.0" };
4058
+ module2.exports = { version: "2.1106.0" };
4059
4059
  }
4060
4060
  });
4061
4061
 
@@ -4390,7 +4390,7 @@ var require_cloud_assembly_schema = __commonJS({
4390
4390
  type: "string"
4391
4391
  },
4392
4392
  metadata: {
4393
- description: "Associated metadata. (Default - no metadata.)",
4393
+ 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.)",
4394
4394
  type: "object",
4395
4395
  additionalProperties: {
4396
4396
  type: "array",
@@ -4399,6 +4399,10 @@ var require_cloud_assembly_schema = __commonJS({
4399
4399
  }
4400
4400
  }
4401
4401
  },
4402
+ additionalMetadataFile: {
4403
+ 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)",
4404
+ type: "string"
4405
+ },
4402
4406
  dependencies: {
4403
4407
  description: "IDs of artifacts that must be deployed before this artifact. (Default - no dependencies.)",
4404
4408
  type: "array",
@@ -6043,9 +6047,9 @@ var require_integ_schema = __commonJS({
6043
6047
  var require_version = __commonJS({
6044
6048
  "../@aws-cdk/cloud-assembly-schema/schema/version.json"(exports2, module2) {
6045
6049
  module2.exports = {
6046
- schemaHash: "1b06659a117c44714e2e52854571bb1b45b765b277bb1c208bc4b7ea01f6a684",
6050
+ schemaHash: "22c511a4ddd185761b8d56ac21d48c8384873ffe4b953b3567654746f8dd26f1",
6047
6051
  $comment: "Do not hold back the version on additions: jsonschema validation of the manifest by the consumer will trigger errors on unexpected fields.",
6048
- revision: 50
6052
+ revision: 52
6049
6053
  };
6050
6054
  }
6051
6055
  });
@@ -6439,14 +6443,16 @@ var cloud_artifact_exports = {};
6439
6443
  __export(cloud_artifact_exports, {
6440
6444
  CloudArtifact: () => CloudArtifact
6441
6445
  });
6442
- var cxschema, CloudArtifact;
6446
+ var fs4, path3, cxschema, CloudArtifact;
6443
6447
  var init_cloud_artifact = __esm({
6444
6448
  "../@aws-cdk/cloud-assembly-api/lib/cloud-artifact.ts"() {
6445
6449
  "use strict";
6450
+ fs4 = __toESM(require("fs"));
6451
+ path3 = __toESM(require("path"));
6446
6452
  cxschema = __toESM(require_lib2());
6447
6453
  init_metadata();
6448
6454
  init_error();
6449
- CloudArtifact = class {
6455
+ CloudArtifact = class _CloudArtifact {
6450
6456
  constructor(assembly, id, manifest) {
6451
6457
  this.assembly = assembly;
6452
6458
  this.id = id;
@@ -6457,6 +6463,31 @@ var init_cloud_artifact = __esm({
6457
6463
  static {
6458
6464
  __name(this, "CloudArtifact");
6459
6465
  }
6466
+ /**
6467
+ * Read the metadata for the given artifact
6468
+ *
6469
+ * HISTORICAL OR PRIVATE USE ONLY
6470
+ *
6471
+ * This is publicly exposed as a static function for downstream libraries that
6472
+ * don't use the `CloudAssembly`/`CloudArtifact` API, yet still need to read
6473
+ * an artifact's metadata.
6474
+ *
6475
+ * 99% of consumers should just access `artifact.metadata`.
6476
+ */
6477
+ static readMetadata(assemblyDirectory, x4) {
6478
+ const ret = {};
6479
+ if (x4.additionalMetadataFile) {
6480
+ Object.assign(ret, JSON.parse(fs4.readFileSync(path3.join(assemblyDirectory, x4.additionalMetadataFile), "utf-8")));
6481
+ }
6482
+ for (const [p4, entries] of Object.entries(x4.metadata ?? {})) {
6483
+ if (ret[p4]) {
6484
+ ret[p4].push(...entries);
6485
+ } else {
6486
+ ret[p4] = entries;
6487
+ }
6488
+ }
6489
+ return ret;
6490
+ }
6460
6491
  /**
6461
6492
  * Returns a subclass of `CloudArtifact` based on the artifact type defined in the artifact manifest.
6462
6493
  *
@@ -6469,6 +6500,12 @@ var init_cloud_artifact = __esm({
6469
6500
  void assembly, void id, void artifact;
6470
6501
  throw new CloudAssemblyError("Implementation not overridden yet");
6471
6502
  }
6503
+ /**
6504
+ * Returns the metadata associated with this Cloud Artifact
6505
+ */
6506
+ get metadata() {
6507
+ return _CloudArtifact.readMetadata(this.assembly.directory, this.manifest);
6508
+ }
6472
6509
  /**
6473
6510
  * Returns all the artifacts that this artifact depends on.
6474
6511
  */
@@ -6489,11 +6526,12 @@ var init_cloud_artifact = __esm({
6489
6526
  * @returns all the metadata entries of a specific type in this artifact.
6490
6527
  */
6491
6528
  findMetadataByType(type) {
6529
+ const metadata = this.metadata;
6492
6530
  const result = new Array();
6493
- for (const path12 of Object.keys(this.manifest.metadata || {})) {
6494
- for (const entry of (this.manifest.metadata || {})[path12]) {
6531
+ for (const p4 of Object.keys(metadata || {})) {
6532
+ for (const entry of (metadata || {})[p4]) {
6495
6533
  if (entry.type === type) {
6496
- result.push({ path: path12, ...entry });
6534
+ result.push({ path: p4, ...entry });
6497
6535
  }
6498
6536
  }
6499
6537
  }
@@ -6501,7 +6539,7 @@ var init_cloud_artifact = __esm({
6501
6539
  }
6502
6540
  renderMessages() {
6503
6541
  const messages = new Array();
6504
- for (const [id, metadata] of Object.entries(this.manifest.metadata || {})) {
6542
+ for (const [id, metadata] of Object.entries(this.metadata || {})) {
6505
6543
  for (const entry of metadata) {
6506
6544
  let level;
6507
6545
  switch (entry.type) {
@@ -6539,12 +6577,12 @@ var asset_manifest_artifact_exports = {};
6539
6577
  __export(asset_manifest_artifact_exports, {
6540
6578
  AssetManifestArtifact: () => AssetManifestArtifact
6541
6579
  });
6542
- var fs4, path3, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6580
+ var fs5, path4, ASSET_MANIFEST_ARTIFACT_SYM, AssetManifestArtifact;
6543
6581
  var init_asset_manifest_artifact = __esm({
6544
6582
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/asset-manifest-artifact.ts"() {
6545
6583
  "use strict";
6546
- fs4 = __toESM(require("fs"));
6547
- path3 = __toESM(require("path"));
6584
+ fs5 = __toESM(require("fs"));
6585
+ path4 = __toESM(require("path"));
6548
6586
  init_cloud_artifact();
6549
6587
  init_error();
6550
6588
  ASSET_MANIFEST_ARTIFACT_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.AssetManifestArtifact");
@@ -6578,7 +6616,7 @@ var init_asset_manifest_artifact = __esm({
6578
6616
  if (!properties.file) {
6579
6617
  throw new CloudAssemblyError('Invalid AssetManifestArtifact. Missing "file" property');
6580
6618
  }
6581
- this.file = path3.resolve(this.assembly.directory, properties.file);
6619
+ this.file = path4.resolve(this.assembly.directory, properties.file);
6582
6620
  this.requiresBootstrapStackVersion = properties.requiresBootstrapStackVersion;
6583
6621
  this.bootstrapStackVersionSsmParameter = properties.bootstrapStackVersionSsmParameter;
6584
6622
  }
@@ -6589,7 +6627,7 @@ var init_asset_manifest_artifact = __esm({
6589
6627
  if (this._contents !== void 0) {
6590
6628
  return this._contents;
6591
6629
  }
6592
- const contents = this._contents = JSON.parse(fs4.readFileSync(this.file, "utf-8"));
6630
+ const contents = this._contents = JSON.parse(fs5.readFileSync(this.file, "utf-8"));
6593
6631
  return contents;
6594
6632
  }
6595
6633
  };
@@ -6654,12 +6692,12 @@ var cloudformation_artifact_exports = {};
6654
6692
  __export(cloudformation_artifact_exports, {
6655
6693
  CloudFormationStackArtifact: () => CloudFormationStackArtifact
6656
6694
  });
6657
- var fs5, path4, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6695
+ var fs6, path5, cxschema2, CLOUDFORMATION_STACK_ARTIFACT_SYM, CloudFormationStackArtifact;
6658
6696
  var init_cloudformation_artifact = __esm({
6659
6697
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/cloudformation-artifact.ts"() {
6660
6698
  "use strict";
6661
- fs5 = __toESM(require("fs"));
6662
- path4 = __toESM(require("path"));
6699
+ fs6 = __toESM(require("fs"));
6700
+ path5 = __toESM(require("path"));
6663
6701
  cxschema2 = __toESM(require_lib2());
6664
6702
  init_cloud_artifact();
6665
6703
  init_environment();
@@ -6723,14 +6761,14 @@ var init_cloudformation_artifact = __esm({
6723
6761
  * Full path to the template file
6724
6762
  */
6725
6763
  get templateFullPath() {
6726
- return path4.join(this.assembly.directory, this.templateFile);
6764
+ return path5.join(this.assembly.directory, this.templateFile);
6727
6765
  }
6728
6766
  /**
6729
6767
  * The CloudFormation template for this stack.
6730
6768
  */
6731
6769
  get template() {
6732
6770
  if (this._template === void 0) {
6733
- this._template = JSON.parse(fs5.readFileSync(this.templateFullPath, "utf-8"));
6771
+ this._template = JSON.parse(fs6.readFileSync(this.templateFullPath, "utf-8"));
6734
6772
  }
6735
6773
  return this._template;
6736
6774
  }
@@ -6748,11 +6786,11 @@ var nested_cloud_assembly_artifact_exports = {};
6748
6786
  __export(nested_cloud_assembly_artifact_exports, {
6749
6787
  NestedCloudAssemblyArtifact: () => NestedCloudAssemblyArtifact
6750
6788
  });
6751
- var path5, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6789
+ var path6, NESTED_CLOUD_ASSEMBLY_SYM, NestedCloudAssemblyArtifact;
6752
6790
  var init_nested_cloud_assembly_artifact = __esm({
6753
6791
  "../@aws-cdk/cloud-assembly-api/lib/artifacts/nested-cloud-assembly-artifact.ts"() {
6754
6792
  "use strict";
6755
- path5 = __toESM(require("path"));
6793
+ path6 = __toESM(require("path"));
6756
6794
  init_cloud_artifact();
6757
6795
  NESTED_CLOUD_ASSEMBLY_SYM = /* @__PURE__ */ Symbol.for("@aws-cdk/cx-api.NestedCloudAssemblyArtifact");
6758
6796
  NestedCloudAssemblyArtifact = class extends CloudArtifact {
@@ -6789,7 +6827,7 @@ var init_nested_cloud_assembly_artifact = __esm({
6789
6827
  * Full path to the nested assembly directory
6790
6828
  */
6791
6829
  get fullPath() {
6792
- return path5.join(this.assembly.directory, this.directoryName);
6830
+ return path6.join(this.assembly.directory, this.directoryName);
6793
6831
  }
6794
6832
  };
6795
6833
  Object.defineProperty(NestedCloudAssemblyArtifact.prototype, NESTED_CLOUD_ASSEMBLY_SYM, {
@@ -6940,26 +6978,26 @@ function determineOutputDirectory(outdir) {
6940
6978
  if (outdir) {
6941
6979
  return outdir;
6942
6980
  }
6943
- const tmpDir = fs6.mkdtempSync(path6.join(fs6.realpathSync(os3.tmpdir()), "cdk.out"));
6981
+ const tmpDir = fs7.mkdtempSync(path7.join(fs7.realpathSync(os3.tmpdir()), "cdk.out"));
6944
6982
  TEMPORARY_ASSEMBLY_DIRS.push(tmpDir);
6945
6983
  return outdir ?? tmpDir;
6946
6984
  }
6947
6985
  function ensureDirSync(dir) {
6948
- if (fs6.existsSync(dir)) {
6949
- if (!fs6.statSync(dir).isDirectory()) {
6986
+ if (fs7.existsSync(dir)) {
6987
+ if (!fs7.statSync(dir).isDirectory()) {
6950
6988
  throw new CloudAssemblyError(`${dir} must be a directory`);
6951
6989
  }
6952
6990
  } else {
6953
- fs6.mkdirSync(dir, { recursive: true });
6991
+ fs7.mkdirSync(dir, { recursive: true });
6954
6992
  }
6955
6993
  }
6956
- var fs6, os3, path6, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6994
+ var fs7, os3, path7, cxschema4, CLOUD_ASSEMBLY_SYMBOL, MANIFEST_FILE, CloudAssembly, CloudAssemblyBuilder, TEMPORARY_ASSEMBLY_DIRS;
6957
6995
  var init_cloud_assembly2 = __esm({
6958
6996
  "../@aws-cdk/cloud-assembly-api/lib/cloud-assembly.ts"() {
6959
6997
  "use strict";
6960
- fs6 = __toESM(require("fs"));
6998
+ fs7 = __toESM(require("fs"));
6961
6999
  os3 = __toESM(require("os"));
6962
- path6 = __toESM(require("path"));
7000
+ path7 = __toESM(require("path"));
6963
7001
  cxschema4 = __toESM(require_lib2());
6964
7002
  init_cloudformation_artifact();
6965
7003
  init_nested_cloud_assembly_artifact();
@@ -7023,7 +7061,7 @@ var init_cloud_assembly2 = __esm({
7023
7061
  */
7024
7062
  static cleanupTemporaryDirectories() {
7025
7063
  for (const dir of TEMPORARY_ASSEMBLY_DIRS) {
7026
- fs6.rmSync(dir, { recursive: true, force: true });
7064
+ fs7.rmSync(dir, { recursive: true, force: true });
7027
7065
  }
7028
7066
  TEMPORARY_ASSEMBLY_DIRS.splice(0, TEMPORARY_ASSEMBLY_DIRS.length);
7029
7067
  }
@@ -7033,7 +7071,7 @@ var init_cloud_assembly2 = __esm({
7033
7071
  */
7034
7072
  constructor(directory, loadOptions) {
7035
7073
  this.directory = directory;
7036
- this.manifest = cxschema4.Manifest.loadAssemblyManifest(path6.join(directory, MANIFEST_FILE), loadOptions);
7074
+ this.manifest = cxschema4.Manifest.loadAssemblyManifest(path7.join(directory, MANIFEST_FILE), loadOptions);
7037
7075
  this.version = this.manifest.version;
7038
7076
  this.artifacts = this.renderArtifacts(loadOptions?.topoSort ?? true);
7039
7077
  this.runtime = this.manifest.runtime || { libraries: {} };
@@ -7234,9 +7272,9 @@ var init_cloud_assembly2 = __esm({
7234
7272
  missing: this.missing.length > 0 ? this.missing : void 0
7235
7273
  };
7236
7274
  manifest = filterUndefined(manifest);
7237
- const manifestFilePath = path6.join(this.outdir, MANIFEST_FILE);
7275
+ const manifestFilePath = path7.join(this.outdir, MANIFEST_FILE);
7238
7276
  cxschema4.Manifest.saveAssemblyManifest(manifest, manifestFilePath);
7239
- fs6.writeFileSync(path6.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7277
+ fs7.writeFileSync(path7.join(this.outdir, "cdk.out"), JSON.stringify({ version: manifest.version }));
7240
7278
  return new CloudAssembly(this.outdir);
7241
7279
  }
7242
7280
  /**
@@ -7244,7 +7282,7 @@ var init_cloud_assembly2 = __esm({
7244
7282
  */
7245
7283
  createNestedAssembly(artifactId, displayName) {
7246
7284
  const directoryName = artifactId;
7247
- const innerAsmDir = path6.join(this.outdir, directoryName);
7285
+ const innerAsmDir = path7.join(this.outdir, directoryName);
7248
7286
  this.addArtifact(artifactId, {
7249
7287
  type: cxschema4.ArtifactType.NESTED_CLOUD_ASSEMBLY,
7250
7288
  properties: {
@@ -7262,7 +7300,7 @@ var init_cloud_assembly2 = __esm({
7262
7300
  * Delete the cloud assembly directory
7263
7301
  */
7264
7302
  delete() {
7265
- fs6.rmSync(this.outdir, { recursive: true, force: true });
7303
+ fs7.rmSync(this.outdir, { recursive: true, force: true });
7266
7304
  }
7267
7305
  };
7268
7306
  __name(filterUndefined, "filterUndefined");
@@ -7550,11 +7588,11 @@ async function repositoryUri(ecr, repositoryName) {
7550
7588
  return void 0;
7551
7589
  }
7552
7590
  }
7553
- var path7, ContainerImageAssetHandler, ContainerImageBuilder;
7591
+ var path8, ContainerImageAssetHandler, ContainerImageBuilder;
7554
7592
  var init_container_images = __esm({
7555
7593
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/container-images.ts"() {
7556
7594
  "use strict";
7557
- path7 = __toESM(require("path"));
7595
+ path8 = __toESM(require("path"));
7558
7596
  init_client_options();
7559
7597
  init_progress();
7560
7598
  init_placeholders2();
@@ -7725,7 +7763,7 @@ var init_container_images = __esm({
7725
7763
  `'directory' is expected in the DockerImage asset source, got: ${JSON.stringify(source)}`
7726
7764
  );
7727
7765
  }
7728
- const fullPath = path7.resolve(this.workDir, source.directory);
7766
+ const fullPath = path8.resolve(this.workDir, source.directory);
7729
7767
  this.host.emitMessage("build" /* BUILD */, `Building Docker image at ${fullPath}`);
7730
7768
  await this.docker.build({
7731
7769
  directory: fullPath,
@@ -7795,11 +7833,11 @@ var require_Mime = __commonJS({
7795
7833
  }
7796
7834
  }
7797
7835
  };
7798
- Mime.prototype.getType = function(path12) {
7799
- path12 = String(path12);
7800
- let last = path12.replace(/^.*[/\\]/, "").toLowerCase();
7836
+ Mime.prototype.getType = function(path13) {
7837
+ path13 = String(path13);
7838
+ let last = path13.replace(/^.*[/\\]/, "").toLowerCase();
7801
7839
  let ext2 = last.replace(/^.*\./, "").toLowerCase();
7802
- let hasPath = last.length < path12.length;
7840
+ let hasPath = last.length < path13.length;
7803
7841
  let hasDot = ext2.length < last.length - 1;
7804
7842
  return (hasDot || !hasPath) && this._types[ext2] || null;
7805
7843
  };
@@ -8066,10 +8104,10 @@ var init_esm2 = __esm({
8066
8104
  }
8067
8105
  });
8068
8106
 
8069
- // ../../node_modules/minimatch/dist/esm/assert-valid-pattern.js
8107
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js
8070
8108
  var MAX_PATTERN_LENGTH, assertValidPattern;
8071
8109
  var init_assert_valid_pattern = __esm({
8072
- "../../node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8110
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/assert-valid-pattern.js"() {
8073
8111
  MAX_PATTERN_LENGTH = 1024 * 64;
8074
8112
  assertValidPattern = /* @__PURE__ */ __name((pattern) => {
8075
8113
  if (typeof pattern !== "string") {
@@ -8082,10 +8120,10 @@ var init_assert_valid_pattern = __esm({
8082
8120
  }
8083
8121
  });
8084
8122
 
8085
- // ../../node_modules/minimatch/dist/esm/brace-expressions.js
8123
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js
8086
8124
  var posixClasses, braceEscape, regexpEscape, rangesToString, parseClass;
8087
8125
  var init_brace_expressions = __esm({
8088
- "../../node_modules/minimatch/dist/esm/brace-expressions.js"() {
8126
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/brace-expressions.js"() {
8089
8127
  posixClasses = {
8090
8128
  "[:alnum:]": ["\\p{L}\\p{Nl}\\p{Nd}", true],
8091
8129
  "[:alpha:]": ["\\p{L}\\p{Nl}", true],
@@ -8196,10 +8234,10 @@ var init_brace_expressions = __esm({
8196
8234
  }
8197
8235
  });
8198
8236
 
8199
- // ../../node_modules/minimatch/dist/esm/unescape.js
8237
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js
8200
8238
  var unescape;
8201
8239
  var init_unescape = __esm({
8202
- "../../node_modules/minimatch/dist/esm/unescape.js"() {
8240
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/unescape.js"() {
8203
8241
  unescape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = true } = {}) => {
8204
8242
  if (magicalBraces) {
8205
8243
  return windowsPathsNoEscape ? s4.replace(/\[([^\/\\])\]/g, "$1") : s4.replace(/((?!\\).|^)\[([^\/\\])\]/g, "$1$2").replace(/\\([^\/])/g, "$1");
@@ -8209,10 +8247,10 @@ var init_unescape = __esm({
8209
8247
  }
8210
8248
  });
8211
8249
 
8212
- // ../../node_modules/minimatch/dist/esm/ast.js
8250
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js
8213
8251
  var types, isExtglobType, startNoTraversal, startNoDot, addPatternStart, justDots, reSpecials, regExpEscape, qmark, star, starNoEmpty, AST;
8214
8252
  var init_ast = __esm({
8215
- "../../node_modules/minimatch/dist/esm/ast.js"() {
8253
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/ast.js"() {
8216
8254
  init_brace_expressions();
8217
8255
  init_unescape();
8218
8256
  types = /* @__PURE__ */ new Set(["!", "?", "+", "*", "@"]);
@@ -8695,10 +8733,10 @@ var init_ast = __esm({
8695
8733
  }
8696
8734
  });
8697
8735
 
8698
- // ../../node_modules/minimatch/dist/esm/escape.js
8736
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js
8699
8737
  var escape;
8700
8738
  var init_escape = __esm({
8701
- "../../node_modules/minimatch/dist/esm/escape.js"() {
8739
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/escape.js"() {
8702
8740
  escape = /* @__PURE__ */ __name((s4, { windowsPathsNoEscape = false, magicalBraces = false } = {}) => {
8703
8741
  if (magicalBraces) {
8704
8742
  return windowsPathsNoEscape ? s4.replace(/[?*()[\]{}]/g, "[$&]") : s4.replace(/[?*()[\]\\{}]/g, "\\$&");
@@ -8708,10 +8746,10 @@ var init_escape = __esm({
8708
8746
  }
8709
8747
  });
8710
8748
 
8711
- // ../../node_modules/minimatch/dist/esm/index.js
8712
- 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;
8749
+ // ../../node_modules/glob/node_modules/minimatch/dist/esm/index.js
8750
+ 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;
8713
8751
  var init_esm3 = __esm({
8714
- "../../node_modules/minimatch/dist/esm/index.js"() {
8752
+ "../../node_modules/glob/node_modules/minimatch/dist/esm/index.js"() {
8715
8753
  init_esm2();
8716
8754
  init_assert_valid_pattern();
8717
8755
  init_ast();
@@ -8778,11 +8816,11 @@ var init_esm3 = __esm({
8778
8816
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
8779
8817
  }, "qmarksTestNoExtDot");
8780
8818
  defaultPlatform = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
8781
- path8 = {
8819
+ path9 = {
8782
8820
  win32: { sep: "\\" },
8783
8821
  posix: { sep: "/" }
8784
8822
  };
8785
- sep = defaultPlatform === "win32" ? path8.win32.sep : path8.posix.sep;
8823
+ sep = defaultPlatform === "win32" ? path9.win32.sep : path9.posix.sep;
8786
8824
  minimatch.sep = sep;
8787
8825
  GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
8788
8826
  minimatch.GLOBSTAR = GLOBSTAR;
@@ -12079,12 +12117,12 @@ var init_esm6 = __esm({
12079
12117
  /**
12080
12118
  * Get the Path object referenced by the string path, resolved from this Path
12081
12119
  */
12082
- resolve(path12) {
12083
- if (!path12) {
12120
+ resolve(path13) {
12121
+ if (!path13) {
12084
12122
  return this;
12085
12123
  }
12086
- const rootPath = this.getRootString(path12);
12087
- const dir = path12.substring(rootPath.length);
12124
+ const rootPath = this.getRootString(path13);
12125
+ const dir = path13.substring(rootPath.length);
12088
12126
  const dirParts = dir.split(this.splitSep);
12089
12127
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
12090
12128
  return result;
@@ -12839,8 +12877,8 @@ var init_esm6 = __esm({
12839
12877
  /**
12840
12878
  * @internal
12841
12879
  */
12842
- getRootString(path12) {
12843
- return import_node_path.win32.parse(path12).root;
12880
+ getRootString(path13) {
12881
+ return import_node_path.win32.parse(path13).root;
12844
12882
  }
12845
12883
  /**
12846
12884
  * @internal
@@ -12889,8 +12927,8 @@ var init_esm6 = __esm({
12889
12927
  /**
12890
12928
  * @internal
12891
12929
  */
12892
- getRootString(path12) {
12893
- return path12.startsWith("/") ? "/" : "";
12930
+ getRootString(path13) {
12931
+ return path13.startsWith("/") ? "/" : "";
12894
12932
  }
12895
12933
  /**
12896
12934
  * @internal
@@ -12942,8 +12980,8 @@ var init_esm6 = __esm({
12942
12980
  *
12943
12981
  * @internal
12944
12982
  */
12945
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS } = {}) {
12946
- this.#fs = fsFromOption(fs12);
12983
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS } = {}) {
12984
+ this.#fs = fsFromOption(fs13);
12947
12985
  if (cwd instanceof URL || cwd.startsWith("file://")) {
12948
12986
  cwd = (0, import_node_url.fileURLToPath)(cwd);
12949
12987
  }
@@ -12982,11 +13020,11 @@ var init_esm6 = __esm({
12982
13020
  /**
12983
13021
  * Get the depth of a provided path, string, or the cwd
12984
13022
  */
12985
- depth(path12 = this.cwd) {
12986
- if (typeof path12 === "string") {
12987
- path12 = this.cwd.resolve(path12);
13023
+ depth(path13 = this.cwd) {
13024
+ if (typeof path13 === "string") {
13025
+ path13 = this.cwd.resolve(path13);
12988
13026
  }
12989
- return path12.depth();
13027
+ return path13.depth();
12990
13028
  }
12991
13029
  /**
12992
13030
  * Return the cache of child entries. Exposed so subclasses can create
@@ -13473,9 +13511,9 @@ var init_esm6 = __esm({
13473
13511
  process2();
13474
13512
  return results;
13475
13513
  }
13476
- chdir(path12 = this.cwd) {
13514
+ chdir(path13 = this.cwd) {
13477
13515
  const oldCwd = this.cwd;
13478
- this.cwd = typeof path12 === "string" ? this.cwd.resolve(path12) : path12;
13516
+ this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
13479
13517
  this.cwd[setAsCwd](oldCwd);
13480
13518
  }
13481
13519
  };
@@ -13504,8 +13542,8 @@ var init_esm6 = __esm({
13504
13542
  /**
13505
13543
  * @internal
13506
13544
  */
13507
- newRoot(fs12) {
13508
- return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13545
+ newRoot(fs13) {
13546
+ return new PathWin32(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13509
13547
  }
13510
13548
  /**
13511
13549
  * Return true if the provided path string is an absolute path
@@ -13536,8 +13574,8 @@ var init_esm6 = __esm({
13536
13574
  /**
13537
13575
  * @internal
13538
13576
  */
13539
- newRoot(fs12) {
13540
- return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
13577
+ newRoot(fs13) {
13578
+ return new PathPosix(this.rootPath, IFDIR, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
13541
13579
  }
13542
13580
  /**
13543
13581
  * Return true if the provided path string is an absolute path
@@ -13871,8 +13909,8 @@ var init_processor = __esm({
13871
13909
  }
13872
13910
  // match, absolute, ifdir
13873
13911
  entries() {
13874
- return [...this.store.entries()].map(([path12, n4]) => [
13875
- path12,
13912
+ return [...this.store.entries()].map(([path13, n4]) => [
13913
+ path13,
13876
13914
  !!(n4 & 2),
13877
13915
  !!(n4 & 1)
13878
13916
  ]);
@@ -14094,9 +14132,9 @@ var init_walker = __esm({
14094
14132
  signal;
14095
14133
  maxDepth;
14096
14134
  includeChildMatches;
14097
- constructor(patterns, path12, opts) {
14135
+ constructor(patterns, path13, opts) {
14098
14136
  this.patterns = patterns;
14099
- this.path = path12;
14137
+ this.path = path13;
14100
14138
  this.opts = opts;
14101
14139
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
14102
14140
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -14115,11 +14153,11 @@ var init_walker = __esm({
14115
14153
  });
14116
14154
  }
14117
14155
  }
14118
- #ignored(path12) {
14119
- return this.seen.has(path12) || !!this.#ignore?.ignored?.(path12);
14156
+ #ignored(path13) {
14157
+ return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
14120
14158
  }
14121
- #childrenIgnored(path12) {
14122
- return !!this.#ignore?.childrenIgnored?.(path12);
14159
+ #childrenIgnored(path13) {
14160
+ return !!this.#ignore?.childrenIgnored?.(path13);
14123
14161
  }
14124
14162
  // backpressure mechanism
14125
14163
  pause() {
@@ -14337,8 +14375,8 @@ var init_walker = __esm({
14337
14375
  __name(this, "GlobWalker");
14338
14376
  }
14339
14377
  matches = /* @__PURE__ */ new Set();
14340
- constructor(patterns, path12, opts) {
14341
- super(patterns, path12, opts);
14378
+ constructor(patterns, path13, opts) {
14379
+ super(patterns, path13, opts);
14342
14380
  }
14343
14381
  matchEmit(e4) {
14344
14382
  this.matches.add(e4);
@@ -14378,8 +14416,8 @@ var init_walker = __esm({
14378
14416
  __name(this, "GlobStream");
14379
14417
  }
14380
14418
  results;
14381
- constructor(patterns, path12, opts) {
14382
- super(patterns, path12, opts);
14419
+ constructor(patterns, path13, opts) {
14420
+ super(patterns, path13, opts);
14383
14421
  this.results = new Minipass({
14384
14422
  signal: this.signal,
14385
14423
  objectMode: true
@@ -14951,8 +14989,8 @@ var require_minimatch = __commonJS({
14951
14989
  return new Minimatch2(pattern, options).match(p4);
14952
14990
  };
14953
14991
  module2.exports = minimatch2;
14954
- var path12 = require_path();
14955
- minimatch2.sep = path12.sep;
14992
+ var path13 = require_path();
14993
+ minimatch2.sep = path13.sep;
14956
14994
  var GLOBSTAR2 = /* @__PURE__ */ Symbol("globstar **");
14957
14995
  minimatch2.GLOBSTAR = GLOBSTAR2;
14958
14996
  var expand2 = require_brace_expansion();
@@ -15467,8 +15505,8 @@ var require_minimatch = __commonJS({
15467
15505
  if (this.empty) return f4 === "";
15468
15506
  if (f4 === "/" && partial) return true;
15469
15507
  const options = this.options;
15470
- if (path12.sep !== "/") {
15471
- f4 = f4.split(path12.sep).join("/");
15508
+ if (path13.sep !== "/") {
15509
+ f4 = f4.split(path13.sep).join("/");
15472
15510
  }
15473
15511
  f4 = f4.split(slashSplit);
15474
15512
  this.debug(this.pattern, "split", f4);
@@ -15506,13 +15544,13 @@ var require_minimatch = __commonJS({
15506
15544
  var require_readdir_glob = __commonJS({
15507
15545
  "../../node_modules/readdir-glob/index.js"(exports2, module2) {
15508
15546
  module2.exports = readdirGlob;
15509
- var fs12 = require("fs");
15547
+ var fs13 = require("fs");
15510
15548
  var { EventEmitter: EventEmitter2 } = require("events");
15511
15549
  var { Minimatch: Minimatch2 } = require_minimatch();
15512
15550
  var { resolve: resolve6 } = require("path");
15513
15551
  function readdir2(dir, strict) {
15514
15552
  return new Promise((resolve7, reject) => {
15515
- fs12.readdir(dir, { withFileTypes: true }, (err, files) => {
15553
+ fs13.readdir(dir, { withFileTypes: true }, (err, files) => {
15516
15554
  if (err) {
15517
15555
  switch (err.code) {
15518
15556
  case "ENOTDIR":
@@ -15546,7 +15584,7 @@ var require_readdir_glob = __commonJS({
15546
15584
  __name(readdir2, "readdir");
15547
15585
  function stat(file, followSymlinks) {
15548
15586
  return new Promise((resolve7, reject) => {
15549
- const statFunc = followSymlinks ? fs12.stat : fs12.lstat;
15587
+ const statFunc = followSymlinks ? fs13.stat : fs13.lstat;
15550
15588
  statFunc(file, (err, stats) => {
15551
15589
  if (err) {
15552
15590
  switch (err.code) {
@@ -15568,8 +15606,8 @@ var require_readdir_glob = __commonJS({
15568
15606
  });
15569
15607
  }
15570
15608
  __name(stat, "stat");
15571
- async function* exploreWalkAsync(dir, path12, followSymlinks, useStat, shouldSkip, strict) {
15572
- let files = await readdir2(path12 + dir, strict);
15609
+ async function* exploreWalkAsync(dir, path13, followSymlinks, useStat, shouldSkip, strict) {
15610
+ let files = await readdir2(path13 + dir, strict);
15573
15611
  for (const file of files) {
15574
15612
  let name = file.name;
15575
15613
  if (name === void 0) {
@@ -15578,7 +15616,7 @@ var require_readdir_glob = __commonJS({
15578
15616
  }
15579
15617
  const filename = dir + "/" + name;
15580
15618
  const relative = filename.slice(1);
15581
- const absolute = path12 + "/" + relative;
15619
+ const absolute = path13 + "/" + relative;
15582
15620
  let stats = null;
15583
15621
  if (useStat || followSymlinks) {
15584
15622
  stats = await stat(absolute, followSymlinks);
@@ -15592,7 +15630,7 @@ var require_readdir_glob = __commonJS({
15592
15630
  if (stats.isDirectory()) {
15593
15631
  if (!shouldSkip(relative)) {
15594
15632
  yield { relative, absolute, stats };
15595
- yield* exploreWalkAsync(filename, path12, followSymlinks, useStat, shouldSkip, false);
15633
+ yield* exploreWalkAsync(filename, path13, followSymlinks, useStat, shouldSkip, false);
15596
15634
  }
15597
15635
  } else {
15598
15636
  yield { relative, absolute, stats };
@@ -15600,8 +15638,8 @@ var require_readdir_glob = __commonJS({
15600
15638
  }
15601
15639
  }
15602
15640
  __name(exploreWalkAsync, "exploreWalkAsync");
15603
- async function* explore(path12, followSymlinks, useStat, shouldSkip) {
15604
- yield* exploreWalkAsync("", path12, followSymlinks, useStat, shouldSkip, true);
15641
+ async function* explore(path13, followSymlinks, useStat, shouldSkip) {
15642
+ yield* exploreWalkAsync("", path13, followSymlinks, useStat, shouldSkip, true);
15605
15643
  }
15606
15644
  __name(explore, "explore");
15607
15645
  function readOptions(options) {
@@ -17773,54 +17811,54 @@ var require_polyfills = __commonJS({
17773
17811
  }
17774
17812
  var chdir;
17775
17813
  module2.exports = patch;
17776
- function patch(fs12) {
17814
+ function patch(fs13) {
17777
17815
  if (constants.hasOwnProperty("O_SYMLINK") && process.version.match(/^v0\.6\.[0-2]|^v0\.5\./)) {
17778
- patchLchmod(fs12);
17779
- }
17780
- if (!fs12.lutimes) {
17781
- patchLutimes(fs12);
17782
- }
17783
- fs12.chown = chownFix(fs12.chown);
17784
- fs12.fchown = chownFix(fs12.fchown);
17785
- fs12.lchown = chownFix(fs12.lchown);
17786
- fs12.chmod = chmodFix(fs12.chmod);
17787
- fs12.fchmod = chmodFix(fs12.fchmod);
17788
- fs12.lchmod = chmodFix(fs12.lchmod);
17789
- fs12.chownSync = chownFixSync(fs12.chownSync);
17790
- fs12.fchownSync = chownFixSync(fs12.fchownSync);
17791
- fs12.lchownSync = chownFixSync(fs12.lchownSync);
17792
- fs12.chmodSync = chmodFixSync(fs12.chmodSync);
17793
- fs12.fchmodSync = chmodFixSync(fs12.fchmodSync);
17794
- fs12.lchmodSync = chmodFixSync(fs12.lchmodSync);
17795
- fs12.stat = statFix(fs12.stat);
17796
- fs12.fstat = statFix(fs12.fstat);
17797
- fs12.lstat = statFix(fs12.lstat);
17798
- fs12.statSync = statFixSync(fs12.statSync);
17799
- fs12.fstatSync = statFixSync(fs12.fstatSync);
17800
- fs12.lstatSync = statFixSync(fs12.lstatSync);
17801
- if (fs12.chmod && !fs12.lchmod) {
17802
- fs12.lchmod = function(path12, mode, cb) {
17816
+ patchLchmod(fs13);
17817
+ }
17818
+ if (!fs13.lutimes) {
17819
+ patchLutimes(fs13);
17820
+ }
17821
+ fs13.chown = chownFix(fs13.chown);
17822
+ fs13.fchown = chownFix(fs13.fchown);
17823
+ fs13.lchown = chownFix(fs13.lchown);
17824
+ fs13.chmod = chmodFix(fs13.chmod);
17825
+ fs13.fchmod = chmodFix(fs13.fchmod);
17826
+ fs13.lchmod = chmodFix(fs13.lchmod);
17827
+ fs13.chownSync = chownFixSync(fs13.chownSync);
17828
+ fs13.fchownSync = chownFixSync(fs13.fchownSync);
17829
+ fs13.lchownSync = chownFixSync(fs13.lchownSync);
17830
+ fs13.chmodSync = chmodFixSync(fs13.chmodSync);
17831
+ fs13.fchmodSync = chmodFixSync(fs13.fchmodSync);
17832
+ fs13.lchmodSync = chmodFixSync(fs13.lchmodSync);
17833
+ fs13.stat = statFix(fs13.stat);
17834
+ fs13.fstat = statFix(fs13.fstat);
17835
+ fs13.lstat = statFix(fs13.lstat);
17836
+ fs13.statSync = statFixSync(fs13.statSync);
17837
+ fs13.fstatSync = statFixSync(fs13.fstatSync);
17838
+ fs13.lstatSync = statFixSync(fs13.lstatSync);
17839
+ if (fs13.chmod && !fs13.lchmod) {
17840
+ fs13.lchmod = function(path13, mode, cb) {
17803
17841
  if (cb) process.nextTick(cb);
17804
17842
  };
17805
- fs12.lchmodSync = function() {
17843
+ fs13.lchmodSync = function() {
17806
17844
  };
17807
17845
  }
17808
- if (fs12.chown && !fs12.lchown) {
17809
- fs12.lchown = function(path12, uid, gid, cb) {
17846
+ if (fs13.chown && !fs13.lchown) {
17847
+ fs13.lchown = function(path13, uid, gid, cb) {
17810
17848
  if (cb) process.nextTick(cb);
17811
17849
  };
17812
- fs12.lchownSync = function() {
17850
+ fs13.lchownSync = function() {
17813
17851
  };
17814
17852
  }
17815
17853
  if (platform === "win32") {
17816
- fs12.rename = typeof fs12.rename !== "function" ? fs12.rename : (function(fs$rename) {
17854
+ fs13.rename = typeof fs13.rename !== "function" ? fs13.rename : (function(fs$rename) {
17817
17855
  function rename(from, to, cb) {
17818
17856
  var start = Date.now();
17819
17857
  var backoff = 0;
17820
17858
  fs$rename(from, to, /* @__PURE__ */ __name(function CB(er) {
17821
17859
  if (er && (er.code === "EACCES" || er.code === "EPERM" || er.code === "EBUSY") && Date.now() - start < 6e4) {
17822
17860
  setTimeout(function() {
17823
- fs12.stat(to, function(stater, st) {
17861
+ fs13.stat(to, function(stater, st) {
17824
17862
  if (stater && stater.code === "ENOENT")
17825
17863
  fs$rename(from, to, CB);
17826
17864
  else
@@ -17837,9 +17875,9 @@ var require_polyfills = __commonJS({
17837
17875
  __name(rename, "rename");
17838
17876
  if (Object.setPrototypeOf) Object.setPrototypeOf(rename, fs$rename);
17839
17877
  return rename;
17840
- })(fs12.rename);
17878
+ })(fs13.rename);
17841
17879
  }
17842
- fs12.read = typeof fs12.read !== "function" ? fs12.read : (function(fs$read) {
17880
+ fs13.read = typeof fs13.read !== "function" ? fs13.read : (function(fs$read) {
17843
17881
  function read(fd, buffer, offset, length, position, callback_) {
17844
17882
  var callback;
17845
17883
  if (callback_ && typeof callback_ === "function") {
@@ -17847,23 +17885,23 @@ var require_polyfills = __commonJS({
17847
17885
  callback = /* @__PURE__ */ __name(function(er, _2, __) {
17848
17886
  if (er && er.code === "EAGAIN" && eagCounter < 10) {
17849
17887
  eagCounter++;
17850
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17888
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17851
17889
  }
17852
17890
  callback_.apply(this, arguments);
17853
17891
  }, "callback");
17854
17892
  }
17855
- return fs$read.call(fs12, fd, buffer, offset, length, position, callback);
17893
+ return fs$read.call(fs13, fd, buffer, offset, length, position, callback);
17856
17894
  }
17857
17895
  __name(read, "read");
17858
17896
  if (Object.setPrototypeOf) Object.setPrototypeOf(read, fs$read);
17859
17897
  return read;
17860
- })(fs12.read);
17861
- fs12.readSync = typeof fs12.readSync !== "function" ? fs12.readSync : /* @__PURE__ */ (function(fs$readSync) {
17898
+ })(fs13.read);
17899
+ fs13.readSync = typeof fs13.readSync !== "function" ? fs13.readSync : /* @__PURE__ */ (function(fs$readSync) {
17862
17900
  return function(fd, buffer, offset, length, position) {
17863
17901
  var eagCounter = 0;
17864
17902
  while (true) {
17865
17903
  try {
17866
- return fs$readSync.call(fs12, fd, buffer, offset, length, position);
17904
+ return fs$readSync.call(fs13, fd, buffer, offset, length, position);
17867
17905
  } catch (er) {
17868
17906
  if (er.code === "EAGAIN" && eagCounter < 10) {
17869
17907
  eagCounter++;
@@ -17873,11 +17911,11 @@ var require_polyfills = __commonJS({
17873
17911
  }
17874
17912
  }
17875
17913
  };
17876
- })(fs12.readSync);
17877
- function patchLchmod(fs13) {
17878
- fs13.lchmod = function(path12, mode, callback) {
17879
- fs13.open(
17880
- path12,
17914
+ })(fs13.readSync);
17915
+ function patchLchmod(fs14) {
17916
+ fs14.lchmod = function(path13, mode, callback) {
17917
+ fs14.open(
17918
+ path13,
17881
17919
  constants.O_WRONLY | constants.O_SYMLINK,
17882
17920
  mode,
17883
17921
  function(err, fd) {
@@ -17885,74 +17923,74 @@ var require_polyfills = __commonJS({
17885
17923
  if (callback) callback(err);
17886
17924
  return;
17887
17925
  }
17888
- fs13.fchmod(fd, mode, function(err2) {
17889
- fs13.close(fd, function(err22) {
17926
+ fs14.fchmod(fd, mode, function(err2) {
17927
+ fs14.close(fd, function(err22) {
17890
17928
  if (callback) callback(err2 || err22);
17891
17929
  });
17892
17930
  });
17893
17931
  }
17894
17932
  );
17895
17933
  };
17896
- fs13.lchmodSync = function(path12, mode) {
17897
- var fd = fs13.openSync(path12, constants.O_WRONLY | constants.O_SYMLINK, mode);
17934
+ fs14.lchmodSync = function(path13, mode) {
17935
+ var fd = fs14.openSync(path13, constants.O_WRONLY | constants.O_SYMLINK, mode);
17898
17936
  var threw = true;
17899
17937
  var ret;
17900
17938
  try {
17901
- ret = fs13.fchmodSync(fd, mode);
17939
+ ret = fs14.fchmodSync(fd, mode);
17902
17940
  threw = false;
17903
17941
  } finally {
17904
17942
  if (threw) {
17905
17943
  try {
17906
- fs13.closeSync(fd);
17944
+ fs14.closeSync(fd);
17907
17945
  } catch (er) {
17908
17946
  }
17909
17947
  } else {
17910
- fs13.closeSync(fd);
17948
+ fs14.closeSync(fd);
17911
17949
  }
17912
17950
  }
17913
17951
  return ret;
17914
17952
  };
17915
17953
  }
17916
17954
  __name(patchLchmod, "patchLchmod");
17917
- function patchLutimes(fs13) {
17918
- if (constants.hasOwnProperty("O_SYMLINK") && fs13.futimes) {
17919
- fs13.lutimes = function(path12, at, mt, cb) {
17920
- fs13.open(path12, constants.O_SYMLINK, function(er, fd) {
17955
+ function patchLutimes(fs14) {
17956
+ if (constants.hasOwnProperty("O_SYMLINK") && fs14.futimes) {
17957
+ fs14.lutimes = function(path13, at, mt, cb) {
17958
+ fs14.open(path13, constants.O_SYMLINK, function(er, fd) {
17921
17959
  if (er) {
17922
17960
  if (cb) cb(er);
17923
17961
  return;
17924
17962
  }
17925
- fs13.futimes(fd, at, mt, function(er2) {
17926
- fs13.close(fd, function(er22) {
17963
+ fs14.futimes(fd, at, mt, function(er2) {
17964
+ fs14.close(fd, function(er22) {
17927
17965
  if (cb) cb(er2 || er22);
17928
17966
  });
17929
17967
  });
17930
17968
  });
17931
17969
  };
17932
- fs13.lutimesSync = function(path12, at, mt) {
17933
- var fd = fs13.openSync(path12, constants.O_SYMLINK);
17970
+ fs14.lutimesSync = function(path13, at, mt) {
17971
+ var fd = fs14.openSync(path13, constants.O_SYMLINK);
17934
17972
  var ret;
17935
17973
  var threw = true;
17936
17974
  try {
17937
- ret = fs13.futimesSync(fd, at, mt);
17975
+ ret = fs14.futimesSync(fd, at, mt);
17938
17976
  threw = false;
17939
17977
  } finally {
17940
17978
  if (threw) {
17941
17979
  try {
17942
- fs13.closeSync(fd);
17980
+ fs14.closeSync(fd);
17943
17981
  } catch (er) {
17944
17982
  }
17945
17983
  } else {
17946
- fs13.closeSync(fd);
17984
+ fs14.closeSync(fd);
17947
17985
  }
17948
17986
  }
17949
17987
  return ret;
17950
17988
  };
17951
- } else if (fs13.futimes) {
17952
- fs13.lutimes = function(_a2, _b, _c4, cb) {
17989
+ } else if (fs14.futimes) {
17990
+ fs14.lutimes = function(_a2, _b, _c4, cb) {
17953
17991
  if (cb) process.nextTick(cb);
17954
17992
  };
17955
- fs13.lutimesSync = function() {
17993
+ fs14.lutimesSync = function() {
17956
17994
  };
17957
17995
  }
17958
17996
  }
@@ -17960,7 +17998,7 @@ var require_polyfills = __commonJS({
17960
17998
  function chmodFix(orig) {
17961
17999
  if (!orig) return orig;
17962
18000
  return function(target, mode, cb) {
17963
- return orig.call(fs12, target, mode, function(er) {
18001
+ return orig.call(fs13, target, mode, function(er) {
17964
18002
  if (chownErOk(er)) er = null;
17965
18003
  if (cb) cb.apply(this, arguments);
17966
18004
  });
@@ -17971,7 +18009,7 @@ var require_polyfills = __commonJS({
17971
18009
  if (!orig) return orig;
17972
18010
  return function(target, mode) {
17973
18011
  try {
17974
- return orig.call(fs12, target, mode);
18012
+ return orig.call(fs13, target, mode);
17975
18013
  } catch (er) {
17976
18014
  if (!chownErOk(er)) throw er;
17977
18015
  }
@@ -17981,7 +18019,7 @@ var require_polyfills = __commonJS({
17981
18019
  function chownFix(orig) {
17982
18020
  if (!orig) return orig;
17983
18021
  return function(target, uid, gid, cb) {
17984
- return orig.call(fs12, target, uid, gid, function(er) {
18022
+ return orig.call(fs13, target, uid, gid, function(er) {
17985
18023
  if (chownErOk(er)) er = null;
17986
18024
  if (cb) cb.apply(this, arguments);
17987
18025
  });
@@ -17992,7 +18030,7 @@ var require_polyfills = __commonJS({
17992
18030
  if (!orig) return orig;
17993
18031
  return function(target, uid, gid) {
17994
18032
  try {
17995
- return orig.call(fs12, target, uid, gid);
18033
+ return orig.call(fs13, target, uid, gid);
17996
18034
  } catch (er) {
17997
18035
  if (!chownErOk(er)) throw er;
17998
18036
  }
@@ -18014,14 +18052,14 @@ var require_polyfills = __commonJS({
18014
18052
  if (cb) cb.apply(this, arguments);
18015
18053
  }
18016
18054
  __name(callback, "callback");
18017
- return options ? orig.call(fs12, target, options, callback) : orig.call(fs12, target, callback);
18055
+ return options ? orig.call(fs13, target, options, callback) : orig.call(fs13, target, callback);
18018
18056
  };
18019
18057
  }
18020
18058
  __name(statFix, "statFix");
18021
18059
  function statFixSync(orig) {
18022
18060
  if (!orig) return orig;
18023
18061
  return function(target, options) {
18024
- var stats = options ? orig.call(fs12, target, options) : orig.call(fs12, target);
18062
+ var stats = options ? orig.call(fs13, target, options) : orig.call(fs13, target);
18025
18063
  if (stats) {
18026
18064
  if (stats.uid < 0) stats.uid += 4294967296;
18027
18065
  if (stats.gid < 0) stats.gid += 4294967296;
@@ -18053,16 +18091,16 @@ var require_legacy_streams = __commonJS({
18053
18091
  "../../node_modules/graceful-fs/legacy-streams.js"(exports2, module2) {
18054
18092
  var Stream2 = require("stream").Stream;
18055
18093
  module2.exports = legacy;
18056
- function legacy(fs12) {
18094
+ function legacy(fs13) {
18057
18095
  return {
18058
18096
  ReadStream,
18059
18097
  WriteStream
18060
18098
  };
18061
- function ReadStream(path12, options) {
18062
- if (!(this instanceof ReadStream)) return new ReadStream(path12, options);
18099
+ function ReadStream(path13, options) {
18100
+ if (!(this instanceof ReadStream)) return new ReadStream(path13, options);
18063
18101
  Stream2.call(this);
18064
18102
  var self2 = this;
18065
- this.path = path12;
18103
+ this.path = path13;
18066
18104
  this.fd = null;
18067
18105
  this.readable = true;
18068
18106
  this.paused = false;
@@ -18096,7 +18134,7 @@ var require_legacy_streams = __commonJS({
18096
18134
  });
18097
18135
  return;
18098
18136
  }
18099
- fs12.open(this.path, this.flags, this.mode, function(err, fd) {
18137
+ fs13.open(this.path, this.flags, this.mode, function(err, fd) {
18100
18138
  if (err) {
18101
18139
  self2.emit("error", err);
18102
18140
  self2.readable = false;
@@ -18108,10 +18146,10 @@ var require_legacy_streams = __commonJS({
18108
18146
  });
18109
18147
  }
18110
18148
  __name(ReadStream, "ReadStream");
18111
- function WriteStream(path12, options) {
18112
- if (!(this instanceof WriteStream)) return new WriteStream(path12, options);
18149
+ function WriteStream(path13, options) {
18150
+ if (!(this instanceof WriteStream)) return new WriteStream(path13, options);
18113
18151
  Stream2.call(this);
18114
- this.path = path12;
18152
+ this.path = path13;
18115
18153
  this.fd = null;
18116
18154
  this.writable = true;
18117
18155
  this.flags = "w";
@@ -18136,7 +18174,7 @@ var require_legacy_streams = __commonJS({
18136
18174
  this.busy = false;
18137
18175
  this._queue = [];
18138
18176
  if (this.fd === null) {
18139
- this._open = fs12.open;
18177
+ this._open = fs13.open;
18140
18178
  this._queue.push([this._open, this.path, this.flags, this.mode, void 0]);
18141
18179
  this.flush();
18142
18180
  }
@@ -18174,7 +18212,7 @@ var require_clone = __commonJS({
18174
18212
  // ../../node_modules/graceful-fs/graceful-fs.js
18175
18213
  var require_graceful_fs = __commonJS({
18176
18214
  "../../node_modules/graceful-fs/graceful-fs.js"(exports2, module2) {
18177
- var fs12 = require("fs");
18215
+ var fs13 = require("fs");
18178
18216
  var polyfills = require_polyfills();
18179
18217
  var legacy = require_legacy_streams();
18180
18218
  var clone = require_clone();
@@ -18208,12 +18246,12 @@ var require_graceful_fs = __commonJS({
18208
18246
  m4 = "GFS4: " + m4.split(/\n/).join("\nGFS4: ");
18209
18247
  console.error(m4);
18210
18248
  }, "debug");
18211
- if (!fs12[gracefulQueue]) {
18249
+ if (!fs13[gracefulQueue]) {
18212
18250
  queue = global[gracefulQueue] || [];
18213
- publishQueue(fs12, queue);
18214
- fs12.close = (function(fs$close) {
18251
+ publishQueue(fs13, queue);
18252
+ fs13.close = (function(fs$close) {
18215
18253
  function close(fd, cb) {
18216
- return fs$close.call(fs12, fd, function(err) {
18254
+ return fs$close.call(fs13, fd, function(err) {
18217
18255
  if (!err) {
18218
18256
  resetQueue();
18219
18257
  }
@@ -18226,10 +18264,10 @@ var require_graceful_fs = __commonJS({
18226
18264
  value: fs$close
18227
18265
  });
18228
18266
  return close;
18229
- })(fs12.close);
18230
- fs12.closeSync = (function(fs$closeSync) {
18267
+ })(fs13.close);
18268
+ fs13.closeSync = (function(fs$closeSync) {
18231
18269
  function closeSync(fd) {
18232
- fs$closeSync.apply(fs12, arguments);
18270
+ fs$closeSync.apply(fs13, arguments);
18233
18271
  resetQueue();
18234
18272
  }
18235
18273
  __name(closeSync, "closeSync");
@@ -18237,38 +18275,38 @@ var require_graceful_fs = __commonJS({
18237
18275
  value: fs$closeSync
18238
18276
  });
18239
18277
  return closeSync;
18240
- })(fs12.closeSync);
18278
+ })(fs13.closeSync);
18241
18279
  if (/\bgfs4\b/i.test(process.env.NODE_DEBUG || "")) {
18242
18280
  process.on("exit", function() {
18243
- debug(fs12[gracefulQueue]);
18244
- require("assert").equal(fs12[gracefulQueue].length, 0);
18281
+ debug(fs13[gracefulQueue]);
18282
+ require("assert").equal(fs13[gracefulQueue].length, 0);
18245
18283
  });
18246
18284
  }
18247
18285
  }
18248
18286
  var queue;
18249
18287
  if (!global[gracefulQueue]) {
18250
- publishQueue(global, fs12[gracefulQueue]);
18251
- }
18252
- module2.exports = patch(clone(fs12));
18253
- if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs12.__patched) {
18254
- module2.exports = patch(fs12);
18255
- fs12.__patched = true;
18256
- }
18257
- function patch(fs13) {
18258
- polyfills(fs13);
18259
- fs13.gracefulify = patch;
18260
- fs13.createReadStream = createReadStream2;
18261
- fs13.createWriteStream = createWriteStream2;
18262
- var fs$readFile = fs13.readFile;
18263
- fs13.readFile = readFile;
18264
- function readFile(path12, options, cb) {
18288
+ publishQueue(global, fs13[gracefulQueue]);
18289
+ }
18290
+ module2.exports = patch(clone(fs13));
18291
+ if (process.env.TEST_GRACEFUL_FS_GLOBAL_PATCH && !fs13.__patched) {
18292
+ module2.exports = patch(fs13);
18293
+ fs13.__patched = true;
18294
+ }
18295
+ function patch(fs14) {
18296
+ polyfills(fs14);
18297
+ fs14.gracefulify = patch;
18298
+ fs14.createReadStream = createReadStream2;
18299
+ fs14.createWriteStream = createWriteStream2;
18300
+ var fs$readFile = fs14.readFile;
18301
+ fs14.readFile = readFile;
18302
+ function readFile(path13, options, cb) {
18265
18303
  if (typeof options === "function")
18266
18304
  cb = options, options = null;
18267
- return go$readFile(path12, options, cb);
18268
- function go$readFile(path13, options2, cb2, startTime) {
18269
- return fs$readFile(path13, options2, function(err) {
18305
+ return go$readFile(path13, options, cb);
18306
+ function go$readFile(path14, options2, cb2, startTime) {
18307
+ return fs$readFile(path14, options2, function(err) {
18270
18308
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18271
- enqueue([go$readFile, [path13, options2, cb2], err, startTime || Date.now(), Date.now()]);
18309
+ enqueue([go$readFile, [path14, options2, cb2], err, startTime || Date.now(), Date.now()]);
18272
18310
  else {
18273
18311
  if (typeof cb2 === "function")
18274
18312
  cb2.apply(this, arguments);
@@ -18278,16 +18316,16 @@ var require_graceful_fs = __commonJS({
18278
18316
  __name(go$readFile, "go$readFile");
18279
18317
  }
18280
18318
  __name(readFile, "readFile");
18281
- var fs$writeFile = fs13.writeFile;
18282
- fs13.writeFile = writeFile;
18283
- function writeFile(path12, data2, options, cb) {
18319
+ var fs$writeFile = fs14.writeFile;
18320
+ fs14.writeFile = writeFile;
18321
+ function writeFile(path13, data2, options, cb) {
18284
18322
  if (typeof options === "function")
18285
18323
  cb = options, options = null;
18286
- return go$writeFile(path12, data2, options, cb);
18287
- function go$writeFile(path13, data3, options2, cb2, startTime) {
18288
- return fs$writeFile(path13, data3, options2, function(err) {
18324
+ return go$writeFile(path13, data2, options, cb);
18325
+ function go$writeFile(path14, data3, options2, cb2, startTime) {
18326
+ return fs$writeFile(path14, data3, options2, function(err) {
18289
18327
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18290
- enqueue([go$writeFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18328
+ enqueue([go$writeFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18291
18329
  else {
18292
18330
  if (typeof cb2 === "function")
18293
18331
  cb2.apply(this, arguments);
@@ -18297,17 +18335,17 @@ var require_graceful_fs = __commonJS({
18297
18335
  __name(go$writeFile, "go$writeFile");
18298
18336
  }
18299
18337
  __name(writeFile, "writeFile");
18300
- var fs$appendFile = fs13.appendFile;
18338
+ var fs$appendFile = fs14.appendFile;
18301
18339
  if (fs$appendFile)
18302
- fs13.appendFile = appendFile;
18303
- function appendFile(path12, data2, options, cb) {
18340
+ fs14.appendFile = appendFile;
18341
+ function appendFile(path13, data2, options, cb) {
18304
18342
  if (typeof options === "function")
18305
18343
  cb = options, options = null;
18306
- return go$appendFile(path12, data2, options, cb);
18307
- function go$appendFile(path13, data3, options2, cb2, startTime) {
18308
- return fs$appendFile(path13, data3, options2, function(err) {
18344
+ return go$appendFile(path13, data2, options, cb);
18345
+ function go$appendFile(path14, data3, options2, cb2, startTime) {
18346
+ return fs$appendFile(path14, data3, options2, function(err) {
18309
18347
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18310
- enqueue([go$appendFile, [path13, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18348
+ enqueue([go$appendFile, [path14, data3, options2, cb2], err, startTime || Date.now(), Date.now()]);
18311
18349
  else {
18312
18350
  if (typeof cb2 === "function")
18313
18351
  cb2.apply(this, arguments);
@@ -18317,9 +18355,9 @@ var require_graceful_fs = __commonJS({
18317
18355
  __name(go$appendFile, "go$appendFile");
18318
18356
  }
18319
18357
  __name(appendFile, "appendFile");
18320
- var fs$copyFile = fs13.copyFile;
18358
+ var fs$copyFile = fs14.copyFile;
18321
18359
  if (fs$copyFile)
18322
- fs13.copyFile = copyFile;
18360
+ fs14.copyFile = copyFile;
18323
18361
  function copyFile(src, dest, flags, cb) {
18324
18362
  if (typeof flags === "function") {
18325
18363
  cb = flags;
@@ -18339,34 +18377,34 @@ var require_graceful_fs = __commonJS({
18339
18377
  __name(go$copyFile, "go$copyFile");
18340
18378
  }
18341
18379
  __name(copyFile, "copyFile");
18342
- var fs$readdir = fs13.readdir;
18343
- fs13.readdir = readdir2;
18380
+ var fs$readdir = fs14.readdir;
18381
+ fs14.readdir = readdir2;
18344
18382
  var noReaddirOptionVersions = /^v[0-5]\./;
18345
- function readdir2(path12, options, cb) {
18383
+ function readdir2(path13, options, cb) {
18346
18384
  if (typeof options === "function")
18347
18385
  cb = options, options = null;
18348
- var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
18349
- return fs$readdir(path13, fs$readdirCallback(
18350
- path13,
18386
+ var go$readdir = noReaddirOptionVersions.test(process.version) ? /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18387
+ return fs$readdir(path14, fs$readdirCallback(
18388
+ path14,
18351
18389
  options2,
18352
18390
  cb2,
18353
18391
  startTime
18354
18392
  ));
18355
- }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path13, options2, cb2, startTime) {
18356
- return fs$readdir(path13, options2, fs$readdirCallback(
18357
- path13,
18393
+ }, "go$readdir") : /* @__PURE__ */ __name(function go$readdir2(path14, options2, cb2, startTime) {
18394
+ return fs$readdir(path14, options2, fs$readdirCallback(
18395
+ path14,
18358
18396
  options2,
18359
18397
  cb2,
18360
18398
  startTime
18361
18399
  ));
18362
18400
  }, "go$readdir");
18363
- return go$readdir(path12, options, cb);
18364
- function fs$readdirCallback(path13, options2, cb2, startTime) {
18401
+ return go$readdir(path13, options, cb);
18402
+ function fs$readdirCallback(path14, options2, cb2, startTime) {
18365
18403
  return function(err, files) {
18366
18404
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18367
18405
  enqueue([
18368
18406
  go$readdir,
18369
- [path13, options2, cb2],
18407
+ [path14, options2, cb2],
18370
18408
  err,
18371
18409
  startTime || Date.now(),
18372
18410
  Date.now()
@@ -18383,21 +18421,21 @@ var require_graceful_fs = __commonJS({
18383
18421
  }
18384
18422
  __name(readdir2, "readdir");
18385
18423
  if (process.version.substr(0, 4) === "v0.8") {
18386
- var legStreams = legacy(fs13);
18424
+ var legStreams = legacy(fs14);
18387
18425
  ReadStream = legStreams.ReadStream;
18388
18426
  WriteStream = legStreams.WriteStream;
18389
18427
  }
18390
- var fs$ReadStream = fs13.ReadStream;
18428
+ var fs$ReadStream = fs14.ReadStream;
18391
18429
  if (fs$ReadStream) {
18392
18430
  ReadStream.prototype = Object.create(fs$ReadStream.prototype);
18393
18431
  ReadStream.prototype.open = ReadStream$open;
18394
18432
  }
18395
- var fs$WriteStream = fs13.WriteStream;
18433
+ var fs$WriteStream = fs14.WriteStream;
18396
18434
  if (fs$WriteStream) {
18397
18435
  WriteStream.prototype = Object.create(fs$WriteStream.prototype);
18398
18436
  WriteStream.prototype.open = WriteStream$open;
18399
18437
  }
18400
- Object.defineProperty(fs13, "ReadStream", {
18438
+ Object.defineProperty(fs14, "ReadStream", {
18401
18439
  get: /* @__PURE__ */ __name(function() {
18402
18440
  return ReadStream;
18403
18441
  }, "get"),
@@ -18407,7 +18445,7 @@ var require_graceful_fs = __commonJS({
18407
18445
  enumerable: true,
18408
18446
  configurable: true
18409
18447
  });
18410
- Object.defineProperty(fs13, "WriteStream", {
18448
+ Object.defineProperty(fs14, "WriteStream", {
18411
18449
  get: /* @__PURE__ */ __name(function() {
18412
18450
  return WriteStream;
18413
18451
  }, "get"),
@@ -18418,7 +18456,7 @@ var require_graceful_fs = __commonJS({
18418
18456
  configurable: true
18419
18457
  });
18420
18458
  var FileReadStream = ReadStream;
18421
- Object.defineProperty(fs13, "FileReadStream", {
18459
+ Object.defineProperty(fs14, "FileReadStream", {
18422
18460
  get: /* @__PURE__ */ __name(function() {
18423
18461
  return FileReadStream;
18424
18462
  }, "get"),
@@ -18429,7 +18467,7 @@ var require_graceful_fs = __commonJS({
18429
18467
  configurable: true
18430
18468
  });
18431
18469
  var FileWriteStream = WriteStream;
18432
- Object.defineProperty(fs13, "FileWriteStream", {
18470
+ Object.defineProperty(fs14, "FileWriteStream", {
18433
18471
  get: /* @__PURE__ */ __name(function() {
18434
18472
  return FileWriteStream;
18435
18473
  }, "get"),
@@ -18439,7 +18477,7 @@ var require_graceful_fs = __commonJS({
18439
18477
  enumerable: true,
18440
18478
  configurable: true
18441
18479
  });
18442
- function ReadStream(path12, options) {
18480
+ function ReadStream(path13, options) {
18443
18481
  if (this instanceof ReadStream)
18444
18482
  return fs$ReadStream.apply(this, arguments), this;
18445
18483
  else
@@ -18461,7 +18499,7 @@ var require_graceful_fs = __commonJS({
18461
18499
  });
18462
18500
  }
18463
18501
  __name(ReadStream$open, "ReadStream$open");
18464
- function WriteStream(path12, options) {
18502
+ function WriteStream(path13, options) {
18465
18503
  if (this instanceof WriteStream)
18466
18504
  return fs$WriteStream.apply(this, arguments), this;
18467
18505
  else
@@ -18481,24 +18519,24 @@ var require_graceful_fs = __commonJS({
18481
18519
  });
18482
18520
  }
18483
18521
  __name(WriteStream$open, "WriteStream$open");
18484
- function createReadStream2(path12, options) {
18485
- return new fs13.ReadStream(path12, options);
18522
+ function createReadStream2(path13, options) {
18523
+ return new fs14.ReadStream(path13, options);
18486
18524
  }
18487
18525
  __name(createReadStream2, "createReadStream");
18488
- function createWriteStream2(path12, options) {
18489
- return new fs13.WriteStream(path12, options);
18526
+ function createWriteStream2(path13, options) {
18527
+ return new fs14.WriteStream(path13, options);
18490
18528
  }
18491
18529
  __name(createWriteStream2, "createWriteStream");
18492
- var fs$open = fs13.open;
18493
- fs13.open = open;
18494
- function open(path12, flags, mode, cb) {
18530
+ var fs$open = fs14.open;
18531
+ fs14.open = open;
18532
+ function open(path13, flags, mode, cb) {
18495
18533
  if (typeof mode === "function")
18496
18534
  cb = mode, mode = null;
18497
- return go$open(path12, flags, mode, cb);
18498
- function go$open(path13, flags2, mode2, cb2, startTime) {
18499
- return fs$open(path13, flags2, mode2, function(err, fd) {
18535
+ return go$open(path13, flags, mode, cb);
18536
+ function go$open(path14, flags2, mode2, cb2, startTime) {
18537
+ return fs$open(path14, flags2, mode2, function(err, fd) {
18500
18538
  if (err && (err.code === "EMFILE" || err.code === "ENFILE"))
18501
- enqueue([go$open, [path13, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18539
+ enqueue([go$open, [path14, flags2, mode2, cb2], err, startTime || Date.now(), Date.now()]);
18502
18540
  else {
18503
18541
  if (typeof cb2 === "function")
18504
18542
  cb2.apply(this, arguments);
@@ -18508,22 +18546,22 @@ var require_graceful_fs = __commonJS({
18508
18546
  __name(go$open, "go$open");
18509
18547
  }
18510
18548
  __name(open, "open");
18511
- return fs13;
18549
+ return fs14;
18512
18550
  }
18513
18551
  __name(patch, "patch");
18514
18552
  function enqueue(elem) {
18515
18553
  debug("ENQUEUE", elem[0].name, elem[1]);
18516
- fs12[gracefulQueue].push(elem);
18554
+ fs13[gracefulQueue].push(elem);
18517
18555
  retry();
18518
18556
  }
18519
18557
  __name(enqueue, "enqueue");
18520
18558
  var retryTimer;
18521
18559
  function resetQueue() {
18522
18560
  var now = Date.now();
18523
- for (var i4 = 0; i4 < fs12[gracefulQueue].length; ++i4) {
18524
- if (fs12[gracefulQueue][i4].length > 2) {
18525
- fs12[gracefulQueue][i4][3] = now;
18526
- fs12[gracefulQueue][i4][4] = now;
18561
+ for (var i4 = 0; i4 < fs13[gracefulQueue].length; ++i4) {
18562
+ if (fs13[gracefulQueue][i4].length > 2) {
18563
+ fs13[gracefulQueue][i4][3] = now;
18564
+ fs13[gracefulQueue][i4][4] = now;
18527
18565
  }
18528
18566
  }
18529
18567
  retry();
@@ -18532,9 +18570,9 @@ var require_graceful_fs = __commonJS({
18532
18570
  function retry() {
18533
18571
  clearTimeout(retryTimer);
18534
18572
  retryTimer = void 0;
18535
- if (fs12[gracefulQueue].length === 0)
18573
+ if (fs13[gracefulQueue].length === 0)
18536
18574
  return;
18537
- var elem = fs12[gracefulQueue].shift();
18575
+ var elem = fs13[gracefulQueue].shift();
18538
18576
  var fn = elem[0];
18539
18577
  var args = elem[1];
18540
18578
  var err = elem[2];
@@ -18556,7 +18594,7 @@ var require_graceful_fs = __commonJS({
18556
18594
  debug("RETRY", fn.name, args);
18557
18595
  fn.apply(null, args.concat([startTime]));
18558
18596
  } else {
18559
- fs12[gracefulQueue].push(elem);
18597
+ fs13[gracefulQueue].push(elem);
18560
18598
  }
18561
18599
  }
18562
18600
  if (retryTimer === void 0) {
@@ -18882,7 +18920,7 @@ var require_BufferList = __commonJS({
18882
18920
  this.head = this.tail = null;
18883
18921
  this.length = 0;
18884
18922
  }, "clear");
18885
- BufferList.prototype.join = /* @__PURE__ */ __name(function join8(s4) {
18923
+ BufferList.prototype.join = /* @__PURE__ */ __name(function join9(s4) {
18886
18924
  if (this.length === 0) return "";
18887
18925
  var p4 = this.head;
18888
18926
  var ret = "" + p4.data;
@@ -20718,22 +20756,22 @@ var require_lazystream = __commonJS({
20718
20756
  // ../../node_modules/normalize-path/index.js
20719
20757
  var require_normalize_path = __commonJS({
20720
20758
  "../../node_modules/normalize-path/index.js"(exports2, module2) {
20721
- module2.exports = function(path12, stripTrailing) {
20722
- if (typeof path12 !== "string") {
20759
+ module2.exports = function(path13, stripTrailing) {
20760
+ if (typeof path13 !== "string") {
20723
20761
  throw new TypeError("expected path to be a string");
20724
20762
  }
20725
- if (path12 === "\\" || path12 === "/") return "/";
20726
- var len = path12.length;
20727
- if (len <= 1) return path12;
20763
+ if (path13 === "\\" || path13 === "/") return "/";
20764
+ var len = path13.length;
20765
+ if (len <= 1) return path13;
20728
20766
  var prefix = "";
20729
- if (len > 4 && path12[3] === "\\") {
20730
- var ch = path12[2];
20731
- if ((ch === "?" || ch === ".") && path12.slice(0, 2) === "\\\\") {
20732
- path12 = path12.slice(2);
20767
+ if (len > 4 && path13[3] === "\\") {
20768
+ var ch = path13[2];
20769
+ if ((ch === "?" || ch === ".") && path13.slice(0, 2) === "\\\\") {
20770
+ path13 = path13.slice(2);
20733
20771
  prefix = "//";
20734
20772
  }
20735
20773
  }
20736
- var segs = path12.split(/[/\\]+/);
20774
+ var segs = path13.split(/[/\\]+/);
20737
20775
  if (stripTrailing !== false && segs[segs.length - 1] === "") {
20738
20776
  segs.pop();
20739
20777
  }
@@ -29762,11 +29800,11 @@ var require_commonjs = __commonJS({
29762
29800
  return (f4) => f4.length === len && f4 !== "." && f4 !== "..";
29763
29801
  }, "qmarksTestNoExtDot");
29764
29802
  var defaultPlatform4 = typeof process === "object" && process ? typeof process.env === "object" && process.env && process.env.__MINIMATCH_TESTING_PLATFORM__ || process.platform : "posix";
29765
- var path12 = {
29803
+ var path13 = {
29766
29804
  win32: { sep: "\\" },
29767
29805
  posix: { sep: "/" }
29768
29806
  };
29769
- exports2.sep = defaultPlatform4 === "win32" ? path12.win32.sep : path12.posix.sep;
29807
+ exports2.sep = defaultPlatform4 === "win32" ? path13.win32.sep : path13.posix.sep;
29770
29808
  exports2.minimatch.sep = exports2.sep;
29771
29809
  exports2.GLOBSTAR = /* @__PURE__ */ Symbol("globstar **");
29772
29810
  exports2.minimatch.GLOBSTAR = exports2.GLOBSTAR;
@@ -33055,12 +33093,12 @@ var require_commonjs4 = __commonJS({
33055
33093
  /**
33056
33094
  * Get the Path object referenced by the string path, resolved from this Path
33057
33095
  */
33058
- resolve(path12) {
33059
- if (!path12) {
33096
+ resolve(path13) {
33097
+ if (!path13) {
33060
33098
  return this;
33061
33099
  }
33062
- const rootPath = this.getRootString(path12);
33063
- const dir = path12.substring(rootPath.length);
33100
+ const rootPath = this.getRootString(path13);
33101
+ const dir = path13.substring(rootPath.length);
33064
33102
  const dirParts = dir.split(this.splitSep);
33065
33103
  const result = rootPath ? this.getRoot(rootPath).#resolveParts(dirParts) : this.#resolveParts(dirParts);
33066
33104
  return result;
@@ -33816,8 +33854,8 @@ var require_commonjs4 = __commonJS({
33816
33854
  /**
33817
33855
  * @internal
33818
33856
  */
33819
- getRootString(path12) {
33820
- return node_path_1.win32.parse(path12).root;
33857
+ getRootString(path13) {
33858
+ return node_path_1.win32.parse(path13).root;
33821
33859
  }
33822
33860
  /**
33823
33861
  * @internal
@@ -33867,8 +33905,8 @@ var require_commonjs4 = __commonJS({
33867
33905
  /**
33868
33906
  * @internal
33869
33907
  */
33870
- getRootString(path12) {
33871
- return path12.startsWith("/") ? "/" : "";
33908
+ getRootString(path13) {
33909
+ return path13.startsWith("/") ? "/" : "";
33872
33910
  }
33873
33911
  /**
33874
33912
  * @internal
@@ -33921,8 +33959,8 @@ var require_commonjs4 = __commonJS({
33921
33959
  *
33922
33960
  * @internal
33923
33961
  */
33924
- constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs12 = defaultFS2 } = {}) {
33925
- this.#fs = fsFromOption2(fs12);
33962
+ constructor(cwd = process.cwd(), pathImpl, sep2, { nocase, childrenCacheSize = 16 * 1024, fs: fs13 = defaultFS2 } = {}) {
33963
+ this.#fs = fsFromOption2(fs13);
33926
33964
  if (cwd instanceof URL || cwd.startsWith("file://")) {
33927
33965
  cwd = (0, node_url_1.fileURLToPath)(cwd);
33928
33966
  }
@@ -33961,11 +33999,11 @@ var require_commonjs4 = __commonJS({
33961
33999
  /**
33962
34000
  * Get the depth of a provided path, string, or the cwd
33963
34001
  */
33964
- depth(path12 = this.cwd) {
33965
- if (typeof path12 === "string") {
33966
- path12 = this.cwd.resolve(path12);
34002
+ depth(path13 = this.cwd) {
34003
+ if (typeof path13 === "string") {
34004
+ path13 = this.cwd.resolve(path13);
33967
34005
  }
33968
- return path12.depth();
34006
+ return path13.depth();
33969
34007
  }
33970
34008
  /**
33971
34009
  * Return the cache of child entries. Exposed so subclasses can create
@@ -34452,9 +34490,9 @@ var require_commonjs4 = __commonJS({
34452
34490
  process2();
34453
34491
  return results;
34454
34492
  }
34455
- chdir(path12 = this.cwd) {
34493
+ chdir(path13 = this.cwd) {
34456
34494
  const oldCwd = this.cwd;
34457
- this.cwd = typeof path12 === "string" ? this.cwd.resolve(path12) : path12;
34495
+ this.cwd = typeof path13 === "string" ? this.cwd.resolve(path13) : path13;
34458
34496
  this.cwd[setAsCwd2](oldCwd);
34459
34497
  }
34460
34498
  };
@@ -34484,8 +34522,8 @@ var require_commonjs4 = __commonJS({
34484
34522
  /**
34485
34523
  * @internal
34486
34524
  */
34487
- newRoot(fs12) {
34488
- return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34525
+ newRoot(fs13) {
34526
+ return new PathWin322(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34489
34527
  }
34490
34528
  /**
34491
34529
  * Return true if the provided path string is an absolute path
@@ -34517,8 +34555,8 @@ var require_commonjs4 = __commonJS({
34517
34555
  /**
34518
34556
  * @internal
34519
34557
  */
34520
- newRoot(fs12) {
34521
- return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs12 });
34558
+ newRoot(fs13) {
34559
+ return new PathPosix2(this.rootPath, IFDIR2, void 0, this.roots, this.nocase, this.childrenCache(), { fs: fs13 });
34522
34560
  }
34523
34561
  /**
34524
34562
  * Return true if the provided path string is an absolute path
@@ -34863,8 +34901,8 @@ var require_processor = __commonJS({
34863
34901
  }
34864
34902
  // match, absolute, ifdir
34865
34903
  entries() {
34866
- return [...this.store.entries()].map(([path12, n4]) => [
34867
- path12,
34904
+ return [...this.store.entries()].map(([path13, n4]) => [
34905
+ path13,
34868
34906
  !!(n4 & 2),
34869
34907
  !!(n4 & 1)
34870
34908
  ]);
@@ -35091,9 +35129,9 @@ var require_walker = __commonJS({
35091
35129
  signal;
35092
35130
  maxDepth;
35093
35131
  includeChildMatches;
35094
- constructor(patterns, path12, opts) {
35132
+ constructor(patterns, path13, opts) {
35095
35133
  this.patterns = patterns;
35096
- this.path = path12;
35134
+ this.path = path13;
35097
35135
  this.opts = opts;
35098
35136
  this.#sep = !opts.posix && opts.platform === "win32" ? "\\" : "/";
35099
35137
  this.includeChildMatches = opts.includeChildMatches !== false;
@@ -35112,11 +35150,11 @@ var require_walker = __commonJS({
35112
35150
  });
35113
35151
  }
35114
35152
  }
35115
- #ignored(path12) {
35116
- return this.seen.has(path12) || !!this.#ignore?.ignored?.(path12);
35153
+ #ignored(path13) {
35154
+ return this.seen.has(path13) || !!this.#ignore?.ignored?.(path13);
35117
35155
  }
35118
- #childrenIgnored(path12) {
35119
- return !!this.#ignore?.childrenIgnored?.(path12);
35156
+ #childrenIgnored(path13) {
35157
+ return !!this.#ignore?.childrenIgnored?.(path13);
35120
35158
  }
35121
35159
  // backpressure mechanism
35122
35160
  pause() {
@@ -35335,8 +35373,8 @@ var require_walker = __commonJS({
35335
35373
  __name(this, "GlobWalker");
35336
35374
  }
35337
35375
  matches = /* @__PURE__ */ new Set();
35338
- constructor(patterns, path12, opts) {
35339
- super(patterns, path12, opts);
35376
+ constructor(patterns, path13, opts) {
35377
+ super(patterns, path13, opts);
35340
35378
  }
35341
35379
  matchEmit(e4) {
35342
35380
  this.matches.add(e4);
@@ -35377,8 +35415,8 @@ var require_walker = __commonJS({
35377
35415
  __name(this, "GlobStream");
35378
35416
  }
35379
35417
  results;
35380
- constructor(patterns, path12, opts) {
35381
- super(patterns, path12, opts);
35418
+ constructor(patterns, path13, opts) {
35419
+ super(patterns, path13, opts);
35382
35420
  this.results = new minipass_1.Minipass({
35383
35421
  signal: this.signal,
35384
35422
  objectMode: true
@@ -35742,8 +35780,8 @@ var require_commonjs5 = __commonJS({
35742
35780
  // ../../node_modules/archiver-utils/file.js
35743
35781
  var require_file = __commonJS({
35744
35782
  "../../node_modules/archiver-utils/file.js"(exports2, module2) {
35745
- var fs12 = require_graceful_fs();
35746
- var path12 = require("path");
35783
+ var fs13 = require_graceful_fs();
35784
+ var path13 = require("path");
35747
35785
  var flatten2 = require_flatten();
35748
35786
  var difference = require_difference();
35749
35787
  var union = require_union();
@@ -35768,8 +35806,8 @@ var require_file = __commonJS({
35768
35806
  return result;
35769
35807
  }, "processPatterns");
35770
35808
  file.exists = function() {
35771
- var filepath = path12.join.apply(path12, arguments);
35772
- return fs12.existsSync(filepath);
35809
+ var filepath = path13.join.apply(path13, arguments);
35810
+ return fs13.existsSync(filepath);
35773
35811
  };
35774
35812
  file.expand = function(...args) {
35775
35813
  var options = isPlainObject(args[0]) ? args.shift() : {};
@@ -35782,12 +35820,12 @@ var require_file = __commonJS({
35782
35820
  });
35783
35821
  if (options.filter) {
35784
35822
  matches = matches.filter(function(filepath) {
35785
- filepath = path12.join(options.cwd || "", filepath);
35823
+ filepath = path13.join(options.cwd || "", filepath);
35786
35824
  try {
35787
35825
  if (typeof options.filter === "function") {
35788
35826
  return options.filter(filepath);
35789
35827
  } else {
35790
- return fs12.statSync(filepath)[options.filter]();
35828
+ return fs13.statSync(filepath)[options.filter]();
35791
35829
  }
35792
35830
  } catch (e4) {
35793
35831
  return false;
@@ -35799,7 +35837,7 @@ var require_file = __commonJS({
35799
35837
  file.expandMapping = function(patterns, destBase, options) {
35800
35838
  options = Object.assign({
35801
35839
  rename: /* @__PURE__ */ __name(function(destBase2, destPath) {
35802
- return path12.join(destBase2 || "", destPath);
35840
+ return path13.join(destBase2 || "", destPath);
35803
35841
  }, "rename")
35804
35842
  }, options);
35805
35843
  var files = [];
@@ -35807,14 +35845,14 @@ var require_file = __commonJS({
35807
35845
  file.expand(options, patterns).forEach(function(src) {
35808
35846
  var destPath = src;
35809
35847
  if (options.flatten) {
35810
- destPath = path12.basename(destPath);
35848
+ destPath = path13.basename(destPath);
35811
35849
  }
35812
35850
  if (options.ext) {
35813
35851
  destPath = destPath.replace(/(\.[^\/]*)?$/, options.ext);
35814
35852
  }
35815
35853
  var dest = options.rename(destBase, destPath, options);
35816
35854
  if (options.cwd) {
35817
- src = path12.join(options.cwd, src);
35855
+ src = path13.join(options.cwd, src);
35818
35856
  }
35819
35857
  dest = dest.replace(pathSeparatorRe, "/");
35820
35858
  src = src.replace(pathSeparatorRe, "/");
@@ -35895,8 +35933,8 @@ var require_file = __commonJS({
35895
35933
  // ../../node_modules/archiver-utils/index.js
35896
35934
  var require_archiver_utils = __commonJS({
35897
35935
  "../../node_modules/archiver-utils/index.js"(exports2, module2) {
35898
- var fs12 = require_graceful_fs();
35899
- var path12 = require("path");
35936
+ var fs13 = require_graceful_fs();
35937
+ var path13 = require("path");
35900
35938
  var isStream2 = require_is_stream();
35901
35939
  var lazystream = require_lazystream();
35902
35940
  var normalizePath = require_normalize_path();
@@ -35944,7 +35982,7 @@ var require_archiver_utils = __commonJS({
35944
35982
  };
35945
35983
  utils.lazyReadStream = function(filepath) {
35946
35984
  return new lazystream.Readable(function() {
35947
- return fs12.createReadStream(filepath);
35985
+ return fs13.createReadStream(filepath);
35948
35986
  });
35949
35987
  };
35950
35988
  utils.normalizeInputSource = function(source) {
@@ -35972,7 +36010,7 @@ var require_archiver_utils = __commonJS({
35972
36010
  callback = base;
35973
36011
  base = dirpath;
35974
36012
  }
35975
- fs12.readdir(dirpath, function(err, list2) {
36013
+ fs13.readdir(dirpath, function(err, list2) {
35976
36014
  var i4 = 0;
35977
36015
  var file;
35978
36016
  var filepath;
@@ -35984,11 +36022,11 @@ var require_archiver_utils = __commonJS({
35984
36022
  if (!file) {
35985
36023
  return callback(null, results);
35986
36024
  }
35987
- filepath = path12.join(dirpath, file);
35988
- fs12.stat(filepath, function(err2, stats) {
36025
+ filepath = path13.join(dirpath, file);
36026
+ fs13.stat(filepath, function(err2, stats) {
35989
36027
  results.push({
35990
36028
  path: filepath,
35991
- relative: path12.relative(base, filepath).replace(/\\/g, "/"),
36029
+ relative: path13.relative(base, filepath).replace(/\\/g, "/"),
35992
36030
  stats
35993
36031
  });
35994
36032
  if (stats && stats.isDirectory()) {
@@ -41715,10 +41753,10 @@ var require_ours2 = __commonJS({
41715
41753
  // ../../node_modules/archiver/lib/core.js
41716
41754
  var require_core = __commonJS({
41717
41755
  "../../node_modules/archiver/lib/core.js"(exports2, module2) {
41718
- var fs12 = require("fs");
41756
+ var fs13 = require("fs");
41719
41757
  var glob2 = require_readdir_glob();
41720
41758
  var async = require_async();
41721
- var path12 = require("path");
41759
+ var path13 = require("path");
41722
41760
  var util = require_archiver_utils();
41723
41761
  var inherits = require("util").inherits;
41724
41762
  var ArchiverError = require_error();
@@ -41779,7 +41817,7 @@ var require_core = __commonJS({
41779
41817
  data2.sourcePath = filepath;
41780
41818
  task.data = data2;
41781
41819
  this._entriesCount++;
41782
- if (data2.stats && data2.stats instanceof fs12.Stats) {
41820
+ if (data2.stats && data2.stats instanceof fs13.Stats) {
41783
41821
  task = this._updateQueueTaskWithStats(task, data2.stats);
41784
41822
  if (task) {
41785
41823
  if (data2.stats.size) {
@@ -41950,7 +41988,7 @@ var require_core = __commonJS({
41950
41988
  callback();
41951
41989
  return;
41952
41990
  }
41953
- fs12.lstat(task.filepath, function(err, stats) {
41991
+ fs13.lstat(task.filepath, function(err, stats) {
41954
41992
  if (this._state.aborted) {
41955
41993
  setImmediate(callback);
41956
41994
  return;
@@ -41993,10 +42031,10 @@ var require_core = __commonJS({
41993
42031
  task.data.sourceType = "buffer";
41994
42032
  task.source = Buffer.concat([]);
41995
42033
  } else if (stats.isSymbolicLink() && this._moduleSupports("symlink")) {
41996
- var linkPath = fs12.readlinkSync(task.filepath);
41997
- var dirName = path12.dirname(task.filepath);
42034
+ var linkPath = fs13.readlinkSync(task.filepath);
42035
+ var dirName = path13.dirname(task.filepath);
41998
42036
  task.data.type = "symlink";
41999
- task.data.linkname = path12.relative(dirName, path12.resolve(dirName, linkPath));
42037
+ task.data.linkname = path13.relative(dirName, path13.resolve(dirName, linkPath));
42000
42038
  task.data.sourceType = "buffer";
42001
42039
  task.source = Buffer.concat([]);
42002
42040
  } else {
@@ -57699,7 +57737,7 @@ function writeZipFile(directory, outputFile) {
57699
57737
  output.once("close", ok);
57700
57738
  archive.pipe(output);
57701
57739
  for (const file of files) {
57702
- const fullPath = path9.resolve(directory, file);
57740
+ const fullPath = path10.resolve(directory, file);
57703
57741
  const [data2, stat] = await Promise.all([import_fs2.promises.readFile(fullPath), import_fs2.promises.stat(fullPath)]);
57704
57742
  archive.append(data2, {
57705
57743
  name: file,
@@ -57734,12 +57772,12 @@ function sleep(ms) {
57734
57772
  function randomString() {
57735
57773
  return Math.random().toString(36).replace(/[^a-z0-9]+/g, "");
57736
57774
  }
57737
- var import_fs2, path9, archiver;
57775
+ var import_fs2, path10, archiver;
57738
57776
  var init_archive = __esm({
57739
57777
  "../@aws-cdk/cdk-assets-lib/lib/private/archive.ts"() {
57740
57778
  "use strict";
57741
57779
  import_fs2 = require("fs");
57742
- path9 = __toESM(require("path"));
57780
+ path10 = __toESM(require("path"));
57743
57781
  init_esm7();
57744
57782
  archiver = require_archiver();
57745
57783
  __name(zipDirectory, "zipDirectory");
@@ -57762,12 +57800,12 @@ async function pathExists(pathName) {
57762
57800
  return false;
57763
57801
  }
57764
57802
  }
57765
- var fs8, pfs;
57803
+ var fs9, pfs;
57766
57804
  var init_fs_extra = __esm({
57767
57805
  "../@aws-cdk/cdk-assets-lib/lib/private/fs-extra.ts"() {
57768
57806
  "use strict";
57769
- fs8 = __toESM(require("fs"));
57770
- pfs = fs8.promises;
57807
+ fs9 = __toESM(require("fs"));
57808
+ pfs = fs9.promises;
57771
57809
  __name(pathExists, "pathExists");
57772
57810
  }
57773
57811
  });
@@ -57791,12 +57829,12 @@ async function cached(cache4, key, factory) {
57791
57829
  cache4.set(key, fresh);
57792
57830
  return fresh;
57793
57831
  }
57794
- var import_fs3, path10, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57832
+ var import_fs3, path11, import_cloud_assembly_schema, mime, EMPTY_ZIP_FILE_SIZE, FileAssetHandler, BucketInformation;
57795
57833
  var init_files = __esm({
57796
57834
  "../@aws-cdk/cdk-assets-lib/lib/private/handlers/files.ts"() {
57797
57835
  "use strict";
57798
57836
  import_fs3 = require("fs");
57799
- path10 = __toESM(require("path"));
57837
+ path11 = __toESM(require("path"));
57800
57838
  import_cloud_assembly_schema = __toESM(require_lib2());
57801
57839
  mime = __toESM(require_mime());
57802
57840
  init_client_options();
@@ -57811,7 +57849,7 @@ var init_files = __esm({
57811
57849
  this.workDir = workDir;
57812
57850
  this.asset = asset;
57813
57851
  this.host = host;
57814
- this.fileCacheRoot = path10.join(workDir, ".cache");
57852
+ this.fileCacheRoot = path11.join(workDir, ".cache");
57815
57853
  }
57816
57854
  static {
57817
57855
  __name(this, "FileAssetHandler");
@@ -57939,11 +57977,11 @@ var init_files = __esm({
57939
57977
  `'path' is expected in the File asset source, got: ${JSON.stringify(source)}`
57940
57978
  );
57941
57979
  }
57942
- const fullPath = path10.resolve(this.workDir, source.path);
57980
+ const fullPath = path11.resolve(this.workDir, source.path);
57943
57981
  if (source.packaging === import_cloud_assembly_schema.FileAssetPackaging.ZIP_DIRECTORY) {
57944
57982
  const contentType = "application/zip";
57945
57983
  await import_fs3.promises.mkdir(this.fileCacheRoot, { recursive: true });
57946
- const packagedPath = path10.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57984
+ const packagedPath = path11.join(this.fileCacheRoot, `${this.asset.id.assetId}.zip`);
57947
57985
  if (await pathExists(packagedPath)) {
57948
57986
  this.host.emitMessage("cached" /* CACHED */, `From cache ${packagedPath}`);
57949
57987
  return { packagedPath, contentType };
@@ -58084,12 +58122,12 @@ function prefixTreeChars(xs, prefix = "") {
58084
58122
  }
58085
58123
  return ret;
58086
58124
  }
58087
- var fs10, path11, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58125
+ var fs11, path12, import_cloud_assembly_schema2, AssetManifest, ASSET_TYPES, FileManifestEntry, DockerImageManifestEntry, DestinationIdentifier, DestinationPattern;
58088
58126
  var init_asset_manifest = __esm({
58089
58127
  "../@aws-cdk/cdk-assets-lib/lib/asset-manifest.ts"() {
58090
58128
  "use strict";
58091
- fs10 = __toESM(require("fs"));
58092
- path11 = __toESM(require("path"));
58129
+ fs11 = __toESM(require("fs"));
58130
+ path12 = __toESM(require("path"));
58093
58131
  import_cloud_assembly_schema2 = __toESM(require_lib2());
58094
58132
  AssetManifest = class _AssetManifest {
58095
58133
  constructor(directory, manifest) {
@@ -58111,7 +58149,7 @@ var init_asset_manifest = __esm({
58111
58149
  static fromFile(fileName) {
58112
58150
  try {
58113
58151
  const obj = import_cloud_assembly_schema2.Manifest.loadAssetManifest(fileName);
58114
- return new _AssetManifest(path11.dirname(fileName), obj);
58152
+ return new _AssetManifest(path12.dirname(fileName), obj);
58115
58153
  } catch (e4) {
58116
58154
  throw new Error(`Cannot read asset manifest '${fileName}': ${e4.message}`);
58117
58155
  }
@@ -58124,12 +58162,12 @@ var init_asset_manifest = __esm({
58124
58162
  static fromPath(filePath) {
58125
58163
  let st;
58126
58164
  try {
58127
- st = fs10.statSync(filePath);
58165
+ st = fs11.statSync(filePath);
58128
58166
  } catch (e4) {
58129
58167
  throw new Error(`Cannot read asset manifest at '${filePath}': ${e4.message}`);
58130
58168
  }
58131
58169
  if (st.isDirectory()) {
58132
- return _AssetManifest.fromFile(path11.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58170
+ return _AssetManifest.fromFile(path12.join(filePath, _AssetManifest.DEFAULT_FILENAME));
58133
58171
  }
58134
58172
  return _AssetManifest.fromFile(filePath);
58135
58173
  }
@@ -59502,9 +59540,9 @@ var init_createPaginator = __esm({
59502
59540
  return await client.send(command, ...args);
59503
59541
  }, "makePagedClientRequest");
59504
59542
  __name(createPaginator, "createPaginator");
59505
- get = /* @__PURE__ */ __name((fromObject, path12) => {
59543
+ get = /* @__PURE__ */ __name((fromObject, path13) => {
59506
59544
  let cursor2 = fromObject;
59507
- const pathComponents = path12.split(".");
59545
+ const pathComponents = path13.split(".");
59508
59546
  for (const step of pathComponents) {
59509
59547
  if (!cursor2 || typeof cursor2 !== "object") {
59510
59548
  return void 0;
@@ -60029,27 +60067,76 @@ var require_createBufferedReadable = __commonJS({
60029
60067
  }
60030
60068
  });
60031
60069
 
60070
+ // ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js
60071
+ var require_getAwsChunkedEncodingStream_browser = __commonJS({
60072
+ "../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js"(exports2) {
60073
+ "use strict";
60074
+ Object.defineProperty(exports2, "__esModule", { value: true });
60075
+ exports2.getAwsChunkedEncodingStream = void 0;
60076
+ var getAwsChunkedEncodingStream = /* @__PURE__ */ __name((readableStream, options) => {
60077
+ const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
60078
+ const checksumRequired = base64Encoder !== void 0 && bodyLengthChecker !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0;
60079
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0;
60080
+ const reader = readableStream.getReader();
60081
+ return new ReadableStream({
60082
+ async pull(controller) {
60083
+ const { value, done } = await reader.read();
60084
+ if (done) {
60085
+ controller.enqueue(`0\r
60086
+ `);
60087
+ if (checksumRequired) {
60088
+ const checksum = base64Encoder(await digest);
60089
+ controller.enqueue(`${checksumLocationName}:${checksum}\r
60090
+ `);
60091
+ controller.enqueue(`\r
60092
+ `);
60093
+ }
60094
+ controller.close();
60095
+ } else {
60096
+ controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r
60097
+ ${value}\r
60098
+ `);
60099
+ }
60100
+ }
60101
+ });
60102
+ }, "getAwsChunkedEncodingStream");
60103
+ exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60104
+ }
60105
+ });
60106
+
60032
60107
  // ../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js
60033
60108
  var require_getAwsChunkedEncodingStream = __commonJS({
60034
60109
  "../../node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js"(exports2) {
60035
60110
  "use strict";
60036
60111
  Object.defineProperty(exports2, "__esModule", { value: true });
60037
- exports2.getAwsChunkedEncodingStream = void 0;
60038
- var stream_1 = require("stream");
60039
- var getAwsChunkedEncodingStream = /* @__PURE__ */ __name((readableStream, options) => {
60112
+ exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60113
+ var node_stream_1 = require("node:stream");
60114
+ var getAwsChunkedEncodingStream_browser_1 = require_getAwsChunkedEncodingStream_browser();
60115
+ var stream_type_check_1 = require_stream_type_check();
60116
+ function getAwsChunkedEncodingStream(stream2, options) {
60117
+ const readable = stream2;
60118
+ const readableStream = stream2;
60119
+ if ((0, stream_type_check_1.isReadableStream)(readableStream)) {
60120
+ return (0, getAwsChunkedEncodingStream_browser_1.getAwsChunkedEncodingStream)(readableStream, options);
60121
+ }
60040
60122
  const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options;
60041
60123
  const checksumRequired = base64Encoder !== void 0 && checksumAlgorithmFn !== void 0 && checksumLocationName !== void 0 && streamHasher !== void 0;
60042
- const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : void 0;
60043
- const awsChunkedEncodingStream = new stream_1.Readable({ read: /* @__PURE__ */ __name(() => {
60044
- }, "read") });
60045
- readableStream.on("data", (data2) => {
60124
+ const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readable) : void 0;
60125
+ const awsChunkedEncodingStream = new node_stream_1.Readable({
60126
+ read: /* @__PURE__ */ __name(() => {
60127
+ }, "read")
60128
+ });
60129
+ readable.on("data", (data2) => {
60046
60130
  const length = bodyLengthChecker(data2) || 0;
60131
+ if (length === 0) {
60132
+ return;
60133
+ }
60047
60134
  awsChunkedEncodingStream.push(`${length.toString(16)}\r
60048
60135
  `);
60049
60136
  awsChunkedEncodingStream.push(data2);
60050
60137
  awsChunkedEncodingStream.push("\r\n");
60051
60138
  });
60052
- readableStream.on("end", async () => {
60139
+ readable.on("end", async () => {
60053
60140
  awsChunkedEncodingStream.push(`0\r
60054
60141
  `);
60055
60142
  if (checksumRequired) {
@@ -60062,8 +60149,8 @@ var require_getAwsChunkedEncodingStream = __commonJS({
60062
60149
  awsChunkedEncodingStream.push(null);
60063
60150
  });
60064
60151
  return awsChunkedEncodingStream;
60065
- }, "getAwsChunkedEncodingStream");
60066
- exports2.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream;
60152
+ }
60153
+ __name(getAwsChunkedEncodingStream, "getAwsChunkedEncodingStream");
60067
60154
  }
60068
60155
  });
60069
60156
 
@@ -60493,12 +60580,12 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60493
60580
  const password = request.password ?? "";
60494
60581
  auth = `${username}:${password}`;
60495
60582
  }
60496
- let path12 = request.path;
60583
+ let path13 = request.path;
60497
60584
  if (queryString) {
60498
- path12 += `?${queryString}`;
60585
+ path13 += `?${queryString}`;
60499
60586
  }
60500
60587
  if (request.fragment) {
60501
- path12 += `#${request.fragment}`;
60588
+ path13 += `#${request.fragment}`;
60502
60589
  }
60503
60590
  let hostname = request.hostname ?? "";
60504
60591
  if (hostname[0] === "[" && hostname.endsWith("]")) {
@@ -60510,7 +60597,7 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60510
60597
  headers: request.headers,
60511
60598
  host: hostname,
60512
60599
  method: request.method,
60513
- path: path12,
60600
+ path: path13,
60514
60601
  port: request.port,
60515
60602
  agent,
60516
60603
  auth
@@ -60774,16 +60861,16 @@ or increase socketAcquisitionWarningTimeout=(millis) in the NodeHttpHandler conf
60774
60861
  reject(err);
60775
60862
  }, "rejectWithDestroy");
60776
60863
  const queryString = querystringBuilder.buildQueryString(query || {});
60777
- let path12 = request.path;
60864
+ let path13 = request.path;
60778
60865
  if (queryString) {
60779
- path12 += `?${queryString}`;
60866
+ path13 += `?${queryString}`;
60780
60867
  }
60781
60868
  if (request.fragment) {
60782
- path12 += `#${request.fragment}`;
60869
+ path13 += `#${request.fragment}`;
60783
60870
  }
60784
60871
  const req = session.request({
60785
60872
  ...request.headers,
60786
- [http2.constants.HTTP2_HEADER_PATH]: path12,
60873
+ [http2.constants.HTTP2_HEADER_PATH]: path13,
60787
60874
  [http2.constants.HTTP2_HEADER_METHOD]: method
60788
60875
  });
60789
60876
  session.ref();
@@ -60981,13 +61068,13 @@ var require_dist_cjs15 = __commonJS({
60981
61068
  abortError.name = "AbortError";
60982
61069
  return Promise.reject(abortError);
60983
61070
  }
60984
- let path12 = request.path;
61071
+ let path13 = request.path;
60985
61072
  const queryString = querystringBuilder.buildQueryString(request.query || {});
60986
61073
  if (queryString) {
60987
- path12 += `?${queryString}`;
61074
+ path13 += `?${queryString}`;
60988
61075
  }
60989
61076
  if (request.fragment) {
60990
- path12 += `#${request.fragment}`;
61077
+ path13 += `#${request.fragment}`;
60991
61078
  }
60992
61079
  let auth = "";
60993
61080
  if (request.username != null || request.password != null) {
@@ -60996,7 +61083,7 @@ var require_dist_cjs15 = __commonJS({
60996
61083
  auth = `${username}:${password}@`;
60997
61084
  }
60998
61085
  const { port, method } = request;
60999
- const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path12}`;
61086
+ const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path13}`;
61000
61087
  const body = method === "GET" || method === "HEAD" ? void 0 : request.body;
61001
61088
  const requestOptions = {
61002
61089
  body,
@@ -61387,6 +61474,18 @@ var require_dist_cjs17 = __commonJS({
61387
61474
  return utilUtf8.toUtf8(this);
61388
61475
  }
61389
61476
  };
61477
+ Object.defineProperty(exports2, "isBlob", {
61478
+ enumerable: true,
61479
+ get: /* @__PURE__ */ __name(function() {
61480
+ return streamTypeCheck.isBlob;
61481
+ }, "get")
61482
+ });
61483
+ Object.defineProperty(exports2, "isReadableStream", {
61484
+ enumerable: true,
61485
+ get: /* @__PURE__ */ __name(function() {
61486
+ return streamTypeCheck.isReadableStream;
61487
+ }, "get")
61488
+ });
61390
61489
  exports2.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter2;
61391
61490
  Object.keys(ChecksumStream).forEach(function(k4) {
61392
61491
  if (k4 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k4)) Object.defineProperty(exports2, k4, {
@@ -61444,14 +61543,6 @@ var require_dist_cjs17 = __commonJS({
61444
61543
  }, "get")
61445
61544
  });
61446
61545
  });
61447
- Object.keys(streamTypeCheck).forEach(function(k4) {
61448
- if (k4 !== "default" && !Object.prototype.hasOwnProperty.call(exports2, k4)) Object.defineProperty(exports2, k4, {
61449
- enumerable: true,
61450
- get: /* @__PURE__ */ __name(function() {
61451
- return streamTypeCheck[k4];
61452
- }, "get")
61453
- });
61454
- });
61455
61546
  }
61456
61547
  });
61457
61548
 
@@ -61831,11 +61922,14 @@ function member(memberSchema, memberName) {
61831
61922
  const internalCtorAccess = NormalizedSchema;
61832
61923
  return new internalCtorAccess(memberSchema, memberName);
61833
61924
  }
61834
- var NormalizedSchema, isMemberSchema, isStaticSchema;
61925
+ var anno, NormalizedSchema, isMemberSchema, isStaticSchema;
61835
61926
  var init_NormalizedSchema = __esm({
61836
61927
  "../../node_modules/@smithy/core/dist-es/submodules/schema/schemas/NormalizedSchema.js"() {
61837
61928
  init_deref();
61838
61929
  init_translateTraits();
61930
+ anno = {
61931
+ it: /* @__PURE__ */ Symbol.for("@smithy/nor-struct-it")
61932
+ };
61839
61933
  NormalizedSchema = class _NormalizedSchema {
61840
61934
  static {
61841
61935
  __name(this, "NormalizedSchema");
@@ -61917,7 +62011,7 @@ var init_NormalizedSchema = __esm({
61917
62011
  }
61918
62012
  getSchema() {
61919
62013
  const sc = this.schema;
61920
- if (sc[0] === 0) {
62014
+ if (Array.isArray(sc) && sc[0] === 0) {
61921
62015
  return sc[4];
61922
62016
  }
61923
62017
  return sc;
@@ -61943,7 +62037,18 @@ var init_NormalizedSchema = __esm({
61943
62037
  }
61944
62038
  isStructSchema() {
61945
62039
  const sc = this.getSchema();
61946
- return sc[0] === 3 || sc[0] === -3;
62040
+ if (typeof sc !== "object") {
62041
+ return false;
62042
+ }
62043
+ const id = sc[0];
62044
+ return id === 3 || id === -3 || id === 4;
62045
+ }
62046
+ isUnionSchema() {
62047
+ const sc = this.getSchema();
62048
+ if (typeof sc !== "object") {
62049
+ return false;
62050
+ }
62051
+ return sc[0] === 4;
61947
62052
  }
61948
62053
  isBlobSchema() {
61949
62054
  const sc = this.getSchema();
@@ -61979,9 +62084,7 @@ var init_NormalizedSchema = __esm({
61979
62084
  return !!streaming || this.getSchema() === 42;
61980
62085
  }
61981
62086
  isIdempotencyToken() {
61982
- const match2 = /* @__PURE__ */ __name((traits2) => (traits2 & 4) === 4 || !!traits2?.idempotencyToken, "match");
61983
- const { normalizedTraits, traits, memberTraits } = this;
61984
- return match2(normalizedTraits) || match2(traits) || match2(memberTraits);
62087
+ return !!this.getMergedTraits().idempotencyToken;
61985
62088
  }
61986
62089
  getMergedTraits() {
61987
62090
  return this.normalizedTraits ?? (this.normalizedTraits = {
@@ -62053,9 +62156,19 @@ var init_NormalizedSchema = __esm({
62053
62156
  throw new Error("@smithy/core/schema - cannot iterate non-struct schema.");
62054
62157
  }
62055
62158
  const struct2 = this.getSchema();
62056
- for (let i4 = 0; i4 < struct2[4].length; ++i4) {
62057
- yield [struct2[4][i4], member([struct2[5][i4], 0], struct2[4][i4])];
62159
+ const z2 = struct2[4].length;
62160
+ let it = struct2[anno.it];
62161
+ if (it && z2 === it.length) {
62162
+ yield* it;
62163
+ return;
62164
+ }
62165
+ it = Array(z2);
62166
+ for (let i4 = 0; i4 < z2; ++i4) {
62167
+ const k4 = struct2[4][i4];
62168
+ const v4 = member([struct2[5][i4], 0], k4);
62169
+ yield it[i4] = [k4, v4];
62058
62170
  }
62171
+ struct2[anno.it] = it;
62059
62172
  }
62060
62173
  };
62061
62174
  __name(member, "member");
@@ -63120,13 +63233,13 @@ function __disposeResources(env) {
63120
63233
  __name(next, "next");
63121
63234
  return next();
63122
63235
  }
63123
- function __rewriteRelativeImportExtension(path12, preserveJsx) {
63124
- if (typeof path12 === "string" && /^\.\.?\//.test(path12)) {
63125
- return path12.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63236
+ function __rewriteRelativeImportExtension(path13, preserveJsx) {
63237
+ if (typeof path13 === "string" && /^\.\.?\//.test(path13)) {
63238
+ return path13.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function(m4, tsx, d4, ext2, cm) {
63126
63239
  return tsx ? preserveJsx ? ".jsx" : ".js" : d4 && (!ext2 || !cm) ? m4 : d4 + ext2 + "." + cm.toLowerCase() + "js";
63127
63240
  });
63128
63241
  }
63129
- return path12;
63242
+ return path13;
63130
63243
  }
63131
63244
  var extendStatics, __assign, __createBinding, __setModuleDefault, ownKeys, _SuppressedError, tslib_es6_default;
63132
63245
  var init_tslib_es6 = __esm({
@@ -63750,6 +63863,11 @@ var init_EventStreamSerde = __esm({
63750
63863
  [unionMember]: out
63751
63864
  };
63752
63865
  }
63866
+ if (body.byteLength === 0) {
63867
+ return {
63868
+ [unionMember]: {}
63869
+ };
63870
+ }
63753
63871
  }
63754
63872
  return {
63755
63873
  [unionMember]: await this.deserializer.read(eventStreamSchema, body)
@@ -63931,6 +64049,9 @@ var init_HttpProtocol = __esm({
63931
64049
  }
63932
64050
  }
63933
64051
  setHostPrefix(request, operationSchema, input) {
64052
+ if (this.serdeContext?.disableHostPrefix) {
64053
+ return;
64054
+ }
63934
64055
  const inputNs = NormalizedSchema.of(operationSchema.input);
63935
64056
  const opTraits = translateTraits(operationSchema.traits ?? {});
63936
64057
  if (opTraits.endpoint) {
@@ -64047,11 +64168,11 @@ var init_HttpBindingProtocol = __esm({
64047
64168
  const opTraits = translateTraits(operationSchema.traits);
64048
64169
  if (opTraits.http) {
64049
64170
  request.method = opTraits.http[0];
64050
- const [path12, search] = opTraits.http[1].split("?");
64171
+ const [path13, search] = opTraits.http[1].split("?");
64051
64172
  if (request.path == "/") {
64052
- request.path = path12;
64173
+ request.path = path13;
64053
64174
  } else {
64054
- request.path += path12;
64175
+ request.path += path13;
64055
64176
  }
64056
64177
  const traitSearchParams = new URLSearchParams(search ?? "");
64057
64178
  Object.assign(query, Object.fromEntries(traitSearchParams));
@@ -64061,6 +64182,11 @@ var init_HttpBindingProtocol = __esm({
64061
64182
  const memberTraits = memberNs.getMergedTraits() ?? {};
64062
64183
  const inputMemberValue = input[memberName];
64063
64184
  if (inputMemberValue == null && !memberNs.isIdempotencyToken()) {
64185
+ if (memberTraits.httpLabel) {
64186
+ if (request.path.includes(`{${memberName}+}`) || request.path.includes(`{${memberName}}`)) {
64187
+ throw new Error(`No value provided for input HTTP label: ${memberName}.`);
64188
+ }
64189
+ }
64064
64190
  continue;
64065
64191
  }
64066
64192
  if (memberTraits.httpPayload) {
@@ -64436,8 +64562,8 @@ var init_requestBuilder = __esm({
64436
64562
  return this;
64437
64563
  }
64438
64564
  p(memberName, labelValueProvider, uriLabel, isGreedyLabel) {
64439
- this.resolvePathStack.push((path12) => {
64440
- this.path = resolvedPath(path12, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64565
+ this.resolvePathStack.push((path13) => {
64566
+ this.path = resolvedPath(path13, this.input, memberName, labelValueProvider, uriLabel, isGreedyLabel);
64441
64567
  });
64442
64568
  return this;
64443
64569
  }
@@ -65120,18 +65246,18 @@ var require_dist_cjs19 = __commonJS({
65120
65246
  }
65121
65247
  };
65122
65248
  var booleanEquals = /* @__PURE__ */ __name((value1, value2) => value1 === value2, "booleanEquals");
65123
- var getAttrPathList = /* @__PURE__ */ __name((path12) => {
65124
- const parts = path12.split(".");
65249
+ var getAttrPathList = /* @__PURE__ */ __name((path13) => {
65250
+ const parts = path13.split(".");
65125
65251
  const pathList = [];
65126
65252
  for (const part of parts) {
65127
65253
  const squareBracketIndex = part.indexOf("[");
65128
65254
  if (squareBracketIndex !== -1) {
65129
65255
  if (part.indexOf("]") !== part.length - 1) {
65130
- throw new EndpointError(`Path: '${path12}' does not end with ']'`);
65256
+ throw new EndpointError(`Path: '${path13}' does not end with ']'`);
65131
65257
  }
65132
65258
  const arrayIndex = part.slice(squareBracketIndex + 1, -1);
65133
65259
  if (Number.isNaN(parseInt(arrayIndex))) {
65134
- throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path12}'`);
65260
+ throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path13}'`);
65135
65261
  }
65136
65262
  if (squareBracketIndex !== 0) {
65137
65263
  pathList.push(part.slice(0, squareBracketIndex));
@@ -65143,9 +65269,9 @@ var require_dist_cjs19 = __commonJS({
65143
65269
  }
65144
65270
  return pathList;
65145
65271
  }, "getAttrPathList");
65146
- var getAttr = /* @__PURE__ */ __name((value, path12) => getAttrPathList(path12).reduce((acc, index) => {
65272
+ var getAttr = /* @__PURE__ */ __name((value, path13) => getAttrPathList(path13).reduce((acc, index) => {
65147
65273
  if (typeof acc !== "object") {
65148
- throw new EndpointError(`Index '${index}' in '${path12}' not found in '${JSON.stringify(value)}'`);
65274
+ throw new EndpointError(`Index '${index}' in '${path13}' not found in '${JSON.stringify(value)}'`);
65149
65275
  } else if (Array.isArray(acc)) {
65150
65276
  return acc[parseInt(index)];
65151
65277
  }
@@ -65164,8 +65290,8 @@ var require_dist_cjs19 = __commonJS({
65164
65290
  return value;
65165
65291
  }
65166
65292
  if (typeof value === "object" && "hostname" in value) {
65167
- const { hostname: hostname2, port, protocol: protocol2 = "", path: path12 = "", query = {} } = value;
65168
- const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path12}`);
65293
+ const { hostname: hostname2, port, protocol: protocol2 = "", path: path13 = "", query = {} } = value;
65294
+ const url = new URL(`${protocol2}//${hostname2}${port ? `:${port}` : ""}${path13}`);
65169
65295
  url.search = Object.entries(query).map(([k4, v4]) => `${k4}=${v4}`).join("&");
65170
65296
  return url;
65171
65297
  }
@@ -66709,10 +66835,10 @@ ${longDate}
66709
66835
  ${credentialScope}
66710
66836
  ${utilHexEncoding.toHex(hashedRequest)}`;
66711
66837
  }
66712
- getCanonicalPath({ path: path12 }) {
66838
+ getCanonicalPath({ path: path13 }) {
66713
66839
  if (this.uriEscapePath) {
66714
66840
  const normalizedPathSegments = [];
66715
- for (const pathSegment of path12.split("/")) {
66841
+ for (const pathSegment of path13.split("/")) {
66716
66842
  if (pathSegment?.length === 0)
66717
66843
  continue;
66718
66844
  if (pathSegment === ".")
@@ -66723,11 +66849,11 @@ ${utilHexEncoding.toHex(hashedRequest)}`;
66723
66849
  normalizedPathSegments.push(pathSegment);
66724
66850
  }
66725
66851
  }
66726
- const normalizedPath = `${path12?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path12?.endsWith("/") ? "/" : ""}`;
66852
+ const normalizedPath = `${path13?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path13?.endsWith("/") ? "/" : ""}`;
66727
66853
  const doubleEncoded = utilUriEscape.escapeUri(normalizedPath);
66728
66854
  return doubleEncoded.replace(/%2F/g, "/");
66729
66855
  }
66730
- return path12;
66856
+ return path13;
66731
66857
  }
66732
66858
  validateResolvedCredentials(credentials) {
66733
66859
  if (typeof credentials !== "object" || typeof credentials.accessKeyId !== "string" || typeof credentials.secretAccessKey !== "string") {
@@ -67815,6 +67941,7 @@ var init_CborCodec = __esm({
67815
67941
  init_protocols();
67816
67942
  init_schema4();
67817
67943
  init_serde();
67944
+ init_serde();
67818
67945
  import_util_base643 = __toESM(require_dist_cjs11());
67819
67946
  init_cbor();
67820
67947
  init_parseCborBody();
@@ -67894,10 +68021,23 @@ var init_CborCodec = __esm({
67894
68021
  newObject[key] = value;
67895
68022
  }
67896
68023
  }
68024
+ const isUnion = ns.isUnionSchema();
68025
+ if (isUnion && Array.isArray(sourceObject.$unknown)) {
68026
+ const [k4, v4] = sourceObject.$unknown;
68027
+ newObject[k4] = v4;
68028
+ } else if (typeof sourceObject.__type === "string") {
68029
+ for (const [k4, v4] of Object.entries(sourceObject)) {
68030
+ if (!(k4 in newObject)) {
68031
+ newObject[k4] = this.serialize(15, v4);
68032
+ }
68033
+ }
68034
+ }
67897
68035
  } else if (ns.isDocumentSchema()) {
67898
68036
  for (const key of Object.keys(sourceObject)) {
67899
68037
  newObject[key] = this.serialize(ns.getValueSchema(), sourceObject[key]);
67900
68038
  }
68039
+ } else if (ns.isBigDecimalSchema()) {
68040
+ return sourceObject;
67901
68041
  }
67902
68042
  return newObject;
67903
68043
  }
@@ -67973,12 +68113,31 @@ var init_CborCodec = __esm({
67973
68113
  }
67974
68114
  }
67975
68115
  } else if (ns.isStructSchema()) {
68116
+ const isUnion = ns.isUnionSchema();
68117
+ let keys;
68118
+ if (isUnion) {
68119
+ keys = new Set(Object.keys(value).filter((k4) => k4 !== "__type"));
68120
+ }
67976
68121
  for (const [key, memberSchema] of ns.structIterator()) {
67977
- const v4 = this.readValue(memberSchema, value[key]);
67978
- if (v4 != null) {
67979
- newObject[key] = v4;
68122
+ if (isUnion) {
68123
+ keys.delete(key);
68124
+ }
68125
+ if (value[key] != null) {
68126
+ newObject[key] = this.readValue(memberSchema, value[key]);
68127
+ }
68128
+ }
68129
+ if (isUnion && keys?.size === 1 && Object.keys(newObject).length === 0) {
68130
+ const k4 = keys.values().next().value;
68131
+ newObject.$unknown = [k4, value[k4]];
68132
+ } else if (typeof value.__type === "string") {
68133
+ for (const [k4, v4] of Object.entries(value)) {
68134
+ if (!(k4 in newObject)) {
68135
+ newObject[k4] = v4;
68136
+ }
67980
68137
  }
67981
68138
  }
68139
+ } else if (value instanceof NumericValue) {
68140
+ return value;
67982
68141
  }
67983
68142
  return newObject;
67984
68143
  } else {
@@ -68035,11 +68194,11 @@ var init_SmithyRpcV2CborProtocol = __esm({
68035
68194
  }
68036
68195
  }
68037
68196
  const { service, operation: operation2 } = (0, import_util_middleware5.getSmithyContext)(context);
68038
- const path12 = `/service/${service}/operation/${operation2}`;
68197
+ const path13 = `/service/${service}/operation/${operation2}`;
68039
68198
  if (request.path.endsWith("/")) {
68040
- request.path += path12.slice(1);
68199
+ request.path += path13.slice(1);
68041
68200
  } else {
68042
- request.path += path12;
68201
+ request.path += path13;
68043
68202
  }
68044
68203
  return request;
68045
68204
  }
@@ -68594,9 +68753,8 @@ var require_dist_cjs26 = __commonJS({
68594
68753
  }
68595
68754
  };
68596
68755
  var SENSITIVE_STRING = "***SensitiveInformation***";
68597
- var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2) => {
68598
- for (const command of Object.keys(commands4)) {
68599
- const CommandCtor = commands4[command];
68756
+ var createAggregatedClient4 = /* @__PURE__ */ __name((commands4, Client2, options) => {
68757
+ for (const [command, CommandCtor] of Object.entries(commands4)) {
68600
68758
  const methodImpl = /* @__PURE__ */ __name(async function(args, optionsOrCb, cb) {
68601
68759
  const command2 = new CommandCtor(args);
68602
68760
  if (typeof optionsOrCb === "function") {
@@ -68612,6 +68770,33 @@ var require_dist_cjs26 = __commonJS({
68612
68770
  const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, "");
68613
68771
  Client2.prototype[methodName] = methodImpl;
68614
68772
  }
68773
+ const { paginators = {}, waiters = {} } = options ?? {};
68774
+ for (const [paginatorName, paginatorFn] of Object.entries(paginators)) {
68775
+ if (Client2.prototype[paginatorName] === void 0) {
68776
+ Client2.prototype[paginatorName] = function(commandInput = {}, paginationConfiguration, ...rest) {
68777
+ return paginatorFn({
68778
+ ...paginationConfiguration,
68779
+ client: this
68780
+ }, commandInput, ...rest);
68781
+ };
68782
+ }
68783
+ }
68784
+ for (const [waiterName, waiterFn] of Object.entries(waiters)) {
68785
+ if (Client2.prototype[waiterName] === void 0) {
68786
+ Client2.prototype[waiterName] = async function(commandInput = {}, waiterConfiguration, ...rest) {
68787
+ let config = waiterConfiguration;
68788
+ if (typeof waiterConfiguration === "number") {
68789
+ config = {
68790
+ maxWaitTime: waiterConfiguration
68791
+ };
68792
+ }
68793
+ return waiterFn({
68794
+ ...config,
68795
+ client: this
68796
+ }, commandInput, ...rest);
68797
+ };
68798
+ }
68799
+ }
68615
68800
  }, "createAggregatedClient");
68616
68801
  var ServiceException = class _ServiceException extends Error {
68617
68802
  static {
@@ -72517,14 +72702,14 @@ var require_readFile = __commonJS({
72517
72702
  var promises_1 = require("node:fs/promises");
72518
72703
  exports2.filePromises = {};
72519
72704
  exports2.fileIntercept = {};
72520
- var readFile = /* @__PURE__ */ __name((path12, options) => {
72521
- if (exports2.fileIntercept[path12] !== void 0) {
72522
- return exports2.fileIntercept[path12];
72705
+ var readFile = /* @__PURE__ */ __name((path13, options) => {
72706
+ if (exports2.fileIntercept[path13] !== void 0) {
72707
+ return exports2.fileIntercept[path13];
72523
72708
  }
72524
- if (!exports2.filePromises[path12] || options?.ignoreCache) {
72525
- exports2.filePromises[path12] = (0, promises_1.readFile)(path12, "utf8");
72709
+ if (!exports2.filePromises[path13] || options?.ignoreCache) {
72710
+ exports2.filePromises[path13] = (0, promises_1.readFile)(path13, "utf8");
72526
72711
  }
72527
- return exports2.filePromises[path12];
72712
+ return exports2.filePromises[path13];
72528
72713
  }, "readFile");
72529
72714
  exports2.readFile = readFile;
72530
72715
  }
@@ -72537,7 +72722,7 @@ var require_dist_cjs32 = __commonJS({
72537
72722
  var getHomeDir = require_getHomeDir();
72538
72723
  var getSSOTokenFilepath = require_getSSOTokenFilepath();
72539
72724
  var getSSOTokenFromFile = require_getSSOTokenFromFile();
72540
- var path12 = require("path");
72725
+ var path13 = require("path");
72541
72726
  var types2 = require_dist_cjs();
72542
72727
  var readFile = require_readFile();
72543
72728
  var ENV_PROFILE = "AWS_PROFILE";
@@ -72559,9 +72744,9 @@ var require_dist_cjs32 = __commonJS({
72559
72744
  ...data2.default && { default: data2.default }
72560
72745
  }), "getConfigData");
72561
72746
  var ENV_CONFIG_PATH = "AWS_CONFIG_FILE";
72562
- var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path12.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72747
+ var getConfigFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CONFIG_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "config"), "getConfigFilepath");
72563
72748
  var ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE";
72564
- var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path12.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72749
+ var getCredentialsFilepath = /* @__PURE__ */ __name(() => process.env[ENV_CREDENTIALS_PATH] || path13.join(getHomeDir.getHomeDir(), ".aws", "credentials"), "getCredentialsFilepath");
72565
72750
  var prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/;
72566
72751
  var profileNameBlockList = ["__proto__", "profile __proto__"];
72567
72752
  var parseIni = /* @__PURE__ */ __name((iniData) => {
@@ -72616,11 +72801,11 @@ var require_dist_cjs32 = __commonJS({
72616
72801
  const relativeHomeDirPrefix = "~/";
72617
72802
  let resolvedFilepath = filepath;
72618
72803
  if (filepath.startsWith(relativeHomeDirPrefix)) {
72619
- resolvedFilepath = path12.join(homeDir, filepath.slice(2));
72804
+ resolvedFilepath = path13.join(homeDir, filepath.slice(2));
72620
72805
  }
72621
72806
  let resolvedConfigFilepath = configFilepath;
72622
72807
  if (configFilepath.startsWith(relativeHomeDirPrefix)) {
72623
- resolvedConfigFilepath = path12.join(homeDir, configFilepath.slice(2));
72808
+ resolvedConfigFilepath = path13.join(homeDir, configFilepath.slice(2));
72624
72809
  }
72625
72810
  const parsedFiles = await Promise.all([
72626
72811
  readFile.readFile(resolvedConfigFilepath, {
@@ -72659,8 +72844,8 @@ var require_dist_cjs32 = __commonJS({
72659
72844
  getFileRecord() {
72660
72845
  return readFile.fileIntercept;
72661
72846
  },
72662
- interceptFile(path13, contents) {
72663
- readFile.fileIntercept[path13] = Promise.resolve(contents);
72847
+ interceptFile(path14, contents) {
72848
+ readFile.fileIntercept[path14] = Promise.resolve(contents);
72664
72849
  },
72665
72850
  getTokenRecord() {
72666
72851
  return getSSOTokenFromFile.tokenIntercept;
@@ -72899,8 +73084,8 @@ var require_dist_cjs34 = __commonJS({
72899
73084
  return endpoint.url.href;
72900
73085
  }
72901
73086
  if ("hostname" in endpoint) {
72902
- const { protocol, hostname, port, path: path12 } = endpoint;
72903
- return `${protocol}//${hostname}${port ? ":" + port : ""}${path12}`;
73087
+ const { protocol, hostname, port, path: path13 } = endpoint;
73088
+ return `${protocol}//${hostname}${port ? ":" + port : ""}${path13}`;
72904
73089
  }
72905
73090
  }
72906
73091
  return endpoint;
@@ -73975,9 +74160,9 @@ var require_dist_cjs38 = __commonJS({
73975
74160
  }
73976
74161
  });
73977
74162
 
73978
- // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
74163
+ // ../../node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
73979
74164
  var require_dist_cjs39 = __commonJS({
73980
- "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
74165
+ "../../node_modules/@aws-sdk/credential-provider-node/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
73981
74166
  "use strict";
73982
74167
  var propertyProvider = require_dist_cjs23();
73983
74168
  var url = require("url");
@@ -74875,8 +75060,358 @@ var require_dist_cjs43 = __commonJS({
74875
75060
  }
74876
75061
  });
74877
75062
 
74878
- // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
75063
+ // ../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
74879
75064
  var require_dist_cjs44 = __commonJS({
75065
+ "../../node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
75066
+ "use strict";
75067
+ var propertyProvider = require_dist_cjs23();
75068
+ var url = require("url");
75069
+ var buffer = require("buffer");
75070
+ var http = require("http");
75071
+ var nodeConfigProvider = require_dist_cjs33();
75072
+ var urlParser = require_dist_cjs21();
75073
+ function httpRequest(options) {
75074
+ return new Promise((resolve6, reject) => {
75075
+ const req = http.request({
75076
+ method: "GET",
75077
+ ...options,
75078
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
75079
+ });
75080
+ req.on("error", (err) => {
75081
+ reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
75082
+ req.destroy();
75083
+ });
75084
+ req.on("timeout", () => {
75085
+ reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
75086
+ req.destroy();
75087
+ });
75088
+ req.on("response", (res) => {
75089
+ const { statusCode = 400 } = res;
75090
+ if (statusCode < 200 || 300 <= statusCode) {
75091
+ reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
75092
+ req.destroy();
75093
+ }
75094
+ const chunks = [];
75095
+ res.on("data", (chunk) => {
75096
+ chunks.push(chunk);
75097
+ });
75098
+ res.on("end", () => {
75099
+ resolve6(buffer.Buffer.concat(chunks));
75100
+ req.destroy();
75101
+ });
75102
+ });
75103
+ req.end();
75104
+ });
75105
+ }
75106
+ __name(httpRequest, "httpRequest");
75107
+ var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
75108
+ var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
75109
+ accessKeyId: creds.AccessKeyId,
75110
+ secretAccessKey: creds.SecretAccessKey,
75111
+ sessionToken: creds.Token,
75112
+ expiration: new Date(creds.Expiration),
75113
+ ...creds.AccountId && { accountId: creds.AccountId }
75114
+ }), "fromImdsCredentials");
75115
+ var DEFAULT_TIMEOUT = 1e3;
75116
+ var DEFAULT_MAX_RETRIES = 0;
75117
+ var providerConfigFromInit = /* @__PURE__ */ __name(({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }), "providerConfigFromInit");
75118
+ var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {
75119
+ let promise = toRetry();
75120
+ for (let i4 = 0; i4 < maxRetries; i4++) {
75121
+ promise = promise.catch(toRetry);
75122
+ }
75123
+ return promise;
75124
+ }, "retry");
75125
+ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
75126
+ var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
75127
+ var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
75128
+ var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {
75129
+ const { timeout, maxRetries } = providerConfigFromInit(init);
75130
+ return () => retry(async () => {
75131
+ const requestOptions = await getCmdsUri({ logger: init.logger });
75132
+ const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
75133
+ if (!isImdsCredentials(credsResponse)) {
75134
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
75135
+ logger: init.logger
75136
+ });
75137
+ }
75138
+ return fromImdsCredentials(credsResponse);
75139
+ }, maxRetries);
75140
+ }, "fromContainerMetadata");
75141
+ var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {
75142
+ if (process.env[ENV_CMDS_AUTH_TOKEN]) {
75143
+ options.headers = {
75144
+ ...options.headers,
75145
+ Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
75146
+ };
75147
+ }
75148
+ const buffer2 = await httpRequest({
75149
+ ...options,
75150
+ timeout
75151
+ });
75152
+ return buffer2.toString();
75153
+ }, "requestFromEcsImds");
75154
+ var CMDS_IP = "169.254.170.2";
75155
+ var GREENGRASS_HOSTS = {
75156
+ localhost: true,
75157
+ "127.0.0.1": true
75158
+ };
75159
+ var GREENGRASS_PROTOCOLS = {
75160
+ "http:": true,
75161
+ "https:": true
75162
+ };
75163
+ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger: logger2 }) => {
75164
+ if (process.env[ENV_CMDS_RELATIVE_URI]) {
75165
+ return {
75166
+ hostname: CMDS_IP,
75167
+ path: process.env[ENV_CMDS_RELATIVE_URI]
75168
+ };
75169
+ }
75170
+ if (process.env[ENV_CMDS_FULL_URI]) {
75171
+ const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
75172
+ if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
75173
+ throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
75174
+ tryNextLink: false,
75175
+ logger: logger2
75176
+ });
75177
+ }
75178
+ if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
75179
+ throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
75180
+ tryNextLink: false,
75181
+ logger: logger2
75182
+ });
75183
+ }
75184
+ return {
75185
+ ...parsed,
75186
+ port: parsed.port ? parseInt(parsed.port, 10) : void 0
75187
+ };
75188
+ }
75189
+ throw new propertyProvider.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
75190
+ tryNextLink: false,
75191
+ logger: logger2
75192
+ });
75193
+ }, "getCmdsUri");
75194
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
75195
+ static {
75196
+ __name(this, "InstanceMetadataV1FallbackError");
75197
+ }
75198
+ tryNextLink;
75199
+ name = "InstanceMetadataV1FallbackError";
75200
+ constructor(message, tryNextLink = true) {
75201
+ super(message, tryNextLink);
75202
+ this.tryNextLink = tryNextLink;
75203
+ Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
75204
+ }
75205
+ };
75206
+ exports2.Endpoint = void 0;
75207
+ (function(Endpoint) {
75208
+ Endpoint["IPv4"] = "http://169.254.169.254";
75209
+ Endpoint["IPv6"] = "http://[fd00:ec2::254]";
75210
+ })(exports2.Endpoint || (exports2.Endpoint = {}));
75211
+ var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
75212
+ var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
75213
+ var ENDPOINT_CONFIG_OPTIONS = {
75214
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
75215
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
75216
+ default: void 0
75217
+ };
75218
+ var EndpointMode;
75219
+ (function(EndpointMode2) {
75220
+ EndpointMode2["IPv4"] = "IPv4";
75221
+ EndpointMode2["IPv6"] = "IPv6";
75222
+ })(EndpointMode || (EndpointMode = {}));
75223
+ var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
75224
+ var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
75225
+ var ENDPOINT_MODE_CONFIG_OPTIONS = {
75226
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
75227
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
75228
+ default: EndpointMode.IPv4
75229
+ };
75230
+ var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => urlParser.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
75231
+ var getFromEndpointConfig = /* @__PURE__ */ __name(async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
75232
+ var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {
75233
+ const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
75234
+ switch (endpointMode) {
75235
+ case EndpointMode.IPv4:
75236
+ return exports2.Endpoint.IPv4;
75237
+ case EndpointMode.IPv6:
75238
+ return exports2.Endpoint.IPv6;
75239
+ default:
75240
+ throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
75241
+ }
75242
+ }, "getFromEndpointModeConfig");
75243
+ var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
75244
+ var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
75245
+ var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
75246
+ var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger2) => {
75247
+ const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
75248
+ const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
75249
+ logger2.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
75250
+ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
75251
+ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
75252
+ return {
75253
+ ...credentials,
75254
+ ...originalExpiration ? { originalExpiration } : {},
75255
+ expiration: newExpiration
75256
+ };
75257
+ }, "getExtendedInstanceMetadataCredentials");
75258
+ var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
75259
+ const logger2 = options?.logger || console;
75260
+ let pastCredentials;
75261
+ return async () => {
75262
+ let credentials;
75263
+ try {
75264
+ credentials = await provider();
75265
+ if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
75266
+ credentials = getExtendedInstanceMetadataCredentials(credentials, logger2);
75267
+ }
75268
+ } catch (e4) {
75269
+ if (pastCredentials) {
75270
+ logger2.warn("Credential renew failed: ", e4);
75271
+ credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger2);
75272
+ } else {
75273
+ throw e4;
75274
+ }
75275
+ }
75276
+ pastCredentials = credentials;
75277
+ return credentials;
75278
+ };
75279
+ }, "staticStabilityProvider");
75280
+ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
75281
+ var IMDS_TOKEN_PATH = "/latest/api/token";
75282
+ var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
75283
+ var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
75284
+ var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
75285
+ var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
75286
+ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
75287
+ let disableFetchToken = false;
75288
+ const { logger: logger2, profile } = init;
75289
+ const { timeout, maxRetries } = providerConfigFromInit(init);
75290
+ const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
75291
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
75292
+ if (isImdsV1Fallback) {
75293
+ let fallbackBlockedFromProfile = false;
75294
+ let fallbackBlockedFromProcessEnv = false;
75295
+ const configValue = await nodeConfigProvider.loadConfig({
75296
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => {
75297
+ const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
75298
+ fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
75299
+ if (envValue === void 0) {
75300
+ throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
75301
+ }
75302
+ return fallbackBlockedFromProcessEnv;
75303
+ }, "environmentVariableSelector"),
75304
+ configFileSelector: /* @__PURE__ */ __name((profile2) => {
75305
+ const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
75306
+ fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
75307
+ return fallbackBlockedFromProfile;
75308
+ }, "configFileSelector"),
75309
+ default: false
75310
+ }, {
75311
+ profile
75312
+ })();
75313
+ if (init.ec2MetadataV1Disabled || configValue) {
75314
+ const causes = [];
75315
+ if (init.ec2MetadataV1Disabled)
75316
+ causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
75317
+ if (fallbackBlockedFromProfile)
75318
+ causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
75319
+ if (fallbackBlockedFromProcessEnv)
75320
+ causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
75321
+ throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
75322
+ }
75323
+ }
75324
+ const imdsProfile = (await retry(async () => {
75325
+ let profile2;
75326
+ try {
75327
+ profile2 = await getProfile(options);
75328
+ } catch (err) {
75329
+ if (err.statusCode === 401) {
75330
+ disableFetchToken = false;
75331
+ }
75332
+ throw err;
75333
+ }
75334
+ return profile2;
75335
+ }, maxRetries2)).trim();
75336
+ return retry(async () => {
75337
+ let creds;
75338
+ try {
75339
+ creds = await getCredentialsFromProfile(imdsProfile, options, init);
75340
+ } catch (err) {
75341
+ if (err.statusCode === 401) {
75342
+ disableFetchToken = false;
75343
+ }
75344
+ throw err;
75345
+ }
75346
+ return creds;
75347
+ }, maxRetries2);
75348
+ }, "getCredentials");
75349
+ return async () => {
75350
+ const endpoint = await getInstanceMetadataEndpoint();
75351
+ if (disableFetchToken) {
75352
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
75353
+ return getCredentials(maxRetries, { ...endpoint, timeout });
75354
+ } else {
75355
+ let token;
75356
+ try {
75357
+ token = (await getMetadataToken({ ...endpoint, timeout })).toString();
75358
+ } catch (error2) {
75359
+ if (error2?.statusCode === 400) {
75360
+ throw Object.assign(error2, {
75361
+ message: "EC2 Metadata token request returned error"
75362
+ });
75363
+ } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) {
75364
+ disableFetchToken = true;
75365
+ }
75366
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
75367
+ return getCredentials(maxRetries, { ...endpoint, timeout });
75368
+ }
75369
+ return getCredentials(maxRetries, {
75370
+ ...endpoint,
75371
+ headers: {
75372
+ [X_AWS_EC2_METADATA_TOKEN]: token
75373
+ },
75374
+ timeout
75375
+ });
75376
+ }
75377
+ };
75378
+ }, "getInstanceMetadataProvider");
75379
+ var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({
75380
+ ...options,
75381
+ path: IMDS_TOKEN_PATH,
75382
+ method: "PUT",
75383
+ headers: {
75384
+ "x-aws-ec2-metadata-token-ttl-seconds": "21600"
75385
+ }
75386
+ }), "getMetadataToken");
75387
+ var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
75388
+ var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {
75389
+ const credentialsResponse = JSON.parse((await httpRequest({
75390
+ ...options,
75391
+ path: IMDS_PATH + profile
75392
+ })).toString());
75393
+ if (!isImdsCredentials(credentialsResponse)) {
75394
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
75395
+ logger: init.logger
75396
+ });
75397
+ }
75398
+ return fromImdsCredentials(credentialsResponse);
75399
+ }, "getCredentialsFromProfile");
75400
+ exports2.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
75401
+ exports2.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
75402
+ exports2.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
75403
+ exports2.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
75404
+ exports2.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
75405
+ exports2.fromContainerMetadata = fromContainerMetadata;
75406
+ exports2.fromInstanceMetadata = fromInstanceMetadata;
75407
+ exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
75408
+ exports2.httpRequest = httpRequest;
75409
+ exports2.providerConfigFromInit = providerConfigFromInit;
75410
+ }
75411
+ });
75412
+
75413
+ // ../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js
75414
+ var require_dist_cjs45 = __commonJS({
74880
75415
  "../../node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js"(exports2) {
74881
75416
  "use strict";
74882
75417
  var configResolver = require_dist_cjs30();
@@ -74937,7 +75472,7 @@ var require_dist_cjs44 = __commonJS({
74937
75472
  }
74938
75473
  if (!process.env[ENV_IMDS_DISABLED]) {
74939
75474
  try {
74940
- const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
75475
+ const { getInstanceMetadataEndpoint, httpRequest } = await Promise.resolve().then(() => __toESM(require_dist_cjs44()));
74941
75476
  const endpoint = await getInstanceMetadataEndpoint();
74942
75477
  return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString();
74943
75478
  } catch (e4) {
@@ -75066,7 +75601,7 @@ var init_runtimeConfig = __esm({
75066
75601
  import_node_http_handler = __toESM(require_dist_cjs14());
75067
75602
  import_smithy_client9 = __toESM(require_dist_cjs26());
75068
75603
  import_util_body_length_node = __toESM(require_dist_cjs43());
75069
- import_util_defaults_mode_node = __toESM(require_dist_cjs44());
75604
+ import_util_defaults_mode_node = __toESM(require_dist_cjs45());
75070
75605
  import_util_retry = __toESM(require_dist_cjs36());
75071
75606
  init_runtimeConfig_shared();
75072
75607
  getRuntimeConfig2 = /* @__PURE__ */ __name((config) => {
@@ -75132,7 +75667,7 @@ var require_stsRegionDefaultResolver = __commonJS({
75132
75667
  });
75133
75668
 
75134
75669
  // ../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js
75135
- var require_dist_cjs45 = __commonJS({
75670
+ var require_dist_cjs46 = __commonJS({
75136
75671
  "../../node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js"(exports2) {
75137
75672
  "use strict";
75138
75673
  var stsRegionDefaultResolver2 = require_stsRegionDefaultResolver();
@@ -75243,7 +75778,7 @@ var init_httpAuthExtensionConfiguration = __esm({
75243
75778
  var import_region_config_resolver, import_protocol_http12, import_smithy_client10, resolveRuntimeExtensions;
75244
75779
  var init_runtimeExtensions = __esm({
75245
75780
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sso-oidc/runtimeExtensions.js"() {
75246
- import_region_config_resolver = __toESM(require_dist_cjs45());
75781
+ import_region_config_resolver = __toESM(require_dist_cjs46());
75247
75782
  import_protocol_http12 = __toESM(require_dist_cjs2());
75248
75783
  import_smithy_client10 = __toESM(require_dist_cjs26());
75249
75784
  init_httpAuthExtensionConfiguration();
@@ -75803,14 +76338,14 @@ var init_sso_oidc = __esm({
75803
76338
  });
75804
76339
 
75805
76340
  // ../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js
75806
- var require_dist_cjs46 = __commonJS({
76341
+ var require_dist_cjs47 = __commonJS({
75807
76342
  "../../node_modules/@aws-sdk/token-providers/dist-cjs/index.js"(exports2) {
75808
76343
  "use strict";
75809
76344
  var client = (init_client(), __toCommonJS(client_exports));
75810
76345
  var httpAuthSchemes = (init_httpAuthSchemes2(), __toCommonJS(httpAuthSchemes_exports));
75811
76346
  var propertyProvider = require_dist_cjs23();
75812
76347
  var sharedIniFileLoader = require_dist_cjs32();
75813
- var fs12 = require("fs");
76348
+ var fs13 = require("fs");
75814
76349
  var fromEnvSigningName = /* @__PURE__ */ __name(({ logger: logger2, signingName } = {}) => async () => {
75815
76350
  logger2?.debug?.("@aws-sdk/token-providers - fromEnvSigningName");
75816
76351
  if (!signingName) {
@@ -75856,7 +76391,7 @@ var require_dist_cjs46 = __commonJS({
75856
76391
  throw new propertyProvider.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false);
75857
76392
  }
75858
76393
  }, "validateTokenKey");
75859
- var { writeFile } = fs12.promises;
76394
+ var { writeFile } = fs13.promises;
75860
76395
  var writeSSOTokenToFile = /* @__PURE__ */ __name((id, ssoToken) => {
75861
76396
  const tokenFilepath = sharedIniFileLoader.getSSOTokenFilepath(id);
75862
76397
  const tokenString = JSON.stringify(ssoToken, null, 2);
@@ -76258,7 +76793,7 @@ var require_runtimeConfig = __commonJS({
76258
76793
  var node_http_handler_1 = require_dist_cjs14();
76259
76794
  var smithy_client_1 = require_dist_cjs26();
76260
76795
  var util_body_length_node_1 = require_dist_cjs43();
76261
- var util_defaults_mode_node_1 = require_dist_cjs44();
76796
+ var util_defaults_mode_node_1 = require_dist_cjs45();
76262
76797
  var util_retry_1 = require_dist_cjs36();
76263
76798
  var runtimeConfig_shared_1 = require_runtimeConfig_shared();
76264
76799
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -76298,7 +76833,7 @@ var require_runtimeConfig = __commonJS({
76298
76833
  });
76299
76834
 
76300
76835
  // ../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js
76301
- var require_dist_cjs47 = __commonJS({
76836
+ var require_dist_cjs48 = __commonJS({
76302
76837
  "../../node_modules/@aws-sdk/client-sso/dist-cjs/index.js"(exports2) {
76303
76838
  "use strict";
76304
76839
  var middlewareHostHeader = require_dist_cjs3();
@@ -76314,7 +76849,7 @@ var require_dist_cjs47 = __commonJS({
76314
76849
  var smithyClient = require_dist_cjs26();
76315
76850
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider2();
76316
76851
  var runtimeConfig = require_runtimeConfig();
76317
- var regionConfigResolver = require_dist_cjs45();
76852
+ var regionConfigResolver = require_dist_cjs46();
76318
76853
  var protocolHttp = require_dist_cjs2();
76319
76854
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
76320
76855
  return Object.assign(options, {
@@ -76727,7 +77262,7 @@ var require_dist_cjs47 = __commonJS({
76727
77262
  var require_loadSso_CVy8iqsZ = __commonJS({
76728
77263
  "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/loadSso-CVy8iqsZ.js"(exports2) {
76729
77264
  "use strict";
76730
- var clientSso = require_dist_cjs47();
77265
+ var clientSso = require_dist_cjs48();
76731
77266
  Object.defineProperty(exports2, "GetRoleCredentialsCommand", {
76732
77267
  enumerable: true,
76733
77268
  get: /* @__PURE__ */ __name(function() {
@@ -76744,13 +77279,13 @@ var require_loadSso_CVy8iqsZ = __commonJS({
76744
77279
  });
76745
77280
 
76746
77281
  // ../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js
76747
- var require_dist_cjs48 = __commonJS({
77282
+ var require_dist_cjs49 = __commonJS({
76748
77283
  "../../node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js"(exports2) {
76749
77284
  "use strict";
76750
77285
  var propertyProvider = require_dist_cjs23();
76751
77286
  var sharedIniFileLoader = require_dist_cjs32();
76752
77287
  var client = (init_client(), __toCommonJS(client_exports));
76753
- var tokenProviders = require_dist_cjs46();
77288
+ var tokenProviders = require_dist_cjs47();
76754
77289
  var isSsoProfile = /* @__PURE__ */ __name((arg) => arg && (typeof arg.sso_start_url === "string" || typeof arg.sso_account_id === "string" || typeof arg.sso_session === "string" || typeof arg.sso_region === "string" || typeof arg.sso_role_name === "string"), "isSsoProfile");
76755
77290
  var SHOULD_FAIL_CREDENTIAL_CHAIN = false;
76756
77291
  var resolveSSOCredentials = /* @__PURE__ */ __name(async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, clientConfig, parentClientConfig, callerClientConfig, profile, filepath, configFilepath, ignoreCache, logger: logger2 }) => {
@@ -77119,7 +77654,7 @@ var init_runtimeConfig2 = __esm({
77119
77654
  import_node_http_handler2 = __toESM(require_dist_cjs14());
77120
77655
  import_smithy_client16 = __toESM(require_dist_cjs26());
77121
77656
  import_util_body_length_node2 = __toESM(require_dist_cjs43());
77122
- import_util_defaults_mode_node2 = __toESM(require_dist_cjs44());
77657
+ import_util_defaults_mode_node2 = __toESM(require_dist_cjs45());
77123
77658
  import_util_retry2 = __toESM(require_dist_cjs36());
77124
77659
  init_runtimeConfig_shared2();
77125
77660
  getRuntimeConfig4 = /* @__PURE__ */ __name((config) => {
@@ -77205,7 +77740,7 @@ var init_httpAuthExtensionConfiguration2 = __esm({
77205
77740
  var import_region_config_resolver2, import_protocol_http13, import_smithy_client17, resolveRuntimeExtensions2;
77206
77741
  var init_runtimeExtensions2 = __esm({
77207
77742
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/signin/runtimeExtensions.js"() {
77208
- import_region_config_resolver2 = __toESM(require_dist_cjs45());
77743
+ import_region_config_resolver2 = __toESM(require_dist_cjs46());
77209
77744
  import_protocol_http13 = __toESM(require_dist_cjs2());
77210
77745
  import_smithy_client17 = __toESM(require_dist_cjs26());
77211
77746
  init_httpAuthExtensionConfiguration2();
@@ -77588,7 +78123,7 @@ var init_signin = __esm({
77588
78123
  });
77589
78124
 
77590
78125
  // ../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js
77591
- var require_dist_cjs49 = __commonJS({
78126
+ var require_dist_cjs50 = __commonJS({
77592
78127
  "../../node_modules/@aws-sdk/credential-provider-login/dist-cjs/index.js"(exports2) {
77593
78128
  "use strict";
77594
78129
  var client = (init_client(), __toCommonJS(client_exports));
@@ -78086,7 +78621,7 @@ var init_runtimeConfig3 = __esm({
78086
78621
  import_node_http_handler3 = __toESM(require_dist_cjs14());
78087
78622
  import_smithy_client23 = __toESM(require_dist_cjs26());
78088
78623
  import_util_body_length_node3 = __toESM(require_dist_cjs43());
78089
- import_util_defaults_mode_node3 = __toESM(require_dist_cjs44());
78624
+ import_util_defaults_mode_node3 = __toESM(require_dist_cjs45());
78090
78625
  import_util_retry3 = __toESM(require_dist_cjs36());
78091
78626
  init_runtimeConfig_shared3();
78092
78627
  getRuntimeConfig6 = /* @__PURE__ */ __name((config) => {
@@ -78184,7 +78719,7 @@ var init_httpAuthExtensionConfiguration3 = __esm({
78184
78719
  var import_region_config_resolver3, import_protocol_http14, import_smithy_client24, resolveRuntimeExtensions3;
78185
78720
  var init_runtimeExtensions3 = __esm({
78186
78721
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/runtimeExtensions.js"() {
78187
- import_region_config_resolver3 = __toESM(require_dist_cjs45());
78722
+ import_region_config_resolver3 = __toESM(require_dist_cjs46());
78188
78723
  import_protocol_http14 = __toESM(require_dist_cjs2());
78189
78724
  import_smithy_client24 = __toESM(require_dist_cjs26());
78190
78725
  init_httpAuthExtensionConfiguration3();
@@ -78648,7 +79183,7 @@ var import_region_config_resolver4, getAccountIdFromAssumedRoleUser, resolveRegi
78648
79183
  var init_defaultStsRoleAssumers = __esm({
78649
79184
  "../../node_modules/@aws-sdk/nested-clients/dist-es/submodules/sts/defaultStsRoleAssumers.js"() {
78650
79185
  init_client();
78651
- import_region_config_resolver4 = __toESM(require_dist_cjs45());
79186
+ import_region_config_resolver4 = __toESM(require_dist_cjs46());
78652
79187
  init_AssumeRoleCommand();
78653
79188
  init_AssumeRoleWithWebIdentityCommand();
78654
79189
  getAccountIdFromAssumedRoleUser = /* @__PURE__ */ __name((assumedRoleUser) => {
@@ -78836,7 +79371,7 @@ var init_sts = __esm({
78836
79371
  });
78837
79372
 
78838
79373
  // ../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js
78839
- var require_dist_cjs50 = __commonJS({
79374
+ var require_dist_cjs51 = __commonJS({
78840
79375
  "../../node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js"(exports2) {
78841
79376
  "use strict";
78842
79377
  var sharedIniFileLoader = require_dist_cjs32();
@@ -79023,7 +79558,7 @@ var require_fromTokenFile = __commonJS({
79023
79558
  });
79024
79559
 
79025
79560
  // ../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js
79026
- var require_dist_cjs51 = __commonJS({
79561
+ var require_dist_cjs52 = __commonJS({
79027
79562
  "../../node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js"(exports2) {
79028
79563
  "use strict";
79029
79564
  var fromTokenFile = require_fromTokenFile();
@@ -79048,13 +79583,13 @@ var require_dist_cjs51 = __commonJS({
79048
79583
  });
79049
79584
 
79050
79585
  // ../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
79051
- var require_dist_cjs52 = __commonJS({
79586
+ var require_dist_cjs53 = __commonJS({
79052
79587
  "../../node_modules/@aws-sdk/credential-provider-node/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) {
79053
79588
  "use strict";
79054
79589
  var sharedIniFileLoader = require_dist_cjs32();
79055
79590
  var propertyProvider = require_dist_cjs23();
79056
79591
  var client = (init_client(), __toCommonJS(client_exports));
79057
- var credentialProviderLogin = require_dist_cjs49();
79592
+ var credentialProviderLogin = require_dist_cjs50();
79058
79593
  var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger2) => {
79059
79594
  const sourceProvidersMap = {
79060
79595
  EcsContainer: /* @__PURE__ */ __name(async (options) => {
@@ -79157,12 +79692,12 @@ var require_dist_cjs52 = __commonJS({
79157
79692
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
79158
79693
  }, "resolveLoginCredentials");
79159
79694
  var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
79160
- var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs50())).then(({ fromProcess }) => fromProcess({
79695
+ var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromProcess }) => fromProcess({
79161
79696
  ...options,
79162
79697
  profile
79163
79698
  })().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))), "resolveProcessCredentials");
79164
79699
  var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}, callerClientConfig) => {
79165
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
79700
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
79166
79701
  return fromSSO({
79167
79702
  profile,
79168
79703
  logger: options.logger,
@@ -79192,7 +79727,7 @@ var require_dist_cjs52 = __commonJS({
79192
79727
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
79193
79728
  }, "resolveStaticCredentials");
79194
79729
  var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
79195
- var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromTokenFile }) => fromTokenFile({
79730
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs52())).then(({ fromTokenFile }) => fromTokenFile({
79196
79731
  webIdentityTokenFile: profile.web_identity_token_file,
79197
79732
  roleArn: profile.role_arn,
79198
79733
  roleSessionName: profile.role_session_name,
@@ -79239,7 +79774,7 @@ var require_dist_cjs52 = __commonJS({
79239
79774
  });
79240
79775
 
79241
79776
  // ../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js
79242
- var require_dist_cjs53 = __commonJS({
79777
+ var require_dist_cjs54 = __commonJS({
79243
79778
  "../../node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js"(exports2) {
79244
79779
  "use strict";
79245
79780
  var credentialProviderEnv = require_dist_cjs38();
@@ -79348,22 +79883,22 @@ var require_dist_cjs53 = __commonJS({
79348
79883
  if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) {
79349
79884
  throw new propertyProvider.CredentialsProviderError("Skipping SSO provider in default chain (inputs do not include SSO fields).", { logger: init.logger });
79350
79885
  }
79351
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
79886
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
79352
79887
  return fromSSO(init)(awsIdentityProperties);
79353
79888
  },
79354
79889
  async (awsIdentityProperties) => {
79355
79890
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromIni");
79356
- const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
79891
+ const { fromIni } = await Promise.resolve().then(() => __toESM(require_dist_cjs53()));
79357
79892
  return fromIni(init)(awsIdentityProperties);
79358
79893
  },
79359
79894
  async (awsIdentityProperties) => {
79360
79895
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromProcess");
79361
- const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs50()));
79896
+ const { fromProcess } = await Promise.resolve().then(() => __toESM(require_dist_cjs51()));
79362
79897
  return fromProcess(init)(awsIdentityProperties);
79363
79898
  },
79364
79899
  async (awsIdentityProperties) => {
79365
79900
  init.logger?.debug("@aws-sdk/credential-provider-node - defaultProvider::fromTokenFile");
79366
- const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs51()));
79901
+ const { fromTokenFile } = await Promise.resolve().then(() => __toESM(require_dist_cjs52()));
79367
79902
  return fromTokenFile(init)(awsIdentityProperties);
79368
79903
  },
79369
79904
  async () => {
@@ -79514,7 +80049,7 @@ var require_runtimeConfig2 = __commonJS({
79514
80049
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
79515
80050
  var package_json_1 = tslib_1.__importDefault(require_package());
79516
80051
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
79517
- var credential_provider_node_1 = require_dist_cjs53();
80052
+ var credential_provider_node_1 = require_dist_cjs54();
79518
80053
  var util_user_agent_node_1 = require_dist_cjs41();
79519
80054
  var config_resolver_1 = require_dist_cjs30();
79520
80055
  var hash_node_1 = require_dist_cjs42();
@@ -79523,7 +80058,7 @@ var require_runtimeConfig2 = __commonJS({
79523
80058
  var node_http_handler_1 = require_dist_cjs14();
79524
80059
  var smithy_client_1 = require_dist_cjs26();
79525
80060
  var util_body_length_node_1 = require_dist_cjs43();
79526
- var util_defaults_mode_node_1 = require_dist_cjs44();
80061
+ var util_defaults_mode_node_1 = require_dist_cjs45();
79527
80062
  var util_retry_1 = require_dist_cjs36();
79528
80063
  var runtimeConfig_shared_1 = require_runtimeConfig_shared2();
79529
80064
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -79564,7 +80099,7 @@ var require_runtimeConfig2 = __commonJS({
79564
80099
  });
79565
80100
 
79566
80101
  // ../../node_modules/@smithy/util-waiter/dist-cjs/index.js
79567
- var require_dist_cjs54 = __commonJS({
80102
+ var require_dist_cjs55 = __commonJS({
79568
80103
  "../../node_modules/@smithy/util-waiter/dist-cjs/index.js"(exports2) {
79569
80104
  "use strict";
79570
80105
  var getCircularReplacer = /* @__PURE__ */ __name(() => {
@@ -79735,7 +80270,7 @@ var require_dist_cjs54 = __commonJS({
79735
80270
  });
79736
80271
 
79737
80272
  // ../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js
79738
- var require_dist_cjs55 = __commonJS({
80273
+ var require_dist_cjs56 = __commonJS({
79739
80274
  "../../node_modules/@aws-sdk/client-ecr/dist-cjs/index.js"(exports2) {
79740
80275
  "use strict";
79741
80276
  var middlewareHostHeader = require_dist_cjs3();
@@ -79751,9 +80286,9 @@ var require_dist_cjs55 = __commonJS({
79751
80286
  var smithyClient = require_dist_cjs26();
79752
80287
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider();
79753
80288
  var runtimeConfig = require_runtimeConfig2();
79754
- var regionConfigResolver = require_dist_cjs45();
80289
+ var regionConfigResolver = require_dist_cjs46();
79755
80290
  var protocolHttp = require_dist_cjs2();
79756
- var utilWaiter = require_dist_cjs54();
80291
+ var utilWaiter = require_dist_cjs55();
79757
80292
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
79758
80293
  return Object.assign(options, {
79759
80294
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
@@ -83651,7 +84186,7 @@ var require_dist_cjs55 = __commonJS({
83651
84186
  });
83652
84187
 
83653
84188
  // ../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js
83654
- var require_dist_cjs56 = __commonJS({
84189
+ var require_dist_cjs57 = __commonJS({
83655
84190
  "../../node_modules/@aws-sdk/middleware-expect-continue/dist-cjs/index.js"(exports2) {
83656
84191
  "use strict";
83657
84192
  var protocolHttp = require_dist_cjs2();
@@ -83698,7 +84233,7 @@ var require_dist_cjs56 = __commonJS({
83698
84233
  });
83699
84234
 
83700
84235
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js
83701
- var require_dist_cjs57 = __commonJS({
84236
+ var require_dist_cjs58 = __commonJS({
83702
84237
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/is-array-buffer/dist-cjs/index.js"(exports2, module2) {
83703
84238
  var __defProp2 = Object.defineProperty;
83704
84239
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83728,7 +84263,7 @@ var require_dist_cjs57 = __commonJS({
83728
84263
  });
83729
84264
 
83730
84265
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js
83731
- var require_dist_cjs58 = __commonJS({
84266
+ var require_dist_cjs59 = __commonJS({
83732
84267
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-buffer-from/dist-cjs/index.js"(exports2, module2) {
83733
84268
  var __defProp2 = Object.defineProperty;
83734
84269
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83754,7 +84289,7 @@ var require_dist_cjs58 = __commonJS({
83754
84289
  fromString: /* @__PURE__ */ __name(() => fromString, "fromString")
83755
84290
  });
83756
84291
  module2.exports = __toCommonJS2(src_exports);
83757
- var import_is_array_buffer = require_dist_cjs57();
84292
+ var import_is_array_buffer = require_dist_cjs58();
83758
84293
  var import_buffer = require("buffer");
83759
84294
  var fromArrayBuffer = /* @__PURE__ */ __name2((input, offset = 0, length = input.byteLength - offset) => {
83760
84295
  if (!(0, import_is_array_buffer.isArrayBuffer)(input)) {
@@ -83772,7 +84307,7 @@ var require_dist_cjs58 = __commonJS({
83772
84307
  });
83773
84308
 
83774
84309
  // ../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js
83775
- var require_dist_cjs59 = __commonJS({
84310
+ var require_dist_cjs60 = __commonJS({
83776
84311
  "../../node_modules/@aws-crypto/util/node_modules/@smithy/util-utf8/dist-cjs/index.js"(exports2, module2) {
83777
84312
  var __defProp2 = Object.defineProperty;
83778
84313
  var __getOwnPropDesc2 = Object.getOwnPropertyDescriptor;
@@ -83799,7 +84334,7 @@ var require_dist_cjs59 = __commonJS({
83799
84334
  toUtf8: /* @__PURE__ */ __name(() => toUtf810, "toUtf8")
83800
84335
  });
83801
84336
  module2.exports = __toCommonJS2(src_exports);
83802
- var import_util_buffer_from = require_dist_cjs58();
84337
+ var import_util_buffer_from = require_dist_cjs59();
83803
84338
  var fromUtf87 = /* @__PURE__ */ __name2((input) => {
83804
84339
  const buf = (0, import_util_buffer_from.fromString)(input, "utf8");
83805
84340
  return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT);
@@ -83831,7 +84366,7 @@ var require_convertToBuffer = __commonJS({
83831
84366
  "use strict";
83832
84367
  Object.defineProperty(exports2, "__esModule", { value: true });
83833
84368
  exports2.convertToBuffer = void 0;
83834
- var util_utf8_1 = require_dist_cjs59();
84369
+ var util_utf8_1 = require_dist_cjs60();
83835
84370
  var fromUtf87 = typeof Buffer !== "undefined" && Buffer.from ? function(input) {
83836
84371
  return Buffer.from(input, "utf8");
83837
84372
  } : util_utf8_1.fromUtf8;
@@ -84669,7 +85204,7 @@ var require_getCrc32ChecksumAlgorithmFunction = __commonJS({
84669
85204
  });
84670
85205
 
84671
85206
  // ../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js
84672
- var require_dist_cjs60 = __commonJS({
85207
+ var require_dist_cjs61 = __commonJS({
84673
85208
  "../../node_modules/@aws-sdk/middleware-flexible-checksums/dist-cjs/index.js"(exports2) {
84674
85209
  "use strict";
84675
85210
  var core = (init_dist_es2(), __toCommonJS(dist_es_exports2));
@@ -85065,7 +85600,7 @@ For more information please go to https://github.com/aws/aws-sdk-js-v3#functiona
85065
85600
  });
85066
85601
 
85067
85602
  // ../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js
85068
- var require_dist_cjs61 = __commonJS({
85603
+ var require_dist_cjs62 = __commonJS({
85069
85604
  "../../node_modules/@aws-sdk/util-arn-parser/dist-cjs/index.js"(exports2) {
85070
85605
  "use strict";
85071
85606
  var validate = /* @__PURE__ */ __name((str) => typeof str === "string" && str.indexOf("arn:") === 0 && str.split(":").length >= 6, "validate");
@@ -85096,13 +85631,13 @@ var require_dist_cjs61 = __commonJS({
85096
85631
  });
85097
85632
 
85098
85633
  // ../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js
85099
- var require_dist_cjs62 = __commonJS({
85634
+ var require_dist_cjs63 = __commonJS({
85100
85635
  "../../node_modules/@aws-sdk/middleware-sdk-s3/dist-cjs/index.js"(exports2) {
85101
85636
  "use strict";
85102
85637
  var protocolHttp = require_dist_cjs2();
85103
85638
  var smithyClient = require_dist_cjs26();
85104
85639
  var utilStream = require_dist_cjs17();
85105
- var utilArnParser = require_dist_cjs61();
85640
+ var utilArnParser = require_dist_cjs62();
85106
85641
  var signatureV4 = require_dist_cjs24();
85107
85642
  var utilConfigProvider = require_dist_cjs29();
85108
85643
  var core = (init_dist_es2(), __toCommonJS(dist_es_exports2));
@@ -85662,7 +86197,7 @@ var require_dist_cjs62 = __commonJS({
85662
86197
  });
85663
86198
 
85664
86199
  // ../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js
85665
- var require_dist_cjs63 = __commonJS({
86200
+ var require_dist_cjs64 = __commonJS({
85666
86201
  "../../node_modules/@smithy/eventstream-serde-config-resolver/dist-cjs/index.js"(exports2) {
85667
86202
  "use strict";
85668
86203
  var resolveEventStreamSerdeConfig = /* @__PURE__ */ __name((input) => Object.assign(input, {
@@ -85673,10 +86208,10 @@ var require_dist_cjs63 = __commonJS({
85673
86208
  });
85674
86209
 
85675
86210
  // ../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js
85676
- var require_dist_cjs64 = __commonJS({
86211
+ var require_dist_cjs65 = __commonJS({
85677
86212
  "../../node_modules/@aws-sdk/signature-v4-multi-region/dist-cjs/index.js"(exports2) {
85678
86213
  "use strict";
85679
- var middlewareSdkS3 = require_dist_cjs62();
86214
+ var middlewareSdkS3 = require_dist_cjs63();
85680
86215
  var signatureV4 = require_dist_cjs24();
85681
86216
  var signatureV4CrtContainer = {
85682
86217
  CrtSignerV4: null
@@ -86021,7 +86556,7 @@ var require_httpAuthSchemeProvider3 = __commonJS({
86021
86556
  Object.defineProperty(exports2, "__esModule", { value: true });
86022
86557
  exports2.resolveHttpAuthSchemeConfig = exports2.defaultS3HttpAuthSchemeProvider = exports2.defaultS3HttpAuthSchemeParametersProvider = void 0;
86023
86558
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
86024
- var signature_v4_multi_region_1 = require_dist_cjs64();
86559
+ var signature_v4_multi_region_1 = require_dist_cjs65();
86025
86560
  var middleware_endpoint_1 = require_dist_cjs34();
86026
86561
  var util_middleware_1 = require_dist_cjs6();
86027
86562
  var endpointResolver_1 = require_endpointResolver3();
@@ -86277,11 +86812,11 @@ var require_package3 = __commonJS({
86277
86812
  });
86278
86813
 
86279
86814
  // ../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js
86280
- var require_dist_cjs65 = __commonJS({
86815
+ var require_dist_cjs66 = __commonJS({
86281
86816
  "../../node_modules/@aws-sdk/middleware-bucket-endpoint/dist-cjs/index.js"(exports2) {
86282
86817
  "use strict";
86283
86818
  var utilConfigProvider = require_dist_cjs29();
86284
- var utilArnParser = require_dist_cjs61();
86819
+ var utilArnParser = require_dist_cjs62();
86285
86820
  var protocolHttp = require_dist_cjs2();
86286
86821
  var NODE_DISABLE_MULTIREGION_ACCESS_POINT_ENV_NAME = "AWS_S3_DISABLE_MULTIREGION_ACCESS_POINTS";
86287
86822
  var NODE_DISABLE_MULTIREGION_ACCESS_POINT_INI_NAME = "s3_disable_multiregion_access_points";
@@ -86610,7 +87145,7 @@ var require_dist_cjs65 = __commonJS({
86610
87145
  });
86611
87146
 
86612
87147
  // ../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js
86613
- var require_dist_cjs66 = __commonJS({
87148
+ var require_dist_cjs67 = __commonJS({
86614
87149
  "../../node_modules/@smithy/eventstream-codec/dist-cjs/index.js"(exports2) {
86615
87150
  "use strict";
86616
87151
  var crc32 = require_main3();
@@ -87017,10 +87552,10 @@ var require_dist_cjs66 = __commonJS({
87017
87552
  });
87018
87553
 
87019
87554
  // ../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js
87020
- var require_dist_cjs67 = __commonJS({
87555
+ var require_dist_cjs68 = __commonJS({
87021
87556
  "../../node_modules/@smithy/eventstream-serde-universal/dist-cjs/index.js"(exports2) {
87022
87557
  "use strict";
87023
- var eventstreamCodec = require_dist_cjs66();
87558
+ var eventstreamCodec = require_dist_cjs67();
87024
87559
  function getChunkedStream(source) {
87025
87560
  let currentMessageTotalLength = 0;
87026
87561
  let currentMessagePendingLength = 0;
@@ -87149,10 +87684,10 @@ var require_dist_cjs67 = __commonJS({
87149
87684
  });
87150
87685
 
87151
87686
  // ../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js
87152
- var require_dist_cjs68 = __commonJS({
87687
+ var require_dist_cjs69 = __commonJS({
87153
87688
  "../../node_modules/@smithy/eventstream-serde-node/dist-cjs/index.js"(exports2) {
87154
87689
  "use strict";
87155
- var eventstreamSerdeUniversal = require_dist_cjs67();
87690
+ var eventstreamSerdeUniversal = require_dist_cjs68();
87156
87691
  var stream2 = require("stream");
87157
87692
  async function* readabletoIterable(readStream) {
87158
87693
  let streamEnded = false;
@@ -87207,10 +87742,10 @@ var require_dist_cjs68 = __commonJS({
87207
87742
  });
87208
87743
 
87209
87744
  // ../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js
87210
- var require_dist_cjs69 = __commonJS({
87745
+ var require_dist_cjs70 = __commonJS({
87211
87746
  "../../node_modules/@smithy/hash-stream-node/dist-cjs/index.js"(exports2) {
87212
87747
  "use strict";
87213
- var fs12 = require("fs");
87748
+ var fs13 = require("fs");
87214
87749
  var utilUtf8 = require_dist_cjs10();
87215
87750
  var stream2 = require("stream");
87216
87751
  var HashCalculator = class extends stream2.Writable {
@@ -87236,7 +87771,7 @@ var require_dist_cjs69 = __commonJS({
87236
87771
  reject(new Error("Unable to calculate hash for non-file streams."));
87237
87772
  return;
87238
87773
  }
87239
- const fileStreamTee = fs12.createReadStream(fileStream.path, {
87774
+ const fileStreamTee = fs13.createReadStream(fileStream.path, {
87240
87775
  start: fileStream.start,
87241
87776
  end: fileStream.end
87242
87777
  });
@@ -87284,7 +87819,7 @@ var require_runtimeConfig_shared3 = __commonJS({
87284
87819
  exports2.getRuntimeConfig = void 0;
87285
87820
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
87286
87821
  var protocols_1 = (init_protocols2(), __toCommonJS(protocols_exports2));
87287
- var signature_v4_multi_region_1 = require_dist_cjs64();
87822
+ var signature_v4_multi_region_1 = require_dist_cjs65();
87288
87823
  var smithy_client_1 = require_dist_cjs26();
87289
87824
  var url_parser_1 = require_dist_cjs21();
87290
87825
  var util_base64_1 = require_dist_cjs11();
@@ -87345,21 +87880,21 @@ var require_runtimeConfig3 = __commonJS({
87345
87880
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
87346
87881
  var package_json_1 = tslib_1.__importDefault(require_package3());
87347
87882
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
87348
- var credential_provider_node_1 = require_dist_cjs53();
87349
- var middleware_bucket_endpoint_1 = require_dist_cjs65();
87350
- var middleware_flexible_checksums_1 = require_dist_cjs60();
87351
- var middleware_sdk_s3_1 = require_dist_cjs62();
87883
+ var credential_provider_node_1 = require_dist_cjs54();
87884
+ var middleware_bucket_endpoint_1 = require_dist_cjs66();
87885
+ var middleware_flexible_checksums_1 = require_dist_cjs61();
87886
+ var middleware_sdk_s3_1 = require_dist_cjs63();
87352
87887
  var util_user_agent_node_1 = require_dist_cjs41();
87353
87888
  var config_resolver_1 = require_dist_cjs30();
87354
- var eventstream_serde_node_1 = require_dist_cjs68();
87889
+ var eventstream_serde_node_1 = require_dist_cjs69();
87355
87890
  var hash_node_1 = require_dist_cjs42();
87356
- var hash_stream_node_1 = require_dist_cjs69();
87891
+ var hash_stream_node_1 = require_dist_cjs70();
87357
87892
  var middleware_retry_1 = require_dist_cjs37();
87358
87893
  var node_config_provider_1 = require_dist_cjs33();
87359
87894
  var node_http_handler_1 = require_dist_cjs14();
87360
87895
  var smithy_client_1 = require_dist_cjs26();
87361
87896
  var util_body_length_node_1 = require_dist_cjs43();
87362
- var util_defaults_mode_node_1 = require_dist_cjs44();
87897
+ var util_defaults_mode_node_1 = require_dist_cjs45();
87363
87898
  var util_retry_1 = require_dist_cjs36();
87364
87899
  var runtimeConfig_shared_1 = require_runtimeConfig_shared3();
87365
87900
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -87409,7 +87944,7 @@ var require_runtimeConfig3 = __commonJS({
87409
87944
  });
87410
87945
 
87411
87946
  // ../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js
87412
- var require_dist_cjs70 = __commonJS({
87947
+ var require_dist_cjs71 = __commonJS({
87413
87948
  "../../node_modules/@aws-sdk/middleware-ssec/dist-cjs/index.js"(exports2) {
87414
87949
  "use strict";
87415
87950
  function ssecMiddleware(options) {
@@ -87483,7 +88018,7 @@ var require_dist_cjs70 = __commonJS({
87483
88018
  });
87484
88019
 
87485
88020
  // ../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js
87486
- var require_dist_cjs71 = __commonJS({
88021
+ var require_dist_cjs72 = __commonJS({
87487
88022
  "../../node_modules/@aws-sdk/middleware-location-constraint/dist-cjs/index.js"(exports2) {
87488
88023
  "use strict";
87489
88024
  function locationConstraintMiddleware(options) {
@@ -87518,31 +88053,31 @@ var require_dist_cjs71 = __commonJS({
87518
88053
  });
87519
88054
 
87520
88055
  // ../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js
87521
- var require_dist_cjs72 = __commonJS({
88056
+ var require_dist_cjs73 = __commonJS({
87522
88057
  "../../node_modules/@aws-sdk/client-s3/dist-cjs/index.js"(exports2) {
87523
88058
  "use strict";
87524
- var middlewareExpectContinue = require_dist_cjs56();
87525
- var middlewareFlexibleChecksums = require_dist_cjs60();
88059
+ var middlewareExpectContinue = require_dist_cjs57();
88060
+ var middlewareFlexibleChecksums = require_dist_cjs61();
87526
88061
  var middlewareHostHeader = require_dist_cjs3();
87527
88062
  var middlewareLogger = require_dist_cjs4();
87528
88063
  var middlewareRecursionDetection = require_dist_cjs5();
87529
- var middlewareSdkS3 = require_dist_cjs62();
88064
+ var middlewareSdkS3 = require_dist_cjs63();
87530
88065
  var middlewareUserAgent = require_dist_cjs28();
87531
88066
  var configResolver = require_dist_cjs30();
87532
88067
  var core = (init_dist_es(), __toCommonJS(dist_es_exports));
87533
88068
  var schema = (init_schema4(), __toCommonJS(schema_exports));
87534
- var eventstreamSerdeConfigResolver = require_dist_cjs63();
88069
+ var eventstreamSerdeConfigResolver = require_dist_cjs64();
87535
88070
  var middlewareContentLength = require_dist_cjs31();
87536
88071
  var middlewareEndpoint = require_dist_cjs34();
87537
88072
  var middlewareRetry = require_dist_cjs37();
87538
88073
  var smithyClient = require_dist_cjs26();
87539
88074
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider3();
87540
88075
  var runtimeConfig = require_runtimeConfig3();
87541
- var regionConfigResolver = require_dist_cjs45();
88076
+ var regionConfigResolver = require_dist_cjs46();
87542
88077
  var protocolHttp = require_dist_cjs2();
87543
- var middlewareSsec = require_dist_cjs70();
87544
- var middlewareLocationConstraint = require_dist_cjs71();
87545
- var utilWaiter = require_dist_cjs54();
88078
+ var middlewareSsec = require_dist_cjs71();
88079
+ var middlewareLocationConstraint = require_dist_cjs72();
88080
+ var utilWaiter = require_dist_cjs55();
87546
88081
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
87547
88082
  return Object.assign(options, {
87548
88083
  useFipsEndpoint: options.useFipsEndpoint ?? false,
@@ -96224,7 +96759,7 @@ var require_runtimeConfig4 = __commonJS({
96224
96759
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
96225
96760
  var package_json_1 = tslib_1.__importDefault(require_package4());
96226
96761
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
96227
- var credential_provider_node_1 = require_dist_cjs53();
96762
+ var credential_provider_node_1 = require_dist_cjs54();
96228
96763
  var util_user_agent_node_1 = require_dist_cjs41();
96229
96764
  var config_resolver_1 = require_dist_cjs30();
96230
96765
  var hash_node_1 = require_dist_cjs42();
@@ -96233,7 +96768,7 @@ var require_runtimeConfig4 = __commonJS({
96233
96768
  var node_http_handler_1 = require_dist_cjs14();
96234
96769
  var smithy_client_1 = require_dist_cjs26();
96235
96770
  var util_body_length_node_1 = require_dist_cjs43();
96236
- var util_defaults_mode_node_1 = require_dist_cjs44();
96771
+ var util_defaults_mode_node_1 = require_dist_cjs45();
96237
96772
  var util_retry_1 = require_dist_cjs36();
96238
96773
  var runtimeConfig_shared_1 = require_runtimeConfig_shared4();
96239
96774
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -96274,7 +96809,7 @@ var require_runtimeConfig4 = __commonJS({
96274
96809
  });
96275
96810
 
96276
96811
  // ../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js
96277
- var require_dist_cjs73 = __commonJS({
96812
+ var require_dist_cjs74 = __commonJS({
96278
96813
  "../../node_modules/@aws-sdk/client-secrets-manager/dist-cjs/index.js"(exports2) {
96279
96814
  "use strict";
96280
96815
  var middlewareHostHeader = require_dist_cjs3();
@@ -96290,7 +96825,7 @@ var require_dist_cjs73 = __commonJS({
96290
96825
  var smithyClient = require_dist_cjs26();
96291
96826
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider4();
96292
96827
  var runtimeConfig = require_runtimeConfig4();
96293
- var regionConfigResolver = require_dist_cjs45();
96828
+ var regionConfigResolver = require_dist_cjs46();
96294
96829
  var protocolHttp = require_dist_cjs2();
96295
96830
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
96296
96831
  return Object.assign(options, {
@@ -97991,7 +98526,7 @@ var require_runtimeConfig5 = __commonJS({
97991
98526
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
97992
98527
  var package_json_1 = tslib_1.__importDefault(require_package5());
97993
98528
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
97994
- var credential_provider_node_1 = require_dist_cjs53();
98529
+ var credential_provider_node_1 = require_dist_cjs54();
97995
98530
  var util_user_agent_node_1 = require_dist_cjs41();
97996
98531
  var config_resolver_1 = require_dist_cjs30();
97997
98532
  var core_2 = (init_dist_es(), __toCommonJS(dist_es_exports));
@@ -98001,7 +98536,7 @@ var require_runtimeConfig5 = __commonJS({
98001
98536
  var node_http_handler_1 = require_dist_cjs14();
98002
98537
  var smithy_client_1 = require_dist_cjs26();
98003
98538
  var util_body_length_node_1 = require_dist_cjs43();
98004
- var util_defaults_mode_node_1 = require_dist_cjs44();
98539
+ var util_defaults_mode_node_1 = require_dist_cjs45();
98005
98540
  var util_retry_1 = require_dist_cjs36();
98006
98541
  var runtimeConfig_shared_1 = require_runtimeConfig_shared5();
98007
98542
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -98107,7 +98642,7 @@ var require_runtimeExtensions = __commonJS({
98107
98642
  "use strict";
98108
98643
  Object.defineProperty(exports2, "__esModule", { value: true });
98109
98644
  exports2.resolveRuntimeExtensions = void 0;
98110
- var region_config_resolver_1 = require_dist_cjs45();
98645
+ var region_config_resolver_1 = require_dist_cjs46();
98111
98646
  var protocol_http_1 = require_dist_cjs2();
98112
98647
  var smithy_client_1 = require_dist_cjs26();
98113
98648
  var httpAuthExtensionConfiguration_1 = require_httpAuthExtensionConfiguration();
@@ -98186,7 +98721,7 @@ var require_STSClient = __commonJS({
98186
98721
  });
98187
98722
 
98188
98723
  // ../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js
98189
- var require_dist_cjs74 = __commonJS({
98724
+ var require_dist_cjs75 = __commonJS({
98190
98725
  "../../node_modules/@aws-sdk/client-sts/dist-cjs/index.js"(exports2) {
98191
98726
  "use strict";
98192
98727
  var STSClient3 = require_STSClient();
@@ -98195,7 +98730,7 @@ var require_dist_cjs74 = __commonJS({
98195
98730
  var EndpointParameters = require_EndpointParameters();
98196
98731
  var schema = (init_schema4(), __toCommonJS(schema_exports));
98197
98732
  var client = (init_client(), __toCommonJS(client_exports));
98198
- var regionConfigResolver = require_dist_cjs45();
98733
+ var regionConfigResolver = require_dist_cjs46();
98199
98734
  var STSServiceException2 = class _STSServiceException extends smithyClient.ServiceException {
98200
98735
  static {
98201
98736
  __name(this, "STSServiceException");
@@ -99488,7 +100023,7 @@ var require_runtimeConfig6 = __commonJS({
99488
100023
  var tslib_1 = (init_tslib_es6(), __toCommonJS(tslib_es6_exports));
99489
100024
  var package_json_1 = tslib_1.__importDefault(require_package6());
99490
100025
  var core_1 = (init_dist_es2(), __toCommonJS(dist_es_exports2));
99491
- var credential_provider_node_1 = require_dist_cjs53();
100026
+ var credential_provider_node_1 = require_dist_cjs54();
99492
100027
  var util_user_agent_node_1 = require_dist_cjs41();
99493
100028
  var config_resolver_1 = require_dist_cjs30();
99494
100029
  var hash_node_1 = require_dist_cjs42();
@@ -99497,7 +100032,7 @@ var require_runtimeConfig6 = __commonJS({
99497
100032
  var node_http_handler_1 = require_dist_cjs14();
99498
100033
  var smithy_client_1 = require_dist_cjs26();
99499
100034
  var util_body_length_node_1 = require_dist_cjs43();
99500
- var util_defaults_mode_node_1 = require_dist_cjs44();
100035
+ var util_defaults_mode_node_1 = require_dist_cjs45();
99501
100036
  var util_retry_1 = require_dist_cjs36();
99502
100037
  var runtimeConfig_shared_1 = require_runtimeConfig_shared6();
99503
100038
  var getRuntimeConfig7 = /* @__PURE__ */ __name((config) => {
@@ -99538,7 +100073,7 @@ var require_runtimeConfig6 = __commonJS({
99538
100073
  });
99539
100074
 
99540
100075
  // ../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js
99541
- var require_dist_cjs75 = __commonJS({
100076
+ var require_dist_cjs76 = __commonJS({
99542
100077
  "../../node_modules/@aws-sdk/client-cognito-identity/dist-cjs/index.js"(exports2) {
99543
100078
  "use strict";
99544
100079
  var middlewareHostHeader = require_dist_cjs3();
@@ -99554,7 +100089,7 @@ var require_dist_cjs75 = __commonJS({
99554
100089
  var smithyClient = require_dist_cjs26();
99555
100090
  var httpAuthSchemeProvider = require_httpAuthSchemeProvider6();
99556
100091
  var runtimeConfig = require_runtimeConfig6();
99557
- var regionConfigResolver = require_dist_cjs45();
100092
+ var regionConfigResolver = require_dist_cjs46();
99558
100093
  var protocolHttp = require_dist_cjs2();
99559
100094
  var resolveClientEndpointParameters4 = /* @__PURE__ */ __name((options) => {
99560
100095
  return Object.assign(options, {
@@ -100724,7 +101259,7 @@ var require_dist_cjs75 = __commonJS({
100724
101259
  var require_loadCognitoIdentity_BPNvueUJ = __commonJS({
100725
101260
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/loadCognitoIdentity-BPNvueUJ.js"(exports2) {
100726
101261
  "use strict";
100727
- var clientCognitoIdentity = require_dist_cjs75();
101262
+ var clientCognitoIdentity = require_dist_cjs76();
100728
101263
  Object.defineProperty(exports2, "CognitoIdentityClient", {
100729
101264
  enumerable: true,
100730
101265
  get: /* @__PURE__ */ __name(function() {
@@ -100747,7 +101282,7 @@ var require_loadCognitoIdentity_BPNvueUJ = __commonJS({
100747
101282
  });
100748
101283
 
100749
101284
  // ../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js
100750
- var require_dist_cjs76 = __commonJS({
101285
+ var require_dist_cjs77 = __commonJS({
100751
101286
  "../../node_modules/@aws-sdk/credential-provider-cognito-identity/dist-cjs/index.js"(exports2) {
100752
101287
  "use strict";
100753
101288
  var propertyProvider = require_dist_cjs23();
@@ -100965,7 +101500,7 @@ var require_fromCognitoIdentity = __commonJS({
100965
101500
  "use strict";
100966
101501
  Object.defineProperty(exports2, "__esModule", { value: true });
100967
101502
  exports2.fromCognitoIdentity = void 0;
100968
- var credential_provider_cognito_identity_1 = require_dist_cjs76();
101503
+ var credential_provider_cognito_identity_1 = require_dist_cjs77();
100969
101504
  var fromCognitoIdentity = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentity)({
100970
101505
  ...options
100971
101506
  }), "fromCognitoIdentity");
@@ -100979,7 +101514,7 @@ var require_fromCognitoIdentityPool = __commonJS({
100979
101514
  "use strict";
100980
101515
  Object.defineProperty(exports2, "__esModule", { value: true });
100981
101516
  exports2.fromCognitoIdentityPool = void 0;
100982
- var credential_provider_cognito_identity_1 = require_dist_cjs76();
101517
+ var credential_provider_cognito_identity_1 = require_dist_cjs77();
100983
101518
  var fromCognitoIdentityPool = /* @__PURE__ */ __name((options) => (0, credential_provider_cognito_identity_1.fromCognitoIdentityPool)({
100984
101519
  ...options
100985
101520
  }), "fromCognitoIdentityPool");
@@ -100987,13 +101522,363 @@ var require_fromCognitoIdentityPool = __commonJS({
100987
101522
  }
100988
101523
  });
100989
101524
 
101525
+ // ../../node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js
101526
+ var require_dist_cjs78 = __commonJS({
101527
+ "../../node_modules/@aws-sdk/credential-providers/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js"(exports2) {
101528
+ "use strict";
101529
+ var propertyProvider = require_dist_cjs23();
101530
+ var url = require("url");
101531
+ var buffer = require("buffer");
101532
+ var http = require("http");
101533
+ var nodeConfigProvider = require_dist_cjs33();
101534
+ var urlParser = require_dist_cjs21();
101535
+ function httpRequest(options) {
101536
+ return new Promise((resolve6, reject) => {
101537
+ const req = http.request({
101538
+ method: "GET",
101539
+ ...options,
101540
+ hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1")
101541
+ });
101542
+ req.on("error", (err) => {
101543
+ reject(Object.assign(new propertyProvider.ProviderError("Unable to connect to instance metadata service"), err));
101544
+ req.destroy();
101545
+ });
101546
+ req.on("timeout", () => {
101547
+ reject(new propertyProvider.ProviderError("TimeoutError from instance metadata service"));
101548
+ req.destroy();
101549
+ });
101550
+ req.on("response", (res) => {
101551
+ const { statusCode = 400 } = res;
101552
+ if (statusCode < 200 || 300 <= statusCode) {
101553
+ reject(Object.assign(new propertyProvider.ProviderError("Error response received from instance metadata service"), { statusCode }));
101554
+ req.destroy();
101555
+ }
101556
+ const chunks = [];
101557
+ res.on("data", (chunk) => {
101558
+ chunks.push(chunk);
101559
+ });
101560
+ res.on("end", () => {
101561
+ resolve6(buffer.Buffer.concat(chunks));
101562
+ req.destroy();
101563
+ });
101564
+ });
101565
+ req.end();
101566
+ });
101567
+ }
101568
+ __name(httpRequest, "httpRequest");
101569
+ var isImdsCredentials = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.AccessKeyId === "string" && typeof arg.SecretAccessKey === "string" && typeof arg.Token === "string" && typeof arg.Expiration === "string", "isImdsCredentials");
101570
+ var fromImdsCredentials = /* @__PURE__ */ __name((creds) => ({
101571
+ accessKeyId: creds.AccessKeyId,
101572
+ secretAccessKey: creds.SecretAccessKey,
101573
+ sessionToken: creds.Token,
101574
+ expiration: new Date(creds.Expiration),
101575
+ ...creds.AccountId && { accountId: creds.AccountId }
101576
+ }), "fromImdsCredentials");
101577
+ var DEFAULT_TIMEOUT = 1e3;
101578
+ var DEFAULT_MAX_RETRIES = 0;
101579
+ var providerConfigFromInit = /* @__PURE__ */ __name(({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT }) => ({ maxRetries, timeout }), "providerConfigFromInit");
101580
+ var retry = /* @__PURE__ */ __name((toRetry, maxRetries) => {
101581
+ let promise = toRetry();
101582
+ for (let i4 = 0; i4 < maxRetries; i4++) {
101583
+ promise = promise.catch(toRetry);
101584
+ }
101585
+ return promise;
101586
+ }, "retry");
101587
+ var ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI";
101588
+ var ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI";
101589
+ var ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN";
101590
+ var fromContainerMetadata = /* @__PURE__ */ __name((init = {}) => {
101591
+ const { timeout, maxRetries } = providerConfigFromInit(init);
101592
+ return () => retry(async () => {
101593
+ const requestOptions = await getCmdsUri({ logger: init.logger });
101594
+ const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions));
101595
+ if (!isImdsCredentials(credsResponse)) {
101596
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
101597
+ logger: init.logger
101598
+ });
101599
+ }
101600
+ return fromImdsCredentials(credsResponse);
101601
+ }, maxRetries);
101602
+ }, "fromContainerMetadata");
101603
+ var requestFromEcsImds = /* @__PURE__ */ __name(async (timeout, options) => {
101604
+ if (process.env[ENV_CMDS_AUTH_TOKEN]) {
101605
+ options.headers = {
101606
+ ...options.headers,
101607
+ Authorization: process.env[ENV_CMDS_AUTH_TOKEN]
101608
+ };
101609
+ }
101610
+ const buffer2 = await httpRequest({
101611
+ ...options,
101612
+ timeout
101613
+ });
101614
+ return buffer2.toString();
101615
+ }, "requestFromEcsImds");
101616
+ var CMDS_IP = "169.254.170.2";
101617
+ var GREENGRASS_HOSTS = {
101618
+ localhost: true,
101619
+ "127.0.0.1": true
101620
+ };
101621
+ var GREENGRASS_PROTOCOLS = {
101622
+ "http:": true,
101623
+ "https:": true
101624
+ };
101625
+ var getCmdsUri = /* @__PURE__ */ __name(async ({ logger: logger2 }) => {
101626
+ if (process.env[ENV_CMDS_RELATIVE_URI]) {
101627
+ return {
101628
+ hostname: CMDS_IP,
101629
+ path: process.env[ENV_CMDS_RELATIVE_URI]
101630
+ };
101631
+ }
101632
+ if (process.env[ENV_CMDS_FULL_URI]) {
101633
+ const parsed = url.parse(process.env[ENV_CMDS_FULL_URI]);
101634
+ if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) {
101635
+ throw new propertyProvider.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, {
101636
+ tryNextLink: false,
101637
+ logger: logger2
101638
+ });
101639
+ }
101640
+ if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) {
101641
+ throw new propertyProvider.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, {
101642
+ tryNextLink: false,
101643
+ logger: logger2
101644
+ });
101645
+ }
101646
+ return {
101647
+ ...parsed,
101648
+ port: parsed.port ? parseInt(parsed.port, 10) : void 0
101649
+ };
101650
+ }
101651
+ throw new propertyProvider.CredentialsProviderError(`The container metadata credential provider cannot be used unless the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment variable is set`, {
101652
+ tryNextLink: false,
101653
+ logger: logger2
101654
+ });
101655
+ }, "getCmdsUri");
101656
+ var InstanceMetadataV1FallbackError = class _InstanceMetadataV1FallbackError extends propertyProvider.CredentialsProviderError {
101657
+ static {
101658
+ __name(this, "InstanceMetadataV1FallbackError");
101659
+ }
101660
+ tryNextLink;
101661
+ name = "InstanceMetadataV1FallbackError";
101662
+ constructor(message, tryNextLink = true) {
101663
+ super(message, tryNextLink);
101664
+ this.tryNextLink = tryNextLink;
101665
+ Object.setPrototypeOf(this, _InstanceMetadataV1FallbackError.prototype);
101666
+ }
101667
+ };
101668
+ exports2.Endpoint = void 0;
101669
+ (function(Endpoint) {
101670
+ Endpoint["IPv4"] = "http://169.254.169.254";
101671
+ Endpoint["IPv6"] = "http://[fd00:ec2::254]";
101672
+ })(exports2.Endpoint || (exports2.Endpoint = {}));
101673
+ var ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT";
101674
+ var CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint";
101675
+ var ENDPOINT_CONFIG_OPTIONS = {
101676
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_NAME], "environmentVariableSelector"),
101677
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_NAME], "configFileSelector"),
101678
+ default: void 0
101679
+ };
101680
+ var EndpointMode;
101681
+ (function(EndpointMode2) {
101682
+ EndpointMode2["IPv4"] = "IPv4";
101683
+ EndpointMode2["IPv6"] = "IPv6";
101684
+ })(EndpointMode || (EndpointMode = {}));
101685
+ var ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE";
101686
+ var CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode";
101687
+ var ENDPOINT_MODE_CONFIG_OPTIONS = {
101688
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => env[ENV_ENDPOINT_MODE_NAME], "environmentVariableSelector"),
101689
+ configFileSelector: /* @__PURE__ */ __name((profile) => profile[CONFIG_ENDPOINT_MODE_NAME], "configFileSelector"),
101690
+ default: EndpointMode.IPv4
101691
+ };
101692
+ var getInstanceMetadataEndpoint = /* @__PURE__ */ __name(async () => urlParser.parseUrl(await getFromEndpointConfig() || await getFromEndpointModeConfig()), "getInstanceMetadataEndpoint");
101693
+ var getFromEndpointConfig = /* @__PURE__ */ __name(async () => nodeConfigProvider.loadConfig(ENDPOINT_CONFIG_OPTIONS)(), "getFromEndpointConfig");
101694
+ var getFromEndpointModeConfig = /* @__PURE__ */ __name(async () => {
101695
+ const endpointMode = await nodeConfigProvider.loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)();
101696
+ switch (endpointMode) {
101697
+ case EndpointMode.IPv4:
101698
+ return exports2.Endpoint.IPv4;
101699
+ case EndpointMode.IPv6:
101700
+ return exports2.Endpoint.IPv6;
101701
+ default:
101702
+ throw new Error(`Unsupported endpoint mode: ${endpointMode}. Select from ${Object.values(EndpointMode)}`);
101703
+ }
101704
+ }, "getFromEndpointModeConfig");
101705
+ var STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60;
101706
+ var STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60;
101707
+ var STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html";
101708
+ var getExtendedInstanceMetadataCredentials = /* @__PURE__ */ __name((credentials, logger2) => {
101709
+ const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS);
101710
+ const newExpiration = new Date(Date.now() + refreshInterval * 1e3);
101711
+ logger2.warn(`Attempting credential expiration extension due to a credential service availability issue. A refresh of these credentials will be attempted after ${new Date(newExpiration)}.
101712
+ For more information, please visit: ` + STATIC_STABILITY_DOC_URL);
101713
+ const originalExpiration = credentials.originalExpiration ?? credentials.expiration;
101714
+ return {
101715
+ ...credentials,
101716
+ ...originalExpiration ? { originalExpiration } : {},
101717
+ expiration: newExpiration
101718
+ };
101719
+ }, "getExtendedInstanceMetadataCredentials");
101720
+ var staticStabilityProvider = /* @__PURE__ */ __name((provider, options = {}) => {
101721
+ const logger2 = options?.logger || console;
101722
+ let pastCredentials;
101723
+ return async () => {
101724
+ let credentials;
101725
+ try {
101726
+ credentials = await provider();
101727
+ if (credentials.expiration && credentials.expiration.getTime() < Date.now()) {
101728
+ credentials = getExtendedInstanceMetadataCredentials(credentials, logger2);
101729
+ }
101730
+ } catch (e4) {
101731
+ if (pastCredentials) {
101732
+ logger2.warn("Credential renew failed: ", e4);
101733
+ credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger2);
101734
+ } else {
101735
+ throw e4;
101736
+ }
101737
+ }
101738
+ pastCredentials = credentials;
101739
+ return credentials;
101740
+ };
101741
+ }, "staticStabilityProvider");
101742
+ var IMDS_PATH = "/latest/meta-data/iam/security-credentials/";
101743
+ var IMDS_TOKEN_PATH = "/latest/api/token";
101744
+ var AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED";
101745
+ var PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled";
101746
+ var X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token";
101747
+ var fromInstanceMetadata = /* @__PURE__ */ __name((init = {}) => staticStabilityProvider(getInstanceMetadataProvider(init), { logger: init.logger }), "fromInstanceMetadata");
101748
+ var getInstanceMetadataProvider = /* @__PURE__ */ __name((init = {}) => {
101749
+ let disableFetchToken = false;
101750
+ const { logger: logger2, profile } = init;
101751
+ const { timeout, maxRetries } = providerConfigFromInit(init);
101752
+ const getCredentials = /* @__PURE__ */ __name(async (maxRetries2, options) => {
101753
+ const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null;
101754
+ if (isImdsV1Fallback) {
101755
+ let fallbackBlockedFromProfile = false;
101756
+ let fallbackBlockedFromProcessEnv = false;
101757
+ const configValue = await nodeConfigProvider.loadConfig({
101758
+ environmentVariableSelector: /* @__PURE__ */ __name((env) => {
101759
+ const envValue = env[AWS_EC2_METADATA_V1_DISABLED];
101760
+ fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false";
101761
+ if (envValue === void 0) {
101762
+ throw new propertyProvider.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`, { logger: init.logger });
101763
+ }
101764
+ return fallbackBlockedFromProcessEnv;
101765
+ }, "environmentVariableSelector"),
101766
+ configFileSelector: /* @__PURE__ */ __name((profile2) => {
101767
+ const profileValue = profile2[PROFILE_AWS_EC2_METADATA_V1_DISABLED];
101768
+ fallbackBlockedFromProfile = !!profileValue && profileValue !== "false";
101769
+ return fallbackBlockedFromProfile;
101770
+ }, "configFileSelector"),
101771
+ default: false
101772
+ }, {
101773
+ profile
101774
+ })();
101775
+ if (init.ec2MetadataV1Disabled || configValue) {
101776
+ const causes = [];
101777
+ if (init.ec2MetadataV1Disabled)
101778
+ causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)");
101779
+ if (fallbackBlockedFromProfile)
101780
+ causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`);
101781
+ if (fallbackBlockedFromProcessEnv)
101782
+ causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`);
101783
+ throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`);
101784
+ }
101785
+ }
101786
+ const imdsProfile = (await retry(async () => {
101787
+ let profile2;
101788
+ try {
101789
+ profile2 = await getProfile(options);
101790
+ } catch (err) {
101791
+ if (err.statusCode === 401) {
101792
+ disableFetchToken = false;
101793
+ }
101794
+ throw err;
101795
+ }
101796
+ return profile2;
101797
+ }, maxRetries2)).trim();
101798
+ return retry(async () => {
101799
+ let creds;
101800
+ try {
101801
+ creds = await getCredentialsFromProfile(imdsProfile, options, init);
101802
+ } catch (err) {
101803
+ if (err.statusCode === 401) {
101804
+ disableFetchToken = false;
101805
+ }
101806
+ throw err;
101807
+ }
101808
+ return creds;
101809
+ }, maxRetries2);
101810
+ }, "getCredentials");
101811
+ return async () => {
101812
+ const endpoint = await getInstanceMetadataEndpoint();
101813
+ if (disableFetchToken) {
101814
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)");
101815
+ return getCredentials(maxRetries, { ...endpoint, timeout });
101816
+ } else {
101817
+ let token;
101818
+ try {
101819
+ token = (await getMetadataToken({ ...endpoint, timeout })).toString();
101820
+ } catch (error2) {
101821
+ if (error2?.statusCode === 400) {
101822
+ throw Object.assign(error2, {
101823
+ message: "EC2 Metadata token request returned error"
101824
+ });
101825
+ } else if (error2.message === "TimeoutError" || [403, 404, 405].includes(error2.statusCode)) {
101826
+ disableFetchToken = true;
101827
+ }
101828
+ logger2?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)");
101829
+ return getCredentials(maxRetries, { ...endpoint, timeout });
101830
+ }
101831
+ return getCredentials(maxRetries, {
101832
+ ...endpoint,
101833
+ headers: {
101834
+ [X_AWS_EC2_METADATA_TOKEN]: token
101835
+ },
101836
+ timeout
101837
+ });
101838
+ }
101839
+ };
101840
+ }, "getInstanceMetadataProvider");
101841
+ var getMetadataToken = /* @__PURE__ */ __name(async (options) => httpRequest({
101842
+ ...options,
101843
+ path: IMDS_TOKEN_PATH,
101844
+ method: "PUT",
101845
+ headers: {
101846
+ "x-aws-ec2-metadata-token-ttl-seconds": "21600"
101847
+ }
101848
+ }), "getMetadataToken");
101849
+ var getProfile = /* @__PURE__ */ __name(async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(), "getProfile");
101850
+ var getCredentialsFromProfile = /* @__PURE__ */ __name(async (profile, options, init) => {
101851
+ const credentialsResponse = JSON.parse((await httpRequest({
101852
+ ...options,
101853
+ path: IMDS_PATH + profile
101854
+ })).toString());
101855
+ if (!isImdsCredentials(credentialsResponse)) {
101856
+ throw new propertyProvider.CredentialsProviderError("Invalid response received from instance metadata service.", {
101857
+ logger: init.logger
101858
+ });
101859
+ }
101860
+ return fromImdsCredentials(credentialsResponse);
101861
+ }, "getCredentialsFromProfile");
101862
+ exports2.DEFAULT_MAX_RETRIES = DEFAULT_MAX_RETRIES;
101863
+ exports2.DEFAULT_TIMEOUT = DEFAULT_TIMEOUT;
101864
+ exports2.ENV_CMDS_AUTH_TOKEN = ENV_CMDS_AUTH_TOKEN;
101865
+ exports2.ENV_CMDS_FULL_URI = ENV_CMDS_FULL_URI;
101866
+ exports2.ENV_CMDS_RELATIVE_URI = ENV_CMDS_RELATIVE_URI;
101867
+ exports2.fromContainerMetadata = fromContainerMetadata;
101868
+ exports2.fromInstanceMetadata = fromInstanceMetadata;
101869
+ exports2.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint;
101870
+ exports2.httpRequest = httpRequest;
101871
+ exports2.providerConfigFromInit = providerConfigFromInit;
101872
+ }
101873
+ });
101874
+
100990
101875
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js
100991
101876
  var require_fromContainerMetadata = __commonJS({
100992
101877
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/fromContainerMetadata.js"(exports2) {
100993
101878
  "use strict";
100994
101879
  Object.defineProperty(exports2, "__esModule", { value: true });
100995
101880
  exports2.fromContainerMetadata = void 0;
100996
- var credential_provider_imds_1 = require_dist_cjs39();
101881
+ var credential_provider_imds_1 = require_dist_cjs78();
100997
101882
  var fromContainerMetadata = /* @__PURE__ */ __name((init) => {
100998
101883
  init?.logger?.debug("@smithy/credential-provider-imds", "fromContainerMetadata");
100999
101884
  return (0, credential_provider_imds_1.fromContainerMetadata)(init);
@@ -101015,24 +101900,24 @@ var require_fromEnv = __commonJS({
101015
101900
  });
101016
101901
 
101017
101902
  // ../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js
101018
- var require_dist_cjs77 = __commonJS({
101903
+ var require_dist_cjs79 = __commonJS({
101019
101904
  "../../node_modules/@aws-sdk/credential-providers/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js"(exports2) {
101020
101905
  "use strict";
101021
101906
  var sharedIniFileLoader = require_dist_cjs32();
101022
101907
  var propertyProvider = require_dist_cjs23();
101023
101908
  var client = (init_client(), __toCommonJS(client_exports));
101024
- var credentialProviderLogin = require_dist_cjs49();
101909
+ var credentialProviderLogin = require_dist_cjs50();
101025
101910
  var resolveCredentialSource = /* @__PURE__ */ __name((credentialSource, profileName, logger2) => {
101026
101911
  const sourceProvidersMap = {
101027
101912
  EcsContainer: /* @__PURE__ */ __name(async (options) => {
101028
101913
  const { fromHttp } = await Promise.resolve().then(() => __toESM(require_dist_cjs40()));
101029
- const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
101914
+ const { fromContainerMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs78()));
101030
101915
  logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is EcsContainer");
101031
101916
  return async () => propertyProvider.chain(fromHttp(options ?? {}), fromContainerMetadata(options))().then(setNamedProvider);
101032
101917
  }, "EcsContainer"),
101033
101918
  Ec2InstanceMetadata: /* @__PURE__ */ __name(async (options) => {
101034
101919
  logger2?.debug("@aws-sdk/credential-provider-ini - credential_source is Ec2InstanceMetadata");
101035
- const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs39()));
101920
+ const { fromInstanceMetadata } = await Promise.resolve().then(() => __toESM(require_dist_cjs78()));
101036
101921
  return async () => fromInstanceMetadata(options)().then(setNamedProvider);
101037
101922
  }, "Ec2InstanceMetadata"),
101038
101923
  Environment: /* @__PURE__ */ __name(async (options) => {
@@ -101124,12 +102009,12 @@ var require_dist_cjs77 = __commonJS({
101124
102009
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE_LOGIN", "AC");
101125
102010
  }, "resolveLoginCredentials");
101126
102011
  var isProcessProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string", "isProcessProfile");
101127
- var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs50())).then(({ fromProcess }) => fromProcess({
102012
+ var resolveProcessCredentials = /* @__PURE__ */ __name(async (options, profile) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromProcess }) => fromProcess({
101128
102013
  ...options,
101129
102014
  profile
101130
102015
  })().then((creds) => client.setCredentialFeature(creds, "CREDENTIALS_PROFILE_PROCESS", "v"))), "resolveProcessCredentials");
101131
102016
  var resolveSsoCredentials = /* @__PURE__ */ __name(async (profile, profileData, options = {}, callerClientConfig) => {
101132
- const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs48()));
102017
+ const { fromSSO } = await Promise.resolve().then(() => __toESM(require_dist_cjs49()));
101133
102018
  return fromSSO({
101134
102019
  profile,
101135
102020
  logger: options.logger,
@@ -101159,7 +102044,7 @@ var require_dist_cjs77 = __commonJS({
101159
102044
  return client.setCredentialFeature(credentials, "CREDENTIALS_PROFILE", "n");
101160
102045
  }, "resolveStaticCredentials");
101161
102046
  var isWebIdentityProfile = /* @__PURE__ */ __name((arg) => Boolean(arg) && typeof arg === "object" && typeof arg.web_identity_token_file === "string" && typeof arg.role_arn === "string" && ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1, "isWebIdentityProfile");
101162
- var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs51())).then(({ fromTokenFile }) => fromTokenFile({
102047
+ var resolveWebIdentityCredentials = /* @__PURE__ */ __name(async (profile, options, callerClientConfig) => Promise.resolve().then(() => __toESM(require_dist_cjs52())).then(({ fromTokenFile }) => fromTokenFile({
101163
102048
  webIdentityTokenFile: profile.web_identity_token_file,
101164
102049
  roleArn: profile.role_arn,
101165
102050
  roleSessionName: profile.role_session_name,
@@ -101211,7 +102096,7 @@ var require_fromIni = __commonJS({
101211
102096
  "use strict";
101212
102097
  Object.defineProperty(exports2, "__esModule", { value: true });
101213
102098
  exports2.fromIni = void 0;
101214
- var credential_provider_ini_1 = require_dist_cjs77();
102099
+ var credential_provider_ini_1 = require_dist_cjs79();
101215
102100
  var fromIni = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_ini_1.fromIni)({
101216
102101
  ...init
101217
102102
  }), "fromIni");
@@ -101226,7 +102111,7 @@ var require_fromInstanceMetadata = __commonJS({
101226
102111
  Object.defineProperty(exports2, "__esModule", { value: true });
101227
102112
  exports2.fromInstanceMetadata = void 0;
101228
102113
  var client_1 = (init_client(), __toCommonJS(client_exports));
101229
- var credential_provider_imds_1 = require_dist_cjs39();
102114
+ var credential_provider_imds_1 = require_dist_cjs78();
101230
102115
  var fromInstanceMetadata = /* @__PURE__ */ __name((init) => {
101231
102116
  init?.logger?.debug("@smithy/credential-provider-imds", "fromInstanceMetadata");
101232
102117
  return async () => (0, credential_provider_imds_1.fromInstanceMetadata)(init)().then((creds) => (0, client_1.setCredentialFeature)(creds, "CREDENTIALS_IMDS", "0"));
@@ -101241,7 +102126,7 @@ var require_fromLoginCredentials = __commonJS({
101241
102126
  "use strict";
101242
102127
  Object.defineProperty(exports2, "__esModule", { value: true });
101243
102128
  exports2.fromLoginCredentials = void 0;
101244
- var credential_provider_login_1 = require_dist_cjs49();
102129
+ var credential_provider_login_1 = require_dist_cjs50();
101245
102130
  var fromLoginCredentials = /* @__PURE__ */ __name((init) => (0, credential_provider_login_1.fromLoginCredentials)({
101246
102131
  ...init
101247
102132
  }), "fromLoginCredentials");
@@ -101255,7 +102140,7 @@ var require_fromNodeProviderChain = __commonJS({
101255
102140
  "use strict";
101256
102141
  Object.defineProperty(exports2, "__esModule", { value: true });
101257
102142
  exports2.fromNodeProviderChain = void 0;
101258
- var credential_provider_node_1 = require_dist_cjs53();
102143
+ var credential_provider_node_1 = require_dist_cjs54();
101259
102144
  var fromNodeProviderChain2 = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_node_1.defaultProvider)({
101260
102145
  ...init
101261
102146
  }), "fromNodeProviderChain");
@@ -101269,7 +102154,7 @@ var require_fromProcess = __commonJS({
101269
102154
  "use strict";
101270
102155
  Object.defineProperty(exports2, "__esModule", { value: true });
101271
102156
  exports2.fromProcess = void 0;
101272
- var credential_provider_process_1 = require_dist_cjs50();
102157
+ var credential_provider_process_1 = require_dist_cjs51();
101273
102158
  var fromProcess = /* @__PURE__ */ __name((init) => (0, credential_provider_process_1.fromProcess)(init), "fromProcess");
101274
102159
  exports2.fromProcess = fromProcess;
101275
102160
  }
@@ -101281,7 +102166,7 @@ var require_fromSSO = __commonJS({
101281
102166
  "use strict";
101282
102167
  Object.defineProperty(exports2, "__esModule", { value: true });
101283
102168
  exports2.fromSSO = void 0;
101284
- var credential_provider_sso_1 = require_dist_cjs48();
102169
+ var credential_provider_sso_1 = require_dist_cjs49();
101285
102170
  var fromSSO = /* @__PURE__ */ __name((init = {}) => {
101286
102171
  return (0, credential_provider_sso_1.fromSSO)({ ...init });
101287
102172
  }, "fromSSO");
@@ -101491,7 +102376,7 @@ var require_fromTokenFile2 = __commonJS({
101491
102376
  "use strict";
101492
102377
  Object.defineProperty(exports2, "__esModule", { value: true });
101493
102378
  exports2.fromTokenFile = void 0;
101494
- var credential_provider_web_identity_1 = require_dist_cjs51();
102379
+ var credential_provider_web_identity_1 = require_dist_cjs52();
101495
102380
  var fromTokenFile = /* @__PURE__ */ __name((init = {}) => (0, credential_provider_web_identity_1.fromTokenFile)({
101496
102381
  ...init
101497
102382
  }), "fromTokenFile");
@@ -101505,7 +102390,7 @@ var require_fromWebToken2 = __commonJS({
101505
102390
  "use strict";
101506
102391
  Object.defineProperty(exports2, "__esModule", { value: true });
101507
102392
  exports2.fromWebToken = void 0;
101508
- var credential_provider_web_identity_1 = require_dist_cjs51();
102393
+ var credential_provider_web_identity_1 = require_dist_cjs52();
101509
102394
  var fromWebToken = /* @__PURE__ */ __name((init) => (0, credential_provider_web_identity_1.fromWebToken)({
101510
102395
  ...init
101511
102396
  }), "fromWebToken");
@@ -101514,7 +102399,7 @@ var require_fromWebToken2 = __commonJS({
101514
102399
  });
101515
102400
 
101516
102401
  // ../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js
101517
- var require_dist_cjs78 = __commonJS({
102402
+ var require_dist_cjs80 = __commonJS({
101518
102403
  "../../node_modules/@aws-sdk/credential-providers/dist-cjs/index.js"(exports2) {
101519
102404
  "use strict";
101520
102405
  Object.defineProperty(exports2, "__esModule", { value: true });
@@ -101541,9 +102426,9 @@ var require_dist_cjs78 = __commonJS({
101541
102426
  }
101542
102427
  });
101543
102428
 
101544
- // ../../node_modules/@smithy/abort-controller/dist-cjs/index.js
101545
- var require_dist_cjs79 = __commonJS({
101546
- "../../node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports2) {
102429
+ // ../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/abort-controller/dist-cjs/index.js
102430
+ var require_dist_cjs81 = __commonJS({
102431
+ "../../node_modules/@aws-sdk/lib-storage/node_modules/@smithy/abort-controller/dist-cjs/index.js"(exports2) {
101547
102432
  "use strict";
101548
102433
  var AbortSignal = class {
101549
102434
  static {
@@ -101618,11 +102503,11 @@ var require_runtimeConfig7 = __commonJS({
101618
102503
  });
101619
102504
 
101620
102505
  // ../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js
101621
- var require_dist_cjs80 = __commonJS({
102506
+ var require_dist_cjs82 = __commonJS({
101622
102507
  "../../node_modules/@aws-sdk/lib-storage/dist-cjs/index.js"(exports2) {
101623
102508
  "use strict";
101624
- var clientS3 = require_dist_cjs72();
101625
- var abortController = require_dist_cjs79();
102509
+ var clientS3 = require_dist_cjs73();
102510
+ var abortController = require_dist_cjs81();
101626
102511
  var middlewareEndpoint = require_dist_cjs34();
101627
102512
  var smithyClient = require_dist_cjs26();
101628
102513
  var events = require("events");
@@ -102128,12 +103013,12 @@ var init_aws = __esm({
102128
103013
  "../@aws-cdk/cdk-assets-lib/lib/aws.ts"() {
102129
103014
  "use strict";
102130
103015
  os4 = __toESM(require("os"));
102131
- import_client_ecr = __toESM(require_dist_cjs55());
102132
- import_client_s3 = __toESM(require_dist_cjs72());
102133
- import_client_secrets_manager = __toESM(require_dist_cjs73());
102134
- import_client_sts = __toESM(require_dist_cjs74());
102135
- import_credential_providers = __toESM(require_dist_cjs78());
102136
- import_lib_storage = __toESM(require_dist_cjs80());
103016
+ import_client_ecr = __toESM(require_dist_cjs56());
103017
+ import_client_s3 = __toESM(require_dist_cjs73());
103018
+ import_client_secrets_manager = __toESM(require_dist_cjs74());
103019
+ import_client_sts = __toESM(require_dist_cjs75());
103020
+ import_credential_providers = __toESM(require_dist_cjs80());
103021
+ import_lib_storage = __toESM(require_dist_cjs82());
102137
103022
  import_config_resolver7 = __toESM(require_dist_cjs30());
102138
103023
  import_node_config_provider4 = __toESM(require_dist_cjs33());
102139
103024
  USER_AGENT = "cdk-assets";
@@ -102269,7 +103154,7 @@ var require_lib5 = __commonJS({
102269
103154
 
102270
103155
  // bin/docker-credential-cdk-assets.js
102271
103156
  Object.defineProperty(exports, "__esModule", { value: true });
102272
- var fs11 = require("fs");
103157
+ var fs12 = require("fs");
102273
103158
  var cdk_assets_lib_1 = require_lib5();
102274
103159
  var docker_credentials_1 = (init_docker_credentials(), __toCommonJS(docker_credentials_exports));
102275
103160
  async function main() {
@@ -102280,9 +103165,9 @@ async function main() {
102280
103165
  if (!config) {
102281
103166
  throw new Error(`unable to find CDK Docker credentials at: ${(0, docker_credentials_1.cdkCredentialsConfigFile)()}`);
102282
103167
  }
102283
- let endpoint = fs11.readFileSync(0, { encoding: "utf-8" }).trim();
103168
+ let endpoint = fs12.readFileSync(0, { encoding: "utf-8" }).trim();
102284
103169
  const credentials = await (0, docker_credentials_1.fetchDockerLoginCredentials)(new cdk_assets_lib_1.DefaultAwsClient(), config, endpoint);
102285
- fs11.writeFileSync(1, JSON.stringify(credentials));
103170
+ fs12.writeFileSync(1, JSON.stringify(credentials));
102286
103171
  }
102287
103172
  __name(main, "main");
102288
103173
  main().catch((e4) => {